@everymatrix/player-account-self-exclusion 1.5.3 → 1.5.5
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.
|
@@ -1685,5 +1685,5 @@
|
|
|
1685
1685
|
|
|
1686
1686
|
<iron-media-query query="[[_fullscreenMediaQuery]]" query-matches="{{_fullscreen}}">
|
|
1687
1687
|
</iron-media-query>
|
|
1688
|
-
`}static get is(){return"vaadin-date-picker"}static get version(){return"4.0.1"}static get properties(){return{clearButtonVisible:{type:Boolean,value:!1},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},errorMessage:String,placeholder:String,readonly:{type:Boolean,value:!1,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},_userInputValue:String}}static get observers(){return["_userInputValueChanged(_userInputValue)","_setClearButtonLabel(i18n.clear)"]}ready(){super.ready(),ol(this,()=>this._inputElement.validate=()=>{}),this._inputElement.addEventListener("change",()=>{""===this._inputElement.value&&(this.__dispatchChange=!0,this.value="",this.__dispatchChange=!1)})}_onVaadinOverlayClose(e){this._openedWithFocusRing&&this.hasAttribute("focused")?this.focusElement.setAttribute("focus-ring",""):this.hasAttribute("focused")||this.focusElement.blur(),e.detail.sourceEvent&&-1!==e.detail.sourceEvent.composedPath().indexOf(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this[this._overlayInitialized&&this.$.overlay.opened?"close":"open"]()}_input(){return this.$.input}set _inputValue(e){this._inputElement.value=e}get _inputValue(){return this._inputElement.value}_getAriaExpanded(e){return Boolean(e).toString()}get focusElement(){return this._input()||this}_setClearButtonLabel(e){this._inputElement.shadowRoot.querySelector('[part="clear-button"]').setAttribute("aria-label",e)}}function Oh(e){let n,r,i,o=e[7]("selfExclusion.temporarySelfExclusion",{values:{date:e[4]}})+"";return{c(){n=t("p"),r=t("strong"),i=se(o),ae(n,"class","SelfExclusionDescriptionText"),ae(n,"part","SelfExclusionDescriptionText")},m(e,t){ce(e,n,t),oe(n,r),oe(r,i)},p(e,t){144&t&&o!==(o=e[7]("selfExclusion.temporarySelfExclusion",{values:{date:e[4]}})+"")&&le(i,o)},d(e){e&&ue(n)}}}function Mh(e){let n,r,i,o=e[7]("selfExclusion.permanentSelfExclusion")+"";return{c(){n=t("p"),r=t("strong"),i=se(o),ae(n,"class","SelfExclusionDescriptionText"),ae(n,"part","SelfExclusionDescriptionText")},m(e,t){ce(e,n,t),oe(n,r),oe(r,i)},p(e,t){128&t&&o!==(o=e[7]("selfExclusion.permanentSelfExclusion")+"")&&le(i,o)},d(e){e&&ue(n)}}}function Ih(n){let r,i,B,o,s,F,a,l,h,z,c,u,Y,d,p,U,j,m,f,W,_,G,y,g,V,$,v,q,b,w,X,Z,x,J,S,K,E,Q,C,T,ee,te,ne,A=n[7]("selfExclusion.title")+"",P=n[7]("selfExclusion.selfExclusionText1",{values:{operatorname:n[0]}})+"",D=n[7]("selfExclusion.selfExclusionText2")+"",k=n[7]("selfExclusion.selfExclusionText3")+"",O=n[7]("selfExclusion.selfExclusionText4")+"",M=n[7]("selfExclusion.duration")+"",I=n[7]("selfExclusion.forever")+"",N=n[7]("selfExclusion.save")+"",L=n[8]&&function(n){let r,i,o,s,a,l,h,c,u,d,p,m,f,_=n[7]("selfExclusion.title")+"";return{c(){r=t("div"),i=de("svg"),o=de("defs"),s=de("style"),a=se(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=de("g"),h=de("g"),c=de("path"),u=e(),d=t("h2"),p=se(_),ae(c,"class","aaa"),ae(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ae(c,"transform","translate(15 15) rotate(180)"),ae(h,"transform","translate(20 158)"),ae(l,"transform","translate(-20 -158)"),ae(i,"xmlns","http://www.w3.org/2000/svg"),ae(i,"width","15"),ae(i,"height","15"),ae(i,"viewBox","0 0 15 15"),ae(d,"class","PlayerSelfExclusionTitleMobile"),ae(d,"part","PlayerSelfExclusionTitleMobile"),ae(r,"class","MenuReturnButton"),ae(r,"part","MenuReturnButton")},m(e,t){ce(e,r,t),oe(r,i),oe(i,o),oe(o,s),oe(s,a),oe(i,l),oe(l,h),oe(h,c),oe(r,u),oe(r,d),oe(d,p),m||(f=pe(r,"click",n[16]),m=!0)},p(e,t){128&t&&_!==(_=e[7]("selfExclusion.title")+"")&&le(p,_)},d(e){e&&ue(r),m=!1,f()}}}(n);function re(e){return e[3]?Mh:Oh}let R=re(n),H=R(n);return{c(){r=t("div"),i=t("form"),L&&L.c(),B=e(),o=t("h2"),s=se(A),F=e(),a=t("div"),l=t("p"),h=se(P),z=e(),c=t("p"),u=se(D),Y=e(),d=t("p"),p=se(k),U=se(" support@everymatrix.com"),j=e(),m=t("p"),f=se(O),W=e(),(_=t("a")).textContent="support@everymatrix.com",G=e(),y=t("div"),g=t("label"),V=se(M),$=e(),v=t("vaadin-date-picker"),q=e(),b=t("div"),w=t("label"),X=se(I),Z=e(),x=t("input"),J=e(),S=t("span"),K=e(),E=t("div"),H.c(),Q=e(),C=t("div"),T=t("button"),ee=se(N),this.c=ie,ae(o,"class","PlayerSelfExclusionTitle "+(n[8]?"PlayerSelfExclusionTitleNone":"")),ae(o,"part","PlayerSelfExclusionTitle "+(n[8]?"PlayerSelfExclusionTitleNone":"")),ae(l,"class","SelfExclusionDescriptionText"),ae(l,"part","SelfExclusionDescriptionText"),ae(c,"class","SelfExclusionDescriptionText"),ae(c,"part","SelfExclusionDescriptionText"),ae(d,"class","SelfExclusionDescriptionText"),ae(d,"part","SelfExclusionDescriptionText"),ae(_,"href","mailto:support@everymatrix.com"),ae(m,"class","SelfExclusionDescriptionText"),ae(m,"part","SelfExclusionDescriptionText"),ae(a,"class","SelfExclusionDescription "+(n[8]?"SelfExclusionDescriptionMobile":"")),ae(a,"part","SelfExclusionDescription "+(n[8]?"SelfExclusionDescriptionMobile":"")),ae(g,"for","SelfExclusionDate"),me(v,"min",n[5]),me(v,"max",n[6]),me(v,"value",n[5]),ae(y,"class","SelfExclusionDateWrapper "+(n[8]?"SelfExclusionDateWrapperMobile":"")),ae(y,"part","SelfExclusionDateWrapper "+(n[8]?"SelfExclusionDateWrapperMobile":"")),ae(x,"type","Checkbox"),ae(S,"class","Checkmark"),ae(S,"part","Checkmark"),ae(w,"class","SelfExclusionRadio"),ae(w,"part","SelfExclusionRadio"),ae(b,"class","SelfExclusionRadioWrapper "+(n[8]?"SelfExclusionRadioWrapperMobile":"")),ae(b,"part","SelfExclusionRadioWrapper "+(n[8]?"SelfExclusionRadioWrapperMobile":"")),ae(E,"class","SelfExclusionDescription "+(n[8]?"SelfExclusionDescriptionMobile":"")),ae(E,"part","SelfExclusionDescription "+(n[8]?"SelfExclusionDescriptionMobile":"")),ae(T,"class","SelfExclusionSave"),ae(T,"part","SelfExclusionSave"),ae(C,"class","SelfExclusionActionButtons "+(n[8]?"SelfExclusionActionButtonsMobile":"")),ae(C,"part","SelfExclusionActionButtons "+(n[8]?"SelfExclusionActionButtonsMobile":"")),ae(i,"class","SelfExclusionWrapper "+(n[8]?"SelfExclusionWrapperMobile":"")),ae(i,"part","SelfExclusionWrapper "+(n[8]?"SelfExclusionWrapperMobile":""))},m(e,t){ce(e,r,t),oe(r,i),L&&L.m(i,null),oe(i,B),oe(i,o),oe(o,s),oe(i,F),oe(i,a),oe(a,l),oe(l,h),oe(a,z),oe(a,c),oe(c,u),oe(a,Y),oe(a,d),oe(d,p),oe(d,U),oe(a,j),oe(a,m),oe(m,f),oe(m,W),oe(m,_),oe(i,G),oe(i,y),oe(y,g),oe(g,V),oe(y,$),oe(y,v),n[17](v),oe(i,q),oe(i,b),oe(b,w),oe(w,X),oe(w,Z),oe(w,x),oe(w,J),oe(w,S),oe(i,K),oe(i,E),H.m(E,null),oe(i,Q),oe(i,C),oe(C,T),oe(T,ee),n[20](r),te||(ne=[pe(x,"click",n[18]),pe(T,"click",n[19])],te=!0)},p(e,[t]){e[8]&&L.p(e,t),128&t&&A!==(A=e[7]("selfExclusion.title")+"")&&le(s,A),129&t&&P!==(P=e[7]("selfExclusion.selfExclusionText1",{values:{operatorname:e[0]}})+"")&&le(h,P),128&t&&D!==(D=e[7]("selfExclusion.selfExclusionText2")+"")&&le(u,D),128&t&&k!==(k=e[7]("selfExclusion.selfExclusionText3")+"")&&le(p,k),128&t&&O!==(O=e[7]("selfExclusion.selfExclusionText4")+"")&&le(f,O),128&t&&M!==(M=e[7]("selfExclusion.duration")+"")&&le(V,M),32&t&&me(v,"min",e[5]),64&t&&me(v,"max",e[6]),32&t&&me(v,"value",e[5]),128&t&&I!==(I=e[7]("selfExclusion.forever")+"")&&le(X,I),R===(R=re(e))&&H?H.p(e,t):(H.d(1),(H=R(e))&&(H.c(),H.m(E,null))),128&t&&N!==(N=e[7]("selfExclusion.save")+"")&&le(ee,N)},i:ie,o:ie,d(e){e&&ue(r),L&&L.d(),n[17](null),H.d(),n[20](null),te=!1,he(ne)}}}function Nh(t,e,n){let r;var i=Sr;t.$$.on_destroy.push(L(i,e=>n(7,r=e)));let o,s,a,l,{lang:h="en"}=e,{operator:c="Everymatrix"}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{translationurl:p=""}=e,m="PC"!=((i=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),f=!1,_="",y="",g=new Date;Object.keys(Pr).forEach(e=>{Ar(e,Pr[e])}),a=Tr(g.setDate(g.getDate())).add(6,"M").format("YYYY-MM-DD"),l=Tr(g.setDate(g.getDate())).add(5,"y").format("YYYY-MM-DD"),y=a;const v=()=>{n(3,f=0==f)},b=e=>{1==f?_="SelfExclusionPermanent":(_="SelfExclusionUntilSelectedDate",e&&0<e.length&&n(4,y=e))},w=e=>{e.preventDefault(),b(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:_,selfExclusionExpiryDate:y},window.location.href)},x=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},S=e=>{b(e.target.value)};e=()=>()=>{s.removeEventListener("change",S)},function(){if(R)return R;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e);return t.$$set=e=>{"lang"in e&&n(12,h=e.lang),"operator"in e&&n(0,c=e.operator),"clientstyling"in e&&n(13,u=e.clientstyling),"clientstylingurl"in e&&n(14,d=e.clientstylingurl),"translationurl"in e&&n(15,p=e.translationurl)},t.$$.update=()=>{if(4&t.$$.dirty&&s&&s.addEventListener("change",S,!1),4096&t.$$.dirty&&h&&(e=h,_r.set(e)),16386&t.$$.dirty&&d&&o){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(8194&t.$$.dirty&&u&&o){let e=document.createElement("style");e.innerHTML=u,o.appendChild(e)}var e;32768&t.$$.dirty&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ar(e,t[e])})}).catch(e=>{console.log(e)})},[c,o,s,f,y,a,l,r,m,v,w,x,h,u,d,p,()=>x(),function(e){F[e?"unshift":"push"](()=>{s=e,n(2,s)})},()=>v(),e=>w(e),function(e){F[e?"unshift":"push"](()=>{o=e,n(1,o)})}]}customElements.define(kh.is,kh);class Lh extends Z{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-color-primary, #D0046C);font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:16px;color:var(--emfe-w-color-primary, #D0046C)}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{color:var(--emfe-w-color-contrast, #07072A);padding:50px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;background:var(--emfe-w-color-white, #FFFFFF);max-width:unset}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:12px;line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emfe-w-color-primary, #D0046C)}.SelfExclusionDateWrapper{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:14px;font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:16px;user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:16px;cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emfe-w-color-primary, #D0046C)}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-size:12px}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:12px}</style>',X(this,{target:this.shadowRoot,props:function(e){const t={};for(const n of e)t[n.name]=n.value;return t}(this.attributes),customElement:!0},Nh,Ih,N,{lang:12,operator:0,clientstyling:13,clientstylingurl:14,translationurl:15},null),e&&(e.target&&ce(e.target,this,e.anchor),e.props&&(this.$set(e.props),$()))}static get observedAttributes(){return["lang","operator","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),$()}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),$()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),$()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),$()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),$()}}return customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",Lh),Lh});
|
|
1688
|
+
`}static get is(){return"vaadin-date-picker"}static get version(){return"4.0.1"}static get properties(){return{clearButtonVisible:{type:Boolean,value:!1},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},errorMessage:String,placeholder:String,readonly:{type:Boolean,value:!1,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},_userInputValue:String}}static get observers(){return["_userInputValueChanged(_userInputValue)","_setClearButtonLabel(i18n.clear)"]}ready(){super.ready(),ol(this,()=>this._inputElement.validate=()=>{}),this._inputElement.addEventListener("change",()=>{""===this._inputElement.value&&(this.__dispatchChange=!0,this.value="",this.__dispatchChange=!1)})}_onVaadinOverlayClose(e){this._openedWithFocusRing&&this.hasAttribute("focused")?this.focusElement.setAttribute("focus-ring",""):this.hasAttribute("focused")||this.focusElement.blur(),e.detail.sourceEvent&&-1!==e.detail.sourceEvent.composedPath().indexOf(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this[this._overlayInitialized&&this.$.overlay.opened?"close":"open"]()}_input(){return this.$.input}set _inputValue(e){this._inputElement.value=e}get _inputValue(){return this._inputElement.value}_getAriaExpanded(e){return Boolean(e).toString()}get focusElement(){return this._input()||this}_setClearButtonLabel(e){this._inputElement.shadowRoot.querySelector('[part="clear-button"]').setAttribute("aria-label",e)}}function Oh(e){let n,r,i,o=e[7]("selfExclusion.temporarySelfExclusion",{values:{date:e[4]}})+"";return{c(){n=t("p"),r=t("strong"),i=se(o),ae(n,"class","SelfExclusionDescriptionText"),ae(n,"part","SelfExclusionDescriptionText")},m(e,t){ce(e,n,t),oe(n,r),oe(r,i)},p(e,t){144&t&&o!==(o=e[7]("selfExclusion.temporarySelfExclusion",{values:{date:e[4]}})+"")&&le(i,o)},d(e){e&&ue(n)}}}function Mh(e){let n,r,i,o=e[7]("selfExclusion.permanentSelfExclusion")+"";return{c(){n=t("p"),r=t("strong"),i=se(o),ae(n,"class","SelfExclusionDescriptionText"),ae(n,"part","SelfExclusionDescriptionText")},m(e,t){ce(e,n,t),oe(n,r),oe(r,i)},p(e,t){128&t&&o!==(o=e[7]("selfExclusion.permanentSelfExclusion")+"")&&le(i,o)},d(e){e&&ue(n)}}}function Ih(n){let r,i,B,o,s,F,a,l,h,z,c,u,Y,d,p,U,j,m,f,W,_,G,y,g,V,$,v,q,b,w,X,Z,x,J,S,K,E,Q,C,T,ee,te,ne,A=n[7]("selfExclusion.title")+"",P=n[7]("selfExclusion.selfExclusionText1",{values:{operatorname:n[0]}})+"",D=n[7]("selfExclusion.selfExclusionText2")+"",k=n[7]("selfExclusion.selfExclusionText3")+"",O=n[7]("selfExclusion.selfExclusionText4")+"",M=n[7]("selfExclusion.duration")+"",I=n[7]("selfExclusion.forever")+"",N=n[7]("selfExclusion.save")+"",L=n[8]&&function(n){let r,i,o,s,a,l,h,c,u,d,p,m,f,_=n[7]("selfExclusion.title")+"";return{c(){r=t("div"),i=de("svg"),o=de("defs"),s=de("style"),a=se(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=de("g"),h=de("g"),c=de("path"),u=e(),d=t("h2"),p=se(_),ae(c,"class","aaa"),ae(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ae(c,"transform","translate(15 15) rotate(180)"),ae(h,"transform","translate(20 158)"),ae(l,"transform","translate(-20 -158)"),ae(i,"xmlns","http://www.w3.org/2000/svg"),ae(i,"width","15"),ae(i,"height","15"),ae(i,"viewBox","0 0 15 15"),ae(d,"class","PlayerSelfExclusionTitleMobile"),ae(d,"part","PlayerSelfExclusionTitleMobile"),ae(r,"class","MenuReturnButton"),ae(r,"part","MenuReturnButton")},m(e,t){ce(e,r,t),oe(r,i),oe(i,o),oe(o,s),oe(s,a),oe(i,l),oe(l,h),oe(h,c),oe(r,u),oe(r,d),oe(d,p),m||(f=pe(r,"click",n[16]),m=!0)},p(e,t){128&t&&_!==(_=e[7]("selfExclusion.title")+"")&&le(p,_)},d(e){e&&ue(r),m=!1,f()}}}(n);function re(e){return e[3]?Mh:Oh}let R=re(n),H=R(n);return{c(){r=t("div"),i=t("form"),L&&L.c(),B=e(),o=t("h2"),s=se(A),F=e(),a=t("div"),l=t("p"),h=se(P),z=e(),c=t("p"),u=se(D),Y=e(),d=t("p"),p=se(k),U=se(" support@everymatrix.com"),j=e(),m=t("p"),f=se(O),W=e(),(_=t("a")).textContent="support@everymatrix.com",G=e(),y=t("div"),g=t("label"),V=se(M),$=e(),v=t("vaadin-date-picker"),q=e(),b=t("div"),w=t("label"),X=se(I),Z=e(),x=t("input"),J=e(),S=t("span"),K=e(),E=t("div"),H.c(),Q=e(),C=t("div"),T=t("button"),ee=se(N),this.c=ie,ae(o,"class","PlayerSelfExclusionTitle "+(n[8]?"PlayerSelfExclusionTitleNone":"")),ae(o,"part","PlayerSelfExclusionTitle "+(n[8]?"PlayerSelfExclusionTitleNone":"")),ae(l,"class","SelfExclusionDescriptionText"),ae(l,"part","SelfExclusionDescriptionText"),ae(c,"class","SelfExclusionDescriptionText"),ae(c,"part","SelfExclusionDescriptionText"),ae(d,"class","SelfExclusionDescriptionText"),ae(d,"part","SelfExclusionDescriptionText"),ae(_,"href","mailto:support@everymatrix.com"),ae(m,"class","SelfExclusionDescriptionText"),ae(m,"part","SelfExclusionDescriptionText"),ae(a,"class","SelfExclusionDescription "+(n[8]?"SelfExclusionDescriptionMobile":"")),ae(a,"part","SelfExclusionDescription "+(n[8]?"SelfExclusionDescriptionMobile":"")),ae(g,"for","SelfExclusionDate"),me(v,"min",n[5]),me(v,"max",n[6]),me(v,"value",n[5]),ae(y,"class","SelfExclusionDateWrapper "+(n[8]?"SelfExclusionDateWrapperMobile":"")),ae(y,"part","SelfExclusionDateWrapper "+(n[8]?"SelfExclusionDateWrapperMobile":"")),ae(x,"type","Checkbox"),ae(S,"class","Checkmark"),ae(S,"part","Checkmark"),ae(w,"class","SelfExclusionRadio"),ae(w,"part","SelfExclusionRadio"),ae(b,"class","SelfExclusionRadioWrapper "+(n[8]?"SelfExclusionRadioWrapperMobile":"")),ae(b,"part","SelfExclusionRadioWrapper "+(n[8]?"SelfExclusionRadioWrapperMobile":"")),ae(E,"class","SelfExclusionDescription "+(n[8]?"SelfExclusionDescriptionMobile":"")),ae(E,"part","SelfExclusionDescription "+(n[8]?"SelfExclusionDescriptionMobile":"")),ae(T,"class","SelfExclusionSave"),ae(T,"part","SelfExclusionSave"),ae(C,"class","SelfExclusionActionButtons "+(n[8]?"SelfExclusionActionButtonsMobile":"")),ae(C,"part","SelfExclusionActionButtons "+(n[8]?"SelfExclusionActionButtonsMobile":"")),ae(i,"class","SelfExclusionWrapper "+(n[8]?"SelfExclusionWrapperMobile":"")),ae(i,"part","SelfExclusionWrapper "+(n[8]?"SelfExclusionWrapperMobile":""))},m(e,t){ce(e,r,t),oe(r,i),L&&L.m(i,null),oe(i,B),oe(i,o),oe(o,s),oe(i,F),oe(i,a),oe(a,l),oe(l,h),oe(a,z),oe(a,c),oe(c,u),oe(a,Y),oe(a,d),oe(d,p),oe(d,U),oe(a,j),oe(a,m),oe(m,f),oe(m,W),oe(m,_),oe(i,G),oe(i,y),oe(y,g),oe(g,V),oe(y,$),oe(y,v),n[17](v),oe(i,q),oe(i,b),oe(b,w),oe(w,X),oe(w,Z),oe(w,x),oe(w,J),oe(w,S),oe(i,K),oe(i,E),H.m(E,null),oe(i,Q),oe(i,C),oe(C,T),oe(T,ee),n[20](r),te||(ne=[pe(x,"click",n[18]),pe(T,"click",n[19])],te=!0)},p(e,[t]){e[8]&&L.p(e,t),128&t&&A!==(A=e[7]("selfExclusion.title")+"")&&le(s,A),129&t&&P!==(P=e[7]("selfExclusion.selfExclusionText1",{values:{operatorname:e[0]}})+"")&&le(h,P),128&t&&D!==(D=e[7]("selfExclusion.selfExclusionText2")+"")&&le(u,D),128&t&&k!==(k=e[7]("selfExclusion.selfExclusionText3")+"")&&le(p,k),128&t&&O!==(O=e[7]("selfExclusion.selfExclusionText4")+"")&&le(f,O),128&t&&M!==(M=e[7]("selfExclusion.duration")+"")&&le(V,M),32&t&&me(v,"min",e[5]),64&t&&me(v,"max",e[6]),32&t&&me(v,"value",e[5]),128&t&&I!==(I=e[7]("selfExclusion.forever")+"")&&le(X,I),R===(R=re(e))&&H?H.p(e,t):(H.d(1),(H=R(e))&&(H.c(),H.m(E,null))),128&t&&N!==(N=e[7]("selfExclusion.save")+"")&&le(ee,N)},i:ie,o:ie,d(e){e&&ue(r),L&&L.d(),n[17](null),H.d(),n[20](null),te=!1,he(ne)}}}function Nh(t,e,n){let r;var i=Sr;t.$$.on_destroy.push(L(i,e=>n(7,r=e)));let o,s,a,l,{lang:h="en"}=e,{operator:c="Everymatrix"}=e,{clientstyling:u=""}=e,{clientstylingurl:d=""}=e,{translationurl:p=""}=e,m="PC"!=((i=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),f=!1,_="",y="",g=new Date;Object.keys(Pr).forEach(e=>{Ar(e,Pr[e])}),a=Tr(g.setDate(g.getDate())).add(6,"M").format("YYYY-MM-DD"),l=Tr(g.setDate(g.getDate())).add(5,"y").format("YYYY-MM-DD"),y=a;const v=()=>{n(3,f=0==f)},b=e=>{1==f?_="SelfExclusionPermanent":(_="SelfExclusionUntilSelectedDate",e&&0<e.length&&n(4,y=e))},w=e=>{e.preventDefault(),b(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:_,selfExclusionExpiryDate:y},window.location.href)},x=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:m},window.location.href)},S=e=>{b(e.target.value)};e=()=>()=>{s.removeEventListener("change",S)},function(){if(R)return R;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e);return t.$$set=e=>{"lang"in e&&n(12,h=e.lang),"operator"in e&&n(0,c=e.operator),"clientstyling"in e&&n(13,u=e.clientstyling),"clientstylingurl"in e&&n(14,d=e.clientstylingurl),"translationurl"in e&&n(15,p=e.translationurl)},t.$$.update=()=>{if(4&t.$$.dirty&&s&&s.addEventListener("change",S,!1),4096&t.$$.dirty&&h&&(e=h,_r.set(e)),16386&t.$$.dirty&&d&&o){let e=new URL(d),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(8194&t.$$.dirty&&u&&o){let e=document.createElement("style");e.innerHTML=u,o.appendChild(e)}var e;32768&t.$$.dirty&&p&&fetch(p).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ar(e,t[e])})}).catch(e=>{console.log(e)})},[c,o,s,f,y,a,l,r,m,v,w,x,h,u,d,p,()=>x(),function(e){F[e?"unshift":"push"](()=>{s=e,n(2,s)})},()=>v(),e=>w(e),function(e){F[e?"unshift":"push"](()=>{o=e,n(1,o)})}]}customElements.define(kh.is,kh);class Lh extends Z{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-color-primary, #D0046C);font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:16px;color:var(--emfe-w-color-primary, #D0046C)}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{color:var(--emfe-w-color-contrast, #07072A);padding:50px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;background:var(--emfe-w-color-white, #FFFFFF);max-width:unset}.MenuReturnButton{color:var(--emfe-w-color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionDescription{color:var(--emfe-w-color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:12px;line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emfe-w-color-primary, #D0046C)}.SelfExclusionDateWrapper{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:14px;font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:16px;user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:16px;cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emfe-w-color-primary, #D0046C)}.SelfExclusionRadioWrapper .Checkmark:after{content:\"\";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-size:12px}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emfe-w-color-primary, #D0046C);border:1px solid var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-white, #FFFFFF)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:12px}</style>",X(this,{target:this.shadowRoot,props:function(e){const t={};for(const n of e)t[n.name]=n.value;return t}(this.attributes),customElement:!0},Nh,Ih,N,{lang:12,operator:0,clientstyling:13,clientstylingurl:14,translationurl:15},null),e&&(e.target&&ce(e.target,this,e.anchor),e.props&&(this.$set(e.props),$()))}static get observedAttributes(){return["lang","operator","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),$()}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),$()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),$()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),$()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),$()}}return customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",Lh),Lh});
|
|
1689
1689
|
//# sourceMappingURL=player-account-self-exclusion.js.map
|