PageSourceSearch

https://cinest.com/cdn/shop/t/21/assets/popup-age-verification.script-global-Bulm9jwK.js

js cinest.com collected 2026-10-06 18:27:46 UTC 2,487 bytes, 1 lines download raw bytes

1var m=Object.defineProperty;var v=(o,e,t)=>e in o?m(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var c=(o,e,t)=>v(o,typeof e!="symbol"?e+"":e,t);import{X as f,d as b,s as p,c as w}from"./index-B2p9xdVi.js";var g=Object.defineProperty,_=Object.getOwnPropertyDescriptor,S=(o,e,t)=>e in o?g(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,y=(o,e,t,n)=>{for(var i=n>1?void 0:n?_(e,t):e,s=o.length-1,r;s>=0;s--)(r=o[s])&&(i=r(i)||i);return i},l=(o,e,t)=>S(o,typeof e!="symbol"?e+"":e,t);let a=class extends f{constructor(){super(...arguments);c(this,"state",{isActive:!1});c(this,"scrollPercent",()=>{const{isActive:e}=this.state,{xoScroll:t}=this.props,n=this==null?void 0:this.querySelector("xo-modal"),i=n==null?void 0:n.getAttribute("xo-name"),s=window.scrollY,r=document.body.offsetHeight,u=window.innerHeight,d=s/(r-u),h=Math.round(d*100);if(!e)if(t==="none")this.openPopup(i,0);else{const x=Number(t??0);h>=x&&this.openPopup(i,0)}});c(this,"handleSubmit",()=>{p.setItem("is_xo_age_verrification","true");const e=this==null?void 0:this.querySelector("xo-modal"),t=e==null?void 0:e.getAttribute("xo-name");window.xoModal.close(t)});c(this,"popup",()=>{const{xoShow:e,xoWhen:t,xoDelay:n}=this.props,i=this==null?void 0:this.querySelector("xo-modal"),s=i==null?void 0:i.querySelector(".xo-popup-age-verification__button-submit"),r=i==null?void 0:i.getAttribute("xo-name");!e||!r||(t==="immediately"?this.openPopup(r,n??0):(this.scrollPercent(),window.addEventListener("scroll",this.scrollPercent)),s==null||s.addEventListener("click",this.handleSubmit))})}mount(){this.setState({isActive:!1}),this.popup=this.popup.bind(this),this.handleSubmit=this.handleSubmit.bind(this),this.init()}unmount(){this.destroy()}async openPopup(e,t){await b(t),window.xoModal.open(e),this.setState({isActive:!0})}init(){p.getItem("is_xo_age_verrification")||window.addEventListener("load",this.popup)}destroy(){const e=this==null?void 0:this.querySelector("xo-modal"),t=e==null?void 0:e.querySelector(".xo-popup-age-verification__button-submit");window.removeEventListener("load",this.popup),t==null||t.removeEventListener("click",this.handleSubmit)}};l(a,"propTypes",{xoObserved:"string",xoShow:"boolean",xoWhen:"string",xoDelay:"number",xoScroll:"string"});l(a,"defaultProps",{xoObserved:"observed",xoShow:!0,xoWhen:"immediately",xoDelay:0,xoScroll:"none"});l(a,"observedProps",["xoObserved"]);a=y([w("xo-popup-age-verification")],a);export{a as XoPopupAgeVerification};

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.