@everymatrix/player-account-controller-nd 1.63.3 → 1.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PlayerAccountBettingHistory-B9b7N4rK.cjs +1 -0
- package/components/{PlayerAccountBettingHistory-BQDZnQJv.js → PlayerAccountBettingHistory-DF90lVOO.js} +29 -29
- package/components/{PlayerAccountBettingHistory-BaUkbO2e.js → PlayerAccountBettingHistory-Dz5yeKKA.js} +29 -29
- package/components/PlayerAccountBiometrics--jNdHq_x.cjs +1 -0
- package/components/{PlayerAccountBiometrics-Dbhuxb19.js → PlayerAccountBiometrics-BqXLWadL.js} +43 -43
- package/components/{PlayerAccountBiometrics-Dh74Qtn7.js → PlayerAccountBiometrics-Ddw_ADH3.js} +43 -43
- package/components/PlayerAccountClosureNd-D7du3DpH.js +346 -0
- package/components/PlayerAccountClosureNd-RFe9SqKa.cjs +1 -0
- package/components/PlayerAccountClosureNd-pyS-Vgfe.js +346 -0
- package/components/PlayerAccountControllerNd-B3XwVX0t.cjs +1 -0
- package/components/{PlayerAccountControllerNd-DmOFOtWH.js → PlayerAccountControllerNd-CKbKx0x3.js} +1093 -809
- package/components/{PlayerAccountControllerNd-UHEMcr5V.js → PlayerAccountControllerNd-ZKZdeBGw.js} +1082 -798
- package/components/{PlayerAccountGamingLimits-DLbWmmx-.cjs → PlayerAccountGamingLimits-CR8NVI1l.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-D0bxzBDm.js → PlayerAccountGamingLimits-DfdXawUg.js} +39 -39
- package/components/{PlayerAccountGamingLimits-CeAZM__C.js → PlayerAccountGamingLimits-wMFpNkes.js} +39 -39
- package/components/{PlayerAccountGamingLimitsConfirmationModal-DncSFVcn.js → PlayerAccountGamingLimitsConfirmationModal-CmUUxaPK.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BnEweLIY.js → PlayerAccountGamingLimitsConfirmationModal-DZKii3hI.js} +1 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-d82kkCRB.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsGroupEdit-DmpsyTc8.cjs → PlayerAccountGamingLimitsGroupEdit-BVnFtpmu.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-Cz2qqAAY.js → PlayerAccountGamingLimitsGroupEdit-CunpwRCp.js} +268 -268
- package/components/{PlayerAccountGamingLimitsGroupEdit-B7MQQXXb.js → PlayerAccountGamingLimitsGroupEdit-yWlNJPAV.js} +268 -268
- package/components/{PlayerAccountGamingLimitsHistory2Nd-Dnahi30S.js → PlayerAccountGamingLimitsHistory2Nd-BjR_4sPM.js} +245 -245
- package/components/{PlayerAccountGamingLimitsHistory2Nd-BQGrRCWJ.cjs → PlayerAccountGamingLimitsHistory2Nd-D7aSqGSa.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-BjyWFgbh.js → PlayerAccountGamingLimitsHistory2Nd-SXSJVgXX.js} +255 -255
- package/components/{PlayerAccountGamingLimitsInfoCard-DYRTXhce.js → PlayerAccountGamingLimitsInfoCard-BCRZ04Hb.js} +53 -53
- package/components/{PlayerAccountGamingLimitsInfoCard-C0V84L8B.js → PlayerAccountGamingLimitsInfoCard-BbAStOZd.js} +53 -53
- package/components/{PlayerAccountGamingLimitsInfoCard-C4wloIme.cjs → PlayerAccountGamingLimitsInfoCard-BeTjFC2H.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-BPCMNRwE.js → PlayerAccountGamingLimitsPage2Gm16Nd-B2aTZQTk.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-DSY26Bjc.js → PlayerAccountGamingLimitsPage2Gm16Nd-CK93bH3V.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-BO4C95_X.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-TqJOE-wZ.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-PYs0Vgim.cjs → PlayerAccountGamingLimitsWrapper2Nd-B-4dzr5j.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-DrK2-o5P.js → PlayerAccountGamingLimitsWrapper2Nd-BeMvidXj.js} +133 -133
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-CsLB_pnx.js → PlayerAccountGamingLimitsWrapper2Nd-CAhDx70z.js} +50 -50
- package/components/{PlayerAccountGeneralConfirmationModal-XmJMAUuW.js → PlayerAccountGeneralConfirmationModal-B1swDT-8.js} +9 -9
- package/components/PlayerAccountGeneralConfirmationModal-CZkaGeVc.cjs +1 -0
- package/components/{PlayerAccountGeneralConfirmationModal-CUpQq9mt.js → PlayerAccountGeneralConfirmationModal-DziZi8kq.js} +9 -9
- package/components/PlayerAccountMenuNd-BKZgzL3n.cjs +1 -0
- package/components/{PlayerAccountMenuNd-CxnPp8TH.js → PlayerAccountMenuNd-BhyjVRuJ.js} +9 -9
- package/components/{PlayerAccountMenuNd-Bp_hjRRq.js → PlayerAccountMenuNd-CJ7cm0F_.js} +9 -9
- package/components/PlayerAccountNotifications-0OisRcYn.cjs +1 -0
- package/components/{PlayerAccountNotifications-CeyX2lOx.js → PlayerAccountNotifications-Di9ejoZn.js} +42 -42
- package/components/{PlayerAccountNotifications-Ccv15Pjf.js → PlayerAccountNotifications-Get6mur7.js} +39 -39
- package/components/{PlayerAccountSelfExclusionNd-CrYM5oTU.cjs → PlayerAccountSelfExclusionNd-C_XQIyHr.cjs} +19 -19
- package/components/{PlayerAccountSelfExclusionNd-C3rsUt5E.js → PlayerAccountSelfExclusionNd-Ckpq0tvM.js} +1285 -1285
- package/components/{PlayerAccountSelfExclusionNd--JbMhz8n.js → PlayerAccountSelfExclusionNd-DnAbGzN6.js} +1315 -1315
- package/components/{PlayerAccountTimeout-SoqN7bMq.js → PlayerAccountTimeout-BVuTBIZ9.js} +104 -104
- package/components/{PlayerAccountTimeout-BJL3CfsU.js → PlayerAccountTimeout-C8cr4M3b.js} +104 -104
- package/components/{PlayerAccountTimeout-BUvC_yO8.cjs → PlayerAccountTimeout-CXDKPIO4.cjs} +1 -1
- package/components/PlayerAccountTransactionsHistory-CBysPJ7e.js +13827 -0
- package/components/PlayerAccountTransactionsHistory-DKv-FaMN.js +13847 -0
- package/components/PlayerAccountTransactionsHistory-DOyK1gIl.cjs +4546 -0
- package/components/{PlayerActiveBonuses-DsXZ2LWk.js → PlayerActiveBonuses-BUEeywdk.js} +155 -155
- package/components/{PlayerActiveBonuses-B8GJf0af.js → PlayerActiveBonuses-DVL8sYl0.js} +155 -155
- package/components/PlayerActiveBonuses-Dotto8Fu.cjs +1 -0
- package/components/{PlayerBonusCard-B6ggUEkL.js → PlayerBonusCard-CayyZ_il.js} +17 -17
- package/components/{PlayerBonusCard-6CpIv5o1.js → PlayerBonusCard-IaQiAChi.js} +17 -17
- package/components/PlayerBonusCard-nz_NWtbH.cjs +1 -0
- package/components/{PlayerBonusHistory-_Q3yY8OW.js → PlayerBonusHistory-B2--DG1R.js} +4 -4
- package/components/{PlayerBonusHistory-BEKn13zi.cjs → PlayerBonusHistory-BAKoIDFh.cjs} +1 -1
- package/components/{PlayerBonusHistory-2cAGGFlb.js → PlayerBonusHistory-C46Vthks.js} +4 -4
- package/components/{PlayerChangePassword-CeUedW_1.cjs → PlayerChangePassword-CsxcNZiB.cjs} +2 -2
- package/components/{PlayerChangePassword-BpFdooht.js → PlayerChangePassword-DbkKEXRC.js} +34 -34
- package/components/{PlayerChangePassword-DCAPfPzU.js → PlayerChangePassword-Dg5oPNcv.js} +34 -34
- package/components/PlayerDeposit-CjdOaig0.cjs +1 -0
- package/components/{PlayerDeposit-BlaUbOFE.js → PlayerDeposit-CtaQRIt5.js} +22 -22
- package/components/{PlayerDeposit-CICzsn3y.js → PlayerDeposit-DBpO36if.js} +22 -22
- package/components/{PlayerGamingHistory-BRpTgMhR.js → PlayerGamingHistory-B-99L6ed.js} +150 -150
- package/components/PlayerGamingHistory-D5mhAZ-1.cjs +1 -0
- package/components/{PlayerGamingHistory-DOB0lPG1.js → PlayerGamingHistory-kyPqKyxn.js} +137 -137
- package/components/{PlayerPendingWithdrawals-BdgNl6Vs.cjs → PlayerPendingWithdrawals-B9YXwRUU.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-BTEMyPpn.js → PlayerPendingWithdrawals-C3NfJ7OG.js} +9 -9
- package/components/{PlayerPendingWithdrawals-CIZkb_Lo.js → PlayerPendingWithdrawals-CEuRpWfP.js} +9 -9
- package/components/{PlayerProfileInfo-DFDj3xge.js → PlayerProfileInfo-3dkuH9Q9.js} +1 -1
- package/components/PlayerProfileInfo-BqzfGqWe.cjs +1 -0
- package/components/{PlayerProfileInfo-Cw5vJCxw.js → PlayerProfileInfo-DGiKkt5w.js} +1 -1
- package/components/{PlayerRealityCheck-BLblY5qL.js → PlayerRealityCheck-CBrwL8VP.js} +108 -108
- package/components/{PlayerRealityCheck-DwUIXfJJ.cjs → PlayerRealityCheck-CHhkuZko.cjs} +1 -1
- package/components/{PlayerRealityCheck-iC62X6wE.js → PlayerRealityCheck-c-plaUGh.js} +111 -111
- package/components/{PlayerTransactionHistory-D8WUTK8U.cjs → PlayerTransactionHistory-Bh5t7Moq.cjs} +1 -1
- package/components/{PlayerTransactionHistory-XQ_BjuGi.js → PlayerTransactionHistory-ChaYKejr.js} +29 -29
- package/components/{PlayerTransactionHistory-D78rlE2i.js → PlayerTransactionHistory-CxVY-rVx.js} +29 -29
- package/components/{PlayerWithdrawal-mOfIFDcT.js → PlayerWithdrawal-D53e2d9k.js} +1 -1
- package/components/{PlayerWithdrawal-Dih0SjE2.js → PlayerWithdrawal-DBdto8RJ.js} +1 -1
- package/components/PlayerWithdrawal-DXWxKqhW.cjs +1 -0
- package/es2015/player-account-controller-nd.cjs +1 -1
- package/es2015/player-account-controller-nd.js +1 -1
- package/esnext/player-account-controller-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/{checkbox-group-input_9-CBlOQ2bp.cjs → checkbox-group-input_9-BVo6POrE.cjs} +2 -2
- package/stencil/{checkbox-group-input_9-Cf3RhgI2.js → checkbox-group-input_9-BYF0jsTq.js} +38 -38
- package/stencil/{checkbox-group-input_9-NOhxQ4TV.js → checkbox-group-input_9-BoeV0RWO.js} +38 -38
- package/stencil/{general-input-DXHAg0hj.cjs → general-input--yXMqsva.cjs} +1 -1
- package/stencil/{general-input-BbYl1wbH.js → general-input-BH8GcvVK.js} +1 -1
- package/stencil/{general-input-DOa7K2O_.js → general-input-Dl9Pmn5j.js} +1 -1
- package/stencil/{index-1ef3a64c-d6wOzDuW.cjs → index-1ef3a64c-40UJl6ZR.cjs} +1 -1
- package/stencil/{index-1ef3a64c-D_6fm_mH.js → index-1ef3a64c-D_hRnRRS.js} +1 -1
- package/stencil/{index-1ef3a64c-C3248BpZ.js → index-1ef3a64c-DlkA_w16.js} +1 -1
- package/stencil/{index-9c0f6c58-DeLVbTUg.js → index-9c0f6c58-BNoMpTuB.js} +1 -1
- package/stencil/{index-9c0f6c58-DeCWAW-B.cjs → index-9c0f6c58-DkHHwpww.cjs} +1 -1
- package/stencil/{index-9c0f6c58-D5txcAjr.js → index-9c0f6c58-pr1WGVFu.js} +1 -1
- package/stencil/{index-9cd44522-DZYEjrQJ.js → index-9cd44522-CYt1WZ1X.js} +4 -4
- package/stencil/{index-9cd44522-B5bBjvJ-.js → index-9cd44522-CcsmteW_.js} +4 -4
- package/stencil/{index-9cd44522-B27p0GWo.cjs → index-9cd44522-f4GYx31A.cjs} +1 -1
- package/stencil/{password-input_2-BPC46TAs.cjs → password-input_2-1qc8Or-g.cjs} +3 -3
- package/stencil/{password-input_2-D4wWQR82.js → password-input_2-BA-NStqa.js} +4 -4
- package/stencil/{password-input_2-BxuZdeWc.js → password-input_2-DtEUIBYt.js} +4 -4
- package/stencil/{player-change-password-gm2-039e300e-Du8eNt-6.js → player-change-password-gm2-5cb5c6c1-CMg8l3iV.js} +2 -2
- package/stencil/{player-change-password-gm2-039e300e-Dm-mYZ76.js → player-change-password-gm2-5cb5c6c1-DdQdAw8-.js} +2 -2
- package/stencil/{player-change-password-gm2-039e300e-WtxMW-jf.cjs → player-change-password-gm2-5cb5c6c1-P3acbHkQ.cjs} +1 -1
- package/stencil/{player-change-password-gm2-CL_S4kzE.cjs → player-change-password-gm2-CK45v7lD.cjs} +1 -1
- package/stencil/{player-change-password-gm2-CEo_RTlU.js → player-change-password-gm2-DtYM5w_o.js} +1 -1
- package/stencil/{player-change-password-gm2-Bc5CkDrM.js → player-change-password-gm2-LFlWDg6W.js} +1 -1
- package/stencil/{player-kyc-verification-z8R7nMzo.js → player-kyc-verification-CUhrMPde.js} +6 -6
- package/stencil/{player-kyc-verification-C0h2CP_Y.cjs → player-kyc-verification-DAy-szI5.cjs} +3 -3
- package/stencil/{player-kyc-verification-dmJNIHni.js → player-kyc-verification-DPUx1txP.js} +5 -5
- package/stencil/{toggle-checkbox-input-C7Z1kZlk.js → toggle-checkbox-input-8TVoppaZ.js} +2 -2
- package/stencil/{toggle-checkbox-input-DKrKPVIW.cjs → toggle-checkbox-input-BTLojIHe.cjs} +1 -1
- package/stencil/{toggle-checkbox-input-rkO07S5s.js → toggle-checkbox-input-CVmtbY5P.js} +2 -2
- package/stencil/{user-deposit-withdrawal-C8A8VDip.js → user-deposit-withdrawal-C3ngwq1c.js} +35 -35
- package/stencil/{user-deposit-withdrawal-8SEgGGEs.cjs → user-deposit-withdrawal-CJihIeJ7.cjs} +4 -4
- package/stencil/{user-deposit-withdrawal-BIEaZv3-.js → user-deposit-withdrawal-cnDUxzhZ.js} +35 -35
- package/components/PlayerAccountBettingHistory-Lp_KBkg4.cjs +0 -1
- package/components/PlayerAccountBiometrics-CeKoZNyZ.cjs +0 -1
- package/components/PlayerAccountClosureNd-BsF9ZVbK.js +0 -346
- package/components/PlayerAccountClosureNd-DMGgaEs3.js +0 -346
- package/components/PlayerAccountClosureNd-Yd72HK-r.cjs +0 -1
- package/components/PlayerAccountControllerNd-DMVZGd2c.cjs +0 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-D4IU66Wc.cjs +0 -1
- package/components/PlayerAccountGeneralConfirmationModal-C855qGTP.cjs +0 -1
- package/components/PlayerAccountMenuNd-DydOkp6f.cjs +0 -1
- package/components/PlayerAccountNotifications-DN4TPQQU.cjs +0 -1
- package/components/PlayerActiveBonuses-DIJBqD-t.cjs +0 -1
- package/components/PlayerBonusCard-BDWqqpGz.cjs +0 -1
- package/components/PlayerDeposit-BmunpkgB.cjs +0 -1
- package/components/PlayerGamingHistory-BeCdiGp8.cjs +0 -1
- package/components/PlayerProfileInfo-CPEAe3ab.cjs +0 -1
- package/components/PlayerWithdrawal-g7alD3vj.cjs +0 -1
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
21
|
*/const tt=globalThis,xt=tt.trustedTypes,eo=xt?xt.createPolicy("lit-html",{createHTML:o=>o}):void 0,Jo="$lit$",be=`lit$${Math.random().toFixed(9).slice(2)}$`,Xo="?"+be,Ir=`<${Xo}>`,De=document,ot=()=>De.createComment(""),st=o=>o===null||typeof o!="object"&&typeof o!="function",ki=Array.isArray,Nr=o=>ki(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",$t=`[
|
|
22
22
|
\f\r]`,qe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,to=/-->/g,io=/>/g,Se=RegExp(`>|${$t}(?:([^\\s"'>=/]+)(${$t}*=${$t}*(?:[^
|
|
23
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),oo=/'/g,so=/"/g,Zo=/^(?:script|style|textarea|title)$/i,
|
|
23
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),oo=/'/g,so=/"/g,Zo=/^(?:script|style|textarea|title)$/i,He=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),ro=new WeakMap,Ce=De.createTreeWalker(De,129);function Qo(o,t){if(!ki(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return eo!==void 0?eo.createHTML(t):t}const zr=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":t===3?"<math>":"",n=qe;for(let a=0;a<e;a++){const l=o[a];let d,u,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,u=n.exec(l),u!==null);)p=n.lastIndex,n===qe?u[1]==="!--"?n=to:u[1]!==void 0?n=io:u[2]!==void 0?(Zo.test(u[2])&&(s=RegExp("</"+u[2],"g")),n=Se):u[3]!==void 0&&(n=Se):n===Se?u[0]===">"?(n=s!=null?s:qe,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?Se:u[3]==='"'?so:oo):n===so||n===oo?n=Se:n===to||n===io?n=qe:(n=Se,s=void 0);const f=n===Se&&o[a+1].startsWith("/>")?" ":"";r+=n===qe?l+Ir:h>=0?(i.push(d),l.slice(0,h)+Jo+l.slice(h)+be+f):l+be+(h===-2?a:f)}return[Qo(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class rt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[d,u]=zr(t,e);if(this.el=rt.createElement(d,i),Ce.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=Ce.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(Jo)){const p=u[n++],f=s.getAttribute(h).split(be),b=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:b[2],strings:f,ctor:b[1]==="."?Lr:b[1]==="?"?$r:b[1]==="@"?Rr:Dt}),s.removeAttribute(h)}else h.startsWith(be)&&(l.push({type:6,index:r}),s.removeAttribute(h));if(Zo.test(s.tagName)){const h=s.textContent.split(be),p=h.length-1;if(p>0){s.textContent=xt?xt.emptyScript:"";for(let f=0;f<p;f++)s.append(h[f],ot()),Ce.nextNode(),l.push({type:2,index:++r});s.append(h[p],ot())}}}else if(s.nodeType===8)if(s.data===Xo)l.push({type:2,index:r});else{let h=-1;for(;(h=s.data.indexOf(be,h+1))!==-1;)l.push({type:7,index:r}),h+=be.length-1}r++}}static createElement(t,e){const i=De.createElement("template");return i.innerHTML=t,i}}function Be(o,t,e=o,i){var n,a,l;if(t===He)return t;let s=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const r=st(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=Be(o,s._$AS(o,t.values),s,i)),t}class Fr{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 d;const{el:{content:e},parts:i}=this._$AD,s=((d=t==null?void 0:t.creationScope)!=null?d:De).importNode(e,!0);Ce.currentNode=s;let r=Ce.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let u;l.type===2?u=new ht(r,r.nextSibling,this,t):l.type===1?u=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(u=new Hr(r,this,t)),this._$AV.push(u),l=i[++a]}n!==(l==null?void 0:l.index)&&(r=Ce.nextNode(),n++)}return Ce.currentNode=De,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 ht{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=J,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=Be(this,t,e),st(t)?t===J||t==null||t===""?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==He&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Nr(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!==J&&st(this._$AH)?this._$AA.nextSibling.data=t:this.T(De.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=rt.createElement(Qo(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 Fr(s,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=ro.get(t.strings);return e===void 0&&ro.set(t.strings,e=new rt(t)),e}k(t){ki(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 ht(this.O(ot()),this.O(ot()),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 Dt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,r){this.type=1,this._$AH=J,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=J}_$AI(t,e=this,i,s){const r=this.strings;let n=!1;if(r===void 0)t=Be(this,t,e,0),n=!st(t)||t!==this._$AH&&t!==He,n&&(this._$AH=t);else{const a=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=Be(this,a[i+l],e,l),d===He&&(d=this._$AH[l]),n||(n=!st(d)||d!==this._$AH[l]),d===J?t=J:t!==J&&(t+=(d!=null?d:"")+r[l+1]),this._$AH[l]=d}n&&!s&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class Lr extends Dt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}}class $r extends Dt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==J)}}class Rr extends Dt{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var n;if((t=(n=Be(this,t,e,0))!=null?n:J)===He)return;const i=this._$AH,s=t===J&&i!==J||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==J&&(i===J||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 Hr{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){Be(this,t)}}const Rt=tt.litHtmlPolyfillSupport;var Uo;Rt==null||Rt(rt,ht),((Uo=tt.litHtmlVersions)!=null?Uo:tt.litHtmlVersions=[]).push("3.2.1");const Br=(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 ht(t.insertBefore(ot(),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
|
|
27
|
-
*/class Fe extends ze{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const t=super.createRenderRoot();return(i=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=
|
|
27
|
+
*/class Fe extends ze{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const t=super.createRenderRoot();return(i=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Br(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return He}}var Wo;Fe._$litElement$=!0,Fe.finalized=!0,(Wo=globalThis.litElementHydrateSupport)==null||Wo.call(globalThis,{LitElement:Fe});const Ht=globalThis.litElementPolyfillSupport;Ht==null||Ht({LitElement:Fe});var qo;((qo=globalThis.litElementVersions)!=null?qo:globalThis.litElementVersions=[]).push("4.1.1");/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
30
30
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -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
|
|
2024
|
+
*/const Hn={"dom-if":!0,"dom-repeat":!0};let fo=!1,mo=!1;function Bn(){if(!fo){fo=!0;const o=document.createElement("textarea");o.placeholder="a",mo=o.placeholder===o.textContent}return mo}function jn(o){Bn()&&o.localName==="textarea"&&o.placeholder&&o.placeholder===o.textContent&&(o.textContent=null)}const Yn=(()=>{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 Vn(o){let t=o.getAttribute("is");if(t&&Hn[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];Yn(o,e,i),e.removeAttribute(i)}}return o}function ks(o,t){let e=t.parentInfo&&ks(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 Un(o,t,e,i){i.id&&(t[i.id]=e)}function Wn(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 qn(o,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i)}function Kn(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 Gn=K(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),jn(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=Vn(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let u=l;for(;u&&u.nodeType===Node.TEXT_NODE;)n.textContent+=u.textContent,l=u.nextSibling,i.removeChild(u),u=l;if(s.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let d={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,s,d)&&(d.infoIndex=s.nodeInfoList.push(d)-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,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(i,s,r,d.name,d.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 d=0,u=r.length,h;d<u&&(h=r[d]);d++){let p=l[d]=ks(a,h);Un(this,a.$,p,h),qn(this,p,h,s),Wn(this,p,h)}return a=a,a}_addMethodEventListenerToNode(i,s,r,n){n=n||i;let a=Kn(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 ct=0;const dt=[],I={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ps="__computeInfo",Jn=/[A-Z]/;function Ht(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 Qe(o,t,e,i,s,r){if(t){let n=!1;const a=ct++;for(let l in e){let d=s?Me(l):l,u=t[d];if(u)for(let h=0,p=u.length,f;h<p&&(f=u[h]);h++)(!f.info||f.info.lastRun!==a)&&(!s||Oi(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 Xn(o,t,e,i,s,r,n,a){let l=!1,d=n?Me(i):i,u=t[d];if(u)for(let h=0,p=u.length,f;h<p&&(f=u[h]);h++)(!f.info||f.info.lastRun!==e)&&(!n||Oi(i,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(o,i,s,r,f.info,n,a),l=!0);return l}function Oi(o,t){if(t){let e=t.name;return e==o||!!(t.structured&&vs(e,o))||!!(t.wildcard&&at(e,o))}else return!0}function _o(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 Zn(o,t,e,i,s){let r=o[I.NOTIFY],n,a=ct++;for(let d in t)t[d]&&(r&&Xn(o,r,a,d,e,i,s)||s&&Qn(o,d,e))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Qn(o,t,e){let i=Me(t);if(i!==t){let s=Tt(i)+"-changed";return Ds(o,s,e[t],t),!0}return!1}function Ds(o,t,e,i){let s={value:e,queueProperty:!0};i&&(s.path=i),Z(o).dispatchEvent(new CustomEvent(t,{detail:s}))}function ea(o,t,e,i,s,r){let a=(r?Me(t):t)!=t?t:null,l=a?ie(o,a):o.__data[t];a&&l===void 0&&(l=e[t]),Ds(o,s.eventName,l,a)}function ta(o,t,e,i,s){let r,n=o.detail,a=n&&n.path;a?(i=lt(e,i,a),r=n&&n.value):r=o.currentTarget[e],r=s?!r:r,(!t[I.READ_ONLY]||!t[I.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function ia(o,t,e,i,s){let r=o.__data[t];Et&&(r=Et(r,s.attrName,"attribute",o)),o._propertyToAttribute(t,s.attrName,r)}function oa(o,t,e,i){let s=o[I.COMPUTE];if(s)if(vn){ct++;const r=ra(o),n=[];for(let l in t)go(l,s,n,r,i);let a;for(;a=n.shift();)Ts(o,"",t,e,a)&&go(a.methodInfo,s,n,r,i);Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),o.__dataPending=null}else{let r=t;for(;Qe(o,s,r,e,i);)Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),r=o.__dataPending,o.__dataPending=null}}const sa=(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)},go=(o,t,e,i,s)=>{const r=s?Me(o):o,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==ct&&(!s||Oi(o,l.trigger))&&(l.info.lastRun=ct,sa(l.info,e,i))}};function ra(o){let t=o.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=o[I.COMPUTE];let{counts:i,ready:s,total:r}=na(o),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&s.push(d)})}r!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=t}return t}function na(o){const t=o[Ps],e={},i=o[I.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 Ts(o,t,e,i,s){let r=ai(o,t,e,i,s);if(r===dt)return!1;let n=s.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,r,!0):(o[n]=r,!1)}function aa(o,t,e){let i=o.__dataLinkedPaths;if(i){let s;for(let r in i){let n=i[r];at(r,t)?(s=lt(r,n,t),o._setPendingPropertyOrPath(s,e,!0,!0)):at(n,t)&&(s=lt(n,r,t),o._setPendingPropertyOrPath(s,e,!0,!0))}}}function jt(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),ha(a)){let{event:d,negate:u}=a.parts[0];a.listenerEvent=d||Tt(s)+"-changed",a.listenerNegate=u}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let u=a.parts[d];u.compoundIndex=d,la(o,t,a,u,l)}}function la(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=Os(l),l.wildcard=!0),o._addTemplatePropertyEffect(t,l.rootProperty,{fn:ca,info:n,trigger:l})}}}function ca(o,t,e,i,s,r,n){let a=n[s.index],l=s.binding,d=s.part;if(r&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let u=e[t];t=lt(d.source,l.target,t),a._setPendingPropertyOrPath(t,u,!1,!0)&&o._enqueueClient(a)}else{let u=s.evaluator._evaluateBinding(o,d,t,e,i,r);u!==dt&&da(o,a,l,d,u)}}function da(o,t,e,i,s){if(s=ua(t,s,e,i),Et&&(s=Et(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[I.READ_ONLY]||!t[I.READ_ONLY][r])&&t._setPendingProperty(r,s)&&o._enqueueClient(t):o._setUnmanagedPropertyToNode(t,r,s)}}function ua(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 ha(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function pa(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 d=a[l];fa(n,d),ma(n,o,d)}n.__dataHost=o}}function fa(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=Z(o)),o[r]=t.literal)}}function ma(o,t,e){if(e.listenerEvent){let i=e.parts[0];o.addEventListener(e.listenerEvent,function(s){ta(s,t,e.target,i.source,i.negate)})}}function bo(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 ai(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===dt?dt:n.apply(r,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const _a=[],Ms="(?:[a-zA-Z_$][\\w.:$\\-*]*)",ga="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",ba="(?:'(?:[^'\\\\]|\\\\.)*')",va='(?:"(?:[^"\\\\]|\\\\.)*")',ya="(?:"+ba+"|"+va+")",vo="(?:("+Ms+"|"+ga+"|"+ya+")\\s*)",xa="(?:"+vo+"(?:,\\s*"+vo+")*)",wa="(?:\\(\\s*(?:"+xa+"?)\\)\\s*)",Ea="("+Ms+"\\s*"+wa+"?)",Sa="(\\[\\[|{{)\\s*",Ca="(?:]]|}})",Aa="(?:(!)\\s*)?",ka=Sa+Aa+Ea+Ca,yo=new RegExp(ka,"g");function xo(o){let t="";for(let e=0;e<o.length;e++){let i=o[e].literal;t+=i||""}return t}function Yt(o){let t=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:_a};if(t[2].trim()){let s=t[2].replace(/\\,/g,",").split(",");return Pa(s,i)}else return i}return null}function Pa(o,t){return t.args=o.map(function(e){let i=Os(e);return i.literal||(t.static=!1),i},this),t}function Os(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=Me(t),e.structured=ri(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function wo(o,t,e){let i=ie(o,e);return i===void 0&&(i=t[e]),i}function Is(o,t,e,i){const s={indexSplices:i};si&&!o._overrideLegacyUndefined&&(t.splices=s),o.notifyPath(e+".splices",s),o.notifyPath(e+".length",t.length),si&&!o._overrideLegacyUndefined&&(s.indexSplices=[])}function Ke(o,t,e,i,s,r){Is(o,t,e,[{index:i,addedCount:s,removed:r,object:t,type:"splice"}])}function Da(o){return o[0].toUpperCase()+o.substring(1)}const Ii=K(o=>{const t=Gn(Rn(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 I}_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(Ge.length){let s=Ge[Ge.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[I.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==I.READ_ONLY);let a=Ht(this,r,!0)[s];a||(a=this[r][s]=[]),a.push(n)}_removePropertyEffect(s,r,n){let a=Ht(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,I.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,I.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,I.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,I.COMPUTE)}_setPendingPropertyOrPath(s,r,n,a){if(a||Me(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=ie(this,s);if(s=po(this,s,r),!s||!super._shouldPropertyChange(s,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,r,n))return aa(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=Z(s)),s[r]=n)}_setPendingProperty(s,r,n){let a=this.__dataHasPaths&&ri(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[I.NOTIFY]&&this[I.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[I.READ_ONLY]||!this[I.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;oa(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),Qe(this,this[I.REFLECT],r,n,a),Qe(this,this[I.OBSERVE],r,n,a),l&&Zn(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,r,n){this[I.PROPAGATE]&&Qe(this,this[I.PROPAGATE],s,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,r,n)}_runEffectsForTemplate(s,r,n,a){const l=(d,u)=>{Qe(this,s.propertyEffects,d,n,u,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,u)};s.runEffects?s.runEffects(l,r,a):l(r,a)}linkPaths(s,r){s=Ze(s),r=Ze(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=r}unlinkPaths(s){s=Ze(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,r){let n={path:""},a=ie(this,s,n);Is(this,a,n.path,r)}get(s,r){return ie(r||this,s)}set(s,r,n){n?po(n,s,r):(!this[I.READ_ONLY]||!this[I.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,r,!0)&&this._invalidateProperties()}push(s,...r){let n={path:""},a=ie(this,s,n),l=a.length,d=a.push(...r);return r.length&&Ke(this,a,n.path,l,r.length,[]),d}pop(s){let r={path:""},n=ie(this,s,r),a=!!n.length,l=n.pop();return a&&Ke(this,n,r.path,n.length,0,[l]),l}splice(s,r,n,...a){let l={path:""},d=ie(this,s,l);r<0?r=d.length-Math.floor(-r):r&&(r=Math.floor(r));let u;return arguments.length===2?u=d.splice(r):u=d.splice(r,n,...a),(a.length||u.length)&&Ke(this,d,l.path,r,a.length,u),u}shift(s){let r={path:""},n=ie(this,s,r),a=!!n.length,l=n.shift();return a&&Ke(this,n,r.path,0,0,[l]),l}unshift(s,...r){let n={path:""},a=ie(this,s,n),l=a.unshift(...r);return r.length&&Ke(this,a,n.path,0,r.length,[]),l}notifyPath(s,r){let n;if(arguments.length==1){let a={path:""};r=ie(this,s,a),n=a.path}else Array.isArray(s)?n=Ze(s):n=s;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,r){this._addPropertyEffect(s,I.READ_ONLY),r&&(this["_set"+Da(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,r,n){let a={property:s,method:r,dynamicFn:!!n};this._addPropertyEffect(s,I.OBSERVE,{fn:_o,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(r,I.OBSERVE,{fn:_o,info:a,trigger:{name:r}})}_createMethodObserver(s,r){let n=Yt(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");bo(this,n,I.OBSERVE,ai,null,r)}_createNotifyingProperty(s){this._addPropertyEffect(s,I.NOTIFY,{fn:ea,info:{eventName:Tt(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,I.REFLECT,{fn:ia,info:{attrName:r}})}_createComputedProperty(s,r,n){let a=Yt(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=bo(this,a,I.COMPUTE,Ts,s,n);Ht(this,Ps)[s]=l}_marshalArgs(s,r,n){const a=this.__data,l=[];for(let d=0,u=s.length;d<u;d++){let{name:h,structured:p,wildcard:f,value:b,literal:P}=s[d];if(!P)if(f){const T=at(h,r),A=wo(a,n,T?r:h);b={path:T?r:h,value:A,base:T?ie(a,h):A}}else b=p?wo(a,n,h):a[h];if(si&&!this._overrideLegacyUndefined&&b===void 0&&s.length>1)return dt;l[d]=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,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.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),Ge.push(this);let n=super._stampTemplate(s,r);if(Ge.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,pa(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 d=r.childNodes;for(let u=0;u<d.length;u++){let h=d[u];Z(Z(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=xo(l)||" ",jt(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,r,n,a,l){let d=this._parseBindings(l,r);if(d){let u=a,h="property";Jn.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=xo(d);return p&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(p+=" "+s.getAttribute(a)),s.setAttribute(a,p)),h=="attribute"&&u=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&u==="value"&&s.setAttribute(u,""),s.removeAttribute(u),h==="property"&&(a=xs(a)),jt(this,r,n,h,a,d,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,d=n.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";no&&(u||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let p=d.hostProps;if(yn&&u)p&&(r.hostProps=Object.assign(r.hostProps||{},p),no||(n.parentInfo.noted=!0));else{let f="{";for(let b in p){let P=[{mode:f,source:b,dependencies:[b],hostProp:!0}];jt(this,r,n,"property","_host_"+b,P)}}return a}static _parseBindings(s,r){let n=[],a=0,l;for(;(l=yo.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],u=!!l[2],h=l[3].trim(),p=!1,f="",b=-1;d=="{"&&(b=h.indexOf("::"))>0&&(f=h.substring(b+2),h=h.substring(0,b),p=!0);let P=Yt(h),T=[];if(P){let{args:A,methodName:C}=P;for(let R=0;R<A.length;R++){let N=A[R];N.literal||T.push(N)}let Y=r.dynamicFns;(Y&&Y[C]||P.static)&&(T.push(C),P.dynamicFn=!0)}else T.push(h);n.push({source:h,mode:d,negate:u,customEvent:p,signature:P,dependencies:T,event:f}),a=yo.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(s,r,n,a,l,d){let u;return r.signature?u=ai(s,n,a,l,r.signature):n!=r.source?u=ie(s,r.source):d&&ri(n)?u=ie(s,n):u=s.__data[n],r.negate&&(u=!u),u}}return e}),Ge=[];/**
|
|
2034
|
+
*/let ct=0;const dt=[],I={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ps="__computeInfo",Jn=/[A-Z]/;function Bt(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 Qe(o,t,e,i,s,r){if(t){let n=!1;const a=ct++;for(let l in e){let d=s?Me(l):l,u=t[d];if(u)for(let h=0,p=u.length,f;h<p&&(f=u[h]);h++)(!f.info||f.info.lastRun!==a)&&(!s||Oi(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 Xn(o,t,e,i,s,r,n,a){let l=!1,d=n?Me(i):i,u=t[d];if(u)for(let h=0,p=u.length,f;h<p&&(f=u[h]);h++)(!f.info||f.info.lastRun!==e)&&(!n||Oi(i,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(o,i,s,r,f.info,n,a),l=!0);return l}function Oi(o,t){if(t){let e=t.name;return e==o||!!(t.structured&&vs(e,o))||!!(t.wildcard&&at(e,o))}else return!0}function _o(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 Zn(o,t,e,i,s){let r=o[I.NOTIFY],n,a=ct++;for(let d in t)t[d]&&(r&&Xn(o,r,a,d,e,i,s)||s&&Qn(o,d,e))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Qn(o,t,e){let i=Me(t);if(i!==t){let s=Tt(i)+"-changed";return Ds(o,s,e[t],t),!0}return!1}function Ds(o,t,e,i){let s={value:e,queueProperty:!0};i&&(s.path=i),Z(o).dispatchEvent(new CustomEvent(t,{detail:s}))}function ea(o,t,e,i,s,r){let a=(r?Me(t):t)!=t?t:null,l=a?ie(o,a):o.__data[t];a&&l===void 0&&(l=e[t]),Ds(o,s.eventName,l,a)}function ta(o,t,e,i,s){let r,n=o.detail,a=n&&n.path;a?(i=lt(e,i,a),r=n&&n.value):r=o.currentTarget[e],r=s?!r:r,(!t[I.READ_ONLY]||!t[I.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function ia(o,t,e,i,s){let r=o.__data[t];Et&&(r=Et(r,s.attrName,"attribute",o)),o._propertyToAttribute(t,s.attrName,r)}function oa(o,t,e,i){let s=o[I.COMPUTE];if(s)if(vn){ct++;const r=ra(o),n=[];for(let l in t)go(l,s,n,r,i);let a;for(;a=n.shift();)Ts(o,"",t,e,a)&&go(a.methodInfo,s,n,r,i);Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),o.__dataPending=null}else{let r=t;for(;Qe(o,s,r,e,i);)Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),r=o.__dataPending,o.__dataPending=null}}const sa=(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)},go=(o,t,e,i,s)=>{const r=s?Me(o):o,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==ct&&(!s||Oi(o,l.trigger))&&(l.info.lastRun=ct,sa(l.info,e,i))}};function ra(o){let t=o.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=o[I.COMPUTE];let{counts:i,ready:s,total:r}=na(o),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&s.push(d)})}r!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=t}return t}function na(o){const t=o[Ps],e={},i=o[I.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 Ts(o,t,e,i,s){let r=ai(o,t,e,i,s);if(r===dt)return!1;let n=s.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,r,!0):(o[n]=r,!1)}function aa(o,t,e){let i=o.__dataLinkedPaths;if(i){let s;for(let r in i){let n=i[r];at(r,t)?(s=lt(r,n,t),o._setPendingPropertyOrPath(s,e,!0,!0)):at(n,t)&&(s=lt(n,r,t),o._setPendingPropertyOrPath(s,e,!0,!0))}}}function jt(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),ha(a)){let{event:d,negate:u}=a.parts[0];a.listenerEvent=d||Tt(s)+"-changed",a.listenerNegate=u}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let u=a.parts[d];u.compoundIndex=d,la(o,t,a,u,l)}}function la(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=Os(l),l.wildcard=!0),o._addTemplatePropertyEffect(t,l.rootProperty,{fn:ca,info:n,trigger:l})}}}function ca(o,t,e,i,s,r,n){let a=n[s.index],l=s.binding,d=s.part;if(r&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let u=e[t];t=lt(d.source,l.target,t),a._setPendingPropertyOrPath(t,u,!1,!0)&&o._enqueueClient(a)}else{let u=s.evaluator._evaluateBinding(o,d,t,e,i,r);u!==dt&&da(o,a,l,d,u)}}function da(o,t,e,i,s){if(s=ua(t,s,e,i),Et&&(s=Et(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[I.READ_ONLY]||!t[I.READ_ONLY][r])&&t._setPendingProperty(r,s)&&o._enqueueClient(t):o._setUnmanagedPropertyToNode(t,r,s)}}function ua(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 ha(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function pa(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 d=a[l];fa(n,d),ma(n,o,d)}n.__dataHost=o}}function fa(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=Z(o)),o[r]=t.literal)}}function ma(o,t,e){if(e.listenerEvent){let i=e.parts[0];o.addEventListener(e.listenerEvent,function(s){ta(s,t,e.target,i.source,i.negate)})}}function bo(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 ai(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===dt?dt:n.apply(r,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const _a=[],Ms="(?:[a-zA-Z_$][\\w.:$\\-*]*)",ga="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",ba="(?:'(?:[^'\\\\]|\\\\.)*')",va='(?:"(?:[^"\\\\]|\\\\.)*")',ya="(?:"+ba+"|"+va+")",vo="(?:("+Ms+"|"+ga+"|"+ya+")\\s*)",xa="(?:"+vo+"(?:,\\s*"+vo+")*)",wa="(?:\\(\\s*(?:"+xa+"?)\\)\\s*)",Ea="("+Ms+"\\s*"+wa+"?)",Sa="(\\[\\[|{{)\\s*",Ca="(?:]]|}})",Aa="(?:(!)\\s*)?",ka=Sa+Aa+Ea+Ca,yo=new RegExp(ka,"g");function xo(o){let t="";for(let e=0;e<o.length;e++){let i=o[e].literal;t+=i||""}return t}function Yt(o){let t=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:_a};if(t[2].trim()){let s=t[2].replace(/\\,/g,",").split(",");return Pa(s,i)}else return i}return null}function Pa(o,t){return t.args=o.map(function(e){let i=Os(e);return i.literal||(t.static=!1),i},this),t}function Os(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=Me(t),e.structured=ri(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function wo(o,t,e){let i=ie(o,e);return i===void 0&&(i=t[e]),i}function Is(o,t,e,i){const s={indexSplices:i};si&&!o._overrideLegacyUndefined&&(t.splices=s),o.notifyPath(e+".splices",s),o.notifyPath(e+".length",t.length),si&&!o._overrideLegacyUndefined&&(s.indexSplices=[])}function Ke(o,t,e,i,s,r){Is(o,t,e,[{index:i,addedCount:s,removed:r,object:t,type:"splice"}])}function Da(o){return o[0].toUpperCase()+o.substring(1)}const Ii=K(o=>{const t=Gn(Rn(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 I}_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(Ge.length){let s=Ge[Ge.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[I.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==I.READ_ONLY);let a=Bt(this,r,!0)[s];a||(a=this[r][s]=[]),a.push(n)}_removePropertyEffect(s,r,n){let a=Bt(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,I.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,I.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,I.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,I.COMPUTE)}_setPendingPropertyOrPath(s,r,n,a){if(a||Me(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=ie(this,s);if(s=po(this,s,r),!s||!super._shouldPropertyChange(s,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,r,n))return aa(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=Z(s)),s[r]=n)}_setPendingProperty(s,r,n){let a=this.__dataHasPaths&&ri(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[I.NOTIFY]&&this[I.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[I.READ_ONLY]||!this[I.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;oa(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),Qe(this,this[I.REFLECT],r,n,a),Qe(this,this[I.OBSERVE],r,n,a),l&&Zn(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,r,n){this[I.PROPAGATE]&&Qe(this,this[I.PROPAGATE],s,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,r,n)}_runEffectsForTemplate(s,r,n,a){const l=(d,u)=>{Qe(this,s.propertyEffects,d,n,u,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,u)};s.runEffects?s.runEffects(l,r,a):l(r,a)}linkPaths(s,r){s=Ze(s),r=Ze(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=r}unlinkPaths(s){s=Ze(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,r){let n={path:""},a=ie(this,s,n);Is(this,a,n.path,r)}get(s,r){return ie(r||this,s)}set(s,r,n){n?po(n,s,r):(!this[I.READ_ONLY]||!this[I.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,r,!0)&&this._invalidateProperties()}push(s,...r){let n={path:""},a=ie(this,s,n),l=a.length,d=a.push(...r);return r.length&&Ke(this,a,n.path,l,r.length,[]),d}pop(s){let r={path:""},n=ie(this,s,r),a=!!n.length,l=n.pop();return a&&Ke(this,n,r.path,n.length,0,[l]),l}splice(s,r,n,...a){let l={path:""},d=ie(this,s,l);r<0?r=d.length-Math.floor(-r):r&&(r=Math.floor(r));let u;return arguments.length===2?u=d.splice(r):u=d.splice(r,n,...a),(a.length||u.length)&&Ke(this,d,l.path,r,a.length,u),u}shift(s){let r={path:""},n=ie(this,s,r),a=!!n.length,l=n.shift();return a&&Ke(this,n,r.path,0,0,[l]),l}unshift(s,...r){let n={path:""},a=ie(this,s,n),l=a.unshift(...r);return r.length&&Ke(this,a,n.path,0,r.length,[]),l}notifyPath(s,r){let n;if(arguments.length==1){let a={path:""};r=ie(this,s,a),n=a.path}else Array.isArray(s)?n=Ze(s):n=s;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,r){this._addPropertyEffect(s,I.READ_ONLY),r&&(this["_set"+Da(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,r,n){let a={property:s,method:r,dynamicFn:!!n};this._addPropertyEffect(s,I.OBSERVE,{fn:_o,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(r,I.OBSERVE,{fn:_o,info:a,trigger:{name:r}})}_createMethodObserver(s,r){let n=Yt(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");bo(this,n,I.OBSERVE,ai,null,r)}_createNotifyingProperty(s){this._addPropertyEffect(s,I.NOTIFY,{fn:ea,info:{eventName:Tt(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,I.REFLECT,{fn:ia,info:{attrName:r}})}_createComputedProperty(s,r,n){let a=Yt(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=bo(this,a,I.COMPUTE,Ts,s,n);Bt(this,Ps)[s]=l}_marshalArgs(s,r,n){const a=this.__data,l=[];for(let d=0,u=s.length;d<u;d++){let{name:h,structured:p,wildcard:f,value:b,literal:P}=s[d];if(!P)if(f){const T=at(h,r),A=wo(a,n,T?r:h);b={path:T?r:h,value:A,base:T?ie(a,h):A}}else b=p?wo(a,n,h):a[h];if(si&&!this._overrideLegacyUndefined&&b===void 0&&s.length>1)return dt;l[d]=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,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.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),Ge.push(this);let n=super._stampTemplate(s,r);if(Ge.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,pa(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 d=r.childNodes;for(let u=0;u<d.length;u++){let h=d[u];Z(Z(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=xo(l)||" ",jt(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,r,n,a,l){let d=this._parseBindings(l,r);if(d){let u=a,h="property";Jn.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=xo(d);return p&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(p+=" "+s.getAttribute(a)),s.setAttribute(a,p)),h=="attribute"&&u=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&u==="value"&&s.setAttribute(u,""),s.removeAttribute(u),h==="property"&&(a=xs(a)),jt(this,r,n,h,a,d,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,d=n.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";no&&(u||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let p=d.hostProps;if(yn&&u)p&&(r.hostProps=Object.assign(r.hostProps||{},p),no||(n.parentInfo.noted=!0));else{let f="{";for(let b in p){let P=[{mode:f,source:b,dependencies:[b],hostProp:!0}];jt(this,r,n,"property","_host_"+b,P)}}return a}static _parseBindings(s,r){let n=[],a=0,l;for(;(l=yo.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],u=!!l[2],h=l[3].trim(),p=!1,f="",b=-1;d=="{"&&(b=h.indexOf("::"))>0&&(f=h.substring(b+2),h=h.substring(0,b),p=!0);let P=Yt(h),T=[];if(P){let{args:A,methodName:C}=P;for(let R=0;R<A.length;R++){let N=A[R];N.literal||T.push(N)}let Y=r.dynamicFns;(Y&&Y[C]||P.static)&&(T.push(C),P.dynamicFn=!0)}else T.push(h);n.push({source:h,mode:d,negate:u,customEvent:p,signature:P,dependencies:T,event:f}),a=yo.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(s,r,n,a,l,d){let u;return r.signature?u=ai(s,n,a,l,r.signature):n!=r.source?u=ie(s,r.source):d&&ri(n)?u=ie(s,n):u=s.__data[n],r.negate&&(u=!u),u}}return e}),Ge=[];/**
|
|
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
|
|
@@ -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
|
|
2165
|
+
*/const Ha=O`
|
|
2166
2166
|
:host {
|
|
2167
2167
|
z-index: 200;
|
|
2168
2168
|
position: fixed;
|
|
@@ -2225,7 +2225,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2225
2225
|
* @license
|
|
2226
2226
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2227
2227
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2228
|
-
*/let Ni=!1;window.addEventListener("keydown",()=>{Ni=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ni=!1},{capture:!0});function di(){let o=document.activeElement||document.body;for(;o.shadowRoot&&o.shadowRoot.activeElement;)o=o.shadowRoot.activeElement;return o}function zi(){return Ni}function
|
|
2228
|
+
*/let Ni=!1;window.addEventListener("keydown",()=>{Ni=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ni=!1},{capture:!0});function di(){let o=document.activeElement||document.body;for(;o.shadowRoot&&o.shadowRoot.activeElement;)o=o.shadowRoot.activeElement;return o}function zi(){return Ni}function Ba(o){const t=o.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(o);return e.visibility==="hidden"||e.display==="none"}function ja(o,t){const e=Math.max(o.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function Ya(o,t){const e=[];for(;o.length>0&&t.length>0;)ja(o[0],t[0])?e.push(t.shift()):e.push(o.shift());return e.concat(o,t)}function ui(o){const t=o.length;if(t<2)return o;const e=Math.ceil(t/2),i=ui(o.slice(0,e)),s=ui(o.slice(e));return Ya(i,s)}function Ls(o){return o.matches('[tabindex="-1"]')?!1:o.matches("input, select, textarea, button, object")?o.matches(":not([disabled])"):o.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Va(o){return o.getRootNode().activeElement===o}function Ua(o){if(!Ls(o))return-1;const t=o.getAttribute("tabindex")||0;return Number(t)}function $s(o,t){if(o.nodeType!==Node.ELEMENT_NODE||Ba(o))return!1;const e=o,i=Ua(e);let s=i>0;i>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{s=$s(n,t)||s}),s}function Wa(o){const t=[];return $s(o,t)?ui(t):t}/**
|
|
2229
2229
|
@license
|
|
2230
2230
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2231
2231
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -2233,7 +2233,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
2233
2233
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2234
2234
|
Code distributed by Google as part of the polymer project is also
|
|
2235
2235
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2236
|
-
*/let hi=!1,qa=[],Rs=[];function Ka(){hi=!0,requestAnimationFrame(function(){hi=!1,Ga(qa),setTimeout(function(){Ja(Rs)})})}function Ga(o){for(;o.length;)
|
|
2236
|
+
*/let hi=!1,qa=[],Rs=[];function Ka(){hi=!0,requestAnimationFrame(function(){hi=!1,Ga(qa),setTimeout(function(){Ja(Rs)})})}function Ga(o){for(;o.length;)Hs(o.shift())}function Ja(o){for(let t=0,e=o.length;t<e;t++)Hs(o.shift())}function Hs(o){const t=o[0],e=o[1],i=o[2];try{e.apply(t,i)}catch(s){setTimeout(()=>{throw s})}}function Bs(o,t,e){hi||Ka(),Rs.push([o,t,e])}/**
|
|
2237
2237
|
* @license
|
|
2238
2238
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2239
2239
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2269,7 +2269,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2269
2269
|
* @license
|
|
2270
2270
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2271
2271
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2272
|
-
*/const cl=o=>class extends nl(ll(o)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),js&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,s=window.innerWidth>e,r=document.documentElement.clientHeight;s&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,i,s,r){const n=this._oldOwner!==i||this._oldModel!==s;this._oldModel=s,this._oldOwner=i;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const d=this._oldOpened!==r;this._oldOpened=r,a&&l&&(this.innerHTML="",delete this._$litPart$),r&&e&&(a||d||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,i){e?(this._saveFocus(),this._animatedOpening(),
|
|
2272
|
+
*/const cl=o=>class extends nl(ll(o)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),js&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,s=window.innerWidth>e,r=document.documentElement.clientHeight;s&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,i,s,r){const n=this._oldOwner!==i||this._oldModel!==s;this._oldModel=s,this._oldOwner=i;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const d=this._oldOpened!==r;this._oldOpened=r,a&&l&&(this.innerHTML="",delete this._$litPart$),r&&e&&(a||d||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,i){e?(this._saveFocus(),this._animatedOpening(),Bs(this,()=>{this._trapFocus();const s=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(s)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),i=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(e,i){const s=`__${e}Handler`,r=n=>{n&&n.target!==this||(i(),this.removeEventListener("animationend",r),delete this[s])};this[s]=r,this.addEventListener("animationend",r)}_flushAnimation(e){const i=`__${e}Handler`;typeof this[i]=="function"&&this[i]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e)}}};/**
|
|
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/
|
|
@@ -2308,7 +2308,7 @@ 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
|
-
*/V("vaadin-date-picker-overlay",[
|
|
2311
|
+
*/V("vaadin-date-picker-overlay",[Ha,_l],{moduleId:"vaadin-date-picker-overlay-styles"});class gl extends ml(Mt(Te(xe))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Oe`
|
|
2312
2312
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
2313
2313
|
<div part="overlay" id="overlay">
|
|
2314
2314
|
<div part="content" id="content">
|
|
@@ -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 zl=o=>o,Xs=typeof document.head.style.touchAction=="string",bi="__polymerGestures",Jt="__polymerGesturesHandled",vi="__polymerGesturesTouchAction",To=25,Mo=5,Fl=2,Ll=["mousedown","mousemove","mouseup","click"],$l=[0,1,4,2],Rl=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function Li(o){return Ll.indexOf(o)>-1}let
|
|
2917
|
+
*/const zl=o=>o,Xs=typeof document.head.style.touchAction=="string",bi="__polymerGestures",Jt="__polymerGesturesHandled",vi="__polymerGesturesTouchAction",To=25,Mo=5,Fl=2,Ll=["mousedown","mousemove","mouseup","click"],$l=[0,1,4,2],Rl=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function Li(o){return Ll.indexOf(o)>-1}let Hl=!1;(function(){try{const o=Object.defineProperty({},"passive",{get(){Hl=!0}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();function Bl(o){Li(o)}const jl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Yl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Pe(o){const t=o.type;if(!Li(t))return!1;if(t==="mousemove"){let i=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!Rl&&(i=$l[o.which]||0),!!(i&1)}return(o.button===void 0?0:o.button)===0}function Vl(o){if(o.type==="click"){if(o.detail===0)return!0;const t=ye(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 me={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Ul(o){let t="auto";const e=Qs(o);for(let i=0,s;i<e.length;i++)if(s=e[i],s[vi]){t=s[vi];break}return t}function Zs(o,t,e){o.movefn=t,o.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function Re(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const Qs=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],$i={},ke=[];function Wl(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 ye(o){const t=Qs(o);return t.length>0?t[0]:o.target}function ql(o){const t=o.type,i=o.currentTarget[bi];if(!i)return;const s=i[t];if(!s)return;if(!o[Jt]&&(o[Jt]={},t.startsWith("touch"))){const n=o.changedTouches[0];if(t==="touchstart"&&o.touches.length===1&&(me.touch.id=n.identifier),me.touch.id!==n.identifier)return;Xs||(t==="touchstart"||t==="touchmove")&&Kl(o)}const r=o[Jt];if(!r.skip){for(let n=0,a;n<ke.length;n++)a=ke[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<ke.length;n++)a=ke[n],s[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](o))}}function Kl(o){const t=o.changedTouches[0],e=o.type;if(e==="touchstart")me.touch.x=t.clientX,me.touch.y=t.clientY,me.touch.scrollDecided=!1;else if(e==="touchmove"){if(me.touch.scrollDecided)return;me.touch.scrollDecided=!0;const i=Ul(o);let s=!1;const r=Math.abs(me.touch.x-t.clientX),n=Math.abs(me.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():kt("track")}}function de(o,t,e){return $i[t]?(Gl(o,t,e),!0):!1}function Gl(o,t,e){const i=$i[t],s=i.deps,r=i.name;let n=o[bi];n||(o[bi]=n={});for(let a=0,l,d;a<s.length;a++)l=s[a],!(jl&&Li(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&o.addEventListener(l,ql,Bl(l)),d[r]=(d[r]||0)+1,d._count=(d._count||0)+1);o.addEventListener(t,e),i.touchAction&&er(o,i.touchAction)}function Ri(o){ke.push(o),o.emits.forEach(t=>{$i[t]=o})}function Jl(o){for(let t=0,e;t<ke.length;t++){e=ke[t];for(let i=0,s;i<e.emits.length;i++)if(s=e.emits[i],s===o)return e}return null}function er(o,t){Xs&&o instanceof HTMLElement&&Dl.run(()=>{o.style.touchAction=t}),o[vi]=t}function Hi(o,t,e){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,zl(o).dispatchEvent(i),i.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault()}}function kt(o){const t=Jl(o);t.info&&(t.info.prevent=!0)}Ri({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Re(this.info)},mousedown(o){if(!Pe(o))return;const t=ye(o),e=this,i=r=>{Pe(r)||(Je("up",t,r),Re(e.info))},s=r=>{Pe(r)&&Je("up",t,r),Re(e.info)};Zs(this.info,i,s),Je("down",t,o)},touchstart(o){Je("down",ye(o),o.changedTouches[0],o)},touchend(o){Je("up",ye(o),o.changedTouches[0],o)}});function Je(o,t,e,i){t&&Hi(t,o,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(s){return kt(s)}})}Ri({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>Fl&&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,Re(this.info)},mousedown(o){if(!Pe(o))return;const t=ye(o),e=this,i=r=>{const n=r.clientX,a=r.clientY;Oo(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&kt("tap"),e.info.addMove({x:n,y:a}),Pe(r)||(e.info.state="end",Re(e.info)),t&&Xt(e.info,t,r),e.info.started=!0)},s=r=>{e.info.started&&i(r),Re(e.info)};Zs(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=ye(o),e=o.changedTouches[0],i=e.clientX,s=e.clientY;Oo(this.info,i,s)&&(this.info.state==="start"&&kt("tap"),this.info.addMove({x:i,y:s}),Xt(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(o){const t=ye(o),e=o.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Xt(this.info,t,e))}});function Oo(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>=Mo||s>=Mo}function Xt(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),Hi(t,"track",{state:o.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return Wl(e.clientX,e.clientY)}})}Ri({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){Pe(o)&&(this.info.x=o.clientX,this.info.y=o.clientY)},click(o){Pe(o)&&Io(this.info,o)},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(o){Io(this.info,o.changedTouches[0],o)}});function Io(o,t,e){const i=Math.abs(t.clientX-o.x),s=Math.abs(t.clientY-o.y),r=ye(e||t);!r||Yl[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(s)||i<=To&&s<=To||Vl(t))&&(o.prevent||Hi(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/
|
|
@@ -2930,7 +2930,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2930
2930
|
* @license
|
|
2931
2931
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2932
2932
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2933
|
-
*/const
|
|
2933
|
+
*/const Bi=K(o=>class extends o{get _keyboardActive(){return zi()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
|
|
2934
2934
|
* @license
|
|
2935
2935
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2936
2936
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -2938,7 +2938,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2938
2938
|
* @license
|
|
2939
2939
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2940
2940
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2941
|
-
*/const Zl=o=>class extends Xl(ir(
|
|
2941
|
+
*/const Zl=o=>class extends Xl(ir(Bi(o))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
|
|
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/
|
|
@@ -3123,7 +3123,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 Ac=o=>class extends
|
|
3126
|
+
*/const Ac=o=>class extends Bi(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=>_e(e.date,this.focusedDate))}ready(){super.ready(),de(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:!Ye(r,i,s)&&!Ye(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((d,u)=>({weekDay:d,weekDayShort:a[u]})).slice(0,7)}__focusedDateChanged(e,i){Array.isArray(i)&&i.some(s=>_e(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 _e(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 ec(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/
|
|
@@ -3237,7 +3237,7 @@ 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 Dc=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(){er(this.$.scrollers,"pan-y"),de(this.$.scrollers,"track",this._track.bind(this)),de(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),de(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),de(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new dr(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ae(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),de(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ae(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),de(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 Ae(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 Ae(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),de(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,d,u,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=d,u?p.setAttribute("theme",u):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 d=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+d,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=je.debounce(this._debouncer,At.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,i,s){return e&&i&&typeof i.formatDate=="function"?i.formatDate(ji(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(d=>{s=d});const r=(d,u,h,p)=>(d/=p/2,d<1?h/2*d*d+u:(d-=1,-h/2*(d*(d-2)-1)+u));let n=0;const a=this._monthScroller.position,l=d=>{n||(n=d);const u=d-n;if(u<this.scrollDuration){const h=r(u,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._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 sr(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){_e(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&&_e(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(e,i){return We(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 We(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{Hs(this,()=>{Yi(),i()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(or(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 Ye(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 Dc=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(){er(this.$.scrollers,"pan-y"),de(this.$.scrollers,"track",this._track.bind(this)),de(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),de(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),de(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new dr(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ae(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),de(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ae(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),de(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 Ae(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 Ae(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),de(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,d,u,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=d,u?p.setAttribute("theme",u):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 d=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+d,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=je.debounce(this._debouncer,At.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,i,s){return e&&i&&typeof i.formatDate=="function"?i.formatDate(ji(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(d=>{s=d});const r=(d,u,h,p)=>(d/=p/2,d<1?h/2*d*d+u:(d-=1,-h/2*(d*(d-2)-1)+u));let n=0;const a=this._monthScroller.position,l=d=>{n||(n=d);const u=d-n;if(u<this.scrollDuration){const h=r(u,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._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 sr(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){_e(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&&_e(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(e,i){return We(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 We(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{Bs(this,()=>{Yi(),i()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(or(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 Ye(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/
|
|
@@ -3329,7 +3329,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3329
3329
|
* @license
|
|
3330
3330
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3331
3331
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3332
|
-
*/const ur=K(o=>class extends
|
|
3332
|
+
*/const ur=K(o=>class extends Bi(ir(o)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,i){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,i){super._disabledChanged(e,i),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
|
|
3333
3333
|
* @license
|
|
3334
3334
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3335
3335
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3361,11 +3361,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3361
3361
|
* @license
|
|
3362
3362
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3363
3363
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3364
|
-
*/class
|
|
3364
|
+
*/class Hc extends qi{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,s=!!(i&&e&&e.trim()!=="");t&&(t.textContent=s?e:"",t.hidden=!s,s&&Rc(e,{mode:"assertive"})),super.updateDefaultNode(t)}}/**
|
|
3365
3365
|
* @license
|
|
3366
3366
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3367
3367
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3368
|
-
*/class
|
|
3368
|
+
*/class Bc extends qi{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
|
|
3369
3369
|
* @license
|
|
3370
3370
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3371
3371
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3381,7 +3381,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 Vc=o=>class extends mr(Yc(Ue(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 $c(this),this._helperController=new
|
|
3384
|
+
*/const Vc=o=>class extends mr(Yc(Ue(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 $c(this),this._helperController=new Bc(this),this._errorController=new Hc(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/
|
|
@@ -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 qc(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Kc(this.inputElement,this._labelController)),this._tooltipController=new Js(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}}ue(od);var gr={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",d="day",u="week",h="month",p="quarter",f="year",b="date",P="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|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(x){var v=["th","st","nd","rd"],m=x%100;return"["+x+(v[(m-20)%10]||v[m]||v[0])+"]"}},Y=function(x,v,m){var y=String(x);return!y||y.length>=v?x:""+Array(v+1-y.length).join(m)+x},R={s:Y,z:function(x){var v=-x.utcOffset(),m=Math.abs(v),y=Math.floor(m/60),g=m%60;return(v<=0?"+":"-")+Y(y,2,"0")+":"+Y(g,2,"0")},m:function x(v,m){if(v.date()<m.date())return-x(m,v);var y=12*(m.year()-v.year())+(m.month()-v.month()),g=v.clone().add(y,h),E=m-g<0,w=v.clone().add(y+(E?-1:1),h);return+(-(y+(m-g)/(E?g-w:w-g))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:h,y:f,w:u,d,D:b,h:l,m:a,s:n,ms:r,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},N="en",X={};X[N]=C;var ae="$isDayjsObject",U=function(x){return x instanceof oe||!(!x||!x[ae])},W=function x(v,m,y){var g;if(!v)return N;if(typeof v=="string"){var E=v.toLowerCase();X[E]&&(g=E),m&&(X[E]=m,g=E);var w=v.split("-");if(!g&&w.length>1)return x(w[0])}else{var M=v.name;X[M]=v,g=M}return!y&&g&&(N=g),g||!y&&N},k=function(x,v){if(U(x))return x.clone();var m=typeof v=="object"?v:{};return m.date=x,m.args=arguments,new oe(m)},D=R;D.l=W,D.i=U,D.w=function(x,v){return k(x,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var oe=function(){function x(m){this.$L=W(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[ae]=!0}var v=x.prototype;return v.parse=function(m){this.$d=function(y){var g=y.date,E=y.utc;if(g===null)return new Date(NaN);if(D.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var w=g.match(T);if(w){var M=w[2]-1||0,z=(w[7]||"0").substring(0,3);return E?new Date(Date.UTC(w[1],M,w[3]||1,w[4]||0,w[5]||0,w[6]||0,z)):new Date(w[1],M,w[3]||1,w[4]||0,w[5]||0,w[6]||0,z)}}return new Date(g)}(m),this.init()},v.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},v.$utils=function(){return D},v.isValid=function(){return this.$d.toString()!==P},v.isSame=function(m,y){var g=k(m);return this.startOf(y)<=g&&g<=this.endOf(y)},v.isAfter=function(m,y){return k(m)<this.startOf(y)},v.isBefore=function(m,y){return this.endOf(y)<k(m)},v.$g=function(m,y,g){return D.u(m)?this[y]:this.set(g,m)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(m,y){var g=this,E=!!D.u(y)||y,w=D.p(m),M=function(G,H){var L=D.w(g.$u?Date.UTC(g.$y,H,G):new Date(g.$y,H,G),g);return E?L:L.endOf(d)},z=function(G,H){return D.w(g.toDate()[G].apply(g.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(H)),g)},F=this.$W,B=this.$M,q=this.$D,se="set"+(this.$u?"UTC":"");switch(w){case f:return E?M(1,0):M(31,11);case h:return E?M(1,B):M(0,B+1);case u:var Q=this.$locale().weekStart||0,le=(F<Q?F+7:F)-Q;return M(E?q-le:q+(6-le),B);case d:case b:return z(se+"Hours",0);case l:return z(se+"Minutes",1);case a:return z(se+"Seconds",2);case n:return z(se+"Milliseconds",3);default:return this.clone()}},v.endOf=function(m){return this.startOf(m,!1)},v.$set=function(m,y){var g,E=D.p(m),w="set"+(this.$u?"UTC":""),M=(g={},g[d]=w+"Date",g[b]=w+"Date",g[h]=w+"Month",g[f]=w+"FullYear",g[l]=w+"Hours",g[a]=w+"Minutes",g[n]=w+"Seconds",g[r]=w+"Milliseconds",g)[E],z=E===d?this.$D+(y-this.$W):y;if(E===h||E===f){var F=this.clone().set(b,1);F.$d[M](z),F.init(),this.$d=F.set(b,Math.min(this.$D,F.daysInMonth())).$d}else M&&this.$d[M](z);return this.init(),this},v.set=function(m,y){return this.clone().$set(m,y)},v.get=function(m){return this[D.p(m)]()},v.add=function(m,y){var g,E=this;m=Number(m);var w=D.p(y),M=function(B){var q=k(E);return D.w(q.date(q.date()+Math.round(B*m)),E)};if(w===h)return this.set(h,this.$M+m);if(w===f)return this.set(f,this.$y+m);if(w===d)return M(1);if(w===u)return M(7);var z=(g={},g[a]=i,g[l]=s,g[n]=e,g)[w]||1,F=this.$d.getTime()+m*z;return D.w(F,this)},v.subtract=function(m,y){return this.add(-1*m,y)},v.format=function(m){var y=this,g=this.$locale();if(!this.isValid())return g.invalidDate||P;var E=m||"YYYY-MM-DDTHH:mm:ssZ",w=D.z(this),M=this.$H,z=this.$m,F=this.$M,B=g.weekdays,q=g.months,se=g.meridiem,Q=function(H,L,j,he){return H&&(H[L]||H(y,E))||j[L].slice(0,he)},le=function(H){return D.s(M%12||12,H,"0")},G=se||function(H,L,j){var he=H<12?"AM":"PM";return j?he.toLowerCase():he};return E.replace(A,function(H,L){return L||function(j){switch(j){case"YY":return String(y.$y).slice(-2);case"YYYY":return D.s(y.$y,4,"0");case"M":return F+1;case"MM":return D.s(F+1,2,"0");case"MMM":return Q(g.monthsShort,F,q,3);case"MMMM":return Q(q,F);case"D":return y.$D;case"DD":return D.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return Q(g.weekdaysMin,y.$W,B,2);case"ddd":return Q(g.weekdaysShort,y.$W,B,3);case"dddd":return B[y.$W];case"H":return String(M);case"HH":return D.s(M,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return G(M,z,!0);case"A":return G(M,z,!1);case"m":return String(z);case"mm":return D.s(z,2,"0");case"s":return String(y.$s);case"ss":return D.s(y.$s,2,"0");case"SSS":return D.s(y.$ms,3,"0");case"Z":return w}return null}(H)||w.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(m,y,g){var E,w=this,M=D.p(y),z=k(m),F=(z.utcOffset()-this.utcOffset())*i,B=this-z,q=function(){return D.m(w,z)};switch(M){case f:E=q()/12;break;case h:E=q();break;case p:E=q()/3;break;case u:E=(B-F)/6048e5;break;case d:E=(B-F)/864e5;break;case l:E=B/s;break;case a:E=B/i;break;case n:E=B/e;break;default:E=B}return g?E:D.a(E)},v.daysInMonth=function(){return this.endOf(h).$D},v.$locale=function(){return X[this.$L]},v.locale=function(m,y){if(!m)return this.$L;var g=this.clone(),E=W(m,y,!0);return E&&(g.$L=E),g},v.clone=function(){return D.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()},x}(),ge=oe.prototype;return k.prototype=ge,[["$ms",r],["$s",n],["$m",a],["$H",l],["$W",d],["$M",h],["$y",f],["$D",b]].forEach(function(x){ge[x[1]]=function(v){return this.$g(v,x[0],x[1])}}),k.extend=function(x,v){return x.$i||(x(v,oe,k),x.$i=!0),k},k.locale=W,k.isDayjs=U,k.unix=function(x){return k(1e3*x)},k.en=X[N],k.Ls=X,k.p={},k})})(gr);var sd=gr.exports;const yt=c.getDefaultExportFromCjs(sd);function Lo(o,t){c.addMessages(o,t)}function rd(o){c.$locale.set(o)}const $o={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",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",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年",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",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",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",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",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",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",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",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",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."}};function nd(o){c.append_styles(o,"svelte-m7h861",'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{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:20px;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 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}@container (max-width: 768px){.SelfExclusionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}}.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, 20px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:15px;height:15px;fill:var(--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, 20px) var(--emw--border-radius-medium, 20px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--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-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, black 20%), var(--emw--color-gray-150, #828282), color-mix(in srgb, var(--emw--color-gray-150, #828282) 80%, white 30%));border:2px solid var(--emw--color-black, #000000);border-radius:50px;padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave.active{cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function Ro(o,t,e){const i=o.slice();return i[53]=t[e],i}function ad(o){let t,e,i,s,r=o[20]("titleSelfExclusion")+"",n,a,l,d,u=o[20]("selfExclusionText",{values:{operatorname:o[1],baseurl:o[3],lang:o[0]}})+"",h,p,f=o[20]("selfExclusionEmailText")+"",b,P,T,A,C,Y,R,N,X,ae=o[20](`${o[13]}`)+"",U,W,k,D,oe,ge,x,v,m,y,g,E,w,M=o[20]("save")+"",z,F,B,q,se,Q,le,G=o[21]&&cd(o),H=c.ensure_array_like(o[9]),L=[];for(let S=0;S<H.length;S+=1)L[S]=Bo(Ro(o,H,S));let j=o[16]&&Ho(o);function he(S,$){return S[15]?hd:S[17]?dd:ud}let Ie=he(o),ne=Ie(o),pe=o[22]&&pd(o);return{c(){t=c.element("div"),e=c.element("form"),G&&G.c(),i=c.space(),s=c.element("h2"),n=c.text(r),a=c.space(),l=c.element("div"),d=c.element("p"),h=c.space(),p=c.element("p"),b=c.text(f),P=c.space(),T=c.element("a"),A=c.text(o[2]),Y=c.space(),R=c.element("div"),N=c.element("div"),X=c.element("p"),U=c.text(ae),W=c.space(),k=c.svg_element("svg"),D=c.svg_element("g"),oe=c.svg_element("path"),ge=c.space(),x=c.element("div");for(let S=0;S<L.length;S+=1)L[S].c();v=c.space(),j&&j.c(),m=c.space(),y=c.element("div"),ne.c(),g=c.space(),E=c.element("div"),w=c.element("button"),z=c.text(M),q=c.space(),pe&&pe.c(),se=c.empty(),c.attr(s,"class","PlayerSelfExclusionTitle "+(o[21]?"PlayerSelfExclusionTitleNone":"")),c.attr(d,"class","SelfExclusionDescriptionText"),c.attr(T,"href",C="mailto:"+o[2]),c.attr(p,"class","SelfExclusionDescriptionText"),c.attr(l,"class","SelfExclusionDescription "+(o[21]?"SelfExclusionDescriptionMobile":"")),c.attr(oe,"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(oe,"stroke-linecap","round"),c.attr(k,"xmlns","http://www.w3.org/2000/svg"),c.attr(k,"xmlns:xlink","http://www.w3.org/1999/xlink"),c.attr(k,"version","1.1"),c.attr(k,"viewBox","0 0 100 100"),c.attr(k,"xml:space","preserve"),c.attr(k,"class","SelfExclusionConfigIcon"),c.toggle_class(k,"active",o[18]),c.attr(N,"class","SelfExclusionConfigLabel"),c.attr(x,"class","SelfExclusionDropDown"),c.toggle_class(x,"active",o[18]),c.attr(R,"class","SelfExclusionConfigWrapper "+(o[21]?"SelfExclusionConfigWrapperMobile":"")),c.toggle_class(R,"active",o[18]),c.attr(y,"class","SelfExclusionNotification "+(o[21]?"SelfExclusionDescriptionMobile":"")),c.attr(w,"class",F="SelfExclusionSave "+(o[17]?"active":"")),w.disabled=B=!o[17],c.attr(E,"class","SelfExclusionActionButtons "+(o[21]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(o[21]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(S,$){c.insert(S,t,$),c.append(t,e),G&&G.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,d),d.innerHTML=u,c.append(l,h),c.append(l,p),c.append(p,b),c.append(p,P),c.append(p,T),c.append(T,A),c.append(e,Y),c.append(e,R),c.append(R,N),c.append(N,X),c.append(X,U),c.append(N,W),c.append(N,k),c.append(k,D),c.append(D,oe),c.append(R,ge),c.append(R,x);for(let _=0;_<L.length;_+=1)L[_]&&L[_].m(x,null);c.append(e,v),j&&j.m(e,null),c.append(e,m),c.append(e,y),ne.m(y,null),c.append(e,g),c.append(e,E),c.append(E,w),c.append(w,z),c.insert(S,q,$),pe&&pe.m(S,$),c.insert(S,se,$),Q||(le=[c.listen(N,"click",o[34]),c.listen(w,"click",o[37])],Q=!0)},p(S,$){if(S[21]&&G.p(S,$),$[0]&1048576&&r!==(r=S[20]("titleSelfExclusion")+"")&&c.set_data(n,r),$[0]&1048587&&u!==(u=S[20]("selfExclusionText",{values:{operatorname:S[1],baseurl:S[3],lang:S[0]}})+"")&&(d.innerHTML=u),$[0]&1048576&&f!==(f=S[20]("selfExclusionEmailText")+"")&&c.set_data(b,f),$[0]&4&&c.set_data(A,S[2]),$[0]&4&&C!==(C="mailto:"+S[2])&&c.attr(T,"href",C),$[0]&1056768&&ae!==(ae=S[20](`${S[13]}`)+"")&&c.set_data(U,ae),$[0]&262144&&c.toggle_class(k,"active",S[18]),$[0]&17826304){H=c.ensure_array_like(S[9]);let _;for(_=0;_<H.length;_+=1){const ee=Ro(S,H,_);L[_]?L[_].p(ee,$):(L[_]=Bo(ee),L[_].c(),L[_].m(x,null))}for(;_<L.length;_+=1)L[_].d(1);L.length=H.length}$[0]&262144&&c.toggle_class(x,"active",S[18]),$[0]&262144&&c.toggle_class(R,"active",S[18]),S[16]?j?j.p(S,$):(j=Ho(S),j.c(),j.m(e,m)):j&&(j.d(1),j=null),Ie===(Ie=he(S))&&ne?ne.p(S,$):(ne.d(1),ne=Ie(S),ne&&(ne.c(),ne.m(y,null))),$[0]&1048576&&M!==(M=S[20]("save")+"")&&c.set_data(z,M),$[0]&131072&&F!==(F="SelfExclusionSave "+(S[17]?"active":""))&&c.attr(w,"class",F),$[0]&131072&&B!==(B=!S[17])&&(w.disabled=B),S[22]&&pe.p(S,$)},d(S){S&&(c.detach(t),c.detach(q),c.detach(se)),G&&G.d(),c.destroy_each(L,S),j&&j.d(),ne.d(),pe&&pe.d(S),Q=!1,c.run_all(le)}}}function ld(o){let t,e,i,s,r,n,a,l,d,u,h,p,f,b,P,T,A,C,Y,R,N;function X(W,k){return W[21]?md:fd}let U=X(o)(o);return{c(){t=c.element("div"),e=c.element("div"),U.c(),i=c.space(),s=c.element("div"),r=c.element("ui-skeleton"),n=c.space(),a=c.element("div"),l=c.space(),d=c.element("ui-skeleton"),u=c.space(),h=c.element("div"),p=c.space(),f=c.element("div"),b=c.element("ui-skeleton"),P=c.space(),T=c.element("div"),A=c.space(),C=c.element("ui-skeleton"),Y=c.space(),R=c.element("div"),N=c.element("ui-skeleton"),c.set_custom_element_data(r,"structure","text"),c.set_custom_element_data(r,"height",o[21]?"15px":"20px"),c.set_custom_element_data(r,"rows",o[21]?"12":"5"),c.set_custom_element_data(r,"width",o[21]?"100%":"60%"),c.set_style(a,"height",o[21]?"10px":"20px"),c.set_custom_element_data(d,"structure","text"),c.set_custom_element_data(d,"height",o[21]?"15px":"20px"),c.set_custom_element_data(d,"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[21]?"100%":"50%"),c.set_custom_element_data(b,"height",o[21]?"30px":"44px"),c.set_style(T,"height",o[21]?"15px":"20px"),c.set_custom_element_data(C,"structure","text"),c.set_custom_element_data(C,"height",o[21]?"15px":"20px"),c.set_custom_element_data(C,"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[21]?"35px":"50px"),c.attr(R,"class","SelfExclusionActionButtons "+(o[21]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(o[21]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(W,k){c.insert(W,t,k),c.append(t,e),U.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,d),c.append(s,u),c.append(s,h),c.append(e,p),c.append(e,f),c.append(f,b),c.append(f,P),c.append(f,T),c.append(f,A),c.append(f,C),c.append(e,Y),c.append(e,R),c.append(R,N)},p:c.noop,d(W){W&&c.detach(t),U.d()}}}function cd(o){let t,e,i,s,r,n,a,l,d,u,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"),d=c.space(),u=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(u,"class","PlayerSelfExclusionTitleMobile"),c.attr(t,"class","MenuReturnButton")},m(P,T){c.insert(P,t,T),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,d),c.append(t,u),c.append(u,p),f||(b=c.listen(t,"click",o[33]),f=!0)},p(P,T){T[0]&1048576&&h!==(h=P[20]("titleSelfExclusion")+"")&&c.set_data(p,h)},d(P){P&&c.detach(t),f=!1,b()}}}function Bo(o){let t,e=o[20](`${o[53].key}`)+"",i,s,r;function n(){return o[35](o[53])}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[53].key}`)+"")&&c.set_data(i,e)},d(a){a&&c.detach(t),s=!1,r()}}}function Ho(o){let t,e,i=o[20]("duration")+"",s,r,n,a=o[20]("dateInstructions")+"",l,d,u,h,p;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),d=c.space(),u=c.element("strong"),u.innerHTML="MM/DD/YYYY<strong></strong>",h=c.space(),p=c.element("vaadin-date-picker"),c.attr(e,"for","SelfExclusionDate"),c.attr(n,"class","SelfExclusionDateInstructions"),c.set_custom_element_data(p,"min",o[10]),c.set_custom_element_data(p,"max",o[11]),c.set_custom_element_data(p,"value",o[10]),c.attr(t,"class","SelfExclusionDateWrapper "+(o[21]?"SelfExclusionDateWrapperMobile":""))},m(f,b){c.insert(f,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,d),c.append(n,u),c.append(t,h),c.append(t,p),o[36](p)},p(f,b){b[0]&1048576&&i!==(i=f[20]("duration")+"")&&c.set_data(s,i),b[0]&1048576&&a!==(a=f[20]("dateInstructions")+"")&&c.set_data(l,a),b[0]&1024&&c.set_custom_element_data(p,"min",f[10]),b[0]&2048&&c.set_custom_element_data(p,"max",f[11]),b[0]&1024&&c.set_custom_element_data(p,"value",f[10])},d(f){f&&c.detach(t),o[36](null)}}}function dd(o){let t,e,i=o[20]("temporarySelfExclusion",{values:{date:o[12]}})+"",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:r[12]}})+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function ud(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 hd(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 pd(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 fd(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 md(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 _d(o){let t;function e(r,n){return r[19]?ld:ad}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[38](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[38](null)}}}function gd(o,t,e){let i;c.component_subscribe(o,c.$format,_=>e(20,i=_));let{endpoint:s="",session:r="",userid:n="",lang:a="en",gmversion:l="",operator:d="Everymatrix",supportemail:u="",baseurl:h="",clientstyling:p="",clientstylingurl:f="",mbsource:b,translationurl:P="",hasconfirmationmodal:T="false"}=t,A,C,Y=[],R={},N=window.navigator.userAgent,X,ae,U="",W="",k="selectAPeriod",D="",oe="",ge=c.getDevice(N)!=="PC",x=!1,v=!1,m=!1,y=!1,g=T==="true",E=!0;const w=()=>{fetch(P).then(ee=>ee.json()).then(ee=>{Object.keys(ee).forEach(te=>{Lo(te,ee[te])})}).catch(ee=>{console.log(ee)})};Object.keys($o).forEach(_=>{Lo(_,$o[_])});const M=()=>{let _=new URL(`${s}/v1/player/selfExclusionSettings`);fetch(_,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(te=>F(te)).then(te=>{e(9,Y=te.periods)}).catch(te=>{console.log(te)}).finally(()=>{e(19,E=!1)})},z=_=>{_.data.type==="setSelfExclusion"&&le()},F=_=>We(this,null,function*(){if(_.status>=300)R=yield _.json(),oe=R.thirdPartyResponse.errorCode,console.error(i(oe||"generalError")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i(oe||"generalError")}},window.location.href);else return _.json()}),B=()=>{e(18,y=!y)},q=_=>{switch(W=_.text,e(13,k=_.key),e(17,m=!0),e(18,y=!1),e(15,x=!1),e(16,v=!1),W){case"Until":e(16,v=!0),e(10,X=yt().add(6,"M").format("YYYY-MM-DD")),e(11,ae=yt().add(5,"y").format("YYYY-MM-DD")),e(12,U=X);break;case"Permanent":e(15,x=!x);break;default:const[ee,te]=W.split(" "),Ee=te.includes("Day")?"days":te.includes("Month")?"months":te.includes("Year")?"years":null;if(!Ee)return;e(12,U=yt().add(Number(ee),Ee).format("YYYY-MM-DD"));break}g&&se()},se=()=>{if(!g||!W||!U){e(14,D="");return}e(14,D=v?i("confirmationModalTextUntil",{values:{date:U}}):i("confirmationModalTextPeriod",{values:{period:i(W)}}))},Q=_=>{_.preventDefault(),g?window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href):le()},le=()=>{e(19,E=!0);let _=new URL(`/v2/player/${n}/limits${l==="gm16"?"/session":""}`,s),ee={selfExclusion:{period:k,expiryDate:U,selfExclusionReason:"UserRequest"}},te={method:"PUT",headers:{"X-SessionID":r,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(ee)};fetch(_.href,te).then(Ee=>F(Ee)).then(Ee=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("selfExclusionSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href)}).catch(Ee=>{console.error(i("errorSelfExclusionCall"),Ee),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i("errorSelfExclusionCall")}},window.location.href)}).finally(()=>{e(19,E=!1)})},G=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:ge},window.location.href)},H=_=>{e(12,U=_.target.value)},L=()=>{C.addEventListener("change",H,!1)};c.onMount(()=>(window.addEventListener("message",z,!1),()=>{C.removeEventListener("change",H),window.removeEventListener("message",z)}));const j=()=>{rd(a)},he=()=>G(),Ie=()=>B(),ne=_=>q(_);function pe(_){c.binding_callbacks[_?"unshift":"push"](()=>{C=_,e(8,C)})}const S=_=>Q(_);function $(_){c.binding_callbacks[_?"unshift":"push"](()=>{A=_,e(7,A)})}return o.$$set=_=>{"endpoint"in _&&e(27,s=_.endpoint),"session"in _&&e(28,r=_.session),"userid"in _&&e(29,n=_.userid),"lang"in _&&e(0,a=_.lang),"gmversion"in _&&e(30,l=_.gmversion),"operator"in _&&e(1,d=_.operator),"supportemail"in _&&e(2,u=_.supportemail),"baseurl"in _&&e(3,h=_.baseurl),"clientstyling"in _&&e(4,p=_.clientstyling),"clientstylingurl"in _&&e(5,f=_.clientstylingurl),"mbsource"in _&&e(6,b=_.mbsource),"translationurl"in _&&e(31,P=_.translationurl),"hasconfirmationmodal"in _&&e(32,T=_.hasconfirmationmodal)},o.$$.update=()=>{o.$$.dirty[0]&1&&a&&j(),o.$$.dirty[0]&2013265920&&s&&r&&n&&l&&M(),o.$$.dirty[0]&256&&C&&L(),o.$$.dirty[0]&144&&p&&A&&c.setClientStyling(A,p),o.$$.dirty[0]&160&&f&&A&&c.setClientStylingURL(A,f),o.$$.dirty[0]&192&&b&&A&&c.setStreamStyling(A,`${b}.Style`),o.$$.dirty[1]&1&&P&&w()},g&&se(),[a,d,u,h,p,f,b,A,C,Y,X,ae,U,k,D,x,v,m,y,E,i,ge,g,B,q,Q,G,s,r,n,l,P,T,he,Ie,ne,pe,S,$]}class br extends c.SvelteComponent{constructor(t){super(),c.init(this,t,gd,_d,c.safe_not_equal,{endpoint:27,session:28,userid:29,lang:0,gmversion:30,operator:1,supportemail:2,baseurl:3,clientstyling:4,clientstylingurl:5,mbsource:6,translationurl:31,hasconfirmationmodal:32},nd,[-1,-1])}get endpoint(){return this.$$.ctx[27]}set endpoint(t){this.$$set({endpoint:t}),c.flush()}get session(){return this.$$.ctx[28]}set session(t){this.$$set({session:t}),c.flush()}get userid(){return this.$$.ctx[29]}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[30]}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[31]}set translationurl(t){this.$$set({translationurl:t}),c.flush()}get hasconfirmationmodal(){return this.$$.ctx[32]}set hasconfirmationmodal(t){this.$$set({hasconfirmationmodal:t}),c.flush()}}c.create_custom_element(br,{endpoint:{},session:{},userid:{},lang:{},gmversion:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},hasconfirmationmodal:{}},[],[],!0);const bd=Object.freeze(Object.defineProperty({__proto__:null,default:br},Symbol.toStringTag,{value:"Module"}));exports.PlayerAccountSelfExclusionNd_ce=bd;exports.dayjs=yt;
|
|
3555
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new qc(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Kc(this.inputElement,this._labelController)),this._tooltipController=new Js(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}}ue(od);var gr={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",d="day",u="week",h="month",p="quarter",f="year",b="date",P="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|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(x){var v=["th","st","nd","rd"],m=x%100;return"["+x+(v[(m-20)%10]||v[m]||v[0])+"]"}},Y=function(x,v,m){var y=String(x);return!y||y.length>=v?x:""+Array(v+1-y.length).join(m)+x},R={s:Y,z:function(x){var v=-x.utcOffset(),m=Math.abs(v),y=Math.floor(m/60),g=m%60;return(v<=0?"+":"-")+Y(y,2,"0")+":"+Y(g,2,"0")},m:function x(v,m){if(v.date()<m.date())return-x(m,v);var y=12*(m.year()-v.year())+(m.month()-v.month()),g=v.clone().add(y,h),E=m-g<0,w=v.clone().add(y+(E?-1:1),h);return+(-(y+(m-g)/(E?g-w:w-g))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:h,y:f,w:u,d,D:b,h:l,m:a,s:n,ms:r,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},N="en",X={};X[N]=C;var ae="$isDayjsObject",U=function(x){return x instanceof oe||!(!x||!x[ae])},W=function x(v,m,y){var g;if(!v)return N;if(typeof v=="string"){var E=v.toLowerCase();X[E]&&(g=E),m&&(X[E]=m,g=E);var w=v.split("-");if(!g&&w.length>1)return x(w[0])}else{var M=v.name;X[M]=v,g=M}return!y&&g&&(N=g),g||!y&&N},k=function(x,v){if(U(x))return x.clone();var m=typeof v=="object"?v:{};return m.date=x,m.args=arguments,new oe(m)},D=R;D.l=W,D.i=U,D.w=function(x,v){return k(x,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var oe=function(){function x(m){this.$L=W(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[ae]=!0}var v=x.prototype;return v.parse=function(m){this.$d=function(y){var g=y.date,E=y.utc;if(g===null)return new Date(NaN);if(D.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var w=g.match(T);if(w){var M=w[2]-1||0,z=(w[7]||"0").substring(0,3);return E?new Date(Date.UTC(w[1],M,w[3]||1,w[4]||0,w[5]||0,w[6]||0,z)):new Date(w[1],M,w[3]||1,w[4]||0,w[5]||0,w[6]||0,z)}}return new Date(g)}(m),this.init()},v.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},v.$utils=function(){return D},v.isValid=function(){return this.$d.toString()!==P},v.isSame=function(m,y){var g=k(m);return this.startOf(y)<=g&&g<=this.endOf(y)},v.isAfter=function(m,y){return k(m)<this.startOf(y)},v.isBefore=function(m,y){return this.endOf(y)<k(m)},v.$g=function(m,y,g){return D.u(m)?this[y]:this.set(g,m)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(m,y){var g=this,E=!!D.u(y)||y,w=D.p(m),M=function(G,B){var L=D.w(g.$u?Date.UTC(g.$y,B,G):new Date(g.$y,B,G),g);return E?L:L.endOf(d)},z=function(G,B){return D.w(g.toDate()[G].apply(g.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(B)),g)},F=this.$W,H=this.$M,q=this.$D,se="set"+(this.$u?"UTC":"");switch(w){case f:return E?M(1,0):M(31,11);case h:return E?M(1,H):M(0,H+1);case u:var Q=this.$locale().weekStart||0,le=(F<Q?F+7:F)-Q;return M(E?q-le:q+(6-le),H);case d:case b:return z(se+"Hours",0);case l:return z(se+"Minutes",1);case a:return z(se+"Seconds",2);case n:return z(se+"Milliseconds",3);default:return this.clone()}},v.endOf=function(m){return this.startOf(m,!1)},v.$set=function(m,y){var g,E=D.p(m),w="set"+(this.$u?"UTC":""),M=(g={},g[d]=w+"Date",g[b]=w+"Date",g[h]=w+"Month",g[f]=w+"FullYear",g[l]=w+"Hours",g[a]=w+"Minutes",g[n]=w+"Seconds",g[r]=w+"Milliseconds",g)[E],z=E===d?this.$D+(y-this.$W):y;if(E===h||E===f){var F=this.clone().set(b,1);F.$d[M](z),F.init(),this.$d=F.set(b,Math.min(this.$D,F.daysInMonth())).$d}else M&&this.$d[M](z);return this.init(),this},v.set=function(m,y){return this.clone().$set(m,y)},v.get=function(m){return this[D.p(m)]()},v.add=function(m,y){var g,E=this;m=Number(m);var w=D.p(y),M=function(H){var q=k(E);return D.w(q.date(q.date()+Math.round(H*m)),E)};if(w===h)return this.set(h,this.$M+m);if(w===f)return this.set(f,this.$y+m);if(w===d)return M(1);if(w===u)return M(7);var z=(g={},g[a]=i,g[l]=s,g[n]=e,g)[w]||1,F=this.$d.getTime()+m*z;return D.w(F,this)},v.subtract=function(m,y){return this.add(-1*m,y)},v.format=function(m){var y=this,g=this.$locale();if(!this.isValid())return g.invalidDate||P;var E=m||"YYYY-MM-DDTHH:mm:ssZ",w=D.z(this),M=this.$H,z=this.$m,F=this.$M,H=g.weekdays,q=g.months,se=g.meridiem,Q=function(B,L,j,he){return B&&(B[L]||B(y,E))||j[L].slice(0,he)},le=function(B){return D.s(M%12||12,B,"0")},G=se||function(B,L,j){var he=B<12?"AM":"PM";return j?he.toLowerCase():he};return E.replace(A,function(B,L){return L||function(j){switch(j){case"YY":return String(y.$y).slice(-2);case"YYYY":return D.s(y.$y,4,"0");case"M":return F+1;case"MM":return D.s(F+1,2,"0");case"MMM":return Q(g.monthsShort,F,q,3);case"MMMM":return Q(q,F);case"D":return y.$D;case"DD":return D.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return Q(g.weekdaysMin,y.$W,H,2);case"ddd":return Q(g.weekdaysShort,y.$W,H,3);case"dddd":return H[y.$W];case"H":return String(M);case"HH":return D.s(M,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return G(M,z,!0);case"A":return G(M,z,!1);case"m":return String(z);case"mm":return D.s(z,2,"0");case"s":return String(y.$s);case"ss":return D.s(y.$s,2,"0");case"SSS":return D.s(y.$ms,3,"0");case"Z":return w}return null}(B)||w.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(m,y,g){var E,w=this,M=D.p(y),z=k(m),F=(z.utcOffset()-this.utcOffset())*i,H=this-z,q=function(){return D.m(w,z)};switch(M){case f:E=q()/12;break;case h:E=q();break;case p:E=q()/3;break;case u:E=(H-F)/6048e5;break;case d:E=(H-F)/864e5;break;case l:E=H/s;break;case a:E=H/i;break;case n:E=H/e;break;default:E=H}return g?E:D.a(E)},v.daysInMonth=function(){return this.endOf(h).$D},v.$locale=function(){return X[this.$L]},v.locale=function(m,y){if(!m)return this.$L;var g=this.clone(),E=W(m,y,!0);return E&&(g.$L=E),g},v.clone=function(){return D.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()},x}(),ge=oe.prototype;return k.prototype=ge,[["$ms",r],["$s",n],["$m",a],["$H",l],["$W",d],["$M",h],["$y",f],["$D",b]].forEach(function(x){ge[x[1]]=function(v){return this.$g(v,x[0],x[1])}}),k.extend=function(x,v){return x.$i||(x(v,oe,k),x.$i=!0),k},k.locale=W,k.isDayjs=U,k.unix=function(x){return k(1e3*x)},k.en=X[N],k.Ls=X,k.p={},k})})(gr);var sd=gr.exports;const yt=c.getDefaultExportFromCjs(sd);function Lo(o,t){c.addMessages(o,t)}function rd(o){c.$locale.set(o)}const $o={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",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",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年",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",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",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",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",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",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",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",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",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."}};function nd(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 Ro(o,t,e){const i=o.slice();return i[53]=t[e],i}function ad(o){let t,e,i,s,r=o[20]("titleSelfExclusion")+"",n,a,l,d,u=o[20]("selfExclusionText",{values:{operatorname:o[1],baseurl:o[3],lang:o[0]}})+"",h,p,f=o[20]("selfExclusionEmailText")+"",b,P,T,A,C,Y,R,N,X,ae=o[20](`${o[13]}`)+"",U,W,k,D,oe,ge,x,v,m,y,g,E,w,M=o[20]("save")+"",z,F,H,q,se,Q,le,G=o[21]&&cd(o),B=c.ensure_array_like(o[9]),L=[];for(let S=0;S<B.length;S+=1)L[S]=Ho(Ro(o,B,S));let j=o[16]&&Bo(o);function he(S,$){return S[15]?hd:S[17]?dd:ud}let Ie=he(o),ne=Ie(o),pe=o[22]&&pd(o);return{c(){t=c.element("div"),e=c.element("form"),G&&G.c(),i=c.space(),s=c.element("h2"),n=c.text(r),a=c.space(),l=c.element("div"),d=c.element("p"),h=c.space(),p=c.element("p"),b=c.text(f),P=c.space(),T=c.element("a"),A=c.text(o[2]),Y=c.space(),R=c.element("div"),N=c.element("div"),X=c.element("p"),U=c.text(ae),W=c.space(),k=c.svg_element("svg"),D=c.svg_element("g"),oe=c.svg_element("path"),ge=c.space(),x=c.element("div");for(let S=0;S<L.length;S+=1)L[S].c();v=c.space(),j&&j.c(),m=c.space(),y=c.element("div"),ne.c(),g=c.space(),E=c.element("div"),w=c.element("button"),z=c.text(M),q=c.space(),pe&&pe.c(),se=c.empty(),c.attr(s,"class","PlayerSelfExclusionTitle "+(o[21]?"PlayerSelfExclusionTitleNone":"")),c.attr(d,"class","SelfExclusionDescriptionText"),c.attr(T,"href",C="mailto:"+o[2]),c.attr(p,"class","SelfExclusionDescriptionText"),c.attr(l,"class","SelfExclusionDescription "+(o[21]?"SelfExclusionDescriptionMobile":"")),c.attr(oe,"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(oe,"stroke-linecap","round"),c.attr(k,"xmlns","http://www.w3.org/2000/svg"),c.attr(k,"xmlns:xlink","http://www.w3.org/1999/xlink"),c.attr(k,"version","1.1"),c.attr(k,"viewBox","0 0 100 100"),c.attr(k,"xml:space","preserve"),c.attr(k,"class","SelfExclusionConfigIcon"),c.toggle_class(k,"active",o[18]),c.attr(N,"class","SelfExclusionConfigLabel"),c.attr(x,"class","SelfExclusionDropDown"),c.toggle_class(x,"active",o[18]),c.attr(R,"class","SelfExclusionConfigWrapper "+(o[21]?"SelfExclusionConfigWrapperMobile":"")),c.toggle_class(R,"active",o[18]),c.attr(y,"class","SelfExclusionNotification "+(o[21]?"SelfExclusionDescriptionMobile":"")),c.attr(w,"class",F="SelfExclusionSave "+(o[17]?"active":"")),w.disabled=H=!o[17],c.attr(E,"class","SelfExclusionActionButtons "+(o[21]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(o[21]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(S,$){c.insert(S,t,$),c.append(t,e),G&&G.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,d),d.innerHTML=u,c.append(l,h),c.append(l,p),c.append(p,b),c.append(p,P),c.append(p,T),c.append(T,A),c.append(e,Y),c.append(e,R),c.append(R,N),c.append(N,X),c.append(X,U),c.append(N,W),c.append(N,k),c.append(k,D),c.append(D,oe),c.append(R,ge),c.append(R,x);for(let _=0;_<L.length;_+=1)L[_]&&L[_].m(x,null);c.append(e,v),j&&j.m(e,null),c.append(e,m),c.append(e,y),ne.m(y,null),c.append(e,g),c.append(e,E),c.append(E,w),c.append(w,z),c.insert(S,q,$),pe&&pe.m(S,$),c.insert(S,se,$),Q||(le=[c.listen(N,"click",o[34]),c.listen(w,"click",o[37])],Q=!0)},p(S,$){if(S[21]&&G.p(S,$),$[0]&1048576&&r!==(r=S[20]("titleSelfExclusion")+"")&&c.set_data(n,r),$[0]&1048587&&u!==(u=S[20]("selfExclusionText",{values:{operatorname:S[1],baseurl:S[3],lang:S[0]}})+"")&&(d.innerHTML=u),$[0]&1048576&&f!==(f=S[20]("selfExclusionEmailText")+"")&&c.set_data(b,f),$[0]&4&&c.set_data(A,S[2]),$[0]&4&&C!==(C="mailto:"+S[2])&&c.attr(T,"href",C),$[0]&1056768&&ae!==(ae=S[20](`${S[13]}`)+"")&&c.set_data(U,ae),$[0]&262144&&c.toggle_class(k,"active",S[18]),$[0]&17826304){B=c.ensure_array_like(S[9]);let _;for(_=0;_<B.length;_+=1){const ee=Ro(S,B,_);L[_]?L[_].p(ee,$):(L[_]=Ho(ee),L[_].c(),L[_].m(x,null))}for(;_<L.length;_+=1)L[_].d(1);L.length=B.length}$[0]&262144&&c.toggle_class(x,"active",S[18]),$[0]&262144&&c.toggle_class(R,"active",S[18]),S[16]?j?j.p(S,$):(j=Bo(S),j.c(),j.m(e,m)):j&&(j.d(1),j=null),Ie===(Ie=he(S))&&ne?ne.p(S,$):(ne.d(1),ne=Ie(S),ne&&(ne.c(),ne.m(y,null))),$[0]&1048576&&M!==(M=S[20]("save")+"")&&c.set_data(z,M),$[0]&131072&&F!==(F="SelfExclusionSave "+(S[17]?"active":""))&&c.attr(w,"class",F),$[0]&131072&&H!==(H=!S[17])&&(w.disabled=H),S[22]&&pe.p(S,$)},d(S){S&&(c.detach(t),c.detach(q),c.detach(se)),G&&G.d(),c.destroy_each(L,S),j&&j.d(),ne.d(),pe&&pe.d(S),Q=!1,c.run_all(le)}}}function ld(o){let t,e,i,s,r,n,a,l,d,u,h,p,f,b,P,T,A,C,Y,R,N;function X(W,k){return W[21]?md:fd}let U=X(o)(o);return{c(){t=c.element("div"),e=c.element("div"),U.c(),i=c.space(),s=c.element("div"),r=c.element("ui-skeleton"),n=c.space(),a=c.element("div"),l=c.space(),d=c.element("ui-skeleton"),u=c.space(),h=c.element("div"),p=c.space(),f=c.element("div"),b=c.element("ui-skeleton"),P=c.space(),T=c.element("div"),A=c.space(),C=c.element("ui-skeleton"),Y=c.space(),R=c.element("div"),N=c.element("ui-skeleton"),c.set_custom_element_data(r,"structure","text"),c.set_custom_element_data(r,"height",o[21]?"15px":"20px"),c.set_custom_element_data(r,"rows",o[21]?"12":"5"),c.set_custom_element_data(r,"width",o[21]?"100%":"60%"),c.set_style(a,"height",o[21]?"10px":"20px"),c.set_custom_element_data(d,"structure","text"),c.set_custom_element_data(d,"height",o[21]?"15px":"20px"),c.set_custom_element_data(d,"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[21]?"100%":"50%"),c.set_custom_element_data(b,"height",o[21]?"30px":"44px"),c.set_style(T,"height",o[21]?"15px":"20px"),c.set_custom_element_data(C,"structure","text"),c.set_custom_element_data(C,"height",o[21]?"15px":"20px"),c.set_custom_element_data(C,"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[21]?"35px":"50px"),c.attr(R,"class","SelfExclusionActionButtons "+(o[21]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(o[21]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(W,k){c.insert(W,t,k),c.append(t,e),U.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,d),c.append(s,u),c.append(s,h),c.append(e,p),c.append(e,f),c.append(f,b),c.append(f,P),c.append(f,T),c.append(f,A),c.append(f,C),c.append(e,Y),c.append(e,R),c.append(R,N)},p:c.noop,d(W){W&&c.detach(t),U.d()}}}function cd(o){let t,e,i,s,r,n,a,l,d,u,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"),d=c.space(),u=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(u,"class","PlayerSelfExclusionTitleMobile"),c.attr(t,"class","MenuReturnButton")},m(P,T){c.insert(P,t,T),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,d),c.append(t,u),c.append(u,p),f||(b=c.listen(t,"click",o[33]),f=!0)},p(P,T){T[0]&1048576&&h!==(h=P[20]("titleSelfExclusion")+"")&&c.set_data(p,h)},d(P){P&&c.detach(t),f=!1,b()}}}function Ho(o){let t,e=o[20](`${o[53].key}`)+"",i,s,r;function n(){return o[35](o[53])}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[53].key}`)+"")&&c.set_data(i,e)},d(a){a&&c.detach(t),s=!1,r()}}}function Bo(o){let t,e,i=o[20]("duration")+"",s,r,n,a=o[20]("dateInstructions")+"",l,d,u,h,p;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),d=c.space(),u=c.element("strong"),u.innerHTML="MM/DD/YYYY<strong></strong>",h=c.space(),p=c.element("vaadin-date-picker"),c.attr(e,"for","SelfExclusionDate"),c.attr(n,"class","SelfExclusionDateInstructions"),c.set_custom_element_data(p,"min",o[10]),c.set_custom_element_data(p,"max",o[11]),c.set_custom_element_data(p,"value",o[10]),c.attr(t,"class","SelfExclusionDateWrapper "+(o[21]?"SelfExclusionDateWrapperMobile":""))},m(f,b){c.insert(f,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,d),c.append(n,u),c.append(t,h),c.append(t,p),o[36](p)},p(f,b){b[0]&1048576&&i!==(i=f[20]("duration")+"")&&c.set_data(s,i),b[0]&1048576&&a!==(a=f[20]("dateInstructions")+"")&&c.set_data(l,a),b[0]&1024&&c.set_custom_element_data(p,"min",f[10]),b[0]&2048&&c.set_custom_element_data(p,"max",f[11]),b[0]&1024&&c.set_custom_element_data(p,"value",f[10])},d(f){f&&c.detach(t),o[36](null)}}}function dd(o){let t,e,i=o[20]("temporarySelfExclusion",{values:{date:o[12]}})+"",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:r[12]}})+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function ud(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 hd(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 pd(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 fd(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 md(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 _d(o){let t;function e(r,n){return r[19]?ld:ad}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[38](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[38](null)}}}function gd(o,t,e){let i;c.component_subscribe(o,c.$format,_=>e(20,i=_));let{endpoint:s="",session:r="",userid:n="",lang:a="en",gmversion:l="",operator:d="Everymatrix",supportemail:u="",baseurl:h="",clientstyling:p="",clientstylingurl:f="",mbsource:b,translationurl:P="",hasconfirmationmodal:T="false"}=t,A,C,Y=[],R={},N=window.navigator.userAgent,X,ae,U="",W="",k="selectAPeriod",D="",oe="",ge=c.getDevice(N)!=="PC",x=!1,v=!1,m=!1,y=!1,g=T==="true",E=!0;const w=()=>{fetch(P).then(ee=>ee.json()).then(ee=>{Object.keys(ee).forEach(te=>{Lo(te,ee[te])})}).catch(ee=>{console.log(ee)})};Object.keys($o).forEach(_=>{Lo(_,$o[_])});const M=()=>{let _=new URL(`${s}/v1/player/selfExclusionSettings`);fetch(_,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(te=>F(te)).then(te=>{e(9,Y=te.periods)}).catch(te=>{console.log(te)}).finally(()=>{e(19,E=!1)})},z=_=>{_.data.type==="setSelfExclusion"&&le()},F=_=>We(this,null,function*(){if(_.status>=300)R=yield _.json(),oe=R.thirdPartyResponse.errorCode,console.error(i(oe||"generalError")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i(oe||"generalError")}},window.location.href);else return _.json()}),H=()=>{e(18,y=!y)},q=_=>{switch(W=_.text,e(13,k=_.key),e(17,m=!0),e(18,y=!1),e(15,x=!1),e(16,v=!1),W){case"Until":e(16,v=!0),e(10,X=yt().add(6,"M").format("YYYY-MM-DD")),e(11,ae=yt().add(5,"y").format("YYYY-MM-DD")),e(12,U=X);break;case"Permanent":e(15,x=!x);break;default:const[ee,te]=W.split(" "),Ee=te.includes("Day")?"days":te.includes("Month")?"months":te.includes("Year")?"years":null;if(!Ee)return;e(12,U=yt().add(Number(ee),Ee).format("YYYY-MM-DD"));break}g&&se()},se=()=>{if(!g||!W||!U){e(14,D="");return}e(14,D=v?i("confirmationModalTextUntil",{values:{date:U}}):i("confirmationModalTextPeriod",{values:{period:i(W)}}))},Q=_=>{_.preventDefault(),g?window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href):le()},le=()=>{e(19,E=!0);let _=new URL(`/v2/player/${n}/limits${l==="gm16"?"/session":""}`,s),ee={selfExclusion:{period:k,expiryDate:U,selfExclusionReason:"UserRequest"}},te={method:"PUT",headers:{"X-SessionID":r,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(ee)};fetch(_.href,te).then(Ee=>F(Ee)).then(Ee=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("selfExclusionSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href)}).catch(Ee=>{console.error(i("errorSelfExclusionCall"),Ee),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i("errorSelfExclusionCall")}},window.location.href)}).finally(()=>{e(19,E=!1)})},G=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:ge},window.location.href)},B=_=>{e(12,U=_.target.value)},L=()=>{C.addEventListener("change",B,!1)};c.onMount(()=>(window.addEventListener("message",z,!1),()=>{C.removeEventListener("change",B),window.removeEventListener("message",z)}));const j=()=>{rd(a)},he=()=>G(),Ie=()=>H(),ne=_=>q(_);function pe(_){c.binding_callbacks[_?"unshift":"push"](()=>{C=_,e(8,C)})}const S=_=>Q(_);function $(_){c.binding_callbacks[_?"unshift":"push"](()=>{A=_,e(7,A)})}return o.$$set=_=>{"endpoint"in _&&e(27,s=_.endpoint),"session"in _&&e(28,r=_.session),"userid"in _&&e(29,n=_.userid),"lang"in _&&e(0,a=_.lang),"gmversion"in _&&e(30,l=_.gmversion),"operator"in _&&e(1,d=_.operator),"supportemail"in _&&e(2,u=_.supportemail),"baseurl"in _&&e(3,h=_.baseurl),"clientstyling"in _&&e(4,p=_.clientstyling),"clientstylingurl"in _&&e(5,f=_.clientstylingurl),"mbsource"in _&&e(6,b=_.mbsource),"translationurl"in _&&e(31,P=_.translationurl),"hasconfirmationmodal"in _&&e(32,T=_.hasconfirmationmodal)},o.$$.update=()=>{o.$$.dirty[0]&1&&a&&j(),o.$$.dirty[0]&2013265920&&s&&r&&n&&l&&M(),o.$$.dirty[0]&256&&C&&L(),o.$$.dirty[0]&144&&p&&A&&c.setClientStyling(A,p),o.$$.dirty[0]&160&&f&&A&&c.setClientStylingURL(A,f),o.$$.dirty[0]&192&&b&&A&&c.setStreamStyling(A,`${b}.Style`),o.$$.dirty[1]&1&&P&&w()},g&&se(),[a,d,u,h,p,f,b,A,C,Y,X,ae,U,k,D,x,v,m,y,E,i,ge,g,H,q,Q,G,s,r,n,l,P,T,he,Ie,ne,pe,S,$]}class br extends c.SvelteComponent{constructor(t){super(),c.init(this,t,gd,_d,c.safe_not_equal,{endpoint:27,session:28,userid:29,lang:0,gmversion:30,operator:1,supportemail:2,baseurl:3,clientstyling:4,clientstylingurl:5,mbsource:6,translationurl:31,hasconfirmationmodal:32},nd,[-1,-1])}get endpoint(){return this.$$.ctx[27]}set endpoint(t){this.$$set({endpoint:t}),c.flush()}get session(){return this.$$.ctx[28]}set session(t){this.$$set({session:t}),c.flush()}get userid(){return this.$$.ctx[29]}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[30]}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[31]}set translationurl(t){this.$$set({translationurl:t}),c.flush()}get hasconfirmationmodal(){return this.$$.ctx[32]}set hasconfirmationmodal(t){this.$$set({hasconfirmationmodal:t}),c.flush()}}c.create_custom_element(br,{endpoint:{},session:{},userid:{},lang:{},gmversion:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},hasconfirmationmodal:{}},[],[],!0);const bd=Object.freeze(Object.defineProperty({__proto__:null,default:br},Symbol.toStringTag,{value:"Module"}));exports.PlayerAccountSelfExclusionNd_ce=bd;exports.dayjs=yt;
|