{"version":3,"file":"Subscriptions_utils.CWIGERjQ.mjs","names":["_Fragment","useQuery"],"sources":["https:/framerusercontent.com/modules/gNrx5shePoNxbUKTvliC/HLQJlFFZMsPSLpGIiDtr/Currency_symbols.js","https:/framerusercontent.com/modules/mHaK3bedwyJwyNxfaowX/hWKLWGrPdtcuWvTxZqnK/Shared_currency_props.js","https:/framerusercontent.com/modules/N0h2Mv73o8xtz2My1yiB/RR9fj2DVzBXn0Wwu7ijL/Loading_skeleton.js","https:/framerusercontent.com/modules/cmJdj1YCmFSsS6n95OKk/9t9XeEHurZ6w5fbXeCsJ/Shared_tag_props.js","https:/framerusercontent.com/modules/pKQXtSIFOkUZHJ1ZIH57/NoFEn9zQllmpSUGUHGAx/Env.js","https:/framerusercontent.com/modules/U32JRYBcPmO9IzIRP4Rj/GrFKLNDUaXKzMFWb6e2Q/License_cache.js","https:/framerusercontent.com/modules/b3e85pFcNFtqTX3XSv9e/zlEwUvz0VIXD7QVrXdd1/Backend_client.js","https:/framerusercontent.com/modules/JhvDT64z5Z8fFnafHobq/42SKJ2i3RMQ8bM7VMKUY/Licence_service.js","https:/framerusercontent.com/modules/kGyAHPbQwKZr1zBe6pP6/RbuQS97niWMvAeN1meX9/Use_license.js","https:/framerusercontent.com/modules/br9bXgadWgfJaD0swwuT/jUc9YNpAtX8KUoSpiBD2/Shared_text_decoration_props.js","https:/framerusercontent.com/modules/3QrZAq5uElJQ8m88NKWY/5xJkuuHwMm3iKqkoNzBk/Subscriptions_utils.js"],"sourcesContent":["export const CURRENCY_SYMBOLS={AED:\"د.إ\",AFN:\"؋\",ALL:\"L\",AMD:\"֏\",ANG:\"ƒ\",AOA:\"Kz\",ARS:\"$\",AUD:\"$\",AWG:\"ƒ\",AZN:\"₼\",BAM:\"KM\",BBD:\"$\",BDT:\"৳\",BGN:\"лв\",BHD:\".د.ب\",BIF:\"FBu\",BMD:\"$\",BND:\"$\",BOB:\"$b\",BOV:\"BOV\",BRL:\"R$\",BSD:\"$\",BTC:\"₿\",BTN:\"Nu.\",BWP:\"P\",BYN:\"Br\",BYR:\"Br\",BZD:\"BZ$\",CAD:\"$\",CDF:\"FC\",CHE:\"CHE\",CHF:\"CHF\",CHW:\"CHW\",CLF:\"CLF\",CLP:\"$\",CNH:\"\\xa5\",CNY:\"\\xa5\",COP:\"$\",COU:\"COU\",CRC:\"₡\",CUC:\"$\",CUP:\"₱\",CVE:\"$\",CZK:\"Kč\",DJF:\"Fdj\",DKK:\"kr\",DOP:\"RD$\",DZD:\"دج\",EEK:\"kr\",EGP:\"\\xa3\",ERN:\"Nfk\",ETB:\"Br\",ETH:\"Ξ\",EUR:\"€\",FJD:\"$\",FKP:\"\\xa3\",GBP:\"\\xa3\",GEL:\"₾\",GGP:\"\\xa3\",GHC:\"₵\",GHS:\"GH₵\",GIP:\"\\xa3\",GMD:\"D\",GNF:\"FG\",GTQ:\"Q\",GYD:\"$\",HKD:\"$\",HNL:\"L\",HRK:\"kn\",HTG:\"G\",HUF:\"Ft\",IDR:\"Rp\",ILS:\"₪\",IMP:\"\\xa3\",INR:\"₹\",IQD:\"ع.د\",IRR:\"﷼\",ISK:\"kr\",JEP:\"\\xa3\",JMD:\"J$\",JOD:\"JD\",JPY:\"\\xa5\",KES:\"KSh\",KGS:\"лв\",KHR:\"៛\",KMF:\"CF\",KPW:\"₩\",KRW:\"₩\",KWD:\"KD\",KYD:\"$\",KZT:\"₸\",LAK:\"₭\",LBP:\"\\xa3\",LKR:\"₨\",LRD:\"$\",LSL:\"M\",LTC:\"Ł\",LTL:\"Lt\",LVL:\"Ls\",LYD:\"LD\",MAD:\"MAD\",MDL:\"lei\",MGA:\"Ar\",MKD:\"ден\",MMK:\"K\",MNT:\"₮\",MOP:\"MOP$\",MRO:\"UM\",MRU:\"UM\",MUR:\"₨\",MVR:\"Rf\",MWK:\"MK\",MXN:\"$\",MXV:\"MXV\",MYR:\"RM\",MZN:\"MT\",NAD:\"$\",NGN:\"₦\",NIO:\"C$\",NOK:\"kr\",NPR:\"₨\",NZD:\"$\",OMR:\"﷼\",PAB:\"B/.\",PEN:\"S/.\",PGK:\"K\",PHP:\"₱\",PKR:\"₨\",PLN:\"zł\",PYG:\"Gs\",QAR:\"﷼\",RMB:\"￥\",RON:\"lei\",RSD:\"Дин.\",RUB:\"₽\",RWF:\"R₣\",SAR:\"﷼\",SBD:\"$\",SCR:\"₨\",SDG:\"ج.س.\",SEK:\"kr\",SGD:\"S$\",SHP:\"\\xa3\",SLL:\"Le\",SOS:\"S\",SRD:\"$\",SSP:\"\\xa3\",STD:\"Db\",STN:\"Db\",SVC:\"$\",SYP:\"\\xa3\",SZL:\"E\",THB:\"฿\",TJS:\"SM\",TMT:\"T\",TND:\"د.ت\",TOP:\"T$\",TRL:\"₤\",TRY:\"₺\",TTD:\"TT$\",TVD:\"$\",TWD:\"NT$\",TZS:\"TSh\",UAH:\"₴\",UGX:\"USh\",USD:\"$\",UYI:\"UYI\",UYU:\"$U\",UYW:\"UYW\",UZS:\"лв\",VEF:\"Bs\",VES:\"Bs.S\",VND:\"₫\",VUV:\"VT\",WST:\"WS$\",XAF:\"FCFA\",XBT:\"Ƀ\",XCD:\"$\",XOF:\"CFA\",XPF:\"₣\",XSU:\"Sucre\",XUA:\"XUA\",YER:\"﷼\",ZAR:\"R\",ZMW:\"ZK\",ZWD:\"Z$\",ZWL:\"$\"};/**\n * Get currency symbol by currency code\n * @param currencyCode - ISO 4217 currency code (e.g., \"USD\", \"EUR\", \"GBP\")\n * @returns Currency symbol or the currency code if not found\n */export const getCurrencySymbol=currencyCode=>{return CURRENCY_SYMBOLS[currencyCode]||currencyCode;};\nexport const __FramerMetadata__ = {\"exports\":{\"getCurrencySymbol\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CURRENCY_SYMBOLS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Currency_symbols.map","import{ControlType}from\"framer\";import{CURRENCY_SYMBOLS}from\"https://framerusercontent.com/modules/gNrx5shePoNxbUKTvliC/HLQJlFFZMsPSLpGIiDtr/Currency_symbols.js\";export function formatCurrency({amount,currencyCode,options}){amount=amount||0;const showDecimals=options.decimals==\"auto\"?amount%1!==0:options.decimals==\"always\";const decimals=showDecimals?2:0;let formattedAmount=\"\";if(options.formatted&&typeof Intl!==\"undefined\"){const locale=options.locale||(typeof navigator!==\"undefined\"?navigator.language:\"en-us\");const formatter=new Intl.NumberFormat(locale,{minimumFractionDigits:decimals,maximumFractionDigits:decimals});formattedAmount=formatter.format(amount);}else{formattedAmount=amount.toFixed(decimals);}if(!currencyCode||currencyCode===\"XXX\"){return formattedAmount;}const symbol=CURRENCY_SYMBOLS[currencyCode];if(options.style===\"code\"){return options.location===\"before\"?`${currencyCode} ${formattedAmount}`:`${formattedAmount} ${currencyCode}`;}else{return options.location===\"before\"?`${symbol}${formattedAmount}`:`${formattedAmount}${symbol}`;}}export const CurrencyFormatControls={currencyFormat:{type:ControlType.Object,title:\"Format\",controls:{style:{type:ControlType.Enum,defaultValue:\"symbol\",options:[\"symbol\",\"code\"],optionTitles:[\"Symbol ($)\",\"Code (USD)\"],displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},location:{type:ControlType.Enum,defaultValue:\"before\",options:[\"before\",\"after\"],optionTitles:[\"Before\",\"After\"],displaySegmentedControl:true},decimals:{type:ControlType.Enum,defaultValue:\"auto\",options:[\"auto\",\"always\",\"never\"],optionTitles:[\"Auto\",\"Show (10.00)\",\"Hide (10)\"],displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},formatted:{type:ControlType.Boolean,defaultValue:true},locale:{type:ControlType.String,defaultValue:\"\",placeholder:`Auto (${typeof navigator!==\"undefined\"?navigator.language:\"\"})`,description:\"Formatting examples:\\n*1,000* | *1.000* | *1 000*\",hidden:props=>!props.formatted}},hidden:props=>props.type!==\"subtotal\"}};\nexport const __FramerMetadata__ = {\"exports\":{\"formatCurrency\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CurrencyFormatControlsProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CurrencyFormatControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Shared_currency_props.map","import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{SHARED_COLORS}from\"https://framerusercontent.com/modules/Nrs4jz2AAEOfEZRQEQij/7Ao2SBt1Ssf683HHXgzl/Shared_styles.js\";import{withCSS}from\"framer\";export const pulseKeyframes=`\n  @keyframes pulse {\n    0%, 100% {\n      opacity: 1;\n    }\n    50% {\n      opacity: 0.5;\n    }\n  }\n`;function LoadingSkeletonWithoutCss({style}){return /*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"16px\",backgroundColor:SHARED_COLORS.backgroundMuted,borderRadius:\"10px\",animation:\"pulse 1.5s ease-in-out infinite\",...style}})});}const LoadingSkeleton=withCSS(LoadingSkeletonWithoutCss,[pulseKeyframes],\"\");export default LoadingSkeleton;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LoadingSkeleton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"pulseKeyframes\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Loading_skeleton.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{ControlType}from\"framer\";export function renderWithTag(tag,content,style){const finalStyle={...style,margin:0,padding:0,whiteSpace:\"nowrap\"};switch(tag){case\"p\":return /*#__PURE__*/_jsx(\"p\",{style:finalStyle,children:content});case\"span\":return /*#__PURE__*/_jsx(\"span\",{style:finalStyle,children:content});case\"h1\":return /*#__PURE__*/_jsx(\"h1\",{style:finalStyle,children:content});case\"h2\":return /*#__PURE__*/_jsx(\"h2\",{style:finalStyle,children:content});case\"h3\":return /*#__PURE__*/_jsx(\"h3\",{style:finalStyle,children:content});case\"h4\":return /*#__PURE__*/_jsx(\"h4\",{style:finalStyle,children:content});case\"h5\":return /*#__PURE__*/_jsx(\"h5\",{style:finalStyle,children:content});case\"h6\":return /*#__PURE__*/_jsx(\"h6\",{style:finalStyle,children:content});}}export const TagPropertyControls={tag:{type:ControlType.Enum,options:[\"p\",\"span\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"],defaultValue:\"p\"}};\nexport const __FramerMetadata__ = {\"exports\":{\"renderWithTag\":{\"type\":\"reactComponent\",\"name\":\"renderWithTag\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"TagPropertyControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TagPropertyControlsProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TagType\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Shared_tag_props.map","export const ENV={ENVIRONMENT:{development:\"localReact\",staging:\"framer\",production:\"framer\"},BACKEND_URL:{development:\"http://localhost:8787\",staging:\"https://frameship-backend-staging.account-ba7.workers.dev\",production:\"https://frameship-backend.account-ba7.workers.dev\"},BACKEND_API_KEY:{development:\"9692aec79a1b5ad3546e7fa02e1046195a85ff2dee60c1fdecf95d446ff16789\",staging:\"58b5bdccbf6f33a5f381fcfbe85bfa5e242bf5d62fadcb5fc30029290434142d\",production:\"9c170a2a758c830a7b191139343767cea3734f5e8c499e8f21d0dcc3a7979805\"}};\nexport const __FramerMetadata__ = {\"exports\":{\"ENV\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Env.map","function _define_property(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}class LicenseCache{// Get cached license data\nget(){// First check in-memory cache (fastest)\nif(this.memoryCache&&this.memoryCacheTime&&Date.now()-this.memoryCacheTime<this.cacheDuration){return this.memoryCache;}// Then check localStorage (cross-tab persistence)\ntry{const stored=localStorage.getItem(this.cacheKey);if(stored){const parsed=JSON.parse(stored);if(parsed.data&&parsed.timestamp&&Date.now()-parsed.timestamp<this.cacheDuration){// Update memory cache\nthis.memoryCache=parsed.data;this.memoryCacheTime=parsed.timestamp;return parsed.data;}}}catch(error){console.warn(\"Error reading license cache from localStorage:\",error);}return null;}// Set license data in cache\nset(data){const cacheData={data:data,timestamp:Date.now()};// Update memory cache\nthis.memoryCache=data;this.memoryCacheTime=cacheData.timestamp;// Update localStorage\ntry{localStorage.setItem(this.cacheKey,JSON.stringify(cacheData));}catch(error){console.warn(\"Error saving license cache to localStorage:\",error);}}// Clear cache\nclear(){this.memoryCache=null;this.memoryCacheTime=null;try{localStorage.removeItem(this.cacheKey);}catch(error){console.warn(\"Error clearing license cache from localStorage:\",error);}}// Check if cache is valid\nisValid(){const cached=this.get();return cached!==null;}constructor(cacheDuration=6e4){_define_property(this,\"cacheDuration\",void 0);_define_property(this,\"cacheKey\",void 0);_define_property(this,\"memoryCache\",void 0);_define_property(this,\"memoryCacheTime\",void 0);// 1 minute default\nthis.cacheDuration=cacheDuration;this.cacheKey=\"frameship-license-cache\";this.memoryCache=null;this.memoryCacheTime=null;}}// Export singleton instance\nexport const licenseCache=new LicenseCache(6e4);\nexport const __FramerMetadata__ = {\"exports\":{\"licenseCache\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LicenseCacheData\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./License_cache.map","import{ENV}from\"https://framerusercontent.com/modules/pKQXtSIFOkUZHJ1ZIH57/NoFEn9zQllmpSUGUHGAx/Env.js\";export async function backendClient(props){const{method,endpoint,params,body}=props;const queryString=new URLSearchParams(params).toString();const url=params?`${ENV.BACKEND_URL.production}${endpoint}?${queryString}`:`${ENV.BACKEND_URL.production}${endpoint}`;const response=await fetch(url,{method,headers:{\"Content-Type\":\"application/json\",\"X-API-Key\":ENV.BACKEND_API_KEY.production},body});if(!response.ok){throw new Error(`Backend API request failed: ${response.status} ${response.statusText}`);}const data=await response.json();return data;}\nexport const __FramerMetadata__ = {\"exports\":{\"backendClient\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{licenseCache}from\"https://framerusercontent.com/modules/U32JRYBcPmO9IzIRP4Rj/GrFKLNDUaXKzMFWb6e2Q/License_cache.js\";import{getLicenseId}from\"https://framerusercontent.com/modules/TgekT24FCXsp3m1M9KnX/51KiLjOfRPpzwxhbKXBD/Get_shopify_config.js\";import{backendClient}from\"https://framerusercontent.com/modules/b3e85pFcNFtqTX3XSv9e/zlEwUvz0VIXD7QVrXdd1/Backend_client.js\";export async function fetchLicense(){// Check cache first\nconst cached=licenseCache.get();if(cached){return cached;}// Cache miss - make API call\n// console.log(\"License cache miss - fetching from API\");\n// Check if we're in a browser environment\nif(typeof window===\"undefined\"){throw new Error(\"License check requires browser environment\");}// Get license ID from script tag\nconst licenseId=getLicenseId();if(!licenseId){// If no license ID, assume free license\nreturn{free:true};}// Get current URL\nconst currentUrl=encodeURIComponent(window.location.href);// Make request to backend license endpoint using backendClient\nconst licenseData=await backendClient({method:\"GET\",endpoint:\"/license-check\",params:{url:currentUrl,license_id:licenseId}});// Cache the response\nlicenseCache.set(licenseData);return licenseData;}\nexport const __FramerMetadata__ = {\"exports\":{\"fetchLicense\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Licence_service.map","import{useQuery}from\"https://framerusercontent.com/modules/EsOvuK0xi7z7RIQRkokm/o6ldhcInFD0f6tYPAqS1/Tanstack_query.js\";import{licenseCache}from\"https://framerusercontent.com/modules/U32JRYBcPmO9IzIRP4Rj/GrFKLNDUaXKzMFWb6e2Q/License_cache.js\";import{fetchLicense}from\"https://framerusercontent.com/modules/JhvDT64z5Z8fFnafHobq/42SKJ2i3RMQ8bM7VMKUY/Licence_service.js\";export const LICENSE_QUERY_KEYS={all:[\"license\"]};export const useLicense=()=>{const{data,isLoading,error}=useQuery({queryKey:LICENSE_QUERY_KEYS.all,queryFn:fetchLicense,staleTime:6e4,gcTime:5*60*1e3,retry:1});// If API fails, try to use cached data as fallback\nconst cachedData=licenseCache.get();const licenseData=data||cachedData;return{isFree:licenseData?.free===true,isLoading,error:error||null};};\nexport const __FramerMetadata__ = {\"exports\":{\"LICENSE_QUERY_KEYS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useLicense\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{ControlType}from\"framer\";export const TextDecorationControls={decoration:{type:ControlType.Enum,title:\"Decoration\",options:[\"none\",\"underline\",\"line-through\"],optionTitles:[\"None\",\"Underline\",\"Strikethrough\"],defaultValue:\"none\"}};\nexport const __FramerMetadata__ = {\"exports\":{\"TextDecorationControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TextDecorationControlsProps\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TextDecoration\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Shared_text_decoration_props.map","/**\n * Calculates the adjusted price for a variant based on selling plan price adjustments\n * @param basePrice - The base price of the variant\n * @param sellingPlan - The selling plan with price adjustments\n * @returns The adjusted price data, or null if no adjustments apply\n */export function calculateSellingPlanPrice(basePrice,sellingPlan){if(!sellingPlan?.priceAdjustments?.length){return null;}const adjustment=sellingPlan.priceAdjustments[0]?.adjustmentValue;if(!adjustment){return null;}const baseAmount=Number(basePrice.amount);// Case 1: Fixed price override\nif(\"price\"in adjustment){return{amount:adjustment.price.amount,currencyCode:adjustment.price.currencyCode||basePrice.currencyCode};}// Case 2: Percentage adjustment (e.g., -10 means 10% discount)\nif(\"adjustmentPercentage\"in adjustment){const percentage=adjustment.adjustmentPercentage;const adjustedAmount=baseAmount*(1-percentage/100);return{amount:adjustedAmount.toFixed(2),currencyCode:basePrice.currencyCode};}// Case 3: Fixed amount adjustment\nif(\"adjustmentAmount\"in adjustment){const adjustmentAmount=Number(adjustment.adjustmentAmount.amount);const adjustedAmount=baseAmount-adjustmentAmount;return{amount:adjustedAmount.toFixed(2),currencyCode:adjustment.adjustmentAmount.currencyCode||basePrice.currencyCode};}return null;}/**\n * Converts delivery frequency string to shorthand format\n * Examples:\n * - \"monthly\" → \"m\"\n * - \"month\" → \"m\"\n * - \"2 months\" → \"2m\"\n * - \"weekly\" → \"w\"\n * - \"3 weeks\" → \"3w\"\n * - \"daily\" → \"d\"\n * - \"yearly\" → \"y\"\n * - \"1 year\" → \"1y\"\n */export function formatDeliveryFrequencyShorthand(frequency){const normalized=frequency.toLowerCase().trim();// Extract number if present (e.g., \"2 months\" → \"2\")\nconst numberMatch=normalized.match(/^(\\d+)\\s*/);const number=numberMatch?numberMatch[1]:\"\";// Remove number and normalize the remaining text\nconst text=normalized.replace(/^\\d+\\s*/,\"\").trim();// Map time units to shorthand\nconst unitMap={day:\"d\",days:\"d\",daily:\"d\",week:\"w\",weeks:\"w\",weekly:\"w\",month:\"m\",months:\"m\",monthly:\"m\",year:\"y\",years:\"y\",yearly:\"y\"};const shorthand=unitMap[text]||text;// Return formatted: number + shorthand (e.g., \"2m\" or just \"m\")\nreturn number?`${number}${shorthand}`:shorthand;}\nexport const __FramerMetadata__ = {\"exports\":{\"formatDeliveryFrequencyShorthand\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"calculateSellingPlanPrice\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Subscriptions_utils.map"],"mappings":"wTAAa,EAAiB,CAAC,IAAI,MAAM,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,IAAI,OAAO,IAAI,MAAM,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,IAAI,MAAM,IAAI,KAAK,IAAI,IAAI,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,MAAM,IAAI,IAAI,IAAI,KAAK,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,IAAI,IAAI,IAAO,IAAI,IAAO,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,IAAI,MAAM,IAAI,KAAK,IAAI,MAAM,IAAI,KAAK,IAAI,KAAK,IAAI,IAAO,IAAI,MAAM,IAAI,KAAK,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAO,IAAI,IAAO,IAAI,IAAI,IAAI,IAAO,IAAI,IAAI,IAAI,MAAM,IAAI,IAAO,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,IAAI,KAAK,IAAI,IAAI,IAAI,IAAO,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI,IAAI,KAAK,IAAI,IAAO,IAAI,KAAK,IAAI,KAAK,IAAI,IAAO,IAAI,MAAM,IAAI,KAAK,IAAI,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