{"version":3,"file":"Toggle.E1LVCije.mjs","names":["addPropertyOverrides","cycleOrder","serializationHash","variantClassNames","transition1","Transition","React.useContext","React.useMemo","Variants","React.Fragment","humanReadableVariantMap","getProps","createLayoutDependency","useRef","React.useId","__FramerMetadata__","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","useStore","useState"],"sources":["https:/framerusercontent.com/modules/AUfyUwNjjmCgxmy32WQF/4b0am230GBiF38onMoDi/ehZSnRWmc.js","https:/framerusercontent.com/modules/LOZQnRpQ1PtkXcYxte31/7FqXxZxExQ9nAaKwSf7u/yWo6QVPBQ.js","https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/vfb9cDQORZFMfumz18Ka/x1ByWBtNizbL3Uuovl5A/Toggle.js"],"sourcesContent":["// Generated by Framer (94ad37d)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const cycleOrder=[\"BeHF4g4zy\",\"y1vW869uT\"];const serializationHash=\"framer-vOUtX\";const variantClassNames={BeHF4g4zy:\"framer-v-kxkl2g\",y1vW869uT:\"framer-v-1v916hr\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const g7eMiLgqH=undefined;const qC7woMtsW=undefined;const FfgGZ0ptV=undefined;const TrkHHRLQR=undefined;const transition1={damping:30,delay:0,mass:1,stiffness:500,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={GBP:\"BeHF4g4zy\",USD:\"y1vW869uT\"};const getProps=({color,fontSize,gBPPrice,height,id,uSDPrice,width,...props})=>{return{...props,FfgGZ0ptV:gBPPrice??props.FfgGZ0ptV??\"0\",g7eMiLgqH:color??props.g7eMiLgqH??\"rgb(255, 255, 255)\",qC7woMtsW:fontSize??props.qC7woMtsW??40,TrkHHRLQR:uSDPrice??props.TrkHHRLQR??\"0\",variant:humanReadableVariantMap[props.variant]??props.variant??\"BeHF4g4zy\"};};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,FfgGZ0ptV,TrkHHRLQR,g7eMiLgqH,qC7woMtsW,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"BeHF4g4zy\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"y1vW869uT\")return false;return true;};const isDisplayed1=()=>{if(baseVariant===\"y1vW869uT\")return true;return false;};return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-kxkl2g\",className,classNames),\"data-framer-name\":\"GBP\",layoutDependency:layoutDependency,layoutId:\"BeHF4g4zy\",ref:refBinding,style:{...style},...addPropertyOverrides({y1vW869uT:{\"data-framer-name\":\"USD\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsxs(motion.div,{className:\"framer-6heifc\",layoutDependency:layoutDependency,layoutId:\"EDeegJhel\",children:[isDisplayed()&&/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7RE0gTW9uby01MDA=\",\"--framer-font-family\":'\"DM Mono\", monospace',\"--framer-font-size\":\"calc(var(--variable-reference-qC7woMtsW-ehZSnRWmc) * 1px)\",\"--framer-font-weight\":\"500\",\"--framer-letter-spacing\":\"-0.02em\",\"--framer-line-height\":\"1em\",\"--framer-text-alignment\":\"left\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--variable-reference-g7eMiLgqH-ehZSnRWmc))\"},children:\"0\"})}),className:\"framer-1ths04z\",fonts:[\"GF;DM Mono-500\"],layoutDependency:layoutDependency,layoutId:\"o7xNZ2l8V\",style:{\"--extracted-r6o4lv\":\"var(--variable-reference-g7eMiLgqH-ehZSnRWmc)\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\",\"--variable-reference-g7eMiLgqH-ehZSnRWmc\":g7eMiLgqH,\"--variable-reference-qC7woMtsW-ehZSnRWmc\":qC7woMtsW},text:FfgGZ0ptV,verticalAlignment:\"top\",withExternalLayout:true}),isDisplayed1()&&/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7RE0gTW9uby01MDA=\",\"--framer-font-family\":'\"DM Mono\", monospace',\"--framer-font-size\":\"calc(var(--variable-reference-qC7woMtsW-ehZSnRWmc) * 1px)\",\"--framer-font-weight\":\"500\",\"--framer-letter-spacing\":\"-0.02em\",\"--framer-line-height\":\"1em\",\"--framer-text-alignment\":\"left\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--variable-reference-g7eMiLgqH-ehZSnRWmc))\"},children:\"0\"})}),className:\"framer-axut80\",fonts:[\"GF;DM Mono-500\"],layoutDependency:layoutDependency,layoutId:\"Vl0DNwndA\",style:{\"--extracted-r6o4lv\":\"var(--variable-reference-g7eMiLgqH-ehZSnRWmc)\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\",\"--variable-reference-g7eMiLgqH-ehZSnRWmc\":g7eMiLgqH,\"--variable-reference-qC7woMtsW-ehZSnRWmc\":qC7woMtsW},text:FfgGZ0ptV,verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({y1vW869uT:{text:TrkHHRLQR}},baseVariant,gestureVariant)})]})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-vOUtX.framer-vcjtik, .framer-vOUtX .framer-vcjtik { display: block; }\",\".framer-vOUtX.framer-kxkl2g { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: hidden; padding: 0px; position: relative; width: 140px; }\",\".framer-vOUtX .framer-6heifc { align-content: center; align-items: center; display: flex; flex: none; flex-direction: column; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 100%; }\",\".framer-vOUtX .framer-1ths04z, .framer-vOUtX .framer-axut80 { -webkit-user-select: none; flex: none; height: auto; position: relative; user-select: none; white-space: pre-wrap; width: 100%; word-break: break-word; word-wrap: break-word; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 40\n * @framerIntrinsicWidth 140\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"y1vW869uT\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"FfgGZ0ptV\":\"gBPPrice\",\"TrkHHRLQR\":\"uSDPrice\",\"g7eMiLgqH\":\"color\",\"qC7woMtsW\":\"fontSize\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerehZSnRWmc=withCSS(Component,css,\"framer-vOUtX\");export default FramerehZSnRWmc;FramerehZSnRWmc.displayName=\"Price - Amount\";FramerehZSnRWmc.defaultProps={height:40,width:140};addPropertyControls(FramerehZSnRWmc,{variant:{options:[\"BeHF4g4zy\",\"y1vW869uT\"],optionTitles:[\"GBP\",\"USD\"],title:\"Variant\",type:ControlType.Enum},FfgGZ0ptV:{defaultValue:\"0\",displayTextArea:false,title:\"GBP Price\",type:ControlType.String},TrkHHRLQR:{defaultValue:\"0\",displayTextArea:false,title:\"USD Price\",type:ControlType.String},g7eMiLgqH:{defaultValue:\"rgb(255, 255, 255)\",title:\"Color\",type:ControlType.Color},qC7woMtsW:{defaultValue:40,title:\"Font Size\",type:ControlType.Number}});addFonts(FramerehZSnRWmc,[{explicitInter:true,fonts:[{cssFamilyName:\"DM Mono\",source:\"google\",style:\"normal\",uiFamilyName:\"DM Mono\",url:\"https://fonts.gstatic.com/s/dmmono/v16/aFTR7PB1QTsUX8KYvumzIYGnbKX9Rlk.woff2\",weight:\"500\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerehZSnRWmc\",\"slots\":[],\"annotations\":{\"framerColorSyntax\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerVariables\":\"{\\\"FfgGZ0ptV\\\":\\\"gBPPrice\\\",\\\"TrkHHRLQR\\\":\\\"uSDPrice\\\",\\\"g7eMiLgqH\\\":\\\"color\\\",\\\"qC7woMtsW\\\":\\\"fontSize\\\"}\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"140\",\"framerDisplayContentsDiv\":\"false\",\"framerImmutableVariables\":\"true\",\"framerIntrinsicHeight\":\"40\",\"framerAutoSizeImages\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"y1vW869uT\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ehZSnRWmc.map","// Generated by Framer (9045c1a)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const cycleOrder=[\"BHKeCaQ0z\",\"ziEMkskms\"];const serializationHash=\"framer-vMrlu\";const variantClassNames={BHKeCaQ0z:\"framer-v-1pav4hb\",ziEMkskms:\"framer-v-t5ka70\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={damping:60,delay:0,mass:1,stiffness:500,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={Off:\"BHKeCaQ0z\",On:\"ziEMkskms\"};const getProps=({height,id,toggleBackground,width,...props})=>{return{...props,lY83Yscvh:toggleBackground??props.lY83Yscvh??\"rgba(2, 7, 24, 0.1)\",variant:humanReadableVariantMap[props.variant]??props.variant??\"BHKeCaQ0z\"};};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,lY83Yscvh,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"BHKeCaQ0z\",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__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1pav4hb\",className,classNames),\"data-framer-name\":\"Off\",layoutDependency:layoutDependency,layoutId:\"BHKeCaQ0z\",ref:refBinding,style:{backgroundColor:lY83Yscvh,borderBottomLeftRadius:690,borderBottomRightRadius:690,borderTopLeftRadius:690,borderTopRightRadius:690,boxShadow:\"inset 0px 0.3613123810646357px 1.8065619053231785px -1.25px rgba(2, 7, 24, 0.43193), inset 0px 1.3731199819460742px 6.8655999097303715px -2.5px rgba(2, 7, 24, 0.38134), inset 0px 6px 30px -3.75px rgba(2, 7, 24, 0.15)\",...style},...addPropertyOverrides({ziEMkskms:{\"data-framer-name\":\"On\"}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7SW50ZXItOTAw\",\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"900\",\"--framer-letter-spacing\":\"0.4px\",\"--framer-line-height\":\"0.9em\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\",\"--framer-text-transform\":\"uppercase\"},children:\"GBP\"})}),className:\"framer-3hsg9f\",fonts:[\"GF;Inter-900\"],layoutDependency:layoutDependency,layoutId:\"qF21QZBSZ\",style:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\",opacity:1},variants:{ziEMkskms:{opacity:.5}},verticalAlignment:\"top\",withExternalLayout:true}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-1kjo5mk\",\"data-framer-name\":\"Off\",layoutDependency:layoutDependency,layoutId:\"axedrsA6d\",style:{backgroundColor:\"rgb(245, 245, 245)\",borderBottomLeftRadius:50,borderBottomRightRadius:50,borderTopLeftRadius:50,borderTopRightRadius:50},variants:{ziEMkskms:{backgroundColor:\"var(--token-fdeb0ee2-34c9-453a-b301-f6987f87d09a, rgb(239, 60, 13))\"}},children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-koc2dg\",layoutDependency:layoutDependency,layoutId:\"WCyr161pP\",style:{backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:\"50%\",borderBottomRightRadius:\"50%\",borderTopLeftRadius:\"50%\",borderTopRightRadius:\"50%\",boxShadow:\"0px 1px 2px 0px rgba(0, 0, 0, 0.4)\"}})}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7SW50ZXItOTAw\",\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"900\",\"--framer-letter-spacing\":\"0.4px\",\"--framer-line-height\":\"0.9em\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-fdeb0ee2-34c9-453a-b301-f6987f87d09a, rgb(239, 60, 13)))\",\"--framer-text-transform\":\"uppercase\"},children:\"USD\"})}),className:\"framer-1t166qf\",fonts:[\"GF;Inter-900\"],layoutDependency:layoutDependency,layoutId:\"gqwRQIMa6\",style:{\"--extracted-r6o4lv\":\"var(--token-fdeb0ee2-34c9-453a-b301-f6987f87d09a, rgb(239, 60, 13))\",opacity:.5},variants:{ziEMkskms:{opacity:1}},verticalAlignment:\"top\",withExternalLayout:true})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-vMrlu.framer-wcoxaq, .framer-vMrlu .framer-wcoxaq { display: block; }\",\".framer-vMrlu.framer-1pav4hb { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 6px; height: min-content; justify-content: center; padding: 8px 10px 6px 10px; position: relative; width: min-content; }\",\".framer-vMrlu .framer-3hsg9f, .framer-vMrlu .framer-1t166qf { -webkit-user-select: none; flex: none; height: auto; overflow: visible; position: relative; user-select: none; white-space: pre; width: auto; }\",\".framer-vMrlu .framer-1kjo5mk { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: 16px; justify-content: flex-start; overflow: hidden; padding: 2px; position: relative; width: 30px; will-change: var(--framer-will-change-override, transform); }\",\".framer-vMrlu .framer-koc2dg { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 12px); overflow: visible; position: relative; width: 12px; z-index: 2; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-vMrlu.framer-1pav4hb, .framer-vMrlu .framer-1kjo5mk { gap: 0px; } .framer-vMrlu.framer-1pav4hb > * { margin: 0px; margin-left: calc(6px / 2); margin-right: calc(6px / 2); } .framer-vMrlu.framer-1pav4hb > :first-child, .framer-vMrlu .framer-1kjo5mk > :first-child { margin-left: 0px; } .framer-vMrlu.framer-1pav4hb > :last-child, .framer-vMrlu .framer-1kjo5mk > :last-child { margin-right: 0px; } .framer-vMrlu .framer-1kjo5mk > * { margin: 0px; margin-left: calc(10px / 2); margin-right: calc(10px / 2); } }\",\".framer-vMrlu.framer-v-t5ka70 .framer-1kjo5mk { justify-content: flex-end; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 30\n * @framerIntrinsicWidth 123\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"ziEMkskms\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"lY83Yscvh\":\"toggleBackground\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerComponentViewportWidth true\n */const FrameryWo6QVPBQ=withCSS(Component,css,\"framer-vMrlu\");export default FrameryWo6QVPBQ;FrameryWo6QVPBQ.displayName=\"Price - Toggle\";FrameryWo6QVPBQ.defaultProps={height:30,width:123};addPropertyControls(FrameryWo6QVPBQ,{variant:{options:[\"BHKeCaQ0z\",\"ziEMkskms\"],optionTitles:[\"Off\",\"On\"],title:\"Variant\",type:ControlType.Enum},lY83Yscvh:{defaultValue:\"rgba(2, 7, 24, 0.1)\",title:\"Toggle Background\",type:ControlType.Color}});addFonts(FrameryWo6QVPBQ,[{explicitInter:true,fonts:[{family:\"Inter\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuBWYMZ1rib2Bg-4.woff2\",weight:\"900\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FrameryWo6QVPBQ\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"123\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"ziEMkskms\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerVariables\":\"{\\\"lY83Yscvh\\\":\\\"toggleBackground\\\"}\",\"framerIntrinsicHeight\":\"30\",\"framerComponentViewportWidth\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./yWo6QVPBQ.map","import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// 1. Setup shared store with USD as default (yearly: false)\nconst useStore=createStore({yearly:false});// 2. Write an override that receives a Component from the canvas\nexport function withToggle(Component){// 3. Return a React component\nreturn props=>{// 4. Grab our store\nconst[store,setStore]=useStore();// 5. Return a component with updated props\nreturn /*#__PURE__*/_jsx(Component,{...props,variant:store.yearly?\"Off\":\"On\",onClick:()=>{setStore({yearly:!store.yearly});}});};}export function withGBP(Component){return props=>{const[store]=useStore();return /*#__PURE__*/_jsx(Component,{...props,text:store.yearly?\"5\":\"10\"});};}export function withUSD(Component){return props=>{const[store]=useStore();return /*#__PURE__*/_jsx(Component,{...props,text:store.yearly?\"10\":\"15\"});};}export function withVariant(Component){return props=>{const[store]=useStore();return /*#__PURE__*/_jsx(Component,{...props,variant:store.yearly?\"GBP\":\"USD\"});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withVariant\":{\"type\":\"reactHoc\",\"name\":\"withVariant\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withToggle\":{\"type\":\"reactHoc\",\"name\":\"withToggle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUSD\":{\"type\":\"reactHoc\",\"name\":\"withUSD\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withGBP\":{\"type\":\"reactHoc\",\"name\":\"withGBP\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Toggle.map"],"mappings":"4ZAC0d,SAASA,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,6CAAzkB,IAAoI,IAAkE,IAA4B,CAAgCC,EAAW,CAAC,YAAY,YAAY,CAAOC,EAAkB,eAAqBC,EAAkB,CAAC,UAAU,kBAAkB,UAAU,mBAAm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