{"version":3,"file":"wW388FGKE.DgKTFgT7.mjs","names":["Image"],"sources":["https:/framerusercontent.com/modules/4K6Z1OsSxcUiXmOhQoxu/k4x1BSfhepgWYV5tSS6D/wW388FGKE.js"],"sourcesContent":["// Generated by Framer (47ebf4a)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getLoadingLazyAtYPosition,Image,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const cycleOrder=[\"D0t_2s4VA\",\"hJLVqa__c\"];const serializationHash=\"framer-ShCau\";const variantClassNames={D0t_2s4VA:\"framer-v-168h39w\",hJLVqa__c:\"framer-v-nvy8t7\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const toResponsiveImage=value=>{if(typeof value===\"object\"&&value!==null&&typeof value.src===\"string\"){return value;}return typeof value===\"string\"?{src:value}: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 Variants=motion.create(React.Fragment);const humanReadableVariantMap={User:\"D0t_2s4VA\",Weekie:\"hJLVqa__c\"};const getProps=({_,_1,height,id,width,...props})=>{return{...props,T5THDdW7f:_1??props.T5THDdW7f??{src:\"https://framerusercontent.com/images/cfzFHYQbnBdY8XkfP3pB5rVQYQ.png?scale-down-to=512\",srcSet:\"https://framerusercontent.com/images/cfzFHYQbnBdY8XkfP3pB5rVQYQ.png?scale-down-to=512 512w,https://framerusercontent.com/images/cfzFHYQbnBdY8XkfP3pB5rVQYQ.png 600w\"},variant:humanReadableVariantMap[props.variant]??props.variant??\"D0t_2s4VA\",voUSpmmkX:_??props.voUSpmmkX??{src:\"https://framerusercontent.com/images/GWHuzXT0JPU1ntAUn9fahXu7VU.png?scale-down-to=512\",srcSet:\"https://framerusercontent.com/images/GWHuzXT0JPU1ntAUn9fahXu7VU.png?scale-down-to=512 512w,https://framerusercontent.com/images/GWHuzXT0JPU1ntAUn9fahXu7VU.png 600w\"}};};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,voUSpmmkX,T5THDdW7f,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"D0t_2s4VA\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);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),sizes:componentViewport?.width||\"100vw\",...toResponsiveImage(voUSpmmkX)},className:cx(scopingClassNames,\"framer-168h39w\",className,classNames),\"data-border\":true,\"data-framer-name\":\"User\",layoutDependency:layoutDependency,layoutId:\"D0t_2s4VA\",ref:refBinding,style:{\"--border-bottom-width\":\"1px\",\"--border-color\":\"var(--token-bb4b9a61-884c-48fd-96da-0bde23df12e5, rgba(0, 0, 0, 0.1))\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",borderBottomLeftRadius:999,borderBottomRightRadius:999,borderTopLeftRadius:999,borderTopRightRadius:999,...style},...addPropertyOverrides({hJLVqa__c:{\"data-framer-name\":\"Weekie\",background:{alt:\"\",fit:\"fill\",loading:getLoadingLazyAtYPosition(componentViewport?.y||0),sizes:componentViewport?.width||\"100vw\",...toResponsiveImage(T5THDdW7f)}}},baseVariant,gestureVariant)})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-ShCau.framer-c09d84, .framer-ShCau .framer-c09d84 { display: block; }\",\".framer-ShCau.framer-168h39w { height: 64px; position: relative; width: 64px; }\",\".framer-ShCau.framer-v-nvy8t7.framer-168h39w { aspect-ratio: 1 / 1; height: var(--framer-aspect-ratio-supported, 64px); }\",'.framer-ShCau[data-border=\"true\"]::after, .framer-ShCau [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 64\n * @framerIntrinsicWidth 64\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"hJLVqa__c\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"voUSpmmkX\":\"_\",\"T5THDdW7f\":\"_1\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerComponentViewportWidth true\n */const FramerwW388FGKE=withCSS(Component,css,\"framer-ShCau\");export default FramerwW388FGKE;FramerwW388FGKE.displayName=\"Avatar\";FramerwW388FGKE.defaultProps={height:64,width:64};addPropertyControls(FramerwW388FGKE,{variant:{options:[\"D0t_2s4VA\",\"hJLVqa__c\"],optionTitles:[\"User\",\"Weekie\"],title:\"Variant\",type:ControlType.Enum},voUSpmmkX:{__defaultAssetReference:\"data:framer/asset-reference,GWHuzXT0JPU1ntAUn9fahXu7VU.png?originalFilename=Default.png&preferredSize=auto\",title:\"用戶（預設）\",type:ControlType.ResponsiveImage},T5THDdW7f:{__defaultAssetReference:\"data:framer/asset-reference,cfzFHYQbnBdY8XkfP3pB5rVQYQ.png?originalFilename=Shop+Default.png&preferredSize=auto\",title:\"週週趣（預設）\",type:ControlType.ResponsiveImage}});addFonts(FramerwW388FGKE,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerwW388FGKE\",\"slots\":[],\"annotations\":{\"framerVariables\":\"{\\\"voUSpmmkX\\\":\\\"_\\\",\\\"T5THDdW7f\\\":\\\"_1\\\"}\",\"framerComponentViewportWidth\":\"true\",\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"hJLVqa__c\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerIntrinsicWidth\":\"64\",\"framerIntrinsicHeight\":\"64\",\"framerDisplayContentsDiv\":\"false\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./wW388FGKE.map"],"mappings":"kjBACme,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,CAAE,EAAsF,MAArF,IAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,CAAe,0CAS2D,AATrtB,GAA2C,IAA2J,IAAkE,IAA4B,CAAgC,EAAW,CAAC,YAAY,WAAY,EAAO,EAAkB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