{"version":3,"file":"shared-lib.B-eDYMJy.mjs","names":["e","t","r","n","c","o","a","s","useState"],"sources":["https:/framerusercontent.com/modules/ieMSnIJVCiFKJmsg1OmM/KWFJj6n258MVreTmJoNk/Zustand.js","https:/framerusercontent.com/modules/0cFx6PDS8kp3yxNfnoIw/3wFcPS10LYSFljb1q710/Framer_utils.js","https:/framerusercontent.com/modules/TgekT24FCXsp3m1M9KnX/51KiLjOfRPpzwxhbKXBD/Get_shopify_config.js","https:/framerusercontent.com/modules/c5gtsBimYk7u4sSXwOlt/qYF6ekN6aOwuxUWbCTWd/Shopify_client.js","https:/framerusercontent.com/modules/8QjUc9Jkwl7yjf0RfXxm/XhYNCNS7ORfWJUFYlPGJ/siteMetadata.js"],"sourcesContent":["import e from\"react\";var t,r={},n={};function c(){if(t)return n;t=1;const e=e=>{let t;const r=new Set,n=(e,n)=>{const c=\"function\"==typeof e?e(t):e;if(!Object.is(c,t)){const e=t;t=(null!=n?n:\"object\"!=typeof c||null===c)?c:Object.assign({},t,c),r.forEach(r=>r(t,e));}},c=()=>t,o={setState:n,getState:c,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e))},a=t=e(n,c,o);return o;};return n.createStore=t=>t?e(t):e,n;}var o,a,u={};function s(){if(o)return u;o=1;var t=e,r=c();const n=e=>e;function a(e,r=n){const c=t.useSyncExternalStore(e.subscribe,t.useCallback(()=>r(e.getState()),[e,r]),t.useCallback(()=>r(e.getInitialState()),[e,r]));return t.useDebugValue(c),c;}const s=e=>{const t=r.createStore(e),n=e=>a(t,e);return Object.assign(n,t),n;};return u.create=e=>e?s(e):s,u.useStore=a,u;}function i(){return a||(a=1,function(e){var t=c(),r=s();Object.keys(t).forEach(function(r){\"default\"===r||Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r];}});}),Object.keys(r).forEach(function(t){\"default\"===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t];}});});}(r)),r;}var f=i().create;export{f as create};\nexport const __FramerMetadata__ = {\"exports\":{\"create\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Zustand.map","import{RenderTarget}from\"framer\";import{useEffect,useState}from\"react\";export function isOnFramerCanvasFn(){return RenderTarget.hasRestrictions();}export function isBrowserFn(){return typeof window!==\"undefined\";}export function useIsInFramerPreview(){const[isInFramerPreview,setIsInFramerPreview]=useState(false);useEffect(()=>{if(typeof window==\"undefined\")return;const currrentUrl=window.location.href;const isInFramerPreview=currrentUrl.includes(\"framercanvas.com\");setIsInFramerPreview(isInFramerPreview);},[]);return isInFramerPreview;}\nexport const __FramerMetadata__ = {\"exports\":{\"isBrowserFn\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isOnFramerCanvasFn\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIsInFramerPreview\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Framer_utils.map","import{isBrowserFn}from\"https://framerusercontent.com/modules/0cFx6PDS8kp3yxNfnoIw/3wFcPS10LYSFljb1q710/Framer_utils.js\";let _cfg=null;export function getShopifyConfig(){const isBrowser=isBrowserFn();if(!isBrowser)return null;if(_cfg)return _cfg;// 1) JSON script\nconst el=document.getElementById(\"frameship-shopify-config\");if(el?.textContent){try{_cfg=JSON.parse(el.textContent);if(_cfg?.shop&&_cfg?.storefrontToken)return _cfg;}catch(error){console.error(\"Error parsing Shopify config:\",error);return null;}}// throw new Error(\"Frameship Shopify config not found on page.\");\nreturn null;}export function getLicenseId(){const config=getShopifyConfig();return config?.licenseId||null;}export function getIncludeSellingPlansFlag(){const config=getShopifyConfig();return config?.ff_include_selling_plans===true;}\nexport const __FramerMetadata__ = {\"exports\":{\"getLicenseId\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getIncludeSellingPlansFlag\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getShopifyConfig\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Get_shopify_config.map","import{getShopifyConfig}from\"https://framerusercontent.com/modules/TgekT24FCXsp3m1M9KnX/51KiLjOfRPpzwxhbKXBD/Get_shopify_config.js\";export async function shopifyClient({query,variables}){try{const config=getShopifyConfig();// Early return if config is null or missing required fields\nif(!config||!config.shop||!config.storefrontToken){return{data:null,errors:[{message:\"Shopify configuration is not available. Make sure the frameship-shopify-config script is present on the page.\"}]};}// Construct the Shopify GraphQL endpoint URL\nconst endpoint=`https://${config.shop}/api/${config.apiVersion}/graphql.json`;// Prepare the request body\nconst requestBody={query,...variables&&{variables}};// Make the fetch request\nconst response=await fetch(endpoint,{method:\"POST\",headers:{\"Content-Type\":\"application/json\",\"X-Shopify-Storefront-Access-Token\":config.storefrontToken},body:JSON.stringify(requestBody)});// Check if the response is ok\nif(!response.ok){return{data:null,errors:[{message:`Shopify API request failed: ${response.status} ${response.statusText}`}]};}// Parse the JSON response\nconst result=await response.json();// Check for GraphQL errors\nif(result.errors&&result.errors.length>0){const errorMessages=result.errors.map(error=>error.message).join(\", \");// throw new Error(`GraphQL errors: ${errorMessages}`);\nreturn{data:null,errors:[{message:`GraphQL errors: ${errorMessages}`}]};}// Return the data if everything is successful\nreturn{data:result.data,errors:[]};}catch(error){return{data:null,errors:[{message:`Unexpected error occurred: ${String(error)}`}]};}}\nexport const __FramerMetadata__ = {\"exports\":{\"shopifyClient\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (3df86f7)\nexport default function metadata(params,activeLocale){return{description:\"Thank Me Later prevents hangovers by supporting liver detox, replenishing antioxidants, and reducing inflammation, so your body clears toxins faster and you wake up with less fatigue, nausea, and brain fog.\",favicon:\"https://framerusercontent.com/assets/5MM5k6auqRYszdb4q84xvrmkxU.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/VQD0iOLrHddr6rosMVT5awq1ILY.png\",title:\"Thank Me Later - Hangover Recovery\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"iLAAqC,SAAS,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,IAAMA,EAAE,GAAG,CAAC,IAAIC,EAAQC,EAAE,IAAI,IAAIC,GAAG,EAAE,IAAI,CAAC,IAAMC,EAAc,OAAOJ,GAAnB,WAAqBA,EAAEC,EAAE,CAACD,EAAE,GAAG,CAAC,OAAO,GAAGI,EAAEH,EAAE,CAAC,CAAC,IAAMD,EAAEC,EAAE,EAASE,IAAc,OAAOC,GAAjB,WAA2BA,GAAGA,EAAE,OAAO,OAAO,EAAE,CAACH,EAAEG,EAAE,CAACF,EAAE,QAAQ,GAAGA,EAAED,EAAED,EAAE,CAAC,GAAII,MAAMH,EAAEI,EAAE,CAAC,SAASF,EAAE,SAASC,EAAE,oBAAoBE,EAAE,UAAU,IAAIJ,EAAE,IAAIF,EAAE,KAAKE,EAAE,OAAOF,EAAE,EAAE,CAACM,EAAE,EAAEN,EAAEG,EAAEC,EAAEC,EAAE,CAAC,OAAOA,GAAI,MAAO,GAAE,YAAY,GAAGJ,EAAED,EAAEC,EAAE,CAACD,EAAE,EAAgB,SAAS,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,IAAIC,EAAE,EAAEC,EAAE,GAAG,CAAC,IAAMC,EAAE,GAAGH,EAAE,SAASM,EAAE,EAAE,EAA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