{"version":3,"file":"Price_Calculation_Handler.DMv5E3kk.mjs","names":["useState","safeLocalStorage","useStore","useState","useState"],"sources":["https:/framerusercontent.com/modules/hH5ZdKkfYsdiKPjFg9On/vQQP16OtTBUdongLrpP4/Cart_View.js","https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/P74yOCgirLgXTjyXgFfH/en4orkYRSnGKKTM6ipDH/Price_Calculation_Handler.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useState}from\"react\";const safeLocalStorage={getItem:key=>{if(typeof window===\"undefined\")return null;try{return window.localStorage.getItem(key);}catch{return null;}},setItem:(key,value)=>{if(typeof window===\"undefined\")return;try{window.localStorage.setItem(key,value);}catch{}},removeItem:key=>{if(typeof window===\"undefined\")return;try{window.localStorage.removeItem(key);}catch{}}};export default function Cart_View(props){const[products,setProducts]=useState([]);const[currencySymbol,setCurrencySymbol]=useState(\"$\");const[currencyPosition,setCurrencyPosition]=useState(true);// Load currency settings\nuseEffect(()=>{if(typeof window!==\"undefined\"){const symbol=safeLocalStorage.getItem(\"currency-symbol\")||\"$\";const position=safeLocalStorage.getItem(\"currency-position\");const isPrefix=position===\"true\"||position===true||position===null;setCurrencySymbol(symbol);setCurrencyPosition(isPrefix);}},[]);// Update cart items from localStorage\nuseEffect(()=>{const updateItemsFromStorage=()=>{const cartItems=safeLocalStorage.getItem(\"cart-items\");const savedData=JSON.parse(cartItems)||[];setProducts(savedData);};updateItemsFromStorage();const pollingInterval=setInterval(()=>{updateItemsFromStorage();},500);return()=>{clearInterval(pollingInterval);};},[]);// Format price with currency\nconst formatPrice=price=>{const priceStr=price.toFixed(2);return currencyPosition?`${currencySymbol}${priceStr}`:`${priceStr}${currencySymbol}`;};// Extract variant option from product name or additionalData\nconst getVariantOption=product=>{// If we have a variant name, extract the option part\nif(product.variantName){const parts=product.variantName.split(\"/\");if(parts.length>=2){// Return everything after the last \"/\"\nconst option=parts[parts.length-1].trim();if(option)return option// Only return if not empty\n;}// If no slash or empty result, check if it's different from productName\nif(product.variantName!==product.productName){return product.variantName;}}// Fallback to Size from additionalData\nif(product.additionalData?.[0]?.Size){return product.additionalData[0].Size;}// No option found\nreturn\"\";};// Get clean product name (without variant suffix)\nconst getCleanProductName=product=>{const fullName=product.variantName||product.productName;// Pattern: \"Jollof Rice /Bulk Small Tray\"\n// We want to keep \"Jollof Rice /Bulk\" and remove \"Small Tray\"\nconst slashParts=fullName.split(\"/\");if(slashParts.length>=3){// \"Product Name /Bulk Small Tray\" -> \"Product Name /Bulk\"\nreturn`${slashParts[0].trim()} /${slashParts[1].trim()}`;}else if(slashParts.length===2){const secondPart=slashParts[1].trim();if(secondPart.includes(\" \")){// \"Product Name /Small Tray\" -> \"Product Name\"\nreturn slashParts[0].trim();}// \"Product Name /Bulk\" -> keep both\nreturn fullName;}return fullName;};// Handle quantity update\nconst handleUpdateQuantity=(uid,newQuantity)=>{if(newQuantity<1||newQuantity>99)return;const updatedProducts=products.map(product=>{if(product.uid===uid){const totalPrice=(product.price*newQuantity).toFixed(2);return{...product,quantity:newQuantity,totalPrice:parseFloat(totalPrice)};}return product;});setProducts(updatedProducts);safeLocalStorage.setItem(\"cart-items\",JSON.stringify(updatedProducts));};// Handle product delete\nconst handleProductDelete=uid=>{const updatedItems=products.filter(product=>product.uid!==uid);setProducts(updatedItems);safeLocalStorage.setItem(\"cart-items\",JSON.stringify(updatedItems));};const{containerStyle,imageStyle,titleStyle,priceStyle,optionStyle,quantityCounterStyles,layoutStyle}=props.styles;// Styles\nconst cartItemContainerStyles={width:\"100%\",height:\"fit-content\",padding:\"0px\",display:\"flex\",gap:`${layoutStyle?.itemGap||16}px`,borderBottom:`${containerStyle.borderWidth||1}px solid ${containerStyle.dividerColor}`,marginBottom:`${layoutStyle?.spaceBetweenItems||8}px`};const imageContainerStyles={backgroundColor:imageStyle.bgColor,width:`${imageStyle.width}px`,height:`${imageStyle.height}px`,minWidth:`${imageStyle.width}px`,flexShrink:0,padding:imageStyle.padding,borderRadius:imageStyle.borderRadius,overflow:\"hidden\"};const imageStyles={width:\"100%\",height:\"100%\",objectFit:imageStyle.fill,borderRadius:imageStyle.borderRadius};const contentWrapperStyles={display:\"flex\",flex:1,justifyContent:\"space-between\",gap:`${layoutStyle?.contentGap||24}px`,margin:\"8px\"};const textContainerStyles={display:\"flex\",flexDirection:\"column\",gap:`${layoutStyle?.textGap||8}px`,flex:1,justifyContent:\"center\"};const titlePriceRowStyles={display:\"flex\",flexDirection:\"row\",justifyContent:\"space-between\"};const nameStyles={margin:0,color:titleStyle.color,fontFamily:titleStyle.font.fontFamily,fontSize:titleStyle.font.fontSize,fontWeight:titleStyle.font.fontWeight,lineHeight:titleStyle.font.lineHeight};const priceStyles={color:priceStyle.color,margin:0,fontSize:priceStyle.font.fontSize,fontFamily:priceStyle.font.fontFamily,fontWeight:priceStyle.font.fontWeight,lineHeight:priceStyle.font.lineHeight};const optionStyles={color:optionStyle.color,fontSize:optionStyle.font.fontSize,fontFamily:optionStyle.font.fontFamily,fontWeight:optionStyle.font.fontWeight,lineHeight:optionStyle.font.lineHeight,margin:0};const optionLabelStyle={color:optionStyle.labelColor};const deleteButtonStyles={border:\"none\",cursor:\"pointer\",backgroundColor:\"transparent\",padding:\"4px\",display:\"flex\",alignItems:\"flex-start\",justifyContent:\"center\"};// Counter styles (matching Quantity_Counter component)\nconst counterContainerStyles={display:\"inline-flex\",alignItems:\"center\",gap:`${quantityCounterStyles?.gap||8}px`,padding:`${quantityCounterStyles?.padding?.top||4}px ${quantityCounterStyles?.padding?.right||4}px ${quantityCounterStyles?.padding?.bottom||4}px ${quantityCounterStyles?.padding?.left||4}px`,backgroundColor:quantityCounterStyles?.backgroundColor||\"#FFFFFF\",borderRadius:quantityCounterStyles?.containerBorderRadius||\"0px\",border:`${quantityCounterStyles?.borderWidth||1}px solid ${quantityCounterStyles?.borderColor||\"rgba(35, 35, 39, 0.2)\"}`,width:\"fit-content\"};const counterButtonStyles={width:`${quantityCounterStyles?.buttonSize||32}px`,height:`${quantityCounterStyles?.buttonSize||32}px`,display:\"flex\",justifyContent:\"center\",alignItems:\"center\",cursor:\"pointer\",border:\"none\",backgroundColor:quantityCounterStyles?.buttonBGColor||\"#F5F5F5\",borderRadius:`${quantityCounterStyles?.buttonBorderRadius||4}px`,transition:\"all 0.2s ease\"};const counterDisplayStyles={minWidth:`${quantityCounterStyles?.displayWidth||40}px`,textAlign:\"center\",fontSize:`${quantityCounterStyles?.fontSize||16}px`,fontFamily:quantityCounterStyles?.fontFamily||\"outfit, sans-serif\",fontWeight:quantityCounterStyles?.fontWeight||500,color:quantityCounterStyles?.textColor||\"#232327\",lineHeight:\"1.4\"};const iconColor=quantityCounterStyles?.iconColor||\"#232327\";const placeholderImage=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect fill='%23f0f0f0' width='100' height='100'/%3E%3Ctext x='50' y='50' font-size='14' text-anchor='middle' dominant-baseline='middle' fill='%23999'%3ENo Image%3C/text%3E%3C/svg%3E\";return products.length<1?/*#__PURE__*/_jsx(\"div\",{...props,style:{width:\"100%\",height:\"100%\",textAlign:\"center\"},children:/*#__PURE__*/_jsx(\"h3\",{style:{fontSize:\"24px\",color:\"#828282\",fontFamily:\"outfit, arial\",opacity:\"0.6\"},children:containerStyle?.emptyMessage||\"Your cart is empty!\"})}):/*#__PURE__*/_jsx(\"div\",{...props,style:{height:\"100%\",overflow:\"auto\"},children:products.map(product=>{const imageUrl=product.image||placeholderImage;const variantOption=getVariantOption(product);const cleanName=getCleanProductName(product);return /*#__PURE__*/_jsxs(\"div\",{style:cartItemContainerStyles,children:[/*#__PURE__*/_jsx(\"div\",{style:imageContainerStyles,children:/*#__PURE__*/_jsx(\"img\",{style:imageStyles,src:imageUrl,alt:cleanName,onError:e=>{e.target.src=placeholderImage;}})}),/*#__PURE__*/_jsxs(\"div\",{style:contentWrapperStyles,children:[/*#__PURE__*/_jsxs(\"div\",{style:textContainerStyles,children:[/*#__PURE__*/_jsxs(\"div\",{style:titlePriceRowStyles,children:[/*#__PURE__*/_jsx(\"h3\",{style:nameStyles,children:cleanName}),/*#__PURE__*/_jsx(\"h4\",{style:priceStyles,children:formatPrice(product.price)})]}),variantOption&&/*#__PURE__*/_jsxs(\"p\",{style:optionStyles,children:[\"Option:\",\" \",/*#__PURE__*/_jsx(\"span\",{style:optionLabelStyle,children:variantOption})]}),/*#__PURE__*/_jsxs(\"div\",{style:counterContainerStyles,children:[/*#__PURE__*/_jsx(\"button\",{onClick:()=>{if(product.quantity>1){handleUpdateQuantity(product.uid,product.quantity-1);}},disabled:product.quantity<=1,style:{...counterButtonStyles,opacity:product.quantity<=1?.5:1,cursor:product.quantity<=1?\"not-allowed\":\"pointer\"},\"aria-label\":\"Decrease quantity\",children:/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M4 8H12\",stroke:iconColor,strokeWidth:\"2\",strokeLinecap:\"round\"})})}),/*#__PURE__*/_jsx(\"div\",{style:counterDisplayStyles,children:product.quantity}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>{if(product.quantity<99){handleUpdateQuantity(product.uid,product.quantity+1);}},disabled:product.quantity>=99,style:{...counterButtonStyles,opacity:product.quantity>=99?.5:1,cursor:product.quantity>=99?\"not-allowed\":\"pointer\"},\"aria-label\":\"Increase quantity\",children:/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 4V12M4 8H12\",stroke:iconColor,strokeWidth:\"2\",strokeLinecap:\"round\"})})})]})]}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>handleProductDelete(product.uid),style:deleteButtonStyles,children:/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"24\",height:\"25\",viewBox:\"0 0 24 25\",fill:\"none\",children:[/*#__PURE__*/_jsx(\"mask\",{id:`mask_${product.uid}`,maskUnits:\"userSpaceOnUse\",x:\"0\",y:\"0\",width:\"24\",height:\"25\",children:/*#__PURE__*/_jsx(\"rect\",{y:\"0.5\",width:\"24\",height:\"24\",fill:\"#919199\"})}),/*#__PURE__*/_jsx(\"g\",{mask:`url(#mask_${product.uid})`,children:/*#__PURE__*/_jsx(\"path\",{d:\"M8.22707 17.3365L7.16357 16.273L10.9366 12.5L7.16357 8.75201L8.22707 7.68851L12.0001 11.4615L15.7481 7.68851L16.8116 8.75201L13.0386 12.5L16.8116 16.273L15.7481 17.3365L12.0001 13.5635L8.22707 17.3365Z\",fill:\"#919199\"})})]})})]})]},product.uid);})});}// Property Controls\naddPropertyControls(Cart_View,{styles:{type:ControlType.Object,controls:{containerStyle:{title:\"Container\",type:ControlType.Object,controls:{padding:{type:ControlType.Padding,title:\"Padding\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:1,min:0,displayStepper:true},dividerColor:{type:ControlType.Color,title:\"Divider Color\",defaultValue:\"#EAEAEA\"},emptyMessage:{type:ControlType.String,title:\"Empty Cart Message\",defaultValue:\"Your cart is empty!\"}}},layoutStyle:{title:\"Layout & Spacing\",type:ControlType.Object,controls:{itemGap:{type:ControlType.Number,title:\"Image to Content Gap\",defaultValue:16,min:0,displayStepper:true},contentGap:{type:ControlType.Number,title:\"Content to Delete Gap\",defaultValue:24,min:0,displayStepper:true},textGap:{type:ControlType.Number,title:\"Text Elements Gap\",defaultValue:8,min:0,displayStepper:true},spaceBetweenItems:{type:ControlType.Number,title:\"Space Between Cart Items\",defaultValue:8,min:0,displayStepper:true}}},imageStyle:{title:\"Image\",type:ControlType.Object,controls:{width:{type:ControlType.Number,title:\"Width\",defaultValue:120,displayStepper:true},height:{type:ControlType.Number,title:\"Height\",defaultValue:120,displayStepper:true},padding:{type:ControlType.Padding,title:\"Padding\"},bgColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#F5F6F8\"},fill:{type:ControlType.Enum,options:[\"fill\",\"contain\",\"cover\"],defaultValue:\"cover\"},borderRadius:{type:ControlType.BorderRadius,title:\"Border Radius\"}}},titleStyle:{type:ControlType.Object,title:\"Title\",controls:{font:{type:ControlType.Font,title:\"Font\",defaultValue:\"outfit\",controls:\"extended\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#232327\"}}},priceStyle:{type:ControlType.Object,title:\"Price\",controls:{font:{type:ControlType.Font,title:\"Font\",defaultValue:\"outfit\",controls:\"extended\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#232327\"}}},optionStyle:{type:ControlType.Object,title:\"Option\",controls:{font:{type:ControlType.Font,title:\"Font\",defaultValue:\"outfit\",controls:\"extended\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#232327\"},labelColor:{type:ControlType.Color,title:\"Option Label Color\",defaultValue:\"#6E717D\"}}},quantityCounterStyles:{type:ControlType.Object,title:\"Quantity Counter\",controls:{gap:{type:ControlType.Number,title:\"Gap\",defaultValue:8,min:0,displayStepper:true},padding:{type:ControlType.Padding,title:\"Padding\"},backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#FFFFFF\"},containerBorderRadius:{type:ControlType.BorderRadius,title:\"Container Border Radius\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:1,min:0,displayStepper:true},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#E0E0E0\"},buttonSize:{type:ControlType.Number,title:\"Button Size\",defaultValue:32,min:20,displayStepper:true},buttonBGColor:{type:ControlType.Color,title:\"Button Background\",defaultValue:\"#F5F5F5\"},buttonBorderRadius:{type:ControlType.Number,title:\"Button Border Radius\",defaultValue:4,min:0,displayStepper:true},displayWidth:{type:ControlType.Number,title:\"Display Width\",defaultValue:40,min:30,displayStepper:true},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:16,min:10,displayStepper:true},fontFamily:{type:ControlType.String,title:\"Font Family\",defaultValue:\"outfit, sans-serif\"},fontWeight:{type:ControlType.Number,title:\"Font Weight\",defaultValue:500,min:100,max:900,step:100,displayStepper:true},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#232327\"},iconColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#232327\"}}}}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Cart_View\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Cart_View.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{useState,useEffect}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";/**\n * By FRAMAX\n */// Environment-aware logger (inline - no external imports needed)\nconst STAGING_DOMAINS=[\"mobile-domain-572201.framer.app\",\"localhost\",\"127.0.0.1\"];const isStaging=()=>typeof window!==\"undefined\"&&STAGING_DOMAINS.some(domain=>window.location.hostname.includes(domain));const logger={log:(...args)=>{if(isStaging())console.log(...args);},warn:(...args)=>{if(isStaging())console.warn(...args);},error:(...args)=>{console.error(...args);},debug:(...args)=>{if(isStaging())console.debug(...args);},info:(...args)=>{if(isStaging())console.info(...args);}};// Safe localStorage wrapper to prevent SSR/preview errors\nconst safeLocalStorage={getItem:key=>{if(typeof window===\"undefined\")return null;try{return window.localStorage.getItem(key);}catch{return null;}},setItem:(key,value)=>{if(typeof window===\"undefined\")return;try{window.localStorage.setItem(key,value);}catch{}},removeItem:key=>{if(typeof window===\"undefined\")return;try{window.localStorage.removeItem(key);}catch{}}};const safeSessionStorage={getItem:key=>{if(typeof window===\"undefined\")return null;try{return window.safeSessionStorage.getItem(key);}catch{return null;}}};// DEBUG: Initialize price calculation system\nlogger.log(\"[Price_Calculation_Handler] *** PRICE CALCULATION SYSTEM LOADED ***\");const useStore=createStore({products:[],subtotal:0,shipping:0,tax:0,total:0});logger.log(\"[Price_Calculation_Handler] Store initialized with default values\");//For display subtotal on cart\nexport function forSubtotalAmountDisplay(Component){logger.log(\"[forSubtotalAmountDisplay] *** SUBTOTAL DISPLAY OVERRIDE CALLED ***\");return props=>{const[store,setStore]=useStore();const[price,setPrice]=useState(0);const[currencyPosition,setCurrencyPosition]=useState(null);const[currencySymbol,setCurrencySymbol]=useState(\"\");logger.log(\"[forSubtotalAmountDisplay] Component rendered with store:\",store);useEffect(()=>{logger.log(\"[forSubtotalAmountDisplay] Setting up subtotal calculation and polling...\");const updateSubtotalFromStorage=()=>{logger.log(\"[forSubtotalAmountDisplay] updateSubtotalFromStorage called\");const cartItems=safeLocalStorage.getItem(\"cart-items\");logger.log(\"[forSubtotalAmountDisplay] Raw cart items from localStorage:\",cartItems);const savedData=JSON.parse(cartItems)||[];logger.log(\"[forSubtotalAmountDisplay] Parsed cart data:\",savedData);logger.log(\"[forSubtotalAmountDisplay] Number of items in cart:\",savedData.length);const subtotal=savedData.reduce((acc,item)=>{logger.log(\"[forSubtotalAmountDisplay] Processing item:\",item);logger.log(\"[forSubtotalAmountDisplay] Item totalPrice:\",item.totalPrice,\"type:\",typeof item.totalPrice);const itemPrice=parseFloat(item.totalPrice);logger.log(\"[forSubtotalAmountDisplay] Parsed item price:\",itemPrice);return acc+itemPrice;},0);logger.log(\"[forSubtotalAmountDisplay] Calculated subtotal:\",subtotal);const formattedPrice=subtotal.toFixed(2);logger.log(\"[forSubtotalAmountDisplay] Formatted subtotal:\",formattedPrice);setPrice(formattedPrice);setStore({products:savedData});logger.log(\"[forSubtotalAmountDisplay] Updated price state and store products\");};// Initial setup\nlogger.log(\"[forSubtotalAmountDisplay] Running initial subtotal calculation...\");updateSubtotalFromStorage();//Currency preference\nconst currencyPos=JSON.parse(safeLocalStorage.getItem(\"currency-position\"));const currencySymb=safeLocalStorage.getItem(\"currency-symbol\")||\"\";logger.log(\"[forSubtotalAmountDisplay] Currency position from localStorage:\",currencyPos);logger.log(\"[forSubtotalAmountDisplay] Currency symbol from localStorage:\",currencySymb);setCurrencyPosition(currencyPos);setCurrencySymbol(currencySymb);logger.log(\"[forSubtotalAmountDisplay] Setting up 500ms polling interval...\");const pollingInterval=setInterval(()=>{logger.log(\"[forSubtotalAmountDisplay] Polling interval tick - updating subtotal\");updateSubtotalFromStorage();},500);// Update every 500ms\nreturn()=>{logger.log(\"[forSubtotalAmountDisplay] Cleanup: Clearing polling interval\");clearInterval(pollingInterval);};},[]);useEffect(()=>{logger.log(\"[forSubtotalAmountDisplay] Price changed, updating store subtotal\");logger.log(\"[forSubtotalAmountDisplay] New price value:\",price,\"type:\",typeof price);const parsedPrice=parseFloat(price);logger.log(\"[forSubtotalAmountDisplay] Parsed price for store:\",parsedPrice);setStore({subtotal:parsedPrice});},[price]);const displayText=currencyPosition?`${currencySymbol||\"$\"}${price.toString()}`:`${currencySymbol||\"$\"}${price.toString()}`;logger.log(\"[forSubtotalAmountDisplay] Rendering component with:\");logger.log(\"[forSubtotalAmountDisplay] - Price:\",price);logger.log(\"[forSubtotalAmountDisplay] - Currency position:\",currencyPosition);logger.log(\"[forSubtotalAmountDisplay] - Currency symbol:\",currencySymbol);logger.log(\"[forSubtotalAmountDisplay] - Display text:\",displayText);return /*#__PURE__*/_jsx(Component,{...props,text:displayText});};}// For Display discount price\nexport function forDisplayDiscountedPrice(Component){return props=>{const[store,setStore]=useStore();const[price,setPrice]=useState(0);const[currencyPosition,setCurrencyPosition]=useState(null);const[currencySymbol,setCurrencySymbol]=useState(\"\");useEffect(()=>{//Currency preference\nsetCurrencyPosition(JSON.parse(safeLocalStorage.getItem(\"currency-position\")));setCurrencySymbol(safeLocalStorage.getItem(\"currency-symbol\")||\"\");const poolingData=()=>{const discountData=JSON.parse(safeSessionStorage.getItem(\"eComer-discount-data\")||\"{}\");setPrice(discountData?.newSubtotal?.toFixed(2)||0);setStore({subtotal:discountData?.newSubtotal?.toFixed(2)||0});};const pollingInterval=setInterval(()=>{poolingData();},500);return()=>{clearInterval(pollingInterval);};},[]);return price>0&&/*#__PURE__*/_jsx(Component,{...props,text:currencyPosition?`${currencySymbol||\"$\"}${price.toString()}`:`${currencySymbol||\"$\"}${price.toString()}`});};}//For display shipping fee\nexport function forShippingFeeDisplay(Component){return props=>{const[store,setStore]=useStore();const[price,setPrice]=useState(0);const[currencyPosition,setCurrencyPosition]=useState(null);const[currencySymbol,setCurrencySymbol]=useState(\"\");useEffect(()=>{//Currency preference\nsetCurrencyPosition(JSON.parse(safeLocalStorage.getItem(\"currency-position\")));setCurrencySymbol(safeLocalStorage.getItem(\"currency-symbol\")||\"\");// Set shipping to 0 for now\nsetPrice(0);setStore({shipping:0});},[store.subtotal]);return /*#__PURE__*/_jsx(Component,{...props,text:currencyPosition?`${currencySymbol||\"$\"}${price.toString()}`:`${currencySymbol||\"$\"}${price.toString()}`});};}//For display tax\nexport function forDisplayTax(Component){return props=>{const[store,setStore]=useStore();const[price,setPrice]=useState(0);const[currencyPosition,setCurrencyPosition]=useState(null);const[currencySymbol,setCurrencySymbol]=useState(\"\");useEffect(()=>{const subtotal=store.subtotal;//Currency preference\nsetCurrencyPosition(JSON.parse(safeLocalStorage.getItem(\"currency-position\")));setCurrencySymbol(safeLocalStorage.getItem(\"currency-symbol\")||\"\");if(subtotal){const tax=subtotal/100*13;setPrice(tax.toFixed(2));setStore({tax:tax.toFixed(2)});}},[store.subtotal]);return /*#__PURE__*/_jsx(Component,{...props,text:currencyPosition?`${currencySymbol||\"$\"}${price.toString()}`:`${currencySymbol||\"$\"}${price.toString()}`});};}//For display total\nexport function forDisplayTotal(Component){return props=>{const[store,setStore]=useStore();const[price,setPrice]=useState(0);const[currencyPosition,setCurrencyPosition]=useState(null);const[currencySymbol,setCurrencySymbol]=useState(\"\");useEffect(()=>{const subtotal=store.subtotal;//Currency preference\nsetCurrencyPosition(JSON.parse(safeLocalStorage.getItem(\"currency-position\")));setCurrencySymbol(safeLocalStorage.getItem(\"currency-symbol\")||\"\");if(subtotal){const total=parseFloat(store.subtotal)+parseFloat(store.tax)+parseFloat(store.shipping);setPrice(total.toFixed(2));setStore({total:total.toFixed(2)});}},[store.subtotal,store.tax,store.shipping]);return /*#__PURE__*/_jsx(Component,{...props,text:currencyPosition?`${currencySymbol||\"$\"}${price.toString()}`:`${currencySymbol||\"$\"}${price.toString()}`});};}//For sending form data\nexport function forSettingDataToFormField(Component){return props=>{const[store,setStore]=useStore();let data;useEffect(()=>{if(store.products.length>0){data={products:store.products,subtotal:store.subtotal,shipping:store.shipping,tax:store.tax,total:store.total};}props.defaultValue=data?JSON.stringify(data):null;},[store,data]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"forShippingFeeDisplay\":{\"type\":\"reactHoc\",\"name\":\"forShippingFeeDisplay\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"forSubtotalAmountDisplay\":{\"type\":\"reactHoc\",\"name\":\"forSubtotalAmountDisplay\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"forDisplayDiscountedPrice\":{\"type\":\"reactHoc\",\"name\":\"forDisplayDiscountedPrice\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"forDisplayTax\":{\"type\":\"reactHoc\",\"name\":\"forDisplayTax\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"forSettingDataToFormField\":{\"type\":\"reactHoc\",\"name\":\"forSettingDataToFormField\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"forDisplayTotal\":{\"type\":\"reactHoc\",\"name\":\"forDisplayTotal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Price_Calculation_Handler.map"],"mappings":"sNAAigB,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,EAAS,GAAaA,EAAS,EAAE,CAAC,CAAM,CAAC,EAAe,GAAmBA,EAAS,IAAI,CAAM,CAAC,EAAiB,GAAqBA,EAAS,GAAK,CACnsB,MAAc,CAAC,GAAU,IAAS,OAAY,CAAC,IAAM,EAAOC,E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