@everymatrix/player-bonus-history 1.45.7 → 1.45.9
Sign up to get free protection for your applications and to get access to all the features.
- package/components/{PlayerBonusHistory-Cl6N084o.cjs → PlayerBonusHistory-Bf9QTgAU.cjs} +5 -5
- package/components/{PlayerBonusHistory-Dakc5Ye4.js → PlayerBonusHistory-Bwn0vTfu.js} +51 -51
- package/es2015/player-bonus-history.cjs +1 -1
- package/es2015/player-bonus-history.js +1 -1
- package/package.json +1 -1
@@ -2191,7 +2191,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2191
2191
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
2192
2192
|
Code distributed by Google as part of the polymer project is also
|
2193
2193
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
2194
|
-
*/const Za=!1,el=o=>o,vs=typeof document.head.style.touchAction=="string",ts="__polymerGestures",Mt="__polymerGesturesHandled",ss="__polymerGesturesTouchAction",fo=25,_o=5,tl=2,sl=["mousedown","mousemove","mouseup","click"],ol=[0,1,4,2],il=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function ws(o){return sl.indexOf(o)>-1}let bi=!1;(function(){try{const o=Object.defineProperty({},"passive",{get(){bi=!0}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();function rl(o){if(!(ws(o)||o==="touchend")&&vs&&bi&&Za)return{passive:!0}}const nl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),al={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ae(o){const t=o.type;if(!ws(t))return!1;if(t==="mousemove"){let s=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!il&&(s=ol[o.which]||0),!!(s&1)}return(o.button===void 0?0:o.button)===0}function ll(o){if(o.type==="click"){if(o.detail===0)return!0;const t=Z(o);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),s=o.pageX,i=o.pageY;return!(s>=e.left&&s<=e.right&&i>=e.top&&i<=e.bottom)}return!1}const G={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function cl(o){let t="auto";const e=wi(o);for(let s=0,i;s<e.length;s++)if(i=e[s],i[ss]){t=i[ss];break}return t}function vi(o,t,e){o.movefn=t,o.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function ye(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const wi=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],xs={},ne=[];function dl(o,t){let e=document.elementFromPoint(o,t),s=e;for(;s&&s.shadowRoot&&!window.ShadyDOM;){const i=s;if(s=s.shadowRoot.elementFromPoint(o,t),i===s)break;s&&(e=s)}return e}function Z(o){const t=wi(o);return t.length>0?t[0]:o.target}function ul(o){const t=o.type,s=o.currentTarget[ts];if(!s)return;const i=s[t];if(!i)return;if(!o[Mt]&&(o[Mt]={},t.startsWith("touch"))){const n=o.changedTouches[0];if(t==="touchstart"&&o.touches.length===1&&(G.touch.id=n.identifier),G.touch.id!==n.identifier)return;vs||(t==="touchstart"||t==="touchmove")&&hl(o)}const r=o[Mt];if(!r.skip){for(let n=0,a;n<ne.length;n++)a=ne[n],i[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(o.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<ne.length;n++)a=ne[n],i[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](o))}}function hl(o){const t=o.changedTouches[0],e=o.type;if(e==="touchstart")G.touch.x=t.clientX,G.touch.y=t.clientY,G.touch.scrollDecided=!1;else if(e==="touchmove"){if(G.touch.scrollDecided)return;G.touch.scrollDecided=!0;const s=cl(o);let i=!1;const r=Math.abs(G.touch.x-t.clientX),n=Math.abs(G.touch.y-t.clientY);o.cancelable&&(s==="none"?i=!0:s==="pan-x"?i=n>r:s==="pan-y"&&(i=r>n)),i?o.preventDefault():ct("track")}}function
|
2194
|
+
*/const Za=!1,el=o=>o,vs=typeof document.head.style.touchAction=="string",ts="__polymerGestures",Mt="__polymerGesturesHandled",ss="__polymerGesturesTouchAction",fo=25,_o=5,tl=2,sl=["mousedown","mousemove","mouseup","click"],ol=[0,1,4,2],il=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function ws(o){return sl.indexOf(o)>-1}let bi=!1;(function(){try{const o=Object.defineProperty({},"passive",{get(){bi=!0}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();function rl(o){if(!(ws(o)||o==="touchend")&&vs&&bi&&Za)return{passive:!0}}const nl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),al={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ae(o){const t=o.type;if(!ws(t))return!1;if(t==="mousemove"){let s=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!il&&(s=ol[o.which]||0),!!(s&1)}return(o.button===void 0?0:o.button)===0}function ll(o){if(o.type==="click"){if(o.detail===0)return!0;const t=Z(o);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),s=o.pageX,i=o.pageY;return!(s>=e.left&&s<=e.right&&i>=e.top&&i<=e.bottom)}return!1}const G={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function cl(o){let t="auto";const e=wi(o);for(let s=0,i;s<e.length;s++)if(i=e[s],i[ss]){t=i[ss];break}return t}function vi(o,t,e){o.movefn=t,o.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function ye(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const wi=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],xs={},ne=[];function dl(o,t){let e=document.elementFromPoint(o,t),s=e;for(;s&&s.shadowRoot&&!window.ShadyDOM;){const i=s;if(s=s.shadowRoot.elementFromPoint(o,t),i===s)break;s&&(e=s)}return e}function Z(o){const t=wi(o);return t.length>0?t[0]:o.target}function ul(o){const t=o.type,s=o.currentTarget[ts];if(!s)return;const i=s[t];if(!i)return;if(!o[Mt]&&(o[Mt]={},t.startsWith("touch"))){const n=o.changedTouches[0];if(t==="touchstart"&&o.touches.length===1&&(G.touch.id=n.identifier),G.touch.id!==n.identifier)return;vs||(t==="touchstart"||t==="touchmove")&&hl(o)}const r=o[Mt];if(!r.skip){for(let n=0,a;n<ne.length;n++)a=ne[n],i[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(o.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<ne.length;n++)a=ne[n],i[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](o))}}function hl(o){const t=o.changedTouches[0],e=o.type;if(e==="touchstart")G.touch.x=t.clientX,G.touch.y=t.clientY,G.touch.scrollDecided=!1;else if(e==="touchmove"){if(G.touch.scrollDecided)return;G.touch.scrollDecided=!0;const s=cl(o);let i=!1;const r=Math.abs(G.touch.x-t.clientX),n=Math.abs(G.touch.y-t.clientY);o.cancelable&&(s==="none"?i=!0:s==="pan-x"?i=n>r:s==="pan-y"&&(i=r>n)),i?o.preventDefault():ct("track")}}function W(o,t,e){return xs[t]?(pl(o,t,e),!0):!1}function pl(o,t,e){const s=xs[t],i=s.deps,r=s.name;let n=o[ts];n||(o[ts]=n={});for(let a=0,l,c;a<i.length;a++)l=i[a],!(nl&&ws(l)&&l!=="click")&&(c=n[l],c||(n[l]=c={_count:0}),c._count===0&&o.addEventListener(l,ul,rl(l)),c[r]=(c[r]||0)+1,c._count=(c._count||0)+1);o.addEventListener(t,e),s.touchAction&&xi(o,s.touchAction)}function Cs(o){ne.push(o),o.emits.forEach(t=>{xs[t]=o})}function ml(o){for(let t=0,e;t<ne.length;t++){e=ne[t];for(let s=0,i;s<e.emits.length;s++)if(i=e.emits[s],i===o)return e}return null}function xi(o,t){vs&&o instanceof HTMLElement&&Ua.run(()=>{o.style.touchAction=t}),o[ss]=t}function As(o,t,e){const s=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(s.detail=e,el(o).dispatchEvent(s),s.defaultPrevented){const i=e.preventer||e.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function ct(o){const t=ml(o);t.info&&(t.info.prevent=!0)}Cs({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){ye(this.info)},mousedown(o){if(!ae(o))return;const t=Z(o),e=this,s=r=>{ae(r)||(De("up",t,r),ye(e.info))},i=r=>{ae(r)&&De("up",t,r),ye(e.info)};vi(this.info,s,i),De("down",t,o)},touchstart(o){De("down",Z(o),o.changedTouches[0],o)},touchend(o){De("up",Z(o),o.changedTouches[0],o)}});function De(o,t,e,s){t&&As(t,o,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:s,prevent(i){return ct(i)}})}Cs({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(o){this.moves.length>tl&&this.moves.shift(),this.moves.push(o)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,ye(this.info)},mousedown(o){if(!ae(o))return;const t=Z(o),e=this,s=r=>{const n=r.clientX,a=r.clientY;go(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&ct("tap"),e.info.addMove({x:n,y:a}),ae(r)||(e.info.state="end",ye(e.info)),t&&It(e.info,t,r),e.info.started=!0)},i=r=>{e.info.started&&s(r),ye(e.info)};vi(this.info,s,i),this.info.x=o.clientX,this.info.y=o.clientY},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(o){const t=Z(o),e=o.changedTouches[0],s=e.clientX,i=e.clientY;go(this.info,s,i)&&(this.info.state==="start"&&ct("tap"),this.info.addMove({x:s,y:i}),It(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(o){const t=Z(o),e=o.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),It(this.info,t,e))}});function go(o,t,e){if(o.prevent)return!1;if(o.started)return!0;const s=Math.abs(o.x-t),i=Math.abs(o.y-e);return s>=_o||i>=_o}function It(o,t,e){if(!t)return;const s=o.moves[o.moves.length-2],i=o.moves[o.moves.length-1],r=i.x-o.x,n=i.y-o.y;let a,l=0;s&&(a=i.x-s.x,l=i.y-s.y),As(t,"track",{state:o.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return dl(e.clientX,e.clientY)}})}Cs({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(o){ae(o)&&(this.info.x=o.clientX,this.info.y=o.clientY)},click(o){ae(o)&&yo(this.info,o)},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(o){yo(this.info,o.changedTouches[0],o)}});function yo(o,t,e){const s=Math.abs(t.clientX-o.x),i=Math.abs(t.clientY-o.y),r=Z(e||t);!r||al[r.localName]&&r.hasAttribute("disabled")||(isNaN(s)||isNaN(i)||s<=fo&&i<=fo||ll(t))&&(o.prevent||As(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
|
2195
2195
|
* @license
|
2196
2196
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
2197
2197
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
@@ -2203,7 +2203,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
2203
2203
|
* @license
|
2204
2204
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
2205
2205
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
2206
|
-
*/const fl=o=>class extends Ci(_t(o)){get _activeKeys(){return[" "]}ready(){super.ready(),
|
2206
|
+
*/const fl=o=>class extends Ci(_t(o)){get _activeKeys(){return[" "]}ready(){super.ready(),W(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),W(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",s=>{this._activeKeys.includes(s.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
|
2207
2207
|
* @license
|
2208
2208
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
2209
2209
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
@@ -3265,7 +3265,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
3265
3265
|
* @license
|
3266
3266
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
3267
3267
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
3268
|
-
*/const wc=o=>class extends Ps(o){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>X(e.date,this.focusedDate))}ready(){super.ready(),
|
3268
|
+
*/const wc=o=>class extends Ps(o){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>X(e.date,this.focusedDate))}ready(){super.ready(),W(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,s,i){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),s&&i&&s.getMonth()===i.getMonth()&&s.getMonth()===e.getMonth()&&i.getDate()-s.getDate()>=0?!1:!Ye(r,s,i)&&!Ye(n,s,i)}_getTitle(e,s){if(!(e===void 0||s===void 0))return s.formatTitle(s.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,s){e.setDate(e.getDate()+s)}_applyFirstDayOfWeek(e,s){if(!(e===void 0||s===void 0))return e.slice(s).concat(e.slice(0,s))}_getWeekDayNames(e,s){if(e===void 0||s===void 0)return[];const{weekdays:i,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(i,n).map((c,u)=>({weekDay:c,weekDayShort:a[u]}))}__focusedDateChanged(e,s){Array.isArray(s)&&s.some(i=>X(i,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,s){return e&&s&&s.firstDayOfWeek===1}_isToday(e){return X(new Date,e)}_getDays(e,s){if(e===void 0||s===void 0)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==s.firstDayOfWeek;)this._dateAdd(i,-1);const r=[],n=i.getMonth(),a=e.getMonth();for(;i.getMonth()===a||i.getMonth()===n;)r.push(i.getMonth()===a?new Date(i.getTime()):null),this._dateAdd(i,1);return r}_getWeeks(e){return e.reduce((s,i,r)=>(r%7===0&&s.push([]),s[s.length-1].push(i),s),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const s=e.reduce((i,r)=>!i&&r?r:i);return Ql(s)}__getDayAriaLabel(e){if(!e)return"";let s=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(s+=`, ${this.i18n.today}`),s}};/**
|
3269
3269
|
* @license
|
3270
3270
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
3271
3271
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
@@ -3379,7 +3379,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
3379
3379
|
* @license
|
3380
3380
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
3381
3381
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
3382
|
-
*/const Ac=o=>class extends o{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){xi(this.$.scrollers,"pan-y"),U(this.$.scrollers,"track",this._track.bind(this)),U(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),U(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),U(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ui(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new re(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",s=>this.__onTodayButtonKeyDown(s)),U(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new re(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",s=>this.__onCancelButtonKeyDown(s)),U(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,s){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,s),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new re(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",s=>{this.__onMonthCalendarKeyDown(s)}),e.addEventListener("init-done",()=>{const s=[...this.querySelectorAll("vaadin-month-calendar")];s.forEach(i=>{i.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=s}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new re(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),U(e,"tap",s=>{this._onYearTap(s)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,s){e&&(e.textContent=s&&s.cancel)}__updateTodayButton(e,s,i,r){e&&(e.textContent=s&&s.today,e.disabled=!this._isTodayAllowed(i,r))}__updateCalendars(e,s,i,r,n,a,l,c,u){e&&e.length&&e.forEach(h=>{h.i18n=s,h.minDate=i,h.maxDate=r,h.focusedDate=a,h.selectedDate=n,h.showWeekNumbers=l,h.ignoreTaps=c,u?h.setAttribute("theme",u):h.removeAttribute("theme")})}__updateYears(e,s,i){e&&e.length&&e.forEach(r=>{r.selectedDate=s,i?r.setAttribute("theme",i):r.removeAttribute("theme")})}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,s=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const c=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+c,s);return}const r=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<i;r?this._scrollToPosition(i,s):l&&this._scrollToPosition(i-a+1,s)}_calculateWeekScrollOffset(e){const s=new Date(0,0);s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(1);let i=0;for(;s.getDate()<e.getDate();)s.setDate(s.getDate()+1),s.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Ve.debounce(this._debouncer,lt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,s,i){return e&&s&&typeof s.formatDate=="function"?s.formatDate(Bi(e)):i}_onTodayTap(){const e=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const i=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(e,s){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!s){this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(c=>{i=c});const r=(c,u,h,p)=>(c/=p/2,c<1?h/2*c*c+u:(c-=1,-h/2*(c*(c-2)-1)+u));let n=0;const a=this._monthScroller.position,l=c=>{n||(n=c);const u=c-n;if(u<this.scrollDuration){const h=r(u,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,s){return Math.min(s.max,Math.max(s.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const s=this._translateX+e.detail.ddx;this._translateX=this._limit(s,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Fi(e).getFullYear()}_differenceInMonths(e,s){return(e.getFullYear()-s.getFullYear())*12-s.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){X(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let s=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),s=!0;break;case"ArrowUp":this._moveFocusByDays(-7),s=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),s=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),s=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),s=!0;break;case" ":this.__toggleDate(this.focusedDate),s=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),s=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),s=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),s=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),s=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}s&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,s){switch(e.stopPropagation(),s){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const s=this.focusableDateElement;s&&X(s.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,s.focus())}}focusDate(e,s){return Ke(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,s||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Ke(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(s=>{Mi(this,()=>{Yi(),s()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(zi(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,s,i){this._dateAllowed(e)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?s>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,s){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),s&&i.setDate(this.focusedDate.getDate()+s),i}_moveFocusByDays(e){const s=this._getDateDiff(0,e);this._focusAllowedDate(s,e,!1)}_moveFocusByMonths(e){const s=this._getDateDiff(e),i=s.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),s.setDate(this._focusedMonthDate),s.getMonth()!==i&&s.setDate(0),this._focusAllowedDate(s,e,!0)}_moveFocusInsideMonth(e,s){const i=new Date(0,0);i.setFullYear(e.getFullYear()),s==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[s]):this._focusClosestDate(e)}_dateAllowed(e,s=this.minDate,i=this.maxDate){return(!s||e>=s)&&(!i||e<=i)}_isTodayAllowed(e,s){const i=new Date,r=new Date(0,0);return r.setFullYear(i.getFullYear()),r.setMonth(i.getMonth()),r.setDate(i.getDate()),this._dateAllowed(r,e,s)}};/**
|
3382
|
+
*/const Ac=o=>class extends o{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){xi(this.$.scrollers,"pan-y"),W(this.$.scrollers,"track",this._track.bind(this)),W(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),W(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),W(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ui(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new re(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",s=>this.__onTodayButtonKeyDown(s)),W(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new re(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",s=>this.__onCancelButtonKeyDown(s)),W(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,s){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,s),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new re(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",s=>{this.__onMonthCalendarKeyDown(s)}),e.addEventListener("init-done",()=>{const s=[...this.querySelectorAll("vaadin-month-calendar")];s.forEach(i=>{i.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=s}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new re(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),W(e,"tap",s=>{this._onYearTap(s)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,s){e&&(e.textContent=s&&s.cancel)}__updateTodayButton(e,s,i,r){e&&(e.textContent=s&&s.today,e.disabled=!this._isTodayAllowed(i,r))}__updateCalendars(e,s,i,r,n,a,l,c,u){e&&e.length&&e.forEach(h=>{h.i18n=s,h.minDate=i,h.maxDate=r,h.focusedDate=a,h.selectedDate=n,h.showWeekNumbers=l,h.ignoreTaps=c,u?h.setAttribute("theme",u):h.removeAttribute("theme")})}__updateYears(e,s,i){e&&e.length&&e.forEach(r=>{r.selectedDate=s,i?r.setAttribute("theme",i):r.removeAttribute("theme")})}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,s=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const c=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+c,s);return}const r=this._monthScroller.position>i,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<i;r?this._scrollToPosition(i,s):l&&this._scrollToPosition(i-a+1,s)}_calculateWeekScrollOffset(e){const s=new Date(0,0);s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(1);let i=0;for(;s.getDate()<e.getDate();)s.setDate(s.getDate()+1),s.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Ve.debounce(this._debouncer,lt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,s,i){return e&&s&&typeof s.formatDate=="function"?s.formatDate(Bi(e)):i}_onTodayTap(){const e=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const i=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+i*12,!0)}}_scrollToPosition(e,s){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!s){this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(c=>{i=c});const r=(c,u,h,p)=>(c/=p/2,c<1?h/2*c*c+u:(c-=1,-h/2*(c*(c-2)-1)+u));let n=0;const a=this._monthScroller.position,l=c=>{n||(n=c);const u=c-n;if(u<this.scrollDuration){const h=r(u,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,s){return Math.min(s.max,Math.max(s.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const s=this._translateX+e.detail.ddx;this._translateX=this._limit(s,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Fi(e).getFullYear()}_differenceInMonths(e,s){return(e.getFullYear()-s.getFullYear())*12-s.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){X(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let s=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),s=!0;break;case"ArrowUp":this._moveFocusByDays(-7),s=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),s=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),s=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),s=!0;break;case" ":this.__toggleDate(this.focusedDate),s=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),s=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),s=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),s=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),s=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}s&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,s){switch(e.stopPropagation(),s){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const s=this.focusableDateElement;s&&X(s.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,s.focus())}}focusDate(e,s){return Ke(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,s||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Ke(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(s=>{Mi(this,()=>{Yi(),s()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(zi(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,s,i){this._dateAllowed(e)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?s>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,s){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),s&&i.setDate(this.focusedDate.getDate()+s),i}_moveFocusByDays(e){const s=this._getDateDiff(0,e);this._focusAllowedDate(s,e,!1)}_moveFocusByMonths(e){const s=this._getDateDiff(e),i=s.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),s.setDate(this._focusedMonthDate),s.getMonth()!==i&&s.setDate(0),this._focusAllowedDate(s,e,!0)}_moveFocusInsideMonth(e,s){const i=new Date(0,0);i.setFullYear(e.getFullYear()),s==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[s]):this._focusClosestDate(e)}_dateAllowed(e,s=this.minDate,i=this.maxDate){return(!s||e>=s)&&(!i||e<=i)}_isTodayAllowed(e,s){const i=new Date,r=new Date(0,0);return r.setFullYear(i.getFullYear()),r.setMonth(i.getMonth()),r.setDate(i.getDate()),this._dateAllowed(r,e,s)}};/**
|
3383
3383
|
* @license
|
3384
3384
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
3385
3385
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
@@ -3690,4 +3690,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
3690
3690
|
></vaadin-date-picker-overlay>
|
3691
3691
|
|
3692
3692
|
<slot name="tooltip"></slot>
|
3693
|
-
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new $c(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Vc(this.inputElement,this._labelController)),this._tooltipController=new yi(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(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}H(Jc);function Ao(o,t){d.addMessages(o,t)}function Qc(o){d.$locale.set(o)}const Eo={en:{titleBonusesHistory:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{titleBonusesHistory:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{titleBonusesHistory:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{titleBonusesHistory:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{titleBonusesHistory:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{titleBonusesHistory:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."},hr:{titleBonusesHistory:"Povijest bonusa",dateFrom:"Od:",dateTo:"Do:",dateFilter:"Filter",noBonusHistory:"Nemate bonusa u povijesti."},"pt-br":{titleBonusesHistory:"Histórico de bônus",dateFrom:"De:",dateTo:"PARA:",dateFilter:"Filtro",noBonusHistory:"Não há bônus para o período selecionado"},"es-mx":{titleBonusesHistory:"Historial de bonos",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene bonus para el periodo seleccionado"},tr:{titleBonusesHistory:"Bonus Geçmişi",dateFrom:"İtibaren:",dateTo:"İle:",dateFilter:"Filtre",noBonusHistory:"Seçilen dönem için bonusunuz yok."}};function Zc(o){d.append_styles(o,"svelte-jtxmoo",".BonusesWrapper{background-color:var(--emw-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--color-typography-cotrast, #444444);padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.BonusesTitleMobile{font-size:var(--emw--size-standard, 16px)}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-large, 20px)}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.BonusesCalendarStartDate input,.BonusesCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesCalendarFilter{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 50px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;outline:none}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px;border-radius:var(--emw--border-radius-large, 20px)}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:block;line-break:anywhere;line-height:2em}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;font-weight:var(--emw--font-weight-bold, 700)}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-typography-cotrast, #444444);font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:var(--emw--font-weight-bold, 700)}")}function Po(o,t,e){const s=o.slice();return s[44]=t[e],s[46]=e,s}function ko(o,t,e){const s=o.slice();return s[47]=t[e],s}function ed(o){let t,e,s,i=o[17]("titleBonusesHistory")+"",r,n,a,l,c,u,h=o[17]("dateFrom")+"",p,m,f,y,b,v,C=o[17]("dateTo")+"",O,I,x,A,D,E=o[17]("dateFilter")+"",V,Ae,J,qe,he,$,Y=o[18]&&td(o);function Ee(P,z){return P[16].length===0?od:sd}let pe=Ee(o),L=pe(o),N=o[16].length!==0&&Do(o);return{c(){t=d.element("div"),Y&&Y.c(),e=d.space(),s=d.element("h2"),r=d.text(i),n=d.space(),a=d.element("div"),l=d.element("div"),c=d.element("div"),u=d.element("label"),p=d.text(h),m=d.space(),f=d.element("vaadin-date-picker"),y=d.space(),b=d.element("div"),v=d.element("label"),O=d.text(C),I=d.space(),x=d.element("vaadin-date-picker"),A=d.space(),D=d.element("button"),V=d.text(E),Ae=d.space(),J=d.element("div"),L.c(),qe=d.space(),N&&N.c(),d.attr(s,"class","BonusesTitle "+(o[18]?"BonusesTitleNone":"")),d.attr(s,"part","BonusesTitle "+(o[18]?"BonusesTitleNone":"")),d.attr(u,"for","BonusCalendarStartDate"),d.set_custom_element_data(f,"max",o[9]),d.set_custom_element_data(f,"value",o[10]),d.set_custom_element_data(f,"placeholder","From"),d.set_custom_element_data(f,"class","VaadinDatePicker"),d.attr(c,"class","BonusesCalendarStartDate "+(o[18]?"BonusesCalendarMobile":"")),d.attr(v,"for","BonusesCalendarEndDate"),d.set_custom_element_data(x,"max",o[9]),d.set_custom_element_data(x,"value",o[9]),d.set_custom_element_data(x,"placeholder","To"),d.set_custom_element_data(x,"class","VaadinDatePicker"),d.attr(b,"class","BonusesCalendarEndDate "+(o[18]?"BonusesCalendarMobile":"")),d.attr(l,"class","BonusesCalendarContainer "+(o[18]?"BonusesCalendarContainerMobile":"")),d.attr(D,"class","BonusesCalendarFilter "+(o[18]?"BonusesCalendarFilterMobile":"")),d.attr(a,"class","BonusCalendarWrapper "+(o[18]?"BonusCalendarWrapperMobile":"")),d.attr(J,"class","BonusesGrid "+(o[18]?"BonusesGridMobile":"")),d.attr(t,"class","BonusesWrapper "+(o[18]?"BonusesWrapperMobile":""))},m(P,z){d.insert(P,t,z),Y&&Y.m(t,null),d.append(t,e),d.append(t,s),d.append(s,r),d.append(t,n),d.append(t,a),d.append(a,l),d.append(l,c),d.append(c,u),d.append(u,p),d.append(c,m),d.append(c,f),o[25](f),d.append(l,y),d.append(l,b),d.append(b,v),d.append(v,O),d.append(b,I),d.append(b,x),o[26](x),d.append(a,A),d.append(a,D),d.append(D,V),d.append(t,Ae),d.append(t,J),L.m(J,null),d.append(t,qe),N&&N.m(t,null),he||($=d.listen(D,"click",o[27]),he=!0)},p(P,z){P[18]&&Y.p(P,z),z[0]&131072&&i!==(i=P[17]("titleBonusesHistory")+"")&&d.set_data(r,i),z[0]&131072&&h!==(h=P[17]("dateFrom")+"")&&d.set_data(p,h),z[0]&512&&d.set_custom_element_data(f,"max",P[9]),z[0]&1024&&d.set_custom_element_data(f,"value",P[10]),z[0]&131072&&C!==(C=P[17]("dateTo")+"")&&d.set_data(O,C),z[0]&512&&d.set_custom_element_data(x,"max",P[9]),z[0]&512&&d.set_custom_element_data(x,"value",P[9]),z[0]&131072&&E!==(E=P[17]("dateFilter")+"")&&d.set_data(V,E),pe===(pe=Ee(P))&&L?L.p(P,z):(L.d(1),L=pe(P),L&&(L.c(),L.m(J,null))),P[16].length!==0?N?N.p(P,z):(N=Do(P),N.c(),N.m(t,null)):N&&(N.d(1),N=null)},d(P){P&&d.detach(t),Y&&Y.d(),o[25](null),o[26](null),L.d(),N&&N.d(),he=!1,$()}}}function td(o){let t,e,s,i,r,n,a,l,c,u,h=o[17]("titleBonusesHistory")+"",p,m,f;return{c(){t=d.element("div"),e=d.svg_element("svg"),s=d.svg_element("defs"),i=d.svg_element("style"),r=d.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),n=d.svg_element("g"),a=d.svg_element("g"),l=d.svg_element("path"),c=d.space(),u=d.element("h2"),p=d.text(h),d.attr(l,"class","aaa"),d.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),d.attr(l,"transform","translate(15 15) rotate(180)"),d.attr(a,"transform","translate(20 158)"),d.attr(n,"transform","translate(-20 -158)"),d.attr(e,"xmlns","http://www.w3.org/2000/svg"),d.attr(e,"width","15"),d.attr(e,"height","15"),d.attr(e,"viewBox","0 0 15 15"),d.attr(u,"class","BonusesTitleMobile"),d.attr(t,"class","MenuReturnButton")},m(y,b){d.insert(y,t,b),d.append(t,e),d.append(e,s),d.append(s,i),d.append(i,r),d.append(e,n),d.append(n,a),d.append(a,l),d.append(t,c),d.append(t,u),d.append(u,p),m||(f=d.listen(t,"click",o[24]),m=!0)},p(y,b){b[0]&131072&&h!==(h=y[17]("titleBonusesHistory")+"")&&d.set_data(p,h)},d(y){y&&d.detach(t),m=!1,f()}}}function sd(o){let t,e=d.ensure_array_like(o[16]),s=[];for(let i=0;i<e.length;i+=1)s[i]=To(ko(o,e,i));return{c(){for(let i=0;i<s.length;i+=1)s[i].c();t=d.empty()},m(i,r){for(let n=0;n<s.length;n+=1)s[n]&&s[n].m(i,r);d.insert(i,t,r)},p(i,r){if(r[0]&65551){e=d.ensure_array_like(i[16]);let n;for(n=0;n<e.length;n+=1){const a=ko(i,e,n);s[n]?s[n].p(a,r):(s[n]=To(a),s[n].c(),s[n].m(t.parentNode,t))}for(;n<s.length;n+=1)s[n].d(1);s.length=e.length}},d(i){i&&d.detach(t),d.destroy_each(s,i)}}}function od(o){let t,e=o[17]("noBonusHistory")+"",s;return{c(){t=d.element("p"),s=d.text(e)},m(i,r){d.insert(i,t,r),d.append(t,s)},p(i,r){r[0]&131072&&e!==(e=i[17]("noBonusHistory")+"")&&d.set_data(s,e)},d(i){i&&d.detach(t)}}}function id(o){let t,e,s,i,r,n,a,l,c,u;return{c(){t=d.element("player-bonus-card"),d.set_custom_element_data(t,"bonuswalletid",e=o[47].walletId),d.set_custom_element_data(t,"bonusdate",s=o[47].granted),d.set_custom_element_data(t,"bonusstatus",i=o[47].status),d.set_custom_element_data(t,"bonusname",r=o[47].name),d.set_custom_element_data(t,"bonustype",n=o[47].type),d.set_custom_element_data(t,"bonusamount",a=o[47].extension.grantedPlayerCurrencyAmount),d.set_custom_element_data(t,"bonuswageringamount",l=`${o[47].fulfilledWR} / ${o[47].originalWageringRequirement}`),d.set_custom_element_data(t,"bonusremainingamount",c=o[47].currentAmount),d.set_custom_element_data(t,"bonuscurrency",u=o[47].currency),d.set_custom_element_data(t,"lang",o[0]),d.set_custom_element_data(t,"clientstyling",o[1]),d.set_custom_element_data(t,"clientstylingurl",o[2]),d.set_custom_element_data(t,"translationurl",o[3])},m(h,p){d.insert(h,t,p)},p(h,p){p[0]&65536&&e!==(e=h[47].walletId)&&d.set_custom_element_data(t,"bonuswalletid",e),p[0]&65536&&s!==(s=h[47].granted)&&d.set_custom_element_data(t,"bonusdate",s),p[0]&65536&&i!==(i=h[47].status)&&d.set_custom_element_data(t,"bonusstatus",i),p[0]&65536&&r!==(r=h[47].name)&&d.set_custom_element_data(t,"bonusname",r),p[0]&65536&&n!==(n=h[47].type)&&d.set_custom_element_data(t,"bonustype",n),p[0]&65536&&a!==(a=h[47].extension.grantedPlayerCurrencyAmount)&&d.set_custom_element_data(t,"bonusamount",a),p[0]&65536&&l!==(l=`${h[47].fulfilledWR} / ${h[47].originalWageringRequirement}`)&&d.set_custom_element_data(t,"bonuswageringamount",l),p[0]&65536&&c!==(c=h[47].currentAmount)&&d.set_custom_element_data(t,"bonusremainingamount",c),p[0]&65536&&u!==(u=h[47].currency)&&d.set_custom_element_data(t,"bonuscurrency",u),p[0]&1&&d.set_custom_element_data(t,"lang",h[0]),p[0]&2&&d.set_custom_element_data(t,"clientstyling",h[1]),p[0]&4&&d.set_custom_element_data(t,"clientstylingurl",h[2]),p[0]&8&&d.set_custom_element_data(t,"translationurl",h[3])},d(h){h&&d.detach(t)}}}function rd(o){let t,e,s,i,r,n,a;return{c(){t=d.element("player-bonus-card"),d.set_custom_element_data(t,"bonuswalletid",e=o[47].walletId),d.set_custom_element_data(t,"bonusdate",s=o[47].granted),d.set_custom_element_data(t,"bonusstatus",i=o[47].status),d.set_custom_element_data(t,"bonusname",r=o[47].name),d.set_custom_element_data(t,"bonustype",n=o[47].type),d.set_custom_element_data(t,"bonuscurrency",a=o[47].currency),d.set_custom_element_data(t,"lang",o[0]),d.set_custom_element_data(t,"clientstyling",o[1]),d.set_custom_element_data(t,"clientstylingurl",o[2]),d.set_custom_element_data(t,"translationurl",o[3])},m(l,c){d.insert(l,t,c)},p(l,c){c[0]&65536&&e!==(e=l[47].walletId)&&d.set_custom_element_data(t,"bonuswalletid",e),c[0]&65536&&s!==(s=l[47].granted)&&d.set_custom_element_data(t,"bonusdate",s),c[0]&65536&&i!==(i=l[47].status)&&d.set_custom_element_data(t,"bonusstatus",i),c[0]&65536&&r!==(r=l[47].name)&&d.set_custom_element_data(t,"bonusname",r),c[0]&65536&&n!==(n=l[47].type)&&d.set_custom_element_data(t,"bonustype",n),c[0]&65536&&a!==(a=l[47].currency)&&d.set_custom_element_data(t,"bonuscurrency",a),c[0]&1&&d.set_custom_element_data(t,"lang",l[0]),c[0]&2&&d.set_custom_element_data(t,"clientstyling",l[1]),c[0]&4&&d.set_custom_element_data(t,"clientstylingurl",l[2]),c[0]&8&&d.set_custom_element_data(t,"translationurl",l[3])},d(l){l&&d.detach(t)}}}function To(o){let t;function e(r,n){return r[47].type==="freeRound"?rd:id}let s=e(o),i=s(o);return{c(){i.c(),t=d.empty()},m(r,n){i.m(r,n),d.insert(r,t,n)},p(r,n){s===(s=e(r))&&i?i.p(r,n):(i.d(1),i=s(r),i&&(i.c(),i.m(t.parentNode,t)))},d(r){r&&d.detach(t),i.d(r)}}}function Do(o){let t,e,s,i,r,n,a,l,c,u,h,p,m,f,y,b,v,C,O,I=d.ensure_array_like(Array(o[14])),x=[];for(let A=0;A<I.length;A+=1)x[A]=So(Po(o,I,A));return{c(){t=d.element("div"),e=d.element("span"),s=d.text("|<"),r=d.space(),n=d.element("span"),a=d.text("<"),c=d.space();for(let A=0;A<x.length;A+=1)x[A].c();u=d.space(),h=d.element("span"),p=d.text(">"),f=d.space(),y=d.element("span"),b=d.text(">|"),d.attr(e,"class",i="BonusesFirst "+(o[15]===0?"Inactive":"")),d.attr(n,"class",l="BonusesPrev "+(o[15]===0?"Inactive":"")),d.attr(h,"class",m="BonusesNext "+(o[15]===o[14]-1?"Inactive":"")),d.attr(y,"class",v="BonusesLast "+(o[15]===o[14]-1?"Inactive":"")),d.attr(t,"class","BonusesPaginationWrapper "+(o[18]?"BonusesPaginationWrapperMobile":""))},m(A,D){d.insert(A,t,D),d.append(t,e),d.append(e,s),d.append(t,r),d.append(t,n),d.append(n,a),d.append(t,c);for(let E=0;E<x.length;E+=1)x[E]&&x[E].m(t,null);d.append(t,u),d.append(t,h),d.append(h,p),d.append(t,f),d.append(t,y),d.append(y,b),C||(O=[d.listen(e,"click",o[28]),d.listen(n,"click",o[29]),d.listen(h,"click",o[31]),d.listen(y,"click",o[32])],C=!0)},p(A,D){if(D[0]&32768&&i!==(i="BonusesFirst "+(A[15]===0?"Inactive":""))&&d.attr(e,"class",i),D[0]&32768&&l!==(l="BonusesPrev "+(A[15]===0?"Inactive":""))&&d.attr(n,"class",l),D[0]&1097776){I=d.ensure_array_like(Array(A[14]));let E;for(E=0;E<I.length;E+=1){const V=Po(A,I,E);x[E]?x[E].p(V,D):(x[E]=So(V),x[E].c(),x[E].m(t,u))}for(;E<x.length;E+=1)x[E].d(1);x.length=I.length}D[0]&49152&&m!==(m="BonusesNext "+(A[15]===A[14]-1?"Inactive":""))&&d.attr(h,"class",m),D[0]&49152&&v!==(v="BonusesLast "+(A[15]===A[14]-1?"Inactive":""))&&d.attr(y,"class",v)},d(A){A&&d.detach(t),d.destroy_each(x,A),C=!1,d.run_all(O)}}}function So(o){let t,e=o[46]+1+"",s,i,r,n;function a(){return o[30](o[46])}return{c(){t=d.element("span"),s=d.text(e),d.attr(t,"class",i="BonusesPage "+(o[46]===o[15]?"BonusPageActive":""))},m(l,c){d.insert(l,t,c),d.append(t,s),r||(n=d.listen(t,"click",a),r=!0)},p(l,c){o=l,c[0]&32768&&i!==(i="BonusesPage "+(o[46]===o[15]?"BonusPageActive":""))&&d.attr(t,"class",i)},d(l){l&&d.detach(t),r=!1,n()}}}function nd(o){let t;function e(r,n){return ed}let i=e()(o);return{c(){t=d.element("div"),i.c()},m(r,n){d.insert(r,t,n),i.m(t,null),o[33](t)},p(r,n){i.p(r,n)},i:d.noop,o:d.noop,d(r){r&&d.detach(t),i.d(),o[33](null)}}}let q=6;function ad(o,t,e){let s;d.component_subscribe(o,d.$format,_=>e(17,s=_));let{endpoint:i=""}=t,{session:r=""}=t,{playerid:n=""}=t,{lang:a="en"}=t,{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{translationurl:u=""}=t,{bonushistorystatus:h=""}=t,{bonushistorytype:p=""}=t,m,f=window.navigator.userAgent,y=d.getDevice(f)!=="PC",b,v,C,O;C=d.hooks(new Date).format("YYYY-MM-DD"),O=d.hooks(new Date).subtract(3,"months").format("YYYY-MM-DD");let I=O,x=C,A=0,D=0,E=0,V=0,Ae=0,J=[];const qe=()=>{fetch(u).then(R=>R.json()).then(R=>{Object.keys(R).forEach(W=>{Ao(W,R[W])})}).catch(R=>{console.log(R)})};Object.keys(Eo).forEach(_=>{Ao(_,Eo[_])});const he=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},$=(_,R,W)=>{let yt=new URL(`${i}/v1/player/${n}/bonusWallet`),ar=d.hooks(I).startOf("day").utc().format("YYYY-MM-DDTHH:mm:ss.SSS[Z]"),lr=d.hooks(x).endOf("day").utc().format("YYYY-MM-DDTHH:mm:ss.SSS[Z]"),se="",Os="",Ms="";R&&(Os=R.split(",").map(bt=>`status=${bt}`).join(","),se=se+Os+","),W&&(Ms=W.split(",").map(bt=>`type=${bt}`).join(","),se=se+Ms+","),se=se+`granted=[${ar}~${lr}]`,yt.searchParams.append("filter",se),yt.searchParams.append("pagination",`offset=${_},limit=${q}`);let cr={method:"GET",headers:{"X-SessionId":r}};fetch(yt.href,cr).then(j=>j.json()).then(j=>{e(14,V=Math.ceil(j.total/q)),_-q>=0&&e(11,A=_-q),_+q<j.total&&e(12,D=_+q),e(13,E=(V-1)*q),e(15,Ae=_/q),e(16,J=j.items)},j=>{console.error(j)}),window.postMessage({type:"ScrollToTop"},window.location.href)},Y=_=>{I=_.target.value},Ee=_=>{x=_.target.value},pe=()=>{b.addEventListener("change",Y,!1),v.addEventListener("change",Ee,!1)};d.onMount(()=>()=>{b.removeEventListener("change",Y),v.removeEventListener("change",Ee)});const L=()=>{Qc(a)},N=()=>{let _=document.createElement("style");_.innerHTML=l,m.appendChild(_)},P=()=>{let _=new URL(c),R=document.createElement("style");fetch(_.href).then(W=>W.text()).then(W=>{R.innerHTML=W,setTimeout(()=>{m.appendChild(R)},1)})},z=()=>he();function Qi(_){d.binding_callbacks[_?"unshift":"push"](()=>{b=_,e(7,b)})}function Zi(_){d.binding_callbacks[_?"unshift":"push"](()=>{v=_,e(8,v)})}const er=()=>$(0,h,p),tr=()=>$(0,h,p),sr=()=>$(A,h,p),or=_=>$(_*q,h,p),ir=()=>$(D,h,p),rr=()=>$(E,h,p);function nr(_){d.binding_callbacks[_?"unshift":"push"](()=>{m=_,e(6,m)})}return o.$$set=_=>{"endpoint"in _&&e(21,i=_.endpoint),"session"in _&&e(22,r=_.session),"playerid"in _&&e(23,n=_.playerid),"lang"in _&&e(0,a=_.lang),"clientstyling"in _&&e(1,l=_.clientstyling),"clientstylingurl"in _&&e(2,c=_.clientstylingurl),"translationurl"in _&&e(3,u=_.translationurl),"bonushistorystatus"in _&&e(4,h=_.bonushistorystatus),"bonushistorytype"in _&&e(5,p=_.bonushistorytype)},o.$$.update=()=>{o.$$.dirty[0]&1&&a&&L(),o.$$.dirty[0]&384&&b&&v&&pe(),o.$$.dirty[0]&14680112&&r&&n&&i&&$(0,h,p),o.$$.dirty[0]&68&&c&&m&&P(),o.$$.dirty[0]&66&&l&&m&&N(),o.$$.dirty[0]&8&&u&&qe()},[a,l,c,u,h,p,m,b,v,C,O,A,D,E,V,Ae,J,s,y,he,$,i,r,n,z,Qi,Zi,er,tr,sr,or,ir,rr,nr]}class Ji extends d.SvelteComponent{constructor(t){super(),d.init(this,t,ad,nd,d.safe_not_equal,{endpoint:21,session:22,playerid:23,lang:0,clientstyling:1,clientstylingurl:2,translationurl:3,bonushistorystatus:4,bonushistorytype:5},Zc,[-1,-1])}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),d.flush()}get session(){return this.$$.ctx[22]}set session(t){this.$$set({session:t}),d.flush()}get playerid(){return this.$$.ctx[23]}set playerid(t){this.$$set({playerid:t}),d.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),d.flush()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),d.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),d.flush()}get translationurl(){return this.$$.ctx[3]}set translationurl(t){this.$$set({translationurl:t}),d.flush()}get bonushistorystatus(){return this.$$.ctx[4]}set bonushistorystatus(t){this.$$set({bonushistorystatus:t}),d.flush()}get bonushistorytype(){return this.$$.ctx[5]}set bonushistorytype(t){this.$$set({bonushistorytype:t}),d.flush()}}d.create_custom_element(Ji,{endpoint:{},session:{},playerid:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},bonushistorystatus:{},bonushistorytype:{}},[],[],!0);exports.default=Ji;
|
3693
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new $c(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Vc(this.inputElement,this._labelController)),this._tooltipController=new yi(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(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}H(Jc);function Ao(o,t){d.addMessages(o,t)}function Qc(o){d.$locale.set(o)}const Eo={en:{titleBonusesHistory:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{titleBonusesHistory:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{titleBonusesHistory:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{titleBonusesHistory:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{titleBonusesHistory:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{titleBonusesHistory:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."},hr:{titleBonusesHistory:"Povijest bonusa",dateFrom:"Od:",dateTo:"Do:",dateFilter:"Filter",noBonusHistory:"Nemate bonusa u povijesti."},"pt-br":{titleBonusesHistory:"Histórico de bônus",dateFrom:"De:",dateTo:"PARA:",dateFilter:"Filtro",noBonusHistory:"Não há bônus para o período selecionado"},"es-mx":{titleBonusesHistory:"Historial de bonos",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene bonus para el periodo seleccionado"},tr:{titleBonusesHistory:"Bonus Geçmişi",dateFrom:"İtibaren:",dateTo:"İle:",dateFilter:"Filtre",noBonusHistory:"Seçilen dönem için bonusunuz yok."}};function Zc(o){d.append_styles(o,"svelte-jtxmoo",".BonusesWrapper{background-color:var(--emw-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--color-typography-cotrast, #444444);padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.BonusesTitleMobile{font-size:var(--emw--size-standard, 16px)}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-large, 20px)}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.BonusesCalendarStartDate input,.BonusesCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesCalendarFilter{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 50px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;outline:none}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px;border-radius:var(--emw--border-radius-large, 20px)}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:block;line-break:anywhere;line-height:2em}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;font-weight:var(--emw--font-weight-bold, 700)}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-typography-cotrast, #444444);font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:var(--emw--font-weight-bold, 700)}")}function Po(o,t,e){const s=o.slice();return s[44]=t[e],s[46]=e,s}function ko(o,t,e){const s=o.slice();return s[47]=t[e],s}function ed(o){let t,e,s,i=o[17]("titleBonusesHistory")+"",r,n,a,l,c,u,h=o[17]("dateFrom")+"",p,m,f,y,b,v,C=o[17]("dateTo")+"",O,I,x,A,D,E=o[17]("dateFilter")+"",Y,Ae,J,qe,he,$,U=o[18]&&td(o);function Ee(P,z){return P[16].length===0?od:sd}let pe=Ee(o),L=pe(o),N=o[16].length!==0&&Do(o);return{c(){t=d.element("div"),U&&U.c(),e=d.space(),s=d.element("h2"),r=d.text(i),n=d.space(),a=d.element("div"),l=d.element("div"),c=d.element("div"),u=d.element("label"),p=d.text(h),m=d.space(),f=d.element("vaadin-date-picker"),y=d.space(),b=d.element("div"),v=d.element("label"),O=d.text(C),I=d.space(),x=d.element("vaadin-date-picker"),A=d.space(),D=d.element("button"),Y=d.text(E),Ae=d.space(),J=d.element("div"),L.c(),qe=d.space(),N&&N.c(),d.attr(s,"class","BonusesTitle "+(o[18]?"BonusesTitleNone":"")),d.attr(s,"part","BonusesTitle "+(o[18]?"BonusesTitleNone":"")),d.attr(u,"for","BonusCalendarStartDate"),d.set_custom_element_data(f,"max",o[9]),d.set_custom_element_data(f,"value",o[10]),d.set_custom_element_data(f,"placeholder","From"),d.set_custom_element_data(f,"class","VaadinDatePicker"),d.attr(c,"class","BonusesCalendarStartDate "+(o[18]?"BonusesCalendarMobile":"")),d.attr(v,"for","BonusesCalendarEndDate"),d.set_custom_element_data(x,"max",o[9]),d.set_custom_element_data(x,"value",o[9]),d.set_custom_element_data(x,"placeholder","To"),d.set_custom_element_data(x,"class","VaadinDatePicker"),d.attr(b,"class","BonusesCalendarEndDate "+(o[18]?"BonusesCalendarMobile":"")),d.attr(l,"class","BonusesCalendarContainer "+(o[18]?"BonusesCalendarContainerMobile":"")),d.attr(D,"class","BonusesCalendarFilter "+(o[18]?"BonusesCalendarFilterMobile":"")),d.attr(a,"class","BonusCalendarWrapper "+(o[18]?"BonusCalendarWrapperMobile":"")),d.attr(J,"class","BonusesGrid "+(o[18]?"BonusesGridMobile":"")),d.attr(t,"class","BonusesWrapper "+(o[18]?"BonusesWrapperMobile":""))},m(P,z){d.insert(P,t,z),U&&U.m(t,null),d.append(t,e),d.append(t,s),d.append(s,r),d.append(t,n),d.append(t,a),d.append(a,l),d.append(l,c),d.append(c,u),d.append(u,p),d.append(c,m),d.append(c,f),o[25](f),d.append(l,y),d.append(l,b),d.append(b,v),d.append(v,O),d.append(b,I),d.append(b,x),o[26](x),d.append(a,A),d.append(a,D),d.append(D,Y),d.append(t,Ae),d.append(t,J),L.m(J,null),d.append(t,qe),N&&N.m(t,null),he||($=d.listen(D,"click",o[27]),he=!0)},p(P,z){P[18]&&U.p(P,z),z[0]&131072&&i!==(i=P[17]("titleBonusesHistory")+"")&&d.set_data(r,i),z[0]&131072&&h!==(h=P[17]("dateFrom")+"")&&d.set_data(p,h),z[0]&512&&d.set_custom_element_data(f,"max",P[9]),z[0]&1024&&d.set_custom_element_data(f,"value",P[10]),z[0]&131072&&C!==(C=P[17]("dateTo")+"")&&d.set_data(O,C),z[0]&512&&d.set_custom_element_data(x,"max",P[9]),z[0]&512&&d.set_custom_element_data(x,"value",P[9]),z[0]&131072&&E!==(E=P[17]("dateFilter")+"")&&d.set_data(Y,E),pe===(pe=Ee(P))&&L?L.p(P,z):(L.d(1),L=pe(P),L&&(L.c(),L.m(J,null))),P[16].length!==0?N?N.p(P,z):(N=Do(P),N.c(),N.m(t,null)):N&&(N.d(1),N=null)},d(P){P&&d.detach(t),U&&U.d(),o[25](null),o[26](null),L.d(),N&&N.d(),he=!1,$()}}}function td(o){let t,e,s,i,r,n,a,l,c,u,h=o[17]("titleBonusesHistory")+"",p,m,f;return{c(){t=d.element("div"),e=d.svg_element("svg"),s=d.svg_element("defs"),i=d.svg_element("style"),r=d.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),n=d.svg_element("g"),a=d.svg_element("g"),l=d.svg_element("path"),c=d.space(),u=d.element("h2"),p=d.text(h),d.attr(l,"class","aaa"),d.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),d.attr(l,"transform","translate(15 15) rotate(180)"),d.attr(a,"transform","translate(20 158)"),d.attr(n,"transform","translate(-20 -158)"),d.attr(e,"xmlns","http://www.w3.org/2000/svg"),d.attr(e,"width","15"),d.attr(e,"height","15"),d.attr(e,"viewBox","0 0 15 15"),d.attr(u,"class","BonusesTitleMobile"),d.attr(t,"class","MenuReturnButton")},m(y,b){d.insert(y,t,b),d.append(t,e),d.append(e,s),d.append(s,i),d.append(i,r),d.append(e,n),d.append(n,a),d.append(a,l),d.append(t,c),d.append(t,u),d.append(u,p),m||(f=d.listen(t,"click",o[24]),m=!0)},p(y,b){b[0]&131072&&h!==(h=y[17]("titleBonusesHistory")+"")&&d.set_data(p,h)},d(y){y&&d.detach(t),m=!1,f()}}}function sd(o){let t,e=d.ensure_array_like(o[16]),s=[];for(let i=0;i<e.length;i+=1)s[i]=To(ko(o,e,i));return{c(){for(let i=0;i<s.length;i+=1)s[i].c();t=d.empty()},m(i,r){for(let n=0;n<s.length;n+=1)s[n]&&s[n].m(i,r);d.insert(i,t,r)},p(i,r){if(r[0]&65551){e=d.ensure_array_like(i[16]);let n;for(n=0;n<e.length;n+=1){const a=ko(i,e,n);s[n]?s[n].p(a,r):(s[n]=To(a),s[n].c(),s[n].m(t.parentNode,t))}for(;n<s.length;n+=1)s[n].d(1);s.length=e.length}},d(i){i&&d.detach(t),d.destroy_each(s,i)}}}function od(o){let t,e=o[17]("noBonusHistory")+"",s;return{c(){t=d.element("p"),s=d.text(e)},m(i,r){d.insert(i,t,r),d.append(t,s)},p(i,r){r[0]&131072&&e!==(e=i[17]("noBonusHistory")+"")&&d.set_data(s,e)},d(i){i&&d.detach(t)}}}function id(o){let t,e,s,i,r,n,a,l,c,u;return{c(){t=d.element("player-bonus-card"),d.set_custom_element_data(t,"bonuswalletid",e=o[47].walletId),d.set_custom_element_data(t,"bonusdate",s=o[47].granted),d.set_custom_element_data(t,"bonusstatus",i=o[47].status),d.set_custom_element_data(t,"bonusname",r=o[47].name),d.set_custom_element_data(t,"bonustype",n=o[47].type),d.set_custom_element_data(t,"bonusamount",a=o[47].extension.grantedPlayerCurrencyAmount),d.set_custom_element_data(t,"bonuswageringamount",l=`${o[47].fulfilledWR} / ${o[47].originalWageringRequirement}`),d.set_custom_element_data(t,"bonusremainingamount",c=o[47].currentAmount),d.set_custom_element_data(t,"bonuscurrency",u=o[47].currency),d.set_custom_element_data(t,"lang",o[0]),d.set_custom_element_data(t,"clientstyling",o[1]),d.set_custom_element_data(t,"clientstylingurl",o[2]),d.set_custom_element_data(t,"translationurl",o[3])},m(h,p){d.insert(h,t,p)},p(h,p){p[0]&65536&&e!==(e=h[47].walletId)&&d.set_custom_element_data(t,"bonuswalletid",e),p[0]&65536&&s!==(s=h[47].granted)&&d.set_custom_element_data(t,"bonusdate",s),p[0]&65536&&i!==(i=h[47].status)&&d.set_custom_element_data(t,"bonusstatus",i),p[0]&65536&&r!==(r=h[47].name)&&d.set_custom_element_data(t,"bonusname",r),p[0]&65536&&n!==(n=h[47].type)&&d.set_custom_element_data(t,"bonustype",n),p[0]&65536&&a!==(a=h[47].extension.grantedPlayerCurrencyAmount)&&d.set_custom_element_data(t,"bonusamount",a),p[0]&65536&&l!==(l=`${h[47].fulfilledWR} / ${h[47].originalWageringRequirement}`)&&d.set_custom_element_data(t,"bonuswageringamount",l),p[0]&65536&&c!==(c=h[47].currentAmount)&&d.set_custom_element_data(t,"bonusremainingamount",c),p[0]&65536&&u!==(u=h[47].currency)&&d.set_custom_element_data(t,"bonuscurrency",u),p[0]&1&&d.set_custom_element_data(t,"lang",h[0]),p[0]&2&&d.set_custom_element_data(t,"clientstyling",h[1]),p[0]&4&&d.set_custom_element_data(t,"clientstylingurl",h[2]),p[0]&8&&d.set_custom_element_data(t,"translationurl",h[3])},d(h){h&&d.detach(t)}}}function rd(o){let t,e,s,i,r,n,a;return{c(){t=d.element("player-bonus-card"),d.set_custom_element_data(t,"bonuswalletid",e=o[47].walletId),d.set_custom_element_data(t,"bonusdate",s=o[47].granted),d.set_custom_element_data(t,"bonusstatus",i=o[47].status),d.set_custom_element_data(t,"bonusname",r=o[47].name),d.set_custom_element_data(t,"bonustype",n=o[47].type),d.set_custom_element_data(t,"bonuscurrency",a=o[47].currency),d.set_custom_element_data(t,"lang",o[0]),d.set_custom_element_data(t,"clientstyling",o[1]),d.set_custom_element_data(t,"clientstylingurl",o[2]),d.set_custom_element_data(t,"translationurl",o[3])},m(l,c){d.insert(l,t,c)},p(l,c){c[0]&65536&&e!==(e=l[47].walletId)&&d.set_custom_element_data(t,"bonuswalletid",e),c[0]&65536&&s!==(s=l[47].granted)&&d.set_custom_element_data(t,"bonusdate",s),c[0]&65536&&i!==(i=l[47].status)&&d.set_custom_element_data(t,"bonusstatus",i),c[0]&65536&&r!==(r=l[47].name)&&d.set_custom_element_data(t,"bonusname",r),c[0]&65536&&n!==(n=l[47].type)&&d.set_custom_element_data(t,"bonustype",n),c[0]&65536&&a!==(a=l[47].currency)&&d.set_custom_element_data(t,"bonuscurrency",a),c[0]&1&&d.set_custom_element_data(t,"lang",l[0]),c[0]&2&&d.set_custom_element_data(t,"clientstyling",l[1]),c[0]&4&&d.set_custom_element_data(t,"clientstylingurl",l[2]),c[0]&8&&d.set_custom_element_data(t,"translationurl",l[3])},d(l){l&&d.detach(t)}}}function To(o){let t;function e(r,n){return r[47].type==="freeRound"?rd:id}let s=e(o),i=s(o);return{c(){i.c(),t=d.empty()},m(r,n){i.m(r,n),d.insert(r,t,n)},p(r,n){s===(s=e(r))&&i?i.p(r,n):(i.d(1),i=s(r),i&&(i.c(),i.m(t.parentNode,t)))},d(r){r&&d.detach(t),i.d(r)}}}function Do(o){let t,e,s,i,r,n,a,l,c,u,h,p,m,f,y,b,v,C,O,I=d.ensure_array_like(Array(o[14])),x=[];for(let A=0;A<I.length;A+=1)x[A]=So(Po(o,I,A));return{c(){t=d.element("div"),e=d.element("span"),s=d.text("|<"),r=d.space(),n=d.element("span"),a=d.text("<"),c=d.space();for(let A=0;A<x.length;A+=1)x[A].c();u=d.space(),h=d.element("span"),p=d.text(">"),f=d.space(),y=d.element("span"),b=d.text(">|"),d.attr(e,"class",i="BonusesFirst "+(o[15]===0?"Inactive":"")),d.attr(n,"class",l="BonusesPrev "+(o[15]===0?"Inactive":"")),d.attr(h,"class",m="BonusesNext "+(o[15]===o[14]-1?"Inactive":"")),d.attr(y,"class",v="BonusesLast "+(o[15]===o[14]-1?"Inactive":"")),d.attr(t,"class","BonusesPaginationWrapper "+(o[18]?"BonusesPaginationWrapperMobile":""))},m(A,D){d.insert(A,t,D),d.append(t,e),d.append(e,s),d.append(t,r),d.append(t,n),d.append(n,a),d.append(t,c);for(let E=0;E<x.length;E+=1)x[E]&&x[E].m(t,null);d.append(t,u),d.append(t,h),d.append(h,p),d.append(t,f),d.append(t,y),d.append(y,b),C||(O=[d.listen(e,"click",o[28]),d.listen(n,"click",o[29]),d.listen(h,"click",o[31]),d.listen(y,"click",o[32])],C=!0)},p(A,D){if(D[0]&32768&&i!==(i="BonusesFirst "+(A[15]===0?"Inactive":""))&&d.attr(e,"class",i),D[0]&32768&&l!==(l="BonusesPrev "+(A[15]===0?"Inactive":""))&&d.attr(n,"class",l),D[0]&1097776){I=d.ensure_array_like(Array(A[14]));let E;for(E=0;E<I.length;E+=1){const Y=Po(A,I,E);x[E]?x[E].p(Y,D):(x[E]=So(Y),x[E].c(),x[E].m(t,u))}for(;E<x.length;E+=1)x[E].d(1);x.length=I.length}D[0]&49152&&m!==(m="BonusesNext "+(A[15]===A[14]-1?"Inactive":""))&&d.attr(h,"class",m),D[0]&49152&&v!==(v="BonusesLast "+(A[15]===A[14]-1?"Inactive":""))&&d.attr(y,"class",v)},d(A){A&&d.detach(t),d.destroy_each(x,A),C=!1,d.run_all(O)}}}function So(o){let t,e=o[46]+1+"",s,i,r,n;function a(){return o[30](o[46])}return{c(){t=d.element("span"),s=d.text(e),d.attr(t,"class",i="BonusesPage "+(o[46]===o[15]?"BonusPageActive":""))},m(l,c){d.insert(l,t,c),d.append(t,s),r||(n=d.listen(t,"click",a),r=!0)},p(l,c){o=l,c[0]&32768&&i!==(i="BonusesPage "+(o[46]===o[15]?"BonusPageActive":""))&&d.attr(t,"class",i)},d(l){l&&d.detach(t),r=!1,n()}}}function nd(o){let t;function e(r,n){return ed}let i=e()(o);return{c(){t=d.element("div"),i.c()},m(r,n){d.insert(r,t,n),i.m(t,null),o[33](t)},p(r,n){i.p(r,n)},i:d.noop,o:d.noop,d(r){r&&d.detach(t),i.d(),o[33](null)}}}let q=6;function ad(o,t,e){let s;d.component_subscribe(o,d.$format,_=>e(17,s=_));let{endpoint:i=""}=t,{session:r=""}=t,{playerid:n=""}=t,{lang:a="en"}=t,{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{translationurl:u=""}=t,{bonushistorystatus:h=""}=t,{bonushistorytype:p=""}=t,m,f=window.navigator.userAgent,y=d.getDevice(f)!=="PC",b,v,C,O;C=d.hooks(new Date).format("YYYY-MM-DD"),O=d.hooks(new Date).subtract(3,"months").format("YYYY-MM-DD");let I=O,x=C,A=0,D=0,E=0,Y=0,Ae=0,J=[];const qe=()=>{fetch(u).then(R=>R.json()).then(R=>{Object.keys(R).forEach(j=>{Ao(j,R[j])})}).catch(R=>{console.log(R)})};Object.keys(Eo).forEach(_=>{Ao(_,Eo[_])});const he=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},$=(_,R,j)=>{let yt=new URL(`${i}/v1/player/${n}/bonusWallet`),ar=d.hooks(I).startOf("day").utc().format("YYYY-MM-DDTHH:mm:ss.SSS[Z]"),lr=d.hooks(x).endOf("day").utc().format("YYYY-MM-DDTHH:mm:ss.SSS[Z]"),se="",Os="",Ms="";R&&(Os=R.split(",").map(bt=>`status=${bt}`).join(","),se=se+Os+","),j&&(Ms=j.split(",").map(bt=>`type=${bt}`).join(","),se=se+Ms+","),se=se+`granted=[${ar}~${lr}]`,yt.searchParams.append("filter",se),yt.searchParams.append("pagination",`offset=${_},limit=${q}`);let cr={method:"GET",headers:{"X-SessionId":r}};fetch(yt.href,cr).then(V=>V.json()).then(V=>{e(14,Y=Math.ceil(V.total/q)),_-q>=0&&e(11,A=_-q),_+q<V.total&&e(12,D=_+q),e(13,E=(Y-1)*q),e(15,Ae=_/q),e(16,J=(V==null?void 0:V.items)||[])},V=>{console.error(V)}),window.postMessage({type:"ScrollToTop"},window.location.href)},U=_=>{I=_.target.value},Ee=_=>{x=_.target.value},pe=()=>{b.addEventListener("change",U,!1),v.addEventListener("change",Ee,!1)};d.onMount(()=>()=>{b.removeEventListener("change",U),v.removeEventListener("change",Ee)});const L=()=>{Qc(a)},N=()=>{let _=document.createElement("style");_.innerHTML=l,m.appendChild(_)},P=()=>{let _=new URL(c),R=document.createElement("style");fetch(_.href).then(j=>j.text()).then(j=>{R.innerHTML=j,setTimeout(()=>{m.appendChild(R)},1)})},z=()=>he();function Qi(_){d.binding_callbacks[_?"unshift":"push"](()=>{b=_,e(7,b)})}function Zi(_){d.binding_callbacks[_?"unshift":"push"](()=>{v=_,e(8,v)})}const er=()=>$(0,h,p),tr=()=>$(0,h,p),sr=()=>$(A,h,p),or=_=>$(_*q,h,p),ir=()=>$(D,h,p),rr=()=>$(E,h,p);function nr(_){d.binding_callbacks[_?"unshift":"push"](()=>{m=_,e(6,m)})}return o.$$set=_=>{"endpoint"in _&&e(21,i=_.endpoint),"session"in _&&e(22,r=_.session),"playerid"in _&&e(23,n=_.playerid),"lang"in _&&e(0,a=_.lang),"clientstyling"in _&&e(1,l=_.clientstyling),"clientstylingurl"in _&&e(2,c=_.clientstylingurl),"translationurl"in _&&e(3,u=_.translationurl),"bonushistorystatus"in _&&e(4,h=_.bonushistorystatus),"bonushistorytype"in _&&e(5,p=_.bonushistorytype)},o.$$.update=()=>{o.$$.dirty[0]&1&&a&&L(),o.$$.dirty[0]&384&&b&&v&&pe(),o.$$.dirty[0]&14680112&&r&&n&&i&&$(0,h,p),o.$$.dirty[0]&68&&c&&m&&P(),o.$$.dirty[0]&66&&l&&m&&N(),o.$$.dirty[0]&8&&u&&qe()},[a,l,c,u,h,p,m,b,v,C,O,A,D,E,Y,Ae,J,s,y,he,$,i,r,n,z,Qi,Zi,er,tr,sr,or,ir,rr,nr]}class Ji extends d.SvelteComponent{constructor(t){super(),d.init(this,t,ad,nd,d.safe_not_equal,{endpoint:21,session:22,playerid:23,lang:0,clientstyling:1,clientstylingurl:2,translationurl:3,bonushistorystatus:4,bonushistorytype:5},Zc,[-1,-1])}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),d.flush()}get session(){return this.$$.ctx[22]}set session(t){this.$$set({session:t}),d.flush()}get playerid(){return this.$$.ctx[23]}set playerid(t){this.$$set({playerid:t}),d.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),d.flush()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),d.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),d.flush()}get translationurl(){return this.$$.ctx[3]}set translationurl(t){this.$$set({translationurl:t}),d.flush()}get bonushistorystatus(){return this.$$.ctx[4]}set bonushistorystatus(t){this.$$set({bonushistorystatus:t}),d.flush()}get bonushistorytype(){return this.$$.ctx[5]}set bonushistorytype(t){this.$$set({bonushistorytype:t}),d.flush()}}d.create_custom_element(Ji,{endpoint:{},session:{},playerid:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},bonushistorystatus:{},bonushistorytype:{}},[],[],!0);exports.default=Ji;
|
@@ -26,7 +26,7 @@ var rt = (s, t, e) => new Promise((o, i) => {
|
|
26
26
|
}, a = (l) => l.done ? o(l.value) : Promise.resolve(l.value).then(r, n);
|
27
27
|
a((e = e.apply(s, t)).next());
|
28
28
|
});
|
29
|
-
import { a as Mr, $ as Ir, S as Nr, i as zr, f as ee, c as Fr, s as Br, b as Lr, e as D, d as
|
29
|
+
import { a as Mr, $ as Ir, S as Nr, i as zr, f as ee, c as Fr, s as Br, b as Lr, e as D, d as J, n as Xo, g as Q, h as Rr, j as Hr, k as nt, o as $r, l as zt, m as Vr, p as $, t as U, q as x, r as m, u as g, v as he, w as Pe, x as Ce, y as ft, z as js, A as Yr, B as qs } from "./PlayerBonusCard-c7uGr4D2.js";
|
30
30
|
if (typeof window != "undefined") {
|
31
31
|
let s = function(t) {
|
32
32
|
return function(...e) {
|
@@ -7750,7 +7750,7 @@ function Hl(s) {
|
|
7750
7750
|
s.cancelable && (o === "none" ? i = !0 : o === "pan-x" ? i = n > r : o === "pan-y" && (i = r > n)), i ? s.preventDefault() : xt("track");
|
7751
7751
|
}
|
7752
7752
|
}
|
7753
|
-
function
|
7753
|
+
function X(s, t, e) {
|
7754
7754
|
return Bo[t] ? ($l(s, t, e), !0) : !1;
|
7755
7755
|
}
|
7756
7756
|
function $l(s, t, e) {
|
@@ -8150,9 +8150,9 @@ const Yl = (s) => class extends Hi(Dt(s)) {
|
|
8150
8150
|
}
|
8151
8151
|
/** @protected */
|
8152
8152
|
ready() {
|
8153
|
-
super.ready(),
|
8153
|
+
super.ready(), X(this, "down", (e) => {
|
8154
8154
|
this._shouldSetActive(e) && this._setActive(!0);
|
8155
|
-
}),
|
8155
|
+
}), X(this, "up", () => {
|
8156
8156
|
this._setActive(!1);
|
8157
8157
|
});
|
8158
8158
|
}
|
@@ -11740,7 +11740,7 @@ const Gc = (s) => class extends $o(s) {
|
|
11740
11740
|
}
|
11741
11741
|
/** @protected */
|
11742
11742
|
ready() {
|
11743
|
-
super.ready(),
|
11743
|
+
super.ready(), X(this.$.monthGrid, "tap", this._handleTap.bind(this));
|
11744
11744
|
}
|
11745
11745
|
/**
|
11746
11746
|
* Returns true if all the dates in the month are out of the allowed range
|
@@ -12166,7 +12166,7 @@ const Qc = (s) => class extends s {
|
|
12166
12166
|
}
|
12167
12167
|
/** @protected */
|
12168
12168
|
_addListeners() {
|
12169
|
-
Ri(this.$.scrollers, "pan-y"),
|
12169
|
+
Ri(this.$.scrollers, "pan-y"), X(this.$.scrollers, "track", this._track.bind(this)), X(this.shadowRoot.querySelector('[part="clear-button"]'), "tap", this._clear.bind(this)), X(this.shadowRoot.querySelector('[part="toggle-button"]'), "tap", this._cancel.bind(this)), X(
|
12170
12170
|
this.shadowRoot.querySelector('[part="years-toggle-button"]'),
|
12171
12171
|
"tap",
|
12172
12172
|
this._toggleYearScroller.bind(this)
|
@@ -12182,14 +12182,14 @@ const Qc = (s) => class extends s {
|
|
12182
12182
|
new me(this, "today-button", "vaadin-button", {
|
12183
12183
|
observe: !1,
|
12184
12184
|
initializer: (e) => {
|
12185
|
-
e.setAttribute("theme", "tertiary"), e.addEventListener("keydown", (o) => this.__onTodayButtonKeyDown(o)),
|
12185
|
+
e.setAttribute("theme", "tertiary"), e.addEventListener("keydown", (o) => this.__onTodayButtonKeyDown(o)), X(e, "tap", this._onTodayTap.bind(this)), this._todayButton = e;
|
12186
12186
|
}
|
12187
12187
|
})
|
12188
12188
|
), this.addController(
|
12189
12189
|
new me(this, "cancel-button", "vaadin-button", {
|
12190
12190
|
observe: !1,
|
12191
12191
|
initializer: (e) => {
|
12192
|
-
e.setAttribute("theme", "tertiary"), e.addEventListener("keydown", (o) => this.__onCancelButtonKeyDown(o)),
|
12192
|
+
e.setAttribute("theme", "tertiary"), e.addEventListener("keydown", (o) => this.__onCancelButtonKeyDown(o)), X(e, "tap", this._cancel.bind(this)), this._cancelButton = e;
|
12193
12193
|
}
|
12194
12194
|
})
|
12195
12195
|
), this.__initMonthScroller(), this.__initYearScroller();
|
@@ -12240,7 +12240,7 @@ const Qc = (s) => class extends s {
|
|
12240
12240
|
new me(this, "years", "vaadin-date-picker-year-scroller", {
|
12241
12241
|
observe: !1,
|
12242
12242
|
initializer: (e) => {
|
12243
|
-
e.setAttribute("aria-hidden", "true"),
|
12243
|
+
e.setAttribute("aria-hidden", "true"), X(e, "tap", (o) => {
|
12244
12244
|
this._onYearTap(o);
|
12245
12245
|
}), e.addEventListener("custom-scroll", () => {
|
12246
12246
|
this._onYearScroll();
|
@@ -15425,7 +15425,7 @@ function Tu(s) {
|
|
15425
15425
|
), N, F, A, P, M, k = (
|
15426
15426
|
/*$_*/
|
15427
15427
|
s[17]("dateFilter") + ""
|
15428
|
-
),
|
15428
|
+
), K, ze, re, it, we, j, G = (
|
15429
15429
|
/*isMobile*/
|
15430
15430
|
s[18] && Du(s)
|
15431
15431
|
);
|
@@ -15441,7 +15441,7 @@ function Tu(s) {
|
|
15441
15441
|
);
|
15442
15442
|
return {
|
15443
15443
|
c() {
|
15444
|
-
t = D("div"),
|
15444
|
+
t = D("div"), G && G.c(), e = $(), o = D("h2"), r = U(i), n = $(), a = D("div"), l = D("div"), c = D("div"), u = D("label"), h = U(d), p = $(), f = D("vaadin-date-picker"), b = $(), v = D("div"), w = D("label"), N = U(E), F = $(), A = D("vaadin-date-picker"), P = $(), M = D("button"), K = U(k), ze = $(), re = D("div"), V.c(), it = $(), B && B.c(), x(o, "class", "BonusesTitle " + /*isMobile*/
|
15445
15445
|
(s[18] ? "BonusesTitleNone" : "")), x(o, "part", "BonusesTitle " + /*isMobile*/
|
15446
15446
|
(s[18] ? "BonusesTitleNone" : "")), x(u, "for", "BonusCalendarStartDate"), m(
|
15447
15447
|
f,
|
@@ -15473,7 +15473,7 @@ function Tu(s) {
|
|
15473
15473
|
(s[18] ? "BonusesWrapperMobile" : ""));
|
15474
15474
|
},
|
15475
15475
|
m(T, L) {
|
15476
|
-
|
15476
|
+
J(T, t, L), G && G.m(t, null), g(t, e), g(t, o), g(o, r), g(t, n), g(t, a), g(a, l), g(l, c), g(c, u), g(u, h), g(c, p), g(c, f), s[25](f), g(l, b), g(l, v), g(v, w), g(w, N), g(v, F), g(v, A), s[26](A), g(a, P), g(a, M), g(M, K), g(t, ze), g(t, re), V.m(re, null), g(t, it), B && B.m(t, null), we || (j = he(
|
15477
15477
|
M,
|
15478
15478
|
"click",
|
15479
15479
|
/*click_handler_1*/
|
@@ -15482,7 +15482,7 @@ function Tu(s) {
|
|
15482
15482
|
},
|
15483
15483
|
p(T, L) {
|
15484
15484
|
/*isMobile*/
|
15485
|
-
T[18] &&
|
15485
|
+
T[18] && G.p(T, L), L[0] & /*$_*/
|
15486
15486
|
131072 && i !== (i = /*$_*/
|
15487
15487
|
T[17]("titleBonusesHistory") + "") && Pe(r, i), L[0] & /*$_*/
|
15488
15488
|
131072 && d !== (d = /*$_*/
|
@@ -15514,11 +15514,11 @@ function Tu(s) {
|
|
15514
15514
|
T[9]
|
15515
15515
|
), L[0] & /*$_*/
|
15516
15516
|
131072 && k !== (k = /*$_*/
|
15517
|
-
T[17]("dateFilter") + "") && Pe(
|
15517
|
+
T[17]("dateFilter") + "") && Pe(K, k), xe === (xe = Fe(T)) && V ? V.p(T, L) : (V.d(1), V = xe(T), V && (V.c(), V.m(re, null))), /*bonusesList*/
|
15518
15518
|
T[16].length !== 0 ? B ? B.p(T, L) : (B = Us(T), B.c(), B.m(t, null)) : B && (B.d(1), B = null);
|
15519
15519
|
},
|
15520
15520
|
d(T) {
|
15521
|
-
T &&
|
15521
|
+
T && Q(t), G && G.d(), s[25](null), s[26](null), V.d(), B && B.d(), we = !1, j();
|
15522
15522
|
}
|
15523
15523
|
};
|
15524
15524
|
}
|
@@ -15532,7 +15532,7 @@ function Du(s) {
|
|
15532
15532
|
t = D("div"), e = Ce("svg"), o = Ce("defs"), i = Ce("style"), r = U(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), n = Ce("g"), a = Ce("g"), l = Ce("path"), c = $(), u = D("h2"), h = U(d), x(l, "class", "aaa"), x(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), x(l, "transform", "translate(15 15) rotate(180)"), x(a, "transform", "translate(20 158)"), x(n, "transform", "translate(-20 -158)"), x(e, "xmlns", "http://www.w3.org/2000/svg"), x(e, "width", "15"), x(e, "height", "15"), x(e, "viewBox", "0 0 15 15"), x(u, "class", "BonusesTitleMobile"), x(t, "class", "MenuReturnButton");
|
15533
15533
|
},
|
15534
15534
|
m(b, v) {
|
15535
|
-
|
15535
|
+
J(b, t, v), g(t, e), g(e, o), g(o, i), g(i, r), g(e, n), g(n, a), g(a, l), g(t, c), g(t, u), g(u, h), p || (f = he(
|
15536
15536
|
t,
|
15537
15537
|
"click",
|
15538
15538
|
/*click_handler*/
|
@@ -15545,7 +15545,7 @@ function Du(s) {
|
|
15545
15545
|
b[17]("titleBonusesHistory") + "") && Pe(h, d);
|
15546
15546
|
},
|
15547
15547
|
d(b) {
|
15548
|
-
b &&
|
15548
|
+
b && Q(t), p = !1, f();
|
15549
15549
|
}
|
15550
15550
|
};
|
15551
15551
|
}
|
@@ -15565,7 +15565,7 @@ function Su(s) {
|
|
15565
15565
|
m(i, r) {
|
15566
15566
|
for (let n = 0; n < o.length; n += 1)
|
15567
15567
|
o[n] && o[n].m(i, r);
|
15568
|
-
|
15568
|
+
J(i, t, r);
|
15569
15569
|
},
|
15570
15570
|
p(i, r) {
|
15571
15571
|
if (r[0] & /*bonusesList, lang, clientstyling, clientstylingurl, translationurl*/
|
@@ -15585,7 +15585,7 @@ function Su(s) {
|
|
15585
15585
|
}
|
15586
15586
|
},
|
15587
15587
|
d(i) {
|
15588
|
-
i &&
|
15588
|
+
i && Q(t), js(o, i);
|
15589
15589
|
}
|
15590
15590
|
};
|
15591
15591
|
}
|
@@ -15599,7 +15599,7 @@ function Ou(s) {
|
|
15599
15599
|
t = D("p"), o = U(e);
|
15600
15600
|
},
|
15601
15601
|
m(i, r) {
|
15602
|
-
|
15602
|
+
J(i, t, r), g(t, o);
|
15603
15603
|
},
|
15604
15604
|
p(i, r) {
|
15605
15605
|
r[0] & /*$_*/
|
@@ -15607,7 +15607,7 @@ function Ou(s) {
|
|
15607
15607
|
i[17]("noBonusHistory") + "") && Pe(o, e);
|
15608
15608
|
},
|
15609
15609
|
d(i) {
|
15610
|
-
i &&
|
15610
|
+
i && Q(t);
|
15611
15611
|
}
|
15612
15612
|
};
|
15613
15613
|
}
|
@@ -15648,7 +15648,7 @@ function Mu(s) {
|
|
15648
15648
|
);
|
15649
15649
|
},
|
15650
15650
|
m(d, h) {
|
15651
|
-
|
15651
|
+
J(d, t, h);
|
15652
15652
|
},
|
15653
15653
|
p(d, h) {
|
15654
15654
|
h[0] & /*bonusesList*/
|
@@ -15697,7 +15697,7 @@ function Mu(s) {
|
|
15697
15697
|
);
|
15698
15698
|
},
|
15699
15699
|
d(d) {
|
15700
|
-
d &&
|
15700
|
+
d && Q(t);
|
15701
15701
|
}
|
15702
15702
|
};
|
15703
15703
|
}
|
@@ -15734,7 +15734,7 @@ function Iu(s) {
|
|
15734
15734
|
);
|
15735
15735
|
},
|
15736
15736
|
m(l, c) {
|
15737
|
-
|
15737
|
+
J(l, t, c);
|
15738
15738
|
},
|
15739
15739
|
p(l, c) {
|
15740
15740
|
c[0] & /*bonusesList*/
|
@@ -15776,7 +15776,7 @@ function Iu(s) {
|
|
15776
15776
|
);
|
15777
15777
|
},
|
15778
15778
|
d(l) {
|
15779
|
-
l &&
|
15779
|
+
l && Q(t);
|
15780
15780
|
}
|
15781
15781
|
};
|
15782
15782
|
}
|
@@ -15794,13 +15794,13 @@ function Ys(s) {
|
|
15794
15794
|
i.c(), t = qs();
|
15795
15795
|
},
|
15796
15796
|
m(r, n) {
|
15797
|
-
i.m(r, n),
|
15797
|
+
i.m(r, n), J(r, t, n);
|
15798
15798
|
},
|
15799
15799
|
p(r, n) {
|
15800
15800
|
o === (o = e(r)) && i ? i.p(r, n) : (i.d(1), i = o(r), i && (i.c(), i.m(t.parentNode, t)));
|
15801
15801
|
},
|
15802
15802
|
d(r) {
|
15803
|
-
r &&
|
15803
|
+
r && Q(t), i.d(r);
|
15804
15804
|
}
|
15805
15805
|
};
|
15806
15806
|
}
|
@@ -15826,7 +15826,7 @@ function Us(s) {
|
|
15826
15826
|
(s[18] ? "BonusesPaginationWrapperMobile" : ""));
|
15827
15827
|
},
|
15828
15828
|
m(P, M) {
|
15829
|
-
|
15829
|
+
J(P, t, M), g(t, e), g(e, o), g(t, r), g(t, n), g(n, a), g(t, c);
|
15830
15830
|
for (let k = 0; k < A.length; k += 1)
|
15831
15831
|
A[k] && A[k].m(t, null);
|
15832
15832
|
g(t, u), g(t, d), g(d, h), g(t, f), g(t, b), g(b, v), E || (N = [
|
@@ -15869,8 +15869,8 @@ function Us(s) {
|
|
15869
15869
|
));
|
15870
15870
|
let k;
|
15871
15871
|
for (k = 0; k < F.length; k += 1) {
|
15872
|
-
const
|
15873
|
-
A[k] ? A[k].p(
|
15872
|
+
const K = $s(P, F, k);
|
15873
|
+
A[k] ? A[k].p(K, M) : (A[k] = Ws(K), A[k].c(), A[k].m(t, u));
|
15874
15874
|
}
|
15875
15875
|
for (; k < A.length; k += 1)
|
15876
15876
|
A[k].d(1);
|
@@ -15885,7 +15885,7 @@ function Us(s) {
|
|
15885
15885
|
P[14] - 1 ? "Inactive" : "")) && x(b, "class", w);
|
15886
15886
|
},
|
15887
15887
|
d(P) {
|
15888
|
-
P &&
|
15888
|
+
P && Q(t), js(A, P), E = !1, Yr(N);
|
15889
15889
|
}
|
15890
15890
|
};
|
15891
15891
|
}
|
@@ -15910,7 +15910,7 @@ function Ws(s) {
|
|
15910
15910
|
s[15] ? "BonusPageActive" : ""));
|
15911
15911
|
},
|
15912
15912
|
m(l, c) {
|
15913
|
-
|
15913
|
+
J(l, t, c), g(t, o), r || (n = he(t, "click", a), r = !0);
|
15914
15914
|
},
|
15915
15915
|
p(l, c) {
|
15916
15916
|
s = l, c[0] & /*currentPage*/
|
@@ -15919,7 +15919,7 @@ function Ws(s) {
|
|
15919
15919
|
s[15] ? "BonusPageActive" : "")) && x(t, "class", i);
|
15920
15920
|
},
|
15921
15921
|
d(l) {
|
15922
|
-
l &&
|
15922
|
+
l && Q(t), r = !1, n();
|
15923
15923
|
}
|
15924
15924
|
};
|
15925
15925
|
}
|
@@ -15934,7 +15934,7 @@ function Nu(s) {
|
|
15934
15934
|
t = D("div"), i.c();
|
15935
15935
|
},
|
15936
15936
|
m(r, n) {
|
15937
|
-
|
15937
|
+
J(r, t, n), i.m(t, null), s[33](t);
|
15938
15938
|
},
|
15939
15939
|
p(r, n) {
|
15940
15940
|
i.p(r, n);
|
@@ -15942,7 +15942,7 @@ function Nu(s) {
|
|
15942
15942
|
i: Xo,
|
15943
15943
|
o: Xo,
|
15944
15944
|
d(r) {
|
15945
|
-
r &&
|
15945
|
+
r && Q(t), i.d(), s[33](null);
|
15946
15946
|
}
|
15947
15947
|
};
|
15948
15948
|
}
|
@@ -15952,11 +15952,11 @@ function zu(s, t, e) {
|
|
15952
15952
|
Rr(s, Vr, (_) => e(17, o = _));
|
15953
15953
|
let { endpoint: i = "" } = t, { session: r = "" } = t, { playerid: n = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: u = "" } = t, { bonushistorystatus: d = "" } = t, { bonushistorytype: h = "" } = t, p, f = window.navigator.userAgent, b = Hr(f) !== "PC", v, w, E, N;
|
15954
15954
|
E = nt(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"), N = nt(/* @__PURE__ */ new Date()).subtract(3, "months").format("YYYY-MM-DD");
|
15955
|
-
let F = N, A = E, P = 0, M = 0, k = 0,
|
15955
|
+
let F = N, A = E, P = 0, M = 0, k = 0, K = 0, ze = 0, re = [];
|
15956
15956
|
const it = () => {
|
15957
15957
|
fetch(u).then((Y) => Y.json()).then((Y) => {
|
15958
|
-
Object.keys(Y).forEach((
|
15959
|
-
Rs(
|
15958
|
+
Object.keys(Y).forEach((Z) => {
|
15959
|
+
Rs(Z, Y[Z]);
|
15960
15960
|
});
|
15961
15961
|
}).catch((Y) => {
|
15962
15962
|
console.log(Y);
|
@@ -15973,30 +15973,30 @@ function zu(s, t, e) {
|
|
15973
15973
|
},
|
15974
15974
|
window.location.href
|
15975
15975
|
);
|
15976
|
-
}, j = (_, Y,
|
15976
|
+
}, j = (_, Y, Z) => {
|
15977
15977
|
let Ot = new URL(`${i}/v1/player/${n}/bonusWallet`), Cr = nt(F).startOf("day").utc().format("YYYY-MM-DDTHH:mm:ss.SSS[Z]"), Ar = nt(A).endOf("day").utc().format("YYYY-MM-DDTHH:mm:ss.SSS[Z]"), ue = "", jo = "", qo = "";
|
15978
|
-
Y && (jo = Y.split(",").map((Mt) => `status=${Mt}`).join(","), ue = ue + jo + ","),
|
15978
|
+
Y && (jo = Y.split(",").map((Mt) => `status=${Mt}`).join(","), ue = ue + jo + ","), Z && (qo = Z.split(",").map((Mt) => `type=${Mt}`).join(","), ue = ue + qo + ","), ue = ue + `granted=[${Cr}~${Ar}]`, Ot.searchParams.append("filter", ue), Ot.searchParams.append("pagination", `offset=${_},limit=${te}`);
|
15979
15979
|
let Er = {
|
15980
15980
|
method: "GET",
|
15981
15981
|
headers: { "X-SessionId": r }
|
15982
15982
|
};
|
15983
|
-
fetch(Ot.href, Er).then((
|
15984
|
-
(
|
15985
|
-
e(14,
|
15983
|
+
fetch(Ot.href, Er).then((q) => q.json()).then(
|
15984
|
+
(q) => {
|
15985
|
+
e(14, K = Math.ceil(q.total / te)), _ - te >= 0 && e(11, P = _ - te), _ + te < q.total && e(12, M = _ + te), e(13, k = (K - 1) * te), e(15, ze = _ / te), e(16, re = (q == null ? void 0 : q.items) || []);
|
15986
15986
|
},
|
15987
|
-
(
|
15988
|
-
console.error(
|
15987
|
+
(q) => {
|
15988
|
+
console.error(q);
|
15989
15989
|
}
|
15990
15990
|
), window.postMessage({ type: "ScrollToTop" }, window.location.href);
|
15991
|
-
},
|
15991
|
+
}, G = (_) => {
|
15992
15992
|
F = _.target.value;
|
15993
15993
|
}, Fe = (_) => {
|
15994
15994
|
A = _.target.value;
|
15995
15995
|
}, xe = () => {
|
15996
|
-
v.addEventListener("change",
|
15996
|
+
v.addEventListener("change", G, !1), w.addEventListener("change", Fe, !1);
|
15997
15997
|
};
|
15998
15998
|
$r(() => () => {
|
15999
|
-
v.removeEventListener("change",
|
15999
|
+
v.removeEventListener("change", G), w.removeEventListener("change", Fe);
|
16000
16000
|
});
|
16001
16001
|
const V = () => {
|
16002
16002
|
Pu(a);
|
@@ -16005,8 +16005,8 @@ function zu(s, t, e) {
|
|
16005
16005
|
_.innerHTML = l, p.appendChild(_);
|
16006
16006
|
}, T = () => {
|
16007
16007
|
let _ = new URL(c), Y = document.createElement("style");
|
16008
|
-
fetch(_.href).then((
|
16009
|
-
Y.innerHTML =
|
16008
|
+
fetch(_.href).then((Z) => Z.text()).then((Z) => {
|
16009
|
+
Y.innerHTML = Z, setTimeout(
|
16010
16010
|
() => {
|
16011
16011
|
p.appendChild(Y);
|
16012
16012
|
},
|
@@ -16055,7 +16055,7 @@ function zu(s, t, e) {
|
|
16055
16055
|
P,
|
16056
16056
|
M,
|
16057
16057
|
k,
|
16058
|
-
|
16058
|
+
K,
|
16059
16059
|
ze,
|
16060
16060
|
re,
|
16061
16061
|
o,
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}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.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerBonusHistory-
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}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.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerBonusHistory-Bf9QTgAU.cjs")).then(({default:t})=>{!customElements.get("player-bonus-history")&&customElements.define("player-bonus-history",t.element)})}
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
10
10
|
}
|
11
11
|
};
|
12
12
|
};
|
13
|
-
customElements.define = n(customElements.define), import("../components/PlayerBonusHistory-
|
13
|
+
customElements.define = n(customElements.define), import("../components/PlayerBonusHistory-Bwn0vTfu.js").then(({ default: t }) => {
|
14
14
|
!customElements.get("player-bonus-history") && customElements.define("player-bonus-history", t.element);
|
15
15
|
});
|
16
16
|
}
|