1(self.webpackChunklifeisgood_theme=self.webpackChunklifeisgood_theme||[]).push([[411],{7457(t,e,i){const n={"./50-50/index.js":[3538,[421]],"./article/index.js":[2341,[612]],"./carousel/index.js":[7546,[869,59,815]],"./cart/index.js":[4822,[869,59,83,347,659,512,496,191,6]],"./collection-banner/index.js":[2066,[601]],"./collection-spotlight/index.js":[8927,[869,59,83,347,659,512,496,191,773,792]],"./customer/addresses/index.js":[2001,[869,803]],"./customizer-experience-tagger/index.js":[5238,[512,410]],"./customizer-style-modal/index.js":[4006,[512,474,29]],"./example/index.js":[6573,[869,636]],"./footer/index.js":[3826,[12]],"./global-ribbon/index.js":[2576,[869,821]],"./header-playmakers/index.js":[1488,[630]],"./header/index.js":[2682,[869,59,83,347,659,40,512,496,191,474,439]],"./image-banner/index.js":[295,[416]],"./modal/index.js":[6934,[]],"./playmaker-designathon-form/index.js":[3881,[618]],"./primary-hero/index.js":[4128,[869,83,619]],"./product-anatomy/index.js":[5748,[404]],"./product-grid/index.js":[4346,[869,59,83,347,659,205,512,496,191,773,213]],"./product-recommendations/index.js":[6718,[869,59,83,347,659,512,496,191,653]],"./product/index.js":[8592,[869,59,83,347,512,496,844]],"./quote/index.js":[7391,[47]],"./tabs/index.js":[9729,[238]],"./text-body/index.js":[4549,[833]],"./text-double-background/index.js":[3439,[24]],"./utils/storefront/index.js":[299,[35]],"./visual-filters/index.js":[4450,[869,59,226]]};function a(t){try{if(!i.o(n,t))return Promise.resolve().then(()=>{const e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}catch(t){return Promise.reject(t)}const e=n[t],a=e[0];return Promise.all(e[1].map(i.e)).then(()=>i(a))}a.keys=()=>Object.keys(n),a.id=7457,t.exports=a},8885(t,e,i){"use strict";var n=i(4467),a=i(5458),o=(i(6934),i(1158)),r=i(3029),s=i(2901),l=i(2273),u=function(){return(0,s.A)(function t(e){var i=e.element,n=e.video,a=e.layout;(0,r.A)(this,t);var o=n.querySelector("[data-component-data]");this.element=i,this.layout=a,this.data=o?JSON.parse(o.textContent):{},this.isMuted=!0,this.isMobile=!0,this.isPlaying=this.data.autoplay,this.hasMultipleVideos=!!this.data.videoDesktop&&!!this.data.videoMobile,this.handlePlay=this.handlePlay.bind(this),this.handleMute=this.handleMute.bind(this),this.handleBpChange=this.handleBpChange.bind(this),this.playEl=this.data.play.selector?i.querySelector(this.data.play.selector):n.querySelector("[data-video-play]"),this.muteEl=this.data.mute.selector?i.querySelector(this.data.mute.selector):n.querySelector("[data-video-mute]"),this.init()},[{key:"handlePlay",value:function(){this.isPlaying?this.pauseVideo():this.playVideo(),this.playEl&&(0,a.A)(this.playEl.children).forEach(function(t){return t.classList.toggle("hidden")})}},{key:"pauseVideo",value:function(){var t;this.player.pause(),this.isPlaying=!1,null===(t=this.playEl)||void 0===t||t.setAttribute("aria-label",this.data.play.playText)}},{key:"playVideo",value:function(){var t;this.player.play(),this.isPlaying=!0,null===(t=this.playEl)||void 0===t||t.setAttribute("aria-label",this.data.play.pauseText)}},{key:"handleMute",value:function(){this.isMuted?this.unmuteVideo():this.muteVideo(),this.muteEl&&(0,a.A)(this.muteEl.children).forEach(function(t){return t.classList.toggle("hidden")})}},{key:"unmuteVideo",value:function(){var t;"shopify"===this.data.host?this.player.muted=!1:"vimeo"===this.data.host&&this.player.setVolume(1),this.isMuted=!1,null===(t=this.muteEl)||void 0===t||t.setAttribute("aria-label",this.data.mute.muteText)}},{key:"muteVideo",value:function(){var t;"shopify"===this.data.host?this.player.muted=!0:"vimeo"===this.data.host&&this.player.setVolume(0),this.isMuted=!0,null===(t=this.muteEl)||void 0===t||t.setAttribute("aria-label",this.data.mute.unmuteText)}},{key:"resetPlayer",value:function(){this.unbindEventListeners(),"shopify"===this.data.host?this.resetShopifyPlayer():"vimeo"===this.data.host&&this.resetVimeoPlayer()}},{key:"unbindEventListeners",value:function(){var t,e;null===(t=this.playEl)||void 0===t||t.removeEventListener("click",this.handlePlay),null===(e=this.muteEl)||void 0===e||e.removeEventListener("click",this.handleMute),this.layout&&window.removeEventListener("bpChange",this.handleBpChange)}},{key:"resetShopifyPlayer",value:function(){this.resetControlButtons()}},{key:"resetVimeoPlayer",value:function(){var t=this;this.player.destroy().then(function(){t.resetControlButtons(),t.init()})}},{key:"resetControlButtons",value:function(){var t,e,i,n,a,o;this.isPlaying=this.data.autoplay,null===(t=this.playEl)||void 0===t||t.setAttribute("aria-label",this.data.autoplay?this.data.play.pauseText:this.data.play.playText),null===(e=this.playEl)||void 0===e||e.children[this.data.autoplay?1:0].classList.remove("hidden"),null===(i=this.playEl)||void 0===i||i.children[this.data.autoplay?0:1].classList.add("hidden"),this.isMuted=!0,null===(n=this.muteEl)||void 0===n||n.setAttribute("aria-label",this.data.mute.unmuteText),null===(a=this.muteEl)||void 0===a||a.children[0].classList.remove("hidden"),null===(o=this.muteEl)||void 0===o||o.children[1].classList.add("hidden")}},{key:"handleBpChange",value:function(){this.isMobile&&this.layout.isAboveBreakpoint("sm")?(this.isMobile=!1,this.resetPlayer()):this.isMobile||this.layout.isAboveBreakpoint("sm")||(this.isMobile=!0,this.resetPlayer())}},{key:"init",value:function(){this.layout&&this.hasMultipleVideos?this.layout.isAboveBreakpoint("sm")?(this.initVideoByType(this.data.videoDesktop),this.isMobile=!1):(this.initVideoByType(this.data.videoMobile),this.isMobile=!0):this.data.videoDesktop?this.initVideoByType(this.data.videoDesktop):this.data.videoMobile&&this.initVideoByType(this.data.videoMobile)}},{key:"initVideoByType",value:function(t){"shopify"===this.data.host?this.initShopifyVideo(t.id):"vimeo"===this.data.host&&this.initVimeoVideo(t)}},{key:"initVimeoVideo",value:function(t){this.player=new l.A("video-".concat(t),{id:t,controls:!1,autoplay:this.data.autoplay,muted:!0,responsive:!0,loop:!0}),this.bindEventListeners()}},{key:"initShopifyVideo",value:function(t){this.player=this.element.querySelector("#video-".concat(t," video")),this.bindEventListeners()}},{key:"bindEventListeners",value:function(){var t,e;null===(t=this.playEl)||void 0===t||t.addEventListener("click",this.handlePlay),null===(e=this.muteEl)||void 0===e||e.addEventListener("click",this.handleMute),this.layout&&this.hasMultipleVideos&&window.addEventListener("bpChange",this.handleBpChange)}}])}();const d=function(t,e){var i,n=0,a=t.price.currencyCode;if(window.TMW.pricingPromos){var o=window.TMW.pricingPromos.filter(function(t){return null==e?void 0:e.includes(t.product_tag)});if(o.length>0){var r=o.reduce(function(t,e){return e.discount_percentage>t.discount_percentage?e:t});n=Number(r.discount_percentage)}}var s,l=t.price.amount,u=(null===(i=t.compareAtPrice)||void 0===i?void 0:i.amount)||null;if(n>0){var d=l-(s=2,"".concat(n/100*l).match(new RegExp("^-?\\d+(?:\\.\\d{0,".concat(s,"})?")))[0]),c=u||l;return u<d&&(c=l),{price:{amount:Number(d),currencyCode:a},compareAtPrice:{amount:Number(c),currencyCode:a}}}var h=u||0;return{price:{amount:Number(l),currencyCode:a},compareAtPrice:{amount:Number(h),currencyCode:a}}};function c(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function h(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?c(Object(i),!0).forEach(function(e){(0,n.A)(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var y,p,f=function(t,e){var n=t.dataset.section;n&&i(7457)("./".concat(n,"/index.js")).then(function(i){var o=i.default,r=t.querySelector("[data-section-data]"),s={};if(r)try{s=JSON.parse(r.textContent)}catch(t){console.error("[section:".concat(n,"] failed to parse data island"),t)}var l=t.querySelectorAll('[data-component="video"]'),d=l&&(0,a.A)(l).map(function(i){return new u({element:t,video:i,layout:e})});"function"==typeof o&&o(t,h(h({},s),{},{layout:e,videos:d}))}).catch(console.error)};y=document.querySelectorAll("[data-section]"),p=o.A.getInstance(),y.forEach(function(t){return f(t,p)}),document.addEventListener("shopify:section:load",function(t){var e=document.getElementById("shopify-section-".concat(t.detail.sectionId));if(e){var i=o.A.getInstance();e.querySelectorAll("[data-section]").forEach(function(t){return f(t,i)})}}),window.getProductPrice=d,window.dataLayer=window.dataLayer||[]},6934(){"use strict";var t="has-openModal",e=".c-modal",i="js-modalShow";function n(t){return t.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')}function a(e,n){e.classList.remove(i),setTimeout(function(){e.style.display="none"},300),document.body.classList.remove(t),n&&n.focus()}document.addEventListener("DOMContentLoaded",function(){var o=document.querySelectorAll(".js-openModal"),r=document.querySelectorAll(".js-closeModal"),s=document.querySelectorAll(e),l=null;o.forEach(function(e){e.addEventListener("click",function(){var a=e.getAttribute("data-modal-id"),o=document.getElementById(a);l=e,o.style.display="block",setTimeout(function(){o.classList.add(i);var t=n(o);t.length>0&&t[0].focus()},10),document.body.classList.add(t)})}),r.forEach(function(t){t.addEventListener("click",function(){a(t.closest(e),l),l=null})}),window.addEventListener("click",function(t){s.forEach(function(e){t.target===e&&(a(e,l),l=null)})}),window.addEventListener("keydown",function(t){"Escape"===t.key&&s.forEach(function(t){"block"===t.style.display&&(a(t,l),l=null)}),"Tab"===t.key&&s.forEach(function(e){"block"===e.style.display&&function(t,e){var i=n(e);if(0!==i.length){var a=i[0],o=i[i.length-1];t.shiftKey&&document.activeElement===a?(t.preventDefault(),o.focus()):t.shiftKey||document.activeElement!==o||(t.preventDefault(),a.focus())}}(t,e)})})})},1158(t,e,i){"use strict";i.d(e,{A:()=>s});var n=i(296),a=i(3029),o=i(2901),r=i(172),s=function(){function t(){(0,a.A)(this,t),this.bps={above:{sm:window.matchMedia("(min-width: 640px"),md:window.matchMedia("(min-width: 768px"),lg:window.matchMedia("(min-width: 1024px"),xl:window.matchMedia("(min-width: 1280px"),"2xl":window.matchMedia("(min-width: 1536px")},below:{sm:window.matchMedia("(max-width: 639px"),md:window.matchMedia("(max-width: 767px"),lg:window.matchMedia("(max-width: 1023px"),xl:window.matchMedia("(max-width: 1279px"),"2xl":window.matchMedia("(max-width: 1535px")}},this.watchBreakpoints(),this.initializeToast()}return(0,o.A)(t,[{key:"initializeToast",value:function(){var t=document.createElement("div");t.setAttribute("id","toast-container"),document.body.appendChild(t),i.e(287).then(()=>i(3287)).then(function(e){var i=e.default;(0,r.XX)((0,r.h)(i,null),t)})}},{key:"watchBreakpoints",value:function(){var t=this;Object.values(this.bps.above).concat(Object.values(this.bps.below)).map(function(e){return e.addEventListener("change",function(e){if(e.matches){var i=new CustomEvent("bpChange",{detail:{bp:t.isBreakpoint()}});window.dispatchEvent(i)}})})}},{key:"isBreakpoint",value:function(){var t,e;return null!==(t=null===(e=Object.entries(this.bps.above).reverse().find(function(t){return(0,n.A)(t,2)[1].matches}))||void 0===e?void 0:e[0])&&void 0!==t?t:"xs"}},{key:"isAboveBreakpoint",value:function(t){return this.bps.above[t].matches}},{key:"isBelowBreakpoint",value:function(t){return this.bps.below[t].matches}}],[{key:"getInstance",value:function(){return this.instance||(this.instance=new t),this.instance}}])}()},3145(t,e,i){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}i.d(e,{A:()=>n})},3029(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}i.d(e,{A:()=>n})},2901(t,e,i){"use strict";i.d(e,{A:()=>
1o});var n=i(9922);function a(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,(0,n.A)(a.key),a)}}function o(t,e,i){return e&&a(t.prototype,e),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}},4467(t,e,i){"use strict";i.d(e,{A:()=>a});var n=i(9922);function a(t,e,i){return(e=(0,n.A)(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}},296(t,e,i){"use strict";i.d(e,{A:()=>a});var n=i(7800);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,a,o,r,s=[],l=!0,u=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){u=!0,a=t}finally{try{if(!l&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(u)throw a}}return s}}(t,e)||(0,n.A)(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},5458(t,e,i){"use strict";i.d(e,{A:()=>o});var n=i(3145);var a=i(7800);function o(t){return function(t){if(Array.isArray(t))return(0,n.A)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,a.A)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2327(t,e,i){"use strict";i.d(e,{A:()=>a});var n=i(2284);function a(t,e){if("object"!=(0,n.A)(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var a=i.call(t,e||"default");if("object"!=(0,n.A)(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}},9922(t,e,i){"use strict";i.d(e,{A:()=>o});var n=i(2284),a=i(2327);function o(t){var e=(0,a.A)(t,"string");return"symbol"==(0,n.A)(e)?e:e+""}},2284(t,e,i){"use strict";function n(t){return n="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},n(t)}i.d(e,{A:()=>n})},7800(t,e,i){"use strict";i.d(e,{A:()=>a});var n=i(3145);function a(t,e){if(t){if("string"==typeof t)return(0,n.A)(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?(0,n.A)(t,e):void 0}}}},t=>{t.O(0,[869],()=>t(8885));t.O()}]); 2//# sourceMappingURL=main.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.