@everymatrix/casino-challenges-modal 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-challenges-modal/app-globals-0f993ce5.js +1 -0
- package/dist/casino-challenges-modal/casino-challenges-modal-2fc23147.js +1 -0
- package/dist/casino-challenges-modal/casino-challenges-modal.entry.js +1 -0
- package/dist/casino-challenges-modal/casino-challenges-modal.esm.js +1 -0
- package/dist/casino-challenges-modal/index-27d1076a.js +2 -0
- package/dist/casino-challenges-modal/index.esm.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-challenges-modal-9e634999.js +182 -0
- package/dist/cjs/casino-challenges-modal.cjs.entry.js +10 -0
- package/dist/cjs/casino-challenges-modal.cjs.js +25 -0
- package/dist/cjs/index-0e4accfe.js +1213 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/collection/assets/x-close.svg +3 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/casino-challenges-modal/casino-challenges-modal.css +121 -0
- package/dist/collection/components/casino-challenges-modal/casino-challenges-modal.js +217 -0
- package/dist/collection/components/casino-challenges-modal/index.js +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-challenges-modal-2fc23147.js +180 -0
- package/dist/esm/casino-challenges-modal.entry.js +2 -0
- package/dist/esm/casino-challenges-modal.js +20 -0
- package/dist/esm/index-27d1076a.js +1186 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.dev.js +19 -0
- package/dist/stencil.config.js +19 -0
- package/dist/storybook/main.js +43 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-modal/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-modal/.stencil/packages/stencil/casino-challenges-modal/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-modal/.stencil/packages/stencil/casino-challenges-modal/stencil.config.dev.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-modal/.stencil/packages/stencil/casino-challenges-modal/storybook/main.d.ts +3 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-modal/.stencil/packages/stencil/casino-challenges-modal/storybook/preview.d.ts +70 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-modal/.stencil/tools/plugins/index.d.ts +4 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-modal/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-modal/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-modal/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-modal/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/casino-challenges-modal/casino-challenges-modal.d.ts +20 -0
- package/dist/types/components/casino-challenges-modal/index.d.ts +1 -0
- package/dist/types/components.d.ts +67 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +27 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=()=>{};export{o as g}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,c as e,h as t}from"./index-27d1076a.js";const i="__WIDGET_GLOBAL_STYLE_CACHE__";function o(n,e){if(n){const t=document.createElement("style");t.innerHTML=e,n.appendChild(t)}}function a(n,e){if(!n||!e)return;const t=new URL(e);fetch(t.href).then((n=>n.text())).then((e=>{const t=document.createElement("style");t.innerHTML=e,n&&n.appendChild(t)})).catch((n=>{console.error("There was an error while trying to load client styling from URL",n)}))}function r(n,e,t,o=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!o)return t=function(n,e){const t=document.createElement("style");return window.emMessageBus.subscribe(e,(e=>{n&&(t.innerHTML=e,n.appendChild(t))}))}(n,e),t;window[i]||(window[i]={}),t=function(n,e){return window.emMessageBus.subscribe(e,(t=>{if(!n)return;const o=n.getRootNode(),a=window[i];let r=a[e]&&a[e].sheet;r?a[e].refCount=a[e].refCount+1:(r=new CSSStyleSheet,r.replaceSync(t),a[e]={sheet:r,refCount:1});const d=o.adoptedStyleSheets||[];d.includes(r)||(o.adoptedStyleSheets=[...d,r])}))}(n,e);const a=t.unsubscribe.bind(t);return t.unsubscribe=()=>{if(window[i][e]){const n=window[i][e];n.refCount>1?n.refCount=n.refCount-1:delete window[i][e]}a()},t}const d=class{constructor(t){n(this,t),this.close=e(this,"close",7),this.onClose=()=>{this.close.emit()},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.isOpen=!1,this.showWinAnimation=!1,this.showBackdrop=!1,this.showCloseButton=!1}handleClientStylingChange(n,e){n!=e&&o(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(n,e){n!=e&&a(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(n,e){n!=e&&r(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&r(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&o(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&a(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return t("div",{key:"760f548283506b890c94b5a31b2f482977dad63b",ref:n=>this.stylingContainer=n,class:`ModalOverlay ${this.isOpen&&"Open"}`},this.showBackdrop&&t("div",{key:"fcdf3d8cde0e0e7a55c63775f3b273537b52bea7",class:"Backdrop",onClick:this.onClose}),this.showWinAnimation&&t("div",{key:"83e715fb8d3c5f4f7b5e5966fe9d4514c546e663",class:"ModalWinAnimation"}),t("div",{key:"e309cf1d60a5f23c98fd10219a390f6b6fe3ccee",class:"ModalContent GradientBorder Container",part:"modal-content"},t("div",{key:"9512aae0d774d647862060fdc10b20ad73287b75",class:"InnerContainer",part:"inner-container"},t("div",{key:"6ae4466f071b01b4910c6e4d5cb07200f07a3aee",class:"ModalHeader"},this.showCloseButton&&t("div",{key:"e3f498699a76d5d336266327569b21670b07a097",class:"close-modal",part:"close-button",onClick:this.onClose},t("img",{key:"ce3ceb9083ef59952daa01872b50acff28101e55",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHZpZXdCb3g9IjAgMCAyMiAyMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00Ljg1MTQ5IDQuODUxOThDNS4yMDk0NyA0LjQ5NCA1Ljc4OTg4IDQuNDk0IDYuMTQ3ODYgNC44NTE5OEwxMC45OTk3IDkuNzAzOEwxNS44NTE1IDQuODUxOThDMTYuMjA5NSA0LjQ5NCAxNi43ODk5IDQuNDk0IDE3LjE0NzkgNC44NTE5OEMxNy41MDU4IDUuMjA5OTYgMTcuNTA1OCA1Ljc5MDM2IDE3LjE0NzkgNi4xNDgzNEwxMi4yOTYgMTEuMDAwMkwxNy4xNDc5IDE1Ljg1MkMxNy41MDU4IDE2LjIxIDE3LjUwNTggMTYuNzkwNCAxNy4xNDc5IDE3LjE0ODNDMTYuNzg5OSAxNy41MDYzIDE2LjIwOTUgMTcuNTA2MyAxNS44NTE1IDE3LjE0ODNMMTAuOTk5NyAxMi4yOTY1TDYuMTQ3ODYgMTcuMTQ4M0M1Ljc4OTg4IDE3LjUwNjMgNS4yMDk0NyAxNy41MDYzIDQuODUxNDkgMTcuMTQ4M0M0LjQ5MzUxIDE2Ljc5MDQgNC40OTM1MSAxNi4yMSA0Ljg1MTQ5IDE1Ljg1Mkw5LjcwMzMxIDExLjAwMDJMNC44NTE0OSA2LjE0ODM0QzQuNDkzNTEgNS43OTAzNiA0LjQ5MzUxIDUuMjA5OTYgNC44NTE0OSA0Ljg1MTk4WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="})),t("slot",{key:"68324278177e10ef244a850196cae86c86bbab14",name:"header"})),t("div",{key:"5c341711027e532542dc04f14e46c5cb95aa0d20",class:"ModalBody"},t("slot",{key:"27f5279c49a3d936e49a29655b07d28e72f526f4",name:"body"})),t("div",{key:"81fd4db2428a5a48286c4ffbaab56fdf566da612",class:"ModalFooter"},t("slot",{key:"cb2ab035f8b044937221c011ba13243e297ee346",name:"footer"})))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};d.style=':host {\n display: block;\n font-family: inherit;\n}\n\n* {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n}\n\nbutton {\n border: none;\n background: none;\n cursor: pointer;\n touch-action: manipulation;\n}\nbutton:focus {\n outline: none;\n}\n\n.Backdrop {\n position: absolute;\n background-color: rgba(0, 0, 0, 0.6);\n opacity: 0.6;\n width: 100%;\n height: 100%;\n z-index: 301;\n}\n\n.ModalOverlay {\n display: none;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0);\n justify-content: center;\n align-items: center;\n z-index: 300;\n}\n\n.ModalOverlay.Open {\n display: flex;\n}\n\n.ModalContent {\n display: flex;\n flex-direction: column;\n align-items: center;\n position: relative;\n z-index: 302;\n background: linear-gradient(90deg, var(--emw--color-background, #003E5C) 0.05%, var(--emw--color-background-secondary, #113B21) 87.69%);\n padding: 26px;\n border-radius: 26px;\n border: 2px solid var(--emw--color-primary-variant, #1E654F);\n width: 450px;\n max-width: 90%;\n text-align: center;\n max-height: 90dvh;\n min-height: 100px;\n font-family: "Roboto", sans-serif;\n transition: all 0.3s;\n}\n\n.InnerContainer {\n border-radius: 20px;\n background: #F9F8F8;\n padding: 25px;\n width: 100%;\n}\n\n.ModalHeader {\n color: var(--emw--color-typography, #212529);\n text-align: center;\n font-family: var(--emw--button-typography, "PF BeauSans Pro", sans-serif);\n font-size: 16px;\n font-style: normal;\n font-weight: 700;\n line-height: normal;\n text-transform: uppercase;\n letter-spacing: 1px;\n}\n\n.ModalAction {\n border-radius: var(--emw--button-border-radius, 99px);\n border: 2px solid var(--emw--button-border-color, #083B17);\n background: linear-gradient(90deg, var(--emw--color-primary, #24AA4D) 0%, var(--emw--color-background-secondary, #113F21) 100%);\n padding: 9px 20px;\n margin-top: 10px;\n text-transform: uppercase;\n color: var(--emw--button-text-color, #FFF);\n text-align: center;\n font-family: var(--emw--button-typography, "PF BeauSans Pro", sans-serif);\n font-size: 12px;\n font-style: normal;\n font-weight: 700;\n letter-spacing: 1px;\n line-height: 1;\n}\n\n.close-modal {\n position: absolute;\n width: 32px;\n height: 32px;\n background: rgba(219, 255, 243, 0.2);\n border-radius: 16px;\n right: 20px;\n top: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n}\n\n@Container casino-challenges-modal (min-width: 576px) {\n .close-modal {\n top: 50px;\n }\n}';export{d as C}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{C as casino_challenges_modal}from"./casino-challenges-modal-2fc23147.js";import"./index-27d1076a.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as n,b as e}from"./index-27d1076a.js";export{s as setNonce}from"./index-27d1076a.js";import{g as l}from"./app-globals-0f993ce5.js";(()=>{const e=import.meta.url,l={};return""!==e&&(l.resourcesUrl=new URL(".",e).href),n(l)})().then((async n=>(await l(),e([["casino-challenges-modal",[[1,"casino-challenges-modal",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],isOpen:[516,"is-open"],showWinAnimation:[516,"show-win-animation"],showBackdrop:[516,"show-backdrop"],showCloseButton:[516,"show-close-button"]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}]]]],n))));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,p=[],y=[],$=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&f.l?v(w):f.raf(w))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{b(p),b(y),(m=p.length>0)&&f.raf(w)},v=e=>h().then(e),g=$(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>R});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},R=e=>{if(e.isErr)return e.value;throw e.value},T=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?A(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,i.length>0&&(u.h=i),u.m=o,u},A=(e,t)=>({l:0,p:e,i:t,$:null,h:null,u:null,m:null}),L={},N=(e,t,l)=>{const o=(e=>n(e).$hostElement$)(e);return{emit:e=>U(o,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},U=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},D=new WeakMap,F=e=>"sc-"+e.v,H=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=q(n),s=q(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(G);t=t.replace(V,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},W=/\s/,q=e=>e?e.split(W):[],G="Capture",V=RegExp(G+"$"),_=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of z(Object.keys(o)))e in s||H(l,e,o[e],void 0,n,t.l);for(const e of z(Object.keys(s)))H(l,e,o[e],s[e],n,t.l)};function z(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var B=!1,I=!1,J=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else if(o=l.$=a.createElement(l.p),_(null,l,I),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=J(e,l,r),s&&o.appendChild(s);return o["s-hn"]=x,o},K=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=J(null,n,o),r&&(l[o].$=r,ee(i,r,t)))},Q=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;Z(t),e&&e.remove()}}},X=(e,t,n=!1)=>e.p===t.p&&(!!n||e.m===t.m),Y=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(("slot"!==t.p||B)&&_(e,t,I),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],m=l.length-1,p=l[0],y=l[m];for(;i<=f&&c<=m;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==p)p=l[++c];else if(null==y)y=l[--m];else if(X(h,p,o))Y(h,p,o),h=t[++i],p=l[++c];else if(X(d,y,o))Y(d,y,o),d=t[--f],y=l[--m];else if(X(h,y,o))Y(h,y,o),ee(e,h.$,d.$.nextSibling),h=t[++i],y=l[--m];else if(X(d,p,o))Y(d,p,o),ee(e,d.$,h.$),d=t[--f],p=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].m&&t[a].m===p.m){u=a;break}u>=0?(r=t[u],r.p!==p.p?s=J(t&&t[c],n,u):(Y(r,p,o),t[u]=void 0,s=r.$),p=l[++c]):(s=J(t&&t[c],n,c),p=l[++c]),s&&ee(h.$.parentNode,s,h.$)}i>f?K(e,null==l[m+1]?null:l[m+1].$,n,l,c,m):c>m&&Q(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),K(l,null,t,s,0,s.length-1)):null!==o&&Q(o,0,o.length-1)):e.i!==r&&(l.data=r)},Z=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Z)},ee=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),te=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},ne=(e,t)=>{if(e.l|=16,!(4&e.l))return te(e,e.j),g((()=>le(e,t)));e.l|=512},le=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return oe(void 0,(()=>re(e,n,t)))},oe=(e,t)=>se(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),se=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,re=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=F(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=D.get(e=e.head||e);if(r||D.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.O)?n:k(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ie(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ce(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ie=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.C||A(null,null),r=(e=>e&&e.p===L)(t)?t:T(null,null,t);if(x=l.tagName,o.M&&(r.u=r.u||{},o.M.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.p=null,r.l|=4,e.C=r,r.$=s.$=l.shadowRoot||l,M=l["s-sc"],B=!!(1&o.l),Y(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},ce=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l||(e.l|=64,fe(t),ae(n,"componentDidLoad"),e.P(t),l||ue()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>ne(e,!1))),e.l&=-517},ue=()=>{fe(a.documentElement),v((()=>U(u,"appload",{detail:{namespace:"casino-challenges-modal"}})))},ae=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},fe=e=>e.classList.add("hydrated"),he=(e,t,l)=>{var o,r;const i=e.prototype;if(t.R||t.T||e.watchers){e.watchers&&!t.T&&(t.T=e.watchers);const c=Object.entries(null!=(o=t.R)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).A.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.A.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.R[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.A.set(t,l),a)){if(o.T&&128&u){const e=o.T[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&ne(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.T)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.T)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.M)||o.push([e,s])),s}))]))}}return e},de=e=>{ae(e,"disconnectedCallback")},me=(e,l={})=>{var o;const h=[],m=l.exclude||[],p=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),b=a.createElement("style"),w=[];let v,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],v:l[1],R:l[2],L:l[3]};4&c.l&&(S=!0),c.R=l[2],c.M=[],c.T=null!=(o=l[4])?o:{};const u=c.v,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,A:new Map};l.N=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),g?w.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.N)&&t.N.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){te(t,t.j=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.U){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.U;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.D}" was not found`);l.isProxied||(n.T=l.watchers,he(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=F(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>ne(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);(null==e?void 0:e.t)?de(e.t):(null==e?void 0:e.N)&&e.N.then((()=>de(e.t)))}})()))}componentOnReady(){return n(this).N}};c.U=e[0],m.includes(u)||p.get(u)||(h.push(u),p.define(u,he(a,c,1)))}))})),h.length>0&&(S&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(o=f.O)?o:k(a);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,$?$.nextSibling:y.firstChild)}g=!1,w.length?w.map((e=>e.connectedCallback())):f.jmp((()=>v=setTimeout(ue,30)))},pe=e=>f.O=e;export{me as b,N as c,T as h,h as p,l as r,pe as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{C as CasinoChallengesModal}from"./casino-challenges-modal-2fc23147.js";import"./index-27d1076a.js";
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-0e4accfe.js');
|
|
4
|
+
|
|
5
|
+
const StyleCacheKey = '__WIDGET_GLOBAL_STYLE_CACHE__';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @name setClientStyling
|
|
9
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content received
|
|
10
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
11
|
+
* @param {string} clientStyling The style content
|
|
12
|
+
*/
|
|
13
|
+
function setClientStyling(stylingContainer, clientStyling) {
|
|
14
|
+
if (stylingContainer) {
|
|
15
|
+
const sheet = document.createElement('style');
|
|
16
|
+
sheet.innerHTML = clientStyling;
|
|
17
|
+
stylingContainer.appendChild(sheet);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @name setClientStylingURL
|
|
23
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content fetched from a given URL
|
|
24
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
25
|
+
* @param {string} clientStylingUrl The URL of the style content
|
|
26
|
+
*/
|
|
27
|
+
function setClientStylingURL(stylingContainer, clientStylingUrl) {
|
|
28
|
+
if (!stylingContainer || !clientStylingUrl) return;
|
|
29
|
+
|
|
30
|
+
const url = new URL(clientStylingUrl);
|
|
31
|
+
|
|
32
|
+
fetch(url.href)
|
|
33
|
+
.then((res) => res.text())
|
|
34
|
+
.then((data) => {
|
|
35
|
+
const cssFile = document.createElement('style');
|
|
36
|
+
cssFile.innerHTML = data;
|
|
37
|
+
if (stylingContainer) {
|
|
38
|
+
stylingContainer.appendChild(cssFile);
|
|
39
|
+
}
|
|
40
|
+
})
|
|
41
|
+
.catch((err) => {
|
|
42
|
+
console.error('There was an error while trying to load client styling from URL', err);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @name setStreamLibrary
|
|
48
|
+
* @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
|
|
49
|
+
* @param {HTMLElement} stylingContainer The highest element of the widget
|
|
50
|
+
* @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
|
|
51
|
+
* @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
|
|
52
|
+
* @param {boolean} useAdoptedStyleSheets A flag to gradually enable testing of adoptedStyleSheets
|
|
53
|
+
*/
|
|
54
|
+
function setStreamStyling(stylingContainer, domain, subscription, useAdoptedStyleSheets = false) {
|
|
55
|
+
if (!window.emMessageBus) return;
|
|
56
|
+
|
|
57
|
+
const supportAdoptStyle = 'adoptedStyleSheets' in Document.prototype;
|
|
58
|
+
|
|
59
|
+
if (!supportAdoptStyle || !useAdoptedStyleSheets) {
|
|
60
|
+
subscription = getStyleTagSubscription(stylingContainer, domain);
|
|
61
|
+
|
|
62
|
+
return subscription;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (!window[StyleCacheKey]) {
|
|
66
|
+
window[StyleCacheKey] = {};
|
|
67
|
+
}
|
|
68
|
+
subscription = getAdoptStyleSubscription(stylingContainer, domain);
|
|
69
|
+
|
|
70
|
+
const originalUnsubscribe = subscription.unsubscribe.bind(subscription);
|
|
71
|
+
const wrappedUnsubscribe = () => {
|
|
72
|
+
if (window[StyleCacheKey][domain]) {
|
|
73
|
+
const cachedObject = window[StyleCacheKey][domain];
|
|
74
|
+
cachedObject.refCount > 1
|
|
75
|
+
? (cachedObject.refCount = cachedObject.refCount - 1)
|
|
76
|
+
: delete window[StyleCacheKey][domain];
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
originalUnsubscribe();
|
|
80
|
+
};
|
|
81
|
+
subscription.unsubscribe = wrappedUnsubscribe;
|
|
82
|
+
|
|
83
|
+
return subscription;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function getStyleTagSubscription(stylingContainer, domain) {
|
|
87
|
+
const sheet = document.createElement('style');
|
|
88
|
+
|
|
89
|
+
return window.emMessageBus.subscribe(domain, (data) => {
|
|
90
|
+
if (stylingContainer) {
|
|
91
|
+
sheet.innerHTML = data;
|
|
92
|
+
stylingContainer.appendChild(sheet);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function getAdoptStyleSubscription(stylingContainer, domain) {
|
|
98
|
+
return window.emMessageBus.subscribe(domain, (data) => {
|
|
99
|
+
if (!stylingContainer) return;
|
|
100
|
+
|
|
101
|
+
const shadowRoot = stylingContainer.getRootNode();
|
|
102
|
+
const cacheStyleObject = window[StyleCacheKey];
|
|
103
|
+
let cachedStyle = cacheStyleObject[domain] && cacheStyleObject[domain].sheet;
|
|
104
|
+
|
|
105
|
+
if (!cachedStyle) {
|
|
106
|
+
cachedStyle = new CSSStyleSheet();
|
|
107
|
+
cachedStyle.replaceSync(data);
|
|
108
|
+
cacheStyleObject[domain] = {
|
|
109
|
+
sheet: cachedStyle,
|
|
110
|
+
refCount: 1
|
|
111
|
+
};
|
|
112
|
+
} else {
|
|
113
|
+
cacheStyleObject[domain].refCount = cacheStyleObject[domain].refCount + 1;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
const currentSheets = shadowRoot.adoptedStyleSheets || [];
|
|
117
|
+
if (!currentSheets.includes(cachedStyle)) {
|
|
118
|
+
shadowRoot.adoptedStyleSheets = [...currentSheets, cachedStyle];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
const xCloseSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHZpZXdCb3g9IjAgMCAyMiAyMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00Ljg1MTQ5IDQuODUxOThDNS4yMDk0NyA0LjQ5NCA1Ljc4OTg4IDQuNDk0IDYuMTQ3ODYgNC44NTE5OEwxMC45OTk3IDkuNzAzOEwxNS44NTE1IDQuODUxOThDMTYuMjA5NSA0LjQ5NCAxNi43ODk5IDQuNDk0IDE3LjE0NzkgNC44NTE5OEMxNy41MDU4IDUuMjA5OTYgMTcuNTA1OCA1Ljc5MDM2IDE3LjE0NzkgNi4xNDgzNEwxMi4yOTYgMTEuMDAwMkwxNy4xNDc5IDE1Ljg1MkMxNy41MDU4IDE2LjIxIDE3LjUwNTggMTYuNzkwNCAxNy4xNDc5IDE3LjE0ODNDMTYuNzg5OSAxNy41MDYzIDE2LjIwOTUgMTcuNTA2MyAxNS44NTE1IDE3LjE0ODNMMTAuOTk5NyAxMi4yOTY1TDYuMTQ3ODYgMTcuMTQ4M0M1Ljc4OTg4IDE3LjUwNjMgNS4yMDk0NyAxNy41MDYzIDQuODUxNDkgMTcuMTQ4M0M0LjQ5MzUxIDE2Ljc5MDQgNC40OTM1MSAxNi4yMSA0Ljg1MTQ5IDE1Ljg1Mkw5LjcwMzMxIDExLjAwMDJMNC44NTE0OSA2LjE0ODM0QzQuNDkzNTEgNS43OTAzNiA0LjQ5MzUxIDUuMjA5OTYgNC44NTE0OSA0Ljg1MTk4WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==';
|
|
124
|
+
|
|
125
|
+
const casinoChallengesModalCss = ":host {\n display: block;\n font-family: inherit;\n}\n\n* {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n}\n\nbutton {\n border: none;\n background: none;\n cursor: pointer;\n touch-action: manipulation;\n}\nbutton:focus {\n outline: none;\n}\n\n.Backdrop {\n position: absolute;\n background-color: rgba(0, 0, 0, 0.6);\n opacity: 0.6;\n width: 100%;\n height: 100%;\n z-index: 301;\n}\n\n.ModalOverlay {\n display: none;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0);\n justify-content: center;\n align-items: center;\n z-index: 300;\n}\n\n.ModalOverlay.Open {\n display: flex;\n}\n\n.ModalContent {\n display: flex;\n flex-direction: column;\n align-items: center;\n position: relative;\n z-index: 302;\n background: linear-gradient(90deg, var(--emw--color-background, #003E5C) 0.05%, var(--emw--color-background-secondary, #113B21) 87.69%);\n padding: 26px;\n border-radius: 26px;\n border: 2px solid var(--emw--color-primary-variant, #1E654F);\n width: 450px;\n max-width: 90%;\n text-align: center;\n max-height: 90dvh;\n min-height: 100px;\n font-family: \"Roboto\", sans-serif;\n transition: all 0.3s;\n}\n\n.InnerContainer {\n border-radius: 20px;\n background: #F9F8F8;\n padding: 25px;\n width: 100%;\n}\n\n.ModalHeader {\n color: var(--emw--color-typography, #212529);\n text-align: center;\n font-family: var(--emw--button-typography, \"PF BeauSans Pro\", sans-serif);\n font-size: 16px;\n font-style: normal;\n font-weight: 700;\n line-height: normal;\n text-transform: uppercase;\n letter-spacing: 1px;\n}\n\n.ModalAction {\n border-radius: var(--emw--button-border-radius, 99px);\n border: 2px solid var(--emw--button-border-color, #083B17);\n background: linear-gradient(90deg, var(--emw--color-primary, #24AA4D) 0%, var(--emw--color-background-secondary, #113F21) 100%);\n padding: 9px 20px;\n margin-top: 10px;\n text-transform: uppercase;\n color: var(--emw--button-text-color, #FFF);\n text-align: center;\n font-family: var(--emw--button-typography, \"PF BeauSans Pro\", sans-serif);\n font-size: 12px;\n font-style: normal;\n font-weight: 700;\n letter-spacing: 1px;\n line-height: 1;\n}\n\n.close-modal {\n position: absolute;\n width: 32px;\n height: 32px;\n background: rgba(219, 255, 243, 0.2);\n border-radius: 16px;\n right: 20px;\n top: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n}\n\n@Container casino-challenges-modal (min-width: 576px) {\n .close-modal {\n top: 50px;\n }\n}";
|
|
126
|
+
const CasinoChallengesModalStyle0 = casinoChallengesModalCss;
|
|
127
|
+
|
|
128
|
+
const CasinoChallengesModal = class {
|
|
129
|
+
constructor(hostRef) {
|
|
130
|
+
index.registerInstance(this, hostRef);
|
|
131
|
+
this.close = index.createEvent(this, "close", 7);
|
|
132
|
+
this.onClose = () => {
|
|
133
|
+
this.close.emit();
|
|
134
|
+
};
|
|
135
|
+
this.mbSource = undefined;
|
|
136
|
+
this.clientStyling = undefined;
|
|
137
|
+
this.clientStylingUrl = undefined;
|
|
138
|
+
this.isOpen = false;
|
|
139
|
+
this.showWinAnimation = false;
|
|
140
|
+
this.showBackdrop = false;
|
|
141
|
+
this.showCloseButton = false;
|
|
142
|
+
}
|
|
143
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
144
|
+
if (newValue != oldValue) {
|
|
145
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
handleClientStylingUrlChange(newValue, oldValue) {
|
|
149
|
+
if (newValue != oldValue) {
|
|
150
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
handleMbSourceChange(newValue, oldValue) {
|
|
154
|
+
if (newValue != oldValue) {
|
|
155
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
componentDidLoad() {
|
|
159
|
+
if (this.stylingContainer) {
|
|
160
|
+
if (this.mbSource)
|
|
161
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
162
|
+
if (this.clientStyling)
|
|
163
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
164
|
+
if (this.clientStylingUrl)
|
|
165
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
disconnectedCallback() {
|
|
169
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
170
|
+
}
|
|
171
|
+
render() {
|
|
172
|
+
return (index.h("div", { key: '760f548283506b890c94b5a31b2f482977dad63b', ref: (el) => (this.stylingContainer = el), class: `ModalOverlay ${this.isOpen && 'Open'}` }, this.showBackdrop && index.h("div", { key: 'fcdf3d8cde0e0e7a55c63775f3b273537b52bea7', class: "Backdrop", onClick: this.onClose }), this.showWinAnimation && index.h("div", { key: '83e715fb8d3c5f4f7b5e5966fe9d4514c546e663', class: "ModalWinAnimation" }), index.h("div", { key: 'e309cf1d60a5f23c98fd10219a390f6b6fe3ccee', class: "ModalContent GradientBorder Container", part: "modal-content" }, index.h("div", { key: '9512aae0d774d647862060fdc10b20ad73287b75', class: "InnerContainer", part: "inner-container" }, index.h("div", { key: '6ae4466f071b01b4910c6e4d5cb07200f07a3aee', class: "ModalHeader" }, this.showCloseButton && (index.h("div", { key: 'e3f498699a76d5d336266327569b21670b07a097', class: "close-modal", part: "close-button", onClick: this.onClose }, index.h("img", { key: 'ce3ceb9083ef59952daa01872b50acff28101e55', src: xCloseSvg }))), index.h("slot", { key: '68324278177e10ef244a850196cae86c86bbab14', name: "header" })), index.h("div", { key: '5c341711027e532542dc04f14e46c5cb95aa0d20', class: "ModalBody" }, index.h("slot", { key: '27f5279c49a3d936e49a29655b07d28e72f526f4', name: "body" })), index.h("div", { key: '81fd4db2428a5a48286c4ffbaab56fdf566da612', class: "ModalFooter" }, index.h("slot", { key: 'cb2ab035f8b044937221c011ba13243e297ee346', name: "footer" }))))));
|
|
173
|
+
}
|
|
174
|
+
static get watchers() { return {
|
|
175
|
+
"clientStyling": ["handleClientStylingChange"],
|
|
176
|
+
"clientStylingUrl": ["handleClientStylingUrlChange"],
|
|
177
|
+
"mbSource": ["handleMbSourceChange"]
|
|
178
|
+
}; }
|
|
179
|
+
};
|
|
180
|
+
CasinoChallengesModal.style = CasinoChallengesModalStyle0;
|
|
181
|
+
|
|
182
|
+
exports.CasinoChallengesModal = CasinoChallengesModal;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const casinoChallengesModal = require('./casino-challenges-modal-9e634999.js');
|
|
6
|
+
require('./index-0e4accfe.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.casino_challenges_modal = casinoChallengesModal.CasinoChallengesModal;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-0e4accfe.js');
|
|
6
|
+
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
10
|
+
*/
|
|
11
|
+
var patchBrowser = () => {
|
|
12
|
+
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('casino-challenges-modal.cjs.js', document.baseURI).href));
|
|
13
|
+
const opts = {};
|
|
14
|
+
if (importMeta !== "") {
|
|
15
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
16
|
+
}
|
|
17
|
+
return index.promiseResolve(opts);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
patchBrowser().then(async (options) => {
|
|
21
|
+
await appGlobals.globalScripts();
|
|
22
|
+
return index.bootstrapLazy([["casino-challenges-modal.cjs",[[1,"casino-challenges-modal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isOpen":[516,"is-open"],"showWinAnimation":[516,"show-win-animation"],"showBackdrop":[516,"show-backdrop"],"showCloseButton":[516,"show-close-button"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
exports.setNonce = index.setNonce;
|