@everymatrix/player-account-controller-nd 1.55.0 → 1.56.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/GeneralLogout-9pZTJKCj.cjs +8 -0
- package/components/{GeneralLogout-Ve_dOAMA.js → GeneralLogout-CqNn1bEG.js} +1081 -1088
- package/components/{GeneralLogout-BZhvD1EQ.js → GeneralLogout-qtT2UsMu.js} +1076 -1083
- package/components/PlayerAccountBettingHistory-BgdXC00n.cjs +1 -0
- package/components/PlayerAccountBettingHistory-CgKp1Tsa.js +329 -0
- package/components/{PlayerAccountBettingHistory-C9n4Lfo3.js → PlayerAccountBettingHistory-DGdU5x1X.js} +130 -134
- package/components/{PlayerAccountBiometrics-BrlNlZ5N.cjs → PlayerAccountBiometrics-8CaZALdD.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-BupiQCMJ.js → PlayerAccountBiometrics-BynUcDER.js} +125 -126
- package/components/{PlayerAccountBiometrics-fQlNKCoA.js → PlayerAccountBiometrics-hfEg8HK3.js} +125 -126
- package/components/{PlayerAccountClosureNd-CEad1veU.js → PlayerAccountClosureNd-BNAxe4kI.js} +127 -128
- package/components/{PlayerAccountClosureNd-DcMOj468.cjs → PlayerAccountClosureNd-BzygnnRL.cjs} +1 -1
- package/components/{PlayerAccountClosureNd-DAFiYifr.js → PlayerAccountClosureNd-C56v4kQH.js} +127 -128
- package/components/{PlayerAccountControllerNd-5BH6GjlH.js → PlayerAccountControllerNd-0Azz2muh.js} +1575 -1049
- package/components/{PlayerAccountControllerNd-BmAwgSdK.js → PlayerAccountControllerNd-CU0CZtN2.js} +1509 -983
- package/components/PlayerAccountControllerNd-DiMI0zck.cjs +1 -0
- package/components/{PlayerAccountGamingLimits-9Stjo0gs.js → PlayerAccountGamingLimits-BUBbpeFt.js} +301 -250
- package/components/PlayerAccountGamingLimits-DoYSa5g4.cjs +1 -0
- package/components/{PlayerAccountGamingLimits-DI0RPgPB.js → PlayerAccountGamingLimits-cGyCwFe3.js} +301 -250
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BzAWyxny.js → PlayerAccountGamingLimitsConfirmationModal-BzxaZ7Sb.js} +127 -131
- package/components/{PlayerAccountGamingLimitsConfirmationModal-DKpr25Aj.js → PlayerAccountGamingLimitsConfirmationModal-CPRvI7h-.js} +127 -131
- package/components/PlayerAccountGamingLimitsConfirmationModal-CUg2My3V.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsGroupEdit-Dj2jUWb2.js → PlayerAccountGamingLimitsGroupEdit-BJQil0oW.js} +1073 -1077
- package/components/{PlayerAccountGamingLimitsGroupEdit-DrkoLne8.cjs → PlayerAccountGamingLimitsGroupEdit-ByRLb87-.cjs} +4 -4
- package/components/{PlayerAccountGamingLimitsGroupEdit-CBViR9JR.js → PlayerAccountGamingLimitsGroupEdit-uRCXqfhe.js} +1073 -1077
- package/components/{PlayerAccountGamingLimitsHistory2Nd-BQRXsnS9.js → PlayerAccountGamingLimitsHistory2Nd-B9FC3C6m.js} +208 -216
- package/components/{PlayerAccountGamingLimitsHistory2Nd-2hdjxCBn.cjs → PlayerAccountGamingLimitsHistory2Nd-Daq9D9so.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-BQy_79YQ.js → PlayerAccountGamingLimitsHistory2Nd-wYR_HP23.js} +213 -221
- package/components/{PlayerAccountGamingLimitsInfoCard-StfGgmLs.js → PlayerAccountGamingLimitsInfoCard-DgmJAMo8.js} +639 -588
- package/components/{PlayerAccountGamingLimitsInfoCard-CDFRfVT4.js → PlayerAccountGamingLimitsInfoCard-DvaVcUFe.js} +639 -588
- package/components/PlayerAccountGamingLimitsInfoCard-c0kYK6Z1.cjs +1 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-BDBtHDGH.cjs +21 -0
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-B672X-1A.js → PlayerAccountGamingLimitsPage2Gm16Nd-BQeFK7FJ.js} +1043 -1019
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-Dz-xK27Q.js → PlayerAccountGamingLimitsPage2Gm16Nd-DJhG-lLb.js} +845 -821
- package/components/{PlayerAccountGamingLimitsPopup-DoLZB2lj.js → PlayerAccountGamingLimitsPopup-BgdXe6lp.js} +116 -120
- package/components/{PlayerAccountGamingLimitsPopup-f9QP34fL.js → PlayerAccountGamingLimitsPopup-BhqEVpIP.js} +116 -120
- package/components/{PlayerAccountGamingLimitsPopup-ChBLdQR7.cjs → PlayerAccountGamingLimitsPopup-CfBYEYKc.cjs} +1 -1
- package/components/PlayerAccountGamingLimitsWrapper2Nd-DnBhGv4Z.cjs +1 -0
- package/components/PlayerAccountGamingLimitsWrapper2Nd-HNcfKvd3.js +1016 -0
- package/components/PlayerAccountGamingLimitsWrapper2Nd-bkcZAm71.js +1022 -0
- package/components/{PlayerAccountGeneralConfirmationModal-BlglDNwU.js → PlayerAccountGeneralConfirmationModal-BUSAMIdf.js} +141 -142
- package/components/{PlayerAccountGeneralConfirmationModal-rpOFir4P.js → PlayerAccountGeneralConfirmationModal-BXQQtxIE.js} +141 -142
- package/components/PlayerAccountGeneralConfirmationModal-Dr-ZkTHH.cjs +1 -0
- package/components/PlayerAccountMenuNd-BGd35WSX.js +695 -0
- package/components/PlayerAccountMenuNd-BWzYxwjF.cjs +1 -0
- package/components/PlayerAccountMenuNd-Dw-owOIv.js +694 -0
- package/components/PlayerAccountModal-C7aE-f75.js +209 -0
- package/components/PlayerAccountModal-CLW-XTid.cjs +1 -0
- package/components/PlayerAccountModal-DcQTZlVT.js +209 -0
- package/components/PlayerAccountNotifications-0ecn9JH_.js +369 -0
- package/components/PlayerAccountNotifications-CmSue8JR.cjs +1 -0
- package/components/PlayerAccountNotifications-lv1He1RO.js +368 -0
- package/components/{PlayerAccountSelfExclusionNd-D2JmyzgE.js → PlayerAccountSelfExclusionNd-CsBAGhjI.js} +10893 -11100
- package/components/{PlayerAccountSelfExclusionNd-CM37K9pN.js → PlayerAccountSelfExclusionNd-DRQwA-0O.js} +10812 -11065
- package/components/PlayerAccountSelfExclusionNd-TZyj4_3a.cjs +3557 -0
- package/components/PlayerAccountTimeout-BDvJp_Zk.cjs +1 -0
- package/components/{PlayerAccountTimeout-B0zaqo1v.js → PlayerAccountTimeout-C0WAFaPW.js} +498 -367
- package/components/{PlayerAccountTimeout-BO3G2t3W.js → PlayerAccountTimeout-CixN4uD5.js} +498 -367
- package/components/PlayerActiveBonuses-BAx9d0pm.js +1055 -0
- package/components/PlayerActiveBonuses-CbJliQvN.js +1056 -0
- package/components/PlayerActiveBonuses-DTgD47j8.cjs +1 -0
- package/components/{PlayerBonusCard-BC8FfHZz.cjs → PlayerBonusCard-5gtng8cd.cjs} +1 -1
- package/components/{PlayerBonusCard-9LZmOSI1.js → PlayerBonusCard-BiVG3k7R.js} +166 -168
- package/components/{PlayerBonusCard-BvrlU7Ao.js → PlayerBonusCard-DnyVL-Cb.js} +166 -168
- package/components/PlayerBonusHistory-CaiqLQk_.js +938 -0
- package/components/PlayerBonusHistory-DA8a2ZnE.js +937 -0
- package/components/PlayerBonusHistory-rLGeO078.cjs +1 -0
- package/components/{PlayerChangePassword-CzR4Xz0H.cjs → PlayerChangePassword-BsM1lBfW.cjs} +2 -2
- package/components/{PlayerChangePassword-BsQyz4Qc.js → PlayerChangePassword-DsR4BO-Y.js} +383 -387
- package/components/{PlayerChangePassword-BcoctDrY.js → PlayerChangePassword-dEL-0H2u.js} +383 -387
- package/components/PlayerDeposit-0eaqfWH1.cjs +1 -0
- package/components/PlayerDeposit-D_Ujmr4j.js +391 -0
- package/components/PlayerDeposit-IS6_f845.js +391 -0
- package/components/PlayerGamingHistory-BRstQCWo.cjs +1 -0
- package/components/{PlayerGamingHistory-B1Q3Qiuk.js → PlayerGamingHistory-BYRzcRjb.js} +348 -352
- package/components/{PlayerGamingHistory-DUCP4vWS.js → PlayerGamingHistory-GGgBAhXX.js} +373 -377
- package/components/PlayerPendingWithdrawals-CaoLTPFk.js +310 -0
- package/components/PlayerPendingWithdrawals-M9Wq9w2M.js +310 -0
- package/components/PlayerPendingWithdrawals-qMs8We3P.cjs +1 -0
- package/components/PlayerProfileInfo-B4pkapUi.js +1821 -0
- package/components/PlayerProfileInfo-Cr6m7e2V.js +1804 -0
- package/components/PlayerProfileInfo-Mqg0xIQD.cjs +1 -0
- package/components/PlayerRealityCheck-B9LHSWRj.js +652 -0
- package/components/PlayerRealityCheck-CMKhVVBJ.js +668 -0
- package/components/PlayerRealityCheck-DoXLoM9G.cjs +1 -0
- package/components/PlayerTransactionHistory-BaALuJRH.js +314 -0
- package/components/PlayerTransactionHistory-BqEXyDt-.cjs +1 -0
- package/components/PlayerTransactionHistory-CYob92HC.js +314 -0
- package/components/PlayerWithdrawal-1i-tYxaO.cjs +1 -0
- package/components/{PlayerWithdrawal-jGmMHcUX.js → PlayerWithdrawal-CNDRfeXy.js} +137 -141
- package/components/{PlayerWithdrawal-wi9yuRxw.js → PlayerWithdrawal-U9E0FEDt.js} +137 -141
- 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/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
- package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
- package/stencil/{checkbox-group-input_9-DZvX2H_r.js → checkbox-group-input_9-B_RfUM6E.js} +3279 -2404
- package/stencil/checkbox-group-input_9-C2IUNSpC.cjs +2045 -0
- package/stencil/{checkbox-group-input_9-Cny9rOs9.js → checkbox-group-input_9-C98yT4vw.js} +3348 -2459
- package/stencil/{general-input-Yj_LRx0v.js → general-input-CqTf7ErJ.js} +6 -6
- package/stencil/{general-input-d5RULL12.js → general-input-DTHw5Z1Q.js} +6 -6
- package/stencil/general-input-wM2i7b57.cjs +1 -0
- package/stencil/index-92b64862-BRYoLHww.cjs +1 -0
- package/stencil/index-92b64862-C_69cKxK.js +708 -0
- package/stencil/index-92b64862-w9a1l35N.js +692 -0
- package/stencil/index-db5752f9-DlyF6uv8.js +594 -0
- package/stencil/index-db5752f9-DrdunCay.js +610 -0
- package/stencil/index-db5752f9-dFKrDpwt.cjs +1 -0
- package/stencil/password-input_2-B2qvf6ku.cjs +105 -0
- package/stencil/password-input_2-CdHS5fmR.js +569 -0
- package/stencil/password-input_2-DdQvCp3o.js +569 -0
- package/stencil/{player-change-password-gm2-780eb445-Cg8Z75Vz.js → player-change-password-gm2-38dff08c-BNhjxr22.js} +85 -66
- package/stencil/{player-change-password-gm2-780eb445-DEjz9Jjk.js → player-change-password-gm2-38dff08c-CPRdwVFF.js} +85 -66
- package/stencil/player-change-password-gm2-38dff08c-DnYXSeKg.cjs +1 -0
- package/stencil/player-change-password-gm2-Cxdum0Hh.js +25 -0
- package/stencil/player-change-password-gm2-DJqZO25d.cjs +1 -0
- package/stencil/player-change-password-gm2-DWoAaJ2f.js +7 -0
- package/stencil/{toggle-checkbox-input-ErX2Ngat.js → toggle-checkbox-input-B4OOk9wz.js} +7 -7
- package/stencil/{toggle-checkbox-input-Co64_7cm.js → toggle-checkbox-input-Cwo_Ny77.js} +7 -7
- package/stencil/toggle-checkbox-input-tQDhlcag.cjs +1 -0
- package/stencil/ui-skeleton-982450d2-BKnKTh4c.js +122 -0
- package/stencil/ui-skeleton-982450d2-DDIv0--Q.cjs +1 -0
- package/stencil/ui-skeleton-982450d2-DQzKNKe8.js +122 -0
- package/stencil/ui-skeleton-BL5JJXyn.js +11 -0
- package/stencil/ui-skeleton-CGldUjn2.js +29 -0
- package/stencil/ui-skeleton-ITys8nIA.cjs +1 -0
- package/stencil/{vaadin-button-6001b2a6-Dqz5Vp8D.js → vaadin-button-mixin-ef61174c-B_vhSFKU.js} +8177 -8813
- package/stencil/vaadin-button-mixin-ef61174c-DuDVejN4.cjs +2385 -0
- package/stencil/{vaadin-button-6001b2a6-CZwj1qjO.js → vaadin-button-mixin-ef61174c-EQiVsI4x.js} +6270 -6860
- package/components/GeneralLogout-BW6b3iuS.cjs +0 -8
- package/components/PlayerAccountBettingHistory-BsFzBNDY.cjs +0 -1
- package/components/PlayerAccountBettingHistory-QT3-2u7E.js +0 -333
- package/components/PlayerAccountControllerNd-CO0ce0zs.cjs +0 -1
- package/components/PlayerAccountGamingLimits-BPQrptbd.cjs +0 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-IgBYV9F2.cjs +0 -1
- package/components/PlayerAccountGamingLimitsInfoCard-BOls7ahz.cjs +0 -1
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-DSThp4HX.cjs +0 -21
- package/components/PlayerAccountGamingLimitsWrapper2Nd-Bz6Zp5tp.js +0 -865
- package/components/PlayerAccountGamingLimitsWrapper2Nd-Cq5vxtjw.js +0 -871
- package/components/PlayerAccountGamingLimitsWrapper2Nd-KUpEDIP8.cjs +0 -1
- package/components/PlayerAccountGeneralConfirmationModal-BpTCzpiW.cjs +0 -1
- package/components/PlayerAccountMenuNd-BWUhUlIY.js +0 -590
- package/components/PlayerAccountMenuNd-BmPerb2f.cjs +0 -1
- package/components/PlayerAccountMenuNd-CxMlvYwa.js +0 -589
- package/components/PlayerAccountModal-BK81ZotM.js +0 -213
- package/components/PlayerAccountModal-C7aZZlBw.cjs +0 -1
- package/components/PlayerAccountModal-CzVRNZzB.js +0 -213
- package/components/PlayerAccountNotifications-BBwUcB1T.js +0 -261
- package/components/PlayerAccountNotifications-CB47Zxq9.js +0 -261
- package/components/PlayerAccountNotifications-DkgHtUGj.cjs +0 -1
- package/components/PlayerAccountSelfExclusionNd-DCsOgBZR.cjs +0 -4171
- package/components/PlayerAccountTimeout-Dg5Mlz5K.cjs +0 -1
- package/components/PlayerActiveBonuses-B9jz3QD8.cjs +0 -1
- package/components/PlayerActiveBonuses-CfZ8tegY.js +0 -1037
- package/components/PlayerActiveBonuses-DkKDWhBN.js +0 -1038
- package/components/PlayerBonusHistory-Bsy2Grk6.js +0 -919
- package/components/PlayerBonusHistory-CuSbmVev.cjs +0 -1
- package/components/PlayerBonusHistory-nN8l2tOZ.js +0 -920
- package/components/PlayerDeposit-BIBRCGiC.js +0 -414
- package/components/PlayerDeposit-B_7saxic.js +0 -414
- package/components/PlayerDeposit-D_78W5GC.cjs +0 -1
- package/components/PlayerGamingHistory-CNPhCSFS.cjs +0 -1
- package/components/PlayerPendingWithdrawals-BG3I8ifu.cjs +0 -1
- package/components/PlayerPendingWithdrawals-C8jyjgZ0.js +0 -311
- package/components/PlayerPendingWithdrawals-wMhZTLpq.js +0 -311
- package/components/PlayerProfileInfo-CGsJydqv.cjs +0 -1
- package/components/PlayerProfileInfo-EkbwdTEh.js +0 -1757
- package/components/PlayerProfileInfo-SeOQq0CG.js +0 -1740
- package/components/PlayerRealityCheck--iYjw4rP.js +0 -598
- package/components/PlayerRealityCheck-BGGIPihT.js +0 -582
- package/components/PlayerRealityCheck-C26ZBWae.cjs +0 -1
- package/components/PlayerTransactionHistory-CJqhYnbs.cjs +0 -1
- package/components/PlayerTransactionHistory-CvBbrQn6.js +0 -315
- package/components/PlayerTransactionHistory-DIfTIxF3.js +0 -315
- package/components/PlayerWithdrawal-GDc_7hZX.cjs +0 -1
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/checkbox-group-input_9-FLO2Qa5Y.cjs +0 -2104
- package/stencil/general-input-igTYIJ6W.cjs +0 -1
- package/stencil/index-72d2f0c7--qtpsDOz.js +0 -642
- package/stencil/index-72d2f0c7-DldCMjBJ.cjs +0 -1
- package/stencil/index-72d2f0c7-DyMEJXra.js +0 -626
- package/stencil/password-input_2-CHOu4hgw.js +0 -1420
- package/stencil/password-input_2-DQAgV1SZ.cjs +0 -896
- package/stencil/password-input_2-DaiHlKbQ.js +0 -1420
- package/stencil/player-change-password-gm2-780eb445-CdItmoKI.cjs +0 -1
- package/stencil/player-change-password-gm2-ClBiis4q.js +0 -25
- package/stencil/player-change-password-gm2-Dt0gP_G_.cjs +0 -1
- package/stencil/player-change-password-gm2-cKh7RACV.js +0 -7
- package/stencil/toggle-checkbox-input-a_0w-Y0n.cjs +0 -1
- package/stencil/vaadin-button-6001b2a6-C6xw53k5.cjs +0 -3018
|
@@ -0,0 +1,3557 @@
|
|
|
1
|
+
"use strict";var yr=Object.defineProperty,vr=Object.defineProperties;var xr=Object.getOwnPropertyDescriptors;var qi=Object.getOwnPropertySymbols;var wr=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable;var Gi=(o,t,e)=>t in o?yr(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,dt=(o,t)=>{for(var e in t||(t={}))wr.call(t,e)&&Gi(o,e,t[e]);if(qi)for(var e of qi(t))Er.call(t,e)&&Gi(o,e,t[e]);return o},Nt=(o,t)=>vr(o,xr(t));var ut=(o,t,e)=>new Promise((i,s)=>{var r=l=>{try{a(e.next(l))}catch(d){s(d)}},n=l=>{try{a(e.throw(l))}catch(d){s(d)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(o,t)).next())});const c=require("./GeneralLogout-9pZTJKCj.cjs");require("../stencil/ui-skeleton-ITys8nIA.cjs");/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/window.Vaadin||(window.Vaadin={});var Bo;(Bo=window.Vaadin).featureFlags||(Bo.featureFlags={});function Sr(o){return o.replace(/-[a-z]/gu,t=>t[1].toUpperCase())}const fe={};function pe(o,t="24.6.5"){if(Object.defineProperty(o,"version",{get(){return t}}),o.experimental){const i=typeof o.experimental=="string"?o.experimental:`${Sr(o.is.split("-").slice(1).join("-"))}Component`;if(!window.Vaadin.featureFlags[i]&&!fe[i]){fe[i]=new Set,fe[i].add(o),Object.defineProperty(window.Vaadin.featureFlags,i,{get(){return fe[i].size===0},set(s){s&&fe[i].size>0&&(fe[i].forEach(r=>{customElements.define(r.is,r)}),fe[i].clear())}});return}else if(fe[i]){fe[i].add(o);return}}const e=customElements.get(o.is);if(!e)customElements.define(o.is,o);else{const i=e.version;i&&o.version&&i===o.version?console.warn(`The component ${o.is} has been loaded twice`):console.error(`Tried to define ${o.is} version ${o.version} when version ${e.version} is already in use. Something will probably break.`)}}/**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
8
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9
|
+
*/class Ar extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}pe(Ar);/**
|
|
10
|
+
* @license
|
|
11
|
+
* Copyright 2019 Google LLC
|
|
12
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
+
*/const gt=globalThis,wi=gt.ShadowRoot&&(gt.ShadyCSS===void 0||gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ei=Symbol(),Ki=new WeakMap;let Si=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Ei)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(wi&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Ki.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Ki.set(e,t))}return t}toString(){return this.cssText}};const Cr=o=>new Si(typeof o=="string"?o:o+"",void 0,Ei),M=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((i,s,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+o[r+1],o[0]);return new Si(e,o,Ei)},Go=(o,t)=>{if(wi)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=gt.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,o.appendChild(i)}},Xi=wi?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Cr(e)})(o):o;/**
|
|
14
|
+
* @license
|
|
15
|
+
* Copyright 2017 Google LLC
|
|
16
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
+
*/const{is:kr,defineProperty:Dr,getOwnPropertyDescriptor:Pr,getOwnPropertyNames:Tr,getOwnPropertySymbols:Mr,getPrototypeOf:Or}=Object,be=globalThis,Ji=be.trustedTypes,Ir=Ji?Ji.emptyScript:"",zt=be.reactiveElementPolyfillSupport,Je=(o,t)=>o,Zt={toAttribute(o,t){switch(t){case Boolean:o=o?Ir:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch(i){e=null}}return e}},Ko=(o,t)=>!kr(o,t),Qi={attribute:!0,type:String,converter:Zt,reflect:!1,hasChanged:Ko};var Vo,jo;(Vo=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(jo=be.litPropertyMetadata)!=null||(be.litPropertyMetadata=new WeakMap);class Ie extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Qi){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Dr(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){var n;const{get:s,set:r}=(n=Pr(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a}};return{get(){return s==null?void 0:s.call(this)},set(a){const l=s==null?void 0:s.call(this);r.call(this,a),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Qi}static _$Ei(){if(this.hasOwnProperty(Je("elementProperties")))return;const t=Or(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Je("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Je("properties"))){const e=this.properties,i=[...Tr(e),...Mr(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(Xi(s))}else t!==void 0&&e.push(Xi(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Go(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var r;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const n=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:Zt).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,e){var r;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const n=i.getPropertyOptions(s),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((r=n.converter)==null?void 0:r.fromAttribute)!==void 0?n.converter:Zt;this._$Em=s,this[s]=a.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,i){var s;if(t!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(t)),!((s=i.hasChanged)!=null?s:Ko)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){var s;this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(t)}_$ET(){return ut(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,a]of r)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],a)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}var Yo;Ie.elementStyles=[],Ie.shadowRootOptions={mode:"open"},Ie[Je("elementProperties")]=new Map,Ie[Je("finalized")]=new Map,zt==null||zt({ReactiveElement:Ie}),((Yo=be.reactiveElementVersions)!=null?Yo:be.reactiveElementVersions=[]).push("2.0.4");/**
|
|
18
|
+
* @license
|
|
19
|
+
* Copyright 2017 Google LLC
|
|
20
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
+
*/const Qe=globalThis,vt=Qe.trustedTypes,Zi=vt?vt.createPolicy("lit-html",{createHTML:o=>o}):void 0,Xo="$lit$",ge=`lit$${Math.random().toFixed(9).slice(2)}$`,Jo="?"+ge,Nr=`<${Jo}>`,De=document,et=()=>De.createComment(""),tt=o=>o===null||typeof o!="object"&&typeof o!="function",Ai=Array.isArray,zr=o=>Ai(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Ft=`[
|
|
22
|
+
\f\r]`,Ye=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,eo=/-->/g,to=/>/g,Ee=RegExp(`>|${Ft}(?:([^\\s"'>=/]+)(${Ft}*=${Ft}*(?:[^
|
|
23
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),io=/'/g,oo=/"/g,Qo=/^(?:script|style|textarea|title)$/i,$e=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),so=new WeakMap,Se=De.createTreeWalker(De,129);function Zo(o,t){if(!Ai(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zi!==void 0?Zi.createHTML(t):t}const Fr=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":t===3?"<math>":"",n=Ye;for(let a=0;a<e;a++){const l=o[a];let d,u,h=-1,f=0;for(;f<l.length&&(n.lastIndex=f,u=n.exec(l),u!==null);)f=n.lastIndex,n===Ye?u[1]==="!--"?n=eo:u[1]!==void 0?n=to:u[2]!==void 0?(Qo.test(u[2])&&(s=RegExp("</"+u[2],"g")),n=Ee):u[3]!==void 0&&(n=Ee):n===Ee?u[0]===">"?(n=s!=null?s:Ye,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?Ee:u[3]==='"'?oo:io):n===oo||n===io?n=Ee:n===eo||n===to?n=Ye:(n=Ee,s=void 0);const p=n===Ee&&o[a+1].startsWith("/>")?" ":"";r+=n===Ye?l+Nr:h>=0?(i.push(d),l.slice(0,h)+Xo+l.slice(h)+ge+p):l+ge+(h===-2?a:p)}return[Zo(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class it{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]=Fr(t,e);if(this.el=it.createElement(d,i),Se.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=Se.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(Xo)){const f=u[n++],p=s.getAttribute(h).split(ge),m=/([.?@])?(.*)/.exec(f);l.push({type:1,index:r,name:m[2],strings:p,ctor:m[1]==="."?$r:m[1]==="?"?Rr:m[1]==="@"?Hr:Dt}),s.removeAttribute(h)}else h.startsWith(ge)&&(l.push({type:6,index:r}),s.removeAttribute(h));if(Qo.test(s.tagName)){const h=s.textContent.split(ge),f=h.length-1;if(f>0){s.textContent=vt?vt.emptyScript:"";for(let p=0;p<f;p++)s.append(h[p],et()),Se.nextNode(),l.push({type:2,index:++r});s.append(h[f],et())}}}else if(s.nodeType===8)if(s.data===Jo)l.push({type:2,index:r});else{let h=-1;for(;(h=s.data.indexOf(ge,h+1))!==-1;)l.push({type:7,index:r}),h+=ge.length-1}r++}}static createElement(t,e){const i=De.createElement("template");return i.innerHTML=t,i}}function Re(o,t,e=o,i){var n,a,l;if(t===$e)return t;let s=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const r=tt(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=Re(o,s._$AS(o,t.values),s,i)),t}class Lr{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);Se.currentNode=s;let r=Se.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let u;l.type===2?u=new ct(r,r.nextSibling,this,t):l.type===1?u=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(u=new Br(r,this,t)),this._$AV.push(u),l=i[++a]}n!==(l==null?void 0:l.index)&&(r=Se.nextNode(),n++)}return Se.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 ct{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=q,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=Re(this,t,e),tt(t)?t===q||t==null||t===""?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==$e&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):zr(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!==q&&tt(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=it.createElement(Zo(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 Lr(s,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=so.get(t.strings);return e===void 0&&so.set(t.strings,e=new it(t)),e}k(t){Ai(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 ct(this.O(et()),this.O(et()),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=q,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=q}_$AI(t,e=this,i,s){const r=this.strings;let n=!1;if(r===void 0)t=Re(this,t,e,0),n=!tt(t)||t!==this._$AH&&t!==$e,n&&(this._$AH=t);else{const a=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=Re(this,a[i+l],e,l),d===$e&&(d=this._$AH[l]),n||(n=!tt(d)||d!==this._$AH[l]),d===q?t=q:t!==q&&(t+=(d!=null?d:"")+r[l+1]),this._$AH[l]=d}n&&!s&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class $r extends Dt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}class Rr extends Dt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==q)}}class Hr 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=Re(this,t,e,0))!=null?n:q)===$e)return;const i=this._$AH,s=t===q&&i!==q||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==q&&(i===q||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 Br{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){Re(this,t)}}const Lt=Qe.litHtmlPolyfillSupport;var Uo;Lt==null||Lt(it,ct),((Uo=Qe.litHtmlVersions)!=null?Uo:Qe.litHtmlVersions=[]).push("3.2.1");const Vr=(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 ct(t.insertBefore(et(),a),a,void 0,e!=null?e:{})}return s._$AI(o),s};/**
|
|
24
|
+
* @license
|
|
25
|
+
* Copyright 2017 Google LLC
|
|
26
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
+
*/class Ne extends Ie{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=Vr(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 $e}}var Wo;Ne._$litElement$=!0,Ne.finalized=!0,(Wo=globalThis.litElementHydrateSupport)==null||Wo.call(globalThis,{LitElement:Ne});const $t=globalThis.litElementPolyfillSupport;$t==null||$t({LitElement:Ne});var qo;((qo=globalThis.litElementVersions)!=null?qo:globalThis.litElementVersions=[]).push("4.1.1");/**
|
|
28
|
+
* @license
|
|
29
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
30
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
31
|
+
*/const jr=o=>class extends o{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,i,s){super.attributeChangedCallback(e,i,s),e==="theme"&&this._set_theme(s)}};/**
|
|
32
|
+
* @license
|
|
33
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
34
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
35
|
+
*/const es=[],ei=new Set,Ci=new Set;function ts(o){return o&&Object.prototype.hasOwnProperty.call(o,"__themes")}function Yr(o){return ts(customElements.get(o))}function Ur(o=[]){return[o].flat(1/0).filter(t=>t instanceof Si?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function is(o,t){return(o||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function os(o){return o.map(t=>t.cssText).join(`
|
|
36
|
+
`)}const xt="vaadin-themable-mixin-style";function Wr(o,t){const e=document.createElement("style");e.id=xt,e.textContent=os(o),t.content.appendChild(e)}function qr(o){if(!o.shadowRoot)return;const t=o.constructor;if(o instanceof Ne)[...o.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),Go(o.shadowRoot,t.elementStyles);else{const e=o.shadowRoot.getElementById(xt),i=t.prototype._template;e.textContent=i.content.getElementById(xt).textContent}}function Gr(o){ei.forEach(t=>{const e=t.deref();e instanceof o?qr(e):e||ei.delete(t)})}function ss(o){if(o.prototype instanceof Ne)o.elementStyles=o.finalizeStyles(o.styles);else{const t=o.prototype._template;t.content.getElementById(xt).textContent=os(o.getStylesForThis())}Ci.forEach(t=>{const e=customElements.get(t);e!==o&&e.prototype instanceof o&&ss(e)})}function Kr(o,t){const e=o.__themes;return!e||!t?!1:e.some(i=>i.styles.some(s=>t.some(r=>r.cssText===s.cssText)))}function j(o,t,e={}){t=Ur(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(o,t,e):es.push({themeFor:o,styles:t,include:e.include,moduleId:e.moduleId}),o&&Ci.forEach(i=>{if(is(o,i)&&Yr(i)){const s=customElements.get(i);Kr(s,t)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),ss(s),Gr(s)}})}function ti(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():es}function Xr(o=""){let t=0;return o.startsWith("lumo-")||o.startsWith("material-")?t=1:o.startsWith("vaadin-")&&(t=2),t}function rs(o){const t=[];return o.include&&[].concat(o.include).forEach(e=>{const i=ti().find(s=>s.moduleId===e);i?t.push(...rs(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`)},o.styles),t}function Jr(o){const t=`${o}-default-theme`,e=ti().filter(i=>i.moduleId!==t&&is(i.themeFor,o)).map(i=>Nt(dt({},i),{styles:[...rs(i),...i.styles],includePriority:Xr(i.moduleId)})).sort((i,s)=>s.includePriority-i.includePriority);return e.length>0?e:ti().filter(i=>i.moduleId===t)}const Pe=o=>class extends jr(o){constructor(){super(),ei.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Ci.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||ts(this)||Wr(this.getStylesForThis(),e)}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...[e].flat(1/0),...i]:i}static getStylesForThis(){const e=o.__themes||[],i=Object.getPrototypeOf(this.prototype),s=(i?i.constructor.__themes:[])||[];this.__themes=[...e,...s,...Jr(this.is)];const r=this.__themes.flatMap(n=>n.styles);return r.filter((n,a)=>a===r.lastIndexOf(n))}};/**
|
|
37
|
+
* @license
|
|
38
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
39
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
40
|
+
*/const Qr=(o,...t)=>{const e=document.createElement("style");e.id=o,e.textContent=t.map(i=>i.toString()).join(`
|
|
41
|
+
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},Ve=(o,...t)=>{Qr(`lumo-${o}`,t)};/**
|
|
42
|
+
* @license
|
|
43
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
44
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
45
|
+
*/const Zr=M`
|
|
46
|
+
:host {
|
|
47
|
+
--lumo-size-xs: 1.625rem;
|
|
48
|
+
--lumo-size-s: 1.875rem;
|
|
49
|
+
--lumo-size-m: 2.25rem;
|
|
50
|
+
--lumo-size-l: 2.75rem;
|
|
51
|
+
--lumo-size-xl: 3.5rem;
|
|
52
|
+
|
|
53
|
+
/* Icons */
|
|
54
|
+
--lumo-icon-size-s: 1.25em;
|
|
55
|
+
--lumo-icon-size-m: 1.5em;
|
|
56
|
+
--lumo-icon-size-l: 2.25em;
|
|
57
|
+
/* For backwards compatibility */
|
|
58
|
+
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
59
|
+
}
|
|
60
|
+
`;Ve("sizing-props",Zr);/**
|
|
61
|
+
* @license
|
|
62
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
63
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
64
|
+
*/const en=M`
|
|
65
|
+
:host {
|
|
66
|
+
/* Square */
|
|
67
|
+
--lumo-space-xs: 0.25rem;
|
|
68
|
+
--lumo-space-s: 0.5rem;
|
|
69
|
+
--lumo-space-m: 1rem;
|
|
70
|
+
--lumo-space-l: 1.5rem;
|
|
71
|
+
--lumo-space-xl: 2.5rem;
|
|
72
|
+
|
|
73
|
+
/* Wide */
|
|
74
|
+
--lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
|
|
75
|
+
--lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
|
|
76
|
+
--lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
|
|
77
|
+
--lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
|
|
78
|
+
--lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
|
|
79
|
+
|
|
80
|
+
/* Tall */
|
|
81
|
+
--lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
|
|
82
|
+
--lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
|
|
83
|
+
--lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
|
|
84
|
+
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
85
|
+
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
86
|
+
}
|
|
87
|
+
`;Ve("spacing-props",en);/**
|
|
88
|
+
* @license
|
|
89
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
90
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
91
|
+
*/const tn=M`
|
|
92
|
+
:host {
|
|
93
|
+
/* Border radius */
|
|
94
|
+
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
95
|
+
--lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
|
|
96
|
+
--lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
|
|
97
|
+
|
|
98
|
+
/* Shadow */
|
|
99
|
+
--lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
|
|
100
|
+
--lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
|
|
101
|
+
--lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
|
|
102
|
+
--lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
|
|
103
|
+
--lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
|
|
104
|
+
|
|
105
|
+
/* Clickable element cursor */
|
|
106
|
+
--lumo-clickable-cursor: default;
|
|
107
|
+
}
|
|
108
|
+
`;M`
|
|
109
|
+
html {
|
|
110
|
+
/* Button */
|
|
111
|
+
--vaadin-button-background: var(--lumo-contrast-5pct);
|
|
112
|
+
--vaadin-button-border: none;
|
|
113
|
+
--vaadin-button-border-radius: var(--lumo-border-radius-m);
|
|
114
|
+
--vaadin-button-font-size: var(--lumo-font-size-m);
|
|
115
|
+
--vaadin-button-font-weight: 500;
|
|
116
|
+
--vaadin-button-height: var(--lumo-size-m);
|
|
117
|
+
--vaadin-button-margin: var(--lumo-space-xs) 0;
|
|
118
|
+
--vaadin-button-min-width: calc(var(--vaadin-button-height) * 2);
|
|
119
|
+
--vaadin-button-padding: 0 calc(var(--vaadin-button-height) / 3 + var(--lumo-border-radius-m) / 2);
|
|
120
|
+
--vaadin-button-text-color: var(--lumo-primary-text-color);
|
|
121
|
+
--vaadin-button-primary-background: var(--lumo-primary-color);
|
|
122
|
+
--vaadin-button-primary-border: none;
|
|
123
|
+
--vaadin-button-primary-font-weight: 600;
|
|
124
|
+
--vaadin-button-primary-text-color: var(--lumo-primary-contrast-color);
|
|
125
|
+
--vaadin-button-tertiary-background: transparent !important;
|
|
126
|
+
--vaadin-button-tertiary-text-color: var(--lumo-primary-text-color);
|
|
127
|
+
--vaadin-button-tertiary-font-weight: 500;
|
|
128
|
+
--vaadin-button-tertiary-padding: 0 calc(var(--vaadin-button-height) / 6);
|
|
129
|
+
/* Checkbox */
|
|
130
|
+
--vaadin-checkbox-background: var(--lumo-contrast-20pct);
|
|
131
|
+
--vaadin-checkbox-background-hover: var(--lumo-contrast-30pct);
|
|
132
|
+
--vaadin-checkbox-border-radius: var(--lumo-border-radius-s);
|
|
133
|
+
--vaadin-checkbox-checkmark-char: var(--lumo-icons-checkmark);
|
|
134
|
+
--vaadin-checkbox-checkmark-char-indeterminate: '';
|
|
135
|
+
--vaadin-checkbox-checkmark-color: var(--lumo-primary-contrast-color);
|
|
136
|
+
--vaadin-checkbox-checkmark-size: calc(var(--vaadin-checkbox-size) + 2px);
|
|
137
|
+
--vaadin-checkbox-label-color: var(--lumo-body-text-color);
|
|
138
|
+
--vaadin-checkbox-label-font-size: var(--lumo-font-size-m);
|
|
139
|
+
--vaadin-checkbox-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs) var(--lumo-space-xs);
|
|
140
|
+
--vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
|
|
141
|
+
--vaadin-checkbox-disabled-checkmark-color: var(--lumo-contrast-30pct);
|
|
142
|
+
--vaadin-checkbox-disabled-background: var(--lumo-contrast-10pct);
|
|
143
|
+
/* Radio button */
|
|
144
|
+
--vaadin-radio-button-background: var(--lumo-contrast-20pct);
|
|
145
|
+
--vaadin-radio-button-background-hover: var(--lumo-contrast-30pct);
|
|
146
|
+
--vaadin-radio-button-dot-color: var(--lumo-primary-contrast-color);
|
|
147
|
+
--vaadin-radio-button-dot-size: 3px;
|
|
148
|
+
--vaadin-radio-button-label-color: var(--lumo-body-text-color);
|
|
149
|
+
--vaadin-radio-button-label-font-size: var(--lumo-font-size-m);
|
|
150
|
+
--vaadin-radio-button-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs)
|
|
151
|
+
var(--lumo-space-xs);
|
|
152
|
+
--vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
|
|
153
|
+
--vaadin-radio-button-disabled-background: var(--lumo-contrast-10pct);
|
|
154
|
+
--vaadin-radio-button-disabled-dot-color: var(--lumo-contrast-30pct);
|
|
155
|
+
--vaadin-selection-color: var(--lumo-primary-color);
|
|
156
|
+
--vaadin-selection-color-text: var(--lumo-primary-text-color);
|
|
157
|
+
--vaadin-input-field-border-radius: var(--lumo-border-radius-m);
|
|
158
|
+
--vaadin-focus-ring-color: var(--lumo-primary-color-50pct);
|
|
159
|
+
--vaadin-focus-ring-width: 2px;
|
|
160
|
+
/* Label */
|
|
161
|
+
--vaadin-input-field-label-color: var(--lumo-secondary-text-color);
|
|
162
|
+
--vaadin-input-field-focused-label-color: var(--lumo-primary-text-color);
|
|
163
|
+
--vaadin-input-field-hovered-label-color: var(--lumo-body-text-color);
|
|
164
|
+
--vaadin-input-field-label-font-size: var(--lumo-font-size-s);
|
|
165
|
+
--vaadin-input-field-label-font-weight: 500;
|
|
166
|
+
/* Helper */
|
|
167
|
+
--vaadin-input-field-helper-color: var(--lumo-secondary-text-color);
|
|
168
|
+
--vaadin-input-field-helper-font-size: var(--lumo-font-size-xs);
|
|
169
|
+
--vaadin-input-field-helper-font-weight: 400;
|
|
170
|
+
--vaadin-input-field-helper-spacing: 0.4em;
|
|
171
|
+
/* Error message */
|
|
172
|
+
--vaadin-input-field-error-color: var(--lumo-error-text-color);
|
|
173
|
+
--vaadin-input-field-error-font-size: var(--lumo-font-size-xs);
|
|
174
|
+
--vaadin-input-field-error-font-weight: 400;
|
|
175
|
+
/* Input field */
|
|
176
|
+
--vaadin-input-field-background: var(--lumo-contrast-10pct);
|
|
177
|
+
--vaadin-input-field-icon-color: var(--lumo-contrast-60pct);
|
|
178
|
+
--vaadin-input-field-icon-size: var(--lumo-icon-size-m);
|
|
179
|
+
--vaadin-input-field-invalid-background: var(--lumo-error-color-10pct);
|
|
180
|
+
--vaadin-input-field-invalid-hover-highlight: var(--lumo-error-color-50pct);
|
|
181
|
+
--vaadin-input-field-disabled-background: var(--lumo-contrast-5pct);
|
|
182
|
+
--vaadin-input-field-disabled-value-color: var(--lumo-disabled-text-color);
|
|
183
|
+
--vaadin-input-field-height: var(--lumo-size-m);
|
|
184
|
+
--vaadin-input-field-hover-highlight: var(--lumo-contrast-50pct);
|
|
185
|
+
--vaadin-input-field-placeholder-color: var(--lumo-secondary-text-color);
|
|
186
|
+
--vaadin-input-field-readonly-border: 1px dashed var(--lumo-contrast-30pct);
|
|
187
|
+
--vaadin-input-field-value-color: var(--lumo-body-text-color);
|
|
188
|
+
--vaadin-input-field-value-font-size: var(--lumo-font-size-m);
|
|
189
|
+
--vaadin-input-field-value-font-weight: 500;
|
|
190
|
+
}
|
|
191
|
+
`;Ve("style-props",tn);/**
|
|
192
|
+
* @license
|
|
193
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
194
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
195
|
+
*/const on=M`
|
|
196
|
+
:host {
|
|
197
|
+
/* Base (background) */
|
|
198
|
+
--lumo-base-color: #fff;
|
|
199
|
+
|
|
200
|
+
/* Tint */
|
|
201
|
+
--lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
|
|
202
|
+
--lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
|
|
203
|
+
--lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
|
|
204
|
+
--lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
|
|
205
|
+
--lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
|
|
206
|
+
--lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
|
|
207
|
+
--lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
|
|
208
|
+
--lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
|
|
209
|
+
--lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
|
|
210
|
+
--lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
|
|
211
|
+
--lumo-tint: #fff;
|
|
212
|
+
|
|
213
|
+
/* Shade */
|
|
214
|
+
--lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
|
|
215
|
+
--lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
|
|
216
|
+
--lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
|
|
217
|
+
--lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
|
|
218
|
+
--lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
|
|
219
|
+
--lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
|
|
220
|
+
--lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
|
|
221
|
+
--lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
|
|
222
|
+
--lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
|
|
223
|
+
--lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
|
|
224
|
+
--lumo-shade: hsl(214, 35%, 15%);
|
|
225
|
+
|
|
226
|
+
/* Contrast */
|
|
227
|
+
--lumo-contrast-5pct: var(--lumo-shade-5pct);
|
|
228
|
+
--lumo-contrast-10pct: var(--lumo-shade-10pct);
|
|
229
|
+
--lumo-contrast-20pct: var(--lumo-shade-20pct);
|
|
230
|
+
--lumo-contrast-30pct: var(--lumo-shade-30pct);
|
|
231
|
+
--lumo-contrast-40pct: var(--lumo-shade-40pct);
|
|
232
|
+
--lumo-contrast-50pct: var(--lumo-shade-50pct);
|
|
233
|
+
--lumo-contrast-60pct: var(--lumo-shade-60pct);
|
|
234
|
+
--lumo-contrast-70pct: var(--lumo-shade-70pct);
|
|
235
|
+
--lumo-contrast-80pct: var(--lumo-shade-80pct);
|
|
236
|
+
--lumo-contrast-90pct: var(--lumo-shade-90pct);
|
|
237
|
+
--lumo-contrast: var(--lumo-shade);
|
|
238
|
+
|
|
239
|
+
/* Text */
|
|
240
|
+
--lumo-header-text-color: var(--lumo-contrast);
|
|
241
|
+
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
242
|
+
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
243
|
+
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
244
|
+
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
245
|
+
|
|
246
|
+
/* Primary */
|
|
247
|
+
--lumo-primary-color: hsl(214, 100%, 48%);
|
|
248
|
+
--lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
|
|
249
|
+
--lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
|
|
250
|
+
--lumo-primary-text-color: hsl(214, 100%, 43%);
|
|
251
|
+
--lumo-primary-contrast-color: #fff;
|
|
252
|
+
|
|
253
|
+
/* Error */
|
|
254
|
+
--lumo-error-color: hsl(3, 85%, 48%);
|
|
255
|
+
--lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
|
|
256
|
+
--lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
|
|
257
|
+
--lumo-error-text-color: hsl(3, 89%, 42%);
|
|
258
|
+
--lumo-error-contrast-color: #fff;
|
|
259
|
+
|
|
260
|
+
/* Success */
|
|
261
|
+
--lumo-success-color: hsl(145, 72%, 30%);
|
|
262
|
+
--lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
|
|
263
|
+
--lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
|
|
264
|
+
--lumo-success-text-color: hsl(145, 85%, 25%);
|
|
265
|
+
--lumo-success-contrast-color: #fff;
|
|
266
|
+
|
|
267
|
+
/* Warning */
|
|
268
|
+
--lumo-warning-color: hsl(48, 100%, 50%);
|
|
269
|
+
--lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
|
|
270
|
+
--lumo-warning-text-color: hsl(32, 100%, 30%);
|
|
271
|
+
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/* forced-colors mode adjustments */
|
|
275
|
+
@media (forced-colors: active) {
|
|
276
|
+
html {
|
|
277
|
+
--lumo-disabled-text-color: GrayText;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
`;Ve("color-props",on);const sn=M`
|
|
281
|
+
[theme~='dark'] {
|
|
282
|
+
/* Base (background) */
|
|
283
|
+
--lumo-base-color: hsl(214, 35%, 21%);
|
|
284
|
+
|
|
285
|
+
/* Tint */
|
|
286
|
+
--lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
|
|
287
|
+
--lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
|
|
288
|
+
--lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
|
|
289
|
+
--lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
|
|
290
|
+
--lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
|
|
291
|
+
--lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
|
|
292
|
+
--lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
|
|
293
|
+
--lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
|
|
294
|
+
--lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
|
|
295
|
+
--lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
|
|
296
|
+
--lumo-tint: hsl(214, 100%, 98%);
|
|
297
|
+
|
|
298
|
+
/* Shade */
|
|
299
|
+
--lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
|
|
300
|
+
--lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
|
|
301
|
+
--lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
|
|
302
|
+
--lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
|
|
303
|
+
--lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
|
|
304
|
+
--lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
|
|
305
|
+
--lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
|
|
306
|
+
--lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
|
|
307
|
+
--lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
|
|
308
|
+
--lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
|
|
309
|
+
--lumo-shade: hsl(214, 33%, 13%);
|
|
310
|
+
|
|
311
|
+
/* Contrast */
|
|
312
|
+
--lumo-contrast-5pct: var(--lumo-tint-5pct);
|
|
313
|
+
--lumo-contrast-10pct: var(--lumo-tint-10pct);
|
|
314
|
+
--lumo-contrast-20pct: var(--lumo-tint-20pct);
|
|
315
|
+
--lumo-contrast-30pct: var(--lumo-tint-30pct);
|
|
316
|
+
--lumo-contrast-40pct: var(--lumo-tint-40pct);
|
|
317
|
+
--lumo-contrast-50pct: var(--lumo-tint-50pct);
|
|
318
|
+
--lumo-contrast-60pct: var(--lumo-tint-60pct);
|
|
319
|
+
--lumo-contrast-70pct: var(--lumo-tint-70pct);
|
|
320
|
+
--lumo-contrast-80pct: var(--lumo-tint-80pct);
|
|
321
|
+
--lumo-contrast-90pct: var(--lumo-tint-90pct);
|
|
322
|
+
--lumo-contrast: var(--lumo-tint);
|
|
323
|
+
|
|
324
|
+
/* Text */
|
|
325
|
+
--lumo-header-text-color: var(--lumo-contrast);
|
|
326
|
+
--lumo-body-text-color: var(--lumo-contrast-90pct);
|
|
327
|
+
--lumo-secondary-text-color: var(--lumo-contrast-70pct);
|
|
328
|
+
--lumo-tertiary-text-color: var(--lumo-contrast-50pct);
|
|
329
|
+
--lumo-disabled-text-color: var(--lumo-contrast-30pct);
|
|
330
|
+
|
|
331
|
+
/* Primary */
|
|
332
|
+
--lumo-primary-color: hsl(214, 90%, 48%);
|
|
333
|
+
--lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
|
|
334
|
+
--lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
|
|
335
|
+
--lumo-primary-text-color: hsl(214, 90%, 77%);
|
|
336
|
+
--lumo-primary-contrast-color: #fff;
|
|
337
|
+
|
|
338
|
+
/* Error */
|
|
339
|
+
--lumo-error-color: hsl(3, 79%, 49%);
|
|
340
|
+
--lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
|
|
341
|
+
--lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
|
|
342
|
+
--lumo-error-text-color: hsl(3, 100%, 80%);
|
|
343
|
+
|
|
344
|
+
/* Success */
|
|
345
|
+
--lumo-success-color: hsl(145, 72%, 30%);
|
|
346
|
+
--lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
|
|
347
|
+
--lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
|
|
348
|
+
--lumo-success-text-color: hsl(145, 85%, 46%);
|
|
349
|
+
|
|
350
|
+
/* Warning */
|
|
351
|
+
--lumo-warning-color: hsl(43, 100%, 48%);
|
|
352
|
+
--lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
|
|
353
|
+
--lumo-warning-text-color: hsl(45, 100%, 60%);
|
|
354
|
+
--lumo-warning-contrast-color: var(--lumo-shade-90pct);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
html {
|
|
358
|
+
color: var(--lumo-body-text-color);
|
|
359
|
+
background-color: var(--lumo-base-color);
|
|
360
|
+
color-scheme: light;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
[theme~='dark'] {
|
|
364
|
+
color: var(--lumo-body-text-color);
|
|
365
|
+
background-color: var(--lumo-base-color);
|
|
366
|
+
color-scheme: dark;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
h1,
|
|
370
|
+
h2,
|
|
371
|
+
h3,
|
|
372
|
+
h4,
|
|
373
|
+
h5,
|
|
374
|
+
h6 {
|
|
375
|
+
color: var(--lumo-header-text-color);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
a:where(:any-link) {
|
|
379
|
+
color: var(--lumo-primary-text-color);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
a:not(:any-link) {
|
|
383
|
+
color: var(--lumo-disabled-text-color);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
blockquote {
|
|
387
|
+
color: var(--lumo-secondary-text-color);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
code,
|
|
391
|
+
pre {
|
|
392
|
+
background-color: var(--lumo-contrast-10pct);
|
|
393
|
+
border-radius: var(--lumo-border-radius-m);
|
|
394
|
+
}
|
|
395
|
+
pre code {
|
|
396
|
+
background: transparent;
|
|
397
|
+
}
|
|
398
|
+
`;j("",sn,{moduleId:"lumo-color"});/**
|
|
399
|
+
* @license
|
|
400
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
401
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
402
|
+
*/const rn=M`
|
|
403
|
+
:host {
|
|
404
|
+
/* prettier-ignore */
|
|
405
|
+
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
406
|
+
|
|
407
|
+
/* Font sizes */
|
|
408
|
+
--lumo-font-size-xxs: 0.75rem;
|
|
409
|
+
--lumo-font-size-xs: 0.8125rem;
|
|
410
|
+
--lumo-font-size-s: 0.875rem;
|
|
411
|
+
--lumo-font-size-m: 1rem;
|
|
412
|
+
--lumo-font-size-l: 1.125rem;
|
|
413
|
+
--lumo-font-size-xl: 1.375rem;
|
|
414
|
+
--lumo-font-size-xxl: 1.75rem;
|
|
415
|
+
--lumo-font-size-xxxl: 2.5rem;
|
|
416
|
+
|
|
417
|
+
/* Line heights */
|
|
418
|
+
--lumo-line-height-xs: 1.25;
|
|
419
|
+
--lumo-line-height-s: 1.375;
|
|
420
|
+
--lumo-line-height-m: 1.625;
|
|
421
|
+
}
|
|
422
|
+
`,nn=M`
|
|
423
|
+
body,
|
|
424
|
+
:host {
|
|
425
|
+
font-family: var(--lumo-font-family);
|
|
426
|
+
font-size: var(--lumo-font-size-m);
|
|
427
|
+
line-height: var(--lumo-line-height-m);
|
|
428
|
+
-webkit-text-size-adjust: 100%;
|
|
429
|
+
-webkit-font-smoothing: antialiased;
|
|
430
|
+
-moz-osx-font-smoothing: grayscale;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
small,
|
|
434
|
+
[theme~='font-size-s'] {
|
|
435
|
+
font-size: var(--lumo-font-size-s);
|
|
436
|
+
line-height: var(--lumo-line-height-s);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
[theme~='font-size-xs'] {
|
|
440
|
+
font-size: var(--lumo-font-size-xs);
|
|
441
|
+
line-height: var(--lumo-line-height-xs);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
:where(h1, h2, h3, h4, h5, h6) {
|
|
445
|
+
font-weight: 600;
|
|
446
|
+
line-height: var(--lumo-line-height-xs);
|
|
447
|
+
margin-block: 0;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
:where(h1) {
|
|
451
|
+
font-size: var(--lumo-font-size-xxxl);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
:where(h2) {
|
|
455
|
+
font-size: var(--lumo-font-size-xxl);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
:where(h3) {
|
|
459
|
+
font-size: var(--lumo-font-size-xl);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
:where(h4) {
|
|
463
|
+
font-size: var(--lumo-font-size-l);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
:where(h5) {
|
|
467
|
+
font-size: var(--lumo-font-size-m);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
:where(h6) {
|
|
471
|
+
font-size: var(--lumo-font-size-xs);
|
|
472
|
+
text-transform: uppercase;
|
|
473
|
+
letter-spacing: 0.03em;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
p,
|
|
477
|
+
blockquote {
|
|
478
|
+
margin-top: 0.5em;
|
|
479
|
+
margin-bottom: 0.75em;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
a {
|
|
483
|
+
text-decoration: none;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
a:where(:any-link):hover {
|
|
487
|
+
text-decoration: underline;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
hr {
|
|
491
|
+
display: block;
|
|
492
|
+
align-self: stretch;
|
|
493
|
+
height: 1px;
|
|
494
|
+
border: 0;
|
|
495
|
+
padding: 0;
|
|
496
|
+
margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
|
|
497
|
+
background-color: var(--lumo-contrast-10pct);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
blockquote {
|
|
501
|
+
border-left: 2px solid var(--lumo-contrast-30pct);
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
b,
|
|
505
|
+
strong {
|
|
506
|
+
font-weight: 600;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/* RTL specific styles */
|
|
510
|
+
blockquote[dir='rtl'] {
|
|
511
|
+
border-left: none;
|
|
512
|
+
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
513
|
+
}
|
|
514
|
+
`;j("",nn,{moduleId:"lumo-typography"});Ve("typography-props",rn);/**
|
|
515
|
+
* @license
|
|
516
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
517
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
518
|
+
*/const ns=M`
|
|
519
|
+
:host {
|
|
520
|
+
top: var(--lumo-space-m);
|
|
521
|
+
right: var(--lumo-space-m);
|
|
522
|
+
bottom: var(--lumo-space-m);
|
|
523
|
+
left: var(--lumo-space-m);
|
|
524
|
+
/* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
|
|
525
|
+
/* stylelint-disable-next-line */
|
|
526
|
+
outline: 0px solid transparent;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
[part='overlay'] {
|
|
530
|
+
background-color: var(--lumo-base-color);
|
|
531
|
+
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
532
|
+
border-radius: var(--lumo-border-radius-m);
|
|
533
|
+
box-shadow:
|
|
534
|
+
0 0 0 1px var(--lumo-shade-5pct),
|
|
535
|
+
var(--lumo-box-shadow-m);
|
|
536
|
+
color: var(--lumo-body-text-color);
|
|
537
|
+
font-family: var(--lumo-font-family);
|
|
538
|
+
font-size: var(--lumo-font-size-m);
|
|
539
|
+
font-weight: 400;
|
|
540
|
+
line-height: var(--lumo-line-height-m);
|
|
541
|
+
letter-spacing: 0;
|
|
542
|
+
text-transform: none;
|
|
543
|
+
-webkit-text-size-adjust: 100%;
|
|
544
|
+
-webkit-font-smoothing: antialiased;
|
|
545
|
+
-moz-osx-font-smoothing: grayscale;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
[part='content'] {
|
|
549
|
+
padding: var(--lumo-space-xs);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
[part='backdrop'] {
|
|
553
|
+
background-color: var(--lumo-shade-20pct);
|
|
554
|
+
animation: 0.2s lumo-overlay-backdrop-enter both;
|
|
555
|
+
will-change: opacity;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
@keyframes lumo-overlay-backdrop-enter {
|
|
559
|
+
0% {
|
|
560
|
+
opacity: 0;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
:host([closing]) [part='backdrop'] {
|
|
565
|
+
animation: 0.2s lumo-overlay-backdrop-exit both;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
@keyframes lumo-overlay-backdrop-exit {
|
|
569
|
+
100% {
|
|
570
|
+
opacity: 0;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
@keyframes lumo-overlay-dummy-animation {
|
|
575
|
+
0% {
|
|
576
|
+
opacity: 1;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
100% {
|
|
580
|
+
opacity: 1;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
`;j("",ns,{moduleId:"lumo-overlay"});/**
|
|
584
|
+
* @license
|
|
585
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
586
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
587
|
+
*/const as=M`
|
|
588
|
+
:host([opening]),
|
|
589
|
+
:host([closing]) {
|
|
590
|
+
animation: 0.14s lumo-overlay-dummy-animation;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
[part='overlay'] {
|
|
594
|
+
will-change: opacity, transform;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
:host([opening]) [part='overlay'] {
|
|
598
|
+
animation: 0.1s lumo-menu-overlay-enter ease-out both;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
@keyframes lumo-menu-overlay-enter {
|
|
602
|
+
0% {
|
|
603
|
+
opacity: 0;
|
|
604
|
+
transform: translateY(-4px);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
:host([closing]) [part='overlay'] {
|
|
609
|
+
animation: 0.1s lumo-menu-overlay-exit both;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
@keyframes lumo-menu-overlay-exit {
|
|
613
|
+
100% {
|
|
614
|
+
opacity: 0;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
`;j("",as,{moduleId:"lumo-menu-overlay-core"});const an=M`
|
|
618
|
+
/* Small viewport (bottom sheet) styles */
|
|
619
|
+
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
620
|
+
@media (max-width: 450px), (max-height: 450px) {
|
|
621
|
+
:host {
|
|
622
|
+
top: 0 !important;
|
|
623
|
+
right: 0 !important;
|
|
624
|
+
bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
|
|
625
|
+
left: 0 !important;
|
|
626
|
+
align-items: stretch !important;
|
|
627
|
+
justify-content: flex-end !important;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
[part='overlay'] {
|
|
631
|
+
max-height: 50vh;
|
|
632
|
+
width: 100vw;
|
|
633
|
+
border-radius: 0;
|
|
634
|
+
box-shadow: var(--lumo-box-shadow-xl);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/* The content part scrolls instead of the overlay part, because of the gradient fade-out */
|
|
638
|
+
[part='content'] {
|
|
639
|
+
padding: 30px var(--lumo-space-m);
|
|
640
|
+
max-height: inherit;
|
|
641
|
+
box-sizing: border-box;
|
|
642
|
+
-webkit-overflow-scrolling: touch;
|
|
643
|
+
overflow: auto;
|
|
644
|
+
-webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
645
|
+
mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
[part='backdrop'] {
|
|
649
|
+
display: block;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/* Animations */
|
|
653
|
+
|
|
654
|
+
:host([opening]) [part='overlay'] {
|
|
655
|
+
animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
:host([closing]),
|
|
659
|
+
:host([closing]) [part='backdrop'] {
|
|
660
|
+
animation-delay: 0.14s;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
:host([closing]) [part='overlay'] {
|
|
664
|
+
animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
@keyframes lumo-mobile-menu-overlay-enter {
|
|
669
|
+
0% {
|
|
670
|
+
transform: translateY(150%);
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
@keyframes lumo-mobile-menu-overlay-exit {
|
|
675
|
+
100% {
|
|
676
|
+
transform: translateY(150%);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
`,ls=[ns,as,an];j("",ls,{moduleId:"lumo-menu-overlay"});const ln=M`
|
|
680
|
+
[part='overlay'] {
|
|
681
|
+
/*
|
|
682
|
+
Width:
|
|
683
|
+
date cell widths
|
|
684
|
+
+ month calendar side padding
|
|
685
|
+
+ year scroller width
|
|
686
|
+
*/
|
|
687
|
+
/* prettier-ignore */
|
|
688
|
+
width:
|
|
689
|
+
calc(
|
|
690
|
+
var(--lumo-size-m) * 7
|
|
691
|
+
+ var(--lumo-space-xs) * 2
|
|
692
|
+
+ 57px
|
|
693
|
+
);
|
|
694
|
+
height: 100%;
|
|
695
|
+
max-height: calc(var(--lumo-size-m) * 14);
|
|
696
|
+
overflow: hidden;
|
|
697
|
+
-webkit-tap-highlight-color: transparent;
|
|
698
|
+
flex-direction: column;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
[part='content'] {
|
|
702
|
+
padding: 0;
|
|
703
|
+
height: 100%;
|
|
704
|
+
overflow: hidden;
|
|
705
|
+
-webkit-mask-image: none;
|
|
706
|
+
mask-image: none;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
:host([top-aligned]) [part~='overlay'] {
|
|
710
|
+
margin-top: var(--lumo-space-xs);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
:host([bottom-aligned]) [part~='overlay'] {
|
|
714
|
+
margin-bottom: var(--lumo-space-xs);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
@media (max-width: 450px), (max-height: 450px) {
|
|
718
|
+
[part='overlay'] {
|
|
719
|
+
width: 100vw;
|
|
720
|
+
height: 70vh;
|
|
721
|
+
max-height: 70vh;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
`;j("vaadin-date-picker-overlay",[ls,ln],{moduleId:"lumo-date-picker-overlay"});const cn=M`
|
|
725
|
+
:host {
|
|
726
|
+
/* Sizing */
|
|
727
|
+
--lumo-button-size: var(--lumo-size-m);
|
|
728
|
+
min-width: var(--vaadin-button-min-width, calc(var(--_button-size) * 2));
|
|
729
|
+
height: var(--_button-size);
|
|
730
|
+
padding: var(--vaadin-button-padding, 0 calc(var(--_button-size) / 3 + var(--lumo-border-radius-m) / 2));
|
|
731
|
+
margin: var(--vaadin-button-margin, var(--lumo-space-xs) 0);
|
|
732
|
+
box-sizing: border-box;
|
|
733
|
+
/* Style */
|
|
734
|
+
font-family: var(--lumo-font-family);
|
|
735
|
+
font-size: var(--vaadin-button-font-size, var(--lumo-font-size-m));
|
|
736
|
+
font-weight: var(--vaadin-button-font-weight, 500);
|
|
737
|
+
color: var(--_lumo-button-text-color);
|
|
738
|
+
background: var(--_lumo-button-background);
|
|
739
|
+
border: var(--vaadin-button-border, none);
|
|
740
|
+
border-radius: var(--vaadin-button-border-radius, var(--lumo-border-radius-m));
|
|
741
|
+
cursor: var(--lumo-clickable-cursor);
|
|
742
|
+
-webkit-tap-highlight-color: transparent;
|
|
743
|
+
-webkit-font-smoothing: antialiased;
|
|
744
|
+
-moz-osx-font-smoothing: grayscale;
|
|
745
|
+
flex-shrink: 0;
|
|
746
|
+
--_button-size: var(--vaadin-button-height, var(--lumo-button-size));
|
|
747
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
748
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
749
|
+
/* Used by notification */
|
|
750
|
+
--_lumo-button-background: var(--vaadin-button-background, var(--lumo-contrast-5pct));
|
|
751
|
+
--_lumo-button-text-color: var(--vaadin-button-text-color, var(--lumo-primary-text-color));
|
|
752
|
+
--_lumo-button-primary-background: var(--vaadin-button-primary-background, var(--lumo-primary-color));
|
|
753
|
+
--_lumo-button-primary-text-color: var(--vaadin-button-primary-text-color, var(--lumo-primary-contrast-color));
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
/* Set only for the internal parts so we don't affect the host vertical alignment */
|
|
757
|
+
[part='label'],
|
|
758
|
+
[part='prefix'],
|
|
759
|
+
[part='suffix'] {
|
|
760
|
+
line-height: var(--lumo-line-height-xs);
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
[part='label'] {
|
|
764
|
+
padding: calc(var(--lumo-button-size) / 6) 0;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
:host([theme~='small']) {
|
|
768
|
+
font-size: var(--lumo-font-size-s);
|
|
769
|
+
--lumo-button-size: var(--lumo-size-s);
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
:host([theme~='large']) {
|
|
773
|
+
font-size: var(--lumo-font-size-l);
|
|
774
|
+
--lumo-button-size: var(--lumo-size-l);
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
/* For interaction states */
|
|
778
|
+
:host::before,
|
|
779
|
+
:host::after {
|
|
780
|
+
content: '';
|
|
781
|
+
/* We rely on the host always being relative */
|
|
782
|
+
position: absolute;
|
|
783
|
+
z-index: 1;
|
|
784
|
+
inset: 0;
|
|
785
|
+
background-color: currentColor;
|
|
786
|
+
border-radius: inherit;
|
|
787
|
+
opacity: 0;
|
|
788
|
+
pointer-events: none;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
/* Hover */
|
|
792
|
+
|
|
793
|
+
@media (any-hover: hover) {
|
|
794
|
+
:host(:hover)::before {
|
|
795
|
+
opacity: 0.02;
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
/* Active */
|
|
800
|
+
|
|
801
|
+
:host::after {
|
|
802
|
+
transition:
|
|
803
|
+
opacity 1.4s,
|
|
804
|
+
transform 0.1s;
|
|
805
|
+
filter: blur(8px);
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
:host([active])::before {
|
|
809
|
+
opacity: 0.05;
|
|
810
|
+
transition-duration: 0s;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
:host([active])::after {
|
|
814
|
+
opacity: 0.1;
|
|
815
|
+
transition-duration: 0s, 0s;
|
|
816
|
+
transform: scale(0);
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
/* Keyboard focus */
|
|
820
|
+
|
|
821
|
+
:host([focus-ring]) {
|
|
822
|
+
box-shadow:
|
|
823
|
+
0 0 0 calc(1px * var(--_focus-ring-gap-on, 0)) var(--_focus-ring-gap-color, var(--lumo-base-color)),
|
|
824
|
+
0 0 0 calc(var(--_focus-ring-width) + 1px * var(--_focus-ring-gap-on, 0)) var(--_focus-ring-color);
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
:host([theme~='primary'][focus-ring]) {
|
|
828
|
+
--_focus-ring-gap-on: 1;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
/* Types (primary, tertiary, tertiary-inline */
|
|
832
|
+
|
|
833
|
+
:host([theme~='tertiary']),
|
|
834
|
+
:host([theme~='tertiary-inline']) {
|
|
835
|
+
--_background: transparent !important;
|
|
836
|
+
background: var(--vaadin-button-tertiary-background, var(--_background));
|
|
837
|
+
min-width: 0;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
:host([theme~='tertiary']) {
|
|
841
|
+
border: var(--vaadin-button-tertiary-border, none);
|
|
842
|
+
color: var(--vaadin-button-tertiary-text-color, var(--lumo-primary-text-color));
|
|
843
|
+
font-weight: var(--vaadin-button-tertiary-font-weight, 500);
|
|
844
|
+
padding: var(--vaadin-button-tertiary-padding, 0 calc(var(--_button-size) / 6));
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
:host([theme~='tertiary-inline'])::before {
|
|
848
|
+
display: none;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
:host([theme~='tertiary-inline']) {
|
|
852
|
+
margin: 0;
|
|
853
|
+
height: auto;
|
|
854
|
+
padding: 0;
|
|
855
|
+
line-height: inherit;
|
|
856
|
+
font-size: inherit;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
:host([theme~='tertiary-inline']) [part='label'] {
|
|
860
|
+
padding: 0;
|
|
861
|
+
overflow: visible;
|
|
862
|
+
line-height: inherit;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
:host([theme~='primary']) {
|
|
866
|
+
background: var(--_lumo-button-primary-background);
|
|
867
|
+
border: var(--vaadin-button-primary-border, none);
|
|
868
|
+
color: var(--_lumo-button-primary-text-color);
|
|
869
|
+
font-weight: var(--vaadin-button-primary-font-weight, 600);
|
|
870
|
+
min-width: calc(var(--lumo-button-size) * 2.5);
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
:host([theme~='primary'])::before {
|
|
874
|
+
background-color: black;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
@media (any-hover: hover) {
|
|
878
|
+
:host([theme~='primary']:hover)::before {
|
|
879
|
+
opacity: 0.05;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
:host([theme~='primary'][active])::before {
|
|
884
|
+
opacity: 0.1;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
:host([theme~='primary'][active])::after {
|
|
888
|
+
opacity: 0.2;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
/* Colors (success, warning, error, contrast) */
|
|
892
|
+
|
|
893
|
+
:host([theme~='success']) {
|
|
894
|
+
color: var(--lumo-success-text-color);
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
:host([theme~='success'][theme~='primary']) {
|
|
898
|
+
background-color: var(--lumo-success-color);
|
|
899
|
+
color: var(--lumo-success-contrast-color);
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
:host([theme~='warning']) {
|
|
903
|
+
color: var(--lumo-warning-text-color);
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
:host([theme~='warning'][theme~='primary']) {
|
|
907
|
+
background-color: var(--lumo-warning-color);
|
|
908
|
+
color: var(--lumo-warning-contrast-color);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
:host([theme~='error']) {
|
|
912
|
+
color: var(--lumo-error-text-color);
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
:host([theme~='error'][theme~='primary']) {
|
|
916
|
+
background-color: var(--lumo-error-color);
|
|
917
|
+
color: var(--lumo-error-contrast-color);
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
:host([theme~='contrast']) {
|
|
921
|
+
color: var(--lumo-contrast);
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
:host([theme~='contrast'][theme~='primary']) {
|
|
925
|
+
background-color: var(--lumo-contrast);
|
|
926
|
+
color: var(--lumo-base-color);
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
/* Disabled state. Keep selectors after other color variants. */
|
|
930
|
+
|
|
931
|
+
:host([disabled]) {
|
|
932
|
+
pointer-events: none;
|
|
933
|
+
color: var(--lumo-disabled-text-color);
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
:host([theme~='primary'][disabled]) {
|
|
937
|
+
background-color: var(--lumo-contrast-30pct);
|
|
938
|
+
color: var(--lumo-base-color);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
:host([theme~='primary'][disabled]) [part] {
|
|
942
|
+
opacity: 0.7;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
/* Icons */
|
|
946
|
+
|
|
947
|
+
[part] ::slotted(vaadin-icon) {
|
|
948
|
+
display: inline-block;
|
|
949
|
+
width: var(--lumo-icon-size-m);
|
|
950
|
+
height: var(--lumo-icon-size-m);
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
954
|
+
[part] ::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
955
|
+
padding: 0.25em;
|
|
956
|
+
box-sizing: border-box !important;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
[part='prefix'] {
|
|
960
|
+
margin-left: -0.25em;
|
|
961
|
+
margin-right: 0.25em;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
[part='suffix'] {
|
|
965
|
+
margin-left: 0.25em;
|
|
966
|
+
margin-right: -0.25em;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
/* Icon-only */
|
|
970
|
+
|
|
971
|
+
:host([theme~='icon']:not([theme~='tertiary-inline'])) {
|
|
972
|
+
min-width: var(--lumo-button-size);
|
|
973
|
+
padding-left: calc(var(--lumo-button-size) / 4);
|
|
974
|
+
padding-right: calc(var(--lumo-button-size) / 4);
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
:host([theme~='icon']) [part='prefix'],
|
|
978
|
+
:host([theme~='icon']) [part='suffix'] {
|
|
979
|
+
margin-left: 0;
|
|
980
|
+
margin-right: 0;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
/* RTL specific styles */
|
|
984
|
+
|
|
985
|
+
:host([dir='rtl']) [part='prefix'] {
|
|
986
|
+
margin-left: 0.25em;
|
|
987
|
+
margin-right: -0.25em;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
:host([dir='rtl']) [part='suffix'] {
|
|
991
|
+
margin-left: -0.25em;
|
|
992
|
+
margin-right: 0.25em;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
:host([dir='rtl'][theme~='icon']) [part='prefix'],
|
|
996
|
+
:host([dir='rtl'][theme~='icon']) [part='suffix'] {
|
|
997
|
+
margin-left: 0;
|
|
998
|
+
margin-right: 0;
|
|
999
|
+
}
|
|
1000
|
+
`;j("vaadin-button",cn,{moduleId:"lumo-button"});j("vaadin-date-picker-year",M`
|
|
1001
|
+
:host([current]) [part='year-number'] {
|
|
1002
|
+
color: var(--lumo-primary-text-color);
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
:host(:not([current])) [part='year-number'],
|
|
1006
|
+
[part='year-separator'] {
|
|
1007
|
+
opacity: var(--_lumo-date-picker-year-opacity, 0.7);
|
|
1008
|
+
transition: 0.2s opacity;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
[part='year-number'],
|
|
1012
|
+
[part='year-separator'] {
|
|
1013
|
+
display: flex;
|
|
1014
|
+
align-items: center;
|
|
1015
|
+
justify-content: center;
|
|
1016
|
+
height: 50%;
|
|
1017
|
+
transform: translateY(-50%);
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
[part='year-separator']::after {
|
|
1021
|
+
color: var(--lumo-disabled-text-color);
|
|
1022
|
+
content: '\\2022';
|
|
1023
|
+
}
|
|
1024
|
+
`,{moduleId:"lumo-date-picker-year"});j("vaadin-date-picker-overlay-content",M`
|
|
1025
|
+
:host {
|
|
1026
|
+
position: relative;
|
|
1027
|
+
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
1028
|
+
background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
|
|
1029
|
+
background-size: 57px 100%;
|
|
1030
|
+
background-position: top right;
|
|
1031
|
+
background-repeat: no-repeat;
|
|
1032
|
+
cursor: default;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
::slotted([slot='months']) {
|
|
1036
|
+
/* Month calendar height:
|
|
1037
|
+
header height + margin-bottom
|
|
1038
|
+
+ weekdays height + margin-bottom
|
|
1039
|
+
+ date cell heights
|
|
1040
|
+
+ small margin between month calendars
|
|
1041
|
+
*/
|
|
1042
|
+
/* prettier-ignore */
|
|
1043
|
+
--vaadin-infinite-scroller-item-height:
|
|
1044
|
+
calc(
|
|
1045
|
+
var(--lumo-font-size-l) + var(--lumo-space-m)
|
|
1046
|
+
+ var(--lumo-font-size-xs) + var(--lumo-space-s)
|
|
1047
|
+
+ var(--lumo-size-m) * 6
|
|
1048
|
+
+ var(--lumo-space-s)
|
|
1049
|
+
);
|
|
1050
|
+
--vaadin-infinite-scroller-buffer-offset: 10%;
|
|
1051
|
+
-webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
|
|
1052
|
+
mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
|
|
1053
|
+
position: relative;
|
|
1054
|
+
margin-right: 57px;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
::slotted([slot='years']) {
|
|
1058
|
+
/* TODO get rid of fixed magic number */
|
|
1059
|
+
--vaadin-infinite-scroller-buffer-width: 97px;
|
|
1060
|
+
width: 57px;
|
|
1061
|
+
height: auto;
|
|
1062
|
+
top: 0;
|
|
1063
|
+
bottom: 0;
|
|
1064
|
+
font-size: var(--lumo-font-size-s);
|
|
1065
|
+
box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
|
|
1066
|
+
-webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
|
|
1067
|
+
mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
|
|
1068
|
+
cursor: var(--lumo-clickable-cursor);
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
::slotted([slot='years']:hover) {
|
|
1072
|
+
--_lumo-date-picker-year-opacity: 1;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
/* TODO unsupported selector */
|
|
1076
|
+
#scrollers {
|
|
1077
|
+
position: static;
|
|
1078
|
+
display: block;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
/* TODO fix this in vaadin-date-picker that it adapts to the width of the year scroller */
|
|
1082
|
+
:host([desktop]) ::slotted([slot='months']) {
|
|
1083
|
+
right: auto;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
/* Year scroller position indicator */
|
|
1087
|
+
::slotted([slot='years'])::before {
|
|
1088
|
+
border: none;
|
|
1089
|
+
width: 1em;
|
|
1090
|
+
height: 1em;
|
|
1091
|
+
background-color: var(--lumo-base-color);
|
|
1092
|
+
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
1093
|
+
transform: translate(-75%, -50%) rotate(45deg);
|
|
1094
|
+
border-top-right-radius: var(--lumo-border-radius-s);
|
|
1095
|
+
box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
|
|
1096
|
+
z-index: 1;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
[part='toolbar'] {
|
|
1100
|
+
padding: var(--lumo-space-s);
|
|
1101
|
+
border-bottom-left-radius: var(--lumo-border-radius-l);
|
|
1102
|
+
margin-right: 57px;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
[part='toolbar'] ::slotted(vaadin-button) {
|
|
1106
|
+
margin: 0;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
/* Narrow viewport mode (fullscreen) */
|
|
1110
|
+
|
|
1111
|
+
:host([fullscreen]) [part='toolbar'] {
|
|
1112
|
+
order: -1;
|
|
1113
|
+
background-color: var(--lumo-base-color);
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
:host([fullscreen]) [part='overlay-header'] {
|
|
1117
|
+
order: -2;
|
|
1118
|
+
height: var(--lumo-size-m);
|
|
1119
|
+
padding: var(--lumo-space-s);
|
|
1120
|
+
position: absolute;
|
|
1121
|
+
left: 0;
|
|
1122
|
+
right: 0;
|
|
1123
|
+
justify-content: center;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
:host([fullscreen]) [part='toggle-button'],
|
|
1127
|
+
:host([fullscreen]) [part='clear-button'],
|
|
1128
|
+
[part='overlay-header'] [part='label'] {
|
|
1129
|
+
display: none;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
/* Very narrow screen (year scroller initially hidden) */
|
|
1133
|
+
|
|
1134
|
+
[part='years-toggle-button'] {
|
|
1135
|
+
display: flex;
|
|
1136
|
+
align-items: center;
|
|
1137
|
+
height: var(--lumo-size-s);
|
|
1138
|
+
padding: 0 0.5em;
|
|
1139
|
+
border-radius: var(--lumo-border-radius-m);
|
|
1140
|
+
z-index: 3;
|
|
1141
|
+
color: var(--lumo-primary-text-color);
|
|
1142
|
+
font-weight: 500;
|
|
1143
|
+
-webkit-font-smoothing: antialiased;
|
|
1144
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
:host([years-visible]) [part='years-toggle-button'] {
|
|
1148
|
+
background-color: var(--lumo-primary-color);
|
|
1149
|
+
color: var(--lumo-primary-contrast-color);
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
/* TODO magic number (same as used for media-query in vaadin-date-picker-overlay-content) */
|
|
1153
|
+
@media screen and (max-width: 374px) {
|
|
1154
|
+
:host {
|
|
1155
|
+
background-image: none;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
[part='toolbar'],
|
|
1159
|
+
::slotted([slot='months']) {
|
|
1160
|
+
margin-right: 0;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
/* TODO make date-picker adapt to the width of the years part */
|
|
1164
|
+
::slotted([slot='years']) {
|
|
1165
|
+
--vaadin-infinite-scroller-buffer-width: 90px;
|
|
1166
|
+
width: 50px;
|
|
1167
|
+
background-color: var(--lumo-shade-5pct);
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
:host([years-visible]) ::slotted([slot='months']) {
|
|
1171
|
+
padding-left: 50px;
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
`,{moduleId:"lumo-date-picker-overlay-content"});j("vaadin-month-calendar",M`
|
|
1175
|
+
:host {
|
|
1176
|
+
-moz-user-select: none;
|
|
1177
|
+
-webkit-user-select: none;
|
|
1178
|
+
-webkit-tap-highlight-color: transparent;
|
|
1179
|
+
user-select: none;
|
|
1180
|
+
font-size: var(--lumo-font-size-m);
|
|
1181
|
+
color: var(--lumo-body-text-color);
|
|
1182
|
+
text-align: center;
|
|
1183
|
+
padding: 0 var(--lumo-space-xs);
|
|
1184
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
1185
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
1186
|
+
--_selection-color: var(--vaadin-selection-color, var(--lumo-primary-color));
|
|
1187
|
+
--_selection-color-text: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
/* Month header */
|
|
1191
|
+
|
|
1192
|
+
[part='month-header'] {
|
|
1193
|
+
color: var(--lumo-header-text-color);
|
|
1194
|
+
font-size: var(--lumo-font-size-l);
|
|
1195
|
+
line-height: 1;
|
|
1196
|
+
font-weight: 500;
|
|
1197
|
+
margin-bottom: var(--lumo-space-m);
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
/* Week days and numbers */
|
|
1201
|
+
|
|
1202
|
+
[part='weekdays'],
|
|
1203
|
+
[part='weekday'],
|
|
1204
|
+
[part='week-number'] {
|
|
1205
|
+
font-size: var(--lumo-font-size-xxs);
|
|
1206
|
+
line-height: 1;
|
|
1207
|
+
color: var(--lumo-secondary-text-color);
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
[part='weekdays'] {
|
|
1211
|
+
margin-bottom: var(--lumo-space-s);
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
[part='weekday']:empty,
|
|
1215
|
+
[part='week-number'] {
|
|
1216
|
+
width: var(--lumo-size-xs);
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
/* Date and week number cells */
|
|
1220
|
+
|
|
1221
|
+
[part~='date'],
|
|
1222
|
+
[part='week-number'] {
|
|
1223
|
+
box-sizing: border-box;
|
|
1224
|
+
display: inline-flex;
|
|
1225
|
+
align-items: center;
|
|
1226
|
+
justify-content: center;
|
|
1227
|
+
height: var(--lumo-size-m);
|
|
1228
|
+
position: relative;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
[part~='date'] {
|
|
1232
|
+
transition: color 0.1s;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
[part~='date']:not(:empty) {
|
|
1236
|
+
cursor: var(--lumo-clickable-cursor);
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
:host([week-numbers]) [part='weekday']:not(:empty),
|
|
1240
|
+
:host([week-numbers]) [part~='date'] {
|
|
1241
|
+
width: calc((100% - var(--lumo-size-xs)) / 7);
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
/* Today date */
|
|
1245
|
+
|
|
1246
|
+
[part~='date'][part~='today'] {
|
|
1247
|
+
color: var(--_selection-color-text);
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
/* Focused date */
|
|
1251
|
+
|
|
1252
|
+
[part~='date']::before {
|
|
1253
|
+
content: '';
|
|
1254
|
+
position: absolute;
|
|
1255
|
+
z-index: -1;
|
|
1256
|
+
top: 50%;
|
|
1257
|
+
left: 50%;
|
|
1258
|
+
transform: translate(-50%, -50%);
|
|
1259
|
+
min-width: 2em;
|
|
1260
|
+
min-height: 2em;
|
|
1261
|
+
width: 80%;
|
|
1262
|
+
height: 80%;
|
|
1263
|
+
max-height: 100%;
|
|
1264
|
+
max-width: 100%;
|
|
1265
|
+
border-radius: var(--lumo-border-radius-m);
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
[part~='date'][part~='focused']::before {
|
|
1269
|
+
box-shadow:
|
|
1270
|
+
0 0 0 1px var(--lumo-base-color),
|
|
1271
|
+
0 0 0 calc(var(--_focus-ring-width) + 1px) var(--_focus-ring-color);
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
:host(:not([focused])) [part~='date'][part~='focused']::before {
|
|
1275
|
+
animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
@keyframes vaadin-date-picker-month-calendar-focus-date {
|
|
1279
|
+
50% {
|
|
1280
|
+
box-shadow:
|
|
1281
|
+
0 0 0 1px var(--lumo-base-color),
|
|
1282
|
+
0 0 0 calc(var(--_focus-ring-width) + 1px) transparent;
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
[part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::before {
|
|
1287
|
+
background-color: var(--lumo-primary-color-10pct);
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
[part~='date'][part~='selected'] {
|
|
1291
|
+
color: var(--lumo-primary-contrast-color);
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
[part~='date'][part~='selected']::before {
|
|
1295
|
+
background-color: var(--_selection-color);
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
[part~='date'][part~='disabled'] {
|
|
1299
|
+
color: var(--lumo-disabled-text-color);
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
@media (pointer: coarse) {
|
|
1303
|
+
[part~='date']:hover:not([part~='selected'])::before,
|
|
1304
|
+
:host(:not([focus-ring])) [part~='focused']:not([part~='selected'])::before {
|
|
1305
|
+
display: none;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
[part~='date']:not(:empty):not([part~='disabled']):active::before {
|
|
1309
|
+
display: block;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
:host(:not([focus-ring])) [part~='date'][part~='selected']::before {
|
|
1313
|
+
box-shadow: none;
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
/* Disabled */
|
|
1317
|
+
|
|
1318
|
+
:host([disabled]) * {
|
|
1319
|
+
color: var(--lumo-disabled-text-color) !important;
|
|
1320
|
+
}
|
|
1321
|
+
`,{moduleId:"lumo-month-calendar"});j("vaadin-input-container",M`
|
|
1322
|
+
:host {
|
|
1323
|
+
background: var(--_background);
|
|
1324
|
+
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
1325
|
+
font-weight: var(--vaadin-input-field-value-font-weight, 500);
|
|
1326
|
+
line-height: 1;
|
|
1327
|
+
position: relative;
|
|
1328
|
+
cursor: text;
|
|
1329
|
+
box-sizing: border-box;
|
|
1330
|
+
border-radius:
|
|
1331
|
+
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
|
|
1332
|
+
var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
|
|
1333
|
+
var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
|
|
1334
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
|
|
1335
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
|
|
1336
|
+
/* Fallback */
|
|
1337
|
+
--_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
|
|
1338
|
+
--_input-height: var(--lumo-text-field-size, var(--lumo-size-m));
|
|
1339
|
+
/* Default values */
|
|
1340
|
+
--_background: var(--vaadin-input-field-background, var(--lumo-contrast-10pct));
|
|
1341
|
+
--_hover-highlight: var(--vaadin-input-field-hover-highlight, var(--lumo-contrast-50pct));
|
|
1342
|
+
--_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
|
|
1343
|
+
--_icon-color: var(--vaadin-input-field-icon-color, var(--lumo-contrast-60pct));
|
|
1344
|
+
--_icon-size: var(--vaadin-input-field-icon-size, var(--lumo-icon-size-m));
|
|
1345
|
+
--_invalid-background: var(--vaadin-input-field-invalid-background, var(--lumo-error-color-10pct));
|
|
1346
|
+
--_invalid-hover-highlight: var(--vaadin-input-field-invalid-hover-highlight, var(--lumo-error-color-50pct));
|
|
1347
|
+
--_disabled-background: var(--vaadin-input-field-disabled-background, var(--lumo-contrast-5pct));
|
|
1348
|
+
--_disabled-value-color: var(--vaadin-input-field-disabled-value-color, var(--lumo-disabled-text-color));
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
:host([dir='rtl']) {
|
|
1352
|
+
border-radius:
|
|
1353
|
+
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
1354
|
+
var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
|
|
1355
|
+
var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
|
|
1356
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
|
|
1357
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
/* Used for hover and activation effects */
|
|
1361
|
+
:host::after {
|
|
1362
|
+
content: '';
|
|
1363
|
+
position: absolute;
|
|
1364
|
+
inset: 0;
|
|
1365
|
+
border-radius: inherit;
|
|
1366
|
+
pointer-events: none;
|
|
1367
|
+
background: var(--_hover-highlight);
|
|
1368
|
+
opacity: 0;
|
|
1369
|
+
transition:
|
|
1370
|
+
transform 0.15s,
|
|
1371
|
+
opacity 0.2s;
|
|
1372
|
+
transform-origin: 100% 0;
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
::slotted(:not([slot$='fix'])) {
|
|
1376
|
+
cursor: inherit;
|
|
1377
|
+
min-height: var(--vaadin-input-field-height, var(--_input-height));
|
|
1378
|
+
padding: 0 0.25em;
|
|
1379
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
|
|
1380
|
+
-webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
1381
|
+
mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
/* Read-only */
|
|
1385
|
+
:host([readonly]) {
|
|
1386
|
+
color: var(--lumo-secondary-text-color);
|
|
1387
|
+
background-color: transparent;
|
|
1388
|
+
cursor: default;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
:host([readonly])::after {
|
|
1392
|
+
background-color: transparent;
|
|
1393
|
+
opacity: 1;
|
|
1394
|
+
border: var(--vaadin-input-field-readonly-border, 1px dashed var(--lumo-contrast-30pct));
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
/* Disabled */
|
|
1398
|
+
:host([disabled]) {
|
|
1399
|
+
background: var(--_disabled-background);
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
:host([disabled]) ::slotted(:not([slot$='fix'])) {
|
|
1403
|
+
-webkit-text-fill-color: var(--_disabled-value-color);
|
|
1404
|
+
color: var(--_disabled-value-color);
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
/* Invalid */
|
|
1408
|
+
:host([invalid]) {
|
|
1409
|
+
background: var(--_invalid-background);
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
:host([invalid]:not([readonly]))::after {
|
|
1413
|
+
background: var(--_invalid-hover-highlight);
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
/* Slotted icons */
|
|
1417
|
+
::slotted(vaadin-icon) {
|
|
1418
|
+
color: var(--_icon-color);
|
|
1419
|
+
width: var(--_icon-size);
|
|
1420
|
+
height: var(--_icon-size);
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
1424
|
+
::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
1425
|
+
padding: 0.25em;
|
|
1426
|
+
box-sizing: border-box !important;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
/* Text align */
|
|
1430
|
+
:host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1431
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
@-moz-document url-prefix() {
|
|
1435
|
+
:host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1436
|
+
mask-image: var(--_lumo-text-field-overflow-mask-image);
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
:host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
|
|
1441
|
+
text-align: start;
|
|
1442
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
:host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
|
|
1446
|
+
text-align: center;
|
|
1447
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
:host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
|
|
1451
|
+
text-align: end;
|
|
1452
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
@-moz-document url-prefix() {
|
|
1456
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
1457
|
+
:host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
|
|
1458
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
@-moz-document url-prefix() {
|
|
1463
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
1464
|
+
:host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
|
|
1465
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
/* RTL specific styles */
|
|
1470
|
+
:host([dir='rtl'])::after {
|
|
1471
|
+
transform-origin: 0% 0;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
:host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1475
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
:host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1479
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
:host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1483
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
@-moz-document url-prefix() {
|
|
1487
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
1488
|
+
:host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1489
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
@-moz-document url-prefix() {
|
|
1494
|
+
/* Firefox is smart enough to align overflowing text to right */
|
|
1495
|
+
:host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
|
|
1496
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
`,{moduleId:"lumo-input-container"});/**
|
|
1500
|
+
* @license
|
|
1501
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1502
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1503
|
+
*/const dn=M`
|
|
1504
|
+
@font-face {
|
|
1505
|
+
font-family: 'lumo-icons';
|
|
1506
|
+
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABHAAAsAAAAAI6AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuNY21hcAAAAYgAAAD+AAADymne8hxnbHlmAAACiAAAC+gAABioIzlOlWhlYWQAAA5wAAAAMAAAADZa/6SsaGhlYQAADqAAAAAdAAAAJAbpA4BobXR4AAAOwAAAABAAAAC0q+AAAGxvY2EAAA7QAAAAXAAAAFyF7o1GbWF4cAAADywAAAAfAAAAIAFMAXBuYW1lAAAPTAAAATEAAAIuUUJZCHBvc3QAABCAAAABPQAAAgfdkltveJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+xDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mEO+p/FEMUcxDANKMwIkgMABvgMMAB4nO3SV26EMABF0UsZpjG9d6Y3FpgF5StLYxMTP16WEUvHV1gGIQzQAJKgDFKIfojQ+A6rUb2e0KnXU77qPanWq/LzCXOkOVyn9RyHvWl4YkaTFu1wX5ecHn0GDBkxZsKUGXMWLFmxZsOWHXsOFBw5cebClRt3Hjx58dZ7RRn/I9cUF39Xpb691acRG2piOtUqNZ1P1TCdeJUZatNQW4baNtSO6U+ouoaam96u6hlq31AHhjo01JGhjg11YqhTQ50Z6txQF4a6NNSVoa4NdWOoW0PdGereUA+GWhjq0VBPhno21IuhXg31Zqh3Q30Y6tNQX4b6NtTSKH8BOIRpQQAAeJy1WH1sW9UVv+fG9vPz+7Bf/N6zHcd2/J04jbP6s0lap4kDpB9JWzUUCqxNgaHxpTI6hNhUNLVr17HSISb2D2iAJrWb6FTWahNQdQxRvmHamAR0qibE1E18CG3QaVNFvJ17n+3YIf1AiMQ679x77j3v3HPPPed3H7ER/OsYpw8TmQRIiuQJ8RZK+WjO1B3xaCzla21orY10a+OQ6aHTHtP0zB31mBs1GZ6RNU2uXc7oPL+xdRS9R9X1oK4fVfijdsBqvqF6vd1eLzPrYrYZ57WteF7bPDIc5+ZcJnta+S9i2Vfhs4MaMwZNQmO0Vv7gF/MZcNsCcJp4sJFSwYyAmRuFCmTBDRBUkwGqnlViyjmVBpLqaXhNpt0J5V1JOqMkuqn8WkMHvZX+iOlImiqkBiFVYDrCqINulmkwKb8ry2fkZBBn7FcTlk4ZdfpRZ9MOesLSAakKt0N3g4p2jAL8eIEOOqom/U0lgQRXUl8LtXM7HFkojUIpF0ErVBhcZC1vtyjtpsqr83a8RVcSH+ool8LgcIMjNohmVCACuDs506BdO6WIQeXjUsh1XKZGRNpp9piv3+Givoh00OU6KEV81HUHTLtN093Q+YGlE3wLHWRtMNy9XWqdLm2HKbaNsGzhu+41eswFOjE6WKSk2/1Wpt+qHeM6phbohmVmj3GvpdcVkiy9zbXfzHVqKuDB0IR2P6ZpF+D7dy6YC/9svGmBE5hKB9+X2+hh4iYRMkhGyTqyFc9APmeGQHf043tWQKHkizmwaY5AroTNVJzJDc2SFzUu92kOLsdmKu77vByb8/IjtxmhkMFISRBFISO4XMLJlj4XgGuRXtaHw2FLyHifdSOpisIhJjgkiPBAyJh7lfXTkhEadwk1mUngrOC6MazX7mASeEAPV1FyjEumBOaEDu4DP/ogRDKkiLEV1woVyMeLLKJCEM+FwdCwL4XLcRgdbfkhbzS8BNvXDKzNQiAWgOzagTXF1Eyq+Ci6/TPm/JrNY/59p1epKN4jQFGe0fx+LTMwNVCrAU2VSqnaKYzIiGmWe2Rvp9KDJhncrjLaFce8VCUbyQ1kB9lNfkJ+To6R58mfyd/Ip9ABXohDHqqwEW7A2Mij1ehntLu+h8xMtocjUJcYwoLdtYafv/1Vjy8vjLaLtBfOt3/B931Rexa24e5zstgnyqvZHs69zuhq3vFgRpQVJyN7FuE++RLSeW4xMi+t6Zeo5sIK6S5dlGVRD2hWnGoB3j7OV3lesvNLic8tOnLRSRfRdOna63VJp/1WbYs5dFZjy1AqpGICQEWKmNI+CZNoVTJ7pNop+IZkRrBHgnEmqr3TrEsfw1Gi8LqE+S1aV0SNNwXVVVvuUoU3ld6TLwmditIpvKTU50zSzWwO1h0rL8awnulwTXMYrGDT4aQ1fb4GPkyv5vMEh5Vec6yw0AMXnfcx1l/rfVZaKLDi0W4j/HfeyGZuHOf1IUGW1udizU2leXY0OmLpVDpVKJfKpZzPRKHgEBzpXAUKWYipoIeBdl3JfLZVBizEqWun1i4ZGFiyduq3DebayXsmJ+95gBG4+Urm1a2SdpKV57lP2wZyZqI+FAlfUtO+NCmgdWhMOS1gDY+jHWnBhwjBQLMEXxmLbx6t9JXTWDLtsSxgisfErqvQMbbBoywZmeyLeWe8OWNydFDxzMx4lMGRtX0xN3YFJkeW+O0bascGNwwObtjCCOzrzAVWjSwN2K9cpyn9o5cZOXMmkAuM85EbNHnJyHhfLLCnPhxJYw9eoIMkyC3l+4ZuY5ig7lW2oYUynDgg+Xrk+++Xe3zSgRYetnyuy+KbfjiB+GAAtZ8HHXmtijZfFFgrujhmOs2qkXvuSV6WqA1WLYqhPHOfsa26rklKFqbAGL2dOIlGurB6LWFVFd/KoBBaYTFYVBs93hZRFlrG5Ex4NVFIJguJVvqnBW2kNNvFGx90YUcSEvyZSMDeZjc0xYlEYy8+hHcWx9YrZOaPPyCGepP5Q34aXnGBr8d1QhSf4yjtiebZqNJfEYl4SY6dDRb8WSguLZW9ZQtBpoW4hX0QMyB2KmsYcOh8HMQxBn288oZ6BXV0GOq/ClKsC6T8g9X3OFKZNkJrYkOx2lEk+KNDy953+wGHXuGGzhGZ+uLK8FVrQkbtKBv+9EztU2sgTCNpvXMdJjqJ4tkdw+x00dPKkZ1QR254x7GQoFmvfakSnL3gCc5nREly2mN2pyTLMacMipNT7YInGU7JzlN2p9N+yinXTirOKEvPUafSWMNDmCf9pIQYaG19DSxKGqvAQ+xg60iabEm5MheUU2n+HxO4TDDbjnw6xxK8QzfhbHXq8pWVqanKysun9s6ztdt7sivGqruqYyuyPS6Hw9XehGt6q+l0dT0jvaFMZjiTuTHo7+vdtHJTb58/2ML+IxHt9/n9vv5owiWKrrbWD+sakKxhKoYzxF5f7y9INxki42QNuYrVFDPfvqxyY83xWNMV+ZxPSMWb62W+wPSCJwkDDl1WZOGW84nAEo4A7HjB/uWmOdayRFnKjazi668u/ajJlUd87aPk048Crlu4j1Oh9gxdL3Z1inNPIt2xvKNlsU4hn54Z5Y6YbTDu9hHOvkcFAb35fU6hNovKOrtQmcvbNV9/Ntfv5xf4atDWOOTX6CSHZ08xujhPs51+f9zvf1YLIGoPPKvxVh0TSLAXzzUBFiXs7GJVB7vH5/PAXznd4+vx4a95h3qI/oYIpIdMkA1kC7kVLS3GhWI5bwj1fIaVKG/Ei5gXWOjhtcJbzFthaMQrwIcIRj0ppvO6yV95icu9j/YPDNySWp7w+kOr95R1RfGpfVlDVhS/2geJ5Umv2mn0rkxBvzvgdisndJXaVF1X5z5jdHGe2n/QnYo8+b2uaMivhowgjYcLnVqnrEpQezsieyVZ6ooETbdJO6ip+cORLpes6BL82/qg8VHbo45B/vch/YQeJX28QvEANR3sQhxh+TcMCEd4l8BKF7uID7KM05tRYlIHHXY63YIi2fXQyj5XSBbcMeewKLpttkJ2Syz33YJfDdJdSYkqHbYb3VHRJgTV8c0TAy67YHeK7htwOKWax5co7Do8Pfh1tKdx1g5j9o6TZeQyMo27FuW3vbYsbY/Op3AG06DMKionRlpgHzCEeMmLU5opRrCyS670RzppZeW5p/iT3jL3lB4O63QS6dzzh8SAtOqwGJK3bv+lGJTWbr++471wsVKMRJCEK5H+cLg/Qp+IDsdqs7HhKD7hMXyyrD/Li8RjRqimHhI7HP2vSDZn9brplySb0L9dgpURSwmSiBFhilrwB8OA9gZ29NkRO/669parW9e7XZDxwvgRu+SE7zgl+xG5p/HtRqJ3cdwSZwsbwTA1WT3jEdyPN0sWxvDGy+xovIzHosnwc9LePf9tywun0fMkWaFYZbB4oovRq8VyKYUBkMVXqVhBHSylQ0wanvla3+rQ1XbR8ZzstYOo2Mf7vjk8ftcGDWxdSdXx0cAVveHg1TZFtEOn8ntBBFs11V++vuLUQ5qz+U6d/oUjpGIdNjOQhJXNqn5YCS1Yy5PofLGEs6Js2yOKe2yyOLxtaGjbt7cNIURCEDdWfaQ6lurtRYbePCuItv1iUNxvE4Vdw2zQ0LZhdv2fxjHp5uAmdlBpopHXoJGU8e6BRc0yi+PztkaHTRRrW1m2hcfFLlEUzzD+DGczjEVCg9jEQZhFcdAL2DjD+DPiSWQzjM2I89g5RXdxfECS+CIWy1hTGmFs6EIbkv/pbtkfU3aPrZ+4c2Lizn07qufym/L5TTdtyuU2/We3HPeDsjtb3bGPSSfW31aX3LQpX/d9sL7fWYpRJPBbCJavYjrFjj0rT2GWCZjf6Ytffr8beXl/HYeyGwJiIK8FLDHbfo65xGz7YCSRqCQSkbbHI5eUU5X4sjj+zrU9aHnRlEnrd7YGptd0x2Jf/RbH9PAiovadckSnEsJ661OgPFuH9B4O6e202vIN0h9xHXSJh1wRP5Vqv1uI6Wn9Gxmrwzqrii1gqhEscJanuAlGas+s2/uzvetgS72NpHZ6aHbZstmh/wPq1seEeJxjYGRgYADi31ySEvH8Nl8ZuJlfAEUYalQ3NCLo/6+ZpzLdAnI5GJhAogAiBgraeJxjYGRgYA76nwUkXzAAAfNUBkYGVKALAFb4A3EAAAB4nGNgYGBgfjG0MAAMzihlAAAAAABOAJoA6AEKASwBTgFwAZoBxAHuAhoCnALoBJoEvATWBPIFDgUqBXoF0AX+BkQGlga4BwgHagfiCGoIpAi8CVAJmAoQCiwKVgqQCtYLGAtOC4gL6AwuDFR4nGNgZGBg0GVMYRBlAAEmIOYCQgaG/2A+AwAYygG+AHicbZE9TsMwGIbf9A/RSggEYmHxAgtq+jN2ZGj3Dt3T1GlTOXHkuBW9AyfgEByCgTNwCA7BW/NJlVBtyd/jx+8XKwmAa3whwnFE6Ib1OBq44O6Pm6Qb4Rb5QbiNHh6FO/RD4S6eMRHu4RaaT4halzR3eBVu4Apvwk36d+EW+UO4jXt8Cnfov4W7WOBHuIen6MXsCtvPU1vWc73emcSdxIkW2tW5LdUoHp7kTJfaJV6v1PKg6v167H2mMmcLNbWl18ZYVTm71amPN95Xk8EgEx+ntoDBDgUs+siRspaoMef7rukNEriziXNuwS7Hmoe9wggxv+e55IzJMqQTeNYV00scuNbY8+YxrUfGfcaMZb/CNPQe04bT0lThbEuT0sfYhK6K/23Amf3Lx+H24hcj4GScAAAAeJxtjuduwzAMhH2NnTqOk+6993TfSZFY24giGZTVon36eiRFf5SAiO/A05HBWtBXEvxfGdYwQIgIQ6wjxggJxkgxwRQb2MQWtrGDXexhHwc4xBGOcYJTnOEcF7jEFa5xg1vc4R4PeMQTnvGCV2R4C1Khy9xkkkxNnPRC03s97pHLvKgTYXJNmbKfZom9o8POEffsq0Qw28+ltcPe2uHS2rGvRjPBmSwE1+GMtI6l0GSU4JEsSM4XgudpQx9sTRf3K9rAyUr0962UryKprZwPpM0jyda5uP2qrVBjxSLPCmGUplixrdpBSKqsI2oO4gF9Udq8TJVOzDSpcEHGR4vSeJdaVsSkMl26OqoKa6jttQ0rLb6a5l3YjO2QqV01YXLlNy2XDR0JlkXojbJTb/5GDX3V+kPviIPgB9AUks0AAAA=)
|
|
1507
|
+
format('woff');
|
|
1508
|
+
font-weight: normal;
|
|
1509
|
+
font-style: normal;
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
html {
|
|
1513
|
+
--lumo-icons-align-center: '\\ea01';
|
|
1514
|
+
--lumo-icons-align-left: '\\ea02';
|
|
1515
|
+
--lumo-icons-align-right: '\\ea03';
|
|
1516
|
+
--lumo-icons-angle-down: '\\ea04';
|
|
1517
|
+
--lumo-icons-angle-left: '\\ea05';
|
|
1518
|
+
--lumo-icons-angle-right: '\\ea06';
|
|
1519
|
+
--lumo-icons-angle-up: '\\ea07';
|
|
1520
|
+
--lumo-icons-arrow-down: '\\ea08';
|
|
1521
|
+
--lumo-icons-arrow-left: '\\ea09';
|
|
1522
|
+
--lumo-icons-arrow-right: '\\ea0a';
|
|
1523
|
+
--lumo-icons-arrow-up: '\\ea0b';
|
|
1524
|
+
--lumo-icons-bar-chart: '\\ea0c';
|
|
1525
|
+
--lumo-icons-bell: '\\ea0d';
|
|
1526
|
+
--lumo-icons-calendar: '\\ea0e';
|
|
1527
|
+
--lumo-icons-checkmark: '\\ea0f';
|
|
1528
|
+
--lumo-icons-chevron-down: '\\ea10';
|
|
1529
|
+
--lumo-icons-chevron-left: '\\ea11';
|
|
1530
|
+
--lumo-icons-chevron-right: '\\ea12';
|
|
1531
|
+
--lumo-icons-chevron-up: '\\ea13';
|
|
1532
|
+
--lumo-icons-clock: '\\ea14';
|
|
1533
|
+
--lumo-icons-cog: '\\ea15';
|
|
1534
|
+
--lumo-icons-cross: '\\ea16';
|
|
1535
|
+
--lumo-icons-download: '\\ea17';
|
|
1536
|
+
--lumo-icons-drag-handle: '\\ea18';
|
|
1537
|
+
--lumo-icons-dropdown: '\\ea19';
|
|
1538
|
+
--lumo-icons-edit: '\\ea1a';
|
|
1539
|
+
--lumo-icons-error: '\\ea1b';
|
|
1540
|
+
--lumo-icons-eye: '\\ea1c';
|
|
1541
|
+
--lumo-icons-eye-disabled: '\\ea1d';
|
|
1542
|
+
--lumo-icons-menu: '\\ea1e';
|
|
1543
|
+
--lumo-icons-minus: '\\ea1f';
|
|
1544
|
+
--lumo-icons-ordered-list: '\\ea20';
|
|
1545
|
+
--lumo-icons-phone: '\\ea21';
|
|
1546
|
+
--lumo-icons-photo: '\\ea22';
|
|
1547
|
+
--lumo-icons-play: '\\ea23';
|
|
1548
|
+
--lumo-icons-plus: '\\ea24';
|
|
1549
|
+
--lumo-icons-redo: '\\ea25';
|
|
1550
|
+
--lumo-icons-reload: '\\ea26';
|
|
1551
|
+
--lumo-icons-resize-handle: '\\ea27';
|
|
1552
|
+
--lumo-icons-search: '\\ea28';
|
|
1553
|
+
--lumo-icons-undo: '\\ea29';
|
|
1554
|
+
--lumo-icons-unordered-list: '\\ea2a';
|
|
1555
|
+
--lumo-icons-upload: '\\ea2b';
|
|
1556
|
+
--lumo-icons-user: '\\ea2c';
|
|
1557
|
+
}
|
|
1558
|
+
`;Ve("font-icons",dn);/**
|
|
1559
|
+
* @license
|
|
1560
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1561
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1562
|
+
*/const cs=M`
|
|
1563
|
+
[part$='button'] {
|
|
1564
|
+
flex: none;
|
|
1565
|
+
width: 1em;
|
|
1566
|
+
height: 1em;
|
|
1567
|
+
line-height: 1;
|
|
1568
|
+
font-size: var(--lumo-icon-size-m);
|
|
1569
|
+
text-align: center;
|
|
1570
|
+
color: var(--lumo-contrast-60pct);
|
|
1571
|
+
transition: 0.2s color;
|
|
1572
|
+
cursor: var(--lumo-clickable-cursor);
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
[part$='button']:hover {
|
|
1576
|
+
color: var(--lumo-contrast-90pct);
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
:host([disabled]) [part$='button'],
|
|
1580
|
+
:host([readonly]) [part$='button'] {
|
|
1581
|
+
color: var(--lumo-contrast-20pct);
|
|
1582
|
+
cursor: default;
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
[part$='button']::before {
|
|
1586
|
+
font-family: 'lumo-icons';
|
|
1587
|
+
display: block;
|
|
1588
|
+
}
|
|
1589
|
+
`;j("",cs,{moduleId:"lumo-field-button"});/**
|
|
1590
|
+
* @license
|
|
1591
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1592
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1593
|
+
*/const un=M`
|
|
1594
|
+
:host {
|
|
1595
|
+
--_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
:host([has-helper]) [part='helper-text']::before {
|
|
1599
|
+
content: '';
|
|
1600
|
+
display: block;
|
|
1601
|
+
height: var(--_helper-spacing);
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
[part='helper-text'] {
|
|
1605
|
+
display: block;
|
|
1606
|
+
color: var(--vaadin-input-field-helper-color, var(--lumo-secondary-text-color));
|
|
1607
|
+
font-size: var(--vaadin-input-field-helper-font-size, var(--lumo-font-size-xs));
|
|
1608
|
+
line-height: var(--lumo-line-height-xs);
|
|
1609
|
+
font-weight: var(--vaadin-input-field-helper-font-weight, 400);
|
|
1610
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
1611
|
+
transition: color 0.2s;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
:host(:hover:not([readonly])) [part='helper-text'] {
|
|
1615
|
+
color: var(--lumo-body-text-color);
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
:host([disabled]) [part='helper-text'] {
|
|
1619
|
+
color: var(--lumo-disabled-text-color);
|
|
1620
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
|
|
1624
|
+
display: none;
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
|
|
1628
|
+
content: '';
|
|
1629
|
+
display: block;
|
|
1630
|
+
height: var(--_helper-spacing);
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
:host([has-helper][theme~='helper-above-field']) [part='label'] {
|
|
1634
|
+
order: 0;
|
|
1635
|
+
padding-bottom: var(--_helper-spacing);
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
:host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
|
|
1639
|
+
order: 1;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
:host([has-helper][theme~='helper-above-field']) [part='label'] + * {
|
|
1643
|
+
order: 2;
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
:host([has-helper][theme~='helper-above-field']) [part='error-message'] {
|
|
1647
|
+
order: 3;
|
|
1648
|
+
}
|
|
1649
|
+
`;/**
|
|
1650
|
+
* @license
|
|
1651
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1652
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1653
|
+
*/const ds=M`
|
|
1654
|
+
[part='label'] {
|
|
1655
|
+
align-self: flex-start;
|
|
1656
|
+
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
1657
|
+
font-weight: var(--vaadin-input-field-label-font-weight, 500);
|
|
1658
|
+
font-size: var(--vaadin-input-field-label-font-size, var(--lumo-font-size-s));
|
|
1659
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
1660
|
+
transition: color 0.2s;
|
|
1661
|
+
line-height: 1;
|
|
1662
|
+
padding-right: 1em;
|
|
1663
|
+
padding-bottom: 0.5em;
|
|
1664
|
+
/* As a workaround for diacritics being cut off, add a top padding and a
|
|
1665
|
+
negative margin to compensate */
|
|
1666
|
+
padding-top: 0.25em;
|
|
1667
|
+
margin-top: -0.25em;
|
|
1668
|
+
overflow: hidden;
|
|
1669
|
+
white-space: nowrap;
|
|
1670
|
+
text-overflow: ellipsis;
|
|
1671
|
+
position: relative;
|
|
1672
|
+
max-width: 100%;
|
|
1673
|
+
box-sizing: border-box;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
:host([focused]:not([readonly])) [part='label'] {
|
|
1677
|
+
color: var(--vaadin-input-field-focused-label-color, var(--lumo-primary-text-color));
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
1681
|
+
color: var(--vaadin-input-field-hovered-label-color, var(--lumo-body-text-color));
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
/* Touch device adjustment */
|
|
1685
|
+
@media (pointer: coarse) {
|
|
1686
|
+
:host(:hover:not([readonly]):not([focused])) [part='label'] {
|
|
1687
|
+
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
:host([has-label])::before {
|
|
1692
|
+
margin-top: calc(var(--lumo-font-size-s) * 1.5);
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
:host([has-label][theme~='small'])::before {
|
|
1696
|
+
margin-top: calc(var(--lumo-font-size-xs) * 1.5);
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
:host([has-label]) {
|
|
1700
|
+
padding-top: var(--lumo-space-m);
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
:host([has-label]) ::slotted([slot='tooltip']) {
|
|
1704
|
+
--vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
:host([required]) [part='required-indicator']::after {
|
|
1708
|
+
content: var(--lumo-required-field-indicator, '\\2022');
|
|
1709
|
+
transition: opacity 0.2s;
|
|
1710
|
+
color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
|
|
1711
|
+
position: absolute;
|
|
1712
|
+
right: 0;
|
|
1713
|
+
width: 1em;
|
|
1714
|
+
text-align: center;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
:host([invalid]) [part='required-indicator']::after {
|
|
1718
|
+
color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
[part='error-message'] {
|
|
1722
|
+
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
1723
|
+
font-size: var(--vaadin-input-field-error-font-size, var(--lumo-font-size-xs));
|
|
1724
|
+
line-height: var(--lumo-line-height-xs);
|
|
1725
|
+
font-weight: var(--vaadin-input-field-error-font-weight, 400);
|
|
1726
|
+
color: var(--vaadin-input-field-error-color, var(--lumo-error-text-color));
|
|
1727
|
+
will-change: max-height;
|
|
1728
|
+
transition: 0.4s max-height;
|
|
1729
|
+
max-height: 5em;
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
:host([has-error-message]) [part='error-message']::before,
|
|
1733
|
+
:host([has-error-message]) [part='error-message']::after {
|
|
1734
|
+
content: '';
|
|
1735
|
+
display: block;
|
|
1736
|
+
height: 0.4em;
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
:host(:not([invalid])) [part='error-message'] {
|
|
1740
|
+
max-height: 0;
|
|
1741
|
+
overflow: hidden;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
/* RTL specific styles */
|
|
1745
|
+
|
|
1746
|
+
:host([dir='rtl']) [part='label'] {
|
|
1747
|
+
margin-left: 0;
|
|
1748
|
+
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
:host([dir='rtl']) [part='label'] {
|
|
1752
|
+
padding-left: 1em;
|
|
1753
|
+
padding-right: 0;
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
:host([dir='rtl']) [part='required-indicator']::after {
|
|
1757
|
+
right: auto;
|
|
1758
|
+
left: 0;
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
:host([dir='rtl']) [part='error-message'] {
|
|
1762
|
+
margin-left: 0;
|
|
1763
|
+
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
1764
|
+
}
|
|
1765
|
+
`;j("",ds,{moduleId:"lumo-required-field"});/**
|
|
1766
|
+
* @license
|
|
1767
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1768
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1769
|
+
*/const hn=M`
|
|
1770
|
+
:host {
|
|
1771
|
+
--lumo-text-field-size: var(--lumo-size-m);
|
|
1772
|
+
color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
|
|
1773
|
+
font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
|
|
1774
|
+
font-family: var(--lumo-font-family);
|
|
1775
|
+
-webkit-font-smoothing: antialiased;
|
|
1776
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1777
|
+
-webkit-tap-highlight-color: transparent;
|
|
1778
|
+
padding: var(--lumo-space-xs) 0;
|
|
1779
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
1780
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
1781
|
+
--_input-height: var(--vaadin-input-field-height, var(--lumo-text-field-size));
|
|
1782
|
+
--_disabled-value-color: var(--vaadin-input-field-disabled-value-color, var(--lumo-disabled-text-color));
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
:host::before {
|
|
1786
|
+
height: var(--_input-height);
|
|
1787
|
+
box-sizing: border-box;
|
|
1788
|
+
display: inline-flex;
|
|
1789
|
+
align-items: center;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
:host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
|
|
1793
|
+
-webkit-mask-image: none;
|
|
1794
|
+
mask-image: none;
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
::slotted(:is(input, textarea):placeholder-shown) {
|
|
1798
|
+
color: var(--vaadin-input-field-placeholder-color, var(--lumo-secondary-text-color));
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
/* Hover */
|
|
1802
|
+
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
1803
|
+
opacity: var(--vaadin-input-field-hover-highlight-opacity, 0.1);
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
/* Touch device adjustment */
|
|
1807
|
+
@media (pointer: coarse) {
|
|
1808
|
+
:host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
|
|
1809
|
+
opacity: 0;
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
:host(:active:not([readonly]):not([focused])) [part='input-field']::after {
|
|
1813
|
+
opacity: 0.2;
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
/* Trigger when not focusing using the keyboard */
|
|
1818
|
+
:host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
|
|
1819
|
+
transform: scaleX(0);
|
|
1820
|
+
transition-duration: 0.15s, 1s;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
/* Focus-ring */
|
|
1824
|
+
:host([focus-ring]) [part='input-field'] {
|
|
1825
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
/* Read-only and disabled */
|
|
1829
|
+
:host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
|
|
1830
|
+
opacity: 0;
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
/* Read-only style */
|
|
1834
|
+
:host([readonly]) {
|
|
1835
|
+
--vaadin-input-field-border-color: transparent;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
/* Disabled style */
|
|
1839
|
+
:host([disabled]) {
|
|
1840
|
+
pointer-events: none;
|
|
1841
|
+
--vaadin-input-field-border-color: var(--lumo-contrast-20pct);
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
:host([disabled]) [part='label'],
|
|
1845
|
+
:host([disabled]) [part='input-field'] ::slotted([slot$='fix']) {
|
|
1846
|
+
color: var(--lumo-disabled-text-color);
|
|
1847
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
:host([disabled]) [part='input-field'] ::slotted(:not([slot$='fix'])) {
|
|
1851
|
+
color: var(--_disabled-value-color);
|
|
1852
|
+
-webkit-text-fill-color: var(--_disabled-value-color);
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
/* Invalid style */
|
|
1856
|
+
:host([invalid]) {
|
|
1857
|
+
--vaadin-input-field-border-color: var(--lumo-error-color);
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
:host([invalid][focus-ring]) [part='input-field'] {
|
|
1861
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--lumo-error-color-50pct);
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
:host([input-prevented]) [part='input-field'] {
|
|
1865
|
+
animation: shake 0.15s infinite;
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
@keyframes shake {
|
|
1869
|
+
25% {
|
|
1870
|
+
transform: translateX(4px);
|
|
1871
|
+
}
|
|
1872
|
+
75% {
|
|
1873
|
+
transform: translateX(-4px);
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
/* Small theme */
|
|
1878
|
+
:host([theme~='small']) {
|
|
1879
|
+
font-size: var(--lumo-font-size-s);
|
|
1880
|
+
--lumo-text-field-size: var(--lumo-size-s);
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
:host([theme~='small']) [part='label'] {
|
|
1884
|
+
font-size: var(--lumo-font-size-xs);
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
:host([theme~='small']) [part='error-message'] {
|
|
1888
|
+
font-size: var(--lumo-font-size-xxs);
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
/* Slotted content */
|
|
1892
|
+
[part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
|
|
1893
|
+
color: var(--lumo-secondary-text-color);
|
|
1894
|
+
font-weight: 400;
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
[part='clear-button']::before {
|
|
1898
|
+
content: var(--lumo-icons-cross);
|
|
1899
|
+
}
|
|
1900
|
+
`,us=[ds,cs,un,hn];j("",us,{moduleId:"lumo-input-field-shared-styles"});const pn=M`
|
|
1901
|
+
[part='toggle-button']::before {
|
|
1902
|
+
content: var(--lumo-icons-calendar);
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
[part='clear-button']::before {
|
|
1906
|
+
content: var(--lumo-icons-cross);
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
@media (max-width: 450px), (max-height: 450px) {
|
|
1910
|
+
[part='overlay-content'] {
|
|
1911
|
+
height: 70vh;
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input) {
|
|
1916
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
|
|
1920
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
1921
|
+
}
|
|
1922
|
+
`;j("vaadin-date-picker",[us,pn],{moduleId:"lumo-date-picker"});/**
|
|
1923
|
+
@license
|
|
1924
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1925
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1926
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1927
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1928
|
+
Code distributed by Google as part of the polymer project is also
|
|
1929
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1930
|
+
*/window.JSCompiler_renameProperty=function(o,t){return o};/**
|
|
1931
|
+
@license
|
|
1932
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1933
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1934
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1935
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1936
|
+
Code distributed by Google as part of the polymer project is also
|
|
1937
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1938
|
+
*/let fn=/(url\()([^)]*)(\))/g,mn=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ht,re;function Ze(o,t){if(o&&mn.test(o)||o==="//")return o;if(ht===void 0){ht=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",ht=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),ht)try{return new URL(o,t).href}catch(e){return o}return re||(re=document.implementation.createHTMLDocument("temp"),re.base=re.createElement("base"),re.head.appendChild(re.base),re.anchor=re.createElement("a"),re.body.appendChild(re.anchor)),re.base.href=t,re.anchor.href=o,re.anchor.href||o}function ki(o,t){return o.replace(fn,function(e,i,s,r){return i+"'"+Ze(s.replace(/["']/g,""),t)+"'"+r})}function Di(o){return o.substring(0,o.lastIndexOf("/")+1)}/**
|
|
1939
|
+
@license
|
|
1940
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1941
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1942
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1943
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1944
|
+
Code distributed by Google as part of the polymer project is also
|
|
1945
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1946
|
+
*/const hs=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const _n=hs&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const o=new CSSStyleSheet;o.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[o],t.shadowRoot.adoptedStyleSheets[0]===o}catch(o){return!1}})();let gn=window.Polymer&&window.Polymer.rootPath||Di(document.baseURI||window.location.href),wt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Et=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,bn=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ps=window.Polymer&&window.Polymer.legacyOptimizations||!1,fs=window.Polymer&&window.Polymer.legacyWarnings||!1,yn=window.Polymer&&window.Polymer.syncInitialRender||!1,ii=window.Polymer&&window.Polymer.legacyUndefined||!1,vn=window.Polymer&&window.Polymer.orderedComputed||!1,ro=window.Polymer&&window.Polymer.removeNestedTemplates||!1,xn=window.Polymer&&window.Polymer.fastDomIf||!1,no=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let wn=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
1947
|
+
@license
|
|
1948
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1949
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1950
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1951
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1952
|
+
Code distributed by Google as part of the polymer project is also
|
|
1953
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1954
|
+
*/let En=0;const Y=function(o){let t=o.__mixinApplications;t||(t=new WeakMap,o.__mixinApplications=t);let e=En++;function i(s){let r=s.__mixinSet;if(r&&r[e])return s;let n=t,a=n.get(s);if(!a){a=o(s),n.set(s,a);let l=Object.create(a.__mixinSet||r||null);l[e]=!0,a.__mixinSet=l}return a}return i};/**
|
|
1955
|
+
@license
|
|
1956
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1957
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1958
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1959
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1960
|
+
Code distributed by Google as part of the polymer project is also
|
|
1961
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1962
|
+
*/let Pi={},ms={};function ao(o,t){Pi[o]=ms[o.toLowerCase()]=t}function lo(o){return Pi[o]||ms[o.toLowerCase()]}function Sn(o){o.querySelector("style")&&console.warn("dom-module %s has style outside template",o.id)}class ot extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=lo(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,s){e!==i&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Ze(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Di(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(Et&&lo(t)!==void 0)throw ao(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,ao(t,this),Sn(this)}}}ot.prototype.modules=Pi;customElements.define("dom-module",ot);/**
|
|
1963
|
+
@license
|
|
1964
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1965
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1966
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1967
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1968
|
+
Code distributed by Google as part of the polymer project is also
|
|
1969
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1970
|
+
*/const An="link[rel=import][type~=css]",Cn="include",co="shady-unscoped";function _s(o){return ot.import(o)}function uo(o){let t=o.body?o.body:o;const e=ki(t.textContent,o.baseURI),i=document.createElement("style");return i.textContent=e,i}function kn(o){const t=o.trim().split(/\s+/),e=[];for(let i=0;i<t.length;i++)e.push(...Dn(t[i]));return e}function Dn(o){const t=_s(o);if(!t)return console.warn("Could not find style data in module named",o),[];if(t._styles===void 0){const e=[];e.push(...bs(t));const i=t.querySelector("template");i&&e.push(...gs(i,t.assetpath)),t._styles=e}return t._styles}function gs(o,t){if(!o._styles){const e=[],i=o.content.querySelectorAll("style");for(let s=0;s<i.length;s++){let r=i[s],n=r.getAttribute(Cn);n&&e.push(...kn(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(r.textContent=ki(r.textContent,t)),e.push(r)}o._styles=e}return o._styles}function Pn(o){let t=_s(o);return t?bs(t):[]}function bs(o){const t=[],e=o.querySelectorAll(An);for(let i=0;i<e.length;i++){let s=e[i];if(s.import){const r=s.import,n=s.hasAttribute(co);if(n&&!r._unscopedStyle){const a=uo(r);a.setAttribute(co,""),r._unscopedStyle=a}else r._style||(r._style=uo(r));t.push(n?r._unscopedStyle:r._style)}}return t}/**
|
|
1971
|
+
@license
|
|
1972
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1973
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1974
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1975
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1976
|
+
Code distributed by Google as part of the polymer project is also
|
|
1977
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1978
|
+
*/const Z=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?o=>ShadyDOM.patch(o):o=>o;/**
|
|
1979
|
+
@license
|
|
1980
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1981
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1982
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1983
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1984
|
+
Code distributed by Google as part of the polymer project is also
|
|
1985
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1986
|
+
*/function oi(o){return o.indexOf(".")>=0}function Te(o){let t=o.indexOf(".");return t===-1?o:o.slice(0,t)}function ys(o,t){return o.indexOf(t+".")===0}function st(o,t){return t.indexOf(o+".")===0}function rt(o,t,e){return t+e.slice(o.length)}function Tn(o,t){return o===t||ys(o,t)||st(o,t)}function Ge(o){if(Array.isArray(o)){let t=[];for(let e=0;e<o.length;e++){let i=o[e].toString().split(".");for(let s=0;s<i.length;s++)t.push(i[s])}return t.join(".")}else return o}function vs(o){return Array.isArray(o)?Ge(o).split("."):o.toString().split(".")}function ie(o,t,e){let i=o,s=vs(t);for(let r=0;r<s.length;r++){if(!i)return;let n=s[r];i=i[n]}return e&&(e.path=s.join(".")),i}function ho(o,t,e){let i=o,s=vs(t),r=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(i=i[a],!i)return}i[r]=e}else i[t]=e;return s.join(".")}/**
|
|
1987
|
+
@license
|
|
1988
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1989
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1990
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1991
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1992
|
+
Code distributed by Google as part of the polymer project is also
|
|
1993
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1994
|
+
*/const St={},Mn=/-[a-z]/g,On=/([A-Z])/g;function xs(o){return St[o]||(St[o]=o.indexOf("-")<0?o:o.replace(Mn,t=>t[1].toUpperCase()))}function Pt(o){return St[o]||(St[o]=o.replace(On,"-$1").toLowerCase())}/**
|
|
1995
|
+
@license
|
|
1996
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1997
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
1998
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
1999
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2000
|
+
Code distributed by Google as part of the polymer project is also
|
|
2001
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2002
|
+
*/let In=0,ws=0,ze=[],Nn=0,si=!1,Es=document.createTextNode("");new window.MutationObserver(zn).observe(Es,{characterData:!0});function zn(){si=!1;const o=ze.length;for(let t=0;t<o;t++){let e=ze[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}ze.splice(0,o),ws+=o}const Fn={after(o){return{run(t){return window.setTimeout(t,o)},cancel(t){window.clearTimeout(t)}}},run(o,t){return window.setTimeout(o,t)},cancel(o){window.clearTimeout(o)}},Ss={run(o){return si||(si=!0,Es.textContent=Nn++),ze.push(o),In++},cancel(o){const t=o-ws;if(t>=0){if(!ze[t])throw new Error("invalid async handle: "+o);ze[t]=null}}};/**
|
|
2003
|
+
@license
|
|
2004
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2005
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2006
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2007
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2008
|
+
Code distributed by Google as part of the polymer project is also
|
|
2009
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2010
|
+
*/const Ln=Ss,As=Y(o=>{class t extends o{static createProperties(i){const s=this.prototype;for(let r in i)r in s||s._createPropertyAccessor(r)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,s){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,s))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[i];return s||(s=this.constructor.attributeNameForProperty(i),this.__dataAttributes[s]=i),s}_definePropertyAccessor(i,s){Object.defineProperty(this,i,{get(){return this.__data[i]},set:s?function(){}:function(r){this._setPendingProperty(i,r,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,s){this._setPendingProperty(i,s)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,s,r){let n=this.__data[i],a=this._shouldPropertyChange(i,s,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=s,this.__dataPending[i]=s),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Ln.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const i=this.__data,s=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(i,s,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,s,r)),this.__dataCounter--}_shouldPropertiesChange(i,s,r){return!!s}_propertiesChanged(i,s,r){}_shouldPropertyChange(i,s,r){return r!==s&&(r===r||s===s)}attributeChangedCallback(i,s,r,n){s!==r&&this._attributeToProperty(i,r),super.attributeChangedCallback&&super.attributeChangedCallback(i,s,r,n)}_attributeToProperty(i,s,r){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(s,r||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,s,r){this.__serializing=!0,r=arguments.length<3?this[i]:r,this._valueToNodeAttribute(this,r,s||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,s,r){const n=this._serializeValue(s);(r==="class"||r==="name"||r==="slot")&&(i=Z(i)),n===void 0?i.removeAttribute(r):i.setAttribute(r,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,s){switch(s){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return t});/**
|
|
2011
|
+
@license
|
|
2012
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2013
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2014
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2015
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2016
|
+
Code distributed by Google as part of the polymer project is also
|
|
2017
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2018
|
+
*/const Cs={};let pt=HTMLElement.prototype;for(;pt;){let o=Object.getOwnPropertyNames(pt);for(let t=0;t<o.length;t++)Cs[o[t]]=!0;pt=Object.getPrototypeOf(pt)}const $n=window.trustedTypes?o=>trustedTypes.isHTML(o)||trustedTypes.isScript(o)||trustedTypes.isScriptURL(o):()=>!1;function Rn(o,t){if(!Cs[t]){let e=o[t];e!==void 0&&(o.__data?o._setPendingProperty(t,e):(o.__dataProto?o.hasOwnProperty(JSCompiler_renameProperty("__dataProto",o))||(o.__dataProto=Object.create(o.__dataProto)):o.__dataProto={},o.__dataProto[t]=e))}}const Hn=Y(o=>{const t=As(o);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let r=0;r<s.length;r++)this.prototype._createPropertyAccessor(xs(s[r]))}static attributeNameForProperty(s){return Pt(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let r in s)this._setProperty(r,s[r])}_ensureAttribute(s,r){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,r,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if($n(s))return s;try{return JSON.stringify(s)}catch(r){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,r){let n;switch(r){case Object:try{n=JSON.parse(s)}catch(a){n=s}break;case Array:try{n=JSON.parse(s)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,r);break}return n}_definePropertyAccessor(s,r){Rn(this,s),super._definePropertyAccessor(s,r)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return e});/**
|
|
2019
|
+
@license
|
|
2020
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2021
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2022
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2023
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2024
|
+
Code distributed by Google as part of the polymer project is also
|
|
2025
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2026
|
+
*/const Bn={"dom-if":!0,"dom-repeat":!0};let po=!1,fo=!1;function Vn(){if(!po){po=!0;const o=document.createElement("textarea");o.placeholder="a",fo=o.placeholder===o.textContent}return fo}function jn(o){Vn()&&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 Un(o){let t=o.getAttribute("is");if(t&&Bn[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 Wn(o,t,e,i){i.id&&(t[i.id]=e)}function qn(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 Gn(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 Xn=Y(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=Un(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 f=l[d]=ks(a,h);Wn(this,a.$,f,h),Gn(this,f,h,s),qn(this,f,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});/**
|
|
2027
|
+
* @fileoverview
|
|
2028
|
+
* @suppress {checkPrototypalTypes}
|
|
2029
|
+
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2030
|
+
* This code may only be used under the BSD style license found at
|
|
2031
|
+
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
2032
|
+
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
2033
|
+
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
2034
|
+
* Google as part of the polymer project is also subject to an additional IP
|
|
2035
|
+
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2036
|
+
*/let nt=0;const at=[],I={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ds="__computeInfo",Jn=/[A-Z]/;function Rt(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 Ke(o,t,e,i,s,r){if(t){let n=!1;const a=nt++;for(let l in e){let d=s?Te(l):l,u=t[d];if(u)for(let h=0,f=u.length,p;h<f&&(p=u[h]);h++)(!p.info||p.info.lastRun!==a)&&(!s||Ti(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(o,l,e,i,p.info,s,r),n=!0)}return n}return!1}function Qn(o,t,e,i,s,r,n,a){let l=!1,d=n?Te(i):i,u=t[d];if(u)for(let h=0,f=u.length,p;h<f&&(p=u[h]);h++)(!p.info||p.info.lastRun!==e)&&(!n||Ti(i,p.trigger))&&(p.info&&(p.info.lastRun=e),p.fn(o,i,s,r,p.info,n,a),l=!0);return l}function Ti(o,t){if(t){let e=t.name;return e==o||!!(t.structured&&ys(e,o))||!!(t.wildcard&&st(e,o))}else return!0}function mo(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=nt++;for(let d in t)t[d]&&(r&&Qn(o,r,a,d,e,i,s)||s&&ea(o,d,e))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function ea(o,t,e){let i=Te(t);if(i!==t){let s=Pt(i)+"-changed";return Ps(o,s,e[t],t),!0}return!1}function Ps(o,t,e,i){let s={value:e,queueProperty:!0};i&&(s.path=i),Z(o).dispatchEvent(new CustomEvent(t,{detail:s}))}function ta(o,t,e,i,s,r){let a=(r?Te(t):t)!=t?t:null,l=a?ie(o,a):o.__data[t];a&&l===void 0&&(l=e[t]),Ps(o,s.eventName,l,a)}function ia(o,t,e,i,s){let r,n=o.detail,a=n&&n.path;a?(i=rt(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 oa(o,t,e,i,s){let r=o.__data[t];wt&&(r=wt(r,s.attrName,"attribute",o)),o._propertyToAttribute(t,s.attrName,r)}function sa(o,t,e,i){let s=o[I.COMPUTE];if(s)if(vn){nt++;const r=na(o),n=[];for(let l in t)_o(l,s,n,r,i);let a;for(;a=n.shift();)Ts(o,"",t,e,a)&&_o(a.methodInfo,s,n,r,i);Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),o.__dataPending=null}else{let r=t;for(;Ke(o,s,r,e,i);)Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),r=o.__dataPending,o.__dataPending=null}}const ra=(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)},_o=(o,t,e,i,s)=>{const r=s?Te(o):o,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==nt&&(!s||Ti(o,l.trigger))&&(l.info.lastRun=nt,ra(l.info,e,i))}};function na(o){let t=o.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=o[I.COMPUTE];let{counts:i,ready:s,total:r}=aa(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 aa(o){const t=o[Ds],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=ri(o,t,e,i,s);if(r===at)return!1;let n=s.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,r,!0):(o[n]=r,!1)}function la(o,t,e){let i=o.__dataLinkedPaths;if(i){let s;for(let r in i){let n=i[r];st(r,t)?(s=rt(r,n,t),o._setPendingPropertyOrPath(s,e,!0,!0)):st(n,t)&&(s=rt(n,r,t),o._setPendingPropertyOrPath(s,e,!0,!0))}}}function Ht(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),pa(a)){let{event:d,negate:u}=a.parts[0];a.listenerEvent=d||Pt(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,ca(o,t,a,u,l)}}function ca(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:da,info:n,trigger:l})}}}function da(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=rt(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!==at&&ua(o,a,l,d,u)}}function ua(o,t,e,i,s){if(s=ha(t,s,e,i),wt&&(s=wt(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 ha(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 pa(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function fa(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];ma(n,d),_a(n,o,d)}n.__dataHost=o}}function ma(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 _a(o,t,e){if(e.listenerEvent){let i=e.parts[0];o.addEventListener(e.listenerEvent,function(s){ia(s,t,e.target,i.source,i.negate)})}}function go(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 ri(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===at?at:n.apply(r,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const ga=[],Ms="(?:[a-zA-Z_$][\\w.:$\\-*]*)",ba="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",ya="(?:'(?:[^'\\\\]|\\\\.)*')",va='(?:"(?:[^"\\\\]|\\\\.)*")',xa="(?:"+ya+"|"+va+")",bo="(?:("+Ms+"|"+ba+"|"+xa+")\\s*)",wa="(?:"+bo+"(?:,\\s*"+bo+")*)",Ea="(?:\\(\\s*(?:"+wa+"?)\\)\\s*)",Sa="("+Ms+"\\s*"+Ea+"?)",Aa="(\\[\\[|{{)\\s*",Ca="(?:]]|}})",ka="(?:(!)\\s*)?",Da=Aa+ka+Sa+Ca,yo=new RegExp(Da,"g");function vo(o){let t="";for(let e=0;e<o.length;e++){let i=o[e].literal;t+=i||""}return t}function Bt(o){let t=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:ga};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=Te(t),e.structured=oi(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function xo(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};ii&&!o._overrideLegacyUndefined&&(t.splices=s),o.notifyPath(e+".splices",s),o.notifyPath(e+".length",t.length),ii&&!o._overrideLegacyUndefined&&(s.indexSplices=[])}function Ue(o,t,e,i,s,r){Is(o,t,e,[{index:i,addedCount:s,removed:r,object:t,type:"splice"}])}function Ta(o){return o[0].toUpperCase()+o.substring(1)}const Mi=Y(o=>{const t=Xn(Hn(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(We.length){let s=We[We.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=Rt(this,r,!0)[s];a||(a=this[r][s]=[]),a.push(n)}_removePropertyEffect(s,r,n){let a=Rt(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||Te(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=ie(this,s);if(s=ho(this,s,r),!s||!super._shouldPropertyChange(s,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,r,n))return la(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&&oi(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;sa(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),Ke(this,this[I.REFLECT],r,n,a),Ke(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]&&Ke(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)=>{Ke(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=Ge(s),r=Ge(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=r}unlinkPaths(s){s=Ge(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?ho(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&&Ue(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&&Ue(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)&&Ue(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&&Ue(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&&Ue(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=Ge(s):n=s;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,r){this._addPropertyEffect(s,I.READ_ONLY),r&&(this["_set"+Ta(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:mo,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(r,I.OBSERVE,{fn:mo,info:a,trigger:{name:r}})}_createMethodObserver(s,r){let n=Bt(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");go(this,n,I.OBSERVE,ri,null,r)}_createNotifyingProperty(s){this._addPropertyEffect(s,I.NOTIFY,{fn:ta,info:{eventName:Pt(s)+"-changed",property:s}})}_createReflectedProperty(s){let r=this.constructor.attributeNameForProperty(s);r[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,I.REFLECT,{fn:oa,info:{attrName:r}})}_createComputedProperty(s,r,n){let a=Bt(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=go(this,a,I.COMPUTE,Ts,s,n);Rt(this,Ds)[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:f,wildcard:p,value:m,literal:A}=s[d];if(!A)if(p){const P=st(h,r),N=xo(a,n,P?r:h);m={path:P?r:h,value:N,base:P?ie(a,h):N}}else m=f?xo(a,n,h):a[h];if(ii&&!this._overrideLegacyUndefined&&m===void 0&&s.length>1)return at;l[d]=m}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),We.push(this);let n=super._stampTemplate(s,r);if(We.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,fa(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=vo(l)||" ",Ht(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 f=vo(d);return f&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(f+=" "+s.getAttribute(a)),s.setAttribute(a,f)),h=="attribute"&&u=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&u==="value"&&s.setAttribute(u,""),s.removeAttribute(u),h==="property"&&(a=xs(a)),Ht(this,r,n,h,a,d,f),!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";ro&&(u||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let f=d.hostProps;if(xn&&u)f&&(r.hostProps=Object.assign(r.hostProps||{},f),ro||(n.parentInfo.noted=!0));else{let p="{";for(let m in f){let A=[{mode:p,source:m,dependencies:[m],hostProp:!0}];Ht(this,r,n,"property","_host_"+m,A)}}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(),f=!1,p="",m=-1;d=="{"&&(m=h.indexOf("::"))>0&&(p=h.substring(m+2),h=h.substring(0,m),f=!0);let A=Bt(h),P=[];if(A){let{args:N,methodName:k}=A;for(let z=0;z<N.length;z++){let O=N[z];O.literal||P.push(O)}let V=r.dynamicFns;(V&&V[k]||A.static)&&(P.push(k),A.dynamicFn=!0)}else P.push(h);n.push({source:h,mode:d,negate:u,customEvent:f,signature:A,dependencies:P,event:p}),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=ri(s,n,a,l,r.signature):n!=r.source?u=ie(s,r.source):d&&oi(n)?u=ie(s,n):u=s.__data[n],r.negate&&(u=!u),u}}return e}),We=[];/**
|
|
2037
|
+
@license
|
|
2038
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2039
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2040
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2041
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2042
|
+
Code distributed by Google as part of the polymer project is also
|
|
2043
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2044
|
+
*//**
|
|
2045
|
+
@license
|
|
2046
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2047
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2048
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2049
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2050
|
+
Code distributed by Google as part of the polymer project is also
|
|
2051
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2052
|
+
*/function Ma(o){const t={};for(let e in o){const i=o[e];t[e]=typeof i=="function"?{type:i}:i}return t}const Oa=Y(o=>{const t=As(o);function e(r){const n=Object.getPrototypeOf(r);return n.prototype instanceof s?n:null}function i(r){if(!r.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",r))){let n=null;if(r.hasOwnProperty(JSCompiler_renameProperty("properties",r))){const a=r.properties;a&&(n=Ma(a))}r.__ownProperties=n}return r.__ownProperties}class s extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=i(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,i(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s});/**
|
|
2053
|
+
* @fileoverview
|
|
2054
|
+
* @suppress {checkPrototypalTypes}
|
|
2055
|
+
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2056
|
+
* This code may only be used under the BSD style license found at
|
|
2057
|
+
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
|
|
2058
|
+
* at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
|
|
2059
|
+
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
2060
|
+
* Google as part of the polymer project is also subject to an additional IP
|
|
2061
|
+
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2062
|
+
*/const Ia="3.5.2",wo=window.ShadyCSS&&window.ShadyCSS.cssBuild,Na=Y(o=>{const t=Oa(Mi(o));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let u in d){let h=d[u];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[u]=h)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,d,u,h){u.computed&&(u.readOnly=!0),u.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,u.computed,h)),u.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!u.computed):u.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),u.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):u.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),u.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):u.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),u.observer&&l._createPropertyObserver(d,u.observer,h[u.observer]),l._addPropertyToAttributeMap(d)}function r(l,d,u,h){if(!wo){const f=d.content.querySelectorAll("style"),p=gs(d),m=Pn(u),A=d.content.firstElementChild;for(let N=0;N<m.length;N++){let k=m[N];k.textContent=l._processStyleText(k.textContent,h),d.content.insertBefore(k,A)}let P=0;for(let N=0;N<p.length;N++){let k=p[N],V=f[P];V!==k?(k=k.cloneNode(!0),V.parentNode.insertBefore(k,V)):P++,k.textContent=l._processStyleText(k.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,u),wn&&wo&&_n){const f=d.content.querySelectorAll("style");if(f){let p="";Array.from(f).forEach(m=>{p+=m.textContent,m.parentNode.removeChild(m)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p)}}}function n(l){let d=null;if(l&&(!Et||bn)&&(d=ot.import(l,"template"),Et&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return Ia}static _finalizeClass(){t._finalizeClass.call(this);const d=i(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):ps||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let u in d)s(this.prototype,u,d[u],d)}static createObservers(d,u){const h=this.prototype;for(let f=0;f<d.length;f++)h._createMethodObserver(d[f],u)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Di(d.url);else{const u=ot.import(this.is);this._importPath=u&&u.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=gn,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(d)for(let u in d){let h=d[u];if(this._canApplyPropertyDefault(u)){let f=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(u)?this._setPendingProperty(u,f,!0):this[u]=f}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,u){return ki(d,u)}static _finalizeTemplate(d){const u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;const h=this.importPath,f=h?Ze(h):"";r(this,u,d,f),this.prototype._bindTemplate(u)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const u=Z(this);if(u.attachShadow)return d?(u.shadowRoot||(u.attachShadow({mode:"open",shadyUpgradeFragment:d}),u.shadowRoot.appendChild(d),this.constructor._styleSheet&&(u.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),yn&&window.ShadyDOM&&window.ShadyDOM.flushInitial(u.shadowRoot),u.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,u){return!u&&this.importPath&&(u=Ze(this.importPath)),Ze(d,u)}static _parseTemplateContent(d,u,h){return u.dynamicFns=u.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,u,h)}static _addTemplatePropertyEffect(d,u,h){return fs&&!(u in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${u}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,d,u,h)}}return a});/**
|
|
2063
|
+
@license
|
|
2064
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2065
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2066
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2067
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2068
|
+
Code distributed by Google as part of the polymer project is also
|
|
2069
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2070
|
+
*/const Eo=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:o=>o});class Ns{constructor(t,e){Fs(t,e);const i=e.reduce((s,r,n)=>s+zs(r)+t[n+1],t[0]);this.value=i.toString()}toString(){return this.value}}function zs(o){if(o instanceof Ns)return o.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${o}`)}function za(o){if(o instanceof HTMLTemplateElement)return o.innerHTML;if(o instanceof Ns)return zs(o);throw new Error(`non-template value passed to Polymer's html function: ${o}`)}const Me=function(t,...e){Fs(t,e);const i=document.createElement("template");let s=e.reduce((r,n,a)=>r+za(n)+t[a+1],t[0]);return Eo&&(s=Eo.createHTML(s)),i.innerHTML=s,i},Fs=(o,t)=>{if(!Array.isArray(o)||!Array.isArray(o.raw)||t.length!==o.length-1)throw new TypeError("Invalid call to the html template tag")};/**
|
|
2071
|
+
@license
|
|
2072
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2073
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2074
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2075
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2076
|
+
Code distributed by Google as part of the polymer project is also
|
|
2077
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2078
|
+
*/const ve=Na(HTMLElement);/**
|
|
2079
|
+
* @license
|
|
2080
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2081
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2082
|
+
*/const me=[];function ni(o,t,e=o.getAttribute("dir")){t?o.setAttribute("dir",t):e!=null&&o.removeAttribute("dir")}function ai(){return document.documentElement.getAttribute("dir")}function Fa(){const o=ai();me.forEach(t=>{ni(t,o)})}const La=new MutationObserver(Fa);La.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Tt=o=>class extends o{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),ni(this,ai(),null))}attributeChangedCallback(e,i,s){if(super.attributeChangedCallback(e,i,s),e!=="dir")return;const r=ai(),n=s===r&&me.indexOf(this)===-1,a=!s&&i&&me.indexOf(this)===-1;n||a?(this.__subscribe(),ni(this,r,s)):s!==r&&i===r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=me.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,i,s){s==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,s)}_attributeToProperty(e,i,s){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,s)}__subscribe(){me.includes(this)||me.push(this)}__unsubscribe(){me.includes(this)&&me.splice(me.indexOf(this),1)}};/**
|
|
2083
|
+
* @license
|
|
2084
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2085
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2086
|
+
*/const $a=o=>class extends o{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(i=>i.focus&&i.focus())})}};/**
|
|
2087
|
+
* @license
|
|
2088
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2089
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2090
|
+
*/const Ra=M`
|
|
2091
|
+
:host {
|
|
2092
|
+
display: flex;
|
|
2093
|
+
align-items: center;
|
|
2094
|
+
flex: 0 1 auto;
|
|
2095
|
+
border-radius:
|
|
2096
|
+
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
|
|
2097
|
+
var(--vaadin-input-field-top-start-radius, var(--__border-radius))
|
|
2098
|
+
var(--vaadin-input-field-top-end-radius, var(--__border-radius))
|
|
2099
|
+
var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
|
|
2100
|
+
var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
|
|
2101
|
+
--_border-radius: var(--vaadin-input-field-border-radius, 0);
|
|
2102
|
+
--_input-border-width: var(--vaadin-input-field-border-width, 0);
|
|
2103
|
+
--_input-border-color: var(--vaadin-input-field-border-color, transparent);
|
|
2104
|
+
box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
:host([dir='rtl']) {
|
|
2108
|
+
border-radius:
|
|
2109
|
+
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
2110
|
+
var(--vaadin-input-field-top-end-radius, var(--_border-radius))
|
|
2111
|
+
var(--vaadin-input-field-top-start-radius, var(--_border-radius))
|
|
2112
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
|
|
2113
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
:host([hidden]) {
|
|
2117
|
+
display: none !important;
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
/* Reset the native input styles */
|
|
2121
|
+
::slotted(input) {
|
|
2122
|
+
-webkit-appearance: none;
|
|
2123
|
+
-moz-appearance: none;
|
|
2124
|
+
flex: auto;
|
|
2125
|
+
white-space: nowrap;
|
|
2126
|
+
overflow: hidden;
|
|
2127
|
+
width: 100%;
|
|
2128
|
+
height: 100%;
|
|
2129
|
+
outline: none;
|
|
2130
|
+
margin: 0;
|
|
2131
|
+
padding: 0;
|
|
2132
|
+
border: 0;
|
|
2133
|
+
border-radius: 0;
|
|
2134
|
+
min-width: 0;
|
|
2135
|
+
font: inherit;
|
|
2136
|
+
line-height: normal;
|
|
2137
|
+
color: inherit;
|
|
2138
|
+
background-color: transparent;
|
|
2139
|
+
/* Disable default invalid style in Firefox */
|
|
2140
|
+
box-shadow: none;
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
::slotted(*) {
|
|
2144
|
+
flex: none;
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
::slotted(:is(input, textarea))::placeholder {
|
|
2148
|
+
/* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
|
|
2149
|
+
/* because ::slotted(...)::placeholder does not work in Safari. */
|
|
2150
|
+
font: inherit;
|
|
2151
|
+
color: inherit;
|
|
2152
|
+
/* Override default opacity in Firefox */
|
|
2153
|
+
opacity: 1;
|
|
2154
|
+
}
|
|
2155
|
+
`;/**
|
|
2156
|
+
* @license
|
|
2157
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2158
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2159
|
+
*/j("vaadin-input-container",Ra,{moduleId:"vaadin-input-container-styles"});class Ha extends $a(Pe(Tt(ve))){static get is(){return"vaadin-input-container"}static get template(){return Me`
|
|
2160
|
+
<slot name="prefix"></slot>
|
|
2161
|
+
<slot></slot>
|
|
2162
|
+
<slot name="suffix"></slot>
|
|
2163
|
+
`}}pe(Ha);/**
|
|
2164
|
+
* @license
|
|
2165
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2166
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2167
|
+
*/const Ba=M`
|
|
2168
|
+
:host {
|
|
2169
|
+
z-index: 200;
|
|
2170
|
+
position: fixed;
|
|
2171
|
+
|
|
2172
|
+
/* Despite of what the names say, <vaadin-overlay> is just a container
|
|
2173
|
+
for position/sizing/alignment. The actual overlay is the overlay part. */
|
|
2174
|
+
|
|
2175
|
+
/* Default position constraints: the entire viewport. Note: themes can
|
|
2176
|
+
override this to introduce gaps between the overlay and the viewport. */
|
|
2177
|
+
inset: 0;
|
|
2178
|
+
bottom: var(--vaadin-overlay-viewport-bottom);
|
|
2179
|
+
|
|
2180
|
+
/* Use flexbox alignment for the overlay part. */
|
|
2181
|
+
display: flex;
|
|
2182
|
+
flex-direction: column; /* makes dropdowns sizing easier */
|
|
2183
|
+
/* Align to center by default. */
|
|
2184
|
+
align-items: center;
|
|
2185
|
+
justify-content: center;
|
|
2186
|
+
|
|
2187
|
+
/* Allow centering when max-width/max-height applies. */
|
|
2188
|
+
margin: auto;
|
|
2189
|
+
|
|
2190
|
+
/* The host is not clickable, only the overlay part is. */
|
|
2191
|
+
pointer-events: none;
|
|
2192
|
+
|
|
2193
|
+
/* Remove tap highlight on touch devices. */
|
|
2194
|
+
-webkit-tap-highlight-color: transparent;
|
|
2195
|
+
|
|
2196
|
+
/* CSS API for host */
|
|
2197
|
+
--vaadin-overlay-viewport-bottom: 0;
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
:host([hidden]),
|
|
2201
|
+
:host(:not([opened]):not([closing])),
|
|
2202
|
+
:host(:not([opened]):not([closing])) [part='overlay'] {
|
|
2203
|
+
display: none !important;
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
[part='overlay'] {
|
|
2207
|
+
-webkit-overflow-scrolling: touch;
|
|
2208
|
+
overflow: auto;
|
|
2209
|
+
pointer-events: auto;
|
|
2210
|
+
|
|
2211
|
+
/* Prevent overflowing the host */
|
|
2212
|
+
max-width: 100%;
|
|
2213
|
+
box-sizing: border-box;
|
|
2214
|
+
|
|
2215
|
+
-webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
[part='backdrop'] {
|
|
2219
|
+
z-index: -1;
|
|
2220
|
+
content: '';
|
|
2221
|
+
background: rgba(0, 0, 0, 0.5);
|
|
2222
|
+
position: fixed;
|
|
2223
|
+
inset: 0;
|
|
2224
|
+
pointer-events: auto;
|
|
2225
|
+
}
|
|
2226
|
+
`;/**
|
|
2227
|
+
* @license
|
|
2228
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2229
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2230
|
+
*/let Oi=!1;window.addEventListener("keydown",()=>{Oi=!0},{capture:!0});window.addEventListener("mousedown",()=>{Oi=!1},{capture:!0});function li(){let o=document.activeElement||document.body;for(;o.shadowRoot&&o.shadowRoot.activeElement;)o=o.shadowRoot.activeElement;return o}function Ii(){return Oi}function Va(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 ci(o){const t=o.length;if(t<2)return o;const e=Math.ceil(t/2),i=ci(o.slice(0,e)),s=ci(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 Ua(o){return o.getRootNode().activeElement===o}function Wa(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||Va(o))return!1;const e=o,i=Wa(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 qa(o){const t=[];return $s(o,t)?ci(t):t}/**
|
|
2231
|
+
@license
|
|
2232
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2233
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2234
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2235
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2236
|
+
Code distributed by Google as part of the polymer project is also
|
|
2237
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2238
|
+
*/let di=!1,Ga=[],Rs=[];function Ka(){di=!0,requestAnimationFrame(function(){di=!1,Xa(Ga),setTimeout(function(){Ja(Rs)})})}function Xa(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){di||Ka(),Rs.push([o,t,e])}/**
|
|
2239
|
+
* @license
|
|
2240
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2241
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2242
|
+
*/const Mt=o=>o.test(navigator.userAgent),ui=o=>o.test(navigator.platform),Qa=o=>o.test(navigator.vendor);Mt(/Android/u);Mt(/Chrome/u)&&Qa(/Google Inc/u);Mt(/Firefox/u);const Za=ui(/^iPad/u)||ui(/^Mac/u)&&navigator.maxTouchPoints>1,el=ui(/^iPhone/u),Vs=el||Za;Mt(/^((?!chrome|android).)*safari/iu);const tl=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(o){return!1}})();/**
|
|
2243
|
+
* @license
|
|
2244
|
+
* Copyright (c) 2017 Anton Korzunov
|
|
2245
|
+
* SPDX-License-Identifier: MIT
|
|
2246
|
+
*/let Oe=new WeakMap,ft=new WeakMap,mt={},Vt=0;const So=o=>o&&o.nodeType===Node.ELEMENT_NODE,jt=(...o)=>{console.error(`Error: ${o.join(" ")}. Skip setting aria-hidden.`)},il=(o,t)=>So(o)?t.map(e=>{if(!So(e))return jt(e,"is not a valid element"),null;let i=e;for(;i&&i!==o;){if(o.contains(i))return e;i=i.getRootNode().host}return jt(e,"is not contained inside",o),null}).filter(e=>!!e):(jt(o,"is not a valid element"),[]),ol=(o,t,e,i)=>{const s=il(t,Array.isArray(o)?o:[o]);mt[e]||(mt[e]=new WeakMap);const r=mt[e],n=[],a=new Set,l=new Set(s),d=h=>{if(!h||a.has(h))return;a.add(h);const f=h.assignedSlot;f&&d(f),d(h.parentNode||h.host)};s.forEach(d);const u=h=>{if(!h||l.has(h))return;const f=h.shadowRoot;(f?[...h.children,...f.children]:[...h.children]).forEach(m=>{if(!["template","script","style"].includes(m.localName))if(a.has(m))u(m);else{const A=m.getAttribute(i),P=A!==null&&A!=="false",N=(Oe.get(m)||0)+1,k=(r.get(m)||0)+1;Oe.set(m,N),r.set(m,k),n.push(m),N===1&&P&&ft.set(m,!0),k===1&&m.setAttribute(e,"true"),P||m.setAttribute(i,"true")}})};return u(t),a.clear(),Vt+=1,()=>{n.forEach(h=>{const f=Oe.get(h)-1,p=r.get(h)-1;Oe.set(h,f),r.set(h,p),f||(ft.has(h)?ft.delete(h):h.removeAttribute(i)),p||h.removeAttribute(e)}),Vt-=1,Vt||(Oe=new WeakMap,Oe=new WeakMap,ft=new WeakMap,mt={})}},js=(o,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(o)?o:[o]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),ol(i,t,e,"aria-hidden")};/**
|
|
2247
|
+
* @license
|
|
2248
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2249
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2250
|
+
*/class sl{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t}showModal(){const t=this.callback();this.__showOthers=js(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
|
|
2251
|
+
* @license
|
|
2252
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2253
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2254
|
+
*/class rl{saveFocus(t){this.focusNode=t||li()}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=t?t.preventScroll:!1;li()===document.body?setTimeout(()=>e.focus({preventScroll:i})):e.focus({preventScroll:i}),this.focusNode=null}}/**
|
|
2255
|
+
* @license
|
|
2256
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2257
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2258
|
+
*/const Yt=[];class nl{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return qa(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Ua).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Yt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Yt.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Yt).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,i=t?-1:1,s=this.__focusedElementIndex,r=(e.length+s+i)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select()}}/**
|
|
2259
|
+
* @license
|
|
2260
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2261
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2262
|
+
*/const je=Y(o=>typeof o.prototype.addController=="function"?o:class extends o{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
|
|
2263
|
+
* @license
|
|
2264
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2265
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2266
|
+
*/const al=o=>class extends je(o){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new sl(this),this.__focusTrapController=new nl(this),this.__focusRestorationController=new rl}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!Ii();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=li();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let i=e;const s=e.ownerDocument;for(;i&&i!==s&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
|
|
2267
|
+
* @license
|
|
2268
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2269
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2270
|
+
*/const Ys=()=>Array.from(document.body.children).filter(o=>o instanceof HTMLElement&&o._hasOverlayStackMixin&&!o.hasAttribute("closing")).sort((o,t)=>o.__zIndex-t.__zIndex||0),hi=()=>Ys().filter(o=>o.$.overlay),ll=o=>o===hi().pop(),cl=o=>class extends o{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return ll(this)}bringToFront(){let e="";const i=Ys().filter(s=>s!==this).pop();i&&(e=i.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),hi().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=hi();let i;for(;(i=e.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
|
|
2271
|
+
* @license
|
|
2272
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2273
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2274
|
+
*/const dl=o=>class extends al(cl(o)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0,sync:!0},owner:{type:Object,sync:!0},model:{type:Object,sync:!0},renderer:{type:Object,sync:!0},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged",sync:!0},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged",sync:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!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),Vs&&(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)}}};/**
|
|
2275
|
+
* @license
|
|
2276
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2277
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2278
|
+
*/function ul(o){const t=[];for(;o;){if(o.nodeType===Node.DOCUMENT_NODE){t.push(o);break}if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(o),o=o.host;continue}if(o.assignedSlot){o=o.assignedSlot;continue}o=o.parentNode}return t}function Ni(o){return o?new Set(o.split(" ")):new Set}function Ot(o){return o?[...o].join(" "):""}function Us(o,t,e){const i=Ni(o.getAttribute(t));i.add(e),o.setAttribute(t,Ot(i))}function hl(o,t,e){const i=Ni(o.getAttribute(t));if(i.delete(e),i.size===0){o.removeAttribute(t);return}o.setAttribute(t,Ot(i))}function pl(o){return o.nodeType===Node.TEXT_NODE&&o.textContent.trim()===""}/**
|
|
2279
|
+
* @license
|
|
2280
|
+
* Copyright (c) 2024 Vaadin Ltd.
|
|
2281
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2282
|
+
*/function fl(o,t){let e=null;const i=document.documentElement;function s(){e&&e.disconnect(),e=null}function r(n=!1,a=1){s();const{left:l,top:d,width:u,height:h}=o.getBoundingClientRect();if(n||t(),!u||!h)return;const f=Math.floor(d),p=Math.floor(i.clientWidth-(l+u)),m=Math.floor(i.clientHeight-(d+h)),A=Math.floor(l),N={rootMargin:`${-f}px ${-p}px ${-m}px ${-A}px`,threshold:Math.max(0,Math.min(1,a))||1};let k=!0;function V(z){let O=z[0].intersectionRatio;if(O!==a){if(!k)return r();O===0&&(O=1e-7),r(!1,O)}k=!1}e=new IntersectionObserver(V,N),e.observe(o)}return r(!0),s}/**
|
|
2283
|
+
* @license
|
|
2284
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2285
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2286
|
+
*/const Ut={start:"top",end:"bottom"},Wt={start:"left",end:"right"},Ao=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),ml=o=>class extends o{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=ul(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=fl(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,Ao.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,Ao.observe(i))),e){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(s[r],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const i=this.__shouldAlignStartVertically(e);this.style.justifyContent=i?"flex-start":"flex-end";const s=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,s),n=!s&&r||s&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Ut,this,i),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Wt,this,r);Object.assign(this.style,l,d),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,i){const s=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,s,r,this.__margins,n,this.noHorizontalOverlap,Wt)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,s,this.__margins,r,this.noVerticalOverlap,Ut)}__shouldAlignStart(e,i,s,r,n,a,l){const d=s-e[a?l.end:l.start]-r[l.end],u=e[a?l.start:l.end]-r[l.start],h=n?d:u,p=h>(n?u:d)||h>i;return n===p}__adjustBottomProperty(e,i,s){let r;if(e===i.end){if(i.end===Ut.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=s-a}this.__oldViewportHeight=n}if(i.end===Wt.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=s-a}this.__oldViewportWidth=n}}return r}__calculatePositionInOneDimension(e,i,s,r,n,a){const l=a?r.start:r.end,d=a?r.end:r.start,u=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,r,u),f=i[a?r.start:r.end]-e[s===a?r.end:r.start],p=h?`${h}px`:`${u+f*(a?-1:1)}px`;return{[l]:p,[d]:""}}};/**
|
|
2287
|
+
* @license
|
|
2288
|
+
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
2289
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2290
|
+
*/const _l=o=>class extends ml(dl(o)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Ls(e.composedPath()[0])&&e.preventDefault()}};/**
|
|
2291
|
+
* @license
|
|
2292
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2293
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2294
|
+
*/const gl=M`
|
|
2295
|
+
[part='overlay'] {
|
|
2296
|
+
display: flex;
|
|
2297
|
+
flex: auto;
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
[part~='content'] {
|
|
2301
|
+
flex: auto;
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2304
|
+
@media (forced-colors: active) {
|
|
2305
|
+
[part='overlay'] {
|
|
2306
|
+
outline: 3px solid;
|
|
2307
|
+
}
|
|
2308
|
+
}
|
|
2309
|
+
`;/**
|
|
2310
|
+
* @license
|
|
2311
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2312
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2313
|
+
*/j("vaadin-date-picker-overlay",[Ba,gl],{moduleId:"vaadin-date-picker-overlay-styles"});class bl extends _l(Tt(Pe(ve))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Me`
|
|
2314
|
+
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
2315
|
+
<div part="overlay" id="overlay">
|
|
2316
|
+
<div part="content" id="content">
|
|
2317
|
+
<slot></slot>
|
|
2318
|
+
</div>
|
|
2319
|
+
</div>
|
|
2320
|
+
`}}pe(bl);const yl=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,bt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function vl(){function o(){return!0}return Ws(o)}function xl(){try{return wl()?!0:El()?bt?!Sl():!vl():!1}catch(o){return!1}}function wl(){return localStorage.getItem("vaadin.developmentmode.force")}function El(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Sl(){return!!(bt&&Object.keys(bt).map(t=>bt[t]).filter(t=>t.productionMode).length>0)}function Ws(o,t){if(typeof o!="function")return;const e=yl.exec(o.toString());if(e)try{o=new Function(e[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return o(t)}window.Vaadin=window.Vaadin||{};const Co=function(o,t){if(window.Vaadin.developmentMode)return Ws(o,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=xl());function Al(){/*! vaadin-dev-mode:start
|
|
2321
|
+
(function () {
|
|
2322
|
+
'use strict';
|
|
2323
|
+
|
|
2324
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
2325
|
+
return typeof obj;
|
|
2326
|
+
} : function (obj) {
|
|
2327
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
2328
|
+
};
|
|
2329
|
+
|
|
2330
|
+
var classCallCheck = function (instance, Constructor) {
|
|
2331
|
+
if (!(instance instanceof Constructor)) {
|
|
2332
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2333
|
+
}
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
|
+
var createClass = function () {
|
|
2337
|
+
function defineProperties(target, props) {
|
|
2338
|
+
for (var i = 0; i < props.length; i++) {
|
|
2339
|
+
var descriptor = props[i];
|
|
2340
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
2341
|
+
descriptor.configurable = true;
|
|
2342
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
2343
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
return function (Constructor, protoProps, staticProps) {
|
|
2348
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
2349
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
|
2350
|
+
return Constructor;
|
|
2351
|
+
};
|
|
2352
|
+
}();
|
|
2353
|
+
|
|
2354
|
+
var getPolymerVersion = function getPolymerVersion() {
|
|
2355
|
+
return window.Polymer && window.Polymer.version;
|
|
2356
|
+
};
|
|
2357
|
+
|
|
2358
|
+
var StatisticsGatherer = function () {
|
|
2359
|
+
function StatisticsGatherer(logger) {
|
|
2360
|
+
classCallCheck(this, StatisticsGatherer);
|
|
2361
|
+
|
|
2362
|
+
this.now = new Date().getTime();
|
|
2363
|
+
this.logger = logger;
|
|
2364
|
+
}
|
|
2365
|
+
|
|
2366
|
+
createClass(StatisticsGatherer, [{
|
|
2367
|
+
key: 'frameworkVersionDetectors',
|
|
2368
|
+
value: function frameworkVersionDetectors() {
|
|
2369
|
+
return {
|
|
2370
|
+
'Flow': function Flow() {
|
|
2371
|
+
if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
|
|
2372
|
+
var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
|
|
2373
|
+
return window.Vaadin.Flow.clients[key];
|
|
2374
|
+
}).filter(function (client) {
|
|
2375
|
+
return client.getVersionInfo;
|
|
2376
|
+
}).map(function (client) {
|
|
2377
|
+
return client.getVersionInfo().flow;
|
|
2378
|
+
});
|
|
2379
|
+
if (flowVersions.length > 0) {
|
|
2380
|
+
return flowVersions[0];
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
},
|
|
2384
|
+
'Vaadin Framework': function VaadinFramework() {
|
|
2385
|
+
if (window.vaadin && window.vaadin.clients) {
|
|
2386
|
+
var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
|
|
2387
|
+
return client.getVersionInfo;
|
|
2388
|
+
}).map(function (client) {
|
|
2389
|
+
return client.getVersionInfo().vaadinVersion;
|
|
2390
|
+
});
|
|
2391
|
+
if (frameworkVersions.length > 0) {
|
|
2392
|
+
return frameworkVersions[0];
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
},
|
|
2396
|
+
'AngularJs': function AngularJs() {
|
|
2397
|
+
if (window.angular && window.angular.version && window.angular.version) {
|
|
2398
|
+
return window.angular.version.full;
|
|
2399
|
+
}
|
|
2400
|
+
},
|
|
2401
|
+
'Angular': function Angular() {
|
|
2402
|
+
if (window.ng) {
|
|
2403
|
+
var tags = document.querySelectorAll("[ng-version]");
|
|
2404
|
+
if (tags.length > 0) {
|
|
2405
|
+
return tags[0].getAttribute("ng-version");
|
|
2406
|
+
}
|
|
2407
|
+
return "Unknown";
|
|
2408
|
+
}
|
|
2409
|
+
},
|
|
2410
|
+
'Backbone.js': function BackboneJs() {
|
|
2411
|
+
if (window.Backbone) {
|
|
2412
|
+
return window.Backbone.VERSION;
|
|
2413
|
+
}
|
|
2414
|
+
},
|
|
2415
|
+
'React': function React() {
|
|
2416
|
+
var reactSelector = '[data-reactroot], [data-reactid]';
|
|
2417
|
+
if (!!document.querySelector(reactSelector)) {
|
|
2418
|
+
// React does not publish the version by default
|
|
2419
|
+
return "unknown";
|
|
2420
|
+
}
|
|
2421
|
+
},
|
|
2422
|
+
'Ember': function Ember() {
|
|
2423
|
+
if (window.Em && window.Em.VERSION) {
|
|
2424
|
+
return window.Em.VERSION;
|
|
2425
|
+
} else if (window.Ember && window.Ember.VERSION) {
|
|
2426
|
+
return window.Ember.VERSION;
|
|
2427
|
+
}
|
|
2428
|
+
},
|
|
2429
|
+
'jQuery': function (_jQuery) {
|
|
2430
|
+
function jQuery() {
|
|
2431
|
+
return _jQuery.apply(this, arguments);
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
jQuery.toString = function () {
|
|
2435
|
+
return _jQuery.toString();
|
|
2436
|
+
};
|
|
2437
|
+
|
|
2438
|
+
return jQuery;
|
|
2439
|
+
}(function () {
|
|
2440
|
+
if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
|
|
2441
|
+
return jQuery.prototype.jquery;
|
|
2442
|
+
}
|
|
2443
|
+
}),
|
|
2444
|
+
'Polymer': function Polymer() {
|
|
2445
|
+
var version = getPolymerVersion();
|
|
2446
|
+
if (version) {
|
|
2447
|
+
return version;
|
|
2448
|
+
}
|
|
2449
|
+
},
|
|
2450
|
+
'LitElement': function LitElement() {
|
|
2451
|
+
var version = window.litElementVersions && window.litElementVersions[0];
|
|
2452
|
+
if (version) {
|
|
2453
|
+
return version;
|
|
2454
|
+
}
|
|
2455
|
+
},
|
|
2456
|
+
'LitHtml': function LitHtml() {
|
|
2457
|
+
var version = window.litHtmlVersions && window.litHtmlVersions[0];
|
|
2458
|
+
if (version) {
|
|
2459
|
+
return version;
|
|
2460
|
+
}
|
|
2461
|
+
},
|
|
2462
|
+
'Vue.js': function VueJs() {
|
|
2463
|
+
if (window.Vue) {
|
|
2464
|
+
return window.Vue.version;
|
|
2465
|
+
}
|
|
2466
|
+
}
|
|
2467
|
+
};
|
|
2468
|
+
}
|
|
2469
|
+
}, {
|
|
2470
|
+
key: 'getUsedVaadinElements',
|
|
2471
|
+
value: function getUsedVaadinElements(elements) {
|
|
2472
|
+
var version = getPolymerVersion();
|
|
2473
|
+
var elementClasses = void 0;
|
|
2474
|
+
// NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
|
|
2475
|
+
// Check all locations calling the method getEntries() in
|
|
2476
|
+
// https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
|
|
2477
|
+
// Currently it is only used by BootstrapHandler.
|
|
2478
|
+
if (version && version.indexOf('2') === 0) {
|
|
2479
|
+
// Polymer 2: components classes are stored in window.Vaadin
|
|
2480
|
+
elementClasses = Object.keys(window.Vaadin).map(function (c) {
|
|
2481
|
+
return window.Vaadin[c];
|
|
2482
|
+
}).filter(function (c) {
|
|
2483
|
+
return c.is;
|
|
2484
|
+
});
|
|
2485
|
+
} else {
|
|
2486
|
+
// Polymer 3: components classes are stored in window.Vaadin.registrations
|
|
2487
|
+
elementClasses = window.Vaadin.registrations || [];
|
|
2488
|
+
}
|
|
2489
|
+
elementClasses.forEach(function (klass) {
|
|
2490
|
+
var version = klass.version ? klass.version : "0.0.0";
|
|
2491
|
+
elements[klass.is] = { version: version };
|
|
2492
|
+
});
|
|
2493
|
+
}
|
|
2494
|
+
}, {
|
|
2495
|
+
key: 'getUsedVaadinThemes',
|
|
2496
|
+
value: function getUsedVaadinThemes(themes) {
|
|
2497
|
+
['Lumo', 'Material'].forEach(function (themeName) {
|
|
2498
|
+
var theme;
|
|
2499
|
+
var version = getPolymerVersion();
|
|
2500
|
+
if (version && version.indexOf('2') === 0) {
|
|
2501
|
+
// Polymer 2: themes are stored in window.Vaadin
|
|
2502
|
+
theme = window.Vaadin[themeName];
|
|
2503
|
+
} else {
|
|
2504
|
+
// Polymer 3: themes are stored in custom element registry
|
|
2505
|
+
theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
|
|
2506
|
+
}
|
|
2507
|
+
if (theme && theme.version) {
|
|
2508
|
+
themes[themeName] = { version: theme.version };
|
|
2509
|
+
}
|
|
2510
|
+
});
|
|
2511
|
+
}
|
|
2512
|
+
}, {
|
|
2513
|
+
key: 'getFrameworks',
|
|
2514
|
+
value: function getFrameworks(frameworks) {
|
|
2515
|
+
var detectors = this.frameworkVersionDetectors();
|
|
2516
|
+
Object.keys(detectors).forEach(function (framework) {
|
|
2517
|
+
var detector = detectors[framework];
|
|
2518
|
+
try {
|
|
2519
|
+
var version = detector();
|
|
2520
|
+
if (version) {
|
|
2521
|
+
frameworks[framework] = { version: version };
|
|
2522
|
+
}
|
|
2523
|
+
} catch (e) {}
|
|
2524
|
+
});
|
|
2525
|
+
}
|
|
2526
|
+
}, {
|
|
2527
|
+
key: 'gather',
|
|
2528
|
+
value: function gather(storage) {
|
|
2529
|
+
var storedStats = storage.read();
|
|
2530
|
+
var gatheredStats = {};
|
|
2531
|
+
var types = ["elements", "frameworks", "themes"];
|
|
2532
|
+
|
|
2533
|
+
types.forEach(function (type) {
|
|
2534
|
+
gatheredStats[type] = {};
|
|
2535
|
+
if (!storedStats[type]) {
|
|
2536
|
+
storedStats[type] = {};
|
|
2537
|
+
}
|
|
2538
|
+
});
|
|
2539
|
+
|
|
2540
|
+
var previousStats = JSON.stringify(storedStats);
|
|
2541
|
+
|
|
2542
|
+
this.getUsedVaadinElements(gatheredStats.elements);
|
|
2543
|
+
this.getFrameworks(gatheredStats.frameworks);
|
|
2544
|
+
this.getUsedVaadinThemes(gatheredStats.themes);
|
|
2545
|
+
|
|
2546
|
+
var now = this.now;
|
|
2547
|
+
types.forEach(function (type) {
|
|
2548
|
+
var keys = Object.keys(gatheredStats[type]);
|
|
2549
|
+
keys.forEach(function (key) {
|
|
2550
|
+
if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
|
|
2551
|
+
storedStats[type][key] = { firstUsed: now };
|
|
2552
|
+
}
|
|
2553
|
+
// Discards any previously logged version number
|
|
2554
|
+
storedStats[type][key].version = gatheredStats[type][key].version;
|
|
2555
|
+
storedStats[type][key].lastUsed = now;
|
|
2556
|
+
});
|
|
2557
|
+
});
|
|
2558
|
+
|
|
2559
|
+
var newStats = JSON.stringify(storedStats);
|
|
2560
|
+
storage.write(newStats);
|
|
2561
|
+
if (newStats != previousStats && Object.keys(storedStats).length > 0) {
|
|
2562
|
+
this.logger.debug("New stats: " + newStats);
|
|
2563
|
+
}
|
|
2564
|
+
}
|
|
2565
|
+
}]);
|
|
2566
|
+
return StatisticsGatherer;
|
|
2567
|
+
}();
|
|
2568
|
+
|
|
2569
|
+
var StatisticsStorage = function () {
|
|
2570
|
+
function StatisticsStorage(key) {
|
|
2571
|
+
classCallCheck(this, StatisticsStorage);
|
|
2572
|
+
|
|
2573
|
+
this.key = key;
|
|
2574
|
+
}
|
|
2575
|
+
|
|
2576
|
+
createClass(StatisticsStorage, [{
|
|
2577
|
+
key: 'read',
|
|
2578
|
+
value: function read() {
|
|
2579
|
+
var localStorageStatsString = localStorage.getItem(this.key);
|
|
2580
|
+
try {
|
|
2581
|
+
return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
|
|
2582
|
+
} catch (e) {
|
|
2583
|
+
return {};
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
}, {
|
|
2587
|
+
key: 'write',
|
|
2588
|
+
value: function write(data) {
|
|
2589
|
+
localStorage.setItem(this.key, data);
|
|
2590
|
+
}
|
|
2591
|
+
}, {
|
|
2592
|
+
key: 'clear',
|
|
2593
|
+
value: function clear() {
|
|
2594
|
+
localStorage.removeItem(this.key);
|
|
2595
|
+
}
|
|
2596
|
+
}, {
|
|
2597
|
+
key: 'isEmpty',
|
|
2598
|
+
value: function isEmpty() {
|
|
2599
|
+
var storedStats = this.read();
|
|
2600
|
+
var empty = true;
|
|
2601
|
+
Object.keys(storedStats).forEach(function (key) {
|
|
2602
|
+
if (Object.keys(storedStats[key]).length > 0) {
|
|
2603
|
+
empty = false;
|
|
2604
|
+
}
|
|
2605
|
+
});
|
|
2606
|
+
|
|
2607
|
+
return empty;
|
|
2608
|
+
}
|
|
2609
|
+
}]);
|
|
2610
|
+
return StatisticsStorage;
|
|
2611
|
+
}();
|
|
2612
|
+
|
|
2613
|
+
var StatisticsSender = function () {
|
|
2614
|
+
function StatisticsSender(url, logger) {
|
|
2615
|
+
classCallCheck(this, StatisticsSender);
|
|
2616
|
+
|
|
2617
|
+
this.url = url;
|
|
2618
|
+
this.logger = logger;
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
createClass(StatisticsSender, [{
|
|
2622
|
+
key: 'send',
|
|
2623
|
+
value: function send(data, errorHandler) {
|
|
2624
|
+
var logger = this.logger;
|
|
2625
|
+
|
|
2626
|
+
if (navigator.onLine === false) {
|
|
2627
|
+
logger.debug("Offline, can't send");
|
|
2628
|
+
errorHandler();
|
|
2629
|
+
return;
|
|
2630
|
+
}
|
|
2631
|
+
logger.debug("Sending data to " + this.url);
|
|
2632
|
+
|
|
2633
|
+
var req = new XMLHttpRequest();
|
|
2634
|
+
req.withCredentials = true;
|
|
2635
|
+
req.addEventListener("load", function () {
|
|
2636
|
+
// Stats sent, nothing more to do
|
|
2637
|
+
logger.debug("Response: " + req.responseText);
|
|
2638
|
+
});
|
|
2639
|
+
req.addEventListener("error", function () {
|
|
2640
|
+
logger.debug("Send failed");
|
|
2641
|
+
errorHandler();
|
|
2642
|
+
});
|
|
2643
|
+
req.addEventListener("abort", function () {
|
|
2644
|
+
logger.debug("Send aborted");
|
|
2645
|
+
errorHandler();
|
|
2646
|
+
});
|
|
2647
|
+
req.open("POST", this.url);
|
|
2648
|
+
req.setRequestHeader("Content-Type", "application/json");
|
|
2649
|
+
req.send(data);
|
|
2650
|
+
}
|
|
2651
|
+
}]);
|
|
2652
|
+
return StatisticsSender;
|
|
2653
|
+
}();
|
|
2654
|
+
|
|
2655
|
+
var StatisticsLogger = function () {
|
|
2656
|
+
function StatisticsLogger(id) {
|
|
2657
|
+
classCallCheck(this, StatisticsLogger);
|
|
2658
|
+
|
|
2659
|
+
this.id = id;
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2662
|
+
createClass(StatisticsLogger, [{
|
|
2663
|
+
key: '_isDebug',
|
|
2664
|
+
value: function _isDebug() {
|
|
2665
|
+
return localStorage.getItem("vaadin." + this.id + ".debug");
|
|
2666
|
+
}
|
|
2667
|
+
}, {
|
|
2668
|
+
key: 'debug',
|
|
2669
|
+
value: function debug(msg) {
|
|
2670
|
+
if (this._isDebug()) {
|
|
2671
|
+
console.info(this.id + ": " + msg);
|
|
2672
|
+
}
|
|
2673
|
+
}
|
|
2674
|
+
}]);
|
|
2675
|
+
return StatisticsLogger;
|
|
2676
|
+
}();
|
|
2677
|
+
|
|
2678
|
+
var UsageStatistics = function () {
|
|
2679
|
+
function UsageStatistics() {
|
|
2680
|
+
classCallCheck(this, UsageStatistics);
|
|
2681
|
+
|
|
2682
|
+
this.now = new Date();
|
|
2683
|
+
this.timeNow = this.now.getTime();
|
|
2684
|
+
this.gatherDelay = 10; // Delay between loading this file and gathering stats
|
|
2685
|
+
this.initialDelay = 24 * 60 * 60;
|
|
2686
|
+
|
|
2687
|
+
this.logger = new StatisticsLogger("statistics");
|
|
2688
|
+
this.storage = new StatisticsStorage("vaadin.statistics.basket");
|
|
2689
|
+
this.gatherer = new StatisticsGatherer(this.logger);
|
|
2690
|
+
this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
createClass(UsageStatistics, [{
|
|
2694
|
+
key: 'maybeGatherAndSend',
|
|
2695
|
+
value: function maybeGatherAndSend() {
|
|
2696
|
+
var _this = this;
|
|
2697
|
+
|
|
2698
|
+
if (localStorage.getItem(UsageStatistics.optOutKey)) {
|
|
2699
|
+
return;
|
|
2700
|
+
}
|
|
2701
|
+
this.gatherer.gather(this.storage);
|
|
2702
|
+
setTimeout(function () {
|
|
2703
|
+
_this.maybeSend();
|
|
2704
|
+
}, this.gatherDelay * 1000);
|
|
2705
|
+
}
|
|
2706
|
+
}, {
|
|
2707
|
+
key: 'lottery',
|
|
2708
|
+
value: function lottery() {
|
|
2709
|
+
return true;
|
|
2710
|
+
}
|
|
2711
|
+
}, {
|
|
2712
|
+
key: 'currentMonth',
|
|
2713
|
+
value: function currentMonth() {
|
|
2714
|
+
return this.now.getYear() * 12 + this.now.getMonth();
|
|
2715
|
+
}
|
|
2716
|
+
}, {
|
|
2717
|
+
key: 'maybeSend',
|
|
2718
|
+
value: function maybeSend() {
|
|
2719
|
+
var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
2720
|
+
var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
|
|
2721
|
+
|
|
2722
|
+
if (!firstUse) {
|
|
2723
|
+
// Use a grace period to avoid interfering with tests, incognito mode etc
|
|
2724
|
+
firstUse = this.timeNow;
|
|
2725
|
+
localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
|
|
2726
|
+
}
|
|
2727
|
+
|
|
2728
|
+
if (this.timeNow < firstUse + this.initialDelay * 1000) {
|
|
2729
|
+
this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
|
|
2730
|
+
return;
|
|
2731
|
+
}
|
|
2732
|
+
if (this.currentMonth() <= monthProcessed) {
|
|
2733
|
+
this.logger.debug("This month has already been processed");
|
|
2734
|
+
return;
|
|
2735
|
+
}
|
|
2736
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
|
|
2737
|
+
// Use random sampling
|
|
2738
|
+
if (this.lottery()) {
|
|
2739
|
+
this.logger.debug("Congratulations, we have a winner!");
|
|
2740
|
+
} else {
|
|
2741
|
+
this.logger.debug("Sorry, no stats from you this time");
|
|
2742
|
+
return;
|
|
2743
|
+
}
|
|
2744
|
+
|
|
2745
|
+
this.send();
|
|
2746
|
+
}
|
|
2747
|
+
}, {
|
|
2748
|
+
key: 'send',
|
|
2749
|
+
value: function send() {
|
|
2750
|
+
// Ensure we have the latest data
|
|
2751
|
+
this.gatherer.gather(this.storage);
|
|
2752
|
+
|
|
2753
|
+
// Read, send and clean up
|
|
2754
|
+
var data = this.storage.read();
|
|
2755
|
+
data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
2756
|
+
data["usageStatisticsVersion"] = UsageStatistics.version;
|
|
2757
|
+
var info = 'This request contains usage statistics gathered from the application running in development mode. \n\nStatistics gathering is automatically disabled and excluded from production builds.\n\nFor details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.\n\n\n\n';
|
|
2758
|
+
var self = this;
|
|
2759
|
+
this.sender.send(info + JSON.stringify(data), function () {
|
|
2760
|
+
// Revert the 'month processed' flag
|
|
2761
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
|
|
2762
|
+
});
|
|
2763
|
+
}
|
|
2764
|
+
}], [{
|
|
2765
|
+
key: 'version',
|
|
2766
|
+
get: function get$1() {
|
|
2767
|
+
return '2.1.2';
|
|
2768
|
+
}
|
|
2769
|
+
}, {
|
|
2770
|
+
key: 'firstUseKey',
|
|
2771
|
+
get: function get$1() {
|
|
2772
|
+
return 'vaadin.statistics.firstuse';
|
|
2773
|
+
}
|
|
2774
|
+
}, {
|
|
2775
|
+
key: 'monthProcessedKey',
|
|
2776
|
+
get: function get$1() {
|
|
2777
|
+
return 'vaadin.statistics.monthProcessed';
|
|
2778
|
+
}
|
|
2779
|
+
}, {
|
|
2780
|
+
key: 'optOutKey',
|
|
2781
|
+
get: function get$1() {
|
|
2782
|
+
return 'vaadin.statistics.optout';
|
|
2783
|
+
}
|
|
2784
|
+
}]);
|
|
2785
|
+
return UsageStatistics;
|
|
2786
|
+
}();
|
|
2787
|
+
|
|
2788
|
+
try {
|
|
2789
|
+
window.Vaadin = window.Vaadin || {};
|
|
2790
|
+
window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
|
|
2791
|
+
window.Vaadin.usageStatsChecker.maybeGatherAndSend();
|
|
2792
|
+
} catch (e) {
|
|
2793
|
+
// Intentionally ignored as this is not a problem in the app being developed
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2796
|
+
}());
|
|
2797
|
+
|
|
2798
|
+
vaadin-dev-mode:end **/}const Cl=function(){if(typeof Co=="function")return Co(Al)};/**
|
|
2799
|
+
* @license
|
|
2800
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2801
|
+
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2802
|
+
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2803
|
+
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2804
|
+
* Code distributed by Google as part of the polymer project is also
|
|
2805
|
+
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2806
|
+
*/let ko=0,qs=0;const Fe=[];let pi=!1;function kl(){pi=!1;const o=Fe.length;for(let t=0;t<o;t++){const e=Fe[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}Fe.splice(0,o),qs+=o}const At={after(o){return{run(t){return window.setTimeout(t,o)},cancel(t){window.clearTimeout(t)}}},run(o,t){return window.setTimeout(o,t)},cancel(o){window.clearTimeout(o)}},Dl={run(o){return window.requestAnimationFrame(o)},cancel(o){window.cancelAnimationFrame(o)}},Pl={run(o){return window.requestIdleCallback?window.requestIdleCallback(o):window.setTimeout(o,16)},cancel(o){window.cancelIdleCallback?window.cancelIdleCallback(o):window.clearTimeout(o)}},Tl={run(o){pi||(pi=!0,queueMicrotask(()=>kl())),Fe.push(o);const t=ko;return ko+=1,t},cancel(o){const t=o-qs;if(t>=0){if(!Fe[t])throw new Error(`invalid async handle: ${o}`);Fe[t]=null}}};/**
|
|
2807
|
+
@license
|
|
2808
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2809
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2810
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2811
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2812
|
+
Code distributed by Google as part of the polymer project is also
|
|
2813
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2814
|
+
*/const fi=new Set;let He=class mi{static debounce(t,e,i){return t instanceof mi?t._cancelAsync():t=new mi,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,fi.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),fi.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function Ml(o){fi.add(o)}/**
|
|
2815
|
+
* @license
|
|
2816
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2817
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2818
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Cl()};let qt;const Do=new Set,Gs=o=>class extends Tt(o){static finalize(){super.finalize();const{is:e}=this;e&&!Do.has(e)&&(window.Vaadin.registrations.push(this),Do.add(e),window.Vaadin.developmentModeCallback&&(qt=He.debounce(qt,Pl,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Ml(qt)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
2819
|
+
* @license
|
|
2820
|
+
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
2821
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2822
|
+
*/class Ol{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],s=[];t.length&&(e=t.filter(r=>!this._storedNodes.includes(r))),this._storedNodes.length&&this._storedNodes.forEach((r,n)=>{const a=t.indexOf(r);a===-1?i.push(r):a!==n&&s.push(r)}),(e.length||i.length||s.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:s,removedNodes:i}),this._storedNodes=t}}/**
|
|
2823
|
+
* @license
|
|
2824
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2825
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2826
|
+
*/let Il=0;function Ks(){return Il++}/**
|
|
2827
|
+
* @license
|
|
2828
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2829
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2830
|
+
*/class Ae extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${Ks()}`}constructor(t,e,i,s={}){super();const{initializer:r,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:d}=s;this.host=t,this.slotName=e,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=r,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,d||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let s=this.defaultNode;return!s&&i&&(s=document.createElement(i),s instanceof Element&&(e!==""&&s.setAttribute("slot",e),this.defaultNode=s)),s&&(this.node=s,t.appendChild(s)),s}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Ol(i,({addedNodes:s,removedNodes:r})=>{const n=this.multiple?this.nodes:[this.node],a=s.filter(l=>!pl(l)&&!n.includes(l));r.length&&(this.nodes=n.filter(l=>!r.includes(l)),r.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
|
|
2831
|
+
* @license
|
|
2832
|
+
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
2833
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2834
|
+
*/class Xs extends Ae{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
|
|
2835
|
+
* @license
|
|
2836
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2837
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2838
|
+
*/const Nl=M`
|
|
2839
|
+
:host {
|
|
2840
|
+
display: inline-block;
|
|
2841
|
+
position: relative;
|
|
2842
|
+
outline: none;
|
|
2843
|
+
white-space: nowrap;
|
|
2844
|
+
-webkit-user-select: none;
|
|
2845
|
+
-moz-user-select: none;
|
|
2846
|
+
user-select: none;
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
:host([hidden]) {
|
|
2850
|
+
display: none !important;
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
/* Aligns the button with form fields when placed on the same line.
|
|
2854
|
+
Note, to make it work, the form fields should have the same "::before" pseudo-element. */
|
|
2855
|
+
.vaadin-button-container::before {
|
|
2856
|
+
content: '\\2003';
|
|
2857
|
+
display: inline-block;
|
|
2858
|
+
width: 0;
|
|
2859
|
+
max-height: 100%;
|
|
2860
|
+
}
|
|
2861
|
+
|
|
2862
|
+
.vaadin-button-container {
|
|
2863
|
+
display: inline-flex;
|
|
2864
|
+
align-items: center;
|
|
2865
|
+
justify-content: center;
|
|
2866
|
+
text-align: center;
|
|
2867
|
+
width: 100%;
|
|
2868
|
+
height: 100%;
|
|
2869
|
+
min-height: inherit;
|
|
2870
|
+
text-shadow: inherit;
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
[part='prefix'],
|
|
2874
|
+
[part='suffix'] {
|
|
2875
|
+
flex: none;
|
|
2876
|
+
}
|
|
2877
|
+
|
|
2878
|
+
[part='label'] {
|
|
2879
|
+
white-space: nowrap;
|
|
2880
|
+
overflow: hidden;
|
|
2881
|
+
text-overflow: ellipsis;
|
|
2882
|
+
}
|
|
2883
|
+
|
|
2884
|
+
@media (forced-colors: active) {
|
|
2885
|
+
:host {
|
|
2886
|
+
outline: 1px solid;
|
|
2887
|
+
outline-offset: -1px;
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
:host([focused]) {
|
|
2891
|
+
outline-width: 2px;
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
:host([disabled]) {
|
|
2895
|
+
outline-color: GrayText;
|
|
2896
|
+
}
|
|
2897
|
+
}
|
|
2898
|
+
`,zl=o=>o`
|
|
2899
|
+
<div class="vaadin-button-container">
|
|
2900
|
+
<span part="prefix" aria-hidden="true">
|
|
2901
|
+
<slot name="prefix"></slot>
|
|
2902
|
+
</span>
|
|
2903
|
+
<span part="label">
|
|
2904
|
+
<slot></slot>
|
|
2905
|
+
</span>
|
|
2906
|
+
<span part="suffix" aria-hidden="true">
|
|
2907
|
+
<slot name="suffix"></slot>
|
|
2908
|
+
</span>
|
|
2909
|
+
</div>
|
|
2910
|
+
<slot name="tooltip"></slot>
|
|
2911
|
+
`;/**
|
|
2912
|
+
@license
|
|
2913
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2914
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2915
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2916
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2917
|
+
Code distributed by Google as part of the polymer project is also
|
|
2918
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2919
|
+
*/const Fl=o=>o,Js=typeof document.head.style.touchAction=="string",_i="__polymerGestures",Gt="__polymerGesturesHandled",gi="__polymerGesturesTouchAction",Po=25,To=5,Ll=2,$l=["mousedown","mousemove","mouseup","click"],Rl=[0,1,4,2],Hl=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function zi(o){return $l.indexOf(o)>-1}let Bl=!1;(function(){try{const o=Object.defineProperty({},"passive",{get(){Bl=!0}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();function Vl(o){zi(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 ke(o){const t=o.type;if(!zi(t))return!1;if(t==="mousemove"){let i=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!Hl&&(i=Rl[o.which]||0),!!(i&1)}return(o.button===void 0?0:o.button)===0}function Ul(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 _e={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Wl(o){let t="auto";const e=Zs(o);for(let i=0,s;i<e.length;i++)if(s=e[i],s[gi]){t=s[gi];break}return t}function Qs(o,t,e){o.movefn=t,o.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function Le(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const Zs=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],Fi={},Ce=[];function ql(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=Zs(o);return t.length>0?t[0]:o.target}function Gl(o){const t=o.type,i=o.currentTarget[_i];if(!i)return;const s=i[t];if(!s)return;if(!o[Gt]&&(o[Gt]={},t.startsWith("touch"))){const n=o.changedTouches[0];if(t==="touchstart"&&o.touches.length===1&&(_e.touch.id=n.identifier),_e.touch.id!==n.identifier)return;Js||(t==="touchstart"||t==="touchmove")&&Kl(o)}const r=o[Gt];if(!r.skip){for(let n=0,a;n<Ce.length;n++)a=Ce[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<Ce.length;n++)a=Ce[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")_e.touch.x=t.clientX,_e.touch.y=t.clientY,_e.touch.scrollDecided=!1;else if(e==="touchmove"){if(_e.touch.scrollDecided)return;_e.touch.scrollDecided=!0;const i=Wl(o);let s=!1;const r=Math.abs(_e.touch.x-t.clientX),n=Math.abs(_e.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():Ct("track")}}function he(o,t,e){return Fi[t]?(Xl(o,t,e),!0):!1}function Xl(o,t,e){const i=Fi[t],s=i.deps,r=i.name;let n=o[_i];n||(o[_i]=n={});for(let a=0,l,d;a<s.length;a++)l=s[a],!(jl&&zi(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&o.addEventListener(l,Gl,Vl(l)),d[r]=(d[r]||0)+1,d._count=(d._count||0)+1);o.addEventListener(t,e),i.touchAction&&er(o,i.touchAction)}function Li(o){Ce.push(o),o.emits.forEach(t=>{Fi[t]=o})}function Jl(o){for(let t=0,e;t<Ce.length;t++){e=Ce[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){Js&&o instanceof HTMLElement&&Tl.run(()=>{o.style.touchAction=t}),o[gi]=t}function $i(o,t,e){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,Fl(o).dispatchEvent(i),i.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault()}}function Ct(o){const t=Jl(o);t.info&&(t.info.prevent=!0)}Li({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Le(this.info)},mousedown(o){if(!ke(o))return;const t=ye(o),e=this,i=r=>{ke(r)||(qe("up",t,r),Le(e.info))},s=r=>{ke(r)&&qe("up",t,r),Le(e.info)};Qs(this.info,i,s),qe("down",t,o)},touchstart(o){qe("down",ye(o),o.changedTouches[0],o)},touchend(o){qe("up",ye(o),o.changedTouches[0],o)}});function qe(o,t,e,i){t&&$i(t,o,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(s){return Ct(s)}})}Li({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>Ll&&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,Le(this.info)},mousedown(o){if(!ke(o))return;const t=ye(o),e=this,i=r=>{const n=r.clientX,a=r.clientY;Mo(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&Ct("tap"),e.info.addMove({x:n,y:a}),ke(r)||(e.info.state="end",Le(e.info)),t&&Kt(e.info,t,r),e.info.started=!0)},s=r=>{e.info.started&&i(r),Le(e.info)};Qs(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;Mo(this.info,i,s)&&(this.info.state==="start"&&Ct("tap"),this.info.addMove({x:i,y:s}),Kt(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}),Kt(this.info,t,e))}});function Mo(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>=To||s>=To}function Kt(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),$i(t,"track",{state:o.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return ql(e.clientX,e.clientY)}})}Li({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){ke(o)&&(this.info.x=o.clientX,this.info.y=o.clientY)},click(o){ke(o)&&Oo(this.info,o)},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(o){Oo(this.info,o.changedTouches[0],o)}});function Oo(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<=Po&&s<=Po||Ul(t))&&(o.prevent||$i(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
|
|
2920
|
+
* @license
|
|
2921
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2922
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2923
|
+
*/const tr=Y(o=>class extends o{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
|
|
2924
|
+
* @license
|
|
2925
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2926
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2927
|
+
*/const It=Y(o=>class extends o{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
|
|
2928
|
+
* @license
|
|
2929
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2930
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2931
|
+
*/const Ql=o=>class extends tr(It(o)){get _activeKeys(){return[" "]}ready(){super.ready(),he(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),he(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",i=>{this._activeKeys.includes(i.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
|
|
2932
|
+
* @license
|
|
2933
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2934
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2935
|
+
*/const Ri=Y(o=>class extends o{get _keyboardActive(){return Ii()}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}});/**
|
|
2936
|
+
* @license
|
|
2937
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
2938
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2939
|
+
*/const ir=o=>class extends tr(o){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,i){super._disabledChanged(e,i),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
|
|
2940
|
+
* @license
|
|
2941
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2942
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2943
|
+
*/const Zl=o=>class extends Ql(ir(Ri(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())}};/**
|
|
2944
|
+
* @license
|
|
2945
|
+
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2946
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2947
|
+
*/j("vaadin-button",Nl,{moduleId:"vaadin-button-styles"});class ec extends Zl(Gs(Pe(je(ve)))){static get is(){return"vaadin-button"}static get template(){return zl(Me)}ready(){super.ready(),this._tooltipController=new Xs(this),this.addController(this._tooltipController)}}pe(ec);/**
|
|
2948
|
+
* @license
|
|
2949
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2950
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2951
|
+
*/function tc(o){let t=o.getDay();t===0&&(t=7);const e=4-t,i=new Date(o.getTime()+e*24*3600*1e3),s=new Date(0,0);s.setFullYear(i.getFullYear());const r=i.getTime()-s.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function bi(o){const t=new Date(o);return t.setHours(0,0,0,0),t}function le(o,t,e=bi){return o instanceof Date&&t instanceof Date&&e(o).getTime()===e(t).getTime()}function Hi(o){return{day:o.getDate(),month:o.getMonth(),year:o.getFullYear()}}function Be(o,t,e,i){let s=!1;if(typeof i=="function"&&o){const r=Hi(o);s=i(r)}return(!t||o>=t)&&(!e||o<=e)&&!s}function or(o,t){return t.filter(e=>e!==void 0).reduce((e,i)=>{if(!i)return e;if(!e)return i;const s=Math.abs(o.getTime()-i.getTime()),r=Math.abs(e.getTime()-o.getTime());return s<r?i:e})}function sr(o){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(o)+t.getMonth()),e}function ic(o,t,e=0,i=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let s=t+Math.floor(o.getFullYear()/100)*100;return o<new Date(s-50,e,i)?s-=100:o>new Date(s+50,e,i)&&(s+=100),s}function Xe(o){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(o);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}function oc(o){const t=(l,d="00")=>(d+l).substr((d+l).length-d.length);let e="",i="0000",s=o.year;s<0?(s=-s,e="-",i="000000"):o.year>=1e4&&(e="+",i="000000");const r=e+t(s,i),n=t(o.month+1),a=t(o.day);return[r,n,a].join("-")}function sc(o){return o instanceof Date?oc({year:o.getFullYear(),month:o.getMonth(),day:o.getDate()}):""}/**
|
|
2952
|
+
@license
|
|
2953
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2954
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2955
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2956
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2957
|
+
Code distributed by Google as part of the polymer project is also
|
|
2958
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2959
|
+
*/class kt{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,lt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),lt.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(t,e,i){return t instanceof kt?t._cancelAsync():t=new kt,t.setConfig(e,i),t}}let lt=new Set;const rc=function(o){lt.add(o)},nc=function(){const o=!!lt.size;return lt.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),o};/**
|
|
2960
|
+
@license
|
|
2961
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
2962
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
2963
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
2964
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
2965
|
+
Code distributed by Google as part of the polymer project is also
|
|
2966
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2967
|
+
*/const Bi=function(){let o,t;do o=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=nc();while(o||t)};/**
|
|
2968
|
+
* @license
|
|
2969
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
2970
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2971
|
+
*/const rr=document.createElement("template");rr.innerHTML=`
|
|
2972
|
+
<style>
|
|
2973
|
+
:host {
|
|
2974
|
+
display: block;
|
|
2975
|
+
overflow: hidden;
|
|
2976
|
+
height: 500px;
|
|
2977
|
+
}
|
|
2978
|
+
|
|
2979
|
+
#scroller {
|
|
2980
|
+
position: relative;
|
|
2981
|
+
height: 100%;
|
|
2982
|
+
overflow: auto;
|
|
2983
|
+
outline: none;
|
|
2984
|
+
margin-right: -40px;
|
|
2985
|
+
-webkit-overflow-scrolling: touch;
|
|
2986
|
+
overflow-x: hidden;
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2989
|
+
#scroller.notouchscroll {
|
|
2990
|
+
-webkit-overflow-scrolling: auto;
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
#scroller::-webkit-scrollbar {
|
|
2994
|
+
display: none;
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
.buffer {
|
|
2998
|
+
position: absolute;
|
|
2999
|
+
width: var(--vaadin-infinite-scroller-buffer-width, 100%);
|
|
3000
|
+
box-sizing: border-box;
|
|
3001
|
+
padding-right: 40px;
|
|
3002
|
+
top: var(--vaadin-infinite-scroller-buffer-offset, 0);
|
|
3003
|
+
animation: fadein 0.2s;
|
|
3004
|
+
}
|
|
3005
|
+
|
|
3006
|
+
@keyframes fadein {
|
|
3007
|
+
from {
|
|
3008
|
+
opacity: 0;
|
|
3009
|
+
}
|
|
3010
|
+
to {
|
|
3011
|
+
opacity: 1;
|
|
3012
|
+
}
|
|
3013
|
+
}
|
|
3014
|
+
</style>
|
|
3015
|
+
|
|
3016
|
+
<div id="scroller" tabindex="-1">
|
|
3017
|
+
<div class="buffer"></div>
|
|
3018
|
+
<div class="buffer"></div>
|
|
3019
|
+
<div id="fullHeight"></div>
|
|
3020
|
+
</div>
|
|
3021
|
+
`;class nr extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(rr.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}disconnectedCallback(){this._debouncerScrollFinish&&this._debouncerScrollFinish.cancel(),this._debouncerUpdateClones&&this._debouncerUpdateClones.cancel(),this.__pendingFinishInit&&cancelAnimationFrame(this.__pendingFinishInit)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Bi()}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t>this._buffers[1].translateY+e,s=t<this._buffers[0].translateY+e;(i||s)&&(this._translateBuffer(s),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=He.debounce(this._debouncerScrollFinish,At.after(200),()=>{const r=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],r)&&!this._isVisible(this._buffers[1],r)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=He.debounce(this._debouncerUpdateClones,At.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let i=0;i<this.bufferSize;i++){const s=document.createElement("div");s.style.height=`${this.itemHeight}px`,s.instance={};const r=`vaadin-infinite-scroller-item-content-${Ks()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=s,e.appendChild(n),s.setAttribute("slot",r),this.appendChild(s),this._isVisible(s,t)&&this._ensureStampedInstance(s)}}),this.__pendingFinishInit=requestAnimationFrame(()=>{this._finishInit(),this.__pendingFinishInit=null})}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),t.instance.performUpdate&&t.instance.performUpdate(),Object.keys(e).forEach(i=>{t.instance[i]=e[i]})}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,s)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*s;[...i.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,r+a)}),i.updated=!0}})}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}/**
|
|
3022
|
+
* @license
|
|
3023
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3024
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3025
|
+
*/const ar=document.createElement("template");ar.innerHTML=`
|
|
3026
|
+
<style>
|
|
3027
|
+
:host {
|
|
3028
|
+
--vaadin-infinite-scroller-item-height: 270px;
|
|
3029
|
+
position: absolute;
|
|
3030
|
+
top: 0;
|
|
3031
|
+
left: 0;
|
|
3032
|
+
right: 0;
|
|
3033
|
+
bottom: 0;
|
|
3034
|
+
height: 100%;
|
|
3035
|
+
}
|
|
3036
|
+
</style>
|
|
3037
|
+
`;class ac extends nr{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(ar.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=sr(e)}}pe(ac);/**
|
|
3038
|
+
* @license
|
|
3039
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3040
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3041
|
+
*/const lr=document.createElement("template");lr.innerHTML=`
|
|
3042
|
+
<style>
|
|
3043
|
+
:host {
|
|
3044
|
+
--vaadin-infinite-scroller-item-height: 80px;
|
|
3045
|
+
width: 50px;
|
|
3046
|
+
display: block;
|
|
3047
|
+
height: 100%;
|
|
3048
|
+
position: absolute;
|
|
3049
|
+
right: 0;
|
|
3050
|
+
transform: translateX(100%);
|
|
3051
|
+
-webkit-tap-highlight-color: transparent;
|
|
3052
|
+
-webkit-user-select: none;
|
|
3053
|
+
-moz-user-select: none;
|
|
3054
|
+
user-select: none;
|
|
3055
|
+
/* Center the year scroller position. */
|
|
3056
|
+
--vaadin-infinite-scroller-buffer-offset: 50%;
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
:host::before {
|
|
3060
|
+
content: '';
|
|
3061
|
+
display: block;
|
|
3062
|
+
background: transparent;
|
|
3063
|
+
width: 0;
|
|
3064
|
+
height: 0;
|
|
3065
|
+
position: absolute;
|
|
3066
|
+
left: 0;
|
|
3067
|
+
top: 50%;
|
|
3068
|
+
transform: translateY(-50%);
|
|
3069
|
+
border-width: 6px;
|
|
3070
|
+
border-style: solid;
|
|
3071
|
+
border-color: transparent;
|
|
3072
|
+
border-left-color: #000;
|
|
3073
|
+
}
|
|
3074
|
+
</style>
|
|
3075
|
+
`;class lc extends nr{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(lr.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date,i=new Date(e);return i.setFullYear(parseInt(t)+e.getFullYear()),i.getFullYear()}}pe(lc);/**
|
|
3076
|
+
* @license
|
|
3077
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3078
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3079
|
+
*/const cc=o=>class extends o{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,i){this.toggleAttribute("selected",i&&i.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
|
|
3080
|
+
* @license
|
|
3081
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3082
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3083
|
+
*/class dc extends Pe(cc(ve)){static get is(){return"vaadin-date-picker-year"}static get template(){return Me`
|
|
3084
|
+
<style>
|
|
3085
|
+
:host {
|
|
3086
|
+
display: block;
|
|
3087
|
+
height: 100%;
|
|
3088
|
+
}
|
|
3089
|
+
</style>
|
|
3090
|
+
<div part="year-number">[[year]]</div>
|
|
3091
|
+
<div part="year-separator" aria-hidden="true"></div>
|
|
3092
|
+
`}}pe(dc);/**
|
|
3093
|
+
@license
|
|
3094
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3095
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3096
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3097
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3098
|
+
Code distributed by Google as part of the polymer project is also
|
|
3099
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3100
|
+
*/function Vi(o,t,e,i,s){let r;s&&(r=typeof e=="object"&&e!==null,r&&(i=o.__dataTemp[t]));let n=i!==e&&(i===i||e===e);return r&&n&&(o.__dataTemp[t]=e),n}const ji=Y(o=>{class t extends o{_shouldPropertyChange(i,s,r){return Vi(this,i,s,r,!0)}}return t}),uc=Y(o=>{class t extends o{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,s,r){return Vi(this,i,s,r,this.mutableData)}}return t});ji._mutablePropertyChange=Vi;/**
|
|
3101
|
+
@license
|
|
3102
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3103
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3104
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3105
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3106
|
+
Code distributed by Google as part of the polymer project is also
|
|
3107
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3108
|
+
*/let yi=null;function vi(){return yi}vi.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:vi,writable:!0}});const cr=Mi(vi),hc=ji(cr);function pc(o,t){yi=o,Object.setPrototypeOf(o,t.prototype),new t,yi=null}const fc=Mi(class{});function mc(o,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!o!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)o?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(o)i.__polymerReplaced__=document.createComment("hidden-slot"),Z(Z(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const s=i.__polymerReplaced__;s&&Z(Z(s).parentNode).replaceChild(i,s)}else i.style&&(o?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=o,i._showHideChildren&&i._showHideChildren(o)}}class xe extends fc{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let s=this.root.firstChild;s;s=s.nextSibling)e.push(s),s.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let i in this.__hostProps)this._setPendingProperty(i,this.__dataHost["_host_"+i]);for(let i in t)this._setPendingProperty(i,t[i])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,s=>{s.model=this,i(s)});else{let s=this.__dataHost.__dataHost;s&&s._addEventListenerToNode(t,e,i)}}_showHideChildren(t){mc(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}xe.prototype.__dataHost;xe.prototype.__templatizeOptions;xe.prototype._methodHost;xe.prototype.__templatizeOwner;xe.prototype.__hostProps;const _c=ji(xe);function Io(o){let t=o.__dataHost;return t&&t._methodHost||t}function gc(o,t,e){let i=e.mutableData?_c:xe;xi.mixin&&(i=xi.mixin(i));let s=class extends i{};return s.prototype.__templatizeOptions=e,s.prototype._bindTemplate(o),vc(s,o,t,e),s}function bc(o,t,e,i){let s=e.forwardHostProp;if(s&&t.hasHostProps){const r=o.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?hc:cr;class d extends l{}n=t.templatizeTemplateClass=d}else{const l=o.constructor;class d extends l{}n=t.templatizeTemplateClass=d}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:yc(l,s)}),n.prototype._createNotifyingProperty("_host_"+l);fs&&i&&Ec(t,e,i)}if(o.__dataProto&&Object.assign(o.__data,o.__dataProto),r)pc(o,n),o.__dataTemp={},o.__dataPending=null,o.__dataOld=null,o._enableProperties();else{Object.setPrototypeOf(o,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in o){const d=o[l];delete o[l],o.__data[l]=d}}}}function yc(o,t){return function(i,s,r){t.call(i.__templatizeOwner,s.substring(6),r[s])}}function vc(o,t,e,i){let s=e.hostProps||{};for(let r in i.instanceProps){delete s[r];let n=i.notifyInstanceProp;n&&o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:xc(r,n)})}if(i.forwardHostProp&&t.__dataHost)for(let r in s)e.hasHostProps||(e.hasHostProps=!0),o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:wc()})}function xc(o,t){return function(i,s,r){t.call(i.__templatizeOwner,i,s,r[s])}}function wc(){return function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0)}}function xi(o,t,e){if(Et&&!Io(o))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},o.__templatizeOwner)throw new Error("A <template> can only be templatized once");o.__templatizeOwner=t;let s=(t?t.constructor:xe)._parseTemplate(o),r=s.templatizeInstanceClass;r||(r=gc(o,s,e),s.templatizeInstanceClass=r);const n=Io(o);bc(o,s,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=o,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=s.hostProps,a=a,a}function Ec(o,t,e){const i=e.constructor._properties,{propertyEffects:s}=o,{instanceProps:r}=t;for(let n in s)if(!i[n]&&!(r&&r[n])){const a=s[n];for(let l=0;l<a.length;l++){const{part:d}=a[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Sc(o,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=o)t=e.__dataHost;else return e;else t=Z(t).parentNode;return null}/**
|
|
3109
|
+
@license
|
|
3110
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3111
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3112
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3113
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3114
|
+
Code distributed by Google as part of the polymer project is also
|
|
3115
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3116
|
+
*/let No=!1;function Ac(){if(ps&&!hs){if(!No){No=!0;const o=document.createElement("style");o.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(o)}return!0}return!1}/**
|
|
3117
|
+
@license
|
|
3118
|
+
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3119
|
+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
3120
|
+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
3121
|
+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3122
|
+
Code distributed by Google as part of the polymer project is also
|
|
3123
|
+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3124
|
+
*/const Cc=uc(ve);class zo extends Cc{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!no,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Ac()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=Z(Z(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let s=new MutationObserver(()=>{if(this.querySelector("template"))s.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return s.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=xi(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(s,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(s,r)},notifyInstanceProp:function(s,r,n){if(Tn(this.as,r)){let a=s[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=rt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)t.indexOf(e[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=kt.debounce(this.__renderDebouncer,e>0?Fn.after(e):Ss,t.bind(this)),rc(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Bi()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!no||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter((i,s,r)=>this.__filterFn(t[i],s,r))),this.__sortFn&&e.sort((i,s)=>this.__sortFn(t[i],t[s])),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),s=Math.max(e-i,0),this.__chunkCount=s||1):(s=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+s,t)),this.__shouldMeasureChunk=s===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,i){const s=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=i[r],l=t[a];s[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a)}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n)}__detachInstance(t){let e=this.__instances[t];const i=Z(e.root);for(let s=0;s<e.children.length;s++){let r=e.children[s];i.appendChild(r)}return e}__attachInstance(t,e){let i=this.__instances[t];e.insertBefore(i.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,i){let s={};return s[this.as]=t,s[this.indexAs]=e,s[this.itemsIndexAs]=i,new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let r=this.__instances[e+1],n=r?r.children[0]:this;return Z(Z(this).parentNode).insertBefore(s.root,n),this.__instances[e]=s,s}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let i=t.slice(6),s=i.indexOf("."),r=s<0?i:i.substring(0,s);if(r==parseInt(r,10)){let n=s<0?"":i.substring(s+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,e,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return Sc(this.template,t)}}customElements.define(zo.is,zo);/**
|
|
3125
|
+
* @license
|
|
3126
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3127
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3128
|
+
*/const kc=o=>class extends Ri(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},enteredDate:{type:Date},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean},__hasFocus:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>le(e.date,this.focusedDate))}ready(){super.ready(),he(this.$.monthGrid,"tap",this._handleTap.bind(this))}_setFocused(e){super._setFocused(e),this.__hasFocus=e}_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:!Be(r,i,s)&&!Be(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=>le(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 le(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 tc(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}};/**
|
|
3129
|
+
* @license
|
|
3130
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3131
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3132
|
+
*/const Dc=M`
|
|
3133
|
+
:host {
|
|
3134
|
+
display: block;
|
|
3135
|
+
}
|
|
3136
|
+
|
|
3137
|
+
#monthGrid {
|
|
3138
|
+
width: 100%;
|
|
3139
|
+
border-collapse: collapse;
|
|
3140
|
+
}
|
|
3141
|
+
|
|
3142
|
+
#days-container tr,
|
|
3143
|
+
#weekdays-container tr {
|
|
3144
|
+
display: flex;
|
|
3145
|
+
}
|
|
3146
|
+
|
|
3147
|
+
[part~='date'] {
|
|
3148
|
+
outline: none;
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3151
|
+
[part~='disabled'] {
|
|
3152
|
+
pointer-events: none;
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
[part='week-number'][hidden],
|
|
3156
|
+
[part='weekday'][hidden] {
|
|
3157
|
+
display: none;
|
|
3158
|
+
}
|
|
3159
|
+
|
|
3160
|
+
[part='weekday'],
|
|
3161
|
+
[part~='date'] {
|
|
3162
|
+
width: calc(100% / 7);
|
|
3163
|
+
padding: 0;
|
|
3164
|
+
font-weight: normal;
|
|
3165
|
+
}
|
|
3166
|
+
|
|
3167
|
+
[part='weekday']:empty,
|
|
3168
|
+
[part='week-number'] {
|
|
3169
|
+
width: 12.5%;
|
|
3170
|
+
flex-shrink: 0;
|
|
3171
|
+
padding: 0;
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
:host([week-numbers]) [part='weekday']:not(:empty),
|
|
3175
|
+
:host([week-numbers]) [part~='date'] {
|
|
3176
|
+
width: 12.5%;
|
|
3177
|
+
}
|
|
3178
|
+
|
|
3179
|
+
@media (forced-colors: active) {
|
|
3180
|
+
[part~='date'][part~='focused'] {
|
|
3181
|
+
outline: 1px solid;
|
|
3182
|
+
}
|
|
3183
|
+
|
|
3184
|
+
[part~='date'][part~='selected'] {
|
|
3185
|
+
outline: 3px solid;
|
|
3186
|
+
}
|
|
3187
|
+
}
|
|
3188
|
+
`;/**
|
|
3189
|
+
* @license
|
|
3190
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3191
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3192
|
+
*/j("vaadin-month-calendar",Dc,{moduleId:"vaadin-month-calendar-styles"});class Pc extends kc(Pe(ve)){static get template(){return Me`
|
|
3193
|
+
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
3194
|
+
<table
|
|
3195
|
+
id="monthGrid"
|
|
3196
|
+
role="grid"
|
|
3197
|
+
aria-labelledby="month-header"
|
|
3198
|
+
on-touchend="_preventDefault"
|
|
3199
|
+
on-touchstart="_onMonthGridTouchStart"
|
|
3200
|
+
>
|
|
3201
|
+
<thead id="weekdays-container">
|
|
3202
|
+
<tr role="row" part="weekdays">
|
|
3203
|
+
<th part="weekday" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]"></th>
|
|
3204
|
+
<template is="dom-repeat" items="[[_getWeekDayNames(i18n, showWeekNumbers)]]">
|
|
3205
|
+
<th role="columnheader" part="weekday" scope="col" abbr$="[[item.weekDay]]" aria-hidden="true">
|
|
3206
|
+
[[item.weekDayShort]]
|
|
3207
|
+
</th>
|
|
3208
|
+
</template>
|
|
3209
|
+
</tr>
|
|
3210
|
+
</thead>
|
|
3211
|
+
<tbody id="days-container">
|
|
3212
|
+
<template is="dom-repeat" items="[[_weeks]]" as="week">
|
|
3213
|
+
<tr role="row">
|
|
3214
|
+
<td part="week-number" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]">
|
|
3215
|
+
[[__getWeekNumber(week)]]
|
|
3216
|
+
</td>
|
|
3217
|
+
<template is="dom-repeat" items="[[week]]">
|
|
3218
|
+
<td
|
|
3219
|
+
role="gridcell"
|
|
3220
|
+
part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate, isDateDisabled, enteredDate, __hasFocus)]]"
|
|
3221
|
+
date="[[item]]"
|
|
3222
|
+
tabindex$="[[__getDayTabindex(item, focusedDate)]]"
|
|
3223
|
+
disabled$="[[__isDayDisabled(item, minDate, maxDate, isDateDisabled)]]"
|
|
3224
|
+
aria-selected$="[[__getDayAriaSelected(item, selectedDate)]]"
|
|
3225
|
+
aria-disabled$="[[__getDayAriaDisabled(item, minDate, maxDate, isDateDisabled)]]"
|
|
3226
|
+
aria-label$="[[__getDayAriaLabel(item)]]"
|
|
3227
|
+
>[[_getDate(item)]]</td
|
|
3228
|
+
>
|
|
3229
|
+
</template>
|
|
3230
|
+
</tr>
|
|
3231
|
+
</template>
|
|
3232
|
+
</tbody>
|
|
3233
|
+
</table>
|
|
3234
|
+
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,i,s,r,n,a,l){const d=["date"],u=t>bi(new Date),h=t<bi(new Date);return this.__isDayDisabled(t,s,r,n)&&d.push("disabled"),le(t,e)&&(l||le(t,a))&&d.push("focused"),this.__isDaySelected(t,i)&&d.push("selected"),this._isToday(t)&&d.push("today"),h&&d.push("past"),u&&d.push("future"),d.join(" ")}__isDaySelected(t,e){return le(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,i,s){return!Be(t,e,i,s)}__getDayAriaDisabled(t,e,i,s){if(!(t===void 0||e===void 0&&i===void 0&&s===void 0)&&this.__isDayDisabled(t,e,i,s))return"true"}__getDayTabindex(t,e){return le(t,e)?"0":"-1"}}pe(Pc);/**
|
|
3235
|
+
* @license
|
|
3236
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3237
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3238
|
+
*/class dr{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(t){typeof this.callback=="function"&&this.callback(t.matches)}}/**
|
|
3239
|
+
* @license
|
|
3240
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3241
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3242
|
+
*/const Tc=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",sync:!0},_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},enteredDate:{type:Date,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled, enteredDate)","__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"),he(this.$.scrollers,"track",this._track.bind(this)),he(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),he(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),he(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)),he(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)),he(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"),he(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,f){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,p.enteredDate=f,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=He.debounce(this._debouncer,At.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,i,s){return e&&i&&typeof i.formatDate=="function"?i.formatDate(Hi(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,f)=>(d/=f/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){le(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&&le(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(e,i){return ut(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 ut(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{Bs(this,()=>{Bi(),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 Be(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}};/**
|
|
3243
|
+
* @license
|
|
3244
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3245
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3246
|
+
*/const Mc=M`
|
|
3247
|
+
:host {
|
|
3248
|
+
display: flex;
|
|
3249
|
+
flex-direction: column;
|
|
3250
|
+
height: 100%;
|
|
3251
|
+
width: 100%;
|
|
3252
|
+
outline: none;
|
|
3253
|
+
}
|
|
3254
|
+
|
|
3255
|
+
[part='overlay-header'] {
|
|
3256
|
+
display: flex;
|
|
3257
|
+
flex-shrink: 0;
|
|
3258
|
+
flex-wrap: nowrap;
|
|
3259
|
+
align-items: center;
|
|
3260
|
+
}
|
|
3261
|
+
|
|
3262
|
+
:host(:not([fullscreen])) [part='overlay-header'] {
|
|
3263
|
+
display: none;
|
|
3264
|
+
}
|
|
3265
|
+
|
|
3266
|
+
[part='label'] {
|
|
3267
|
+
flex-grow: 1;
|
|
3268
|
+
}
|
|
3269
|
+
|
|
3270
|
+
[hidden] {
|
|
3271
|
+
display: none !important;
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
[part='years-toggle-button'] {
|
|
3275
|
+
display: flex;
|
|
3276
|
+
}
|
|
3277
|
+
|
|
3278
|
+
#scrollers {
|
|
3279
|
+
display: flex;
|
|
3280
|
+
height: 100%;
|
|
3281
|
+
width: 100%;
|
|
3282
|
+
position: relative;
|
|
3283
|
+
overflow: hidden;
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
:host([desktop]) ::slotted([slot='months']) {
|
|
3287
|
+
right: 50px;
|
|
3288
|
+
transform: none !important;
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3291
|
+
:host([desktop]) ::slotted([slot='years']) {
|
|
3292
|
+
transform: none !important;
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
:host(.animate) ::slotted([slot='months']),
|
|
3296
|
+
:host(.animate) ::slotted([slot='years']) {
|
|
3297
|
+
transition: all 200ms;
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
[part='toolbar'] {
|
|
3301
|
+
display: flex;
|
|
3302
|
+
justify-content: space-between;
|
|
3303
|
+
z-index: 2;
|
|
3304
|
+
flex-shrink: 0;
|
|
3305
|
+
}
|
|
3306
|
+
`;/**
|
|
3307
|
+
* @license
|
|
3308
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3309
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3310
|
+
*/j("vaadin-date-picker-overlay-content",Mc,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Oc extends Tc(je(Pe(Tt(ve)))){static get template(){return Me`
|
|
3311
|
+
<div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
|
|
3312
|
+
<div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
|
|
3313
|
+
<div part="clear-button" hidden$="[[!selectedDate]]"></div>
|
|
3314
|
+
<div part="toggle-button"></div>
|
|
3315
|
+
|
|
3316
|
+
<div part="years-toggle-button" hidden$="[[_desktopMode]]" aria-hidden="true">
|
|
3317
|
+
[[_yearAfterXMonths(_visibleMonthIndex)]]
|
|
3318
|
+
</div>
|
|
3319
|
+
</div>
|
|
3320
|
+
|
|
3321
|
+
<div id="scrollers">
|
|
3322
|
+
<slot name="months"></slot>
|
|
3323
|
+
<slot name="years"></slot>
|
|
3324
|
+
</div>
|
|
3325
|
+
|
|
3326
|
+
<div on-touchend="_preventDefault" role="toolbar" part="toolbar">
|
|
3327
|
+
<slot name="today-button"></slot>
|
|
3328
|
+
<slot name="cancel-button"></slot>
|
|
3329
|
+
</div>
|
|
3330
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}pe(Oc);/**
|
|
3331
|
+
* @license
|
|
3332
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3333
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3334
|
+
*/const ur=Y(o=>class extends Ri(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)}});/**
|
|
3335
|
+
* @license
|
|
3336
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3337
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3338
|
+
*/const Xt=new WeakMap;function Ic(o){return Xt.has(o)||Xt.set(o,new Set),Xt.get(o)}function Nc(o,t){const e=document.createElement("style");e.textContent=o,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const zc=Y(o=>class extends o{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),i=Ic(e);this.slotStyles.forEach(s=>{i.has(s)||(Nc(s,e),i.add(s))})}});/**
|
|
3339
|
+
* @license
|
|
3340
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3341
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3342
|
+
*/const hr=Y(o=>class extends o{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e),this._hasInputValue=e&&e.length>0}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,i){e?this._addInputListeners(e):i&&this._removeInputListeners(i)}_hasInputValueChanged(e,i){(e||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const i=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=i.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,i){this._toggleHasValue(this._hasValue),!(e===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const i=e.composedPath()[0];this._hasInputValue=i.value.length>0}});/**
|
|
3343
|
+
* @license
|
|
3344
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3345
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3346
|
+
*/const Fc=o=>class extends hr(It(o)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),tl||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
|
|
3347
|
+
* @license
|
|
3348
|
+
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
3349
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3350
|
+
*/const Jt=new Map;function Yi(o){return Jt.has(o)||Jt.set(o,new WeakMap),Jt.get(o)}function pr(o,t){o&&o.removeAttribute(t)}function fr(o,t){if(!o||!t)return;const e=Yi(t);if(e.has(o))return;const i=Ni(o.getAttribute(t));e.set(o,new Set(i))}function Lc(o,t){if(!o)return;const e=Yi(t),i=e.get(o);!i||i.size===0?o.removeAttribute(t):Us(o,t,Ot(i)),e.delete(o)}function Qt(o,t,e={newId:null,oldId:null,fromUser:!1}){if(!o||!t)return;const{newId:i,oldId:s,fromUser:r}=e,n=Yi(t),a=n.get(o);if(!r&&a){s&&a.delete(s),i&&a.add(i);return}r&&(a?i||n.delete(o):fr(o,t),pr(o,t)),hl(o,t,s);const l=i||Ot(a);l&&Us(o,t,l)}function $c(o,t){fr(o,t),pr(o,t)}/**
|
|
3351
|
+
* @license
|
|
3352
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3353
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3354
|
+
*/class Rc{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?($c(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Lc(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){Qt(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){Qt(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Qt(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
|
|
3355
|
+
* @license
|
|
3356
|
+
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
3357
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3358
|
+
*/const de=document.createElement("div");de.style.position="fixed";de.style.clip="rect(0px, 0px, 0px, 0px)";de.setAttribute("aria-live","polite");document.body.appendChild(de);let _t;function Hc(o,t={}){const e=t.mode||"polite",i=t.timeout===void 0?150:t.timeout;e==="alert"?(de.removeAttribute("aria-live"),de.removeAttribute("role"),_t=He.debounce(_t,Dl,()=>{de.setAttribute("role","alert")})):(_t&&_t.cancel(),de.removeAttribute("role"),de.setAttribute("aria-live",e)),de.textContent="",setTimeout(()=>{de.textContent=o},i)}/**
|
|
3359
|
+
* @license
|
|
3360
|
+
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
3361
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3362
|
+
*/class Ui extends Ae{constructor(t,e,i,s={}){super(t,e,i,Nt(dt({},s),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(i=>{const s=i.target,r=s===this.node;i.type==="attributes"?r&&this.__updateNodeId(s):(r||s.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId)}}/**
|
|
3363
|
+
* @license
|
|
3364
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3365
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3366
|
+
*/class Bc extends Ui{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&&Hc(e,{mode:"assertive"})),super.updateDefaultNode(t)}}/**
|
|
3367
|
+
* @license
|
|
3368
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3369
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3370
|
+
*/class Vc extends Ui{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)}}/**
|
|
3371
|
+
* @license
|
|
3372
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3373
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3374
|
+
*/class jc extends Ui{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
|
|
3375
|
+
* @license
|
|
3376
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3377
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3378
|
+
*/const Yc=Y(o=>class extends je(o){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new jc(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
|
|
3379
|
+
* @license
|
|
3380
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3381
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3382
|
+
*/const mr=Y(o=>class extends o{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},manualValidation:{type:Boolean,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}_requestValidation(){this.manualValidation||this.validate()}});/**
|
|
3383
|
+
* @license
|
|
3384
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3385
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3386
|
+
*/const Uc=o=>class extends mr(Yc(je(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 Rc(this),this._helperController=new Vc(this),this._errorController=new Bc(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)})}};/**
|
|
3387
|
+
* @license
|
|
3388
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3389
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3390
|
+
*/const Wc=Y(o=>class extends o{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((i,s)=>{this._delegateAttribute(i,e[s])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((i,s)=>{this._delegateProperty(i,e[s])})}_delegateAttribute(e,i){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(e,i):i?this.stateTarget.setAttribute(e,i):this.stateTarget.removeAttribute(e))}_delegateProperty(e,i){this.stateTarget&&(this.stateTarget[e]=i)}});/**
|
|
3391
|
+
* @license
|
|
3392
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3393
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3394
|
+
*/const _r=Y(o=>class extends Wc(mr(hr(o))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...i){if(!e)return;const s=this._hasValidConstraints(i),r=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this._requestValidation():r&&!this.manualValidation&&this._setInvalid(!1),this.__previousHasConstraints=s}_onChange(e){e.stopPropagation(),this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
|
|
3395
|
+
* @license
|
|
3396
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3397
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3398
|
+
*/const qc=o=>class extends zc(ur(_r(Uc(Fc(It(o)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
|
|
3399
|
+
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
3400
|
+
font: inherit;
|
|
3401
|
+
color: inherit;
|
|
3402
|
+
}
|
|
3403
|
+
`]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=He.debounce(this._preventInputDebouncer,At.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const i=e.clipboardData.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const i=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(i){console.error(i)}}};/**
|
|
3404
|
+
* @license
|
|
3405
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3406
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3407
|
+
*/class Gc extends Ae{constructor(t,e,i={}){const{uniqueIdPrefix:s}=i;super(t,"input","input",{initializer:(r,n)=>{n.value&&(r.value=n.value),n.type&&r.setAttribute("type",n.type),r.id=this.defaultId,typeof e=="function"&&e(r)},useUniqueId:!0,uniqueIdPrefix:s})}}/**
|
|
3408
|
+
* @license
|
|
3409
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3410
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3411
|
+
*/class Kc{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}/**
|
|
3412
|
+
* @license
|
|
3413
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3414
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3415
|
+
*/const Xc=M`
|
|
3416
|
+
[part='clear-button'] {
|
|
3417
|
+
display: none;
|
|
3418
|
+
cursor: default;
|
|
3419
|
+
}
|
|
3420
|
+
|
|
3421
|
+
[part='clear-button']::before {
|
|
3422
|
+
content: '\\2715';
|
|
3423
|
+
}
|
|
3424
|
+
|
|
3425
|
+
:host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
|
|
3426
|
+
display: block;
|
|
3427
|
+
}
|
|
3428
|
+
`;/**
|
|
3429
|
+
* @license
|
|
3430
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3431
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3432
|
+
*/const Jc=M`
|
|
3433
|
+
:host {
|
|
3434
|
+
display: inline-flex;
|
|
3435
|
+
outline: none;
|
|
3436
|
+
}
|
|
3437
|
+
|
|
3438
|
+
:host::before {
|
|
3439
|
+
content: '\\2003';
|
|
3440
|
+
width: 0;
|
|
3441
|
+
display: inline-block;
|
|
3442
|
+
/* Size and position this element on the same vertical position as the input-field element
|
|
3443
|
+
to make vertical align for the host element work as expected */
|
|
3444
|
+
}
|
|
3445
|
+
|
|
3446
|
+
:host([hidden]) {
|
|
3447
|
+
display: none !important;
|
|
3448
|
+
}
|
|
3449
|
+
|
|
3450
|
+
:host(:not([has-label])) [part='label'] {
|
|
3451
|
+
display: none;
|
|
3452
|
+
}
|
|
3453
|
+
|
|
3454
|
+
@media (forced-colors: active) {
|
|
3455
|
+
:host(:not([readonly])) [part='input-field'] {
|
|
3456
|
+
outline: 1px solid;
|
|
3457
|
+
outline-offset: -1px;
|
|
3458
|
+
}
|
|
3459
|
+
:host([focused]) [part='input-field'] {
|
|
3460
|
+
outline-width: 2px;
|
|
3461
|
+
}
|
|
3462
|
+
:host([disabled]) [part='input-field'] {
|
|
3463
|
+
outline-color: GrayText;
|
|
3464
|
+
}
|
|
3465
|
+
}
|
|
3466
|
+
`;/**
|
|
3467
|
+
* @license
|
|
3468
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3469
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3470
|
+
*/const Qc=M`
|
|
3471
|
+
[class$='container'] {
|
|
3472
|
+
display: flex;
|
|
3473
|
+
flex-direction: column;
|
|
3474
|
+
min-width: 100%;
|
|
3475
|
+
max-width: 100%;
|
|
3476
|
+
width: var(--vaadin-field-default-width, 12em);
|
|
3477
|
+
}
|
|
3478
|
+
`;/**
|
|
3479
|
+
* @license
|
|
3480
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3481
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3482
|
+
*/const Zc=[Jc,Qc,Xc];/**
|
|
3483
|
+
* @license
|
|
3484
|
+
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
3485
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3486
|
+
*/const ed=o=>class extends o{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,i){if(!i||e===void 0)return;const{classList:s}=i;if(this.__initialClasses||(this.__initialClasses=new Set(s)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&s.remove(...n)}const r=typeof e=="string"?e.split(" ").filter(Boolean):[];r.length>0&&s.add(...r),this.__previousClasses=r}};/**
|
|
3487
|
+
* @license
|
|
3488
|
+
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3489
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3490
|
+
*/class td{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}/**
|
|
3491
|
+
* @license
|
|
3492
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3493
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3494
|
+
*/const id=Object.freeze({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(o){const t=String(o.year).replace(/\d+/u,e=>"0000".substr(e.length)+e);return[o.month+1,o.day,t].join("/")},parseDate(o){const t=o.split("/"),e=new Date;let i,s=e.getMonth(),r=e.getFullYear();if(t.length===3){if(s=parseInt(t[0])-1,i=parseInt(t[1]),r=parseInt(t[2]),t[2].length<3&&r>=0){const n=this.referenceDate?Xe(this.referenceDate):new Date;r=ic(n,r,s,i)}}else t.length===2?(s=parseInt(t[0])-1,i=parseInt(t[1])):t.length===1&&(i=parseInt(t[0]));if(i!==void 0)return{day:i,month:s,year:r}},formatTitle:(o,t)=>`${o} ${t}`}),od=o=>class extends ed(je(ur(_r(It(o))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:{type:Boolean,sync:!0},showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>dt({},id)},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Vs},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},__enteredDate:{type:Date,sync:!0}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled, __enteredDate)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e;const i=this.__parseDate(e);this.__setEnteredDate(i)}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!Ii()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this._requestValidation())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new dr(this._fullscreenMediaQuery,i=>{this._fullscreen=i})),this.addController(new td(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const i=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close()}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",s=>{this.__commitDate(s.detail.date),this._close()}),i.addEventListener("date-selected",s=>{this.__commitDate(s.detail.date)}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),i.addEventListener("focusout",s=>{this._shouldRemoveFocus(s)&&this._setFocused(!1)}),i.addEventListener("focused-date-changed",s=>{this._focusedDate=s.detail.value}),i.addEventListener("click",s=>s.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(e);if(i&&(i=Xe(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Hi(e))}checkValidity(){const e=this._inputElementValue,i=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),s=!this._selectedDate||Be(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&this.inputElement.checkValidity&&(r=this.inputElement.checkValidity()),i&&s&&r}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:i}=e;return this.opened&&i!==null&&i!==document.body&&!this.contains(i)&&!this._overlayContent.contains(i)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this._requestValidation(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,i,s,r,n,a){return!e||i&&(!a||n)||s&&n||!r.parseDate}_formatISO(e){return sc(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,i){e===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,i){e===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,i){const s=Xe(e);if(e&&!s){this.value=i;return}e?le(this._selectedDate,s)||(this._selectedDate=s,i!==void 0&&this._requestValidation()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,i,s,r,n,a,l,d,u,h){e&&(e.i18n=i,e.label=s,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=d,e.isDateDisabled=u,e.enteredDate=h)}__updateOverlayContentTheme(e,i){e&&(i?e.setAttribute("theme",i):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,i){e&&e.toggleAttribute("fullscreen",i)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const i=this._getInitialPosition();e.initialPosition=i;const s=e.focusedDate||i;e.scrollToDate(s),this._ignoreFocusedDateChange=!0,e.focusedDate=s,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=js(n)}_getInitialPosition(){const e=Xe(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Be(i,this._minDate,this._maxDate,this.isDateDisabled)?i:this._minDate||this._maxDate?or(i,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",i=this.__parseDate(e);i?this.__commitDate(i):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this._requestValidation()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,i)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open();const e=this.__parseDate(this._inputElementValue||"");e&&(this._ignoreFocusedDateChange=!0,le(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1),this.__setEnteredDate(e)}__setEnteredDate(e){e?le(this.__enteredDate,e)||(this.__enteredDate=e):this.__enteredDate!=null&&(this.__enteredDate=null)}__computeMinOrMaxDate(e){return Xe(e)}};/**
|
|
3495
|
+
* @license
|
|
3496
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3497
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3498
|
+
*/const sd=M`
|
|
3499
|
+
:host([opened]) {
|
|
3500
|
+
pointer-events: auto;
|
|
3501
|
+
}
|
|
3502
|
+
|
|
3503
|
+
:host([dir='rtl']) [part='input-field'] {
|
|
3504
|
+
direction: ltr;
|
|
3505
|
+
}
|
|
3506
|
+
|
|
3507
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
|
|
3508
|
+
direction: rtl;
|
|
3509
|
+
text-align: left;
|
|
3510
|
+
}
|
|
3511
|
+
`;/**
|
|
3512
|
+
* @license
|
|
3513
|
+
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3514
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3515
|
+
*/j("vaadin-date-picker",[Zc,sd],{moduleId:"vaadin-date-picker-styles"});class rd extends od(qc(Pe(Gs(ve)))){static get is(){return"vaadin-date-picker"}static get template(){return Me`
|
|
3516
|
+
<div class="vaadin-date-picker-container">
|
|
3517
|
+
<div part="label">
|
|
3518
|
+
<slot name="label"></slot>
|
|
3519
|
+
<span part="required-indicator" aria-hidden="true" on-click="focus"></span>
|
|
3520
|
+
</div>
|
|
3521
|
+
|
|
3522
|
+
<vaadin-input-container
|
|
3523
|
+
part="input-field"
|
|
3524
|
+
readonly="[[readonly]]"
|
|
3525
|
+
disabled="[[disabled]]"
|
|
3526
|
+
invalid="[[invalid]]"
|
|
3527
|
+
theme$="[[_theme]]"
|
|
3528
|
+
>
|
|
3529
|
+
<slot name="prefix" slot="prefix"></slot>
|
|
3530
|
+
<slot name="input"></slot>
|
|
3531
|
+
<div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
|
|
3532
|
+
<div part="toggle-button" slot="suffix" aria-hidden="true" on-click="_toggle"></div>
|
|
3533
|
+
</vaadin-input-container>
|
|
3534
|
+
|
|
3535
|
+
<div part="helper-text">
|
|
3536
|
+
<slot name="helper"></slot>
|
|
3537
|
+
</div>
|
|
3538
|
+
|
|
3539
|
+
<div part="error-message">
|
|
3540
|
+
<slot name="error-message"></slot>
|
|
3541
|
+
</div>
|
|
3542
|
+
</div>
|
|
3543
|
+
|
|
3544
|
+
<vaadin-date-picker-overlay
|
|
3545
|
+
id="overlay"
|
|
3546
|
+
fullscreen$="[[_fullscreen]]"
|
|
3547
|
+
theme$="[[_theme]]"
|
|
3548
|
+
opened="{{opened}}"
|
|
3549
|
+
on-vaadin-overlay-escape-press="_onOverlayEscapePress"
|
|
3550
|
+
on-vaadin-overlay-open="_onOverlayOpened"
|
|
3551
|
+
on-vaadin-overlay-closing="_onOverlayClosed"
|
|
3552
|
+
restore-focus-on-close
|
|
3553
|
+
restore-focus-node="[[inputElement]]"
|
|
3554
|
+
></vaadin-date-picker-overlay>
|
|
3555
|
+
|
|
3556
|
+
<slot name="tooltip"></slot>
|
|
3557
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Gc(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 Xs(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}}pe(rd);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",f="quarter",p="year",m="date",A="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,N=/\[([^\]]+)]|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,k={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 b=["th","st","nd","rd"],_=x%100;return"["+x+(b[(_-20)%10]||b[_]||b[0])+"]"}},V=function(x,b,_){var v=String(x);return!v||v.length>=b?x:""+Array(b+1-v.length).join(_)+x},z={s:V,z:function(x){var b=-x.utcOffset(),_=Math.abs(b),v=Math.floor(_/60),g=_%60;return(b<=0?"+":"-")+V(v,2,"0")+":"+V(g,2,"0")},m:function x(b,_){if(b.date()<_.date())return-x(_,b);var v=12*(_.year()-b.year())+(_.month()-b.month()),g=b.clone().add(v,h),E=_-g<0,w=b.clone().add(v+(E?-1:1),h);return+(-(v+(_-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:p,w:u,d,D:m,h:l,m:a,s:n,ms:r,Q:f}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},O="en",G={};G[O]=k;var ne="$isDayjsObject",ee=function(x){return x instanceof te||!(!x||!x[ne])},U=function x(b,_,v){var g;if(!b)return O;if(typeof b=="string"){var E=b.toLowerCase();G[E]&&(g=E),_&&(G[E]=_,g=E);var w=b.split("-");if(!g&&w.length>1)return x(w[0])}else{var T=b.name;G[T]=b,g=T}return!v&&g&&(O=g),g||!v&&O},C=function(x,b){if(ee(x))return x.clone();var _=typeof b=="object"?b:{};return _.date=x,_.args=arguments,new te(_)},D=z;D.l=U,D.i=ee,D.w=function(x,b){return C(x,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var te=function(){function x(_){this.$L=U(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[ne]=!0}var b=x.prototype;return b.parse=function(_){this.$d=function(v){var g=v.date,E=v.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(P);if(w){var T=w[2]-1||0,F=(w[7]||"0").substring(0,3);return E?new Date(Date.UTC(w[1],T,w[3]||1,w[4]||0,w[5]||0,w[6]||0,F)):new Date(w[1],T,w[3]||1,w[4]||0,w[5]||0,w[6]||0,F)}}return new Date(g)}(_),this.init()},b.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},b.$utils=function(){return D},b.isValid=function(){return this.$d.toString()!==A},b.isSame=function(_,v){var g=C(_);return this.startOf(v)<=g&&g<=this.endOf(v)},b.isAfter=function(_,v){return C(_)<this.startOf(v)},b.isBefore=function(_,v){return this.endOf(v)<C(_)},b.$g=function(_,v,g){return D.u(_)?this[v]:this.set(g,_)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(_,v){var g=this,E=!!D.u(v)||v,w=D.p(_),T=function(K,B){var $=D.w(g.$u?Date.UTC(g.$y,B,K):new Date(g.$y,B,K),g);return E?$:$.endOf(d)},F=function(K,B){return D.w(g.toDate()[K].apply(g.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(B)),g)},L=this.$W,H=this.$M,W=this.$D,ae="set"+(this.$u?"UTC":"");switch(w){case p:return E?T(1,0):T(31,11);case h:return E?T(1,H):T(0,H+1);case u:var oe=this.$locale().weekStart||0,ue=(L<oe?L+7:L)-oe;return T(E?W-ue:W+(6-ue),H);case d:case m:return F(ae+"Hours",0);case l:return F(ae+"Minutes",1);case a:return F(ae+"Seconds",2);case n:return F(ae+"Milliseconds",3);default:return this.clone()}},b.endOf=function(_){return this.startOf(_,!1)},b.$set=function(_,v){var g,E=D.p(_),w="set"+(this.$u?"UTC":""),T=(g={},g[d]=w+"Date",g[m]=w+"Date",g[h]=w+"Month",g[p]=w+"FullYear",g[l]=w+"Hours",g[a]=w+"Minutes",g[n]=w+"Seconds",g[r]=w+"Milliseconds",g)[E],F=E===d?this.$D+(v-this.$W):v;if(E===h||E===p){var L=this.clone().set(m,1);L.$d[T](F),L.init(),this.$d=L.set(m,Math.min(this.$D,L.daysInMonth())).$d}else T&&this.$d[T](F);return this.init(),this},b.set=function(_,v){return this.clone().$set(_,v)},b.get=function(_){return this[D.p(_)]()},b.add=function(_,v){var g,E=this;_=Number(_);var w=D.p(v),T=function(H){var W=C(E);return D.w(W.date(W.date()+Math.round(H*_)),E)};if(w===h)return this.set(h,this.$M+_);if(w===p)return this.set(p,this.$y+_);if(w===d)return T(1);if(w===u)return T(7);var F=(g={},g[a]=i,g[l]=s,g[n]=e,g)[w]||1,L=this.$d.getTime()+_*F;return D.w(L,this)},b.subtract=function(_,v){return this.add(-1*_,v)},b.format=function(_){var v=this,g=this.$locale();if(!this.isValid())return g.invalidDate||A;var E=_||"YYYY-MM-DDTHH:mm:ssZ",w=D.z(this),T=this.$H,F=this.$m,L=this.$M,H=g.weekdays,W=g.months,ae=g.meridiem,oe=function(B,$,y,X){return B&&(B[$]||B(v,E))||y[$].slice(0,X)},ue=function(B){return D.s(T%12||12,B,"0")},K=ae||function(B,$,y){var X=B<12?"AM":"PM";return y?X.toLowerCase():X};return E.replace(N,function(B,$){return $||function(y){switch(y){case"YY":return String(v.$y).slice(-2);case"YYYY":return D.s(v.$y,4,"0");case"M":return L+1;case"MM":return D.s(L+1,2,"0");case"MMM":return oe(g.monthsShort,L,W,3);case"MMMM":return oe(W,L);case"D":return v.$D;case"DD":return D.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return oe(g.weekdaysMin,v.$W,H,2);case"ddd":return oe(g.weekdaysShort,v.$W,H,3);case"dddd":return H[v.$W];case"H":return String(T);case"HH":return D.s(T,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return K(T,F,!0);case"A":return K(T,F,!1);case"m":return String(F);case"mm":return D.s(F,2,"0");case"s":return String(v.$s);case"ss":return D.s(v.$s,2,"0");case"SSS":return D.s(v.$ms,3,"0");case"Z":return w}return null}(B)||w.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(_,v,g){var E,w=this,T=D.p(v),F=C(_),L=(F.utcOffset()-this.utcOffset())*i,H=this-F,W=function(){return D.m(w,F)};switch(T){case p:E=W()/12;break;case h:E=W();break;case f:E=W()/3;break;case u:E=(H-L)/6048e5;break;case d:E=(H-L)/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)},b.daysInMonth=function(){return this.endOf(h).$D},b.$locale=function(){return G[this.$L]},b.locale=function(_,v){if(!_)return this.$L;var g=this.clone(),E=U(_,v,!0);return E&&(g.$L=E),g},b.clone=function(){return D.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},x}(),ce=te.prototype;return C.prototype=ce,[["$ms",r],["$s",n],["$m",a],["$H",l],["$W",d],["$M",h],["$y",p],["$D",m]].forEach(function(x){ce[x[1]]=function(b){return this.$g(b,x[0],x[1])}}),C.extend=function(x,b){return x.$i||(x(b,te,C),x.$i=!0),C},C.locale=U,C.isDayjs=ee,C.unix=function(x){return C(1e3*x)},C.en=G[O],C.Ls=G,C.p={},C})})(gr);var nd=gr.exports;const yt=c.getDefaultExportFromCjs(nd);function Fo(o,t){c.addMessages(o,t)}function ad(o){c.$locale.set(o)}const Lo={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",confirmationModalTextPeriod:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntil:"Are you sure you want to self-exclude until {date}?"},"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:"直到",confirmationModalTitle:"確認",confirmationModalTextPeriod:"您確定要自我排除 {period} 嗎?",confirmationModalTextUntil:"您確定要自我排除直到 {date} 嗎?"},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'à",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} ?"},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",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}?"},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",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Está seguro de que desea autoexcluirse por {period}?",confirmationModalTextUntil:"¿Está seguro de que desea autoexcluirse hasta {date}?"},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é",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}?"},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",confirmationModalTitle:"Potvrda",confirmationModalTextPeriod:"Jeste li sigurni da se želite samoisključiti na {period}?",confirmationModalTextUntil:"Jeste li sigurni da se želite samoisključiti do {date}?"},"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é",confirmationModalTitle:"Confirmação",confirmationModalTextPeriod:"Tem certeza de que deseja se autoexcluir por {period}?",confirmationModalTextUntil:"Tem certeza de que deseja se autoexcluir até {date}?"},"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",confirmationModalTitle:"Confirmación",confirmationModalTextPeriod:"¿Está seguro de que desea autoexcluirse por {period}?",confirmationModalTextUntil:"¿Está seguro de que desea autoexcluirse hasta {date}?"},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",confirmationModalTitle:"Onay",confirmationModalTextPeriod:"{period} için kendinizi hariç tutmak istediğinizden emin misiniz?",confirmationModalTextUntil:"{date} tarihine kadar kendinizi hariç tutmak istediğinizden emin misiniz?"}};function ld(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 $o(o,t,e){const i=o.slice();return i[48]=t[e],i}function cd(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,f,p=o[20]("selfExclusionEmailText")+"",m,A,P,N,k,V,z,O,G,ne=o[20](`${o[13]}`)+"",ee,U,C,D,te,ce,x,b,_,v,g,E,w,T=o[20]("save")+"",F,L,H,W,ae,oe,ue,K=o[21]&&ud(o),B=c.ensure_array_like(o[9]),$=[];for(let S=0;S<B.length;S+=1)$[S]=Ro($o(o,B,S));let y=o[16]&&Ho(o);function X(S,R){return S[15]?fd:S[17]?hd:pd}let J=X(o),se=J(o),we=o[22]&&md(o);return{c(){t=c.element("div"),e=c.element("form"),K&&K.c(),i=c.space(),s=c.element("h2"),n=c.text(r),a=c.space(),l=c.element("div"),d=c.element("p"),h=c.space(),f=c.element("p"),m=c.text(p),A=c.space(),P=c.element("a"),N=c.text(o[2]),V=c.space(),z=c.element("div"),O=c.element("div"),G=c.element("p"),ee=c.text(ne),U=c.space(),C=c.svg_element("svg"),D=c.svg_element("g"),te=c.svg_element("path"),ce=c.space(),x=c.element("div");for(let S=0;S<$.length;S+=1)$[S].c();b=c.space(),y&&y.c(),_=c.space(),v=c.element("div"),se.c(),g=c.space(),E=c.element("div"),w=c.element("button"),F=c.text(T),W=c.space(),we&&we.c(),ae=c.empty(),c.attr(s,"class","PlayerSelfExclusionTitle "+(o[21]?"PlayerSelfExclusionTitleNone":"")),c.attr(d,"class","SelfExclusionDescriptionText"),c.attr(P,"href",k="mailto:"+o[2]),c.attr(f,"class","SelfExclusionDescriptionText"),c.attr(l,"class","SelfExclusionDescription "+(o[21]?"SelfExclusionDescriptionMobile":"")),c.attr(te,"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(te,"stroke-linecap","round"),c.attr(C,"xmlns","http://www.w3.org/2000/svg"),c.attr(C,"xmlns:xlink","http://www.w3.org/1999/xlink"),c.attr(C,"version","1.1"),c.attr(C,"viewBox","0 0 100 100"),c.attr(C,"xml:space","preserve"),c.attr(C,"class","SelfExclusionConfigIcon"),c.toggle_class(C,"active",o[18]),c.attr(O,"class","SelfExclusionConfigLabel"),c.attr(x,"class","SelfExclusionDropDown"),c.toggle_class(x,"active",o[18]),c.attr(z,"class","SelfExclusionConfigWrapper "+(o[21]?"SelfExclusionConfigWrapperMobile":"")),c.toggle_class(z,"active",o[18]),c.attr(v,"class","SelfExclusionNotification "+(o[21]?"SelfExclusionDescriptionMobile":"")),c.attr(w,"class",L="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,R){c.insert(S,t,R),c.append(t,e),K&&K.m(e,null),c.append(e,i),c.append(e,s),c.append(s,n),c.append(e,a),c.append(e,l),c.append(l,d),d.innerHTML=u,c.append(l,h),c.append(l,f),c.append(f,m),c.append(f,A),c.append(f,P),c.append(P,N),c.append(e,V),c.append(e,z),c.append(z,O),c.append(O,G),c.append(G,ee),c.append(O,U),c.append(O,C),c.append(C,D),c.append(D,te),c.append(z,ce),c.append(z,x);for(let Q=0;Q<$.length;Q+=1)$[Q]&&$[Q].m(x,null);c.append(e,b),y&&y.m(e,null),c.append(e,_),c.append(e,v),se.m(v,null),c.append(e,g),c.append(e,E),c.append(E,w),c.append(w,F),c.insert(S,W,R),we&&we.m(S,R),c.insert(S,ae,R),oe||(ue=[c.listen(O,"click",o[31]),c.listen(w,"click",o[34])],oe=!0)},p(S,R){if(S[21]&&K.p(S,R),R[0]&1048576&&r!==(r=S[20]("titleSelfExclusion")+"")&&c.set_data(n,r),R[0]&1048587&&u!==(u=S[20]("selfExclusionText",{values:{operatorname:S[1],baseurl:S[3],lang:S[0]}})+"")&&(d.innerHTML=u),R[0]&1048576&&p!==(p=S[20]("selfExclusionEmailText")+"")&&c.set_data(m,p),R[0]&4&&c.set_data(N,S[2]),R[0]&4&&k!==(k="mailto:"+S[2])&&c.attr(P,"href",k),R[0]&1056768&&ne!==(ne=S[20](`${S[13]}`)+"")&&c.set_data(ee,ne),R[0]&262144&&c.toggle_class(C,"active",S[18]),R[0]&17826304){B=c.ensure_array_like(S[9]);let Q;for(Q=0;Q<B.length;Q+=1){const Wi=$o(S,B,Q);$[Q]?$[Q].p(Wi,R):($[Q]=Ro(Wi),$[Q].c(),$[Q].m(x,null))}for(;Q<$.length;Q+=1)$[Q].d(1);$.length=B.length}R[0]&262144&&c.toggle_class(x,"active",S[18]),R[0]&262144&&c.toggle_class(z,"active",S[18]),S[16]?y?y.p(S,R):(y=Ho(S),y.c(),y.m(e,_)):y&&(y.d(1),y=null),J===(J=X(S))&&se?se.p(S,R):(se.d(1),se=J(S),se&&(se.c(),se.m(v,null))),R[0]&1048576&&T!==(T=S[20]("save")+"")&&c.set_data(F,T),R[0]&131072&&L!==(L="SelfExclusionSave "+(S[17]?"active":""))&&c.attr(w,"class",L),R[0]&131072&&H!==(H=!S[17])&&(w.disabled=H),S[22]&&we.p(S,R)},d(S){S&&(c.detach(t),c.detach(W),c.detach(ae)),K&&K.d(),c.destroy_each($,S),y&&y.d(),se.d(),we&&we.d(S),oe=!1,c.run_all(ue)}}}function dd(o){let t,e,i,s,r,n,a,l,d,u,h,f,p,m,A,P,N,k,V,z,O;function G(U,C){return U[21]?gd:_d}let ee=G(o)(o);return{c(){t=c.element("div"),e=c.element("div"),ee.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"),f=c.space(),p=c.element("div"),m=c.element("ui-skeleton"),A=c.space(),P=c.element("div"),N=c.space(),k=c.element("ui-skeleton"),V=c.space(),z=c.element("div"),O=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(m,"structure","rectangle"),c.set_custom_element_data(m,"width",o[21]?"100%":"50%"),c.set_custom_element_data(m,"height",o[21]?"30px":"44px"),c.set_style(P,"height",o[21]?"15px":"20px"),c.set_custom_element_data(k,"structure","text"),c.set_custom_element_data(k,"height",o[21]?"15px":"20px"),c.set_custom_element_data(k,"width","30%"),c.attr(p,"class","SelfExclusionConfig"),c.set_custom_element_data(O,"structure","rectangle"),c.set_custom_element_data(O,"width","100%"),c.set_custom_element_data(O,"height",o[21]?"35px":"50px"),c.attr(z,"class","SelfExclusionActionButtons "+(o[21]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(o[21]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(U,C){c.insert(U,t,C),c.append(t,e),ee.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,f),c.append(e,p),c.append(p,m),c.append(p,A),c.append(p,P),c.append(p,N),c.append(p,k),c.append(e,V),c.append(e,z),c.append(z,O)},p:c.noop,d(U){U&&c.detach(t),ee.d()}}}function ud(o){let t,e,i,s,r,n,a,l,d,u,h=o[20]("titleSelfExclusion")+"",f,p,m;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"),f=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(A,P){c.insert(A,t,P),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,f),p||(m=c.listen(t,"click",o[30]),p=!0)},p(A,P){P[0]&1048576&&h!==(h=A[20]("titleSelfExclusion")+"")&&c.set_data(f,h)},d(A){A&&c.detach(t),p=!1,m()}}}function Ro(o){let t,e=o[20](`${o[48].key}`)+"",i,s,r;function n(){return o[32](o[48])}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[48].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,f;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(),f=c.element("vaadin-date-picker"),c.attr(e,"for","SelfExclusionDate"),c.attr(n,"class","SelfExclusionDateInstructions"),c.set_custom_element_data(f,"min",o[10]),c.set_custom_element_data(f,"max",o[11]),c.set_custom_element_data(f,"value",o[10]),c.attr(t,"class","SelfExclusionDateWrapper "+(o[21]?"SelfExclusionDateWrapperMobile":""))},m(p,m){c.insert(p,t,m),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,f),o[33](f)},p(p,m){m[0]&1048576&&i!==(i=p[20]("duration")+"")&&c.set_data(s,i),m[0]&1048576&&a!==(a=p[20]("dateInstructions")+"")&&c.set_data(l,a),m[0]&1024&&c.set_custom_element_data(f,"min",p[10]),m[0]&2048&&c.set_custom_element_data(f,"max",p[11]),m[0]&1024&&c.set_custom_element_data(f,"value",p[10])},d(p){p&&c.detach(t),o[33](null)}}}function hd(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 pd(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 fd(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 md(o){let t,e,i,s;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",s={type:"SetSelfExclusion",selfExclusionPeriod:o[13],selfExclusionExpiryDate:o[12]}),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(r,n){c.insert(r,t,n),c.append(t,e)},p(r,n){n[0]&1048576&&i!==(i=r[20]("confirmationModalTitle"))&&c.set_custom_element_data(e,"modaltitle",i),n[0]&16384&&c.set_custom_element_data(e,"modaltext",r[14]),n[0]&12288&&s!==(s={type:"SetSelfExclusion",selfExclusionPeriod:r[13],selfExclusionExpiryDate:r[12]})&&c.set_custom_element_data(e,"modalconfirmevent",s),n[0]&64&&c.set_custom_element_data(e,"mbsource",r[6]),n[0]&1&&c.set_custom_element_data(e,"lang",r[0]),n[0]&16&&c.set_custom_element_data(t,"clientstyling",r[4]),n[0]&32&&c.set_custom_element_data(t,"clientstylingurl",r[5]),n[0]&64&&c.set_custom_element_data(t,"mbsource",r[6])},d(r){r&&c.detach(t)}}}function _d(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 gd(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 bd(o){let t;function e(r,n){return r[19]?dd:cd}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[35](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[35](null)}}}function yd(o,t,e){let i;c.component_subscribe(o,c.$format,y=>e(20,i=y));let{endpoint:s="",lang:r="en",operator:n="Everymatrix",supportemail:a="",baseurl:l="",clientstyling:d="",clientstylingurl:u="",mbsource:h,translationurl:f="",hasconfirmationmodal:p="false"}=t,m,A,P=[],N=window.navigator.userAgent,k,V,z="",O="",G="selectAPeriod",ne="",ee=c.getDevice(N)!=="PC",U=!1,C=!1,D=!1,te=!1,ce=p==="true",x=!0;const b=()=>{fetch(f).then(X=>X.json()).then(X=>{Object.keys(X).forEach(J=>{Fo(J,X[J])})}).catch(X=>{console.log(X)})};Object.keys(Lo).forEach(y=>{Fo(y,Lo[y])});const _=()=>{let y=new URL(`${s}/v1/player/selfExclusionSettings`);fetch(y,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(J=>v(J)).then(J=>{e(9,P=J.periods)}).catch(J=>{console.log(J)}).finally(()=>{e(19,x=!1)})},v=y=>{if(y.status>=300)throw new Error("There was an error fetching the config");return y.json()},g=()=>{e(18,te=!te)},E=y=>{switch(O=y.text,e(13,G=y.key),e(17,D=!0),e(18,te=!1),e(15,U=!1),e(16,C=!1),O){case"Until":e(16,C=!0),e(10,k=yt().add(6,"M").format("YYYY-MM-DD")),e(11,V=yt().add(5,"y").format("YYYY-MM-DD")),e(12,z=k);break;case"Permanent":e(15,U=!U);break;default:const[X,J]=O.split(" "),se=J.includes("Day")?"days":J.includes("Month")?"months":J.includes("Year")?"years":null;if(!se)return;e(12,z=yt().add(Number(X),se).format("YYYY-MM-DD"));break}ce&&w()},w=()=>{if(!ce){e(14,ne="");return}e(14,ne=C?i("confirmationModalTextUntil",{values:{date:z}}):i("confirmationModalTextPeriod",{values:{period:i(O)}}))},T=y=>{y.preventDefault(),ce?window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href):window.postMessage({type:"SetSelfExclusion",selfExclusionPeriod:G,selfExclusionExpiryDate:z},window.location.href)},F=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:ee},window.location.href)},L=y=>{e(12,z=y.target.value)},H=()=>{A.addEventListener("change",L,!1)};c.onMount(()=>()=>{A.removeEventListener("change",L)});const W=()=>{ad(r)},ae=()=>F(),oe=()=>g(),ue=y=>E(y);function K(y){c.binding_callbacks[y?"unshift":"push"](()=>{A=y,e(8,A)})}const B=y=>T(y);function $(y){c.binding_callbacks[y?"unshift":"push"](()=>{m=y,e(7,m)})}return o.$$set=y=>{"endpoint"in y&&e(27,s=y.endpoint),"lang"in y&&e(0,r=y.lang),"operator"in y&&e(1,n=y.operator),"supportemail"in y&&e(2,a=y.supportemail),"baseurl"in y&&e(3,l=y.baseurl),"clientstyling"in y&&e(4,d=y.clientstyling),"clientstylingurl"in y&&e(5,u=y.clientstylingurl),"mbsource"in y&&e(6,h=y.mbsource),"translationurl"in y&&e(28,f=y.translationurl),"hasconfirmationmodal"in y&&e(29,p=y.hasconfirmationmodal)},o.$$.update=()=>{o.$$.dirty[0]&256&&A&&H(),o.$$.dirty[0]&134217728&&s&&_(),o.$$.dirty[0]&1&&r&&W(),o.$$.dirty[0]&144&&d&&m&&c.setClientStyling(m,d),o.$$.dirty[0]&160&&u&&m&&c.setClientStylingURL(m,u),o.$$.dirty[0]&192&&h&&m&&c.setStreamStyling(m,`${h}.Style`),o.$$.dirty[0]&268435456&&f&&b()},ce&&w(),[r,n,a,l,d,u,h,m,A,P,k,V,z,G,ne,U,C,D,te,x,i,ee,ce,g,E,T,F,s,f,p,ae,oe,ue,K,B,$]}class br extends c.SvelteComponent{constructor(t){super(),c.init(this,t,yd,bd,c.safe_not_equal,{endpoint:27,lang:0,operator:1,supportemail:2,baseurl:3,clientstyling:4,clientstylingurl:5,mbsource:6,translationurl:28,hasconfirmationmodal:29},ld,[-1,-1])}get endpoint(){return this.$$.ctx[27]}set endpoint(t){this.$$set({endpoint:t}),c.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang: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[28]}set translationurl(t){this.$$set({translationurl:t}),c.flush()}get hasconfirmationmodal(){return this.$$.ctx[29]}set hasconfirmationmodal(t){this.$$set({hasconfirmationmodal:t}),c.flush()}}c.create_custom_element(br,{endpoint:{},lang:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},hasconfirmationmodal:{}},[],[],!0);const vd=Object.freeze(Object.defineProperty({__proto__:null,default:br},Symbol.toStringTag,{value:"Module"}));exports.PlayerAccountSelfExclusionNd_ce=vd;exports.dayjs=yt;
|