{"version":3,"file":"VariantButtons.DIWKfZlF.mjs","names":["useContext","useState","State"],"sources":["https:/framerusercontent.com/modules/Be5mN5EUhdOwl54qCG8y/Icj1ZU450uFtWcyrdGTm/CartItemContext.js","https:/framerusercontent.com/modules/6m3bYVdQqi1oLEe0M7tX/4u0dTWsY1paTcseW4igp/QuantityInput.js","https:/framerusercontent.com/modules/tGueMWfVDCEvfQtSlUrd/asN9LVWoH50TR2W333zD/VariantButtons.js"],"sourcesContent":["import{createContext,useContext}from\"react\";export const CartItemContext=/*#__PURE__*/createContext({inCart:false,cartItemId:null,shopifyId:null,variantId:null,quantity:1,price:null,compareAtPrice:null,sku:null,barcode:null,variant:null});export const useCartItem=()=>useContext(CartItemContext);\nexport const __FramerMetadata__ = {\"exports\":{\"useCartItem\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CartItemContext\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CartItemContext.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{ControlType,withCSS,RenderTarget}from\"framer\";import{useState,useEffect}from\"react\";import{parseShopifyData,addPropertyControlsFrameship}from\"https://framerusercontent.com/modules/gd3dcT3w5rYoRy7ZcKte/sH6FZizM8jJ11j2dQOhQ/Shared.js\";import{Button,createButtonPropertyControls,Colors}from\"https://framerusercontent.com/modules/fVHxdMMgjEun6wSmFoH5/UO9Fwa3zz4T8isOKvUfB/SharedStyles.js\";import{useProductStore,useSelectedVariant}from\"https://framerusercontent.com/modules/ajKYBgRXgNyNgL1GkpqG/prknJU66nI5iRE43ff6z/ProductState.js\";import{useCartItem}from\"https://framerusercontent.com/modules/Be5mN5EUhdOwl54qCG8y/Icj1ZU450uFtWcyrdGTm/CartItemContext.js\";import{useCartStore,useAmountInStock}from\"https://framerusercontent.com/modules/ibjYTPLnMMPhPLNCj4uG/FkITfeSZPOAgcIAyLyDi/Cart.js\";var State;(function(State){State[\"Default\"]=\"default\";State[\"Disabled\"]=\"disabled\";})(State||(State={}));const INPUT_CLASS=\"frameship-quantity-input\";function QuantityInputComponent(props){const{shopifyData,type,icon,maxValue}=props;const{shopifyId}=parseShopifyData(shopifyData);const isCanvas=RenderTarget.current()===RenderTarget.canvas;const{cartItemId,variantId:cartVariantId,quantity:cartItemQuantity}=useCartItem();const[productStoreQuantity,setProductStoreQuantity]=useProductStore(state=>[state.products[shopifyId]?.quantity,state.setQuantity]);const[items,setCartItemQuantity]=useCartStore(state=>[state.items,state.setCartItemQuantity]);const[inventory,inventoryIsLoading]=useAmountInStock(shopifyData);const selectedVariant=useSelectedVariant(props.shopifyData);const variantId=cartItemId?cartVariantId:selectedVariant?.id;const quantity=(cartItemId?cartItemQuantity:productStoreQuantity)||1;const maxQuantity=Math.min(inventory[variantId]||Infinity,maxValue);const[inputValue,setInputValue]=useState(quantity.toString());const setItemQuantity=newQuantity=>{const limitedQuantity=Math.min(newQuantity,maxQuantity,maxValue);if(cartItemId){setCartItemQuantity(cartItemId,limitedQuantity);}else{setProductStoreQuantity(shopifyId,limitedQuantity);}};useEffect(()=>{if(!cartItemId&&quantity>maxQuantity){setProductStoreQuantity(shopifyId,maxQuantity);}},[maxQuantity,cartItemId,quantity,shopifyId,setProductStoreQuantity]);useEffect(()=>{setInputValue(quantity.toString());},[quantity]);let element=null;switch(type){case\"add\":case\"subtract\":const radius=icon.rounded?icon.strokeWidth/2:0;const disabled=type===\"add\"&&quantity>=maxQuantity||type===\"subtract\"&&quantity<=1;element=/*#__PURE__*/_jsx(Button,{...props,variant:disabled&&!isCanvas?\"disabled\":\"default\",onClick:()=>setItemQuantity(quantity+(type===\"add\"?1:-1)),disabled:disabled,style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:disabled?undefined:\"pointer\",...props.style},children:/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:icon.size,height:icon.size,viewBox:\"0 0 16 16\",children:[/*#__PURE__*/_jsx(\"path\",{d:`M ${radius} 8 L ${16-radius} 8`,fill:\"transparent\",strokeWidth:icon.strokeWidth,stroke:\"currentColor\",strokeLinecap:icon.rounded?\"round\":\"square\"}),type==\"add\"&&/*#__PURE__*/_jsx(\"path\",{d:`M 8 ${radius} L 8 ${16-radius}`,fill:\"transparent\",strokeWidth:icon.strokeWidth,stroke:\"currentColor\",strokeLinecap:icon.rounded?\"round\":\"square\"})]})});break;case\"input\":const handleInputChange=event=>{setInputValue(event.target.value);};const handleSetQuantity=()=>{const newQuantity=parseInt(inputValue,10);if(!isNaN(newQuantity)&&newQuantity>0){setItemQuantity(newQuantity);}else{setInputValue(quantity.toString());}};element=/*#__PURE__*/_jsx(Button,{...props,className:INPUT_CLASS,tag:\"input\",type:\"number\",value:inputValue,onChange:handleInputChange,onBlur:handleSetQuantity,onKeyDown:event=>{if(event.key===\"Enter\"){handleSetQuantity();}},max:maxQuantity,style:{appearance:\"textfield\",...props.style}});break;}return element;}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 40\n * @framerIntrinsicHeight 40\n * @framerDisableUnlink\n */const QuantityInput=withCSS(QuantityInputComponent,[`input.${INPUT_CLASS}[type=number]::-webkit-outer-spin-button,\n\tinput.${INPUT_CLASS}[type=number]::-webkit-inner-spin-button {\n\t\tdisplay: none;\n\t}`,`input.${INPUT_CLASS}[type=number]::-moz-inner-spin-button,\n\tinput.${INPUT_CLASS}[type=number]::-moz-outer-spin-button {\n\t\t-moz-appearance: none;\n\t\tmargin: 0;\n\t}`]);export default QuantityInput;QuantityInput.displayName=\"Quantity Input\";addPropertyControlsFrameship(QuantityInput,{type:{type:ControlType.Enum,options:[\"subtract\",\"input\",\"add\"],optionTitles:[\"−\",\"Input\",\"+\"],displaySegmentedControl:true},maxValue:{type:ControlType.Number,defaultValue:100,min:1,step:1,description:\"The value will always be limited to the amount in stock\"},icon:{type:ControlType.Object,hidden:props=>props.type!==\"add\"&&props.type!==\"subtract\",controls:{size:{type:ControlType.Number,defaultValue:12,min:0,step:1},strokeWidth:{type:ControlType.Number,defaultValue:3,min:0,max:10,step:1,title:\"Stroke\"},rounded:{type:ControlType.Boolean,defaultValue:true}}},...createButtonPropertyControls({placeholder:true,hidden:{font:props=>props.type!==\"input\",placeholder:props=>props.type!==\"input\"},variants:[{id:\"default\",title:\"Default\",...Colors.Primary},{id:\"disabled\",title:\"Disabled\",color:\"rgba(0, 0, 0, 0.25)\"}]})},{shopifyData:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"QuantityInput\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"40\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerDisableUnlink\":\"\",\"framerIntrinsicHeight\":\"40\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{ControlType,withCSS,RenderTarget}from\"framer\";import{parseShopifyData,parseShopifyId,ShopifyDataType,addPropertyControlsFrameship}from\"https://framerusercontent.com/modules/gd3dcT3w5rYoRy7ZcKte/sH6FZizM8jJ11j2dQOhQ/Shared.js\";import{createButtonPropertyControls,Colors,Button}from\"https://framerusercontent.com/modules/fVHxdMMgjEun6wSmFoH5/UO9Fwa3zz4T8isOKvUfB/SharedStyles.js\";import{useProductStore}from\"https://framerusercontent.com/modules/ajKYBgRXgNyNgL1GkpqG/prknJU66nI5iRE43ff6z/ProductState.js\";import{useAmountInStock}from\"https://framerusercontent.com/modules/ibjYTPLnMMPhPLNCj4uG/FkITfeSZPOAgcIAyLyDi/Cart.js\";const HIDDEN_CLASS=\"frameship-variant-buttons-hidden\";const SAMPLE_VARIANTS=`[{\"id\":\"gid://shopify/ProductOption/12345678901234\",\"name\":\"Sample Variants\",\"values\":[\"Red\",\"Blue\",\"Green\",\"Purple\"]}]`;var State;(function(State){State[\"Default\"]=\"default\";State[\"Selected\"]=\"selected\";State[\"Disabled\"]=\"disabled\";})(State||(State={}));const alignmentMap={left:\"flex-start\",center:\"center\",right:\"flex-end\"};function VariantButtonsComponent(props){const{shopifyData,variantOptions,titles,textButtons,layout,disableOutOfStock}=props;const{shopifyId,variants}=parseShopifyData(shopifyData);const horizontal=layout.direction===\"horizontal\";const isCanvas=RenderTarget.current()===RenderTarget.canvas;const[selectedVariantOptions,setSelectedVariantOption]=useProductStore(state=>[state.products[shopifyId]?.selectedVariantOptions||{},state.setSelectedVariantOption]);const[inventory,inventoryIsLoading]=useAmountInStock(shopifyData);const options=parseVariantOptions(isCanvas&&!variantOptions?SAMPLE_VARIANTS:variantOptions);const disabledOptionValues={};if(disableOutOfStock){for(const option of options){const disabledValues=[];for(const value of option.values){const matchingVariants=variants.filter(variant=>variant.selectedOptions.some(o=>o.name===option.name&&o.value===value));const outOfStockVariants=matchingVariants.filter(variant=>inventory[variant.id]===0);if(matchingVariants.length===outOfStockVariants.length){disabledValues.push(value);}}disabledOptionValues[option.name]=disabledValues;}}const selectedOptions={...selectedVariantOptions};let hasUpdatedGlobalState=false;let firstAvailableVariantOptions={};for(const variant of variants){if(inventory[variant.id]>0){for(const option of variant.selectedOptions){firstAvailableVariantOptions[option.name]=option.value;}break;}}for(const option of options){const name=option?.name;const values=option?.values;if(!name||!Array.isArray(values)){continue;}if(selectedOptions[name]&&values.includes(selectedOptions[name])){continue;// Keep the existing selection\n}else if(firstAvailableVariantOptions[name]){setSelectedVariantOption(shopifyId,name,firstAvailableVariantOptions[name]);}else{// Auto-select the first option if no selection is made\nsetSelectedVariantOption(shopifyId,name,values[0]);}}const onVariantClicked=(optionName,optionValue)=>{setSelectedVariantOption(shopifyId,optionName,optionValue);};return options.length==0?/*#__PURE__*/_jsx(\"div\",{className:HIDDEN_CLASS}):/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:props.gap,userSelect:\"none\",minHeight:options.length==0?40:0,minWidth:options.length==0?40:0,...props.style},children:options.map(option=>/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:titles?.location==\"bottom\"?\"column-reverse\":\"column\",gap:titles?.gap},children:[titles&&/*#__PURE__*/_jsx(\"p\",{style:{width:\"100%\",color:titles.color,whiteSpace:\"pre\",margin:0,textTransform:titles.transform,...titles.font},children:option.name}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:horizontal?\"row\":\"column\",rowGap:layout.gapV,columnGap:layout.gapH,alignItems:horizontal?\"center\":alignmentMap[layout.verticalAlignment],justifyContent:horizontal?layout.distribute:\"start\",flexWrap:layout.wrap?\"wrap\":\"nowrap\"},children:option.values.map((value,index)=>{const selected=isCanvas?index===0:selectedOptions[option.name]==value;const disabled=isCanvas||!disableOutOfStock?false:disabledOptionValues[option.name]?.includes(value);return /*#__PURE__*/_jsx(Button,{...textButtons,variant:disabled?\"disabled\":selected?\"selected\":\"default\",onClick:()=>!disabled&&onVariantClicked(option.name,value),style:{flex:textButtons.width===\"fill\"?\"1 1 0\":\"none\",width:textButtons.width===\"fill\"?\"0\":textButtons.width===\"fixed\"?textButtons.fixedWidth:undefined,cursor:disabled?undefined:\"pointer\",textTransform:textButtons.transform,...textButtons.font},opacity:disabled&&textButtons.outOfStock?textButtons.outOfStock.opacity:1,disabled:disabled,children:value},value);})})]},option.name))});}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 300\n * @framerDisableUnlink\n */const VariantButtons=withCSS(VariantButtonsComponent,[`.${HIDDEN_CLASS} { display: none !important; }`,`div:has(> .${HIDDEN_CLASS}) { display: none !important; }`],\"\");export default VariantButtons;VariantButtons.displayName=\"Variant Buttons\";addPropertyControlsFrameship(VariantButtons,{variantOptions:{type:ControlType.String,defaultValue:\"\",placeholder:\"Variant Options\",preventLocalization:true,description:\"Connect to the Variant Options field from the products CMS\"},disableOutOfStock:{type:ControlType.Boolean,defaultValue:true,title:\"Disable Out-of-Stock\",description:\"Disable out-of-stock product variants.\"},titles:{type:ControlType.Object,optional:true,buttonTitle:\"Style\",defaultValue:{location:\"top\",color:\"#000\",gap:10},controls:{location:{type:ControlType.Enum,defaultValue:\"top\",options:[\"top\",\"bottom\"],optionTitles:[\"Top\",\"Bottom\"],displaySegmentedControl:true},font:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,lineHeight:1.4}},color:{type:ControlType.Color,defaultValue:\"#000\"},gap:{type:ControlType.Number,defaultValue:10,min:0,step:1},transform:{type:ControlType.Enum,defaultValue:\"none\",options:[\"none\",\"capitalize\",\"uppercase\",\"lowercase\"],optionTitles:[\"None\",\"Capitalize\",\"Uppercase\",\"Lowercase\"]}}},textButtons:{type:ControlType.Object,buttonTitle:\"Style\",title:\"Buttons\",controls:{width:{type:ControlType.Enum,defaultValue:\"fit\",options:[\"fit\",\"fill\",\"fixed\"],optionTitles:[\"Fit\",\"Fill\",\"Fixed\"],displaySegmentedControl:true},fixedWidth:{type:ControlType.Number,defaultValue:100,min:0,step:1,title:\" \",hidden:props=>props.width!==\"fixed\"},outOfStock:{type:ControlType.Object,title:\"Out of Stock\",controls:{opacity:{type:ControlType.Number,defaultValue:.5,min:0,max:1,step:.01}}},...createButtonPropertyControls({padding:\"12px 20px 12px 20px\",variants:[{id:\"default\",title:\"Default\",...Colors.Primary},{id:\"selected\",title:\"Selected\",...Colors.Accent},{id:\"disabled\",title:\"Disabled\"}],endProps:{transform:{type:ControlType.Enum,defaultValue:\"none\",options:[\"none\",\"capitalize\",\"uppercase\",\"lowercase\"],optionTitles:[\"None\",\"Capitalize\",\"Uppercase\",\"Lowercase\"]}}})}},layout:{type:ControlType.Object,controls:{direction:{type:ControlType.Enum,defaultValue:\"horizontal\",options:[\"horizontal\",\"vertical\"],optionTitles:[\"Horizontal\",\"Vertical\"],optionIcons:[\"direction-horizontal\",\"direction-vertical\"],displaySegmentedControl:true},distribute:{type:ControlType.Enum,defaultValue:\"start\",options:[\"start\",\"center\",\"end\",\"space-between\",\"space-around\",\"space-evenly\"],optionTitles:[\"Start\",\"Center\",\"End\",\"Space Between\",\"Space Around\",\"Space Evenly\"],hidden:props=>props.direction!==\"horizontal\"},wrap:{type:ControlType.Boolean,defaultValue:true,hidden:props=>props.direction!==\"horizontal\"},verticalAlignment:{type:ControlType.Enum,defaultValue:\"center\",options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],displaySegmentedControl:true,title:\"Alignment\",hidden:props=>props.direction!==\"vertical\"},gapH:{type:ControlType.Number,defaultValue:10,min:0,step:1,hidden:props=>props.direction!==\"horizontal\"},gapV:{type:ControlType.Number,defaultValue:10,min:0,step:1}}},gap:{type:ControlType.Number,defaultValue:20,min:0,step:1,hidden:props=>props.variantMode==\"one\"}},{shopifyData:true});const variantOptionsCache={};function parseVariantOptions(variantOptions){if(!variantOptions){return[];}const cachedResult=variantOptionsCache[variantOptions];if(cachedResult){return cachedResult;}try{const options=JSON.parse(variantOptions);let result=options;if(options.length===1&&options[0]?.values?.length===1){result=[];}for(let i=0;i<result.length;i++){if(typeof result[i]===\"object\"){result[i].id=parseShopifyId(result[i].id,ShopifyDataType.ProductOption);}}variantOptionsCache[variantOptions]=result;return result;}catch(error){console.error(\"Error parsing variant options:\",error);return[];}}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VariantButtons\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"300\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"ysBAA4C,CAAa,EAA6B,EAAc,CAAC,OAAO,GAAM,WAAW,KAAK,UAAU,KAAK,UAAU,KAAK,SAA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