{"version":3,"file":"Sound.Da_v8vSS.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","Image","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/JFJKgt3J21vXoXRPtDul/C0VSN712BaHfUL5Orw9a/odrkVInxF.js","https:/framerusercontent.com/modules/GX8VSHYHf4QX2XcPuIwJ/9rSioVGOzL6vTCHvbKnS/Sound.js"],"sourcesContent":["// Generated by Framer (52e1834)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getLoadingLazyAtYPosition,Image,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const cycleOrder=[\"YvoboTycX\",\"AZrQxjIuK\"];const serializationHash=\"framer-Hk15I\";const variantClassNames={AZrQxjIuK:\"framer-v-19v0l9j\",YvoboTycX:\"framer-v-zepn19\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const Y0xRT6lrA=undefined;const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={\"Variant 1\":\"YvoboTycX\",\"Variant 2\":\"AZrQxjIuK\"};const Variants=motion.create(React.Fragment);const getProps=({click,height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"YvoboTycX\",Y0xRT6lrA:click??props.Y0xRT6lrA};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,Y0xRT6lrA,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"YvoboTycX\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTapl8ujee=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(Y0xRT6lrA){const res=await Y0xRT6lrA(...args);if(res===false)return false;}});const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(Image,{...restProps,...gestureHandlers,background:{alt:\"\",fit:\"fill\",loading:getLoadingLazyAtYPosition(componentViewport?.y||0),pixelHeight:1024,pixelWidth:1024,sizes:componentViewport?.width||\"100vw\",src:\"https://framerusercontent.com/images/eOYxSnNYoe4dUq3wkG8DPFybw.png?width=1024&height=1024\",srcSet:\"https://framerusercontent.com/images/eOYxSnNYoe4dUq3wkG8DPFybw.png?scale-down-to=512&width=1024&height=1024 512w,https://framerusercontent.com/images/eOYxSnNYoe4dUq3wkG8DPFybw.png?width=1024&height=1024 1024w\"},className:cx(scopingClassNames,\"framer-zepn19\",className,classNames),\"data-framer-name\":\"Variant 1\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"YvoboTycX\",onTap:onTapl8ujee,ref:refBinding,style:{...style},...addPropertyOverrides({AZrQxjIuK:{\"data-framer-name\":\"Variant 2\"}},baseVariant,gestureVariant)})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-Hk15I.framer-yzbx9r, .framer-Hk15I .framer-yzbx9r { display: block; }\",\".framer-Hk15I.framer-zepn19 { cursor: pointer; height: 168px; position: relative; width: 235px; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 168\n * @framerIntrinsicWidth 235\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"AZrQxjIuK\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"Y0xRT6lrA\":\"click\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerodrkVInxF=withCSS(Component,css,\"framer-Hk15I\");export default FramerodrkVInxF;FramerodrkVInxF.displayName=\"bla\";FramerodrkVInxF.defaultProps={height:168,width:235};addPropertyControls(FramerodrkVInxF,{variant:{options:[\"YvoboTycX\",\"AZrQxjIuK\"],optionTitles:[\"Variant 1\",\"Variant 2\"],title:\"Variant\",type:ControlType.Enum},Y0xRT6lrA:{title:\"Click\",type:ControlType.EventHandler}});addFonts(FramerodrkVInxF,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerodrkVInxF\",\"slots\":[],\"annotations\":{\"framerComponentViewportWidth\":\"true\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"235\",\"framerImmutableVariables\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerVariables\":\"{\\\"Y0xRT6lrA\\\":\\\"click\\\"}\",\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"AZrQxjIuK\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerIntrinsicHeight\":\"168\",\"framerColorSyntax\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./odrkVInxF.map","import{jsx as _jsx}from\"react/jsx-runtime\";const sources={kick:\"https://dystantstoragepullzone.b-cdn.net/Sounds/kick.mp3\",body:\"https://dystantstoragepullzone.b-cdn.net/Sounds/body.mp3\",transient:\"https://dystantstoragepullzone.b-cdn.net/Sounds/transient.mp3\",sub:\"https://dystantstoragepullzone.b-cdn.net/Sounds/sub.mp3\"};const cache={};function preload(url){if(!cache[url]){const audio=new Audio(url);audio.preload=\"auto\";cache[url]=audio;}return cache[url];}function playSound(url){const base=preload(url);const audio=base.cloneNode(true);audio.currentTime=0;audio.play().catch(()=>{});}function makeSound(url){preload(url);return{onPointerDown(){playSound(url);}};}export function KickSound(){return makeSound(sources.kick);}export function BodySound(){return makeSound(sources.body);}export function TransientSound(){return makeSound(sources.transient);}export function SubSound(){return makeSound(sources.sub);}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withmakeSound(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...makeSound(props)});};}withmakeSound.displayName=\"makeSound\";export function withKickSound(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...KickSound(props)});};}withKickSound.displayName=\"KickSound\";export function withBodySound(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...BodySound(props)});};}withBodySound.displayName=\"BodySound\";export function withTransientSound(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...TransientSound(props)});};}withTransientSound.displayName=\"TransientSound\";export function withSubSound(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...SubSound(props)});};}withSubSound.displayName=\"SubSound\";\nexport const __FramerMetadata__ = {\"exports\":{\"withBodySound\":{\"type\":\"reactHoc\",\"name\":\"withBodySound\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTransientSound\":{\"type\":\"reactHoc\",\"name\":\"withTransientSound\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SubSound\":{\"type\":\"override\",\"name\":\"SubSound\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TransientSound\":{\"type\":\"override\",\"name\":\"TransientSound\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"BodySound\":{\"type\":\"override\",\"name\":\"BodySound\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"KickSound\":{\"type\":\"override\",\"name\":\"KickSound\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withKickSound\":{\"type\":\"reactHoc\",\"name\":\"withKickSound\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSubSound\":{\"type\":\"reactHoc\",\"name\":\"withSubSound\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withmakeSound\":{\"type\":\"reactHoc\",\"name\":\"withmakeSound\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Sound.map"],"mappings":"2YAC4f,SAAS,GAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,2CAAznB,IAAoL,IAAkE,IAA4B,CAAgC,EAAW,CAAC,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,UAAU,kBAAkB,CAAwN,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAO,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EA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