PageSourceSearch

https://ick-bin-berliner.de/cdn/shop/t/24/assets/popup.js?v=68965912896462901331789395309

js ick-bin-berliner.de collected 2026-10-06 21:10:42 UTC 6,925 bytes, 2 lines download raw bytes

1window.Eurus.loadedScript.has("popup.js")||(window.Eurus.loadedScript.add("popup.js"),requestAnimationFrame(()=>{document.addEventListener("alpine:init",()=>{Alpine.data("xPopups",data=>({enable:!1,showMinimal:!1,show:Shopify.designMode?localStorage.getItem(data.name+"-"+data.sectionId)?xParseJSON(localStorage.getItem(data.name+"-"+data.sectionId)):!0:!1,delayDays:data.delayDays?data.delayDays:0,t:"",copySuccess:!1,init(){if(Shopify.designMode){var _this=this;const handlePopupSelect=(event,isResize=null)=>{event.detail&&event.detail.sectionId.includes(data.sectionId)||isResize?window.Alpine?(_this.open(),localStorage.setItem(data.name+"-"+data.sectionId,JSON.stringify(!0))):document.addEventListener("alpine:initialized",()=>{_this.open(),localStorage.setItem(data.name+"-"+data.sectionId,JSON.stringify(!0))}):window.Alpine?(_this.closeSection(),localStorage.setItem(data.name+"-"+data.sectionId,JSON.stringify(!1))):document.addEventListener("alpine:initialized",()=>{_this.closeSection(),localStorage.setItem(data.name+"-"+data.sectionId,JSON.stringify(!1))})};document.addEventListener("shopify:section:select",event=>{handlePopupSelect(event)}),document.addEventListener("shopify:block:select",event=>{handlePopupSelect(event)}),data.name!="popup-age-verification"&&window.addEventListener("resize",event=>{handlePopupSelect(event,xParseJSON(localStorage.getItem(data.name+"-"+data.sectionId)))})}if(localStorage.setItem("promotion-popup","[]"),this.$el.querySelector(".newsletter-message")){this.open();return}this.$watch("show",value=>{value?data.name=="popup-age-verification"&&requestAnimationFrame(()=>{Alpine.store("xFocusElement").trapFocus("x-age-dialog-"+data.sectionId,"x-age-dialog-"+data.sectionId)}):this.close()})},load(sectionId){if(window.location.pathname==="/challenge")return;const _this=this;if(Shopify.designMode)_this.open();else{if(data.name=="popup-promotion"&&!this.handleSchedule()&&data.showCountdown)return;if(data.name=="popup-promotion"&&document.querySelector(`#x-age-popup-${sectionId}`)&&xParseJSON(localStorage.getItem("popup-age-verification"))==null){document.addEventListener("close-age-verification",()=>{this.triggerIntent(),data.trigger_intent=="delay"&&setTimeout(()=>{_this.open()},data.delays*1e3)});return}this.triggerIntent()}},open(){if(!(!Shopify.designMode&&this.isExpireSave()&&!this.show)){var _this=this;if(data.name=="popup-age-verification"){if(this.isExpireSave()&&!Shopify.designMode&&!data.show_popup)return;requestAnimationFrame(()=>{document.body.classList.add("overflow-hidden"),Alpine.store("xPopup").open=!0})}data.showMinimal&&data.default_style=="minimal"&&window.xViewport.innerWidth>=768||data.showMinimalMobile&&data.default_style_mobile=="minimal"&&window.xViewport.innerWidth<768?(_this.showMinimal=!0,_this.show=!1,Shopify.designMode&&(localStorage.setItem(data.name+"-"+data.sectionId,JSON.stringify(!1)),_this.removeOverlay())):data.showOnMobile&&window.xViewport.innerWidth<768||window.xViewport.innerWidth>=768?localStorage.getItem("current-"+data.sectionId)=="minimal"?(_this.showMinimal=!0,_this.show=!1,_this.removeOverlay()):(_this.show=!0,_this.showMinimal=!1,_this.setOverlay(),Shopify.designMode||_this.saveDisplayedPopup()):_this.removeOverlay()}},close(){if(data.name=="popup-age-verification"){this.show=!1,Alpine.store("xFocusElement").removeTrapFocus(),requestAnimationFrame(()=>{document.body.classList.remove("overflow-hidden"),Alpine.store("xPopup").close()}),document.dispatchEvent(new Event("close-age-verification")),this.isExpireSave()||this.setExpire(),this.removeDisplayedPopup();return}var _this=this;Shopify.designMode?requestAnimationFrame(()=>{setTimeout(()=>{_this.showMinimal=!0},300)}):(this.removeDisplayedPopup(),data.showMinimal&&window.xViewport.innerWidth>=768||data.showMinimalMobile&&window.xViewport.innerWidth<768?requestAnimationFrame(()=>{setTimeout(()=>{_this.showMinimal=!0},300),localStorage.setItem("current-"+data.sectionId,"minimal")}):this.isExpireSave()||this.setExpire()),requestAnimationFrame(()=>{setTimeout(()=>{_this.show=!1,_this.removeOverlay()},300)})},triggerIntent(){var _this=this;switch(data.trigger_intent){case"exit":document.addEventListener("mouseleave",event=>
1{(event.clientY<=0||event.clientX<=0||event.clientY>=window.xViewport.innerHeight||event.clientX>=window.xViewport.innerWidth)&&_this.open()});break;case"copy_to_clipboard":document.addEventListener("copy",()=>{_this.open()});break;case"scroll":window.addEventListener("scroll",()=>{const scrollPosition=window.scrollY+window.xViewport.innerHeight,documentHeight=document.documentElement.scrollHeight;scrollPosition>=documentHeight*data.scroll_height&&_this.open()});break;default:setTimeout(()=>{_this.open()},data.delays*1e3)}},closeSection(){this.show=!1,this.showMinimal=!1,this.removeOverlay()},setExpire(){const item={section:data.sectionId,expires:Date.now()+this.delayDays*24*60*60*1e3};localStorage.setItem(data.sectionId,JSON.stringify(item)),localStorage.removeItem("current-"+data.sectionId),setTimeout(()=>{this.saveDisplayedPopup(),this.show=!0},item.expires-Date.now())},isExpireSave(){const item=xParseJSON(localStorage.getItem(data.sectionId));return item==null?!1:Date.now()>item.expires?(localStorage.removeItem(data.sectionId),!1):!0},handleSchedule(){if(data.showCountdown){let el=document.getElementById("x-promotion-"+data.sectionId),settings=xParseJSON(el.getAttribute("x-countdown-data"));if(!Alpine.store("xHelper").canShow(settings)&&!Shopify.designMode&&data.schedule_enabled)return requestAnimationFrame(()=>{this.show=!1}),!1}return this.enable=!0,!0},clickMinimal(){requestAnimationFrame(()=>{this.show=!0,this.showMinimal=!1,Shopify.designMode||this.saveDisplayedPopup(),this.setOverlay()})},setOverlay(){let popupsDiv=document.getElementById("eurus-popup");popupsDiv.classList.contains("bg-[#acacac]")||data.overlay&&(popupsDiv.className+=" bg-[#acacac] bg-opacity-30")},removeOverlay(){let popupsDiv=document.getElementById("eurus-popup");displayedPopups=xParseJSON(localStorage.getItem("promotion-popup"))||[],popupsDiv.classList.contains("bg-[#acacac]")&&displayedPopups.length==0&&popupsDiv.classList.remove("bg-[#acacac]","bg-opacity-30")},closeMinimal(){this.showMinimal=!1,!Shopify.designMode&&(this.isExpireSave()||this.setExpire())},saveDisplayedPopup(){let localStorageArray=xParseJSON(localStorage.getItem("promotion-popup"))||[];localStorageArray.some(item=>item==data.name+"-"+data.sectionId)||(localStorageArray.push(data.name+"-"+data.sectionId),localStorage.setItem("promotion-popup",JSON.stringify(localStorageArray)))},removeDisplayedPopup(){let localStorageArray=xParseJSON(localStorage.getItem("promotion-popup")),updatedArray=localStorageArray.filter(item=>item!=data.name+"-"+data.sectionId);localStorage.setItem("promotion-popup",JSON.stringify(updatedArray))}}))})}));
2//# sourceMappingURL=/cdn/shop/t/24/assets/popup.js.map?v=68965912896462901331789395309

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.