{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/gsF1PcoB6DIjO9DCxQ8u/urNjfbRCHxNkXXxLXqJf/FC_ProductStockStatus.js", "ssg:https://framerusercontent.com/modules/LfNrg3Vrj1wZ6mJirTUh/WsOVTWIvXlviDXnnSOmO/FC_ProductInventoryCounter.js"],
  "sourcesContent": ["/*\n * Framer Commerce\n * Confidential and Proprietary - All Rights Reserved\n * Unauthorized use, reproduction, distribution, or disclosure of this\n * source code or any related information is strictly prohibited.\n *\n * This software is the exclusive property of Framer Commerce (\"Company\").\n * It is considered highly confidential and proprietary information.\n *\n * Any use, copying, modification, distribution, or sharing of this software,\n * in whole or in part, without the express written permission of the Company\n * is strictly prohibited and may result in legal action.\n *\n * DISCLAIMER: This software does not provide any express or\n * implied warranties, including, but not limited to, the implied warranties\n * of merchantability and fitness for a particular purpose. In no event shall\n * Framer Commerce be liable for any direct, indirect, incidental, special,\n * exemplary, or consequential damages (including, but not limited to, procurement\n * of substitute goods or services; loss of use, data, or profits; or business\n * interruption) however caused and on any theory of liability, whether in\n * contract, strict liability, or tort (including negligence or otherwise)\n * arising in any way out of the use of this software, even if advised of\n * the possibility of such damage.\n *\n * Any unauthorized possession, use, copying, distribution, or dissemination\n * of this software will be considered a breach of confidentiality and may\n * result in legal action.\n *\n * For inquiries, contact:\n * Framer Commerce\n * Email: hello@framercommerce.com\n *\n * \u00A9 2025 Butter Supply Inc. All Rights Reserved.\n */import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";// Disable console logs in production\nconst DEBUG=false;/**\n * @framerDisableUnlink\n */export default function FC_ProductStockStatus(props){// Handle canvas preview\nif(RenderTarget.current()===RenderTarget.canvas){// Return the first visible instance based on show/hide props\nif(props.showAboveThreshold){return /*#__PURE__*/_jsx(\"div\",{style:{opacity:1},children:props.aboveThresholdComponent});}if(props.showBelowThreshold){return /*#__PURE__*/_jsx(\"div\",{style:{opacity:1},children:props.belowThresholdComponent});}if(props.showOutOfStock){return /*#__PURE__*/_jsx(\"div\",{style:{opacity:1},children:props.outOfStockComponent});}// If no instances are set to show, return an empty div\nreturn /*#__PURE__*/_jsx(\"div\",{style:{opacity:1}});}const{threshold,aboveThresholdComponent,belowThresholdComponent,outOfStockComponent,showTotalInventory,showOutOfStock,showAboveThreshold,showBelowThreshold}=props;const[quantityAvailable,setQuantityAvailable]=useState(null);const[hasSelectedVariant,setHasSelectedVariant]=useState(false);const[totalInventory,setTotalInventory]=useState(null);const[isInfiniteInventory,setIsInfiniteInventory]=useState(false);const selectedVariantIdRef=useRef(null);const[autoSelectFirst,setAutoSelectFirst]=useState(false);// const [autoSelectReceived, setAutoSelectReceived] = useState(false)\nuseEffect(()=>{const handleVariantChange=e=>{//console.log(\"\uD83D\uDFE2 Stock Status - Variant changed event received:\", e.detail);\nconst activeVariant=e.detail;const expectedProductId=`gid://shopify/Product/${props.shopifyProductID}`;if(!activeVariant?.productId||activeVariant.productId!==expectedProductId){//console.log(\"\uD83D\uDFE2 Stock Status - Skipping variant change, product ID mismatch\");\nreturn;}if(activeVariant){//console.log(\"\uD83D\uDFE2 Stock Status - Setting quantity for variant:\", activeVariant.id);\nselectedVariantIdRef.current=activeVariant.id;setQuantityAvailable(activeVariant.quantityAvailable);setHasSelectedVariant(true);}};document.addEventListener(\"product__active-variant__changed\",handleVariantChange);return()=>{document.removeEventListener(\"product__active-variant__changed\",handleVariantChange);};},[props.shopifyProductID]);useEffect(()=>{const processProduct=product=>{const variants=product.variants.edges.map(edge=>edge.node)||[];const hasVariants=variants.length>1;const hasInfiniteInventory=variants.some(variant=>variant.availableForSale&&variant.quantityAvailable===0);const total=product.variants.edges.reduce((sum,{node})=>{return sum+(node.quantityAvailable||0);},0);// console.log(\"Processing Product (no active variant):\", {\n//     total,\n//     hasVariants,\n//     hasInfiniteInventory,\n// })\nsetTotalInventory(total);setQuantityAvailable(total);setHasSelectedVariant(!hasVariants);setIsInfiniteInventory(hasInfiniteInventory||product.availableForSale&&total===0);};const handleProductsReady=e=>{//console.log(\"\uD83D\uDFE2 Stock Status - Products ready event received\");\nif(selectedVariantIdRef.current){//console.log(\"\uD83D\uDFE2 Stock Status - Already have selected variant, skipping\");\nreturn;}if(Array.isArray(e.detail.products)){const matchingProduct=e.detail.products.find(({node:product})=>product.id===`gid://shopify/Product/${props.shopifyProductID}`);if(matchingProduct){const variantId=selectedVariantIdRef.current;if(variantId){//console.log(\"variantId\", variantId)\nconst matchingVariant=matchingProduct.node.variants.edges.find(({node})=>node.id===variantId)?.node;if(matchingVariant){setQuantityAvailable(matchingVariant.quantityAvailable);setHasSelectedVariant(true);return;}}if(autoSelectFirst){//console.log(\"\uD83D\uDFE2 Stock Status - Auto-selecting first variant\");\nconst firstVariant=matchingProduct.node.variants.edges[0]?.node;if(firstVariant){selectedVariantIdRef.current=firstVariant.id;setQuantityAvailable(firstVariant.quantityAvailable);setHasSelectedVariant(true);return;}}//console.log(\"No active variant, calculating total inventory\")\nprocessProduct(matchingProduct.node);}}};if(window?.shopXtools?.products&&Array.isArray(window.shopXtools.products)){const matchingProduct=window.shopXtools.products.find(({node:product})=>product.id===`gid://shopify/Product/${props.shopifyProductID}`);if(matchingProduct){const variantId=selectedVariantIdRef.current;if(variantId){//console.log(\"[WINDOW] variantId\", variantId)\nconst matchingVariant=matchingProduct.node.variants.edges.find(({node})=>node.id===variantId)?.node;if(matchingVariant){//console.log(\"[WINDOW] quantity for variantId\", (matchingVariant as any).quantityAvailable)\nsetQuantityAvailable(matchingVariant.quantityAvailable);setHasSelectedVariant(true);return;}}// Prioritize autoSelectFirst if it's set to true\nif(autoSelectFirst){//console.log(\"[WINDOW] Auto-selecting first variant\")\nconst firstAvailableVariant=matchingProduct.node.variants.edges.find(edge=>edge.node.availableForSale)?.node;if(firstAvailableVariant){selectedVariantIdRef.current=firstAvailableVariant.id;setQuantityAvailable(firstAvailableVariant.quantityAvailable);setHasSelectedVariant(true);// console.log(\n//     \"[WINDOW] Selected variant:\",\n//     firstAvailableVariant\n// )\nreturn;}}if(!autoSelectFirst&&!variantId){//autoSelectReceived &&\n//console.log(\"[WINDOW] showing total for product\")\nprocessProduct(matchingProduct.node);}// console.log(\"[WINDOW] showing total for product\")\n// processProduct(matchingProduct.node)\n}}const handleAutoSelectFlag=e=>{//console.log(\"Auto Select event received as:\", e.detail.autoSelectFirst);\nsetAutoSelectFirst(e.detail.autoSelectFirst);// setAutoSelectReceived(true);\n};//console.log(\"\uD83D\uDFE2 Stock Status - Adding event listeners\");\ndocument.addEventListener(\"data__products-ready\",handleProductsReady);document.addEventListener(\"auto_select_first_flag\",handleAutoSelectFlag);return()=>{//console.log(\"\uD83D\uDFE2 Stock Status - Removing event listeners\");\ndocument.removeEventListener(\"data__products-ready\",handleProductsReady);document.removeEventListener(\"auto_select_first_flag\",handleAutoSelectFlag);};},[props.shopifyProductID,autoSelectFirst])//autoSelectReceived\n;const getStockMessage=()=>{const displayQuantity=hasSelectedVariant?quantityAvailable:totalInventory;if(displayQuantity<=0&&!isInfiniteInventory){if(showOutOfStock){return props.outOfStockComponent;}else{return null;}}if(isInfiniteInventory||displayQuantity>=props.threshold){if(showAboveThreshold){return props.aboveThresholdComponent;}else{return null;}}if(showBelowThreshold){return props.belowThresholdComponent;}else{return null;}};const shouldShow=totalInventory!==null||isInfiniteInventory;const isHidden=!showTotalInventory&&!hasSelectedVariant;const styles={opacity:isHidden?0:1,transition:\"opacity 0.2s ease-in-out\",userSelect:isHidden?\"none\":\"auto\",visibility:isHidden?\"hidden\":\"visible\"};return /*#__PURE__*/_jsx(\"div\",{style:styles,\"aria-hidden\":isHidden,children:getStockMessage()});}FC_ProductStockStatus.defaultProps={shopifyProductID:\"\",threshold:10,showTotalInventory:false,showOutOfStock:false,showAboveThreshold:true,showBelowThreshold:true};addPropertyControls(FC_ProductStockStatus,{shopifyProductID:{type:ControlType.String,title:\"Product ID\"},threshold:{type:ControlType.Number,title:\"Threshold\",defaultValue:10,min:0},showAboveThreshold:{type:ControlType.Boolean,title:\"Above Threshold\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},aboveThresholdComponent:{type:ControlType.ComponentInstance,title:\"Above Threshold\",required:true,hidden:props=>!props.showAboveThreshold},showBelowThreshold:{type:ControlType.Boolean,title:\"Below Threshold\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},belowThresholdComponent:{type:ControlType.ComponentInstance,title:\"Below Threshold\",required:true,hidden:props=>!props.showBelowThreshold},showOutOfStock:{type:ControlType.Boolean,title:\"Out of Stock\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"},outOfStockComponent:{type:ControlType.ComponentInstance,title:\"Out of Stock\",required:true,hidden:props=>!props.showOutOfStock},showTotalInventory:{type:ControlType.Boolean,title:\"No variant selected\",description:\"When a product has variants and none are selected, show the total inventory available, or hide until a variant is selected\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FC_ProductStockStatus\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FC_ProductStockStatus.map", "/*\n * Framer Commerce\n * Confidential and Proprietary - All Rights Reserved\n * Unauthorized use, reproduction, distribution, or disclosure of this\n * source code or any related information is strictly prohibited.\n *\n * This software is the exclusive property of Framer Commerce (\"Company\").\n * It is considered highly confidential and proprietary information.\n *\n * Any use, copying, modification, distribution, or sharing of this software,\n * in whole or in part, without the express written permission of the Company\n * is strictly prohibited and may result in legal action.\n *\n * DISCLAIMER: This software does not provide any express or\n * implied warranties, including, but not limited to, the implied warranties\n * of merchantability and fitness for a particular purpose. In no event shall\n * Framer Commerce be liable for any direct, indirect, incidental, special,\n * exemplary, or consequential damages (including, but not limited to, procurement\n * of substitute goods or services; loss of use, data, or profits; or business\n * interruption) however caused and on any theory of liability, whether in\n * contract, strict liability, or tort (including negligence or otherwise)\n * arising in any way out of the use of this software, even if advised of\n * the possibility of such damage.\n *\n * Any unauthorized possession, use, copying, distribution, or dissemination\n * of this software will be considered a breach of confidentiality and may\n * result in legal action.\n *\n * For inquiries, contact:\n * Framer Commerce\n * Email: hello@framercommerce.com\n *\n * \u00A9 2025 Butter Supply Inc. All Rights Reserved.\n */import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useState,useEffect,useCallback,useRef}from\"react\";// Disable console logs in production\nconst DEBUG=false;/**\n * @framerDisableUnlink\n */export default function FC_ProductInventoryCounter(props){// Handle canvas preview\nif(RenderTarget.current()===RenderTarget.canvas){return /*#__PURE__*/_jsx(\"div\",{style:{display:\"inline-flex\",width:\"auto\",boxSizing:\"border-box\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0,flexGrow:0},children:/*#__PURE__*/_jsx(\"p\",{style:{...props.font,color:props.textColor,margin:0,padding:0,lineHeight:1,whiteSpace:\"nowrap\"},children:props.textFormat.replace(\"{{inventory}}\",\"5\")})});}const{shopifyProductID,showOutOfStock,outOfStockText,noLimitText}=props;const[quantityAvailable,setQuantityAvailable]=useState(null);const[hasSelectedVariant,setHasSelectedVariant]=useState(false);const selectedVariantIdRef=useRef(null);const[autoSelectFirst,setAutoSelectFirst]=useState(false);// const [autoSelectReceived, setAutoSelectReceived] = useState(false)\nuseEffect(()=>{const handleVariantChange=e=>{//console.log(\"\uD83D\uDD35 Inventory Counter - Variant changed event received:\", e.detail);\nconst activeVariant=e.detail;const expectedProductId=`gid://shopify/Product/${shopifyProductID}`;if(!activeVariant?.productId||activeVariant.productId!==expectedProductId){//console.log(\"\uD83D\uDD35 Inventory Counter - Skipping variant change, product ID mismatch\");\nreturn;}const inventory=activeVariant?.quantityAvailable;//console.log(\"\uD83D\uDD35 Inventory Counter - Active Variant Inventory:\", inventory)\nselectedVariantIdRef.current=activeVariant.id;setHasSelectedVariant(true);setQuantityAvailable(inventory);};document.addEventListener(\"product__active-variant__changed\",handleVariantChange);return()=>{document.removeEventListener(\"product__active-variant__changed\",handleVariantChange);};},[props.shopifyProductID]);useEffect(()=>{const handleProductsReady=e=>{//console.log(\"\uD83D\uDD35 Inventory Counter - Products ready event received\");\nif(selectedVariantIdRef.current){// console.log(\"\uD83D\uDD35 Inventory Counter - Already have selected variant, skipping\");\nreturn;}if(Array.isArray(e.detail.products)){const matchingProduct=e.detail.products.find(({node:product})=>product.id===`gid://shopify/Product/${shopifyProductID}`);if(matchingProduct){const variantId=selectedVariantIdRef.current;//console.log(\"variantId\", variantId)\nif(variantId){const matchingVariant=matchingProduct.node.variants.edges.find(({node})=>node.id===variantId)?.node;if(matchingVariant){// console.log(\"Found matching variant, setting quantity:\", matchingVariant.quantityAvailable)\nsetQuantityAvailable(matchingVariant.quantityAvailable);// console.log(\"quantity for variantId\", matchingVariant.quantityAvailable)\nsetHasSelectedVariant(true);return;// Important: return here to prevent total inventory calculation\n}}// If autoSelectFirst is true, pick the first variant\nif(autoSelectFirst){//console.log(\"\uD83D\uDD35 Inventory Counter - Auto-selecting first variant\");\nconst firstVariant=matchingProduct.node.variants.edges[0]?.node;if(firstVariant){selectedVariantIdRef.current=firstVariant.id;setQuantityAvailable(firstVariant.quantityAvailable);setHasSelectedVariant(true);return;}}// Only calculate total inventory if no variant is selected\nif(!autoSelectFirst&&!selectedVariantIdRef.current){//autoSelectReceived &&\n//if (!selectedVariantIdRef.current) {\nconst product=matchingProduct.node;if(product?.variants?.edges){const variants=product.variants.edges.map(edge=>edge.node);const hasVariants=variants.length>1;const totalInventory=variants.reduce((total,variant)=>{return total+(variant.quantityAvailable||0);},0);//console.log(\"No active variant, calculating total inventory:\", totalInventory)\nsetQuantityAvailable(totalInventory);setHasSelectedVariant(!hasVariants);}}}else{// console.log(\"No Matching Product Found\")\n}}};// Check if we already have product data available\nif(window?.shopXtools?.products&&Array.isArray(window.shopXtools.products)){const matchingProduct=window.shopXtools.products.find(({node:product})=>product.id===`gid://shopify/Product/${shopifyProductID}`);if(matchingProduct?.node){const product=matchingProduct.node;const variantId=selectedVariantIdRef.current;//console.log(\"[WINDOW] variantId\", variantId)\nif(variantId){const matchingVariant=product.variants.edges.find(({node})=>node.id===variantId)?.node;if(matchingVariant){setQuantityAvailable(matchingVariant.quantityAvailable);setHasSelectedVariant(true);return;}}// Prioritize autoSelectFirst if it's set to true\nif(autoSelectFirst){//console.log(\"[WINDOW] Auto-selecting first variant\")\nconst firstAvailableVariant=matchingProduct.node.variants.edges.find(edge=>edge.node.availableForSale)?.node;if(firstAvailableVariant){selectedVariantIdRef.current=firstAvailableVariant.id;setQuantityAvailable(firstAvailableVariant.quantityAvailable);setHasSelectedVariant(true);// console.log(\n//     \"[WINDOW] Selected variant:\",\n//     firstAvailableVariant\n// )\nreturn;}}if(!autoSelectFirst&&!variantId){//console.log(\"[WINDOW] autoSelectReceived as false, showing total inventory\", autoSelectReceived)\nif(product?.variants?.edges){const variants=product.variants.edges.map(edge=>edge.node);const hasVariants=variants.length>1;const totalInventory=variants.reduce((total,variant)=>{return total+(variant.quantityAvailable||0);},0);// console.log(\"Processing Product (no active variant):\", {\n//     totalInventory,\n//     hasVariants,\n// })\nsetQuantityAvailable(totalInventory);setHasSelectedVariant(!hasVariants);}}}else{// console.log(\"No Matching Product Found in Window\")\n}}const handleAutoSelectFlag=e=>{// console.log(\"Auto Select event received as:\", e.detail.autoSelectFirst);\nsetAutoSelectFirst(e.detail.autoSelectFirst);// setAutoSelectReceived(true);\n};// console.log(\"\uD83D\uDD35 Inventory Counter - Adding event listeners\");\ndocument.addEventListener(\"data__products-ready\",handleProductsReady);document.addEventListener(\"auto_select_first_flag\",handleAutoSelectFlag);return()=>{// console.log(\"\uD83D\uDD35 Inventory Counter - Removing event listeners\");\ndocument.removeEventListener(\"data__products-ready\",handleProductsReady);document.removeEventListener(\"auto_select_first_flag\",handleAutoSelectFlag);};},[shopifyProductID,autoSelectFirst])//autoSelectReceived\n;const formatText=useCallback((text,quantity)=>{if(quantity===null||quantity===undefined){return null;}const isInfiniteInventory=window?.shopXtools?.products?.find(({node:product})=>product.id===`gid://shopify/Product/${shopifyProductID}`)?.node?.variants?.edges?.some(({node:variant})=>variant.availableForSale&&variant.quantityAvailable===0);if(quantity<=0){if(isInfiniteInventory){return noLimitText;}if(showOutOfStock){return outOfStockText;}return null;}return text?.replace(\"{{inventory}}\",quantity)||`${quantity} left in stock`;},[showOutOfStock,outOfStockText,noLimitText,shopifyProductID]);//console.log(\"quantityAvailable\", quantityAvailable, \"showOutOfStock\", showOutOfStock)\n// Only return null if explicitly 0/null and not showing out of stock\nif(quantityAvailable===null&&!showOutOfStock){return null;}return /*#__PURE__*/_jsx(\"div\",{style:{display:\"inline-flex\",width:\"auto\",boxSizing:\"border-box\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0,flexGrow:0},children:/*#__PURE__*/_jsx(\"p\",{style:{...props.font,color:props.textColor,margin:0,padding:0,lineHeight:1,whiteSpace:\"nowrap\"},children:formatText(props.textFormat,quantityAvailable)})});}FC_ProductInventoryCounter.defaultProps={shopifyProductID:\"\",font:undefined,textColor:\"#000\",textFormat:\"{{inventory}} left in stock\",showOutOfStock:true,outOfStockText:\"Out of stock\",noLimitText:\"In Stock\"};addPropertyControls(FC_ProductInventoryCounter,{shopifyProductID:{type:ControlType.String,title:\"Product ID\",description:\"Connect to CMS\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},textColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000\"},textFormat:{type:ControlType.String,title:\"Text Format\",defaultValue:\"{{inventory}} left in stock\",description:\"Use {{inventory}} to display the stock count\"},showOutOfStock:{type:ControlType.Boolean,title:\"Out of Stock\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},outOfStockText:{type:ControlType.String,title:\"Out of Stock Text\",defaultValue:\"Out of Stock\",hidden:props=>!props.showOutOfStock},noLimitText:{type:ControlType.String,title:\"No Limit Text\",defaultValue:\"In Stock\",description:'If you have \"Continue Selling When Out Of Stock\" selected on Shopify, and the inventory reaches 0.'}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FC_ProductInventoryCounter\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FC_ProductInventoryCounter.map"],
  "mappings": "gKAoCkB,SAARA,EAAuCC,EAAM,CACvD,GAAGC,EAAa,QAAQ,IAAIA,EAAa,OACzC,OAAGD,EAAM,mBAAwCE,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,SAASF,EAAM,uBAAuB,CAAC,EAAMA,EAAM,mBAAwCE,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,SAASF,EAAM,uBAAuB,CAAC,EAAMA,EAAM,eAAoCE,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,SAASF,EAAM,mBAAmB,CAAC,EAC5UE,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAG,GAAK,CAAC,UAAAC,EAAU,wBAAAC,EAAwB,wBAAAC,EAAwB,oBAAAC,EAAoB,mBAAAC,EAAmB,eAAAC,EAAe,mBAAAC,EAAmB,mBAAAC,CAAkB,EAAEV,EAAW,CAACW,EAAkBC,CAAoB,EAAEC,EAAS,IAAI,EAAO,CAACC,EAAmBC,CAAqB,EAAEF,EAAS,EAAK,EAAO,CAACG,EAAeC,CAAiB,EAAEJ,EAAS,IAAI,EAAO,CAACK,EAAoBC,CAAsB,EAAEN,EAAS,EAAK,EAAQO,EAAqBC,EAAO,IAAI,EAAO,CAACC,EAAgBC,CAAkB,EAAEV,EAAS,EAAK,EAC9iBW,EAAU,IAAI,CAAC,IAAMC,EAAoBC,GAAG,CAC5C,IAAMC,EAAcD,EAAE,OAAaE,EAAkB,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,WAAW,CAAC,KAAKA,EAAY,OAAO,MAAM,cAAc,aAAa,8BAA8B,YAAY,8CAA8C,EAAE,eAAe,CAAC,KAAKA,EAAY,QAAQ,MAAM,eAAe,aAAa,GAAK,aAAa,OAAO,cAAc,MAAM,EAAE,eAAe,CAAC,KAAKA,EAAY,OAAO,MAAM,oBAAoB,aAAa,eAAe,OAAO5C,GAAO,CAACA,EAAM,cAAc,EAAE,YAAY,CAAC,KAAK4C,EAAY,OAAO,MAAM,gBAAgB,aAAa,WAAW,YAAY,oGAAoG,CAAC,CAAC",
  "names": ["FC_ProductStockStatus", "props", "RenderTarget", "p", "threshold", "aboveThresholdComponent", "belowThresholdComponent", "outOfStockComponent", "showTotalInventory", "showOutOfStock", "showAboveThreshold", "showBelowThreshold", "quantityAvailable", "setQuantityAvailable", "ye", "hasSelectedVariant", "setHasSelectedVariant", "totalInventory", "setTotalInventory", "isInfiniteInventory", "setIsInfiniteInventory", "selectedVariantIdRef", "pe", "autoSelectFirst", "setAutoSelectFirst", "ue", "handleVariantChange", "e", "activeVariant", "expectedProductId", "processProduct", "product", "variants", "edge", "hasVariants", "hasInfiniteInventory", "variant", "total", "sum", "node", "handleProductsReady", "matchingProduct", "variantId", "matchingVariant", "firstVariant", "window", "firstAvailableVariant", "handleAutoSelectFlag", "getStockMessage", "displayQuantity", "shouldShow", "isHidden", "addPropertyControls", "ControlType", "FC_ProductInventoryCounter", "props", "RenderTarget", "p", "shopifyProductID", "showOutOfStock", "outOfStockText", "noLimitText", "quantityAvailable", "setQuantityAvailable", "ye", "hasSelectedVariant", "setHasSelectedVariant", "selectedVariantIdRef", "pe", "autoSelectFirst", "setAutoSelectFirst", "ue", "handleVariantChange", "e", "activeVariant", "expectedProductId", "inventory", "handleProductsReady", "matchingProduct", "product", "variantId", "matchingVariant", "node", "firstVariant", "variants", "edge", "hasVariants", "totalInventory", "total", "variant", "window", "firstAvailableVariant", "handleAutoSelectFlag", "formatText", "te", "text", "quantity", "isInfiniteInventory", "addPropertyControls", "ControlType"]
}
