@everymatrix/player-account-self-exclusion-nd 1.43.2 → 1.43.4

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.
@@ -2215,5 +2215,5 @@
2215
2215
  ></vaadin-date-picker-overlay>
2216
2216
 
2217
2217
  <slot name="tooltip"></slot>
2218
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Th(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Ch(this.inputElement,this._labelController)),this._tooltipController=new pa(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}function Mh(e){let r,i,o,n=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){r=t("p"),i=t("strong"),o=ae(n),le(r,"class","SelfExclusionDescriptionText")},m(e,t){de(e,r,t),se(r,i),se(i,o)},p(e,t){288&t[0]&&n!==(n=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"")&&he(o,n)},d(e){e&&ce(r)}}}function Nh(e){let r,i,o,n=e[8]("permanentSelfExclusion")+"";return{c(){r=t("p"),i=t("strong"),o=ae(n),le(r,"class","SelfExclusionDescriptionText")},m(e,t){de(e,r,t),se(r,i),se(i,o)},p(e,t){256&t[0]&&n!==(n=e[8]("permanentSelfExclusion")+"")&&he(o,n)},d(e){e&&ce(r)}}}function Ih(r){let i,o,B,n,s,F,a,l,h,Y,u,d,z,c,p,U,m,$,j,f,V,_,W,y,v,G,q,g,K,b,w,X,Z,x,J,E,Q,A,ee,S,T,te,re,ie,C=r[8]("titleSelfExclusion")+"",D=r[8]("selfExclusionText1",{values:{operatorname:r[0]}})+"",k=r[8]("selfExclusionText2")+"",P=r[8]("selfExclusionText3",{values:{operatorname:r[0]}})+"",O=r[8]("selfExclusionText4")+"",M=r[8]("duration")+"",N=r[8]("forever")+"",I=r[8]("save")+"",L=r[9]&&(r=>{let i,o,n,s,a,l,h,u,d,c,p,m,f,_=r[8]("titleSelfExclusion")+"";return{c(){i=t("div"),o=pe("svg"),n=pe("defs"),s=pe("style"),a=ae(".aaa{fill:var(--emw--color-primary, #22B04E);}"),l=pe("g"),h=pe("g"),u=pe("path"),d=e(),c=t("h2"),p=ae(_),le(u,"class","aaa"),le(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),le(u,"transform","translate(15 15) rotate(180)"),le(h,"transform","translate(20 158)"),le(l,"transform","translate(-20 -158)"),le(o,"xmlns","http://www.w3.org/2000/svg"),le(o,"width","15"),le(o,"height","15"),le(o,"viewBox","0 0 15 15"),le(c,"class","PlayerSelfExclusionTitleMobile"),le(i,"class","MenuReturnButton")},m(e,t){de(e,i,t),se(i,o),se(o,n),se(n,s),se(s,a),se(o,l),se(l,h),se(h,u),se(i,d),se(i,c),se(c,p),m||(f=me(i,"click",r[17]),m=!0)},p(e,t){256&t[0]&&_!==(_=e[8]("titleSelfExclusion")+"")&&he(p,_)},d(e){e&&ce(i),m=!1,f()}}})(r);function oe(e){return e[4]?Nh:Mh}let H=oe(r),R=H(r);return{c(){i=t("div"),o=t("form"),L&&L.c(),B=e(),n=t("h2"),s=ae(C),F=e(),a=t("div"),l=t("p"),h=ae(D),Y=e(),u=t("p"),d=ae(k),z=e(),c=t("p"),p=ae(P),U=e(),m=t("p"),$=ae(O),j=e(),f=t("a"),V=ae(r[1]),W=e(),y=t("div"),v=t("label"),G=ae(M),q=e(),g=t("vaadin-date-picker"),K=e(),b=t("div"),w=t("label"),X=ae(N),Z=e(),x=t("input"),J=e(),E=t("span"),Q=e(),A=t("div"),R.c(),ee=e(),S=t("div"),T=t("button"),te=ae(I),this.c=ne,le(n,"class","PlayerSelfExclusionTitle "+(r[9]?"PlayerSelfExclusionTitleNone":"")),le(l,"class","SelfExclusionDescriptionText"),le(u,"class","SelfExclusionDescriptionText"),le(c,"class","SelfExclusionDescriptionText"),le(f,"href",_="mailto:"+r[1]),le(m,"class","SelfExclusionDescriptionText"),le(a,"class","SelfExclusionDescription "+(r[9]?"SelfExclusionDescriptionMobile":"")),le(v,"for","SelfExclusionDate"),fe(g,"min",r[6]),fe(g,"max",r[7]),fe(g,"value",r[6]),le(y,"class","SelfExclusionDateWrapper "+(r[9]?"SelfExclusionDateWrapperMobile":"")),le(x,"type","Checkbox"),le(E,"class","Checkmark"),le(E,"part","Checkmark"),le(w,"class","SelfExclusionRadio"),le(b,"class","SelfExclusionRadioWrapper "+(r[9]?"SelfExclusionRadioWrapperMobile":"")),le(A,"class","SelfExclusionDescription "+(r[9]?"SelfExclusionDescriptionMobile":"")),le(T,"class","SelfExclusionSave"),le(S,"class","SelfExclusionActionButtons "+(r[9]?"SelfExclusionActionButtonsMobile":"")),le(o,"class","SelfExclusionWrapper "+(r[9]?"SelfExclusionWrapperMobile":""))},m(e,t){de(e,i,t),se(i,o),L&&L.m(o,null),se(o,B),se(o,n),se(n,s),se(o,F),se(o,a),se(a,l),se(l,h),se(a,Y),se(a,u),se(u,d),se(a,z),se(a,c),se(c,p),se(a,U),se(a,m),se(m,$),se(m,j),se(m,f),se(f,V),se(o,W),se(o,y),se(y,v),se(v,G),se(y,q),se(y,g),r[18](g),se(o,K),se(o,b),se(b,w),se(w,X),se(w,Z),se(w,x),se(w,J),se(w,E),se(o,Q),se(o,A),R.m(A,null),se(o,ee),se(o,S),se(S,T),se(T,te),r[21](i),re||(ie=[me(x,"click",r[19]),me(T,"click",r[20])],re=!0)},p(e,t){e[9]&&L.p(e,t),256&t[0]&&C!==(C=e[8]("titleSelfExclusion")+"")&&he(s,C),257&t[0]&&D!==(D=e[8]("selfExclusionText1",{values:{operatorname:e[0]}})+"")&&he(h,D),256&t[0]&&k!==(k=e[8]("selfExclusionText2")+"")&&he(d,k),257&t[0]&&P!==(P=e[8]("selfExclusionText3",{values:{operatorname:e[0]}})+"")&&he(p,P),256&t[0]&&O!==(O=e[8]("selfExclusionText4")+"")&&he($,O),2&t[0]&&he(V,e[1]),2&t[0]&&_!==(_="mailto:"+e[1])&&le(f,"href",_),256&t[0]&&M!==(M=e[8]("duration")+"")&&he(G,M),64&t[0]&&fe(g,"min",e[6]),128&t[0]&&fe(g,"max",e[7]),64&t[0]&&fe(g,"value",e[6]),256&t[0]&&N!==(N=e[8]("forever")+"")&&he(X,N),H===(H=oe(e))&&R?R.p(e,t):(R.d(1),(R=H(e))&&(R.c(),R.m(A,null))),256&t[0]&&I!==(I=e[8]("save")+"")&&he(te,I)},i:ne,o:ne,d(e){e&&ce(i),L&&L.d(),r[18](null),R.d(),r[21](null),re=!1,ue(ie)}}}function Lh(t,e,r){let i,o;o=ki,t.$$.on_destroy.push(L(o,e=>r(8,i=e)));let n,s,a,l,{lang:h="en"}=e,{operator:u="Everymatrix"}=e,{supportemail:d=""}=e,{clientstyling:c=""}=e,{clientstylingurl:p=""}=e,{translationurl:m=""}=e,f="PC"!=((e=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),_=!1,y="",v="",g=new Date;Object.keys(Ii).forEach(e=>{Ni(e,Ii[e])}),a=Mi(g.setDate(g.getDate())).add(6,"M").format("YYYY-MM-DD"),l=Mi(g.setDate(g.getDate())).add(5,"y").format("YYYY-MM-DD"),v=a;let b=()=>{r(4,_=0==_)},w=e=>{1==_?y="SelfExclusionPermanent":(y="SelfExclusionUntilSelectedDate",e&&0<e.length&&r(5,v=e))},x=e=>{e.preventDefault(),w(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:y,selfExclusionExpiryDate:v},window.location.href)},E=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},A=e=>{w(e.target.value)};e=()=>()=>{s.removeEventListener("change",A)},(()=>{if(H)return H;throw new Error("Function called outside component initialization")})().$$.on_mount.push(e);return t.$$set=e=>{"lang"in e&&r(13,h=e.lang),"operator"in e&&r(0,u=e.operator),"supportemail"in e&&r(1,d=e.supportemail),"clientstyling"in e&&r(14,c=e.clientstyling),"clientstylingurl"in e&&r(15,p=e.clientstylingurl),"translationurl"in e&&r(16,m=e.translationurl)},t.$$.update=()=>{if(8&t.$$.dirty[0]&&s&&s.addEventListener("change",A,!1),8192&t.$$.dirty[0]&&h&&(e=h,fi.set(e)),32772&t.$$.dirty[0]&&p&&n){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;16388&t.$$.dirty[0]&&c&&n&&((e=document.createElement("style")).innerHTML=c,n.appendChild(e)),65536&t.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ni(e,t[e])})}).catch(e=>{console.log(e)})},[u,d,n,s,_,v,a,l,i,f,b,x,E,h,c,p,m,()=>E(),function(e){F[e?"unshift":"push"](()=>{s=e,r(3,s)})},()=>b(),e=>x(e),function(e){F[e?"unshift":"push"](()=>{n=e,r(2,n)})}]}Li(Oh);class Hh extends X{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 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:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;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(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.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-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{cursor:pointer;font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}',this.shadowRoot.appendChild(t),K(this,{target:this.shadowRoot,props:(e=>{var t,r={};for(t of e)r[t.name]=t.value;return r})(this.attributes),customElement:!0},Lh,Ih,I,{lang:13,operator:0,supportemail:1,clientstyling:14,clientstylingurl:15,translationurl:16},null,[-1,-1]),e&&(e.target&&de(e.target,this,e.anchor),e.props)&&(this.$set(e.props),G())}static get observedAttributes(){return["lang","operator","supportemail","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[13]}set lang(e){this.$$set({lang:e}),G()}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),G()}get supportemail(){return this.$$.ctx[1]}set supportemail(e){this.$$set({supportemail:e}),G()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(e){this.$$set({clientstyling:e}),G()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),G()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),G()}}return customElements.define=(Ph=customElements.define,function(...e){try{return Ph.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),customElements.get("player-account-self-exclusion-nd")||customElements.define("player-account-self-exclusion-nd",Hh),Hh});
2218
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Th(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Ch(this.inputElement,this._labelController)),this._tooltipController=new pa(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}function Mh(e){let r,i,o,n=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){r=t("p"),i=t("strong"),o=ae(n),le(r,"class","SelfExclusionDescriptionText")},m(e,t){de(e,r,t),se(r,i),se(i,o)},p(e,t){288&t[0]&&n!==(n=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"")&&he(o,n)},d(e){e&&ce(r)}}}function Nh(e){let r,i,o,n=e[8]("permanentSelfExclusion")+"";return{c(){r=t("p"),i=t("strong"),o=ae(n),le(r,"class","SelfExclusionDescriptionText")},m(e,t){de(e,r,t),se(r,i),se(i,o)},p(e,t){256&t[0]&&n!==(n=e[8]("permanentSelfExclusion")+"")&&he(o,n)},d(e){e&&ce(r)}}}function Ih(r){let i,o,B,n,s,F,a,l,h,Y,u,d,z,c,p,U,m,$,j,f,V,_,W,y,v,G,q,g,K,b,w,X,Z,x,J,E,Q,A,ee,S,T,te,re,ie,C=r[8]("titleSelfExclusion")+"",D=r[8]("selfExclusionText1",{values:{operatorname:r[0]}})+"",k=r[8]("selfExclusionText2")+"",P=r[8]("selfExclusionText3",{values:{operatorname:r[0]}})+"",O=r[8]("selfExclusionText4")+"",M=r[8]("duration")+"",N=r[8]("forever")+"",I=r[8]("save")+"",L=r[9]&&(r=>{let i,o,n,s,a,l,h,u,d,c,p,m,f,_=r[8]("titleSelfExclusion")+"";return{c(){i=t("div"),o=pe("svg"),n=pe("defs"),s=pe("style"),a=ae(".aaa{fill:var(--emw--color-primary, #22B04E);}"),l=pe("g"),h=pe("g"),u=pe("path"),d=e(),c=t("h2"),p=ae(_),le(u,"class","aaa"),le(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),le(u,"transform","translate(15 15) rotate(180)"),le(h,"transform","translate(20 158)"),le(l,"transform","translate(-20 -158)"),le(o,"xmlns","http://www.w3.org/2000/svg"),le(o,"width","15"),le(o,"height","15"),le(o,"viewBox","0 0 15 15"),le(c,"class","PlayerSelfExclusionTitleMobile"),le(i,"class","MenuReturnButton")},m(e,t){de(e,i,t),se(i,o),se(o,n),se(n,s),se(s,a),se(o,l),se(l,h),se(h,u),se(i,d),se(i,c),se(c,p),m||(f=me(i,"click",r[17]),m=!0)},p(e,t){256&t[0]&&_!==(_=e[8]("titleSelfExclusion")+"")&&he(p,_)},d(e){e&&ce(i),m=!1,f()}}})(r);function oe(e){return e[4]?Nh:Mh}let H=oe(r),R=H(r);return{c(){i=t("div"),o=t("form"),L&&L.c(),B=e(),n=t("h2"),s=ae(C),F=e(),a=t("div"),l=t("p"),h=ae(D),Y=e(),u=t("p"),d=ae(k),z=e(),c=t("p"),p=ae(P),U=e(),m=t("p"),$=ae(O),j=e(),f=t("a"),V=ae(r[1]),W=e(),y=t("div"),v=t("label"),G=ae(M),q=e(),g=t("vaadin-date-picker"),K=e(),b=t("div"),w=t("label"),X=ae(N),Z=e(),x=t("input"),J=e(),E=t("span"),Q=e(),A=t("div"),R.c(),ee=e(),S=t("div"),T=t("button"),te=ae(I),this.c=ne,le(n,"class","PlayerSelfExclusionTitle "+(r[9]?"PlayerSelfExclusionTitleNone":"")),le(l,"class","SelfExclusionDescriptionText"),le(u,"class","SelfExclusionDescriptionText"),le(c,"class","SelfExclusionDescriptionText"),le(f,"href",_="mailto:"+r[1]),le(m,"class","SelfExclusionDescriptionText"),le(a,"class","SelfExclusionDescription "+(r[9]?"SelfExclusionDescriptionMobile":"")),le(v,"for","SelfExclusionDate"),fe(g,"min",r[6]),fe(g,"max",r[7]),fe(g,"value",r[6]),le(y,"class","SelfExclusionDateWrapper "+(r[9]?"SelfExclusionDateWrapperMobile":"")),le(x,"type","Checkbox"),le(E,"class","Checkmark"),le(E,"part","Checkmark"),le(w,"class","SelfExclusionRadio"),le(b,"class","SelfExclusionRadioWrapper "+(r[9]?"SelfExclusionRadioWrapperMobile":"")),le(A,"class","SelfExclusionDescription "+(r[9]?"SelfExclusionDescriptionMobile":"")),le(T,"class","SelfExclusionSave"),le(S,"class","SelfExclusionActionButtons "+(r[9]?"SelfExclusionActionButtonsMobile":"")),le(o,"class","SelfExclusionWrapper "+(r[9]?"SelfExclusionWrapperMobile":""))},m(e,t){de(e,i,t),se(i,o),L&&L.m(o,null),se(o,B),se(o,n),se(n,s),se(o,F),se(o,a),se(a,l),se(l,h),se(a,Y),se(a,u),se(u,d),se(a,z),se(a,c),se(c,p),se(a,U),se(a,m),se(m,$),se(m,j),se(m,f),se(f,V),se(o,W),se(o,y),se(y,v),se(v,G),se(y,q),se(y,g),r[18](g),se(o,K),se(o,b),se(b,w),se(w,X),se(w,Z),se(w,x),se(w,J),se(w,E),se(o,Q),se(o,A),R.m(A,null),se(o,ee),se(o,S),se(S,T),se(T,te),r[21](i),re||(ie=[me(x,"click",r[19]),me(T,"click",r[20])],re=!0)},p(e,t){e[9]&&L.p(e,t),256&t[0]&&C!==(C=e[8]("titleSelfExclusion")+"")&&he(s,C),257&t[0]&&D!==(D=e[8]("selfExclusionText1",{values:{operatorname:e[0]}})+"")&&he(h,D),256&t[0]&&k!==(k=e[8]("selfExclusionText2")+"")&&he(d,k),257&t[0]&&P!==(P=e[8]("selfExclusionText3",{values:{operatorname:e[0]}})+"")&&he(p,P),256&t[0]&&O!==(O=e[8]("selfExclusionText4")+"")&&he($,O),2&t[0]&&he(V,e[1]),2&t[0]&&_!==(_="mailto:"+e[1])&&le(f,"href",_),256&t[0]&&M!==(M=e[8]("duration")+"")&&he(G,M),64&t[0]&&fe(g,"min",e[6]),128&t[0]&&fe(g,"max",e[7]),64&t[0]&&fe(g,"value",e[6]),256&t[0]&&N!==(N=e[8]("forever")+"")&&he(X,N),H===(H=oe(e))&&R?R.p(e,t):(R.d(1),(R=H(e))&&(R.c(),R.m(A,null))),256&t[0]&&I!==(I=e[8]("save")+"")&&he(te,I)},i:ne,o:ne,d(e){e&&ce(i),L&&L.d(),r[18](null),R.d(),r[21](null),re=!1,ue(ie)}}}function Lh(t,e,r){let i,o;o=ki,t.$$.on_destroy.push(L(o,e=>r(8,i=e)));let n,s,a,l,{lang:h="en"}=e,{operator:u="Everymatrix"}=e,{supportemail:d=""}=e,{clientstyling:c=""}=e,{clientstylingurl:p=""}=e,{translationurl:m=""}=e,f="PC"!=((e=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),_=!1,y="",v="",g=new Date;Object.keys(Ii).forEach(e=>{Ni(e,Ii[e])}),a=Mi(g.setDate(g.getDate())).add(6,"M").format("YYYY-MM-DD"),l=Mi(g.setDate(g.getDate())).add(5,"y").format("YYYY-MM-DD"),v=a;let b=()=>{r(4,_=0==_)},w=e=>{1==_?y="SelfExclusionPermanent":(y="SelfExclusionUntilSelectedDate",e&&0<e.length&&r(5,v=e))},x=e=>{e.preventDefault(),w(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:y,selfExclusionExpiryDate:v},window.location.href)},E=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},A=e=>{w(e.target.value)};e=()=>()=>{s.removeEventListener("change",A)},(()=>{if(H)return H;throw new Error("Function called outside component initialization")})().$$.on_mount.push(e);return t.$$set=e=>{"lang"in e&&r(13,h=e.lang),"operator"in e&&r(0,u=e.operator),"supportemail"in e&&r(1,d=e.supportemail),"clientstyling"in e&&r(14,c=e.clientstyling),"clientstylingurl"in e&&r(15,p=e.clientstylingurl),"translationurl"in e&&r(16,m=e.translationurl)},t.$$.update=()=>{if(8&t.$$.dirty[0]&&s&&s.addEventListener("change",A,!1),8192&t.$$.dirty[0]&&h&&(e=h,fi.set(e)),32772&t.$$.dirty[0]&&p&&n){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1)})}var e;16388&t.$$.dirty[0]&&c&&n&&((e=document.createElement("style")).innerHTML=c,n.appendChild(e)),65536&t.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ni(e,t[e])})}).catch(e=>{console.log(e)})},[u,d,n,s,_,v,a,l,i,f,b,x,E,h,c,p,m,()=>E(),function(e){F[e?"unshift":"push"](()=>{s=e,r(3,s)})},()=>b(),e=>x(e),function(e){F[e?"unshift":"push"](()=>{n=e,r(2,n)})}]}Li(Oh);class Hh extends X{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;height:100vh;max-width:100%}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 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:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;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(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.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-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{cursor:pointer;font-family:var(--emw--button-typography);width:100%;max-width:400px;min-width:200px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:50px;padding:13px 0;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{padding:10px 0;font-size:var(--emw--font-size-small, 14px)}',this.shadowRoot.appendChild(t),K(this,{target:this.shadowRoot,props:(e=>{var t,r={};for(t of e)r[t.name]=t.value;return r})(this.attributes),customElement:!0},Lh,Ih,I,{lang:13,operator:0,supportemail:1,clientstyling:14,clientstylingurl:15,translationurl:16},null,[-1,-1]),e&&(e.target&&de(e.target,this,e.anchor),e.props)&&(this.$set(e.props),G())}static get observedAttributes(){return["lang","operator","supportemail","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[13]}set lang(e){this.$$set({lang:e}),G()}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),G()}get supportemail(){return this.$$.ctx[1]}set supportemail(e){this.$$set({supportemail:e}),G()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(e){this.$$set({clientstyling:e}),G()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),G()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),G()}}return customElements.define=(Ph=customElements.define,function(...e){try{return Ph.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),customElements.get("player-account-self-exclusion-nd")||customElements.define("player-account-self-exclusion-nd",Hh),Hh});
2219
2219
  //# sourceMappingURL=player-account-self-exclusion-nd.js.map