@everymatrix/player-account-self-exclusion 1.22.7 → 1.22.8
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.
|
@@ -2160,7 +2160,7 @@
|
|
|
2160
2160
|
:host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
|
|
2161
2161
|
display: block;
|
|
2162
2162
|
}
|
|
2163
|
-
`];class Ch{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 Th,d=e=>{return class extends(e=zs(nh(wh(Wa(e)))),class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(t&&void 0!==e){t=t["classList"];if(this.__initialClasses||(this.__initialClasses=new Set(t)),Array.isArray(this.__previousClasses)){const e=this.__previousClasses.filter(e=>!this.__initialClasses.has(e));0<e.length&&t.remove(...e)}e="string"==typeof e?e.split(" "):[];0<e.length&&t.add(...e),this.__previousClasses=e}}}){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,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,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){var t=String(e.year).replace(/\d+/u,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?(i=parseInt(e[0])-1,r=parseInt(e[1]),n=parseInt(e[2]),e[2].length<3&&0<=n&&(n=function(e,t,r=0,i=1){if(99<t)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let n=t+100*Math.floor(e.getFullYear()/100);return e<new Date(n-50,r,i)?n-=100:e>new Date(n+50,r,i)&&(n+=100),n}(this.referenceDate?Nl(this.referenceDate):new Date,n,i,r))):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,sync:!0},max:{type:String,sync:!0},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:hl},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new rh(this._fullscreenMediaQuery,e=>{this._fullscreen=e})),this.addController(new Ch(this));var e=this.$.overlay;(this._overlayElement=e).renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){var t;e.firstChild||(t=document.createElement("vaadin-date-picker-overlay-content"),e.appendChild(t),(this._overlayContent=t).addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",e=>{this.__userConfirmedDate=!0,this._selectDate(e.detail.date),this._close()}),t.addEventListener("date-selected",e=>{this.__userConfirmedDate=!!e.detail.date,this._selectDate(e.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focused-date-changed",e=>{this._focusedDate=e.detail.value}))}__parseDate(t){if(this.i18n.parseDate){let e=this.i18n.parseDate(t);return(e=e&&Nl(`${e.year}-${e.month+1}-`+e.day))&&!isNaN(e.getTime())?e:void 0}}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Ol(e))}checkValidity(){var e=this._inputElementValue,e=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),t=!this._selectedDate||Pl(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}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){return!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(e){var t=this.value;this._selectedDate=e,t!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_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){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){void 0!==e&&void 0!==t&&(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),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)}_valueChanged(e,t){var r=Nl(e);!e||r?(e?Dl(this._selectedDate,r)||(this._selectedDate=r,void 0!==t&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)):this.value=t}__updateOverlayContent(e,t,r,i,n,o,s,a){e&&(e.i18n=t,e.label=r,e.minDate=i,e.maxDate=n,e.focusedDate=o,e.selectedDate=s,e.showWeekNumbers=a)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){var e=this._overlayContent,t=(e.reset(),this._getInitialPosition()),t=(e.initialPosition=t,e.focusedDate||t),t=(e.scrollToDate(t),this._ignoreFocusedDateChange=!0,e.focusedDate=t,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus(),this._nativeInput),t=(this._noInput&&t&&(t.blur(),this._overlayContent.focusDateElement()),this._noInput?e:[t,e]);this.__showOthers=yl(t)}_getInitialPosition(){var e=Nl(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Pl(t,this._minDate,this._maxDate)?t:kl(t,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){var e;this._ignoreFocusedDateChange=!0,this.i18n.parseDate?(e=this._inputElementValue||"",(e=this.__parseDate(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(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.value||this._keyboardActive||this.validate()}_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._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){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._inputElementValue="",this.value="",this.__dispatchChange()}_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.focusDateElement())}}_onEnter(e){var t=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),t===this.value&&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()))}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){var e;this.opened||!this._inputElementValue||this.autoOpenDisabled||this.open(),this._inputElementValue&&(e=this.__parseDate(this._inputElementValue))&&(this._ignoreFocusedDateChange=!0,Dl(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}__computeMinOrMaxDate(e){return Nl(e)}}};S("vaadin-date-picker",[Sh,x`
|
|
2163
|
+
`];class Ch{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")}}d=e=>{return class extends(e=zs(nh(wh(Wa(e)))),class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(t&&void 0!==e){t=t["classList"];if(this.__initialClasses||(this.__initialClasses=new Set(t)),Array.isArray(this.__previousClasses)){const e=this.__previousClasses.filter(e=>!this.__initialClasses.has(e));0<e.length&&t.remove(...e)}e="string"==typeof e?e.split(" "):[];0<e.length&&t.add(...e),this.__previousClasses=e}}}){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,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,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){var t=String(e.year).replace(/\d+/u,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?(i=parseInt(e[0])-1,r=parseInt(e[1]),n=parseInt(e[2]),e[2].length<3&&0<=n&&(n=function(e,t,r=0,i=1){if(99<t)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let n=t+100*Math.floor(e.getFullYear()/100);return e<new Date(n-50,r,i)?n-=100:e>new Date(n+50,r,i)&&(n+=100),n}(this.referenceDate?Nl(this.referenceDate):new Date,n,i,r))):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,sync:!0},max:{type:String,sync:!0},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:hl},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new rh(this._fullscreenMediaQuery,e=>{this._fullscreen=e})),this.addController(new Ch(this));var e=this.$.overlay;(this._overlayElement=e).renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){var t;e.firstChild||(t=document.createElement("vaadin-date-picker-overlay-content"),e.appendChild(t),(this._overlayContent=t).addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",e=>{this.__userConfirmedDate=!0,this._selectDate(e.detail.date),this._close()}),t.addEventListener("date-selected",e=>{this.__userConfirmedDate=!!e.detail.date,this._selectDate(e.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focused-date-changed",e=>{this._focusedDate=e.detail.value}))}__parseDate(t){if(this.i18n.parseDate){let e=this.i18n.parseDate(t);return(e=e&&Nl(`${e.year}-${e.month+1}-`+e.day))&&!isNaN(e.getTime())?e:void 0}}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Ol(e))}checkValidity(){var e=this._inputElementValue,e=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),t=!this._selectedDate||Pl(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}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){return!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(e){var t=this.value;this._selectedDate=e,t!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_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){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){void 0!==e&&void 0!==t&&(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),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)}_valueChanged(e,t){var r=Nl(e);!e||r?(e?Dl(this._selectedDate,r)||(this._selectedDate=r,void 0!==t&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)):this.value=t}__updateOverlayContent(e,t,r,i,n,o,s,a){e&&(e.i18n=t,e.label=r,e.minDate=i,e.maxDate=n,e.focusedDate=o,e.selectedDate=s,e.showWeekNumbers=a)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){var e=this._overlayContent,t=(e.reset(),this._getInitialPosition()),t=(e.initialPosition=t,e.focusedDate||t),t=(e.scrollToDate(t),this._ignoreFocusedDateChange=!0,e.focusedDate=t,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus(),this._nativeInput),t=(this._noInput&&t&&(t.blur(),this._overlayContent.focusDateElement()),this._noInput?e:[t,e]);this.__showOthers=yl(t)}_getInitialPosition(){var e=Nl(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Pl(t,this._minDate,this._maxDate)?t:kl(t,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){var e;this._ignoreFocusedDateChange=!0,this.i18n.parseDate?(e=this._inputElementValue||"",(e=this.__parseDate(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(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.value||this._keyboardActive||this.validate()}_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._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){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._inputElementValue="",this.value="",this.__dispatchChange()}_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.focusDateElement())}}_onEnter(e){var t=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),t===this.value&&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()))}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){var e;this.opened||!this._inputElementValue||this.autoOpenDisabled||this.open(),this._inputElementValue&&(e=this.__parseDate(this._inputElementValue))&&(this._ignoreFocusedDateChange=!0,Dl(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}__computeMinOrMaxDate(e){return Nl(e)}}};S("vaadin-date-picker",[Sh,x`
|
|
2164
2164
|
:host([opened]) {
|
|
2165
2165
|
pointer-events: auto;
|
|
2166
2166
|
}
|
|
@@ -2173,7 +2173,7 @@
|
|
|
2173
2173
|
direction: rtl;
|
|
2174
2174
|
text-align: left;
|
|
2175
2175
|
}
|
|
2176
|
-
`],{moduleId:"vaadin-date-picker-styles"});class
|
|
2176
|
+
`],{moduleId:"vaadin-date-picker-styles"});class Th extends d(Eh(c(na(Hs)))){static get is(){return"vaadin-date-picker"}static get template(){return Is`
|
|
2177
2177
|
<div class="vaadin-date-picker-container">
|
|
2178
2178
|
<div part="label">
|
|
2179
2179
|
<slot name="label"></slot>
|
|
@@ -2215,5 +2215,5 @@
|
|
|
2215
2215
|
></vaadin-date-picker-overlay>
|
|
2216
2216
|
|
|
2217
2217
|
<slot name="tooltip"></slot>
|
|
2218
|
-
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new xh(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Ah(this.inputElement,this._labelController)),this._tooltipController=new ca(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}function Ph(e){let r,i,n,o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){r=t("p"),i=t("strong"),n=he(o),ue(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]}})+"")&&ce(n,o)},d(e){e&&me(r)}}}function kh(e){let r,i,n,o=e[8]("permanentSelfExclusion")+"";return{c(){r=t("p"),i=t("strong"),n=he(o),ue(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")+"")&&ce(n,o)},d(e){e&&me(r)}}}function Oh(r){let i,n,B,o,s,F,a,l,h,Y,u,c,U,d,p,z,$,j,m,V,W,f,G,_,q,y,v,K,X,g,Z,b,w,J,Q,E,ee,x,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")+"",L=r[9]&&function(r){let i,n,o,s,a,l,h,u,c,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"),u=fe("path"),c=e(),d=t("h2"),p=he(_),ue(u,"class","aaa"),ue(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ue(u,"transform","translate(15 15) rotate(180)"),ue(h,"transform","translate(20 158)"),ue(l,"transform","translate(-20 -158)"),ue(n,"xmlns","http://www.w3.org/2000/svg"),ue(n,"width","15"),ue(n,"height","15"),ue(n,"viewBox","0 0 15 15"),ue(d,"class","PlayerSelfExclusionTitleMobile"),ue(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,u),le(i,c),le(i,d),le(d,p),m||(f=_e(i,"click",r[17]),m=!0)},p(e,t){256&t[0]&&_!==(_=e[8]("title")+"")&&ce(p,_)},d(e){e&&me(i),m=!1,f()}}}(r);function se(e){return e[4]?kh:Ph}let H=se(r),R=H(r);return{c(){i=t("div"),n=t("form"),L&&L.c(),B=e(),o=t("h2"),s=he(T),F=e(),a=t("div"),l=t("p"),h=he(D),Y=e(),u=t("p"),c=he(P),U=e(),d=t("p"),p=he(k),z=e(),$=he(r[1]),j=e(),m=t("p"),V=he(O),W=e(),f=t("a"),G=he(r[1]),q=e(),y=t("div"),v=t("label"),K=he(M),X=e(),g=t("vaadin-date-picker"),Z=e(),b=t("div"),w=t("label"),J=he(N),Q=e(),E=t("input"),ee=e(),x=t("span"),te=e(),A=t("div"),R.c(),re=e(),S=t("div"),C=t("button"),ie=he(I),this.c=ae,ue(o,"class","PlayerSelfExclusionTitle "+(r[9]?"PlayerSelfExclusionTitleNone":"")),ue(l,"class","SelfExclusionDescriptionText"),ue(u,"class","SelfExclusionDescriptionText"),ue(d,"class","SelfExclusionDescriptionText"),ue(f,"href",_="mailto:"+r[1]),ue(m,"class","SelfExclusionDescriptionText"),ue(a,"class","SelfExclusionDescription "+(r[9]?"SelfExclusionDescriptionMobile":"")),ue(v,"for","SelfExclusionDate"),ye(g,"min",r[6]),ye(g,"max",r[7]),ye(g,"value",r[6]),ue(y,"class","SelfExclusionDateWrapper "+(r[9]?"SelfExclusionDateWrapperMobile":"")),ue(E,"type","Checkbox"),ue(x,"class","Checkmark"),ue(x,"part","Checkmark"),ue(w,"class","SelfExclusionRadio"),ue(b,"class","SelfExclusionRadioWrapper "+(r[9]?"SelfExclusionRadioWrapperMobile":"")),ue(A,"class","SelfExclusionDescription "+(r[9]?"SelfExclusionDescriptionMobile":"")),ue(C,"class","SelfExclusionSave"),ue(S,"class","SelfExclusionActionButtons "+(r[9]?"SelfExclusionActionButtonsMobile":"")),ue(n,"class","SelfExclusionWrapper "+(r[9]?"SelfExclusionWrapperMobile":""))},m(e,t){pe(e,i,t),le(i,n),L&&L.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,u),le(u,c),le(a,U),le(a,d),le(d,p),le(d,z),le(d,$),le(a,j),le(a,m),le(m,V),le(m,W),le(m,f),le(f,G),le(n,q),le(n,y),le(y,v),le(v,K),le(y,X),le(y,g),r[18](g),le(n,Z),le(n,b),le(b,w),le(w,J),le(w,Q),le(w,E),le(w,ee),le(w,x),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(E,"click",r[19]),_e(C,"click",r[20])],ne=!0)},p(e,t){e[9]&&L.p(e,t),256&t[0]&&T!==(T=e[8]("title")+"")&&ce(s,T),257&t[0]&&D!==(D=e[8]("selfExclusionText1",{values:{operatorname:e[0]}})+"")&&ce(h,D),256&t[0]&&P!==(P=e[8]("selfExclusionText2")+"")&&ce(c,P),256&t[0]&&k!==(k=e[8]("selfExclusionText3")+"")&&ce(p,k),2&t[0]&&ce($,e[1]),256&t[0]&&O!==(O=e[8]("selfExclusionText4")+"")&&ce(V,O),2&t[0]&&ce(G,e[1]),2&t[0]&&_!==(_="mailto:"+e[1])&&ue(f,"href",_),256&t[0]&&M!==(M=e[8]("duration")+"")&&ce(K,M),64&t[0]&&ye(g,"min",e[6]),128&t[0]&&ye(g,"max",e[7]),64&t[0]&&ye(g,"value",e[6]),256&t[0]&&N!==(N=e[8]("forever")+"")&&ce(J,N),H===(H=se(e))&&R?R.p(e,t):(R.d(1),(R=H(e))&&(R.c(),R.m(A,null))),256&t[0]&&I!==(I=e[8]("save")+"")&&ce(ie,I)},i:ae,o:ae,d(e){e&&me(i),L&&L.d(),r[18](null),R.d(),r[21](null),ne=!1,de(oe)}}}function Mh(t,e,r){let i;var n=Pi;t.$$.on_destroy.push(L(n,e=>r(8,i=e)));let o,s,a,l,{lang:h="en"}=e,{operator:u="Everymatrix"}=e,{supportemail:c=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:m=""}=e,f="PC"!=((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="",v="",g=new Date;Object.keys(Ii).forEach(e=>{Ni(e,Ii[e])}),a=Mi(g.setDate(g.getDate())).add(6,"M").format("YYYY-MM-DD"),l=Mi(g.setDate(g.getDate())).add(5,"y").format("YYYY-MM-DD"),v=a;const b=()=>{r(4,_=0==_)},w=e=>{1==_?y="SelfExclusionPermanent":(y="SelfExclusionUntilSelectedDate",e&&0<e.length&&r(5,v=e))},E=e=>{e.preventDefault(),w(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:y,selfExclusionExpiryDate:v},window.location.href)},x=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},A=e=>{w(e.target.value)};e=()=>()=>{s.removeEventListener("change",A)},function(){if(H)return H;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e);return t.$$set=e=>{"lang"in e&&r(13,h=e.lang),"operator"in e&&r(0,u=e.operator),"supportemail"in e&&r(1,c=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,fi.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=>{Ni(e,t[e])})}).catch(e=>{console.log(e)})},[u,c,o,s,_,v,a,l,i,f,b,E,x,h,d,p,m,()=>x(),function(e){F[e?"unshift":"push"](()=>{s=e,r(3,s)})},()=>b(),e=>E(e),function(e){F[e?"unshift":"push"](()=>{o=e,r(2,o)})}]}Li(Dh);class Nh 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},Mh,Oh,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=(Th=customElements.define,function(...e){try{return Th.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),customElements.get("player-account-self-exclusion")||customElements.define("player-account-self-exclusion",Nh),Nh});
|
|
2218
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new xh(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Ah(this.inputElement,this._labelController)),this._tooltipController=new ca(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}function Dh(e){let r,i,n,o=e[8]("temporarySelfExclusion",{values:{date:e[5]}})+"";return{c(){r=t("p"),i=t("strong"),n=he(o),ue(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]}})+"")&&ce(n,o)},d(e){e&&me(r)}}}function Ph(e){let r,i,n,o=e[8]("permanentSelfExclusion")+"";return{c(){r=t("p"),i=t("strong"),n=he(o),ue(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")+"")&&ce(n,o)},d(e){e&&me(r)}}}function kh(r){let i,n,B,o,s,F,a,l,h,Y,u,c,U,d,p,z,$,j,m,V,W,f,G,_,q,y,v,K,X,g,Z,b,w,J,Q,E,ee,x,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")+"",L=r[9]&&function(r){let i,n,o,s,a,l,h,u,c,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"),u=fe("path"),c=e(),d=t("h2"),p=he(_),ue(u,"class","aaa"),ue(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),ue(u,"transform","translate(15 15) rotate(180)"),ue(h,"transform","translate(20 158)"),ue(l,"transform","translate(-20 -158)"),ue(n,"xmlns","http://www.w3.org/2000/svg"),ue(n,"width","15"),ue(n,"height","15"),ue(n,"viewBox","0 0 15 15"),ue(d,"class","PlayerSelfExclusionTitleMobile"),ue(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,u),le(i,c),le(i,d),le(d,p),m||(f=_e(i,"click",r[17]),m=!0)},p(e,t){256&t[0]&&_!==(_=e[8]("title")+"")&&ce(p,_)},d(e){e&&me(i),m=!1,f()}}}(r);function se(e){return e[4]?Ph:Dh}let H=se(r),R=H(r);return{c(){i=t("div"),n=t("form"),L&&L.c(),B=e(),o=t("h2"),s=he(T),F=e(),a=t("div"),l=t("p"),h=he(D),Y=e(),u=t("p"),c=he(P),U=e(),d=t("p"),p=he(k),z=e(),$=he(r[1]),j=e(),m=t("p"),V=he(O),W=e(),f=t("a"),G=he(r[1]),q=e(),y=t("div"),v=t("label"),K=he(M),X=e(),g=t("vaadin-date-picker"),Z=e(),b=t("div"),w=t("label"),J=he(N),Q=e(),E=t("input"),ee=e(),x=t("span"),te=e(),A=t("div"),R.c(),re=e(),S=t("div"),C=t("button"),ie=he(I),this.c=ae,ue(o,"class","PlayerSelfExclusionTitle "+(r[9]?"PlayerSelfExclusionTitleNone":"")),ue(l,"class","SelfExclusionDescriptionText"),ue(u,"class","SelfExclusionDescriptionText"),ue(d,"class","SelfExclusionDescriptionText"),ue(f,"href",_="mailto:"+r[1]),ue(m,"class","SelfExclusionDescriptionText"),ue(a,"class","SelfExclusionDescription "+(r[9]?"SelfExclusionDescriptionMobile":"")),ue(v,"for","SelfExclusionDate"),ye(g,"min",r[6]),ye(g,"max",r[7]),ye(g,"value",r[6]),ue(y,"class","SelfExclusionDateWrapper "+(r[9]?"SelfExclusionDateWrapperMobile":"")),ue(E,"type","Checkbox"),ue(x,"class","Checkmark"),ue(x,"part","Checkmark"),ue(w,"class","SelfExclusionRadio"),ue(b,"class","SelfExclusionRadioWrapper "+(r[9]?"SelfExclusionRadioWrapperMobile":"")),ue(A,"class","SelfExclusionDescription "+(r[9]?"SelfExclusionDescriptionMobile":"")),ue(C,"class","SelfExclusionSave"),ue(S,"class","SelfExclusionActionButtons "+(r[9]?"SelfExclusionActionButtonsMobile":"")),ue(n,"class","SelfExclusionWrapper "+(r[9]?"SelfExclusionWrapperMobile":""))},m(e,t){pe(e,i,t),le(i,n),L&&L.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,u),le(u,c),le(a,U),le(a,d),le(d,p),le(d,z),le(d,$),le(a,j),le(a,m),le(m,V),le(m,W),le(m,f),le(f,G),le(n,q),le(n,y),le(y,v),le(v,K),le(y,X),le(y,g),r[18](g),le(n,Z),le(n,b),le(b,w),le(w,J),le(w,Q),le(w,E),le(w,ee),le(w,x),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(E,"click",r[19]),_e(C,"click",r[20])],ne=!0)},p(e,t){e[9]&&L.p(e,t),256&t[0]&&T!==(T=e[8]("title")+"")&&ce(s,T),257&t[0]&&D!==(D=e[8]("selfExclusionText1",{values:{operatorname:e[0]}})+"")&&ce(h,D),256&t[0]&&P!==(P=e[8]("selfExclusionText2")+"")&&ce(c,P),256&t[0]&&k!==(k=e[8]("selfExclusionText3")+"")&&ce(p,k),2&t[0]&&ce($,e[1]),256&t[0]&&O!==(O=e[8]("selfExclusionText4")+"")&&ce(V,O),2&t[0]&&ce(G,e[1]),2&t[0]&&_!==(_="mailto:"+e[1])&&ue(f,"href",_),256&t[0]&&M!==(M=e[8]("duration")+"")&&ce(K,M),64&t[0]&&ye(g,"min",e[6]),128&t[0]&&ye(g,"max",e[7]),64&t[0]&&ye(g,"value",e[6]),256&t[0]&&N!==(N=e[8]("forever")+"")&&ce(J,N),H===(H=se(e))&&R?R.p(e,t):(R.d(1),(R=H(e))&&(R.c(),R.m(A,null))),256&t[0]&&I!==(I=e[8]("save")+"")&&ce(ie,I)},i:ae,o:ae,d(e){e&&me(i),L&&L.d(),r[18](null),R.d(),r[21](null),ne=!1,de(oe)}}}function Oh(t,e,r){let i;var n=Pi;t.$$.on_destroy.push(L(n,e=>r(8,i=e)));let o,s,a,l,{lang:h="en"}=e,{operator:u="Everymatrix"}=e,{supportemail:c=""}=e,{clientstyling:d=""}=e,{clientstylingurl:p=""}=e,{translationurl:m=""}=e,f="PC"!=((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="",v="",g=new Date;Object.keys(Ii).forEach(e=>{Ni(e,Ii[e])}),a=Mi(g.setDate(g.getDate())).add(6,"M").format("YYYY-MM-DD"),l=Mi(g.setDate(g.getDate())).add(5,"y").format("YYYY-MM-DD"),v=a;const b=()=>{r(4,_=0==_)},w=e=>{1==_?y="SelfExclusionPermanent":(y="SelfExclusionUntilSelectedDate",e&&0<e.length&&r(5,v=e))},E=e=>{e.preventDefault(),w(),window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:y,selfExclusionExpiryDate:v},window.location.href)},x=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:f},window.location.href)},A=e=>{w(e.target.value)};e=()=>()=>{s.removeEventListener("change",A)},function(){if(H)return H;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e);return t.$$set=e=>{"lang"in e&&r(13,h=e.lang),"operator"in e&&r(0,u=e.operator),"supportemail"in e&&r(1,c=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,fi.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=>{Ni(e,t[e])})}).catch(e=>{console.log(e)})},[u,c,o,s,_,v,a,l,i,f,b,E,x,h,d,p,m,()=>x(),function(e){F[e?"unshift":"push"](()=>{s=e,r(3,s)})},()=>b(),e=>E(e),function(e){F[e?"unshift":"push"](()=>{o=e,r(2,o)})}]}Li(Th);class Mh 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},Oh,kh,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",Mh),Mh});
|
|
2219
2219
|
//# sourceMappingURL=player-account-self-exclusion.js.map
|