@everymatrix/player-account-controller-nd 1.45.13 → 1.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountControllerNd-C0SMVChc.js → PlayerAccountControllerNd-DRYtUN3_.js} +1653 -1623
- package/components/PlayerAccountControllerNd-DxrDUaCm.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsPage2Gm16-DoQKbVDC.js → PlayerAccountGamingLimitsPage2Gm16-BqBYhQji.js} +788 -742
- package/components/PlayerAccountGamingLimitsPage2Gm16-ChyIWofJ.cjs +21 -0
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-Bww6zBy7.js → PlayerAccountGamingLimitsWrapper2Nd-CcRvb6xJ.js} +233 -214
- package/components/PlayerAccountGamingLimitsWrapper2Nd-Dlw9YcZ8.cjs +1 -0
- package/components/{PlayerAccountSelfExclusionNd-CUN7qWEA.cjs → PlayerAccountSelfExclusionNd-DACaIWex.cjs} +40 -40
- package/components/{PlayerAccountSelfExclusionNd-B1PSYs3p.js → PlayerAccountSelfExclusionNd-EX8qwr59.js} +204 -194
- package/components/{PlayerBonusHistory-DjdpaXkK.js → PlayerBonusHistory-BW2s6Xx3.js} +1 -1
- package/components/{PlayerBonusHistory-CDDjXtHi.cjs → PlayerBonusHistory-D1gFFWUR.cjs} +1 -1
- package/components/{PlayerGamingHistory-DXX4_ApI.cjs → PlayerGamingHistory-BNH2Pwcs.cjs} +1 -1
- package/components/{PlayerGamingHistory-DCOFqQCz.js → PlayerGamingHistory-CvqvGHm3.js} +1 -1
- package/es2015/player-account-controller-nd.cjs +1 -1
- package/es2015/player-account-controller-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountControllerNd-CbSqTGdR.cjs +0 -1
- package/components/PlayerAccountGamingLimitsPage2Gm16-DSOYjGfv.cjs +0 -21
- package/components/PlayerAccountGamingLimitsWrapper2Nd-LjReoru-.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var pr=Object.defineProperty,fr=Object.defineProperties;var mr=Object.getOwnPropertyDescriptors;var Jo=Object.getOwnPropertySymbols;var _r=Object.prototype.hasOwnProperty,gr=Object.prototype.propertyIsEnumerable;var Xo=(i,t,e)=>t in i?pr(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,zt=(i,t)=>{for(var e in t||(t={}))_r.call(t,e)&&Xo(i,e,t[e]);if(Jo)for(var e of Jo(t))gr.call(t,e)&&Xo(i,e,t[e]);return i},Nt=(i,t)=>fr(i,mr(t));var ct=(i,t,e)=>new Promise((o,s)=>{var r=l=>{try{a(e.next(l))}catch(c){s(c)}},n=l=>{try{a(e.throw(l))}catch(c){s(c)}},a=l=>l.done?o(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(i,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./GeneralLogout-bc8vhI_H.cjs");var Ui={exports:{}};(function(i,t){(function(e,o){i.exports=o()})(u.commonjsGlobal,function(){var e=1e3,o=6e4,s=36e5,r="millisecond",n="second",a="minute",l="hour",c="day",d="week",h="month",p="quarter",f="year",y="date",A="Invalid Date",z=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var _=["th","st","nd","rd"],m=x%100;return"["+x+(_[(m-20)%10]||_[m]||_[0])+"]"}},V=function(x,_,m){var v=String(x);return!v||v.length>=_?x:""+Array(_+1-v.length).join(m)+x},re={s:V,z:function(x){var _=-x.utcOffset(),m=Math.abs(_),v=Math.floor(m/60),g=m%60;return(_<=0?"+":"-")+V(v,2,"0")+":"+V(g,2,"0")},m:function x(_,m){if(_.date()<m.date())return-x(m,_);var v=12*(m.year()-_.year())+(m.month()-_.month()),g=_.clone().add(v,h),w=m-g<0,E=_.clone().add(v+(w?-1:1),h);return+(-(v+(m-g)/(w?g-E:E-g))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:h,y:f,w:d,d:c,D:y,h:l,m:a,s:n,ms:r,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},j="en",G={};G[j]=I;var de="$isDayjsObject",ne=function(x){return x instanceof ae||!(!x||!x[de])},oe=function x(_,m,v){var g;if(!_)return j;if(typeof _=="string"){var w=_.toLowerCase();G[w]&&(g=w),m&&(G[w]=m,g=w);var E=_.split("-");if(!g&&E.length>1)return x(E[0])}else{var P=_.name;G[P]=_,g=P}return!v&&g&&(j=g),g||!v&&j},L=function(x,_){if(ne(x))return x.clone();var m=typeof _=="object"?_:{};return m.date=x,m.args=arguments,new ae(m)},k=re;k.l=oe,k.i=ne,k.w=function(x,_){return L(x,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var ae=function(){function x(m){this.$L=oe(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[de]=!0}var _=x.prototype;return _.parse=function(m){this.$d=function(v){var g=v.date,w=v.utc;if(g===null)return new Date(NaN);if(k.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var E=g.match(z);if(E){var P=E[2]-1||0,N=(E[7]||"0").substring(0,3);return w?new Date(Date.UTC(E[1],P,E[3]||1,E[4]||0,E[5]||0,E[6]||0,N)):new Date(E[1],P,E[3]||1,E[4]||0,E[5]||0,E[6]||0,N)}}return new Date(g)}(m),this.init()},_.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},_.$utils=function(){return k},_.isValid=function(){return this.$d.toString()!==A},_.isSame=function(m,v){var g=L(m);return this.startOf(v)<=g&&g<=this.endOf(v)},_.isAfter=function(m,v){return L(m)<this.startOf(v)},_.isBefore=function(m,v){return this.endOf(v)<L(m)},_.$g=function(m,v,g){return k.u(m)?this[v]:this.set(g,m)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(m,v){var g=this,w=!!k.u(v)||v,E=k.p(m),P=function(D,R){var ie=k.w(g.$u?Date.UTC(g.$y,R,D):new Date(g.$y,R,D),g);return w?ie:ie.endOf(c)},N=function(D,R){return k.w(g.toDate()[D].apply(g.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(R)),g)},O=this.$W,H=this.$M,U=this.$D,Z="set"+(this.$u?"UTC":"");switch(E){case f:return w?P(1,0):P(31,11);case h:return w?P(1,H):P(0,H+1);case d:var b=this.$locale().weekStart||0,$=(O<b?O+7:O)-b;return P(w?U-$:U+(6-$),H);case c:case y:return N(Z+"Hours",0);case l:return N(Z+"Minutes",1);case a:return N(Z+"Seconds",2);case n:return N(Z+"Milliseconds",3);default:return this.clone()}},_.endOf=function(m){return this.startOf(m,!1)},_.$set=function(m,v){var g,w=k.p(m),E="set"+(this.$u?"UTC":""),P=(g={},g[c]=E+"Date",g[y]=E+"Date",g[h]=E+"Month",g[f]=E+"FullYear",g[l]=E+"Hours",g[a]=E+"Minutes",g[n]=E+"Seconds",g[r]=E+"Milliseconds",g)[w],N=w===c?this.$D+(v-this.$W):v;if(w===h||w===f){var O=this.clone().set(y,1);O.$d[P](N),O.init(),this.$d=O.set(y,Math.min(this.$D,O.daysInMonth())).$d}else P&&this.$d[P](N);return this.init(),this},_.set=function(m,v){return this.clone().$set(m,v)},_.get=function(m){return this[k.p(m)]()},_.add=function(m,v){var g,w=this;m=Number(m);var E=k.p(v),P=function(H){var U=L(w);return k.w(U.date(U.date()+Math.round(H*m)),w)};if(E===h)return this.set(h,this.$M+m);if(E===f)return this.set(f,this.$y+m);if(E===c)return P(1);if(E===d)return P(7);var N=(g={},g[a]=o,g[l]=s,g[n]=e,g)[E]||1,O=this.$d.getTime()+m*N;return k.w(O,this)},_.subtract=function(m,v){return this.add(-1*m,v)},_.format=function(m){var v=this,g=this.$locale();if(!this.isValid())return g.invalidDate||A;var w=m||"YYYY-MM-DDTHH:mm:ssZ",E=k.z(this),P=this.$H,N=this.$m,O=this.$M,H=g.weekdays,U=g.months,Z=g.meridiem,b=function(R,ie,le,he){return R&&(R[ie]||R(v,w))||le[ie].slice(0,he)},$=function(R){return k.s(P%12||12,R,"0")},D=Z||function(R,ie,le){var he=R<12?"AM":"PM";return le?he.toLowerCase():he};return w.replace(M,function(R,ie){return ie||function(le){switch(le){case"YY":return String(v.$y).slice(-2);case"YYYY":return k.s(v.$y,4,"0");case"M":return O+1;case"MM":return k.s(O+1,2,"0");case"MMM":return b(g.monthsShort,O,U,3);case"MMMM":return b(U,O);case"D":return v.$D;case"DD":return k.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return b(g.weekdaysMin,v.$W,H,2);case"ddd":return b(g.weekdaysShort,v.$W,H,3);case"dddd":return H[v.$W];case"H":return String(P);case"HH":return k.s(P,2,"0");case"h":return $(1);case"hh":return $(2);case"a":return D(P,N,!0);case"A":return D(P,N,!1);case"m":return String(N);case"mm":return k.s(N,2,"0");case"s":return String(v.$s);case"ss":return k.s(v.$s,2,"0");case"SSS":return k.s(v.$ms,3,"0");case"Z":return E}return null}(R)||E.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(m,v,g){var w,E=this,P=k.p(v),N=L(m),O=(N.utcOffset()-this.utcOffset())*o,H=this-N,U=function(){return k.m(E,N)};switch(P){case f:w=U()/12;break;case h:w=U();break;case p:w=U()/3;break;case d:w=(H-O)/6048e5;break;case c:w=(H-O)/864e5;break;case l:w=H/s;break;case a:w=H/o;break;case n:w=H/e;break;default:w=H}return g?w:k.a(w)},_.daysInMonth=function(){return this.endOf(h).$D},_.$locale=function(){return G[this.$L]},_.locale=function(m,v){if(!m)return this.$L;var g=this.clone(),w=oe(m,v,!0);return w&&(g.$L=w),g},_.clone=function(){return k.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},x}(),X=ae.prototype;return L.prototype=X,[["$ms",r],["$s",n],["$m",a],["$H",l],["$W",c],["$M",h],["$y",f],["$D",y]].forEach(function(x){X[x[1]]=function(_){return this.$g(_,x[0],x[1])}}),L.extend=function(x,_){return x.$i||(x(_,ae,L),x.$i=!0),L},L.locale=oe,L.isDayjs=ne,L.unix=function(x){return L(1e3*x)},L.en=G[j],L.Ls=G,L.p={},L})})(Ui);var yr=Ui.exports;const Lt=u.getDefaultExportFromCjs(yr);function Zo(i,t){u.addMessages(i,t)}function vr(i){u.$locale.set(i)}const Qo={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText1:"We recognize that gambling can be harmful so to prevent problems associated with gambling, we offer our users the ability to exclude from all forms of betting on our site for a certain indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for your chosen period. Select a timeframe below then click "Save".',selfExclusionText3:"During self-exclusion, you will be able to access your account and withdraw funds but you will not be able to deposit or place any bets. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months after its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows:",selfExclusionText4:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until"},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText1:"我們意識到賭博可能帶來危害,為防止與賭博相關的問題,我們為用戶提供自我排除功能,讓您可以在我們的網站上暫停所有形式的投注,持續一定或不定期限。",selfExclusionText2:"自我排除自您選定的期限開始生效。請選擇以下的時長,然後點擊「儲存」。",selfExclusionText3:"在自我排除期間,您仍然可以進入您的帳戶並提取資金,但無法存款或進行任何投注。如果是永久自我排除,只有在書面申請並且自申請起6個月後才可撤銷自我排除。請注意,另一種申請自我排除的方法是聯絡客戶服務,聯絡方式如下:",selfExclusionText4:"電郵:",duration:"時長:",dateInstructions:"為了手動輸入日期,請使用以下格式",forever:"永久",save:"儲存",noPeriodSelected:"請選擇自我排除時期",selectAPeriod:"選擇時長",temporarySelfExclusion:"您的自我排除期將持續至{date} 23:59。",permanentSelfExclusion:"您的自我排除期將會是永久的。",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到"},fr:{titleSelfExclusion:"Auto-exclusion",selfExclusionText1:"Nous reconnaissons que le jeu peut être nuisible, c'est pourquoi, afin de prévenir les problèmes associés au jeu, nous offrons à nos utilisateurs la possibilité de s'exclure de toutes les formes de paris sur notre site pour une période déterminée ou indéfinie.",selfExclusionText2:"L'auto-exclusion prend effet à partir du moment où elle est définie pour la période que vous avez choisie. Sélectionnez une durée ci-dessous, puis cliquez sur « Enregistrer ».",selfExclusionText3:"Pendant la période d'auto-exclusion, vous pourrez accéder à votre compte et retirer des fonds, mais vous ne pourrez ni déposer, ni placer de paris. Dans le cas d'une auto-exclusion permanente, il n'est possible de révoquer l'auto-exclusion que sur demande écrite et seulement 6 mois après son application initiale. Veuillez noter qu'une autre manière de demander une auto-exclusion est de contacter le service client comme suit :",selfExclusionText4:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir la date manuellement, utilisez le format suivant:",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionner une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor6Months:"6 mois",SelfExclusionFor1Year:"1 an",SelfExclusionFor5Years:"5 ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à"},ro:{titleSelfExclusion:"Auto-excludere",selfExclusionText1:"Recunoaștem că jocurile de noroc pot fi dăunătoare, așa că pentru a preveni problemele asociate cu acestea, oferim utilizatorilor noștri posibilitatea de a se auto-exclude de la toate formele de pariuri de pe site-ul nostru pentru o perioadă determinată sau nedeterminată.",selfExclusionText2:"Auto-excluderea intră în vigoare din momentul în care este setată pentru perioada aleasă de dvs. Selectați o perioadă mai jos, apoi faceți clic pe „Salvează”.",selfExclusionText3:"În timpul auto-excluderii, veți putea accesa contul dvs. și retrage fonduri, dar nu veți putea depune sau plasa pariuri. În cazul auto-excluderii permanente, este posibil să revocați auto-excluderea doar la cerere scrisă și numai după 6 luni de la aplicarea inițială. Vă rugăm să rețineți că o altă modalitate de a solicita auto-excluderea este să contactați Serviciul Clienți astfel:",selfExclusionText4:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual data, utilizați următorul format:",forever:"Permanent",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor6Months:"6 luni",SelfExclusionFor1Year:"1 an",SelfExclusionFor5Years:"5 ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la"},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText1:"Reconocemos que el juego puede ser perjudicial, por lo que para prevenir problemas asociados al juego, ofrecemos a nuestros usuarios la posibilidad de excluirse de todas las formas de apuestas en nuestro sitio por un período determinado o indefinido.",selfExclusionText2:'La autoexclusión entra en vigor desde el momento en que se establece para el período que usted elija. Seleccione un período a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante el período de autoexclusión, podrá acceder a su cuenta y retirar fondos, pero no podrá depositar ni realizar apuestas. En el caso de la autoexclusión permanente, solo es posible revocar la autoexclusión mediante solicitud por escrito y solo 6 meses después de su aplicación inicial. Tenga en cuenta que otra forma de solicitar la autoexclusión es contactando al Servicio de Atención al Cliente de la siguiente manera:",selfExclusionText4:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para introducir la fecha manualmente, utilice el siguiente formato:",forever:"Permanente",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 año",SelfExclusionFor5Years:"5 años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta"},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial, por isso, para prevenir problemas associados ao jogo, oferecemos aos nossos utilizadores a possibilidade de se autoexcluírem de todas as formas de apostas no nosso site por um período definido ou indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é definida para o período escolhido. Selecione um período abaixo e clique em "Guardar".',selfExclusionText3:"Durante o período de autoexclusão, poderá aceder à sua conta e levantar fundos, mas não poderá depositar nem realizar apostas. No caso de autoexclusão permanente, só é possível revogar a autoexclusão mediante pedido por escrito e apenas 6 meses após a sua aplicação inicial. Note que outra forma de solicitar a autoexclusão é contactar o Serviço de Apoio ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 ano",SelfExclusionFor5Years:"5 anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até"},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText1:"Prepoznajemo da kockanje može biti štetno, stoga, kako bismo spriječili probleme povezane s kockanjem, korisnicima nudimo mogućnost samoisključenja iz svih oblika klađenja na našoj stranici na određeno ili neodređeno vrijeme.",selfExclusionText2:'Samoisključenje stupa na snagu od trenutka kada je postavljeno za odabrano razdoblje. Odaberite razdoblje u nastavku, a zatim kliknite "Spremi".',selfExclusionText3:"Tijekom razdoblja samoisključenja moći ćete pristupiti svom računu i podići sredstva, ali nećete moći uplatiti novac niti postavljati oklade. U slučaju trajnog samoisključenja, samoisključenje se može ukinuti isključivo na pisani zahtjev i tek 6 mjeseci nakon njegove prve primjene. Imajte na umu da je alternativni način zahtjeva za samoisključenje kontaktiranje korisničke podrške na sljedeći način:",selfExclusionText4:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} u 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor6Months:"6 mjeseci",SelfExclusionFor1Year:"1 godina",SelfExclusionFor5Years:"5 godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do"},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial, por isso, para prevenir problemas associados ao jogo, oferecemos aos nossos usuários a possibilidade de se autoexcluírem de todas as formas de apostas em nosso site por um período determinado ou indeterminado.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é configurada para o período escolhido. Selecione um período abaixo e clique em "Salvar".',selfExclusionText3:"Durante o período de autoexclusão, você poderá acessar sua conta e retirar fundos, mas não poderá depositar nem realizar apostas. No caso de autoexclusão permanente, só é possível revogar a autoexclusão mediante solicitação por escrito e apenas 6 meses após sua aplicação inicial. Observe que outra maneira de solicitar a autoexclusão é entrar em contato com o Atendimento ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, utilize o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 ano",SelfExclusionFor5Years:"5 anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até"},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText1:"Reconocemos que el juego puede ser perjudicial, por lo que para prevenir problemas asociados al juego, ofrecemos a nuestros usuarios la posibilidad de autoexcluirse de todas las formas de apuestas en nuestro sitio por un período determinado o indefinido.",selfExclusionText2:'La autoexclusión entra en vigor desde el momento en que se establece para el período que usted elija. Seleccione un período a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante el período de autoexclusión, podrá acceder a su cuenta y retirar fondos, pero no podrá depositar ni realizar apuestas. En el caso de la autoexclusión permanente, solo es posible revocar la autoexclusión mediante solicitud por escrito y solo 6 meses después de su aplicación inicial. Tenga en cuenta que otra manera de solicitar la autoexclusión es contactando al Servicio al Cliente de la siguiente manera:",selfExclusionText4:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para introducir la fecha manualmente, utilice el siguiente formato:",forever:"Permanente",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 año",SelfExclusionFor5Years:"5 años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta"},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText1:"Kumarın zararlı olabileceğini kabul ediyoruz, bu nedenle kumarla ilgili sorunları önlemek için, kullanıcılarımıza sitemizdeki tüm bahis türlerinden belirli veya belirsiz bir süre için kendilerini hariç tutma imkânı sunuyoruz.",selfExclusionText2:'Kendi kendini hariç tutma, seçtiğiniz dönem için ayarlandığı andan itibaren yürürlüğe girer. Aşağıdan bir süre seçin ve ardından "Kaydet"e tıklayın.',selfExclusionText3:"Kendi kendini hariç tutma süresi boyunca hesabınıza erişebilir ve para çekebilirsiniz, ancak para yatıramaz veya bahis oynayamazsınız. Kalıcı hariç tutma durumunda, sadece yazılı talep üzerine ve ilk uygulamadan 6 ay sonra hariç tutma iptal edilebilir. Lütfen kendi kendini hariç tutma talep etmenin alternatif bir yolunun Müşteri Hizmetleri ile iletişime geçmek olduğunu unutmayın:",selfExclusionText4:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi elle girmek için aşağıdaki formatı kullanın:",forever:"Kalıcı",save:"Kaydet",noPeriodSelected:"Lütfen bir hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Kadar"}};/**
|
|
1
|
+
"use strict";var pr=Object.defineProperty,fr=Object.defineProperties;var mr=Object.getOwnPropertyDescriptors;var Jo=Object.getOwnPropertySymbols;var _r=Object.prototype.hasOwnProperty,gr=Object.prototype.propertyIsEnumerable;var Xo=(i,t,e)=>t in i?pr(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,zt=(i,t)=>{for(var e in t||(t={}))_r.call(t,e)&&Xo(i,e,t[e]);if(Jo)for(var e of Jo(t))gr.call(t,e)&&Xo(i,e,t[e]);return i},Nt=(i,t)=>fr(i,mr(t));var ct=(i,t,e)=>new Promise((o,s)=>{var r=l=>{try{a(e.next(l))}catch(c){s(c)}},n=l=>{try{a(e.throw(l))}catch(c){s(c)}},a=l=>l.done?o(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(i,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./GeneralLogout-bc8vhI_H.cjs");var Ui={exports:{}};(function(i,t){(function(e,o){i.exports=o()})(u.commonjsGlobal,function(){var e=1e3,o=6e4,s=36e5,r="millisecond",n="second",a="minute",l="hour",c="day",d="week",h="month",p="quarter",f="year",y="date",A="Invalid Date",z=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var _=["th","st","nd","rd"],m=x%100;return"["+x+(_[(m-20)%10]||_[m]||_[0])+"]"}},V=function(x,_,m){var v=String(x);return!v||v.length>=_?x:""+Array(_+1-v.length).join(m)+x},re={s:V,z:function(x){var _=-x.utcOffset(),m=Math.abs(_),v=Math.floor(m/60),g=m%60;return(_<=0?"+":"-")+V(v,2,"0")+":"+V(g,2,"0")},m:function x(_,m){if(_.date()<m.date())return-x(m,_);var v=12*(m.year()-_.year())+(m.month()-_.month()),g=_.clone().add(v,h),w=m-g<0,E=_.clone().add(v+(w?-1:1),h);return+(-(v+(m-g)/(w?g-E:E-g))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:h,y:f,w:d,d:c,D:y,h:l,m:a,s:n,ms:r,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},j="en",G={};G[j]=I;var de="$isDayjsObject",ne=function(x){return x instanceof ae||!(!x||!x[de])},oe=function x(_,m,v){var g;if(!_)return j;if(typeof _=="string"){var w=_.toLowerCase();G[w]&&(g=w),m&&(G[w]=m,g=w);var E=_.split("-");if(!g&&E.length>1)return x(E[0])}else{var P=_.name;G[P]=_,g=P}return!v&&g&&(j=g),g||!v&&j},F=function(x,_){if(ne(x))return x.clone();var m=typeof _=="object"?_:{};return m.date=x,m.args=arguments,new ae(m)},k=re;k.l=oe,k.i=ne,k.w=function(x,_){return F(x,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var ae=function(){function x(m){this.$L=oe(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[de]=!0}var _=x.prototype;return _.parse=function(m){this.$d=function(v){var g=v.date,w=v.utc;if(g===null)return new Date(NaN);if(k.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var E=g.match(z);if(E){var P=E[2]-1||0,N=(E[7]||"0").substring(0,3);return w?new Date(Date.UTC(E[1],P,E[3]||1,E[4]||0,E[5]||0,E[6]||0,N)):new Date(E[1],P,E[3]||1,E[4]||0,E[5]||0,E[6]||0,N)}}return new Date(g)}(m),this.init()},_.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},_.$utils=function(){return k},_.isValid=function(){return this.$d.toString()!==A},_.isSame=function(m,v){var g=F(m);return this.startOf(v)<=g&&g<=this.endOf(v)},_.isAfter=function(m,v){return F(m)<this.startOf(v)},_.isBefore=function(m,v){return this.endOf(v)<F(m)},_.$g=function(m,v,g){return k.u(m)?this[v]:this.set(g,m)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(m,v){var g=this,w=!!k.u(v)||v,E=k.p(m),P=function(D,R){var ie=k.w(g.$u?Date.UTC(g.$y,R,D):new Date(g.$y,R,D),g);return w?ie:ie.endOf(c)},N=function(D,R){return k.w(g.toDate()[D].apply(g.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(R)),g)},O=this.$W,H=this.$M,U=this.$D,Z="set"+(this.$u?"UTC":"");switch(E){case f:return w?P(1,0):P(31,11);case h:return w?P(1,H):P(0,H+1);case d:var b=this.$locale().weekStart||0,$=(O<b?O+7:O)-b;return P(w?U-$:U+(6-$),H);case c:case y:return N(Z+"Hours",0);case l:return N(Z+"Minutes",1);case a:return N(Z+"Seconds",2);case n:return N(Z+"Milliseconds",3);default:return this.clone()}},_.endOf=function(m){return this.startOf(m,!1)},_.$set=function(m,v){var g,w=k.p(m),E="set"+(this.$u?"UTC":""),P=(g={},g[c]=E+"Date",g[y]=E+"Date",g[h]=E+"Month",g[f]=E+"FullYear",g[l]=E+"Hours",g[a]=E+"Minutes",g[n]=E+"Seconds",g[r]=E+"Milliseconds",g)[w],N=w===c?this.$D+(v-this.$W):v;if(w===h||w===f){var O=this.clone().set(y,1);O.$d[P](N),O.init(),this.$d=O.set(y,Math.min(this.$D,O.daysInMonth())).$d}else P&&this.$d[P](N);return this.init(),this},_.set=function(m,v){return this.clone().$set(m,v)},_.get=function(m){return this[k.p(m)]()},_.add=function(m,v){var g,w=this;m=Number(m);var E=k.p(v),P=function(H){var U=F(w);return k.w(U.date(U.date()+Math.round(H*m)),w)};if(E===h)return this.set(h,this.$M+m);if(E===f)return this.set(f,this.$y+m);if(E===c)return P(1);if(E===d)return P(7);var N=(g={},g[a]=o,g[l]=s,g[n]=e,g)[E]||1,O=this.$d.getTime()+m*N;return k.w(O,this)},_.subtract=function(m,v){return this.add(-1*m,v)},_.format=function(m){var v=this,g=this.$locale();if(!this.isValid())return g.invalidDate||A;var w=m||"YYYY-MM-DDTHH:mm:ssZ",E=k.z(this),P=this.$H,N=this.$m,O=this.$M,H=g.weekdays,U=g.months,Z=g.meridiem,b=function(R,ie,le,he){return R&&(R[ie]||R(v,w))||le[ie].slice(0,he)},$=function(R){return k.s(P%12||12,R,"0")},D=Z||function(R,ie,le){var he=R<12?"AM":"PM";return le?he.toLowerCase():he};return w.replace(M,function(R,ie){return ie||function(le){switch(le){case"YY":return String(v.$y).slice(-2);case"YYYY":return k.s(v.$y,4,"0");case"M":return O+1;case"MM":return k.s(O+1,2,"0");case"MMM":return b(g.monthsShort,O,U,3);case"MMMM":return b(U,O);case"D":return v.$D;case"DD":return k.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return b(g.weekdaysMin,v.$W,H,2);case"ddd":return b(g.weekdaysShort,v.$W,H,3);case"dddd":return H[v.$W];case"H":return String(P);case"HH":return k.s(P,2,"0");case"h":return $(1);case"hh":return $(2);case"a":return D(P,N,!0);case"A":return D(P,N,!1);case"m":return String(N);case"mm":return k.s(N,2,"0");case"s":return String(v.$s);case"ss":return k.s(v.$s,2,"0");case"SSS":return k.s(v.$ms,3,"0");case"Z":return E}return null}(R)||E.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(m,v,g){var w,E=this,P=k.p(v),N=F(m),O=(N.utcOffset()-this.utcOffset())*o,H=this-N,U=function(){return k.m(E,N)};switch(P){case f:w=U()/12;break;case h:w=U();break;case p:w=U()/3;break;case d:w=(H-O)/6048e5;break;case c:w=(H-O)/864e5;break;case l:w=H/s;break;case a:w=H/o;break;case n:w=H/e;break;default:w=H}return g?w:k.a(w)},_.daysInMonth=function(){return this.endOf(h).$D},_.$locale=function(){return G[this.$L]},_.locale=function(m,v){if(!m)return this.$L;var g=this.clone(),w=oe(m,v,!0);return w&&(g.$L=w),g},_.clone=function(){return k.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},x}(),X=ae.prototype;return F.prototype=X,[["$ms",r],["$s",n],["$m",a],["$H",l],["$W",c],["$M",h],["$y",f],["$D",y]].forEach(function(x){X[x[1]]=function(_){return this.$g(_,x[0],x[1])}}),F.extend=function(x,_){return x.$i||(x(_,ae,F),x.$i=!0),F},F.locale=oe,F.isDayjs=ne,F.unix=function(x){return F(1e3*x)},F.en=G[j],F.Ls=G,F.p={},F})})(Ui);var yr=Ui.exports;const Ft=u.getDefaultExportFromCjs(yr);function Zo(i,t){u.addMessages(i,t)}function vr(i){u.$locale.set(i)}const Qo={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText1:"We recognize that gambling can be harmful so to prevent problems associated with gambling, we offer our users the ability to exclude from all forms of betting on our site for a certain indefinite period of time.",selfExclusionText2:'Self-exclusion takes effect from the time it is set for your chosen period. Select a timeframe below then click "Save".',selfExclusionText3:"During self-exclusion, you will be able to access your account and withdraw funds but you will not be able to deposit or place any bets. In the case of permanent self-exclusion, it is only possible to revoke Self-exclusion upon written request and only 6 months after its initial application. Please note that an alternative way to request self-exclusion is to contact Customer Service as follows:",selfExclusionText4:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor6Months:"6 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until"},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText1:"我們意識到賭博可能帶來危害,為防止與賭博相關的問題,我們為用戶提供自我排除功能,讓您可以在我們的網站上暫停所有形式的投注,持續一定或不定期限。",selfExclusionText2:"自我排除自您選定的期限開始生效。請選擇以下的時長,然後點擊「儲存」。",selfExclusionText3:"在自我排除期間,您仍然可以進入您的帳戶並提取資金,但無法存款或進行任何投注。如果是永久自我排除,只有在書面申請並且自申請起6個月後才可撤銷自我排除。請注意,另一種申請自我排除的方法是聯絡客戶服務,聯絡方式如下:",selfExclusionText4:"電郵:",duration:"時長:",dateInstructions:"為了手動輸入日期,請使用以下格式",forever:"永久",save:"儲存",noPeriodSelected:"請選擇自我排除時期",selectAPeriod:"選擇時長",temporarySelfExclusion:"您的自我排除期將持續至{date} 23:59。",permanentSelfExclusion:"您的自我排除期將會是永久的。",SelfExclusionFor30Days:"30天",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到"},fr:{titleSelfExclusion:"Auto-exclusion",selfExclusionText1:"Nous reconnaissons que le jeu peut être nuisible, c'est pourquoi, afin de prévenir les problèmes associés au jeu, nous offrons à nos utilisateurs la possibilité de s'exclure de toutes les formes de paris sur notre site pour une période déterminée ou indéfinie.",selfExclusionText2:"L'auto-exclusion prend effet à partir du moment où elle est définie pour la période que vous avez choisie. Sélectionnez une durée ci-dessous, puis cliquez sur « Enregistrer ».",selfExclusionText3:"Pendant la période d'auto-exclusion, vous pourrez accéder à votre compte et retirer des fonds, mais vous ne pourrez ni déposer, ni placer de paris. Dans le cas d'une auto-exclusion permanente, il n'est possible de révoquer l'auto-exclusion que sur demande écrite et seulement 6 mois après son application initiale. Veuillez noter qu'une autre manière de demander une auto-exclusion est de contacter le service client comme suit :",selfExclusionText4:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir la date manuellement, utilisez le format suivant:",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionner une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor30Days:"30 Jours",SelfExclusionFor6Months:"6 mois",SelfExclusionFor1Year:"1 an",SelfExclusionFor5Years:"5 ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à"},ro:{titleSelfExclusion:"Auto-excludere",selfExclusionText1:"Recunoaștem că jocurile de noroc pot fi dăunătoare, așa că pentru a preveni problemele asociate cu acestea, oferim utilizatorilor noștri posibilitatea de a se auto-exclude de la toate formele de pariuri de pe site-ul nostru pentru o perioadă determinată sau nedeterminată.",selfExclusionText2:"Auto-excluderea intră în vigoare din momentul în care este setată pentru perioada aleasă de dvs. Selectați o perioadă mai jos, apoi faceți clic pe „Salvează”.",selfExclusionText3:"În timpul auto-excluderii, veți putea accesa contul dvs. și retrage fonduri, dar nu veți putea depune sau plasa pariuri. În cazul auto-excluderii permanente, este posibil să revocați auto-excluderea doar la cerere scrisă și numai după 6 luni de la aplicarea inițială. Vă rugăm să rețineți că o altă modalitate de a solicita auto-excluderea este să contactați Serviciul Clienți astfel:",selfExclusionText4:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual data, utilizați următorul format:",forever:"Permanent",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor30Days:"30 Zile",SelfExclusionFor6Months:"6 luni",SelfExclusionFor1Year:"1 an",SelfExclusionFor5Years:"5 ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la"},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText1:"Reconocemos que el juego puede ser perjudicial, por lo que para prevenir problemas asociados al juego, ofrecemos a nuestros usuarios la posibilidad de excluirse de todas las formas de apuestas en nuestro sitio por un período determinado o indefinido.",selfExclusionText2:'La autoexclusión entra en vigor desde el momento en que se establece para el período que usted elija. Seleccione un período a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante el período de autoexclusión, podrá acceder a su cuenta y retirar fondos, pero no podrá depositar ni realizar apuestas. En el caso de la autoexclusión permanente, solo es posible revocar la autoexclusión mediante solicitud por escrito y solo 6 meses después de su aplicación inicial. Tenga en cuenta que otra forma de solicitar la autoexclusión es contactando al Servicio de Atención al Cliente de la siguiente manera:",selfExclusionText4:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para introducir la fecha manualmente, utilice el siguiente formato:",forever:"Permanente",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 año",SelfExclusionFor5Years:"5 años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta"},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial, por isso, para prevenir problemas associados ao jogo, oferecemos aos nossos utilizadores a possibilidade de se autoexcluírem de todas as formas de apostas no nosso site por um período definido ou indefinido.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é definida para o período escolhido. Selecione um período abaixo e clique em "Guardar".',selfExclusionText3:"Durante o período de autoexclusão, poderá aceder à sua conta e levantar fundos, mas não poderá depositar nem realizar apostas. No caso de autoexclusão permanente, só é possível revogar a autoexclusão mediante pedido por escrito e apenas 6 meses após a sua aplicação inicial. Note que outra forma de solicitar a autoexclusão é contactar o Serviço de Apoio ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 ano",SelfExclusionFor5Years:"5 anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até"},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText1:"Prepoznajemo da kockanje može biti štetno, stoga, kako bismo spriječili probleme povezane s kockanjem, korisnicima nudimo mogućnost samoisključenja iz svih oblika klađenja na našoj stranici na određeno ili neodređeno vrijeme.",selfExclusionText2:'Samoisključenje stupa na snagu od trenutka kada je postavljeno za odabrano razdoblje. Odaberite razdoblje u nastavku, a zatim kliknite "Spremi".',selfExclusionText3:"Tijekom razdoblja samoisključenja moći ćete pristupiti svom računu i podići sredstva, ali nećete moći uplatiti novac niti postavljati oklade. U slučaju trajnog samoisključenja, samoisključenje se može ukinuti isključivo na pisani zahtjev i tek 6 mjeseci nakon njegove prve primjene. Imajte na umu da je alternativni način zahtjeva za samoisključenje kontaktiranje korisničke podrške na sljedeći način:",selfExclusionText4:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} u 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor6Months:"6 mjeseci",SelfExclusionFor1Year:"1 godina",SelfExclusionFor5Years:"5 godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do"},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText1:"Reconhecemos que o jogo pode ser prejudicial, por isso, para prevenir problemas associados ao jogo, oferecemos aos nossos usuários a possibilidade de se autoexcluírem de todas as formas de apostas em nosso site por um período determinado ou indeterminado.",selfExclusionText2:'A autoexclusão entra em vigor a partir do momento em que é configurada para o período escolhido. Selecione um período abaixo e clique em "Salvar".',selfExclusionText3:"Durante o período de autoexclusão, você poderá acessar sua conta e retirar fundos, mas não poderá depositar nem realizar apostas. No caso de autoexclusão permanente, só é possível revogar a autoexclusão mediante solicitação por escrito e apenas 6 meses após sua aplicação inicial. Observe que outra maneira de solicitar a autoexclusão é entrar em contato com o Atendimento ao Cliente da seguinte forma:",selfExclusionText4:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, utilize o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 ano",SelfExclusionFor5Years:"5 anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até"},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText1:"Reconocemos que el juego puede ser perjudicial, por lo que para prevenir problemas asociados al juego, ofrecemos a nuestros usuarios la posibilidad de autoexcluirse de todas las formas de apuestas en nuestro sitio por un período determinado o indefinido.",selfExclusionText2:'La autoexclusión entra en vigor desde el momento en que se establece para el período que usted elija. Seleccione un período a continuación y luego haga clic en "Guardar".',selfExclusionText3:"Durante el período de autoexclusión, podrá acceder a su cuenta y retirar fondos, pero no podrá depositar ni realizar apuestas. En el caso de la autoexclusión permanente, solo es posible revocar la autoexclusión mediante solicitud por escrito y solo 6 meses después de su aplicación inicial. Tenga en cuenta que otra manera de solicitar la autoexclusión es contactando al Servicio al Cliente de la siguiente manera:",selfExclusionText4:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para introducir la fecha manualmente, utilice el siguiente formato:",forever:"Permanente",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 meses",SelfExclusionFor1Year:"1 año",SelfExclusionFor5Years:"5 años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta"},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText1:"Kumarın zararlı olabileceğini kabul ediyoruz, bu nedenle kumarla ilgili sorunları önlemek için, kullanıcılarımıza sitemizdeki tüm bahis türlerinden belirli veya belirsiz bir süre için kendilerini hariç tutma imkânı sunuyoruz.",selfExclusionText2:'Kendi kendini hariç tutma, seçtiğiniz dönem için ayarlandığı andan itibaren yürürlüğe girer. Aşağıdan bir süre seçin ve ardından "Kaydet"e tıklayın.',selfExclusionText3:"Kendi kendini hariç tutma süresi boyunca hesabınıza erişebilir ve para çekebilirsiniz, ancak para yatıramaz veya bahis oynayamazsınız. Kalıcı hariç tutma durumunda, sadece yazılı talep üzerine ve ilk uygulamadan 6 ay sonra hariç tutma iptal edilebilir. Lütfen kendi kendini hariç tutma talep etmenin alternatif bir yolunun Müşteri Hizmetleri ile iletişime geçmek olduğunu unutmayın:",selfExclusionText4:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi elle girmek için aşağıdaki formatı kullanın:",forever:"Kalıcı",save:"Kaydet",noPeriodSelected:"Lütfen bir hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor30Days:"30 Gün",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Kadar"}};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/var
|
|
17
|
+
*/var Lt;const yt=window,oi=yt.trustedTypes,Er=oi?oi.emptyScript:"",ii=yt.reactiveElementPolyfillSupport,io={toAttribute(i,t){switch(t){case Boolean:i=i?Er:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch(o){e=null}}return e}},Wi=(i,t)=>t!==i&&(t==t||i==i),$t={attribute:!0,type:String,converter:io,reflect:!1,hasChanged:Wi},so="finalized";let Oe=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,o)=>{const s=this._$Ep(o,e);s!==void 0&&(this._$Ev.set(s,o),t.push(s))}),t}static createProperty(t,e=$t){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const o=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,o,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,o){return{get(){return this[e]},set(s){const r=this[t];this[e]=s,this.requestUpdate(t,r,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$t}static finalize(){if(this.hasOwnProperty(so))return!1;this[so]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,o=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of o)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const s of o)e.unshift(ti(s))}else t!==void 0&&e.push(ti(t));return e}static _$Ep(t,e){const o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,o;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((o=t.hostConnected)===null||o===void 0||o.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return wr(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var o;return(o=e.hostConnected)===null||o===void 0?void 0:o.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var o;return(o=e.hostDisconnected)===null||o===void 0?void 0:o.call(e)})}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e,o=$t){var s;const r=this.constructor._$Ep(t,o);if(r!==void 0&&o.reflect===!0){const n=(((s=o.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?o.converter:io).toAttribute(e,o.type);this._$El=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var o;const s=this.constructor,r=s._$Ev.get(t);if(r!==void 0&&this._$El!==r){const n=s.getPropertyOptions(r),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?n.converter:io;this._$El=r,this[r]=a.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,o){let s=!0;t!==void 0&&(((o=o||this.constructor.getPropertyOptions(t)).hasChanged||Wi)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),o.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,o))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}_$Ej(){return ct(this,null,function*(){this.isUpdatePending=!0;try{yield this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,r)=>this[r]=s),this._$Ei=void 0);let e=!1;const o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var r;return(r=s.hostUpdate)===null||r===void 0?void 0:r.call(s)}),this.update(o)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(o)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(o=>{var s;return(s=o.hostUpdated)===null||s===void 0?void 0:s.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,o)=>this._$EO(o,this[o],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};Oe[so]=!0,Oe.elementProperties=new Map,Oe.elementStyles=[],Oe.shadowRootOptions={mode:"open"},ii==null||ii({ReactiveElement:Oe}),((Lt=yt.reactiveElementVersions)!==null&&Lt!==void 0?Lt:yt.reactiveElementVersions=[]).push("1.6.3");/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/var Rt;const vt=window,
|
|
21
|
+
*/var Rt;const vt=window,Fe=vt.trustedTypes,si=Fe?Fe.createPolicy("lit-html",{createHTML:i=>i}):void 0,ro="$lit$",_e=`lit$${(Math.random()+"").slice(9)}$`,qi="?"+_e,Sr=`<${qi}>`,Ae=document,Ge=()=>Ae.createComment(""),Je=i=>i===null||typeof i!="object"&&typeof i!="function",Ki=Array.isArray,Cr=i=>Ki(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Bt=`[
|
|
22
22
|
\f\r]`,He=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ri=/-->/g,ni=/>/g,xe=RegExp(`>|${Bt}(?:([^\\s"'>=/]+)(${Bt}*=${Bt}*(?:[^
|
|
23
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ai=/'/g,li=/"/g,Gi=/^(?:script|style|textarea|title)$/i,
|
|
23
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ai=/'/g,li=/"/g,Gi=/^(?:script|style|textarea|title)$/i,Le=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),ci=new WeakMap,we=Ae.createTreeWalker(Ae,129,null,!1);function Ji(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return si!==void 0?si.createHTML(t):t}const Ar=(i,t)=>{const e=i.length-1,o=[];let s,r=t===2?"<svg>":"",n=He;for(let a=0;a<e;a++){const l=i[a];let c,d,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,d=n.exec(l),d!==null);)p=n.lastIndex,n===He?d[1]==="!--"?n=ri:d[1]!==void 0?n=ni:d[2]!==void 0?(Gi.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=xe):d[3]!==void 0&&(n=xe):n===xe?d[0]===">"?(n=s!=null?s:He,h=-1):d[1]===void 0?h=-2:(h=n.lastIndex-d[2].length,c=d[1],n=d[3]===void 0?xe:d[3]==='"'?li:ai):n===li||n===ai?n=xe:n===ri||n===ni?n=He:(n=xe,s=void 0);const f=n===xe&&i[a+1].startsWith("/>")?" ":"";r+=n===He?l+Sr:h>=0?(o.push(c),l.slice(0,h)+ro+l.slice(h)+_e+f):l+_e+(h===-2?(o.push(void 0),a):f)}return[Ji(i,r+(i[e]||"<?>")+(t===2?"</svg>":"")),o]};class Xe{constructor({strings:t,_$litType$:e},o){let s;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[c,d]=Ar(t,e);if(this.el=Xe.createElement(c,o),we.currentNode=this.el.content,e===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(s=we.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const h=[];for(const p of s.getAttributeNames())if(p.endsWith(ro)||p.startsWith(_e)){const f=d[n++];if(h.push(p),f!==void 0){const y=s.getAttribute(f.toLowerCase()+ro).split(_e),A=/([.?@])?(.*)/.exec(f);l.push({type:1,index:r,name:A[2],strings:y,ctor:A[1]==="."?Pr:A[1]==="?"?Tr:A[1]==="@"?Mr:At})}else l.push({type:6,index:r})}for(const p of h)s.removeAttribute(p)}if(Gi.test(s.tagName)){const h=s.textContent.split(_e),p=h.length-1;if(p>0){s.textContent=Fe?Fe.emptyScript:"";for(let f=0;f<p;f++)s.append(h[f],Ge()),we.nextNode(),l.push({type:2,index:++r});s.append(h[p],Ge())}}}else if(s.nodeType===8)if(s.data===qi)l.push({type:2,index:r});else{let h=-1;for(;(h=s.data.indexOf(_e,h+1))!==-1;)l.push({type:7,index:r}),h+=_e.length-1}r++}}static createElement(t,e){const o=Ae.createElement("template");return o.innerHTML=t,o}}function $e(i,t,e=i,o){var s,r,n,a;if(t===Le)return t;let l=o!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[o]:e._$Cl;const c=Je(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),c===void 0?l=void 0:(l=new c(i),l._$AT(i,e,o)),o!==void 0?((n=(a=e)._$Co)!==null&&n!==void 0?n:a._$Co=[])[o]=l:e._$Cl=l),l!==void 0&&(t=$e(i,l._$AS(i,t.values),l,o)),t}class kr{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:o},parts:s}=this._$AD,r=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:Ae).importNode(o,!0);we.currentNode=r;let n=we.nextNode(),a=0,l=0,c=s[0];for(;c!==void 0;){if(a===c.index){let d;c.type===2?d=new nt(n,n.nextSibling,this,t):c.type===1?d=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(d=new Or(n,this,t)),this._$AV.push(d),c=s[++l]}a!==(c==null?void 0:c.index)&&(n=we.nextNode(),a++)}return we.currentNode=Ae,r}v(t){let e=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class nt{constructor(t,e,o,s){var r;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=s,this._$Cp=(r=s==null?void 0:s.isConnected)===null||r===void 0||r}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=$e(this,t,e),Je(t)?t===W||t==null||t===""?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==Le&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Cr(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==W&&Je(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ae.createTextNode(t)),this._$AH=t}g(t){var e;const{values:o,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Xe.createElement(Ji(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===r)this._$AH.v(o);else{const n=new kr(r,this),a=n.u(this.options);n.v(o),this.$(a),this._$AH=n}}_$AC(t){let e=ci.get(t.strings);return e===void 0&&ci.set(t.strings,e=new Xe(t)),e}T(t){Ki(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,s=0;for(const r of t)s===e.length?e.push(o=new nt(this.k(Ge()),this.k(Ge()),this,this.options)):o=e[s],o._$AI(r),s++;s<e.length&&(this._$AR(o&&o._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class At{constructor(t,e,o,s,r){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,o,s){const r=this.strings;let n=!1;if(r===void 0)t=$e(this,t,e,0),n=!Je(t)||t!==this._$AH&&t!==Le,n&&(this._$AH=t);else{const a=t;let l,c;for(t=r[0],l=0;l<r.length-1;l++)c=$e(this,a[o+l],e,l),c===Le&&(c=this._$AH[l]),n||(n=!Je(c)||c!==this._$AH[l]),c===W?t=W:t!==W&&(t+=(c!=null?c:"")+r[l+1]),this._$AH[l]=c}n&&!s&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class Pr extends At{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}}const Dr=Fe?Fe.emptyScript:"";class Tr extends At{constructor(){super(...arguments),this.type=4}j(t){t&&t!==W?this.element.setAttribute(this.name,Dr):this.element.removeAttribute(this.name)}}class Mr extends At{constructor(t,e,o,s,r){super(t,e,o,s,r),this.type=5}_$AI(t,e=this){var o;if((t=(o=$e(this,t,e,0))!==null&&o!==void 0?o:W)===Le)return;const s=this._$AH,r=t===W&&s!==W||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==W&&(s===W||r);r&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,o;typeof this._$AH=="function"?this._$AH.call((o=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&o!==void 0?o:this.element,t):this._$AH.handleEvent(t)}}class Or{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){$e(this,t)}}const ui=vt.litHtmlPolyfillSupport;ui==null||ui(Xe,nt),((Rt=vt.litHtmlVersions)!==null&&Rt!==void 0?Rt:vt.litHtmlVersions=[]).push("2.8.0");const Ir=(i,t,e)=>{var o,s;const r=(o=e==null?void 0:e.renderBefore)!==null&&o!==void 0?o:t;let n=r._$litPart$;if(n===void 0){const a=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;r._$litPart$=n=new nt(t.insertBefore(Ge(),a),a,void 0,e!=null?e:{})}return n._$AI(i),n};/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/var Ht,jt;class mt extends Oe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const o=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=o.firstChild),o}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ir(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return
|
|
27
|
+
*/var Ht,jt;class mt extends Oe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const o=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=o.firstChild),o}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ir(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return Le}}mt.finalized=!0,mt._$litElement$=!0,(Ht=globalThis.litElementHydrateSupport)===null||Ht===void 0||Ht.call(globalThis,{LitElement:mt});const di=globalThis.litElementPolyfillSupport;di==null||di({LitElement:mt});((jt=globalThis.litElementVersions)!==null&&jt!==void 0?jt:globalThis.litElementVersions=[]).push("3.3.3");/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
30
30
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
34
34
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
35
|
-
*/const Xi=[];function Zi(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Nr(i){return Zi(customElements.get(i))}function
|
|
35
|
+
*/const Xi=[];function Zi(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Nr(i){return Zi(customElements.get(i))}function Fr(i=[]){return[i].flat(1/0).filter(t=>t instanceof Po?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function L(i,t,e={}){i&&Nr(i)&&console.warn(`The custom element definition for "${i}"
|
|
36
36
|
was finalized before a style module was registered.
|
|
37
37
|
Make sure to add component specific style modules before
|
|
38
|
-
importing the corresponding custom element.`),t=
|
|
39
|
-
`),t.content.appendChild(e)}function Br(i){const t=`${i}-default-theme`,e=no().filter(o=>o.moduleId!==t&&
|
|
38
|
+
importing the corresponding custom element.`),t=Fr(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,t,e):Xi.push({themeFor:i,styles:t,include:e.include,moduleId:e.moduleId})}function no(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Xi}function Lr(i,t){return(i||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function $r(i=""){let t=0;return i.startsWith("lumo-")||i.startsWith("material-")?t=1:i.startsWith("vaadin-")&&(t=2),t}function Qi(i){const t=[];return i.include&&[].concat(i.include).forEach(e=>{const o=no().find(s=>s.moduleId===e);o?t.push(...Qi(o),...o.styles):console.warn(`Included moduleId ${e} not found in style registry`)},i.styles),t}function Rr(i,t){const e=document.createElement("style");e.innerHTML=i.map(o=>o.cssText).join(`
|
|
39
|
+
`),t.content.appendChild(e)}function Br(i){const t=`${i}-default-theme`,e=no().filter(o=>o.moduleId!==t&&Lr(o.themeFor,i)).map(o=>Nt(zt({},o),{styles:[...Qi(o),...o.styles],includePriority:$r(o.moduleId)})).sort((o,s)=>s.includePriority-o.includePriority);return e.length>0?e:no().filter(o=>o.moduleId===t)}const ke=i=>class extends zr(i){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;!e||Zi(this)||Rr(this.getStylesForThis(),e)}static finalizeStyles(e){const o=this.getStylesForThis();return e?[...super.finalizeStyles(e),...o]:o}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),o=(e?e.constructor.__themes:[])||[];this.__themes=[...o,...Br(this.is)];const s=this.__themes.flatMap(r=>r.styles);return s.filter((r,n)=>n===s.lastIndexOf(r))}};/**
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
42
42
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
background-color: var(--lumo-contrast-10pct);
|
|
246
246
|
border-radius: var(--lumo-border-radius-m);
|
|
247
247
|
}
|
|
248
|
-
`;
|
|
248
|
+
`;L("",jr,{moduleId:"lumo-color"});/**
|
|
249
249
|
* @license
|
|
250
250
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
251
251
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
border-left: none;
|
|
408
408
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
409
409
|
}
|
|
410
|
-
`;
|
|
410
|
+
`;L("",Wr,{moduleId:"lumo-typography"});kt("typography-props",Ur);L("vaadin-input-container",S`
|
|
411
411
|
:host {
|
|
412
412
|
background-color: var(--lumo-contrast-10pct);
|
|
413
413
|
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
@@ -688,7 +688,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
688
688
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
689
689
|
* Google as part of the polymer project is also subject to an additional IP
|
|
690
690
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
691
|
-
*/let tt=0;const ot=[],T={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},_s="__computeInfo",Mn=/[A-Z]/;function Yt(i,t,e){let o=i[t];if(!o)o=i[t]={};else if(!i.hasOwnProperty(t)&&(o=i[t]=Object.create(i[t]),e))for(let s in o){let r=o[s],n=o[s]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return o}function qe(i,t,e,o,s,r){if(t){let n=!1;const a=tt++;for(let l in e){let c=s?Pe(l):l,d=t[c];if(d)for(let h=0,p=d.length,f;h<p&&(f=d[h]);h++)(!f.info||f.info.lastRun!==a)&&(!s||Io(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(i,l,e,o,f.info,s,r),n=!0)}return n}return!1}function On(i,t,e,o,s,r,n,a){let l=!1,c=n?Pe(o):o,d=t[c];if(d)for(let h=0,p=d.length,f;h<p&&(f=d[h]);h++)(!f.info||f.info.lastRun!==e)&&(!n||Io(o,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(i,o,s,r,f.info,n,a),l=!0);return l}function Io(i,t){if(t){let e=t.name;return e==i||!!(t.structured&&as(e,i))||!!(t.wildcard&&Qe(e,i))}else return!0}function xi(i,t,e,o,s){let r=typeof s.method=="string"?i[s.method]:s.method,n=s.property;r?r.call(i,i.__data[n],o[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function In(i,t,e,o,s){let r=i[T.NOTIFY],n,a=tt++;for(let c in t)t[c]&&(r&&On(i,r,a,c,e,o,s)||s&&zn(i,c,e))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function zn(i,t,e){let o=Pe(t);if(o!==t){let s=Pt(o)+"-changed";return gs(i,s,e[t],t),!0}return!1}function gs(i,t,e,o){let s={value:e,queueProperty:!0};o&&(s.path=o),K(i).dispatchEvent(new CustomEvent(t,{detail:s}))}function Nn(i,t,e,o,s,r){let a=(r?Pe(t):t)!=t?t:null,l=a?ee(i,a):i.__data[t];a&&l===void 0&&(l=e[t]),gs(i,s.eventName,l,a)}function Ln(i,t,e,o,s){let r,n=i.detail,a=n&&n.path;a?(o=et(e,o,a),r=n&&n.value):r=i.currentTarget[e],r=s?!r:r,(!t[T.READ_ONLY]||!t[T.READ_ONLY][o])&&t._setPendingPropertyOrPath(o,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function Fn(i,t,e,o,s){let r=i.__data[t];bt&&(r=bt(r,s.attrName,"attribute",i)),i._propertyToAttribute(t,s.attrName,r)}function $n(i,t,e,o){let s=i[T.COMPUTE];if(s)if(Qr){tt++;const r=Bn(i),n=[];for(let l in t)wi(l,s,n,r,o);let a;for(;a=n.shift();)ys(i,"",t,e,a)&&wi(a.methodInfo,s,n,r,o);Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),i.__dataPending=null}else{let r=t;for(;qe(i,s,r,e,o);)Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),r=i.__dataPending,i.__dataPending=null}}const Rn=(i,t,e)=>{let o=0,s=t.length-1,r=-1;for(;o<=s;){const n=o+s>>1,a=e.get(t[n].methodInfo)-e.get(i.methodInfo);if(a<0)o=n+1;else if(a>0)s=n-1;else{r=n;break}}r<0&&(r=s+1),t.splice(r,0,i)},wi=(i,t,e,o,s)=>{const r=s?Pe(i):i,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==tt&&(!s||Io(i,l.trigger))&&(l.info.lastRun=tt,Rn(l.info,e,o))}};function Bn(i){let t=i.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=i[T.COMPUTE];let{counts:o,ready:s,total:r}=Hn(i),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const c=l.info.methodInfo;--r,--o[c]===0&&s.push(c)})}r!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=t}return t}function Hn(i){const t=i[_s],e={},o=i[T.COMPUTE],s=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in o)t[n]||s.push(n);return{counts:e,ready:s,total:r}}function ys(i,t,e,o,s){let r=uo(i,t,e,o,s);if(r===ot)return!1;let n=s.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,r,!0):(i[n]=r,!1)}function jn(i,t,e){let o=i.__dataLinkedPaths;if(o){let s;for(let r in o){let n=o[r];Qe(r,t)?(s=et(r,n,t),i._setPendingPropertyOrPath(s,e,!0,!0)):Qe(n,t)&&(s=et(n,r,t),i._setPendingPropertyOrPath(s,e,!0,!0))}}}function Vt(i,t,e,o,s,r,n){e.bindings=e.bindings||[];let a={kind:o,target:s,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),qn(a)){let{event:c,negate:d}=a.parts[0];a.listenerEvent=c||Pt(s)+"-changed",a.listenerNegate=d}let l=t.nodeInfoList.length;for(let c=0;c<a.parts.length;c++){let d=a.parts[c];d.compoundIndex=c,Yn(i,t,a,d,l)}}function Yn(i,t,e,o,s){if(!o.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let r=o.dependencies,n={index:s,binding:e,part:o,evaluator:i};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=bs(l),l.wildcard=!0),i._addTemplatePropertyEffect(t,l.rootProperty,{fn:Vn,info:n,trigger:l})}}}function Vn(i,t,e,o,s,r,n){let a=n[s.index],l=s.binding,c=s.part;if(r&&c.source&&t.length>c.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=e[t];t=et(c.source,l.target,t),a._setPendingPropertyOrPath(t,d,!1,!0)&&i._enqueueClient(a)}else{let d=s.evaluator._evaluateBinding(i,c,t,e,o,r);d!==ot&&Un(i,a,l,c,d)}}function Un(i,t,e,o,s){if(s=Wn(t,s,e,o),bt&&(s=bt(s,e.target,e.kind,t)),e.kind=="attribute")i._valueToNodeAttribute(t,s,e.target);else{let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[T.READ_ONLY]||!t[T.READ_ONLY][r])&&t._setPendingProperty(r,s)&&i._enqueueClient(t):i._setUnmanagedPropertyToNode(t,r,s)}}function Wn(i,t,e,o){if(e.isCompound){let s=i.__dataCompoundStorage[e.target];s[o.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(t=t==null?"":t),t}function qn(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Kn(i,t){let{nodeList:e,nodeInfoList:o}=t;if(o.length)for(let s=0;s<o.length;s++){let r=o[s],n=e[s],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let c=a[l];Gn(n,c),Jn(n,i,c)}n.__dataHost=i}}function Gn(i,t){if(t.isCompound){let e=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),o=t.parts,s=new Array(o.length);for(let n=0;n<o.length;n++)s[n]=o[n].literal;let r=t.target;e[r]=s,t.literal&&t.kind=="property"&&(r==="className"&&(i=K(i)),i[r]=t.literal)}}function Jn(i,t,e){if(e.listenerEvent){let o=e.parts[0];i.addEventListener(e.listenerEvent,function(s){Ln(s,t,e.target,o.source,o.negate)})}}function Ei(i,t,e,o,s,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||i._addPropertyEffect(l.rootProperty,e,{fn:o,info:n,trigger:l});return r&&i._addPropertyEffect(t.methodName,e,{fn:o,info:n}),n}function uo(i,t,e,o,s){let r=i._methodHost||i,n=r[s.methodName];if(n){let a=i._marshalArgs(s.args,t,e);return a===ot?ot:n.apply(r,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Xn=[],vs="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Zn="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Qn="(?:'(?:[^'\\\\]|\\\\.)*')",ea='(?:"(?:[^"\\\\]|\\\\.)*")',ta="(?:"+Qn+"|"+ea+")",Si="(?:("+vs+"|"+Zn+"|"+ta+")\\s*)",oa="(?:"+Si+"(?:,\\s*"+Si+")*)",ia="(?:\\(\\s*(?:"+oa+"?)\\)\\s*)",sa="("+vs+"\\s*"+ia+"?)",ra="(\\[\\[|{{)\\s*",na="(?:]]|}})",aa="(?:(!)\\s*)?",la=ra+aa+sa+na,Ci=new RegExp(la,"g");function Ai(i){let t="";for(let e=0;e<i.length;e++){let o=i[e].literal;t+=o||""}return t}function Ut(i){let t=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let o={methodName:t[1],static:!0,args:Xn};if(t[2].trim()){let s=t[2].replace(/\\,/g,",").split(",");return ca(s,o)}else return o}return null}function ca(i,t){return t.args=i.map(function(e){let o=bs(e);return o.literal||(t.static=!1),o},this),t}function bs(i){let t=i.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},o=t[0];switch(o==="-"&&(o=t[1]),o>="0"&&o<="9"&&(o="#"),o){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=Pe(t),e.structured=lo(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function ki(i,t,e){let o=ee(i,e);return o===void 0&&(o=t[e]),o}function xs(i,t,e,o){const s={indexSplices:o};ao&&!i._overrideLegacyUndefined&&(t.splices=s),i.notifyPath(e+".splices",s),i.notifyPath(e+".length",t.length),ao&&!i._overrideLegacyUndefined&&(s.indexSplices=[])}function je(i,t,e,o,s,r){xs(i,t,e,[{index:o,addedCount:s,removed:r,object:t,type:"splice"}])}function ua(i){return i[0].toUpperCase()+i.substring(1)}const zo=Y(i=>{const t=Tn(bn(i));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return T}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Ye.length){let s=Ye[Ye.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let r=this[T.READ_ONLY];for(let n in s)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,r,n){this._createPropertyAccessor(s,r==T.READ_ONLY);let a=Yt(this,r,!0)[s];a||(a=this[r][s]=[]),a.push(n)}_removePropertyEffect(s,r,n){let a=Yt(this,r,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,r){let n=this[r];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,T.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,T.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,T.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,T.COMPUTE)}_setPendingPropertyOrPath(s,r,n,a){if(a||Pe(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=ee(this,s);if(s=yi(this,s,r),!s||!super._shouldPropertyChange(s,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,r,n))return jn(this,s,r),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,r,n);this[s]=r}return!1}_setUnmanagedPropertyToNode(s,r,n){(n!==s[r]||typeof n=="object")&&(r==="className"&&(s=K(s)),s[r]=n)}_setPendingProperty(s,r,n){let a=this.__dataHasPaths&&lo(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,r,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=r:this.__data[s]=r,this.__dataPending[s]=r,(a||this[T.NOTIFY]&&this[T.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,r){this._setPendingProperty(s,r,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let r=0;r<s.length;r++){let n=s[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,r){for(let n in s)(r||!this[T.READ_ONLY]||!this[T.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;$n(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),qe(this,this[T.REFLECT],r,n,a),qe(this,this[T.OBSERVE],r,n,a),l&&In(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,r,n){this[T.PROPAGATE]&&qe(this,this[T.PROPAGATE],s,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,r,n)}_runEffectsForTemplate(s,r,n,a){const l=(c,d)=>{qe(this,s.propertyEffects,c,n,d,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,c,n,d)};s.runEffects?s.runEffects(l,r,a):l(r,a)}linkPaths(s,r){s=We(s),r=We(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=r}unlinkPaths(s){s=We(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,r){let n={path:""},a=ee(this,s,n);xs(this,a,n.path,r)}get(s,r){return ee(r||this,s)}set(s,r,n){n?yi(n,s,r):(!this[T.READ_ONLY]||!this[T.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,r,!0)&&this._invalidateProperties()}push(s,...r){let n={path:""},a=ee(this,s,n),l=a.length,c=a.push(...r);return r.length&&je(this,a,n.path,l,r.length,[]),c}pop(s){let r={path:""},n=ee(this,s,r),a=!!n.length,l=n.pop();return a&&je(this,n,r.path,n.length,0,[l]),l}splice(s,r,n,...a){let l={path:""},c=ee(this,s,l);r<0?r=c.length-Math.floor(-r):r&&(r=Math.floor(r));let d;return arguments.length===2?d=c.splice(r):d=c.splice(r,n,...a),(a.length||d.length)&&je(this,c,l.path,r,a.length,d),d}shift(s){let r={path:""},n=ee(this,s,r),a=!!n.length,l=n.shift();return a&&je(this,n,r.path,0,0,[l]),l}unshift(s,...r){let n={path:""},a=ee(this,s,n),l=a.unshift(...r);return r.length&&je(this,a,n.path,0,r.length,[]),l}notifyPath(s,r){let n;if(arguments.length==1){let a={path:""};r=ee(this,s,a),n=a.path}else Array.isArray(s)?n=We(s):n=s;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,r){this._addPropertyEffect(s,T.READ_ONLY),r&&(this["_set"+ua(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,r,n){let a={property:s,method:r,dynamicFn:!!n};this._addPropertyEffect(s,T.OBSERVE,{fn:xi,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(r,T.OBSERVE,{fn:xi,info:a,trigger:{name:r}})}_createMethodObserver(s,r){let n=Ut(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");Ei(this,n,T.OBSERVE,uo,null,r)}_createNotifyingProperty(s){this._addPropertyEffect(s,T.NOTIFY,{fn:Nn,info:{eventName:Pt(s)+"-changed",property:s}})}_createReflectedProperty(s){let r=this.constructor.attributeNameForProperty(s);r[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,T.REFLECT,{fn:Fn,info:{attrName:r}})}_createComputedProperty(s,r,n){let a=Ut(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=Ei(this,a,T.COMPUTE,ys,s,n);Yt(this,_s)[s]=l}_marshalArgs(s,r,n){const a=this.__data,l=[];for(let c=0,d=s.length;c<d;c++){let{name:h,structured:p,wildcard:f,value:y,literal:A}=s[c];if(!A)if(f){const z=Qe(h,r),M=ki(a,n,z?r:h);y={path:z?r:h,value:M,base:z?ee(a,h):M}}else y=p?ki(a,n,h):a[h];if(ao&&!this._overrideLegacyUndefined&&y===void 0&&s.length>1)return ot;l[c]=y}return l}static addPropertyEffect(s,r,n){this.prototype._addPropertyEffect(s,r,n)}static createPropertyObserver(s,r,n){this.prototype._createPropertyObserver(s,r,n)}static createMethodObserver(s,r){this.prototype._createMethodObserver(s,r)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,r){this.prototype._createReadOnlyProperty(s,r)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,r,n){this.prototype._createComputedProperty(s,r,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,r){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,c=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=c,c?c.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,r,n){let a=s.hostProps=s.hostProps||{};a[r]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[r]=l[r]||[]).push(n)}_stampTemplate(s,r){r=r||this._bindTemplate(s,!0),Ye.push(this);let n=super._stampTemplate(s,r);if(Ye.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=r,Kn(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const r=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let c=r.childNodes;for(let d=0;d<c.length;d++){let h=c[d];K(K(h).parentNode).removeChild(h)}}static _parseTemplateNode(s,r,n){let a=t._parseTemplateNode.call(this,s,r,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,r);l&&(s.textContent=Ai(l)||" ",Vt(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,r,n,a,l){let c=this._parseBindings(l,r);if(c){let d=a,h="property";Mn.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=Ai(c);return p&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(p+=" "+s.getAttribute(a)),s.setAttribute(a,p)),h=="attribute"&&d=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&d==="value"&&s.setAttribute(d,""),s.removeAttribute(d),h==="property"&&(a=cs(a)),Vt(this,r,n,h,a,c,p),!0}else return t._parseTemplateNodeAttribute.call(this,s,r,n,a,l)}static _parseTemplateNestedTemplate(s,r,n){let a=t._parseTemplateNestedTemplate.call(this,s,r,n);const l=s.parentNode,c=n.templateInfo,d=l.localName==="dom-if",h=l.localName==="dom-repeat";hi&&(d||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=c,n.noted=!0,a=!1);let p=c.hostProps;if(en&&d)p&&(r.hostProps=Object.assign(r.hostProps||{},p),hi||(n.parentInfo.noted=!0));else{let f="{";for(let y in p){let A=[{mode:f,source:y,dependencies:[y],hostProp:!0}];Vt(this,r,n,"property","_host_"+y,A)}}return a}static _parseBindings(s,r){let n=[],a=0,l;for(;(l=Ci.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let c=l[1][0],d=!!l[2],h=l[3].trim(),p=!1,f="",y=-1;c=="{"&&(y=h.indexOf("::"))>0&&(f=h.substring(y+2),h=h.substring(0,y),p=!0);let A=Ut(h),z=[];if(A){let{args:M,methodName:I}=A;for(let re=0;re<M.length;re++){let j=M[re];j.literal||z.push(j)}let V=r.dynamicFns;(V&&V[I]||A.static)&&(z.push(I),A.dynamicFn=!0)}else z.push(h);n.push({source:h,mode:c,negate:d,customEvent:p,signature:A,dependencies:z,event:f}),a=Ci.lastIndex}if(a&&a<s.length){let c=s.substring(a);c&&n.push({literal:c})}return n.length?n:null}static _evaluateBinding(s,r,n,a,l,c){let d;return r.signature?d=uo(s,n,a,l,r.signature):n!=r.source?d=ee(s,r.source):c&&lo(n)?d=ee(s,n):d=s.__data[n],r.negate&&(d=!d),d}}return e}),Ye=[];/**
|
|
691
|
+
*/let tt=0;const ot=[],T={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},_s="__computeInfo",Mn=/[A-Z]/;function Yt(i,t,e){let o=i[t];if(!o)o=i[t]={};else if(!i.hasOwnProperty(t)&&(o=i[t]=Object.create(i[t]),e))for(let s in o){let r=o[s],n=o[s]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return o}function qe(i,t,e,o,s,r){if(t){let n=!1;const a=tt++;for(let l in e){let c=s?Pe(l):l,d=t[c];if(d)for(let h=0,p=d.length,f;h<p&&(f=d[h]);h++)(!f.info||f.info.lastRun!==a)&&(!s||Io(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(i,l,e,o,f.info,s,r),n=!0)}return n}return!1}function On(i,t,e,o,s,r,n,a){let l=!1,c=n?Pe(o):o,d=t[c];if(d)for(let h=0,p=d.length,f;h<p&&(f=d[h]);h++)(!f.info||f.info.lastRun!==e)&&(!n||Io(o,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(i,o,s,r,f.info,n,a),l=!0);return l}function Io(i,t){if(t){let e=t.name;return e==i||!!(t.structured&&as(e,i))||!!(t.wildcard&&Qe(e,i))}else return!0}function xi(i,t,e,o,s){let r=typeof s.method=="string"?i[s.method]:s.method,n=s.property;r?r.call(i,i.__data[n],o[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function In(i,t,e,o,s){let r=i[T.NOTIFY],n,a=tt++;for(let c in t)t[c]&&(r&&On(i,r,a,c,e,o,s)||s&&zn(i,c,e))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function zn(i,t,e){let o=Pe(t);if(o!==t){let s=Pt(o)+"-changed";return gs(i,s,e[t],t),!0}return!1}function gs(i,t,e,o){let s={value:e,queueProperty:!0};o&&(s.path=o),K(i).dispatchEvent(new CustomEvent(t,{detail:s}))}function Nn(i,t,e,o,s,r){let a=(r?Pe(t):t)!=t?t:null,l=a?ee(i,a):i.__data[t];a&&l===void 0&&(l=e[t]),gs(i,s.eventName,l,a)}function Fn(i,t,e,o,s){let r,n=i.detail,a=n&&n.path;a?(o=et(e,o,a),r=n&&n.value):r=i.currentTarget[e],r=s?!r:r,(!t[T.READ_ONLY]||!t[T.READ_ONLY][o])&&t._setPendingPropertyOrPath(o,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function Ln(i,t,e,o,s){let r=i.__data[t];bt&&(r=bt(r,s.attrName,"attribute",i)),i._propertyToAttribute(t,s.attrName,r)}function $n(i,t,e,o){let s=i[T.COMPUTE];if(s)if(Qr){tt++;const r=Bn(i),n=[];for(let l in t)wi(l,s,n,r,o);let a;for(;a=n.shift();)ys(i,"",t,e,a)&&wi(a.methodInfo,s,n,r,o);Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),i.__dataPending=null}else{let r=t;for(;qe(i,s,r,e,o);)Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),r=i.__dataPending,i.__dataPending=null}}const Rn=(i,t,e)=>{let o=0,s=t.length-1,r=-1;for(;o<=s;){const n=o+s>>1,a=e.get(t[n].methodInfo)-e.get(i.methodInfo);if(a<0)o=n+1;else if(a>0)s=n-1;else{r=n;break}}r<0&&(r=s+1),t.splice(r,0,i)},wi=(i,t,e,o,s)=>{const r=s?Pe(i):i,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==tt&&(!s||Io(i,l.trigger))&&(l.info.lastRun=tt,Rn(l.info,e,o))}};function Bn(i){let t=i.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=i[T.COMPUTE];let{counts:o,ready:s,total:r}=Hn(i),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const c=l.info.methodInfo;--r,--o[c]===0&&s.push(c)})}r!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=t}return t}function Hn(i){const t=i[_s],e={},o=i[T.COMPUTE],s=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in o)t[n]||s.push(n);return{counts:e,ready:s,total:r}}function ys(i,t,e,o,s){let r=uo(i,t,e,o,s);if(r===ot)return!1;let n=s.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,r,!0):(i[n]=r,!1)}function jn(i,t,e){let o=i.__dataLinkedPaths;if(o){let s;for(let r in o){let n=o[r];Qe(r,t)?(s=et(r,n,t),i._setPendingPropertyOrPath(s,e,!0,!0)):Qe(n,t)&&(s=et(n,r,t),i._setPendingPropertyOrPath(s,e,!0,!0))}}}function Vt(i,t,e,o,s,r,n){e.bindings=e.bindings||[];let a={kind:o,target:s,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),qn(a)){let{event:c,negate:d}=a.parts[0];a.listenerEvent=c||Pt(s)+"-changed",a.listenerNegate=d}let l=t.nodeInfoList.length;for(let c=0;c<a.parts.length;c++){let d=a.parts[c];d.compoundIndex=c,Yn(i,t,a,d,l)}}function Yn(i,t,e,o,s){if(!o.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let r=o.dependencies,n={index:s,binding:e,part:o,evaluator:i};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=bs(l),l.wildcard=!0),i._addTemplatePropertyEffect(t,l.rootProperty,{fn:Vn,info:n,trigger:l})}}}function Vn(i,t,e,o,s,r,n){let a=n[s.index],l=s.binding,c=s.part;if(r&&c.source&&t.length>c.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=e[t];t=et(c.source,l.target,t),a._setPendingPropertyOrPath(t,d,!1,!0)&&i._enqueueClient(a)}else{let d=s.evaluator._evaluateBinding(i,c,t,e,o,r);d!==ot&&Un(i,a,l,c,d)}}function Un(i,t,e,o,s){if(s=Wn(t,s,e,o),bt&&(s=bt(s,e.target,e.kind,t)),e.kind=="attribute")i._valueToNodeAttribute(t,s,e.target);else{let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[T.READ_ONLY]||!t[T.READ_ONLY][r])&&t._setPendingProperty(r,s)&&i._enqueueClient(t):i._setUnmanagedPropertyToNode(t,r,s)}}function Wn(i,t,e,o){if(e.isCompound){let s=i.__dataCompoundStorage[e.target];s[o.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(t=t==null?"":t),t}function qn(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Kn(i,t){let{nodeList:e,nodeInfoList:o}=t;if(o.length)for(let s=0;s<o.length;s++){let r=o[s],n=e[s],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let c=a[l];Gn(n,c),Jn(n,i,c)}n.__dataHost=i}}function Gn(i,t){if(t.isCompound){let e=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),o=t.parts,s=new Array(o.length);for(let n=0;n<o.length;n++)s[n]=o[n].literal;let r=t.target;e[r]=s,t.literal&&t.kind=="property"&&(r==="className"&&(i=K(i)),i[r]=t.literal)}}function Jn(i,t,e){if(e.listenerEvent){let o=e.parts[0];i.addEventListener(e.listenerEvent,function(s){Fn(s,t,e.target,o.source,o.negate)})}}function Ei(i,t,e,o,s,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||i._addPropertyEffect(l.rootProperty,e,{fn:o,info:n,trigger:l});return r&&i._addPropertyEffect(t.methodName,e,{fn:o,info:n}),n}function uo(i,t,e,o,s){let r=i._methodHost||i,n=r[s.methodName];if(n){let a=i._marshalArgs(s.args,t,e);return a===ot?ot:n.apply(r,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Xn=[],vs="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Zn="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Qn="(?:'(?:[^'\\\\]|\\\\.)*')",ea='(?:"(?:[^"\\\\]|\\\\.)*")',ta="(?:"+Qn+"|"+ea+")",Si="(?:("+vs+"|"+Zn+"|"+ta+")\\s*)",oa="(?:"+Si+"(?:,\\s*"+Si+")*)",ia="(?:\\(\\s*(?:"+oa+"?)\\)\\s*)",sa="("+vs+"\\s*"+ia+"?)",ra="(\\[\\[|{{)\\s*",na="(?:]]|}})",aa="(?:(!)\\s*)?",la=ra+aa+sa+na,Ci=new RegExp(la,"g");function Ai(i){let t="";for(let e=0;e<i.length;e++){let o=i[e].literal;t+=o||""}return t}function Ut(i){let t=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let o={methodName:t[1],static:!0,args:Xn};if(t[2].trim()){let s=t[2].replace(/\\,/g,",").split(",");return ca(s,o)}else return o}return null}function ca(i,t){return t.args=i.map(function(e){let o=bs(e);return o.literal||(t.static=!1),o},this),t}function bs(i){let t=i.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},o=t[0];switch(o==="-"&&(o=t[1]),o>="0"&&o<="9"&&(o="#"),o){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=Pe(t),e.structured=lo(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function ki(i,t,e){let o=ee(i,e);return o===void 0&&(o=t[e]),o}function xs(i,t,e,o){const s={indexSplices:o};ao&&!i._overrideLegacyUndefined&&(t.splices=s),i.notifyPath(e+".splices",s),i.notifyPath(e+".length",t.length),ao&&!i._overrideLegacyUndefined&&(s.indexSplices=[])}function je(i,t,e,o,s,r){xs(i,t,e,[{index:o,addedCount:s,removed:r,object:t,type:"splice"}])}function ua(i){return i[0].toUpperCase()+i.substring(1)}const zo=Y(i=>{const t=Tn(bn(i));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return T}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Ye.length){let s=Ye[Ye.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let r=this[T.READ_ONLY];for(let n in s)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,r,n){this._createPropertyAccessor(s,r==T.READ_ONLY);let a=Yt(this,r,!0)[s];a||(a=this[r][s]=[]),a.push(n)}_removePropertyEffect(s,r,n){let a=Yt(this,r,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,r){let n=this[r];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,T.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,T.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,T.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,T.COMPUTE)}_setPendingPropertyOrPath(s,r,n,a){if(a||Pe(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=ee(this,s);if(s=yi(this,s,r),!s||!super._shouldPropertyChange(s,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,r,n))return jn(this,s,r),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,r,n);this[s]=r}return!1}_setUnmanagedPropertyToNode(s,r,n){(n!==s[r]||typeof n=="object")&&(r==="className"&&(s=K(s)),s[r]=n)}_setPendingProperty(s,r,n){let a=this.__dataHasPaths&&lo(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,r,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=r:this.__data[s]=r,this.__dataPending[s]=r,(a||this[T.NOTIFY]&&this[T.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,r){this._setPendingProperty(s,r,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let r=0;r<s.length;r++){let n=s[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,r){for(let n in s)(r||!this[T.READ_ONLY]||!this[T.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;$n(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),qe(this,this[T.REFLECT],r,n,a),qe(this,this[T.OBSERVE],r,n,a),l&&In(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,r,n){this[T.PROPAGATE]&&qe(this,this[T.PROPAGATE],s,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,r,n)}_runEffectsForTemplate(s,r,n,a){const l=(c,d)=>{qe(this,s.propertyEffects,c,n,d,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,c,n,d)};s.runEffects?s.runEffects(l,r,a):l(r,a)}linkPaths(s,r){s=We(s),r=We(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=r}unlinkPaths(s){s=We(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,r){let n={path:""},a=ee(this,s,n);xs(this,a,n.path,r)}get(s,r){return ee(r||this,s)}set(s,r,n){n?yi(n,s,r):(!this[T.READ_ONLY]||!this[T.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,r,!0)&&this._invalidateProperties()}push(s,...r){let n={path:""},a=ee(this,s,n),l=a.length,c=a.push(...r);return r.length&&je(this,a,n.path,l,r.length,[]),c}pop(s){let r={path:""},n=ee(this,s,r),a=!!n.length,l=n.pop();return a&&je(this,n,r.path,n.length,0,[l]),l}splice(s,r,n,...a){let l={path:""},c=ee(this,s,l);r<0?r=c.length-Math.floor(-r):r&&(r=Math.floor(r));let d;return arguments.length===2?d=c.splice(r):d=c.splice(r,n,...a),(a.length||d.length)&&je(this,c,l.path,r,a.length,d),d}shift(s){let r={path:""},n=ee(this,s,r),a=!!n.length,l=n.shift();return a&&je(this,n,r.path,0,0,[l]),l}unshift(s,...r){let n={path:""},a=ee(this,s,n),l=a.unshift(...r);return r.length&&je(this,a,n.path,0,r.length,[]),l}notifyPath(s,r){let n;if(arguments.length==1){let a={path:""};r=ee(this,s,a),n=a.path}else Array.isArray(s)?n=We(s):n=s;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,r){this._addPropertyEffect(s,T.READ_ONLY),r&&(this["_set"+ua(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,r,n){let a={property:s,method:r,dynamicFn:!!n};this._addPropertyEffect(s,T.OBSERVE,{fn:xi,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(r,T.OBSERVE,{fn:xi,info:a,trigger:{name:r}})}_createMethodObserver(s,r){let n=Ut(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");Ei(this,n,T.OBSERVE,uo,null,r)}_createNotifyingProperty(s){this._addPropertyEffect(s,T.NOTIFY,{fn:Nn,info:{eventName:Pt(s)+"-changed",property:s}})}_createReflectedProperty(s){let r=this.constructor.attributeNameForProperty(s);r[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,T.REFLECT,{fn:Ln,info:{attrName:r}})}_createComputedProperty(s,r,n){let a=Ut(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=Ei(this,a,T.COMPUTE,ys,s,n);Yt(this,_s)[s]=l}_marshalArgs(s,r,n){const a=this.__data,l=[];for(let c=0,d=s.length;c<d;c++){let{name:h,structured:p,wildcard:f,value:y,literal:A}=s[c];if(!A)if(f){const z=Qe(h,r),M=ki(a,n,z?r:h);y={path:z?r:h,value:M,base:z?ee(a,h):M}}else y=p?ki(a,n,h):a[h];if(ao&&!this._overrideLegacyUndefined&&y===void 0&&s.length>1)return ot;l[c]=y}return l}static addPropertyEffect(s,r,n){this.prototype._addPropertyEffect(s,r,n)}static createPropertyObserver(s,r,n){this.prototype._createPropertyObserver(s,r,n)}static createMethodObserver(s,r){this.prototype._createMethodObserver(s,r)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,r){this.prototype._createReadOnlyProperty(s,r)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,r,n){this.prototype._createComputedProperty(s,r,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,r){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,c=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=c,c?c.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,r,n){let a=s.hostProps=s.hostProps||{};a[r]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[r]=l[r]||[]).push(n)}_stampTemplate(s,r){r=r||this._bindTemplate(s,!0),Ye.push(this);let n=super._stampTemplate(s,r);if(Ye.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=r,Kn(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const r=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let c=r.childNodes;for(let d=0;d<c.length;d++){let h=c[d];K(K(h).parentNode).removeChild(h)}}static _parseTemplateNode(s,r,n){let a=t._parseTemplateNode.call(this,s,r,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,r);l&&(s.textContent=Ai(l)||" ",Vt(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,r,n,a,l){let c=this._parseBindings(l,r);if(c){let d=a,h="property";Mn.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=Ai(c);return p&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(p+=" "+s.getAttribute(a)),s.setAttribute(a,p)),h=="attribute"&&d=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&d==="value"&&s.setAttribute(d,""),s.removeAttribute(d),h==="property"&&(a=cs(a)),Vt(this,r,n,h,a,c,p),!0}else return t._parseTemplateNodeAttribute.call(this,s,r,n,a,l)}static _parseTemplateNestedTemplate(s,r,n){let a=t._parseTemplateNestedTemplate.call(this,s,r,n);const l=s.parentNode,c=n.templateInfo,d=l.localName==="dom-if",h=l.localName==="dom-repeat";hi&&(d||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=c,n.noted=!0,a=!1);let p=c.hostProps;if(en&&d)p&&(r.hostProps=Object.assign(r.hostProps||{},p),hi||(n.parentInfo.noted=!0));else{let f="{";for(let y in p){let A=[{mode:f,source:y,dependencies:[y],hostProp:!0}];Vt(this,r,n,"property","_host_"+y,A)}}return a}static _parseBindings(s,r){let n=[],a=0,l;for(;(l=Ci.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let c=l[1][0],d=!!l[2],h=l[3].trim(),p=!1,f="",y=-1;c=="{"&&(y=h.indexOf("::"))>0&&(f=h.substring(y+2),h=h.substring(0,y),p=!0);let A=Ut(h),z=[];if(A){let{args:M,methodName:I}=A;for(let re=0;re<M.length;re++){let j=M[re];j.literal||z.push(j)}let V=r.dynamicFns;(V&&V[I]||A.static)&&(z.push(I),A.dynamicFn=!0)}else z.push(h);n.push({source:h,mode:c,negate:d,customEvent:p,signature:A,dependencies:z,event:f}),a=Ci.lastIndex}if(a&&a<s.length){let c=s.substring(a);c&&n.push({literal:c})}return n.length?n:null}static _evaluateBinding(s,r,n,a,l,c){let d;return r.signature?d=uo(s,n,a,l,r.signature):n!=r.source?d=ee(s,r.source):c&&lo(n)?d=ee(s,n):d=s.__data[n],r.negate&&(d=!d),d}}return e}),Ye=[];/**
|
|
692
692
|
@license
|
|
693
693
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
694
694
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1089,7 +1089,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1089
1089
|
background-color: var(--lumo-contrast-10pct);
|
|
1090
1090
|
border-radius: var(--lumo-border-radius-m);
|
|
1091
1091
|
}
|
|
1092
|
-
`;
|
|
1092
|
+
`;L("",Sa,{moduleId:"lumo-color"});/**
|
|
1093
1093
|
* @license
|
|
1094
1094
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1095
1095
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -1205,7 +1205,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1205
1205
|
border-left: none;
|
|
1206
1206
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
1207
1207
|
}
|
|
1208
|
-
`;
|
|
1208
|
+
`;L("",Aa,{moduleId:"lumo-typography"});Re("typography-props",Ca);/**
|
|
1209
1209
|
* @license
|
|
1210
1210
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1211
1211
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -1272,7 +1272,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1272
1272
|
opacity: 1;
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
|
-
`;
|
|
1275
|
+
`;L("",Cs,{moduleId:"lumo-overlay"});/**
|
|
1276
1276
|
* @license
|
|
1277
1277
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1278
1278
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -1306,7 +1306,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1306
1306
|
opacity: 0;
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
|
-
`;
|
|
1309
|
+
`;L("",As,{moduleId:"lumo-menu-overlay-core"});const ka=S`
|
|
1310
1310
|
/* Small viewport (bottom sheet) styles */
|
|
1311
1311
|
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
1312
1312
|
@media (max-width: 420px), (max-height: 420px) {
|
|
@@ -1368,7 +1368,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1368
1368
|
transform: translateY(150%);
|
|
1369
1369
|
}
|
|
1370
1370
|
}
|
|
1371
|
-
`,ks=[Cs,As,ka];
|
|
1371
|
+
`,ks=[Cs,As,ka];L("",ks,{moduleId:"lumo-menu-overlay"});const Pa=S`
|
|
1372
1372
|
[part='overlay'] {
|
|
1373
1373
|
/*
|
|
1374
1374
|
Width:
|
|
@@ -1416,7 +1416,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1416
1416
|
max-height: 70vh;
|
|
1417
1417
|
}
|
|
1418
1418
|
}
|
|
1419
|
-
`;
|
|
1419
|
+
`;L("vaadin-date-picker-overlay",[ks,Pa],{moduleId:"lumo-date-picker-overlay"});/**
|
|
1420
1420
|
* @license
|
|
1421
1421
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1422
1422
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -1624,7 +1624,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1624
1624
|
background-color: var(--lumo-contrast-10pct);
|
|
1625
1625
|
border-radius: var(--lumo-border-radius-m);
|
|
1626
1626
|
}
|
|
1627
|
-
`;
|
|
1627
|
+
`;L("",Ma,{moduleId:"lumo-color"});/**
|
|
1628
1628
|
* @license
|
|
1629
1629
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
1630
1630
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -1721,7 +1721,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1721
1721
|
--lumo-line-height-s: 1.375;
|
|
1722
1722
|
--lumo-line-height-m: 1.625;
|
|
1723
1723
|
}
|
|
1724
|
-
`,
|
|
1724
|
+
`,Fa=S`
|
|
1725
1725
|
body,
|
|
1726
1726
|
:host {
|
|
1727
1727
|
font-family: var(--lumo-font-family);
|
|
@@ -1813,7 +1813,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1813
1813
|
border-left: none;
|
|
1814
1814
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
1815
1815
|
}
|
|
1816
|
-
`;
|
|
1816
|
+
`;L("",Fa,{moduleId:"lumo-typography"});at("typography-props",Na);const La=S`
|
|
1817
1817
|
:host {
|
|
1818
1818
|
/* Sizing */
|
|
1819
1819
|
--lumo-button-size: var(--lumo-size-m);
|
|
@@ -2062,7 +2062,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2062
2062
|
margin-left: 0;
|
|
2063
2063
|
margin-right: 0;
|
|
2064
2064
|
}
|
|
2065
|
-
`;
|
|
2065
|
+
`;L("vaadin-button",La,{moduleId:"lumo-button"});/**
|
|
2066
2066
|
* @license
|
|
2067
2067
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2068
2068
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -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 il=!1,sl=i=>i,
|
|
2194
|
+
*/const il=!1,sl=i=>i,Fo=typeof document.head.style.touchAction=="string",go="__polymerGestures",qt="__polymerGesturesHandled",yo="__polymerGesturesTouchAction",Ii=25,zi=5,rl=2,nl=["mousedown","mousemove","mouseup","click"],al=[0,1,4,2],ll=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function Lo(i){return nl.indexOf(i)>-1}let zs=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){zs=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();function cl(i){if(!(Lo(i)||i==="touchend")&&Fo&&zs&&il)return{passive:!0}}const ul=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),dl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ce(i){const t=i.type;if(!Lo(t))return!1;if(t==="mousemove"){let o=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!ll&&(o=al[i.which]||0),!!(o&1)}return(i.button===void 0?0:i.button)===0}function hl(i){if(i.type==="click"){if(i.detail===0)return!0;const t=ge(i);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),o=i.pageX,s=i.pageY;return!(o>=e.left&&o<=e.right&&s>=e.top&&s<=e.bottom)}return!1}const fe={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function pl(i){let t="auto";const e=Fs(i);for(let o=0,s;o<e.length;o++)if(s=e[o],s[yo]){t=s[yo];break}return t}function Ns(i,t,e){i.movefn=t,i.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function Ne(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const Fs=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],$o={},Se=[];function fl(i,t){let e=document.elementFromPoint(i,t),o=e;for(;o&&o.shadowRoot&&!window.ShadyDOM;){const s=o;if(o=o.shadowRoot.elementFromPoint(i,t),s===o)break;o&&(e=o)}return e}function ge(i){const t=Fs(i);return t.length>0?t[0]:i.target}function ml(i){const t=i.type,o=i.currentTarget[go];if(!o)return;const s=o[t];if(!s)return;if(!i[qt]&&(i[qt]={},t.startsWith("touch"))){const n=i.changedTouches[0];if(t==="touchstart"&&i.touches.length===1&&(fe.touch.id=n.identifier),fe.touch.id!==n.identifier)return;Fo||(t==="touchstart"||t==="touchmove")&&_l(i)}const r=i[qt];if(!r.skip){for(let n=0,a;n<Se.length;n++)a=Se[n],s[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(i.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<Se.length;n++)a=Se[n],s[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](i))}}function _l(i){const t=i.changedTouches[0],e=i.type;if(e==="touchstart")fe.touch.x=t.clientX,fe.touch.y=t.clientY,fe.touch.scrollDecided=!1;else if(e==="touchmove"){if(fe.touch.scrollDecided)return;fe.touch.scrollDecided=!0;const o=pl(i);let s=!1;const r=Math.abs(fe.touch.x-t.clientX),n=Math.abs(fe.touch.y-t.clientY);i.cancelable&&(o==="none"?s=!0:o==="pan-x"?s=n>r:o==="pan-y"&&(s=r>n)),s?i.preventDefault():St("track")}}function ue(i,t,e){return $o[t]?(gl(i,t,e),!0):!1}function gl(i,t,e){const o=$o[t],s=o.deps,r=o.name;let n=i[go];n||(i[go]=n={});for(let a=0,l,c;a<s.length;a++)l=s[a],!(ul&&Lo(l)&&l!=="click")&&(c=n[l],c||(n[l]=c={_count:0}),c._count===0&&i.addEventListener(l,ml,cl(l)),c[r]=(c[r]||0)+1,c._count=(c._count||0)+1);i.addEventListener(t,e),o.touchAction&&Ls(i,o.touchAction)}function Ro(i){Se.push(i),i.emits.forEach(t=>{$o[t]=i})}function yl(i){for(let t=0,e;t<Se.length;t++){e=Se[t];for(let o=0,s;o<e.emits.length;o++)if(s=e.emits[o],s===i)return e}return null}function Ls(i,t){Fo&&i instanceof HTMLElement&&Ka.run(()=>{i.style.touchAction=t}),i[yo]=t}function Bo(i,t,e){const o=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(o.detail=e,sl(i).dispatchEvent(o),o.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault()}}function St(i){const t=yl(i);t.info&&(t.info.prevent=!0)}Ro({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Ne(this.info)},mousedown(i){if(!Ce(i))return;const t=ge(i),e=this,o=r=>{Ce(r)||(Ve("up",t,r),Ne(e.info))},s=r=>{Ce(r)&&Ve("up",t,r),Ne(e.info)};Ns(this.info,o,s),Ve("down",t,i)},touchstart(i){Ve("down",ge(i),i.changedTouches[0],i)},touchend(i){Ve("up",ge(i),i.changedTouches[0],i)}});function Ve(i,t,e,o){t&&Bo(t,i,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:o,prevent(s){return St(s)}})}Ro({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(i){this.moves.length>rl&&this.moves.shift(),this.moves.push(i)},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,Ne(this.info)},mousedown(i){if(!Ce(i))return;const t=ge(i),e=this,o=r=>{const n=r.clientX,a=r.clientY;Ni(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&St("tap"),e.info.addMove({x:n,y:a}),Ce(r)||(e.info.state="end",Ne(e.info)),t&&Kt(e.info,t,r),e.info.started=!0)},s=r=>{e.info.started&&o(r),Ne(e.info)};Ns(this.info,o,s),this.info.x=i.clientX,this.info.y=i.clientY},touchstart(i){const t=i.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(i){const t=ge(i),e=i.changedTouches[0],o=e.clientX,s=e.clientY;Ni(this.info,o,s)&&(this.info.state==="start"&&St("tap"),this.info.addMove({x:o,y:s}),Kt(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(i){const t=ge(i),e=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Kt(this.info,t,e))}});function Ni(i,t,e){if(i.prevent)return!1;if(i.started)return!0;const o=Math.abs(i.x-t),s=Math.abs(i.y-e);return o>=zi||s>=zi}function Kt(i,t,e){if(!t)return;const o=i.moves[i.moves.length-2],s=i.moves[i.moves.length-1],r=s.x-i.x,n=s.y-i.y;let a,l=0;o&&(a=s.x-o.x,l=s.y-o.y),Bo(t,"track",{state:i.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return fl(e.clientX,e.clientY)}})}Ro({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(i){Ce(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){Ce(i)&&Fi(this.info,i)},touchstart(i){const t=i.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(i){Fi(this.info,i.changedTouches[0],i)}});function Fi(i,t,e){const o=Math.abs(t.clientX-i.x),s=Math.abs(t.clientY-i.y),r=ge(e||t);!r||dl[r.localName]&&r.hasAttribute("disabled")||(isNaN(o)||isNaN(s)||o<=Ii&&s<=Ii||hl(t))&&(i.prevent||Bo(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/
|
|
@@ -2223,7 +2223,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2223
2223
|
* @license
|
|
2224
2224
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2225
2225
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2226
|
-
*/
|
|
2226
|
+
*/L("vaadin-button",tl,{moduleId:"vaadin-button-styles"});class Dl extends Pl(Ts(ke(Be(ye)))){static get is(){return"vaadin-button"}static get template(){return ol(De)}ready(){super.ready(),this._tooltipController=new Is(this),this.addController(this._tooltipController)}}se(Dl);L("vaadin-date-picker-year",S`
|
|
2227
2227
|
:host([current]) [part='year-number'] {
|
|
2228
2228
|
color: var(--lumo-primary-text-color);
|
|
2229
2229
|
}
|
|
@@ -2247,7 +2247,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2247
2247
|
color: var(--lumo-disabled-text-color);
|
|
2248
2248
|
content: '\\2022';
|
|
2249
2249
|
}
|
|
2250
|
-
`,{moduleId:"lumo-date-picker-year"});
|
|
2250
|
+
`,{moduleId:"lumo-date-picker-year"});L("vaadin-date-picker-overlay-content",S`
|
|
2251
2251
|
:host {
|
|
2252
2252
|
position: relative;
|
|
2253
2253
|
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
@@ -2397,7 +2397,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2397
2397
|
padding-left: 50px;
|
|
2398
2398
|
}
|
|
2399
2399
|
}
|
|
2400
|
-
`,{moduleId:"lumo-date-picker-overlay-content"});
|
|
2400
|
+
`,{moduleId:"lumo-date-picker-overlay-content"});L("vaadin-month-calendar",S`
|
|
2401
2401
|
:host {
|
|
2402
2402
|
-moz-user-select: none;
|
|
2403
2403
|
-webkit-user-select: none;
|
|
@@ -2633,7 +2633,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2633
2633
|
font-family: 'lumo-icons';
|
|
2634
2634
|
display: block;
|
|
2635
2635
|
}
|
|
2636
|
-
`;
|
|
2636
|
+
`;L("",js,{moduleId:"lumo-field-button"});/**
|
|
2637
2637
|
* @license
|
|
2638
2638
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2639
2639
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2788,7 +2788,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2788
2788
|
margin-left: 0;
|
|
2789
2789
|
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
2790
2790
|
}
|
|
2791
|
-
`;
|
|
2791
|
+
`;L("",Ys,{moduleId:"lumo-required-field"});/**
|
|
2792
2792
|
* @license
|
|
2793
2793
|
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
|
2794
2794
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2926,7 +2926,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2926
2926
|
[part='clear-button']::before {
|
|
2927
2927
|
content: var(--lumo-icons-cross);
|
|
2928
2928
|
}
|
|
2929
|
-
`,Vs=[Ys,js,Ml,Ol];
|
|
2929
|
+
`,Vs=[Ys,js,Ml,Ol];L("",Vs,{moduleId:"lumo-input-field-shared-styles"});const Il=S`
|
|
2930
2930
|
:host {
|
|
2931
2931
|
outline: none;
|
|
2932
2932
|
}
|
|
@@ -2952,7 +2952,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2952
2952
|
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
|
|
2953
2953
|
--_lumo-text-field-overflow-mask-image: none;
|
|
2954
2954
|
}
|
|
2955
|
-
`;
|
|
2955
|
+
`;L("vaadin-date-picker",[Vs,Il],{moduleId:"lumo-date-picker"});/**
|
|
2956
2956
|
@license
|
|
2957
2957
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2958
2958
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2960,7 +2960,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2960
2960
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2961
2961
|
Code distributed by Google as part of the polymer project is also
|
|
2962
2962
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2963
|
-
*/let xo=!1,zl=[],Us=[];function Nl(){xo=!0,requestAnimationFrame(function(){xo=!1,
|
|
2963
|
+
*/let xo=!1,zl=[],Us=[];function Nl(){xo=!0,requestAnimationFrame(function(){xo=!1,Fl(zl),setTimeout(function(){Ll(Us)})})}function Fl(i){for(;i.length;)Ws(i.shift())}function Ll(i){for(let t=0,e=i.length;t<e;t++)Ws(i.shift())}function Ws(i){const t=i[0],e=i[1],o=i[2];try{e.apply(t,o)}catch(s){setTimeout(()=>{throw s})}}function qs(i,t,e){xo||Nl(),Us.push([i,t,e])}/**
|
|
2964
2964
|
* @license
|
|
2965
2965
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2966
2966
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2968,7 +2968,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2968
2968
|
* @license
|
|
2969
2969
|
* Copyright (c) 2017 Anton Korzunov
|
|
2970
2970
|
* SPDX-License-Identifier: MIT
|
|
2971
|
-
*/let Me=new WeakMap,ht=new WeakMap,pt={},Gt=0;const
|
|
2971
|
+
*/let Me=new WeakMap,ht=new WeakMap,pt={},Gt=0;const Li=i=>i&&i.nodeType===Node.ELEMENT_NODE,Jt=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},Yl=(i,t)=>Li(i)?t.map(e=>{if(!Li(e))return Jt(e,"is not a valid element"),null;let o=e;for(;o&&o!==i;){if(i.contains(o))return e;o=o.getRootNode().host}return Jt(e,"is not contained inside",i),null}).filter(e=>!!e):(Jt(i,"is not a valid element"),[]),Vl=(i,t,e,o)=>{const s=Yl(t,Array.isArray(i)?i:[i]);pt[e]||(pt[e]=new WeakMap);const r=pt[e],n=[],a=new Set,l=new Set(s),c=h=>{if(!h||a.has(h))return;a.add(h);const p=h.assignedSlot;p&&c(p),c(h.parentNode||h.host)};s.forEach(c);const d=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(y=>{if(!["template","script","style"].includes(y.localName))if(a.has(y))d(y);else{const A=y.getAttribute(o),z=A!==null&&A!=="false",M=(Me.get(y)||0)+1,I=(r.get(y)||0)+1;Me.set(y,M),r.set(y,I),n.push(y),M===1&&z&&ht.set(y,!0),I===1&&y.setAttribute(e,"true"),z||y.setAttribute(o,"true")}})};return d(t),a.clear(),Gt+=1,()=>{n.forEach(h=>{const p=Me.get(h)-1,f=r.get(h)-1;Me.set(h,p),r.set(h,f),p||(ht.has(h)?ht.delete(h):h.removeAttribute(o)),f||h.removeAttribute(e)}),Gt-=1,Gt||(Me=new WeakMap,Me=new WeakMap,ht=new WeakMap,pt={})}},Gs=(i,t=document.body,e="data-aria-hidden")=>{const o=Array.from(Array.isArray(i)?i:[i]);return t&&o.push(...Array.from(t.querySelectorAll("[aria-live]"))),Vl(o,t,e,"aria-hidden")};/**
|
|
2972
2972
|
* @license
|
|
2973
2973
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
2974
2974
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3081,7 +3081,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3081
3081
|
* @license
|
|
3082
3082
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3083
3083
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3084
|
-
*/
|
|
3084
|
+
*/L("vaadin-date-picker-overlay",[Ql,ec],{moduleId:"vaadin-date-picker-overlay-styles"});class tc extends Zl(Xl(Dt(ke(ye)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return De`
|
|
3085
3085
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
3086
3086
|
<div part="overlay" id="overlay">
|
|
3087
3087
|
<div part="content" id="content">
|
|
@@ -3329,7 +3329,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3329
3329
|
* @license
|
|
3330
3330
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3331
3331
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3332
|
-
*/
|
|
3332
|
+
*/L("vaadin-month-calendar",Ac,{moduleId:"vaadin-month-calendar-styles"});class kc extends Cc(ke(ye)){static get template(){return De`
|
|
3333
3333
|
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
3334
3334
|
<table
|
|
3335
3335
|
id="monthGrid"
|
|
@@ -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 Pc=i=>class extends i{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(){Fs(this.$.scrollers,"pan-y"),ue(this.$.scrollers,"track",this._track.bind(this)),ue(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),ue(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),ue(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new rr(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ee(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onTodayButtonKeyDown(o)),ue(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ee(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onCancelButtonKeyDown(o)),ue(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,o){const s=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+s,o),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ee(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",o=>{this.__onMonthCalendarKeyDown(o)}),e.addEventListener("init-done",()=>{const o=[...this.querySelectorAll("vaadin-month-calendar")];o.forEach(s=>{s.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=o}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ee(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),ue(e,"tap",o=>{this._onYearTap(o)}),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,o){e&&(e.textContent=o&&o.cancel)}__updateTodayButton(e,o,s,r){e&&(e.textContent=o&&o.today,e.disabled=!this._isTodayAllowed(s,r))}__updateCalendars(e,o,s,r,n,a,l,c,d){e&&e.length&&e.forEach(h=>{h.i18n=o,h.minDate=s,h.maxDate=r,h.focusedDate=a,h.selectedDate=n,h.showWeekNumbers=l,h.ignoreTaps=c,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(e,o,s){e&&e.length&&e.forEach(r=>{r.selectedDate=o,s?r.setAttribute("theme",s):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,o=!0){if(!e)return;const s=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const c=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+c,o);return}const r=this._monthScroller.position>s,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<s;r?this._scrollToPosition(s,o):l&&this._scrollToPosition(s-a+1,o)}_calculateWeekScrollOffset(e){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);let s=0;for(;o.getDate()<e.getDate();)o.setDate(o.getDate()+1),o.getDay()===this.i18n.firstDayOfWeek&&(s+=1);return s/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=it.debounce(this._debouncer,Et.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,o,s){return e&&o&&typeof o.formatDate=="function"?o.formatDate(Xs(e)):s}_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 s=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+s*12,!0)}}_scrollToPosition(e,o){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!o){this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let s;this._revealPromise=new Promise(c=>{s=c});const r=(c,d,h,p)=>(c/=p/2,c<1?h/2*c*c+d:(c-=1,-h/2*(c*(c-2)-1)+d));let n=0;const a=this._monthScroller.position,l=c=>{n||(n=c);const d=c-n;if(d<this.scrollDuration){const h=r(d,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,s(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,o){return Math.min(o.max,Math.max(o.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 o=this._translateX+e.detail.ddx;this._translateX=this._limit(o,{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 Zs(e).getFullYear()}_differenceInMonths(e,o){return(e.getFullYear()-o.getFullYear())*12-o.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){me(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let o=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),o=!0;break;case"ArrowUp":this._moveFocusByDays(-7),o=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),o=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),o=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),o=!0;break;case" ":this.__toggleDate(this.focusedDate),o=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),o=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),o=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),o=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),o=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}o&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,o){switch(e.stopPropagation(),o){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 o=this.focusableDateElement;o&&me(o.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,o.focus())}}focusDate(e,o){return ct(this,null,function*(){const s=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=s,o||(this._focusedMonthDate=s.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return ct(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(o=>{qs(this,()=>{sr(),o()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Js(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,o,s){this._dateAllowed(e)?this.focusDate(e,s):this._dateAllowed(this.focusedDate)?o>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,o){const s=new Date(0,0);return s.setFullYear(this.focusedDate.getFullYear()),s.setMonth(this.focusedDate.getMonth()+e),o&&s.setDate(this.focusedDate.getDate()+o),s}_moveFocusByDays(e){const o=this._getDateDiff(0,e);this._focusAllowedDate(o,e,!1)}_moveFocusByMonths(e){const o=this._getDateDiff(e),s=o.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),o.setDate(this._focusedMonthDate),o.getMonth()!==s&&o.setDate(0),this._focusAllowedDate(o,e,!0)}_moveFocusInsideMonth(e,o){const s=new Date(0,0);s.setFullYear(e.getFullYear()),o==="minDate"?(s.setMonth(e.getMonth()),s.setDate(1)):(s.setMonth(e.getMonth()+1),s.setDate(0)),this._dateAllowed(s)?this.focusDate(s):this._dateAllowed(e)?this.focusDate(this[o]):this._focusClosestDate(e)}_dateAllowed(e,o=this.minDate,s=this.maxDate){return(!o||e>=o)&&(!s||e<=s)}_isTodayAllowed(e,o){const s=new Date,r=new Date(0,0);return r.setFullYear(s.getFullYear()),r.setMonth(s.getMonth()),r.setDate(s.getDate()),this._dateAllowed(r,e,o)}};/**
|
|
3382
|
+
*/const Pc=i=>class extends i{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(){Ls(this.$.scrollers,"pan-y"),ue(this.$.scrollers,"track",this._track.bind(this)),ue(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),ue(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),ue(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new rr(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ee(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onTodayButtonKeyDown(o)),ue(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ee(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onCancelButtonKeyDown(o)),ue(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,o){const s=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+s,o),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ee(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",o=>{this.__onMonthCalendarKeyDown(o)}),e.addEventListener("init-done",()=>{const o=[...this.querySelectorAll("vaadin-month-calendar")];o.forEach(s=>{s.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=o}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ee(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),ue(e,"tap",o=>{this._onYearTap(o)}),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,o){e&&(e.textContent=o&&o.cancel)}__updateTodayButton(e,o,s,r){e&&(e.textContent=o&&o.today,e.disabled=!this._isTodayAllowed(s,r))}__updateCalendars(e,o,s,r,n,a,l,c,d){e&&e.length&&e.forEach(h=>{h.i18n=o,h.minDate=s,h.maxDate=r,h.focusedDate=a,h.selectedDate=n,h.showWeekNumbers=l,h.ignoreTaps=c,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(e,o,s){e&&e.length&&e.forEach(r=>{r.selectedDate=o,s?r.setAttribute("theme",s):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,o=!0){if(!e)return;const s=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const c=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+c,o);return}const r=this._monthScroller.position>s,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<s;r?this._scrollToPosition(s,o):l&&this._scrollToPosition(s-a+1,o)}_calculateWeekScrollOffset(e){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);let s=0;for(;o.getDate()<e.getDate();)o.setDate(o.getDate()+1),o.getDay()===this.i18n.firstDayOfWeek&&(s+=1);return s/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=it.debounce(this._debouncer,Et.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,o,s){return e&&o&&typeof o.formatDate=="function"?o.formatDate(Xs(e)):s}_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 s=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+s*12,!0)}}_scrollToPosition(e,o){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!o){this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let s;this._revealPromise=new Promise(c=>{s=c});const r=(c,d,h,p)=>(c/=p/2,c<1?h/2*c*c+d:(c-=1,-h/2*(c*(c-2)-1)+d));let n=0;const a=this._monthScroller.position,l=c=>{n||(n=c);const d=c-n;if(d<this.scrollDuration){const h=r(d,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,s(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,o){return Math.min(o.max,Math.max(o.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 o=this._translateX+e.detail.ddx;this._translateX=this._limit(o,{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 Zs(e).getFullYear()}_differenceInMonths(e,o){return(e.getFullYear()-o.getFullYear())*12-o.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){me(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let o=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),o=!0;break;case"ArrowUp":this._moveFocusByDays(-7),o=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),o=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),o=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),o=!0;break;case" ":this.__toggleDate(this.focusedDate),o=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),o=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),o=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),o=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),o=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}o&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,o){switch(e.stopPropagation(),o){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 o=this.focusableDateElement;o&&me(o.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,o.focus())}}focusDate(e,o){return ct(this,null,function*(){const s=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=s,o||(this._focusedMonthDate=s.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return ct(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(o=>{qs(this,()=>{sr(),o()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Js(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,o,s){this._dateAllowed(e)?this.focusDate(e,s):this._dateAllowed(this.focusedDate)?o>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,o){const s=new Date(0,0);return s.setFullYear(this.focusedDate.getFullYear()),s.setMonth(this.focusedDate.getMonth()+e),o&&s.setDate(this.focusedDate.getDate()+o),s}_moveFocusByDays(e){const o=this._getDateDiff(0,e);this._focusAllowedDate(o,e,!1)}_moveFocusByMonths(e){const o=this._getDateDiff(e),s=o.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),o.setDate(this._focusedMonthDate),o.getMonth()!==s&&o.setDate(0),this._focusAllowedDate(o,e,!0)}_moveFocusInsideMonth(e,o){const s=new Date(0,0);s.setFullYear(e.getFullYear()),o==="minDate"?(s.setMonth(e.getMonth()),s.setDate(1)):(s.setMonth(e.getMonth()+1),s.setDate(0)),this._dateAllowed(s)?this.focusDate(s):this._dateAllowed(e)?this.focusDate(this[o]):this._focusClosestDate(e)}_dateAllowed(e,o=this.minDate,s=this.maxDate){return(!o||e>=o)&&(!s||e<=s)}_isTodayAllowed(e,o){const s=new Date,r=new Date(0,0);return r.setFullYear(s.getFullYear()),r.setMonth(s.getMonth()),r.setDate(s.getDate()),this._dateAllowed(r,e,o)}};/**
|
|
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/
|
|
@@ -3447,7 +3447,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3447
3447
|
* @license
|
|
3448
3448
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3449
3449
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3450
|
-
*/
|
|
3450
|
+
*/L("vaadin-date-picker-overlay-content",Dc,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Tc extends Pc(Be(ke(Dt(ye)))){static get template(){return De`
|
|
3451
3451
|
<div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
|
|
3452
3452
|
<div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
|
|
3453
3453
|
<div part="clear-button" hidden$="[[!selectedDate]]"></div>
|
|
@@ -3487,11 +3487,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3487
3487
|
* @license
|
|
3488
3488
|
* Copyright (c) 2023 Vaadin Ltd.
|
|
3489
3489
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3490
|
-
*/const to=new Map;function Uo(i){return to.has(i)||to.set(i,new WeakMap),to.get(i)}function lr(i,t){i&&i.removeAttribute(t)}function cr(i,t){if(!i||!t)return;const e=Uo(t);if(e.has(i))return;const o=No(i.getAttribute(t));e.set(i,new Set(o))}function Nc(i,t){if(!i||!t)return;const e=Uo(t),o=e.get(i);!o||o.size===0?i.removeAttribute(t):Ms(i,t,Tt(o)),e.delete(i)}function oo(i,t,e={newId:null,oldId:null,fromUser:!1}){if(!i||!t)return;const{newId:o,oldId:s,fromUser:r}=e,n=Uo(t),a=n.get(i);if(!r&&a){s&&a.delete(s),o&&a.add(o);return}r&&(a?o||n.delete(i):cr(i,t),lr(i,t)),Xa(i,t,s);const l=o||Tt(a);l&&Ms(i,t,l)}function
|
|
3490
|
+
*/const to=new Map;function Uo(i){return to.has(i)||to.set(i,new WeakMap),to.get(i)}function lr(i,t){i&&i.removeAttribute(t)}function cr(i,t){if(!i||!t)return;const e=Uo(t);if(e.has(i))return;const o=No(i.getAttribute(t));e.set(i,new Set(o))}function Nc(i,t){if(!i||!t)return;const e=Uo(t),o=e.get(i);!o||o.size===0?i.removeAttribute(t):Ms(i,t,Tt(o)),e.delete(i)}function oo(i,t,e={newId:null,oldId:null,fromUser:!1}){if(!i||!t)return;const{newId:o,oldId:s,fromUser:r}=e,n=Uo(t),a=n.get(i);if(!r&&a){s&&a.delete(s),o&&a.add(o);return}r&&(a?o||n.delete(i):cr(i,t),lr(i,t)),Xa(i,t,s);const l=o||Tt(a);l&&Ms(i,t,l)}function Fc(i,t){cr(i,t),lr(i,t)}/**
|
|
3491
3491
|
* @license
|
|
3492
3492
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3493
3493
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3494
|
-
*/class
|
|
3494
|
+
*/class Lc{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){const o=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,o,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(Fc(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Nc(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,o){oo(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:o})}__setErrorIdToAriaAttribute(t,e){oo(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){oo(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
|
|
3495
3495
|
* @license
|
|
3496
3496
|
* Copyright (c) 2022 - 2023 Vaadin Ltd.
|
|
3497
3497
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3519,7 +3519,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3519
3519
|
* @license
|
|
3520
3520
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3521
3521
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3522
|
-
*/const jc=i=>class extends ur(Hc(Be(i))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new
|
|
3522
|
+
*/const jc=i=>class extends ur(Hc(Be(i))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Lc(this),this._helperController=new Rc(this),this._errorController=new $c(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:o,node:s}=e.detail;this.__labelChanged(o,s)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:o,node:s}=e.detail;this.toggleAttribute("has-helper",o),this.__helperChanged(o,s)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,o){e?this._fieldAriaController.setHelperId(o.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,o){e?this._fieldAriaController.setLabelId(o.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const o=this._errorNode;this._fieldAriaController.setErrorId(o&&o.id)}else this._fieldAriaController.setErrorId(null)})}};/**
|
|
3523
3523
|
* @license
|
|
3524
3524
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
3525
3525
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3648,7 +3648,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3648
3648
|
* @license
|
|
3649
3649
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
3650
3650
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3651
|
-
*/
|
|
3651
|
+
*/L("vaadin-date-picker",[Jc,eu],{moduleId:"vaadin-date-picker-styles"});class tu extends Qc(Vc(ke(Ts(ye)))){static get is(){return"vaadin-date-picker"}static get template(){return De`
|
|
3652
3652
|
<div class="vaadin-date-picker-container">
|
|
3653
3653
|
<div part="label">
|
|
3654
3654
|
<slot name="label"></slot>
|
|
@@ -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 Uc(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Wc(this.inputElement,this._labelController)),this._tooltipController=new Is(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}}se(tu);function ou(i){u.append_styles(i,"svelte-1vhi15f",'.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;height:100vh;max-width:100%}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper{width:50%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 20px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:15px;height:15px;fill:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 20px) var(--emw--border-radius-medium, 20px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emfe-w-color-white, #FFFFFF);background-color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:300px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emfe-w-color-gray-150, #828282) 80%, black 20%), var(--emfe-w-color-gray-150, #828282), color-mix(in srgb, var(--emfe-w-color-gray-150, #828282) 80%, white 30%));border:2px solid var(--emw--color-black, #000000);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave.active{cursor:pointer;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)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}')}function ji(i,t,e){const o=i.slice();return o[42]=t[e],o}function iu(i){let t,e,o,s,r,n,a,l,c,d,h=i[13]("titleSelfExclusion")+"",p,f,y;return{c(){t=u.element("div"),e=u.svg_element("svg"),o=u.svg_element("defs"),s=u.svg_element("style"),r=u.text(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=u.svg_element("g"),a=u.svg_element("g"),l=u.svg_element("path"),c=u.space(),d=u.element("h2"),p=u.text(h),u.attr(l,"class","aaa"),u.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"),u.attr(l,"transform","translate(15 15) rotate(180)"),u.attr(a,"transform","translate(20 158)"),u.attr(n,"transform","translate(-20 -158)"),u.attr(e,"xmlns","http://www.w3.org/2000/svg"),u.attr(e,"width","15"),u.attr(e,"height","15"),u.attr(e,"viewBox","0 0 15 15"),u.attr(d,"class","PlayerSelfExclusionTitleMobile"),u.attr(t,"class","MenuReturnButton")},m(A,z){u.insert(A,t,z),u.append(t,e),u.append(e,o),u.append(o,s),u.append(s,r),u.append(e,n),u.append(n,a),u.append(a,l),u.append(t,c),u.append(t,d),u.append(d,p),f||(y=u.listen(t,"click",i[24]),f=!0)},p(A,z){z[0]&8192&&h!==(h=A[13]("titleSelfExclusion")+"")&&u.set_data(p,h)},d(A){A&&u.detach(t),f=!1,y()}}}function Yi(i){let t,e=i[13](`${i[42].key}`)+"",o,s,r;function n(){return i[26](i[42])}return{c(){t=u.element("div"),o=u.text(e)},m(a,l){u.insert(a,t,l),u.append(t,o),s||(r=u.listen(t,"click",n),s=!0)},p(a,l){i=a,l[0]&8208&&e!==(e=i[13](`${i[42].key}`)+"")&&u.set_data(o,e)},d(a){a&&u.detach(t),s=!1,r()}}}function Vi(i){let t,e,o=i[13]("duration")+"",s,r,n,a=i[13]("dateInstructions")+"",l,c,d,h,p;return{c(){t=u.element("div"),e=u.element("label"),s=u.text(o),r=u.space(),n=u.element("span"),l=u.text(a),c=u.space(),d=u.element("strong"),d.innerHTML="MM/DD/YYYY<strong></strong>",h=u.space(),p=u.element("vaadin-date-picker"),u.attr(e,"for","SelfExclusionDate"),u.attr(n,"class","SelfExclusionDateInstructions"),u.set_custom_element_data(p,"min",i[5]),u.set_custom_element_data(p,"max",i[6]),u.set_custom_element_data(p,"value",i[5]),u.attr(t,"class","SelfExclusionDateWrapper "+(i[14]?"SelfExclusionDateWrapperMobile":""))},m(f,y){u.insert(f,t,y),u.append(t,e),u.append(e,s),u.append(t,r),u.append(t,n),u.append(n,l),u.append(n,c),u.append(n,d),u.append(t,h),u.append(t,p),i[27](p)},p(f,y){y[0]&8192&&o!==(o=f[13]("duration")+"")&&u.set_data(s,o),y[0]&8192&&a!==(a=f[13]("dateInstructions")+"")&&u.set_data(l,a),y[0]&32&&u.set_custom_element_data(p,"min",f[5]),y[0]&64&&u.set_custom_element_data(p,"max",f[6]),y[0]&32&&u.set_custom_element_data(p,"value",f[5])},d(f){f&&u.detach(t),i[27](null)}}}function su(i){let t,e,o=i[13]("temporarySelfExclusion",{values:{date:i[7]}})+"",s;return{c(){t=u.element("p"),e=u.element("strong"),s=u.text(o),u.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){u.insert(r,t,n),u.append(t,e),u.append(e,s)},p(r,n){n[0]&8320&&o!==(o=r[13]("temporarySelfExclusion",{values:{date:r[7]}})+"")&&u.set_data(s,o)},d(r){r&&u.detach(t)}}}function ru(i){let t,e,o=i[13]("noPeriodSelected")+"",s;return{c(){t=u.element("p"),e=u.element("strong"),s=u.text(o),u.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){u.insert(r,t,n),u.append(t,e),u.append(e,s)},p(r,n){n[0]&8192&&o!==(o=r[13]("noPeriodSelected")+"")&&u.set_data(s,o)},d(r){r&&u.detach(t)}}}function nu(i){let t,e,o=i[13]("permanentSelfExclusion")+"",s;return{c(){t=u.element("p"),e=u.element("strong"),s=u.text(o),u.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){u.insert(r,t,n),u.append(t,e),u.append(e,s)},p(r,n){n[0]&8192&&o!==(o=r[13]("permanentSelfExclusion")+"")&&u.set_data(s,o)},d(r){r&&u.detach(t)}}}function au(i){let t,e,o,s,r=i[13]("titleSelfExclusion")+"",n,a,l,c,d=i[13]("selfExclusionText1",{values:{operatorname:i[0]}})+"",h,p,f,y=i[13]("selfExclusionText2")+"",A,z,M,I=i[13]("selfExclusionText3",{values:{operatorname:i[0]}})+"",V,re,j,G=i[13]("selfExclusionText4")+"",de,ne,oe,L,k,ae,X,x,_,m=i[13](`${i[8]}`)+"",v,g,w,E,P,N,O,H,U,Z,b,$,D,R=i[13]("save")+"",ie,le,he,It,qo,be=i[14]&&iu(i),Te=u.ensure_array_like(i[4]),J=[];for(let C=0;C<Te.length;C+=1)J[C]=Yi(ji(i,Te,C));let Q=i[10]&&Vi(i);function Ko(C,B){return C[9]?nu:C[11]?su:ru}let lt=Ko(i),ce=lt(i);return{c(){t=u.element("div"),e=u.element("form"),be&&be.c(),o=u.space(),s=u.element("h2"),n=u.text(r),a=u.space(),l=u.element("div"),c=u.element("p"),h=u.text(d),p=u.space(),f=u.element("p"),A=u.text(y),z=u.space(),M=u.element("p"),V=u.text(I),re=u.space(),j=u.element("p"),de=u.text(G),ne=u.space(),oe=u.element("a"),L=u.text(i[1]),ae=u.space(),X=u.element("div"),x=u.element("div"),_=u.element("p"),v=u.text(m),g=u.space(),w=u.svg_element("svg"),E=u.svg_element("g"),P=u.svg_element("path"),N=u.space(),O=u.element("div");for(let C=0;C<J.length;C+=1)J[C].c();H=u.space(),Q&&Q.c(),U=u.space(),Z=u.element("div"),ce.c(),b=u.space(),$=u.element("div"),D=u.element("button"),ie=u.text(R),u.attr(s,"class","PlayerSelfExclusionTitle "+(i[14]?"PlayerSelfExclusionTitleNone":"")),u.attr(c,"class","SelfExclusionDescriptionText"),u.attr(f,"class","SelfExclusionDescriptionText"),u.attr(M,"class","SelfExclusionDescriptionText"),u.attr(oe,"href",k="mailto:"+i[1]),u.attr(j,"class","SelfExclusionDescriptionText"),u.attr(l,"class","SelfExclusionDescription "+(i[14]?"SelfExclusionDescriptionMobile":"")),u.attr(P,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),u.attr(P,"stroke-linecap","round"),u.attr(w,"xmlns","http://www.w3.org/2000/svg"),u.attr(w,"xmlns:xlink","http://www.w3.org/1999/xlink"),u.attr(w,"version","1.1"),u.attr(w,"viewBox","0 0 100 100"),u.attr(w,"xml:space","preserve"),u.attr(w,"class","SelfExclusionConfigIcon"),u.toggle_class(w,"active",i[12]),u.attr(x,"class","SelfExclusionConfigLabel"),u.attr(O,"class","SelfExclusionDropDown"),u.toggle_class(O,"active",i[12]),u.attr(X,"class","SelfExclusionConfigWrapper "+(i[14]?"SelfExclusionConfigWrapperMobile":"")),u.toggle_class(X,"active",i[12]),u.attr(Z,"class","SelfExclusionDescription "+(i[14]?"SelfExclusionDescriptionMobile":"")),u.attr(D,"class",le="SelfExclusionSave "+(i[11]?"active":"")),D.disabled=he=!i[11],u.attr($,"class","SelfExclusionActionButtons "+(i[14]?"SelfExclusionActionButtonsMobile":"")),u.attr(e,"class","SelfExclusionWrapper "+(i[14]?"SelfExclusionWrapperMobile":""))},m(C,B){u.insert(C,t,B),u.append(t,e),be&&be.m(e,null),u.append(e,o),u.append(e,s),u.append(s,n),u.append(e,a),u.append(e,l),u.append(l,c),u.append(c,h),u.append(l,p),u.append(l,f),u.append(f,A),u.append(l,z),u.append(l,M),u.append(M,V),u.append(l,re),u.append(l,j),u.append(j,de),u.append(j,ne),u.append(j,oe),u.append(oe,L),u.append(e,ae),u.append(e,X),u.append(X,x),u.append(x,_),u.append(_,v),u.append(x,g),u.append(x,w),u.append(w,E),u.append(E,P),u.append(X,N),u.append(X,O);for(let q=0;q<J.length;q+=1)J[q]&&J[q].m(O,null);u.append(e,H),Q&&Q.m(e,null),u.append(e,U),u.append(e,Z),ce.m(Z,null),u.append(e,b),u.append(e,$),u.append($,D),u.append(D,ie),i[29](t),It||(qo=[u.listen(x,"click",i[25]),u.listen(D,"click",i[28])],It=!0)},p(C,B){if(C[14]&&be.p(C,B),B[0]&8192&&r!==(r=C[13]("titleSelfExclusion")+"")&&u.set_data(n,r),B[0]&8193&&d!==(d=C[13]("selfExclusionText1",{values:{operatorname:C[0]}})+"")&&u.set_data(h,d),B[0]&8192&&y!==(y=C[13]("selfExclusionText2")+"")&&u.set_data(A,y),B[0]&8193&&I!==(I=C[13]("selfExclusionText3",{values:{operatorname:C[0]}})+"")&&u.set_data(V,I),B[0]&8192&&G!==(G=C[13]("selfExclusionText4")+"")&&u.set_data(de,G),B[0]&2&&u.set_data(L,C[1]),B[0]&2&&k!==(k="mailto:"+C[1])&&u.attr(oe,"href",k),B[0]&8448&&m!==(m=C[13](`${C[8]}`)+"")&&u.set_data(v,m),B[0]&4096&&u.toggle_class(w,"active",C[12]),B[0]&73744){Te=u.ensure_array_like(C[4]);let q;for(q=0;q<Te.length;q+=1){const Go=ji(C,Te,q);J[q]?J[q].p(Go,B):(J[q]=Yi(Go),J[q].c(),J[q].m(O,null))}for(;q<J.length;q+=1)J[q].d(1);J.length=Te.length}B[0]&4096&&u.toggle_class(O,"active",C[12]),B[0]&4096&&u.toggle_class(X,"active",C[12]),C[10]?Q?Q.p(C,B):(Q=Vi(C),Q.c(),Q.m(e,U)):Q&&(Q.d(1),Q=null),lt===(lt=Ko(C))&&ce?ce.p(C,B):(ce.d(1),ce=lt(C),ce&&(ce.c(),ce.m(Z,null))),B[0]&8192&&R!==(R=C[13]("save")+"")&&u.set_data(ie,R),B[0]&2048&&le!==(le="SelfExclusionSave "+(C[11]?"active":""))&&u.attr(D,"class",le),B[0]&2048&&he!==(he=!C[11])&&(D.disabled=he)},i:u.noop,o:u.noop,d(C){C&&u.detach(t),be&&be.d(),u.destroy_each(J,C),Q&&Q.d(),ce.d(),i[29](null),It=!1,u.run_all(qo)}}}function lu(i,t,e){let o;u.component_subscribe(i,u.$format,b=>e(13,o=b));let{endpoint:s="",lang:r="en",operator:n="Everymatrix",supportemail:a="",clientstyling:l="",clientstylingurl:c="",translationurl:d=""}=t,h,p,f=[],y=window.navigator.userAgent,A,z,M="",I="",V="selectAPeriod",re=u.getDevice(y)!=="PC",j=!1,G=!1,de=!1,ne=!1;const oe=()=>{fetch(d).then($=>$.json()).then($=>{Object.keys($).forEach(D=>{Zo(D,$[D])})}).catch($=>{console.log($)})};Object.keys(Qo).forEach(b=>{Zo(b,Qo[b])});const L=()=>{let b=new URL(`${s}/v1/player/selfExclusionSettings`);fetch(b,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(D=>k(D)).then(D=>{e(4,f=D.periods)}).catch(D=>{console.log(D)})},k=b=>{if(b.status>=300)throw new Error("There was an error fetching the config");return b.json()},ae=()=>{e(12,ne=!ne)},X=b=>{switch(I=b.text,e(8,V=b.key),e(11,de=!0),e(12,ne=!1),e(9,j=!1),e(10,G=!1),I){case"Until":e(10,G=!0),e(5,A=Lt().add(6,"M").format("YYYY-MM-DD")),e(6,z=Lt().add(5,"y").format("YYYY-MM-DD")),e(7,M=A);break;case"Permanent":e(9,j=!j);break;default:const[$,D]=I.split(" "),R=D.includes("Day")?"days":D.includes("Month")?"months":D.includes("Year")?"years":null;if(!R)return;e(7,M=Lt().add(Number($),R).format("YYYY-MM-DD"));break}},x=b=>{b.preventDefault(),window.postMessage({type:"SetSelfExclusion",selectedPeriodKey:V,selfExclusionExpiryDate:M},window.location.href)},_=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:re},window.location.href)},m=b=>{e(7,M=b.target.value)},v=()=>{p.addEventListener("change",m,!1)},g=()=>{let b=document.createElement("style");b.innerHTML=l,h.appendChild(b)},w=()=>{let b=new URL(c),$=document.createElement("style");fetch(b.href).then(D=>D.text()).then(D=>{$.innerHTML=D,setTimeout(()=>{h.appendChild($)},1)})};u.onMount(()=>()=>{p.removeEventListener("change",m)});const E=()=>{vr(r)},P=()=>_(),N=()=>ae(),O=b=>X(b);function H(b){u.binding_callbacks[b?"unshift":"push"](()=>{p=b,e(3,p)})}const U=b=>x(b);function Z(b){u.binding_callbacks[b?"unshift":"push"](()=>{h=b,e(2,h)})}return i.$$set=b=>{"endpoint"in b&&e(19,s=b.endpoint),"lang"in b&&e(20,r=b.lang),"operator"in b&&e(0,n=b.operator),"supportemail"in b&&e(1,a=b.supportemail),"clientstyling"in b&&e(21,l=b.clientstyling),"clientstylingurl"in b&&e(22,c=b.clientstylingurl),"translationurl"in b&&e(23,d=b.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&8&&p&&v(),i.$$.dirty[0]&524288&&s&&L(),i.$$.dirty[0]&1048576&&r&&E(),i.$$.dirty[0]&4194308&&c&&h&&w(),i.$$.dirty[0]&2097156&&l&&h&&g(),i.$$.dirty[0]&8388608&&d&&oe()},[n,a,h,p,f,A,z,M,V,j,G,de,ne,o,re,ae,X,x,_,s,r,l,c,d,P,N,O,H,U,Z]}class hr extends u.SvelteComponent{constructor(t){super(),u.init(this,t,lu,au,u.safe_not_equal,{endpoint:19,lang:20,operator:0,supportemail:1,clientstyling:21,clientstylingurl:22,translationurl:23},ou,[-1,-1])}get endpoint(){return this.$$.ctx[19]}set endpoint(t){this.$$set({endpoint:t}),u.flush()}get lang(){return this.$$.ctx[20]}set lang(t){this.$$set({lang:t}),u.flush()}get operator(){return this.$$.ctx[0]}set operator(t){this.$$set({operator:t}),u.flush()}get supportemail(){return this.$$.ctx[1]}set supportemail(t){this.$$set({supportemail:t}),u.flush()}get clientstyling(){return this.$$.ctx[21]}set clientstyling(t){this.$$set({clientstyling:t}),u.flush()}get clientstylingurl(){return this.$$.ctx[22]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),u.flush()}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),u.flush()}}u.create_custom_element(hr,{endpoint:{},lang:{},operator:{},supportemail:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=hr;
|
|
3693
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Uc(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Wc(this.inputElement,this._labelController)),this._tooltipController=new Is(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}}se(tu);function ou(i){u.append_styles(i,"svelte-1vhi15f",'.PlayerSelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionWrapper{background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:20px;height:100vh;max-width:100%}.SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionDescription.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper{width:50%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 20px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:15px;height:15px;fill:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emfe-w-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 20px) var(--emw--border-radius-medium, 20px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emfe-w-color-white, #FFFFFF);background-color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:300px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emfe-w-color-gray-150, #828282) 80%, black 20%), var(--emfe-w-color-gray-150, #828282), color-mix(in srgb, var(--emfe-w-color-gray-150, #828282) 80%, white 30%));border:2px solid var(--emw--color-black, #000000);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave.active{cursor:pointer;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)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}')}function ji(i,t,e){const o=i.slice();return o[42]=t[e],o}function iu(i){let t,e,o,s,r,n,a,l,c,d,h=i[13]("titleSelfExclusion")+"",p,f,y;return{c(){t=u.element("div"),e=u.svg_element("svg"),o=u.svg_element("defs"),s=u.svg_element("style"),r=u.text(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=u.svg_element("g"),a=u.svg_element("g"),l=u.svg_element("path"),c=u.space(),d=u.element("h2"),p=u.text(h),u.attr(l,"class","aaa"),u.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"),u.attr(l,"transform","translate(15 15) rotate(180)"),u.attr(a,"transform","translate(20 158)"),u.attr(n,"transform","translate(-20 -158)"),u.attr(e,"xmlns","http://www.w3.org/2000/svg"),u.attr(e,"width","15"),u.attr(e,"height","15"),u.attr(e,"viewBox","0 0 15 15"),u.attr(d,"class","PlayerSelfExclusionTitleMobile"),u.attr(t,"class","MenuReturnButton")},m(A,z){u.insert(A,t,z),u.append(t,e),u.append(e,o),u.append(o,s),u.append(s,r),u.append(e,n),u.append(n,a),u.append(a,l),u.append(t,c),u.append(t,d),u.append(d,p),f||(y=u.listen(t,"click",i[24]),f=!0)},p(A,z){z[0]&8192&&h!==(h=A[13]("titleSelfExclusion")+"")&&u.set_data(p,h)},d(A){A&&u.detach(t),f=!1,y()}}}function Yi(i){let t,e=i[13](`${i[42].key}`)+"",o,s,r;function n(){return i[26](i[42])}return{c(){t=u.element("div"),o=u.text(e)},m(a,l){u.insert(a,t,l),u.append(t,o),s||(r=u.listen(t,"click",n),s=!0)},p(a,l){i=a,l[0]&8208&&e!==(e=i[13](`${i[42].key}`)+"")&&u.set_data(o,e)},d(a){a&&u.detach(t),s=!1,r()}}}function Vi(i){let t,e,o=i[13]("duration")+"",s,r,n,a=i[13]("dateInstructions")+"",l,c,d,h,p;return{c(){t=u.element("div"),e=u.element("label"),s=u.text(o),r=u.space(),n=u.element("span"),l=u.text(a),c=u.space(),d=u.element("strong"),d.innerHTML="MM/DD/YYYY<strong></strong>",h=u.space(),p=u.element("vaadin-date-picker"),u.attr(e,"for","SelfExclusionDate"),u.attr(n,"class","SelfExclusionDateInstructions"),u.set_custom_element_data(p,"min",i[5]),u.set_custom_element_data(p,"max",i[6]),u.set_custom_element_data(p,"value",i[5]),u.attr(t,"class","SelfExclusionDateWrapper "+(i[14]?"SelfExclusionDateWrapperMobile":""))},m(f,y){u.insert(f,t,y),u.append(t,e),u.append(e,s),u.append(t,r),u.append(t,n),u.append(n,l),u.append(n,c),u.append(n,d),u.append(t,h),u.append(t,p),i[27](p)},p(f,y){y[0]&8192&&o!==(o=f[13]("duration")+"")&&u.set_data(s,o),y[0]&8192&&a!==(a=f[13]("dateInstructions")+"")&&u.set_data(l,a),y[0]&32&&u.set_custom_element_data(p,"min",f[5]),y[0]&64&&u.set_custom_element_data(p,"max",f[6]),y[0]&32&&u.set_custom_element_data(p,"value",f[5])},d(f){f&&u.detach(t),i[27](null)}}}function su(i){let t,e,o=i[13]("temporarySelfExclusion",{values:{date:i[7]}})+"",s;return{c(){t=u.element("p"),e=u.element("strong"),s=u.text(o),u.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){u.insert(r,t,n),u.append(t,e),u.append(e,s)},p(r,n){n[0]&8320&&o!==(o=r[13]("temporarySelfExclusion",{values:{date:r[7]}})+"")&&u.set_data(s,o)},d(r){r&&u.detach(t)}}}function ru(i){let t,e,o=i[13]("noPeriodSelected")+"",s;return{c(){t=u.element("p"),e=u.element("strong"),s=u.text(o),u.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){u.insert(r,t,n),u.append(t,e),u.append(e,s)},p(r,n){n[0]&8192&&o!==(o=r[13]("noPeriodSelected")+"")&&u.set_data(s,o)},d(r){r&&u.detach(t)}}}function nu(i){let t,e,o=i[13]("permanentSelfExclusion")+"",s;return{c(){t=u.element("p"),e=u.element("strong"),s=u.text(o),u.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){u.insert(r,t,n),u.append(t,e),u.append(e,s)},p(r,n){n[0]&8192&&o!==(o=r[13]("permanentSelfExclusion")+"")&&u.set_data(s,o)},d(r){r&&u.detach(t)}}}function au(i){let t,e,o,s,r=i[13]("titleSelfExclusion")+"",n,a,l,c,d=i[13]("selfExclusionText1",{values:{operatorname:i[0]}})+"",h,p,f,y=i[13]("selfExclusionText2")+"",A,z,M,I=i[13]("selfExclusionText3",{values:{operatorname:i[0]}})+"",V,re,j,G=i[13]("selfExclusionText4")+"",de,ne,oe,F,k,ae,X,x,_,m=i[13](`${i[8]}`)+"",v,g,w,E,P,N,O,H,U,Z,b,$,D,R=i[13]("save")+"",ie,le,he,It,qo,be=i[14]&&iu(i),Te=u.ensure_array_like(i[4]),J=[];for(let C=0;C<Te.length;C+=1)J[C]=Yi(ji(i,Te,C));let Q=i[10]&&Vi(i);function Ko(C,B){return C[9]?nu:C[11]?su:ru}let lt=Ko(i),ce=lt(i);return{c(){t=u.element("div"),e=u.element("form"),be&&be.c(),o=u.space(),s=u.element("h2"),n=u.text(r),a=u.space(),l=u.element("div"),c=u.element("p"),h=u.text(d),p=u.space(),f=u.element("p"),A=u.text(y),z=u.space(),M=u.element("p"),V=u.text(I),re=u.space(),j=u.element("p"),de=u.text(G),ne=u.space(),oe=u.element("a"),F=u.text(i[1]),ae=u.space(),X=u.element("div"),x=u.element("div"),_=u.element("p"),v=u.text(m),g=u.space(),w=u.svg_element("svg"),E=u.svg_element("g"),P=u.svg_element("path"),N=u.space(),O=u.element("div");for(let C=0;C<J.length;C+=1)J[C].c();H=u.space(),Q&&Q.c(),U=u.space(),Z=u.element("div"),ce.c(),b=u.space(),$=u.element("div"),D=u.element("button"),ie=u.text(R),u.attr(s,"class","PlayerSelfExclusionTitle "+(i[14]?"PlayerSelfExclusionTitleNone":"")),u.attr(c,"class","SelfExclusionDescriptionText"),u.attr(f,"class","SelfExclusionDescriptionText"),u.attr(M,"class","SelfExclusionDescriptionText"),u.attr(oe,"href",k="mailto:"+i[1]),u.attr(j,"class","SelfExclusionDescriptionText"),u.attr(l,"class","SelfExclusionDescription "+(i[14]?"SelfExclusionDescriptionMobile":"")),u.attr(P,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),u.attr(P,"stroke-linecap","round"),u.attr(w,"xmlns","http://www.w3.org/2000/svg"),u.attr(w,"xmlns:xlink","http://www.w3.org/1999/xlink"),u.attr(w,"version","1.1"),u.attr(w,"viewBox","0 0 100 100"),u.attr(w,"xml:space","preserve"),u.attr(w,"class","SelfExclusionConfigIcon"),u.toggle_class(w,"active",i[12]),u.attr(x,"class","SelfExclusionConfigLabel"),u.attr(O,"class","SelfExclusionDropDown"),u.toggle_class(O,"active",i[12]),u.attr(X,"class","SelfExclusionConfigWrapper "+(i[14]?"SelfExclusionConfigWrapperMobile":"")),u.toggle_class(X,"active",i[12]),u.attr(Z,"class","SelfExclusionDescription "+(i[14]?"SelfExclusionDescriptionMobile":"")),u.attr(D,"class",le="SelfExclusionSave "+(i[11]?"active":"")),D.disabled=he=!i[11],u.attr($,"class","SelfExclusionActionButtons "+(i[14]?"SelfExclusionActionButtonsMobile":"")),u.attr(e,"class","SelfExclusionWrapper "+(i[14]?"SelfExclusionWrapperMobile":""))},m(C,B){u.insert(C,t,B),u.append(t,e),be&&be.m(e,null),u.append(e,o),u.append(e,s),u.append(s,n),u.append(e,a),u.append(e,l),u.append(l,c),u.append(c,h),u.append(l,p),u.append(l,f),u.append(f,A),u.append(l,z),u.append(l,M),u.append(M,V),u.append(l,re),u.append(l,j),u.append(j,de),u.append(j,ne),u.append(j,oe),u.append(oe,F),u.append(e,ae),u.append(e,X),u.append(X,x),u.append(x,_),u.append(_,v),u.append(x,g),u.append(x,w),u.append(w,E),u.append(E,P),u.append(X,N),u.append(X,O);for(let q=0;q<J.length;q+=1)J[q]&&J[q].m(O,null);u.append(e,H),Q&&Q.m(e,null),u.append(e,U),u.append(e,Z),ce.m(Z,null),u.append(e,b),u.append(e,$),u.append($,D),u.append(D,ie),i[29](t),It||(qo=[u.listen(x,"click",i[25]),u.listen(D,"click",i[28])],It=!0)},p(C,B){if(C[14]&&be.p(C,B),B[0]&8192&&r!==(r=C[13]("titleSelfExclusion")+"")&&u.set_data(n,r),B[0]&8193&&d!==(d=C[13]("selfExclusionText1",{values:{operatorname:C[0]}})+"")&&u.set_data(h,d),B[0]&8192&&y!==(y=C[13]("selfExclusionText2")+"")&&u.set_data(A,y),B[0]&8193&&I!==(I=C[13]("selfExclusionText3",{values:{operatorname:C[0]}})+"")&&u.set_data(V,I),B[0]&8192&&G!==(G=C[13]("selfExclusionText4")+"")&&u.set_data(de,G),B[0]&2&&u.set_data(F,C[1]),B[0]&2&&k!==(k="mailto:"+C[1])&&u.attr(oe,"href",k),B[0]&8448&&m!==(m=C[13](`${C[8]}`)+"")&&u.set_data(v,m),B[0]&4096&&u.toggle_class(w,"active",C[12]),B[0]&73744){Te=u.ensure_array_like(C[4]);let q;for(q=0;q<Te.length;q+=1){const Go=ji(C,Te,q);J[q]?J[q].p(Go,B):(J[q]=Yi(Go),J[q].c(),J[q].m(O,null))}for(;q<J.length;q+=1)J[q].d(1);J.length=Te.length}B[0]&4096&&u.toggle_class(O,"active",C[12]),B[0]&4096&&u.toggle_class(X,"active",C[12]),C[10]?Q?Q.p(C,B):(Q=Vi(C),Q.c(),Q.m(e,U)):Q&&(Q.d(1),Q=null),lt===(lt=Ko(C))&&ce?ce.p(C,B):(ce.d(1),ce=lt(C),ce&&(ce.c(),ce.m(Z,null))),B[0]&8192&&R!==(R=C[13]("save")+"")&&u.set_data(ie,R),B[0]&2048&&le!==(le="SelfExclusionSave "+(C[11]?"active":""))&&u.attr(D,"class",le),B[0]&2048&&he!==(he=!C[11])&&(D.disabled=he)},i:u.noop,o:u.noop,d(C){C&&u.detach(t),be&&be.d(),u.destroy_each(J,C),Q&&Q.d(),ce.d(),i[29](null),It=!1,u.run_all(qo)}}}function lu(i,t,e){let o;u.component_subscribe(i,u.$format,b=>e(13,o=b));let{endpoint:s="",lang:r="en",operator:n="Everymatrix",supportemail:a="",clientstyling:l="",clientstylingurl:c="",translationurl:d=""}=t,h,p,f=[],y=window.navigator.userAgent,A,z,M="",I="",V="selectAPeriod",re=u.getDevice(y)!=="PC",j=!1,G=!1,de=!1,ne=!1;const oe=()=>{fetch(d).then($=>$.json()).then($=>{Object.keys($).forEach(D=>{Zo(D,$[D])})}).catch($=>{console.log($)})};Object.keys(Qo).forEach(b=>{Zo(b,Qo[b])});const F=()=>{let b=new URL(`${s}/v1/player/selfExclusionSettings`);fetch(b,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(D=>k(D)).then(D=>{e(4,f=D.periods)}).catch(D=>{console.log(D)})},k=b=>{if(b.status>=300)throw new Error("There was an error fetching the config");return b.json()},ae=()=>{e(12,ne=!ne)},X=b=>{switch(I=b.text,e(8,V=b.key),e(11,de=!0),e(12,ne=!1),e(9,j=!1),e(10,G=!1),I){case"Until":e(10,G=!0),e(5,A=Ft().add(6,"M").format("YYYY-MM-DD")),e(6,z=Ft().add(5,"y").format("YYYY-MM-DD")),e(7,M=A);break;case"Permanent":e(9,j=!j);break;default:const[$,D]=I.split(" "),R=D.includes("Day")?"days":D.includes("Month")?"months":D.includes("Year")?"years":null;if(!R)return;e(7,M=Ft().add(Number($),R).format("YYYY-MM-DD"));break}},x=b=>{b.preventDefault(),window.postMessage({type:"SetSelfExclusion",selectedPeriodKey:V,selfExclusionExpiryDate:M},window.location.href)},_=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:re},window.location.href)},m=b=>{e(7,M=b.target.value)},v=()=>{p.addEventListener("change",m,!1)},g=()=>{let b=document.createElement("style");b.innerHTML=l,h.appendChild(b)},w=()=>{let b=new URL(c),$=document.createElement("style");fetch(b.href).then(D=>D.text()).then(D=>{$.innerHTML=D,setTimeout(()=>{h.appendChild($)},1)})};u.onMount(()=>()=>{p.removeEventListener("change",m)});const E=()=>{vr(r)},P=()=>_(),N=()=>ae(),O=b=>X(b);function H(b){u.binding_callbacks[b?"unshift":"push"](()=>{p=b,e(3,p)})}const U=b=>x(b);function Z(b){u.binding_callbacks[b?"unshift":"push"](()=>{h=b,e(2,h)})}return i.$$set=b=>{"endpoint"in b&&e(19,s=b.endpoint),"lang"in b&&e(20,r=b.lang),"operator"in b&&e(0,n=b.operator),"supportemail"in b&&e(1,a=b.supportemail),"clientstyling"in b&&e(21,l=b.clientstyling),"clientstylingurl"in b&&e(22,c=b.clientstylingurl),"translationurl"in b&&e(23,d=b.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&8&&p&&v(),i.$$.dirty[0]&524288&&s&&F(),i.$$.dirty[0]&1048576&&r&&E(),i.$$.dirty[0]&4194308&&c&&h&&w(),i.$$.dirty[0]&2097156&&l&&h&&g(),i.$$.dirty[0]&8388608&&d&&oe()},[n,a,h,p,f,A,z,M,V,j,G,de,ne,o,re,ae,X,x,_,s,r,l,c,d,P,N,O,H,U,Z]}class hr extends u.SvelteComponent{constructor(t){super(),u.init(this,t,lu,au,u.safe_not_equal,{endpoint:19,lang:20,operator:0,supportemail:1,clientstyling:21,clientstylingurl:22,translationurl:23},ou,[-1,-1])}get endpoint(){return this.$$.ctx[19]}set endpoint(t){this.$$set({endpoint:t}),u.flush()}get lang(){return this.$$.ctx[20]}set lang(t){this.$$set({lang:t}),u.flush()}get operator(){return this.$$.ctx[0]}set operator(t){this.$$set({operator:t}),u.flush()}get supportemail(){return this.$$.ctx[1]}set supportemail(t){this.$$set({supportemail:t}),u.flush()}get clientstyling(){return this.$$.ctx[21]}set clientstyling(t){this.$$set({clientstyling:t}),u.flush()}get clientstylingurl(){return this.$$.ctx[22]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),u.flush()}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),u.flush()}}u.create_custom_element(hr,{endpoint:{},lang:{},operator:{},supportemail:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=hr;
|