!function(){var t={7345:function(t,e,n){"use strict";var i=n(4942),o=n(4558).GQ;const r=window.__i18n||new class{constructor(){var t,e=this;(0,i.Z)(this,"shop_locale",(null===(t=o.shop_locale)||void 0===t?void 0:t.current)||"en"),(0,i.Z)(this,"locales",{default:{date_format:"MM/dd/yyyy",add_button:"Add",added_button:"Added",bundle_button:"Add selected item(s)",bundle_saved:"Saved",bundle_select:"Select",bundle_selected:"Selected",bundle_this_item:"This item",bundle_total:"Total price",checkout:"Checkout",discount_summary:"You will get {discount_value} OFF on each product",discount_title:"SPECIAL OFFER",free:"FREE",incart_title:'Customers also bought with "{product_title}"',prepurchase_added:"You just added",prepurchase_title:'Frequently bought with "{product_title}"',qty_discount_note:"on each product",qty_discount_title:"{item_count} item(s) get {discount_value} OFF",sizechart_button:"Size chart",field_name:"Enter your name",field_email:"Enter your email",field_birthday:"Date of birth",discount_noti:"* Discount will be calculated and applied at checkout",fox_discount_noti:"* You are entitled to 1 discount offer of {price} ({discount_title}). This offer can't be combined with any other discount you add here!",bis_open:"Notify me when available",bis_heading:"Back in stock alert 📬",bis_desc:"We will send you a notification as soon as this product is available again.",bis_submit:"Notify me",bis_email:"Your email",bis_name:"Your name",bis_phone:"Your phone number",bis_note:"Your note",bis_signup:"Email me with news and offers",bis_thankyou:"Thank you! We'll send you an email when this product is available!",preorder_discount_title:"🎁 Preorder now to get {discount_value} OFF",preorder_shipping_note:"🚚 Item will be delivered on or before {eta}",preorder_end_note:"🔥 Preorder will end at {end_time}"}}),(0,i.Z)(this,"tr",(function(t){var n;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{locales:o,shop_locale:r}=e;let a=(null===(n=o[r])||void 0===n?void 0:n[t])||o.default[t]||`Foxkit: translation missing for ${t}!`;return Object.keys(i).length&&Object.entries(i).forEach((t=>{let[e,n]=t;return a=a.replace(`{${e}}`,n)})),a})),(0,i.Z)(this,"setLocales",((t,e)=>{this.locales[t]=e}))}};window.__i18n=window.__i18n||r,e.Z=r},4558:function(t,e,n){"use strict";n.d(e,{GQ:function(){return a},LE:function(){return r},gM:function(){return s},s0:function(){return o}});var i=n(8971);n(9280);window.MinimogEvents=window.MinimogEvents||new i.Z,window._ThemeEvent=window.MinimogEvents,window.MinimogLibs.loadjs=__loadjs;const o=window.MinimogEvents,r=window.MinimogTheme||{},a=window.MinimogSettings||{},s=(window.MinimogStrings,window.MinimogLibs||{})},9280:function(){__loadjs=function(){var t=function(){},e={},n={},i={};function o(t,e){if(t){var o=i[t];if(n[t]=e,o)for(;o.length;)o[0](t,e),o.splice(0,1)}}function r(e,n){e.call&&(e={success:e}),n.length?(e.error||t)(n):(e.success||t)(e)}function a(e,n,i,o){var r,s,l=document,u=i.async,c=(i.numRetries||0)+1,d=i.before||t,h=e.replace(/[\?|#].*$/,""),f=e.replace(/^(css|img)!/,"");o=o||0,/(^css!|\.css$)/.test(h)?((s=l.createElement("link")).rel="stylesheet",s.href=f,(r="hideFocus"in s)&&s.relList&&(r=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(h)?(s=l.createElement("img")).src=f:((s=l.createElement("script")).src=e,s.async=void 0===u||u),!(s.onload=s.onerror=s.onbeforeload=function(t){var l=t.type[0];if(r)try{s.sheet.cssText.length||(l="e")}catch(t){18!=t.code&&(l="e")}if("e"==l){if((o+=1)2?n-2:0),o=2;onull!==t))),e&&(e.class&&(e.className=e.class),delete e.children);let r="fragment"!==t?function(t,e){e=e||{};let n=document.createElement(t);try{n=Object.assign(n,e)}catch{const t=Object.keys(e);for(let i=0;it.match(/^data-/)))&&(alert("Do not use data-* in your JSX component! Use dataSet instead!! - Check the console.trace for more info"),window.__aleartedJSXData=!0),null!=e&&e.ref&&("function"==typeof e.ref?e.ref(r):e.ref=r),null!=e&&e.on&&Object.entries(e.on).forEach((t=>{let[e,n]=t;r.addEventListener(e,n)})),null!=e&&e.style&&Object.entries(e.style).forEach((t=>{let[e,n]=t;r.style.setProperty(e,n)})),r}}},8971:function(t,e,n){"use strict";n.d(e,{X:function(){return i},Z:function(){return o}});const i=t=>{let{context:e=document.documentElement,event:n="click",selector:i,handler:o,capture:r=!1}=t;const a=function(t){for(let e=t.target;e&&e!==this;e=e.parentNode)if(e.matches(i)){o.call(e,t,e);break}};return e.addEventListener(n,a,r),()=>{e.removeEventListener(n,a,r)}};class o{constructor(){this.events={}}get evts(){return Object.keys(this.events)}subscribe(t,e){return this.events[t]=this.events[t]||[],this.events[t].push(e),()=>this.unSubscribe(t,e)}unSubscribe(t,e){const n=this.events[t];if(n&&Array.isArray(n))for(let t=0;t1?e-1:0),i=1;i{t(...n)}))}}},2422:function(){!function(){function t(){var t=Array.prototype.slice.call(arguments),e=document.createDocumentFragment();t.forEach((function(t){var n=t instanceof Node;e.appendChild(n?t:document.createTextNode(String(t)))})),this.appendChild(e)}[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((function(e){e.hasOwnProperty("append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value:t})}))}()},643:function(t){var e="complete",n="canceled";function i(t,e,n){Math.max(0,e),Math.max(0,n),t.self===t?t.scrollTo(e,n):(t.scrollLeft=e,t.scrollTop=n)}function o(t){var n=t._scrollSettings;if(n){var r=n.maxSynchronousAlignments,a=function(t,e){var n,i,o,r,a,s,l,u=t.align,c=t.target.getBoundingClientRect(),d=u&&null!=u.left?u.left:.5,h=u&&null!=u.top?u.top:.5,f=u&&null!=u.leftOffset?u.leftOffset:0,m=u&&null!=u.topOffset?u.topOffset:0,p=d,v=h;if(t.isWindow(e))s=Math.min(c.width,e.innerWidth),l=Math.min(c.height,e.innerHeight),i=c.left+e.pageXOffset-e.innerWidth*p+s*p,o=c.top+e.pageYOffset-e.innerHeight*v+l*v,i-=f,o-=m,i=t.align.lockX?e.pageXOffset:i,o=t.align.lockY?e.pageYOffset:o,r=i-e.pageXOffset,a=o-e.pageYOffset;else{s=c.width,l=c.height,n=e.getBoundingClientRect();var g=c.left-(n.left-e.scrollLeft),w=c.top-(n.top-e.scrollTop);i=g+s*p-e.clientWidth*p,o=w+l*v-e.clientHeight*v,i-=f,o-=m,i=Math.max(Math.min(i,e.scrollWidth-e.clientWidth),0),o=Math.max(Math.min(o,e.scrollHeight-e.clientHeight),0),i=t.align.lockX?e.scrollLeft:i,o=t.align.lockY?e.scrollTop:o,r=i-e.scrollLeft,a=o-e.scrollTop}return{x:i,y:o,differenceX:r,differenceY:a}}(n,t),s=Date.now()-n.startTime,l=Math.min(1/n.time*s,1);if(n.endIterations>=r)return i(t,a.x,a.y),t._scrollSettings=null,n.end(e);var u=1-n.ease(l);if(i(t,a.x-a.differenceX*u,a.y-a.differenceY*u),s>=n.time)return n.endIterations++,n.scrollAncestor&&o(n.scrollAncestor),void o(t);!function(t){if("requestAnimationFrame"in window)return window.requestAnimationFrame(t);setTimeout(t,16)}(o.bind(null,t))}}function r(t){return t.self===t}function a(t){return"pageXOffset"in t||(t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth)&&"hidden"!==getComputedStyle(t).overflow}function s(){return!0}function l(t){if(t.assignedSlot)return l(t.assignedSlot);if(t.parentElement)return"body"===t.parentElement.tagName.toLowerCase()?t.parentElement.ownerDocument.defaultView||t.parentElement.ownerDocument.ownerWindow:t.parentElement;if(t.getRootNode){var e=t.getRootNode();if(11===e.nodeType)return e.host}}t.exports=function(t,i,u){if(t){"function"==typeof i&&(u=i,i=null),i||(i={}),i.time=isNaN(i.time)?1e3:i.time,i.ease=i.ease||function(t){return 1-Math.pow(1-t,t/2)},i.align=i.align||{};var c=l(t),d=1,h=i.validTarget||s,f=i.isScrollable;i.debug;for(var m=[];c;)if(i.debug,h(c,d)&&(f?f(c,a):a(c))&&(d++,m.push(c)),!(c=l(c))){p(e);break}return m.reduce(((e,a,s)=>function(t,e,i,a,s){var l,u=!e._scrollSettings,c=e._scrollSettings,d=Date.now(),h={passive:!0};function f(t){e._scrollSettings=null,e.parentElement&&e.parentElement._scrollSettings&&e.parentElement._scrollSettings.end(t),i.debug,s(t),l&&(e.removeEventListener("touchstart",l,h),e.removeEventListener("wheel",l,h))}c&&c.end(n);var m=i.maxSynchronousAlignments;return null==m&&(m=3),e._scrollSettings={startTime:d,endIterations:0,target:t,time:i.time,ease:i.ease,align:i.align,isWindow:i.isWindow||r,maxSynchronousAlignments:m,end:f,scrollAncestor:a},"cancellable"in i&&!i.cancellable||(l=f.bind(null,n),e.addEventListener("touchstart",l,h),e.addEventListener("wheel",l,h)),u&&o(e),l}(t,a,i,m[s+1],p)),null)}function p(t){--d||u&&u(t)}}},4942:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(7343);function o(t,e,n){return(e=(0,i.Z)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},5512:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(1002);function o(t,e){if("object"!==(0,i.Z)(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==(0,i.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}},7343:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(1002),o=n(5512);function r(t){var e=(0,o.Z)(t,"string");return"symbol"===(0,i.Z)(e)?e:String(e)}},1002:function(t,e,n){"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n.d(e,{Z:function(){return i}})}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={exports:{}};return t[i](r,r.exports,n),r.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){"use strict";var t=n(4942),e=n(6295).Z;function i(t){let{wrapper_class:n=""}=t;return e("div",{style:{"--tw-bg-opacity":"0.3"},className:`sf-modal sf-modal__wrapper fixed inset-0 px-5 bg-black flex items-center justify-center transition-opacity opacity-0 duration-200 ease-out ${n}`},e("div",{className:"sf-modal__content bg-white relative rounded max-h-[90vh]"},e("button",{className:"sf-modal__close text-black absolute p-2 bg-white hover:bg-gray-300 rounded-full z-10"},e("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"}))),e("div",{className:"sf-modal__content-inner"})))}var o=n(8971),r=n(6295).Z;var a=class{constructor(e){var n,a,s=this;(0,t.Z)(this,"init",(()=>{(0,o.X)({selector:".sf-modal__wrapper",handler:t=>{var e;((null==t?void 0:t.target)===this.modal||null!=t&&null!==(e=t.target)&&void 0!==e&&e.closest(".sf-modal__close"))&&this.close(t)}})})),(0,t.Z)(this,"setSizes",(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";s.resetSize(),s.sizes=t,t.split(" ").forEach((t=>{var e,n;null===(e=s.modalContent)||void 0===e||null===(n=e.classList)||void 0===n||n.add(t)}))})),(0,t.Z)(this,"setWidth",(t=>{this.modalContent.style.width=t})),(0,t.Z)(this,"resetSize",(()=>{this.sizes&&(this.sizes.split(" ").forEach((t=>{var e,n;null===(e=this.modalContent)||void 0===e||null===(n=e.classList)||void 0===n||n.remove(t)})),this.sizes="")})),(0,t.Z)(this,"appendChild",(t=>{var e;null==this||null===(e=this.modalContentInner)||void 0===e||e.appendChild(t),this.children=t})),(0,t.Z)(this,"removeChild",(()=>{var t;null==this||null===(t=this.children)||void 0===t||t.remove()})),(0,t.Z)(this,"open",(()=>{document.documentElement.classList.add("prevent-scroll"),document.body.appendChild(this.modal),setTimeout((()=>this.modal.classList.add("opacity-100"))),window.addEventListener("keydown",this.handleKeyDown)})),(0,t.Z)(this,"close",(t=>{null==t||t.preventDefault(),this.modal.classList.remove("opacity-100"),window.removeEventListener("keydown",this.handleKeyDown),setTimeout((()=>{this.modal.remove(),this.removeChild(),this.resetSize(),this.modalContent.style.removeProperty("width"),document.documentElement.classList.remove("prevent-scroll")}),this.transitionDuration)})),(0,t.Z)(this,"handleKeyDown",(t=>{27===t.keyCode&&this.close()})),this.modal=r(i,{wrapper_class:e||void 0}),this.modalContent=null===(n=this.modal)||void 0===n?void 0:n.querySelector(".sf-modal__content"),this.modalContentInner=null===(a=this.modal)||void 0===a?void 0:a.querySelector(".sf-modal__content-inner"),this.transitionDuration=200,this.init()}},s=n(6295).Z;var l=class{constructor(e,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Size guide";(0,t.Z)(this,"selectors",{openBtn:"[data-open-sizeguide]"}),(0,t.Z)(this,"init",((t,e)=>{var n,i;const r=document.querySelector(".product-template");null===(n=this.domNodes.openBtn)||void 0===n||null===(i=n.classList)||void 0===i||i.remove("hidden"),document.querySelectorAll(this.selectors.openBtn).forEach((t=>{t.querySelector("span").innerText=e}));const l=s("div",null);l.classList.add("rte","prose","size-chart-content"),l.innerHTML=t,this.modal=new a,(0,o.X)({selector:this.selectors.openBtn,handler:e=>{e.preventDefault(),t&&(this.modal.appendChild(l),this.modal.setSizes("bg-white size-chart"),this.modal.open())}}),r.classList.add("size-chart-initialized")})),this.domNodes=queryDomNodes(this.selectors),this.init(n,i)}};function u(t,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function h(t){u(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===d(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):new Date(NaN)}function f(t){if(u(1,arguments),!function(t){return u(1,arguments),t instanceof Date||"object"===c(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=h(t);return!isNaN(Number(e))}function m(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function p(t,e){return u(2,arguments),function(t,e){u(2,arguments);var n=h(t).getTime(),i=m(e);return new Date(n+i)}(t,-m(e))}var v=864e5;function g(t){u(1,arguments);var e=h(t),n=e.getUTCDay(),i=(n<1?7:0)+n-1;return e.setUTCDate(e.getUTCDate()-i),e.setUTCHours(0,0,0,0),e}function w(t){u(1,arguments);var e=h(t),n=e.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var o=g(i),r=new Date(0);r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0);var a=g(r);return e.getTime()>=o.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}var y=6048e5;function b(t){u(1,arguments);var e=h(t),n=g(e).getTime()-function(t){u(1,arguments);var e=w(t),n=new Date(0);return n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0),g(n)}(e).getTime();return Math.round(n/y)+1}var _={};function S(){return _}function C(t,e){var n,i,o,r,a,s,l,c;u(1,arguments);var d=S(),f=m(null!==(n=null!==(i=null!==(o=null!==(r=null==e?void 0:e.weekStartsOn)&&void 0!==r?r:null==e||null===(a=e.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:d.weekStartsOn)&&void 0!==i?i:null===(l=d.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=h(t),v=p.getUTCDay(),g=(v=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(f+1,0,v),g.setUTCHours(0,0,0,0);var w=C(g,e),y=new Date(0);y.setUTCFullYear(f,0,v),y.setUTCHours(0,0,0,0);var b=C(y,e);return d.getTime()>=w.getTime()?f+1:d.getTime()>=b.getTime()?f:f-1}var x=6048e5;function k(t,e){u(1,arguments);var n=h(t),i=C(n,e).getTime()-function(t,e){var n,i,o,r,a,s,l,c;u(1,arguments);var d=S(),h=m(null!==(n=null!==(i=null!==(o=null!==(r=null==e?void 0:e.firstWeekContainsDate)&&void 0!==r?r:null==e||null===(a=e.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==i?i:null===(l=d.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),f=T(t,e),p=new Date(0);return p.setUTCFullYear(f,0,h),p.setUTCHours(0,0,0,0),C(p,e)}(n,e).getTime();return Math.round(i/x)+1}function D(t,e){for(var n=t<0?"-":"",i=Math.abs(t).toString();i.length0?n:1-n;return D("yy"===e?i%100:i,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):D(n+1,2)},d:function(t,e){return D(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(t,e){return D(t.getUTCHours()%12||12,e.length)},H:function(t,e){return D(t.getUTCHours(),e.length)},m:function(t,e){return D(t.getUTCMinutes(),e.length)},s:function(t,e){return D(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,i=t.getUTCMilliseconds();return D(Math.floor(i*Math.pow(10,n-3)),e.length)}},P="midnight",E="noon",N="morning",L="afternoon",O="evening",Z="night",A={G:function(t,e,n){var i=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var i=t.getUTCFullYear(),o=i>0?i:1-i;return n.ordinalNumber(o,{unit:"year"})}return M.y(t,e)},Y:function(t,e,n,i){var o=T(t,i),r=o>0?o:1-o;return"YY"===e?D(r%100,2):"Yo"===e?n.ordinalNumber(r,{unit:"year"}):D(r,e.length)},R:function(t,e){return D(w(t),e.length)},u:function(t,e){return D(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return D(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,e,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return D(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,e,n){var i=t.getUTCMonth();switch(e){case"M":case"MM":return M.M(t,e);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,e,n){var i=t.getUTCMonth();switch(e){case"L":return String(i+1);case"LL":return D(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,e,n,i){var o=k(t,i);return"wo"===e?n.ordinalNumber(o,{unit:"week"}):D(o,e.length)},I:function(t,e,n){var i=b(t);return"Io"===e?n.ordinalNumber(i,{unit:"week"}):D(i,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):M.d(t,e)},D:function(t,e,n){var i=function(t){u(1,arguments);var e=h(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var i=n-e.getTime();return Math.floor(i/v)+1}(t);return"Do"===e?n.ordinalNumber(i,{unit:"dayOfYear"}):D(i,e.length)},E:function(t,e,n){var i=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,e,n,i){var o=t.getUTCDay(),r=(o-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(r);case"ee":return D(r,2);case"eo":return n.ordinalNumber(r,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,n,i){var o=t.getUTCDay(),r=(o-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(r);case"cc":return D(r,e.length);case"co":return n.ordinalNumber(r,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,n){var i=t.getUTCDay(),o=0===i?7:i;switch(e){case"i":return String(o);case"ii":return D(o,e.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,e,n){var i=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){var i,o=t.getUTCHours();switch(i=12===o?E:0===o?P:o/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){var i,o=t.getUTCHours();switch(i=o>=17?O:o>=12?L:o>=4?N:Z,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var i=t.getUTCHours()%12;return 0===i&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return M.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):M.H(t,e)},K:function(t,e,n){var i=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(i,{unit:"hour"}):D(i,e.length)},k:function(t,e,n){var i=t.getUTCHours();return 0===i&&(i=24),"ko"===e?n.ordinalNumber(i,{unit:"hour"}):D(i,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):M.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):M.s(t,e)},S:function(t,e){return M.S(t,e)},X:function(t,e,n,i){var o=(i._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return U(o);case"XXXX":case"XX":return Y(o);default:return Y(o,":")}},x:function(t,e,n,i){var o=(i._originalDate||t).getTimezoneOffset();switch(e){case"x":return U(o);case"xxxx":case"xx":return Y(o);default:return Y(o,":")}},O:function(t,e,n,i){var o=(i._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+W(o,":");default:return"GMT"+Y(o,":")}},z:function(t,e,n,i){var o=(i._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+W(o,":");default:return"GMT"+Y(o,":")}},t:function(t,e,n,i){var o=i._originalDate||t;return D(Math.floor(o.getTime()/1e3),e.length)},T:function(t,e,n,i){return D((i._originalDate||t).getTime(),e.length)}};function W(t,e){var n=t>0?"-":"+",i=Math.abs(t),o=Math.floor(i/60),r=i%60;if(0===r)return n+String(o);var a=e||"";return n+String(o)+a+D(r,2)}function U(t,e){return t%60==0?(t>0?"-":"+")+D(Math.abs(t)/60,2):Y(t,e)}function Y(t,e){var n=e||"",i=t>0?"-":"+",o=Math.abs(t);return i+D(Math.floor(o/60),2)+n+D(o%60,2)}var F=A,q=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},z=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},j={p:z,P:function(t,e){var n,i=t.match(/(P+)(p+)?/)||[],o=i[1],r=i[2];if(!r)return q(t,e);switch(o){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",q(o,e)).replace("{{time}}",z(r,e))}},R=j;var H=["D","DD"],B=["YY","YYYY"];function I(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var K={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},G=function(t,e,n){var i,o=K[t];return i="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function $(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}var X={date:$({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:$({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:$({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Q={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},J=function(t,e,n,i){return Q[t]};function V(t){return function(e,n){var i;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,r=null!=n&&n.width?String(n.width):o;i=t.formattingValues[r]||t.formattingValues[o]}else{var a=t.defaultWidth,s=null!=n&&n.width?String(n.width):t.defaultWidth;i=t.values[s]||t.values[a]}return i[t.argumentCallback?t.argumentCallback(e):e]}}var tt={ordinalNumber:function(t,e){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:V({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:V({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:V({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:V({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:V({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function et(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,o=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],r=e.match(o);if(!r)return null;var a,s=r[0],l=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(l)?function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(nt.matchPattern);if(!n)return null;var i=n[0],o=t.match(nt.parsePattern);if(!o)return null;var r=nt.valueCallback?nt.valueCallback(o[0]):o[0];return{value:r=e.valueCallback?e.valueCallback(r):r,rest:t.slice(i.length)}}),era:et({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:et({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:et({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:et({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:et({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},ot={code:"en-US",formatDistance:G,formatLong:X,formatRelative:J,localize:tt,match:it,options:{weekStartsOn:0,firstWeekContainsDate:1}},rt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,at=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,st=/^'([^]*?)'?$/,lt=/''/g,ut=/[a-zA-Z]/;function ct(t,e,n){var i,o,r,a,s,l,c,d,v,g,w,y,b,_,C,T,x,k;u(2,arguments);var D=String(e),M=S(),P=null!==(i=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:M.locale)&&void 0!==i?i:ot,E=m(null!==(r=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==s?s:M.firstWeekContainsDate)&&void 0!==a?a:null===(v=M.locale)||void 0===v||null===(g=v.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==r?r:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=m(null!==(w=null!==(y=null!==(b=null!==(_=null==n?void 0:n.weekStartsOn)&&void 0!==_?_:null==n||null===(C=n.locale)||void 0===C||null===(T=C.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==b?b:M.weekStartsOn)&&void 0!==y?y:null===(x=M.locale)||void 0===x||null===(k=x.options)||void 0===k?void 0:k.weekStartsOn)&&void 0!==w?w:0);if(!(N>=0&&N<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");var L=h(t);if(!f(L))throw new RangeError("Invalid time value");var O=function(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}(L),Z=p(L,O),A={firstWeekContainsDate:E,weekStartsOn:N,locale:P,_originalDate:L};return D.match(at).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,R[e])(t,P.formatLong):t})).join("").match(rt).map((function(i){if("''"===i)return"'";var o=i[0];if("'"===o)return function(t){var e=t.match(st);if(!e)return t;return e[1].replace(lt,"'")}(i);var r,a=F[o];if(a)return null!=n&&n.useAdditionalWeekYearTokens||(r=i,-1===B.indexOf(r))||I(i,e,String(t)),null!=n&&n.useAdditionalDayOfYearTokens||!function(t){return-1!==H.indexOf(t)}(i)||I(i,e,String(t)),a(Z,i,P.localize,A);if(o.match(ut))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return i})).join("")}var dt=n(4558).GQ,ht=n(6295).Z,ft=n(7345).Z;function mt(t){var e,n;let{settings:i}=t;const{discount:o,eta:r,show_eta:a,active_discount:s,end_time:l,set_end_time:u}=i,{money_format:c}=dt,d=Number((null===(e=window.Shopify)||void 0===e||null===(n=e.currency)||void 0===n?void 0:n.rate)||1),h="PERCENTAGE"===o.type?`${o.value}%`:formatMoney(100*o.value*d,c),f=ht("li",null),m=ht("li",null),p=ht("li",null),v=ft.tr("date_format");return s&&o.value&&(f.innerHTML=ft.tr("preorder_discount_title",{discount_value:h})),r&&a&&(m.innerHTML=ft.tr("preorder_shipping_note",{eta:ct(new Date(r),v)})),l&&(p.innerHTML=ft.tr("preorder_end_note",{end_time:ct(new Date(l),v)})),ht("ul",{className:"foxkit-preorder-note"},s&&null!=o&&o.value?f:null,a&&r?m:null,u&&l?p:null)}var pt=n(643),vt=n.n(pt),gt=n(4558).GQ;n(6295).Z;window.__getSectionInstanceByType=t=>window.Shopify.theme.sections.instances.find((e=>e.type===t));const wt=document.querySelector("#scroll-to-top-target");function yt(t){vt()(wt,t)}function bt(t){for(var e=t+"=",n=decodeURIComponent(document.cookie).split(";"),i=0;i1&&void 0!==arguments[1]?arguments[1]:[];(0,t.Z)(this,"selectors",{productList:"[data-product-list]",gridContainer:"[data-grid-container]"}),(0,t.Z)(this,"swiper",void 0),(0,t.Z)(this,"currentScreen",void 0),(0,t.Z)(this,"init",(async()=>{var t,e;const n={};await Promise.all(this.productHandles.map((async t=>{const e=((t,e,n)=>{let i;const{routes:o}=gt;return i=`${o.root.endsWith("/")?"":o.root}/${t}/${e}`,n&&(i+=`?${n}`),i})("products",t,"view=grid-card-item"),i=await fetchCache(e),o=_t("div",{className:"swiper-slide "+(this.enableSlider?"":"pb-[30px]")});o.innerHTML=i,o.querySelector('[data-view="card"]')&&(n[t]=o)})));const{productList:i,gridContainer:o}=this.domNodes;this.enableSlider||i.remove(),this.productHandles.forEach((t=>{const e=n[t];if(e){const t=this.enableSlider?i:o;null==t||t.appendChild(e)}})),null===(t=St.CompareProduct)||void 0===t||t.setCompareButtonsState(),null===(e=St.Wishlist)||void 0===e||e.setWishlistButtonsState(),setTimeout((()=>{this.initByScreenSize()}),300),this.container.classList.remove("hidden"),window.addEventListener("resize",function(t){var e=this;let n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;return function(){for(var o=arguments.length,r=new Array(o),a=0;at.apply(e,r)),i)}}(this.initByScreenSize,300)),(()=>{if("undefined"!=typeof SMARTIFYAPPS&&SMARTIFYAPPS.rv.installed&&SMARTIFYAPPS.rv.scmReviewsRate.actionCreateReviews(),"undefined"!=typeof Yotpo&&"function"==typeof Yotpo.API){const t=new Yotpo.API(yotpo);null==t||t.refreshWidgets()}})()})),(0,t.Z)(this,"initByScreenSize",(()=>{const{productList:t,gridContainer:e}=this.domNodes,n=window.innerWidth>767?"desktop":"mobile";var i;if(n!==this.currentScreen)if(this.currentScreen=n,"desktop"===n){if(null==e||e.classList.remove("sf__ms"),null==t||t.classList.remove("sf__ms-wrapper"),this.enableSlider&&(null===(i=this.productHandles)||void 0===i?void 0:i.length)>this.productsPerRow)if(this.swiper)this.swiper.init();else{null==e||e.classList.add("swiper-container");const t=this.container,n=this.container.querySelector(".sf-slider__controls"),i=n&&n.querySelector(".sf-slider__controls-prev"),o=n&&n.querySelector(".sf-slider__controls-next"),r=e.querySelector(".swiper-wrapper").childElementCount;this.slider=new Ct.Swiper(e,{slidesPerView:2,showPagination:!1,showNavigation:!0,loop:!0,threshold:2,pagination:!1,breakpoints:{480:{slidesPerView:3},768:{slidesPerView:4},1280:{slidesPerView:parseInt(this.productsPerRow),slidesPerGroup:2}},on:{init:function(){setTimeout((()=>{const e=t.querySelector(".sf-image");if(e&&n){const t=e.clientHeight;n.style.setProperty("--offset-top",parseInt(t)/2+"px")}}),200)},breakpoint:(t,e)=>{if(n){const{slidesPerView:i}=e;r>i?(n.classList.remove("hidden"),t.allowTouchMove=!0):(n.classList.add("hidden"),t.allowTouchMove=!1)}}}}),this.slider&&(i&&i.addEventListener("click",(()=>this.slider.slidePrev())),o&&o.addEventListener("click",(()=>this.slider.slideNext()))),this.swiper=null==e?void 0:e.swiper}}else this.swiper&&this.swiper.destroy(!1,!0),e.classList.remove("swiper-container"),e.classList.add("sf__ms"),t.classList.add("sf__ms-wrapper")})),e&&n.length&&(this.container=e,this.enableSlider="true"===e.dataset.enableSlider,this.productsToShow=Number(e.dataset.productsToShow)||20,this.productsPerRow=Number(e.dataset.productsPerRow),this.productHandles=n.slice(0,this.productsToShow),this.domNodes=queryDomNodes(this.selectors,e),this.init().catch(console.error))}}St.ProductList=Tt;var xt=n(4558).GQ,kt=n(7345).Z,Dt=n(4558).LE,Mt=n(4558).s0,Pt=n(6295).Z;class Et{constructor(){(0,t.Z)(this,"appURL",xt.foxkitAppURL?`https://${xt.foxkitAppURL}`:""),(0,t.Z)(this,"shop",window.Shopify.shop),(0,t.Z)(this,"page",xt.template),(0,t.Z)(this,"template",xt.templateName),(0,t.Z)(this,"foxKitSettings",{}),(0,t.Z)(this,"discountCodeKey","mn-discount-code"),(0,t.Z)(this,"selectors",{bundleContainerOutside:"#fox-product-bundle-outside",bundleContainerInsideDesktop:".sf-prod-template__desktop #fox-product-bundle-inside",bundleContainerInsideMobile:".sf-prod-template__mobile #fox-product-bundle-inside",formActions:"[data-cart-actions]"}),(0,t.Z)(this,"cartSelectors",{checkoutButton:'[name="checkout"]',cartDiscountsWrapper:"[data-discounts-wrapper]",cartDiscounts:"[data-discounts]",cartDiscountsList:"[data-discounts-list]",subTotalPrice:"[data-cart-subtotal-price]",cartItem:".scd-item",cartItemPrices:".scd-item__prices",cartItemOriginalPrice:"[data-cart-item-original-price]",cartItemFinalPrice:"[data-cart-item-final-price]",couponMessages:"#coupon-messages",cartDiscountCode:'[name="discount"]',cartDiscountCodeSaveBtn:'.btn-save[data-action="coupon"]',discountNoti:"[data-discount-noti]"}),(0,t.Z)(this,"newCart",null),(0,t.Z)(this,"lastDiscount",void 0),(0,t.Z)(this,"showNoti",!1),(0,t.Z)(this,"checkoutEventAdded",!1),(0,t.Z)(this,"init",(async()=>{var t,e,n;this.domNodes=queryDomNodes(this.selectors);const i=(null===(t=xt.shop_locale)||void 0===t?void 0:t.current)||"en";await loadAssets("foxkitApp.css");const{FoxKitStrings:o}=window;if(o&&"object"==typeof o&&o[i])kt.setLocales(i,o[i]);else{const t=await this.fetchShopLocales(i);if(t&&t.ok&&t.payload){const{locale:e,data:n}=t.payload;kt.setLocales(e,n)}}const r=await this.fetchData();null!=r&&r.ok&&null!=r&&r.payload&&(this.foxKitSettings={...r.payload,inCart:{active:!0},prePurchase:{active:!0}},Object.entries(this.foxKitSettings).forEach((t=>{let[e,n]=t,i=(null==n?void 0:n.active)||!1;if(["popup","luckyWheel"].includes(e)&&i&&(window.innerWidth<767&&(i=n.show_on_mobile),i&&"home_only"===n.display_on&&"index"!==this.page&&(i=!1)),"bis"===e&&"product"!==this.template&&i&&(i=!1),i){const t=`init${e.capitalize()}`;loadAssets(e).then(this[t])}}))),this.renderPreOrderNote(),await this.renderNewCart(null===(e=Dt)||void 0===e||null===(n=e.Cart)||void 0===n?void 0:n.cart),Mt.subscribe("ON_CART_UPDATE",this.renderNewCart)})),(0,t.Z)(this,"handleCheckout",(t=>{var e,n,i;t.preventDefault(),t.stopPropagation();const o=t.target;o.classList.add("sf-spinner-loading");const r=this.generateFoxkitCart(null===(e=Dt)||void 0===e||null===(n=e.Cart)||void 0===n?void 0:n.cart),a=(null===(i=xt.shop_locale)||void 0===i?void 0:i.current)||"en";fetch(`${this.appURL}/api/public/checkout?shop=${this.shop}`,{method:"POST",body:JSON.stringify(r)}).then((t=>t.json())).then((t=>{const{invoiceUrl:e}=(null==t?void 0:t.payload)||{};e?window.location.href=`${e}?locale=${a}`:(this.toogleCheckoutEvent(0),o.click())})).catch((t=>{this.toogleCheckoutEvent(0),o.click()}))})),(0,t.Z)(this,"fetchShopLocales",(t=>new Promise(((e,n)=>{fetch(`${this.appURL}/api/public/locale?shop=${this.shop}&locale=${t}`).then((t=>t.json())).then(e).catch(n)})))),(0,t.Z)(this,"fetchData",(()=>new Promise(((t,e)=>{const n=document.body.dataset.productId;let i=`${this.appURL}/api/public/?shop=${this.shop}`;n&&(i+=`&productId=${n}`),fetch(i).then((t=>t.json())).then(t).catch(e)})))),(0,t.Z)(this,"initBis",(()=>{const{bis:t}=this.foxKitSettings;this.BIS=new window.FoxKit.BIS(t)})),(0,t.Z)(this,"initProductRecommendations",(()=>{const{productRecommendations:t}=this.foxKitSettings,{recommended_products:e,heading:n="Recommend for you"}=t,i=document.querySelector('[data-section-type="foxkit-related-products"]');if(Array.isArray(e)&&e.length&&i){const t=i.querySelector(".sf-product__section-heading"),{productTitle:o,productVendor:r,productType:a}=i.dataset;t.textContent=n.replace("{product_title}",o).replace("{product_vendor}",r).replace("{product_type}",a),this.RelatedProducts=new Tt(i,e)}})),(0,t.Z)(this,"initBundle",(()=>{var t;const e=null===(t=Dt)||void 0===t?void 0:t.ProductBundle;if(e){const{bundle:t}=this.foxKitSettings,{bundleContainerOutside:n,bundleContainerInsideMobile:i,bundleContainerInsideDesktop:o}=this.domNodes;"inside"===t.position?this.Bundle={desktop:new e(o,t),mobile:new e(i,t)}:this.Bundle=new e(n,t)}})),(0,t.Z)(this,"initPopup",(()=>{const{popup:t}=this.foxKitSettings;this.Popup=new window.FoxKit.Popup(t)})),(0,t.Z)(this,"initLuckyWheel",(()=>{const{luckyWheel:t}=this.foxKitSettings;this.LuckyWheel=new window.FoxKit.LuckyWheel(t)})),(0,t.Z)(this,"initSizeChart",(()=>{const{sizeChart:t}=this.foxKitSettings;this.SizeChart=new l(this.sizeChartEnabled,null==t?void 0:t.chart_content,kt.tr("sizechart_button"))})),(0,t.Z)(this,"initSalesNotification",(()=>{const{salesNotification:t}=this.foxKitSettings,e={title:t.title,time:t.time,hideOnMobile:!t.show_on_mobile,duration:parseInt(t.display_time)||5,delay:t.delay_time||"10-15",showAfter:t.delay_show||5,maximum:parseInt(t.max_show),products:null==t?void 0:t.products,names:t.names.split(", "),locations:t.locations.split(", "),position:t.position};this.SalesPop=new window.FoxKit.SalesNotifications(e)})),(0,t.Z)(this,"initCountdown",(()=>{const{countdown:t}=this.foxKitSettings;this.Countdown=new Dt.ProductCountdown(t)})),(0,t.Z)(this,"initStockCountdown",(()=>{})),(0,t.Z)(this,"initPrePurchase",(()=>{const{prePurchase:t}=this.foxKitSettings;this.PrePurchase=new window.FoxKit.PrePurchase(t)})),(0,t.Z)(this,"initCartGoal",(()=>{const{cartGoal:t}=this.foxKitSettings;this.CartGoal=new window.FoxKit.CartGoal(t)})),(0,t.Z)(this,"initInCart",(()=>{this.InCart=new window.FoxKit.InCart})),(0,t.Z)(this,"initQuantityDiscount",(()=>{const{quantityDiscount:t}=this.foxKitSettings;this.QuantityDiscount=new window.FoxKit.QuantityDiscount(t)})),(0,t.Z)(this,"initPreOrder",(()=>{const{preOrder:t}=this.foxKitSettings;if(!t||null==t||!t.active)return;const{date_now:e}=window.MinimogSettings,{active:n,start_time:i,end_time:o,set_end_time:r}=t;let a=n;if(n){const t=new Date(i).getTime(),n=new Date(o).getTime(),s=new Date(e).getTime();t&&s=n&&(a=!1)}a&&this.domNodes.formActions&&this.domNodes.formActions.appendChild(Pt(mt,{settings:t}))})),(0,t.Z)(this,"renderPreOrderNote",(()=>{const t={sections:['[data-preorder="true"]'],formActions:"[data-cart-actions]"},e=queryDomNodes(t);e.sections.length&&e.sections.forEach((e=>{const{date_now:n}=window.MinimogSettings,{preorderActive:i,preorderStartTime:o,preorderEndTime:r,preorderSetEndTime:a,preorderDiscount:s,preorderDiscountType:l,preorderShowEta:u,preorderDiscountActive:c,preorderEta:d}=e.dataset;let h="true"===i;if("true"===i){const t=new Date(o).getTime(),e=new Date(r).getTime(),i=new Date(n).getTime();t&&i=e&&(h=!1)}if(h){const n={discount:{value:s,type:l},eta:d,show_eta:"true"===u,active_discount:"true"===c,set_end_time:"true"===a,end_time:r};e.querySelector(t.formActions).appendChild(Pt(mt,{settings:n}))}}))})),(0,t.Z)(this,"getNewCart",(async t=>(t.items=t.items.map((t=>({...t,product_description:""}))),new Promise(((e,n)=>{var i,o;const r=this.generateFoxkitCart(t);if(!r)return e();const a="discount_code"===(null===(i=this.foxKitSettings)||void 0===i||null===(o=i.shop)||void 0===o?void 0:o.discount_apply_by)?"/v2":"",s=`${this.appURL}/api/public${a}/cart/?shop=${this.shop}`;fetch(s,{method:"POST",body:JSON.stringify(r)}).then((t=>t.json())).then(e).catch(n)}))))),(0,t.Z)(this,"generateFoxkitCart",(t=>{var e,n,i,o,r;if(!t||null==t||null===(e=t.items)||void 0===e||!e.length)return!1;const{attributes:a}=t;let{_foxCartDiscounts:s=[]}=a,l={...t};null!==(n=s)&&void 0!==n&&n.length&&(s=JSON.parse(s).map((t=>JSON.parse(t))));const{cartGoal:u}=this.foxKitSettings;if(u&&this.CartGoal){const{active:t,disable_foxkit_discount:e}=u;t&&!e&&this.CartGoal.goalDone&&this.CartGoal.enabled&&s.push({offer_id:u._id,plugin:"CartGoal"})}l.attributes={...a,_foxCartDiscounts:[...s]};const c=bt("discount_code");return c&&(l.discount_code=c),l._foxCurrency={...(null===(i=window.Shopify)||void 0===i?void 0:i.currency)||{},published:null===(o=this.foxKitSettings)||void 0===o||null===(r=o.shop)||void 0===r?void 0:r.currency},l})),(0,t.Z)(this,"renderNewCart",(t=>{if(!t||!t.item_count)return Mt.emit("ON_FOX_CART_UPDATE",t);this.getNewCart(t).then((t=>{let{payload:e}=t;this.cartNodes=queryDomNodes(this.cartSelectors);const{Shopify:n}=window;let i=!1;if(e){var o,r;this.newCart=e,Mt.emit("ON_FOX_CART_UPDATE",e);const{_foxCartPrices:t}=e;let c=!(null==t||!t.total_discounted_amount);if("discount_code"!==(null===(o=this.foxKitSettings.shop)||void 0===o?void 0:o.discount_apply_by)){const t=this.foxKitSettings.cartGoal;if(null!=t&&t.active&&t.goal_amount){var a,s,l,u;const e=Number(t.goal_amount||0)*Number((null==n||null===(a=n.currency)||void 0===a?void 0:a.rate)||1)*100;((null===(s=Dt)||void 0===s||null===(l=s.Cart)||void 0===l||null===(u=l.cart)||void 0===u?void 0:u.total_price)||0)>=e&&(c=!0)}}if(this.toogleCheckoutEvent(c),this.applyDiscount(null==t?void 0:t.discount),null===(r=this.lastDiscount)||void 0===r||r.remove(),t){i=!0;const{cartDiscounts:e,subTotalPrice:n,cartDiscountsWrapper:o}=this.cartNodes,{total_discounted_amount:r,total_price:a}=t,s=this.generateCartDiscount(r);null==e||e.appendChild(s),this.lastDiscount=s;const{money_format:l}=xt;n&&setTimeout((()=>n.innerHTML=formatMoney(a,l)),200),null==o||o.classList.remove("hidden")}}const{discountNoti:c,cartDiscountCode:d,cartDiscountCodeSaveBtn:h,couponMessages:f}=this.cartNodes;if(f){let t=kt.tr("discount_noti");if(i&&(t=kt.tr("fox_discount_noti",{price:formatMoney(e._foxCartPrices.total_discounted_amount,xt.money_format),discount_title:kt.tr("discount_title")}),!this.showNoti)){const t=localStorage.getItem(this.discountCodeKey);d&&t&&(c.style.display="inline",this.showNoti=!0)}f.firstElementChild.innerHTML=t}i?(null==d||d.setAttribute("disabled",!0),null==h||h.setAttribute("disabled",!0)):(null==d||d.removeAttribute("disabled"),null==h||h.removeAttribute("disabled"))})).catch(console.error)})),(0,t.Z)(this,"toogleCheckoutEvent",(t=>{var e,n;const{checkoutButton:i}=this.cartNodes,o="discount_code"!==(null===(e=this.foxKitSettings)||void 0===e||null===(n=e.shop)||void 0===n?void 0:n.discount_apply_by);i&&o&&(t?this.checkoutEventAdded||(i.addEventListener("click",this.handleCheckout,!0),this.checkoutEventAdded=!0):(i.removeEventListener("click",this.handleCheckout,!0),this.checkoutEventAdded=!1))})),(0,t.Z)(this,"applyDiscount",(t=>{if(!t)return;const{codeDiscount:e,shareable_url:n,code:i,summary:o}=t;if("ACTIVE"===(null==e?void 0:e.status)&&n){bt("discount_code")!==i&&fetch(n).then((()=>{this.domNodes.cartDiscounts})).catch(console.error)}})),(0,t.Z)(this,"removeAttribute",(async t=>{const{_foxCartPrices:e}=t;if(!e){var n;const{attributes:t={}}=null===(n=Dt.Cart)||void 0===n?void 0:n.cart;let{_foxCartDiscounts:e}=t;var i;if(e)delete t._foxCartDiscounts,await(null===(i=Dt.Cart)||void 0===i?void 0:i.updateCart({attributes:t}))}})),(0,t.Z)(this,"generateCartDiscount",(t=>{const e=Pt("ul",null);e.classList.add("scd-cart__discounts"),t=formatMoney(t,xt.money_format);const n=Pt("li",null);return n.innerHTML=` ${kt.tr("discount_title")} (-${t})`,e.appendChild(n),e}));const{appURL:e,shop:n}=this;e&&n&&this.init().catch(console.error)}}window.FoxKit=new Et}()}();