@everymatrix/player-account-self-exclusion 0.0.279 → 0.0.280
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(),ja(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 pu(e){let n,r,i,o=e[6]("selfExclusion.temporarySelfExclusion",{values:{date:e[3]}})+"";return{c(){n=t("p"),r=t("strong"),i=le(o),he(n,"class","SelfExclusionDescriptionText"),he(n,"part","SelfExclusionDescriptionText")},m(e,t){se(e,n,t),oe(n,r),oe(r,i)},p(e,t){72&t&&o!==(o=e[6]("selfExclusion.temporarySelfExclusion",{values:{date:e[3]}})+"")&&pe(i,o)},d(e){e&&ae(n)}}}function mu(e){let n,r,i,o=e[6]("selfExclusion.permanentSelfExclusion")+"";return{c(){n=t("p"),r=t("strong"),i=le(o),he(n,"class","SelfExclusionDescriptionText"),he(n,"part","SelfExclusionDescriptionText")},m(e,t){se(e,n,t),oe(n,r),oe(r,i)},p(e,t){64&t&&o!==(o=e[6]("selfExclusion.permanentSelfExclusion")+"")&&pe(i,o)},d(e){e&&ae(n)}}}function fu(n){let r,i,o,s,a,l,u,c,h,d,p,m,f,_,y,g,v,b,w,x,S,E,C,T,A,P,D,k,O,M,N,I,L,R,F,z,Y,U,B,H,j,W,V=n[6]("selfExclusion.title")+"",$=n[6]("selfExclusion.selfExclusionText1",{values:{operatorname:n[0]}})+"",G=n[6]("selfExclusion.selfExclusionText2")+"",q=n[6]("selfExclusion.selfExclusionText3")+"",X=n[6]("selfExclusion.selfExclusionText4")+"",J=n[6]("selfExclusion.duration")+"",Z=n[6]("selfExclusion.forever")+"",K=n[6]("selfExclusion.save")+"",Q=n[7]&&function(n){let r,i,o,s,a,l,u,c,h,d,p,m,f,_=n[6]("selfExclusion.title")+"";return{c(){r=t("div"),i=e("svg"),o=e("defs"),s=e("style"),a=le(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=e("g"),u=e("g"),c=e("path"),h=ue(),d=t("h2"),p=le(_),he(c,"class","aaa"),he(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),he(c,"transform","translate(15 15) rotate(180)"),he(u,"transform","translate(20 158)"),he(l,"transform","translate(-20 -158)"),he(i,"xmlns","http://www.w3.org/2000/svg"),he(i,"width","15"),he(i,"height","15"),he(i,"viewBox","0 0 15 15"),he(d,"class","PlayerSelfExclusionTitleMobile"),he(d,"part","PlayerSelfExclusionTitleMobile"),he(r,"class","MenuReturnButton"),he(r,"part","MenuReturnButton")},m(e,t){se(e,r,t),oe(r,i),oe(i,o),oe(o,s),oe(s,a),oe(i,l),oe(l,u),oe(u,c),oe(r,h),oe(r,d),oe(d,p),m||(f=ce(r,"click",n[12]),m=!0)},p(e,t){64&t&&_!==(_=e[6]("selfExclusion.title")+"")&&pe(p,_)},d(e){e&&ae(r),m=!1,f()}}}(n);function ee(e){return e[2]?mu:pu}let te=ee(n),ne=te(n);return{c(){r=t("div"),Q&&Q.c(),i=ue(),o=t("h2"),s=le(V),a=ue(),l=t("div"),u=t("p"),c=le($),h=ue(),d=t("p"),p=le(G),m=ue(),f=t("p"),_=le(q),y=le(" support@everymatrix.com"),g=ue(),v=t("p"),b=le(X),w=ue(),x=t("a"),x.textContent="support@everymatrix.com",S=ue(),E=t("div"),C=t("label"),T=le(J),A=ue(),P=t("vaadin-date-picker"),D=ue(),k=t("div"),O=t("label"),M=le(Z),N=ue(),I=t("input"),L=ue(),R=t("span"),F=ue(),z=t("div"),ne.c(),Y=ue(),U=t("div"),B=t("button"),H=le(K),this.c=re,he(o,"class","PlayerSelfExclusionTitle "+(n[7]?"PlayerSelfExclusionTitleNone":"")),he(o,"part","PlayerSelfExclusionTitle "+(n[7]?"PlayerSelfExclusionTitleNone":"")),he(u,"class","SelfExclusionDescriptionText"),he(u,"part","SelfExclusionDescriptionText"),he(d,"class","SelfExclusionDescriptionText"),he(d,"part","SelfExclusionDescriptionText"),he(f,"class","SelfExclusionDescriptionText"),he(f,"part","SelfExclusionDescriptionText"),he(x,"href","mailto:support@everymatrix.com"),he(v,"class","SelfExclusionDescriptionText"),he(v,"part","SelfExclusionDescriptionText"),he(l,"class","SelfExclusionDescription "+(n[7]?"SelfExclusionDescriptionMobile":"")),he(l,"part","SelfExclusionDescription "+(n[7]?"SelfExclusionDescriptionMobile":"")),he(C,"for","SelfExclusionDate"),de(P,"min",n[4]),de(P,"max",n[5]),de(P,"value",n[4]),he(E,"class","SelfExclusionDateWrapper "+(n[7]?"SelfExclusionDateWrapperMobile":"")),he(E,"part","SelfExclusionDateWrapper "+(n[7]?"SelfExclusionDateWrapperMobile":"")),he(I,"type","Checkbox"),he(R,"class","Checkmark"),he(R,"part","Checkmark"),he(O,"class","SelfExclusionRadio"),he(O,"part","SelfExclusionRadio"),he(k,"class","SelfExclusionRadioWrapper "+(n[7]?"SelfExclusionRadioWrapperMobile":"")),he(k,"part","SelfExclusionRadioWrapper "+(n[7]?"SelfExclusionRadioWrapperMobile":"")),he(z,"class","SelfExclusionDescription "+(n[7]?"SelfExclusionDescriptionMobile":"")),he(z,"part","SelfExclusionDescription "+(n[7]?"SelfExclusionDescriptionMobile":"")),he(B,"class","SelfExclusionSave"),he(B,"part","SelfExclusionSave"),he(U,"class","SelfExclusionActionButtons "+(n[7]?"SelfExclusionActionButtonsMobile":"")),he(U,"part","SelfExclusionActionButtons "+(n[7]?"SelfExclusionActionButtonsMobile":"")),he(r,"class","SelfExclusionWrapper "+(n[7]?"SelfExclusionWrapperMobile":"")),he(r,"part","SelfExclusionWrapper "+(n[7]?"SelfExclusionWrapperMobile":""))},m(e,t){se(e,r,t),Q&&Q.m(r,null),oe(r,i),oe(r,o),oe(o,s),oe(r,a),oe(r,l),oe(l,u),oe(u,c),oe(l,h),oe(l,d),oe(d,p),oe(l,m),oe(l,f),oe(f,_),oe(f,y),oe(l,g),oe(l,v),oe(v,b),oe(v,w),oe(v,x),oe(r,S),oe(r,E),oe(E,C),oe(C,T),oe(E,A),oe(E,P),n[13](P),oe(r,D),oe(r,k),oe(k,O),oe(O,M),oe(O,N),oe(O,I),oe(O,L),oe(O,R),oe(r,F),oe(r,z),ne.m(z,null),oe(r,Y),oe(r,U),oe(U,B),oe(B,H),j||(W=[ce(I,"click",n[14]),ce(B,"click",n[15])],j=!0)},p(e,[t]){e[7]&&Q.p(e,t),64&t&&V!==(V=e[6]("selfExclusion.title")+"")&&pe(s,V),65&t&&$!==($=e[6]("selfExclusion.selfExclusionText1",{values:{operatorname:e[0]}})+"")&&pe(c,$),64&t&&G!==(G=e[6]("selfExclusion.selfExclusionText2")+"")&&pe(p,G),64&t&&q!==(q=e[6]("selfExclusion.selfExclusionText3")+"")&&pe(_,q),64&t&&X!==(X=e[6]("selfExclusion.selfExclusionText4")+"")&&pe(b,X),64&t&&J!==(J=e[6]("selfExclusion.duration")+"")&&pe(T,J),16&t&&de(P,"min",e[4]),32&t&&de(P,"max",e[5]),16&t&&de(P,"value",e[4]),64&t&&Z!==(Z=e[6]("selfExclusion.forever")+"")&&pe(M,Z),te===(te=ee(e))&&ne?ne.p(e,t):(ne.d(1),ne=te(e),ne&&(ne.c(),ne.m(z,null))),64&t&&K!==(K=e[6]("selfExclusion.save")+"")&&pe(H,K)},i:re,o:re,d(e){e&&ae(r),Q&&Q.d(),n[13](null),ne.d(),j=!1,ie(W)}}}function _u(t,e,n){let r;var i=nr;t.$$.on_destroy.push(b(i,e=>n(6,r=e)));let o,s,a,{lang:l="en"}=e,{operator:u="Everymatrix"}=e,c="PC"!=((e=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),h=!1,d="",p="",m=new Date;Object.keys(sr).forEach(e=>{Rn(e,sr[e])}),s=or(m.setDate(m.getDate())).add(6,"M").format("YYYY-MM-DD"),a=or(m.setDate(m.getDate())).add(5,"y").format("YYYY-MM-DD"),p=s;const f=()=>{n(2,h=0==h)},_=e=>{1==h?d="SelfExclusionPermanent":(d="SelfExclusionUntilSelectedDate",e&&0<e.length&&n(3,p=e))},y=()=>{_(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:d,selfExclusionExpiryDate:p},window.location.href)},g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:c},window.location.href)},v=e=>{_(e.target.value)};e=()=>()=>{o.removeEventListener("change",v)},function(){if(!w)throw new Error("Function called outside component initialization");return w}().$$.on_mount.push(e);return t.$$set=e=>{"lang"in e&&n(11,l=e.lang),"operator"in e&&n(0,u=e.operator)},t.$$.update=()=>{var e;2&t.$$.dirty&&o&&o.addEventListener("change",v,!1),2048&t.$$.dirty&&l&&(e=l,$n.set(e))},[u,o,h,p,s,a,r,c,f,y,g,l,()=>g(),function(e){x[e?"unshift":"push"](()=>{o=e,n(1,o)})},()=>f(),()=>y()]}customElements.define(du.is,du);class yu extends l{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:9;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>",a(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},_u,fu,n,{lang:11,operator:0}),e&&(e.target&&se(e.target,this,e.anchor),e.props&&(this.$set(e.props),v()))}static get observedAttributes(){return["lang","operator"]}get lang(){return this.$$.ctx[11]}set lang(e){this.$set({lang:e}),v()}get operator(){return this.$$.ctx[0]}set operator(e){this.$set({operator:e}),v()}}return customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",yu),yu});
|
|
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(),ja(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 pu(e){let n,r,i,o=e[6]("selfExclusion.temporarySelfExclusion",{values:{date:e[3]}})+"";return{c(){n=t("p"),r=t("strong"),i=le(o),he(n,"class","SelfExclusionDescriptionText"),he(n,"part","SelfExclusionDescriptionText")},m(e,t){se(e,n,t),oe(n,r),oe(r,i)},p(e,t){72&t&&o!==(o=e[6]("selfExclusion.temporarySelfExclusion",{values:{date:e[3]}})+"")&&pe(i,o)},d(e){e&&ae(n)}}}function mu(e){let n,r,i,o=e[6]("selfExclusion.permanentSelfExclusion")+"";return{c(){n=t("p"),r=t("strong"),i=le(o),he(n,"class","SelfExclusionDescriptionText"),he(n,"part","SelfExclusionDescriptionText")},m(e,t){se(e,n,t),oe(n,r),oe(r,i)},p(e,t){64&t&&o!==(o=e[6]("selfExclusion.permanentSelfExclusion")+"")&&pe(i,o)},d(e){e&&ae(n)}}}function fu(n){let r,i,o,s,a,l,u,c,h,d,p,m,f,_,y,g,v,b,w,x,S,E,C,T,A,P,D,k,O,M,N,I,L,R,F,z,Y,U,B,H,j,W,V=n[6]("selfExclusion.title")+"",$=n[6]("selfExclusion.selfExclusionText1",{values:{operatorname:n[0]}})+"",G=n[6]("selfExclusion.selfExclusionText2")+"",q=n[6]("selfExclusion.selfExclusionText3")+"",X=n[6]("selfExclusion.selfExclusionText4")+"",J=n[6]("selfExclusion.duration")+"",Z=n[6]("selfExclusion.forever")+"",K=n[6]("selfExclusion.save")+"",Q=n[7]&&function(n){let r,i,o,s,a,l,u,c,h,d,p,m,f,_=n[6]("selfExclusion.title")+"";return{c(){r=t("div"),i=e("svg"),o=e("defs"),s=e("style"),a=le(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=e("g"),u=e("g"),c=e("path"),h=ue(),d=t("h2"),p=le(_),he(c,"class","aaa"),he(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),he(c,"transform","translate(15 15) rotate(180)"),he(u,"transform","translate(20 158)"),he(l,"transform","translate(-20 -158)"),he(i,"xmlns","http://www.w3.org/2000/svg"),he(i,"width","15"),he(i,"height","15"),he(i,"viewBox","0 0 15 15"),he(d,"class","PlayerSelfExclusionTitleMobile"),he(d,"part","PlayerSelfExclusionTitleMobile"),he(r,"class","MenuReturnButton"),he(r,"part","MenuReturnButton")},m(e,t){se(e,r,t),oe(r,i),oe(i,o),oe(o,s),oe(s,a),oe(i,l),oe(l,u),oe(u,c),oe(r,h),oe(r,d),oe(d,p),m||(f=ce(r,"click",n[12]),m=!0)},p(e,t){64&t&&_!==(_=e[6]("selfExclusion.title")+"")&&pe(p,_)},d(e){e&&ae(r),m=!1,f()}}}(n);function ee(e){return e[2]?mu:pu}let te=ee(n),ne=te(n);return{c(){r=t("div"),Q&&Q.c(),i=ue(),o=t("h2"),s=le(V),a=ue(),l=t("div"),u=t("p"),c=le($),h=ue(),d=t("p"),p=le(G),m=ue(),f=t("p"),_=le(q),y=le(" support@everymatrix.com"),g=ue(),v=t("p"),b=le(X),w=ue(),x=t("a"),x.textContent="support@everymatrix.com",S=ue(),E=t("div"),C=t("label"),T=le(J),A=ue(),P=t("vaadin-date-picker"),D=ue(),k=t("div"),O=t("label"),M=le(Z),N=ue(),I=t("input"),L=ue(),R=t("span"),F=ue(),z=t("div"),ne.c(),Y=ue(),U=t("div"),B=t("button"),H=le(K),this.c=re,he(o,"class","PlayerSelfExclusionTitle "+(n[7]?"PlayerSelfExclusionTitleNone":"")),he(o,"part","PlayerSelfExclusionTitle "+(n[7]?"PlayerSelfExclusionTitleNone":"")),he(u,"class","SelfExclusionDescriptionText"),he(u,"part","SelfExclusionDescriptionText"),he(d,"class","SelfExclusionDescriptionText"),he(d,"part","SelfExclusionDescriptionText"),he(f,"class","SelfExclusionDescriptionText"),he(f,"part","SelfExclusionDescriptionText"),he(x,"href","mailto:support@everymatrix.com"),he(v,"class","SelfExclusionDescriptionText"),he(v,"part","SelfExclusionDescriptionText"),he(l,"class","SelfExclusionDescription "+(n[7]?"SelfExclusionDescriptionMobile":"")),he(l,"part","SelfExclusionDescription "+(n[7]?"SelfExclusionDescriptionMobile":"")),he(C,"for","SelfExclusionDate"),de(P,"min",n[4]),de(P,"max",n[5]),de(P,"value",n[4]),he(E,"class","SelfExclusionDateWrapper "+(n[7]?"SelfExclusionDateWrapperMobile":"")),he(E,"part","SelfExclusionDateWrapper "+(n[7]?"SelfExclusionDateWrapperMobile":"")),he(I,"type","Checkbox"),he(R,"class","Checkmark"),he(R,"part","Checkmark"),he(O,"class","SelfExclusionRadio"),he(O,"part","SelfExclusionRadio"),he(k,"class","SelfExclusionRadioWrapper "+(n[7]?"SelfExclusionRadioWrapperMobile":"")),he(k,"part","SelfExclusionRadioWrapper "+(n[7]?"SelfExclusionRadioWrapperMobile":"")),he(z,"class","SelfExclusionDescription "+(n[7]?"SelfExclusionDescriptionMobile":"")),he(z,"part","SelfExclusionDescription "+(n[7]?"SelfExclusionDescriptionMobile":"")),he(B,"class","SelfExclusionSave"),he(B,"part","SelfExclusionSave"),he(U,"class","SelfExclusionActionButtons "+(n[7]?"SelfExclusionActionButtonsMobile":"")),he(U,"part","SelfExclusionActionButtons "+(n[7]?"SelfExclusionActionButtonsMobile":"")),he(r,"class","SelfExclusionWrapper "+(n[7]?"SelfExclusionWrapperMobile":"")),he(r,"part","SelfExclusionWrapper "+(n[7]?"SelfExclusionWrapperMobile":""))},m(e,t){se(e,r,t),Q&&Q.m(r,null),oe(r,i),oe(r,o),oe(o,s),oe(r,a),oe(r,l),oe(l,u),oe(u,c),oe(l,h),oe(l,d),oe(d,p),oe(l,m),oe(l,f),oe(f,_),oe(f,y),oe(l,g),oe(l,v),oe(v,b),oe(v,w),oe(v,x),oe(r,S),oe(r,E),oe(E,C),oe(C,T),oe(E,A),oe(E,P),n[13](P),oe(r,D),oe(r,k),oe(k,O),oe(O,M),oe(O,N),oe(O,I),oe(O,L),oe(O,R),oe(r,F),oe(r,z),ne.m(z,null),oe(r,Y),oe(r,U),oe(U,B),oe(B,H),j||(W=[ce(I,"click",n[14]),ce(B,"click",n[15])],j=!0)},p(e,[t]){e[7]&&Q.p(e,t),64&t&&V!==(V=e[6]("selfExclusion.title")+"")&&pe(s,V),65&t&&$!==($=e[6]("selfExclusion.selfExclusionText1",{values:{operatorname:e[0]}})+"")&&pe(c,$),64&t&&G!==(G=e[6]("selfExclusion.selfExclusionText2")+"")&&pe(p,G),64&t&&q!==(q=e[6]("selfExclusion.selfExclusionText3")+"")&&pe(_,q),64&t&&X!==(X=e[6]("selfExclusion.selfExclusionText4")+"")&&pe(b,X),64&t&&J!==(J=e[6]("selfExclusion.duration")+"")&&pe(T,J),16&t&&de(P,"min",e[4]),32&t&&de(P,"max",e[5]),16&t&&de(P,"value",e[4]),64&t&&Z!==(Z=e[6]("selfExclusion.forever")+"")&&pe(M,Z),te===(te=ee(e))&&ne?ne.p(e,t):(ne.d(1),ne=te(e),ne&&(ne.c(),ne.m(z,null))),64&t&&K!==(K=e[6]("selfExclusion.save")+"")&&pe(H,K)},i:re,o:re,d(e){e&&ae(r),Q&&Q.d(),n[13](null),ne.d(),j=!1,ie(W)}}}function _u(t,e,n){let r;var i=nr;t.$$.on_destroy.push(b(i,e=>n(6,r=e)));let o,s,a,{lang:l="en"}=e,{operator:u="Everymatrix"}=e,c="PC"!=((e=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),h=!1,d="",p="",m=new Date;Object.keys(sr).forEach(e=>{Rn(e,sr[e])}),s=or(m.setDate(m.getDate())).add(6,"M").format("YYYY-MM-DD"),a=or(m.setDate(m.getDate())).add(5,"y").format("YYYY-MM-DD"),p=s;const f=()=>{n(2,h=0==h)},_=e=>{1==h?d="SelfExclusionPermanent":(d="SelfExclusionUntilSelectedDate",e&&0<e.length&&n(3,p=e))},y=()=>{_(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:d,selfExclusionExpiryDate:p},window.location.href)},g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:c},window.location.href)},v=e=>{_(e.target.value)};e=()=>()=>{o.removeEventListener("change",v)},function(){if(!w)throw new Error("Function called outside component initialization");return w}().$$.on_mount.push(e);return t.$$set=e=>{"lang"in e&&n(11,l=e.lang),"operator"in e&&n(0,u=e.operator)},t.$$.update=()=>{var e;2&t.$$.dirty&&o&&o.addEventListener("change",v,!1),2048&t.$$.dirty&&l&&(e=l,$n.set(e))},[u,o,h,p,s,a,r,c,f,y,g,l,()=>g(),function(e){x[e?"unshift":"push"](()=>{o=e,n(1,o)})},()=>f(),()=>y()]}customElements.define(du.is,du);class yu extends l{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>",a(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},_u,fu,n,{lang:11,operator:0}),e&&(e.target&&se(e.target,this,e.anchor),e.props&&(this.$set(e.props),v()))}static get observedAttributes(){return["lang","operator"]}get lang(){return this.$$.ctx[11]}set lang(e){this.$set({lang:e}),v()}get operator(){return this.$$.ctx[0]}set operator(e){this.$set({operator:e}),v()}}return customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",yu),yu});
|
|
1689
1689
|
//# sourceMappingURL=player-account-self-exclusion.js.map
|