PageSourceSearch

https://rolandstoretokyo.com/cdn/shop/t/3/assets/popup-product-quickview.script-global-Dqt0yb4l.js

js rolandstoretokyo.com collected 2026-10-04 19:47:13 UTC 2,336 bytes, 1 lines download raw bytes

1var a=Object.defineProperty;var w=(s,i,t)=>i in s?a(s,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[i]=t;var c=(s,i,t)=>w(s,typeof i!="symbol"?i+"":i,t);import{s as l}from"./index-DoREuB43.js";import{d as f}from"./index-up99TGJ_.js";class m extends HTMLElement{constructor(){super(...arguments);c(this,"show");c(this,"initial");c(this,"scrollPercent",()=>{const t=this==null?void 0:this.querySelector("xo-modal"),e=t==null?void 0:t.getAttribute("xo-name"),o=this==null?void 0:this.getAttribute("xo-scroll"),r=window.scrollY,n=document.body.offsetHeight,u=window.innerHeight,h=r/(n-u),p=Math.round(h*100);if(!this.show)if(o==="none")this.openPopup(e,0);else{const d=Number((this==null?void 0:this.getAttribute("xo-scroll"))??0);p>=d&&this.openPopup(e,0)}});c(this,"popup",()=>{const t=this==null?void 0:this.querySelector("xo-modal"),e=t==null?void 0:t.getAttribute("xo-name"),o=this==null?void 0:this.getAttribute("xo-show"),r=this==null?void 0:this.getAttribute("xo-when"),n=Number((this==null?void 0:this.getAttribute("xo-delay"))??0);o==="false"||!e||(r==="immediately"?this.openPopup(e,n):(this.scrollPercent(),window.addEventListener("scroll",this.scrollPercent)))})}static get observedAttributes(){return["xo-observed"]}connectedCallback(){this.show=!1,this.initial=!1,this.popup=this.popup.bind(this),this.scrollPercent=this.scrollPercent.bind(this),this.init(),this.initial=!0}disconnectedCallback(){this.destroy()}attributeChangedCallback(t,e,o){e!==o&&t==="xo-observed"&&this.initial&&(this.destroy(),this.init())}async openPopup(t,e){await f(e),window.xoModal.open(t);const o=Math.floor(Date.now()/1e3)+"";l.setItem("xo-popup-product-quickview",o),this.show=!0}shouldShowPopup(t){const e={once:1/0,every_hour:3600,every_12_hour:43200,every_day:86400,every_3_day:259200,every_week:604800,every_2_weeks:1209600,no_limit:0},o=l.getItem("xo-popup-product-quickview"),r=Math.floor(Date.now()/1e3),n=e[t];return n===0||!o?!0:r-parseInt(o)>=n}init(){const t=this.getAttribute("xo-frequency");this.shouldShowPopup(t)&&window.addEventListener("load",this.popup)}destroy(){window.removeEventListener("load",this.popup),window.removeEventListener("scroll",this.scrollPercent)}}!window.customElements.get("xo-popup-product-quickview")&&!window.Shopify.designMode&&window.customElements.define("xo-popup-product-quickview",m);

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.