@everymatrix/player-account-self-exclusion 0.0.365 → 0.0.367

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,30 +1,30 @@
1
- # @everymatrix/player-account-self-exclusion
2
- ---------
3
-
4
- ## First step
5
- ---------
6
- ```
7
- lerna bootstrap
8
- ```
9
-
10
- ## Run Widget
11
- ---------
12
- - starts server at port 5050
13
- - has livereload
14
-
15
- ```
16
- yarn run dev
17
- ```
18
-
19
- ## Build Widget
20
- ---------
21
- ```
22
- yarn run build
23
- ```
24
-
25
- ## Publishing widget
26
- ---------
27
- - Note add your user to the npm
28
- ```
29
- lerna publish
30
- ```
1
+ # @everymatrix/player-account-self-exclusion
2
+ ---------
3
+
4
+ ## First step
5
+ ---------
6
+ ```
7
+ lerna bootstrap
8
+ ```
9
+
10
+ ## Run Widget
11
+ ---------
12
+ - starts server at port 5050
13
+ - has livereload
14
+
15
+ ```
16
+ yarn run dev
17
+ ```
18
+
19
+ ## Build Widget
20
+ ---------
21
+ ```
22
+ yarn run build
23
+ ```
24
+
25
+ ## Publishing widget
26
+ ---------
27
+ - Note add your user to the npm
28
+ ```
29
+ lerna publish
30
+ ```
@@ -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(),il(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 kh(e){let n,r,i,o=e[6]("selfExclusion.temporarySelfExclusion",{values:{date:e[3]}})+"";return{c(){n=t("p"),r=t("strong"),i=oe(o),se(n,"class","SelfExclusionDescriptionText"),se(n,"part","SelfExclusionDescriptionText")},m(e,t){he(e,n,t),ie(n,r),ie(r,i)},p(e,t){72&t&&o!==(o=e[6]("selfExclusion.temporarySelfExclusion",{values:{date:e[3]}})+"")&&ae(i,o)},d(e){e&&ue(n)}}}function Oh(e){let n,r,i,o=e[6]("selfExclusion.permanentSelfExclusion")+"";return{c(){n=t("p"),r=t("strong"),i=oe(o),se(n,"class","SelfExclusionDescriptionText"),se(n,"part","SelfExclusionDescriptionText")},m(e,t){he(e,n,t),ie(n,r),ie(r,i)},p(e,t){64&t&&o!==(o=e[6]("selfExclusion.permanentSelfExclusion")+"")&&ae(i,o)},d(e){e&&ue(n)}}}function Mh(n){let r,B,i,o,F,s,a,l,z,h,u,Y,c,d,U,j,p,m,W,f,G,_,y,g,V,v,q,b,w,$,X,x,Z,S,J,E,K,C,T,Q,ee,te,A=n[6]("selfExclusion.title")+"",P=n[6]("selfExclusion.selfExclusionText1",{values:{operatorname:n[0]}})+"",D=n[6]("selfExclusion.selfExclusionText2")+"",k=n[6]("selfExclusion.selfExclusionText3")+"",O=n[6]("selfExclusion.selfExclusionText4")+"",M=n[6]("selfExclusion.duration")+"",I=n[6]("selfExclusion.forever")+"",N=n[6]("selfExclusion.save")+"",L=n[7]&&function(n){let r,i,o,s,a,l,h,u,c,d,p,m,f,_=n[6]("selfExclusion.title")+"";return{c(){r=t("div"),i=ce("svg"),o=ce("defs"),s=ce("style"),a=oe(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=ce("g"),h=ce("g"),u=ce("path"),c=e(),d=t("h2"),p=oe(_),se(u,"class","aaa"),se(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),se(u,"transform","translate(15 15) rotate(180)"),se(h,"transform","translate(20 158)"),se(l,"transform","translate(-20 -158)"),se(i,"xmlns","http://www.w3.org/2000/svg"),se(i,"width","15"),se(i,"height","15"),se(i,"viewBox","0 0 15 15"),se(d,"class","PlayerSelfExclusionTitleMobile"),se(d,"part","PlayerSelfExclusionTitleMobile"),se(r,"class","MenuReturnButton"),se(r,"part","MenuReturnButton")},m(e,t){he(e,r,t),ie(r,i),ie(i,o),ie(o,s),ie(s,a),ie(i,l),ie(l,h),ie(h,u),ie(r,c),ie(r,d),ie(d,p),m||(f=de(r,"click",n[12]),m=!0)},p(e,t){64&t&&_!==(_=e[6]("selfExclusion.title")+"")&&ae(p,_)},d(e){e&&ue(r),m=!1,f()}}}(n);function ne(e){return e[2]?Oh:kh}let R=ne(n),H=R(n);return{c(){r=t("div"),L&&L.c(),B=e(),i=t("h2"),o=oe(A),F=e(),s=t("div"),a=t("p"),l=oe(P),z=e(),h=t("p"),u=oe(D),Y=e(),c=t("p"),d=oe(k),U=oe(" support@everymatrix.com"),j=e(),p=t("p"),m=oe(O),W=e(),(f=t("a")).textContent="support@everymatrix.com",G=e(),_=t("div"),y=t("label"),g=oe(M),V=e(),v=t("vaadin-date-picker"),q=e(),b=t("div"),w=t("label"),$=oe(I),X=e(),x=t("input"),Z=e(),S=t("span"),J=e(),E=t("div"),H.c(),K=e(),C=t("div"),T=t("button"),Q=oe(N),this.c=re,se(i,"class","PlayerSelfExclusionTitle "+(n[7]?"PlayerSelfExclusionTitleNone":"")),se(i,"part","PlayerSelfExclusionTitle "+(n[7]?"PlayerSelfExclusionTitleNone":"")),se(a,"class","SelfExclusionDescriptionText"),se(a,"part","SelfExclusionDescriptionText"),se(h,"class","SelfExclusionDescriptionText"),se(h,"part","SelfExclusionDescriptionText"),se(c,"class","SelfExclusionDescriptionText"),se(c,"part","SelfExclusionDescriptionText"),se(f,"href","mailto:support@everymatrix.com"),se(p,"class","SelfExclusionDescriptionText"),se(p,"part","SelfExclusionDescriptionText"),se(s,"class","SelfExclusionDescription "+(n[7]?"SelfExclusionDescriptionMobile":"")),se(s,"part","SelfExclusionDescription "+(n[7]?"SelfExclusionDescriptionMobile":"")),se(y,"for","SelfExclusionDate"),pe(v,"min",n[4]),pe(v,"max",n[5]),pe(v,"value",n[4]),se(_,"class","SelfExclusionDateWrapper "+(n[7]?"SelfExclusionDateWrapperMobile":"")),se(_,"part","SelfExclusionDateWrapper "+(n[7]?"SelfExclusionDateWrapperMobile":"")),se(x,"type","Checkbox"),se(S,"class","Checkmark"),se(S,"part","Checkmark"),se(w,"class","SelfExclusionRadio"),se(w,"part","SelfExclusionRadio"),se(b,"class","SelfExclusionRadioWrapper "+(n[7]?"SelfExclusionRadioWrapperMobile":"")),se(b,"part","SelfExclusionRadioWrapper "+(n[7]?"SelfExclusionRadioWrapperMobile":"")),se(E,"class","SelfExclusionDescription "+(n[7]?"SelfExclusionDescriptionMobile":"")),se(E,"part","SelfExclusionDescription "+(n[7]?"SelfExclusionDescriptionMobile":"")),se(T,"class","SelfExclusionSave"),se(T,"part","SelfExclusionSave"),se(C,"class","SelfExclusionActionButtons "+(n[7]?"SelfExclusionActionButtonsMobile":"")),se(C,"part","SelfExclusionActionButtons "+(n[7]?"SelfExclusionActionButtonsMobile":"")),se(r,"class","SelfExclusionWrapper "+(n[7]?"SelfExclusionWrapperMobile":"")),se(r,"part","SelfExclusionWrapper "+(n[7]?"SelfExclusionWrapperMobile":""))},m(e,t){he(e,r,t),L&&L.m(r,null),ie(r,B),ie(r,i),ie(i,o),ie(r,F),ie(r,s),ie(s,a),ie(a,l),ie(s,z),ie(s,h),ie(h,u),ie(s,Y),ie(s,c),ie(c,d),ie(c,U),ie(s,j),ie(s,p),ie(p,m),ie(p,W),ie(p,f),ie(r,G),ie(r,_),ie(_,y),ie(y,g),ie(_,V),ie(_,v),n[13](v),ie(r,q),ie(r,b),ie(b,w),ie(w,$),ie(w,X),ie(w,x),ie(w,Z),ie(w,S),ie(r,J),ie(r,E),H.m(E,null),ie(r,K),ie(r,C),ie(C,T),ie(T,Q),ee||(te=[de(x,"click",n[14]),de(T,"click",n[15])],ee=!0)},p(e,[t]){e[7]&&L.p(e,t),64&t&&A!==(A=e[6]("selfExclusion.title")+"")&&ae(o,A),65&t&&P!==(P=e[6]("selfExclusion.selfExclusionText1",{values:{operatorname:e[0]}})+"")&&ae(l,P),64&t&&D!==(D=e[6]("selfExclusion.selfExclusionText2")+"")&&ae(u,D),64&t&&k!==(k=e[6]("selfExclusion.selfExclusionText3")+"")&&ae(d,k),64&t&&O!==(O=e[6]("selfExclusion.selfExclusionText4")+"")&&ae(m,O),64&t&&M!==(M=e[6]("selfExclusion.duration")+"")&&ae(g,M),16&t&&pe(v,"min",e[4]),32&t&&pe(v,"max",e[5]),16&t&&pe(v,"value",e[4]),64&t&&I!==(I=e[6]("selfExclusion.forever")+"")&&ae($,I),R===(R=ne(e))&&H?H.p(e,t):(H.d(1),(H=R(e))&&(H.c(),H.m(E,null))),64&t&&N!==(N=e[6]("selfExclusion.save")+"")&&ae(Q,N)},i:re,o:re,d(e){e&&ue(r),L&&L.d(),n[13](null),H.d(),ee=!1,le(te)}}}function Ih(t,e,n){let r;var i=Sr;t.$$.on_destroy.push(L(i,e=>n(6,r=e)));let o,s,a,{lang:l="en"}=e,{operator:h="Everymatrix"}=e,u="PC"!=((i=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),c=!1,d="",p="",m=new Date;Object.keys(Ar).forEach(e=>{nr(e,Ar[e])}),s=Tr(m.setDate(m.getDate())).add(6,"M").format("YYYY-MM-DD"),a=Tr(m.setDate(m.getDate())).add(5,"y").format("YYYY-MM-DD"),p=s;const f=()=>{n(2,c=0==c)},_=e=>{1==c?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:u},window.location.href)},v=e=>{_(e.target.value)};e=()=>()=>{o.removeEventListener("change",v)},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(11,l=e.lang),"operator"in e&&n(0,h=e.operator)},t.$$.update=()=>{var e;2&t.$$.dirty&&o&&o.addEventListener("change",v,!1),2048&t.$$.dirty&&l&&(e=l,_r.set(e))},[h,o,c,p,s,a,r,u,f,y,g,l,()=>g(),function(e){F[e?"unshift":"push"](()=>{o=e,n(1,o)})},()=>f(),()=>y()]}customElements.define(Dh.is,Dh);class Nh 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},Ih,Mh,N,{lang:11,operator:0},null),e&&(e.target&&he(e.target,this,e.anchor),e.props&&(this.$set(e.props),q()))}static get observedAttributes(){return["lang","operator"]}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),q()}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),q()}}return customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",Nh),Nh});
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(),il(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 kh(e){let n,r,i,o=e[6]("selfExclusion.temporarySelfExclusion",{values:{date:e[3]}})+"";return{c(){n=t("p"),r=t("strong"),i=oe(o),se(n,"class","SelfExclusionDescriptionText"),se(n,"part","SelfExclusionDescriptionText")},m(e,t){he(e,n,t),ie(n,r),ie(r,i)},p(e,t){72&t&&o!==(o=e[6]("selfExclusion.temporarySelfExclusion",{values:{date:e[3]}})+"")&&ae(i,o)},d(e){e&&ue(n)}}}function Oh(e){let n,r,i,o=e[6]("selfExclusion.permanentSelfExclusion")+"";return{c(){n=t("p"),r=t("strong"),i=oe(o),se(n,"class","SelfExclusionDescriptionText"),se(n,"part","SelfExclusionDescriptionText")},m(e,t){he(e,n,t),ie(n,r),ie(r,i)},p(e,t){64&t&&o!==(o=e[6]("selfExclusion.permanentSelfExclusion")+"")&&ae(i,o)},d(e){e&&ue(n)}}}function Mh(n){let r,B,i,o,F,s,a,l,z,h,u,Y,c,d,U,j,p,m,W,f,G,_,y,g,V,v,q,b,w,$,X,x,Z,S,J,E,K,C,T,Q,ee,te,A=n[6]("selfExclusion.title")+"",P=n[6]("selfExclusion.selfExclusionText1",{values:{operatorname:n[0]}})+"",D=n[6]("selfExclusion.selfExclusionText2")+"",k=n[6]("selfExclusion.selfExclusionText3")+"",O=n[6]("selfExclusion.selfExclusionText4")+"",M=n[6]("selfExclusion.duration")+"",I=n[6]("selfExclusion.forever")+"",N=n[6]("selfExclusion.save")+"",L=n[7]&&function(n){let r,i,o,s,a,l,h,u,c,d,p,m,f,_=n[6]("selfExclusion.title")+"";return{c(){r=t("div"),i=ce("svg"),o=ce("defs"),s=ce("style"),a=oe(".aaa{fill:var(--emfe-w-color-primary, #D0046C);}"),l=ce("g"),h=ce("g"),u=ce("path"),c=e(),d=t("h2"),p=oe(_),se(u,"class","aaa"),se(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),se(u,"transform","translate(15 15) rotate(180)"),se(h,"transform","translate(20 158)"),se(l,"transform","translate(-20 -158)"),se(i,"xmlns","http://www.w3.org/2000/svg"),se(i,"width","15"),se(i,"height","15"),se(i,"viewBox","0 0 15 15"),se(d,"class","PlayerSelfExclusionTitleMobile"),se(d,"part","PlayerSelfExclusionTitleMobile"),se(r,"class","MenuReturnButton"),se(r,"part","MenuReturnButton")},m(e,t){he(e,r,t),ie(r,i),ie(i,o),ie(o,s),ie(s,a),ie(i,l),ie(l,h),ie(h,u),ie(r,c),ie(r,d),ie(d,p),m||(f=de(r,"click",n[12]),m=!0)},p(e,t){64&t&&_!==(_=e[6]("selfExclusion.title")+"")&&ae(p,_)},d(e){e&&ue(r),m=!1,f()}}}(n);function ne(e){return e[2]?Oh:kh}let R=ne(n),H=R(n);return{c(){r=t("form"),L&&L.c(),B=e(),i=t("h2"),o=oe(A),F=e(),s=t("div"),a=t("p"),l=oe(P),z=e(),h=t("p"),u=oe(D),Y=e(),c=t("p"),d=oe(k),U=oe(" support@everymatrix.com"),j=e(),p=t("p"),m=oe(O),W=e(),(f=t("a")).textContent="support@everymatrix.com",G=e(),_=t("div"),y=t("label"),g=oe(M),V=e(),v=t("vaadin-date-picker"),q=e(),b=t("div"),w=t("label"),$=oe(I),X=e(),x=t("input"),Z=e(),S=t("span"),J=e(),E=t("div"),H.c(),K=e(),C=t("div"),T=t("button"),Q=oe(N),this.c=re,se(i,"class","PlayerSelfExclusionTitle "+(n[7]?"PlayerSelfExclusionTitleNone":"")),se(i,"part","PlayerSelfExclusionTitle "+(n[7]?"PlayerSelfExclusionTitleNone":"")),se(a,"class","SelfExclusionDescriptionText"),se(a,"part","SelfExclusionDescriptionText"),se(h,"class","SelfExclusionDescriptionText"),se(h,"part","SelfExclusionDescriptionText"),se(c,"class","SelfExclusionDescriptionText"),se(c,"part","SelfExclusionDescriptionText"),se(f,"href","mailto:support@everymatrix.com"),se(p,"class","SelfExclusionDescriptionText"),se(p,"part","SelfExclusionDescriptionText"),se(s,"class","SelfExclusionDescription "+(n[7]?"SelfExclusionDescriptionMobile":"")),se(s,"part","SelfExclusionDescription "+(n[7]?"SelfExclusionDescriptionMobile":"")),se(y,"for","SelfExclusionDate"),pe(v,"min",n[4]),pe(v,"max",n[5]),pe(v,"value",n[4]),se(_,"class","SelfExclusionDateWrapper "+(n[7]?"SelfExclusionDateWrapperMobile":"")),se(_,"part","SelfExclusionDateWrapper "+(n[7]?"SelfExclusionDateWrapperMobile":"")),se(x,"type","Checkbox"),se(S,"class","Checkmark"),se(S,"part","Checkmark"),se(w,"class","SelfExclusionRadio"),se(w,"part","SelfExclusionRadio"),se(b,"class","SelfExclusionRadioWrapper "+(n[7]?"SelfExclusionRadioWrapperMobile":"")),se(b,"part","SelfExclusionRadioWrapper "+(n[7]?"SelfExclusionRadioWrapperMobile":"")),se(E,"class","SelfExclusionDescription "+(n[7]?"SelfExclusionDescriptionMobile":"")),se(E,"part","SelfExclusionDescription "+(n[7]?"SelfExclusionDescriptionMobile":"")),se(T,"class","SelfExclusionSave"),se(T,"part","SelfExclusionSave"),se(C,"class","SelfExclusionActionButtons "+(n[7]?"SelfExclusionActionButtonsMobile":"")),se(C,"part","SelfExclusionActionButtons "+(n[7]?"SelfExclusionActionButtonsMobile":"")),se(r,"class","SelfExclusionWrapper "+(n[7]?"SelfExclusionWrapperMobile":"")),se(r,"part","SelfExclusionWrapper "+(n[7]?"SelfExclusionWrapperMobile":""))},m(e,t){he(e,r,t),L&&L.m(r,null),ie(r,B),ie(r,i),ie(i,o),ie(r,F),ie(r,s),ie(s,a),ie(a,l),ie(s,z),ie(s,h),ie(h,u),ie(s,Y),ie(s,c),ie(c,d),ie(c,U),ie(s,j),ie(s,p),ie(p,m),ie(p,W),ie(p,f),ie(r,G),ie(r,_),ie(_,y),ie(y,g),ie(_,V),ie(_,v),n[13](v),ie(r,q),ie(r,b),ie(b,w),ie(w,$),ie(w,X),ie(w,x),ie(w,Z),ie(w,S),ie(r,J),ie(r,E),H.m(E,null),ie(r,K),ie(r,C),ie(C,T),ie(T,Q),ee||(te=[de(x,"click",n[14]),de(T,"click",n[15])],ee=!0)},p(e,[t]){e[7]&&L.p(e,t),64&t&&A!==(A=e[6]("selfExclusion.title")+"")&&ae(o,A),65&t&&P!==(P=e[6]("selfExclusion.selfExclusionText1",{values:{operatorname:e[0]}})+"")&&ae(l,P),64&t&&D!==(D=e[6]("selfExclusion.selfExclusionText2")+"")&&ae(u,D),64&t&&k!==(k=e[6]("selfExclusion.selfExclusionText3")+"")&&ae(d,k),64&t&&O!==(O=e[6]("selfExclusion.selfExclusionText4")+"")&&ae(m,O),64&t&&M!==(M=e[6]("selfExclusion.duration")+"")&&ae(g,M),16&t&&pe(v,"min",e[4]),32&t&&pe(v,"max",e[5]),16&t&&pe(v,"value",e[4]),64&t&&I!==(I=e[6]("selfExclusion.forever")+"")&&ae($,I),R===(R=ne(e))&&H?H.p(e,t):(H.d(1),(H=R(e))&&(H.c(),H.m(E,null))),64&t&&N!==(N=e[6]("selfExclusion.save")+"")&&ae(Q,N)},i:re,o:re,d(e){e&&ue(r),L&&L.d(),n[13](null),H.d(),ee=!1,le(te)}}}function Ih(t,e,n){let r;var i=Sr;t.$$.on_destroy.push(L(i,e=>n(6,r=e)));let o,s,a,{lang:l="en"}=e,{operator:h="Everymatrix"}=e,u="PC"!=((i=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),c=!1,d="",p="",m=new Date;Object.keys(Ar).forEach(e=>{nr(e,Ar[e])}),s=Tr(m.setDate(m.getDate())).add(6,"M").format("YYYY-MM-DD"),a=Tr(m.setDate(m.getDate())).add(5,"y").format("YYYY-MM-DD"),p=s;const f=()=>{n(2,c=0==c)},_=e=>{1==c?d="SelfExclusionPermanent":(d="SelfExclusionUntilSelectedDate",e&&0<e.length&&n(3,p=e))},y=e=>{e.preventDefault(),_(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:d,selfExclusionExpiryDate:p},window.location.href)},g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:u},window.location.href)},v=e=>{_(e.target.value)};e=()=>()=>{o.removeEventListener("change",v)},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(11,l=e.lang),"operator"in e&&n(0,h=e.operator)},t.$$.update=()=>{var e;2&t.$$.dirty&&o&&o.addEventListener("change",v,!1),2048&t.$$.dirty&&l&&(e=l,_r.set(e))},[h,o,c,p,s,a,r,u,f,y,g,l,()=>g(),function(e){F[e?"unshift":"push"](()=>{o=e,n(1,o)})},()=>f(),e=>y(e)]}customElements.define(Dh.is,Dh);class Nh 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},Ih,Mh,N,{lang:11,operator:0},null),e&&(e.target&&he(e.target,this,e.anchor),e.props&&(this.$set(e.props),q()))}static get observedAttributes(){return["lang","operator"]}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),q()}get operator(){return this.$$.ctx[0]}set operator(e){this.$$set({operator:e}),q()}}return customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",Nh),Nh});
1689
1689
  //# sourceMappingURL=player-account-self-exclusion.js.map