@everymatrix/player-account-controller 1.87.26 → 1.87.28
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-CEm1d9TV.js +300 -0
- package/components/GeneralLogout-Cx-68AU-.cjs +1 -0
- package/components/GeneralLogout-P3tigWsE.js +300 -0
- package/components/PlayerAccountBettingHistory-BTrKyG5c.cjs +1 -0
- package/components/PlayerAccountBettingHistory-CumeIegs.js +310 -0
- package/components/PlayerAccountBettingHistory-V_ZXgT_m.js +311 -0
- package/components/PlayerAccountBiometrics-is5id3Pu.cjs +1 -0
- package/components/{PlayerAccountBiometrics-kmv4HqQ_.js → PlayerAccountBiometrics-kZejQke-.js} +94 -94
- package/components/{PlayerAccountBiometrics-Cu1scn1a.js → PlayerAccountBiometrics-nvw10pCK.js} +94 -94
- package/components/PlayerAccountBiometricsAction-CnzIUbKT.js +434 -0
- package/components/PlayerAccountBiometricsAction-DgA-1ZVp.js +451 -0
- package/components/PlayerAccountBiometricsAction-KVABAIgM.cjs +1 -0
- package/components/{PlayerAccountClosure-B7lWhxS5.js → PlayerAccountClosure-BRWbN9CL.js} +90 -90
- package/components/{PlayerAccountClosure-DWX0cAW_.js → PlayerAccountClosure-CMHJCKmw.js} +92 -92
- package/components/PlayerAccountClosure-eMDaHm0s.cjs +1 -0
- package/components/PlayerAccountController-BnmD5Ofx.cjs +21 -0
- package/components/PlayerAccountController-DuWNHRdy.js +13466 -0
- package/components/PlayerAccountController-j-NYynzq.js +13423 -0
- package/components/{PlayerAccountGamingLimits-DuDCpH1C.js → PlayerAccountGamingLimits-B4jiOpbe.js} +101 -101
- package/components/{PlayerAccountGamingLimits-DNqahHsA.js → PlayerAccountGamingLimits-CKJ6b9fI.js} +97 -97
- package/components/PlayerAccountGamingLimits-CWozJexi.cjs +1 -0
- package/components/PlayerAccountGamingLimitsConfirmationModal-D7U-SETU.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-De_w7-UU.js → PlayerAccountGamingLimitsConfirmationModal-DnrFMJHA.js} +88 -88
- package/components/{PlayerAccountGamingLimitsConfirmationModal-DfJgQjRr.js → PlayerAccountGamingLimitsConfirmationModal-kEFYK5ek.js} +77 -77
- package/components/PlayerAccountGamingLimitsGroupEdit-Bxzv8N1q.cjs +1 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-DE3NQvEw.js +1555 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-e5InPcEl.js +1555 -0
- package/components/PlayerAccountGamingLimitsHistory2-COzxMqse.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsHistory2-D1N2rg25.js → PlayerAccountGamingLimitsHistory2-CjyULSw7.js} +111 -111
- package/components/{PlayerAccountGamingLimitsHistory2-BN0w14Hg.js → PlayerAccountGamingLimitsHistory2-D77EY8P-.js} +100 -100
- package/components/{PlayerAccountGamingLimitsInfoCard-D_ro79gB.js → PlayerAccountGamingLimitsInfoCard-8dFikYNs.js} +415 -399
- package/components/PlayerAccountGamingLimitsInfoCard-BGpnQhkj.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsInfoCard-B6oHRJP6.js → PlayerAccountGamingLimitsInfoCard-DOiKdkIk.js} +415 -399
- package/components/{PlayerAccountGamingLimitsPage2Gm16-CMxzI07w.cjs → PlayerAccountGamingLimitsPage2Gm16-B-ROLFTB.cjs} +6 -6
- package/components/{PlayerAccountGamingLimitsPage2Gm16-o_0DfyBW.js → PlayerAccountGamingLimitsPage2Gm16-Bs5pGY8V.js} +699 -699
- package/components/{PlayerAccountGamingLimitsPage2Gm16-EA4I02NQ.js → PlayerAccountGamingLimitsPage2Gm16-CmV0jB0D.js} +702 -702
- package/components/{PlayerAccountGamingLimitsPopup-9casCGHJ.js → PlayerAccountGamingLimitsPopup-C9wKY91L.js} +34 -34
- package/components/PlayerAccountGamingLimitsPopup-Cpzn3X0n.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsPopup-DhlQaawG.js → PlayerAccountGamingLimitsPopup-_AnjYuYf.js} +38 -38
- package/components/{PlayerAccountGamingLimitsWrapper2-DG5pRuF1.js → PlayerAccountGamingLimitsWrapper2-DqAnX1Py.js} +81 -81
- package/components/{PlayerAccountGamingLimitsWrapper2-B_pUqlM0.js → PlayerAccountGamingLimitsWrapper2-Dwknu3Cb.js} +75 -75
- package/components/PlayerAccountGamingLimitsWrapper2-y6bGvy33.cjs +4 -0
- package/components/{PlayerAccountGeneralConfirmationModal-BIStQzTL.js → PlayerAccountGeneralConfirmationModal-BiBU4e0n.js} +103 -103
- package/components/{PlayerAccountGeneralConfirmationModal-DAUZlQfJ.js → PlayerAccountGeneralConfirmationModal-DA07qkhd.js} +106 -106
- package/components/PlayerAccountGeneralConfirmationModal-PNfL91mi.cjs +1 -0
- package/components/{PlayerAccountMenu-khqZEoBc.js → PlayerAccountMenu-BW2VbXTx.js} +129 -129
- package/components/PlayerAccountMenu-CERrQlC7.cjs +1 -0
- package/components/{PlayerAccountMenu-OqVmttiI.js → PlayerAccountMenu-C_OETzKF.js} +129 -129
- package/components/{PlayerAccountModal-NUSkSmow.js → PlayerAccountModal-CL2SvpaJ.js} +58 -58
- package/components/{PlayerAccountModal-BXez3U77.js → PlayerAccountModal-CRzDk0do.js} +54 -54
- package/components/PlayerAccountModal-Dv3Yl1K_.cjs +1 -0
- package/components/{PlayerAccountNotifications-0v1ghF-m.js → PlayerAccountNotifications-BSwGy1iD.js} +87 -87
- package/components/{PlayerAccountNotifications-XjCLekPR.js → PlayerAccountNotifications-BmE8XpGH.js} +126 -126
- package/components/PlayerAccountNotifications-CevM0zeL.cjs +1 -0
- package/components/PlayerAccountProductRestriction-Bnwnb-af.js +1458 -0
- package/components/PlayerAccountProductRestriction-CLH_YtYd.cjs +4 -0
- package/components/PlayerAccountProductRestriction-Cj9ofL_Q.js +1493 -0
- package/components/{PlayerAccountReviewFrequency-ByPlOg40.js → PlayerAccountReviewFrequency-C8N1VIV5.js} +245 -245
- package/components/{PlayerAccountReviewFrequency-yLwAfHZd.js → PlayerAccountReviewFrequency-Cm4mwygx.js} +235 -235
- package/components/PlayerAccountReviewFrequency-D2YmIGdB.cjs +4 -0
- package/components/PlayerAccountSelfExclusion-C3XJo3op.js +1523 -0
- package/components/PlayerAccountSelfExclusion-CRCAuW_I.js +1551 -0
- package/components/PlayerAccountSelfExclusion-DIoBP-zp.cjs +1 -0
- package/components/{PlayerAccountSelfExclusion-0IraJUCF.js → PlayerAccountTimeout-Be13_cTt.js} +2363 -2581
- package/components/{PlayerAccountSelfExclusion-CP3lzn6g.cjs → PlayerAccountTimeout-DEpNYl-t.cjs} +161 -161
- package/components/{PlayerAccountSelfExclusion-B9QFixvG.js → PlayerAccountTimeout-H7G4ySPT.js} +2327 -2545
- package/components/{PlayerAccountTransactionsHistory-C4dSIP6l.js → PlayerAccountTransactionsHistory-BHDgStwb.js} +293 -292
- package/components/{PlayerAccountTransactionsHistory-CAFUIFUl.js → PlayerAccountTransactionsHistory-CKfnF5YJ.js} +304 -303
- package/components/PlayerAccountTransactionsHistory-CgTmptks.cjs +4 -0
- package/components/{PlayerActiveBonuses-BQSKxH9G.js → PlayerActiveBonuses-BAevp5YH.js} +222 -221
- package/components/{PlayerActiveBonuses-DSpez0EN.js → PlayerActiveBonuses-DRppY1vB.js} +192 -193
- package/components/PlayerActiveBonuses-M-vgtJjj.cjs +4 -0
- package/components/{PlayerBonusCard-D4jw0D02.js → PlayerBonusCard-BBq4z62c.js} +53 -53
- package/components/{PlayerBonusCard--2t2lX4X.js → PlayerBonusCard-BWZ4o6Nm.js} +53 -53
- package/components/PlayerBonusCard-BenCFvw0.cjs +1 -0
- package/components/{PlayerAccountProductRestriction-Drc1Iu2o.cjs → PlayerBonusHistory-CKhVhlwo.cjs} +295 -294
- package/components/PlayerBonusHistory-D1DkiHxv.js +20048 -0
- package/components/PlayerBonusHistory-DJdSfH1n.js +20037 -0
- package/components/{PlayerChangePassword-CK9EmNEl.js → PlayerChangePassword-DeoUbAd5.js} +257 -257
- package/components/{PlayerChangePassword-DDqLNG5r.js → PlayerChangePassword-OSahUgLo.js} +257 -257
- package/components/PlayerChangePassword-WUgeBsFa.cjs +3 -0
- package/components/{PlayerDeposit-BiOuprGV.js → PlayerDeposit-Du1nnR1u.js} +53 -53
- package/components/PlayerDeposit-Yd04zzeQ.cjs +1 -0
- package/components/{PlayerDeposit-B0xGf2EY.js → PlayerDeposit-abPtD5hO.js} +51 -51
- package/components/PlayerGamingHistory-DyYqzcQv.cjs +1 -0
- package/components/{PlayerGamingHistory-CDPSEyVI.js → PlayerGamingHistory-PBFc5gs-.js} +372 -373
- package/components/{PlayerGamingHistory-CJn-wybc.js → PlayerGamingHistory-XBIUqV4O.js} +404 -405
- package/components/{PlayerPendingWithdrawals-DKIV0VFt.js → PlayerPendingWithdrawals-6W2QUcnc.js} +54 -54
- package/components/PlayerPendingWithdrawals-7YfYYSbo.cjs +1 -0
- package/components/{PlayerPendingWithdrawals-Cw2CONsa.js → PlayerPendingWithdrawals-Dvufib_U.js} +54 -54
- package/components/PlayerProfileInfo-BTa1BRn8.cjs +4 -0
- package/components/{PlayerProfileInfo-B2PmsKAI.js → PlayerProfileInfo-BmqBm5DP.js} +782 -782
- package/components/{PlayerProfileInfo-YrTsyEfP.js → PlayerProfileInfo-DtV65Pxq.js} +646 -646
- package/components/PlayerRealityCheck-CqGAN5_L.cjs +1 -0
- package/components/{PlayerRealityCheck-CEToSHcC.js → PlayerRealityCheck-CziErfd6.js} +202 -202
- package/components/{PlayerRealityCheck-BdFZDJFk.js → PlayerRealityCheck-lVnY8s1I.js} +217 -217
- package/components/PlayerTransactionHistory-D5WIm27W.cjs +1 -0
- package/components/{PlayerTransactionHistory-BWwWT8z7.js → PlayerTransactionHistory-DZmR7K3t.js} +64 -64
- package/components/{PlayerTransactionHistory-C8uedDZz.js → PlayerTransactionHistory-WpDMStju.js} +68 -68
- package/components/{PlayerWithdrawal-BXYWP9OV.js → PlayerWithdrawal-BctNJ79f.js} +65 -65
- package/components/{PlayerWithdrawal-DuhBS0tB.js → PlayerWithdrawal-BgFPB_ak.js} +65 -65
- package/components/PlayerWithdrawal-rv6DLOa1.cjs +1 -0
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +7 -7
- package/esnext/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-BjWsvLzr.cjs +1 -0
- package/stencil/{app-globals-0f993ce5-DzSE6TtH.js → app-globals-0f993ce5-XUXOuUQl.js} +4 -4
- package/stencil/{checkbox-group-input_16-CFtp0f8h.js → checkbox-group-input_16-Bn7_E98r.js} +2 -2
- package/stencil/{checkbox-group-input_16-DuSVlPzJ.cjs → checkbox-group-input_16-C6_jN3p0.cjs} +1 -1
- package/stencil/{checkbox-group-input_16-ywIYg4ns.js → checkbox-group-input_16-D9ML4j06.js} +2 -2
- package/stencil/{index-1ef3a64c-CEngIsyB.js → index-1ef3a64c-BvSXLnmQ.js} +1 -1
- package/stencil/{index-1ef3a64c-BzR_jMKw.cjs → index-1ef3a64c-DK-TGomt.cjs} +1 -1
- package/stencil/{index-1ef3a64c-D5p-wZAC.js → index-1ef3a64c-Dwdxxwjy.js} +1 -1
- package/stencil/{index-6e523641-D2onrjgE.cjs → index-6e523641-DOnePbtQ.cjs} +1 -1
- package/stencil/{index-6e523641-B9tbNrXZ.js → index-6e523641-DpGJosc3.js} +1 -1
- package/stencil/{index-6e523641-DH0Ezdpy.js → index-6e523641-pWMNWAtQ.js} +1 -1
- package/stencil/{index-9c0f6c58-DjED2nNw.js → index-9c0f6c58-BN39eMNX.js} +1 -1
- package/stencil/{index-9c0f6c58-XIZolvs1.cjs → index-9c0f6c58-DK260bKj.cjs} +1 -1
- package/stencil/{index-9c0f6c58-DEQL19Io.js → index-9c0f6c58-_RRbHDNl.js} +1 -1
- package/stencil/{index-b2193545-0zWC7J3V.js → index-b2193545-CubpYFkO.js} +1 -1
- package/stencil/{index-b2193545-BDUg7na_.js → index-b2193545-D3SG_Z28.js} +1 -1
- package/stencil/{index-b2193545-C-iFa_cO.cjs → index-b2193545-DM_LjYJq.cjs} +1 -1
- package/stencil/{index-c666b6e6-GVnzND9A.cjs → index-c666b6e6-2zPWxCxt.cjs} +1 -1
- package/stencil/{index-c666b6e6-C3HFUtzN.js → index-c666b6e6-C0YjtgbT.js} +1 -1
- package/stencil/{index-c666b6e6-C5SvvcXp.js → index-c666b6e6-DO3NG0d_.js} +1 -1
- package/stencil/{pam-change-password-6b535bd5-BM0i-nkQ.js → pam-change-password-25b46f90--RvqyvAS.js} +122 -93
- package/stencil/{pam-change-password-6b535bd5-CwazAyPT.cjs → pam-change-password-25b46f90-CILEgZdb.cjs} +2 -2
- package/stencil/{pam-change-password-6b535bd5-BMlVfXop.js → pam-change-password-25b46f90-DBsCYhoF.js} +121 -93
- package/stencil/pam-change-password-BaP9RQnm.cjs +1 -0
- package/stencil/{pam-change-password-vIDF9oZ0.js → pam-change-password-CfJwcRNG.js} +2 -2
- package/stencil/{pam-change-password-YY_WAq3p.js → pam-change-password-a_MEmefG.js} +2 -2
- package/stencil/{player-kyc-verification-Cg0fVyvL.cjs → player-kyc-verification-CR-8JjQM.cjs} +2 -2
- package/stencil/{player-kyc-verification-vQ6gNPBe.js → player-kyc-verification-DQBYB3LU.js} +90 -62
- package/stencil/{player-kyc-verification-BUKoBt3P.js → player-kyc-verification-TCKpEp1x.js} +120 -93
- package/stencil/{ui-skeleton-CTFP1U_H.js → ui-skeleton-BKpwkQ2A.js} +3 -3
- package/stencil/{ui-skeleton-C2ZVNvDq.cjs → ui-skeleton-CS05SPLQ.cjs} +1 -1
- package/stencil/{ui-skeleton-BQnxp85t.js → ui-skeleton-DNuG5l9W.js} +3 -3
- package/stencil/{ui-skeleton-ed169f8f-BXqYzfTU.js → ui-skeleton-ed169f8f-BI8lGn4f.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-DCJKKb_M.cjs → ui-skeleton-ed169f8f-CKUfafNC.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-OyzwWyyv.js → ui-skeleton-ed169f8f-CLfa7nfh.js} +1 -1
- package/stencil/{user-deposit-withdrawal-C5lc1C0l.js → user-deposit-withdrawal-BXuiRURM.js} +366 -338
- package/stencil/{user-deposit-withdrawal-DmXcotOq.js → user-deposit-withdrawal-CL7rhukA.js} +321 -294
- package/stencil/user-deposit-withdrawal-gb0EFmeV.cjs +72 -0
- package/stencil/{user-transaction-history-BdbQJzhb.js → user-transaction-history-DCZDdxLh.js} +2 -2
- package/stencil/{user-transaction-history-CcfxBfFN.js → user-transaction-history-E1bvLWYx.js} +2 -2
- package/stencil/{user-transaction-history-CucZiFYD.cjs → user-transaction-history-_0g5E0XE.cjs} +1 -1
- package/stencil/{user-transaction-history_2-B2XvgToy.cjs → user-transaction-history_2-BsrwI7Ib.cjs} +275 -275
- package/stencil/{user-transaction-history_2-Ds0pNCu8.js → user-transaction-history_2-C5uqpRMQ.js} +1701 -1651
- package/stencil/{user-transaction-history_2-B9fxyLUj.js → user-transaction-history_2-DXX9cR5-.js} +916 -911
- package/components/GeneralLogout-0J1RtGyR.js +0 -5018
- package/components/GeneralLogout-CmR1r8PX.cjs +0 -21
- package/components/GeneralLogout-CwcvAxfM.js +0 -4981
- package/components/PlayerAccountBettingHistory-Bf-VPJhk.cjs +0 -1
- package/components/PlayerAccountBettingHistory-CiMelnLz.js +0 -311
- package/components/PlayerAccountBettingHistory-Cr9hPDou.js +0 -310
- package/components/PlayerAccountBiometrics-j15j-n3y.cjs +0 -1
- package/components/PlayerAccountBiometricsAction-BJrkhDoI.js +0 -403
- package/components/PlayerAccountBiometricsAction-BcR2gS30.js +0 -386
- package/components/PlayerAccountBiometricsAction-z16q0M2J.cjs +0 -1
- package/components/PlayerAccountClosure-CxxMCXDa.cjs +0 -1
- package/components/PlayerAccountController-0zwzJJ4s.js +0 -8738
- package/components/PlayerAccountController-Cg3bzQs5.js +0 -8721
- package/components/PlayerAccountController-J-78lsk8.cjs +0 -1
- package/components/PlayerAccountGamingLimits-DdwsiJT8.cjs +0 -1
- package/components/PlayerAccountGamingLimitsConfirmationModal-BiEiNlIc.cjs +0 -1
- package/components/PlayerAccountGamingLimitsGroupEdit-2iDWNhRl.js +0 -4781
- package/components/PlayerAccountGamingLimitsGroupEdit-CsTpmmhw.js +0 -4781
- package/components/PlayerAccountGamingLimitsGroupEdit-gLF0R4uM.cjs +0 -2
- package/components/PlayerAccountGamingLimitsHistory2-D3h2vvVL.cjs +0 -1
- package/components/PlayerAccountGamingLimitsInfoCard-CUhqA1Ww.cjs +0 -1
- package/components/PlayerAccountGamingLimitsPopup-DJbPWFdb.cjs +0 -1
- package/components/PlayerAccountGamingLimitsWrapper2-1lOfUhUT.cjs +0 -4
- package/components/PlayerAccountGeneralConfirmationModal-BCMD8hM8.cjs +0 -1
- package/components/PlayerAccountMenu-DXhrPxvF.cjs +0 -1
- package/components/PlayerAccountModal-BpTtaUfX.cjs +0 -1
- package/components/PlayerAccountNotifications-CMZltoyc.cjs +0 -1
- package/components/PlayerAccountProductRestriction-Dl552qim.js +0 -17524
- package/components/PlayerAccountProductRestriction-THYKSRMa.js +0 -17559
- package/components/PlayerAccountReviewFrequency-BeI7-JB-.cjs +0 -4
- package/components/PlayerAccountTimeout-BRlyos9t.cjs +0 -1
- package/components/PlayerAccountTimeout-BVyjYoqw.js +0 -975
- package/components/PlayerAccountTimeout-CkMUko7-.js +0 -975
- package/components/PlayerAccountTransactionsHistory-DlCJ6V4t.cjs +0 -4
- package/components/PlayerActiveBonuses-CQXEEx6M.cjs +0 -4
- package/components/PlayerBonusCard-DqB-YOwa.cjs +0 -1
- package/components/PlayerBonusHistory-BbO5bAQY.js +0 -1106
- package/components/PlayerBonusHistory-C6ZPMR2L.js +0 -1095
- package/components/PlayerBonusHistory-DtiQesaY.cjs +0 -4
- package/components/PlayerChangePassword-IADHpyQs.cjs +0 -3
- package/components/PlayerDeposit-CN2QU967.cjs +0 -1
- package/components/PlayerGamingHistory-2XEKCfky.cjs +0 -1
- package/components/PlayerPendingWithdrawals-HXAehYWA.cjs +0 -1
- package/components/PlayerProfileInfo-wZEXXCWQ.cjs +0 -4
- package/components/PlayerRealityCheck-DWoQCHkQ.cjs +0 -1
- package/components/PlayerTransactionHistory-CHKGqwam.cjs +0 -1
- package/components/PlayerWithdrawal-DhfwYn8c.cjs +0 -1
- package/stencil/app-globals-0f993ce5-DgYhdguE.cjs +0 -1
- package/stencil/pam-change-password-zaJZcylb.cjs +0 -1
- package/stencil/user-deposit-withdrawal-DfWpITDc.cjs +0 -72
package/components/{PlayerAccountProductRestriction-Drc1Iu2o.cjs → PlayerBonusHistory-CKhVhlwo.cjs}
RENAMED
|
@@ -1,48 +1,49 @@
|
|
|
1
|
-
"use strict";var pn=Object.defineProperty,mn=Object.defineProperties;var _n=Object.getOwnPropertyDescriptors;var Xi=Object.getOwnPropertySymbols;var fn=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable;var Zi=(o,e,t)=>e in o?pn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,Qi=(o,e)=>{for(var t in e||(e={}))fn.call(e,t)&&Zi(o,t,e[t]);if(Xi)for(var t of Xi(e))vn.call(e,t)&&Zi(o,t,e[t]);return o},er=(o,e)=>mn(o,_n(e));var tr=(o,e,t)=>new Promise((i,r)=>{var s=l=>{try{n(t.next(l))}catch(c){r(c)}},a=l=>{try{n(t.throw(l))}catch(c){r(c)}},n=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,a);n((t=t.apply(o,e)).next())});const d=require("./GeneralLogout-CmR1r8PX.cjs");require("../stencil/ui-skeleton-C2ZVNvDq.cjs");require("./PlayerAccountGamingLimitsGroupEdit-gLF0R4uM.cjs");if(typeof window!="undefined"){let o=function(e){return function(...t){try{return e.apply(this,t)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=o(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGeneralConfirmationModal-BCMD8hM8.cjs")).then(({default:e})=>{!customElements.get("player-account-general-confirmation-modal")&&customElements.define("player-account-general-confirmation-modal",e.element)})}var cs={exports:{}};(function(o,e){(function(t,i){o.exports=i()})(d.commonjsGlobal,function(){var t=1e3,i=6e4,r=36e5,s="millisecond",a="second",n="minute",l="hour",c="day",h="week",u="month",_="quarter",p="year",x="date",P="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,N={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(k){var b=["th","st","nd","rd"],f=k%100;return"["+k+(b[(f-20)%10]||b[f]||b[0])+"]"}},L=function(k,b,f){var y=String(k);return!y||y.length>=b?k:""+Array(b+1-y.length).join(f)+k},ee={s:L,z:function(k){var b=-k.utcOffset(),f=Math.abs(b),y=Math.floor(f/60),v=f%60;return(b<=0?"+":"-")+L(y,2,"0")+":"+L(v,2,"0")},m:function k(b,f){if(b.date()<f.date())return-k(f,b);var y=12*(f.year()-b.year())+(f.month()-b.month()),v=b.clone().add(y,u),S=f-v<0,E=b.clone().add(y+(S?-1:1),u);return+(-(y+(f-v)/(S?v-E:E-v))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:u,y:p,w:h,d:c,D:x,h:l,m:n,s:a,ms:s,Q:_}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},H="en",I={};I[H]=N;var he="$isDayjsObject",oe=function(k){return k instanceof de||!(!k||!k[he])},le=function k(b,f,y){var v;if(!b)return H;if(typeof b=="string"){var S=b.toLowerCase();I[S]&&(v=S),f&&(I[S]=f,v=S);var E=b.split("-");if(!v&&E.length>1)return k(E[0])}else{var M=b.name;I[M]=b,v=M}return!y&&v&&(H=v),v||!y&&H},G=function(k,b){if(oe(k))return k.clone();var f=typeof b=="object"?b:{};return f.date=k,f.args=arguments,new de(f)},D=ee;D.l=le,D.i=oe,D.w=function(k,b){return G(k,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var de=function(){function k(f){this.$L=le(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[he]=!0}var b=k.prototype;return b.parse=function(f){this.$d=function(y){var v=y.date,S=y.utc;if(v===null)return new Date(NaN);if(D.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var E=v.match(A);if(E){var M=E[2]-1||0,W=(E[7]||"0").substring(0,3);return S?new Date(Date.UTC(E[1],M,E[3]||1,E[4]||0,E[5]||0,E[6]||0,W)):new Date(E[1],M,E[3]||1,E[4]||0,E[5]||0,E[6]||0,W)}}return new Date(v)}(f),this.init()},b.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},b.$utils=function(){return D},b.isValid=function(){return this.$d.toString()!==P},b.isSame=function(f,y){var v=G(f);return this.startOf(y)<=v&&v<=this.endOf(y)},b.isAfter=function(f,y){return G(f)<this.startOf(y)},b.isBefore=function(f,y){return this.endOf(y)<G(f)},b.$g=function(f,y,v){return D.u(f)?this[y]:this.set(v,f)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(f,y){var v=this,S=!!D.u(y)||y,E=D.p(f),M=function(K,j){var pe=D.w(v.$u?Date.UTC(v.$y,j,K):new Date(v.$y,j,K),v);return S?pe:pe.endOf(c)},W=function(K,j){return D.w(v.toDate()[K].apply(v.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(j)),v)},Y=this.$W,J=this.$M,X=this.$D,Ce="set"+(this.$u?"UTC":"");switch(E){case p:return S?M(1,0):M(31,11);case u:return S?M(1,J):M(0,J+1);case h:var te=this.$locale().weekStart||0,ue=(Y<te?Y+7:Y)-te;return M(S?X-ue:X+(6-ue),J);case c:case x:return W(Ce+"Hours",0);case l:return W(Ce+"Minutes",1);case n:return W(Ce+"Seconds",2);case a:return W(Ce+"Milliseconds",3);default:return this.clone()}},b.endOf=function(f){return this.startOf(f,!1)},b.$set=function(f,y){var v,S=D.p(f),E="set"+(this.$u?"UTC":""),M=(v={},v[c]=E+"Date",v[x]=E+"Date",v[u]=E+"Month",v[p]=E+"FullYear",v[l]=E+"Hours",v[n]=E+"Minutes",v[a]=E+"Seconds",v[s]=E+"Milliseconds",v)[S],W=S===c?this.$D+(y-this.$W):y;if(S===u||S===p){var Y=this.clone().set(x,1);Y.$d[M](W),Y.init(),this.$d=Y.set(x,Math.min(this.$D,Y.daysInMonth())).$d}else M&&this.$d[M](W);return this.init(),this},b.set=function(f,y){return this.clone().$set(f,y)},b.get=function(f){return this[D.p(f)]()},b.add=function(f,y){var v,S=this;f=Number(f);var E=D.p(y),M=function(J){var X=G(S);return D.w(X.date(X.date()+Math.round(J*f)),S)};if(E===u)return this.set(u,this.$M+f);if(E===p)return this.set(p,this.$y+f);if(E===c)return M(1);if(E===h)return M(7);var W=(v={},v[n]=i,v[l]=r,v[a]=t,v)[E]||1,Y=this.$d.getTime()+f*W;return D.w(Y,this)},b.subtract=function(f,y){return this.add(-1*f,y)},b.format=function(f){var y=this,v=this.$locale();if(!this.isValid())return v.invalidDate||P;var S=f||"YYYY-MM-DDTHH:mm:ssZ",E=D.z(this),M=this.$H,W=this.$m,Y=this.$M,J=v.weekdays,X=v.months,Ce=v.meridiem,te=function(j,pe,we,ie){return j&&(j[pe]||j(y,S))||we[pe].slice(0,ie)},ue=function(j){return D.s(M%12||12,j,"0")},K=Ce||function(j,pe,we){var ie=j<12?"AM":"PM";return we?ie.toLowerCase():ie};return S.replace(B,function(j,pe){return pe||function(we){switch(we){case"YY":return String(y.$y).slice(-2);case"YYYY":return D.s(y.$y,4,"0");case"M":return Y+1;case"MM":return D.s(Y+1,2,"0");case"MMM":return te(v.monthsShort,Y,X,3);case"MMMM":return te(X,Y);case"D":return y.$D;case"DD":return D.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return te(v.weekdaysMin,y.$W,J,2);case"ddd":return te(v.weekdaysShort,y.$W,J,3);case"dddd":return J[y.$W];case"H":return String(M);case"HH":return D.s(M,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return K(M,W,!0);case"A":return K(M,W,!1);case"m":return String(W);case"mm":return D.s(W,2,"0");case"s":return String(y.$s);case"ss":return D.s(y.$s,2,"0");case"SSS":return D.s(y.$ms,3,"0");case"Z":return E}return null}(j)||E.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(f,y,v){var S,E=this,M=D.p(y),W=G(f),Y=(W.utcOffset()-this.utcOffset())*i,J=this-W,X=function(){return D.m(E,W)};switch(M){case p:S=X()/12;break;case u:S=X();break;case _:S=X()/3;break;case h:S=(J-Y)/6048e5;break;case c:S=(J-Y)/864e5;break;case l:S=J/r;break;case n:S=J/i;break;case a:S=J/t;break;default:S=J}return v?S:D.a(S)},b.daysInMonth=function(){return this.endOf(u).$D},b.$locale=function(){return I[this.$L]},b.locale=function(f,y){if(!f)return this.$L;var v=this.clone(),S=le(f,y,!0);return S&&(v.$L=S),v},b.clone=function(){return D.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},k}(),fe=de.prototype;return G.prototype=fe,[["$ms",s],["$s",a],["$m",n],["$H",l],["$W",c],["$M",u],["$y",p],["$D",x]].forEach(function(k){fe[k[1]]=function(b){return this.$g(b,k[0],k[1])}}),G.extend=function(k,b){return k.$i||(k(b,de,G),k.$i=!0),G},G.locale=le,G.isDayjs=oe,G.unix=function(k){return G(1e3*k)},G.en=I[H],G.Ls=I,G.p={},G})})(cs);var gn=cs.exports;const je=d.getDefaultExportFromCjs(gn);var bn=Object.defineProperty,yn=Object.defineProperties,xn=Object.getOwnPropertyDescriptors,or=Object.getOwnPropertySymbols,wn=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,$o=(o,e,t)=>e in o?bn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,Qt=(o,e)=>{for(var t in e||(e={}))wn.call(e,t)&&$o(o,t,e[t]);if(or)for(var t of or(e))Cn.call(e,t)&&$o(o,t,e[t]);return o},hs=(o,e)=>yn(o,xn(e)),ce=(o,e,t)=>($o(o,typeof e!="symbol"?e+"":e,t),t),eo=(o,e,t)=>new Promise((i,r)=>{var s=l=>{try{n(t.next(l))}catch(c){r(c)}},a=l=>{try{n(t.throw(l))}catch(c){r(c)}},n=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,a);n((t=t.apply(o,e)).next())});/**
|
|
1
|
+
"use strict";var ll=Object.defineProperty,dl=Object.defineProperties;var cl=Object.getOwnPropertyDescriptors;var So=Object.getOwnPropertySymbols;var ul=Object.prototype.hasOwnProperty,hl=Object.prototype.propertyIsEnumerable;var Oo=(i,e,t)=>e in i?ll(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,jr=(i,e)=>{for(var t in e||(e={}))ul.call(e,t)&&Oo(i,t,e[t]);if(So)for(var t of So(e))hl.call(e,t)&&Oo(i,t,e[t]);return i},Gr=(i,e)=>dl(i,cl(e));const c=require("./PlayerAccountController-BnmD5Ofx.cjs");require("./PlayerActiveBonuses-M-vgtJjj.cjs");function Me(i){"@babel/helpers - typeof";return Me=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},Me(i)}function le(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 q(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function re(i){q(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||Me(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 pl(i,e){q(2,arguments);var t=re(i),r=le(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var o=t.getDate(),a=new Date(t.getTime());a.setMonth(t.getMonth()+r+1,0);var n=a.getDate();return o>=n?a:(t.setFullYear(a.getFullYear(),a.getMonth(),o),t)}function ml(i,e){q(2,arguments);var t=re(i).getTime(),r=le(e);return new Date(t+r)}var _l={};function gt(){return _l}function Wa(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()}function fl(i){q(1,arguments);var e=re(i);return e.setHours(0,0,0,0),e}var vl=6e4,gl=36e5,bl=1e3;function yl(i){return q(1,arguments),i instanceof Date||Me(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function wl(i){if(q(1,arguments),!yl(i)&&typeof i!="number")return!1;var e=re(i);return!isNaN(Number(e))}function xl(i){q(1,arguments);var e=re(i);return e.setHours(23,59,59,999),e}function qa(i,e){q(2,arguments);var t=le(e);return ml(i,-t)}var Cl=864e5;function kl(i){q(1,arguments);var e=re(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),o=t-r;return Math.floor(o/Cl)+1}function pt(i){q(1,arguments);var e=1,t=re(i),r=t.getUTCDay(),o=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function Ya(i){q(1,arguments);var e=re(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var o=pt(r),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var n=pt(a);return e.getTime()>=o.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function El(i){q(1,arguments);var e=Ya(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=pt(t);return r}var Pl=6048e5;function ja(i){q(1,arguments);var e=re(i),t=pt(e).getTime()-El(e).getTime();return Math.round(t/Pl)+1}function Ze(i,e){var t,r,o,a,n,s,l,d;q(1,arguments);var u=gt(),h=le((t=(r=(o=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=re(i),m=p.getUTCDay(),b=(m<h?7:0)+m-h;return p.setUTCDate(p.getUTCDate()-b),p.setUTCHours(0,0,0,0),p}function Vi(i,e){var t,r,o,a,n,s,l,d;q(1,arguments);var u=re(i),h=u.getUTCFullYear(),p=gt(),m=le((t=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(h+1,0,m),b.setUTCHours(0,0,0,0);var w=Ze(b,e),x=new Date(0);x.setUTCFullYear(h,0,m),x.setUTCHours(0,0,0,0);var k=Ze(x,e);return u.getTime()>=w.getTime()?h+1:u.getTime()>=k.getTime()?h:h-1}function Al(i,e){var t,r,o,a,n,s,l,d;q(1,arguments);var u=gt(),h=le((t=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),p=Vi(i,e),m=new Date(0);m.setUTCFullYear(p,0,h),m.setUTCHours(0,0,0,0);var b=Ze(m,e);return b}var Tl=6048e5;function Ga(i,e){q(1,arguments);var t=re(i),r=Ze(t,e).getTime()-Al(t,e).getTime();return Math.round(r/Tl)+1}function R(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var Fe={y:function(e,t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return R(t==="yy"?o%100:o,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):R(r+1,2)},d:function(e,t){return R(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 R(e.getUTCHours()%12||12,t.length)},H:function(e,t){return R(e.getUTCHours(),t.length)},m:function(e,t){return R(e.getUTCMinutes(),t.length)},s:function(e,t){return R(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,o=e.getUTCMilliseconds(),a=Math.floor(o*Math.pow(10,r-3));return R(a,t.length)}},at={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Il={G:function(e,t,r){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var o=e.getUTCFullYear(),a=o>0?o:1-o;return r.ordinalNumber(a,{unit:"year"})}return Fe.y(e,t)},Y:function(e,t,r,o){var a=Vi(e,o),n=a>0?a:1-a;if(t==="YY"){var s=n%100;return R(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):R(n,t.length)},R:function(e,t){var r=Ya(e);return R(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return R(r,t.length)},Q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return R(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return R(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){var o=e.getUTCMonth();switch(t){case"M":case"MM":return Fe.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return R(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){var a=Ga(e,o);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):R(a,t.length)},I:function(e,t,r){var o=ja(e);return t==="Io"?r.ordinalNumber(o,{unit:"week"}):R(o,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Fe.d(e,t)},D:function(e,t,r){var o=kl(e);return t==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):R(o,t.length)},E:function(e,t,r){var o=e.getUTCDay();switch(t){case"E":case"EE":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"})}},e:function(e,t,r,o){var a=e.getUTCDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return R(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});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"})}},c:function(e,t,r,o){var a=e.getUTCDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return R(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var o=e.getUTCDay(),a=o===0?7:o;switch(t){case"i":return String(a);case"ii":return R(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){var o=e.getUTCHours(),a=o/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){var o=e.getUTCHours(),a;switch(o===12?a=at.noon:o===0?a=at.midnight:a=o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){var o=e.getUTCHours(),a;switch(o>=17?a=at.evening:o>=12?a=at.afternoon:o>=4?a=at.morning:a=at.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var o=e.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return Fe.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Fe.H(e,t)},K:function(e,t,r){var o=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(o,{unit:"hour"}):R(o,t.length)},k:function(e,t,r){var o=e.getUTCHours();return o===0&&(o=24),t==="ko"?r.ordinalNumber(o,{unit:"hour"}):R(o,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Fe.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Fe.s(e,t)},S:function(e,t){return Fe.S(e,t)},X:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return No(n);case"XXXX":case"XX":return Ke(n);case"XXXXX":case"XXX":default:return Ke(n,":")}},x:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"x":return No(n);case"xxxx":case"xx":return Ke(n);case"xxxxx":case"xxx":default:return Ke(n,":")}},O:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mo(n,":");case"OOOO":default:return"GMT"+Ke(n,":")}},z:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mo(n,":");case"zzzz":default:return"GMT"+Ke(n,":")}},t:function(e,t,r,o){var a=o._originalDate||e,n=Math.floor(a.getTime()/1e3);return R(n,t.length)},T:function(e,t,r,o){var a=o._originalDate||e,n=a.getTime();return R(n,t.length)}};function Mo(i,e){var t=i>0?"-":"+",r=Math.abs(i),o=Math.floor(r/60),a=r%60;if(a===0)return t+String(o);var n=e;return t+String(o)+n+R(a,2)}function No(i,e){if(i%60===0){var t=i>0?"-":"+";return t+R(Math.abs(i)/60,2)}return Ke(i,e)}function Ke(i,e){var t=e||"",r=i>0?"-":"+",o=Math.abs(i),a=R(Math.floor(o/60),2),n=R(o%60,2);return r+a+t+n}var zo=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"})}},Ka=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"})}},Dl=function(e,t){var r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return zo(e,t);var n;switch(o){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}}",zo(o,t)).replace("{{time}}",Ka(a,t))},ui={p:Ka,P:Dl},Sl=["D","DD"],Ol=["YY","YYYY"];function Xa(i){return Sl.indexOf(i)!==-1}function Qa(i){return Ol.indexOf(i)!==-1}function gr(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 Ml={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"}},Nl=function(e,t,r){var o,a=Ml[e];return typeof a=="string"?o=a:t===1?o=a.one:o=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function Kr(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 zl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ll={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Bl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fl={date:Kr({formats:zl,defaultWidth:"full"}),time:Kr({formats:Ll,defaultWidth:"full"}),dateTime:Kr({formats:Bl,defaultWidth:"full"})},Vl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Rl=function(e,t,r,o){return Vl[e]};function Pt(i){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",o;if(r==="formatting"&&i.formattingValues){var a=i.defaultFormattingWidth||i.defaultWidth,n=t!=null&&t.width?String(t.width):a;o=i.formattingValues[n]||i.formattingValues[a]}else{var s=i.defaultWidth,l=t!=null&&t.width?String(t.width):i.defaultWidth;o=i.values[l]||i.values[s]}var d=i.argumentCallback?i.argumentCallback(e):e;return o[d]}}var Hl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$l={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ul={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"]},Wl={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"]},ql={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"}},Yl={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"}},jl=function(e,t){var r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Gl={ordinalNumber:jl,era:Pt({values:Hl,defaultWidth:"wide"}),quarter:Pt({values:$l,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Pt({values:Ul,defaultWidth:"wide"}),day:Pt({values:Wl,defaultWidth:"wide"}),dayPeriod:Pt({values:ql,defaultWidth:"wide",formattingValues:Yl,defaultFormattingWidth:"wide"})};function At(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,o=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],a=e.match(o);if(!a)return null;var n=a[0],s=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],l=Array.isArray(s)?Xl(s,function(h){return h.test(n)}):Kl(s,function(h){return h.test(n)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var u=e.slice(n.length);return{value:d,rest:u}}}function Kl(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function Xl(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function Ql(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 o=r[0],a=e.match(i.parsePattern);if(!a)return null;var n=i.valueCallback?i.valueCallback(a[0]):a[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(o.length);return{value:n,rest:s}}}var Jl=/^(\d+)(th|st|nd|rd)?/i,Zl=/\d+/i,ed={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},td={any:[/^b/i,/^(a|c)/i]},rd={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},id={any:[/1/i,/2/i,/3/i,/4/i]},od={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},ad={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]},nd={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},sd={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]},ld={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},dd={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}},cd={ordinalNumber:Ql({matchPattern:Jl,parsePattern:Zl,valueCallback:function(e){return parseInt(e,10)}}),era:At({matchPatterns:ed,defaultMatchWidth:"wide",parsePatterns:td,defaultParseWidth:"any"}),quarter:At({matchPatterns:rd,defaultMatchWidth:"wide",parsePatterns:id,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:At({matchPatterns:od,defaultMatchWidth:"wide",parsePatterns:ad,defaultParseWidth:"any"}),day:At({matchPatterns:nd,defaultMatchWidth:"wide",parsePatterns:sd,defaultParseWidth:"any"}),dayPeriod:At({matchPatterns:ld,defaultMatchWidth:"any",parsePatterns:dd,defaultParseWidth:"any"})},Ja={code:"en-US",formatDistance:Nl,formatLong:Fl,formatRelative:Rl,localize:Gl,match:cd,options:{weekStartsOn:0,firstWeekContainsDate:1}},ud=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pd=/^'([^]*?)'?$/,md=/''/g,_d=/[a-zA-Z]/;function Te(i,e,t){var r,o,a,n,s,l,d,u,h,p,m,b,w,x;q(2,arguments);var k=String(e),E=gt(),B=(r=(o=void 0)!==null&&o!==void 0?o:E.locale)!==null&&r!==void 0?r:Ja,F=le((a=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:E.firstWeekContainsDate)!==null&&n!==void 0?n:(d=E.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=le((h=(p=(m=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&p!==void 0?p:(w=E.locale)===null||w===void 0||(x=w.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!B.localize)throw new RangeError("locale must contain localize property");if(!B.formatLong)throw new RangeError("locale must contain formatLong property");var C=re(i);if(!wl(C))throw new RangeError("Invalid time value");var W=Wa(C),M=qa(C,W),ne={firstWeekContainsDate:F,weekStartsOn:O,locale:B,_originalDate:C},me=k.match(hd).map(function($){var Z=$[0];if(Z==="p"||Z==="P"){var de=ui[Z];return de($,B.formatLong)}return $}).join("").match(ud).map(function($){if($==="''")return"'";var Z=$[0];if(Z==="'")return fd($);var de=Il[Z];if(de)return Qa($)&&gr($,e,String(i)),Xa($)&&gr($,e,String(i)),de(M,$,B.localize,ne);if(Z.match(_d))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Z+"`");return $}).join("");return me}function fd(i){var e=i.match(pd);return e?e[1].replace(md,"'"):i}function vd(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 gd(i){return q(1,arguments),re(i).getFullYear()}function Lo(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 bd(i,e){if(i){if(typeof i=="string")return Lo(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)?Lo(i,e):void 0}}function Bo(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=bd(i))||e){t&&(i=t);var r=0,o=function(){};return{s:o,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(d){throw d},f:o}}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 a,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,a=d},f:function(){try{n||t.return==null||t.return()}finally{if(s)throw a}}}}function v(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function hi(i,e){return hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},hi(i,e)}function N(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&&hi(i,e)}function br(i){return br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},br(i)}function Za(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Za=function(){return!!i})()}function yd(i,e){if(e&&(Me(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(i)}function z(i){var e=Za();return function(){var t,r=br(i);if(e){var o=br(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return yd(this,t)}}function T(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function wd(i,e){if(Me(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e);if(Me(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function en(i){var e=wd(i,"string");return Me(e)=="symbol"?e:e+""}function xd(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,en(r.key),r)}}function I(i,e,t){return e&&xd(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function f(i,e,t){return(e=en(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var Cd=10,tn=function(){function i(){T(this,i),f(this,"priority",void 0),f(this,"subPriority",0)}return I(i,[{key:"validate",value:function(t,r){return!0}}]),i}(),kd=function(i){N(t,i);var e=z(t);function t(r,o,a,n,s){var l;return T(this,t),l=e.call(this),l.value=r,l.validateValue=o,l.setValue=a,l.priority=n,s&&(l.subPriority=s),l}return I(t,[{key:"validate",value:function(o,a){return this.validateValue(o,this.value,a)}},{key:"set",value:function(o,a,n){return this.setValue(o,a,this.value,n)}}]),t}(tn),Ed=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",Cd),f(v(r),"subPriority",-1),r}return I(t,[{key:"set",value:function(o,a){if(a.timestampIsSet)return o;var n=new Date(0);return n.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),n.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),n}}]),t}(tn),V=function(){function i(){T(this,i),f(this,"incompatibleTokens",void 0),f(this,"priority",void 0),f(this,"subPriority",void 0)}return I(i,[{key:"run",value:function(t,r,o,a){var n=this.parse(t,r,o,a);return n?{setter:new kd(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,o){return!0}}]),i}(),Pd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",140),f(v(r),"incompatibleTokens",["R","u","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"})||n.era(o,{width:"narrow"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})||n.era(o,{width:"abbreviated"})||n.era(o,{width:"narrow"})}}},{key:"set",value:function(o,a,n){return a.era=n,o.setUTCFullYear(n,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),X={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}/},ke={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 j(i,e){var t=e.match(i);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function Ee(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,o=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,n=t[5]?parseInt(t[5],10):0;return{value:r*(o*gl+a*vl+n*bl),rest:e.slice(t[0].length)}}function rn(i){return j(X.anyDigitsSigned,i)}function G(i,e){switch(i){case 1:return j(X.singleDigit,e);case 2:return j(X.twoDigits,e);case 3:return j(X.threeDigits,e);case 4:return j(X.fourDigits,e);default:return j(new RegExp("^\\d{1,"+i+"}"),e)}}function yr(i,e){switch(i){case 1:return j(X.singleDigitSigned,e);case 2:return j(X.twoDigitsSigned,e);case 3:return j(X.threeDigitsSigned,e);case 4:return j(X.fourDigitsSigned,e);default:return j(new RegExp("^-?\\d{1,"+i+"}"),e)}}function Ri(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 on(i,e){var t=e>0,r=t?e:1-e,o;if(r<=50)o=i||100;else{var a=r+50,n=Math.floor(a/100)*100,s=i>=a%100;o=i+n-(s?100:0)}return t?o:1-o}function an(i){return i%400===0||i%4===0&&i%100!==0}var Ad=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="yy"}};switch(a){case"y":return Q(G(4,o),s);case"yo":return Q(n.ordinalNumber(o,{unit:"year"}),s);default:return Q(G(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,n){var s=o.getUTCFullYear();if(n.isTwoDigitYear){var l=on(n.year,s);return o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}var d=!("era"in a)||a.era===1?n.year:1-n.year;return o.setUTCFullYear(d,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Td=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return Q(G(4,o),s);case"Yo":return Q(n.ordinalNumber(o,{unit:"year"}),s);default:return Q(G(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,n,s){var l=Vi(o,s);if(n.isTwoDigitYear){var d=on(n.year,l);return o.setUTCFullYear(d,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Ze(o,s)}var u=!("era"in a)||a.era===1?n.year:1-n.year;return o.setUTCFullYear(u,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Ze(o,s)}}]),t}(V),Id=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a){return yr(a==="R"?4:a.length,o)}},{key:"set",value:function(o,a,n){var s=new Date(0);return s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),pt(s)}}]),t}(V),Dd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a){return yr(a==="u"?4:a.length,o)}},{key:"set",value:function(o,a,n){return o.setUTCFullYear(n,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Sd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",120),f(v(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"Q":case"QQ":return G(a.length,o);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"})||n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})||n.quarter(o,{width:"abbreviated",context:"formatting"})||n.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,n){return o.setUTCMonth((n-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Od=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",120),f(v(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"q":case"qq":return G(a.length,o);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"})||n.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})||n.quarter(o,{width:"abbreviated",context:"standalone"})||n.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,n){return o.setUTCMonth((n-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Md=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),f(v(r),"priority",110),r}return I(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d-1};switch(a){case"M":return Q(j(X.month,o),s);case"MM":return Q(G(2,o),s);case"Mo":return Q(n.ordinalNumber(o,{unit:"month"}),s);case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"})||n.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})||n.month(o,{width:"abbreviated",context:"formatting"})||n.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){return o.setUTCMonth(n,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Nd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",110),f(v(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d-1};switch(a){case"L":return Q(j(X.month,o),s);case"LL":return Q(G(2,o),s);case"Lo":return Q(n.ordinalNumber(o,{unit:"month"}),s);case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"})||n.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})||n.month(o,{width:"abbreviated",context:"standalone"})||n.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){return o.setUTCMonth(n,1),o.setUTCHours(0,0,0,0),o}}]),t}(V);function zd(i,e,t){q(2,arguments);var r=re(i),o=le(e),a=Ga(r,t)-o;return r.setUTCDate(r.getUTCDate()-a*7),r}var Ld=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",100),f(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"w":return j(X.week,o);case"wo":return n.ordinalNumber(o,{unit:"week"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,n,s){return Ze(zd(o,n,s),s)}}]),t}(V);function Bd(i,e){q(2,arguments);var t=re(i),r=le(e),o=ja(t)-r;return t.setUTCDate(t.getUTCDate()-o*7),t}var Fd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",100),f(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"I":return j(X.week,o);case"Io":return n.ordinalNumber(o,{unit:"week"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,n){return pt(Bd(o,n))}}]),t}(V),Vd=[31,28,31,30,31,30,31,31,30,31,30,31],Rd=[31,29,31,30,31,30,31,31,30,31,30,31],Hd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"subPriority",1),f(v(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"d":return j(X.date,o);case"do":return n.ordinalNumber(o,{unit:"date"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){var n=o.getUTCFullYear(),s=an(n),l=o.getUTCMonth();return s?a>=1&&a<=Rd[l]:a>=1&&a<=Vd[l]}},{key:"set",value:function(o,a,n){return o.setUTCDate(n),o.setUTCHours(0,0,0,0),o}}]),t}(V),$d=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"subpriority",1),f(v(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"D":case"DD":return j(X.dayOfYear,o);case"Do":return n.ordinalNumber(o,{unit:"date"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){var n=o.getUTCFullYear(),s=an(n);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(o,a,n){return o.setUTCMonth(0,n),o.setUTCHours(0,0,0,0),o}}]),t}(V);function Hi(i,e,t){var r,o,a,n,s,l,d,u;q(2,arguments);var h=gt(),p=le((r=(o=(a=(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&&a!==void 0?a:h.weekStartsOn)!==null&&o!==void 0?o:(d=h.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=re(i),b=le(e),w=m.getUTCDay(),x=b%7,k=(x+7)%7,E=(k<p?7:0)+b-w;return m.setUTCDate(m.getUTCDate()+E),m}var Ud=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=Hi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(V),Wd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n,s){var l=function(u){var h=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+h};switch(a){case"e":case"ee":return Q(G(a.length,o),l);case"eo":return Q(n.ordinalNumber(o,{unit:"day"}),l);case"eee":return n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=Hi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(V),qd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n,s){var l=function(u){var h=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+h};switch(a){case"c":case"cc":return Q(G(a.length,o),l);case"co":return Q(n.ordinalNumber(o,{unit:"day"}),l);case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"})||n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})||n.day(o,{width:"abbreviated",context:"standalone"})||n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=Hi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(V);function Yd(i,e){q(2,arguments);var t=le(e);t%7===0&&(t=t-7);var r=1,o=re(i),a=o.getUTCDay(),n=t%7,s=(n+7)%7,l=(s<r?7:0)+t-a;return o.setUTCDate(o.getUTCDate()+l),o}var jd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d===0?7:d};switch(a){case"i":case"ii":return G(a.length,o);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return Q(n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s);case"iiiii":return Q(n.day(o,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Q(n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Q(n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(o,a){return a>=1&&a<=7}},{key:"set",value:function(o,a,n){return o=Yd(o,n),o.setUTCHours(0,0,0,0),o}}]),t}(V),Gd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",80),f(v(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"a":case"aa":case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(Ri(n),0,0,0),o}}]),t}(V),Kd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",80),f(v(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"b":case"bb":case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(Ri(n),0,0,0),o}}]),t}(V),Xd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",80),f(v(r),"incompatibleTokens",["a","b","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(Ri(n),0,0,0),o}}]),t}(V),Qd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["H","K","k","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"h":return j(X.hour12h,o);case"ho":return n.ordinalNumber(o,{unit:"hour"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=12}},{key:"set",value:function(o,a,n){var s=o.getUTCHours()>=12;return s&&n<12?o.setUTCHours(n+12,0,0,0):!s&&n===12?o.setUTCHours(0,0,0,0):o.setUTCHours(n,0,0,0),o}}]),t}(V),Jd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"H":return j(X.hour23h,o);case"Ho":return n.ordinalNumber(o,{unit:"hour"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=23}},{key:"set",value:function(o,a,n){return o.setUTCHours(n,0,0,0),o}}]),t}(V),Zd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["h","H","k","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"K":return j(X.hour11h,o);case"Ko":return n.ordinalNumber(o,{unit:"hour"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){var s=o.getUTCHours()>=12;return s&&n<12?o.setUTCHours(n+12,0,0,0):o.setUTCHours(n,0,0,0),o}}]),t}(V),ec=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"k":return j(X.hour24h,o);case"ko":return n.ordinalNumber(o,{unit:"hour"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=24}},{key:"set",value:function(o,a,n){var s=n<=24?n%24:n;return o.setUTCHours(s,0,0,0),o}}]),t}(V),tc=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",60),f(v(r),"incompatibleTokens",["t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"m":return j(X.minute,o);case"mo":return n.ordinalNumber(o,{unit:"minute"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,n){return o.setUTCMinutes(n,0,0),o}}]),t}(V),rc=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",50),f(v(r),"incompatibleTokens",["t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"s":return j(X.second,o);case"so":return n.ordinalNumber(o,{unit:"second"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,n){return o.setUTCSeconds(n,0),o}}]),t}(V),ic=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",30),f(v(r),"incompatibleTokens",["t","T"]),r}return I(t,[{key:"parse",value:function(o,a){var n=function(l){return Math.floor(l*Math.pow(10,-a.length+3))};return Q(G(a.length,o),n)}},{key:"set",value:function(o,a,n){return o.setUTCMilliseconds(n),o}}]),t}(V),oc=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",10),f(v(r),"incompatibleTokens",["t","T","x"]),r}return I(t,[{key:"parse",value:function(o,a){switch(a){case"X":return Ee(ke.basicOptionalMinutes,o);case"XX":return Ee(ke.basic,o);case"XXXX":return Ee(ke.basicOptionalSeconds,o);case"XXXXX":return Ee(ke.extendedOptionalSeconds,o);case"XXX":default:return Ee(ke.extended,o)}}},{key:"set",value:function(o,a,n){return a.timestampIsSet?o:new Date(o.getTime()-n)}}]),t}(V),ac=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",10),f(v(r),"incompatibleTokens",["t","T","X"]),r}return I(t,[{key:"parse",value:function(o,a){switch(a){case"x":return Ee(ke.basicOptionalMinutes,o);case"xx":return Ee(ke.basic,o);case"xxxx":return Ee(ke.basicOptionalSeconds,o);case"xxxxx":return Ee(ke.extendedOptionalSeconds,o);case"xxx":default:return Ee(ke.extended,o)}}},{key:"set",value:function(o,a,n){return a.timestampIsSet?o:new Date(o.getTime()-n)}}]),t}(V),nc=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",40),f(v(r),"incompatibleTokens","*"),r}return I(t,[{key:"parse",value:function(o){return rn(o)}},{key:"set",value:function(o,a,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(V),sc=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",20),f(v(r),"incompatibleTokens","*"),r}return I(t,[{key:"parse",value:function(o){return rn(o)}},{key:"set",value:function(o,a,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(V),lc={G:new Pd,y:new Ad,Y:new Td,R:new Id,u:new Dd,Q:new Sd,q:new Od,M:new Md,L:new Nd,w:new Ld,I:new Fd,d:new Hd,D:new $d,E:new Ud,e:new Wd,c:new qd,i:new jd,a:new Gd,b:new Kd,B:new Xd,h:new Qd,H:new Jd,K:new Zd,k:new ec,m:new tc,s:new rc,S:new ic,X:new oc,x:new ac,t:new nc,T:new sc},dc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,uc=/^'([^]*?)'?$/,hc=/''/g,pc=/\S/,mc=/[a-zA-Z]/;function pi(i,e,t,r){var o,a,n,s,l,d,u,h,p,m,b,w,x,k;q(3,arguments);var E=String(i),B=String(e),F=gt(),O=(o=(a=void 0)!==null&&a!==void 0?a:F.locale)!==null&&o!==void 0?o:Ja;if(!O.match)throw new RangeError("locale must contain match property");var C=le((n=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:F.firstWeekContainsDate)!==null&&s!==void 0?s:(u=F.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=le((p=(m=(b=(w=void 0)!==null&&w!==void 0?w:void 0)!==null&&b!==void 0?b:F.weekStartsOn)!==null&&m!==void 0?m:(x=F.locale)===null||x===void 0||(k=x.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&p!==void 0?p:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(B==="")return E===""?re(t):new Date(NaN);var M={firstWeekContainsDate:C,weekStartsOn:W,locale:O},ne=[new Ed],me=B.match(cc).map(function(K){var A=K[0];if(A in ui){var oe=ui[A];return oe(K,O.formatLong)}return K}).join("").match(dc),$=[],Z=Bo(me),de;try{var ze=function(){var A=de.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Qa(A)&&gr(A,B,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Xa(A)&&gr(A,B,i);var oe=A[0],qe=lc[oe];if(qe){var Ct=qe.incompatibleTokens;if(Array.isArray(Ct)){var ar=$.find(function(Et){return Ct.includes(Et.token)||Et.token===oe});if(ar)throw new RangeError("The format string mustn't contain `".concat(ar.fullToken,"` and `").concat(A,"` at the same time"))}else if(qe.incompatibleTokens==="*"&&$.length>0)throw new RangeError("The format string mustn't contain `".concat(A,"` and any other token at the same time"));$.push({token:oe,fullToken:A});var kt=qe.run(E,A,O.match,M);if(!kt)return{v:new Date(NaN)};ne.push(kt.setter),E=kt.rest}else{if(oe.match(mc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+oe+"`");if(A==="''"?A="'":oe==="'"&&(A=_c(A)),E.indexOf(A)===0)E=E.slice(A.length);else return{v:new Date(NaN)}}};for(Z.s();!(de=Z.n()).done;){var ue=ze();if(Me(ue)==="object")return ue.v}}catch(K){Z.e(K)}finally{Z.f()}if(E.length>0&&pc.test(E))return new Date(NaN);var Le=ne.map(function(K){return K.priority}).sort(function(K,A){return A-K}).filter(function(K,A,oe){return oe.indexOf(K)===A}).map(function(K){return ne.filter(function(A){return A.priority===K}).sort(function(A,oe){return oe.subPriority-A.subPriority})}).map(function(K){return K[0]}),ye=re(t);if(isNaN(ye.getTime()))return new Date(NaN);var ee=qa(ye,Wa(ye)),U={},Y=Bo(Le),xt;try{for(Y.s();!(xt=Y.n()).done;){var or=xt.value;if(!or.validate(ee,M))return new Date(NaN);var We=or.set(ee,U,M);Array.isArray(We)?(ee=We[0],vd(U,We[1])):ee=We}}catch(K){Y.e(K)}finally{Y.f()}return ee}function _c(i){return i.match(uc)[1].replace(hc,"'")}function nn(i,e){q(2,arguments);var t=le(e);return pl(i,-t)}function Fo(i,e){c.addMessages(i,e)}function fc(i){c.$locale.set(i)}const Vo={en:{titleBonusesHistory:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{titleBonusesHistory:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{titleBonusesHistory:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{titleBonusesHistory:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{titleBonusesHistory:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{titleBonusesHistory:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."},hr:{titleBonusesHistory:"Povijest bonusa",dateFrom:"Od:",dateTo:"Do:",dateFilter:"Filter",noBonusHistory:"Nemate bonusa u povijesti."},"pt-br":{titleBonusesHistory:"Histórico de bônus",dateFrom:"De:",dateTo:"PARA:",dateFilter:"Filtro",noBonusHistory:"Não há bônus para o período selecionado"},"es-mx":{titleBonusesHistory:"Historial de bonos",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene bonus para el periodo seleccionado"},tr:{titleBonusesHistory:"Bonus Geçmişi",dateFrom:"İtibaren:",dateTo:"İle:",dateFilter:"Filtre",noBonusHistory:"Seçilen dönem için bonusunuz yok."},"en-us":{titleBonusesHistory:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."}};var vc=Object.defineProperty,gc=Object.defineProperties,bc=Object.getOwnPropertyDescriptors,Ro=Object.getOwnPropertySymbols,yc=Object.prototype.hasOwnProperty,wc=Object.prototype.propertyIsEnumerable,mi=(i,e,t)=>e in i?vc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,wr=(i,e)=>{for(var t in e||(e={}))yc.call(e,t)&&mi(i,t,e[t]);if(Ro)for(var t of Ro(e))wc.call(e,t)&&mi(i,t,e[t]);return i},sn=(i,e)=>gc(i,bc(e)),se=(i,e,t)=>(mi(i,typeof e!="symbol"?e+"":e,t),t),xr=(i,e,t)=>new Promise((r,o)=>{var a=l=>{try{s(t.next(l))}catch(d){o(d)}},n=l=>{try{s(t.throw(l))}catch(d){o(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(i,e)).next())});/**
|
|
2
3
|
* @license
|
|
3
4
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4
5
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
-
*/function
|
|
6
|
+
*/function P(i,e="24.5.10"){Object.defineProperty(i,"version",{get(){return e}});const t=customElements.get(i.is);if(!t)customElements.define(i.is,i);else{const r=t.version;r&&i.version&&r===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
|
|
6
7
|
* @license
|
|
7
8
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
8
9
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9
|
-
*/class
|
|
10
|
+
*/class xc extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}P(xc);/**
|
|
10
11
|
* @license
|
|
11
12
|
* Copyright 2019 Google LLC
|
|
12
13
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const
|
|
14
|
+
*/const _r=globalThis,$i=_r.ShadowRoot&&(_r.ShadyCSS===void 0||_r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ui=Symbol(),Ho=new WeakMap;let Wi=class{constructor(i,e,t){if(this._$cssResult$=!0,t!==Ui)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($i&&i===void 0){const t=e!==void 0&&e.length===1;t&&(i=Ho.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),t&&Ho.set(e,i))}return i}toString(){return this.cssText}};const Cc=i=>new Wi(typeof i=="string"?i:i+"",void 0,Ui),_=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,o,a)=>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.")})(o)+i[a+1],i[0]);return new Wi(t,i,Ui)},ln=(i,e)=>{if($i)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),o=_r.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)}},$o=$i?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return Cc(t)})(i):i;/**
|
|
14
15
|
* @license
|
|
15
16
|
* Copyright 2017 Google LLC
|
|
16
17
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/const{is:
|
|
18
|
+
*/const{is:kc,defineProperty:Ec,getOwnPropertyDescriptor:Pc,getOwnPropertyNames:Ac,getOwnPropertySymbols:Tc,getPrototypeOf:Ic}=Object,mt=globalThis,Uo=mt.trustedTypes,Dc=Uo?Uo.emptyScript:"",Wo=mt.reactiveElementPolyfillSupport,Lt=(i,e)=>i,_i={toAttribute(i,e){switch(e){case Boolean:i=i?Dc: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}},dn=(i,e)=>!kc(i,e),qo={attribute:!0,type:String,converter:_i,reflect:!1,useDefault:!1,hasChanged:dn};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),mt.litPropertyMetadata!=null||(mt.litPropertyMetadata=new WeakMap);let st=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=qo){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&&Ec(this.prototype,i,r)}}static getPropertyDescriptor(i,e,t){var r;const{get:o,set:a}=(r=Pc(this.prototype,i))!=null?r:{get(){return this[e]},set(n){this[e]=n}};return{get:o,set(n){const s=o==null?void 0:o.call(this);a==null||a.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:qo}static _$Ei(){if(this.hasOwnProperty(Lt("elementProperties")))return;const i=Ic(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Lt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Lt("properties"))){const e=this.properties,t=[...Ac(e),...Tc(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($o(r))}else i!==void 0&&e.push($o(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 ln(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),o=this.constructor._$Eu(i,r);if(o!==void 0&&r.reflect===!0){const a=(((t=r.converter)==null?void 0:t.toAttribute)!==void 0?r.converter:_i).toAttribute(e,r.type);this._$Em=i,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$Em=null}}_$AK(i,e){var t,r,o;const a=this.constructor,n=a._$Eh.get(i);if(n!==void 0&&this._$Em!==n){const s=a.getPropertyOptions(n),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((t=s.converter)==null?void 0:t.fromAttribute)!==void 0?s.converter:_i;this._$Em=n;const d=l.fromAttribute(e,s.type);this[n]=(o=d!=null?d:(r=this._$Ej)==null?void 0:r.get(n))!=null?o:d,this._$Em=null}}requestUpdate(i,e,t,r=!1,o){var a,n;if(i!==void 0){const s=this.constructor;if(r===!1&&(o=this[i]),t!=null||(t=s.getPropertyOptions(i)),!(((a=t.hasChanged)!=null?a:dn)(o,e)||t.useDefault&&t.reflect&&o===((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:o},a){var n,s,l;t&&!((n=this._$Ej)!=null?n:this._$Ej=new Map).has(i)&&(this._$Ej.set(i,(s=a!=null?a:e)!=null?s:this[i]),o!==!0||a!==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 xr(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[o,a]of this._$Ep)this[o]=a;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[o,a]of r){const{wrapped:n}=a,s=this[o];n!==!0||this._$AL.has(o)||s===void 0||this.C(o,void 0,a,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 o;return(o=r.hostUpdate)==null?void 0:o.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 Yo;st.elementStyles=[],st.shadowRootOptions={mode:"open"},st[Lt("elementProperties")]=new Map,st[Lt("finalized")]=new Map,Wo==null||Wo({ReactiveElement:st}),((Yo=mt.reactiveElementVersions)!=null?Yo:mt.reactiveElementVersions=[]).push("2.1.2");/**
|
|
18
19
|
* @license
|
|
19
20
|
* Copyright 2017 Google LLC
|
|
20
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/const
|
|
22
|
-
\f\r]`,
|
|
23
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
22
|
+
*/const Cr=globalThis,jo=i=>i,kr=Cr.trustedTypes,Go=kr?kr.createPolicy("lit-html",{createHTML:i=>i}):void 0,cn="$lit$",Ve=`lit$${Math.random().toFixed(9).slice(2)}$`,un="?"+Ve,Sc=`<${un}>`,et=document,Ft=()=>et.createComment(""),Vt=i=>i===null||typeof i!="object"&&typeof i!="function",qi=Array.isArray,Oc=i=>qi(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Xr=`[
|
|
23
|
+
\f\r]`,Tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ko=/-->/g,Xo=/>/g,Ge=RegExp(`>|${Xr}(?:([^\\s"'>=/]+)(${Xr}*=${Xr}*(?:[^
|
|
24
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Qo=/'/g,Jo=/"/g,hn=/^(?:script|style|textarea|title)$/i,_t=Symbol.for("lit-noChange"),ie=Symbol.for("lit-nothing"),Zo=new WeakMap,Xe=et.createTreeWalker(et,129);function pn(i,e){if(!qi(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Go!==void 0?Go.createHTML(e):e}const Mc=(i,e)=>{const t=i.length-1,r=[];let o,a=e===2?"<svg>":e===3?"<math>":"",n=Tt;for(let s=0;s<t;s++){const l=i[s];let d,u,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,u=n.exec(l),u!==null);)p=n.lastIndex,n===Tt?u[1]==="!--"?n=Ko:u[1]!==void 0?n=Xo:u[2]!==void 0?(hn.test(u[2])&&(o=RegExp("</"+u[2],"g")),n=Ge):u[3]!==void 0&&(n=Ge):n===Ge?u[0]===">"?(n=o!=null?o:Tt,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?Ge:u[3]==='"'?Jo:Qo):n===Jo||n===Qo?n=Ge:n===Ko||n===Xo?n=Tt:(n=Ge,o=void 0);const m=n===Ge&&i[s+1].startsWith("/>")?" ":"";a+=n===Tt?l+Sc:h>=0?(r.push(d),l.slice(0,h)+cn+l.slice(h)+Ve+m):l+Ve+(h===-2?s:m)}return[pn(i,a+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Rt{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let a=0,n=0;const s=e.length-1,l=this.parts,[d,u]=Mc(e,t);if(this.el=Rt.createElement(d,r),Xe.currentNode=this.el.content,t===2||t===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=Xe.nextNode())!==null&&l.length<s;){if(o.nodeType===1){if(o.hasAttributes())for(const h of o.getAttributeNames())if(h.endsWith(cn)){const p=u[n++],m=o.getAttribute(h).split(Ve),b=/([.?@])?(.*)/.exec(p);l.push({type:1,index:a,name:b[2],strings:m,ctor:b[1]==="."?zc:b[1]==="?"?Lc:b[1]==="@"?Bc:Nr}),o.removeAttribute(h)}else h.startsWith(Ve)&&(l.push({type:6,index:a}),o.removeAttribute(h));if(hn.test(o.tagName)){const h=o.textContent.split(Ve),p=h.length-1;if(p>0){o.textContent=kr?kr.emptyScript:"";for(let m=0;m<p;m++)o.append(h[m],Ft()),Xe.nextNode(),l.push({type:2,index:++a});o.append(h[p],Ft())}}}else if(o.nodeType===8)if(o.data===un)l.push({type:2,index:a});else{let h=-1;for(;(h=o.data.indexOf(Ve,h+1))!==-1;)l.push({type:7,index:a}),h+=Ve.length-1}a++}}static createElement(e,t){const r=et.createElement("template");return r.innerHTML=e,r}}function ft(i,e,t=i,r){var o,a,n;if(e===_t)return e;let s=r!==void 0?(o=t._$Co)==null?void 0:o[r]:t._$Cl;const l=Vt(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==l&&((a=s==null?void 0:s._$AO)==null||a.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=ft(i,s._$AS(i,e.values),s,r)),e}class Nc{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:o}=this._$AD,a=((t=e==null?void 0:e.creationScope)!=null?t:et).importNode(r,!0);Xe.currentNode=a;let n=Xe.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new Xt(n,n.nextSibling,this,e):d.type===1?u=new d.ctor(n,d.name,d.strings,this,e):d.type===6&&(u=new Fc(n,this,e)),this._$AV.push(u),d=o[++l]}s!==(d==null?void 0:d.index)&&(n=Xe.nextNode(),s++)}return Xe.currentNode=et,a}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 Xt{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,o){var a;this.type=2,this._$AH=ie,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=(a=o==null?void 0:o.isConnected)!=null?a:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ft(this,e,t),Vt(e)?e===ie||e==null||e===""?(this._$AH!==ie&&this._$AR(),this._$AH=ie):e!==this._$AH&&e!==_t&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Oc(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!==ie&&Vt(this._$AH)?this._$AA.nextSibling.data=e:this.T(et.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:o}=e,a=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Rt.createElement(pn(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)==null?void 0:t._$AD)===a)this._$AH.p(r);else{const n=new Nc(a,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let t=Zo.get(e.strings);return t===void 0&&Zo.set(e.strings,t=new Rt(e)),t}k(e){qi(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const a of e)o===t.length?t.push(r=new Xt(this.O(Ft()),this.O(Ft()),this,this.options)):r=t[o],r._$AI(a),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$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 o=jo(e).nextSibling;jo(e).remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Nr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,a){this.type=1,this._$AH=ie,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ie}_$AI(e,t=this,r,o){const a=this.strings;let n=!1;if(a===void 0)e=ft(this,e,t,0),n=!Vt(e)||e!==this._$AH&&e!==_t,n&&(this._$AH=e);else{const s=e;let l,d;for(e=a[0],l=0;l<a.length-1;l++)d=ft(this,s[r+l],t,l),d===_t&&(d=this._$AH[l]),n||(n=!Vt(d)||d!==this._$AH[l]),d===ie?e=ie:e!==ie&&(e+=(d!=null?d:"")+a[l+1]),this._$AH[l]=d}n&&!o&&this.j(e)}j(e){e===ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class zc extends Nr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ie?void 0:e}}class Lc extends Nr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ie)}}class Bc extends Nr{constructor(e,t,r,o,a){super(e,t,r,o,a),this.type=5}_$AI(e,t=this){var r;if((e=(r=ft(this,e,t,0))!=null?r:ie)===_t)return;const o=this._$AH,a=e===ie&&o!==ie||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==ie&&(o===ie||a);a&&this.element.removeEventListener(this.name,this,o),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 Fc{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){ft(this,e)}}const ea=Cr.litHtmlPolyfillSupport;var ta;ea==null||ea(Rt,Xt),((ta=Cr.litHtmlVersions)!=null?ta:Cr.litHtmlVersions=[]).push("3.3.2");const mn=(i,e,t)=>{var r,o;const a=(r=t==null?void 0:t.renderBefore)!=null?r:e;let n=a._$litPart$;if(n===void 0){const s=(o=t==null?void 0:t.renderBefore)!=null?o:null;a._$litPart$=n=new Xt(e.insertBefore(Ft(),s),s,void 0,t!=null?t:{})}return n._$AI(i),n};/**
|
|
24
25
|
* @license
|
|
25
26
|
* Copyright 2017 Google LLC
|
|
26
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/const
|
|
28
|
+
*/const Ht=globalThis;class lt extends st{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=mn(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return _t}}var ra;lt._$litElement$=!0,lt.finalized=!0,(ra=Ht.litElementHydrateSupport)==null||ra.call(Ht,{LitElement:lt});const ia=Ht.litElementPolyfillSupport;ia==null||ia({LitElement:lt});var oa;((oa=Ht.litElementVersions)!=null?oa:Ht.litElementVersions=[]).push("4.2.2");/**
|
|
28
29
|
* @license
|
|
29
30
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
30
31
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
31
|
-
*/const
|
|
32
|
+
*/const zr=i=>class extends i{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e==="theme"&&this._set_theme(r)}};/**
|
|
32
33
|
* @license
|
|
33
34
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
34
35
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
35
|
-
*/const
|
|
36
|
-
`)}const
|
|
36
|
+
*/const _n=[],fi=new Set,Yi=new Set;function fn(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Vc(i){return fn(customElements.get(i))}function Rc(i=[]){return[i].flat(1/0).filter(e=>e instanceof Wi?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function vn(i,e){return(i||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function gn(i){return i.map(e=>e.cssText).join(`
|
|
37
|
+
`)}const Er="vaadin-themable-mixin-style";function Hc(i,e){const t=document.createElement("style");t.id=Er,t.textContent=gn(i),e.content.appendChild(t)}function $c(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof lt)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),ln(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(Er),r=e.prototype._template;t.textContent=r.content.getElementById(Er).textContent}}function Uc(i){fi.forEach(e=>{const t=e.deref();t instanceof i?$c(t):t||fi.delete(e)})}function bn(i){if(i.prototype instanceof lt)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(Er).textContent=gn(i.getStylesForThis())}Yi.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&bn(t)})}function Wc(i,e){const t=i.__themes;return!t||!e?!1:t.some(r=>r.styles.some(o=>e.some(a=>a.cssText===o.cssText)))}function y(i,e,t={}){e=Rc(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):_n.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&Yi.forEach(r=>{if(vn(i,r)&&Vc(r)){const o=customElements.get(r);Wc(o,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".`),bn(o),Uc(o)}})}function vi(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():_n}function qc(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function yn(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const r=vi().find(o=>o.moduleId===t);r?e.push(...yn(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function Yc(i){const e=`${i}-default-theme`,t=vi().filter(r=>r.moduleId!==e&&vn(r.themeFor,i)).map(r=>sn(wr({},r),{styles:[...yn(r),...r.styles],includePriority:qc(r.moduleId)})).sort((r,o)=>o.includePriority-r.includePriority);return t.length>0?t:vi().filter(r=>r.moduleId===e)}const H=i=>class extends zr(i){constructor(){super(),fi.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Yi.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||fn(this)||Hc(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,...Yc(this.is)];const o=this.__themes.flatMap(a=>a.styles);return o.filter((a,n)=>n===o.lastIndexOf(a))}};/**
|
|
37
38
|
* @license
|
|
38
39
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
39
40
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
40
|
-
*/const
|
|
41
|
-
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},
|
|
41
|
+
*/const jc=(i,...e)=>{const t=document.createElement("style");t.id=i,t.textContent=e.map(r=>r.toString()).join(`
|
|
42
|
+
`).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},bt=(i,...e)=>{jc(`lumo-${i}`,e)};/**
|
|
42
43
|
* @license
|
|
43
44
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
44
45
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
45
|
-
*/const
|
|
46
|
+
*/const Gc=_`
|
|
46
47
|
:host {
|
|
47
48
|
/* Base (background) */
|
|
48
49
|
--lumo-base-color: #fff;
|
|
@@ -127,7 +128,7 @@
|
|
|
127
128
|
--lumo-disabled-text-color: GrayText;
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
|
-
`;
|
|
131
|
+
`;bt("color-props",Gc);const Kc=_`
|
|
131
132
|
[theme~='dark'] {
|
|
132
133
|
/* Base (background) */
|
|
133
134
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -245,11 +246,11 @@
|
|
|
245
246
|
pre code {
|
|
246
247
|
background: transparent;
|
|
247
248
|
}
|
|
248
|
-
`;
|
|
249
|
+
`;y("",Kc,{moduleId:"lumo-color"});/**
|
|
249
250
|
* @license
|
|
250
251
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
251
252
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
252
|
-
*/const
|
|
253
|
+
*/const Xc=_`
|
|
253
254
|
@font-face {
|
|
254
255
|
font-family: 'lumo-icons';
|
|
255
256
|
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
@@ -302,11 +303,11 @@
|
|
|
302
303
|
--lumo-icons-upload: '\\ea29';
|
|
303
304
|
--lumo-icons-user: '\\ea2a';
|
|
304
305
|
}
|
|
305
|
-
`;
|
|
306
|
+
`;bt("font-icons",Xc);/**
|
|
306
307
|
* @license
|
|
307
308
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
308
309
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
309
|
-
*/const
|
|
310
|
+
*/const Qc=_`
|
|
310
311
|
:host {
|
|
311
312
|
--lumo-size-xs: 1.625rem;
|
|
312
313
|
--lumo-size-s: 1.875rem;
|
|
@@ -321,11 +322,11 @@
|
|
|
321
322
|
/* For backwards compatibility */
|
|
322
323
|
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
323
324
|
}
|
|
324
|
-
`;
|
|
325
|
+
`;bt("sizing-props",Qc);/**
|
|
325
326
|
* @license
|
|
326
327
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
327
328
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
328
|
-
*/const
|
|
329
|
+
*/const Jc=_`
|
|
329
330
|
:host {
|
|
330
331
|
/* Square */
|
|
331
332
|
--lumo-space-xs: 0.25rem;
|
|
@@ -348,11 +349,11 @@
|
|
|
348
349
|
--lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
|
|
349
350
|
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
350
351
|
}
|
|
351
|
-
`;
|
|
352
|
+
`;bt("spacing-props",Jc);/**
|
|
352
353
|
* @license
|
|
353
354
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
354
355
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
355
|
-
*/const
|
|
356
|
+
*/const Zc=_`
|
|
356
357
|
:host {
|
|
357
358
|
/* Border radius */
|
|
358
359
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -369,7 +370,7 @@
|
|
|
369
370
|
/* Clickable element cursor */
|
|
370
371
|
--lumo-clickable-cursor: default;
|
|
371
372
|
}
|
|
372
|
-
`;
|
|
373
|
+
`;_`
|
|
373
374
|
html {
|
|
374
375
|
/* Button */
|
|
375
376
|
--vaadin-button-background: var(--lumo-contrast-5pct);
|
|
@@ -452,11 +453,11 @@
|
|
|
452
453
|
--vaadin-input-field-value-font-size: var(--lumo-font-size-m);
|
|
453
454
|
--vaadin-input-field-value-font-weight: 500;
|
|
454
455
|
}
|
|
455
|
-
`;
|
|
456
|
+
`;bt("style-props",Zc);/**
|
|
456
457
|
* @license
|
|
457
458
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
458
459
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
459
|
-
*/const
|
|
460
|
+
*/const eu=_`
|
|
460
461
|
:host {
|
|
461
462
|
/* prettier-ignore */
|
|
462
463
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -476,7 +477,7 @@
|
|
|
476
477
|
--lumo-line-height-s: 1.375;
|
|
477
478
|
--lumo-line-height-m: 1.625;
|
|
478
479
|
}
|
|
479
|
-
`,
|
|
480
|
+
`,tu=_`
|
|
480
481
|
body,
|
|
481
482
|
:host {
|
|
482
483
|
font-family: var(--lumo-font-family);
|
|
@@ -568,7 +569,7 @@
|
|
|
568
569
|
border-left: none;
|
|
569
570
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
570
571
|
}
|
|
571
|
-
`;
|
|
572
|
+
`;y("",tu,{moduleId:"lumo-typography"});bt("typography-props",eu);y("vaadin-checkbox",_`
|
|
572
573
|
:host {
|
|
573
574
|
color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
|
|
574
575
|
font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
|
|
@@ -880,7 +881,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
880
881
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
881
882
|
Code distributed by Google as part of the polymer project is also
|
|
882
883
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
883
|
-
*/window.JSCompiler_renameProperty=function(
|
|
884
|
+
*/window.JSCompiler_renameProperty=function(i,e){return i};/**
|
|
884
885
|
@license
|
|
885
886
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
886
887
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -888,7 +889,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
888
889
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
889
890
|
Code distributed by Google as part of the polymer project is also
|
|
890
891
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
891
|
-
*/let
|
|
892
|
+
*/let ru=/(url\()([^)]*)(\))/g,iu=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,sr,fe;function Bt(i,e){if(i&&iu.test(i)||i==="//")return i;if(sr===void 0){sr=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",sr=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),sr)try{return new URL(i,e).href}catch(t){return i}return fe||(fe=document.implementation.createHTMLDocument("temp"),fe.base=fe.createElement("base"),fe.head.appendChild(fe.base),fe.anchor=fe.createElement("a"),fe.body.appendChild(fe.anchor)),fe.base.href=e,fe.anchor.href=i,fe.anchor.href||i}function ji(i,e){return i.replace(ru,function(t,r,o,a){return r+"'"+Bt(o.replace(/["']/g,""),e)+"'"+a})}function Gi(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
|
|
892
893
|
@license
|
|
893
894
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
894
895
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -896,7 +897,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
896
897
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
897
898
|
Code distributed by Google as part of the polymer project is also
|
|
898
899
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
899
|
-
*/const
|
|
900
|
+
*/const wn=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const ou=wn&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[i],e.shadowRoot.adoptedStyleSheets[0]===i}catch(i){return!1}})();let au=window.Polymer&&window.Polymer.rootPath||Gi(document.baseURI||window.location.href),Pr=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Ar=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,nu=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,xn=window.Polymer&&window.Polymer.legacyOptimizations||!1,Cn=window.Polymer&&window.Polymer.legacyWarnings||!1,su=window.Polymer&&window.Polymer.syncInitialRender||!1,gi=window.Polymer&&window.Polymer.legacyUndefined||!1,lu=window.Polymer&&window.Polymer.orderedComputed||!1,aa=window.Polymer&&window.Polymer.removeNestedTemplates||!1,du=window.Polymer&&window.Polymer.fastDomIf||!1,na=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let cu=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
900
901
|
@license
|
|
901
902
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
902
903
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -904,7 +905,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
904
905
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
905
906
|
Code distributed by Google as part of the polymer project is also
|
|
906
907
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
907
|
-
*/let
|
|
908
|
+
*/let uu=0;const J=function(i){let e=i.__mixinApplications;e||(e=new WeakMap,i.__mixinApplications=e);let t=uu++;function r(o){let a=o.__mixinSet;if(a&&a[t])return o;let n=e,s=n.get(o);if(!s){s=i(o),n.set(o,s);let l=Object.create(s.__mixinSet||a||null);l[t]=!0,s.__mixinSet=l}return s}return r};/**
|
|
908
909
|
@license
|
|
909
910
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
910
911
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -912,7 +913,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
912
913
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
913
914
|
Code distributed by Google as part of the polymer project is also
|
|
914
915
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
915
|
-
*/let
|
|
916
|
+
*/let Ki={},kn={};function sa(i,e){Ki[i]=kn[i.toLowerCase()]=e}function la(i){return Ki[i]||kn[i.toLowerCase()]}function hu(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class $t extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let r=la(e);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(e,t,r,o){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Bt(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Gi(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Ar&&la(e)!==void 0)throw sa(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,sa(e,this),hu(this)}}}$t.prototype.modules=Ki;customElements.define("dom-module",$t);/**
|
|
916
917
|
@license
|
|
917
918
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
918
919
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -920,7 +921,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
920
921
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
921
922
|
Code distributed by Google as part of the polymer project is also
|
|
922
923
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
923
|
-
*/const
|
|
924
|
+
*/const pu="link[rel=import][type~=css]",mu="include",da="shady-unscoped";function En(i){return $t.import(i)}function ca(i){let e=i.body?i.body:i;const t=ji(e.textContent,i.baseURI),r=document.createElement("style");return r.textContent=t,r}function _u(i){const e=i.trim().split(/\s+/),t=[];for(let r=0;r<e.length;r++)t.push(...fu(e[r]));return t}function fu(i){const e=En(i);if(!e)return console.warn("Could not find style data in module named",i),[];if(e._styles===void 0){const t=[];t.push(...An(e));const r=e.querySelector("template");r&&t.push(...Pn(r,e.assetpath)),e._styles=t}return e._styles}function Pn(i,e){if(!i._styles){const t=[],r=i.content.querySelectorAll("style");for(let o=0;o<r.length;o++){let a=r[o],n=a.getAttribute(mu);n&&t.push(..._u(n).filter(function(s,l,d){return d.indexOf(s)===l})),e&&(a.textContent=ji(a.textContent,e)),t.push(a)}i._styles=t}return i._styles}function vu(i){let e=En(i);return e?An(e):[]}function An(i){const e=[],t=i.querySelectorAll(pu);for(let r=0;r<t.length;r++){let o=t[r];if(o.import){const a=o.import,n=o.hasAttribute(da);if(n&&!a._unscopedStyle){const s=ca(a);s.setAttribute(da,""),a._unscopedStyle=s}else a._style||(a._style=ca(a));e.push(n?a._unscopedStyle:a._style)}}return e}/**
|
|
924
925
|
@license
|
|
925
926
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
926
927
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -928,7 +929,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
928
929
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
929
930
|
Code distributed by Google as part of the polymer project is also
|
|
930
931
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
931
|
-
*/const
|
|
932
|
+
*/const ae=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?i=>ShadyDOM.patch(i):i=>i;/**
|
|
932
933
|
@license
|
|
933
934
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
934
935
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -936,7 +937,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
936
937
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
937
938
|
Code distributed by Google as part of the polymer project is also
|
|
938
939
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
939
|
-
*/function
|
|
940
|
+
*/function bi(i){return i.indexOf(".")>=0}function tt(i){let e=i.indexOf(".");return e===-1?i:i.slice(0,e)}function Tn(i,e){return i.indexOf(e+".")===0}function Ut(i,e){return e.indexOf(i+".")===0}function Wt(i,e,t){return e+t.slice(i.length)}function gu(i,e){return i===e||Tn(i,e)||Ut(i,e)}function Mt(i){if(Array.isArray(i)){let e=[];for(let t=0;t<i.length;t++){let r=i[t].toString().split(".");for(let o=0;o<r.length;o++)e.push(r[o])}return e.join(".")}else return i}function In(i){return Array.isArray(i)?Mt(i).split("."):i.toString().split(".")}function pe(i,e,t){let r=i,o=In(e);for(let a=0;a<o.length;a++){if(!r)return;let n=o[a];r=r[n]}return t&&(t.path=o.join(".")),r}function ua(i,e,t){let r=i,o=In(e),a=o[o.length-1];if(o.length>1){for(let n=0;n<o.length-1;n++){let s=o[n];if(r=r[s],!r)return}r[a]=t}else r[e]=t;return o.join(".")}/**
|
|
940
941
|
@license
|
|
941
942
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
942
943
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -944,7 +945,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
944
945
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
945
946
|
Code distributed by Google as part of the polymer project is also
|
|
946
947
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
947
|
-
*/const
|
|
948
|
+
*/const Tr={},bu=/-[a-z]/g,yu=/([A-Z])/g;function Dn(i){return Tr[i]||(Tr[i]=i.indexOf("-")<0?i:i.replace(bu,e=>e[1].toUpperCase()))}function Lr(i){return Tr[i]||(Tr[i]=i.replace(yu,"-$1").toLowerCase())}/**
|
|
948
949
|
@license
|
|
949
950
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
950
951
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -952,7 +953,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
952
953
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
953
954
|
Code distributed by Google as part of the polymer project is also
|
|
954
955
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
955
|
-
*/let
|
|
956
|
+
*/let wu=0,Sn=0,dt=[],xu=0,yi=!1,On=document.createTextNode("");new window.MutationObserver(Cu).observe(On,{characterData:!0});function Cu(){yi=!1;const i=dt.length;for(let e=0;e<i;e++){let t=dt[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}dt.splice(0,i),Sn+=i}const ku={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},Mn={run(i){return yi||(yi=!0,On.textContent=xu++),dt.push(i),wu++},cancel(i){const e=i-Sn;if(e>=0){if(!dt[e])throw new Error("invalid async handle: "+i);dt[e]=null}}};/**
|
|
956
957
|
@license
|
|
957
958
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
958
959
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -960,7 +961,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
960
961
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
961
962
|
Code distributed by Google as part of the polymer project is also
|
|
962
963
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
963
|
-
*/const
|
|
964
|
+
*/const Eu=Mn,Nn=J(i=>{class e extends i{static createProperties(r){const o=this.prototype;for(let a in r)a in o||o._createPropertyAccessor(a)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,o){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,o))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[r];return o||(o=this.constructor.attributeNameForProperty(r),this.__dataAttributes[o]=r),o}_definePropertyAccessor(r,o){Object.defineProperty(this,r,{get(){return this.__data[r]},set:o?function(){}:function(a){this._setPendingProperty(r,a,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,o){this._setPendingProperty(r,o)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,o,a){let n=this.__data[r],s=this._shouldPropertyChange(r,o,n);return s&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=n),this.__data[r]=o,this.__dataPending[r]=o),s}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Eu.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const r=this.__data,o=this.__dataPending,a=this.__dataOld;this._shouldPropertiesChange(r,o,a)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,o,a)),this.__dataCounter--}_shouldPropertiesChange(r,o,a){return!!o}_propertiesChanged(r,o,a){}_shouldPropertyChange(r,o,a){return a!==o&&(a===a||o===o)}attributeChangedCallback(r,o,a,n){o!==a&&this._attributeToProperty(r,a),super.attributeChangedCallback&&super.attributeChangedCallback(r,o,a,n)}_attributeToProperty(r,o,a){if(!this.__serializing){const n=this.__dataAttributes,s=n&&n[r]||r;this[s]=this._deserializeValue(o,a||this.constructor.typeForProperty(s))}}_propertyToAttribute(r,o,a){this.__serializing=!0,a=arguments.length<3?this[r]:a,this._valueToNodeAttribute(this,a,o||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,o,a){const n=this._serializeValue(o);(a==="class"||a==="name"||a==="slot")&&(r=ae(r)),n===void 0?r.removeAttribute(a):r.setAttribute(a,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,o){switch(o){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return e});/**
|
|
964
965
|
@license
|
|
965
966
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
966
967
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -968,7 +969,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
968
969
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
969
970
|
Code distributed by Google as part of the polymer project is also
|
|
970
971
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
971
|
-
*/const
|
|
972
|
+
*/const zn={};let lr=HTMLElement.prototype;for(;lr;){let i=Object.getOwnPropertyNames(lr);for(let e=0;e<i.length;e++)zn[i[e]]=!0;lr=Object.getPrototypeOf(lr)}const Pu=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function Au(i,e){if(!zn[e]){let t=i[e];t!==void 0&&(i.__data?i._setPendingProperty(e,t):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[e]=t))}}const Tu=J(i=>{const e=Nn(i);class t extends e{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let a=0;a<o.length;a++)this.prototype._createPropertyAccessor(Dn(o[a]))}static attributeNameForProperty(o){return Lr(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let a in o)this._setProperty(a,o[a])}_ensureAttribute(o,a){const n=this;n.hasAttribute(o)||this._valueToNodeAttribute(n,a,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Pu(o))return o;try{return JSON.stringify(o)}catch(a){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,a){let n;switch(a){case Object:try{n=JSON.parse(o)}catch(s){n=o}break;case Array:try{n=JSON.parse(o)}catch(s){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:n=isNaN(o)?String(o):Number(o),n=new Date(n);break;default:n=super._deserializeValue(o,a);break}return n}_definePropertyAccessor(o,a){Au(this,o),super._definePropertyAccessor(o,a)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return t});/**
|
|
972
973
|
@license
|
|
973
974
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
974
975
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -976,7 +977,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
976
977
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
977
978
|
Code distributed by Google as part of the polymer project is also
|
|
978
979
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
979
|
-
*/const
|
|
980
|
+
*/const Iu={"dom-if":!0,"dom-repeat":!0};let ha=!1,pa=!1;function Du(){if(!ha){ha=!0;const i=document.createElement("textarea");i.placeholder="a",pa=i.placeholder===i.textContent}return pa}function Su(i){Du()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const Ou=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const o=t.getAttribute(r);if(i&&r.startsWith("on-")){e.setAttribute(r,i.createScript(o,r));return}e.setAttribute(r,o)}})();function Mu(i){let e=i.getAttribute("is");if(e&&Iu[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];Ou(i,t,r),t.removeAttribute(r)}}return i}function Ln(i,e){let t=e.parentInfo&&Ln(i,e.parentInfo);if(t){for(let r=t.firstChild,o=0;r;r=r.nextSibling)if(e.parentIndex===o++)return r}else return i}function Nu(i,e,t,r){r.id&&(e[r.id]=t)}function zu(i,e,t){if(t.events&&t.events.length)for(let r=0,o=t.events,a;r<o.length&&(a=o[r]);r++)i._addMethodEventListenerToNode(e,a.name,a.value,i)}function Lu(i,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function Bu(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 Fu=J(i=>{class e extends i{static _parseTemplate(r,o){if(!r._templateInfo){let a=r._templateInfo={};a.nodeInfoList=[],a.nestedTemplate=!!o,a.stripWhiteSpace=o&&o.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,a,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,o,a){return this._parseTemplateNode(r.content,o,a)}static _parseTemplateNode(r,o,a){let n=!1,s=r;return s.localName=="template"&&!s.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(s,o,a)||n:s.localName==="slot"&&(o.hasInsertionPoint=!0),Su(s),s.firstChild&&this._parseTemplateChildNodes(s,o,a),s.hasAttributes&&s.hasAttributes()&&(n=this._parseTemplateNodeAttributes(s,o,a)||n),n||a.noted}static _parseTemplateChildNodes(r,o,a){if(!(r.localName==="script"||r.localName==="style"))for(let n=r.firstChild,s=0,l;n;n=l){if(n.localName=="template"&&(n=Mu(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let u=l;for(;u&&u.nodeType===Node.TEXT_NODE;)n.textContent+=u.textContent,l=u.nextSibling,r.removeChild(u),u=l;if(o.stripWhiteSpace&&!n.textContent.trim()){r.removeChild(n);continue}}let d={parentIndex:s,parentInfo:a};this._parseTemplateNode(n,o,d)&&(d.infoIndex=o.nodeInfoList.push(d)-1),n.parentNode&&s++}}static _parseTemplateNestedTemplate(r,o,a){let n=r,s=this._parseTemplate(n,o);return(s.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),a.templateInfo=s,!0}static _parseTemplateNodeAttributes(r,o,a){let n=!1,s=Array.from(r.attributes);for(let l=s.length-1,d;d=s[l];l--)n=this._parseTemplateNodeAttribute(r,o,a,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(r,o,a,n,s){return n.slice(0,3)==="on-"?(r.removeAttribute(n),a.events=a.events||[],a.events.push({name:n.slice(3),value:s}),!0):n==="id"?(a.id=s,!0):!1}static _contentForTemplate(r){let o=r._templateInfo;return o&&o.content||r.content}_stampTemplate(r,o){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),o=o||this.constructor._parseTemplate(r);let a=o.nodeInfoList,n=o.content||r.content,s=document.importNode(n,!0);s.__noInsertionPoint=!o.hasInsertionPoint;let l=s.nodeList=new Array(a.length);s.$={};for(let d=0,u=a.length,h;d<u&&(h=a[d]);d++){let p=l[d]=Ln(s,h);Nu(this,s.$,p,h),Lu(this,p,h,o),zu(this,p,h)}return s=s,s}_addMethodEventListenerToNode(r,o,a,n){n=n||r;let s=Bu(n,o,a);return this._addEventListenerToNode(r,o,s),s}_addEventListenerToNode(r,o,a){r.addEventListener(o,a)}_removeEventListenerFromNode(r,o,a){r.removeEventListener(o,a)}}return e});/**
|
|
980
981
|
* @fileoverview
|
|
981
982
|
* @suppress {checkPrototypalTypes}
|
|
982
983
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -986,7 +987,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
986
987
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
987
988
|
* Google as part of the polymer project is also subject to an additional IP
|
|
988
989
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
989
|
-
*/let St=0;const Tt=[],$={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Hs="__computeInfo",Hl=/[A-Z]/;function Io(o,e,t){let i=o[e];if(!i)i=o[e]={};else if(!o.hasOwnProperty(e)&&(i=o[e]=Object.create(o[e]),t))for(let r in i){let s=i[r],a=i[r]=Array(s.length);for(let n=0;n<s.length;n++)a[n]=s[n]}return i}function gt(o,e,t,i,r,s){if(e){let a=!1;const n=St++;for(let l in t){let c=r?Ke(l):l,h=e[c];if(h)for(let u=0,_=h.length,p;u<_&&(p=h[u]);u++)(!p.info||p.info.lastRun!==n)&&(!r||xi(l,p.trigger))&&(p.info&&(p.info.lastRun=n),p.fn(o,l,t,i,p.info,r,s),a=!0)}return a}return!1}function $l(o,e,t,i,r,s,a,n){let l=!1,c=a?Ke(i):i,h=e[c];if(h)for(let u=0,_=h.length,p;u<_&&(p=h[u]);u++)(!p.info||p.info.lastRun!==t)&&(!a||xi(i,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(o,i,r,s,p.info,a,n),l=!0);return l}function xi(o,e){if(e){let t=e.name;return t==o||!!(e.structured&&zs(t,o))||!!(e.wildcard&&At(t,o))}else return!0}function Tr(o,e,t,i,r){let s=typeof r.method=="string"?o[r.method]:r.method,a=r.property;s?s.call(o,o.__data[a],i[a]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function jl(o,e,t,i,r){let s=o[$.NOTIFY],a,n=St++;for(let c in e)e[c]&&(s&&$l(o,s,n,c,t,i,r)||r&&Wl(o,c,t))&&(a=!0);let l;a&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Wl(o,e,t){let i=Ke(e);if(i!==e){let r=_o(i)+"-changed";return $s(o,r,t[e],e),!0}return!1}function $s(o,e,t,i){let r={value:t,queueProperty:!0};i&&(r.path=i),ne(o).dispatchEvent(new CustomEvent(e,{detail:r}))}function ql(o,e,t,i,r,s){let a=(s?Ke(e):e)!=e?e:null,n=a?_e(o,a):o.__data[e];a&&n===void 0&&(n=t[e]),$s(o,r.eventName,n,a)}function Ul(o,e,t,i,r){let s,a=o.detail,n=a&&a.path;n?(i=It(t,i,n),s=a&&a.value):s=o.currentTarget[t],s=r?!s:s,(!e[$.READ_ONLY]||!e[$.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,s,!0,!!n)&&(!a||!a.queueProperty)&&e._invalidateProperties()}function Yl(o,e,t,i,r){let s=o.__data[e];ro&&(s=ro(s,r.attrName,"attribute",o)),o._propertyToAttribute(e,r.attrName,s)}function Kl(o,e,t,i){let r=o[$.COMPUTE];if(r)if(cl){St++;const s=Jl(o),a=[];for(let l in e)Dr(l,r,a,s,i);let n;for(;n=a.shift();)js(o,"",e,t,n)&&Dr(n.methodInfo,r,a,s,i);Object.assign(t,o.__dataOld),Object.assign(e,o.__dataPending),o.__dataPending=null}else{let s=e;for(;gt(o,r,s,t,i);)Object.assign(t,o.__dataOld),Object.assign(e,o.__dataPending),s=o.__dataPending,o.__dataPending=null}}const Gl=(o,e,t)=>{let i=0,r=e.length-1,s=-1;for(;i<=r;){const a=i+r>>1,n=t.get(e[a].methodInfo)-t.get(o.methodInfo);if(n<0)i=a+1;else if(n>0)r=a-1;else{s=a;break}}s<0&&(s=r+1),e.splice(s,0,o)},Dr=(o,e,t,i,r)=>{const s=r?Ke(o):o,a=e[s];if(a)for(let n=0;n<a.length;n++){const l=a[n];l.info.lastRun!==St&&(!r||xi(o,l.trigger))&&(l.info.lastRun=St,Gl(l.info,t,i))}};function Jl(o){let e=o.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=o[$.COMPUTE];let{counts:i,ready:r,total:s}=Xl(o),a;for(;a=r.shift();){e.set(a,e.size);const n=t[a];n&&n.forEach(l=>{const c=l.info.methodInfo;--s,--i[c]===0&&r.push(c)})}s!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=e}return e}function Xl(o){const e=o[Hs],t={},i=o[$.COMPUTE],r=[];let s=0;for(let a in e){const n=e[a];s+=t[a]=n.args.filter(l=>!l.literal).length+(n.dynamicFn?1:0)}for(let a in i)e[a]||r.push(a);return{counts:t,ready:r,total:s}}function js(o,e,t,i,r){let s=Go(o,e,t,i,r);if(s===Tt)return!1;let a=r.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[a]?o._setPendingProperty(a,s,!0):(o[a]=s,!1)}function Zl(o,e,t){let i=o.__dataLinkedPaths;if(i){let r;for(let s in i){let a=i[s];At(s,e)?(r=It(s,a,e),o._setPendingPropertyOrPath(r,t,!0,!0)):At(a,e)&&(r=It(a,s,e),o._setPendingPropertyOrPath(r,t,!0,!0))}}}function So(o,e,t,i,r,s,a){t.bindings=t.bindings||[];let n={kind:i,target:r,parts:s,literal:a,isCompound:s.length!==1};if(t.bindings.push(n),id(n)){let{event:c,negate:h}=n.parts[0];n.listenerEvent=c||_o(r)+"-changed",n.listenerNegate=h}let l=e.nodeInfoList.length;for(let c=0;c<n.parts.length;c++){let h=n.parts[c];h.compoundIndex=c,Ql(o,e,n,h,l)}}function Ql(o,e,t,i,r){if(!i.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let s=i.dependencies,a={index:r,binding:t,part:i,evaluator:o};for(let n=0;n<s.length;n++){let l=s[n];typeof l=="string"&&(l=qs(l),l.wildcard=!0),o._addTemplatePropertyEffect(e,l.rootProperty,{fn:ed,info:a,trigger:l})}}}function ed(o,e,t,i,r,s,a){let n=a[r.index],l=r.binding,c=r.part;if(s&&c.source&&e.length>c.source.length&&l.kind=="property"&&!l.isCompound&&n.__isPropertyEffectsClient&&n.__dataHasAccessor&&n.__dataHasAccessor[l.target]){let h=t[e];e=It(c.source,l.target,e),n._setPendingPropertyOrPath(e,h,!1,!0)&&o._enqueueClient(n)}else{let h=r.evaluator._evaluateBinding(o,c,e,t,i,s);h!==Tt&&td(o,n,l,c,h)}}function td(o,e,t,i,r){if(r=od(e,r,t,i),ro&&(r=ro(r,t.target,t.kind,e)),t.kind=="attribute")o._valueToNodeAttribute(e,r,t.target);else{let s=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?(!e[$.READ_ONLY]||!e[$.READ_ONLY][s])&&e._setPendingProperty(s,r)&&o._enqueueClient(e):o._setUnmanagedPropertyToNode(e,s,r)}}function od(o,e,t,i){if(t.isCompound){let r=o.__dataCompoundStorage[t.target];r[i.compoundIndex]=e,e=r.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(e=e==null?"":e),e}function id(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function rd(o,e){let{nodeList:t,nodeInfoList:i}=e;if(i.length)for(let r=0;r<i.length;r++){let s=i[r],a=t[r],n=s.bindings;if(n)for(let l=0;l<n.length;l++){let c=n[l];sd(a,c),ad(a,o,c)}a.__dataHost=o}}function sd(o,e){if(e.isCompound){let t=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),i=e.parts,r=new Array(i.length);for(let a=0;a<i.length;a++)r[a]=i[a].literal;let s=e.target;t[s]=r,e.literal&&e.kind=="property"&&(s==="className"&&(o=ne(o)),o[s]=e.literal)}}function ad(o,e,t){if(t.listenerEvent){let i=t.parts[0];o.addEventListener(t.listenerEvent,function(r){Ul(r,e,t.target,i.source,i.negate)})}}function zr(o,e,t,i,r,s){s=e.static||s&&(typeof s!="object"||s[e.methodName]);let a={methodName:e.methodName,args:e.args,methodInfo:r,dynamicFn:s};for(let n=0,l;n<e.args.length&&(l=e.args[n]);n++)l.literal||o._addPropertyEffect(l.rootProperty,t,{fn:i,info:a,trigger:l});return s&&o._addPropertyEffect(e.methodName,t,{fn:i,info:a}),a}function Go(o,e,t,i,r){let s=o._methodHost||o,a=s[r.methodName];if(a){let n=o._marshalArgs(r.args,e,t);return n===Tt?Tt:a.apply(s,n)}else r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const nd=[],Ws="(?:[a-zA-Z_$][\\w.:$\\-*]*)",ld="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",dd="(?:'(?:[^'\\\\]|\\\\.)*')",cd='(?:"(?:[^"\\\\]|\\\\.)*")',hd="(?:"+dd+"|"+cd+")",Rr="(?:("+Ws+"|"+ld+"|"+hd+")\\s*)",ud="(?:"+Rr+"(?:,\\s*"+Rr+")*)",pd="(?:\\(\\s*(?:"+ud+"?)\\)\\s*)",md="("+Ws+"\\s*"+pd+"?)",_d="(\\[\\[|{{)\\s*",fd="(?:]]|}})",vd="(?:(!)\\s*)?",gd=_d+vd+md+fd,Or=new RegExp(gd,"g");function Mr(o){let e="";for(let t=0;t<o.length;t++){let i=o[t].literal;e+=i||""}return e}function To(o){let e=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:nd};if(e[2].trim()){let i=e[2].replace(/\\,/g,",").split(",");return bd(i,t)}else return t}return null}function bd(o,e){return e.args=o.map(function(t){let i=qs(t);return i.literal||(e.static=!1),i},this),e}function qs(o){let e=o.trim().replace(/,/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Ke(e),t.structured=Yo(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function Nr(o,e,t){let i=_e(o,t);return i===void 0&&(i=e[t]),i}function Us(o,e,t,i){const r={indexSplices:i};Uo&&!o._overrideLegacyUndefined&&(e.splices=r),o.notifyPath(t+".splices",r),o.notifyPath(t+".length",e.length),Uo&&!o._overrideLegacyUndefined&&(r.indexSplices=[])}function pt(o,e,t,i,r,s){Us(o,e,t,[{index:i,addedCount:r,removed:s,object:e,type:"splice"}])}function yd(o){return o[0].toUpperCase()+o.substring(1)}const wi=Z(o=>{const e=Bl(Tl(o));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return $}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(mt.length){let r=mt[mt.length-1];r._enqueueClient(this),this.__dataHost=r}}_initializeProtoProperties(r){this.__data=Object.create(r),this.__dataPending=Object.create(r),this.__dataOld={}}_initializeInstanceProperties(r){let s=this[$.READ_ONLY];for(let a in r)(!s||!s[a])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[a]=this.__dataPending[a]=r[a])}_addPropertyEffect(r,s,a){this._createPropertyAccessor(r,s==$.READ_ONLY);let n=Io(this,s,!0)[r];n||(n=this[s][r]=[]),n.push(a)}_removePropertyEffect(r,s,a){let n=Io(this,s,!0)[r],l=n.indexOf(a);l>=0&&n.splice(l,1)}_hasPropertyEffect(r,s){let a=this[s];return!!(a&&a[r])}_hasReadOnlyEffect(r){return this._hasPropertyEffect(r,$.READ_ONLY)}_hasNotifyEffect(r){return this._hasPropertyEffect(r,$.NOTIFY)}_hasReflectEffect(r){return this._hasPropertyEffect(r,$.REFLECT)}_hasComputedEffect(r){return this._hasPropertyEffect(r,$.COMPUTE)}_setPendingPropertyOrPath(r,s,a,n){if(n||Ke(Array.isArray(r)?r[0]:r)!==r){if(!n){let l=_e(this,r);if(r=Ar(this,r,s),!r||!super._shouldPropertyChange(r,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(r,s,a))return Zl(this,r,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[r])return this._setPendingProperty(r,s,a);this[r]=s}return!1}_setUnmanagedPropertyToNode(r,s,a){(a!==r[s]||typeof a=="object")&&(s==="className"&&(r=ne(r)),r[s]=a)}_setPendingProperty(r,s,a){let n=this.__dataHasPaths&&Yo(r),l=n?this.__dataTemp:this.__data;return this._shouldPropertyChange(r,s,l[r])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),r in this.__dataOld||(this.__dataOld[r]=this.__data[r]),n?this.__dataTemp[r]=s:this.__data[r]=s,this.__dataPending[r]=s,(n||this[$.NOTIFY]&&this[$.NOTIFY][r])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[r]=a),!0):!1}_setProperty(r,s){this._setPendingProperty(r,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(r){this.__dataPendingClients=this.__dataPendingClients||[],r!==this&&this.__dataPendingClients.push(r)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let r=this.__dataPendingClients;if(r){this.__dataPendingClients=null;for(let s=0;s<r.length;s++){let a=r[s];a.__dataEnabled?a.__dataPending&&a._flushProperties():a._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(r,s){for(let a in r)(s||!this[$.READ_ONLY]||!this[$.READ_ONLY][a])&&this._setPendingPropertyOrPath(a,r[a],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(r,s,a){let n=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Kl(this,s,a,n),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,a,n),this._flushClients(),gt(this,this[$.REFLECT],s,a,n),gt(this,this[$.OBSERVE],s,a,n),l&&jl(this,l,s,a,n),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(r,s,a){this[$.PROPAGATE]&>(this,this[$.PROPAGATE],r,s,a),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,r,s,a)}_runEffectsForTemplate(r,s,a,n){const l=(c,h)=>{gt(this,r.propertyEffects,c,a,h,r.nodeList);for(let u=r.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,c,a,h)};r.runEffects?r.runEffects(l,s,n):l(s,n)}linkPaths(r,s){r=vt(r),s=vt(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[r]=s}unlinkPaths(r){r=vt(r),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[r]}notifySplices(r,s){let a={path:""},n=_e(this,r,a);Us(this,n,a.path,s)}get(r,s){return _e(s||this,r)}set(r,s,a){a?Ar(a,r,s):(!this[$.READ_ONLY]||!this[$.READ_ONLY][r])&&this._setPendingPropertyOrPath(r,s,!0)&&this._invalidateProperties()}push(r,...s){let a={path:""},n=_e(this,r,a),l=n.length,c=n.push(...s);return s.length&&pt(this,n,a.path,l,s.length,[]),c}pop(r){let s={path:""},a=_e(this,r,s),n=!!a.length,l=a.pop();return n&&pt(this,a,s.path,a.length,0,[l]),l}splice(r,s,a,...n){let l={path:""},c=_e(this,r,l);s<0?s=c.length-Math.floor(-s):s&&(s=Math.floor(s));let h;return arguments.length===2?h=c.splice(s):h=c.splice(s,a,...n),(n.length||h.length)&&pt(this,c,l.path,s,n.length,h),h}shift(r){let s={path:""},a=_e(this,r,s),n=!!a.length,l=a.shift();return n&&pt(this,a,s.path,0,0,[l]),l}unshift(r,...s){let a={path:""},n=_e(this,r,a),l=n.unshift(...s);return s.length&&pt(this,n,a.path,0,s.length,[]),l}notifyPath(r,s){let a;if(arguments.length==1){let n={path:""};s=_e(this,r,n),a=n.path}else Array.isArray(r)?a=vt(r):a=r;this._setPendingPropertyOrPath(a,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(r,s){this._addPropertyEffect(r,$.READ_ONLY),s&&(this["_set"+yd(r)]=function(a){this._setProperty(r,a)})}_createPropertyObserver(r,s,a){let n={property:r,method:s,dynamicFn:!!a};this._addPropertyEffect(r,$.OBSERVE,{fn:Tr,info:n,trigger:{name:r}}),a&&this._addPropertyEffect(s,$.OBSERVE,{fn:Tr,info:n,trigger:{name:s}})}_createMethodObserver(r,s){let a=To(r);if(!a)throw new Error("Malformed observer expression '"+r+"'");zr(this,a,$.OBSERVE,Go,null,s)}_createNotifyingProperty(r){this._addPropertyEffect(r,$.NOTIFY,{fn:ql,info:{eventName:_o(r)+"-changed",property:r}})}_createReflectedProperty(r){let s=this.constructor.attributeNameForProperty(r);s[0]==="-"?console.warn("Property "+r+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(r,$.REFLECT,{fn:Yl,info:{attrName:s}})}_createComputedProperty(r,s,a){let n=To(s);if(!n)throw new Error("Malformed computed expression '"+s+"'");const l=zr(this,n,$.COMPUTE,js,r,a);Io(this,Hs)[r]=l}_marshalArgs(r,s,a){const n=this.__data,l=[];for(let c=0,h=r.length;c<h;c++){let{name:u,structured:_,wildcard:p,value:x,literal:P}=r[c];if(!P)if(p){const A=At(u,s),B=Nr(n,a,A?s:u);x={path:A?s:u,value:B,base:A?_e(n,u):B}}else x=_?Nr(n,a,u):n[u];if(Uo&&!this._overrideLegacyUndefined&&x===void 0&&r.length>1)return Tt;l[c]=x}return l}static addPropertyEffect(r,s,a){this.prototype._addPropertyEffect(r,s,a)}static createPropertyObserver(r,s,a){this.prototype._createPropertyObserver(r,s,a)}static createMethodObserver(r,s){this.prototype._createMethodObserver(r,s)}static createNotifyingProperty(r){this.prototype._createNotifyingProperty(r)}static createReadOnlyProperty(r,s){this.prototype._createReadOnlyProperty(r,s)}static createReflectedProperty(r){this.prototype._createReflectedProperty(r)}static createComputedProperty(r,s,a){this.prototype._createComputedProperty(r,s,a)}static bindTemplate(r){return this.prototype._bindTemplate(r)}_bindTemplate(r,s){let a=this.constructor._parseTemplate(r),n=this.__preBoundTemplateInfo==a;if(!n)for(let l in a.propertyEffects)this._createPropertyAccessor(l);if(s)if(a=Object.create(a),a.wasPreBound=n,!this.__templateInfo)this.__templateInfo=a;else{const l=r._parentTemplateInfo||this.__templateInfo,c=l.lastChild;a.parent=l,l.lastChild=a,a.previousSibling=c,c?c.nextSibling=a:l.firstChild=a}else this.__preBoundTemplateInfo=a;return a}static _addTemplatePropertyEffect(r,s,a){let n=r.hostProps=r.hostProps||{};n[s]=!0;let l=r.propertyEffects=r.propertyEffects||{};(l[s]=l[s]||[]).push(a)}_stampTemplate(r,s){s=s||this._bindTemplate(r,!0),mt.push(this);let a=super._stampTemplate(r,s);if(mt.pop(),s.nodeList=a.nodeList,!s.wasPreBound){let n=s.childNodes=[];for(let l=a.firstChild;l;l=l.nextSibling)n.push(l)}return a.templateInfo=s,rd(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),a}_removeBoundDom(r){const s=r.templateInfo,{previousSibling:a,nextSibling:n,parent:l}=s;a?a.nextSibling=n:l&&(l.firstChild=n),n?n.previousSibling=a:l&&(l.lastChild=a),s.nextSibling=s.previousSibling=null;let c=s.childNodes;for(let h=0;h<c.length;h++){let u=c[h];ne(ne(u).parentNode).removeChild(u)}}static _parseTemplateNode(r,s,a){let n=e._parseTemplateNode.call(this,r,s,a);if(r.nodeType===Node.TEXT_NODE){let l=this._parseBindings(r.textContent,s);l&&(r.textContent=Mr(l)||" ",So(this,s,a,"text","textContent",l),n=!0)}return n}static _parseTemplateNodeAttribute(r,s,a,n,l){let c=this._parseBindings(l,s);if(c){let h=n,u="property";Hl.test(n)?u="attribute":n[n.length-1]=="$"&&(n=n.slice(0,-1),u="attribute");let _=Mr(c);return _&&u=="attribute"&&(n=="class"&&r.hasAttribute("class")&&(_+=" "+r.getAttribute(n)),r.setAttribute(n,_)),u=="attribute"&&h=="disable-upgrade$"&&r.setAttribute(n,""),r.localName==="input"&&h==="value"&&r.setAttribute(h,""),r.removeAttribute(h),u==="property"&&(n=Os(n)),So(this,s,a,u,n,c,_),!0}else return e._parseTemplateNodeAttribute.call(this,r,s,a,n,l)}static _parseTemplateNestedTemplate(r,s,a){let n=e._parseTemplateNestedTemplate.call(this,r,s,a);const l=r.parentNode,c=a.templateInfo,h=l.localName==="dom-if",u=l.localName==="dom-repeat";xr&&(h||u)&&(l.removeChild(r),a=a.parentInfo,a.templateInfo=c,a.noted=!0,n=!1);let _=c.hostProps;if(hl&&h)_&&(s.hostProps=Object.assign(s.hostProps||{},_),xr||(a.parentInfo.noted=!0));else{let p="{";for(let x in _){let P=[{mode:p,source:x,dependencies:[x],hostProp:!0}];So(this,s,a,"property","_host_"+x,P)}}return n}static _parseBindings(r,s){let a=[],n=0,l;for(;(l=Or.exec(r))!==null;){l.index>n&&a.push({literal:r.slice(n,l.index)});let c=l[1][0],h=!!l[2],u=l[3].trim(),_=!1,p="",x=-1;c=="{"&&(x=u.indexOf("::"))>0&&(p=u.substring(x+2),u=u.substring(0,x),_=!0);let P=To(u),A=[];if(P){let{args:B,methodName:N}=P;for(let ee=0;ee<B.length;ee++){let H=B[ee];H.literal||A.push(H)}let L=s.dynamicFns;(L&&L[N]||P.static)&&(A.push(N),P.dynamicFn=!0)}else A.push(u);a.push({source:u,mode:c,negate:h,customEvent:_,signature:P,dependencies:A,event:p}),n=Or.lastIndex}if(n&&n<r.length){let c=r.substring(n);c&&a.push({literal:c})}return a.length?a:null}static _evaluateBinding(r,s,a,n,l,c){let h;return s.signature?h=Go(r,a,n,l,s.signature):a!=s.source?h=_e(r,s.source):c&&Yo(a)?h=_e(r,a):h=r.__data[a],s.negate&&(h=!h),h}}return t}),mt=[];/**
|
|
990
|
+
*/let qt=0;const Yt=[],L={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Bn="__computeInfo",Vu=/[A-Z]/;function Qr(i,e,t){let r=i[e];if(!r)r=i[e]={};else if(!i.hasOwnProperty(e)&&(r=i[e]=Object.create(i[e]),t))for(let o in r){let a=r[o],n=r[o]=Array(a.length);for(let s=0;s<a.length;s++)n[s]=a[s]}return r}function Nt(i,e,t,r,o,a){if(e){let n=!1;const s=qt++;for(let l in t){let d=o?tt(l):l,u=e[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==s)&&(!o||Xi(l,m.trigger))&&(m.info&&(m.info.lastRun=s),m.fn(i,l,t,r,m.info,o,a),n=!0)}return n}return!1}function Ru(i,e,t,r,o,a,n,s){let l=!1,d=n?tt(r):r,u=e[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==t)&&(!n||Xi(r,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(i,r,o,a,m.info,n,s),l=!0);return l}function Xi(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&Tn(t,i))||!!(e.wildcard&&Ut(t,i))}else return!0}function ma(i,e,t,r,o){let a=typeof o.method=="string"?i[o.method]:o.method,n=o.property;a?a.call(i,i.__data[n],r[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function Hu(i,e,t,r,o){let a=i[L.NOTIFY],n,s=qt++;for(let d in e)e[d]&&(a&&Ru(i,a,s,d,t,r,o)||o&&$u(i,d,t))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function $u(i,e,t){let r=tt(e);if(r!==e){let o=Lr(r)+"-changed";return Fn(i,o,t[e],e),!0}return!1}function Fn(i,e,t,r){let o={value:t,queueProperty:!0};r&&(o.path=r),ae(i).dispatchEvent(new CustomEvent(e,{detail:o}))}function Uu(i,e,t,r,o,a){let n=(a?tt(e):e)!=e?e:null,s=n?pe(i,n):i.__data[e];n&&s===void 0&&(s=t[e]),Fn(i,o.eventName,s,n)}function Wu(i,e,t,r,o){let a,n=i.detail,s=n&&n.path;s?(r=Wt(t,r,s),a=n&&n.value):a=i.currentTarget[t],a=o?!a:a,(!e[L.READ_ONLY]||!e[L.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,a,!0,!!s)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function qu(i,e,t,r,o){let a=i.__data[e];Pr&&(a=Pr(a,o.attrName,"attribute",i)),i._propertyToAttribute(e,o.attrName,a)}function Yu(i,e,t,r){let o=i[L.COMPUTE];if(o)if(lu){qt++;const a=Gu(i),n=[];for(let l in e)_a(l,o,n,a,r);let s;for(;s=n.shift();)Vn(i,"",e,t,s)&&_a(s.methodInfo,o,n,a,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let a=e;for(;Nt(i,o,a,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),a=i.__dataPending,i.__dataPending=null}}const ju=(i,e,t)=>{let r=0,o=e.length-1,a=-1;for(;r<=o;){const n=r+o>>1,s=t.get(e[n].methodInfo)-t.get(i.methodInfo);if(s<0)r=n+1;else if(s>0)o=n-1;else{a=n;break}}a<0&&(a=o+1),e.splice(a,0,i)},_a=(i,e,t,r,o)=>{const a=o?tt(i):i,n=e[a];if(n)for(let s=0;s<n.length;s++){const l=n[s];l.info.lastRun!==qt&&(!o||Xi(i,l.trigger))&&(l.info.lastRun=qt,ju(l.info,t,r))}};function Gu(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[L.COMPUTE];let{counts:r,ready:o,total:a}=Ku(i),n;for(;n=o.shift();){e.set(n,e.size);const s=t[n];s&&s.forEach(l=>{const d=l.info.methodInfo;--a,--r[d]===0&&o.push(d)})}a!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function Ku(i){const e=i[Bn],t={},r=i[L.COMPUTE],o=[];let a=0;for(let n in e){const s=e[n];a+=t[n]=s.args.filter(l=>!l.literal).length+(s.dynamicFn?1:0)}for(let n in r)e[n]||o.push(n);return{counts:t,ready:o,total:a}}function Vn(i,e,t,r,o){let a=wi(i,e,t,r,o);if(a===Yt)return!1;let n=o.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,a,!0):(i[n]=a,!1)}function Xu(i,e,t){let r=i.__dataLinkedPaths;if(r){let o;for(let a in r){let n=r[a];Ut(a,e)?(o=Wt(a,n,e),i._setPendingPropertyOrPath(o,t,!0,!0)):Ut(n,e)&&(o=Wt(n,a,e),i._setPendingPropertyOrPath(o,t,!0,!0))}}}function Jr(i,e,t,r,o,a,n){t.bindings=t.bindings||[];let s={kind:r,target:o,parts:a,literal:n,isCompound:a.length!==1};if(t.bindings.push(s),th(s)){let{event:d,negate:u}=s.parts[0];s.listenerEvent=d||Lr(o)+"-changed",s.listenerNegate=u}let l=e.nodeInfoList.length;for(let d=0;d<s.parts.length;d++){let u=s.parts[d];u.compoundIndex=d,Qu(i,e,s,u,l)}}function Qu(i,e,t,r,o){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let a=r.dependencies,n={index:o,binding:t,part:r,evaluator:i};for(let s=0;s<a.length;s++){let l=a[s];typeof l=="string"&&(l=Hn(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Ju,info:n,trigger:l})}}}function Ju(i,e,t,r,o,a,n){let s=n[o.index],l=o.binding,d=o.part;if(a&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]){let u=t[e];e=Wt(d.source,l.target,e),s._setPendingPropertyOrPath(e,u,!1,!0)&&i._enqueueClient(s)}else{let u=o.evaluator._evaluateBinding(i,d,e,t,r,a);u!==Yt&&Zu(i,s,l,d,u)}}function Zu(i,e,t,r,o){if(o=eh(e,o,t,r),Pr&&(o=Pr(o,t.target,t.kind,e)),t.kind=="attribute")i._valueToNodeAttribute(e,o,t.target);else{let a=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[a]?(!e[L.READ_ONLY]||!e[L.READ_ONLY][a])&&e._setPendingProperty(a,o)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,a,o)}}function eh(i,e,t,r){if(t.isCompound){let o=i.__dataCompoundStorage[t.target];o[r.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(e=e==null?"":e),e}function th(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function rh(i,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let o=0;o<r.length;o++){let a=r[o],n=t[o],s=a.bindings;if(s)for(let l=0;l<s.length;l++){let d=s[l];ih(n,d),oh(n,i,d)}n.__dataHost=i}}function ih(i,e){if(e.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=e.parts,o=new Array(r.length);for(let n=0;n<r.length;n++)o[n]=r[n].literal;let a=e.target;t[a]=o,e.literal&&e.kind=="property"&&(a==="className"&&(i=ae(i)),i[a]=e.literal)}}function oh(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(o){Wu(o,e,t.target,r.source,r.negate)})}}function fa(i,e,t,r,o,a){a=e.static||a&&(typeof a!="object"||a[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:a};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 a&&i._addPropertyEffect(e.methodName,t,{fn:r,info:n}),n}function wi(i,e,t,r,o){let a=i._methodHost||i,n=a[o.methodName];if(n){let s=i._marshalArgs(o.args,e,t);return s===Yt?Yt:n.apply(a,s)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const ah=[],Rn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",nh="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",sh="(?:'(?:[^'\\\\]|\\\\.)*')",lh='(?:"(?:[^"\\\\]|\\\\.)*")',dh="(?:"+sh+"|"+lh+")",va="(?:("+Rn+"|"+nh+"|"+dh+")\\s*)",ch="(?:"+va+"(?:,\\s*"+va+")*)",uh="(?:\\(\\s*(?:"+ch+"?)\\)\\s*)",hh="("+Rn+"\\s*"+uh+"?)",ph="(\\[\\[|{{)\\s*",mh="(?:]]|}})",_h="(?:(!)\\s*)?",fh=ph+_h+hh+mh,ga=new RegExp(fh,"g");function ba(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function Zr(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:ah};if(e[2].trim()){let r=e[2].replace(/\\,/g,",").split(",");return vh(r,t)}else return t}return null}function vh(i,e){return e.args=i.map(function(t){let r=Hn(t);return r.literal||(e.static=!1),r},this),e}function Hn(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=tt(e),t.structured=bi(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function ya(i,e,t){let r=pe(i,t);return r===void 0&&(r=e[t]),r}function $n(i,e,t,r){const o={indexSplices:r};gi&&!i._overrideLegacyUndefined&&(e.splices=o),i.notifyPath(t+".splices",o),i.notifyPath(t+".length",e.length),gi&&!i._overrideLegacyUndefined&&(o.indexSplices=[])}function It(i,e,t,r,o,a){$n(i,e,t,[{index:r,addedCount:o,removed:a,object:e,type:"splice"}])}function gh(i){return i[0].toUpperCase()+i.substring(1)}const Qi=J(i=>{const e=Fu(Tu(i));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return L}_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(Dt.length){let o=Dt[Dt.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let a=this[L.READ_ONLY];for(let n in o)(!a||!a[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n])}_addPropertyEffect(o,a,n){this._createPropertyAccessor(o,a==L.READ_ONLY);let s=Qr(this,a,!0)[o];s||(s=this[a][o]=[]),s.push(n)}_removePropertyEffect(o,a,n){let s=Qr(this,a,!0)[o],l=s.indexOf(n);l>=0&&s.splice(l,1)}_hasPropertyEffect(o,a){let n=this[a];return!!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,L.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,L.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,L.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,L.COMPUTE)}_setPendingPropertyOrPath(o,a,n,s){if(s||tt(Array.isArray(o)?o[0]:o)!==o){if(!s){let l=pe(this,o);if(o=ua(this,o,a),!o||!super._shouldPropertyChange(o,a,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,a,n))return Xu(this,o,a),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,a,n);this[o]=a}return!1}_setUnmanagedPropertyToNode(o,a,n){(n!==o[a]||typeof n=="object")&&(a==="className"&&(o=ae(o)),o[a]=n)}_setPendingProperty(o,a,n){let s=this.__dataHasPaths&&bi(o),l=s?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,a,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),s?this.__dataTemp[o]=a:this.__data[o]=a,this.__dataPending[o]=a,(s||this[L.NOTIFY]&&this[L.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,a){this._setPendingProperty(o,a,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let a=0;a<o.length;a++){let n=o[a];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,a){for(let n in o)(a||!this[L.READ_ONLY]||!this[L.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,a,n){let s=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Yu(this,a,n,s),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(a,n,s),this._flushClients(),Nt(this,this[L.REFLECT],a,n,s),Nt(this,this[L.OBSERVE],a,n,s),l&&Hu(this,l,a,n,s),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,a,n){this[L.PROPAGATE]&&Nt(this,this[L.PROPAGATE],o,a,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,a,n)}_runEffectsForTemplate(o,a,n,s){const l=(d,u)=>{Nt(this,o.propertyEffects,d,n,u,o.nodeList);for(let h=o.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,u)};o.runEffects?o.runEffects(l,a,s):l(a,s)}linkPaths(o,a){o=Mt(o),a=Mt(a),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=a}unlinkPaths(o){o=Mt(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,a){let n={path:""},s=pe(this,o,n);$n(this,s,n.path,a)}get(o,a){return pe(a||this,o)}set(o,a,n){n?ua(n,o,a):(!this[L.READ_ONLY]||!this[L.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,a,!0)&&this._invalidateProperties()}push(o,...a){let n={path:""},s=pe(this,o,n),l=s.length,d=s.push(...a);return a.length&&It(this,s,n.path,l,a.length,[]),d}pop(o){let a={path:""},n=pe(this,o,a),s=!!n.length,l=n.pop();return s&&It(this,n,a.path,n.length,0,[l]),l}splice(o,a,n,...s){let l={path:""},d=pe(this,o,l);a<0?a=d.length-Math.floor(-a):a&&(a=Math.floor(a));let u;return arguments.length===2?u=d.splice(a):u=d.splice(a,n,...s),(s.length||u.length)&&It(this,d,l.path,a,s.length,u),u}shift(o){let a={path:""},n=pe(this,o,a),s=!!n.length,l=n.shift();return s&&It(this,n,a.path,0,0,[l]),l}unshift(o,...a){let n={path:""},s=pe(this,o,n),l=s.unshift(...a);return a.length&&It(this,s,n.path,0,a.length,[]),l}notifyPath(o,a){let n;if(arguments.length==1){let s={path:""};a=pe(this,o,s),n=s.path}else Array.isArray(o)?n=Mt(o):n=o;this._setPendingPropertyOrPath(n,a,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,a){this._addPropertyEffect(o,L.READ_ONLY),a&&(this["_set"+gh(o)]=function(n){this._setProperty(o,n)})}_createPropertyObserver(o,a,n){let s={property:o,method:a,dynamicFn:!!n};this._addPropertyEffect(o,L.OBSERVE,{fn:ma,info:s,trigger:{name:o}}),n&&this._addPropertyEffect(a,L.OBSERVE,{fn:ma,info:s,trigger:{name:a}})}_createMethodObserver(o,a){let n=Zr(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");fa(this,n,L.OBSERVE,wi,null,a)}_createNotifyingProperty(o){this._addPropertyEffect(o,L.NOTIFY,{fn:Uu,info:{eventName:Lr(o)+"-changed",property:o}})}_createReflectedProperty(o){let a=this.constructor.attributeNameForProperty(o);a[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+a+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,L.REFLECT,{fn:qu,info:{attrName:a}})}_createComputedProperty(o,a,n){let s=Zr(a);if(!s)throw new Error("Malformed computed expression '"+a+"'");const l=fa(this,s,L.COMPUTE,Vn,o,n);Qr(this,Bn)[o]=l}_marshalArgs(o,a,n){const s=this.__data,l=[];for(let d=0,u=o.length;d<u;d++){let{name:h,structured:p,wildcard:m,value:b,literal:w}=o[d];if(!w)if(m){const x=Ut(h,a),k=ya(s,n,x?a:h);b={path:x?a:h,value:k,base:x?pe(s,h):k}}else b=p?ya(s,n,h):s[h];if(gi&&!this._overrideLegacyUndefined&&b===void 0&&o.length>1)return Yt;l[d]=b}return l}static addPropertyEffect(o,a,n){this.prototype._addPropertyEffect(o,a,n)}static createPropertyObserver(o,a,n){this.prototype._createPropertyObserver(o,a,n)}static createMethodObserver(o,a){this.prototype._createMethodObserver(o,a)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,a){this.prototype._createReadOnlyProperty(o,a)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,a,n){this.prototype._createComputedProperty(o,a,n)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,a){let n=this.constructor._parseTemplate(o),s=this.__preBoundTemplateInfo==n;if(!s)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(a)if(n=Object.create(n),n.wasPreBound=s,!this.__templateInfo)this.__templateInfo=n;else{const l=o._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(o,a,n){let s=o.hostProps=o.hostProps||{};s[a]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[a]=l[a]||[]).push(n)}_stampTemplate(o,a){a=a||this._bindTemplate(o,!0),Dt.push(this);let n=super._stampTemplate(o,a);if(Dt.pop(),a.nodeList=n.nodeList,!a.wasPreBound){let s=a.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)s.push(l)}return n.templateInfo=a,rh(this,a),this.__dataClientsReady&&(this._runEffectsForTemplate(a,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const a=o.templateInfo,{previousSibling:n,nextSibling:s,parent:l}=a;n?n.nextSibling=s:l&&(l.firstChild=s),s?s.previousSibling=n:l&&(l.lastChild=n),a.nextSibling=a.previousSibling=null;let d=a.childNodes;for(let u=0;u<d.length;u++){let h=d[u];ae(ae(h).parentNode).removeChild(h)}}static _parseTemplateNode(o,a,n){let s=e._parseTemplateNode.call(this,o,a,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,a);l&&(o.textContent=ba(l)||" ",Jr(this,a,n,"text","textContent",l),s=!0)}return s}static _parseTemplateNodeAttribute(o,a,n,s,l){let d=this._parseBindings(l,a);if(d){let u=s,h="property";Vu.test(s)?h="attribute":s[s.length-1]=="$"&&(s=s.slice(0,-1),h="attribute");let p=ba(d);return p&&h=="attribute"&&(s=="class"&&o.hasAttribute("class")&&(p+=" "+o.getAttribute(s)),o.setAttribute(s,p)),h=="attribute"&&u=="disable-upgrade$"&&o.setAttribute(s,""),o.localName==="input"&&u==="value"&&o.setAttribute(u,""),o.removeAttribute(u),h==="property"&&(s=Dn(s)),Jr(this,a,n,h,s,d,p),!0}else return e._parseTemplateNodeAttribute.call(this,o,a,n,s,l)}static _parseTemplateNestedTemplate(o,a,n){let s=e._parseTemplateNestedTemplate.call(this,o,a,n);const l=o.parentNode,d=n.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";aa&&(u||h)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=d,n.noted=!0,s=!1);let p=d.hostProps;if(du&&u)p&&(a.hostProps=Object.assign(a.hostProps||{},p),aa||(n.parentInfo.noted=!0));else{let m="{";for(let b in p){let w=[{mode:m,source:b,dependencies:[b],hostProp:!0}];Jr(this,a,n,"property","_host_"+b,w)}}return s}static _parseBindings(o,a){let n=[],s=0,l;for(;(l=ga.exec(o))!==null;){l.index>s&&n.push({literal:o.slice(s,l.index)});let d=l[1][0],u=!!l[2],h=l[3].trim(),p=!1,m="",b=-1;d=="{"&&(b=h.indexOf("::"))>0&&(m=h.substring(b+2),h=h.substring(0,b),p=!0);let w=Zr(h),x=[];if(w){let{args:k,methodName:E}=w;for(let F=0;F<k.length;F++){let O=k[F];O.literal||x.push(O)}let B=a.dynamicFns;(B&&B[E]||w.static)&&(x.push(E),w.dynamicFn=!0)}else x.push(h);n.push({source:h,mode:d,negate:u,customEvent:p,signature:w,dependencies:x,event:m}),s=ga.lastIndex}if(s&&s<o.length){let d=o.substring(s);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(o,a,n,s,l,d){let u;return a.signature?u=wi(o,n,s,l,a.signature):n!=a.source?u=pe(o,a.source):d&&bi(n)?u=pe(o,n):u=o.__data[n],a.negate&&(u=!u),u}}return t}),Dt=[];/**
|
|
990
991
|
@license
|
|
991
992
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
992
993
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1002,7 +1003,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1002
1003
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1003
1004
|
Code distributed by Google as part of the polymer project is also
|
|
1004
1005
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1005
|
-
*/function
|
|
1006
|
+
*/function bh(i){const e={};for(let t in i){const r=i[t];e[t]=typeof r=="function"?{type:r}:r}return e}const yh=J(i=>{const e=Nn(i);function t(a){const n=Object.getPrototypeOf(a);return n.prototype instanceof o?n:null}function r(a){if(!a.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",a))){let n=null;if(a.hasOwnProperty(JSCompiler_renameProperty("properties",a))){const s=a.properties;s&&(n=bh(s))}a.__ownProperties=n}return a.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(s=>this.prototype._addPropertyToAttributeMap(s)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=t(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=r(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=t(this);this.__properties=Object.assign({},n&&n._properties,r(this))}return this.__properties}static typeForProperty(n){const s=this._properties[n];return s&&s.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o});/**
|
|
1006
1007
|
* @fileoverview
|
|
1007
1008
|
* @suppress {checkPrototypalTypes}
|
|
1008
1009
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1012,7 +1013,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1012
1013
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
1013
1014
|
* Google as part of the polymer project is also subject to an additional IP
|
|
1014
1015
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1015
|
-
*/const
|
|
1016
|
+
*/const wh="3.5.2",wa=window.ShadyCSS&&window.ShadyCSS.cssBuild,xh=J(i=>{const e=yh(Qi(i));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let u in d){let h=d[u];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[u]=h)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,d,u,h){u.computed&&(u.readOnly=!0),u.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,u.computed,h)),u.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!u.computed):u.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),u.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):u.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),u.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):u.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),u.observer&&l._createPropertyObserver(d,u.observer,h[u.observer]),l._addPropertyToAttributeMap(d)}function a(l,d,u,h){if(!wa){const p=d.content.querySelectorAll("style"),m=Pn(d),b=vu(u),w=d.content.firstElementChild;for(let k=0;k<b.length;k++){let E=b[k];E.textContent=l._processStyleText(E.textContent,h),d.content.insertBefore(E,w)}let x=0;for(let k=0;k<m.length;k++){let E=m[k],B=p[x];B!==E?(E=E.cloneNode(!0),B.parentNode.insertBefore(E,B)):x++,E.textContent=l._processStyleText(E.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,u),cu&&wa&&ou){const p=d.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(b=>{m+=b.textContent,b.parentNode.removeChild(b)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let d=null;if(l&&(!Ar||nu)&&(d=$t.import(l,"template"),Ar&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class s extends e{static get polymerElementVersion(){return wh}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):xn||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let u in d)o(this.prototype,u,d[u],d)}static createObservers(d,u){const h=this.prototype;for(let p=0;p<d.length;p++)h._createMethodObserver(d[p],u)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Gi(d.url);else{const u=$t.import(this.is);this._importPath=u&&u.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=au,this.importPath=this.constructor.importPath;let d=t(this.constructor);if(d)for(let u in d){let h=d[u];if(this._canApplyPropertyDefault(u)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(u)?this._setPendingProperty(u,p,!0):this[u]=p}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,u){return ji(d,u)}static _finalizeTemplate(d){const u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;const h=this.importPath,p=h?Bt(h):"";a(this,u,d,p),this.prototype._bindTemplate(u)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const u=ae(this);if(u.attachShadow)return d?(u.shadowRoot||(u.attachShadow({mode:"open",shadyUpgradeFragment:d}),u.shadowRoot.appendChild(d),this.constructor._styleSheet&&(u.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),su&&window.ShadyDOM&&window.ShadyDOM.flushInitial(u.shadowRoot),u.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,u){return!u&&this.importPath&&(u=Bt(this.importPath)),Bt(d,u)}static _parseTemplateContent(d,u,h){return u.dynamicFns=u.dynamicFns||this._properties,e._parseTemplateContent.call(this,d,u,h)}static _addTemplatePropertyEffect(d,u,h){return Cn&&!(u in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${u}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,d,u,h)}}return s});/**
|
|
1016
1017
|
@license
|
|
1017
1018
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1018
1019
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1020,7 +1021,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1020
1021
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1021
1022
|
Code distributed by Google as part of the polymer project is also
|
|
1022
1023
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1023
|
-
*/const
|
|
1024
|
+
*/const xa=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class Un{constructor(e,t){qn(e,t);const r=t.reduce((o,a,n)=>o+Wn(a)+e[n+1],e[0]);this.value=r.toString()}toString(){return this.value}}function Wn(i){if(i instanceof Un)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function Ch(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof Un)return Wn(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const D=function(i,...e){qn(i,e);const t=document.createElement("template");let r=e.reduce((o,a,n)=>o+Ch(a)+i[n+1],i[0]);return xa&&(r=xa.createHTML(r)),t.innerHTML=r,t},qn=(i,e)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||e.length!==i.length-1)throw new TypeError("Invalid call to the html template tag")};/**
|
|
1024
1025
|
@license
|
|
1025
1026
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1026
1027
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1028,7 +1029,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1028
1029
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1029
1030
|
Code distributed by Google as part of the polymer project is also
|
|
1030
1031
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1031
|
-
*/const
|
|
1032
|
+
*/const S=xh(HTMLElement),kh=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,fr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Eh(){function i(){return!0}return Yn(i)}function Ph(){try{return Ah()?!0:Th()?fr?!Ih():!Eh():!1}catch(i){return!1}}function Ah(){return localStorage.getItem("vaadin.developmentmode.force")}function Th(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Ih(){return!!(fr&&Object.keys(fr).map(i=>fr[i]).filter(i=>i.productionMode).length>0)}function Yn(i,e){if(typeof i!="function")return;const t=kh.exec(i.toString());if(t)try{i=new Function(t[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return i(e)}window.Vaadin=window.Vaadin||{};const Ca=function(i,e){if(window.Vaadin.developmentMode)return Yn(i,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Ph());function Dh(){/*! vaadin-dev-mode:start
|
|
1032
1033
|
(function () {
|
|
1033
1034
|
'use strict';
|
|
1034
1035
|
|
|
@@ -1506,7 +1507,7 @@ try {
|
|
|
1506
1507
|
|
|
1507
1508
|
}());
|
|
1508
1509
|
|
|
1509
|
-
vaadin-dev-mode:end **/}const
|
|
1510
|
+
vaadin-dev-mode:end **/}const Sh=function(){if(typeof Ca=="function")return Ca(Dh)};/**
|
|
1510
1511
|
* @license
|
|
1511
1512
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1512
1513
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1514,7 +1515,7 @@ try {
|
|
|
1514
1515
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1515
1516
|
* Code distributed by Google as part of the polymer project is also
|
|
1516
1517
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1517
|
-
*/let
|
|
1518
|
+
*/let ka=0,jn=0;const ct=[];let xi=!1;function Oh(){xi=!1;const i=ct.length;for(let e=0;e<i;e++){const t=ct[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}ct.splice(0,i),jn+=i}const Re={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},jt={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},Gn={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},Ir={run(i){xi||(xi=!0,queueMicrotask(()=>Oh())),ct.push(i);const e=ka;return ka+=1,e},cancel(i){const e=i-jn;if(e>=0){if(!ct[e])throw new Error(`invalid async handle: ${i}`);ct[e]=null}}};/**
|
|
1518
1519
|
@license
|
|
1519
1520
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1520
1521
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1522,35 +1523,35 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1522
1523
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1523
1524
|
Code distributed by Google as part of the polymer project is also
|
|
1524
1525
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1525
|
-
*/const
|
|
1526
|
+
*/const Gt=new Set;let ve=class Ci{static debounce(e,t,r){return e instanceof Ci?e._cancelAsync():e=new Ci,e.setConfig(t,r),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Gt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Gt.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function Kn(i){Gt.add(i)}function Mh(){const i=!!Gt.size;return Gt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i}const zt=()=>{let i;do i=Mh();while(i)};/**
|
|
1526
1527
|
* @license
|
|
1527
1528
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1528
1529
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1529
|
-
*/const
|
|
1530
|
+
*/const Ie=[];function ki(i,e,t=i.getAttribute("dir")){e?i.setAttribute("dir",e):t!=null&&i.removeAttribute("dir")}function Ei(){return document.documentElement.getAttribute("dir")}function Nh(){const i=Ei();Ie.forEach(e=>{ki(e,i)})}const zh=new MutationObserver(Nh);zh.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const ge=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(),ki(this,Ei(),null))}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),e!=="dir")return;const o=Ei(),a=r===o&&Ie.indexOf(this)===-1,n=!r&&t&&Ie.indexOf(this)===-1;a||n?(this.__subscribe(),ki(this,o,r)):r!==o&&t===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Ie.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(){Ie.includes(this)||Ie.push(this)}__unsubscribe(){Ie.includes(this)&&Ie.splice(Ie.indexOf(this),1)}};/**
|
|
1530
1531
|
* @license
|
|
1531
1532
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1532
1533
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1533
|
-
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){
|
|
1534
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Sh()};let ei;const Ea=new Set,be=i=>class extends ge(i){static finalize(){super.finalize();const{is:e}=this;e&&!Ea.has(e)&&(window.Vaadin.registrations.push(this),Ea.add(e),window.Vaadin.developmentModeCallback&&(ei=ve.debounce(ei,Gn,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Kn(ei)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
|
|
1534
1535
|
* @license
|
|
1535
1536
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1536
1537
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1537
|
-
*/function
|
|
1538
|
+
*/function Lh(i){const e=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){e.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return e}function Xn(i){const e=[];let t;return i.localName==="slot"?t=i.assignedElements():(e.push(i),t=[...i.children]),t.forEach(r=>e.push(...Xn(r))),e}function Ji(i){return i?new Set(i.split(" ")):new Set}function Br(i){return i?[...i].join(" "):""}function Qn(i,e,t){const r=Ji(i.getAttribute(e));r.add(t),i.setAttribute(e,Br(r))}function Bh(i,e,t){const r=Ji(i.getAttribute(e));if(r.delete(t),r.size===0){i.removeAttribute(e);return}i.setAttribute(e,Br(r))}function Fh(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
|
|
1538
1539
|
* @license
|
|
1539
1540
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
1540
1541
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1541
|
-
*/class
|
|
1542
|
+
*/class Zi{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const r=[],o=[];e.length&&(t=e.filter(a=>!this._storedNodes.includes(a))),this._storedNodes.length&&this._storedNodes.forEach((a,n)=>{const s=e.indexOf(a);s===-1?r.push(a):s!==n&&o.push(a)}),(t.length||r.length||o.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:o,removedNodes:r}),this._storedNodes=e}}/**
|
|
1542
1543
|
* @license
|
|
1543
1544
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1544
1545
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1545
|
-
*/let
|
|
1546
|
+
*/let Vh=0;function Qt(){return Vh++}/**
|
|
1546
1547
|
* @license
|
|
1547
1548
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1548
1549
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1549
|
-
*/class
|
|
1550
|
+
*/class ce extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${Qt()}`}constructor(e,t,r,o={}){super();const{initializer:a,multiple:n,observe:s,useUniqueId:l,uniqueIdPrefix:d}=o;this.host=e,this.slotName=t,this.tagName=r,this.observe=typeof s=="boolean"?s:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=a,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,d||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:r}=this;let o=this.defaultNode;return!o&&r&&(o=document.createElement(r),o instanceof Element&&(t!==""&&o.setAttribute("slot",t),this.defaultNode=o)),o&&(this.node=o,e.appendChild(o)),o}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Zi(r,({addedNodes:o,removedNodes:a})=>{const n=this.multiple?this.nodes:[this.node],s=o.filter(l=>!Fh(l)&&!n.includes(l));a.length&&(this.nodes=n.filter(l=>!a.includes(l)),a.forEach(l=>{this.teardownNode(l)})),s&&s.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...s].filter(l=>l!==this.defaultNode),s.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=s[0],this.initAddedNode(this.node)))})}}/**
|
|
1550
1551
|
* @license
|
|
1551
1552
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
1552
1553
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1553
|
-
*/class
|
|
1554
|
+
*/class Ne extends ce{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
|
|
1554
1555
|
@license
|
|
1555
1556
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1556
1557
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1558,107 +1559,107 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1558
1559
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1559
1560
|
Code distributed by Google as part of the polymer project is also
|
|
1560
1561
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1561
|
-
*/const
|
|
1562
|
+
*/const Rh=i=>i,Jn=typeof document.head.style.touchAction=="string",Pi="__polymerGestures",ti="__polymerGesturesHandled",Ai="__polymerGesturesTouchAction",Pa=25,Aa=5,Hh=2,$h=["mousedown","mousemove","mouseup","click"],Uh=[0,1,4,2],Wh=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function Zn(i){return $h.indexOf(i)>-1}let qh=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){qh=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();const Yh=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),jh={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Je(i){const e=i.type;if(!Zn(e))return!1;if(e==="mousemove"){let t=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!Wh&&(t=Uh[i.which]||0),!!(t&1)}return(i.button===void 0?0:i.button)===0}function Gh(i){if(i.type==="click"){if(i.detail===0)return!0;const e=He(i);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),r=i.pageX,o=i.pageY;return!(r>=t.left&&r<=t.right&&o>=t.top&&o<=t.bottom)}return!1}const De={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Kh(i){let e="auto";const t=ts(i);for(let r=0,o;r<t.length;r++)if(o=t[r],o[Ai]){e=o[Ai];break}return e}function es(i,e,t){i.movefn=e,i.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function ut(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const ts=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],eo={},Qe=[];function Xh(i,e){let t=document.elementFromPoint(i,e),r=t;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const o=r;if(r=r.shadowRoot.elementFromPoint(i,e),o===r)break;r&&(t=r)}return t}function He(i){const e=ts(i);return e.length>0?e[0]:i.target}function Qh(i){const e=i.type,t=i.currentTarget[Pi];if(!t)return;const r=t[e];if(!r)return;if(!i[ti]&&(i[ti]={},e.startsWith("touch"))){const a=i.changedTouches[0];if(e==="touchstart"&&i.touches.length===1&&(De.touch.id=a.identifier),De.touch.id!==a.identifier)return;Jn||(e==="touchstart"||e==="touchmove")&&Jh(i)}const o=i[ti];if(!o.skip){for(let a=0,n;a<Qe.length;a++)n=Qe[a],r[n.name]&&!o[n.name]&&n.flow&&n.flow.start.indexOf(i.type)>-1&&n.reset&&n.reset();for(let a=0,n;a<Qe.length;a++)n=Qe[a],r[n.name]&&!o[n.name]&&(o[n.name]=!0,n[e](i))}}function Jh(i){const e=i.changedTouches[0],t=i.type;if(t==="touchstart")De.touch.x=e.clientX,De.touch.y=e.clientY,De.touch.scrollDecided=!1;else if(t==="touchmove"){if(De.touch.scrollDecided)return;De.touch.scrollDecided=!0;const r=Kh(i);let o=!1;const a=Math.abs(De.touch.x-e.clientX),n=Math.abs(De.touch.y-e.clientY);i.cancelable&&(r==="none"?o=!0:r==="pan-x"?o=n>a:r==="pan-y"&&(o=a>n)),o?i.preventDefault():Dr("track")}}function Ce(i,e,t){return eo[e]?(Zh(i,e,t),!0):!1}function Zh(i,e,t){const r=eo[e],o=r.deps,a=r.name;let n=i[Pi];n||(i[Pi]=n={});for(let s=0,l,d;s<o.length;s++)l=o[s],!(Yh&&Zn(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&i.addEventListener(l,Qh,void 0),d[a]=(d[a]||0)+1,d._count=(d._count||0)+1);i.addEventListener(e,t),r.touchAction&&rs(i,r.touchAction)}function to(i){Qe.push(i),i.emits.forEach(e=>{eo[e]=i})}function ep(i){for(let e=0,t;e<Qe.length;e++){t=Qe[e];for(let r=0,o;r<t.emits.length;r++)if(o=t.emits[r],o===i)return t}return null}function rs(i,e){Jn&&i instanceof HTMLElement&&Ir.run(()=>{i.style.touchAction=e}),i[Ai]=e}function ro(i,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,Rh(i).dispatchEvent(r),r.defaultPrevented){const o=t.preventer||t.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function Dr(i){const e=ep(i);e.info&&(e.info.prevent=!0)}to({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){ut(this.info)},mousedown(i){if(!Je(i))return;const e=He(i),t=this,r=a=>{Je(a)||(St("up",e,a),ut(t.info))},o=a=>{Je(a)&&St("up",e,a),ut(t.info)};es(this.info,r,o),St("down",e,i)},touchstart(i){St("down",He(i),i.changedTouches[0],i)},touchend(i){St("up",He(i),i.changedTouches[0],i)}});function St(i,e,t,r){e&&ro(e,i,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(o){return Dr(o)}})}to({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>Hh&&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,ut(this.info)},mousedown(i){if(!Je(i))return;const e=He(i),t=this,r=a=>{const n=a.clientX,s=a.clientY;Ta(t.info,n,s)&&(t.info.state=t.info.started?a.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&Dr("tap"),t.info.addMove({x:n,y:s}),Je(a)||(t.info.state="end",ut(t.info)),e&&ri(t.info,e,a),t.info.started=!0)},o=a=>{t.info.started&&r(a),ut(t.info)};es(this.info,r,o),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=He(i),t=i.changedTouches[0],r=t.clientX,o=t.clientY;Ta(this.info,r,o)&&(this.info.state==="start"&&Dr("tap"),this.info.addMove({x:r,y:o}),ri(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(i){const e=He(i),t=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),ri(this.info,e,t))}});function Ta(i,e,t){if(i.prevent)return!1;if(i.started)return!0;const r=Math.abs(i.x-e),o=Math.abs(i.y-t);return r>=Aa||o>=Aa}function ri(i,e,t){if(!e)return;const r=i.moves[i.moves.length-2],o=i.moves[i.moves.length-1],a=o.x-i.x,n=o.y-i.y;let s,l=0;r&&(s=o.x-r.x,l=o.y-r.y),ro(e,"track",{state:i.state,x:t.clientX,y:t.clientY,dx:a,dy:n,ddx:s,ddy:l,sourceEvent:t,hover(){return Xh(t.clientX,t.clientY)}})}to({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){Je(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){Je(i)&&Ia(this.info,i)},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(i){Ia(this.info,i.changedTouches[0],i)}});function Ia(i,e,t){const r=Math.abs(e.clientX-i.x),o=Math.abs(e.clientY-i.y),a=He(t||e);!a||jh[a.localName]&&a.hasAttribute("disabled")||(isNaN(r)||isNaN(o)||r<=Pa&&o<=Pa||Gh(e))&&(i.prevent||ro(a,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
|
|
1562
1563
|
* @license
|
|
1563
1564
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1564
1565
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1565
|
-
*/const
|
|
1566
|
+
*/const yt=J(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
|
|
1566
1567
|
* @license
|
|
1567
1568
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1568
1569
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1569
|
-
*/const
|
|
1570
|
+
*/const rt=J(i=>class extends i{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
|
|
1570
1571
|
* @license
|
|
1571
1572
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1572
1573
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1573
|
-
*/const
|
|
1574
|
+
*/const io=i=>class extends yt(rt(i)){get _activeKeys(){return[" "]}ready(){super.ready(),Ce(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Ce(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
|
|
1574
1575
|
* @license
|
|
1575
1576
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1576
1577
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1577
|
-
*/let
|
|
1578
|
+
*/let oo=!1;window.addEventListener("keydown",()=>{oo=!0},{capture:!0});window.addEventListener("mousedown",()=>{oo=!1},{capture:!0});function Ti(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Fr(){return oo}function is(i){const e=i.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(i);return t.visibility==="hidden"||t.display==="none"}function tp(i,e){const t=Math.max(i.tabIndex,0),r=Math.max(e.tabIndex,0);return t===0||r===0?r>t:t>r}function rp(i,e){const t=[];for(;i.length>0&&e.length>0;)tp(i[0],e[0])?t.push(e.shift()):t.push(i.shift());return t.concat(i,e)}function Ii(i){const e=i.length;if(e<2)return i;const t=Math.ceil(e/2),r=Ii(i.slice(0,t)),o=Ii(i.slice(t));return rp(r,o)}function Di(i){return i.offsetParent===null&&i.clientWidth===0&&i.clientHeight===0?!0:is(i)}function ao(i){return i.matches('[tabindex="-1"]')?!1:i.matches("input, select, textarea, button, object")?i.matches(":not([disabled])"):i.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function no(i){return i.getRootNode().activeElement===i}function ip(i){if(!ao(i))return-1;const e=i.getAttribute("tabindex")||0;return Number(e)}function os(i,e){if(i.nodeType!==Node.ELEMENT_NODE||is(i))return!1;const t=i,r=ip(t);let o=r>0;r>=0&&e.push(t);let a=[];return t.localName==="slot"?a=t.assignedNodes({flatten:!0}):a=(t.shadowRoot||t).children,[...a].forEach(n=>{o=os(n,e)||o}),o}function op(i){const e=[];return os(i,e)?Ii(e):e}/**
|
|
1578
1579
|
* @license
|
|
1579
1580
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1580
1581
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1581
|
-
*/const
|
|
1582
|
+
*/const it=J(i=>class extends i{get _keyboardActive(){return Fr()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
|
|
1582
1583
|
* @license
|
|
1583
1584
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1584
1585
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1585
|
-
*/const
|
|
1586
|
+
*/const as=i=>class extends yt(i){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
|
|
1586
1587
|
* @license
|
|
1587
1588
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1588
1589
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1589
|
-
*/const
|
|
1590
|
+
*/const Vr=J(i=>class extends it(as(i)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
|
|
1590
1591
|
* @license
|
|
1591
1592
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1592
1593
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1593
|
-
*/const
|
|
1594
|
+
*/const so=J(i=>class extends i{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((t,r)=>{this._delegateAttribute(t,e[r])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,r)=>{this._delegateProperty(t,e[r])})}_delegateAttribute(e,t){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",t?"true":!1),typeof t=="boolean"?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}});/**
|
|
1594
1595
|
* @license
|
|
1595
1596
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1596
1597
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1597
|
-
*/const
|
|
1598
|
+
*/const Jt=J(i=>class extends i{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),!(e===""&&t===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}});/**
|
|
1598
1599
|
* @license
|
|
1599
1600
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1600
1601
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1601
|
-
*/const
|
|
1602
|
+
*/const ap=J(i=>class extends so(yt(Jt(i))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
|
|
1602
1603
|
* @license
|
|
1603
1604
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
1604
1605
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1605
|
-
*/const
|
|
1606
|
+
*/const ii=new Map;function lo(i){return ii.has(i)||ii.set(i,new WeakMap),ii.get(i)}function ns(i,e){i&&i.removeAttribute(e)}function ss(i,e){if(!i||!e)return;const t=lo(e);if(t.has(i))return;const r=Ji(i.getAttribute(e));t.set(i,new Set(r))}function np(i,e){if(!i||!e)return;const t=lo(e),r=t.get(i);!r||r.size===0?i.removeAttribute(e):Qn(i,e,Br(r)),t.delete(i)}function ht(i,e,t={newId:null,oldId:null,fromUser:!1}){if(!i||!e)return;const{newId:r,oldId:o,fromUser:a}=t,n=lo(e),s=n.get(i);if(!a&&s){o&&s.delete(o),r&&s.add(r);return}a&&(s?r||n.delete(i):ss(i,e),ns(i,e)),Bh(i,e,o);const l=r||Br(s);l&&Qn(i,e,l)}function sp(i,e){ss(i,e),ns(i,e)}/**
|
|
1606
1607
|
* @license
|
|
1607
1608
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1608
1609
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1609
|
-
*/class
|
|
1610
|
+
*/class lp{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(sp(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(np(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){ht(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){ht(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){ht(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
|
|
1610
1611
|
* @license
|
|
1611
1612
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1612
1613
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1613
|
-
*/const
|
|
1614
|
+
*/const Pe=J(i=>typeof i.prototype.addController=="function"?i:class extends i{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
|
|
1614
1615
|
* @license
|
|
1615
1616
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
1616
1617
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1617
|
-
*/const
|
|
1618
|
+
*/const we=document.createElement("div");we.style.position="fixed";we.style.clip="rect(0px, 0px, 0px, 0px)";we.setAttribute("aria-live","polite");document.body.appendChild(we);let dr;function vr(i,e={}){const t=e.mode||"polite",r=e.timeout===void 0?150:e.timeout;t==="alert"?(we.removeAttribute("aria-live"),we.removeAttribute("role"),dr=ve.debounce(dr,jt,()=>{we.setAttribute("role","alert")})):(dr&&dr.cancel(),we.removeAttribute("role"),we.setAttribute("aria-live",t)),we.textContent="",setTimeout(()=>{we.textContent=i},r)}/**
|
|
1618
1619
|
* @license
|
|
1619
1620
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
1620
1621
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1621
|
-
*/class
|
|
1622
|
+
*/class co extends ce{constructor(e,t,r,o={}){super(e,t,r,sn(wr({},o),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(r=>{const o=r.target,a=o===this.node;r.type==="attributes"?a&&this.__updateNodeId(o):(a||o.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
|
|
1622
1623
|
* @license
|
|
1623
1624
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1624
1625
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1625
|
-
*/class
|
|
1626
|
+
*/class dp extends co{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:r}=this,o=!!(r&&t&&t.trim()!=="");e&&(e.textContent=o?t:"",e.hidden=!o,o&&vr(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
|
|
1626
1627
|
* @license
|
|
1627
1628
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1628
1629
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1629
|
-
*/class
|
|
1630
|
+
*/class cp extends co{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
|
|
1630
1631
|
* @license
|
|
1631
1632
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1632
1633
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1633
|
-
*/class
|
|
1634
|
+
*/class ls extends co{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
|
|
1634
1635
|
* @license
|
|
1635
1636
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1636
1637
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1637
|
-
*/const
|
|
1638
|
+
*/const up=J(i=>class extends Pe(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new ls(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
|
|
1638
1639
|
* @license
|
|
1639
1640
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1640
1641
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1641
|
-
*/const
|
|
1642
|
+
*/const uo=J(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
|
|
1642
1643
|
* @license
|
|
1643
1644
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1644
1645
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1645
|
-
*/const
|
|
1646
|
+
*/const Rr=i=>class extends uo(up(Pe(i))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new lp(this),this._helperController=new cp(this),this._errorController=new dp(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:r}=e.detail;this.__labelChanged(t,r)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:r}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,r)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)})}};/**
|
|
1646
1647
|
* @license
|
|
1647
1648
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1648
1649
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1649
|
-
*/class
|
|
1650
|
+
*/class Zt extends ce{constructor(e,t,r={}){const{uniqueIdPrefix:o}=r;super(e,"input","input",{initializer:(a,n)=>{n.value&&(a.value=n.value),n.type&&a.setAttribute("type",n.type),a.id=this.defaultId,typeof t=="function"&&t(a)},useUniqueId:!0,uniqueIdPrefix:o})}}/**
|
|
1650
1651
|
* @license
|
|
1651
1652
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
1652
1653
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1653
|
-
*/class
|
|
1654
|
+
*/class er{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
|
|
1654
1655
|
* @license
|
|
1655
1656
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1656
1657
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1657
|
-
*/const
|
|
1658
|
+
*/const hp=i=>class extends Rr(ap(Vr(io(i)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Zt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new er(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
|
|
1658
1659
|
* @license
|
|
1659
1660
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1660
1661
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1661
|
-
*/const
|
|
1662
|
+
*/const pp=_`
|
|
1662
1663
|
:host {
|
|
1663
1664
|
display: inline-block;
|
|
1664
1665
|
}
|
|
@@ -1750,7 +1751,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1750
1751
|
* @license
|
|
1751
1752
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1752
1753
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1753
|
-
*/
|
|
1754
|
+
*/y("vaadin-checkbox",pp,{moduleId:"vaadin-checkbox-styles"});class mp extends hp(be(H(S))){static get is(){return"vaadin-checkbox"}static get template(){return D`
|
|
1754
1755
|
<div class="vaadin-checkbox-container">
|
|
1755
1756
|
<div part="checkbox" aria-hidden="true"></div>
|
|
1756
1757
|
<slot name="input"></slot>
|
|
@@ -1766,11 +1767,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1766
1767
|
</div>
|
|
1767
1768
|
</div>
|
|
1768
1769
|
<slot name="tooltip"></slot>
|
|
1769
|
-
`}ready(){super.ready(),this._tooltipController=new
|
|
1770
|
+
`}ready(){super.ready(),this._tooltipController=new Ne(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}P(mp);/**
|
|
1770
1771
|
* @license
|
|
1771
1772
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1772
1773
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1773
|
-
*/const
|
|
1774
|
+
*/const ds=_`
|
|
1774
1775
|
:host {
|
|
1775
1776
|
--_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
|
|
1776
1777
|
}
|
|
@@ -1830,7 +1831,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1830
1831
|
* @license
|
|
1831
1832
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1832
1833
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1833
|
-
*/const
|
|
1834
|
+
*/const ho=_`
|
|
1834
1835
|
[part='label'] {
|
|
1835
1836
|
align-self: flex-start;
|
|
1836
1837
|
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
@@ -1942,7 +1943,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1942
1943
|
margin-left: 0;
|
|
1943
1944
|
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
1944
1945
|
}
|
|
1945
|
-
`;
|
|
1946
|
+
`;y("",ho,{moduleId:"lumo-required-field"});const _p=_`
|
|
1946
1947
|
:host {
|
|
1947
1948
|
color: var(--lumo-body-text-color);
|
|
1948
1949
|
font-size: var(--lumo-font-size-m);
|
|
@@ -1985,15 +1986,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1985
1986
|
color: var(--lumo-secondary-text-color);
|
|
1986
1987
|
}
|
|
1987
1988
|
}
|
|
1988
|
-
`;
|
|
1989
|
+
`;y("vaadin-checkbox-group",[ho,ds,_p],{moduleId:"lumo-checkbox-group"});/**
|
|
1989
1990
|
* @license
|
|
1990
1991
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
1991
1992
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1992
|
-
*/const
|
|
1993
|
+
*/const fp=i=>class extends Rr(it(yt(i))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new Ne(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const r=this.__checkboxes.map(o=>o.inputElement);this._tooltipController.setAriaTarget(r)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Zi(e,({addedNodes:t,removedNodes:r})=>{const o=this.__filterCheckboxes(t),a=this.__filterCheckboxes(r);o.forEach(this.__registerCheckbox),a.forEach(this.__unregisterCheckbox);const n=this.__checkboxes.map(s=>s.inputElement);this._tooltipController.setAriaTarget(n),this.__warnOfCheckboxesWithoutValue(o)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:r}=t;return!t.hasAttribute("value")&&(!r||r==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(r=>{r.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(r=>{r.checked=e&&e.includes(r.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(r=>{r.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
|
|
1993
1994
|
* @license
|
|
1994
1995
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
1995
1996
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1996
|
-
*/const
|
|
1997
|
+
*/const vp=_`
|
|
1997
1998
|
:host {
|
|
1998
1999
|
display: inline-flex;
|
|
1999
2000
|
}
|
|
@@ -2026,7 +2027,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2026
2027
|
* @license
|
|
2027
2028
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
2028
2029
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2029
|
-
*/
|
|
2030
|
+
*/y("vaadin-checkbox-group",vp,{moduleId:"vaadin-checkbox-group-styles"});class gp extends fp(be(H(S))){static get is(){return"vaadin-checkbox-group"}static get template(){return D`
|
|
2030
2031
|
<div class="vaadin-group-field-container">
|
|
2031
2032
|
<div part="label">
|
|
2032
2033
|
<slot name="label"></slot>
|
|
@@ -2047,11 +2048,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2047
2048
|
</div>
|
|
2048
2049
|
|
|
2049
2050
|
<slot name="tooltip"></slot>
|
|
2050
|
-
`}}
|
|
2051
|
+
`}}P(gp);/**
|
|
2051
2052
|
* @license
|
|
2052
2053
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2053
2054
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2054
|
-
*/const
|
|
2055
|
+
*/const wt=_`
|
|
2055
2056
|
:host {
|
|
2056
2057
|
top: var(--lumo-space-m);
|
|
2057
2058
|
right: var(--lumo-space-m);
|
|
@@ -2116,11 +2117,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2116
2117
|
opacity: 1;
|
|
2117
2118
|
}
|
|
2118
2119
|
}
|
|
2119
|
-
`;
|
|
2120
|
+
`;y("",wt,{moduleId:"lumo-overlay"});/**
|
|
2120
2121
|
* @license
|
|
2121
2122
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2122
2123
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2123
|
-
*/const
|
|
2124
|
+
*/const Hr=_`
|
|
2124
2125
|
:host([opening]),
|
|
2125
2126
|
:host([closing]) {
|
|
2126
2127
|
animation: 0.14s lumo-overlay-dummy-animation;
|
|
@@ -2150,7 +2151,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2150
2151
|
opacity: 0;
|
|
2151
2152
|
}
|
|
2152
2153
|
}
|
|
2153
|
-
`;
|
|
2154
|
+
`;y("",Hr,{moduleId:"lumo-menu-overlay-core"});const bp=_`
|
|
2154
2155
|
/* Small viewport (bottom sheet) styles */
|
|
2155
2156
|
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
2156
2157
|
@media (max-width: 450px), (max-height: 450px) {
|
|
@@ -2212,7 +2213,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2212
2213
|
transform: translateY(150%);
|
|
2213
2214
|
}
|
|
2214
2215
|
}
|
|
2215
|
-
`,
|
|
2216
|
+
`,po=[wt,Hr,bp];y("",po,{moduleId:"lumo-menu-overlay"});const yp=_`
|
|
2216
2217
|
[part='overlay'] {
|
|
2217
2218
|
/*
|
|
2218
2219
|
Width:
|
|
@@ -2257,7 +2258,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2257
2258
|
max-height: 70vh;
|
|
2258
2259
|
}
|
|
2259
2260
|
}
|
|
2260
|
-
`;
|
|
2261
|
+
`;y("vaadin-date-picker-overlay",[po,yp],{moduleId:"lumo-date-picker-overlay"});const cs=_`
|
|
2261
2262
|
:host {
|
|
2262
2263
|
/* Sizing */
|
|
2263
2264
|
--lumo-button-size: var(--lumo-size-m);
|
|
@@ -2533,7 +2534,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2533
2534
|
margin-left: 0;
|
|
2534
2535
|
margin-right: 0;
|
|
2535
2536
|
}
|
|
2536
|
-
`;
|
|
2537
|
+
`;y("vaadin-button",cs,{moduleId:"lumo-button"});y("vaadin-date-picker-year",_`
|
|
2537
2538
|
:host([current]) [part='year-number'] {
|
|
2538
2539
|
color: var(--lumo-primary-text-color);
|
|
2539
2540
|
}
|
|
@@ -2557,7 +2558,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2557
2558
|
color: var(--lumo-disabled-text-color);
|
|
2558
2559
|
content: '\\2022';
|
|
2559
2560
|
}
|
|
2560
|
-
`,{moduleId:"lumo-date-picker-year"});
|
|
2561
|
+
`,{moduleId:"lumo-date-picker-year"});y("vaadin-date-picker-overlay-content",_`
|
|
2561
2562
|
:host {
|
|
2562
2563
|
position: relative;
|
|
2563
2564
|
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
@@ -2707,7 +2708,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2707
2708
|
padding-left: 50px;
|
|
2708
2709
|
}
|
|
2709
2710
|
}
|
|
2710
|
-
`,{moduleId:"lumo-date-picker-overlay-content"});
|
|
2711
|
+
`,{moduleId:"lumo-date-picker-overlay-content"});y("vaadin-month-calendar",_`
|
|
2711
2712
|
:host {
|
|
2712
2713
|
-moz-user-select: none;
|
|
2713
2714
|
-webkit-user-select: none;
|
|
@@ -2854,7 +2855,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
2854
2855
|
:host([disabled]) * {
|
|
2855
2856
|
color: var(--lumo-disabled-text-color) !important;
|
|
2856
2857
|
}
|
|
2857
|
-
`,{moduleId:"lumo-month-calendar"});
|
|
2858
|
+
`,{moduleId:"lumo-month-calendar"});y("vaadin-input-container",_`
|
|
2858
2859
|
:host {
|
|
2859
2860
|
background: var(--_background);
|
|
2860
2861
|
padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
|
|
@@ -3036,7 +3037,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3036
3037
|
* @license
|
|
3037
3038
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3038
3039
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3039
|
-
*/const
|
|
3040
|
+
*/const mo=_`
|
|
3040
3041
|
[part$='button'] {
|
|
3041
3042
|
flex: none;
|
|
3042
3043
|
width: 1em;
|
|
@@ -3063,11 +3064,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3063
3064
|
font-family: 'lumo-icons';
|
|
3064
3065
|
display: block;
|
|
3065
3066
|
}
|
|
3066
|
-
`;
|
|
3067
|
+
`;y("",mo,{moduleId:"lumo-field-button"});/**
|
|
3067
3068
|
* @license
|
|
3068
3069
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3069
3070
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3070
|
-
*/const
|
|
3071
|
+
*/const wp=_`
|
|
3071
3072
|
:host {
|
|
3072
3073
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
3073
3074
|
color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
|
|
@@ -3198,7 +3199,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3198
3199
|
[part='clear-button']::before {
|
|
3199
3200
|
content: var(--lumo-icons-cross);
|
|
3200
3201
|
}
|
|
3201
|
-
`,
|
|
3202
|
+
`,ot=[ho,mo,ds,wp];y("",ot,{moduleId:"lumo-input-field-shared-styles"});const xp=_`
|
|
3202
3203
|
[part='toggle-button']::before {
|
|
3203
3204
|
content: var(--lumo-icons-calendar);
|
|
3204
3205
|
}
|
|
@@ -3220,15 +3221,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3220
3221
|
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
|
|
3221
3222
|
--_lumo-text-field-overflow-mask-image: none;
|
|
3222
3223
|
}
|
|
3223
|
-
`;
|
|
3224
|
+
`;y("vaadin-date-picker",[ot,xp],{moduleId:"lumo-date-picker"});/**
|
|
3224
3225
|
* @license
|
|
3225
3226
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3226
3227
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3227
|
-
*/const
|
|
3228
|
+
*/const Cp=i=>class extends i{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}};/**
|
|
3228
3229
|
* @license
|
|
3229
3230
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3230
3231
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3231
|
-
*/const
|
|
3232
|
+
*/const kp=_`
|
|
3232
3233
|
:host {
|
|
3233
3234
|
display: flex;
|
|
3234
3235
|
align-items: center;
|
|
@@ -3297,15 +3298,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3297
3298
|
* @license
|
|
3298
3299
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3299
3300
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3300
|
-
*/
|
|
3301
|
+
*/y("vaadin-input-container",kp,{moduleId:"vaadin-input-container-styles"});class us extends Cp(H(ge(S))){static get is(){return"vaadin-input-container"}static get template(){return D`
|
|
3301
3302
|
<slot name="prefix"></slot>
|
|
3302
3303
|
<slot></slot>
|
|
3303
3304
|
<slot name="suffix"></slot>
|
|
3304
|
-
`}}
|
|
3305
|
+
`}}P(us);/**
|
|
3305
3306
|
* @license
|
|
3306
3307
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3307
3308
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3308
|
-
*/const
|
|
3309
|
+
*/const tr=_`
|
|
3309
3310
|
:host {
|
|
3310
3311
|
z-index: 200;
|
|
3311
3312
|
position: fixed;
|
|
@@ -3372,55 +3373,55 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3372
3373
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3373
3374
|
Code distributed by Google as part of the polymer project is also
|
|
3374
3375
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3375
|
-
*/let
|
|
3376
|
+
*/let Si=!1,Ep=[],hs=[];function Pp(){Si=!0,requestAnimationFrame(function(){Si=!1,Ap(Ep),setTimeout(function(){Tp(hs)})})}function Ap(i){for(;i.length;)ps(i.shift())}function Tp(i){for(let e=0,t=i.length;e<t;e++)ps(i.shift())}function ps(i){const e=i[0],t=i[1],r=i[2];try{t.apply(e,r)}catch(o){setTimeout(()=>{throw o})}}function _o(i,e,t){Si||Pp(),hs.push([i,e,t])}/**
|
|
3376
3377
|
* @license
|
|
3377
3378
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3378
3379
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3379
|
-
*/const
|
|
3380
|
+
*/const $r=i=>i.test(navigator.userAgent),Oi=i=>i.test(navigator.platform),Ip=i=>i.test(navigator.vendor);$r(/Android/u);$r(/Chrome/u)&&Ip(/Google Inc/u);$r(/Firefox/u);const Dp=Oi(/^iPad/u)||Oi(/^Mac/u)&&navigator.maxTouchPoints>1,Sp=Oi(/^iPhone/u),fo=Sp||Dp,Op=$r(/^((?!chrome|android).)*safari/iu),Mi=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(i){return!1}})();/**
|
|
3380
3381
|
* @license
|
|
3381
3382
|
* Copyright (c) 2017 Anton Korzunov
|
|
3382
3383
|
* SPDX-License-Identifier: MIT
|
|
3383
|
-
*/let
|
|
3384
|
+
*/let nt=new WeakMap,cr=new WeakMap,ur={},oi=0;const Da=i=>i&&i.nodeType===Node.ELEMENT_NODE,ai=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},Mp=(i,e)=>Da(i)?e.map(t=>{if(!Da(t))return ai(t,"is not a valid element"),null;let r=t;for(;r&&r!==i;){if(i.contains(r))return t;r=r.getRootNode().host}return ai(t,"is not contained inside",i),null}).filter(t=>!!t):(ai(i,"is not a valid element"),[]),Np=(i,e,t,r)=>{const o=Mp(e,Array.isArray(i)?i:[i]);ur[t]||(ur[t]=new WeakMap);const a=ur[t],n=[],s=new Set,l=new Set(o),d=h=>{if(!h||s.has(h))return;s.add(h);const p=h.assignedSlot;p&&d(p),d(h.parentNode||h.host)};o.forEach(d);const u=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(m=>{if(!["template","script","style"].includes(m.localName))if(s.has(m))u(m);else{const b=m.getAttribute(r),w=b!==null&&b!=="false",x=(nt.get(m)||0)+1,k=(a.get(m)||0)+1;nt.set(m,x),a.set(m,k),n.push(m),x===1&&w&&cr.set(m,!0),k===1&&m.setAttribute(t,"true"),w||m.setAttribute(r,"true")}})};return u(e),s.clear(),oi+=1,()=>{n.forEach(h=>{const p=nt.get(h)-1,m=a.get(h)-1;nt.set(h,p),a.set(h,m),p||(cr.has(h)?cr.delete(h):h.removeAttribute(r)),m||h.removeAttribute(t)}),oi-=1,oi||(nt=new WeakMap,nt=new WeakMap,cr=new WeakMap,ur={})}},ms=(i,e=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(i)?i:[i]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),Np(r,e,t,"aria-hidden")};/**
|
|
3384
3385
|
* @license
|
|
3385
3386
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3386
3387
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3387
|
-
*/class
|
|
3388
|
+
*/class zp{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=ms(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
|
|
3388
3389
|
* @license
|
|
3389
3390
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3390
3391
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3391
|
-
*/class
|
|
3392
|
+
*/class Lp{saveFocus(e){this.focusNode=e||Ti()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;Ti()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),this.focusNode=null}}/**
|
|
3392
3393
|
* @license
|
|
3393
3394
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3394
3395
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3395
|
-
*/const
|
|
3396
|
+
*/const ni=[];class Bp{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return op(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(no).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");ni.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,ni.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(ni).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,r=e?-1:1,o=this.__focusedElementIndex,a=(t.length+o+r)%t.length,n=t[a];n.focus(),n.localName==="input"&&n.select()}}/**
|
|
3396
3397
|
* @license
|
|
3397
3398
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3398
3399
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3399
|
-
*/const
|
|
3400
|
+
*/const Fp=i=>class extends Pe(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new zp(this),this.__focusTrapController=new Bp(this),this.__focusRestorationController=new Lp}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=!Fr();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=Ti();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}};/**
|
|
3400
3401
|
* @license
|
|
3401
3402
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3402
3403
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3403
|
-
*/const
|
|
3404
|
+
*/const _s=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,e)=>i.__zIndex-e.__zIndex||0),Ni=()=>_s().filter(i=>i.$.overlay),Vp=i=>i===Ni().pop(),fs=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Vp(this)}bringToFront(){let e="";const t=_s().filter(r=>r!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Ni().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=Ni();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
|
|
3404
3405
|
* @license
|
|
3405
3406
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3406
3407
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3407
|
-
*/const
|
|
3408
|
+
*/const rr=i=>class extends Fp(fs(i)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),fo&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight;t&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,r,o){const a=this._oldOwner!==t||this._oldModel!==r;this._oldModel=r,this._oldOwner=t;const n=this._oldRenderer!==e,s=this._oldRenderer!==void 0;this._oldRenderer=e;const l=this._oldOpened!==o;this._oldOpened=o,n&&s&&(this.innerHTML="",delete this._$litPart$),o&&e&&(n||l||a)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),_o(this,()=>{this._trapFocus();const r=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(r)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return e.getPropertyValue("display")!=="none"&&t&&t!=="none"}_enqueueAnimation(e,t){const r=`__${e}Handler`,o=a=>{a&&a.target!==this||(t(),this.removeEventListener("animationend",o),delete this[r])};this[r]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const t=`__${e}Handler`;typeof this[t]=="function"&&this[t]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}};/**
|
|
3408
3409
|
* @license
|
|
3409
3410
|
* Copyright (c) 2024 Vaadin Ltd.
|
|
3410
3411
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3411
|
-
*/function
|
|
3412
|
+
*/function Rp(i,e){let t=null;const r=document.documentElement;function o(){t&&t.disconnect(),t=null}function a(n=!1,s=1){o();const{left:l,top:d,width:u,height:h}=i.getBoundingClientRect();if(n||e(),!u||!h)return;const p=Math.floor(d),m=Math.floor(r.clientWidth-(l+u)),b=Math.floor(r.clientHeight-(d+h)),w=Math.floor(l),x={rootMargin:`${-p}px ${-m}px ${-b}px ${-w}px`,threshold:Math.max(0,Math.min(1,s))||1};let k=!0;function E(B){let F=B[0].intersectionRatio;if(F!==s){if(!k)return a();F===0&&(F=1e-7),a(!1,F)}k=!1}t=new IntersectionObserver(E,x),t.observe(i)}return a(!0),o}/**
|
|
3412
3413
|
* @license
|
|
3413
3414
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3414
3415
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3415
|
-
*/const
|
|
3416
|
+
*/const si={start:"top",end:"bottom"},li={start:"left",end:"right"},Sa=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),vo=i=>class extends i{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=Lh(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Rp(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,Sa.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,Sa.observe(t))),e){const r=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(r[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const r=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,r),a=!r&&o||r&&!o;this.style.alignItems=a?"flex-start":"flex-end";const n=this.getBoundingClientRect(),s=this.__calculatePositionInOneDimension(e,n,this.noVerticalOverlap,si,this,t),l=this.__calculatePositionInOneDimension(e,n,this.noHorizontalOverlap,li,this,o);Object.assign(this.style,s,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!a),this.toggleAttribute("start-aligned",a)}__shouldAlignStartHorizontally(e,t){const r=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),a=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,r,o,this.__margins,a,this.noHorizontalOverlap,li)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const r=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,r,this.__margins,o,this.noVerticalOverlap,si)}__shouldAlignStart(e,t,r,o,a,n,s){const l=r-e[n?s.end:s.start]-o[s.end],d=e[n?s.start:s.end]-o[s.start],u=a?l:d,h=u>(a?d:l)||u>t;return a===h}__adjustBottomProperty(e,t,r){let o;if(e===t.end){if(t.end===si.end){const a=Math.min(window.innerHeight,document.documentElement.clientHeight);if(r>a&&this.__oldViewportHeight){const n=this.__oldViewportHeight-a;o=r-n}this.__oldViewportHeight=a}if(t.end===li.end){const a=Math.min(window.innerWidth,document.documentElement.clientWidth);if(r>a&&this.__oldViewportWidth){const n=this.__oldViewportWidth-a;o=r-n}this.__oldViewportWidth=a}}return o}__calculatePositionInOneDimension(e,t,r,o,a,n){const s=n?o.start:o.end,l=n?o.end:o.start,d=parseFloat(a.style[s]||getComputedStyle(a)[s]),u=this.__adjustBottomProperty(s,o,d),h=t[n?o.start:o.end]-e[r===n?o.end:o.start],p=u?`${u}px`:`${d+h*(n?-1:1)}px`;return{[s]:p,[l]:""}}};/**
|
|
3416
3417
|
* @license
|
|
3417
3418
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
3418
3419
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3419
|
-
*/const
|
|
3420
|
+
*/const Hp=i=>class extends vo(rr(i)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!ao(e.composedPath()[0])&&e.preventDefault()}};/**
|
|
3420
3421
|
* @license
|
|
3421
3422
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3422
3423
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3423
|
-
*/const
|
|
3424
|
+
*/const $p=_`
|
|
3424
3425
|
[part='overlay'] {
|
|
3425
3426
|
display: flex;
|
|
3426
3427
|
flex: auto;
|
|
@@ -3439,18 +3440,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3439
3440
|
* @license
|
|
3440
3441
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3441
3442
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3442
|
-
*/
|
|
3443
|
+
*/y("vaadin-date-picker-overlay",[tr,$p],{moduleId:"vaadin-date-picker-overlay-styles"});class Up extends Hp(ge(H(S))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return D`
|
|
3443
3444
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
3444
3445
|
<div part="overlay" id="overlay">
|
|
3445
3446
|
<div part="content" id="content">
|
|
3446
3447
|
<slot></slot>
|
|
3447
3448
|
</div>
|
|
3448
3449
|
</div>
|
|
3449
|
-
`}}
|
|
3450
|
+
`}}P(Up);/**
|
|
3450
3451
|
* @license
|
|
3451
3452
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3452
3453
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3453
|
-
*/const
|
|
3454
|
+
*/const vs=_`
|
|
3454
3455
|
:host {
|
|
3455
3456
|
display: inline-block;
|
|
3456
3457
|
position: relative;
|
|
@@ -3510,7 +3511,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3510
3511
|
outline-color: GrayText;
|
|
3511
3512
|
}
|
|
3512
3513
|
}
|
|
3513
|
-
`,
|
|
3514
|
+
`,Wp=i=>i`
|
|
3514
3515
|
<div class="vaadin-button-container">
|
|
3515
3516
|
<span part="prefix" aria-hidden="true">
|
|
3516
3517
|
<slot name="prefix"></slot>
|
|
@@ -3527,15 +3528,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3527
3528
|
* @license
|
|
3528
3529
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3529
3530
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3530
|
-
*/const
|
|
3531
|
+
*/const go=i=>class extends io(as(it(i))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
|
|
3531
3532
|
* @license
|
|
3532
3533
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3533
3534
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3534
|
-
*/
|
|
3535
|
+
*/y("vaadin-button",vs,{moduleId:"vaadin-button-styles"});class qp extends go(be(H(Pe(S)))){static get is(){return"vaadin-button"}static get template(){return Wp(D)}ready(){super.ready(),this._tooltipController=new Ne(this),this.addController(this._tooltipController)}}P(qp);/**
|
|
3535
3536
|
* @license
|
|
3536
3537
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3537
3538
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3538
|
-
*/function
|
|
3539
|
+
*/function Yp(i){let e=i.getDay();e===0&&(e=7);const t=4-e,r=new Date(i.getTime()+t*24*3600*1e3),o=new Date(0,0);o.setFullYear(r.getFullYear());const a=r.getTime()-o.getTime(),n=Math.round(a/(24*3600*1e3));return Math.floor(n/7+1)}function zi(i){const e=new Date(i);return e.setHours(0,0,0,0),e}function Oe(i,e,t=zi){return i instanceof Date&&e instanceof Date&&t(i).getTime()===t(e).getTime()}function bo(i){return{day:i.getDate(),month:i.getMonth(),year:i.getFullYear()}}function vt(i,e,t,r){let o=!1;if(typeof r=="function"&&i){const a=bo(i);o=r(a)}return(!e||i>=e)&&(!t||i<=t)&&!o}function gs(i,e){return e.filter(t=>t!==void 0).reduce((t,r)=>{if(!r)return t;if(!t)return r;const o=Math.abs(i.getTime()-r.getTime()),a=Math.abs(t.getTime()-i.getTime());return o<a?r:t})}function bs(i){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(i)+e.getMonth()),t}function jp(i,e,t=0,r=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let o=e+Math.floor(i.getFullYear()/100)*100;return i<new Date(o-50,t,r)?o-=100:i>new Date(o+50,t,r)&&(o+=100),o}function Ot(i){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(i);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function Gp(i){const e=(l,d="00")=>(d+l).substr((d+l).length-d.length);let t="",r="0000",o=i.year;o<0?(o=-o,t="-",r="000000"):i.year>=1e4&&(t="+",r="000000");const a=t+e(o,r),n=e(i.month+1),s=e(i.day);return[a,n,s].join("-")}function Kp(i){return i instanceof Date?Gp({year:i.getFullYear(),month:i.getMonth(),day:i.getDate()}):""}/**
|
|
3539
3540
|
@license
|
|
3540
3541
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3541
3542
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3543,7 +3544,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3543
3544
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3544
3545
|
Code distributed by Google as part of the polymer project is also
|
|
3545
3546
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3546
|
-
*/class
|
|
3547
|
+
*/class Sr{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Kt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Kt.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(e,t,r){return e instanceof Sr?e._cancelAsync():e=new Sr,e.setConfig(t,r),e}}let Kt=new Set;const Xp=function(i){Kt.add(i)},Qp=function(){const i=!!Kt.size;return Kt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i};/**
|
|
3547
3548
|
@license
|
|
3548
3549
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3549
3550
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3551,11 +3552,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3551
3552
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3552
3553
|
Code distributed by Google as part of the polymer project is also
|
|
3553
3554
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3554
|
-
*/const
|
|
3555
|
+
*/const yo=function(){let i,e;do i=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=Qp();while(i||e)};/**
|
|
3555
3556
|
* @license
|
|
3556
3557
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3557
3558
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3558
|
-
*/const
|
|
3559
|
+
*/const ys=document.createElement("template");ys.innerHTML=`
|
|
3559
3560
|
<style>
|
|
3560
3561
|
:host {
|
|
3561
3562
|
display: block;
|
|
@@ -3605,11 +3606,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3605
3606
|
<div class="buffer"></div>
|
|
3606
3607
|
<div id="fullHeight"></div>
|
|
3607
3608
|
</div>
|
|
3608
|
-
`;class
|
|
3609
|
+
`;class ws extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(ys.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(r)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),yo()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,r=e>this._buffers[1].translateY+t,o=e<this._buffers[0].translateY+t;(r||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=ve.debounce(this._debouncerScrollFinish,Re.after(200),()=>{const a=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],a)&&!this._isVisible(this._buffers[1],a)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=ve.debounce(this._debouncerUpdateClones,Re.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let r=0;r<this.bufferSize;r++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const a=`vaadin-infinite-scroller-item-content-${Qt()}`,n=document.createElement("slot");n.setAttribute("name",a),n._itemWrapper=o,t.appendChild(n),o.setAttribute("slot",a),this.appendChild(o),this._isVisible(o,e)&&this._ensureStampedInstance(o)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(r=>{e.instance[r]=t[r]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,o)=>{if(!r.updated){const a=this._firstIndex+this.bufferSize*o;[...r.children].forEach((n,s)=>{const l=n._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,a+s)}),r.updated=!0}})}_isVisible(e,t){const r=e.getBoundingClientRect();return r.bottom>t.top&&r.top<t.bottom}}/**
|
|
3609
3610
|
* @license
|
|
3610
3611
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3611
3612
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3612
|
-
*/const
|
|
3613
|
+
*/const xs=document.createElement("template");xs.innerHTML=`
|
|
3613
3614
|
<style>
|
|
3614
3615
|
:host {
|
|
3615
3616
|
--vaadin-infinite-scroller-item-height: 270px;
|
|
@@ -3621,11 +3622,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3621
3622
|
height: 100%;
|
|
3622
3623
|
}
|
|
3623
3624
|
</style>
|
|
3624
|
-
`;class
|
|
3625
|
+
`;class Jp extends ws{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(xs.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=bs(t)}}P(Jp);/**
|
|
3625
3626
|
* @license
|
|
3626
3627
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3627
3628
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3628
|
-
*/const
|
|
3629
|
+
*/const Cs=document.createElement("template");Cs.innerHTML=`
|
|
3629
3630
|
<style>
|
|
3630
3631
|
:host {
|
|
3631
3632
|
--vaadin-infinite-scroller-item-height: 80px;
|
|
@@ -3659,15 +3660,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3659
3660
|
border-left-color: #000;
|
|
3660
3661
|
}
|
|
3661
3662
|
</style>
|
|
3662
|
-
`;class
|
|
3663
|
+
`;class Zp extends ws{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Cs.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,r=new Date(t);return r.setFullYear(parseInt(e)+t.getFullYear()),r.getFullYear()}}P(Zp);/**
|
|
3663
3664
|
* @license
|
|
3664
3665
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3665
3666
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3666
|
-
*/const
|
|
3667
|
+
*/const em=i=>class extends i{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
|
|
3667
3668
|
* @license
|
|
3668
3669
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3669
3670
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3670
|
-
*/class
|
|
3671
|
+
*/class tm extends H(em(S)){static get is(){return"vaadin-date-picker-year"}static get template(){return D`
|
|
3671
3672
|
<style>
|
|
3672
3673
|
:host {
|
|
3673
3674
|
display: block;
|
|
@@ -3676,7 +3677,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3676
3677
|
</style>
|
|
3677
3678
|
<div part="year-number">[[year]]</div>
|
|
3678
3679
|
<div part="year-separator" aria-hidden="true"></div>
|
|
3679
|
-
`}}
|
|
3680
|
+
`}}P(tm);/**
|
|
3680
3681
|
@license
|
|
3681
3682
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3682
3683
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3684,7 +3685,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3684
3685
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3685
3686
|
Code distributed by Google as part of the polymer project is also
|
|
3686
3687
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3687
|
-
*/function
|
|
3688
|
+
*/function wo(i,e,t,r,o){let a;o&&(a=typeof t=="object"&&t!==null,a&&(r=i.__dataTemp[e]));let n=r!==t&&(r===r||t===t);return a&&n&&(i.__dataTemp[e]=t),n}const xo=J(i=>{class e extends i{_shouldPropertyChange(r,o,a){return wo(this,r,o,a,!0)}}return e}),rm=J(i=>{class e extends i{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,o,a){return wo(this,r,o,a,this.mutableData)}}return e});xo._mutablePropertyChange=wo;/**
|
|
3688
3689
|
@license
|
|
3689
3690
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3690
3691
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3692,7 +3693,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3692
3693
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3693
3694
|
Code distributed by Google as part of the polymer project is also
|
|
3694
3695
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3695
|
-
*/let
|
|
3696
|
+
*/let Li=null;function Bi(){return Li}Bi.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Bi,writable:!0}});const ks=Qi(Bi),im=xo(ks);function om(i,e){Li=i,Object.setPrototypeOf(i,e.prototype),new e,Li=null}const am=Qi(class{});function nm(i,e){for(let t=0;t<e.length;t++){let r=e[t];if(!!i!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)i?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(i)r.__polymerReplaced__=document.createComment("hidden-slot"),ae(ae(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const o=r.__polymerReplaced__;o&&ae(ae(o).parentNode).replaceChild(r,o)}else r.style&&(i?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=i,r._showHideChildren&&r._showHideChildren(i)}}class Ue extends am{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let o=this.root.firstChild;o;o=o.nextSibling)t.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let r=this.__templatizeOptions;(e&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,o=>{o.model=this,r(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(e,t,r)}}_showHideChildren(e){nm(e,this.children)}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}Ue.prototype.__dataHost;Ue.prototype.__templatizeOptions;Ue.prototype._methodHost;Ue.prototype.__templatizeOwner;Ue.prototype.__hostProps;const sm=xo(Ue);function Oa(i){let e=i.__dataHost;return e&&e._methodHost||e}function lm(i,e,t){let r=t.mutableData?sm:Ue;Fi.mixin&&(r=Fi.mixin(r));let o=class extends r{};return o.prototype.__templatizeOptions=t,o.prototype._bindTemplate(i),um(o,i,e,t),o}function dm(i,e,t,r){let o=t.forwardHostProp;if(o&&e.hasHostProps){const a=i.localName=="template";let n=e.templatizeTemplateClass;if(!n){if(a){let l=t.mutableData?im:ks;class d extends l{}n=e.templatizeTemplateClass=d}else{const l=i.constructor;class d extends l{}n=e.templatizeTemplateClass=d}let s=e.hostProps;for(let l in s)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:cm(l,o)}),n.prototype._createNotifyingProperty("_host_"+l);Cn&&r&&mm(e,t,r)}if(i.__dataProto&&Object.assign(i.__data,i.__dataProto),a)om(i,n),i.__dataTemp={},i.__dataPending=null,i.__dataOld=null,i._enableProperties();else{Object.setPrototypeOf(i,n.prototype);const s=e.hostProps;for(let l in s)if(l="_host_"+l,l in i){const d=i[l];delete i[l],i.__data[l]=d}}}}function cm(i,e){return function(t,r,o){e.call(t.__templatizeOwner,r.substring(6),o[r])}}function um(i,e,t,r){let o=t.hostProps||{};for(let a in r.instanceProps){delete o[a];let n=r.notifyInstanceProp;n&&i.prototype._addPropertyEffect(a,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:hm(a,n)})}if(r.forwardHostProp&&e.__dataHost)for(let a in o)t.hasHostProps||(t.hasHostProps=!0),i.prototype._addPropertyEffect(a,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:pm()})}function hm(i,e){return function(t,r,o){e.call(t.__templatizeOwner,t,r,o[r])}}function pm(){return function(i,e,t){i.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function Fi(i,e,t){if(Ar&&!Oa(i))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},i.__templatizeOwner)throw new Error("A <template> can only be templatized once");i.__templatizeOwner=e;let r=(e?e.constructor:Ue)._parseTemplate(i),o=r.templatizeInstanceClass;o||(o=lm(i,r,t),r.templatizeInstanceClass=o);const a=Oa(i);dm(i,r,t,a);let n=class extends o{};return n.prototype._methodHost=a,n.prototype.__dataHost=i,n.prototype.__templatizeOwner=e,n.prototype.__hostProps=r.hostProps,n=n,n}function mm(i,e,t){const r=t.constructor._properties,{propertyEffects:o}=i,{instanceProps:a}=e;for(let n in o)if(!r[n]&&!(a&&a[n])){const s=o[n];for(let l=0;l<s.length;l++){const{part:d}=s[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function _m(i,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=i)e=t.__dataHost;else return t;else e=ae(e).parentNode;return null}/**
|
|
3696
3697
|
@license
|
|
3697
3698
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3698
3699
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3700,7 +3701,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3700
3701
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3701
3702
|
Code distributed by Google as part of the polymer project is also
|
|
3702
3703
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3703
|
-
*/let
|
|
3704
|
+
*/let Ma=!1;function fm(){if(xn&&!wn){if(!Ma){Ma=!0;const i=document.createElement("style");i.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(i)}return!0}return!1}/**
|
|
3704
3705
|
@license
|
|
3705
3706
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3706
3707
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -3708,15 +3709,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3708
3709
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3709
3710
|
Code distributed by Google as part of the polymer project is also
|
|
3710
3711
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3711
|
-
*/const
|
|
3712
|
+
*/const vm=rm(S);class Na extends vm{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!na,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),fm()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=ae(ae(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=Fi(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(o,a){let n=this.__instances;for(let s=0,l;s<n.length&&(l=n[s]);s++)l.forwardHostProp(o,a)},notifyInstanceProp:function(o,a,n){if(gu(this.as,a)){let s=o[this.itemsIndexAs];a==this.as&&(this.items[s]=n);let l=Wt(this.as,`${JSCompiler_renameProperty("items",this)}.${s}`,a);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,r=this.__getMethodHost();return function(){return r[t].apply(r,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let r=0;r<t.length;r++)e.indexOf(t[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=Sr.debounce(this.__renderDebouncer,t>0?ku.after(t):Mn,e.bind(this)),Xp(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),yo()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length);this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!na||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=r;return this.__filterFn&&(t=t.filter((r,o,a)=>this.__filterFn(e[r],o,a))),this.__sortFn&&t.sort((r,o)=>this.__sortFn(e[r],e[o])),t}__calculateLimit(e){let t=e;const r=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),o=Math.max(t-r,0),this.__chunkCount=o||1):(o=Math.min(Math.max(e-r,0),this.__chunkCount),t=Math.min(r+o,e)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,r){const o=this.__itemsIdxToInstIdx={};let a;for(a=0;a<t;a++){let n=this.__instances[a],s=r[a],l=e[s];o[s]=a,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,a),n._setPendingProperty(this.itemsIndexAs,s),n._flushProperties()):this.__insertInstance(l,a,s)}for(let n=this.__instances.length-1;n>=a;n--)this.__detachAndRemoveInstance(n)}__detachInstance(e){let t=this.__instances[e];const r=ae(t.root);for(let o=0;o<t.children.length;o++){let a=t.children[o];r.appendChild(a)}return t}__attachInstance(e,t){let r=this.__instances[e];t.insertBefore(r.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){let o={};return o[this.as]=e,o[this.indexAs]=t,o[this.itemsIndexAs]=r,new this.__ctor(o)}__insertInstance(e,t,r){const o=this.__stampInstance(e,t,r);let a=this.__instances[t+1],n=a?a.children[0]:this;return ae(ae(this).parentNode).insertBefore(o.root,n),this.__instances[t]=o,o}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let r=e.slice(6),o=r.indexOf("."),a=o<0?r:r.substring(0,o);if(a==parseInt(a,10)){let n=o<0?"":r.substring(o+1);this.__handleObservedPaths(n);let s=this.__itemsIdxToInstIdx[a],l=this.__instances[s];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return _m(this.template,e)}}customElements.define(Na.is,Na);/**
|
|
3712
3713
|
* @license
|
|
3713
3714
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3714
3715
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3715
|
-
*/const
|
|
3716
|
+
*/const gm=i=>class extends it(i){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>Oe(e.date,this.focusedDate))}ready(){super.ready(),Ce(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,r){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);const a=new Date(0,0);return a.setFullYear(e.getFullYear()),a.setMonth(e.getMonth()+1),a.setDate(0),t&&r&&t.getMonth()===r.getMonth()&&t.getMonth()===e.getMonth()&&r.getDate()-t.getDate()>=0?!1:!vt(o,t,r)&&!vt(a,t,r)}_getTitle(e,t){if(!(e===void 0||t===void 0))return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(!(e===void 0||t===void 0))return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(e===void 0||t===void 0)return[];const{weekdays:r,weekdaysShort:o,firstDayOfWeek:a}=e,n=this._applyFirstDayOfWeek(o,a);return this._applyFirstDayOfWeek(r,a).map((s,l)=>({weekDay:s,weekDayShort:n[l]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(r=>Oe(r,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&t.firstDayOfWeek===1}_isToday(e){return Oe(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const r=new Date(0,0);for(r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);r.getDay()!==t.firstDayOfWeek;)this._dateAdd(r,-1);const o=[],a=r.getMonth(),n=e.getMonth();for(;r.getMonth()===n||r.getMonth()===a;)o.push(r.getMonth()===n?new Date(r.getTime()):null),this._dateAdd(r,1);return o}_getWeeks(e){return e.reduce((t,r,o)=>(o%7===0&&t.push([]),t[t.length-1].push(r),t),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const t=e.reduce((r,o)=>!r&&o?o:r);return Yp(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
|
|
3716
3717
|
* @license
|
|
3717
3718
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3718
3719
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3719
|
-
*/const
|
|
3720
|
+
*/const bm=_`
|
|
3720
3721
|
:host {
|
|
3721
3722
|
display: block;
|
|
3722
3723
|
}
|
|
@@ -3776,7 +3777,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3776
3777
|
* @license
|
|
3777
3778
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3778
3779
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3779
|
-
*/
|
|
3780
|
+
*/y("vaadin-month-calendar",bm,{moduleId:"vaadin-month-calendar-styles"});class ym extends gm(H(S)){static get template(){return D`
|
|
3780
3781
|
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
3781
3782
|
<table
|
|
3782
3783
|
id="monthGrid"
|
|
@@ -3818,19 +3819,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3818
3819
|
</template>
|
|
3819
3820
|
</tbody>
|
|
3820
3821
|
</table>
|
|
3821
|
-
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,
|
|
3822
|
+
`}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,r,o,a,n){const s=["date"],l=e>zi(new Date),d=e<zi(new Date);return this.__isDayDisabled(e,o,a,n)&&s.push("disabled"),this.__isDayFocused(e,t)&&s.push("focused"),this.__isDaySelected(e,r)&&s.push("selected"),this._isToday(e)&&s.push("today"),d&&s.push("past"),l&&s.push("future"),s.join(" ")}__isDayFocused(e,t){return Oe(e,t)}__isDaySelected(e,t){return Oe(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r,o){return!vt(e,t,r,o)}__getDayAriaDisabled(e,t,r,o){if(!(e===void 0||t===void 0&&r===void 0&&o===void 0)&&this.__isDayDisabled(e,t,r,o))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}P(ym);/**
|
|
3822
3823
|
* @license
|
|
3823
3824
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3824
3825
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3825
|
-
*/class
|
|
3826
|
+
*/class Co{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){typeof this.callback=="function"&&this.callback(e.matches)}}/**
|
|
3826
3827
|
* @license
|
|
3827
3828
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3828
3829
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3829
|
-
*/const Ch=o=>class extends o{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){aa(this.$.scrollers,"pan-y"),Ee(this.$.scrollers,"track",this._track.bind(this)),Ee(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ee(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ee(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Yi(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new me(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Ee(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new me(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Ee(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new me(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(i=>{i.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new me(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Ee(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,i,r,s){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(i,r,s))}__updateCalendars(e,t,i,r,s,a,n,l,c,h){e&&e.length&&e.forEach(u=>{u.i18n=t,u.minDate=i,u.maxDate=r,u.isDateDisabled=h,u.focusedDate=a,u.selectedDate=s,u.showWeekNumbers=n,u.ignoreTaps=l,c?u.setAttribute("theme",c):u.removeAttribute("theme")})}__updateYears(e,t,i){e&&e.length&&e.forEach(r=>{r.selectedDate=t,i?r.setAttribute("theme",i):r.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const n=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+n,t);return}const r=this._monthScroller.position>i,s=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,a=this._monthScroller.position+s-1<i;r?this._scrollToPosition(i,t):a&&this._scrollToPosition(i-s+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let i=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=be.debounce(this._debouncer,Ve.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,i){return e&&t&&typeof t.formatDate=="function"?t.formatDate(ji(e)):i}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(l=>{i=l});const r=(l,c,h,u)=>(l/=u/2,l<1?h/2*l*l+c:(l-=1,-h/2*(l*(l-2)-1)+c));let s=0;const a=this._monthScroller.position,n=l=>{s||(s=l);const c=l-s;if(c<this.scrollDuration){const h=r(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(n)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(n)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Ca(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){Re(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&Re(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return eo(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,t||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return eo(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{Fi(this,()=>{Wi(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(wa(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,i){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),t&&i.setDate(this.focusedDate.getDate()+t),i}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),i=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==i&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const i=new Date(0,0);i.setFullYear(e.getFullYear()),t==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,i=this.maxDate,r=this.isDateDisabled){return lt(e,t,i,r)}_isTodayAllowed(e,t,i){return this._dateAllowed(this._getTodayMidnight(),e,t,i)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
|
|
3830
|
+
*/const wm=i=>class extends i{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){rs(this.$.scrollers,"pan-y"),Ce(this.$.scrollers,"track",this._track.bind(this)),Ce(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ce(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ce(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Co(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new ce(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Ce(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new ce(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Ce(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+r,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new ce(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(r=>{r.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new ce(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Ce(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,r,o,a){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(r,o,a))}__updateCalendars(e,t,r,o,a,n,s,l,d,u){e&&e.length&&e.forEach(h=>{h.i18n=t,h.minDate=r,h.maxDate=o,h.isDateDisabled=u,h.focusedDate=n,h.selectedDate=a,h.showWeekNumbers=s,h.ignoreTaps=l,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(e,t,r){e&&e.length&&e.forEach(o=>{o.selectedDate=t,r?o.setAttribute("theme",r):o.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const r=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const s=this._calculateWeekScrollOffset(e);this._scrollToPosition(r+s,t);return}const o=this._monthScroller.position>r,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,n=this._monthScroller.position+a-1<r;o?this._scrollToPosition(r,t):n&&this._scrollToPosition(r-a+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let r=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(r+=1);return r/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=ve.debounce(this._debouncer,Re.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,r){return e&&t&&typeof t.formatDate=="function"?t.formatDate(bo(e)):r}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let r;this._revealPromise=new Promise(l=>{r=l});const o=(l,d,u,h)=>(l/=h/2,l<1?u/2*l*l+d:(l-=1,-u/2*(l*(l-2)-1)+d));let a=0;const n=this._monthScroller.position,s=l=>{a||(a=l);const d=l-a;if(d<this.scrollDuration){const u=o(d,n,this._targetPosition-n,this.scrollDuration);this._monthScroller.position=u,window.requestAnimationFrame(s)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:n}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,r(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(s)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return bs(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){Oe(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&Oe(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return xr(this,null,function*(){const r=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=r,t||(this._focusedMonthDate=r.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return xr(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{_o(this,()=>{yo(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(gs(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,r){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,r):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const r=new Date(0,0);return r.setFullYear(this.focusedDate.getFullYear()),r.setMonth(this.focusedDate.getMonth()+e),t&&r.setDate(this.focusedDate.getDate()+t),r}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),r=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==r&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const r=new Date(0,0);r.setFullYear(e.getFullYear()),t==="minDate"?(r.setMonth(e.getMonth()),r.setDate(1)):(r.setMonth(e.getMonth()+1),r.setDate(0)),this._dateAllowed(r)?this.focusDate(r):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,r=this.maxDate,o=this.isDateDisabled){return vt(e,t,r,o)}_isTodayAllowed(e,t,r){return this._dateAllowed(this._getTodayMidnight(),e,t,r)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
|
|
3830
3831
|
* @license
|
|
3831
3832
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3832
3833
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3833
|
-
*/const
|
|
3834
|
+
*/const xm=_`
|
|
3834
3835
|
:host {
|
|
3835
3836
|
display: flex;
|
|
3836
3837
|
flex-direction: column;
|
|
@@ -3894,7 +3895,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3894
3895
|
* @license
|
|
3895
3896
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
3896
3897
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3897
|
-
*/
|
|
3898
|
+
*/y("vaadin-date-picker-overlay-content",xm,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Cm extends wm(Pe(H(ge(S)))){static get template(){return D`
|
|
3898
3899
|
<div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
|
|
3899
3900
|
<div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
|
|
3900
3901
|
<div part="clear-button" hidden$="[[!selectedDate]]"></div>
|
|
@@ -3914,32 +3915,32 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3914
3915
|
<slot name="today-button"></slot>
|
|
3915
3916
|
<slot name="cancel-button"></slot>
|
|
3916
3917
|
</div>
|
|
3917
|
-
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}
|
|
3918
|
+
`}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}P(Cm);/**
|
|
3918
3919
|
* @license
|
|
3919
3920
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3920
3921
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3921
|
-
*/const
|
|
3922
|
+
*/const di=new WeakMap;function km(i){return di.has(i)||di.set(i,new Set),di.get(i)}function Em(i,e){const t=document.createElement("style");t.textContent=i,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Es=J(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=km(e);this.slotStyles.forEach(r=>{t.has(r)||(Em(r,e),t.add(r))})}});/**
|
|
3922
3923
|
* @license
|
|
3923
3924
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3924
3925
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3925
|
-
*/const
|
|
3926
|
+
*/const Pm=i=>class extends Jt(rt(i)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),Mi||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
|
|
3926
3927
|
* @license
|
|
3927
3928
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3928
3929
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3929
|
-
*/const
|
|
3930
|
+
*/const ko=J(i=>class extends so(uo(Jt(i))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(t=>this.__isValidConstraint(t))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const r=this._hasValidConstraints(t),o=this.__previousHasConstraints&&!r;(this._hasValue||this.invalid)&&r?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=r}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
|
|
3930
3931
|
* @license
|
|
3931
3932
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
3932
3933
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3933
|
-
*/const
|
|
3934
|
+
*/const Ur=i=>class extends Es(Vr(ko(Rr(Pm(rt(i)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
|
|
3934
3935
|
:is(input[slot='input'], textarea[slot='textarea'])::placeholder {
|
|
3935
3936
|
font: inherit;
|
|
3936
3937
|
color: inherit;
|
|
3937
3938
|
}
|
|
3938
|
-
`]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=
|
|
3939
|
+
`]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=ve.debounce(this._preventInputDebouncer,Re.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const t=e.clipboardData.getData("text");this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const t=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(t)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(t){console.error(t)}}};/**
|
|
3939
3940
|
* @license
|
|
3940
3941
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3941
3942
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3942
|
-
*/const
|
|
3943
|
+
*/const Am=_`
|
|
3943
3944
|
[part='clear-button'] {
|
|
3944
3945
|
display: none;
|
|
3945
3946
|
cursor: default;
|
|
@@ -3956,7 +3957,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3956
3957
|
* @license
|
|
3957
3958
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3958
3959
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3959
|
-
*/const
|
|
3960
|
+
*/const Ps=_`
|
|
3960
3961
|
:host {
|
|
3961
3962
|
display: inline-flex;
|
|
3962
3963
|
outline: none;
|
|
@@ -3994,7 +3995,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3994
3995
|
* @license
|
|
3995
3996
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
3996
3997
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3997
|
-
*/const
|
|
3998
|
+
*/const As=_`
|
|
3998
3999
|
[class$='container'] {
|
|
3999
4000
|
display: flex;
|
|
4000
4001
|
flex-direction: column;
|
|
@@ -4006,23 +4007,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4006
4007
|
* @license
|
|
4007
4008
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
4008
4009
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4009
|
-
*/const
|
|
4010
|
+
*/const Wr=[Ps,As,Am];/**
|
|
4010
4011
|
* @license
|
|
4011
4012
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
4012
4013
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4013
|
-
*/const
|
|
4014
|
+
*/const ir=i=>class extends i{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||e===void 0)return;const{classList:r}=t;if(this.__initialClasses||(this.__initialClasses=new Set(r)),Array.isArray(this.__previousClasses)){const a=this.__previousClasses.filter(n=>!this.__initialClasses.has(n));a.length>0&&r.remove(...a)}const o=typeof e=="string"?e.split(" ").filter(Boolean):[];o.length>0&&r.add(...o),this.__previousClasses=o}};/**
|
|
4014
4015
|
* @license
|
|
4015
4016
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4016
4017
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4017
|
-
*/class
|
|
4018
|
+
*/class Ts{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
|
|
4018
4019
|
* @license
|
|
4019
4020
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4020
4021
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4021
|
-
*/const Th=o=>class extends Ht(Ae(go(Ki(Ge(o))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),i=new Date;let r,s=i.getMonth(),a=i.getFullYear();if(t.length===3){if(s=parseInt(t[0])-1,r=parseInt(t[1]),a=parseInt(t[2]),t[2].length<3&&a>=0){const n=this.referenceDate?ft(this.referenceDate):new Date;a=Gc(n,a,s,r)}}else t.length===2?(s=parseInt(t[0])-1,r=parseInt(t[1])):t.length===1&&(r=parseInt(t[0]));if(r!==void 0)return{day:r,month:s,year:a}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Bi},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!vo()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Yi(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new za(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),t.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),t.addEventListener("click",i=>i.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=ft(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(ji(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||lt(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),t&&i&&r}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,i,r,s,a){return!e||t&&(!a||s)||i&&s||!r.parseDate}_formatISO(e){return Xc(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const i=ft(e);if(e&&!i){this.value=t;return}e?Re(this._selectedDate,i)||(this._selectedDate=i,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,i,r,s,a,n,l,c){e&&(e.i18n=t,e.label=i,e.minDate=r,e.maxDate=s,e.focusedDate=a,e.selectedDate=n,e.showWeekNumbers=l,e.isDateDisabled=c)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const i=e.focusedDate||t;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const s=this._noInput?e:[r,e];this.__showOthers=ga(s)}_getInitialPosition(){const e=ft(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||lt(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?wa(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,Re(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return ft(e)}};/**
|
|
4022
|
+
*/const Tm=i=>class extends ir(Pe(Vr(ko(rt(i))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,r=>"0000".substr(r.length)+r);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),r=new Date;let o,a=r.getMonth(),n=r.getFullYear();if(t.length===3){if(a=parseInt(t[0])-1,o=parseInt(t[1]),n=parseInt(t[2]),t[2].length<3&&n>=0){const s=this.referenceDate?Ot(this.referenceDate):new Date;n=jp(s,n,a,o)}}else t.length===2?(a=parseInt(t[0])-1,o=parseInt(t[1])):t.length===1&&(o=parseInt(t[0]));if(o!==void 0)return{day:o,month:a,year:n}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:fo},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!Fr()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Co(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new Ts(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",r=>{this.__commitDate(r.detail.date),this._close()}),t.addEventListener("date-selected",r=>{this.__commitDate(r.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",r=>{this._shouldRemoveFocus(r)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",r=>{this._focusedDate=r.detail.value}),t.addEventListener("click",r=>r.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=Ot(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(bo(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),r=!this._selectedDate||vt(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),t&&r&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,r,o,a,n){return!e||t&&(!n||a)||r&&a||!o.parseDate}_formatISO(e){return Kp(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const r=Ot(e);if(e&&!r){this.value=t;return}e?Oe(this._selectedDate,r)||(this._selectedDate=r,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,r,o,a,n,s,l,d){e&&(e.i18n=t,e.label=r,e.minDate=o,e.maxDate=a,e.focusedDate=n,e.selectedDate=s,e.showWeekNumbers=l,e.isDateDisabled=d)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const r=e.focusedDate||t;e.scrollToDate(r),this._ignoreFocusedDateChange=!0,e.focusedDate=r,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const a=this._noInput?e:[o,e];this.__showOthers=ms(a)}_getInitialPosition(){const e=Ot(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||vt(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?gs(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,Oe(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Ot(e)}};/**
|
|
4022
4023
|
* @license
|
|
4023
4024
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4024
4025
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4025
|
-
*/const
|
|
4026
|
+
*/const Im=_`
|
|
4026
4027
|
:host([opened]) {
|
|
4027
4028
|
pointer-events: auto;
|
|
4028
4029
|
}
|
|
@@ -4039,7 +4040,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4039
4040
|
* @license
|
|
4040
4041
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
4041
4042
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4042
|
-
*/
|
|
4043
|
+
*/y("vaadin-date-picker",[Wr,Im],{moduleId:"vaadin-date-picker-styles"});class Dm extends Tm(Ur(H(be(S)))){static get is(){return"vaadin-date-picker"}static get template(){return D`
|
|
4043
4044
|
<div class="vaadin-date-picker-container">
|
|
4044
4045
|
<div part="label">
|
|
4045
4046
|
<slot name="label"></slot>
|
|
@@ -4081,23 +4082,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4081
4082
|
></vaadin-date-picker-overlay>
|
|
4082
4083
|
|
|
4083
4084
|
<slot name="tooltip"></slot>
|
|
4084
|
-
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new
|
|
4085
|
+
`}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Zt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new er(this.inputElement,this._labelController)),this._tooltipController=new Ne(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}P(Dm);/**
|
|
4085
4086
|
* @license
|
|
4086
4087
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
4087
4088
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4088
|
-
*/
|
|
4089
|
+
*/y("vaadin-text-field",ot,{moduleId:"lumo-text-field-styles"});/**
|
|
4089
4090
|
* @license
|
|
4090
4091
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4091
4092
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4092
|
-
*/const
|
|
4093
|
+
*/const Sm=i=>class extends Ur(i){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),t!==void 0&&this.invalid&&this.validate()}};/**
|
|
4093
4094
|
* @license
|
|
4094
4095
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4095
4096
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4096
|
-
*/const
|
|
4097
|
+
*/const Om=i=>class extends Sm(i){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Zt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new er(this.inputElement,this._labelController))}};/**
|
|
4097
4098
|
* @license
|
|
4098
4099
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
4099
4100
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4100
|
-
*/
|
|
4101
|
+
*/y("vaadin-text-field",Wr,{moduleId:"vaadin-text-field-styles"});class Is extends Om(H(be(S))){static get is(){return"vaadin-text-field"}static get template(){return D`
|
|
4101
4102
|
<div class="vaadin-field-container">
|
|
4102
4103
|
<div part="label">
|
|
4103
4104
|
<slot name="label"></slot>
|
|
@@ -4126,11 +4127,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4126
4127
|
</div>
|
|
4127
4128
|
</div>
|
|
4128
4129
|
<slot name="tooltip"></slot>
|
|
4129
|
-
`}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new
|
|
4130
|
+
`}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new Ne(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}P(Is);/**
|
|
4130
4131
|
* @license
|
|
4131
4132
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4132
4133
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4133
|
-
*/const
|
|
4134
|
+
*/const Mm=_`
|
|
4134
4135
|
:host {
|
|
4135
4136
|
position: absolute;
|
|
4136
4137
|
right: 0;
|
|
@@ -4143,11 +4144,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4143
4144
|
background: transparent;
|
|
4144
4145
|
outline: none;
|
|
4145
4146
|
}
|
|
4146
|
-
`;
|
|
4147
|
+
`;y("vaadin-password-field-button",[cs,Mm],{moduleId:"lumo-password-field-button"});/**
|
|
4147
4148
|
* @license
|
|
4148
4149
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4149
4150
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4150
|
-
*/const
|
|
4151
|
+
*/const Nm=_`
|
|
4151
4152
|
[part='reveal-button']::before {
|
|
4152
4153
|
content: var(--lumo-icons-eye);
|
|
4153
4154
|
}
|
|
@@ -4165,27 +4166,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4165
4166
|
[part='reveal-button'][hidden] {
|
|
4166
4167
|
display: none !important;
|
|
4167
4168
|
}
|
|
4168
|
-
`;
|
|
4169
|
+
`;y("vaadin-password-field",[ot,Nm],{moduleId:"lumo-password-field"});/**
|
|
4169
4170
|
* @license
|
|
4170
4171
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4171
4172
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4172
|
-
*/
|
|
4173
|
+
*/y("vaadin-password-field-button",vs,{moduleId:"vaadin-password-field-button-styles"});class zm extends go(ge(H(S))){static get is(){return"vaadin-password-field-button"}static get template(){return D``}}P(zm);/**
|
|
4173
4174
|
* @license
|
|
4174
4175
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4175
4176
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4176
|
-
*/const
|
|
4177
|
+
*/const Lm=i=>class extends Es(yt(it(Jt(i)))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const e=this.localName;return[...super.slotStyles,`
|
|
4177
4178
|
${e} [slot="input"]::-ms-reveal {
|
|
4178
4179
|
display: none;
|
|
4179
4180
|
}
|
|
4180
|
-
`]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new
|
|
4181
|
+
`]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new ce(this,"reveal","vaadin-password-field-button",{initializer:e=>{e.disabled=this.disabled,e.addEventListener("click",this.__boundRevealButtonClick),e.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(e){super._onChange(e),this.__lastChange=this.inputElement.value}_shouldSetFocus(e){return e.target===this.inputElement||e.target===this._revealNode}_shouldRemoveFocus(e){return!(e.relatedTarget===this._revealNode||e.relatedTarget===this.inputElement&&e.target===this._revealNode)}_setFocused(e){if(super._setFocused(e),!e)this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})));else{const t=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!t)}}__updateAriaLabel(e){e&&e.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",e.reveal)}__i18nChanged(e){this.__updateAriaLabel(e)}_revealButtonHiddenChanged(e){this._toggleRevealHidden(e)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(e){this._revealNode&&(e?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(e){this._revealNode&&this._revealNode.setAttribute("aria-pressed",e?"true":"false")}_passwordVisibleChanged(e){this._setType(e?"text":"password"),this._updateToggleState(e)}_disabledChanged(e,t){super._disabledChanged(e,t),this._revealNode&&(this._revealNode.disabled=e)}};/**
|
|
4181
4182
|
* @license
|
|
4182
4183
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4183
4184
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4184
|
-
*/const
|
|
4185
|
+
*/const Bm=D`
|
|
4185
4186
|
<div part="reveal-button" slot="suffix">
|
|
4186
4187
|
<slot name="reveal"></slot>
|
|
4187
4188
|
</div>
|
|
4188
|
-
`;let
|
|
4189
|
+
`;let hr;class Fm extends Lm(Is){static get is(){return"vaadin-password-field"}static get template(){if(!hr){hr=super.template.cloneNode(!0);const e=Bm.content.querySelector('[part="reveal-button"]');hr.content.querySelector('[part="input-field"]').appendChild(e)}return hr}}P(Fm);const qr=_`
|
|
4189
4190
|
:host {
|
|
4190
4191
|
display: flex;
|
|
4191
4192
|
align-items: center;
|
|
@@ -4269,7 +4270,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4269
4270
|
width: var(--lumo-icon-size-m);
|
|
4270
4271
|
height: var(--lumo-icon-size-m);
|
|
4271
4272
|
}
|
|
4272
|
-
`;
|
|
4273
|
+
`;y("vaadin-item",qr,{moduleId:"lumo-item"});const Ds=_`
|
|
4273
4274
|
:host {
|
|
4274
4275
|
transition: background-color 100ms;
|
|
4275
4276
|
overflow: hidden;
|
|
@@ -4281,11 +4282,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4281
4282
|
:host([focused]:not([disabled])) {
|
|
4282
4283
|
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
4283
4284
|
}
|
|
4284
|
-
`;
|
|
4285
|
+
`;y("vaadin-combo-box-item",[qr,Ds],{moduleId:"lumo-combo-box-item"});/**
|
|
4285
4286
|
* @license
|
|
4286
4287
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
4287
4288
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4288
|
-
*/const
|
|
4289
|
+
*/const Ss=_`
|
|
4289
4290
|
[part~='loader'] {
|
|
4290
4291
|
box-sizing: border-box;
|
|
4291
4292
|
width: var(--lumo-icon-size-s);
|
|
@@ -4327,7 +4328,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4327
4328
|
transform: rotate(360deg);
|
|
4328
4329
|
}
|
|
4329
4330
|
}
|
|
4330
|
-
`,
|
|
4331
|
+
`,Os=_`
|
|
4331
4332
|
[part='content'] {
|
|
4332
4333
|
padding: 0;
|
|
4333
4334
|
}
|
|
@@ -4348,7 +4349,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4348
4349
|
:host([bottom-aligned]) [part~='overlay'] {
|
|
4349
4350
|
margin-bottom: var(--lumo-space-xs);
|
|
4350
4351
|
}
|
|
4351
|
-
`,
|
|
4352
|
+
`,Ms=_`
|
|
4352
4353
|
[part~='loader'] {
|
|
4353
4354
|
position: absolute;
|
|
4354
4355
|
z-index: 1;
|
|
@@ -4356,24 +4357,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4356
4357
|
top: var(--lumo-space-s);
|
|
4357
4358
|
margin-inline: auto 0;
|
|
4358
4359
|
}
|
|
4359
|
-
`;
|
|
4360
|
+
`;y("vaadin-combo-box-overlay",[wt,Hr,Os,Ss,Ms,_`
|
|
4360
4361
|
:host {
|
|
4361
4362
|
--_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
4362
4363
|
--_vaadin-combo-box-items-container-border-style: solid;
|
|
4363
4364
|
}
|
|
4364
|
-
`],{moduleId:"lumo-combo-box-overlay"});const
|
|
4365
|
+
`],{moduleId:"lumo-combo-box-overlay"});const Vm=_`
|
|
4365
4366
|
[part='toggle-button']::before {
|
|
4366
4367
|
content: var(--lumo-icons-dropdown);
|
|
4367
4368
|
}
|
|
4368
|
-
`;
|
|
4369
|
+
`;y("vaadin-combo-box",[ot,Vm],{moduleId:"lumo-combo-box"});/**
|
|
4369
4370
|
* @license
|
|
4370
4371
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4371
4372
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4372
|
-
*/const
|
|
4373
|
+
*/const Ns=i=>class extends i{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,r){e==="hidden"&&r!==null?this.index=void 0:super.attributeChangedCallback(e,t,r)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,r){r===void 0||t===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};/**
|
|
4373
4374
|
* @license
|
|
4374
4375
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4375
4376
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4376
|
-
*/class
|
|
4377
|
+
*/class Rm extends Ns(H(ge(S))){static get template(){return D`
|
|
4377
4378
|
<style>
|
|
4378
4379
|
:host {
|
|
4379
4380
|
display: block;
|
|
@@ -4387,15 +4388,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4387
4388
|
<div part="content">
|
|
4388
4389
|
<slot></slot>
|
|
4389
4390
|
</div>
|
|
4390
|
-
`}static get is(){return"vaadin-combo-box-item"}}
|
|
4391
|
+
`}static get is(){return"vaadin-combo-box-item"}}P(Rm);/**
|
|
4391
4392
|
* @license
|
|
4392
4393
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4393
4394
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4394
|
-
*/const
|
|
4395
|
+
*/const zs=i=>class extends vo(i){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!ao(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);t===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};/**
|
|
4395
4396
|
* @license
|
|
4396
4397
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4397
4398
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4398
|
-
*/const
|
|
4399
|
+
*/const Hm=_`
|
|
4399
4400
|
#overlay {
|
|
4400
4401
|
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
|
4401
4402
|
}
|
|
@@ -4405,17 +4406,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4405
4406
|
flex-direction: column;
|
|
4406
4407
|
height: 100%;
|
|
4407
4408
|
}
|
|
4408
|
-
`;
|
|
4409
|
+
`;y("vaadin-combo-box-overlay",[tr,Hm],{moduleId:"vaadin-combo-box-overlay-styles"});class $m extends zs(rr(ge(H(S)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return D`
|
|
4409
4410
|
<div id="backdrop" part="backdrop" hidden></div>
|
|
4410
4411
|
<div part="overlay" id="overlay">
|
|
4411
4412
|
<div part="loader"></div>
|
|
4412
4413
|
<div part="content" id="content"><slot></slot></div>
|
|
4413
4414
|
</div>
|
|
4414
|
-
`}}
|
|
4415
|
+
`}}P($m);/**
|
|
4415
4416
|
* @license
|
|
4416
4417
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
4417
4418
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4418
|
-
*/function
|
|
4419
|
+
*/function Or(i,e){return i.split(".").reduce((t,r)=>t?t[r]:void 0,e)}/**
|
|
4419
4420
|
* @license
|
|
4420
4421
|
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
|
4421
4422
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -4423,23 +4424,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4423
4424
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
4424
4425
|
* Code distributed by Google as part of the polymer project is also
|
|
4425
4426
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
4426
|
-
*/const
|
|
4427
|
+
*/const za=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Um=za&&za[1]>=8,La=3,Wm={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const i=this._virtualCount;return Math.max(0,i-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(i){i=this._clamp(i,0,this._maxVirtualStart),this._virtualStartVal=i},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(i){i%=this._physicalCount,i<0&&(i=this._physicalCount+i),this._physicalStartVal=i},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(i){this._physicalCountVal=i},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let i=this._firstVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;i=this._iterateItems((t,r)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return r})||0,this._firstVisibleIndexVal=i}return i},get lastVisibleIndex(){let i=this._lastVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,r)=>{e<this._scrollBottom&&(i=r),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=i}return i},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const i=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=i-this._scrollPosition;const t=e>=0;if(this._scrollPosition=i,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const r=Math.round(e/this._physicalAverage);this._virtualStart+=r,this._physicalStart+=r,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const r=this._getReusables(t);t?(this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length):(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length),this._update(r.indexes,t?null:r.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Ir)}},_getReusables(i){let e,t,r;const o=[],a=this._hiddenContentSize*this._ratio,n=this._virtualStart,s=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const u=this._physicalBottom+this._scrollOffset,h=this._scrollPosition,p=this._scrollBottom;for(i?(e=this._physicalStart,t=h-d):(e=this._physicalEnd,t=u-p);r=this._getPhysicalSizeIncrement(e),t-=r,!(o.length>=l||t<=a);)if(i){if(s+o.length+1>=this._virtualCount||d+r>=h-this._scrollOffset)break;o.push(e),d+=r,e=(e+1)%l}else{if(n-o.length<=0||d+this._physicalSize-r<=p)break;o.push(e),d-=r,e=e===0?l-1:e-1}return{indexes:o,physicalTop:d-this._scrollOffset}},_update(i,e){if(!(i&&i.length===0||this._physicalCount===0)){if(this._assignModels(i),this._updateMetrics(i),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(i){const e=this._clamp(this._physicalCount+i,La,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const r=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let o=0;o<e;o++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-r)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),Gn):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),Ir))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const i=this._getReusables(!0);this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length,this._update(i.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(La))},_itemsChanged(i){i.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,jt))},_iterateItems(i,e){let t,r,o,a;if(arguments.length===2&&e){for(a=0;a<e.length;a++)if(t=e[a],r=this._computeVidx(t),(o=i.call(this,t,r))!=null)return o}else{for(t=this._physicalStart,r=this._virtualStart;t<this._physicalCount;t++,r++)if((o=i.call(this,t,r))!=null)return o;for(t=0;t<this._physicalStart;t++,r++)if((o=i.call(this,t,r))!=null)return o}},_computeVidx(i){return i>=this._physicalStart?this._virtualStart+(i-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+i},_positionItems(){this._adjustScrollPosition();let i=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${i}px`,0,this._physicalItems[e]),i+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(i){return this._physicalSizes[i]},_adjustScrollPosition(){const i=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(i!==0){this._physicalTop-=i;const e=this._scrollPosition;!Um&&e>0&&this._resetScrollPosition(e-i)}},_resetScrollPosition(i){this.scrollTarget&&i>=0&&(this._scrollTop=i,this._scrollPosition=this._scrollTop)},_updateScrollerSize(i){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(i||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(i){if(typeof i!="number"||i<0||i>this.items.length-1||(zt(),this._physicalCount===0))return;i=this._clamp(i,0,this._virtualCount-1),(!this._isIndexRendered(i)||i>=this._maxVirtualStart)&&(this._virtualStart=i-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,r=0;const o=this._hiddenContentSize;for(;t<i&&r<=o;)r+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},jt)},_isIndexRendered(i){return i>=this._virtualStart&&i<=this._virtualEnd},_getPhysicalIndex(i){return(this._physicalStart+(i-this._virtualStart))%this._physicalCount},_clamp(i,e,t){return Math.min(t,Math.max(e,i))},_debounce(i,e,t){this._debouncers||(this._debouncers={}),this._debouncers[i]=ve.debounce(this._debouncers[i],t,e.bind(this)),Kn(this._debouncers[i])}};/**
|
|
4427
4428
|
* @license
|
|
4428
4429
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4429
4430
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4430
|
-
*/const Yh=1e5,Ho=1e3;class Ba{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:r,elementsContainer:s,reorderElements:a}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=r,this.elementsContainer=s||r,this.reorderElements=a,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:n}])=>{const l=n.width===0&&n.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",n=>this.__onWheel(n)),this.scrollTarget.addEventListener("virtualizer-element-focused",n=>this.__onElementFocused(n)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<Ho?(i=e,this._vidxOffset=0):(i=Ho,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),bt(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const i=[];this.__getVisibleElements().forEach(r=>{r.__virtualIndex>=e&&r.__virtualIndex<=t&&(this.__updateElement(r,r.__virtualIndex,!0),i.push(r))}),this.__afterElementsUpdated(i)}_updateMetrics(e){bt();let t=0,i=0;const r=this._physicalAverageCount,s=this._physicalAverage;this._iterateItems((a,n)=>{i+=this._physicalSizes[a],this._physicalSizes[a]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[a])),t+=this._physicalSizes[a],this._physicalAverageCount+=this._physicalSizes[a]?1:0},e),this._physicalSize=this._physicalSize+t-i,this._physicalAverageCount!==r&&(this._physicalAverage=Math.round((s*r+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return i;const r=parseFloat(t.paddingBottom)||0,s=parseFloat(t.paddingTop)||0,a=parseFloat(t.borderBottomWidth)||0,n=parseFloat(t.borderTopWidth)||0;return i+r+s+a+n}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||i)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const i=t.offsetHeight;if(i===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=be.debounce(this.__placeholderClearDebouncer,Dt,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const r=this.__elementHeightQueue.filter(s=>s!==void 0);this.__placeholderHeight=Math.round(r.reduce((s,a)=>s+a,0)/r.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(i=>i.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,i;if(e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),bt(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const r=this.__getIndexScrollOffset(t);i!==void 0&&r!==void 0&&(this._scrollTop+=i-r)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),bt(),this._debounce("_update",this._update,no)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Yh)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),i=document.createDocumentFragment();return t.forEach(r=>{r.style.position="absolute",i.appendChild(r),this.__resizeObserver.observe(r)}),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems((i,r)=>{const s=this._physicalItems[i];s.hidden=r>=this.size,s.hidden?delete s.__lastUpdatedIndex:(s.__virtualIndex=r+(this._vidxOffset||0),this.__updateElement(s,s.__virtualIndex),t.push(s))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,i,r){r.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,i)||this.__nextFocusableSiblingMissing(t,i))&&this.flush();const r=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,r)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,r)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=be.debounce(this.__fixInvalidItemPositioningDebouncer,Ve.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=be.debounce(this.__scrollReorderDebouncer,Ve.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,r=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||t&&!r){const s=t,a=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(s?-1:1),this._scrollHandler(),this._ratio=a}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=be.debounce(this.__debouncerWheelAnimationFrame,Dt,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=be.debounce(this._debouncerIgnoreNewWheel,Ve.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,i)}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const r=i.__virtualIndex-e,s=t.indexOf(i)-r;if(s>0)for(let a=0;a<s;a++)this.elementsContainer.appendChild(t[a]);else if(s<0)for(let a=t.length+s;a<t.length;a++)this.elementsContainer.insertBefore(t[a],t[0]);if(Oc){const{transform:a}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=a})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*t)}else{const i=this._vidxOffset,r=Ho,s=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<r&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-r&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,s),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(Ba.prototype,Uh);class Kh{constructor(e){this.__adapter=new Ba(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
|
|
4431
|
+
*/const qm=1e5,ci=1e3;class Ls{constructor({createElements:e,updateElement:t,scrollTarget:r,scrollContainer:o,elementsContainer:a,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=r,this.scrollContainer=o,this.elementsContainer=a||o,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:s}])=>{const l=s.width===0&&s.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",s=>this.__onWheel(s)),this.scrollTarget.addEventListener("virtualizer-element-focused",s=>this.__onElementFocused(s)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let r=Math.floor(e/this.size*this._virtualCount);this._virtualCount-r<t?(r=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):r<t?e<ci?(r=e,this._vidxOffset=0):(r=ci,this._vidxOffset=e-r):this._vidxOffset=e-r,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(r),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),zt(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const r=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),r.push(o))}),this.__afterElementsUpdated(r)}_updateMetrics(e){zt();let t=0,r=0;const o=this._physicalAverageCount,a=this._physicalAverage;this._iterateItems((n,s)=>{r+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),t+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},e),this._physicalSize=this._physicalSize+t-r,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((a*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),r=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return r;const o=parseFloat(t.paddingBottom)||0,a=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,s=parseFloat(t.borderTopWidth)||0;return r+o+a+n+s}__updateElement(e,t,r){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||r)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const r=t.offsetHeight;if(r===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=ve.debounce(this.__placeholderClearDebouncer,jt,()=>this._resizeHandler());else{this.__elementHeightQueue.push(r),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(a=>a!==void 0);this.__placeholderHeight=Math.round(o.reduce((a,n)=>a+n,0)/o.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(r=>r.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,r;if(e>0&&(t=this.adjustedFirstVisibleIndex,r=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),zt(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);r!==void 0&&o!==void 0&&(this._scrollTop+=r-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),zt(),this._debounce("_update",this._update,Ir)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,qm)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),r=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",r.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(r),t}_assignModels(e){const t=[];this._iterateItems((r,o)=>{const a=this._physicalItems[r];a.hidden=o>=this.size,a.hidden?delete a.__lastUpdatedIndex:(a.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(a,a.__virtualIndex),t.push(a))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,r,o){o.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const r=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,r)||this.__nextFocusableSiblingMissing(t,r))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,o)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,r=this._getReusables(!t);r.indexes.length&&(this._physicalTop=r.physicalTop,t?(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length):(this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=ve.debounce(this.__fixInvalidItemPositioningDebouncer,Re.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=ve.debounce(this.__scrollReorderDebouncer,Re.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,r=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!r||t&&!o){const a=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(a?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=ve.debounce(this.__debouncerWheelAnimationFrame,jt,()=>{this._wheelAnimationFrame=!1});const r=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=ve.debounce(this._debouncerIgnoreNewWheel,Re.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&r<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():r>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=r}_hasScrolledAncestor(e,t,r){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,r)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,r)}_canScroll(e,t,r){return r>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||r<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),r=this.__getFocusedElement(t)||t[0];if(!r)return;const o=r.__virtualIndex-e,a=t.indexOf(r)-o;if(a>0)for(let n=0;n<a;n++)this.elementsContainer.appendChild(t[n]);else if(a<0)for(let n=t.length+a;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(Op){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const r=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(r*t)}else{const r=this._vidxOffset,o=ci,a=100;this._scrollTop===0?(this._vidxOffset=0,r!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex+(r-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,r!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-r)))}}}Object.setPrototypeOf(Ls.prototype,Wm);class Ym{constructor(e){this.__adapter=new Ls(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
|
|
4431
4432
|
* @license
|
|
4432
4433
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4433
4434
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4434
|
-
*/const
|
|
4435
|
+
*/const $e=class{toString(){return""}};/**
|
|
4435
4436
|
* @license
|
|
4436
4437
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4437
4438
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4438
|
-
*/const
|
|
4439
|
+
*/const Bs=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}-${Qt()}`,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 o=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!o||e!==o.index)return;const a=o.getBoundingClientRect(),n=this.getBoundingClientRect(),s=a.bottom-n.bottom+this._viewportTotalPaddingBottom;s>0&&(this.scrollTop+=s)}_isItemSelected(e,t,r){return e instanceof $e?!1:r&&e!==void 0&&t!==void 0?Or(r,e)===Or(r,t):e===t}__initVirtualizer(){this.__virtualizer=new Ym({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],o=this.focusedIndex,a=this._isItemSelected(r,this.selectedItem,this.itemIdPath);e.setProperties({item:r,index:t,label:this.getItemLabel(r),selected:a,renderer:this.renderer,focused:!this.loading&&o===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",a.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 $e&&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}};/**
|
|
4439
4440
|
* @license
|
|
4440
4441
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4441
4442
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4442
|
-
*/class
|
|
4443
|
+
*/class jm extends Bs(S){static get is(){return"vaadin-combo-box-scroller"}static get template(){return D`
|
|
4443
4444
|
<style>
|
|
4444
4445
|
:host {
|
|
4445
4446
|
display: block;
|
|
@@ -4466,39 +4467,39 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4466
4467
|
<div id="selector">
|
|
4467
4468
|
<slot></slot>
|
|
4468
4469
|
</div>
|
|
4469
|
-
`}}
|
|
4470
|
+
`}}P(jm);/**
|
|
4470
4471
|
* @license
|
|
4471
4472
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4472
4473
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4473
|
-
*/const
|
|
4474
|
+
*/const Gm=i=>class extends ko(i){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
|
|
4474
4475
|
* @license
|
|
4475
4476
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4476
4477
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4477
|
-
*/function
|
|
4478
|
+
*/function Mr(i,e,t=0){let r=e;for(const o of i.subCaches){const a=o.parentCacheIndex;if(r<=a)break;if(r<=a+o.flatSize)return Mr(o,r-a-1,t+1);r-=o.flatSize}return{cache:i,item:i.items[r],index:r,page:Math.floor(r/i.pageSize),level:t}}function Fs({getItemId:i},e,t,r=0,o=0){for(let a=0;a<e.items.length;a++){const n=e.items[a];if(n&&i(n)===i(t))return{cache:e,level:r,item:n,index:a,page:Math.floor(a/e.pageSize),subCache:e.getSubCache(a),flatIndex:o+e.getFlatIndex(a)}}for(const a of e.subCaches){const n=o+e.getFlatIndex(a.parentCacheIndex),s=Fs({getItemId:i},a,t,r+1,n+1);if(s)return s}}function Vs(i,[e,...t],r=0){e===1/0&&(e=i.size-1);const o=i.getFlatIndex(e),a=i.getSubCache(e);return a&&a.flatSize>0&&t.length?Vs(a,t,r+o+1):r+o}/**
|
|
4478
4479
|
* @license
|
|
4479
4480
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4480
4481
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4481
|
-
*/class
|
|
4482
|
+
*/class Eo{constructor(e,t,r,o,a){se(this,"context"),se(this,"pageSize"),se(this,"items",[]),se(this,"pendingRequests",{}),se(this,"__subCacheByIndex",{}),se(this,"__size",0),se(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=r,this.parentCache=o,this.parentCacheIndex=a,this.__flatSize=r||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var t;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let r=0;r<e;r++)(t=this.items)[r]||(t[r]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(r=>{parseInt(r)*this.pageSize>=this.size&&delete this.pendingRequests[r]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const r=e*this.pageSize;t.forEach((o,a)=>{const n=r+a;(this.size===void 0||n<this.size)&&(this.items[n]=o)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new Eo(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((r,o)=>{const a=o.parentCacheIndex;return t>a?r+o.flatSize:r},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=Mr(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:r}=Mr(this,e);return{cache:t,scaledIndex:r}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
|
|
4482
4483
|
* @license
|
|
4483
4484
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4484
4485
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4485
|
-
*/class
|
|
4486
|
+
*/class Km extends EventTarget{constructor(e,{size:t,pageSize:r,isExpanded:o,getItemId:a,isPlaceholder:n,placeholder:s,dataProvider:l,dataProviderParams:d}){super(),se(this,"host"),se(this,"dataProvider"),se(this,"dataProviderParams"),se(this,"pageSize"),se(this,"isExpanded"),se(this,"getItemId"),se(this,"rootCache"),se(this,"placeholder"),se(this,"isPlaceholder"),this.host=e,this.pageSize=r,this.getItemId=a,this.isExpanded=o,this.placeholder=s,this.isPlaceholder=n,this.dataProvider=l,this.dataProviderParams=d,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return Mr(this.rootCache,e)}getItemContext(e){return Fs({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Vs(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:r,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(t,r)}ensureFlatIndexHierarchy(e){const{cache:t,item:r,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(r)&&this.isExpanded(r)&&!t.getSubCache(o)){const a=t.createSubCache(o);this.__loadCachePage(a,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new Eo(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let r={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(r=wr(wr({},r),this.dataProviderParams()));const o=(a,n)=>{e.pendingRequests[t]===o&&(n!==void 0?e.size=n:r.parentItem&&(e.size=a.length),e.setPage(t,a),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(r,o)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
|
|
4486
4487
|
* @license
|
|
4487
4488
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4488
4489
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4489
|
-
*/const
|
|
4490
|
+
*/const Rs=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 Km(this,{placeholder:new $e,isPlaceholder:e=>e instanceof $e,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`")}}};/**
|
|
4490
4491
|
* @license
|
|
4491
4492
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4492
4493
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4493
|
-
*/function
|
|
4494
|
+
*/function Yr(i){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(i);return}i.querySelector("template")&&console.warn(`WARNING: <template> inside <${i.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
|
|
4494
4495
|
* @license
|
|
4495
4496
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4496
4497
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4497
|
-
*/function Qr(o){return o!=null}function es(o,e){return o.findIndex(t=>t instanceof Be?!1:e(t))}const qa=o=>class extends Ht(Ae(Mi(Je(Ge(Nt(ct(o))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),ko(this),this.addController(new za(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,i){super._propertiesChanged(e,t,i),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 i=this._overlayElement;i.renderer=r=>{r.innerHTML||r.appendChild(t)},i.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,i,r,s,a,n,l,c,h){if(e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?t:[],opened:i,loading:r,selectedItem:s,itemIdPath:a,focusedIndex:n,renderer:l,theme:c,itemClassNameGenerator:h}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(u){}}_openedOrItemsChanged(e,t,i,r){this._overlayOpened=e&&(r||i||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Di(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const i=this._getItemElements().find(r=>r.index===e);i?t.setAttribute("aria-activedescendant",i.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!ni&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?ho(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?ho(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{ni&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const i=this._inputElementValue;this._lastCustomValue=i;const r=new CustomEvent("custom-value-set",{detail:i,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(r),r.defaultPrevented||(this.value=i)}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,i={};this.filter===t?this._filterChanged(this.filter):i.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_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||(Qr(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(i=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(i).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),i=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&&i===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const i=t?t[this._focusedIndex]:null,r=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&r>=0&&(this.selectedItem=e[r]);const s=this.__getItemIndexByValue(e,this._getItemValue(i));s>-1?this._focusedIndex=s:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!Qr(t)?-1:es(e,i=>this._getItemValue(i)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:es(e,i=>this._getItemLabel(i).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Be)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(vo()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
|
|
4498
|
+
*/function Ba(i){return i!=null}function Fa(i,e){return i.findIndex(t=>t instanceof $e?!1:e(t))}const Hs=i=>class extends ir(Pe(uo(it(rt(Jt(yt(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),Yr(this),this.addController(new Ts(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,r){super._propertiesChanged(e,t,r),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const r=this._overlayElement;r.renderer=o=>{o.innerHTML||o.appendChild(t)},r.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,r,o,a,n,s,l,d,u){if(e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?t:[],opened:r,loading:o,selectedItem:a,itemIdPath:n,focusedIndex:s,renderer:l,theme:d,itemClassNameGenerator:u}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(h){}}_openedOrItemsChanged(e,t,r,o){this._overlayOpened=e&&(o||r||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&no(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const r=this._getItemElements().find(o=>o.index===e);r?t.setAttribute("aria-activedescendant",r.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!Mi&&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?Or(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?Or(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",()=>{Mi&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const r=this._inputElementValue;this._lastCustomValue=r;const o=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=r)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,r={};this.filter===t?this._filterChanged(this.filter):r.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(r.opened=!0),this.setProperties(r)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(Ba(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(r=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),r=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&r===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const r=t?t[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=e[o]);const a=this.__getItemIndexByValue(e,this._getItemValue(r));a>-1?this._focusedIndex=a: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||!Ba(t)?-1:Fa(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Fa(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof $e)&&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(Fr()){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
4499
|
* @license
|
|
4499
4500
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4500
4501
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4501
|
-
*/
|
|
4502
|
+
*/y("vaadin-combo-box",Wr,{moduleId:"vaadin-combo-box-styles"});class Xm extends Rs(Hs(Gm(Ur(H(be(S)))))){static get is(){return"vaadin-combo-box"}static get template(){return D`
|
|
4502
4503
|
<style>
|
|
4503
4504
|
:host([opened]) {
|
|
4504
4505
|
pointer-events: auto;
|
|
@@ -4543,11 +4544,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4543
4544
|
></vaadin-combo-box-overlay>
|
|
4544
4545
|
|
|
4545
4546
|
<slot name="tooltip"></slot>
|
|
4546
|
-
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new
|
|
4547
|
+
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Zt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new er(this.inputElement,this._labelController)),this._tooltipController=new Ne(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}P(Xm);/**
|
|
4547
4548
|
* @license
|
|
4548
4549
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4549
4550
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4550
|
-
*/const
|
|
4551
|
+
*/const Qm=_`
|
|
4551
4552
|
:host {
|
|
4552
4553
|
font-size: var(--lumo-font-size-xxs);
|
|
4553
4554
|
line-height: 1;
|
|
@@ -4636,27 +4637,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4636
4637
|
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
4637
4638
|
pointer-events: none;
|
|
4638
4639
|
}
|
|
4639
|
-
`;
|
|
4640
|
+
`;y("vaadin-multi-select-combo-box-chip",[mo,Qm],{moduleId:"lumo-multi-select-combo-box-chip"});/**
|
|
4640
4641
|
* @license
|
|
4641
4642
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4642
4643
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4643
|
-
*/const
|
|
4644
|
+
*/const Jm=_`
|
|
4644
4645
|
@media (any-hover: hover) {
|
|
4645
4646
|
:host(:hover[readonly]) {
|
|
4646
4647
|
background-color: transparent;
|
|
4647
4648
|
cursor: default;
|
|
4648
4649
|
}
|
|
4649
4650
|
}
|
|
4650
|
-
`;
|
|
4651
|
+
`;y("vaadin-multi-select-combo-box-item",[qr,Ds,Jm],{moduleId:"lumo-multi-select-combo-box-item"});y("vaadin-multi-select-combo-box-overlay",[wt,Hr,Os,Ss,Ms,_`
|
|
4651
4652
|
:host {
|
|
4652
4653
|
--_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
4653
4654
|
--_vaadin-multi-select-combo-box-items-container-border-style: solid;
|
|
4654
4655
|
}
|
|
4655
|
-
`],{moduleId:"lumo-multi-select-combo-box-overlay"});
|
|
4656
|
+
`],{moduleId:"lumo-multi-select-combo-box-overlay"});y("vaadin-multi-select-combo-box-container",_`
|
|
4656
4657
|
:host([auto-expand-vertically]) {
|
|
4657
4658
|
padding-block: var(--lumo-space-xs);
|
|
4658
4659
|
}
|
|
4659
|
-
`,{moduleId:"lumo-multi-select-combo-box-container"});const
|
|
4660
|
+
`,{moduleId:"lumo-multi-select-combo-box-container"});const Zm=_`
|
|
4660
4661
|
:host([has-value]) {
|
|
4661
4662
|
padding-inline-start: 0;
|
|
4662
4663
|
}
|
|
@@ -4709,11 +4710,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4709
4710
|
color: var(--lumo-contrast-60pct);
|
|
4710
4711
|
cursor: var(--lumo-clickable-cursor);
|
|
4711
4712
|
}
|
|
4712
|
-
`;
|
|
4713
|
+
`;y("vaadin-multi-select-combo-box",[ot,Zm],{moduleId:"lumo-multi-select-combo-box"});/**
|
|
4713
4714
|
* @license
|
|
4714
4715
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4715
4716
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4716
|
-
*/class
|
|
4717
|
+
*/class e_ extends H(S){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return D`
|
|
4717
4718
|
<style>
|
|
4718
4719
|
:host {
|
|
4719
4720
|
display: inline-flex;
|
|
@@ -4742,11 +4743,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4742
4743
|
</style>
|
|
4743
4744
|
<div part="label">[[label]]</div>
|
|
4744
4745
|
<div part="remove-button" on-click="_onRemoveClick"></div>
|
|
4745
|
-
`}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}
|
|
4746
|
+
`}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}P(e_);/**
|
|
4746
4747
|
* @license
|
|
4747
4748
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4748
4749
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4749
|
-
*/
|
|
4750
|
+
*/y("vaadin-multi-select-combo-box-container",_`
|
|
4750
4751
|
#wrapper {
|
|
4751
4752
|
display: flex;
|
|
4752
4753
|
width: 100%;
|
|
@@ -4756,11 +4757,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4756
4757
|
:host([auto-expand-vertically]) #wrapper {
|
|
4757
4758
|
flex-wrap: wrap;
|
|
4758
4759
|
}
|
|
4759
|
-
`,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let
|
|
4760
|
+
`,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let pr;class t_ extends us{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!pr){pr=super.template.cloneNode(!0);const e=pr.content,t=e.querySelectorAll("slot"),r=document.createElement("div");r.setAttribute("id","wrapper"),e.insertBefore(r,t[2]),r.appendChild(t[0]),r.appendChild(t[1])}return pr}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}P(t_);/**
|
|
4760
4761
|
* @license
|
|
4761
4762
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4762
4763
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4763
|
-
*/class
|
|
4764
|
+
*/class r_ extends Ns(H(ge(S))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return D`
|
|
4764
4765
|
<style>
|
|
4765
4766
|
:host {
|
|
4766
4767
|
display: block;
|
|
@@ -4774,11 +4775,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4774
4775
|
<div part="content">
|
|
4775
4776
|
<slot></slot>
|
|
4776
4777
|
</div>
|
|
4777
|
-
`}}
|
|
4778
|
+
`}}P(r_);/**
|
|
4778
4779
|
* @license
|
|
4779
4780
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4780
4781
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4781
|
-
*/const
|
|
4782
|
+
*/const i_=_`
|
|
4782
4783
|
#overlay {
|
|
4783
4784
|
width: var(
|
|
4784
4785
|
--vaadin-multi-select-combo-box-overlay-width,
|
|
@@ -4791,17 +4792,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4791
4792
|
flex-direction: column;
|
|
4792
4793
|
height: 100%;
|
|
4793
4794
|
}
|
|
4794
|
-
`;
|
|
4795
|
+
`;y("vaadin-multi-select-combo-box-overlay",[tr,i_],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class o_ extends zs(rr(ge(H(S)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return D`
|
|
4795
4796
|
<div id="backdrop" part="backdrop" hidden></div>
|
|
4796
4797
|
<div part="overlay" id="overlay">
|
|
4797
4798
|
<div part="loader"></div>
|
|
4798
4799
|
<div part="content" id="content"><slot></slot></div>
|
|
4799
4800
|
</div>
|
|
4800
|
-
`}}
|
|
4801
|
+
`}}P(o_);/**
|
|
4801
4802
|
* @license
|
|
4802
4803
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4803
4804
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4804
|
-
*/class
|
|
4805
|
+
*/class a_ extends Bs(S){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return D`
|
|
4805
4806
|
<style>
|
|
4806
4807
|
:host {
|
|
4807
4808
|
display: block;
|
|
@@ -4828,11 +4829,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4828
4829
|
<div id="selector">
|
|
4829
4830
|
<slot></slot>
|
|
4830
4831
|
</div>
|
|
4831
|
-
`}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,
|
|
4832
|
+
`}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,r){return e instanceof $e||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)}}P(a_);/**
|
|
4832
4833
|
* @license
|
|
4833
4834
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4834
4835
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4835
|
-
*/class
|
|
4836
|
+
*/class n_ extends Rs(Hs(H(S))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return D`
|
|
4836
4837
|
<style>
|
|
4837
4838
|
:host([opened]) {
|
|
4838
4839
|
pointer-events: auto;
|
|
@@ -4850,15 +4851,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4850
4851
|
no-vertical-overlap
|
|
4851
4852
|
restore-focus-node="[[inputElement]]"
|
|
4852
4853
|
></vaadin-multi-select-combo-box-overlay>
|
|
4853
|
-
`}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(
|
|
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 $e||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()}}P(n_);/**
|
|
4854
4855
|
* @license
|
|
4855
4856
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4856
4857
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4857
|
-
*/const
|
|
4858
|
+
*/const mr=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),$s=J(i=>class extends i{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),mr.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,mr.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),mr.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&mr.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
|
|
4858
4859
|
* @license
|
|
4859
4860
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
4860
4861
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
4861
|
-
*/const
|
|
4862
|
+
*/const s_=_`
|
|
4862
4863
|
:host {
|
|
4863
4864
|
--input-min-width: var(--vaadin-multi-select-combo-box-input-min-width, 4em);
|
|
4864
4865
|
--_chip-min-width: var(--vaadin-multi-select-combo-box-chip-min-width, 50px);
|
|
@@ -4896,7 +4897,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4896
4897
|
:host([auto-expand-horizontally]) [class$='container'] {
|
|
4897
4898
|
width: auto;
|
|
4898
4899
|
}
|
|
4899
|
-
`;
|
|
4900
|
+
`;y("vaadin-multi-select-combo-box",[Wr,s_],{moduleId:"vaadin-multi-select-combo-box-styles"});class l_ extends $s(Ur(H(be(S)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return D`
|
|
4900
4901
|
<div class="vaadin-multi-select-combo-box-container">
|
|
4901
4902
|
<div part="label">
|
|
4902
4903
|
<slot name="label"></slot>
|
|
@@ -4972,7 +4973,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4972
4973
|
color: transparent !important;
|
|
4973
4974
|
forced-color-adjust: none;
|
|
4974
4975
|
}
|
|
4975
|
-
`]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new
|
|
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 er(this.inputElement,this._labelController)),this._tooltipController=new Ne(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 ce(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(),Yr(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),vr(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 o=0;o<t.length;o++)if(t[o]&&t[o][r]===e[r])return o;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 o=t?"selected":"deselected",a=this.i18n.total.replace("{count}",r||0);vr(`${e} ${this.i18n[o]} ${a}`)}__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),o=this._getItemLabel(e);let a=!1;if(r!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}t.splice(r,1)}else t.push(e),a=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(o,a,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",o=>this._onItemRemoved(o)),t.addEventListener("mousedown",o=>this._preventBlur(o)),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),o=e.clientWidth+parseInt(r.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",o}__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 o=t-r;e.length>1&&(o-=this.__getOverflowWidth());const a=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let d=e.length-1,u=null;d>=0;d--){const h=this.__createChip(e[d]);this.insertBefore(h,u),u=h,n.unshift(h)}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(a,o)}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>o)if(s===null)l.style.maxWidth=`${Math.max(a,o)}px`;else{l.remove();break}e.pop(),s=l}this._overflowItems=e}__updateOverflowChip(e,t,r,o){if(e){const a=t.length;e.label=`${a}`,e.setAttribute("count",`${a}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",a===0),e.disabled=r,e.readonly=o}}_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 o;this.__isRTL?r===e.length-1?o=-1:r>-1&&(o=r+1):r===-1?o=e.length-1:r>0&&(o=r-1),o!==void 0&&(this._focusedChipIndex=o)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let o;this.__isRTL?r===-1?o=e.length-1:r>0&&(o=r-1):r===e.length-1?o=-1:r>-1&&(o=r+1),o!==void 0&&(this._focusedChipIndex=o)}_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((o,a)=>{o.toggleAttribute("focused",a===e)}),e>-1){const o=r[e].item,a=this._getItemLabel(o);vr(`${a} ${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()}}P(l_);y("vaadin-notification-card",_`
|
|
4976
4977
|
:host {
|
|
4977
4978
|
position: relative;
|
|
4978
4979
|
margin: var(--lumo-space-s);
|
|
@@ -5190,11 +5191,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5190
5191
|
* @license
|
|
5191
5192
|
* Copyright 2020 Google LLC
|
|
5192
5193
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5193
|
-
*/const
|
|
5194
|
+
*/const d_=(i,e)=>(i==null?void 0:i._$litType$)!==void 0;/**
|
|
5194
5195
|
* @license
|
|
5195
5196
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5196
5197
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5197
|
-
*/class
|
|
5198
|
+
*/class c_ extends fs(H(be(S))){static get template(){return D`
|
|
5198
5199
|
<style>
|
|
5199
5200
|
:host {
|
|
5200
5201
|
position: fixed;
|
|
@@ -5261,7 +5262,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5261
5262
|
<div region="bottom-end"><slot name="bottom-end"></slot></div>
|
|
5262
5263
|
</div>
|
|
5263
5264
|
<div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
|
|
5264
|
-
`}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),
|
|
5265
|
+
`}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),fo&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight;t&&r>e?this.style.bottom=`${r-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class u_ extends H(S){static get template(){return D`
|
|
5265
5266
|
<style>
|
|
5266
5267
|
:host {
|
|
5267
5268
|
display: block;
|
|
@@ -5283,14 +5284,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5283
5284
|
<slot></slot>
|
|
5284
5285
|
</div>
|
|
5285
5286
|
</div>
|
|
5286
|
-
`}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class
|
|
5287
|
+
`}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class Se extends ir(zr(be(S))){static get template(){return D`
|
|
5287
5288
|
<style>
|
|
5288
5289
|
:host {
|
|
5289
5290
|
display: none !important;
|
|
5290
5291
|
}
|
|
5291
5292
|
</style>
|
|
5292
5293
|
<vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
|
|
5293
|
-
`}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return
|
|
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 d_(e)?Se._createAndShowNotification(r=>{mn(e,r)},t):Se._createAndShowNotification(r=>{r.innerText=e},t)}static _createAndShowNotification(e,t){const r=document.createElement(Se.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",o=>{o.detail.value||r.remove()}),r}get _container(){return Se._container||(Se._container=document.createElement("vaadin-notification-container"),document.body.appendChild(Se._container)),Se._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Yr(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 o=this._oldRenderer!==e;this._oldRenderer=e,o&&(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)))}}P(c_);P(u_);P(Se);const Us=_`
|
|
5294
5295
|
:host {
|
|
5295
5296
|
-webkit-tap-highlight-color: transparent;
|
|
5296
5297
|
--_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
|
|
@@ -5304,11 +5305,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5304
5305
|
margin: var(--lumo-space-s) var(--lumo-border-radius-m);
|
|
5305
5306
|
background-color: var(--lumo-contrast-10pct);
|
|
5306
5307
|
}
|
|
5307
|
-
`;
|
|
5308
|
+
`;y("vaadin-list-box",Us,{moduleId:"lumo-list-box"});/**
|
|
5308
5309
|
* @license
|
|
5309
5310
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5310
5311
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5311
|
-
*/
|
|
5312
|
+
*/y("vaadin-select-item",qr,{moduleId:"lumo-select-item"});y("vaadin-select-list-box",Us,{moduleId:"lumo-select-list-box"});const h_=_`
|
|
5312
5313
|
:host(:not([theme*='align'])) ::slotted([slot='value']) {
|
|
5313
5314
|
text-align: start;
|
|
5314
5315
|
}
|
|
@@ -5351,7 +5352,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5351
5352
|
--_lumo-selected-item-height: var(--lumo-size-s);
|
|
5352
5353
|
--_lumo-selected-item-padding: 0;
|
|
5353
5354
|
}
|
|
5354
|
-
`;
|
|
5355
|
+
`;y("vaadin-select",[ot,h_],{moduleId:"lumo-select"});y("vaadin-select-value-button",_`
|
|
5355
5356
|
:host {
|
|
5356
5357
|
font-family: var(--lumo-font-family);
|
|
5357
5358
|
font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
|
|
@@ -5370,7 +5371,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5370
5371
|
::slotted(*:hover) {
|
|
5371
5372
|
background-color: transparent;
|
|
5372
5373
|
}
|
|
5373
|
-
`,{moduleId:"lumo-select-value-button"});const
|
|
5374
|
+
`,{moduleId:"lumo-select-value-button"});const p_=_`
|
|
5374
5375
|
:host {
|
|
5375
5376
|
--_lumo-item-selected-icon-display: block;
|
|
5376
5377
|
}
|
|
@@ -5406,15 +5407,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5406
5407
|
:host([theme~='align-center']) {
|
|
5407
5408
|
text-align: center;
|
|
5408
5409
|
}
|
|
5409
|
-
`;
|
|
5410
|
+
`;y("vaadin-select-overlay",[po,p_],{moduleId:"lumo-select-overlay"});/**
|
|
5410
5411
|
* @license
|
|
5411
5412
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5412
5413
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5413
|
-
*/const
|
|
5414
|
+
*/const Ws=i=>class extends io(it(i)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(e){return!this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}};/**
|
|
5414
5415
|
* @license
|
|
5415
5416
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5416
5417
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5417
|
-
*/class
|
|
5418
|
+
*/class m_ extends Ws(H(ge(S))){static get is(){return"vaadin-select-item"}static get template(){return D`
|
|
5418
5419
|
<style>
|
|
5419
5420
|
:host {
|
|
5420
5421
|
display: inline-block;
|
|
@@ -5428,23 +5429,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5428
5429
|
<div part="content">
|
|
5429
5430
|
<slot></slot>
|
|
5430
5431
|
</div>
|
|
5431
|
-
`}ready(){super.ready(),this.setAttribute("role","option")}}
|
|
5432
|
+
`}ready(){super.ready(),this.setAttribute("role","option")}}P(m_);/**
|
|
5432
5433
|
* @license
|
|
5433
5434
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
5434
5435
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5435
|
-
*/function
|
|
5436
|
+
*/function qs(i,e){const{scrollLeft:t}=i;return e!=="rtl"?t:i.scrollWidth-i.clientWidth+t}function __(i,e,t){e!=="rtl"?i.scrollLeft=t:i.scrollLeft=i.clientWidth-i.scrollWidth+t}/**
|
|
5436
5437
|
* @license
|
|
5437
5438
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
5438
5439
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5439
|
-
*/const
|
|
5440
|
+
*/const f_=i=>class extends rt(i){get focused(){return(this._getItems()||[]).find(no)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,r=>!Di(r));t>=0&&this._focus(t)}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:t}=e,r=this._getItems()||[],o=r.indexOf(this.focused);let a,n;const s=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(t)?(n=-s,a=o-s):this.__isNextKey(t)?(n=s,a=o+s):t==="Home"?(n=1,a=0):t==="End"&&(n=-1,a=r.length-1),a=this._getAvailableIndex(r,a,n,l=>!Di(l)),a>=0&&(e.preventDefault(),this._focus(a,!0))}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,t=!1){const r=this._getItems();this._focusItem(r[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,r,o){const a=e.length;let n=t;for(let s=0;typeof n=="number"&&s<a;s+=1,n+=r||1){n<0?n=a-1:n>=a&&(n=0);const l=e[n];if(!l.hasAttribute("disabled")&&this.__isMatchingItem(l,o))return n}return-1}__isMatchingItem(e,t){return typeof t=="function"?t(e):!0}};/**
|
|
5440
5441
|
* @license
|
|
5441
5442
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5442
5443
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5443
|
-
*/const
|
|
5444
|
+
*/const Ys=i=>class extends f_(i){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,r=>r.tabIndex===0&&!Di(r));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Zi(e,()=>{this._setItems(this._filterItems(Xn(this)))})}_getItems(){return this.items}_enhanceItems(e,t,r,o){if(!o&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(n=>{t?n.setAttribute("orientation",t):n.removeAttribute("orientation")}),this._setFocusable(r<0||!r?0:r);const a=e[r];e.forEach(n=>{n.selected=n===a}),a&&!a.disabled&&this._scrollToItem(r)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let r;t&&!t.disabled&&(r=this.items.indexOf(t))>=0&&(this.selected=r)}_searchKey(e,t){this._searchReset=ve.debounce(this._searchReset,Re.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(o=>this.__isMatchingKey(o))||(this._searchBuf=t.toLowerCase());const r=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,r,1,o=>this.__isMatchingKey(o)&&getComputedStyle(o).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,r=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const o=this._searchKey(r,t);o>=0&&this._focus(o);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(r=>{r.tabIndex=r===t?0:-1})}_focus(e){this.items.forEach((t,r)=>{t.focused=r===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const r=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],o=this._scrollerElement.getBoundingClientRect(),a=(this.items[e+1]||t).getBoundingClientRect(),n=(this.items[e-1]||t).getBoundingClientRect();let s=0;!this._isRTL&&a[r[1]]>=o[r[1]]||this._isRTL&&a[r[1]]<=o[r[1]]?s=a[r[1]]-o[r[1]]:(!this._isRTL&&n[r[0]]<=o[r[0]]||this._isRTL&&n[r[0]]>=o[r[0]])&&(s=n[r[0]]-o[r[0]]),this._scroll(s)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",r=qs(this._scrollerElement,t)+e;__(this._scrollerElement,t,r)}}};/**
|
|
5444
5445
|
* @license
|
|
5445
5446
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5446
5447
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5447
|
-
*/class
|
|
5448
|
+
*/class v_ extends Ys(H(ge(Pe(S)))){static get is(){return"vaadin-select-list-box"}static get template(){return D`
|
|
5448
5449
|
<style>
|
|
5449
5450
|
:host {
|
|
5450
5451
|
display: flex;
|
|
@@ -5464,15 +5465,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5464
5465
|
<div part="items">
|
|
5465
5466
|
<slot></slot>
|
|
5466
5467
|
</div>
|
|
5467
|
-
`}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}
|
|
5468
|
+
`}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}P(v_);/**
|
|
5468
5469
|
* @license
|
|
5469
5470
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5470
5471
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5471
|
-
*/const
|
|
5472
|
+
*/const g_=i=>class extends vo(rr(ge(i))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,t){if(e&&t){const r="--vaadin-select-overlay-width",o=getComputedStyle(t).getPropertyValue(r);o===""?this.style.removeProperty(r):this.style.setProperty(r,o)}}};/**
|
|
5472
5473
|
* @license
|
|
5473
5474
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5474
5475
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5475
|
-
*/const
|
|
5476
|
+
*/const b_=_`
|
|
5476
5477
|
:host {
|
|
5477
5478
|
align-items: flex-start;
|
|
5478
5479
|
justify-content: flex-start;
|
|
@@ -5487,18 +5488,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5487
5488
|
outline: 3px solid;
|
|
5488
5489
|
}
|
|
5489
5490
|
}
|
|
5490
|
-
`;
|
|
5491
|
+
`;y("vaadin-select-overlay",[tr,b_],{moduleId:"vaadin-select-overlay-styles"});class y_ extends g_(H(S)){static get is(){return"vaadin-select-overlay"}static get template(){return D`
|
|
5491
5492
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
5492
5493
|
<div part="overlay" id="overlay" tabindex="0">
|
|
5493
5494
|
<div part="content" id="content">
|
|
5494
5495
|
<slot></slot>
|
|
5495
5496
|
</div>
|
|
5496
5497
|
</div>
|
|
5497
|
-
`}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}
|
|
5498
|
+
`}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}P(y_);/**
|
|
5498
5499
|
* @license
|
|
5499
5500
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5500
5501
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5501
|
-
*/const
|
|
5502
|
+
*/const w_=_`
|
|
5502
5503
|
:host {
|
|
5503
5504
|
display: inline-block;
|
|
5504
5505
|
position: relative;
|
|
@@ -5544,17 +5545,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5544
5545
|
* @license
|
|
5545
5546
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5546
5547
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5547
|
-
*/
|
|
5548
|
+
*/y("vaadin-select-value-button",w_,{moduleId:"vaadin-select-value-button-styles"});class x_ extends go(H(S)){static get is(){return"vaadin-select-value-button"}static get template(){return D`
|
|
5548
5549
|
<div class="vaadin-button-container">
|
|
5549
5550
|
<span part="label">
|
|
5550
5551
|
<slot></slot>
|
|
5551
5552
|
</span>
|
|
5552
5553
|
</div>
|
|
5553
|
-
`}}
|
|
5554
|
+
`}}P(x_);/**
|
|
5554
5555
|
* @license
|
|
5555
5556
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
5556
5557
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5557
|
-
*/const
|
|
5558
|
+
*/const C_=_`
|
|
5558
5559
|
.sr-only {
|
|
5559
5560
|
border: 0 !important;
|
|
5560
5561
|
clip: rect(1px, 1px, 1px, 1px) !important;
|
|
@@ -5572,15 +5573,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5572
5573
|
* @license
|
|
5573
5574
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
5574
5575
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5575
|
-
*/class
|
|
5576
|
+
*/class k_ extends ce{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,r)=>{r._setFocusElement(t),r.ariaTarget=t,r.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
|
|
5576
5577
|
* @license
|
|
5577
5578
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5578
5579
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5579
|
-
*/const
|
|
5580
|
+
*/const E_=i=>class extends ir(Vr(so(rt(Rr(i))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${Qt()}`,this._srLabelController=new ls(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new k_(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new Co(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new Ne(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),e.addEventListener("click",t=>{const r=t.composedPath().find(o=>o._hasVaadinItemMixin);this.__dispatchChangePending=!!(r&&r.value!==void 0&&r.value!==this.value),this.opened=!1},!0),this.__lastMenuElement=e)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),t!==void 0&&!this.__dispatchChangePending&&this.validate()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(e){e.preventDefault()}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const t=this._menuElement.selected,r=t!==void 0?t:-1,o=this._menuElement._searchKey(r,e.key);o>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=o)}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1)}_openedChanged(e,t,r){if(!(!t||!r)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${r.offsetWidth}px`);const o=this.hasAttribute("focus-ring");this._openedWithFocusRing=o,o&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e}}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t;const r=e.getAttribute("label");r?t=this.__createItemElement({label:r}):t=e.cloneNode(!0),t._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){const t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){const t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){const t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const t=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){const o=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(o,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const r=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};ht(e,"aria-labelledby",r),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;const t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),r=e.childElementCount>0;return t||r}_updateSelectedItem(e,t){if(t){const r=e==null?e:e.toString();this._menuElement.selected=t.reduce((o,a,n)=>o===void 0&&a.value===r?n:o,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||this.items.length===0){e.textContent="";return}let r=e.firstElementChild;r||(r=document.createElement("vaadin-select-list-box"),e.appendChild(r)),r.textContent="",this.items.forEach(o=>{r.appendChild(this.__createItemElement(o))})}__dispatchChange(){return xr(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
|
|
5580
5581
|
* @license
|
|
5581
5582
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5582
5583
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5583
|
-
*/
|
|
5584
|
+
*/y("vaadin-select",[Ps,As,C_],{moduleId:"vaadin-select-styles"});class P_ extends E_(be(H(S))){static get is(){return"vaadin-select"}static get template(){return D`
|
|
5584
5585
|
<style>
|
|
5585
5586
|
:host {
|
|
5586
5587
|
position: relative;
|
|
@@ -5633,7 +5634,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5633
5634
|
<div class="sr-only">
|
|
5634
5635
|
<slot name="sr-label"></slot>
|
|
5635
5636
|
</div>
|
|
5636
|
-
`}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),
|
|
5637
|
+
`}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Yr(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}P(P_);const js=_`
|
|
5637
5638
|
/* Optical centering */
|
|
5638
5639
|
:host::before,
|
|
5639
5640
|
:host::after {
|
|
@@ -5733,7 +5734,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5733
5734
|
transform: scale(1.02);
|
|
5734
5735
|
}
|
|
5735
5736
|
}
|
|
5736
|
-
`;
|
|
5737
|
+
`;y("vaadin-dialog-overlay",[wt,js],{moduleId:"lumo-dialog"});y("vaadin-confirm-dialog-overlay",[wt,js,_`
|
|
5737
5738
|
[part='header'] ::slotted(h3) {
|
|
5738
5739
|
margin-top: 0 !important;
|
|
5739
5740
|
margin-bottom: 0 !important;
|
|
@@ -5772,11 +5773,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5772
5773
|
* @license
|
|
5773
5774
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5774
5775
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5775
|
-
*/const
|
|
5776
|
+
*/const A_=i=>class extends i{static get properties(){return{opened:{type:Boolean,value:!1,notify:!0},noCloseOnOutsideClick:{type:Boolean,value:!1},noCloseOnEsc:{type:Boolean,value:!1},modeless:{type:Boolean,value:!1},overlayRole:{type:String,value:"dialog"}}}ready(){super.ready();const e=this.$.overlay;e.addEventListener("vaadin-overlay-outside-click",this._handleOutsideClick.bind(this)),e.addEventListener("vaadin-overlay-escape-press",this._handleEscPress.bind(this)),e.addEventListener("vaadin-overlay-closed",this.__handleOverlayClosed.bind(this)),this._overlayElement=e}__handleOverlayClosed(){this.dispatchEvent(new CustomEvent("closed"))}connectedCallback(){super.connectedCallback(),this.__restoreOpened&&(this.opened=!0)}disconnectedCallback(){super.disconnectedCallback(),setTimeout(()=>{this.isConnected||(this.__restoreOpened=this.opened,this.opened=!1)})}_onOverlayOpened(e){e.detail.value===!1&&(this.opened=!1)}_handleOutsideClick(e){this.noCloseOnOutsideClick&&e.preventDefault()}_handleEscPress(e){this.noCloseOnEsc&&e.preventDefault()}_bringOverlayToFront(){this.modeless&&this._overlayElement.bringToFront()}};/**
|
|
5776
5777
|
* @license
|
|
5777
5778
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
5778
5779
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5779
|
-
*/const
|
|
5780
|
+
*/const T_=_`
|
|
5780
5781
|
[part='header'],
|
|
5781
5782
|
[part='header-content'],
|
|
5782
5783
|
[part='footer'] {
|
|
@@ -5854,7 +5855,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5854
5855
|
outline: 3px solid !important;
|
|
5855
5856
|
}
|
|
5856
5857
|
}
|
|
5857
|
-
`;
|
|
5858
|
+
`;_`
|
|
5858
5859
|
[part='overlay'] {
|
|
5859
5860
|
position: relative;
|
|
5860
5861
|
overflow: visible;
|
|
@@ -5951,11 +5952,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5951
5952
|
* @license
|
|
5952
5953
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
5953
5954
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5954
|
-
*/const
|
|
5955
|
+
*/const I_=i=>class extends i{static get properties(){return{ariaLabel:{type:String,value:""},contentHeight:{type:String},contentWidth:{type:String}}}static get observers(){return["__updateContentHeight(contentHeight, _overlayElement)","__updateContentWidth(contentWidth, _overlayElement)"]}__updateDimension(e,t,r){const o=`--_vaadin-confirm-dialog-content-${t}`;r?e.style.setProperty(o,r):e.style.removeProperty(o)}__updateContentHeight(e,t){t&&this.__updateDimension(t,"height",e)}__updateContentWidth(e,t){t&&this.__updateDimension(t,"width",e)}};/**
|
|
5955
5956
|
* @license
|
|
5956
5957
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
5957
5958
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5958
|
-
*/const
|
|
5959
|
+
*/const D_=_`
|
|
5959
5960
|
:host {
|
|
5960
5961
|
--_vaadin-confirm-dialog-content-width: auto;
|
|
5961
5962
|
--_vaadin-confirm-dialog-content-height: auto;
|
|
@@ -5978,7 +5979,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5978
5979
|
* @license
|
|
5979
5980
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
5980
5981
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5981
|
-
*/
|
|
5982
|
+
*/y("vaadin-confirm-dialog-overlay",[tr,T_,D_],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class S_ extends rr(ge(H(S))){static get is(){return"vaadin-confirm-dialog-overlay"}static get template(){return D`
|
|
5982
5983
|
<div part="backdrop" id="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
5983
5984
|
<div part="overlay" id="overlay" tabindex="0">
|
|
5984
5985
|
<section id="resizerContainer" class="resizer-container">
|
|
@@ -5999,7 +6000,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5999
6000
|
</footer>
|
|
6000
6001
|
</section>
|
|
6001
6002
|
</div>
|
|
6002
|
-
`}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}
|
|
6003
|
+
`}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}P(S_);class O_ extends I_(A_(ir(zr(S)))){static get is(){return"vaadin-confirm-dialog-dialog"}static get template(){return D`
|
|
6003
6004
|
<style>
|
|
6004
6005
|
:host {
|
|
6005
6006
|
display: none;
|
|
@@ -6020,15 +6021,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6020
6021
|
restore-focus-on-close
|
|
6021
6022
|
focus-trap
|
|
6022
6023
|
></vaadin-confirm-dialog-overlay>
|
|
6023
|
-
`}}
|
|
6024
|
+
`}}P(O_);/**
|
|
6024
6025
|
* @license
|
|
6025
6026
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
6026
6027
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6027
|
-
*/const
|
|
6028
|
+
*/const M_=i=>class extends i{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new ce(this,"header","h3",{initializer:e=>{this._headerNode=e}}),this.addController(this._headerController),this._messageController=new ce(this,"","div",{multiple:!0,observe:!1,initializer:e=>{const t=document.createElement("div");t.style.display="contents";const r=`confirm-dialog-message-${Qt()}`;t.id=r,this.appendChild(t),t.appendChild(e),this._messageNodes=[...this._messageNodes,t]}}),this.addController(this._messageController),this._cancelController=new ce(this,"cancel-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("cancel",e)}}),this.addController(this._cancelController),this._rejectController=new ce(this,"reject-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("reject",e)}}),this.addController(this._rejectController),this._confirmController=new ce(this,"confirm-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("confirm",e)}}),this.addController(this._confirmController)}_initOverlay(e){e.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),e.addEventListener("vaadin-overlay-open",()=>this.__onDialogOpened()),e.addEventListener("vaadin-overlay-closed",()=>this.__onDialogClosed()),e.setAttribute("role","alertdialog")}__onDialogOpened(){const e=this._overlayElement;this.__slottedNodes.forEach(r=>{e.appendChild(r)});const t=e.querySelector('[slot="confirm-button"]');t&&t.focus()}__onDialogClosed(){this.__slottedNodes.forEach(e=>{this.appendChild(e)}),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(e,t,r){!e||!t||(r!==void 0?ht(e,"aria-describedby",{newId:r,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):t.forEach(o=>{ht(e,"aria-describedby",{newId:o.id})}),this.__oldAccessibleDescriptionRef=r)}__setupSlottedButton(e,t){const r=`_${e}Button`,o=`__${e}`;this[r]&&this[r]!==t&&this[r].remove(),t.addEventListener("click",this[o]),this[r]=t}__updateCancelButton(e,t,r,o){e&&(e===this._cancelController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r)),e.toggleAttribute("hidden",!o))}__updateConfirmButton(e,t,r){e&&e===this._confirmController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r))}__updateHeaderNode(e,t){e&&e===this._headerController.defaultNode&&(e.textContent=t)}__updateMessageNodes(e,t){if(e&&e.length>0){const r=e.find(o=>this._messageController.defaultNode&&o===this._messageController.defaultNode.parentElement);r&&(r.firstChild.textContent=t)}}__updateRejectButton(e,t,r,o){e&&(e===this._rejectController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r)),e.toggleAttribute("hidden",!o))}_escPressed(e){e.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(e){return e||"confirmation"}};/**
|
|
6028
6029
|
* @license
|
|
6029
6030
|
* Copyright (c) 2018 - 2024 Vaadin Ltd.
|
|
6030
6031
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6031
|
-
*/class
|
|
6032
|
+
*/class N_ extends M_(be(zr(Pe(S)))){static get template(){return D`
|
|
6032
6033
|
<style>
|
|
6033
6034
|
:host,
|
|
6034
6035
|
[hidden] {
|
|
@@ -6055,7 +6056,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6055
6056
|
<slot name="reject-button"></slot>
|
|
6056
6057
|
<slot name="confirm-button"></slot>
|
|
6057
6058
|
</div>
|
|
6058
|
-
`}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}
|
|
6059
|
+
`}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}P(N_);y("vaadin-tab",_`
|
|
6059
6060
|
:host {
|
|
6060
6061
|
box-sizing: border-box;
|
|
6061
6062
|
padding: 0.5rem 0.75rem;
|
|
@@ -6292,11 +6293,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6292
6293
|
* @license
|
|
6293
6294
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6294
6295
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6295
|
-
*/const
|
|
6296
|
+
*/const z_=i=>class extends Ws(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()}}};/**
|
|
6296
6297
|
* @license
|
|
6297
6298
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6298
6299
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6299
|
-
*/const
|
|
6300
|
+
*/const L_=_`
|
|
6300
6301
|
:host {
|
|
6301
6302
|
display: block;
|
|
6302
6303
|
}
|
|
@@ -6319,10 +6320,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6319
6320
|
* @license
|
|
6320
6321
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6321
6322
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6322
|
-
*/
|
|
6323
|
+
*/y("vaadin-tab",L_,{moduleId:"vaadin-tab-styles"});class B_ extends be(H(z_(Pe(S)))){static get template(){return D`
|
|
6323
6324
|
<slot></slot>
|
|
6324
6325
|
<slot name="tooltip"></slot>
|
|
6325
|
-
`}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new
|
|
6326
|
+
`}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new Ne(this),this.addController(this._tooltipController)}}P(B_);y("vaadin-tabs",_`
|
|
6326
6327
|
:host {
|
|
6327
6328
|
-webkit-tap-highlight-color: transparent;
|
|
6328
6329
|
}
|
|
@@ -6564,11 +6565,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6564
6565
|
* @license
|
|
6565
6566
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6566
6567
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6567
|
-
*/const
|
|
6568
|
+
*/const F_=i=>class extends $s(Ys(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"),_o(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(),o=[...this.items].reverse().find(s=>this._isItemVisible(s,e,t,r)).getBoundingClientRect(),a=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let n;if(this.__isRTL){const s=r.right-a;n=o.right-s}else{const s=r.left+a;n=o.left-s}-this.__direction*n<1&&(n=-this.__direction*(this._scrollOffset-a)),this._scroll(n)}_scrollBack(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),r=this._scrollerElement.getBoundingClientRect(),o=this.items.find(s=>this._isItemVisible(s,e,t,r)).getBoundingClientRect(),a=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let n;if(this.__isRTL){const s=r.left+a;n=o.left-s}else{const s=r.right-a;n=o.right-s}this.__direction*n<1&&(n=this.__direction*(this._scrollOffset-a)),this._scroll(n)}_isItemVisible(e,t,r,o){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const a=this.__isRTL?r:t,n=this.__isRTL?t:r,s=o.right-a,l=o.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:qs(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,o=>o==="start"?"end":"start")),r?this.setAttribute("overflow",r.trim()):this.removeAttribute("overflow")}};/**
|
|
6568
6569
|
* @license
|
|
6569
6570
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6570
6571
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6571
|
-
*/const
|
|
6572
|
+
*/const V_=_`
|
|
6572
6573
|
:host {
|
|
6573
6574
|
display: flex;
|
|
6574
6575
|
align-items: center;
|
|
@@ -6648,7 +6649,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6648
6649
|
* @license
|
|
6649
6650
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6650
6651
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6651
|
-
*/
|
|
6652
|
+
*/y("vaadin-tabs",V_,{moduleId:"vaadin-tabs-styles"});class R_ extends F_(be(H(S))){static get template(){return D`
|
|
6652
6653
|
<div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
|
|
6653
6654
|
|
|
6654
6655
|
<div id="scroll" part="tabs">
|
|
@@ -6656,7 +6657,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6656
6657
|
</div>
|
|
6657
6658
|
|
|
6658
6659
|
<div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
|
|
6659
|
-
`}static get is(){return"vaadin-tabs"}}R($u);function ts(o,e){d.addMessages(o,e)}function ju(o){d.$locale.set(o)}const os={en:{titleProductRestriction:"Product Restriction",productRestrictionText:"<p>While product-restrictioned, access to your account will be entirely restricted.</br>product-restriction can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a restriction period",selectAPeriod:"Select a period",Casino:"Casino",Sports:"Sports",Virtuals:"Virtuals","6Month":"6 Months","1Year":"1 Year","2Year":"2 Years","5Year":"5 Years",Until:"Until",Permanent:"Permanent",deniedProductText:"Restricted product until {date}",temporaryProductRestriction:"Your product-restriction period will last until the {date} 23:59.",permanentProductRestriction:"Your product-restriction period will be permanent.",confirmationModalTitle:"Product Restriction",productRestrictionSuccess:"Product restrcition active",confirmationModalTextPeriodProductRestriction:"You are choosing to restrict yourself from the following products until {date} / for {period}. </br> {product} </br> This action cannot be reversed once confirmed </br> Please confirm you wish to proceed.",errorProductRestrictionCall:"There was a problem while making the product restriction request.",generalError:"There was an error while fetching the product restriction.",InvalidSession:"The session is exipired."},"zh-hk":{titleProductRestriction:"產品限制",productRestrictionText:"<p>在產品限制期間,您的帳戶訪問將完全受限。</br>產品限制只能在您選擇的期限過後,通過與客戶支持溝通解除,這將需要審查和冷靜期。</br>或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中休息(最多6週)。</br>如果您更願意關閉您的帳戶,您可以通過'<a href='{baseurl}/{lang}/account/account-closure'>帳戶關閉</a>'選項選擇這樣做。</br>我們建議您也閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取更多建議。",productRestrictionEmailText:"電子郵件:<a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"持續時間:",dateInstructions:"為了手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇限制期限",selectAPeriod:"選擇一個期限",Casino:"賭場",Sports:"體育",Virtuals:"虛擬","6Month":"6個月","1Year":"1年","2Year":"2年","5Year":"5年",Until:"直到",Permanent:"永久",deniedProductText:"受限產品直到 {date}",temporaryProductRestriction:"您的產品限制期將持續到 {date} 23:59。",permanentProductRestriction:"您的產品限制期將是永久的。",confirmationModalTitle:"確認",productRestrictionSuccess:"產品限制已激活",confirmationModalTextPeriodProductRestriction:"您選擇將自己限制使用以下產品,直到 {date} / 為期 {period}。 </br> {product} </br> 一旦確認,此操作無法撤銷 </br> 請確認您希望繼續。",errorProductRestrictionCall:"在進行產品限制請求時出現問題。",generalError:"獲取產品限制時出現錯誤。",InvalidSession:"會話已過期。"},fr:{titleProductRestriction:"Restriction de produit",productRestrictionText:"<p>Pendant la restriction de produit, l'accès à votre compte sera entièrement restreint.</br>La restriction de produit ne peut être levée qu'après la période que vous avez sélectionnée en communiquant avec le support client, ce qui sera soumis à une révision et à une période de réflexion.</br>Alternativement, vous pouvez choisir de prendre un 'temps mort' (une pause de jusqu'à 6 semaines) de nos services via l'option '<a href='{baseurl}/{lang}/account/timeout'>Temps mort</a>'.</br>Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br>Nous vous recommandons également de lire nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu responsable</a>' pour plus de conseils si nécessaire.",productRestrictionEmailText:"E-mail : <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durée :",dateInstructions:"Pour entrer manuellement la date, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période de restriction",selectAPeriod:"Sélectionnez une période",Casino:"Casino",Sports:"Sports",Virtuals:"Virtuels","6Month":"6 Mois","1Year":"1 An","2Year":"2 Ans","5Year":"5 Ans",Until:"Jusqu'à",Permanent:"Permanent",deniedProductText:"Produit restreint jusqu'au {date}",temporaryProductRestriction:"Votre période de restriction de produit durera jusqu'à {date} 23:59.",permanentProductRestriction:"Votre période de restriction de produit sera permanente.",confirmationModalTitle:"Confirmation",productRestrictionSuccess:"Restriction de produit active",confirmationModalTextPeriodProductRestriction:"Vous choisissez de vous restreindre des produits suivants jusqu'au {date} / pour {period}. </br> {product} </br> Cette action ne peut pas être annulée une fois confirmée </br> Veuillez confirmer que vous souhaitez continuer.",errorProductRestrictionCall:"Il y a eu un problème lors de la demande de restriction de produit.",generalError:"Il y a eu une erreur lors de la récupération de la restriction de produit.",InvalidSession:"La session a expiré."},ro:{titleProductRestriction:"Restricție de produs",productRestrictionText:"<p>În timpul restricției de produs, accesul la contul dvs. va fi complet restricționat.</br>Restricția de produs poate fi ridicată doar după ce perioada pe care ați selectat-o a trecut, prin comunicarea cu Suportul pentru Clienți, care va fi supusă unei revizuiri și unei perioade de răcire.</br>Alternativ, puteți alege să luați o 'pauză' (o pauză de până la 6 săptămâni) de la serviciile noastre prin opțiunea '<a href='{baseurl}/{lang}/account/timeout'>Pauză</a>'.</br>Dacă preferați doar să vă închideți contul, puteți alege să faceți acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br>Vă recomandăm, de asemenea, să citiți paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc responsabil</a>' pentru sfaturi suplimentare, dacă aveți nevoie.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Durată:",dateInstructions:"Pentru a introduce manual data, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de restricție",selectAPeriod:"Selectați o perioadă",Casino:"Cazinou",Sports:"Sporturi",Virtuals:"Virtuale","6Month":"6 Luni","1Year":"1 An","2Year":"2 Ani","5Year":"5 Ani",Until:"Până la",Permanent:"Permanent",deniedProductText:"Produs restricționat până la {date}",temporaryProductRestriction:"Perioada dvs. de restricție de produs va dura până la {date} 23:59.",permanentProductRestriction:"Perioada dvs. de restricție de produs va fi permanentă.",confirmationModalTitle:"Confirmare",productRestrictionSuccess:"Restricție de produs activă",confirmationModalTextPeriodProductRestriction:"Alegeți să vă restricționați de la următoarele produse până la {date} / pentru {period}. </br> {product} </br> Această acțiune nu poate fi inversată odată confirmată </br> Vă rugăm să confirmați că doriți să continuați.",errorProductRestrictionCall:"A apărut o problemă în timpul solicitării de restricție de produs.",generalError:"A apărut o eroare la preluarea restricției de produs.",InvalidSession:"Sesiunea a expirat."},es:{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriodProductRestriction:"Está eligiendo restringirse de los siguientes productos hasta {date} / por {period}. </br> {product} </br> Esta acción no se puede revertir una vez confirmada </br> Por favor confirme que desea continuar.",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},pt:{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriodProductRestriction:"Você está escolhendo se restringir dos seguintes produtos até {date} / por {period}. </br> {product} </br> Esta ação não pode ser revertida uma vez confirmada </br> Por favor, confirme que deseja continuar.",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},hr:{titleProductRestriction:"Ograničenje proizvoda",productRestrictionText:"<p>Tijekom ograničenja proizvoda, pristup vašem računu bit će potpuno ograničen.</br>Ograničenje proizvoda može se ukinuti tek nakon što prođe razdoblje koje ste odabrali, komunikacijom s korisničkom podrškom, što će biti podložno pregledu i razdoblju hlađenja.</br>Alternativno, možete odabrati 'pauzu' (pauza do 6 tjedana) od naših usluga putem opcije '<a href='{baseurl}/{lang}/account/timeout'>Pauza</a>'.</br>Ako radije želite zatvoriti svoj račun, možete to učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br>Preporučujemo vam da također pročitate naše stranice pomoći '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za daljnje savjete ako vam je potrebno.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje ograničenja",selectAPeriod:"Odaberite razdoblje",Casino:"Kasino",Sports:"Sportovi",Virtuals:"Virtualni","6Month":"6 Mjeseci","1Year":"1 Godina","2Year":"2 Godine","5Year":"5 Godina",Until:"Do",Permanent:"Trajno",deniedProductText:"Ograničeni proizvod do {date}",temporaryProductRestriction:"Vaše razdoblje ograničenja proizvoda trajat će do {date} 23:59.",permanentProductRestriction:"Vaše razdoblje ograničenja proizvoda bit će trajno.",confirmationModalTitle:"Potvrda",productRestrictionSuccess:"Ograničenje proizvoda aktivno",confirmationModalTextPeriodProductRestriction:"Odabirete ograničiti se od sljedećih proizvoda do {date} / za {period}. </br> {product} </br> Ova radnja se ne može poništiti nakon potvrde </br> Molimo potvrdite da želite nastaviti.",errorProductRestrictionCall:"Došlo je do problema prilikom podnošenja zahtjeva za ograničenje proizvoda.",generalError:"Došlo je do pogreške prilikom dohvaćanja ograničenja proizvoda.",InvalidSession:"Sesija je istekla."},"pt-br":{titleProductRestriction:"Restrição de Produto",productRestrictionText:"<p>Enquanto estiver com restrição de produto, o acesso à sua conta será totalmente restrito.</br>A restrição de produto só pode ser levantada após o período que você selecionou ter passado, comunicando-se com o Suporte ao Cliente, o que estará sujeito a revisão e um período de reflexão.</br>Alternativamente, você pode optar por fazer uma 'pausa' (uma pausa de até 6 semanas) de nossos serviços através da opção '<a href='{baseurl}/{lang}/account/timeout'>Pausa</a>'.</br>Se você preferir apenas fechar sua conta, pode optar por fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br>Recomendamos que você também leia nossas páginas de ajuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, se precisar.",productRestrictionEmailText:"E-mail: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duração:",dateInstructions:"Para inserir a data manualmente, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de restrição",selectAPeriod:"Selecione um período",Casino:"Cassino",Sports:"Esportes",Virtuals:"Virtuais","6Month":"6 Meses","1Year":"1 Ano","2Year":"2 Anos","5Year":"5 Anos",Until:"Até",Permanent:"Permanente",deniedProductText:"Produto restrito até {date}",temporaryProductRestriction:"Seu período de restrição de produto durará até {date} 23:59.",permanentProductRestriction:"Seu período de restrição de produto será permanente.",confirmationModalTitle:"Confirmação",productRestrictionSuccess:"Restrição de produto ativa",confirmationModalTextPeriodProductRestriction:"Você está escolhendo se restringir dos seguintes produtos até {date} / por {period}. </br> {product} </br> Esta ação não pode ser revertida uma vez confirmada </br> Por favor, confirme que deseja continuar.",errorProductRestrictionCall:"Houve um problema ao fazer a solicitação de restrição de produto.",generalError:"Houve um erro ao buscar a restrição de produto.",InvalidSession:"A sessão expirou."},"es-mx":{titleProductRestriction:"Restricción de producto",productRestrictionText:"<p>Mientras esté restringido por producto, el acceso a su cuenta estará completamente restringido.</br>La restricción de producto solo se puede levantar después de que haya pasado el período que seleccionó comunicándose con el Soporte al Cliente, lo cual estará sujeto a revisión y un período de enfriamiento.</br>Alternativamente, puede optar por tomarse un 'descanso' (una pausa de hasta 6 semanas) de nuestros servicios a través de la opción '<a href='{baseurl}/{lang}/account/timeout'>Descanso</a>'.</br>Si prefiere simplemente cerrar su cuenta, puede optar por hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de cuenta</a>'.</br>Le recomendamos que también lea nuestras páginas de ayuda '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.",productRestrictionEmailText:"Correo electrónico: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, use el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor seleccione un período de restricción",selectAPeriod:"Seleccione un período",Casino:"Casino",Sports:"Deportes",Virtuals:"Virtuales","6Month":"6 Meses","1Year":"1 Año","2Year":"2 Años","5Year":"5 Años",Until:"Hasta",Permanent:"Permanente",deniedProductText:"Producto restringido hasta {date}",temporaryProductRestriction:"Su período de restricción de producto durará hasta {date} 23:59.",permanentProductRestriction:"Su período de restricción de producto será permanente.",confirmationModalTitle:"Confirmación",productRestrictionSuccess:"Restricción de producto activa",confirmationModalTextPeriodProductRestriction:"Está eligiendo restringirse de los siguientes productos hasta {date} / por {period}. </br> {product} </br> Esta acción no se puede revertir una vez confirmada </br> Por favor confirme que desea continuar.",errorProductRestrictionCall:"Hubo un problema al realizar la solicitud de restricción de producto.",generalError:"Hubo un error al obtener la restricción de producto.",InvalidSession:"La sesión ha expirado."},tr:{titleProductRestriction:"Ürün Kısıtlaması",productRestrictionText:"<p>Ürün kısıtlaması sırasında, hesabınıza erişim tamamen kısıtlanacaktır.</br>Ürün kısıtlaması, yalnızca seçtiğiniz süre geçtikten sonra Müşteri Desteği ile iletişime geçerek kaldırılabilir, bu da inceleme ve soğuma süresine tabi olacaktır.</br>Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Zaman aşımı</a>' seçeneği aracılığıyla hizmetlerimizden 'zaman aşımı' (6 haftaya kadar bir ara) vermeyi seçebilirsiniz.</br>Hesabınızı kapatmayı tercih ederseniz, '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla bunu yapabilirsiniz.</br>İhtiyacınız olursa, daha fazla tavsiye için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Kumar</a>' yardım sayfalarımızı okumanızı öneririz.",productRestrictionEmailText:"E-posta: <a href='mailto:email-address-here@gmail.com'>email-address-here@gmail.com</a>",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için aşağıdaki formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kısıtlama süresi seçin",selectAPeriod:"Bir dönem seçin",Casino:"Kumarhane",Sports:"Sporlar",Virtuals:"Sanal","6Month":"6 Ay","1Year":"1 Yıl","2Year":"2 Yıl","5Year":"5 Yıl",Until:"Kadar",Permanent:"Kalıcı",deniedProductText:"Ürün {date} tarihine kadar kısıtlandı",temporaryProductRestriction:"Ürün kısıtlama süreniz {date} 23:59'a kadar sürecektir.",permanentProductRestriction:"Ürün kısıtlama süreniz kalıcı olacaktır.",confirmationModalTitle:"Onay",productRestrictionSuccess:"Ürün kısıtlaması aktif",confirmationModalTextPeriodProductRestriction:"Aşağıdaki ürünlerden {date} tarihine kadar / {period} süresince kendinizi kısıtlamayı seçiyorsunuz. </br> {product} </br> Bu işlem onaylandıktan sonra geri alınamaz </br> Lütfen devam etmek istediğinizi onaylayın.",errorProductRestrictionCall:"Ürün kısıtlama isteği yapılırken bir sorun oluştu.",generalError:"Ürün kısıtlaması alınırken bir hata oluştu.",InvalidSession:"Oturum süresi doldu."}};function Wu(o){d.append_styles(o,"svelte-1t8brnd",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerProductRestrictionTitleNone{display:none}.ProductRestrictionContainer{border-radius:var(--emw--border-radius-medium, 10px);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));container-type:inline-size}.ProductRestrictionContainer .ProductRestrictionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));padding:50px;border-radius:var(--emw--border-radius-medium, 10px);max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton{display:inline-flex;align-items:center;color:var(--emw--color-gray-300, #58586b);border:none;background-color:transparent;column-gap:10px;margin-bottom:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .MenuReturnButton .PlayerProductRestrictionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .PlayerProductRestrictionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription{color:var(--emw--color-gray-300, #58586b);line-height:24px;min-height:180px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription p{font-size:16px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDescription a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper{width:50%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel p{margin:0;font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon.active{transform:rotateZ(0deg)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586b);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));border-radius:0px 0px var(--emw--border-radius-medium, 10px) var(--emw--border-radius-medium, 10px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transition:all 0.5s ease-in-out;font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown div:hover{color:var(--emw--color-white, #ffffff);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionConfigWrapper .ProductRestrictionDropDown.active{max-height:300px;opacity:1}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper{color:var(--emw--color-gray-300, #58586b);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper .ProductRestrictionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper .ProductRestrictionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification{color:var(--emw--color-gray-300, #58586b);line-height:24px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification .ProductRestrictionDescriptionText p{font-size:16px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionNotification .ProductRestrictionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:5px;color:var(--emw--color-gray-300, #58586b);font-family:inherit}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel .label{font-size:var(--emw--size-standard, 16px)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .ProductRestrictionLabel p{margin:0}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent{display:inherit;flex-direction:row;align-items:center;justify-content:center;background-color:transparent;border:none;cursor:pointer;gap:10px}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox{width:20px;height:20px;padding:2px;margin:2px 0 2px 0;border-radius:100%;position:relative;border:1px solid var(--emw--color-gray-300, #666178)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox [type=checkbox]{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent .toggleCheckbox::before{content:"";width:12.75px;height:12.75px;border-radius:100px;cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .toggleCheckbox{border:1px solid var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .toggleCheckbox::before{background-color:var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductResitrctionTypes .toggleContent.checked .label{color:var(--emw--color-primary, #22b04e)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons{margin-top:40px;width:50%}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--color-primary, #23b04e);border-radius:var(--emw--border-radius-medium, 10px);padding:20px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #ffffff);cursor:pointer;border:none}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave:hover{filter:brightness(0.9)}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionActionButtons .ProductRestrictionSave:disabled{opacity:0.5;cursor:default}.ProductRestrictionContainer .ProductRestrictionWrapper .ProductRestrictionError{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:var(--emw--font-weight-normal, 500)}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .MenuReturnButton{display:none}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .PlayerProductRestrictionTitle{display:block;width:30%;height:20px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionDescription{display:flex;flex-direction:column;gap:10px;width:75%}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionDescription ui-skeleton:last-child{margin-top:30px}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionConfigWrapper{border:none}.ProductRestrictionContainer .ProductRestrictionWrapper.Skeleton .ProductRestrictionNotification{margin-bottom:30px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionDescription .ProductRestrictionDescriptionText{color:var(--emw--color-gray-300, #58586b)}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionConfigWrapper{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionConfigWrapper .ProductRestrictionConfigLabel .ProductRestrictionConfigIcon{width:10px;height:10px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionDateWrapper{width:100%}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionNotification{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionActionButtons{width:100%;grid-template-columns:1fr 1fr}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile .ProductRestrictionActionButtons .ProductRestrictionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile.Skeleton .MenuReturnButton{display:block;width:200px}.ProductRestrictionContainer .ProductRestrictionWrapper.ProductRestrictionWrapperMobile.Skeleton .PlayerProductRestrictionTitle{display:none}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function is(o,e,t){const i=o.slice();return i[75]=e[t],i[77]=t,i}function rs(o,e,t){const i=o.slice();return i[78]=e[t],i}function qu(o,e,t){const i=o.slice();return i[70]=e[t],i}function Uu(o,e,t){const i=o.slice();return i[70]=e[t],i}function Yu(o){let e,t,i,r,s=o[24]("titleProductRestriction")+"",a,n,l,c,h=o[24]("productRestrictionText",{values:{baseurl:o[1],lang:o[0]}})+"",u,_,p=o[24]("productRestrictionEmailText")+"",x,P,A,B,N=o[24](`${o[15]}`)+"",L,ee,H,I,he,oe,le,G,D,de,fe,k,b,f,y,v=o[24]("save")+"",S,E,M,W,Y,J,X,Ce,te=o[26]&&Gu(o),ue=d.ensure_array_like(o[9]),K=[];for(let w=0;w<ue.length;w+=1)K[w]=ss(rs(o,ue,w));let j=o[19]&&as(o);function pe(w,q){return w[18]?Zu:w[14]?Ju:Xu}let we=pe(o),ie=we(o),Ie=d.ensure_array_like(o[10]),re=[];for(let w=0;w<Ie.length;w+=1)re[w]=ls(is(o,Ie,w));let ae=o[23]&&ds(o),ke=o[27]&&Qu(o);return{c(){e=d.element("div"),t=d.element("div"),te&&te.c(),i=d.space(),r=d.element("h2"),a=d.text(s),n=d.space(),l=d.element("div"),c=d.element("p"),u=d.space(),_=d.element("p"),x=d.space(),P=d.element("div"),A=d.element("div"),B=d.element("p"),L=d.text(N),ee=d.space(),H=d.svg_element("svg"),I=d.svg_element("g"),he=d.svg_element("path"),oe=d.space(),le=d.element("div");for(let w=0;w<K.length;w+=1)K[w].c();G=d.space(),j&&j.c(),D=d.space(),de=d.element("div"),ie.c(),fe=d.space(),k=d.element("div");for(let w=0;w<re.length;w+=1)re[w].c();b=d.space(),f=d.element("div"),y=d.element("button"),S=d.text(v),W=d.space(),ae&&ae.c(),Y=d.space(),ke&&ke.c(),J=d.empty(),d.attr(r,"class","PlayerProductRestrictionTitle "+(o[26]?"PlayerProductRestrictionTitleNone":"")),d.attr(c,"class","ProductRestrictionDescriptionText"),d.attr(_,"class","ProductRestrictionDescriptionText"),d.attr(l,"class","ProductRestrictionDescription "+(o[26]?"ProductRestrictionDescriptionMobile":"")),d.attr(he,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),d.attr(he,"stroke-linecap","round"),d.attr(H,"xmlns","http://www.w3.org/2000/svg"),d.attr(H,"xmlns:xlink","http://www.w3.org/1999/xlink"),d.attr(H,"version","1.1"),d.attr(H,"viewBox","0 0 100 100"),d.attr(H,"xml:space","preserve"),d.attr(H,"class","ProductRestrictionConfigIcon"),d.toggle_class(H,"active",o[21]),d.attr(A,"class","ProductRestrictionConfigLabel"),d.attr(le,"class","ProductRestrictionDropDown"),d.toggle_class(le,"active",o[21]),d.attr(P,"class","ProductRestrictionConfigWrapper"),d.toggle_class(P,"active",o[21]),d.attr(de,"class","ProductRestrictionNotification"),d.attr(k,"class","ProductResitrctionTypes"),d.attr(y,"class",E="ProductRestrictionSave "+(o[20]?"active":"")),y.disabled=M=!o[20],d.attr(f,"class","ProductRestrictionActionButtons"),d.attr(t,"class","ProductRestrictionWrapper "+(o[26]?"ProductRestrictionWrapperMobile":"")),d.attr(e,"class","ProductRestrictionContainer")},m(w,q){d.insert(w,e,q),d.append(e,t),te&&te.m(t,null),d.append(t,i),d.append(t,r),d.append(r,a),d.append(t,n),d.append(t,l),d.append(l,c),c.innerHTML=h,d.append(l,u),d.append(l,_),_.innerHTML=p,d.append(t,x),d.append(t,P),d.append(P,A),d.append(A,B),d.append(B,L),d.append(A,ee),d.append(A,H),d.append(H,I),d.append(I,he),d.append(P,oe),d.append(P,le);for(let O=0;O<K.length;O+=1)K[O]&&K[O].m(le,null);d.append(t,G),j&&j.m(t,null),d.append(t,D),d.append(t,de),ie.m(de,null),d.append(t,fe),d.append(t,k);for(let O=0;O<re.length;O+=1)re[O]&&re[O].m(k,null);d.append(t,b),d.append(t,f),d.append(f,y),d.append(y,S),d.append(t,W),ae&&ae.m(t,null),d.insert(w,Y,q),ke&&ke.m(w,q),d.insert(w,J,q),X||(Ce=[d.listen(A,"click",o[44]),d.listen(y,"click",o[48])],X=!0)},p(w,q){if(w[26]&&te.p(w,q),q[0]&16777216&&s!==(s=w[24]("titleProductRestriction")+"")&&d.set_data(a,s),q[0]&16777219&&h!==(h=w[24]("productRestrictionText",{values:{baseurl:w[1],lang:w[0]}})+"")&&(c.innerHTML=h),q[0]&16777216&&p!==(p=w[24]("productRestrictionEmailText")+"")&&(_.innerHTML=p),q[0]&16809984&&N!==(N=w[24](`${w[15]}`)+"")&&d.set_data(L,N),q[0]&2097152&&d.toggle_class(H,"active",w[21]),q[0]&512|q[1]&1){ue=d.ensure_array_like(w[9]);let O;for(O=0;O<ue.length;O+=1){const Me=rs(w,ue,O);K[O]?K[O].p(Me,q):(K[O]=ss(Me),K[O].c(),K[O].m(le,null))}for(;O<K.length;O+=1)K[O].d(1);K.length=ue.length}if(q[0]&2097152&&d.toggle_class(le,"active",w[21]),q[0]&2097152&&d.toggle_class(P,"active",w[21]),w[19]?j?j.p(w,q):(j=as(w),j.c(),j.m(t,D)):j&&(j.d(1),j=null),we===(we=pe(w))&&ie?ie.p(w,q):(ie.d(1),ie=we(w),ie&&(ie.c(),ie.m(de,null))),q[0]&822084608|q[1]&8){Ie=d.ensure_array_like(w[10]);let O;for(O=0;O<Ie.length;O+=1){const Me=is(w,Ie,O);re[O]?re[O].p(Me,q):(re[O]=ls(Me),re[O].c(),re[O].m(k,null))}for(;O<re.length;O+=1)re[O].d(1);re.length=Ie.length}q[0]&16777216&&v!==(v=w[24]("save")+"")&&d.set_data(S,v),q[0]&1048576&&E!==(E="ProductRestrictionSave "+(w[20]?"active":""))&&d.attr(y,"class",E),q[0]&1048576&&M!==(M=!w[20])&&(y.disabled=M),w[23]?ae?ae.p(w,q):(ae=ds(w),ae.c(),ae.m(t,null)):ae&&(ae.d(1),ae=null),w[27]&&ke.p(w,q)},d(w){w&&(d.detach(e),d.detach(Y),d.detach(J)),te&&te.d(),d.destroy_each(K,w),j&&j.d(),ie.d(),d.destroy_each(re,w),ae&&ae.d(),ke&&ke.d(w),X=!1,d.run_all(Ce)}}}function Ku(o){let e,t,i,r,s,a,n,l,c,h,u,_,p,x;function P(I,he){return I[26]?tp:ep}let B=P(o)(o),N=d.ensure_array_like({length:3}),L=[];for(let I=0;I<N.length;I+=1)L[I]=op(Uu(o,N,I));let ee=d.ensure_array_like({length:3}),H=[];for(let I=0;I<ee.length;I+=1)H[I]=ip(qu(o,ee,I));return{c(){e=d.element("div"),t=d.element("div"),B.c(),i=d.space(),r=d.element("div");for(let I=0;I<L.length;I+=1)L[I].c();s=d.space(),a=d.element("ui-skeleton"),n=d.space(),l=d.element("div"),l.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',c=d.space(),h=d.element("div"),h.innerHTML='<ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton>',u=d.space(),_=d.element("div");for(let I=0;I<H.length;I+=1)H[I].c();p=d.space(),x=d.element("div"),x.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="40px"></ui-skeleton>',d.set_custom_element_data(a,"structure","text"),d.set_custom_element_data(a,"width","auto"),d.set_custom_element_data(a,"height","10px"),d.attr(r,"class","ProductRestrictionDescription"),d.attr(l,"class","ProductRestrictionConfigWrapper"),d.attr(h,"class","ProductRestrictionNotification"),d.attr(_,"class","ProductResitrctionTypes"),d.attr(x,"class","ProductRestrictionActionButtons"),d.attr(t,"class","ProductRestrictionWrapper Skeleton "+(o[26]?"ProductRestrictionWrapperMobile":"")),d.attr(e,"class","ProductRestrictionContainer")},m(I,he){d.insert(I,e,he),d.append(e,t),B.m(t,null),d.append(t,i),d.append(t,r);for(let oe=0;oe<L.length;oe+=1)L[oe]&&L[oe].m(r,null);d.append(r,s),d.append(r,a),d.append(t,n),d.append(t,l),d.append(t,c),d.append(t,h),d.append(t,u),d.append(t,_);for(let oe=0;oe<H.length;oe+=1)H[oe]&&H[oe].m(_,null);d.append(t,p),d.append(t,x)},p:d.noop,d(I){I&&d.detach(e),B.d(),d.destroy_each(L,I),d.destroy_each(H,I)}}}function Gu(o){let e,t,i,r,s,a,n,l,c,h,u=o[24]("titleProductRestriction")+"",_,p,x;return{c(){e=d.element("button"),t=d.svg_element("svg"),i=d.svg_element("defs"),r=d.svg_element("style"),s=d.text(`.svgClass {
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
`),a=d.svg_element("g"),n=d.svg_element("g"),l=d.svg_element("path"),c=d.space(),h=d.element("h2"),_=d.text(u),d.attr(l,"class","svgClass"),d.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),d.attr(l,"transform","translate(15 15) rotate(180)"),d.attr(n,"transform","translate(20 158)"),d.attr(a,"transform","translate(-20 -158)"),d.attr(t,"xmlns","http://www.w3.org/2000/svg"),d.attr(t,"width","15"),d.attr(t,"height","15"),d.attr(t,"viewBox","0 0 15 15"),d.attr(h,"class","PlayerProductRestrictionTitleMobile"),d.attr(e,"class","MenuReturnButton")},m(P,A){d.insert(P,e,A),d.append(e,t),d.append(t,i),d.append(i,r),d.append(r,s),d.append(t,a),d.append(a,n),d.append(n,l),d.append(e,c),d.append(e,h),d.append(h,_),p||(x=d.listen(e,"click",o[43]),p=!0)},p(P,A){A[0]&16777216&&u!==(u=P[24]("titleProductRestriction")+"")&&d.set_data(_,u)},d(P){P&&d.detach(e),p=!1,x()}}}function ss(o){let e,t=o[78].text+"",i,r,s;function a(){return o[45](o[78])}return{c(){e=d.element("div"),i=d.text(t)},m(n,l){d.insert(n,e,l),d.append(e,i),r||(s=d.listen(e,"click",a),r=!0)},p(n,l){o=n,l[0]&512&&t!==(t=o[78].text+"")&&d.set_data(i,t)},d(n){n&&d.detach(e),r=!1,s()}}}function as(o){let e,t,i=o[24]("duration")+"",r,s,a,n=o[24]("dateInstructions")+"",l,c,h,u,_,p,x;return{c(){e=d.element("div"),t=d.element("label"),r=d.text(i),s=d.space(),a=d.element("span"),l=d.text(n),c=d.space(),h=d.element("strong"),u=d.text(o[25]),_=d.element("strong"),p=d.space(),x=d.element("vaadin-date-picker"),d.attr(t,"for","ProductRestrictionDate"),d.attr(a,"class","ProductRestrictionDateInstructions"),d.set_custom_element_data(x,"min",o[11]),d.set_custom_element_data(x,"max",o[12]),d.set_custom_element_data(x,"value",o[11]),d.attr(e,"class","ProductRestrictionDateWrapper")},m(P,A){d.insert(P,e,A),d.append(e,t),d.append(t,r),d.append(e,s),d.append(e,a),d.append(a,l),d.append(a,c),d.append(a,h),d.append(h,u),d.append(h,_),d.append(e,p),d.append(e,x),o[46](x)},p(P,A){A[0]&16777216&&i!==(i=P[24]("duration")+"")&&d.set_data(r,i),A[0]&16777216&&n!==(n=P[24]("dateInstructions")+"")&&d.set_data(l,n),A[0]&2048&&d.set_custom_element_data(x,"min",P[11]),A[0]&4096&&d.set_custom_element_data(x,"max",P[12]),A[0]&2048&&d.set_custom_element_data(x,"value",P[11])},d(P){P&&d.detach(e),o[46](null)}}}function Ju(o){let e,t,i=o[24]("temporaryProductRestriction",{values:{date:o[13]}})+"",r;return{c(){e=d.element("p"),t=d.element("strong"),r=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,a){d.insert(s,e,a),d.append(e,t),d.append(t,r)},p(s,a){a[0]&16785408&&i!==(i=s[24]("temporaryProductRestriction",{values:{date:s[13]}})+"")&&d.set_data(r,i)},d(s){s&&d.detach(e)}}}function Xu(o){let e,t,i=o[24]("noPeriodSelected")+"",r;return{c(){e=d.element("p"),t=d.element("strong"),r=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,a){d.insert(s,e,a),d.append(e,t),d.append(t,r)},p(s,a){a[0]&16777216&&i!==(i=s[24]("noPeriodSelected")+"")&&d.set_data(r,i)},d(s){s&&d.detach(e)}}}function Zu(o){let e,t,i=o[24]("permanentProductRestriction")+"",r;return{c(){e=d.element("p"),t=d.element("strong"),r=d.text(i),d.attr(e,"class","ProductRestrictionDescriptionText")},m(s,a){d.insert(s,e,a),d.append(e,t),d.append(t,r)},p(s,a){a[0]&16777216&&i!==(i=s[24]("permanentProductRestriction")+"")&&d.set_data(r,i)},d(s){s&&d.detach(e)}}}function ns(o){let e,t=o[24]("deniedProductText",{values:{date:o[34](o[75])}})+"",i;return{c(){e=d.element("p"),i=d.text(t)},m(r,s){d.insert(r,e,s),d.append(e,i)},p(r,s){s[0]&16778240&&t!==(t=r[24]("deniedProductText",{values:{date:r[34](r[75])}})+"")&&d.set_data(i,t)},d(r){r&&d.detach(e)}}}function ls(o){let e,t,i,r,s,a=o[28](o[75])+"",n,l,c,h,u,_,p=o[75].restricted&&ns(o);function x(){return o[47](o[77])}return{c(){e=d.element("button"),t=d.element("div"),t.innerHTML='<input type="checkbox"/> <span class="circle"></span>',i=d.space(),r=d.element("div"),s=d.element("p"),n=d.text(a),l=d.space(),p&&p.c(),c=d.space(),d.attr(t,"class","toggleCheckbox"),d.attr(s,"class","label"),d.attr(r,"class","ProductRestrictionLabel"),d.attr(e,"class",h="toggleContent "+(o[75].checked||o[75].restricted?"checked":""))},m(P,A){d.insert(P,e,A),d.append(e,t),d.append(e,i),d.append(e,r),d.append(r,s),d.append(s,n),d.append(r,l),p&&p.m(r,null),d.append(e,c),u||(_=d.listen(e,"click",x),u=!0)},p(P,A){o=P,A[0]&1024&&a!==(a=o[28](o[75])+"")&&d.set_data(n,a),o[75].restricted?p?p.p(o,A):(p=ns(o),p.c(),p.m(r,null)):p&&(p.d(1),p=null),A[0]&1024&&h!==(h="toggleContent "+(o[75].checked||o[75].restricted?"checked":""))&&d.attr(e,"class",h)},d(P){P&&d.detach(e),p&&p.d(),u=!1,_()}}}function ds(o){let e,t,i;return{c(){e=d.element("div"),t=d.element("p"),i=d.text(o[17]),d.attr(e,"class","ProductRestrictionError")},m(r,s){d.insert(r,e,s),d.append(e,t),d.append(t,i)},p(r,s){s[0]&131072&&d.set_data(i,r[17])},d(r){r&&d.detach(e)}}}function Qu(o){let e,t,i,r;return{c(){e=d.element("player-account-modal"),t=d.element("player-account-general-confirmation-modal"),d.set_custom_element_data(t,"modaltitle",i=o[24]("confirmationModalTitle")),d.set_custom_element_data(t,"modaltext",o[16]),d.set_custom_element_data(t,"hascancelbutton",r=o[2]==="true"),d.set_custom_element_data(t,"modalconfirmevent","setProductRestriction"),d.set_custom_element_data(t,"mbsource",o[5]),d.set_custom_element_data(t,"lang",o[0]),d.set_custom_element_data(e,"clientstyling",o[3]),d.set_custom_element_data(e,"clientstylingurl",o[4]),d.set_custom_element_data(e,"mbsource",o[5]),d.set_custom_element_data(e,"showmodaleventname","ShowProductRestrictionConfirmationModal")},m(s,a){d.insert(s,e,a),d.append(e,t),o[49](t)},p(s,a){a[0]&16777216&&i!==(i=s[24]("confirmationModalTitle"))&&d.set_custom_element_data(t,"modaltitle",i),a[0]&65536&&d.set_custom_element_data(t,"modaltext",s[16]),a[0]&4&&r!==(r=s[2]==="true")&&d.set_custom_element_data(t,"hascancelbutton",r),a[0]&32&&d.set_custom_element_data(t,"mbsource",s[5]),a[0]&1&&d.set_custom_element_data(t,"lang",s[0]),a[0]&8&&d.set_custom_element_data(e,"clientstyling",s[3]),a[0]&16&&d.set_custom_element_data(e,"clientstylingurl",s[4]),a[0]&32&&d.set_custom_element_data(e,"mbsource",s[5])},d(s){s&&d.detach(e),o[49](null)}}}function ep(o){let e;return{c(){e=d.element("h2"),e.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',d.attr(e,"class","PlayerProductRestrictionTitle")},m(t,i){d.insert(t,e,i)},d(t){t&&d.detach(e)}}}function tp(o){let e;return{c(){e=d.element("div"),e.innerHTML='<ui-skeleton structure="title" width="auto" height="20px"></ui-skeleton>',d.attr(e,"class","MenuReturnButton")},m(t,i){d.insert(t,e,i)},d(t){t&&d.detach(e)}}}function op(o){let e,t,i;return{c(){e=d.element("ui-skeleton"),t=d.space(),i=d.element("ui-skeleton"),d.set_custom_element_data(e,"structure","text"),d.set_custom_element_data(e,"width","auto"),d.set_custom_element_data(e,"height","10px"),d.set_custom_element_data(i,"structure","title"),d.set_custom_element_data(i,"width","auto"),d.set_custom_element_data(i,"height","10px")},m(r,s){d.insert(r,e,s),d.insert(r,t,s),d.insert(r,i,s)},p:d.noop,d(r){r&&(d.detach(e),d.detach(t),d.detach(i))}}}function ip(o){let e;return{c(){e=d.element("div"),e.innerHTML='<ui-skeleton structure="circle" size="20px"></ui-skeleton> <div class="label"><ui-skeleton structure="text" width="auto" height="10px"></ui-skeleton></div> ',d.attr(e,"class","toggleContent")},m(t,i){d.insert(t,e,i)},p:d.noop,d(t){t&&d.detach(e)}}}function rp(o){let e;function t(s,a){return s[22]?Ku:Yu}let i=t(o),r=i(o);return{c(){e=d.element("div"),r.c()},m(s,a){d.insert(s,e,a),r.m(e,null),o[50](e)},p(s,a){i===(i=t(s))&&r?r.p(s,a):(r.d(1),r=i(s),r&&(r.c(),r.m(e,null)))},i:d.noop,o:d.noop,d(s){s&&d.detach(e),r.d(),o[50](null)}}}function sp(o,e,t){let i;d.component_subscribe(o,d.$format,m=>t(24,i=m));let{endpoint:r=""}=e,{session:s=""}=e,{playerid:a=""}=e,{lang:n="en"}=e,{baseurl:l=""}=e,{mergeproducts:c="Casino+Virtuals"}=e,{hideproducts:h=""}=e,{hasconfirmationmodal:u="false"}=e,{hascancelbutton:_=""}=e,{dateformat:p="DD/MM/YYYY"}=e,{clientstyling:x=""}=e,{clientstylingurl:P=""}=e,{mbsource:A}=e,{translationurl:B=""}=e,N,L,ee=[],H={},I=[],he=p.toUpperCase(),oe=window.navigator.userAgent,le,G,D="",de="",fe="selectAPeriod",k="",b="",f="",y=d.getDevice(oe)!=="PC",v=!1,S=!1,E=!1,M=!1,W=u==="true",Y=!0,J=!1,X;const Ce=()=>{fetch(B).then(z=>z.json()).then(z=>{Object.keys(z).forEach(T=>{ts(T,z[T])})}).catch(z=>{console.log(z)})};Object.keys(os).forEach(m=>{ts(m,os[m])});const te=m=>tr(this,null,function*(){var z;if(m.status>=300)return t(23,J=!0),b=(z=(yield m.json()).thirdPartyResponse)==null?void 0:z.errorCode,t(17,f=i(b||"generalError")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:f}},window.location.href),Promise.reject(f);if(t(23,J=!1),m.headers.get("content-type")){let T=yield m.json();return Promise.resolve(T)}return Promise.resolve()}),ue=()=>{t(20,E=de&&I.some(m=>m.checked)),W&&E&&O()},K=m=>{if(!c)return m;const z=c.split(","),T=[],Q=new Set;for(const Se of m){if(Q.has(Se))continue;const Ne=z.find(ve=>ve.includes(Se));Ne?(Ne.split("+").forEach(ve=>Q.add(ve)),T.push(Ne)):T.push(Se)}return T},j=m=>{const z=Object.keys(m).filter(Q=>!h.includes(Q));let T=K(z);t(10,I=T.map(Q=>({type:Q,checked:!1,restricted:!1})))},pe=m=>{var z;return(z=m.type)==null?void 0:z.split("+").map(T=>i(T)).join(" + ")},we=m=>{t(9,ee=m.map(z=>({key:(z.number||"")+z.unit,text:i((z.number||"")+z.unit)})))},ie=m=>{I[m].restricted||(t(10,I[m].checked=!I[m].checked,I),ue())},Ie=()=>{t(21,M=!M)},re=m=>{switch(t(14,de=m.text),t(15,fe=m.key),t(21,M=!1),t(18,v=!1),t(19,S=!1),fe){case"Until":t(19,S=!0),t(11,le=je().add(6,"M").format("YYYY-MM-DD")),t(12,G=je().add(5,"y").format("YYYY-MM-DD")),t(13,D=le);break;case"Permanent":t(18,v=!v);break;default:const z=fe.match(/\d+/g)[0],T=fe.match(/[a-zA-Z]+/g)[0],Q=T.includes("Day")?"days":T.includes("Month")?"months":T.includes("Year")?"years":null;if(!T)return;t(13,D=ae(je().add(Number(z),Q)));break}ue()},ae=m=>je(m).format(he),ke=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:y},window.location.href)},w=m=>{t(13,D=m.target.value)},q=()=>{L.addEventListener("change",w,!1);const m=T=>je(new Date(T.year,T.month,T.day)).format(he),z=T=>{const Q=je(T,he);return{year:Q.year(),month:Q.month(),day:Q.date()}};t(7,L.i18n=er(Qi({},L.i18n),{formatDate:m,parseDate:z}),L)},O=()=>{if(!W||!de||!D){t(16,k="");return}let m="";I.forEach(z=>{!z.checked||z.restricted||(m=m?`${m}, ${pe(z)}`:`${pe(z)}`)}),t(16,k=i("confirmationModalTextPeriodProductRestriction",{values:{period:i(de),product:m,date:D}}))},Me=m=>{m.preventDefault(),W?window.postMessage({type:"ShowProductRestrictionConfirmationModal"},window.location.href):Eo()},Ji=()=>{const m=new URL("/api/v1/gm/legislation/responsible-gambling/product-restrictions/metadata/",r);fetch(m,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(T=>te(T)).then(T=>{j(T.products),we(T.periods),Qa()}).catch(T=>{console.error(T)}).finally(()=>{t(22,Y=!1)})},Qa=()=>{const m=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${a}/deny-products/`,r);fetch(m,{method:"GET",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"}}).then(T=>te(T)).then(T=>{T.denyProductsRoles.forEach(Q=>{let Se=I.findIndex(Ne=>{var ve;return c?(ve=Ne.type)==null?void 0:ve.split("+").some(un=>un===Q.productType):Q.productType===Ne.type});Se!=-1&&t(10,I[Se].restricted=!0,I),H[Q.productType]=ae(Q.expirationDate)})}).catch(T=>{console.error(T)}).finally(()=>{t(22,Y=!1)})},en=m=>{if(!c)return H[m.type];if(m.type.includes("+")){const z=m.type.split("+");return H[z[0]]}else return H[m.type]},tn=m=>{const z=m.filter(T=>T.checked);return c?z.reduce((T,Q)=>[...T,...Q.type.split("+")],[]):z.map(T=>T.type)},Eo=()=>{t(22,Y=!0);const m=new URL(`/api/v1/gm/legislation/responsible-gambling/user/${a}/deny-products/`,r);let z=fe.match(/\d+/g)[0],T=fe.match(/[a-zA-Z]+/g)[0],Se=tn(I).map(ve=>({productType:ve,expirationPeriod:{unit:T,number:z}})),Ne={method:"POST",headers:{"X-SessionId":s,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({denyProductsRoles:Se})};fetch(m.href,Ne).then(ve=>te(ve)).then(ve=>{Ji(),window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("productRestrictionSuccess")}},window.location.href),t(20,E=!1)}).catch(ve=>{console.error(i("errorProductRestrictionCall"),ve)}).finally(()=>{t(22,Y=!1)})};d.onMount(()=>()=>{L&&L.removeEventListener("change",w),X.removeEventListener("setProductRestriction",Eo)});const on=()=>{ju(n)},rn=()=>ke(),sn=()=>Ie(),an=m=>re(m);function nn(m){d.binding_callbacks[m?"unshift":"push"](()=>{L=m,t(7,L)})}const ln=m=>ie(m),dn=m=>Me(m);function cn(m){d.binding_callbacks[m?"unshift":"push"](()=>{X=m,t(8,X)})}function hn(m){d.binding_callbacks[m?"unshift":"push"](()=>{N=m,t(6,N)})}return o.$$set=m=>{"endpoint"in m&&t(35,r=m.endpoint),"session"in m&&t(36,s=m.session),"playerid"in m&&t(37,a=m.playerid),"lang"in m&&t(0,n=m.lang),"baseurl"in m&&t(1,l=m.baseurl),"mergeproducts"in m&&t(38,c=m.mergeproducts),"hideproducts"in m&&t(39,h=m.hideproducts),"hasconfirmationmodal"in m&&t(40,u=m.hasconfirmationmodal),"hascancelbutton"in m&&t(2,_=m.hascancelbutton),"dateformat"in m&&t(41,p=m.dateformat),"clientstyling"in m&&t(3,x=m.clientstyling),"clientstylingurl"in m&&t(4,P=m.clientstylingurl),"mbsource"in m&&t(5,A=m.mbsource),"translationurl"in m&&t(42,B=m.translationurl)},o.$$.update=()=>{o.$$.dirty[0]&1&&n&&on(),o.$$.dirty[1]&112&&r&&s&&a&&Ji(),o.$$.dirty[0]&128&&L&&q(),o.$$.dirty[0]&72&&x&&N&&d.setClientStyling(N,x),o.$$.dirty[0]&80&&P&&N&&d.setClientStylingURL(N,P),o.$$.dirty[0]&96&&A&&N&&d.setStreamStyling(N,`${A}.Style`),o.$$.dirty[1]&2048&&B&&Ce(),o.$$.dirty[0]&256&&X&&X.addEventListener("setProductRestriction",Eo)},W&&O(),[n,l,_,x,P,A,N,L,X,ee,I,le,G,D,de,fe,k,f,v,S,E,M,Y,J,i,he,y,W,pe,ie,Ie,re,ke,Me,en,r,s,a,c,h,u,p,B,rn,sn,an,nn,ln,dn,cn,hn]}class Za extends d.SvelteComponent{constructor(e){super(),d.init(this,e,sp,rp,d.safe_not_equal,{endpoint:35,session:36,playerid:37,lang:0,baseurl:1,mergeproducts:38,hideproducts:39,hasconfirmationmodal:40,hascancelbutton:2,dateformat:41,clientstyling:3,clientstylingurl:4,mbsource:5,translationurl:42},Wu,[-1,-1,-1])}get endpoint(){return this.$$.ctx[35]}set endpoint(e){this.$$set({endpoint:e}),d.flush()}get session(){return this.$$.ctx[36]}set session(e){this.$$set({session:e}),d.flush()}get playerid(){return this.$$.ctx[37]}set playerid(e){this.$$set({playerid:e}),d.flush()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),d.flush()}get baseurl(){return this.$$.ctx[1]}set baseurl(e){this.$$set({baseurl:e}),d.flush()}get mergeproducts(){return this.$$.ctx[38]}set mergeproducts(e){this.$$set({mergeproducts:e}),d.flush()}get hideproducts(){return this.$$.ctx[39]}set hideproducts(e){this.$$set({hideproducts:e}),d.flush()}get hasconfirmationmodal(){return this.$$.ctx[40]}set hasconfirmationmodal(e){this.$$set({hasconfirmationmodal:e}),d.flush()}get hascancelbutton(){return this.$$.ctx[2]}set hascancelbutton(e){this.$$set({hascancelbutton:e}),d.flush()}get dateformat(){return this.$$.ctx[41]}set dateformat(e){this.$$set({dateformat:e}),d.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),d.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d.flush()}get mbsource(){return this.$$.ctx[5]}set mbsource(e){this.$$set({mbsource:e}),d.flush()}get translationurl(){return this.$$.ctx[42]}set translationurl(e){this.$$set({translationurl:e}),d.flush()}}d.create_custom_element(Za,{endpoint:{},session:{},playerid:{},lang:{},baseurl:{},mergeproducts:{},hideproducts:{},hasconfirmationmodal:{},hascancelbutton:{},dateformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);const ap=Object.freeze(Object.defineProperty({__proto__:null,default:Za},Symbol.toStringTag,{value:"Module"}));exports.PlayerAccountProductRestriction_ce=ap;exports.dayjs=je;
|
|
6660
|
+
`}static get is(){return"vaadin-tabs"}}P(R_);function H_(i){c.append_styles(i,"svelte-18j72sv",'.BonusesWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--color-typography-cotrast, #444444);padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.BonusesTitleMobile{font-size:var(--emw--size-standard, 16px)}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-large, 10px)}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.BonusesCalendarStartDate input,.BonusesCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesCalendarFilter{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 10px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;outline:none}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesCalendarFilter:disabled{background-image:none;background-color:var(--emw--button-disabled-text-color, #cccccc);color:var(--emw--button-disabled-text-color, #666);cursor:not-allowed;opacity:0.7;pointer-events:none;border:2px solid var(--emw--button-disabled-border-color, #aaaaaa)}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px;border-radius:var(--emw--border-radius-large, 10px)}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:block;line-break:anywhere;line-height:2em}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;font-weight:var(--emw--font-weight-bold, 700)}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-typography-cotrast, #444444);font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:var(--emw--font-weight-bold, 700)}.ModalLoader{width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function Va(i,e,t){const r=i.slice();return r[57]=e[t],r[59]=t,r}function Ra(i,e,t){const r=i.slice();return r[60]=e[t],r}function $_(i){let e,t,r,o,a,n,s,l,d,u,h=i[26]("titleBonusesHistory")+"",p,m,b;return{c(){e=c.element("div"),t=c.svg_element("svg"),r=c.svg_element("defs"),o=c.svg_element("style"),a=c.text(`.aaa {
|
|
6661
|
+
fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
|
|
6662
|
+
}
|
|
6663
|
+
`),n=c.svg_element("g"),s=c.svg_element("g"),l=c.svg_element("path"),d=c.space(),u=c.element("h2"),p=c.text(h),c.attr(l,"class","aaa"),c.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),c.attr(l,"transform","translate(15 15) rotate(180)"),c.attr(s,"transform","translate(20 158)"),c.attr(n,"transform","translate(-20 -158)"),c.attr(t,"xmlns","http://www.w3.org/2000/svg"),c.attr(t,"width","15"),c.attr(t,"height","15"),c.attr(t,"viewBox","0 0 15 15"),c.attr(u,"class","BonusesTitleMobile"),c.attr(e,"class","MenuReturnButton")},m(w,x){c.insert(w,e,x),c.append(e,t),c.append(t,r),c.append(r,o),c.append(o,a),c.append(t,n),c.append(n,s),c.append(s,l),c.append(e,d),c.append(e,u),c.append(u,p),m||(b=c.listen(e,"click",i[35]),m=!0)},p(w,x){x[0]&67108864&&h!==(h=w[26]("titleBonusesHistory")+"")&&c.set_data(p,h)},d(w){w&&c.detach(e),m=!1,b()}}}function U_(i){let e,t,r;function o(l,d){return l[22].length===0?Y_:q_}let a=o(i),n=a(i),s=i[22].length!==0&&$a(i);return{c(){e=c.element("div"),n.c(),t=c.space(),s&&s.c(),r=c.empty(),c.attr(e,"class","BonusesGrid "+(i[27]?"BonusesGridMobile":""))},m(l,d){c.insert(l,e,d),n.m(e,null),c.insert(l,t,d),s&&s.m(l,d),c.insert(l,r,d)},p(l,d){a===(a=o(l))&&n?n.p(l,d):(n.d(1),n=a(l),n&&(n.c(),n.m(e,null))),l[22].length!==0?s?s.p(l,d):(s=$a(l),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},d(l){l&&(c.detach(e),c.detach(t),c.detach(r)),n.d(),s&&s.d(l)}}}function W_(i){let e;return{c(){e=c.element("div"),c.attr(e,"class","ModalLoader")},m(t,r){c.insert(t,e,r)},p:c.noop,d(t){t&&c.detach(e)}}}function q_(i){let e,t=c.ensure_array_like(i[22]),r=[];for(let o=0;o<t.length;o+=1)r[o]=Ha(Ra(i,t,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();e=c.empty()},m(o,a){for(let n=0;n<r.length;n+=1)r[n]&&r[n].m(o,a);c.insert(o,e,a)},p(o,a){if(a[0]&62914975){t=c.ensure_array_like(o[22]);let n;for(n=0;n<t.length;n+=1){const s=Ra(o,t,n);r[n]?r[n].p(s,a):(r[n]=Ha(s),r[n].c(),r[n].m(e.parentNode,e))}for(;n<r.length;n+=1)r[n].d(1);r.length=t.length}},d(o){o&&c.detach(e),c.destroy_each(r,o)}}}function Y_(i){let e,t=i[26]("noBonusHistory")+"",r;return{c(){e=c.element("p"),r=c.text(t)},m(o,a){c.insert(o,e,a),c.append(e,r)},p(o,a){a[0]&67108864&&t!==(t=o[26]("noBonusHistory")+"")&&c.set_data(r,t)},d(o){o&&c.detach(e)}}}function j_(i){let e,t,r,o,a,n,s,l,d,u;return{c(){e=c.element("player-bonus-card"),c.set_custom_element_data(e,"termsandconditionsdescription",i[25]),c.set_custom_element_data(e,"termsandconditionsurl",i[23]),c.set_custom_element_data(e,"termsandconditionsasset",i[24]),c.set_custom_element_data(e,"bonuswalletid",t=i[60].walletId),c.set_custom_element_data(e,"bonusdate",r=i[60].granted),c.set_custom_element_data(e,"bonusstatus",o=i[60].status),c.set_custom_element_data(e,"bonusname",a=i[60].name),c.set_custom_element_data(e,"bonustype",n=i[60].type),c.set_custom_element_data(e,"bonusamount",s=i[60].extension.grantedPlayerCurrencyAmount),c.set_custom_element_data(e,"bonuswageringamount",l=`${i[60].fulfilledWR} / ${i[60].originalWageringRequirement}`),c.set_custom_element_data(e,"bonusremainingamount",d=i[60].currentAmount),c.set_custom_element_data(e,"bonuscurrency",u=i[60].currency),c.set_custom_element_data(e,"lang",i[0]),c.set_custom_element_data(e,"clientstyling",i[1]),c.set_custom_element_data(e,"clientstylingurl",i[2]),c.set_custom_element_data(e,"mbsource",i[3]),c.set_custom_element_data(e,"translationurl",i[4]),c.set_custom_element_data(e,"currencylocale",i[7]),c.set_custom_element_data(e,"dateformat",i[8])},m(h,p){c.insert(h,e,p)},p(h,p){p[0]&33554432&&c.set_custom_element_data(e,"termsandconditionsdescription",h[25]),p[0]&8388608&&c.set_custom_element_data(e,"termsandconditionsurl",h[23]),p[0]&16777216&&c.set_custom_element_data(e,"termsandconditionsasset",h[24]),p[0]&4194304&&t!==(t=h[60].walletId)&&c.set_custom_element_data(e,"bonuswalletid",t),p[0]&4194304&&r!==(r=h[60].granted)&&c.set_custom_element_data(e,"bonusdate",r),p[0]&4194304&&o!==(o=h[60].status)&&c.set_custom_element_data(e,"bonusstatus",o),p[0]&4194304&&a!==(a=h[60].name)&&c.set_custom_element_data(e,"bonusname",a),p[0]&4194304&&n!==(n=h[60].type)&&c.set_custom_element_data(e,"bonustype",n),p[0]&4194304&&s!==(s=h[60].extension.grantedPlayerCurrencyAmount)&&c.set_custom_element_data(e,"bonusamount",s),p[0]&4194304&&l!==(l=`${h[60].fulfilledWR} / ${h[60].originalWageringRequirement}`)&&c.set_custom_element_data(e,"bonuswageringamount",l),p[0]&4194304&&d!==(d=h[60].currentAmount)&&c.set_custom_element_data(e,"bonusremainingamount",d),p[0]&4194304&&u!==(u=h[60].currency)&&c.set_custom_element_data(e,"bonuscurrency",u),p[0]&1&&c.set_custom_element_data(e,"lang",h[0]),p[0]&2&&c.set_custom_element_data(e,"clientstyling",h[1]),p[0]&4&&c.set_custom_element_data(e,"clientstylingurl",h[2]),p[0]&8&&c.set_custom_element_data(e,"mbsource",h[3]),p[0]&16&&c.set_custom_element_data(e,"translationurl",h[4]),p[0]&128&&c.set_custom_element_data(e,"currencylocale",h[7]),p[0]&256&&c.set_custom_element_data(e,"dateformat",h[8])},d(h){h&&c.detach(e)}}}function G_(i){let e,t,r,o,a,n,s;return{c(){e=c.element("player-bonus-card"),c.set_custom_element_data(e,"termsandconditionsdescription",i[25]),c.set_custom_element_data(e,"termsandconditionsurl",i[23]),c.set_custom_element_data(e,"termsandconditionsasset",i[24]),c.set_custom_element_data(e,"bonuswalletid",t=i[60].walletId),c.set_custom_element_data(e,"bonusdate",r=i[60].granted),c.set_custom_element_data(e,"bonusstatus",o=i[60].status),c.set_custom_element_data(e,"bonusname",a=i[60].name),c.set_custom_element_data(e,"bonustype",n=i[60].type),c.set_custom_element_data(e,"bonuscurrency",s=i[60].currency),c.set_custom_element_data(e,"lang",i[0]),c.set_custom_element_data(e,"clientstyling",i[1]),c.set_custom_element_data(e,"clientstylingurl",i[2]),c.set_custom_element_data(e,"mbsource",i[3]),c.set_custom_element_data(e,"translationurl",i[4]),c.set_custom_element_data(e,"currencylocale",i[7]),c.set_custom_element_data(e,"dateformat",i[8])},m(l,d){c.insert(l,e,d)},p(l,d){d[0]&33554432&&c.set_custom_element_data(e,"termsandconditionsdescription",l[25]),d[0]&8388608&&c.set_custom_element_data(e,"termsandconditionsurl",l[23]),d[0]&16777216&&c.set_custom_element_data(e,"termsandconditionsasset",l[24]),d[0]&4194304&&t!==(t=l[60].walletId)&&c.set_custom_element_data(e,"bonuswalletid",t),d[0]&4194304&&r!==(r=l[60].granted)&&c.set_custom_element_data(e,"bonusdate",r),d[0]&4194304&&o!==(o=l[60].status)&&c.set_custom_element_data(e,"bonusstatus",o),d[0]&4194304&&a!==(a=l[60].name)&&c.set_custom_element_data(e,"bonusname",a),d[0]&4194304&&n!==(n=l[60].type)&&c.set_custom_element_data(e,"bonustype",n),d[0]&4194304&&s!==(s=l[60].currency)&&c.set_custom_element_data(e,"bonuscurrency",s),d[0]&1&&c.set_custom_element_data(e,"lang",l[0]),d[0]&2&&c.set_custom_element_data(e,"clientstyling",l[1]),d[0]&4&&c.set_custom_element_data(e,"clientstylingurl",l[2]),d[0]&8&&c.set_custom_element_data(e,"mbsource",l[3]),d[0]&16&&c.set_custom_element_data(e,"translationurl",l[4]),d[0]&128&&c.set_custom_element_data(e,"currencylocale",l[7]),d[0]&256&&c.set_custom_element_data(e,"dateformat",l[8])},d(l){l&&c.detach(e)}}}function Ha(i){let e;function t(a,n){return a[60].type==="freeRound"?G_:j_}let r=t(i),o=r(i);return{c(){o.c(),e=c.empty()},m(a,n){o.m(a,n),c.insert(a,e,n)},p(a,n){r===(r=t(a))&&o?o.p(a,n):(o.d(1),o=r(a),o&&(o.c(),o.m(e.parentNode,e)))},d(a){a&&c.detach(e),o.d(a)}}}function $a(i){let e,t,r,o,a,n,s,l,d,u,h,p,m,b,w,x,k,E,B,F=c.ensure_array_like(Array(i[20])),O=[];for(let C=0;C<F.length;C+=1)O[C]=Ua(Va(i,F,C));return{c(){e=c.element("div"),t=c.element("span"),r=c.text("|<"),a=c.space(),n=c.element("span"),s=c.text("<"),d=c.space();for(let C=0;C<O.length;C+=1)O[C].c();u=c.space(),h=c.element("span"),p=c.text(">"),b=c.space(),w=c.element("span"),x=c.text(">|"),c.attr(t,"class",o="BonusesFirst "+(i[21]===0?"Inactive":"")),c.attr(n,"class",l="BonusesPrev "+(i[21]===0?"Inactive":"")),c.attr(h,"class",m="BonusesNext "+(i[21]===i[20]-1?"Inactive":"")),c.attr(w,"class",k="BonusesLast "+(i[21]===i[20]-1?"Inactive":"")),c.attr(e,"class","BonusesPaginationWrapper "+(i[27]?"BonusesPaginationWrapperMobile":""))},m(C,W){c.insert(C,e,W),c.append(e,t),c.append(t,r),c.append(e,a),c.append(e,n),c.append(n,s),c.append(e,d);for(let M=0;M<O.length;M+=1)O[M]&&O[M].m(e,null);c.append(e,u),c.append(e,h),c.append(h,p),c.append(e,b),c.append(e,w),c.append(w,x),E||(B=[c.listen(t,"click",i[39]),c.listen(n,"click",i[40]),c.listen(h,"click",i[42]),c.listen(w,"click",i[43])],E=!0)},p(C,W){if(W[0]&2097152&&o!==(o="BonusesFirst "+(C[21]===0?"Inactive":""))&&c.attr(t,"class",o),W[0]&2097152&&l!==(l="BonusesPrev "+(C[21]===0?"Inactive":""))&&c.attr(n,"class",l),W[0]&1076887648){F=c.ensure_array_like(Array(C[20]));let M;for(M=0;M<F.length;M+=1){const ne=Va(C,F,M);O[M]?O[M].p(ne,W):(O[M]=Ua(ne),O[M].c(),O[M].m(e,u))}for(;M<O.length;M+=1)O[M].d(1);O.length=F.length}W[0]&3145728&&m!==(m="BonusesNext "+(C[21]===C[20]-1?"Inactive":""))&&c.attr(h,"class",m),W[0]&3145728&&k!==(k="BonusesLast "+(C[21]===C[20]-1?"Inactive":""))&&c.attr(w,"class",k)},d(C){C&&c.detach(e),c.destroy_each(O,C),E=!1,c.run_all(B)}}}function Ua(i){let e,t=i[59]+1+"",r,o,a,n;function s(){return i[41](i[59])}return{c(){e=c.element("span"),r=c.text(t),c.attr(e,"class",o="BonusesPage "+(i[59]===i[21]?"BonusPageActive":""))},m(l,d){c.insert(l,e,d),c.append(e,r),a||(n=c.listen(e,"click",s),a=!0)},p(l,d){i=l,d[0]&2097152&&o!==(o="BonusesPage "+(i[59]===i[21]?"BonusPageActive":""))&&c.attr(e,"class",o)},d(l){l&&c.detach(e),a=!1,n()}}}function K_(i){let e,t,r,o,a=i[26]("titleBonusesHistory")+"",n,s,l,d,u,h,p=i[26]("dateFrom")+"",m,b,w,x,k,E,B=i[26]("dateTo")+"",F,O,C,W,M,ne=i[26]("dateFilter")+"",me,$,Z,de,ze,ue=i[27]&&$_(i);function Le(U,Y){return U[14]?W_:U_}let ye=Le(i),ee=ye(i);return{c(){e=c.element("div"),t=c.element("div"),ue&&ue.c(),r=c.space(),o=c.element("h2"),n=c.text(a),s=c.space(),l=c.element("div"),d=c.element("div"),u=c.element("div"),h=c.element("label"),m=c.text(p),b=c.space(),w=c.element("vaadin-date-picker"),x=c.space(),k=c.element("div"),E=c.element("label"),F=c.text(B),O=c.space(),C=c.element("vaadin-date-picker"),W=c.space(),M=c.element("button"),me=c.text(ne),Z=c.space(),ee.c(),c.attr(o,"class","BonusesTitle "+(i[27]?"BonusesTitleNone":"")),c.attr(o,"part","BonusesTitle "+(i[27]?"BonusesTitleNone":"")),c.attr(h,"for","BonusCalendarStartDate"),c.set_custom_element_data(w,"max",i[28]),c.set_custom_element_data(w,"value",i[12]),c.set_custom_element_data(w,"placeholder",i[12]),c.set_custom_element_data(w,"class","VaadinDatePicker"),c.attr(u,"class","BonusesCalendarStartDate "+(i[27]?"BonusesCalendarMobile":"")),c.attr(E,"for","BonusesCalendarEndDate"),c.set_custom_element_data(C,"max",i[28]),c.set_custom_element_data(C,"min",i[15]),c.set_custom_element_data(C,"value",i[13]),c.set_custom_element_data(C,"placeholder",i[13]),c.set_custom_element_data(C,"class","VaadinDatePicker"),c.attr(k,"class","BonusesCalendarEndDate "+(i[27]?"BonusesCalendarMobile":"")),c.attr(d,"class","BonusesCalendarContainer "+(i[27]?"BonusesCalendarContainerMobile":"")),c.attr(M,"class","BonusesCalendarFilter "+(i[27]?"BonusesCalendarFilterMobile":"")),M.disabled=$=!i[16]||i[14],c.attr(l,"class","BonusCalendarWrapper "+(i[27]?"BonusCalendarWrapperMobile":"")),c.attr(t,"class","BonusesWrapper "+(i[27]?"BonusesWrapperMobile":""))},m(U,Y){c.insert(U,e,Y),c.append(e,t),ue&&ue.m(t,null),c.append(t,r),c.append(t,o),c.append(o,n),c.append(t,s),c.append(t,l),c.append(l,d),c.append(d,u),c.append(u,h),c.append(h,m),c.append(u,b),c.append(u,w),i[36](w),c.append(d,x),c.append(d,k),c.append(k,E),c.append(E,F),c.append(k,O),c.append(k,C),i[37](C),c.append(l,W),c.append(l,M),c.append(M,me),c.append(t,Z),ee.m(t,null),i[44](e),de||(ze=c.listen(M,"click",i[38]),de=!0)},p(U,Y){U[27]&&ue.p(U,Y),Y[0]&67108864&&a!==(a=U[26]("titleBonusesHistory")+"")&&c.set_data(n,a),Y[0]&67108864&&p!==(p=U[26]("dateFrom")+"")&&c.set_data(m,p),Y[0]&4096&&c.set_custom_element_data(w,"value",U[12]),Y[0]&4096&&c.set_custom_element_data(w,"placeholder",U[12]),Y[0]&67108864&&B!==(B=U[26]("dateTo")+"")&&c.set_data(F,B),Y[0]&32768&&c.set_custom_element_data(C,"min",U[15]),Y[0]&8192&&c.set_custom_element_data(C,"value",U[13]),Y[0]&8192&&c.set_custom_element_data(C,"placeholder",U[13]),Y[0]&67108864&&ne!==(ne=U[26]("dateFilter")+"")&&c.set_data(me,ne),Y[0]&81920&&$!==($=!U[16]||U[14])&&(M.disabled=$),ye===(ye=Le(U))&&ee?ee.p(U,Y):(ee.d(1),ee=ye(U),ee&&(ee.c(),ee.m(t,null)))},i:c.noop,o:c.noop,d(U){U&&c.detach(e),ue&&ue.d(),i[36](null),i[37](null),ee.d(),i[44](null),de=!1,ze()}}}let Ae=6;function X_(i,e,t){let r;c.component_subscribe(i,c.$format,g=>t(26,r=g));let{endpoint:o=""}=e,{session:a=""}=e,{playerid:n=""}=e,{lang:s="en"}=e,{clientstyling:l=""}=e,{clientstylingurl:d=""}=e,{mbsource:u}=e,{translationurl:h=""}=e,{bonushistorystatus:p=""}=e,{bonushistorytype:m=""}=e,{currencylocale:b=""}=e,{currency:w=""}=e,{dateformat:x="dd-MM-yyyy"}=e,k,E,B=!1,F=window.navigator.userAgent,O=c.getDevice(F)!=="PC",C,W;const M=Te(new Date,"yyyy-MM-dd");let ne="",me=Te(nn(new Date,3),`${x||"yyyy-MM-dd"}`),$=Te(new Date,`${x||"yyyy-MM-dd"}`),Z=!0,de=0,ze=0,ue=0,Le=0,ye=0,ee=[],U="",Y="",xt="";const or=()=>{fetch(h).then(te=>te.json()).then(te=>{Object.keys(te).forEach(xe=>{Fo(xe,te[xe])})}).catch(te=>{console.log(te)})};Object.keys(Vo).forEach(g=>{Fo(g,Vo[g])});const We=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:O},window.location.href)},K=(g,te)=>{const xe=pi(g,`${x||"yyyy-MM-dd"}`,new Date),Ye=te?xl(xe):fl(xe);return Te(Ye,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")},A=(g,te,xe)=>{t(14,B=!0);let Ye=new URL(`${o}/v1/player/${n}/bonusWallet`),nr=K(me,!1),nl=K($,!0),je="",Ao="",To="";te&&(Ao=te.split(",").map(Be=>`status=${Be}`).join(","),je=je+Ao+","),xe&&(To=xe.split(",").map(Be=>`type=${Be}`).join(","),je=je+To+","),je=je+`granted=[${nr}~${nl}]`,Ye.searchParams.append("filter",je),Ye.searchParams.append("pagination",`offset=${g},limit=${Ae}`);let sl={method:"GET",headers:{"X-SessionId":a}};fetch(Ye.href,sl).then(_e=>_e.json()).then(_e=>{Array.isArray(_e.items)&&_e.items.forEach(he=>{var Io,Do;const Be=(Do=(Io=he==null?void 0:he.extension)==null?void 0:Io.bonus)==null?void 0:Do.presentation;Be&&(t(23,U||(U=Be.url)),t(25,xt||(xt=Be.description)),t(24,Y||(Y=Be.assets)))}),t(20,Le=Math.ceil(_e.total/Ae)),g-Ae>=0&&t(17,de=g-Ae),g+Ae<_e.total&&t(18,ze=g+Ae),t(19,ue=(Le-1)*Ae),t(21,ye=g/Ae),t(22,ee=(_e==null?void 0:_e.items)||[]),b&&ee.forEach(he=>{he.fulfilledWR=oe(he.fulfilledWR),he.originalWageringRequirement=oe(he.originalWageringRequirement),he.currentAmount=oe(he.currentAmount),he.extension.grantedPlayerCurrencyAmount=oe(he.extension.grantedPlayerCurrencyAmount)})},_e=>{console.error(_e)}).finally(()=>{t(14,B=!1)}),window.postMessage({type:"ScrollToTop"},window.location.href)},oe=g=>new Intl.NumberFormat(b,{style:"currency",currency:w}).format(g).replace(/\s/g,""),qe=g=>{t(12,me=Te(new Date(g.target.value),`${x||"yyyy-MM-dd"}`)),t(15,ne=Te(new Date(g.target.value),"yyyy-MM-dd"))},Ct=g=>{t(13,$=Te(new Date(g.target.value),`${x||"yyyy-MM-dd"}`))},ar=()=>{const g=new Date(me),te=new Date($);g.getTime()>te.getTime()?t(16,Z=!1):t(16,Z=!0)},kt=()=>{C.addEventListener("change",qe,!1),W.addEventListener("change",Ct,!1)},Et=g=>{const{year:te,month:xe,day:Ye}=g,nr=new Date(te,xe,Ye);return Te(nr,x||"yyyy-MM-dd")},Po=g=>{const te=pi(g,x||"yyyy-MM-dd",new Date);return{year:te.getFullYear(),month:te.getMonth(),day:te.getDate()}};c.onMount(()=>(t(10,C.i18n=Gr(jr({},C.i18n),{formatDate:Et,parseDate:Po}),C),t(11,W.i18n=Gr(jr({},W.i18n),{formatDate:Et,parseDate:Po}),W),()=>{C.removeEventListener("change",qe),W.removeEventListener("change",Ct)}));const Ks=()=>{fc(s)},Xs=()=>We();function Qs(g){c.binding_callbacks[g?"unshift":"push"](()=>{C=g,t(10,C)})}function Js(g){c.binding_callbacks[g?"unshift":"push"](()=>{W=g,t(11,W)})}const Zs=()=>A(0,p,m),el=()=>A(0,p,m),tl=()=>A(de,p,m),rl=g=>A(g*Ae,p,m),il=()=>A(ze,p,m),ol=()=>A(ue,p,m);function al(g){c.binding_callbacks[g?"unshift":"push"](()=>{k=g,t(9,k)})}return i.$$set=g=>{"endpoint"in g&&t(31,o=g.endpoint),"session"in g&&t(32,a=g.session),"playerid"in g&&t(33,n=g.playerid),"lang"in g&&t(0,s=g.lang),"clientstyling"in g&&t(1,l=g.clientstyling),"clientstylingurl"in g&&t(2,d=g.clientstylingurl),"mbsource"in g&&t(3,u=g.mbsource),"translationurl"in g&&t(4,h=g.translationurl),"bonushistorystatus"in g&&t(5,p=g.bonushistorystatus),"bonushistorytype"in g&&t(6,m=g.bonushistorytype),"currencylocale"in g&&t(7,b=g.currencylocale),"currency"in g&&t(34,w=g.currency),"dateformat"in g&&t(8,x=g.dateformat)},i.$$.update=()=>{i.$$.dirty[0]&1&&s&&Ks(),i.$$.dirty[0]&3072&&C&&W&&kt(),i.$$.dirty[0]&12288&&me&&$&&ar(),i.$$.dirty[0]&96|i.$$.dirty[1]&7&&a&&n&&o&&A(0,p,m),i.$$.dirty[0]&514&&l&&k&&c.setClientStyling(k,l),i.$$.dirty[0]&516&&d&&k&&c.setClientStylingURL(k,d),i.$$.dirty[0]&520&&u&&k&&c.setStreamStyling(k,`${u}.Style`,E),i.$$.dirty[0]&16&&h&&or()},[s,l,d,u,h,p,m,b,x,k,C,W,me,$,B,ne,Z,de,ze,ue,Le,ye,ee,U,Y,xt,r,O,M,We,A,o,a,n,w,Xs,Qs,Js,Zs,el,tl,rl,il,ol,al]}class Gs extends c.SvelteComponent{constructor(e){super(),c.init(this,e,X_,K_,c.safe_not_equal,{endpoint:31,session:32,playerid:33,lang:0,clientstyling:1,clientstylingurl:2,mbsource:3,translationurl:4,bonushistorystatus:5,bonushistorytype:6,currencylocale:7,currency:34,dateformat:8},H_,[-1,-1,-1])}get endpoint(){return this.$$.ctx[31]}set endpoint(e){this.$$set({endpoint:e}),c.flush()}get session(){return this.$$.ctx[32]}set session(e){this.$$set({session:e}),c.flush()}get playerid(){return this.$$.ctx[33]}set playerid(e){this.$$set({playerid:e}),c.flush()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),c.flush()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),c.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),c.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),c.flush()}get translationurl(){return this.$$.ctx[4]}set translationurl(e){this.$$set({translationurl:e}),c.flush()}get bonushistorystatus(){return this.$$.ctx[5]}set bonushistorystatus(e){this.$$set({bonushistorystatus:e}),c.flush()}get bonushistorytype(){return this.$$.ctx[6]}set bonushistorytype(e){this.$$set({bonushistorytype:e}),c.flush()}get currencylocale(){return this.$$.ctx[7]}set currencylocale(e){this.$$set({currencylocale:e}),c.flush()}get currency(){return this.$$.ctx[34]}set currency(e){this.$$set({currency:e}),c.flush()}get dateformat(){return this.$$.ctx[8]}set dateformat(e){this.$$set({dateformat:e}),c.flush()}}c.create_custom_element(Gs,{endpoint:{},session:{},playerid:{},lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},bonushistorystatus:{},bonushistorytype:{},currencylocale:{},currency:{},dateformat:{}},[],[],!0);const Q_=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"}));exports.PlayerBonusHistory_ce=Q_;exports.format=Te;exports.getYear=gd;exports.parse=pi;exports.subMonths=nn;
|