@everymatrix/player-account-controller-nd 1.90.18 → 1.90.19
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-CXVGoJbK.cjs → GeneralLogout-89gTB7Uz.cjs} +1 -1
- package/components/{GeneralLogout-a96P0EWC.js → GeneralLogout-C0uX_TlR.js} +1 -1
- package/components/{GeneralLogout-qLEOWWZ4.js → GeneralLogout-CiYCYk3e.js} +1 -1
- package/components/{PlayerAccountBettingHistory-C8QF7Tf8.cjs → PlayerAccountBettingHistory-CHZLahYu.cjs} +1 -1
- package/components/{PlayerAccountBettingHistory-BM0iruk0.js → PlayerAccountBettingHistory-DPKq1s2o.js} +1 -1
- package/components/{PlayerAccountBettingHistory-ju_qqt2l.js → PlayerAccountBettingHistory-fxUbNbRX.js} +1 -1
- package/components/{PlayerAccountBiometrics-CvXEMN4w.js → PlayerAccountBiometrics-8_6OYEkB.js} +2 -2
- package/components/{PlayerAccountBiometrics-C6tnNN9b.cjs → PlayerAccountBiometrics-BX04mlhh.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-2_FTAwEx.js → PlayerAccountBiometrics-DAbSKUS3.js} +2 -2
- package/components/{PlayerAccountBiometricsAction-D0R8e57Z.cjs → PlayerAccountBiometricsAction-BHVZJdMc.cjs} +1 -1
- package/components/{PlayerAccountBiometricsAction-Bb7ZpI2g.js → PlayerAccountBiometricsAction-Bj9AL76h.js} +1 -1
- package/components/{PlayerAccountBiometricsAction-DtTykH6y.js → PlayerAccountBiometricsAction-CzlhYnku.js} +1 -1
- package/components/{PlayerAccountClosureNd-IywQnUOY.cjs → PlayerAccountClosureNd-8cbh7CaY.cjs} +1 -1
- package/components/{PlayerAccountClosureNd-B6u1uwHs.js → PlayerAccountClosureNd-qI27D567.js} +1 -1
- package/components/{PlayerAccountClosureNd-BE_sOsMh.js → PlayerAccountClosureNd-yghV7bzU.js} +1 -1
- package/components/{PlayerAccountControllerNd-L_SIhf5M.js → PlayerAccountControllerNd-BoQ0hlGa.js} +23 -23
- package/components/{PlayerAccountControllerNd-B5E1mE7_.js → PlayerAccountControllerNd-Cesv5lhO.js} +23 -23
- package/components/{PlayerAccountControllerNd-Dwj3MhvH.cjs → PlayerAccountControllerNd-DpvMSmdc.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-D_lxEo7e.js → PlayerAccountGamingLimits-BUZby1dd.js} +2 -2
- package/components/{PlayerAccountGamingLimits-DaiuH1Hl.js → PlayerAccountGamingLimits-BZ-4ozly.js} +2 -2
- package/components/{PlayerAccountGamingLimits-BS6zXCKc.cjs → PlayerAccountGamingLimits-DyuQNVqH.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-t0Sf6zR4.cjs → PlayerAccountGamingLimitsConfirmationModal-B5RgVmhI.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CWHmBlCq.js → PlayerAccountGamingLimitsConfirmationModal-BMp8Wsn3.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BH6XZeGK.js → PlayerAccountGamingLimitsConfirmationModal-CThsfQIR.js} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-CMvc75ly.js → PlayerAccountGamingLimitsGroupEdit-1Nwc6pY5.js} +5 -5
- package/components/{PlayerAccountGamingLimitsGroupEdit-CtqOO5Wm.cjs → PlayerAccountGamingLimitsGroupEdit-BCtwixTh.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-BGfMYR9r.js → PlayerAccountGamingLimitsGroupEdit-DaxuN3d8.js} +5 -5
- package/components/{PlayerAccountGamingLimitsHistory2Nd-BztZOayA.js → PlayerAccountGamingLimitsHistory2Nd-BbK_D024.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-DyiUl199.js → PlayerAccountGamingLimitsHistory2Nd-CN4jtIuK.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-DGFSQ0nL.cjs → PlayerAccountGamingLimitsHistory2Nd-DBXLtTLq.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-Bk1PKpyV.js → PlayerAccountGamingLimitsInfoCard-Bryg0yhX.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-DIhSa9QO.js → PlayerAccountGamingLimitsInfoCard-CpAjWtLD.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-CeJL2-ct.cjs → PlayerAccountGamingLimitsInfoCard-DdO0GzJu.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-BoMu5_or.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-B0zMPb-c.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-Bij5DXWq.js → PlayerAccountGamingLimitsPage2Gm16Nd-Dt0FyUn7.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-D_YSVQdG.js → PlayerAccountGamingLimitsPage2Gm16Nd-qn2MKCfg.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-DpQloKuV.js → PlayerAccountGamingLimitsPopup-BoDtrlU_.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-BrnDcdQD.cjs → PlayerAccountGamingLimitsPopup-BvaEtJpD.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-C7EETY4d.js → PlayerAccountGamingLimitsPopup-DJZz9Trn.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-j6na67Ox.js → PlayerAccountGamingLimitsWrapper2Nd-Bbbx60MV.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-Bf0yGbqU.js → PlayerAccountGamingLimitsWrapper2Nd-CPQzRaMZ.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-B49rGDTi.cjs → PlayerAccountGamingLimitsWrapper2Nd-xDuk8jXc.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-Dqv7njZo.js → PlayerAccountGeneralConfirmationModal-BmDgM4hY.js} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-CXbyeXsU.js → PlayerAccountGeneralConfirmationModal-CfyCqELh.js} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-CejdyL1Q.cjs → PlayerAccountGeneralConfirmationModal-DqSkmHh6.cjs} +1 -1
- package/components/{PlayerAccountMenuNd-BjCoU4O7.cjs → PlayerAccountMenuNd-BLNbUcEn.cjs} +1 -1
- package/components/{PlayerAccountMenuNd-ZkcX5jVA.js → PlayerAccountMenuNd-Bbm2sbd4.js} +2 -2
- package/components/{PlayerAccountMenuNd-CD82D-hZ.js → PlayerAccountMenuNd-D6ec_DLs.js} +2 -2
- package/components/{PlayerAccountModal-I1DaW_Qn.js → PlayerAccountModal-BZ0sDSnR.js} +1 -1
- package/components/{PlayerAccountModal-qWWxPIyW.cjs → PlayerAccountModal-DXwjHmSK.cjs} +1 -1
- package/components/{PlayerAccountModal-C6XfTasa.js → PlayerAccountModal-qL9qxFPU.js} +1 -1
- package/components/{PlayerAccountNotifications-CHzT0UMN.js → PlayerAccountNotifications-CKQpUB-P.js} +1 -1
- package/components/{PlayerAccountNotifications-VTDZLz1z.js → PlayerAccountNotifications-CLwwoaRm.js} +1 -1
- package/components/{PlayerAccountNotifications-DNEJNAby.cjs → PlayerAccountNotifications-DTeDpu9q.cjs} +1 -1
- package/components/{PlayerAccountProductRestriction-CRcdJLKJ.cjs → PlayerAccountProductRestriction-BvkUdige.cjs} +1 -1
- package/components/{PlayerAccountProductRestriction-C1srH2Sh.js → PlayerAccountProductRestriction-CTwt2YrX.js} +5 -5
- package/components/{PlayerAccountProductRestriction-DBOCT88L.js → PlayerAccountProductRestriction-DLpuzJ6V.js} +5 -5
- package/components/{PlayerAccountReviewFrequency-N7J6EhTl.js → PlayerAccountReviewFrequency-BMSXgWFM.js} +1 -1
- package/components/{PlayerAccountReviewFrequency-CfcDV36k.cjs → PlayerAccountReviewFrequency-BjPOUCW6.cjs} +1 -1
- package/components/{PlayerAccountReviewFrequency-Db-FfRyd.js → PlayerAccountReviewFrequency-SRucAQWs.js} +1 -1
- package/components/{PlayerAccountSelfExclusionNd-yoxYMJlh.js → PlayerAccountSelfExclusionNd-CGHbwNOS.js} +4 -4
- package/components/{PlayerAccountSelfExclusionNd-DfPtdYLT.cjs → PlayerAccountSelfExclusionNd-CSOmoAmP.cjs} +1 -1
- package/components/{PlayerAccountSelfExclusionNd-DQ_yEQCD.js → PlayerAccountSelfExclusionNd-D0dPEE-g.js} +4 -4
- package/components/{PlayerAccountTimeout-v8iBVwFU.js → PlayerAccountTimeout-BMvdpN5F.js} +3 -3
- package/components/{PlayerAccountTimeout-C9XT9YrQ.js → PlayerAccountTimeout-BriPH8VX.js} +3 -3
- package/components/{PlayerAccountTimeout-DN5bxde3.cjs → PlayerAccountTimeout-DJ9a5rCM.cjs} +1 -1
- package/components/{PlayerAccountTransactionsHistory-B5S5puZp.js → PlayerAccountTransactionsHistory-1P9GPLwd.js} +4 -4
- package/components/{PlayerAccountTransactionsHistory-B-lUvB8U.cjs → PlayerAccountTransactionsHistory-CFCBfNiw.cjs} +1 -1
- package/components/{PlayerAccountTransactionsHistory-DiJS4NJK.js → PlayerAccountTransactionsHistory-DMCpxQbF.js} +4 -4
- package/components/{PlayerActiveBonuses-Dk0eblw6.cjs → PlayerActiveBonuses-CSnBLaFl.cjs} +1 -1
- package/components/{PlayerActiveBonuses-BwYb7wL-.js → PlayerActiveBonuses-DfeJN2Su.js} +2 -2
- package/components/{PlayerActiveBonuses-gr48uqZE.js → PlayerActiveBonuses-N_S5S36h.js} +2 -2
- package/components/{PlayerBonusCard-D9rA4fSt.js → PlayerBonusCard-77sM-p-W.js} +2 -2
- package/components/{PlayerBonusCard-CvUmascQ.js → PlayerBonusCard-BV7Sbg4u.js} +2 -2
- package/components/{PlayerBonusCard-4u8zm6gI.cjs → PlayerBonusCard-CoXqPH3X.cjs} +1 -1
- package/components/{PlayerBonusHistory-C4I5jkw1.js → PlayerBonusHistory-BL8RVBMw.js} +2 -2
- package/components/{PlayerBonusHistory-Bd-1KHZi.cjs → PlayerBonusHistory-DArJm6_8.cjs} +1 -1
- package/components/{PlayerBonusHistory-BhcFQyi-.js → PlayerBonusHistory-RP1pKzzy.js} +2 -2
- package/components/{PlayerChangePasswordNd-DGDnKiBA.js → PlayerChangePasswordNd-CQzR0qgW.js} +1 -1
- package/components/{PlayerChangePasswordNd-Du5q_t2K.cjs → PlayerChangePasswordNd-DDB-B81s.cjs} +1 -1
- package/components/{PlayerChangePasswordNd-CqZtvP4B.js → PlayerChangePasswordNd-DncxSKJI.js} +1 -1
- package/components/{PlayerDeposit-BYvvj05s.js → PlayerDeposit-CKVg18-Y.js} +1 -1
- package/components/{PlayerDeposit-Bf8VJV-A.js → PlayerDeposit-CMCs-_ur.js} +1 -1
- package/components/{PlayerDeposit-QkAFQ8R2.cjs → PlayerDeposit-CieLNw22.cjs} +1 -1
- package/components/{PlayerGamingHistory-COSxfKC8.cjs → PlayerGamingHistory-D6K73Ohd.cjs} +1 -1
- package/components/{PlayerGamingHistory-OiQbbnp_.js → PlayerGamingHistory-DltyIs1-.js} +3 -3
- package/components/{PlayerGamingHistory-Cprv-NAb.js → PlayerGamingHistory-DrOdnBwK.js} +3 -3
- package/components/{PlayerPendingWithdrawals-BGECRHRO.js → PlayerPendingWithdrawals-DBzt67Xx.js} +1 -1
- package/components/{PlayerPendingWithdrawals-BEb0P5gs.js → PlayerPendingWithdrawals-PP_waTFY.js} +1 -1
- package/components/{PlayerPendingWithdrawals-DlqI-_1H.cjs → PlayerPendingWithdrawals-ZdWpWyIW.cjs} +1 -1
- package/components/{PlayerProfileInfo-CgxTzTTY.js → PlayerProfileInfo-CiJVtZFU.js} +2 -2
- package/components/{PlayerProfileInfo-DdAk4xrj.js → PlayerProfileInfo-DEus4ake.js} +2 -2
- package/components/{PlayerProfileInfo-n-Yz36qZ.cjs → PlayerProfileInfo-XCVVOQeF.cjs} +1 -1
- package/components/{PlayerRealityCheck-CoT9uPKt.js → PlayerRealityCheck-D2HzQqA1.js} +1 -1
- package/components/{PlayerRealityCheck-iW9aUFOz.js → PlayerRealityCheck-DAFp9sxn.js} +1 -1
- package/components/{PlayerRealityCheck-C4poZM7f.cjs → PlayerRealityCheck-tCiifu2g.cjs} +1 -1
- package/components/{PlayerTransactionHistory-BWfWqsjJ.js → PlayerTransactionHistory-BZ9c6GR9.js} +1 -1
- package/components/{PlayerTransactionHistory-BKNlpHzL.js → PlayerTransactionHistory-BclyM-v2.js} +1 -1
- package/components/{PlayerTransactionHistory-DNtr-3-L.cjs → PlayerTransactionHistory-DDacbZ9_.cjs} +1 -1
- package/components/{PlayerWithdrawal-Bwdr8dy1.js → PlayerWithdrawal-7pGb5zrp.js} +1 -1
- package/components/{PlayerWithdrawal-Dj7WOJwN.cjs → PlayerWithdrawal-DV7JPU1I.cjs} +1 -1
- package/components/{PlayerWithdrawal-xnhk_JrV.js → PlayerWithdrawal-wLFvyql6.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-Dc1WF1Ae.js → general-logout-BO93CF-B.js} +1 -1
- package/lazy/{general-logout-BxjMA9Z9.cjs → general-logout-BtZ7Y360.cjs} +1 -1
- package/lazy/{general-logout-CMdjaaur.js → general-logout-CuTvNT-R.js} +1 -1
- package/lazy/{pam-change-password-BrPCcwCs.js → pam-change-password-BE0vE8P8.js} +1 -1
- package/lazy/{pam-change-password-BCtRpc9F.cjs → pam-change-password-Bmn88Dw2.cjs} +1 -1
- package/lazy/{pam-change-password-nZIQa5g7.js → pam-change-password-hj_U_cLv.js} +1 -1
- package/lazy/{player-account-betting-history-DULzJ0Sb.cjs → player-account-betting-history-01hXTZ1d.cjs} +1 -1
- package/lazy/{player-account-betting-history-D8gxKYd7.js → player-account-betting-history-Dq68DPNn.js} +1 -1
- package/lazy/{player-account-betting-history-Cq26ugHw.js → player-account-betting-history-Dzj88qjC.js} +1 -1
- package/lazy/{player-account-biometrics-BwBEEdaa.js → player-account-biometrics-BPbnTvHa.js} +1 -1
- package/lazy/{player-account-biometrics-action-CQldAJRx.cjs → player-account-biometrics-action-1Mjx2-HW.cjs} +1 -1
- package/lazy/{player-account-biometrics-action-DtXJQBMN.js → player-account-biometrics-action-BWYPLGwD.js} +1 -1
- package/lazy/{player-account-biometrics-action-XH9PWVi2.js → player-account-biometrics-action-bHkmJRO-.js} +1 -1
- package/lazy/{player-account-biometrics-BaN2mRr2.js → player-account-biometrics-nvqR8wMM.js} +1 -1
- package/lazy/{player-account-biometrics-CDvOZfBp.cjs → player-account-biometrics-ysIWzUK6.cjs} +1 -1
- package/lazy/{player-account-closure-nd-CrKLvabw.js → player-account-closure-nd-BBUq30ru.js} +1 -1
- package/lazy/{player-account-closure-nd-QHS9Z7B-.js → player-account-closure-nd-SeV9KDef.js} +1 -1
- package/lazy/{player-account-closure-nd-BavDAtIf.cjs → player-account-closure-nd-pUHbUFML.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-CRoy0-Vm.js → player-account-gaming-limits-BcN18_Ub.js} +1 -1
- package/lazy/{player-account-gaming-limits-confirmation-modal-DqVCnZmb.cjs → player-account-gaming-limits-confirmation-modal-00_sEAle.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-confirmation-modal-DH02VnR1.js → player-account-gaming-limits-confirmation-modal-5iyFsw0o.js} +1 -1
- package/lazy/{player-account-gaming-limits-confirmation-modal-E2gpNRaC.js → player-account-gaming-limits-confirmation-modal-BJLDOPHb.js} +1 -1
- package/lazy/{player-account-gaming-limits-group-edit-D8A1ZKxr.js → player-account-gaming-limits-group-edit-BSsNIR_3.js} +1 -1
- package/lazy/{player-account-gaming-limits-group-edit-BwcYDi5f.js → player-account-gaming-limits-group-edit-C464SrhY.js} +1 -1
- package/lazy/{player-account-gaming-limits-group-edit-QWqiR-sN.cjs → player-account-gaming-limits-group-edit-CMCIhjyy.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-history-2-nd-Diuh4LQH.js → player-account-gaming-limits-history-2-nd-C0ldXOuo.js} +1 -1
- package/lazy/{player-account-gaming-limits-history-2-nd-BXkwFs4F.js → player-account-gaming-limits-history-2-nd-C9nScux1.js} +1 -1
- package/lazy/{player-account-gaming-limits-history-2-nd-BbOrJIOK.cjs → player-account-gaming-limits-history-2-nd-gFkYWZtf.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-B3mFE5cE.js → player-account-gaming-limits-iRzGLsuj.js} +1 -1
- package/lazy/{player-account-gaming-limits-info-card-CFondT9C.js → player-account-gaming-limits-info-card-CrI2p__K.js} +1 -1
- package/lazy/{player-account-gaming-limits-info-card-DNYGtZb4.cjs → player-account-gaming-limits-info-card-DJgXRN-Z.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-info-card-Bre0KpRU.js → player-account-gaming-limits-info-card-zXAM9ljo.js} +1 -1
- package/lazy/{player-account-gaming-limits-page-2-gm16-nd-7RZXfkyu.js → player-account-gaming-limits-page-2-gm16-nd-CAinepkq.js} +1 -1
- package/lazy/{player-account-gaming-limits-page-2-gm16-nd-DC0_mxo0.cjs → player-account-gaming-limits-page-2-gm16-nd-DMJS1CH0.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-page-2-gm16-nd-BvyLamBW.js → player-account-gaming-limits-page-2-gm16-nd-SCoHREHp.js} +1 -1
- package/lazy/{player-account-gaming-limits-popup-DhMIq7ZL.js → player-account-gaming-limits-popup-B7mGoG07.js} +1 -1
- package/lazy/{player-account-gaming-limits-popup-DXpZ4WIo.js → player-account-gaming-limits-popup-DXtGJJLc.js} +1 -1
- package/lazy/{player-account-gaming-limits-popup-8apwtUgc.cjs → player-account-gaming-limits-popup-DpfcbbC9.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-BOdN-zGx.cjs → player-account-gaming-limits-ufBdKpGw.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-wrapper-2-nd-C6_OtAgP.js → player-account-gaming-limits-wrapper-2-nd-BTIHaAOX.js} +1 -1
- package/lazy/{player-account-gaming-limits-wrapper-2-nd-DMgoL1Hl.cjs → player-account-gaming-limits-wrapper-2-nd-CzvnQYXv.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-wrapper-2-nd-FoHarVqt.js → player-account-gaming-limits-wrapper-2-nd-DD771YHv.js} +1 -1
- package/lazy/{player-account-general-confirmation-modal-C9TBgoOy.cjs → player-account-general-confirmation-modal-PHOyYgjC.cjs} +1 -1
- package/lazy/{player-account-general-confirmation-modal-eMOjlB74.js → player-account-general-confirmation-modal-cPEOVocx.js} +1 -1
- package/lazy/{player-account-general-confirmation-modal-DeD3fVwg.js → player-account-general-confirmation-modal-hDcGwsnq.js} +1 -1
- package/lazy/{player-account-menu-nd-DnE3ZJCr.js → player-account-menu-nd-BXbJrcSf.js} +1 -1
- package/lazy/{player-account-menu-nd-B1i8f9vc.js → player-account-menu-nd-CYo6hyFq.js} +1 -1
- package/lazy/{player-account-menu-nd-druqIhyE.cjs → player-account-menu-nd-TFyM1Xzx.cjs} +1 -1
- package/lazy/{player-account-modal-CwdExVf7.js → player-account-modal-DTVi4M5y.js} +1 -1
- package/lazy/{player-account-modal-y0Ki6IN6.js → player-account-modal-DThkAEyP.js} +1 -1
- package/lazy/{player-account-modal-DszMm4N7.cjs → player-account-modal-pzuVFtr-.cjs} +1 -1
- package/lazy/{player-account-notifications-CM3quY6g.cjs → player-account-notifications-4W5iBNaW.cjs} +1 -1
- package/lazy/{player-account-notifications-Cgk2MmqN.js → player-account-notifications-OpJ45uwn.js} +1 -1
- package/lazy/{player-account-notifications-DswqqcuD.js → player-account-notifications-stbLZglY.js} +1 -1
- package/lazy/{player-account-product-restriction-2LRroZuQ.js → player-account-product-restriction-BfI0590B.js} +1 -1
- package/lazy/{player-account-product-restriction-DANc2AkI.js → player-account-product-restriction-DxjkzO3S.js} +1 -1
- package/lazy/{player-account-product-restriction-Dhs9-Dt8.cjs → player-account-product-restriction-d3yc8l3M.cjs} +1 -1
- package/lazy/{player-account-review-frequency-V80Vu3SX.js → player-account-review-frequency-BUwsHAAN.js} +1 -1
- package/lazy/{player-account-review-frequency-C8yAtnib.cjs → player-account-review-frequency-Ce8G_j1G.cjs} +1 -1
- package/lazy/{player-account-review-frequency-C02d1JsM.js → player-account-review-frequency-Cp1NRy7b.js} +1 -1
- package/lazy/{player-account-self-exclusion-nd-CffdNtMN.js → player-account-self-exclusion-nd-BS40rYQt.js} +1 -1
- package/lazy/{player-account-self-exclusion-nd-DmwyeijP.cjs → player-account-self-exclusion-nd-CDbom5fS.cjs} +1 -1
- package/lazy/{player-account-self-exclusion-nd-DLebFpwq.js → player-account-self-exclusion-nd-vjwtpeNt.js} +1 -1
- package/lazy/{player-account-timeout-DYEdG6eV.js → player-account-timeout-BVr3V4oC.js} +1 -1
- package/lazy/{player-account-timeout-DcEqqTpO.cjs → player-account-timeout-DppBzLrU.cjs} +1 -1
- package/lazy/{player-account-timeout-DttQVJbz.js → player-account-timeout-Dq2l0zhU.js} +1 -1
- package/lazy/{player-account-transactions-history-fnRG_cot.js → player-account-transactions-history-C8mHfggh.js} +1 -1
- package/lazy/{player-account-transactions-history-CAay6J9B.cjs → player-account-transactions-history-LZ2cirUv.cjs} +1 -1
- package/lazy/{player-account-transactions-history-hU-4qCvh.js → player-account-transactions-history-cKU2-NZ6.js} +1 -1
- package/lazy/{player-active-bonuses-BvW2XGJy.js → player-active-bonuses-Bn7y7xu5.js} +1 -1
- package/lazy/{player-active-bonuses-BoCfyzLv.js → player-active-bonuses-DRXVpGQc.js} +1 -1
- package/lazy/{player-active-bonuses-DfBfBCgI.cjs → player-active-bonuses-uRsfVHqe.cjs} +1 -1
- package/lazy/{player-bonus-card-CESsHz_n.cjs → player-bonus-card-BaAEALFx.cjs} +1 -1
- package/lazy/{player-bonus-card-BJAqJWdQ.js → player-bonus-card-CvDfAr1R.js} +1 -1
- package/lazy/{player-bonus-card-j718T_Lq.js → player-bonus-card-DTtd46Pw.js} +1 -1
- package/lazy/{player-bonus-history-fsv7DJ9N.js → player-bonus-history-BAtoOsVV.js} +1 -1
- package/lazy/{player-bonus-history-CRPMBVe-.cjs → player-bonus-history-CsccKIxm.cjs} +1 -1
- package/lazy/{player-bonus-history-DmAUlDTA.js → player-bonus-history-Vs42xez6.js} +1 -1
- package/lazy/{player-change-password-nd-BcrqvkxW.js → player-change-password-nd-BnvkaDzM.js} +1 -1
- package/lazy/{player-change-password-nd-DrQb8ARB.cjs → player-change-password-nd-C06wReq9.cjs} +1 -1
- package/lazy/{player-change-password-nd-CUS8XgQ8.js → player-change-password-nd-CGxvnV_L.js} +1 -1
- package/lazy/{player-deposit-DGS9EKS6.js → player-deposit-CB-GeU1O.js} +1 -1
- package/lazy/{player-deposit-BTNkQwWE.cjs → player-deposit-CBDxE1Gi.cjs} +1 -1
- package/lazy/{player-deposit-D780B7dn.js → player-deposit-Cdvog7HJ.js} +1 -1
- package/lazy/{player-gaming-history-BOxJBEFM.cjs → player-gaming-history-CI3zJHM3.cjs} +1 -1
- package/lazy/{player-gaming-history-DrhVCroB.js → player-gaming-history-D-yZi-L3.js} +1 -1
- package/lazy/{player-gaming-history-CYRF306e.js → player-gaming-history-UaovGUeZ.js} +1 -1
- package/lazy/{player-pending-withdrawals-BAZOLLgZ.js → player-pending-withdrawals-B544prW2.js} +1 -1
- package/lazy/{player-pending-withdrawals-DF-TEnDN.js → player-pending-withdrawals-BgbOxtRt.js} +1 -1
- package/lazy/{player-pending-withdrawals-D76usMHG.cjs → player-pending-withdrawals-DZV1pGri.cjs} +1 -1
- package/lazy/{player-profile-info-DOCWuVNM.js → player-profile-info-BZAQyiC0.js} +1 -1
- package/lazy/{player-profile-info-DVymWDms.js → player-profile-info-CunLwWmS.js} +1 -1
- package/lazy/{player-profile-info-CrbJlA_P.cjs → player-profile-info-Ef3UTach.cjs} +1 -1
- package/lazy/{player-reality-check-CiIYTszM.js → player-reality-check-3Az-9Utn.js} +1 -1
- package/lazy/{player-reality-check-CT_NzWJm.cjs → player-reality-check-CTtgHisV.cjs} +1 -1
- package/lazy/{player-reality-check-_ug2DEk9.js → player-reality-check-PfhKfUID.js} +1 -1
- package/lazy/{player-transaction-history-d56RUU__.js → player-transaction-history-Bt7QsOVD.js} +1 -1
- package/lazy/{player-transaction-history-QW8OceYj.cjs → player-transaction-history-C9xigroH.cjs} +1 -1
- package/lazy/{player-transaction-history-Cu7ytQA5.js → player-transaction-history-fTBTUCHk.js} +1 -1
- package/lazy/{player-withdrawal-DS8v1Wp6.js → player-withdrawal-DJi8KboY.js} +1 -1
- package/lazy/{player-withdrawal-CsMLXrwc.cjs → player-withdrawal-DYQnIGEg.cjs} +1 -1
- package/lazy/{player-withdrawal-DDZI7pk0.js → player-withdrawal-V-sKhywN.js} +1 -1
- package/package.json +1 -1
- package/stencil/{checkbox-group-input_16-CudHtCuR.cjs → checkbox-group-input_16-CHliwhSw.cjs} +44 -44
- package/stencil/{checkbox-group-input_16-BZdjv9Cg.js → checkbox-group-input_16-CmM1X5LH.js} +61 -27
- package/stencil/{checkbox-group-input_16-y0UEnvDT.js → checkbox-group-input_16-zcpnxfEV.js} +61 -27
- package/stencil/{pam-change-password-233d1ebe-4jXdg-DD.cjs → pam-change-password-233d1ebe-BhXLpAAO.cjs} +1 -1
- package/stencil/{pam-change-password-233d1ebe-DQ5IdMWP.js → pam-change-password-233d1ebe-CitCb2bL.js} +1 -1
- package/stencil/{pam-change-password-233d1ebe-wuKoq-WB.js → pam-change-password-233d1ebe-DbDkNWnF.js} +1 -1
- package/stencil/pam-change-password-BXT7hGZu.js +11 -0
- package/stencil/pam-change-password-CNz-bTBk.js +29 -0
- package/stencil/pam-change-password-D53erCUQ.cjs +1 -0
- package/stencil/pam-change-password-B9u-3DO1.js +0 -29
- package/stencil/pam-change-password-CJ0ZQdF-.js +0 -11
- package/stencil/pam-change-password-CK4xtCJs.cjs +0 -1
package/stencil/{checkbox-group-input_16-CudHtCuR.cjs → checkbox-group-input_16-CHliwhSw.cjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../lazy/pam-change-password-BCtRpc9F.cjs"),w=require("./pam-change-password-233d1ebe-4jXdg-DD.cjs"),Ys="en",Ee={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",dateFormatError:"The selected date has a different format then the one required.",numberLengthError:"The number should be between {min} and {max}",lengthError:"The length should be between {minLength} and {maxLength}",fixedLengthError:"The length should be {length} characters",requiredError:"This input is required.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"Password does not meet all criteria",passwordStrength:"Password strength",passwordStrengthWeak:"is not adequate",passwordStrengthStrong:"is adequate",SpecialCharactersNotAllowed:"Should not contain special characters",InvalidEmailFormat:"Invalid email format.",EmailNotMatching:"Emails not matching!",PasswordNotMatching:"Passwords not matching",MustIncludeNumber:"Password must include a number",MustContainCapital:"Password must include a capital letter",MustIncludePunctation:"Password must include punctuation",MustIncludeLowercase:"Password must include one lowercase character",OnlyNumbers:"The input should contain only digits.",InvalidFieldSize:"The length must be exactly 11 digits.",InvalidDocumentNumber:"Only numerical characters are allowed.",twofaDescription:"<p> We have sent the verification code to <p> {destination}. </p> </p> <p> Please insert the PIN below. </p>",twofaResendMessage:"Didn't receive the verification code?",twofaResendButton:"Resend",enterIEAddressManually:"For IRE, enter the address manually",postalLookUpNoAddressFound:"No addresses found for this postal code",searchingForAddresses:"Searching for addresses...",SAIdLengthError:"SA ID must be 13 digits",SAIdInvalidError:"Invalid SA ID",PassportLengthError:"Passport number must be 8 or 9 digits.",PasswordMustContain:"Password must contain:",AlphanumericalOnly:"Only alphanumerical characters are allowed",InvalidFirstName:"Only alphabetic characters are allowed.",InvalidLastName:"Only alphabetic characters are allowed."},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",dateError2:"A kiválasztott dátum nincs az elfogadott tartományon belül",dateFormatError:"A kiválasztott dátum formátuma eltér a szükségestől.",numberLengthError:"A számnak {min} és {max} között kell lennie",lengthError:"A hossznak {minLength} és {maxLength} között kell lennie",fixedLengthError:"A hossznak {length} karakternek kell lennie",requiredError:"Ez a beviteli mező kötelező.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"A jelszó nem felel meg minden kritériumnak",passwordStrength:"Jelszó erőssége",passwordStrengthWeak:"nem megfelelő",passwordStrengthStrong:"megfelelő",SpecialCharactersNotAllowed:"Nem tartalmazhat speciális karaktereket",InvalidEmailFormat:"Érvénytelen e-mail formátum.",EmailNotMatching:"Az e-mailek nem egyeznek!",PasswordNotMatching:"A jelszavak nem egyeznek",MustIncludeNumber:"A jelszónak tartalmaznia kell egy számot",MustContainCapital:"A jelszónak tartalmaznia kell egy nagybetűt",MustIncludePunctation:"A jelszónak tartalmaznia kell írásjelet",MustIncludeLowercase:"A jelszónak legalább egy kisbetűt kell tartalmaznia",OnlyNumbers:"Csak számjegyeket tartalmazhat.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie.",InvalidDocumentNumber:"Csak számjegyek engedélyezettek.",twofaDescription:"<p> A megerősítő kódot elküldtük a következő címre: <p> {destination}. </p> </p> <p> Kérjük, írja be az alábbi PIN-kódot. </p>",twofaResendMessage:"Nem kapta meg a megerősítő kódot?",twofaResendButton:"Újraküldés",PassportLengthError:"Az útlevélszámnak 9 számjegyűnek kell lennie",SAIdLengthError:"A dél-afrikai személyi számnak 13 számjegyűnek kell lennie",SAIdInvalidError:"Érvénytelen dél-afrikai személyi szám",PasswordMustContain:"A jelszónak tartalmaznia kell:",AlphanumericalOnly:"Csak alfanumerikus karakterek engedélyezettek",InvalidFirstName:"Csak betűk engedélyezettek.",InvalidLastName:"Csak betűk engedélyezettek."},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",dateFormatError:"Odabrani datum je u drugačijem formatu od potrebnog.",numberLengthError:"Broj bi trebao biti između {min} i {max}",lengthError:"Duljina bi trebala biti između {minLength} i {maxLength}",fixedLengthError:"Duljina mora biti {length} znakova",requiredError:"Ovaj unos je obavezan.",invalidOriginalPasswordError:"Lozinke se ne podudaraju",invalidPassword:"Lozinka ne zadovoljava sve kriterije",passwordStrength:"Lozinka",passwordStrengthWeak:"nije dovoljno jaka",passwordStrengthStrong:"je dovoljno jaka",SpecialCharactersNotAllowed:"Ne smije sadržavati posebne znakove",InvalidEmailFormat:"Nevažeći format e-maila",EmailNotMatching:"E-mailovi se ne podudaraju!",PasswordNotMatching:"Lozinke se ne podudaraju",MustIncludeNumber:"Lozinka mora sadržavati broj",MustContainCapital:"Lozinka mora sadržavati veliko slovo",MustIncludePunctation:"Lozinka mora sadržavati barem jedan znak",MustIncludeLowercase:"Lozinka mora sadržavati barem jedno malo slovo",OnlyNumbers:"Smije sadržavati samo znamenke.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki.",InvalidDocumentNumber:"Dopušteni su samo numerički znakovi.",twofaDescription:"<p> Poslali smo verifikacijski kod na: <p> {destination}. </p> </p> <p> Molimo unesite PIN ispod. </p>",twofaResendMessage:"Niste primili verifikacijski kod?",twofaResendButton:"Ponovno pošalji",PassportLengthError:"Broj putovnice mora imati 9 znamenki",SAIdLengthError:"Južnoafrički osobni broj mora imati 13 znamenki",SAIdInvalidError:"Nevažeći južnoafrički osobni broj",PasswordMustContain:"Lozinka mora sadržavati:",AlphanumericalOnly:"Dopušteni su samo alfanumerički znakovi",InvalidFirstName:"Dozvoljena su samo slova.",InvalidLastName:"Dozvoljena su samo slova."},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",dateFormatError:"Seçilen tarihin formatı, gereken formattan farklı.",numberLengthError:"Sayı {min} ve {max} arasında olmalıdır",lengthError:"Uzunluk {minLength} ve {maxLength} arasında olmalıdır",fixedLengthError:"Uzunluk {length} karakter olmalıdır",requiredError:"Bu alan zorunludur.",invalidOriginalPasswordError:"İlk şifre alanı tüm kriterleri karşılamıyor.",invalidPassword:"Şifre tüm kriterleri karşılamıyor",passwordStrength:"Şifre gücü",passwordStrengthWeak:"yetersiz",passwordStrengthStrong:"yeterli",SpecialCharactersNotAllowed:"Özel karakter içermemelidir",InvalidEmailFormat:"Geçersiz e-posta formatı.",EmailNotMatching:"E-postalar uyuşmuyor!",PasswordNotMatching:"Şifreler uyuşmuyor",MustIncludeNumber:"bir sayı içermelidir",MustContainCapital:"büyük harf içermelidir",MustIncludePunctation:"noktalama işareti içermelidir",MustIncludeLowercase:"Şifre en az bir küçük harf içermelidir",OnlyNumbers:"Yalnızca rakamlar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır.",InvalidDocumentNumber:"Sadece sayısal karakterlere izin verilir.",twofaDescription:"<p> Doğrulama kodunu şu adrese gönderdik: <p> {destination}. </p> </p> <p> Lütfen aşağıya PIN kodunu girin. </p>",twofaResendMessage:"Doğrulama kodunu almadınız mı?",twofaResendButton:"Yeniden gönder",PassportLengthError:"Pasaport numarası 9 haneli olmalıdır",SAIdLengthError:"Güney Afrika kimlik numarası 13 haneli olmalıdır",SAIdInvalidError:"Geçersiz Güney Afrika kimlik numarası",PasswordMustContain:"Şifre şunları içermelidir:",AlphanumericalOnly:"Yalnızca alfanümerik karakterlere izin verilir",InvalidFirstName:"Yalnızca alfabetik karakterlere izin verilir.",InvalidLastName:"Yalnızca alfabetik karakterlere izin verilir."},"pt-br":{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro de um intervalo válido",dateFormatError:"A data selecionada está em um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório",invalidOriginalPasswordError:"O campo de senha inicial não faz parte dos critérios válidos",invalidPassword:"A senha não atende a todos os critérios",PasswordStrength:"Força da senha",PasswordStrengthWeak:"Não é adequado",PasswordStrengthStrong:"é apropriado",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido",EmailNotMatching:"E-mail não corresponde",PasswordNotMatching:"Senha não corresponde",MustIncludeNumber:"A senha deve incluir um número",MustContainCapital:"A senha deve incluir uma letra maiúscula",MustIncludePunctation:"A senha deve incluir um sinal de pontuação",MustIncludeLowercase:"A senha deve conter pelo menos uma letra minúscula",OnlyNumbers:"Deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviamos o código de verificação para: <p> {destination}. </p> </p> <p> Por favor, insira o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",PassportLengthError:"O número do passaporte deve ter 9 dígitos",SAIdLengthError:"O número de identificação da África do Sul deve ter 13 dígitos",SAIdInvalidError:"Número de identificação da África do Sul inválido",PasswordMustContain:"A senha deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos."},pt:{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro do intervalo aceite",dateFormatError:"A data selecionada tem um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório.",invalidOriginalPasswordError:"O campo da palavra-passe inicial não cumpre todos os critérios.",invalidPassword:"A palavra-passe não cumpre todos os critérios",passwordStrength:"Força da palavra-passe",passwordStrengthWeak:"não é adequada",passwordStrengthStrong:"é adequada",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido.",EmailNotMatching:"Os emails não coincidem!",PasswordNotMatching:"As palavras-passe não coincidem",MustIncludeNumber:"A palavra-passe deve incluir um número",MustContainCapital:"A palavra-passe deve incluir uma letra maiúscula",MustIncludePunctation:"A palavra-passe deve incluir pontuação",MustIncludeLowercase:"A palavra-passe deve incluir um caractere minúsculo",OnlyNumbers:"O campo deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviámos o código de verificação para <p> {destination}. </p> </p> <p> Por favor, introduza o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",enterIEAddressManually:"Para IRE, introduza o endereço manualmente",postalLookUpNoAddressFound:"Não foram encontrados endereços para este código postal",searchingForAddresses:"A procurar endereços...",SAIdLengthError:"O ID da África do Sul deve ter 13 dígitos",SAIdInvalidError:"ID da África do Sul inválido",PassportLengthError:"O número de passaporte deve ter 8 ou 9 dígitos.",PasswordMustContain:"A palavra-passe deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos."},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",dateFormatError:"La fecha seleccionada tiene un formato diferente al requerido.",numberLengthError:"El número debe ser entre {min} y {max}",lengthError:"La longitud deber ser entre {minLength} y {maxLength}",fixedLengthError:"La longitud debe ser de {length} caracteres",requiredError:"Este campo es requerido",invalidOriginalPasswordError:"El campo de contraseña inicial no es parte del criterio válido",invalidPassword:"La contraseña no cumple con todos los criterios",PasswordStrength:"La fortaleza de la contraseña",PasswordStrengthWeak:"no es adecuada",PasswordStrengthStrong:"es adecuada",SpecialCharactersNotAllowed:"No debe contener caracteres especiales",InvalidEmailFormat:"Formato inválido de correo",EmailNotMatching:"El correo electrónico no coincide",PasswordNotMatching:"La contraseña no coincide",MustIncludeNumber:"La contraseña debe incluir un número",MustContainCapital:"La contraseña debe incluir una letra mayúscula",MustIncludePunctation:"La contraseña debe incluir un signo de puntuación",MustIncludeLowercase:"La contraseña debe contener al menos una letra minúscula",OnlyNumbers:"Debe contener solo dígitos.",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos.",InvalidDocumentNumber:"Solo se permiten caracteres numéricos.",twofaDescription:"<p> Hemos enviado el código de verificación a: <p> {destination}. </p> </p> <p> Por favor, ingrese el PIN a continuación. </p>",twofaResendMessage:"¿No recibiste el código de verificación?",twofaResendButton:"Reenviar",PassportLengthError:"El número de pasaporte debe tener 9 dígitos",SAIdLengthError:"El número de identificación de Sudáfrica debe tener 13 dígitos",SAIdInvalidError:"Número de identificación de Sudáfrica inválido",PasswordMustContain:"La contraseña debe contener:",AlphanumericalOnly:"Solo se permiten caracteres alfanuméricos",InvalidFirstName:"Solo se permiten caracteres alfabéticos.",InvalidLastName:"Solo se permiten caracteres alfabéticos."},fr:{dateError:"La date sélectionnée doit être comprise entre {min} et {max}",dateError2:"La date sélectionnée n’est pas dans la plage autorisée",dateFormatError:"Le format de la date sélectionnée est incorrect.",numberLengthError:"Le nombre doit être compris entre {min} et {max}",lengthError:"La longueur doit être comprise entre {minLength} et {maxLength}",fixedLengthError:"La longueur doit être de {length} caractères",requiredError:"Ce champ est obligatoire.",invalidOriginalPasswordError:"Le mot de passe initial ne respecte pas tous les critères.",invalidPassword:"Le mot de passe ne respecte pas tous les critères",passwordStrength:"Robustesse du mot de passe",passwordStrengthWeak:"est insuffisante",passwordStrengthStrong:"est suffisante",SpecialCharactersNotAllowed:"Ne doit pas contenir de caractères spéciaux",InvalidEmailFormat:"Format d’adresse e-mail invalide.",EmailNotMatching:"Les adresses e-mail ne correspondent pas !",PasswordNotMatching:"Les mots de passe ne correspondent pas",MustIncludeNumber:"Le mot de passe doit contenir un chiffre",MustContainCapital:"Le mot de passe doit contenir une lettre majuscule",MustIncludePunctation:"Le mot de passe doit contenir un caractère de ponctuation",MustIncludeLowercase:"Le mot de passe doit contenir une lettre minuscule",OnlyNumbers:"Ce champ ne doit contenir que des chiffres.",InvalidFieldSize:"La longueur doit être exactement de 11 chiffres.",InvalidDocumentNumber:"Seuls les caractères numériques sont autorisés.",twofaDescription:"<p>Nous avons envoyé le code de vérification à <p>{destination}</p>.</p><p>Veuillez saisir le code PIN ci-dessous.</p>",twofaResendMessage:"Vous n’avez pas reçu le code de vérification ?",twofaResendButton:"Renvoyer",enterIEAddressManually:"Pour l’Irlande, saisissez l’adresse manuellement",postalLookUpNoAddressFound:"Aucune adresse trouvée pour ce code postal",searchingForAddresses:"Recherche d’adresses...",SAIdLengthError:"L’identifiant sud-africain doit comporter 13 chiffres",SAIdInvalidError:"Identifiant sud-africain invalide",PassportLengthError:"Le numéro de passeport doit comporter 8 ou 9 chiffres.",PasswordMustContain:"Le mot de passe doit contenir :",AlphanumericalOnly:"Seuls les caractères alphanumériques sont autorisés",InvalidFirstName:"Seuls les caractères alphabétiques sont autorisés.",InvalidLastName:"Seuls les caractères alphabétiques sont autorisés."}},J={DOCUMENT_NUMBER:"DocumentNumber",FIRSTNAME_ON_DOCUMENT:"FirstnameOnDocument",LASTNAME_ON_DOCUMENT:"LastnameOnDocument",PASSPORT:"Passport",SOUTH_AFRICAN_ID:"SouthAfricanID",BIRTHDATE:"BirthDate",PASSPORT_NUMERIC_REGEX:/^\d{8,9}$/,SA_ID_BASIC_REGEX:/^\d{13}$/,SOUTH_AFRICAN_ID_LENGTH:13,NON_LETTERS_REGEX:/[^A-Za-z]/g,DATE_FORMAT:"yyyy-MM-dd",PASSWORD_COMPLEXITY_PASSED:"passed",PASSWORD_COMPLEXITY_FAILED:"failed"},de={PASSPORT_INVALID:"PassportLengthError",SA_ID_LENGTH:"SAIdLengthError",SA_ID_INVALID:"SAIdInvalidError",REQUIRED:"requiredError",LENGTH:"lengthError",FIXED_LENGTH:"fixedLengthError"},_a={PASSED:"✓",FAILED:"✕"},b=(i,e,t)=>{const r=e;let a=Ee[r]?Ee[r][i]:Ee[Ys][i];if(t!==void 0)for(const[o,n]of Object.entries(t.values)){const s=new RegExp(`{${o}}`,"g");a=a.replace(s,n)}return a},Gs=i=>new Promise(e=>{fetch(i).then(t=>t.json()).then(t=>{Object.keys(t).forEach(r=>{Ee[r]=Ee[r]||{};for(let a in t[r])typeof t[r][a]=="string"&&(Ee[r]=Ee[r]||{},Ee[r][a]=t[r][a])}),e(!0)})}),Ks=i=>{if(!J.SA_ID_BASIC_REGEX.test(i))return!1;const e=i.split("").map(l=>parseInt(l,10));let t=0;for(let l=0;l<12;l+=2)t+=e[l];let r="";for(let l=1;l<12;l+=2)r+=e[l];const o=(parseInt(r,10)*2).toString().split("").reduce((l,d)=>l+parseInt(d,10),0);return(10-(t+o)%10)%10===e[12]},he="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==",Xs='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}vaadin-checkbox-group{margin-top:5px;margin-left:40px}.checkboxgroup{font-family:"Roboto";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__input{vertical-align:baseline}.checkboxgroup__input[indeterminate]::part(checkbox)::after,.checkboxgroup__input[indeterminate]::part(checkbox),.checkboxgroup__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding-left:10px;vertical-align:baseline}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkboxgroup__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}',Qs=Xs,So=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value=null,this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.selectedValues=[],this.showCheckboxes=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce((i,e)=>(i[e.name]=this.selectedValues.includes(e.name),i),{}),this.emitValueHandler(!0)}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.showCheckboxes=!0,this.selectedValues=this.options.map(i=>i.name),this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`checkboxgroup__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}handleParentCheckbox(i){const e=i.target.checked;this.showCheckboxes=e,this.selectedValues=e?this.options.map(t=>t.name):[]}renderLabel(){return h.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},h.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return h.h("div",{key:"342900ae923094f2746fd43917743d01efba942e",class:`checkboxgroup__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("div",{key:"8f3b470274047b355741b438a4e15c7c46504f5a",class:"checkboxgroup__wrapper--flex"},h.h("vaadin-checkbox",{key:"c7a74f9da877304f4d71607d58eba90dd0a29de7",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||this.defaultValue==="true",indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:i=>this.handleParentCheckbox(i)},this.renderLabel()),this.tooltip&&h.h("img",{key:"75d807ad544e043a2e3beed46bf0c7dfa2125324",class:"checkboxgroup__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),h.h("small",{key:"4b17e1e613c7561fb3c99f334926544ef2ba787a",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&h.h("vaadin-checkbox-group",{key:"9a8d573a7cb48bb2d68cceec5f39f1e0886ea05f",theme:"vertical",value:this.selectedValues,"on-value-changed":i=>{this.selectedValues=i.detail.value}},this.options.map(i=>h.h("vaadin-checkbox",{class:"checkbox__input",name:i.name,value:i.name,label:i.displayName}))))}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};So.style=Qs;const Js='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal;font-size:15px}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input[indeterminate]::part(checkbox)::after,.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding:0px;vertical-align:baseline}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input::part(required-indicator)::after{display:none}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}.checkbox__label-text.mandatory::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}',Zs=Js,Io=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCheckbox.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCheckbox(i){this.value=i.target.checked.toString(),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderLabel(){var i;return h.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},h.h("div",{class:{"checkbox__label-text":!0,mandatory:(i=this.validation)===null||i===void 0?void 0:i.mandatory},innerHTML:this.displayName}))}renderTooltip(){return this.showTooltip?h.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("div",{key:"a8d8bf6aa2001b6aee44d728a198244819ae169e",class:`checkbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("vaadin-checkbox",{key:"13a5589a78bef4277922535e59c5718d36b1f318",class:"checkbox__input",required:this.validation.mandatory,checked:this.defaultValue==="true",onChange:i=>this.handleCheckbox(i),"error-message":!this.isValid&&this.errorMessage,ref:i=>this.vaadinCheckbox=i},this.renderLabel()),this.tooltip&&h.h("img",{key:"008bb9a318c914b4b40e80b15080f7f174cc1262",class:"checkboxgroup__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Io.style=Zs;function we(i){"@babel/helpers - typeof";return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(i)}function $(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function el(i){return $(1,arguments),i instanceof Date||we(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function W(i){$(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||we(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Po(i){if($(1,arguments),!el(i)&&typeof i!="number")return!1;var e=W(i);return!isNaN(Number(e))}function ie(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function tl(i,e){$(2,arguments);var t=W(i).getTime(),r=ie(e);return new Date(t+r)}function To(i,e){$(2,arguments);var t=ie(e);return tl(i,-t)}var il=864e5;function rl(i){$(1,arguments);var e=W(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/il)+1}function Xe(i){$(1,arguments);var e=1,t=W(i),r=t.getUTCDay(),a=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}function Ao(i){$(1,arguments);var e=W(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var a=Xe(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var n=Xe(o);return e.getTime()>=a.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function al(i){$(1,arguments);var e=Ao(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Xe(t);return r}var ol=6048e5;function Do(i){$(1,arguments);var e=W(i),t=Xe(e).getTime()-al(e).getTime();return Math.round(t/ol)+1}var nl={};function tt(){return nl}function ze(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=tt(),u=ie((t=(r=(a=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=W(i),p=m.getUTCDay(),y=(p<u?7:0)+p-u;return m.setUTCDate(m.getUTCDate()-y),m.setUTCHours(0,0,0,0),m}function Cr(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=W(i),u=c.getUTCFullYear(),m=tt(),p=ie((t=(r=(a=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:m.firstWeekContainsDate)!==null&&r!==void 0?r:(l=m.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(u+1,0,p),y.setUTCHours(0,0,0,0);var M=ze(y,e),D=new Date(0);D.setUTCFullYear(u,0,p),D.setUTCHours(0,0,0,0);var C=ze(D,e);return c.getTime()>=M.getTime()?u+1:c.getTime()>=C.getTime()?u:u-1}function sl(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=tt(),u=ie((t=(r=(a=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),m=Cr(i,e),p=new Date(0);p.setUTCFullYear(m,0,u),p.setUTCHours(0,0,0,0);var y=ze(p,e);return y}var ll=6048e5;function Oo(i,e){$(1,arguments);var t=W(i),r=ze(t,e).getTime()-sl(t,e).getTime();return Math.round(r/ll)+1}function N(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var dl={y:function(e,t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return N(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):N(r+1,2)},d:function(e,t){return N(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return N(e.getUTCHours()%12||12,t.length)},H:function(e,t){return N(e.getUTCHours(),t.length)},m:function(e,t){return N(e.getUTCMinutes(),t.length)},s:function(e,t){return N(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),o=Math.floor(a*Math.pow(10,r-3));return N(o,t.length)}};const Ce=dl;var He={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},hl={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),o=a>0?a:1-a;return r.ordinalNumber(o,{unit:"year"})}return Ce.y(e,t)},Y:function(e,t,r,a){var o=Cr(e,a),n=o>0?o:1-o;if(t==="YY"){var s=n%100;return N(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):N(n,t.length)},R:function(e,t){var r=Ao(e);return N(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return N(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return N(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return N(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return Ce.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return N(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var o=Oo(e,a);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):N(o,t.length)},I:function(e,t,r){var a=Do(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):N(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ce.d(e,t)},D:function(e,t,r){var a=rl(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):N(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var o=e.getUTCDay(),n=(o-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return N(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var o=e.getUTCDay(),n=(o-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return N(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),o=a===0?7:a;switch(t){case"i":return String(o);case"ii":return N(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),o=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),o;switch(a===12?o=He.noon:a===0?o=He.midnight:o=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),o;switch(a>=17?o=He.evening:a>=12?o=He.afternoon:a>=4?o=He.morning:o=He.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return Ce.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ce.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):N(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):N(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ce.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ce.s(e,t)},S:function(e,t){return Ce.S(e,t)},X:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return ba(n);case"XXXX":case"XX":return Oe(n);case"XXXXX":case"XXX":default:return Oe(n,":")}},x:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"x":return ba(n);case"xxxx":case"xx":return Oe(n);case"xxxxx":case"xxx":default:return Oe(n,":")}},O:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ga(n,":");case"OOOO":default:return"GMT"+Oe(n,":")}},z:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ga(n,":");case"zzzz":default:return"GMT"+Oe(n,":")}},t:function(e,t,r,a){var o=a._originalDate||e,n=Math.floor(o.getTime()/1e3);return N(n,t.length)},T:function(e,t,r,a){var o=a._originalDate||e,n=o.getTime();return N(n,t.length)}};function ga(i,e){var t=i>0?"-":"+",r=Math.abs(i),a=Math.floor(r/60),o=r%60;if(o===0)return t+String(a);var n=e;return t+String(a)+n+N(o,2)}function ba(i,e){if(i%60===0){var t=i>0?"-":"+";return t+N(Math.abs(i)/60,2)}return Oe(i,e)}function Oe(i,e){var t=e||"",r=i>0?"-":"+",a=Math.abs(i),o=N(Math.floor(a/60),2),n=N(a%60,2);return r+o+t+n}const cl=hl;var ya=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Vo=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ul=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],o=r[2];if(!o)return ya(e,t);var n;switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",ya(a,t)).replace("{{time}}",Vo(o,t))},pl={p:Vo,P:ul};const Xi=pl;function Mo(i){var e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e.setUTCFullYear(i.getFullYear()),i.getTime()-e.getTime()}var ml=["D","DD"],fl=["YY","YYYY"];function No(i){return ml.indexOf(i)!==-1}function zo(i){return fl.indexOf(i)!==-1}function ti(i,e,t){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var vl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},_l=function(e,t,r){var a,o=vl[e];return typeof o=="string"?a=o:t===1?a=o.one:a=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const gl=_l;function Vi(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):i.defaultWidth,r=i.formats[t]||i.formats[i.defaultWidth];return r}}var bl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},yl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xl={date:Vi({formats:bl,defaultWidth:"full"}),time:Vi({formats:yl,defaultWidth:"full"}),dateTime:Vi({formats:wl,defaultWidth:"full"})};const Cl=xl;var kl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},El=function(e,t,r,a){return kl[e]};const Sl=El;function dt(i){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&i.formattingValues){var o=i.defaultFormattingWidth||i.defaultWidth,n=t!=null&&t.width?String(t.width):o;a=i.formattingValues[n]||i.formattingValues[o]}else{var s=i.defaultWidth,l=t!=null&&t.width?String(t.width):i.defaultWidth;a=i.values[l]||i.values[s]}var d=i.argumentCallback?i.argumentCallback(e):e;return a[d]}}var Il={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Pl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Tl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Al={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Dl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ol={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Vl=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Ml={ordinalNumber:Vl,era:dt({values:Il,defaultWidth:"wide"}),quarter:dt({values:Pl,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:dt({values:Tl,defaultWidth:"wide"}),day:dt({values:Al,defaultWidth:"wide"}),dayPeriod:dt({values:Dl,defaultWidth:"wide",formattingValues:Ol,defaultFormattingWidth:"wide"})};const Nl=Ml;function ht(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],o=e.match(a);if(!o)return null;var n=o[0],s=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],l=Array.isArray(s)?Ll(s,function(u){return u.test(n)}):zl(s,function(u){return u.test(n)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var c=e.slice(n.length);return{value:d,rest:c}}}function zl(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function Ll(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function Rl(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var a=r[0],o=e.match(i.parsePattern);if(!o)return null;var n=i.valueCallback?i.valueCallback(o[0]):o[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(a.length);return{value:n,rest:s}}}var Fl=/^(\d+)(th|st|nd|rd)?/i,$l=/\d+/i,Bl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Hl={any:[/^b/i,/^(a|c)/i]},Ul={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ql={any:[/1/i,/2/i,/3/i,/4/i]},jl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Wl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Yl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Gl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Kl={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Xl={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ql={ordinalNumber:Rl({matchPattern:Fl,parsePattern:$l,valueCallback:function(e){return parseInt(e,10)}}),era:ht({matchPatterns:Bl,defaultMatchWidth:"wide",parsePatterns:Hl,defaultParseWidth:"any"}),quarter:ht({matchPatterns:Ul,defaultMatchWidth:"wide",parsePatterns:ql,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ht({matchPatterns:jl,defaultMatchWidth:"wide",parsePatterns:Wl,defaultParseWidth:"any"}),day:ht({matchPatterns:Yl,defaultMatchWidth:"wide",parsePatterns:Gl,defaultParseWidth:"any"}),dayPeriod:ht({matchPatterns:Kl,defaultMatchWidth:"any",parsePatterns:Xl,defaultParseWidth:"any"})};const Jl=Ql;var Zl={code:"en-US",formatDistance:gl,formatLong:Cl,formatRelative:Sl,localize:Nl,match:Jl,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Lo=Zl;var ed=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,td=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,id=/^'([^]*?)'?$/,rd=/''/g,ad=/[a-zA-Z]/;function Mi(i,e,t){var r,a,o,n,s,l,d,c,u,m,p,y,M,D;$(2,arguments);var C=String(e),P=tt(),H=(r=(a=void 0)!==null&&a!==void 0?a:P.locale)!==null&&r!==void 0?r:Lo,R=ie((o=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:P.firstWeekContainsDate)!==null&&n!==void 0?n:(d=P.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=ie((u=(m=(p=(y=void 0)!==null&&y!==void 0?y:void 0)!==null&&p!==void 0?p:P.weekStartsOn)!==null&&m!==void 0?m:(M=P.locale)===null||M===void 0||(D=M.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&u!==void 0?u:0);if(!(Y>=0&&Y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!H.localize)throw new RangeError("locale must contain localize property");if(!H.formatLong)throw new RangeError("locale must contain formatLong property");var ce=W(i);if(!Po(ce))throw new RangeError("Invalid time value");var ot=Mo(ce),nt=To(ce,ot),st={firstWeekContainsDate:R,weekStartsOn:Y,locale:H,_originalDate:ce},Ai=C.match(td).map(function(X){var re=X[0];if(re==="p"||re==="P"){var Ae=Xi[re];return Ae(X,H.formatLong)}return X}).join("").match(ed).map(function(X){if(X==="''")return"'";var re=X[0];if(re==="'")return od(X);var Ae=cl[re];if(Ae)return zo(X)&&ti(X,e,String(i)),No(X)&&ti(X,e,String(i)),Ae(nt,X,H.localize,st);if(re.match(ad))throw new RangeError("Format string contains an unescaped latin alphabet character `"+re+"`");return X}).join("");return Ai}function od(i){var e=i.match(id);return e?e[1].replace(rd,"'"):i}function wa(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}function nd(i,e){if(i){if(typeof i=="string")return wa(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?wa(i,e):void 0}}function xa(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=nd(i))||e){t&&(i=t);var r=0,a=function(){};return{s:a,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,n=!0,s=!1;return{s:function(){t=t.call(i)},n:function(){var d=t.next();return n=d.done,d},e:function(d){s=!0,o=d},f:function(){try{n||t.return==null||t.return()}finally{if(s)throw o}}}}function sd(i,e){if(i==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t]);return i}function _(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Qi(i,e){return Qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Qi(i,e)}function T(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&Qi(i,e)}function ii(i){return ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ii(i)}function Ro(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ro=function(){return!!i})()}function ld(i,e){if(e&&(we(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _(i)}function A(i){var e=Ro();return function(){var t,r=ii(i);if(e){var a=ii(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return ld(this,t)}}function k(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function dd(i,e){if(we(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e);if(we(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Fo(i){var e=dd(i,"string");return we(e)=="symbol"?e:e+""}function hd(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,Fo(r.key),r)}}function E(i,e,t){return e&&hd(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function v(i,e,t){return(e=Fo(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var cd=10,$o=function(){function i(){k(this,i),v(this,"priority",void 0),v(this,"subPriority",0)}return E(i,[{key:"validate",value:function(t,r){return!0}}]),i}(),ud=function(i){T(t,i);var e=A(t);function t(r,a,o,n,s){var l;return k(this,t),l=e.call(this),l.value=r,l.validateValue=a,l.setValue=o,l.priority=n,s&&(l.subPriority=s),l}return E(t,[{key:"validate",value:function(a,o){return this.validateValue(a,this.value,o)}},{key:"set",value:function(a,o,n){return this.setValue(a,o,this.value,n)}}]),t}($o),pd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",cd),v(_(r),"subPriority",-1),r}return E(t,[{key:"set",value:function(a,o){if(o.timestampIsSet)return a;var n=new Date(0);return n.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),n.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),n}}]),t}($o),V=function(){function i(){k(this,i),v(this,"incompatibleTokens",void 0),v(this,"priority",void 0),v(this,"subPriority",void 0)}return E(i,[{key:"run",value:function(t,r,a,o){var n=this.parse(t,r,a,o);return n?{setter:new ud(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,a){return!0}}]),i}(),md=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",140),v(_(r),"incompatibleTokens",["R","u","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})||n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"})}}},{key:"set",value:function(a,o,n){return o.era=n,a.setUTCFullYear(n,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),fd=6e4,vd=36e5,_d=1e3,U={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},me={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function q(i,e){return i&&{value:e(i.value),rest:i.rest}}function F(i,e){var t=e.match(i);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function fe(i,e){var t=e.match(i);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,a=t[2]?parseInt(t[2],10):0,o=t[3]?parseInt(t[3],10):0,n=t[5]?parseInt(t[5],10):0;return{value:r*(a*vd+o*fd+n*_d),rest:e.slice(t[0].length)}}function Bo(i){return F(U.anyDigitsSigned,i)}function B(i,e){switch(i){case 1:return F(U.singleDigit,e);case 2:return F(U.twoDigits,e);case 3:return F(U.threeDigits,e);case 4:return F(U.fourDigits,e);default:return F(new RegExp("^\\d{1,"+i+"}"),e)}}function ri(i,e){switch(i){case 1:return F(U.singleDigitSigned,e);case 2:return F(U.twoDigitsSigned,e);case 3:return F(U.threeDigitsSigned,e);case 4:return F(U.fourDigitsSigned,e);default:return F(new RegExp("^-?\\d{1,"+i+"}"),e)}}function kr(i){switch(i){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Ho(i,e){var t=e>0,r=t?e:1-e,a;if(r<=50)a=i||100;else{var o=r+50,n=Math.floor(o/100)*100,s=i>=o%100;a=i+n-(s?100:0)}return t?a:1-a}function Uo(i){return i%400===0||i%4===0&&i%100!==0}var gd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return{year:d,isTwoDigitYear:o==="yy"}};switch(o){case"y":return q(B(4,a),s);case"yo":return q(n.ordinalNumber(a,{unit:"year"}),s);default:return q(B(o.length,a),s)}}},{key:"validate",value:function(a,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(a,o,n){var s=a.getUTCFullYear();if(n.isTwoDigitYear){var l=Ho(n.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var d=!("era"in o)||o.era===1?n.year:1-n.year;return a.setUTCFullYear(d,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),bd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return{year:d,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return q(B(4,a),s);case"Yo":return q(n.ordinalNumber(a,{unit:"year"}),s);default:return q(B(o.length,a),s)}}},{key:"validate",value:function(a,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(a,o,n,s){var l=Cr(a,s);if(n.isTwoDigitYear){var d=Ho(n.year,l);return a.setUTCFullYear(d,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),ze(a,s)}var c=!("era"in o)||o.era===1?n.year:1-n.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),ze(a,s)}}]),t}(V),yd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o){return ri(o==="R"?4:o.length,a)}},{key:"set",value:function(a,o,n){var s=new Date(0);return s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),Xe(s)}}]),t}(V),wd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o){return ri(o==="u"?4:o.length,a)}},{key:"set",value:function(a,o,n){return a.setUTCFullYear(n,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),xd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",120),v(_(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"Q":case"QQ":return B(o.length,a);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})||n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=1&&o<=4}},{key:"set",value:function(a,o,n){return a.setUTCMonth((n-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),Cd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",120),v(_(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"q":case"qq":return B(o.length,a);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})||n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=1&&o<=4}},{key:"set",value:function(a,o,n){return a.setUTCMonth((n-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),kd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),v(_(r),"priority",110),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d-1};switch(o){case"M":return q(F(U.month,a),s);case"MM":return q(B(2,a),s);case"Mo":return q(n.ordinalNumber(a,{unit:"month"}),s);case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})||n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,n){return a.setUTCMonth(n,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),Ed=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",110),v(_(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d-1};switch(o){case"L":return q(F(U.month,a),s);case"LL":return q(B(2,a),s);case"Lo":return q(n.ordinalNumber(a,{unit:"month"}),s);case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})||n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,n){return a.setUTCMonth(n,1),a.setUTCHours(0,0,0,0),a}}]),t}(V);function Sd(i,e,t){$(2,arguments);var r=W(i),a=ie(e),o=Oo(r,t)-a;return r.setUTCDate(r.getUTCDate()-o*7),r}var Id=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",100),v(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"w":return F(U.week,a);case"wo":return n.ordinalNumber(a,{unit:"week"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,n,s){return ze(Sd(a,n,s),s)}}]),t}(V);function Pd(i,e){$(2,arguments);var t=W(i),r=ie(e),a=Do(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var Td=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",100),v(_(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"I":return F(U.week,a);case"Io":return n.ordinalNumber(a,{unit:"week"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,n){return Xe(Pd(a,n))}}]),t}(V),Ad=[31,28,31,30,31,30,31,31,30,31,30,31],Dd=[31,29,31,30,31,30,31,31,30,31,30,31],Od=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"subPriority",1),v(_(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"d":return F(U.date,a);case"do":return n.ordinalNumber(a,{unit:"date"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){var n=a.getUTCFullYear(),s=Uo(n),l=a.getUTCMonth();return s?o>=1&&o<=Dd[l]:o>=1&&o<=Ad[l]}},{key:"set",value:function(a,o,n){return a.setUTCDate(n),a.setUTCHours(0,0,0,0),a}}]),t}(V),Vd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"subpriority",1),v(_(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"D":case"DD":return F(U.dayOfYear,a);case"Do":return n.ordinalNumber(a,{unit:"date"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){var n=a.getUTCFullYear(),s=Uo(n);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(a,o,n){return a.setUTCMonth(0,n),a.setUTCHours(0,0,0,0),a}}]),t}(V);function Er(i,e,t){var r,a,o,n,s,l,d,c;$(2,arguments);var u=tt(),m=ie((r=(a=(o=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&a!==void 0?a:(d=u.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=W(i),y=ie(e),M=p.getUTCDay(),D=y%7,C=(D+7)%7,P=(C<m?7:0)+y-M;return p.setUTCDate(p.getUTCDate()+P),p}var Md=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,n,s){return a=Er(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(V),Nd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n,s){var l=function(c){var u=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+u};switch(o){case"e":case"ee":return q(B(o.length,a),l);case"eo":return q(n.ordinalNumber(a,{unit:"day"}),l);case"eee":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,n,s){return a=Er(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(V),zd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n,s){var l=function(c){var u=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+u};switch(o){case"c":case"cc":return q(B(o.length,a),l);case"co":return q(n.ordinalNumber(a,{unit:"day"}),l);case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})||n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,n,s){return a=Er(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(V);function Ld(i,e){$(2,arguments);var t=ie(e);t%7===0&&(t=t-7);var r=1,a=W(i),o=a.getUTCDay(),n=t%7,s=(n+7)%7,l=(s<r?7:0)+t-o;return a.setUTCDate(a.getUTCDate()+l),a}var Rd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d===0?7:d};switch(o){case"i":case"ii":return B(o.length,a);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return q(n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),s);case"iiiii":return q(n.day(a,{width:"narrow",context:"formatting"}),s);case"iiiiii":return q(n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),s);case"iiii":default:return q(n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(a,o){return o>=1&&o<=7}},{key:"set",value:function(a,o,n){return a=Ld(a,n),a.setUTCHours(0,0,0,0),a}}]),t}(V),Fd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",80),v(_(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"a":case"aa":case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,n){return a.setUTCHours(kr(n),0,0,0),a}}]),t}(V),$d=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",80),v(_(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"b":case"bb":case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,n){return a.setUTCHours(kr(n),0,0,0),a}}]),t}(V),Bd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",80),v(_(r),"incompatibleTokens",["a","b","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,n){return a.setUTCHours(kr(n),0,0,0),a}}]),t}(V),Hd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["H","K","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"h":return F(U.hour12h,a);case"ho":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=12}},{key:"set",value:function(a,o,n){var s=a.getUTCHours()>=12;return s&&n<12?a.setUTCHours(n+12,0,0,0):!s&&n===12?a.setUTCHours(0,0,0,0):a.setUTCHours(n,0,0,0),a}}]),t}(V),Ud=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"H":return F(U.hour23h,a);case"Ho":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=23}},{key:"set",value:function(a,o,n){return a.setUTCHours(n,0,0,0),a}}]),t}(V),qd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["h","H","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"K":return F(U.hour11h,a);case"Ko":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,n){var s=a.getUTCHours()>=12;return s&&n<12?a.setUTCHours(n+12,0,0,0):a.setUTCHours(n,0,0,0),a}}]),t}(V),jd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"k":return F(U.hour24h,a);case"ko":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=24}},{key:"set",value:function(a,o,n){var s=n<=24?n%24:n;return a.setUTCHours(s,0,0,0),a}}]),t}(V),Wd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",60),v(_(r),"incompatibleTokens",["t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"m":return F(U.minute,a);case"mo":return n.ordinalNumber(a,{unit:"minute"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=59}},{key:"set",value:function(a,o,n){return a.setUTCMinutes(n,0,0),a}}]),t}(V),Yd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",50),v(_(r),"incompatibleTokens",["t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"s":return F(U.second,a);case"so":return n.ordinalNumber(a,{unit:"second"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=59}},{key:"set",value:function(a,o,n){return a.setUTCSeconds(n,0),a}}]),t}(V),Gd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",30),v(_(r),"incompatibleTokens",["t","T"]),r}return E(t,[{key:"parse",value:function(a,o){var n=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return q(B(o.length,a),n)}},{key:"set",value:function(a,o,n){return a.setUTCMilliseconds(n),a}}]),t}(V),Kd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",10),v(_(r),"incompatibleTokens",["t","T","x"]),r}return E(t,[{key:"parse",value:function(a,o){switch(o){case"X":return fe(me.basicOptionalMinutes,a);case"XX":return fe(me.basic,a);case"XXXX":return fe(me.basicOptionalSeconds,a);case"XXXXX":return fe(me.extendedOptionalSeconds,a);case"XXX":default:return fe(me.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(V),Xd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",10),v(_(r),"incompatibleTokens",["t","T","X"]),r}return E(t,[{key:"parse",value:function(a,o){switch(o){case"x":return fe(me.basicOptionalMinutes,a);case"xx":return fe(me.basic,a);case"xxxx":return fe(me.basicOptionalSeconds,a);case"xxxxx":return fe(me.extendedOptionalSeconds,a);case"xxx":default:return fe(me.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(V),Qd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",40),v(_(r),"incompatibleTokens","*"),r}return E(t,[{key:"parse",value:function(a){return Bo(a)}},{key:"set",value:function(a,o,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(V),Jd=function(i){T(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",20),v(_(r),"incompatibleTokens","*"),r}return E(t,[{key:"parse",value:function(a){return Bo(a)}},{key:"set",value:function(a,o,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(V),Zd={G:new md,y:new gd,Y:new bd,R:new yd,u:new wd,Q:new xd,q:new Cd,M:new kd,L:new Ed,w:new Id,I:new Td,d:new Od,D:new Vd,E:new Md,e:new Nd,c:new zd,i:new Rd,a:new Fd,b:new $d,B:new Bd,h:new Hd,H:new Ud,K:new qd,k:new jd,m:new Wd,s:new Yd,S:new Gd,X:new Kd,x:new Xd,t:new Qd,T:new Jd},eh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,th=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ih=/^'([^]*?)'?$/,rh=/''/g,ah=/\S/,oh=/[a-zA-Z]/;function ke(i,e,t,r){var a,o,n,s,l,d,c,u,m,p,y,M,D,C;$(3,arguments);var P=String(i),H=String(e),R=tt(),Y=(a=(o=void 0)!==null&&o!==void 0?o:R.locale)!==null&&a!==void 0?a:Lo;if(!Y.match)throw new RangeError("locale must contain match property");var ce=ie((n=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:R.firstWeekContainsDate)!==null&&s!==void 0?s:(c=R.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(ce>=1&&ce<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ot=ie((m=(p=(y=(M=void 0)!==null&&M!==void 0?M:void 0)!==null&&y!==void 0?y:R.weekStartsOn)!==null&&p!==void 0?p:(D=R.locale)===null||D===void 0||(C=D.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&m!==void 0?m:0);if(!(ot>=0&&ot<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(H==="")return P===""?W(t):new Date(NaN);var nt={firstWeekContainsDate:ce,weekStartsOn:ot,locale:Y},st=[new pd],Ai=H.match(th).map(function(G){var L=G[0];if(L in Xi){var le=Xi[L];return le(G,Y.formatLong)}return G}).join("").match(eh),X=[],re=xa(Ai),Ae;try{var js=function(){var L=Ae.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&zo(L)&&ti(L,H,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&No(L)&&ti(L,H,i);var le=L[0],Ut=Zd[le];if(Ut){var ma=Ut.incompatibleTokens;if(Array.isArray(ma)){var fa=X.find(function(va){return ma.includes(va.token)||va.token===le});if(fa)throw new RangeError("The format string mustn't contain `".concat(fa.fullToken,"` and `").concat(L,"` at the same time"))}else if(Ut.incompatibleTokens==="*"&&X.length>0)throw new RangeError("The format string mustn't contain `".concat(L,"` and any other token at the same time"));X.push({token:le,fullToken:L});var Oi=Ut.run(P,L,Y.match,nt);if(!Oi)return{v:new Date(NaN)};st.push(Oi.setter),P=Oi.rest}else{if(le.match(oh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+le+"`");if(L==="''"?L="'":le==="'"&&(L=nh(L)),P.indexOf(L)===0)P=P.slice(L.length);else return{v:new Date(NaN)}}};for(re.s();!(Ae=re.n()).done;){var ha=js();if(we(ha)==="object")return ha.v}}catch(G){re.e(G)}finally{re.f()}if(P.length>0&&ah.test(P))return new Date(NaN);var Ws=st.map(function(G){return G.priority}).sort(function(G,L){return L-G}).filter(function(G,L,le){return le.indexOf(G)===L}).map(function(G){return st.filter(function(L){return L.priority===G}).sort(function(L,le){return le.subPriority-L.subPriority})}).map(function(G){return G[0]}),Di=W(t);if(isNaN(Di.getTime()))return new Date(NaN);var lt=To(Di,Mo(Di)),ca={},Bt=xa(Ws),ua;try{for(Bt.s();!(ua=Bt.n()).done;){var pa=ua.value;if(!pa.validate(lt,nt))return new Date(NaN);var Ht=pa.set(lt,ca,nt);Array.isArray(Ht)?(lt=Ht[0],sd(ca,Ht[1])):lt=Ht}}catch(G){Bt.e(G)}finally{Bt.f()}return lt}function nh(i){return i.match(ih)[1].replace(rh,"'")}function Ca(i,e){$(2,arguments);var t=W(i),r=W(e);return t.getTime()>r.getTime()}function ka(i,e){$(2,arguments);var t=W(i),r=W(e);return t.getTime()<r.getTime()}function Ea(i,e,t){return $(2,arguments),Po(ke(i,e,new Date,t))}const sh='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:"Roboto";font-style:normal}.date__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__wrapper--autofilled .date__input::part(input-field){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.date__manual-mode::part(toggle-button){display:none}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.date__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.date__input>input{padding:5px 15px}.date__input::part(toggle-button){position:relative;right:10px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.date__tooltip.visible{opacity:1}',lh=sh,qo=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.formatDate=e=>{const{year:t,month:r,day:a}=e,o=new Date(t,r,a);return Mi(o,this.dateFormat)},this.parseDate=e=>{const t=ke(e,this.dateFormat,new Date);return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}},this.handleDocumentIdUpdate=e=>{if(this.name!==J.BIRTHDATE)return;const t=e.detail;this.value=t,this.valueAsDate=ke(this.value||"",J.DATE_FORMAT,new Date),this.touched=!0,this.datePicker&&(this.datePicker.value=this.value),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.valueHandler({name:this.name,value:this.value})},this.handleMaskedTyping=e=>{var t;const r=e.target;if(!r)return;const a=(t=r.selectionStart)!==null&&t!==void 0?t:r.value.length,o=r.value,[n,s,l]=this.getFormatStructure(this.dateFormat),{seps:d}=this.parseFormat(this.dateFormat),[c,u]=d,m=n+s+l,p=o.replace(/\D/g,"").slice(0,m),y=p.slice(0,n),M=p.slice(n,n+s),D=p.slice(n+s,n+s+l);let C=y;p.length>n&&(C+=c+M),p.length>n+s&&(C+=u+D),r.value=C;const P=this.totalSeparatorLength(o,[c,u]),H=this.totalSeparatorLength(C,[c,u]);let R=a+Math.max(0,H-P);R=Math.max(0,Math.min(R,C.length));try{r.setSelectionRange(R,R)}catch(Y){}if(p.length<m){this.errorMessage="",this.resetIncompleteState();return}try{const Y=ke(C,this.dateFormat,new Date);if(Y&&!isNaN(Y.getTime())){const ce=Mi(Y,"yyyy-MM-dd");this.value=ce,this.valueAsDate=Y,this.isValid=!0,this.errorMessage="",this.datePicker&&(this.datePicker.value=ce),this.valueHandler({name:this.name,value:this.value})}else this.resetIncompleteState()}catch(Y){this.resetIncompleteState()}},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.dateFormat="yyyy-MM-dd",this.emitOnClick=!1,this.enableSouthAfricanMode=void 0,this.enableManualDateInput=!1,this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}get formattedValue(){if(!this.value)return"";const i=ke(this.value,"yyyy-MM-dd",new Date);return Mi(i,this.dateFormat)}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}handleCustomRegistrationChange(i){i?window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate):window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i,e;this.minDate=ke(((i=this.validation.min)===null||i===void 0?void 0:i.toString())||"","yyyy-MM-dd",new Date),this.maxDate=ke(((e=this.validation.max)===null||e===void 0?void 0:e.toString())||"","yyyy-MM-dd",new Date)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){var i;if(this.handleClientStyling(),this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const e=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');if(e&&e.addEventListener("click",()=>this.handleCalendarIconClick()),this.datePicker.addEventListener("opened-changed",t=>{t.detail.value===!0?this.errorMessage="":(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)}),this.enableManualDateInput){const t=(i=this.datePicker)===null||i===void 0?void 0:i.inputElement;t&&t.addEventListener("input",this.handleMaskedTyping)}}this.enableSouthAfricanMode&&window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value})),this.isValid=this.setValidity()}disconnectedCallback(){var i;if(this.enableSouthAfricanMode&&window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.enableManualDateInput){const e=(i=this.datePicker)===null||i===void 0?void 0:i.inputElement;e&&e.removeEventListener("input",this.handleMaskedTyping)}}handleCalendarIconClick(){this.datePicker.opened&&this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}handleInput(i){this.value=i.target.value,this.touched=!0,this.valueAsDate=ke(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0),this.enableSouthAfricanMode&&window.dispatchEvent(new CustomEvent("birthDateUpdated",{detail:{birthDate:this.value}}))}handleValidated(){this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()}setValidity(){return ka(this.valueAsDate,this.minDate)||Ca(this.valueAsDate,this.maxDate)||!Ea(this.formattedValue,this.dateFormat)?!1:this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return b("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(ka(this.valueAsDate,this.minDate)||Ca(this.valueAsDate,this.maxDate))return b("dateError2",this.language);if(!Ea(this.formattedValue,this.dateFormat))return b("dateFormatError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`date__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}parseFormat(i){var e;const t=i!=null?i:"dd-MM-yyyy",r=/([dMy]+)|([^dMy]+)/g,a=[],o=[];let n;for(;n=r.exec(t);)n[1]?a.push(n[1]):n[2]&&o.push(n[2]);if(o.length<2){const s=(e=o[0])!==null&&e!==void 0?e:"-";for(;o.length<2;)o.push(s)}return{tokens:a,seps:[o[0],o[1]]}}getFormatStructure(i){const{tokens:e}=this.parseFormat(i);if(e.length<3)return[2,2,4];const t=e.map(r=>r.length);return[t[0],t[1],t[2]]}totalSeparatorLength(i,e){if(!i)return 0;let t=0;for(const r of e){if(!r)continue;const a=new RegExp(this.escapeRegExp(r),"g"),o=i.match(a);o&&(t+=o.length*r.length)}return t}escapeRegExp(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}resetIncompleteState(){this.value="",this.valueAsDate=void 0,this.isValid=!1}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"ffff8be16fb22a41ea8c5168a79e40b9f410c63b",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("label",{key:"60da1ad0bc4cc7757e6f1096866667a97bd146b5",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName,h.h("span",{key:"450b4638efa34f4490035b0d99b0b186f053a2d0",class:this.validation.mandatory?"date__label--required":""})),h.h("vaadin-date-picker",{key:"421875a710bb4508e3218d28bf2c28dcd0e9793b",id:`${this.name}__input`,type:"date",class:`date__input ${i} ${this.enableManualDateInput&&"date__manual-mode"}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:e=>this.handleInput(e),onValidated:()=>this.handleValidated(),autoOpenDisabled:this.enableManualDateInput}),h.h("small",{key:"33a6fed8057a84cb648f94a318c3ec0b1e495fff",class:"date__error-message"},this.errorMessage),this.tooltip&&h.h("img",{key:"d91fcd13e1ae384b67b6d478834b65136ab77b77",class:"date__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],enableSouthAfricanMode:["handleCustomRegistrationChange"]}}};qo.style=lh;const dh='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:"Roboto";font-style:normal}.email__wrapper{position:relative;width:100%}.email__wrapper--autofilled{pointer-events:none}.email__wrapper--autofilled .email__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__wrapper--autofilled .email__input{color:var(--emw--color-black, #000000)}.email__wrapper--flex{display:flex;gap:5px}.email__wrapper--relative{position:relative}.email__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.email__input{font-family:inherit;border-radius:4px;width:100%;height:40px;border:2px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;font-size:16px;font-weight:300;line-height:1.5;padding:10px}.email__input:focus{outline-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.email__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__input::placeholder{color:var(--emw--color-gray-150, #828282)}.email__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__tooltip-icon{width:16px;height:auto}.email__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.email__tooltip.visible{opacity:1}',hh=dh,jo=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value)}connectedCallback(){this.validationPattern=this.setPattern()}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return b("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.patternMismatch){const a=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorKey,o=(e=this.validation.custom.find(n=>n.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${a}`,this.language)?b(`${a}`,this.language):o}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const a=(t=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,o=(r=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return b(`${a}`,this.language)?b(`${a}`,this.language):o}}renderTooltip(){return this.showTooltip?h.h("div",{class:`email__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"f852525fe8d8b695e638fdd83e8b0c2c20d98771",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"d6a6dec4e76ba1fbe15bed09f82cecde12cabe1a",class:"email__wrapper--flex"},h.h("label",{key:"4498ae1bac287cb80544c4d743afad2ec678e3bd",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"e54d1258e48f54304a553cffb83466e4a4fadb4c",class:"email__wrapper--relative"},this.tooltip&&h.h("img",{key:"29d7b95f22c8cb70d505f74a7ea18284faa908ee",class:"email__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"08754b178e395f26c1d8a61ff667b91df3fb0ec7",id:`${this.name}__input`,type:"email",class:`email__input ${i}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"3024a57f5d0897f34013eb4397d78babc2333192",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};jo.style=hh;var ch=Object.defineProperty,uh=Object.defineProperties,ph=Object.getOwnPropertyDescriptors,Sa=Object.getOwnPropertySymbols,mh=Object.prototype.hasOwnProperty,fh=Object.prototype.propertyIsEnumerable,Ji=(i,e,t)=>e in i?ch(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ai=(i,e)=>{for(var t in e||(e={}))mh.call(e,t)&&Ji(i,t,e[t]);if(Sa)for(var t of Sa(e))fh.call(e,t)&&Ji(i,t,e[t]);return i},Wo=(i,e)=>uh(i,ph(e)),Z=(i,e,t)=>(Ji(i,typeof e!="symbol"?e+"":e,t),t),oi=(i,e,t)=>new Promise((r,a)=>{var o=l=>{try{s(t.next(l))}catch(d){a(d)}},n=l=>{try{s(t.throw(l))}catch(d){a(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,n);s((t=t.apply(i,e)).next())});/**
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../lazy/pam-change-password-Bmn88Dw2.cjs"),w=require("./pam-change-password-233d1ebe-BhXLpAAO.cjs"),Ys="en",Ee={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",dateFormatError:"The selected date has a different format then the one required.",numberLengthError:"The number should be between {min} and {max}",lengthError:"The length should be between {minLength} and {maxLength}",fixedLengthError:"The length should be {length} characters",requiredError:"This input is required.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"Password does not meet all criteria",passwordStrength:"Password strength",passwordStrengthWeak:"is not adequate",passwordStrengthStrong:"is adequate",SpecialCharactersNotAllowed:"Should not contain special characters",InvalidEmailFormat:"Invalid email format.",EmailNotMatching:"Emails not matching!",PasswordNotMatching:"Passwords not matching",MustIncludeNumber:"Password must include a number",MustContainCapital:"Password must include a capital letter",MustIncludePunctation:"Password must include punctuation",MustIncludeLowercase:"Password must include one lowercase character",OnlyNumbers:"The input should contain only digits.",InvalidFieldSize:"The length must be exactly 11 digits.",InvalidDocumentNumber:"Only numerical characters are allowed.",twofaDescription:"<p> We have sent the verification code to <p> {destination}. </p> </p> <p> Please insert the PIN below. </p>",twofaResendMessage:"Didn't receive the verification code?",twofaResendButton:"Resend",enterIEAddressManually:"For IRE, enter the address manually",postalLookUpNoAddressFound:"No addresses found for this postal code",searchingForAddresses:"Searching for addresses...",SAIdLengthError:"SA ID must be 13 digits",SAIdInvalidError:"Invalid SA ID",PassportLengthError:"Passport number must be 8 or 9 digits.",PasswordMustContain:"Password must contain:",AlphanumericalOnly:"Only alphanumerical characters are allowed",InvalidFirstName:"Only alphabetic characters are allowed.",InvalidLastName:"Only alphabetic characters are allowed.",MissingTrunkCode:"Phone number must start with 0"},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",dateError2:"A kiválasztott dátum nincs az elfogadott tartományon belül",dateFormatError:"A kiválasztott dátum formátuma eltér a szükségestől.",numberLengthError:"A számnak {min} és {max} között kell lennie",lengthError:"A hossznak {minLength} és {maxLength} között kell lennie",fixedLengthError:"A hossznak {length} karakternek kell lennie",requiredError:"Ez a beviteli mező kötelező.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"A jelszó nem felel meg minden kritériumnak",passwordStrength:"Jelszó erőssége",passwordStrengthWeak:"nem megfelelő",passwordStrengthStrong:"megfelelő",SpecialCharactersNotAllowed:"Nem tartalmazhat speciális karaktereket",InvalidEmailFormat:"Érvénytelen e-mail formátum.",EmailNotMatching:"Az e-mailek nem egyeznek!",PasswordNotMatching:"A jelszavak nem egyeznek",MustIncludeNumber:"A jelszónak tartalmaznia kell egy számot",MustContainCapital:"A jelszónak tartalmaznia kell egy nagybetűt",MustIncludePunctation:"A jelszónak tartalmaznia kell írásjelet",MustIncludeLowercase:"A jelszónak legalább egy kisbetűt kell tartalmaznia",OnlyNumbers:"Csak számjegyeket tartalmazhat.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie.",InvalidDocumentNumber:"Csak számjegyek engedélyezettek.",twofaDescription:"<p> A megerősítő kódot elküldtük a következő címre: <p> {destination}. </p> </p> <p> Kérjük, írja be az alábbi PIN-kódot. </p>",twofaResendMessage:"Nem kapta meg a megerősítő kódot?",twofaResendButton:"Újraküldés",PassportLengthError:"Az útlevélszámnak 9 számjegyűnek kell lennie",SAIdLengthError:"A dél-afrikai személyi számnak 13 számjegyűnek kell lennie",SAIdInvalidError:"Érvénytelen dél-afrikai személyi szám",PasswordMustContain:"A jelszónak tartalmaznia kell:",AlphanumericalOnly:"Csak alfanumerikus karakterek engedélyezettek",InvalidFirstName:"Csak betűk engedélyezettek.",InvalidLastName:"Csak betűk engedélyezettek.",MissingTrunkCode:"A telefonszámnak 0-val kell kezdődnie"},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",dateFormatError:"Odabrani datum je u drugačijem formatu od potrebnog.",numberLengthError:"Broj bi trebao biti između {min} i {max}",lengthError:"Duljina bi trebala biti između {minLength} i {maxLength}",fixedLengthError:"Duljina mora biti {length} znakova",requiredError:"Ovaj unos je obavezan.",invalidOriginalPasswordError:"Lozinke se ne podudaraju",invalidPassword:"Lozinka ne zadovoljava sve kriterije",passwordStrength:"Lozinka",passwordStrengthWeak:"nije dovoljno jaka",passwordStrengthStrong:"je dovoljno jaka",SpecialCharactersNotAllowed:"Ne smije sadržavati posebne znakove",InvalidEmailFormat:"Nevažeći format e-maila",EmailNotMatching:"E-mailovi se ne podudaraju!",PasswordNotMatching:"Lozinke se ne podudaraju",MustIncludeNumber:"Lozinka mora sadržavati broj",MustContainCapital:"Lozinka mora sadržavati veliko slovo",MustIncludePunctation:"Lozinka mora sadržavati barem jedan znak",MustIncludeLowercase:"Lozinka mora sadržavati barem jedno malo slovo",OnlyNumbers:"Smije sadržavati samo znamenke.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki.",InvalidDocumentNumber:"Dopušteni su samo numerički znakovi.",twofaDescription:"<p> Poslali smo verifikacijski kod na: <p> {destination}. </p> </p> <p> Molimo unesite PIN ispod. </p>",twofaResendMessage:"Niste primili verifikacijski kod?",twofaResendButton:"Ponovno pošalji",PassportLengthError:"Broj putovnice mora imati 9 znamenki",SAIdLengthError:"Južnoafrički osobni broj mora imati 13 znamenki",SAIdInvalidError:"Nevažeći južnoafrički osobni broj",PasswordMustContain:"Lozinka mora sadržavati:",AlphanumericalOnly:"Dopušteni su samo alfanumerički znakovi",InvalidFirstName:"Dozvoljena su samo slova.",InvalidLastName:"Dozvoljena su samo slova.",MissingTrunkCode:"Telefonski broj mora počinjati s 0"},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",dateFormatError:"Seçilen tarihin formatı, gereken formattan farklı.",numberLengthError:"Sayı {min} ve {max} arasında olmalıdır",lengthError:"Uzunluk {minLength} ve {maxLength} arasında olmalıdır",fixedLengthError:"Uzunluk {length} karakter olmalıdır",requiredError:"Bu alan zorunludur.",invalidOriginalPasswordError:"İlk şifre alanı tüm kriterleri karşılamıyor.",invalidPassword:"Şifre tüm kriterleri karşılamıyor",passwordStrength:"Şifre gücü",passwordStrengthWeak:"yetersiz",passwordStrengthStrong:"yeterli",SpecialCharactersNotAllowed:"Özel karakter içermemelidir",InvalidEmailFormat:"Geçersiz e-posta formatı.",EmailNotMatching:"E-postalar uyuşmuyor!",PasswordNotMatching:"Şifreler uyuşmuyor",MustIncludeNumber:"bir sayı içermelidir",MustContainCapital:"büyük harf içermelidir",MustIncludePunctation:"noktalama işareti içermelidir",MustIncludeLowercase:"Şifre en az bir küçük harf içermelidir",OnlyNumbers:"Yalnızca rakamlar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır.",InvalidDocumentNumber:"Sadece sayısal karakterlere izin verilir.",twofaDescription:"<p> Doğrulama kodunu şu adrese gönderdik: <p> {destination}. </p> </p> <p> Lütfen aşağıya PIN kodunu girin. </p>",twofaResendMessage:"Doğrulama kodunu almadınız mı?",twofaResendButton:"Yeniden gönder",PassportLengthError:"Pasaport numarası 9 haneli olmalıdır",SAIdLengthError:"Güney Afrika kimlik numarası 13 haneli olmalıdır",SAIdInvalidError:"Geçersiz Güney Afrika kimlik numarası",PasswordMustContain:"Şifre şunları içermelidir:",AlphanumericalOnly:"Yalnızca alfanümerik karakterlere izin verilir",InvalidFirstName:"Yalnızca alfabetik karakterlere izin verilir.",InvalidLastName:"Yalnızca alfabetik karakterlere izin verilir.",MissingTrunkCode:"Telefon numarası 0 ile başlamalıdır"},"pt-br":{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro de um intervalo válido",dateFormatError:"A data selecionada está em um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório",invalidOriginalPasswordError:"O campo de senha inicial não faz parte dos critérios válidos",invalidPassword:"A senha não atende a todos os critérios",PasswordStrength:"Força da senha",PasswordStrengthWeak:"Não é adequado",PasswordStrengthStrong:"é apropriado",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido",EmailNotMatching:"E-mail não corresponde",PasswordNotMatching:"Senha não corresponde",MustIncludeNumber:"A senha deve incluir um número",MustContainCapital:"A senha deve incluir uma letra maiúscula",MustIncludePunctation:"A senha deve incluir um sinal de pontuação",MustIncludeLowercase:"A senha deve conter pelo menos uma letra minúscula",OnlyNumbers:"Deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviamos o código de verificação para: <p> {destination}. </p> </p> <p> Por favor, insira o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",PassportLengthError:"O número do passaporte deve ter 9 dígitos",SAIdLengthError:"O número de identificação da África do Sul deve ter 13 dígitos",SAIdInvalidError:"Número de identificação da África do Sul inválido",PasswordMustContain:"A senha deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar com 0"},pt:{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro do intervalo aceite",dateFormatError:"A data selecionada tem um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório.",invalidOriginalPasswordError:"O campo da palavra-passe inicial não cumpre todos os critérios.",invalidPassword:"A palavra-passe não cumpre todos os critérios",passwordStrength:"Força da palavra-passe",passwordStrengthWeak:"não é adequada",passwordStrengthStrong:"é adequada",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido.",EmailNotMatching:"Os emails não coincidem!",PasswordNotMatching:"As palavras-passe não coincidem",MustIncludeNumber:"A palavra-passe deve incluir um número",MustContainCapital:"A palavra-passe deve incluir uma letra maiúscula",MustIncludePunctation:"A palavra-passe deve incluir pontuação",MustIncludeLowercase:"A palavra-passe deve incluir um caractere minúsculo",OnlyNumbers:"O campo deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviámos o código de verificação para <p> {destination}. </p> </p> <p> Por favor, introduza o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",enterIEAddressManually:"Para IRE, introduza o endereço manualmente",postalLookUpNoAddressFound:"Não foram encontrados endereços para este código postal",searchingForAddresses:"A procurar endereços...",SAIdLengthError:"O ID da África do Sul deve ter 13 dígitos",SAIdInvalidError:"ID da África do Sul inválido",PassportLengthError:"O número de passaporte deve ter 8 ou 9 dígitos.",PasswordMustContain:"A palavra-passe deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar por 0"},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",dateFormatError:"La fecha seleccionada tiene un formato diferente al requerido.",numberLengthError:"El número debe ser entre {min} y {max}",lengthError:"La longitud deber ser entre {minLength} y {maxLength}",fixedLengthError:"La longitud debe ser de {length} caracteres",requiredError:"Este campo es requerido",invalidOriginalPasswordError:"El campo de contraseña inicial no es parte del criterio válido",invalidPassword:"La contraseña no cumple con todos los criterios",PasswordStrength:"La fortaleza de la contraseña",PasswordStrengthWeak:"no es adecuada",PasswordStrengthStrong:"es adecuada",SpecialCharactersNotAllowed:"No debe contener caracteres especiales",InvalidEmailFormat:"Formato inválido de correo",EmailNotMatching:"El correo electrónico no coincide",PasswordNotMatching:"La contraseña no coincide",MustIncludeNumber:"La contraseña debe incluir un número",MustContainCapital:"La contraseña debe incluir una letra mayúscula",MustIncludePunctation:"La contraseña debe incluir un signo de puntuación",MustIncludeLowercase:"La contraseña debe contener al menos una letra minúscula",OnlyNumbers:"Debe contener solo dígitos.",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos.",InvalidDocumentNumber:"Solo se permiten caracteres numéricos.",twofaDescription:"<p> Hemos enviado el código de verificación a: <p> {destination}. </p> </p> <p> Por favor, ingrese el PIN a continuación. </p>",twofaResendMessage:"¿No recibiste el código de verificación?",twofaResendButton:"Reenviar",PassportLengthError:"El número de pasaporte debe tener 9 dígitos",SAIdLengthError:"El número de identificación de Sudáfrica debe tener 13 dígitos",SAIdInvalidError:"Número de identificación de Sudáfrica inválido",PasswordMustContain:"La contraseña debe contener:",AlphanumericalOnly:"Solo se permiten caracteres alfanuméricos",InvalidFirstName:"Solo se permiten caracteres alfabéticos.",InvalidLastName:"Solo se permiten caracteres alfabéticos.",MissingTrunkCode:"El número de teléfono debe comenzar con 0"},fr:{dateError:"La date sélectionnée doit être comprise entre {min} et {max}",dateError2:"La date sélectionnée n’est pas dans la plage autorisée",dateFormatError:"Le format de la date sélectionnée est incorrect.",numberLengthError:"Le nombre doit être compris entre {min} et {max}",lengthError:"La longueur doit être comprise entre {minLength} et {maxLength}",fixedLengthError:"La longueur doit être de {length} caractères",requiredError:"Ce champ est obligatoire.",invalidOriginalPasswordError:"Le mot de passe initial ne respecte pas tous les critères.",invalidPassword:"Le mot de passe ne respecte pas tous les critères",passwordStrength:"Robustesse du mot de passe",passwordStrengthWeak:"est insuffisante",passwordStrengthStrong:"est suffisante",SpecialCharactersNotAllowed:"Ne doit pas contenir de caractères spéciaux",InvalidEmailFormat:"Format d’adresse e-mail invalide.",EmailNotMatching:"Les adresses e-mail ne correspondent pas !",PasswordNotMatching:"Les mots de passe ne correspondent pas",MustIncludeNumber:"Le mot de passe doit contenir un chiffre",MustContainCapital:"Le mot de passe doit contenir une lettre majuscule",MustIncludePunctation:"Le mot de passe doit contenir un caractère de ponctuation",MustIncludeLowercase:"Le mot de passe doit contenir une lettre minuscule",OnlyNumbers:"Ce champ ne doit contenir que des chiffres.",InvalidFieldSize:"La longueur doit être exactement de 11 chiffres.",InvalidDocumentNumber:"Seuls les caractères numériques sont autorisés.",twofaDescription:"<p>Nous avons envoyé le code de vérification à <p>{destination}</p>.</p><p>Veuillez saisir le code PIN ci-dessous.</p>",twofaResendMessage:"Vous n’avez pas reçu le code de vérification ?",twofaResendButton:"Renvoyer",enterIEAddressManually:"Pour l’Irlande, saisissez l’adresse manuellement",postalLookUpNoAddressFound:"Aucune adresse trouvée pour ce code postal",searchingForAddresses:"Recherche d’adresses...",SAIdLengthError:"L’identifiant sud-africain doit comporter 13 chiffres",SAIdInvalidError:"Identifiant sud-africain invalide",PassportLengthError:"Le numéro de passeport doit comporter 8 ou 9 chiffres.",PasswordMustContain:"Le mot de passe doit contenir :",AlphanumericalOnly:"Seuls les caractères alphanumériques sont autorisés",InvalidFirstName:"Seuls les caractères alphabétiques sont autorisés.",InvalidLastName:"Seuls les caractères alphabétiques sont autorisés.",MissingTrunkCode:"Le numéro de téléphone doit commencer par 0"}},J={DOCUMENT_NUMBER:"DocumentNumber",FIRSTNAME_ON_DOCUMENT:"FirstnameOnDocument",LASTNAME_ON_DOCUMENT:"LastnameOnDocument",PASSPORT:"Passport",SOUTH_AFRICAN_ID:"SouthAfricanID",BIRTHDATE:"BirthDate",PASSPORT_NUMERIC_REGEX:/^\d{8,9}$/,SA_ID_BASIC_REGEX:/^\d{13}$/,SOUTH_AFRICAN_ID_LENGTH:13,NON_LETTERS_REGEX:/[^A-Za-z]/g,DATE_FORMAT:"yyyy-MM-dd",PASSWORD_COMPLEXITY_PASSED:"passed",PASSWORD_COMPLEXITY_FAILED:"failed"},de={PASSPORT_INVALID:"PassportLengthError",SA_ID_LENGTH:"SAIdLengthError",SA_ID_INVALID:"SAIdInvalidError",REQUIRED:"requiredError",LENGTH:"lengthError",FIXED_LENGTH:"fixedLengthError"},_a={PASSED:"✓",FAILED:"✕"},b=(i,e,t)=>{const r=e;let a=Ee[r]?Ee[r][i]:Ee[Ys][i];if(t!==void 0)for(const[o,n]of Object.entries(t.values)){const s=new RegExp(`{${o}}`,"g");a=a.replace(s,n)}return a},Gs=i=>new Promise(e=>{fetch(i).then(t=>t.json()).then(t=>{Object.keys(t).forEach(r=>{Ee[r]=Ee[r]||{};for(let a in t[r])typeof t[r][a]=="string"&&(Ee[r]=Ee[r]||{},Ee[r][a]=t[r][a])}),e(!0)})}),Ks=i=>{if(!J.SA_ID_BASIC_REGEX.test(i))return!1;const e=i.split("").map(l=>parseInt(l,10));let t=0;for(let l=0;l<12;l+=2)t+=e[l];let r="";for(let l=1;l<12;l+=2)r+=e[l];const o=(parseInt(r,10)*2).toString().split("").reduce((l,d)=>l+parseInt(d,10),0);return(10-(t+o)%10)%10===e[12]},he="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==",Xs='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}vaadin-checkbox-group{margin-top:5px;margin-left:40px}.checkboxgroup{font-family:"Roboto";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__input{vertical-align:baseline}.checkboxgroup__input[indeterminate]::part(checkbox)::after,.checkboxgroup__input[indeterminate]::part(checkbox),.checkboxgroup__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding-left:10px;vertical-align:baseline}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkboxgroup__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}',Qs=Xs,So=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value=null,this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.selectedValues=[],this.showCheckboxes=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce((i,e)=>(i[e.name]=this.selectedValues.includes(e.name),i),{}),this.emitValueHandler(!0)}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.showCheckboxes=!0,this.selectedValues=this.options.map(i=>i.name),this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`checkboxgroup__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}handleParentCheckbox(i){const e=i.target.checked;this.showCheckboxes=e,this.selectedValues=e?this.options.map(t=>t.name):[]}renderLabel(){return h.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},h.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return h.h("div",{key:"342900ae923094f2746fd43917743d01efba942e",class:`checkboxgroup__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("div",{key:"8f3b470274047b355741b438a4e15c7c46504f5a",class:"checkboxgroup__wrapper--flex"},h.h("vaadin-checkbox",{key:"c7a74f9da877304f4d71607d58eba90dd0a29de7",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||this.defaultValue==="true",indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:i=>this.handleParentCheckbox(i)},this.renderLabel()),this.tooltip&&h.h("img",{key:"75d807ad544e043a2e3beed46bf0c7dfa2125324",class:"checkboxgroup__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),h.h("small",{key:"4b17e1e613c7561fb3c99f334926544ef2ba787a",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&h.h("vaadin-checkbox-group",{key:"9a8d573a7cb48bb2d68cceec5f39f1e0886ea05f",theme:"vertical",value:this.selectedValues,"on-value-changed":i=>{this.selectedValues=i.detail.value}},this.options.map(i=>h.h("vaadin-checkbox",{class:"checkbox__input",name:i.name,value:i.name,label:i.displayName}))))}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};So.style=Qs;const Js='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal;font-size:15px}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input[indeterminate]::part(checkbox)::after,.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding:0px;vertical-align:baseline}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input::part(required-indicator)::after{display:none}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}.checkbox__label-text.mandatory::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}',Zs=Js,Io=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCheckbox.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCheckbox(i){this.value=i.target.checked.toString(),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderLabel(){var i;return h.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},h.h("div",{class:{"checkbox__label-text":!0,mandatory:(i=this.validation)===null||i===void 0?void 0:i.mandatory},innerHTML:this.displayName}))}renderTooltip(){return this.showTooltip?h.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("div",{key:"a8d8bf6aa2001b6aee44d728a198244819ae169e",class:`checkbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("vaadin-checkbox",{key:"13a5589a78bef4277922535e59c5718d36b1f318",class:"checkbox__input",required:this.validation.mandatory,checked:this.defaultValue==="true",onChange:i=>this.handleCheckbox(i),"error-message":!this.isValid&&this.errorMessage,ref:i=>this.vaadinCheckbox=i},this.renderLabel()),this.tooltip&&h.h("img",{key:"008bb9a318c914b4b40e80b15080f7f174cc1262",class:"checkboxgroup__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Io.style=Zs;function we(i){"@babel/helpers - typeof";return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(i)}function $(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function el(i){return $(1,arguments),i instanceof Date||we(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function W(i){$(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||we(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function To(i){if($(1,arguments),!el(i)&&typeof i!="number")return!1;var e=W(i);return!isNaN(Number(e))}function ie(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function tl(i,e){$(2,arguments);var t=W(i).getTime(),r=ie(e);return new Date(t+r)}function Po(i,e){$(2,arguments);var t=ie(e);return tl(i,-t)}var il=864e5;function rl(i){$(1,arguments);var e=W(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/il)+1}function Xe(i){$(1,arguments);var e=1,t=W(i),r=t.getUTCDay(),a=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}function Ao(i){$(1,arguments);var e=W(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var a=Xe(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var n=Xe(o);return e.getTime()>=a.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function al(i){$(1,arguments);var e=Ao(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Xe(t);return r}var ol=6048e5;function Do(i){$(1,arguments);var e=W(i),t=Xe(e).getTime()-al(e).getTime();return Math.round(t/ol)+1}var nl={};function tt(){return nl}function ze(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=tt(),u=ie((t=(r=(a=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=W(i),p=m.getUTCDay(),y=(p<u?7:0)+p-u;return m.setUTCDate(m.getUTCDate()-y),m.setUTCHours(0,0,0,0),m}function Cr(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=W(i),u=c.getUTCFullYear(),m=tt(),p=ie((t=(r=(a=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:m.firstWeekContainsDate)!==null&&r!==void 0?r:(l=m.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(u+1,0,p),y.setUTCHours(0,0,0,0);var M=ze(y,e),D=new Date(0);D.setUTCFullYear(u,0,p),D.setUTCHours(0,0,0,0);var C=ze(D,e);return c.getTime()>=M.getTime()?u+1:c.getTime()>=C.getTime()?u:u-1}function sl(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=tt(),u=ie((t=(r=(a=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),m=Cr(i,e),p=new Date(0);p.setUTCFullYear(m,0,u),p.setUTCHours(0,0,0,0);var y=ze(p,e);return y}var ll=6048e5;function Oo(i,e){$(1,arguments);var t=W(i),r=ze(t,e).getTime()-sl(t,e).getTime();return Math.round(r/ll)+1}function N(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var dl={y:function(e,t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return N(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):N(r+1,2)},d:function(e,t){return N(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return N(e.getUTCHours()%12||12,t.length)},H:function(e,t){return N(e.getUTCHours(),t.length)},m:function(e,t){return N(e.getUTCMinutes(),t.length)},s:function(e,t){return N(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),o=Math.floor(a*Math.pow(10,r-3));return N(o,t.length)}};const Ce=dl;var He={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},hl={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),o=a>0?a:1-a;return r.ordinalNumber(o,{unit:"year"})}return Ce.y(e,t)},Y:function(e,t,r,a){var o=Cr(e,a),n=o>0?o:1-o;if(t==="YY"){var s=n%100;return N(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):N(n,t.length)},R:function(e,t){var r=Ao(e);return N(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return N(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return N(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return N(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return Ce.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return N(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var o=Oo(e,a);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):N(o,t.length)},I:function(e,t,r){var a=Do(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):N(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ce.d(e,t)},D:function(e,t,r){var a=rl(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):N(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var o=e.getUTCDay(),n=(o-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return N(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var o=e.getUTCDay(),n=(o-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return N(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),o=a===0?7:a;switch(t){case"i":return String(o);case"ii":return N(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),o=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),o;switch(a===12?o=He.noon:a===0?o=He.midnight:o=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),o;switch(a>=17?o=He.evening:a>=12?o=He.afternoon:a>=4?o=He.morning:o=He.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return Ce.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ce.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):N(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):N(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ce.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ce.s(e,t)},S:function(e,t){return Ce.S(e,t)},X:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return ba(n);case"XXXX":case"XX":return Oe(n);case"XXXXX":case"XXX":default:return Oe(n,":")}},x:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"x":return ba(n);case"xxxx":case"xx":return Oe(n);case"xxxxx":case"xxx":default:return Oe(n,":")}},O:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ga(n,":");case"OOOO":default:return"GMT"+Oe(n,":")}},z:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ga(n,":");case"zzzz":default:return"GMT"+Oe(n,":")}},t:function(e,t,r,a){var o=a._originalDate||e,n=Math.floor(o.getTime()/1e3);return N(n,t.length)},T:function(e,t,r,a){var o=a._originalDate||e,n=o.getTime();return N(n,t.length)}};function ga(i,e){var t=i>0?"-":"+",r=Math.abs(i),a=Math.floor(r/60),o=r%60;if(o===0)return t+String(a);var n=e;return t+String(a)+n+N(o,2)}function ba(i,e){if(i%60===0){var t=i>0?"-":"+";return t+N(Math.abs(i)/60,2)}return Oe(i,e)}function Oe(i,e){var t=e||"",r=i>0?"-":"+",a=Math.abs(i),o=N(Math.floor(a/60),2),n=N(a%60,2);return r+o+t+n}const cl=hl;var ya=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Vo=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ul=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],o=r[2];if(!o)return ya(e,t);var n;switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",ya(a,t)).replace("{{time}}",Vo(o,t))},pl={p:Vo,P:ul};const Xi=pl;function Mo(i){var e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e.setUTCFullYear(i.getFullYear()),i.getTime()-e.getTime()}var ml=["D","DD"],fl=["YY","YYYY"];function No(i){return ml.indexOf(i)!==-1}function zo(i){return fl.indexOf(i)!==-1}function ti(i,e,t){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var vl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},_l=function(e,t,r){var a,o=vl[e];return typeof o=="string"?a=o:t===1?a=o.one:a=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const gl=_l;function Vi(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):i.defaultWidth,r=i.formats[t]||i.formats[i.defaultWidth];return r}}var bl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},yl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xl={date:Vi({formats:bl,defaultWidth:"full"}),time:Vi({formats:yl,defaultWidth:"full"}),dateTime:Vi({formats:wl,defaultWidth:"full"})};const Cl=xl;var kl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},El=function(e,t,r,a){return kl[e]};const Sl=El;function dt(i){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&i.formattingValues){var o=i.defaultFormattingWidth||i.defaultWidth,n=t!=null&&t.width?String(t.width):o;a=i.formattingValues[n]||i.formattingValues[o]}else{var s=i.defaultWidth,l=t!=null&&t.width?String(t.width):i.defaultWidth;a=i.values[l]||i.values[s]}var d=i.argumentCallback?i.argumentCallback(e):e;return a[d]}}var Il={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Tl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Pl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Al={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Dl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ol={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Vl=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Ml={ordinalNumber:Vl,era:dt({values:Il,defaultWidth:"wide"}),quarter:dt({values:Tl,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:dt({values:Pl,defaultWidth:"wide"}),day:dt({values:Al,defaultWidth:"wide"}),dayPeriod:dt({values:Dl,defaultWidth:"wide",formattingValues:Ol,defaultFormattingWidth:"wide"})};const Nl=Ml;function ht(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],o=e.match(a);if(!o)return null;var n=o[0],s=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],l=Array.isArray(s)?Ll(s,function(u){return u.test(n)}):zl(s,function(u){return u.test(n)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var c=e.slice(n.length);return{value:d,rest:c}}}function zl(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function Ll(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function Rl(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var a=r[0],o=e.match(i.parsePattern);if(!o)return null;var n=i.valueCallback?i.valueCallback(o[0]):o[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(a.length);return{value:n,rest:s}}}var Fl=/^(\d+)(th|st|nd|rd)?/i,$l=/\d+/i,Bl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Hl={any:[/^b/i,/^(a|c)/i]},Ul={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ql={any:[/1/i,/2/i,/3/i,/4/i]},jl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Wl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Yl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Gl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Kl={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Xl={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ql={ordinalNumber:Rl({matchPattern:Fl,parsePattern:$l,valueCallback:function(e){return parseInt(e,10)}}),era:ht({matchPatterns:Bl,defaultMatchWidth:"wide",parsePatterns:Hl,defaultParseWidth:"any"}),quarter:ht({matchPatterns:Ul,defaultMatchWidth:"wide",parsePatterns:ql,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ht({matchPatterns:jl,defaultMatchWidth:"wide",parsePatterns:Wl,defaultParseWidth:"any"}),day:ht({matchPatterns:Yl,defaultMatchWidth:"wide",parsePatterns:Gl,defaultParseWidth:"any"}),dayPeriod:ht({matchPatterns:Kl,defaultMatchWidth:"any",parsePatterns:Xl,defaultParseWidth:"any"})};const Jl=Ql;var Zl={code:"en-US",formatDistance:gl,formatLong:Cl,formatRelative:Sl,localize:Nl,match:Jl,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Lo=Zl;var ed=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,td=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,id=/^'([^]*?)'?$/,rd=/''/g,ad=/[a-zA-Z]/;function Mi(i,e,t){var r,a,o,n,s,l,d,c,u,m,p,y,M,D;$(2,arguments);var C=String(e),T=tt(),H=(r=(a=void 0)!==null&&a!==void 0?a:T.locale)!==null&&r!==void 0?r:Lo,R=ie((o=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:T.firstWeekContainsDate)!==null&&n!==void 0?n:(d=T.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=ie((u=(m=(p=(y=void 0)!==null&&y!==void 0?y:void 0)!==null&&p!==void 0?p:T.weekStartsOn)!==null&&m!==void 0?m:(M=T.locale)===null||M===void 0||(D=M.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&u!==void 0?u:0);if(!(Y>=0&&Y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!H.localize)throw new RangeError("locale must contain localize property");if(!H.formatLong)throw new RangeError("locale must contain formatLong property");var ce=W(i);if(!To(ce))throw new RangeError("Invalid time value");var ot=Mo(ce),nt=Po(ce,ot),st={firstWeekContainsDate:R,weekStartsOn:Y,locale:H,_originalDate:ce},Ai=C.match(td).map(function(X){var re=X[0];if(re==="p"||re==="P"){var Ae=Xi[re];return Ae(X,H.formatLong)}return X}).join("").match(ed).map(function(X){if(X==="''")return"'";var re=X[0];if(re==="'")return od(X);var Ae=cl[re];if(Ae)return zo(X)&&ti(X,e,String(i)),No(X)&&ti(X,e,String(i)),Ae(nt,X,H.localize,st);if(re.match(ad))throw new RangeError("Format string contains an unescaped latin alphabet character `"+re+"`");return X}).join("");return Ai}function od(i){var e=i.match(id);return e?e[1].replace(rd,"'"):i}function wa(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}function nd(i,e){if(i){if(typeof i=="string")return wa(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?wa(i,e):void 0}}function xa(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=nd(i))||e){t&&(i=t);var r=0,a=function(){};return{s:a,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,n=!0,s=!1;return{s:function(){t=t.call(i)},n:function(){var d=t.next();return n=d.done,d},e:function(d){s=!0,o=d},f:function(){try{n||t.return==null||t.return()}finally{if(s)throw o}}}}function sd(i,e){if(i==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t]);return i}function _(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Qi(i,e){return Qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Qi(i,e)}function P(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&Qi(i,e)}function ii(i){return ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ii(i)}function Ro(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ro=function(){return!!i})()}function ld(i,e){if(e&&(we(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _(i)}function A(i){var e=Ro();return function(){var t,r=ii(i);if(e){var a=ii(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return ld(this,t)}}function k(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function dd(i,e){if(we(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e);if(we(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Fo(i){var e=dd(i,"string");return we(e)=="symbol"?e:e+""}function hd(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,Fo(r.key),r)}}function E(i,e,t){return e&&hd(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function v(i,e,t){return(e=Fo(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var cd=10,$o=function(){function i(){k(this,i),v(this,"priority",void 0),v(this,"subPriority",0)}return E(i,[{key:"validate",value:function(t,r){return!0}}]),i}(),ud=function(i){P(t,i);var e=A(t);function t(r,a,o,n,s){var l;return k(this,t),l=e.call(this),l.value=r,l.validateValue=a,l.setValue=o,l.priority=n,s&&(l.subPriority=s),l}return E(t,[{key:"validate",value:function(a,o){return this.validateValue(a,this.value,o)}},{key:"set",value:function(a,o,n){return this.setValue(a,o,this.value,n)}}]),t}($o),pd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",cd),v(_(r),"subPriority",-1),r}return E(t,[{key:"set",value:function(a,o){if(o.timestampIsSet)return a;var n=new Date(0);return n.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),n.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),n}}]),t}($o),V=function(){function i(){k(this,i),v(this,"incompatibleTokens",void 0),v(this,"priority",void 0),v(this,"subPriority",void 0)}return E(i,[{key:"run",value:function(t,r,a,o){var n=this.parse(t,r,a,o);return n?{setter:new ud(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,a){return!0}}]),i}(),md=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",140),v(_(r),"incompatibleTokens",["R","u","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})||n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"})}}},{key:"set",value:function(a,o,n){return o.era=n,a.setUTCFullYear(n,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),fd=6e4,vd=36e5,_d=1e3,U={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},me={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function q(i,e){return i&&{value:e(i.value),rest:i.rest}}function F(i,e){var t=e.match(i);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function fe(i,e){var t=e.match(i);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,a=t[2]?parseInt(t[2],10):0,o=t[3]?parseInt(t[3],10):0,n=t[5]?parseInt(t[5],10):0;return{value:r*(a*vd+o*fd+n*_d),rest:e.slice(t[0].length)}}function Bo(i){return F(U.anyDigitsSigned,i)}function B(i,e){switch(i){case 1:return F(U.singleDigit,e);case 2:return F(U.twoDigits,e);case 3:return F(U.threeDigits,e);case 4:return F(U.fourDigits,e);default:return F(new RegExp("^\\d{1,"+i+"}"),e)}}function ri(i,e){switch(i){case 1:return F(U.singleDigitSigned,e);case 2:return F(U.twoDigitsSigned,e);case 3:return F(U.threeDigitsSigned,e);case 4:return F(U.fourDigitsSigned,e);default:return F(new RegExp("^-?\\d{1,"+i+"}"),e)}}function kr(i){switch(i){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Ho(i,e){var t=e>0,r=t?e:1-e,a;if(r<=50)a=i||100;else{var o=r+50,n=Math.floor(o/100)*100,s=i>=o%100;a=i+n-(s?100:0)}return t?a:1-a}function Uo(i){return i%400===0||i%4===0&&i%100!==0}var gd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return{year:d,isTwoDigitYear:o==="yy"}};switch(o){case"y":return q(B(4,a),s);case"yo":return q(n.ordinalNumber(a,{unit:"year"}),s);default:return q(B(o.length,a),s)}}},{key:"validate",value:function(a,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(a,o,n){var s=a.getUTCFullYear();if(n.isTwoDigitYear){var l=Ho(n.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var d=!("era"in o)||o.era===1?n.year:1-n.year;return a.setUTCFullYear(d,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),bd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return{year:d,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return q(B(4,a),s);case"Yo":return q(n.ordinalNumber(a,{unit:"year"}),s);default:return q(B(o.length,a),s)}}},{key:"validate",value:function(a,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(a,o,n,s){var l=Cr(a,s);if(n.isTwoDigitYear){var d=Ho(n.year,l);return a.setUTCFullYear(d,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),ze(a,s)}var c=!("era"in o)||o.era===1?n.year:1-n.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),ze(a,s)}}]),t}(V),yd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o){return ri(o==="R"?4:o.length,a)}},{key:"set",value:function(a,o,n){var s=new Date(0);return s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),Xe(s)}}]),t}(V),wd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o){return ri(o==="u"?4:o.length,a)}},{key:"set",value:function(a,o,n){return a.setUTCFullYear(n,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),xd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",120),v(_(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"Q":case"QQ":return B(o.length,a);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})||n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=1&&o<=4}},{key:"set",value:function(a,o,n){return a.setUTCMonth((n-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),Cd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",120),v(_(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"q":case"qq":return B(o.length,a);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})||n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=1&&o<=4}},{key:"set",value:function(a,o,n){return a.setUTCMonth((n-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),kd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),v(_(r),"priority",110),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d-1};switch(o){case"M":return q(F(U.month,a),s);case"MM":return q(B(2,a),s);case"Mo":return q(n.ordinalNumber(a,{unit:"month"}),s);case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})||n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,n){return a.setUTCMonth(n,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),Ed=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",110),v(_(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d-1};switch(o){case"L":return q(F(U.month,a),s);case"LL":return q(B(2,a),s);case"Lo":return q(n.ordinalNumber(a,{unit:"month"}),s);case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})||n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,n){return a.setUTCMonth(n,1),a.setUTCHours(0,0,0,0),a}}]),t}(V);function Sd(i,e,t){$(2,arguments);var r=W(i),a=ie(e),o=Oo(r,t)-a;return r.setUTCDate(r.getUTCDate()-o*7),r}var Id=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",100),v(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"w":return F(U.week,a);case"wo":return n.ordinalNumber(a,{unit:"week"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,n,s){return ze(Sd(a,n,s),s)}}]),t}(V);function Td(i,e){$(2,arguments);var t=W(i),r=ie(e),a=Do(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var Pd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",100),v(_(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"I":return F(U.week,a);case"Io":return n.ordinalNumber(a,{unit:"week"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,n){return Xe(Td(a,n))}}]),t}(V),Ad=[31,28,31,30,31,30,31,31,30,31,30,31],Dd=[31,29,31,30,31,30,31,31,30,31,30,31],Od=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"subPriority",1),v(_(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"d":return F(U.date,a);case"do":return n.ordinalNumber(a,{unit:"date"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){var n=a.getUTCFullYear(),s=Uo(n),l=a.getUTCMonth();return s?o>=1&&o<=Dd[l]:o>=1&&o<=Ad[l]}},{key:"set",value:function(a,o,n){return a.setUTCDate(n),a.setUTCHours(0,0,0,0),a}}]),t}(V),Vd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"subpriority",1),v(_(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"D":case"DD":return F(U.dayOfYear,a);case"Do":return n.ordinalNumber(a,{unit:"date"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){var n=a.getUTCFullYear(),s=Uo(n);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(a,o,n){return a.setUTCMonth(0,n),a.setUTCHours(0,0,0,0),a}}]),t}(V);function Er(i,e,t){var r,a,o,n,s,l,d,c;$(2,arguments);var u=tt(),m=ie((r=(a=(o=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&a!==void 0?a:(d=u.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=W(i),y=ie(e),M=p.getUTCDay(),D=y%7,C=(D+7)%7,T=(C<m?7:0)+y-M;return p.setUTCDate(p.getUTCDate()+T),p}var Md=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,n,s){return a=Er(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(V),Nd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n,s){var l=function(c){var u=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+u};switch(o){case"e":case"ee":return q(B(o.length,a),l);case"eo":return q(n.ordinalNumber(a,{unit:"day"}),l);case"eee":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,n,s){return a=Er(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(V),zd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n,s){var l=function(c){var u=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+u};switch(o){case"c":case"cc":return q(B(o.length,a),l);case"co":return q(n.ordinalNumber(a,{unit:"day"}),l);case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})||n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,n,s){return a=Er(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(V);function Ld(i,e){$(2,arguments);var t=ie(e);t%7===0&&(t=t-7);var r=1,a=W(i),o=a.getUTCDay(),n=t%7,s=(n+7)%7,l=(s<r?7:0)+t-o;return a.setUTCDate(a.getUTCDate()+l),a}var Rd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d===0?7:d};switch(o){case"i":case"ii":return B(o.length,a);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return q(n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),s);case"iiiii":return q(n.day(a,{width:"narrow",context:"formatting"}),s);case"iiiiii":return q(n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),s);case"iiii":default:return q(n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(a,o){return o>=1&&o<=7}},{key:"set",value:function(a,o,n){return a=Ld(a,n),a.setUTCHours(0,0,0,0),a}}]),t}(V),Fd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",80),v(_(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"a":case"aa":case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,n){return a.setUTCHours(kr(n),0,0,0),a}}]),t}(V),$d=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",80),v(_(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"b":case"bb":case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,n){return a.setUTCHours(kr(n),0,0,0),a}}]),t}(V),Bd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",80),v(_(r),"incompatibleTokens",["a","b","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,n){return a.setUTCHours(kr(n),0,0,0),a}}]),t}(V),Hd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["H","K","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"h":return F(U.hour12h,a);case"ho":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=12}},{key:"set",value:function(a,o,n){var s=a.getUTCHours()>=12;return s&&n<12?a.setUTCHours(n+12,0,0,0):!s&&n===12?a.setUTCHours(0,0,0,0):a.setUTCHours(n,0,0,0),a}}]),t}(V),Ud=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"H":return F(U.hour23h,a);case"Ho":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=23}},{key:"set",value:function(a,o,n){return a.setUTCHours(n,0,0,0),a}}]),t}(V),qd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["h","H","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"K":return F(U.hour11h,a);case"Ko":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,n){var s=a.getUTCHours()>=12;return s&&n<12?a.setUTCHours(n+12,0,0,0):a.setUTCHours(n,0,0,0),a}}]),t}(V),jd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"k":return F(U.hour24h,a);case"ko":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=24}},{key:"set",value:function(a,o,n){var s=n<=24?n%24:n;return a.setUTCHours(s,0,0,0),a}}]),t}(V),Wd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",60),v(_(r),"incompatibleTokens",["t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"m":return F(U.minute,a);case"mo":return n.ordinalNumber(a,{unit:"minute"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=59}},{key:"set",value:function(a,o,n){return a.setUTCMinutes(n,0,0),a}}]),t}(V),Yd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",50),v(_(r),"incompatibleTokens",["t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"s":return F(U.second,a);case"so":return n.ordinalNumber(a,{unit:"second"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=59}},{key:"set",value:function(a,o,n){return a.setUTCSeconds(n,0),a}}]),t}(V),Gd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",30),v(_(r),"incompatibleTokens",["t","T"]),r}return E(t,[{key:"parse",value:function(a,o){var n=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return q(B(o.length,a),n)}},{key:"set",value:function(a,o,n){return a.setUTCMilliseconds(n),a}}]),t}(V),Kd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",10),v(_(r),"incompatibleTokens",["t","T","x"]),r}return E(t,[{key:"parse",value:function(a,o){switch(o){case"X":return fe(me.basicOptionalMinutes,a);case"XX":return fe(me.basic,a);case"XXXX":return fe(me.basicOptionalSeconds,a);case"XXXXX":return fe(me.extendedOptionalSeconds,a);case"XXX":default:return fe(me.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(V),Xd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",10),v(_(r),"incompatibleTokens",["t","T","X"]),r}return E(t,[{key:"parse",value:function(a,o){switch(o){case"x":return fe(me.basicOptionalMinutes,a);case"xx":return fe(me.basic,a);case"xxxx":return fe(me.basicOptionalSeconds,a);case"xxxxx":return fe(me.extendedOptionalSeconds,a);case"xxx":default:return fe(me.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(V),Qd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",40),v(_(r),"incompatibleTokens","*"),r}return E(t,[{key:"parse",value:function(a){return Bo(a)}},{key:"set",value:function(a,o,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(V),Jd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",20),v(_(r),"incompatibleTokens","*"),r}return E(t,[{key:"parse",value:function(a){return Bo(a)}},{key:"set",value:function(a,o,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(V),Zd={G:new md,y:new gd,Y:new bd,R:new yd,u:new wd,Q:new xd,q:new Cd,M:new kd,L:new Ed,w:new Id,I:new Pd,d:new Od,D:new Vd,E:new Md,e:new Nd,c:new zd,i:new Rd,a:new Fd,b:new $d,B:new Bd,h:new Hd,H:new Ud,K:new qd,k:new jd,m:new Wd,s:new Yd,S:new Gd,X:new Kd,x:new Xd,t:new Qd,T:new Jd},eh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,th=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ih=/^'([^]*?)'?$/,rh=/''/g,ah=/\S/,oh=/[a-zA-Z]/;function ke(i,e,t,r){var a,o,n,s,l,d,c,u,m,p,y,M,D,C;$(3,arguments);var T=String(i),H=String(e),R=tt(),Y=(a=(o=void 0)!==null&&o!==void 0?o:R.locale)!==null&&a!==void 0?a:Lo;if(!Y.match)throw new RangeError("locale must contain match property");var ce=ie((n=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:R.firstWeekContainsDate)!==null&&s!==void 0?s:(c=R.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(ce>=1&&ce<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ot=ie((m=(p=(y=(M=void 0)!==null&&M!==void 0?M:void 0)!==null&&y!==void 0?y:R.weekStartsOn)!==null&&p!==void 0?p:(D=R.locale)===null||D===void 0||(C=D.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&m!==void 0?m:0);if(!(ot>=0&&ot<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(H==="")return T===""?W(t):new Date(NaN);var nt={firstWeekContainsDate:ce,weekStartsOn:ot,locale:Y},st=[new pd],Ai=H.match(th).map(function(G){var L=G[0];if(L in Xi){var le=Xi[L];return le(G,Y.formatLong)}return G}).join("").match(eh),X=[],re=xa(Ai),Ae;try{var js=function(){var L=Ae.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&zo(L)&&ti(L,H,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&No(L)&&ti(L,H,i);var le=L[0],Ut=Zd[le];if(Ut){var ma=Ut.incompatibleTokens;if(Array.isArray(ma)){var fa=X.find(function(va){return ma.includes(va.token)||va.token===le});if(fa)throw new RangeError("The format string mustn't contain `".concat(fa.fullToken,"` and `").concat(L,"` at the same time"))}else if(Ut.incompatibleTokens==="*"&&X.length>0)throw new RangeError("The format string mustn't contain `".concat(L,"` and any other token at the same time"));X.push({token:le,fullToken:L});var Oi=Ut.run(T,L,Y.match,nt);if(!Oi)return{v:new Date(NaN)};st.push(Oi.setter),T=Oi.rest}else{if(le.match(oh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+le+"`");if(L==="''"?L="'":le==="'"&&(L=nh(L)),T.indexOf(L)===0)T=T.slice(L.length);else return{v:new Date(NaN)}}};for(re.s();!(Ae=re.n()).done;){var ha=js();if(we(ha)==="object")return ha.v}}catch(G){re.e(G)}finally{re.f()}if(T.length>0&&ah.test(T))return new Date(NaN);var Ws=st.map(function(G){return G.priority}).sort(function(G,L){return L-G}).filter(function(G,L,le){return le.indexOf(G)===L}).map(function(G){return st.filter(function(L){return L.priority===G}).sort(function(L,le){return le.subPriority-L.subPriority})}).map(function(G){return G[0]}),Di=W(t);if(isNaN(Di.getTime()))return new Date(NaN);var lt=Po(Di,Mo(Di)),ca={},Bt=xa(Ws),ua;try{for(Bt.s();!(ua=Bt.n()).done;){var pa=ua.value;if(!pa.validate(lt,nt))return new Date(NaN);var Ht=pa.set(lt,ca,nt);Array.isArray(Ht)?(lt=Ht[0],sd(ca,Ht[1])):lt=Ht}}catch(G){Bt.e(G)}finally{Bt.f()}return lt}function nh(i){return i.match(ih)[1].replace(rh,"'")}function Ca(i,e){$(2,arguments);var t=W(i),r=W(e);return t.getTime()>r.getTime()}function ka(i,e){$(2,arguments);var t=W(i),r=W(e);return t.getTime()<r.getTime()}function Ea(i,e,t){return $(2,arguments),To(ke(i,e,new Date,t))}const sh='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:"Roboto";font-style:normal}.date__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__wrapper--autofilled .date__input::part(input-field){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.date__manual-mode::part(toggle-button){display:none}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.date__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.date__input>input{padding:5px 15px}.date__input::part(toggle-button){position:relative;right:10px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.date__tooltip.visible{opacity:1}',lh=sh,qo=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.formatDate=e=>{const{year:t,month:r,day:a}=e,o=new Date(t,r,a);return Mi(o,this.dateFormat)},this.parseDate=e=>{const t=ke(e,this.dateFormat,new Date);return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}},this.handleDocumentIdUpdate=e=>{if(this.name!==J.BIRTHDATE)return;const t=e.detail;this.value=t,this.valueAsDate=ke(this.value||"",J.DATE_FORMAT,new Date),this.touched=!0,this.datePicker&&(this.datePicker.value=this.value),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.valueHandler({name:this.name,value:this.value})},this.handleMaskedTyping=e=>{var t;const r=e.target;if(!r)return;const a=(t=r.selectionStart)!==null&&t!==void 0?t:r.value.length,o=r.value,[n,s,l]=this.getFormatStructure(this.dateFormat),{seps:d}=this.parseFormat(this.dateFormat),[c,u]=d,m=n+s+l,p=o.replace(/\D/g,"").slice(0,m),y=p.slice(0,n),M=p.slice(n,n+s),D=p.slice(n+s,n+s+l);let C=y;p.length>n&&(C+=c+M),p.length>n+s&&(C+=u+D),r.value=C;const T=this.totalSeparatorLength(o,[c,u]),H=this.totalSeparatorLength(C,[c,u]);let R=a+Math.max(0,H-T);R=Math.max(0,Math.min(R,C.length));try{r.setSelectionRange(R,R)}catch(Y){}if(p.length<m){this.errorMessage="",this.resetIncompleteState();return}try{const Y=ke(C,this.dateFormat,new Date);if(Y&&!isNaN(Y.getTime())){const ce=Mi(Y,"yyyy-MM-dd");this.value=ce,this.valueAsDate=Y,this.isValid=!0,this.errorMessage="",this.datePicker&&(this.datePicker.value=ce),this.valueHandler({name:this.name,value:this.value})}else this.resetIncompleteState()}catch(Y){this.resetIncompleteState()}},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.dateFormat="yyyy-MM-dd",this.emitOnClick=!1,this.enableSouthAfricanMode=void 0,this.enableManualDateInput=!1,this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}get formattedValue(){if(!this.value)return"";const i=ke(this.value,"yyyy-MM-dd",new Date);return Mi(i,this.dateFormat)}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}handleCustomRegistrationChange(i){i?window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate):window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i,e;this.minDate=ke(((i=this.validation.min)===null||i===void 0?void 0:i.toString())||"","yyyy-MM-dd",new Date),this.maxDate=ke(((e=this.validation.max)===null||e===void 0?void 0:e.toString())||"","yyyy-MM-dd",new Date)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){var i;if(this.handleClientStyling(),this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const e=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');if(e&&e.addEventListener("click",()=>this.handleCalendarIconClick()),this.datePicker.addEventListener("opened-changed",t=>{t.detail.value===!0?this.errorMessage="":(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)}),this.enableManualDateInput){const t=(i=this.datePicker)===null||i===void 0?void 0:i.inputElement;t&&t.addEventListener("input",this.handleMaskedTyping)}}this.enableSouthAfricanMode&&window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value})),this.isValid=this.setValidity()}disconnectedCallback(){var i;if(this.enableSouthAfricanMode&&window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.enableManualDateInput){const e=(i=this.datePicker)===null||i===void 0?void 0:i.inputElement;e&&e.removeEventListener("input",this.handleMaskedTyping)}}handleCalendarIconClick(){this.datePicker.opened&&this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}handleInput(i){this.value=i.target.value,this.touched=!0,this.valueAsDate=ke(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0),this.enableSouthAfricanMode&&window.dispatchEvent(new CustomEvent("birthDateUpdated",{detail:{birthDate:this.value}}))}handleValidated(){this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()}setValidity(){return ka(this.valueAsDate,this.minDate)||Ca(this.valueAsDate,this.maxDate)||!Ea(this.formattedValue,this.dateFormat)?!1:this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return b("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(ka(this.valueAsDate,this.minDate)||Ca(this.valueAsDate,this.maxDate))return b("dateError2",this.language);if(!Ea(this.formattedValue,this.dateFormat))return b("dateFormatError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`date__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}parseFormat(i){var e;const t=i!=null?i:"dd-MM-yyyy",r=/([dMy]+)|([^dMy]+)/g,a=[],o=[];let n;for(;n=r.exec(t);)n[1]?a.push(n[1]):n[2]&&o.push(n[2]);if(o.length<2){const s=(e=o[0])!==null&&e!==void 0?e:"-";for(;o.length<2;)o.push(s)}return{tokens:a,seps:[o[0],o[1]]}}getFormatStructure(i){const{tokens:e}=this.parseFormat(i);if(e.length<3)return[2,2,4];const t=e.map(r=>r.length);return[t[0],t[1],t[2]]}totalSeparatorLength(i,e){if(!i)return 0;let t=0;for(const r of e){if(!r)continue;const a=new RegExp(this.escapeRegExp(r),"g"),o=i.match(a);o&&(t+=o.length*r.length)}return t}escapeRegExp(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}resetIncompleteState(){this.value="",this.valueAsDate=void 0,this.isValid=!1}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"ffff8be16fb22a41ea8c5168a79e40b9f410c63b",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("label",{key:"60da1ad0bc4cc7757e6f1096866667a97bd146b5",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName,h.h("span",{key:"450b4638efa34f4490035b0d99b0b186f053a2d0",class:this.validation.mandatory?"date__label--required":""})),h.h("vaadin-date-picker",{key:"421875a710bb4508e3218d28bf2c28dcd0e9793b",id:`${this.name}__input`,type:"date",class:`date__input ${i} ${this.enableManualDateInput&&"date__manual-mode"}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:e=>this.handleInput(e),onValidated:()=>this.handleValidated(),autoOpenDisabled:this.enableManualDateInput}),h.h("small",{key:"33a6fed8057a84cb648f94a318c3ec0b1e495fff",class:"date__error-message"},this.errorMessage),this.tooltip&&h.h("img",{key:"d91fcd13e1ae384b67b6d478834b65136ab77b77",class:"date__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],enableSouthAfricanMode:["handleCustomRegistrationChange"]}}};qo.style=lh;const dh='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:"Roboto";font-style:normal}.email__wrapper{position:relative;width:100%}.email__wrapper--autofilled{pointer-events:none}.email__wrapper--autofilled .email__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__wrapper--autofilled .email__input{color:var(--emw--color-black, #000000)}.email__wrapper--flex{display:flex;gap:5px}.email__wrapper--relative{position:relative}.email__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.email__input{font-family:inherit;border-radius:4px;width:100%;height:40px;border:2px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;font-size:16px;font-weight:300;line-height:1.5;padding:10px}.email__input:focus{outline-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.email__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__input::placeholder{color:var(--emw--color-gray-150, #828282)}.email__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__tooltip-icon{width:16px;height:auto}.email__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.email__tooltip.visible{opacity:1}',hh=dh,jo=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value)}connectedCallback(){this.validationPattern=this.setPattern()}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return b("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.patternMismatch){const a=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorKey,o=(e=this.validation.custom.find(n=>n.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${a}`,this.language)?b(`${a}`,this.language):o}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const a=(t=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,o=(r=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return b(`${a}`,this.language)?b(`${a}`,this.language):o}}renderTooltip(){return this.showTooltip?h.h("div",{class:`email__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"f852525fe8d8b695e638fdd83e8b0c2c20d98771",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"d6a6dec4e76ba1fbe15bed09f82cecde12cabe1a",class:"email__wrapper--flex"},h.h("label",{key:"4498ae1bac287cb80544c4d743afad2ec678e3bd",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"e54d1258e48f54304a553cffb83466e4a4fadb4c",class:"email__wrapper--relative"},this.tooltip&&h.h("img",{key:"29d7b95f22c8cb70d505f74a7ea18284faa908ee",class:"email__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"08754b178e395f26c1d8a61ff667b91df3fb0ec7",id:`${this.name}__input`,type:"email",class:`email__input ${i}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"3024a57f5d0897f34013eb4397d78babc2333192",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};jo.style=hh;var ch=Object.defineProperty,uh=Object.defineProperties,ph=Object.getOwnPropertyDescriptors,Sa=Object.getOwnPropertySymbols,mh=Object.prototype.hasOwnProperty,fh=Object.prototype.propertyIsEnumerable,Ji=(i,e,t)=>e in i?ch(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ai=(i,e)=>{for(var t in e||(e={}))mh.call(e,t)&&Ji(i,t,e[t]);if(Sa)for(var t of Sa(e))fh.call(e,t)&&Ji(i,t,e[t]);return i},Wo=(i,e)=>uh(i,ph(e)),Z=(i,e,t)=>(Ji(i,typeof e!="symbol"?e+"":e,t),t),oi=(i,e,t)=>new Promise((r,a)=>{var o=l=>{try{s(t.next(l))}catch(d){a(d)}},n=l=>{try{s(t.throw(l))}catch(d){a(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,n);s((t=t.apply(i,e)).next())});/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
5
5
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -11,17 +11,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11
11
|
* @license
|
|
12
12
|
* Copyright 2019 Google LLC
|
|
13
13
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
14
|
-
*/const Jt=globalThis,Sr=Jt.ShadowRoot&&(Jt.ShadyCSS===void 0||Jt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ir=Symbol(),Ia=new WeakMap;let
|
|
14
|
+
*/const Jt=globalThis,Sr=Jt.ShadowRoot&&(Jt.ShadyCSS===void 0||Jt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ir=Symbol(),Ia=new WeakMap;let Tr=class{constructor(i,e,t){if(this._$cssResult$=!0,t!==Ir)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(Sr&&i===void 0){const t=e!==void 0&&e.length===1;t&&(i=Ia.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),t&&Ia.set(e,i))}return i}toString(){return this.cssText}};const _h=i=>new Tr(typeof i=="string"?i:i+"",void 0,Ir),f=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,a,o)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+i[o+1],i[0]);return new Tr(t,i,Ir)},Yo=(i,e)=>{if(Sr)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),a=Jt.litNonce;a!==void 0&&r.setAttribute("nonce",a),r.textContent=t.cssText,i.appendChild(r)}},Ta=Sr?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return _h(t)})(i):i;/**
|
|
15
15
|
* @license
|
|
16
16
|
* Copyright 2017 Google LLC
|
|
17
17
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
|
-
*/const{is:gh,defineProperty:bh,getOwnPropertyDescriptor:yh,getOwnPropertyNames:wh,getOwnPropertySymbols:xh,getPrototypeOf:Ch}=Object,Qe=globalThis,
|
|
18
|
+
*/const{is:gh,defineProperty:bh,getOwnPropertyDescriptor:yh,getOwnPropertyNames:wh,getOwnPropertySymbols:xh,getPrototypeOf:Ch}=Object,Qe=globalThis,Pa=Qe.trustedTypes,kh=Pa?Pa.emptyScript:"",Aa=Qe.reactiveElementPolyfillSupport,bt=(i,e)=>i,Zi={toAttribute(i,e){switch(e){case Boolean:i=i?kh: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(r){t=null}}return t}},Go=(i,e)=>!gh(i,e),Da={attribute:!0,type:String,converter:Zi,reflect:!1,useDefault:!1,hasChanged:Go};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),Qe.litPropertyMetadata!=null||(Qe.litPropertyMetadata=new WeakMap);let qe=class extends HTMLElement{static addInitializer(i){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,e=Da){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(i)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(i,e),!e.noAccessor){const t=Symbol(),r=this.getPropertyDescriptor(i,t,e);r!==void 0&&bh(this.prototype,i,r)}}static getPropertyDescriptor(i,e,t){var r;const{get:a,set:o}=(r=yh(this.prototype,i))!=null?r:{get(){return this[e]},set(n){this[e]=n}};return{get:a,set(n){const s=a==null?void 0:a.call(this);o==null||o.call(this,n),this.requestUpdate(i,s,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var e;return(e=this.elementProperties.get(i))!=null?e:Da}static _$Ei(){if(this.hasOwnProperty(bt("elementProperties")))return;const i=Ch(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(bt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(bt("properties"))){const e=this.properties,t=[...wh(e),...xh(e)];for(const r of t)this.createProperty(r,e[r])}const i=this[Symbol.metadata];if(i!==null){const e=litPropertyMetadata.get(i);if(e!==void 0)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){const e=[];if(Array.isArray(i)){const t=new Set(i.flat(1/0).reverse());for(const r of t)e.unshift(Ta(r))}else i!==void 0&&e.push(Ta(i));return e}static _$Eu(i,e){const t=e.attribute;return t===!1?void 0:typeof t=="string"?t:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(e=>e(this))}addController(i){var e,t;((e=this._$EO)!=null?e:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((t=i.hostConnected)==null||t.call(i))}removeController(i){var e;(e=this._$EO)==null||e.delete(i)}_$E_(){const i=new Map,e=this.constructor.elementProperties;for(const t of e.keys())this.hasOwnProperty(t)&&(i.set(t,this[t]),delete this[t]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var i;const e=(i=this.shadowRoot)!=null?i:this.attachShadow(this.constructor.shadowRootOptions);return Yo(e,this.constructor.elementStyles),e}connectedCallback(){var i;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(i=this._$EO)==null||i.forEach(e=>{var t;return(t=e.hostConnected)==null?void 0:t.call(e)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(e=>{var t;return(t=e.hostDisconnected)==null?void 0:t.call(e)})}attributeChangedCallback(i,e,t){this._$AK(i,t)}_$ET(i,e){var t;const r=this.constructor.elementProperties.get(i),a=this.constructor._$Eu(i,r);if(a!==void 0&&r.reflect===!0){const o=(((t=r.converter)==null?void 0:t.toAttribute)!==void 0?r.converter:Zi).toAttribute(e,r.type);this._$Em=i,o==null?this.removeAttribute(a):this.setAttribute(a,o),this._$Em=null}}_$AK(i,e){var t,r,a;const o=this.constructor,n=o._$Eh.get(i);if(n!==void 0&&this._$Em!==n){const s=o.getPropertyOptions(n),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((t=s.converter)==null?void 0:t.fromAttribute)!==void 0?s.converter:Zi;this._$Em=n;const d=l.fromAttribute(e,s.type);this[n]=(a=d!=null?d:(r=this._$Ej)==null?void 0:r.get(n))!=null?a:d,this._$Em=null}}requestUpdate(i,e,t,r=!1,a){var o,n;if(i!==void 0){const s=this.constructor;if(r===!1&&(a=this[i]),t!=null||(t=s.getPropertyOptions(i)),!(((o=t.hasChanged)!=null?o:Go)(a,e)||t.useDefault&&t.reflect&&a===((n=this._$Ej)==null?void 0:n.get(i))&&!this.hasAttribute(s._$Eu(i,t))))return;this.C(i,e,t)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(i,e,{useDefault:t,reflect:r,wrapped:a},o){var n,s,l;t&&!((n=this._$Ej)!=null?n:this._$Ej=new Map).has(i)&&(this._$Ej.set(i,(s=o!=null?o:e)!=null?s:this[i]),a!==!0||o!==void 0)||(this._$AL.has(i)||(this.hasUpdated||t||(e=void 0),this._$AL.set(i,e)),r===!0&&this._$Em!==i&&((l=this._$Eq)!=null?l:this._$Eq=new Set).add(i))}_$EP(){return oi(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const i=this.scheduleUpdate();return i!=null&&(yield i),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,o]of this._$Ep)this[a]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[a,o]of r){const{wrapped:n}=o,s=this[a];n!==!0||this._$AL.has(a)||s===void 0||this.C(a,void 0,o,s)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(r=>{var a;return(a=r.hostUpdate)==null?void 0:a.call(r)}),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(i){}_$AE(i){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostUpdated)==null?void 0:r.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(i){}firstUpdated(i){}};var Oa;qe.elementStyles=[],qe.shadowRootOptions={mode:"open"},qe[bt("elementProperties")]=new Map,qe[bt("finalized")]=new Map,Aa==null||Aa({ReactiveElement:qe}),((Oa=Qe.reactiveElementVersions)!=null?Oa:Qe.reactiveElementVersions=[]).push("2.1.2");/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const ni=globalThis,Va=i=>i,si=ni.trustedTypes,Ma=si?si.createPolicy("lit-html",{createHTML:i=>i}):void 0,Ko="$lit$",Se=`lit$${Math.random().toFixed(9).slice(2)}$`,Xo="?"+Se,Eh=`<${Xo}>`,Le=document,wt=()=>Le.createComment(""),xt=i=>i===null||typeof i!="object"&&typeof i!="function",
|
|
22
|
+
*/const ni=globalThis,Va=i=>i,si=ni.trustedTypes,Ma=si?si.createPolicy("lit-html",{createHTML:i=>i}):void 0,Ko="$lit$",Se=`lit$${Math.random().toFixed(9).slice(2)}$`,Xo="?"+Se,Eh=`<${Xo}>`,Le=document,wt=()=>Le.createComment(""),xt=i=>i===null||typeof i!="object"&&typeof i!="function",Pr=Array.isArray,Sh=i=>Pr(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Ni=`[
|
|
23
23
|
\f\r]`,ct=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Na=/-->/g,za=/>/g,De=RegExp(`>|${Ni}(?:([^\\s"'>=/]+)(${Ni}*=${Ni}*(?:[^
|
|
24
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),La=/'/g,Ra=/"/g,Qo=/^(?:script|style|textarea|title)$/i,Je=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Fa=new WeakMap,Ve=Le.createTreeWalker(Le,129);function Jo(i,e){if(!
|
|
24
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),La=/'/g,Ra=/"/g,Qo=/^(?:script|style|textarea|title)$/i,Je=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Fa=new WeakMap,Ve=Le.createTreeWalker(Le,129);function Jo(i,e){if(!Pr(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ma!==void 0?Ma.createHTML(e):e}const Ih=(i,e)=>{const t=i.length-1,r=[];let a,o=e===2?"<svg>":e===3?"<math>":"",n=ct;for(let s=0;s<t;s++){const l=i[s];let d,c,u=-1,m=0;for(;m<l.length&&(n.lastIndex=m,c=n.exec(l),c!==null);)m=n.lastIndex,n===ct?c[1]==="!--"?n=Na:c[1]!==void 0?n=za:c[2]!==void 0?(Qo.test(c[2])&&(a=RegExp("</"+c[2],"g")),n=De):c[3]!==void 0&&(n=De):n===De?c[0]===">"?(n=a!=null?a:ct,u=-1):c[1]===void 0?u=-2:(u=n.lastIndex-c[2].length,d=c[1],n=c[3]===void 0?De:c[3]==='"'?Ra:La):n===Ra||n===La?n=De:n===Na||n===za?n=ct:(n=De,a=void 0);const p=n===De&&i[s+1].startsWith("/>")?" ":"";o+=n===ct?l+Eh:u>=0?(r.push(d),l.slice(0,u)+Ko+l.slice(u)+Se+p):l+Se+(u===-2?s:p)}return[Jo(i,o+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Ct{constructor({strings:e,_$litType$:t},r){let a;this.parts=[];let o=0,n=0;const s=e.length-1,l=this.parts,[d,c]=Ih(e,t);if(this.el=Ct.createElement(d,r),Ve.currentNode=this.el.content,t===2||t===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(a=Ve.nextNode())!==null&&l.length<s;){if(a.nodeType===1){if(a.hasAttributes())for(const u of a.getAttributeNames())if(u.endsWith(Ko)){const m=c[n++],p=a.getAttribute(u).split(Se),y=/([.?@])?(.*)/.exec(m);l.push({type:1,index:o,name:y[2],strings:p,ctor:y[1]==="."?Ph:y[1]==="?"?Ah:y[1]==="@"?Dh:_i}),a.removeAttribute(u)}else u.startsWith(Se)&&(l.push({type:6,index:o}),a.removeAttribute(u));if(Qo.test(a.tagName)){const u=a.textContent.split(Se),m=u.length-1;if(m>0){a.textContent=si?si.emptyScript:"";for(let p=0;p<m;p++)a.append(u[p],wt()),Ve.nextNode(),l.push({type:2,index:++o});a.append(u[m],wt())}}}else if(a.nodeType===8)if(a.data===Xo)l.push({type:2,index:o});else{let u=-1;for(;(u=a.data.indexOf(Se,u+1))!==-1;)l.push({type:7,index:o}),u+=Se.length-1}o++}}static createElement(e,t){const r=Le.createElement("template");return r.innerHTML=e,r}}function Ze(i,e,t=i,r){var a,o,n;if(e===Je)return e;let s=r!==void 0?(a=t._$Co)==null?void 0:a[r]:t._$Cl;const l=xt(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==l&&((o=s==null?void 0:s._$AO)==null||o.call(s,!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,r)),r!==void 0?((n=t._$Co)!=null?n:t._$Co=[])[r]=s:t._$Cl=s),s!==void 0&&(e=Ze(i,s._$AS(i,e.values),s,r)),e}class Th{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:r},parts:a}=this._$AD,o=((t=e==null?void 0:e.creationScope)!=null?t:Le).importNode(r,!0);Ve.currentNode=o;let n=Ve.nextNode(),s=0,l=0,d=a[0];for(;d!==void 0;){if(s===d.index){let c;d.type===2?c=new Vt(n,n.nextSibling,this,e):d.type===1?c=new d.ctor(n,d.name,d.strings,this,e):d.type===6&&(c=new Oh(n,this,e)),this._$AV.push(c),d=a[++l]}s!==(d==null?void 0:d.index)&&(n=Ve.nextNode(),s++)}return Ve.currentNode=Le,o}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Vt{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,a){var o;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=a,this._$Cv=(o=a==null?void 0:a.isConnected)!=null?o:!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=Ze(this,e,t),xt(e)?e===K||e==null||e===""?(this._$AH!==K&&this._$AR(),this._$AH=K):e!==this._$AH&&e!==Je&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Sh(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!==K&&xt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Le.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:a}=e,o=typeof a=="number"?this._$AC(e):(a.el===void 0&&(a.el=Ct.createElement(Jo(a.h,a.h[0]),this.options)),a);if(((t=this._$AH)==null?void 0:t._$AD)===o)this._$AH.p(r);else{const n=new Th(o,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let t=Fa.get(e.strings);return t===void 0&&Fa.set(e.strings,t=new Ct(e)),t}k(e){Pr(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,a=0;for(const o of e)a===t.length?t.push(r=new Vt(this.O(wt()),this.O(wt()),this,this.options)):r=t[a],r._$AI(o),a++;a<t.length&&(this._$AR(r&&r._$AB.nextSibling,a),t.length=a)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e!==this._$AB;){const a=Va(e).nextSibling;Va(e).remove(),e=a}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class _i{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,a,o){this.type=1,this._$AH=K,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=K}_$AI(e,t=this,r,a){const o=this.strings;let n=!1;if(o===void 0)e=Ze(this,e,t,0),n=!xt(e)||e!==this._$AH&&e!==Je,n&&(this._$AH=e);else{const s=e;let l,d;for(e=o[0],l=0;l<o.length-1;l++)d=Ze(this,s[r+l],t,l),d===Je&&(d=this._$AH[l]),n||(n=!xt(d)||d!==this._$AH[l]),d===K?e=K:e!==K&&(e+=(d!=null?d:"")+o[l+1]),this._$AH[l]=d}n&&!a&&this.j(e)}j(e){e===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Ph extends _i{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===K?void 0:e}}class Ah extends _i{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==K)}}class Dh extends _i{constructor(e,t,r,a,o){super(e,t,r,a,o),this.type=5}_$AI(e,t=this){var r;if((e=(r=Ze(this,e,t,0))!=null?r:K)===Je)return;const a=this._$AH,o=e===K&&a!==K||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,n=e!==K&&(a===K||o);o&&this.element.removeEventListener(this.name,this,a),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class Oh{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Ze(this,e)}}const $a=ni.litHtmlPolyfillSupport;var Ba;$a==null||$a(Ct,Vt),((Ba=ni.litHtmlVersions)!=null?Ba:ni.litHtmlVersions=[]).push("3.3.2");const Zo=(i,e,t)=>{var r,a;const o=(r=t==null?void 0:t.renderBefore)!=null?r:e;let n=o._$litPart$;if(n===void 0){const s=(a=t==null?void 0:t.renderBefore)!=null?a:null;o._$litPart$=n=new Vt(e.insertBefore(wt(),s),s,void 0,t!=null?t:{})}return n._$AI(i),n};/**
|
|
25
25
|
* @license
|
|
26
26
|
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -33,7 +33,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33
33
|
* @license
|
|
34
34
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
35
35
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
36
|
-
*/const en=[],er=new Set,Ar=new Set;function tn(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Vh(i){return tn(customElements.get(i))}function Mh(i=[]){return[i].flat(1/0).filter(e=>e instanceof
|
|
36
|
+
*/const en=[],er=new Set,Ar=new Set;function tn(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Vh(i){return tn(customElements.get(i))}function Mh(i=[]){return[i].flat(1/0).filter(e=>e instanceof Tr?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function rn(i,e){return(i||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function an(i){return i.map(e=>e.cssText).join(`
|
|
37
37
|
`)}const li="vaadin-themable-mixin-style";function Nh(i,e){const t=document.createElement("style");t.id=li,t.textContent=an(i),e.content.appendChild(t)}function zh(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof je)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),Yo(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(li),r=e.prototype._template;t.textContent=r.content.getElementById(li).textContent}}function Lh(i){er.forEach(e=>{const t=e.deref();t instanceof i?zh(t):t||er.delete(e)})}function on(i){if(i.prototype instanceof je)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(li).textContent=an(i.getStylesForThis())}Ar.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&on(t)})}function Rh(i,e){const t=i.__themes;return!t||!e?!1:t.some(r=>r.styles.some(a=>e.some(o=>o.cssText===a.cssText)))}function g(i,e,t={}){e=Mh(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):en.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&Ar.forEach(r=>{if(rn(i,r)&&Vh(r)){const a=customElements.get(r);Rh(a,e)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" 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".`),on(a),Lh(a)}})}function tr(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():en}function Fh(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function nn(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const r=tr().find(a=>a.moduleId===t);r?e.push(...nn(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function $h(i){const e=`${i}-default-theme`,t=tr().filter(r=>r.moduleId!==e&&rn(r.themeFor,i)).map(r=>Wo(ai({},r),{styles:[...nn(r),...r.styles],includePriority:Fh(r.moduleId)})).sort((r,a)=>a.includePriority-r.includePriority);return t.length>0?t:tr().filter(r=>r.moduleId===e)}const z=i=>class extends gi(i){constructor(){super(),er.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Ar.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||tn(this)||Nh(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),r=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...r,...$h(this.is)];const a=this.__themes.flatMap(o=>o.styles);return a.filter((o,n)=>n===a.lastIndexOf(o))}};/**
|
|
38
38
|
* @license
|
|
39
39
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
@@ -977,7 +977,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
977
977
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
978
978
|
Code distributed by Google as part of the polymer project is also
|
|
979
979
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
980
|
-
*/const Cc={"dom-if":!0,"dom-repeat":!0};let Ja=!1,Za=!1;function kc(){if(!Ja){Ja=!0;const i=document.createElement("textarea");i.placeholder="a",Za=i.placeholder===i.textContent}return Za}function Ec(i){kc()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const Sc=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const a=t.getAttribute(r);if(i&&r.startsWith("on-")){e.setAttribute(r,i.createScript(a,r));return}e.setAttribute(r,a)}})();function Ic(i){let e=i.getAttribute("is");if(e&&Cc[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:r}=t.attributes[0];Sc(i,t,r),t.removeAttribute(r)}}return i}function xn(i,e){let t=e.parentInfo&&xn(i,e.parentInfo);if(t){for(let r=t.firstChild,a=0;r;r=r.nextSibling)if(e.parentIndex===a++)return r}else return i}function
|
|
980
|
+
*/const Cc={"dom-if":!0,"dom-repeat":!0};let Ja=!1,Za=!1;function kc(){if(!Ja){Ja=!0;const i=document.createElement("textarea");i.placeholder="a",Za=i.placeholder===i.textContent}return Za}function Ec(i){kc()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const Sc=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const a=t.getAttribute(r);if(i&&r.startsWith("on-")){e.setAttribute(r,i.createScript(a,r));return}e.setAttribute(r,a)}})();function Ic(i){let e=i.getAttribute("is");if(e&&Cc[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:r}=t.attributes[0];Sc(i,t,r),t.removeAttribute(r)}}return i}function xn(i,e){let t=e.parentInfo&&xn(i,e.parentInfo);if(t){for(let r=t.firstChild,a=0;r;r=r.nextSibling)if(e.parentIndex===a++)return r}else return i}function Tc(i,e,t,r){r.id&&(e[r.id]=t)}function Pc(i,e,t){if(t.events&&t.events.length)for(let r=0,a=t.events,o;r<a.length&&(o=a[r]);r++)i._addMethodEventListenerToNode(e,o.name,o.value,i)}function Ac(i,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function Dc(i,e,t){return i=i._methodHost||i,function(r){i[t]?i[t](r,r.detail):console.warn("listener method `"+t+"` not defined")}}const Oc=j(i=>{class e extends i{static _parseTemplate(r,a){if(!r._templateInfo){let o=r._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!a,o.stripWhiteSpace=a&&a.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,o,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,a,o){return this._parseTemplateNode(r.content,a,o)}static _parseTemplateNode(r,a,o){let n=!1,s=r;return s.localName=="template"&&!s.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(s,a,o)||n:s.localName==="slot"&&(a.hasInsertionPoint=!0),Ec(s),s.firstChild&&this._parseTemplateChildNodes(s,a,o),s.hasAttributes&&s.hasAttributes()&&(n=this._parseTemplateNodeAttributes(s,a,o)||n),n||o.noted}static _parseTemplateChildNodes(r,a,o){if(!(r.localName==="script"||r.localName==="style"))for(let n=r.firstChild,s=0,l;n;n=l){if(n.localName=="template"&&(n=Ic(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,l=c.nextSibling,r.removeChild(c),c=l;if(a.stripWhiteSpace&&!n.textContent.trim()){r.removeChild(n);continue}}let d={parentIndex:s,parentInfo:o};this._parseTemplateNode(n,a,d)&&(d.infoIndex=a.nodeInfoList.push(d)-1),n.parentNode&&s++}}static _parseTemplateNestedTemplate(r,a,o){let n=r,s=this._parseTemplate(n,a);return(s.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),o.templateInfo=s,!0}static _parseTemplateNodeAttributes(r,a,o){let n=!1,s=Array.from(r.attributes);for(let l=s.length-1,d;d=s[l];l--)n=this._parseTemplateNodeAttribute(r,a,o,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(r,a,o,n,s){return n.slice(0,3)==="on-"?(r.removeAttribute(n),o.events=o.events||[],o.events.push({name:n.slice(3),value:s}),!0):n==="id"?(o.id=s,!0):!1}static _contentForTemplate(r){let a=r._templateInfo;return a&&a.content||r.content}_stampTemplate(r,a){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),a=a||this.constructor._parseTemplate(r);let o=a.nodeInfoList,n=a.content||r.content,s=document.importNode(n,!0);s.__noInsertionPoint=!a.hasInsertionPoint;let l=s.nodeList=new Array(o.length);s.$={};for(let d=0,c=o.length,u;d<c&&(u=o[d]);d++){let m=l[d]=xn(s,u);Tc(this,s.$,m,u),Ac(this,m,u,a),Pc(this,m,u)}return s=s,s}_addMethodEventListenerToNode(r,a,o,n){n=n||r;let s=Dc(n,a,o);return this._addEventListenerToNode(r,a,s),s}_addEventListenerToNode(r,a,o){r.addEventListener(a,o)}_removeEventListenerFromNode(r,a,o){r.removeEventListener(a,o)}}return e});/**
|
|
981
981
|
* @fileoverview
|
|
982
982
|
* @suppress {checkPrototypalTypes}
|
|
983
983
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -987,7 +987,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
987
987
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
988
988
|
* Google as part of the polymer project is also subject to an additional IP
|
|
989
989
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
990
|
-
*/let Pt=0;const Tt=[],O={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Cn="__computeInfo",Vc=/[A-Z]/;function zi(i,e,t){let r=i[e];if(!r)r=i[e]={};else if(!i.hasOwnProperty(e)&&(r=i[e]=Object.create(i[e]),t))for(let a in r){let o=r[a],n=r[a]=Array(o.length);for(let s=0;s<o.length;s++)n[s]=o[s]}return r}function _t(i,e,t,r,a,o){if(e){let n=!1;const s=Pt++;for(let l in t){let d=a?Re(l):l,c=e[d];if(c)for(let u=0,m=c.length,p;u<m&&(p=c[u]);u++)(!p.info||p.info.lastRun!==s)&&(!a||Mr(l,p.trigger))&&(p.info&&(p.info.lastRun=s),p.fn(i,l,t,r,p.info,a,o),n=!0)}return n}return!1}function Mc(i,e,t,r,a,o,n,s){let l=!1,d=n?Re(r):r,c=e[d];if(c)for(let u=0,m=c.length,p;u<m&&(p=c[u]);u++)(!p.info||p.info.lastRun!==t)&&(!n||Mr(r,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(i,r,a,o,p.info,n,s),l=!0);return l}function Mr(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&mn(t,i))||!!(e.wildcard&&St(t,i))}else return!0}function eo(i,e,t,r,a){let o=typeof a.method=="string"?i[a.method]:a.method,n=a.property;o?o.call(i,i.__data[n],r[n]):a.dynamicFn||console.warn("observer method `"+a.method+"` not defined")}function Nc(i,e,t,r,a){let o=i[O.NOTIFY],n,s=Pt++;for(let d in e)e[d]&&(o&&Mc(i,o,s,d,t,r,a)||a&&zc(i,d,t))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function zc(i,e,t){let r=Re(e);if(r!==e){let a=bi(r)+"-changed";return kn(i,a,t[e],e),!0}return!1}function kn(i,e,t,r){let a={value:t,queueProperty:!0};r&&(a.path=r),Q(i).dispatchEvent(new CustomEvent(e,{detail:a}))}function Lc(i,e,t,r,a,o){let n=(o?Re(e):e)!=e?e:null,s=n?te(i,n):i.__data[e];n&&s===void 0&&(s=t[e]),kn(i,a.eventName,s,n)}function Rc(i,e,t,r,a){let o,n=i.detail,s=n&&n.path;s?(r=It(t,r,s),o=n&&n.value):o=i.currentTarget[t],o=a?!o:o,(!e[O.READ_ONLY]||!e[O.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,o,!0,!!s)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function Fc(i,e,t,r,a){let o=i.__data[e];di&&(o=di(o,a.attrName,"attribute",i)),i._propertyToAttribute(e,a.attrName,o)}function $c(i,e,t,r){let a=i[O.COMPUTE];if(a)if(ic){Pt++;const o=Hc(i),n=[];for(let l in e)to(l,a,n,o,r);let s;for(;s=n.shift();)En(i,"",e,t,s)&&to(s.methodInfo,a,n,o,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let o=e;for(;_t(i,a,o,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),o=i.__dataPending,i.__dataPending=null}}const Bc=(i,e,t)=>{let r=0,a=e.length-1,o=-1;for(;r<=a;){const n=r+a>>1,s=t.get(e[n].methodInfo)-t.get(i.methodInfo);if(s<0)r=n+1;else if(s>0)a=n-1;else{o=n;break}}o<0&&(o=a+1),e.splice(o,0,i)},to=(i,e,t,r,a)=>{const o=a?Re(i):i,n=e[o];if(n)for(let s=0;s<n.length;s++){const l=n[s];l.info.lastRun!==Pt&&(!a||Mr(i,l.trigger))&&(l.info.lastRun=Pt,Bc(l.info,t,r))}};function Hc(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[O.COMPUTE];let{counts:r,ready:a,total:o}=Uc(i),n;for(;n=a.shift();){e.set(n,e.size);const s=t[n];s&&s.forEach(l=>{const d=l.info.methodInfo;--o,--r[d]===0&&a.push(d)})}o!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function Uc(i){const e=i[Cn],t={},r=i[O.COMPUTE],a=[];let o=0;for(let n in e){const s=e[n];o+=t[n]=s.args.filter(l=>!l.literal).length+(s.dynamicFn?1:0)}for(let n in r)e[n]||a.push(n);return{counts:t,ready:a,total:o}}function En(i,e,t,r,a){let o=or(i,e,t,r,a);if(o===Tt)return!1;let n=a.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,o,!0):(i[n]=o,!1)}function qc(i,e,t){let r=i.__dataLinkedPaths;if(r){let a;for(let o in r){let n=r[o];St(o,e)?(a=It(o,n,e),i._setPendingPropertyOrPath(a,t,!0,!0)):St(n,e)&&(a=It(n,o,e),i._setPendingPropertyOrPath(a,t,!0,!0))}}}function Li(i,e,t,r,a,o,n){t.bindings=t.bindings||[];let s={kind:r,target:a,parts:o,literal:n,isCompound:o.length!==1};if(t.bindings.push(s),Kc(s)){let{event:d,negate:c}=s.parts[0];s.listenerEvent=d||bi(a)+"-changed",s.listenerNegate=c}let l=e.nodeInfoList.length;for(let d=0;d<s.parts.length;d++){let c=s.parts[d];c.compoundIndex=d,jc(i,e,s,c,l)}}function jc(i,e,t,r,a){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let o=r.dependencies,n={index:a,binding:t,part:r,evaluator:i};for(let s=0;s<o.length;s++){let l=o[s];typeof l=="string"&&(l=In(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Wc,info:n,trigger:l})}}}function Wc(i,e,t,r,a,o,n){let s=n[a.index],l=a.binding,d=a.part;if(o&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]){let c=t[e];e=It(d.source,l.target,e),s._setPendingPropertyOrPath(e,c,!1,!0)&&i._enqueueClient(s)}else{let c=a.evaluator._evaluateBinding(i,d,e,t,r,o);c!==Tt&&Yc(i,s,l,d,c)}}function Yc(i,e,t,r,a){if(a=Gc(e,a,t,r),di&&(a=di(a,t.target,t.kind,e)),t.kind=="attribute")i._valueToNodeAttribute(e,a,t.target);else{let o=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?(!e[O.READ_ONLY]||!e[O.READ_ONLY][o])&&e._setPendingProperty(o,a)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,o,a)}}function Gc(i,e,t,r){if(t.isCompound){let a=i.__dataCompoundStorage[t.target];a[r.compoundIndex]=e,e=a.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(e=e==null?"":e),e}function Kc(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Xc(i,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let a=0;a<r.length;a++){let o=r[a],n=t[a],s=o.bindings;if(s)for(let l=0;l<s.length;l++){let d=s[l];Qc(n,d),Jc(n,i,d)}n.__dataHost=i}}function Qc(i,e){if(e.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=e.parts,a=new Array(r.length);for(let n=0;n<r.length;n++)a[n]=r[n].literal;let o=e.target;t[o]=a,e.literal&&e.kind=="property"&&(o==="className"&&(i=Q(i)),i[o]=e.literal)}}function Jc(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(a){Rc(a,e,t.target,r.source,r.negate)})}}function io(i,e,t,r,a,o){o=e.static||o&&(typeof o!="object"||o[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:a,dynamicFn:o};for(let s=0,l;s<e.args.length&&(l=e.args[s]);s++)l.literal||i._addPropertyEffect(l.rootProperty,t,{fn:r,info:n,trigger:l});return o&&i._addPropertyEffect(e.methodName,t,{fn:r,info:n}),n}function or(i,e,t,r,a){let o=i._methodHost||i,n=o[a.methodName];if(n){let s=i._marshalArgs(a.args,e,t);return s===Tt?Tt:n.apply(o,s)}else a.dynamicFn||console.warn("method `"+a.methodName+"` not defined")}const Zc=[],Sn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",eu="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",tu="(?:'(?:[^'\\\\]|\\\\.)*')",iu='(?:"(?:[^"\\\\]|\\\\.)*")',ru="(?:"+tu+"|"+iu+")",ro="(?:("+Sn+"|"+eu+"|"+ru+")\\s*)",au="(?:"+ro+"(?:,\\s*"+ro+")*)",ou="(?:\\(\\s*(?:"+au+"?)\\)\\s*)",nu="("+Sn+"\\s*"+ou+"?)",su="(\\[\\[|{{)\\s*",lu="(?:]]|}})",du="(?:(!)\\s*)?",hu=su+du+nu+lu,ao=new RegExp(hu,"g");function oo(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function Ri(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Zc};if(e[2].trim()){let r=e[2].replace(/\\,/g,",").split(",");return cu(r,t)}else return t}return null}function cu(i,e){return e.args=i.map(function(t){let r=In(t);return r.literal||(e.static=!1),r},this),e}function In(i){let e=i.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Re(e),t.structured=rr(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function no(i,e,t){let r=te(i,t);return r===void 0&&(r=e[t]),r}function Pn(i,e,t,r){const a={indexSplices:r};ir&&!i._overrideLegacyUndefined&&(e.splices=a),i.notifyPath(t+".splices",a),i.notifyPath(t+".length",e.length),ir&&!i._overrideLegacyUndefined&&(a.indexSplices=[])}function ut(i,e,t,r,a,o){Pn(i,e,t,[{index:r,addedCount:a,removed:o,object:e,type:"splice"}])}function uu(i){return i[0].toUpperCase()+i.substring(1)}const Nr=j(i=>{const e=Oc(xc(i));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return O}_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(pt.length){let a=pt[pt.length-1];a._enqueueClient(this),this.__dataHost=a}}_initializeProtoProperties(a){this.__data=Object.create(a),this.__dataPending=Object.create(a),this.__dataOld={}}_initializeInstanceProperties(a){let o=this[O.READ_ONLY];for(let n in a)(!o||!o[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=a[n])}_addPropertyEffect(a,o,n){this._createPropertyAccessor(a,o==O.READ_ONLY);let s=zi(this,o,!0)[a];s||(s=this[o][a]=[]),s.push(n)}_removePropertyEffect(a,o,n){let s=zi(this,o,!0)[a],l=s.indexOf(n);l>=0&&s.splice(l,1)}_hasPropertyEffect(a,o){let n=this[o];return!!(n&&n[a])}_hasReadOnlyEffect(a){return this._hasPropertyEffect(a,O.READ_ONLY)}_hasNotifyEffect(a){return this._hasPropertyEffect(a,O.NOTIFY)}_hasReflectEffect(a){return this._hasPropertyEffect(a,O.REFLECT)}_hasComputedEffect(a){return this._hasPropertyEffect(a,O.COMPUTE)}_setPendingPropertyOrPath(a,o,n,s){if(s||Re(Array.isArray(a)?a[0]:a)!==a){if(!s){let l=te(this,a);if(a=Qa(this,a,o),!a||!super._shouldPropertyChange(a,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(a,o,n))return qc(this,a,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[a])return this._setPendingProperty(a,o,n);this[a]=o}return!1}_setUnmanagedPropertyToNode(a,o,n){(n!==a[o]||typeof n=="object")&&(o==="className"&&(a=Q(a)),a[o]=n)}_setPendingProperty(a,o,n){let s=this.__dataHasPaths&&rr(a),l=s?this.__dataTemp:this.__data;return this._shouldPropertyChange(a,o,l[a])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),a in this.__dataOld||(this.__dataOld[a]=this.__data[a]),s?this.__dataTemp[a]=o:this.__data[a]=o,this.__dataPending[a]=o,(s||this[O.NOTIFY]&&this[O.NOTIFY][a])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[a]=n),!0):!1}_setProperty(a,o){this._setPendingProperty(a,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(a){this.__dataPendingClients=this.__dataPendingClients||[],a!==this&&this.__dataPendingClients.push(a)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let a=this.__dataPendingClients;if(a){this.__dataPendingClients=null;for(let o=0;o<a.length;o++){let n=a[o];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(a,o){for(let n in a)(o||!this[O.READ_ONLY]||!this[O.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,a[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(a,o,n){let s=this.__dataHasPaths;this.__dataHasPaths=!1;let l;$c(this,o,n,s),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,s),this._flushClients(),_t(this,this[O.REFLECT],o,n,s),_t(this,this[O.OBSERVE],o,n,s),l&&Nc(this,l,o,n,s),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(a,o,n){this[O.PROPAGATE]&&_t(this,this[O.PROPAGATE],a,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,a,o,n)}_runEffectsForTemplate(a,o,n,s){const l=(d,c)=>{_t(this,a.propertyEffects,d,n,c,a.nodeList);for(let u=a.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,d,n,c)};a.runEffects?a.runEffects(l,o,s):l(o,s)}linkPaths(a,o){a=vt(a),o=vt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[a]=o}unlinkPaths(a){a=vt(a),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[a]}notifySplices(a,o){let n={path:""},s=te(this,a,n);Pn(this,s,n.path,o)}get(a,o){return te(o||this,a)}set(a,o,n){n?Qa(n,a,o):(!this[O.READ_ONLY]||!this[O.READ_ONLY][a])&&this._setPendingPropertyOrPath(a,o,!0)&&this._invalidateProperties()}push(a,...o){let n={path:""},s=te(this,a,n),l=s.length,d=s.push(...o);return o.length&&ut(this,s,n.path,l,o.length,[]),d}pop(a){let o={path:""},n=te(this,a,o),s=!!n.length,l=n.pop();return s&&ut(this,n,o.path,n.length,0,[l]),l}splice(a,o,n,...s){let l={path:""},d=te(this,a,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let c;return arguments.length===2?c=d.splice(o):c=d.splice(o,n,...s),(s.length||c.length)&&ut(this,d,l.path,o,s.length,c),c}shift(a){let o={path:""},n=te(this,a,o),s=!!n.length,l=n.shift();return s&&ut(this,n,o.path,0,0,[l]),l}unshift(a,...o){let n={path:""},s=te(this,a,n),l=s.unshift(...o);return o.length&&ut(this,s,n.path,0,o.length,[]),l}notifyPath(a,o){let n;if(arguments.length==1){let s={path:""};o=te(this,a,s),n=s.path}else Array.isArray(a)?n=vt(a):n=a;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(a,o){this._addPropertyEffect(a,O.READ_ONLY),o&&(this["_set"+uu(a)]=function(n){this._setProperty(a,n)})}_createPropertyObserver(a,o,n){let s={property:a,method:o,dynamicFn:!!n};this._addPropertyEffect(a,O.OBSERVE,{fn:eo,info:s,trigger:{name:a}}),n&&this._addPropertyEffect(o,O.OBSERVE,{fn:eo,info:s,trigger:{name:o}})}_createMethodObserver(a,o){let n=Ri(a);if(!n)throw new Error("Malformed observer expression '"+a+"'");io(this,n,O.OBSERVE,or,null,o)}_createNotifyingProperty(a){this._addPropertyEffect(a,O.NOTIFY,{fn:Lc,info:{eventName:bi(a)+"-changed",property:a}})}_createReflectedProperty(a){let o=this.constructor.attributeNameForProperty(a);o[0]==="-"?console.warn("Property "+a+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(a,O.REFLECT,{fn:Fc,info:{attrName:o}})}_createComputedProperty(a,o,n){let s=Ri(o);if(!s)throw new Error("Malformed computed expression '"+o+"'");const l=io(this,s,O.COMPUTE,En,a,n);zi(this,Cn)[a]=l}_marshalArgs(a,o,n){const s=this.__data,l=[];for(let d=0,c=a.length;d<c;d++){let{name:u,structured:m,wildcard:p,value:y,literal:M}=a[d];if(!M)if(p){const D=St(u,o),C=no(s,n,D?o:u);y={path:D?o:u,value:C,base:D?te(s,u):C}}else y=m?no(s,n,u):s[u];if(ir&&!this._overrideLegacyUndefined&&y===void 0&&a.length>1)return Tt;l[d]=y}return l}static addPropertyEffect(a,o,n){this.prototype._addPropertyEffect(a,o,n)}static createPropertyObserver(a,o,n){this.prototype._createPropertyObserver(a,o,n)}static createMethodObserver(a,o){this.prototype._createMethodObserver(a,o)}static createNotifyingProperty(a){this.prototype._createNotifyingProperty(a)}static createReadOnlyProperty(a,o){this.prototype._createReadOnlyProperty(a,o)}static createReflectedProperty(a){this.prototype._createReflectedProperty(a)}static createComputedProperty(a,o,n){this.prototype._createComputedProperty(a,o,n)}static bindTemplate(a){return this.prototype._bindTemplate(a)}_bindTemplate(a,o){let n=this.constructor._parseTemplate(a),s=this.__preBoundTemplateInfo==n;if(!s)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(o)if(n=Object.create(n),n.wasPreBound=s,!this.__templateInfo)this.__templateInfo=n;else{const l=a._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(a,o,n){let s=a.hostProps=a.hostProps||{};s[o]=!0;let l=a.propertyEffects=a.propertyEffects||{};(l[o]=l[o]||[]).push(n)}_stampTemplate(a,o){o=o||this._bindTemplate(a,!0),pt.push(this);let n=super._stampTemplate(a,o);if(pt.pop(),o.nodeList=n.nodeList,!o.wasPreBound){let s=o.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)s.push(l)}return n.templateInfo=o,Xc(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(a){const o=a.templateInfo,{previousSibling:n,nextSibling:s,parent:l}=o;n?n.nextSibling=s:l&&(l.firstChild=s),s?s.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let d=o.childNodes;for(let c=0;c<d.length;c++){let u=d[c];Q(Q(u).parentNode).removeChild(u)}}static _parseTemplateNode(a,o,n){let s=e._parseTemplateNode.call(this,a,o,n);if(a.nodeType===Node.TEXT_NODE){let l=this._parseBindings(a.textContent,o);l&&(a.textContent=oo(l)||" ",Li(this,o,n,"text","textContent",l),s=!0)}return s}static _parseTemplateNodeAttribute(a,o,n,s,l){let d=this._parseBindings(l,o);if(d){let c=s,u="property";Vc.test(s)?u="attribute":s[s.length-1]=="$"&&(s=s.slice(0,-1),u="attribute");let m=oo(d);return m&&u=="attribute"&&(s=="class"&&a.hasAttribute("class")&&(m+=" "+a.getAttribute(s)),a.setAttribute(s,m)),u=="attribute"&&c=="disable-upgrade$"&&a.setAttribute(s,""),a.localName==="input"&&c==="value"&&a.setAttribute(c,""),a.removeAttribute(c),u==="property"&&(s=vn(s)),Li(this,o,n,u,s,d,m),!0}else return e._parseTemplateNodeAttribute.call(this,a,o,n,s,l)}static _parseTemplateNestedTemplate(a,o,n){let s=e._parseTemplateNestedTemplate.call(this,a,o,n);const l=a.parentNode,d=n.templateInfo,c=l.localName==="dom-if",u=l.localName==="dom-repeat";ja&&(c||u)&&(l.removeChild(a),n=n.parentInfo,n.templateInfo=d,n.noted=!0,s=!1);let m=d.hostProps;if(rc&&c)m&&(o.hostProps=Object.assign(o.hostProps||{},m),ja||(n.parentInfo.noted=!0));else{let p="{";for(let y in m){let M=[{mode:p,source:y,dependencies:[y],hostProp:!0}];Li(this,o,n,"property","_host_"+y,M)}}return s}static _parseBindings(a,o){let n=[],s=0,l;for(;(l=ao.exec(a))!==null;){l.index>s&&n.push({literal:a.slice(s,l.index)});let d=l[1][0],c=!!l[2],u=l[3].trim(),m=!1,p="",y=-1;d=="{"&&(y=u.indexOf("::"))>0&&(p=u.substring(y+2),u=u.substring(0,y),m=!0);let M=Ri(u),D=[];if(M){let{args:C,methodName:P}=M;for(let R=0;R<C.length;R++){let Y=C[R];Y.literal||D.push(Y)}let H=o.dynamicFns;(H&&H[P]||M.static)&&(D.push(P),M.dynamicFn=!0)}else D.push(u);n.push({source:u,mode:d,negate:c,customEvent:m,signature:M,dependencies:D,event:p}),s=ao.lastIndex}if(s&&s<a.length){let d=a.substring(s);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(a,o,n,s,l,d){let c;return o.signature?c=or(a,n,s,l,o.signature):n!=o.source?c=te(a,o.source):d&&rr(n)?c=te(a,n):c=a.__data[n],o.negate&&(c=!c),c}}return t}),pt=[];/**
|
|
990
|
+
*/let Tt=0;const Pt=[],O={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Cn="__computeInfo",Vc=/[A-Z]/;function zi(i,e,t){let r=i[e];if(!r)r=i[e]={};else if(!i.hasOwnProperty(e)&&(r=i[e]=Object.create(i[e]),t))for(let a in r){let o=r[a],n=r[a]=Array(o.length);for(let s=0;s<o.length;s++)n[s]=o[s]}return r}function _t(i,e,t,r,a,o){if(e){let n=!1;const s=Tt++;for(let l in t){let d=a?Re(l):l,c=e[d];if(c)for(let u=0,m=c.length,p;u<m&&(p=c[u]);u++)(!p.info||p.info.lastRun!==s)&&(!a||Mr(l,p.trigger))&&(p.info&&(p.info.lastRun=s),p.fn(i,l,t,r,p.info,a,o),n=!0)}return n}return!1}function Mc(i,e,t,r,a,o,n,s){let l=!1,d=n?Re(r):r,c=e[d];if(c)for(let u=0,m=c.length,p;u<m&&(p=c[u]);u++)(!p.info||p.info.lastRun!==t)&&(!n||Mr(r,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(i,r,a,o,p.info,n,s),l=!0);return l}function Mr(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&mn(t,i))||!!(e.wildcard&&St(t,i))}else return!0}function eo(i,e,t,r,a){let o=typeof a.method=="string"?i[a.method]:a.method,n=a.property;o?o.call(i,i.__data[n],r[n]):a.dynamicFn||console.warn("observer method `"+a.method+"` not defined")}function Nc(i,e,t,r,a){let o=i[O.NOTIFY],n,s=Tt++;for(let d in e)e[d]&&(o&&Mc(i,o,s,d,t,r,a)||a&&zc(i,d,t))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function zc(i,e,t){let r=Re(e);if(r!==e){let a=bi(r)+"-changed";return kn(i,a,t[e],e),!0}return!1}function kn(i,e,t,r){let a={value:t,queueProperty:!0};r&&(a.path=r),Q(i).dispatchEvent(new CustomEvent(e,{detail:a}))}function Lc(i,e,t,r,a,o){let n=(o?Re(e):e)!=e?e:null,s=n?te(i,n):i.__data[e];n&&s===void 0&&(s=t[e]),kn(i,a.eventName,s,n)}function Rc(i,e,t,r,a){let o,n=i.detail,s=n&&n.path;s?(r=It(t,r,s),o=n&&n.value):o=i.currentTarget[t],o=a?!o:o,(!e[O.READ_ONLY]||!e[O.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,o,!0,!!s)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function Fc(i,e,t,r,a){let o=i.__data[e];di&&(o=di(o,a.attrName,"attribute",i)),i._propertyToAttribute(e,a.attrName,o)}function $c(i,e,t,r){let a=i[O.COMPUTE];if(a)if(ic){Tt++;const o=Hc(i),n=[];for(let l in e)to(l,a,n,o,r);let s;for(;s=n.shift();)En(i,"",e,t,s)&&to(s.methodInfo,a,n,o,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let o=e;for(;_t(i,a,o,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),o=i.__dataPending,i.__dataPending=null}}const Bc=(i,e,t)=>{let r=0,a=e.length-1,o=-1;for(;r<=a;){const n=r+a>>1,s=t.get(e[n].methodInfo)-t.get(i.methodInfo);if(s<0)r=n+1;else if(s>0)a=n-1;else{o=n;break}}o<0&&(o=a+1),e.splice(o,0,i)},to=(i,e,t,r,a)=>{const o=a?Re(i):i,n=e[o];if(n)for(let s=0;s<n.length;s++){const l=n[s];l.info.lastRun!==Tt&&(!a||Mr(i,l.trigger))&&(l.info.lastRun=Tt,Bc(l.info,t,r))}};function Hc(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[O.COMPUTE];let{counts:r,ready:a,total:o}=Uc(i),n;for(;n=a.shift();){e.set(n,e.size);const s=t[n];s&&s.forEach(l=>{const d=l.info.methodInfo;--o,--r[d]===0&&a.push(d)})}o!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function Uc(i){const e=i[Cn],t={},r=i[O.COMPUTE],a=[];let o=0;for(let n in e){const s=e[n];o+=t[n]=s.args.filter(l=>!l.literal).length+(s.dynamicFn?1:0)}for(let n in r)e[n]||a.push(n);return{counts:t,ready:a,total:o}}function En(i,e,t,r,a){let o=or(i,e,t,r,a);if(o===Pt)return!1;let n=a.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,o,!0):(i[n]=o,!1)}function qc(i,e,t){let r=i.__dataLinkedPaths;if(r){let a;for(let o in r){let n=r[o];St(o,e)?(a=It(o,n,e),i._setPendingPropertyOrPath(a,t,!0,!0)):St(n,e)&&(a=It(n,o,e),i._setPendingPropertyOrPath(a,t,!0,!0))}}}function Li(i,e,t,r,a,o,n){t.bindings=t.bindings||[];let s={kind:r,target:a,parts:o,literal:n,isCompound:o.length!==1};if(t.bindings.push(s),Kc(s)){let{event:d,negate:c}=s.parts[0];s.listenerEvent=d||bi(a)+"-changed",s.listenerNegate=c}let l=e.nodeInfoList.length;for(let d=0;d<s.parts.length;d++){let c=s.parts[d];c.compoundIndex=d,jc(i,e,s,c,l)}}function jc(i,e,t,r,a){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let o=r.dependencies,n={index:a,binding:t,part:r,evaluator:i};for(let s=0;s<o.length;s++){let l=o[s];typeof l=="string"&&(l=In(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Wc,info:n,trigger:l})}}}function Wc(i,e,t,r,a,o,n){let s=n[a.index],l=a.binding,d=a.part;if(o&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]){let c=t[e];e=It(d.source,l.target,e),s._setPendingPropertyOrPath(e,c,!1,!0)&&i._enqueueClient(s)}else{let c=a.evaluator._evaluateBinding(i,d,e,t,r,o);c!==Pt&&Yc(i,s,l,d,c)}}function Yc(i,e,t,r,a){if(a=Gc(e,a,t,r),di&&(a=di(a,t.target,t.kind,e)),t.kind=="attribute")i._valueToNodeAttribute(e,a,t.target);else{let o=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?(!e[O.READ_ONLY]||!e[O.READ_ONLY][o])&&e._setPendingProperty(o,a)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,o,a)}}function Gc(i,e,t,r){if(t.isCompound){let a=i.__dataCompoundStorage[t.target];a[r.compoundIndex]=e,e=a.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(e=e==null?"":e),e}function Kc(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Xc(i,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let a=0;a<r.length;a++){let o=r[a],n=t[a],s=o.bindings;if(s)for(let l=0;l<s.length;l++){let d=s[l];Qc(n,d),Jc(n,i,d)}n.__dataHost=i}}function Qc(i,e){if(e.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=e.parts,a=new Array(r.length);for(let n=0;n<r.length;n++)a[n]=r[n].literal;let o=e.target;t[o]=a,e.literal&&e.kind=="property"&&(o==="className"&&(i=Q(i)),i[o]=e.literal)}}function Jc(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(a){Rc(a,e,t.target,r.source,r.negate)})}}function io(i,e,t,r,a,o){o=e.static||o&&(typeof o!="object"||o[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:a,dynamicFn:o};for(let s=0,l;s<e.args.length&&(l=e.args[s]);s++)l.literal||i._addPropertyEffect(l.rootProperty,t,{fn:r,info:n,trigger:l});return o&&i._addPropertyEffect(e.methodName,t,{fn:r,info:n}),n}function or(i,e,t,r,a){let o=i._methodHost||i,n=o[a.methodName];if(n){let s=i._marshalArgs(a.args,e,t);return s===Pt?Pt:n.apply(o,s)}else a.dynamicFn||console.warn("method `"+a.methodName+"` not defined")}const Zc=[],Sn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",eu="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",tu="(?:'(?:[^'\\\\]|\\\\.)*')",iu='(?:"(?:[^"\\\\]|\\\\.)*")',ru="(?:"+tu+"|"+iu+")",ro="(?:("+Sn+"|"+eu+"|"+ru+")\\s*)",au="(?:"+ro+"(?:,\\s*"+ro+")*)",ou="(?:\\(\\s*(?:"+au+"?)\\)\\s*)",nu="("+Sn+"\\s*"+ou+"?)",su="(\\[\\[|{{)\\s*",lu="(?:]]|}})",du="(?:(!)\\s*)?",hu=su+du+nu+lu,ao=new RegExp(hu,"g");function oo(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function Ri(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Zc};if(e[2].trim()){let r=e[2].replace(/\\,/g,",").split(",");return cu(r,t)}else return t}return null}function cu(i,e){return e.args=i.map(function(t){let r=In(t);return r.literal||(e.static=!1),r},this),e}function In(i){let e=i.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Re(e),t.structured=rr(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function no(i,e,t){let r=te(i,t);return r===void 0&&(r=e[t]),r}function Tn(i,e,t,r){const a={indexSplices:r};ir&&!i._overrideLegacyUndefined&&(e.splices=a),i.notifyPath(t+".splices",a),i.notifyPath(t+".length",e.length),ir&&!i._overrideLegacyUndefined&&(a.indexSplices=[])}function ut(i,e,t,r,a,o){Tn(i,e,t,[{index:r,addedCount:a,removed:o,object:e,type:"splice"}])}function uu(i){return i[0].toUpperCase()+i.substring(1)}const Nr=j(i=>{const e=Oc(xc(i));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return O}_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(pt.length){let a=pt[pt.length-1];a._enqueueClient(this),this.__dataHost=a}}_initializeProtoProperties(a){this.__data=Object.create(a),this.__dataPending=Object.create(a),this.__dataOld={}}_initializeInstanceProperties(a){let o=this[O.READ_ONLY];for(let n in a)(!o||!o[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=a[n])}_addPropertyEffect(a,o,n){this._createPropertyAccessor(a,o==O.READ_ONLY);let s=zi(this,o,!0)[a];s||(s=this[o][a]=[]),s.push(n)}_removePropertyEffect(a,o,n){let s=zi(this,o,!0)[a],l=s.indexOf(n);l>=0&&s.splice(l,1)}_hasPropertyEffect(a,o){let n=this[o];return!!(n&&n[a])}_hasReadOnlyEffect(a){return this._hasPropertyEffect(a,O.READ_ONLY)}_hasNotifyEffect(a){return this._hasPropertyEffect(a,O.NOTIFY)}_hasReflectEffect(a){return this._hasPropertyEffect(a,O.REFLECT)}_hasComputedEffect(a){return this._hasPropertyEffect(a,O.COMPUTE)}_setPendingPropertyOrPath(a,o,n,s){if(s||Re(Array.isArray(a)?a[0]:a)!==a){if(!s){let l=te(this,a);if(a=Qa(this,a,o),!a||!super._shouldPropertyChange(a,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(a,o,n))return qc(this,a,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[a])return this._setPendingProperty(a,o,n);this[a]=o}return!1}_setUnmanagedPropertyToNode(a,o,n){(n!==a[o]||typeof n=="object")&&(o==="className"&&(a=Q(a)),a[o]=n)}_setPendingProperty(a,o,n){let s=this.__dataHasPaths&&rr(a),l=s?this.__dataTemp:this.__data;return this._shouldPropertyChange(a,o,l[a])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),a in this.__dataOld||(this.__dataOld[a]=this.__data[a]),s?this.__dataTemp[a]=o:this.__data[a]=o,this.__dataPending[a]=o,(s||this[O.NOTIFY]&&this[O.NOTIFY][a])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[a]=n),!0):!1}_setProperty(a,o){this._setPendingProperty(a,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(a){this.__dataPendingClients=this.__dataPendingClients||[],a!==this&&this.__dataPendingClients.push(a)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let a=this.__dataPendingClients;if(a){this.__dataPendingClients=null;for(let o=0;o<a.length;o++){let n=a[o];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(a,o){for(let n in a)(o||!this[O.READ_ONLY]||!this[O.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,a[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(a,o,n){let s=this.__dataHasPaths;this.__dataHasPaths=!1;let l;$c(this,o,n,s),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,s),this._flushClients(),_t(this,this[O.REFLECT],o,n,s),_t(this,this[O.OBSERVE],o,n,s),l&&Nc(this,l,o,n,s),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(a,o,n){this[O.PROPAGATE]&&_t(this,this[O.PROPAGATE],a,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,a,o,n)}_runEffectsForTemplate(a,o,n,s){const l=(d,c)=>{_t(this,a.propertyEffects,d,n,c,a.nodeList);for(let u=a.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,d,n,c)};a.runEffects?a.runEffects(l,o,s):l(o,s)}linkPaths(a,o){a=vt(a),o=vt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[a]=o}unlinkPaths(a){a=vt(a),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[a]}notifySplices(a,o){let n={path:""},s=te(this,a,n);Tn(this,s,n.path,o)}get(a,o){return te(o||this,a)}set(a,o,n){n?Qa(n,a,o):(!this[O.READ_ONLY]||!this[O.READ_ONLY][a])&&this._setPendingPropertyOrPath(a,o,!0)&&this._invalidateProperties()}push(a,...o){let n={path:""},s=te(this,a,n),l=s.length,d=s.push(...o);return o.length&&ut(this,s,n.path,l,o.length,[]),d}pop(a){let o={path:""},n=te(this,a,o),s=!!n.length,l=n.pop();return s&&ut(this,n,o.path,n.length,0,[l]),l}splice(a,o,n,...s){let l={path:""},d=te(this,a,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let c;return arguments.length===2?c=d.splice(o):c=d.splice(o,n,...s),(s.length||c.length)&&ut(this,d,l.path,o,s.length,c),c}shift(a){let o={path:""},n=te(this,a,o),s=!!n.length,l=n.shift();return s&&ut(this,n,o.path,0,0,[l]),l}unshift(a,...o){let n={path:""},s=te(this,a,n),l=s.unshift(...o);return o.length&&ut(this,s,n.path,0,o.length,[]),l}notifyPath(a,o){let n;if(arguments.length==1){let s={path:""};o=te(this,a,s),n=s.path}else Array.isArray(a)?n=vt(a):n=a;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(a,o){this._addPropertyEffect(a,O.READ_ONLY),o&&(this["_set"+uu(a)]=function(n){this._setProperty(a,n)})}_createPropertyObserver(a,o,n){let s={property:a,method:o,dynamicFn:!!n};this._addPropertyEffect(a,O.OBSERVE,{fn:eo,info:s,trigger:{name:a}}),n&&this._addPropertyEffect(o,O.OBSERVE,{fn:eo,info:s,trigger:{name:o}})}_createMethodObserver(a,o){let n=Ri(a);if(!n)throw new Error("Malformed observer expression '"+a+"'");io(this,n,O.OBSERVE,or,null,o)}_createNotifyingProperty(a){this._addPropertyEffect(a,O.NOTIFY,{fn:Lc,info:{eventName:bi(a)+"-changed",property:a}})}_createReflectedProperty(a){let o=this.constructor.attributeNameForProperty(a);o[0]==="-"?console.warn("Property "+a+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(a,O.REFLECT,{fn:Fc,info:{attrName:o}})}_createComputedProperty(a,o,n){let s=Ri(o);if(!s)throw new Error("Malformed computed expression '"+o+"'");const l=io(this,s,O.COMPUTE,En,a,n);zi(this,Cn)[a]=l}_marshalArgs(a,o,n){const s=this.__data,l=[];for(let d=0,c=a.length;d<c;d++){let{name:u,structured:m,wildcard:p,value:y,literal:M}=a[d];if(!M)if(p){const D=St(u,o),C=no(s,n,D?o:u);y={path:D?o:u,value:C,base:D?te(s,u):C}}else y=m?no(s,n,u):s[u];if(ir&&!this._overrideLegacyUndefined&&y===void 0&&a.length>1)return Pt;l[d]=y}return l}static addPropertyEffect(a,o,n){this.prototype._addPropertyEffect(a,o,n)}static createPropertyObserver(a,o,n){this.prototype._createPropertyObserver(a,o,n)}static createMethodObserver(a,o){this.prototype._createMethodObserver(a,o)}static createNotifyingProperty(a){this.prototype._createNotifyingProperty(a)}static createReadOnlyProperty(a,o){this.prototype._createReadOnlyProperty(a,o)}static createReflectedProperty(a){this.prototype._createReflectedProperty(a)}static createComputedProperty(a,o,n){this.prototype._createComputedProperty(a,o,n)}static bindTemplate(a){return this.prototype._bindTemplate(a)}_bindTemplate(a,o){let n=this.constructor._parseTemplate(a),s=this.__preBoundTemplateInfo==n;if(!s)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(o)if(n=Object.create(n),n.wasPreBound=s,!this.__templateInfo)this.__templateInfo=n;else{const l=a._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(a,o,n){let s=a.hostProps=a.hostProps||{};s[o]=!0;let l=a.propertyEffects=a.propertyEffects||{};(l[o]=l[o]||[]).push(n)}_stampTemplate(a,o){o=o||this._bindTemplate(a,!0),pt.push(this);let n=super._stampTemplate(a,o);if(pt.pop(),o.nodeList=n.nodeList,!o.wasPreBound){let s=o.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)s.push(l)}return n.templateInfo=o,Xc(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(a){const o=a.templateInfo,{previousSibling:n,nextSibling:s,parent:l}=o;n?n.nextSibling=s:l&&(l.firstChild=s),s?s.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let d=o.childNodes;for(let c=0;c<d.length;c++){let u=d[c];Q(Q(u).parentNode).removeChild(u)}}static _parseTemplateNode(a,o,n){let s=e._parseTemplateNode.call(this,a,o,n);if(a.nodeType===Node.TEXT_NODE){let l=this._parseBindings(a.textContent,o);l&&(a.textContent=oo(l)||" ",Li(this,o,n,"text","textContent",l),s=!0)}return s}static _parseTemplateNodeAttribute(a,o,n,s,l){let d=this._parseBindings(l,o);if(d){let c=s,u="property";Vc.test(s)?u="attribute":s[s.length-1]=="$"&&(s=s.slice(0,-1),u="attribute");let m=oo(d);return m&&u=="attribute"&&(s=="class"&&a.hasAttribute("class")&&(m+=" "+a.getAttribute(s)),a.setAttribute(s,m)),u=="attribute"&&c=="disable-upgrade$"&&a.setAttribute(s,""),a.localName==="input"&&c==="value"&&a.setAttribute(c,""),a.removeAttribute(c),u==="property"&&(s=vn(s)),Li(this,o,n,u,s,d,m),!0}else return e._parseTemplateNodeAttribute.call(this,a,o,n,s,l)}static _parseTemplateNestedTemplate(a,o,n){let s=e._parseTemplateNestedTemplate.call(this,a,o,n);const l=a.parentNode,d=n.templateInfo,c=l.localName==="dom-if",u=l.localName==="dom-repeat";ja&&(c||u)&&(l.removeChild(a),n=n.parentInfo,n.templateInfo=d,n.noted=!0,s=!1);let m=d.hostProps;if(rc&&c)m&&(o.hostProps=Object.assign(o.hostProps||{},m),ja||(n.parentInfo.noted=!0));else{let p="{";for(let y in m){let M=[{mode:p,source:y,dependencies:[y],hostProp:!0}];Li(this,o,n,"property","_host_"+y,M)}}return s}static _parseBindings(a,o){let n=[],s=0,l;for(;(l=ao.exec(a))!==null;){l.index>s&&n.push({literal:a.slice(s,l.index)});let d=l[1][0],c=!!l[2],u=l[3].trim(),m=!1,p="",y=-1;d=="{"&&(y=u.indexOf("::"))>0&&(p=u.substring(y+2),u=u.substring(0,y),m=!0);let M=Ri(u),D=[];if(M){let{args:C,methodName:T}=M;for(let R=0;R<C.length;R++){let Y=C[R];Y.literal||D.push(Y)}let H=o.dynamicFns;(H&&H[T]||M.static)&&(D.push(T),M.dynamicFn=!0)}else D.push(u);n.push({source:u,mode:d,negate:c,customEvent:m,signature:M,dependencies:D,event:p}),s=ao.lastIndex}if(s&&s<a.length){let d=a.substring(s);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(a,o,n,s,l,d){let c;return o.signature?c=or(a,n,s,l,o.signature):n!=o.source?c=te(a,o.source):d&&rr(n)?c=te(a,n):c=a.__data[n],o.negate&&(c=!c),c}}return t}),pt=[];/**
|
|
991
991
|
@license
|
|
992
992
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
993
993
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1013,7 +1013,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1013
1013
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
1014
1014
|
* Google as part of the polymer project is also subject to an additional IP
|
|
1015
1015
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1016
|
-
*/const fu="3.5.2",so=window.ShadyCSS&&window.ShadyCSS.cssBuild,vu=j(i=>{const e=mu(Nr(i));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let c in d){let u=d[c];"value"in u&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=u)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function a(l,d,c,u){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,c.computed,u)),c.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):c.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),c.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):c.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),c.observer&&l._createPropertyObserver(d,c.observer,u[c.observer]),l._addPropertyToAttributeMap(d)}function o(l,d,c,u){if(!so){const m=d.content.querySelectorAll("style"),p=un(d),y=cc(c),M=d.content.firstElementChild;for(let C=0;C<y.length;C++){let
|
|
1016
|
+
*/const fu="3.5.2",so=window.ShadyCSS&&window.ShadyCSS.cssBuild,vu=j(i=>{const e=mu(Nr(i));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let c in d){let u=d[c];"value"in u&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=u)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function a(l,d,c,u){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,c.computed,u)),c.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):c.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),c.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):c.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),c.observer&&l._createPropertyObserver(d,c.observer,u[c.observer]),l._addPropertyToAttributeMap(d)}function o(l,d,c,u){if(!so){const m=d.content.querySelectorAll("style"),p=un(d),y=cc(c),M=d.content.firstElementChild;for(let C=0;C<y.length;C++){let T=y[C];T.textContent=l._processStyleText(T.textContent,u),d.content.insertBefore(T,M)}let D=0;for(let C=0;C<p.length;C++){let T=p[C],H=m[D];H!==T?(T=T.cloneNode(!0),H.parentNode.insertBefore(T,H)):D++,T.textContent=l._processStyleText(T.textContent,u)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,c),ac&&so&&Jh){const m=d.content.querySelectorAll("style");if(m){let p="";Array.from(m).forEach(y=>{p+=y.textContent,y.parentNode.removeChild(y)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p)}}}function n(l){let d=null;if(l&&(!hi||ec)&&(d=Et.import(l,"template"),hi&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class s extends e{static get polymerElementVersion(){return fu}static _finalizeClass(){e._finalizeClass.call(this);const d=r(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):ln||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let c in d)a(this.prototype,c,d[c],d)}static createObservers(d,c){const u=this.prototype;for(let m=0;m<d.length;m++)u._createMethodObserver(d[m],c)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Or(d.url);else{const c=Et.import(this.is);this._importPath=c&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Zh,this.importPath=this.constructor.importPath;let d=t(this.constructor);if(d)for(let c in d){let u=d[c];if(this._canApplyPropertyDefault(c)){let m=typeof u.value=="function"?u.value.call(this):u.value;this._hasAccessor(c)?this._setPendingProperty(c,m,!0):this[c]=m}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,c){return Dr(d,c)}static _finalizeTemplate(d){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const u=this.importPath,m=u?yt(u):"";o(this,c,d,m),this.prototype._bindTemplate(c)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const c=Q(this);if(c.attachShadow)return d?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:d}),c.shadowRoot.appendChild(d),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),tc&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,c){return!c&&this.importPath&&(c=yt(this.importPath)),yt(d,c)}static _parseTemplateContent(d,c,u){return c.dynamicFns=c.dynamicFns||this._properties,e._parseTemplateContent.call(this,d,c,u)}static _addTemplatePropertyEffect(d,c,u){return dn&&!(c in this._properties)&&!(u.info.part.signature&&u.info.part.signature.static)&&!u.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,d,c,u)}}return s});/**
|
|
1017
1017
|
@license
|
|
1018
1018
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1019
1019
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1021,7 +1021,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1021
1021
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1022
1022
|
Code distributed by Google as part of the polymer project is also
|
|
1023
1023
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1024
|
-
*/const lo=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class
|
|
1024
|
+
*/const lo=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class Pn{constructor(e,t){Dn(e,t);const r=t.reduce((a,o,n)=>a+An(o)+e[n+1],e[0]);this.value=r.toString()}toString(){return this.value}}function An(i){if(i instanceof Pn)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function _u(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof Pn)return An(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const S=function(i,...e){Dn(i,e);const t=document.createElement("template");let r=e.reduce((a,o,n)=>a+_u(o)+i[n+1],i[0]);return lo&&(r=lo.createHTML(r)),t.innerHTML=r,t},Dn=(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")};/**
|
|
1025
1025
|
@license
|
|
1026
1026
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1027
1027
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1527,7 +1527,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1527
1527
|
* @license
|
|
1528
1528
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1529
1529
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1530
|
-
*/const _e=[];function lr(i,e,t=i.getAttribute("dir")){e?i.setAttribute("dir",e):t!=null&&i.removeAttribute("dir")}function dr(){return document.documentElement.getAttribute("dir")}function
|
|
1530
|
+
*/const _e=[];function lr(i,e,t=i.getAttribute("dir")){e?i.setAttribute("dir",e):t!=null&&i.removeAttribute("dir")}function dr(){return document.documentElement.getAttribute("dir")}function Tu(){const i=dr();_e.forEach(e=>{lr(e,i)})}const Pu=new MutationObserver(Tu);Pu.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const ne=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(),lr(this,dr(),null))}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),e!=="dir")return;const a=dr(),o=r===a&&_e.indexOf(this)===-1,n=!r&&t&&_e.indexOf(this)===-1;o||n?(this.__subscribe(),lr(this,a,r)):r!==a&&t===a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=_e.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,r){r==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,r)}_attributeToProperty(e,t,r){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,r)}__subscribe(){_e.includes(this)||_e.push(this)}__unsubscribe(){_e.includes(this)&&_e.splice(_e.indexOf(this),1)}};/**
|
|
1531
1531
|
* @license
|
|
1532
1532
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1533
1533
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -1559,7 +1559,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1559
1559
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1560
1560
|
Code distributed by Google as part of the polymer project is also
|
|
1561
1561
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1562
|
-
*/const Mu=i=>i,Rn=typeof document.head.style.touchAction=="string",hr="__polymerGestures",$i="__polymerGesturesHandled",cr="__polymerGesturesTouchAction",po=25,mo=5,Nu=2,zu=["mousedown","mousemove","mouseup","click"],Lu=[0,1,4,2],Ru=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function Fn(i){return zu.indexOf(i)>-1}(function(){try{const i=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();const Fu=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),$u={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ne(i){const e=i.type;if(!Fn(e))return!1;if(e==="mousemove"){let t=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!Ru&&(t=Lu[i.which]||0),!!(t&1)}return(i.button===void 0?0:i.button)===0}function Bu(i){if(i.type==="click"){if(i.detail===0)return!0;const e=
|
|
1562
|
+
*/const Mu=i=>i,Rn=typeof document.head.style.touchAction=="string",hr="__polymerGestures",$i="__polymerGesturesHandled",cr="__polymerGesturesTouchAction",po=25,mo=5,Nu=2,zu=["mousedown","mousemove","mouseup","click"],Lu=[0,1,4,2],Ru=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function Fn(i){return zu.indexOf(i)>-1}(function(){try{const i=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();const Fu=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),$u={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ne(i){const e=i.type;if(!Fn(e))return!1;if(e==="mousemove"){let t=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!Ru&&(t=Lu[i.which]||0),!!(t&1)}return(i.button===void 0?0:i.button)===0}function Bu(i){if(i.type==="click"){if(i.detail===0)return!0;const e=Te(i);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),r=i.pageX,a=i.pageY;return!(r>=t.left&&r<=t.right&&a>=t.top&&a<=t.bottom)}return!1}const ge={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Hu(i){let e="auto";const t=Bn(i);for(let r=0,a;r<t.length;r++)if(a=t[r],a[cr]){e=a[cr];break}return e}function $n(i,e,t){i.movefn=e,i.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function Ge(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const Bn=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],Rr={},Me=[];function Uu(i,e){let t=document.elementFromPoint(i,e),r=t;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const a=r;if(r=r.shadowRoot.elementFromPoint(i,e),a===r)break;r&&(t=r)}return t}function Te(i){const e=Bn(i);return e.length>0?e[0]:i.target}function qu(i){const e=i.type,t=i.currentTarget[hr];if(!t)return;const r=t[e];if(!r)return;if(!i[$i]&&(i[$i]={},e.startsWith("touch"))){const o=i.changedTouches[0];if(e==="touchstart"&&i.touches.length===1&&(ge.touch.id=o.identifier),ge.touch.id!==o.identifier)return;Rn||(e==="touchstart"||e==="touchmove")&&ju(i)}const a=i[$i];if(!a.skip){for(let o=0,n;o<Me.length;o++)n=Me[o],r[n.name]&&!a[n.name]&&n.flow&&n.flow.start.indexOf(i.type)>-1&&n.reset&&n.reset();for(let o=0,n;o<Me.length;o++)n=Me[o],r[n.name]&&!a[n.name]&&(a[n.name]=!0,n[e](i))}}function ju(i){const e=i.changedTouches[0],t=i.type;if(t==="touchstart")ge.touch.x=e.clientX,ge.touch.y=e.clientY,ge.touch.scrollDecided=!1;else if(t==="touchmove"){if(ge.touch.scrollDecided)return;ge.touch.scrollDecided=!0;const r=Hu(i);let a=!1;const o=Math.abs(ge.touch.x-e.clientX),n=Math.abs(ge.touch.y-e.clientY);i.cancelable&&(r==="none"?a=!0:r==="pan-x"?a=n>o:r==="pan-y"&&(a=o>n)),a?i.preventDefault():pi("track")}}function pe(i,e,t){return Rr[e]?(Wu(i,e,t),!0):!1}function Wu(i,e,t){const r=Rr[e],a=r.deps,o=r.name;let n=i[hr];n||(i[hr]=n={});for(let s=0,l,d;s<a.length;s++)l=a[s],!(Fu&&Fn(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&i.addEventListener(l,qu,void 0),d[o]=(d[o]||0)+1,d._count=(d._count||0)+1);i.addEventListener(e,t),r.touchAction&&Hn(i,r.touchAction)}function Fr(i){Me.push(i),i.emits.forEach(e=>{Rr[e]=i})}function Yu(i){for(let e=0,t;e<Me.length;e++){t=Me[e];for(let r=0,a;r<t.emits.length;r++)if(a=t.emits[r],a===i)return t}return null}function Hn(i,e){Rn&&i instanceof HTMLElement&&ui.run(()=>{i.style.touchAction=e}),i[cr]=e}function $r(i,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,Mu(i).dispatchEvent(r),r.defaultPrevented){const a=t.preventer||t.sourceEvent;a&&a.preventDefault&&a.preventDefault()}}function pi(i){const e=Yu(i);e.info&&(e.info.prevent=!0)}Fr({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Ge(this.info)},mousedown(i){if(!Ne(i))return;const e=Te(i),t=this,r=o=>{Ne(o)||(mt("up",e,o),Ge(t.info))},a=o=>{Ne(o)&&mt("up",e,o),Ge(t.info)};$n(this.info,r,a),mt("down",e,i)},touchstart(i){mt("down",Te(i),i.changedTouches[0],i)},touchend(i){mt("up",Te(i),i.changedTouches[0],i)}});function mt(i,e,t,r){e&&$r(e,i,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(a){return pi(a)}})}Fr({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>Nu&&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,Ge(this.info)},mousedown(i){if(!Ne(i))return;const e=Te(i),t=this,r=o=>{const n=o.clientX,s=o.clientY;fo(t.info,n,s)&&(t.info.state=t.info.started?o.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&pi("tap"),t.info.addMove({x:n,y:s}),Ne(o)||(t.info.state="end",Ge(t.info)),e&&Bi(t.info,e,o),t.info.started=!0)},a=o=>{t.info.started&&r(o),Ge(t.info)};$n(this.info,r,a),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=Te(i),t=i.changedTouches[0],r=t.clientX,a=t.clientY;fo(this.info,r,a)&&(this.info.state==="start"&&pi("tap"),this.info.addMove({x:r,y:a}),Bi(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(i){const e=Te(i),t=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Bi(this.info,e,t))}});function fo(i,e,t){if(i.prevent)return!1;if(i.started)return!0;const r=Math.abs(i.x-e),a=Math.abs(i.y-t);return r>=mo||a>=mo}function Bi(i,e,t){if(!e)return;const r=i.moves[i.moves.length-2],a=i.moves[i.moves.length-1],o=a.x-i.x,n=a.y-i.y;let s,l=0;r&&(s=a.x-r.x,l=a.y-r.y),$r(e,"track",{state:i.state,x:t.clientX,y:t.clientY,dx:o,dy:n,ddx:s,ddy:l,sourceEvent:t,hover(){return Uu(t.clientX,t.clientY)}})}Fr({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){Ne(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){Ne(i)&&vo(this.info,i)},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(i){vo(this.info,i.changedTouches[0],i)}});function vo(i,e,t){const r=Math.abs(e.clientX-i.x),a=Math.abs(e.clientY-i.y),o=Te(t||e);!o||$u[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(a)||r<=po&&a<=po||Bu(e))&&(i.prevent||$r(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
|
|
1563
1563
|
* @license
|
|
1564
1564
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1565
1565
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3385,11 +3385,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3385
3385
|
* @license
|
|
3386
3386
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3387
3387
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3388
|
-
*/class
|
|
3388
|
+
*/class Tp{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=es(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
|
|
3389
3389
|
* @license
|
|
3390
3390
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3391
3391
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3392
|
-
*/class
|
|
3392
|
+
*/class Pp{saveFocus(e){this.focusNode=e||ur()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;ur()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),this.focusNode=null}}/**
|
|
3393
3393
|
* @license
|
|
3394
3394
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3395
3395
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3397,7 +3397,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3397
3397
|
* @license
|
|
3398
3398
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3399
3399
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3400
|
-
*/const Dp=i=>class extends ve(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new
|
|
3400
|
+
*/const Dp=i=>class extends ve(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Tp(this),this.__focusTrapController=new Ap(this),this.__focusRestorationController=new Pp}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=!wi();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=ur();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const r=e.ownerDocument;for(;t&&t!==r&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
|
|
3401
3401
|
* @license
|
|
3402
3402
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3403
3403
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -3409,7 +3409,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3409
3409
|
* @license
|
|
3410
3410
|
* Copyright (c) 2024 Vaadin Ltd.
|
|
3411
3411
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3412
|
-
*/function Vp(i,e){let t=null;const r=document.documentElement;function a(){t&&t.disconnect(),t=null}function o(n=!1,s=1){a();const{left:l,top:d,width:c,height:u}=i.getBoundingClientRect();if(n||e(),!c||!u)return;const m=Math.floor(d),p=Math.floor(r.clientWidth-(l+c)),y=Math.floor(r.clientHeight-(d+u)),M=Math.floor(l),D={rootMargin:`${-m}px ${-p}px ${-y}px ${-M}px`,threshold:Math.max(0,Math.min(1,s))||1};let C=!0;function
|
|
3412
|
+
*/function Vp(i,e){let t=null;const r=document.documentElement;function a(){t&&t.disconnect(),t=null}function o(n=!1,s=1){a();const{left:l,top:d,width:c,height:u}=i.getBoundingClientRect();if(n||e(),!c||!u)return;const m=Math.floor(d),p=Math.floor(r.clientWidth-(l+c)),y=Math.floor(r.clientHeight-(d+u)),M=Math.floor(l),D={rootMargin:`${-m}px ${-p}px ${-y}px ${-M}px`,threshold:Math.max(0,Math.min(1,s))||1};let C=!0;function T(H){let R=H[0].intersectionRatio;if(R!==s){if(!C)return o();R===0&&(R=1e-7),o(!1,R)}C=!1}t=new IntersectionObserver(T,D),t.observe(i)}return o(!0),a}/**
|
|
3413
3413
|
* @license
|
|
3414
3414
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3415
3415
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -4170,11 +4170,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4170
4170
|
* @license
|
|
4171
4171
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4172
4172
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4173
|
-
*/g("vaadin-password-field-button",rs,{moduleId:"vaadin-password-field-button-styles"});class
|
|
4173
|
+
*/g("vaadin-password-field-button",rs,{moduleId:"vaadin-password-field-button-styles"});class Tm extends ta(ne(z(I))){static get is(){return"vaadin-password-field-button"}static get template(){return S``}}x(Tm);/**
|
|
4174
4174
|
* @license
|
|
4175
4175
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4176
4176
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4177
|
-
*/const
|
|
4177
|
+
*/const Pm=i=>class extends cs(rt($e(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,`
|
|
4178
4178
|
${e} [slot="input"]::-ms-reveal {
|
|
4179
4179
|
display: none;
|
|
4180
4180
|
}
|
|
@@ -4186,7 +4186,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4186
4186
|
<div part="reveal-button" slot="suffix">
|
|
4187
4187
|
<slot name="reveal"></slot>
|
|
4188
4188
|
</div>
|
|
4189
|
-
`;let Kt;class Dm extends
|
|
4189
|
+
`;let Kt;class Dm extends Pm(fs){static get is(){return"vaadin-password-field"}static get template(){if(!Kt){Kt=super.template.cloneNode(!0);const e=Am.content.querySelector('[part="reveal-button"]');Kt.content.querySelector('[part="input-field"]').appendChild(e)}return Kt}}x(Dm);const Ti=f`
|
|
4190
4190
|
:host {
|
|
4191
4191
|
display: flex;
|
|
4192
4192
|
align-items: center;
|
|
@@ -4270,7 +4270,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4270
4270
|
width: var(--lumo-icon-size-m);
|
|
4271
4271
|
height: var(--lumo-icon-size-m);
|
|
4272
4272
|
}
|
|
4273
|
-
`;g("vaadin-item",
|
|
4273
|
+
`;g("vaadin-item",Ti,{moduleId:"lumo-item"});const vs=f`
|
|
4274
4274
|
:host {
|
|
4275
4275
|
transition: background-color 100ms;
|
|
4276
4276
|
overflow: hidden;
|
|
@@ -4282,7 +4282,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4282
4282
|
:host([focused]:not([disabled])) {
|
|
4283
4283
|
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
4284
4284
|
}
|
|
4285
|
-
`;g("vaadin-combo-box-item",[
|
|
4285
|
+
`;g("vaadin-combo-box-item",[Ti,vs],{moduleId:"lumo-combo-box-item"});/**
|
|
4286
4286
|
* @license
|
|
4287
4287
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
4288
4288
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -4432,11 +4432,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4432
4432
|
* @license
|
|
4433
4433
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4434
4434
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4435
|
-
*/const
|
|
4435
|
+
*/const Pe=class{toString(){return""}};/**
|
|
4436
4436
|
* @license
|
|
4437
4437
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4438
4438
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4439
|
-
*/const Cs=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,r)=>t+r)}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 r=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),r=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(r=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,r));const a=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!a||e!==a.index)return;const o=a.getBoundingClientRect(),n=this.getBoundingClientRect(),s=o.bottom-n.bottom+this._viewportTotalPaddingBottom;s>0&&(this.scrollTop+=s)}_isItemSelected(e,t,r){return e instanceof
|
|
4439
|
+
*/const Cs=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,r)=>t+r)}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 r=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),r=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(r=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,r));const a=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!a||e!==a.index)return;const o=a.getBoundingClientRect(),n=this.getBoundingClientRect(),s=o.bottom-n.bottom+this._viewportTotalPaddingBottom;s>0&&(this.scrollTop+=s)}_isItemSelected(e,t,r){return e instanceof Pe?!1:r&&e!==void 0&&t!==void 0?fi(r,e)===fi(r,t):e===t}__initVirtualizer(){this.__virtualizer=new Fm({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 r=this.items[t],a=this.focusedIndex,o=this._isItemSelected(r,this.selectedItem,this.itemIdPath);e.setProperties({item:r,index:t,label:this.getItemLabel(r),selected:o,renderer:this.renderer,focused:!this.loading&&a===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(r):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",o.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),r instanceof Pe&&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,r=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||r&&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}};/**
|
|
4440
4440
|
* @license
|
|
4441
4441
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4442
4442
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -4487,15 +4487,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4487
4487
|
* @license
|
|
4488
4488
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4489
4489
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4490
|
-
*/const Ss=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 Hm(this,{placeholder:new
|
|
4490
|
+
*/const Ss=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 Hm(this,{placeholder:new Pe,isPlaceholder:e=>e instanceof Pe,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 r=this.__getItemIndexByValue(this.filteredItems,t);(r<0||!this._getItemLabel(this.filteredItems[r]))&&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`")}}};/**
|
|
4491
4491
|
* @license
|
|
4492
4492
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4493
4493
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4494
|
-
*/function
|
|
4494
|
+
*/function Pi(i){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(i);return}i.querySelector("template")&&console.warn(`WARNING: <template> inside <${i.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
|
|
4495
4495
|
* @license
|
|
4496
4496
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4497
4497
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4498
|
-
*/function ko(i){return i!=null}function Eo(i,e){return i.findIndex(t=>t instanceof Te?!1:e(t))}const Is=i=>class extends $t(ve(Gr($e(Fe(Nt(rt(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),Ti(this),this.addController(new ms(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,r){super._propertiesChanged(e,t,r),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const r=this._overlayElement;r.renderer=a=>{a.innerHTML||a.appendChild(t)},r.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,r,a,o,n,s,l,d,c){if(e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?t:[],opened:r,loading:a,selectedItem:o,itemIdPath:n,focusedIndex:s,renderer:l,theme:d,itemClassNameGenerator:c}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(u){}}_openedOrItemsChanged(e,t,r,a){this._overlayOpened=e&&(a||r||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&qr(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const r=this._getItemElements().find(a=>a.index===e);r?t.setAttribute("aria-activedescendant",r.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!_r&&this.inputElement&&this.inputElement.focus():this._onClosed();const r=this._nativeInput;r&&(r.setAttribute("aria-expanded",!!e),e?r.setAttribute("aria-controls",this._scroller.id):r.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?fi(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?fi(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{_r&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const r=this._inputElementValue;this._lastCustomValue=r;const a=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(a),a.defaultPrevented||(this.value=r)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,r={};this.filter===t?this._filterChanged(this.filter):r.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(r.opened=!0),this.setProperties(r)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(ko(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(r=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),r=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&r===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const r=t?t[this._focusedIndex]:null,a=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&a>=0&&(this.selectedItem=e[a]);const o=this.__getItemIndexByValue(e,this._getItemValue(r));o>-1?this._focusedIndex=o: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||!ko(t)?-1:Eo(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Eo(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Te)&&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(wi()){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
|
+
*/function ko(i){return i!=null}function Eo(i,e){return i.findIndex(t=>t instanceof Pe?!1:e(t))}const Is=i=>class extends $t(ve(Gr($e(Fe(Nt(rt(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),Pi(this),this.addController(new ms(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,r){super._propertiesChanged(e,t,r),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const r=this._overlayElement;r.renderer=a=>{a.innerHTML||a.appendChild(t)},r.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,r,a,o,n,s,l,d,c){if(e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?t:[],opened:r,loading:a,selectedItem:o,itemIdPath:n,focusedIndex:s,renderer:l,theme:d,itemClassNameGenerator:c}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(u){}}_openedOrItemsChanged(e,t,r,a){this._overlayOpened=e&&(a||r||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&qr(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const r=this._getItemElements().find(a=>a.index===e);r?t.setAttribute("aria-activedescendant",r.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!_r&&this.inputElement&&this.inputElement.focus():this._onClosed();const r=this._nativeInput;r&&(r.setAttribute("aria-expanded",!!e),e?r.setAttribute("aria-controls",this._scroller.id):r.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?fi(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?fi(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{_r&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const r=this._inputElementValue;this._lastCustomValue=r;const a=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(a),a.defaultPrevented||(this.value=r)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,r={};this.filter===t?this._filterChanged(this.filter):r.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(r.opened=!0),this.setProperties(r)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(ko(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(r=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),r=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&r===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const r=t?t[this._focusedIndex]:null,a=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&a>=0&&(this.selectedItem=e[a]);const o=this.__getItemIndexByValue(e,this._getItemValue(r));o>-1?this._focusedIndex=o: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||!ko(t)?-1:Eo(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Eo(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Pe)&&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(wi()){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())}};/**
|
|
4499
4499
|
* @license
|
|
4500
4500
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4501
4501
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -4648,7 +4648,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4648
4648
|
cursor: default;
|
|
4649
4649
|
}
|
|
4650
4650
|
}
|
|
4651
|
-
`;g("vaadin-multi-select-combo-box-item",[
|
|
4651
|
+
`;g("vaadin-multi-select-combo-box-item",[Ti,vs,jm],{moduleId:"lumo-multi-select-combo-box-item"});g("vaadin-multi-select-combo-box-overlay",[at,ki,gs,_s,bs,f`
|
|
4652
4652
|
:host {
|
|
4653
4653
|
--_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
4654
4654
|
--_vaadin-multi-select-combo-box-items-container-border-style: solid;
|
|
@@ -4829,7 +4829,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4829
4829
|
<div id="selector">
|
|
4830
4830
|
<slot></slot>
|
|
4831
4831
|
</div>
|
|
4832
|
-
`}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,r){return e instanceof
|
|
4832
|
+
`}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,r){return e instanceof Pe||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,r)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}x(Jm);/**
|
|
4833
4833
|
* @license
|
|
4834
4834
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4835
4835
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -4851,11 +4851,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4851
4851
|
no-vertical-overlap
|
|
4852
4852
|
restore-focus-node="[[inputElement]]"
|
|
4853
4853
|
></vaadin-multi-select-combo-box-overlay>
|
|
4854
|
-
`}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(r=>this._comboBox._findIndex(r,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
|
|
4854
|
+
`}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(r=>this._comboBox._findIndex(r,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 Pe||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()}}x(Zm);/**
|
|
4855
4855
|
* @license
|
|
4856
4856
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4857
4857
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4858
|
-
*/const Qt=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),
|
|
4858
|
+
*/const Qt=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),Ts=j(i=>class extends i{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),Qt.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,Qt.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),Qt.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&Qt.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
|
|
4859
4859
|
* @license
|
|
4860
4860
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4861
4861
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -4897,7 +4897,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4897
4897
|
:host([auto-expand-horizontally]) [class$='container'] {
|
|
4898
4898
|
width: auto;
|
|
4899
4899
|
}
|
|
4900
|
-
`;g("vaadin-multi-select-combo-box",[Ii,ef],{moduleId:"vaadin-multi-select-combo-box-styles"});class tf extends
|
|
4900
|
+
`;g("vaadin-multi-select-combo-box",[Ii,ef],{moduleId:"vaadin-multi-select-combo-box-styles"});class tf extends Ts(Si(z(se(I)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return S`
|
|
4901
4901
|
<div class="vaadin-multi-select-combo-box-container">
|
|
4902
4902
|
<div part="label">
|
|
4903
4903
|
<slot name="label"></slot>
|
|
@@ -4973,7 +4973,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4973
4973
|
color: transparent !important;
|
|
4974
4974
|
forced-color-adjust: none;
|
|
4975
4975
|
}
|
|
4976
|
-
`]}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 zt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Lt(this.inputElement,this._labelController)),this._tooltipController=new xe(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 ee(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(),
|
|
4976
|
+
`]}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 zt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Lt(this.inputElement,this._labelController)),this._tooltipController=new xe(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 ee(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(),Pi(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),ei(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,r){if(r&&e){for(let a=0;a<t.length;a++)if(t[a]&&t[a][r]===e[r])return a;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,r){const a=t?"selected":"deselected",o=this.i18n.total.replace("{count}",r||0);ei(`${e} ${this.i18n[a]} ${o}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const r=this._getItemLabel(e);this.__announceItem(r,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],r=this._findIndex(e,t,this.itemIdPath),a=this._getItemLabel(e);let o=!1;if(r!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===a.toLowerCase()){this.__clearInternalValue();return}t.splice(r,1)}else t.push(e),o=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(a,o,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,r){e?r||(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 r=this._getItemLabel(e);return t.label=r,t.setAttribute("title",r),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",a=>this._onItemRemoved(a)),t.addEventListener("mousedown",a=>this._preventBlur(a)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const r=getComputedStyle(e),a=e.clientWidth+parseInt(r.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",a}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,r=parseInt(getComputedStyle(this.inputElement).flexBasis);let a=t-r;e.length>1&&(a-=this.__getOverflowWidth());const o=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let d=e.length-1,c=null;d>=0;d--){const u=this.__createChip(e[d]);this.insertBefore(u,c),c=u,n.unshift(u)}const s=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<r){for(;n.length>1;){n.pop().remove(),s.unshift(e.pop());const d=s.length>0?r+this.__getOverflowWidth():r;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=d)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(o,a)}px`)}this._overflowItems=s;return}for(let n=e.length-1,s=null;n>=0;n--){const l=this.__createChip(e[n]);if(this.insertBefore(l,s),!this.autoExpandVertically&&this.$.chips.clientWidth>a)if(s===null)l.style.maxWidth=`${Math.max(o,a)}px`;else{l.remove();break}e.pop(),s=l}this._overflowItems=e}__updateOverflowChip(e,t,r,a){if(e){const o=t.length;e.label=`${o}`,e.setAttribute("count",`${o}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",o===0),e.disabled=r,e.readonly=a}}_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 r=this._focusedChipIndex;r!==-1&&t.preventDefault();let a;this.__isRTL?r===e.length-1?a=-1:r>-1&&(a=r+1):r===-1?a=e.length-1:r>0&&(a=r-1),a!==void 0&&(this._focusedChipIndex=a)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let a;this.__isRTL?r===-1?a=e.length-1:r>0&&(a=r-1):r===e.length-1?a=-1:r>-1&&(a=r+1),a!==void 0&&(this._focusedChipIndex=a)}_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 r=this._chips;if(r.forEach((a,o)=>{a.toggleAttribute("focused",o===e)}),e>-1){const a=r[e].item,o=this._getItemLabel(a);ei(`${o} ${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()}}x(tf);g("vaadin-notification-card",f`
|
|
4977
4977
|
:host {
|
|
4978
4978
|
position: relative;
|
|
4979
4979
|
margin: var(--lumo-space-s);
|
|
@@ -5291,7 +5291,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5291
5291
|
}
|
|
5292
5292
|
</style>
|
|
5293
5293
|
<vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
|
|
5294
|
-
`}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 rf(e)?be._createAndShowNotification(r=>{Zo(e,r)},t):be._createAndShowNotification(r=>{r.innerText=e},t)}static _createAndShowNotification(e,t){const r=document.createElement(be.is);return t&&Number.isFinite(t.duration)&&(r.duration=t.duration),t&&t.position&&(r.position=t.position),t&&t.theme&&r.setAttribute("theme",t.theme),r.renderer=e,document.body.appendChild(r),r.opened=!0,r.addEventListener("opened-changed",a=>{a.detail.value||r.remove()}),r}get _container(){return be._container||(be._container=document.createElement("vaadin-notification-container"),document.body.appendChild(be._container)),be._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),
|
|
5294
|
+
`}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 rf(e)?be._createAndShowNotification(r=>{Zo(e,r)},t):be._createAndShowNotification(r=>{r.innerText=e},t)}static _createAndShowNotification(e,t){const r=document.createElement(be.is);return t&&Number.isFinite(t.duration)&&(r.duration=t.duration),t&&t.position&&(r.position=t.position),t&&t.theme&&r.setAttribute("theme",t.theme),r.renderer=e,document.body.appendChild(r),r.opened=!0,r.addEventListener("opened-changed",a=>{a.detail.value||r.remove()}),r}get _container(){return be._container||(be._container=document.createElement("vaadin-notification-container"),document.body.appendChild(be._container)),be._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Pi(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,r){if(!r)return;const a=this._oldRenderer!==e;this._oldRenderer=e,a&&(r.innerHTML="",delete r._$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)))}}x(af);x(of);x(be);const Ps=f`
|
|
5295
5295
|
:host {
|
|
5296
5296
|
-webkit-tap-highlight-color: transparent;
|
|
5297
5297
|
--_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
|
|
@@ -5305,11 +5305,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5305
5305
|
margin: var(--lumo-space-s) var(--lumo-border-radius-m);
|
|
5306
5306
|
background-color: var(--lumo-contrast-10pct);
|
|
5307
5307
|
}
|
|
5308
|
-
`;g("vaadin-list-box",
|
|
5308
|
+
`;g("vaadin-list-box",Ps,{moduleId:"lumo-list-box"});/**
|
|
5309
5309
|
* @license
|
|
5310
5310
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5311
5311
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5312
|
-
*/g("vaadin-select-item",
|
|
5312
|
+
*/g("vaadin-select-item",Ti,{moduleId:"lumo-select-item"});g("vaadin-select-list-box",Ps,{moduleId:"lumo-select-list-box"});const nf=f`
|
|
5313
5313
|
:host(:not([theme*='align'])) ::slotted([slot='value']) {
|
|
5314
5314
|
text-align: start;
|
|
5315
5315
|
}
|
|
@@ -5634,7 +5634,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5634
5634
|
<div class="sr-only">
|
|
5635
5635
|
<slot name="sr-label"></slot>
|
|
5636
5636
|
</div>
|
|
5637
|
-
`}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),
|
|
5637
|
+
`}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Pi(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}x(yf);const Vs=f`
|
|
5638
5638
|
/* Optical centering */
|
|
5639
5639
|
:host::before,
|
|
5640
5640
|
:host::after {
|
|
@@ -6029,7 +6029,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6029
6029
|
* @license
|
|
6030
6030
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
6031
6031
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6032
|
-
*/class
|
|
6032
|
+
*/class Tf extends If(se(gi(ve(I)))){static get template(){return S`
|
|
6033
6033
|
<style>
|
|
6034
6034
|
:host,
|
|
6035
6035
|
[hidden] {
|
|
@@ -6056,7 +6056,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6056
6056
|
<slot name="reject-button"></slot>
|
|
6057
6057
|
<slot name="confirm-button"></slot>
|
|
6058
6058
|
</div>
|
|
6059
|
-
`}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}x(
|
|
6059
|
+
`}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}x(Tf);g("vaadin-tab",f`
|
|
6060
6060
|
:host {
|
|
6061
6061
|
box-sizing: border-box;
|
|
6062
6062
|
padding: 0.5rem 0.75rem;
|
|
@@ -6293,7 +6293,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6293
6293
|
* @license
|
|
6294
6294
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6295
6295
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6296
|
-
*/const
|
|
6296
|
+
*/const Pf=i=>class extends As(i){ready(){super.ready(),this.setAttribute("role","tab")}_onKeyUp(e){const t=this.hasAttribute("active");if(super._onKeyUp(e),t){const r=this.querySelector("a");r&&r.click()}}};/**
|
|
6297
6297
|
* @license
|
|
6298
6298
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6299
6299
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -6320,7 +6320,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6320
6320
|
* @license
|
|
6321
6321
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6322
6322
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6323
|
-
*/g("vaadin-tab",Af,{moduleId:"vaadin-tab-styles"});class Df extends se(z(
|
|
6323
|
+
*/g("vaadin-tab",Af,{moduleId:"vaadin-tab-styles"});class Df extends se(z(Pf(ve(I)))){static get template(){return S`
|
|
6324
6324
|
<slot></slot>
|
|
6325
6325
|
<slot name="tooltip"></slot>
|
|
6326
6326
|
`}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new xe(this),this.addController(this._tooltipController)}}x(Df);g("vaadin-tabs",f`
|
|
@@ -6565,7 +6565,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6565
6565
|
* @license
|
|
6566
6566
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6567
6567
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6568
|
-
*/const Of=i=>class extends
|
|
6568
|
+
*/const Of=i=>class extends Ts(Os(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"),Jr(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"),r=this._scrollerElement.getBoundingClientRect(),a=[...this.items].reverse().find(s=>this._isItemVisible(s,e,t,r)).getBoundingClientRect(),o=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let n;if(this.__isRTL){const s=r.right-o;n=a.right-s}else{const s=r.left+o;n=a.left-s}-this.__direction*n<1&&(n=-this.__direction*(this._scrollOffset-o)),this._scroll(n)}_scrollBack(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),r=this._scrollerElement.getBoundingClientRect(),a=this.items.find(s=>this._isItemVisible(s,e,t,r)).getBoundingClientRect(),o=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let n;if(this.__isRTL){const s=r.left+o;n=a.left-s}else{const s=r.right-o;n=a.right-s}this.__direction*n<1&&(n=this.__direction*(this._scrollOffset-o)),this._scroll(n)}_isItemVisible(e,t,r,a){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const o=this.__isRTL?r:t,n=this.__isRTL?t:r,s=a.right-o,l=a.left+n,d=e.getBoundingClientRect();return s>Math.floor(d.left)&&l<Math.ceil(d.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:Ds(this._scrollerElement,this.getAttribute("dir")),t=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let r=Math.floor(e)>1?"start":"";Math.ceil(e)<Math.ceil(t-this._scrollOffset)&&(r+=" end"),this.__direction===1&&(r=r.replace(/start|end/giu,a=>a==="start"?"end":"start")),r?this.setAttribute("overflow",r.trim()):this.removeAttribute("overflow")}};/**
|
|
6569
6569
|
* @license
|
|
6570
6570
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6571
6571
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -6657,7 +6657,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6657
6657
|
</div>
|
|
6658
6658
|
|
|
6659
6659
|
<div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
|
|
6660
|
-
`}static get is(){return"vaadin-tabs"}}x(Mf);const Nf=":host{display:block;height:100%}",zf=Nf,Ms=class{constructor(i){h.registerInstance(this,i),this.registrationWidgetLoaded=h.createEvent(this,"registrationWidgetLoaded"),this.handleClick=e=>{this.emitOnClick&&(e.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.noValidation=!1,this.clientStyling="",this.clientStylingUrl="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60,this.haspostalcodelookup=void 0,this.postalcodelength=void 0,this.addresses=[],this.ignoreCountry=!1,this.enableSouthAfricanMode=void 0,this.enableManualDateInput=!1,this.pinAttemptsExceeded=void 0,this.mbSource=void 0}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(i,e){i!==e&&this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.translationUrl&&Gs(this.translationUrl)}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentDidLoad(){this.handleClientStyling(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}renderInput(){var i;switch((i=this.type)===null||i===void 0?void 0:i.toLowerCase()){case"text":return this.haspostalcodelookup&&this.name==="PostalCode"?h.h("postalcode-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,postalcodelength:this.postalcodelength,addresses:this.addresses,ignoreCountry:this.ignoreCountry,"mb-source":this.mbSource}):h.h("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,haspostalcodelookup:this.haspostalcodelookup,"enable-south-african-mode":this.enableSouthAfricanMode,"mb-source":this.mbSource});case"email":return h.h("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"number":return h.h("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"checkbox":return h.h("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,"mb-source":this.mbSource});case"checkboxgroup":return h.h("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"mb-source":this.mbSource});case"togglecheckbox":return h.h("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick,"mb-source":this.mbSource});case"datetime":return h.h("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick,"enable-south-african-mode":this.enableSouthAfricanMode,"enable-manual-date-input":this.enableManualDateInput,"mb-source":this.mbSource});case"password":return h.h("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,hidePasswordComplexity:this.hidePasswordComplexity,"no-validation":this.noValidation,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"enable-south-african-mode":this.enableSouthAfricanMode,"mb-source":this.mbSource});case"radio":return h.h("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,"mb-source":this.mbSource});case"tel":return h.h("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"dropdown":return h.h("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"twofa":return h.h("twofa-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,destination:this.twofaDestination,"resend-interval-seconds":this.twofaResendIntervalSeconds,"enable-south-african-mode":this.enableSouthAfricanMode,"pin-attempts-exceeded":this.pinAttemptsExceeded,"mb-source":this.mbSource});case"label":if(this.displayName&&this.displayName.trim()!=="")return h.h("div",{class:"general-non-input",innerHTML:this.displayName});h.h("p",null,"No content in label type");default:return h.h("p",null,"The ",this.type," input type is not valid")}}render(){return h.h(h.Host,{key:"12e3e43442ba3fd4a47bbc5c05456eb019405b1e",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}get host(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};Ms.style=zf;const Lf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:"Roboto";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emw--color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.number__tooltip.visible{opacity:1}',Rf=Lf,Ns=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return b("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.patternMismatch){const t=(i=this.validation.custom.find(a=>a.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(a=>a.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${t}`,this.language)?b(`${t}`,this.language):r}}renderTooltip(){return this.showTooltip?h.h("div",{class:`number__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"bd11140dc6c8ddb6b800d4fe6544df733c5157c4",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"c8318c687bc471fc225b9aba52686e38ecb400de",class:"number__wrapper--flex"},h.h("label",{key:"7eaf64057ef71b07a0defc1e372fd85baab2bd68",class:`number__label ${this.validation.mandatory?"number__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"99f4151f50a7fb0abb9a8e53bacc8c8bd303d659",class:"number__wrapper--relative"},this.tooltip&&h.h("img",{key:"875d6284697dc06ac05c682509856faeade3d8be",class:"number__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"f1f563567cde4a744c68e27ab91a3d795f596be6",ref:e=>this.inputReference=e,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${i}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"0226f04a059fd8763822483de42bd7e647040bf3",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ns.style=Rf;const Ff=`*,
|
|
6660
|
+
`}static get is(){return"vaadin-tabs"}}x(Mf);const Nf=":host{display:block;height:100%}",zf=Nf,Ms=class{constructor(i){h.registerInstance(this,i),this.registrationWidgetLoaded=h.createEvent(this,"registrationWidgetLoaded"),this.handleClick=e=>{this.emitOnClick&&(e.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.noValidation=!1,this.clientStyling="",this.clientStylingUrl="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60,this.haspostalcodelookup=void 0,this.postalcodelength=void 0,this.addresses=[],this.ignoreCountry=!1,this.enableSouthAfricanMode=void 0,this.enableManualDateInput=!1,this.pinAttemptsExceeded=void 0,this.mbSource=void 0,this.enableCustomRegexValidation=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(i,e){i!==e&&this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.translationUrl&&Gs(this.translationUrl)}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentDidLoad(){this.handleClientStyling(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}renderInput(){var i;switch((i=this.type)===null||i===void 0?void 0:i.toLowerCase()){case"text":return this.haspostalcodelookup&&this.name==="PostalCode"?h.h("postalcode-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,postalcodelength:this.postalcodelength,addresses:this.addresses,ignoreCountry:this.ignoreCountry,"mb-source":this.mbSource}):h.h("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,haspostalcodelookup:this.haspostalcodelookup,"enable-south-african-mode":this.enableSouthAfricanMode,"mb-source":this.mbSource});case"email":return h.h("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"number":return h.h("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"checkbox":return h.h("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,"mb-source":this.mbSource});case"checkboxgroup":return h.h("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"mb-source":this.mbSource});case"togglecheckbox":return h.h("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick,"mb-source":this.mbSource});case"datetime":return h.h("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick,"enable-south-african-mode":this.enableSouthAfricanMode,"enable-manual-date-input":this.enableManualDateInput,"mb-source":this.mbSource});case"password":return h.h("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,hidePasswordComplexity:this.hidePasswordComplexity,"no-validation":this.noValidation,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"enable-south-african-mode":this.enableSouthAfricanMode,"mb-source":this.mbSource});case"radio":return h.h("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,"mb-source":this.mbSource});case"tel":return h.h("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource,"enable-custom-regex-validation":this.enableCustomRegexValidation});case"dropdown":return h.h("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"twofa":return h.h("twofa-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,destination:this.twofaDestination,"resend-interval-seconds":this.twofaResendIntervalSeconds,"enable-south-african-mode":this.enableSouthAfricanMode,"pin-attempts-exceeded":this.pinAttemptsExceeded,"mb-source":this.mbSource});case"label":if(this.displayName&&this.displayName.trim()!=="")return h.h("div",{class:"general-non-input",innerHTML:this.displayName});h.h("p",null,"No content in label type");default:return h.h("p",null,"The ",this.type," input type is not valid")}}render(){return h.h(h.Host,{key:"a7ad2847def0556c185560cd1ca1b07c387026a7",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}get host(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};Ms.style=zf;const Lf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:"Roboto";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emw--color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.number__tooltip.visible{opacity:1}',Rf=Lf,Ns=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return b("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.patternMismatch){const t=(i=this.validation.custom.find(a=>a.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(a=>a.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${t}`,this.language)?b(`${t}`,this.language):r}}renderTooltip(){return this.showTooltip?h.h("div",{class:`number__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"bd11140dc6c8ddb6b800d4fe6544df733c5157c4",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"c8318c687bc471fc225b9aba52686e38ecb400de",class:"number__wrapper--flex"},h.h("label",{key:"7eaf64057ef71b07a0defc1e372fd85baab2bd68",class:`number__label ${this.validation.mandatory?"number__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"99f4151f50a7fb0abb9a8e53bacc8c8bd303d659",class:"number__wrapper--relative"},this.tooltip&&h.h("img",{key:"875d6284697dc06ac05c682509856faeade3d8be",class:"number__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"f1f563567cde4a744c68e27ab91a3d795f596be6",ref:e=>this.inputReference=e,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${i}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"0226f04a059fd8763822483de42bd7e647040bf3",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ns.style=Rf;const Ff=`*,
|
|
6661
6661
|
*::before,
|
|
6662
6662
|
*::after {
|
|
6663
6663
|
padding: 0;
|
|
@@ -6901,7 +6901,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6901
6901
|
|
|
6902
6902
|
.customreg-password__complexity::after {
|
|
6903
6903
|
display: none;
|
|
6904
|
-
}`,$f=Ff,zs=class{constructor(i){h.registerInstance(this,i),this.sendOriginalValidityState=h.createEvent(this,"sendOriginalValidityState"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=e=>{this.value=e.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleRevealField=e=>{e.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=e=>{this.value=e.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.noValidation=!1,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.mbSource=void 0,this.isValid=void 0,this.errorMessage=void 0,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}originalValidityChangedHandler(i){this.isDuplicateInput&&(i.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,this.value!==""&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.element.shadowRoot.querySelector("input"),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",i=>{this.handleRevealField(i)}),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(i){if(this.noValidation){this.passwordComplexity=[];return}this.passwordComplexity=this.validation.custom.filter(e=>e.rule==="regex").map(e=>{const t=new RegExp(e.pattern);let r=!1;return i&&(r=t.test(i)),{rule:e.displayName,ruleKey:e.errorKey,passed:r}})}setValidity(){var i,e;return this.noValidation?!0:this.isDuplicateInput&&this.duplicateInputValue!==this.value?!1:!((i=this.passwordComplexity)===null||i===void 0)&&i.every(t=>t.passed)?(e=this.inputReference)===null||e===void 0?void 0:e.validity.valid:!1}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r,a;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return b("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return b("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){const o=(i=this.validation.custom.find(s=>s.rule==="regex"))===null||i===void 0?void 0:i.errorKey,n=(e=this.validation.custom.find(s=>s.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${o}`,this.language)?b(`${o}`,this.language):n}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const o=(t=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,n=(r=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return b(`${o}`,this.language)?b(`${o}`,this.language):n}if(!(!((a=this.passwordComplexity)===null||a===void 0)&&a.every(o=>o.passed))&&!this.showPopup)return b("invalidPassword",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`password__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}renderComplexityPopup(){const i=this.passwordComplexity.length,t=this.passwordComplexity.filter(a=>a.passed).length/i,r=this.passwordComplexity.every(a=>a.passed);return h.h("div",{class:`password__complexity ${this.showPopup?"":"password__complexity--hidden"}`},h.h("div",{class:"password__complexity--strength"},h.h("p",{class:"password__complexity--text"},b("passwordStrength",this.language)," ",h.h("span",{class:"password__complexity--text-bold"},b(`${r?"passwordStrengthStrong":"passwordStrengthWeak"}`,this.language))),h.h("meter",{value:t,min:"0",max:"1"})),h.h("div",null,this.passwordComplexity.map((a,o)=>h.h("div",{key:o},h.h("input",{class:"password__complexity--checkbox",type:"checkbox",checked:a.passed,disabled:!0}),h.h("span",null,b(`${a.ruleKey}`,this.language)?b(`${a.ruleKey}`,this.language):a.rule)))))}renderCustomComplexityPopup(){return h.h("div",{class:`customreg-password__complexity ${this.showPopup?"":"customreg-password__complexity--hidden"}`},h.h("p",{class:"customreg-password__complexity--title"},b("PasswordMustContain",this.language)),h.h("div",{class:"customreg-password__complexity--rules"},this.passwordComplexity.map((i,e)=>h.h("div",{class:"customreg-password__complexity--rule",key:e},h.h("span",{class:`customreg-password__complexity--icon ${i.passed?J.PASSWORD_COMPLEXITY_PASSED:J.PASSWORD_COMPLEXITY_FAILED}`},i.passed?_a.PASSED:_a.FAILED),h.h("span",null,b(i.ruleKey,this.language)||i.rule)))))}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"18213d251639938165f3e4ad58bdc904fb953fe2",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"092c431b178682d0006cf6ad5c14b0a7e6fb5569",class:"password__wrapper--flex"},h.h("label",{key:"64c101b7d70305ecf09735234d902a6b33823551",class:`password__label ${this.validation.mandatory?"password__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"189929eefa1caf71a1be39f0d663eef914d241d5",class:"password__wrapper--relative"},this.tooltip&&h.h("img",{key:"95ee0d824b5be14ab4e62fc0b5f1731fe6ca5775",class:"password__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("vaadin-password-field",{key:"bf85dde83305233c566b1c50d0286548ba0f48a5",type:"password",id:`${this.name}__input`,class:`password__input ${i}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!this.noValidation&&h.h("small",{key:"3acbe164ff532bcfcd9e4a237a6f352df0cfdc2d",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput&&(this.enableSouthAfricanMode?this.renderCustomComplexityPopup():this.renderComplexityPopup()))}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};zs.style=$f;const Bf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.input__text-wrapper{position:relative}.input__addresses-container{position:relative;left:0;width:100%;background:var(--emw--color-white);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);max-height:200px;overflow-y:auto;z-index:999;margin-top:4px}.input__addresses-container .options{padding:4px 0}.input__addresses-container .option{padding:8px 12px;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6);font-size:14px;line-height:1.4;transition:background-color 0.2s ease;color:var(--emw--registration-gray-800, #333)}.input__addresses-container .option:last-child{border-bottom:none}.input__addresses-container .option:hover{background-color:var(--emw--registration-lightgray-100, #f8f9fa)}.input__addresses-container .option:active{background-color:var(--emw--registration-lightgray-200, #e9ecef)}.input__addresses-container::-webkit-scrollbar{width:6px}.input__addresses-container::-webkit-scrollbar-track{background:var(--emw--registration-lightgray-150, #f1f1f1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb{background:var(--emw--registration-lightgray-300, #c1c1c1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb:hover{background:var(--emw--registration-lightgray-400, #a8a8a8)}.postalcode__no-results-message{color:var(--emw--color-error, var(--emw--color-red, #ed0909));margin-top:10px}.address__manual-input-msg{text-decoration:underline;margin-top:10px;cursor:pointer;transition:opacity 0.3s ease}.address__manual-input-msg:active{opacity:0.7}.postalcode__loading-spinner{display:flex;align-items:center;gap:8px;padding:12px;color:var(--emw--registration-gray-600, #666);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-top:none;background-color:var(--emw--registration-lightgray-50, #f9f9f9)}.loading-spinner{width:14px;height:14px;border:2px solid var(--emw--color-gray-100, #E6E6E6);border-top:2px solid var(--emw--registration-gray-600, #666);border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}',Hf=Bf,Ls=class{constructor(i){h.registerInstance(this,i),this.sendAddressValue=h.createEvent(this,"sendAddressValue"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.hasManualAddressBeenTriggered=!1,this.touched=!1,this.maxPostalCodeLength="10",this.handleInput=e=>{const r=e.target.value.toUpperCase();this.value=r,this.touched=!0,this.currentPostalCode=r,this.showNoResultsMessage=!1,this.inputReference&&(this.inputReference.value=r),this.value.length<this.postalcodelength&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),(this.value===""||this.value.length<1)&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.value.length>=this.postalcodelength&&(sessionStorage.setItem("currentPostalCode",this.value),this.showNoResultsMessage=!1,this.addresses&&this.addresses.length>0&&(this.openAddressDropdown=!0));const a=this.isValid;this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),a!==this.isValid&&this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},300)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.showNoResultsMessage=!1,this.openAddressDropdown||(this.showNoResultsMessage=!1)},this.handleFocus=()=>{this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&(this.openAddressDropdown=!0)},this.handlePostalCode=(e,t)=>{e.stopPropagation();const r=`${t.number}`.trim(),a=`${t.street}`.trim(),o=`${t.city}`.trim();this.sendAddressValue.emit({city:o,address1:r,address2:a}),this.value=this.currentPostalCode.toLocaleUpperCase(),this.touched=!0,this.isValid=!0,this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.isFetchingAddresses=!1,this.valueHandler({name:this.name,value:this.value}),this.validityStateHandler({valid:!0,name:this.name}),this.valueHandler({name:"address1",value:r}),this.valueHandler({name:"City",value:o}),a&&this.valueHandler({name:"address2",value:a}),this.refreshTrigger++},this.enterAddressManually=()=>{const e=window.targetInputRefs;if(!e)return;const t=[{name:"PostalCode",ref:e.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:e.address1},{name:"address2",ref:e.address2},{name:"City",ref:e.City}],a=[{name:"PostalCode",ref:e.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:e.address1},{name:"City",ref:e.City}].find(n=>{var s;const l=((s=n.ref)===null||s===void 0?void 0:s.value)||"";return n.minLength?l.length===0||l.length<n.minLength:l.length===0}),o=(a==null?void 0:a.ref)||e.address1||e.PostalCode;o.scrollIntoView({behavior:"smooth",block:"center"}),this.hasManualAddressBeenTriggered||(this.hasManualAddressBeenTriggered=!0,t.forEach(n=>{var s;if(n.ref){const l=((s=n.ref.shadowRoot)===null||s===void 0?void 0:s.querySelector("input"))||n.ref;if(l){l.classList.add("pulse-border");const d=()=>{l.classList.remove("pulse-border"),l.removeEventListener("animationend",d)};l.addEventListener("animationend",d)}}})),o.focus()},this.handleOutsideClick=e=>{if(!this.openAddressDropdown)return;const t=e.composedPath?e.composedPath():[],r=t.includes(this.inputReference),a=t.includes(this.addressesDropdownRef),o=t.some(n=>{var s;return n instanceof Element&&((s=n.classList)===null||s===void 0?void 0:s.contains("option"))});!r&&!a&&!o&&(this.openAddressDropdown=!1,this.showNoResultsMessage=!1)},this.name="PostalCode",this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.postalcodelength=void 0,this.addresses=void 0,this.ignoreCountry=!1,this.mbSource=void 0,this.isValid=void 0,this.errorMessage="",this.showTooltip=!1,this.selectedCountryCode="",this.currentPostalCode="",this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.refreshTrigger=0,this.isFetchingAddresses=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value}),i===!0&&!this.value.length&&this.valueHandler({name:this.name,value:this.value})}handleAddresses(i){i&&i.length>0?(this.openAddressDropdown=!0,this.showNoResultsMessage=!1):(this.openAddressDropdown=!1,this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength&&setTimeout(()=>{this.currentPostalCode.length>=this.postalcodelength&&!this.isFetchingAddresses&&(this.showNoResultsMessage=!0)},200)),this.isFetchingAddresses=!1}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleCountryCodeUpdate(i){const{name:e,value:t}=i.detail;this.selectedCountryCode=t,e==="CountryCode"&&(this.resetPostalCodeField(),this.refreshTrigger++)}handleFetchStarted(){this.showNoResultsMessage=!1,this.isFetchingAddresses=!0,this.openAddressDropdown=!1}connectedCallback(){this.validationPattern=this.setPattern()}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.defaultValue&&this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.setValidity(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}setValidity(){if(!this.inputReference)return!1;const i=this.inputReference.validity.valid,e=!this.inputReference.value||this.inputReference.value.match(this.validationPattern)!==null;return i&&e}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(!this.touched)return"";if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong){const{minLength:t,maxLength:r}=this.validation;return t===r?b(de.FIXED_LENGTH,this.language,{values:{length:t}}):b(de.LENGTH,this.language,{values:{minLength:t,maxLength:r}})}if(this.inputReference.value.match(this.validationPattern)==null){const t=(i=this.validation.custom.find(a=>a.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(a=>a.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${t}`,this.language)||r}return""}resetPostalCodeField(){this.value="",this.currentPostalCode="",this.showNoResultsMessage=!1,this.openAddressDropdown=!1,this.isFetchingAddresses=!1,sessionStorage.removeItem("currentPostalCode"),this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name})}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}determineInputValue(){return this.inputReference&&this.name&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.value}render(){var i,e;let t="";this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid");let r=this.selectedCountryCode==="UK"||this.selectedCountryCode==="GB"||this.ignoreCountry,a=((i=this.addresses)===null||i===void 0?void 0:i.length)>0&&this.openAddressDropdown&&r,o=this.showNoResultsMessage&&this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&((e=this.addresses)===null||e===void 0?void 0:e.length)===0&&r,n=this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength;return h.h("div",{key:"f0dda39cf9a02d53213848926908c0cb39d1cd3f",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:s=>this.stylingContainer=s},h.h("div",{key:"5e1c51af264392d2be986e305e6526310f55f40b",class:"text__wrapper--flex"},h.h("label",{key:"c12c45d88bdf42aeb6be505d473ab0f55da2be87",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"7b93a75f19590b445227fa1a64c90fd20c0afd5d",class:"text__wrapper--relative"},this.tooltip&&h.h("img",{key:"504004a13595694307c1e3450b69982150dc55fd",class:"text__tooltip-icon",src:he,alt:"",ref:s=>this.tooltipIconReference=s,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("div",{key:"19de66fd72fd0a6befe3bbaebb6c8f99ec5f850b",class:"input__text-wrapper"},h.h("input",{key:"78cd4229ed5104518b991df0bc6bf527df2ec3e2",name:this.name,id:`${this.name}__input`,value:this.determineInputValue(),type:"text",class:`text__input ${t}`,placeholder:`${this.placeholder}`,ref:s=>this.inputReference=s,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.maxPostalCodeLength,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!r&&h.h("p",{key:"6b9e307d59fb9fed93f4df6c07a091d299844c62",class:"address__manual-input-msg",onClick:()=>this.enterAddressManually()},b("enterIEAddressManually",this.language)),a&&h.h("div",{key:"ecb7892a9a8d967540d8fd013518ae19498fcd48",class:"input__addresses-container",ref:s=>this.addressesDropdownRef=s},h.h("div",{key:"a5ef3f81a85207a821964e23b21aaf783be807cc",class:"options"},this.addresses.map((s,l)=>h.h("div",{key:l,class:"option",onClick:d=>this.handlePostalCode(d,s)},s.number," ",s.street," ",s.city)))),n&&h.h("div",{key:"338c17e484721efb387e608f3ce4416a0e47b8af",class:"postalcode__loading-spinner"},h.h("div",{key:"7638cea4fba975e3a27d4cb00bce217129bd0750",class:"loading-spinner"}),h.h("span",{key:"b59a8a9c3d7ecf209a68717346d1d29062994f79"},b("searchingForAddresses",this.language))),o&&h.h("div",{key:"212a74fed94b3ee089aed5c9afb544966b5f11cd",class:"postalcode__no-results-message"},b("postalLookUpNoAddressFound",this.language))),h.h("small",{key:"4f66e97dd811b9917c92ff4bcbf236817ac57933",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],addresses:["handleAddresses"]}}};Ls.style=Hf;const Uf="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}",qf=Uf,Rs=class{constructor(i){h.registerInstance(this,i),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}validityStateHandler(i){this.sendValidityState.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling()}handleClick(i){this.value=i.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`radio__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("fieldset",{key:"7048de0e37c9541af1c9788e8b46c789ca788c31",class:`radio__fieldset ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("legend",{key:"403b739c966d510740ca59621c094872b93e2cba",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map(i=>h.h("div",{class:"radio__wrapper"},h.h("input",{type:"radio",class:"radio__input",id:`${i.label}__input`,ref:e=>this.inputReference=e,value:i.value,name:this.name,required:this.validation.mandatory,onClick:e=>this.handleClick(e)}),h.h("label",{htmlFor:`${i.label}__input`},i.label))),h.h("small",{key:"46dce1082a6aa9f2a5bdc3e3654c924fcd2a8357",class:"radio__error-message"},this.errorMessage),this.tooltip&&h.h("img",{key:"dfe155a429485b5c891db2943d9115cdc40e169b",class:"radio__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Rs.style=qf;const jf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}',Wf=jf,Fs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.handleComboChange=e=>{this.touched=!0;const t=e.target.value,r=this.options.find(a=>a.value.toLowerCase()===t.toLowerCase());r?this.value=r.value:this.value=t,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=e=>{const t=e.currentTarget;t.opened||(this.touched=!0,this.value=t.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}))},this.handleSelectChange=e=>{this.touched=!0,this.value=e.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i;this.displayedOptions=this.options.map(e=>({label:e.label,value:e.value})),this.isComboBox=((i=this.displayedOptions)===null||i===void 0?void 0:i.length)>6}componentWillLoad(){if(this.action&&!this.options.length&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];return this.getOptions(i).then(e=>{var t;const r=Object.keys(e)[0];this.displayedOptions=e[r].map(a=>({label:a.Name,value:a.Alpha2Code})),this.isComboBox=((t=this.displayedOptions)===null||t===void 0?void 0:t.length)>6})}}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(this.inputReference.value=this.value)),this.isValid=this.setValidity(),!this.isComboBox&&this.vaadinCombo&&this.vaadinCombo.addEventListener("opened-changed",i=>{if(i.detail.value===!0)this.errorMessage="";else{const e=i.currentTarget;this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})}})}getOptions(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(a=>a.json()).then(a=>{t(a)}).catch(a=>{console.error(a),r(a)})})}setValidity(){var i;return!((i=this.validation)===null||i===void 0)&&i.mandatory?!!this.value:!0}setErrorMessage(){var i,e,t;if(!((e=(i=this.inputReference)===null||i===void 0?void 0:i.validity)===null||e===void 0)&&e.valueMissing||!((t=this.vaadinCombo)===null||t===void 0)&&t.invalid)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`select__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){var i,e;let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"eb6c9d7d85546159d44d06a0635f173263edd7d1",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:r=>this.stylingContainer=r},h.h("div",{key:"0fd71c528870966fdb23049b1806a267e9e6ca5c",class:"select__wrapper--flex"},h.h("label",{key:"44aeb4e50ab2f79df06741ff07ac03131c987447",class:"select__label",htmlFor:`${this.name}__input`},this.displayName,h.h("span",{key:"796a83aeadd480a571b6bae035a46138d7b10b24",class:this.validation.mandatory?"select__label--required":""})),h.h("div",{key:"6d7b2d785c6b0bdd05c7444f563b21cedf26ff7c",class:"select__wrapper--relative"},this.tooltip&&h.h("img",{key:"f33e43a9d42e8b8d1cf136374505eeaedcbede26",class:"select__tooltip-icon",src:he,alt:"",ref:r=>this.tooltipIconReference=r,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?h.h("vaadin-combo-box",{name:this.name,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(i=this.validation)===null||i===void 0?void 0:i.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleComboChange,onBlur:this.handleBlur}):h.h("vaadin-select",{name:this.name,popover:!1,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(e=this.validation)===null||e===void 0?void 0:e.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleSelectChange,"no-vertical-overlap":!0,noVerticalOverlap:!0}),h.h("small",{key:"261b3c4abc9b360e6b937d851f8bfc810280a8c6",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Fs.style=Wf;const Yf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden;padding-left:4px}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__wrapper .text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){height:100%;border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}',Gf=Yf,$s=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.setPhoneValue(e.target.value),this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.touched=!0,this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.isValid=void 0,this.errorMessage=void 0,this.showTooltip=!1,this.disablePhonePrefix=!1,this.phoneValue="",this.phoneCodesOptions=void 0}setPhoneValue(i){const e=i.replace(/[^0-9]/g,"");this.phoneValue=e,this.inputReference&&(this.inputReference.value=this.phoneValue)}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i;this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.setPhoneValue((i=this.defaultValue.phone)!==null&&i!==void 0?i:""),this.phoneCodesOptions=[{label:this.prefixValue,value:this.prefixValue}])}componentWillLoad(){if(this.action&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];this.getPhoneCodes(i).then(e=>{this.phoneCodesOptions=e.phoneCodes.map(t=>typeof t=="object"&&t.Prefix?{label:t.Prefix,value:t.Prefix}:{label:t,value:t}),this.disablePhonePrefix=this.phoneCodesOptions.length<=1})}}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.isValidValue(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(a=>a.json()).then(a=>{t(a)}).catch(a=>{console.error(a),r(a)})})}handlePrefixInput(i){this.prefixValue=i.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}isValidValue(){return!this.inputReference||this.validation.mandatory&&(!this.phoneValue||this.phoneValue.trim()==="")?!1:!this.phoneValue||this.phoneValue.trim()===""?!this.validation.mandatory:!(this.validation.minLength&&this.phoneValue.length<this.validation.minLength||this.validation.maxLength&&this.phoneValue.length>this.validation.maxLength||this.validationPattern&&!new RegExp(this.validationPattern).test(this.phoneValue))}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(this.inputReference.validity.patternMismatch){const a=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorKey,o=(e=this.validation.custom.find(n=>n.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${a}`,this.language)?b(`${a}`,this.language):o}const{minLength:t,maxLength:r}=this.validation;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong||t&&this.phoneValue&&this.phoneValue.length<t||r&&this.phoneValue&&this.phoneValue.length>r)return t===r?b(de.FIXED_LENGTH,this.language,{values:{length:t}}):b(de.LENGTH,this.language,{values:{minLength:t,maxLength:r}});if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`tel__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){var i;let e="";return this.touched&&(e=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"9cf9eb751bca1978d8554fffc912ef2039c42e41",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},h.h("div",{key:"cc88d6e9aa7a0f3801fad75e3ca509fbd01b0538",class:"tel__wrapper--flex-label"},h.h("label",{key:"c8a35af4ddd2d4f9751d7f60c9e075ae8eccb441",class:`tel__label ${this.validation.mandatory?"tel__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"73fcdcc25dde1be087ee60062dc5eee2d1e5d29e",class:"tel__wrapper--relative"},this.tooltip&&h.h("img",{key:"56df66fddf599fbafb179c7cd90ea7d58b008ea6",class:"tel__tooltip-icon",src:he,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("div",{key:"20eb5689932c2f71322102229cc7346d18e9bc87",class:`tel__wrapper--flex ${e}`},h.h("vaadin-combo-box",{key:"9ec4142dc84e0022ced7e34248d5f4f8f59c34af",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.disablePhonePrefix,onChange:t=>this.handlePrefixInput(t)}),h.h("input",{key:"c083b17f71de36b84892a8080f776debf1fe7351",type:"tel",ref:t=>this.inputReference=t,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:(i=this.phoneValue)!==null&&i!==void 0?i:"",placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),h.h("small",{key:"2201c2d7b968731042624b265cf535c656c86933",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};$s.style=Gf;const Kf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}',Xf=Kf,Bs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.postalcodelength=5,this.touched=!1,this.handleInput=e=>{const t=e.target,r=this.enableSouthAfricanMode&&(this.name===J.FIRSTNAME_ON_DOCUMENT||this.name===J.LASTNAME_ON_DOCUMENT)?t.value.replace(J.NON_LETTERS_REGEX,""):t.value;r!==t.value&&(t.value=r),this.value=r,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.updateValidationState(),this.emitValueHandler(!0)},500)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.updateValidationState()},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.haspostalcodelookup=void 0,this.enableSouthAfricanMode=void 0,this.mbSource=void 0,this.isValid=void 0,this.errorMessage="",this.showTooltip=!1,this.selectedCountryCode=""}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&this.updateValidationState()),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched&&this.updateValidationState()}handleValidationChange(i){i.detail.field===this.name&&(this.validation=i.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()))}handleCountryCodeUpdate(i){const{name:e,value:t}=i.detail;this.selectedCountryCode=t,e==="CountryCode"&&["address1","address2","City"].includes(this.name)&&(this.value="",this.touched=!1,this.errorMessage="",this.isValid=!1,this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name}))}handleAddressSelection(i){const{city:e,address1:t,address2:r}=i.detail;if(!["address1","address2","City"].includes(this.name))return;let a="";this.name==="address1"?a=t:this.name==="address2"?a=r:this.name==="City"&&(a=e),this.value=a,this.touched=!0,this.updateValidationState()}connectedCallback(){this.validationPattern=this.setPattern()}handleExternalDocUpdate(i){this.name===J.DOCUMENT_NUMBER&&(this.value=i.detail||"",this.touched=!0,this.inputReference&&(this.inputReference.value=this.value),this.sendInputValue.emit({name:this.name,value:this.value}),this.updateValidationState())}handleDocReset(){this.name===J.DOCUMENT_NUMBER&&(this.value="",this.touched=!1,this.isValid=!1,this.errorMessage="",this.inputReference&&(this.inputReference.value=""),this.validityStateHandler({valid:!1,name:this.name}))}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.haspostalcodelookup&&["address1","address2","City","PostalCode"].includes(this.name)&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.isValidValue()}validateDocument(i,e){const t=i.trim();return e===J.PASSPORT?J.PASSPORT_NUMERIC_REGEX.test(t)?{valid:!0}:{valid:!1,errorKey:de.PASSPORT_INVALID}:e===J.SOUTH_AFRICAN_ID?t.length!==J.SOUTH_AFRICAN_ID_LENGTH?{valid:!1,errorKey:de.SA_ID_LENGTH}:Ks(t)?{valid:!0}:{valid:!1,errorKey:de.SA_ID_INVALID}:{valid:!0}}updateValidationState(){const i=this.isValidValue();if(this.isValid=i,!this.touched){this.errorMessage="";return}this.errorMessage=i?"":this.setErrorMessage()}isValidValue(){if(!this.inputReference)return!1;if(this.enableSouthAfricanMode&&this.name===J.DOCUMENT_NUMBER){const e=window.documentTypeValue;return this.validateDocument(this.value,e).valid}return this.value.trim()===""&&!this.validation.mandatory||this.inputReference.validity.valid&&(!this.inputReference.value||this.inputReference.value.match(this.validationPattern)!==null)}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;const a=this.value.trim();if(this.enableSouthAfricanMode&&this.name===J.DOCUMENT_NUMBER){const o=window.documentTypeValue,n=this.validateDocument(this.value,o);return n.valid?"":b(n.errorKey,this.language)}if(a===""&&!this.validation.mandatory)return"";if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong){const{minLength:o,maxLength:n}=this.validation;return o===n?b(de.FIXED_LENGTH,this.language,{values:{length:o}}):b(de.LENGTH,this.language,{values:{minLength:o,maxLength:n}})}if(this.inputReference.value.match(this.validationPattern)==null){const o=(i=this.validation.custom.find(s=>s.rule==="regex"))===null||i===void 0?void 0:i.errorKey,n=(e=this.validation.custom.find(s=>s.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${o}`,this.language)||n}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const o=(t=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,n=(r=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return b(`${o}`,this.language)?b(`${o}`,this.language):n}return""}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"f48e592bac049022b283bac917c095772b1508f5",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:e=>this.stylingContainer=e},h.h("div",{key:"fe3626ead38dd18dfa14795ee2332e93f5f09652",class:"text__wrapper--flex"},h.h("label",{key:"6b2854b460e0ac7d4ae0ebccc06dbe64770581d5",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"f29d266973bd700a4270495bc4eb6e8296b6eeaf",class:"text__wrapper--relative"},this.tooltip&&h.h("img",{key:"68e69abbb78250e763822608e963bc16d702f099",class:"text__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"99b8eab15ab32656f86fedd3f36a09a5bbe108d3",name:this.name,id:`${this.name}__input`,value:this.value,type:"text",class:`text__input ${i}`,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.enableSouthAfricanMode?"":this.validation.minLength,maxlength:this.enableSouthAfricanMode?"":this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"cc28c1c19370faa94fa1f738066042dce8d694ce",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Bs.style=Xf;const Qf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}',Jf=Qf,Hs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(e,t)=>{e.stopPropagation(),window.postMessage({type:`registration${t}Clicked`},window.location.href)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.showFields=this.defaultValue==="true"}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.options.length!==0&&this.options.forEach(i=>{this.callBackObject[i.name]=e=>{this.handleRevealField(e,i.name)},this.subFieldsObject[i.name].addEventListener("click",this.callBackObject[i.name])})}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return b("requiredError",this.language)}disconnectedCallback(){this.options.forEach(i=>{this.subFieldsObject[i.name].removeEventListener("click",this.callBackObject[i.name])})}renderLabel(){return h.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},h.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?h.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("div",{key:"31cd24b5da24368eef2f53952714395d6d9f6285",class:`togglecheckbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("div",{key:"aa14784bd8a3870f7015db79d23226521706ad58",class:"togglecheckbox__wrapper--flex"},h.h("input",{key:"0237f06c99b8b2ed7de80433f5b93b9eae7c25f5",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:i=>this.checkboxReference=i,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),h.h("small",{key:"7e26bea1cfcc725d5aa5a795fd0f999d99abe39d",class:"togglecheckbox__error-message"},this.errorMessage),h.h("div",{key:"4256fc552545b7a1050ff5cdeb005f5ea83cc5c1",class:"togglecheckbox__wrapper--relative"},this.tooltip&&h.h("img",{key:"be3c3e036f0bfe46658fce870ae0ffa258229e7d",class:"togglecheckbox__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),h.h("div",{key:"2d61bedaac02f21116318b10a21b361e70e0213f",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(i=>h.h("general-input",{type:i.inputType,name:i.name,displayName:i.displayName,validation:i.validate,action:i.action||null,defaultValue:i.defaultValue,autofilled:i.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:i.tooltip,placeholder:i.placeholder==null?"":i.placeholder,ref:e=>this.subFieldsObject[i.name]=e}))))}static get watchers(){return{clientStyling:["handleClientStylingChange"]}}};Hs.style=Jf;const Zf="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.twofa{display:flex;flex-direction:column;gap:10px}.twofa__description{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.twofa__error-message{text-align:center;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.twofa__input-wrapper{display:flex;justify-content:center}.twofa__input-wrapper input{width:35px;height:35px;padding:10px;text-align:center;border-radius:var(--emw--border-radius-small, 5px);margin-left:5px;margin-right:5px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:var(--emw-font-weight-bold, 800);outline:none;transition:all 0.1s}.twofa__input-wrapper input:focus{border:2px solid var(--emw--color-primary, #22B04E);box-shadow:0 0 2px 2px var(--emw--color-primary, #22B04E)}.twofa__button-wrapper{justify-content:center;text-align:center}.twofa__button-wrapper button{border:none;background:none;font-weight:var(--emw-font-weight-bold, 800);color:var(--emw--color-primary, #22B04E);cursor:pointer}",ev=Zf,Us=class{constructor(i){h.registerInstance(this,i),this.registrationWidgetLoaded=h.createEvent(this,"registrationWidgetLoaded"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.resendCode=h.createEvent(this,"resendCode"),this.validationPattern="",this.stylingContainer=null,this.tooltipReference=null,this.tooltipIconReference=null,this.inputRefs=[],this.containerRef=null,this.resendInterval=null,this.resendCodeHandler=()=>{this.triggerResendInterval(),this.resendCode.emit()},this.setInputRef=(e,t)=>{e&&(this.inputRefs[t]=e)},this.setContainerRef=e=>{e&&(this.containerRef=e)},this.triggerResendInterval=()=>{this.isResendButtonAvailable=!1,this.resendInterval&&clearInterval(this.resendInterval),this.resendInterval=setInterval(()=>{--this.resendIntervalSecondsLeft<=0&&(clearInterval(this.resendInterval),this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.isResendButtonAvailable=!0)},1e3)},this.formatTime=()=>{const e=String(Math.floor(this.resendIntervalSecondsLeft/60));let t=String(this.resendIntervalSecondsLeft%60);return t.length===1&&(t="0"+t),`${e}:${t}`},this.handleInput=(e,t)=>{const r=e.target,o=r.value.slice(-1);if(r.value=o,!o)return;this.code[t]=o,this.enableSouthAfricanMode&&(this.revealedIndexes=[t],this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout(()=>{this.revealedIndexes=[]},500));const n=this.inputRefs[t+1];n&&n.focus(),this.setValidity(),this.setErrorMessage()},this.name="",this.displayName="",this.placeholder="",this.validation=void 0,this.tooltip="",this.language="en",this.emitValue=!0,this.destination="",this.resendIntervalSeconds=60,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.pinAttemptsExceeded=void 0,this.clientStylingUrl="",this.mbSource=void 0,this.isValid=!1,this.isResendButtonAvailable=!0,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.revealedIndexes=[]}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.code.join("")})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.code.join("")})}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(i,e){i!==e&&this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.code=new Array(this.validation.maxLength).fill("")}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}componentDidLoad(){this.setValidity(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),this.handleClientStyling()}handleKeyDown(i,e){if(i.key==="Backspace"){const t=[...this.code];t[e]="",this.code=t,this.enableSouthAfricanMode&&(this.revealedIndexes=this.revealedIndexes.filter(a=>a!==e));const r=this.inputRefs[e-1];r==null||r.focus()}this.setValidity(),this.setErrorMessage()}handlePaste(i){var e,t;i.preventDefault();const r=(t=(e=i.clipboardData)===null||e===void 0?void 0:e.getData("text"))===null||t===void 0?void 0:t.trim();if(!r)return;const a=r.slice(0,this.validation.maxLength).split("");this.code=[...a,...new Array(this.validation.maxLength-a.length).fill("")],this.enableSouthAfricanMode&&(this.revealedIndexes=a.map((n,s)=>s),this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout(()=>{this.revealedIndexes=[]},500));const o=this.inputRefs[Math.min(a.length,this.inputRefs.length-1)];o==null||o.focus(),this.setValidity(),this.setErrorMessage(),this.enableSouthAfricanMode&&(this.valueHandler({name:this.name,value:this.code.join("")}),this.validityStateHandler({valid:this.isValid,name:this.name}))}setValidity(){const i=this.code.join(""),e=i.length===this.validation.maxLength,t=i.match(this.validationPattern)!==null;this.isValid=e&&t}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i;if(this.code.join("").match(this.validationPattern)!==null)this.errorMessage="";else{const t=(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.errorKey;t&&(this.errorMessage=b(t,this.language))}}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}getInputDisplayValue(i){const e=this.code[i];return e?this.enableSouthAfricanMode?this.revealedIndexes.includes(i)?e:"*":e:""}render(){return h.h("div",{key:"cd5396afccaf4016201281f5cc53898c0a2052ed",class:"twofa",ref:i=>this.stylingContainer=i},h.h("div",{key:"008dd54682a0d93190e9e5b2b49673262ed01763",class:"twofa__error-message"},h.h("p",{key:"41db51d6b396ccd1f3149e4473e96960e92d05ca"},this.errorMessage)),h.h("div",{key:"67e9e4ac90cf95f2269e75b121ed220a02c5f139",class:"twofa__description",innerHTML:b("twofaDescription",this.language,{values:{destination:this.destination}})}),h.h("div",{key:"702c342eb7be0001ab8de310cadd7e8684a8025d",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map((i,e)=>h.h("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:this.getInputDisplayValue(e),onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)}))),h.h("div",{key:"63564bd4a0442232f81058ba914ee86c537ce85a",class:"twofa__button-wrapper"},h.h("p",{key:"219f5005c0d03189df48f05c5e0cd980eb0e1979",class:"twofa__resend-message"},b("twofaResendMessage",this.language)),h.h("button",{key:"12b7b4bc3ea165994f2c50107f406c64e708cf4d",class:`twofa__resend-button ${this.pinAttemptsExceeded?"twofa__resend-button--disabled":""}`,onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable||this.pinAttemptsExceeded},this.isResendButtonAvailable?b("twofaResendButton",this.language):this.formatTime())))}get host(){return h.getElement(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};Us.style=ev;const tv=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",iv=tv,qs=class{constructor(i){h.registerInstance(this,i),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(i,e){e!==i&&this.handleStructure(i)}handleStylingProps(i){switch(typeof i){case"number":return i===0?0:`${i}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(i)||i.endsWith("px")||i.endsWith("%")?i:"unset";default:return"unset"}}handleStructure(i){switch(i){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return h.h("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return h.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((i,e)=>h.h("div",{key:e,class:"SkeletonText "+(this.animation?"Skeleton":"")})))}renderRectangle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let i="";switch(this.structure){case"logo":i=`
|
|
6904
|
+
}`,$f=Ff,zs=class{constructor(i){h.registerInstance(this,i),this.sendOriginalValidityState=h.createEvent(this,"sendOriginalValidityState"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=e=>{this.value=e.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleRevealField=e=>{e.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=e=>{this.value=e.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.noValidation=!1,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.mbSource=void 0,this.isValid=void 0,this.errorMessage=void 0,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}originalValidityChangedHandler(i){this.isDuplicateInput&&(i.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,this.value!==""&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.element.shadowRoot.querySelector("input"),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",i=>{this.handleRevealField(i)}),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(i){if(this.noValidation){this.passwordComplexity=[];return}this.passwordComplexity=this.validation.custom.filter(e=>e.rule==="regex").map(e=>{const t=new RegExp(e.pattern);let r=!1;return i&&(r=t.test(i)),{rule:e.displayName,ruleKey:e.errorKey,passed:r}})}setValidity(){var i,e;return this.noValidation?!0:this.isDuplicateInput&&this.duplicateInputValue!==this.value?!1:!((i=this.passwordComplexity)===null||i===void 0)&&i.every(t=>t.passed)?(e=this.inputReference)===null||e===void 0?void 0:e.validity.valid:!1}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r,a;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return b("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return b("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){const o=(i=this.validation.custom.find(s=>s.rule==="regex"))===null||i===void 0?void 0:i.errorKey,n=(e=this.validation.custom.find(s=>s.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${o}`,this.language)?b(`${o}`,this.language):n}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const o=(t=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,n=(r=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return b(`${o}`,this.language)?b(`${o}`,this.language):n}if(!(!((a=this.passwordComplexity)===null||a===void 0)&&a.every(o=>o.passed))&&!this.showPopup)return b("invalidPassword",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`password__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}renderComplexityPopup(){const i=this.passwordComplexity.length,t=this.passwordComplexity.filter(a=>a.passed).length/i,r=this.passwordComplexity.every(a=>a.passed);return h.h("div",{class:`password__complexity ${this.showPopup?"":"password__complexity--hidden"}`},h.h("div",{class:"password__complexity--strength"},h.h("p",{class:"password__complexity--text"},b("passwordStrength",this.language)," ",h.h("span",{class:"password__complexity--text-bold"},b(`${r?"passwordStrengthStrong":"passwordStrengthWeak"}`,this.language))),h.h("meter",{value:t,min:"0",max:"1"})),h.h("div",null,this.passwordComplexity.map((a,o)=>h.h("div",{key:o},h.h("input",{class:"password__complexity--checkbox",type:"checkbox",checked:a.passed,disabled:!0}),h.h("span",null,b(`${a.ruleKey}`,this.language)?b(`${a.ruleKey}`,this.language):a.rule)))))}renderCustomComplexityPopup(){return h.h("div",{class:`customreg-password__complexity ${this.showPopup?"":"customreg-password__complexity--hidden"}`},h.h("p",{class:"customreg-password__complexity--title"},b("PasswordMustContain",this.language)),h.h("div",{class:"customreg-password__complexity--rules"},this.passwordComplexity.map((i,e)=>h.h("div",{class:"customreg-password__complexity--rule",key:e},h.h("span",{class:`customreg-password__complexity--icon ${i.passed?J.PASSWORD_COMPLEXITY_PASSED:J.PASSWORD_COMPLEXITY_FAILED}`},i.passed?_a.PASSED:_a.FAILED),h.h("span",null,b(i.ruleKey,this.language)||i.rule)))))}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"18213d251639938165f3e4ad58bdc904fb953fe2",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"092c431b178682d0006cf6ad5c14b0a7e6fb5569",class:"password__wrapper--flex"},h.h("label",{key:"64c101b7d70305ecf09735234d902a6b33823551",class:`password__label ${this.validation.mandatory?"password__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"189929eefa1caf71a1be39f0d663eef914d241d5",class:"password__wrapper--relative"},this.tooltip&&h.h("img",{key:"95ee0d824b5be14ab4e62fc0b5f1731fe6ca5775",class:"password__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("vaadin-password-field",{key:"bf85dde83305233c566b1c50d0286548ba0f48a5",type:"password",id:`${this.name}__input`,class:`password__input ${i}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!this.noValidation&&h.h("small",{key:"3acbe164ff532bcfcd9e4a237a6f352df0cfdc2d",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput&&(this.enableSouthAfricanMode?this.renderCustomComplexityPopup():this.renderComplexityPopup()))}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};zs.style=$f;const Bf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.input__text-wrapper{position:relative}.input__addresses-container{position:relative;left:0;width:100%;background:var(--emw--color-white);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);max-height:200px;overflow-y:auto;z-index:999;margin-top:4px}.input__addresses-container .options{padding:4px 0}.input__addresses-container .option{padding:8px 12px;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6);font-size:14px;line-height:1.4;transition:background-color 0.2s ease;color:var(--emw--registration-gray-800, #333)}.input__addresses-container .option:last-child{border-bottom:none}.input__addresses-container .option:hover{background-color:var(--emw--registration-lightgray-100, #f8f9fa)}.input__addresses-container .option:active{background-color:var(--emw--registration-lightgray-200, #e9ecef)}.input__addresses-container::-webkit-scrollbar{width:6px}.input__addresses-container::-webkit-scrollbar-track{background:var(--emw--registration-lightgray-150, #f1f1f1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb{background:var(--emw--registration-lightgray-300, #c1c1c1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb:hover{background:var(--emw--registration-lightgray-400, #a8a8a8)}.postalcode__no-results-message{color:var(--emw--color-error, var(--emw--color-red, #ed0909));margin-top:10px}.address__manual-input-msg{text-decoration:underline;margin-top:10px;cursor:pointer;transition:opacity 0.3s ease}.address__manual-input-msg:active{opacity:0.7}.postalcode__loading-spinner{display:flex;align-items:center;gap:8px;padding:12px;color:var(--emw--registration-gray-600, #666);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-top:none;background-color:var(--emw--registration-lightgray-50, #f9f9f9)}.loading-spinner{width:14px;height:14px;border:2px solid var(--emw--color-gray-100, #E6E6E6);border-top:2px solid var(--emw--registration-gray-600, #666);border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}',Hf=Bf,Ls=class{constructor(i){h.registerInstance(this,i),this.sendAddressValue=h.createEvent(this,"sendAddressValue"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.hasManualAddressBeenTriggered=!1,this.touched=!1,this.maxPostalCodeLength="10",this.handleInput=e=>{const r=e.target.value.toUpperCase();this.value=r,this.touched=!0,this.currentPostalCode=r,this.showNoResultsMessage=!1,this.inputReference&&(this.inputReference.value=r),this.value.length<this.postalcodelength&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),(this.value===""||this.value.length<1)&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.value.length>=this.postalcodelength&&(sessionStorage.setItem("currentPostalCode",this.value),this.showNoResultsMessage=!1,this.addresses&&this.addresses.length>0&&(this.openAddressDropdown=!0));const a=this.isValid;this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),a!==this.isValid&&this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},300)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.showNoResultsMessage=!1,this.openAddressDropdown||(this.showNoResultsMessage=!1)},this.handleFocus=()=>{this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&(this.openAddressDropdown=!0)},this.handlePostalCode=(e,t)=>{e.stopPropagation();const r=`${t.number}`.trim(),a=`${t.street}`.trim(),o=`${t.city}`.trim();this.sendAddressValue.emit({city:o,address1:r,address2:a}),this.value=this.currentPostalCode.toLocaleUpperCase(),this.touched=!0,this.isValid=!0,this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.isFetchingAddresses=!1,this.valueHandler({name:this.name,value:this.value}),this.validityStateHandler({valid:!0,name:this.name}),this.valueHandler({name:"address1",value:r}),this.valueHandler({name:"City",value:o}),a&&this.valueHandler({name:"address2",value:a}),this.refreshTrigger++},this.enterAddressManually=()=>{const e=window.targetInputRefs;if(!e)return;const t=[{name:"PostalCode",ref:e.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:e.address1},{name:"address2",ref:e.address2},{name:"City",ref:e.City}],a=[{name:"PostalCode",ref:e.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:e.address1},{name:"City",ref:e.City}].find(n=>{var s;const l=((s=n.ref)===null||s===void 0?void 0:s.value)||"";return n.minLength?l.length===0||l.length<n.minLength:l.length===0}),o=(a==null?void 0:a.ref)||e.address1||e.PostalCode;o.scrollIntoView({behavior:"smooth",block:"center"}),this.hasManualAddressBeenTriggered||(this.hasManualAddressBeenTriggered=!0,t.forEach(n=>{var s;if(n.ref){const l=((s=n.ref.shadowRoot)===null||s===void 0?void 0:s.querySelector("input"))||n.ref;if(l){l.classList.add("pulse-border");const d=()=>{l.classList.remove("pulse-border"),l.removeEventListener("animationend",d)};l.addEventListener("animationend",d)}}})),o.focus()},this.handleOutsideClick=e=>{if(!this.openAddressDropdown)return;const t=e.composedPath?e.composedPath():[],r=t.includes(this.inputReference),a=t.includes(this.addressesDropdownRef),o=t.some(n=>{var s;return n instanceof Element&&((s=n.classList)===null||s===void 0?void 0:s.contains("option"))});!r&&!a&&!o&&(this.openAddressDropdown=!1,this.showNoResultsMessage=!1)},this.name="PostalCode",this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.postalcodelength=void 0,this.addresses=void 0,this.ignoreCountry=!1,this.mbSource=void 0,this.isValid=void 0,this.errorMessage="",this.showTooltip=!1,this.selectedCountryCode="",this.currentPostalCode="",this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.refreshTrigger=0,this.isFetchingAddresses=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value}),i===!0&&!this.value.length&&this.valueHandler({name:this.name,value:this.value})}handleAddresses(i){i&&i.length>0?(this.openAddressDropdown=!0,this.showNoResultsMessage=!1):(this.openAddressDropdown=!1,this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength&&setTimeout(()=>{this.currentPostalCode.length>=this.postalcodelength&&!this.isFetchingAddresses&&(this.showNoResultsMessage=!0)},200)),this.isFetchingAddresses=!1}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleCountryCodeUpdate(i){const{name:e,value:t}=i.detail;this.selectedCountryCode=t,e==="CountryCode"&&(this.resetPostalCodeField(),this.refreshTrigger++)}handleFetchStarted(){this.showNoResultsMessage=!1,this.isFetchingAddresses=!0,this.openAddressDropdown=!1}connectedCallback(){this.validationPattern=this.setPattern()}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.defaultValue&&this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.setValidity(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}setValidity(){if(!this.inputReference)return!1;const i=this.inputReference.validity.valid,e=!this.inputReference.value||this.inputReference.value.match(this.validationPattern)!==null;return i&&e}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(!this.touched)return"";if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong){const{minLength:t,maxLength:r}=this.validation;return t===r?b(de.FIXED_LENGTH,this.language,{values:{length:t}}):b(de.LENGTH,this.language,{values:{minLength:t,maxLength:r}})}if(this.inputReference.value.match(this.validationPattern)==null){const t=(i=this.validation.custom.find(a=>a.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(a=>a.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${t}`,this.language)||r}return""}resetPostalCodeField(){this.value="",this.currentPostalCode="",this.showNoResultsMessage=!1,this.openAddressDropdown=!1,this.isFetchingAddresses=!1,sessionStorage.removeItem("currentPostalCode"),this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name})}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}determineInputValue(){return this.inputReference&&this.name&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.value}render(){var i,e;let t="";this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid");let r=this.selectedCountryCode==="UK"||this.selectedCountryCode==="GB"||this.ignoreCountry,a=((i=this.addresses)===null||i===void 0?void 0:i.length)>0&&this.openAddressDropdown&&r,o=this.showNoResultsMessage&&this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&((e=this.addresses)===null||e===void 0?void 0:e.length)===0&&r,n=this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength;return h.h("div",{key:"f0dda39cf9a02d53213848926908c0cb39d1cd3f",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:s=>this.stylingContainer=s},h.h("div",{key:"5e1c51af264392d2be986e305e6526310f55f40b",class:"text__wrapper--flex"},h.h("label",{key:"c12c45d88bdf42aeb6be505d473ab0f55da2be87",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"7b93a75f19590b445227fa1a64c90fd20c0afd5d",class:"text__wrapper--relative"},this.tooltip&&h.h("img",{key:"504004a13595694307c1e3450b69982150dc55fd",class:"text__tooltip-icon",src:he,alt:"",ref:s=>this.tooltipIconReference=s,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("div",{key:"19de66fd72fd0a6befe3bbaebb6c8f99ec5f850b",class:"input__text-wrapper"},h.h("input",{key:"78cd4229ed5104518b991df0bc6bf527df2ec3e2",name:this.name,id:`${this.name}__input`,value:this.determineInputValue(),type:"text",class:`text__input ${t}`,placeholder:`${this.placeholder}`,ref:s=>this.inputReference=s,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.maxPostalCodeLength,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!r&&h.h("p",{key:"6b9e307d59fb9fed93f4df6c07a091d299844c62",class:"address__manual-input-msg",onClick:()=>this.enterAddressManually()},b("enterIEAddressManually",this.language)),a&&h.h("div",{key:"ecb7892a9a8d967540d8fd013518ae19498fcd48",class:"input__addresses-container",ref:s=>this.addressesDropdownRef=s},h.h("div",{key:"a5ef3f81a85207a821964e23b21aaf783be807cc",class:"options"},this.addresses.map((s,l)=>h.h("div",{key:l,class:"option",onClick:d=>this.handlePostalCode(d,s)},s.number," ",s.street," ",s.city)))),n&&h.h("div",{key:"338c17e484721efb387e608f3ce4416a0e47b8af",class:"postalcode__loading-spinner"},h.h("div",{key:"7638cea4fba975e3a27d4cb00bce217129bd0750",class:"loading-spinner"}),h.h("span",{key:"b59a8a9c3d7ecf209a68717346d1d29062994f79"},b("searchingForAddresses",this.language))),o&&h.h("div",{key:"212a74fed94b3ee089aed5c9afb544966b5f11cd",class:"postalcode__no-results-message"},b("postalLookUpNoAddressFound",this.language))),h.h("small",{key:"4f66e97dd811b9917c92ff4bcbf236817ac57933",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],addresses:["handleAddresses"]}}};Ls.style=Hf;const Uf="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}",qf=Uf,Rs=class{constructor(i){h.registerInstance(this,i),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}validityStateHandler(i){this.sendValidityState.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling()}handleClick(i){this.value=i.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`radio__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("fieldset",{key:"7048de0e37c9541af1c9788e8b46c789ca788c31",class:`radio__fieldset ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("legend",{key:"403b739c966d510740ca59621c094872b93e2cba",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map(i=>h.h("div",{class:"radio__wrapper"},h.h("input",{type:"radio",class:"radio__input",id:`${i.label}__input`,ref:e=>this.inputReference=e,value:i.value,name:this.name,required:this.validation.mandatory,onClick:e=>this.handleClick(e)}),h.h("label",{htmlFor:`${i.label}__input`},i.label))),h.h("small",{key:"46dce1082a6aa9f2a5bdc3e3654c924fcd2a8357",class:"radio__error-message"},this.errorMessage),this.tooltip&&h.h("img",{key:"dfe155a429485b5c891db2943d9115cdc40e169b",class:"radio__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Rs.style=qf;const jf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}',Wf=jf,Fs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.handleComboChange=e=>{this.touched=!0;const t=e.target.value,r=this.options.find(a=>a.value.toLowerCase()===t.toLowerCase());r?this.value=r.value:this.value=t,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=e=>{const t=e.currentTarget;t.opened||(this.touched=!0,this.value=t.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}))},this.handleSelectChange=e=>{this.touched=!0,this.value=e.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i;this.displayedOptions=this.options.map(e=>({label:e.label,value:e.value})),this.isComboBox=((i=this.displayedOptions)===null||i===void 0?void 0:i.length)>6}componentWillLoad(){if(this.action&&!this.options.length&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];return this.getOptions(i).then(e=>{var t;const r=Object.keys(e)[0];this.displayedOptions=e[r].map(a=>({label:a.Name,value:a.Alpha2Code})),this.isComboBox=((t=this.displayedOptions)===null||t===void 0?void 0:t.length)>6})}}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(this.inputReference.value=this.value)),this.isValid=this.setValidity(),!this.isComboBox&&this.vaadinCombo&&this.vaadinCombo.addEventListener("opened-changed",i=>{if(i.detail.value===!0)this.errorMessage="";else{const e=i.currentTarget;this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})}})}getOptions(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(a=>a.json()).then(a=>{t(a)}).catch(a=>{console.error(a),r(a)})})}setValidity(){var i;return!((i=this.validation)===null||i===void 0)&&i.mandatory?!!this.value:!0}setErrorMessage(){var i,e,t;if(!((e=(i=this.inputReference)===null||i===void 0?void 0:i.validity)===null||e===void 0)&&e.valueMissing||!((t=this.vaadinCombo)===null||t===void 0)&&t.invalid)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`select__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){var i,e;let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"eb6c9d7d85546159d44d06a0635f173263edd7d1",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:r=>this.stylingContainer=r},h.h("div",{key:"0fd71c528870966fdb23049b1806a267e9e6ca5c",class:"select__wrapper--flex"},h.h("label",{key:"44aeb4e50ab2f79df06741ff07ac03131c987447",class:"select__label",htmlFor:`${this.name}__input`},this.displayName,h.h("span",{key:"796a83aeadd480a571b6bae035a46138d7b10b24",class:this.validation.mandatory?"select__label--required":""})),h.h("div",{key:"6d7b2d785c6b0bdd05c7444f563b21cedf26ff7c",class:"select__wrapper--relative"},this.tooltip&&h.h("img",{key:"f33e43a9d42e8b8d1cf136374505eeaedcbede26",class:"select__tooltip-icon",src:he,alt:"",ref:r=>this.tooltipIconReference=r,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?h.h("vaadin-combo-box",{name:this.name,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(i=this.validation)===null||i===void 0?void 0:i.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleComboChange,onBlur:this.handleBlur}):h.h("vaadin-select",{name:this.name,popover:!1,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(e=this.validation)===null||e===void 0?void 0:e.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleSelectChange,"no-vertical-overlap":!0,noVerticalOverlap:!0}),h.h("small",{key:"261b3c4abc9b360e6b937d851f8bfc810280a8c6",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Fs.style=Wf;const Yf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden;padding-left:4px}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__wrapper .text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){height:100%;border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}',Gf=Yf,$s=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.setPhoneValue(e.target.value),this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.touched=!0,this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.enableCustomRegexValidation=!1,this.isValid=void 0,this.errorMessage=void 0,this.showTooltip=!1,this.disablePhonePrefix=!1,this.phoneValue="",this.phoneCodesOptions=void 0}setPhoneValue(i){const e=i.replace(/[^0-9]/g,"");this.phoneValue=e,this.inputReference&&(this.inputReference.value=this.phoneValue)}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i;this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.setPhoneValue((i=this.defaultValue.phone)!==null&&i!==void 0?i:""),this.phoneCodesOptions=[{label:this.prefixValue,value:this.prefixValue}])}componentWillLoad(){if(this.action&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];this.getPhoneCodes(i).then(e=>{this.phoneCodesOptions=e.phoneCodes.map(t=>typeof t=="object"&&t.Prefix?{label:t.Prefix,value:t.Prefix}:{label:t,value:t}),this.disablePhonePrefix=this.phoneCodesOptions.length<=1})}}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.isValidValue(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(a=>a.json()).then(a=>{t(a)}).catch(a=>{console.error(a),r(a)})})}handlePrefixInput(i){this.prefixValue=i.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}isValidValue(){if(!this.inputReference||(this.inputReference.setCustomValidity(""),this.lastCustomErrorKey=void 0,this.lastCustomErrorMessage=void 0,this.validation.mandatory&&(!this.phoneValue||this.phoneValue.trim()==="")))return!1;if(!this.phoneValue||this.phoneValue.trim()==="")return!this.validation.mandatory;if(this.validation.minLength&&this.phoneValue.length<this.validation.minLength||this.validation.maxLength&&this.phoneValue.length>this.validation.maxLength||this.validationPattern&&!new RegExp(this.validationPattern).test(this.phoneValue))return!1;if(this.enableCustomRegexValidation){const i=(this.validation.custom||[]).filter(e=>e.rule==="regex"&&e.pattern);if(i.length>1){const e=i.slice(1);for(const t of e){let r;try{r=new RegExp(t.pattern)}catch(a){continue}if(!r.test(this.phoneValue))return this.lastCustomErrorKey=t.errorKey,this.lastCustomErrorMessage=t.errorMessage,this.inputReference.setCustomValidity("customError"),!1}}}return!0}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(!((e=(i=this.inputReference)===null||i===void 0?void 0:i.validity)===null||e===void 0)&&e.customError||(this.lastCustomErrorKey=void 0,this.lastCustomErrorMessage=void 0),this.inputReference.validity.patternMismatch){const n=(t=this.validation.custom.find(l=>l.rule==="regex"))===null||t===void 0?void 0:t.errorKey,s=(r=this.validation.custom.find(l=>l.rule==="regex"))===null||r===void 0?void 0:r.errorMessage;return b(`${n}`,this.language)?b(`${n}`,this.language):s}const{minLength:a,maxLength:o}=this.validation;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong||a&&this.phoneValue&&this.phoneValue.length<a||o&&this.phoneValue&&this.phoneValue.length>o)return a===o?b(de.FIXED_LENGTH,this.language,{values:{length:a}}):b(de.LENGTH,this.language,{values:{minLength:a,maxLength:o}});if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language);if(this.inputReference.validity.customError&&(this.lastCustomErrorKey||this.lastCustomErrorMessage)){const n=this.lastCustomErrorKey?b(`${this.lastCustomErrorKey}`,this.language):"";return n||this.lastCustomErrorMessage||""}}renderTooltip(){return this.showTooltip?h.h("div",{class:`tel__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){var i;let e="";return this.touched&&(e=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"e33193abf4094e4dac87b9cb7d95aaaf4bd8827c",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},h.h("div",{key:"3978e74f9decf4c6d632268e73507878d3aca0da",class:"tel__wrapper--flex-label"},h.h("label",{key:"1b7711f58ab7fc7e48ea6fa889334d64eeb2bfb4",class:`tel__label ${this.validation.mandatory?"tel__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"a768af0e4a2c07fcf4b996814650493057120697",class:"tel__wrapper--relative"},this.tooltip&&h.h("img",{key:"b7f302055d8a4739baa8dece656780fa2183665a",class:"tel__tooltip-icon",src:he,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("div",{key:"d095e9e0666096278466d134e06f2985611f9f4d",class:`tel__wrapper--flex ${e}`},h.h("vaadin-combo-box",{key:"d336c7ee95ad77d513a3d485786d8774f11f91fc",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.disablePhonePrefix,onChange:t=>this.handlePrefixInput(t)}),h.h("input",{key:"5f403eb589e0ae8ee2284d2bd30a60850a33fb20",type:"tel",ref:t=>this.inputReference=t,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:(i=this.phoneValue)!==null&&i!==void 0?i:"",placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),h.h("small",{key:"b4f7dca6a67471828af759437927c57ca5a89c99",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};$s.style=Gf;const Kf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}',Xf=Kf,Bs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.postalcodelength=5,this.touched=!1,this.handleInput=e=>{const t=e.target,r=this.enableSouthAfricanMode&&(this.name===J.FIRSTNAME_ON_DOCUMENT||this.name===J.LASTNAME_ON_DOCUMENT)?t.value.replace(J.NON_LETTERS_REGEX,""):t.value;r!==t.value&&(t.value=r),this.value=r,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.updateValidationState(),this.emitValueHandler(!0)},500)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.updateValidationState()},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.haspostalcodelookup=void 0,this.enableSouthAfricanMode=void 0,this.mbSource=void 0,this.isValid=void 0,this.errorMessage="",this.showTooltip=!1,this.selectedCountryCode=""}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&this.updateValidationState()),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched&&this.updateValidationState()}handleValidationChange(i){i.detail.field===this.name&&(this.validation=i.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()))}handleCountryCodeUpdate(i){const{name:e,value:t}=i.detail;this.selectedCountryCode=t,e==="CountryCode"&&["address1","address2","City"].includes(this.name)&&(this.value="",this.touched=!1,this.errorMessage="",this.isValid=!1,this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name}))}handleAddressSelection(i){const{city:e,address1:t,address2:r}=i.detail;if(!["address1","address2","City"].includes(this.name))return;let a="";this.name==="address1"?a=t:this.name==="address2"?a=r:this.name==="City"&&(a=e),this.value=a,this.touched=!0,this.updateValidationState()}connectedCallback(){this.validationPattern=this.setPattern()}handleExternalDocUpdate(i){this.name===J.DOCUMENT_NUMBER&&(this.value=i.detail||"",this.touched=!0,this.inputReference&&(this.inputReference.value=this.value),this.sendInputValue.emit({name:this.name,value:this.value}),this.updateValidationState())}handleDocReset(){this.name===J.DOCUMENT_NUMBER&&(this.value="",this.touched=!1,this.isValid=!1,this.errorMessage="",this.inputReference&&(this.inputReference.value=""),this.validityStateHandler({valid:!1,name:this.name}))}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.haspostalcodelookup&&["address1","address2","City","PostalCode"].includes(this.name)&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.isValidValue()}validateDocument(i,e){const t=i.trim();return e===J.PASSPORT?J.PASSPORT_NUMERIC_REGEX.test(t)?{valid:!0}:{valid:!1,errorKey:de.PASSPORT_INVALID}:e===J.SOUTH_AFRICAN_ID?t.length!==J.SOUTH_AFRICAN_ID_LENGTH?{valid:!1,errorKey:de.SA_ID_LENGTH}:Ks(t)?{valid:!0}:{valid:!1,errorKey:de.SA_ID_INVALID}:{valid:!0}}updateValidationState(){const i=this.isValidValue();if(this.isValid=i,!this.touched){this.errorMessage="";return}this.errorMessage=i?"":this.setErrorMessage()}isValidValue(){if(!this.inputReference)return!1;if(this.enableSouthAfricanMode&&this.name===J.DOCUMENT_NUMBER){const e=window.documentTypeValue;return this.validateDocument(this.value,e).valid}return this.value.trim()===""&&!this.validation.mandatory||this.inputReference.validity.valid&&(!this.inputReference.value||this.inputReference.value.match(this.validationPattern)!==null)}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;const a=this.value.trim();if(this.enableSouthAfricanMode&&this.name===J.DOCUMENT_NUMBER){const o=window.documentTypeValue,n=this.validateDocument(this.value,o);return n.valid?"":b(n.errorKey,this.language)}if(a===""&&!this.validation.mandatory)return"";if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong){const{minLength:o,maxLength:n}=this.validation;return o===n?b(de.FIXED_LENGTH,this.language,{values:{length:o}}):b(de.LENGTH,this.language,{values:{minLength:o,maxLength:n}})}if(this.inputReference.value.match(this.validationPattern)==null){const o=(i=this.validation.custom.find(s=>s.rule==="regex"))===null||i===void 0?void 0:i.errorKey,n=(e=this.validation.custom.find(s=>s.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${o}`,this.language)||n}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const o=(t=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,n=(r=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return b(`${o}`,this.language)?b(`${o}`,this.language):n}return""}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"f48e592bac049022b283bac917c095772b1508f5",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:e=>this.stylingContainer=e},h.h("div",{key:"fe3626ead38dd18dfa14795ee2332e93f5f09652",class:"text__wrapper--flex"},h.h("label",{key:"6b2854b460e0ac7d4ae0ebccc06dbe64770581d5",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"f29d266973bd700a4270495bc4eb6e8296b6eeaf",class:"text__wrapper--relative"},this.tooltip&&h.h("img",{key:"68e69abbb78250e763822608e963bc16d702f099",class:"text__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"99b8eab15ab32656f86fedd3f36a09a5bbe108d3",name:this.name,id:`${this.name}__input`,value:this.value,type:"text",class:`text__input ${i}`,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.enableSouthAfricanMode?"":this.validation.minLength,maxlength:this.enableSouthAfricanMode?"":this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"cc28c1c19370faa94fa1f738066042dce8d694ce",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Bs.style=Xf;const Qf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}',Jf=Qf,Hs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(e,t)=>{e.stopPropagation(),window.postMessage({type:`registration${t}Clicked`},window.location.href)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.showFields=this.defaultValue==="true"}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.options.length!==0&&this.options.forEach(i=>{this.callBackObject[i.name]=e=>{this.handleRevealField(e,i.name)},this.subFieldsObject[i.name].addEventListener("click",this.callBackObject[i.name])})}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return b("requiredError",this.language)}disconnectedCallback(){this.options.forEach(i=>{this.subFieldsObject[i.name].removeEventListener("click",this.callBackObject[i.name])})}renderLabel(){return h.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},h.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?h.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("div",{key:"31cd24b5da24368eef2f53952714395d6d9f6285",class:`togglecheckbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("div",{key:"aa14784bd8a3870f7015db79d23226521706ad58",class:"togglecheckbox__wrapper--flex"},h.h("input",{key:"0237f06c99b8b2ed7de80433f5b93b9eae7c25f5",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:i=>this.checkboxReference=i,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),h.h("small",{key:"7e26bea1cfcc725d5aa5a795fd0f999d99abe39d",class:"togglecheckbox__error-message"},this.errorMessage),h.h("div",{key:"4256fc552545b7a1050ff5cdeb005f5ea83cc5c1",class:"togglecheckbox__wrapper--relative"},this.tooltip&&h.h("img",{key:"be3c3e036f0bfe46658fce870ae0ffa258229e7d",class:"togglecheckbox__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),h.h("div",{key:"2d61bedaac02f21116318b10a21b361e70e0213f",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(i=>h.h("general-input",{type:i.inputType,name:i.name,displayName:i.displayName,validation:i.validate,action:i.action||null,defaultValue:i.defaultValue,autofilled:i.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:i.tooltip,placeholder:i.placeholder==null?"":i.placeholder,ref:e=>this.subFieldsObject[i.name]=e}))))}static get watchers(){return{clientStyling:["handleClientStylingChange"]}}};Hs.style=Jf;const Zf="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.twofa{display:flex;flex-direction:column;gap:10px}.twofa__description{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.twofa__error-message{text-align:center;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.twofa__input-wrapper{display:flex;justify-content:center}.twofa__input-wrapper input{width:35px;height:35px;padding:10px;text-align:center;border-radius:var(--emw--border-radius-small, 5px);margin-left:5px;margin-right:5px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:var(--emw-font-weight-bold, 800);outline:none;transition:all 0.1s}.twofa__input-wrapper input:focus{border:2px solid var(--emw--color-primary, #22B04E);box-shadow:0 0 2px 2px var(--emw--color-primary, #22B04E)}.twofa__button-wrapper{justify-content:center;text-align:center}.twofa__button-wrapper button{border:none;background:none;font-weight:var(--emw-font-weight-bold, 800);color:var(--emw--color-primary, #22B04E);cursor:pointer}",ev=Zf,Us=class{constructor(i){h.registerInstance(this,i),this.registrationWidgetLoaded=h.createEvent(this,"registrationWidgetLoaded"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.resendCode=h.createEvent(this,"resendCode"),this.validationPattern="",this.stylingContainer=null,this.tooltipReference=null,this.tooltipIconReference=null,this.inputRefs=[],this.containerRef=null,this.resendInterval=null,this.resendCodeHandler=()=>{this.triggerResendInterval(),this.resendCode.emit()},this.setInputRef=(e,t)=>{e&&(this.inputRefs[t]=e)},this.setContainerRef=e=>{e&&(this.containerRef=e)},this.triggerResendInterval=()=>{this.isResendButtonAvailable=!1,this.resendInterval&&clearInterval(this.resendInterval),this.resendInterval=setInterval(()=>{--this.resendIntervalSecondsLeft<=0&&(clearInterval(this.resendInterval),this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.isResendButtonAvailable=!0)},1e3)},this.formatTime=()=>{const e=String(Math.floor(this.resendIntervalSecondsLeft/60));let t=String(this.resendIntervalSecondsLeft%60);return t.length===1&&(t="0"+t),`${e}:${t}`},this.handleInput=(e,t)=>{const r=e.target,o=r.value.slice(-1);if(r.value=o,!o)return;this.code[t]=o,this.enableSouthAfricanMode&&(this.revealedIndexes=[t],this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout(()=>{this.revealedIndexes=[]},500));const n=this.inputRefs[t+1];n&&n.focus(),this.setValidity(),this.setErrorMessage()},this.name="",this.displayName="",this.placeholder="",this.validation=void 0,this.tooltip="",this.language="en",this.emitValue=!0,this.destination="",this.resendIntervalSeconds=60,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.pinAttemptsExceeded=void 0,this.clientStylingUrl="",this.mbSource=void 0,this.isValid=!1,this.isResendButtonAvailable=!0,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.revealedIndexes=[]}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.code.join("")})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.code.join("")})}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(i,e){i!==e&&this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.code=new Array(this.validation.maxLength).fill("")}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}componentDidLoad(){this.setValidity(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),this.handleClientStyling()}handleKeyDown(i,e){if(i.key==="Backspace"){const t=[...this.code];t[e]="",this.code=t,this.enableSouthAfricanMode&&(this.revealedIndexes=this.revealedIndexes.filter(a=>a!==e));const r=this.inputRefs[e-1];r==null||r.focus()}this.setValidity(),this.setErrorMessage()}handlePaste(i){var e,t;i.preventDefault();const r=(t=(e=i.clipboardData)===null||e===void 0?void 0:e.getData("text"))===null||t===void 0?void 0:t.trim();if(!r)return;const a=r.slice(0,this.validation.maxLength).split("");this.code=[...a,...new Array(this.validation.maxLength-a.length).fill("")],this.enableSouthAfricanMode&&(this.revealedIndexes=a.map((n,s)=>s),this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout(()=>{this.revealedIndexes=[]},500));const o=this.inputRefs[Math.min(a.length,this.inputRefs.length-1)];o==null||o.focus(),this.setValidity(),this.setErrorMessage(),this.enableSouthAfricanMode&&(this.valueHandler({name:this.name,value:this.code.join("")}),this.validityStateHandler({valid:this.isValid,name:this.name}))}setValidity(){const i=this.code.join(""),e=i.length===this.validation.maxLength,t=i.match(this.validationPattern)!==null;this.isValid=e&&t}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i;if(this.code.join("").match(this.validationPattern)!==null)this.errorMessage="";else{const t=(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.errorKey;t&&(this.errorMessage=b(t,this.language))}}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}getInputDisplayValue(i){const e=this.code[i];return e?this.enableSouthAfricanMode?this.revealedIndexes.includes(i)?e:"*":e:""}render(){return h.h("div",{key:"cd5396afccaf4016201281f5cc53898c0a2052ed",class:"twofa",ref:i=>this.stylingContainer=i},h.h("div",{key:"008dd54682a0d93190e9e5b2b49673262ed01763",class:"twofa__error-message"},h.h("p",{key:"41db51d6b396ccd1f3149e4473e96960e92d05ca"},this.errorMessage)),h.h("div",{key:"67e9e4ac90cf95f2269e75b121ed220a02c5f139",class:"twofa__description",innerHTML:b("twofaDescription",this.language,{values:{destination:this.destination}})}),h.h("div",{key:"702c342eb7be0001ab8de310cadd7e8684a8025d",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map((i,e)=>h.h("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:this.getInputDisplayValue(e),onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)}))),h.h("div",{key:"63564bd4a0442232f81058ba914ee86c537ce85a",class:"twofa__button-wrapper"},h.h("p",{key:"219f5005c0d03189df48f05c5e0cd980eb0e1979",class:"twofa__resend-message"},b("twofaResendMessage",this.language)),h.h("button",{key:"12b7b4bc3ea165994f2c50107f406c64e708cf4d",class:`twofa__resend-button ${this.pinAttemptsExceeded?"twofa__resend-button--disabled":""}`,onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable||this.pinAttemptsExceeded},this.isResendButtonAvailable?b("twofaResendButton",this.language):this.formatTime())))}get host(){return h.getElement(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};Us.style=ev;const tv=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",iv=tv,qs=class{constructor(i){h.registerInstance(this,i),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(i,e){e!==i&&this.handleStructure(i)}handleStylingProps(i){switch(typeof i){case"number":return i===0?0:`${i}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(i)||i.endsWith("px")||i.endsWith("%")?i:"unset";default:return"unset"}}handleStructure(i){switch(i){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return h.h("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return h.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((i,e)=>h.h("div",{key:e,class:"SkeletonText "+(this.animation?"Skeleton":"")})))}renderRectangle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let i="";switch(this.structure){case"logo":i=`
|
|
6905
6905
|
:host {
|
|
6906
6906
|
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
6907
6907
|
--emw-skeleton-logo-height: ${this.stylingValue.height};
|