@everymatrix/player-account-controller-nd 1.64.8 → 1.65.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-D_LZ6noj.js → GeneralLogout-C6SVgUtg.js} +853 -874
- package/components/GeneralLogout-CwfC_imT.cjs +21 -0
- package/components/{GeneralLogout-PryurO1h.js → GeneralLogout-DfKsCxwv.js} +913 -934
- package/components/PlayerAccountBettingHistory-BLjgCtrb.js +329 -0
- package/components/PlayerAccountBettingHistory-CbA15BLO.cjs +1 -0
- package/components/PlayerAccountBettingHistory-CnZ39Cya.js +328 -0
- package/components/{PlayerAccountBiometrics-CEEVheLt.cjs → PlayerAccountBiometrics-BYO39i9p.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-CtLvJg_Q.js → PlayerAccountBiometrics-DkdsS2L0.js} +22 -22
- package/components/{PlayerAccountBiometrics-DIkqSnzX.js → PlayerAccountBiometrics-Kq_RsCQX.js} +22 -22
- package/components/{PlayerAccountClosureNd-DQAZanjf.js → PlayerAccountClosureNd-BWwH10vQ.js} +24 -24
- package/components/{PlayerAccountClosureNd-Cn1XZe_j.cjs → PlayerAccountClosureNd-CKg9Baj3.cjs} +1 -1
- package/components/{PlayerAccountClosureNd-DrVdnKee.js → PlayerAccountClosureNd-wAx9yEJc.js} +24 -24
- package/components/{PlayerAccountControllerNd-arpQoNAP.js → PlayerAccountControllerNd-DRGcMfBR.js} +310 -310
- package/components/{PlayerAccountControllerNd-azc0JrOd.cjs → PlayerAccountControllerNd-D_A4CqYL.cjs} +1 -1
- package/components/{PlayerAccountControllerNd-4Zt1DyXp.js → PlayerAccountControllerNd-DxnZLTok.js} +308 -308
- package/components/{PlayerAccountGamingLimits-CIAwGTQF.js → PlayerAccountGamingLimits-DqESzYnB.js} +127 -127
- package/components/{PlayerAccountGamingLimits-CECZHZhj.cjs → PlayerAccountGamingLimits-KgH8rpfi.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-CADFb6Zk.js → PlayerAccountGamingLimits-holo1MMT.js} +127 -127
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CVJUvbSC.cjs → PlayerAccountGamingLimitsConfirmationModal-B5DdL-Qq.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BzaZH1VM.js → PlayerAccountGamingLimitsConfirmationModal-Bhw66Tfe.js} +30 -30
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CxFJV4Qq.js → PlayerAccountGamingLimitsConfirmationModal-Dvenc_fN.js} +30 -30
- package/components/{PlayerAccountGamingLimitsGroupEdit-bap-6gHN.js → PlayerAccountGamingLimitsGroupEdit-C_MVqJrM.js} +71 -69
- package/components/PlayerAccountGamingLimitsGroupEdit-gGxjSq2Z.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsGroupEdit-CYLHl_Dl.js → PlayerAccountGamingLimitsGroupEdit-ieNo2cu3.js} +71 -69
- package/components/{PlayerAccountGamingLimitsHistory2Nd-p3iqTl1u.js → PlayerAccountGamingLimitsHistory2Nd-BYhgU7A1.js} +199 -199
- package/components/{PlayerAccountGamingLimitsHistory2Nd-DrMT268T.js → PlayerAccountGamingLimitsHistory2Nd-D6VhX20D.js} +192 -192
- package/components/{PlayerAccountGamingLimitsHistory2Nd-juZ45FBC.cjs → PlayerAccountGamingLimitsHistory2Nd-DFtdC_JJ.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-BU4O8oYP.cjs → PlayerAccountGamingLimitsInfoCard-BTuHyEBL.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-DMvgJbMq.js → PlayerAccountGamingLimitsInfoCard-BkC1pEYB.js} +83 -83
- package/components/{PlayerAccountGamingLimitsInfoCard-DOl56_Az.js → PlayerAccountGamingLimitsInfoCard-DYMLRkmw.js} +83 -83
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-HpGAoH_E.js → PlayerAccountGamingLimitsPage2Gm16Nd-BBfFDN-M.js} +88 -88
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-CWcAVks7.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-DYB6LvM1.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-B3S3aE0o.js → PlayerAccountGamingLimitsPage2Gm16Nd-D_-44uhs.js} +88 -88
- package/components/{PlayerAccountGamingLimitsPopup-B5CoTG_T.js → PlayerAccountGamingLimitsPopup-CBf5w2kb.js} +42 -42
- package/components/{PlayerAccountGamingLimitsPopup-CzDFUbRs.js → PlayerAccountGamingLimitsPopup-DS9FtNcO.js} +42 -42
- package/components/{PlayerAccountGamingLimitsPopup-CmNqLNxB.cjs → PlayerAccountGamingLimitsPopup-DySvpnhJ.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-CErgPgvk.cjs → PlayerAccountGamingLimitsWrapper2Nd-C0BdSozJ.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-fpNsXAyX.js → PlayerAccountGamingLimitsWrapper2Nd-Dzm9l83P.js} +36 -36
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-4ZYALP2a.js → PlayerAccountGamingLimitsWrapper2Nd-jbKHBghb.js} +36 -36
- package/components/{PlayerAccountGeneralConfirmationModal-Byd2u6b9.js → PlayerAccountGeneralConfirmationModal-B4Fy1vtG.js} +34 -34
- package/components/{PlayerAccountGeneralConfirmationModal-C4zwKDdb.js → PlayerAccountGeneralConfirmationModal-DMA5_Y_R.js} +34 -34
- package/components/{PlayerAccountGeneralConfirmationModal-BiNxgQbD.cjs → PlayerAccountGeneralConfirmationModal-Q91oIY0f.cjs} +1 -1
- package/components/{PlayerAccountMenuNd-Cs9UjL2S.js → PlayerAccountMenuNd-DMULzOU_.js} +32 -32
- package/components/{PlayerAccountMenuNd-BFdU3ZXb.cjs → PlayerAccountMenuNd-DfYUoWLg.cjs} +1 -1
- package/components/{PlayerAccountMenuNd-Cx7Fxjin.js → PlayerAccountMenuNd-ktgntefw.js} +29 -29
- package/components/{PlayerAccountModal-SsGlrcmj.cjs → PlayerAccountModal--0zxODF3.cjs} +1 -1
- package/components/{PlayerAccountModal-DHs1T-B4.js → PlayerAccountModal-CGYPes0F.js} +42 -42
- package/components/{PlayerAccountModal-iZqtQZF3.js → PlayerAccountModal-VzSk1pK3.js} +42 -42
- package/components/{PlayerAccountNotifications-ejASOsrU.cjs → PlayerAccountNotifications-B29nfxe5.cjs} +1 -1
- package/components/{PlayerAccountNotifications-bjLmyXO3.js → PlayerAccountNotifications-CyIiR2OQ.js} +35 -35
- package/components/{PlayerAccountNotifications-BjAtYQls.js → PlayerAccountNotifications-ZlHcSMKn.js} +120 -120
- package/components/{PlayerAccountSelfExclusionNd-3OSV7Drs.cjs → PlayerAccountSelfExclusionNd-BcXmkWN5.cjs} +161 -161
- package/components/{PlayerAccountSelfExclusionNd-C3uFkzhO.js → PlayerAccountSelfExclusionNd-D2RKtCoz.js} +2693 -2494
- package/components/{PlayerAccountSelfExclusionNd-B0Q-eCq2.js → PlayerAccountSelfExclusionNd-DcbJdmPf.js} +2739 -2541
- package/components/PlayerAccountTimeout-AhPa2GAR.cjs +1 -0
- package/components/{PlayerAccountTimeout-CflY0JwE.js → PlayerAccountTimeout-DYd8oHzz.js} +185 -206
- package/components/{PlayerAccountTimeout-CTI9lsq2.js → PlayerAccountTimeout-EEOciDvy.js} +185 -206
- package/components/{PlayerAccountTransactionsHistory-weX9yWak.js → PlayerAccountTransactionsHistory-DTn6153M.js} +2028 -2044
- package/components/{PlayerAccountTransactionsHistory-DV6Lliwo.cjs → PlayerAccountTransactionsHistory-bBLXLKfh.cjs} +202 -202
- package/components/{PlayerAccountTransactionsHistory-BvJ2fnPY.js → PlayerAccountTransactionsHistory-luOm9cLI.js} +2261 -2237
- package/components/PlayerActiveBonuses-CkHRSbaE.js +1110 -0
- package/components/PlayerActiveBonuses-KJx5ryn-.js +1109 -0
- package/components/PlayerActiveBonuses-ysBH5Mf0.cjs +1 -0
- package/components/{PlayerBonusCard-DlAco387.js → PlayerBonusCard-9KhufIpY.js} +256 -239
- package/components/PlayerBonusCard-B2CAV5ma.cjs +1 -0
- package/components/{PlayerBonusCard-cejKhzym.js → PlayerBonusCard-C1O1skMO.js} +256 -239
- package/components/PlayerBonusHistory-Bw07exWD.js +986 -0
- package/components/PlayerBonusHistory-Pyqm_-5W.js +985 -0
- package/components/PlayerBonusHistory-rsj0T9Fh.cjs +1 -0
- package/components/{PlayerChangePassword-LgjKzYU1.cjs → PlayerChangePassword-CG0yyj8N.cjs} +1 -1
- package/components/{PlayerChangePassword-BeIHgM2j.js → PlayerChangePassword-CdPJNADk.js} +54 -54
- package/components/{PlayerChangePassword-BcqVozRi.js → PlayerChangePassword-DrC7TYG-.js} +54 -54
- package/components/{PlayerDeposit-N7o3ip4d.js → PlayerDeposit-BMWzlG2-.js} +80 -80
- package/components/PlayerDeposit-XDLH1XV-.cjs +1 -0
- package/components/{PlayerDeposit-CHnzNVZy.js → PlayerDeposit-yFis4xl0.js} +80 -80
- package/components/{PlayerGamingHistory-CiFbjNDf.js → PlayerGamingHistory-5HKDsmu3.js} +84 -84
- package/components/{PlayerGamingHistory-DHCBu-lj.js → PlayerGamingHistory-BQusIfO4.js} +83 -83
- package/components/{PlayerGamingHistory-CfDWsLGI.cjs → PlayerGamingHistory-wHrGUw_d.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-BMwtFNQT.cjs → PlayerPendingWithdrawals-CrNEhXdS.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-B2WyLuNV.js → PlayerPendingWithdrawals-DXDpNvc0.js} +26 -26
- package/components/{PlayerPendingWithdrawals-CRRuYNXr.js → PlayerPendingWithdrawals-bL-txpqs.js} +26 -26
- package/components/{PlayerProfileInfo-Cdv7SUqU.cjs → PlayerProfileInfo-6mDS69te.cjs} +1 -1
- package/components/{PlayerProfileInfo-BU3JlIgP.js → PlayerProfileInfo-BNiKul5r.js} +64 -64
- package/components/{PlayerProfileInfo-CPE8pefg.js → PlayerProfileInfo-CtxoazNR.js} +64 -64
- package/components/{PlayerRealityCheck-RsT9a67Q.js → PlayerRealityCheck-BMQN-vPH.js} +44 -44
- package/components/{PlayerRealityCheck-C7EUl18t.js → PlayerRealityCheck-D1YPRqrN.js} +43 -43
- package/components/{PlayerRealityCheck-BrVF76qp.cjs → PlayerRealityCheck-Ds04nfYK.cjs} +1 -1
- package/components/{PlayerTransactionHistory-BQlWb-B9.js → PlayerTransactionHistory-BwMVf693.js} +19 -19
- package/components/{PlayerTransactionHistory-4VtQqLAc.cjs → PlayerTransactionHistory-CPYk3YFO.cjs} +1 -1
- package/components/{PlayerTransactionHistory-DyBRNwAw.js → PlayerTransactionHistory-CjiTH9aE.js} +19 -19
- package/components/{PlayerWithdrawal-BMLgaRLc.cjs → PlayerWithdrawal-9DnL98EG.cjs} +1 -1
- package/components/{PlayerWithdrawal-C6_CSTeL.js → PlayerWithdrawal-BE8JBn_B.js} +19 -19
- package/components/{PlayerWithdrawal-CgR0BwqA.js → PlayerWithdrawal-JE73Z0UZ.js} +19 -19
- package/es2015/player-account-controller-nd.cjs +1 -1
- package/es2015/player-account-controller-nd.js +1 -1
- package/esnext/player-account-controller-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/checkbox-group-input_9-C_ozrjaU.cjs +2 -0
- package/stencil/{checkbox-group-input_9-B_Jl5XYl.js → checkbox-group-input_9-DxxBgpIV.js} +13 -11
- package/stencil/{checkbox-group-input_9-BubdPaeo.js → checkbox-group-input_9-xMMv-SfR.js} +13 -11
- package/stencil/{general-input-CZRDVuGV.js → general-input-B6lDYfSh.js} +1249 -1243
- package/stencil/{general-input-BjwgkYic.cjs → general-input-BcGIo_EB.cjs} +199 -199
- package/stencil/{general-input-BRLohAp9.js → general-input-CVjXxxqF.js} +1247 -1241
- package/stencil/index-1ef3a64c-BBHIxt0N.cjs +1 -0
- package/stencil/index-1ef3a64c-CbbXBr97.js +556 -0
- package/stencil/index-1ef3a64c-CccPLrQV.js +572 -0
- package/stencil/index-7c5e707a-BILXAqHK.js +616 -0
- package/stencil/index-7c5e707a-DtZaL7Yo.cjs +1 -0
- package/stencil/index-7c5e707a-wx5FQuxQ.js +643 -0
- package/stencil/{index-9c0f6c58-pr1WGVFu.js → index-9c0f6c58-B0-civ7s.js} +197 -197
- package/stencil/index-9c0f6c58-CSS6f_hD.cjs +1 -0
- package/stencil/index-9c0f6c58-NYUdtsvS.js +576 -0
- package/stencil/index-9cd44522-BuEQFQdN.js +610 -0
- package/stencil/index-9cd44522-M89EFHLx.cjs +1 -0
- package/stencil/index-9cd44522-uVgth2NC.js +626 -0
- package/stencil/index-b2193545-COb51DfK.cjs +1 -0
- package/stencil/index-b2193545-CbIQaLIQ.js +519 -0
- package/stencil/index-b2193545-DQ1k9IU6.js +503 -0
- package/stencil/{password-input_2-DIwo3oT2.js → password-input_2-CY6VCkNu.js} +3 -3
- package/stencil/password-input_2-CcDWWiMF.cjs +193 -0
- package/stencil/{password-input_2-DhPkhv-D.js → password-input_2-CpFh-8sU.js} +3 -3
- package/stencil/{player-change-password-gm2-5cb5c6c1-BsO6atoJ.js → player-change-password-gm2-5cb5c6c1-CjE8zFhv.js} +1 -1
- package/stencil/{player-change-password-gm2-5cb5c6c1-ij_CKxBn.cjs → player-change-password-gm2-5cb5c6c1-Ct7ATwPX.cjs} +1 -1
- package/stencil/{player-change-password-gm2-5cb5c6c1-C0AlgHfx.js → player-change-password-gm2-5cb5c6c1-DGWK_k5e.js} +1 -1
- package/stencil/{player-change-password-gm2-ZOlHswn0.cjs → player-change-password-gm2-Be8x3UTo.cjs} +1 -1
- package/stencil/{player-change-password-gm2-bVKmVTiQ.js → player-change-password-gm2-CSuxaewE.js} +1 -1
- package/stencil/{player-change-password-gm2-ALHM57bi.js → player-change-password-gm2-cmkXxbnh.js} +1 -1
- package/stencil/{player-kyc-verification-DPUx1txP.js → player-kyc-verification-COYo0JVK.js} +1 -1
- package/stencil/{player-kyc-verification-DAy-szI5.cjs → player-kyc-verification-DVxMFMcR.cjs} +1 -1
- package/stencil/{player-kyc-verification-CUhrMPde.js → player-kyc-verification-Dp9CHVsP.js} +1 -1
- package/stencil/toggle-checkbox-input-Bb8Pmo33.cjs +1 -0
- package/stencil/{toggle-checkbox-input-LjmhdQte.js → toggle-checkbox-input-CgD7_GVW.js} +2 -2
- package/stencil/{toggle-checkbox-input-hUEi-Cj3.js → toggle-checkbox-input-Dp48ZxWV.js} +2 -2
- package/stencil/{ui-skeleton-1cb75d00-Batko5iK.cjs → ui-skeleton-1cb75d00-BVFyqHeR.cjs} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-CwDKR1VD.js → ui-skeleton-1cb75d00-r2uxMI-v.js} +1 -1
- package/stencil/{ui-skeleton-1cb75d00-BI5A-j0y.js → ui-skeleton-1cb75d00-yf8wpqiZ.js} +1 -1
- package/stencil/{ui-skeleton-t0bb1jH7.cjs → ui-skeleton-BQ87Vnrb.cjs} +1 -1
- package/stencil/{ui-skeleton-C974aG7g.js → ui-skeleton-CB3h08KY.js} +2 -2
- package/stencil/{ui-skeleton-DoX-UmRU.js → ui-skeleton-MSanR8Xu.js} +2 -2
- package/stencil/{user-deposit-withdrawal-Dzz_fEvK.js → user-deposit-withdrawal-3Ylq7hQR.js} +1 -1
- package/stencil/{user-deposit-withdrawal-C7W58646.js → user-deposit-withdrawal-BbYNbmTz.js} +1 -1
- package/stencil/{user-deposit-withdrawal-Dfu_1g2v.cjs → user-deposit-withdrawal-CIbBQQQO.cjs} +1 -1
- package/stencil/{user-transaction-history-BAK7MHHa.js → user-transaction-history-BYaNkpQr.js} +1 -1
- package/stencil/{user-transaction-history-DiRXpfbN.cjs → user-transaction-history-Bi_uuYtB.cjs} +1 -1
- package/stencil/{user-transaction-history-DhQ6RqNc.js → user-transaction-history-a8uSzFHr.js} +1 -1
- package/components/GeneralLogout-Dzu2Sl-x.cjs +0 -21
- package/components/PlayerAccountBettingHistory-BtDZukYI.cjs +0 -1
- package/components/PlayerAccountBettingHistory-BzAXq1xX.js +0 -329
- package/components/PlayerAccountBettingHistory-CwTEYOIN.js +0 -328
- package/components/PlayerAccountGamingLimitsGroupEdit-DEf_qyUJ.cjs +0 -1
- package/components/PlayerAccountTimeout-Cr-iejKj.cjs +0 -1
- package/components/PlayerActiveBonuses-BMNFopKN.js +0 -1077
- package/components/PlayerActiveBonuses-CBtuWP9k.js +0 -1078
- package/components/PlayerActiveBonuses-CUk_4d3L.cjs +0 -1
- package/components/PlayerBonusCard-Dtncif7M.cjs +0 -1
- package/components/PlayerBonusHistory-CRpiQwIJ.cjs +0 -1
- package/components/PlayerBonusHistory-Ce_c7SdW.js +0 -946
- package/components/PlayerBonusHistory-D6ekGcbF.js +0 -945
- package/components/PlayerDeposit-Dzg8Ltb1.cjs +0 -1
- package/stencil/checkbox-group-input_9-BvAcuPzL.cjs +0 -2
- package/stencil/index-1ef3a64c-BNosNJnU.js +0 -572
- package/stencil/index-1ef3a64c-CFvPR_NP.cjs +0 -1
- package/stencil/index-1ef3a64c-DsTe-fF4.js +0 -556
- package/stencil/index-7c5e707a-C9R6jYpt.js +0 -616
- package/stencil/index-7c5e707a-DvxqcEpc.js +0 -643
- package/stencil/index-7c5e707a-ESX_oqGB.cjs +0 -1
- package/stencil/index-9c0f6c58-BNoMpTuB.js +0 -576
- package/stencil/index-9c0f6c58-DkHHwpww.cjs +0 -1
- package/stencil/index-9cd44522-CbUzJsuK.js +0 -610
- package/stencil/index-9cd44522-NqpP4xs6.js +0 -626
- package/stencil/index-9cd44522-WdjpTA2U.cjs +0 -1
- package/stencil/index-b2193545-CnMZ4-Ff.js +0 -519
- package/stencil/index-b2193545-Ct5AhxM8.cjs +0 -1
- package/stencil/index-b2193545-DePry399.js +0 -503
- package/stencil/password-input_2-8BNshhaU.cjs +0 -193
- package/stencil/toggle-checkbox-input-D3dpAI79.cjs +0 -1
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var ir=(i,e,t)=>new Promise((o,r)=>{var s=d=>{try{l(t.next(d))}catch(h){r(h)}},a=d=>{try{l(t.throw(d))}catch(h){r(h)}},l=d=>d.done?o(d.value):Promise.resolve(d.value).then(s,a);l((t=t.apply(i,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./GeneralLogout-CwfC_imT.cjs");require("../stencil/ui-skeleton-BQ87Vnrb.cjs");function or(i,e){n.addMessages(i,e)}function Xa(i){n.$locale.set(i)}const rr={en:{headerTitle:"Historical Transactions",Casino:"Casino",Sports:"Sports",Payments:"Payments",dateFrom:"Period From",dateTo:"Period To",dateFilter:"Filter",InvalidSession:"The session you are using is invalid, please check..",checkPeriod:"Please select other period in order to see data.",Type:"Type",Status:"Status",Amount:"Amount",Currency:"Currency",Date:"Date","Game Name":"Game Name",Date:"Transaction ID","Bet Amount":"Bet Amount","Win Amount":"Win Amount","Transaction ID":"Transaction ID",Stake:"Stake",Description:"Description","Bet Part":"Bet Part","Bet Type":"Bet Type","Free Bet":"Free Bet","Win Type":"Win Type","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple"},"zh-hk":{headerTitle:"历史交易",Casino:"赌场",Sports:"体育",Payments:"付款",dateFrom:"开始日期",dateTo:"结束日期",dateFilter:"筛选",InvalidSession:"您使用的会话无效,请检查。",checkPeriod:"请选择其他时间段以查看数据。",Type:"类型",Status:"状态",Amount:"金额",Currency:"货币",Date:"日期","Game Name":"游戏名称","Transaction ID":"交易ID","Bet Amount":"投注金额","Win Amount":"赢取金额",Stake:"赌注",Description:"描述","Bet Part":"投注部分","Bet Type":"投注类型","Free Bet":"免费投注","Win Type":"赢取类型","Bet Adjustment":"投注调整","Bet ID":"投注ID",Price:"价格",Selection:"选择",Market:"市场",Sport:"体育",Multiple:"多重"},fr:{headerTitle:"Transactions Historiques",Casino:"Casino",Sports:"Sports",Payments:"Paiements",dateFrom:"Période De",dateTo:"Période À",dateFilter:"Filtrer",InvalidSession:"La session que vous utilisez est invalide, veuillez vérifier.",checkPeriod:"Veuillez sélectionner une autre période pour voir les données.",Type:"Type",Status:"Statut",Amount:"Montant",Currency:"Devise",Date:"Date","Game Name":"Nom du Jeu","Transaction ID":"ID de Transaction","Bet Amount":"Montant du Pari","Win Amount":"Montant Gagné",Stake:"Mise",Description:"Description","Bet Part":"Partie du Pari","Bet Type":"Type de Pari","Free Bet":"Pari Gratuit","Win Type":"Type de Gain","Bet Adjustment":"Ajustement du Pari","Bet ID":"ID du Pari",Price:"Prix",Selection:"Sélection",Market:"Marché",Sport:"Sport",Multiple:"Multiple"},ro:{headerTitle:"Tranzacții Istorice",Casino:"Cazinou",Sports:"Sporturi",Payments:"Plăți",dateFrom:"Perioada De",dateTo:"Perioada Până",dateFilter:"Filtru",InvalidSession:"Sesiunea pe care o utilizați este invalidă, vă rugăm să verificați.",checkPeriod:"Vă rugăm să selectați o altă perioadă pentru a vedea datele.",Type:"Tip",Status:"Stare",Amount:"Sumă",Currency:"Monedă",Date:"Data","Game Name":"Numele Jocului","Transaction ID":"ID-ul Tranzacției","Bet Amount":"Suma Pariei","Win Amount":"Suma Câștigată",Stake:"Miză",Description:"Descriere","Bet Part":"Partea Pariei","Bet Type":"Tipul Pariei","Free Bet":"Pariu Gratuit","Win Type":"Tipul Câștigului","Bet Adjustment":"Ajustarea Pariei","Bet ID":"ID-ul Pariei",Price:"Preț",Selection:"Selecție",Market:"Piață",Sport:"Sport",Multiple:"Multiplu"},es:{headerTitle:"Transacciones Históricas",Casino:"Casino",Sports:"Deportes",Payments:"Pagos",dateFrom:"Período Desde",dateTo:"Período Hasta",dateFilter:"Filtrar",InvalidSession:"La sesión que está utilizando es inválida, por favor verifique.",checkPeriod:"Por favor seleccione otro período para ver los datos.",Type:"Tipo",Status:"Estado",Amount:"Cantidad",Currency:"Moneda",Date:"Fecha","Game Name":"Nombre del Juego","Transaction ID":"ID de Transacción","Bet Amount":"Cantidad Apostada","Win Amount":"Cantidad Ganada",Stake:"Apuesta",Description:"Descripción","Bet Part":"Parte de la Apuesta","Bet Type":"Tipo de Apuesta","Free Bet":"Apuesta Gratis","Win Type":"Tipo de Ganancia","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple"},pt:{headerTitle:"Transações Históricas",Casino:"Cassino",Sports:"Esportes",Payments:"Pagamentos",dateFrom:"Período De",dateTo:"Período Até",dateFilter:"Filtrar",InvalidSession:"A sessão que você está usando é inválida, por favor verifique.",checkPeriod:"Por favor selecione outro período para ver os dados.",Type:"Tipo",Status:"Status",Amount:"Quantia",Currency:"Moeda",Date:"Data","Game Name":"Nome do Jogo","Transaction ID":"ID da Transação","Bet Amount":"Quantia Apostada","Win Amount":"Quantia Ganha",Stake:"Aposta",Description:"Descrição","Bet Part":"Parte da Aposta","Bet Type":"Tipo de Aposta","Free Bet":"Aposta Grátis","Win Type":"Tipo de Ganho","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo"},hr:{headerTitle:"Povijesne Transakcije",Casino:"Casino",Sports:"Sportovi",Payments:"Plaćanja",dateFrom:"Razdoblje Od",dateTo:"Razdoblje Do",dateFilter:"Filtriraj",InvalidSession:"Sesija koju koristite je nevažeća, molimo provjerite.",checkPeriod:"Molimo odaberite drugo razdoblje za pregled podataka.",Type:"Vrsta",Status:"Status",Amount:"Iznos",Currency:"Valuta",Date:"Datum","Game Name":"Naziv Igre","Transaction ID":"ID Transakcije","Bet Amount":"Iznos Oklade","Win Amount":"Iznos Dobitka",Stake:"Ulog",Description:"Opis","Bet Part":"Dio Oklade","Bet Type":"Vrsta Oklade","Free Bet":"Besplatna Oklada","Win Type":"Vrsta Dobitka","Bet Adjustment":"Prilagodba Oklade","Bet ID":"ID Oklade",Price:"Cijena",Selection:"Izbor",Market:"Tržište",Sport:"Sport",Multiple:"Višestruko"},"pt-br":{headerTitle:"Transações Históricas",Casino:"Cassino",Sports:"Esportes",Payments:"Pagamentos",dateFrom:"Período De",dateTo:"Período Até",dateFilter:"Filtrar",InvalidSession:"A sessão que você está usando é inválida, por favor verifique.",checkPeriod:"Por favor selecione outro período para ver os dados.",Type:"Tipo",Status:"Status",Amount:"Quantia",Currency:"Moeda",Date:"Data","Game Name":"Nome do Jogo","Transaction ID":"ID da Transação","Bet Amount":"Quantia Apostada","Win Amount":"Quantia Ganha",Stake:"Aposta",Description:"Descrição","Bet Part":"Parte da Aposta","Bet Type":"Tipo de Aposta","Free Bet":"Aposta Grátis","Win Type":"Tipo de Ganho","Bet Adjustment":"Ajuste de Aposta","Bet ID":"ID da Aposta",Price:"Preço",Selection:"Seleção",Market:"Mercado",Sport:"Esporte",Multiple:"Múltiplo"},"es-mx":{headerTitle:"Transacciones Históricas",Casino:"Casino",Sports:"Deportes",Payments:"Pagos",dateFrom:"Período Desde",dateTo:"Período Hasta",dateFilter:"Filtrar",InvalidSession:"La sesión que está utilizando es inválida, por favor verifique.",checkPeriod:"Por favor seleccione otro período para ver los datos.",Type:"Tipo",Status:"Estado",Amount:"Cantidad",Currency:"Moneda",Date:"Fecha","Game Name":"Nombre del Juego","Transaction ID":"ID de Transacción","Bet Amount":"Cantidad Apostada","Win Amount":"Cantidad Ganada",Stake:"Apuesta",Description:"Descripción","Bet Part":"Parte de la Apuesta","Bet Type":"Tipo de Apuesta","Free Bet":"Apuesta Gratis","Win Type":"Tipo de Ganancia","Bet Adjustment":"Ajuste de Apuesta","Bet ID":"ID de Apuesta",Price:"Precio",Selection:"Selección",Market:"Mercado",Sport:"Deporte",Multiple:"Múltiple"},tr:{headerTitle:"Geçmiş İşlemler",Casino:"Casino",Sports:"Sporlar",Payments:"Ödemeler",dateFrom:"Dönemden",dateTo:"Döneme",dateFilter:"Filtre",InvalidSession:"Kullandığınız oturum geçersiz, lütfen kontrol edin.",checkPeriod:"Verileri görmek için lütfen başka bir dönem seçin.",Type:"Tür",Status:"Durum",Amount:"Miktar",Currency:"Para Birimi",Date:"Tarih","Game Name":"Oyun Adı","Transaction ID":"İşlem ID","Bet Amount":"Bahis Miktarı","Win Amount":"Kazanç Miktarı",Stake:"Bahis",Description:"Açıklama","Bet Part":"Bahis Bölümü","Bet Type":"Bahis Türü","Free Bet":"Ücretsiz Bahis","Win Type":"Kazanç Türü","Bet Adjustment":"Bahis Ayarı","Bet ID":"Bahis ID",Price:"Fiyat",Selection:"Seçim",Market:"Pazar",Sport:"Spor",Multiple:"Çoklu"},"en-us":{headerTitle:"Historical Transactions",Casino:"Casino",Sports:"Sports",Payments:"Payments",dateFrom:"Period From",dateTo:"Period To",dateFilter:"Filter",InvalidSession:"The session you are using is invalid, please check..",checkPeriod:"Please select other period in order to see data.",Type:"Type",Status:"Status",Amount:"Amount",Currency:"Currency",Date:"Date","Game Name":"Game Name",Date:"Transaction ID","Bet Amount":"Bet Amount","Win Amount":"Win Amount","Transaction ID":"Transaction ID",Stake:"Stake",Description:"Description","Bet Part":"Bet Part","Bet Type":"Bet Type","Free Bet":"Free Bet","Win Type":"Win Type","Bet Adjustment":"Bet Adjustment","Bet ID":"Bet ID",Price:"Price",Selection:"Selection",Market:"Market",Sport:"Sport",Date:"Date",Sport:"Sport",Sport:"Sport",Multiple:"Multiple"}};var Ja=Object.defineProperty,Qa=Object.defineProperties,Za=Object.getOwnPropertyDescriptors,sr=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,Ki=(i,e,t)=>e in i?Ja(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,_i=(i,e)=>{for(var t in e||(e={}))en.call(e,t)&&Ki(i,t,e[t]);if(sr)for(var t of sr(e))tn.call(e,t)&&Ki(i,t,e[t]);return i},gs=(i,e)=>Qa(i,Za(e)),j=(i,e,t)=>(Ki(i,typeof e!="symbol"?e+"":e,t),t),Xi=(i,e,t)=>new Promise((o,r)=>{var s=d=>{try{l(t.next(d))}catch(h){r(h)}},a=d=>{try{l(t.throw(d))}catch(h){r(h)}},l=d=>d.done?o(d.value):Promise.resolve(d.value).then(s,a);l((t=t.apply(i,e)).next())});/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
-
*/function N(i,e="24.5.
|
|
5
|
+
*/function N(i,e="24.5.10"){Object.defineProperty(i,"version",{get(){return e}});const t=customElements.get(i.is);if(!t)customElements.define(i.is,i);else{const o=t.version;o&&i.version&&o===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
8
8
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9
|
-
*/class
|
|
9
|
+
*/class on extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}N(on);/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2019 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const ui=globalThis,
|
|
13
|
+
*/const ui=globalThis,xo=ui.ShadowRoot&&(ui.ShadyCSS===void 0||ui.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wo=Symbol(),ar=new WeakMap;let Co=class{constructor(i,e,t){if(this._$cssResult$=!0,t!==wo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=e}get styleSheet(){let i=this.o;const e=this.t;if(xo&&i===void 0){const t=e!==void 0&&e.length===1;t&&(i=ar.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),t&&ar.set(e,i))}return i}toString(){return this.cssText}};const rn=i=>new Co(typeof i=="string"?i:i+"",void 0,wo),y=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((o,r,s)=>o+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[s+1],i[0]);return new Co(t,i,wo)},vs=(i,e)=>{if(xo)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const o=document.createElement("style"),r=ui.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=t.cssText,i.appendChild(o)}},nr=xo?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const o of e.cssRules)t+=o.cssText;return rn(t)})(i):i;/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/const{is:
|
|
17
|
+
*/const{is:sn,defineProperty:an,getOwnPropertyDescriptor:nn,getOwnPropertyNames:ln,getOwnPropertySymbols:dn,getPrototypeOf:hn}=Object,_t=globalThis,lr=_t.trustedTypes,cn=lr?lr.emptyScript:"",dr=_t.reactiveElementPolyfillSupport,Vt=(i,e)=>i,Ji={toAttribute(i,e){switch(e){case Boolean:i=i?cn:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(o){t=null}}return t}},ys=(i,e)=>!sn(i,e),hr={attribute:!0,type:String,converter:Ji,reflect:!1,hasChanged:ys};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),_t.litPropertyMetadata!=null||(_t.litPropertyMetadata=new WeakMap);class dt extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=hr){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(e,o,t);r!==void 0&&an(this.prototype,e,r)}}static getPropertyDescriptor(e,t,o){var r;const{get:s,set:a}=(r=nn(this.prototype,e))!=null?r:{get(){return this[t]},set(l){this[t]=l}};return{get(){return s==null?void 0:s.call(this)},set(l){const d=s==null?void 0:s.call(this);a.call(this,l),this.requestUpdate(e,d,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:hr}static _$Ei(){if(this.hasOwnProperty(Vt("elementProperties")))return;const e=hn(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Vt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Vt("properties"))){const t=this.properties,o=[...ln(t),...dn(t)];for(const r of o)this.createProperty(r,t[r])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[o,r]of t)this.elementProperties.set(o,r)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const r=this._$Eu(t,o);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const r of o)t.unshift(nr(r))}else e!==void 0&&t.push(nr(e));return t}static _$Eu(e,t){const o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,o;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)==null||o.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return vs(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var o;return(o=t.hostConnected)==null?void 0:o.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var o;return(o=t.hostDisconnected)==null?void 0:o.call(t)})}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EC(e,t){var o;const r=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,r);if(s!==void 0&&r.reflect===!0){const a=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:Ji).toAttribute(t,r.type);this._$Em=e,a==null?this.removeAttribute(s):this.setAttribute(s,a),this._$Em=null}}_$AK(e,t){var o;const r=this.constructor,s=r._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const a=r.getPropertyOptions(s),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((o=a.converter)==null?void 0:o.fromAttribute)!==void 0?a.converter:Ji;this._$Em=s,this[s]=l.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,o){var r;if(e!==void 0){if(o!=null||(o=this.constructor.getPropertyOptions(e)),!((r=o.hasChanged)!=null?r:ys)(this[e],t))return;this.P(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,o){var r;this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&((r=this._$Ej)!=null?r:this._$Ej=new Set).add(e)}_$ET(){return Xi(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,a]of this._$Ep)this[s]=a;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[s,a]of r)a.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],a)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),(e=this._$EO)==null||e.forEach(r=>{var s;return(s=r.hostUpdate)==null?void 0:s.call(r)}),this.update(o)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(o)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(o=>{var r;return(r=o.hostUpdated)==null?void 0:r.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}var cr;dt.elementStyles=[],dt.shadowRootOptions={mode:"open"},dt[Vt("elementProperties")]=new Map,dt[Vt("finalized")]=new Map,dr==null||dr({ReactiveElement:dt}),((cr=_t.reactiveElementVersions)!=null?cr:_t.reactiveElementVersions=[]).push("2.0.4");/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/const mi=globalThis,fi=mi.trustedTypes,
|
|
22
|
-
\f\r]`,Dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
23
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
21
|
+
*/const mi=globalThis,fi=mi.trustedTypes,ur=fi?fi.createPolicy("lit-html",{createHTML:i=>i}):void 0,bs="$lit$",Fe=`lit$${Math.random().toFixed(9).slice(2)}$`,xs="?"+Fe,un=`<${xs}>`,Xe=document,Ht=()=>Xe.createComment(""),Wt=i=>i===null||typeof i!="object"&&typeof i!="function",ko=Array.isArray,pn=i=>ko(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Oi=`[
|
|
22
|
+
\f\r]`,Dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pr=/-->/g,_r=/>/g,qe=RegExp(`>|${Oi}(?:([^\\s"'>=/]+)(${Oi}*=${Oi}*(?:[^
|
|
23
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),mr=/'/g,fr=/"/g,ws=/^(?:script|style|textarea|title)$/i,mt=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),gr=new WeakMap,$e=Xe.createTreeWalker(Xe,129);function Cs(i,e){if(!ko(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return ur!==void 0?ur.createHTML(e):e}const _n=(i,e)=>{const t=i.length-1,o=[];let r,s=e===2?"<svg>":e===3?"<math>":"",a=Dt;for(let l=0;l<t;l++){const d=i[l];let h,c,u=-1,m=0;for(;m<d.length&&(a.lastIndex=m,c=a.exec(d),c!==null);)m=a.lastIndex,a===Dt?c[1]==="!--"?a=pr:c[1]!==void 0?a=_r:c[2]!==void 0?(ws.test(c[2])&&(r=RegExp("</"+c[2],"g")),a=qe):c[3]!==void 0&&(a=qe):a===qe?c[0]===">"?(a=r!=null?r:Dt,u=-1):c[1]===void 0?u=-2:(u=a.lastIndex-c[2].length,h=c[1],a=c[3]===void 0?qe:c[3]==='"'?fr:mr):a===fr||a===mr?a=qe:a===pr||a===_r?a=Dt:(a=qe,r=void 0);const p=a===qe&&i[l+1].startsWith("/>")?" ":"";s+=a===Dt?d+un:u>=0?(o.push(h),d.slice(0,u)+bs+d.slice(u)+Fe+p):d+Fe+(u===-2?l:p)}return[Cs(i,s+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]};class jt{constructor({strings:e,_$litType$:t},o){let r;this.parts=[];let s=0,a=0;const l=e.length-1,d=this.parts,[h,c]=_n(e,t);if(this.el=jt.createElement(h,o),$e.currentNode=this.el.content,t===2||t===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(r=$e.nextNode())!==null&&d.length<l;){if(r.nodeType===1){if(r.hasAttributes())for(const u of r.getAttributeNames())if(u.endsWith(bs)){const m=c[a++],p=r.getAttribute(u).split(Fe),g=/([.?@])?(.*)/.exec(m);d.push({type:1,index:s,name:g[2],strings:p,ctor:g[1]==="."?fn:g[1]==="?"?gn:g[1]==="@"?vn:Si}),r.removeAttribute(u)}else u.startsWith(Fe)&&(d.push({type:6,index:s}),r.removeAttribute(u));if(ws.test(r.tagName)){const u=r.textContent.split(Fe),m=u.length-1;if(m>0){r.textContent=fi?fi.emptyScript:"";for(let p=0;p<m;p++)r.append(u[p],Ht()),$e.nextNode(),d.push({type:2,index:++s});r.append(u[m],Ht())}}}else if(r.nodeType===8)if(r.data===xs)d.push({type:2,index:s});else{let u=-1;for(;(u=r.data.indexOf(Fe,u+1))!==-1;)d.push({type:7,index:s}),u+=Fe.length-1}s++}}static createElement(e,t){const o=Xe.createElement("template");return o.innerHTML=e,o}}function ft(i,e,t=i,o){var r,s,a;if(e===mt)return e;let l=o!==void 0?(r=t._$Co)==null?void 0:r[o]:t._$Cl;const d=Wt(e)?void 0:e._$litDirective$;return(l==null?void 0:l.constructor)!==d&&((s=l==null?void 0:l._$AO)==null||s.call(l,!1),d===void 0?l=void 0:(l=new d(i),l._$AT(i,t,o)),o!==void 0?((a=t._$Co)!=null?a:t._$Co=[])[o]=l:t._$Cl=l),l!==void 0&&(e=ft(i,l._$AS(i,e.values),l,o)),e}class mn{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:o},parts:r}=this._$AD,s=((t=e==null?void 0:e.creationScope)!=null?t:Xe).importNode(o,!0);$e.currentNode=s;let a=$e.nextNode(),l=0,d=0,h=r[0];for(;h!==void 0;){if(l===h.index){let c;h.type===2?c=new Qt(a,a.nextSibling,this,e):h.type===1?c=new h.ctor(a,h.name,h.strings,this,e):h.type===6&&(c=new yn(a,this,e)),this._$AV.push(c),h=r[++d]}l!==(h==null?void 0:h.index)&&(a=$e.nextNode(),l++)}return $e.currentNode=Xe,s}p(e){let t=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}}class Qt{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,o,r){var s;this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=r,this._$Cv=(s=r==null?void 0:r.isConnected)!=null?s:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ft(this,e,t),Wt(e)?e===B||e==null||e===""?(this._$AH!==B&&this._$AR(),this._$AH=B):e!==this._$AH&&e!==mt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):pn(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==B&&Wt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Xe.createTextNode(e)),this._$AH=e}$(e){var t;const{values:o,_$litType$:r}=e,s=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=jt.createElement(Cs(r.h,r.h[0]),this.options)),r);if(((t=this._$AH)==null?void 0:t._$AD)===s)this._$AH.p(o);else{const a=new mn(s,this),l=a.u(this.options);a.p(o),this.T(l),this._$AH=a}}_$AC(e){let t=gr.get(e.strings);return t===void 0&&gr.set(e.strings,t=new jt(e)),t}k(e){ko(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let o,r=0;for(const s of e)r===t.length?t.push(o=new Qt(this.O(Ht()),this.O(Ht()),this,this.options)):o=t[r],o._$AI(s),r++;r<t.length&&(this._$AR(o&&o._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var o;for((o=this._$AP)==null?void 0:o.call(this,!1,!0,t);e&&e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Si{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,r,s){this.type=1,this._$AH=B,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=B}_$AI(e,t=this,o,r){const s=this.strings;let a=!1;if(s===void 0)e=ft(this,e,t,0),a=!Wt(e)||e!==this._$AH&&e!==mt,a&&(this._$AH=e);else{const l=e;let d,h;for(e=s[0],d=0;d<s.length-1;d++)h=ft(this,l[o+d],t,d),h===mt&&(h=this._$AH[d]),a||(a=!Wt(h)||h!==this._$AH[d]),h===B?e=B:e!==B&&(e+=(h!=null?h:"")+s[d+1]),this._$AH[d]=h}a&&!r&&this.j(e)}j(e){e===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class fn extends Si{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===B?void 0:e}}class gn extends Si{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==B)}}class vn extends Si{constructor(e,t,o,r,s){super(e,t,o,r,s),this.type=5}_$AI(e,t=this){var o;if((e=(o=ft(this,e,t,0))!=null?o:B)===mt)return;const r=this._$AH,s=e===B&&r!==B||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,a=e!==B&&(r===B||s);s&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,o;typeof this._$AH=="function"?this._$AH.call((o=(t=this.options)==null?void 0:t.host)!=null?o:this.element,e):this._$AH.handleEvent(e)}}class yn{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){ft(this,e)}}const vr=mi.litHtmlPolyfillSupport;var yr;vr==null||vr(jt,Qt),((yr=mi.litHtmlVersions)!=null?yr:mi.litHtmlVersions=[]).push("3.2.1");const bn=(i,e,t)=>{var o,r;const s=(o=t==null?void 0:t.renderBefore)!=null?o:e;let a=s._$litPart$;if(a===void 0){const l=(r=t==null?void 0:t.renderBefore)!=null?r:null;s._$litPart$=a=new Qt(e.insertBefore(Ht(),l),l,void 0,t!=null?t:{})}return a._$AI(i),a};/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/class ht extends dt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=
|
|
27
|
+
*/class ht extends dt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=bn(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return mt}}var br;ht._$litElement$=!0,ht.finalized=!0,(br=globalThis.litElementHydrateSupport)==null||br.call(globalThis,{LitElement:ht});const xr=globalThis.litElementPolyfillSupport;xr==null||xr({LitElement:ht});var wr;((wr=globalThis.litElementVersions)!=null?wr:globalThis.litElementVersions=[]).push("4.1.1");/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
30
30
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
31
|
-
*/const
|
|
31
|
+
*/const xn=i=>class extends i{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,o){super.attributeChangedCallback(e,t,o),e==="theme"&&this._set_theme(o)}};/**
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
34
34
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
35
|
-
*/const
|
|
36
|
-
`)}const gi="vaadin-themable-mixin-style";function
|
|
35
|
+
*/const ks=[],Qi=new Set,Po=new Set;function Ps(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function wn(i){return Ps(customElements.get(i))}function Cn(i=[]){return[i].flat(1/0).filter(e=>e instanceof Co?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Ss(i,e){return(i||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function As(i){return i.map(e=>e.cssText).join(`
|
|
36
|
+
`)}const gi="vaadin-themable-mixin-style";function kn(i,e){const t=document.createElement("style");t.id=gi,t.textContent=As(i),e.content.appendChild(t)}function Pn(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof ht)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),vs(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(gi),o=e.prototype._template;t.textContent=o.content.getElementById(gi).textContent}}function Sn(i){Qi.forEach(e=>{const t=e.deref();t instanceof i?Pn(t):t||Qi.delete(e)})}function Es(i){if(i.prototype instanceof ht)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(gi).textContent=As(i.getStylesForThis())}Po.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&Es(t)})}function An(i,e){const t=i.__themes;return!t||!e?!1:t.some(o=>o.styles.some(r=>e.some(s=>s.cssText===r.cssText)))}function C(i,e,t={}){e=Cn(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):ks.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&Po.forEach(o=>{if(Ss(i,o)&&wn(o)){const r=customElements.get(o);An(r,e)?console.warn(`Registering styles that already exist for ${o}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${o}" 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".`),Es(r),Sn(r)}})}function Zi(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():ks}function En(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function Ts(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const o=Zi().find(r=>r.moduleId===t);o?e.push(...Ts(o),...o.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function Tn(i){const e=`${i}-default-theme`,t=Zi().filter(o=>o.moduleId!==e&&Ss(o.themeFor,i)).map(o=>gs(_i({},o),{styles:[...Ts(o),...o.styles],includePriority:En(o.moduleId)})).sort((o,r)=>r.includePriority-o.includePriority);return t.length>0?t:Zi().filter(o=>o.moduleId===e)}const J=i=>class extends xn(i){constructor(){super(),Qi.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Po.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Ps(this)||kn(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=i.__themes||[],t=Object.getPrototypeOf(this.prototype),o=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...o,...Tn(this.is)];const r=this.__themes.flatMap(s=>s.styles);return r.filter((s,a)=>a===r.lastIndexOf(s))}};/**
|
|
37
37
|
* @license
|
|
38
38
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
39
39
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
40
|
-
*/const
|
|
41
|
-
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},yt=(i,...e)=>{
|
|
40
|
+
*/const In=(i,...e)=>{const t=document.createElement("style");t.id=i,t.textContent=e.map(o=>o.toString()).join(`
|
|
41
|
+
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},yt=(i,...e)=>{In(`lumo-${i}`,e)};/**
|
|
42
42
|
* @license
|
|
43
43
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
44
44
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
45
|
-
*/const
|
|
45
|
+
*/const Dn=y`
|
|
46
46
|
:host {
|
|
47
47
|
/* Base (background) */
|
|
48
48
|
--lumo-base-color: #fff;
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
--lumo-disabled-text-color: GrayText;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
`;yt("color-props",
|
|
130
|
+
`;yt("color-props",Dn);const zn=y`
|
|
131
131
|
[theme~='dark'] {
|
|
132
132
|
/* Base (background) */
|
|
133
133
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -245,11 +245,11 @@
|
|
|
245
245
|
pre code {
|
|
246
246
|
background: transparent;
|
|
247
247
|
}
|
|
248
|
-
`;C("",
|
|
248
|
+
`;C("",zn,{moduleId:"lumo-color"});/**
|
|
249
249
|
* @license
|
|
250
250
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
251
251
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
252
|
-
*/const
|
|
252
|
+
*/const On=y`
|
|
253
253
|
@font-face {
|
|
254
254
|
font-family: 'lumo-icons';
|
|
255
255
|
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
@@ -302,11 +302,11 @@
|
|
|
302
302
|
--lumo-icons-upload: '\\ea29';
|
|
303
303
|
--lumo-icons-user: '\\ea2a';
|
|
304
304
|
}
|
|
305
|
-
`;yt("font-icons",
|
|
305
|
+
`;yt("font-icons",On);/**
|
|
306
306
|
* @license
|
|
307
307
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
308
308
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
309
|
-
*/const
|
|
309
|
+
*/const Mn=y`
|
|
310
310
|
:host {
|
|
311
311
|
--lumo-size-xs: 1.625rem;
|
|
312
312
|
--lumo-size-s: 1.875rem;
|
|
@@ -321,11 +321,11 @@
|
|
|
321
321
|
/* For backwards compatibility */
|
|
322
322
|
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
323
323
|
}
|
|
324
|
-
`;yt("sizing-props",
|
|
324
|
+
`;yt("sizing-props",Mn);/**
|
|
325
325
|
* @license
|
|
326
326
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
327
327
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
328
|
-
*/const
|
|
328
|
+
*/const Fn=y`
|
|
329
329
|
:host {
|
|
330
330
|
/* Square */
|
|
331
331
|
--lumo-space-xs: 0.25rem;
|
|
@@ -348,11 +348,11 @@
|
|
|
348
348
|
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
349
349
|
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
350
350
|
}
|
|
351
|
-
`;yt("spacing-props",
|
|
351
|
+
`;yt("spacing-props",Fn);/**
|
|
352
352
|
* @license
|
|
353
353
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
354
354
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
355
|
-
*/const
|
|
355
|
+
*/const Nn=y`
|
|
356
356
|
:host {
|
|
357
357
|
/* Border radius */
|
|
358
358
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -452,11 +452,11 @@
|
|
|
452
452
|
--vaadin-input-field-value-font-size: var(--lumo-font-size-m);
|
|
453
453
|
--vaadin-input-field-value-font-weight: 500;
|
|
454
454
|
}
|
|
455
|
-
`;yt("style-props",
|
|
455
|
+
`;yt("style-props",Nn);/**
|
|
456
456
|
* @license
|
|
457
457
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
458
458
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
459
|
-
*/const
|
|
459
|
+
*/const Ln=y`
|
|
460
460
|
:host {
|
|
461
461
|
/* prettier-ignore */
|
|
462
462
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -476,7 +476,7 @@
|
|
|
476
476
|
--lumo-line-height-s: 1.375;
|
|
477
477
|
--lumo-line-height-m: 1.625;
|
|
478
478
|
}
|
|
479
|
-
`,
|
|
479
|
+
`,Bn=y`
|
|
480
480
|
body,
|
|
481
481
|
:host {
|
|
482
482
|
font-family: var(--lumo-font-family);
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
border-left: none;
|
|
569
569
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
570
570
|
}
|
|
571
|
-
`;C("",
|
|
571
|
+
`;C("",Bn,{moduleId:"lumo-typography"});yt("typography-props",Ln);C("vaadin-checkbox",y`
|
|
572
572
|
:host {
|
|
573
573
|
color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
|
|
574
574
|
font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
|
|
@@ -888,7 +888,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
888
888
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
889
889
|
Code distributed by Google as part of the polymer project is also
|
|
890
890
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
891
|
-
*/let
|
|
891
|
+
*/let Vn=/(url\()([^)]*)(\))/g,Rn=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ai,te;function Rt(i,e){if(i&&Rn.test(i)||i==="//")return i;if(ai===void 0){ai=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",ai=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),ai)try{return new URL(i,e).href}catch(t){return i}return te||(te=document.implementation.createHTMLDocument("temp"),te.base=te.createElement("base"),te.head.appendChild(te.base),te.anchor=te.createElement("a"),te.body.appendChild(te.anchor)),te.base.href=e,te.anchor.href=i,te.anchor.href||i}function So(i,e){return i.replace(Vn,function(t,o,r,s){return o+"'"+Rt(r.replace(/["']/g,""),e)+"'"+s})}function Ao(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
|
|
892
892
|
@license
|
|
893
893
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
894
894
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -896,7 +896,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
896
896
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
897
897
|
Code distributed by Google as part of the polymer project is also
|
|
898
898
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
899
|
-
*/const
|
|
899
|
+
*/const Is=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Hn=Is&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[i],e.shadowRoot.adoptedStyleSheets[0]===i}catch(i){return!1}})();let Wn=window.Polymer&&window.Polymer.rootPath||Ao(document.baseURI||window.location.href),vi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let yi=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,jn=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Ds=window.Polymer&&window.Polymer.legacyOptimizations||!1,zs=window.Polymer&&window.Polymer.legacyWarnings||!1,Un=window.Polymer&&window.Polymer.syncInitialRender||!1,eo=window.Polymer&&window.Polymer.legacyUndefined||!1,qn=window.Polymer&&window.Polymer.orderedComputed||!1,Cr=window.Polymer&&window.Polymer.removeNestedTemplates||!1,$n=window.Polymer&&window.Polymer.fastDomIf||!1,kr=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Yn=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
900
900
|
@license
|
|
901
901
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
902
902
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -904,7 +904,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
904
904
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
905
905
|
Code distributed by Google as part of the polymer project is also
|
|
906
906
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
907
|
-
*/let
|
|
907
|
+
*/let Gn=0;const F=function(i){let e=i.__mixinApplications;e||(e=new WeakMap,i.__mixinApplications=e);let t=Gn++;function o(r){let s=r.__mixinSet;if(s&&s[t])return r;let a=e,l=a.get(r);if(!l){l=i(r),a.set(r,l);let d=Object.create(l.__mixinSet||s||null);d[t]=!0,l.__mixinSet=d}return l}return o};/**
|
|
908
908
|
@license
|
|
909
909
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
910
910
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -912,7 +912,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
912
912
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
913
913
|
Code distributed by Google as part of the polymer project is also
|
|
914
914
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
915
|
-
*/let
|
|
915
|
+
*/let Eo={},Os={};function Pr(i,e){Eo[i]=Os[i.toLowerCase()]=e}function Sr(i){return Eo[i]||Os[i.toLowerCase()]}function Kn(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class Ut extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let o=Sr(e);return o&&t?o.querySelector(t):o}return null}attributeChangedCallback(e,t,o,r){t!==o&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Rt(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Ao(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(yi&&Sr(e)!==void 0)throw Pr(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Pr(e,this),Kn(this)}}}Ut.prototype.modules=Eo;customElements.define("dom-module",Ut);/**
|
|
916
916
|
@license
|
|
917
917
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
918
918
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -920,7 +920,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
920
920
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
921
921
|
Code distributed by Google as part of the polymer project is also
|
|
922
922
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
923
|
-
*/const
|
|
923
|
+
*/const Xn="link[rel=import][type~=css]",Jn="include",Ar="shady-unscoped";function Ms(i){return Ut.import(i)}function Er(i){let e=i.body?i.body:i;const t=So(e.textContent,i.baseURI),o=document.createElement("style");return o.textContent=t,o}function Qn(i){const e=i.trim().split(/\s+/),t=[];for(let o=0;o<e.length;o++)t.push(...Zn(e[o]));return t}function Zn(i){const e=Ms(i);if(!e)return console.warn("Could not find style data in module named",i),[];if(e._styles===void 0){const t=[];t.push(...Ns(e));const o=e.querySelector("template");o&&t.push(...Fs(o,e.assetpath)),e._styles=t}return e._styles}function Fs(i,e){if(!i._styles){const t=[],o=i.content.querySelectorAll("style");for(let r=0;r<o.length;r++){let s=o[r],a=s.getAttribute(Jn);a&&t.push(...Qn(a).filter(function(l,d,h){return h.indexOf(l)===d})),e&&(s.textContent=So(s.textContent,e)),t.push(s)}i._styles=t}return i._styles}function el(i){let e=Ms(i);return e?Ns(e):[]}function Ns(i){const e=[],t=i.querySelectorAll(Xn);for(let o=0;o<t.length;o++){let r=t[o];if(r.import){const s=r.import,a=r.hasAttribute(Ar);if(a&&!s._unscopedStyle){const l=Er(s);l.setAttribute(Ar,""),s._unscopedStyle=l}else s._style||(s._style=Er(s));e.push(a?s._unscopedStyle:s._style)}}return e}/**
|
|
924
924
|
@license
|
|
925
925
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
926
926
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -936,7 +936,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
936
936
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
937
937
|
Code distributed by Google as part of the polymer project is also
|
|
938
938
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
939
|
-
*/function
|
|
939
|
+
*/function to(i){return i.indexOf(".")>=0}function Je(i){let e=i.indexOf(".");return e===-1?i:i.slice(0,e)}function Ls(i,e){return i.indexOf(e+".")===0}function qt(i,e){return e.indexOf(i+".")===0}function $t(i,e,t){return e+t.slice(i.length)}function tl(i,e){return i===e||Ls(i,e)||qt(i,e)}function Nt(i){if(Array.isArray(i)){let e=[];for(let t=0;t<i.length;t++){let o=i[t].toString().split(".");for(let r=0;r<o.length;r++)e.push(o[r])}return e.join(".")}else return i}function Bs(i){return Array.isArray(i)?Nt(i).split("."):i.toString().split(".")}function X(i,e,t){let o=i,r=Bs(e);for(let s=0;s<r.length;s++){if(!o)return;let a=r[s];o=o[a]}return t&&(t.path=r.join(".")),o}function Tr(i,e,t){let o=i,r=Bs(e),s=r[r.length-1];if(r.length>1){for(let a=0;a<r.length-1;a++){let l=r[a];if(o=o[l],!o)return}o[s]=t}else o[e]=t;return r.join(".")}/**
|
|
940
940
|
@license
|
|
941
941
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
942
942
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -944,7 +944,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
944
944
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
945
945
|
Code distributed by Google as part of the polymer project is also
|
|
946
946
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
947
|
-
*/const bi={},
|
|
947
|
+
*/const bi={},il=/-[a-z]/g,ol=/([A-Z])/g;function Vs(i){return bi[i]||(bi[i]=i.indexOf("-")<0?i:i.replace(il,e=>e[1].toUpperCase()))}function Ai(i){return bi[i]||(bi[i]=i.replace(ol,"-$1").toLowerCase())}/**
|
|
948
948
|
@license
|
|
949
949
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
950
950
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -952,7 +952,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
952
952
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
953
953
|
Code distributed by Google as part of the polymer project is also
|
|
954
954
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
955
|
-
*/let rl=0,
|
|
955
|
+
*/let rl=0,Rs=0,ct=[],sl=0,io=!1,Hs=document.createTextNode("");new window.MutationObserver(al).observe(Hs,{characterData:!0});function al(){io=!1;const i=ct.length;for(let e=0;e<i;e++){let t=ct[e];if(t)try{t()}catch(o){setTimeout(()=>{throw o})}}ct.splice(0,i),Rs+=i}const nl={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},Ws={run(i){return io||(io=!0,Hs.textContent=sl++),ct.push(i),rl++},cancel(i){const e=i-Rs;if(e>=0){if(!ct[e])throw new Error("invalid async handle: "+i);ct[e]=null}}};/**
|
|
956
956
|
@license
|
|
957
957
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
958
958
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -960,7 +960,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
960
960
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
961
961
|
Code distributed by Google as part of the polymer project is also
|
|
962
962
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
963
|
-
*/const
|
|
963
|
+
*/const ll=Ws,js=F(i=>{class e extends i{static createProperties(o){const r=this.prototype;for(let s in o)s in r||r._createPropertyAccessor(s)}static attributeNameForProperty(o){return o.toLowerCase()}static typeForProperty(o){}_createPropertyAccessor(o,r){this._addPropertyToAttributeMap(o),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[o]||(this.__dataHasAccessor[o]=!0,this._definePropertyAccessor(o,r))}_addPropertyToAttributeMap(o){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let r=this.__dataAttributes[o];return r||(r=this.constructor.attributeNameForProperty(o),this.__dataAttributes[r]=o),r}_definePropertyAccessor(o,r){Object.defineProperty(this,o,{get(){return this.__data[o]},set:r?function(){}:function(s){this._setPendingProperty(o,s,!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 o in this.__dataHasAccessor)this.hasOwnProperty(o)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[o]=this[o],delete this[o])}_initializeInstanceProperties(o){Object.assign(this,o)}_setProperty(o,r){this._setPendingProperty(o,r)&&this._invalidateProperties()}_getProperty(o){return this.__data[o]}_setPendingProperty(o,r,s){let a=this.__data[o],l=this._shouldPropertyChange(o,r,a);return l&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(o in this.__dataOld)&&(this.__dataOld[o]=a),this.__data[o]=r,this.__dataPending[o]=r),l}_isPropertyPending(o){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(o))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ll.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 o=this.__data,r=this.__dataPending,s=this.__dataOld;this._shouldPropertiesChange(o,r,s)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(o,r,s)),this.__dataCounter--}_shouldPropertiesChange(o,r,s){return!!r}_propertiesChanged(o,r,s){}_shouldPropertyChange(o,r,s){return s!==r&&(s===s||r===r)}attributeChangedCallback(o,r,s,a){r!==s&&this._attributeToProperty(o,s),super.attributeChangedCallback&&super.attributeChangedCallback(o,r,s,a)}_attributeToProperty(o,r,s){if(!this.__serializing){const a=this.__dataAttributes,l=a&&a[o]||o;this[l]=this._deserializeValue(r,s||this.constructor.typeForProperty(l))}}_propertyToAttribute(o,r,s){this.__serializing=!0,s=arguments.length<3?this[o]:s,this._valueToNodeAttribute(this,s,r||this.constructor.attributeNameForProperty(o)),this.__serializing=!1}_valueToNodeAttribute(o,r,s){const a=this._serializeValue(r);(s==="class"||s==="name"||s==="slot")&&(o=W(o)),a===void 0?o.removeAttribute(s):o.setAttribute(s,a===""&&window.trustedTypes?window.trustedTypes.emptyScript:a)}_serializeValue(o){switch(typeof o){case"boolean":return o?"":void 0;default:return o!=null?o.toString():void 0}}_deserializeValue(o,r){switch(r){case Boolean:return o!==null;case Number:return Number(o);default:return o}}}return e});/**
|
|
964
964
|
@license
|
|
965
965
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
966
966
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -968,7 +968,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
968
968
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
969
969
|
Code distributed by Google as part of the polymer project is also
|
|
970
970
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
971
|
-
*/const
|
|
971
|
+
*/const Us={};let ni=HTMLElement.prototype;for(;ni;){let i=Object.getOwnPropertyNames(ni);for(let e=0;e<i.length;e++)Us[i[e]]=!0;ni=Object.getPrototypeOf(ni)}const dl=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function hl(i,e){if(!Us[e]){let t=i[e];t!==void 0&&(i.__data?i._setPendingProperty(e,t):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[e]=t))}}const cl=F(i=>{const e=js(i);class t extends e{static createPropertiesForAttributes(){let r=this.observedAttributes;for(let s=0;s<r.length;s++)this.prototype._createPropertyAccessor(Vs(r[s]))}static attributeNameForProperty(r){return Ai(r)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(r){for(let s in r)this._setProperty(s,r[s])}_ensureAttribute(r,s){const a=this;a.hasAttribute(r)||this._valueToNodeAttribute(a,s,r)}_serializeValue(r){switch(typeof r){case"object":if(r instanceof Date)return r.toString();if(r){if(dl(r))return r;try{return JSON.stringify(r)}catch(s){return""}}default:return super._serializeValue(r)}}_deserializeValue(r,s){let a;switch(s){case Object:try{a=JSON.parse(r)}catch(l){a=r}break;case Array:try{a=JSON.parse(r)}catch(l){a=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${r}`)}break;case Date:a=isNaN(r)?String(r):Number(r),a=new Date(a);break;default:a=super._deserializeValue(r,s);break}return a}_definePropertyAccessor(r,s){hl(this,r),super._definePropertyAccessor(r,s)}_hasAccessor(r){return this.__dataHasAccessor&&this.__dataHasAccessor[r]}_isPropertyPending(r){return!!(this.__dataPending&&r in this.__dataPending)}}return t});/**
|
|
972
972
|
@license
|
|
973
973
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
974
974
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -976,7 +976,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
976
976
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
977
977
|
Code distributed by Google as part of the polymer project is also
|
|
978
978
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
979
|
-
*/const
|
|
979
|
+
*/const ul={"dom-if":!0,"dom-repeat":!0};let Ir=!1,Dr=!1;function pl(){if(!Ir){Ir=!0;const i=document.createElement("textarea");i.placeholder="a",Dr=i.placeholder===i.textContent}return Dr}function _l(i){pl()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const ml=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,o)=>{const r=t.getAttribute(o);if(i&&o.startsWith("on-")){e.setAttribute(o,i.createScript(r,o));return}e.setAttribute(o,r)}})();function fl(i){let e=i.getAttribute("is");if(e&&ul[e]){let t=i;for(t.removeAttribute("is"),i=t.ownerDocument.createElement(e),t.parentNode.replaceChild(i,t),i.appendChild(t);t.attributes.length;){const{name:o}=t.attributes[0];ml(i,t,o),t.removeAttribute(o)}}return i}function qs(i,e){let t=e.parentInfo&&qs(i,e.parentInfo);if(t){for(let o=t.firstChild,r=0;o;o=o.nextSibling)if(e.parentIndex===r++)return o}else return i}function gl(i,e,t,o){o.id&&(e[o.id]=t)}function vl(i,e,t){if(t.events&&t.events.length)for(let o=0,r=t.events,s;o<r.length&&(s=r[o]);o++)i._addMethodEventListenerToNode(e,s.name,s.value,i)}function yl(i,e,t,o){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=o)}function bl(i,e,t){return i=i._methodHost||i,function(o){i[t]?i[t](o,o.detail):console.warn("listener method `"+t+"` not defined")}}const xl=F(i=>{class e extends i{static _parseTemplate(o,r){if(!o._templateInfo){let s=o._templateInfo={};s.nodeInfoList=[],s.nestedTemplate=!!r,s.stripWhiteSpace=r&&r.stripWhiteSpace||o.hasAttribute&&o.hasAttribute("strip-whitespace"),this._parseTemplateContent(o,s,{parent:null})}return o._templateInfo}static _parseTemplateContent(o,r,s){return this._parseTemplateNode(o.content,r,s)}static _parseTemplateNode(o,r,s){let a=!1,l=o;return l.localName=="template"&&!l.hasAttribute("preserve-content")?a=this._parseTemplateNestedTemplate(l,r,s)||a:l.localName==="slot"&&(r.hasInsertionPoint=!0),_l(l),l.firstChild&&this._parseTemplateChildNodes(l,r,s),l.hasAttributes&&l.hasAttributes()&&(a=this._parseTemplateNodeAttributes(l,r,s)||a),a||s.noted}static _parseTemplateChildNodes(o,r,s){if(!(o.localName==="script"||o.localName==="style"))for(let a=o.firstChild,l=0,d;a;a=d){if(a.localName=="template"&&(a=fl(a)),d=a.nextSibling,a.nodeType===Node.TEXT_NODE){let c=d;for(;c&&c.nodeType===Node.TEXT_NODE;)a.textContent+=c.textContent,d=c.nextSibling,o.removeChild(c),c=d;if(r.stripWhiteSpace&&!a.textContent.trim()){o.removeChild(a);continue}}let h={parentIndex:l,parentInfo:s};this._parseTemplateNode(a,r,h)&&(h.infoIndex=r.nodeInfoList.push(h)-1),a.parentNode&&l++}}static _parseTemplateNestedTemplate(o,r,s){let a=o,l=this._parseTemplate(a,r);return(l.content=a.content.ownerDocument.createDocumentFragment()).appendChild(a.content),s.templateInfo=l,!0}static _parseTemplateNodeAttributes(o,r,s){let a=!1,l=Array.from(o.attributes);for(let d=l.length-1,h;h=l[d];d--)a=this._parseTemplateNodeAttribute(o,r,s,h.name,h.value)||a;return a}static _parseTemplateNodeAttribute(o,r,s,a,l){return a.slice(0,3)==="on-"?(o.removeAttribute(a),s.events=s.events||[],s.events.push({name:a.slice(3),value:l}),!0):a==="id"?(s.id=l,!0):!1}static _contentForTemplate(o){let r=o._templateInfo;return r&&r.content||o.content}_stampTemplate(o,r){o&&!o.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(o),r=r||this.constructor._parseTemplate(o);let s=r.nodeInfoList,a=r.content||o.content,l=document.importNode(a,!0);l.__noInsertionPoint=!r.hasInsertionPoint;let d=l.nodeList=new Array(s.length);l.$={};for(let h=0,c=s.length,u;h<c&&(u=s[h]);h++){let m=d[h]=qs(l,u);gl(this,l.$,m,u),yl(this,m,u,r),vl(this,m,u)}return l=l,l}_addMethodEventListenerToNode(o,r,s,a){a=a||o;let l=bl(a,r,s);return this._addEventListenerToNode(o,r,l),l}_addEventListenerToNode(o,r,s){o.addEventListener(r,s)}_removeEventListenerFromNode(o,r,s){o.removeEventListener(r,s)}}return e});/**
|
|
980
980
|
* @fileoverview
|
|
981
981
|
* @suppress {checkPrototypalTypes}
|
|
982
982
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -986,7 +986,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
986
986
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
987
987
|
* Google as part of the polymer project is also subject to an additional IP
|
|
988
988
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
989
|
-
*/let Yt=0;const Gt=[],P={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Us="__computeInfo",xl=/[A-Z]/;function Mi(i,e,t){let r=i[e];if(!r)r=i[e]={};else if(!i.hasOwnProperty(e)&&(r=i[e]=Object.create(i[e]),t))for(let o in r){let s=r[o],a=r[o]=Array(s.length);for(let l=0;l<s.length;l++)a[l]=s[l]}return r}function Lt(i,e,t,r,o,s){if(e){let a=!1;const l=Yt++;for(let d in t){let h=o?Je(d):d,c=e[h];if(c)for(let u=0,m=c.length,p;u<m&&(p=c[u]);u++)(!p.info||p.info.lastRun!==l)&&(!o||Er(d,p.trigger))&&(p.info&&(p.info.lastRun=l),p.fn(i,d,t,r,p.info,o,s),a=!0)}return a}return!1}function wl(i,e,t,r,o,s,a,l){let d=!1,h=a?Je(r):r,c=e[h];if(c)for(let u=0,m=c.length,p;u<m&&(p=c[u]);u++)(!p.info||p.info.lastRun!==t)&&(!a||Er(r,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(i,r,o,s,p.info,a,l),d=!0);return d}function Er(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&Fs(t,i))||!!(e.wildcard&&qt(t,i))}else return!0}function Io(i,e,t,r,o){let s=typeof o.method=="string"?i[o.method]:o.method,a=o.property;s?s.call(i,i.__data[a],r[a]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function Cl(i,e,t,r,o){let s=i[P.NOTIFY],a,l=Yt++;for(let h in e)e[h]&&(s&&wl(i,s,l,h,t,r,o)||o&&kl(i,h,t))&&(a=!0);let d;a&&(d=i.__dataHost)&&d._invalidateProperties&&d._invalidateProperties()}function kl(i,e,t){let r=Je(e);if(r!==e){let o=Ai(r)+"-changed";return qs(i,o,t[e],e),!0}return!1}function qs(i,e,t,r){let o={value:t,queueProperty:!0};r&&(o.path=r),W(i).dispatchEvent(new CustomEvent(e,{detail:o}))}function Pl(i,e,t,r,o,s){let a=(s?Je(e):e)!=e?e:null,l=a?X(i,a):i.__data[e];a&&l===void 0&&(l=t[e]),qs(i,o.eventName,l,a)}function Sl(i,e,t,r,o){let s,a=i.detail,l=a&&a.path;l?(r=$t(t,r,l),s=a&&a.value):s=i.currentTarget[t],s=o?!s:s,(!e[P.READ_ONLY]||!e[P.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,s,!0,!!l)&&(!a||!a.queueProperty)&&e._invalidateProperties()}function Al(i,e,t,r,o){let s=i.__data[e];vi&&(s=vi(s,o.attrName,"attribute",i)),i._propertyToAttribute(e,o.attrName,s)}function El(i,e,t,r){let o=i[P.COMPUTE];if(o)if(Un){Yt++;const s=Il(i),a=[];for(let d in e)Do(d,o,a,s,r);let l;for(;l=a.shift();)$s(i,"",e,t,l)&&Do(l.methodInfo,o,a,s,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let s=e;for(;Lt(i,o,s,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),s=i.__dataPending,i.__dataPending=null}}const Tl=(i,e,t)=>{let r=0,o=e.length-1,s=-1;for(;r<=o;){const a=r+o>>1,l=t.get(e[a].methodInfo)-t.get(i.methodInfo);if(l<0)r=a+1;else if(l>0)o=a-1;else{s=a;break}}s<0&&(s=o+1),e.splice(s,0,i)},Do=(i,e,t,r,o)=>{const s=o?Je(i):i,a=e[s];if(a)for(let l=0;l<a.length;l++){const d=a[l];d.info.lastRun!==Yt&&(!o||Er(i,d.trigger))&&(d.info.lastRun=Yt,Tl(d.info,t,r))}};function Il(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[P.COMPUTE];let{counts:r,ready:o,total:s}=Dl(i),a;for(;a=o.shift();){e.set(a,e.size);const l=t[a];l&&l.forEach(d=>{const h=d.info.methodInfo;--s,--r[h]===0&&o.push(h)})}s!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function Dl(i){const e=i[Us],t={},r=i[P.COMPUTE],o=[];let s=0;for(let a in e){const l=e[a];s+=t[a]=l.args.filter(d=>!d.literal).length+(l.dynamicFn?1:0)}for(let a in r)e[a]||o.push(a);return{counts:t,ready:o,total:s}}function $s(i,e,t,r,o){let s=rr(i,e,t,r,o);if(s===Gt)return!1;let a=o.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[a]?i._setPendingProperty(a,s,!0):(i[a]=s,!1)}function zl(i,e,t){let r=i.__dataLinkedPaths;if(r){let o;for(let s in r){let a=r[s];qt(s,e)?(o=$t(s,a,e),i._setPendingPropertyOrPath(o,t,!0,!0)):qt(a,e)&&(o=$t(a,s,e),i._setPendingPropertyOrPath(o,t,!0,!0))}}}function Fi(i,e,t,r,o,s,a){t.bindings=t.bindings||[];let l={kind:r,target:o,parts:s,literal:a,isCompound:s.length!==1};if(t.bindings.push(l),Ll(l)){let{event:h,negate:c}=l.parts[0];l.listenerEvent=h||Ai(o)+"-changed",l.listenerNegate=c}let d=e.nodeInfoList.length;for(let h=0;h<l.parts.length;h++){let c=l.parts[h];c.compoundIndex=h,Ol(i,e,l,c,d)}}function Ol(i,e,t,r,o){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let s=r.dependencies,a={index:o,binding:t,part:r,evaluator:i};for(let l=0;l<s.length;l++){let d=s[l];typeof d=="string"&&(d=Gs(d),d.wildcard=!0),i._addTemplatePropertyEffect(e,d.rootProperty,{fn:Ml,info:a,trigger:d})}}}function Ml(i,e,t,r,o,s,a){let l=a[o.index],d=o.binding,h=o.part;if(s&&h.source&&e.length>h.source.length&&d.kind=="property"&&!d.isCompound&&l.__isPropertyEffectsClient&&l.__dataHasAccessor&&l.__dataHasAccessor[d.target]){let c=t[e];e=$t(h.source,d.target,e),l._setPendingPropertyOrPath(e,c,!1,!0)&&i._enqueueClient(l)}else{let c=o.evaluator._evaluateBinding(i,h,e,t,r,s);c!==Gt&&Fl(i,l,d,h,c)}}function Fl(i,e,t,r,o){if(o=Nl(e,o,t,r),vi&&(o=vi(o,t.target,t.kind,e)),t.kind=="attribute")i._valueToNodeAttribute(e,o,t.target);else{let s=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?(!e[P.READ_ONLY]||!e[P.READ_ONLY][s])&&e._setPendingProperty(s,o)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,s,o)}}function Nl(i,e,t,r){if(t.isCompound){let o=i.__dataCompoundStorage[t.target];o[r.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(e=e==null?"":e),e}function Ll(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Bl(i,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let o=0;o<r.length;o++){let s=r[o],a=t[o],l=s.bindings;if(l)for(let d=0;d<l.length;d++){let h=l[d];Vl(a,h),Rl(a,i,h)}a.__dataHost=i}}function Vl(i,e){if(e.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=e.parts,o=new Array(r.length);for(let a=0;a<r.length;a++)o[a]=r[a].literal;let s=e.target;t[s]=o,e.literal&&e.kind=="property"&&(s==="className"&&(i=W(i)),i[s]=e.literal)}}function Rl(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(o){Sl(o,e,t.target,r.source,r.negate)})}}function zo(i,e,t,r,o,s){s=e.static||s&&(typeof s!="object"||s[e.methodName]);let a={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:s};for(let l=0,d;l<e.args.length&&(d=e.args[l]);l++)d.literal||i._addPropertyEffect(d.rootProperty,t,{fn:r,info:a,trigger:d});return s&&i._addPropertyEffect(e.methodName,t,{fn:r,info:a}),a}function rr(i,e,t,r,o){let s=i._methodHost||i,a=s[o.methodName];if(a){let l=i._marshalArgs(o.args,e,t);return l===Gt?Gt:a.apply(s,l)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const Hl=[],Ys="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Wl="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",jl="(?:'(?:[^'\\\\]|\\\\.)*')",Ul='(?:"(?:[^"\\\\]|\\\\.)*")',ql="(?:"+jl+"|"+Ul+")",Oo="(?:("+Ys+"|"+Wl+"|"+ql+")\\s*)",$l="(?:"+Oo+"(?:,\\s*"+Oo+")*)",Yl="(?:\\(\\s*(?:"+$l+"?)\\)\\s*)",Gl="("+Ys+"\\s*"+Yl+"?)",Kl="(\\[\\[|{{)\\s*",Xl="(?:]]|}})",Jl="(?:(!)\\s*)?",Ql=Kl+Jl+Gl+Xl,Mo=new RegExp(Ql,"g");function Fo(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function Ni(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Hl};if(e[2].trim()){let r=e[2].replace(/\\,/g,",").split(",");return Zl(r,t)}else return t}return null}function Zl(i,e){return e.args=i.map(function(t){let r=Gs(t);return r.literal||(e.static=!1),r},this),e}function Gs(i){let e=i.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Je(e),t.structured=tr(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function No(i,e,t){let r=X(i,t);return r===void 0&&(r=e[t]),r}function Ks(i,e,t,r){const o={indexSplices:r};er&&!i._overrideLegacyUndefined&&(e.splices=o),i.notifyPath(t+".splices",o),i.notifyPath(t+".length",e.length),er&&!i._overrideLegacyUndefined&&(o.indexSplices=[])}function zt(i,e,t,r,o,s){Ks(i,e,t,[{index:r,addedCount:o,removed:s,object:e,type:"splice"}])}function ed(i){return i[0].toUpperCase()+i.substring(1)}const Tr=F(i=>{const e=bl(hl(i));class t extends e{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 P}_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(Ot.length){let o=Ot[Ot.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let s=this[P.READ_ONLY];for(let a in o)(!s||!s[a])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[a]=this.__dataPending[a]=o[a])}_addPropertyEffect(o,s,a){this._createPropertyAccessor(o,s==P.READ_ONLY);let l=Mi(this,s,!0)[o];l||(l=this[s][o]=[]),l.push(a)}_removePropertyEffect(o,s,a){let l=Mi(this,s,!0)[o],d=l.indexOf(a);d>=0&&l.splice(d,1)}_hasPropertyEffect(o,s){let a=this[s];return!!(a&&a[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,P.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,P.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,P.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,P.COMPUTE)}_setPendingPropertyOrPath(o,s,a,l){if(l||Je(Array.isArray(o)?o[0]:o)!==o){if(!l){let d=X(this,o);if(o=Ao(this,o,s),!o||!super._shouldPropertyChange(o,s,d))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,s,a))return zl(this,o,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,s,a);this[o]=s}return!1}_setUnmanagedPropertyToNode(o,s,a){(a!==o[s]||typeof a=="object")&&(s==="className"&&(o=W(o)),o[s]=a)}_setPendingProperty(o,s,a){let l=this.__dataHasPaths&&tr(o),d=l?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,s,d[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),l?this.__dataTemp[o]=s:this.__data[o]=s,this.__dataPending[o]=s,(l||this[P.NOTIFY]&&this[P.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=a),!0):!1}_setProperty(o,s){this._setPendingProperty(o,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let s=0;s<o.length;s++){let a=o[s];a.__dataEnabled?a.__dataPending&&a._flushProperties():a._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,s){for(let a in o)(s||!this[P.READ_ONLY]||!this[P.READ_ONLY][a])&&this._setPendingPropertyOrPath(a,o[a],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,s,a){let l=this.__dataHasPaths;this.__dataHasPaths=!1;let d;El(this,s,a,l),d=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,a,l),this._flushClients(),Lt(this,this[P.REFLECT],s,a,l),Lt(this,this[P.OBSERVE],s,a,l),d&&Cl(this,d,s,a,l),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,s,a){this[P.PROPAGATE]&&Lt(this,this[P.PROPAGATE],o,s,a),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,s,a)}_runEffectsForTemplate(o,s,a,l){const d=(h,c)=>{Lt(this,o.propertyEffects,h,a,c,o.nodeList);for(let u=o.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,h,a,c)};o.runEffects?o.runEffects(d,s,l):d(s,l)}linkPaths(o,s){o=Nt(o),s=Nt(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=s}unlinkPaths(o){o=Nt(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,s){let a={path:""},l=X(this,o,a);Ks(this,l,a.path,s)}get(o,s){return X(s||this,o)}set(o,s,a){a?Ao(a,o,s):(!this[P.READ_ONLY]||!this[P.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,s,!0)&&this._invalidateProperties()}push(o,...s){let a={path:""},l=X(this,o,a),d=l.length,h=l.push(...s);return s.length&&zt(this,l,a.path,d,s.length,[]),h}pop(o){let s={path:""},a=X(this,o,s),l=!!a.length,d=a.pop();return l&&zt(this,a,s.path,a.length,0,[d]),d}splice(o,s,a,...l){let d={path:""},h=X(this,o,d);s<0?s=h.length-Math.floor(-s):s&&(s=Math.floor(s));let c;return arguments.length===2?c=h.splice(s):c=h.splice(s,a,...l),(l.length||c.length)&&zt(this,h,d.path,s,l.length,c),c}shift(o){let s={path:""},a=X(this,o,s),l=!!a.length,d=a.shift();return l&&zt(this,a,s.path,0,0,[d]),d}unshift(o,...s){let a={path:""},l=X(this,o,a),d=l.unshift(...s);return s.length&&zt(this,l,a.path,0,s.length,[]),d}notifyPath(o,s){let a;if(arguments.length==1){let l={path:""};s=X(this,o,l),a=l.path}else Array.isArray(o)?a=Nt(o):a=o;this._setPendingPropertyOrPath(a,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,s){this._addPropertyEffect(o,P.READ_ONLY),s&&(this["_set"+ed(o)]=function(a){this._setProperty(o,a)})}_createPropertyObserver(o,s,a){let l={property:o,method:s,dynamicFn:!!a};this._addPropertyEffect(o,P.OBSERVE,{fn:Io,info:l,trigger:{name:o}}),a&&this._addPropertyEffect(s,P.OBSERVE,{fn:Io,info:l,trigger:{name:s}})}_createMethodObserver(o,s){let a=Ni(o);if(!a)throw new Error("Malformed observer expression '"+o+"'");zo(this,a,P.OBSERVE,rr,null,s)}_createNotifyingProperty(o){this._addPropertyEffect(o,P.NOTIFY,{fn:Pl,info:{eventName:Ai(o)+"-changed",property:o}})}_createReflectedProperty(o){let s=this.constructor.attributeNameForProperty(o);s[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,P.REFLECT,{fn:Al,info:{attrName:s}})}_createComputedProperty(o,s,a){let l=Ni(s);if(!l)throw new Error("Malformed computed expression '"+s+"'");const d=zo(this,l,P.COMPUTE,$s,o,a);Mi(this,Us)[o]=d}_marshalArgs(o,s,a){const l=this.__data,d=[];for(let h=0,c=o.length;h<c;h++){let{name:u,structured:m,wildcard:p,value:g,literal:A}=o[h];if(!A)if(p){const E=qt(u,s),k=No(l,a,E?s:u);g={path:E?s:u,value:k,base:E?X(l,u):k}}else g=m?No(l,a,u):l[u];if(er&&!this._overrideLegacyUndefined&&g===void 0&&o.length>1)return Gt;d[h]=g}return d}static addPropertyEffect(o,s,a){this.prototype._addPropertyEffect(o,s,a)}static createPropertyObserver(o,s,a){this.prototype._createPropertyObserver(o,s,a)}static createMethodObserver(o,s){this.prototype._createMethodObserver(o,s)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,s){this.prototype._createReadOnlyProperty(o,s)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,s,a){this.prototype._createComputedProperty(o,s,a)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,s){let a=this.constructor._parseTemplate(o),l=this.__preBoundTemplateInfo==a;if(!l)for(let d in a.propertyEffects)this._createPropertyAccessor(d);if(s)if(a=Object.create(a),a.wasPreBound=l,!this.__templateInfo)this.__templateInfo=a;else{const d=o._parentTemplateInfo||this.__templateInfo,h=d.lastChild;a.parent=d,d.lastChild=a,a.previousSibling=h,h?h.nextSibling=a:d.firstChild=a}else this.__preBoundTemplateInfo=a;return a}static _addTemplatePropertyEffect(o,s,a){let l=o.hostProps=o.hostProps||{};l[s]=!0;let d=o.propertyEffects=o.propertyEffects||{};(d[s]=d[s]||[]).push(a)}_stampTemplate(o,s){s=s||this._bindTemplate(o,!0),Ot.push(this);let a=super._stampTemplate(o,s);if(Ot.pop(),s.nodeList=a.nodeList,!s.wasPreBound){let l=s.childNodes=[];for(let d=a.firstChild;d;d=d.nextSibling)l.push(d)}return a.templateInfo=s,Bl(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),a}_removeBoundDom(o){const s=o.templateInfo,{previousSibling:a,nextSibling:l,parent:d}=s;a?a.nextSibling=l:d&&(d.firstChild=l),l?l.previousSibling=a:d&&(d.lastChild=a),s.nextSibling=s.previousSibling=null;let h=s.childNodes;for(let c=0;c<h.length;c++){let u=h[c];W(W(u).parentNode).removeChild(u)}}static _parseTemplateNode(o,s,a){let l=e._parseTemplateNode.call(this,o,s,a);if(o.nodeType===Node.TEXT_NODE){let d=this._parseBindings(o.textContent,s);d&&(o.textContent=Fo(d)||" ",Fi(this,s,a,"text","textContent",d),l=!0)}return l}static _parseTemplateNodeAttribute(o,s,a,l,d){let h=this._parseBindings(d,s);if(h){let c=l,u="property";xl.test(l)?u="attribute":l[l.length-1]=="$"&&(l=l.slice(0,-1),u="attribute");let m=Fo(h);return m&&u=="attribute"&&(l=="class"&&o.hasAttribute("class")&&(m+=" "+o.getAttribute(l)),o.setAttribute(l,m)),u=="attribute"&&c=="disable-upgrade$"&&o.setAttribute(l,""),o.localName==="input"&&c==="value"&&o.setAttribute(c,""),o.removeAttribute(c),u==="property"&&(l=Ls(l)),Fi(this,s,a,u,l,h,m),!0}else return e._parseTemplateNodeAttribute.call(this,o,s,a,l,d)}static _parseTemplateNestedTemplate(o,s,a){let l=e._parseTemplateNestedTemplate.call(this,o,s,a);const d=o.parentNode,h=a.templateInfo,c=d.localName==="dom-if",u=d.localName==="dom-repeat";xo&&(c||u)&&(d.removeChild(o),a=a.parentInfo,a.templateInfo=h,a.noted=!0,l=!1);let m=h.hostProps;if(qn&&c)m&&(s.hostProps=Object.assign(s.hostProps||{},m),xo||(a.parentInfo.noted=!0));else{let p="{";for(let g in m){let A=[{mode:p,source:g,dependencies:[g],hostProp:!0}];Fi(this,s,a,"property","_host_"+g,A)}}return l}static _parseBindings(o,s){let a=[],l=0,d;for(;(d=Mo.exec(o))!==null;){d.index>l&&a.push({literal:o.slice(l,d.index)});let h=d[1][0],c=!!d[2],u=d[3].trim(),m=!1,p="",g=-1;h=="{"&&(g=u.indexOf("::"))>0&&(p=u.substring(g+2),u=u.substring(0,g),m=!0);let A=Ni(u),E=[];if(A){let{args:k,methodName:z}=A;for(let M=0;M<k.length;M++){let V=k[M];V.literal||E.push(V)}let O=s.dynamicFns;(O&&O[z]||A.static)&&(E.push(z),A.dynamicFn=!0)}else E.push(u);a.push({source:u,mode:h,negate:c,customEvent:m,signature:A,dependencies:E,event:p}),l=Mo.lastIndex}if(l&&l<o.length){let h=o.substring(l);h&&a.push({literal:h})}return a.length?a:null}static _evaluateBinding(o,s,a,l,d,h){let c;return s.signature?c=rr(o,a,l,d,s.signature):a!=s.source?c=X(o,s.source):h&&tr(a)?c=X(o,a):c=o.__data[a],s.negate&&(c=!c),c}}return t}),Ot=[];/**
|
|
989
|
+
*/let Yt=0;const Gt=[],P={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},$s="__computeInfo",wl=/[A-Z]/;function Mi(i,e,t){let o=i[e];if(!o)o=i[e]={};else if(!i.hasOwnProperty(e)&&(o=i[e]=Object.create(i[e]),t))for(let r in o){let s=o[r],a=o[r]=Array(s.length);for(let l=0;l<s.length;l++)a[l]=s[l]}return o}function Lt(i,e,t,o,r,s){if(e){let a=!1;const l=Yt++;for(let d in t){let h=r?Je(d):d,c=e[h];if(c)for(let u=0,m=c.length,p;u<m&&(p=c[u]);u++)(!p.info||p.info.lastRun!==l)&&(!r||To(d,p.trigger))&&(p.info&&(p.info.lastRun=l),p.fn(i,d,t,o,p.info,r,s),a=!0)}return a}return!1}function Cl(i,e,t,o,r,s,a,l){let d=!1,h=a?Je(o):o,c=e[h];if(c)for(let u=0,m=c.length,p;u<m&&(p=c[u]);u++)(!p.info||p.info.lastRun!==t)&&(!a||To(o,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(i,o,r,s,p.info,a,l),d=!0);return d}function To(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&Ls(t,i))||!!(e.wildcard&&qt(t,i))}else return!0}function zr(i,e,t,o,r){let s=typeof r.method=="string"?i[r.method]:r.method,a=r.property;s?s.call(i,i.__data[a],o[a]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function kl(i,e,t,o,r){let s=i[P.NOTIFY],a,l=Yt++;for(let h in e)e[h]&&(s&&Cl(i,s,l,h,t,o,r)||r&&Pl(i,h,t))&&(a=!0);let d;a&&(d=i.__dataHost)&&d._invalidateProperties&&d._invalidateProperties()}function Pl(i,e,t){let o=Je(e);if(o!==e){let r=Ai(o)+"-changed";return Ys(i,r,t[e],e),!0}return!1}function Ys(i,e,t,o){let r={value:t,queueProperty:!0};o&&(r.path=o),W(i).dispatchEvent(new CustomEvent(e,{detail:r}))}function Sl(i,e,t,o,r,s){let a=(s?Je(e):e)!=e?e:null,l=a?X(i,a):i.__data[e];a&&l===void 0&&(l=t[e]),Ys(i,r.eventName,l,a)}function Al(i,e,t,o,r){let s,a=i.detail,l=a&&a.path;l?(o=$t(t,o,l),s=a&&a.value):s=i.currentTarget[t],s=r?!s:s,(!e[P.READ_ONLY]||!e[P.READ_ONLY][o])&&e._setPendingPropertyOrPath(o,s,!0,!!l)&&(!a||!a.queueProperty)&&e._invalidateProperties()}function El(i,e,t,o,r){let s=i.__data[e];vi&&(s=vi(s,r.attrName,"attribute",i)),i._propertyToAttribute(e,r.attrName,s)}function Tl(i,e,t,o){let r=i[P.COMPUTE];if(r)if(qn){Yt++;const s=Dl(i),a=[];for(let d in e)Or(d,r,a,s,o);let l;for(;l=a.shift();)Gs(i,"",e,t,l)&&Or(l.methodInfo,r,a,s,o);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let s=e;for(;Lt(i,r,s,t,o);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),s=i.__dataPending,i.__dataPending=null}}const Il=(i,e,t)=>{let o=0,r=e.length-1,s=-1;for(;o<=r;){const a=o+r>>1,l=t.get(e[a].methodInfo)-t.get(i.methodInfo);if(l<0)o=a+1;else if(l>0)r=a-1;else{s=a;break}}s<0&&(s=r+1),e.splice(s,0,i)},Or=(i,e,t,o,r)=>{const s=r?Je(i):i,a=e[s];if(a)for(let l=0;l<a.length;l++){const d=a[l];d.info.lastRun!==Yt&&(!r||To(i,d.trigger))&&(d.info.lastRun=Yt,Il(d.info,t,o))}};function Dl(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[P.COMPUTE];let{counts:o,ready:r,total:s}=zl(i),a;for(;a=r.shift();){e.set(a,e.size);const l=t[a];l&&l.forEach(d=>{const h=d.info.methodInfo;--s,--o[h]===0&&r.push(h)})}s!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function zl(i){const e=i[$s],t={},o=i[P.COMPUTE],r=[];let s=0;for(let a in e){const l=e[a];s+=t[a]=l.args.filter(d=>!d.literal).length+(l.dynamicFn?1:0)}for(let a in o)e[a]||r.push(a);return{counts:t,ready:r,total:s}}function Gs(i,e,t,o,r){let s=oo(i,e,t,o,r);if(s===Gt)return!1;let a=r.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[a]?i._setPendingProperty(a,s,!0):(i[a]=s,!1)}function Ol(i,e,t){let o=i.__dataLinkedPaths;if(o){let r;for(let s in o){let a=o[s];qt(s,e)?(r=$t(s,a,e),i._setPendingPropertyOrPath(r,t,!0,!0)):qt(a,e)&&(r=$t(a,s,e),i._setPendingPropertyOrPath(r,t,!0,!0))}}}function Fi(i,e,t,o,r,s,a){t.bindings=t.bindings||[];let l={kind:o,target:r,parts:s,literal:a,isCompound:s.length!==1};if(t.bindings.push(l),Bl(l)){let{event:h,negate:c}=l.parts[0];l.listenerEvent=h||Ai(r)+"-changed",l.listenerNegate=c}let d=e.nodeInfoList.length;for(let h=0;h<l.parts.length;h++){let c=l.parts[h];c.compoundIndex=h,Ml(i,e,l,c,d)}}function Ml(i,e,t,o,r){if(!o.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let s=o.dependencies,a={index:r,binding:t,part:o,evaluator:i};for(let l=0;l<s.length;l++){let d=s[l];typeof d=="string"&&(d=Xs(d),d.wildcard=!0),i._addTemplatePropertyEffect(e,d.rootProperty,{fn:Fl,info:a,trigger:d})}}}function Fl(i,e,t,o,r,s,a){let l=a[r.index],d=r.binding,h=r.part;if(s&&h.source&&e.length>h.source.length&&d.kind=="property"&&!d.isCompound&&l.__isPropertyEffectsClient&&l.__dataHasAccessor&&l.__dataHasAccessor[d.target]){let c=t[e];e=$t(h.source,d.target,e),l._setPendingPropertyOrPath(e,c,!1,!0)&&i._enqueueClient(l)}else{let c=r.evaluator._evaluateBinding(i,h,e,t,o,s);c!==Gt&&Nl(i,l,d,h,c)}}function Nl(i,e,t,o,r){if(r=Ll(e,r,t,o),vi&&(r=vi(r,t.target,t.kind,e)),t.kind=="attribute")i._valueToNodeAttribute(e,r,t.target);else{let s=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?(!e[P.READ_ONLY]||!e[P.READ_ONLY][s])&&e._setPendingProperty(s,r)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,s,r)}}function Ll(i,e,t,o){if(t.isCompound){let r=i.__dataCompoundStorage[t.target];r[o.compoundIndex]=e,e=r.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(e=e==null?"":e),e}function Bl(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Vl(i,e){let{nodeList:t,nodeInfoList:o}=e;if(o.length)for(let r=0;r<o.length;r++){let s=o[r],a=t[r],l=s.bindings;if(l)for(let d=0;d<l.length;d++){let h=l[d];Rl(a,h),Hl(a,i,h)}a.__dataHost=i}}function Rl(i,e){if(e.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),o=e.parts,r=new Array(o.length);for(let a=0;a<o.length;a++)r[a]=o[a].literal;let s=e.target;t[s]=r,e.literal&&e.kind=="property"&&(s==="className"&&(i=W(i)),i[s]=e.literal)}}function Hl(i,e,t){if(t.listenerEvent){let o=t.parts[0];i.addEventListener(t.listenerEvent,function(r){Al(r,e,t.target,o.source,o.negate)})}}function Mr(i,e,t,o,r,s){s=e.static||s&&(typeof s!="object"||s[e.methodName]);let a={methodName:e.methodName,args:e.args,methodInfo:r,dynamicFn:s};for(let l=0,d;l<e.args.length&&(d=e.args[l]);l++)d.literal||i._addPropertyEffect(d.rootProperty,t,{fn:o,info:a,trigger:d});return s&&i._addPropertyEffect(e.methodName,t,{fn:o,info:a}),a}function oo(i,e,t,o,r){let s=i._methodHost||i,a=s[r.methodName];if(a){let l=i._marshalArgs(r.args,e,t);return l===Gt?Gt:a.apply(s,l)}else r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const Wl=[],Ks="(?:[a-zA-Z_$][\\w.:$\\-*]*)",jl="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Ul="(?:'(?:[^'\\\\]|\\\\.)*')",ql='(?:"(?:[^"\\\\]|\\\\.)*")',$l="(?:"+Ul+"|"+ql+")",Fr="(?:("+Ks+"|"+jl+"|"+$l+")\\s*)",Yl="(?:"+Fr+"(?:,\\s*"+Fr+")*)",Gl="(?:\\(\\s*(?:"+Yl+"?)\\)\\s*)",Kl="("+Ks+"\\s*"+Gl+"?)",Xl="(\\[\\[|{{)\\s*",Jl="(?:]]|}})",Ql="(?:(!)\\s*)?",Zl=Xl+Ql+Kl+Jl,Nr=new RegExp(Zl,"g");function Lr(i){let e="";for(let t=0;t<i.length;t++){let o=i[t].literal;e+=o||""}return e}function Ni(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Wl};if(e[2].trim()){let o=e[2].replace(/\\,/g,",").split(",");return ed(o,t)}else return t}return null}function ed(i,e){return e.args=i.map(function(t){let o=Xs(t);return o.literal||(e.static=!1),o},this),e}function Xs(i){let e=i.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},o=e[0];switch(o==="-"&&(o=e[1]),o>="0"&&o<="9"&&(o="#"),o){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Je(e),t.structured=to(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function Br(i,e,t){let o=X(i,t);return o===void 0&&(o=e[t]),o}function Js(i,e,t,o){const r={indexSplices:o};eo&&!i._overrideLegacyUndefined&&(e.splices=r),i.notifyPath(t+".splices",r),i.notifyPath(t+".length",e.length),eo&&!i._overrideLegacyUndefined&&(r.indexSplices=[])}function zt(i,e,t,o,r,s){Js(i,e,t,[{index:o,addedCount:r,removed:s,object:e,type:"splice"}])}function td(i){return i[0].toUpperCase()+i.substring(1)}const Io=F(i=>{const e=xl(cl(i));class t extends e{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 P}_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(Ot.length){let r=Ot[Ot.length-1];r._enqueueClient(this),this.__dataHost=r}}_initializeProtoProperties(r){this.__data=Object.create(r),this.__dataPending=Object.create(r),this.__dataOld={}}_initializeInstanceProperties(r){let s=this[P.READ_ONLY];for(let a in r)(!s||!s[a])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[a]=this.__dataPending[a]=r[a])}_addPropertyEffect(r,s,a){this._createPropertyAccessor(r,s==P.READ_ONLY);let l=Mi(this,s,!0)[r];l||(l=this[s][r]=[]),l.push(a)}_removePropertyEffect(r,s,a){let l=Mi(this,s,!0)[r],d=l.indexOf(a);d>=0&&l.splice(d,1)}_hasPropertyEffect(r,s){let a=this[s];return!!(a&&a[r])}_hasReadOnlyEffect(r){return this._hasPropertyEffect(r,P.READ_ONLY)}_hasNotifyEffect(r){return this._hasPropertyEffect(r,P.NOTIFY)}_hasReflectEffect(r){return this._hasPropertyEffect(r,P.REFLECT)}_hasComputedEffect(r){return this._hasPropertyEffect(r,P.COMPUTE)}_setPendingPropertyOrPath(r,s,a,l){if(l||Je(Array.isArray(r)?r[0]:r)!==r){if(!l){let d=X(this,r);if(r=Tr(this,r,s),!r||!super._shouldPropertyChange(r,s,d))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(r,s,a))return Ol(this,r,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[r])return this._setPendingProperty(r,s,a);this[r]=s}return!1}_setUnmanagedPropertyToNode(r,s,a){(a!==r[s]||typeof a=="object")&&(s==="className"&&(r=W(r)),r[s]=a)}_setPendingProperty(r,s,a){let l=this.__dataHasPaths&&to(r),d=l?this.__dataTemp:this.__data;return this._shouldPropertyChange(r,s,d[r])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),r in this.__dataOld||(this.__dataOld[r]=this.__data[r]),l?this.__dataTemp[r]=s:this.__data[r]=s,this.__dataPending[r]=s,(l||this[P.NOTIFY]&&this[P.NOTIFY][r])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[r]=a),!0):!1}_setProperty(r,s){this._setPendingProperty(r,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(r){this.__dataPendingClients=this.__dataPendingClients||[],r!==this&&this.__dataPendingClients.push(r)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let r=this.__dataPendingClients;if(r){this.__dataPendingClients=null;for(let s=0;s<r.length;s++){let a=r[s];a.__dataEnabled?a.__dataPending&&a._flushProperties():a._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(r,s){for(let a in r)(s||!this[P.READ_ONLY]||!this[P.READ_ONLY][a])&&this._setPendingPropertyOrPath(a,r[a],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(r,s,a){let l=this.__dataHasPaths;this.__dataHasPaths=!1;let d;Tl(this,s,a,l),d=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,a,l),this._flushClients(),Lt(this,this[P.REFLECT],s,a,l),Lt(this,this[P.OBSERVE],s,a,l),d&&kl(this,d,s,a,l),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(r,s,a){this[P.PROPAGATE]&&Lt(this,this[P.PROPAGATE],r,s,a),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,r,s,a)}_runEffectsForTemplate(r,s,a,l){const d=(h,c)=>{Lt(this,r.propertyEffects,h,a,c,r.nodeList);for(let u=r.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,h,a,c)};r.runEffects?r.runEffects(d,s,l):d(s,l)}linkPaths(r,s){r=Nt(r),s=Nt(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[r]=s}unlinkPaths(r){r=Nt(r),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[r]}notifySplices(r,s){let a={path:""},l=X(this,r,a);Js(this,l,a.path,s)}get(r,s){return X(s||this,r)}set(r,s,a){a?Tr(a,r,s):(!this[P.READ_ONLY]||!this[P.READ_ONLY][r])&&this._setPendingPropertyOrPath(r,s,!0)&&this._invalidateProperties()}push(r,...s){let a={path:""},l=X(this,r,a),d=l.length,h=l.push(...s);return s.length&&zt(this,l,a.path,d,s.length,[]),h}pop(r){let s={path:""},a=X(this,r,s),l=!!a.length,d=a.pop();return l&&zt(this,a,s.path,a.length,0,[d]),d}splice(r,s,a,...l){let d={path:""},h=X(this,r,d);s<0?s=h.length-Math.floor(-s):s&&(s=Math.floor(s));let c;return arguments.length===2?c=h.splice(s):c=h.splice(s,a,...l),(l.length||c.length)&&zt(this,h,d.path,s,l.length,c),c}shift(r){let s={path:""},a=X(this,r,s),l=!!a.length,d=a.shift();return l&&zt(this,a,s.path,0,0,[d]),d}unshift(r,...s){let a={path:""},l=X(this,r,a),d=l.unshift(...s);return s.length&&zt(this,l,a.path,0,s.length,[]),d}notifyPath(r,s){let a;if(arguments.length==1){let l={path:""};s=X(this,r,l),a=l.path}else Array.isArray(r)?a=Nt(r):a=r;this._setPendingPropertyOrPath(a,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(r,s){this._addPropertyEffect(r,P.READ_ONLY),s&&(this["_set"+td(r)]=function(a){this._setProperty(r,a)})}_createPropertyObserver(r,s,a){let l={property:r,method:s,dynamicFn:!!a};this._addPropertyEffect(r,P.OBSERVE,{fn:zr,info:l,trigger:{name:r}}),a&&this._addPropertyEffect(s,P.OBSERVE,{fn:zr,info:l,trigger:{name:s}})}_createMethodObserver(r,s){let a=Ni(r);if(!a)throw new Error("Malformed observer expression '"+r+"'");Mr(this,a,P.OBSERVE,oo,null,s)}_createNotifyingProperty(r){this._addPropertyEffect(r,P.NOTIFY,{fn:Sl,info:{eventName:Ai(r)+"-changed",property:r}})}_createReflectedProperty(r){let s=this.constructor.attributeNameForProperty(r);s[0]==="-"?console.warn("Property "+r+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(r,P.REFLECT,{fn:El,info:{attrName:s}})}_createComputedProperty(r,s,a){let l=Ni(s);if(!l)throw new Error("Malformed computed expression '"+s+"'");const d=Mr(this,l,P.COMPUTE,Gs,r,a);Mi(this,$s)[r]=d}_marshalArgs(r,s,a){const l=this.__data,d=[];for(let h=0,c=r.length;h<c;h++){let{name:u,structured:m,wildcard:p,value:g,literal:A}=r[h];if(!A)if(p){const E=qt(u,s),k=Br(l,a,E?s:u);g={path:E?s:u,value:k,base:E?X(l,u):k}}else g=m?Br(l,a,u):l[u];if(eo&&!this._overrideLegacyUndefined&&g===void 0&&r.length>1)return Gt;d[h]=g}return d}static addPropertyEffect(r,s,a){this.prototype._addPropertyEffect(r,s,a)}static createPropertyObserver(r,s,a){this.prototype._createPropertyObserver(r,s,a)}static createMethodObserver(r,s){this.prototype._createMethodObserver(r,s)}static createNotifyingProperty(r){this.prototype._createNotifyingProperty(r)}static createReadOnlyProperty(r,s){this.prototype._createReadOnlyProperty(r,s)}static createReflectedProperty(r){this.prototype._createReflectedProperty(r)}static createComputedProperty(r,s,a){this.prototype._createComputedProperty(r,s,a)}static bindTemplate(r){return this.prototype._bindTemplate(r)}_bindTemplate(r,s){let a=this.constructor._parseTemplate(r),l=this.__preBoundTemplateInfo==a;if(!l)for(let d in a.propertyEffects)this._createPropertyAccessor(d);if(s)if(a=Object.create(a),a.wasPreBound=l,!this.__templateInfo)this.__templateInfo=a;else{const d=r._parentTemplateInfo||this.__templateInfo,h=d.lastChild;a.parent=d,d.lastChild=a,a.previousSibling=h,h?h.nextSibling=a:d.firstChild=a}else this.__preBoundTemplateInfo=a;return a}static _addTemplatePropertyEffect(r,s,a){let l=r.hostProps=r.hostProps||{};l[s]=!0;let d=r.propertyEffects=r.propertyEffects||{};(d[s]=d[s]||[]).push(a)}_stampTemplate(r,s){s=s||this._bindTemplate(r,!0),Ot.push(this);let a=super._stampTemplate(r,s);if(Ot.pop(),s.nodeList=a.nodeList,!s.wasPreBound){let l=s.childNodes=[];for(let d=a.firstChild;d;d=d.nextSibling)l.push(d)}return a.templateInfo=s,Vl(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),a}_removeBoundDom(r){const s=r.templateInfo,{previousSibling:a,nextSibling:l,parent:d}=s;a?a.nextSibling=l:d&&(d.firstChild=l),l?l.previousSibling=a:d&&(d.lastChild=a),s.nextSibling=s.previousSibling=null;let h=s.childNodes;for(let c=0;c<h.length;c++){let u=h[c];W(W(u).parentNode).removeChild(u)}}static _parseTemplateNode(r,s,a){let l=e._parseTemplateNode.call(this,r,s,a);if(r.nodeType===Node.TEXT_NODE){let d=this._parseBindings(r.textContent,s);d&&(r.textContent=Lr(d)||" ",Fi(this,s,a,"text","textContent",d),l=!0)}return l}static _parseTemplateNodeAttribute(r,s,a,l,d){let h=this._parseBindings(d,s);if(h){let c=l,u="property";wl.test(l)?u="attribute":l[l.length-1]=="$"&&(l=l.slice(0,-1),u="attribute");let m=Lr(h);return m&&u=="attribute"&&(l=="class"&&r.hasAttribute("class")&&(m+=" "+r.getAttribute(l)),r.setAttribute(l,m)),u=="attribute"&&c=="disable-upgrade$"&&r.setAttribute(l,""),r.localName==="input"&&c==="value"&&r.setAttribute(c,""),r.removeAttribute(c),u==="property"&&(l=Vs(l)),Fi(this,s,a,u,l,h,m),!0}else return e._parseTemplateNodeAttribute.call(this,r,s,a,l,d)}static _parseTemplateNestedTemplate(r,s,a){let l=e._parseTemplateNestedTemplate.call(this,r,s,a);const d=r.parentNode,h=a.templateInfo,c=d.localName==="dom-if",u=d.localName==="dom-repeat";Cr&&(c||u)&&(d.removeChild(r),a=a.parentInfo,a.templateInfo=h,a.noted=!0,l=!1);let m=h.hostProps;if($n&&c)m&&(s.hostProps=Object.assign(s.hostProps||{},m),Cr||(a.parentInfo.noted=!0));else{let p="{";for(let g in m){let A=[{mode:p,source:g,dependencies:[g],hostProp:!0}];Fi(this,s,a,"property","_host_"+g,A)}}return l}static _parseBindings(r,s){let a=[],l=0,d;for(;(d=Nr.exec(r))!==null;){d.index>l&&a.push({literal:r.slice(l,d.index)});let h=d[1][0],c=!!d[2],u=d[3].trim(),m=!1,p="",g=-1;h=="{"&&(g=u.indexOf("::"))>0&&(p=u.substring(g+2),u=u.substring(0,g),m=!0);let A=Ni(u),E=[];if(A){let{args:k,methodName:z}=A;for(let M=0;M<k.length;M++){let V=k[M];V.literal||E.push(V)}let O=s.dynamicFns;(O&&O[z]||A.static)&&(E.push(z),A.dynamicFn=!0)}else E.push(u);a.push({source:u,mode:h,negate:c,customEvent:m,signature:A,dependencies:E,event:p}),l=Nr.lastIndex}if(l&&l<r.length){let h=r.substring(l);h&&a.push({literal:h})}return a.length?a:null}static _evaluateBinding(r,s,a,l,d,h){let c;return s.signature?c=oo(r,a,l,d,s.signature):a!=s.source?c=X(r,s.source):h&&to(a)?c=X(r,a):c=r.__data[a],s.negate&&(c=!c),c}}return t}),Ot=[];/**
|
|
990
990
|
@license
|
|
991
991
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
992
992
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1002,7 +1002,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1002
1002
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1003
1003
|
Code distributed by Google as part of the polymer project is also
|
|
1004
1004
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1005
|
-
*/function
|
|
1005
|
+
*/function id(i){const e={};for(let t in i){const o=i[t];e[t]=typeof o=="function"?{type:o}:o}return e}const od=F(i=>{const e=js(i);function t(s){const a=Object.getPrototypeOf(s);return a.prototype instanceof r?a:null}function o(s){if(!s.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",s))){let a=null;if(s.hasOwnProperty(JSCompiler_renameProperty("properties",s))){const l=s.properties;l&&(a=id(l))}s.__ownProperties=a}return s.__ownProperties}class r extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const a=this._properties;this.__observedAttributes=a?Object.keys(a).map(l=>this.prototype._addPropertyToAttributeMap(l)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const a=t(this);a&&a.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const a=o(this);a&&this.createProperties(a)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const a=t(this);this.__properties=Object.assign({},a&&a._properties,o(this))}return this.__properties}static typeForProperty(a){const l=this._properties[a];return l&&l.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return r});/**
|
|
1006
1006
|
* @fileoverview
|
|
1007
1007
|
* @suppress {checkPrototypalTypes}
|
|
1008
1008
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1012,7 +1012,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1012
1012
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
1013
1013
|
* Google as part of the polymer project is also subject to an additional IP
|
|
1014
1014
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1015
|
-
*/const rd="3.5.2",
|
|
1015
|
+
*/const rd="3.5.2",Vr=window.ShadyCSS&&window.ShadyCSS.cssBuild,sd=F(i=>{const e=od(Io(i));function t(d){if(!d.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",d))){d.__propertyDefaults=null;let h=d._properties;for(let c in h){let u=h[c];"value"in u&&(d.__propertyDefaults=d.__propertyDefaults||{},d.__propertyDefaults[c]=u)}}return d.__propertyDefaults}function o(d){return d.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",d))||(d.__ownObservers=d.hasOwnProperty(JSCompiler_renameProperty("observers",d))?d.observers:null),d.__ownObservers}function r(d,h,c,u){c.computed&&(c.readOnly=!0),c.computed&&(d._hasReadOnlyEffect(h)?console.warn(`Cannot redefine computed property '${h}'.`):d._createComputedProperty(h,c.computed,u)),c.readOnly&&!d._hasReadOnlyEffect(h)?d._createReadOnlyProperty(h,!c.computed):c.readOnly===!1&&d._hasReadOnlyEffect(h)&&console.warn(`Cannot make readOnly property '${h}' non-readOnly.`),c.reflectToAttribute&&!d._hasReflectEffect(h)?d._createReflectedProperty(h):c.reflectToAttribute===!1&&d._hasReflectEffect(h)&&console.warn(`Cannot make reflected property '${h}' non-reflected.`),c.notify&&!d._hasNotifyEffect(h)?d._createNotifyingProperty(h):c.notify===!1&&d._hasNotifyEffect(h)&&console.warn(`Cannot make notify property '${h}' non-notify.`),c.observer&&d._createPropertyObserver(h,c.observer,u[c.observer]),d._addPropertyToAttributeMap(h)}function s(d,h,c,u){if(!Vr){const m=h.content.querySelectorAll("style"),p=Fs(h),g=el(c),A=h.content.firstElementChild;for(let k=0;k<g.length;k++){let z=g[k];z.textContent=d._processStyleText(z.textContent,u),h.content.insertBefore(z,A)}let E=0;for(let k=0;k<p.length;k++){let z=p[k],O=m[E];O!==z?(z=z.cloneNode(!0),O.parentNode.insertBefore(z,O)):E++,z.textContent=d._processStyleText(z.textContent,u)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(h,c),Yn&&Vr&&Hn){const m=h.content.querySelectorAll("style");if(m){let p="";Array.from(m).forEach(g=>{p+=g.textContent,g.parentNode.removeChild(g)}),d._styleSheet=new CSSStyleSheet,d._styleSheet.replaceSync(p)}}}function a(d){let h=null;if(d&&(!yi||jn)&&(h=Ut.import(d,"template"),yi&&!h))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${d}`);return h}class l extends e{static get polymerElementVersion(){return rd}static _finalizeClass(){e._finalizeClass.call(this);const h=o(this);h&&this.createObservers(h,this._properties),this._prepareTemplate()}static _prepareTemplate(){let h=this.template;h&&(typeof h=="string"?(console.error("template getter must return HTMLTemplateElement"),h=null):Ds||(h=h.cloneNode(!0))),this.prototype._template=h}static createProperties(h){for(let c in h)r(this.prototype,c,h[c],h)}static createObservers(h,c){const u=this.prototype;for(let m=0;m<h.length;m++)u._createMethodObserver(h[m],c)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let h=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof h=="function"&&(h=h()),this._template=h!==void 0?h:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&a(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(h){this._template=h}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const h=this.importMeta;if(h)this._importPath=Ao(h.url);else{const c=Ut.import(this.is);this._importPath=c&&c.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=Wn,this.importPath=this.constructor.importPath;let h=t(this.constructor);if(h)for(let c in h){let u=h[c];if(this._canApplyPropertyDefault(c)){let m=typeof u.value=="function"?u.value.call(this):u.value;this._hasAccessor(c)?this._setPendingProperty(c,m,!0):this[c]=m}}}_canApplyPropertyDefault(h){return!this.hasOwnProperty(h)}static _processStyleText(h,c){return So(h,c)}static _finalizeTemplate(h){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const u=this.importPath,m=u?Rt(u):"";s(this,c,h,m),this.prototype._bindTemplate(c)}}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(h){const c=W(this);if(c.attachShadow)return h?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:h}),c.shadowRoot.appendChild(h),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Un&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.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(h){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,h)}resolveUrl(h,c){return!c&&this.importPath&&(c=Rt(this.importPath)),Rt(h,c)}static _parseTemplateContent(h,c,u){return c.dynamicFns=c.dynamicFns||this._properties,e._parseTemplateContent.call(this,h,c,u)}static _addTemplatePropertyEffect(h,c,u){return zs&&!(c in this._properties)&&!(u.info.part.signature&&u.info.part.signature.static)&&!u.info.part.hostProp&&!h.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,h,c,u)}}return l});/**
|
|
1016
1016
|
@license
|
|
1017
1017
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1018
1018
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1020,7 +1020,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1020
1020
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1021
1021
|
Code distributed by Google as part of the polymer project is also
|
|
1022
1022
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1023
|
-
*/const
|
|
1023
|
+
*/const Rr=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class Qs{constructor(e,t){ea(e,t);const o=t.reduce((r,s,a)=>r+Zs(s)+e[a+1],e[0]);this.value=o.toString()}toString(){return this.value}}function Zs(i){if(i instanceof Qs)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function ad(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof Qs)return Zs(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const U=function(i,...e){ea(i,e);const t=document.createElement("template");let o=e.reduce((r,s,a)=>r+ad(s)+i[a+1],i[0]);return Rr&&(o=Rr.createHTML(o)),t.innerHTML=o,t},ea=(i,e)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||e.length!==i.length-1)throw new TypeError("Invalid call to the html template tag")};/**
|
|
1024
1024
|
@license
|
|
1025
1025
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1026
1026
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1028,7 +1028,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1028
1028
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1029
1029
|
Code distributed by Google as part of the polymer project is also
|
|
1030
1030
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1031
|
-
*/const q=
|
|
1031
|
+
*/const q=sd(HTMLElement),nd=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,pi=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function ld(){function i(){return!0}return ta(i)}function dd(){try{return hd()?!0:cd()?pi?!ud():!ld():!1}catch(i){return!1}}function hd(){return localStorage.getItem("vaadin.developmentmode.force")}function cd(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function ud(){return!!(pi&&Object.keys(pi).map(i=>pi[i]).filter(i=>i.productionMode).length>0)}function ta(i,e){if(typeof i!="function")return;const t=nd.exec(i.toString());if(t)try{i=new Function(t[1])}catch(o){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",o)}return i(e)}window.Vaadin=window.Vaadin||{};const Hr=function(i,e){if(window.Vaadin.developmentMode)return ta(i,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=dd());function pd(){/*! vaadin-dev-mode:start
|
|
1032
1032
|
(function () {
|
|
1033
1033
|
'use strict';
|
|
1034
1034
|
|
|
@@ -1506,7 +1506,7 @@ try {
|
|
|
1506
1506
|
|
|
1507
1507
|
}());
|
|
1508
1508
|
|
|
1509
|
-
vaadin-dev-mode:end **/}const
|
|
1509
|
+
vaadin-dev-mode:end **/}const _d=function(){if(typeof Hr=="function")return Hr(pd)};/**
|
|
1510
1510
|
* @license
|
|
1511
1511
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1512
1512
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1514,7 +1514,7 @@ try {
|
|
|
1514
1514
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1515
1515
|
* Code distributed by Google as part of the polymer project is also
|
|
1516
1516
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1517
|
-
*/let
|
|
1517
|
+
*/let Wr=0,ia=0;const ut=[];let ro=!1;function md(){ro=!1;const i=ut.length;for(let e=0;e<i;e++){const t=ut[e];if(t)try{t()}catch(o){setTimeout(()=>{throw o})}}ut.splice(0,i),ia+=i}const Ge={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},Kt={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},oa={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},xi={run(i){ro||(ro=!0,queueMicrotask(()=>md())),ut.push(i);const e=Wr;return Wr+=1,e},cancel(i){const e=i-ia;if(e>=0){if(!ut[e])throw new Error(`invalid async handle: ${i}`);ut[e]=null}}};/**
|
|
1518
1518
|
@license
|
|
1519
1519
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1520
1520
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1522,31 +1522,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1522
1522
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1523
1523
|
Code distributed by Google as part of the polymer project is also
|
|
1524
1524
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1525
|
-
*/const Xt=new Set;let
|
|
1525
|
+
*/const Xt=new Set;let re=class so{static debounce(e,t,o){return e instanceof so?e._cancelAsync():e=new so,e.setConfig(t,o),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Xt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Xt.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 ra(i){Xt.add(i)}function fd(){const i=!!Xt.size;return Xt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i}const Bt=()=>{let i;do i=fd();while(i)};/**
|
|
1526
1526
|
* @license
|
|
1527
1527
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1528
1528
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1529
|
-
*/const ye=[];function
|
|
1529
|
+
*/const ye=[];function ao(i,e,t=i.getAttribute("dir")){e?i.setAttribute("dir",e):t!=null&&i.removeAttribute("dir")}function no(){return document.documentElement.getAttribute("dir")}function gd(){const i=no();ye.forEach(e=>{ao(e,i)})}const vd=new MutationObserver(gd);vd.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Qe=i=>class extends i{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(),ao(this,no(),null))}attributeChangedCallback(e,t,o){if(super.attributeChangedCallback(e,t,o),e!=="dir")return;const r=no(),s=o===r&&ye.indexOf(this)===-1,a=!o&&t&&ye.indexOf(this)===-1;s||a?(this.__subscribe(),ao(this,r,o)):o!==r&&t===r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=ye.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,o){o==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,o)}_attributeToProperty(e,t,o){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,o)}__subscribe(){ye.includes(this)||ye.push(this)}__unsubscribe(){ye.includes(this)&&ye.splice(ye.indexOf(this),1)}};/**
|
|
1530
1530
|
* @license
|
|
1531
1531
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1532
1532
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1533
|
-
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){
|
|
1533
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){_d()};let Li;const jr=new Set,bt=i=>class extends Qe(i){static finalize(){super.finalize();const{is:e}=this;e&&!jr.has(e)&&(window.Vaadin.registrations.push(this),jr.add(e),window.Vaadin.developmentModeCallback&&(Li=re.debounce(Li,oa,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),ra(Li)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
1534
1534
|
* @license
|
|
1535
1535
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1536
1536
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1537
|
-
*/function
|
|
1537
|
+
*/function yd(i){const e=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){e.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return e}function Do(i){return i?new Set(i.split(" ")):new Set}function Ei(i){return i?[...i].join(" "):""}function sa(i,e,t){const o=Do(i.getAttribute(e));o.add(t),i.setAttribute(e,Ei(o))}function bd(i,e,t){const o=Do(i.getAttribute(e));if(o.delete(t),o.size===0){i.removeAttribute(e);return}i.setAttribute(e,Ei(o))}function xd(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
|
|
1538
1538
|
* @license
|
|
1539
1539
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
1540
1540
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1541
|
-
*/class
|
|
1541
|
+
*/class aa{constructor(e,t){this.slot=e,this.callback=t,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 e=this.slot.assignedNodes({flatten:!0});let t=[];const o=[],r=[];e.length&&(t=e.filter(s=>!this._storedNodes.includes(s))),this._storedNodes.length&&this._storedNodes.forEach((s,a)=>{const l=e.indexOf(s);l===-1?o.push(s):l!==a&&r.push(s)}),(t.length||o.length||r.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:r,removedNodes:o}),this._storedNodes=e}}/**
|
|
1542
1542
|
* @license
|
|
1543
1543
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1544
1544
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1545
|
-
*/let
|
|
1545
|
+
*/let wd=0;function zo(){return wd++}/**
|
|
1546
1546
|
* @license
|
|
1547
1547
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1548
1548
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1549
|
-
*/class Ne extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${
|
|
1549
|
+
*/class Ne extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${zo()}`}constructor(e,t,o,r={}){super();const{initializer:s,multiple:a,observe:l,useUniqueId:d,uniqueIdPrefix:h}=r;this.host=e,this.slotName=t,this.tagName=o,this.observe=typeof l=="boolean"?l:!0,this.multiple=typeof a=="boolean"?a:!1,this.slotInitializer=s,a&&(this.nodes=[]),d&&(this.defaultId=this.constructor.generateId(e,h||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:o}=this;let r=this.defaultNode;return!r&&o&&(r=document.createElement(o),r instanceof Element&&(t!==""&&r.setAttribute("slot",t),this.defaultNode=r)),r&&(this.node=r,e.appendChild(r)),r}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,o=this.host.shadowRoot.querySelector(t);this.__slotObserver=new aa(o,({addedNodes:r,removedNodes:s})=>{const a=this.multiple?this.nodes:[this.node],l=r.filter(d=>!xd(d)&&!a.includes(d));s.length&&(this.nodes=a.filter(d=>!s.includes(d)),s.forEach(d=>{this.teardownNode(d)})),l&&l.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...a,...l].filter(d=>d!==this.defaultNode),l.forEach(d=>{this.initAddedNode(d)})):(this.node&&this.node.remove(),this.node=l[0],this.initAddedNode(this.node)))})}}/**
|
|
1550
1550
|
* @license
|
|
1551
1551
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
1552
1552
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -1558,7 +1558,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1558
1558
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1559
1559
|
Code distributed by Google as part of the polymer project is also
|
|
1560
1560
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1561
|
-
*/const
|
|
1561
|
+
*/const Cd=!1,kd=i=>i,Oo=typeof document.head.style.touchAction=="string",lo="__polymerGestures",Bi="__polymerGesturesHandled",ho="__polymerGesturesTouchAction",Ur=25,qr=5,Pd=2,Sd=["mousedown","mousemove","mouseup","click"],Ad=[0,1,4,2],Ed=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function Mo(i){return Sd.indexOf(i)>-1}let na=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){na=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();function Td(i){if(!(Mo(i)||i==="touchend")&&Oo&&na&&Cd)return{passive:!0}}const Id=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Dd={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ke(i){const e=i.type;if(!Mo(e))return!1;if(e==="mousemove"){let t=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!Ed&&(t=Ad[i.which]||0),!!(t&1)}return(i.button===void 0?0:i.button)===0}function zd(i){if(i.type==="click"){if(i.detail===0)return!0;const e=Le(i);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),o=i.pageX,r=i.pageY;return!(o>=t.left&&o<=t.right&&r>=t.top&&r<=t.bottom)}return!1}const be={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Od(i){let e="auto";const t=da(i);for(let o=0,r;o<t.length;o++)if(r=t[o],r[ho]){e=r[ho];break}return e}function la(i,e,t){i.movefn=e,i.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function pt(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const da=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],Fo={},Ye=[];function Md(i,e){let t=document.elementFromPoint(i,e),o=t;for(;o&&o.shadowRoot&&!window.ShadyDOM;){const r=o;if(o=o.shadowRoot.elementFromPoint(i,e),r===o)break;o&&(t=o)}return t}function Le(i){const e=da(i);return e.length>0?e[0]:i.target}function Fd(i){const e=i.type,t=i.currentTarget[lo];if(!t)return;const o=t[e];if(!o)return;if(!i[Bi]&&(i[Bi]={},e.startsWith("touch"))){const s=i.changedTouches[0];if(e==="touchstart"&&i.touches.length===1&&(be.touch.id=s.identifier),be.touch.id!==s.identifier)return;Oo||(e==="touchstart"||e==="touchmove")&&Nd(i)}const r=i[Bi];if(!r.skip){for(let s=0,a;s<Ye.length;s++)a=Ye[s],o[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(i.type)>-1&&a.reset&&a.reset();for(let s=0,a;s<Ye.length;s++)a=Ye[s],o[a.name]&&!r[a.name]&&(r[a.name]=!0,a[e](i))}}function Nd(i){const e=i.changedTouches[0],t=i.type;if(t==="touchstart")be.touch.x=e.clientX,be.touch.y=e.clientY,be.touch.scrollDecided=!1;else if(t==="touchmove"){if(be.touch.scrollDecided)return;be.touch.scrollDecided=!0;const o=Od(i);let r=!1;const s=Math.abs(be.touch.x-e.clientX),a=Math.abs(be.touch.y-e.clientY);i.cancelable&&(o==="none"?r=!0:o==="pan-x"?r=a>s:o==="pan-y"&&(r=s>a)),r?i.preventDefault():wi("track")}}function me(i,e,t){return Fo[e]?(Ld(i,e,t),!0):!1}function Ld(i,e,t){const o=Fo[e],r=o.deps,s=o.name;let a=i[lo];a||(i[lo]=a={});for(let l=0,d,h;l<r.length;l++)d=r[l],!(Id&&Mo(d)&&d!=="click")&&(h=a[d],h||(a[d]=h={_count:0}),h._count===0&&i.addEventListener(d,Fd,Td(d)),h[s]=(h[s]||0)+1,h._count=(h._count||0)+1);i.addEventListener(e,t),o.touchAction&&ha(i,o.touchAction)}function No(i){Ye.push(i),i.emits.forEach(e=>{Fo[e]=i})}function Bd(i){for(let e=0,t;e<Ye.length;e++){t=Ye[e];for(let o=0,r;o<t.emits.length;o++)if(r=t.emits[o],r===i)return t}return null}function ha(i,e){Oo&&i instanceof HTMLElement&&xi.run(()=>{i.style.touchAction=e}),i[ho]=e}function Lo(i,e,t){const o=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(o.detail=t,kd(i).dispatchEvent(o),o.defaultPrevented){const r=t.preventer||t.sourceEvent;r&&r.preventDefault&&r.preventDefault()}}function wi(i){const e=Bd(i);e.info&&(e.info.prevent=!0)}No({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){pt(this.info)},mousedown(i){if(!Ke(i))return;const e=Le(i),t=this,o=s=>{Ke(s)||(Mt("up",e,s),pt(t.info))},r=s=>{Ke(s)&&Mt("up",e,s),pt(t.info)};la(this.info,o,r),Mt("down",e,i)},touchstart(i){Mt("down",Le(i),i.changedTouches[0],i)},touchend(i){Mt("up",Le(i),i.changedTouches[0],i)}});function Mt(i,e,t,o){e&&Lo(e,i,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:o,prevent(r){return wi(r)}})}No({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(i){this.moves.length>Pd&&this.moves.shift(),this.moves.push(i)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,pt(this.info)},mousedown(i){if(!Ke(i))return;const e=Le(i),t=this,o=s=>{const a=s.clientX,l=s.clientY;$r(t.info,a,l)&&(t.info.state=t.info.started?s.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&wi("tap"),t.info.addMove({x:a,y:l}),Ke(s)||(t.info.state="end",pt(t.info)),e&&Vi(t.info,e,s),t.info.started=!0)},r=s=>{t.info.started&&o(s),pt(t.info)};la(this.info,o,r),this.info.x=i.clientX,this.info.y=i.clientY},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(i){const e=Le(i),t=i.changedTouches[0],o=t.clientX,r=t.clientY;$r(this.info,o,r)&&(this.info.state==="start"&&wi("tap"),this.info.addMove({x:o,y:r}),Vi(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(i){const e=Le(i),t=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Vi(this.info,e,t))}});function $r(i,e,t){if(i.prevent)return!1;if(i.started)return!0;const o=Math.abs(i.x-e),r=Math.abs(i.y-t);return o>=qr||r>=qr}function Vi(i,e,t){if(!e)return;const o=i.moves[i.moves.length-2],r=i.moves[i.moves.length-1],s=r.x-i.x,a=r.y-i.y;let l,d=0;o&&(l=r.x-o.x,d=r.y-o.y),Lo(e,"track",{state:i.state,x:t.clientX,y:t.clientY,dx:s,dy:a,ddx:l,ddy:d,sourceEvent:t,hover(){return Md(t.clientX,t.clientY)}})}No({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(i){Ke(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){Ke(i)&&Yr(this.info,i)},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(i){Yr(this.info,i.changedTouches[0],i)}});function Yr(i,e,t){const o=Math.abs(e.clientX-i.x),r=Math.abs(e.clientY-i.y),s=Le(t||e);!s||Dd[s.localName]&&s.hasAttribute("disabled")||(isNaN(o)||isNaN(r)||o<=Ur&&r<=Ur||zd(e))&&(i.prevent||Lo(s,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
|
|
1562
1562
|
* @license
|
|
1563
1563
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1564
1564
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -1570,11 +1570,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1570
1570
|
* @license
|
|
1571
1571
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1572
1572
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1573
|
-
*/const
|
|
1573
|
+
*/const ca=i=>class extends wt(Zt(i)){get _activeKeys(){return[" "]}ready(){super.ready(),me(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),me(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",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
|
|
1574
1574
|
* @license
|
|
1575
1575
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1576
1576
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1577
|
-
*/let
|
|
1577
|
+
*/let Bo=!1;window.addEventListener("keydown",()=>{Bo=!0},{capture:!0});window.addEventListener("mousedown",()=>{Bo=!1},{capture:!0});function co(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Ti(){return Bo}function Vd(i){const e=i.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(i);return t.visibility==="hidden"||t.display==="none"}function Rd(i,e){const t=Math.max(i.tabIndex,0),o=Math.max(e.tabIndex,0);return t===0||o===0?o>t:t>o}function Hd(i,e){const t=[];for(;i.length>0&&e.length>0;)Rd(i[0],e[0])?t.push(e.shift()):t.push(i.shift());return t.concat(i,e)}function uo(i){const e=i.length;if(e<2)return i;const t=Math.ceil(e/2),o=uo(i.slice(0,t)),r=uo(i.slice(t));return Hd(o,r)}function Vo(i){return i.matches('[tabindex="-1"]')?!1:i.matches("input, select, textarea, button, object")?i.matches(":not([disabled])"):i.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function ua(i){return i.getRootNode().activeElement===i}function Wd(i){if(!Vo(i))return-1;const e=i.getAttribute("tabindex")||0;return Number(e)}function pa(i,e){if(i.nodeType!==Node.ELEMENT_NODE||Vd(i))return!1;const t=i,o=Wd(t);let r=o>0;o>=0&&e.push(t);let s=[];return t.localName==="slot"?s=t.assignedNodes({flatten:!0}):s=(t.shadowRoot||t).children,[...s].forEach(a=>{r=pa(a,e)||r}),r}function jd(i){const e=[];return pa(i,e)?uo(e):e}/**
|
|
1578
1578
|
* @license
|
|
1579
1579
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1580
1580
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -1582,15 +1582,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1582
1582
|
* @license
|
|
1583
1583
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1584
1584
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1585
|
-
*/const
|
|
1585
|
+
*/const _a=i=>class extends wt(i){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
|
|
1586
1586
|
* @license
|
|
1587
1587
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1588
1588
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1589
|
-
*/const
|
|
1589
|
+
*/const Ro=F(i=>class extends Ct(_a(i)){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,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_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,t){super._disabledChanged(e,t),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)}});/**
|
|
1590
1590
|
* @license
|
|
1591
1591
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1592
1592
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1593
|
-
*/const
|
|
1593
|
+
*/const ma=F(i=>class extends i{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((t,o)=>{this._delegateAttribute(t,e[o])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,o)=>{this._delegateProperty(t,e[o])})}_delegateAttribute(e,t){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",t?"true":!1),typeof t=="boolean"?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}});/**
|
|
1594
1594
|
* @license
|
|
1595
1595
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1596
1596
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -1598,15 +1598,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1598
1598
|
* @license
|
|
1599
1599
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1600
1600
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1601
|
-
*/const
|
|
1601
|
+
*/const Ud=F(i=>class extends ma(wt(ei(i))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
|
|
1602
1602
|
* @license
|
|
1603
1603
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
1604
1604
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1605
|
-
*/const Ri=new Map;function
|
|
1605
|
+
*/const Ri=new Map;function Ho(i){return Ri.has(i)||Ri.set(i,new WeakMap),Ri.get(i)}function fa(i,e){i&&i.removeAttribute(e)}function ga(i,e){if(!i||!e)return;const t=Ho(e);if(t.has(i))return;const o=Do(i.getAttribute(e));t.set(i,new Set(o))}function qd(i,e){if(!i||!e)return;const t=Ho(e),o=t.get(i);!o||o.size===0?i.removeAttribute(e):sa(i,e,Ei(o)),t.delete(i)}function Hi(i,e,t={newId:null,oldId:null,fromUser:!1}){if(!i||!e)return;const{newId:o,oldId:r,fromUser:s}=t,a=Ho(e),l=a.get(i);if(!s&&l){r&&l.delete(r),o&&l.add(o);return}s&&(l?o||a.delete(i):ga(i,e),fa(i,e)),bd(i,e,r);const d=o||Ei(l);d&&sa(i,e,d)}function $d(i,e){ga(i,e),fa(i,e)}/**
|
|
1606
1606
|
* @license
|
|
1607
1607
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1608
1608
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1609
|
-
*/class
|
|
1609
|
+
*/class Yd{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,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(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const o=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,o,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?($d(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(qd(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,o){Hi(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:o})}__setErrorIdToAriaAttribute(e,t){Hi(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){Hi(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
|
|
1610
1610
|
* @license
|
|
1611
1611
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1612
1612
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -1614,51 +1614,51 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1614
1614
|
* @license
|
|
1615
1615
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
1616
1616
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1617
|
-
*/const he=document.createElement("div");he.style.position="fixed";he.style.clip="rect(0px, 0px, 0px, 0px)";he.setAttribute("aria-live","polite");document.body.appendChild(he);let li;function
|
|
1617
|
+
*/const he=document.createElement("div");he.style.position="fixed";he.style.clip="rect(0px, 0px, 0px, 0px)";he.setAttribute("aria-live","polite");document.body.appendChild(he);let li;function Gd(i,e={}){const t=e.mode||"polite",o=e.timeout===void 0?150:e.timeout;t==="alert"?(he.removeAttribute("aria-live"),he.removeAttribute("role"),li=re.debounce(li,Kt,()=>{he.setAttribute("role","alert")})):(li&&li.cancel(),he.removeAttribute("role"),he.setAttribute("aria-live",t)),he.textContent="",setTimeout(()=>{he.textContent=i},o)}/**
|
|
1618
1618
|
* @license
|
|
1619
1619
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
1620
1620
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1621
|
-
*/class
|
|
1621
|
+
*/class Wo extends Ne{constructor(e,t,o,r={}){super(e,t,o,gs(_i({},r),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(o=>{const r=o.target,s=r===this.node;o.type==="attributes"?s&&this.__updateNodeId(r):(s||r.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
|
|
1622
1622
|
* @license
|
|
1623
1623
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1624
1624
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1625
|
-
*/class
|
|
1625
|
+
*/class Kd extends Wo{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:o}=this,r=!!(o&&t&&t.trim()!=="");e&&(e.textContent=r?t:"",e.hidden=!r,r&&Gd(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
|
|
1626
1626
|
* @license
|
|
1627
1627
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1628
1628
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1629
|
-
*/class
|
|
1629
|
+
*/class Xd extends Wo{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
|
|
1630
1630
|
* @license
|
|
1631
1631
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1632
1632
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1633
|
-
*/class
|
|
1633
|
+
*/class Jd extends Wo{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
|
|
1634
1634
|
* @license
|
|
1635
1635
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1636
1636
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1637
|
-
*/const
|
|
1637
|
+
*/const Qd=F(i=>class extends Ze(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Jd(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)}});/**
|
|
1638
1638
|
* @license
|
|
1639
1639
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1640
1640
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1641
|
-
*/const
|
|
1641
|
+
*/const jo=F(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
|
|
1642
1642
|
* @license
|
|
1643
1643
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1644
1644
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1645
|
-
*/const
|
|
1645
|
+
*/const Uo=i=>class extends jo(Qd(Ze(i))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Yd(this),this._helperController=new Xd(this),this._errorController=new Kd(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:t,node:o}=e.detail;this.__labelChanged(t,o)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:o}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,o)})}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,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.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 t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)})}};/**
|
|
1646
1646
|
* @license
|
|
1647
1647
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1648
1648
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1649
|
-
*/class Ii extends Ne{constructor(e,t,
|
|
1649
|
+
*/class Ii extends Ne{constructor(e,t,o={}){const{uniqueIdPrefix:r}=o;super(e,"input","input",{initializer:(s,a)=>{a.value&&(s.value=a.value),a.type&&s.setAttribute("type",a.type),s.id=this.defaultId,typeof t=="function"&&t(s)},useUniqueId:!0,uniqueIdPrefix:r})}}/**
|
|
1650
1650
|
* @license
|
|
1651
1651
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1652
1652
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1653
|
-
*/class Di{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",
|
|
1653
|
+
*/class Di{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",o=>{this.__initLabel(o.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
|
|
1654
1654
|
* @license
|
|
1655
1655
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1656
1656
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1657
|
-
*/const
|
|
1657
|
+
*/const Zd=i=>class extends Uo(Ud(Ro(ca(i)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Ii(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Di(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
|
|
1658
1658
|
* @license
|
|
1659
1659
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1660
1660
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1661
|
-
*/const
|
|
1661
|
+
*/const eh=y`
|
|
1662
1662
|
:host {
|
|
1663
1663
|
display: inline-block;
|
|
1664
1664
|
}
|
|
@@ -1750,7 +1750,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1750
1750
|
* @license
|
|
1751
1751
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1752
1752
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1753
|
-
*/C("vaadin-checkbox",
|
|
1753
|
+
*/C("vaadin-checkbox",eh,{moduleId:"vaadin-checkbox-styles"});class th extends Zd(bt(J(q))){static get is(){return"vaadin-checkbox"}static get template(){return U`
|
|
1754
1754
|
<div class="vaadin-checkbox-container">
|
|
1755
1755
|
<div part="checkbox" aria-hidden="true"></div>
|
|
1756
1756
|
<slot name="input"></slot>
|
|
@@ -1766,11 +1766,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1766
1766
|
</div>
|
|
1767
1767
|
</div>
|
|
1768
1768
|
<slot name="tooltip"></slot>
|
|
1769
|
-
`}ready(){super.ready(),this._tooltipController=new xt(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}N(
|
|
1769
|
+
`}ready(){super.ready(),this._tooltipController=new xt(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}N(th);/**
|
|
1770
1770
|
* @license
|
|
1771
1771
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1772
1772
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1773
|
-
*/const
|
|
1773
|
+
*/const va=y`
|
|
1774
1774
|
:host {
|
|
1775
1775
|
--_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
|
|
1776
1776
|
}
|
|
@@ -1830,7 +1830,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1830
1830
|
* @license
|
|
1831
1831
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1832
1832
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1833
|
-
*/const
|
|
1833
|
+
*/const qo=y`
|
|
1834
1834
|
[part='label'] {
|
|
1835
1835
|
align-self: flex-start;
|
|
1836
1836
|
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
@@ -1942,7 +1942,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1942
1942
|
margin-left: 0;
|
|
1943
1943
|
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
1944
1944
|
}
|
|
1945
|
-
`;C("",
|
|
1945
|
+
`;C("",qo,{moduleId:"lumo-required-field"});const ih=y`
|
|
1946
1946
|
:host {
|
|
1947
1947
|
color: var(--lumo-body-text-color);
|
|
1948
1948
|
font-size: var(--lumo-font-size-m);
|
|
@@ -1985,15 +1985,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1985
1985
|
color: var(--lumo-secondary-text-color);
|
|
1986
1986
|
}
|
|
1987
1987
|
}
|
|
1988
|
-
`;C("vaadin-checkbox-group",[
|
|
1988
|
+
`;C("vaadin-checkbox-group",[qo,va,ih],{moduleId:"lumo-checkbox-group"});/**
|
|
1989
1989
|
* @license
|
|
1990
1990
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
1991
1991
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1992
|
-
*/const
|
|
1992
|
+
*/const oh=i=>class extends Uo(Ct(wt(i))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new xt(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const o=this.__checkboxes.map(r=>r.inputElement);this._tooltipController.setAriaTarget(o)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new aa(e,({addedNodes:t,removedNodes:o})=>{const r=this.__filterCheckboxes(t),s=this.__filterCheckboxes(o);r.forEach(this.__registerCheckbox),s.forEach(this.__unregisterCheckbox);const a=this.__checkboxes.map(l=>l.inputElement);this._tooltipController.setAriaTarget(a),this.__warnOfCheckboxesWithoutValue(r)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:o}=t;return!t.hasAttribute("value")&&(!o||o==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(o=>{o.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(o=>{o.checked=e&&e.includes(o.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(o=>{o.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
|
|
1993
1993
|
* @license
|
|
1994
1994
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
1995
1995
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1996
|
-
*/const
|
|
1996
|
+
*/const rh=y`
|
|
1997
1997
|
:host {
|
|
1998
1998
|
display: inline-flex;
|
|
1999
1999
|
}
|
|
@@ -2026,7 +2026,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2026
2026
|
* @license
|
|
2027
2027
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
2028
2028
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2029
|
-
*/C("vaadin-checkbox-group",
|
|
2029
|
+
*/C("vaadin-checkbox-group",rh,{moduleId:"vaadin-checkbox-group-styles"});class sh extends oh(bt(J(q))){static get is(){return"vaadin-checkbox-group"}static get template(){return U`
|
|
2030
2030
|
<div class="vaadin-group-field-container">
|
|
2031
2031
|
<div part="label">
|
|
2032
2032
|
<slot name="label"></slot>
|
|
@@ -2047,11 +2047,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2047
2047
|
</div>
|
|
2048
2048
|
|
|
2049
2049
|
<slot name="tooltip"></slot>
|
|
2050
|
-
`}}N(
|
|
2050
|
+
`}}N(sh);/**
|
|
2051
2051
|
* @license
|
|
2052
2052
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2053
2053
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2054
|
-
*/const
|
|
2054
|
+
*/const $o=y`
|
|
2055
2055
|
:host {
|
|
2056
2056
|
top: var(--lumo-space-m);
|
|
2057
2057
|
right: var(--lumo-space-m);
|
|
@@ -2116,11 +2116,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2116
2116
|
opacity: 1;
|
|
2117
2117
|
}
|
|
2118
2118
|
}
|
|
2119
|
-
`;C("",
|
|
2119
|
+
`;C("",$o,{moduleId:"lumo-overlay"});/**
|
|
2120
2120
|
* @license
|
|
2121
2121
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2122
2122
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2123
|
-
*/const
|
|
2123
|
+
*/const Yo=y`
|
|
2124
2124
|
:host([opening]),
|
|
2125
2125
|
:host([closing]) {
|
|
2126
2126
|
animation: 0.14s lumo-overlay-dummy-animation;
|
|
@@ -2150,7 +2150,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2150
2150
|
opacity: 0;
|
|
2151
2151
|
}
|
|
2152
2152
|
}
|
|
2153
|
-
`;C("",
|
|
2153
|
+
`;C("",Yo,{moduleId:"lumo-menu-overlay-core"});const ah=y`
|
|
2154
2154
|
/* Small viewport (bottom sheet) styles */
|
|
2155
2155
|
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
2156
2156
|
@media (max-width: 450px), (max-height: 450px) {
|
|
@@ -2212,7 +2212,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2212
2212
|
transform: translateY(150%);
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
|
-
`,
|
|
2215
|
+
`,ya=[$o,Yo,ah];C("",ya,{moduleId:"lumo-menu-overlay"});const nh=y`
|
|
2216
2216
|
[part='overlay'] {
|
|
2217
2217
|
/*
|
|
2218
2218
|
Width:
|
|
@@ -2257,7 +2257,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2257
2257
|
max-height: 70vh;
|
|
2258
2258
|
}
|
|
2259
2259
|
}
|
|
2260
|
-
`;C("vaadin-date-picker-overlay",[
|
|
2260
|
+
`;C("vaadin-date-picker-overlay",[ya,nh],{moduleId:"lumo-date-picker-overlay"});const ba=y`
|
|
2261
2261
|
:host {
|
|
2262
2262
|
/* Sizing */
|
|
2263
2263
|
--lumo-button-size: var(--lumo-size-m);
|
|
@@ -2533,7 +2533,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2533
2533
|
margin-left: 0;
|
|
2534
2534
|
margin-right: 0;
|
|
2535
2535
|
}
|
|
2536
|
-
`;C("vaadin-button",
|
|
2536
|
+
`;C("vaadin-button",ba,{moduleId:"lumo-button"});C("vaadin-date-picker-year",y`
|
|
2537
2537
|
:host([current]) [part='year-number'] {
|
|
2538
2538
|
color: var(--lumo-primary-text-color);
|
|
2539
2539
|
}
|
|
@@ -3036,7 +3036,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3036
3036
|
* @license
|
|
3037
3037
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3038
3038
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3039
|
-
*/const
|
|
3039
|
+
*/const xa=y`
|
|
3040
3040
|
[part$='button'] {
|
|
3041
3041
|
flex: none;
|
|
3042
3042
|
width: 1em;
|
|
@@ -3063,11 +3063,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3063
3063
|
font-family: 'lumo-icons';
|
|
3064
3064
|
display: block;
|
|
3065
3065
|
}
|
|
3066
|
-
`;C("",
|
|
3066
|
+
`;C("",xa,{moduleId:"lumo-field-button"});/**
|
|
3067
3067
|
* @license
|
|
3068
3068
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3069
3069
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3070
|
-
*/const
|
|
3070
|
+
*/const lh=y`
|
|
3071
3071
|
:host {
|
|
3072
3072
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
3073
3073
|
color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
|
|
@@ -3198,7 +3198,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3198
3198
|
[part='clear-button']::before {
|
|
3199
3199
|
content: var(--lumo-icons-cross);
|
|
3200
3200
|
}
|
|
3201
|
-
`,ti=[
|
|
3201
|
+
`,ti=[qo,xa,va,lh];C("",ti,{moduleId:"lumo-input-field-shared-styles"});const dh=y`
|
|
3202
3202
|
[part='toggle-button']::before {
|
|
3203
3203
|
content: var(--lumo-icons-calendar);
|
|
3204
3204
|
}
|
|
@@ -3220,15 +3220,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3220
3220
|
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
|
|
3221
3221
|
--_lumo-text-field-overflow-mask-image: none;
|
|
3222
3222
|
}
|
|
3223
|
-
`;C("vaadin-date-picker",[ti,
|
|
3223
|
+
`;C("vaadin-date-picker",[ti,dh],{moduleId:"lumo-date-picker"});/**
|
|
3224
3224
|
* @license
|
|
3225
3225
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3226
3226
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3227
|
-
*/const
|
|
3227
|
+
*/const hh=i=>class extends i{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(t=>t.focus&&t.focus())})}};/**
|
|
3228
3228
|
* @license
|
|
3229
3229
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3230
3230
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3231
|
-
*/const
|
|
3231
|
+
*/const ch=y`
|
|
3232
3232
|
:host {
|
|
3233
3233
|
display: flex;
|
|
3234
3234
|
align-items: center;
|
|
@@ -3297,15 +3297,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3297
3297
|
* @license
|
|
3298
3298
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3299
3299
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3300
|
-
*/C("vaadin-input-container",
|
|
3300
|
+
*/C("vaadin-input-container",ch,{moduleId:"vaadin-input-container-styles"});class uh extends hh(J(Qe(q))){static get is(){return"vaadin-input-container"}static get template(){return U`
|
|
3301
3301
|
<slot name="prefix"></slot>
|
|
3302
3302
|
<slot></slot>
|
|
3303
3303
|
<slot name="suffix"></slot>
|
|
3304
|
-
`}}N(
|
|
3304
|
+
`}}N(uh);/**
|
|
3305
3305
|
* @license
|
|
3306
3306
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3307
3307
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3308
|
-
*/const
|
|
3308
|
+
*/const wa=y`
|
|
3309
3309
|
:host {
|
|
3310
3310
|
z-index: 200;
|
|
3311
3311
|
position: fixed;
|
|
@@ -3372,55 +3372,55 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3372
3372
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3373
3373
|
Code distributed by Google as part of the polymer project is also
|
|
3374
3374
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3375
|
-
*/let
|
|
3375
|
+
*/let po=!1,ph=[],Ca=[];function _h(){po=!0,requestAnimationFrame(function(){po=!1,mh(ph),setTimeout(function(){fh(Ca)})})}function mh(i){for(;i.length;)ka(i.shift())}function fh(i){for(let e=0,t=i.length;e<t;e++)ka(i.shift())}function ka(i){const e=i[0],t=i[1],o=i[2];try{t.apply(e,o)}catch(r){setTimeout(()=>{throw r})}}function Pa(i,e,t){po||_h(),Ca.push([i,e,t])}/**
|
|
3376
3376
|
* @license
|
|
3377
3377
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3378
3378
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3379
|
-
*/const zi=i=>i.test(navigator.userAgent),
|
|
3379
|
+
*/const zi=i=>i.test(navigator.userAgent),_o=i=>i.test(navigator.platform),gh=i=>i.test(navigator.vendor);zi(/Android/u);zi(/Chrome/u)&&gh(/Google Inc/u);zi(/Firefox/u);const vh=_o(/^iPad/u)||_o(/^Mac/u)&&navigator.maxTouchPoints>1,yh=_o(/^iPhone/u),Sa=yh||vh,bh=zi(/^((?!chrome|android).)*safari/iu),mo=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(i){return!1}})();/**
|
|
3380
3380
|
* @license
|
|
3381
3381
|
* Copyright (c) 2017 Anton Korzunov
|
|
3382
3382
|
* SPDX-License-Identifier: MIT
|
|
3383
|
-
*/let lt=new WeakMap,di=new WeakMap,hi={},Wi=0;const
|
|
3383
|
+
*/let lt=new WeakMap,di=new WeakMap,hi={},Wi=0;const Gr=i=>i&&i.nodeType===Node.ELEMENT_NODE,ji=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},xh=(i,e)=>Gr(i)?e.map(t=>{if(!Gr(t))return ji(t,"is not a valid element"),null;let o=t;for(;o&&o!==i;){if(i.contains(o))return t;o=o.getRootNode().host}return ji(t,"is not contained inside",i),null}).filter(t=>!!t):(ji(i,"is not a valid element"),[]),wh=(i,e,t,o)=>{const r=xh(e,Array.isArray(i)?i:[i]);hi[t]||(hi[t]=new WeakMap);const s=hi[t],a=[],l=new Set,d=new Set(r),h=u=>{if(!u||l.has(u))return;l.add(u);const m=u.assignedSlot;m&&h(m),h(u.parentNode||u.host)};r.forEach(h);const c=u=>{if(!u||d.has(u))return;const m=u.shadowRoot;(m?[...u.children,...m.children]:[...u.children]).forEach(p=>{if(!["template","script","style"].includes(p.localName))if(l.has(p))c(p);else{const g=p.getAttribute(o),A=g!==null&&g!=="false",E=(lt.get(p)||0)+1,k=(s.get(p)||0)+1;lt.set(p,E),s.set(p,k),a.push(p),E===1&&A&&di.set(p,!0),k===1&&p.setAttribute(t,"true"),A||p.setAttribute(o,"true")}})};return c(e),l.clear(),Wi+=1,()=>{a.forEach(u=>{const m=lt.get(u)-1,p=s.get(u)-1;lt.set(u,m),s.set(u,p),m||(di.has(u)?di.delete(u):u.removeAttribute(o)),p||u.removeAttribute(t)}),Wi-=1,Wi||(lt=new WeakMap,lt=new WeakMap,di=new WeakMap,hi={})}},Aa=(i,e=document.body,t="data-aria-hidden")=>{const o=Array.from(Array.isArray(i)?i:[i]);return e&&o.push(...Array.from(e.querySelectorAll("[aria-live]"))),wh(o,e,t,"aria-hidden")};/**
|
|
3384
3384
|
* @license
|
|
3385
3385
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3386
3386
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3387
|
-
*/class
|
|
3387
|
+
*/class Ch{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=Aa(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
|
|
3388
3388
|
* @license
|
|
3389
3389
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3390
3390
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3391
|
-
*/class
|
|
3391
|
+
*/class kh{saveFocus(e){this.focusNode=e||co()}restoreFocus(e){const t=this.focusNode;if(!t)return;const o=e?e.preventScroll:!1;co()===document.body?setTimeout(()=>t.focus({preventScroll:o})):t.focus({preventScroll:o}),this.focusNode=null}}/**
|
|
3392
3392
|
* @license
|
|
3393
3393
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3394
3394
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3395
|
-
*/const Ui=[];class
|
|
3395
|
+
*/const Ui=[];class Ph{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return jd(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(ua).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Ui.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Ui.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Ui).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,o=e?-1:1,r=this.__focusedElementIndex,s=(t.length+r+o)%t.length,a=t[s];a.focus(),a.localName==="input"&&a.select()}}/**
|
|
3396
3396
|
* @license
|
|
3397
3397
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3398
3398
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3399
|
-
*/const
|
|
3399
|
+
*/const Sh=i=>class extends Ze(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Ch(this),this.__focusTrapController=new Ph(this),this.__focusRestorationController=new kh}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=!Ti();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=co();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const o=e.ownerDocument;for(;t&&t!==o&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
|
|
3400
3400
|
* @license
|
|
3401
3401
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3402
3402
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3403
|
-
*/const
|
|
3403
|
+
*/const Ea=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,e)=>i.__zIndex-e.__zIndex||0),fo=()=>Ea().filter(i=>i.$.overlay),Ah=i=>i===fo().pop(),Eh=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Ah(this)}bringToFront(){let e="";const t=Ea().filter(o=>o!==this).pop();t&&(e=t.__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"),fo().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=fo();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
|
|
3404
3404
|
* @license
|
|
3405
3405
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3406
3406
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3407
|
-
*/const
|
|
3407
|
+
*/const Ta=i=>class extends Sh(Eh(i)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Sa&&(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 t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,o=document.documentElement.clientHeight;t&&o>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${o-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,t,o,r){const s=this._oldOwner!==t||this._oldModel!==o;this._oldModel=o,this._oldOwner=t;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||s)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),Pa(this,()=>{this._trapFocus();const o=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(o)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(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),t=e.getPropertyValue("animation-name");return e.getPropertyValue("display")!=="none"&&t&&t!=="none"}_enqueueAnimation(e,t){const o=`__${e}Handler`,r=s=>{s&&s.target!==this||(t(),this.removeEventListener("animationend",r),delete this[o])};this[o]=r,this.addEventListener("animationend",r)}_flushAnimation(e){const t=`__${e}Handler`;typeof this[t]=="function"&&this[t]()}_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 t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}};/**
|
|
3408
3408
|
* @license
|
|
3409
3409
|
* Copyright (c) 2024 Vaadin Ltd.
|
|
3410
3410
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3411
|
-
*/function
|
|
3411
|
+
*/function Th(i,e){let t=null;const o=document.documentElement;function r(){t&&t.disconnect(),t=null}function s(a=!1,l=1){r();const{left:d,top:h,width:c,height:u}=i.getBoundingClientRect();if(a||e(),!c||!u)return;const m=Math.floor(h),p=Math.floor(o.clientWidth-(d+c)),g=Math.floor(o.clientHeight-(h+u)),A=Math.floor(d),E={rootMargin:`${-m}px ${-p}px ${-g}px ${-A}px`,threshold:Math.max(0,Math.min(1,l))||1};let k=!0;function z(O){let M=O[0].intersectionRatio;if(M!==l){if(!k)return s();M===0&&(M=1e-7),s(!1,M)}k=!1}t=new IntersectionObserver(z,E),t.observe(i)}return s(!0),r}/**
|
|
3412
3412
|
* @license
|
|
3413
3413
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3414
3414
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3415
|
-
*/const qi={start:"top",end:"bottom"},$i={start:"left",end:"right"},
|
|
3415
|
+
*/const qi={start:"top",end:"bottom"},$i={start:"left",end:"right"},Kr=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),Ia=i=>class extends i{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=yd(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Th(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,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,Kr.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,Kr.observe(t))),e){const o=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(o[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 t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const o=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,o),s=!o&&r||o&&!r;this.style.alignItems=s?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,qi,this,t),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,$i,this,r);Object.assign(this.style,l,d),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!s),this.toggleAttribute("start-aligned",s)}__shouldAlignStartHorizontally(e,t){const o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),s=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,o,r,this.__margins,s,this.noHorizontalOverlap,$i)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,o,this.__margins,r,this.noVerticalOverlap,qi)}__shouldAlignStart(e,t,o,r,s,a,l){const d=o-e[a?l.end:l.start]-r[l.end],h=e[a?l.start:l.end]-r[l.start],c=s?d:h,u=c>(s?h:d)||c>t;return s===u}__adjustBottomProperty(e,t,o){let r;if(e===t.end){if(t.end===qi.end){const s=Math.min(window.innerHeight,document.documentElement.clientHeight);if(o>s&&this.__oldViewportHeight){const a=this.__oldViewportHeight-s;r=o-a}this.__oldViewportHeight=s}if(t.end===$i.end){const s=Math.min(window.innerWidth,document.documentElement.clientWidth);if(o>s&&this.__oldViewportWidth){const a=this.__oldViewportWidth-s;r=o-a}this.__oldViewportWidth=s}}return r}__calculatePositionInOneDimension(e,t,o,r,s,a){const l=a?r.start:r.end,d=a?r.end:r.start,h=parseFloat(s.style[l]||getComputedStyle(s)[l]),c=this.__adjustBottomProperty(l,r,h),u=t[a?r.start:r.end]-e[o===a?r.end:r.start],m=c?`${c}px`:`${h+u*(a?-1:1)}px`;return{[l]:m,[d]:""}}};/**
|
|
3416
3416
|
* @license
|
|
3417
3417
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
3418
3418
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3419
|
-
*/const
|
|
3419
|
+
*/const Ih=i=>class extends Ia(Ta(i)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Vo(e.composedPath()[0])&&e.preventDefault()}};/**
|
|
3420
3420
|
* @license
|
|
3421
3421
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3422
3422
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3423
|
-
*/const
|
|
3423
|
+
*/const Dh=y`
|
|
3424
3424
|
[part='overlay'] {
|
|
3425
3425
|
display: flex;
|
|
3426
3426
|
flex: auto;
|
|
@@ -3439,18 +3439,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3439
3439
|
* @license
|
|
3440
3440
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3441
3441
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3442
|
-
*/C("vaadin-date-picker-overlay",[
|
|
3442
|
+
*/C("vaadin-date-picker-overlay",[wa,Dh],{moduleId:"vaadin-date-picker-overlay-styles"});class zh extends Ih(Qe(J(q))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return U`
|
|
3443
3443
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
3444
3444
|
<div part="overlay" id="overlay">
|
|
3445
3445
|
<div part="content" id="content">
|
|
3446
3446
|
<slot></slot>
|
|
3447
3447
|
</div>
|
|
3448
3448
|
</div>
|
|
3449
|
-
`}}N(
|
|
3449
|
+
`}}N(zh);/**
|
|
3450
3450
|
* @license
|
|
3451
3451
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3452
3452
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3453
|
-
*/const
|
|
3453
|
+
*/const Da=y`
|
|
3454
3454
|
:host {
|
|
3455
3455
|
display: inline-block;
|
|
3456
3456
|
position: relative;
|
|
@@ -3510,7 +3510,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3510
3510
|
outline-color: GrayText;
|
|
3511
3511
|
}
|
|
3512
3512
|
}
|
|
3513
|
-
`,
|
|
3513
|
+
`,Oh=i=>i`
|
|
3514
3514
|
<div class="vaadin-button-container">
|
|
3515
3515
|
<span part="prefix" aria-hidden="true">
|
|
3516
3516
|
<slot name="prefix"></slot>
|
|
@@ -3527,15 +3527,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3527
3527
|
* @license
|
|
3528
3528
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3529
3529
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3530
|
-
*/const
|
|
3530
|
+
*/const za=i=>class extends ca(_a(Ct(i))){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())}};/**
|
|
3531
3531
|
* @license
|
|
3532
3532
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3533
3533
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3534
|
-
*/C("vaadin-button",
|
|
3534
|
+
*/C("vaadin-button",Da,{moduleId:"vaadin-button-styles"});class Mh extends za(bt(J(Ze(q)))){static get is(){return"vaadin-button"}static get template(){return Oh(U)}ready(){super.ready(),this._tooltipController=new xt(this),this.addController(this._tooltipController)}}N(Mh);/**
|
|
3535
3535
|
* @license
|
|
3536
3536
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3537
3537
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3538
|
-
*/function
|
|
3538
|
+
*/function Fh(i){let e=i.getDay();e===0&&(e=7);const t=4-e,o=new Date(i.getTime()+t*24*3600*1e3),r=new Date(0,0);r.setFullYear(o.getFullYear());const s=o.getTime()-r.getTime(),a=Math.round(s/(24*3600*1e3));return Math.floor(a/7+1)}function go(i){const e=new Date(i);return e.setHours(0,0,0,0),e}function xe(i,e,t=go){return i instanceof Date&&e instanceof Date&&t(i).getTime()===t(e).getTime()}function Go(i){return{day:i.getDate(),month:i.getMonth(),year:i.getFullYear()}}function gt(i,e,t,o){let r=!1;if(typeof o=="function"&&i){const s=Go(i);r=o(s)}return(!e||i>=e)&&(!t||i<=t)&&!r}function Oa(i,e){return e.filter(t=>t!==void 0).reduce((t,o)=>{if(!o)return t;if(!t)return o;const r=Math.abs(i.getTime()-o.getTime()),s=Math.abs(t.getTime()-i.getTime());return r<s?o:t})}function Ma(i){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(i)+e.getMonth()),t}function Nh(i,e,t=0,o=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let r=e+Math.floor(i.getFullYear()/100)*100;return i<new Date(r-50,t,o)?r-=100:i>new Date(r+50,t,o)&&(r+=100),r}function Ft(i){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(i);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function Lh(i){const e=(d,h="00")=>(h+d).substr((h+d).length-h.length);let t="",o="0000",r=i.year;r<0?(r=-r,t="-",o="000000"):i.year>=1e4&&(t="+",o="000000");const s=t+e(r,o),a=e(i.month+1),l=e(i.day);return[s,a,l].join("-")}function Bh(i){return i instanceof Date?Lh({year:i.getFullYear(),month:i.getMonth(),day:i.getDate()}):""}/**
|
|
3539
3539
|
@license
|
|
3540
3540
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3541
3541
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3543,7 +3543,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3543
3543
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3544
3544
|
Code distributed by Google as part of the polymer project is also
|
|
3545
3545
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3546
|
-
*/class Ci{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Jt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Jt.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(e,t,
|
|
3546
|
+
*/class Ci{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Jt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Jt.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(e,t,o){return e instanceof Ci?e._cancelAsync():e=new Ci,e.setConfig(t,o),e}}let Jt=new Set;const Vh=function(i){Jt.add(i)},Rh=function(){const i=!!Jt.size;return Jt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i};/**
|
|
3547
3547
|
@license
|
|
3548
3548
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3549
3549
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3551,11 +3551,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3551
3551
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3552
3552
|
Code distributed by Google as part of the polymer project is also
|
|
3553
3553
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3554
|
-
*/const
|
|
3554
|
+
*/const Ko=function(){let i,e;do i=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=Rh();while(i||e)};/**
|
|
3555
3555
|
* @license
|
|
3556
3556
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3557
3557
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3558
|
-
*/const
|
|
3558
|
+
*/const Fa=document.createElement("template");Fa.innerHTML=`
|
|
3559
3559
|
<style>
|
|
3560
3560
|
:host {
|
|
3561
3561
|
display: block;
|
|
@@ -3605,11 +3605,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3605
3605
|
<div class="buffer"></div>
|
|
3606
3606
|
<div id="fullHeight"></div>
|
|
3607
3607
|
</div>
|
|
3608
|
-
`;class
|
|
3608
|
+
`;class Na extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Fa.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const o=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(o)}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(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%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(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Ko()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,o=e>this._buffers[1].translateY+t,r=e<this._buffers[0].translateY+t;(o||r)&&(this._translateBuffer(r),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=re.debounce(this._debouncerScrollFinish,Ge.after(200),()=>{const s=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],s)&&!this._isVisible(this._buffers[1],s)&&(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(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=re.debounce(this._debouncerUpdateClones,Ge.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let o=0;o<this.bufferSize;o++){const r=document.createElement("div");r.style.height=`${this.itemHeight}px`,r.instance={};const s=`vaadin-infinite-scroller-item-content-${zo()}`,a=document.createElement("slot");a.setAttribute("name",s),a._itemWrapper=r,t.appendChild(a),r.setAttribute("slot",s),this.appendChild(r),this._isVisible(r,e)&&this._ensureStampedInstance(r)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(o=>{e.instance[o]=t[o]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((o,r)=>{if(!o.updated){const s=this._firstIndex+this.bufferSize*r;[...o.children].forEach((a,l)=>{const d=a._itemWrapper;(!e||this._isVisible(d,t))&&this._updateElement(d.instance,s+l)}),o.updated=!0}})}_isVisible(e,t){const o=e.getBoundingClientRect();return o.bottom>t.top&&o.top<t.bottom}}/**
|
|
3609
3609
|
* @license
|
|
3610
3610
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3611
3611
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3612
|
-
*/const
|
|
3612
|
+
*/const La=document.createElement("template");La.innerHTML=`
|
|
3613
3613
|
<style>
|
|
3614
3614
|
:host {
|
|
3615
3615
|
--vaadin-infinite-scroller-item-height: 270px;
|
|
@@ -3621,11 +3621,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3621
3621
|
height: 100%;
|
|
3622
3622
|
}
|
|
3623
3623
|
</style>
|
|
3624
|
-
`;class
|
|
3624
|
+
`;class Hh extends Na{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(La.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Ma(t)}}N(Hh);/**
|
|
3625
3625
|
* @license
|
|
3626
3626
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3627
3627
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3628
|
-
*/const
|
|
3628
|
+
*/const Ba=document.createElement("template");Ba.innerHTML=`
|
|
3629
3629
|
<style>
|
|
3630
3630
|
:host {
|
|
3631
3631
|
--vaadin-infinite-scroller-item-height: 80px;
|
|
@@ -3659,15 +3659,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3659
3659
|
border-left-color: #000;
|
|
3660
3660
|
}
|
|
3661
3661
|
</style>
|
|
3662
|
-
`;class
|
|
3662
|
+
`;class Wh extends Na{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Ba.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,o=new Date(t);return o.setFullYear(parseInt(e)+t.getFullYear()),o.getFullYear()}}N(Wh);/**
|
|
3663
3663
|
* @license
|
|
3664
3664
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3665
3665
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3666
|
-
*/const
|
|
3666
|
+
*/const jh=i=>class extends i{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
|
|
3667
3667
|
* @license
|
|
3668
3668
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3669
3669
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3670
|
-
*/class
|
|
3670
|
+
*/class Uh extends J(jh(q)){static get is(){return"vaadin-date-picker-year"}static get template(){return U`
|
|
3671
3671
|
<style>
|
|
3672
3672
|
:host {
|
|
3673
3673
|
display: block;
|
|
@@ -3676,7 +3676,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3676
3676
|
</style>
|
|
3677
3677
|
<div part="year-number">[[year]]</div>
|
|
3678
3678
|
<div part="year-separator" aria-hidden="true"></div>
|
|
3679
|
-
`}}N(
|
|
3679
|
+
`}}N(Uh);/**
|
|
3680
3680
|
@license
|
|
3681
3681
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3682
3682
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3684,7 +3684,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3684
3684
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3685
3685
|
Code distributed by Google as part of the polymer project is also
|
|
3686
3686
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3687
|
-
*/function
|
|
3687
|
+
*/function Xo(i,e,t,o,r){let s;r&&(s=typeof t=="object"&&t!==null,s&&(o=i.__dataTemp[e]));let a=o!==t&&(o===o||t===t);return s&&a&&(i.__dataTemp[e]=t),a}const Jo=F(i=>{class e extends i{_shouldPropertyChange(o,r,s){return Xo(this,o,r,s,!0)}}return e}),qh=F(i=>{class e extends i{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(o,r,s){return Xo(this,o,r,s,this.mutableData)}}return e});Jo._mutablePropertyChange=Xo;/**
|
|
3688
3688
|
@license
|
|
3689
3689
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3690
3690
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3692,7 +3692,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3692
3692
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3693
3693
|
Code distributed by Google as part of the polymer project is also
|
|
3694
3694
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3695
|
-
*/let
|
|
3695
|
+
*/let vo=null;function yo(){return vo}yo.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:yo,writable:!0}});const Va=Io(yo),$h=Jo(Va);function Yh(i,e){vo=i,Object.setPrototypeOf(i,e.prototype),new e,vo=null}const Gh=Io(class{});function Kh(i,e){for(let t=0;t<e.length;t++){let o=e[t];if(!!i!=!!o.__hideTemplateChildren__)if(o.nodeType===Node.TEXT_NODE)i?(o.__polymerTextContent__=o.textContent,o.textContent=""):o.textContent=o.__polymerTextContent__;else if(o.localName==="slot")if(i)o.__polymerReplaced__=document.createComment("hidden-slot"),W(W(o).parentNode).replaceChild(o.__polymerReplaced__,o);else{const r=o.__polymerReplaced__;r&&W(W(r).parentNode).replaceChild(o,r)}else o.style&&(i?(o.__polymerDisplay__=o.style.display,o.style.display="none"):o.style.display=o.__polymerDisplay__);o.__hideTemplateChildren__=i,o._showHideChildren&&o._showHideChildren(i)}}class Be extends Gh{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let r=this.root.firstChild;r;r=r.nextSibling)t.push(r),r.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let o=this.__templatizeOptions;(e&&o.instanceProps||!o.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,o){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,r=>{r.model=this,o(r)});else{let r=this.__dataHost.__dataHost;r&&r._addEventListenerToNode(e,t,o)}}_showHideChildren(e){Kh(e,this.children)}_setUnmanagedPropertyToNode(e,t,o){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=o:super._setUnmanagedPropertyToNode(e,t,o)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}Be.prototype.__dataHost;Be.prototype.__templatizeOptions;Be.prototype._methodHost;Be.prototype.__templatizeOwner;Be.prototype.__hostProps;const Xh=Jo(Be);function Xr(i){let e=i.__dataHost;return e&&e._methodHost||e}function Jh(i,e,t){let o=t.mutableData?Xh:Be;bo.mixin&&(o=bo.mixin(o));let r=class extends o{};return r.prototype.__templatizeOptions=t,r.prototype._bindTemplate(i),ec(r,i,e,t),r}function Qh(i,e,t,o){let r=t.forwardHostProp;if(r&&e.hasHostProps){const s=i.localName=="template";let a=e.templatizeTemplateClass;if(!a){if(s){let d=t.mutableData?$h:Va;class h extends d{}a=e.templatizeTemplateClass=h}else{const d=i.constructor;class h extends d{}a=e.templatizeTemplateClass=h}let l=e.hostProps;for(let d in l)a.prototype._addPropertyEffect("_host_"+d,a.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Zh(d,r)}),a.prototype._createNotifyingProperty("_host_"+d);zs&&o&&oc(e,t,o)}if(i.__dataProto&&Object.assign(i.__data,i.__dataProto),s)Yh(i,a),i.__dataTemp={},i.__dataPending=null,i.__dataOld=null,i._enableProperties();else{Object.setPrototypeOf(i,a.prototype);const l=e.hostProps;for(let d in l)if(d="_host_"+d,d in i){const h=i[d];delete i[d],i.__data[d]=h}}}}function Zh(i,e){return function(t,o,r){e.call(t.__templatizeOwner,o.substring(6),r[o])}}function ec(i,e,t,o){let r=t.hostProps||{};for(let s in o.instanceProps){delete r[s];let a=o.notifyInstanceProp;a&&i.prototype._addPropertyEffect(s,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:tc(s,a)})}if(o.forwardHostProp&&e.__dataHost)for(let s in r)t.hasHostProps||(t.hasHostProps=!0),i.prototype._addPropertyEffect(s,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ic()})}function tc(i,e){return function(t,o,r){e.call(t.__templatizeOwner,t,o,r[o])}}function ic(){return function(i,e,t){i.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function bo(i,e,t){if(yi&&!Xr(i))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},i.__templatizeOwner)throw new Error("A <template> can only be templatized once");i.__templatizeOwner=e;let o=(e?e.constructor:Be)._parseTemplate(i),r=o.templatizeInstanceClass;r||(r=Jh(i,o,t),o.templatizeInstanceClass=r);const s=Xr(i);Qh(i,o,t,s);let a=class extends r{};return a.prototype._methodHost=s,a.prototype.__dataHost=i,a.prototype.__templatizeOwner=e,a.prototype.__hostProps=o.hostProps,a=a,a}function oc(i,e,t){const o=t.constructor._properties,{propertyEffects:r}=i,{instanceProps:s}=e;for(let a in r)if(!o[a]&&!(s&&s[a])){const l=r[a];for(let d=0;d<l.length;d++){const{part:h}=l[d].info;if(!(h.signature&&h.signature.static)){console.warn(`Property '${a}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function rc(i,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=i)e=t.__dataHost;else return t;else e=W(e).parentNode;return null}/**
|
|
3696
3696
|
@license
|
|
3697
3697
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3698
3698
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3700,7 +3700,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3700
3700
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3701
3701
|
Code distributed by Google as part of the polymer project is also
|
|
3702
3702
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3703
|
-
*/let
|
|
3703
|
+
*/let Jr=!1;function sc(){if(Ds&&!Is){if(!Jr){Jr=!0;const i=document.createElement("style");i.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(i)}return!0}return!1}/**
|
|
3704
3704
|
@license
|
|
3705
3705
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3706
3706
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3708,15 +3708,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3708
3708
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3709
3709
|
Code distributed by Google as part of the polymer project is also
|
|
3710
3710
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3711
|
-
*/const
|
|
3711
|
+
*/const ac=qh(q);class Qr extends ac{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:!kr,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 e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),sc()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=W(W(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let r=new MutationObserver(()=>{if(this.querySelector("template"))r.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return r.observe(this,{childList:!0}),!1}let o={};o[this.as]=!0,o[this.indexAs]=!0,o[this.itemsIndexAs]=!0,this.__ctor=bo(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:o,forwardHostProp:function(r,s){let a=this.__instances;for(let l=0,d;l<a.length&&(d=a[l]);l++)d.forwardHostProp(r,s)},notifyInstanceProp:function(r,s,a){if(tl(this.as,s)){let l=r[this.itemsIndexAs];s==this.as&&(this.items[l]=a);let d=$t(this.as,`${JSCompiler_renameProperty("items",this)}.${l}`,s);this.notifyPath(d,a)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,o=this.__getMethodHost();return function(){return o[t].apply(o,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let o=0;o<t.length;o++)e.indexOf(t[o])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=Ci.debounce(this.__renderDebouncer,t>0?nl.after(t):Ws,e.bind(this)),Vh(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ko()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),o=this.__calculateLimit(t.length);this.__updateInstances(e,o,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!kr||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let o=0;o<e.length;o++)t[o]=o;return this.__filterFn&&(t=t.filter((o,r,s)=>this.__filterFn(e[o],r,s))),this.__sortFn&&t.sort((o,r)=>this.__sortFn(e[o],e[r])),t}__calculateLimit(e){let t=e;const o=this.__instances.length;if(this.initialCount){let r;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),r=Math.max(t-o,0),this.__chunkCount=r||1):(r=Math.min(Math.max(e-o,0),this.__chunkCount),t=Math.min(o+r,e)),this.__shouldMeasureChunk=r===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,o){const r=this.__itemsIdxToInstIdx={};let s;for(s=0;s<t;s++){let a=this.__instances[s],l=o[s],d=e[l];r[l]=s,a?(a._setPendingProperty(this.as,d),a._setPendingProperty(this.indexAs,s),a._setPendingProperty(this.itemsIndexAs,l),a._flushProperties()):this.__insertInstance(d,s,l)}for(let a=this.__instances.length-1;a>=s;a--)this.__detachAndRemoveInstance(a)}__detachInstance(e){let t=this.__instances[e];const o=W(t.root);for(let r=0;r<t.children.length;r++){let s=t.children[r];o.appendChild(s)}return t}__attachInstance(e,t){let o=this.__instances[e];t.insertBefore(o.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,o){let r={};return r[this.as]=e,r[this.indexAs]=t,r[this.itemsIndexAs]=o,new this.__ctor(r)}__insertInstance(e,t,o){const r=this.__stampInstance(e,t,o);let s=this.__instances[t+1],a=s?s.children[0]:this;return W(W(this).parentNode).insertBefore(r.root,a),this.__instances[t]=r,r}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let o=e.slice(6),r=o.indexOf("."),s=r<0?o:o.substring(0,r);if(s==parseInt(s,10)){let a=r<0?"":o.substring(r+1);this.__handleObservedPaths(a);let l=this.__itemsIdxToInstIdx[s],d=this.__instances[l];if(d){let h=this.as+(a?"."+a:"");d._setPendingPropertyOrPath(h,t,!1,!0),d._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return rc(this.template,e)}}customElements.define(Qr.is,Qr);/**
|
|
3712
3712
|
* @license
|
|
3713
3713
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3714
3714
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3715
|
-
*/const
|
|
3715
|
+
*/const nc=i=>class extends Ct(i){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>xe(e.date,this.focusedDate))}ready(){super.ready(),me(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,o){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const s=new Date(0,0);return s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()+1),s.setDate(0),t&&o&&t.getMonth()===o.getMonth()&&t.getMonth()===e.getMonth()&&o.getDate()-t.getDate()>=0?!1:!gt(r,t,o)&&!gt(s,t,o)}_getTitle(e,t){if(!(e===void 0||t===void 0))return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(!(e===void 0||t===void 0))return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(e===void 0||t===void 0)return[];const{weekdays:o,weekdaysShort:r,firstDayOfWeek:s}=e,a=this._applyFirstDayOfWeek(r,s);return this._applyFirstDayOfWeek(o,s).map((l,d)=>({weekDay:l,weekDayShort:a[d]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(o=>xe(o,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&t.firstDayOfWeek===1}_isToday(e){return xe(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const o=new Date(0,0);for(o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);o.getDay()!==t.firstDayOfWeek;)this._dateAdd(o,-1);const r=[],s=o.getMonth(),a=e.getMonth();for(;o.getMonth()===a||o.getMonth()===s;)r.push(o.getMonth()===a?new Date(o.getTime()):null),this._dateAdd(o,1);return r}_getWeeks(e){return e.reduce((t,o,r)=>(r%7===0&&t.push([]),t[t.length-1].push(o),t),[])}_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 t=e.reduce((o,r)=>!o&&r?r:o);return Fh(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
|
|
3716
3716
|
* @license
|
|
3717
3717
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3718
3718
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3719
|
-
*/const
|
|
3719
|
+
*/const lc=y`
|
|
3720
3720
|
:host {
|
|
3721
3721
|
display: block;
|
|
3722
3722
|
}
|
|
@@ -3776,7 +3776,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3776
3776
|
* @license
|
|
3777
3777
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3778
3778
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3779
|
-
*/C("vaadin-month-calendar",
|
|
3779
|
+
*/C("vaadin-month-calendar",lc,{moduleId:"vaadin-month-calendar-styles"});class dc extends nc(J(q)){static get template(){return U`
|
|
3780
3780
|
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
3781
3781
|
<table
|
|
3782
3782
|
id="monthGrid"
|
|
@@ -3818,19 +3818,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3818
3818
|
</template>
|
|
3819
3819
|
</tbody>
|
|
3820
3820
|
</table>
|
|
3821
|
-
`}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(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,r,
|
|
3821
|
+
`}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(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,o,r,s,a){const l=["date"],d=e>go(new Date),h=e<go(new Date);return this.__isDayDisabled(e,r,s,a)&&l.push("disabled"),this.__isDayFocused(e,t)&&l.push("focused"),this.__isDaySelected(e,o)&&l.push("selected"),this._isToday(e)&&l.push("today"),h&&l.push("past"),d&&l.push("future"),l.join(" ")}__isDayFocused(e,t){return xe(e,t)}__isDaySelected(e,t){return xe(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,o,r){return!gt(e,t,o,r)}__getDayAriaDisabled(e,t,o,r){if(!(e===void 0||t===void 0&&o===void 0&&r===void 0)&&this.__isDayDisabled(e,t,o,r))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}N(dc);/**
|
|
3822
3822
|
* @license
|
|
3823
3823
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3824
3824
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3825
|
-
*/class
|
|
3825
|
+
*/class Ra{constructor(e,t){this.query=e,this.callback=t,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(e){typeof this.callback=="function"&&this.callback(e.matches)}}/**
|
|
3826
3826
|
* @license
|
|
3827
3827
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3828
3828
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3829
|
-
*/const lc=i=>class extends i{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){da(this.$.scrollers,"pan-y"),me(this.$.scrollers,"track",this._track.bind(this)),me(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),me(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),me(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Va(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ne(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),me(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ne(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),me(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+r,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ne(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",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(r=>{r.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ne(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),me(e,"tap",t=>{this._onYearTap(t)}),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,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,r,o,s){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(r,o,s))}__updateCalendars(e,t,r,o,s,a,l,d,h,c){e&&e.length&&e.forEach(u=>{u.i18n=t,u.minDate=r,u.maxDate=o,u.isDateDisabled=c,u.focusedDate=a,u.selectedDate=s,u.showWeekNumbers=l,u.ignoreTaps=d,h?u.setAttribute("theme",h):u.removeAttribute("theme")})}__updateYears(e,t,r){e&&e.length&&e.forEach(o=>{o.selectedDate=t,r?o.setAttribute("theme",r):o.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,t=!0){if(!e)return;const r=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const l=this._calculateWeekScrollOffset(e);this._scrollToPosition(r+l,t);return}const o=this._monthScroller.position>r,s=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,a=this._monthScroller.position+s-1<r;o?this._scrollToPosition(r,t):a&&this._scrollToPosition(r-s+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let r=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(r+=1);return r/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=oe.debounce(this._debouncer,Ge.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,r){return e&&t&&typeof t.formatDate=="function"?t.formatDate(qr(e)):r}_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 t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let r;this._revealPromise=new Promise(d=>{r=d});const o=(d,h,c,u)=>(d/=u/2,d<1?c/2*d*d+h:(d-=1,-c/2*(d*(d-2)-1)+h));let s=0;const a=this._monthScroller.position,l=d=>{s||(s=d);const h=d-s;if(h<this.scrollDuration){const c=o(h,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=c,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,r(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,t){return Math.min(t.max,Math.max(t.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 t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{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 Oa(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.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){xe(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){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 e=this.focusableDateElement;e&&xe(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return Xi(this,null,function*(){const r=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=r,t||(this._focusedMonthDate=r.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Xi(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{ka(this,()=>{$r(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(za(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,r){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,r):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const r=new Date(0,0);return r.setFullYear(this.focusedDate.getFullYear()),r.setMonth(this.focusedDate.getMonth()+e),t&&r.setDate(this.focusedDate.getDate()+t),r}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),r=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==r&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const r=new Date(0,0);r.setFullYear(e.getFullYear()),t==="minDate"?(r.setMonth(e.getMonth()),r.setDate(1)):(r.setMonth(e.getMonth()+1),r.setDate(0)),this._dateAllowed(r)?this.focusDate(r):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,r=this.maxDate,o=this.isDateDisabled){return gt(e,t,r,o)}_isTodayAllowed(e,t,r){return this._dateAllowed(this._getTodayMidnight(),e,t,r)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
|
|
3829
|
+
*/const hc=i=>class extends i{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){ha(this.$.scrollers,"pan-y"),me(this.$.scrollers,"track",this._track.bind(this)),me(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),me(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),me(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ra(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Ne(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),me(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Ne(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),me(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const o=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+o,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Ne(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",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(o=>{o.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Ne(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),me(e,"tap",t=>{this._onYearTap(t)}),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,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,o,r,s){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(o,r,s))}__updateCalendars(e,t,o,r,s,a,l,d,h,c){e&&e.length&&e.forEach(u=>{u.i18n=t,u.minDate=o,u.maxDate=r,u.isDateDisabled=c,u.focusedDate=a,u.selectedDate=s,u.showWeekNumbers=l,u.ignoreTaps=d,h?u.setAttribute("theme",h):u.removeAttribute("theme")})}__updateYears(e,t,o){e&&e.length&&e.forEach(r=>{r.selectedDate=t,o?r.setAttribute("theme",o):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,t=!0){if(!e)return;const o=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const l=this._calculateWeekScrollOffset(e);this._scrollToPosition(o+l,t);return}const r=this._monthScroller.position>o,s=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,a=this._monthScroller.position+s-1<o;r?this._scrollToPosition(o,t):a&&this._scrollToPosition(o-s+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let o=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(o+=1);return o/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=re.debounce(this._debouncer,Ge.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,o){return e&&t&&typeof t.formatDate=="function"?t.formatDate(Go(e)):o}_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 t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let o;this._revealPromise=new Promise(d=>{o=d});const r=(d,h,c,u)=>(d/=u/2,d<1?c/2*d*d+h:(d-=1,-c/2*(d*(d-2)-1)+h));let s=0;const a=this._monthScroller.position,l=d=>{s||(s=d);const h=d-s;if(h<this.scrollDuration){const c=r(h,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=c,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,o(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,t){return Math.min(t.max,Math.max(t.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 t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{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 Ma(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.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){xe(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){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 e=this.focusableDateElement;e&&xe(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return Xi(this,null,function*(){const o=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=o,t||(this._focusedMonthDate=o.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Xi(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{Pa(this,()=>{Ko(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Oa(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,o){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,o):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const o=new Date(0,0);return o.setFullYear(this.focusedDate.getFullYear()),o.setMonth(this.focusedDate.getMonth()+e),t&&o.setDate(this.focusedDate.getDate()+t),o}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),o=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==o&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const o=new Date(0,0);o.setFullYear(e.getFullYear()),t==="minDate"?(o.setMonth(e.getMonth()),o.setDate(1)):(o.setMonth(e.getMonth()+1),o.setDate(0)),this._dateAllowed(o)?this.focusDate(o):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,o=this.maxDate,r=this.isDateDisabled){return gt(e,t,o,r)}_isTodayAllowed(e,t,o){return this._dateAllowed(this._getTodayMidnight(),e,t,o)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
|
|
3830
3830
|
* @license
|
|
3831
3831
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3832
3832
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3833
|
-
*/const
|
|
3833
|
+
*/const cc=y`
|
|
3834
3834
|
:host {
|
|
3835
3835
|
display: flex;
|
|
3836
3836
|
flex-direction: column;
|
|
@@ -3894,7 +3894,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3894
3894
|
* @license
|
|
3895
3895
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3896
3896
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3897
|
-
*/C("vaadin-date-picker-overlay-content",
|
|
3897
|
+
*/C("vaadin-date-picker-overlay-content",cc,{moduleId:"vaadin-date-picker-overlay-content-styles"});class uc extends hc(Ze(J(Qe(q)))){static get template(){return U`
|
|
3898
3898
|
<div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
|
|
3899
3899
|
<div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
|
|
3900
3900
|
<div part="clear-button" hidden$="[[!selectedDate]]"></div>
|
|
@@ -3914,32 +3914,32 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3914
3914
|
<slot name="today-button"></slot>
|
|
3915
3915
|
<slot name="cancel-button"></slot>
|
|
3916
3916
|
</div>
|
|
3917
|
-
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}N(
|
|
3917
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}N(uc);/**
|
|
3918
3918
|
* @license
|
|
3919
3919
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3920
3920
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3921
|
-
*/const Yi=new WeakMap;function
|
|
3921
|
+
*/const Yi=new WeakMap;function pc(i){return Yi.has(i)||Yi.set(i,new Set),Yi.get(i)}function _c(i,e){const t=document.createElement("style");t.textContent=i,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Ha=F(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=pc(e);this.slotStyles.forEach(o=>{t.has(o)||(_c(o,e),t.add(o))})}});/**
|
|
3922
3922
|
* @license
|
|
3923
3923
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3924
3924
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3925
|
-
*/const
|
|
3925
|
+
*/const mc=i=>class extends ei(Zt(i)){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(),mo||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}))}};/**
|
|
3926
3926
|
* @license
|
|
3927
3927
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3928
3928
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3929
|
-
*/const
|
|
3929
|
+
*/const Qo=F(i=>class extends ma(jo(ei(i))){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(t=>this.__isValidConstraint(t))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const o=this._hasValidConstraints(t),r=this.__previousHasConstraints&&!o;(this._hasValue||this.invalid)&&o?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=o}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
|
|
3930
3930
|
* @license
|
|
3931
3931
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3932
3932
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3933
|
-
*/const
|
|
3933
|
+
*/const Zo=i=>class extends Ha(Ro(Qo(Uo(mc(Zt(i)))))){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[`
|
|
3934
3934
|
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
3935
3935
|
font: inherit;
|
|
3936
3936
|
color: inherit;
|
|
3937
3937
|
}
|
|
3938
|
-
`]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_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=
|
|
3938
|
+
`]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_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=re.debounce(this._preventInputDebouncer,Ge.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 t=e.clipboardData.getData("text");this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const t=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(t)||(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(t){console.error(t)}}};/**
|
|
3939
3939
|
* @license
|
|
3940
3940
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3941
3941
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3942
|
-
*/const
|
|
3942
|
+
*/const fc=y`
|
|
3943
3943
|
[part='clear-button'] {
|
|
3944
3944
|
display: none;
|
|
3945
3945
|
cursor: default;
|
|
@@ -3956,7 +3956,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3956
3956
|
* @license
|
|
3957
3957
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3958
3958
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3959
|
-
*/const
|
|
3959
|
+
*/const gc=y`
|
|
3960
3960
|
:host {
|
|
3961
3961
|
display: inline-flex;
|
|
3962
3962
|
outline: none;
|
|
@@ -3994,7 +3994,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3994
3994
|
* @license
|
|
3995
3995
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3996
3996
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3997
|
-
*/const
|
|
3997
|
+
*/const vc=y`
|
|
3998
3998
|
[class$='container'] {
|
|
3999
3999
|
display: flex;
|
|
4000
4000
|
flex-direction: column;
|
|
@@ -4006,23 +4006,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4006
4006
|
* @license
|
|
4007
4007
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
4008
4008
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4009
|
-
*/const
|
|
4009
|
+
*/const er=[gc,vc,fc];/**
|
|
4010
4010
|
* @license
|
|
4011
4011
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
4012
4012
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4013
|
-
*/const
|
|
4013
|
+
*/const Wa=i=>class extends i{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||e===void 0)return;const{classList:o}=t;if(this.__initialClasses||(this.__initialClasses=new Set(o)),Array.isArray(this.__previousClasses)){const s=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));s.length>0&&o.remove(...s)}const r=typeof e=="string"?e.split(" ").filter(Boolean):[];r.length>0&&o.add(...r),this.__previousClasses=r}};/**
|
|
4014
4014
|
* @license
|
|
4015
4015
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4016
4016
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4017
|
-
*/class
|
|
4017
|
+
*/class ja{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
|
|
4018
4018
|
* @license
|
|
4019
4019
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4020
4020
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4021
|
-
*/const gc=i=>class extends Ha(Ze(Lr(Kr(Zt(i))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,r=>"0000".substr(r.length)+r);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),r=new Date;let o,s=r.getMonth(),a=r.getFullYear();if(t.length===3){if(s=parseInt(t[0])-1,o=parseInt(t[1]),a=parseInt(t[2]),t[2].length<3&&a>=0){const l=this.referenceDate?Ft(this.referenceDate):new Date;a=Mh(l,a,s,o)}}else t.length===2?(s=parseInt(t[0])-1,o=parseInt(t[1])):t.length===1&&(o=parseInt(t[0]));if(o!==void 0)return{day:o,month:s,year:a}},formatTitle:(e,t)=>`${e} ${t}`})},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:Pa},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!Ti()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Va(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new Wa(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 t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",r=>{this.__commitDate(r.detail.date),this._close()}),t.addEventListener("date-selected",r=>{this.__commitDate(r.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",r=>{this._shouldRemoveFocus(r)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",r=>{this._focusedDate=r.detail.value}),t.addEventListener("click",r=>r.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=Ft(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(qr(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),r=!this._selectedDate||gt(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),t&&r&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,r,o,s,a){return!e||t&&(!a||s)||r&&s||!o.parseDate}_formatISO(e){return Nh(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,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const r=Ft(e);if(e&&!r){this.value=t;return}e?xe(this._selectedDate,r)||(this._selectedDate=r,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,r,o,s,a,l,d,h){e&&(e.i18n=t,e.label=r,e.minDate=o,e.maxDate=s,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=d,e.isDateDisabled=h)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const r=e.focusedDate||t;e.scrollToDate(r),this._ignoreFocusedDateChange=!0,e.focusedDate=r,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const s=this._noInput?e:[o,e];this.__showOthers=Sa(s)}_getInitialPosition(){const e=Ft(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||gt(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?za(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,xe(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Ft(e)}};/**
|
|
4021
|
+
*/const yc=i=>class extends Wa(Ze(Ro(Qo(Zt(i))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,o=>"0000".substr(o.length)+o);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),o=new Date;let r,s=o.getMonth(),a=o.getFullYear();if(t.length===3){if(s=parseInt(t[0])-1,r=parseInt(t[1]),a=parseInt(t[2]),t[2].length<3&&a>=0){const l=this.referenceDate?Ft(this.referenceDate):new Date;a=Nh(l,a,s,r)}}else t.length===2?(s=parseInt(t[0])-1,r=parseInt(t[1])):t.length===1&&(r=parseInt(t[0]));if(r!==void 0)return{day:r,month:s,year:a}},formatTitle:(e,t)=>`${e} ${t}`})},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:Sa},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!Ti()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Ra(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new ja(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 t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",o=>{this.__commitDate(o.detail.date),this._close()}),t.addEventListener("date-selected",o=>{this.__commitDate(o.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",o=>{this._shouldRemoveFocus(o)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",o=>{this._focusedDate=o.detail.value}),t.addEventListener("click",o=>o.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=Ft(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Go(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),o=!this._selectedDate||gt(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),t&&o&&r}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,o,r,s,a){return!e||t&&(!a||s)||o&&s||!r.parseDate}_formatISO(e){return Bh(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,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const o=Ft(e);if(e&&!o){this.value=t;return}e?xe(this._selectedDate,o)||(this._selectedDate=o,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,o,r,s,a,l,d,h){e&&(e.i18n=t,e.label=o,e.minDate=r,e.maxDate=s,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=d,e.isDateDisabled=h)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const o=e.focusedDate||t;e.scrollToDate(o),this._ignoreFocusedDateChange=!0,e.focusedDate=o,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 s=this._noInput?e:[r,e];this.__showOthers=Aa(s)}_getInitialPosition(){const e=Ft(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||gt(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?Oa(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,xe(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Ft(e)}};/**
|
|
4022
4022
|
* @license
|
|
4023
4023
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4024
4024
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4025
|
-
*/const
|
|
4025
|
+
*/const bc=y`
|
|
4026
4026
|
:host([opened]) {
|
|
4027
4027
|
pointer-events: auto;
|
|
4028
4028
|
}
|
|
@@ -4039,7 +4039,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4039
4039
|
* @license
|
|
4040
4040
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4041
4041
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4042
|
-
*/C("vaadin-date-picker",[
|
|
4042
|
+
*/C("vaadin-date-picker",[er,bc],{moduleId:"vaadin-date-picker-styles"});class xc extends yc(Zo(J(bt(q)))){static get is(){return"vaadin-date-picker"}static get template(){return U`
|
|
4043
4043
|
<div class="vaadin-date-picker-container">
|
|
4044
4044
|
<div part="label">
|
|
4045
4045
|
<slot name="label"></slot>
|
|
@@ -4081,7 +4081,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4081
4081
|
></vaadin-date-picker-overlay>
|
|
4082
4082
|
|
|
4083
4083
|
<slot name="tooltip"></slot>
|
|
4084
|
-
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ii(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Di(this.inputElement,this._labelController)),this._tooltipController=new xt(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(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}N(
|
|
4084
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ii(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Di(this.inputElement,this._labelController)),this._tooltipController=new xt(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(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}N(xc);/**
|
|
4085
4085
|
* @license
|
|
4086
4086
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
4087
4087
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -4089,15 +4089,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4089
4089
|
* @license
|
|
4090
4090
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4091
4091
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4092
|
-
*/const
|
|
4092
|
+
*/const wc=i=>class extends Zo(i){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),t!==void 0&&this.invalid&&this.validate()}};/**
|
|
4093
4093
|
* @license
|
|
4094
4094
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4095
4095
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4096
|
-
*/const
|
|
4096
|
+
*/const Cc=i=>class extends wc(i){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ii(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Di(this.inputElement,this._labelController))}};/**
|
|
4097
4097
|
* @license
|
|
4098
4098
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
4099
4099
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4100
|
-
*/C("vaadin-text-field",
|
|
4100
|
+
*/C("vaadin-text-field",er,{moduleId:"vaadin-text-field-styles"});class Ua extends Cc(J(bt(q))){static get is(){return"vaadin-text-field"}static get template(){return U`
|
|
4101
4101
|
<div class="vaadin-field-container">
|
|
4102
4102
|
<div part="label">
|
|
4103
4103
|
<slot name="label"></slot>
|
|
@@ -4126,11 +4126,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4126
4126
|
</div>
|
|
4127
4127
|
</div>
|
|
4128
4128
|
<slot name="tooltip"></slot>
|
|
4129
|
-
`}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new xt(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}N(
|
|
4129
|
+
`}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new xt(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}N(Ua);/**
|
|
4130
4130
|
* @license
|
|
4131
4131
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4132
4132
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4133
|
-
*/const
|
|
4133
|
+
*/const kc=y`
|
|
4134
4134
|
:host {
|
|
4135
4135
|
position: absolute;
|
|
4136
4136
|
right: 0;
|
|
@@ -4143,11 +4143,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4143
4143
|
background: transparent;
|
|
4144
4144
|
outline: none;
|
|
4145
4145
|
}
|
|
4146
|
-
`;C("vaadin-password-field-button",[
|
|
4146
|
+
`;C("vaadin-password-field-button",[ba,kc],{moduleId:"lumo-password-field-button"});/**
|
|
4147
4147
|
* @license
|
|
4148
4148
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4149
4149
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4150
|
-
*/const
|
|
4150
|
+
*/const Pc=y`
|
|
4151
4151
|
[part='reveal-button']::before {
|
|
4152
4152
|
content: var(--lumo-icons-eye);
|
|
4153
4153
|
}
|
|
@@ -4165,15 +4165,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4165
4165
|
[part='reveal-button'][hidden] {
|
|
4166
4166
|
display: none !important;
|
|
4167
4167
|
}
|
|
4168
|
-
`;C("vaadin-password-field",[ti,
|
|
4168
|
+
`;C("vaadin-password-field",[ti,Pc],{moduleId:"lumo-password-field"});/**
|
|
4169
4169
|
* @license
|
|
4170
4170
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4171
4171
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4172
|
-
*/C("vaadin-password-field-button",
|
|
4172
|
+
*/C("vaadin-password-field-button",Da,{moduleId:"vaadin-password-field-button-styles"});class Sc extends za(Qe(J(q))){static get is(){return"vaadin-password-field-button"}static get template(){return U``}}N(Sc);/**
|
|
4173
4173
|
* @license
|
|
4174
4174
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4175
4175
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4176
|
-
*/const
|
|
4176
|
+
*/const Ac=i=>class extends Ha(wt(Ct(ei(i)))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const e=this.localName;return[...super.slotStyles,`
|
|
4177
4177
|
${e} [slot="input"]::-ms-reveal {
|
|
4178
4178
|
display: none;
|
|
4179
4179
|
}
|
|
@@ -4181,11 +4181,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4181
4181
|
* @license
|
|
4182
4182
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4183
4183
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4184
|
-
*/const
|
|
4184
|
+
*/const Ec=U`
|
|
4185
4185
|
<div part="reveal-button" slot="suffix">
|
|
4186
4186
|
<slot name="reveal"></slot>
|
|
4187
4187
|
</div>
|
|
4188
|
-
`;let ci;class
|
|
4188
|
+
`;let ci;class Tc extends Ac(Ua){static get is(){return"vaadin-password-field"}static get template(){if(!ci){ci=super.template.cloneNode(!0);const e=Ec.content.querySelector('[part="reveal-button"]');ci.content.querySelector('[part="input-field"]').appendChild(e)}return ci}}N(Tc);const qa=y`
|
|
4189
4189
|
:host {
|
|
4190
4190
|
display: flex;
|
|
4191
4191
|
align-items: center;
|
|
@@ -4269,7 +4269,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4269
4269
|
width: var(--lumo-icon-size-m);
|
|
4270
4270
|
height: var(--lumo-icon-size-m);
|
|
4271
4271
|
}
|
|
4272
|
-
`;C("vaadin-item",
|
|
4272
|
+
`;C("vaadin-item",qa,{moduleId:"lumo-item"});const Ic=y`
|
|
4273
4273
|
:host {
|
|
4274
4274
|
transition: background-color 100ms;
|
|
4275
4275
|
overflow: hidden;
|
|
@@ -4281,11 +4281,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4281
4281
|
:host([focused]:not([disabled])) {
|
|
4282
4282
|
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
4283
4283
|
}
|
|
4284
|
-
`;C("vaadin-combo-box-item",[
|
|
4284
|
+
`;C("vaadin-combo-box-item",[qa,Ic],{moduleId:"lumo-combo-box-item"});/**
|
|
4285
4285
|
* @license
|
|
4286
4286
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
4287
4287
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4288
|
-
*/const
|
|
4288
|
+
*/const Dc=y`
|
|
4289
4289
|
[part~='loader'] {
|
|
4290
4290
|
box-sizing: border-box;
|
|
4291
4291
|
width: var(--lumo-icon-size-s);
|
|
@@ -4327,7 +4327,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4327
4327
|
transform: rotate(360deg);
|
|
4328
4328
|
}
|
|
4329
4329
|
}
|
|
4330
|
-
`,
|
|
4330
|
+
`,zc=y`
|
|
4331
4331
|
[part='content'] {
|
|
4332
4332
|
padding: 0;
|
|
4333
4333
|
}
|
|
@@ -4348,7 +4348,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4348
4348
|
:host([bottom-aligned]) [part~='overlay'] {
|
|
4349
4349
|
margin-bottom: var(--lumo-space-xs);
|
|
4350
4350
|
}
|
|
4351
|
-
`,
|
|
4351
|
+
`,Oc=y`
|
|
4352
4352
|
[part~='loader'] {
|
|
4353
4353
|
position: absolute;
|
|
4354
4354
|
z-index: 1;
|
|
@@ -4356,24 +4356,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4356
4356
|
top: var(--lumo-space-s);
|
|
4357
4357
|
margin-inline: auto 0;
|
|
4358
4358
|
}
|
|
4359
|
-
`;C("vaadin-combo-box-overlay",[
|
|
4359
|
+
`;C("vaadin-combo-box-overlay",[$o,Yo,zc,Dc,Oc,y`
|
|
4360
4360
|
:host {
|
|
4361
4361
|
--_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
4362
4362
|
--_vaadin-combo-box-items-container-border-style: solid;
|
|
4363
4363
|
}
|
|
4364
|
-
`],{moduleId:"lumo-combo-box-overlay"});const
|
|
4364
|
+
`],{moduleId:"lumo-combo-box-overlay"});const Mc=y`
|
|
4365
4365
|
[part='toggle-button']::before {
|
|
4366
4366
|
content: var(--lumo-icons-dropdown);
|
|
4367
4367
|
}
|
|
4368
|
-
`;C("vaadin-combo-box",[ti,
|
|
4368
|
+
`;C("vaadin-combo-box",[ti,Mc],{moduleId:"lumo-combo-box"});/**
|
|
4369
4369
|
* @license
|
|
4370
4370
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4371
4371
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4372
|
-
*/const
|
|
4372
|
+
*/const Fc=i=>class extends i{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,o){e==="hidden"&&o!==null?this.index=void 0:super.attributeChangedCallback(e,t,o)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,o){o===void 0||t===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};/**
|
|
4373
4373
|
* @license
|
|
4374
4374
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4375
4375
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4376
|
-
*/class
|
|
4376
|
+
*/class Nc extends Fc(J(Qe(q))){static get template(){return U`
|
|
4377
4377
|
<style>
|
|
4378
4378
|
:host {
|
|
4379
4379
|
display: block;
|
|
@@ -4387,15 +4387,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4387
4387
|
<div part="content">
|
|
4388
4388
|
<slot></slot>
|
|
4389
4389
|
</div>
|
|
4390
|
-
`}static get is(){return"vaadin-combo-box-item"}}N(
|
|
4390
|
+
`}static get is(){return"vaadin-combo-box-item"}}N(Nc);/**
|
|
4391
4391
|
* @license
|
|
4392
4392
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4393
4393
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4394
|
-
*/const
|
|
4394
|
+
*/const Lc=i=>class extends Ia(i){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Vo(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);t===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};/**
|
|
4395
4395
|
* @license
|
|
4396
4396
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4397
4397
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4398
|
-
*/const
|
|
4398
|
+
*/const Bc=y`
|
|
4399
4399
|
#overlay {
|
|
4400
4400
|
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
|
4401
4401
|
}
|
|
@@ -4405,17 +4405,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4405
4405
|
flex-direction: column;
|
|
4406
4406
|
height: 100%;
|
|
4407
4407
|
}
|
|
4408
|
-
`;C("vaadin-combo-box-overlay",[
|
|
4408
|
+
`;C("vaadin-combo-box-overlay",[wa,Bc],{moduleId:"vaadin-combo-box-overlay-styles"});class Vc extends Lc(Ta(Qe(J(q)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return U`
|
|
4409
4409
|
<div id="backdrop" part="backdrop" hidden></div>
|
|
4410
4410
|
<div part="overlay" id="overlay">
|
|
4411
4411
|
<div part="loader"></div>
|
|
4412
4412
|
<div part="content" id="content"><slot></slot></div>
|
|
4413
4413
|
</div>
|
|
4414
|
-
`}}N(
|
|
4414
|
+
`}}N(Vc);/**
|
|
4415
4415
|
* @license
|
|
4416
4416
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
4417
4417
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4418
|
-
*/function ki(i,e){return i.split(".").reduce((t,
|
|
4418
|
+
*/function ki(i,e){return i.split(".").reduce((t,o)=>t?t[o]:void 0,e)}/**
|
|
4419
4419
|
* @license
|
|
4420
4420
|
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
|
4421
4421
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -4423,11 +4423,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4423
4423
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
4424
4424
|
* Code distributed by Google as part of the polymer project is also
|
|
4425
4425
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
4426
|
-
*/const
|
|
4426
|
+
*/const Zr=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Rc=Zr&&Zr[1]>=8,es=3,Hc={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const i=this._virtualCount;return Math.max(0,i-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(i){i=this._clamp(i,0,this._maxVirtualStart),this._virtualStartVal=i},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(i){i%=this._physicalCount,i<0&&(i=this._physicalCount+i),this._physicalStartVal=i},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(i){this._physicalCountVal=i},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let i=this._firstVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;i=this._iterateItems((t,o)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return o})||0,this._firstVisibleIndexVal=i}return i},get lastVisibleIndex(){let i=this._lastVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,o)=>{e<this._scrollBottom&&(i=o),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=i}return i},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const i=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=i-this._scrollPosition;const t=e>=0;if(this._scrollPosition=i,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const o=Math.round(e/this._physicalAverage);this._virtualStart+=o,this._physicalStart+=o,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const o=this._getReusables(t);t?(this._physicalTop=o.physicalTop,this._virtualStart+=o.indexes.length,this._physicalStart+=o.indexes.length):(this._virtualStart-=o.indexes.length,this._physicalStart-=o.indexes.length),this._update(o.indexes,t?null:o.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),xi)}},_getReusables(i){let e,t,o;const r=[],s=this._hiddenContentSize*this._ratio,a=this._virtualStart,l=this._virtualEnd,d=this._physicalCount;let h=this._physicalTop+this._scrollOffset;const c=this._physicalBottom+this._scrollOffset,u=this._scrollPosition,m=this._scrollBottom;for(i?(e=this._physicalStart,t=u-h):(e=this._physicalEnd,t=c-m);o=this._getPhysicalSizeIncrement(e),t-=o,!(r.length>=d||t<=s);)if(i){if(l+r.length+1>=this._virtualCount||h+o>=u-this._scrollOffset)break;r.push(e),h+=o,e=(e+1)%d}else{if(a-r.length<=0||h+this._physicalSize-o<=m)break;r.push(e),h-=o,e=e===0?d-1:e-1}return{indexes:r,physicalTop:h-this._scrollOffset}},_update(i,e){if(!(i&&i.length===0||this._physicalCount===0)){if(this._assignModels(i),this._updateMetrics(i),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(i){const e=this._clamp(this._physicalCount+i,es,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const o=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let r=0;r<e;r++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-o)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),oa):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),xi))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const i=this._getReusables(!0);this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length,this._update(i.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(es))},_itemsChanged(i){i.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,Kt))},_iterateItems(i,e){let t,o,r,s;if(arguments.length===2&&e){for(s=0;s<e.length;s++)if(t=e[s],o=this._computeVidx(t),(r=i.call(this,t,o))!=null)return r}else{for(t=this._physicalStart,o=this._virtualStart;t<this._physicalCount;t++,o++)if((r=i.call(this,t,o))!=null)return r;for(t=0;t<this._physicalStart;t++,o++)if((r=i.call(this,t,o))!=null)return r}},_computeVidx(i){return i>=this._physicalStart?this._virtualStart+(i-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+i},_positionItems(){this._adjustScrollPosition();let i=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${i}px`,0,this._physicalItems[e]),i+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(i){return this._physicalSizes[i]},_adjustScrollPosition(){const i=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(i!==0){this._physicalTop-=i;const e=this._scrollPosition;!Rc&&e>0&&this._resetScrollPosition(e-i)}},_resetScrollPosition(i){this.scrollTarget&&i>=0&&(this._scrollTop=i,this._scrollPosition=this._scrollTop)},_updateScrollerSize(i){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(i||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(i){if(typeof i!="number"||i<0||i>this.items.length-1||(Bt(),this._physicalCount===0))return;i=this._clamp(i,0,this._virtualCount-1),(!this._isIndexRendered(i)||i>=this._maxVirtualStart)&&(this._virtualStart=i-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,o=0;const r=this._hiddenContentSize;for(;t<i&&o<=r;)o+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+o),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},Kt)},_isIndexRendered(i){return i>=this._virtualStart&&i<=this._virtualEnd},_getPhysicalIndex(i){return(this._physicalStart+(i-this._virtualStart))%this._physicalCount},_clamp(i,e,t){return Math.min(t,Math.max(e,i))},_debounce(i,e,t){this._debouncers||(this._debouncers={}),this._debouncers[i]=re.debounce(this._debouncers[i],t,e.bind(this)),ra(this._debouncers[i])}};/**
|
|
4427
4427
|
* @license
|
|
4428
4428
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4429
4429
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4430
|
-
*/const Rc=1e5,Gi=1e3;class qa{constructor({createElements:e,updateElement:t,scrollTarget:r,scrollContainer:o,elementsContainer:s,reorderElements:a}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=r,this.scrollContainer=o,this.elementsContainer=s||o,this.reorderElements=a,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:l}])=>{const d=l.width===0&&l.height===0;!d&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=d}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let r=Math.floor(e/this.size*this._virtualCount);this._virtualCount-r<t?(r=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):r<t?e<Gi?(r=e,this._vidxOffset=0):(r=Gi,this._vidxOffset=e-r):this._vidxOffset=e-r,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(r),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Bt(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const r=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),r.push(o))}),this.__afterElementsUpdated(r)}_updateMetrics(e){Bt();let t=0,r=0;const o=this._physicalAverageCount,s=this._physicalAverage;this._iterateItems((a,l)=>{r+=this._physicalSizes[a],this._physicalSizes[a]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[a])),t+=this._physicalSizes[a],this._physicalAverageCount+=this._physicalSizes[a]?1:0},e),this._physicalSize=this._physicalSize+t-r,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((s*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),r=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return r;const o=parseFloat(t.paddingBottom)||0,s=parseFloat(t.paddingTop)||0,a=parseFloat(t.borderBottomWidth)||0,l=parseFloat(t.borderTopWidth)||0;return r+o+s+a+l}__updateElement(e,t,r){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||r)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const r=t.offsetHeight;if(r===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=oe.debounce(this.__placeholderClearDebouncer,Kt,()=>this._resizeHandler());else{this.__elementHeightQueue.push(r),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(s=>s!==void 0);this.__placeholderHeight=Math.round(o.reduce((s,a)=>s+a,0)/o.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(r=>r.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,r;if(e>0&&(t=this.adjustedFirstVisibleIndex,r=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),Bt(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);r!==void 0&&o!==void 0&&(this._scrollTop+=r-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Bt(),this._debounce("_update",this._update,xi)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Rc)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),r=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",r.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(r),t}_assignModels(e){const t=[];this._iterateItems((r,o)=>{const s=this._physicalItems[r];s.hidden=o>=this.size,s.hidden?delete s.__lastUpdatedIndex:(s.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(s,s.__virtualIndex),t.push(s))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,r,o){o.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const r=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,r)||this.__nextFocusableSiblingMissing(t,r))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,o)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,r=this._getReusables(!t);r.indexes.length&&(this._physicalTop=r.physicalTop,t?(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length):(this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=oe.debounce(this.__fixInvalidItemPositioningDebouncer,Ge.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=oe.debounce(this.__scrollReorderDebouncer,Ge.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,r=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!r||t&&!o){const s=t,a=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(s?-1:1),this._scrollHandler(),this._ratio=a}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=oe.debounce(this.__debouncerWheelAnimationFrame,Kt,()=>{this._wheelAnimationFrame=!1});const r=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=oe.debounce(this._debouncerIgnoreNewWheel,Ge.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&r<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():r>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=r}_hasScrolledAncestor(e,t,r){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,r)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,r)}_canScroll(e,t,r){return r>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||r<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),r=this.__getFocusedElement(t)||t[0];if(!r)return;const o=r.__virtualIndex-e,s=t.indexOf(r)-o;if(s>0)for(let a=0;a<s;a++)this.elementsContainer.appendChild(t[a]);else if(s<0)for(let a=t.length+s;a<t.length;a++)this.elementsContainer.insertBefore(t[a],t[0]);if(vh){const{transform:a}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=a})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const r=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(r*t)}else{const r=this._vidxOffset,o=Gi,s=100;this._scrollTop===0?(this._vidxOffset=0,r!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex+(r-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,r!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-r)))}}}Object.setPrototypeOf(qa.prototype,Vc);class Hc{constructor(e){this.__adapter=new qa(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
|
|
4430
|
+
*/const Wc=1e5,Gi=1e3;class $a{constructor({createElements:e,updateElement:t,scrollTarget:o,scrollContainer:r,elementsContainer:s,reorderElements:a}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=o,this.scrollContainer=r,this.elementsContainer=s||r,this.reorderElements=a,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:l}])=>{const d=l.width===0&&l.height===0;!d&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=d}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let o=Math.floor(e/this.size*this._virtualCount);this._virtualCount-o<t?(o=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):o<t?e<Gi?(o=e,this._vidxOffset=0):(o=Gi,this._vidxOffset=e-o):this._vidxOffset=e-o,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(o),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Bt(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const o=[];this.__getVisibleElements().forEach(r=>{r.__virtualIndex>=e&&r.__virtualIndex<=t&&(this.__updateElement(r,r.__virtualIndex,!0),o.push(r))}),this.__afterElementsUpdated(o)}_updateMetrics(e){Bt();let t=0,o=0;const r=this._physicalAverageCount,s=this._physicalAverage;this._iterateItems((a,l)=>{o+=this._physicalSizes[a],this._physicalSizes[a]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[a])),t+=this._physicalSizes[a],this._physicalAverageCount+=this._physicalSizes[a]?1:0},e),this._physicalSize=this._physicalSize+t-o,this._physicalAverageCount!==r&&(this._physicalAverage=Math.round((s*r+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),o=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return o;const r=parseFloat(t.paddingBottom)||0,s=parseFloat(t.paddingTop)||0,a=parseFloat(t.borderBottomWidth)||0,l=parseFloat(t.borderTopWidth)||0;return o+r+s+a+l}__updateElement(e,t,o){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||o)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const o=t.offsetHeight;if(o===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=re.debounce(this.__placeholderClearDebouncer,Kt,()=>this._resizeHandler());else{this.__elementHeightQueue.push(o),this.__elementHeightQueue.shift();const r=this.__elementHeightQueue.filter(s=>s!==void 0);this.__placeholderHeight=Math.round(r.reduce((s,a)=>s+a,0)/r.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(o=>o.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,o;if(e>0&&(t=this.adjustedFirstVisibleIndex,o=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),Bt(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const r=this.__getIndexScrollOffset(t);o!==void 0&&r!==void 0&&(this._scrollTop+=o-r)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Bt(),this._debounce("_update",this._update,xi)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Wc)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),o=document.createDocumentFragment();return t.forEach(r=>{r.style.position="absolute",o.appendChild(r),this.__resizeObserver.observe(r)}),this.elementsContainer.appendChild(o),t}_assignModels(e){const t=[];this._iterateItems((o,r)=>{const s=this._physicalItems[o];s.hidden=r>=this.size,s.hidden?delete s.__lastUpdatedIndex:(s.__virtualIndex=r+(this._vidxOffset||0),this.__updateElement(s,s.__virtualIndex),t.push(s))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,o,r){r.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const o=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,o)||this.__nextFocusableSiblingMissing(t,o))&&this.flush();const r=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,r)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,r)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,o=this._getReusables(!t);o.indexes.length&&(this._physicalTop=o.physicalTop,t?(this._virtualStart-=o.indexes.length,this._physicalStart-=o.indexes.length):(this._virtualStart+=o.indexes.length,this._physicalStart+=o.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=re.debounce(this.__fixInvalidItemPositioningDebouncer,Ge.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=re.debounce(this.__scrollReorderDebouncer,Ge.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,o=this.adjustedFirstVisibleIndex===0,r=this.adjustedLastVisibleIndex===this.size-1;if(e&&!o||t&&!r){const s=t,a=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(s?-1:1),this._scrollHandler(),this._ratio=a}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=re.debounce(this.__debouncerWheelAnimationFrame,Kt,()=>{this._wheelAnimationFrame=!1});const o=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=re.debounce(this._debouncerIgnoreNewWheel,Ge.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&o<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():o>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=o}_hasScrolledAncestor(e,t,o){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,o)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,o)}_canScroll(e,t,o){return o>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||o<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),o=this.__getFocusedElement(t)||t[0];if(!o)return;const r=o.__virtualIndex-e,s=t.indexOf(o)-r;if(s>0)for(let a=0;a<s;a++)this.elementsContainer.appendChild(t[a]);else if(s<0)for(let a=t.length+s;a<t.length;a++)this.elementsContainer.insertBefore(t[a],t[0]);if(bh){const{transform:a}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=a})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const o=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(o*t)}else{const o=this._vidxOffset,r=Gi,s=100;this._scrollTop===0?(this._vidxOffset=0,o!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<r&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex+(o-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,o!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-r&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-o)))}}}Object.setPrototypeOf($a.prototype,Hc);class jc{constructor(e){this.__adapter=new $a(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
|
|
4431
4431
|
* @license
|
|
4432
4432
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4433
4433
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -4435,11 +4435,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4435
4435
|
* @license
|
|
4436
4436
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4437
4437
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4438
|
-
*/const
|
|
4438
|
+
*/const Uc=i=>class extends i{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,o)=>t+o)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${zo()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let o=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),o=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(o=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,o));const r=[...this.children].find(d=>!d.hidden&&d.index===this.__virtualizer.lastVisibleIndex);if(!r||e!==r.index)return;const s=r.getBoundingClientRect(),a=this.getBoundingClientRect(),l=s.bottom-a.bottom+this._viewportTotalPaddingBottom;l>0&&(this.scrollTop+=l)}_isItemSelected(e,t,o){return e instanceof vt?!1:o&&e!==void 0&&t!==void 0?ki(o,e)===ki(o,t):e===t}__initVirtualizer(){this.__virtualizer=new jc({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const o=this.items[t],r=this.focusedIndex,s=this._isItemSelected(o,this.selectedItem,this.itemIdPath);e.setProperties({item:o,index:t,label:this.getItemLabel(o),selected:s,renderer:this.renderer,focused:!this.loading&&r===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(o):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",s.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),o instanceof vt&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,o=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||o&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
|
|
4439
4439
|
* @license
|
|
4440
4440
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4441
4441
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4442
|
-
*/class
|
|
4442
|
+
*/class qc extends Uc(q){static get is(){return"vaadin-combo-box-scroller"}static get template(){return U`
|
|
4443
4443
|
<style>
|
|
4444
4444
|
:host {
|
|
4445
4445
|
display: block;
|
|
@@ -4466,39 +4466,39 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4466
4466
|
<div id="selector">
|
|
4467
4467
|
<slot></slot>
|
|
4468
4468
|
</div>
|
|
4469
|
-
`}}N(
|
|
4469
|
+
`}}N(qc);/**
|
|
4470
4470
|
* @license
|
|
4471
4471
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4472
4472
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4473
|
-
*/const
|
|
4473
|
+
*/const $c=i=>class extends Qo(i){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
|
|
4474
4474
|
* @license
|
|
4475
4475
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4476
4476
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4477
|
-
*/function Pi(i,e,t=0){let
|
|
4477
|
+
*/function Pi(i,e,t=0){let o=e;for(const r of i.subCaches){const s=r.parentCacheIndex;if(o<=s)break;if(o<=s+r.flatSize)return Pi(r,o-s-1,t+1);o-=r.flatSize}return{cache:i,item:i.items[o],index:o,page:Math.floor(o/i.pageSize),level:t}}function Ya({getItemId:i},e,t,o=0,r=0){for(let s=0;s<e.items.length;s++){const a=e.items[s];if(a&&i(a)===i(t))return{cache:e,level:o,item:a,index:s,page:Math.floor(s/e.pageSize),subCache:e.getSubCache(s),flatIndex:r+e.getFlatIndex(s)}}for(const s of e.subCaches){const a=r+e.getFlatIndex(s.parentCacheIndex),l=Ya({getItemId:i},s,t,o+1,a+1);if(l)return l}}function Ga(i,[e,...t],o=0){e===1/0&&(e=i.size-1);const r=i.getFlatIndex(e),s=i.getSubCache(e);return s&&s.flatSize>0&&t.length?Ga(s,t,o+r+1):o+r}/**
|
|
4478
4478
|
* @license
|
|
4479
4479
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4480
4480
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4481
|
-
*/class
|
|
4481
|
+
*/class tr{constructor(e,t,o,r,s){j(this,"context"),j(this,"pageSize"),j(this,"items",[]),j(this,"pendingRequests",{}),j(this,"__subCacheByIndex",{}),j(this,"__size",0),j(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=o,this.parentCache=r,this.parentCacheIndex=s,this.__flatSize=o||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var t;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let o=0;o<e;o++)(t=this.items)[o]||(t[o]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(o=>{parseInt(o)*this.pageSize>=this.size&&delete this.pendingRequests[o]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const o=e*this.pageSize;t.forEach((r,s)=>{const a=o+s;(this.size===void 0||a<this.size)&&(this.items[a]=r)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new tr(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((o,r)=>{const s=r.parentCacheIndex;return t>s?o+r.flatSize:o},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=Pi(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:o}=Pi(this,e);return{cache:t,scaledIndex:o}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
|
|
4482
4482
|
* @license
|
|
4483
4483
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4484
4484
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4485
|
-
*/class
|
|
4485
|
+
*/class Yc extends EventTarget{constructor(e,{size:t,pageSize:o,isExpanded:r,getItemId:s,isPlaceholder:a,placeholder:l,dataProvider:d,dataProviderParams:h}){super(),j(this,"host"),j(this,"dataProvider"),j(this,"dataProviderParams"),j(this,"pageSize"),j(this,"isExpanded"),j(this,"getItemId"),j(this,"rootCache"),j(this,"placeholder"),j(this,"isPlaceholder"),this.host=e,this.pageSize=o,this.getItemId=s,this.isExpanded=r,this.placeholder=l,this.isPlaceholder=a,this.dataProvider=d,this.dataProviderParams=h,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return Pi(this.rootCache,e)}getItemContext(e){return Ya({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Ga(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:o,item:r}=this.getFlatIndexContext(e);this.__isItemLoaded(r)||this.__loadCachePage(t,o)}ensureFlatIndexHierarchy(e){const{cache:t,item:o,index:r}=this.getFlatIndexContext(e);if(this.__isItemLoaded(o)&&this.isExpanded(o)&&!t.getSubCache(r)){const s=t.createSubCache(r);this.__loadCachePage(s,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new tr(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let o={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(o=_i(_i({},o),this.dataProviderParams()));const r=(s,a)=>{e.pendingRequests[t]===r&&(a!==void 0?e.size=a:o.parentItem&&(e.size=s.length),e.setPage(t,s),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=r,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(o,r)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
|
|
4486
4486
|
* @license
|
|
4487
4487
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4488
4488
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4489
|
-
*/const
|
|
4489
|
+
*/const Gc=i=>class extends i{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new Yc(this,{placeholder:new vt,isPlaceholder:e=>e instanceof vt,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const t=e.detail.index;t!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&t!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const o=this.__getItemIndexByValue(this.filteredItems,t);(o<0||!this._getItemLabel(this.filteredItems[o]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};/**
|
|
4490
4490
|
* @license
|
|
4491
4491
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4492
4492
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4493
|
-
*/function
|
|
4493
|
+
*/function Kc(i){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(i);return}i.querySelector("template")&&console.warn(`WARNING: <template> inside <${i.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
|
|
4494
4494
|
* @license
|
|
4495
4495
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4496
4496
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4497
|
-
*/function Zo(i){return i!=null}function es(i,e){return i.findIndex(t=>t instanceof vt?!1:e(t))}const Gc=i=>class extends Ha(Ze(Rr(Ct(Zt(ei(wt(i))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),Yc(this),this.addController(new Wa(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,r){super._propertiesChanged(e,t,r),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const r=this._overlayElement;r.renderer=o=>{o.innerHTML||o.appendChild(t)},r.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,r,o,s,a,l,d,h,c){if(e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?t:[],opened:r,loading:o,selectedItem:s,itemIdPath:a,focusedIndex:l,renderer:d,theme:h,itemClassNameGenerator:c}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(u){}}_openedOrItemsChanged(e,t,r,o){this._overlayOpened=e&&(o||r||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&ca(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const r=this._getItemElements().find(o=>o.index===e);r?t.setAttribute("aria-activedescendant",r.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!_r&&this.inputElement&&this.inputElement.focus():this._onClosed();const r=this._nativeInput;r&&(r.setAttribute("aria-expanded",!!e),e?r.setAttribute("aria-controls",this._scroller.id):r.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?ki(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?ki(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{_r&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const r=this._inputElementValue;this._lastCustomValue=r;const o=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=r)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,r={};this.filter===t?this._filterChanged(this.filter):r.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(r.opened=!0),this.setProperties(r)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(Zo(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(r=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),r=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&r===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const r=t?t[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=e[o]);const s=this.__getItemIndexByValue(e,this._getItemValue(r));s>-1?this._focusedIndex=s:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!Zo(t)?-1:es(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:es(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof vt)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(Ti()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
|
|
4497
|
+
*/function ts(i){return i!=null}function is(i,e){return i.findIndex(t=>t instanceof vt?!1:e(t))}const Xc=i=>class extends Wa(Ze(jo(Ct(Zt(ei(wt(i))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),Kc(this),this.addController(new ja(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,o){super._propertiesChanged(e,t,o),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const o=this._overlayElement;o.renderer=r=>{r.innerHTML||r.appendChild(t)},o.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,o,r,s,a,l,d,h,c){if(e&&(o&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:o?t:[],opened:o,loading:r,selectedItem:s,itemIdPath:a,focusedIndex:l,renderer:d,theme:h,itemClassNameGenerator:c}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(u){}}_openedOrItemsChanged(e,t,o,r){this._overlayOpened=e&&(r||o||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&ua(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const o=this._getItemElements().find(r=>r.index===e);o?t.setAttribute("aria-activedescendant",o.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!mo&&this.inputElement&&this.inputElement.focus():this._onClosed();const o=this._nativeInput;o&&(o.setAttribute("aria-expanded",!!e),e?o.setAttribute("aria-controls",this._scroller.id):o.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?ki(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?ki(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{mo&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const o=this._inputElementValue;this._lastCustomValue=o;const r=new CustomEvent("custom-value-set",{detail:o,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(r),r.defaultPrevented||(this.value=o)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,o={};this.filter===t?this._filterChanged(this.filter):o.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(o.opened=!0),this.setProperties(o)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(ts(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(o=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(o).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),o=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&o===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const o=t?t[this._focusedIndex]:null,r=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&r>=0&&(this.selectedItem=e[r]);const s=this.__getItemIndexByValue(e,this._getItemValue(o));s>-1?this._focusedIndex=s:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!ts(t)?-1:is(e,o=>this._getItemValue(o)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:is(e,o=>this._getItemLabel(o).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof vt)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(Ti()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
|
|
4498
4498
|
* @license
|
|
4499
4499
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4500
4500
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4501
|
-
*/C("vaadin-combo-box",
|
|
4501
|
+
*/C("vaadin-combo-box",er,{moduleId:"vaadin-combo-box-styles"});class Jc extends Gc(Xc($c(Zo(J(bt(q)))))){static get is(){return"vaadin-combo-box"}static get template(){return U`
|
|
4502
4502
|
<style>
|
|
4503
4503
|
:host([opened]) {
|
|
4504
4504
|
pointer-events: auto;
|
|
@@ -4543,4 +4543,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4543
4543
|
></vaadin-combo-box-overlay>
|
|
4544
4544
|
|
|
4545
4545
|
<slot name="tooltip"></slot>
|
|
4546
|
-
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ii(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Di(this.inputElement,this._labelController)),this._tooltipController=new xt(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}N(Kc);function Xc(i){n.append_styles(i,"svelte-kqqea6",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.historyContainer{container-type:inline-size}.historyContainer .historyWrapper{padding:50px}.historyContainer .historyWrapper .historyHeader{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:20px}.historyContainer .historyWrapper .historyHeader .historyReturnButton{display:none;border:none;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));align-items:center;column-gap:10px;margin-bottom:10px}.historyContainer .historyWrapper .historyHeader .historyReturnButton .historyReturnText{font-size:var(--emw--size-standard, 16px)}.historyContainer .historyWrapper .historyHeader .historyReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.historyContainer .historyWrapper .historyHeader .historyReturnButton.skeleton{width:200px;height:20px}.historyContainer .historyWrapper .historyHeader .headerText p{color:var(--emw--color-primary, #22B04E);font-size:var(--emw--font-size-x-large, 26px);font-family:inherit}.historyContainer .historyWrapper .historyHeader .headerText.skeleton{width:250px;height:30px}.historyContainer .historyWrapper .historyHeader .headerController{display:inherit;flex-direction:row;align-items:center;justify-content:center;gap:30px}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent{justify-content:flex-start;overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .toggleCheckbox{border:none;padding:0;margin:0}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .label{width:70px;height:15px;border-radius:var(--emw--border-radius-medium, 20px);overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent{display:inherit;flex-direction:row;align-items:inherit;justify-content:inherit;background-color:transparent;border:none;cursor:pointer}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox{width:20px;height:20px;padding:2px;margin:2px 0 2px 0;border-radius:100%;position:relative;border:1px solid var(--emw--color-gray-300, #666178)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox [type=checkbox]{display:none}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox::before{content:"";width:12.75px;height:12.75px;border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox{border:1px solid var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox::before{background-color:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .label{font-size:var(--emw--size-standard, 16px);font-family:inherit;margin-left:10px}.historyContainer .historyWrapper .historyFilter{display:flex;align-items:flex-end;gap:15px;padding-bottom:30px;padding:20px 0px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{display:flex;gap:20px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:190px;color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;position:relative;align-items:flex-start;gap:10px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-medium, 20px)}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate label,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate input,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 50px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:9px;outline:none}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.historyCalendarFilterMobile{width:100%;height:44px}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.disable{cursor:default;color:var(--emw--color-white, #FFFFFF);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate{align-items:normal;overflow:hidden}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{height:15px;overflow:hidden;border-radius:20px}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarFilter{padding:0;background:transparent;border:none;overflow:hidden}.historyContainer .historyWrapper .historyTable{width:100%;display:flex;flex-direction:column;border:1px solid var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableWrapper{width:100%;display:flex;flex-direction:column}.historyContainer .historyWrapper .historyTable .tableHead{display:flex;padding:18px 0;color:var(--emw--button-text-color, #FFFFFF);background:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableHead span{width:100px;flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyTable .tableContent{width:100%;max-height:546px;overflow-y:auto}.historyContainer .historyWrapper .historyTable .tableContent .tableRow{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:18px 0;background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData{display:flex;justify-content:center;align-items:center;width:100%}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu{width:100px;display:flex;justify-content:center;align-items:center;flex:1 1 20%;text-align:center;cursor:pointer;font-weight:700;font-size:inherit;text-decoration:underline;color:var(--emw--color-white, #FFFFFF);border:none;background-color:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu{width:18px;height:18px;padding-bottom:5px;box-sizing:content-box;fill:var(--emw--color-white, #FFFFFF);transform:rotateX(0deg);transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu.active{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu span{width:70px;flex:none}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{flex:1 1 20%;text-align:center;width:100px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg path{stroke:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg path{stroke:var(--emw--color-error, #ed0909)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu{display:flex;flex-direction:row;justify-content:center;align-items:center;width:100%;overflow:hidden;max-height:0px;overflow:hidden;opacity:0;transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData .label{width:100%;padding:0px 18px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-wrap:nowrap}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu.active{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd){background-color:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu{color:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu .iconToggleSubMenu{fill:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable.skeleton .tableHead{gap:40px;padding:18px 25px}.historyContainer .historyWrapper .historyTable.skeleton .tableHead div{width:100px;overflow:hidden;height:15px;border-radius:10px;flex:1 1 20%}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow{padding:0px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData{gap:40px;padding:18px 25px;border-radius:10px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData div{overflow:hidden;height:15px;border-radius:10px;width:100px;flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:20px;padding-top:10px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex{width:fit-content;display:flex;flex-direction:row;align-items:center;justify-content:center;border:1px solid var(--emw--color-primary, #22B04E);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay{text-align:center;width:40px;padding:10px;transition:all 0.3s ease;border-left:1px solid var(--emw--color-primary, #22B04E);border-right:1px solid var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay input{width:100%}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay.disable{color:var(--emw--color-white, #FFFFFF);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight{display:flex;justify-content:center;align-items:center;width:20px;height:20px;padding:9px;box-sizing:content-box;cursor:pointer;transition:all 0.3s ease;background-color:transparent;border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight svg{fill:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable{cursor:default;background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable svg{fill:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable:hover{background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover{background-color:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover svg{fill:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize{width:fit-content;display:inline;text-align:center;width:80px;height:43px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector{width:100%;height:100%;position:relative;border:none;background-color:transparent;cursor:pointer;border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize{width:100%;height:100%;padding:10px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid var(--emw--color-primary, #22B04E);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize .icon{width:15px;height:15px;padding-bottom:2px;transform:rotateX(0deg);box-sizing:content-box;transition:all 0.3s ease;fill:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{width:100%;max-height:0px;position:absolute;top:120%;left:0;text-align:left;overflow:hidden;opacity:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-primary, #22B04E);border-radius:var(--emw--border-radius-small, 5px);transition:all 0.3s ease}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow{width:100%;cursor:pointer;padding:10px;border:none;background-color:transparent;border-bottom:1px solid var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow .p{flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:hover{background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:nth-last-child(1){border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .currentPageSize .icon{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .pageSizeDropDown{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable{cursor:default;background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize{color:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize .icon{fill:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageIndex{display:block;width:100px;border:none;overflow:hidden;border-radius:5px}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageSize{border:none;overflow:hidden;border-radius:5px}@container (max-width: 768px){.historyContainer .historyWrapper{padding:20px 15px}.historyContainer .historyWrapper .historyHeader .headerText{display:none}.historyContainer .historyWrapper .historyHeader .historyReturnButton{display:inline-flex}.historyContainer .historyWrapper .historyHeader .headerController{width:100%;align-items:center;justify-content:center}.historyContainer .historyWrapper .historyFilter{flex-direction:column;align-items:center}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:inherit}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate .VaadinDatePicker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate .VaadinDatePicker{width:inherit}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{width:100%}.historyContainer .historyWrapper .historyTable{overflow:auto}.historyContainer .historyWrapper .historyTable .tableHead{min-width:fit-content}.historyContainer .historyWrapper .historyTable .tableContent{min-width:fit-content;max-height:430px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}}@container (max-width: 425px){.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{width:100%;flex-direction:column}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{width:100px}.historyContainer .historyWrapper .historyTable{overflow:auto}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}}')}function ts(i,e,t){const r=i.slice();return r[82]=e[t],r}function is(i,e,t){const r=i.slice();return r[85]=e[t],r[87]=t,r}function rs(i,e,t){const r=i.slice();return r[88]=e[t],r}function os(i,e,t){const r=i.slice();return r[91]=e[t],r}function ss(i,e,t){const r=i.slice();return r[88]=e[t],r}function as(i,e,t){const r=i.slice();return r[88]=e[t],r}function ns(i,e,t){const r=i.slice();return r[98]=e[t],r[87]=t,r}function Jc(i,e,t){const r=i.slice();return r[73]=e[t],r}function Qc(i,e,t){const r=i.slice();return r[73]=e[t],r}function Zc(i,e,t){const r=i.slice();return r[73]=e[t],r}function eu(i,e,t){const r=i.slice();return r[73]=e[t],r}function tu(i){let e,t,r,o,s,a,l,d,h,c,u,m,p,g=i[17]("headerTitle")+"",A,E,k,z,O=i[17]("headerTitle")+"",M,V,se,$,b,R,T,ae,et=i[17]("dateFrom")+"",Ve,Re,Q,ce,G,K,ne=i[17]("dateTo")+"",tt,ue,le,kt,we,fe=i[17]("dateFilter")+"",S,it,Pt,Ce,ge,He,ii,ke,pe,ve,de,Pe,Se,rt,Ae,ri,We,St,ot,je,At,Ee,Ue,Et,st,oi,at,_e,Te,Tt,It,si,Ie,_,w,x,D,ie,Z,ee=n.ensure_array_like(i[13]),L=[];for(let f=0;f<ee.length;f+=1)L[f]=ls(ns(i,ee,f));let De=n.ensure_array_like(i[18][i[7]]),H=[];for(let f=0;f<De.length;f+=1)H[f]=ds(as(i,De,f));function nt(f,I){return f[12]?ru:ou}let ze=nt(i),re=ze(i),Oe=n.ensure_array_like(i[20]),Y=[];for(let f=0;f<Oe.length;f+=1)Y[f]=_s(ts(i,Oe,f));return{c(){e=n.element("div"),t=n.element("div"),r=n.element("div"),o=n.element("button"),s=n.svg_element("svg"),a=n.svg_element("defs"),l=n.svg_element("style"),d=n.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),h=n.svg_element("g"),c=n.svg_element("g"),u=n.svg_element("path"),m=n.space(),p=n.element("h2"),A=n.text(g),E=n.space(),k=n.element("div"),z=n.element("p"),M=n.text(O),V=n.space(),se=n.element("div");for(let f=0;f<L.length;f+=1)L[f].c();$=n.space(),b=n.element("div"),R=n.element("div"),T=n.element("div"),ae=n.element("label"),Ve=n.text(et),Re=n.space(),Q=n.element("vaadin-date-picker"),ce=n.space(),G=n.element("div"),K=n.element("label"),tt=n.text(ne),ue=n.space(),le=n.element("vaadin-date-picker"),kt=n.space(),we=n.element("button"),S=n.text(fe),Pt=n.space(),Ce=n.element("table"),ge=n.element("div"),He=n.element("thead");for(let f=0;f<H.length;f+=1)H[f].c();ii=n.space(),ke=n.element("tbody"),re.c(),pe=n.space(),ve=n.element("div"),de=n.element("div"),Pe=n.element("button"),Se=n.svg_element("svg"),rt=n.svg_element("path"),ri=n.space(),We=n.element("div"),St=n.element("p"),ot=n.text(i[9]),At=n.space(),Ee=n.element("button"),Ue=n.svg_element("svg"),Et=n.svg_element("path"),oi=n.space(),at=n.element("div"),_e=n.element("button"),Te=n.element("div"),Tt=n.element("p"),It=n.text(i[8]),si=n.space(),Ie=n.svg_element("svg"),_=n.svg_element("path"),w=n.space(),x=n.element("div");for(let f=0;f<Y.length;f+=1)Y[f].c();n.attr(u,"class","aaa"),n.attr(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),n.attr(u,"transform","translate(15 15) rotate(180)"),n.attr(c,"transform","translate(20 158)"),n.attr(h,"transform","translate(-20 -158)"),n.attr(s,"xmlns","http://www.w3.org/2000/svg"),n.attr(s,"width","15"),n.attr(s,"height","15"),n.attr(s,"viewBox","0 0 15 15"),n.attr(p,"class","historyReturnText"),n.attr(o,"class","historyReturnButton"),n.attr(k,"class","headerText"),n.attr(se,"class","headerController"),n.attr(r,"class","historyHeader"),n.attr(ae,"for","historyCalendarStartDate"),n.set_custom_element_data(Q,"max",i[4]),n.set_custom_element_data(Q,"value",i[5]),n.set_custom_element_data(Q,"placeholder","From"),n.set_custom_element_data(Q,"class","VaadinDatePicker"),n.attr(T,"class","historyCalendarStartDate"),n.attr(K,"for","historyCalendarEndDate"),n.set_custom_element_data(le,"max",i[4]),n.set_custom_element_data(le,"value",i[6]),n.set_custom_element_data(le,"placeholder","To"),n.set_custom_element_data(le,"class","VaadinDatePicker"),n.attr(G,"class","historyCalendarEndDate"),n.attr(R,"class","historyCalendarContainer"),n.attr(we,"class",it="historyCalendarFilter "+(i[16].filterButton?"":"disable")),n.attr(b,"class","historyFilter"),n.attr(He,"class","tableHead"),n.attr(ke,"class","tableContent"),n.attr(ge,"class","tableWrapper"),n.attr(Ce,"class","historyTable"),n.attr(rt,"d","M1.293,12.707a1,1,0,0,1,0-1.414l5-5A1,1,0,0,1,7.707,7.707L4.414,11H22a1,1,0,0,1,0,2H4.414l3.293,3.293a1,1,0,1,1-1.414,1.414Z"),n.attr(Se,"viewBox","1 4 17 17"),n.attr(Se,"xmlns","http://www.w3.org/2000/svg"),n.attr(Pe,"class",Ae="arrowLeft "+(i[16].previousPage?"":"disable")),n.attr(We,"class",je="indexDisplay "+(!i[16].previousPage&&!i[16].nextPage?"disable":"")),n.attr(Et,"d","M17.707,17.707a1,1,0,0,1-1.414-1.414L19.586,13H2a1,1,0,0,1,0-2H19.586L16.293,7.707a1,1,0,0,1,1.414-1.414l5,5a1,1,0,0,1,0,1.414Z"),n.attr(Ue,"viewBox","6 4 17 17"),n.attr(Ue,"xmlns","http://www.w3.org/2000/svg"),n.attr(Ee,"class",st="arrowRight "+(i[16].nextPage?"":"disable")),n.attr(de,"class","historyPageIndex"),n.attr(_,"d","M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"),n.attr(Ie,"xmlns","http://www.w3.org/2000/svg"),n.attr(Ie,"viewBox","6 5 20 20"),n.attr(Ie,"class","icon"),n.attr(Te,"class","currentPageSize"),n.attr(x,"class","pageSizeDropDown"),n.attr(_e,"class",D="pageSizeSelector "+(i[11]?"active":"")+" "+(i[16].pageSize?"":"disable")),n.attr(at,"class","historyPageSize"),n.attr(ve,"class","historyPaginationContainer"),n.attr(t,"class","historyWrapper"),n.attr(e,"class","historyContainer")},m(f,I){n.insert(f,e,I),n.append(e,t),n.append(t,r),n.append(r,o),n.append(o,s),n.append(s,a),n.append(a,l),n.append(l,d),n.append(s,h),n.append(h,c),n.append(c,u),n.append(o,m),n.append(o,p),n.append(p,A),n.append(r,E),n.append(r,k),n.append(k,z),n.append(z,M),n.append(r,V),n.append(r,se);for(let v=0;v<L.length;v+=1)L[v]&&L[v].m(se,null);n.append(t,$),n.append(t,b),n.append(b,R),n.append(R,T),n.append(T,ae),n.append(ae,Ve),n.append(T,Re),n.append(T,Q),i[44](Q),n.append(R,ce),n.append(R,G),n.append(G,K),n.append(K,tt),n.append(G,ue),n.append(G,le),i[45](le),n.append(b,kt),n.append(b,we),n.append(we,S),n.append(t,Pt),n.append(t,Ce),n.append(Ce,ge),n.append(ge,He);for(let v=0;v<H.length;v+=1)H[v]&&H[v].m(He,null);n.append(ge,ii),n.append(ge,ke),re.m(ke,null),n.append(t,pe),n.append(t,ve),n.append(ve,de),n.append(de,Pe),n.append(Pe,Se),n.append(Se,rt),n.append(de,ri),n.append(de,We),n.append(We,St),n.append(St,ot),n.append(de,At),n.append(de,Ee),n.append(Ee,Ue),n.append(Ue,Et),n.append(ve,oi),n.append(ve,at),n.append(at,_e),n.append(_e,Te),n.append(Te,Tt),n.append(Tt,It),n.append(Te,si),n.append(Te,Ie),n.append(Ie,_),n.append(_e,w),n.append(_e,x);for(let v=0;v<Y.length;v+=1)Y[v]&&Y[v].m(x,null);ie||(Z=[n.listen(o,"click",i[42]),n.listen(we,"click",i[46]),n.listen(Pe,"click",i[48]),n.listen(Ee,"click",i[49]),n.listen(_e,"click",i[51])],ie=!0)},p(f,I){if(I[0]&131072&&g!==(g=f[17]("headerTitle")+"")&&n.set_data(A,g),I[0]&131072&&O!==(O=f[17]("headerTitle")+"")&&n.set_data(M,O),I[0]&2236416){ee=n.ensure_array_like(f[13]);let v;for(v=0;v<ee.length;v+=1){const Me=ns(f,ee,v);L[v]?L[v].p(Me,I):(L[v]=ls(Me),L[v].c(),L[v].m(se,null))}for(;v<L.length;v+=1)L[v].d(1);L.length=ee.length}if(I[0]&131072&&et!==(et=f[17]("dateFrom")+"")&&n.set_data(Ve,et),I[0]&16&&n.set_custom_element_data(Q,"max",f[4]),I[0]&32&&n.set_custom_element_data(Q,"value",f[5]),I[0]&131072&&ne!==(ne=f[17]("dateTo")+"")&&n.set_data(tt,ne),I[0]&16&&n.set_custom_element_data(le,"max",f[4]),I[0]&64&&n.set_custom_element_data(le,"value",f[6]),I[0]&131072&&fe!==(fe=f[17]("dateFilter")+"")&&n.set_data(S,fe),I[0]&65536&&it!==(it="historyCalendarFilter "+(f[16].filterButton?"":"disable"))&&n.attr(we,"class",it),I[0]&393344){De=n.ensure_array_like(f[18][f[7]]);let v;for(v=0;v<De.length;v+=1){const Me=as(f,De,v);H[v]?H[v].p(Me,I):(H[v]=ds(Me),H[v].c(),H[v].m(He,null))}for(;v<H.length;v+=1)H[v].d(1);H.length=De.length}if(ze===(ze=nt(f))&&re?re.p(f,I):(re.d(1),re=ze(f),re&&(re.c(),re.m(ke,null))),I[0]&65536&&Ae!==(Ae="arrowLeft "+(f[16].previousPage?"":"disable"))&&n.attr(Pe,"class",Ae),I[0]&512&&n.set_data(ot,f[9]),I[0]&65536&&je!==(je="indexDisplay "+(!f[16].previousPage&&!f[16].nextPage?"disable":""))&&n.attr(We,"class",je),I[0]&65536&&st!==(st="arrowRight "+(f[16].nextPage?"":"disable"))&&n.attr(Ee,"class",st),I[0]&256&&n.set_data(It,f[8]),I[0]&17825792){Oe=n.ensure_array_like(f[20]);let v;for(v=0;v<Oe.length;v+=1){const Me=ts(f,Oe,v);Y[v]?Y[v].p(Me,I):(Y[v]=_s(Me),Y[v].c(),Y[v].m(x,null))}for(;v<Y.length;v+=1)Y[v].d(1);Y.length=Oe.length}I[0]&67584&&D!==(D="pageSizeSelector "+(f[11]?"active":"")+" "+(f[16].pageSize?"":"disable"))&&n.attr(_e,"class",D)},d(f){f&&n.detach(e),n.destroy_each(L,f),i[44](null),i[45](null),n.destroy_each(H,f),re.d(),n.destroy_each(Y,f),ie=!1,n.run_all(Z)}}}function iu(i){let e,t,r,o,s,a,l,d,h,c,u,m,p,g,A,E,k,z=n.ensure_array_like({length:3}),O=[];for(let b=0;b<z.length;b+=1)O[b]=cu(eu(i,z,b));let M=n.ensure_array_like({length:6}),V=[];for(let b=0;b<M.length;b+=1)V[b]=uu(Zc(i,M,b));let se=n.ensure_array_like({length:5}),$=[];for(let b=0;b<se.length;b+=1)$[b]=_u(Jc(i,se,b));return{c(){e=n.element("div"),t=n.element("div"),r=n.element("div"),o=n.element("button"),o.innerHTML='<ui-skeleton structure="title" width="auto" height="10px"></ui-skeleton>',s=n.space(),a=n.element("div"),a.innerHTML='<ui-skeleton structure="title" width="auto" height="30px"></ui-skeleton>',l=n.space(),d=n.element("div");for(let b=0;b<O.length;b+=1)O[b].c();h=n.space(),c=n.element("div"),c.innerHTML='<div class="historyCalendarContainer"><div class="historyCalendarStartDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div> <div class="historyCalendarEndDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div></div> <div class="historyCalendarFilter"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>',u=n.space(),m=n.element("table"),p=n.element("thead");for(let b=0;b<V.length;b+=1)V[b].c();g=n.space(),A=n.element("tbody");for(let b=0;b<$.length;b+=1)$[b].c();E=n.space(),k=n.element("div"),k.innerHTML='<div class="historyPageIndex"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div> <div class="historyPageSize"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>',n.attr(o,"class","historyReturnButton skeleton"),n.attr(a,"class","headerText skeleton"),n.attr(d,"class","headerController skeleton"),n.attr(r,"class","historyHeader"),n.attr(c,"class","historyFilter skeleton"),n.attr(p,"class","tableHead"),n.attr(A,"class","tableContent"),n.attr(m,"class","historyTable skeleton"),n.attr(k,"class","historyPaginationContainer skeleton"),n.attr(t,"class","historyWrapper"),n.attr(e,"class","historyContainer")},m(b,R){n.insert(b,e,R),n.append(e,t),n.append(t,r),n.append(r,o),n.append(r,s),n.append(r,a),n.append(r,l),n.append(r,d);for(let T=0;T<O.length;T+=1)O[T]&&O[T].m(d,null);n.append(t,h),n.append(t,c),n.append(t,u),n.append(t,m),n.append(m,p);for(let T=0;T<V.length;T+=1)V[T]&&V[T].m(p,null);n.append(m,g),n.append(m,A);for(let T=0;T<$.length;T+=1)$[T]&&$[T].m(A,null);n.append(t,E),n.append(t,k)},p:n.noop,d(b){b&&n.detach(e),n.destroy_each(O,b),n.destroy_each(V,b),n.destroy_each($,b)}}}function ls(i){let e,t,r,o,s=i[17](i[98].type)+"",a,l,d,h,c;function u(){return i[43](i[87])}return{c(){e=n.element("button"),t=n.element("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',r=n.space(),o=n.element("p"),a=n.text(s),l=n.space(),n.attr(t,"class","toggleCheckbox"),n.attr(o,"class","label"),n.attr(e,"class",d="toggleContent "+(i[98].checked?"checked":""))},m(m,p){n.insert(m,e,p),n.append(e,t),n.append(e,r),n.append(e,o),n.append(o,a),n.append(e,l),h||(c=n.listen(e,"click",u),h=!0)},p(m,p){i=m,p[0]&139264&&s!==(s=i[17](i[98].type)+"")&&n.set_data(a,s),p[0]&8192&&d!==(d="toggleContent "+(i[98].checked?"checked":""))&&n.attr(e,"class",d)},d(m){m&&n.detach(e),h=!1,c()}}}function ds(i){let e,t=(i[17](i[88])||i[88])+"",r,o;return{c(){e=n.element("span"),r=n.text(t),o=n.space()},m(s,a){n.insert(s,e,a),n.append(e,r),n.append(e,o)},p(s,a){a[0]&131200&&t!==(t=(s[17](s[88])||s[88])+"")&&n.set_data(r,t)},d(s){s&&n.detach(e)}}}function ru(i){let e,t;return{c(){e=n.element("div"),t=n.text(i[3]),n.attr(e,"class","tableRow")},m(r,o){n.insert(r,e,o),n.append(e,t)},p(r,o){o[0]&8&&n.set_data(t,r[3])},d(r){r&&n.detach(e)}}}function ou(i){let e,t=n.ensure_array_like(i[14][i[7]]),r=[];for(let o=0;o<t.length;o+=1)r[o]=ps(is(i,t,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();e=n.empty()},m(o,s){for(let a=0;a<r.length;a+=1)r[a]&&r[a].m(o,s);n.insert(o,e,s)},p(o,s){if(s[0]&67682432){t=n.ensure_array_like(o[14][o[7]]);let a;for(a=0;a<t.length;a+=1){const l=is(o,t,a);r[a]?r[a].p(l,s):(r[a]=ps(l),r[a].c(),r[a].m(e.parentNode,e))}for(;a<r.length;a+=1)r[a].d(1);r.length=t.length}},d(o){o&&n.detach(e),n.destroy_each(r,o)}}}function su(i){let e,t=(i[85][i[88]]||"-")+"",r;return{c(){e=n.element("span"),r=n.text(t)},m(o,s){n.insert(o,e,s),n.append(e,r)},p(o,s){s[0]&16512&&t!==(t=(o[85][o[88]]||"-")+"")&&n.set_data(r,t)},d(o){o&&n.detach(e)}}}function au(i){let e,t,r,o,s,a,l=i[85][i[88]].label+"",d,h,c,u;function m(){return i[47](i[87])}return{c(){e=n.element("button"),t=n.svg_element("svg"),r=n.svg_element("path"),s=n.space(),a=n.element("span"),d=n.text(l),h=n.space(),n.attr(r,"d","M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"),n.attr(t,"xmlns","http://www.w3.org/2000/svg"),n.attr(t,"viewBox","6 5 20 20"),n.attr(t,"class",o="iconToggleSubMenu "+(i[15][i[87]]?"active":"")),n.attr(e,"class","toggleSubMenu")},m(p,g){n.insert(p,e,g),n.append(e,t),n.append(t,r),n.append(e,s),n.append(e,a),n.append(a,d),n.append(e,h),c||(u=n.listen(e,"click",m),c=!0)},p(p,g){i=p,g[0]&32768&&o!==(o="iconToggleSubMenu "+(i[15][i[87]]?"active":""))&&n.attr(t,"class",o),g[0]&16512&&l!==(l=i[85][i[88]].label+"")&&n.set_data(d,l)},d(p){p&&n.detach(e),c=!1,u()}}}function nu(i){let e;return{c(){e=n.element("span"),e.innerHTML='<svg viewBox="-3 -4 30 30" xmlns="http://www.w3.org/2000/svg"><path d="M9 9L15 15M15 9L9 15M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> ',n.attr(e,"class","decline")},m(t,r){n.insert(t,e,r)},p:n.noop,d(t){t&&n.detach(e)}}}function lu(i){let e;return{c(){e=n.element("span"),e.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 12.0002C5.50024 8.66068 7.85944 5.78639 11.1348 5.1351C14.4102 4.48382 17.6895 6.23693 18.9673 9.32231C20.2451 12.4077 19.1655 15.966 16.3887 17.8212C13.6119 19.6764 9.91127 19.3117 7.55 16.9502C6.23728 15.6373 5.49987 13.8568 5.5 12.0002Z" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9 12.0002L11.333 14.3332L16 9.66724" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg> ',n.attr(e,"class","approved")},m(t,r){n.insert(t,e,r)},p:n.noop,d(t){t&&n.detach(e)}}}function hs(i){let e;function t(s,a){var l;return s[85][s[88]]===!0?lu:s[85][s[88]]===!1?nu:(l=s[85][s[88]])!=null&&l.label?au:su}let r=t(i),o=r(i);return{c(){o.c(),e=n.empty()},m(s,a){o.m(s,a),n.insert(s,e,a)},p(s,a){r===(r=t(s))&&o?o.p(s,a):(o.d(1),o=r(s),o&&(o.c(),o.m(e.parentNode,e)))},d(s){s&&n.detach(e),o.d(s)}}}function du(i){let e;return{c(){e=n.element("div"),e.innerHTML='<span class="label">-</span> ',n.attr(e,"class","tableData")},m(t,r){n.insert(t,e,r)},p:n.noop,d(t){t&&n.detach(e)}}}function hu(i){let e,t,r=n.ensure_array_like(i[85][i[88]].submenu),o=[];for(let s=0;s<r.length;s+=1)o[s]=cs(os(i,r,s));return{c(){e=n.element("div");for(let s=0;s<o.length;s+=1)o[s].c();t=n.space(),n.attr(e,"class","tableData")},m(s,a){n.insert(s,e,a);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(e,null);n.append(e,t)},p(s,a){if(a[0]&540800){r=n.ensure_array_like(s[85][s[88]].submenu);let l;for(l=0;l<r.length;l+=1){const d=os(s,r,l);o[l]?o[l].p(d,a):(o[l]=cs(d),o[l].c(),o[l].m(e,t))}for(;l<o.length;l+=1)o[l].d(1);o.length=r.length}},d(s){s&&n.detach(e),n.destroy_each(o,s)}}}function cs(i){let e,t=(i[91]||"-")+"",r;return{c(){e=n.element("span"),r=n.text(t),n.attr(e,"class","label")},m(o,s){n.insert(o,e,s),n.append(e,r)},p(o,s){s[0]&16512&&t!==(t=(o[91]||"-")+"")&&n.set_data(r,t)},d(o){o&&n.detach(e)}}}function us(i){let e;function t(s,a){var l;return(l=s[85][s[88]])!=null&&l.submenu?hu:du}let r=t(i),o=r(i);return{c(){o.c(),e=n.empty()},m(s,a){o.m(s,a),n.insert(s,e,a)},p(s,a){r===(r=t(s))&&o?o.p(s,a):(o.d(1),o=r(s),o&&(o.c(),o.m(e.parentNode,e)))},d(s){s&&n.detach(e),o.d(s)}}}function ps(i){let e,t,r,o,s,a,l=n.ensure_array_like(i[19][i[7]]),d=[];for(let u=0;u<l.length;u+=1)d[u]=hs(ss(i,l,u));let h=n.ensure_array_like(i[19][i[7]]),c=[];for(let u=0;u<h.length;u+=1)c[u]=us(rs(i,h,u));return{c(){e=n.element("div"),t=n.element("div");for(let u=0;u<d.length;u+=1)d[u].c();r=n.space(),o=n.element("div");for(let u=0;u<c.length;u+=1)c[u].c();a=n.space(),n.attr(t,"class","tableData"),n.attr(o,"class",s="tableSubMenu "+(i[15][i[87]]?"active":"")),n.attr(e,"class","tableRow")},m(u,m){n.insert(u,e,m),n.append(e,t);for(let p=0;p<d.length;p+=1)d[p]&&d[p].m(t,null);n.append(e,r),n.append(e,o);for(let p=0;p<c.length;p+=1)c[p]&&c[p].m(o,null);n.append(e,a)},p(u,m){if(m[0]&67682432){l=n.ensure_array_like(u[19][u[7]]);let p;for(p=0;p<l.length;p+=1){const g=ss(u,l,p);d[p]?d[p].p(g,m):(d[p]=hs(g),d[p].c(),d[p].m(t,null))}for(;p<d.length;p+=1)d[p].d(1);d.length=l.length}if(m[0]&540800){h=n.ensure_array_like(u[19][u[7]]);let p;for(p=0;p<h.length;p+=1){const g=rs(u,h,p);c[p]?c[p].p(g,m):(c[p]=us(g),c[p].c(),c[p].m(o,null))}for(;p<c.length;p+=1)c[p].d(1);c.length=h.length}m[0]&32768&&s!==(s="tableSubMenu "+(u[15][u[87]]?"active":""))&&n.attr(o,"class",s)},d(u){u&&n.detach(e),n.destroy_each(d,u),n.destroy_each(c,u)}}}function _s(i){let e,t,r,o,s;function a(){return i[50](i[82])}return{c(){e=n.element("button"),t=n.element("p"),t.textContent=`${i[82]}`,r=n.space(),n.attr(e,"class","dropDownRow")},m(l,d){n.insert(l,e,d),n.append(e,t),n.append(e,r),o||(s=n.listen(e,"click",a),o=!0)},p(l,d){i=l},d(l){l&&n.detach(e),o=!1,s()}}}function cu(i){let e;return{c(){e=n.element("div"),e.innerHTML='<ui-skeleton structure="circle" size="20px"></ui-skeleton> <div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> ',n.attr(e,"class","toggleContent")},m(t,r){n.insert(t,e,r)},p:n.noop,d(t){t&&n.detach(e)}}}function uu(i){let e;return{c(){e=n.element("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,r){n.insert(t,e,r)},p:n.noop,d(t){t&&n.detach(e)}}}function pu(i){let e;return{c(){e=n.element("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,r){n.insert(t,e,r)},p:n.noop,d(t){t&&n.detach(e)}}}function _u(i){let e,t,r,o=n.ensure_array_like({length:6}),s=[];for(let a=0;a<o.length;a+=1)s[a]=pu(Qc(i,o,a));return{c(){e=n.element("div"),t=n.element("div");for(let a=0;a<s.length;a+=1)s[a].c();r=n.space(),n.attr(t,"class","tableData"),n.attr(e,"class","tableRow")},m(a,l){n.insert(a,e,l),n.append(e,t);for(let d=0;d<s.length;d+=1)s[d]&&s[d].m(t,null);n.append(e,r)},p:n.noop,d(a){a&&n.detach(e),n.destroy_each(s,a)}}}function mu(i){let e;function t(s,a){return s[10]?iu:tu}let r=t(i),o=r(i);return{c(){e=n.element("div"),o.c()},m(s,a){n.insert(s,e,a),o.m(e,null),i[52](e)},p(s,a){r===(r=t(s))&&o?o.p(s,a):(o.d(1),o=r(s),o&&(o.c(),o.m(e,null)))},i:n.noop,o:n.noop,d(s){s&&n.detach(e),o.d(),i[52](null)}}}function fu(i,e,t){let r;n.component_subscribe(i,n.$format,_=>t(17,r=_));let{endpoint:o=""}=e,{playerid:s=""}=e,{session:a=""}=e,{lang:l=""}=e,{clientstyling:d=""}=e,{clientstylingurl:h=""}=e,{translationurl:c=""}=e,{mbsource:u}=e,{historytypes:m="Casino, Sports, Payments"}=e,{pagesizeoptions:p="10, 20, 30, 50, 100"}=e,{playercurrency:g=""}=e,{defaultpagesize:A="5"}=e,{formatamount:E="{currency}{amount}.{2decimals}"}=e,{customcurrencysymbols:k}=e,z=window.navigator.userAgent,O="",M="",V,se,$="",b="",R="",T=Number(A),ae=0,et=n.getDevice(z)!=="PC",Ve=!0,Re=!1,Q=!1,ce,G,K,ne=[],tt={EUR:"€",RON:" lei",USD:"$"},ue={payments:[],casino:[],sports:[]},le={payments:["Type","Status","Amount","Date","Transaction ID"],casino:["Game Name","Date","Bet Amount","Win Amount","Transaction ID"],sports:["Stake","Price","Selection","Market","Sport","Date","Description","Bet Type","Free Bet","Win Type","Bet Adjustment","Bet ID"]},kt={payments:["paymentType","paymentState","paymentAmount","paymentCreatedOn","withdrawalId"],casino:["game_type_name","game_finished_on","stake","won","game_id"],sports:["stake","bet_Part.price","bet_Part.selection_name","bet_Part.market_name","bet_Part.category","bet_settled_on","bet_description","bet_Type","is_Freebet","win_Type","-","bet_id"]},we=["stake","won","bet_Part.price","paymentAmount"],fe={},S={filterButton:!0,nextPage:!0,previousPage:!0,pageSize:!0},it=p.split(", "),Pt={},Ce=new Date,ge=new Date(Ce);ge.setMonth(Ce.getMonth()-1),V=Ce.toISOString().split("T")[0],b=V,se=ge.toISOString().split("T")[0],$=se;const He=()=>{fetch(c).then(w=>w.json()).then(w=>{Object.keys(w).forEach(x=>{eo(x,w[x])})}).catch(w=>{console.log(w)})};Object.keys(to).forEach(_=>{eo(_,to[_])});const ii=()=>{t(13,ne=m.split(", ").map((_,w)=>{const x={type:_,checked:w===0};return x.checked&&t(7,R=x.type.toLocaleLowerCase()),x}))},ke=_=>{ne.forEach((w,x)=>{t(13,ne[x].checked=_===x,ne),ne[x].checked&&t(7,R=w.type.toLocaleLowerCase())}),pe()},pe=()=>{if(!S.filterButton)return;t(10,Ve=!0),t(12,Q=!1),t(16,S.filterButton=!1,S),t(16,S.nextPage=!1,S),t(16,S.previousPage=!1,S),t(16,S.pageSize=!1,S);let _=new URL(`${o}/v1/player/${s}/fsb/transactions/${R}`);_.searchParams.append("offset",ae.toString()||"0"),_.searchParams.append("limit",T.toString()||"5"),_.searchParams.append("startDate",$),_.searchParams.append("endDate",b);let w={method:"GET",headers:{"X-SessionId":a,"Content-Type":"application/json",Accept:"application/json"}};fetch(_.href,w).then(x=>Ee(x)).then(x=>{if(x.transactions.length===0)return t(3,M=r("checkPeriod")),Promise.reject(M);x.transactions.length>=T&&(t(16,S.nextPage=!0,S),t(16,S.previousPage=!0,S),t(16,S.pageSize=!0,S)),t(14,ue[R]=[],ue),t(11,Re=!1),ri(x)}).catch(x=>{t(12,Q=!0),t(16,S.nextPage=!1,S),t(16,S.previousPage=!1,S),t(16,S.pageSize=!1,S),window.postMessage({type:"WidgetNotification",data:{type:"error",message:x}},window.location.href)}).finally(()=>{t(10,Ve=!1),t(16,S.filterButton=!0,S)})},ve=_=>{t(5,$=_.target.value)},de=_=>{t(6,b=_.target.value)},Pe=()=>{ce.addEventListener("change",ve,!1),G.addEventListener("change",de,!1)},Se=()=>{S.pageSize&&t(11,Re=!Re)},rt=_=>{t(8,T=_),pe()},Ae=(_,w)=>{if(w==="next"){if(!S.nextPage)return;t(9,ae=_+1),pe()}else{if(!S.previousPage)return;t(9,ae=_-1),pe()}},ri=_=>{_.transactions.forEach((w,x)=>{t(14,ue[R][x]={},ue),kt[R].forEach(D=>{if(E&&g&&we.includes(D))if(D.includes(".")){let ie=D.split(".");w[ie[0]].forEach(Z=>{Z[ie[1]]=ot(Z,ie[1])})}else w[D]=ot(w,D);if(new Date(w[D]).getTime()&&typeof w[D]!="number"&&St(w,D),D.includes(".")){let ie=D.split(".")[0],Z=D.split(".")[1];w[D]={label:"Multiple",submenu:[]},w[ie].forEach((ee,L)=>{ee[Z]&&w[D].submenu.push(ee[Z])})}if(D in w)return t(14,ue[R][x][D]=w[D],ue)})})},We=()=>{if(!k)return;let _={};k.split(",").forEach(w=>{let x=w.split(":");_[x[0].trim()]=x[1].trim()}),Object.entries(_).forEach(([w,x])=>tt[w]=x)},St=(_,w)=>{let x=new Date(_[w]).toISOString().split("T"),D=`${x[0]} ${x[1].split(".")[0]}`;_[w]=D},ot=(_,w)=>{let x=typeof _[w]=="string"?parseInt(_[w]):_[w],D=Object.keys(_).find(Oe=>Oe.includes("currency")),ie=_[D]||g,Z=E;const ee=Z.match(/\{(\d+)decimals\}/),L=ee?parseInt(ee[1],10):2,De=ee?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";x=x.toFixed(L);const[H,nt]=E.includes(".")?[",","."]:[".",","];let[ze,re]=x.split(".");return ze=ze.replace(/\B(?=(\d{3})+(?!\d))/g,H),x=`${ze}${nt}${re}`,Z=Z.replace("{currency}",tt[ie]||ie).replace("{amount}",x.split(nt)[0]).replace(De,x.split(nt)[1]),Z},je=_=>t(15,fe[_]=!fe[_],fe),At=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:et},window.location.href)},Ee=_=>Zr(this,null,function*(){return _.status>=300?(Pt=yield _.json(),O=Pt.thirdPartyResponse.errorCode,t(3,M=r(O)||r("generalError")),Promise.reject(M)):_.json()});n.onMount(()=>()=>{ce&&ce.removeEventListener("change",ve),G&&G.removeEventListener("change",de)});const Ue=()=>At(),Et=_=>ke(_);function st(_){n.binding_callbacks[_?"unshift":"push"](()=>{ce=_,t(0,ce)})}function oi(_){n.binding_callbacks[_?"unshift":"push"](()=>{G=_,t(1,G)})}const at=()=>pe(),_e=_=>je(_),Te=()=>Ae(ae,"previous"),Tt=()=>Ae(ae,"next"),It=_=>rt(_),si=()=>Se();function Ie(_){n.binding_callbacks[_?"unshift":"push"](()=>{K=_,t(2,K)})}return i.$$set=_=>{"endpoint"in _&&t(28,o=_.endpoint),"playerid"in _&&t(29,s=_.playerid),"session"in _&&t(30,a=_.session),"lang"in _&&t(31,l=_.lang),"clientstyling"in _&&t(32,d=_.clientstyling),"clientstylingurl"in _&&t(33,h=_.clientstylingurl),"translationurl"in _&&t(34,c=_.translationurl),"mbsource"in _&&t(35,u=_.mbsource),"historytypes"in _&&t(36,m=_.historytypes),"pagesizeoptions"in _&&t(37,p=_.pagesizeoptions),"playercurrency"in _&&t(38,g=_.playercurrency),"defaultpagesize"in _&&t(39,A=_.defaultpagesize),"formatamount"in _&&t(40,E=_.formatamount),"customcurrencysymbols"in _&&t(41,k=_.customcurrencysymbols)},i.$$.update=()=>{i.$$.dirty[1]&1&&l&&Ka(l),i.$$.dirty[1]&32&&m&&ii(),i.$$.dirty[0]&1879048192&&o&&s&&a&&pe(),i.$$.dirty[1]&1024&&k&&We(),i.$$.dirty[0]&3&&ce&&G&&Pe(),i.$$.dirty[0]&4|i.$$.dirty[1]&2&&d&&K&&n.setClientStyling(K,d),i.$$.dirty[0]&4|i.$$.dirty[1]&4&&h&&K&&n.setClientStylingURL(K,h),i.$$.dirty[0]&4|i.$$.dirty[1]&16&&u&&K&&n.setStreamStyling(K,`${u}.Style`),i.$$.dirty[1]&8&&c&&He()},[ce,G,K,M,V,$,b,R,T,ae,Ve,Re,Q,ne,ue,fe,S,r,le,kt,it,ke,pe,Se,rt,Ae,je,At,o,s,a,l,d,h,c,u,m,p,g,A,E,k,Ue,Et,st,oi,at,_e,Te,Tt,It,si,Ie]}class Ga extends n.SvelteComponent{constructor(e){super(),n.init(this,e,fu,mu,n.safe_not_equal,{endpoint:28,playerid:29,session:30,lang:31,clientstyling:32,clientstylingurl:33,translationurl:34,mbsource:35,historytypes:36,pagesizeoptions:37,playercurrency:38,defaultpagesize:39,formatamount:40,customcurrencysymbols:41},Xc,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[28]}set endpoint(e){this.$$set({endpoint:e}),n.flush()}get playerid(){return this.$$.ctx[29]}set playerid(e){this.$$set({playerid:e}),n.flush()}get session(){return this.$$.ctx[30]}set session(e){this.$$set({session:e}),n.flush()}get lang(){return this.$$.ctx[31]}set lang(e){this.$$set({lang:e}),n.flush()}get clientstyling(){return this.$$.ctx[32]}set clientstyling(e){this.$$set({clientstyling:e}),n.flush()}get clientstylingurl(){return this.$$.ctx[33]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),n.flush()}get translationurl(){return this.$$.ctx[34]}set translationurl(e){this.$$set({translationurl:e}),n.flush()}get mbsource(){return this.$$.ctx[35]}set mbsource(e){this.$$set({mbsource:e}),n.flush()}get historytypes(){return this.$$.ctx[36]}set historytypes(e){this.$$set({historytypes:e}),n.flush()}get pagesizeoptions(){return this.$$.ctx[37]}set pagesizeoptions(e){this.$$set({pagesizeoptions:e}),n.flush()}get playercurrency(){return this.$$.ctx[38]}set playercurrency(e){this.$$set({playercurrency:e}),n.flush()}get defaultpagesize(){return this.$$.ctx[39]}set defaultpagesize(e){this.$$set({defaultpagesize:e}),n.flush()}get formatamount(){return this.$$.ctx[40]}set formatamount(e){this.$$set({formatamount:e}),n.flush()}get customcurrencysymbols(){return this.$$.ctx[41]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),n.flush()}}n.create_custom_element(Ga,{endpoint:{},playerid:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},historytypes:{},pagesizeoptions:{},playercurrency:{},defaultpagesize:{},formatamount:{},customcurrencysymbols:{}},[],[],!0);exports.default=Ga;
|
|
4546
|
+
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ii(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Di(this.inputElement,this._labelController)),this._tooltipController=new xt(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}N(Jc);function Qc(i){n.append_styles(i,"svelte-kqqea6",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.historyContainer{container-type:inline-size}.historyContainer .historyWrapper{padding:50px}.historyContainer .historyWrapper .historyHeader{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:20px}.historyContainer .historyWrapper .historyHeader .historyReturnButton{display:none;border:none;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));align-items:center;column-gap:10px;margin-bottom:10px}.historyContainer .historyWrapper .historyHeader .historyReturnButton .historyReturnText{font-size:var(--emw--size-standard, 16px)}.historyContainer .historyWrapper .historyHeader .historyReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.historyContainer .historyWrapper .historyHeader .historyReturnButton.skeleton{width:200px;height:20px}.historyContainer .historyWrapper .historyHeader .headerText p{color:var(--emw--color-primary, #22B04E);font-size:var(--emw--font-size-x-large, 26px);font-family:inherit}.historyContainer .historyWrapper .historyHeader .headerText.skeleton{width:250px;height:30px}.historyContainer .historyWrapper .historyHeader .headerController{display:inherit;flex-direction:row;align-items:center;justify-content:center;gap:30px}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent{justify-content:flex-start;overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .toggleCheckbox{border:none;padding:0;margin:0}.historyContainer .historyWrapper .historyHeader .headerController.skeleton .toggleContent .label{width:70px;height:15px;border-radius:var(--emw--border-radius-medium, 20px);overflow:hidden}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent{display:inherit;flex-direction:row;align-items:inherit;justify-content:inherit;background-color:transparent;border:none;cursor:pointer}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox{width:20px;height:20px;padding:2px;margin:2px 0 2px 0;border-radius:100%;position:relative;border:1px solid var(--emw--color-gray-300, #666178)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox [type=checkbox]{display:none}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .toggleCheckbox::before{content:"";width:12.75px;height:12.75px;border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox{border:1px solid var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent.checked .toggleCheckbox::before{background-color:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyHeader .headerController .toggleContent .label{font-size:var(--emw--size-standard, 16px);font-family:inherit;margin-left:10px}.historyContainer .historyWrapper .historyFilter{display:flex;align-items:flex-end;gap:15px;padding-bottom:30px;padding:20px 0px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{display:flex;gap:20px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:190px;color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;position:relative;align-items:flex-start;gap:10px}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-medium, 20px)}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate label,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate input,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 50px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:9px;outline:none}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.historyCalendarFilterMobile{width:100%;height:44px}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter.disable{cursor:default;color:var(--emw--color-white, #FFFFFF);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate{align-items:normal;overflow:hidden}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{height:15px;overflow:hidden;border-radius:20px}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarFilter{padding:0;background:transparent;border:none;overflow:hidden}.historyContainer .historyWrapper .historyTable{width:100%;display:flex;flex-direction:column;border:1px solid var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableWrapper{width:100%;display:flex;flex-direction:column}.historyContainer .historyWrapper .historyTable .tableHead{display:flex;padding:18px 0;color:var(--emw--button-text-color, #FFFFFF);background:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableHead span{width:100px;flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyTable .tableContent{width:100%;max-height:546px;overflow-y:auto}.historyContainer .historyWrapper .historyTable .tableContent .tableRow{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:18px 0;background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData{display:flex;justify-content:center;align-items:center;width:100%}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu{width:100px;display:flex;justify-content:center;align-items:center;flex:1 1 20%;text-align:center;cursor:pointer;font-weight:700;font-size:inherit;text-decoration:underline;color:var(--emw--color-white, #FFFFFF);border:none;background-color:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu{width:18px;height:18px;padding-bottom:5px;box-sizing:content-box;fill:var(--emw--color-white, #FFFFFF);transform:rotateX(0deg);transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu .iconToggleSubMenu.active{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData .toggleSubMenu span{width:70px;flex:none}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span{flex:1 1 20%;text-align:center;width:100px}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.approved svg path{stroke:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg{width:30px;height:30px;fill:transparent}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableData span.decline svg path{stroke:var(--emw--color-error, #ed0909)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu{display:flex;flex-direction:row;justify-content:center;align-items:center;width:100%;overflow:hidden;max-height:0px;overflow:hidden;opacity:0;transition:all 0.3s ease-in-out}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu .tableData .label{width:100%;padding:0px 18px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-wrap:nowrap}.historyContainer .historyWrapper .historyTable .tableContent .tableRow .tableSubMenu.active{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd){background-color:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu{color:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable .tableContent .tableRow:nth-of-type(odd) .tableData .toggleSubMenu .iconToggleSubMenu{fill:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyTable.skeleton .tableHead{gap:40px;padding:18px 25px}.historyContainer .historyWrapper .historyTable.skeleton .tableHead div{width:100px;overflow:hidden;height:15px;border-radius:10px;flex:1 1 20%}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow{padding:0px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData{gap:40px;padding:18px 25px;border-radius:10px}.historyContainer .historyWrapper .historyTable.skeleton .tableContent .tableRow .tableData div{overflow:hidden;height:15px;border-radius:10px;width:100px;flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:20px;padding-top:10px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex{width:fit-content;display:flex;flex-direction:row;align-items:center;justify-content:center;border:1px solid var(--emw--color-primary, #22B04E);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay{text-align:center;width:40px;padding:10px;transition:all 0.3s ease;border-left:1px solid var(--emw--color-primary, #22B04E);border-right:1px solid var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay input{width:100%}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .indexDisplay.disable{color:var(--emw--color-white, #FFFFFF);background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight{display:flex;justify-content:center;align-items:center;width:20px;height:20px;padding:9px;box-sizing:content-box;cursor:pointer;transition:all 0.3s ease;background-color:transparent;border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight svg{fill:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable{cursor:default;background:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable svg{fill:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft.disable:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight.disable:hover{background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover{background-color:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowLeft:hover svg,.historyContainer .historyWrapper .historyPaginationContainer .historyPageIndex .arrowRight:hover svg{fill:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize{width:fit-content;display:inline;text-align:center;width:80px;height:43px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector{width:100%;height:100%;position:relative;border:none;background-color:transparent;cursor:pointer;border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize{width:100%;height:100%;padding:10px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid var(--emw--color-primary, #22B04E);border-radius:var(--emw--border-radius-small, 5px)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .currentPageSize .icon{width:15px;height:15px;padding-bottom:2px;transform:rotateX(0deg);box-sizing:content-box;transition:all 0.3s ease;fill:var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{width:100%;max-height:0px;position:absolute;top:120%;left:0;text-align:left;overflow:hidden;opacity:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-primary, #22B04E);border-radius:var(--emw--border-radius-small, 5px);transition:all 0.3s ease}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow{width:100%;cursor:pointer;padding:10px;border:none;background-color:transparent;border-bottom:1px solid var(--emw--color-primary, #22B04E)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow .p{flex:1 1 20%;text-align:center}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:hover{background-color:var(--emw--color-primary, rgba(68, 224, 117, 0.811))}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown .dropDownRow:nth-last-child(1){border:none}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .currentPageSize .icon{transform:rotateX(180deg)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.active .pageSizeDropDown{max-height:1000px;opacity:1}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable{cursor:default;background-color:var(--emfe-w-color-gray-150, #bababa)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize{color:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector.disable .currentPageSize .icon{fill:var(--emw--color-white, #FFFFFF)}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageIndex{display:block;width:100px;border:none;overflow:hidden;border-radius:5px}.historyContainer .historyWrapper .historyPaginationContainer.skeleton .historyPageSize{border:none;overflow:hidden;border-radius:5px}@container (max-width: 768px){.historyContainer .historyWrapper{padding:20px 15px}.historyContainer .historyWrapper .historyHeader .headerText{display:none}.historyContainer .historyWrapper .historyHeader .historyReturnButton{display:inline-flex}.historyContainer .historyWrapper .historyHeader .headerController{width:100%;align-items:center;justify-content:center}.historyContainer .historyWrapper .historyFilter{flex-direction:column;align-items:center}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{width:100%}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate{width:inherit}.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarStartDate .VaadinDatePicker,.historyContainer .historyWrapper .historyFilter .historyCalendarContainer .historyCalendarEndDate .VaadinDatePicker{width:inherit}.historyContainer .historyWrapper .historyFilter .historyCalendarFilter{width:100%}.historyContainer .historyWrapper .historyTable{overflow:auto}.historyContainer .historyWrapper .historyTable .tableHead{min-width:fit-content}.historyContainer .historyWrapper .historyTable .tableContent{min-width:fit-content;max-height:430px}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}}@container (max-width: 425px){.historyContainer .historyWrapper .historyFilter .historyCalendarContainer{width:100%;flex-direction:column}.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarStartDate .label,.historyContainer .historyWrapper .historyFilter.skeleton .historyCalendarContainer .historyCalendarEndDate .label{width:100px}.historyContainer .historyWrapper .historyTable{overflow:auto}.historyContainer .historyWrapper .historyPaginationContainer .historyPageSize .pageSizeSelector .pageSizeDropDown{top:-150px}}')}function os(i,e,t){const o=i.slice();return o[82]=e[t],o}function rs(i,e,t){const o=i.slice();return o[85]=e[t],o[87]=t,o}function ss(i,e,t){const o=i.slice();return o[88]=e[t],o}function as(i,e,t){const o=i.slice();return o[91]=e[t],o}function ns(i,e,t){const o=i.slice();return o[88]=e[t],o}function ls(i,e,t){const o=i.slice();return o[88]=e[t],o}function ds(i,e,t){const o=i.slice();return o[98]=e[t],o[87]=t,o}function Zc(i,e,t){const o=i.slice();return o[73]=e[t],o}function eu(i,e,t){const o=i.slice();return o[73]=e[t],o}function tu(i,e,t){const o=i.slice();return o[73]=e[t],o}function iu(i,e,t){const o=i.slice();return o[73]=e[t],o}function ou(i){let e,t,o,r,s,a,l,d,h,c,u,m,p,g=i[17]("headerTitle")+"",A,E,k,z,O=i[17]("headerTitle")+"",M,V,se,$,b,R,T,ae,et=i[17]("dateFrom")+"",Ve,Re,Q,ce,G,K,ne=i[17]("dateTo")+"",tt,ue,le,kt,we,fe=i[17]("dateFilter")+"",S,it,Pt,Ce,ge,He,ii,ke,pe,ve,de,Pe,Se,ot,Ae,oi,We,St,rt,je,At,Ee,Ue,Et,st,ri,at,_e,Te,Tt,It,si,Ie,_,w,x,D,ie,Z,ee=n.ensure_array_like(i[13]),L=[];for(let f=0;f<ee.length;f+=1)L[f]=hs(ds(i,ee,f));let De=n.ensure_array_like(i[18][i[7]]),H=[];for(let f=0;f<De.length;f+=1)H[f]=cs(ls(i,De,f));function nt(f,I){return f[12]?su:au}let ze=nt(i),oe=ze(i),Oe=n.ensure_array_like(i[20]),Y=[];for(let f=0;f<Oe.length;f+=1)Y[f]=fs(os(i,Oe,f));return{c(){e=n.element("div"),t=n.element("div"),o=n.element("div"),r=n.element("button"),s=n.svg_element("svg"),a=n.svg_element("defs"),l=n.svg_element("style"),d=n.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),h=n.svg_element("g"),c=n.svg_element("g"),u=n.svg_element("path"),m=n.space(),p=n.element("h2"),A=n.text(g),E=n.space(),k=n.element("div"),z=n.element("p"),M=n.text(O),V=n.space(),se=n.element("div");for(let f=0;f<L.length;f+=1)L[f].c();$=n.space(),b=n.element("div"),R=n.element("div"),T=n.element("div"),ae=n.element("label"),Ve=n.text(et),Re=n.space(),Q=n.element("vaadin-date-picker"),ce=n.space(),G=n.element("div"),K=n.element("label"),tt=n.text(ne),ue=n.space(),le=n.element("vaadin-date-picker"),kt=n.space(),we=n.element("button"),S=n.text(fe),Pt=n.space(),Ce=n.element("table"),ge=n.element("div"),He=n.element("thead");for(let f=0;f<H.length;f+=1)H[f].c();ii=n.space(),ke=n.element("tbody"),oe.c(),pe=n.space(),ve=n.element("div"),de=n.element("div"),Pe=n.element("button"),Se=n.svg_element("svg"),ot=n.svg_element("path"),oi=n.space(),We=n.element("div"),St=n.element("p"),rt=n.text(i[9]),At=n.space(),Ee=n.element("button"),Ue=n.svg_element("svg"),Et=n.svg_element("path"),ri=n.space(),at=n.element("div"),_e=n.element("button"),Te=n.element("div"),Tt=n.element("p"),It=n.text(i[8]),si=n.space(),Ie=n.svg_element("svg"),_=n.svg_element("path"),w=n.space(),x=n.element("div");for(let f=0;f<Y.length;f+=1)Y[f].c();n.attr(u,"class","aaa"),n.attr(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),n.attr(u,"transform","translate(15 15) rotate(180)"),n.attr(c,"transform","translate(20 158)"),n.attr(h,"transform","translate(-20 -158)"),n.attr(s,"xmlns","http://www.w3.org/2000/svg"),n.attr(s,"width","15"),n.attr(s,"height","15"),n.attr(s,"viewBox","0 0 15 15"),n.attr(p,"class","historyReturnText"),n.attr(r,"class","historyReturnButton"),n.attr(k,"class","headerText"),n.attr(se,"class","headerController"),n.attr(o,"class","historyHeader"),n.attr(ae,"for","historyCalendarStartDate"),n.set_custom_element_data(Q,"max",i[4]),n.set_custom_element_data(Q,"value",i[5]),n.set_custom_element_data(Q,"placeholder","From"),n.set_custom_element_data(Q,"class","VaadinDatePicker"),n.attr(T,"class","historyCalendarStartDate"),n.attr(K,"for","historyCalendarEndDate"),n.set_custom_element_data(le,"max",i[4]),n.set_custom_element_data(le,"value",i[6]),n.set_custom_element_data(le,"placeholder","To"),n.set_custom_element_data(le,"class","VaadinDatePicker"),n.attr(G,"class","historyCalendarEndDate"),n.attr(R,"class","historyCalendarContainer"),n.attr(we,"class",it="historyCalendarFilter "+(i[16].filterButton?"":"disable")),n.attr(b,"class","historyFilter"),n.attr(He,"class","tableHead"),n.attr(ke,"class","tableContent"),n.attr(ge,"class","tableWrapper"),n.attr(Ce,"class","historyTable"),n.attr(ot,"d","M1.293,12.707a1,1,0,0,1,0-1.414l5-5A1,1,0,0,1,7.707,7.707L4.414,11H22a1,1,0,0,1,0,2H4.414l3.293,3.293a1,1,0,1,1-1.414,1.414Z"),n.attr(Se,"viewBox","1 4 17 17"),n.attr(Se,"xmlns","http://www.w3.org/2000/svg"),n.attr(Pe,"class",Ae="arrowLeft "+(i[16].previousPage?"":"disable")),n.attr(We,"class",je="indexDisplay "+(!i[16].previousPage&&!i[16].nextPage?"disable":"")),n.attr(Et,"d","M17.707,17.707a1,1,0,0,1-1.414-1.414L19.586,13H2a1,1,0,0,1,0-2H19.586L16.293,7.707a1,1,0,0,1,1.414-1.414l5,5a1,1,0,0,1,0,1.414Z"),n.attr(Ue,"viewBox","6 4 17 17"),n.attr(Ue,"xmlns","http://www.w3.org/2000/svg"),n.attr(Ee,"class",st="arrowRight "+(i[16].nextPage?"":"disable")),n.attr(de,"class","historyPageIndex"),n.attr(_,"d","M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"),n.attr(Ie,"xmlns","http://www.w3.org/2000/svg"),n.attr(Ie,"viewBox","6 5 20 20"),n.attr(Ie,"class","icon"),n.attr(Te,"class","currentPageSize"),n.attr(x,"class","pageSizeDropDown"),n.attr(_e,"class",D="pageSizeSelector "+(i[11]?"active":"")+" "+(i[16].pageSize?"":"disable")),n.attr(at,"class","historyPageSize"),n.attr(ve,"class","historyPaginationContainer"),n.attr(t,"class","historyWrapper"),n.attr(e,"class","historyContainer")},m(f,I){n.insert(f,e,I),n.append(e,t),n.append(t,o),n.append(o,r),n.append(r,s),n.append(s,a),n.append(a,l),n.append(l,d),n.append(s,h),n.append(h,c),n.append(c,u),n.append(r,m),n.append(r,p),n.append(p,A),n.append(o,E),n.append(o,k),n.append(k,z),n.append(z,M),n.append(o,V),n.append(o,se);for(let v=0;v<L.length;v+=1)L[v]&&L[v].m(se,null);n.append(t,$),n.append(t,b),n.append(b,R),n.append(R,T),n.append(T,ae),n.append(ae,Ve),n.append(T,Re),n.append(T,Q),i[44](Q),n.append(R,ce),n.append(R,G),n.append(G,K),n.append(K,tt),n.append(G,ue),n.append(G,le),i[45](le),n.append(b,kt),n.append(b,we),n.append(we,S),n.append(t,Pt),n.append(t,Ce),n.append(Ce,ge),n.append(ge,He);for(let v=0;v<H.length;v+=1)H[v]&&H[v].m(He,null);n.append(ge,ii),n.append(ge,ke),oe.m(ke,null),n.append(t,pe),n.append(t,ve),n.append(ve,de),n.append(de,Pe),n.append(Pe,Se),n.append(Se,ot),n.append(de,oi),n.append(de,We),n.append(We,St),n.append(St,rt),n.append(de,At),n.append(de,Ee),n.append(Ee,Ue),n.append(Ue,Et),n.append(ve,ri),n.append(ve,at),n.append(at,_e),n.append(_e,Te),n.append(Te,Tt),n.append(Tt,It),n.append(Te,si),n.append(Te,Ie),n.append(Ie,_),n.append(_e,w),n.append(_e,x);for(let v=0;v<Y.length;v+=1)Y[v]&&Y[v].m(x,null);ie||(Z=[n.listen(r,"click",i[42]),n.listen(we,"click",i[46]),n.listen(Pe,"click",i[48]),n.listen(Ee,"click",i[49]),n.listen(_e,"click",i[51])],ie=!0)},p(f,I){if(I[0]&131072&&g!==(g=f[17]("headerTitle")+"")&&n.set_data(A,g),I[0]&131072&&O!==(O=f[17]("headerTitle")+"")&&n.set_data(M,O),I[0]&2236416){ee=n.ensure_array_like(f[13]);let v;for(v=0;v<ee.length;v+=1){const Me=ds(f,ee,v);L[v]?L[v].p(Me,I):(L[v]=hs(Me),L[v].c(),L[v].m(se,null))}for(;v<L.length;v+=1)L[v].d(1);L.length=ee.length}if(I[0]&131072&&et!==(et=f[17]("dateFrom")+"")&&n.set_data(Ve,et),I[0]&16&&n.set_custom_element_data(Q,"max",f[4]),I[0]&32&&n.set_custom_element_data(Q,"value",f[5]),I[0]&131072&&ne!==(ne=f[17]("dateTo")+"")&&n.set_data(tt,ne),I[0]&16&&n.set_custom_element_data(le,"max",f[4]),I[0]&64&&n.set_custom_element_data(le,"value",f[6]),I[0]&131072&&fe!==(fe=f[17]("dateFilter")+"")&&n.set_data(S,fe),I[0]&65536&&it!==(it="historyCalendarFilter "+(f[16].filterButton?"":"disable"))&&n.attr(we,"class",it),I[0]&393344){De=n.ensure_array_like(f[18][f[7]]);let v;for(v=0;v<De.length;v+=1){const Me=ls(f,De,v);H[v]?H[v].p(Me,I):(H[v]=cs(Me),H[v].c(),H[v].m(He,null))}for(;v<H.length;v+=1)H[v].d(1);H.length=De.length}if(ze===(ze=nt(f))&&oe?oe.p(f,I):(oe.d(1),oe=ze(f),oe&&(oe.c(),oe.m(ke,null))),I[0]&65536&&Ae!==(Ae="arrowLeft "+(f[16].previousPage?"":"disable"))&&n.attr(Pe,"class",Ae),I[0]&512&&n.set_data(rt,f[9]),I[0]&65536&&je!==(je="indexDisplay "+(!f[16].previousPage&&!f[16].nextPage?"disable":""))&&n.attr(We,"class",je),I[0]&65536&&st!==(st="arrowRight "+(f[16].nextPage?"":"disable"))&&n.attr(Ee,"class",st),I[0]&256&&n.set_data(It,f[8]),I[0]&17825792){Oe=n.ensure_array_like(f[20]);let v;for(v=0;v<Oe.length;v+=1){const Me=os(f,Oe,v);Y[v]?Y[v].p(Me,I):(Y[v]=fs(Me),Y[v].c(),Y[v].m(x,null))}for(;v<Y.length;v+=1)Y[v].d(1);Y.length=Oe.length}I[0]&67584&&D!==(D="pageSizeSelector "+(f[11]?"active":"")+" "+(f[16].pageSize?"":"disable"))&&n.attr(_e,"class",D)},d(f){f&&n.detach(e),n.destroy_each(L,f),i[44](null),i[45](null),n.destroy_each(H,f),oe.d(),n.destroy_each(Y,f),ie=!1,n.run_all(Z)}}}function ru(i){let e,t,o,r,s,a,l,d,h,c,u,m,p,g,A,E,k,z=n.ensure_array_like({length:3}),O=[];for(let b=0;b<z.length;b+=1)O[b]=pu(iu(i,z,b));let M=n.ensure_array_like({length:6}),V=[];for(let b=0;b<M.length;b+=1)V[b]=_u(tu(i,M,b));let se=n.ensure_array_like({length:5}),$=[];for(let b=0;b<se.length;b+=1)$[b]=fu(Zc(i,se,b));return{c(){e=n.element("div"),t=n.element("div"),o=n.element("div"),r=n.element("button"),r.innerHTML='<ui-skeleton structure="title" width="auto" height="10px"></ui-skeleton>',s=n.space(),a=n.element("div"),a.innerHTML='<ui-skeleton structure="title" width="auto" height="30px"></ui-skeleton>',l=n.space(),d=n.element("div");for(let b=0;b<O.length;b+=1)O[b].c();h=n.space(),c=n.element("div"),c.innerHTML='<div class="historyCalendarContainer"><div class="historyCalendarStartDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div> <div class="historyCalendarEndDate"><div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> <ui-skeleton structure="rectangle" width="auto" height="10px"></ui-skeleton></div></div> <div class="historyCalendarFilter"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>',u=n.space(),m=n.element("table"),p=n.element("thead");for(let b=0;b<V.length;b+=1)V[b].c();g=n.space(),A=n.element("tbody");for(let b=0;b<$.length;b+=1)$[b].c();E=n.space(),k=n.element("div"),k.innerHTML='<div class="historyPageIndex"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div> <div class="historyPageSize"><ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton></div>',n.attr(r,"class","historyReturnButton skeleton"),n.attr(a,"class","headerText skeleton"),n.attr(d,"class","headerController skeleton"),n.attr(o,"class","historyHeader"),n.attr(c,"class","historyFilter skeleton"),n.attr(p,"class","tableHead"),n.attr(A,"class","tableContent"),n.attr(m,"class","historyTable skeleton"),n.attr(k,"class","historyPaginationContainer skeleton"),n.attr(t,"class","historyWrapper"),n.attr(e,"class","historyContainer")},m(b,R){n.insert(b,e,R),n.append(e,t),n.append(t,o),n.append(o,r),n.append(o,s),n.append(o,a),n.append(o,l),n.append(o,d);for(let T=0;T<O.length;T+=1)O[T]&&O[T].m(d,null);n.append(t,h),n.append(t,c),n.append(t,u),n.append(t,m),n.append(m,p);for(let T=0;T<V.length;T+=1)V[T]&&V[T].m(p,null);n.append(m,g),n.append(m,A);for(let T=0;T<$.length;T+=1)$[T]&&$[T].m(A,null);n.append(t,E),n.append(t,k)},p:n.noop,d(b){b&&n.detach(e),n.destroy_each(O,b),n.destroy_each(V,b),n.destroy_each($,b)}}}function hs(i){let e,t,o,r,s=i[17](i[98].type)+"",a,l,d,h,c;function u(){return i[43](i[87])}return{c(){e=n.element("button"),t=n.element("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',o=n.space(),r=n.element("p"),a=n.text(s),l=n.space(),n.attr(t,"class","toggleCheckbox"),n.attr(r,"class","label"),n.attr(e,"class",d="toggleContent "+(i[98].checked?"checked":""))},m(m,p){n.insert(m,e,p),n.append(e,t),n.append(e,o),n.append(e,r),n.append(r,a),n.append(e,l),h||(c=n.listen(e,"click",u),h=!0)},p(m,p){i=m,p[0]&139264&&s!==(s=i[17](i[98].type)+"")&&n.set_data(a,s),p[0]&8192&&d!==(d="toggleContent "+(i[98].checked?"checked":""))&&n.attr(e,"class",d)},d(m){m&&n.detach(e),h=!1,c()}}}function cs(i){let e,t=(i[17](i[88])||i[88])+"",o,r;return{c(){e=n.element("span"),o=n.text(t),r=n.space()},m(s,a){n.insert(s,e,a),n.append(e,o),n.append(e,r)},p(s,a){a[0]&131200&&t!==(t=(s[17](s[88])||s[88])+"")&&n.set_data(o,t)},d(s){s&&n.detach(e)}}}function su(i){let e,t;return{c(){e=n.element("div"),t=n.text(i[3]),n.attr(e,"class","tableRow")},m(o,r){n.insert(o,e,r),n.append(e,t)},p(o,r){r[0]&8&&n.set_data(t,o[3])},d(o){o&&n.detach(e)}}}function au(i){let e,t=n.ensure_array_like(i[14][i[7]]),o=[];for(let r=0;r<t.length;r+=1)o[r]=ms(rs(i,t,r));return{c(){for(let r=0;r<o.length;r+=1)o[r].c();e=n.empty()},m(r,s){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(r,s);n.insert(r,e,s)},p(r,s){if(s[0]&67682432){t=n.ensure_array_like(r[14][r[7]]);let a;for(a=0;a<t.length;a+=1){const l=rs(r,t,a);o[a]?o[a].p(l,s):(o[a]=ms(l),o[a].c(),o[a].m(e.parentNode,e))}for(;a<o.length;a+=1)o[a].d(1);o.length=t.length}},d(r){r&&n.detach(e),n.destroy_each(o,r)}}}function nu(i){let e,t=(i[85][i[88]]||"-")+"",o;return{c(){e=n.element("span"),o=n.text(t)},m(r,s){n.insert(r,e,s),n.append(e,o)},p(r,s){s[0]&16512&&t!==(t=(r[85][r[88]]||"-")+"")&&n.set_data(o,t)},d(r){r&&n.detach(e)}}}function lu(i){let e,t,o,r,s,a,l=i[85][i[88]].label+"",d,h,c,u;function m(){return i[47](i[87])}return{c(){e=n.element("button"),t=n.svg_element("svg"),o=n.svg_element("path"),s=n.space(),a=n.element("span"),d=n.text(l),h=n.space(),n.attr(o,"d","M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"),n.attr(t,"xmlns","http://www.w3.org/2000/svg"),n.attr(t,"viewBox","6 5 20 20"),n.attr(t,"class",r="iconToggleSubMenu "+(i[15][i[87]]?"active":"")),n.attr(e,"class","toggleSubMenu")},m(p,g){n.insert(p,e,g),n.append(e,t),n.append(t,o),n.append(e,s),n.append(e,a),n.append(a,d),n.append(e,h),c||(u=n.listen(e,"click",m),c=!0)},p(p,g){i=p,g[0]&32768&&r!==(r="iconToggleSubMenu "+(i[15][i[87]]?"active":""))&&n.attr(t,"class",r),g[0]&16512&&l!==(l=i[85][i[88]].label+"")&&n.set_data(d,l)},d(p){p&&n.detach(e),c=!1,u()}}}function du(i){let e;return{c(){e=n.element("span"),e.innerHTML='<svg viewBox="-3 -4 30 30" xmlns="http://www.w3.org/2000/svg"><path d="M9 9L15 15M15 9L9 15M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> ',n.attr(e,"class","decline")},m(t,o){n.insert(t,e,o)},p:n.noop,d(t){t&&n.detach(e)}}}function hu(i){let e;return{c(){e=n.element("span"),e.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 12.0002C5.50024 8.66068 7.85944 5.78639 11.1348 5.1351C14.4102 4.48382 17.6895 6.23693 18.9673 9.32231C20.2451 12.4077 19.1655 15.966 16.3887 17.8212C13.6119 19.6764 9.91127 19.3117 7.55 16.9502C6.23728 15.6373 5.49987 13.8568 5.5 12.0002Z" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9 12.0002L11.333 14.3332L16 9.66724" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg> ',n.attr(e,"class","approved")},m(t,o){n.insert(t,e,o)},p:n.noop,d(t){t&&n.detach(e)}}}function us(i){let e;function t(s,a){var l;return s[85][s[88]]===!0?hu:s[85][s[88]]===!1?du:(l=s[85][s[88]])!=null&&l.label?lu:nu}let o=t(i),r=o(i);return{c(){r.c(),e=n.empty()},m(s,a){r.m(s,a),n.insert(s,e,a)},p(s,a){o===(o=t(s))&&r?r.p(s,a):(r.d(1),r=o(s),r&&(r.c(),r.m(e.parentNode,e)))},d(s){s&&n.detach(e),r.d(s)}}}function cu(i){let e;return{c(){e=n.element("div"),e.innerHTML='<span class="label">-</span> ',n.attr(e,"class","tableData")},m(t,o){n.insert(t,e,o)},p:n.noop,d(t){t&&n.detach(e)}}}function uu(i){let e,t,o=n.ensure_array_like(i[85][i[88]].submenu),r=[];for(let s=0;s<o.length;s+=1)r[s]=ps(as(i,o,s));return{c(){e=n.element("div");for(let s=0;s<r.length;s+=1)r[s].c();t=n.space(),n.attr(e,"class","tableData")},m(s,a){n.insert(s,e,a);for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(e,null);n.append(e,t)},p(s,a){if(a[0]&540800){o=n.ensure_array_like(s[85][s[88]].submenu);let l;for(l=0;l<o.length;l+=1){const d=as(s,o,l);r[l]?r[l].p(d,a):(r[l]=ps(d),r[l].c(),r[l].m(e,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=o.length}},d(s){s&&n.detach(e),n.destroy_each(r,s)}}}function ps(i){let e,t=(i[91]||"-")+"",o;return{c(){e=n.element("span"),o=n.text(t),n.attr(e,"class","label")},m(r,s){n.insert(r,e,s),n.append(e,o)},p(r,s){s[0]&16512&&t!==(t=(r[91]||"-")+"")&&n.set_data(o,t)},d(r){r&&n.detach(e)}}}function _s(i){let e;function t(s,a){var l;return(l=s[85][s[88]])!=null&&l.submenu?uu:cu}let o=t(i),r=o(i);return{c(){r.c(),e=n.empty()},m(s,a){r.m(s,a),n.insert(s,e,a)},p(s,a){o===(o=t(s))&&r?r.p(s,a):(r.d(1),r=o(s),r&&(r.c(),r.m(e.parentNode,e)))},d(s){s&&n.detach(e),r.d(s)}}}function ms(i){let e,t,o,r,s,a,l=n.ensure_array_like(i[19][i[7]]),d=[];for(let u=0;u<l.length;u+=1)d[u]=us(ns(i,l,u));let h=n.ensure_array_like(i[19][i[7]]),c=[];for(let u=0;u<h.length;u+=1)c[u]=_s(ss(i,h,u));return{c(){e=n.element("div"),t=n.element("div");for(let u=0;u<d.length;u+=1)d[u].c();o=n.space(),r=n.element("div");for(let u=0;u<c.length;u+=1)c[u].c();a=n.space(),n.attr(t,"class","tableData"),n.attr(r,"class",s="tableSubMenu "+(i[15][i[87]]?"active":"")),n.attr(e,"class","tableRow")},m(u,m){n.insert(u,e,m),n.append(e,t);for(let p=0;p<d.length;p+=1)d[p]&&d[p].m(t,null);n.append(e,o),n.append(e,r);for(let p=0;p<c.length;p+=1)c[p]&&c[p].m(r,null);n.append(e,a)},p(u,m){if(m[0]&67682432){l=n.ensure_array_like(u[19][u[7]]);let p;for(p=0;p<l.length;p+=1){const g=ns(u,l,p);d[p]?d[p].p(g,m):(d[p]=us(g),d[p].c(),d[p].m(t,null))}for(;p<d.length;p+=1)d[p].d(1);d.length=l.length}if(m[0]&540800){h=n.ensure_array_like(u[19][u[7]]);let p;for(p=0;p<h.length;p+=1){const g=ss(u,h,p);c[p]?c[p].p(g,m):(c[p]=_s(g),c[p].c(),c[p].m(r,null))}for(;p<c.length;p+=1)c[p].d(1);c.length=h.length}m[0]&32768&&s!==(s="tableSubMenu "+(u[15][u[87]]?"active":""))&&n.attr(r,"class",s)},d(u){u&&n.detach(e),n.destroy_each(d,u),n.destroy_each(c,u)}}}function fs(i){let e,t,o,r,s;function a(){return i[50](i[82])}return{c(){e=n.element("button"),t=n.element("p"),t.textContent=`${i[82]}`,o=n.space(),n.attr(e,"class","dropDownRow")},m(l,d){n.insert(l,e,d),n.append(e,t),n.append(e,o),r||(s=n.listen(e,"click",a),r=!0)},p(l,d){i=l},d(l){l&&n.detach(e),r=!1,s()}}}function pu(i){let e;return{c(){e=n.element("div"),e.innerHTML='<ui-skeleton structure="circle" size="20px"></ui-skeleton> <div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> ',n.attr(e,"class","toggleContent")},m(t,o){n.insert(t,e,o)},p:n.noop,d(t){t&&n.detach(e)}}}function _u(i){let e;return{c(){e=n.element("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,o){n.insert(t,e,o)},p:n.noop,d(t){t&&n.detach(e)}}}function mu(i){let e;return{c(){e=n.element("div"),e.innerHTML='<ui-skeleton structure="text" width="auto" height="40px"></ui-skeleton> '},m(t,o){n.insert(t,e,o)},p:n.noop,d(t){t&&n.detach(e)}}}function fu(i){let e,t,o,r=n.ensure_array_like({length:6}),s=[];for(let a=0;a<r.length;a+=1)s[a]=mu(eu(i,r,a));return{c(){e=n.element("div"),t=n.element("div");for(let a=0;a<s.length;a+=1)s[a].c();o=n.space(),n.attr(t,"class","tableData"),n.attr(e,"class","tableRow")},m(a,l){n.insert(a,e,l),n.append(e,t);for(let d=0;d<s.length;d+=1)s[d]&&s[d].m(t,null);n.append(e,o)},p:n.noop,d(a){a&&n.detach(e),n.destroy_each(s,a)}}}function gu(i){let e;function t(s,a){return s[10]?ru:ou}let o=t(i),r=o(i);return{c(){e=n.element("div"),r.c()},m(s,a){n.insert(s,e,a),r.m(e,null),i[52](e)},p(s,a){o===(o=t(s))&&r?r.p(s,a):(r.d(1),r=o(s),r&&(r.c(),r.m(e,null)))},i:n.noop,o:n.noop,d(s){s&&n.detach(e),r.d(),i[52](null)}}}function vu(i,e,t){let o;n.component_subscribe(i,n.$format,_=>t(17,o=_));let{endpoint:r=""}=e,{playerid:s=""}=e,{session:a=""}=e,{lang:l=""}=e,{clientstyling:d=""}=e,{clientstylingurl:h=""}=e,{translationurl:c=""}=e,{mbsource:u}=e,{historytypes:m="Casino, Sports, Payments"}=e,{pagesizeoptions:p="10, 20, 30, 50, 100"}=e,{playercurrency:g=""}=e,{defaultpagesize:A="5"}=e,{formatamount:E="{currency}{amount}.{2decimals}"}=e,{customcurrencysymbols:k}=e,z=window.navigator.userAgent,O="",M="",V,se,$="",b="",R="",T=Number(A),ae=0,et=n.getDevice(z)!=="PC",Ve=!0,Re=!1,Q=!1,ce,G,K,ne=[],tt={EUR:"€",RON:" lei",USD:"$"},ue={payments:[],casino:[],sports:[]},le={payments:["Type","Status","Amount","Date","Transaction ID"],casino:["Game Name","Date","Bet Amount","Win Amount","Transaction ID"],sports:["Stake","Price","Selection","Market","Sport","Date","Description","Bet Type","Free Bet","Win Type","Bet Adjustment","Bet ID"]},kt={payments:["paymentType","paymentState","paymentAmount","paymentCreatedOn","withdrawalId"],casino:["game_type_name","game_finished_on","stake","won","game_id"],sports:["stake","bet_Part.price","bet_Part.selection_name","bet_Part.market_name","bet_Part.category","bet_settled_on","bet_description","bet_Type","is_Freebet","win_Type","-","bet_id"]},we=["stake","won","bet_Part.price","paymentAmount"],fe={},S={filterButton:!0,nextPage:!0,previousPage:!0,pageSize:!0},it=p.split(", "),Pt={},Ce=new Date,ge=new Date(Ce);ge.setMonth(Ce.getMonth()-1),V=Ce.toISOString().split("T")[0],b=V,se=ge.toISOString().split("T")[0],$=se;const He=()=>{fetch(c).then(w=>w.json()).then(w=>{Object.keys(w).forEach(x=>{or(x,w[x])})}).catch(w=>{console.log(w)})};Object.keys(rr).forEach(_=>{or(_,rr[_])});const ii=()=>{t(13,ne=m.split(", ").map((_,w)=>{const x={type:_,checked:w===0};return x.checked&&t(7,R=x.type.toLocaleLowerCase()),x}))},ke=_=>{ne.forEach((w,x)=>{t(13,ne[x].checked=_===x,ne),ne[x].checked&&t(7,R=w.type.toLocaleLowerCase())}),pe()},pe=()=>{if(!S.filterButton)return;t(10,Ve=!0),t(12,Q=!1),t(16,S.filterButton=!1,S),t(16,S.nextPage=!1,S),t(16,S.previousPage=!1,S),t(16,S.pageSize=!1,S);let _=new URL(`${r}/v1/player/${s}/fsb/transactions/${R}`);_.searchParams.append("offset",ae.toString()||"0"),_.searchParams.append("limit",T.toString()||"5"),_.searchParams.append("startDate",$),_.searchParams.append("endDate",b);let w={method:"GET",headers:{"X-SessionId":a,"Content-Type":"application/json",Accept:"application/json"}};fetch(_.href,w).then(x=>Ee(x)).then(x=>{if(x.transactions.length===0)return t(3,M=o("checkPeriod")),Promise.reject(M);x.transactions.length>=T&&(t(16,S.nextPage=!0,S),t(16,S.previousPage=!0,S),t(16,S.pageSize=!0,S)),t(14,ue[R]=[],ue),t(11,Re=!1),oi(x)}).catch(x=>{t(12,Q=!0),t(16,S.nextPage=!1,S),t(16,S.previousPage=!1,S),t(16,S.pageSize=!1,S),window.postMessage({type:"WidgetNotification",data:{type:"error",message:x}},window.location.href)}).finally(()=>{t(10,Ve=!1),t(16,S.filterButton=!0,S)})},ve=_=>{t(5,$=_.target.value)},de=_=>{t(6,b=_.target.value)},Pe=()=>{ce.addEventListener("change",ve,!1),G.addEventListener("change",de,!1)},Se=()=>{S.pageSize&&t(11,Re=!Re)},ot=_=>{t(8,T=_),pe()},Ae=(_,w)=>{if(w==="next"){if(!S.nextPage)return;t(9,ae=_+1),pe()}else{if(!S.previousPage)return;t(9,ae=_-1),pe()}},oi=_=>{_.transactions.forEach((w,x)=>{t(14,ue[R][x]={},ue),kt[R].forEach(D=>{if(E&&g&&we.includes(D))if(D.includes(".")){let ie=D.split(".");w[ie[0]].forEach(Z=>{Z[ie[1]]=rt(Z,ie[1])})}else w[D]=rt(w,D);if(new Date(w[D]).getTime()&&typeof w[D]!="number"&&St(w,D),D.includes(".")){let ie=D.split(".")[0],Z=D.split(".")[1];w[D]={label:"Multiple",submenu:[]},w[ie].forEach((ee,L)=>{ee[Z]&&w[D].submenu.push(ee[Z])})}if(D in w)return t(14,ue[R][x][D]=w[D],ue)})})},We=()=>{if(!k)return;let _={};k.split(",").forEach(w=>{let x=w.split(":");_[x[0].trim()]=x[1].trim()}),Object.entries(_).forEach(([w,x])=>tt[w]=x)},St=(_,w)=>{let x=new Date(_[w]).toISOString().split("T"),D=`${x[0]} ${x[1].split(".")[0]}`;_[w]=D},rt=(_,w)=>{let x=typeof _[w]=="string"?parseInt(_[w]):_[w],D=Object.keys(_).find(Oe=>Oe.includes("currency")),ie=_[D]||g,Z=E;const ee=Z.match(/\{(\d+)decimals\}/),L=ee?parseInt(ee[1],10):2,De=ee?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";x=x.toFixed(L);const[H,nt]=E.includes(".")?[",","."]:[".",","];let[ze,oe]=x.split(".");return ze=ze.replace(/\B(?=(\d{3})+(?!\d))/g,H),x=`${ze}${nt}${oe}`,Z=Z.replace("{currency}",tt[ie]||ie).replace("{amount}",x.split(nt)[0]).replace(De,x.split(nt)[1]),Z},je=_=>t(15,fe[_]=!fe[_],fe),At=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:et},window.location.href)},Ee=_=>ir(this,null,function*(){return _.status>=300?(Pt=yield _.json(),O=Pt.thirdPartyResponse.errorCode,t(3,M=o(O)||o("generalError")),Promise.reject(M)):_.json()});n.onMount(()=>()=>{ce&&ce.removeEventListener("change",ve),G&&G.removeEventListener("change",de)});const Ue=()=>At(),Et=_=>ke(_);function st(_){n.binding_callbacks[_?"unshift":"push"](()=>{ce=_,t(0,ce)})}function ri(_){n.binding_callbacks[_?"unshift":"push"](()=>{G=_,t(1,G)})}const at=()=>pe(),_e=_=>je(_),Te=()=>Ae(ae,"previous"),Tt=()=>Ae(ae,"next"),It=_=>ot(_),si=()=>Se();function Ie(_){n.binding_callbacks[_?"unshift":"push"](()=>{K=_,t(2,K)})}return i.$$set=_=>{"endpoint"in _&&t(28,r=_.endpoint),"playerid"in _&&t(29,s=_.playerid),"session"in _&&t(30,a=_.session),"lang"in _&&t(31,l=_.lang),"clientstyling"in _&&t(32,d=_.clientstyling),"clientstylingurl"in _&&t(33,h=_.clientstylingurl),"translationurl"in _&&t(34,c=_.translationurl),"mbsource"in _&&t(35,u=_.mbsource),"historytypes"in _&&t(36,m=_.historytypes),"pagesizeoptions"in _&&t(37,p=_.pagesizeoptions),"playercurrency"in _&&t(38,g=_.playercurrency),"defaultpagesize"in _&&t(39,A=_.defaultpagesize),"formatamount"in _&&t(40,E=_.formatamount),"customcurrencysymbols"in _&&t(41,k=_.customcurrencysymbols)},i.$$.update=()=>{i.$$.dirty[1]&1&&l&&Xa(l),i.$$.dirty[1]&32&&m&&ii(),i.$$.dirty[0]&1879048192&&r&&s&&a&&pe(),i.$$.dirty[1]&1024&&k&&We(),i.$$.dirty[0]&3&&ce&&G&&Pe(),i.$$.dirty[0]&4|i.$$.dirty[1]&2&&d&&K&&n.setClientStyling(K,d),i.$$.dirty[0]&4|i.$$.dirty[1]&4&&h&&K&&n.setClientStylingURL(K,h),i.$$.dirty[0]&4|i.$$.dirty[1]&16&&u&&K&&n.setStreamStyling(K,`${u}.Style`),i.$$.dirty[1]&8&&c&&He()},[ce,G,K,M,V,$,b,R,T,ae,Ve,Re,Q,ne,ue,fe,S,o,le,kt,it,ke,pe,Se,ot,Ae,je,At,r,s,a,l,d,h,c,u,m,p,g,A,E,k,Ue,Et,st,ri,at,_e,Te,Tt,It,si,Ie]}class Ka extends n.SvelteComponent{constructor(e){super(),n.init(this,e,vu,gu,n.safe_not_equal,{endpoint:28,playerid:29,session:30,lang:31,clientstyling:32,clientstylingurl:33,translationurl:34,mbsource:35,historytypes:36,pagesizeoptions:37,playercurrency:38,defaultpagesize:39,formatamount:40,customcurrencysymbols:41},Qc,[-1,-1,-1,-1])}get endpoint(){return this.$$.ctx[28]}set endpoint(e){this.$$set({endpoint:e}),n.flush()}get playerid(){return this.$$.ctx[29]}set playerid(e){this.$$set({playerid:e}),n.flush()}get session(){return this.$$.ctx[30]}set session(e){this.$$set({session:e}),n.flush()}get lang(){return this.$$.ctx[31]}set lang(e){this.$$set({lang:e}),n.flush()}get clientstyling(){return this.$$.ctx[32]}set clientstyling(e){this.$$set({clientstyling:e}),n.flush()}get clientstylingurl(){return this.$$.ctx[33]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),n.flush()}get translationurl(){return this.$$.ctx[34]}set translationurl(e){this.$$set({translationurl:e}),n.flush()}get mbsource(){return this.$$.ctx[35]}set mbsource(e){this.$$set({mbsource:e}),n.flush()}get historytypes(){return this.$$.ctx[36]}set historytypes(e){this.$$set({historytypes:e}),n.flush()}get pagesizeoptions(){return this.$$.ctx[37]}set pagesizeoptions(e){this.$$set({pagesizeoptions:e}),n.flush()}get playercurrency(){return this.$$.ctx[38]}set playercurrency(e){this.$$set({playercurrency:e}),n.flush()}get defaultpagesize(){return this.$$.ctx[39]}set defaultpagesize(e){this.$$set({defaultpagesize:e}),n.flush()}get formatamount(){return this.$$.ctx[40]}set formatamount(e){this.$$set({formatamount:e}),n.flush()}get customcurrencysymbols(){return this.$$.ctx[41]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),n.flush()}}n.create_custom_element(Ka,{endpoint:{},playerid:{},session:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},historytypes:{},pagesizeoptions:{},playercurrency:{},defaultpagesize:{},formatamount:{},customcurrencysymbols:{}},[],[],!0);exports.default=Ka;
|