@everymatrix/player-account-self-exclusion 1.19.6 → 1.20.0

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.
@@ -2228,7 +2228,7 @@
2228
2228
  :host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
2229
2229
  display: block;
2230
2230
  }
2231
- `];class nh{constructor(e){(this.host=e).addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}A("vaadin-date-picker",[m,Sl],{moduleId:"vaadin-date-picker-styles"});class oh extends(d=th(ir(La(Ls))),class extends pa(Yl(Zl(fl(d)))){static get properties(){return{_selectedDate:{type:Date},_focusedDate:Date,value:{type:String,observer:"_valueChanged",notify:!0,value:""},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged"},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean},_fullscreen:{type:Boolean,value:!1},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},_touchPrevented:Array,i18n:{type:Object,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,week:"Week",calendar:"Calendar",today:"Today",cancel:"Cancel",formatDate:e=>{var t=String(e.year).replace(/\d+/,e=>"0000".substr(e.length)+e);return[e.month+1,e.day,t].join("/")},parseDate:e=>{var e=e.split("/"),t=new Date;let r,i=t.getMonth(),n=t.getFullYear();if(3===e.length?(n=parseInt(e[2]),e[2].length<3&&0<=n&&(n+=n<50?2e3:1900),i=parseInt(e[0])-1,r=parseInt(e[1])):2===e.length?(i=parseInt(e[0])-1,r=parseInt(e[1])):1===e.length&&(r=parseInt(e[0])),void 0!==r)return{day:r,month:i,year:n}},formatTitle:(e,t)=>e+" "+t})},min:{type:String,observer:"_minChanged"},max:{type:String,observer:"_maxChanged"},_minDate:{type:Date,value:""},_maxDate:{type:Date,value:""},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:da},_webkitOverflowScroll:{type:Boolean,value:""===document.createElement("div").style.webkitOverflowScrolling},_focusOverlayOnOpen:Boolean,_overlayInitialized:Boolean}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n.formatDate)","_focusedDateChanged(_focusedDate, i18n.formatDate)"]}get clearElement(){return null}get _inputValue(){return this.inputElement?this.inputElement.value:void 0}set _inputValue(e){this.inputElement&&(this.inputElement.value=e)}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this)}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){if(super._onBlur(e),!this.opened){if(this.autoOpenDisabled){const e=this._getParsedDate();this._isValidDate(e)&&this._selectDate(e)}""===this.inputElement.value&&this.__dispatchChange?(this.validate(),this.value="",this.__dispatchChange=!1):this.validate()}}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Bl(this._fullscreenMediaQuery,e=>{this._fullscreen=e})),this.addController(new nh(this))}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}_propertiesChanged(e,t,r){super._propertiesChanged(e,t,r),"value"in t&&this.__dispatchChange&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChange=!1)}open(){this.disabled||this.readonly||(this.opened=!0)}close(){(this._overlayInitialized||this.autoOpenDisabled)&&this.$.overlay.close()}_initOverlay(){this.$.overlay.removeAttribute("disable-upgrade"),this._overlayInitialized=!0,this.$.overlay.addEventListener("opened-changed",e=>this.opened=e.detail.value),this.$.overlay.addEventListener("vaadin-overlay-escape-press",()=>{this._focusedDate=this._selectedDate,this._close()}),this._overlayContent.addEventListener("close",this._close.bind(this)),this._overlayContent.addEventListener("focus-input",this._focusAndSelect.bind(this)),this._overlayContent.addEventListener("date-tap",e=>{this.__userConfirmedDate=!0,this._selectDate(e.detail.date),this._close(e)}),this._overlayContent.addEventListener("date-selected",e=>{this.__userConfirmedDate=!0,this._selectDate(e.detail.date)}),this._overlayContent.addEventListener("focusin",()=>{this._setFocused(!0)}),this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}validate(){return!(this.invalid=!this.checkValidity())}checkValidity(){var e=!this._inputValue||this._selectedDate&&this._inputValue===this._getFormattedDate(this.i18n.formatDate,this._selectedDate),t=!this._selectedDate||Nl(this._selectedDate,this._minDate,this._maxDate);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),e&&t&&r}_selectDate(e){var t=this._formatISO(e);this.value!==t&&(this.__dispatchChange=!0),this._selectedDate=e}_close(e){e&&e.stopPropagation(),this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_parseDate(e){var t,e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/.exec(e);if(e)return(t=new Date(0,0)).setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}_isNoInput(e,t,r,i,n,o){return!e||t&&(!o||n)||r&&n||!i.parseDate}_formatISO(e){if(!(e instanceof Date))return"";var t=(e,t="00")=>(t+e).substr((t+e).length-t.length);let r="",i="0000",n=e.getFullYear();return n<0?(n=-n,r="-",i="000000"):1e4<=e.getFullYear()&&(r="+",i="000000"),[r+t(n,i),t(e.getMonth()+1),t(e.getDate())].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){e&&!this._overlayInitialized&&this._initOverlay(),this._overlayInitialized&&(this.$.overlay.opened=e),this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){void 0!==e&&void 0!==t&&(t=this._formatISO(e),this.__keepInputValue||this._applyInputValue(e),t!==this.value&&(this.validate(),this.value=t),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){void 0===e||void 0===t||this._ignoreFocusedDateChange||this._noInput||this._applyInputValue(e)}__getOverlayTheme(e,t){if(t)return e}_handleDateChange(e,t,r){t?(t=this._parseDate(t))?Ml(this[e],t)||(this[e]=t,this.value&&this.validate()):this.value=r:this[e]=""}_valueChanged(e,t){this._handleDateChange("_selectedDate",e,t),this._toggleHasValue(!!e)}_minChanged(e,t){this._handleDateChange("_minDate",e,t)}_maxChanged(e,t){this._handleDateChange("_maxDate",e,t)}_onOverlayOpened(){this._openedWithFocusRing=this.hasAttribute("focus-ring");var e=this._parseDate(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;e||Nl(t,this._minDate,this._maxDate)?this._overlayContent.initialPosition=t:this._overlayContent.initialPosition=Il(t,[this._minDate,this._maxDate]),this._overlayContent.scrollToDate(this._overlayContent.focusedDate||this._overlayContent.initialPosition),this._ignoreFocusedDateChange=!0,this._overlayContent.focusedDate=this._overlayContent.focusedDate||this._overlayContent.initialPosition,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._webkitOverflowScroll&&(this._touchPrevented=this._preventWebkitOverflowScrollingTouch(this.parentElement)),this._focusOverlayOnOpen?(this._overlayContent.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus(),this._noInput&&this.focusElement&&(this.focusElement.blur(),this._overlayContent.focusDateElement())}_preventWebkitOverflowScrollingTouch(e){for(var t,r=[];e;)"touch"===window.getComputedStyle(e).webkitOverflowScrolling&&(t=e.style.webkitOverflowScrolling,e.style.webkitOverflowScrolling="auto",r.push({element:e,oldInlineValue:t})),e=e.parentElement;return r}_selectParsedOrFocusedDate(){var e;this._ignoreFocusedDateChange=!0,this.i18n.parseDate?(e=this._inputValue||"",e=this._getParsedDate(e),this._isValidDate(e)?this._selectDate(e):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)):this._focusedDate&&this._selectDate(this._focusedDate),this._ignoreFocusedDateChange=!1}_onOverlayClosed(){window.removeEventListener("scroll",this._boundOnScroll,!0),this._touchPrevented&&(this._touchPrevented.forEach(e=>e.element.style.webkitOverflowScrolling=e.oldInlineValue),this._touchPrevented=[]),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.value||this.validate(),this.getRootNode().activeElement!==this.inputElement&&this._setFocused(!1)}_onScroll(e){e.target!==window&&this._overlayContent.contains(e.target)||this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputValue.length)}_applyInputValue(e){this._inputValue=e?this._getFormattedDate(this.i18n.formatDate,e):""}_getFormattedDate(e,t){return e(Hl(t))}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_isValidDate(e){return e&&!isNaN(e.getTime())}_onChange(e){""!==this.inputElement.value||e.detail&&e.detail.sourceEvent&&e.detail.sourceEvent.__fromClearButton||(this.__dispatchChange=!0),e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){this.autoOpenDisabled&&!this._noInput||(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.value="",this._inputValue="",this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_onKeyDown(e){switch(super._onKeyDown(e),!this._noInput||-1===[9].indexOf(e.keyCode)&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDate(this._focusedDate))}}_onEnter(e){var t=this._getParsedDate(),t=this._isValidDate(t);if(this.opened)this._overlayInitialized&&this._overlayContent.focusedDate&&t&&this._selectDate(this._overlayContent.focusedDate),this.close();else if(t||""===this.inputElement.value){const e=this.value;this._selectParsedOrFocusedDate(),e===this.value&&this.validate()}else this.validate()}_onEscape(e){if(!this.opened)return this.clearButtonVisible&&this.value?(e.stopPropagation(),void this._onClearButtonClick(e)):void(this.autoOpenDisabled?(""===this.inputElement.value&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate()))}_getParsedDate(e=this._inputValue){e=this.i18n.parseDate&&this.i18n.parseDate(e);return e&&this._parseDate(`${e.year}-${e.month+1}-`+e.day)}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){this.opened||!this.inputElement.value||this.autoOpenDisabled||this.open(),this._userInputValueChanged()}_userInputValueChanged(){var e;this._inputValue&&(e=this._getParsedDate(),this._isValidDate(e))&&(this._ignoreFocusedDateChange=!0,Ml(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}get _overlayContent(){return this.$.overlay.content.querySelector("#overlay-content")}}){static get is(){return"vaadin-date-picker"}static get template(){return Is`
2231
+ `];class nh{constructor(e){(this.host=e).addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}var oh;A("vaadin-date-picker",[m,Sl],{moduleId:"vaadin-date-picker-styles"});class sh extends(d=th(ir(La(Ls))),class extends pa(Yl(Zl(fl(d)))){static get properties(){return{_selectedDate:{type:Date},_focusedDate:Date,value:{type:String,observer:"_valueChanged",notify:!0,value:""},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged"},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean},_fullscreen:{type:Boolean,value:!1},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},_touchPrevented:Array,i18n:{type:Object,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,week:"Week",calendar:"Calendar",today:"Today",cancel:"Cancel",formatDate:e=>{var t=String(e.year).replace(/\d+/,e=>"0000".substr(e.length)+e);return[e.month+1,e.day,t].join("/")},parseDate:e=>{var e=e.split("/"),t=new Date;let r,i=t.getMonth(),n=t.getFullYear();if(3===e.length?(n=parseInt(e[2]),e[2].length<3&&0<=n&&(n+=n<50?2e3:1900),i=parseInt(e[0])-1,r=parseInt(e[1])):2===e.length?(i=parseInt(e[0])-1,r=parseInt(e[1])):1===e.length&&(r=parseInt(e[0])),void 0!==r)return{day:r,month:i,year:n}},formatTitle:(e,t)=>e+" "+t})},min:{type:String,observer:"_minChanged"},max:{type:String,observer:"_maxChanged"},_minDate:{type:Date,value:""},_maxDate:{type:Date,value:""},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:da},_webkitOverflowScroll:{type:Boolean,value:""===document.createElement("div").style.webkitOverflowScrolling},_focusOverlayOnOpen:Boolean,_overlayInitialized:Boolean}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n.formatDate)","_focusedDateChanged(_focusedDate, i18n.formatDate)"]}get clearElement(){return null}get _inputValue(){return this.inputElement?this.inputElement.value:void 0}set _inputValue(e){this.inputElement&&(this.inputElement.value=e)}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this)}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){if(super._onBlur(e),!this.opened){if(this.autoOpenDisabled){const e=this._getParsedDate();this._isValidDate(e)&&this._selectDate(e)}""===this.inputElement.value&&this.__dispatchChange?(this.validate(),this.value="",this.__dispatchChange=!1):this.validate()}}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Bl(this._fullscreenMediaQuery,e=>{this._fullscreen=e})),this.addController(new nh(this))}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}_propertiesChanged(e,t,r){super._propertiesChanged(e,t,r),"value"in t&&this.__dispatchChange&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChange=!1)}open(){this.disabled||this.readonly||(this.opened=!0)}close(){(this._overlayInitialized||this.autoOpenDisabled)&&this.$.overlay.close()}_initOverlay(){this.$.overlay.removeAttribute("disable-upgrade"),this._overlayInitialized=!0,this.$.overlay.addEventListener("opened-changed",e=>this.opened=e.detail.value),this.$.overlay.addEventListener("vaadin-overlay-escape-press",()=>{this._focusedDate=this._selectedDate,this._close()}),this._overlayContent.addEventListener("close",this._close.bind(this)),this._overlayContent.addEventListener("focus-input",this._focusAndSelect.bind(this)),this._overlayContent.addEventListener("date-tap",e=>{this.__userConfirmedDate=!0,this._selectDate(e.detail.date),this._close(e)}),this._overlayContent.addEventListener("date-selected",e=>{this.__userConfirmedDate=!0,this._selectDate(e.detail.date)}),this._overlayContent.addEventListener("focusin",()=>{this._setFocused(!0)}),this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}validate(){return!(this.invalid=!this.checkValidity())}checkValidity(){var e=!this._inputValue||this._selectedDate&&this._inputValue===this._getFormattedDate(this.i18n.formatDate,this._selectedDate),t=!this._selectedDate||Nl(this._selectedDate,this._minDate,this._maxDate);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),e&&t&&r}_selectDate(e){var t=this._formatISO(e);this.value!==t&&(this.__dispatchChange=!0),this._selectedDate=e}_close(e){e&&e.stopPropagation(),this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_parseDate(e){var t,e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/.exec(e);if(e)return(t=new Date(0,0)).setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}_isNoInput(e,t,r,i,n,o){return!e||t&&(!o||n)||r&&n||!i.parseDate}_formatISO(e){if(!(e instanceof Date))return"";var t=(e,t="00")=>(t+e).substr((t+e).length-t.length);let r="",i="0000",n=e.getFullYear();return n<0?(n=-n,r="-",i="000000"):1e4<=e.getFullYear()&&(r="+",i="000000"),[r+t(n,i),t(e.getMonth()+1),t(e.getDate())].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){e&&!this._overlayInitialized&&this._initOverlay(),this._overlayInitialized&&(this.$.overlay.opened=e),this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){void 0!==e&&void 0!==t&&(t=this._formatISO(e),this.__keepInputValue||this._applyInputValue(e),t!==this.value&&(this.validate(),this.value=t),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){void 0===e||void 0===t||this._ignoreFocusedDateChange||this._noInput||this._applyInputValue(e)}__getOverlayTheme(e,t){if(t)return e}_handleDateChange(e,t,r){t?(t=this._parseDate(t))?Ml(this[e],t)||(this[e]=t,this.value&&this.validate()):this.value=r:this[e]=""}_valueChanged(e,t){this._handleDateChange("_selectedDate",e,t),this._toggleHasValue(!!e)}_minChanged(e,t){this._handleDateChange("_minDate",e,t)}_maxChanged(e,t){this._handleDateChange("_maxDate",e,t)}_onOverlayOpened(){this._openedWithFocusRing=this.hasAttribute("focus-ring");var e=this._parseDate(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;e||Nl(t,this._minDate,this._maxDate)?this._overlayContent.initialPosition=t:this._overlayContent.initialPosition=Il(t,[this._minDate,this._maxDate]),this._overlayContent.scrollToDate(this._overlayContent.focusedDate||this._overlayContent.initialPosition),this._ignoreFocusedDateChange=!0,this._overlayContent.focusedDate=this._overlayContent.focusedDate||this._overlayContent.initialPosition,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._webkitOverflowScroll&&(this._touchPrevented=this._preventWebkitOverflowScrollingTouch(this.parentElement)),this._focusOverlayOnOpen?(this._overlayContent.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus(),this._noInput&&this.focusElement&&(this.focusElement.blur(),this._overlayContent.focusDateElement())}_preventWebkitOverflowScrollingTouch(e){for(var t,r=[];e;)"touch"===window.getComputedStyle(e).webkitOverflowScrolling&&(t=e.style.webkitOverflowScrolling,e.style.webkitOverflowScrolling="auto",r.push({element:e,oldInlineValue:t})),e=e.parentElement;return r}_selectParsedOrFocusedDate(){var e;this._ignoreFocusedDateChange=!0,this.i18n.parseDate?(e=this._inputValue||"",e=this._getParsedDate(e),this._isValidDate(e)?this._selectDate(e):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)):this._focusedDate&&this._selectDate(this._focusedDate),this._ignoreFocusedDateChange=!1}_onOverlayClosed(){window.removeEventListener("scroll",this._boundOnScroll,!0),this._touchPrevented&&(this._touchPrevented.forEach(e=>e.element.style.webkitOverflowScrolling=e.oldInlineValue),this._touchPrevented=[]),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.value||this.validate(),this.getRootNode().activeElement!==this.inputElement&&this._setFocused(!1)}_onScroll(e){e.target!==window&&this._overlayContent.contains(e.target)||this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputValue.length)}_applyInputValue(e){this._inputValue=e?this._getFormattedDate(this.i18n.formatDate,e):""}_getFormattedDate(e,t){return e(Hl(t))}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_isValidDate(e){return e&&!isNaN(e.getTime())}_onChange(e){""!==this.inputElement.value||e.detail&&e.detail.sourceEvent&&e.detail.sourceEvent.__fromClearButton||(this.__dispatchChange=!0),e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){this.autoOpenDisabled&&!this._noInput||(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.value="",this._inputValue="",this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_onKeyDown(e){switch(super._onKeyDown(e),!this._noInput||-1===[9].indexOf(e.keyCode)&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDate(this._focusedDate))}}_onEnter(e){var t=this._getParsedDate(),t=this._isValidDate(t);if(this.opened)this._overlayInitialized&&this._overlayContent.focusedDate&&t&&this._selectDate(this._overlayContent.focusedDate),this.close();else if(t||""===this.inputElement.value){const e=this.value;this._selectParsedOrFocusedDate(),e===this.value&&this.validate()}else this.validate()}_onEscape(e){if(!this.opened)return this.clearButtonVisible&&this.value?(e.stopPropagation(),void this._onClearButtonClick(e)):void(this.autoOpenDisabled?(""===this.inputElement.value&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate()))}_getParsedDate(e=this._inputValue){e=this.i18n.parseDate&&this.i18n.parseDate(e);return e&&this._parseDate(`${e.year}-${e.month+1}-`+e.day)}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){this.opened||!this.inputElement.value||this.autoOpenDisabled||this.open(),this._userInputValueChanged()}_userInputValueChanged(){var e;this._inputValue&&(e=this._getParsedDate(),this._isValidDate(e))&&(this._ignoreFocusedDateChange=!0,Ml(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}get _overlayContent(){return this.$.overlay.content.querySelector("#overlay-content")}}){static get is(){return"vaadin-date-picker"}static get template(){return Is`
2232
2232
  <style>
2233
2233
  :host([opened]) {
2234
2234
  pointer-events: auto;
@@ -2289,5 +2289,5 @@
2289
2289
  ></vaadin-date-picker-overlay-content>
2290
2290
  </template>
2291
2291
  </vaadin-date-picker-overlay>
2292
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new rh(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new ih(this.inputElement,this._labelController)),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault())}_initOverlay(){super._initOverlay(),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){this._openedWithFocusRing&&this.hasAttribute("focused")?this.setAttribute("focus-ring",""):this.hasAttribute("focused")||this.blur(),e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this[this._overlayInitialized&&this.$.overlay.opened?"close":"open"]()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}function sh(e){let r,i,n,o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){r=t("p"),i=t("strong"),n=he(o),ce(r,"class","SelfExclusionDescriptionText")},m(e,t){pe(e,r,t),le(r,i),le(i,n)},p(e,t){288&t[0]&&o!==(o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"")&&ue(n,o)},d(e){e&&me(r)}}}function ah(e){let r,i,n,o=e[8]("permanentSelfExclusion")+"";return{c(){r=t("p"),i=t("strong"),n=he(o),ce(r,"class","SelfExclusionDescriptionText")},m(e,t){pe(e,r,t),le(r,i),le(i,n)},p(e,t){256&t[0]&&o!==(o=e[8]("permanentSelfExclusion")+"")&&ue(n,o)},d(e){e&&me(r)}}}function lh(r){let i,n,B,o,s,F,a,l,h,Y,c,u,$,d,p,z,U,j,m,W,V,f,G,_,q,y,g,K,X,v,Z,b,w,J,Q,x,ee,E,te,A,re,S,C,ie,ne,oe,T=r[8]("title")+"",D=r[8]("selfExclusionText1",{values:{operatorname:r[0]}})+"",P=r[8]("selfExclusionText2")+"",k=r[8]("selfExclusionText3")+"",O=r[8]("selfExclusionText4")+"",M=r[8]("duration")+"",N=r[8]("forever")+"",I=r[8]("save")+"",H=r[9]&&function(r){let i,n,o,s,a,l,h,c,u,d,p,m,f,_=r[8]("title")+"";return{c(){i=t("div"),n=fe("svg"),o=fe("defs"),s=fe("style"),a=he(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=fe("g"),h=fe("g"),c=fe("path"),u=e(),d=t("h2"),p=he(_),ce(c,"class","aaa"),ce(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ce(c,"transform","translate(15 15) rotate(180)"),ce(h,"transform","translate(20 158)"),ce(l,"transform","translate(-20 -158)"),ce(n,"xmlns","http://www.w3.org/2000/svg"),ce(n,"width","15"),ce(n,"height","15"),ce(n,"viewBox","0 0 15 15"),ce(d,"class","PlayerSelfExclusionTitleMobile"),ce(i,"class","MenuReturnButton")},m(e,t){pe(e,i,t),le(i,n),le(n,o),le(o,s),le(s,a),le(n,l),le(l,h),le(h,c),le(i,u),le(i,d),le(d,p),m||(f=_e(i,"click",r[17]),m=!0)},p(e,t){256&t[0]&&_!==(_=e[8]("title")+"")&&ue(p,_)},d(e){e&&me(i),m=!1,f()}}}(r);function se(e){return e[4]?ah:sh}let L=se(r),R=L(r);return{c(){i=t("div"),n=t("form"),H&&H.c(),B=e(),o=t("h2"),s=he(T),F=e(),a=t("div"),l=t("p"),h=he(D),Y=e(),c=t("p"),u=he(P),$=e(),d=t("p"),p=he(k),z=e(),U=he(r[1]),j=e(),m=t("p"),W=he(O),V=e(),f=t("a"),G=he(r[1]),q=e(),y=t("div"),g=t("label"),K=he(M),X=e(),v=t("vaadin-date-picker"),Z=e(),b=t("div"),w=t("label"),J=he(N),Q=e(),x=t("input"),ee=e(),E=t("span"),te=e(),A=t("div"),R.c(),re=e(),S=t("div"),C=t("button"),ie=he(I),this.c=ae,ce(o,"class","PlayerSelfExclusionTitle "+(r[9]?"PlayerSelfExclusionTitleNone":"")),ce(l,"class","SelfExclusionDescriptionText"),ce(c,"class","SelfExclusionDescriptionText"),ce(d,"class","SelfExclusionDescriptionText"),ce(f,"href",_="mailto:"+r[1]),ce(m,"class","SelfExclusionDescriptionText"),ce(a,"class","SelfExclusionDescription "+(r[9]?"SelfExclusionDescriptionMobile":"")),ce(g,"for","SelfExclusionDate"),ye(v,"min",r[6]),ye(v,"max",r[7]),ye(v,"value",r[6]),ce(y,"class","SelfExclusionDateWrapper "+(r[9]?"SelfExclusionDateWrapperMobile":"")),ce(x,"type","Checkbox"),ce(E,"class","Checkmark"),ce(E,"part","Checkmark"),ce(w,"class","SelfExclusionRadio"),ce(b,"class","SelfExclusionRadioWrapper "+(r[9]?"SelfExclusionRadioWrapperMobile":"")),ce(A,"class","SelfExclusionDescription "+(r[9]?"SelfExclusionDescriptionMobile":"")),ce(C,"class","SelfExclusionSave"),ce(S,"class","SelfExclusionActionButtons "+(r[9]?"SelfExclusionActionButtonsMobile":"")),ce(n,"class","SelfExclusionWrapper "+(r[9]?"SelfExclusionWrapperMobile":""))},m(e,t){pe(e,i,t),le(i,n),H&&H.m(n,null),le(n,B),le(n,o),le(o,s),le(n,F),le(n,a),le(a,l),le(l,h),le(a,Y),le(a,c),le(c,u),le(a,$),le(a,d),le(d,p),le(d,z),le(d,U),le(a,j),le(a,m),le(m,W),le(m,V),le(m,f),le(f,G),le(n,q),le(n,y),le(y,g),le(g,K),le(y,X),le(y,v),r[18](v),le(n,Z),le(n,b),le(b,w),le(w,J),le(w,Q),le(w,x),le(w,ee),le(w,E),le(n,te),le(n,A),R.m(A,null),le(n,re),le(n,S),le(S,C),le(C,ie),r[21](i),ne||(oe=[_e(x,"click",r[19]),_e(C,"click",r[20])],ne=!0)},p(e,t){e[9]&&H.p(e,t),256&t[0]&&T!==(T=e[8]("title")+"")&&ue(s,T),257&t[0]&&D!==(D=e[8]("selfExclusionText1",{values:{operatorname:e[0]}})+"")&&ue(h,D),256&t[0]&&P!==(P=e[8]("selfExclusionText2")+"")&&ue(u,P),256&t[0]&&k!==(k=e[8]("selfExclusionText3")+"")&&ue(p,k),2&t[0]&&ue(U,e[1]),256&t[0]&&O!==(O=e[8]("selfExclusionText4")+"")&&ue(W,O),2&t[0]&&ue(G,e[1]),2&t[0]&&_!==(_="mailto:"+e[1])&&ce(f,"href",_),256&t[0]&&M!==(M=e[8]("duration")+"")&&ue(K,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]&&N!==(N=e[8]("forever")+"")&&ue(J,N),L===(L=se(e))&&R?R.p(e,t):(R.d(1),(R=L(e))&&(R.c(),R.m(A,null))),256&t[0]&&I!==(I=e[8]("save")+"")&&ue(ie,I)},i:ae,o:ae,d(e){e&&me(i),H&&H.d(),r[18](null),R.d(),r[21](null),ne=!1,de(oe)}}}function hh(t,e,r){let i;var n=ki;t.$$.on_destroy.push(H(n,e=>r(8,i=e)));let o,s,a,l,{lang:h="en"}=e,{operator:c="Everymatrix"}=e,{supportemail:u=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:m=""}=e,f="PC"!=((n=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),_=!1,y="",g="",v=new Date;Object.keys(Hi).forEach(e=>{Ii(e,Hi[e])}),a=Ni(v.setDate(v.getDate())).add(6,"M").format("YYYY-MM-DD"),l=Ni(v.setDate(v.getDate())).add(5,"y").format("YYYY-MM-DD"),g=a;const b=()=>{r(4,_=0==_)},w=e=>{1==_?y="SelfExclusionPermanent":(y="SelfExclusionUntilSelectedDate",e&&0<e.length&&r(5,g=e))},x=e=>{e.preventDefault(),w(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:y,selfExclusionExpiryDate:g},window.location.href)},E=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},A=e=>{w(e.target.value)};e=()=>()=>{s.removeEventListener("change",A)},function(){if(L)return L;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,c=e.operator),"supportemail"in e&&r(1,u=e.supportemail),"clientstyling"in e&&r(14,d=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,_i.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)})}var e;16388&t.$$.dirty[0]&&d&&o&&((e=document.createElement("style")).innerHTML=d,o.appendChild(e)),65536&t.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ii(e,t[e])})}).catch(e=>{console.log(e)})},[c,u,o,s,_,g,a,l,i,f,b,x,E,h,d,p,m,()=>E(),function(e){F[e?"unshift":"push"](()=>{s=e,r(3,s)})},()=>b(),e=>x(e),function(e){F[e?"unshift":"push"](()=>{o=e,r(2,o)})}]}customElements.define(oh.is,oh);class ch extends X{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;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-pam-color-primary, 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-pam-color-primary, 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-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:12px}',this.shadowRoot.appendChild(t),K(this,{target:this.shadowRoot,props:function(e){var t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},hh,lh,I,{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),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.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",ch),ch});
2292
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new rh(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new ih(this.inputElement,this._labelController)),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault())}_initOverlay(){super._initOverlay(),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){this._openedWithFocusRing&&this.hasAttribute("focused")?this.setAttribute("focus-ring",""):this.hasAttribute("focused")||this.blur(),e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this[this._overlayInitialized&&this.$.overlay.opened?"close":"open"]()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}function ah(e){let r,i,n,o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){r=t("p"),i=t("strong"),n=he(o),ce(r,"class","SelfExclusionDescriptionText")},m(e,t){pe(e,r,t),le(r,i),le(i,n)},p(e,t){288&t[0]&&o!==(o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"")&&ue(n,o)},d(e){e&&me(r)}}}function lh(e){let r,i,n,o=e[8]("permanentSelfExclusion")+"";return{c(){r=t("p"),i=t("strong"),n=he(o),ce(r,"class","SelfExclusionDescriptionText")},m(e,t){pe(e,r,t),le(r,i),le(i,n)},p(e,t){256&t[0]&&o!==(o=e[8]("permanentSelfExclusion")+"")&&ue(n,o)},d(e){e&&me(r)}}}function hh(r){let i,n,B,o,s,F,a,l,h,Y,c,u,$,d,p,z,U,j,m,W,V,f,G,_,q,y,g,K,X,v,Z,b,w,J,Q,x,ee,E,te,A,re,S,C,ie,ne,oe,T=r[8]("title")+"",D=r[8]("selfExclusionText1",{values:{operatorname:r[0]}})+"",P=r[8]("selfExclusionText2")+"",k=r[8]("selfExclusionText3")+"",O=r[8]("selfExclusionText4")+"",M=r[8]("duration")+"",N=r[8]("forever")+"",I=r[8]("save")+"",H=r[9]&&function(r){let i,n,o,s,a,l,h,c,u,d,p,m,f,_=r[8]("title")+"";return{c(){i=t("div"),n=fe("svg"),o=fe("defs"),s=fe("style"),a=he(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),l=fe("g"),h=fe("g"),c=fe("path"),u=e(),d=t("h2"),p=he(_),ce(c,"class","aaa"),ce(c,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ce(c,"transform","translate(15 15) rotate(180)"),ce(h,"transform","translate(20 158)"),ce(l,"transform","translate(-20 -158)"),ce(n,"xmlns","http://www.w3.org/2000/svg"),ce(n,"width","15"),ce(n,"height","15"),ce(n,"viewBox","0 0 15 15"),ce(d,"class","PlayerSelfExclusionTitleMobile"),ce(i,"class","MenuReturnButton")},m(e,t){pe(e,i,t),le(i,n),le(n,o),le(o,s),le(s,a),le(n,l),le(l,h),le(h,c),le(i,u),le(i,d),le(d,p),m||(f=_e(i,"click",r[17]),m=!0)},p(e,t){256&t[0]&&_!==(_=e[8]("title")+"")&&ue(p,_)},d(e){e&&me(i),m=!1,f()}}}(r);function se(e){return e[4]?lh:ah}let L=se(r),R=L(r);return{c(){i=t("div"),n=t("form"),H&&H.c(),B=e(),o=t("h2"),s=he(T),F=e(),a=t("div"),l=t("p"),h=he(D),Y=e(),c=t("p"),u=he(P),$=e(),d=t("p"),p=he(k),z=e(),U=he(r[1]),j=e(),m=t("p"),W=he(O),V=e(),f=t("a"),G=he(r[1]),q=e(),y=t("div"),g=t("label"),K=he(M),X=e(),v=t("vaadin-date-picker"),Z=e(),b=t("div"),w=t("label"),J=he(N),Q=e(),x=t("input"),ee=e(),E=t("span"),te=e(),A=t("div"),R.c(),re=e(),S=t("div"),C=t("button"),ie=he(I),this.c=ae,ce(o,"class","PlayerSelfExclusionTitle "+(r[9]?"PlayerSelfExclusionTitleNone":"")),ce(l,"class","SelfExclusionDescriptionText"),ce(c,"class","SelfExclusionDescriptionText"),ce(d,"class","SelfExclusionDescriptionText"),ce(f,"href",_="mailto:"+r[1]),ce(m,"class","SelfExclusionDescriptionText"),ce(a,"class","SelfExclusionDescription "+(r[9]?"SelfExclusionDescriptionMobile":"")),ce(g,"for","SelfExclusionDate"),ye(v,"min",r[6]),ye(v,"max",r[7]),ye(v,"value",r[6]),ce(y,"class","SelfExclusionDateWrapper "+(r[9]?"SelfExclusionDateWrapperMobile":"")),ce(x,"type","Checkbox"),ce(E,"class","Checkmark"),ce(E,"part","Checkmark"),ce(w,"class","SelfExclusionRadio"),ce(b,"class","SelfExclusionRadioWrapper "+(r[9]?"SelfExclusionRadioWrapperMobile":"")),ce(A,"class","SelfExclusionDescription "+(r[9]?"SelfExclusionDescriptionMobile":"")),ce(C,"class","SelfExclusionSave"),ce(S,"class","SelfExclusionActionButtons "+(r[9]?"SelfExclusionActionButtonsMobile":"")),ce(n,"class","SelfExclusionWrapper "+(r[9]?"SelfExclusionWrapperMobile":""))},m(e,t){pe(e,i,t),le(i,n),H&&H.m(n,null),le(n,B),le(n,o),le(o,s),le(n,F),le(n,a),le(a,l),le(l,h),le(a,Y),le(a,c),le(c,u),le(a,$),le(a,d),le(d,p),le(d,z),le(d,U),le(a,j),le(a,m),le(m,W),le(m,V),le(m,f),le(f,G),le(n,q),le(n,y),le(y,g),le(g,K),le(y,X),le(y,v),r[18](v),le(n,Z),le(n,b),le(b,w),le(w,J),le(w,Q),le(w,x),le(w,ee),le(w,E),le(n,te),le(n,A),R.m(A,null),le(n,re),le(n,S),le(S,C),le(C,ie),r[21](i),ne||(oe=[_e(x,"click",r[19]),_e(C,"click",r[20])],ne=!0)},p(e,t){e[9]&&H.p(e,t),256&t[0]&&T!==(T=e[8]("title")+"")&&ue(s,T),257&t[0]&&D!==(D=e[8]("selfExclusionText1",{values:{operatorname:e[0]}})+"")&&ue(h,D),256&t[0]&&P!==(P=e[8]("selfExclusionText2")+"")&&ue(u,P),256&t[0]&&k!==(k=e[8]("selfExclusionText3")+"")&&ue(p,k),2&t[0]&&ue(U,e[1]),256&t[0]&&O!==(O=e[8]("selfExclusionText4")+"")&&ue(W,O),2&t[0]&&ue(G,e[1]),2&t[0]&&_!==(_="mailto:"+e[1])&&ce(f,"href",_),256&t[0]&&M!==(M=e[8]("duration")+"")&&ue(K,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]&&N!==(N=e[8]("forever")+"")&&ue(J,N),L===(L=se(e))&&R?R.p(e,t):(R.d(1),(R=L(e))&&(R.c(),R.m(A,null))),256&t[0]&&I!==(I=e[8]("save")+"")&&ue(ie,I)},i:ae,o:ae,d(e){e&&me(i),H&&H.d(),r[18](null),R.d(),r[21](null),ne=!1,de(oe)}}}function ch(t,e,r){let i;var n=ki;t.$$.on_destroy.push(H(n,e=>r(8,i=e)));let o,s,a,l,{lang:h="en"}=e,{operator:c="Everymatrix"}=e,{supportemail:u=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:m=""}=e,f="PC"!=((n=window.navigator.userAgent).toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),_=!1,y="",g="",v=new Date;Object.keys(Hi).forEach(e=>{Ii(e,Hi[e])}),a=Ni(v.setDate(v.getDate())).add(6,"M").format("YYYY-MM-DD"),l=Ni(v.setDate(v.getDate())).add(5,"y").format("YYYY-MM-DD"),g=a;const b=()=>{r(4,_=0==_)},w=e=>{1==_?y="SelfExclusionPermanent":(y="SelfExclusionUntilSelectedDate",e&&0<e.length&&r(5,g=e))},x=e=>{e.preventDefault(),w(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:y,selfExclusionExpiryDate:g},window.location.href)},E=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},A=e=>{w(e.target.value)};e=()=>()=>{s.removeEventListener("change",A)},function(){if(L)return L;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,c=e.operator),"supportemail"in e&&r(1,u=e.supportemail),"clientstyling"in e&&r(14,d=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,_i.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)})}var e;16388&t.$$.dirty[0]&&d&&o&&((e=document.createElement("style")).innerHTML=d,o.appendChild(e)),65536&t.$$.dirty[0]&&m&&fetch(m).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Ii(e,t[e])})}).catch(e=>{console.log(e)})},[c,u,o,s,_,g,a,l,i,f,b,x,E,h,d,p,m,()=>E(),function(e){F[e?"unshift":"push"](()=>{s=e,r(3,s)})},()=>b(),e=>x(e),function(e){F[e?"unshift":"push"](()=>{o=e,r(2,o)})}]}customElements.define(sh.is,sh);class uh extends X{constructor(e){super();var t=document.createElement("style");t.textContent='.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;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-pam-color-primary, 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-pam-color-primary, 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-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:12px}',this.shadowRoot.appendChild(t),K(this,{target:this.shadowRoot,props:function(e){var t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},ch,hh,I,{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),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=(oh=customElements.define,function(...e){try{return oh.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry"))return!1;throw e}}),customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",uh),uh});
2293
2293
  //# sourceMappingURL=player-account-self-exclusion.js.map