1"use strict";jQuery(document).ready(function($){var adpPopup={};(function(){var $this;adpPopup={sPrevious:window.scrollY,sDirection:"down",init:function(e){$this=adpPopup,$this.popupInit(e),$this.events(e)},events:function(){$(document).off(".adpPopup"),$(document).on("click.adpPopup",".popup-close",$this.closePopup),$(document).on("click.adpPopup",".popup-accept",$this.acceptPopup),$(document).on("click.adpPopup",".age-verification__popup-close",$this.agePopup),$(document).on("click.adpPopup",".age-verification__popup-close",$this.closePopup),$(document).on("click.adpPopup",".age-verification__button-no",$this.ageDeclined),$(document).on("keyup.adpPopup",function(e){e.key==="Escape"&&$('.popup-open[data-esc-close="true"]').each((_,p)=>$this.closePopup(p)),e.key==="F4"&&$('.popup-open[data-f4-close="true"]').each((_,p)=>$this.closePopup(p))}),$(document).on("click.adpPopup",".popup-overlay",function(){$('.popup-open[data-overlay-close="true"]').each((_,p)=>$this.closePopup(p))})},popupInit:function(){$(document).off("scroll.adpPopupDirection").on("scroll.adpPopupDirection",function(){var scrollCurrent=window.scrollY;$this.sDirection=scrollCurrent>$this.sPrevious?"down":"up",$this.sPrevious=scrollCurrent}),$(".popup").each(function(index,popup){if($(popup).data("open-trigger")==="manual"){var selector=$(popup).data("open-manual-selector");selector&&($(selector).addClass("popup-trigger"),$(document).off("click.adpPopupManual",selector).on("click.adpPopupManual",selector,function(e){e.preventDefault(),$(popup).removeClass("popup-already-opened"),$this.openPopup(popup),e.currentTarget.classList.contains("popup")&&$this.closePopup(selector)}))}!$this.isAllowPopup(popup)&&!$(popup).hasClass("age-verification")||$this.openTriggerPopup(popup)})},openTriggerPopup:function(e){var popup=e&&e.originalEvent?this:e;if($(popup).data("has-accept")===!0){var id=$(popup).data("id"),accepted=$this.getStorage("popup-accept-"+id);if(accepted)return}var trigger=$(popup).data("open-trigger");if(trigger==="none"){var ageVerification=$this.getStorage("popup-age-"+($(popup).data("id")||0));ageVerification||$this.openPopup(popup)}if(trigger==="delay"){var delaySeconds=parseInt($(popup).data("open-delay-number")||0,10);setTimeout(function(){$this.openPopup(popup)},delaySeconds*1e3),setTimeout(function(){($(popup).hasClass("popup-main-image--left")||$(popup).hasClass("popup-main-image--right"))&&$(popup).find(".popup-thumbnail").length&&(window.innerWidth>749?$(popup).find(".popup-thumbnail").css("width",$(popup).height()):$(popup).find(".popup-thumbnail").css("width","100%")),($(popup).hasClass("notification-banner-image--left")||$(popup).hasClass("notification-banner-image--right"))&&$(popup).find(".notification-banner__image").length&&(window.innerWidth>749?$(popup).find(".notification-banner__image").css("width",$(popup).height()):$(popup).find(".notification-banner__image").css("width","100%"))},1e3),window.addEventListener("resize",function(){setTimeout(function(){($(popup).hasClass("popup-main-image--left")||$(popup).hasClass("popup-main-image--right"))&&$(popup).find(".popup-thumbnail").length&&(window.innerWidth>749?$(popup).find(".popup-thumbnail").css("width",$(popup).height()):$(popup).find(".popup-thumbnail").css("width","100%")),($(popup).hasClass("notification-banner-image--left")||$(popup).hasClass("notification-banner-image--right"))&&$(popup).find(".notification-banner__image").length&&(window.innerWidth>749?$(popup).find(".notification-banner__image").css("width",$(popup).height()):$(popup).find(".notification-banner__image").css("width","100%"))},1e3)})}if(trigger==="exit"){if($(popup).data("exit-bound"))return;$(popup).data("exit-bound",!0);var showExit=!0;document.addEventListener("mousemove",function(ev){var scroll=window.pageYOffset||document.documentElement.scrollTop;ev.pageY-scroll<7&&showExit&&($this.openPopup(popup),showExit=!1)})}if(trigger==="scroll"){if($(popup).data("scroll-open-bound"))return;$(popup).data("scroll-open-bound",!0);var pointScrollType=$(popup).data("open-scroll-type"),pointScrollPosition=parseFloat($(popup).data("open-scroll-position")||0);$(document).on("scroll.adpPopupOpenScroll-"+$(popup).data("id"),function(){pointScrollType==="px"&&window.scrollY>=pointScrollPosition&&$this.openPopup(popup),pointScrollType==="%"&&$this.get
1ScrollPercent()>=pointScrollPosition&&$this.openPopup(popup)})}if(trigger==="accept"){var accept=$this.getStorage("popup-accept-"+($(popup).data("id")||0));accept||$this.openPopup(popup)}},closeTriggerPopup:function(e){var popup=e&&e.originalEvent?this:e,trigger=$(popup).data("close-trigger");if(trigger==="delay"){var closeDelaySeconds=parseInt($(popup).data("close-delay-number")||0,10);setTimeout(function(){$this.closePopup(popup)},closeDelaySeconds*1e3)}if(trigger==="scroll"){if($(popup).data("scroll-close-bound"))return;$(popup).data("scroll-close-bound",!0);var pointScrollType=$(popup).data("close-scroll-type"),pointScrollPosition=parseFloat($(popup).data("close-scroll-position")||0),initScrollPx=parseFloat($(popup).data("init-scroll-px")||0),initScrollPercent=parseFloat($(popup).data("init-scroll-percent")||0);$(document).on("scroll.adpPopupCloseScroll-"+$(popup).data("id"),function(){if(pointScrollType==="px"&&($this.sDirection==="up"&&window.scrollY<initScrollPx-pointScrollPosition&&$this.closePopup(popup),$this.sDirection==="down"&&window.scrollY>=initScrollPx+pointScrollPosition&&$this.closePopup(popup)),pointScrollType==="%"){var p=$this.getScrollPercent();$this.sDirection==="up"&&p<initScrollPercent-pointScrollPosition&&$this.closePopup(popup),$this.sDirection==="down"&&p>=initScrollPercent+pointScrollPosition&&$this.closePopup(popup)}})}},openPopup:function(e){var popup=e&&e.originalEvent?this:e;if($(popup).hasClass("popup-open")||$(popup).hasClass("popup-already-opened")||!$this.isAllowPopup(popup)&&!$(popup).hasClass("age-verification"))return;$("main").attr("inert",""),$(".shopify-section-group-footer-group").attr("inert",""),$(".shopify-section-group-header-group").attr("inert",""),$(".skip-to-content-link").attr("inert","");function setupBodyScroll(){$(popup).is('[data-body-scroll-disable="true"]')&&(window.innerWidth>749?$("body").addClass("popup-scroll-hidden"):$(popup).is('[data-mobile-disable="true"]')&&$("body").removeClass("popup-scroll-hidden"))}$(popup).is('[data-body-scroll-disable="true"]')&&(setupBodyScroll(),window.addEventListener("resize",function(){setTimeout(()=>setupBodyScroll(),500)})),$(popup).addClass("popup-open"),$(popup).data("init-scroll-px",window.scrollY),$(popup).data("init-scroll-percent",$this.getScrollPercent());var popupId=$(popup).data("id"),storageKey="popup-"+popupId,current=parseInt($this.getStorage(storageKey)||0,10),maxLimit=parseInt($(popup).data("limit-display")||0,10),nextValue=current+1;maxLimit&&nextValue>maxLimit&&(nextValue=maxLimit),$this.setStorage(storageKey,nextValue,{expires:$(popup).data("limit-lifetime")});var animation=$(popup).data("open-animation");$this.applyAnimation(popup,animation),$this.closeTriggerPopup(popup)},agePopup:function(e){var $el=e&&e.originalEvent?this:e,popup=$($el).closest(".popup");$this.setStorage("popup-age-"+$(popup).data("id"),1,{expires:360})},ageDeclined:function(){$(".age-verification__question").removeClass("show"),$(".age-verification__declined").addClass("show")},acceptPopup:function(e){var $el=e&&e.originalEvent?this:e,popup=$($el).closest(".popup");$this.setStorage("popup-accept-"+$(popup).data("id"),1,{expires:360}),$this.closePopup($el)},closePopup:function(e){var $el=e&&e.originalEvent?this:e,popup=$($el).closest(".popup"),animation=$(popup).data("exit-animation");$this.applyAnimation(popup,animation,function(){$(popup).addClass("popup-already-opened"),$(popup).removeClass("popup-open"),$("body").removeClass("popup-scroll-hidden")}),$("main").removeAttr("inert",""),$(".shopify-section-group-footer-group").removeAttr("inert",""),$(".shopify-section-group-header-group").removeAttr("inert",""),$(".skip-to-content-link").removeAttr("inert","")},isAllowPopup:function(popup){var popupId=popup.getAttribute("data-id"),maxLimit=parseInt(popup.getAttribute("data-limit-display")||0,10);if(!maxLimit||window.Shopify&&Shopify.designMode)return!0;var stored=parseInt($this.getStorage("popup-"+popupId)||0,10);return stored<maxLimit},applyAnimation:function(el,name,callback){var popup=$(el).closest(".popup"),overlayName=typeof callback=="function"?"popupExitFade":"popupOpenFade";$(popup).next(".popup-overlay").addClass("popup-animated "+overlayName).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){$(this).removeClass("popup-animated "+overlayName)}),$(popup).find(".popup-wrap").addClass("popup-animated "+name).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){$(this).removeClass("popup-animated "+name),typeof callback=="function"&&callback()})},getStorage:function(key){var item=localStorage.getItem(key);if(item)try{var parsed=JSON.parse(item);if(parsed.expires&&Date.now()>parsed.expires){localStorage.removeItem(key);return}return parsed.value}catch{return}},setStorage:function(key,value,options){options=options||{};var data={value,expires:null};if(options.expires){var expiresDate=new Date;expiresDate.setDate(expiresDate.getDate()+parseInt(options.expires,10)),data.expires=expiresDate.getTime()}localStorage.setItem(key,JSON.stringify(data))},getScrollPercent:function(){var h=document.documentElement,b=document.body,st="scrollTop",sh="scrollHeight";return(h[st]||b[st])/((h[sh]||b[sh])-h.clientHeight)*100}}})(),adpPopup.init(),document.addEventListener("DOMContentLoaded",function(){var forms=Array.from(document.querySelectorAll("#form_contact_popup, #popup-newsletter-form"));
1forms.forEach(function(form){form&&(form.addEventListener("submit",function(){window.location.hash=""}),form.addEventListener("keydown",function(e){if(e.key==="Enter"){const target=e.target||e.srcElement;if(target&&target.tagName&&target.tagName.toLowerCase()==="textarea")return;e.preventDefault();const submitBtn=form.querySelector('button[type="submit"], input[type="submit"]');submitBtn?submitBtn.click():form.submit()}}))})}),document.addEventListener("shopify:section:load",function(){adpPopup.init()}),document.addEventListener("shopify:section:unload",function(){$("body").removeClass("popup-scroll-hidden")})}); 2//# sourceMappingURL=/cdn/shop/t/95/assets/popup.js.map?v=92114765582765259701784100243
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.