@everymatrix/player-account-self-exclusion 1.7.3 → 1.8.3

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[8]("selfExclusion.temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){n=t("p"),r=t("strong"),i=he(o),ue(n,"class","SelfExclusionDescriptionText"),ue(n,"part","SelfExclusionDescriptionText")},m(e,t){pe(e,n,t),le(n,r),le(r,i)},p(e,t){288&t[0]&&o!==(o=e[8]("selfExclusion.temporarySelfExclusion",{values:{date:e[5]}})+"")&&ce(i,o)},d(e){e&&me(n)}}}function Mh(e){let n,r,i,o=e[8]("selfExclusion.permanentSelfExclusion")+"";return{c(){n=t("p"),r=t("strong"),i=he(o),ue(n,"class","SelfExclusionDescriptionText"),ue(n,"part","SelfExclusionDescriptionText")},m(e,t){pe(e,n,t),le(n,r),le(r,i)},p(e,t){256&t[0]&&o!==(o=e[8]("selfExclusion.permanentSelfExclusion")+"")&&ce(i,o)},d(e){e&&me(n)}}}function Ih(n){let r,i,B,o,s,F,a,l,h,z,u,c,Y,d,p,U,j,W,m,G,V,f,$,_,q,y,g,X,Z,v,J,b,w,K,Q,x,ee,S,te,E,ne,C,T,re,ie,oe,A=n[8]("selfExclusion.title")+"",P=n[8]("selfExclusion.selfExclusionText1",{values:{operatorname:n[0]}})+"",D=n[8]("selfExclusion.selfExclusionText2")+"",k=n[8]("selfExclusion.selfExclusionText3")+"",O=n[8]("selfExclusion.selfExclusionText4")+"",M=n[8]("selfExclusion.duration")+"",I=n[8]("selfExclusion.forever")+"",N=n[8]("selfExclusion.save")+"",L=n[9]&&function(n){let r,i,o,s,a,l,h,u,c,d,p,m,f,_=n[8]("selfExclusion.title")+"";return{c(){r=t("div"),i=fe("svg"),o=fe("defs"),s=fe("style"),a=he(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=fe("g"),h=fe("g"),u=fe("path"),c=e(),d=t("h2"),p=he(_),ue(u,"class","aaa"),ue(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ue(u,"transform","translate(15 15) rotate(180)"),ue(h,"transform","translate(20 158)"),ue(l,"transform","translate(-20 -158)"),ue(i,"xmlns","http://www.w3.org/2000/svg"),ue(i,"width","15"),ue(i,"height","15"),ue(i,"viewBox","0 0 15 15"),ue(d,"class","PlayerSelfExclusionTitleMobile"),ue(d,"part","PlayerSelfExclusionTitleMobile"),ue(r,"class","MenuReturnButton"),ue(r,"part","MenuReturnButton")},m(e,t){pe(e,r,t),le(r,i),le(i,o),le(o,s),le(s,a),le(i,l),le(l,h),le(h,u),le(r,c),le(r,d),le(d,p),m||(f=_e(r,"click",n[17]),m=!0)},p(e,t){256&t[0]&&_!==(_=e[8]("selfExclusion.title")+"")&&ce(p,_)},d(e){e&&me(r),m=!1,f()}}}(n);function se(e){return e[4]?Mh:Oh}let R=se(n),H=R(n);return{c(){r=t("div"),i=t("form"),L&&L.c(),B=e(),o=t("h2"),s=he(A),F=e(),a=t("div"),l=t("p"),h=he(P),z=e(),u=t("p"),c=he(D),Y=e(),d=t("p"),p=he(k),U=e(),j=he(n[1]),W=e(),m=t("p"),G=he(O),V=e(),f=t("a"),$=he(n[1]),q=e(),y=t("div"),g=t("label"),X=he(M),Z=e(),v=t("vaadin-date-picker"),J=e(),b=t("div"),w=t("label"),K=he(I),Q=e(),x=t("input"),ee=e(),S=t("span"),te=e(),E=t("div"),H.c(),ne=e(),C=t("div"),T=t("button"),re=he(N),this.c=ae,ue(o,"class","PlayerSelfExclusionTitle "+(n[9]?"PlayerSelfExclusionTitleNone":"")),ue(o,"part","PlayerSelfExclusionTitle "+(n[9]?"PlayerSelfExclusionTitleNone":"")),ue(l,"class","SelfExclusionDescriptionText"),ue(l,"part","SelfExclusionDescriptionText"),ue(u,"class","SelfExclusionDescriptionText"),ue(u,"part","SelfExclusionDescriptionText"),ue(d,"class","SelfExclusionDescriptionText"),ue(d,"part","SelfExclusionDescriptionText"),ue(f,"href",_="mailto:"+n[1]),ue(m,"class","SelfExclusionDescriptionText"),ue(m,"part","SelfExclusionDescriptionText"),ue(a,"class","SelfExclusionDescription "+(n[9]?"SelfExclusionDescriptionMobile":"")),ue(a,"part","SelfExclusionDescription "+(n[9]?"SelfExclusionDescriptionMobile":"")),ue(g,"for","SelfExclusionDate"),ye(v,"min",n[6]),ye(v,"max",n[7]),ye(v,"value",n[6]),ue(y,"class","SelfExclusionDateWrapper "+(n[9]?"SelfExclusionDateWrapperMobile":"")),ue(y,"part","SelfExclusionDateWrapper "+(n[9]?"SelfExclusionDateWrapperMobile":"")),ue(x,"type","Checkbox"),ue(S,"class","Checkmark"),ue(S,"part","Checkmark"),ue(w,"class","SelfExclusionRadio"),ue(w,"part","SelfExclusionRadio"),ue(b,"class","SelfExclusionRadioWrapper "+(n[9]?"SelfExclusionRadioWrapperMobile":"")),ue(b,"part","SelfExclusionRadioWrapper "+(n[9]?"SelfExclusionRadioWrapperMobile":"")),ue(E,"class","SelfExclusionDescription "+(n[9]?"SelfExclusionDescriptionMobile":"")),ue(E,"part","SelfExclusionDescription "+(n[9]?"SelfExclusionDescriptionMobile":"")),ue(T,"class","SelfExclusionSave"),ue(T,"part","SelfExclusionSave"),ue(C,"class","SelfExclusionActionButtons "+(n[9]?"SelfExclusionActionButtonsMobile":"")),ue(C,"part","SelfExclusionActionButtons "+(n[9]?"SelfExclusionActionButtonsMobile":"")),ue(i,"class","SelfExclusionWrapper "+(n[9]?"SelfExclusionWrapperMobile":"")),ue(i,"part","SelfExclusionWrapper "+(n[9]?"SelfExclusionWrapperMobile":""))},m(e,t){pe(e,r,t),le(r,i),L&&L.m(i,null),le(i,B),le(i,o),le(o,s),le(i,F),le(i,a),le(a,l),le(l,h),le(a,z),le(a,u),le(u,c),le(a,Y),le(a,d),le(d,p),le(d,U),le(d,j),le(a,W),le(a,m),le(m,G),le(m,V),le(m,f),le(f,$),le(i,q),le(i,y),le(y,g),le(g,X),le(y,Z),le(y,v),n[18](v),le(i,J),le(i,b),le(b,w),le(w,K),le(w,Q),le(w,x),le(w,ee),le(w,S),le(i,te),le(i,E),H.m(E,null),le(i,ne),le(i,C),le(C,T),le(T,re),n[21](r),ie||(oe=[_e(x,"click",n[19]),_e(T,"click",n[20])],ie=!0)},p(e,t){e[9]&&L.p(e,t),256&t[0]&&A!==(A=e[8]("selfExclusion.title")+"")&&ce(s,A),257&t[0]&&P!==(P=e[8]("selfExclusion.selfExclusionText1",{values:{operatorname:e[0]}})+"")&&ce(h,P),256&t[0]&&D!==(D=e[8]("selfExclusion.selfExclusionText2")+"")&&ce(c,D),256&t[0]&&k!==(k=e[8]("selfExclusion.selfExclusionText3")+"")&&ce(p,k),2&t[0]&&ce(j,e[1]),256&t[0]&&O!==(O=e[8]("selfExclusion.selfExclusionText4")+"")&&ce(G,O),2&t[0]&&ce($,e[1]),2&t[0]&&_!==(_="mailto:"+e[1])&&ue(f,"href",_),256&t[0]&&M!==(M=e[8]("selfExclusion.duration")+"")&&ce(X,M),64&t[0]&&ye(v,"min",e[6]),128&t[0]&&ye(v,"max",e[7]),64&t[0]&&ye(v,"value",e[6]),256&t[0]&&I!==(I=e[8]("selfExclusion.forever")+"")&&ce(K,I),R===(R=se(e))&&H?H.p(e,t):(H.d(1),(H=R(e))&&(H.c(),H.m(E,null))),256&t[0]&&N!==(N=e[8]("selfExclusion.save")+"")&&ce(re,N)},i:ae,o:ae,d(e){e&&me(r),L&&L.d(),n[18](null),H.d(),n[21](null),ie=!1,de(oe)}}}function Nh(t,e,n){let r;var i=xr;t.$$.on_destroy.push(L(i,e=>n(8,r=e)));let o,s,a,l,{lang:h="en"}=e,{operator:u="Everymatrix"}=e,{supportemail:c=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:m=""}=e,f="PC"!=((i=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),_=!1,y="",g="",v=new Date;Object.keys(Ar).forEach(e=>{Tr(e,Ar[e])}),a=Cr(v.setDate(v.getDate())).add(6,"M").format("YYYY-MM-DD"),l=Cr(v.setDate(v.getDate())).add(5,"y").format("YYYY-MM-DD"),g=a;const b=()=>{n(4,_=0==_)},w=e=>{1==_?y="SelfExclusionPermanent":(y="SelfExclusionUntilSelectedDate",e&&0<e.length&&n(5,g=e))},x=e=>{e.preventDefault(),w(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:y,selfExclusionExpiryDate:g},window.location.href)},S=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},E=e=>{w(e.target.value)};e=()=>()=>{s.removeEventListener("change",E)},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(13,h=e.lang),"operator"in e&&n(0,u=e.operator),"supportemail"in e&&n(1,c=e.supportemail),"clientstyling"in e&&n(14,d=e.clientstyling),"clientstylingurl"in e&&n(15,p=e.clientstylingurl),"translationurl"in e&&n(16,m=e.translationurl)},t.$$.update=()=>{if(8&t.$$.dirty[0]&&s&&s.addEventListener("change",E,!1),8192&t.$$.dirty[0]&&h&&(e=h,fr.set(e)),32772&t.$$.dirty[0]&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(16388&t.$$.dirty[0]&&d&&o){let e=document.createElement("style");e.innerHTML=d,o.appendChild(e)}var e;65536&t.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Tr(e,t[e])})}).catch(e=>{console.log(e)})},[u,c,o,s,_,g,a,l,r,f,b,x,S,h,d,p,m,()=>S(),function(e){F[e?"unshift":"push"](()=>{s=e,n(3,s)})},()=>b(),e=>x(e),function(e){F[e?"unshift":"push"](()=>{o=e,n(2,o)})}]}customElements.define(kh.is,kh);class Lh extends X{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>",q(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:13,operator:0,supportemail:1,clientstyling:14,clientstylingurl:15,translationurl:16},null,[-1,-1]),e&&(e.target&&pe(e.target,this,e.anchor),e.props&&(this.$set(e.props),_()))}static get observedAttributes(){return["lang","operator","supportemail","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[13]}set lang(e){this.$$set({lang:e}),_()}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),_()}get supportemail(){return this.$$.ctx[1]}set supportemail(e){this.$$set({supportemail:e}),_()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(e){this.$$set({clientstyling:e}),_()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),_()}get translationurl(){return this.$$.ctx[16]}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[8]("selfExclusion.temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){n=t("p"),r=t("strong"),i=he(o),ue(n,"class","SelfExclusionDescriptionText"),ue(n,"part","SelfExclusionDescriptionText")},m(e,t){pe(e,n,t),le(n,r),le(r,i)},p(e,t){288&t[0]&&o!==(o=e[8]("selfExclusion.temporarySelfExclusion",{values:{date:e[5]}})+"")&&ce(i,o)},d(e){e&&me(n)}}}function Mh(e){let n,r,i,o=e[8]("selfExclusion.permanentSelfExclusion")+"";return{c(){n=t("p"),r=t("strong"),i=he(o),ue(n,"class","SelfExclusionDescriptionText"),ue(n,"part","SelfExclusionDescriptionText")},m(e,t){pe(e,n,t),le(n,r),le(r,i)},p(e,t){256&t[0]&&o!==(o=e[8]("selfExclusion.permanentSelfExclusion")+"")&&ce(i,o)},d(e){e&&me(n)}}}function Ih(n){let r,i,B,o,s,F,a,l,h,z,u,c,Y,d,p,U,j,W,m,G,V,f,$,_,q,y,g,X,Z,v,J,b,w,K,Q,x,ee,S,te,E,ne,C,T,re,ie,oe,A=n[8]("selfExclusion.title")+"",P=n[8]("selfExclusion.selfExclusionText1",{values:{operatorname:n[0]}})+"",D=n[8]("selfExclusion.selfExclusionText2")+"",k=n[8]("selfExclusion.selfExclusionText3")+"",O=n[8]("selfExclusion.selfExclusionText4")+"",M=n[8]("selfExclusion.duration")+"",I=n[8]("selfExclusion.forever")+"",N=n[8]("selfExclusion.save")+"",L=n[9]&&function(n){let r,i,o,s,a,l,h,u,c,d,p,m,f,_=n[8]("selfExclusion.title")+"";return{c(){r=t("div"),i=fe("svg"),o=fe("defs"),s=fe("style"),a=he(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=fe("g"),h=fe("g"),u=fe("path"),c=e(),d=t("h2"),p=he(_),ue(u,"class","aaa"),ue(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ue(u,"transform","translate(15 15) rotate(180)"),ue(h,"transform","translate(20 158)"),ue(l,"transform","translate(-20 -158)"),ue(i,"xmlns","http://www.w3.org/2000/svg"),ue(i,"width","15"),ue(i,"height","15"),ue(i,"viewBox","0 0 15 15"),ue(d,"class","PlayerSelfExclusionTitleMobile"),ue(d,"part","PlayerSelfExclusionTitleMobile"),ue(r,"class","MenuReturnButton"),ue(r,"part","MenuReturnButton")},m(e,t){pe(e,r,t),le(r,i),le(i,o),le(o,s),le(s,a),le(i,l),le(l,h),le(h,u),le(r,c),le(r,d),le(d,p),m||(f=_e(r,"click",n[17]),m=!0)},p(e,t){256&t[0]&&_!==(_=e[8]("selfExclusion.title")+"")&&ce(p,_)},d(e){e&&me(r),m=!1,f()}}}(n);function se(e){return e[4]?Mh:Oh}let R=se(n),H=R(n);return{c(){r=t("div"),i=t("form"),L&&L.c(),B=e(),o=t("h2"),s=he(A),F=e(),a=t("div"),l=t("p"),h=he(P),z=e(),u=t("p"),c=he(D),Y=e(),d=t("p"),p=he(k),U=e(),j=he(n[1]),W=e(),m=t("p"),G=he(O),V=e(),f=t("a"),$=he(n[1]),q=e(),y=t("div"),g=t("label"),X=he(M),Z=e(),v=t("vaadin-date-picker"),J=e(),b=t("div"),w=t("label"),K=he(I),Q=e(),x=t("input"),ee=e(),S=t("span"),te=e(),E=t("div"),H.c(),ne=e(),C=t("div"),T=t("button"),re=he(N),this.c=ae,ue(o,"class","PlayerSelfExclusionTitle "+(n[9]?"PlayerSelfExclusionTitleNone":"")),ue(o,"part","PlayerSelfExclusionTitle "+(n[9]?"PlayerSelfExclusionTitleNone":"")),ue(l,"class","SelfExclusionDescriptionText"),ue(l,"part","SelfExclusionDescriptionText"),ue(u,"class","SelfExclusionDescriptionText"),ue(u,"part","SelfExclusionDescriptionText"),ue(d,"class","SelfExclusionDescriptionText"),ue(d,"part","SelfExclusionDescriptionText"),ue(f,"href",_="mailto:"+n[1]),ue(m,"class","SelfExclusionDescriptionText"),ue(m,"part","SelfExclusionDescriptionText"),ue(a,"class","SelfExclusionDescription "+(n[9]?"SelfExclusionDescriptionMobile":"")),ue(a,"part","SelfExclusionDescription "+(n[9]?"SelfExclusionDescriptionMobile":"")),ue(g,"for","SelfExclusionDate"),ye(v,"min",n[6]),ye(v,"max",n[7]),ye(v,"value",n[6]),ue(y,"class","SelfExclusionDateWrapper "+(n[9]?"SelfExclusionDateWrapperMobile":"")),ue(y,"part","SelfExclusionDateWrapper "+(n[9]?"SelfExclusionDateWrapperMobile":"")),ue(x,"type","Checkbox"),ue(S,"class","Checkmark"),ue(S,"part","Checkmark"),ue(w,"class","SelfExclusionRadio"),ue(w,"part","SelfExclusionRadio"),ue(b,"class","SelfExclusionRadioWrapper "+(n[9]?"SelfExclusionRadioWrapperMobile":"")),ue(b,"part","SelfExclusionRadioWrapper "+(n[9]?"SelfExclusionRadioWrapperMobile":"")),ue(E,"class","SelfExclusionDescription "+(n[9]?"SelfExclusionDescriptionMobile":"")),ue(E,"part","SelfExclusionDescription "+(n[9]?"SelfExclusionDescriptionMobile":"")),ue(T,"class","SelfExclusionSave"),ue(T,"part","SelfExclusionSave"),ue(C,"class","SelfExclusionActionButtons "+(n[9]?"SelfExclusionActionButtonsMobile":"")),ue(C,"part","SelfExclusionActionButtons "+(n[9]?"SelfExclusionActionButtonsMobile":"")),ue(i,"class","SelfExclusionWrapper "+(n[9]?"SelfExclusionWrapperMobile":"")),ue(i,"part","SelfExclusionWrapper "+(n[9]?"SelfExclusionWrapperMobile":""))},m(e,t){pe(e,r,t),le(r,i),L&&L.m(i,null),le(i,B),le(i,o),le(o,s),le(i,F),le(i,a),le(a,l),le(l,h),le(a,z),le(a,u),le(u,c),le(a,Y),le(a,d),le(d,p),le(d,U),le(d,j),le(a,W),le(a,m),le(m,G),le(m,V),le(m,f),le(f,$),le(i,q),le(i,y),le(y,g),le(g,X),le(y,Z),le(y,v),n[18](v),le(i,J),le(i,b),le(b,w),le(w,K),le(w,Q),le(w,x),le(w,ee),le(w,S),le(i,te),le(i,E),H.m(E,null),le(i,ne),le(i,C),le(C,T),le(T,re),n[21](r),ie||(oe=[_e(x,"click",n[19]),_e(T,"click",n[20])],ie=!0)},p(e,t){e[9]&&L.p(e,t),256&t[0]&&A!==(A=e[8]("selfExclusion.title")+"")&&ce(s,A),257&t[0]&&P!==(P=e[8]("selfExclusion.selfExclusionText1",{values:{operatorname:e[0]}})+"")&&ce(h,P),256&t[0]&&D!==(D=e[8]("selfExclusion.selfExclusionText2")+"")&&ce(c,D),256&t[0]&&k!==(k=e[8]("selfExclusion.selfExclusionText3")+"")&&ce(p,k),2&t[0]&&ce(j,e[1]),256&t[0]&&O!==(O=e[8]("selfExclusion.selfExclusionText4")+"")&&ce(G,O),2&t[0]&&ce($,e[1]),2&t[0]&&_!==(_="mailto:"+e[1])&&ue(f,"href",_),256&t[0]&&M!==(M=e[8]("selfExclusion.duration")+"")&&ce(X,M),64&t[0]&&ye(v,"min",e[6]),128&t[0]&&ye(v,"max",e[7]),64&t[0]&&ye(v,"value",e[6]),256&t[0]&&I!==(I=e[8]("selfExclusion.forever")+"")&&ce(K,I),R===(R=se(e))&&H?H.p(e,t):(H.d(1),(H=R(e))&&(H.c(),H.m(E,null))),256&t[0]&&N!==(N=e[8]("selfExclusion.save")+"")&&ce(re,N)},i:ae,o:ae,d(e){e&&me(r),L&&L.d(),n[18](null),H.d(),n[21](null),ie=!1,de(oe)}}}function Nh(t,e,n){let r;var i=xr;t.$$.on_destroy.push(L(i,e=>n(8,r=e)));let o,s,a,l,{lang:h="en"}=e,{operator:u="Everymatrix"}=e,{supportemail:c=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:m=""}=e,f="PC"!=((i=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),_=!1,y="",g="",v=new Date;Object.keys(Ar).forEach(e=>{Tr(e,Ar[e])}),a=Cr(v.setDate(v.getDate())).add(6,"M").format("YYYY-MM-DD"),l=Cr(v.setDate(v.getDate())).add(5,"y").format("YYYY-MM-DD"),g=a;const b=()=>{n(4,_=0==_)},w=e=>{1==_?y="SelfExclusionPermanent":(y="SelfExclusionUntilSelectedDate",e&&0<e.length&&n(5,g=e))},x=e=>{e.preventDefault(),w(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:y,selfExclusionExpiryDate:g},window.location.href)},S=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},E=e=>{w(e.target.value)};e=()=>()=>{s.removeEventListener("change",E)},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(13,h=e.lang),"operator"in e&&n(0,u=e.operator),"supportemail"in e&&n(1,c=e.supportemail),"clientstyling"in e&&n(14,d=e.clientstyling),"clientstylingurl"in e&&n(15,p=e.clientstylingurl),"translationurl"in e&&n(16,m=e.translationurl)},t.$$.update=()=>{if(8&t.$$.dirty[0]&&s&&s.addEventListener("change",E,!1),8192&t.$$.dirty[0]&&h&&(e=h,fr.set(e)),32772&t.$$.dirty[0]&&p&&o){let e=new URL(p),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1)})}if(16388&t.$$.dirty[0]&&d&&o){let e=document.createElement("style");e.innerHTML=d,o.appendChild(e)}var e;65536&t.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Tr(e,t[e])})}).catch(e=>{console.log(e)})},[u,c,o,s,_,g,a,l,r,f,b,x,S,h,d,p,m,()=>S(),function(e){F[e?"unshift":"push"](()=>{s=e,n(3,s)})},()=>b(),e=>x(e),function(e){F[e?"unshift":"push"](()=>{o=e,n(2,o)})}]}customElements.define(kh.is,kh);class Lh extends X{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>',q(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:13,operator:0,supportemail:1,clientstyling:14,clientstylingurl:15,translationurl:16},null,[-1,-1]),e&&(e.target&&pe(e.target,this,e.anchor),e.props&&(this.$set(e.props),_()))}static get observedAttributes(){return["lang","operator","supportemail","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[13]}set lang(e){this.$$set({lang:e}),_()}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),_()}get supportemail(){return this.$$.ctx[1]}set supportemail(e){this.$$set({supportemail:e}),_()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(e){this.$$set({clientstyling:e}),_()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),_()}get translationurl(){return this.$$.ctx[16]}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