@everymatrix/player-account-self-exclusion-nd 1.70.0 → 1.70.1
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/{PlayerAccountSelfExclusionNd-BEa2cUnU.cjs → PlayerAccountSelfExclusionNd-BAt308qz.cjs} +82 -82
- package/components/{PlayerAccountSelfExclusionNd-C6mojVww.js → PlayerAccountSelfExclusionNd-VSPFGyyp.js} +503 -426
- package/components/{PlayerAccountSelfExclusionNd-Bh3CWHTG.js → PlayerAccountSelfExclusionNd-pfvcg4Me.js} +511 -434
- package/es2015/player-account-self-exclusion-nd.cjs +1 -1
- package/es2015/player-account-self-exclusion-nd.js +1 -1
- package/esnext/player-account-self-exclusion-nd.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Sr=Object.defineProperty,Cr=Object.defineProperties;var Ar=Object.getOwnPropertyDescriptors;var Xi=Object.getOwnPropertySymbols;var Dr=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable;var Zi=(o,t,e)=>t in o?Sr(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,gt=(o,t)=>{for(var e in t||(t={}))Dr.call(t,e)&&Zi(o,e,t[e]);if(Xi)for(var e of Xi(t))kr.call(t,e)&&Zi(o,e,t[e]);return o},vt=(o,t)=>Cr(o,Ar(t));var Ge=(o,t,e)=>new Promise((i,s)=>{var r=l=>{try{a(e.next(l))}catch(u){s(u)}},n=l=>{try{a(e.throw(l))}catch(u){s(u)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(o,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./PlayerAccountGeneralConfirmationModal-CepZsQsl.cjs");require("../stencil/ui-skeleton-BL4789dS.cjs");var Xo={exports:{}};(function(o,t){(function(e,i){o.exports=i()})(c.commonjsGlobal,function(){var e=1e3,i=6e4,s=36e5,r="millisecond",n="second",a="minute",l="hour",u="day",d="week",h="month",p="quarter",f="year",b="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|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,A={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(E){var v=["th","st","nd","rd"],_=E%100;return"["+E+(v[(_-20)%10]||v[_]||v[0])+"]"}},I=function(E,v,_){var x=String(E);return!x||x.length>=v?E:""+Array(v+1-x.length).join(_)+E},O={s:I,z:function(E){var v=-E.utcOffset(),_=Math.abs(v),x=Math.floor(_/60),g=_%60;return(v<=0?"+":"-")+I(x,2,"0")+":"+I(g,2,"0")},m:function E(v,_){if(v.date()<_.date())return-E(_,v);var x=12*(_.year()-v.year())+(_.month()-v.month()),g=v.clone().add(x,h),C=_-g<0,S=v.clone().add(x+(C?-1:1),h);return+(-(x+(_-g)/(C?g-S:S-g))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:h,y:f,w:d,d:u,D:b,h:l,m:a,s:n,ms:r,Q:p}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},N="en",W={};W[N]=A;var G="$isDayjsObject",q=function(E){return E instanceof H||!(!E||!E[G])},V=function E(v,_,x){var g;if(!v)return N;if(typeof v=="string"){var C=v.toLowerCase();W[C]&&(g=C),_&&(W[C]=_,g=C);var S=v.split("-");if(!g&&S.length>1)return E(S[0])}else{var M=v.name;W[M]=v,g=M}return!x&&g&&(N=g),g||!x&&N},T=function(E,v){if(q(E))return E.clone();var _=typeof v=="object"?v:{};return _.date=E,_.args=arguments,new H(_)},k=O;k.l=V,k.i=q,k.w=function(E,v){return T(E,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var H=function(){function E(_){this.$L=V(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[G]=!0}var v=E.prototype;return v.parse=function(_){this.$d=function(x){var g=x.date,C=x.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 S=g.match(y);if(S){var M=S[2]-1||0,F=(S[7]||"0").substring(0,3);return C?new Date(Date.UTC(S[1],M,S[3]||1,S[4]||0,S[5]||0,S[6]||0,F)):new Date(S[1],M,S[3]||1,S[4]||0,S[5]||0,S[6]||0,F)}}return new Date(g)}(_),this.init()},v.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},v.$utils=function(){return k},v.isValid=function(){return this.$d.toString()!==m},v.isSame=function(_,x){var g=T(_);return this.startOf(x)<=g&&g<=this.endOf(x)},v.isAfter=function(_,x){return T(_)<this.startOf(x)},v.isBefore=function(_,x){return this.endOf(x)<T(_)},v.$g=function(_,x,g){return k.u(_)?this[x]:this.set(g,_)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(_,x){var g=this,C=!!k.u(x)||x,S=k.p(_),M=function(K,R){var L=k.w(g.$u?Date.UTC(g.$y,R,K):new Date(g.$y,R,K),g);return C?L:L.endOf(u)},F=function(K,R){return k.w(g.toDate()[K].apply(g.toDate("s"),(C?[0,0,0,0]:[23,59,59,999]).slice(R)),g)},B=this.$W,U=this.$M,J=this.$D,re="set"+(this.$u?"UTC":"");switch(S){case f:return C?M(1,0):M(31,11);case h:return C?M(1,U):M(0,U+1);case d:var ie=this.$locale().weekStart||0,ne=(B<ie?B+7:B)-ie;return M(C?J-ne:J+(6-ne),U);case u:case b:return F(re+"Hours",0);case l:return F(re+"Minutes",1);case a:return F(re+"Seconds",2);case n:return F(re+"Milliseconds",3);default:return this.clone()}},v.endOf=function(_){return this.startOf(_,!1)},v.$set=function(_,x){var g,C=k.p(_),S="set"+(this.$u?"UTC":""),M=(g={},g[u]=S+"Date",g[b]=S+"Date",g[h]=S+"Month",g[f]=S+"FullYear",g[l]=S+"Hours",g[a]=S+"Minutes",g[n]=S+"Seconds",g[r]=S+"Milliseconds",g)[C],F=C===u?this.$D+(x-this.$W):x;if(C===h||C===f){var B=this.clone().set(b,1);B.$d[M](F),B.init(),this.$d=B.set(b,Math.min(this.$D,B.daysInMonth())).$d}else M&&this.$d[M](F);return this.init(),this},v.set=function(_,x){return this.clone().$set(_,x)},v.get=function(_){return this[k.p(_)]()},v.add=function(_,x){var g,C=this;_=Number(_);var S=k.p(x),M=function(U){var J=T(C);return k.w(J.date(J.date()+Math.round(U*_)),C)};if(S===h)return this.set(h,this.$M+_);if(S===f)return this.set(f,this.$y+_);if(S===u)return M(1);if(S===d)return M(7);var F=(g={},g[a]=i,g[l]=s,g[n]=e,g)[S]||1,B=this.$d.getTime()+_*F;return k.w(B,this)},v.subtract=function(_,x){return this.add(-1*_,x)},v.format=function(_){var x=this,g=this.$locale();if(!this.isValid())return g.invalidDate||m;var C=_||"YYYY-MM-DDTHH:mm:ssZ",S=k.z(this),M=this.$H,F=this.$m,B=this.$M,U=g.weekdays,J=g.months,re=g.meridiem,ie=function(R,L,Y,ae){return R&&(R[L]||R(x,C))||Y[L].slice(0,ae)},ne=function(R){return k.s(M%12||12,R,"0")},K=re||function(R,L,Y){var ae=R<12?"AM":"PM";return Y?ae.toLowerCase():ae};return C.replace(D,function(R,L){return L||function(Y){switch(Y){case"YY":return String(x.$y).slice(-2);case"YYYY":return k.s(x.$y,4,"0");case"M":return B+1;case"MM":return k.s(B+1,2,"0");case"MMM":return ie(g.monthsShort,B,J,3);case"MMMM":return ie(J,B);case"D":return x.$D;case"DD":return k.s(x.$D,2,"0");case"d":return String(x.$W);case"dd":return ie(g.weekdaysMin,x.$W,U,2);case"ddd":return ie(g.weekdaysShort,x.$W,U,3);case"dddd":return U[x.$W];case"H":return String(M);case"HH":return k.s(M,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return K(M,F,!0);case"A":return K(M,F,!1);case"m":return String(F);case"mm":return k.s(F,2,"0");case"s":return String(x.$s);case"ss":return k.s(x.$s,2,"0");case"SSS":return k.s(x.$ms,3,"0");case"Z":return S}return null}(R)||S.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(_,x,g){var C,S=this,M=k.p(x),F=T(_),B=(F.utcOffset()-this.utcOffset())*i,U=this-F,J=function(){return k.m(S,F)};switch(M){case f:C=J()/12;break;case h:C=J();break;case p:C=J()/3;break;case d:C=(U-B)/6048e5;break;case u:C=(U-B)/864e5;break;case l:C=U/s;break;case a:C=U/i;break;case n:C=U/e;break;default:C=U}return g?C:k.a(C)},v.daysInMonth=function(){return this.endOf(h).$D},v.$locale=function(){return W[this.$L]},v.locale=function(_,x){if(!_)return this.$L;var g=this.clone(),C=V(_,x,!0);return C&&(g.$L=C),g},v.clone=function(){return k.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},E}(),ee=H.prototype;return T.prototype=ee,[["$ms",r],["$s",n],["$m",a],["$H",l],["$W",u],["$M",h],["$y",f],["$D",b]].forEach(function(E){ee[E[1]]=function(v){return this.$g(v,E[0],E[1])}}),T.extend=function(E,v){return E.$i||(E(v,H,T),E.$i=!0),T},T.locale=V,T.isDayjs=q,T.unix=function(E){return T(1e3*E)},T.en=W[N],T.Ls=W,T.p={},T})})(Xo);var Pr=Xo.exports;const ve=c.getDefaultExportFromCjs(Pr);var Zo={exports:{}};(function(o,t){(function(e,i){o.exports=i()})(c.commonjsGlobal,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d\d/,r=/\d\d?/,n=/\d*[^-_:/,()\s\d]+/,a={},l=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(y){this[m]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var D=y.match(/([+-]|\d\d)/g),A=60*D[1]+(+D[2]||0);return A===0?0:D[0]==="+"?-A:A}(m)}],h=function(m){var y=a[m];return y&&(y.indexOf?y:y.s.concat(y.f))},p=function(m,y){var D,A=a.meridiem;if(A){for(var I=1;I<=24;I+=1)if(m.indexOf(A(I,0,y))>-1){D=I>12;break}}else D=m===(y?"pm":"PM");return D},f={A:[n,function(m){this.afternoon=p(m,!1)}],a:[n,function(m){this.afternoon=p(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[s,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[r,u("seconds")],ss:[r,u("seconds")],m:[r,u("minutes")],mm:[r,u("minutes")],H:[r,u("hours")],h:[r,u("hours")],HH:[r,u("hours")],hh:[r,u("hours")],D:[r,u("day")],DD:[s,u("day")],Do:[n,function(m){var y=a.ordinal,D=m.match(/\d+/);if(this.day=D[0],y)for(var A=1;A<=31;A+=1)y(A).replace(/\[|\]/g,"")===m&&(this.day=A)}],M:[r,u("month")],MM:[s,u("month")],MMM:[n,function(m){var y=h("months"),D=(h("monthsShort")||y.map(function(A){return A.slice(0,3)})).indexOf(m)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[n,function(m){var y=h("months").indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[s,function(m){this.year=l(m)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function b(m){var y,D;y=m,D=a&&a.formats;for(var A=(m=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,T,k){var H=k&&k.toUpperCase();return T||D[k]||e[k]||D[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(ee,E,v){return E||v.slice(1)})})).match(i),I=A.length,O=0;O<I;O+=1){var N=A[O],W=f[N],G=W&&W[0],q=W&&W[1];A[O]=q?{regex:G,parser:q}:N.replace(/^\[|\]$/g,"")}return function(V){for(var T={},k=0,H=0;k<I;k+=1){var ee=A[k];if(typeof ee=="string")H+=ee.length;else{var E=ee.regex,v=ee.parser,_=V.slice(H),x=E.exec(_)[0];v.call(T,x),V=V.replace(x,"")}}return function(g){var C=g.afternoon;if(C!==void 0){var S=g.hours;C?S<12&&(g.hours+=12):S===12&&(g.hours=0),delete g.afternoon}}(T),T}}return function(m,y,D){D.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(l=m.parseTwoDigitYear);var A=y.prototype,I=A.parse;A.parse=function(O){var N=O.date,W=O.utc,G=O.args;this.$u=W;var q=G[1];if(typeof q=="string"){var V=G[2]===!0,T=G[3]===!0,k=V||T,H=G[2];T&&(H=G[2]),a=this.$locale(),!V&&H&&(a=D.Ls[H]),this.$d=function(_,x,g){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1e3:1)*_);var C=b(x)(_),S=C.year,M=C.month,F=C.day,B=C.hours,U=C.minutes,J=C.seconds,re=C.milliseconds,ie=C.zone,ne=new Date,K=F||(S||M?1:ne.getDate()),R=S||ne.getFullYear(),L=0;S&&!M||(L=M>0?M-1:ne.getMonth());var Y=B||0,ae=U||0,pe=J||0,se=re||0;return ie?new Date(Date.UTC(R,L,K,Y,ae,pe,se+60*ie.offset*1e3)):g?new Date(Date.UTC(R,L,K,Y,ae,pe,se)):new Date(R,L,K,Y,ae,pe,se)}catch(fe){return new Date("")}}(N,q,W),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),k&&N!=this.format(q)&&(this.$d=new Date("")),a={}}else if(q instanceof Array)for(var ee=q.length,E=1;E<=ee;E+=1){G[1]=q[E-1];var v=D.apply(this,G);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}E===ee&&(this.$d=new Date(""))}else I.call(this,O)}}})})(Zo);var Tr=Zo.exports;const Mr=c.getDefaultExportFromCjs(Tr);function Qi(o,t){c.addMessages(o,t)}function Or(o){c.$locale.set(o)}const eo={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"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",SelfExclusionFor2Years:"2 Years",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"en-us":{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"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",SelfExclusionFor2Years:"2 Years",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText:"<p>在自我排除期間,您的帳戶將完全受到限制。</br> 自我排除僅可在您選擇的期間結束後,通過與客戶支援聯繫進行解除,並將接受審查和冷靜期。</br> 或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中暫停(最多6週)。</br> 如果您更願意關閉帳戶,可以通過'<a href='{baseurl}/{lang}/account/account-closure'>關閉帳戶</a>'選項進行關閉。</br> 我們建議您閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取進一步的建議。</p>",selfExclusionEmailText:"電子郵件:",duration:"時長:",dateInstructions:"如需手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇自我排除時段",selectAPeriod:"選擇一個時段",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。",SelfExclusionFor30Days:"30天",SelfExclusionFor6Months:"6個月",SelfExclusionFor1Year:"1年",SelfExclusionFor2Years:"2年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到",selfExclusionSuccess:"自我排斥活躍",confirmationModalTitle:"確認",confirmationModalTextPeriod:"您確定要自我排除 {period} 嗎?",confirmationModalTextUntil:"您確定要自我排除直到 {date} 嗎?",generalError:"提取自我排除时发生错误。",errorSelfExclusionCall:"发出自我排除请求时出现问题。",InvalidSession:"会话已过期。"},fr:{titleSelfExclusion:"Auto-Exclusion",selfExclusionText:"<p>Pendant la période d'auto-exclusion, l'accès à votre compte sera entièrement restreint.</br> L'auto-exclusion ne peut être levée qu'après la période que vous avez sélectionnée et en contactant le Service Client, sous réserve d'une révision et d'une période de réflexion.</br> Alternativement, vous pouvez choisir de prendre un '<a href='{baseurl}/{lang}/account/timeout'>temps de pause</a>' (jusqu'à 6 semaines) via l'option correspondante.</br> Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br> Nous vous recommandons également de consulter nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu Responsable</a>' pour des conseils supplémentaires si nécessaire.</p>",selfExclusionEmailText:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionnez 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",SelfExclusionFor2Years:"2 Ans",SelfExclusionFor5Years:"5 Ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à",selfExclusionSuccess:"Auto exclusion active",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Êtes-vous sûr de vouloir vous auto-exclure pour {period} ?",confirmationModalTextUntil:"Êtes-vous sûr de vouloir vous auto-exclure jusqu'au {date} ?",generalError:"Une erreur s'est produite lors de la récupération de l'auto-exclusion.",errorSelfExclusionCall:"Un problème est survenu lors de la demande d'auto-exclusion.",InvalidSession:"La session a expiré."},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText:"<p>În timpul perioadei de autoexcludere, accesul la contul dvs. va fi complet restricționat.</br> Autoexcluderea poate fi ridicată numai după ce perioada selectată de dvs. a expirat, contactând Suportul Clienți, și va fi supusă unei revizuiri și unei perioade de reflecție.</br> Alternativ, puteți alege să luați o '<a href='{baseurl}/{lang}/account/timeout'>pauză</a>' (o întrerupere de până la 6 săptămâni) prin opțiunea corespunzătoare.</br> Dacă preferați să vă închideți contul, puteți face acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br> Vă recomandăm, de asemenea, să consultați paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc Responsabil</a>' pentru sfaturi suplimentare, dacă este necesar.</p>",selfExclusionEmailText:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",forever:"Pentru totdeauna",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 de Zile",SelfExclusionFor6Months:"6 Luni",SelfExclusionFor1Year:"1 An",SelfExclusionFor2Years:"2 Ani",SelfExclusionFor5Years:"5 Ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la",selfExclusionSuccess:"Auto-excludere activa",confirmationModalTitle:"Confirmare",confirmationModalTextPeriod:"Sunteți sigur că doriți să vă auto-excludeți pentru {period}?",confirmationModalTextUntil:"Sunteți sigur că doriți să vă auto-excludeți până la {date}?",generalError:"A apărut o eroare la preluarea auto-excluderii.",errorSelfExclusionCall:"A apărut o problemă la efectuarea cererii de auto-excludere.",InvalidSession:"Sesiunea a expirat."},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo se puede levantar después de que haya pasado el período seleccionado, comunicándose con Atención al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede optar por tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (un descanso de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos que lea nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",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} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor2Years:"2 Años",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto Exclusión activa.",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta estará totalmente restrito.</br> A autoexclusão só pode ser levantada após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a uma revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer uma '<a href='{baseurl}/{lang}/account/timeout'>pausa</a>' (um intervalo de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar a sua conta, pode fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia as nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para introduzir manualmente a data, 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é às {date} 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Tem a certeza de que deseja autoexcluir-se por {period}?",confirmationModalTextUntil:"Tem a certeza de que deseja autoexcluir-se até {date}?",generalError:"Ocorreu um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Ocorreu um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText:"<p>Tijekom razdoblja samoisključenja, pristup vašem računu bit će potpuno ograničen.</br> Samoisključenje se može ukinuti tek nakon što istekne razdoblje koje ste odabrali, uz kontaktiranje Korisničke podrške, uz reviziju i razdoblje hlađenja.</br> Alternativno, možete odabrati '<a href='{baseurl}/{lang}/account/timeout'>stanku</a>' (pauzu do 6 tjedana) putem odgovarajuće opcije.</br> Ako radije želite zatvoriti svoj račun, to možete učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br> Također vam preporučujemo da pročitate naše stranice s pomoći o '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za dodatne savjete, ako su vam potrebni.</p>",selfExclusionEmailText:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor6Months:"6 Mjeseci",SelfExclusionFor1Year:"1 Godina",SelfExclusionFor2Years:"2 Godina",SelfExclusionFor5Years:"5 Godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do",selfExclusionSuccess:"Aktivno samoisključivanje",confirmationModalTitle:"Potvrda",confirmationModalTextPeriod:"Jeste li sigurni da se želite samoisključiti na {period}?",confirmationModalTextUntil:"Jeste li sigurni da se želite samoisključiti do {date}?",generalError:"Došlo je do pogreške prilikom dohvaćanja samoisključenja.",errorSelfExclusionCall:"Došlo je do problema prilikom slanja zahtjeva za samoisključenje.",InvalidSession:"Sesija je istekla."},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta será completamente restrito.</br> A autoexclusão só pode ser removida após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer um '<a href='{baseurl}/{lang}/account/timeout'>intervalo</a>' (uma pausa de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar sua conta, você pode fazer isso através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir manualmente a data, use 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",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Você tem certeza de que deseja se autoexcluir por {period}?",confirmationModalTextUntil:"Você tem certeza de que deseja se autoexcluir até {date}?",generalError:"Houve um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Houve um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo puede levantarse después de que haya pasado el período que seleccionó, comunicándose con el Servicio al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede elegir tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (una pausa de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo mediante la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos leer nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si lo necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",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} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto-exclusión activa",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText:"<p>Kendinizi dışlama süresince hesabınıza erişiminiz tamamen kısıtlanacaktır.</br> Kendinizi dışlama, yalnızca seçtiğiniz süre sona erdikten sonra, Müşteri Hizmetleri ile iletişime geçerek kaldırılabilir ve inceleme ile bir düşünme süresine tabi olacaktır.</br> Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Mola</a>' seçeneğiyle hizmetlerimizden (6 haftaya kadar bir ara) faydalanmayı tercih edebilirsiniz.</br> Hesabınızı kapatmayı tercih ederseniz, bunu '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla yapabilirsiniz.</br> Ayrıca, gerektiğinde daha fazla tavsiye almak için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Oyun</a>' yardım sayfalarımızı okumanızı öneririz.</p>",selfExclusionEmailText:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kendi kendini hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} saat 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",SelfExclusionFor2Years:"2 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Tarihe kadar",selfExclusionSuccess:"Kendini dışlama etkin",confirmationModalTitle:"Onay",confirmationModalTextPeriod:"{period} için kendinizi hariç tutmak istediğinizden emin misiniz?",confirmationModalTextUntil:"{date} tarihine kadar kendinizi hariç tutmak istediğinizden emin misiniz?",generalError:"Kendi kendini dışlama alınırken bir hata oluştu.",errorSelfExclusionCall:"Kendi kendini dışlama isteği yapılırken bir sorun oluştu.",InvalidSession:"Oturum süresi doldu."}};/**
|
|
1
|
+
"use strict";var Sr=Object.defineProperty,Ar=Object.defineProperties;var Cr=Object.getOwnPropertyDescriptors;var Xi=Object.getOwnPropertySymbols;var Dr=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable;var Zi=(o,t,e)=>t in o?Sr(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,gt=(o,t)=>{for(var e in t||(t={}))Dr.call(t,e)&&Zi(o,e,t[e]);if(Xi)for(var e of Xi(t))kr.call(t,e)&&Zi(o,e,t[e]);return o},vt=(o,t)=>Ar(o,Cr(t));var Ge=(o,t,e)=>new Promise((i,s)=>{var r=l=>{try{a(e.next(l))}catch(u){s(u)}},n=l=>{try{a(e.throw(l))}catch(u){s(u)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(o,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./PlayerAccountGeneralConfirmationModal-CepZsQsl.cjs");require("../stencil/ui-skeleton-BL4789dS.cjs");var Xo={exports:{}};(function(o,t){(function(e,i){o.exports=i()})(c.commonjsGlobal,function(){var e=1e3,i=6e4,s=36e5,r="millisecond",n="second",a="minute",l="hour",u="day",d="week",h="month",p="quarter",f="year",y="date",m="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|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,C={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(E){var v=["th","st","nd","rd"],_=E%100;return"["+E+(v[(_-20)%10]||v[_]||v[0])+"]"}},I=function(E,v,_){var x=String(E);return!x||x.length>=v?E:""+Array(v+1-x.length).join(_)+E},O={s:I,z:function(E){var v=-E.utcOffset(),_=Math.abs(v),x=Math.floor(_/60),g=_%60;return(v<=0?"+":"-")+I(x,2,"0")+":"+I(g,2,"0")},m:function E(v,_){if(v.date()<_.date())return-E(_,v);var x=12*(_.year()-v.year())+(_.month()-v.month()),g=v.clone().add(x,h),A=_-g<0,S=v.clone().add(x+(A?-1:1),h);return+(-(x+(_-g)/(A?g-S:S-g))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:h,y:f,w:d,d:u,D:y,h:l,m:a,s:n,ms:r,Q:p}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},F="en",W={};W[F]=C;var G="$isDayjsObject",q=function(E){return E instanceof H||!(!E||!E[G])},V=function E(v,_,x){var g;if(!v)return F;if(typeof v=="string"){var A=v.toLowerCase();W[A]&&(g=A),_&&(W[A]=_,g=A);var S=v.split("-");if(!g&&S.length>1)return E(S[0])}else{var M=v.name;W[M]=v,g=M}return!x&&g&&(F=g),g||!x&&F},T=function(E,v){if(q(E))return E.clone();var _=typeof v=="object"?v:{};return _.date=E,_.args=arguments,new H(_)},k=O;k.l=V,k.i=q,k.w=function(E,v){return T(E,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var H=function(){function E(_){this.$L=V(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[G]=!0}var v=E.prototype;return v.parse=function(_){this.$d=function(x){var g=x.date,A=x.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 S=g.match(b);if(S){var M=S[2]-1||0,z=(S[7]||"0").substring(0,3);return A?new Date(Date.UTC(S[1],M,S[3]||1,S[4]||0,S[5]||0,S[6]||0,z)):new Date(S[1],M,S[3]||1,S[4]||0,S[5]||0,S[6]||0,z)}}return new Date(g)}(_),this.init()},v.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},v.$utils=function(){return k},v.isValid=function(){return this.$d.toString()!==m},v.isSame=function(_,x){var g=T(_);return this.startOf(x)<=g&&g<=this.endOf(x)},v.isAfter=function(_,x){return T(_)<this.startOf(x)},v.isBefore=function(_,x){return this.endOf(x)<T(_)},v.$g=function(_,x,g){return k.u(_)?this[x]:this.set(g,_)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(_,x){var g=this,A=!!k.u(x)||x,S=k.p(_),M=function(K,R){var L=k.w(g.$u?Date.UTC(g.$y,R,K):new Date(g.$y,R,K),g);return A?L:L.endOf(u)},z=function(K,R){return k.w(g.toDate()[K].apply(g.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(R)),g)},B=this.$W,U=this.$M,J=this.$D,re="set"+(this.$u?"UTC":"");switch(S){case f:return A?M(1,0):M(31,11);case h:return A?M(1,U):M(0,U+1);case d:var ie=this.$locale().weekStart||0,ne=(B<ie?B+7:B)-ie;return M(A?J-ne:J+(6-ne),U);case u:case y:return z(re+"Hours",0);case l:return z(re+"Minutes",1);case a:return z(re+"Seconds",2);case n:return z(re+"Milliseconds",3);default:return this.clone()}},v.endOf=function(_){return this.startOf(_,!1)},v.$set=function(_,x){var g,A=k.p(_),S="set"+(this.$u?"UTC":""),M=(g={},g[u]=S+"Date",g[y]=S+"Date",g[h]=S+"Month",g[f]=S+"FullYear",g[l]=S+"Hours",g[a]=S+"Minutes",g[n]=S+"Seconds",g[r]=S+"Milliseconds",g)[A],z=A===u?this.$D+(x-this.$W):x;if(A===h||A===f){var B=this.clone().set(y,1);B.$d[M](z),B.init(),this.$d=B.set(y,Math.min(this.$D,B.daysInMonth())).$d}else M&&this.$d[M](z);return this.init(),this},v.set=function(_,x){return this.clone().$set(_,x)},v.get=function(_){return this[k.p(_)]()},v.add=function(_,x){var g,A=this;_=Number(_);var S=k.p(x),M=function(U){var J=T(A);return k.w(J.date(J.date()+Math.round(U*_)),A)};if(S===h)return this.set(h,this.$M+_);if(S===f)return this.set(f,this.$y+_);if(S===u)return M(1);if(S===d)return M(7);var z=(g={},g[a]=i,g[l]=s,g[n]=e,g)[S]||1,B=this.$d.getTime()+_*z;return k.w(B,this)},v.subtract=function(_,x){return this.add(-1*_,x)},v.format=function(_){var x=this,g=this.$locale();if(!this.isValid())return g.invalidDate||m;var A=_||"YYYY-MM-DDTHH:mm:ssZ",S=k.z(this),M=this.$H,z=this.$m,B=this.$M,U=g.weekdays,J=g.months,re=g.meridiem,ie=function(R,L,Y,ae){return R&&(R[L]||R(x,A))||Y[L].slice(0,ae)},ne=function(R){return k.s(M%12||12,R,"0")},K=re||function(R,L,Y){var ae=R<12?"AM":"PM";return Y?ae.toLowerCase():ae};return A.replace(D,function(R,L){return L||function(Y){switch(Y){case"YY":return String(x.$y).slice(-2);case"YYYY":return k.s(x.$y,4,"0");case"M":return B+1;case"MM":return k.s(B+1,2,"0");case"MMM":return ie(g.monthsShort,B,J,3);case"MMMM":return ie(J,B);case"D":return x.$D;case"DD":return k.s(x.$D,2,"0");case"d":return String(x.$W);case"dd":return ie(g.weekdaysMin,x.$W,U,2);case"ddd":return ie(g.weekdaysShort,x.$W,U,3);case"dddd":return U[x.$W];case"H":return String(M);case"HH":return k.s(M,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return K(M,z,!0);case"A":return K(M,z,!1);case"m":return String(z);case"mm":return k.s(z,2,"0");case"s":return String(x.$s);case"ss":return k.s(x.$s,2,"0");case"SSS":return k.s(x.$ms,3,"0");case"Z":return S}return null}(R)||S.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(_,x,g){var A,S=this,M=k.p(x),z=T(_),B=(z.utcOffset()-this.utcOffset())*i,U=this-z,J=function(){return k.m(S,z)};switch(M){case f:A=J()/12;break;case h:A=J();break;case p:A=J()/3;break;case d:A=(U-B)/6048e5;break;case u:A=(U-B)/864e5;break;case l:A=U/s;break;case a:A=U/i;break;case n:A=U/e;break;default:A=U}return g?A:k.a(A)},v.daysInMonth=function(){return this.endOf(h).$D},v.$locale=function(){return W[this.$L]},v.locale=function(_,x){if(!_)return this.$L;var g=this.clone(),A=V(_,x,!0);return A&&(g.$L=A),g},v.clone=function(){return k.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},E}(),ee=H.prototype;return T.prototype=ee,[["$ms",r],["$s",n],["$m",a],["$H",l],["$W",u],["$M",h],["$y",f],["$D",y]].forEach(function(E){ee[E[1]]=function(v){return this.$g(v,E[0],E[1])}}),T.extend=function(E,v){return E.$i||(E(v,H,T),E.$i=!0),T},T.locale=V,T.isDayjs=q,T.unix=function(E){return T(1e3*E)},T.en=W[F],T.Ls=W,T.p={},T})})(Xo);var Pr=Xo.exports;const ve=c.getDefaultExportFromCjs(Pr);var Zo={exports:{}};(function(o,t){(function(e,i){o.exports=i()})(c.commonjsGlobal,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d\d/,r=/\d\d?/,n=/\d*[^-_:/,()\s\d]+/,a={},l=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(b){this[m]=+b}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var D=b.match(/([+-]|\d\d)/g),C=60*D[1]+(+D[2]||0);return C===0?0:D[0]==="+"?-C:C}(m)}],h=function(m){var b=a[m];return b&&(b.indexOf?b:b.s.concat(b.f))},p=function(m,b){var D,C=a.meridiem;if(C){for(var I=1;I<=24;I+=1)if(m.indexOf(C(I,0,b))>-1){D=I>12;break}}else D=m===(b?"pm":"PM");return D},f={A:[n,function(m){this.afternoon=p(m,!1)}],a:[n,function(m){this.afternoon=p(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[s,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[r,u("seconds")],ss:[r,u("seconds")],m:[r,u("minutes")],mm:[r,u("minutes")],H:[r,u("hours")],h:[r,u("hours")],HH:[r,u("hours")],hh:[r,u("hours")],D:[r,u("day")],DD:[s,u("day")],Do:[n,function(m){var b=a.ordinal,D=m.match(/\d+/);if(this.day=D[0],b)for(var C=1;C<=31;C+=1)b(C).replace(/\[|\]/g,"")===m&&(this.day=C)}],M:[r,u("month")],MM:[s,u("month")],MMM:[n,function(m){var b=h("months"),D=(h("monthsShort")||b.map(function(C){return C.slice(0,3)})).indexOf(m)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[n,function(m){var b=h("months").indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[s,function(m){this.year=l(m)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function y(m){var b,D;b=m,D=a&&a.formats;for(var C=(m=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,T,k){var H=k&&k.toUpperCase();return T||D[k]||e[k]||D[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(ee,E,v){return E||v.slice(1)})})).match(i),I=C.length,O=0;O<I;O+=1){var F=C[O],W=f[F],G=W&&W[0],q=W&&W[1];C[O]=q?{regex:G,parser:q}:F.replace(/^\[|\]$/g,"")}return function(V){for(var T={},k=0,H=0;k<I;k+=1){var ee=C[k];if(typeof ee=="string")H+=ee.length;else{var E=ee.regex,v=ee.parser,_=V.slice(H),x=E.exec(_)[0];v.call(T,x),V=V.replace(x,"")}}return function(g){var A=g.afternoon;if(A!==void 0){var S=g.hours;A?S<12&&(g.hours+=12):S===12&&(g.hours=0),delete g.afternoon}}(T),T}}return function(m,b,D){D.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(l=m.parseTwoDigitYear);var C=b.prototype,I=C.parse;C.parse=function(O){var F=O.date,W=O.utc,G=O.args;this.$u=W;var q=G[1];if(typeof q=="string"){var V=G[2]===!0,T=G[3]===!0,k=V||T,H=G[2];T&&(H=G[2]),a=this.$locale(),!V&&H&&(a=D.Ls[H]),this.$d=function(_,x,g){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1e3:1)*_);var A=y(x)(_),S=A.year,M=A.month,z=A.day,B=A.hours,U=A.minutes,J=A.seconds,re=A.milliseconds,ie=A.zone,ne=new Date,K=z||(S||M?1:ne.getDate()),R=S||ne.getFullYear(),L=0;S&&!M||(L=M>0?M-1:ne.getMonth());var Y=B||0,ae=U||0,pe=J||0,se=re||0;return ie?new Date(Date.UTC(R,L,K,Y,ae,pe,se+60*ie.offset*1e3)):g?new Date(Date.UTC(R,L,K,Y,ae,pe,se)):new Date(R,L,K,Y,ae,pe,se)}catch(fe){return new Date("")}}(F,q,W),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),k&&F!=this.format(q)&&(this.$d=new Date("")),a={}}else if(q instanceof Array)for(var ee=q.length,E=1;E<=ee;E+=1){G[1]=q[E-1];var v=D.apply(this,G);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}E===ee&&(this.$d=new Date(""))}else I.call(this,O)}}})})(Zo);var Tr=Zo.exports;const Mr=c.getDefaultExportFromCjs(Tr);function Qi(o,t){c.addMessages(o,t)}function Or(o){c.$locale.set(o)}const eo={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"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",SelfExclusionFor2Months:"2 Months",SelfExclusionFor3Months:"3 Months",SelfExclusionFor6Months:"6 Months",SelfExclusionFor7Months:"7 Months",SelfExclusionFor8Months:"8 Months",SelfExclusionFor9Months:"9 Months",SelfExclusionFor10Months:"10 Months",SelfExclusionFor11Months:"11 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor2Years:"2 Years",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"en-us":{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"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",SelfExclusionFor2Months:"2 Months",SelfExclusionFor3Months:"3 Months",SelfExclusionFor6Months:"6 Months",SelfExclusionFor7Months:"7 Months",SelfExclusionFor8Months:"8 Months",SelfExclusionFor9Months:"9 Months",SelfExclusionFor10Months:"10 Months",SelfExclusionFor11Months:"11 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor2Years:"2 Years",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText:"<p>在自我排除期間,您的帳戶將完全受到限制。</br> 自我排除僅可在您選擇的期間結束後,通過與客戶支援聯繫進行解除,並將接受審查和冷靜期。</br> 或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中暫停(最多6週)。</br> 如果您更願意關閉帳戶,可以通過'<a href='{baseurl}/{lang}/account/account-closure'>關閉帳戶</a>'選項進行關閉。</br> 我們建議您閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取進一步的建議。</p>",selfExclusionEmailText:"電子郵件:",duration:"時長:",dateInstructions:"如需手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇自我排除時段",selectAPeriod:"選擇一個時段",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。",SelfExclusionFor30Days:"30天",SelfExclusionFor2Months:"2個月",SelfExclusionFor3Months:"3個月",SelfExclusionFor6Months:"6個月",SelfExclusionFor7Months:"7個月",SelfExclusionFor8Months:"8個月",SelfExclusionFor9Months:"9個月",SelfExclusionFor10Months:"10個月",SelfExclusionFor11Months:"11個月",SelfExclusionFor1Year:"1年",SelfExclusionFor2Years:"2年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到",selfExclusionSuccess:"自我排斥活躍",confirmationModalTitle:"確認",confirmationModalTextPeriod:"您確定要自我排除 {period} 嗎?",confirmationModalTextUntil:"您確定要自我排除直到 {date} 嗎?",generalError:"提取自我排除时发生错误。",errorSelfExclusionCall:"发出自我排除请求时出现问题。",InvalidSession:"会话已过期。"},fr:{titleSelfExclusion:"Auto-Exclusion",selfExclusionText:"<p>Pendant la période d'auto-exclusion, l'accès à votre compte sera entièrement restreint.</br> L'auto-exclusion ne peut être levée qu'après la période que vous avez sélectionnée et en contactant le Service Client, sous réserve d'une révision et d'une période de réflexion.</br> Alternativement, vous pouvez choisir de prendre un '<a href='{baseurl}/{lang}/account/timeout'>temps de pause</a>' (jusqu'à 6 semaines) via l'option correspondante.</br> Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br> Nous vous recommandons également de consulter nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu Responsable</a>' pour des conseils supplémentaires si nécessaire.</p>",selfExclusionEmailText:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionnez 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",SelfExclusionFor2Months:"2 Mois",SelfExclusionFor3Months:"3 Mois",SelfExclusionFor6Months:"6 Mois",SelfExclusionFor7Months:"7 Mois",SelfExclusionFor8Months:"8 Mois",SelfExclusionFor9Months:"9 Mois",SelfExclusionFor10Months:"10 Mois",SelfExclusionFor11Months:"11 Mois",SelfExclusionFor1Year:"1 An",SelfExclusionFor2Years:"2 Ans",SelfExclusionFor5Years:"5 Ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à",selfExclusionSuccess:"Auto exclusion active",confirmationModalTitle:"Confirmation",confirmationModalTextPeriod:"Êtes-vous sûr de vouloir vous auto-exclure pour {period} ?",confirmationModalTextUntil:"Êtes-vous sûr de vouloir vous auto-exclure jusqu'au {date} ?",generalError:"Une erreur s'est produite lors de la récupération de l'auto-exclusion.",errorSelfExclusionCall:"Un problème est survenu lors de la demande d'auto-exclusion.",InvalidSession:"La session a expiré."},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText:"<p>În timpul perioadei de autoexcludere, accesul la contul dvs. va fi complet restricționat.</br> Autoexcluderea poate fi ridicată numai după ce perioada selectată de dvs. a expirat, contactând Suportul Clienți, și va fi supusă unei revizuiri și unei perioade de reflecție.</br> Alternativ, puteți alege să luați o '<a href='{baseurl}/{lang}/account/timeout'>pauză</a>' (o întrerupere de până la 6 săptămâni) prin opțiunea corespunzătoare.</br> Dacă preferați să vă închideți contul, puteți face acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br> Vă recomandăm, de asemenea, să consultați paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc Responsabil</a>' pentru sfaturi suplimentare, dacă este necesar.</p>",selfExclusionEmailText:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",forever:"Pentru totdeauna",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 de Zile",SelfExclusionFor2Months:"2 Luni",SelfExclusionFor3Months:"3 Luni",SelfExclusionFor6Months:"6 Luni",SelfExclusionFor7Months:"7 Luni",SelfExclusionFor8Months:"8 Luni",SelfExclusionFor9Months:"9 Luni",SelfExclusionFor10Months:"10 Luni",SelfExclusionFor11Months:"11 Luni",SelfExclusionFor1Year:"1 An",SelfExclusionFor2Years:"2 Ani",SelfExclusionFor5Years:"5 Ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la",selfExclusionSuccess:"Auto-excludere activa",confirmationModalTitle:"Confirmare",confirmationModalTextPeriod:"Sunteți sigur că doriți să vă auto-excludeți pentru {period}?",confirmationModalTextUntil:"Sunteți sigur că doriți să vă auto-excludeți până la {date}?",generalError:"A apărut o eroare la preluarea auto-excluderii.",errorSelfExclusionCall:"A apărut o problemă la efectuarea cererii de auto-excludere.",InvalidSession:"Sesiunea a expirat."},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo se puede levantar después de que haya pasado el período seleccionado, comunicándose con Atención al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede optar por tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (un descanso de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos que lea nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",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} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor2Years:"2 Años",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto Exclusión activa.",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta estará totalmente restrito.</br> A autoexclusão só pode ser levantada após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a uma revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer uma '<a href='{baseurl}/{lang}/account/timeout'>pausa</a>' (um intervalo de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar a sua conta, pode fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia as nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para introduzir manualmente a data, 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é às {date} 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Tem a certeza de que deseja autoexcluir-se por {period}?",confirmationModalTextUntil:"Tem a certeza de que deseja autoexcluir-se até {date}?",generalError:"Ocorreu um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Ocorreu um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText:"<p>Tijekom razdoblja samoisključenja, pristup vašem računu bit će potpuno ograničen.</br> Samoisključenje se može ukinuti tek nakon što istekne razdoblje koje ste odabrali, uz kontaktiranje Korisničke podrške, uz reviziju i razdoblje hlađenja.</br> Alternativno, možete odabrati '<a href='{baseurl}/{lang}/account/timeout'>stanku</a>' (pauzu do 6 tjedana) putem odgovarajuće opcije.</br> Ako radije želite zatvoriti svoj račun, to možete učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br> Također vam preporučujemo da pročitate naše stranice s pomoći o '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za dodatne savjete, ako su vam potrebni.</p>",selfExclusionEmailText:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor2Months:"2 Mjeseca",SelfExclusionFor3Months:"3 Mjeseca",SelfExclusionFor6Months:"6 Mjeseci",SelfExclusionFor7Months:"7 Mjeseci",SelfExclusionFor8Months:"8 Mjeseci",SelfExclusionFor9Months:"9 Mjeseci",SelfExclusionFor10Months:"10 Mjeseci",SelfExclusionFor11Months:"11 Mjeseci",SelfExclusionFor1Year:"1 Godina",SelfExclusionFor2Years:"2 Godina",SelfExclusionFor5Years:"5 Godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do",selfExclusionSuccess:"Aktivno samoisključivanje",confirmationModalTitle:"Potvrda",confirmationModalTextPeriod:"Jeste li sigurni da se želite samoisključiti na {period}?",confirmationModalTextUntil:"Jeste li sigurni da se želite samoisključiti do {date}?",generalError:"Došlo je do pogreške prilikom dohvaćanja samoisključenja.",errorSelfExclusionCall:"Došlo je do problema prilikom slanja zahtjeva za samoisključenje.",InvalidSession:"Sesija je istekla."},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta será completamente restrito.</br> A autoexclusão só pode ser removida após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer um '<a href='{baseurl}/{lang}/account/timeout'>intervalo</a>' (uma pausa de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar sua conta, você pode fazer isso através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir manualmente a data, use 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",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Você tem certeza de que deseja se autoexcluir por {period}?",confirmationModalTextUntil:"Você tem certeza de que deseja se autoexcluir até {date}?",generalError:"Houve um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Houve um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo puede levantarse después de que haya pasado el período que seleccionó, comunicándose con el Servicio al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede elegir tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (una pausa de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo mediante la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos leer nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si lo necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",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} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto-exclusión activa",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntil:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText:"<p>Kendinizi dışlama süresince hesabınıza erişiminiz tamamen kısıtlanacaktır.</br> Kendinizi dışlama, yalnızca seçtiğiniz süre sona erdikten sonra, Müşteri Hizmetleri ile iletişime geçerek kaldırılabilir ve inceleme ile bir düşünme süresine tabi olacaktır.</br> Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Mola</a>' seçeneğiyle hizmetlerimizden (6 haftaya kadar bir ara) faydalanmayı tercih edebilirsiniz.</br> Hesabınızı kapatmayı tercih ederseniz, bunu '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla yapabilirsiniz.</br> Ayrıca, gerektiğinde daha fazla tavsiye almak için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Oyun</a>' yardım sayfalarımızı okumanızı öneririz.</p>",selfExclusionEmailText:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kendi kendini hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} saat 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor30Days:"30 Gün",SelfExclusionFor2Months:"2 Ay",SelfExclusionFor3Months:"3 Ay",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor7Months:"7 Ay",SelfExclusionFor8Months:"8 Ay",SelfExclusionFor9Months:"9 Ay",SelfExclusionFor10Months:"10 Ay",SelfExclusionFor11Months:"11 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor2Years:"2 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Tarihe kadar",selfExclusionSuccess:"Kendini dışlama etkin",confirmationModalTitle:"Onay",confirmationModalTextPeriod:"{period} için kendinizi hariç tutmak istediğinizden emin misiniz?",confirmationModalTextUntil:"{date} tarihine kadar kendinizi hariç tutmak istediğinizden emin misiniz?",generalError:"Kendi kendini dışlama alınırken bir hata oluştu.",errorSelfExclusionCall:"Kendi kendini dışlama isteği yapılırken bir sorun oluştu.",InvalidSession:"Oturum süresi doldu."}};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2019 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const St=globalThis,Di=St.ShadowRoot&&(St.ShadyCSS===void 0||St.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ki=Symbol(),to=new WeakMap;let Pi=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==ki)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Di&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=to.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&to.set(e,t))}return t}toString(){return this.cssText}};const
|
|
13
|
+
*/const St=globalThis,Di=St.ShadowRoot&&(St.ShadyCSS===void 0||St.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ki=Symbol(),to=new WeakMap;let Pi=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==ki)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Di&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=to.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&to.set(e,t))}return t}toString(){return this.cssText}};const Fr=o=>new Pi(typeof o=="string"?o:o+"",void 0,ki),N=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((i,s,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+o[r+1],o[0]);return new Pi(e,o,ki)},Qo=(o,t)=>{if(Di)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=St.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,o.appendChild(i)}},io=Di?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Fr(e)})(o):o;/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/const{is:
|
|
17
|
+
*/const{is:Nr,defineProperty:zr,getOwnPropertyDescriptor:Lr,getOwnPropertyNames:$r,getOwnPropertySymbols:Rr,getPrototypeOf:Hr}=Object,we=globalThis,oo=we.trustedTypes,Br=oo?oo.emptyScript:"",Ht=we.reactiveElementPolyfillSupport,ot=(o,t)=>o,si={toAttribute(o,t){switch(t){case Boolean:o=o?Br:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch(i){e=null}}return e}},es=(o,t)=>!Nr(o,t),so={attribute:!0,type:String,converter:si,reflect:!1,useDefault:!1,hasChanged:es};var Uo,Wo;(Uo=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Wo=we.litPropertyMetadata)!=null||(we.litPropertyMetadata=new WeakMap);class $e extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=so){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&zr(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){var n;const{get:s,set:r}=(n=Lr(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a}};return{get:s,set(a){const l=s==null?void 0:s.call(this);r==null||r.call(this,a),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:so}static _$Ei(){if(this.hasOwnProperty(ot("elementProperties")))return;const t=Hr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ot("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ot("properties"))){const e=this.properties,i=[...$r(e),...Rr(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(io(s))}else t!==void 0&&e.push(io(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Qo(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var r;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const n=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:si).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,e){var r,n,a,l;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const u=i.getPropertyOptions(s),d=typeof u.converter=="function"?{fromAttribute:u.converter}:((r=u.converter)==null?void 0:r.fromAttribute)!==void 0?u.converter:si;this._$Em=s,this[s]=(l=(a=d.fromAttribute(e,u.type))!=null?a:(n=this._$Ej)==null?void 0:n.get(s))!=null?l:null,this._$Em=null}}requestUpdate(t,e,i){var s,r;if(t!==void 0){const n=this.constructor,a=this[t];if(i!=null||(i=n.getPropertyOptions(t)),!(((s=i.hasChanged)!=null?s:es)(a,e)||i.useDefault&&i.reflect&&a===((r=this._$Ej)==null?void 0:r.get(t))&&!this.hasAttribute(n._$Eu(t,i))))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:r},n){var a,l,u;i&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,(l=n!=null?n:e)!=null?l:this[t]),r!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),s===!0&&this._$Em!==t&&((u=this._$Eq)!=null?u:this._$Eq=new Set).add(t))}_$EP(){return Ge(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,a]of r){const{wrapped:l}=a,u=this[n];l!==!0||this._$AL.has(n)||u===void 0||this.C(n,void 0,a,u)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}}var qo;$e.elementStyles=[],$e.shadowRootOptions={mode:"open"},$e[ot("elementProperties")]=new Map,$e[ot("finalized")]=new Map,Ht==null||Ht({ReactiveElement:$e}),((qo=we.reactiveElementVersions)!=null?qo:we.reactiveElementVersions=[]).push("2.1.0");/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/const st=globalThis,
|
|
21
|
+
*/const st=globalThis,Ct=st.trustedTypes,ro=Ct?Ct.createPolicy("lit-html",{createHTML:o=>o}):void 0,ts="$lit$",xe=`lit$${Math.random().toFixed(9).slice(2)}$`,is="?"+xe,Yr=`<${is}>`,Ie=document,nt=()=>Ie.createComment(""),at=o=>o===null||typeof o!="object"&&typeof o!="function",Ti=Array.isArray,jr=o=>Ti(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Bt=`[
|
|
22
22
|
\f\r]`,Je=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,no=/-->/g,ao=/>/g,De=RegExp(`>|${Bt}(?:([^\\s"'>=/]+)(${Bt}*=${Bt}*(?:[^
|
|
23
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),lo=/'/g,co=/"/g,os=/^(?:script|style|textarea|title)$/i,je=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),uo=new WeakMap,ke=Ie.createTreeWalker(Ie,129);function ss(o,t){if(!Ti(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ro!==void 0?ro.createHTML(t):t}const Vr=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":t===3?"<math>":"",n=Je;for(let a=0;a<e;a++){const l=o[a];let u,d,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,d=n.exec(l),d!==null);)p=n.lastIndex,n===Je?d[1]==="!--"?n=no:d[1]!==void 0?n=ao:d[2]!==void 0?(os.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=De):d[3]!==void 0&&(n=De):n===De?d[0]===">"?(n=s!=null?s:Je,h=-1):d[1]===void 0?h=-2:(h=n.lastIndex-d[2].length,u=d[1],n=d[3]===void 0?De:d[3]==='"'?co:lo):n===co||n===lo?n=De:n===no||n===ao?n=Je:(n=De,s=void 0);const f=n===De&&o[a+1].startsWith("/>")?" ":"";r+=n===Je?l+Yr:h>=0?(i.push(u),l.slice(0,h)+ts+l.slice(h)+xe+f):l+xe+(h===-2?a:f)}return[ss(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class lt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[u,d]=Vr(t,e);if(this.el=lt.createElement(u,i),ke.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=ke.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(ts)){const p=d[n++],f=s.getAttribute(h).split(xe),
|
|
23
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),lo=/'/g,co=/"/g,os=/^(?:script|style|textarea|title)$/i,je=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),uo=new WeakMap,ke=Ie.createTreeWalker(Ie,129);function ss(o,t){if(!Ti(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ro!==void 0?ro.createHTML(t):t}const Vr=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":t===3?"<math>":"",n=Je;for(let a=0;a<e;a++){const l=o[a];let u,d,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,d=n.exec(l),d!==null);)p=n.lastIndex,n===Je?d[1]==="!--"?n=no:d[1]!==void 0?n=ao:d[2]!==void 0?(os.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=De):d[3]!==void 0&&(n=De):n===De?d[0]===">"?(n=s!=null?s:Je,h=-1):d[1]===void 0?h=-2:(h=n.lastIndex-d[2].length,u=d[1],n=d[3]===void 0?De:d[3]==='"'?co:lo):n===co||n===lo?n=De:n===no||n===ao?n=Je:(n=De,s=void 0);const f=n===De&&o[a+1].startsWith("/>")?" ":"";r+=n===Je?l+Yr:h>=0?(i.push(u),l.slice(0,h)+ts+l.slice(h)+xe+f):l+xe+(h===-2?a:f)}return[ss(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class lt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[u,d]=Vr(t,e);if(this.el=lt.createElement(u,i),ke.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=ke.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(ts)){const p=d[n++],f=s.getAttribute(h).split(xe),y=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:y[2],strings:f,ctor:y[1]==="."?Wr:y[1]==="?"?qr:y[1]==="@"?Kr:Ft}),s.removeAttribute(h)}else h.startsWith(xe)&&(l.push({type:6,index:r}),s.removeAttribute(h));if(os.test(s.tagName)){const h=s.textContent.split(xe),p=h.length-1;if(p>0){s.textContent=Ct?Ct.emptyScript:"";for(let f=0;f<p;f++)s.append(h[f],nt()),ke.nextNode(),l.push({type:2,index:++r});s.append(h[p],nt())}}}else if(s.nodeType===8)if(s.data===is)l.push({type:2,index:r});else{let h=-1;for(;(h=s.data.indexOf(xe,h+1))!==-1;)l.push({type:7,index:r}),h+=xe.length-1}r++}}static createElement(t,e){const i=Ie.createElement("template");return i.innerHTML=t,i}}function Ve(o,t,e=o,i){var n,a,l;if(t===je)return t;let s=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const r=at(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==r&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),r===void 0?s=void 0:(s=new r(o),s._$AT(o,e,i)),i!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[i]=s:e._$Cl=s),s!==void 0&&(t=Ve(o,s._$AS(o,t.values),s,i)),t}class Ur{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 u;const{el:{content:e},parts:i}=this._$AD,s=((u=t==null?void 0:t.creationScope)!=null?u:Ie).importNode(e,!0);ke.currentNode=s;let r=ke.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let d;l.type===2?d=new mt(r,r.nextSibling,this,t):l.type===1?d=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(d=new Gr(r,this,t)),this._$AV.push(d),l=i[++a]}n!==(l==null?void 0:l.index)&&(r=ke.nextNode(),n++)}return ke.currentNode=Ie,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class mt{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,i,s){var r;this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(r=s==null?void 0:s.isConnected)!=null?r:!0}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=Ve(this,t,e),at(t)?t===te||t==null||t===""?(this._$AH!==te&&this._$AR(),this._$AH=te):t!==this._$AH&&t!==je&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):jr(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==te&&at(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ie.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=lt.createElement(ss(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===s)this._$AH.p(e);else{const n=new Ur(s,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=uo.get(t.strings);return e===void 0&&uo.set(t.strings,e=new lt(t)),e}k(t){Ti(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new mt(this.O(nt()),this.O(nt()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.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._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Ft{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,r){this.type=1,this._$AH=te,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=te}_$AI(t,e=this,i,s){const r=this.strings;let n=!1;if(r===void 0)t=Ve(this,t,e,0),n=!at(t)||t!==this._$AH&&t!==je,n&&(this._$AH=t);else{const a=t;let l,u;for(t=r[0],l=0;l<r.length-1;l++)u=Ve(this,a[i+l],e,l),u===je&&(u=this._$AH[l]),n||(n=!at(u)||u!==this._$AH[l]),u===te?t=te:t!==te&&(t+=(u!=null?u:"")+r[l+1]),this._$AH[l]=u}n&&!s&&this.j(t)}j(t){t===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class Wr extends Ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===te?void 0:t}}class qr extends Ft{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==te)}}class Kr extends Ft{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var n;if((t=(n=Ve(this,t,e,0))!=null?n:te)===je)return;const i=this._$AH,s=t===te&&i!==te||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==te&&(i===te||s);s&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)==null?void 0:e.host)!=null?i:this.element,t):this._$AH.handleEvent(t)}}class Gr{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Ve(this,t)}}const Yt=st.litHtmlPolyfillSupport;var Ko;Yt==null||Yt(lt,mt),((Ko=st.litHtmlVersions)!=null?Ko:st.litHtmlVersions=[]).push("3.3.0");const Jr=(o,t,e)=>{var r,n;const i=(r=e==null?void 0:e.renderBefore)!=null?r:t;let s=i._$litPart$;if(s===void 0){const a=(n=e==null?void 0:e.renderBefore)!=null?n:null;i._$litPart$=s=new mt(t.insertBefore(nt(),a),a,void 0,e!=null?e:{})}return s._$AI(o),s};/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
34
34
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
35
35
|
*/const rs=[],ri=new Set,Mi=new Set;function ns(o){return o&&Object.prototype.hasOwnProperty.call(o,"__themes")}function Zr(o){return ns(customElements.get(o))}function Qr(o=[]){return[o].flat(1/0).filter(t=>t instanceof Pi?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function as(o,t){return(o||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function ls(o){return o.map(t=>t.cssText).join(`
|
|
36
|
-
`)}const Dt="vaadin-themable-mixin-style";function en(o,t){const e=document.createElement("style");e.id=Dt,e.textContent=ls(o),t.content.appendChild(e)}function tn(o){if(!o.shadowRoot)return;const t=o.constructor;if(o instanceof Re)[...o.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),Qo(o.shadowRoot,t.elementStyles);else{const e=o.shadowRoot.getElementById(Dt),i=t.prototype._template;e.textContent=i.content.getElementById(Dt).textContent}}function on(o){ri.forEach(t=>{const e=t.deref();e instanceof o?tn(e):e||ri.delete(t)})}function cs(o){if(o.prototype instanceof Re)o.elementStyles=o.finalizeStyles(o.styles);else{const t=o.prototype._template;t.content.getElementById(Dt).textContent=ls(o.getStylesForThis())}Mi.forEach(t=>{const e=customElements.get(t);e!==o&&e.prototype instanceof o&&cs(e)})}function sn(o,t){const e=o.__themes;return!e||!t?!1:e.some(i=>i.styles.some(s=>t.some(r=>r.cssText===s.cssText)))}function X(o,t,e={}){t=Qr(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(o,t,e):rs.push({themeFor:o,styles:t,include:e.include,moduleId:e.moduleId}),o&&Mi.forEach(i=>{if(as(o,i)&&Zr(i)){const s=customElements.get(i);sn(s,t)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),cs(s),on(s)}})}function ni(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():rs}function rn(o=""){let t=0;return o.startsWith("lumo-")||o.startsWith("material-")?t=1:o.startsWith("vaadin-")&&(t=2),t}function us(o){const t=[];return o.include&&[].concat(o.include).forEach(e=>{const i=ni().find(s=>s.moduleId===e);i?t.push(...us(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`)},o.styles),t}function nn(o){const t=`${o}-default-theme`,e=ni().filter(i=>i.moduleId!==t&&as(i.themeFor,o)).map(i=>vt(gt({},i),{styles:[...us(i),...i.styles],includePriority:rn(i.moduleId)})).sort((i,s)=>s.includePriority-i.includePriority);return e.length>0?e:ni().filter(i=>i.moduleId===t)}const
|
|
36
|
+
`)}const Dt="vaadin-themable-mixin-style";function en(o,t){const e=document.createElement("style");e.id=Dt,e.textContent=ls(o),t.content.appendChild(e)}function tn(o){if(!o.shadowRoot)return;const t=o.constructor;if(o instanceof Re)[...o.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),Qo(o.shadowRoot,t.elementStyles);else{const e=o.shadowRoot.getElementById(Dt),i=t.prototype._template;e.textContent=i.content.getElementById(Dt).textContent}}function on(o){ri.forEach(t=>{const e=t.deref();e instanceof o?tn(e):e||ri.delete(t)})}function cs(o){if(o.prototype instanceof Re)o.elementStyles=o.finalizeStyles(o.styles);else{const t=o.prototype._template;t.content.getElementById(Dt).textContent=ls(o.getStylesForThis())}Mi.forEach(t=>{const e=customElements.get(t);e!==o&&e.prototype instanceof o&&cs(e)})}function sn(o,t){const e=o.__themes;return!e||!t?!1:e.some(i=>i.styles.some(s=>t.some(r=>r.cssText===s.cssText)))}function X(o,t,e={}){t=Qr(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(o,t,e):rs.push({themeFor:o,styles:t,include:e.include,moduleId:e.moduleId}),o&&Mi.forEach(i=>{if(as(o,i)&&Zr(i)){const s=customElements.get(i);sn(s,t)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),cs(s),on(s)}})}function ni(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():rs}function rn(o=""){let t=0;return o.startsWith("lumo-")||o.startsWith("material-")?t=1:o.startsWith("vaadin-")&&(t=2),t}function us(o){const t=[];return o.include&&[].concat(o.include).forEach(e=>{const i=ni().find(s=>s.moduleId===e);i?t.push(...us(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`)},o.styles),t}function nn(o){const t=`${o}-default-theme`,e=ni().filter(i=>i.moduleId!==t&&as(i.themeFor,o)).map(i=>vt(gt({},i),{styles:[...us(i),...i.styles],includePriority:rn(i.moduleId)})).sort((i,s)=>s.includePriority-i.includePriority);return e.length>0?e:ni().filter(i=>i.moduleId===t)}const Fe=o=>class extends Xr(o){constructor(){super(),ri.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Mi.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||ns(this)||en(this.getStylesForThis(),e)}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...[e].flat(1/0),...i]:i}static getStylesForThis(){const e=o.__themes||[],i=Object.getPrototypeOf(this.prototype),s=(i?i.constructor.__themes:[])||[];this.__themes=[...e,...s,...nn(this.is)];const r=this.__themes.flatMap(n=>n.styles);return r.filter((n,a)=>a===r.lastIndexOf(n))}};/**
|
|
37
37
|
* @license
|
|
38
38
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
39
39
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
* @license
|
|
43
43
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
44
44
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
45
|
-
*/const ln=
|
|
45
|
+
*/const ln=N`
|
|
46
46
|
:host {
|
|
47
47
|
--lumo-size-xs: 1.625rem;
|
|
48
48
|
--lumo-size-s: 1.875rem;
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
63
63
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
64
|
-
*/const cn=
|
|
64
|
+
*/const cn=N`
|
|
65
65
|
:host {
|
|
66
66
|
/* Square */
|
|
67
67
|
--lumo-space-xs: 0.25rem;
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
* @license
|
|
89
89
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
90
90
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
91
|
-
*/const un=
|
|
91
|
+
*/const un=N`
|
|
92
92
|
:host {
|
|
93
93
|
/* Border radius */
|
|
94
94
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
/* Clickable element cursor */
|
|
106
106
|
--lumo-clickable-cursor: default;
|
|
107
107
|
}
|
|
108
|
-
`;
|
|
108
|
+
`;N`
|
|
109
109
|
html {
|
|
110
110
|
/* Button */
|
|
111
111
|
--vaadin-button-background: var(--lumo-contrast-5pct);
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
* @license
|
|
193
193
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
194
194
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
195
|
-
*/const dn=
|
|
195
|
+
*/const dn=N`
|
|
196
196
|
:host {
|
|
197
197
|
/* Base (background) */
|
|
198
198
|
--lumo-base-color: #fff;
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
--lumo-disabled-text-color: GrayText;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
`;qe("color-props",dn);const hn=
|
|
280
|
+
`;qe("color-props",dn);const hn=N`
|
|
281
281
|
[theme~='dark'] {
|
|
282
282
|
/* Base (background) */
|
|
283
283
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -399,7 +399,7 @@
|
|
|
399
399
|
* @license
|
|
400
400
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
401
401
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
402
|
-
*/const pn=
|
|
402
|
+
*/const pn=N`
|
|
403
403
|
:host {
|
|
404
404
|
/* prettier-ignore */
|
|
405
405
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -419,7 +419,7 @@
|
|
|
419
419
|
--lumo-line-height-s: 1.375;
|
|
420
420
|
--lumo-line-height-m: 1.625;
|
|
421
421
|
}
|
|
422
|
-
`,fn=
|
|
422
|
+
`,fn=N`
|
|
423
423
|
body,
|
|
424
424
|
:host {
|
|
425
425
|
font-family: var(--lumo-font-family);
|
|
@@ -515,7 +515,7 @@
|
|
|
515
515
|
* @license
|
|
516
516
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
517
517
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
518
|
-
*/const ds=
|
|
518
|
+
*/const ds=N`
|
|
519
519
|
:host {
|
|
520
520
|
top: var(--lumo-space-m);
|
|
521
521
|
right: var(--lumo-space-m);
|
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
* @license
|
|
585
585
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
586
586
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
587
|
-
*/const hs=
|
|
587
|
+
*/const hs=N`
|
|
588
588
|
:host([opening]),
|
|
589
589
|
:host([closing]) {
|
|
590
590
|
animation: 0.14s lumo-overlay-dummy-animation;
|
|
@@ -614,7 +614,7 @@
|
|
|
614
614
|
opacity: 0;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
`;X("",hs,{moduleId:"lumo-menu-overlay-core"});const mn=
|
|
617
|
+
`;X("",hs,{moduleId:"lumo-menu-overlay-core"});const mn=N`
|
|
618
618
|
/* Small viewport (bottom sheet) styles */
|
|
619
619
|
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
620
620
|
@media (max-width: 450px), (max-height: 450px) {
|
|
@@ -676,7 +676,7 @@
|
|
|
676
676
|
transform: translateY(150%);
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
|
-
`,ps=[ds,hs,mn];X("",ps,{moduleId:"lumo-menu-overlay"});const _n=
|
|
679
|
+
`,ps=[ds,hs,mn];X("",ps,{moduleId:"lumo-menu-overlay"});const _n=N`
|
|
680
680
|
[part='overlay'] {
|
|
681
681
|
/*
|
|
682
682
|
Width:
|
|
@@ -721,7 +721,7 @@
|
|
|
721
721
|
max-height: 70vh;
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
`;X("vaadin-date-picker-overlay",[ps,_n],{moduleId:"lumo-date-picker-overlay"});const gn=
|
|
724
|
+
`;X("vaadin-date-picker-overlay",[ps,_n],{moduleId:"lumo-date-picker-overlay"});const gn=N`
|
|
725
725
|
:host {
|
|
726
726
|
/* Sizing */
|
|
727
727
|
--lumo-button-size: var(--lumo-size-m);
|
|
@@ -997,7 +997,7 @@
|
|
|
997
997
|
margin-left: 0;
|
|
998
998
|
margin-right: 0;
|
|
999
999
|
}
|
|
1000
|
-
`;X("vaadin-button",gn,{moduleId:"lumo-button"});X("vaadin-date-picker-year",
|
|
1000
|
+
`;X("vaadin-button",gn,{moduleId:"lumo-button"});X("vaadin-date-picker-year",N`
|
|
1001
1001
|
:host([current]) [part='year-number'] {
|
|
1002
1002
|
color: var(--lumo-primary-text-color);
|
|
1003
1003
|
}
|
|
@@ -1021,7 +1021,7 @@
|
|
|
1021
1021
|
color: var(--lumo-disabled-text-color);
|
|
1022
1022
|
content: '\\2022';
|
|
1023
1023
|
}
|
|
1024
|
-
`,{moduleId:"lumo-date-picker-year"});X("vaadin-date-picker-overlay-content",
|
|
1024
|
+
`,{moduleId:"lumo-date-picker-year"});X("vaadin-date-picker-overlay-content",N`
|
|
1025
1025
|
:host {
|
|
1026
1026
|
position: relative;
|
|
1027
1027
|
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
@@ -1171,7 +1171,7 @@
|
|
|
1171
1171
|
padding-left: 50px;
|
|
1172
1172
|
}
|
|
1173
1173
|
}
|
|
1174
|
-
`,{moduleId:"lumo-date-picker-overlay-content"});X("vaadin-month-calendar",
|
|
1174
|
+
`,{moduleId:"lumo-date-picker-overlay-content"});X("vaadin-month-calendar",N`
|
|
1175
1175
|
:host {
|
|
1176
1176
|
-moz-user-select: none;
|
|
1177
1177
|
-webkit-user-select: none;
|
|
@@ -1318,7 +1318,7 @@
|
|
|
1318
1318
|
:host([disabled]) * {
|
|
1319
1319
|
color: var(--lumo-disabled-text-color) !important;
|
|
1320
1320
|
}
|
|
1321
|
-
`,{moduleId:"lumo-month-calendar"});X("vaadin-input-container",
|
|
1321
|
+
`,{moduleId:"lumo-month-calendar"});X("vaadin-input-container",N`
|
|
1322
1322
|
:host {
|
|
1323
1323
|
background: var(--_background);
|
|
1324
1324
|
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
@@ -1500,7 +1500,7 @@
|
|
|
1500
1500
|
* @license
|
|
1501
1501
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1502
1502
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1503
|
-
*/const vn=
|
|
1503
|
+
*/const vn=N`
|
|
1504
1504
|
@font-face {
|
|
1505
1505
|
font-family: 'lumo-icons';
|
|
1506
1506
|
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
@@ -1557,7 +1557,7 @@
|
|
|
1557
1557
|
* @license
|
|
1558
1558
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1559
1559
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1560
|
-
*/const fs=
|
|
1560
|
+
*/const fs=N`
|
|
1561
1561
|
[part$='button'] {
|
|
1562
1562
|
flex: none;
|
|
1563
1563
|
width: 1em;
|
|
@@ -1588,7 +1588,7 @@
|
|
|
1588
1588
|
* @license
|
|
1589
1589
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1590
1590
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1591
|
-
*/const
|
|
1591
|
+
*/const yn=N`
|
|
1592
1592
|
:host {
|
|
1593
1593
|
--_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
|
|
1594
1594
|
}
|
|
@@ -1648,7 +1648,7 @@
|
|
|
1648
1648
|
* @license
|
|
1649
1649
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1650
1650
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1651
|
-
*/const ms=
|
|
1651
|
+
*/const ms=N`
|
|
1652
1652
|
[part='label'] {
|
|
1653
1653
|
align-self: flex-start;
|
|
1654
1654
|
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
@@ -1764,7 +1764,7 @@
|
|
|
1764
1764
|
* @license
|
|
1765
1765
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1766
1766
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1767
|
-
*/const
|
|
1767
|
+
*/const bn=N`
|
|
1768
1768
|
:host {
|
|
1769
1769
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
1770
1770
|
color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
|
|
@@ -1895,7 +1895,7 @@
|
|
|
1895
1895
|
[part='clear-button']::before {
|
|
1896
1896
|
content: var(--lumo-icons-cross);
|
|
1897
1897
|
}
|
|
1898
|
-
`,_s=[ms,fs,bn
|
|
1898
|
+
`,_s=[ms,fs,yn,bn];X("",_s,{moduleId:"lumo-input-field-shared-styles"});const xn=N`
|
|
1899
1899
|
[part='toggle-button']::before {
|
|
1900
1900
|
content: var(--lumo-icons-calendar);
|
|
1901
1901
|
}
|
|
@@ -1933,7 +1933,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1933
1933
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1934
1934
|
Code distributed by Google as part of the polymer project is also
|
|
1935
1935
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1936
|
-
*/let wn=/(url\()([^)]*)(\))/g,En=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,
|
|
1936
|
+
*/let wn=/(url\()([^)]*)(\))/g,En=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,yt,de;function rt(o,t){if(o&&En.test(o)||o==="//")return o;if(yt===void 0){yt=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",yt=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),yt)try{return new URL(o,t).href}catch(e){return o}return de||(de=document.implementation.createHTMLDocument("temp"),de.base=de.createElement("base"),de.head.appendChild(de.base),de.anchor=de.createElement("a"),de.body.appendChild(de.anchor)),de.base.href=t,de.anchor.href=o,de.anchor.href||o}function Oi(o,t){return o.replace(wn,function(e,i,s,r){return i+"'"+rt(s.replace(/["']/g,""),t)+"'"+r})}function Ii(o){return o.substring(0,o.lastIndexOf("/")+1)}/**
|
|
1937
1937
|
@license
|
|
1938
1938
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1939
1939
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1941,7 +1941,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1941
1941
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1942
1942
|
Code distributed by Google as part of the polymer project is also
|
|
1943
1943
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1944
|
-
*/const gs=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Sn=gs&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const o=new CSSStyleSheet;o.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[o],t.shadowRoot.adoptedStyleSheets[0]===o}catch(o){return!1}})();let
|
|
1944
|
+
*/const gs=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Sn=gs&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const o=new CSSStyleSheet;o.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[o],t.shadowRoot.adoptedStyleSheets[0]===o}catch(o){return!1}})();let An=window.Polymer&&window.Polymer.rootPath||Ii(document.baseURI||window.location.href),kt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Pt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Cn=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,vs=window.Polymer&&window.Polymer.legacyOptimizations||!1,ys=window.Polymer&&window.Polymer.legacyWarnings||!1,Dn=window.Polymer&&window.Polymer.syncInitialRender||!1,ai=window.Polymer&&window.Polymer.legacyUndefined||!1,kn=window.Polymer&&window.Polymer.orderedComputed||!1,ho=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Pn=window.Polymer&&window.Polymer.fastDomIf||!1,po=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Tn=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
1945
1945
|
@license
|
|
1946
1946
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1947
1947
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1957,7 +1957,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1957
1957
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1958
1958
|
Code distributed by Google as part of the polymer project is also
|
|
1959
1959
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1960
|
-
*/let
|
|
1960
|
+
*/let Fi={},bs={};function fo(o,t){Fi[o]=bs[o.toLowerCase()]=t}function mo(o){return Fi[o]||bs[o.toLowerCase()]}function On(o){o.querySelector("style")&&console.warn("dom-module %s has style outside template",o.id)}class ct extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=mo(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,s){e!==i&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=rt(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Ii(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(Pt&&mo(t)!==void 0)throw fo(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,fo(t,this),On(this)}}}ct.prototype.modules=Fi;customElements.define("dom-module",ct);/**
|
|
1961
1961
|
@license
|
|
1962
1962
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1963
1963
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1965,7 +1965,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1965
1965
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1966
1966
|
Code distributed by Google as part of the polymer project is also
|
|
1967
1967
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1968
|
-
*/const In="link[rel=import][type~=css]",
|
|
1968
|
+
*/const In="link[rel=import][type~=css]",Fn="include",_o="shady-unscoped";function xs(o){return ct.import(o)}function go(o){let t=o.body?o.body:o;const e=Oi(t.textContent,o.baseURI),i=document.createElement("style");return i.textContent=e,i}function Nn(o){const t=o.trim().split(/\s+/),e=[];for(let i=0;i<t.length;i++)e.push(...zn(t[i]));return e}function zn(o){const t=xs(o);if(!t)return console.warn("Could not find style data in module named",o),[];if(t._styles===void 0){const e=[];e.push(...Es(t));const i=t.querySelector("template");i&&e.push(...ws(i,t.assetpath)),t._styles=e}return t._styles}function ws(o,t){if(!o._styles){const e=[],i=o.content.querySelectorAll("style");for(let s=0;s<i.length;s++){let r=i[s],n=r.getAttribute(Fn);n&&e.push(...Nn(n).filter(function(a,l,u){return u.indexOf(a)===l})),t&&(r.textContent=Oi(r.textContent,t)),e.push(r)}o._styles=e}return o._styles}function Ln(o){let t=xs(o);return t?Es(t):[]}function Es(o){const t=[],e=o.querySelectorAll(In);for(let i=0;i<e.length;i++){let s=e[i];if(s.import){const r=s.import,n=s.hasAttribute(_o);if(n&&!r._unscopedStyle){const a=go(r);a.setAttribute(_o,""),r._unscopedStyle=a}else r._style||(r._style=go(r));t.push(n?r._unscopedStyle:r._style)}}return t}/**
|
|
1969
1969
|
@license
|
|
1970
1970
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1971
1971
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1981,7 +1981,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1981
1981
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1982
1982
|
Code distributed by Google as part of the polymer project is also
|
|
1983
1983
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1984
|
-
*/function li(o){return o.indexOf(".")>=0}function
|
|
1984
|
+
*/function li(o){return o.indexOf(".")>=0}function Ne(o){let t=o.indexOf(".");return t===-1?o:o.slice(0,t)}function Ss(o,t){return o.indexOf(t+".")===0}function ut(o,t){return t.indexOf(o+".")===0}function dt(o,t,e){return t+e.slice(o.length)}function $n(o,t){return o===t||Ss(o,t)||ut(o,t)}function tt(o){if(Array.isArray(o)){let t=[];for(let e=0;e<o.length;e++){let i=o[e].toString().split(".");for(let s=0;s<i.length;s++)t.push(i[s])}return t.join(".")}else return o}function As(o){return Array.isArray(o)?tt(o).split("."):o.toString().split(".")}function ue(o,t,e){let i=o,s=As(t);for(let r=0;r<s.length;r++){if(!i)return;let n=s[r];i=i[n]}return e&&(e.path=s.join(".")),i}function vo(o,t,e){let i=o,s=As(t),r=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(i=i[a],!i)return}i[r]=e}else i[t]=e;return s.join(".")}/**
|
|
1985
1985
|
@license
|
|
1986
1986
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1987
1987
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1989,7 +1989,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1989
1989
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1990
1990
|
Code distributed by Google as part of the polymer project is also
|
|
1991
1991
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1992
|
-
*/const Tt={},Rn=/-[a-z]/g,Hn=/([A-Z])/g;function
|
|
1992
|
+
*/const Tt={},Rn=/-[a-z]/g,Hn=/([A-Z])/g;function Cs(o){return Tt[o]||(Tt[o]=o.indexOf("-")<0?o:o.replace(Rn,t=>t[1].toUpperCase()))}function Nt(o){return Tt[o]||(Tt[o]=o.replace(Hn,"-$1").toLowerCase())}/**
|
|
1993
1993
|
@license
|
|
1994
1994
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1995
1995
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2013,7 +2013,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2013
2013
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2014
2014
|
Code distributed by Google as part of the polymer project is also
|
|
2015
2015
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2016
|
-
*/const Ms={};let
|
|
2016
|
+
*/const Ms={};let bt=HTMLElement.prototype;for(;bt;){let o=Object.getOwnPropertyNames(bt);for(let t=0;t<o.length;t++)Ms[o[t]]=!0;bt=Object.getPrototypeOf(bt)}const Wn=window.trustedTypes?o=>trustedTypes.isHTML(o)||trustedTypes.isScript(o)||trustedTypes.isScriptURL(o):()=>!1;function qn(o,t){if(!Ms[t]){let e=o[t];e!==void 0&&(o.__data?o._setPendingProperty(t,e):(o.__dataProto?o.hasOwnProperty(JSCompiler_renameProperty("__dataProto",o))||(o.__dataProto=Object.create(o.__dataProto)):o.__dataProto={},o.__dataProto[t]=e))}}const Kn=Q(o=>{const t=Ts(o);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let r=0;r<s.length;r++)this.prototype._createPropertyAccessor(Cs(s[r]))}static attributeNameForProperty(s){return Nt(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let r in s)this._setProperty(r,s[r])}_ensureAttribute(s,r){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,r,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(Wn(s))return s;try{return JSON.stringify(s)}catch(r){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,r){let n;switch(r){case Object:try{n=JSON.parse(s)}catch(a){n=s}break;case Array:try{n=JSON.parse(s)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,r);break}return n}_definePropertyAccessor(s,r){qn(this,s),super._definePropertyAccessor(s,r)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return e});/**
|
|
2017
2017
|
@license
|
|
2018
2018
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2019
2019
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2021,7 +2021,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2021
2021
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2022
2022
|
Code distributed by Google as part of the polymer project is also
|
|
2023
2023
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2024
|
-
*/const Gn={"dom-if":!0,"dom-repeat":!0};let
|
|
2024
|
+
*/const Gn={"dom-if":!0,"dom-repeat":!0};let yo=!1,bo=!1;function Jn(){if(!yo){yo=!0;const o=document.createElement("textarea");o.placeholder="a",bo=o.placeholder===o.textContent}return bo}function Xn(o){Jn()&&o.localName==="textarea"&&o.placeholder&&o.placeholder===o.textContent&&(o.textContent=null)}const Zn=(()=>{const o=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,i)=>{const s=e.getAttribute(i);if(o&&i.startsWith("on-")){t.setAttribute(i,o.createScript(s,i));return}t.setAttribute(i,s)}})();function Qn(o){let t=o.getAttribute("is");if(t&&Gn[t]){let e=o;for(e.removeAttribute("is"),o=e.ownerDocument.createElement(t),e.parentNode.replaceChild(o,e),o.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];Zn(o,e,i),e.removeAttribute(i)}}return o}function Os(o,t){let e=t.parentInfo&&Os(o,t.parentInfo);if(e){for(let i=e.firstChild,s=0;i;i=i.nextSibling)if(t.parentIndex===s++)return i}else return o}function ea(o,t,e,i){i.id&&(t[i.id]=e)}function ta(o,t,e){if(e.events&&e.events.length)for(let i=0,s=e.events,r;i<s.length&&(r=s[i]);i++)o._addMethodEventListenerToNode(t,r.name,r.value,o)}function ia(o,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i)}function oa(o,t,e){return o=o._methodHost||o,function(s){o[e]?o[e](s,s.detail):console.warn("listener method `"+e+"` not defined")}}const sa=Q(o=>{class t extends o{static _parseTemplate(i,s){if(!i._templateInfo){let r=i._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!s,r.stripWhiteSpace=s&&s.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,r,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,s,r){return this._parseTemplateNode(i.content,s,r)}static _parseTemplateNode(i,s,r){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,s,r)||n:a.localName==="slot"&&(s.hasInsertionPoint=!0),Xn(a),a.firstChild&&this._parseTemplateChildNodes(a,s,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,s,r)||n),n||r.noted}static _parseTemplateChildNodes(i,s,r){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=Qn(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)n.textContent+=d.textContent,l=d.nextSibling,i.removeChild(d),d=l;if(s.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let u={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,s,u)&&(u.infoIndex=s.nodeInfoList.push(u)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(i,s,r){let n=i,a=this._parseTemplate(n,s);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,s,r){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,u;u=a[l];l--)n=this._parseTemplateNodeAttribute(i,s,r,u.name,u.value)||n;return n}static _parseTemplateNodeAttribute(i,s,r,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:a}),!0):n==="id"?(r.id=a,!0):!1}static _contentForTemplate(i){let s=i._templateInfo;return s&&s.content||i.content}_stampTemplate(i,s){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),s=s||this.constructor._parseTemplate(i);let r=s.nodeInfoList,n=s.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let u=0,d=r.length,h;u<d&&(h=r[u]);u++){let p=l[u]=Os(a,h);ea(this,a.$,p,h),ia(this,p,h,s),ta(this,p,h)}return a=a,a}_addMethodEventListenerToNode(i,s,r,n){n=n||i;let a=oa(n,s,r);return this._addEventListenerToNode(i,s,a),a}_addEventListenerToNode(i,s,r){i.addEventListener(s,r)}_removeEventListenerFromNode(i,s,r){i.removeEventListener(s,r)}}return t});/**
|
|
2025
2025
|
* @fileoverview
|
|
2026
2026
|
* @suppress {checkPrototypalTypes}
|
|
2027
2027
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -2031,7 +2031,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2031
2031
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
2032
2032
|
* Google as part of the polymer project is also subject to an additional IP
|
|
2033
2033
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2034
|
-
*/let ht=0;const pt=[],$={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Is="__computeInfo",ra=/[A-Z]/;function Vt(o,t,e){let i=o[t];if(!i)i=o[t]={};else if(!o.hasOwnProperty(t)&&(i=o[t]=Object.create(o[t]),e))for(let s in i){let r=i[s],n=i[s]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return i}function it(o,t,e,i,s,r){if(t){let n=!1;const a=ht++;for(let l in e){let u=s?ze(l):l,d=t[u];if(d)for(let h=0,p=d.length,f;h<p&&(f=d[h]);h++)(!f.info||f.info.lastRun!==a)&&(!s||zi(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(o,l,e,i,f.info,s,r),n=!0)}return n}return!1}function na(o,t,e,i,s,r,n,a){let l=!1,u=n?ze(i):i,d=t[u];if(d)for(let h=0,p=d.length,f;h<p&&(f=d[h]);h++)(!f.info||f.info.lastRun!==e)&&(!n||zi(i,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(o,i,s,r,f.info,n,a),l=!0);return l}function zi(o,t){if(t){let e=t.name;return e==o||!!(t.structured&&Ss(e,o))||!!(t.wildcard&&ut(e,o))}else return!0}function xo(o,t,e,i,s){let r=typeof s.method=="string"?o[s.method]:s.method,n=s.property;r?r.call(o,o.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function aa(o,t,e,i,s){let r=o[$.NOTIFY],n,a=ht++;for(let u in t)t[u]&&(r&&na(o,r,a,u,e,i,s)||s&&la(o,u,e))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function la(o,t,e){let i=ze(t);if(i!==t){let s=zt(i)+"-changed";return Ns(o,s,e[t],t),!0}return!1}function Ns(o,t,e,i){let s={value:e,queueProperty:!0};i&&(s.path=i),oe(o).dispatchEvent(new CustomEvent(t,{detail:s}))}function ca(o,t,e,i,s,r){let a=(r?ze(t):t)!=t?t:null,l=a?ue(o,a):o.__data[t];a&&l===void 0&&(l=e[t]),Ns(o,s.eventName,l,a)}function ua(o,t,e,i,s){let r,n=o.detail,a=n&&n.path;a?(i=dt(e,i,a),r=n&&n.value):r=o.currentTarget[e],r=s?!r:r,(!t[$.READ_ONLY]||!t[$.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function da(o,t,e,i,s){let r=o.__data[t];kt&&(r=kt(r,s.attrName,"attribute",o)),o._propertyToAttribute(t,s.attrName,r)}function ha(o,t,e,i){let s=o[$.COMPUTE];if(s)if(kn){ht++;const r=fa(o),n=[];for(let l in t)wo(l,s,n,r,i);let a;for(;a=n.shift();)zs(o,"",t,e,a)&&wo(a.methodInfo,s,n,r,i);Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),o.__dataPending=null}else{let r=t;for(;it(o,s,r,e,i);)Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),r=o.__dataPending,o.__dataPending=null}}const pa=(o,t,e)=>{let i=0,s=t.length-1,r=-1;for(;i<=s;){const n=i+s>>1,a=e.get(t[n].methodInfo)-e.get(o.methodInfo);if(a<0)i=n+1;else if(a>0)s=n-1;else{r=n;break}}r<0&&(r=s+1),t.splice(r,0,o)},wo=(o,t,e,i,s)=>{const r=s?ze(o):o,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==ht&&(!s||zi(o,l.trigger))&&(l.info.lastRun=ht,pa(l.info,e,i))}};function fa(o){let t=o.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=o[$.COMPUTE];let{counts:i,ready:s,total:r}=ma(o),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const u=l.info.methodInfo;--r,--i[u]===0&&s.push(u)})}r!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=t}return t}function ma(o){const t=o[Is],e={},i=o[$.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 i)t[n]||s.push(n);return{counts:e,ready:s,total:r}}function zs(o,t,e,i,s){let r=ui(o,t,e,i,s);if(r===pt)return!1;let n=s.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,r,!0):(o[n]=r,!1)}function _a(o,t,e){let i=o.__dataLinkedPaths;if(i){let s;for(let r in i){let n=i[r];ut(r,t)?(s=dt(r,n,t),o._setPendingPropertyOrPath(s,e,!0,!0)):ut(n,t)&&(s=dt(n,r,t),o._setPendingPropertyOrPath(s,e,!0,!0))}}}function Ut(o,t,e,i,s,r,n){e.bindings=e.bindings||[];let a={kind:i,target:s,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),xa(a)){let{event:u,negate:d}=a.parts[0];a.listenerEvent=u||zt(s)+"-changed",a.listenerNegate=d}let l=t.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let d=a.parts[u];d.compoundIndex=u,ga(o,t,a,d,l)}}function ga(o,t,e,i,s){if(!i.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=i.dependencies,n={index:s,binding:e,part:i,evaluator:o};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=Ls(l),l.wildcard=!0),o._addTemplatePropertyEffect(t,l.rootProperty,{fn:va,info:n,trigger:l})}}}function va(o,t,e,i,s,r,n){let a=n[s.index],l=s.binding,u=s.part;if(r&&u.source&&t.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=e[t];t=dt(u.source,l.target,t),a._setPendingPropertyOrPath(t,d,!1,!0)&&o._enqueueClient(a)}else{let d=s.evaluator._evaluateBinding(o,u,t,e,i,r);d!==pt&&ba(o,a,l,u,d)}}function ba(o,t,e,i,s){if(s=ya(t,s,e,i),kt&&(s=kt(s,e.target,e.kind,t)),e.kind=="attribute")o._valueToNodeAttribute(t,s,e.target);else{let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[$.READ_ONLY]||!t[$.READ_ONLY][r])&&t._setPendingProperty(r,s)&&o._enqueueClient(t):o._setUnmanagedPropertyToNode(t,r,s)}}function ya(o,t,e,i){if(e.isCompound){let s=o.__dataCompoundStorage[e.target];s[i.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(t=t==null?"":t),t}function xa(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function wa(o,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let s=0;s<i.length;s++){let r=i[s],n=e[s],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];Ea(n,u),Sa(n,o,u)}n.__dataHost=o}}function Ea(o,t){if(t.isCompound){let e=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),i=t.parts,s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=i[n].literal;let r=t.target;e[r]=s,t.literal&&t.kind=="property"&&(r==="className"&&(o=oe(o)),o[r]=t.literal)}}function Sa(o,t,e){if(e.listenerEvent){let i=e.parts[0];o.addEventListener(e.listenerEvent,function(s){ua(s,t,e.target,i.source,i.negate)})}}function Eo(o,t,e,i,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||o._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return r&&o._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function ui(o,t,e,i,s){let r=o._methodHost||o,n=r[s.methodName];if(n){let a=o._marshalArgs(s.args,t,e);return a===pt?pt:n.apply(r,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Ca=[],Fs="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Aa="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Da="(?:'(?:[^'\\\\]|\\\\.)*')",ka='(?:"(?:[^"\\\\]|\\\\.)*")',Pa="(?:"+Da+"|"+ka+")",So="(?:("+Fs+"|"+Aa+"|"+Pa+")\\s*)",Ta="(?:"+So+"(?:,\\s*"+So+")*)",Ma="(?:\\(\\s*(?:"+Ta+"?)\\)\\s*)",Oa="("+Fs+"\\s*"+Ma+"?)",Ia="(\\[\\[|{{)\\s*",Na="(?:]]|}})",za="(?:(!)\\s*)?",Fa=Ia+za+Oa+Na,Co=new RegExp(Fa,"g");function Ao(o){let t="";for(let e=0;e<o.length;e++){let i=o[e].literal;t+=i||""}return t}function Wt(o){let t=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:Ca};if(t[2].trim()){let s=t[2].replace(/\\,/g,",").split(",");return La(s,i)}else return i}return null}function La(o,t){return t.args=o.map(function(e){let i=Ls(e);return i.literal||(t.static=!1),i},this),t}function Ls(o){let t=o.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){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=ze(t),e.structured=li(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function Do(o,t,e){let i=ue(o,e);return i===void 0&&(i=t[e]),i}function $s(o,t,e,i){const s={indexSplices:i};ai&&!o._overrideLegacyUndefined&&(t.splices=s),o.notifyPath(e+".splices",s),o.notifyPath(e+".length",t.length),ai&&!o._overrideLegacyUndefined&&(s.indexSplices=[])}function Xe(o,t,e,i,s,r){$s(o,t,e,[{index:i,addedCount:s,removed:r,object:t,type:"splice"}])}function $a(o){return o[0].toUpperCase()+o.substring(1)}const Fi=Q(o=>{const t=sa(Kn(o));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 $}_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(Ze.length){let s=Ze[Ze.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[$.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==$.READ_ONLY);let a=Vt(this,r,!0)[s];a||(a=this[r][s]=[]),a.push(n)}_removePropertyEffect(s,r,n){let a=Vt(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,$.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,$.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,$.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,$.COMPUTE)}_setPendingPropertyOrPath(s,r,n,a){if(a||ze(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=ue(this,s);if(s=vo(this,s,r),!s||!super._shouldPropertyChange(s,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,r,n))return _a(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=oe(s)),s[r]=n)}_setPendingProperty(s,r,n){let a=this.__dataHasPaths&&li(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[$.NOTIFY]&&this[$.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[$.READ_ONLY]||!this[$.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;ha(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),it(this,this[$.REFLECT],r,n,a),it(this,this[$.OBSERVE],r,n,a),l&&aa(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,r,n){this[$.PROPAGATE]&&it(this,this[$.PROPAGATE],s,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,r,n)}_runEffectsForTemplate(s,r,n,a){const l=(u,d)=>{it(this,s.propertyEffects,u,n,d,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,u,n,d)};s.runEffects?s.runEffects(l,r,a):l(r,a)}linkPaths(s,r){s=tt(s),r=tt(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=r}unlinkPaths(s){s=tt(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,r){let n={path:""},a=ue(this,s,n);$s(this,a,n.path,r)}get(s,r){return ue(r||this,s)}set(s,r,n){n?vo(n,s,r):(!this[$.READ_ONLY]||!this[$.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,r,!0)&&this._invalidateProperties()}push(s,...r){let n={path:""},a=ue(this,s,n),l=a.length,u=a.push(...r);return r.length&&Xe(this,a,n.path,l,r.length,[]),u}pop(s){let r={path:""},n=ue(this,s,r),a=!!n.length,l=n.pop();return a&&Xe(this,n,r.path,n.length,0,[l]),l}splice(s,r,n,...a){let l={path:""},u=ue(this,s,l);r<0?r=u.length-Math.floor(-r):r&&(r=Math.floor(r));let d;return arguments.length===2?d=u.splice(r):d=u.splice(r,n,...a),(a.length||d.length)&&Xe(this,u,l.path,r,a.length,d),d}shift(s){let r={path:""},n=ue(this,s,r),a=!!n.length,l=n.shift();return a&&Xe(this,n,r.path,0,0,[l]),l}unshift(s,...r){let n={path:""},a=ue(this,s,n),l=a.unshift(...r);return r.length&&Xe(this,a,n.path,0,r.length,[]),l}notifyPath(s,r){let n;if(arguments.length==1){let a={path:""};r=ue(this,s,a),n=a.path}else Array.isArray(s)?n=tt(s):n=s;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,r){this._addPropertyEffect(s,$.READ_ONLY),r&&(this["_set"+$a(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,r,n){let a={property:s,method:r,dynamicFn:!!n};this._addPropertyEffect(s,$.OBSERVE,{fn:xo,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(r,$.OBSERVE,{fn:xo,info:a,trigger:{name:r}})}_createMethodObserver(s,r){let n=Wt(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");Eo(this,n,$.OBSERVE,ui,null,r)}_createNotifyingProperty(s){this._addPropertyEffect(s,$.NOTIFY,{fn:ca,info:{eventName:zt(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,$.REFLECT,{fn:da,info:{attrName:r}})}_createComputedProperty(s,r,n){let a=Wt(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=Eo(this,a,$.COMPUTE,zs,s,n);Vt(this,Is)[s]=l}_marshalArgs(s,r,n){const a=this.__data,l=[];for(let u=0,d=s.length;u<d;u++){let{name:h,structured:p,wildcard:f,value:b,literal:m}=s[u];if(!m)if(f){const y=ut(h,r),D=Do(a,n,y?r:h);b={path:y?r:h,value:D,base:y?ue(a,h):D}}else b=p?Do(a,n,h):a[h];if(ai&&!this._overrideLegacyUndefined&&b===void 0&&s.length>1)return pt;l[u]=b}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,u=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=u,u?u.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),Ze.push(this);let n=super._stampTemplate(s,r);if(Ze.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,wa(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 u=r.childNodes;for(let d=0;d<u.length;d++){let h=u[d];oe(oe(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=Ao(l)||" ",Ut(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,r,n,a,l){let u=this._parseBindings(l,r);if(u){let d=a,h="property";ra.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=Ao(u);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=As(a)),Ut(this,r,n,h,a,u,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,u=n.templateInfo,d=l.localName==="dom-if",h=l.localName==="dom-repeat";ho&&(d||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=u,n.noted=!0,a=!1);let p=u.hostProps;if(Pn&&d)p&&(r.hostProps=Object.assign(r.hostProps||{},p),ho||(n.parentInfo.noted=!0));else{let f="{";for(let b in p){let m=[{mode:f,source:b,dependencies:[b],hostProp:!0}];Ut(this,r,n,"property","_host_"+b,m)}}return a}static _parseBindings(s,r){let n=[],a=0,l;for(;(l=Co.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let u=l[1][0],d=!!l[2],h=l[3].trim(),p=!1,f="",b=-1;u=="{"&&(b=h.indexOf("::"))>0&&(f=h.substring(b+2),h=h.substring(0,b),p=!0);let m=Wt(h),y=[];if(m){let{args:D,methodName:A}=m;for(let O=0;O<D.length;O++){let N=D[O];N.literal||y.push(N)}let I=r.dynamicFns;(I&&I[A]||m.static)&&(y.push(A),m.dynamicFn=!0)}else y.push(h);n.push({source:h,mode:u,negate:d,customEvent:p,signature:m,dependencies:y,event:f}),a=Co.lastIndex}if(a&&a<s.length){let u=s.substring(a);u&&n.push({literal:u})}return n.length?n:null}static _evaluateBinding(s,r,n,a,l,u){let d;return r.signature?d=ui(s,n,a,l,r.signature):n!=r.source?d=ue(s,r.source):u&&li(n)?d=ue(s,n):d=s.__data[n],r.negate&&(d=!d),d}}return e}),Ze=[];/**
|
|
2034
|
+
*/let ht=0;const pt=[],$={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Is="__computeInfo",ra=/[A-Z]/;function Vt(o,t,e){let i=o[t];if(!i)i=o[t]={};else if(!o.hasOwnProperty(t)&&(i=o[t]=Object.create(o[t]),e))for(let s in i){let r=i[s],n=i[s]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return i}function it(o,t,e,i,s,r){if(t){let n=!1;const a=ht++;for(let l in e){let u=s?Ne(l):l,d=t[u];if(d)for(let h=0,p=d.length,f;h<p&&(f=d[h]);h++)(!f.info||f.info.lastRun!==a)&&(!s||Ni(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(o,l,e,i,f.info,s,r),n=!0)}return n}return!1}function na(o,t,e,i,s,r,n,a){let l=!1,u=n?Ne(i):i,d=t[u];if(d)for(let h=0,p=d.length,f;h<p&&(f=d[h]);h++)(!f.info||f.info.lastRun!==e)&&(!n||Ni(i,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(o,i,s,r,f.info,n,a),l=!0);return l}function Ni(o,t){if(t){let e=t.name;return e==o||!!(t.structured&&Ss(e,o))||!!(t.wildcard&&ut(e,o))}else return!0}function xo(o,t,e,i,s){let r=typeof s.method=="string"?o[s.method]:s.method,n=s.property;r?r.call(o,o.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function aa(o,t,e,i,s){let r=o[$.NOTIFY],n,a=ht++;for(let u in t)t[u]&&(r&&na(o,r,a,u,e,i,s)||s&&la(o,u,e))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function la(o,t,e){let i=Ne(t);if(i!==t){let s=Nt(i)+"-changed";return Fs(o,s,e[t],t),!0}return!1}function Fs(o,t,e,i){let s={value:e,queueProperty:!0};i&&(s.path=i),oe(o).dispatchEvent(new CustomEvent(t,{detail:s}))}function ca(o,t,e,i,s,r){let a=(r?Ne(t):t)!=t?t:null,l=a?ue(o,a):o.__data[t];a&&l===void 0&&(l=e[t]),Fs(o,s.eventName,l,a)}function ua(o,t,e,i,s){let r,n=o.detail,a=n&&n.path;a?(i=dt(e,i,a),r=n&&n.value):r=o.currentTarget[e],r=s?!r:r,(!t[$.READ_ONLY]||!t[$.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function da(o,t,e,i,s){let r=o.__data[t];kt&&(r=kt(r,s.attrName,"attribute",o)),o._propertyToAttribute(t,s.attrName,r)}function ha(o,t,e,i){let s=o[$.COMPUTE];if(s)if(kn){ht++;const r=fa(o),n=[];for(let l in t)wo(l,s,n,r,i);let a;for(;a=n.shift();)Ns(o,"",t,e,a)&&wo(a.methodInfo,s,n,r,i);Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),o.__dataPending=null}else{let r=t;for(;it(o,s,r,e,i);)Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),r=o.__dataPending,o.__dataPending=null}}const pa=(o,t,e)=>{let i=0,s=t.length-1,r=-1;for(;i<=s;){const n=i+s>>1,a=e.get(t[n].methodInfo)-e.get(o.methodInfo);if(a<0)i=n+1;else if(a>0)s=n-1;else{r=n;break}}r<0&&(r=s+1),t.splice(r,0,o)},wo=(o,t,e,i,s)=>{const r=s?Ne(o):o,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==ht&&(!s||Ni(o,l.trigger))&&(l.info.lastRun=ht,pa(l.info,e,i))}};function fa(o){let t=o.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=o[$.COMPUTE];let{counts:i,ready:s,total:r}=ma(o),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const u=l.info.methodInfo;--r,--i[u]===0&&s.push(u)})}r!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=t}return t}function ma(o){const t=o[Is],e={},i=o[$.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 i)t[n]||s.push(n);return{counts:e,ready:s,total:r}}function Ns(o,t,e,i,s){let r=ui(o,t,e,i,s);if(r===pt)return!1;let n=s.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,r,!0):(o[n]=r,!1)}function _a(o,t,e){let i=o.__dataLinkedPaths;if(i){let s;for(let r in i){let n=i[r];ut(r,t)?(s=dt(r,n,t),o._setPendingPropertyOrPath(s,e,!0,!0)):ut(n,t)&&(s=dt(n,r,t),o._setPendingPropertyOrPath(s,e,!0,!0))}}}function Ut(o,t,e,i,s,r,n){e.bindings=e.bindings||[];let a={kind:i,target:s,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),xa(a)){let{event:u,negate:d}=a.parts[0];a.listenerEvent=u||Nt(s)+"-changed",a.listenerNegate=d}let l=t.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let d=a.parts[u];d.compoundIndex=u,ga(o,t,a,d,l)}}function ga(o,t,e,i,s){if(!i.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=i.dependencies,n={index:s,binding:e,part:i,evaluator:o};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=Ls(l),l.wildcard=!0),o._addTemplatePropertyEffect(t,l.rootProperty,{fn:va,info:n,trigger:l})}}}function va(o,t,e,i,s,r,n){let a=n[s.index],l=s.binding,u=s.part;if(r&&u.source&&t.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=e[t];t=dt(u.source,l.target,t),a._setPendingPropertyOrPath(t,d,!1,!0)&&o._enqueueClient(a)}else{let d=s.evaluator._evaluateBinding(o,u,t,e,i,r);d!==pt&&ya(o,a,l,u,d)}}function ya(o,t,e,i,s){if(s=ba(t,s,e,i),kt&&(s=kt(s,e.target,e.kind,t)),e.kind=="attribute")o._valueToNodeAttribute(t,s,e.target);else{let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[$.READ_ONLY]||!t[$.READ_ONLY][r])&&t._setPendingProperty(r,s)&&o._enqueueClient(t):o._setUnmanagedPropertyToNode(t,r,s)}}function ba(o,t,e,i){if(e.isCompound){let s=o.__dataCompoundStorage[e.target];s[i.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(t=t==null?"":t),t}function xa(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function wa(o,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let s=0;s<i.length;s++){let r=i[s],n=e[s],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];Ea(n,u),Sa(n,o,u)}n.__dataHost=o}}function Ea(o,t){if(t.isCompound){let e=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),i=t.parts,s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=i[n].literal;let r=t.target;e[r]=s,t.literal&&t.kind=="property"&&(r==="className"&&(o=oe(o)),o[r]=t.literal)}}function Sa(o,t,e){if(e.listenerEvent){let i=e.parts[0];o.addEventListener(e.listenerEvent,function(s){ua(s,t,e.target,i.source,i.negate)})}}function Eo(o,t,e,i,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||o._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return r&&o._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function ui(o,t,e,i,s){let r=o._methodHost||o,n=r[s.methodName];if(n){let a=o._marshalArgs(s.args,t,e);return a===pt?pt:n.apply(r,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Aa=[],zs="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Ca="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Da="(?:'(?:[^'\\\\]|\\\\.)*')",ka='(?:"(?:[^"\\\\]|\\\\.)*")',Pa="(?:"+Da+"|"+ka+")",So="(?:("+zs+"|"+Ca+"|"+Pa+")\\s*)",Ta="(?:"+So+"(?:,\\s*"+So+")*)",Ma="(?:\\(\\s*(?:"+Ta+"?)\\)\\s*)",Oa="("+zs+"\\s*"+Ma+"?)",Ia="(\\[\\[|{{)\\s*",Fa="(?:]]|}})",Na="(?:(!)\\s*)?",za=Ia+Na+Oa+Fa,Ao=new RegExp(za,"g");function Co(o){let t="";for(let e=0;e<o.length;e++){let i=o[e].literal;t+=i||""}return t}function Wt(o){let t=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:Aa};if(t[2].trim()){let s=t[2].replace(/\\,/g,",").split(",");return La(s,i)}else return i}return null}function La(o,t){return t.args=o.map(function(e){let i=Ls(e);return i.literal||(t.static=!1),i},this),t}function Ls(o){let t=o.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){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=Ne(t),e.structured=li(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function Do(o,t,e){let i=ue(o,e);return i===void 0&&(i=t[e]),i}function $s(o,t,e,i){const s={indexSplices:i};ai&&!o._overrideLegacyUndefined&&(t.splices=s),o.notifyPath(e+".splices",s),o.notifyPath(e+".length",t.length),ai&&!o._overrideLegacyUndefined&&(s.indexSplices=[])}function Xe(o,t,e,i,s,r){$s(o,t,e,[{index:i,addedCount:s,removed:r,object:t,type:"splice"}])}function $a(o){return o[0].toUpperCase()+o.substring(1)}const zi=Q(o=>{const t=sa(Kn(o));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 $}_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(Ze.length){let s=Ze[Ze.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[$.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==$.READ_ONLY);let a=Vt(this,r,!0)[s];a||(a=this[r][s]=[]),a.push(n)}_removePropertyEffect(s,r,n){let a=Vt(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,$.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,$.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,$.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,$.COMPUTE)}_setPendingPropertyOrPath(s,r,n,a){if(a||Ne(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=ue(this,s);if(s=vo(this,s,r),!s||!super._shouldPropertyChange(s,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,r,n))return _a(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=oe(s)),s[r]=n)}_setPendingProperty(s,r,n){let a=this.__dataHasPaths&&li(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[$.NOTIFY]&&this[$.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[$.READ_ONLY]||!this[$.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;ha(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),it(this,this[$.REFLECT],r,n,a),it(this,this[$.OBSERVE],r,n,a),l&&aa(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,r,n){this[$.PROPAGATE]&&it(this,this[$.PROPAGATE],s,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,r,n)}_runEffectsForTemplate(s,r,n,a){const l=(u,d)=>{it(this,s.propertyEffects,u,n,d,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,u,n,d)};s.runEffects?s.runEffects(l,r,a):l(r,a)}linkPaths(s,r){s=tt(s),r=tt(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=r}unlinkPaths(s){s=tt(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,r){let n={path:""},a=ue(this,s,n);$s(this,a,n.path,r)}get(s,r){return ue(r||this,s)}set(s,r,n){n?vo(n,s,r):(!this[$.READ_ONLY]||!this[$.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,r,!0)&&this._invalidateProperties()}push(s,...r){let n={path:""},a=ue(this,s,n),l=a.length,u=a.push(...r);return r.length&&Xe(this,a,n.path,l,r.length,[]),u}pop(s){let r={path:""},n=ue(this,s,r),a=!!n.length,l=n.pop();return a&&Xe(this,n,r.path,n.length,0,[l]),l}splice(s,r,n,...a){let l={path:""},u=ue(this,s,l);r<0?r=u.length-Math.floor(-r):r&&(r=Math.floor(r));let d;return arguments.length===2?d=u.splice(r):d=u.splice(r,n,...a),(a.length||d.length)&&Xe(this,u,l.path,r,a.length,d),d}shift(s){let r={path:""},n=ue(this,s,r),a=!!n.length,l=n.shift();return a&&Xe(this,n,r.path,0,0,[l]),l}unshift(s,...r){let n={path:""},a=ue(this,s,n),l=a.unshift(...r);return r.length&&Xe(this,a,n.path,0,r.length,[]),l}notifyPath(s,r){let n;if(arguments.length==1){let a={path:""};r=ue(this,s,a),n=a.path}else Array.isArray(s)?n=tt(s):n=s;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,r){this._addPropertyEffect(s,$.READ_ONLY),r&&(this["_set"+$a(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,r,n){let a={property:s,method:r,dynamicFn:!!n};this._addPropertyEffect(s,$.OBSERVE,{fn:xo,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(r,$.OBSERVE,{fn:xo,info:a,trigger:{name:r}})}_createMethodObserver(s,r){let n=Wt(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");Eo(this,n,$.OBSERVE,ui,null,r)}_createNotifyingProperty(s){this._addPropertyEffect(s,$.NOTIFY,{fn:ca,info:{eventName:Nt(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,$.REFLECT,{fn:da,info:{attrName:r}})}_createComputedProperty(s,r,n){let a=Wt(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=Eo(this,a,$.COMPUTE,Ns,s,n);Vt(this,Is)[s]=l}_marshalArgs(s,r,n){const a=this.__data,l=[];for(let u=0,d=s.length;u<d;u++){let{name:h,structured:p,wildcard:f,value:y,literal:m}=s[u];if(!m)if(f){const b=ut(h,r),D=Do(a,n,b?r:h);y={path:b?r:h,value:D,base:b?ue(a,h):D}}else y=p?Do(a,n,h):a[h];if(ai&&!this._overrideLegacyUndefined&&y===void 0&&s.length>1)return pt;l[u]=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,u=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=u,u?u.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),Ze.push(this);let n=super._stampTemplate(s,r);if(Ze.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,wa(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 u=r.childNodes;for(let d=0;d<u.length;d++){let h=u[d];oe(oe(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=Co(l)||" ",Ut(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,r,n,a,l){let u=this._parseBindings(l,r);if(u){let d=a,h="property";ra.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=Co(u);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)),Ut(this,r,n,h,a,u,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,u=n.templateInfo,d=l.localName==="dom-if",h=l.localName==="dom-repeat";ho&&(d||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=u,n.noted=!0,a=!1);let p=u.hostProps;if(Pn&&d)p&&(r.hostProps=Object.assign(r.hostProps||{},p),ho||(n.parentInfo.noted=!0));else{let f="{";for(let y in p){let m=[{mode:f,source:y,dependencies:[y],hostProp:!0}];Ut(this,r,n,"property","_host_"+y,m)}}return a}static _parseBindings(s,r){let n=[],a=0,l;for(;(l=Ao.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let u=l[1][0],d=!!l[2],h=l[3].trim(),p=!1,f="",y=-1;u=="{"&&(y=h.indexOf("::"))>0&&(f=h.substring(y+2),h=h.substring(0,y),p=!0);let m=Wt(h),b=[];if(m){let{args:D,methodName:C}=m;for(let O=0;O<D.length;O++){let F=D[O];F.literal||b.push(F)}let I=r.dynamicFns;(I&&I[C]||m.static)&&(b.push(C),m.dynamicFn=!0)}else b.push(h);n.push({source:h,mode:u,negate:d,customEvent:p,signature:m,dependencies:b,event:f}),a=Ao.lastIndex}if(a&&a<s.length){let u=s.substring(a);u&&n.push({literal:u})}return n.length?n:null}static _evaluateBinding(s,r,n,a,l,u){let d;return r.signature?d=ui(s,n,a,l,r.signature):n!=r.source?d=ue(s,r.source):u&&li(n)?d=ue(s,n):d=s.__data[n],r.negate&&(d=!d),d}}return e}),Ze=[];/**
|
|
2035
2035
|
@license
|
|
2036
2036
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2037
2037
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2057,7 +2057,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2057
2057
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
2058
2058
|
* Google as part of the polymer project is also subject to an additional IP
|
|
2059
2059
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2060
|
-
*/const Ba="3.5.2",ko=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ya=Q(o=>{const t=Ha(
|
|
2060
|
+
*/const Ba="3.5.2",ko=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ya=Q(o=>{const t=Ha(zi(o));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let d in u){let h=u[d];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=h)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,u,d,h){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,d.computed,h)),d.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):d.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),d.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):d.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),d.observer&&l._createPropertyObserver(u,d.observer,h[d.observer]),l._addPropertyToAttributeMap(u)}function r(l,u,d,h){if(!ko){const p=u.content.querySelectorAll("style"),f=ws(u),y=Ln(d),m=u.content.firstElementChild;for(let D=0;D<y.length;D++){let C=y[D];C.textContent=l._processStyleText(C.textContent,h),u.content.insertBefore(C,m)}let b=0;for(let D=0;D<f.length;D++){let C=f[D],I=p[b];I!==C?(C=C.cloneNode(!0),I.parentNode.insertBefore(C,I)):b++,C.textContent=l._processStyleText(C.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,d),Tn&&ko&&Sn){const p=u.content.querySelectorAll("style");if(p){let f="";Array.from(p).forEach(y=>{f+=y.textContent,y.parentNode.removeChild(y)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function n(l){let u=null;if(l&&(!Pt||Cn)&&(u=ct.import(l,"template"),Pt&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends t{static get polymerElementVersion(){return Ba}static _finalizeClass(){t._finalizeClass.call(this);const u=i(this);u&&this.createObservers(u,this._properties),this._prepareTemplate()}static _prepareTemplate(){let u=this.template;u&&(typeof u=="string"?(console.error("template getter must return HTMLTemplateElement"),u=null):vs||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let d in u)s(this.prototype,d,u[d],u)}static createObservers(u,d){const h=this.prototype;for(let p=0;p<u.length;p++)h._createMethodObserver(u[p],d)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let u=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof u=="function"&&(u=u()),this._template=u!==void 0?u:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(u){this._template=u}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const u=this.importMeta;if(u)this._importPath=Ii(u.url);else{const d=ct.import(this.is);this._importPath=d&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=An,this.importPath=this.constructor.importPath;let u=e(this.constructor);if(u)for(let d in u){let h=u[d];if(this._canApplyPropertyDefault(d)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(d)?this._setPendingProperty(d,p,!0):this[d]=p}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,d){return Oi(u,d)}static _finalizeTemplate(u){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const h=this.importPath,p=h?rt(h):"";r(this,d,u,p),this.prototype._bindTemplate(d)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(u){const d=oe(this);if(d.attachShadow)return u?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:u}),d.shadowRoot.appendChild(u),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Dn&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,d){return!d&&this.importPath&&(d=rt(this.importPath)),rt(u,d)}static _parseTemplateContent(u,d,h){return d.dynamicFns=d.dynamicFns||this._properties,t._parseTemplateContent.call(this,u,d,h)}static _addTemplatePropertyEffect(u,d,h){return ys&&!(d in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,u,d,h)}}return a});/**
|
|
2061
2061
|
@license
|
|
2062
2062
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2063
2063
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2065,7 +2065,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2065
2065
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2066
2066
|
Code distributed by Google as part of the polymer project is also
|
|
2067
2067
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2068
|
-
*/const Po=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:o=>o});class Rs{constructor(t,e){Bs(t,e);const i=e.reduce((s,r,n)=>s+Hs(r)+t[n+1],t[0]);this.value=i.toString()}toString(){return this.value}}function Hs(o){if(o instanceof Rs)return o.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${o}`)}function ja(o){if(o instanceof HTMLTemplateElement)return o.innerHTML;if(o instanceof Rs)return Hs(o);throw new Error(`non-template value passed to Polymer's html function: ${o}`)}const
|
|
2068
|
+
*/const Po=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:o=>o});class Rs{constructor(t,e){Bs(t,e);const i=e.reduce((s,r,n)=>s+Hs(r)+t[n+1],t[0]);this.value=i.toString()}toString(){return this.value}}function Hs(o){if(o instanceof Rs)return o.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${o}`)}function ja(o){if(o instanceof HTMLTemplateElement)return o.innerHTML;if(o instanceof Rs)return Hs(o);throw new Error(`non-template value passed to Polymer's html function: ${o}`)}const ze=function(t,...e){Bs(t,e);const i=document.createElement("template");let s=e.reduce((r,n,a)=>r+ja(n)+t[a+1],t[0]);return Po&&(s=Po.createHTML(s)),i.innerHTML=s,i},Bs=(o,t)=>{if(!Array.isArray(o)||!Array.isArray(o.raw)||t.length!==o.length-1)throw new TypeError("Invalid call to the html template tag")};/**
|
|
2069
2069
|
@license
|
|
2070
2070
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2071
2071
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2077,7 +2077,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2077
2077
|
* @license
|
|
2078
2078
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2079
2079
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2080
|
-
*/const ge=[];function di(o,t,e=o.getAttribute("dir")){t?o.setAttribute("dir",t):e!=null&&o.removeAttribute("dir")}function hi(){return document.documentElement.getAttribute("dir")}function Va(){const o=hi();ge.forEach(t=>{di(t,o)})}const Ua=new MutationObserver(Va);Ua.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const
|
|
2080
|
+
*/const ge=[];function di(o,t,e=o.getAttribute("dir")){t?o.setAttribute("dir",t):e!=null&&o.removeAttribute("dir")}function hi(){return document.documentElement.getAttribute("dir")}function Va(){const o=hi();ge.forEach(t=>{di(t,o)})}const Ua=new MutationObserver(Va);Ua.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const zt=o=>class extends o{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),di(this,hi(),null))}attributeChangedCallback(e,i,s){if(super.attributeChangedCallback(e,i,s),e!=="dir")return;const r=hi(),n=s===r&&ge.indexOf(this)===-1,a=!s&&i&&ge.indexOf(this)===-1;n||a?(this.__subscribe(),di(this,r,s)):s!==r&&i===r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=ge.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,i,s){s==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,s)}_attributeToProperty(e,i,s){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,s)}__subscribe(){ge.includes(this)||ge.push(this)}__unsubscribe(){ge.includes(this)&&ge.splice(ge.indexOf(this),1)}};/**
|
|
2081
2081
|
* @license
|
|
2082
2082
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2083
2083
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2085,7 +2085,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2085
2085
|
* @license
|
|
2086
2086
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2087
2087
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2088
|
-
*/const qa=
|
|
2088
|
+
*/const qa=N`
|
|
2089
2089
|
:host {
|
|
2090
2090
|
display: flex;
|
|
2091
2091
|
align-items: center;
|
|
@@ -2154,7 +2154,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2154
2154
|
* @license
|
|
2155
2155
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2156
2156
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2157
|
-
*/X("vaadin-input-container",qa,{moduleId:"vaadin-input-container-styles"});class Ka extends Wa(
|
|
2157
|
+
*/X("vaadin-input-container",qa,{moduleId:"vaadin-input-container-styles"});class Ka extends Wa(Fe(zt(Se))){static get is(){return"vaadin-input-container"}static get template(){return ze`
|
|
2158
2158
|
<slot name="prefix"></slot>
|
|
2159
2159
|
<slot></slot>
|
|
2160
2160
|
<slot name="suffix"></slot>
|
|
@@ -2162,7 +2162,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2162
2162
|
* @license
|
|
2163
2163
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2164
2164
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2165
|
-
*/const Ga=
|
|
2165
|
+
*/const Ga=N`
|
|
2166
2166
|
:host {
|
|
2167
2167
|
z-index: 200;
|
|
2168
2168
|
position: fixed;
|
|
@@ -2241,7 +2241,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2241
2241
|
* @license
|
|
2242
2242
|
* Copyright (c) 2017 Anton Korzunov
|
|
2243
2243
|
* SPDX-License-Identifier: MIT
|
|
2244
|
-
*/let Le=new WeakMap,xt=new WeakMap,wt={},qt=0;const To=o=>o&&o.nodeType===Node.ELEMENT_NODE,Kt=(...o)=>{console.error(`Error: ${o.join(" ")}. Skip setting aria-hidden.`)},ul=(o,t)=>To(o)?t.map(e=>{if(!To(e))return Kt(e,"is not a valid element"),null;let i=e;for(;i&&i!==o;){if(o.contains(i))return e;i=i.getRootNode().host}return Kt(e,"is not contained inside",o),null}).filter(e=>!!e):(Kt(o,"is not a valid element"),[]),dl=(o,t,e,i)=>{const s=ul(t,Array.isArray(o)?o:[o]);wt[e]||(wt[e]=new WeakMap);const r=wt[e],n=[],a=new Set,l=new Set(s),u=h=>{if(!h||a.has(h))return;a.add(h);const p=h.assignedSlot;p&&u(p),u(h.parentNode||h.host)};s.forEach(u);const d=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(
|
|
2244
|
+
*/let Le=new WeakMap,xt=new WeakMap,wt={},qt=0;const To=o=>o&&o.nodeType===Node.ELEMENT_NODE,Kt=(...o)=>{console.error(`Error: ${o.join(" ")}. Skip setting aria-hidden.`)},ul=(o,t)=>To(o)?t.map(e=>{if(!To(e))return Kt(e,"is not a valid element"),null;let i=e;for(;i&&i!==o;){if(o.contains(i))return e;i=i.getRootNode().host}return Kt(e,"is not contained inside",o),null}).filter(e=>!!e):(Kt(o,"is not a valid element"),[]),dl=(o,t,e,i)=>{const s=ul(t,Array.isArray(o)?o:[o]);wt[e]||(wt[e]=new WeakMap);const r=wt[e],n=[],a=new Set,l=new Set(s),u=h=>{if(!h||a.has(h))return;a.add(h);const p=h.assignedSlot;p&&u(p),u(h.parentNode||h.host)};s.forEach(u);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 m=y.getAttribute(i),b=m!==null&&m!=="false",D=(Le.get(y)||0)+1,C=(r.get(y)||0)+1;Le.set(y,D),r.set(y,C),n.push(y),D===1&&b&&xt.set(y,!0),C===1&&y.setAttribute(e,"true"),b||y.setAttribute(i,"true")}})};return d(t),a.clear(),qt+=1,()=>{n.forEach(h=>{const p=Le.get(h)-1,f=r.get(h)-1;Le.set(h,p),r.set(h,f),p||(xt.has(h)?xt.delete(h):h.removeAttribute(i)),f||h.removeAttribute(e)}),qt-=1,qt||(Le=new WeakMap,Le=new WeakMap,xt=new WeakMap,wt={})}},Ks=(o,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(o)?o:[o]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),dl(i,t,e,"aria-hidden")};/**
|
|
2245
2245
|
* @license
|
|
2246
2246
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2247
2247
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2273,15 +2273,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2273
2273
|
* @license
|
|
2274
2274
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2275
2275
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2276
|
-
*/function
|
|
2276
|
+
*/function yl(o){const t=[];for(;o;){if(o.nodeType===Node.DOCUMENT_NODE){t.push(o);break}if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(o),o=o.host;continue}if(o.assignedSlot){o=o.assignedSlot;continue}o=o.parentNode}return t}function Ri(o){return o?new Set(o.split(" ")):new Set}function $t(o){return o?[...o].join(" "):""}function Js(o,t,e){const i=Ri(o.getAttribute(t));i.add(e),o.setAttribute(t,$t(i))}function bl(o,t,e){const i=Ri(o.getAttribute(t));if(i.delete(e),i.size===0){o.removeAttribute(t);return}o.setAttribute(t,$t(i))}function xl(o){return o.nodeType===Node.TEXT_NODE&&o.textContent.trim()===""}/**
|
|
2277
2277
|
* @license
|
|
2278
2278
|
* Copyright (c) 2024 Vaadin Ltd.
|
|
2279
2279
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2280
|
-
*/function wl(o,t){let e=null;const i=document.documentElement;function s(){e&&e.disconnect(),e=null}function r(n=!1,a=1){s();const{left:l,top:u,width:d,height:h}=o.getBoundingClientRect();if(n||t(),!d||!h)return;const p=Math.floor(u),f=Math.floor(i.clientWidth-(l+d)),
|
|
2280
|
+
*/function wl(o,t){let e=null;const i=document.documentElement;function s(){e&&e.disconnect(),e=null}function r(n=!1,a=1){s();const{left:l,top:u,width:d,height:h}=o.getBoundingClientRect();if(n||t(),!d||!h)return;const p=Math.floor(u),f=Math.floor(i.clientWidth-(l+d)),y=Math.floor(i.clientHeight-(u+h)),m=Math.floor(l),D={rootMargin:`${-p}px ${-f}px ${-y}px ${-m}px`,threshold:Math.max(0,Math.min(1,a))||1};let C=!0;function I(O){let F=O[0].intersectionRatio;if(F!==a){if(!C)return r();F===0&&(F=1e-7),r(!1,F)}C=!1}e=new IntersectionObserver(I,D),e.observe(o)}return r(!0),s}/**
|
|
2281
2281
|
* @license
|
|
2282
2282
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2283
2283
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2284
|
-
*/const Jt={start:"top",end:"bottom"},Xt={start:"left",end:"right"},Mo=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),El=o=>class extends o{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=
|
|
2284
|
+
*/const Jt={start:"top",end:"bottom"},Xt={start:"left",end:"right"},Mo=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),El=o=>class extends o{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=yl(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=wl(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,Mo.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,Mo.observe(i))),e){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(s[r],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const i=this.__shouldAlignStartVertically(e);this.style.justifyContent=i?"flex-start":"flex-end";const s=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,s),n=!s&&r||s&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Jt,this,i),u=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Xt,this,r);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,i){const s=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,s,r,this.__margins,n,this.noHorizontalOverlap,Xt)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,s,this.__margins,r,this.noVerticalOverlap,Jt)}__shouldAlignStart(e,i,s,r,n,a,l){const u=s-e[a?l.end:l.start]-r[l.end],d=e[a?l.start:l.end]-r[l.start],h=n?u:d,f=h>(n?d:u)||h>i;return n===f}__adjustBottomProperty(e,i,s){let r;if(e===i.end){if(i.end===Jt.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=s-a}this.__oldViewportHeight=n}if(i.end===Xt.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=s-a}this.__oldViewportWidth=n}}return r}__calculatePositionInOneDimension(e,i,s,r,n,a){const l=a?r.start:r.end,u=a?r.end:r.start,d=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,r,d),p=i[a?r.start:r.end]-e[s===a?r.end:r.start],f=h?`${h}px`:`${d+p*(a?-1:1)}px`;return{[l]:f,[u]:""}}};/**
|
|
2285
2285
|
* @license
|
|
2286
2286
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
2287
2287
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2289,7 +2289,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2289
2289
|
* @license
|
|
2290
2290
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2291
2291
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2292
|
-
*/const
|
|
2292
|
+
*/const Al=N`
|
|
2293
2293
|
[part='overlay'] {
|
|
2294
2294
|
display: flex;
|
|
2295
2295
|
flex: auto;
|
|
@@ -2308,14 +2308,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2308
2308
|
* @license
|
|
2309
2309
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2310
2310
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2311
|
-
*/X("vaadin-date-picker-overlay",[Ga,
|
|
2311
|
+
*/X("vaadin-date-picker-overlay",[Ga,Al],{moduleId:"vaadin-date-picker-overlay-styles"});class Cl extends Sl(zt(Fe(Se))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return ze`
|
|
2312
2312
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
2313
2313
|
<div part="overlay" id="overlay">
|
|
2314
2314
|
<div part="content" id="content">
|
|
2315
2315
|
<slot></slot>
|
|
2316
2316
|
</div>
|
|
2317
2317
|
</div>
|
|
2318
|
-
`}}_e(
|
|
2318
|
+
`}}_e(Cl);const Dl=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,At=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function kl(){function o(){return!0}return Xs(o)}function Pl(){try{return Tl()?!0:Ml()?At?!Ol():!kl():!1}catch(o){return!1}}function Tl(){return localStorage.getItem("vaadin.developmentmode.force")}function Ml(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Ol(){return!!(At&&Object.keys(At).map(t=>At[t]).filter(t=>t.productionMode).length>0)}function Xs(o,t){if(typeof o!="function")return;const e=Dl.exec(o.toString());if(e)try{o=new Function(e[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return o(t)}window.Vaadin=window.Vaadin||{};const Oo=function(o,t){if(window.Vaadin.developmentMode)return Xs(o,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Pl());function Il(){/*! vaadin-dev-mode:start
|
|
2319
2319
|
(function () {
|
|
2320
2320
|
'use strict';
|
|
2321
2321
|
|
|
@@ -2793,7 +2793,7 @@ try {
|
|
|
2793
2793
|
|
|
2794
2794
|
}());
|
|
2795
2795
|
|
|
2796
|
-
vaadin-dev-mode:end **/}const
|
|
2796
|
+
vaadin-dev-mode:end **/}const Fl=function(){if(typeof Oo=="function")return Oo(Il)};/**
|
|
2797
2797
|
* @license
|
|
2798
2798
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2799
2799
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2801,7 +2801,7 @@ try {
|
|
|
2801
2801
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2802
2802
|
* Code distributed by Google as part of the polymer project is also
|
|
2803
2803
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2804
|
-
*/let Io=0,Zs=0;const Be=[];let vi=!1;function
|
|
2804
|
+
*/let Io=0,Zs=0;const Be=[];let vi=!1;function Nl(){vi=!1;const o=Be.length;for(let t=0;t<o;t++){const e=Be[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}Be.splice(0,o),Zs+=o}const Mt={after(o){return{run(t){return window.setTimeout(t,o)},cancel(t){window.clearTimeout(t)}}},run(o,t){return window.setTimeout(o,t)},cancel(o){window.clearTimeout(o)}},zl={run(o){return window.requestAnimationFrame(o)},cancel(o){window.cancelAnimationFrame(o)}},Ll={run(o){return window.requestIdleCallback?window.requestIdleCallback(o):window.setTimeout(o,16)},cancel(o){window.cancelIdleCallback?window.cancelIdleCallback(o):window.clearTimeout(o)}},$l={run(o){vi||(vi=!0,queueMicrotask(()=>Nl())),Be.push(o);const t=Io;return Io+=1,t},cancel(o){const t=o-Zs;if(t>=0){if(!Be[t])throw new Error(`invalid async handle: ${o}`);Be[t]=null}}};/**
|
|
2805
2805
|
@license
|
|
2806
2806
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2807
2807
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2809,11 +2809,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2809
2809
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2810
2810
|
Code distributed by Google as part of the polymer project is also
|
|
2811
2811
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2812
|
-
*/const
|
|
2812
|
+
*/const yi=new Set;let Ue=class bi{static debounce(t,e,i){return t instanceof bi?t._cancelAsync():t=new bi,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,yi.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),yi.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function Rl(o){yi.add(o)}/**
|
|
2813
2813
|
* @license
|
|
2814
2814
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2815
2815
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2816
|
-
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){
|
|
2816
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Fl()};let Zt;const Fo=new Set,Qs=o=>class extends zt(o){static finalize(){super.finalize();const{is:e}=this;e&&!Fo.has(e)&&(window.Vaadin.registrations.push(this),Fo.add(e),window.Vaadin.developmentModeCallback&&(Zt=Ue.debounce(Zt,Ll,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Rl(Zt)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
2817
2817
|
* @license
|
|
2818
2818
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
2819
2819
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2833,7 +2833,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2833
2833
|
* @license
|
|
2834
2834
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2835
2835
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2836
|
-
*/const Yl=
|
|
2836
|
+
*/const Yl=N`
|
|
2837
2837
|
:host {
|
|
2838
2838
|
display: inline-block;
|
|
2839
2839
|
position: relative;
|
|
@@ -2914,7 +2914,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2914
2914
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2915
2915
|
Code distributed by Google as part of the polymer project is also
|
|
2916
2916
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2917
|
-
*/const Vl=o=>o,ir=typeof document.head.style.touchAction=="string",xi="__polymerGestures",Qt="__polymerGesturesHandled",wi="__polymerGesturesTouchAction",
|
|
2917
|
+
*/const Vl=o=>o,ir=typeof document.head.style.touchAction=="string",xi="__polymerGestures",Qt="__polymerGesturesHandled",wi="__polymerGesturesTouchAction",No=25,zo=5,Ul=2,Wl=["mousedown","mousemove","mouseup","click"],ql=[0,1,4,2],Kl=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function Hi(o){return Wl.indexOf(o)>-1}let Gl=!1;(function(){try{const o=Object.defineProperty({},"passive",{get(){Gl=!0}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();function Jl(o){Hi(o)}const Xl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Zl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Oe(o){const t=o.type;if(!Hi(t))return!1;if(t==="mousemove"){let i=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!Kl&&(i=ql[o.which]||0),!!(i&1)}return(o.button===void 0?0:o.button)===0}function Ql(o){if(o.type==="click"){if(o.detail===0)return!0;const t=Ee(o);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),i=o.pageX,s=o.pageY;return!(i>=e.left&&i<=e.right&&s>=e.top&&s<=e.bottom)}return!1}const ye={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function ec(o){let t="auto";const e=sr(o);for(let i=0,s;i<e.length;i++)if(s=e[i],s[wi]){t=s[wi];break}return t}function or(o,t,e){o.movefn=t,o.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function Ye(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const sr=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],Bi={},Te=[];function tc(o,t){let e=document.elementFromPoint(o,t),i=e;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const s=i;if(i=i.shadowRoot.elementFromPoint(o,t),s===i)break;i&&(e=i)}return e}function Ee(o){const t=sr(o);return t.length>0?t[0]:o.target}function ic(o){const t=o.type,i=o.currentTarget[xi];if(!i)return;const s=i[t];if(!s)return;if(!o[Qt]&&(o[Qt]={},t.startsWith("touch"))){const n=o.changedTouches[0];if(t==="touchstart"&&o.touches.length===1&&(ye.touch.id=n.identifier),ye.touch.id!==n.identifier)return;ir||(t==="touchstart"||t==="touchmove")&&oc(o)}const r=o[Qt];if(!r.skip){for(let n=0,a;n<Te.length;n++)a=Te[n],s[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(o.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<Te.length;n++)a=Te[n],s[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](o))}}function oc(o){const t=o.changedTouches[0],e=o.type;if(e==="touchstart")ye.touch.x=t.clientX,ye.touch.y=t.clientY,ye.touch.scrollDecided=!1;else if(e==="touchmove"){if(ye.touch.scrollDecided)return;ye.touch.scrollDecided=!0;const i=ec(o);let s=!1;const r=Math.abs(ye.touch.x-t.clientX),n=Math.abs(ye.touch.y-t.clientY);o.cancelable&&(i==="none"?s=!0:i==="pan-x"?s=n>r:i==="pan-y"&&(s=r>n)),s?o.preventDefault():Ot("track")}}function me(o,t,e){return Bi[t]?(sc(o,t,e),!0):!1}function sc(o,t,e){const i=Bi[t],s=i.deps,r=i.name;let n=o[xi];n||(o[xi]=n={});for(let a=0,l,u;a<s.length;a++)l=s[a],!(Xl&&Hi(l)&&l!=="click")&&(u=n[l],u||(n[l]=u={_count:0}),u._count===0&&o.addEventListener(l,ic,Jl(l)),u[r]=(u[r]||0)+1,u._count=(u._count||0)+1);o.addEventListener(t,e),i.touchAction&&rr(o,i.touchAction)}function Yi(o){Te.push(o),o.emits.forEach(t=>{Bi[t]=o})}function rc(o){for(let t=0,e;t<Te.length;t++){e=Te[t];for(let i=0,s;i<e.emits.length;i++)if(s=e.emits[i],s===o)return e}return null}function rr(o,t){ir&&o instanceof HTMLElement&&$l.run(()=>{o.style.touchAction=t}),o[wi]=t}function ji(o,t,e){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,Vl(o).dispatchEvent(i),i.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault()}}function Ot(o){const t=rc(o);t.info&&(t.info.prevent=!0)}Yi({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Ye(this.info)},mousedown(o){if(!Oe(o))return;const t=Ee(o),e=this,i=r=>{Oe(r)||(Qe("up",t,r),Ye(e.info))},s=r=>{Oe(r)&&Qe("up",t,r),Ye(e.info)};or(this.info,i,s),Qe("down",t,o)},touchstart(o){Qe("down",Ee(o),o.changedTouches[0],o)},touchend(o){Qe("up",Ee(o),o.changedTouches[0],o)}});function Qe(o,t,e,i){t&&ji(t,o,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(s){return Ot(s)}})}Yi({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(o){this.moves.length>Ul&&this.moves.shift(),this.moves.push(o)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Ye(this.info)},mousedown(o){if(!Oe(o))return;const t=Ee(o),e=this,i=r=>{const n=r.clientX,a=r.clientY;Lo(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&Ot("tap"),e.info.addMove({x:n,y:a}),Oe(r)||(e.info.state="end",Ye(e.info)),t&&ei(e.info,t,r),e.info.started=!0)},s=r=>{e.info.started&&i(r),Ye(e.info)};or(this.info,i,s),this.info.x=o.clientX,this.info.y=o.clientY},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(o){const t=Ee(o),e=o.changedTouches[0],i=e.clientX,s=e.clientY;Lo(this.info,i,s)&&(this.info.state==="start"&&Ot("tap"),this.info.addMove({x:i,y:s}),ei(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(o){const t=Ee(o),e=o.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),ei(this.info,t,e))}});function Lo(o,t,e){if(o.prevent)return!1;if(o.started)return!0;const i=Math.abs(o.x-t),s=Math.abs(o.y-e);return i>=zo||s>=zo}function ei(o,t,e){if(!t)return;const i=o.moves[o.moves.length-2],s=o.moves[o.moves.length-1],r=s.x-o.x,n=s.y-o.y;let a,l=0;i&&(a=s.x-i.x,l=s.y-i.y),ji(t,"track",{state:o.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return tc(e.clientX,e.clientY)}})}Yi({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(o){Oe(o)&&(this.info.x=o.clientX,this.info.y=o.clientY)},click(o){Oe(o)&&$o(this.info,o)},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(o){$o(this.info,o.changedTouches[0],o)}});function $o(o,t,e){const i=Math.abs(t.clientX-o.x),s=Math.abs(t.clientY-o.y),r=Ee(e||t);!r||Zl[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(s)||i<=No&&s<=No||Ql(t))&&(o.prevent||ji(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
|
|
2918
2918
|
* @license
|
|
2919
2919
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2920
2920
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2942,11 +2942,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2942
2942
|
* @license
|
|
2943
2943
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2944
2944
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2945
|
-
*/X("vaadin-button",Yl,{moduleId:"vaadin-button-styles"});class lc extends ac(Qs(
|
|
2945
|
+
*/X("vaadin-button",Yl,{moduleId:"vaadin-button-styles"});class lc extends ac(Qs(Fe(Ke(Se)))){static get is(){return"vaadin-button"}static get template(){return jl(ze)}ready(){super.ready(),this._tooltipController=new tr(this),this.addController(this._tooltipController)}}_e(lc);/**
|
|
2946
2946
|
* @license
|
|
2947
2947
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2948
2948
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2949
|
-
*/function cc(o){let t=o.getDay();t===0&&(t=7);const e=4-t,i=new Date(o.getTime()+e*24*3600*1e3),s=new Date(0,0);s.setFullYear(i.getFullYear());const r=i.getTime()-s.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function Ei(o){const t=new Date(o);return t.setHours(0,0,0,0),t}function
|
|
2949
|
+
*/function cc(o){let t=o.getDay();t===0&&(t=7);const e=4-t,i=new Date(o.getTime()+e*24*3600*1e3),s=new Date(0,0);s.setFullYear(i.getFullYear());const r=i.getTime()-s.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function Ei(o){const t=new Date(o);return t.setHours(0,0,0,0),t}function be(o,t,e=Ei){return o instanceof Date&&t instanceof Date&&e(o).getTime()===e(t).getTime()}function Ui(o){return{day:o.getDate(),month:o.getMonth(),year:o.getFullYear()}}function We(o,t,e,i){let s=!1;if(typeof i=="function"&&o){const r=Ui(o);s=i(r)}return(!t||o>=t)&&(!e||o<=e)&&!s}function lr(o,t){return t.filter(e=>e!==void 0).reduce((e,i)=>{if(!i)return e;if(!e)return i;const s=Math.abs(o.getTime()-i.getTime()),r=Math.abs(e.getTime()-o.getTime());return s<r?i:e})}function cr(o){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(o)+t.getMonth()),e}function uc(o,t,e=0,i=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let s=t+Math.floor(o.getFullYear()/100)*100;return o<new Date(s-50,e,i)?s-=100:o>new Date(s+50,e,i)&&(s+=100),s}function et(o){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(o);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}function dc(o){const t=(l,u="00")=>(u+l).substr((u+l).length-u.length);let e="",i="0000",s=o.year;s<0?(s=-s,e="-",i="000000"):o.year>=1e4&&(e="+",i="000000");const r=e+t(s,i),n=t(o.month+1),a=t(o.day);return[r,n,a].join("-")}function hc(o){return o instanceof Date?dc({year:o.getFullYear(),month:o.getMonth(),day:o.getDate()}):""}/**
|
|
2950
2950
|
@license
|
|
2951
2951
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2952
2952
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3078,7 +3078,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3078
3078
|
* @license
|
|
3079
3079
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3080
3080
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3081
|
-
*/class vc extends
|
|
3081
|
+
*/class vc extends Fe(gc(Se)){static get is(){return"vaadin-date-picker-year"}static get template(){return ze`
|
|
3082
3082
|
<style>
|
|
3083
3083
|
:host {
|
|
3084
3084
|
display: block;
|
|
@@ -3095,7 +3095,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3095
3095
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3096
3096
|
Code distributed by Google as part of the polymer project is also
|
|
3097
3097
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3098
|
-
*/function qi(o,t,e,i,s){let r;s&&(r=typeof e=="object"&&e!==null,r&&(i=o.__dataTemp[t]));let n=i!==e&&(i===i||e===e);return r&&n&&(o.__dataTemp[t]=e),n}const Ki=Q(o=>{class t extends o{_shouldPropertyChange(i,s,r){return qi(this,i,s,r,!0)}}return t}),
|
|
3098
|
+
*/function qi(o,t,e,i,s){let r;s&&(r=typeof e=="object"&&e!==null,r&&(i=o.__dataTemp[t]));let n=i!==e&&(i===i||e===e);return r&&n&&(o.__dataTemp[t]=e),n}const Ki=Q(o=>{class t extends o{_shouldPropertyChange(i,s,r){return qi(this,i,s,r,!0)}}return t}),yc=Q(o=>{class t extends o{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,s,r){return qi(this,i,s,r,this.mutableData)}}return t});Ki._mutablePropertyChange=qi;/**
|
|
3099
3099
|
@license
|
|
3100
3100
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3101
3101
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3103,7 +3103,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3103
3103
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3104
3104
|
Code distributed by Google as part of the polymer project is also
|
|
3105
3105
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3106
|
-
*/let Si=null;function
|
|
3106
|
+
*/let Si=null;function Ai(){return Si}Ai.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Ai,writable:!0}});const fr=zi(Ai),bc=Ki(fr);function xc(o,t){Si=o,Object.setPrototypeOf(o,t.prototype),new t,Si=null}const wc=zi(class{});function Ec(o,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!o!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)o?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(o)i.__polymerReplaced__=document.createComment("hidden-slot"),oe(oe(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const s=i.__polymerReplaced__;s&&oe(oe(s).parentNode).replaceChild(i,s)}else i.style&&(o?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=o,i._showHideChildren&&i._showHideChildren(o)}}class Ae extends wc{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let s=this.root.firstChild;s;s=s.nextSibling)e.push(s),s.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let i in this.__hostProps)this._setPendingProperty(i,this.__dataHost["_host_"+i]);for(let i in t)this._setPendingProperty(i,t[i])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,s=>{s.model=this,i(s)});else{let s=this.__dataHost.__dataHost;s&&s._addEventListenerToNode(t,e,i)}}_showHideChildren(t){Ec(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}Ae.prototype.__dataHost;Ae.prototype.__templatizeOptions;Ae.prototype._methodHost;Ae.prototype.__templatizeOwner;Ae.prototype.__hostProps;const Sc=Ki(Ae);function Ro(o){let t=o.__dataHost;return t&&t._methodHost||t}function Ac(o,t,e){let i=e.mutableData?Sc:Ae;Ci.mixin&&(i=Ci.mixin(i));let s=class extends i{};return s.prototype.__templatizeOptions=e,s.prototype._bindTemplate(o),kc(s,o,t,e),s}function Cc(o,t,e,i){let s=e.forwardHostProp;if(s&&t.hasHostProps){const r=o.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?bc:fr;class u extends l{}n=t.templatizeTemplateClass=u}else{const l=o.constructor;class u extends l{}n=t.templatizeTemplateClass=u}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Dc(l,s)}),n.prototype._createNotifyingProperty("_host_"+l);ys&&i&&Mc(t,e,i)}if(o.__dataProto&&Object.assign(o.__data,o.__dataProto),r)xc(o,n),o.__dataTemp={},o.__dataPending=null,o.__dataOld=null,o._enableProperties();else{Object.setPrototypeOf(o,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in o){const u=o[l];delete o[l],o.__data[l]=u}}}}function Dc(o,t){return function(i,s,r){t.call(i.__templatizeOwner,s.substring(6),r[s])}}function kc(o,t,e,i){let s=e.hostProps||{};for(let r in i.instanceProps){delete s[r];let n=i.notifyInstanceProp;n&&o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Pc(r,n)})}if(i.forwardHostProp&&t.__dataHost)for(let r in s)e.hasHostProps||(e.hasHostProps=!0),o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Tc()})}function Pc(o,t){return function(i,s,r){t.call(i.__templatizeOwner,i,s,r[s])}}function Tc(){return function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0)}}function Ci(o,t,e){if(Pt&&!Ro(o))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},o.__templatizeOwner)throw new Error("A <template> can only be templatized once");o.__templatizeOwner=t;let s=(t?t.constructor:Ae)._parseTemplate(o),r=s.templatizeInstanceClass;r||(r=Ac(o,s,e),s.templatizeInstanceClass=r);const n=Ro(o);Cc(o,s,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=o,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=s.hostProps,a=a,a}function Mc(o,t,e){const i=e.constructor._properties,{propertyEffects:s}=o,{instanceProps:r}=t;for(let n in s)if(!i[n]&&!(r&&r[n])){const a=s[n];for(let l=0;l<a.length;l++){const{part:u}=a[l].info;if(!(u.signature&&u.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Oc(o,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=o)t=e.__dataHost;else return e;else t=oe(t).parentNode;return null}/**
|
|
3107
3107
|
@license
|
|
3108
3108
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3109
3109
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3119,15 +3119,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3119
3119
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3120
3120
|
Code distributed by Google as part of the polymer project is also
|
|
3121
3121
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3122
|
-
*/const
|
|
3122
|
+
*/const Fc=yc(Se);class Bo extends Fc{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!po,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Ic()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=oe(oe(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let s=new MutationObserver(()=>{if(this.querySelector("template"))s.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return s.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Ci(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(s,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(s,r)},notifyInstanceProp:function(s,r,n){if($n(this.as,r)){let a=s[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=dt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)t.indexOf(e[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=It.debounce(this.__renderDebouncer,e>0?Vn.after(e):Ps,t.bind(this)),pc(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Wi()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!po||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter((i,s,r)=>this.__filterFn(t[i],s,r))),this.__sortFn&&e.sort((i,s)=>this.__sortFn(t[i],t[s])),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),s=Math.max(e-i,0),this.__chunkCount=s||1):(s=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+s,t)),this.__shouldMeasureChunk=s===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,i){const s=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=i[r],l=t[a];s[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a)}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n)}__detachInstance(t){let e=this.__instances[t];const i=oe(e.root);for(let s=0;s<e.children.length;s++){let r=e.children[s];i.appendChild(r)}return e}__attachInstance(t,e){let i=this.__instances[t];e.insertBefore(i.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,i){let s={};return s[this.as]=t,s[this.indexAs]=e,s[this.itemsIndexAs]=i,new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let r=this.__instances[e+1],n=r?r.children[0]:this;return oe(oe(this).parentNode).insertBefore(s.root,n),this.__instances[e]=s,s}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let i=t.slice(6),s=i.indexOf("."),r=s<0?i:i.substring(0,s);if(r==parseInt(r,10)){let n=s<0?"":i.substring(s+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let u=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(u,e,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return Oc(this.template,t)}}customElements.define(Bo.is,Bo);/**
|
|
3123
3123
|
* @license
|
|
3124
3124
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3125
3125
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3126
|
-
*/const
|
|
3126
|
+
*/const Nc=o=>class extends Vi(o){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>be(e.date,this.focusedDate))}ready(){super.ready(),me(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,i,s){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),i&&s&&i.getMonth()===s.getMonth()&&i.getMonth()===e.getMonth()&&s.getDate()-i.getDate()>=0?!1:!We(r,i,s)&&!We(n,i,s)}_getTitle(e,i){if(!(e===void 0||i===void 0))return i.formatTitle(i.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,i){e.setDate(e.getDate()+i)}_applyFirstDayOfWeek(e,i){if(!(e===void 0||i===void 0))return e.slice(i).concat(e.slice(0,i))}_getWeekDayNames(e,i){if(e===void 0||i===void 0)return[];const{weekdays:s,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(s,n).map((u,d)=>({weekDay:u,weekDayShort:a[d]})).slice(0,7)}__focusedDateChanged(e,i){Array.isArray(i)&&i.some(s=>be(s,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,i){return e&&i&&i.firstDayOfWeek===1}_isToday(e){return be(new Date,e)}_getDays(e,i){if(e===void 0||i===void 0)return[];const s=new Date(0,0);for(s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(1);s.getDay()!==i.firstDayOfWeek;)this._dateAdd(s,-1);const r=[],n=s.getMonth(),a=e.getMonth();for(;s.getMonth()===a||s.getMonth()===n;)r.push(s.getMonth()===a?new Date(s.getTime()):null),this._dateAdd(s,1);return r}_getWeeks(e){return e.reduce((i,s,r)=>(r%7===0&&i.push([]),i[i.length-1].push(s),i),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const i=e.reduce((s,r)=>!s&&r?r:s);return cc(i)}__getDayAriaLabel(e){if(!e)return"";let i=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(i+=`, ${this.i18n.today}`),i}};/**
|
|
3127
3127
|
* @license
|
|
3128
3128
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3129
3129
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3130
|
-
*/const
|
|
3130
|
+
*/const zc=N`
|
|
3131
3131
|
:host {
|
|
3132
3132
|
display: block;
|
|
3133
3133
|
}
|
|
@@ -3187,7 +3187,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3187
3187
|
* @license
|
|
3188
3188
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3189
3189
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3190
|
-
*/X("vaadin-month-calendar",
|
|
3190
|
+
*/X("vaadin-month-calendar",zc,{moduleId:"vaadin-month-calendar-styles"});class Lc extends Nc(Fe(Se)){static get template(){return ze`
|
|
3191
3191
|
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
3192
3192
|
<table
|
|
3193
3193
|
id="monthGrid"
|
|
@@ -3229,7 +3229,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3229
3229
|
</template>
|
|
3230
3230
|
</tbody>
|
|
3231
3231
|
</table>
|
|
3232
|
-
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,i,s,r,n){const a=["date"],l=t>Ei(new Date),u=t<Ei(new Date);return this.__isDayDisabled(t,s,r,n)&&a.push("disabled"),this.__isDayFocused(t,e)&&a.push("focused"),this.__isDaySelected(t,i)&&a.push("selected"),this._isToday(t)&&a.push("today"),u&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(t,e){return
|
|
3232
|
+
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,i,s,r,n){const a=["date"],l=t>Ei(new Date),u=t<Ei(new Date);return this.__isDayDisabled(t,s,r,n)&&a.push("disabled"),this.__isDayFocused(t,e)&&a.push("focused"),this.__isDaySelected(t,i)&&a.push("selected"),this._isToday(t)&&a.push("today"),u&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(t,e){return be(t,e)}__isDaySelected(t,e){return be(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,i,s){return!We(t,e,i,s)}__getDayAriaDisabled(t,e,i,s){if(!(t===void 0||e===void 0&&i===void 0&&s===void 0)&&this.__isDayDisabled(t,e,i,s))return"true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}_e(Lc);/**
|
|
3233
3233
|
* @license
|
|
3234
3234
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3235
3235
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3237,11 +3237,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3237
3237
|
* @license
|
|
3238
3238
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3239
3239
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3240
|
-
*/const $c=o=>class extends o{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},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, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__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(){rr(this.$.scrollers,"pan-y"),me(this.$.scrollers,"track",this._track.bind(this)),me(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),me(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),me(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new mr(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Pe(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),me(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Pe(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),me(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,i){const s=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+s,i),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Pe(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",i=>{this.__onMonthCalendarKeyDown(i)}),e.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(s=>{s.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=i}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Pe(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),me(e,"tap",i=>{this._onYearTap(i)}),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,i){e&&(e.textContent=i&&i.cancel)}__updateTodayButton(e,i,s,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(s,r,n))}__updateCalendars(e,i,s,r,n,a,l,u,d,h){e&&e.length&&e.forEach(p=>{p.i18n=i,p.minDate=s,p.maxDate=r,p.isDateDisabled=h,p.focusedDate=a,p.selectedDate=n,p.showWeekNumbers=l,p.ignoreTaps=u,d?p.setAttribute("theme",d):p.removeAttribute("theme")})}__updateYears(e,i,s){e&&e.length&&e.forEach(r=>{r.selectedDate=i,s?r.setAttribute("theme",s):r.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,i=!0){if(!e)return;const s=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+u,i);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,i):l&&this._scrollToPosition(s-a+1,i)}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let s=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.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=Ue.debounce(this._debouncer,Mt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,i,s){return e&&i&&typeof i.formatDate=="function"?i.formatDate(Ui(e)):s}_onTodayTap(){const e=this._getTodayMidnight();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,i){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!i){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let s;this._revealPromise=new Promise(u=>{s=u});const r=(u,d,h,p)=>(u/=p/2,u<1?h/2*u*u+d:(u-=1,-h/2*(u*(u-2)-1)+d));let n=0;const a=this._monthScroller.position,l=u=>{n||(n=u);const d=u-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._monthScroller.forceUpdate(),this._targetPosition=void 0,s(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,i){return Math.min(i.max,Math.max(i.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 i=this._translateX+e.detail.ddx;this._translateX=this._limit(i,{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 cr(e).getFullYear()}_differenceInMonths(e,i){return(e.getFullYear()-i.getFullYear())*12-i.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){ye(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let i=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),i=!0);break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}i&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,i){switch(e.stopPropagation(),i){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 i=this.focusableDateElement;i&&ye(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(e,i){return Ge(this,null,function*(){const s=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=s,i||(this._focusedMonthDate=s.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Ge(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{Ws(this,()=>{Wi(),i()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(lr(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,i,s){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,s):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,i){const s=new Date(0,0);return s.setFullYear(this.focusedDate.getFullYear()),s.setMonth(this.focusedDate.getMonth()+e),i&&s.setDate(this.focusedDate.getDate()+i),s}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1)}_moveFocusByMonths(e){const i=this._getDateDiff(e),s=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==s&&i.setDate(0),this._focusAllowedDate(i,e,!0)}_moveFocusInsideMonth(e,i){const s=new Date(0,0);s.setFullYear(e.getFullYear()),i==="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[i]):this._focusClosestDate(e)}_dateAllowed(e,i=this.minDate,s=this.maxDate,r=this.isDateDisabled){return We(e,i,s,r)}_isTodayAllowed(e,i,s){return this._dateAllowed(this._getTodayMidnight(),e,i,s)}_getTodayMidnight(){const e=new Date,i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),i}};/**
|
|
3240
|
+
*/const $c=o=>class extends o{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},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, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__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(){rr(this.$.scrollers,"pan-y"),me(this.$.scrollers,"track",this._track.bind(this)),me(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),me(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),me(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new mr(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Pe(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),me(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Pe(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),me(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,i){const s=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+s,i),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Pe(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",i=>{this.__onMonthCalendarKeyDown(i)}),e.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(s=>{s.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=i}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Pe(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),me(e,"tap",i=>{this._onYearTap(i)}),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,i){e&&(e.textContent=i&&i.cancel)}__updateTodayButton(e,i,s,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(s,r,n))}__updateCalendars(e,i,s,r,n,a,l,u,d,h){e&&e.length&&e.forEach(p=>{p.i18n=i,p.minDate=s,p.maxDate=r,p.isDateDisabled=h,p.focusedDate=a,p.selectedDate=n,p.showWeekNumbers=l,p.ignoreTaps=u,d?p.setAttribute("theme",d):p.removeAttribute("theme")})}__updateYears(e,i,s){e&&e.length&&e.forEach(r=>{r.selectedDate=i,s?r.setAttribute("theme",s):r.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,i=!0){if(!e)return;const s=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+u,i);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,i):l&&this._scrollToPosition(s-a+1,i)}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let s=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.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=Ue.debounce(this._debouncer,Mt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,i,s){return e&&i&&typeof i.formatDate=="function"?i.formatDate(Ui(e)):s}_onTodayTap(){const e=this._getTodayMidnight();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,i){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!i){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let s;this._revealPromise=new Promise(u=>{s=u});const r=(u,d,h,p)=>(u/=p/2,u<1?h/2*u*u+d:(u-=1,-h/2*(u*(u-2)-1)+d));let n=0;const a=this._monthScroller.position,l=u=>{n||(n=u);const d=u-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._monthScroller.forceUpdate(),this._targetPosition=void 0,s(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,i){return Math.min(i.max,Math.max(i.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 i=this._translateX+e.detail.ddx;this._translateX=this._limit(i,{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 cr(e).getFullYear()}_differenceInMonths(e,i){return(e.getFullYear()-i.getFullYear())*12-i.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){be(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let i=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),i=!0);break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}i&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,i){switch(e.stopPropagation(),i){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 i=this.focusableDateElement;i&&be(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(e,i){return Ge(this,null,function*(){const s=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=s,i||(this._focusedMonthDate=s.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Ge(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{Ws(this,()=>{Wi(),i()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(lr(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,i,s){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,s):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,i){const s=new Date(0,0);return s.setFullYear(this.focusedDate.getFullYear()),s.setMonth(this.focusedDate.getMonth()+e),i&&s.setDate(this.focusedDate.getDate()+i),s}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1)}_moveFocusByMonths(e){const i=this._getDateDiff(e),s=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==s&&i.setDate(0),this._focusAllowedDate(i,e,!0)}_moveFocusInsideMonth(e,i){const s=new Date(0,0);s.setFullYear(e.getFullYear()),i==="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[i]):this._focusClosestDate(e)}_dateAllowed(e,i=this.minDate,s=this.maxDate,r=this.isDateDisabled){return We(e,i,s,r)}_isTodayAllowed(e,i,s){return this._dateAllowed(this._getTodayMidnight(),e,i,s)}_getTodayMidnight(){const e=new Date,i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),i}};/**
|
|
3241
3241
|
* @license
|
|
3242
3242
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3243
3243
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3244
|
-
*/const Rc=
|
|
3244
|
+
*/const Rc=N`
|
|
3245
3245
|
:host {
|
|
3246
3246
|
display: flex;
|
|
3247
3247
|
flex-direction: column;
|
|
@@ -3305,7 +3305,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3305
3305
|
* @license
|
|
3306
3306
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3307
3307
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3308
|
-
*/X("vaadin-date-picker-overlay-content",Rc,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Hc extends $c(Ke(
|
|
3308
|
+
*/X("vaadin-date-picker-overlay-content",Rc,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Hc extends $c(Ke(Fe(zt(Se)))){static get template(){return ze`
|
|
3309
3309
|
<div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
|
|
3310
3310
|
<div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
|
|
3311
3311
|
<div part="clear-button" hidden$="[[!selectedDate]]"></div>
|
|
@@ -3345,7 +3345,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3345
3345
|
* @license
|
|
3346
3346
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
3347
3347
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3348
|
-
*/const ii=new Map;function Gi(o){return ii.has(o)||ii.set(o,new WeakMap),ii.get(o)}function vr(o,t){o&&o.removeAttribute(t)}function
|
|
3348
|
+
*/const ii=new Map;function Gi(o){return ii.has(o)||ii.set(o,new WeakMap),ii.get(o)}function vr(o,t){o&&o.removeAttribute(t)}function yr(o,t){if(!o||!t)return;const e=Gi(t);if(e.has(o))return;const i=Ri(o.getAttribute(t));e.set(o,new Set(i))}function Uc(o,t){if(!o)return;const e=Gi(t),i=e.get(o);!i||i.size===0?o.removeAttribute(t):Js(o,t,$t(i)),e.delete(o)}function oi(o,t,e={newId:null,oldId:null,fromUser:!1}){if(!o||!t)return;const{newId:i,oldId:s,fromUser:r}=e,n=Gi(t),a=n.get(o);if(!r&&a){s&&a.delete(s),i&&a.add(i);return}r&&(a?i||n.delete(o):yr(o,t),vr(o,t)),bl(o,t,s);const l=i||$t(a);l&&Js(o,t,l)}function Wc(o,t){yr(o,t),vr(o,t)}/**
|
|
3349
3349
|
* @license
|
|
3350
3350
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3351
3351
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3353,7 +3353,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3353
3353
|
* @license
|
|
3354
3354
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
3355
3355
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3356
|
-
*/const he=document.createElement("div");he.style.position="fixed";he.style.clip="rect(0px, 0px, 0px, 0px)";he.setAttribute("aria-live","polite");document.body.appendChild(he);let Et;function Kc(o,t={}){const e=t.mode||"polite",i=t.timeout===void 0?150:t.timeout;e==="alert"?(he.removeAttribute("aria-live"),he.removeAttribute("role"),Et=Ue.debounce(Et,
|
|
3356
|
+
*/const he=document.createElement("div");he.style.position="fixed";he.style.clip="rect(0px, 0px, 0px, 0px)";he.setAttribute("aria-live","polite");document.body.appendChild(he);let Et;function Kc(o,t={}){const e=t.mode||"polite",i=t.timeout===void 0?150:t.timeout;e==="alert"?(he.removeAttribute("aria-live"),he.removeAttribute("role"),Et=Ue.debounce(Et,zl,()=>{he.setAttribute("role","alert")})):(Et&&Et.cancel(),he.removeAttribute("role"),he.setAttribute("aria-live",e)),he.textContent="",setTimeout(()=>{he.textContent=o},i)}/**
|
|
3357
3357
|
* @license
|
|
3358
3358
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
3359
3359
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3377,11 +3377,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3377
3377
|
* @license
|
|
3378
3378
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3379
3379
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3380
|
-
*/const
|
|
3380
|
+
*/const br=Q(o=>class extends o{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
|
|
3381
3381
|
* @license
|
|
3382
3382
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3383
3383
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3384
|
-
*/const Qc=o=>class extends
|
|
3384
|
+
*/const Qc=o=>class extends br(Zc(Ke(o))){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 qc(this),this._helperController=new Jc(this),this._errorController=new Gc(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:i,node:s}=e.detail;this.__labelChanged(i,s)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:s}=e.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,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,i){e?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,i){e?this._fieldAriaController.setLabelId(i.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 i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id)}else this._fieldAriaController.setErrorId(null)})}};/**
|
|
3385
3385
|
* @license
|
|
3386
3386
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3387
3387
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3389,7 +3389,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3389
3389
|
* @license
|
|
3390
3390
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3391
3391
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3392
|
-
*/const xr=Q(o=>class extends eu(
|
|
3392
|
+
*/const xr=Q(o=>class extends eu(br(gr(o))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...i){if(!e)return;const s=this._hasValidConstraints(i),r=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=s}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
|
|
3393
3393
|
* @license
|
|
3394
3394
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3395
3395
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3410,7 +3410,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3410
3410
|
* @license
|
|
3411
3411
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3412
3412
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3413
|
-
*/const su=
|
|
3413
|
+
*/const su=N`
|
|
3414
3414
|
[part='clear-button'] {
|
|
3415
3415
|
display: none;
|
|
3416
3416
|
cursor: default;
|
|
@@ -3427,7 +3427,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3427
3427
|
* @license
|
|
3428
3428
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3429
3429
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3430
|
-
*/const ru=
|
|
3430
|
+
*/const ru=N`
|
|
3431
3431
|
:host {
|
|
3432
3432
|
display: inline-flex;
|
|
3433
3433
|
outline: none;
|
|
@@ -3465,7 +3465,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3465
3465
|
* @license
|
|
3466
3466
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3467
3467
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3468
|
-
*/const nu=
|
|
3468
|
+
*/const nu=N`
|
|
3469
3469
|
[class$='container'] {
|
|
3470
3470
|
display: flex;
|
|
3471
3471
|
flex-direction: column;
|
|
@@ -3489,11 +3489,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3489
3489
|
* @license
|
|
3490
3490
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3491
3491
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3492
|
-
*/const uu=o=>class extends lu(Ke(_r(xr(Rt(o))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const i=String(e.year).replace(/\d+/u,s=>"0000".substr(s.length)+s);return[e.month+1,e.day,i].join("/")},parseDate(e){const i=e.split("/"),s=new Date;let r,n=s.getMonth(),a=s.getFullYear();if(i.length===3){if(n=parseInt(i[0])-1,r=parseInt(i[1]),a=parseInt(i[2]),i[2].length<3&&a>=0){const l=this.referenceDate?et(this.referenceDate):new Date;a=uc(l,a,n,r)}}else i.length===2?(n=parseInt(i[0])-1,r=parseInt(i[1])):i.length===1&&(r=parseInt(i[0]));if(r!==void 0)return{day:r,month:n,year:a}},formatTitle:(e,i)=>`${e} ${i}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:qs},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!$i()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new mr(this._fullscreenMediaQuery,i=>{this._fullscreen=i})),this.addController(new cu(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const i=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close()}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",s=>{this.__commitDate(s.detail.date),this._close()}),i.addEventListener("date-selected",s=>{this.__commitDate(s.detail.date)}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),i.addEventListener("focusout",s=>{this._shouldRemoveFocus(s)&&this._setFocused(!1)}),i.addEventListener("focused-date-changed",s=>{this._focusedDate=s.detail.value}),i.addEventListener("click",s=>s.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(e);if(i&&(i=et(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Ui(e))}checkValidity(){const e=this._inputElementValue,i=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),s=!this._selectedDate||We(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),i&&s&&r}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:i}=e;return this.opened&&i!==null&&i!==document.body&&!this.contains(i)&&!this._overlayContent.contains(i)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,i,s,r,n,a){return!e||i&&(!a||n)||s&&n||!r.parseDate}_formatISO(e){return hc(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,i){e===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,i){e===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,i){const s=et(e);if(e&&!s){this.value=i;return}e?ye(this._selectedDate,s)||(this._selectedDate=s,i!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,i,s,r,n,a,l,u,d){e&&(e.i18n=i,e.label=s,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=u,e.isDateDisabled=d)}__updateOverlayContentTheme(e,i){e&&(i?e.setAttribute("theme",i):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,i){e&&e.toggleAttribute("fullscreen",i)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const i=this._getInitialPosition();e.initialPosition=i;const s=e.focusedDate||i;e.scrollToDate(s),this._ignoreFocusedDateChange=!0,e.focusedDate=s,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=Ks(n)}_getInitialPosition(){const e=et(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||We(i,this._minDate,this._maxDate,this.isDateDisabled)?i:this._minDate||this._maxDate?lr(i,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",i=this.__parseDate(e);i?this.__commitDate(i):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,i)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,ye(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return et(e)}};/**
|
|
3492
|
+
*/const uu=o=>class extends lu(Ke(_r(xr(Rt(o))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const i=String(e.year).replace(/\d+/u,s=>"0000".substr(s.length)+s);return[e.month+1,e.day,i].join("/")},parseDate(e){const i=e.split("/"),s=new Date;let r,n=s.getMonth(),a=s.getFullYear();if(i.length===3){if(n=parseInt(i[0])-1,r=parseInt(i[1]),a=parseInt(i[2]),i[2].length<3&&a>=0){const l=this.referenceDate?et(this.referenceDate):new Date;a=uc(l,a,n,r)}}else i.length===2?(n=parseInt(i[0])-1,r=parseInt(i[1])):i.length===1&&(r=parseInt(i[0]));if(r!==void 0)return{day:r,month:n,year:a}},formatTitle:(e,i)=>`${e} ${i}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:qs},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!$i()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new mr(this._fullscreenMediaQuery,i=>{this._fullscreen=i})),this.addController(new cu(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const i=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close()}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",s=>{this.__commitDate(s.detail.date),this._close()}),i.addEventListener("date-selected",s=>{this.__commitDate(s.detail.date)}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),i.addEventListener("focusout",s=>{this._shouldRemoveFocus(s)&&this._setFocused(!1)}),i.addEventListener("focused-date-changed",s=>{this._focusedDate=s.detail.value}),i.addEventListener("click",s=>s.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(e);if(i&&(i=et(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Ui(e))}checkValidity(){const e=this._inputElementValue,i=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),s=!this._selectedDate||We(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),i&&s&&r}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:i}=e;return this.opened&&i!==null&&i!==document.body&&!this.contains(i)&&!this._overlayContent.contains(i)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,i,s,r,n,a){return!e||i&&(!a||n)||s&&n||!r.parseDate}_formatISO(e){return hc(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,i){e===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,i){e===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,i){const s=et(e);if(e&&!s){this.value=i;return}e?be(this._selectedDate,s)||(this._selectedDate=s,i!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,i,s,r,n,a,l,u,d){e&&(e.i18n=i,e.label=s,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=u,e.isDateDisabled=d)}__updateOverlayContentTheme(e,i){e&&(i?e.setAttribute("theme",i):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,i){e&&e.toggleAttribute("fullscreen",i)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const i=this._getInitialPosition();e.initialPosition=i;const s=e.focusedDate||i;e.scrollToDate(s),this._ignoreFocusedDateChange=!0,e.focusedDate=s,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=Ks(n)}_getInitialPosition(){const e=et(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||We(i,this._minDate,this._maxDate,this.isDateDisabled)?i:this._minDate||this._maxDate?lr(i,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",i=this.__parseDate(e);i?this.__commitDate(i):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,i)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,be(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return et(e)}};/**
|
|
3493
3493
|
* @license
|
|
3494
3494
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3495
3495
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3496
|
-
*/const du=
|
|
3496
|
+
*/const du=N`
|
|
3497
3497
|
:host([opened]) {
|
|
3498
3498
|
pointer-events: auto;
|
|
3499
3499
|
}
|
|
@@ -3510,7 +3510,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3510
3510
|
* @license
|
|
3511
3511
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3512
3512
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3513
|
-
*/X("vaadin-date-picker",[au,du],{moduleId:"vaadin-date-picker-styles"});class hu extends uu(tu(
|
|
3513
|
+
*/X("vaadin-date-picker",[au,du],{moduleId:"vaadin-date-picker-styles"});class hu extends uu(tu(Fe(Qs(Se)))){static get is(){return"vaadin-date-picker"}static get template(){return ze`
|
|
3514
3514
|
<div class="vaadin-date-picker-container">
|
|
3515
3515
|
<div part="label">
|
|
3516
3516
|
<slot name="label"></slot>
|
|
@@ -3552,4 +3552,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3552
3552
|
></vaadin-date-picker-overlay>
|
|
3553
3553
|
|
|
3554
3554
|
<slot name="tooltip"></slot>
|
|
3555
|
-
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new iu(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new ou(this.inputElement,this._labelController)),this._tooltipController=new tr(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}}_e(hu);if(typeof window!="undefined"){let o=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=o(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountModal-D5N72NeZ.cjs")).then(({default:t})=>{!customElements.get("player-account-modal")&&customElements.define("player-account-modal",t.element)})}if(typeof window!="undefined"){let o=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=o(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGeneralConfirmationModal-CepZsQsl.cjs")).then(t=>t.PlayerAccountGeneralConfirmationModal_ce).then(({default:t})=>{!customElements.get("player-account-general-confirmation-modal")&&customElements.define("player-account-general-confirmation-modal",t.element)})}function pu(o){c.append_styles(o,"svelte-h1xl9a",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionContainer{border-radius:var(--emw--border-radius-medium, 10px);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));container-type:inline-size}.SelfExclusionContainer .SelfExclusionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:var(--emw--border-radius-medium, 10px);max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.SelfExclusionContainer .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(--emw--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)}.SelfExclusionNotification{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionNotification.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionNotification .SelfExclusionDescriptionText p{font-size:16px}.SelfExclusionNotification .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px;min-height:180px}.SelfExclusionDescription p{font-size:16px}.SelfExclusionDescription a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}@container (max-width: 768px){.SelfExclusionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}}.SelfExclusionConfigWrapper{width:50%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 10px);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(--emw--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(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 10px) var(--emw--border-radius-medium, 10px)}.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(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emw--color-white, #FFFFFF);background-color:var(--emw--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(--emw--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(--emw--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:var(--emw--color-primary, #23B04E);border-radius:var(--emw--border-radius-medium, 10px);padding:20px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF);cursor:pointer;border:none}.SelfExclusionActionButtons .SelfExclusionSave:hover{filter:brightness(0.9)}.SelfExclusionActionButtons .SelfExclusionSave:disabled{opacity:0.5;cursor:default}.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}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function Yo(o,t,e){const i=o.slice();return i[56]=t[e],i}function fu(o){let t,e,i,s,r=o[20]("titleSelfExclusion")+"",n,a,l,u,d=o[20]("selfExclusionText",{values:{operatorname:o[1],baseurl:o[3],lang:o[0]}})+"",h,p,f=o[20]("selfExclusionEmailText")+"",b,m,y,D,A,I,O,N,W,G=o[20](`${o[13]}`)+"",q,V,T,k,H,ee,E,v,_,x,g,C,S,M=o[20]("save")+"",F,B,U,J,re,ie,ne,K=o[22]&&_u(o),R=c.ensure_array_like(o[9]),L=[];for(let P=0;P<R.length;P+=1)L[P]=jo(Yo(o,R,P));let Y=o[16]&&Vo(o);function ae(P,j){return P[15]?bu:P[17]?gu:vu}let pe=ae(o),se=pe(o),fe=o[23]&&yu(o);return{c(){t=c.element("div"),e=c.element("form"),K&&K.c(),i=c.space(),s=c.element("h2"),n=c.text(r),a=c.space(),l=c.element("div"),u=c.element("p"),h=c.space(),p=c.element("p"),b=c.text(f),m=c.space(),y=c.element("a"),D=c.text(o[2]),I=c.space(),O=c.element("div"),N=c.element("div"),W=c.element("p"),q=c.text(G),V=c.space(),T=c.svg_element("svg"),k=c.svg_element("g"),H=c.svg_element("path"),ee=c.space(),E=c.element("div");for(let P=0;P<L.length;P+=1)L[P].c();v=c.space(),Y&&Y.c(),_=c.space(),x=c.element("div"),se.c(),g=c.space(),C=c.element("div"),S=c.element("button"),F=c.text(M),J=c.space(),fe&&fe.c(),re=c.empty(),c.attr(s,"class","PlayerSelfExclusionTitle "+(o[22]?"PlayerSelfExclusionTitleNone":"")),c.attr(u,"class","SelfExclusionDescriptionText"),c.attr(y,"href",A="mailto:"+o[2]),c.attr(p,"class","SelfExclusionDescriptionText"),c.attr(l,"class","SelfExclusionDescription "+(o[22]?"SelfExclusionDescriptionMobile":"")),c.attr(H,"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"),c.attr(H,"stroke-linecap","round"),c.attr(T,"xmlns","http://www.w3.org/2000/svg"),c.attr(T,"xmlns:xlink","http://www.w3.org/1999/xlink"),c.attr(T,"version","1.1"),c.attr(T,"viewBox","0 0 100 100"),c.attr(T,"xml:space","preserve"),c.attr(T,"class","SelfExclusionConfigIcon"),c.toggle_class(T,"active",o[18]),c.attr(N,"class","SelfExclusionConfigLabel"),c.attr(E,"class","SelfExclusionDropDown"),c.toggle_class(E,"active",o[18]),c.attr(O,"class","SelfExclusionConfigWrapper "+(o[22]?"SelfExclusionConfigWrapperMobile":"")),c.toggle_class(O,"active",o[18]),c.attr(x,"class","SelfExclusionNotification "+(o[22]?"SelfExclusionDescriptionMobile":"")),c.attr(S,"class",B="SelfExclusionSave "+(o[17]?"active":"")),S.disabled=U=!o[17],c.attr(C,"class","SelfExclusionActionButtons "+(o[22]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(o[22]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(P,j){c.insert(P,t,j),c.append(t,e),K&&K.m(e,null),c.append(e,i),c.append(e,s),c.append(s,n),c.append(e,a),c.append(e,l),c.append(l,u),u.innerHTML=d,c.append(l,h),c.append(l,p),c.append(p,b),c.append(p,m),c.append(p,y),c.append(y,D),c.append(e,I),c.append(e,O),c.append(O,N),c.append(N,W),c.append(W,q),c.append(N,V),c.append(N,T),c.append(T,k),c.append(k,H),c.append(O,ee),c.append(O,E);for(let Z=0;Z<L.length;Z+=1)L[Z]&&L[Z].m(E,null);c.append(e,v),Y&&Y.m(e,null),c.append(e,_),c.append(e,x),se.m(x,null),c.append(e,g),c.append(e,C),c.append(C,S),c.append(S,F),c.insert(P,J,j),fe&&fe.m(P,j),c.insert(P,re,j),ie||(ne=[c.listen(N,"click",o[37]),c.listen(S,"click",o[40])],ie=!0)},p(P,j){if(P[22]&&K.p(P,j),j[0]&1048576&&r!==(r=P[20]("titleSelfExclusion")+"")&&c.set_data(n,r),j[0]&1048587&&d!==(d=P[20]("selfExclusionText",{values:{operatorname:P[1],baseurl:P[3],lang:P[0]}})+"")&&(u.innerHTML=d),j[0]&1048576&&f!==(f=P[20]("selfExclusionEmailText")+"")&&c.set_data(b,f),j[0]&4&&c.set_data(D,P[2]),j[0]&4&&A!==(A="mailto:"+P[2])&&c.attr(y,"href",A),j[0]&1056768&&G!==(G=P[20](`${P[13]}`)+"")&&c.set_data(q,G),j[0]&262144&&c.toggle_class(T,"active",P[18]),j[0]&34603520){R=c.ensure_array_like(P[9]);let Z;for(Z=0;Z<R.length;Z+=1){const _t=Yo(P,R,Z);L[Z]?L[Z].p(_t,j):(L[Z]=jo(_t),L[Z].c(),L[Z].m(E,null))}for(;Z<L.length;Z+=1)L[Z].d(1);L.length=R.length}j[0]&262144&&c.toggle_class(E,"active",P[18]),j[0]&262144&&c.toggle_class(O,"active",P[18]),P[16]?Y?Y.p(P,j):(Y=Vo(P),Y.c(),Y.m(e,_)):Y&&(Y.d(1),Y=null),pe===(pe=ae(P))&&se?se.p(P,j):(se.d(1),se=pe(P),se&&(se.c(),se.m(x,null))),j[0]&1048576&&M!==(M=P[20]("save")+"")&&c.set_data(F,M),j[0]&131072&&B!==(B="SelfExclusionSave "+(P[17]?"active":""))&&c.attr(S,"class",B),j[0]&131072&&U!==(U=!P[17])&&(S.disabled=U),P[23]&&fe.p(P,j)},d(P){P&&(c.detach(t),c.detach(J),c.detach(re)),K&&K.d(),c.destroy_each(L,P),Y&&Y.d(),se.d(),fe&&fe.d(P),ie=!1,c.run_all(ne)}}}function mu(o){let t,e,i,s,r,n,a,l,u,d,h,p,f,b,m,y,D,A,I,O,N;function W(V,T){return V[22]?wu:xu}let q=W(o)(o);return{c(){t=c.element("div"),e=c.element("div"),q.c(),i=c.space(),s=c.element("div"),r=c.element("ui-skeleton"),n=c.space(),a=c.element("div"),l=c.space(),u=c.element("ui-skeleton"),d=c.space(),h=c.element("div"),p=c.space(),f=c.element("div"),b=c.element("ui-skeleton"),m=c.space(),y=c.element("div"),D=c.space(),A=c.element("ui-skeleton"),I=c.space(),O=c.element("div"),N=c.element("ui-skeleton"),c.set_custom_element_data(r,"structure","text"),c.set_custom_element_data(r,"height",o[22]?"15px":"20px"),c.set_custom_element_data(r,"rows",o[22]?"12":"5"),c.set_custom_element_data(r,"width",o[22]?"100%":"60%"),c.set_style(a,"height",o[22]?"10px":"20px"),c.set_custom_element_data(u,"structure","text"),c.set_custom_element_data(u,"height",o[22]?"15px":"20px"),c.set_custom_element_data(u,"width","30%"),c.set_style(h,"height","10px"),c.attr(s,"class","SelfExclusionDescription"),c.set_custom_element_data(b,"structure","rectangle"),c.set_custom_element_data(b,"width",o[22]?"100%":"50%"),c.set_custom_element_data(b,"height",o[22]?"30px":"44px"),c.set_style(y,"height",o[22]?"15px":"20px"),c.set_custom_element_data(A,"structure","text"),c.set_custom_element_data(A,"height",o[22]?"15px":"20px"),c.set_custom_element_data(A,"width","30%"),c.attr(f,"class","SelfExclusionConfig"),c.set_custom_element_data(N,"structure","rectangle"),c.set_custom_element_data(N,"width","100%"),c.set_custom_element_data(N,"height",o[22]?"35px":"50px"),c.attr(O,"class","SelfExclusionActionButtons "+(o[22]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(o[22]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(V,T){c.insert(V,t,T),c.append(t,e),q.m(e,null),c.append(e,i),c.append(e,s),c.append(s,r),c.append(s,n),c.append(s,a),c.append(s,l),c.append(s,u),c.append(s,d),c.append(s,h),c.append(e,p),c.append(e,f),c.append(f,b),c.append(f,m),c.append(f,y),c.append(f,D),c.append(f,A),c.append(e,I),c.append(e,O),c.append(O,N)},p:c.noop,d(V){V&&c.detach(t),q.d()}}}function _u(o){let t,e,i,s,r,n,a,l,u,d,h=o[20]("titleSelfExclusion")+"",p,f,b;return{c(){t=c.element("div"),e=c.svg_element("svg"),i=c.svg_element("defs"),s=c.svg_element("style"),r=c.text(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=c.svg_element("g"),a=c.svg_element("g"),l=c.svg_element("path"),u=c.space(),d=c.element("h2"),p=c.text(h),c.attr(l,"class","aaa"),c.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"),c.attr(l,"transform","translate(15 15) rotate(180)"),c.attr(a,"transform","translate(20 158)"),c.attr(n,"transform","translate(-20 -158)"),c.attr(e,"xmlns","http://www.w3.org/2000/svg"),c.attr(e,"width","15"),c.attr(e,"height","15"),c.attr(e,"viewBox","0 0 15 15"),c.attr(d,"class","PlayerSelfExclusionTitleMobile"),c.attr(t,"class","MenuReturnButton")},m(m,y){c.insert(m,t,y),c.append(t,e),c.append(e,i),c.append(i,s),c.append(s,r),c.append(e,n),c.append(n,a),c.append(a,l),c.append(t,u),c.append(t,d),c.append(d,p),f||(b=c.listen(t,"click",o[36]),f=!0)},p(m,y){y[0]&1048576&&h!==(h=m[20]("titleSelfExclusion")+"")&&c.set_data(p,h)},d(m){m&&c.detach(t),f=!1,b()}}}function jo(o){let t,e=o[20](`${o[56].key}`)+"",i,s,r;function n(){return o[38](o[56])}return{c(){t=c.element("div"),i=c.text(e)},m(a,l){c.insert(a,t,l),c.append(t,i),s||(r=c.listen(t,"click",n),s=!0)},p(a,l){o=a,l[0]&1049088&&e!==(e=o[20](`${o[56].key}`)+"")&&c.set_data(i,e)},d(a){a&&c.detach(t),s=!1,r()}}}function Vo(o){let t,e,i=o[20]("duration")+"",s,r,n,a=o[20]("dateInstructions")+"",l,u,d,h,p,f,b;return{c(){t=c.element("div"),e=c.element("label"),s=c.text(i),r=c.space(),n=c.element("span"),l=c.text(a),u=c.space(),d=c.element("strong"),h=c.text(o[21]),p=c.element("strong"),f=c.space(),b=c.element("vaadin-date-picker"),c.attr(e,"for","SelfExclusionDate"),c.attr(n,"class","SelfExclusionDateInstructions"),c.set_custom_element_data(b,"min",o[10]),c.set_custom_element_data(b,"max",o[11]),c.set_custom_element_data(b,"value",o[12]),c.attr(t,"class","SelfExclusionDateWrapper "+(o[22]?"SelfExclusionDateWrapperMobile":""))},m(m,y){c.insert(m,t,y),c.append(t,e),c.append(e,s),c.append(t,r),c.append(t,n),c.append(n,l),c.append(n,u),c.append(n,d),c.append(d,h),c.append(d,p),c.append(t,f),c.append(t,b),o[39](b)},p(m,y){y[0]&1048576&&i!==(i=m[20]("duration")+"")&&c.set_data(s,i),y[0]&1048576&&a!==(a=m[20]("dateInstructions")+"")&&c.set_data(l,a),y[0]&1024&&c.set_custom_element_data(b,"min",m[10]),y[0]&2048&&c.set_custom_element_data(b,"max",m[11]),y[0]&4096&&c.set_custom_element_data(b,"value",m[12])},d(m){m&&c.detach(t),o[39](null)}}}function gu(o){let t,e,i=o[20]("temporarySelfExclusion",{values:{date:ve(o[12]).format(o[21])}})+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&1052672&&i!==(i=r[20]("temporarySelfExclusion",{values:{date:ve(r[12]).format(r[21])}})+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function vu(o){let t,e,i=o[20]("noPeriodSelected")+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&1048576&&i!==(i=r[20]("noPeriodSelected")+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function bu(o){let t,e,i=o[20]("permanentSelfExclusion")+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&1048576&&i!==(i=r[20]("permanentSelfExclusion")+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function yu(o){let t,e,i;return{c(){t=c.element("player-account-modal"),e=c.element("player-account-general-confirmation-modal"),c.set_custom_element_data(e,"modaltitle",i=o[20]("confirmationModalTitle")),c.set_custom_element_data(e,"modaltext",o[14]),c.set_custom_element_data(e,"hascancelbutton",!1),c.set_custom_element_data(e,"modalconfirmevent",{type:"setSelfExclusion"}),c.set_custom_element_data(e,"mbsource",o[6]),c.set_custom_element_data(e,"lang",o[0]),c.set_custom_element_data(t,"clientstyling",o[4]),c.set_custom_element_data(t,"clientstylingurl",o[5]),c.set_custom_element_data(t,"mbsource",o[6]),c.set_custom_element_data(t,"showmodaleventname","ShowSelfExclusionConfirmationModal")},m(s,r){c.insert(s,t,r),c.append(t,e)},p(s,r){r[0]&1048576&&i!==(i=s[20]("confirmationModalTitle"))&&c.set_custom_element_data(e,"modaltitle",i),r[0]&16384&&c.set_custom_element_data(e,"modaltext",s[14]),r[0]&64&&c.set_custom_element_data(e,"mbsource",s[6]),r[0]&1&&c.set_custom_element_data(e,"lang",s[0]),r[0]&16&&c.set_custom_element_data(t,"clientstyling",s[4]),r[0]&32&&c.set_custom_element_data(t,"clientstylingurl",s[5]),r[0]&64&&c.set_custom_element_data(t,"mbsource",s[6])},d(s){s&&c.detach(t)}}}function xu(o){let t;return{c(){t=c.element("ui-skeleton"),c.set_custom_element_data(t,"structure","title"),c.set_custom_element_data(t,"width","100px"),c.set_custom_element_data(t,"margin-top","20px"),c.set_custom_element_data(t,"margin-bottom","20px")},m(e,i){c.insert(e,t,i)},d(e){e&&c.detach(t)}}}function wu(o){let t;return{c(){t=c.element("div"),t.innerHTML='<ui-skeleton structure="title" width="20px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton> <ui-skeleton structure="title" width="100px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton>',c.attr(t,"class","MenuReturnButton")},m(e,i){c.insert(e,t,i)},d(e){e&&c.detach(t)}}}function Eu(o){let t;function e(r,n){return r[19]?mu:fu}let i=e(o),s=i(o);return{c(){t=c.element("div"),s.c()},m(r,n){c.insert(r,t,n),s.m(t,null),o[41](t)},p(r,n){i===(i=e(r))&&s?s.p(r,n):(s.d(1),s=i(r),s&&(s.c(),s.m(t,null)))},i:c.noop,o:c.noop,d(r){r&&c.detach(t),s.d(),o[41](null)}}}function Su(o,t,e){let i;c.component_subscribe(o,c.$format,w=>e(20,i=w)),ve.extend(Mr);let{endpoint:s="",session:r="",userid:n="",lang:a="en",gmversion:l="",operator:u="Everymatrix",supportemail:d="",baseurl:h="",clientstyling:p="",clientstylingurl:f="",mbsource:b,translationurl:m="",hasconfirmationmodal:y="false",dateformat:D="DD/MM/YYYY",sendnotificationemail:A="false"}=t,I,O,N=D.toUpperCase(),W=[],G={},q=window.navigator.userAgent,V,T,k="",H="",ee="selectAPeriod",E="",v="",_=c.getDevice(q)!=="PC",x=!1,g=!1,C=!1,S=!1,M=y==="true",F=!0;const B=()=>{fetch(m).then(le=>le.json()).then(le=>{Object.keys(le).forEach(ce=>{Qi(ce,le[ce])})}).catch(le=>{console.log(le)})};Object.keys(eo).forEach(w=>{Qi(w,eo[w])});const U=()=>{let w=new URL(`${s}/v1/player/selfExclusionSettings`);fetch(w,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(ce=>re(ce)).then(ce=>{e(9,W=ce.periods)}).catch(ce=>{console.log(ce)}).finally(()=>{e(19,F=!1)})},J=w=>{w.data.type==="setSelfExclusion"&&L()},re=w=>Ge(this,null,function*(){if(w.status>=300)G=yield w.json(),v=G.thirdPartyResponse.errorCode,console.error(i(v||"generalError")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i(v||"generalError")}},window.location.href);else return w.json()}),ie=()=>{e(18,S=!S)},ne=w=>{switch(H=w.text,e(13,ee=w.key),e(17,C=!0),e(18,S=!1),e(15,x=!1),e(16,g=!1),H){case"Until":e(16,g=!0),e(10,V=ve().add(6,"M").format("YYYY-MM-DD")),e(11,T=ve().add(5,"y").format("YYYY-MM-DD")),e(12,k=V);break;case"Permanent":e(15,x=!x);break;default:const[le,ce]=H.split(" "),Ae=ce.includes("Day")?"days":ce.includes("Month")?"months":ce.includes("Year")?"years":null;if(!Ae)return;e(12,k=ve().add(Number(le),Ae).format("YYYY-MM-DD"));break}M&&K()},K=()=>{if(!M||!H||!k){e(14,E="");return}e(14,E=g?i("confirmationModalTextUntilSelfExclusion",{values:{date:ve(k).format(N)}}):i("confirmationModalTextPeriodSelfExclusion",{values:{period:i(H)}}))},R=w=>{w.preventDefault(),M?(K(),window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href)):L()},L=()=>{e(19,F=!0);const w=new URL(`/v2/player/${n}/limits${l==="gm16"?"/session":""}`,s),ce={method:"PUT",headers:{"X-SessionID":r,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({selfExclusion:{period:ee,expiryDate:k,selfExclusionReason:"UserRequest",sendNotificationEmail:A==="true"}})};fetch(w.href,ce).then(Ae=>re(Ae)).then(Ae=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("selfExclusionSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href)}).catch(Ae=>{console.error(i("errorSelfExclusionCall"),Ae),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i("errorSelfExclusionCall")}},window.location.href)}).finally(()=>{e(19,F=!1)})},Y=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:_},window.location.href)},ae=w=>{e(12,k=w.target.value)},pe=()=>{O.addEventListener("change",ae,!1),e(8,O.i18n=vt(gt({},O.i18n),{formatDate:w=>ve(new Date(w.year,w.month,w.day)).format(N),parseDate:w=>{const le=ve(w,N);return{year:le.year(),month:le.month(),day:le.date()}}}),O)};c.onMount(()=>(window.addEventListener("message",J,!1),()=>{O.removeEventListener("change",ae),window.removeEventListener("message",J)}));const se=()=>{Or(a)},fe=()=>Y(),P=()=>ie(),j=w=>ne(w);function Z(w){c.binding_callbacks[w?"unshift":"push"](()=>{O=w,e(8,O)})}const _t=w=>R(w);function Er(w){c.binding_callbacks[w?"unshift":"push"](()=>{I=w,e(7,I)})}return o.$$set=w=>{"endpoint"in w&&e(28,s=w.endpoint),"session"in w&&e(29,r=w.session),"userid"in w&&e(30,n=w.userid),"lang"in w&&e(0,a=w.lang),"gmversion"in w&&e(31,l=w.gmversion),"operator"in w&&e(1,u=w.operator),"supportemail"in w&&e(2,d=w.supportemail),"baseurl"in w&&e(3,h=w.baseurl),"clientstyling"in w&&e(4,p=w.clientstyling),"clientstylingurl"in w&&e(5,f=w.clientstylingurl),"mbsource"in w&&e(6,b=w.mbsource),"translationurl"in w&&e(32,m=w.translationurl),"hasconfirmationmodal"in w&&e(33,y=w.hasconfirmationmodal),"dateformat"in w&&e(34,D=w.dateformat),"sendnotificationemail"in w&&e(35,A=w.sendnotificationemail)},o.$$.update=()=>{o.$$.dirty[0]&1&&a&&se(),o.$$.dirty[0]&1879048192|o.$$.dirty[1]&1&&s&&r&&n&&l&&U(),o.$$.dirty[0]&256&&O&&pe(),o.$$.dirty[0]&144&&p&&I&&c.setClientStyling(I,p),o.$$.dirty[0]&160&&f&&I&&c.setClientStylingURL(I,f),o.$$.dirty[0]&192&&b&&I&&c.setStreamStyling(I,`${b}.Style`),o.$$.dirty[1]&2&&m&&B()},M&&K(),[a,u,d,h,p,f,b,I,O,W,V,T,k,ee,E,x,g,C,S,F,i,N,_,M,ie,ne,R,Y,s,r,n,l,m,y,D,A,fe,P,j,Z,_t,Er]}class wr extends c.SvelteComponent{constructor(t){super(),c.init(this,t,Su,Eu,c.safe_not_equal,{endpoint:28,session:29,userid:30,lang:0,gmversion:31,operator:1,supportemail:2,baseurl:3,clientstyling:4,clientstylingurl:5,mbsource:6,translationurl:32,hasconfirmationmodal:33,dateformat:34,sendnotificationemail:35},pu,[-1,-1])}get endpoint(){return this.$$.ctx[28]}set endpoint(t){this.$$set({endpoint:t}),c.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),c.flush()}get userid(){return this.$$.ctx[30]}set userid(t){this.$$set({userid:t}),c.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),c.flush()}get gmversion(){return this.$$.ctx[31]}set gmversion(t){this.$$set({gmversion:t}),c.flush()}get operator(){return this.$$.ctx[1]}set operator(t){this.$$set({operator:t}),c.flush()}get supportemail(){return this.$$.ctx[2]}set supportemail(t){this.$$set({supportemail:t}),c.flush()}get baseurl(){return this.$$.ctx[3]}set baseurl(t){this.$$set({baseurl:t}),c.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),c.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),c.flush()}get mbsource(){return this.$$.ctx[6]}set mbsource(t){this.$$set({mbsource:t}),c.flush()}get translationurl(){return this.$$.ctx[32]}set translationurl(t){this.$$set({translationurl:t}),c.flush()}get hasconfirmationmodal(){return this.$$.ctx[33]}set hasconfirmationmodal(t){this.$$set({hasconfirmationmodal:t}),c.flush()}get dateformat(){return this.$$.ctx[34]}set dateformat(t){this.$$set({dateformat:t}),c.flush()}get sendnotificationemail(){return this.$$.ctx[35]}set sendnotificationemail(t){this.$$set({sendnotificationemail:t}),c.flush()}}c.create_custom_element(wr,{endpoint:{},session:{},userid:{},lang:{},gmversion:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},hasconfirmationmodal:{},dateformat:{},sendnotificationemail:{}},[],[],!0);exports.default=wr;
|
|
3555
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new iu(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new ou(this.inputElement,this._labelController)),this._tooltipController=new tr(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}}_e(hu);if(typeof window!="undefined"){let o=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=o(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountModal-D5N72NeZ.cjs")).then(({default:t})=>{!customElements.get("player-account-modal")&&customElements.define("player-account-modal",t.element)})}if(typeof window!="undefined"){let o=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=o(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGeneralConfirmationModal-CepZsQsl.cjs")).then(t=>t.PlayerAccountGeneralConfirmationModal_ce).then(({default:t})=>{!customElements.get("player-account-general-confirmation-modal")&&customElements.define("player-account-general-confirmation-modal",t.element)})}function pu(o){c.append_styles(o,"svelte-gvegix",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionContainer{border-radius:var(--emw--border-radius-medium, 10px);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));container-type:inline-size}.SelfExclusionContainer .SelfExclusionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:var(--emw--border-radius-medium, 10px);max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.SelfExclusionContainer .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(--emw--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)}.SelfExclusionNotification{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionNotification.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionNotification .SelfExclusionDescriptionText p{font-size:16px}.SelfExclusionNotification .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px;min-height:180px}.SelfExclusionDescription p{font-size:16px}.SelfExclusionDescription a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}@container (max-width: 768px){.SelfExclusionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}}.SelfExclusionConfigWrapper{width:50%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 10px);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(--emw--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(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 10px) var(--emw--border-radius-medium, 10px)}.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(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emw--color-white, #FFFFFF);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:600px;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(--emw--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(--emw--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:var(--emw--color-primary, #23B04E);border-radius:var(--emw--border-radius-medium, 10px);padding:20px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF);cursor:pointer;border:none}.SelfExclusionActionButtons .SelfExclusionSave:hover{filter:brightness(0.9)}.SelfExclusionActionButtons .SelfExclusionSave:disabled{opacity:0.5;cursor:default}.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}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function Yo(o,t,e){const i=o.slice();return i[56]=t[e],i}function fu(o){let t,e,i,s,r=o[20]("titleSelfExclusion")+"",n,a,l,u,d=o[20]("selfExclusionText",{values:{operatorname:o[1],baseurl:o[3],lang:o[0]}})+"",h,p,f=o[20]("selfExclusionEmailText")+"",y,m,b,D,C,I,O,F,W,G=o[20](`${o[13]}`)+"",q,V,T,k,H,ee,E,v,_,x,g,A,S,M=o[20]("save")+"",z,B,U,J,re,ie,ne,K=o[22]&&_u(o),R=c.ensure_array_like(o[9]),L=[];for(let P=0;P<R.length;P+=1)L[P]=jo(Yo(o,R,P));let Y=o[16]&&Vo(o);function ae(P,j){return P[15]?yu:P[17]?gu:vu}let pe=ae(o),se=pe(o),fe=o[23]&&bu(o);return{c(){t=c.element("div"),e=c.element("form"),K&&K.c(),i=c.space(),s=c.element("h2"),n=c.text(r),a=c.space(),l=c.element("div"),u=c.element("p"),h=c.space(),p=c.element("p"),y=c.text(f),m=c.space(),b=c.element("a"),D=c.text(o[2]),I=c.space(),O=c.element("div"),F=c.element("div"),W=c.element("p"),q=c.text(G),V=c.space(),T=c.svg_element("svg"),k=c.svg_element("g"),H=c.svg_element("path"),ee=c.space(),E=c.element("div");for(let P=0;P<L.length;P+=1)L[P].c();v=c.space(),Y&&Y.c(),_=c.space(),x=c.element("div"),se.c(),g=c.space(),A=c.element("div"),S=c.element("button"),z=c.text(M),J=c.space(),fe&&fe.c(),re=c.empty(),c.attr(s,"class","PlayerSelfExclusionTitle "+(o[22]?"PlayerSelfExclusionTitleNone":"")),c.attr(u,"class","SelfExclusionDescriptionText"),c.attr(b,"href",C="mailto:"+o[2]),c.attr(p,"class","SelfExclusionDescriptionText"),c.attr(l,"class","SelfExclusionDescription "+(o[22]?"SelfExclusionDescriptionMobile":"")),c.attr(H,"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"),c.attr(H,"stroke-linecap","round"),c.attr(T,"xmlns","http://www.w3.org/2000/svg"),c.attr(T,"xmlns:xlink","http://www.w3.org/1999/xlink"),c.attr(T,"version","1.1"),c.attr(T,"viewBox","0 0 100 100"),c.attr(T,"xml:space","preserve"),c.attr(T,"class","SelfExclusionConfigIcon"),c.toggle_class(T,"active",o[18]),c.attr(F,"class","SelfExclusionConfigLabel"),c.attr(E,"class","SelfExclusionDropDown"),c.toggle_class(E,"active",o[18]),c.attr(O,"class","SelfExclusionConfigWrapper "+(o[22]?"SelfExclusionConfigWrapperMobile":"")),c.toggle_class(O,"active",o[18]),c.attr(x,"class","SelfExclusionNotification "+(o[22]?"SelfExclusionDescriptionMobile":"")),c.attr(S,"class",B="SelfExclusionSave "+(o[17]?"active":"")),S.disabled=U=!o[17],c.attr(A,"class","SelfExclusionActionButtons "+(o[22]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(o[22]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(P,j){c.insert(P,t,j),c.append(t,e),K&&K.m(e,null),c.append(e,i),c.append(e,s),c.append(s,n),c.append(e,a),c.append(e,l),c.append(l,u),u.innerHTML=d,c.append(l,h),c.append(l,p),c.append(p,y),c.append(p,m),c.append(p,b),c.append(b,D),c.append(e,I),c.append(e,O),c.append(O,F),c.append(F,W),c.append(W,q),c.append(F,V),c.append(F,T),c.append(T,k),c.append(k,H),c.append(O,ee),c.append(O,E);for(let Z=0;Z<L.length;Z+=1)L[Z]&&L[Z].m(E,null);c.append(e,v),Y&&Y.m(e,null),c.append(e,_),c.append(e,x),se.m(x,null),c.append(e,g),c.append(e,A),c.append(A,S),c.append(S,z),c.insert(P,J,j),fe&&fe.m(P,j),c.insert(P,re,j),ie||(ne=[c.listen(F,"click",o[37]),c.listen(S,"click",o[40])],ie=!0)},p(P,j){if(P[22]&&K.p(P,j),j[0]&1048576&&r!==(r=P[20]("titleSelfExclusion")+"")&&c.set_data(n,r),j[0]&1048587&&d!==(d=P[20]("selfExclusionText",{values:{operatorname:P[1],baseurl:P[3],lang:P[0]}})+"")&&(u.innerHTML=d),j[0]&1048576&&f!==(f=P[20]("selfExclusionEmailText")+"")&&c.set_data(y,f),j[0]&4&&c.set_data(D,P[2]),j[0]&4&&C!==(C="mailto:"+P[2])&&c.attr(b,"href",C),j[0]&1056768&&G!==(G=P[20](`${P[13]}`)+"")&&c.set_data(q,G),j[0]&262144&&c.toggle_class(T,"active",P[18]),j[0]&34603520){R=c.ensure_array_like(P[9]);let Z;for(Z=0;Z<R.length;Z+=1){const _t=Yo(P,R,Z);L[Z]?L[Z].p(_t,j):(L[Z]=jo(_t),L[Z].c(),L[Z].m(E,null))}for(;Z<L.length;Z+=1)L[Z].d(1);L.length=R.length}j[0]&262144&&c.toggle_class(E,"active",P[18]),j[0]&262144&&c.toggle_class(O,"active",P[18]),P[16]?Y?Y.p(P,j):(Y=Vo(P),Y.c(),Y.m(e,_)):Y&&(Y.d(1),Y=null),pe===(pe=ae(P))&&se?se.p(P,j):(se.d(1),se=pe(P),se&&(se.c(),se.m(x,null))),j[0]&1048576&&M!==(M=P[20]("save")+"")&&c.set_data(z,M),j[0]&131072&&B!==(B="SelfExclusionSave "+(P[17]?"active":""))&&c.attr(S,"class",B),j[0]&131072&&U!==(U=!P[17])&&(S.disabled=U),P[23]&&fe.p(P,j)},d(P){P&&(c.detach(t),c.detach(J),c.detach(re)),K&&K.d(),c.destroy_each(L,P),Y&&Y.d(),se.d(),fe&&fe.d(P),ie=!1,c.run_all(ne)}}}function mu(o){let t,e,i,s,r,n,a,l,u,d,h,p,f,y,m,b,D,C,I,O,F;function W(V,T){return V[22]?wu:xu}let q=W(o)(o);return{c(){t=c.element("div"),e=c.element("div"),q.c(),i=c.space(),s=c.element("div"),r=c.element("ui-skeleton"),n=c.space(),a=c.element("div"),l=c.space(),u=c.element("ui-skeleton"),d=c.space(),h=c.element("div"),p=c.space(),f=c.element("div"),y=c.element("ui-skeleton"),m=c.space(),b=c.element("div"),D=c.space(),C=c.element("ui-skeleton"),I=c.space(),O=c.element("div"),F=c.element("ui-skeleton"),c.set_custom_element_data(r,"structure","text"),c.set_custom_element_data(r,"height",o[22]?"15px":"20px"),c.set_custom_element_data(r,"rows",o[22]?"12":"5"),c.set_custom_element_data(r,"width",o[22]?"100%":"60%"),c.set_style(a,"height",o[22]?"10px":"20px"),c.set_custom_element_data(u,"structure","text"),c.set_custom_element_data(u,"height",o[22]?"15px":"20px"),c.set_custom_element_data(u,"width","30%"),c.set_style(h,"height","10px"),c.attr(s,"class","SelfExclusionDescription"),c.set_custom_element_data(y,"structure","rectangle"),c.set_custom_element_data(y,"width",o[22]?"100%":"50%"),c.set_custom_element_data(y,"height",o[22]?"30px":"44px"),c.set_style(b,"height",o[22]?"15px":"20px"),c.set_custom_element_data(C,"structure","text"),c.set_custom_element_data(C,"height",o[22]?"15px":"20px"),c.set_custom_element_data(C,"width","30%"),c.attr(f,"class","SelfExclusionConfig"),c.set_custom_element_data(F,"structure","rectangle"),c.set_custom_element_data(F,"width","100%"),c.set_custom_element_data(F,"height",o[22]?"35px":"50px"),c.attr(O,"class","SelfExclusionActionButtons "+(o[22]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(o[22]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(V,T){c.insert(V,t,T),c.append(t,e),q.m(e,null),c.append(e,i),c.append(e,s),c.append(s,r),c.append(s,n),c.append(s,a),c.append(s,l),c.append(s,u),c.append(s,d),c.append(s,h),c.append(e,p),c.append(e,f),c.append(f,y),c.append(f,m),c.append(f,b),c.append(f,D),c.append(f,C),c.append(e,I),c.append(e,O),c.append(O,F)},p:c.noop,d(V){V&&c.detach(t),q.d()}}}function _u(o){let t,e,i,s,r,n,a,l,u,d,h=o[20]("titleSelfExclusion")+"",p,f,y;return{c(){t=c.element("div"),e=c.svg_element("svg"),i=c.svg_element("defs"),s=c.svg_element("style"),r=c.text(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=c.svg_element("g"),a=c.svg_element("g"),l=c.svg_element("path"),u=c.space(),d=c.element("h2"),p=c.text(h),c.attr(l,"class","aaa"),c.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"),c.attr(l,"transform","translate(15 15) rotate(180)"),c.attr(a,"transform","translate(20 158)"),c.attr(n,"transform","translate(-20 -158)"),c.attr(e,"xmlns","http://www.w3.org/2000/svg"),c.attr(e,"width","15"),c.attr(e,"height","15"),c.attr(e,"viewBox","0 0 15 15"),c.attr(d,"class","PlayerSelfExclusionTitleMobile"),c.attr(t,"class","MenuReturnButton")},m(m,b){c.insert(m,t,b),c.append(t,e),c.append(e,i),c.append(i,s),c.append(s,r),c.append(e,n),c.append(n,a),c.append(a,l),c.append(t,u),c.append(t,d),c.append(d,p),f||(y=c.listen(t,"click",o[36]),f=!0)},p(m,b){b[0]&1048576&&h!==(h=m[20]("titleSelfExclusion")+"")&&c.set_data(p,h)},d(m){m&&c.detach(t),f=!1,y()}}}function jo(o){let t,e=o[20](`${o[56].key}`)+"",i,s,r;function n(){return o[38](o[56])}return{c(){t=c.element("div"),i=c.text(e)},m(a,l){c.insert(a,t,l),c.append(t,i),s||(r=c.listen(t,"click",n),s=!0)},p(a,l){o=a,l[0]&1049088&&e!==(e=o[20](`${o[56].key}`)+"")&&c.set_data(i,e)},d(a){a&&c.detach(t),s=!1,r()}}}function Vo(o){let t,e,i=o[20]("duration")+"",s,r,n,a=o[20]("dateInstructions")+"",l,u,d,h,p,f,y;return{c(){t=c.element("div"),e=c.element("label"),s=c.text(i),r=c.space(),n=c.element("span"),l=c.text(a),u=c.space(),d=c.element("strong"),h=c.text(o[21]),p=c.element("strong"),f=c.space(),y=c.element("vaadin-date-picker"),c.attr(e,"for","SelfExclusionDate"),c.attr(n,"class","SelfExclusionDateInstructions"),c.set_custom_element_data(y,"min",o[10]),c.set_custom_element_data(y,"max",o[11]),c.set_custom_element_data(y,"value",o[12]),c.attr(t,"class","SelfExclusionDateWrapper "+(o[22]?"SelfExclusionDateWrapperMobile":""))},m(m,b){c.insert(m,t,b),c.append(t,e),c.append(e,s),c.append(t,r),c.append(t,n),c.append(n,l),c.append(n,u),c.append(n,d),c.append(d,h),c.append(d,p),c.append(t,f),c.append(t,y),o[39](y)},p(m,b){b[0]&1048576&&i!==(i=m[20]("duration")+"")&&c.set_data(s,i),b[0]&1048576&&a!==(a=m[20]("dateInstructions")+"")&&c.set_data(l,a),b[0]&1024&&c.set_custom_element_data(y,"min",m[10]),b[0]&2048&&c.set_custom_element_data(y,"max",m[11]),b[0]&4096&&c.set_custom_element_data(y,"value",m[12])},d(m){m&&c.detach(t),o[39](null)}}}function gu(o){let t,e,i=o[20]("temporarySelfExclusion",{values:{date:ve(o[12]).format(o[21])}})+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&1052672&&i!==(i=r[20]("temporarySelfExclusion",{values:{date:ve(r[12]).format(r[21])}})+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function vu(o){let t,e,i=o[20]("noPeriodSelected")+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&1048576&&i!==(i=r[20]("noPeriodSelected")+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function yu(o){let t,e,i=o[20]("permanentSelfExclusion")+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&1048576&&i!==(i=r[20]("permanentSelfExclusion")+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function bu(o){let t,e,i;return{c(){t=c.element("player-account-modal"),e=c.element("player-account-general-confirmation-modal"),c.set_custom_element_data(e,"modaltitle",i=o[20]("confirmationModalTitle")),c.set_custom_element_data(e,"modaltext",o[14]),c.set_custom_element_data(e,"hascancelbutton",!1),c.set_custom_element_data(e,"modalconfirmevent",{type:"setSelfExclusion"}),c.set_custom_element_data(e,"mbsource",o[6]),c.set_custom_element_data(e,"lang",o[0]),c.set_custom_element_data(t,"clientstyling",o[4]),c.set_custom_element_data(t,"clientstylingurl",o[5]),c.set_custom_element_data(t,"mbsource",o[6]),c.set_custom_element_data(t,"showmodaleventname","ShowSelfExclusionConfirmationModal")},m(s,r){c.insert(s,t,r),c.append(t,e)},p(s,r){r[0]&1048576&&i!==(i=s[20]("confirmationModalTitle"))&&c.set_custom_element_data(e,"modaltitle",i),r[0]&16384&&c.set_custom_element_data(e,"modaltext",s[14]),r[0]&64&&c.set_custom_element_data(e,"mbsource",s[6]),r[0]&1&&c.set_custom_element_data(e,"lang",s[0]),r[0]&16&&c.set_custom_element_data(t,"clientstyling",s[4]),r[0]&32&&c.set_custom_element_data(t,"clientstylingurl",s[5]),r[0]&64&&c.set_custom_element_data(t,"mbsource",s[6])},d(s){s&&c.detach(t)}}}function xu(o){let t;return{c(){t=c.element("ui-skeleton"),c.set_custom_element_data(t,"structure","title"),c.set_custom_element_data(t,"width","100px"),c.set_custom_element_data(t,"margin-top","20px"),c.set_custom_element_data(t,"margin-bottom","20px")},m(e,i){c.insert(e,t,i)},d(e){e&&c.detach(t)}}}function wu(o){let t;return{c(){t=c.element("div"),t.innerHTML='<ui-skeleton structure="title" width="20px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton> <ui-skeleton structure="title" width="100px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton>',c.attr(t,"class","MenuReturnButton")},m(e,i){c.insert(e,t,i)},d(e){e&&c.detach(t)}}}function Eu(o){let t;function e(r,n){return r[19]?mu:fu}let i=e(o),s=i(o);return{c(){t=c.element("div"),s.c()},m(r,n){c.insert(r,t,n),s.m(t,null),o[41](t)},p(r,n){i===(i=e(r))&&s?s.p(r,n):(s.d(1),s=i(r),s&&(s.c(),s.m(t,null)))},i:c.noop,o:c.noop,d(r){r&&c.detach(t),s.d(),o[41](null)}}}function Su(o,t,e){let i;c.component_subscribe(o,c.$format,w=>e(20,i=w)),ve.extend(Mr);let{endpoint:s="",session:r="",userid:n="",lang:a="en",gmversion:l="",operator:u="Everymatrix",supportemail:d="",baseurl:h="",clientstyling:p="",clientstylingurl:f="",mbsource:y,translationurl:m="",hasconfirmationmodal:b="false",dateformat:D="DD/MM/YYYY",sendnotificationemail:C="false"}=t,I,O,F=D.toUpperCase(),W=[],G={},q=window.navigator.userAgent,V,T,k="",H="",ee="selectAPeriod",E="",v="",_=c.getDevice(q)!=="PC",x=!1,g=!1,A=!1,S=!1,M=b==="true",z=!0;const B=()=>{fetch(m).then(le=>le.json()).then(le=>{Object.keys(le).forEach(ce=>{Qi(ce,le[ce])})}).catch(le=>{console.log(le)})};Object.keys(eo).forEach(w=>{Qi(w,eo[w])});const U=()=>{let w=new URL(`${s}/v1/player/selfExclusionSettings`);fetch(w,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(ce=>re(ce)).then(ce=>{e(9,W=ce.periods)}).catch(ce=>{console.log(ce)}).finally(()=>{e(19,z=!1)})},J=w=>{w.data.type==="setSelfExclusion"&&L()},re=w=>Ge(this,null,function*(){if(w.status>=300)G=yield w.json(),v=G.thirdPartyResponse.errorCode,console.error(i(v||"generalError")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i(v||"generalError")}},window.location.href);else return w.json()}),ie=()=>{e(18,S=!S)},ne=w=>{switch(H=w.text,e(13,ee=w.key),e(17,A=!0),e(18,S=!1),e(15,x=!1),e(16,g=!1),H){case"Until":e(16,g=!0),e(10,V=ve().add(6,"M").format("YYYY-MM-DD")),e(11,T=ve().add(5,"y").format("YYYY-MM-DD")),e(12,k=V);break;case"Permanent":e(15,x=!x);break;default:const[le,ce]=H.split(" "),Ce=ce.includes("Day")?"days":ce.includes("Month")?"months":ce.includes("Year")?"years":null;if(!Ce)return;e(12,k=ve().add(Number(le),Ce).format("YYYY-MM-DD"));break}M&&K()},K=()=>{if(!M||!H||!k){e(14,E="");return}e(14,E=g?i("confirmationModalTextUntilSelfExclusion",{values:{date:ve(k).format(F)}}):i("confirmationModalTextPeriodSelfExclusion",{values:{period:i(H)}}))},R=w=>{w.preventDefault(),M?(K(),window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href)):L()},L=()=>{e(19,z=!0);const w=new URL(`/v2/player/${n}/limits${l==="gm16"?"/session":""}`,s),ce={method:"PUT",headers:{"X-SessionID":r,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({selfExclusion:{period:ee,expiryDate:k,selfExclusionReason:"UserRequest",sendNotificationEmail:C==="true"}})};fetch(w.href,ce).then(Ce=>re(Ce)).then(Ce=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("selfExclusionSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href)}).catch(Ce=>{console.error(i("errorSelfExclusionCall"),Ce),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i("errorSelfExclusionCall")}},window.location.href)}).finally(()=>{e(19,z=!1)})},Y=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:_},window.location.href)},ae=w=>{e(12,k=w.target.value)},pe=()=>{O.addEventListener("change",ae,!1),e(8,O.i18n=vt(gt({},O.i18n),{formatDate:w=>ve(new Date(w.year,w.month,w.day)).format(F),parseDate:w=>{const le=ve(w,F);return{year:le.year(),month:le.month(),day:le.date()}}}),O)};c.onMount(()=>(window.addEventListener("message",J,!1),()=>{O.removeEventListener("change",ae),window.removeEventListener("message",J)}));const se=()=>{Or(a)},fe=()=>Y(),P=()=>ie(),j=w=>ne(w);function Z(w){c.binding_callbacks[w?"unshift":"push"](()=>{O=w,e(8,O)})}const _t=w=>R(w);function Er(w){c.binding_callbacks[w?"unshift":"push"](()=>{I=w,e(7,I)})}return o.$$set=w=>{"endpoint"in w&&e(28,s=w.endpoint),"session"in w&&e(29,r=w.session),"userid"in w&&e(30,n=w.userid),"lang"in w&&e(0,a=w.lang),"gmversion"in w&&e(31,l=w.gmversion),"operator"in w&&e(1,u=w.operator),"supportemail"in w&&e(2,d=w.supportemail),"baseurl"in w&&e(3,h=w.baseurl),"clientstyling"in w&&e(4,p=w.clientstyling),"clientstylingurl"in w&&e(5,f=w.clientstylingurl),"mbsource"in w&&e(6,y=w.mbsource),"translationurl"in w&&e(32,m=w.translationurl),"hasconfirmationmodal"in w&&e(33,b=w.hasconfirmationmodal),"dateformat"in w&&e(34,D=w.dateformat),"sendnotificationemail"in w&&e(35,C=w.sendnotificationemail)},o.$$.update=()=>{o.$$.dirty[0]&1&&a&&se(),o.$$.dirty[0]&1879048192|o.$$.dirty[1]&1&&s&&r&&n&&l&&U(),o.$$.dirty[0]&256&&O&&pe(),o.$$.dirty[0]&144&&p&&I&&c.setClientStyling(I,p),o.$$.dirty[0]&160&&f&&I&&c.setClientStylingURL(I,f),o.$$.dirty[0]&192&&y&&I&&c.setStreamStyling(I,`${y}.Style`),o.$$.dirty[1]&2&&m&&B()},M&&K(),[a,u,d,h,p,f,y,I,O,W,V,T,k,ee,E,x,g,A,S,z,i,F,_,M,ie,ne,R,Y,s,r,n,l,m,b,D,C,fe,P,j,Z,_t,Er]}class wr extends c.SvelteComponent{constructor(t){super(),c.init(this,t,Su,Eu,c.safe_not_equal,{endpoint:28,session:29,userid:30,lang:0,gmversion:31,operator:1,supportemail:2,baseurl:3,clientstyling:4,clientstylingurl:5,mbsource:6,translationurl:32,hasconfirmationmodal:33,dateformat:34,sendnotificationemail:35},pu,[-1,-1])}get endpoint(){return this.$$.ctx[28]}set endpoint(t){this.$$set({endpoint:t}),c.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),c.flush()}get userid(){return this.$$.ctx[30]}set userid(t){this.$$set({userid:t}),c.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),c.flush()}get gmversion(){return this.$$.ctx[31]}set gmversion(t){this.$$set({gmversion:t}),c.flush()}get operator(){return this.$$.ctx[1]}set operator(t){this.$$set({operator:t}),c.flush()}get supportemail(){return this.$$.ctx[2]}set supportemail(t){this.$$set({supportemail:t}),c.flush()}get baseurl(){return this.$$.ctx[3]}set baseurl(t){this.$$set({baseurl:t}),c.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),c.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),c.flush()}get mbsource(){return this.$$.ctx[6]}set mbsource(t){this.$$set({mbsource:t}),c.flush()}get translationurl(){return this.$$.ctx[32]}set translationurl(t){this.$$set({translationurl:t}),c.flush()}get hasconfirmationmodal(){return this.$$.ctx[33]}set hasconfirmationmodal(t){this.$$set({hasconfirmationmodal:t}),c.flush()}get dateformat(){return this.$$.ctx[34]}set dateformat(t){this.$$set({dateformat:t}),c.flush()}get sendnotificationemail(){return this.$$.ctx[35]}set sendnotificationemail(t){this.$$set({sendnotificationemail:t}),c.flush()}}c.create_custom_element(wr,{endpoint:{},session:{},userid:{},lang:{},gmversion:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},hasconfirmationmodal:{},dateformat:{},sendnotificationemail:{}},[],[],!0);exports.default=wr;
|