{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/8P98U81SfrxTOovDbdnU/4rJkdDVehsuctWXO1yEe/Productdescriptionv2.js", "ssg:https://framerusercontent.com/modules/7K4sG3c2XzIqM5D9dM7b/b3y3RV0L3ZNDxfVj4pNV/Productimage_v2.js", "ssg:https://framerusercontent.com/modules/6a7fkk97b3pLljfWnJiV/xvqOgqZlJE3HaJ9iCHqC/Shopifytitlev2.js", "ssg:https://framerusercontent.com/modules/piCfprKhlMSQxEVRRszL/AjViMyhY6uJUke0b8Zef/pk1wLVFuG.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{ControlType,addPropertyControls}from\"framer\";const storefrontAccessToken=\"8a5db193784966bd9bbd3a6b79c0b1bc\";const shopifyDomain=\"fluence-org.myshopify.com\";// Function to fetch product description from Shopify\nasync function fetchProductDescription(productGID){const query=`{\n        product(id: \"${productGID}\") {\n            description\n        }\n    }`;try{const response=await fetch(`https://${shopifyDomain}/api/2025-01/graphql.json`,{method:\"POST\",headers:{\"Content-Type\":\"application/json\",\"X-Shopify-Storefront-Access-Token\":storefrontAccessToken},body:JSON.stringify({query})});const result=await response.json();console.log(\"GraphQL Response for Description:\",result)// Debugging\n;if(result.data&&result.data.product&&result.data.product.description){return result.data.product.description;}else{console.error(\"Product description not found:\",result);return\"\";}}catch(error){console.error(\"Error fetching product description:\",error);return\"\";}}export function ProductDescription(props){const{productGID}=props;const[description,setDescription]=useState(\"\");const[error,setError]=useState(false);useEffect(()=>{if(!productGID){setError(true);return;}async function getProductDescription(){const fetchedDescription=await fetchProductDescription(productGID);if(fetchedDescription){setDescription(fetchedDescription);}else{setError(true);}}getProductDescription();},[productGID]);if(error||!description){return null// Hide component entirely if no description\n;}return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"flex-start\",justifyContent:\"flex-start\",width:\"100%\",height:\"100%\",textAlign:\"left\",color:\"#171738\",fontFamily:\"Open Sauce Sans Regular, sans-serif\",fontWeight:400,fontSize:\"14px\",lineHeight:\"1.5\",overflowWrap:\"break-word\",wordWrap:\"break-word\",wordBreak:\"break-word\"},children:description});}ProductDescription.defaultProps={productGID:\"\"};addPropertyControls(ProductDescription,{productGID:{type:ControlType.String,title:\"Product GID\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"ProductDescription\":{\"type\":\"reactComponent\",\"name\":\"ProductDescription\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Productdescriptionv2.map", "import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{ControlType,addPropertyControls}from\"framer\";const storefrontAccessToken=\"8a5db193784966bd9bbd3a6b79c0b1bc\";const shopifyDomain=\"fluence-org.myshopify.com\";// Function to fetch product image from Shopify\nasync function fetchProductImage(productGID){const query=`{\n        product(id: \"${productGID}\") {\n            images(first: 1) {\n                edges {\n                    node {\n                        originalSrc\n                    }\n                }\n            }\n        }\n    }`;try{const response=await fetch(`https://${shopifyDomain}/api/2025-01/graphql.json`,{method:\"POST\",headers:{\"Content-Type\":\"application/json\",\"X-Shopify-Storefront-Access-Token\":storefrontAccessToken},body:JSON.stringify({query})});const result=await response.json();if(result.data&&result.data.product&&result.data.product.images.edges.length>0){return result.data.product.images.edges[0].node.originalSrc;}else{console.error(\"Product image not found:\",result);return null;}}catch(error){console.error(\"Error fetching product image:\",error);return null;}}export function ProductImage(props){const{productGID}=props;const[imageSrc,setImageSrc]=useState(\"\");const[loading,setLoading]=useState(true);const[error,setError]=useState(null);useEffect(()=>{if(!productGID)return;async function getProductImage(){setLoading(true);const image=await fetchProductImage(productGID);if(image){setImageSrc(image);}else{setError(\"No image available for this product.\");}setLoading(false);}getProductImage();},[productGID]);if(loading){return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",backgroundColor:\"#f0f0f0\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:24,height:24,border:\"4px solid #ccc\",borderTop:\"4px solid #333\",borderRadius:\"50%\",animation:\"spin 1s linear infinite\"}}),/*#__PURE__*/_jsx(\"style\",{children:`\n                    @keyframes spin {\n                        0% { transform: rotate(0deg); }\n                        100% { transform: rotate(360deg); }\n                    }\n                `})]});}if(error){return /*#__PURE__*/_jsx(\"div\",{children:error});}return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"auto\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"img\",{src:imageSrc,alt:\"Product\",style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}})});}ProductImage.defaultProps={productGID:\"\"};addPropertyControls(ProductImage,{productGID:{type:ControlType.String,title:\"Product GID\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"ProductImage\":{\"type\":\"reactComponent\",\"name\":\"ProductImage\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Productimage_v2.map", "import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{ControlType,addPropertyControls}from\"framer\";const storefrontAccessToken=\"8a5db193784966bd9bbd3a6b79c0b1bc\";const shopifyDomain=\"fluence-org.myshopify.com\";// Function to fetch product title from Shopify\nasync function fetchProductTitle(productGID){const query=`{\n        product(id: \"${productGID}\") {\n            title\n        }\n    }`;try{const response=await fetch(`https://${shopifyDomain}/api/2025-01/graphql.json`,{method:\"POST\",headers:{\"Content-Type\":\"application/json\",\"X-Shopify-Storefront-Access-Token\":storefrontAccessToken},body:JSON.stringify({query})});const result=await response.json();console.log(\"GraphQL Response for Title:\",result)// Debugging\n;if(result.data&&result.data.product&&result.data.product.title){return result.data.product.title;}else{console.error(\"Product title not found:\",result);return\"Product Title Not Available\";}}catch(error){console.error(\"Error fetching product title:\",error);return\"Error Loading Title\";}}export function ProductTitle(props){const{productGID}=props;const[title,setTitle]=useState(\"Loading...\");const[error,setError]=useState(null);useEffect(()=>{if(!productGID){setError(\"Invalid Product GID\");setTitle(\"No Product GID Provided\");return;}async function getProductTitle(){const fetchedTitle=await fetchProductTitle(productGID);if(fetchedTitle){setTitle(fetchedTitle);}else{setError(\"Failed to load product title.\");}}getProductTitle();},[productGID]);if(error){return /*#__PURE__*/_jsx(\"div\",{children:error});}return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"flex-start\",justifyContent:\"flex-start\",width:\"100%\",height:\"100%\",textAlign:\"left\",color:\"#171738\",fontFamily:\"Open Sauce Sans ExtraBold, sans-serif\",fontWeight:800,fontSize:\"20px\",lineHeight:\"1.2\",overflowWrap:\"break-word\",wordWrap:\"break-word\",wordBreak:\"break-word\"},children:title});}ProductTitle.defaultProps={productGID:\"\"};addPropertyControls(ProductTitle,{productGID:{type:ControlType.String,title:\"Product GID\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"ProductTitle\":{\"type\":\"reactComponent\",\"name\":\"ProductTitle\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Shopifytitlev2.map", "// Generated by Framer (4240133)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"CUSTOM;Open Sauce Sans Bold\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"Open Sauce Sans Bold\",source:\"custom\",url:\"https://framerusercontent.com/assets/14ekUNlj0vS79oF2mPCC9M9Rng.woff2\"}]}];export const css=['.framer-BzYw6 .framer-styles-preset-1emq41p:not(.rich-text-wrapper), .framer-BzYw6 .framer-styles-preset-1emq41p.rich-text-wrapper p { --framer-font-family: \"Open Sauce Sans Bold\", \"Open Sauce Sans Bold Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: 0em; --framer-line-height: 1.2em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: #3423a6; --framer-text-decoration: underline; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }'];export const className=\"framer-BzYw6\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "sHAAqI,IAAMA,EAAsB,mCAAyCC,EAAc,4BACxN,eAAeC,EAAwBC,EAAW,CAAC,IAAMC,EAAM;AAAA,uBACxCD,CAAU;AAAA;AAAA;AAAA,OAG1B,GAAG,CAAoO,IAAME,EAAO,MAAjO,MAAM,MAAM,WAAWJ,CAAa,4BAA4B,CAAC,OAAO,OAAO,QAAQ,CAAC,eAAe,mBAAmB,oCAAoCD,CAAqB,EAAE,KAAK,KAAK,UAAU,CAAC,MAAAI,CAAK,CAAC,CAAC,CAAC,GAA8B,KAAK,EAC9Q,OADgR,QAAQ,IAAI,oCAAoCC,CAAM,EACnUA,EAAO,MAAMA,EAAO,KAAK,SAASA,EAAO,KAAK,QAAQ,YAAoBA,EAAO,KAAK,QAAQ,aAAkB,QAAQ,MAAM,iCAAiCA,CAAM,EAAQ,GAAI,OAAOC,EAAM,CAAC,eAAQ,MAAM,sCAAsCA,CAAK,EAAQ,EAAG,CAAC,CAAQ,SAASC,EAAmBC,EAAM,CAAC,GAAK,CAAC,WAAAL,CAAU,EAAEK,EAAW,CAACC,EAAYC,CAAc,EAAEC,EAAS,EAAE,EAAO,CAACL,EAAMM,CAAQ,EAAED,EAAS,EAAK,EAA2R,OAAzRE,EAAU,IAAI,CAAC,GAAG,CAACV,EAAW,CAACS,EAAS,EAAI,EAAE,M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F,EAAa,aAAa,CAAC,WAAW,EAAE,EAAEU,EAAoBV,EAAa,CAAC,WAAW,CAAC,KAAKW,EAAY,OAAO,MAAM,cAAc,aAAa,EAAE,CAAC,CAAC,ECLlwCC,EAAU,UAAU,CAAC,6BAA6B,CAAC,EAAS,IAAMC,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,OAAO,uBAAuB,OAAO,SAAS,IAAI,uEAAuE,CAAC,CAAC,CAAC,EAAeC,EAAI,CAAC,mrBAAmrB,EAAeC,EAAU",
  "names": ["storefrontAccessToken", "shopifyDomain", "fetchProductDescription", "productGID", "query", "result", "error", "ProductDescription", "props", "description", "setDescription", "ye", "setError", "ue", "getProductDescription", "fetchedDescription", "p", "addPropertyControls", "ControlType", "storefrontAccessToken", "shopifyDomain", "fetchProductImage", "productGID", "query", "result", "error", "ProductImage", "props", "imageSrc", "setImageSrc", "ye", "loading", "setLoading", "setError", "ue", "getProductImage", "image", "u", "p", "addPropertyControls", "ControlType", "storefrontAccessToken", "shopifyDomain", "fetchProductTitle", "productGID", "query", "result", "error", "ProductTitle", "props", "title", "setTitle", "ye", "setError", "ue", "getProductTitle", "fetchedTitle", "p", "addPropertyControls", "ControlType", "fontStore", "fonts", "css", "className"]
}
