{"version":3,"file":"PricingFunction.CEaGJ9DN.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Od3S7CQSsD4ikilE3WtS/oeMhFaffAOiPPHNZLLjL/PricingFunction.js"],"sourcesContent":["/*\nBASIC PLAN              PREMIUM PLAN                ENTERPRISE PLAN\n    99                       999                          9999\n*/import{jsx as _jsx}from\"react/jsx-runtime\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";const useStore=createStore({period:\"month\",symbol:\"$\",price:{basic:[\"29\",\"222\"],premium:[\"59\",\"555\"],enterprise:[\"99\",\"999\"]},countrySymbol:{dollar:[\"$\",\"₹\"]}});export function withTogglePeriod(Component){return props=>{const[store,setStore]=useStore();const newStore=store.period===\"month\"?\"year\":\"month\";const variant=store.period===\"month\"?\"Monthly\":\"Annual\";// console.log(store.period)\nreturn /*#__PURE__*/_jsx(Component,{...props,variant:variant,onClick:()=>setStore({period:newStore})});};}export function SymbolFun(Component){return props=>{const[store,setStore]=useStore();const newStore=store.symbol===\"$\"?\"₹\":\"$\";const variant=store.symbol===\"$\"?\"USD\":\"INR\";// console.log(store.period)\nreturn /*#__PURE__*/_jsx(Component,{...props,variant:variant,onClick:()=>setStore({symbol:newStore})});};}export function SymbolBro(Component){return props=>{const[store,setStore]=useStore();const index=store.symbol===\"$\"?0:1;return /*#__PURE__*/_jsx(Component,{...props,text:store.countrySymbol.dollar[index]});};}export function withBasicPrice(Component){return props=>{const[store,setStore]=useStore();const index=store.period===\"month\"?0:1;return /*#__PURE__*/_jsx(Component,{...props,text:store.price.basic[index]});};}export function withPremiumPrice(Component){return props=>{const[store,setStore]=useStore();const index=store.period===\"month\"?0:1;return /*#__PURE__*/_jsx(Component,{...props,text:store.price.premium[index]});};}export function withEnterprisePrice(Component){return props=>{const[store,setStore]=useStore();const index=store.period===\"month\"?0:1;return /*#__PURE__*/_jsx(Component,{...props,text:store.price.enterprise[index]});};}export function withPeriod(Component){return props=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{...props,text:`${store.period}`});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withTogglePeriod\":{\"type\":\"reactHoc\",\"name\":\"withTogglePeriod\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SymbolBro\":{\"type\":\"reactHoc\",\"name\":\"SymbolBro\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SymbolFun\":{\"type\":\"reactHoc\",\"name\":\"SymbolFun\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withEnterprisePrice\":{\"type\":\"reactHoc\",\"name\":\"withEnterprisePrice\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPeriod\":{\"type\":\"reactHoc\",\"name\":\"withPeriod\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBasicPrice\":{\"type\":\"reactHoc\",\"name\":\"withBasicPrice\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPremiumPrice\":{\"type\":\"reactHoc\",\"name\":\"withPremiumPrice\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PricingFunction.map"],"mappings":"6MAGmR,SAAgB,EAAiB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAM,GAAU,GAAU,CAAO,EAAS,EAAM,SAAS,QAAQ,OAAO,QAAc,EAAQ,EAAM,SAAS,QAAQ,UAAU,SACnd,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAc,UAAQ,YAAY,EAAS,CAAC,OAAO,EAAS,CAAC,CAAC,CAAC,EAAI,SAAgB,EAAU,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAM,GAAU,GAAU,CAAO,EAAS,EAAM,SAAS,IAAI,IAAI,IAAU,EAAQ,EAAM,SAAS,IAAI,MAAM,MAChR,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAc,UAAQ,YAAY,EAAS,CAAC,OAAO,EAAS,CAAC,CAAC,CAAC,EAAI,SAAgB,EAAU,EAAU,CAAC,M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