(()=>{var t={3578:(t,e,o)=>{var n=o(3745),i=o(2178).each;function s(t,e){this.query=t,this.isUnconditional=e,this.handlers=[],this.mql=window.matchMedia(t);var o=this;this.listener=function(t){o.mql=t.currentTarget||t,o.assess()},this.mql.addListener(this.listener)}s.prototype={constuctor:s,addHandler:function(t){var e=new n(t);this.handlers.push(e),this.matches()&&e.on()},removeHandler:function(t){var e=this.handlers;i(e,(function(o,n){if(o.equals(t))return o.destroy(),!e.splice(n,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){i(this.handlers,(function(t){t.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var t=this.matches()?"on":"off";i(this.handlers,(function(e){e[t]()}))}},t.exports=s},6779:(t,e,o)=>{var n=o(3578),i=o(2178),s=i.each,r=i.isFunction,c=i.isArray;function l(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}l.prototype={constructor:l,register:function(t,e,o){var i=this.queries,l=o&&this.browserIsIncapable;return i[t]||(i[t]=new n(t,l)),r(e)&&(e={match:e}),c(e)||(e=[e]),s(e,(function(e){r(e)&&(e={match:e}),i[t].addHandler(e)})),this},unregister:function(t,e){var o=this.queries[t];return o&&(e?o.removeHandler(e):(o.clear(),delete this.queries[t])),this}},t.exports=l},3745:t=>{function e(t){this.options=t,!t.deferSetup&&this.setup()}e.prototype={constructor:e,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(t){return this.options===t||this.options.match===t}},t.exports=e},2178:t=>{t.exports={isFunction:function(t){return"function"==typeof t},isArray:function(t){return"[object Array]"===Object.prototype.toString.apply(t)},each:function(t,e){for(var o=0,n=t.length;o{var n=o(6779);t.exports=new n}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t="data-section-id";function e(e,o){this.container=function(e){if(!(e instanceof Element))throw new TypeError("Theme Sections: Attempted to load section. The section container provided is not a DOM element.");if(null===e.getAttribute(t))throw new Error("Theme Sections: The section container provided does not have an id assigned to the "+t+" attribute.");return e}(e),this.id=e.getAttribute(t),this.extensions=[],Object.assign(this,function(t){if(void 0!==t&&"object"!=typeof t||null===t)throw new TypeError("Theme Sections: The properties object provided is not a valid");return t}(o)),this.onLoad()}e.prototype={onLoad:Function.prototype,onUnload:Function.prototype,onSelect:Function.prototype,onDeselect:Function.prototype,onBlockSelect:Function.prototype,onBlockDeselect:Function.prototype,extend:function(t){this.extensions.push(t);var e=Object.assign({},t);delete e.init,Object.assign(this,e),"function"==typeof t.init&&t.init.apply(this)}},"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),o=1;o0)&&(null!==e.getAttribute(n)&&(e.getAttribute(n)!==t||(r.push(new o(e)),!1)))})))}))}function l(t){var e=[];if(NodeList.prototype.isPrototypeOf(t)||Array.isArray(t))var o=t[0];if(t instanceof Element||o instanceof Element)d(t).forEach((function(t){e=e.concat(r.filter((function(e){return e.container===t})))}));else if("string"==typeof t||"string"==typeof o){u(t).forEach((function(t){e=e.concat(r.filter((function(e){return e.type===t})))}))}return e}function a(t){for(var e,o=0;o0?t=Array.prototype.slice.call(t):NodeList.prototype.isPrototypeOf(t)&&0===t.length||null===t?t=[]:!Array.isArray(t)&&t instanceof Element&&(t=[t]),t}function h(t){return h="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},h(t)}function p(t){var e=function(t,e){if("object"!==h(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!==h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===h(e)?e:String(e)}function f(t,e,o){return(e=p(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}window.Shopify.designMode&&(document.addEventListener("shopify:section:load",(function(t){var e=t.detail.sectionId,o=t.target.querySelector("["+i+'="'+e+'"]');null!==o&&c(o.getAttribute(n),o)})),document.addEventListener("shopify:section:unload",(function(t){var e=t.detail.sectionId,o=t.target.querySelector("["+i+'="'+e+'"]');"object"==typeof l(o)[0]&&l(o).forEach((function(t){var e=r.map((function(t){return t.id})).indexOf(t.id);r.splice(e,1),t.onUnload()}))})),document.addEventListener("shopify:section:select",(function(t){var e=a(t.detail.sectionId);"object"==typeof e&&e.onSelect(t)})),document.addEventListener("shopify:section:deselect",(function(t){var e=a(t.detail.sectionId);"object"==typeof e&&e.onDeselect(t)})),document.addEventListener("shopify:block:select",(function(t){var e=a(t.detail.sectionId);"object"==typeof e&&e.onBlockSelect(t)})),document.addEventListener("shopify:block:deselect",(function(t){var e=a(t.detail.sectionId);"object"==typeof e&&e.onBlockDeselect(t)})));const y=t=>{let{context:e=document.documentElement,event:o="click",selector:n,handler:i,capture:s=!1}=t;const r=function(t){for(let e=t.target;e&&e!==this;e=e.parentNode)if(e.matches(n)){i.call(e,t,e);break}};return e.addEventListener(o,r,s),()=>{e.removeEventListener(o,r,s)}};class v{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.defaultOptions;f(this,"defaultOptions",{presetContentHeight:!1,duration:300,callback:()=>{}}),f(this,"selectors",{items:[".sf__accordion-item"],buttons:[".sf__accordion-button"],contents:[".sf__accordion-content"]}),f(this,"openClass","open"),f(this,"initClass","acc-initialized"),f(this,"removeEvents",null),f(this,"destroy",(()=>{this.removeEvents(),window.removeEventListener("resize",this.debouncedSetContentHeight)})),f(this,"setContentOpacity",(()=>{this.domNodes.contents.forEach((t=>t.style.opacity=1))})),f(this,"setItemOverflowState",(()=>{var t,e;null===(t=this.domNodes)||void 0===t||null===(e=t.items)||void 0===e||e.forEach(((t,e)=>{var o,n,i,s,r,c;let l=null===(o=this.domNodes)||void 0===o||null===(n=o.contents)||void 0===n?void 0:n[e];const a=null!=t&&null!==(i=t.classList)&&void 0!==i&&null!==(s=i.contains)&&void 0!==s&&s.call(i,this.openClass)?"remove":"add";null==l||null===(r=l.classList)||void 0===r||null===(c=r[a])||void 0===c||c.call(r,"overflow-hidden")}))})),f(this,"setContentHeight",(()=>{this.domNodes=queryDomNodes(this.selectors,this.container);const{items:t,contents:e}=this.domNodes;t.forEach(((t,o)=>{var n,i;let s=(null==e?void 0:e[o]).querySelectorAll("img");if(null!=t&&t.classList.contains(this.openClass)){var r,c,l;null==t||null===(r=t.style)||void 0===r||r.setProperty("--content-max-height","auto");const n=null==e||null===(c=e[o])||void 0===c?void 0:c.scrollHeight;null==t||null===(l=t.style)||void 0===l||l.setProperty("--content-max-height",`${n}px`),s.length>0&&s.forEach((t=>{t.setAttribute("loading","lazy"),t.setAttribute("width",t.width),t.setAttribute("height",t.height),t.setAttribute("src",`${t.src}&width=${t.width+100}`)}))}else{var a;null==t||null===(a=t.style)||void 0===a||a.setProperty("--content-max-height",0)}null==e||null===(n=e[o])||void 0===n||null===(i=n.classList)||void 0===i||i.add("max-height-set")})),this.setItemOverflowState(),this.setContentOpacity()})),f(this,"toggle",(t=>{var e,o,n,i,s,r,c,l,a;const u=null===(e=this.domNodes)||void 0===e||null===(o=e.items)||void 0===o?void 0:o[t],d=null===(n=this.domNodes)||void 0===n||null===(i=n.contents)||void 0===i?void 0:i[t],h=null==u||null===(s=u.classList)||void 0===s?void 0:s.contains(this.openClass);let p=d.querySelectorAll("img");null==u||null===(r=u.classList)||void 0===r||r.toggle(this.openClass);const f=h?0:null===(c=this.domNodes)||void 0===c||null===(l=c.contents)||void 0===l||null===(a=l[t])||void 0===a?void 0:a.scrollHeight;var y;(null==u||u.style.setProperty("--content-max-height",`${f}px`),p.length>0&&p.forEach((t=>{t.setAttribute("loading","lazy"),t.setAttribute("width",t.width),t.setAttribute("height",t.height),t.setAttribute("src",`${t.src}&width=${t.width+100}`)})),h)?null==d||null===(y=d.classList)||void 0===y||y.add("overflow-hidden"):setTimeout((()=>{var t;null==d||null===(t=d.classList)||void 0===t||t.remove("overflow-hidden")}),350)})),t&&!t.classList.contains(this.initClass)&&(this.container=t,this.domNodes=queryDomNodes(this.selectors,this.container),this.options=Object.assign({},this.defaultOptions,e),this.debouncedSetContentHeight=debounce(this.setContentHeight.bind(this),300),this.init())}init(){var t,e;null===(t=this.container)||void 0===t||null===(e=t.style)||void 0===e||e.setProperty("--duration",` ${this.options.duration}ms`),this.removeEvents=y({context:this.container,selector:this.selectors.buttons[0],handler:(t,e)=>{e.classList.add("pointer-events-none");const o=this.domNodes.buttons.indexOf(e);this.toggle(o),setTimeout((()=>{e.classList.remove("pointer-events-none")}),350)}}),this.options.presetContentHeight?window.requestAnimationFrame(this.setContentHeight):(this.setItemOverflowState(),this.setContentOpacity()),window.addEventListener("resize",this.debouncedSetContentHeight),"function"==typeof this.options.callback&&this.options.callback(),this.container.classList.add(this.initClass)}}var m=o(1179),g=o.n(m);!function(t,o){if("string"!=typeof t)throw new TypeError("Theme Sections: The first argument for .register must be a string that specifies the type of the section being registered");if(void 0!==s[t])throw new Error('Theme Sections: A section of type "'+t+'" has already been registered. You cannot register the same section type twice');function n(t){e.call(this,t,o)}n.constructor=e,n.prototype=Object.create(e.prototype),n.prototype.type=t,s[t]=n}("footer",{onLoad:function(){g().register("screen and (max-width: 767px)",{match:()=>{var t;const e=null==this||null===(t=this.container)||void 0===t?void 0:t.querySelector(".sf-footer__accordion");e&&(this.acc=new v(e,{presetContentHeight:!0}))}})}}),c("footer")})()})();