PageSourceSearch

https://www.casino.us/_nuxt/hAYur2Bi.js

js casino.us collected 2026-10-03 23:35:32 UTC 7,208 bytes, 12 lines download raw bytes

1var l=Object.defineProperty,d=(t,e,i)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,r=(t,e,i)=>d(t,typeof e!="symbol"?e+"":e,i);function c(t){return typeof t!="string"?!1:/^\d{1,4}px$/.test(t)}function u(t){return typeof t!="string"?!1:/^-?\d+$/.test(t)}function h(t){return typeof t!="string"?!1:/^\d{1,3}%$/.test(t)}function f(t){return c(t)||h(t)}class m{constructor(e){r(this,"element",document.createElement("iframe")),r(this,"configuration",{iframeWidth:"927px",iframeHeight:"791px",borderRadius:"5px",modalSize:null,overlayZIndex:"9999",overlayBackground:"rgba(0, 0, 0, 0.5)"}),r(this,"modalSizeValues",["sm","md","lg","xl"]),e&&this.validate(e)&&(this.configuration=Object.assign({},this.configuration,e),e.modalSize&&this.setIframeWidthHeight(e.modalSize),e.iframeWidth&&(this.configuration.iframeWidth=e.iframeWidth),e.iframeHeight&&(this.configuration.iframeHeight=e.iframeHeight)),this.buildIframe()}setIframeWidthHeight(e){switch(e){case"sm":this.configuration.iframeWidth="927px",this.configuration.iframeHeight="791px";break;case"md":this.configuration.iframeWidth="1056px",this.configuration.iframeHeight="877px";break;case"lg":this.configuration.iframeWidth="1234px",this.configuration.iframeHeight="997px";break;default:this.configuration.iframeWidth="calc(100% - 100px)",this.configuration.iframeHeight="calc(100% - 100px)";break}}resizeIframe(e){window.matchMedia("(min-width: 573px)").matches?(e.style.width=`${this.configuration.iframeWidth}`,e.style.maxWidth="100%",e.style.height=`${this.configuration.iframeHeight}`,e.style.maxHeight="100%",e.style.borderRadius=`${this.configuration.borderRadius}`,e.style.alignSelf="unset"):(e.style.width=`${window.innerWidth}px`,e.style.height=`${window.innerHeight}px`,e.style.alignSelf="flex-start",this.element.style.borderRadius="unset")}setLink(e){const i=new URL(e);i.searchParams.set("random",Date.now().toString()),this.element&&(this.element.src=i.href)}buildIframe(){this.element.style.cssText=`
2            width: ${this.configuration.iframeWidth}; 
3            height: ${this.configuration.iframeHeight}; 
4            max-width: 100%;
5            max-height: 100%;
6            z-index: 1; 
7            border: none;
8            border-radius: ${this.configuration.borderRadius}; 
9            transition: 0.3s opacity ease-in;
10            opacity: 0;
11            display: none;`,this.element.setAttribute("webkitAllowFullScreen","true"),this.element.setAttribute("mozAllowFullScreen","true"),this.element.setAttribute("allow","fullscreen"),this.element.setAttribute("referrerpolicy","origin"),this.element.setAttribute("sandbox","allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox"),this.element.setAttribute("allowTransparency","true")}validate(e){return Object.keys(e).forEach(i=>{switch(i){case"iframeWidth":case"iframeHeight":case"borderRadius":if(!f(e[i]))throw new Error(`ModalHandler configuration: ${i} must be a valid px or percentage string value, eg. "350px" or "100%"`);break;case"modalSize":if(!this.modalSizeValues.includes(e[i]))throw new Error(`ModalHandler configuration: modalSize value can only be ${this.modalSizeValues}`);break;case"overlayZIndex":if(!u(e[i]))throw new Error("ModalHandler configuration: overlayZIndex must be a z-index value");break;case"overlayBackground":if(typeof e[i]!="string")throw new Error("ModalHandler configuration: overlayBackground must be a string");break;case"features":if(typeof e[i]!="object")throw new Error("ModalHandler configuration: features must be an object");break;case"translations":if(typeof e[i]!="object")throw new Error("ModalHandler configuration: translations must be an object");break;case"commercialBanner":if(typeof e[i]!="object")throw new Error("ModalHandler configuration: commercialBanner must be an object");break;case"cssVars":if(typeof e[i]!="object")throw new Error("ModalHandler configuration: cssVars must be an object");break;default:const a=i;throw new Error(`ModalHandler configuration: "${a}" is not a recognized configuration parameter`)}}),!0}}var n=(t=>(t.GAME_EVENT="GameEvent",t.PLAY_TIME="GameEvent",t.CLICKOUT="Clickout",t.REPOSITION_UI="RepositionUI",t.GAME_CHANGED="GameChanged",t.LAYOUT_MOUNTED="LayoutMounted",t.CLOSE_MODAL="CloseModal",t.LOCALISATION_CHANGED="LocalisationChanged",t))(n||{});class g{constructor(e){if(r(this,"legacyShowModal",null),r(this,"useLegacyModal",!1),r(this,"closeHandler",()=>{}),r(this,"builtInCloseHandler",()=>{}),r(this,"frameList",[]),r(this,"iframe"),r(this,"showModal",a=>{if(this.removeOldIframes(),document.body.style.overflow="hidden",this.useLegacyModal&&this.legacyShowModal){this.legacyShowModal();return}const o=this.buildOverlay();this.iframe.setLink(a),o.appendChild(this.iframe.element),this.builtInCloseHandler=()=>{document.body.style.overflow="unset",o.remove()},document.body.appendChild(o)}),r(this,"setLegacyModalCallback",a=>{if(typeof a!="function")throw new Error("Modal handler: Callback must be a function");this.legacyShowModal=a}),r(this,"buildOverlay",()=>{const a=document.createElement("div");return a.classList.add("gf-modal-overlay"),a.style.cssText=`width: 100vw; height: 100vh; position: fixed; top: 0; left: 0;
11 background: ${this.iframe.configuration.overlayBackground}; display: flex; justify-content: center; align-items: center; z-index: ${this.iframe.configuration.overlayZIndex};
12		`,a.addEventListener("click",o=>{o.target===a&&(this.builtInCloseHandler(),this.closeHandler())}),a}),!(typeof document<"u")){console.error("Modal handler: Cannot be used in a non-browser environment");return}const i=e!=null&&e.configuration?e.configuration:{};this.iframe=new m(i),this.init(e)}init(e){e!=null&&e.closeHandler&&(this.closeHandler=e.closeHandler),this.setupMessagePrompt()}setupMessagePrompt(){window.addEventListener("message",e=>{var i;if(e.data.eventType===n.LAYOUT_MOUNTED&&(this.iframe.element.style.display="block",this.iframe.element.style.opacity="1"),e.data.eventType===n.CLOSE_MODAL&&(this.builtInCloseHandler(),this.closeHandler()),e.data.eventType===n.CLICKOUT){if(!((i=e.data.data)!=null&&i.url))return;const a=document.createElement("a");this.setAllAttributes(a,e.data.data.url),a.style.display="none",document.body.appendChild(a),a.click(),setTimeout(()=>{a.remove()},500)}if(e.data.isLegacyArcadeFrame&&(this.useLegacyModal=!0),e.data.type==="modal-size"){if(this.iframe.configuration.modalSize)return!1;this.iframe.setIframeWidthHeight(e.data.payload);const a=[...document.querySelectorAll("iframe")].find(o=>o.contentWindow===e.source);a&&this.iframe.resizeIframe(a)}e.source&&e.data.type==="configPrompt"&&e.source.postMessage({type:"configPrompt",config:this.iframe.configuration},{targetOrigin:"*"})})}removeOldIframes(){[...document.querySelectorAll("gf-modal-overlay")].forEach(e=>e.remove()),this.frameList=this.frameList.filter(e=>e.isConnected)}setAllAttributes(e,i){var a;if(e.setAttribute("href",i),e.setAttribute("rel","nofollow noreferrer noopener"),e.setAttribute("target","_blank"),(a=this.iframe.configuration.commercialBanner)!=null&&a.attributes){const o=this.iframe.configuration.commercialBanner.attributes;Object.keys(o).forEach(s=>{e.setAttribute(s,o[s])})}}}export{g as w};

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.