@everymatrix/player-account-controller-nd 1.86.12 → 1.86.21
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-CxwIjVYg.js → GeneralLogout-BpYAti4c.js} +187 -183
- package/components/{GeneralLogout-BP5hPAT6.cjs → GeneralLogout-CabJYhl_.cjs} +5 -5
- package/components/{GeneralLogout-CUS9XDb_.js → GeneralLogout-DGJFiRsd.js} +200 -196
- package/components/{PlayerAccountBettingHistory-B2nAfK0Y.js → PlayerAccountBettingHistory-C0_O4TZm.js} +1 -1
- package/components/{PlayerAccountBettingHistory-C65k_w7Q.cjs → PlayerAccountBettingHistory-CDhOm69b.cjs} +1 -1
- package/components/{PlayerAccountBettingHistory-C2XbjoY8.js → PlayerAccountBettingHistory-zWrFmsA2.js} +1 -1
- package/components/{PlayerAccountBiometrics-Dtbqt-iX.cjs → PlayerAccountBiometrics-BIfefRH_.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-Bu-kAXJR.js → PlayerAccountBiometrics-BTXL0OBD.js} +1 -1
- package/components/{PlayerAccountBiometrics-C5FfCL63.js → PlayerAccountBiometrics-DC6tVCd4.js} +1 -1
- package/components/{PlayerAccountClosureNd-C2K1iphm.js → PlayerAccountClosureNd-Buh0m0EI.js} +1 -1
- package/components/{PlayerAccountClosureNd-DMtaug1M.js → PlayerAccountClosureNd-C3K84ZGv.js} +1 -1
- package/components/{PlayerAccountClosureNd-B72aQGEp.cjs → PlayerAccountClosureNd-qQb5QSAr.cjs} +1 -1
- package/components/{PlayerAccountControllerNd-DEQBFfCK.js → PlayerAccountControllerNd-1MYIiwhQ.js} +24 -24
- package/components/{PlayerAccountControllerNd-BsdG3S2z.js → PlayerAccountControllerNd-Duld-zp0.js} +24 -24
- package/components/{PlayerAccountControllerNd-BsUkuxZw.cjs → PlayerAccountControllerNd-b21ALSCZ.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-B9ZXnxYx.cjs → PlayerAccountGamingLimits-D7Vqty05.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-DFh_EHFi.js → PlayerAccountGamingLimits-DU1GqER1.js} +2 -2
- package/components/{PlayerAccountGamingLimits-DJ5QEc_Z.js → PlayerAccountGamingLimits-yBgtCI_-.js} +2 -2
- package/components/{PlayerAccountGamingLimitsConfirmationModal-DdWzMIzq.js → PlayerAccountGamingLimitsConfirmationModal-3fDT1m7A.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BJsgUy6x.cjs → PlayerAccountGamingLimitsConfirmationModal-Db9y9UT0.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-DVFHoHN0.js → PlayerAccountGamingLimitsConfirmationModal-Vh46Ng3J.js} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-B_Qn4NHV.js → PlayerAccountGamingLimitsGroupEdit-BVki48xo.js} +4 -4
- package/components/{PlayerAccountGamingLimitsGroupEdit-BkzMzF4_.js → PlayerAccountGamingLimitsGroupEdit-BctoXOic.js} +4 -4
- package/components/{PlayerAccountGamingLimitsGroupEdit-DEIR-hxX.cjs → PlayerAccountGamingLimitsGroupEdit-CjXacuNt.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-CGuL5nCB.js → PlayerAccountGamingLimitsHistory2Nd-6UZfjZVq.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-C9C4ZzaD.cjs → PlayerAccountGamingLimitsHistory2Nd-C0NPtChp.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-CKxG_86-.js → PlayerAccountGamingLimitsHistory2Nd-CxhamvAZ.js} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-BQmLWUmD.js → PlayerAccountGamingLimitsInfoCard-CYlozyQf.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-CVZP5eUD.cjs → PlayerAccountGamingLimitsInfoCard-lRbryLtl.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-BUn4vqax.js → PlayerAccountGamingLimitsInfoCard-pzjpyq_0.js} +4 -4
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-Ckgam1Rw.js → PlayerAccountGamingLimitsPage2Gm16Nd-BLqWB0YR.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-84fi4QDA.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-BMOK5Sl_.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-DkpQ-O9_.js → PlayerAccountGamingLimitsPage2Gm16Nd-BzS2umQE.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-BMLTI-NH.cjs → PlayerAccountGamingLimitsPopup-COhkcQaf.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-t9xn3mpZ.js → PlayerAccountGamingLimitsPopup-Dkr_MS78.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-CSUPvKE8.js → PlayerAccountGamingLimitsPopup-edKMs6Gw.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-DHuWlyNo.js → PlayerAccountGamingLimitsWrapper2Nd-CKXCLcIX.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-B5Jh8P1g.cjs → PlayerAccountGamingLimitsWrapper2Nd-Digfb-B2.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-CzNQFuT1.js → PlayerAccountGamingLimitsWrapper2Nd-xb66PjmE.js} +3 -3
- package/components/PlayerAccountGeneralConfirmationModal-BfjwI9f3.cjs +1 -0
- package/components/{PlayerAccountGeneralConfirmationModal-Ck2-eEAP.js → PlayerAccountGeneralConfirmationModal-Bl2VtnPf.js} +160 -144
- package/components/{PlayerAccountGeneralConfirmationModal-SII29Bah.js → PlayerAccountGeneralConfirmationModal-vMJo4Nfl.js} +163 -147
- package/components/{PlayerAccountMenuNd-BBVfDPrh.js → PlayerAccountMenuNd-DYchXdRU.js} +2 -2
- package/components/{PlayerAccountMenuNd-CG6ygodu.js → PlayerAccountMenuNd-DeermV7e.js} +2 -2
- package/components/{PlayerAccountMenuNd-DnYp94kK.cjs → PlayerAccountMenuNd-DfBW-4HX.cjs} +1 -1
- package/components/{PlayerAccountModal-CG3IPRuD.js → PlayerAccountModal-B7yFjBEV.js} +1 -1
- package/components/{PlayerAccountModal-BxX50c5G.cjs → PlayerAccountModal-DyIiDJCX.cjs} +1 -1
- package/components/{PlayerAccountModal-B0pFGARD.js → PlayerAccountModal-fTcTdoU5.js} +1 -1
- package/components/{PlayerAccountNotifications-ByqmZWal.js → PlayerAccountNotifications-D-huSAhx.js} +1 -1
- package/components/{PlayerAccountNotifications-W3-AZaWS.cjs → PlayerAccountNotifications-D3KJc-M4.cjs} +1 -1
- package/components/{PlayerAccountNotifications-D4C9msYl.js → PlayerAccountNotifications-g5bdbTyg.js} +1 -1
- package/components/{PlayerAccountProductRestriction-4b-yKjFV.js → PlayerAccountProductRestriction-BSsAA_q1.js} +1063 -1056
- package/components/{PlayerAccountProductRestriction-ChaxQNbf.js → PlayerAccountProductRestriction-BedMU2W1.js} +1070 -1063
- package/components/{PlayerAccountProductRestriction-DvbkGejX.cjs → PlayerAccountProductRestriction-D9r5CZOE.cjs} +242 -242
- package/components/{PlayerAccountReviewFrequency-CpSbEDTd.cjs → PlayerAccountReviewFrequency-6vdzPgd4.cjs} +1 -1
- package/components/{PlayerAccountReviewFrequency-BqEm_AJM.js → PlayerAccountReviewFrequency-CnI3gbIs.js} +1 -1
- package/components/{PlayerAccountReviewFrequency-BwnBH_hE.js → PlayerAccountReviewFrequency-D81wF8o-.js} +1 -1
- package/components/{PlayerAccountSelfExclusionNd-BfcUqMtn.js → PlayerAccountSelfExclusionNd-BDeqi9_X.js} +1049 -1042
- package/components/{PlayerAccountSelfExclusionNd-BPVBWDTy.cjs → PlayerAccountSelfExclusionNd-CAowfBaB.cjs} +140 -140
- package/components/{PlayerAccountSelfExclusionNd-BpVVNb9m.js → PlayerAccountSelfExclusionNd-DDs_w4wd.js} +1033 -1026
- package/components/{PlayerAccountTimeout-CyBncduQ.cjs → PlayerAccountTimeout-7Ej1ywa0.cjs} +1 -1
- package/components/{PlayerAccountTimeout-BfW_wShd.js → PlayerAccountTimeout-CGK77zga.js} +412 -423
- package/components/{PlayerAccountTimeout-COJ1gcOJ.js → PlayerAccountTimeout-CwrsytJS.js} +412 -423
- package/components/{PlayerAccountTransactionsHistory-D6hznhne.cjs → PlayerAccountTransactionsHistory-CauX4ejF.cjs} +1 -1
- package/components/{PlayerAccountTransactionsHistory-C9kk3jok.js → PlayerAccountTransactionsHistory-D1hgXl5L.js} +3 -3
- package/components/{PlayerAccountTransactionsHistory-DGtRA6Qw.js → PlayerAccountTransactionsHistory-eg7_cpE_.js} +3 -3
- package/components/{PlayerActiveBonuses-BhvnT2HK.js → PlayerActiveBonuses-CwZ2IgGr.js} +2 -2
- package/components/{PlayerActiveBonuses-CzC3-mjB.cjs → PlayerActiveBonuses-Dm3TsqWq.cjs} +1 -1
- package/components/{PlayerActiveBonuses-BfFO_mw3.js → PlayerActiveBonuses-Ud40kxi1.js} +2 -2
- package/components/{PlayerBonusCard-CWJZYMpn.cjs → PlayerBonusCard-D3RRaRG3.cjs} +1 -1
- package/components/{PlayerBonusCard-BNwQycFf.js → PlayerBonusCard-Dq-yFU7u.js} +2 -2
- package/components/{PlayerBonusCard-B9PEzXGo.js → PlayerBonusCard-r1bU14kJ.js} +2 -2
- package/components/{PlayerBonusHistory-DuMrsO39.js → PlayerBonusHistory-BPCIqQ00.js} +4 -4
- package/components/{PlayerBonusHistory-C8KOtU5O.js → PlayerBonusHistory-CNuuYIwe.js} +4 -4
- package/components/{PlayerBonusHistory-DyfhMZ4I.cjs → PlayerBonusHistory-FT3LQnrk.cjs} +1 -1
- package/components/{PlayerChangePasswordNd-9yvybIre.js → PlayerChangePasswordNd-CedA-IYJ.js} +1 -1
- package/components/{PlayerChangePasswordNd-D0EUsLYh.cjs → PlayerChangePasswordNd-PdozpMfL.cjs} +1 -1
- package/components/{PlayerChangePasswordNd-Chee4J8k.js → PlayerChangePasswordNd-i73sPLTr.js} +1 -1
- package/components/{PlayerDeposit-CpmRDJGS.cjs → PlayerDeposit-BMiKdbNV.cjs} +1 -1
- package/components/{PlayerDeposit-C7IJgwby.js → PlayerDeposit-Djngez6B.js} +1 -1
- package/components/{PlayerDeposit-CwoUllMs.js → PlayerDeposit-nrVbCjBV.js} +1 -1
- package/components/{PlayerGamingHistory-Cr78Yg0P.js → PlayerGamingHistory-VSSnFY9r.js} +4 -4
- package/components/{PlayerGamingHistory-Cx0cPKAN.js → PlayerGamingHistory-blDAmWs1.js} +4 -4
- package/components/{PlayerGamingHistory-D4g-pRu-.cjs → PlayerGamingHistory-iCjvte3Q.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-BQx068nU.cjs → PlayerPendingWithdrawals-Adf-S-0n.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-5anqDeGy.js → PlayerPendingWithdrawals-Bz3ZtSgm.js} +1 -1
- package/components/{PlayerPendingWithdrawals-DBqKX5cM.js → PlayerPendingWithdrawals-DHJIPkMk.js} +1 -1
- package/components/{PlayerProfileInfo-CiY2o3W7.cjs → PlayerProfileInfo-BOaf_vQJ.cjs} +1 -1
- package/components/{PlayerProfileInfo-DfHi-TRf.js → PlayerProfileInfo-CSV69iT5.js} +1 -1
- package/components/{PlayerProfileInfo-C_RgieOJ.js → PlayerProfileInfo-DSkYeQ9F.js} +1 -1
- package/components/{PlayerRealityCheck-BtzmuqLM.js → PlayerRealityCheck-CCEX1RBa.js} +1 -1
- package/components/{PlayerRealityCheck-CeIc2L5G.cjs → PlayerRealityCheck-D9_TyV9_.cjs} +1 -1
- package/components/{PlayerRealityCheck-BJGv0kil.js → PlayerRealityCheck-Dav2-cJj.js} +1 -1
- package/components/{PlayerTransactionHistory-Djux11Bf.js → PlayerTransactionHistory-BnjNXU_B.js} +1 -1
- package/components/{PlayerTransactionHistory-NtPab0Hw.cjs → PlayerTransactionHistory-CzAXZ_UN.cjs} +1 -1
- package/components/{PlayerTransactionHistory-B7GuBckx.js → PlayerTransactionHistory-DDFTzJx-.js} +1 -1
- package/components/{PlayerWithdrawal-YXqeKdHw.cjs → PlayerWithdrawal-C7i6UasK.cjs} +1 -1
- package/components/{PlayerWithdrawal-CrctPhxY.js → PlayerWithdrawal-_PN7uWwV.js} +1 -1
- package/components/{PlayerWithdrawal-DZzK1nty.js → PlayerWithdrawal-pNXnCSbc.js} +1 -1
- 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/lazy/{general-logout-CfpvABTt.js → general-logout-CKRFkGuO.js} +1 -1
- package/lazy/{general-logout-BJPwdAVl.js → general-logout-DUOo2MKT.js} +1 -1
- package/lazy/{general-logout-CWZwCQae.cjs → general-logout-DdTvMvkn.cjs} +1 -1
- package/lazy/{pam-change-password-tj_ZsU9F.cjs → pam-change-password-0eE-Ib2B.cjs} +1 -1
- package/lazy/{pam-change-password-vzuF1cjY.js → pam-change-password-DSx2QnOJ.js} +1 -1
- package/lazy/{pam-change-password-CBn7g2Km.js → pam-change-password-uDB27dzg.js} +1 -1
- package/lazy/{player-account-betting-history-DReUmXdv.js → player-account-betting-history-D5twJWX3.js} +1 -1
- package/lazy/{player-account-betting-history-CuQHJqRN.cjs → player-account-betting-history-DlKYro-8.cjs} +1 -1
- package/lazy/{player-account-betting-history-sQnF-Ypt.js → player-account-betting-history-cM0-gjK2.js} +1 -1
- package/lazy/{player-account-biometrics-BnISB1-i.cjs → player-account-biometrics-BmzAuyNo.cjs} +1 -1
- package/lazy/{player-account-biometrics-721cebUg.js → player-account-biometrics-CbqoivRz.js} +1 -1
- package/lazy/{player-account-biometrics-BeE7KH6i.js → player-account-biometrics-DSdajU6F.js} +1 -1
- package/lazy/{player-account-closure-nd-BnC_Yu5d.js → player-account-closure-nd-CeyWuPcL.js} +1 -1
- package/lazy/{player-account-closure-nd-wabXS_E0.js → player-account-closure-nd-Cq1KJ0af.js} +1 -1
- package/lazy/{player-account-closure-nd-D5efQ1z_.cjs → player-account-closure-nd-Kp5scGGo.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-Du_klcoX.js → player-account-gaming-limits-C1SdFxAQ.js} +1 -1
- package/lazy/{player-account-gaming-limits-BeZF1hRE.cjs → player-account-gaming-limits-DtFbmD_W.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-confirmation-modal-DHXcQ95A.cjs → player-account-gaming-limits-confirmation-modal-BdbfEsBn.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-confirmation-modal-CYptcZYa.js → player-account-gaming-limits-confirmation-modal-CqWD4nTq.js} +1 -1
- package/lazy/{player-account-gaming-limits-confirmation-modal-DjKG6oIr.js → player-account-gaming-limits-confirmation-modal-mNLOA6Op.js} +1 -1
- package/lazy/{player-account-gaming-limits-group-edit-DUE2MKhN.cjs → player-account-gaming-limits-group-edit-BXHQNeDR.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-group-edit-CGiY4RjA.js → player-account-gaming-limits-group-edit-CPbhJf63.js} +1 -1
- package/lazy/{player-account-gaming-limits-group-edit-Vjq70XQp.js → player-account-gaming-limits-group-edit-DJRcm_3n.js} +1 -1
- package/lazy/{player-account-gaming-limits-history-2-nd-1JO_ELTu.js → player-account-gaming-limits-history-2-nd-C9dHDDqr.js} +1 -1
- package/lazy/{player-account-gaming-limits-history-2-nd-D8li-uMt.cjs → player-account-gaming-limits-history-2-nd-DaleQI1O.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-history-2-nd-Bj37TpGS.js → player-account-gaming-limits-history-2-nd-jzW47t2D.js} +1 -1
- package/lazy/{player-account-gaming-limits-info-card-BwZpFttA.js → player-account-gaming-limits-info-card-B9rNxHI6.js} +1 -1
- package/lazy/{player-account-gaming-limits-info-card-WY_A3d0B.js → player-account-gaming-limits-info-card-CY0uUZ_L.js} +1 -1
- package/lazy/{player-account-gaming-limits-info-card-ByVqlAbm.cjs → player-account-gaming-limits-info-card-D_paLKYW.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-C0WcMqN0.js → player-account-gaming-limits-nRgLoAyh.js} +1 -1
- package/lazy/{player-account-gaming-limits-page-2-gm16-nd-cYsHruBh.js → player-account-gaming-limits-page-2-gm16-nd-ARxCbfDM.js} +1 -1
- package/lazy/{player-account-gaming-limits-page-2-gm16-nd-Bn3HyRuF.cjs → player-account-gaming-limits-page-2-gm16-nd-DIv2wAiQ.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-page-2-gm16-nd-BsWTqjQw.js → player-account-gaming-limits-page-2-gm16-nd-DqN5TAVs.js} +1 -1
- package/lazy/{player-account-gaming-limits-popup-DszLLCCO.cjs → player-account-gaming-limits-popup--U0ySglo.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-popup-DduHY9jJ.js → player-account-gaming-limits-popup-Btp5tteK.js} +1 -1
- package/lazy/{player-account-gaming-limits-popup-Bey6wDbf.js → player-account-gaming-limits-popup-DB_oRqui.js} +1 -1
- package/lazy/{player-account-gaming-limits-wrapper-2-nd-eAjeeYgg.js → player-account-gaming-limits-wrapper-2-nd-BQp8lEDs.js} +1 -1
- package/lazy/{player-account-gaming-limits-wrapper-2-nd-Dj_teY1R.js → player-account-gaming-limits-wrapper-2-nd-BXNpTJA8.js} +1 -1
- package/lazy/{player-account-gaming-limits-wrapper-2-nd-BdmstXOJ.cjs → player-account-gaming-limits-wrapper-2-nd-CUIjYdwG.cjs} +1 -1
- package/lazy/{player-account-general-confirmation-modal-CAhffuwK.cjs → player-account-general-confirmation-modal-B0OaRcZO.cjs} +1 -1
- package/lazy/{player-account-general-confirmation-modal-CCg9OrM8.js → player-account-general-confirmation-modal-DIPQMnVq.js} +1 -1
- package/lazy/{player-account-general-confirmation-modal-FSUN_SQI.js → player-account-general-confirmation-modal-DxR93csh.js} +1 -1
- package/lazy/{player-account-menu-nd-FOqPTfaD.js → player-account-menu-nd-B5OGmV8X.js} +1 -1
- package/lazy/{player-account-menu-nd-C2pXd078.js → player-account-menu-nd-BMVKut5Y.js} +1 -1
- package/lazy/{player-account-menu-nd-DpBeGpgZ.cjs → player-account-menu-nd-C0lCBkPn.cjs} +1 -1
- package/lazy/{player-account-modal-B6GGwYUW.js → player-account-modal-B-cfE8ua.js} +1 -1
- package/lazy/{player-account-modal-CyVW9EJH.cjs → player-account-modal-BXoInGeg.cjs} +1 -1
- package/lazy/{player-account-modal-BkXhugGM.js → player-account-modal-BqeaiWC2.js} +1 -1
- package/lazy/{player-account-notifications-CzVXQ__P.js → player-account-notifications-Be5DM0_5.js} +1 -1
- package/lazy/{player-account-notifications-D5CvWWr-.js → player-account-notifications-DJ18Xmww.js} +1 -1
- package/lazy/{player-account-notifications-EuxQBxdo.cjs → player-account-notifications-Sje-PdYU.cjs} +1 -1
- package/lazy/{player-account-product-restriction-C_vETQcl.js → player-account-product-restriction-BQmsGVkV.js} +1 -1
- package/lazy/{player-account-product-restriction-Cgamy-Yd.cjs → player-account-product-restriction-CdjStD5M.cjs} +1 -1
- package/lazy/{player-account-product-restriction-U394FlIh.js → player-account-product-restriction-Z-56DrY9.js} +1 -1
- package/lazy/{player-account-review-frequency-DzR6HQEE.js → player-account-review-frequency-BQuxqbLV.js} +1 -1
- package/lazy/{player-account-review-frequency-B4Oq2_D2.cjs → player-account-review-frequency-C6bJUysK.cjs} +1 -1
- package/lazy/{player-account-review-frequency-8srfpprX.js → player-account-review-frequency-rOCAWYKn.js} +1 -1
- package/lazy/{player-account-self-exclusion-nd-Cq7Bdydn.js → player-account-self-exclusion-nd-BJ4h6_98.js} +1 -1
- package/lazy/{player-account-self-exclusion-nd-D-6pwTi4.cjs → player-account-self-exclusion-nd-BuPwW8iZ.cjs} +1 -1
- package/lazy/{player-account-self-exclusion-nd-Ct9QwTaq.js → player-account-self-exclusion-nd-C7xmjRzQ.js} +1 -1
- package/lazy/{player-account-timeout-DF5EDpcf.cjs → player-account-timeout-56rXPQAQ.cjs} +1 -1
- package/lazy/{player-account-timeout-PbYOnnzb.js → player-account-timeout-C9ewM9zn.js} +1 -1
- package/lazy/{player-account-timeout-rIRyEFlc.js → player-account-timeout-DvDmCweN.js} +1 -1
- package/lazy/{player-account-transactions-history-lLj1XyDj.cjs → player-account-transactions-history-BrNfilhK.cjs} +1 -1
- package/lazy/{player-account-transactions-history-Bay_KzYk.js → player-account-transactions-history-C1ov9awB.js} +1 -1
- package/lazy/{player-account-transactions-history-3pZ_PgZn.js → player-account-transactions-history-hBu_1TN6.js} +1 -1
- package/lazy/{player-active-bonuses-CgzZ85uO.js → player-active-bonuses-BvsU338x.js} +1 -1
- package/lazy/{player-active-bonuses-CbI7xQr3.cjs → player-active-bonuses-C5OI5LtI.cjs} +1 -1
- package/lazy/{player-active-bonuses-BAIvN5bg.js → player-active-bonuses-Ccw3HCHR.js} +1 -1
- package/lazy/{player-bonus-card-jF_ftijk.cjs → player-bonus-card-CyAM3TLf.cjs} +1 -1
- package/lazy/{player-bonus-card-8oLrRK1x.js → player-bonus-card-KUgydVMZ.js} +1 -1
- package/lazy/{player-bonus-card-CBQvLGNp.js → player-bonus-card-KcinMPC7.js} +1 -1
- package/lazy/{player-bonus-history-C5ZNeBsU.js → player-bonus-history-B6Axa7q9.js} +1 -1
- package/lazy/{player-bonus-history-htLopwqf.cjs → player-bonus-history-Br7eaOww.cjs} +1 -1
- package/lazy/{player-bonus-history-pxi4DVqF.js → player-bonus-history-DKLho6fi.js} +1 -1
- package/lazy/{player-change-password-nd-D-zCmsiv.js → player-change-password-nd-BqvFMpEt.js} +1 -1
- package/lazy/{player-change-password-nd-DP6de2qG.js → player-change-password-nd-Ci__hZc6.js} +1 -1
- package/lazy/{player-change-password-nd-Cy8hKsmO.cjs → player-change-password-nd-DoxPo46-.cjs} +1 -1
- package/lazy/{player-deposit-Bq_QxvFT.js → player-deposit-DP89JqCY.js} +1 -1
- package/lazy/{player-deposit-Dx0rgGDv.js → player-deposit-DqRrM92V.js} +1 -1
- package/lazy/{player-deposit-5QruKiXs.cjs → player-deposit-Dtrsw1lA.cjs} +1 -1
- package/lazy/{player-gaming-history-CuDujcYz.cjs → player-gaming-history-BYryXSQD.cjs} +1 -1
- package/lazy/{player-gaming-history-W0d5H7Fb.js → player-gaming-history-DFugciCd.js} +1 -1
- package/lazy/{player-gaming-history-CNMJ6XKJ.js → player-gaming-history-LeWm1PXO.js} +1 -1
- package/lazy/{player-pending-withdrawals-B3xn6bv0.cjs → player-pending-withdrawals-79bMxhaa.cjs} +1 -1
- package/lazy/{player-pending-withdrawals-CuvNjPD3.js → player-pending-withdrawals-B-jjk8AA.js} +1 -1
- package/lazy/{player-pending-withdrawals-gxs3Q5Z5.js → player-pending-withdrawals-DQT7wFh-.js} +1 -1
- package/lazy/{player-profile-info-t6R7cG-r.js → player-profile-info-B16vJ2eW.js} +1 -1
- package/lazy/{player-profile-info-C9dUlHhe.cjs → player-profile-info-DIEZWuXa.cjs} +1 -1
- package/lazy/{player-profile-info-C_oe_VEG.js → player-profile-info-DYS3JY6A.js} +1 -1
- package/lazy/{player-reality-check-d3Wz8qtH.js → player-reality-check-8hVnLP7F.js} +1 -1
- package/lazy/{player-reality-check-DOMQ0jX8.cjs → player-reality-check-Au8og8hl.cjs} +1 -1
- package/lazy/{player-reality-check-CFPktONw.js → player-reality-check-ncf7pElT.js} +1 -1
- package/lazy/{player-transaction-history-hRM5mak8.js → player-transaction-history-BXISOPoF.js} +1 -1
- package/lazy/{player-transaction-history-aUV53uTV.js → player-transaction-history-D5MvdObX.js} +1 -1
- package/lazy/{player-transaction-history-DV01YPAY.cjs → player-transaction-history-NFSIfQcd.cjs} +1 -1
- package/lazy/{player-withdrawal-hgVUF5Qa.js → player-withdrawal-AafI8FCq.js} +1 -1
- package/lazy/{player-withdrawal-aF3uLX3P.js → player-withdrawal-C58iwTt_.js} +1 -1
- package/lazy/{player-withdrawal-CsKQidl-.cjs → player-withdrawal-DlZgjMOh.cjs} +1 -1
- package/package.json +1 -1
- package/stencil/{checkbox-group-input_16-DWTo-wQ2.js → checkbox-group-input_16-BZXsZMJn.js} +4 -4
- package/stencil/{checkbox-group-input_16-CVuk-NWX.js → checkbox-group-input_16-DKp17UOv.js} +4 -4
- package/stencil/{checkbox-group-input_16-FxHiIgL_.cjs → checkbox-group-input_16-DcODPsoP.cjs} +2 -2
- package/stencil/{pam-change-password-6b535bd5-Cd9HHB3s.js → pam-change-password-6b535bd5-BzThibQh.js} +1 -1
- package/stencil/{pam-change-password-6b535bd5-LRcb-okk.cjs → pam-change-password-6b535bd5-CBzZlE5Q.cjs} +1 -1
- package/stencil/{pam-change-password-6b535bd5-DrvAnMDD.js → pam-change-password-6b535bd5-SNsM5TS2.js} +1 -1
- package/stencil/{pam-change-password-BxkMkuAa.js → pam-change-password-CAj1fksE.js} +2 -2
- package/stencil/{pam-change-password-CHrfle9b.cjs → pam-change-password-D_--zaVn.cjs} +1 -1
- package/stencil/{pam-change-password-BoT-9KxL.js → pam-change-password-fliOS_R9.js} +2 -2
- package/components/PlayerAccountGeneralConfirmationModal-DaaGKltj.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var un=Object.defineProperty,pn=Object.defineProperties;var mn=Object.getOwnPropertyDescriptors;var Xi=Object.getOwnPropertySymbols;var _n=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable;var Zi=(i,e,t)=>e in i?un(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qi=(i,e)=>{for(var t in e||(e={}))_n.call(e,t)&&Zi(i,t,e[t]);if(Xi)for(var t of Xi(e))fn.call(e,t)&&Zi(i,t,e[t]);return i},er=(i,e)=>pn(i,mn(e));var tr=(i,e,t)=>new Promise((o,r)=>{var s=l=>{try{n(t.next(l))}catch(c){r(c)}},a=l=>{try{n(t.throw(l))}catch(c){r(c)}},n=l=>l.done?o(l.value):Promise.resolve(l.value).then(s,a);n((t=t.apply(i,e)).next())});const d=require("./GeneralLogout-CabJYhl_.cjs");require("../stencil/ui-skeleton-Bp-l1XOX.cjs");require("../lazy/player-account-modal-BXoInGeg.cjs");require("../lazy/player-account-general-confirmation-modal-B0OaRcZO.cjs");var ds={exports:{}};(function(i,e){(function(t,o){i.exports=o()})(d.commonjsGlobal,function(){var t=1e3,o=6e4,r=36e5,s="millisecond",a="second",n="minute",l="hour",c="day",h="week",u="month",_="quarter",p="year",x="date",P="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,N={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(k){var b=["th","st","nd","rd"],f=k%100;return"["+k+(b[(f-20)%10]||b[f]||b[0])+"]"}},L=function(k,b,f){var y=String(k);return!y||y.length>=b?k:""+Array(b+1-y.length).join(f)+k},ee={s:L,z:function(k){var b=-k.utcOffset(),f=Math.abs(b),y=Math.floor(f/60),v=f%60;return(b<=0?"+":"-")+L(y,2,"0")+":"+L(v,2,"0")},m:function k(b,f){if(b.date()<f.date())return-k(f,b);var y=12*(f.year()-b.year())+(f.month()-b.month()),v=b.clone().add(y,u),S=f-v<0,E=b.clone().add(y+(S?-1:1),u);return+(-(y+(f-v)/(S?v-E:E-v))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:u,y:p,w:h,d:c,D:x,h:l,m:n,s:a,ms:s,Q:_}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},H="en",I={};I[H]=N;var he="$isDayjsObject",oe=function(k){return k instanceof de||!(!k||!k[he])},le=function k(b,f,y){var v;if(!b)return H;if(typeof b=="string"){var S=b.toLowerCase();I[S]&&(v=S),f&&(I[S]=f,v=S);var E=b.split("-");if(!v&&E.length>1)return k(E[0])}else{var M=b.name;I[M]=b,v=M}return!y&&v&&(H=v),v||!y&&H},G=function(k,b){if(oe(k))return k.clone();var f=typeof b=="object"?b:{};return f.date=k,f.args=arguments,new de(f)},D=ee;D.l=le,D.i=oe,D.w=function(k,b){return G(k,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var de=function(){function k(f){this.$L=le(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[he]=!0}var b=k.prototype;return b.parse=function(f){this.$d=function(y){var v=y.date,S=y.utc;if(v===null)return new Date(NaN);if(D.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var E=v.match(A);if(E){var M=E[2]-1||0,W=(E[7]||"0").substring(0,3);return S?new Date(Date.UTC(E[1],M,E[3]||1,E[4]||0,E[5]||0,E[6]||0,W)):new Date(E[1],M,E[3]||1,E[4]||0,E[5]||0,E[6]||0,W)}}return new Date(v)}(f),this.init()},b.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},b.$utils=function(){return D},b.isValid=function(){return this.$d.toString()!==P},b.isSame=function(f,y){var v=G(f);return this.startOf(y)<=v&&v<=this.endOf(y)},b.isAfter=function(f,y){return G(f)<this.startOf(y)},b.isBefore=function(f,y){return this.endOf(y)<G(f)},b.$g=function(f,y,v){return D.u(f)?this[y]:this.set(v,f)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(f,y){var v=this,S=!!D.u(y)||y,E=D.p(f),M=function(K,j){var pe=D.w(v.$u?Date.UTC(v.$y,j,K):new Date(v.$y,j,K),v);return S?pe:pe.endOf(c)},W=function(K,j){return D.w(v.toDate()[K].apply(v.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(j)),v)},Y=this.$W,J=this.$M,X=this.$D,Ce="set"+(this.$u?"UTC":"");switch(E){case p:return S?M(1,0):M(31,11);case u:return S?M(1,J):M(0,J+1);case h:var te=this.$locale().weekStart||0,ue=(Y<te?Y+7:Y)-te;return M(S?X-ue:X+(6-ue),J);case c:case x:return W(Ce+"Hours",0);case l:return W(Ce+"Minutes",1);case n:return W(Ce+"Seconds",2);case a:return W(Ce+"Milliseconds",3);default:return this.clone()}},b.endOf=function(f){return this.startOf(f,!1)},b.$set=function(f,y){var v,S=D.p(f),E="set"+(this.$u?"UTC":""),M=(v={},v[c]=E+"Date",v[x]=E+"Date",v[u]=E+"Month",v[p]=E+"FullYear",v[l]=E+"Hours",v[n]=E+"Minutes",v[a]=E+"Seconds",v[s]=E+"Milliseconds",v)[S],W=S===c?this.$D+(y-this.$W):y;if(S===u||S===p){var Y=this.clone().set(x,1);Y.$d[M](W),Y.init(),this.$d=Y.set(x,Math.min(this.$D,Y.daysInMonth())).$d}else M&&this.$d[M](W);return this.init(),this},b.set=function(f,y){return this.clone().$set(f,y)},b.get=function(f){return this[D.p(f)]()},b.add=function(f,y){var v,S=this;f=Number(f);var E=D.p(y),M=function(J){var X=G(S);return D.w(X.date(X.date()+Math.round(J*f)),S)};if(E===u)return this.set(u,this.$M+f);if(E===p)return this.set(p,this.$y+f);if(E===c)return M(1);if(E===h)return M(7);var W=(v={},v[n]=o,v[l]=r,v[a]=t,v)[E]||1,Y=this.$d.getTime()+f*W;return D.w(Y,this)},b.subtract=function(f,y){return this.add(-1*f,y)},b.format=function(f){var y=this,v=this.$locale();if(!this.isValid())return v.invalidDate||P;var S=f||"YYYY-MM-DDTHH:mm:ssZ",E=D.z(this),M=this.$H,W=this.$m,Y=this.$M,J=v.weekdays,X=v.months,Ce=v.meridiem,te=function(j,pe,we,ie){return j&&(j[pe]||j(y,S))||we[pe].slice(0,ie)},ue=function(j){return D.s(M%12||12,j,"0")},K=Ce||function(j,pe,we){var ie=j<12?"AM":"PM";return we?ie.toLowerCase():ie};return S.replace(B,function(j,pe){return pe||function(we){switch(we){case"YY":return String(y.$y).slice(-2);case"YYYY":return D.s(y.$y,4,"0");case"M":return Y+1;case"MM":return D.s(Y+1,2,"0");case"MMM":return te(v.monthsShort,Y,X,3);case"MMMM":return te(X,Y);case"D":return y.$D;case"DD":return D.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return te(v.weekdaysMin,y.$W,J,2);case"ddd":return te(v.weekdaysShort,y.$W,J,3);case"dddd":return J[y.$W];case"H":return String(M);case"HH":return D.s(M,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return K(M,W,!0);case"A":return K(M,W,!1);case"m":return String(W);case"mm":return D.s(W,2,"0");case"s":return String(y.$s);case"ss":return D.s(y.$s,2,"0");case"SSS":return D.s(y.$ms,3,"0");case"Z":return E}return null}(j)||E.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(f,y,v){var S,E=this,M=D.p(y),W=G(f),Y=(W.utcOffset()-this.utcOffset())*o,J=this-W,X=function(){return D.m(E,W)};switch(M){case p:S=X()/12;break;case u:S=X();break;case _:S=X()/3;break;case h:S=(J-Y)/6048e5;break;case c:S=(J-Y)/864e5;break;case l:S=J/r;break;case n:S=J/o;break;case a:S=J/t;break;default:S=J}return v?S:D.a(S)},b.daysInMonth=function(){return this.endOf(u).$D},b.$locale=function(){return I[this.$L]},b.locale=function(f,y){if(!f)return this.$L;var v=this.clone(),S=le(f,y,!0);return S&&(v.$L=S),v},b.clone=function(){return D.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},k}(),fe=de.prototype;return G.prototype=fe,[["$ms",s],["$s",a],["$m",n],["$H",l],["$W",c],["$M",u],["$y",p],["$D",x]].forEach(function(k){fe[k[1]]=function(b){return this.$g(b,k[0],k[1])}}),G.extend=function(k,b){return k.$i||(k(b,de,G),k.$i=!0),G},G.locale=le,G.isDayjs=oe,G.unix=function(k){return G(1e3*k)},G.en=I[H],G.Ls=I,G.p={},G})})(ds);var vn=ds.exports;const je=d.getDefaultExportFromCjs(vn);var gn=Object.defineProperty,bn=Object.defineProperties,yn=Object.getOwnPropertyDescriptors,or=Object.getOwnPropertySymbols,xn=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,$o=(i,e,t)=>e in i?gn(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qt=(i,e)=>{for(var t in e||(e={}))xn.call(e,t)&&$o(i,t,e[t]);if(or)for(var t of or(e))wn.call(e,t)&&$o(i,t,e[t]);return i},cs=(i,e)=>bn(i,yn(e)),ce=(i,e,t)=>($o(i,typeof e!="symbol"?e+"":e,t),t),eo=(i,e,t)=>new Promise((o,r)=>{var s=l=>{try{n(t.next(l))}catch(c){r(c)}},a=l=>{try{n(t.throw(l))}catch(c){r(c)}},n=l=>l.done?o(l.value):Promise.resolve(l.value).then(s,a);n((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/
|
|
@@ -6,21 +6,21 @@
|
|
|
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 Cn extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}R(Cn);/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2019 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const Jt=globalThis,
|
|
13
|
+
*/const Jt=globalThis,pi=Jt.ShadowRoot&&(Jt.ShadyCSS===void 0||Jt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mi=Symbol(),ir=new WeakMap;let _i=class{constructor(i,e,t){if(this._$cssResult$=!0,t!==mi)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(pi&&i===void 0){const t=e!==void 0&&e.length===1;t&&(i=ir.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),t&&ir.set(e,i))}return i}toString(){return this.cssText}};const Pn=i=>new _i(typeof i=="string"?i:i+"",void 0,mi),g=(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 _i(t,i,mi)},hs=(i,e)=>{if(pi)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const o=document.createElement("style"),r=Jt.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=t.cssText,i.appendChild(o)}},rr=pi?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const o of e.cssRules)t+=o.cssText;return Pn(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:kn,defineProperty:En,getOwnPropertyDescriptor:An,getOwnPropertyNames:In,getOwnPropertySymbols:Sn,getPrototypeOf:Tn}=Object,st=globalThis,sr=st.trustedTypes,Dn=sr?sr.emptyScript:"",ar=st.reactiveElementPolyfillSupport,yt=(i,e)=>i,jo={toAttribute(i,e){switch(e){case Boolean:i=i?Dn: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}},us=(i,e)=>!kn(i,e),nr={attribute:!0,type:String,converter:jo,reflect:!1,useDefault:!1,hasChanged:us};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),st.litPropertyMetadata!=null||(st.litPropertyMetadata=new WeakMap);class Qe 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=nr){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(e,o,t);r!==void 0&&En(this.prototype,e,r)}}static getPropertyDescriptor(e,t,o){var r;const{get:s,set:a}=(r=An(this.prototype,e))!=null?r:{get(){return this[t]},set(n){this[t]=n}};return{get:s,set(n){const l=s==null?void 0:s.call(this);a==null||a.call(this,n),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:nr}static _$Ei(){if(this.hasOwnProperty(yt("elementProperties")))return;const e=Tn(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(yt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(yt("properties"))){const t=this.properties,o=[...In(t),...Sn(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(rr(r))}else e!==void 0&&t.push(rr(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 hs(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)}_$ET(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:jo).toAttribute(t,r.type);this._$Em=e,a==null?this.removeAttribute(s):this.setAttribute(s,a),this._$Em=null}}_$AK(e,t){var o,r,s;const a=this.constructor,n=a._$Eh.get(e);if(n!==void 0&&this._$Em!==n){const l=a.getPropertyOptions(n),c=typeof l.converter=="function"?{fromAttribute:l.converter}:((o=l.converter)==null?void 0:o.fromAttribute)!==void 0?l.converter:jo;this._$Em=n;const h=c.fromAttribute(t,l.type);this[n]=(s=h!=null?h:(r=this._$Ej)==null?void 0:r.get(n))!=null?s:h,this._$Em=null}}requestUpdate(e,t,o){var r,s;if(e!==void 0){const a=this.constructor,n=this[e];if(o!=null||(o=a.getPropertyOptions(e)),!(((r=o.hasChanged)!=null?r:us)(n,t)||o.useDefault&&o.reflect&&n===((s=this._$Ej)==null?void 0:s.get(e))&&!this.hasAttribute(a._$Eu(e,o))))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:r,wrapped:s},a){var n,l,c;o&&!((n=this._$Ej)!=null?n:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=a!=null?a:t)!=null?l:this[e]),s!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),r===!0&&this._$Em!==e&&((c=this._$Eq)!=null?c:this._$Eq=new Set).add(e))}_$EP(){return eo(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){const{wrapped:n}=a,l=this[s];n!==!0||this._$AL.has(s)||l===void 0||this.C(s,void 0,a,l)}}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._$EM()}catch(r){throw t=!1,this._$EM(),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)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}}var lr;Qe.elementStyles=[],Qe.shadowRootOptions={mode:"open"},Qe[yt("elementProperties")]=new Map,Qe[yt("finalized")]=new Map,ar==null||ar({ReactiveElement:Qe}),((lr=st.reactiveElementVersions)!=null?lr:st.reactiveElementVersions=[]).push("2.1.1");/**
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/const to=globalThis,oo=to.trustedTypes,dr=oo?oo.createPolicy("lit-html",{createHTML:i=>i}):void 0,ps="$lit$",Le=`lit$${Math.random().toFixed(9).slice(2)}$`,ms="?"+Le,
|
|
22
|
-
\f\r]`,ut=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,cr=/-->/g,hr=/>/g,$e=RegExp(`>|${
|
|
23
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ur=/'/g,pr=/"/g,_s=/^(?:script|style|textarea|title)$/i,at=Symbol.for("lit-noChange"),se=Symbol.for("lit-nothing"),mr=new WeakMap,We=Ye.createTreeWalker(Ye,129);function fs(i,e){if(!
|
|
21
|
+
*/const to=globalThis,oo=to.trustedTypes,dr=oo?oo.createPolicy("lit-html",{createHTML:i=>i}):void 0,ps="$lit$",Le=`lit$${Math.random().toFixed(9).slice(2)}$`,ms="?"+Le,zn=`<${ms}>`,Ye=document,wt=()=>Ye.createComment(""),Ct=i=>i===null||typeof i!="object"&&typeof i!="function",fi=Array.isArray,Rn=i=>fi(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Ao=`[
|
|
22
|
+
\f\r]`,ut=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,cr=/-->/g,hr=/>/g,$e=RegExp(`>|${Ao}(?:([^\\s"'>=/]+)(${Ao}*=${Ao}*(?:[^
|
|
23
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ur=/'/g,pr=/"/g,_s=/^(?:script|style|textarea|title)$/i,at=Symbol.for("lit-noChange"),se=Symbol.for("lit-nothing"),mr=new WeakMap,We=Ye.createTreeWalker(Ye,129);function fs(i,e){if(!fi(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return dr!==void 0?dr.createHTML(e):e}const On=(i,e)=>{const t=i.length-1,o=[];let r,s=e===2?"<svg>":e===3?"<math>":"",a=ut;for(let n=0;n<t;n++){const l=i[n];let c,h,u=-1,_=0;for(;_<l.length&&(a.lastIndex=_,h=a.exec(l),h!==null);)_=a.lastIndex,a===ut?h[1]==="!--"?a=cr:h[1]!==void 0?a=hr:h[2]!==void 0?(_s.test(h[2])&&(r=RegExp("</"+h[2],"g")),a=$e):h[3]!==void 0&&(a=$e):a===$e?h[0]===">"?(a=r!=null?r:ut,u=-1):h[1]===void 0?u=-2:(u=a.lastIndex-h[2].length,c=h[1],a=h[3]===void 0?$e:h[3]==='"'?pr:ur):a===pr||a===ur?a=$e:a===cr||a===hr?a=ut:(a=$e,r=void 0);const p=a===$e&&i[n+1].startsWith("/>")?" ":"";s+=a===ut?l+zn:u>=0?(o.push(c),l.slice(0,u)+ps+l.slice(u)+Le+p):l+Le+(u===-2?n:p)}return[fs(i,s+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]};class Pt{constructor({strings:e,_$litType$:t},o){let r;this.parts=[];let s=0,a=0;const n=e.length-1,l=this.parts,[c,h]=On(e,t);if(this.el=Pt.createElement(c,o),We.currentNode=this.el.content,t===2||t===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(r=We.nextNode())!==null&&l.length<n;){if(r.nodeType===1){if(r.hasAttributes())for(const u of r.getAttributeNames())if(u.endsWith(ps)){const _=h[a++],p=r.getAttribute(u).split(Le),x=/([.?@])?(.*)/.exec(_);l.push({type:1,index:s,name:x[2],strings:p,ctor:x[1]==="."?Nn:x[1]==="?"?Ln:x[1]==="@"?Vn:po}),r.removeAttribute(u)}else u.startsWith(Le)&&(l.push({type:6,index:s}),r.removeAttribute(u));if(_s.test(r.tagName)){const u=r.textContent.split(Le),_=u.length-1;if(_>0){r.textContent=oo?oo.emptyScript:"";for(let p=0;p<_;p++)r.append(u[p],wt()),We.nextNode(),l.push({type:2,index:++s});r.append(u[_],wt())}}}else if(r.nodeType===8)if(r.data===ms)l.push({type:2,index:s});else{let u=-1;for(;(u=r.data.indexOf(Le,u+1))!==-1;)l.push({type:7,index:s}),u+=Le.length-1}s++}}static createElement(e,t){const o=Ye.createElement("template");return o.innerHTML=e,o}}function nt(i,e,t=i,o){var r,s,a;if(e===at)return e;let n=o!==void 0?(r=t._$Co)==null?void 0:r[o]:t._$Cl;const l=Ct(e)?void 0:e._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((s=n==null?void 0:n._$AO)==null||s.call(n,!1),l===void 0?n=void 0:(n=new l(i),n._$AT(i,t,o)),o!==void 0?((a=t._$Co)!=null?a:t._$Co=[])[o]=n:t._$Cl=n),n!==void 0&&(e=nt(i,n._$AS(i,e.values),n,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:Ye).importNode(o,!0);We.currentNode=s;let a=We.nextNode(),n=0,l=0,c=r[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new Ot(a,a.nextSibling,this,e):c.type===1?h=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(h=new Fn(a,this,e)),this._$AV.push(h),c=r[++l]}n!==(c==null?void 0:c.index)&&(a=We.nextNode(),n++)}return We.currentNode=Ye,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 Ot{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=se,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=nt(this,e,t),Ct(e)?e===se||e==null||e===""?(this._$AH!==se&&this._$AR(),this._$AH=se):e!==this._$AH&&e!==at&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Rn(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!==se&&Ct(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ye.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=Pt.createElement(fs(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),n=a.u(this.options);a.p(o),this.T(n),this._$AH=a}}_$AC(e){let t=mr.get(e.strings);return t===void 0&&mr.set(e.strings,t=new Pt(e)),t}k(e){fi(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 Ot(this.O(wt()),this.O(wt()),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!==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 po{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,r,s){this.type=1,this._$AH=se,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=se}_$AI(e,t=this,o,r){const s=this.strings;let a=!1;if(s===void 0)e=nt(this,e,t,0),a=!Ct(e)||e!==this._$AH&&e!==at,a&&(this._$AH=e);else{const n=e;let l,c;for(e=s[0],l=0;l<s.length-1;l++)c=nt(this,n[o+l],t,l),c===at&&(c=this._$AH[l]),a||(a=!Ct(c)||c!==this._$AH[l]),c===se?e=se:e!==se&&(e+=(c!=null?c:"")+s[l+1]),this._$AH[l]=c}a&&!r&&this.j(e)}j(e){e===se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Nn extends po{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===se?void 0:e}}class Ln extends po{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==se)}}class Vn extends po{constructor(e,t,o,r,s){super(e,t,o,r,s),this.type=5}_$AI(e,t=this){var o;if((e=(o=nt(this,e,t,0))!=null?o:se)===at)return;const r=this._$AH,s=e===se&&r!==se||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,a=e!==se&&(r===se||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 Fn{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){nt(this,e)}}const _r=to.litHtmlPolyfillSupport;var fr;_r==null||_r(Pt,Ot),((fr=to.litHtmlVersions)!=null?fr:to.litHtmlVersions=[]).push("3.3.1");const vs=(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 n=(r=t==null?void 0:t.renderBefore)!=null?r:null;s._$litPart$=a=new Ot(e.insertBefore(wt(),n),n,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
|
|
@@ -32,17 +32,17 @@
|
|
|
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 gs=[],
|
|
36
|
-
`)}const io="vaadin-themable-mixin-style";function
|
|
35
|
+
*/const gs=[],Wo=new Set,vi=new Set;function bs(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Bn(i){return bs(customElements.get(i))}function Hn(i=[]){return[i].flat(1/0).filter(e=>e instanceof _i?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function ys(i,e){return(i||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function xs(i){return i.map(e=>e.cssText).join(`
|
|
36
|
+
`)}const io="vaadin-themable-mixin-style";function $n(i,e){const t=document.createElement("style");t.id=io,t.textContent=xs(i),e.content.appendChild(t)}function jn(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof et)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),hs(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(io),o=e.prototype._template;t.textContent=o.content.getElementById(io).textContent}}function Wn(i){Wo.forEach(e=>{const t=e.deref();t instanceof i?jn(t):t||Wo.delete(e)})}function ws(i){if(i.prototype instanceof et)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(io).textContent=xs(i.getStylesForThis())}vi.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&ws(t)})}function qn(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=Hn(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):gs.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&vi.forEach(o=>{if(ys(i,o)&&Bn(o)){const r=customElements.get(o);qn(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".`),ws(r),Wn(r)}})}function qo(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():gs}function Un(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function Cs(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const o=qo().find(r=>r.moduleId===t);o?e.push(...Cs(o),...o.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function Yn(i){const e=`${i}-default-theme`,t=qo().filter(o=>o.moduleId!==e&&ys(o.themeFor,i)).map(o=>cs(Qt({},o),{styles:[...Cs(o),...o.styles],includePriority:Un(o.moduleId)})).sort((o,r)=>r.includePriority-o.includePriority);return t.length>0?t:qo().filter(o=>o.moduleId===e)}const U=i=>class extends mo(i){constructor(){super(),Wo.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&vi.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||bs(this)||$n(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,...Yn(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)},dt=(i,...e)=>{
|
|
40
|
+
*/const Kn=(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)},dt=(i,...e)=>{Kn(`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 Gn=g`
|
|
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
|
-
`;dt("color-props",
|
|
130
|
+
`;dt("color-props",Gn);const Jn=g`
|
|
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("",Jn,{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 Xn=g`
|
|
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
|
-
`;dt("font-icons",
|
|
305
|
+
`;dt("font-icons",Xn);/**
|
|
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 Zn=g`
|
|
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
|
-
`;dt("sizing-props",
|
|
324
|
+
`;dt("sizing-props",Zn);/**
|
|
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 Qn=g`
|
|
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
|
-
`;dt("spacing-props",
|
|
351
|
+
`;dt("spacing-props",Qn);/**
|
|
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 el=g`
|
|
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
|
-
`;dt("style-props",
|
|
455
|
+
`;dt("style-props",el);/**
|
|
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 tl=g`
|
|
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
|
+
`,ol=g`
|
|
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("",ol,{moduleId:"lumo-typography"});dt("typography-props",tl);C("vaadin-checkbox",g`
|
|
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 il=/(url\()([^)]*)(\))/g,rl=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,$t,ge;function xt(i,e){if(i&&rl.test(i)||i==="//")return i;if($t===void 0){$t=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",$t=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),$t)try{return new URL(i,e).href}catch(t){return i}return ge||(ge=document.implementation.createHTMLDocument("temp"),ge.base=ge.createElement("base"),ge.head.appendChild(ge.base),ge.anchor=ge.createElement("a"),ge.body.appendChild(ge.anchor)),ge.base.href=e,ge.anchor.href=i,ge.anchor.href||i}function gi(i,e){return i.replace(il,function(t,o,r,s){return o+"'"+xt(r.replace(/["']/g,""),e)+"'"+s})}function bi(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 Ps=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const
|
|
899
|
+
*/const Ps=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const sl=Ps&&"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 al=window.Polymer&&window.Polymer.rootPath||bi(document.baseURI||window.location.href),ro=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let so=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,nl=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ks=window.Polymer&&window.Polymer.legacyOptimizations||!1,Es=window.Polymer&&window.Polymer.legacyWarnings||!1,ll=window.Polymer&&window.Polymer.syncInitialRender||!1,Uo=window.Polymer&&window.Polymer.legacyUndefined||!1,dl=window.Polymer&&window.Polymer.orderedComputed||!1,yr=window.Polymer&&window.Polymer.removeNestedTemplates||!1,cl=window.Polymer&&window.Polymer.fastDomIf||!1,xr=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let hl=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 ul=0;const Z=function(i){let e=i.__mixinApplications;e||(e=new WeakMap,i.__mixinApplications=e);let t=ul++;function o(r){let s=r.__mixinSet;if(s&&s[t])return r;let a=e,n=a.get(r);if(!n){n=i(r),a.set(r,n);let l=Object.create(n.__mixinSet||s||null);l[t]=!0,n.__mixinSet=l}return n}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 yi={},As={};function wr(i,e){yi[i]=As[i.toLowerCase()]=e}function Cr(i){return yi[i]||As[i.toLowerCase()]}function pl(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class Et extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let o=Cr(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=xt(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=bi(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(so&&Cr(e)!==void 0)throw wr(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,wr(e,this),pl(this)}}}Et.prototype.modules=yi;customElements.define("dom-module",Et);/**
|
|
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 ml="link[rel=import][type~=css]",_l="include",Pr="shady-unscoped";function Is(i){return Et.import(i)}function kr(i){let e=i.body?i.body:i;const t=gi(e.textContent,i.baseURI),o=document.createElement("style");return o.textContent=t,o}function fl(i){const e=i.trim().split(/\s+/),t=[];for(let o=0;o<e.length;o++)t.push(...vl(e[o]));return t}function vl(i){const e=Is(i);if(!e)return console.warn("Could not find style data in module named",i),[];if(e._styles===void 0){const t=[];t.push(...Ts(e));const o=e.querySelector("template");o&&t.push(...Ss(o,e.assetpath)),e._styles=t}return e._styles}function Ss(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(_l);a&&t.push(...fl(a).filter(function(n,l,c){return c.indexOf(n)===l})),e&&(s.textContent=gi(s.textContent,e)),t.push(s)}i._styles=t}return i._styles}function gl(i){let e=Is(i);return e?Ts(e):[]}function Ts(i){const e=[],t=i.querySelectorAll(ml);for(let o=0;o<t.length;o++){let r=t[o];if(r.import){const s=r.import,a=r.hasAttribute(Pr);if(a&&!s._unscopedStyle){const n=kr(s);n.setAttribute(Pr,""),s._unscopedStyle=n}else s._style||(s._style=kr(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 Yo(i){return i.indexOf(".")>=0}function Ke(i){let e=i.indexOf(".");return e===-1?i:i.slice(0,e)}function Ds(i,e){return i.indexOf(e+".")===0}function At(i,e){return e.indexOf(i+".")===0}function It(i,e,t){return e+t.slice(i.length)}function bl(i,e){return i===e||Ds(i,e)||At(i,e)}function vt(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 zs(i){return Array.isArray(i)?vt(i).split("."):i.toString().split(".")}function _e(i,e,t){let o=i,r=zs(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 Er(i,e,t){let o=i,r=zs(e),s=r[r.length-1];if(r.length>1){for(let a=0;a<r.length-1;a++){let n=r[a];if(o=o[n],!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 ao={},
|
|
947
|
+
*/const ao={},yl=/-[a-z]/g,xl=/([A-Z])/g;function Rs(i){return ao[i]||(ao[i]=i.indexOf("-")<0?i:i.replace(yl,e=>e[1].toUpperCase()))}function _o(i){return ao[i]||(ao[i]=i.replace(xl,"-$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
|
|
955
|
+
*/let wl=0,Os=0,tt=[],Cl=0,Ko=!1,Ms=document.createTextNode("");new window.MutationObserver(Pl).observe(Ms,{characterData:!0});function Pl(){Ko=!1;const i=tt.length;for(let e=0;e<i;e++){let t=tt[e];if(t)try{t()}catch(o){setTimeout(()=>{throw o})}}tt.splice(0,i),Os+=i}const kl={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)}},Ns={run(i){return Ko||(Ko=!0,Ms.textContent=Cl++),tt.push(i),wl++},cancel(i){const e=i-Os;if(e>=0){if(!tt[e])throw new Error("invalid async handle: "+i);tt[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 El=Ns,Ls=Z(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],n=this._shouldPropertyChange(o,r,a);return n&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(o in this.__dataOld)&&(this.__dataOld[o]=a),this.__data[o]=r,this.__dataPending[o]=r),n}_isPropertyPending(o){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(o))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,El.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,n=a&&a[o]||o;this[n]=this._deserializeValue(r,s||this.constructor.typeForProperty(n))}}_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=ne(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 Vs={};let jt=HTMLElement.prototype;for(;jt;){let i=Object.getOwnPropertyNames(jt);for(let e=0;e<i.length;e++)Vs[i[e]]=!0;jt=Object.getPrototypeOf(jt)}const
|
|
971
|
+
*/const Vs={};let jt=HTMLElement.prototype;for(;jt;){let i=Object.getOwnPropertyNames(jt);for(let e=0;e<i.length;e++)Vs[i[e]]=!0;jt=Object.getPrototypeOf(jt)}const Al=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function Il(i,e){if(!Vs[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 Sl=Z(i=>{const e=Ls(i);class t extends e{static createPropertiesForAttributes(){let r=this.observedAttributes;for(let s=0;s<r.length;s++)this.prototype._createPropertyAccessor(Rs(r[s]))}static attributeNameForProperty(r){return _o(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(Al(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(n){a=r}break;case Array:try{a=JSON.parse(r)}catch(n){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){Il(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 Tl={"dom-if":!0,"dom-repeat":!0};let Ar=!1,Ir=!1;function Dl(){if(!Ar){Ar=!0;const i=document.createElement("textarea");i.placeholder="a",Ir=i.placeholder===i.textContent}return Ir}function zl(i){Dl()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const Rl=(()=>{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 Ol(i){let e=i.getAttribute("is");if(e&&Tl[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];Rl(i,t,o),t.removeAttribute(o)}}return i}function Fs(i,e){let t=e.parentInfo&&Fs(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 Ml(i,e,t,o){o.id&&(e[o.id]=t)}function Nl(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 Ll(i,e,t,o){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=o)}function Vl(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 Fl=Z(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,n=o;return n.localName=="template"&&!n.hasAttribute("preserve-content")?a=this._parseTemplateNestedTemplate(n,r,s)||a:n.localName==="slot"&&(r.hasInsertionPoint=!0),zl(n),n.firstChild&&this._parseTemplateChildNodes(n,r,s),n.hasAttributes&&n.hasAttributes()&&(a=this._parseTemplateNodeAttributes(n,r,s)||a),a||s.noted}static _parseTemplateChildNodes(o,r,s){if(!(o.localName==="script"||o.localName==="style"))for(let a=o.firstChild,n=0,l;a;a=l){if(a.localName=="template"&&(a=Ol(a)),l=a.nextSibling,a.nodeType===Node.TEXT_NODE){let h=l;for(;h&&h.nodeType===Node.TEXT_NODE;)a.textContent+=h.textContent,l=h.nextSibling,o.removeChild(h),h=l;if(r.stripWhiteSpace&&!a.textContent.trim()){o.removeChild(a);continue}}let c={parentIndex:n,parentInfo:s};this._parseTemplateNode(a,r,c)&&(c.infoIndex=r.nodeInfoList.push(c)-1),a.parentNode&&n++}}static _parseTemplateNestedTemplate(o,r,s){let a=o,n=this._parseTemplate(a,r);return(n.content=a.content.ownerDocument.createDocumentFragment()).appendChild(a.content),s.templateInfo=n,!0}static _parseTemplateNodeAttributes(o,r,s){let a=!1,n=Array.from(o.attributes);for(let l=n.length-1,c;c=n[l];l--)a=this._parseTemplateNodeAttribute(o,r,s,c.name,c.value)||a;return a}static _parseTemplateNodeAttribute(o,r,s,a,n){return a.slice(0,3)==="on-"?(o.removeAttribute(a),s.events=s.events||[],s.events.push({name:a.slice(3),value:n}),!0):a==="id"?(s.id=n,!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,n=document.importNode(a,!0);n.__noInsertionPoint=!r.hasInsertionPoint;let l=n.nodeList=new Array(s.length);n.$={};for(let c=0,h=s.length,u;c<h&&(u=s[c]);c++){let _=l[c]=Fs(n,u);Ml(this,n.$,_,u),Ll(this,_,u,r),Nl(this,_,u)}return n=n,n}_addMethodEventListenerToNode(o,r,s,a){a=a||o;let n=Vl(a,r,s);return this._addEventListenerToNode(o,r,n),n}_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 St=0;const Tt=[],$={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Bs="__computeInfo",Fl=/[A-Z]/;function Ao(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 n=0;n<s.length;n++)a[n]=s[n]}return o}function gt(i,e,t,o,r,s){if(e){let a=!1;const n=St++;for(let l in t){let c=r?Ke(l):l,h=e[c];if(h)for(let u=0,_=h.length,p;u<_&&(p=h[u]);u++)(!p.info||p.info.lastRun!==n)&&(!r||yi(l,p.trigger))&&(p.info&&(p.info.lastRun=n),p.fn(i,l,t,o,p.info,r,s),a=!0)}return a}return!1}function Bl(i,e,t,o,r,s,a,n){let l=!1,c=a?Ke(o):o,h=e[c];if(h)for(let u=0,_=h.length,p;u<_&&(p=h[u]);u++)(!p.info||p.info.lastRun!==t)&&(!a||yi(o,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(i,o,r,s,p.info,a,n),l=!0);return l}function yi(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&Ds(t,i))||!!(e.wildcard&&At(t,i))}else return!0}function Sr(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 Hl(i,e,t,o,r){let s=i[$.NOTIFY],a,n=St++;for(let c in e)e[c]&&(s&&Bl(i,s,n,c,t,o,r)||r&&$l(i,c,t))&&(a=!0);let l;a&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function $l(i,e,t){let o=Ke(e);if(o!==e){let r=_o(o)+"-changed";return Hs(i,r,t[e],e),!0}return!1}function Hs(i,e,t,o){let r={value:t,queueProperty:!0};o&&(r.path=o),ne(i).dispatchEvent(new CustomEvent(e,{detail:r}))}function jl(i,e,t,o,r,s){let a=(s?Ke(e):e)!=e?e:null,n=a?_e(i,a):i.__data[e];a&&n===void 0&&(n=t[e]),Hs(i,r.eventName,n,a)}function Wl(i,e,t,o,r){let s,a=i.detail,n=a&&a.path;n?(o=It(t,o,n),s=a&&a.value):s=i.currentTarget[t],s=r?!s:s,(!e[$.READ_ONLY]||!e[$.READ_ONLY][o])&&e._setPendingPropertyOrPath(o,s,!0,!!n)&&(!a||!a.queueProperty)&&e._invalidateProperties()}function ql(i,e,t,o,r){let s=i.__data[e];ro&&(s=ro(s,r.attrName,"attribute",i)),i._propertyToAttribute(e,r.attrName,s)}function Ul(i,e,t,o){let r=i[$.COMPUTE];if(r)if(ll){St++;const s=Kl(i),a=[];for(let l in e)Tr(l,r,a,s,o);let n;for(;n=a.shift();)$s(i,"",e,t,n)&&Tr(n.methodInfo,r,a,s,o);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let s=e;for(;gt(i,r,s,t,o);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),s=i.__dataPending,i.__dataPending=null}}const Yl=(i,e,t)=>{let o=0,r=e.length-1,s=-1;for(;o<=r;){const a=o+r>>1,n=t.get(e[a].methodInfo)-t.get(i.methodInfo);if(n<0)o=a+1;else if(n>0)r=a-1;else{s=a;break}}s<0&&(s=r+1),e.splice(s,0,i)},Tr=(i,e,t,o,r)=>{const s=r?Ke(i):i,a=e[s];if(a)for(let n=0;n<a.length;n++){const l=a[n];l.info.lastRun!==St&&(!r||yi(i,l.trigger))&&(l.info.lastRun=St,Yl(l.info,t,o))}};function Kl(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[$.COMPUTE];let{counts:o,ready:r,total:s}=Gl(i),a;for(;a=r.shift();){e.set(a,e.size);const n=t[a];n&&n.forEach(l=>{const c=l.info.methodInfo;--s,--o[c]===0&&r.push(c)})}s!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function Gl(i){const e=i[Bs],t={},o=i[$.COMPUTE],r=[];let s=0;for(let a in e){const n=e[a];s+=t[a]=n.args.filter(l=>!l.literal).length+(n.dynamicFn?1:0)}for(let a in o)e[a]||r.push(a);return{counts:t,ready:r,total:s}}function $s(i,e,t,o,r){let s=Ko(i,e,t,o,r);if(s===Tt)return!1;let a=r.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[a]?i._setPendingProperty(a,s,!0):(i[a]=s,!1)}function Jl(i,e,t){let o=i.__dataLinkedPaths;if(o){let r;for(let s in o){let a=o[s];At(s,e)?(r=It(s,a,e),i._setPendingPropertyOrPath(r,t,!0,!0)):At(a,e)&&(r=It(a,s,e),i._setPendingPropertyOrPath(r,t,!0,!0))}}}function Io(i,e,t,o,r,s,a){t.bindings=t.bindings||[];let n={kind:o,target:r,parts:s,literal:a,isCompound:s.length!==1};if(t.bindings.push(n),td(n)){let{event:c,negate:h}=n.parts[0];n.listenerEvent=c||_o(r)+"-changed",n.listenerNegate=h}let l=e.nodeInfoList.length;for(let c=0;c<n.parts.length;c++){let h=n.parts[c];h.compoundIndex=c,Xl(i,e,n,h,l)}}function Xl(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 n=0;n<s.length;n++){let l=s[n];typeof l=="string"&&(l=Ws(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Zl,info:a,trigger:l})}}}function Zl(i,e,t,o,r,s,a){let n=a[r.index],l=r.binding,c=r.part;if(s&&c.source&&e.length>c.source.length&&l.kind=="property"&&!l.isCompound&&n.__isPropertyEffectsClient&&n.__dataHasAccessor&&n.__dataHasAccessor[l.target]){let h=t[e];e=It(c.source,l.target,e),n._setPendingPropertyOrPath(e,h,!1,!0)&&i._enqueueClient(n)}else{let h=r.evaluator._evaluateBinding(i,c,e,t,o,s);h!==Tt&&Ql(i,n,l,c,h)}}function Ql(i,e,t,o,r){if(r=ed(e,r,t,o),ro&&(r=ro(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[$.READ_ONLY]||!e[$.READ_ONLY][s])&&e._setPendingProperty(s,r)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,s,r)}}function ed(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 td(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function od(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],n=s.bindings;if(n)for(let l=0;l<n.length;l++){let c=n[l];id(a,c),rd(a,i,c)}a.__dataHost=i}}function id(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=ne(i)),i[s]=e.literal)}}function rd(i,e,t){if(t.listenerEvent){let o=t.parts[0];i.addEventListener(t.listenerEvent,function(r){Wl(r,e,t.target,o.source,o.negate)})}}function Dr(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 n=0,l;n<e.args.length&&(l=e.args[n]);n++)l.literal||i._addPropertyEffect(l.rootProperty,t,{fn:o,info:a,trigger:l});return s&&i._addPropertyEffect(e.methodName,t,{fn:o,info:a}),a}function Ko(i,e,t,o,r){let s=i._methodHost||i,a=s[r.methodName];if(a){let n=i._marshalArgs(r.args,e,t);return n===Tt?Tt:a.apply(s,n)}else r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const sd=[],js="(?:[a-zA-Z_$][\\w.:$\\-*]*)",ad="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",nd="(?:'(?:[^'\\\\]|\\\\.)*')",ld='(?:"(?:[^"\\\\]|\\\\.)*")',dd="(?:"+nd+"|"+ld+")",zr="(?:("+js+"|"+ad+"|"+dd+")\\s*)",cd="(?:"+zr+"(?:,\\s*"+zr+")*)",hd="(?:\\(\\s*(?:"+cd+"?)\\)\\s*)",ud="("+js+"\\s*"+hd+"?)",pd="(\\[\\[|{{)\\s*",md="(?:]]|}})",_d="(?:(!)\\s*)?",fd=pd+_d+ud+md,Rr=new RegExp(fd,"g");function Or(i){let e="";for(let t=0;t<i.length;t++){let o=i[t].literal;e+=o||""}return e}function So(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:sd};if(e[2].trim()){let o=e[2].replace(/\\,/g,",").split(",");return vd(o,t)}else return t}return null}function vd(i,e){return e.args=i.map(function(t){let o=Ws(t);return o.literal||(e.static=!1),o},this),e}function Ws(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=Ke(e),t.structured=Uo(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function Mr(i,e,t){let o=_e(i,t);return o===void 0&&(o=e[t]),o}function qs(i,e,t,o){const r={indexSplices:o};qo&&!i._overrideLegacyUndefined&&(e.splices=r),i.notifyPath(t+".splices",r),i.notifyPath(t+".length",e.length),qo&&!i._overrideLegacyUndefined&&(r.indexSplices=[])}function pt(i,e,t,o,r,s){qs(i,e,t,[{index:o,addedCount:r,removed:s,object:e,type:"splice"}])}function gd(i){return i[0].toUpperCase()+i.substring(1)}const xi=X(i=>{const e=Vl(Il(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 $}_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(mt.length){let r=mt[mt.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[$.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==$.READ_ONLY);let n=Ao(this,s,!0)[r];n||(n=this[s][r]=[]),n.push(a)}_removePropertyEffect(r,s,a){let n=Ao(this,s,!0)[r],l=n.indexOf(a);l>=0&&n.splice(l,1)}_hasPropertyEffect(r,s){let a=this[s];return!!(a&&a[r])}_hasReadOnlyEffect(r){return this._hasPropertyEffect(r,$.READ_ONLY)}_hasNotifyEffect(r){return this._hasPropertyEffect(r,$.NOTIFY)}_hasReflectEffect(r){return this._hasPropertyEffect(r,$.REFLECT)}_hasComputedEffect(r){return this._hasPropertyEffect(r,$.COMPUTE)}_setPendingPropertyOrPath(r,s,a,n){if(n||Ke(Array.isArray(r)?r[0]:r)!==r){if(!n){let l=_e(this,r);if(r=Er(this,r,s),!r||!super._shouldPropertyChange(r,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(r,s,a))return Jl(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=ne(r)),r[s]=a)}_setPendingProperty(r,s,a){let n=this.__dataHasPaths&&Uo(r),l=n?this.__dataTemp:this.__data;return this._shouldPropertyChange(r,s,l[r])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),r in this.__dataOld||(this.__dataOld[r]=this.__data[r]),n?this.__dataTemp[r]=s:this.__data[r]=s,this.__dataPending[r]=s,(n||this[$.NOTIFY]&&this[$.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[$.READ_ONLY]||!this[$.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 n=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Ul(this,s,a,n),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,a,n),this._flushClients(),gt(this,this[$.REFLECT],s,a,n),gt(this,this[$.OBSERVE],s,a,n),l&&Hl(this,l,s,a,n),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(r,s,a){this[$.PROPAGATE]&>(this,this[$.PROPAGATE],r,s,a),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,r,s,a)}_runEffectsForTemplate(r,s,a,n){const l=(c,h)=>{gt(this,r.propertyEffects,c,a,h,r.nodeList);for(let u=r.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,c,a,h)};r.runEffects?r.runEffects(l,s,n):l(s,n)}linkPaths(r,s){r=vt(r),s=vt(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[r]=s}unlinkPaths(r){r=vt(r),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[r]}notifySplices(r,s){let a={path:""},n=_e(this,r,a);qs(this,n,a.path,s)}get(r,s){return _e(s||this,r)}set(r,s,a){a?Er(a,r,s):(!this[$.READ_ONLY]||!this[$.READ_ONLY][r])&&this._setPendingPropertyOrPath(r,s,!0)&&this._invalidateProperties()}push(r,...s){let a={path:""},n=_e(this,r,a),l=n.length,c=n.push(...s);return s.length&&pt(this,n,a.path,l,s.length,[]),c}pop(r){let s={path:""},a=_e(this,r,s),n=!!a.length,l=a.pop();return n&&pt(this,a,s.path,a.length,0,[l]),l}splice(r,s,a,...n){let l={path:""},c=_e(this,r,l);s<0?s=c.length-Math.floor(-s):s&&(s=Math.floor(s));let h;return arguments.length===2?h=c.splice(s):h=c.splice(s,a,...n),(n.length||h.length)&&pt(this,c,l.path,s,n.length,h),h}shift(r){let s={path:""},a=_e(this,r,s),n=!!a.length,l=a.shift();return n&&pt(this,a,s.path,0,0,[l]),l}unshift(r,...s){let a={path:""},n=_e(this,r,a),l=n.unshift(...s);return s.length&&pt(this,n,a.path,0,s.length,[]),l}notifyPath(r,s){let a;if(arguments.length==1){let n={path:""};s=_e(this,r,n),a=n.path}else Array.isArray(r)?a=vt(r):a=r;this._setPendingPropertyOrPath(a,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(r,s){this._addPropertyEffect(r,$.READ_ONLY),s&&(this["_set"+gd(r)]=function(a){this._setProperty(r,a)})}_createPropertyObserver(r,s,a){let n={property:r,method:s,dynamicFn:!!a};this._addPropertyEffect(r,$.OBSERVE,{fn:Sr,info:n,trigger:{name:r}}),a&&this._addPropertyEffect(s,$.OBSERVE,{fn:Sr,info:n,trigger:{name:s}})}_createMethodObserver(r,s){let a=So(r);if(!a)throw new Error("Malformed observer expression '"+r+"'");Dr(this,a,$.OBSERVE,Ko,null,s)}_createNotifyingProperty(r){this._addPropertyEffect(r,$.NOTIFY,{fn:jl,info:{eventName:_o(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,$.REFLECT,{fn:ql,info:{attrName:s}})}_createComputedProperty(r,s,a){let n=So(s);if(!n)throw new Error("Malformed computed expression '"+s+"'");const l=Dr(this,n,$.COMPUTE,$s,r,a);Ao(this,Bs)[r]=l}_marshalArgs(r,s,a){const n=this.__data,l=[];for(let c=0,h=r.length;c<h;c++){let{name:u,structured:_,wildcard:p,value:x,literal:P}=r[c];if(!P)if(p){const A=At(u,s),B=Mr(n,a,A?s:u);x={path:A?s:u,value:B,base:A?_e(n,u):B}}else x=_?Mr(n,a,u):n[u];if(qo&&!this._overrideLegacyUndefined&&x===void 0&&r.length>1)return Tt;l[c]=x}return l}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),n=this.__preBoundTemplateInfo==a;if(!n)for(let l in a.propertyEffects)this._createPropertyAccessor(l);if(s)if(a=Object.create(a),a.wasPreBound=n,!this.__templateInfo)this.__templateInfo=a;else{const l=r._parentTemplateInfo||this.__templateInfo,c=l.lastChild;a.parent=l,l.lastChild=a,a.previousSibling=c,c?c.nextSibling=a:l.firstChild=a}else this.__preBoundTemplateInfo=a;return a}static _addTemplatePropertyEffect(r,s,a){let n=r.hostProps=r.hostProps||{};n[s]=!0;let l=r.propertyEffects=r.propertyEffects||{};(l[s]=l[s]||[]).push(a)}_stampTemplate(r,s){s=s||this._bindTemplate(r,!0),mt.push(this);let a=super._stampTemplate(r,s);if(mt.pop(),s.nodeList=a.nodeList,!s.wasPreBound){let n=s.childNodes=[];for(let l=a.firstChild;l;l=l.nextSibling)n.push(l)}return a.templateInfo=s,od(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),a}_removeBoundDom(r){const s=r.templateInfo,{previousSibling:a,nextSibling:n,parent:l}=s;a?a.nextSibling=n:l&&(l.firstChild=n),n?n.previousSibling=a:l&&(l.lastChild=a),s.nextSibling=s.previousSibling=null;let c=s.childNodes;for(let h=0;h<c.length;h++){let u=c[h];ne(ne(u).parentNode).removeChild(u)}}static _parseTemplateNode(r,s,a){let n=e._parseTemplateNode.call(this,r,s,a);if(r.nodeType===Node.TEXT_NODE){let l=this._parseBindings(r.textContent,s);l&&(r.textContent=Or(l)||" ",Io(this,s,a,"text","textContent",l),n=!0)}return n}static _parseTemplateNodeAttribute(r,s,a,n,l){let c=this._parseBindings(l,s);if(c){let h=n,u="property";Fl.test(n)?u="attribute":n[n.length-1]=="$"&&(n=n.slice(0,-1),u="attribute");let _=Or(c);return _&&u=="attribute"&&(n=="class"&&r.hasAttribute("class")&&(_+=" "+r.getAttribute(n)),r.setAttribute(n,_)),u=="attribute"&&h=="disable-upgrade$"&&r.setAttribute(n,""),r.localName==="input"&&h==="value"&&r.setAttribute(h,""),r.removeAttribute(h),u==="property"&&(n=Rs(n)),Io(this,s,a,u,n,c,_),!0}else return e._parseTemplateNodeAttribute.call(this,r,s,a,n,l)}static _parseTemplateNestedTemplate(r,s,a){let n=e._parseTemplateNestedTemplate.call(this,r,s,a);const l=r.parentNode,c=a.templateInfo,h=l.localName==="dom-if",u=l.localName==="dom-repeat";yr&&(h||u)&&(l.removeChild(r),a=a.parentInfo,a.templateInfo=c,a.noted=!0,n=!1);let _=c.hostProps;if(dl&&h)_&&(s.hostProps=Object.assign(s.hostProps||{},_),yr||(a.parentInfo.noted=!0));else{let p="{";for(let x in _){let P=[{mode:p,source:x,dependencies:[x],hostProp:!0}];Io(this,s,a,"property","_host_"+x,P)}}return n}static _parseBindings(r,s){let a=[],n=0,l;for(;(l=Rr.exec(r))!==null;){l.index>n&&a.push({literal:r.slice(n,l.index)});let c=l[1][0],h=!!l[2],u=l[3].trim(),_=!1,p="",x=-1;c=="{"&&(x=u.indexOf("::"))>0&&(p=u.substring(x+2),u=u.substring(0,x),_=!0);let P=So(u),A=[];if(P){let{args:B,methodName:N}=P;for(let Q=0;Q<B.length;Q++){let H=B[Q];H.literal||A.push(H)}let L=s.dynamicFns;(L&&L[N]||P.static)&&(A.push(N),P.dynamicFn=!0)}else A.push(u);a.push({source:u,mode:c,negate:h,customEvent:_,signature:P,dependencies:A,event:p}),n=Rr.lastIndex}if(n&&n<r.length){let c=r.substring(n);c&&a.push({literal:c})}return a.length?a:null}static _evaluateBinding(r,s,a,n,l,c){let h;return s.signature?h=Ko(r,a,n,l,s.signature):a!=s.source?h=_e(r,s.source):c&&Uo(a)?h=_e(r,a):h=r.__data[a],s.negate&&(h=!h),h}}return t}),mt=[];/**
|
|
989
|
+
*/let St=0;const Tt=[],$={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Bs="__computeInfo",Bl=/[A-Z]/;function Io(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 n=0;n<s.length;n++)a[n]=s[n]}return o}function gt(i,e,t,o,r,s){if(e){let a=!1;const n=St++;for(let l in t){let c=r?Ke(l):l,h=e[c];if(h)for(let u=0,_=h.length,p;u<_&&(p=h[u]);u++)(!p.info||p.info.lastRun!==n)&&(!r||xi(l,p.trigger))&&(p.info&&(p.info.lastRun=n),p.fn(i,l,t,o,p.info,r,s),a=!0)}return a}return!1}function Hl(i,e,t,o,r,s,a,n){let l=!1,c=a?Ke(o):o,h=e[c];if(h)for(let u=0,_=h.length,p;u<_&&(p=h[u]);u++)(!p.info||p.info.lastRun!==t)&&(!a||xi(o,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(i,o,r,s,p.info,a,n),l=!0);return l}function xi(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&Ds(t,i))||!!(e.wildcard&&At(t,i))}else return!0}function Sr(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 $l(i,e,t,o,r){let s=i[$.NOTIFY],a,n=St++;for(let c in e)e[c]&&(s&&Hl(i,s,n,c,t,o,r)||r&&jl(i,c,t))&&(a=!0);let l;a&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function jl(i,e,t){let o=Ke(e);if(o!==e){let r=_o(o)+"-changed";return Hs(i,r,t[e],e),!0}return!1}function Hs(i,e,t,o){let r={value:t,queueProperty:!0};o&&(r.path=o),ne(i).dispatchEvent(new CustomEvent(e,{detail:r}))}function Wl(i,e,t,o,r,s){let a=(s?Ke(e):e)!=e?e:null,n=a?_e(i,a):i.__data[e];a&&n===void 0&&(n=t[e]),Hs(i,r.eventName,n,a)}function ql(i,e,t,o,r){let s,a=i.detail,n=a&&a.path;n?(o=It(t,o,n),s=a&&a.value):s=i.currentTarget[t],s=r?!s:s,(!e[$.READ_ONLY]||!e[$.READ_ONLY][o])&&e._setPendingPropertyOrPath(o,s,!0,!!n)&&(!a||!a.queueProperty)&&e._invalidateProperties()}function Ul(i,e,t,o,r){let s=i.__data[e];ro&&(s=ro(s,r.attrName,"attribute",i)),i._propertyToAttribute(e,r.attrName,s)}function Yl(i,e,t,o){let r=i[$.COMPUTE];if(r)if(dl){St++;const s=Gl(i),a=[];for(let l in e)Tr(l,r,a,s,o);let n;for(;n=a.shift();)$s(i,"",e,t,n)&&Tr(n.methodInfo,r,a,s,o);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let s=e;for(;gt(i,r,s,t,o);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),s=i.__dataPending,i.__dataPending=null}}const Kl=(i,e,t)=>{let o=0,r=e.length-1,s=-1;for(;o<=r;){const a=o+r>>1,n=t.get(e[a].methodInfo)-t.get(i.methodInfo);if(n<0)o=a+1;else if(n>0)r=a-1;else{s=a;break}}s<0&&(s=r+1),e.splice(s,0,i)},Tr=(i,e,t,o,r)=>{const s=r?Ke(i):i,a=e[s];if(a)for(let n=0;n<a.length;n++){const l=a[n];l.info.lastRun!==St&&(!r||xi(i,l.trigger))&&(l.info.lastRun=St,Kl(l.info,t,o))}};function Gl(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[$.COMPUTE];let{counts:o,ready:r,total:s}=Jl(i),a;for(;a=r.shift();){e.set(a,e.size);const n=t[a];n&&n.forEach(l=>{const c=l.info.methodInfo;--s,--o[c]===0&&r.push(c)})}s!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function Jl(i){const e=i[Bs],t={},o=i[$.COMPUTE],r=[];let s=0;for(let a in e){const n=e[a];s+=t[a]=n.args.filter(l=>!l.literal).length+(n.dynamicFn?1:0)}for(let a in o)e[a]||r.push(a);return{counts:t,ready:r,total:s}}function $s(i,e,t,o,r){let s=Go(i,e,t,o,r);if(s===Tt)return!1;let a=r.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[a]?i._setPendingProperty(a,s,!0):(i[a]=s,!1)}function Xl(i,e,t){let o=i.__dataLinkedPaths;if(o){let r;for(let s in o){let a=o[s];At(s,e)?(r=It(s,a,e),i._setPendingPropertyOrPath(r,t,!0,!0)):At(a,e)&&(r=It(a,s,e),i._setPendingPropertyOrPath(r,t,!0,!0))}}}function So(i,e,t,o,r,s,a){t.bindings=t.bindings||[];let n={kind:o,target:r,parts:s,literal:a,isCompound:s.length!==1};if(t.bindings.push(n),od(n)){let{event:c,negate:h}=n.parts[0];n.listenerEvent=c||_o(r)+"-changed",n.listenerNegate=h}let l=e.nodeInfoList.length;for(let c=0;c<n.parts.length;c++){let h=n.parts[c];h.compoundIndex=c,Zl(i,e,n,h,l)}}function Zl(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 n=0;n<s.length;n++){let l=s[n];typeof l=="string"&&(l=Ws(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Ql,info:a,trigger:l})}}}function Ql(i,e,t,o,r,s,a){let n=a[r.index],l=r.binding,c=r.part;if(s&&c.source&&e.length>c.source.length&&l.kind=="property"&&!l.isCompound&&n.__isPropertyEffectsClient&&n.__dataHasAccessor&&n.__dataHasAccessor[l.target]){let h=t[e];e=It(c.source,l.target,e),n._setPendingPropertyOrPath(e,h,!1,!0)&&i._enqueueClient(n)}else{let h=r.evaluator._evaluateBinding(i,c,e,t,o,s);h!==Tt&&ed(i,n,l,c,h)}}function ed(i,e,t,o,r){if(r=td(e,r,t,o),ro&&(r=ro(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[$.READ_ONLY]||!e[$.READ_ONLY][s])&&e._setPendingProperty(s,r)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,s,r)}}function td(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 od(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function id(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],n=s.bindings;if(n)for(let l=0;l<n.length;l++){let c=n[l];rd(a,c),sd(a,i,c)}a.__dataHost=i}}function rd(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=ne(i)),i[s]=e.literal)}}function sd(i,e,t){if(t.listenerEvent){let o=t.parts[0];i.addEventListener(t.listenerEvent,function(r){ql(r,e,t.target,o.source,o.negate)})}}function Dr(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 n=0,l;n<e.args.length&&(l=e.args[n]);n++)l.literal||i._addPropertyEffect(l.rootProperty,t,{fn:o,info:a,trigger:l});return s&&i._addPropertyEffect(e.methodName,t,{fn:o,info:a}),a}function Go(i,e,t,o,r){let s=i._methodHost||i,a=s[r.methodName];if(a){let n=i._marshalArgs(r.args,e,t);return n===Tt?Tt:a.apply(s,n)}else r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const ad=[],js="(?:[a-zA-Z_$][\\w.:$\\-*]*)",nd="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",ld="(?:'(?:[^'\\\\]|\\\\.)*')",dd='(?:"(?:[^"\\\\]|\\\\.)*")',cd="(?:"+ld+"|"+dd+")",zr="(?:("+js+"|"+nd+"|"+cd+")\\s*)",hd="(?:"+zr+"(?:,\\s*"+zr+")*)",ud="(?:\\(\\s*(?:"+hd+"?)\\)\\s*)",pd="("+js+"\\s*"+ud+"?)",md="(\\[\\[|{{)\\s*",_d="(?:]]|}})",fd="(?:(!)\\s*)?",vd=md+fd+pd+_d,Rr=new RegExp(vd,"g");function Or(i){let e="";for(let t=0;t<i.length;t++){let o=i[t].literal;e+=o||""}return e}function To(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:ad};if(e[2].trim()){let o=e[2].replace(/\\,/g,",").split(",");return gd(o,t)}else return t}return null}function gd(i,e){return e.args=i.map(function(t){let o=Ws(t);return o.literal||(e.static=!1),o},this),e}function Ws(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=Ke(e),t.structured=Yo(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function Mr(i,e,t){let o=_e(i,t);return o===void 0&&(o=e[t]),o}function qs(i,e,t,o){const r={indexSplices:o};Uo&&!i._overrideLegacyUndefined&&(e.splices=r),i.notifyPath(t+".splices",r),i.notifyPath(t+".length",e.length),Uo&&!i._overrideLegacyUndefined&&(r.indexSplices=[])}function pt(i,e,t,o,r,s){qs(i,e,t,[{index:o,addedCount:r,removed:s,object:e,type:"splice"}])}function bd(i){return i[0].toUpperCase()+i.substring(1)}const wi=Z(i=>{const e=Fl(Sl(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 $}_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(mt.length){let r=mt[mt.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[$.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==$.READ_ONLY);let n=Io(this,s,!0)[r];n||(n=this[s][r]=[]),n.push(a)}_removePropertyEffect(r,s,a){let n=Io(this,s,!0)[r],l=n.indexOf(a);l>=0&&n.splice(l,1)}_hasPropertyEffect(r,s){let a=this[s];return!!(a&&a[r])}_hasReadOnlyEffect(r){return this._hasPropertyEffect(r,$.READ_ONLY)}_hasNotifyEffect(r){return this._hasPropertyEffect(r,$.NOTIFY)}_hasReflectEffect(r){return this._hasPropertyEffect(r,$.REFLECT)}_hasComputedEffect(r){return this._hasPropertyEffect(r,$.COMPUTE)}_setPendingPropertyOrPath(r,s,a,n){if(n||Ke(Array.isArray(r)?r[0]:r)!==r){if(!n){let l=_e(this,r);if(r=Er(this,r,s),!r||!super._shouldPropertyChange(r,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(r,s,a))return Xl(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=ne(r)),r[s]=a)}_setPendingProperty(r,s,a){let n=this.__dataHasPaths&&Yo(r),l=n?this.__dataTemp:this.__data;return this._shouldPropertyChange(r,s,l[r])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),r in this.__dataOld||(this.__dataOld[r]=this.__data[r]),n?this.__dataTemp[r]=s:this.__data[r]=s,this.__dataPending[r]=s,(n||this[$.NOTIFY]&&this[$.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[$.READ_ONLY]||!this[$.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 n=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Yl(this,s,a,n),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,a,n),this._flushClients(),gt(this,this[$.REFLECT],s,a,n),gt(this,this[$.OBSERVE],s,a,n),l&&$l(this,l,s,a,n),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(r,s,a){this[$.PROPAGATE]&>(this,this[$.PROPAGATE],r,s,a),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,r,s,a)}_runEffectsForTemplate(r,s,a,n){const l=(c,h)=>{gt(this,r.propertyEffects,c,a,h,r.nodeList);for(let u=r.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,c,a,h)};r.runEffects?r.runEffects(l,s,n):l(s,n)}linkPaths(r,s){r=vt(r),s=vt(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[r]=s}unlinkPaths(r){r=vt(r),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[r]}notifySplices(r,s){let a={path:""},n=_e(this,r,a);qs(this,n,a.path,s)}get(r,s){return _e(s||this,r)}set(r,s,a){a?Er(a,r,s):(!this[$.READ_ONLY]||!this[$.READ_ONLY][r])&&this._setPendingPropertyOrPath(r,s,!0)&&this._invalidateProperties()}push(r,...s){let a={path:""},n=_e(this,r,a),l=n.length,c=n.push(...s);return s.length&&pt(this,n,a.path,l,s.length,[]),c}pop(r){let s={path:""},a=_e(this,r,s),n=!!a.length,l=a.pop();return n&&pt(this,a,s.path,a.length,0,[l]),l}splice(r,s,a,...n){let l={path:""},c=_e(this,r,l);s<0?s=c.length-Math.floor(-s):s&&(s=Math.floor(s));let h;return arguments.length===2?h=c.splice(s):h=c.splice(s,a,...n),(n.length||h.length)&&pt(this,c,l.path,s,n.length,h),h}shift(r){let s={path:""},a=_e(this,r,s),n=!!a.length,l=a.shift();return n&&pt(this,a,s.path,0,0,[l]),l}unshift(r,...s){let a={path:""},n=_e(this,r,a),l=n.unshift(...s);return s.length&&pt(this,n,a.path,0,s.length,[]),l}notifyPath(r,s){let a;if(arguments.length==1){let n={path:""};s=_e(this,r,n),a=n.path}else Array.isArray(r)?a=vt(r):a=r;this._setPendingPropertyOrPath(a,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(r,s){this._addPropertyEffect(r,$.READ_ONLY),s&&(this["_set"+bd(r)]=function(a){this._setProperty(r,a)})}_createPropertyObserver(r,s,a){let n={property:r,method:s,dynamicFn:!!a};this._addPropertyEffect(r,$.OBSERVE,{fn:Sr,info:n,trigger:{name:r}}),a&&this._addPropertyEffect(s,$.OBSERVE,{fn:Sr,info:n,trigger:{name:s}})}_createMethodObserver(r,s){let a=To(r);if(!a)throw new Error("Malformed observer expression '"+r+"'");Dr(this,a,$.OBSERVE,Go,null,s)}_createNotifyingProperty(r){this._addPropertyEffect(r,$.NOTIFY,{fn:Wl,info:{eventName:_o(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,$.REFLECT,{fn:Ul,info:{attrName:s}})}_createComputedProperty(r,s,a){let n=To(s);if(!n)throw new Error("Malformed computed expression '"+s+"'");const l=Dr(this,n,$.COMPUTE,$s,r,a);Io(this,Bs)[r]=l}_marshalArgs(r,s,a){const n=this.__data,l=[];for(let c=0,h=r.length;c<h;c++){let{name:u,structured:_,wildcard:p,value:x,literal:P}=r[c];if(!P)if(p){const A=At(u,s),B=Mr(n,a,A?s:u);x={path:A?s:u,value:B,base:A?_e(n,u):B}}else x=_?Mr(n,a,u):n[u];if(Uo&&!this._overrideLegacyUndefined&&x===void 0&&r.length>1)return Tt;l[c]=x}return l}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),n=this.__preBoundTemplateInfo==a;if(!n)for(let l in a.propertyEffects)this._createPropertyAccessor(l);if(s)if(a=Object.create(a),a.wasPreBound=n,!this.__templateInfo)this.__templateInfo=a;else{const l=r._parentTemplateInfo||this.__templateInfo,c=l.lastChild;a.parent=l,l.lastChild=a,a.previousSibling=c,c?c.nextSibling=a:l.firstChild=a}else this.__preBoundTemplateInfo=a;return a}static _addTemplatePropertyEffect(r,s,a){let n=r.hostProps=r.hostProps||{};n[s]=!0;let l=r.propertyEffects=r.propertyEffects||{};(l[s]=l[s]||[]).push(a)}_stampTemplate(r,s){s=s||this._bindTemplate(r,!0),mt.push(this);let a=super._stampTemplate(r,s);if(mt.pop(),s.nodeList=a.nodeList,!s.wasPreBound){let n=s.childNodes=[];for(let l=a.firstChild;l;l=l.nextSibling)n.push(l)}return a.templateInfo=s,id(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),a}_removeBoundDom(r){const s=r.templateInfo,{previousSibling:a,nextSibling:n,parent:l}=s;a?a.nextSibling=n:l&&(l.firstChild=n),n?n.previousSibling=a:l&&(l.lastChild=a),s.nextSibling=s.previousSibling=null;let c=s.childNodes;for(let h=0;h<c.length;h++){let u=c[h];ne(ne(u).parentNode).removeChild(u)}}static _parseTemplateNode(r,s,a){let n=e._parseTemplateNode.call(this,r,s,a);if(r.nodeType===Node.TEXT_NODE){let l=this._parseBindings(r.textContent,s);l&&(r.textContent=Or(l)||" ",So(this,s,a,"text","textContent",l),n=!0)}return n}static _parseTemplateNodeAttribute(r,s,a,n,l){let c=this._parseBindings(l,s);if(c){let h=n,u="property";Bl.test(n)?u="attribute":n[n.length-1]=="$"&&(n=n.slice(0,-1),u="attribute");let _=Or(c);return _&&u=="attribute"&&(n=="class"&&r.hasAttribute("class")&&(_+=" "+r.getAttribute(n)),r.setAttribute(n,_)),u=="attribute"&&h=="disable-upgrade$"&&r.setAttribute(n,""),r.localName==="input"&&h==="value"&&r.setAttribute(h,""),r.removeAttribute(h),u==="property"&&(n=Rs(n)),So(this,s,a,u,n,c,_),!0}else return e._parseTemplateNodeAttribute.call(this,r,s,a,n,l)}static _parseTemplateNestedTemplate(r,s,a){let n=e._parseTemplateNestedTemplate.call(this,r,s,a);const l=r.parentNode,c=a.templateInfo,h=l.localName==="dom-if",u=l.localName==="dom-repeat";yr&&(h||u)&&(l.removeChild(r),a=a.parentInfo,a.templateInfo=c,a.noted=!0,n=!1);let _=c.hostProps;if(cl&&h)_&&(s.hostProps=Object.assign(s.hostProps||{},_),yr||(a.parentInfo.noted=!0));else{let p="{";for(let x in _){let P=[{mode:p,source:x,dependencies:[x],hostProp:!0}];So(this,s,a,"property","_host_"+x,P)}}return n}static _parseBindings(r,s){let a=[],n=0,l;for(;(l=Rr.exec(r))!==null;){l.index>n&&a.push({literal:r.slice(n,l.index)});let c=l[1][0],h=!!l[2],u=l[3].trim(),_=!1,p="",x=-1;c=="{"&&(x=u.indexOf("::"))>0&&(p=u.substring(x+2),u=u.substring(0,x),_=!0);let P=To(u),A=[];if(P){let{args:B,methodName:N}=P;for(let ee=0;ee<B.length;ee++){let H=B[ee];H.literal||A.push(H)}let L=s.dynamicFns;(L&&L[N]||P.static)&&(A.push(N),P.dynamicFn=!0)}else A.push(u);a.push({source:u,mode:c,negate:h,customEvent:_,signature:P,dependencies:A,event:p}),n=Rr.lastIndex}if(n&&n<r.length){let c=r.substring(n);c&&a.push({literal:c})}return a.length?a:null}static _evaluateBinding(r,s,a,n,l,c){let h;return s.signature?h=Go(r,a,n,l,s.signature):a!=s.source?h=_e(r,s.source):c&&Yo(a)?h=_e(r,a):h=r.__data[a],s.negate&&(h=!h),h}}return t}),mt=[];/**
|
|
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 yd(i){const e={};for(let t in i){const o=i[t];e[t]=typeof o=="function"?{type:o}:o}return e}const xd=Z(i=>{const e=Ls(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 n=s.properties;n&&(a=yd(n))}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(n=>this.prototype._addPropertyToAttributeMap(n)):[]}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 n=this._properties[a];return n&&n.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
|
|
1015
|
+
*/const wd="3.5.2",Nr=window.ShadyCSS&&window.ShadyCSS.cssBuild,Cd=Z(i=>{const e=xd(wi(i));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let c=l._properties;for(let h in c){let u=c[h];"value"in u&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[h]=u)}}return l.__propertyDefaults}function o(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function r(l,c,h,u){h.computed&&(h.readOnly=!0),h.computed&&(l._hasReadOnlyEffect(c)?console.warn(`Cannot redefine computed property '${c}'.`):l._createComputedProperty(c,h.computed,u)),h.readOnly&&!l._hasReadOnlyEffect(c)?l._createReadOnlyProperty(c,!h.computed):h.readOnly===!1&&l._hasReadOnlyEffect(c)&&console.warn(`Cannot make readOnly property '${c}' non-readOnly.`),h.reflectToAttribute&&!l._hasReflectEffect(c)?l._createReflectedProperty(c):h.reflectToAttribute===!1&&l._hasReflectEffect(c)&&console.warn(`Cannot make reflected property '${c}' non-reflected.`),h.notify&&!l._hasNotifyEffect(c)?l._createNotifyingProperty(c):h.notify===!1&&l._hasNotifyEffect(c)&&console.warn(`Cannot make notify property '${c}' non-notify.`),h.observer&&l._createPropertyObserver(c,h.observer,u[h.observer]),l._addPropertyToAttributeMap(c)}function s(l,c,h,u){if(!Nr){const _=c.content.querySelectorAll("style"),p=Ss(c),x=gl(h),P=c.content.firstElementChild;for(let B=0;B<x.length;B++){let N=x[B];N.textContent=l._processStyleText(N.textContent,u),c.content.insertBefore(N,P)}let A=0;for(let B=0;B<p.length;B++){let N=p[B],L=_[A];L!==N?(N=N.cloneNode(!0),L.parentNode.insertBefore(N,L)):A++,N.textContent=l._processStyleText(N.textContent,u)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(c,h),hl&&Nr&&sl){const _=c.content.querySelectorAll("style");if(_){let p="";Array.from(_).forEach(x=>{p+=x.textContent,x.parentNode.removeChild(x)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p)}}}function a(l){let c=null;if(l&&(!so||nl)&&(c=Et.import(l,"template"),so&&!c))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return c}class n extends e{static get polymerElementVersion(){return wd}static _finalizeClass(){e._finalizeClass.call(this);const c=o(this);c&&this.createObservers(c,this._properties),this._prepareTemplate()}static _prepareTemplate(){let c=this.template;c&&(typeof c=="string"?(console.error("template getter must return HTMLTemplateElement"),c=null):ks||(c=c.cloneNode(!0))),this.prototype._template=c}static createProperties(c){for(let h in c)r(this.prototype,h,c[h],c)}static createObservers(c,h){const u=this.prototype;for(let _=0;_<c.length;_++)u._createMethodObserver(c[_],h)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let c=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof c=="function"&&(c=c()),this._template=c!==void 0?c:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&a(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(c){this._template=c}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const c=this.importMeta;if(c)this._importPath=bi(c.url);else{const h=Et.import(this.is);this._importPath=h&&h.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=al,this.importPath=this.constructor.importPath;let c=t(this.constructor);if(c)for(let h in c){let u=c[h];if(this._canApplyPropertyDefault(h)){let _=typeof u.value=="function"?u.value.call(this):u.value;this._hasAccessor(h)?this._setPendingProperty(h,_,!0):this[h]=_}}}_canApplyPropertyDefault(c){return!this.hasOwnProperty(c)}static _processStyleText(c,h){return gi(c,h)}static _finalizeTemplate(c){const h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;const u=this.importPath,_=u?xt(u):"";s(this,h,c,_),this.prototype._bindTemplate(h)}}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(c){const h=ne(this);if(h.attachShadow)return c?(h.shadowRoot||(h.attachShadow({mode:"open",shadyUpgradeFragment:c}),h.shadowRoot.appendChild(c),this.constructor._styleSheet&&(h.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),ll&&window.ShadyDOM&&window.ShadyDOM.flushInitial(h.shadowRoot),h.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(c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,c)}resolveUrl(c,h){return!h&&this.importPath&&(h=xt(this.importPath)),xt(c,h)}static _parseTemplateContent(c,h,u){return h.dynamicFns=h.dynamicFns||this._properties,e._parseTemplateContent.call(this,c,h,u)}static _addTemplatePropertyEffect(c,h,u){return Es&&!(h in this._properties)&&!(u.info.part.signature&&u.info.part.signature.static)&&!u.info.part.hostProp&&!c.nestedTemplate&&console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,c,h,u)}}return n});/**
|
|
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 Lr=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class Us{constructor(e,t){Ks(e,t);const o=t.reduce((r,s,a)=>r+Ys(s)+e[a+1],e[0]);this.value=o.toString()}toString(){return this.value}}function Ys(i){if(i instanceof Us)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function
|
|
1023
|
+
*/const Lr=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class Us{constructor(e,t){Ks(e,t);const o=t.reduce((r,s,a)=>r+Ys(s)+e[a+1],e[0]);this.value=o.toString()}toString(){return this.value}}function Ys(i){if(i instanceof Us)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function Pd(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof Us)return Ys(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const V=function(i,...e){Ks(i,e);const t=document.createElement("template");let o=e.reduce((r,s,a)=>r+Pd(s)+i[a+1],i[0]);return Lr&&(o=Lr.createHTML(o)),t.innerHTML=o,t},Ks=(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 F=
|
|
1031
|
+
*/const F=Cd(HTMLElement),kd=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Xt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Ed(){function i(){return!0}return Gs(i)}function Ad(){try{return Id()?!0:Sd()?Xt?!Td():!Ed():!1}catch(i){return!1}}function Id(){return localStorage.getItem("vaadin.developmentmode.force")}function Sd(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Td(){return!!(Xt&&Object.keys(Xt).map(i=>Xt[i]).filter(i=>i.productionMode).length>0)}function Gs(i,e){if(typeof i!="function")return;const t=kd.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 Vr=function(i,e){if(window.Vaadin.developmentMode)return Gs(i,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Ad());function Dd(){/*! 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 zd=function(){if(typeof Vr=="function")return Vr(Dd)};/**
|
|
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 Fr=0,Js=0;const ot=[];let
|
|
1517
|
+
*/let Fr=0,Js=0;const ot=[];let Jo=!1;function Rd(){Jo=!1;const i=ot.length;for(let e=0;e<i;e++){const t=ot[e];if(t)try{t()}catch(o){setTimeout(()=>{throw o})}}ot.splice(0,i),Js+=i}const Ve={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)}},Dt={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},Xs={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},no={run(i){Jo||(Jo=!0,queueMicrotask(()=>Rd())),ot.push(i);const e=Fr;return Fr+=1,e},cancel(i){const e=i-Js;if(e>=0){if(!ot[e])throw new Error(`invalid async handle: ${i}`);ot[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 zt=new Set;let be=class
|
|
1525
|
+
*/const zt=new Set;let be=class Xo{static debounce(e,t,o){return e instanceof Xo?e._cancelAsync():e=new Xo,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,zt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),zt.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 Zs(i){zt.add(i)}function Od(){const i=!!zt.size;return zt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i}const bt=()=>{let i;do i=Od();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 Te=[];function
|
|
1529
|
+
*/const Te=[];function Zo(i,e,t=i.getAttribute("dir")){e?i.setAttribute("dir",e):t!=null&&i.removeAttribute("dir")}function Qo(){return document.documentElement.getAttribute("dir")}function Md(){const i=Qo();Te.forEach(e=>{Zo(e,i)})}const Nd=new MutationObserver(Md);Nd.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const ye=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(),Zo(this,Qo(),null))}attributeChangedCallback(e,t,o){if(super.attributeChangedCallback(e,t,o),e!=="dir")return;const r=Qo(),s=o===r&&Te.indexOf(this)===-1,a=!o&&t&&Te.indexOf(this)===-1;s||a?(this.__subscribe(),Zo(this,r,o)):o!==r&&t===r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Te.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(){Te.includes(this)||Te.push(this)}__unsubscribe(){Te.includes(this)&&Te.splice(Te.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(){zd()};let Do;const Br=new Set,xe=i=>class extends ye(i){static finalize(){super.finalize();const{is:e}=this;e&&!Br.has(e)&&(window.Vaadin.registrations.push(this),Br.add(e),window.Vaadin.developmentModeCallback&&(Do=be.debounce(Do,Xs,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Zs(Do)))}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 Ld(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 Qs(i){const e=[];let t;return i.localName==="slot"?t=i.assignedElements():(e.push(i),t=[...i.children]),t.forEach(o=>e.push(...Qs(o))),e}function Ci(i){return i?new Set(i.split(" ")):new Set}function fo(i){return i?[...i].join(" "):""}function ea(i,e,t){const o=Ci(i.getAttribute(e));o.add(t),i.setAttribute(e,fo(o))}function Vd(i,e,t){const o=Ci(i.getAttribute(e));if(o.delete(t),o.size===0){i.removeAttribute(e);return}i.setAttribute(e,fo(o))}function Fd(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 Pi{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 n=e.indexOf(s);n===-1?o.push(s):n!==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 Bd=0;function Mt(){return Bd++}/**
|
|
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 me extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${Mt()}`}constructor(e,t,o,r={}){super();const{initializer:s,multiple:a,observe:n,useUniqueId:l,uniqueIdPrefix:c}=r;this.host=e,this.slotName=t,this.tagName=o,this.observe=typeof n=="boolean"?n:!0,this.multiple=typeof a=="boolean"?a:!1,this.slotInitializer=s,a&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,c||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
|
|
1549
|
+
*/class me extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${Mt()}`}constructor(e,t,o,r={}){super();const{initializer:s,multiple:a,observe:n,useUniqueId:l,uniqueIdPrefix:c}=r;this.host=e,this.slotName=t,this.tagName=o,this.observe=typeof n=="boolean"?n:!0,this.multiple=typeof a=="boolean"?a:!1,this.slotInitializer=s,a&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,c||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 Pi(o,({addedNodes:r,removedNodes:s})=>{const a=this.multiple?this.nodes:[this.node],n=r.filter(l=>!Fd(l)&&!a.includes(l));s.length&&(this.nodes=a.filter(l=>!s.includes(l)),s.forEach(l=>{this.teardownNode(l)})),n&&n.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...a,...n].filter(l=>l!==this.defaultNode),n.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=n[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,27 +1558,27 @@ 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 Hd=i=>i,ta=typeof document.head.style.touchAction=="string",ei="__polymerGestures",zo="__polymerGesturesHandled",ti="__polymerGesturesTouchAction",Hr=25,$r=5,$d=2,jd=["mousedown","mousemove","mouseup","click"],Wd=[0,1,4,2],qd=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function oa(i){return jd.indexOf(i)>-1}let Ud=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){Ud=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();const Yd=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Kd={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ue(i){const e=i.type;if(!oa(e))return!1;if(e==="mousemove"){let t=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!qd&&(t=Wd[i.which]||0),!!(t&1)}return(i.button===void 0?0:i.button)===0}function Gd(i){if(i.type==="click"){if(i.detail===0)return!0;const e=Fe(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 De={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Jd(i){let e="auto";const t=ra(i);for(let o=0,r;o<t.length;o++)if(r=t[o],r[ti]){e=r[ti];break}return e}function ia(i,e,t){i.movefn=e,i.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function it(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const ra=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],ki={},qe=[];function Xd(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 Fe(i){const e=ra(i);return e.length>0?e[0]:i.target}function Zd(i){const e=i.type,t=i.currentTarget[ei];if(!t)return;const o=t[e];if(!o)return;if(!i[zo]&&(i[zo]={},e.startsWith("touch"))){const s=i.changedTouches[0];if(e==="touchstart"&&i.touches.length===1&&(De.touch.id=s.identifier),De.touch.id!==s.identifier)return;ta||(e==="touchstart"||e==="touchmove")&&Qd(i)}const r=i[zo];if(!r.skip){for(let s=0,a;s<qe.length;s++)a=qe[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<qe.length;s++)a=qe[s],o[a.name]&&!r[a.name]&&(r[a.name]=!0,a[e](i))}}function Qd(i){const e=i.changedTouches[0],t=i.type;if(t==="touchstart")De.touch.x=e.clientX,De.touch.y=e.clientY,De.touch.scrollDecided=!1;else if(t==="touchmove"){if(De.touch.scrollDecided)return;De.touch.scrollDecided=!0;const o=Jd(i);let r=!1;const s=Math.abs(De.touch.x-e.clientX),a=Math.abs(De.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():lo("track")}}function Ee(i,e,t){return ki[e]?(ec(i,e,t),!0):!1}function ec(i,e,t){const o=ki[e],r=o.deps,s=o.name;let a=i[ei];a||(i[ei]=a={});for(let n=0,l,c;n<r.length;n++)l=r[n],!(Yd&&oa(l)&&l!=="click")&&(c=a[l],c||(a[l]=c={_count:0}),c._count===0&&i.addEventListener(l,Zd,void 0),c[s]=(c[s]||0)+1,c._count=(c._count||0)+1);i.addEventListener(e,t),o.touchAction&&sa(i,o.touchAction)}function Ei(i){qe.push(i),i.emits.forEach(e=>{ki[e]=i})}function tc(i){for(let e=0,t;e<qe.length;e++){t=qe[e];for(let o=0,r;o<t.emits.length;o++)if(r=t.emits[o],r===i)return t}return null}function sa(i,e){ta&&i instanceof HTMLElement&&no.run(()=>{i.style.touchAction=e}),i[ti]=e}function Ai(i,e,t){const o=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(o.detail=t,Hd(i).dispatchEvent(o),o.defaultPrevented){const r=t.preventer||t.sourceEvent;r&&r.preventDefault&&r.preventDefault()}}function lo(i){const e=tc(i);e.info&&(e.info.prevent=!0)}Ei({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){it(this.info)},mousedown(i){if(!Ue(i))return;const e=Fe(i),t=this,o=s=>{Ue(s)||(_t("up",e,s),it(t.info))},r=s=>{Ue(s)&&_t("up",e,s),it(t.info)};ia(this.info,o,r),_t("down",e,i)},touchstart(i){_t("down",Fe(i),i.changedTouches[0],i)},touchend(i){_t("up",Fe(i),i.changedTouches[0],i)}});function _t(i,e,t,o){e&&Ai(e,i,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:o,prevent(r){return lo(r)}})}Ei({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>$d&&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,it(this.info)},mousedown(i){if(!Ue(i))return;const e=Fe(i),t=this,o=s=>{const a=s.clientX,n=s.clientY;jr(t.info,a,n)&&(t.info.state=t.info.started?s.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&lo("tap"),t.info.addMove({x:a,y:n}),Ue(s)||(t.info.state="end",it(t.info)),e&&Ro(t.info,e,s),t.info.started=!0)},r=s=>{t.info.started&&o(s),it(t.info)};ia(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=Fe(i),t=i.changedTouches[0],o=t.clientX,r=t.clientY;jr(this.info,o,r)&&(this.info.state==="start"&&lo("tap"),this.info.addMove({x:o,y:r}),Ro(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(i){const e=Fe(i),t=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Ro(this.info,e,t))}});function jr(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>=$r||r>=$r}function Ro(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 n,l=0;o&&(n=r.x-o.x,l=r.y-o.y),Ai(e,"track",{state:i.state,x:t.clientX,y:t.clientY,dx:s,dy:a,ddx:n,ddy:l,sourceEvent:t,hover(){return Xd(t.clientX,t.clientY)}})}Ei({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){Ue(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){Ue(i)&&Wr(this.info,i)},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(i){Wr(this.info,i.changedTouches[0],i)}});function Wr(i,e,t){const o=Math.abs(e.clientX-i.x),r=Math.abs(e.clientY-i.y),s=Fe(t||e);!s||Kd[s.localName]&&s.hasAttribute("disabled")||(isNaN(o)||isNaN(r)||o<=Hr&&r<=Hr||Gd(e))&&(i.prevent||Ai(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/
|
|
1565
|
-
*/const ct=
|
|
1565
|
+
*/const ct=Z(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
|
|
1566
1566
|
* @license
|
|
1567
1567
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1568
1568
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1569
|
-
*/const Ge=
|
|
1569
|
+
*/const Ge=Z(i=>class extends i{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
|
|
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 Ii=i=>class extends ct(Ge(i)){get _activeKeys(){return[" "]}ready(){super.ready(),Ee(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Ee(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 Si=!1;window.addEventListener("keydown",()=>{Si=!0},{capture:!0});window.addEventListener("mousedown",()=>{Si=!1},{capture:!0});function oi(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function vo(){return Si}function aa(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 oc(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 ic(i,e){const t=[];for(;i.length>0&&e.length>0;)oc(i[0],e[0])?t.push(e.shift()):t.push(i.shift());return t.concat(i,e)}function ii(i){const e=i.length;if(e<2)return i;const t=Math.ceil(e/2),o=ii(i.slice(0,t)),r=ii(i.slice(t));return ic(o,r)}function ri(i){return i.offsetParent===null&&i.clientWidth===0&&i.clientHeight===0?!0:aa(i)}function Ti(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 Di(i){return i.getRootNode().activeElement===i}function rc(i){if(!Ti(i))return-1;const e=i.getAttribute("tabindex")||0;return Number(e)}function na(i,e){if(i.nodeType!==Node.ELEMENT_NODE||aa(i))return!1;const t=i,o=rc(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=na(a,e)||r}),r}function sc(i){const e=[];return na(i,e)?ii(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/
|
|
1581
|
-
*/const Je=
|
|
1581
|
+
*/const Je=Z(i=>class extends i{get _keyboardActive(){return vo()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
|
|
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/
|
|
@@ -1586,31 +1586,31 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 go=
|
|
1589
|
+
*/const go=Z(i=>class extends Je(la(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 zi=Z(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/
|
|
1597
|
-
*/const Nt=
|
|
1597
|
+
*/const Nt=Z(i=>class extends i{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),!(e===""&&t===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}});/**
|
|
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 ac=Z(i=>class extends zi(ct(Nt(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
|
|
1605
|
+
*/const Oo=new Map;function Ri(i){return Oo.has(i)||Oo.set(i,new WeakMap),Oo.get(i)}function da(i,e){i&&i.removeAttribute(e)}function ca(i,e){if(!i||!e)return;const t=Ri(e);if(t.has(i))return;const o=Ci(i.getAttribute(e));t.set(i,new Set(o))}function nc(i,e){if(!i||!e)return;const t=Ri(e),o=t.get(i);!o||o.size===0?i.removeAttribute(e):ea(i,e,fo(o)),t.delete(i)}function rt(i,e,t={newId:null,oldId:null,fromUser:!1}){if(!i||!e)return;const{newId:o,oldId:r,fromUser:s}=t,a=Ri(e),n=a.get(i);if(!s&&n){r&&n.delete(r),o&&n.add(o);return}s&&(n?o||a.delete(i):ca(i,e),da(i,e)),Vd(i,e,r);const l=o||fo(n);l&&ea(i,e,l)}function lc(i,e){ca(i,e),da(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 dc{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?(lc(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(nc(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,o){rt(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:o})}__setErrorIdToAriaAttribute(e,t){rt(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){rt(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/
|
|
1613
|
-
*/const Ae=
|
|
1613
|
+
*/const Ae=Z(i=>typeof i.prototype.addController=="function"?i:class extends i{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
|
|
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/
|
|
@@ -1618,31 +1618,31 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 Oi extends me{constructor(e,t,o,r={}){super(e,t,o,cs(Qt({},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 cc extends Oi{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&&Zt(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 hc extends Oi{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 ha extends
|
|
1633
|
+
*/class ha extends Oi{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 uc=Z(i=>class extends Ae(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new ha(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 Mi=Z(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 bo=i=>class extends
|
|
1645
|
+
*/const bo=i=>class extends Mi(uc(Ae(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 dc(this),this._helperController=new hc(this),this._errorController=new cc(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/
|
|
@@ -1654,11 +1654,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 pc=i=>class extends bo(ac(go(Ii(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 Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Vt(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 mc=g`
|
|
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",mc,{moduleId:"vaadin-checkbox-styles"});class _c extends pc(xe(U(F))){static get is(){return"vaadin-checkbox"}static get template(){return V`
|
|
1754
1754
|
<div class="vaadin-checkbox-container">
|
|
1755
1755
|
<div part="checkbox" aria-hidden="true"></div>
|
|
1756
1756
|
<slot name="input"></slot>
|
|
@@ -1766,7 +1766,7 @@ 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 Oe(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}R(
|
|
1769
|
+
`}ready(){super.ready(),this._tooltipController=new Oe(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}R(_c);/**
|
|
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/
|
|
@@ -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 Ni=g`
|
|
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("",Ni,{moduleId:"lumo-required-field"});const fc=g`
|
|
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",[Ni,ua,fc],{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 vc=i=>class extends bo(Je(ct(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 Oe(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 Pi(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(n=>n.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 gc=g`
|
|
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",gc,{moduleId:"vaadin-checkbox-group-styles"});class bc extends vc(xe(U(F))){static get is(){return"vaadin-checkbox-group"}static get template(){return V`
|
|
2030
2030
|
<div class="vaadin-group-field-container">
|
|
2031
2031
|
<div part="label">
|
|
2032
2032
|
<slot name="label"></slot>
|
|
@@ -2047,7 +2047,7 @@ 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
|
-
`}}R(
|
|
2050
|
+
`}}R(bc);/**
|
|
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/
|
|
@@ -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("",yo,{moduleId:"lumo-menu-overlay-core"});const
|
|
2153
|
+
`;C("",yo,{moduleId:"lumo-menu-overlay-core"});const yc=g`
|
|
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
|
+
`,Li=[ht,yo,yc];C("",Li,{moduleId:"lumo-menu-overlay"});const xc=g`
|
|
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",[Li,xc],{moduleId:"lumo-date-picker-overlay"});const pa=g`
|
|
2261
2261
|
:host {
|
|
2262
2262
|
/* Sizing */
|
|
2263
2263
|
--lumo-button-size: var(--lumo-size-m);
|
|
@@ -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 Vi=g`
|
|
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("",Vi,{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 wc=g`
|
|
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
|
-
`,Xe=[
|
|
3201
|
+
`,Xe=[Ni,Vi,ua,wc];C("",Xe,{moduleId:"lumo-input-field-shared-styles"});const Cc=g`
|
|
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",[Xe,
|
|
3223
|
+
`;C("vaadin-date-picker",[Xe,Cc],{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 Pc=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 kc=g`
|
|
3232
3232
|
:host {
|
|
3233
3233
|
display: flex;
|
|
3234
3234
|
align-items: center;
|
|
@@ -3297,7 +3297,7 @@ 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",kc,{moduleId:"vaadin-input-container-styles"});class ma extends Pc(U(ye(F))){static get is(){return"vaadin-input-container"}static get template(){return V`
|
|
3301
3301
|
<slot name="prefix"></slot>
|
|
3302
3302
|
<slot></slot>
|
|
3303
3303
|
<slot name="suffix"></slot>
|
|
@@ -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 si=!1,Ec=[],_a=[];function Ac(){si=!0,requestAnimationFrame(function(){si=!1,Ic(Ec),setTimeout(function(){Sc(_a)})})}function Ic(i){for(;i.length;)fa(i.shift())}function Sc(i){for(let e=0,t=i.length;e<t;e++)fa(i.shift())}function fa(i){const e=i[0],t=i[1],o=i[2];try{t.apply(e,o)}catch(r){setTimeout(()=>{throw r})}}function Fi(i,e,t){si||Ac(),_a.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 xo=i=>i.test(navigator.userAgent),
|
|
3379
|
+
*/const xo=i=>i.test(navigator.userAgent),ai=i=>i.test(navigator.platform),Tc=i=>i.test(navigator.vendor);xo(/Android/u);xo(/Chrome/u)&&Tc(/Google Inc/u);xo(/Firefox/u);const Dc=ai(/^iPad/u)||ai(/^Mac/u)&&navigator.maxTouchPoints>1,zc=ai(/^iPhone/u),Bi=zc||Dc,Rc=xo(/^((?!chrome|android).)*safari/iu),ni=(()=>{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 Ze=new WeakMap,qt=new WeakMap,Ut={},
|
|
3383
|
+
*/let Ze=new WeakMap,qt=new WeakMap,Ut={},Mo=0;const qr=i=>i&&i.nodeType===Node.ELEMENT_NODE,No=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},Oc=(i,e)=>qr(i)?e.map(t=>{if(!qr(t))return No(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 No(t,"is not contained inside",i),null}).filter(t=>!!t):(No(i,"is not a valid element"),[]),Mc=(i,e,t,o)=>{const r=Oc(e,Array.isArray(i)?i:[i]);Ut[t]||(Ut[t]=new WeakMap);const s=Ut[t],a=[],n=new Set,l=new Set(r),c=u=>{if(!u||n.has(u))return;n.add(u);const _=u.assignedSlot;_&&c(_),c(u.parentNode||u.host)};r.forEach(c);const h=u=>{if(!u||l.has(u))return;const _=u.shadowRoot;(_?[...u.children,..._.children]:[...u.children]).forEach(p=>{if(!["template","script","style"].includes(p.localName))if(n.has(p))h(p);else{const x=p.getAttribute(o),P=x!==null&&x!=="false",A=(Ze.get(p)||0)+1,B=(s.get(p)||0)+1;Ze.set(p,A),s.set(p,B),a.push(p),A===1&&P&&qt.set(p,!0),B===1&&p.setAttribute(t,"true"),P||p.setAttribute(o,"true")}})};return h(e),n.clear(),Mo+=1,()=>{a.forEach(u=>{const _=Ze.get(u)-1,p=s.get(u)-1;Ze.set(u,_),s.set(u,p),_||(qt.has(u)?qt.delete(u):u.removeAttribute(o)),p||u.removeAttribute(t)}),Mo-=1,Mo||(Ze=new WeakMap,Ze=new WeakMap,qt=new WeakMap,Ut={})}},va=(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]"))),Mc(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 Nc{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=va(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 Lc{saveFocus(e){this.focusNode=e||oi()}restoreFocus(e){const t=this.focusNode;if(!t)return;const o=e?e.preventScroll:!1;oi()===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
|
|
3395
|
+
*/const Lo=[];class Vc{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return sc(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Di).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.");Lo.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Lo.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Lo).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 Fc=i=>class extends Ae(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Nc(this),this.__focusTrapController=new Vc(this),this.__focusRestorationController=new Lc}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=!vo();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=oi();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 ga=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,e)=>i.__zIndex-e.__zIndex||0),
|
|
3403
|
+
*/const ga=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,e)=>i.__zIndex-e.__zIndex||0),li=()=>ga().filter(i=>i.$.overlay),Bc=i=>i===li().pop(),ba=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Bc(this)}bringToFront(){let e="";const t=ga().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"),li().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=li();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 Bt=i=>class extends
|
|
3407
|
+
*/const Bt=i=>class extends Fc(ba(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),Bi&&(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,n=this._oldRenderer!==void 0;this._oldRenderer=e;const l=this._oldOpened!==r;this._oldOpened=r,a&&n&&(this.innerHTML="",delete this._$litPart$),r&&e&&(a||l||s)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),Fi(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 Hc(i,e){let t=null;const o=document.documentElement;function r(){t&&t.disconnect(),t=null}function s(a=!1,n=1){r();const{left:l,top:c,width:h,height:u}=i.getBoundingClientRect();if(a||e(),!h||!u)return;const _=Math.floor(c),p=Math.floor(o.clientWidth-(l+h)),x=Math.floor(o.clientHeight-(c+u)),P=Math.floor(l),A={rootMargin:`${-_}px ${-p}px ${-x}px ${-P}px`,threshold:Math.max(0,Math.min(1,n))||1};let B=!0;function N(L){let ee=L[0].intersectionRatio;if(ee!==n){if(!B)return s();ee===0&&(ee=1e-7),s(!1,ee)}B=!1}t=new IntersectionObserver(N,A),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
|
|
3415
|
+
*/const Vo={start:"top",end:"bottom"},Fo={start:"left",end:"right"},Ur=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),Hi=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=Ld(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Hc(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,Ur.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,Ur.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(),n=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Vo,this,t),l=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Fo,this,r);Object.assign(this.style,n,l),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,Fo)}__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,Vo)}__shouldAlignStart(e,t,o,r,s,a,n){const l=o-e[a?n.end:n.start]-r[n.end],c=e[a?n.start:n.end]-r[n.start],h=s?l:c,u=h>(s?c:l)||h>t;return s===u}__adjustBottomProperty(e,t,o){let r;if(e===t.end){if(t.end===Vo.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===Fo.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 n=a?r.start:r.end,l=a?r.end:r.start,c=parseFloat(s.style[n]||getComputedStyle(s)[n]),h=this.__adjustBottomProperty(n,r,c),u=t[a?r.start:r.end]-e[o===a?r.end:r.start],_=h?`${h}px`:`${c+u*(a?-1:1)}px`;return{[n]:_,[l]:""}}};/**
|
|
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 $c=i=>class extends Hi(Bt(i)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Ti(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 jc=g`
|
|
3424
3424
|
[part='overlay'] {
|
|
3425
3425
|
display: flex;
|
|
3426
3426
|
flex: auto;
|
|
@@ -3439,14 +3439,14 @@ 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",[Ft
|
|
3442
|
+
*/C("vaadin-date-picker-overlay",[Ft,jc],{moduleId:"vaadin-date-picker-overlay-styles"});class Wc extends $c(ye(U(F))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return V`
|
|
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
|
-
`}}R(
|
|
3449
|
+
`}}R(Wc);/**
|
|
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/
|
|
@@ -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
|
+
`,qc=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 $i=i=>class extends Ii(la(Je(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",ya,{moduleId:"vaadin-button-styles"});class
|
|
3534
|
+
*/C("vaadin-button",ya,{moduleId:"vaadin-button-styles"});class Uc extends $i(xe(U(Ae(F)))){static get is(){return"vaadin-button"}static get template(){return qc(V)}ready(){super.ready(),this._tooltipController=new Oe(this),this.addController(this._tooltipController)}}R(Uc);/**
|
|
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 Yc(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 di(i){const e=new Date(i);return e.setHours(0,0,0,0),e}function Re(i,e,t=di){return i instanceof Date&&e instanceof Date&&t(i).getTime()===t(e).getTime()}function ji(i){return{day:i.getDate(),month:i.getMonth(),year:i.getFullYear()}}function lt(i,e,t,o){let r=!1;if(typeof o=="function"&&i){const s=ji(i);r=o(s)}return(!e||i>=e)&&(!t||i<=t)&&!r}function xa(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 wa(i){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(i)+e.getMonth()),t}function Kc(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 Gc(i){const e=(l,c="00")=>(c+l).substr((c+l).length-c.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),n=e(i.day);return[s,a,n].join("-")}function Jc(i){return i instanceof Date?Gc({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 co{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,Rt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Rt.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 co?e._cancelAsync():e=new co,e.setConfig(t,o),e}}let Rt=new Set;const
|
|
3546
|
+
*/class co{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,Rt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Rt.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 co?e._cancelAsync():e=new co,e.setConfig(t,o),e}}let Rt=new Set;const Xc=function(i){Rt.add(i)},Zc=function(){const i=!!Rt.size;return Rt.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,7 +3551,7 @@ 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 Wi=function(){let i,e;do i=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=Zc();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/
|
|
@@ -3605,7 +3605,7 @@ 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 Pa extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Ca.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()),
|
|
3608
|
+
`;class Pa extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Ca.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()),Wi()}_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=be.debounce(this._debouncerScrollFinish,Ve.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=be.debounce(this._debouncerUpdateClones,Ve.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-${Mt()}`,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,n)=>{const l=a._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,s+n)}),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/
|
|
@@ -3621,7 +3621,7 @@ 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 Qc extends Pa{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(ka.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=wa(t)}}R(Qc);/**
|
|
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/
|
|
@@ -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 eh extends Pa{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Ea.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()}}R(eh);/**
|
|
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 th=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 oh extends U(th(F)){static get is(){return"vaadin-date-picker-year"}static get template(){return V`
|
|
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
|
-
`}}R(
|
|
3679
|
+
`}}R(oh);/**
|
|
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 qi(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 Ui=Z(i=>{class e extends i{_shouldPropertyChange(o,r,s){return qi(this,o,r,s,!0)}}return e}),ih=Z(i=>{class e extends i{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(o,r,s){return qi(this,o,r,s,this.mutableData)}}return e});Ui._mutablePropertyChange=qi;/**
|
|
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 ci=null;function hi(){return ci}hi.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:hi,writable:!0}});const Aa=wi(hi),rh=Ui(Aa);function sh(i,e){ci=i,Object.setPrototypeOf(i,e.prototype),new e,ci=null}const ah=wi(class{});function nh(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"),ne(ne(o).parentNode).replaceChild(o.__polymerReplaced__,o);else{const r=o.__polymerReplaced__;r&&ne(ne(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 He extends ah{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){nh(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}}He.prototype.__dataHost;He.prototype.__templatizeOptions;He.prototype._methodHost;He.prototype.__templatizeOwner;He.prototype.__hostProps;const lh=Ui(He);function Yr(i){let e=i.__dataHost;return e&&e._methodHost||e}function dh(i,e,t){let o=t.mutableData?lh:He;ui.mixin&&(o=ui.mixin(o));let r=class extends o{};return r.prototype.__templatizeOptions=t,r.prototype._bindTemplate(i),uh(r,i,e,t),r}function ch(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 l=t.mutableData?rh:Aa;class c extends l{}a=e.templatizeTemplateClass=c}else{const l=i.constructor;class c extends l{}a=e.templatizeTemplateClass=c}let n=e.hostProps;for(let l in n)a.prototype._addPropertyEffect("_host_"+l,a.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:hh(l,r)}),a.prototype._createNotifyingProperty("_host_"+l);Es&&o&&_h(e,t,o)}if(i.__dataProto&&Object.assign(i.__data,i.__dataProto),s)sh(i,a),i.__dataTemp={},i.__dataPending=null,i.__dataOld=null,i._enableProperties();else{Object.setPrototypeOf(i,a.prototype);const n=e.hostProps;for(let l in n)if(l="_host_"+l,l in i){const c=i[l];delete i[l],i.__data[l]=c}}}}function hh(i,e){return function(t,o,r){e.call(t.__templatizeOwner,o.substring(6),r[o])}}function uh(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:ph(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:mh()})}function ph(i,e){return function(t,o,r){e.call(t.__templatizeOwner,t,o,r[o])}}function mh(){return function(i,e,t){i.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function ui(i,e,t){if(so&&!Yr(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:He)._parseTemplate(i),r=o.templatizeInstanceClass;r||(r=dh(i,o,t),o.templatizeInstanceClass=r);const s=Yr(i);ch(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 _h(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 n=r[a];for(let l=0;l<n.length;l++){const{part:c}=n[l].info;if(!(c.signature&&c.signature.static)){console.warn(`Property '${a}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function fh(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=ne(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 Kr=!1;function
|
|
3703
|
+
*/let Kr=!1;function vh(){if(ks&&!Ps){if(!Kr){Kr=!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 gh=ih(F);class Gr extends gh{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:!xr,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(),vh()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=ne(ne(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=ui(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:o,forwardHostProp:function(r,s){let a=this.__instances;for(let n=0,l;n<a.length&&(l=a[n]);n++)l.forwardHostProp(r,s)},notifyInstanceProp:function(r,s,a){if(bl(this.as,s)){let n=r[this.itemsIndexAs];s==this.as&&(this.items[n]=a);let l=It(this.as,`${JSCompiler_renameProperty("items",this)}.${n}`,s);this.notifyPath(l,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=co.debounce(this.__renderDebouncer,t>0?kl.after(t):Ns,e.bind(this)),Xc(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Wi()}__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),(!xr||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],n=o[s],l=e[n];r[n]=s,a?(a._setPendingProperty(this.as,l),a._setPendingProperty(this.indexAs,s),a._setPendingProperty(this.itemsIndexAs,n),a._flushProperties()):this.__insertInstance(l,s,n)}for(let a=this.__instances.length-1;a>=s;a--)this.__detachAndRemoveInstance(a)}__detachInstance(e){let t=this.__instances[e];const o=ne(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 ne(ne(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 n=this.__itemsIdxToInstIdx[s],l=this.__instances[n];if(l){let c=this.as+(a?"."+a:"");l._setPendingPropertyOrPath(c,t,!1,!0),l._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 fh(this.template,e)}}customElements.define(Gr.is,Gr);/**
|
|
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 bh=i=>class extends Je(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=>Re(e.date,this.focusedDate))}ready(){super.ready(),Ee(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:!lt(r,t,o)&&!lt(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((n,l)=>({weekDay:n,weekDayShort:a[l]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(o=>Re(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 Re(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 Yc(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 yh=g`
|
|
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",yh,{moduleId:"vaadin-month-calendar-styles"});class xh extends bh(U(F)){static get template(){return V`
|
|
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,o,r,s,a){const n=["date"],l=e>
|
|
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 n=["date"],l=e>di(new Date),c=e<di(new Date);return this.__isDayDisabled(e,r,s,a)&&n.push("disabled"),this.__isDayFocused(e,t)&&n.push("focused"),this.__isDaySelected(e,o)&&n.push("selected"),this._isToday(e)&&n.push("today"),c&&n.push("past"),l&&n.push("future"),n.join(" ")}__isDayFocused(e,t){return Re(e,t)}__isDaySelected(e,t){return Re(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,o,r){return!lt(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"}}R(xh);/**
|
|
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 Yi{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 xh=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(){sa(this.$.scrollers,"pan-y"),Ee(this.$.scrollers,"track",this._track.bind(this)),Ee(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ee(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ee(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ui(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new me(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Ee(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new me(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Ee(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 me(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 me(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Ee(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,n,l,c,h){e&&e.length&&e.forEach(u=>{u.i18n=t,u.minDate=o,u.maxDate=r,u.isDateDisabled=h,u.focusedDate=a,u.selectedDate=s,u.showWeekNumbers=n,u.ignoreTaps=l,c?u.setAttribute("theme",c):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 n=this._calculateWeekScrollOffset(e);this._scrollToPosition(o+n,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=be.debounce(this._debouncer,Ve.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,o){return e&&t&&typeof t.formatDate=="function"?t.formatDate($i(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(l=>{o=l});const r=(l,c,h,u)=>(l/=u/2,l<1?h/2*l*l+c:(l-=1,-h/2*(l*(l-2)-1)+c));let s=0;const a=this._monthScroller.position,n=l=>{s||(s=l);const c=l-s;if(c<this.scrollDuration){const h=r(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(n)}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(n)}_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 wa(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){Re(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&&Re(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return eo(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 eo(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{Vi(this,()=>{ji(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(xa(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 lt(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}};/**
|
|
3829
|
+
*/const wh=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(){sa(this.$.scrollers,"pan-y"),Ee(this.$.scrollers,"track",this._track.bind(this)),Ee(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ee(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ee(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Yi(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new me(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Ee(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new me(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Ee(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 me(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 me(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Ee(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,n,l,c,h){e&&e.length&&e.forEach(u=>{u.i18n=t,u.minDate=o,u.maxDate=r,u.isDateDisabled=h,u.focusedDate=a,u.selectedDate=s,u.showWeekNumbers=n,u.ignoreTaps=l,c?u.setAttribute("theme",c):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 n=this._calculateWeekScrollOffset(e);this._scrollToPosition(o+n,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=be.debounce(this._debouncer,Ve.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,o){return e&&t&&typeof t.formatDate=="function"?t.formatDate(ji(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(l=>{o=l});const r=(l,c,h,u)=>(l/=u/2,l<1?h/2*l*l+c:(l-=1,-h/2*(l*(l-2)-1)+c));let s=0;const a=this._monthScroller.position,n=l=>{s||(s=l);const c=l-s;if(c<this.scrollDuration){const h=r(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(n)}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(n)}_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 wa(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){Re(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&&Re(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return eo(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 eo(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{Fi(this,()=>{Wi(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(xa(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 lt(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 Ch=g`
|
|
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",Ch,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Ph extends wh(Ae(U(ye(F)))){static get template(){return V`
|
|
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,23 +3914,23 @@ 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()}}R(
|
|
3917
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}R(Ph);/**
|
|
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
|
|
3921
|
+
*/const Bo=new WeakMap;function kh(i){return Bo.has(i)||Bo.set(i,new Set),Bo.get(i)}function Eh(i,e){const t=document.createElement("style");t.textContent=i,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Ia=Z(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=kh(e);this.slotStyles.forEach(o=>{t.has(o)||(Eh(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 Ah=i=>class extends Nt(Ge(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(),ni||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 Ki=Z(i=>class extends zi(Mi(Nt(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 wo=i=>class extends Ia(go(
|
|
3933
|
+
*/const wo=i=>class extends Ia(go(Ki(bo(Ah(Ge(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;
|
|
@@ -3939,7 +3939,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 Ih=g`
|
|
3943
3943
|
[part='clear-button'] {
|
|
3944
3944
|
display: none;
|
|
3945
3945
|
cursor: default;
|
|
@@ -4006,7 +4006,7 @@ 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 Co=[Sa,Ta,
|
|
4009
|
+
*/const Co=[Sa,Ta,Ih];/**
|
|
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/
|
|
@@ -4018,11 +4018,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 Ih=i=>class extends Ht(Ae(go(Yi(Ge(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 n=this.referenceDate?ft(this.referenceDate):new Date;a=Yc(n,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:Fi},_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&&!vo()&&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 Ui(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new Da(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($i(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),o=!this._selectedDate||lt(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 Gc(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?Re(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,n,l,c){e&&(e.i18n=t,e.label=o,e.minDate=r,e.maxDate=s,e.focusedDate=a,e.selectedDate=n,e.showWeekNumbers=l,e.isDateDisabled=c)}__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=va(s)}_getInitialPosition(){const e=ft(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||lt(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?xa(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,Re(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return ft(e)}};/**
|
|
4021
|
+
*/const Sh=i=>class extends Ht(Ae(go(Ki(Ge(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 n=this.referenceDate?ft(this.referenceDate):new Date;a=Kc(n,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:Bi},_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&&!vo()&&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 Yi(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new Da(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(ji(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),o=!this._selectedDate||lt(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 Jc(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?Re(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,n,l,c){e&&(e.i18n=t,e.label=o,e.minDate=r,e.maxDate=s,e.focusedDate=a,e.selectedDate=n,e.showWeekNumbers=l,e.isDateDisabled=c)}__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=va(s)}_getInitialPosition(){const e=ft(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||lt(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?xa(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,Re(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 Th=g`
|
|
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",[Co,
|
|
4042
|
+
*/C("vaadin-date-picker",[Co,Th],{moduleId:"vaadin-date-picker-styles"});class Dh extends Sh(wo(U(xe(F)))){static get is(){return"vaadin-date-picker"}static get template(){return V`
|
|
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 Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Vt(this.inputElement,this._labelController)),this._tooltipController=new Oe(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}}R(
|
|
4084
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Vt(this.inputElement,this._labelController)),this._tooltipController=new Oe(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}}R(Dh);/**
|
|
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 zh=i=>class extends wo(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 Rh=i=>class extends zh(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 Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Vt(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",Co,{moduleId:"vaadin-text-field-styles"});class za extends
|
|
4100
|
+
*/C("vaadin-text-field",Co,{moduleId:"vaadin-text-field-styles"});class za extends Rh(U(xe(F))){static get is(){return"vaadin-text-field"}static get template(){return V`
|
|
4101
4101
|
<div class="vaadin-field-container">
|
|
4102
4102
|
<div part="label">
|
|
4103
4103
|
<slot name="label"></slot>
|
|
@@ -4130,7 +4130,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 Oh=g`
|
|
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",[pa,
|
|
4146
|
+
`;C("vaadin-password-field-button",[pa,Oh],{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 Mh=g`
|
|
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",[Xe,
|
|
4168
|
+
`;C("vaadin-password-field",[Xe,Mh],{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",ya,{moduleId:"vaadin-password-field-button-styles"});class
|
|
4172
|
+
*/C("vaadin-password-field-button",ya,{moduleId:"vaadin-password-field-button-styles"});class Nh extends $i(ye(U(F))){static get is(){return"vaadin-password-field-button"}static get template(){return V``}}R(Nh);/**
|
|
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 Lh=i=>class extends Ia(ct(Je(Nt(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 Vh=V`
|
|
4185
4185
|
<div part="reveal-button" slot="suffix">
|
|
4186
4186
|
<slot name="reveal"></slot>
|
|
4187
4187
|
</div>
|
|
4188
|
-
`;let Yt;class
|
|
4188
|
+
`;let Yt;class Fh extends Lh(za){static get is(){return"vaadin-password-field"}static get template(){if(!Yt){Yt=super.template.cloneNode(!0);const e=Vh.content.querySelector('[part="reveal-button"]');Yt.content.querySelector('[part="input-field"]').appendChild(e)}return Yt}}R(Fh);const Po=g`
|
|
4189
4189
|
:host {
|
|
4190
4190
|
display: flex;
|
|
4191
4191
|
align-items: center;
|
|
@@ -4361,11 +4361,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 Bh=g`
|
|
4365
4365
|
[part='toggle-button']::before {
|
|
4366
4366
|
content: var(--lumo-icons-dropdown);
|
|
4367
4367
|
}
|
|
4368
|
-
`;C("vaadin-combo-box",[Xe,
|
|
4368
|
+
`;C("vaadin-combo-box",[Xe,Bh],{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/
|
|
@@ -4373,7 +4373,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 Hh extends La(U(ye(F))){static get template(){return V`
|
|
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"}}R(
|
|
4390
|
+
`}static get is(){return"vaadin-combo-box-item"}}R(Hh);/**
|
|
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 Va=i=>class extends
|
|
4394
|
+
*/const Va=i=>class extends Hi(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)&&!Ti(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 $h=g`
|
|
4399
4399
|
#overlay {
|
|
4400
4400
|
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
|
4401
4401
|
}
|
|
@@ -4405,13 +4405,13 @@ 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",[Ft
|
|
4408
|
+
`;C("vaadin-combo-box-overlay",[Ft,$h],{moduleId:"vaadin-combo-box-overlay-styles"});class jh extends Va(Bt(ye(U(F)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return V`
|
|
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
|
-
`}}R(
|
|
4414
|
+
`}}R(jh);/**
|
|
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/
|
|
@@ -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 Jr=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),
|
|
4426
|
+
*/const Jr=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Wh=Jr&&Jr[1]>=8,Xr=3,qh={_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),no)}},_getReusables(i){let e,t,o;const r=[],s=this._hiddenContentSize*this._ratio,a=this._virtualStart,n=this._virtualEnd,l=this._physicalCount;let c=this._physicalTop+this._scrollOffset;const h=this._physicalBottom+this._scrollOffset,u=this._scrollPosition,_=this._scrollBottom;for(i?(e=this._physicalStart,t=u-c):(e=this._physicalEnd,t=h-_);o=this._getPhysicalSizeIncrement(e),t-=o,!(r.length>=l||t<=s);)if(i){if(n+r.length+1>=this._virtualCount||c+o>=u-this._scrollOffset)break;r.push(e),c+=o,e=(e+1)%l}else{if(a-r.length<=0||c+this._physicalSize-o<=_)break;r.push(e),c-=o,e=e===0?l-1:e-1}return{indexes:r,physicalTop:c-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,Xr,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)),Xs):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),no))}},_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(Xr))},_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,Dt))},_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;!Wh&&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)},Dt)},_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]=be.debounce(this._debouncers[i],t,e.bind(this)),Zs(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 qh=1e5,Bo=1e3;class Fa{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:n}])=>{const l=n.width===0&&n.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",n=>this.__onWheel(n)),this.scrollTarget.addEventListener("virtualizer-element-focused",n=>this.__onElementFocused(n)),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<Bo?(o=e,this._vidxOffset=0):(o=Bo,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,n)=>{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,n=parseFloat(t.borderTopWidth)||0;return o+r+s+a+n}__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=be.debounce(this.__placeholderClearDebouncer,Dt,()=>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,no)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,qh)}}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=be.debounce(this.__fixInvalidItemPositioningDebouncer,Ve.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=be.debounce(this.__scrollReorderDebouncer,Ve.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=be.debounce(this.__debouncerWheelAnimationFrame,Dt,()=>{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=be.debounce(this._debouncerIgnoreNewWheel,Ve.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(zc){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=Bo,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(Fa.prototype,Wh);class Uh{constructor(e){this.__adapter=new Fa(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 Uh=1e5,Ho=1e3;class Fa{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:n}])=>{const l=n.width===0&&n.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",n=>this.__onWheel(n)),this.scrollTarget.addEventListener("virtualizer-element-focused",n=>this.__onElementFocused(n)),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<Ho?(o=e,this._vidxOffset=0):(o=Ho,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,n)=>{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,n=parseFloat(t.borderTopWidth)||0;return o+r+s+a+n}__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=be.debounce(this.__placeholderClearDebouncer,Dt,()=>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,no)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Uh)}}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=be.debounce(this.__fixInvalidItemPositioningDebouncer,Ve.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=be.debounce(this.__scrollReorderDebouncer,Ve.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=be.debounce(this.__debouncerWheelAnimationFrame,Dt,()=>{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=be.debounce(this._debouncerIgnoreNewWheel,Ve.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(Rc){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=Ho,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(Fa.prototype,qh);class Yh{constructor(e){this.__adapter=new Fa(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 Ba=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}-${Mt()}`,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(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!r||e!==r.index)return;const s=r.getBoundingClientRect(),a=this.getBoundingClientRect(),n=s.bottom-a.bottom+this._viewportTotalPaddingBottom;n>0&&(this.scrollTop+=n)}_isItemSelected(e,t,o){return e instanceof Be?!1:o&&e!==void 0&&t!==void 0?ho(o,e)===ho(o,t):e===t}__initVirtualizer(){this.__virtualizer=new
|
|
4438
|
+
*/const Ba=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}-${Mt()}`,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(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!r||e!==r.index)return;const s=r.getBoundingClientRect(),a=this.getBoundingClientRect(),n=s.bottom-a.bottom+this._viewportTotalPaddingBottom;n>0&&(this.scrollTop+=n)}_isItemSelected(e,t,o){return e instanceof Be?!1:o&&e!==void 0&&t!==void 0?ho(o,e)===ho(o,t):e===t}__initVirtualizer(){this.__virtualizer=new Yh({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 Be&&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 Kh extends Ba(F){static get is(){return"vaadin-combo-box-scroller"}static get template(){return V`
|
|
4443
4443
|
<style>
|
|
4444
4444
|
:host {
|
|
4445
4445
|
display: block;
|
|
@@ -4466,11 +4466,11 @@ 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
|
-
`}}R(
|
|
4469
|
+
`}}R(Kh);/**
|
|
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 Gh=i=>class extends Ki(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/
|
|
@@ -4478,15 +4478,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 Gi{constructor(e,t,o,r,s){ce(this,"context"),ce(this,"pageSize"),ce(this,"items",[]),ce(this,"pendingRequests",{}),ce(this,"__subCacheByIndex",{}),ce(this,"__size",0),ce(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 Gi(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}=uo(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}=uo(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 Jh extends EventTarget{constructor(e,{size:t,pageSize:o,isExpanded:r,getItemId:s,isPlaceholder:a,placeholder:n,dataProvider:l,dataProviderParams:c}){super(),ce(this,"host"),ce(this,"dataProvider"),ce(this,"dataProviderParams"),ce(this,"pageSize"),ce(this,"isExpanded"),ce(this,"getItemId"),ce(this,"rootCache"),ce(this,"placeholder"),ce(this,"isPlaceholder"),this.host=e,this.pageSize=o,this.getItemId=s,this.isExpanded=r,this.placeholder=n,this.isPlaceholder=a,this.dataProvider=l,this.dataProviderParams=c,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 uo(this.rootCache,e)}getItemContext(e){return Ha({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return $a(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 Gi(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=Qt(Qt({},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 ja=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
|
|
4489
|
+
*/const ja=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 Jh(this,{placeholder:new Be,isPlaceholder:e=>e instanceof Be,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/
|
|
@@ -4494,11 +4494,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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 Zr(i){return i!=null}function Qr(i,e){return i.findIndex(t=>t instanceof Be?!1:e(t))}const Wa=i=>class extends Ht(Ae(Oi(Je(Ge(Nt(ct(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),ko(this),this.addController(new Da(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,n,l,c,h){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:n,renderer:l,theme:c,itemClassNameGenerator:h}),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&&Ti(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()&&!ai&&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?ho(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?ho(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",()=>{ai&&!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||(Zr(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||!Zr(t)?-1:Qr(e,o=>this._getItemValue(o)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Qr(e,o=>this._getItemLabel(o).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Be)&&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(vo()){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 Zr(i){return i!=null}function Qr(i,e){return i.findIndex(t=>t instanceof Be?!1:e(t))}const Wa=i=>class extends Ht(Ae(Mi(Je(Ge(Nt(ct(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),ko(this),this.addController(new Da(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,n,l,c,h){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:n,renderer:l,theme:c,itemClassNameGenerator:h}),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&&Di(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()&&!ni&&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?ho(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?ho(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",()=>{ni&&!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||(Zr(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||!Zr(t)?-1:Qr(e,o=>this._getItemValue(o)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Qr(e,o=>this._getItemLabel(o).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Be)&&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(vo()){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",Co,{moduleId:"vaadin-combo-box-styles"});class
|
|
4501
|
+
*/C("vaadin-combo-box",Co,{moduleId:"vaadin-combo-box-styles"});class Xh extends ja(Wa(Gh(wo(U(xe(F)))))){static get is(){return"vaadin-combo-box"}static get template(){return V`
|
|
4502
4502
|
<style>
|
|
4503
4503
|
:host([opened]) {
|
|
4504
4504
|
pointer-events: auto;
|
|
@@ -4543,11 +4543,11 @@ 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 Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Vt(this.inputElement,this._labelController)),this._tooltipController=new Oe(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)}}R(
|
|
4546
|
+
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Vt(this.inputElement,this._labelController)),this._tooltipController=new Oe(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)}}R(Xh);/**
|
|
4547
4547
|
* @license
|
|
4548
4548
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4549
4549
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4550
|
-
*/const
|
|
4550
|
+
*/const Zh=g`
|
|
4551
4551
|
:host {
|
|
4552
4552
|
font-size: var(--lumo-font-size-xxs);
|
|
4553
4553
|
line-height: 1;
|
|
@@ -4636,18 +4636,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4636
4636
|
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
4637
4637
|
pointer-events: none;
|
|
4638
4638
|
}
|
|
4639
|
-
`;C("vaadin-multi-select-combo-box-chip",[
|
|
4639
|
+
`;C("vaadin-multi-select-combo-box-chip",[Vi,Zh],{moduleId:"lumo-multi-select-combo-box-chip"});/**
|
|
4640
4640
|
* @license
|
|
4641
4641
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4642
4642
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4643
|
-
*/const
|
|
4643
|
+
*/const Qh=g`
|
|
4644
4644
|
@media (any-hover: hover) {
|
|
4645
4645
|
:host(:hover[readonly]) {
|
|
4646
4646
|
background-color: transparent;
|
|
4647
4647
|
cursor: default;
|
|
4648
4648
|
}
|
|
4649
4649
|
}
|
|
4650
|
-
`;C("vaadin-multi-select-combo-box-item",[Po,Ra,
|
|
4650
|
+
`;C("vaadin-multi-select-combo-box-item",[Po,Ra,Qh],{moduleId:"lumo-multi-select-combo-box-item"});C("vaadin-multi-select-combo-box-overlay",[ht,yo,Ma,Oa,Na,g`
|
|
4651
4651
|
:host {
|
|
4652
4652
|
--_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
4653
4653
|
--_vaadin-multi-select-combo-box-items-container-border-style: solid;
|
|
@@ -4656,7 +4656,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4656
4656
|
:host([auto-expand-vertically]) {
|
|
4657
4657
|
padding-block: var(--lumo-space-xs);
|
|
4658
4658
|
}
|
|
4659
|
-
`,{moduleId:"lumo-multi-select-combo-box-container"});const
|
|
4659
|
+
`,{moduleId:"lumo-multi-select-combo-box-container"});const eu=g`
|
|
4660
4660
|
:host([has-value]) {
|
|
4661
4661
|
padding-inline-start: 0;
|
|
4662
4662
|
}
|
|
@@ -4709,11 +4709,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4709
4709
|
color: var(--lumo-contrast-60pct);
|
|
4710
4710
|
cursor: var(--lumo-clickable-cursor);
|
|
4711
4711
|
}
|
|
4712
|
-
`;C("vaadin-multi-select-combo-box",[Xe,
|
|
4712
|
+
`;C("vaadin-multi-select-combo-box",[Xe,eu],{moduleId:"lumo-multi-select-combo-box"});/**
|
|
4713
4713
|
* @license
|
|
4714
4714
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4715
4715
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4716
|
-
*/class
|
|
4716
|
+
*/class tu extends U(F){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return V`
|
|
4717
4717
|
<style>
|
|
4718
4718
|
:host {
|
|
4719
4719
|
display: inline-flex;
|
|
@@ -4742,7 +4742,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4742
4742
|
</style>
|
|
4743
4743
|
<div part="label">[[label]]</div>
|
|
4744
4744
|
<div part="remove-button" on-click="_onRemoveClick"></div>
|
|
4745
|
-
`}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}R(
|
|
4745
|
+
`}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}R(tu);/**
|
|
4746
4746
|
* @license
|
|
4747
4747
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4748
4748
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -4756,11 +4756,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4756
4756
|
:host([auto-expand-vertically]) #wrapper {
|
|
4757
4757
|
flex-wrap: wrap;
|
|
4758
4758
|
}
|
|
4759
|
-
`,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let Kt;class
|
|
4759
|
+
`,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let Kt;class ou extends ma{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!Kt){Kt=super.template.cloneNode(!0);const e=Kt.content,t=e.querySelectorAll("slot"),o=document.createElement("div");o.setAttribute("id","wrapper"),e.insertBefore(o,t[2]),o.appendChild(t[0]),o.appendChild(t[1])}return Kt}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}R(ou);/**
|
|
4760
4760
|
* @license
|
|
4761
4761
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4762
4762
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4763
|
-
*/class
|
|
4763
|
+
*/class iu extends La(U(ye(F))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return V`
|
|
4764
4764
|
<style>
|
|
4765
4765
|
:host {
|
|
4766
4766
|
display: block;
|
|
@@ -4774,11 +4774,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4774
4774
|
<div part="content">
|
|
4775
4775
|
<slot></slot>
|
|
4776
4776
|
</div>
|
|
4777
|
-
`}}R(
|
|
4777
|
+
`}}R(iu);/**
|
|
4778
4778
|
* @license
|
|
4779
4779
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4780
4780
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4781
|
-
*/const
|
|
4781
|
+
*/const ru=g`
|
|
4782
4782
|
#overlay {
|
|
4783
4783
|
width: var(
|
|
4784
4784
|
--vaadin-multi-select-combo-box-overlay-width,
|
|
@@ -4791,17 +4791,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4791
4791
|
flex-direction: column;
|
|
4792
4792
|
height: 100%;
|
|
4793
4793
|
}
|
|
4794
|
-
`;C("vaadin-multi-select-combo-box-overlay",[Ft,
|
|
4794
|
+
`;C("vaadin-multi-select-combo-box-overlay",[Ft,ru],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class su extends Va(Bt(ye(U(F)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return V`
|
|
4795
4795
|
<div id="backdrop" part="backdrop" hidden></div>
|
|
4796
4796
|
<div part="overlay" id="overlay">
|
|
4797
4797
|
<div part="loader"></div>
|
|
4798
4798
|
<div part="content" id="content"><slot></slot></div>
|
|
4799
4799
|
</div>
|
|
4800
|
-
`}}R(
|
|
4800
|
+
`}}R(su);/**
|
|
4801
4801
|
* @license
|
|
4802
4802
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4803
4803
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4804
|
-
*/class
|
|
4804
|
+
*/class au extends Ba(F){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return V`
|
|
4805
4805
|
<style>
|
|
4806
4806
|
:host {
|
|
4807
4807
|
display: block;
|
|
@@ -4828,11 +4828,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4828
4828
|
<div id="selector">
|
|
4829
4829
|
<slot></slot>
|
|
4830
4830
|
</div>
|
|
4831
|
-
`}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,o){return e instanceof Be||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,o)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}R(
|
|
4831
|
+
`}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,o){return e instanceof Be||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,o)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}R(au);/**
|
|
4832
4832
|
* @license
|
|
4833
4833
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4834
4834
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4835
|
-
*/class
|
|
4835
|
+
*/class nu extends ja(Wa(U(F))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return V`
|
|
4836
4836
|
<style>
|
|
4837
4837
|
:host([opened]) {
|
|
4838
4838
|
pointer-events: auto;
|
|
@@ -4850,15 +4850,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4850
4850
|
no-vertical-overlap
|
|
4851
4851
|
restore-focus-node="[[inputElement]]"
|
|
4852
4852
|
></vaadin-multi-select-combo-box-overlay>
|
|
4853
|
-
`}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(o=>this._comboBox._findIndex(o,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof Be||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}R(
|
|
4853
|
+
`}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(o=>this._comboBox._findIndex(o,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof Be||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}R(nu);/**
|
|
4854
4854
|
* @license
|
|
4855
4855
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4856
4856
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4857
|
-
*/const Gt=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),qa=
|
|
4857
|
+
*/const Gt=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),qa=Z(i=>class extends i{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),Gt.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,Gt.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),Gt.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&Gt.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
|
|
4858
4858
|
* @license
|
|
4859
4859
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4860
4860
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4861
|
-
*/const
|
|
4861
|
+
*/const lu=g`
|
|
4862
4862
|
:host {
|
|
4863
4863
|
--input-min-width: var(--vaadin-multi-select-combo-box-input-min-width, 4em);
|
|
4864
4864
|
--_chip-min-width: var(--vaadin-multi-select-combo-box-chip-min-width, 50px);
|
|
@@ -4896,7 +4896,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4896
4896
|
:host([auto-expand-horizontally]) [class$='container'] {
|
|
4897
4897
|
width: auto;
|
|
4898
4898
|
}
|
|
4899
|
-
`;C("vaadin-multi-select-combo-box",[Co,
|
|
4899
|
+
`;C("vaadin-multi-select-combo-box",[Co,lu],{moduleId:"vaadin-multi-select-combo-box-styles"});class du extends qa(wo(U(xe(F)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return V`
|
|
4900
4900
|
<div class="vaadin-multi-select-combo-box-container">
|
|
4901
4901
|
<div part="label">
|
|
4902
4902
|
<slot name="label"></slot>
|
|
@@ -4972,7 +4972,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4972
4972
|
color: transparent !important;
|
|
4973
4973
|
forced-color-adjust: none;
|
|
4974
4974
|
}
|
|
4975
|
-
`]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Vt(this.inputElement,this._labelController)),this._tooltipController=new Oe(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new me(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),ko(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),Zt(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,o){if(o&&e){for(let r=0;r<t.length;r++)if(t[r]&&t[r][o]===e[o])return r;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,o){const r=t?"selected":"deselected",s=this.i18n.total.replace("{count}",o||0);Zt(`${e} ${this.i18n[r]} ${s}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const o=this._getItemLabel(e);this.__announceItem(o,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],o=this._findIndex(e,t,this.itemIdPath),r=this._getItemLabel(e);let s=!1;if(o!==-1){const a=this._lastFilter;if(a&&a.toLowerCase()===r.toLowerCase()){this.__clearInternalValue();return}t.splice(o,1)}else t.push(e),s=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(r,s,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,o){e?o||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const o=this._getItemLabel(e);return t.label=o,t.setAttribute("title",o),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",r=>this._onItemRemoved(r)),t.addEventListener("mousedown",r=>this._preventBlur(r)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const o=getComputedStyle(e),r=e.clientWidth+parseInt(o.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",r}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(a=>{a.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,o=parseInt(getComputedStyle(this.inputElement).flexBasis);let r=t-o;e.length>1&&(r-=this.__getOverflowWidth());const s=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const a=[];for(let c=e.length-1,h=null;c>=0;c--){const u=this.__createChip(e[c]);this.insertBefore(u,h),h=u,a.unshift(u)}const n=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<o){for(;a.length>1;){a.pop().remove(),n.unshift(e.pop());const c=n.length>0?o+this.__getOverflowWidth():o;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=c)break}a.length===1&&(a[0].style.maxWidth=`${Math.max(s,r)}px`)}this._overflowItems=n;return}for(let a=e.length-1,n=null;a>=0;a--){const l=this.__createChip(e[a]);if(this.insertBefore(l,n),!this.autoExpandVertically&&this.$.chips.clientWidth>r)if(n===null)l.style.maxWidth=`${Math.max(s,r)}px`;else{l.remove();break}e.pop(),n=l}this._overflowItems=e}__updateOverflowChip(e,t,o,r){if(e){const s=t.length;e.label=`${s}`,e.setAttribute("count",`${s}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",s===0),e.disabled=o,e.readonly=r}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const o=this._focusedChipIndex;o!==-1&&t.preventDefault();let r;this.__isRTL?o===e.length-1?r=-1:o>-1&&(r=o+1):o===-1?r=e.length-1:o>0&&(r=o-1),r!==void 0&&(this._focusedChipIndex=r)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const o=this._focusedChipIndex;o!==-1&&t.preventDefault();let r;this.__isRTL?o===-1?r=e.length-1:o>0&&(r=o-1):o===e.length-1?r=-1:o>-1&&(r=o+1),r!==void 0&&(this._focusedChipIndex=r)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const o=this._chips;if(o.forEach((r,s)=>{r.toggleAttribute("focused",s===e)}),e>-1){const r=o[e].item,s=this._getItemLabel(r);Zt(`${s} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}R(
|
|
4975
|
+
`]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Vt(this.inputElement,this._labelController)),this._tooltipController=new Oe(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new me(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),ko(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),Zt(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,o){if(o&&e){for(let r=0;r<t.length;r++)if(t[r]&&t[r][o]===e[o])return r;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,o){const r=t?"selected":"deselected",s=this.i18n.total.replace("{count}",o||0);Zt(`${e} ${this.i18n[r]} ${s}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const o=this._getItemLabel(e);this.__announceItem(o,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],o=this._findIndex(e,t,this.itemIdPath),r=this._getItemLabel(e);let s=!1;if(o!==-1){const a=this._lastFilter;if(a&&a.toLowerCase()===r.toLowerCase()){this.__clearInternalValue();return}t.splice(o,1)}else t.push(e),s=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(r,s,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,o){e?o||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const o=this._getItemLabel(e);return t.label=o,t.setAttribute("title",o),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",r=>this._onItemRemoved(r)),t.addEventListener("mousedown",r=>this._preventBlur(r)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const o=getComputedStyle(e),r=e.clientWidth+parseInt(o.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",r}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(a=>{a.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,o=parseInt(getComputedStyle(this.inputElement).flexBasis);let r=t-o;e.length>1&&(r-=this.__getOverflowWidth());const s=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const a=[];for(let c=e.length-1,h=null;c>=0;c--){const u=this.__createChip(e[c]);this.insertBefore(u,h),h=u,a.unshift(u)}const n=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<o){for(;a.length>1;){a.pop().remove(),n.unshift(e.pop());const c=n.length>0?o+this.__getOverflowWidth():o;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=c)break}a.length===1&&(a[0].style.maxWidth=`${Math.max(s,r)}px`)}this._overflowItems=n;return}for(let a=e.length-1,n=null;a>=0;a--){const l=this.__createChip(e[a]);if(this.insertBefore(l,n),!this.autoExpandVertically&&this.$.chips.clientWidth>r)if(n===null)l.style.maxWidth=`${Math.max(s,r)}px`;else{l.remove();break}e.pop(),n=l}this._overflowItems=e}__updateOverflowChip(e,t,o,r){if(e){const s=t.length;e.label=`${s}`,e.setAttribute("count",`${s}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",s===0),e.disabled=o,e.readonly=r}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const o=this._focusedChipIndex;o!==-1&&t.preventDefault();let r;this.__isRTL?o===e.length-1?r=-1:o>-1&&(r=o+1):o===-1?r=e.length-1:o>0&&(r=o-1),r!==void 0&&(this._focusedChipIndex=r)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const o=this._focusedChipIndex;o!==-1&&t.preventDefault();let r;this.__isRTL?o===-1?r=e.length-1:o>0&&(r=o-1):o===e.length-1?r=-1:o>-1&&(r=o+1),r!==void 0&&(this._focusedChipIndex=r)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const o=this._chips;if(o.forEach((r,s)=>{r.toggleAttribute("focused",s===e)}),e>-1){const r=o[e].item,s=this._getItemLabel(r);Zt(`${s} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}R(du);C("vaadin-notification-card",g`
|
|
4976
4976
|
:host {
|
|
4977
4977
|
position: relative;
|
|
4978
4978
|
margin: var(--lumo-space-s);
|
|
@@ -5190,11 +5190,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5190
5190
|
* @license
|
|
5191
5191
|
* Copyright 2020 Google LLC
|
|
5192
5192
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5193
|
-
*/const
|
|
5193
|
+
*/const cu=(i,e)=>(i==null?void 0:i._$litType$)!==void 0;/**
|
|
5194
5194
|
* @license
|
|
5195
5195
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5196
5196
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5197
|
-
*/class
|
|
5197
|
+
*/class hu extends ba(U(xe(F))){static get template(){return V`
|
|
5198
5198
|
<style>
|
|
5199
5199
|
:host {
|
|
5200
5200
|
position: fixed;
|
|
@@ -5261,7 +5261,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5261
5261
|
<div region="bottom-end"><slot name="bottom-end"></slot></div>
|
|
5262
5262
|
</div>
|
|
5263
5263
|
<div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
|
|
5264
|
-
`}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),
|
|
5264
|
+
`}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),Bi&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,o=document.documentElement.clientHeight;t&&o>e?this.style.bottom=`${o-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class uu extends U(F){static get template(){return V`
|
|
5265
5265
|
<style>
|
|
5266
5266
|
:host {
|
|
5267
5267
|
display: block;
|
|
@@ -5290,7 +5290,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5290
5290
|
}
|
|
5291
5291
|
</style>
|
|
5292
5292
|
<vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
|
|
5293
|
-
`}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return
|
|
5293
|
+
`}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return cu(e)?ze._createAndShowNotification(o=>{vs(e,o)},t):ze._createAndShowNotification(o=>{o.innerText=e},t)}static _createAndShowNotification(e,t){const o=document.createElement(ze.is);return t&&Number.isFinite(t.duration)&&(o.duration=t.duration),t&&t.position&&(o.position=t.position),t&&t.theme&&o.setAttribute("theme",t.theme),o.renderer=e,document.body.appendChild(o),o.opened=!0,o.addEventListener("opened-changed",r=>{r.detail.value||o.remove()}),o}get _container(){return ze._container||(ze._container=document.createElement("vaadin-notification-container"),document.body.appendChild(ze._container)),ze._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),ko(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,o){if(!o)return;const r=this._oldRenderer!==e;this._oldRenderer=e,r&&(o.innerHTML="",delete o._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}R(hu);R(uu);R(ze);const Ua=g`
|
|
5294
5294
|
:host {
|
|
5295
5295
|
-webkit-tap-highlight-color: transparent;
|
|
5296
5296
|
--_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
|
|
@@ -5308,7 +5308,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5308
5308
|
* @license
|
|
5309
5309
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5310
5310
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5311
|
-
*/C("vaadin-select-item",Po,{moduleId:"lumo-select-item"});C("vaadin-select-list-box",Ua,{moduleId:"lumo-select-list-box"});const
|
|
5311
|
+
*/C("vaadin-select-item",Po,{moduleId:"lumo-select-item"});C("vaadin-select-list-box",Ua,{moduleId:"lumo-select-list-box"});const pu=g`
|
|
5312
5312
|
:host(:not([theme*='align'])) ::slotted([slot='value']) {
|
|
5313
5313
|
text-align: start;
|
|
5314
5314
|
}
|
|
@@ -5351,7 +5351,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5351
5351
|
--_lumo-selected-item-height: var(--lumo-size-s);
|
|
5352
5352
|
--_lumo-selected-item-padding: 0;
|
|
5353
5353
|
}
|
|
5354
|
-
`;C("vaadin-select",[Xe,
|
|
5354
|
+
`;C("vaadin-select",[Xe,pu],{moduleId:"lumo-select"});C("vaadin-select-value-button",g`
|
|
5355
5355
|
:host {
|
|
5356
5356
|
font-family: var(--lumo-font-family);
|
|
5357
5357
|
font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
|
|
@@ -5370,7 +5370,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5370
5370
|
::slotted(*:hover) {
|
|
5371
5371
|
background-color: transparent;
|
|
5372
5372
|
}
|
|
5373
|
-
`,{moduleId:"lumo-select-value-button"});const
|
|
5373
|
+
`,{moduleId:"lumo-select-value-button"});const mu=g`
|
|
5374
5374
|
:host {
|
|
5375
5375
|
--_lumo-item-selected-icon-display: block;
|
|
5376
5376
|
}
|
|
@@ -5406,15 +5406,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5406
5406
|
:host([theme~='align-center']) {
|
|
5407
5407
|
text-align: center;
|
|
5408
5408
|
}
|
|
5409
|
-
`;C("vaadin-select-overlay",[
|
|
5409
|
+
`;C("vaadin-select-overlay",[Li,mu],{moduleId:"lumo-select-overlay"});/**
|
|
5410
5410
|
* @license
|
|
5411
5411
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5412
5412
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5413
|
-
*/const Ya=i=>class extends
|
|
5413
|
+
*/const Ya=i=>class extends Ii(Je(i)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(e){return!this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}};/**
|
|
5414
5414
|
* @license
|
|
5415
5415
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5416
5416
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5417
|
-
*/class
|
|
5417
|
+
*/class _u extends Ya(U(ye(F))){static get is(){return"vaadin-select-item"}static get template(){return V`
|
|
5418
5418
|
<style>
|
|
5419
5419
|
:host {
|
|
5420
5420
|
display: inline-block;
|
|
@@ -5428,23 +5428,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5428
5428
|
<div part="content">
|
|
5429
5429
|
<slot></slot>
|
|
5430
5430
|
</div>
|
|
5431
|
-
`}ready(){super.ready(),this.setAttribute("role","option")}}R(
|
|
5431
|
+
`}ready(){super.ready(),this.setAttribute("role","option")}}R(_u);/**
|
|
5432
5432
|
* @license
|
|
5433
5433
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
5434
5434
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5435
|
-
*/function Ka(i,e){const{scrollLeft:t}=i;return e!=="rtl"?t:i.scrollWidth-i.clientWidth+t}function
|
|
5435
|
+
*/function Ka(i,e){const{scrollLeft:t}=i;return e!=="rtl"?t:i.scrollWidth-i.clientWidth+t}function fu(i,e,t){e!=="rtl"?i.scrollLeft=t:i.scrollLeft=i.clientWidth-i.scrollWidth+t}/**
|
|
5436
5436
|
* @license
|
|
5437
5437
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
5438
5438
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5439
|
-
*/const
|
|
5439
|
+
*/const vu=i=>class extends Ge(i){get focused(){return(this._getItems()||[]).find(Di)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,o=>!ri(o));t>=0&&this._focus(t)}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:t}=e,o=this._getItems()||[],r=o.indexOf(this.focused);let s,a;const n=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(t)?(a=-n,s=r-n):this.__isNextKey(t)?(a=n,s=r+n):t==="Home"?(a=1,s=0):t==="End"&&(a=-1,s=o.length-1),s=this._getAvailableIndex(o,s,a,l=>!ri(l)),s>=0&&(e.preventDefault(),this._focus(s,!0))}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,t=!1){const o=this._getItems();this._focusItem(o[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,o,r){const s=e.length;let a=t;for(let n=0;typeof a=="number"&&n<s;n+=1,a+=o||1){a<0?a=s-1:a>=s&&(a=0);const l=e[a];if(!l.hasAttribute("disabled")&&this.__isMatchingItem(l,r))return a}return-1}__isMatchingItem(e,t){return typeof t=="function"?t(e):!0}};/**
|
|
5440
5440
|
* @license
|
|
5441
5441
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5442
5442
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5443
|
-
*/const Ga=i=>class extends
|
|
5443
|
+
*/const Ga=i=>class extends vu(i){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,o=>o.tabIndex===0&&!ri(o));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Pi(e,()=>{this._setItems(this._filterItems(Qs(this)))})}_getItems(){return this.items}_enhanceItems(e,t,o,r){if(!r&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(a=>{t?a.setAttribute("orientation",t):a.removeAttribute("orientation")}),this._setFocusable(o<0||!o?0:o);const s=e[o];e.forEach(a=>{a.selected=a===s}),s&&!s.disabled&&this._scrollToItem(o)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let o;t&&!t.disabled&&(o=this.items.indexOf(t))>=0&&(this.selected=o)}_searchKey(e,t){this._searchReset=be.debounce(this._searchReset,Ve.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(r=>this.__isMatchingKey(r))||(this._searchBuf=t.toLowerCase());const o=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,o,1,r=>this.__isMatchingKey(r)&&getComputedStyle(r).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,o=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const r=this._searchKey(o,t);r>=0&&this._focus(r);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(o=>{o.tabIndex=o===t?0:-1})}_focus(e){this.items.forEach((t,o)=>{t.focused=o===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const o=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],r=this._scrollerElement.getBoundingClientRect(),s=(this.items[e+1]||t).getBoundingClientRect(),a=(this.items[e-1]||t).getBoundingClientRect();let n=0;!this._isRTL&&s[o[1]]>=r[o[1]]||this._isRTL&&s[o[1]]<=r[o[1]]?n=s[o[1]]-r[o[1]]:(!this._isRTL&&a[o[0]]<=r[o[0]]||this._isRTL&&a[o[0]]>=r[o[0]])&&(n=a[o[0]]-r[o[0]]),this._scroll(n)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",o=Ka(this._scrollerElement,t)+e;fu(this._scrollerElement,t,o)}}};/**
|
|
5444
5444
|
* @license
|
|
5445
5445
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5446
5446
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5447
|
-
*/class
|
|
5447
|
+
*/class gu extends Ga(U(ye(Ae(F)))){static get is(){return"vaadin-select-list-box"}static get template(){return V`
|
|
5448
5448
|
<style>
|
|
5449
5449
|
:host {
|
|
5450
5450
|
display: flex;
|
|
@@ -5464,15 +5464,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5464
5464
|
<div part="items">
|
|
5465
5465
|
<slot></slot>
|
|
5466
5466
|
</div>
|
|
5467
|
-
`}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}R(
|
|
5467
|
+
`}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}R(gu);/**
|
|
5468
5468
|
* @license
|
|
5469
5469
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5470
5470
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5471
|
-
*/const
|
|
5471
|
+
*/const bu=i=>class extends Hi(Bt(ye(i))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,t){if(e&&t){const o="--vaadin-select-overlay-width",r=getComputedStyle(t).getPropertyValue(o);r===""?this.style.removeProperty(o):this.style.setProperty(o,r)}}};/**
|
|
5472
5472
|
* @license
|
|
5473
5473
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5474
5474
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5475
|
-
*/const
|
|
5475
|
+
*/const yu=g`
|
|
5476
5476
|
:host {
|
|
5477
5477
|
align-items: flex-start;
|
|
5478
5478
|
justify-content: flex-start;
|
|
@@ -5487,18 +5487,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5487
5487
|
outline: 3px solid;
|
|
5488
5488
|
}
|
|
5489
5489
|
}
|
|
5490
|
-
`;C("vaadin-select-overlay",[Ft,
|
|
5490
|
+
`;C("vaadin-select-overlay",[Ft,yu],{moduleId:"vaadin-select-overlay-styles"});class xu extends bu(U(F)){static get is(){return"vaadin-select-overlay"}static get template(){return V`
|
|
5491
5491
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
5492
5492
|
<div part="overlay" id="overlay" tabindex="0">
|
|
5493
5493
|
<div part="content" id="content">
|
|
5494
5494
|
<slot></slot>
|
|
5495
5495
|
</div>
|
|
5496
5496
|
</div>
|
|
5497
|
-
`}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}R(
|
|
5497
|
+
`}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}R(xu);/**
|
|
5498
5498
|
* @license
|
|
5499
5499
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5500
5500
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5501
|
-
*/const
|
|
5501
|
+
*/const wu=g`
|
|
5502
5502
|
:host {
|
|
5503
5503
|
display: inline-block;
|
|
5504
5504
|
position: relative;
|
|
@@ -5544,17 +5544,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5544
5544
|
* @license
|
|
5545
5545
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5546
5546
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5547
|
-
*/C("vaadin-select-value-button",
|
|
5547
|
+
*/C("vaadin-select-value-button",wu,{moduleId:"vaadin-select-value-button-styles"});class Cu extends $i(U(F)){static get is(){return"vaadin-select-value-button"}static get template(){return V`
|
|
5548
5548
|
<div class="vaadin-button-container">
|
|
5549
5549
|
<span part="label">
|
|
5550
5550
|
<slot></slot>
|
|
5551
5551
|
</span>
|
|
5552
5552
|
</div>
|
|
5553
|
-
`}}R(
|
|
5553
|
+
`}}R(Cu);/**
|
|
5554
5554
|
* @license
|
|
5555
5555
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
5556
5556
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5557
|
-
*/const
|
|
5557
|
+
*/const Pu=g`
|
|
5558
5558
|
.sr-only {
|
|
5559
5559
|
border: 0 !important;
|
|
5560
5560
|
clip: rect(1px, 1px, 1px, 1px) !important;
|
|
@@ -5572,15 +5572,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5572
5572
|
* @license
|
|
5573
5573
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
5574
5574
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5575
|
-
*/class
|
|
5575
|
+
*/class ku extends me{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,o)=>{o._setFocusElement(t),o.ariaTarget=t,o.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
|
|
5576
5576
|
* @license
|
|
5577
5577
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5578
5578
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5579
|
-
*/const
|
|
5579
|
+
*/const Eu=i=>class extends Ht(go(zi(Ge(bo(i))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${Mt()}`,this._srLabelController=new ha(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new ku(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new Yi(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new Oe(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),e.addEventListener("click",t=>{const o=t.composedPath().find(r=>r._hasVaadinItemMixin);this.__dispatchChangePending=!!(o&&o.value!==void 0&&o.value!==this.value),this.opened=!1},!0),this.__lastMenuElement=e)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),t!==void 0&&!this.__dispatchChangePending&&this.validate()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(e){e.preventDefault()}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const t=this._menuElement.selected,o=t!==void 0?t:-1,r=this._menuElement._searchKey(o,e.key);r>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=r)}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1)}_openedChanged(e,t,o){if(!(!t||!o)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${o.offsetWidth}px`);const r=this.hasAttribute("focus-ring");this._openedWithFocusRing=r,r&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e}}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t;const o=e.getAttribute("label");o?t=this.__createItemElement({label:o}):t=e.cloneNode(!0),t._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){const t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){const t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){const t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const t=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){const r=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(r,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const o=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};rt(e,"aria-labelledby",o),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;const t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),o=e.childElementCount>0;return t||o}_updateSelectedItem(e,t){if(t){const o=e==null?e:e.toString();this._menuElement.selected=t.reduce((r,s,a)=>r===void 0&&s.value===o?a:r,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||this.items.length===0){e.textContent="";return}let o=e.firstElementChild;o||(o=document.createElement("vaadin-select-list-box"),e.appendChild(o)),o.textContent="",this.items.forEach(r=>{o.appendChild(this.__createItemElement(r))})}__dispatchChange(){return eo(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
|
|
5580
5580
|
* @license
|
|
5581
5581
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5582
5582
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5583
|
-
*/C("vaadin-select",[Sa,Ta,
|
|
5583
|
+
*/C("vaadin-select",[Sa,Ta,Pu],{moduleId:"vaadin-select-styles"});class Au extends Eu(xe(U(F))){static get is(){return"vaadin-select"}static get template(){return V`
|
|
5584
5584
|
<style>
|
|
5585
5585
|
:host {
|
|
5586
5586
|
position: relative;
|
|
@@ -5633,7 +5633,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5633
5633
|
<div class="sr-only">
|
|
5634
5634
|
<slot name="sr-label"></slot>
|
|
5635
5635
|
</div>
|
|
5636
|
-
`}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),ko(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}R(
|
|
5636
|
+
`}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),ko(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}R(Au);const Ja=g`
|
|
5637
5637
|
/* Optical centering */
|
|
5638
5638
|
:host::before,
|
|
5639
5639
|
:host::after {
|
|
@@ -5772,11 +5772,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5772
5772
|
* @license
|
|
5773
5773
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5774
5774
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5775
|
-
*/const
|
|
5775
|
+
*/const Iu=i=>class extends i{static get properties(){return{opened:{type:Boolean,value:!1,notify:!0},noCloseOnOutsideClick:{type:Boolean,value:!1},noCloseOnEsc:{type:Boolean,value:!1},modeless:{type:Boolean,value:!1},overlayRole:{type:String,value:"dialog"}}}ready(){super.ready();const e=this.$.overlay;e.addEventListener("vaadin-overlay-outside-click",this._handleOutsideClick.bind(this)),e.addEventListener("vaadin-overlay-escape-press",this._handleEscPress.bind(this)),e.addEventListener("vaadin-overlay-closed",this.__handleOverlayClosed.bind(this)),this._overlayElement=e}__handleOverlayClosed(){this.dispatchEvent(new CustomEvent("closed"))}connectedCallback(){super.connectedCallback(),this.__restoreOpened&&(this.opened=!0)}disconnectedCallback(){super.disconnectedCallback(),setTimeout(()=>{this.isConnected||(this.__restoreOpened=this.opened,this.opened=!1)})}_onOverlayOpened(e){e.detail.value===!1&&(this.opened=!1)}_handleOutsideClick(e){this.noCloseOnOutsideClick&&e.preventDefault()}_handleEscPress(e){this.noCloseOnEsc&&e.preventDefault()}_bringOverlayToFront(){this.modeless&&this._overlayElement.bringToFront()}};/**
|
|
5776
5776
|
* @license
|
|
5777
5777
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5778
5778
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5779
|
-
*/const
|
|
5779
|
+
*/const Su=g`
|
|
5780
5780
|
[part='header'],
|
|
5781
5781
|
[part='header-content'],
|
|
5782
5782
|
[part='footer'] {
|
|
@@ -5951,11 +5951,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5951
5951
|
* @license
|
|
5952
5952
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
5953
5953
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5954
|
-
*/const
|
|
5954
|
+
*/const Tu=i=>class extends i{static get properties(){return{ariaLabel:{type:String,value:""},contentHeight:{type:String},contentWidth:{type:String}}}static get observers(){return["__updateContentHeight(contentHeight, _overlayElement)","__updateContentWidth(contentWidth, _overlayElement)"]}__updateDimension(e,t,o){const r=`--_vaadin-confirm-dialog-content-${t}`;o?e.style.setProperty(r,o):e.style.removeProperty(r)}__updateContentHeight(e,t){t&&this.__updateDimension(t,"height",e)}__updateContentWidth(e,t){t&&this.__updateDimension(t,"width",e)}};/**
|
|
5955
5955
|
* @license
|
|
5956
5956
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
5957
5957
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5958
|
-
*/const
|
|
5958
|
+
*/const Du=g`
|
|
5959
5959
|
:host {
|
|
5960
5960
|
--_vaadin-confirm-dialog-content-width: auto;
|
|
5961
5961
|
--_vaadin-confirm-dialog-content-height: auto;
|
|
@@ -5978,7 +5978,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5978
5978
|
* @license
|
|
5979
5979
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
5980
5980
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5981
|
-
*/C("vaadin-confirm-dialog-overlay",[Ft,
|
|
5981
|
+
*/C("vaadin-confirm-dialog-overlay",[Ft,Su,Du],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class zu extends Bt(ye(U(F))){static get is(){return"vaadin-confirm-dialog-overlay"}static get template(){return V`
|
|
5982
5982
|
<div part="backdrop" id="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
5983
5983
|
<div part="overlay" id="overlay" tabindex="0">
|
|
5984
5984
|
<section id="resizerContainer" class="resizer-container">
|
|
@@ -5999,7 +5999,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5999
5999
|
</footer>
|
|
6000
6000
|
</section>
|
|
6001
6001
|
</div>
|
|
6002
|
-
`}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}R(
|
|
6002
|
+
`}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}R(zu);class Ru extends Tu(Iu(Ht(mo(F)))){static get is(){return"vaadin-confirm-dialog-dialog"}static get template(){return V`
|
|
6003
6003
|
<style>
|
|
6004
6004
|
:host {
|
|
6005
6005
|
display: none;
|
|
@@ -6020,15 +6020,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6020
6020
|
restore-focus-on-close
|
|
6021
6021
|
focus-trap
|
|
6022
6022
|
></vaadin-confirm-dialog-overlay>
|
|
6023
|
-
`}}R(
|
|
6023
|
+
`}}R(Ru);/**
|
|
6024
6024
|
* @license
|
|
6025
6025
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
6026
6026
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6027
|
-
*/const
|
|
6027
|
+
*/const Ou=i=>class extends i{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new me(this,"header","h3",{initializer:e=>{this._headerNode=e}}),this.addController(this._headerController),this._messageController=new me(this,"","div",{multiple:!0,observe:!1,initializer:e=>{const t=document.createElement("div");t.style.display="contents";const o=`confirm-dialog-message-${Mt()}`;t.id=o,this.appendChild(t),t.appendChild(e),this._messageNodes=[...this._messageNodes,t]}}),this.addController(this._messageController),this._cancelController=new me(this,"cancel-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("cancel",e)}}),this.addController(this._cancelController),this._rejectController=new me(this,"reject-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("reject",e)}}),this.addController(this._rejectController),this._confirmController=new me(this,"confirm-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("confirm",e)}}),this.addController(this._confirmController)}_initOverlay(e){e.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),e.addEventListener("vaadin-overlay-open",()=>this.__onDialogOpened()),e.addEventListener("vaadin-overlay-closed",()=>this.__onDialogClosed()),e.setAttribute("role","alertdialog")}__onDialogOpened(){const e=this._overlayElement;this.__slottedNodes.forEach(o=>{e.appendChild(o)});const t=e.querySelector('[slot="confirm-button"]');t&&t.focus()}__onDialogClosed(){this.__slottedNodes.forEach(e=>{this.appendChild(e)}),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(e,t,o){!e||!t||(o!==void 0?rt(e,"aria-describedby",{newId:o,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):t.forEach(r=>{rt(e,"aria-describedby",{newId:r.id})}),this.__oldAccessibleDescriptionRef=o)}__setupSlottedButton(e,t){const o=`_${e}Button`,r=`__${e}`;this[o]&&this[o]!==t&&this[o].remove(),t.addEventListener("click",this[r]),this[o]=t}__updateCancelButton(e,t,o,r){e&&(e===this._cancelController.defaultNode&&(e.textContent=t,e.setAttribute("theme",o)),e.toggleAttribute("hidden",!r))}__updateConfirmButton(e,t,o){e&&e===this._confirmController.defaultNode&&(e.textContent=t,e.setAttribute("theme",o))}__updateHeaderNode(e,t){e&&e===this._headerController.defaultNode&&(e.textContent=t)}__updateMessageNodes(e,t){if(e&&e.length>0){const o=e.find(r=>this._messageController.defaultNode&&r===this._messageController.defaultNode.parentElement);o&&(o.firstChild.textContent=t)}}__updateRejectButton(e,t,o,r){e&&(e===this._rejectController.defaultNode&&(e.textContent=t,e.setAttribute("theme",o)),e.toggleAttribute("hidden",!r))}_escPressed(e){e.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(e){return e||"confirmation"}};/**
|
|
6028
6028
|
* @license
|
|
6029
6029
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
6030
6030
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6031
|
-
*/class
|
|
6031
|
+
*/class Mu extends Ou(xe(mo(Ae(F)))){static get template(){return V`
|
|
6032
6032
|
<style>
|
|
6033
6033
|
:host,
|
|
6034
6034
|
[hidden] {
|
|
@@ -6055,7 +6055,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6055
6055
|
<slot name="reject-button"></slot>
|
|
6056
6056
|
<slot name="confirm-button"></slot>
|
|
6057
6057
|
</div>
|
|
6058
|
-
`}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}R(
|
|
6058
|
+
`}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}R(Mu);C("vaadin-tab",g`
|
|
6059
6059
|
:host {
|
|
6060
6060
|
box-sizing: border-box;
|
|
6061
6061
|
padding: 0.5rem 0.75rem;
|
|
@@ -6292,11 +6292,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6292
6292
|
* @license
|
|
6293
6293
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6294
6294
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6295
|
-
*/const
|
|
6295
|
+
*/const Nu=i=>class extends Ya(i){ready(){super.ready(),this.setAttribute("role","tab")}_onKeyUp(e){const t=this.hasAttribute("active");if(super._onKeyUp(e),t){const o=this.querySelector("a");o&&o.click()}}};/**
|
|
6296
6296
|
* @license
|
|
6297
6297
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6298
6298
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6299
|
-
*/const
|
|
6299
|
+
*/const Lu=g`
|
|
6300
6300
|
:host {
|
|
6301
6301
|
display: block;
|
|
6302
6302
|
}
|
|
@@ -6319,10 +6319,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6319
6319
|
* @license
|
|
6320
6320
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6321
6321
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6322
|
-
*/C("vaadin-tab",
|
|
6322
|
+
*/C("vaadin-tab",Lu,{moduleId:"vaadin-tab-styles"});class Vu extends xe(U(Nu(Ae(F)))){static get template(){return V`
|
|
6323
6323
|
<slot></slot>
|
|
6324
6324
|
<slot name="tooltip"></slot>
|
|
6325
|
-
`}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new Oe(this),this.addController(this._tooltipController)}}R(
|
|
6325
|
+
`}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new Oe(this),this.addController(this._tooltipController)}}R(Vu);C("vaadin-tabs",g`
|
|
6326
6326
|
:host {
|
|
6327
6327
|
-webkit-tap-highlight-color: transparent;
|
|
6328
6328
|
}
|
|
@@ -6564,11 +6564,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6564
6564
|
* @license
|
|
6565
6565
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6566
6566
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6567
|
-
*/const
|
|
6567
|
+
*/const Fu=i=>class extends qa(Ga(i)){static get properties(){return{orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver(()=>{setTimeout(()=>this._updateOverflow())})}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return!this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",()=>this._updateOverflow()),this.setAttribute("role","tablist"),Fi(this,()=>{this._updateOverflow()})}_onResize(){this._updateOverflow()}__tabsItemsChanged(e){this.__itemsResizeObserver.disconnect(),(e||[]).forEach(t=>{this.__itemsResizeObserver.observe(t)}),this._updateOverflow()}_scrollForward(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),o=this._scrollerElement.getBoundingClientRect(),r=[...this.items].reverse().find(n=>this._isItemVisible(n,e,t,o)).getBoundingClientRect(),s=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let a;if(this.__isRTL){const n=o.right-s;a=r.right-n}else{const n=o.left+s;a=r.left-n}-this.__direction*a<1&&(a=-this.__direction*(this._scrollOffset-s)),this._scroll(a)}_scrollBack(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),o=this._scrollerElement.getBoundingClientRect(),r=this.items.find(n=>this._isItemVisible(n,e,t,o)).getBoundingClientRect(),s=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let a;if(this.__isRTL){const n=o.left+s;a=r.left-n}else{const n=o.right-s;a=r.right-n}this.__direction*a<1&&(a=this.__direction*(this._scrollOffset-s)),this._scroll(a)}_isItemVisible(e,t,o,r){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const s=this.__isRTL?o:t,a=this.__isRTL?t:o,n=r.right-s,l=r.left+a,c=e.getBoundingClientRect();return n>Math.floor(c.left)&&l<Math.ceil(c.right)}_getNavigationButtonVisibleWidth(e){const t=this.shadowRoot.querySelector(`[part="${e}"]`);return window.getComputedStyle(t).opacity==="0"?0:t.clientWidth}_updateOverflow(){const e=this._vertical?this._scrollerElement.scrollTop:Ka(this._scrollerElement,this.getAttribute("dir")),t=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let o=Math.floor(e)>1?"start":"";Math.ceil(e)<Math.ceil(t-this._scrollOffset)&&(o+=" end"),this.__direction===1&&(o=o.replace(/start|end/giu,r=>r==="start"?"end":"start")),o?this.setAttribute("overflow",o.trim()):this.removeAttribute("overflow")}};/**
|
|
6568
6568
|
* @license
|
|
6569
6569
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6570
6570
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6571
|
-
*/const
|
|
6571
|
+
*/const Bu=g`
|
|
6572
6572
|
:host {
|
|
6573
6573
|
display: flex;
|
|
6574
6574
|
align-items: center;
|
|
@@ -6648,7 +6648,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6648
6648
|
* @license
|
|
6649
6649
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6650
6650
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6651
|
-
*/C("vaadin-tabs",
|
|
6651
|
+
*/C("vaadin-tabs",Bu,{moduleId:"vaadin-tabs-styles"});class Hu extends Fu(xe(U(F))){static get template(){return V`
|
|
6652
6652
|
<div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
|
|
6653
6653
|
|
|
6654
6654
|
<div id="scroll" part="tabs">
|
|
@@ -6656,7 +6656,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6656
6656
|
</div>
|
|
6657
6657
|
|
|
6658
6658
|
<div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
|
|
6659
|
-
`}static get is(){return"vaadin-tabs"}}R(Bu);function es(i,e){d.addMessages(i,e)}function Hu(i){d.$locale.set(i)}const ts={en:{titleProductRestriction:"Product Restriction",productRestrictionText:"<p>While product-restrictioned, access to your account will be entirely restricted.</br>product-restriction can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a restriction period",selectAPeriod:"Select a period",Casino:"Casino",Sports:"Sports",Virtuals:"Virtuals","6Month":"6 Months","1Year":"1 Year","2Year":"2 Years","5Year":"5 Years",Until:"Until",Permanent:"Permanent",deniedProductText:"Restricted product until {date}",temporaryProductRestriction:"Your product-restriction period will last until the {date} 23:59.",permanentProductRestriction:"Your product-restriction period will be permanent.",confirmationModalTitle:"Product Restriction",productRestrictionSuccess:"Product restrcition active",confirmationModalTextPeriodProductRestriction:"You are choosing to restrict yourself from the following products until {date} / for {period}. </br> {product} </br> This action cannot be reversed once confirmed </br> Please confirm you wish to proceed.",errorProductRestrictionCall:"There was a problem while making the product restriction request.",generalError:"There was an error while fetching the product restriction.",InvalidSession:"The session is exipired."},"zh-hk":{titleProductRestriction:"產品限制",productRestrictionText:"<p>在產品限制期間,您的帳戶訪問將完全受限。</br>產品限制只能在您選擇的期限過後,通過與客戶支持溝通解除,這將需要審查和冷靜期。</br>或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中休息(最多6週)。</br>如果您更願意關閉您的帳戶,您可以通過'<a href='{baseurl}/{lang}/account/account-closure'>帳戶關閉</a>'選項選擇這樣做。</br>我們建議您也閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取更多建議。",productRestrictionEmailText:"電子郵件:<a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"持續時間:",dateInstructions:"為了手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇限制期限",selectAPeriod:"選擇一個期限",Casino:"賭場",Sports:"體育",Virtuals:"虛擬","6Month":"6個月","1Year":"1年","2Year":"2年","5Year":"5年",Until:"直到",Permanent:"永久",deniedProductText:"受限產品直到 {date}",temporaryProductRestriction:"您的產品限制期將持續到 {date} 23:59。",permanentProductRestriction:"您的產品限制期將是永久的。",confirmationModalTitle:"確認",productRestrictionSuccess:"產品限制已激活",confirmationModalTextPeriodProductRestriction:"您選擇將自己限制使用以下產品,直到 {date} / 為期 {period}。 </br> {product} </br> 一旦確認,此操作無法撤銷 </br> 請確認您希望繼續。",errorProductRestrictionCall:"在進行產品限制請求時出現問題。",generalError:"獲取產品限制時出現錯誤。",InvalidSession:"會話已過期。"},fr:{titleProductRestriction:"Restriction de produit",productRestrictionText:"<p>Pendant la restriction de produit, l'accès à votre compte sera entièrement restreint.</br>La restriction de produit ne peut être levée qu'après la période que vous avez sélectionnée en communiquant avec le support client, ce qui sera soumis à une révision et à une période de réflexion.</br>Alternativement, vous pouvez choisir de prendre un 'temps mort' (une pause de jusqu'à 6 semaines) de nos services via l'option '<a href='{baseurl}/{lang}/account/timeout'>Temps mort</a>'.</br>Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br>Nous vous recommandons également de lire nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu responsable</a>' pour plus de conseils si nécessaire.",productRestrictionEmailText:"E-mail : <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durée :",dateInstructions:"Pour entrer manuellement la date, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période de restriction",selectAPeriod:"Sélectionnez une période",Casino:"Casino",Sports:"Sports",Virtuals:"Virtuels","6Month":"6 Mois","1Year":"1 An","2Year":"2 Ans","5Year":"5 Ans",Until:"Jusqu'à",Permanent:"Permanent",deniedProductText:"Produit restreint jusqu'au {date}",temporaryProductRestriction:"Votre période de restriction de produit durera jusqu'à {date} 23:59.",permanentProductRestriction:"Votre période de restriction de produit sera permanente.",confirmationModalTitle:"Confirmation",productRestrictionSuccess:"Restriction de produit active",confirmationModalTextPeriodProductRestriction:"Vous choisissez de vous restreindre des produits suivants jusqu'au {date} / pour {period}. </br> {product} </br> Cette action ne peut pas être annulée une fois confirmée </br> Veuillez confirmer que vous souhaitez continuer.",errorProductRestrictionCall:"Il y a eu un problème lors de la demande de restriction de produit.",generalError:"Il y a eu une erreur lors de la récupération de la restriction de produit.",InvalidSession:"La session a expiré."},ro:{titleProductRestriction:"Restricție de produs",productRestrictionText:"<p>În timpul restricției de produs, accesul la contul dvs. va fi complet restricționat.</br>Restricția de produs poate fi ridicată doar după ce perioada pe care ați selectat-o a trecut, prin comunicarea cu Suportul pentru Clienți, care va fi supusă unei revizuiri și unei perioade de răcire.</br>Alternativ, puteți alege să luați o 'pauză' (o pauză de până la 6 săptămâni) de la serviciile noastre prin opțiunea '<a href='{baseurl}/{lang}/account/timeout'>Pauză</a>'.</br>Dacă preferați doar să vă închideți contul, puteți alege să faceți acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br>Vă recomandăm, de asemenea, să citiți paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc responsabil</a>' pentru sfaturi suplimentare, dacă aveți nevoie.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durată:",dateInstructions:"Pentru a introduce manual data, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de restricție",selectAPeriod:"Selectați o perioadă",Casino:"Cazinou",Sports:"Sporturi",Virtuals:"Virtuale","6Month":"6 Luni","1Year":"1 An","2Year":"2 Ani","5Year":"5 Ani",Until:"Până la",Permanent:"Permanent",deniedProductText:"Produs restricționat până la {date}",temporaryProductRestriction:"Perioada dvs. de restricție de produs va dura până la {date} 23:59.",permanentProductRestriction:"Perioada dvs. de restricție de produs va fi permanentă.",confirmationModalTitle:"Confirmare",productRestrictionSuccess:"Restricție de produs activă",confirmationModalTextPeriodProductRestriction:"Alegeți să vă restricționați de la următoarele produse până la {date} / pentru {period}. </br> {product} </br> Această acțiune nu poate fi inversată odată confirmată </br> Vă rugăm să confirmați că doriți să continuați.",errorProductRestrictionCall:"A apărut o problemă în timpul solicitării de restricție de produs.",generalError:"A apărut o eroare la preluarea restricției de produs.",InvalidSession:"Sesiunea a expirat."},es:{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriodProductRestriction:"Está eligiendo restringirse de los siguientes productos hasta {date} / por {period}. </br> {product} </br> Esta acción no se puede revertir una vez confirmada </br> Por favor confirme que desea continuar.",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},pt:{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriodProductRestriction:"Você está escolhendo se restringir dos seguintes produtos até {date} / por {period}. </br> {product} </br> Esta ação não pode ser revertida uma vez confirmada </br> Por favor, confirme que deseja continuar.",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},hr:{titleProductRestriction:"Ograničenje proizvoda",productRestrictionText:"<p>Tijekom ograničenja proizvoda, pristup vašem računu bit će potpuno ograničen.</br>Ograničenje proizvoda može se ukinuti tek nakon što prođe razdoblje koje ste odabrali, komunikacijom s korisničkom podrškom, što će biti podložno pregledu i razdoblju hlađenja.</br>Alternativno, možete odabrati 'pauzu' (pauza do 6 tjedana) od naših usluga putem opcije '<a href='{baseurl}/{lang}/account/timeout'>Pauza</a>'.</br>Ako radije želite zatvoriti svoj račun, možete to učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br>Preporučujemo vam da također pročitate naše stranice pomoći '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za daljnje savjete ako vam je potrebno.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje ograničenja",selectAPeriod:"Odaberite razdoblje",Casino:"Kasino",Sports:"Sportovi",Virtuals:"Virtualni","6Month":"6 Mjeseci","1Year":"1 Godina","2Year":"2 Godine","5Year":"5 Godina",Until:"Do",Permanent:"Trajno",deniedProductText:"Ograničeni proizvod do {date}",temporaryProductRestriction:"Vaše razdoblje ograničenja proizvoda trajat će do {date} 23:59.",permanentProductRestriction:"Vaše razdoblje ograničenja proizvoda bit će trajno.",confirmationModalTitle:"Potvrda",productRestrictionSuccess:"Ograničenje proizvoda aktivno",confirmationModalTextPeriodProductRestriction:"Odabirete ograničiti se od sljedećih proizvoda do {date} / za {period}. </br> {product} </br> Ova radnja se ne može poništiti nakon potvrde </br> Molimo potvrdite da želite nastaviti.",errorProductRestrictionCall:"Došlo je do problema prilikom podnošenja zahtjeva za ograničenje proizvoda.",generalError:"Došlo je do pogreške prilikom dohvaćanja ograničenja proizvoda.",InvalidSession:"Sesija je istekla."},"pt-br":{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriodProductRestriction:"Você está escolhendo se restringir dos seguintes produtos até {date} / por {period}. </br> {product} </br> Esta ação não pode ser revertida uma vez confirmada </br> Por favor, confirme que deseja continuar.",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},"es-mx":{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriodProductRestriction:"Está eligiendo restringirse de los siguientes productos hasta {date} / por {period}. </br> {product} </br> Esta acción no se puede revertir una vez confirmada </br> Por favor confirme que desea continuar.",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},tr:{titleProductRestriction:"Ürün Kısıtlaması",productRestrictionText:"<p>Ürün kısıtlaması sırasında, hesabınıza erişim tamamen kısıtlanacaktır.</br>Ürün kısıtlaması, yalnızca seçtiğiniz süre geçtikten sonra Müşteri Desteği ile iletişime geçerek kaldırılabilir, bu da inceleme ve soğuma süresine tabi olacaktır.</br>Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Zaman aşımı</a>' seçeneği aracılığıyla hizmetlerimizden 'zaman aşımı' (6 haftaya kadar bir ara) vermeyi seçebilirsiniz.</br>Hesabınızı kapatmayı tercih ederseniz, '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla bunu yapabilirsiniz.</br>İhtiyacınız olursa, daha fazla tavsiye için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Kumar</a>' yardım sayfalarımızı okumanızı öneririz.",productRestrictionEmailText:"E-posta: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için aşağıdaki formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kısıtlama süresi seçin",selectAPeriod:"Bir dönem seçin",Casino:"Kumarhane",Sports:"Sporlar",Virtuals:"Sanal","6Month":"6 Ay","1Year":"1 Yıl","2Year":"2 Yıl","5Year":"5 Yıl",Until:"Kadar",Permanent:"Kalıcı",deniedProductText:"Ürün {date} tarihine kadar kısıtlandı",temporaryProductRestriction:"Ürün kısıtlama süreniz {date} 23:59'a kadar sürecektir.",permanentProductRestriction:"Ürün kısıtlama süreniz kalıcı olacaktır.",confirmationModalTitle:"Onay",productRestrictionSuccess:"Ürün kısıtlaması aktif",confirmationModalTextPeriodProductRestriction:"Aşağıdaki ürünlerden {date} tarihine kadar / {period} süresince kendinizi kısıtlamayı seçiyorsunuz. </br> {product} </br> Bu işlem onaylandıktan sonra geri alınamaz </br> Lütfen devam etmek istediğinizi onaylayın.",errorProductRestrictionCall:"Ürün kısıtlama isteği yapılırken bir sorun oluştu.",generalError:"Ürün kısıtlaması alınırken bir hata oluştu.",InvalidSession:"Oturum süresi doldu."}};function $u(i){d.append_styles(i,"svelte-1t8brnd",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerProductRestrictionTitleNone{display:none}.ProductRestrictionContainer{border-radius:var(--emw--border-radius-medium, 10px);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));container-type:inline-size}.ProductRestrictionContainer .ProductRestrictionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));padding:50px;border-radius:var(--emw--border-radius-medium, 10px);max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton{display:inline-flex;align-items:center;color:var(--emw--color-gray-300, #58586b);border:none;background-color:transparent;column-gap:10px;margin-bottom:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton .PlayerProductRestrictionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .PlayerProductRestrictionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription{color:var(--emw--color-gray-300, #58586b);line-height:24px;min-height:180px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription p{font-size:16px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper{width:50%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel p{margin:0;font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon.active{transform:rotateZ(0deg)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586b);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));border-radius:0px 0px var(--emw--border-radius-medium, 10px) var(--emw--border-radius-medium, 10px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transition:all 0.5s ease-in-out;font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown div:hover{color:var(--emw--color-white, #ffffff);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown.active{max-height:300px;opacity:1}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper{color:var(--emw--color-gray-300, #58586b);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper .ProductRestrictionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper .ProductRestrictionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification{color:var(--emw--color-gray-300, #58586b);line-height:24px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification .ProductRestrictionDescriptionText p{font-size:16px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification .ProductRestrictionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:5px;color:var(--emw--color-gray-300, #58586b);font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel .label{font-size:var(--emw--size-standard, 16px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel p{margin:0}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent{display:inherit;flex-direction:row;align-items:center;justify-content:center;background-color:transparent;border:none;cursor:pointer;gap:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .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)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox [type=checkbox]{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox::before{content:"";width:12.75px;height:12.75px;border-radius:100px;cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .toggleCheckbox{border:1px solid var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .toggleCheckbox::before{background-color:var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .label{color:var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons{margin-top:40px;width:50%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--color-primary, #23b04e);border-radius:var(--emw--border-radius-medium, 10px);padding:20px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #ffffff);cursor:pointer;border:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave:hover{filter:brightness(0.9)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave:disabled{opacity:0.5;cursor:default}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionError{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:var(--emw--font-weight-normal, 500)}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .MenuReturnButton{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .PlayerProductRestrictionTitle{display:block;width:30%;height:20px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionDescription{display:flex;flex-direction:column;gap:10px;width:75%}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionDescription ui-skeleton:last-child{margin-top:30px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionConfigWrapper{border:none}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionNotification{margin-bottom:30px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionDescription .ProductRestrictionDescriptionText{color:var(--emw--color-gray-300, #58586b)}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionConfigWrapper{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon{width:10px;height:10px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionDateWrapper{width:100%}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionNotification{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionActionButtons{width:100%;grid-template-columns:1fr 1fr}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionActionButtons .ProductRestrictionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile.Skeleton .MenuReturnButton{display:block;width:200px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile.Skeleton .PlayerProductRestrictionTitle{display:none}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function os(i,e,t){const o=i.slice();return o[74]=e[t],o[76]=t,o}function is(i,e,t){const o=i.slice();return o[77]=e[t],o}function ju(i,e,t){const o=i.slice();return o[69]=e[t],o}function Wu(i,e,t){const o=i.slice();return o[69]=e[t],o}function qu(i){let e,t,o,r,s=i[23]("titleProductRestriction")+"",a,n,l,c,h=i[23]("productRestrictionText",{values:{baseurl:i[1],lang:i[0]}})+"",u,_,p=i[23]("productRestrictionEmailText")+"",x,P,A,B,N=i[23](`${i[14]}`)+"",L,Q,H,I,he,te,le,G,D,de,fe,k,b,f,y,v=i[23]("save")+"",S,E,M,W,U,J,oe,we,ee=i[25]&&Yu(i),ue=d.ensure_array_like(i[8]),K=[];for(let w=0;w<ue.length;w+=1)K[w]=rs(is(i,ue,w));let j=i[18]&&ss(i);function pe(w,Y){return w[17]?Ju:w[13]?Ku:Gu}let Ce=pe(i),ie=Ce(i),Ie=d.ensure_array_like(i[9]),re=[];for(let w=0;w<Ie.length;w+=1)re[w]=ns(os(i,Ie,w));let ae=i[22]&&ls(i),ke=i[26]&&Xu(i);return{c(){e=d.element("div"),t=d.element("div"),ee&&ee.c(),o=d.space(),r=d.element("h2"),a=d.text(s),n=d.space(),l=d.element("div"),c=d.element("p"),u=d.space(),_=d.element("p"),x=d.space(),P=d.element("div"),A=d.element("div"),B=d.element("p"),L=d.text(N),Q=d.space(),H=d.svg_element("svg"),I=d.svg_element("g"),he=d.svg_element("path"),te=d.space(),le=d.element("div");for(let w=0;w<K.length;w+=1)K[w].c();G=d.space(),j&&j.c(),D=d.space(),de=d.element("div"),ie.c(),fe=d.space(),k=d.element("div");for(let w=0;w<re.length;w+=1)re[w].c();b=d.space(),f=d.element("div"),y=d.element("button"),S=d.text(v),W=d.space(),ae&&ae.c(),U=d.space(),ke&&ke.c(),J=d.empty(),d.attr(r,"class","PlayerProductRestrictionTitle "+(i[25]?"PlayerProductRestrictionTitleNone":"")),d.attr(c,"class","ProductRestrictionDescriptionText"),d.attr(_,"class","ProductRestrictionDescriptionText"),d.attr(l,"class","ProductRestrictionDescription "+(i[25]?"ProductRestrictionDescriptionMobile":"")),d.attr(he,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),d.attr(he,"stroke-linecap","round"),d.attr(H,"xmlns","http://www.w3.org/2000/svg"),d.attr(H,"xmlns:xlink","http://www.w3.org/1999/xlink"),d.attr(H,"version","1.1"),d.attr(H,"viewBox","0 0 100 100"),d.attr(H,"xml:space","preserve"),d.attr(H,"class","ProductRestrictionConfigIcon"),d.toggle_class(H,"active",i[20]),d.attr(A,"class","ProductRestrictionConfigLabel"),d.attr(le,"class","ProductRestrictionDropDown"),d.toggle_class(le,"active",i[20]),d.attr(P,"class","ProductRestrictionConfigWrapper"),d.toggle_class(P,"active",i[20]),d.attr(de,"class","ProductRestrictionNotification"),d.attr(k,"class","ProductResitrctionTypes"),d.attr(y,"class",E="ProductRestrictionSave "+(i[19]?"active":"")),y.disabled=M=!i[19],d.attr(f,"class","ProductRestrictionActionButtons"),d.attr(t,"class","ProductRestrictionWrapper "+(i[25]?"ProductRestrictionWrapperMobile":"")),d.attr(e,"class","ProductRestrictionContainer")},m(w,Y){d.insert(w,e,Y),d.append(e,t),ee&&ee.m(t,null),d.append(t,o),d.append(t,r),d.append(r,a),d.append(t,n),d.append(t,l),d.append(l,c),c.innerHTML=h,d.append(l,u),d.append(l,_),_.innerHTML=p,d.append(t,x),d.append(t,P),d.append(P,A),d.append(A,B),d.append(B,L),d.append(A,Q),d.append(A,H),d.append(H,I),d.append(I,he),d.append(P,te),d.append(P,le);for(let O=0;O<K.length;O+=1)K[O]&&K[O].m(le,null);d.append(t,G),j&&j.m(t,null),d.append(t,D),d.append(t,de),ie.m(de,null),d.append(t,fe),d.append(t,k);for(let O=0;O<re.length;O+=1)re[O]&&re[O].m(k,null);d.append(t,b),d.append(t,f),d.append(f,y),d.append(y,S),d.append(t,W),ae&&ae.m(t,null),d.insert(w,U,Y),ke&&ke.m(w,Y),d.insert(w,J,Y),oe||(we=[d.listen(A,"click",i[43]),d.listen(y,"click",i[47])],oe=!0)},p(w,Y){if(w[25]&&ee.p(w,Y),Y[0]&8388608&&s!==(s=w[23]("titleProductRestriction")+"")&&d.set_data(a,s),Y[0]&8388611&&h!==(h=w[23]("productRestrictionText",{values:{baseurl:w[1],lang:w[0]}})+"")&&(c.innerHTML=h),Y[0]&8388608&&p!==(p=w[23]("productRestrictionEmailText")+"")&&(_.innerHTML=p),Y[0]&8404992&&N!==(N=w[23](`${w[14]}`)+"")&&d.set_data(L,N),Y[0]&1048576&&d.toggle_class(H,"active",w[20]),Y[0]&1073742080){ue=d.ensure_array_like(w[8]);let O;for(O=0;O<ue.length;O+=1){const Me=is(w,ue,O);K[O]?K[O].p(Me,Y):(K[O]=rs(Me),K[O].c(),K[O].m(le,null))}for(;O<K.length;O+=1)K[O].d(1);K.length=ue.length}if(Y[0]&1048576&&d.toggle_class(le,"active",w[20]),Y[0]&1048576&&d.toggle_class(P,"active",w[20]),w[18]?j?j.p(w,Y):(j=ss(w),j.c(),j.m(t,D)):j&&(j.d(1),j=null),Ce===(Ce=pe(w))&&ie?ie.p(w,Y):(ie.d(1),ie=Ce(w),ie&&(ie.c(),ie.m(de,null))),Y[0]&411042304|Y[1]&4){Ie=d.ensure_array_like(w[9]);let O;for(O=0;O<Ie.length;O+=1){const Me=os(w,Ie,O);re[O]?re[O].p(Me,Y):(re[O]=ns(Me),re[O].c(),re[O].m(k,null))}for(;O<re.length;O+=1)re[O].d(1);re.length=Ie.length}Y[0]&8388608&&v!==(v=w[23]("save")+"")&&d.set_data(S,v),Y[0]&524288&&E!==(E="ProductRestrictionSave "+(w[19]?"active":""))&&d.attr(y,"class",E),Y[0]&524288&&M!==(M=!w[19])&&(y.disabled=M),w[22]?ae?ae.p(w,Y):(ae=ls(w),ae.c(),ae.m(t,null)):ae&&(ae.d(1),ae=null),w[26]&&ke.p(w,Y)},d(w){w&&(d.detach(e),d.detach(U),d.detach(J)),ee&&ee.d(),d.destroy_each(K,w),j&&j.d(),ie.d(),d.destroy_each(re,w),ae&&ae.d(),ke&&ke.d(w),oe=!1,d.run_all(we)}}}function Uu(i){let e,t,o,r,s,a,n,l,c,h,u,_,p,x;function P(I,he){return I[25]?Qu:Zu}let B=P(i)(i),N=d.ensure_array_like({length:3}),L=[];for(let I=0;I<N.length;I+=1)L[I]=ep(Wu(i,N,I));let Q=d.ensure_array_like({length:3}),H=[];for(let I=0;I<Q.length;I+=1)H[I]=tp(ju(i,Q,I));return{c(){e=d.element("div"),t=d.element("div"),B.c(),o=d.space(),r=d.element("div");for(let I=0;I<L.length;I+=1)L[I].c();s=d.space(),a=d.element("ui-skeleton"),n=d.space(),l=d.element("div"),l.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',c=d.space(),h=d.element("div"),h.innerHTML='<ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton>',u=d.space(),_=d.element("div");for(let I=0;I<H.length;I+=1)H[I].c();p=d.space(),x=d.element("div"),x.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',d.set_custom_element_data(a,"structure","text"),d.set_custom_element_data(a,"width","auto"),d.set_custom_element_data(a,"height","10px"),d.attr(r,"class","ProductRestrictionDescription"),d.attr(l,"class","ProductRestrictionConfigWrapper"),d.attr(h,"class","ProductRestrictionNotification"),d.attr(_,"class","ProductResitrctionTypes"),d.attr(x,"class","ProductRestrictionActionButtons"),d.attr(t,"class","ProductRestrictionWrapper Skeleton "+(i[25]?"ProductRestrictionWrapperMobile":"")),d.attr(e,"class","ProductRestrictionContainer")},m(I,he){d.insert(I,e,he),d.append(e,t),B.m(t,null),d.append(t,o),d.append(t,r);for(let te=0;te<L.length;te+=1)L[te]&&L[te].m(r,null);d.append(r,s),d.append(r,a),d.append(t,n),d.append(t,l),d.append(t,c),d.append(t,h),d.append(t,u),d.append(t,_);for(let te=0;te<H.length;te+=1)H[te]&&H[te].m(_,null);d.append(t,p),d.append(t,x)},p:d.noop,d(I){I&&d.detach(e),B.d(),d.destroy_each(L,I),d.destroy_each(H,I)}}}function Yu(i){let e,t,o,r,s,a,n,l,c,h,u=i[23]("titleProductRestriction")+"",_,p,x;return{c(){e=d.element("button"),t=d.svg_element("svg"),o=d.svg_element("defs"),r=d.svg_element("style"),s=d.text(`.svgClass {
|
|
6659
|
+
`}static get is(){return"vaadin-tabs"}}R(Hu);function es(i,e){d.addMessages(i,e)}function $u(i){d.$locale.set(i)}const ts={en:{titleProductRestriction:"Product Restriction",productRestrictionText:"<p>While product-restrictioned, access to your account will be entirely restricted.</br>product-restriction can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a restriction period",selectAPeriod:"Select a period",Casino:"Casino",Sports:"Sports",Virtuals:"Virtuals","6Month":"6 Months","1Year":"1 Year","2Year":"2 Years","5Year":"5 Years",Until:"Until",Permanent:"Permanent",deniedProductText:"Restricted product until {date}",temporaryProductRestriction:"Your product-restriction period will last until the {date} 23:59.",permanentProductRestriction:"Your product-restriction period will be permanent.",confirmationModalTitle:"Product Restriction",productRestrictionSuccess:"Product restrcition active",confirmationModalTextPeriodProductRestriction:"You are choosing to restrict yourself from the following products until {date} / for {period}. </br> {product} </br> This action cannot be reversed once confirmed </br> Please confirm you wish to proceed.",errorProductRestrictionCall:"There was a problem while making the product restriction request.",generalError:"There was an error while fetching the product restriction.",InvalidSession:"The session is exipired."},"zh-hk":{titleProductRestriction:"產品限制",productRestrictionText:"<p>在產品限制期間,您的帳戶訪問將完全受限。</br>產品限制只能在您選擇的期限過後,通過與客戶支持溝通解除,這將需要審查和冷靜期。</br>或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中休息(最多6週)。</br>如果您更願意關閉您的帳戶,您可以通過'<a href='{baseurl}/{lang}/account/account-closure'>帳戶關閉</a>'選項選擇這樣做。</br>我們建議您也閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取更多建議。",productRestrictionEmailText:"電子郵件:<a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"持續時間:",dateInstructions:"為了手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇限制期限",selectAPeriod:"選擇一個期限",Casino:"賭場",Sports:"體育",Virtuals:"虛擬","6Month":"6個月","1Year":"1年","2Year":"2年","5Year":"5年",Until:"直到",Permanent:"永久",deniedProductText:"受限產品直到 {date}",temporaryProductRestriction:"您的產品限制期將持續到 {date} 23:59。",permanentProductRestriction:"您的產品限制期將是永久的。",confirmationModalTitle:"確認",productRestrictionSuccess:"產品限制已激活",confirmationModalTextPeriodProductRestriction:"您選擇將自己限制使用以下產品,直到 {date} / 為期 {period}。 </br> {product} </br> 一旦確認,此操作無法撤銷 </br> 請確認您希望繼續。",errorProductRestrictionCall:"在進行產品限制請求時出現問題。",generalError:"獲取產品限制時出現錯誤。",InvalidSession:"會話已過期。"},fr:{titleProductRestriction:"Restriction de produit",productRestrictionText:"<p>Pendant la restriction de produit, l'accès à votre compte sera entièrement restreint.</br>La restriction de produit ne peut être levée qu'après la période que vous avez sélectionnée en communiquant avec le support client, ce qui sera soumis à une révision et à une période de réflexion.</br>Alternativement, vous pouvez choisir de prendre un 'temps mort' (une pause de jusqu'à 6 semaines) de nos services via l'option '<a href='{baseurl}/{lang}/account/timeout'>Temps mort</a>'.</br>Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br>Nous vous recommandons également de lire nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu responsable</a>' pour plus de conseils si nécessaire.",productRestrictionEmailText:"E-mail : <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durée :",dateInstructions:"Pour entrer manuellement la date, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période de restriction",selectAPeriod:"Sélectionnez une période",Casino:"Casino",Sports:"Sports",Virtuals:"Virtuels","6Month":"6 Mois","1Year":"1 An","2Year":"2 Ans","5Year":"5 Ans",Until:"Jusqu'à",Permanent:"Permanent",deniedProductText:"Produit restreint jusqu'au {date}",temporaryProductRestriction:"Votre période de restriction de produit durera jusqu'à {date} 23:59.",permanentProductRestriction:"Votre période de restriction de produit sera permanente.",confirmationModalTitle:"Confirmation",productRestrictionSuccess:"Restriction de produit active",confirmationModalTextPeriodProductRestriction:"Vous choisissez de vous restreindre des produits suivants jusqu'au {date} / pour {period}. </br> {product} </br> Cette action ne peut pas être annulée une fois confirmée </br> Veuillez confirmer que vous souhaitez continuer.",errorProductRestrictionCall:"Il y a eu un problème lors de la demande de restriction de produit.",generalError:"Il y a eu une erreur lors de la récupération de la restriction de produit.",InvalidSession:"La session a expiré."},ro:{titleProductRestriction:"Restricție de produs",productRestrictionText:"<p>În timpul restricției de produs, accesul la contul dvs. va fi complet restricționat.</br>Restricția de produs poate fi ridicată doar după ce perioada pe care ați selectat-o a trecut, prin comunicarea cu Suportul pentru Clienți, care va fi supusă unei revizuiri și unei perioade de răcire.</br>Alternativ, puteți alege să luați o 'pauză' (o pauză de până la 6 săptămâni) de la serviciile noastre prin opțiunea '<a href='{baseurl}/{lang}/account/timeout'>Pauză</a>'.</br>Dacă preferați doar să vă închideți contul, puteți alege să faceți acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br>Vă recomandăm, de asemenea, să citiți paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc responsabil</a>' pentru sfaturi suplimentare, dacă aveți nevoie.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durată:",dateInstructions:"Pentru a introduce manual data, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de restricție",selectAPeriod:"Selectați o perioadă",Casino:"Cazinou",Sports:"Sporturi",Virtuals:"Virtuale","6Month":"6 Luni","1Year":"1 An","2Year":"2 Ani","5Year":"5 Ani",Until:"Până la",Permanent:"Permanent",deniedProductText:"Produs restricționat până la {date}",temporaryProductRestriction:"Perioada dvs. de restricție de produs va dura până la {date} 23:59.",permanentProductRestriction:"Perioada dvs. de restricție de produs va fi permanentă.",confirmationModalTitle:"Confirmare",productRestrictionSuccess:"Restricție de produs activă",confirmationModalTextPeriodProductRestriction:"Alegeți să vă restricționați de la următoarele produse până la {date} / pentru {period}. </br> {product} </br> Această acțiune nu poate fi inversată odată confirmată </br> Vă rugăm să confirmați că doriți să continuați.",errorProductRestrictionCall:"A apărut o problemă în timpul solicitării de restricție de produs.",generalError:"A apărut o eroare la preluarea restricției de produs.",InvalidSession:"Sesiunea a expirat."},es:{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriodProductRestriction:"Está eligiendo restringirse de los siguientes productos hasta {date} / por {period}. </br> {product} </br> Esta acción no se puede revertir una vez confirmada </br> Por favor confirme que desea continuar.",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},pt:{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriodProductRestriction:"Você está escolhendo se restringir dos seguintes produtos até {date} / por {period}. </br> {product} </br> Esta ação não pode ser revertida uma vez confirmada </br> Por favor, confirme que deseja continuar.",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},hr:{titleProductRestriction:"Ograničenje proizvoda",productRestrictionText:"<p>Tijekom ograničenja proizvoda, pristup vašem računu bit će potpuno ograničen.</br>Ograničenje proizvoda može se ukinuti tek nakon što prođe razdoblje koje ste odabrali, komunikacijom s korisničkom podrškom, što će biti podložno pregledu i razdoblju hlađenja.</br>Alternativno, možete odabrati 'pauzu' (pauza do 6 tjedana) od naših usluga putem opcije '<a href='{baseurl}/{lang}/account/timeout'>Pauza</a>'.</br>Ako radije želite zatvoriti svoj račun, možete to učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br>Preporučujemo vam da također pročitate naše stranice pomoći '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za daljnje savjete ako vam je potrebno.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje ograničenja",selectAPeriod:"Odaberite razdoblje",Casino:"Kasino",Sports:"Sportovi",Virtuals:"Virtualni","6Month":"6 Mjeseci","1Year":"1 Godina","2Year":"2 Godine","5Year":"5 Godina",Until:"Do",Permanent:"Trajno",deniedProductText:"Ograničeni proizvod do {date}",temporaryProductRestriction:"Vaše razdoblje ograničenja proizvoda trajat će do {date} 23:59.",permanentProductRestriction:"Vaše razdoblje ograničenja proizvoda bit će trajno.",confirmationModalTitle:"Potvrda",productRestrictionSuccess:"Ograničenje proizvoda aktivno",confirmationModalTextPeriodProductRestriction:"Odabirete ograničiti se od sljedećih proizvoda do {date} / za {period}. </br> {product} </br> Ova radnja se ne može poništiti nakon potvrde </br> Molimo potvrdite da želite nastaviti.",errorProductRestrictionCall:"Došlo je do problema prilikom podnošenja zahtjeva za ograničenje proizvoda.",generalError:"Došlo je do pogreške prilikom dohvaćanja ograničenja proizvoda.",InvalidSession:"Sesija je istekla."},"pt-br":{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriodProductRestriction:"Você está escolhendo se restringir dos seguintes produtos até {date} / por {period}. </br> {product} </br> Esta ação não pode ser revertida uma vez confirmada </br> Por favor, confirme que deseja continuar.",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},"es-mx":{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriodProductRestriction:"Está eligiendo restringirse de los siguientes productos hasta {date} / por {period}. </br> {product} </br> Esta acción no se puede revertir una vez confirmada </br> Por favor confirme que desea continuar.",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},tr:{titleProductRestriction:"Ürün Kısıtlaması",productRestrictionText:"<p>Ürün kısıtlaması sırasında, hesabınıza erişim tamamen kısıtlanacaktır.</br>Ürün kısıtlaması, yalnızca seçtiğiniz süre geçtikten sonra Müşteri Desteği ile iletişime geçerek kaldırılabilir, bu da inceleme ve soğuma süresine tabi olacaktır.</br>Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Zaman aşımı</a>' seçeneği aracılığıyla hizmetlerimizden 'zaman aşımı' (6 haftaya kadar bir ara) vermeyi seçebilirsiniz.</br>Hesabınızı kapatmayı tercih ederseniz, '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla bunu yapabilirsiniz.</br>İhtiyacınız olursa, daha fazla tavsiye için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Kumar</a>' yardım sayfalarımızı okumanızı öneririz.",productRestrictionEmailText:"E-posta: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için aşağıdaki formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kısıtlama süresi seçin",selectAPeriod:"Bir dönem seçin",Casino:"Kumarhane",Sports:"Sporlar",Virtuals:"Sanal","6Month":"6 Ay","1Year":"1 Yıl","2Year":"2 Yıl","5Year":"5 Yıl",Until:"Kadar",Permanent:"Kalıcı",deniedProductText:"Ürün {date} tarihine kadar kısıtlandı",temporaryProductRestriction:"Ürün kısıtlama süreniz {date} 23:59'a kadar sürecektir.",permanentProductRestriction:"Ürün kısıtlama süreniz kalıcı olacaktır.",confirmationModalTitle:"Onay",productRestrictionSuccess:"Ürün kısıtlaması aktif",confirmationModalTextPeriodProductRestriction:"Aşağıdaki ürünlerden {date} tarihine kadar / {period} süresince kendinizi kısıtlamayı seçiyorsunuz. </br> {product} </br> Bu işlem onaylandıktan sonra geri alınamaz </br> Lütfen devam etmek istediğinizi onaylayın.",errorProductRestrictionCall:"Ürün kısıtlama isteği yapılırken bir sorun oluştu.",generalError:"Ürün kısıtlaması alınırken bir hata oluştu.",InvalidSession:"Oturum süresi doldu."}};function ju(i){d.append_styles(i,"svelte-1t8brnd",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerProductRestrictionTitleNone{display:none}.ProductRestrictionContainer{border-radius:var(--emw--border-radius-medium, 10px);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));container-type:inline-size}.ProductRestrictionContainer .ProductRestrictionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));padding:50px;border-radius:var(--emw--border-radius-medium, 10px);max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton{display:inline-flex;align-items:center;color:var(--emw--color-gray-300, #58586b);border:none;background-color:transparent;column-gap:10px;margin-bottom:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton .PlayerProductRestrictionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .PlayerProductRestrictionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription{color:var(--emw--color-gray-300, #58586b);line-height:24px;min-height:180px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription p{font-size:16px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper{width:50%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel p{margin:0;font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon.active{transform:rotateZ(0deg)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586b);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));border-radius:0px 0px var(--emw--border-radius-medium, 10px) var(--emw--border-radius-medium, 10px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transition:all 0.5s ease-in-out;font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown div:hover{color:var(--emw--color-white, #ffffff);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown.active{max-height:300px;opacity:1}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper{color:var(--emw--color-gray-300, #58586b);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper .ProductRestrictionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper .ProductRestrictionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification{color:var(--emw--color-gray-300, #58586b);line-height:24px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification .ProductRestrictionDescriptionText p{font-size:16px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification .ProductRestrictionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:5px;color:var(--emw--color-gray-300, #58586b);font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel .label{font-size:var(--emw--size-standard, 16px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel p{margin:0}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent{display:inherit;flex-direction:row;align-items:center;justify-content:center;background-color:transparent;border:none;cursor:pointer;gap:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .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)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox [type=checkbox]{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox::before{content:"";width:12.75px;height:12.75px;border-radius:100px;cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .toggleCheckbox{border:1px solid var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .toggleCheckbox::before{background-color:var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .label{color:var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons{margin-top:40px;width:50%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--color-primary, #23b04e);border-radius:var(--emw--border-radius-medium, 10px);padding:20px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #ffffff);cursor:pointer;border:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave:hover{filter:brightness(0.9)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave:disabled{opacity:0.5;cursor:default}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionError{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:var(--emw--font-weight-normal, 500)}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .MenuReturnButton{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .PlayerProductRestrictionTitle{display:block;width:30%;height:20px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionDescription{display:flex;flex-direction:column;gap:10px;width:75%}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionDescription ui-skeleton:last-child{margin-top:30px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionConfigWrapper{border:none}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionNotification{margin-bottom:30px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionDescription .ProductRestrictionDescriptionText{color:var(--emw--color-gray-300, #58586b)}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionConfigWrapper{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon{width:10px;height:10px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionDateWrapper{width:100%}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionNotification{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionActionButtons{width:100%;grid-template-columns:1fr 1fr}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionActionButtons .ProductRestrictionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile.Skeleton .MenuReturnButton{display:block;width:200px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile.Skeleton .PlayerProductRestrictionTitle{display:none}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function os(i,e,t){const o=i.slice();return o[75]=e[t],o[77]=t,o}function is(i,e,t){const o=i.slice();return o[78]=e[t],o}function Wu(i,e,t){const o=i.slice();return o[70]=e[t],o}function qu(i,e,t){const o=i.slice();return o[70]=e[t],o}function Uu(i){let e,t,o,r,s=i[24]("titleProductRestriction")+"",a,n,l,c,h=i[24]("productRestrictionText",{values:{baseurl:i[1],lang:i[0]}})+"",u,_,p=i[24]("productRestrictionEmailText")+"",x,P,A,B,N=i[24](`${i[15]}`)+"",L,ee,H,I,he,oe,le,G,D,de,fe,k,b,f,y,v=i[24]("save")+"",S,E,M,W,Y,J,X,Ce,te=i[26]&&Ku(i),ue=d.ensure_array_like(i[9]),K=[];for(let w=0;w<ue.length;w+=1)K[w]=rs(is(i,ue,w));let j=i[19]&&ss(i);function pe(w,q){return w[18]?Xu:w[14]?Gu:Ju}let we=pe(i),ie=we(i),Ie=d.ensure_array_like(i[10]),re=[];for(let w=0;w<Ie.length;w+=1)re[w]=ns(os(i,Ie,w));let ae=i[23]&&ls(i),ke=i[27]&&Zu(i);return{c(){e=d.element("div"),t=d.element("div"),te&&te.c(),o=d.space(),r=d.element("h2"),a=d.text(s),n=d.space(),l=d.element("div"),c=d.element("p"),u=d.space(),_=d.element("p"),x=d.space(),P=d.element("div"),A=d.element("div"),B=d.element("p"),L=d.text(N),ee=d.space(),H=d.svg_element("svg"),I=d.svg_element("g"),he=d.svg_element("path"),oe=d.space(),le=d.element("div");for(let w=0;w<K.length;w+=1)K[w].c();G=d.space(),j&&j.c(),D=d.space(),de=d.element("div"),ie.c(),fe=d.space(),k=d.element("div");for(let w=0;w<re.length;w+=1)re[w].c();b=d.space(),f=d.element("div"),y=d.element("button"),S=d.text(v),W=d.space(),ae&&ae.c(),Y=d.space(),ke&&ke.c(),J=d.empty(),d.attr(r,"class","PlayerProductRestrictionTitle "+(i[26]?"PlayerProductRestrictionTitleNone":"")),d.attr(c,"class","ProductRestrictionDescriptionText"),d.attr(_,"class","ProductRestrictionDescriptionText"),d.attr(l,"class","ProductRestrictionDescription "+(i[26]?"ProductRestrictionDescriptionMobile":"")),d.attr(he,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),d.attr(he,"stroke-linecap","round"),d.attr(H,"xmlns","http://www.w3.org/2000/svg"),d.attr(H,"xmlns:xlink","http://www.w3.org/1999/xlink"),d.attr(H,"version","1.1"),d.attr(H,"viewBox","0 0 100 100"),d.attr(H,"xml:space","preserve"),d.attr(H,"class","ProductRestrictionConfigIcon"),d.toggle_class(H,"active",i[21]),d.attr(A,"class","ProductRestrictionConfigLabel"),d.attr(le,"class","ProductRestrictionDropDown"),d.toggle_class(le,"active",i[21]),d.attr(P,"class","ProductRestrictionConfigWrapper"),d.toggle_class(P,"active",i[21]),d.attr(de,"class","ProductRestrictionNotification"),d.attr(k,"class","ProductResitrctionTypes"),d.attr(y,"class",E="ProductRestrictionSave "+(i[20]?"active":"")),y.disabled=M=!i[20],d.attr(f,"class","ProductRestrictionActionButtons"),d.attr(t,"class","ProductRestrictionWrapper "+(i[26]?"ProductRestrictionWrapperMobile":"")),d.attr(e,"class","ProductRestrictionContainer")},m(w,q){d.insert(w,e,q),d.append(e,t),te&&te.m(t,null),d.append(t,o),d.append(t,r),d.append(r,a),d.append(t,n),d.append(t,l),d.append(l,c),c.innerHTML=h,d.append(l,u),d.append(l,_),_.innerHTML=p,d.append(t,x),d.append(t,P),d.append(P,A),d.append(A,B),d.append(B,L),d.append(A,ee),d.append(A,H),d.append(H,I),d.append(I,he),d.append(P,oe),d.append(P,le);for(let O=0;O<K.length;O+=1)K[O]&&K[O].m(le,null);d.append(t,G),j&&j.m(t,null),d.append(t,D),d.append(t,de),ie.m(de,null),d.append(t,fe),d.append(t,k);for(let O=0;O<re.length;O+=1)re[O]&&re[O].m(k,null);d.append(t,b),d.append(t,f),d.append(f,y),d.append(y,S),d.append(t,W),ae&&ae.m(t,null),d.insert(w,Y,q),ke&&ke.m(w,q),d.insert(w,J,q),X||(Ce=[d.listen(A,"click",i[44]),d.listen(y,"click",i[48])],X=!0)},p(w,q){if(w[26]&&te.p(w,q),q[0]&16777216&&s!==(s=w[24]("titleProductRestriction")+"")&&d.set_data(a,s),q[0]&16777219&&h!==(h=w[24]("productRestrictionText",{values:{baseurl:w[1],lang:w[0]}})+"")&&(c.innerHTML=h),q[0]&16777216&&p!==(p=w[24]("productRestrictionEmailText")+"")&&(_.innerHTML=p),q[0]&16809984&&N!==(N=w[24](`${w[15]}`)+"")&&d.set_data(L,N),q[0]&2097152&&d.toggle_class(H,"active",w[21]),q[0]&512|q[1]&1){ue=d.ensure_array_like(w[9]);let O;for(O=0;O<ue.length;O+=1){const Me=is(w,ue,O);K[O]?K[O].p(Me,q):(K[O]=rs(Me),K[O].c(),K[O].m(le,null))}for(;O<K.length;O+=1)K[O].d(1);K.length=ue.length}if(q[0]&2097152&&d.toggle_class(le,"active",w[21]),q[0]&2097152&&d.toggle_class(P,"active",w[21]),w[19]?j?j.p(w,q):(j=ss(w),j.c(),j.m(t,D)):j&&(j.d(1),j=null),we===(we=pe(w))&&ie?ie.p(w,q):(ie.d(1),ie=we(w),ie&&(ie.c(),ie.m(de,null))),q[0]&822084608|q[1]&8){Ie=d.ensure_array_like(w[10]);let O;for(O=0;O<Ie.length;O+=1){const Me=os(w,Ie,O);re[O]?re[O].p(Me,q):(re[O]=ns(Me),re[O].c(),re[O].m(k,null))}for(;O<re.length;O+=1)re[O].d(1);re.length=Ie.length}q[0]&16777216&&v!==(v=w[24]("save")+"")&&d.set_data(S,v),q[0]&1048576&&E!==(E="ProductRestrictionSave "+(w[20]?"active":""))&&d.attr(y,"class",E),q[0]&1048576&&M!==(M=!w[20])&&(y.disabled=M),w[23]?ae?ae.p(w,q):(ae=ls(w),ae.c(),ae.m(t,null)):ae&&(ae.d(1),ae=null),w[27]&&ke.p(w,q)},d(w){w&&(d.detach(e),d.detach(Y),d.detach(J)),te&&te.d(),d.destroy_each(K,w),j&&j.d(),ie.d(),d.destroy_each(re,w),ae&&ae.d(),ke&&ke.d(w),X=!1,d.run_all(Ce)}}}function Yu(i){let e,t,o,r,s,a,n,l,c,h,u,_,p,x;function P(I,he){return I[26]?ep:Qu}let B=P(i)(i),N=d.ensure_array_like({length:3}),L=[];for(let I=0;I<N.length;I+=1)L[I]=tp(qu(i,N,I));let ee=d.ensure_array_like({length:3}),H=[];for(let I=0;I<ee.length;I+=1)H[I]=op(Wu(i,ee,I));return{c(){e=d.element("div"),t=d.element("div"),B.c(),o=d.space(),r=d.element("div");for(let I=0;I<L.length;I+=1)L[I].c();s=d.space(),a=d.element("ui-skeleton"),n=d.space(),l=d.element("div"),l.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',c=d.space(),h=d.element("div"),h.innerHTML='<ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton>',u=d.space(),_=d.element("div");for(let I=0;I<H.length;I+=1)H[I].c();p=d.space(),x=d.element("div"),x.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',d.set_custom_element_data(a,"structure","text"),d.set_custom_element_data(a,"width","auto"),d.set_custom_element_data(a,"height","10px"),d.attr(r,"class","ProductRestrictionDescription"),d.attr(l,"class","ProductRestrictionConfigWrapper"),d.attr(h,"class","ProductRestrictionNotification"),d.attr(_,"class","ProductResitrctionTypes"),d.attr(x,"class","ProductRestrictionActionButtons"),d.attr(t,"class","ProductRestrictionWrapper Skeleton "+(i[26]?"ProductRestrictionWrapperMobile":"")),d.attr(e,"class","ProductRestrictionContainer")},m(I,he){d.insert(I,e,he),d.append(e,t),B.m(t,null),d.append(t,o),d.append(t,r);for(let oe=0;oe<L.length;oe+=1)L[oe]&&L[oe].m(r,null);d.append(r,s),d.append(r,a),d.append(t,n),d.append(t,l),d.append(t,c),d.append(t,h),d.append(t,u),d.append(t,_);for(let oe=0;oe<H.length;oe+=1)H[oe]&&H[oe].m(_,null);d.append(t,p),d.append(t,x)},p:d.noop,d(I){I&&d.detach(e),B.d(),d.destroy_each(L,I),d.destroy_each(H,I)}}}function Ku(i){let e,t,o,r,s,a,n,l,c,h,u=i[24]("titleProductRestriction")+"",_,p,x;return{c(){e=d.element("button"),t=d.svg_element("svg"),o=d.svg_element("defs"),r=d.svg_element("style"),s=d.text(`.svgClass {
|
|
6660
6660
|
fill: var(--emw--color-primary, #22b04e);
|
|
6661
6661
|
}
|
|
6662
|
-
`),a=d.svg_element("g"),n=d.svg_element("g"),l=d.svg_element("path"),c=d.space(),h=d.element("h2"),_=d.text(u),d.attr(l,"class","svgClass"),d.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),d.attr(l,"transform","translate(15 15) rotate(180)"),d.attr(n,"transform","translate(20 158)"),d.attr(a,"transform","translate(-20 -158)"),d.attr(t,"xmlns","http://www.w3.org/2000/svg"),d.attr(t,"width","15"),d.attr(t,"height","15"),d.attr(t,"viewBox","0 0 15 15"),d.attr(h,"class","PlayerProductRestrictionTitleMobile"),d.attr(e,"class","MenuReturnButton")},m(P,A){d.insert(P,e,A),d.append(e,t),d.append(t,o),d.append(o,r),d.append(r,s),d.append(t,a),d.append(a,n),d.append(n,l),d.append(e,c),d.append(e,h),d.append(h,_),p||(x=d.listen(e,"click",i[42]),p=!0)},p(P,A){A[0]&8388608&&u!==(u=P[23]("titleProductRestriction")+"")&&d.set_data(_,u)},d(P){P&&d.detach(e),p=!1,x()}}}function rs(i){let e,t=i[77].text+"",o,r,s;function a(){return i[44](i[77])}return{c(){e=d.element("div"),o=d.text(t)},m(n,l){d.insert(n,e,l),d.append(e,o),r||(s=d.listen(e,"click",a),r=!0)},p(n,l){i=n,l[0]&256&&t!==(t=i[77].text+"")&&d.set_data(o,t)},d(n){n&&d.detach(e),r=!1,s()}}}function ss(i){let e,t,o=i[23]("duration")+"",r,s,a,n=i[23]("dateInstructions")+"",l,c,h,u,_,p,x;return{c(){e=d.element("div"),t=d.element("label"),r=d.text(o),s=d.space(),a=d.element("span"),l=d.text(n),c=d.space(),h=d.element("strong"),u=d.text(i[24]),_=d.element("strong"),p=d.space(),x=d.element("vaadin-date-picker"),d.attr(t,"for","ProductRestrictionDate"),d.attr(a,"class","ProductRestrictionDateInstructions"),d.set_custom_element_data(x,"min",i[10]),d.set_custom_element_data(x,"max",i[11]),d.set_custom_element_data(x,"value",i[10]),d.attr(e,"class","ProductRestrictionDateWrapper")},m(P,A){d.insert(P,e,A),d.append(e,t),d.append(t,r),d.append(e,s),d.append(e,a),d.append(a,l),d.append(a,c),d.append(a,h),d.append(h,u),d.append(h,_),d.append(e,p),d.append(e,x),i[45](x)},p(P,A){A[0]&8388608&&o!==(o=P[23]("duration")+"")&&d.set_data(r,o),A[0]&8388608&&n!==(n=P[23]("dateInstructions")+"")&&d.set_data(l,n),A[0]&1024&&d.set_custom_element_data(x,"min",P[10]),A[0]&2048&&d.set_custom_element_data(x,"max",P[11]),A[0]&1024&&d.set_custom_element_data(x,"value",P[10])},d(P){P&&d.detach(e),i[45](null)}}}function Ku(i){let e,t,o=i[23]("temporaryProductRestriction",{values:{date:i[12]}})+"",r;return{c(){e=d.element("p"),t=d.element("strong"),r=d.text(o),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,a){d.insert(s,e,a),d.append(e,t),d.append(t,r)},p(s,a){a[0]&8392704&&o!==(o=s[23]("temporaryProductRestriction",{values:{date:s[12]}})+"")&&d.set_data(r,o)},d(s){s&&d.detach(e)}}}function Gu(i){let e,t,o=i[23]("noPeriodSelected")+"",r;return{c(){e=d.element("p"),t=d.element("strong"),r=d.text(o),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,a){d.insert(s,e,a),d.append(e,t),d.append(t,r)},p(s,a){a[0]&8388608&&o!==(o=s[23]("noPeriodSelected")+"")&&d.set_data(r,o)},d(s){s&&d.detach(e)}}}function Ju(i){let e,t,o=i[23]("permanentProductRestriction")+"",r;return{c(){e=d.element("p"),t=d.element("strong"),r=d.text(o),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,a){d.insert(s,e,a),d.append(e,t),d.append(t,r)},p(s,a){a[0]&8388608&&o!==(o=s[23]("permanentProductRestriction")+"")&&d.set_data(r,o)},d(s){s&&d.detach(e)}}}function as(i){let e,t=i[23]("deniedProductText",{values:{date:i[33](i[74])}})+"",o;return{c(){e=d.element("p"),o=d.text(t)},m(r,s){d.insert(r,e,s),d.append(e,o)},p(r,s){s[0]&8389120&&t!==(t=r[23]("deniedProductText",{values:{date:r[33](r[74])}})+"")&&d.set_data(o,t)},d(r){r&&d.detach(e)}}}function ns(i){let e,t,o,r,s,a=i[27](i[74])+"",n,l,c,h,u,_,p=i[74].restricted&&as(i);function x(){return i[46](i[76])}return{c(){e=d.element("button"),t=d.element("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',o=d.space(),r=d.element("div"),s=d.element("p"),n=d.text(a),l=d.space(),p&&p.c(),c=d.space(),d.attr(t,"class","toggleCheckbox"),d.attr(s,"class","label"),d.attr(r,"class","ProductRestrictionLabel"),d.attr(e,"class",h="toggleContent "+(i[74].checked||i[74].restricted?"checked":""))},m(P,A){d.insert(P,e,A),d.append(e,t),d.append(e,o),d.append(e,r),d.append(r,s),d.append(s,n),d.append(r,l),p&&p.m(r,null),d.append(e,c),u||(_=d.listen(e,"click",x),u=!0)},p(P,A){i=P,A[0]&512&&a!==(a=i[27](i[74])+"")&&d.set_data(n,a),i[74].restricted?p?p.p(i,A):(p=as(i),p.c(),p.m(r,null)):p&&(p.d(1),p=null),A[0]&512&&h!==(h="toggleContent "+(i[74].checked||i[74].restricted?"checked":""))&&d.attr(e,"class",h)},d(P){P&&d.detach(e),p&&p.d(),u=!1,_()}}}function ls(i){let e,t,o;return{c(){e=d.element("div"),t=d.element("p"),o=d.text(i[16]),d.attr(e,"class","ProductRestrictionError")},m(r,s){d.insert(r,e,s),d.append(e,t),d.append(t,o)},p(r,s){s[0]&65536&&d.set_data(o,r[16])},d(r){r&&d.detach(e)}}}function Xu(i){let e,t,o,r;return{c(){e=d.element("player-account-modal"),t=d.element("player-account-general-confirmation-modal"),d.set_custom_element_data(t,"modaltitle",o=i[23]("confirmationModalTitle")),d.set_custom_element_data(t,"modaltext",i[15]),d.set_custom_element_data(t,"hascancelbutton",r=i[2]==="true"),d.set_custom_element_data(t,"modalconfirmevent",{type:"setProductRestriction"}),d.set_custom_element_data(t,"mbsource",i[5]),d.set_custom_element_data(t,"lang",i[0]),d.set_custom_element_data(e,"clientstyling",i[3]),d.set_custom_element_data(e,"clientstylingurl",i[4]),d.set_custom_element_data(e,"mbsource",i[5]),d.set_custom_element_data(e,"showmodaleventname","ShowProductRestrictionConfirmationModal")},m(s,a){d.insert(s,e,a),d.append(e,t)},p(s,a){a[0]&8388608&&o!==(o=s[23]("confirmationModalTitle"))&&d.set_custom_element_data(t,"modaltitle",o),a[0]&32768&&d.set_custom_element_data(t,"modaltext",s[15]),a[0]&4&&r!==(r=s[2]==="true")&&d.set_custom_element_data(t,"hascancelbutton",r),a[0]&32&&d.set_custom_element_data(t,"mbsource",s[5]),a[0]&1&&d.set_custom_element_data(t,"lang",s[0]),a[0]&8&&d.set_custom_element_data(e,"clientstyling",s[3]),a[0]&16&&d.set_custom_element_data(e,"clientstylingurl",s[4]),a[0]&32&&d.set_custom_element_data(e,"mbsource",s[5])},d(s){s&&d.detach(e)}}}function Zu(i){let e;return{c(){e=d.element("h2"),e.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',d.attr(e,"class","PlayerProductRestrictionTitle")},m(t,o){d.insert(t,e,o)},d(t){t&&d.detach(e)}}}function Qu(i){let e;return{c(){e=d.element("div"),e.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',d.attr(e,"class","MenuReturnButton")},m(t,o){d.insert(t,e,o)},d(t){t&&d.detach(e)}}}function ep(i){let e,t,o;return{c(){e=d.element("ui-skeleton"),t=d.space(),o=d.element("ui-skeleton"),d.set_custom_element_data(e,"structure","text"),d.set_custom_element_data(e,"width","auto"),d.set_custom_element_data(e,"height","10px"),d.set_custom_element_data(o,"structure","title"),d.set_custom_element_data(o,"width","auto"),d.set_custom_element_data(o,"height","10px")},m(r,s){d.insert(r,e,s),d.insert(r,t,s),d.insert(r,o,s)},p:d.noop,d(r){r&&(d.detach(e),d.detach(t),d.detach(o))}}}function tp(i){let e;return{c(){e=d.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> ',d.attr(e,"class","toggleContent")},m(t,o){d.insert(t,e,o)},p:d.noop,d(t){t&&d.detach(e)}}}function op(i){let e;function t(s,a){return s[21]?Uu:qu}let o=t(i),r=o(i);return{c(){e=d.element("div"),r.c()},m(s,a){d.insert(s,e,a),r.m(e,null),i[48](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:d.noop,o:d.noop,d(s){s&&d.detach(e),r.d(),i[48](null)}}}function ip(i,e,t){let o;d.component_subscribe(i,d.$format,m=>t(23,o=m));let{endpoint:r=""}=e,{session:s=""}=e,{playerid:a=""}=e,{lang:n="en"}=e,{baseurl:l=""}=e,{mergeproducts:c="Casino+Virtuals"}=e,{hideproducts:h=""}=e,{hasconfirmationmodal:u="false"}=e,{hascancelbutton:_=""}=e,{dateformat:p="DD/MM/YYYY"}=e,{clientstyling:x=""}=e,{clientstylingurl:P=""}=e,{mbsource:A}=e,{translationurl:B=""}=e,N,L,Q=[],H={},I=[],he=p.toUpperCase(),te=window.navigator.userAgent,le,G,D="",de="",fe="selectAPeriod",k="",b="",f="",y=d.getDevice(te)!=="PC",v=!1,S=!1,E=!1,M=!1,W=u==="true",U=!0,J=!1;const oe=()=>{fetch(B).then(z=>z.json()).then(z=>{Object.keys(z).forEach(T=>{es(T,z[T])})}).catch(z=>{console.log(z)})};Object.keys(ts).forEach(m=>{es(m,ts[m])});const we=m=>{m.data.type==="setProductRestriction"&&Ji()},ee=m=>tr(this,null,function*(){var z;if(m.status>=300)return t(22,J=!0),b=(z=(yield m.json()).thirdPartyResponse)==null?void 0:z.errorCode,t(16,f=o(b||"generalError")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:f}},window.location.href),Promise.reject(f);if(t(22,J=!1),m.headers.get("content-type")){let T=yield m.json();return Promise.resolve(T)}return Promise.resolve()}),ue=()=>{t(19,E=de&&I.some(m=>m.checked)),W&&E&&O()},K=m=>{if(!c)return m;const z=c.split(","),T=[],Z=new Set;for(const Se of m){if(Z.has(Se))continue;const Ne=z.find(ve=>ve.includes(Se));Ne?(Ne.split("+").forEach(ve=>Z.add(ve)),T.push(Ne)):T.push(Se)}return T},j=m=>{const z=Object.keys(m).filter(Z=>!h.includes(Z));let T=K(z);t(9,I=T.map(Z=>({type:Z,checked:!1,restricted:!1})))},pe=m=>{var z;return(z=m.type)==null?void 0:z.split("+").map(T=>o(T)).join(" + ")},Ce=m=>{t(8,Q=m.map(z=>({key:(z.number||"")+z.unit,text:o((z.number||"")+z.unit)})))},ie=m=>{I[m].restricted||(t(9,I[m].checked=!I[m].checked,I),ue())},Ie=()=>{t(20,M=!M)},re=m=>{switch(t(13,de=m.text),t(14,fe=m.key),t(20,M=!1),t(17,v=!1),t(18,S=!1),fe){case"Until":t(18,S=!0),t(10,le=je().add(6,"M").format("YYYY-MM-DD")),t(11,G=je().add(5,"y").format("YYYY-MM-DD")),t(12,D=le);break;case"Permanent":t(17,v=!v);break;default:const z=fe.match(/\d+/g)[0],T=fe.match(/[a-zA-Z]+/g)[0],Z=T.includes("Day")?"days":T.includes("Month")?"months":T.includes("Year")?"years":null;if(!T)return;t(12,D=ae(je().add(Number(z),Z)));break}ue()},ae=m=>je(m).format(he),ke=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},w=m=>{t(12,D=m.target.value)},Y=()=>{L.addEventListener("change",w,!1);const m=T=>je(new Date(T.year,T.month,T.day)).format(he),z=T=>{const Z=je(T,he);return{year:Z.year(),month:Z.month(),day:Z.date()}};t(7,L.i18n=er(Qi({},L.i18n),{formatDate:m,parseDate:z}),L)},O=()=>{if(!W||!de||!D){t(15,k="");return}let m="";I.forEach(z=>{!z.checked||z.restricted||(m=m?`${m}, ${pe(z)}`:`${pe(z)}`)}),t(15,k=o("confirmationModalTextPeriodProductRestriction",{values:{period:o(de),product:m,date:D}}))},Me=m=>{m.preventDefault(),W?window.postMessage({type:"ShowProductRestrictionConfirmationModal"},window.location.href):Ji()},Gi=()=>{const m=new URL("/api/v1/gm/legislation/responsible-gambling/product-restrictions/metadata/",r);fetch(m,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(T=>ee(T)).then(T=>{j(T.products),Ce(T.periods),Za()}).catch(T=>{console.error(T)}).finally(()=>{t(21,U=!1)})},Za=()=>{const m=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${a}/deny-products/`,r);fetch(m,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(T=>ee(T)).then(T=>{T.denyProductsRoles.forEach(Z=>{let Se=I.findIndex(Ne=>{var ve;return c?(ve=Ne.type)==null?void 0:ve.split("+").some(cn=>cn===Z.productType):Z.productType===Ne.type});Se!=-1&&t(9,I[Se].restricted=!0,I),H[Z.productType]=ae(Z.expirationDate)})}).catch(T=>{console.error(T)}).finally(()=>{t(21,U=!1)})},Qa=m=>{if(!c)return H[m.type];if(m.type.includes("+")){const z=m.type.split("+");return H[z[0]]}else return H[m.type]},en=m=>{const z=m.filter(T=>T.checked);return c?z.reduce((T,Z)=>[...T,...Z.type.split("+")],[]):z.map(T=>T.type)},Ji=()=>{t(21,U=!0);const m=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${a}/deny-products/`,r);let z=fe.match(/\d+/g)[0],T=fe.match(/[a-zA-Z]+/g)[0],Se=en(I).map(ve=>({productType:ve,expirationPeriod:{unit:T,number:z}})),Ne={method:"POST",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({denyProductsRoles:Se})};fetch(m.href,Ne).then(ve=>ee(ve)).then(ve=>{Gi(),window.postMessage({type:"WidgetNotification",data:{type:"success",message:o("productRestrictionSuccess")}},window.location.href),t(19,E=!1)}).catch(ve=>{console.error(o("errorProductRestrictionCall"),ve)}).finally(()=>{t(21,U=!1)})};d.onMount(()=>(window.addEventListener("message",we,!1),()=>{L&&L.removeEventListener("change",w),window.removeEventListener("message",we)}));const tn=()=>{Hu(n)},on=()=>ke(),rn=()=>Ie(),sn=m=>re(m);function an(m){d.binding_callbacks[m?"unshift":"push"](()=>{L=m,t(7,L)})}const nn=m=>ie(m),ln=m=>Me(m);function dn(m){d.binding_callbacks[m?"unshift":"push"](()=>{N=m,t(6,N)})}return i.$$set=m=>{"endpoint"in m&&t(34,r=m.endpoint),"session"in m&&t(35,s=m.session),"playerid"in m&&t(36,a=m.playerid),"lang"in m&&t(0,n=m.lang),"baseurl"in m&&t(1,l=m.baseurl),"mergeproducts"in m&&t(37,c=m.mergeproducts),"hideproducts"in m&&t(38,h=m.hideproducts),"hasconfirmationmodal"in m&&t(39,u=m.hasconfirmationmodal),"hascancelbutton"in m&&t(2,_=m.hascancelbutton),"dateformat"in m&&t(40,p=m.dateformat),"clientstyling"in m&&t(3,x=m.clientstyling),"clientstylingurl"in m&&t(4,P=m.clientstylingurl),"mbsource"in m&&t(5,A=m.mbsource),"translationurl"in m&&t(41,B=m.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&1&&n&&tn(),i.$$.dirty[1]&56&&r&&s&&a&&Gi(),i.$$.dirty[0]&128&&L&&Y(),i.$$.dirty[0]&72&&x&&N&&d.setClientStyling(N,x),i.$$.dirty[0]&80&&P&&N&&d.setClientStylingURL(N,P),i.$$.dirty[0]&96&&A&&N&&d.setStreamStyling(N,`${A}.Style`),i.$$.dirty[1]&1024&&B&&oe()},W&&O(),[n,l,_,x,P,A,N,L,Q,I,le,G,D,de,fe,k,f,v,S,E,M,U,J,o,he,y,W,pe,ie,Ie,re,ke,Me,Qa,r,s,a,c,h,u,p,B,on,rn,sn,an,nn,ln,dn]}class Xa extends d.SvelteComponent{constructor(e){super(),d.init(this,e,ip,op,d.safe_not_equal,{endpoint:34,session:35,playerid:36,lang:0,baseurl:1,mergeproducts:37,hideproducts:38,hasconfirmationmodal:39,hascancelbutton:2,dateformat:40,clientstyling:3,clientstylingurl:4,mbsource:5,translationurl:41},$u,[-1,-1,-1])}get endpoint(){return this.$$.ctx[34]}set endpoint(e){this.$$set({endpoint:e}),d.flush()}get session(){return this.$$.ctx[35]}set session(e){this.$$set({session:e}),d.flush()}get playerid(){return this.$$.ctx[36]}set playerid(e){this.$$set({playerid:e}),d.flush()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),d.flush()}get baseurl(){return this.$$.ctx[1]}set baseurl(e){this.$$set({baseurl:e}),d.flush()}get mergeproducts(){return this.$$.ctx[37]}set mergeproducts(e){this.$$set({mergeproducts:e}),d.flush()}get hideproducts(){return this.$$.ctx[38]}set hideproducts(e){this.$$set({hideproducts:e}),d.flush()}get hasconfirmationmodal(){return this.$$.ctx[39]}set hasconfirmationmodal(e){this.$$set({hasconfirmationmodal:e}),d.flush()}get hascancelbutton(){return this.$$.ctx[2]}set hascancelbutton(e){this.$$set({hascancelbutton:e}),d.flush()}get dateformat(){return this.$$.ctx[40]}set dateformat(e){this.$$set({dateformat:e}),d.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),d.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d.flush()}get mbsource(){return this.$$.ctx[5]}set mbsource(e){this.$$set({mbsource:e}),d.flush()}get translationurl(){return this.$$.ctx[41]}set translationurl(e){this.$$set({translationurl:e}),d.flush()}}d.create_custom_element(Xa,{endpoint:{},session:{},playerid:{},lang:{},baseurl:{},mergeproducts:{},hideproducts:{},hasconfirmationmodal:{},hascancelbutton:{},dateformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);const rp=Object.freeze(Object.defineProperty({__proto__:null,default:Xa},Symbol.toStringTag,{value:"Module"}));exports.PlayerAccountProductRestriction_ce=rp;exports.dayjs=je;
|
|
6662
|
+
`),a=d.svg_element("g"),n=d.svg_element("g"),l=d.svg_element("path"),c=d.space(),h=d.element("h2"),_=d.text(u),d.attr(l,"class","svgClass"),d.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),d.attr(l,"transform","translate(15 15) rotate(180)"),d.attr(n,"transform","translate(20 158)"),d.attr(a,"transform","translate(-20 -158)"),d.attr(t,"xmlns","http://www.w3.org/2000/svg"),d.attr(t,"width","15"),d.attr(t,"height","15"),d.attr(t,"viewBox","0 0 15 15"),d.attr(h,"class","PlayerProductRestrictionTitleMobile"),d.attr(e,"class","MenuReturnButton")},m(P,A){d.insert(P,e,A),d.append(e,t),d.append(t,o),d.append(o,r),d.append(r,s),d.append(t,a),d.append(a,n),d.append(n,l),d.append(e,c),d.append(e,h),d.append(h,_),p||(x=d.listen(e,"click",i[43]),p=!0)},p(P,A){A[0]&16777216&&u!==(u=P[24]("titleProductRestriction")+"")&&d.set_data(_,u)},d(P){P&&d.detach(e),p=!1,x()}}}function rs(i){let e,t=i[78].text+"",o,r,s;function a(){return i[45](i[78])}return{c(){e=d.element("div"),o=d.text(t)},m(n,l){d.insert(n,e,l),d.append(e,o),r||(s=d.listen(e,"click",a),r=!0)},p(n,l){i=n,l[0]&512&&t!==(t=i[78].text+"")&&d.set_data(o,t)},d(n){n&&d.detach(e),r=!1,s()}}}function ss(i){let e,t,o=i[24]("duration")+"",r,s,a,n=i[24]("dateInstructions")+"",l,c,h,u,_,p,x;return{c(){e=d.element("div"),t=d.element("label"),r=d.text(o),s=d.space(),a=d.element("span"),l=d.text(n),c=d.space(),h=d.element("strong"),u=d.text(i[25]),_=d.element("strong"),p=d.space(),x=d.element("vaadin-date-picker"),d.attr(t,"for","ProductRestrictionDate"),d.attr(a,"class","ProductRestrictionDateInstructions"),d.set_custom_element_data(x,"min",i[11]),d.set_custom_element_data(x,"max",i[12]),d.set_custom_element_data(x,"value",i[11]),d.attr(e,"class","ProductRestrictionDateWrapper")},m(P,A){d.insert(P,e,A),d.append(e,t),d.append(t,r),d.append(e,s),d.append(e,a),d.append(a,l),d.append(a,c),d.append(a,h),d.append(h,u),d.append(h,_),d.append(e,p),d.append(e,x),i[46](x)},p(P,A){A[0]&16777216&&o!==(o=P[24]("duration")+"")&&d.set_data(r,o),A[0]&16777216&&n!==(n=P[24]("dateInstructions")+"")&&d.set_data(l,n),A[0]&2048&&d.set_custom_element_data(x,"min",P[11]),A[0]&4096&&d.set_custom_element_data(x,"max",P[12]),A[0]&2048&&d.set_custom_element_data(x,"value",P[11])},d(P){P&&d.detach(e),i[46](null)}}}function Gu(i){let e,t,o=i[24]("temporaryProductRestriction",{values:{date:i[13]}})+"",r;return{c(){e=d.element("p"),t=d.element("strong"),r=d.text(o),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,a){d.insert(s,e,a),d.append(e,t),d.append(t,r)},p(s,a){a[0]&16785408&&o!==(o=s[24]("temporaryProductRestriction",{values:{date:s[13]}})+"")&&d.set_data(r,o)},d(s){s&&d.detach(e)}}}function Ju(i){let e,t,o=i[24]("noPeriodSelected")+"",r;return{c(){e=d.element("p"),t=d.element("strong"),r=d.text(o),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,a){d.insert(s,e,a),d.append(e,t),d.append(t,r)},p(s,a){a[0]&16777216&&o!==(o=s[24]("noPeriodSelected")+"")&&d.set_data(r,o)},d(s){s&&d.detach(e)}}}function Xu(i){let e,t,o=i[24]("permanentProductRestriction")+"",r;return{c(){e=d.element("p"),t=d.element("strong"),r=d.text(o),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,a){d.insert(s,e,a),d.append(e,t),d.append(t,r)},p(s,a){a[0]&16777216&&o!==(o=s[24]("permanentProductRestriction")+"")&&d.set_data(r,o)},d(s){s&&d.detach(e)}}}function as(i){let e,t=i[24]("deniedProductText",{values:{date:i[34](i[75])}})+"",o;return{c(){e=d.element("p"),o=d.text(t)},m(r,s){d.insert(r,e,s),d.append(e,o)},p(r,s){s[0]&16778240&&t!==(t=r[24]("deniedProductText",{values:{date:r[34](r[75])}})+"")&&d.set_data(o,t)},d(r){r&&d.detach(e)}}}function ns(i){let e,t,o,r,s,a=i[28](i[75])+"",n,l,c,h,u,_,p=i[75].restricted&&as(i);function x(){return i[47](i[77])}return{c(){e=d.element("button"),t=d.element("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',o=d.space(),r=d.element("div"),s=d.element("p"),n=d.text(a),l=d.space(),p&&p.c(),c=d.space(),d.attr(t,"class","toggleCheckbox"),d.attr(s,"class","label"),d.attr(r,"class","ProductRestrictionLabel"),d.attr(e,"class",h="toggleContent "+(i[75].checked||i[75].restricted?"checked":""))},m(P,A){d.insert(P,e,A),d.append(e,t),d.append(e,o),d.append(e,r),d.append(r,s),d.append(s,n),d.append(r,l),p&&p.m(r,null),d.append(e,c),u||(_=d.listen(e,"click",x),u=!0)},p(P,A){i=P,A[0]&1024&&a!==(a=i[28](i[75])+"")&&d.set_data(n,a),i[75].restricted?p?p.p(i,A):(p=as(i),p.c(),p.m(r,null)):p&&(p.d(1),p=null),A[0]&1024&&h!==(h="toggleContent "+(i[75].checked||i[75].restricted?"checked":""))&&d.attr(e,"class",h)},d(P){P&&d.detach(e),p&&p.d(),u=!1,_()}}}function ls(i){let e,t,o;return{c(){e=d.element("div"),t=d.element("p"),o=d.text(i[17]),d.attr(e,"class","ProductRestrictionError")},m(r,s){d.insert(r,e,s),d.append(e,t),d.append(t,o)},p(r,s){s[0]&131072&&d.set_data(o,r[17])},d(r){r&&d.detach(e)}}}function Zu(i){let e,t,o,r;return{c(){e=d.element("player-account-modal"),t=d.element("player-account-general-confirmation-modal"),d.set_custom_element_data(t,"modaltitle",o=i[24]("confirmationModalTitle")),d.set_custom_element_data(t,"modaltext",i[16]),d.set_custom_element_data(t,"hascancelbutton",r=i[2]==="true"),d.set_custom_element_data(t,"modalconfirmevent","setProductRestriction"),d.set_custom_element_data(t,"mbsource",i[5]),d.set_custom_element_data(t,"lang",i[0]),d.set_custom_element_data(e,"clientstyling",i[3]),d.set_custom_element_data(e,"clientstylingurl",i[4]),d.set_custom_element_data(e,"mbsource",i[5]),d.set_custom_element_data(e,"showmodaleventname","ShowProductRestrictionConfirmationModal")},m(s,a){d.insert(s,e,a),d.append(e,t),i[49](t)},p(s,a){a[0]&16777216&&o!==(o=s[24]("confirmationModalTitle"))&&d.set_custom_element_data(t,"modaltitle",o),a[0]&65536&&d.set_custom_element_data(t,"modaltext",s[16]),a[0]&4&&r!==(r=s[2]==="true")&&d.set_custom_element_data(t,"hascancelbutton",r),a[0]&32&&d.set_custom_element_data(t,"mbsource",s[5]),a[0]&1&&d.set_custom_element_data(t,"lang",s[0]),a[0]&8&&d.set_custom_element_data(e,"clientstyling",s[3]),a[0]&16&&d.set_custom_element_data(e,"clientstylingurl",s[4]),a[0]&32&&d.set_custom_element_data(e,"mbsource",s[5])},d(s){s&&d.detach(e),i[49](null)}}}function Qu(i){let e;return{c(){e=d.element("h2"),e.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',d.attr(e,"class","PlayerProductRestrictionTitle")},m(t,o){d.insert(t,e,o)},d(t){t&&d.detach(e)}}}function ep(i){let e;return{c(){e=d.element("div"),e.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',d.attr(e,"class","MenuReturnButton")},m(t,o){d.insert(t,e,o)},d(t){t&&d.detach(e)}}}function tp(i){let e,t,o;return{c(){e=d.element("ui-skeleton"),t=d.space(),o=d.element("ui-skeleton"),d.set_custom_element_data(e,"structure","text"),d.set_custom_element_data(e,"width","auto"),d.set_custom_element_data(e,"height","10px"),d.set_custom_element_data(o,"structure","title"),d.set_custom_element_data(o,"width","auto"),d.set_custom_element_data(o,"height","10px")},m(r,s){d.insert(r,e,s),d.insert(r,t,s),d.insert(r,o,s)},p:d.noop,d(r){r&&(d.detach(e),d.detach(t),d.detach(o))}}}function op(i){let e;return{c(){e=d.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> ',d.attr(e,"class","toggleContent")},m(t,o){d.insert(t,e,o)},p:d.noop,d(t){t&&d.detach(e)}}}function ip(i){let e;function t(s,a){return s[22]?Yu:Uu}let o=t(i),r=o(i);return{c(){e=d.element("div"),r.c()},m(s,a){d.insert(s,e,a),r.m(e,null),i[50](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:d.noop,o:d.noop,d(s){s&&d.detach(e),r.d(),i[50](null)}}}function rp(i,e,t){let o;d.component_subscribe(i,d.$format,m=>t(24,o=m));let{endpoint:r=""}=e,{session:s=""}=e,{playerid:a=""}=e,{lang:n="en"}=e,{baseurl:l=""}=e,{mergeproducts:c="Casino+Virtuals"}=e,{hideproducts:h=""}=e,{hasconfirmationmodal:u="false"}=e,{hascancelbutton:_=""}=e,{dateformat:p="DD/MM/YYYY"}=e,{clientstyling:x=""}=e,{clientstylingurl:P=""}=e,{mbsource:A}=e,{translationurl:B=""}=e,N,L,ee=[],H={},I=[],he=p.toUpperCase(),oe=window.navigator.userAgent,le,G,D="",de="",fe="selectAPeriod",k="",b="",f="",y=d.getDevice(oe)!=="PC",v=!1,S=!1,E=!1,M=!1,W=u==="true",Y=!0,J=!1,X;const Ce=()=>{fetch(B).then(z=>z.json()).then(z=>{Object.keys(z).forEach(T=>{es(T,z[T])})}).catch(z=>{console.log(z)})};Object.keys(ts).forEach(m=>{es(m,ts[m])});const te=m=>tr(this,null,function*(){var z;if(m.status>=300)return t(23,J=!0),b=(z=(yield m.json()).thirdPartyResponse)==null?void 0:z.errorCode,t(17,f=o(b||"generalError")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:f}},window.location.href),Promise.reject(f);if(t(23,J=!1),m.headers.get("content-type")){let T=yield m.json();return Promise.resolve(T)}return Promise.resolve()}),ue=()=>{t(20,E=de&&I.some(m=>m.checked)),W&&E&&O()},K=m=>{if(!c)return m;const z=c.split(","),T=[],Q=new Set;for(const Se of m){if(Q.has(Se))continue;const Ne=z.find(ve=>ve.includes(Se));Ne?(Ne.split("+").forEach(ve=>Q.add(ve)),T.push(Ne)):T.push(Se)}return T},j=m=>{const z=Object.keys(m).filter(Q=>!h.includes(Q));let T=K(z);t(10,I=T.map(Q=>({type:Q,checked:!1,restricted:!1})))},pe=m=>{var z;return(z=m.type)==null?void 0:z.split("+").map(T=>o(T)).join(" + ")},we=m=>{t(9,ee=m.map(z=>({key:(z.number||"")+z.unit,text:o((z.number||"")+z.unit)})))},ie=m=>{I[m].restricted||(t(10,I[m].checked=!I[m].checked,I),ue())},Ie=()=>{t(21,M=!M)},re=m=>{switch(t(14,de=m.text),t(15,fe=m.key),t(21,M=!1),t(18,v=!1),t(19,S=!1),fe){case"Until":t(19,S=!0),t(11,le=je().add(6,"M").format("YYYY-MM-DD")),t(12,G=je().add(5,"y").format("YYYY-MM-DD")),t(13,D=le);break;case"Permanent":t(18,v=!v);break;default:const z=fe.match(/\d+/g)[0],T=fe.match(/[a-zA-Z]+/g)[0],Q=T.includes("Day")?"days":T.includes("Month")?"months":T.includes("Year")?"years":null;if(!T)return;t(13,D=ae(je().add(Number(z),Q)));break}ue()},ae=m=>je(m).format(he),ke=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},w=m=>{t(13,D=m.target.value)},q=()=>{L.addEventListener("change",w,!1);const m=T=>je(new Date(T.year,T.month,T.day)).format(he),z=T=>{const Q=je(T,he);return{year:Q.year(),month:Q.month(),day:Q.date()}};t(7,L.i18n=er(Qi({},L.i18n),{formatDate:m,parseDate:z}),L)},O=()=>{if(!W||!de||!D){t(16,k="");return}let m="";I.forEach(z=>{!z.checked||z.restricted||(m=m?`${m}, ${pe(z)}`:`${pe(z)}`)}),t(16,k=o("confirmationModalTextPeriodProductRestriction",{values:{period:o(de),product:m,date:D}}))},Me=m=>{m.preventDefault(),W?window.postMessage({type:"ShowProductRestrictionConfirmationModal"},window.location.href):Eo()},Ji=()=>{const m=new URL("/api/v1/gm/legislation/responsible-gambling/product-restrictions/metadata/",r);fetch(m,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(T=>te(T)).then(T=>{j(T.products),we(T.periods),Za()}).catch(T=>{console.error(T)}).finally(()=>{t(22,Y=!1)})},Za=()=>{const m=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${a}/deny-products/`,r);fetch(m,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(T=>te(T)).then(T=>{T.denyProductsRoles.forEach(Q=>{let Se=I.findIndex(Ne=>{var ve;return c?(ve=Ne.type)==null?void 0:ve.split("+").some(hn=>hn===Q.productType):Q.productType===Ne.type});Se!=-1&&t(10,I[Se].restricted=!0,I),H[Q.productType]=ae(Q.expirationDate)})}).catch(T=>{console.error(T)}).finally(()=>{t(22,Y=!1)})},Qa=m=>{if(!c)return H[m.type];if(m.type.includes("+")){const z=m.type.split("+");return H[z[0]]}else return H[m.type]},en=m=>{const z=m.filter(T=>T.checked);return c?z.reduce((T,Q)=>[...T,...Q.type.split("+")],[]):z.map(T=>T.type)},Eo=()=>{t(22,Y=!0);const m=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${a}/deny-products/`,r);let z=fe.match(/\d+/g)[0],T=fe.match(/[a-zA-Z]+/g)[0],Se=en(I).map(ve=>({productType:ve,expirationPeriod:{unit:T,number:z}})),Ne={method:"POST",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({denyProductsRoles:Se})};fetch(m.href,Ne).then(ve=>te(ve)).then(ve=>{Ji(),window.postMessage({type:"WidgetNotification",data:{type:"success",message:o("productRestrictionSuccess")}},window.location.href),t(20,E=!1)}).catch(ve=>{console.error(o("errorProductRestrictionCall"),ve)}).finally(()=>{t(22,Y=!1)})};d.onMount(()=>()=>{L&&L.removeEventListener("change",w),X.removeEventListener("setProductRestriction",Eo)});const tn=()=>{$u(n)},on=()=>ke(),rn=()=>Ie(),sn=m=>re(m);function an(m){d.binding_callbacks[m?"unshift":"push"](()=>{L=m,t(7,L)})}const nn=m=>ie(m),ln=m=>Me(m);function dn(m){d.binding_callbacks[m?"unshift":"push"](()=>{X=m,t(8,X)})}function cn(m){d.binding_callbacks[m?"unshift":"push"](()=>{N=m,t(6,N)})}return i.$$set=m=>{"endpoint"in m&&t(35,r=m.endpoint),"session"in m&&t(36,s=m.session),"playerid"in m&&t(37,a=m.playerid),"lang"in m&&t(0,n=m.lang),"baseurl"in m&&t(1,l=m.baseurl),"mergeproducts"in m&&t(38,c=m.mergeproducts),"hideproducts"in m&&t(39,h=m.hideproducts),"hasconfirmationmodal"in m&&t(40,u=m.hasconfirmationmodal),"hascancelbutton"in m&&t(2,_=m.hascancelbutton),"dateformat"in m&&t(41,p=m.dateformat),"clientstyling"in m&&t(3,x=m.clientstyling),"clientstylingurl"in m&&t(4,P=m.clientstylingurl),"mbsource"in m&&t(5,A=m.mbsource),"translationurl"in m&&t(42,B=m.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&1&&n&&tn(),i.$$.dirty[1]&112&&r&&s&&a&&Ji(),i.$$.dirty[0]&128&&L&&q(),i.$$.dirty[0]&72&&x&&N&&d.setClientStyling(N,x),i.$$.dirty[0]&80&&P&&N&&d.setClientStylingURL(N,P),i.$$.dirty[0]&96&&A&&N&&d.setStreamStyling(N,`${A}.Style`),i.$$.dirty[1]&2048&&B&&Ce(),i.$$.dirty[0]&256&&X&&X.addEventListener("setProductRestriction",Eo)},W&&O(),[n,l,_,x,P,A,N,L,X,ee,I,le,G,D,de,fe,k,f,v,S,E,M,Y,J,o,he,y,W,pe,ie,Ie,re,ke,Me,Qa,r,s,a,c,h,u,p,B,on,rn,sn,an,nn,ln,dn,cn]}class Xa extends d.SvelteComponent{constructor(e){super(),d.init(this,e,rp,ip,d.safe_not_equal,{endpoint:35,session:36,playerid:37,lang:0,baseurl:1,mergeproducts:38,hideproducts:39,hasconfirmationmodal:40,hascancelbutton:2,dateformat:41,clientstyling:3,clientstylingurl:4,mbsource:5,translationurl:42},ju,[-1,-1,-1])}get endpoint(){return this.$$.ctx[35]}set endpoint(e){this.$$set({endpoint:e}),d.flush()}get session(){return this.$$.ctx[36]}set session(e){this.$$set({session:e}),d.flush()}get playerid(){return this.$$.ctx[37]}set playerid(e){this.$$set({playerid:e}),d.flush()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),d.flush()}get baseurl(){return this.$$.ctx[1]}set baseurl(e){this.$$set({baseurl:e}),d.flush()}get mergeproducts(){return this.$$.ctx[38]}set mergeproducts(e){this.$$set({mergeproducts:e}),d.flush()}get hideproducts(){return this.$$.ctx[39]}set hideproducts(e){this.$$set({hideproducts:e}),d.flush()}get hasconfirmationmodal(){return this.$$.ctx[40]}set hasconfirmationmodal(e){this.$$set({hasconfirmationmodal:e}),d.flush()}get hascancelbutton(){return this.$$.ctx[2]}set hascancelbutton(e){this.$$set({hascancelbutton:e}),d.flush()}get dateformat(){return this.$$.ctx[41]}set dateformat(e){this.$$set({dateformat:e}),d.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),d.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d.flush()}get mbsource(){return this.$$.ctx[5]}set mbsource(e){this.$$set({mbsource:e}),d.flush()}get translationurl(){return this.$$.ctx[42]}set translationurl(e){this.$$set({translationurl:e}),d.flush()}}d.create_custom_element(Xa,{endpoint:{},session:{},playerid:{},lang:{},baseurl:{},mergeproducts:{},hideproducts:{},hasconfirmationmodal:{},hascancelbutton:{},dateformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);const sp=Object.freeze(Object.defineProperty({__proto__:null,default:Xa},Symbol.toStringTag,{value:"Module"}));exports.PlayerAccountProductRestriction_ce=sp;exports.dayjs=je;
|