(async()=>{window.toggleNavMenu=function(){let a=document.querySelector(".mobile-nav"),b=document.querySelector(".hamburger");a.classList.contains("visible")?(b.classList.remove("close-btn"),a.classList.remove("visible"),document.body.classList.remove("mobile-menu"),document.querySelector(".site-header .top-row i.material-icons").innerHTML="menu"):(b.classList.add("close-btn"),a.classList.add("visible"),document.body.classList.add("mobile-menu"),document.querySelector(".site-header .top-row i.material-icons").innerHTML="close")},window.toggleSubMenu=function(a){const b=a.parentNode,c=b.classList.toggle("open-nav");c&&document.querySelectorAll(".open-nav").forEach(a=>{a!==b&&(a.classList.remove("open-nav"),a.querySelector(".material-icons").innerHTML="chevron_right")}),a.innerHTML=c?"expand_more":"chevron_right"},window.addEventListener("resize",()=>{document.querySelector("html").style.scrollPaddingTop=document.querySelector(".site-header").offsetHeight+"px"}),window.addEventListener("load",()=>{document.querySelector("html").style.scrollPaddingTop=document.querySelector(".site-header").offsetHeight+"px"}),window.openMobileSubSubMenu=a=>{let b=a.srcElement.parentNode,c=b;"chevron_right"==a.srcElement.innerHTML?(a.srcElement.innerHTML="expand_more",c.querySelector(".submenu-sublink-sublinks-container").style.display="contents"):(a.srcElement.innerHTML="chevron_right",c.querySelector(".submenu-sublink-sublinks-container").style.display="none")},window.addEventListener("scroll",()=>{document.querySelector(".site-header")&&document.querySelector(".site-header").classList.toggle("header-sticky",0<window.scrollY)})})();(async()=>{window.addEventListener("scroll",()=>{document.querySelector(".scroll-to-top").classList.toggle("active",50<window.scrollY)}),window.scrollToTop=()=>{window.scrollTo({top:0,behavior:"smooth"})}})();(async()=>{var a=document.querySelector(".copyright").innerHTML;document.querySelector(".copyright").innerHTML=a.replace("[copywrite]",`${new Date().getFullYear()}`)})();(async()=>{var a=Math.ceil,b=Math.floor,c=Math.max,d=Math.min;const f=(await import("https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.esm.browser.min.js")).default;f.component("shopify-mobile-modal",{template:"<div class=\"shopify-mobile-modal\" v-if=\"showMobileModal\" :show-mobile-modal=\"showMobileModal\" :filter-options=\"filterOptions\" :supported-sorts=\"sortNames\" :selected-sort=\"selectedSort\" :min-price=\"minPriceFound\" :max-price=\"maxPriceFound\" :text-to-search=\"searchText\" @close=\"showMobileModal = false\"><div class=\"modal-container\"><div class=\"label-line\"><div class=\"shopify-mobile-search\"><input class=\"shopify-search-input\" type=\"text\" v-model=\"searchText\" placeholder=\"Search\"><button class=\"shopify-search-button\" @click=\"searchProducts(searchText)\"><i class=\"material-icons\">search</i></button></div><div class=\"modal-x\"><button class=\"close-button\" @click=\"$emit(&quot;close&quot;)\">X</button></div></div><div class=\"mobile-filter-container\" v-for=\"filter in filterOptions\" :style=\"showFilterOptions\"><button class=\"mobile-filter\" @click=\"toggleFilterMenu(filter.name)\"><div class=\"mobile-filter-button-label\">{{ filter.name }}</div><div class=\"button-expand\"></div><i class=\"material-icons\">arrow_forward</i></button></div><div class=\"menu-container\" v-for=\"filter in filterOptions\"><div class=\"option-menu\" v-if=\"filter.showingMenu\"><button class=\"back-arrow\" @click=\"filter.showingMenu = false, showMenu = true\"><div class=\"button-label\"><i class=\"material-icons back-arrow-icon\">arrow_backward</i><div class=\"back-label\">Back</div></div></button><div class=\"option-sub-selection\" v-for=\"opt in filter.subHeadings\"><button class=\"option-label\" @click=\"setFilter(opt.maps[0].type, opt.maps[0].values)\">{{ opt.name }}</button><div class=\"option-quantity\">({{ opt.quantity }})</div></div></div></div><div class=\"price-range\"><div class=\"price-label\">Price</div><div class=\"price-slider\" ref=\"priceRangeSlider\"><div class=\"bg-bar\"></div><div class=\"bg-bar center\" :style=\"priceRangeCenterBarStyle\"></div><div class=\"handle min\" :style=\"priceRangeMinHandleStyle\" @mousedown=\"handlePriceRangeGrab(`currentMinPrice`)\" @touchstart=\"handlePriceRangeTouch($event, `currentMinPrice`)\"></div><div class=\"handle max\" :style=\"priceRangeMaxHandleStyle\" @mousedown=\"handlePriceRangeGrab(`currentMaxPrice`)\" @touchstart=\"handlePriceRangeTouch($event, `currentMaxPrice`)\"></div></div><div class=\"inputs\"><div class=\"price min\"><div class=\"dollar-sign\">$</div><input v-model=\"currentMinPrice\" :min=\"minPrice\" :max=\"Math.min(maxPrice, currentMaxPrice)\" @blur=\"handlePriceBlur\"></div><div class=\"divider\"></div><div class=\"price max\"><div class=\"dollar-sign\">$</div><input v-model=\"currentMaxPrice\" :min=\"Math.max(minPrice, currentMinPrice)\" :max=\"maxPrice\" @blur=\"handlePriceBlur\"></div></div></div><div class=\"shopify-mobile-sort\" :style=\"showFilterOptions\"><div class=\"label\">Sort By:</div><div class=\"mobile-expand\"></div><select class=\"shopify-select-mobile\" @change=\"setSortMethod($event.target.value)\" v-model=\"modalSelectedSort\"><option v-for=\"sort in supportedSorts\" :value=\"sort\">{{ sort }}</option></select></div><div class=\"reset-container\"><button class=\"filter-reset\" @click=\"filterReset()\">Reset all filters</button><button class=\"apply-options\" @click=\"setPriceRange()\">Apply</button></div></div></div>",props:{showMobileModal:Boolean,textToSearch:String,filterOptions:[],supportedSorts:[],selectedSort:String,minPrice:Number,maxPrice:Number},data(){return{showMenu:!0,sortNames:null,searchText:"",modalSelectedSort:null,currentMinPrice:0,currentMaxPrice:0,minPriceFound:0,maxPriceFound:0}},computed:{priceRangeCenterBarStyle(){return{left:`${c(0,d(100*((this.currentMinPrice-this.minPrice)/(this.maxPrice-this.minPrice)),100))}%`,width:`${c(0,d(100*((this.currentMaxPrice-this.minPrice)/(this.maxPrice-this.minPrice)-(this.currentMinPrice-this.minPrice)/(this.maxPrice-this.minPrice)),100))}%`}},priceRangeMinHandleStyle(){return{left:`calc(${c(0,d(100*((this.currentMinPrice-this.minPrice)/(this.maxPrice-this.minPrice)),100))}% - 10px)`}},priceRangeMaxHandleStyle(){return{left:`calc(${c(0,d(100*((this.currentMaxPrice-this.minPrice)/(this.maxPrice-this.minPrice)),100))}% - 10px)`}},showFilterOptions(){let a={};return a.display=this.showMenu?"flex":"none",a}},methods:{filterReset(){let a=document.querySelector("#shopify-display-wrap");a.__vue__.clearFilters(),this.$emit("close")},handlePriceBlur(){(!this.currentMinPrice||this.currentMinPrice<this.minPrice)&&(this.currentMinPrice=this.minPrice),(!this.currentMaxPrice||this.currentMaxPrice>this.maxPrice)&&(this.currentMaxPrice=this.maxPrice),this.currentMinPrice>this.currentMaxPrice&&(this.currentMinPrice=this.currentMaxPrice),this.currentMaxPrice<this.currentMinPrice&&(this.currentMaxPrice=this.currentMinPrice)},handlePriceRangeGrab(a){this.isGrabbingPriceHandle=a+"";let f=this.$refs.priceRangeSlider.getBoundingClientRect(),g=g=>{this[a+""]=b((this.maxPrice-this.minPrice)*d(1,c(0,(g.clientX-f.left)/f.width))+this.minPrice),this.currentMinPrice>this.currentMaxPrice&&(this.currentMinPrice=this.currentMaxPrice),this.currentMaxPrice<this.currentMinPrice&&(this.currentMaxPrice=this.currentMinPrice)},h=()=>{window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",h)};window.addEventListener("mousemove",g),window.addEventListener("mouseup",h)},handlePriceRangeTouch(a,f){this.isGrabbingPriceHandle=f+"";let g=this.$refs.priceRangeSlider.getBoundingClientRect(),h=a.changedTouches[0].identifier,i=a=>{let i=Array.from(a.changedTouches).find(a=>a.identifier==h);i&&(this[f+""]=b((this.maxPrice-this.minPrice)*d(1,c(0,(i.clientX-g.left)/g.width))+this.minPrice),this.currentMinPrice>this.currentMaxPrice&&(this.currentMinPrice=this.currentMaxPrice),this.currentMaxPrice<this.currentMinPrice&&(this.currentMaxPrice=this.currentMinPrice))},j=()=>{let a=Array.from(e.changedTouches).find(a=>a.identifier==h);a&&(window.removeEventListener("touchmove",i),window.removeEventListener("touchcancel",j),window.removeEventListener("touchend",j))};window.addEventListener("touchmove",i),window.addEventListener("touchcancel",j),window.addEventListener("touchend",j)},searchProducts(a){let b=document.querySelector("#shopify-display-wrap");b.__vue__.searchProducts(a),this.$emit("close")},setFilter(a,b){let c=document.querySelector("#shopify-display-wrap");c.__vue__.setFilter(a,b)},setPriceRange(){let a=document.querySelector("#shopify-display-wrap");a.__vue__.setPriceFilter(this.currentMinPrice,this.currentMaxPrice),this.searchProducts(this.searchText),this.$emit("close")},setSortMethod(a){let b=document.querySelector("#shopify-display-wrap");b.__vue__.setSortMethod(a)},toggleFilterMenu(a){this.showMenu=!1;let b=this.filterOptions.filter(b=>b.name==a);b[0].showingMenu=!b[0].showingMenu;let c=this.filterOptions.filter(b=>b.name!=a);for(let b of c)b.showingMenu=!1}},mounted(){for(let a of this.filterOptions)a.showingMenu&&(a.showingMenu=!1);if(this.sortNames){this.supportedSorts=[];for(const[a,b]of Object.entries(this.sortNames))this.supportedSorts.push(`${a}`)}this.selectedSort&&(this.modalSelectedSort=this.supportedSorts[this.selectedSort]),this.currentMinPrice=this.minPrice,this.currentMaxPrice=this.maxPrice,this.searchText=this.textToSearch}}),f.component("shopify-password-modal",{template:"<div class=\"shopify-password-modal\" v-if=\"showPasswordModal\" :show-password-modal=\"showPasswordModal\" @close-pass=\"togglePasswordModal()\" :product=\"product\" :details-url=\"getProductDetailsUrl(product)\"><div class=\"modal-container\" v-if=\"!isMobile\"><div class=\"modal-x\"><button class=\"close-button\" @click=\"closeEmit()\">X</button></div><div class=\"modal-header\">Password Required</div><div class=\"modal-password\"><div class=\"pass-label\">A Password is Required to Proceed</div><div class=\"pass-input-grid\"><div class=\"pass-input-label\">Enter Password</div><input class=\"pass-input\" v-model=\"passwordText\"></div><div class=\"pass-fail\" v-if=\"incorrectPass\"><div class=\"fail-text\">Password Entered was Incorrect</div></div></div><div class=\"end-buttons\"><button class=\"proceed-button\" @click=\"testPassword()\">Proceed</button><button class=\"cancel-button\" @click=\"closeEmit()\">Cancel</button></div></div><div class=\"modal-container\" v-else><div class=\"modal-x\"><button class=\"close-button\" @click=\"closeEmit()\">X</button></div><div class=\"modal-header\">Password Required</div></div></div>",props:{showPasswordModal:Boolean,product:Object,detailsUrl:String},data(){return{mobileDisplay:!1,passwordText:"",incorrectPass:!1}},computed:{isMobile(){return this.mobileDisplay}},methods:{closeEmit(){this.$emit("close-pass")},getProductDetailsUrl(){let a=this.detailsUrl;return!1,!a.endsWith("/")&&(a=`${a}/`),a},getWindowSize(){this.windowWidth=window.innerWidth,this.mobileDisplay=!!(850>this.windowWidth)},testPassword(){let a=this.getProductDetailsUrl(this.product);this.passwordText=="undefined"?window.location.href="http://localhost:3000/"+a:this.incorrectPass=!0}},mounted(){window.addEventListener("resize",this.getWindowSize),this.getWindowSize()}}),new f({el:document.querySelector("shopify-product-display[data-cid-3]"),template:"<div class=\"shopify-product-display shopify-display-wrap\" id=\"shopify-display-wrap\" data-cid-3><div class=\"shopify-spotlight-products\" v-if=\"spotlightChoice == 'products'\"><div class=\"spotlight\" v-for=\"spot in builtSpotlight\"><a class=\"shopify-link-container\" :href=\"getProductDetailsUrl(spot)\" target=\"_self\"><img class=\"shopify-display-image\" :src=\"`/media/${spot.display}/medium.webp`\"><div class=\"product-name\">{{ spot.title }}</div></a></div></div><div class=\"shopify-spotlight-categories\" v-if=\"spotlightChoice == 'categories'\"><div class=\"spotlight\" v-for=\"cat in builtSpotlight\"><button class=\"category-button\" @click=\"switchCategory(cat)\"><img class=\"shopify-display-image\" :src=\"`/media/${cat.display}/medium.webp`\"><div class=\"category-name\">{{ cat.title }}</div></button></div></div><div class=\"shopify-display-setting-bar\" @click=\"toggleOffAllMenus()\"><div class=\"shopify-setting-display\"><div class=\"shopify-product-text\">{{ displayingText }}</div><div class=\"shopify-product-count\">{{productCount}} Products</div></div><div class=\"shopify-setting-gap\"></div><div class=\"shopify-display-search\"><input class=\"shopify-search-input\" type=\"text\" v-model=\"searchText\" placeholder=\"Search Products\"><button class=\"shopify-search-button\" @click=\"searchProducts(searchText)\"><i class=\"material-icons search-icon\">search</i></button></div><div class=\"shopify-display-sort\"><div class=\"sort-dropdown\" @click=\"handleSortDropdownClick\" :class=\"{showing: isShowingSortDropdown}\"><i class=\"material-icons left\">sort</i><div class=\"current-item\">{{ sortNames[selectedSort] }}</div><i class=\"material-icons right\">expand_more</i><template v-if=\"isShowingSortDropdown\"><div class=\"items-scrim\"></div><div class=\"items\"><div class=\"item\" v-for=\"(sortDisplayName, sortName) in sortNames\" @click.stop=\"selectSort(sortName)\">{{ sortDisplayName }}</div></div></template></div></div><div class=\"shopify-pagination\"><button class=\"paginate-left\" @click=\"previousPage()\"><i class=\"material-icons\">chevron_left</i></button><div class=\"shopify-page-display\"><div class=\"current-page\">{{ currentPage }}</div><div class=\"slash\">/ </div><div class=\"last-page\">{{ lastPage }}</div></div><button class=\"paginate-right\" @click=\"nextPage()\"><i class=\"material-icons\">chevron_right</i></button></div></div><div class=\"shopify-display-setting-bar-mobile\"><div class=\"shopify-display-filters-mobile\"><button class=\"filter-button\" @click=\"toggleMobileModal()\"><i class=\"material-icons\">filter_list</i><span>Filter</span></button></div><!--.mobile-text {{ displayingText }}--><div class=\"mobile-count\">{{ productCount}} Products</div><div class=\"shopify-pagination\"><button class=\"paginate-left\" @click=\"previousPage()\"><i class=\"material-icons\">chevron_left</i></button><div class=\"shopify-page-display\"><div class=\"current-page\">{{ currentPage }}</div><div class=\"slash\">/ </div><div class=\"last-page\">{{ lastPage }}</div></div><button class=\"paginate-right\" @click=\"nextPage()\"><i class=\"material-icons\">chevron_right</i></button></div></div><div class=\"shopify-display-filters\"><div class=\"filter-label\" @click=\"toggleOffAllMenus()\">Filter by:</div><div class=\"filter-option-container\" v-for=\"filter in filterOptions\"><button class=\"option-filter\" @click=\"toggleFilterMenu(filter.name)\">{{ filter.name }}<div class=\"caret-icon\" v-if=\"!filter.showingMenu\"><i class=\"material-icons\">expand_more</i></div><div class=\"caret-icon\" v-else><i class=\"material-icons\">expand_less</i></div></button><div class=\"option-menu\" v-if=\"filter.showingMenu\" @mouseleave=\"toggleOffAllMenus()\"><div class=\"option-sub-selection\" v-for=\"opt in filter.subHeadings\"><button class=\"option-label\" @click=\"handleFilterClick(opt), filter.showingMenu = false\">{{ opt.name }}</button><div class=\"option-quantity\">({{ opt.quantity }})</div></div></div></div><div class=\"price-filter-container\"><button class=\"price-filter\" @click=\"togglePriceMenu()\">Price<div class=\"price-icon\" v-if=\"!isShowingPriceMenu\"><i class=\"material-icons\">expand_more</i></div><div class=\"price-icon\" v-else><i class=\"material-icons\">expand_less</i></div></button><div class=\"price-menu\" :style=\"priceMenuDisplay\" @mouseleave=\"toggleOffAllMenus()\"><div class=\"price-range\"><div class=\"price-slider\" ref=\"priceRangeSlider\"><div class=\"bg-bar\"></div><div class=\"bg-bar center\" :style=\"priceRangeCenterBarStyle\"></div><div class=\"handle min\" :style=\"priceRangeMinHandleStyle\" @mousedown=\"handlePriceRangeGrab('minPrice')\" @touchstart=\"handlePriceRangeTouch($event, 'minPrice')\"></div><div class=\"handle max\" :style=\"priceRangeMaxHandleStyle\" @mousedown=\"handlePriceRangeGrab('maxPrice')\" @touchstart=\"handlePriceRangeTouch($event, 'maxPrice')\"></div></div><div class=\"inputs\"><div class=\"price min\"><div class=\"dollar-sign\">$</div><input v-model=\"minPrice\" type=\"number\" :min=\"minPriceFound\" :max=\"Math.min(maxPrice, maxPriceFound)\" @blur=\"handlePriceBlur\" @change=\"forcePageRender\"></div><div class=\"divider\"></div><div class=\"price max\"><div class=\"dollar-sign\">$</div><input v-model=\"maxPrice\" type=\"number\" :min=\"Math.max(minPrice, minPriceFound)\" :max=\"maxPriceFound\" @blur=\"handlePriceBlur\" @change=\"forcePageRender\"></div></div></div></div></div><button class=\"filter-reset\" @click=\"clearFilters()\">Reset all filters</button><div class=\"exists-only-to-toggle\" @click=\"toggleOffAllMenus()\"><span>.</span></div></div><div class=\"mobile-modal-container\"><div class=\"shopify-mobile-modal-seo\" style=\"display:none\"></div><shopify-mobile-modal class=\"shopify-mobile-modal\" v-if=\"showMobileModal\" :show-mobile-modal=\"showMobileModal\" :filter-options=\"filterOptions\" :supported-sorts=\"sortNames\" :selected-sort=\"selectedSort\" :min-price=\"minPriceFound\" :max-price=\"maxPriceFound\" :text-to-search=\"searchText\" @close=\"showMobileModal = false\" data-cid-4></shopify-mobile-modal></div><div class=\"shopify-product-container\" @click=\"toggleOffAllMenus()\"><div class=\"shopify-sub-container\" v-for=\"product in slicedProducts\"><div class=\"password-protect\" v-if=\"product.password\"><a class=\"pass-button\" @click target=\"_self\"><img class=\"shopify-display-image\" :src=\"`/media/${product.display}/medium.webp`\"><div class=\"shopify-product-name\">{{ product.title }}</div><div class=\"shopify-expander\"></div><div class=\"product-review\" v-if=\"reviewChoice != 'none'\"><div class=\"loox-reviews\" v-if=\"reviewChoice == 'loox'\"><div class=\"loox-rating\" data-fetch :data-id=\"product.id\"></div></div><div class=\"shopify-reviews\" v-else-if=\"reviewChoice == 'shopify'\"><div class=\"shopifycdn-reviews\" v-html=\"productStrip\"></div></div><div class=\"reviewsio-reviews\" v-else-if=\"reviewChoice == 'reviewsio'\"><div id=\"ReviewsWidget\"></div></div></div><div class=\"shopify-price-optless-line\" v-if=\"showProductOptions == true\"><div class=\"shopify-product-price\">${{ product.price }}</div><div class=\"shopify-product-options\" v-for=\"opt in product.options\"><span v-if=\"opt.values[0] != 'Default Title'\">{{opt.values.length}} {{opt.name}}</span></div></div><div class=\"shopify-price-opt-line\" v-else><div class=\"shopify-product-price-only\">${{ product.price }}</div></div><button class=\"shopify-cart-add\" @click=\"togglePasswordModal()\">View Details</button><div class=\"shopify-password-modal-seo\" style=\"display:none\"></div><shopify-password-modal class=\"shopify-password-modal\" v-if=\"showPasswordModal\" :show-password-modal=\"showPasswordModal\" @close-pass=\"togglePasswordModal()\" :product=\"product\" :details-url=\"getProductDetailsUrl(product)\" data-cid-5></shopify-password-modal></a></div><div class=\"no-password\" v-else><a class=\"shopify-product\" v-if=\"isDirectlyAdding\"><a class=\"shopify-img-link\" :href=\"getProductDetailsUrl(product)\" target=\"_self\"><img class=\"shopify-display-image\" :src=\"`/media/${product.display}/medium.webp`\"></a><a class=\"shopify-product-name\" :href=\"getProductDetailsUrl(product)\" target=\"_self\">{{ product.title }}</a><div class=\"shopify-expander\"></div><div class=\"product-review\" v-if=\"reviewChoice != 'none'\"><div class=\"loox-reviews\" v-if=\"reviewChoice == 'loox'\"><div class=\"loox-rating\" data-fetch :data-id=\"product.id\"></div></div><div class=\"shopify-reviews\" v-else-if=\"reviewChoice == 'shopify'\"><div class=\"shopifycdn-reviews\" v-html=\"productStrip\"></div></div><div class=\"reviewsio-reviews\" v-else-if=\"reviewChoice == 'reviewsio'\"><div id=\"ReviewsWidget\"></div></div></div><div class=\"shopify-price-opt-line\" v-if=\"showProductOptions == true\"><div class=\"shopify-product-price\">${{ product.price }}</div><div class=\"shopify-product-options\" v-for=\"opt in product.options\"><span v-if=\"opt.values[0] != 'Default Title'\">{{opt.values.length}} {{opt.name}}</span></div></div><div class=\"shopify-price-optless-line\" v-else><div class=\"shopify-product-price-only\">${{ product.price }}</div></div><button class=\"shopify-cart-add\" @click=\"addToCart(product.id)\">Add to Cart</button></a><a class=\"shopify-product\" v-else :href=\"getProductDetailsUrl(product)\" target=\"_self\"><img class=\"shopify-display-image\" :src=\"`/media/${product.display}/medium.webp`\"><div class=\"shopify-product-name\">{{ product.title }}</div><div class=\"shopify-expander\"></div><div class=\"product-review\" v-if=\"reviewChoice != 'none'\"><div class=\"loox-reviews\" v-if=\"reviewChoice == 'loox'\"><div class=\"loox-rating\" data-fetch :data-id=\"product.id\"></div></div><div class=\"shopify-reviews\" v-else-if=\"reviewChoice == 'shopify'\"><div class=\"shopifycdn-reviews\" v-html=\"productStrip\"></div></div><div class=\"reviewsio-reviews\" v-else-if=\"reviewChoice == 'reviewsio'\"><div id=\"ReviewsWidget\"></div></div></div><div class=\"shopify-price-opt-line\" v-if=\"showProductOptions == true\"><div class=\"shopify-product-price\">${{ product.price }}</div><div class=\"shopify-product-options\" v-for=\"opt in product.options\"><span v-if=\"opt.values[0] != 'Default Title'\">{{opt.values.length}} {{opt.name}}</span></div></div><div class=\"shopify-price-optless-line\" v-else><div class=\"shopify-product-price-only\">${{ product.price }}</div></div><button class=\"shopify-cart-add\">Add to Cart</button></a></div></div><div class=\"shopify-pagination\"><button class=\"paginate-left\" @click=\"previousPage()\"><i class=\"material-icons\">chevron_left</i></button><div class=\"shopify-page-display\"><div class=\"current-page\">{{ currentPage }}</div><div class=\"slash\">/ </div><div class=\"last-page\">{{ lastPage }}</div></div><button class=\"paginate-right\" @click=\"nextPage()\"><i class=\"material-icons\">chevron_right</i></button></div></div></div>",data(){return{componentKey:0,products:[],productCollections:[],filterOptions:[],filterCollection:null,filterVendor:null,filterTag:null,builtSpotlight:[],spotlightChoice:null,searchText:"",searchableFields:["title"],minPrice:0,maxPrice:0,isShowingPriceMenu:!1,showProductOptions:!1,sortNames:{name:"Name: A-Z",nameDesc:"Name: Z-A",price:"Price: Low-High",priceDesc:"Price: High-Low",random:"Random"},selectedSort:"random",isShowingSortDropdown:!1,showMobileModal:!1,currentPage:1,nextIndex:20,reviewChoices:null,productStrip:"",showPasswordModal:!1,isDirectlyAdding:!1}},computed:{productCount(){return this.filteredProducts.length},lastPage(){return a(this.filteredProducts.length/20)},displayingText(){return""==this.searchText?"Showing Women's Health":"\""+this.searchText+"\" Results"},filteredProducts(){let a=this.products.filter(a=>{if(this.searchText&&!this.searchableFields.find(b=>a[b]&&(a[b]+"").match(new RegExp(this.searchText,"i"))))return!1;if(this.minPrice&&!isNaN(this.minPrice)&&a.price<parseInt(this.minPrice))return!1;if(this.maxPrice&&!isNaN(this.maxPrice)&&a.price>parseInt(this.maxPrice))return!1;if(this.filterCollection){let b=!1;for(let c of this.filterCollection)for(let d of a.collections)d.title==c&&(b=!0);if(!b)return!1}if(this.filterVendor){let b=!1;for(let c of this.filterVendor)a.vendor==c&&(b=!0);if(!b)return!1}if(this.filterTag){let b=!1;for(let c of this.filterTag)if(0<a.tags.length)for(let d of a.tags)d==c&&(b=!0);if(!b)return!1}return!0}).sort((c,a)=>{let b=this.selectedSort.match("Desc")?-1:1;return this.selectedSort.startsWith("name")?[c.title,a.title].sort()[0]==c.title?-1*b:1*b:this.selectedSort.startsWith("price")?+c.price<+a.price?-1*b:1*b:0});if(this.selectedSort.startsWith("random")){a=(c=>{let d;for(let f,g=a.length-1;0<g;g--)f=b(Math.random()*(g+1)),d=c[g],c[g]=c[f],c[f]=d;return c})(a)}return a},slicedProducts(){return this.currentPage>this.lastPage&&(this.currentPage=1),1==this.currentPage?this.filteredProducts.slice(0,20):this.filteredProducts.slice(this.nextIndex,20*this.currentPage)},minPriceFound(){return 10*b(d(...this.products.map(a=>a.price))/10)},maxPriceFound(){return 10*a(c(...this.products.map(a=>a.price))/10)},priceMenuDisplay(){let a={};return this.isShowingPriceMenu?(a.visibility="visible",a.height="auto"):(a.visibility="hidden",a.height="0"),a},priceRangeCenterBarStyle(){return{left:`${c(0,d(100*((this.minPrice-this.minPriceFound)/(this.maxPriceFound-this.minPriceFound)),100))}%`,width:`${c(0,d(100*((this.maxPrice-this.minPriceFound)/(this.maxPriceFound-this.minPriceFound)-(this.minPrice-this.minPriceFound)/(this.maxPriceFound-this.minPriceFound)),100))}%`}},priceRangeMinHandleStyle(){return{left:`calc(${c(0,d(100*((this.minPrice-this.minPriceFound)/(this.maxPriceFound-this.minPriceFound)),100))}% - 10px)`}},priceRangeMaxHandleStyle(){return{left:`calc(${c(0,d(100*((this.maxPrice-this.minPriceFound)/(this.maxPriceFound-this.minPriceFound)),100))}% - 10px)`}},reviewChoice(){return this.reviewChoices}},methods:{addToCart(a){let b=this.products.find(b=>b.id==a),c=JSON.parse(JSON.stringify(b)),d={product:c,variant:null,subscription:null,subData:null,option1:null,option2:null,option3:null,quantity:1},f=parseFloat(c.price),g="";b.collections[0]&&(g=b.collections[0].title);let h="";b.collections[1]&&(h=b.collections[1].title);let i={item_id:b.id,item_name:b.title,affiliation:"mercury-shopify-addon",coupon:"",discount:0,index:0,item_brand:b.vendor,item_category:g,item_category2:h,item_category3:"",item_list_id:"",item_list_name:"",item_variant:"",location_id:"",price:parseFloat(c.price),quantity:1};window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"add_to_cart",ecommerce:{currency:"USD",value:f,items:[i]}});let j=document.getElementById("shopify-cart-anchor");j.__vue__.addCart(d),this.toggleCart()},buildFilterOptions(){for(let a of this.filterOptions)for(let b of a.subHeadings){let c=[];for(let a of b.maps)if("Collection"==a.type)for(let b of a.values){let a=this.products.filter(a=>{let c=!1;if(0<a.collections.length)for(let d of a.collections)d.title==b&&(c=!0);return c?a:void 0});for(let b of a)c.push(b)}else if("Tag"==a.type)for(let b of a.values){let a=this.products.filter(a=>{let c=!1;if(0<a.tags.length)for(let d of a.tags)d==b&&(c=!0);return c?a:void 0});for(let b of a)c.push(b)}else if("Vendor"==a.type)for(let b of a.values){let a=this.products.filter(a=>{let c=!1;if(a.vendor&&a.vendor==b&&(c=!0),c)return a});for(let b of a)c.push(b)}let d=new Set(c),f=Array.from(d);0<f.length?(b.quantity=f.length,b.filteredProducts=f,b.displayText="All Items  >  "+a.name+"  >  "+b.name):(b.quantity=0,b.filteredProducts=[],b.displayText="All Items  >  "+a.name+"  >  "+b.name)}},buildSpotlight(){this.builtSpotlight=[]},clearFilters(){this.minPrice=this.minPriceFound,this.maxPrice=this.maxPriceFound,this.searchText="",this.filterCollection=null,this.filterVendor=null,this.filterTag=null,this.isShowingSortDropdown=!1,this.showMobileModal=!1,this.currentPage=1,this.isShowingPriceMenu=!1},forcePageRender(){this.componentKey+=1},getAllCollections(a){let b=[];for(let c of a)for(let a of c.collections)b.push(a);let c=[{id:"default",title:"Product Collections",value:"all"}];for(let d of b)if(d.value=d.title,0==c.length)c.push(d);else{let a=!1;for(let b of c)b.title==d.title&&b.id==d.id&&(a=!0);a||c.push(d)}return c},getProductDetailsUrl(a){let b=`/products/${a.slug}`;return!1,!b.endsWith("/")&&(b=`${b}/`),b},getRandomNumber(a){var b=Math.imul;let c=a+=1831565813;return c=b(c^c>>>15,1|c),c^=c+b(c^c>>>7,61|c),((c^c>>>14)>>>0)/4294967296},handlePriceBlur(){(!this.minPrice||this.minPrice<this.minPriceFound)&&(this.minPrice=this.minPriceFound),(!this.maxPrice||this.maxPrice>this.maxPriceFound)&&(this.maxPrice=this.maxPriceFound),this.minPrice>this.maxPrice&&(this.minPrice=this.maxPrice),this.maxPrice<this.minPrice&&(this.maxPrice=this.minPrice)},handlePriceRangeGrab(a){this.isGrabbingPriceHandle=a;let f=this.$refs.priceRangeSlider.getBoundingClientRect(),g=g=>{this[a]=b((this.maxPriceFound-this.minPriceFound)*d(1,c(0,(g.clientX-f.left)/f.width))+this.minPriceFound),this.minPrice>this.maxPrice&&(this.minPrice=this.maxPrice),this.maxPrice<this.minPrice&&(this.maxPrice=this.minPrice)},h=()=>{window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",h)};window.addEventListener("mousemove",g),window.addEventListener("mouseup",h)},handlePriceRangeTouch(a,f){this.isGrabbingPriceHandle=f;let g=this.$refs.priceRangeSlider.getBoundingClientRect(),h=a.changedTouches[0].identifier,i=a=>{let i=Array.from(a.changedTouches).find(a=>a.identifier==h);i&&(this[f]=b((this.maxPriceFound-this.minPriceFound)*d(1,c(0,(i.clientX-g.left)/g.width))+this.minPriceFound),this.minPrice>this.maxPrice&&(this.minPrice=this.maxPrice),this.maxPrice<this.minPrice&&(this.maxPrice=this.minPrice))},j=()=>{let a=Array.from(e.changedTouches).find(a=>a.identifier==h);a&&(window.removeEventListener("touchmove",i),window.removeEventListener("touchcancel",j),window.removeEventListener("touchend",j))};window.addEventListener("touchmove",i),window.addEventListener("touchcancel",j),window.addEventListener("touchend",j)},handleSortDropdownClick(){this.isShowingSortDropdown=!this.isShowingSortDropdown},handleFilterClick(a){this.clearFilters(),"Vendor"==a.maps[0].type?this.filterVendor=a.maps[0].values:"Collection"==a.maps[0].type?this.filterCollection=a.maps[0].values:"Tag"==a.maps[0].type&&(this.filterTag=a.maps[0].values)},nextPage(){this.currentPage<this.lastPage&&(window.scrollTo(0,100),this.currentPage++,this.nextIndex=20*(this.currentPage-1),this.forcePageRender())},previousPage(){1<this.currentPage&&(window.scrollTo(0,100),this.currentPage--,this.nextIndex=20*(this.currentPage-1),this.forcePageRender())},searchProducts(a){this.searchText=a,this.forcePageRender()},selectSort(a){this.selectedSort=a,this.isShowingSortDropdown=!1},setFilter(a,b){"Collection"==a&&(this.filterCollection=b),"Tag"==a&&(this.filterTag=b),"Vendor"==a&&(this.filterVendor=b),this.forcePageRender()},setPriceFilter(a,b){this.minPrice=a,this.maxPrice=b,this.forcePageRender()},setSortMethod(a){for(const[b,c]of Object.entries(this.sortNames))`${c}`==a&&(this.selectedSort=`${b}`)},switchCategory(a){this.clearFilters(),this.filterCollection=[],this.vendorCollection=[],this.tagCollection=[],this.filterCollection.push(a.title)},toggleCart(){let a=document.getElementById("shopify-cart-anchor");this.itemsInCart=a.__vue__.getAllItems();let b=a.__vue__.toggleCart()},toggleOffAllMenus(){this.isShowingPriceMenu&&(this.isShowingPriceMenu=!this.isShowingPriceMenu);for(let a of this.filterOptions)a.showingMenu&&(a.showingMenu=!1)},toggleFilterMenu(a){let b=this.filterOptions.filter(b=>b.name==a);b[0].showingMenu=!b[0].showingMenu;let c=this.filterOptions.filter(b=>b.name!=a);for(let b of c)b.showingMenu=!1;this.isShowingPriceMenu=!1},toggleMobileModal(){this.showMobileModal=!this.showMobileModal},togglePasswordModal(){this.showPasswordModal=!this.showPasswordModal},togglePriceMenu(){this.isShowingPriceMenu=!this.isShowingPriceMenu}},async mounted(){let a=new URLSearchParams(window.location.search),b=a.get("search"),c=a.get("filter"),d=decodeURI(a.get("filter")),f=await axios.get("/component/shopify-product-list/product_index.json"),g=f.data.products,h={collections:["Women's Health"]};g=g.filter(a=>{if(h.collections){let b=!1;for(let c of h.collections)for(let d of a.collections)d.title==c&&(b=!0);if(!b)return!1}if(h.vendors){let b=!1;for(let c of h.vendors)a.vendor==c&&(b=!0);if(!b)return!1}if(h.tags){let b=!1;for(let c of h.tags)for(let d of a.tags)d==c&&(b=!0);if(!b)return!1}return!(h.minPrice&&a.price<h.minPrice||h.maxPrice&&a.price>h.maxPrice)}),this.products=g,this.productCollections=this.getAllCollections(g),null!=c&&(this.filterCollection=[],this.filterCollection.push(d)),null!=b&&(this.searchText=b),this.filterOptions=[{name:"Categories",subHeadings:[{name:"Adrenal & Thyroid Support",maps:[{type:"Collection",values:["Adrenal & Thyroid Support"]}]},{name:"Blood Sugar & Weight Loss Support",maps:[{type:"Collection",values:["Blood Sugar & Weight Loss Support"]}]},{name:"Bone & Muscular Support",maps:[{type:"Collection",values:["Bone & Muscular Support"]}]},{name:"Brain & Nervous System Support",maps:[{type:"Collection",values:["Brain & Nervous System Support"]}]},{name:"Cardiovascular Support",maps:[{type:"Collection",values:["Cardiovascular Support"]}]},{name:"Gut Health",maps:[{type:"Collection",values:["Gut Health"]}]},{name:"Immune Support",maps:[{type:"Collection",values:["Immune Support"]}]},{name:"Men's Health",maps:[{type:"Collection",values:["Men's Health"]}]},{name:"Stress & Sleep Support",maps:[{type:"Collection",values:["Stress & Sleep Support"]}]},{name:"Women's Health",maps:[{type:"Collection",values:["Women's Health"]}]}],showingMenu:!1}],this.buildFilterOptions(),this.maxPrice=this.maxPriceFound,this.minPrice=this.minPriceFound,this.buildSpotlight(),this.spotlightChoice="none",this.reviewChoices="loox",this.showProductOptions=!1}})})();(async()=>{const a=(await import("https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.esm.browser.min.js")).default;new a({el:document.querySelector("shopify-quick-search[data-cid-10]"),template:"<div class=\"shopify-quick-search\" data-cid-10><button class=\"shopify-quick-search-button\" @click=\"showOverlay = !showOverlay\"><i class=\"material-icons\">search</i></button><div class=\"quick-search-overlay\" v-if=\"showOverlay\"><div class=\"search-container\"><div class=\"input-container\"><input class=\"quick-search-input\" v-model=\"searchText\" placeholder=\"Search Products\" @keyup.enter=\"navigateToSearch\"><div class=\"search-results-pane\" v-if=\"showResults\"><div class=\"search-results-title\">PRODUCTS</div><div class=\"search-results-hr\"></div><div class=\"search-results-products-container\"><div class=\"search-results-product\" v-for=\"product in filteredProducts\"><a class=\"product-result-link\" :href=\"getProductDetailsUrl(product)\"><img class=\"product-result-thumb\" :src=\"`/media/${product.display}/small.webp`\"><div class=\"product-title\">{{ product.title }}</div></a></div></div><div class=\"search-results-hr\"></div><div class=\"search-results-text\"><div class=\"search-text\">Search for \"{{searchText}}\"</div><div class=\"proceed-button\" @click=\"navigateToSearch\"><i class=\"material-icons\">arrow_forward</i></div></div></div></div><div class=\"search-button\" @click=\"navigateToSearch\"><i class=\"material-icons\">search</i></div><div class=\"search-close-button\" @click=\"showOverlay = !showOverlay\"><i class=\"material-icons\">close</i></div></div></div></div>",data(){return{showOverlay:!1,searchText:"",products:[],searchableFields:["title"]}},methods:{getProductDetailsUrl(a){let b=`/products/${a.slug}`;return!1,!b.endsWith("/")&&(b=`${b}/`),b},navigateToSearch(){let a=this.searchText.toLowerCase(),b="/products";!1,!b.endsWith("/")&&(b=`${b}/`);let c=b+"?search="+a;document.location.href=c}},computed:{filteredProducts(){let a=this.products.filter(a=>!this.searchText||this.searchableFields.find(b=>a[b]&&(a[b]+"").replace("-"," ").replace(/[^a-zA-Z0-9 ]/g,"").toLowerCase().match(new RegExp(this.searchText.replace(/[^a-zA-Z0-9 ]/g,"").toLowerCase(),"i"))));return a.slice(0,4)},showResults(){return!!(0<this.searchText.length)}},async mounted(){this.searchText="";this.products=[{display:"67100e3d4a61ad954b3d72f8",title:"The Wahls Protocol\xAE Multiple Sclerosis | Autoimmune Boost Kit - 90 Day",slug:"the-wahls-protocol-multiple-sclerosis-autoimmune-boost-kit-90-day"},{display:"67100e3c4a61ad954b3d72f7",title:"The Wahls Protocol\xAE Multiple Sclerosis | Autoimmune Basic Care Kit - 60 Day",slug:"the-wahls-protocol-multiple-sclerosis-autoimmune-basic-care-kit-60-day"},{display:"67100e3b4a61ad954b3d72f6",title:"Wahls Protocol\xAE Mental Health Support - 30 Day",slug:"wahls-protocol-mental-health-support-30-day"},{display:"66be63371502933205767c9c",title:"Histamine Shield MD",slug:"histamine-shield-60t"},{display:"66be63311502933205767c9a",title:"CortiStress Relief",slug:"cortistress-relief-60c"},{display:"66be63331502933205767c9b",title:"Immuno PRM",slug:"immuno-prm-30sg"},{display:"66be63301502933205767c99",title:"Andro Testo Boost",slug:"andro-testo-boost-60c"},{display:"66be632e1502933205767c98",title:"Better Brain Mag - Unflavored",slug:"better-brain-mag-60sv"},{display:"66be63291502933205767c96",title:"Xeno Estro Detox",slug:"xeno-estro-detox-120c"},{display:"66be632a1502933205767c97",title:"Fem Meno Balance",slug:"fem-meno-balance-90c"},{display:"66be63261502933205767c95",title:"Better Brain Mag - Lemon-Lime",slug:"better-brain-mag-lemon-lime-60sv"},{display:"66be63211502933205767c93",title:"Ergo Plus L-Ergothianene",slug:"ergo-plus-l-ergothianene-30c"},{display:"66be63231502933205767c94",title:"BergaCore Complete",slug:"bergacore-complete-60t"},{display:"66be631e1502933205767c92",title:"D3K2 5000iu",slug:"d3k2-5000iu-60c"},{display:"66be631a1502933205767c90",title:"ProbioCALM",slug:"probiocalm-30c"},{display:"66be631c1502933205767c91",title:"MTHFR Complete",slug:"mthfr-complete-60c"},{display:"66be630f1502933205767c8f",title:"Brocco Detox",slug:"brocco-detox-30c"},{display:"66be63061502933205767c8e",title:"Melatonin CR",slug:"melatonin-cr-90-t"},{display:"66be63011502933205767c8c",title:"MitoMulti Complete",slug:"mitomulti-complete-120c"},{display:"66be63041502933205767c8d",title:"Gluten Shield MD",slug:"gluten-shield-md-60c"},{display:"66be62ff1502933205767c8b",title:"Fast Relief",slug:"fast-relief-40sg"},{display:"66be62fd1502933205767c8a",title:"Immune Defense",slug:"immune-defense-60c"},{display:"66be62fb1502933205767c89",title:"D3 2000iu",slug:"d3-2000iu-120-sg"},{display:"66be62f91502933205767c88",title:"Probiotic MD",slug:"probiotic-md-30-c"},{display:"66be62ee1502933205767c87",title:"Candida Clear",slug:"candida-clear-60-c"},{display:"66be62e91502933205767c85",title:"Blood Sugar Synergy",slug:"blood-sugar-synergy-120-c"},{display:"66be62ec1502933205767c86",title:"Complete Carnitine",slug:"complete-carnitine-60-c"},{display:"66be62e81502933205767c84",title:"Ultra CoQ10",slug:"ultra-coq10-60-sg"},{display:"66be62e51502933205767c83",title:"NAC",slug:"nac-60-c"},{display:"66be62e31502933205767c82",title:"Better Brain Mag - Mixed Berry",slug:"better-brain-mag-mixed-berry-30sv"},{display:"66be62de1502933205767c80",title:"Cytokine Modulator",slug:"cytokine-modulator-30-c"},{display:"66be62e01502933205767c81",title:"Activated B's",slug:"activated-bs-90-c"},{display:"66be62db1502933205767c7f",title:"Brain Protect",slug:"brain-protect-120-c"},{display:"66be62d61502933205767c7d",title:"Ultra C",slug:"ultra-c-120c"},{display:"66be62d81502933205767c7e",title:"MonoAbsorp Omega 1300",slug:"monoabsorp-omega-1300-60-sg"},{display:"66be62d31502933205767c7c",title:"Power Zinc",slug:"power-zinc-120-c"},{display:"66be62d11502933205767c7b",title:"D3 5000iu",slug:"d3-5000iu-90c"}]}})})();(async()=>{const a=(await import("https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.esm.browser.min.js")).default;new a({el:document.querySelector("shopify-cart-button[data-cid-11]"),template:"<div class=\"shopify-cart-button shopify-cart-icon-button\" data-cid-11><button class=\"shopify-cart-button\" @click=\"openCart()\" :style=\"hideCartButton\"><i class=\"material-icons\">shopping_cart</i><div class=\"cart-quantity\" v-if=\"false && cartTotal > 0\">{{ cartTotal }}</div></button></div>",data(){return{itemsInCart:[]}},methods:{openCart(){let a=document.getElementById("shopify-cart-anchor");this.itemsInCart=a.__vue__.getAllItems();a.__vue__.toggleCart()},updateCart(){let a=document.getElementById("shopify-cart-anchor");this.itemsInCart=a.__vue__.getAllItems()}},computed:{cartTotal(){let a=0;for(let b of this.itemsInCart)a+=b.quantity,this.$forceUpdate();return a},hideCartButton(){return 0<this.itemsInCart.length?{display:"flex"}:{display:"none"}}},beforeMount(){if(window.localStorage.getItem("shopifyCart")){let a=JSON.parse(window.localStorage.getItem("shopifyCart"));this.itemsInCart=a}},mounted(){let a=document.getElementById("shopify-cart-anchor");a.__vue__&&(this.itemsInCart=a.__vue__.getAllItems())}})})();(async()=>{const a=(await import("https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.esm.browser.min.js")).default;a.component("shopify-cart-display",{template:"<div class=\"shopify-cart-display\" v-if=\"showModal\" :show-modal=\"showModal\" :products=\"currentCartItems\" :capture-email=\"false\" @close=\"showModal = false\"><div class=\"modal-container\" v-if=\"!isMobile &amp;&amp; !displayingEmailCapture\"><div class=\"modal-x\"><button class=\"close-button\" @click=\"$emit(&quot;close&quot;)\">X</button></div><div class=\"modal-header\">Items in Cart</div><div class=\"modal-product\" v-for=\"product in products\"><button class=\"delete-button\" @click=\"removeProduct(product)\">Remove</button><a class=\"product-image\" :href=\"productHref(product)\"><img :src=\"`/media/${product.product.display}/xsmall.webp`\"></a><div class=\"product-details-column\"><a class=\"product-title\" :href=\"productHref(product)\">{{ product.product.title }}</a><div class=\"product-details-row\"><div class=\"product-option\" v-if=\"product.option1\">Options: {{ product.option1 }}  </div><div class=\"product-option\" v-if=\"product.option2\">{{ product.option2 }} </div><div class=\"product-option\" v-if=\"product.option3\">{{ product.option3 }}</div><div class=\"product-option\" v-if=\"product.subscription\">{{ findSubName(product) }}</div></div></div><div class=\"product-price\" v-if=\"product.options\">{{product.quantity}} @ ${{ (parseFloat(product.product.price) + parseFloat(product.options.priceAdd)).toFixed(2) }}</div><div class=\"product-price\" v-else>{{ product.quantity }} @ ${{ parseFloat(product.product.price).toFixed(2) }}</div><div class=\"shopify-quantity-row\"><div class=\"shopify-quantity-toggle\"><button class=\"modal-featureless-button\" @click=\"decrementQuantity(product)\">-</button><button class=\"modal-quantity-button\">{{ product.quantity }}</button><button class=\"modal-featureless-button\" @click=\"incrementQuantity(product)\">+</button></div></div></div><div class=\"totals\"><div class=\"cart-total\">Cart Total: ${{ cartTotal }}</div></div><div class=\"error-frame\" v-if=\"displayError\"><div class=\"error-label\">Cannot place order, conditions not met:</div><div class=\"error-message\">To complete a Build My Own NCPak order, you must include 3 items.  Please continue your order to meet that criteria.</div><div class=\"culprit-products\"><div class=\"culprit-label\">Products affected:</div><div class=\"culprit\" v-for=\"product in minQuantityProducts\"> <span>{{ product }}</span></div></div></div><div class=\"end-buttons\"><button class=\"continue-button\" @click=\"$emit(&quot;close&quot;)\">Continue Shopping</button><button class=\"checkout-button\" v-if=\"!capturing\" @click=\"checkoutProceed()\">Proceed to Checkout</button><button class=\"checkout-button\" v-else @click=\"toggleEmailCapture()\">Proceed to Checkout</button></div></div><div class=\"modal-container\" v-else-if=\"!displayingEmailCapture\"><div class=\"modal-x\"><button class=\"close-button\" @click=\"$emit(&quot;close&quot;)\">X</button></div><div class=\"modal-header\">Items in Cart</div><div class=\"mobile-product\" v-for=\"product in products\"><button class=\"delete-button\" @click=\"removeProduct(product)\">X</button><div class=\"product-details-column\"><a class=\"product-title\" :href=\"productHref(product)\">{{ product.product.title }}</a><div class=\"product-details-row\"><div class=\"product-option\" v-if=\"product.option1\">Options: {{ product.option1 }}  </div><div class=\"product-option\" v-if=\"product.option2\">{{ product.option2 }} </div><div class=\"product-option\" v-if=\"product.option3\">{{ product.option3 }}</div><div class=\"product-option\" v-if=\"product.subscription\">{{ findSubName(product) }}</div></div></div><div class=\"product-price\" v-if=\"product.options\">${{ (parseFloat(product.product.price) + parseFloat(product.options.priceAdd)).toFixed(2) }} ea.</div><div class=\"product-price\" v-else>${{ parseFloat(product.product.price).toFixed(2) }} ea.</div><div class=\"shopify-quantity-row\"><div class=\"shopify-quantity-toggle\"><button class=\"modal-featureless-button\" @click=\"decrementQuantity(product)\">-</button><button class=\"modal-quantity-button\">{{ product.quantity }}</button><button class=\"modal-featureless-button\" @click=\"incrementQuantity(product)\">+</button></div></div></div><div class=\"totals\"><div class=\"cart-total\">Cart Total: ${{ cartTotal }}</div></div><div class=\"error-frame\" v-if=\"displayError\"><div class=\"error-label\">Cannot place order, conditions not met:</div><div class=\"error-message\">To complete a Build My Own NCPak order, you must include 3 items.  Please continue your order to meet that criteria.</div><div class=\"culprit-products\"><div class=\"culprit-label\">Products affected:</div><div class=\"culprit\" v-for=\"product in minQuantityProducts\"> <span>{{ product }}</span></div></div></div><div class=\"end-buttons\"><button class=\"continue-button\" @click=\"$emit(&quot;close&quot;)\">Continue Shopping</button><button class=\"checkout-button\" v-if=\"!capturing\" @click=\"checkoutProceed()\">Proceed to Checkout</button><button class=\"checkout-button\" v-else @click=\"toggleEmailCapture()\">Proceed to Checkout</button></div></div><div class=\"email-capture\" v-if=\"displayingEmailCapture\"><div class=\"modal-x\"><button class=\"close-button\" @click=\"$emit(&quot;close&quot;)\">X</button></div><div class=\"modal-header\">Please enter your Phone Number and Email Address to proceed</div><div class=\"capture-input-grid\"><input class=\"input-field\" v-model=\"customerEmail\" placeholder=\"Email Address\"><input class=\"input-field\" v-model=\"customerPhone\" placeholder=\"Phone Number\"></div><div class=\"end-buttons\"><button class=\"checkout-button\" @click=\"toggleEmailCapture()\">Return to Review</button><button class=\"checkout-button\" @click=\"checkoutProceed()\">Proceed to Checkout</button></div></div></div>",props:{showModal:Boolean,products:Array,currentCartItems:Array,captureEmail:Boolean},data(){return{itemsInCart:[],windowWidth:0,mobileDisplay:!1,customerEmail:"",customerPhone:"",displayingEmailCapture:!1,capturing:!1,minQuantityProducts:[],displayError:!1}},computed:{cartTotal(){if(0==this.products.length)return"0.00";else{let a=0;for(let b of this.products)a+=parseFloat(b.product.price)*b.quantity;return(a/1).toFixed(2)}},isMobile(){return this.mobileDisplay}},methods:{removeProduct(a){let b=document.getElementById("shopify-cart-anchor");b.__vue__.removeCart(a)},incrementQuantity(a){let b=document.getElementById("shopify-cart-anchor");b.__vue__.updateQuantity(a,"inc")},decrementQuantity(a){let b=document.getElementById("shopify-cart-anchor");b.__vue__.updateQuantity(a,"dec")},async checkoutProceed(){let a=document.getElementById("shopify-cart-anchor"),b=a.__vue__.getAllItems(),c=!1;for(let a of b)a.product.minimumQuantityApplies&&(c=!0);if(c){let c=b.filter(a=>a.product.minimumQuantityApplies),d=c[0].product.minimumQuantity,e=0;this.minQuantityProducts=[];for(let a of c)this.minQuantityProducts.push(a.product.title),e+=a.quantity;e>=d?await a.__vue__.checkout(b,this.customerEmail.trim(),this.customerPhone.trim()):this.displayError=!0}else await a.__vue__.checkout(b,this.customerEmail.trim(),this.customerPhone.trim())},findSubName(a){for(let b of a.subData)for(let c of b.node.sellingPlans.edges)if(c.node.id==a.subscription)return c.node.name},getWindowSize(){this.windowWidth=window.innerWidth,this.mobileDisplay=!!(850>this.windowWidth)},toggleEmailCapture(){this.displayingEmailCapture=!this.displayingEmailCapture},productHref(a){let b=a.product,c=`/products/${b.slug}`;return!1,!c.endsWith("/")&&(c=`${c}/`),c}},mounted(){this.capturing=this.captureEmail,window.addEventListener("resize",this.getWindowSize),this.getWindowSize()}}),new a({el:document.querySelector("shopify-cart-anchor[data-cid-12]"),template:"<div id=\"shopify-cart-anchor\" class=\"shopify-cart-anchor\" data-cid-12><div class=\"cart-anchor-banner\" v-if=\"isBanner\"><div class=\"no-items\" v-if=\"currentCartTotal == 0\"> <div class=\"dark-text\">Free shipping for orders over</div><div class=\"light-text\">$125</div><div class=\"dark-text\">!</div></div><div class=\"not-yet-met\" v-else-if=\"!hasMetThreshold\"><div class=\"dark-text\">Only </div><div class=\"light-text\">${{ awayFromShipping }}</div><div class=\"dark-text\">away from free shipping!</div></div><div class=\"has-met\" v-else-if=\"hasMetThreshold\"><div class=\"dark-text\">Your cart qualifies for free shipping!</div></div><a class=\"redirect-link\" :href=\"directLink\" id=\"redirectit\" target=\"_self\">redirect</a></div><div class=\"shopify-cart-display-seo\" style=\"display:none\"></div><shopify-cart-display class=\"shopify-cart-display\" v-if=\"showModal\" :show-modal=\"showModal\" :products=\"currentCartItems\" :capture-email=\"false\" @close=\"showModal = false\" data-cid-13></shopify-cart-display></div>",data(){return{cartItems:[],encryptedDripToken:null,isGoogleAnalyticsEnabled:!0,isBanner:!1,showModal:!1,currentLink:"https://"}},computed:{currentCartItems(){return this.cartItems},currentCartTotal(){let a=0;for(let b of this.cartItems){let c=parseFloat(b.product.price)*b.quantity;a+=c}return parseInt(a)},directLink(){return this.currentLink},awayFromShipping(){return 125-this.currentCartTotal},hasMetThreshold(){return!!(125<=this.currentCartTotal)}},methods:{addCart(a){if(0<this.cartItems.length){let b=!1;for(let c of this.cartItems)c.option1==a.option1&&c.option2==a.option2&&c.option3==a.option3&&c.product.id==a.product.id&&(b=!0);if(!b)this.cartItems.push(a);else{let b=this.cartItems.filter(b=>b.product.id==a.product.id&&b.option1==a.option1&&b.option2==a.option2&&b.option3==a.option3);b[0].quantity+=a.quantity}}else this.cartItems.push(a);window.localStorage.setItem("shopifyCart",JSON.stringify(this.cartItems));let b=document.querySelectorAll(".shopify-cart-button");if(b.length)for(let a of b)a.__vue__&&a.__vue__.updateCart()},getItemQuantityInCart(a){if(0==this.cartItems.length)return 0;else{let b=this.cartItems.find(b=>b.product.id==a.product.id&&b.options==a.options&&b.variant==a.variant);return b?b.quantity:0}},setCart(a){this.cartItems=a},toggleCart(){this.showModal=!this.showModal},removeCart(a){let b=this.cartItems.filter(b=>b.product.id==a.product.id&&b.options==a.options&&b.variant==a.variant);b[0].quantity=0,this.cartItems.splice(this.cartItems.indexOf(b[0]),1),window.localStorage.setItem("shopifyCart",JSON.stringify(this.cartItems))},updateQuantity(a,b){let c=this.cartItems.filter(b=>b.product.id==a.product.id&&b.options==a.options&&b.variant==a.variant);"inc"==b?c[0].quantity++:"dec"==b&&(c[0].quantity--,0>=c[0].quantity&&this.removeCart(c[0])),window.localStorage.setItem("shopifyCart",JSON.stringify(this.cartItems))},getAllItems(){return this.cartItems},async checkout(a,b,c){let d,e=[];for(let d of a){let a="gid://shopify/ProductVariant/"+d.product.variants[0].id;if(d.variant&&(a="gid://shopify/ProductVariant/"+d.variant),d.subscription){let b={quantity:d.quantity,merchandiseId:a,sellingPlanId:d.subscription};e.push(b)}else{let b={quantity:d.quantity,merchandiseId:a};e.push(b)}}let f=0,g=0;for(let d of a){let a="";d.variant&&(a=d.variant.title);let b="";d.subscription&&(b="Subscription Start");let c="";d.product.collections[0]&&(c=d.product.collections[0].title);let e="";d.product.collections[1]&&(e=d.product.collections[1].title),f+=d.quantity*parseFloat(d.product.price);({item_id:d.product.id,item_name:d.product.title,affiliation:"mercury-shopify-addon",coupon:"",discount:0,index:g,item_brand:d.product.vendor,item_category:c,item_category2:e,item_category3:b,item_list_id:"",item_list_name:"",item_variant:a,location_id:"",price:parseFloat(d.product.price),quantity:d.quantity});g++}this.isGoogleAnalyticsEnabled&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"begin_checkout",ecommerce:{currency:"USD",value:f,coupon:"",items:[]}})),d=""==b||""==c?{lines:e}:{buyerIdentity:{deliveryAddressPreferences:[{deliveryAddress:{country:"USA"}}],email:b},lines:e};let h=await axios({method:"post",url:"https://d1c911-7a.myshopify.com/api/2023-04/graphql.json",headers:{"X-Shopify-Storefront-Access-Token":"07bbd2aeff26a05f56745e478fbf1264"},data:{query:`mutation cartCreateMutation($cartInput: CartInput) {
            cartCreate(input: $cartInput) {
              cart {
                id
                checkoutUrl
                lines(first: 250) {
                  edges {
                    node {
                      quantity
                      merchandise {
                        __typename
                        ... on ProductVariant {
                          id
                        }
                      }
                      sellingPlanAllocation {
                        sellingPlan {
                          id
                          name
                        }
                        priceAdjustments {
                          price {
                            amount
                          }
                          compareAtPrice {
                            amount
                          }
                          perDeliveryPrice {
                            amount
                          }
                        }
                      }
                    }
                  }
                }
              }
              userErrors {
                field
                message
              }
            }
          }`,variables:{cartInput:d}}});if(h.data.data.cartCreate.cart){function a(a){c.forEach(b=>a.dispatchEvent(new MouseEvent(b,{view:window,bubbles:!0,cancelable:!0,buttons:1})))}let b=h.data.data.cartCreate.cart.checkoutUrl;this.currentLink=b;const c=["mousedown","click","mouseup"];setTimeout(()=>{let c=document.createElement("a"),d=document.createTextNode("Generated Link");c.appendChild(d),c.title="Generated Title",c.href=b,document.body.appendChild(c),a(c)},1e3)}else console.log("DEBUG INFO FOR FAILED CHECKOUT"),console.log(h)}},beforeMount(){if(window.localStorage.getItem("shopifyCart")){let a=JSON.parse(window.localStorage.getItem("shopifyCart"));this.cartItems=a}},async mounted(){}})})();(async()=>{const a=(await import("https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.esm.browser.min.js")).default;new a({el:document.querySelector("shopify-quick-search[data-cid-14]"),template:"<div class=\"shopify-quick-search\" data-cid-14><button class=\"shopify-quick-search-button\" @click=\"showOverlay = !showOverlay\"><i class=\"material-icons\">search</i></button><div class=\"quick-search-overlay\" v-if=\"showOverlay\"><div class=\"search-container\"><div class=\"input-container\"><input class=\"quick-search-input\" v-model=\"searchText\" placeholder=\"Search Products\" @keyup.enter=\"navigateToSearch\"><div class=\"search-results-pane\" v-if=\"showResults\"><div class=\"search-results-title\">PRODUCTS</div><div class=\"search-results-hr\"></div><div class=\"search-results-products-container\"><div class=\"search-results-product\" v-for=\"product in filteredProducts\"><a class=\"product-result-link\" :href=\"getProductDetailsUrl(product)\"><img class=\"product-result-thumb\" :src=\"`/media/${product.display}/small.webp`\"><div class=\"product-title\">{{ product.title }}</div></a></div></div><div class=\"search-results-hr\"></div><div class=\"search-results-text\"><div class=\"search-text\">Search for \"{{searchText}}\"</div><div class=\"proceed-button\" @click=\"navigateToSearch\"><i class=\"material-icons\">arrow_forward</i></div></div></div></div><div class=\"search-button\" @click=\"navigateToSearch\"><i class=\"material-icons\">search</i></div><div class=\"search-close-button\" @click=\"showOverlay = !showOverlay\"><i class=\"material-icons\">close</i></div></div></div></div>",data(){return{showOverlay:!1,searchText:"",products:[],searchableFields:["title"]}},methods:{getProductDetailsUrl(a){let b=`/products/${a.slug}`;return!1,!b.endsWith("/")&&(b=`${b}/`),b},navigateToSearch(){let a=this.searchText.toLowerCase(),b="/products";!1,!b.endsWith("/")&&(b=`${b}/`);let c=b+"?search="+a;document.location.href=c}},computed:{filteredProducts(){let a=this.products.filter(a=>!this.searchText||this.searchableFields.find(b=>a[b]&&(a[b]+"").replace("-"," ").replace(/[^a-zA-Z0-9 ]/g,"").toLowerCase().match(new RegExp(this.searchText.replace(/[^a-zA-Z0-9 ]/g,"").toLowerCase(),"i"))));return a.slice(0,4)},showResults(){return!!(0<this.searchText.length)}},async mounted(){this.searchText="";this.products=[{display:"67100e3d4a61ad954b3d72f8",title:"The Wahls Protocol\xAE Multiple Sclerosis | Autoimmune Boost Kit - 90 Day",slug:"the-wahls-protocol-multiple-sclerosis-autoimmune-boost-kit-90-day"},{display:"67100e3c4a61ad954b3d72f7",title:"The Wahls Protocol\xAE Multiple Sclerosis | Autoimmune Basic Care Kit - 60 Day",slug:"the-wahls-protocol-multiple-sclerosis-autoimmune-basic-care-kit-60-day"},{display:"67100e3b4a61ad954b3d72f6",title:"Wahls Protocol\xAE Mental Health Support - 30 Day",slug:"wahls-protocol-mental-health-support-30-day"},{display:"66be63371502933205767c9c",title:"Histamine Shield MD",slug:"histamine-shield-60t"},{display:"66be63311502933205767c9a",title:"CortiStress Relief",slug:"cortistress-relief-60c"},{display:"66be63331502933205767c9b",title:"Immuno PRM",slug:"immuno-prm-30sg"},{display:"66be63301502933205767c99",title:"Andro Testo Boost",slug:"andro-testo-boost-60c"},{display:"66be632e1502933205767c98",title:"Better Brain Mag - Unflavored",slug:"better-brain-mag-60sv"},{display:"66be63291502933205767c96",title:"Xeno Estro Detox",slug:"xeno-estro-detox-120c"},{display:"66be632a1502933205767c97",title:"Fem Meno Balance",slug:"fem-meno-balance-90c"},{display:"66be63261502933205767c95",title:"Better Brain Mag - Lemon-Lime",slug:"better-brain-mag-lemon-lime-60sv"},{display:"66be63211502933205767c93",title:"Ergo Plus L-Ergothianene",slug:"ergo-plus-l-ergothianene-30c"},{display:"66be63231502933205767c94",title:"BergaCore Complete",slug:"bergacore-complete-60t"},{display:"66be631e1502933205767c92",title:"D3K2 5000iu",slug:"d3k2-5000iu-60c"},{display:"66be631a1502933205767c90",title:"ProbioCALM",slug:"probiocalm-30c"},{display:"66be631c1502933205767c91",title:"MTHFR Complete",slug:"mthfr-complete-60c"},{display:"66be630f1502933205767c8f",title:"Brocco Detox",slug:"brocco-detox-30c"},{display:"66be63061502933205767c8e",title:"Melatonin CR",slug:"melatonin-cr-90-t"},{display:"66be63011502933205767c8c",title:"MitoMulti Complete",slug:"mitomulti-complete-120c"},{display:"66be63041502933205767c8d",title:"Gluten Shield MD",slug:"gluten-shield-md-60c"},{display:"66be62ff1502933205767c8b",title:"Fast Relief",slug:"fast-relief-40sg"},{display:"66be62fd1502933205767c8a",title:"Immune Defense",slug:"immune-defense-60c"},{display:"66be62fb1502933205767c89",title:"D3 2000iu",slug:"d3-2000iu-120-sg"},{display:"66be62f91502933205767c88",title:"Probiotic MD",slug:"probiotic-md-30-c"},{display:"66be62ee1502933205767c87",title:"Candida Clear",slug:"candida-clear-60-c"},{display:"66be62e91502933205767c85",title:"Blood Sugar Synergy",slug:"blood-sugar-synergy-120-c"},{display:"66be62ec1502933205767c86",title:"Complete Carnitine",slug:"complete-carnitine-60-c"},{display:"66be62e81502933205767c84",title:"Ultra CoQ10",slug:"ultra-coq10-60-sg"},{display:"66be62e51502933205767c83",title:"NAC",slug:"nac-60-c"},{display:"66be62e31502933205767c82",title:"Better Brain Mag - Mixed Berry",slug:"better-brain-mag-mixed-berry-30sv"},{display:"66be62de1502933205767c80",title:"Cytokine Modulator",slug:"cytokine-modulator-30-c"},{display:"66be62e01502933205767c81",title:"Activated B's",slug:"activated-bs-90-c"},{display:"66be62db1502933205767c7f",title:"Brain Protect",slug:"brain-protect-120-c"},{display:"66be62d61502933205767c7d",title:"Ultra C",slug:"ultra-c-120c"},{display:"66be62d81502933205767c7e",title:"MonoAbsorp Omega 1300",slug:"monoabsorp-omega-1300-60-sg"},{display:"66be62d31502933205767c7c",title:"Power Zinc",slug:"power-zinc-120-c"},{display:"66be62d11502933205767c7b",title:"D3 5000iu",slug:"d3-5000iu-90c"}]}})})();(async()=>{const a=(await import("https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.esm.browser.min.js")).default;new a({el:document.querySelector("shopify-cart-button[data-cid-15]"),template:"<div class=\"shopify-cart-button shopify-cart-icon-button\" data-cid-15><button class=\"shopify-cart-button\" @click=\"openCart()\" :style=\"hideCartButton\"><i class=\"material-icons\">shopping_cart</i><div class=\"cart-quantity\" v-if=\"false && cartTotal > 0\">{{ cartTotal }}</div></button></div>",data(){return{itemsInCart:[]}},methods:{openCart(){let a=document.getElementById("shopify-cart-anchor");this.itemsInCart=a.__vue__.getAllItems();a.__vue__.toggleCart()},updateCart(){let a=document.getElementById("shopify-cart-anchor");this.itemsInCart=a.__vue__.getAllItems()}},computed:{cartTotal(){let a=0;for(let b of this.itemsInCart)a+=b.quantity,this.$forceUpdate();return a},hideCartButton(){return 0<this.itemsInCart.length?{display:"flex"}:{display:"none"}}},beforeMount(){if(window.localStorage.getItem("shopifyCart")){let a=JSON.parse(window.localStorage.getItem("shopifyCart"));this.itemsInCart=a}},mounted(){let a=document.getElementById("shopify-cart-anchor");a.__vue__&&(this.itemsInCart=a.__vue__.getAllItems())}})})();