var GOptions;(()=>{"use strict";var e,t,n={701:(e,t,n)=>{n.d(t,{AM:()=>a,Bi:()=>R,Do:()=>A,LT:()=>I,Uc:()=>p,Uo:()=>_,WH:()=>y,WX:()=>o,X7:()=>D,XJ:()=>f,ZM:()=>x,_G:()=>O,eN:()=>E,fQ:()=>d,jw:()=>u,mP:()=>G,mk:()=>N,nc:()=>g,of:()=>b,p0:()=>h,sC:()=>l,t$:()=>P,y1:()=>T,yS:()=>m,zd:()=>M});const i={TEXT:["text","textarea"],NUMBER:["number"],PHONE:["phone"],EMAIL:["email"],DATETIME:["datetime"],FILE:["file"],COLOR_PICKER:["color-picker"],FONT_PICKER:["google-font"],SWITCH:["switch"],RANGE:["range"],DIMENSION:["dimension"],SELECT:["select"],SELECT_MULTIPLE:["select_multiple"],DROPDOWN:["dropdown","color-dropdown","image-dropdown"],RADIO:["radio"],CHECKBOX:["checkbox"],BUTTON:["buttons","buttons_multiple"],SWATCH:["buttons","buttons_multiple","color-swatches","image-swatches","color-swatches_multiple","image-swatches_multiple"],SINGLE_CHOICE:["radio","buttons","color-swatches","image-swatches","dropdown","color-dropdown","image-dropdown","google-font"],MULTI_CHOICE:["checkbox","buttons_multiple","color-swatches_multiple","image-swatches_multiple","dropdown_multiple","color-dropdown_multiple","image-dropdown_multiple"],DIRECT_ADDON:["text","textarea","number","color-picker","switch"],OPTION_ADDON:["select","dropdown","color-dropdown","image-dropdown","checkbox","radio","buttons","color-swatches","image-swatches"]};function o(e){return i.DIRECT_ADDON.includes(e)}function a(e){return i.OPTION_ADDON.includes(e)}function r(e,t){const n=function(e){return e?(e._gpoType||(e._gpoType=e.dataset.type||""),e._gpoType):""}(e);return t.some((e=>n===e||n.includes(e)))}function s(e,t){HTMLElement.prototype[e]||Object.defineProperty(HTMLElement.prototype,e,{value:t,configurable:!0})}s("isText",(function(){return r(this,i.TEXT)})),s("isNumber",(function(){return r(this,i.NUMBER)})),s("isPhone",(function(){return r(this,i.PHONE)})),s("isEmail",(function(){return r(this,i.EMAIL)})),s("isDatetime",(function(){return r(this,i.DATETIME)})),s("isFile",(function(){return r(this,i.FILE)})),s("isColorPicker",(function(){return r(this,i.COLOR_PICKER)})),s("isSwitch",(function(){return r(this,i.SWITCH)})),s("isRange",(function(){return r(this,i.RANGE)})),s("isDimension",(function(){return r(this,i.DIMENSION)})),s("isSelect",(function(){return r(this,i.SELECT)})),s("isSelectMultiple",(function(){return r(this,i.SELECT_MULTIPLE)})),s("isDropdown",(function(){return r(this,i.DROPDOWN)})),s("isRadio",(function(){return r(this,i.RADIO)})),s("isCheckbox",(function(){return r(this,i.CHECKBOX)})),s("isButton",(function(){return r(this,i.BUTTON)})),s("isSwatch",(function(){return r(this,i.SWATCH)})),s("isFontPicker",(function(){return r(this,i.FONT_PICKER)})),s("isSingleChoice",(function(){return r(this,i.SINGLE_CHOICE)})),s("isMultipleChoice",(function(){return r(this,i.MULTI_CHOICE)})),s("isTextInput",(function(){return this.isText()||this.isEmail()||this.isPhone()||this.isNumber()})),s("isSingleInput",(function(){return this.isTextInput()||this.isDatetime()||this.isFile()})),s("isCheckboxInput",(function(){return this.isSelectMultiple()||this.isMultipleChoice()||this.isSwitch()})),s("isSelectionInput",(function(){return this.isSelectMultiple()||this.isMultipleChoice()||this.isSingleChoice()})),s("isSelectionOption",(function(){return this.isSelect()||this.isSelectionInput()}));const c={validation:{required:"This field is required",invalid:"Invalid input",invalid_number:"Invalid number",invalid_phone:"Invalid phone number",invalid_email:"Invalid email",invalid_file:"Invalid file",min_value:"",max_value:"",exactly_value:"Please enter a value equal to {{exactly_value}}",min_char:"Please enter more than or equal to {{min_character}} characters",char_limit:"",exactly_char:"Please enter exactly {{exactly_character}} characters",min_selection:"",max_selection:"",exactly_selection:"",min_f:"Please add more than or equal to {{min_files}} files",max_f:"Please add less than or equal to {{max_files}} files",exactly_f:"Please add exactly {{exactly_files}} files"},addtocart:{items_are_no_longer_available:"Some items are no longer available. Please try again later.",inventory:"All {{inventory_quantity}} {{product_title}} are in your cart."},cart:{edit_options:"Edit Options",save:"Save Changes",preview_design:"Preview Your Design",your_design:"Your Design",show_design:"Show Design",hide_design:"Hide Design"}};function l(e,t){return window.GPOConfigs?.translations?.[e]?.[t]??c[e]?.[t]??""}function d(e){return(e||"").trim().toLowerCase()}function u(e){return e.filter(((e,t,n)=>n.indexOf(e)===t))}function p(e,t){const n=new CustomEvent(e,{detail:t});document.dispatchEvent(n)}function h(e,t,n=","){const i=e.getAttribute(t);return i?i.split(n).filter(Boolean):[]}function f(e,t,n=[]){n.length?e.setAttribute(t,n.join(",")):e.removeAttribute(t)}function m(e){try{document.createDocumentFragment().querySelector(e)}catch{return!1}return!0}function g(e,t){t.parentNode.insertBefore(e,t)}function y(e,t){t.parentNode.insertBefore(e,t.nextSibling)}function b(e,t){return e&&e!=document?e.classList.contains(t)?e:b(e.parentNode,t):null}function _(e,t){for(var n=e.parentElement||e.parentNode,i=null;null!==n&&1===n.nodeType;)n.matches(t)&&(i=n),n=n.parentElement||n.parentNode;return i}const w=['.gPreorderSellingPlanOption[name="selling_plan"]:checked','[name="selling_plan"]'],v="properties[",S="properties[__gcs_quantity_breaks_]";function C(e){if(window.GPOConfigs?.deepQuickviewForm??!1){const t=e.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(t.bottom<0||t.top-n>=0)}return e.offsetWidth>0||e.offsetHeight>0}function O(e,t=null){let n=!1;if("quickview"===t){let t=document.querySelectorAll(e);if(t.length)if(t.length>1){for(let e=0;ee.querySelector(t))).find(Boolean);return t?.value||void 0}function P(e){return"string"==typeof e&&e.startsWith(v)&&e.endsWith("]")?e.slice(v.length,-1):null}function T(e,t=!1){if(!e||t)return!1;const n=A(e);for(const e of n.keys())if(e.startsWith("items[")||e===S)return!0;return!1}function N(e){e.setAttribute("disabled","disabled"),e.classList.add("gpo-loading")}function I(e){e.removeAttribute("disabled","disabled"),e.classList.remove("gpo-loading")}function L(){return{ratio:window?.GPOConfigs?.imageRatio||1.5,extension:window?.GPOConfigs?.shop?.settings?.general?.widget?.swatch_image_format||"jpg"}}function k(e,t){return e?Math.round(e*t):""}function D(e,t){if(!e)return"";const{ratio:n,extension:i}=L(),o=t?`?width=${k(t,n)}`:"",a=/\.[a-zA-Z0-9]+$/.test(e)?e:`${e}.${i}`;return`${window?.GPOConfigs?.fileUrl}${a}${o}`}function M(e,t){if(!e)return"";const{ratio:n,extension:i}=L(),o=t?`_${k(t,n)}x`:"",a=e.match(/^(.*?)(\.[a-zA-Z0-9]+)?$/),r=a[1],s=a[2]||`.${i}`;return`${window?.GPOConfigs?.assetUrl}${r}${o}${s}`}function R(e){return/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(e)}function $(){document.querySelectorAll(".gpo-modal-dialog, .gpo-backdrop").forEach((e=>e.remove()))}function G(e){const t=window?.GPOConfigs?.option?.flatElements;if(!t.length)return;const n=e.target.getAttribute("data-element-id");if(!n)return;const i=t.find((e=>e.id==n));if(!i)return;const o=window?.Shopify.locale,a=i?.[`text_${o}`]||i.text,r=i?.[`header_${o}`]||i.header||"",s=document.createElement("div"),c=i.width&&i.width\n
\n

${r}

\n ×\n
\n
\n
${a}
\n
\n `;const l=document.createElement("div");l.classList.add("gpo-backdrop"),l.addEventListener("click",$),document.body.appendChild(s),document.body.appendChild(l);const d=document.querySelector(".gpo-modal__close-button");d?.addEventListener("click",$)}function x(e,t,n=300){e.filter(Boolean).forEach((e=>function(e,t,n=300){document.querySelectorAll(e).forEach((e=>{const i=["INPUT","SELECT"].includes(e.tagName)?"change":"click";e.addEventListener(i,(()=>setTimeout(t,n)))}))}(e,t,n)))}},836:(e,t,n)=>{n.d(t,{$A:()=>u,DO:()=>m,Fc:()=>A,J7:()=>g,Sm:()=>l,U4:()=>_,Xl:()=>w,Zj:()=>C,aI:()=>p,iH:()=>v,lC:()=>c,oo:()=>E,up:()=>d,vn:()=>O,yg:()=>y});var i=n(701);const o=/\{\{\s*(\w+)\s*\}\}/,a={amount:[2,",","."],amount_with_comma_separator:[2,".",","],amount_with_space_separator:[2," ",","],amount_with_period_and_space_separator:[2," ",","],amount_with_apostrophe_separator:[2,"'",","],amount_no_decimals:[0,",","."],amount_no_decimals_with_comma_separator:[0,".",","],amount_no_decimals_with_space_separator:[0," ",""]},r={amount:".",amount_with_comma_separator:",",amount_with_space_separator:" ",amount_with_period_and_space_separator:" ",amount_with_apostrophe_separator:"'",amount_no_decimals:".",amount_no_decimals_with_comma_separator:",",amount_no_decimals_with_space_separator:" "},s=Object.assign({},{VND:1e3,AFN:100,ALL:100,DZD:100,AOA:100,ARS:1,AMD:100,AWG:1,AUD:1,AZN:1,BSD:1,BDT:100,BBD:1,BZD:1,BMD:1,BOB:1,BAM:1,BWP:1,BRL:1,GBP:1,BND:1,BGN:1,BIF:1e3,KHR:1e3,CAD:1,CVE:100,KYD:1,XAF:100,XPF:100,CLP:100,CNY:1,COP:1e3,KMF:100,CDF:1e3,CRC:100,HRK:1,CZK:1,DKK:1,DJF:100,DOP:100,XCD:1,EGP:1,ETB:1,EUR:.95,FKP:1,FJD:1,GMD:1,GEL:1,GIP:1,GTQ:1,GNF:1e3,GYD:100,HTG:100,HNL:1,HKD:1,HUF:100,ISK:100,INR:100,IDR:1e3,ILS:1,JMD:100,JPY:100,KZT:100,KES:100,KGS:100,LAK:1e3,LBP:1e3,LSL:1,LRD:100,MOP:1,MKD:100,MWK:100,MYR:1,MVR:1,MUR:1,MXN:1,MDL:1,MNT:1e3,MAD:1,MZN:100,MMK:1e3,NAD:1,NPR:100,ANG:1,TWD:1,NZD:1,NIO:1,NGN:100,NOK:1,PKR:100,PAB:1,PGK:1,PYG:100,PEN:1,PHP:100,PLN:1,QAR:1,RON:1,RUB:100,RWF:100,WST:1,STD:1e3,SAR:1,RSD:100,SCR:1,SLL:100,SGD:1,SBD:1,ZAR:1,KRW:1e3,LKR:100,SHP:1,SRD:1,SZL:1,SEK:1,CHF:1,TJS:1,TZS:1e3,THB:1,TOP:1,TTD:1,TRY:1,UGX:1e3,UAH:1,AED:1,UYU:1,USD:1,UZS:1e3,VUV:100,XOF:100,YER:100,ZMW:1},window.gpoCustomCurrencyRoundups||{}),c=e=>Number(s[e??""])||.01,l=e=>{if("string"!=typeof e)return e;const t=e.replace(/]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"");return(new DOMParser).parseFromString(t,"text/html").documentElement.textContent},d=(e,t=null)=>{let n="string"==typeof e?e.replace(/\D/g,""):e;if(isNaN(n)||null==n)return"";const i=t||window?.GPOConfigs?.money_format||"${{amount}}",r=i.match(o);if(!r)return n;const s=r[1],c=((e,t=2,n=",",i=".")=>{if(null==e)return"0";const o=(e/100).toFixed(t),[a,r]=o.split("."),s=a.replace(/\B(?=(\d{3})+(?!\d))/g,n);return t>0?`${s}${i}${r}`:s})(n,...a[s]||[2,",","."]);return i.replace(o,c)},u=(e,t)=>{const n=((t||window?.GPOConfigs?.money_format||"${{amount}}").match(o)||[])[1]||"amount",i=r[n]||".";return e=((e,t)=>{try{const n=/(\{\{\s*\w+\s*\}\})/,i=t||l(window?.GPOConfigs?.money_format)||"${{amount}}",o=i.match(n)[1],a=i.split(o);a.length&&a.forEach((t=>{e=e.replace(t,"")}))}catch(e){}return e})(e).replace(new RegExp(`[^0-9${i}]`,"g"),""),"."===i&&(e=e.replace(/,/g,"")),","===i&&(e=e.replace(/\./g,"").replace(/,/g,"."))," "===i&&(e=e.replace(/\s/g,"")),100*parseFloat(e)},p=(e,t)=>e.replace("{{addon}}",t),h=e=>{const t=Number(e);return Number.isFinite(t)?t:0},f=(e=[])=>Array.isArray(e)?e.reduce(((e,{id:t,quantity:n})=>t?(e[t]=(e[t]||0)+h(n),e):e),{}):{},m=(e,t)=>{const n=window?.GPOConfigs?.addonVariants||[];if(!n.length)return{isValid:!0,msg:""};const o=(0,i.sC)("addtocart","items_are_no_longer_available"),a=window?.gpoCustomInventoryMsg||(0,i.sC)("addtocart","inventory"),r=n.reduce(((e,t)=>(e[t.id]=t,e)),{}),s=f(t),c=f(e.items),l=Object.entries(c).map((([e,t])=>({id:e,quantity:t})));for(const e of l){const t=r[e.id];if(!t)continue;const{available:n,inventory_management:i,inventory_policy:c,inventory_quantity:l,product_title:d}=t;if(!1===n)return{isValid:!1,msg:o};if("shopify"!==i||"deny"!==c)continue;const u=h(l);if(h(e.quantity)+h(s[e.id])>u){return{isValid:!1,msg:a.replace(/\{\{\s*inventory_quantity\s*\}\}/g,u).replace(/\{\{\s*product_title\s*\}\}/g,d).replace(/inventory_quantity/g,u).replace(/product_title/g,d)}}}return{isValid:!0,msg:""}},g=e=>e?.flatMap((e=>e?.variants?.map((t=>({id:t.id,product_title:e.title,title:t.title,price:t.price,available:e.available}))))),y=()=>GPOConfigs?.product||GPOConfigs?.featuredProduct||GPOConfigs?.quickViewProduct||GPOConfigs?.cartProduct||!1,b=async(e,t={})=>(await fetch(e,t)).json(),_=async(e,t,n)=>{try{n(t,await b("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}))}catch(e){console.error("Error addCart:",e)}},w=async(e=!1)=>{const t=e?"/cart?view=gpo":`${GPOConfigs.shopifyRoot}cart.json`;return b(t)},v=async(e,t)=>{try{await b("/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})&&t()}catch(e){console.error("Error updateCart:",e)}},S=async e=>{try{return await b("/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}catch(e){console.error("Error:",e)}},C=async(e,t)=>{for(let t=0;tb(`${GPOConfigs.shopifyRoot}search?view=gpo&q=handles:${e.join("|")}`),A=async(e,t="new-products")=>b(`${GPOConfigs.shopifyRoot}apps/options/${t}?handles=${e.join(",")}`),E=async e=>{const t=await fetch(`${GPOConfigs.shopifyRoot}products/${e}.js`);return 200===t.status?t.json():null}},2366:(e,t,n)=>{n.d(t,{M3:()=>s,M7:()=>r,PE:()=>f,e5:()=>d,fx:()=>p,jH:()=>h,t$:()=>c,yp:()=>l});var i=n(701),o=n(836);const a='';function r(e,t){if(!e?.length)return!1;for(const n of e){const e=n.properties;if(e)for(const n of Object.keys(e)){const i=(0,o.Sm)(e[n]);if(("string"==typeof i?i.split(t.seperator):[]).length>1)return t.hide_additional_payment_button&&document.body.setAttribute("data-gpo-cart-hide-additional-payment-button",t.hide_additional_payment_button),!0}}return!1}function s(e){e.setAttribute("loading",!0),e.querySelectorAll(".gcp-dialog__footer button").forEach((e=>e.setAttribute("disabled",!0)))}function c(e){e.removeAttribute("loading"),e.querySelectorAll(".gcp-dialog__footer button").forEach((e=>e.removeAttribute("disabled")))}function l(e,t){e.setAttribute("style","display:flex!important"),t.setAttribute("style","display:block!important")}function d(e,t){e.querySelector(".gcp-dialog__body").innerHTML=t}function u(e){e.preventDefault();const t=(0,i.sC)("cart","show_design"),n=(0,i.sC)("cart","hide_design"),o=document.querySelector(".gcp-media-section"),a=document.querySelector(".gcp-info-section"),r=o?.classList.toggle("gcp-hidden");a?.classList.toggle("gcp-hidden",!r),e.currentTarget.innerHTML=r?t:n}function p({type:e,dataInput:t,header:n,body:o,footer:r,hasPersonalize:s}){const c=(0,i.sC)("cart","save"),l=(0,i.sC)("cart","show_design"),d=t=>{t.preventDefault(),function(e){document.querySelector(`.gpo-cartPopup[data-popup-type="${e}"]`)?.remove(),document.querySelector(`.gcp-backdrop[data-popup-type="${e}"]`)?.remove()}(e)},p=document.createElement("div");p.classList.add("gpo-cartPopup"),p.setAttribute("style","display:none!important"),p.setAttribute("data-popup-type",e),p.innerHTML=`
\n ${t||""}\n
\n
\n
\n ${n}\n \n
\n
${o}
\n ${r?``:""}\n
\n
`;const h=p.querySelector(".gcp-dialog__header .header-close");h?.addEventListener("click",d);const f=document.createElement("div");if(f.classList.add("gcp-backdrop"),f.setAttribute("style","display:none!important"),f.setAttribute("data-popup-type",e),f.addEventListener("click",d),s){const e=p.querySelector(".action-toggle");e?.addEventListener("click",u)}return document.body.appendChild(p),document.body.appendChild(f),{popup:p,backdrop:f}}function h(e){const t=new URL(e),n=t.pathname.substring(t.pathname.lastIndexOf("/files/")+7);return`https://${window?.Shopify?.cdnHost??`${window?.GPOConfigs?.shop?.url}/cdn`}/shop/files/${n}${t.search}`}async function f(e,t="download.png"){try{const n=await fetch(e,{mode:"cors"}),i=await n.blob(),o=URL.createObjectURL(i),a=document.createElement("a");a.href=o,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(o)}catch(e){}}},3464:(e,t,n)=>{n.d(t,{Pt:()=>p,SX:()=>l,Yb:()=>d});var i=n(701);const o="2025-10",a=250,r=new Set(["PT_BR","PT_PT","ZH_CN","ZH_TW"]),s=new Set(["AF","AK","AM","AR","AS","AZ","BE","BG","BM","BN","BO","BR","BS","CA","CE","CKB","CS","CU","CY","DA","DE","DZ","EE","EL","EN","EO","ES","ET","EU","FA","FF","FI","FIL","FO","FR","FY","GA","GD","GL","GU","GV","HA","HE","HI","HR","HU","HY","IA","ID","IG","II","IS","IT","JA","JV","KA","KI","KK","KL","KM","KN","KO","KS","KU","KW","KY","LA","LB","LG","LN","LO","LT","LU","LV","MG","MI","MK","ML","MN","MO","MR","MS","MT","MY","NB","ND","NE","NL","NN","NO","OM","OR","OS","PA","PL","PS","PT","QU","RM","RN","RO","RU","RW","SA","SC","SD","SE","SG","SH","SI","SK","SL","SN","SO","SQ","SR","SU","SV","SW","TA","TE","TG","TH","TI","TK","TL","TN","TO","TR","TT","UG","UK","UR","UZ","VI","VO","WO","XH","YI","YO","ZH","ZU"]);function c(e){const t=e||window?.Shopify?.locale;if(!t)return"EN";const n=t.trim().toUpperCase().replace("-","_");if(r.has(n))return n;const i=n.split("_")[0];return s.has(i)?i:"EN"}function l(e=[]){const t=new Set,n=e=>{if(null==e||""===e)return;const n=String(e).trim();n&&t.add(n)};return e.forEach((e=>{e&&!e.hidden&&((0,i.WX)(e.type)?n(e.addon_product?.variant_id):(0,i.AM)(e.type)&&(e.option_values||[]).forEach((e=>{n(e?.variant_id)})))})),Array.from(t)}async function d(e=[],t){const n=Array.from(new Set(e.filter((e=>null!=e&&""!==e)).map((e=>String(e).trim())).filter(Boolean)));if(!n.length)return[];if(!t)throw new Error("Storefront access token is required");const i=window.Shopify?.shop||window.location.hostname.replace(/^www\./,"");if(!i)throw new Error("Shop domain is required");const r=`https://${i}/api/${o}/graphql.json`,s=[];for(let e=0;e{const n={ids:e.map((e=>e.startsWith("gid://")?e:`gid://shopify/ProductVariant/${e}`)),country:window.Shopify?.country||"US",language:c()},i=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json","X-Shopify-Storefront-Access-Token":t},body:JSON.stringify({query:"\n query getAddonVariants($ids: [ID!]!, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) {\n nodes(ids: $ids) {\n ... on ProductVariant {\n id\n title\n availableForSale\n currentlyNotInStock\n quantityAvailable\n price {\n amount\n }\n product {\n title\n }\n }\n }\n }\n ",variables:n})});if(!i.ok)throw new Error(`Storefront API error: ${i.status}`);const o=await i.json();if(o.errors?.length)throw new Error(`Storefront API error: ${o.errors.map((e=>e.message)).join(", ")}`);if(!Array.isArray(o.data?.nodes))throw new Error("Invalid Storefront API response");return o.data.nodes.filter(Boolean).map((e=>({id:parseInt(e.id.split("/").pop()),product_title:e.product?.title||"",title:e.title,price:Math.round(100*Number(e.price.amount)),available:e.availableForSale,inventory_management:null,inventory_policy:e.currentlyNotInStock?"continue":null,inventory_quantity:e.quantityAvailable})))}));return(await Promise.all(l)).flat()}async function u(e,t,n,i=null){if(!n||!e||!t)return null;const a=`https://${e}/api/${o}/graphql.json`,r=async(e,o=[])=>{const s=await(async e=>{const o=`\n query getProduct($id: ID!, $country: CountryCode!, $language: LanguageCode!) @inContext(country: $country, language: $language) {\n product(id: $id) {\n variants(first: 250 ${e?`, after: "${e}"`:""}) {\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n id\n title\n availableForSale\n currentlyNotInStock\n quantityAvailable\n price {\n amount\n currencyCode\n }\n compareAtPrice {\n amount\n currencyCode\n }\n selectedOptions {\n name\n value\n }\n }\n }\n }\n }\n }\n `,r={id:`gid://shopify/Product/${t}`,country:window?.Shopify?.country||"US",language:c(i)},s=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json","X-Shopify-Storefront-Access-Token":n},body:JSON.stringify({query:o,variables:r})});if(!s.ok)throw new Error(`Storefront API error: ${s.status}`);const l=await s.json();return l.errors?null:l.data?.product?.variants||null})(e);if(!s)return o;const l=s.edges.map((({node:e})=>({id:parseInt(e.id.split("/").pop()),title:e.title,available:e.availableForSale,price:100*Number(e.price.amount),compare_at_price:e.compareAtPrice?100*Number(e.compareAtPrice.amount):null,inventory_management:"shopify",inventory_policy:e.currentlyNotInStock?"continue":"deny",inventory_quantity:e.quantityAvailable??0,option1:e.selectedOptions[0]?.value??null,option2:e.selectedOptions[1]?.value??null,option3:e.selectedOptions[2]?.value??null,options:e.selectedOptions.map((e=>e.value))})));const d=[...o,...l];return s.pageInfo.hasNextPage?r(s.pageInfo.endCursor,d):d};try{return await r(null)}catch(e){return console.error("Error fetching variants:",e),null}}async function p(e){if(250===e?.variants?.length){const t=window.GPOConfigs.storefrontToken;if(!t)return;const n=window.Shopify?.shop||window.location.hostname.replace(/^www\./,""),i=await u(n,e.id,t,null);Array.isArray(i)&&i.length&&(e.variants=i)}}},9484:(e,t,n)=>{n.d(t,{$9:()=>I,Bt:()=>T,Dc:()=>C,Dj:()=>m,E0:()=>S,J3:()=>_,K4:()=>E,LG:()=>g,S5:()=>u,Tr:()=>d,Vf:()=>b,_u:()=>P,eM:()=>h,gP:()=>v,kR:()=>N,kS:()=>l,mj:()=>y,ru:()=>c,rv:()=>p,sM:()=>w,ug:()=>A,v4:()=>O,vU:()=>f});var i=n(701),o=n(836);const a=(e,t)=>{if(!t)return!1;if(t.all.enable)return!0;if(t.manual.enable&&e){let n=t.manual.ids.map(String),i=e.id.toString();return n.includes(i)}return!(!t.automate.enable||!e)&&t.automate.conditions.reduce(((n,o)=>{let a="",r=!1,s=!1,c=o.value;switch(["TITLE","TYPE","VENDOR","TAG"].includes(o.select)?c=o.value?(0,i.fQ)(o.value):o.value:"VARIANT_PRICE"==o.select&&(c=100*parseFloat(o.value)),o.select){case"TITLE":a="product_title",r=(0,i.fQ)(e.title);break;case"TYPE":a="product_type",r=(0,i.fQ)(e.type);break;case"VENDOR":a="vendor",r=(0,i.fQ)(e.vendor);break;case"VARIANT_PRICE":a="price",r=e.price;break;case"TAG":a="tags",r=e.tags.map((e=>(0,i.fQ)(e)));break;case"COLLECTION":a="collection",r=e.collections}switch(o.where){case"EQUALS":s="tags"==a||"collection"==a?r.includes(c):"price"==a?r==c:r===c;break;case"NOT_EQUALS":s="tags"==a||"collection"==a?!r.includes(c):"price"==a?r!=c:r!==c;break;case"STARTS_WITH":s=r.startsWith(c);break;case"ENDS_WITH":s=r.endsWith(c);break;case"GREATER_THAN":s=r>c;break;case"LESS_THAN":s=r{if(!t)return!0;if(t.all.enable)return!0;if(t.manual.enable&&e){let n=t.manual.ids.map(String),i=e.id.toString();return n.includes(i)}return!!t.automate.enable&&t.automate.conditions.reduce(((n,o)=>{let a="",r=!1,s=!1;if("LOGGED_IN"==o.select)s=!!e;else if("GUEST"==o.select)s=!e;else if(e){switch(o.select){case"NAME":a="name",r=(0,i.fQ)(e?.name);break;case"EMAIL":a="email",r=(0,i.fQ)(e?.email);break;case"TAG":a="tags",r=e?.tags.map((e=>(0,i.fQ)(e)));break;case"COLLECTION":a="collection",r=e?.collections}let t=o.value?(0,i.fQ)(o.value):o.value;switch(o.where){case"EQUALS":s="tags"==a?r.includes(t):r===t;break;case"NOT_EQUALS":s="tags"==a?!r.includes(t):r!==t;break;case"STARTS_WITH":s=r.startsWith(t);break;case"ENDS_WITH":s=r.endsWith(t);break;case"CONTAINS":s=r.includes(t);break;case"NOT_CONTAINS":s=!r.includes(t)}}return n="and"==t.automate.operator?null===n?s:n*s:null===n?s:n||s}),null)},s=e=>{if(!e)return!0;if(e.hasOwnProperty("enable")&&!e.enable)return!0;const t=window.GPOConfigs.curCountryCode;return!!(e.hasOwnProperty("type")&&e.hasOwnProperty("countries")&&("include"==e.type&&e.countries.includes(t)||"exclude"==e.type&&!e.countries.includes(t)))||void 0},c=(e,t)=>{if(t&&t.length){let n=Object.keys(t);for(let i=n.length-1;i>=0;i--){const o=t[n[i]];if(o){if(!o.status){if(a(e,o?.products?.rule||!1))return o}}}}return!1},l=(e,t,n)=>{let i="all";if(GPOConfigs?.optionIds&&(i=""==GPOConfigs.optionIds?"all":"empty"==GPOConfigs.optionIds?[]:GPOConfigs.optionIds.split(",")),n&&n.length){let o=Object.keys(n);for(let c=o.length-1;c>=0;c--){const l=o[c],d=n[o[c]];if(d){const n="all"==i||i?.includes(o[c]),u=!d.status,p=d.published_scope?.includes("web")??!0;if(n&&u&&p){const n=d?.products?.rule||!1,i=d?.customers?.rule||!1,o=!!(d.hasOwnProperty("countries")&&d.countries.hasOwnProperty("enable")&&d.countries.enable)&&d.countries,c=a(e,n),u=r(t,i),p=s(o);if(c&&u&&p)return{id:l,option:d}}}}}return!1},d=e=>e.flatMap((({elements:e=[],id:t,...n})=>[{...n,id:t},...e.map((e=>({...e,group_id:t})))])),u=e=>e.filter((e=>e.personalize&&!e?.hidden)),p=e=>(e.getAttribute("original-value")||e.value).trim().toLowerCase(),h=(e,t)=>{const n=e.getAttribute("data-name"),i=e.getAttribute("data-field-name");if(n||!e.classList.contains("flatpickr-mobile"))return{input:e,name:n,fieldName:i};const o=t.querySelector('input.flatpickr-input[type="hidden"]');return o?{input:o,name:o.getAttribute("data-name"),fieldName:o.getAttribute("data-field-name")}:{input:e,name:n,fieldName:i}},f=(e,t={})=>{const{hasFakeChange:n=!1,excludeValidate:i=!1}=t;let o;return o=e.isTextInput()||e.isDimension()?["input"]:e.isDatetime()?["input","change"]:e.isFile()?n?["drop","change","gpoFakeChange"]:["drop","change"]:["change"],i&&o.push("gpoExcludeValidate"),o},m=(e,t)=>{document.querySelectorAll(`.gpo-app [data-type="${e}"]`).forEach(t)},g=({type:e="hidden",id:t="",name:n="",value:i="",style:o="",disabled:a=!1,dataset:r={}})=>{const s=document.createElement("input");s.setAttribute("type",e),t&&(s.id=t),n&&(s.name=n),i&&(s.value=i),o&&(s.style.cssText=o),a&&s.setAttribute("disabled","disabled");for(const e in r)s.dataset[e]=r[e];return s},y=e=>{const t=g({type:"text",id:"validator",style:"display:none;opacity:0;height:0;width:0;padding:0;border:none;margin:0;"});e.prepend(t)},b=(e,t)=>{const n=g({name:"properties[_has_gpo]",value:t});e.append(n)},_=e=>{const t=g({name:"properties[_gpo_product_group]",disabled:!0});e.append(t)},w=(e,t)=>{t.forEach((n=>{const{label_on_cart:i,type:o,hidden:a,group_id:r,option_values:s,default_value:c,addon_price:l,addon_formula:d}=n;let u=a||!1,p=!1;if(r){const e=t.find((e=>e.id==r));e&&(p=e.hidden)}if(!u&&!p&&!["heading","divider","modal","paragraph","html","tabs","spacing","group"].includes(o))if("dimension"==o){const t=g({dataset:{fieldName:i,addonUnit:l,addonFormula:d}});e.append(t),s?.forEach((t=>{const n=(t?.[`label_${window.Shopify.locale}`]??t?.label??"").trim(),o=g({dataset:{elementName:i,fieldName:`${i}-${n}`},value:void 0});e.append(o)}))}else{const t=g({dataset:{fieldName:i},value:"hidden"==o?c:void 0});e.append(t)}}));const n=g({name:"properties[_gpo_options]",disabled:!0});e.append(n);const i=g({name:"properties[_gpo_addon_products]",disabled:!0});e.append(i)},v=()=>document.querySelectorAll(".gpo-hidden-inputs [gpo-data-variant-id]").length>0,S=()=>document.querySelectorAll(".gpo-hidden-inputs [data-addon-price]").length>0,C=()=>{const e=window?.GPOConfigs?.shop?.settings?.price?.product_page?.use_bundle||!1;return document.querySelectorAll('.gpo-hidden-inputs :is([data-advanced-addon*="quantity_fixed"],[data-advanced-addon*="one_time_charge"])').length>0||!e&&v()},O=e=>{const t=Number(window?.Shopify?.currency?.rate)||1;return 100*Number(e)*t},A=e=>{const t=Number(window?.Shopify?.currency?.rate)||1,n=window?.GPOConfigs?.shop?.currency,i=Number(e)/100/t;if(!Number.isFinite(i))return 0;if(Math.abs(t-1)<1e-6)return i;const a=(0,o.lC)(n);return Math.round(i/a)*a},E=(e,t=1,n=!0)=>n?`${e} | ${t}`:e,P=(e,t,n=!0)=>{const[i,o]=n?e.split(" | "):[e,t];return{value:i,quantity:o}},T=e=>{const t=[],n=[],o=[],a="quantity_mix"===e.getAttribute("data-advanced-addon"),r=e=>{let r=1;if(a){const t=(0,i.of)(e,"gpo-ov-item"),n=t?.querySelector("input.quantity__input");r=parseInt(n?.value)||1}const s=e.getAttribute("gpo-data-variant-id"),c=e.getAttribute("gpo-data-product-handle");s&&(t.push(E(s,r,a)),n.push(c));const l=e.getAttribute("data-addon-price");l&&o.push(E(l,r,a))},s=e=>{const t=(({unit:e,formula:t,x:n,y:i,z:o})=>{if(!t||!t.includes("{{addon}}"))return 0;if(!/^[0-9+\-*/().\sxyz{}addon]+$/.test(t))return 0;const a=t.match(/\b[a-z]+\b/g)||[],r=a.includes("x"),s=a.includes("y"),c=a.includes("z");if(r&&null===n||s&&null===i||c&&null===o)return 0;if(!r&&!s&&!c&&null===n&&null===i&&null===o)return 0;const l=t.replace(/\{\{addon\}\}/g,e).replace(/\bx\b/g,n??0).replace(/\by\b/g,i??0).replace(/\bz\b/g,o??0);try{const e=new Function(`return ${l}`)();return Number.isFinite(e)?e:0}catch{return 0}})({unit:parseFloat(e.getAttribute("data-addon-unit"))||0,formula:(e.getAttribute("data-addon-formula")||"").trim().toLowerCase(),x:parseFloat(e?.querySelector('[data-tag="x"]')?.value)||null,y:parseFloat(e?.querySelector('[data-tag="y"]')?.value)||null,z:parseFloat(e?.querySelector('[data-tag="z"]')?.value)||null});t&&o.push(t)};if(e.isDimension()){const t=(0,i.of)(e,"gpo-dimension-wrap");t&&s(t)}else if(e.isCheckboxInput()){const t=(0,i.of)(e,"gpo-form__group");if(!t)return{ids:[],handles:[],prices:[]};const n=(e.isSelectMultiple()?"option":"input")+":checked";t.querySelectorAll(n).forEach(r)}else e.isSelect()?e.value&&r(e.options[e.selectedIndex]):e.isSingleChoice()?e.checked&&r(e):e.value&&r(e);return{id:t.join(","),handle:n.join(","),price:o.join(",")}},N=e=>{let t=0;const n=(0,i.p0)(e,"gpo-data-variant-id"),o=(0,i.p0)(e,"data-addon-price"),a="quantity_mix"===e.getAttribute("data-advanced-addon"),r=e.getAttribute("data-quantity")||1;return n.forEach((e=>{const{value:n,quantity:i}=P(e,r,a),o=window?.GPOConfigs?.addonVariants?.find((e=>e.id==n));o&&(t+=o.price*i)})),o.forEach((e=>{const{value:n,quantity:i}=P(e,r,a);t+=O(n)*i})),t},I=(e,t)=>{const n=(0,i.of)(e,"gpo-group"),o="show"==n?.getAttribute("data-clo-display"),a="show"==t?.getAttribute("data-clo-display");return!o&&!a}}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var a=i[e]={id:e,loaded:!1,exports:{}};return n[e].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.m=n,o.amdD=function(){throw new Error("define cannot be used indirect")},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>"bundle."+({40:"main_v1",58:"ajax-cart-vanilla",142:"konva",249:"flatpickr",360:"swiper",399:"quickview",421:"intlTel",425:"themes",463:"ajax-cart-jquery",758:"vanillaPicker",792:"main",949:"cart",977:"imageEditor",979:"cart_v1"}[e]||e)+"."+{34:"915df29a635d69d71938",40:"91386dcb48c587d52527",58:"865ec2fa96e0f2614be5",142:"977671df46f9fd8b1265",156:"9c61d1de8c8067c8a3d4",206:"ddf310c9ec15631f7d9f",249:"dceb160a3d6b462b8798",360:"32485ff5d0c2e40b5c6e",399:"7a963bd924f998c0cbad",421:"93cce74b347491ec75bd",425:"b31a8c8132309dcf810e",463:"76190fae4673ab371a80",533:"34878120587f1298bfbf",573:"d474d363485c6dae44fb",682:"50fe54cf44d954971f37",684:"408641597db762ecf642",758:"aa776a4f0df6605e9ff9",778:"65874129bae02eef66b7",792:"c65be33e962d78e5fd70",949:"84bb26fc9a9f4cc499dd",967:"bff972fce5fa8c3748e9",977:"d29f9266a65949032cf1",979:"4f41edf5d7dff6d11324",986:"110eefc6395623283f54"}[e]+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="GOptions:",o.l=(n,i,a,r)=>{if(e[n])e[n].push(i);else{var s,c;if(void 0!==a)for(var l=document.getElementsByTagName("script"),d=0;d{s.onerror=s.onload=null,clearTimeout(h);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(i))),t)return t(i)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),c&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=n[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={914:0};o.f.j=(t,n)=>{var i=o.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var a=new Promise(((n,o)=>i=e[t]=[n,o]));n.push(i[2]=a);var r=o.p+o.u(t),s=new Error;o.l(r,(n=>{if(o.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var a=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+r+")",s.name="ChunkLoadError",s.type=a,s.request=r,i[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var i,a,[r,s,c]=n,l=0;if(r.some((t=>0!==e[t]))){for(i in s)o.o(s,i)&&(o.m[i]=s[i]);if(c)c(o)}for(t&&t(n);l{this.handleValidate(e,n,i,a)}))}else n.querySelector(".gpo-hidden-inputs")?.remove(),document.querySelector(".gpo-container")?.remove()}(0,r.Uc)("gpoRenderCompleted",{form:n,product:e})},loadCartScripts:async function(){const e=this.shop?.settings?.general?.cart_page?.disable_quantity_and_remove??!1,t=this.shop?.settings?.general?.cart_page?.edit_options??!1;if(e||t){const{default:e}=await Promise.all([o.e(573),o.e(949)]).then(o.bind(o,6541));Object.assign(this,e),this.initCartPage()}},loadQuickViewScripts:async function(){const e=this.shop?.settings?.general?.collection_page?.show_on_quickview;if(e){const{default:e}=await o.e(399).then(o.bind(o,6889));Object.assign(this,e),this.initQuickView(),window.addEventListener("globoFilterRenderCompleted",(()=>this.initQuickView()))}},loadThemeHelperScripts:async function(){const{default:e}=await o.e(425).then(o.bind(o,5961));Object.assign(this,e),this.initThemeHelper()},...GPOConfigs},GPOConfigs?.shop){const e=GPOConfigs.appEmbed||document.head?.innerHTML.includes("globo.options.init.js"),t=GPOConfigs?.hideConsoleBanner??!1;e&&(GPOConfigs.initialize(),t||function(){const e="Globo Product Options",t=["display: inline-block","font-size: 14px","font-weight: 700","background-image: linear-gradient(90deg, #FF4081, #74243f 60%)","color: #fff","padding: 6px 10px","border-radius: 4px"].join(";"),n=["","🧩 Unlimited product options — enable product personalization with live preview.","⚙️ Easy to use, no coding required, fully compatible with all Shopify themes.","🏆 Trusted by 50,000+ Shopify merchants worldwide.","⭐ Over 3,300 positive reviews and growing!","","🔗 Learn more at:",`https://apps.shopify.com/product-options-pro?${new URLSearchParams({utm_source:"storefront-console",utm_medium:"attribution",utm_campaign:"option-banner",utm_content:"learn-more",utm_term:location.hostname}).toString()}`],i=["font-size:13px","line-height: 1.5"].join(";");console.group(`%c${e}`,t),console.log(`%c${n.join("\n")}`,i),console.groupEnd()}())}GOptions=a})();