@ebrains/vue 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clone-dab56639-CA90NNP5.mjs +4 -0
- package/clone-dab56639-DhCcTb4A.js +1 -0
- package/color-primary-palette_6.entry-CemzaBr-.js +1 -0
- package/{color-primary-palette_6.entry-Dx0sxiGl.mjs → color-primary-palette_6.entry-DJbAbsZz.mjs} +21 -21
- package/{components-section.entry-DlSK2XQH.js → components-section.entry-BajIK00d.js} +3 -6
- package/{components-section.entry-CunkKxAI.mjs → components-section.entry-S_7QkEcP.mjs} +5 -10
- package/{correct-use-of-colors.entry-CEWf34uE.js → correct-use-of-colors.entry-BN9cex32.js} +1 -1
- package/{correct-use-of-colors.entry-DCSZZlrZ.mjs → correct-use-of-colors.entry-BvTTnnKN.mjs} +2 -2
- package/{docs-palettes.entry-DcN9LWvY.js → docs-palettes.entry-CITJl0U4.js} +1 -1
- package/{docs-palettes.entry-BNFu_gbi.mjs → docs-palettes.entry-s3Fup9Z9.mjs} +4 -4
- package/{docs-tokens.entry-BMB3774g.mjs → docs-tokens.entry-B9XQjEYe.mjs} +2 -2
- package/{docs-tokens.entry-B3fO_wav.js → docs-tokens.entry-D_HVS-pS.js} +1 -1
- package/download-47746956-CSto0o7c.mjs +19 -0
- package/download-47746956-DbC-y8R6.js +16 -0
- package/edit-3893a517-D_Sgle6i.js +1 -0
- package/edit-3893a517-rsZs4NLF.mjs +4 -0
- package/{eds-avatar_26.entry-BQ34MNWx.mjs → eds-accordion_34.entry-KgOmCv2f.mjs} +2873 -516
- package/{eds-avatar_26.entry-t5Dh1R-T.js → eds-accordion_34.entry-RT_JckFi.js} +196 -13
- package/eds-app-root.entry-CrY-WJje.mjs +25 -0
- package/eds-app-root.entry-DVCAcXjR.js +1 -0
- package/{eds-card-desc_2.entry-D_GE153d.mjs → eds-card-desc_2.entry-CdMizUC4.mjs} +6 -6
- package/{eds-card-desc_2.entry-BhqAsb3U.js → eds-card-desc_2.entry-Cxtd5Tn6.js} +1 -1
- package/{eds-card-generic.entry-B9M3v5vo.mjs → eds-card-generic.entry-08ANuvX4.mjs} +1 -1
- package/{eds-card-generic.entry-DNr8lsia.js → eds-card-generic.entry-DYbxznji.js} +1 -1
- package/{eds-card-project.entry-CtwByu-b.mjs → eds-card-project.entry-BBTWsiFq.mjs} +6 -6
- package/{eds-card-project.entry-DDVZxmW4.js → eds-card-project.entry-Bol9vgX7.js} +1 -1
- package/{eds-card-section.entry-DQfUs62H.mjs → eds-card-section.entry-Bah4uso0.mjs} +1 -1
- package/{eds-card-section.entry-Dq80ib2D.js → eds-card-section.entry-Bfvxz5QB.js} +1 -1
- package/eds-card-tags.entry-BAtfhzFx.mjs +13 -0
- package/eds-card-tags.entry-CqExaEH9.js +1 -0
- package/{eds-card-tool.entry-CNxFGROK.js → eds-card-tool.entry-CXoJlXad.js} +1 -1
- package/{eds-card-tool.entry-D1HR_5K1.mjs → eds-card-tool.entry-DEcc9_Qu.mjs} +5 -5
- package/{eds-cookies-preference.entry-CVk-5TmL.mjs → eds-cookies-preference.entry-JSJVljlh.mjs} +2 -2
- package/{eds-cookies-preference.entry-D3iYnclm.js → eds-cookies-preference.entry-_z1-vMDj.js} +1 -1
- package/{eds-feedback.entry-B1yQSCpz.mjs → eds-feedback.entry-DASoF2j4.mjs} +5 -5
- package/{eds-feedback.entry-mYb4amQb.js → eds-feedback.entry-zxbWrt9t.js} +1 -1
- package/{eds-footer.entry-DMUzB4MR.js → eds-footer.entry-B-fSU8uH.js} +1 -1
- package/{eds-footer.entry-C93DGupd.mjs → eds-footer.entry-O4WhRYcJ.mjs} +11 -11
- package/{eds-frame.entry-eqZLv-6q.js → eds-frame.entry-CCDA7rKc.js} +1 -1
- package/{eds-frame.entry-n9qJhfsP.mjs → eds-frame.entry-yy7X8E4S.mjs} +4 -4
- package/eds-fullscreen-menu.entry-CF6sYL-d.js +1 -0
- package/{eds-fullscreen-menu.entry-CUitgYea.mjs → eds-fullscreen-menu.entry-DtHZDyqq.mjs} +9 -4
- package/{eds-gauge.entry-Bjp3cj0S.js → eds-gauge.entry-DgR6biCB.js} +1 -1
- package/{eds-gauge.entry-CrqkvnWf.mjs → eds-gauge.entry-SqDl-Nwl.mjs} +4 -4
- package/eds-icon-arrow-diagonal.entry-B85Lm6xR.mjs +13 -0
- package/eds-icon-arrow-diagonal.entry-CRE9IEVe.js +1 -0
- package/eds-icon-arrow-right.entry-D_VYbRHi.js +1 -0
- package/eds-icon-arrow-right.entry-jo6pk2Mw.mjs +13 -0
- package/eds-icon-bin.entry-ApnGHgNg.mjs +13 -0
- package/eds-icon-bin.entry-V9yPQvqx.js +1 -0
- package/{eds-icon-bluesky.entry-DJCdYrfU.js → eds-icon-bluesky.entry-DYJLOxdI.js} +1 -1
- package/eds-icon-bluesky.entry-bb69dfjJ.mjs +13 -0
- package/eds-icon-bookmark.entry-BDqFijZE.mjs +13 -0
- package/eds-icon-bookmark.entry-CdwVF1SC.js +1 -0
- package/{eds-icon-chevron-down.entry-B__d09rD.js → eds-icon-chevron-down.entry-C2SxKpXf.js} +1 -1
- package/eds-icon-chevron-down.entry-C8unBsMz.mjs +13 -0
- package/eds-icon-chevron-left.entry-B0VTiW-i.mjs +13 -0
- package/eds-icon-chevron-left.entry-C-qcjtUg.js +1 -0
- package/{eds-icon-chevron-right.entry-C0dfqwMy.mjs → eds-icon-chevron-right.entry-Bjf1CBxA.mjs} +2 -2
- package/eds-icon-chevron-right.entry-CR-NcmsN.js +1 -0
- package/eds-icon-chevron-up.entry-CzG5C7Bc.js +1 -0
- package/eds-icon-chevron-up.entry-DjYPrwgy.mjs +13 -0
- package/eds-icon-clone.entry-Da0USwOw.mjs +13 -0
- package/eds-icon-clone.entry-f_7LDRLs.js +1 -0
- package/eds-icon-close.entry-CJwrThK_.mjs +13 -0
- package/{eds-icon-close.entry-D09Q-ylx.js → eds-icon-close.entry-CrBjb8rR.js} +1 -1
- package/eds-icon-copy.entry-DhkJMXQn.mjs +13 -0
- package/eds-icon-copy.entry-jQf4OtN_.js +1 -0
- package/eds-icon-download.entry-BhNKX0UC.js +1 -0
- package/eds-icon-download.entry-DpaF0QTI.mjs +13 -0
- package/eds-icon-draft.entry-6Tj-gveL.mjs +13 -0
- package/{eds-icon-draft.entry-TMbsQxNO.js → eds-icon-draft.entry-DTwKZsPF.js} +1 -1
- package/eds-icon-edit.entry-B0YHmjwF.mjs +13 -0
- package/eds-icon-edit.entry-C5sh6g5Z.js +1 -0
- package/eds-icon-eu.entry-DyDVeH2d.mjs +13 -0
- package/eds-icon-eu.entry-pgzCdT5C.js +1 -0
- package/eds-icon-external.entry-2P4eBckq.mjs +13 -0
- package/eds-icon-external.entry-CZthijDc.js +1 -0
- package/{eds-icon-facebook.entry-BdzYJmXP.js → eds-icon-facebook.entry-4y4BctUa.js} +1 -1
- package/eds-icon-facebook.entry-DV6Fwx8p.mjs +13 -0
- package/{eds-icon-gitlab.entry-BE8qLkYR.js → eds-icon-gitlab.entry-BkFVzAfz.js} +1 -1
- package/eds-icon-gitlab.entry-OhzOPbyK.mjs +13 -0
- package/{eds-icon-linkedin.entry-C4GaDa_x.js → eds-icon-linkedin.entry-Bx-A1duw.js} +1 -1
- package/eds-icon-linkedin.entry-X9QkofDx.mjs +13 -0
- package/eds-icon-loader.entry-C3Rayn-0.mjs +13 -0
- package/{eds-icon-loader.entry-BzyS9rwg.js → eds-icon-loader.entry-DnuBRqo5.js} +1 -1
- package/{eds-icon-mastodon.entry-D_cz6_YV.js → eds-icon-mastodon.entry-BCe9SCxw.js} +1 -1
- package/eds-icon-mastodon.entry-wjbJA4hE.mjs +13 -0
- package/eds-icon-menu.entry-BT4aDecT.js +1 -0
- package/eds-icon-menu.entry-DAPAzjBz.mjs +13 -0
- package/eds-icon-minus.entry-CCqn-nAg.mjs +13 -0
- package/eds-icon-minus.entry-CIIi8Ss6.js +1 -0
- package/eds-icon-more.entry-CYQPuQBf.js +1 -0
- package/eds-icon-more.entry-FIfzMSYr.mjs +13 -0
- package/eds-icon-paper.entry-ByP2JwTC.js +1 -0
- package/eds-icon-paper.entry-C5_tx_LJ.mjs +13 -0
- package/eds-icon-plus.entry-CjOUxhhP.js +1 -0
- package/eds-icon-plus.entry-DRxN5pfr.mjs +13 -0
- package/eds-icon-portal.entry-BGL8Ll7D.mjs +13 -0
- package/eds-icon-portal.entry-D2jv2hrt.js +1 -0
- package/{eds-icon-private.entry-DGy28MBj.js → eds-icon-private.entry-BwrO_ats.js} +1 -1
- package/eds-icon-private.entry-CDsrtoYz.mjs +13 -0
- package/eds-icon-public.entry-C7hBwcsg.js +1 -0
- package/eds-icon-public.entry-DLbLVSU7.mjs +13 -0
- package/eds-icon-search.entry-BFjXBxOa.mjs +13 -0
- package/eds-icon-search.entry-btOzRpIs.js +1 -0
- package/{eds-icon-star.entry-CfxlHoON.mjs → eds-icon-star.entry-BSsquaZI.mjs} +2 -2
- package/{eds-icon-star.entry-D_o_p4FR.js → eds-icon-star.entry-Cy9Xk77_.js} +1 -1
- package/{eds-icon-start.entry-gFD3CneX.js → eds-icon-start.entry-CPGXVOvj.js} +1 -1
- package/{eds-icon-start.entry-EmqNVYVq.mjs → eds-icon-start.entry-XN6qm84u.mjs} +2 -2
- package/eds-icon-success.entry-CPnIUgZZ.mjs +13 -0
- package/{eds-icon-success.entry-D4rmUwOz.js → eds-icon-success.entry-D5IJTkOm.js} +1 -1
- package/eds-icon-thumbs-down.entry-BlSAzpfJ.mjs +13 -0
- package/{eds-icon-thumbs-down.entry-BA_isKQz.js → eds-icon-thumbs-down.entry-ylrl8WSt.js} +1 -1
- package/eds-icon-thumbs-up.entry-BgXvsekI.mjs +13 -0
- package/eds-icon-thumbs-up.entry-nISBVRFR.js +1 -0
- package/{eds-icon-tutorial.entry-DReMsj7W.js → eds-icon-tutorial.entry-CqSMInIr.js} +1 -1
- package/eds-icon-tutorial.entry-Dqw0QYmo.mjs +13 -0
- package/{eds-icon-twitter.entry-CZo7HVCl.js → eds-icon-twitter.entry-B3GfLRDy.js} +1 -1
- package/{eds-icon-twitter.entry-BwOIf0Bv.mjs → eds-icon-twitter.entry-CPgtDlbk.mjs} +2 -2
- package/eds-icon-unknown.entry-CBRF3YxA.mjs +13 -0
- package/eds-icon-unknown.entry-DjHNZVUB.js +1 -0
- package/eds-icon-updown.entry-C9uhFoly.mjs +13 -0
- package/eds-icon-updown.entry-qV4ZG5JV.js +1 -0
- package/eds-icon-user.entry-PoziW4x3.js +1 -0
- package/eds-icon-user.entry-zjaW2Q3v.mjs +13 -0
- package/eds-icon-view.entry-BFfkRuiG.js +1 -0
- package/eds-icon-view.entry-DEYe7yd6.mjs +13 -0
- package/eds-icon-youtube.entry-BEPXgZdd.js +1 -0
- package/eds-icon-youtube.entry-JleTUS-Y.mjs +13 -0
- package/{eds-modal.entry-Cjj4QVEc.js → eds-modal.entry-CRN7MYt1.js} +1 -1
- package/{eds-modal.entry-DuG9A0QH.mjs → eds-modal.entry-zPegafUx.mjs} +4 -4
- package/{eds-pie.entry-BiQyGOJw.js → eds-pie.entry-B0wT5LM4.js} +1 -1
- package/{eds-pie.entry-BU0NzwvU.mjs → eds-pie.entry-CATOWI0B.mjs} +1 -1
- package/{eds-progress-bar.entry-BfV2jWgV.js → eds-progress-bar.entry-CDjnEVBN.js} +1 -1
- package/{eds-progress-bar.entry-BoQmuoGC.mjs → eds-progress-bar.entry-y3FyT6TM.mjs} +2 -2
- package/eds-section-core_2.entry-BXish6d6.js +1 -0
- package/{eds-section-core_2.entry-D2OlT6Zh.mjs → eds-section-core_2.entry-DyAS0Naq.mjs} +9 -9
- package/eds-social-networks.entry-B3belpvZ.mjs +48 -0
- package/eds-social-networks.entry-C_kag4_n.js +1 -0
- package/{eds-spinner.entry-dAJHt3cE.mjs → eds-spinner.entry-BVH3nJGV.mjs} +2 -2
- package/{eds-spinner.entry-BKjbNwEi.js → eds-spinner.entry-DOlNswYW.js} +1 -1
- package/{eds-splash-screen.entry-DOmRKV_v.mjs → eds-splash-screen.entry-CjBoVdrh.mjs} +1 -1
- package/{eds-splash-screen.entry-D3_EbR0-.js → eds-splash-screen.entry-Db0zsF_d.js} +1 -1
- package/{eds-timeline.entry-BSozjnyo.mjs → eds-timeline.entry-BGV1FUKt.mjs} +2 -2
- package/{eds-timeline.entry-CFhtSoZc.js → eds-timeline.entry-C1WErP58.js} +1 -1
- package/{eds-toast-manager.entry-Bj-xEHAg.mjs → eds-toast-manager.entry-9cy0H8uM.mjs} +2 -2
- package/{eds-toast-manager.entry-CWvJ6hUh.js → eds-toast-manager.entry-CwzPpw0l.js} +1 -1
- package/{eds-trl.entry-DWE3RZnq.mjs → eds-trl.entry-Bc4qa039.mjs} +8 -8
- package/eds-trl.entry-CVqrrjQt.js +1 -0
- package/generated/components.d.ts +1 -0
- package/incorrect-use-of-colors.entry-Dp2AzvlN.js +1 -0
- package/incorrect-use-of-colors.entry-DwsyOaOT.mjs +42 -0
- package/index-3WUP5575.js +21 -0
- package/{index-BW6yUYdy.mjs → index-zMBfbHLg.mjs} +607 -596
- package/index.js +1 -1
- package/index.mjs +12 -11
- package/{logo-space.entry-Cq0tziVn.js → logo-space.entry-B3Lwt36T.js} +2 -2
- package/{logo-space.entry-C5_FS_1e.mjs → logo-space.entry-BHFG582d.mjs} +5 -5
- package/{logo-variations-horizontal_2.entry-Bx8geXjs.mjs → logo-variations-horizontal_2.entry-BgkvC6Q-.mjs} +6 -6
- package/{logo-variations-horizontal_2.entry-CQW41pP-.js → logo-variations-horizontal_2.entry-C7AnrYqe.js} +3 -3
- package/{logo-variations-tabs.entry-DgYru0Zn.mjs → logo-variations-tabs.entry-D0ufjbtA.mjs} +4 -4
- package/{logo-variations-tabs.entry-CfkXBk5k.js → logo-variations-tabs.entry-DLkztWGS.js} +1 -1
- package/{logo-wrong-usage.entry-BdBfaWtI.mjs → logo-wrong-usage.entry-CzqF7MpW.mjs} +5 -5
- package/{logo-wrong-usage.entry-B2LU9hBv.js → logo-wrong-usage.entry-Dw8WVNFn.js} +1 -1
- package/package.json +1 -1
- package/{svg-repository.entry-PcURnvgb.mjs → svg-repository.entry-CitErce_.mjs} +100 -110
- package/{svg-repository.entry-C8PnrvxA.js → svg-repository.entry-DI30qfdW.js} +11 -26
- package/{token-list_3.entry-B4ClAGZQ.mjs → token-list_3.entry-BeAswWRv.mjs} +4 -4
- package/{token-list_3.entry-CnPtT_DH.js → token-list_3.entry-DfE5zqbR.js} +1 -1
- package/token-ratios.entry-CSajlciv.js +1 -0
- package/{token-ratios.entry-DU33V_Fx.mjs → token-ratios.entry-Dep7U0gG.mjs} +2 -2
- package/token-spacing.entry-BAxEZAs8.mjs +12 -0
- package/token-spacing.entry-BeuEMK-8.js +1 -0
- package/{token-typography.entry-DFu3h1rd.js → token-typography.entry-3pnmu6Th.js} +1 -1
- package/{token-typography.entry-WBbs4fXw.mjs → token-typography.entry-hhzhalzj.mjs} +2 -2
- package/view-e900f2d4-DsFtaZYM.mjs +4 -0
- package/view-e900f2d4-RAKf504j.js +1 -0
- package/color-primary-palette_6.entry-CLPwqXYN.js +0 -1
- package/edit-1dc8d11b-Bf2mkSUV.js +0 -1
- package/edit-1dc8d11b-CamcJGHE.mjs +0 -4
- package/eds-accordion.entry-Cniy--Pf.mjs +0 -48
- package/eds-accordion.entry-DqsJjt8n.js +0 -4
- package/eds-alert.entry-1Mmo8pXz.js +0 -165
- package/eds-alert.entry-DzO39nFn.mjs +0 -251
- package/eds-app-root.entry-Br_qdv7x.mjs +0 -25
- package/eds-app-root.entry-CuHAu5oB.js +0 -1
- package/eds-breadcrumb.entry-DoRU-2U8.mjs +0 -104
- package/eds-breadcrumb.entry-WWpJ_3D5.js +0 -1
- package/eds-card-tags.entry-CSuzFzX-.js +0 -1
- package/eds-card-tags.entry-DrWAV-ko.mjs +0 -13
- package/eds-code-block.entry-DGIrW97_.mjs +0 -1623
- package/eds-code-block.entry-JdJJLE4a.js +0 -9
- package/eds-fullscreen-menu.entry-DKAdy3Bn.js +0 -1
- package/eds-icon-arrow-diagonal.entry-B8-jArDT.js +0 -1
- package/eds-icon-arrow-diagonal.entry-DACKEZ7o.mjs +0 -13
- package/eds-icon-arrow-right.entry-BP77Fhx8.js +0 -1
- package/eds-icon-arrow-right.entry-BvPrrid_.mjs +0 -13
- package/eds-icon-bin.entry-B54EXA_6.mjs +0 -13
- package/eds-icon-bin.entry-C7Jo_DW-.js +0 -1
- package/eds-icon-bluesky.entry-Bx-UDdty.mjs +0 -13
- package/eds-icon-bookmark.entry-B5IinWaZ.mjs +0 -13
- package/eds-icon-bookmark.entry-Dhvd8veD.js +0 -1
- package/eds-icon-chevron-down.entry-P4xqCoWP.mjs +0 -13
- package/eds-icon-chevron-left.entry-CuBl_BGv.mjs +0 -13
- package/eds-icon-chevron-left.entry-ZkPovDlT.js +0 -1
- package/eds-icon-chevron-right.entry-5h2qhFR-.js +0 -1
- package/eds-icon-chevron-up.entry-D0353BVJ.js +0 -1
- package/eds-icon-chevron-up.entry-UAZdu3Df.mjs +0 -13
- package/eds-icon-close.entry-uJAE-Wjb.mjs +0 -13
- package/eds-icon-copy.entry-BtI5KVDq.mjs +0 -13
- package/eds-icon-copy.entry-CECbryXM.js +0 -1
- package/eds-icon-draft.entry-LmdchYUq.mjs +0 -13
- package/eds-icon-edit.entry-R36lCJ2A.mjs +0 -13
- package/eds-icon-edit.entry-l8L__tUR.js +0 -1
- package/eds-icon-eu.entry--K0Tu14T.js +0 -1
- package/eds-icon-eu.entry-yv7nc0gr.mjs +0 -13
- package/eds-icon-external.entry-DdbbUm2H.mjs +0 -13
- package/eds-icon-external.entry-DjuhhmIA.js +0 -1
- package/eds-icon-facebook.entry-CrssRpWE.mjs +0 -13
- package/eds-icon-gitlab.entry-CeKDBPdQ.mjs +0 -13
- package/eds-icon-linkedin.entry-DTormNBK.mjs +0 -13
- package/eds-icon-loader.entry-BOxUhqUI.mjs +0 -13
- package/eds-icon-mastodon.entry-Cb_b8WxS.mjs +0 -13
- package/eds-icon-menu.entry-DN8ArM1E.js +0 -1
- package/eds-icon-menu.entry-c9wghxje.mjs +0 -13
- package/eds-icon-minus.entry-DPNNp66u.js +0 -1
- package/eds-icon-minus.entry-zF5hDaP1.mjs +0 -13
- package/eds-icon-more.entry-C9Qqow2i.js +0 -1
- package/eds-icon-more.entry-VvMJWQBC.mjs +0 -13
- package/eds-icon-paper.entry-BLYcxhYh.mjs +0 -13
- package/eds-icon-paper.entry-CGeDyZ2Q.js +0 -1
- package/eds-icon-plus.entry-DrhM4x_H.mjs +0 -13
- package/eds-icon-plus.entry-P2gRynxf.js +0 -1
- package/eds-icon-portal.entry-Br9nR5tb.mjs +0 -13
- package/eds-icon-portal.entry-YF8r9Y0s.js +0 -1
- package/eds-icon-private.entry-C-VoEd-k.mjs +0 -13
- package/eds-icon-public.entry-JRATi6FK.mjs +0 -13
- package/eds-icon-public.entry-VrKUyRn4.js +0 -1
- package/eds-icon-search.entry-BFfawTmF.js +0 -1
- package/eds-icon-search.entry-D3nOAH3d.mjs +0 -13
- package/eds-icon-success.entry-asuFd1wn.mjs +0 -13
- package/eds-icon-thumbs-down.entry-5IoOfXYg.mjs +0 -13
- package/eds-icon-thumbs-up.entry-B90KeLnV.mjs +0 -13
- package/eds-icon-thumbs-up.entry-CBiv69dB.js +0 -1
- package/eds-icon-tutorial.entry-BMlnAYBS.mjs +0 -13
- package/eds-icon-unknown.entry-C6uw3X-q.js +0 -1
- package/eds-icon-unknown.entry-U2OwdtDM.mjs +0 -13
- package/eds-icon-updown.entry-D-ktiRgn.mjs +0 -13
- package/eds-icon-updown.entry-f_pOMD8D.js +0 -1
- package/eds-icon-user.entry-DlnnIhcq.js +0 -1
- package/eds-icon-user.entry-aELakb9j.mjs +0 -13
- package/eds-icon-youtube.entry-BUryZYQc.js +0 -1
- package/eds-icon-youtube.entry-HRKBTy8P.mjs +0 -13
- package/eds-matomo-notice.entry-B0xxpHZr.js +0 -1
- package/eds-matomo-notice.entry-NBKdUOFY.mjs +0 -92
- package/eds-section-core_2.entry-Jw_e-l_h.js +0 -1
- package/eds-social-networks.entry-0Q7OwcYS.js +0 -1
- package/eds-social-networks.entry-CWPTBmxN.mjs +0 -50
- package/eds-switch.entry-DeWyzUU9.mjs +0 -29
- package/eds-switch.entry-qYhLXAv2.js +0 -1
- package/eds-tooltip.entry-B5DXjEqa.js +0 -5
- package/eds-tooltip.entry-DJZDeWm0.mjs +0 -31
- package/eds-trl.entry-CMwFX2VA.js +0 -1
- package/incorrect-use-of-colors.entry-C0MGEaLB.mjs +0 -42
- package/incorrect-use-of-colors.entry-CzcQmvFc.js +0 -1
- package/index-ECY2yg1E.js +0 -21
- package/token-ratios.entry-BoaLF_aM.js +0 -1
- package/token-spacing.entry-B6e3-GJR.js +0 -1
- package/token-spacing.entry-DuYrBWKx.mjs +0 -12
|
@@ -1,10 +1,303 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import { s as
|
|
3
|
-
import { c as
|
|
4
|
-
import { p as
|
|
5
|
-
import { h as
|
|
6
|
-
import { h as
|
|
7
|
-
const
|
|
1
|
+
import { r as p, c as w, h as i, g as y, H as hn } from "./index-zMBfbHLg.mjs";
|
|
2
|
+
import { s as I, m as fn, a as en } from "./analytics-d99780e3-Bay18Oil.mjs";
|
|
3
|
+
import { c as N } from "./index-39c58238-BwYCDOHZ.mjs";
|
|
4
|
+
import { p as R } from "./sharedUtils-a550989c-Ci3Tx3jc.mjs";
|
|
5
|
+
import { h as tn } from "./logo-color-7f1fd803-CFgbXdt8.mjs";
|
|
6
|
+
import { h as bn, a as mn, b as un, c as pn, v as xn, d as yn, e as vn, f as wn, g as kn } from "./logo-white-no-bg-f382f86f-YhfmNmGG.mjs";
|
|
7
|
+
const Sn = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.min-h-56{min-height:3.5rem}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.break-words{overflow-wrap:break-word}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.relative{position:relative}.absolute{position:absolute}.inset-x-16{left:1rem;right:1rem}.top-16{top:1rem}.pr-32{padding-right:2rem}.pr-36{padding-right:2.25rem}.pr-40{padding-right:2.5rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-md{border-radius:12px}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.text-light{color:var(--grey-700)}.z-1{z-index:1}.z-10{z-index:10}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.h-0{height:0rem}.h-auto{height:auto}.pt-4{padding-top:0.25rem}.overflow-hidden{overflow:hidden}.grid{display:grid}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-16{padding:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.text-left{text-align:left}.text-center{text-align:center}", Cn = Sn, En = class {
|
|
8
|
+
constructor(n) {
|
|
9
|
+
p(this, n), this.accordion = w(this, "accordion", 7), this.handleClick = () => {
|
|
10
|
+
var e;
|
|
11
|
+
this.isExpanded = !this.isExpanded, this.accordion.emit(this.isExpanded), this.setPanelHeight(), I({
|
|
12
|
+
category: "ui-component",
|
|
13
|
+
parentContext: null,
|
|
14
|
+
tag: this.el.tagName.toLowerCase(),
|
|
15
|
+
name: ((e = this.heading) === null || e === void 0 ? void 0 : e.toLowerCase()) || "",
|
|
16
|
+
action: this.isExpanded ? "expanded" : "collapsed"
|
|
17
|
+
});
|
|
18
|
+
}, this.setPanelHeight = () => {
|
|
19
|
+
this.childContentRef && (this.shortContent = this.wrapperRef.scrollWidth > 830 && !this.description ? this.childContentRef.scrollHeight <= 80 : this.childContentRef.scrollHeight <= 20, this.panelHeight = this.isExpanded && !this.shortContent ? this.childContentRef.scrollHeight : 0), this.headerRef && (this.headerHeight = this.headerRef.scrollHeight - 30);
|
|
20
|
+
}, this.heading = void 0, this.description = void 0, this.switchBg = !0, this.expanded = !1, this.clampText = !0, this.buttonIntent = "tertiary", this.isExpanded = this.expanded, this.panelHeight = 0, this.shortContent = !1, this.headerHeight = 0;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Lifecycle method that sets up the initial panel height and adds a resize event listener
|
|
24
|
+
* to recalculate height on window resize.
|
|
25
|
+
*/
|
|
26
|
+
componentDidLoad() {
|
|
27
|
+
this.setPanelHeight(), window.addEventListener("resize", this.setPanelHeight);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Lifecycle method that cleans up the resize event listener when the component is removed.
|
|
31
|
+
*/
|
|
32
|
+
disconnectedCallback() {
|
|
33
|
+
window.removeEventListener("resize", this.setPanelHeight);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Renders the accordion structure, including header, content, description, and any slotted content.
|
|
37
|
+
* Adjusts styles based on `switchBg`, `tiny`, `clampText`, and other props.
|
|
38
|
+
*/
|
|
39
|
+
render() {
|
|
40
|
+
return i("div", { key: "1abfd8bfea763bc10e6f17148dbc252d0c3ffdea", ref: (n) => this.wrapperRef = n, class: `flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
|
|
41
|
+
${this.switchBg && this.isExpanded ? "bg-inverse" : "bg-default"}
|
|
42
|
+
${this.switchBg ? "hover:bg-inverse" : ""}
|
|
43
|
+
${this.description ? "min-h-56" : ""}` }, i("h3", { key: "137a3311195d51f46c6677558219828e5f4d06b5", ref: (n) => this.headerRef = n, class: "mr-auto f-heading-06 text-left absolute inset-x-16 break-words top-16 pr-40" }, this.heading), i("div", { key: "0fc6d493fd61726a53a8c4311bd183eb3ad5b270", class: "ml-auto" }, i("eds-button", { key: "cb8182e05c5c11950c0e624ce6b11e27a4d506ab", id: "toggleAccordion", intent: this.buttonIntent, "aria-expanded": this.isExpanded || this.shortContent, "aria-label": "Toggle accordion", "aria-controls": "accordionSection", class: "effect-color flex w-full items-center justify-between rounded-md", onClick: this.handleClick, icon: "chevron-down" })), i("div", { key: "084bfb116dcccadf7253ca8ac8de6a1e1d4aa41f", class: "w-full", style: Number.isFinite(this.headerHeight) ? { marginTop: `${this.headerHeight}px` } : {} }, this.description ? i("span", { class: `text-light ${!this.isExpanded && this.clampText ? "line-clamp-1" : ""}` }, this.description) : null, i("section", { key: "c332a210fa4ce90f1974098ff790a7600dfb1721", id: "accordionSection", "aria-labelledby": "accordionHeader", "aria-hidden": !this.isExpanded, class: `z-1 effect-height relative h-0 w-full ${!this.isExpanded && this.clampText ? "overflow-hidden" : ""}`, style: { height: this.isExpanded ? "auto" : "0" } }, i("div", { key: "842bc3bc7a968ef5a428a97327f38253e8a32888", ref: (n) => this.childContentRef = n, class: "accordion-content effect-color pt-4", "aria-hidden": !this.isExpanded }, i("span", { key: "7c8fa8040da18cc2c128b42cdf9e75bfffe4c439", class: `${!this.isExpanded && this.clampText ? "line-clamp-2" : ""}` }, i("slot", { key: "852837c0c8c9d8a36f6263f7a943f50d82563a3c" }))))));
|
|
44
|
+
}
|
|
45
|
+
get el() {
|
|
46
|
+
return y(this);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
En.style = Cn;
|
|
50
|
+
const zn = `*,
|
|
51
|
+
::before,
|
|
52
|
+
::after {
|
|
53
|
+
box-sizing: border-box;
|
|
54
|
+
border-width: 0;
|
|
55
|
+
border-style: solid;
|
|
56
|
+
border-color: currentColor;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
p {
|
|
60
|
+
margin: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.f-ui-01 {
|
|
64
|
+
font-family: var(--f-ui-01-fontFamily);
|
|
65
|
+
font-weight: var(--f-ui-01-fontWeight);
|
|
66
|
+
font-size: var(--f-ui-01-fontSize);
|
|
67
|
+
line-height: var(--f-ui-01-lineHeight);
|
|
68
|
+
letter-spacing: var(--f-ui-01-letterSpacing);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.border-inside {
|
|
72
|
+
position: relative;
|
|
73
|
+
|
|
74
|
+
&::after {
|
|
75
|
+
pointer-events: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&::after {
|
|
79
|
+
position: absolute;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&::after {
|
|
83
|
+
inset: 0rem;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&::after {
|
|
87
|
+
z-index: 1;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&::after {
|
|
91
|
+
border-radius: 8px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&::after {
|
|
95
|
+
border-width: 1px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&::after {
|
|
99
|
+
border-width: 2px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&::after {
|
|
103
|
+
border-color: rgba(0, 0, 0, .1);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&::after {
|
|
107
|
+
content: '';
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.flex {
|
|
112
|
+
display: flex;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.w-full {
|
|
116
|
+
width: 100%;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.flex-row {
|
|
120
|
+
flex-direction: row;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.items-center {
|
|
124
|
+
align-items: center;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.justify-between {
|
|
128
|
+
justify-content: space-between;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.gap-x-12 {
|
|
132
|
+
-moz-column-gap: 0.75rem;
|
|
133
|
+
column-gap: 0.75rem;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.space-y-12> :not([hidden])~ :not([hidden]) {
|
|
137
|
+
--tw-space-y-reverse: 0;
|
|
138
|
+
margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
|
|
139
|
+
margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.rounded-lg {
|
|
143
|
+
border-radius: 16px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.bg-dark {
|
|
147
|
+
background-color: var(--grey-300);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.bg-error {
|
|
151
|
+
background-color: var(--red-200);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.bg-success {
|
|
155
|
+
background-color: var(--green-200);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.bg-warning {
|
|
159
|
+
background-color: var(--yellow-200);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.p-16 {
|
|
163
|
+
padding: 1rem;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.p-20 {
|
|
167
|
+
padding: 1.25rem;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.px-12 {
|
|
171
|
+
padding-left: 0.75rem;
|
|
172
|
+
padding-right: 0.75rem;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.px-20 {
|
|
176
|
+
padding-left: 1.25rem;
|
|
177
|
+
padding-right: 1.25rem;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.py-12 {
|
|
181
|
+
padding-top: 0.75rem;
|
|
182
|
+
padding-bottom: 0.75rem;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.py-20 {
|
|
186
|
+
padding-top: 1.25rem;
|
|
187
|
+
padding-bottom: 1.25rem;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.py-8 {
|
|
191
|
+
padding-top: 0.5rem;
|
|
192
|
+
padding-bottom: 0.5rem;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.pr-12 {
|
|
196
|
+
padding-right: 0.75rem;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.shadow {
|
|
200
|
+
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
201
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
[class*=underline-] {
|
|
205
|
+
text-decoration-line: underline;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.after\\:rounded-lg::after {
|
|
209
|
+
border-radius: 16px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.after\\:border-softest::after {
|
|
213
|
+
border-color: rgba(0, 0, 0, .05);
|
|
214
|
+
}`, Fn = zn, An = N(["w-full bg-dark"], {
|
|
215
|
+
variants: {
|
|
216
|
+
intent: {
|
|
217
|
+
default: "",
|
|
218
|
+
warning: "bg-warning",
|
|
219
|
+
error: "bg-error",
|
|
220
|
+
success: "bg-success"
|
|
221
|
+
},
|
|
222
|
+
brd: {
|
|
223
|
+
rounded: "rounded-lg border-inside after:border-softest after:rounded-lg",
|
|
224
|
+
normal: ""
|
|
225
|
+
},
|
|
226
|
+
direction: {
|
|
227
|
+
vertical: "space-y-12",
|
|
228
|
+
horizontal: "flex flex-row items-center justify-between gap-x-12"
|
|
229
|
+
},
|
|
230
|
+
withBtn: {
|
|
231
|
+
false: "",
|
|
232
|
+
true: ""
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
compoundVariants: [
|
|
236
|
+
{
|
|
237
|
+
direction: "horizontal",
|
|
238
|
+
withBtn: !0,
|
|
239
|
+
class: "px-20 pr-12 py-12"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
direction: "horizontal",
|
|
243
|
+
withBtn: !1,
|
|
244
|
+
class: "p-20"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
direction: "vertical",
|
|
248
|
+
withBtn: !0,
|
|
249
|
+
class: "p-16"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
direction: "vertical",
|
|
253
|
+
withBtn: !1,
|
|
254
|
+
class: "px-12 py-20"
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
defaultVariants: {
|
|
258
|
+
intent: "default",
|
|
259
|
+
brd: "rounded",
|
|
260
|
+
direction: "horizontal"
|
|
261
|
+
}
|
|
262
|
+
}), In = class {
|
|
263
|
+
constructor(n) {
|
|
264
|
+
p(this, n), this.edsalert = w(this, "edsalert", 7), this.message = void 0, this.pressableLabel = void 0, this.pressableUrl = void 0, this.direction = "horizontal", this.intent = "default", this.brd = "rounded", this.withBtn = !1;
|
|
265
|
+
}
|
|
266
|
+
componentWillLoad() {
|
|
267
|
+
this.withBtn = !!this.pressableLabel;
|
|
268
|
+
}
|
|
269
|
+
componentDidLoad() {
|
|
270
|
+
var n;
|
|
271
|
+
const e = (n = this.el.shadowRoot) === null || n === void 0 ? void 0 : n.querySelector("eds-link");
|
|
272
|
+
e && this.emitContext(e);
|
|
273
|
+
}
|
|
274
|
+
emitContext(n) {
|
|
275
|
+
const e = new CustomEvent("parentContext", {
|
|
276
|
+
detail: {
|
|
277
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
278
|
+
identifier: null
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
n.dispatchEvent(e);
|
|
282
|
+
}
|
|
283
|
+
handleAction() {
|
|
284
|
+
this.edsalert.emit();
|
|
285
|
+
}
|
|
286
|
+
render() {
|
|
287
|
+
const n = this.intent !== "default" ? `${this.intent} alert` : "alert";
|
|
288
|
+
return i("div", { key: "2d22944e7ae86cf2523c194e20215a3d986083d9", class: An({
|
|
289
|
+
intent: this.intent,
|
|
290
|
+
brd: this.brd,
|
|
291
|
+
direction: this.direction,
|
|
292
|
+
withBtn: this.withBtn
|
|
293
|
+
}), role: "alert", "aria-label": n, "aria-live": this.intent === "error" ? "assertive" : "polite", "aria-labelledby": "alert-message", "aria-describedby": this.withBtn ? "alert-action" : void 0 }, i("p", { key: "b6c22446b0d87fb01a3cb882fe205ef48ea60b05", id: "alert-message", class: "f-ui-01 py-8", innerHTML: this.message }), this.withBtn && i("div", { key: "8414820eb7b65c83459cfb90adef3ea696e42444", id: "alert-action" }, this.pressableUrl ? i("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: !0 }) : i("eds-button", { class: "eds-alert-button", label: this.pressableLabel, intent: "secondary", onClick: () => this.handleAction() })));
|
|
294
|
+
}
|
|
295
|
+
get el() {
|
|
296
|
+
return y(this);
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
In.style = Fn;
|
|
300
|
+
const Ln = `::before,
|
|
8
301
|
::after {
|
|
9
302
|
box-sizing: border-box;
|
|
10
303
|
border-width: 0;
|
|
@@ -205,9 +498,9 @@ abbr:where([title]) {
|
|
|
205
498
|
|
|
206
499
|
.bg-gradient-04-bottom {
|
|
207
500
|
background: linear-gradient(to top, #2B69FC, ease-in-out, #E6E6E6);
|
|
208
|
-
}`,
|
|
501
|
+
}`, _n = Ln, Tn = class {
|
|
209
502
|
constructor(n) {
|
|
210
|
-
|
|
503
|
+
p(this, n), this.firstName = "User", this.lastName = "Avatar", this.picture = void 0, this.initials = void 0, this.color = "grey";
|
|
211
504
|
}
|
|
212
505
|
/**
|
|
213
506
|
* Flag to render the avatar with rounded (pill) shape if `true`.
|
|
@@ -251,20 +544,119 @@ abbr:where([title]) {
|
|
|
251
544
|
* @returns {JSX.Element} The rendered avatar component.
|
|
252
545
|
*/
|
|
253
546
|
render() {
|
|
254
|
-
return i("div", { key: "
|
|
547
|
+
return i("div", { key: "34e86e50b1176efd8ae0cd9b30cd3823527d7eee", class: this.containerClasses }, this.picture ? i("eds-img", { src: this.picture, width: 54, height: 54, sizes: "120px", alt: `${this.firstName} ${this.lastName}`, lazyload: !0, withBg: !0 }) : i("abbr", { title: this.computedInitials || `${this.firstName} ${this.lastName}`, class: "!no-underline f-ui-01" }, this.computedInitials));
|
|
548
|
+
}
|
|
549
|
+
};
|
|
550
|
+
Tn.style = _n;
|
|
551
|
+
const $n = ".border-softer{border-color:rgba(0, 0, 0, .1)}.border-default{border-color:var(--black)}.my-16{margin-top:1rem;margin-bottom:1rem}.block{display:block}.w-full{width:100%}.border-t-2{border-top-width:2px}", On = $n, Rn = class {
|
|
552
|
+
constructor(n) {
|
|
553
|
+
p(this, n), this.inverse = !1;
|
|
554
|
+
}
|
|
555
|
+
render() {
|
|
556
|
+
return i("hr", { key: "688e11c730af1193f28db196cd144c6dd2efc3c6", class: `${this.inverse ? "border-default" : "border-softer"} my-16 inline-block w-full border-t-2` });
|
|
255
557
|
}
|
|
256
558
|
};
|
|
257
|
-
|
|
258
|
-
const
|
|
559
|
+
Rn.style = On;
|
|
560
|
+
const Dn = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.hidden{display:none}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.125rem * var(--tw-space-x-reverse));margin-left:calc(0.125rem * calc(1 - var(--tw-space-x-reverse)))}.px-2{padding-left:0.125rem;padding-right:0.125rem}.w-20{width:1.25rem}.w-28{width:1.75rem}.w-32{width:2rem}.w-44{width:2.75rem}.h-20{height:1.25rem}.h-24{height:1.5rem}.h-28{height:1.75rem}.h-32{height:2rem}@media (min-width: 750px){.md\\:block{display:block}}", Pn = Dn, Nn = class {
|
|
259
561
|
constructor(n) {
|
|
260
|
-
|
|
562
|
+
p(this, n), this.updateScreenSize = () => {
|
|
563
|
+
const e = window.innerWidth;
|
|
564
|
+
e < 769 ? this.maxVisibleItems = 3 : e <= 1024 ? this.maxVisibleItems = 3 : e <= 1280 ? this.maxVisibleItems = 3 : e <= 2200 ? this.maxVisibleItems = 4 : this.maxVisibleItems = 6;
|
|
565
|
+
}, this.items = [], this.intent = "ghost", this.parsedItems = [], this.isSmallScreen = !1, this.maxVisibleItems = 6;
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* Watches for changes to the `items` prop and parses it.
|
|
569
|
+
*/
|
|
570
|
+
parseItems(n) {
|
|
571
|
+
this.parsedItems = R(n);
|
|
261
572
|
}
|
|
573
|
+
/**
|
|
574
|
+
* Lifecycle method that runs when the component is about to be loaded.
|
|
575
|
+
* It parses the initial `items` prop value.
|
|
576
|
+
*/
|
|
577
|
+
componentWillLoad() {
|
|
578
|
+
this.parseItems(this.items), this.updateScreenSize(), window.addEventListener("resize", this.updateScreenSize);
|
|
579
|
+
}
|
|
580
|
+
disconnectedCallback() {
|
|
581
|
+
window.removeEventListener("resize", this.updateScreenSize);
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* Lifecycle method that runs when the component has fully loaded.
|
|
585
|
+
* It emits a custom event for each `eds-link` element contained within the breadcrumb.
|
|
586
|
+
*/
|
|
587
|
+
componentDidLoad() {
|
|
588
|
+
var n;
|
|
589
|
+
const e = (n = this.el.shadowRoot) === null || n === void 0 ? void 0 : n.querySelectorAll("eds-link");
|
|
590
|
+
e == null || e.forEach((t) => {
|
|
591
|
+
this.emitContext(t);
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Emits a custom event called `parentContext` for a given link element.
|
|
596
|
+
* This event provides context information about the breadcrumb component.
|
|
597
|
+
*
|
|
598
|
+
* @param linkElement - The link element to which the event will be dispatched.
|
|
599
|
+
*/
|
|
600
|
+
emitContext(n) {
|
|
601
|
+
const e = new CustomEvent("parentContext", {
|
|
602
|
+
detail: {
|
|
603
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
604
|
+
identifier: null
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
n.dispatchEvent(e);
|
|
608
|
+
}
|
|
609
|
+
/**
|
|
610
|
+
* Returns breadcrumb items with potential truncation if there are too many.
|
|
611
|
+
* It inserts an ellipsis item where necessary.
|
|
612
|
+
*/
|
|
613
|
+
getTruncatedItems() {
|
|
614
|
+
const n = this.parsedItems.length, e = { label: "...", url: "", isHidden: !0 };
|
|
615
|
+
if (n > this.maxVisibleItems) {
|
|
616
|
+
const t = this.parsedItems[0], r = this.parsedItems.slice(-2);
|
|
617
|
+
if (this.maxVisibleItems === 3)
|
|
618
|
+
return [t, e, ...r];
|
|
619
|
+
if (this.maxVisibleItems === 4) {
|
|
620
|
+
const l = this.parsedItems[Math.floor(n / 2)];
|
|
621
|
+
return [t, l, e, ...r];
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
return this.parsedItems;
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* Helper to determine the display label and full label.
|
|
628
|
+
* If the label is longer than 15 characters and the item is not the current (last) item,
|
|
629
|
+
* we display a truncated version but use the full label for aria attributes.
|
|
630
|
+
*/
|
|
631
|
+
getLabels(n, e) {
|
|
632
|
+
return !e && n.label.length > 15 ? { displayLabel: `${n.label.slice(0, 15)}...`, fullLabel: n.label } : { displayLabel: n.label, fullLabel: n.label };
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Render method for the breadcrumb component.
|
|
636
|
+
* It creates a navigation element with an ordered list of breadcrumb links.
|
|
637
|
+
* The last link is marked as the current page.
|
|
638
|
+
*/
|
|
262
639
|
render() {
|
|
263
|
-
|
|
640
|
+
const n = this.getTruncatedItems();
|
|
641
|
+
return i("nav", { key: "0625a234ec9f5095abbeaafa11e56bceb0432764", "aria-label": "Breadcrumb" }, i("ol", { key: "3898a4b048eca6c606a6948b26ec25a608cb908e", class: "flex items-center space-x-2" }, n.map((e, t) => {
|
|
642
|
+
const r = t === n.length - 1;
|
|
643
|
+
return i("li", { class: "flex items-center" }, e.isHidden ? i("eds-link", { label: "...", url: "#", intent: "strong", current: !1, "aria-label": "...", size: "small", "icon-small": "false", icon: "chevron-right" }) : (() => {
|
|
644
|
+
const { fullLabel: l } = this.getLabels(e, r), s = r ? this.intent === "strong" ? "weak" : this.intent === "weak" ? "strong" : this.intent : this.intent;
|
|
645
|
+
return i("eds-link", Object.assign({ label: l, url: e.url, intent: s, disabled: r, current: r, "aria-label": l, size: "small", "icon-small": "false" }, r ? { "aria-current": "page" } : {}));
|
|
646
|
+
})(), !r && !e.isHidden && i("eds-icon-wrapper", { icon: "chevron-right", class: "w-20 h-20" }));
|
|
647
|
+
})));
|
|
648
|
+
}
|
|
649
|
+
get el() {
|
|
650
|
+
return y(this);
|
|
651
|
+
}
|
|
652
|
+
static get watchers() {
|
|
653
|
+
return {
|
|
654
|
+
items: ["parseItems"]
|
|
655
|
+
};
|
|
264
656
|
}
|
|
265
657
|
};
|
|
266
|
-
|
|
267
|
-
const
|
|
658
|
+
Nn.style = Pn;
|
|
659
|
+
const Hn = `*,
|
|
268
660
|
::before,
|
|
269
661
|
::after {
|
|
270
662
|
box-sizing: border-box;
|
|
@@ -630,6 +1022,10 @@ button,
|
|
|
630
1022
|
display: block;
|
|
631
1023
|
}
|
|
632
1024
|
|
|
1025
|
+
.\\!block {
|
|
1026
|
+
display: block !important;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
633
1029
|
.inline-block {
|
|
634
1030
|
display: inline-block;
|
|
635
1031
|
}
|
|
@@ -1173,9 +1569,9 @@ button,
|
|
|
1173
1569
|
|
|
1174
1570
|
.hover\\:before\\:opacity-100:hover::before {
|
|
1175
1571
|
opacity: 1;
|
|
1176
|
-
}`,
|
|
1572
|
+
}`, jn = Hn, Wn = class {
|
|
1177
1573
|
constructor(n) {
|
|
1178
|
-
|
|
1574
|
+
p(this, n), this.button = N([
|
|
1179
1575
|
"relative inline-flex items-center",
|
|
1180
1576
|
"py-8",
|
|
1181
1577
|
"effect-focus effect-color",
|
|
@@ -1189,7 +1585,7 @@ button,
|
|
|
1189
1585
|
secondary: "border-inside border-inside-inverse text-inverse bg-strongest hover:bg-strong-dark",
|
|
1190
1586
|
tertiary: "border-inside after:border-softest bg-dark hover:bg-darker",
|
|
1191
1587
|
ghost: "border-inside hover:bg-darker",
|
|
1192
|
-
ghostInverse: "border-inside hover:bg-dark"
|
|
1588
|
+
ghostInverse: "border-inside text-lightest hover:bg-dark"
|
|
1193
1589
|
},
|
|
1194
1590
|
loading: {
|
|
1195
1591
|
true: "pointer-events-none",
|
|
@@ -1256,70 +1652,1695 @@ button,
|
|
|
1256
1652
|
class: "pl-8",
|
|
1257
1653
|
iconOnly: !1
|
|
1258
1654
|
},
|
|
1259
|
-
{
|
|
1260
|
-
iconSmall: !0,
|
|
1261
|
-
iconPos: "right",
|
|
1262
|
-
size: "large",
|
|
1263
|
-
class: "pr-8",
|
|
1264
|
-
iconOnly: !1
|
|
1655
|
+
{
|
|
1656
|
+
iconSmall: !0,
|
|
1657
|
+
iconPos: "right",
|
|
1658
|
+
size: "large",
|
|
1659
|
+
class: "pr-8",
|
|
1660
|
+
iconOnly: !1
|
|
1661
|
+
}
|
|
1662
|
+
],
|
|
1663
|
+
defaultVariants: {
|
|
1664
|
+
intent: "secondary",
|
|
1665
|
+
loading: !1,
|
|
1666
|
+
iconSmall: !1,
|
|
1667
|
+
iconPos: "right",
|
|
1668
|
+
iconOnly: !1,
|
|
1669
|
+
pill: !1,
|
|
1670
|
+
size: "small"
|
|
1671
|
+
}
|
|
1672
|
+
}), this.parentContext = null, this.label = void 0, this.ariaLabel = "Button", this.elementType = "button", this.intent = "secondary", this.loading = !1, this.disabled = !1, this.pill = !1, this.icon = void 0, this.size = "small", this.iconPos = "right", this.iconSmall = !1, this.extraClass = void 0, this.triggerClick = void 0;
|
|
1673
|
+
}
|
|
1674
|
+
handleParentContext(n) {
|
|
1675
|
+
n.target === this.el && (this.parentContext = n.detail, n.stopPropagation());
|
|
1676
|
+
}
|
|
1677
|
+
handleClick(n) {
|
|
1678
|
+
var e, t;
|
|
1679
|
+
if (this.disabled || this.loading) {
|
|
1680
|
+
n.preventDefault();
|
|
1681
|
+
return;
|
|
1682
|
+
}
|
|
1683
|
+
I({
|
|
1684
|
+
category: "ui-component",
|
|
1685
|
+
parentContext: this.parentContext,
|
|
1686
|
+
tag: this.el.tagName.toLowerCase(),
|
|
1687
|
+
name: ((e = this.label) === null || e === void 0 ? void 0 : e.toLowerCase()) || ((t = this.ariaLabel) === null || t === void 0 ? void 0 : t.toLowerCase()) || "",
|
|
1688
|
+
action: "click"
|
|
1689
|
+
}), typeof this.triggerClick == "function" && this.triggerClick();
|
|
1690
|
+
}
|
|
1691
|
+
handleKeyDown(n) {
|
|
1692
|
+
this.disabled || this.loading || (n.key === "Enter" || this.elementType === "a" && n.key === " ") && (n.preventDefault(), this.handleClick(n));
|
|
1693
|
+
}
|
|
1694
|
+
render() {
|
|
1695
|
+
const n = this.button({
|
|
1696
|
+
intent: this.intent,
|
|
1697
|
+
loading: this.loading,
|
|
1698
|
+
iconPos: this.iconPos,
|
|
1699
|
+
size: this.size,
|
|
1700
|
+
pill: this.pill,
|
|
1701
|
+
iconOnly: !this.label,
|
|
1702
|
+
iconSmall: this.iconSmall
|
|
1703
|
+
}), e = this.elementType, t = !this.disabled && !this.loading;
|
|
1704
|
+
return i(hn, { key: "835cc81d3563abf1b5cb4c21165de1ef726d1e43" }, i(e, { key: "df05b2b2152e707e5fdd6028c5f557097d7e2b04", tabindex: t ? "0" : "-1", "aria-label": this.label ? void 0 : this.ariaLabel, "aria-disabled": this.disabled || this.loading ? "true" : void 0, "aria-busy": this.loading ? "true" : void 0, disabled: this.elementType === "button" ? this.disabled || this.loading : void 0, role: this.elementType === "a" ? "button" : void 0, class: `${n || ""} ${this.extraClass || ""}`, onClick: (r) => this.handleClick(r), onKeyDown: (r) => this.handleKeyDown(r) }, this.label && i("span", { key: "27c7473403e7c1bfd3dfc270151d44dbb639ceb3", class: this.loading ? "opacity-0" : "", "aria-hidden": this.loading ? "true" : void 0 }, this.label), this.loading && i("span", { key: "f52496884816bc299fb76c1afae5e4798bf642d2", class: "absolute inset-0 flex items-center justify-center", "aria-hidden": "true" }, i("span", { key: "d42bf2c229f6956a1e0dbe64aa6c79ad5608ca5c", class: "loader", style: {
|
|
1705
|
+
border: `3px solid ${this.intent === "secondary" ? "rgba(255, 255, 255, .3)" : "rgba(0, 0, 0, .3)"}`,
|
|
1706
|
+
borderBottomColor: this.intent === "secondary" ? "#fff" : "#000"
|
|
1707
|
+
} })), this.icon ? i("eds-icon-wrapper", { class: `
|
|
1708
|
+
flex inline-flex items-center justify-center
|
|
1709
|
+
${this.size === "large" ? "h-24 w-24" : "h-20 w-20"}
|
|
1710
|
+
`, icon: this.icon, "aria-hidden": "true" }) : null));
|
|
1711
|
+
}
|
|
1712
|
+
static get delegatesFocus() {
|
|
1713
|
+
return !0;
|
|
1714
|
+
}
|
|
1715
|
+
get el() {
|
|
1716
|
+
return y(this);
|
|
1717
|
+
}
|
|
1718
|
+
};
|
|
1719
|
+
Wn.style = jn;
|
|
1720
|
+
var rn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ln = { exports: {} };
|
|
1721
|
+
(function(n) {
|
|
1722
|
+
var e = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
|
1723
|
+
/**
|
|
1724
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
1725
|
+
*
|
|
1726
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
1727
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
1728
|
+
* @namespace
|
|
1729
|
+
* @public
|
|
1730
|
+
*/
|
|
1731
|
+
var t = function(r) {
|
|
1732
|
+
var l = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, s = 0, c = {}, d = {
|
|
1733
|
+
/**
|
|
1734
|
+
* By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
|
|
1735
|
+
* current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
|
|
1736
|
+
* additional languages or plugins yourself.
|
|
1737
|
+
*
|
|
1738
|
+
* By setting this value to `true`, Prism will not automatically highlight all code elements on the page.
|
|
1739
|
+
*
|
|
1740
|
+
* You obviously have to change this value before the automatic highlighting started. To do this, you can add an
|
|
1741
|
+
* empty Prism object into the global scope before loading the Prism script like this:
|
|
1742
|
+
*
|
|
1743
|
+
* ```js
|
|
1744
|
+
* window.Prism = window.Prism || {};
|
|
1745
|
+
* Prism.manual = true;
|
|
1746
|
+
* // add a new <script> to load Prism's script
|
|
1747
|
+
* ```
|
|
1748
|
+
*
|
|
1749
|
+
* @default false
|
|
1750
|
+
* @type {boolean}
|
|
1751
|
+
* @memberof Prism
|
|
1752
|
+
* @public
|
|
1753
|
+
*/
|
|
1754
|
+
manual: r.Prism && r.Prism.manual,
|
|
1755
|
+
/**
|
|
1756
|
+
* By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
|
|
1757
|
+
* `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
|
|
1758
|
+
* own worker, you don't want it to do this.
|
|
1759
|
+
*
|
|
1760
|
+
* By setting this value to `true`, Prism will not add its own listeners to the worker.
|
|
1761
|
+
*
|
|
1762
|
+
* You obviously have to change this value before Prism executes. To do this, you can add an
|
|
1763
|
+
* empty Prism object into the global scope before loading the Prism script like this:
|
|
1764
|
+
*
|
|
1765
|
+
* ```js
|
|
1766
|
+
* window.Prism = window.Prism || {};
|
|
1767
|
+
* Prism.disableWorkerMessageHandler = true;
|
|
1768
|
+
* // Load Prism's script
|
|
1769
|
+
* ```
|
|
1770
|
+
*
|
|
1771
|
+
* @default false
|
|
1772
|
+
* @type {boolean}
|
|
1773
|
+
* @memberof Prism
|
|
1774
|
+
* @public
|
|
1775
|
+
*/
|
|
1776
|
+
disableWorkerMessageHandler: r.Prism && r.Prism.disableWorkerMessageHandler,
|
|
1777
|
+
/**
|
|
1778
|
+
* A namespace for utility methods.
|
|
1779
|
+
*
|
|
1780
|
+
* All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
|
|
1781
|
+
* change or disappear at any time.
|
|
1782
|
+
*
|
|
1783
|
+
* @namespace
|
|
1784
|
+
* @memberof Prism
|
|
1785
|
+
*/
|
|
1786
|
+
util: {
|
|
1787
|
+
encode: function a(o) {
|
|
1788
|
+
return o instanceof b ? new b(o.type, a(o.content), o.alias) : Array.isArray(o) ? o.map(a) : o.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
|
1789
|
+
},
|
|
1790
|
+
/**
|
|
1791
|
+
* Returns the name of the type of the given value.
|
|
1792
|
+
*
|
|
1793
|
+
* @param {any} o
|
|
1794
|
+
* @returns {string}
|
|
1795
|
+
* @example
|
|
1796
|
+
* type(null) === 'Null'
|
|
1797
|
+
* type(undefined) === 'Undefined'
|
|
1798
|
+
* type(123) === 'Number'
|
|
1799
|
+
* type('foo') === 'String'
|
|
1800
|
+
* type(true) === 'Boolean'
|
|
1801
|
+
* type([1, 2]) === 'Array'
|
|
1802
|
+
* type({}) === 'Object'
|
|
1803
|
+
* type(String) === 'Function'
|
|
1804
|
+
* type(/abc+/) === 'RegExp'
|
|
1805
|
+
*/
|
|
1806
|
+
type: function(a) {
|
|
1807
|
+
return Object.prototype.toString.call(a).slice(8, -1);
|
|
1808
|
+
},
|
|
1809
|
+
/**
|
|
1810
|
+
* Returns a unique number for the given object. Later calls will still return the same number.
|
|
1811
|
+
*
|
|
1812
|
+
* @param {Object} obj
|
|
1813
|
+
* @returns {number}
|
|
1814
|
+
*/
|
|
1815
|
+
objId: function(a) {
|
|
1816
|
+
return a.__id || Object.defineProperty(a, "__id", { value: ++s }), a.__id;
|
|
1817
|
+
},
|
|
1818
|
+
/**
|
|
1819
|
+
* Creates a deep clone of the given object.
|
|
1820
|
+
*
|
|
1821
|
+
* The main intended use of this function is to clone language definitions.
|
|
1822
|
+
*
|
|
1823
|
+
* @param {T} o
|
|
1824
|
+
* @param {Record<number, any>} [visited]
|
|
1825
|
+
* @returns {T}
|
|
1826
|
+
* @template T
|
|
1827
|
+
*/
|
|
1828
|
+
clone: function a(o, g) {
|
|
1829
|
+
g = g || {};
|
|
1830
|
+
var h, f;
|
|
1831
|
+
switch (d.util.type(o)) {
|
|
1832
|
+
case "Object":
|
|
1833
|
+
if (f = d.util.objId(o), g[f])
|
|
1834
|
+
return g[f];
|
|
1835
|
+
h = /** @type {Record<string, any>} */
|
|
1836
|
+
{}, g[f] = h;
|
|
1837
|
+
for (var u in o)
|
|
1838
|
+
o.hasOwnProperty(u) && (h[u] = a(o[u], g));
|
|
1839
|
+
return (
|
|
1840
|
+
/** @type {any} */
|
|
1841
|
+
h
|
|
1842
|
+
);
|
|
1843
|
+
case "Array":
|
|
1844
|
+
return f = d.util.objId(o), g[f] ? g[f] : (h = [], g[f] = h, /** @type {Array} */
|
|
1845
|
+
/** @type {any} */
|
|
1846
|
+
o.forEach(function(x, m) {
|
|
1847
|
+
h[m] = a(x, g);
|
|
1848
|
+
}), /** @type {any} */
|
|
1849
|
+
h);
|
|
1850
|
+
default:
|
|
1851
|
+
return o;
|
|
1852
|
+
}
|
|
1853
|
+
},
|
|
1854
|
+
/**
|
|
1855
|
+
* Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
|
|
1856
|
+
*
|
|
1857
|
+
* If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
|
|
1858
|
+
*
|
|
1859
|
+
* @param {Element} element
|
|
1860
|
+
* @returns {string}
|
|
1861
|
+
*/
|
|
1862
|
+
getLanguage: function(a) {
|
|
1863
|
+
for (; a; ) {
|
|
1864
|
+
var o = l.exec(a.className);
|
|
1865
|
+
if (o)
|
|
1866
|
+
return o[1].toLowerCase();
|
|
1867
|
+
a = a.parentElement;
|
|
1868
|
+
}
|
|
1869
|
+
return "none";
|
|
1870
|
+
},
|
|
1871
|
+
/**
|
|
1872
|
+
* Sets the Prism `language-xxxx` class of the given element.
|
|
1873
|
+
*
|
|
1874
|
+
* @param {Element} element
|
|
1875
|
+
* @param {string} language
|
|
1876
|
+
* @returns {void}
|
|
1877
|
+
*/
|
|
1878
|
+
setLanguage: function(a, o) {
|
|
1879
|
+
a.className = a.className.replace(RegExp(l, "gi"), ""), a.classList.add("language-" + o);
|
|
1880
|
+
},
|
|
1881
|
+
/**
|
|
1882
|
+
* Returns the script element that is currently executing.
|
|
1883
|
+
*
|
|
1884
|
+
* This does __not__ work for line script element.
|
|
1885
|
+
*
|
|
1886
|
+
* @returns {HTMLScriptElement | null}
|
|
1887
|
+
*/
|
|
1888
|
+
currentScript: function() {
|
|
1889
|
+
if (typeof document > "u")
|
|
1890
|
+
return null;
|
|
1891
|
+
if ("currentScript" in document)
|
|
1892
|
+
return (
|
|
1893
|
+
/** @type {any} */
|
|
1894
|
+
document.currentScript
|
|
1895
|
+
);
|
|
1896
|
+
try {
|
|
1897
|
+
throw new Error();
|
|
1898
|
+
} catch (h) {
|
|
1899
|
+
var a = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(h.stack) || [])[1];
|
|
1900
|
+
if (a) {
|
|
1901
|
+
var o = document.getElementsByTagName("script");
|
|
1902
|
+
for (var g in o)
|
|
1903
|
+
if (o[g].src == a)
|
|
1904
|
+
return o[g];
|
|
1905
|
+
}
|
|
1906
|
+
return null;
|
|
1907
|
+
}
|
|
1908
|
+
},
|
|
1909
|
+
/**
|
|
1910
|
+
* Returns whether a given class is active for `element`.
|
|
1911
|
+
*
|
|
1912
|
+
* The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
|
|
1913
|
+
* if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
|
|
1914
|
+
* given class is just the given class with a `no-` prefix.
|
|
1915
|
+
*
|
|
1916
|
+
* Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
|
|
1917
|
+
* closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
|
|
1918
|
+
* ancestors have the given class or the negated version of it, then the default activation will be returned.
|
|
1919
|
+
*
|
|
1920
|
+
* In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
|
|
1921
|
+
* version of it, the class is considered active.
|
|
1922
|
+
*
|
|
1923
|
+
* @param {Element} element
|
|
1924
|
+
* @param {string} className
|
|
1925
|
+
* @param {boolean} [defaultActivation=false]
|
|
1926
|
+
* @returns {boolean}
|
|
1927
|
+
*/
|
|
1928
|
+
isActive: function(a, o, g) {
|
|
1929
|
+
for (var h = "no-" + o; a; ) {
|
|
1930
|
+
var f = a.classList;
|
|
1931
|
+
if (f.contains(o))
|
|
1932
|
+
return !0;
|
|
1933
|
+
if (f.contains(h))
|
|
1934
|
+
return !1;
|
|
1935
|
+
a = a.parentElement;
|
|
1936
|
+
}
|
|
1937
|
+
return !!g;
|
|
1938
|
+
}
|
|
1939
|
+
},
|
|
1940
|
+
/**
|
|
1941
|
+
* This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
|
|
1942
|
+
*
|
|
1943
|
+
* @namespace
|
|
1944
|
+
* @memberof Prism
|
|
1945
|
+
* @public
|
|
1946
|
+
*/
|
|
1947
|
+
languages: {
|
|
1948
|
+
/**
|
|
1949
|
+
* The grammar for plain, unformatted text.
|
|
1950
|
+
*/
|
|
1951
|
+
plain: c,
|
|
1952
|
+
plaintext: c,
|
|
1953
|
+
text: c,
|
|
1954
|
+
txt: c,
|
|
1955
|
+
/**
|
|
1956
|
+
* Creates a deep copy of the language with the given id and appends the given tokens.
|
|
1957
|
+
*
|
|
1958
|
+
* If a token in `redef` also appears in the copied language, then the existing token in the copied language
|
|
1959
|
+
* will be overwritten at its original position.
|
|
1960
|
+
*
|
|
1961
|
+
* ## Best practices
|
|
1962
|
+
*
|
|
1963
|
+
* Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
|
|
1964
|
+
* doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
|
|
1965
|
+
* understand the language definition because, normally, the order of tokens matters in Prism grammars.
|
|
1966
|
+
*
|
|
1967
|
+
* Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
|
|
1968
|
+
* Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
|
|
1969
|
+
*
|
|
1970
|
+
* @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
|
|
1971
|
+
* @param {Grammar} redef The new tokens to append.
|
|
1972
|
+
* @returns {Grammar} The new language created.
|
|
1973
|
+
* @public
|
|
1974
|
+
* @example
|
|
1975
|
+
* Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
|
|
1976
|
+
* // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
|
|
1977
|
+
* // at its original position
|
|
1978
|
+
* 'comment': { ... },
|
|
1979
|
+
* // CSS doesn't have a 'color' token, so this token will be appended
|
|
1980
|
+
* 'color': /\b(?:red|green|blue)\b/
|
|
1981
|
+
* });
|
|
1982
|
+
*/
|
|
1983
|
+
extend: function(a, o) {
|
|
1984
|
+
var g = d.util.clone(d.languages[a]);
|
|
1985
|
+
for (var h in o)
|
|
1986
|
+
g[h] = o[h];
|
|
1987
|
+
return g;
|
|
1988
|
+
},
|
|
1989
|
+
/**
|
|
1990
|
+
* Inserts tokens _before_ another token in a language definition or any other grammar.
|
|
1991
|
+
*
|
|
1992
|
+
* ## Usage
|
|
1993
|
+
*
|
|
1994
|
+
* This helper method makes it easy to modify existing languages. For example, the CSS language definition
|
|
1995
|
+
* not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
|
|
1996
|
+
* in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
|
|
1997
|
+
* appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
|
|
1998
|
+
* this:
|
|
1999
|
+
*
|
|
2000
|
+
* ```js
|
|
2001
|
+
* Prism.languages.markup.style = {
|
|
2002
|
+
* // token
|
|
2003
|
+
* };
|
|
2004
|
+
* ```
|
|
2005
|
+
*
|
|
2006
|
+
* then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
|
|
2007
|
+
* before existing tokens. For the CSS example above, you would use it like this:
|
|
2008
|
+
*
|
|
2009
|
+
* ```js
|
|
2010
|
+
* Prism.languages.insertBefore('markup', 'cdata', {
|
|
2011
|
+
* 'style': {
|
|
2012
|
+
* // token
|
|
2013
|
+
* }
|
|
2014
|
+
* });
|
|
2015
|
+
* ```
|
|
2016
|
+
*
|
|
2017
|
+
* ## Special cases
|
|
2018
|
+
*
|
|
2019
|
+
* If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
|
|
2020
|
+
* will be ignored.
|
|
2021
|
+
*
|
|
2022
|
+
* This behavior can be used to insert tokens after `before`:
|
|
2023
|
+
*
|
|
2024
|
+
* ```js
|
|
2025
|
+
* Prism.languages.insertBefore('markup', 'comment', {
|
|
2026
|
+
* 'comment': Prism.languages.markup.comment,
|
|
2027
|
+
* // tokens after 'comment'
|
|
2028
|
+
* });
|
|
2029
|
+
* ```
|
|
2030
|
+
*
|
|
2031
|
+
* ## Limitations
|
|
2032
|
+
*
|
|
2033
|
+
* The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
|
|
2034
|
+
* properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
|
|
2035
|
+
* differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
|
|
2036
|
+
* deleting properties which is necessary to insert at arbitrary positions.
|
|
2037
|
+
*
|
|
2038
|
+
* To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
|
|
2039
|
+
* Instead, it will create a new object and replace all references to the target object with the new one. This
|
|
2040
|
+
* can be done without temporarily deleting properties, so the iteration order is well-defined.
|
|
2041
|
+
*
|
|
2042
|
+
* However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
|
|
2043
|
+
* you hold the target object in a variable, then the value of the variable will not change.
|
|
2044
|
+
*
|
|
2045
|
+
* ```js
|
|
2046
|
+
* var oldMarkup = Prism.languages.markup;
|
|
2047
|
+
* var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
|
|
2048
|
+
*
|
|
2049
|
+
* assert(oldMarkup !== Prism.languages.markup);
|
|
2050
|
+
* assert(newMarkup === Prism.languages.markup);
|
|
2051
|
+
* ```
|
|
2052
|
+
*
|
|
2053
|
+
* @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
|
|
2054
|
+
* object to be modified.
|
|
2055
|
+
* @param {string} before The key to insert before.
|
|
2056
|
+
* @param {Grammar} insert An object containing the key-value pairs to be inserted.
|
|
2057
|
+
* @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
|
|
2058
|
+
* object to be modified.
|
|
2059
|
+
*
|
|
2060
|
+
* Defaults to `Prism.languages`.
|
|
2061
|
+
* @returns {Grammar} The new grammar object.
|
|
2062
|
+
* @public
|
|
2063
|
+
*/
|
|
2064
|
+
insertBefore: function(a, o, g, h) {
|
|
2065
|
+
h = h || /** @type {any} */
|
|
2066
|
+
d.languages;
|
|
2067
|
+
var f = h[a], u = {};
|
|
2068
|
+
for (var x in f)
|
|
2069
|
+
if (f.hasOwnProperty(x)) {
|
|
2070
|
+
if (x == o)
|
|
2071
|
+
for (var m in g)
|
|
2072
|
+
g.hasOwnProperty(m) && (u[m] = g[m]);
|
|
2073
|
+
g.hasOwnProperty(x) || (u[x] = f[x]);
|
|
2074
|
+
}
|
|
2075
|
+
var k = h[a];
|
|
2076
|
+
return h[a] = u, d.languages.DFS(d.languages, function(z, $) {
|
|
2077
|
+
$ === k && z != a && (this[z] = u);
|
|
2078
|
+
}), u;
|
|
2079
|
+
},
|
|
2080
|
+
// Traverse a language definition with Depth First Search
|
|
2081
|
+
DFS: function a(o, g, h, f) {
|
|
2082
|
+
f = f || {};
|
|
2083
|
+
var u = d.util.objId;
|
|
2084
|
+
for (var x in o)
|
|
2085
|
+
if (o.hasOwnProperty(x)) {
|
|
2086
|
+
g.call(o, x, o[x], h || x);
|
|
2087
|
+
var m = o[x], k = d.util.type(m);
|
|
2088
|
+
k === "Object" && !f[u(m)] ? (f[u(m)] = !0, a(m, g, null, f)) : k === "Array" && !f[u(m)] && (f[u(m)] = !0, a(m, g, x, f));
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
},
|
|
2092
|
+
plugins: {},
|
|
2093
|
+
/**
|
|
2094
|
+
* This is the most high-level function in Prism’s API.
|
|
2095
|
+
* It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on
|
|
2096
|
+
* each one of them.
|
|
2097
|
+
*
|
|
2098
|
+
* This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.
|
|
2099
|
+
*
|
|
2100
|
+
* @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.
|
|
2101
|
+
* @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.
|
|
2102
|
+
* @memberof Prism
|
|
2103
|
+
* @public
|
|
2104
|
+
*/
|
|
2105
|
+
highlightAll: function(a, o) {
|
|
2106
|
+
d.highlightAllUnder(document, a, o);
|
|
2107
|
+
},
|
|
2108
|
+
/**
|
|
2109
|
+
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
|
|
2110
|
+
* {@link Prism.highlightElement} on each one of them.
|
|
2111
|
+
*
|
|
2112
|
+
* The following hooks will be run:
|
|
2113
|
+
* 1. `before-highlightall`
|
|
2114
|
+
* 2. `before-all-elements-highlight`
|
|
2115
|
+
* 3. All hooks of {@link Prism.highlightElement} for each element.
|
|
2116
|
+
*
|
|
2117
|
+
* @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.
|
|
2118
|
+
* @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.
|
|
2119
|
+
* @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.
|
|
2120
|
+
* @memberof Prism
|
|
2121
|
+
* @public
|
|
2122
|
+
*/
|
|
2123
|
+
highlightAllUnder: function(a, o, g) {
|
|
2124
|
+
var h = {
|
|
2125
|
+
callback: g,
|
|
2126
|
+
container: a,
|
|
2127
|
+
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
2128
|
+
};
|
|
2129
|
+
d.hooks.run("before-highlightall", h), h.elements = Array.prototype.slice.apply(h.container.querySelectorAll(h.selector)), d.hooks.run("before-all-elements-highlight", h);
|
|
2130
|
+
for (var f = 0, u; u = h.elements[f++]; )
|
|
2131
|
+
d.highlightElement(u, o === !0, h.callback);
|
|
2132
|
+
},
|
|
2133
|
+
/**
|
|
2134
|
+
* Highlights the code inside a single element.
|
|
2135
|
+
*
|
|
2136
|
+
* The following hooks will be run:
|
|
2137
|
+
* 1. `before-sanity-check`
|
|
2138
|
+
* 2. `before-highlight`
|
|
2139
|
+
* 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.
|
|
2140
|
+
* 4. `before-insert`
|
|
2141
|
+
* 5. `after-highlight`
|
|
2142
|
+
* 6. `complete`
|
|
2143
|
+
*
|
|
2144
|
+
* Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for
|
|
2145
|
+
* the element's language.
|
|
2146
|
+
*
|
|
2147
|
+
* @param {Element} element The element containing the code.
|
|
2148
|
+
* It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.
|
|
2149
|
+
* @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers
|
|
2150
|
+
* to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is
|
|
2151
|
+
* [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).
|
|
2152
|
+
*
|
|
2153
|
+
* Note: All language definitions required to highlight the code must be included in the main `prism.js` file for
|
|
2154
|
+
* asynchronous highlighting to work. You can build your own bundle on the
|
|
2155
|
+
* [Download page](https://prismjs.com/download.html).
|
|
2156
|
+
* @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.
|
|
2157
|
+
* Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.
|
|
2158
|
+
* @memberof Prism
|
|
2159
|
+
* @public
|
|
2160
|
+
*/
|
|
2161
|
+
highlightElement: function(a, o, g) {
|
|
2162
|
+
var h = d.util.getLanguage(a), f = d.languages[h];
|
|
2163
|
+
d.util.setLanguage(a, h);
|
|
2164
|
+
var u = a.parentElement;
|
|
2165
|
+
u && u.nodeName.toLowerCase() === "pre" && d.util.setLanguage(u, h);
|
|
2166
|
+
var x = a.textContent, m = {
|
|
2167
|
+
element: a,
|
|
2168
|
+
language: h,
|
|
2169
|
+
grammar: f,
|
|
2170
|
+
code: x
|
|
2171
|
+
};
|
|
2172
|
+
function k($) {
|
|
2173
|
+
m.highlightedCode = $, d.hooks.run("before-insert", m), m.element.innerHTML = m.highlightedCode, d.hooks.run("after-highlight", m), d.hooks.run("complete", m), g && g.call(m.element);
|
|
2174
|
+
}
|
|
2175
|
+
if (d.hooks.run("before-sanity-check", m), u = m.element.parentElement, u && u.nodeName.toLowerCase() === "pre" && !u.hasAttribute("tabindex") && u.setAttribute("tabindex", "0"), !m.code) {
|
|
2176
|
+
d.hooks.run("complete", m), g && g.call(m.element);
|
|
2177
|
+
return;
|
|
2178
|
+
}
|
|
2179
|
+
if (d.hooks.run("before-highlight", m), !m.grammar) {
|
|
2180
|
+
k(d.util.encode(m.code));
|
|
2181
|
+
return;
|
|
2182
|
+
}
|
|
2183
|
+
if (o && r.Worker) {
|
|
2184
|
+
var z = new Worker(d.filename);
|
|
2185
|
+
z.onmessage = function($) {
|
|
2186
|
+
k($.data);
|
|
2187
|
+
}, z.postMessage(JSON.stringify({
|
|
2188
|
+
language: m.language,
|
|
2189
|
+
code: m.code,
|
|
2190
|
+
immediateClose: !0
|
|
2191
|
+
}));
|
|
2192
|
+
} else
|
|
2193
|
+
k(d.highlight(m.code, m.grammar, m.language));
|
|
2194
|
+
},
|
|
2195
|
+
/**
|
|
2196
|
+
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
2197
|
+
* and the language definitions to use, and returns a string with the HTML produced.
|
|
2198
|
+
*
|
|
2199
|
+
* The following hooks will be run:
|
|
2200
|
+
* 1. `before-tokenize`
|
|
2201
|
+
* 2. `after-tokenize`
|
|
2202
|
+
* 3. `wrap`: On each {@link Token}.
|
|
2203
|
+
*
|
|
2204
|
+
* @param {string} text A string with the code to be highlighted.
|
|
2205
|
+
* @param {Grammar} grammar An object containing the tokens to use.
|
|
2206
|
+
*
|
|
2207
|
+
* Usually a language definition like `Prism.languages.markup`.
|
|
2208
|
+
* @param {string} language The name of the language definition passed to `grammar`.
|
|
2209
|
+
* @returns {string} The highlighted HTML.
|
|
2210
|
+
* @memberof Prism
|
|
2211
|
+
* @public
|
|
2212
|
+
* @example
|
|
2213
|
+
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
2214
|
+
*/
|
|
2215
|
+
highlight: function(a, o, g) {
|
|
2216
|
+
var h = {
|
|
2217
|
+
code: a,
|
|
2218
|
+
grammar: o,
|
|
2219
|
+
language: g
|
|
2220
|
+
};
|
|
2221
|
+
if (d.hooks.run("before-tokenize", h), !h.grammar)
|
|
2222
|
+
throw new Error('The language "' + h.language + '" has no grammar.');
|
|
2223
|
+
return h.tokens = d.tokenize(h.code, h.grammar), d.hooks.run("after-tokenize", h), b.stringify(d.util.encode(h.tokens), h.language);
|
|
2224
|
+
},
|
|
2225
|
+
/**
|
|
2226
|
+
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
2227
|
+
* and the language definitions to use, and returns an array with the tokenized code.
|
|
2228
|
+
*
|
|
2229
|
+
* When the language definition includes nested tokens, the function is called recursively on each of these tokens.
|
|
2230
|
+
*
|
|
2231
|
+
* This method could be useful in other contexts as well, as a very crude parser.
|
|
2232
|
+
*
|
|
2233
|
+
* @param {string} text A string with the code to be highlighted.
|
|
2234
|
+
* @param {Grammar} grammar An object containing the tokens to use.
|
|
2235
|
+
*
|
|
2236
|
+
* Usually a language definition like `Prism.languages.markup`.
|
|
2237
|
+
* @returns {TokenStream} An array of strings and tokens, a token stream.
|
|
2238
|
+
* @memberof Prism
|
|
2239
|
+
* @public
|
|
2240
|
+
* @example
|
|
2241
|
+
* let code = `var foo = 0;`;
|
|
2242
|
+
* let tokens = Prism.tokenize(code, Prism.languages.javascript);
|
|
2243
|
+
* tokens.forEach(token => {
|
|
2244
|
+
* if (token instanceof Prism.Token && token.type === 'number') {
|
|
2245
|
+
* console.log(`Found numeric literal: ${token.content}`);
|
|
2246
|
+
* }
|
|
2247
|
+
* });
|
|
2248
|
+
*/
|
|
2249
|
+
tokenize: function(a, o) {
|
|
2250
|
+
var g = o.rest;
|
|
2251
|
+
if (g) {
|
|
2252
|
+
for (var h in g)
|
|
2253
|
+
o[h] = g[h];
|
|
2254
|
+
delete o.rest;
|
|
2255
|
+
}
|
|
2256
|
+
var f = new _();
|
|
2257
|
+
return D(f, f.head, a), A(a, f, o, f.head, 0), j(f);
|
|
2258
|
+
},
|
|
2259
|
+
/**
|
|
2260
|
+
* @namespace
|
|
2261
|
+
* @memberof Prism
|
|
2262
|
+
* @public
|
|
2263
|
+
*/
|
|
2264
|
+
hooks: {
|
|
2265
|
+
all: {},
|
|
2266
|
+
/**
|
|
2267
|
+
* Adds the given callback to the list of callbacks for the given hook.
|
|
2268
|
+
*
|
|
2269
|
+
* The callback will be invoked when the hook it is registered for is run.
|
|
2270
|
+
* Hooks are usually directly run by a highlight function but you can also run hooks yourself.
|
|
2271
|
+
*
|
|
2272
|
+
* One callback function can be registered to multiple hooks and the same hook multiple times.
|
|
2273
|
+
*
|
|
2274
|
+
* @param {string} name The name of the hook.
|
|
2275
|
+
* @param {HookCallback} callback The callback function which is given environment variables.
|
|
2276
|
+
* @public
|
|
2277
|
+
*/
|
|
2278
|
+
add: function(a, o) {
|
|
2279
|
+
var g = d.hooks.all;
|
|
2280
|
+
g[a] = g[a] || [], g[a].push(o);
|
|
2281
|
+
},
|
|
2282
|
+
/**
|
|
2283
|
+
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
2284
|
+
*
|
|
2285
|
+
* Callbacks will be invoked synchronously and in the order in which they were registered.
|
|
2286
|
+
*
|
|
2287
|
+
* @param {string} name The name of the hook.
|
|
2288
|
+
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
|
2289
|
+
* @public
|
|
2290
|
+
*/
|
|
2291
|
+
run: function(a, o) {
|
|
2292
|
+
var g = d.hooks.all[a];
|
|
2293
|
+
if (!(!g || !g.length))
|
|
2294
|
+
for (var h = 0, f; f = g[h++]; )
|
|
2295
|
+
f(o);
|
|
2296
|
+
}
|
|
2297
|
+
},
|
|
2298
|
+
Token: b
|
|
2299
|
+
};
|
|
2300
|
+
r.Prism = d;
|
|
2301
|
+
function b(a, o, g, h) {
|
|
2302
|
+
this.type = a, this.content = o, this.alias = g, this.length = (h || "").length | 0;
|
|
2303
|
+
}
|
|
2304
|
+
b.stringify = function a(o, g) {
|
|
2305
|
+
if (typeof o == "string")
|
|
2306
|
+
return o;
|
|
2307
|
+
if (Array.isArray(o)) {
|
|
2308
|
+
var h = "";
|
|
2309
|
+
return o.forEach(function(k) {
|
|
2310
|
+
h += a(k, g);
|
|
2311
|
+
}), h;
|
|
2312
|
+
}
|
|
2313
|
+
var f = {
|
|
2314
|
+
type: o.type,
|
|
2315
|
+
content: a(o.content, g),
|
|
2316
|
+
tag: "span",
|
|
2317
|
+
classes: ["token", o.type],
|
|
2318
|
+
attributes: {},
|
|
2319
|
+
language: g
|
|
2320
|
+
}, u = o.alias;
|
|
2321
|
+
u && (Array.isArray(u) ? Array.prototype.push.apply(f.classes, u) : f.classes.push(u)), d.hooks.run("wrap", f);
|
|
2322
|
+
var x = "";
|
|
2323
|
+
for (var m in f.attributes)
|
|
2324
|
+
x += " " + m + '="' + (f.attributes[m] || "").replace(/"/g, """) + '"';
|
|
2325
|
+
return "<" + f.tag + ' class="' + f.classes.join(" ") + '"' + x + ">" + f.content + "</" + f.tag + ">";
|
|
2326
|
+
};
|
|
2327
|
+
function S(a, o, g, h) {
|
|
2328
|
+
a.lastIndex = o;
|
|
2329
|
+
var f = a.exec(g);
|
|
2330
|
+
if (f && h && f[1]) {
|
|
2331
|
+
var u = f[1].length;
|
|
2332
|
+
f.index += u, f[0] = f[0].slice(u);
|
|
2333
|
+
}
|
|
2334
|
+
return f;
|
|
2335
|
+
}
|
|
2336
|
+
function A(a, o, g, h, f, u) {
|
|
2337
|
+
for (var x in g)
|
|
2338
|
+
if (!(!g.hasOwnProperty(x) || !g[x])) {
|
|
2339
|
+
var m = g[x];
|
|
2340
|
+
m = Array.isArray(m) ? m : [m];
|
|
2341
|
+
for (var k = 0; k < m.length; ++k) {
|
|
2342
|
+
if (u && u.cause == x + "," + k)
|
|
2343
|
+
return;
|
|
2344
|
+
var z = m[k], $ = z.inside, Z = !!z.lookbehind, J = !!z.greedy, sn = z.alias;
|
|
2345
|
+
if (J && !z.pattern.global) {
|
|
2346
|
+
var dn = z.pattern.toString().match(/[imsuy]*$/)[0];
|
|
2347
|
+
z.pattern = RegExp(z.pattern.source, dn + "g");
|
|
2348
|
+
}
|
|
2349
|
+
for (var Q = z.pattern || z, F = h.next, T = f; F !== o.tail && !(u && T >= u.reach); T += F.value.length, F = F.next) {
|
|
2350
|
+
var P = F.value;
|
|
2351
|
+
if (o.length > a.length)
|
|
2352
|
+
return;
|
|
2353
|
+
if (!(P instanceof b)) {
|
|
2354
|
+
var W = 1, L;
|
|
2355
|
+
if (J) {
|
|
2356
|
+
if (L = S(Q, T, a, Z), !L || L.index >= a.length)
|
|
2357
|
+
break;
|
|
2358
|
+
var B = L.index, cn = L.index + L[0].length, O = T;
|
|
2359
|
+
for (O += F.value.length; B >= O; )
|
|
2360
|
+
F = F.next, O += F.value.length;
|
|
2361
|
+
if (O -= F.value.length, T = O, F.value instanceof b)
|
|
2362
|
+
continue;
|
|
2363
|
+
for (var H = F; H !== o.tail && (O < cn || typeof H.value == "string"); H = H.next)
|
|
2364
|
+
W++, O += H.value.length;
|
|
2365
|
+
W--, P = a.slice(T, O), L.index -= T;
|
|
2366
|
+
} else if (L = S(Q, 0, P, Z), !L)
|
|
2367
|
+
continue;
|
|
2368
|
+
var B = L.index, q = L[0], V = P.slice(0, B), nn = P.slice(B + q.length), G = T + P.length;
|
|
2369
|
+
u && G > u.reach && (u.reach = G);
|
|
2370
|
+
var M = F.prev;
|
|
2371
|
+
V && (M = D(o, M, V), T += V.length), U(o, M, W);
|
|
2372
|
+
var gn = new b(x, $ ? d.tokenize(q, $) : q, sn, q);
|
|
2373
|
+
if (F = D(o, M, gn), nn && D(o, F, nn), W > 1) {
|
|
2374
|
+
var Y = {
|
|
2375
|
+
cause: x + "," + k,
|
|
2376
|
+
reach: G
|
|
2377
|
+
};
|
|
2378
|
+
A(a, o, g, F.prev, T, Y), u && Y.reach > u.reach && (u.reach = Y.reach);
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
function _() {
|
|
2386
|
+
var a = { value: null, prev: null, next: null }, o = { value: null, prev: a, next: null };
|
|
2387
|
+
a.next = o, this.head = a, this.tail = o, this.length = 0;
|
|
2388
|
+
}
|
|
2389
|
+
function D(a, o, g) {
|
|
2390
|
+
var h = o.next, f = { value: g, prev: o, next: h };
|
|
2391
|
+
return o.next = f, h.prev = f, a.length++, f;
|
|
2392
|
+
}
|
|
2393
|
+
function U(a, o, g) {
|
|
2394
|
+
for (var h = o.next, f = 0; f < g && h !== a.tail; f++)
|
|
2395
|
+
h = h.next;
|
|
2396
|
+
o.next = h, h.prev = o, a.length -= f;
|
|
2397
|
+
}
|
|
2398
|
+
function j(a) {
|
|
2399
|
+
for (var o = [], g = a.head.next; g !== a.tail; )
|
|
2400
|
+
o.push(g.value), g = g.next;
|
|
2401
|
+
return o;
|
|
2402
|
+
}
|
|
2403
|
+
if (!r.document)
|
|
2404
|
+
return r.addEventListener && (d.disableWorkerMessageHandler || r.addEventListener("message", function(a) {
|
|
2405
|
+
var o = JSON.parse(a.data), g = o.language, h = o.code, f = o.immediateClose;
|
|
2406
|
+
r.postMessage(d.highlight(h, d.languages[g], g)), f && r.close();
|
|
2407
|
+
}, !1)), d;
|
|
2408
|
+
var C = d.util.currentScript();
|
|
2409
|
+
C && (d.filename = C.src, C.hasAttribute("data-manual") && (d.manual = !0));
|
|
2410
|
+
function v() {
|
|
2411
|
+
d.manual || d.highlightAll();
|
|
2412
|
+
}
|
|
2413
|
+
if (!d.manual) {
|
|
2414
|
+
var E = document.readyState;
|
|
2415
|
+
E === "loading" || E === "interactive" && C && C.defer ? document.addEventListener("DOMContentLoaded", v) : window.requestAnimationFrame ? window.requestAnimationFrame(v) : window.setTimeout(v, 16);
|
|
2416
|
+
}
|
|
2417
|
+
return d;
|
|
2418
|
+
}(e);
|
|
2419
|
+
n.exports && (n.exports = t), typeof rn < "u" && (rn.Prism = t), t.languages.markup = {
|
|
2420
|
+
comment: {
|
|
2421
|
+
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
2422
|
+
greedy: !0
|
|
2423
|
+
},
|
|
2424
|
+
prolog: {
|
|
2425
|
+
pattern: /<\?[\s\S]+?\?>/,
|
|
2426
|
+
greedy: !0
|
|
2427
|
+
},
|
|
2428
|
+
doctype: {
|
|
2429
|
+
// https://www.w3.org/TR/xml/#NT-doctypedecl
|
|
2430
|
+
pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
|
|
2431
|
+
greedy: !0,
|
|
2432
|
+
inside: {
|
|
2433
|
+
"internal-subset": {
|
|
2434
|
+
pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
|
|
2435
|
+
lookbehind: !0,
|
|
2436
|
+
greedy: !0,
|
|
2437
|
+
inside: null
|
|
2438
|
+
// see below
|
|
2439
|
+
},
|
|
2440
|
+
string: {
|
|
2441
|
+
pattern: /"[^"]*"|'[^']*'/,
|
|
2442
|
+
greedy: !0
|
|
2443
|
+
},
|
|
2444
|
+
punctuation: /^<!|>$|[[\]]/,
|
|
2445
|
+
"doctype-tag": /^DOCTYPE/i,
|
|
2446
|
+
name: /[^\s<>'"]+/
|
|
2447
|
+
}
|
|
2448
|
+
},
|
|
2449
|
+
cdata: {
|
|
2450
|
+
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
2451
|
+
greedy: !0
|
|
2452
|
+
},
|
|
2453
|
+
tag: {
|
|
2454
|
+
pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
|
|
2455
|
+
greedy: !0,
|
|
2456
|
+
inside: {
|
|
2457
|
+
tag: {
|
|
2458
|
+
pattern: /^<\/?[^\s>\/]+/,
|
|
2459
|
+
inside: {
|
|
2460
|
+
punctuation: /^<\/?/,
|
|
2461
|
+
namespace: /^[^\s>\/:]+:/
|
|
2462
|
+
}
|
|
2463
|
+
},
|
|
2464
|
+
"special-attr": [],
|
|
2465
|
+
"attr-value": {
|
|
2466
|
+
pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
|
|
2467
|
+
inside: {
|
|
2468
|
+
punctuation: [
|
|
2469
|
+
{
|
|
2470
|
+
pattern: /^=/,
|
|
2471
|
+
alias: "attr-equals"
|
|
2472
|
+
},
|
|
2473
|
+
{
|
|
2474
|
+
pattern: /^(\s*)["']|["']$/,
|
|
2475
|
+
lookbehind: !0
|
|
2476
|
+
}
|
|
2477
|
+
]
|
|
2478
|
+
}
|
|
2479
|
+
},
|
|
2480
|
+
punctuation: /\/?>/,
|
|
2481
|
+
"attr-name": {
|
|
2482
|
+
pattern: /[^\s>\/]+/,
|
|
2483
|
+
inside: {
|
|
2484
|
+
namespace: /^[^\s>\/:]+:/
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2488
|
+
},
|
|
2489
|
+
entity: [
|
|
2490
|
+
{
|
|
2491
|
+
pattern: /&[\da-z]{1,8};/i,
|
|
2492
|
+
alias: "named-entity"
|
|
2493
|
+
},
|
|
2494
|
+
/&#x?[\da-f]{1,8};/i
|
|
2495
|
+
]
|
|
2496
|
+
}, t.languages.markup.tag.inside["attr-value"].inside.entity = t.languages.markup.entity, t.languages.markup.doctype.inside["internal-subset"].inside = t.languages.markup, t.hooks.add("wrap", function(r) {
|
|
2497
|
+
r.type === "entity" && (r.attributes.title = r.content.replace(/&/, "&"));
|
|
2498
|
+
}), Object.defineProperty(t.languages.markup.tag, "addInlined", {
|
|
2499
|
+
/**
|
|
2500
|
+
* Adds an inlined language to markup.
|
|
2501
|
+
*
|
|
2502
|
+
* An example of an inlined language is CSS with `<style>` tags.
|
|
2503
|
+
*
|
|
2504
|
+
* @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
|
|
2505
|
+
* case insensitive.
|
|
2506
|
+
* @param {string} lang The language key.
|
|
2507
|
+
* @example
|
|
2508
|
+
* addInlined('style', 'css');
|
|
2509
|
+
*/
|
|
2510
|
+
value: function(l, s) {
|
|
2511
|
+
var c = {};
|
|
2512
|
+
c["language-" + s] = {
|
|
2513
|
+
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
|
2514
|
+
lookbehind: !0,
|
|
2515
|
+
inside: t.languages[s]
|
|
2516
|
+
}, c.cdata = /^<!\[CDATA\[|\]\]>$/i;
|
|
2517
|
+
var d = {
|
|
2518
|
+
"included-cdata": {
|
|
2519
|
+
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
2520
|
+
inside: c
|
|
2521
|
+
}
|
|
2522
|
+
};
|
|
2523
|
+
d["language-" + s] = {
|
|
2524
|
+
pattern: /[\s\S]+/,
|
|
2525
|
+
inside: t.languages[s]
|
|
2526
|
+
};
|
|
2527
|
+
var b = {};
|
|
2528
|
+
b[l] = {
|
|
2529
|
+
pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
|
|
2530
|
+
return l;
|
|
2531
|
+
}), "i"),
|
|
2532
|
+
lookbehind: !0,
|
|
2533
|
+
greedy: !0,
|
|
2534
|
+
inside: d
|
|
2535
|
+
}, t.languages.insertBefore("markup", "cdata", b);
|
|
2536
|
+
}
|
|
2537
|
+
}), Object.defineProperty(t.languages.markup.tag, "addAttribute", {
|
|
2538
|
+
/**
|
|
2539
|
+
* Adds an pattern to highlight languages embedded in HTML attributes.
|
|
2540
|
+
*
|
|
2541
|
+
* An example of an inlined language is CSS with `style` attributes.
|
|
2542
|
+
*
|
|
2543
|
+
* @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
|
|
2544
|
+
* case insensitive.
|
|
2545
|
+
* @param {string} lang The language key.
|
|
2546
|
+
* @example
|
|
2547
|
+
* addAttribute('style', 'css');
|
|
2548
|
+
*/
|
|
2549
|
+
value: function(r, l) {
|
|
2550
|
+
t.languages.markup.tag.inside["special-attr"].push({
|
|
2551
|
+
pattern: RegExp(
|
|
2552
|
+
/(^|["'\s])/.source + "(?:" + r + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
|
|
2553
|
+
"i"
|
|
2554
|
+
),
|
|
2555
|
+
lookbehind: !0,
|
|
2556
|
+
inside: {
|
|
2557
|
+
"attr-name": /^[^\s=]+/,
|
|
2558
|
+
"attr-value": {
|
|
2559
|
+
pattern: /=[\s\S]+/,
|
|
2560
|
+
inside: {
|
|
2561
|
+
value: {
|
|
2562
|
+
pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
|
|
2563
|
+
lookbehind: !0,
|
|
2564
|
+
alias: [l, "language-" + l],
|
|
2565
|
+
inside: t.languages[l]
|
|
2566
|
+
},
|
|
2567
|
+
punctuation: [
|
|
2568
|
+
{
|
|
2569
|
+
pattern: /^=/,
|
|
2570
|
+
alias: "attr-equals"
|
|
2571
|
+
},
|
|
2572
|
+
/"|'/
|
|
2573
|
+
]
|
|
2574
|
+
}
|
|
2575
|
+
}
|
|
2576
|
+
}
|
|
2577
|
+
});
|
|
2578
|
+
}
|
|
2579
|
+
}), t.languages.html = t.languages.markup, t.languages.mathml = t.languages.markup, t.languages.svg = t.languages.markup, t.languages.xml = t.languages.extend("markup", {}), t.languages.ssml = t.languages.xml, t.languages.atom = t.languages.xml, t.languages.rss = t.languages.xml, function(r) {
|
|
2580
|
+
var l = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
2581
|
+
r.languages.css = {
|
|
2582
|
+
comment: /\/\*[\s\S]*?\*\//,
|
|
2583
|
+
atrule: {
|
|
2584
|
+
pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + l.source + ")*?" + /(?:;|(?=\s*\{))/.source),
|
|
2585
|
+
inside: {
|
|
2586
|
+
rule: /^@[\w-]+/,
|
|
2587
|
+
"selector-function-argument": {
|
|
2588
|
+
pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
|
|
2589
|
+
lookbehind: !0,
|
|
2590
|
+
alias: "selector"
|
|
2591
|
+
},
|
|
2592
|
+
keyword: {
|
|
2593
|
+
pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
|
|
2594
|
+
lookbehind: !0
|
|
2595
|
+
}
|
|
2596
|
+
// See rest below
|
|
2597
|
+
}
|
|
2598
|
+
},
|
|
2599
|
+
url: {
|
|
2600
|
+
// https://drafts.csswg.org/css-values-3/#urls
|
|
2601
|
+
pattern: RegExp("\\burl\\((?:" + l.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
|
|
2602
|
+
greedy: !0,
|
|
2603
|
+
inside: {
|
|
2604
|
+
function: /^url/i,
|
|
2605
|
+
punctuation: /^\(|\)$/,
|
|
2606
|
+
string: {
|
|
2607
|
+
pattern: RegExp("^" + l.source + "$"),
|
|
2608
|
+
alias: "url"
|
|
2609
|
+
}
|
|
2610
|
+
}
|
|
2611
|
+
},
|
|
2612
|
+
selector: {
|
|
2613
|
+
pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + l.source + ")*(?=\\s*\\{)"),
|
|
2614
|
+
lookbehind: !0
|
|
2615
|
+
},
|
|
2616
|
+
string: {
|
|
2617
|
+
pattern: l,
|
|
2618
|
+
greedy: !0
|
|
2619
|
+
},
|
|
2620
|
+
property: {
|
|
2621
|
+
pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
|
|
2622
|
+
lookbehind: !0
|
|
2623
|
+
},
|
|
2624
|
+
important: /!important\b/i,
|
|
2625
|
+
function: {
|
|
2626
|
+
pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
|
|
2627
|
+
lookbehind: !0
|
|
2628
|
+
},
|
|
2629
|
+
punctuation: /[(){};:,]/
|
|
2630
|
+
}, r.languages.css.atrule.inside.rest = r.languages.css;
|
|
2631
|
+
var s = r.languages.markup;
|
|
2632
|
+
s && (s.tag.addInlined("style", "css"), s.tag.addAttribute("style", "css"));
|
|
2633
|
+
}(t), t.languages.clike = {
|
|
2634
|
+
comment: [
|
|
2635
|
+
{
|
|
2636
|
+
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
|
2637
|
+
lookbehind: !0,
|
|
2638
|
+
greedy: !0
|
|
2639
|
+
},
|
|
2640
|
+
{
|
|
2641
|
+
pattern: /(^|[^\\:])\/\/.*/,
|
|
2642
|
+
lookbehind: !0,
|
|
2643
|
+
greedy: !0
|
|
2644
|
+
}
|
|
2645
|
+
],
|
|
2646
|
+
string: {
|
|
2647
|
+
pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
|
|
2648
|
+
greedy: !0
|
|
2649
|
+
},
|
|
2650
|
+
"class-name": {
|
|
2651
|
+
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
|
|
2652
|
+
lookbehind: !0,
|
|
2653
|
+
inside: {
|
|
2654
|
+
punctuation: /[.\\]/
|
|
2655
|
+
}
|
|
2656
|
+
},
|
|
2657
|
+
keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
|
|
2658
|
+
boolean: /\b(?:false|true)\b/,
|
|
2659
|
+
function: /\b\w+(?=\()/,
|
|
2660
|
+
number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
|
|
2661
|
+
operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
|
|
2662
|
+
punctuation: /[{}[\];(),.:]/
|
|
2663
|
+
}, t.languages.javascript = t.languages.extend("clike", {
|
|
2664
|
+
"class-name": [
|
|
2665
|
+
t.languages.clike["class-name"],
|
|
2666
|
+
{
|
|
2667
|
+
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
|
|
2668
|
+
lookbehind: !0
|
|
2669
|
+
}
|
|
2670
|
+
],
|
|
2671
|
+
keyword: [
|
|
2672
|
+
{
|
|
2673
|
+
pattern: /((?:^|\})\s*)catch\b/,
|
|
2674
|
+
lookbehind: !0
|
|
2675
|
+
},
|
|
2676
|
+
{
|
|
2677
|
+
pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
|
|
2678
|
+
lookbehind: !0
|
|
2679
|
+
}
|
|
2680
|
+
],
|
|
2681
|
+
// Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
|
|
2682
|
+
function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
|
|
2683
|
+
number: {
|
|
2684
|
+
pattern: RegExp(
|
|
2685
|
+
/(^|[^\w$])/.source + "(?:" + // constant
|
|
2686
|
+
(/NaN|Infinity/.source + "|" + // binary integer
|
|
2687
|
+
/0[bB][01]+(?:_[01]+)*n?/.source + "|" + // octal integer
|
|
2688
|
+
/0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + // hexadecimal integer
|
|
2689
|
+
/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + // decimal bigint
|
|
2690
|
+
/\d+(?:_\d+)*n/.source + "|" + // decimal number (integer or float) but no bigint
|
|
2691
|
+
/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source) + ")" + /(?![\w$])/.source
|
|
2692
|
+
),
|
|
2693
|
+
lookbehind: !0
|
|
2694
|
+
},
|
|
2695
|
+
operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
|
|
2696
|
+
}), t.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, t.languages.insertBefore("javascript", "keyword", {
|
|
2697
|
+
regex: {
|
|
2698
|
+
pattern: RegExp(
|
|
2699
|
+
// lookbehind
|
|
2700
|
+
// eslint-disable-next-line regexp/no-dupe-characters-character-class
|
|
2701
|
+
/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + // Regex pattern:
|
|
2702
|
+
// There are 2 regex patterns here. The RegExp set notation proposal added support for nested character
|
|
2703
|
+
// classes if the `v` flag is present. Unfortunately, nested CCs are both context-free and incompatible
|
|
2704
|
+
// with the only syntax, so we have to define 2 different regex patterns.
|
|
2705
|
+
/\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + // `v` flag syntax. This supports 3 levels of nested character classes.
|
|
2706
|
+
/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + // lookahead
|
|
2707
|
+
/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source
|
|
2708
|
+
),
|
|
2709
|
+
lookbehind: !0,
|
|
2710
|
+
greedy: !0,
|
|
2711
|
+
inside: {
|
|
2712
|
+
"regex-source": {
|
|
2713
|
+
pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
|
|
2714
|
+
lookbehind: !0,
|
|
2715
|
+
alias: "language-regex",
|
|
2716
|
+
inside: t.languages.regex
|
|
2717
|
+
},
|
|
2718
|
+
"regex-delimiter": /^\/|\/$/,
|
|
2719
|
+
"regex-flags": /^[a-z]+$/
|
|
2720
|
+
}
|
|
2721
|
+
},
|
|
2722
|
+
// This must be declared before keyword because we use "function" inside the look-forward
|
|
2723
|
+
"function-variable": {
|
|
2724
|
+
pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
|
|
2725
|
+
alias: "function"
|
|
2726
|
+
},
|
|
2727
|
+
parameter: [
|
|
2728
|
+
{
|
|
2729
|
+
pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
|
|
2730
|
+
lookbehind: !0,
|
|
2731
|
+
inside: t.languages.javascript
|
|
2732
|
+
},
|
|
2733
|
+
{
|
|
2734
|
+
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
|
|
2735
|
+
lookbehind: !0,
|
|
2736
|
+
inside: t.languages.javascript
|
|
2737
|
+
},
|
|
2738
|
+
{
|
|
2739
|
+
pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
|
|
2740
|
+
lookbehind: !0,
|
|
2741
|
+
inside: t.languages.javascript
|
|
2742
|
+
},
|
|
2743
|
+
{
|
|
2744
|
+
pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
|
|
2745
|
+
lookbehind: !0,
|
|
2746
|
+
inside: t.languages.javascript
|
|
2747
|
+
}
|
|
2748
|
+
],
|
|
2749
|
+
constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
|
|
2750
|
+
}), t.languages.insertBefore("javascript", "string", {
|
|
2751
|
+
hashbang: {
|
|
2752
|
+
pattern: /^#!.*/,
|
|
2753
|
+
greedy: !0,
|
|
2754
|
+
alias: "comment"
|
|
2755
|
+
},
|
|
2756
|
+
"template-string": {
|
|
2757
|
+
pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
|
|
2758
|
+
greedy: !0,
|
|
2759
|
+
inside: {
|
|
2760
|
+
"template-punctuation": {
|
|
2761
|
+
pattern: /^`|`$/,
|
|
2762
|
+
alias: "string"
|
|
2763
|
+
},
|
|
2764
|
+
interpolation: {
|
|
2765
|
+
pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
|
|
2766
|
+
lookbehind: !0,
|
|
2767
|
+
inside: {
|
|
2768
|
+
"interpolation-punctuation": {
|
|
2769
|
+
pattern: /^\$\{|\}$/,
|
|
2770
|
+
alias: "punctuation"
|
|
2771
|
+
},
|
|
2772
|
+
rest: t.languages.javascript
|
|
2773
|
+
}
|
|
2774
|
+
},
|
|
2775
|
+
string: /[\s\S]+/
|
|
2776
|
+
}
|
|
2777
|
+
},
|
|
2778
|
+
"string-property": {
|
|
2779
|
+
pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,
|
|
2780
|
+
lookbehind: !0,
|
|
2781
|
+
greedy: !0,
|
|
2782
|
+
alias: "property"
|
|
2783
|
+
}
|
|
2784
|
+
}), t.languages.insertBefore("javascript", "operator", {
|
|
2785
|
+
"literal-property": {
|
|
2786
|
+
pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,
|
|
2787
|
+
lookbehind: !0,
|
|
2788
|
+
alias: "property"
|
|
2789
|
+
}
|
|
2790
|
+
}), t.languages.markup && (t.languages.markup.tag.addInlined("script", "javascript"), t.languages.markup.tag.addAttribute(
|
|
2791
|
+
/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,
|
|
2792
|
+
"javascript"
|
|
2793
|
+
)), t.languages.js = t.languages.javascript, function() {
|
|
2794
|
+
if (typeof t > "u" || typeof document > "u")
|
|
2795
|
+
return;
|
|
2796
|
+
Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
|
|
2797
|
+
var r = "Loading…", l = function(C, v) {
|
|
2798
|
+
return "✖ Error " + C + " while fetching file: " + v;
|
|
2799
|
+
}, s = "✖ Error: File does not exist or is empty", c = {
|
|
2800
|
+
js: "javascript",
|
|
2801
|
+
py: "python",
|
|
2802
|
+
rb: "ruby",
|
|
2803
|
+
ps1: "powershell",
|
|
2804
|
+
psm1: "powershell",
|
|
2805
|
+
sh: "bash",
|
|
2806
|
+
bat: "batch",
|
|
2807
|
+
h: "c",
|
|
2808
|
+
tex: "latex"
|
|
2809
|
+
}, d = "data-src-status", b = "loading", S = "loaded", A = "failed", _ = "pre[data-src]:not([" + d + '="' + S + '"]):not([' + d + '="' + b + '"])';
|
|
2810
|
+
function D(C, v, E) {
|
|
2811
|
+
var a = new XMLHttpRequest();
|
|
2812
|
+
a.open("GET", C, !0), a.onreadystatechange = function() {
|
|
2813
|
+
a.readyState == 4 && (a.status < 400 && a.responseText ? v(a.responseText) : a.status >= 400 ? E(l(a.status, a.statusText)) : E(s));
|
|
2814
|
+
}, a.send(null);
|
|
2815
|
+
}
|
|
2816
|
+
function U(C) {
|
|
2817
|
+
var v = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(C || "");
|
|
2818
|
+
if (v) {
|
|
2819
|
+
var E = Number(v[1]), a = v[2], o = v[3];
|
|
2820
|
+
return a ? o ? [E, Number(o)] : [E, void 0] : [E, E];
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
t.hooks.add("before-highlightall", function(C) {
|
|
2824
|
+
C.selector += ", " + _;
|
|
2825
|
+
}), t.hooks.add("before-sanity-check", function(C) {
|
|
2826
|
+
var v = (
|
|
2827
|
+
/** @type {HTMLPreElement} */
|
|
2828
|
+
C.element
|
|
2829
|
+
);
|
|
2830
|
+
if (v.matches(_)) {
|
|
2831
|
+
C.code = "", v.setAttribute(d, b);
|
|
2832
|
+
var E = v.appendChild(document.createElement("CODE"));
|
|
2833
|
+
E.textContent = r;
|
|
2834
|
+
var a = v.getAttribute("data-src"), o = C.language;
|
|
2835
|
+
if (o === "none") {
|
|
2836
|
+
var g = (/\.(\w+)$/.exec(a) || [, "none"])[1];
|
|
2837
|
+
o = c[g] || g;
|
|
2838
|
+
}
|
|
2839
|
+
t.util.setLanguage(E, o), t.util.setLanguage(v, o);
|
|
2840
|
+
var h = t.plugins.autoloader;
|
|
2841
|
+
h && h.loadLanguages(o), D(
|
|
2842
|
+
a,
|
|
2843
|
+
function(f) {
|
|
2844
|
+
v.setAttribute(d, S);
|
|
2845
|
+
var u = U(v.getAttribute("data-range"));
|
|
2846
|
+
if (u) {
|
|
2847
|
+
var x = f.split(/\r\n?|\n/g), m = u[0], k = u[1] == null ? x.length : u[1];
|
|
2848
|
+
m < 0 && (m += x.length), m = Math.max(0, Math.min(m - 1, x.length)), k < 0 && (k += x.length), k = Math.max(0, Math.min(k, x.length)), f = x.slice(m, k).join(`
|
|
2849
|
+
`), v.hasAttribute("data-start") || v.setAttribute("data-start", String(m + 1));
|
|
2850
|
+
}
|
|
2851
|
+
E.textContent = f, t.highlightElement(E);
|
|
2852
|
+
},
|
|
2853
|
+
function(f) {
|
|
2854
|
+
v.setAttribute(d, A), E.textContent = f;
|
|
2855
|
+
}
|
|
2856
|
+
);
|
|
2857
|
+
}
|
|
2858
|
+
}), t.plugins.fileHighlight = {
|
|
2859
|
+
/**
|
|
2860
|
+
* Executes the File Highlight plugin for all matching `pre` elements under the given container.
|
|
2861
|
+
*
|
|
2862
|
+
* Note: Elements which are already loaded or currently loading will not be touched by this method.
|
|
2863
|
+
*
|
|
2864
|
+
* @param {ParentNode} [container=document]
|
|
2865
|
+
*/
|
|
2866
|
+
highlight: function(v) {
|
|
2867
|
+
for (var E = (v || document).querySelectorAll(_), a = 0, o; o = E[a++]; )
|
|
2868
|
+
t.highlightElement(o);
|
|
2869
|
+
}
|
|
2870
|
+
};
|
|
2871
|
+
var j = !1;
|
|
2872
|
+
t.fileHighlight = function() {
|
|
2873
|
+
j || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), j = !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
|
|
2874
|
+
};
|
|
2875
|
+
}();
|
|
2876
|
+
})(ln);
|
|
2877
|
+
const X = ln.exports;
|
|
2878
|
+
Prism.languages.python = {
|
|
2879
|
+
comment: {
|
|
2880
|
+
pattern: /(^|[^\\])#.*/,
|
|
2881
|
+
lookbehind: !0,
|
|
2882
|
+
greedy: !0
|
|
2883
|
+
},
|
|
2884
|
+
"string-interpolation": {
|
|
2885
|
+
pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
|
|
2886
|
+
greedy: !0,
|
|
2887
|
+
inside: {
|
|
2888
|
+
interpolation: {
|
|
2889
|
+
// "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
|
|
2890
|
+
pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
|
|
2891
|
+
lookbehind: !0,
|
|
2892
|
+
inside: {
|
|
2893
|
+
"format-spec": {
|
|
2894
|
+
pattern: /(:)[^:(){}]+(?=\}$)/,
|
|
2895
|
+
lookbehind: !0
|
|
2896
|
+
},
|
|
2897
|
+
"conversion-option": {
|
|
2898
|
+
pattern: //,
|
|
2899
|
+
alias: "punctuation"
|
|
2900
|
+
},
|
|
2901
|
+
rest: null
|
|
2902
|
+
}
|
|
2903
|
+
},
|
|
2904
|
+
string: /[\s\S]+/
|
|
2905
|
+
}
|
|
2906
|
+
},
|
|
2907
|
+
"triple-quoted-string": {
|
|
2908
|
+
pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
|
|
2909
|
+
greedy: !0,
|
|
2910
|
+
alias: "string"
|
|
2911
|
+
},
|
|
2912
|
+
string: {
|
|
2913
|
+
pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
|
|
2914
|
+
greedy: !0
|
|
2915
|
+
},
|
|
2916
|
+
function: {
|
|
2917
|
+
pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
|
|
2918
|
+
lookbehind: !0
|
|
2919
|
+
},
|
|
2920
|
+
"class-name": {
|
|
2921
|
+
pattern: /(\bclass\s+)\w+/i,
|
|
2922
|
+
lookbehind: !0
|
|
2923
|
+
},
|
|
2924
|
+
decorator: {
|
|
2925
|
+
pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
|
|
2926
|
+
lookbehind: !0,
|
|
2927
|
+
alias: ["annotation", "punctuation"],
|
|
2928
|
+
inside: {
|
|
2929
|
+
punctuation: /\./
|
|
2930
|
+
}
|
|
2931
|
+
},
|
|
2932
|
+
keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
|
|
2933
|
+
builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
|
|
2934
|
+
boolean: /\b(?:False|None|True)\b/,
|
|
2935
|
+
number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
|
|
2936
|
+
operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
|
|
2937
|
+
punctuation: /[{}[\];(),.:]/
|
|
2938
|
+
};
|
|
2939
|
+
Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest = Prism.languages.python;
|
|
2940
|
+
Prism.languages.py = Prism.languages.python;
|
|
2941
|
+
(function(n) {
|
|
2942
|
+
var e = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", t = {
|
|
2943
|
+
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
2944
|
+
lookbehind: !0,
|
|
2945
|
+
alias: "punctuation",
|
|
2946
|
+
// this looks reasonably well in all themes
|
|
2947
|
+
inside: null
|
|
2948
|
+
// see below
|
|
2949
|
+
}, r = {
|
|
2950
|
+
bash: t,
|
|
2951
|
+
environment: {
|
|
2952
|
+
pattern: RegExp("\\$" + e),
|
|
2953
|
+
alias: "constant"
|
|
2954
|
+
},
|
|
2955
|
+
variable: [
|
|
2956
|
+
// [0]: Arithmetic Environment
|
|
2957
|
+
{
|
|
2958
|
+
pattern: /\$?\(\([\s\S]+?\)\)/,
|
|
2959
|
+
greedy: !0,
|
|
2960
|
+
inside: {
|
|
2961
|
+
// If there is a $ sign at the beginning highlight $(( and )) as variable
|
|
2962
|
+
variable: [
|
|
2963
|
+
{
|
|
2964
|
+
pattern: /(^\$\(\([\s\S]+)\)\)/,
|
|
2965
|
+
lookbehind: !0
|
|
2966
|
+
},
|
|
2967
|
+
/^\$\(\(/
|
|
2968
|
+
],
|
|
2969
|
+
number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
|
|
2970
|
+
// Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
|
|
2971
|
+
operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
|
|
2972
|
+
// If there is no $ sign at the beginning highlight (( and )) as punctuation
|
|
2973
|
+
punctuation: /\(\(?|\)\)?|,|;/
|
|
2974
|
+
}
|
|
2975
|
+
},
|
|
2976
|
+
// [1]: Command Substitution
|
|
2977
|
+
{
|
|
2978
|
+
pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
|
|
2979
|
+
greedy: !0,
|
|
2980
|
+
inside: {
|
|
2981
|
+
variable: /^\$\(|^`|\)$|`$/
|
|
2982
|
+
}
|
|
2983
|
+
},
|
|
2984
|
+
// [2]: Brace expansion
|
|
2985
|
+
{
|
|
2986
|
+
pattern: /\$\{[^}]+\}/,
|
|
2987
|
+
greedy: !0,
|
|
2988
|
+
inside: {
|
|
2989
|
+
operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
|
|
2990
|
+
punctuation: /[\[\]]/,
|
|
2991
|
+
environment: {
|
|
2992
|
+
pattern: RegExp("(\\{)" + e),
|
|
2993
|
+
lookbehind: !0,
|
|
2994
|
+
alias: "constant"
|
|
2995
|
+
}
|
|
2996
|
+
}
|
|
2997
|
+
},
|
|
2998
|
+
/\$(?:\w+|[#?*!@$])/
|
|
2999
|
+
],
|
|
3000
|
+
// Escape sequences from echo and printf's manuals, and escaped quotes.
|
|
3001
|
+
entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
|
|
3002
|
+
};
|
|
3003
|
+
n.languages.bash = {
|
|
3004
|
+
shebang: {
|
|
3005
|
+
pattern: /^#!\s*\/.*/,
|
|
3006
|
+
alias: "important"
|
|
3007
|
+
},
|
|
3008
|
+
comment: {
|
|
3009
|
+
pattern: /(^|[^"{\\$])#.*/,
|
|
3010
|
+
lookbehind: !0
|
|
3011
|
+
},
|
|
3012
|
+
"function-name": [
|
|
3013
|
+
// a) function foo {
|
|
3014
|
+
// b) foo() {
|
|
3015
|
+
// c) function foo() {
|
|
3016
|
+
// but not “foo {”
|
|
3017
|
+
{
|
|
3018
|
+
// a) and c)
|
|
3019
|
+
pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
|
|
3020
|
+
lookbehind: !0,
|
|
3021
|
+
alias: "function"
|
|
3022
|
+
},
|
|
3023
|
+
{
|
|
3024
|
+
// b)
|
|
3025
|
+
pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
|
|
3026
|
+
alias: "function"
|
|
3027
|
+
}
|
|
3028
|
+
],
|
|
3029
|
+
// Highlight variable names as variables in for and select beginnings.
|
|
3030
|
+
"for-or-select": {
|
|
3031
|
+
pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
|
|
3032
|
+
alias: "variable",
|
|
3033
|
+
lookbehind: !0
|
|
3034
|
+
},
|
|
3035
|
+
// Highlight variable names as variables in the left-hand part
|
|
3036
|
+
// of assignments (“=” and “+=”).
|
|
3037
|
+
"assign-left": {
|
|
3038
|
+
pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
|
|
3039
|
+
inside: {
|
|
3040
|
+
environment: {
|
|
3041
|
+
pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + e),
|
|
3042
|
+
lookbehind: !0,
|
|
3043
|
+
alias: "constant"
|
|
3044
|
+
}
|
|
3045
|
+
},
|
|
3046
|
+
alias: "variable",
|
|
3047
|
+
lookbehind: !0
|
|
3048
|
+
},
|
|
3049
|
+
// Highlight parameter names as variables
|
|
3050
|
+
parameter: {
|
|
3051
|
+
pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,
|
|
3052
|
+
alias: "variable",
|
|
3053
|
+
lookbehind: !0
|
|
3054
|
+
},
|
|
3055
|
+
string: [
|
|
3056
|
+
// Support for Here-documents https://en.wikipedia.org/wiki/Here_document
|
|
3057
|
+
{
|
|
3058
|
+
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
3059
|
+
lookbehind: !0,
|
|
3060
|
+
greedy: !0,
|
|
3061
|
+
inside: r
|
|
3062
|
+
},
|
|
3063
|
+
// Here-document with quotes around the tag
|
|
3064
|
+
// → No expansion (so no “inside”).
|
|
3065
|
+
{
|
|
3066
|
+
pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
|
|
3067
|
+
lookbehind: !0,
|
|
3068
|
+
greedy: !0,
|
|
3069
|
+
inside: {
|
|
3070
|
+
bash: t
|
|
3071
|
+
}
|
|
3072
|
+
},
|
|
3073
|
+
// “Normal” string
|
|
3074
|
+
{
|
|
3075
|
+
// https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
|
|
3076
|
+
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
3077
|
+
lookbehind: !0,
|
|
3078
|
+
greedy: !0,
|
|
3079
|
+
inside: r
|
|
3080
|
+
},
|
|
3081
|
+
{
|
|
3082
|
+
// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
3083
|
+
pattern: /(^|[^$\\])'[^']*'/,
|
|
3084
|
+
lookbehind: !0,
|
|
3085
|
+
greedy: !0
|
|
3086
|
+
},
|
|
3087
|
+
{
|
|
3088
|
+
// https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
|
|
3089
|
+
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
3090
|
+
greedy: !0,
|
|
3091
|
+
inside: {
|
|
3092
|
+
entity: r.entity
|
|
3093
|
+
}
|
|
3094
|
+
}
|
|
3095
|
+
],
|
|
3096
|
+
environment: {
|
|
3097
|
+
pattern: RegExp("\\$?" + e),
|
|
3098
|
+
alias: "constant"
|
|
3099
|
+
},
|
|
3100
|
+
variable: r.variable,
|
|
3101
|
+
function: {
|
|
3102
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
3103
|
+
lookbehind: !0
|
|
3104
|
+
},
|
|
3105
|
+
keyword: {
|
|
3106
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
|
|
3107
|
+
lookbehind: !0
|
|
3108
|
+
},
|
|
3109
|
+
// https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
|
|
3110
|
+
builtin: {
|
|
3111
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
|
|
3112
|
+
lookbehind: !0,
|
|
3113
|
+
// Alias added to make those easier to distinguish from strings.
|
|
3114
|
+
alias: "class-name"
|
|
3115
|
+
},
|
|
3116
|
+
boolean: {
|
|
3117
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
|
|
3118
|
+
lookbehind: !0
|
|
3119
|
+
},
|
|
3120
|
+
"file-descriptor": {
|
|
3121
|
+
pattern: /\B&\d\b/,
|
|
3122
|
+
alias: "important"
|
|
3123
|
+
},
|
|
3124
|
+
operator: {
|
|
3125
|
+
// Lots of redirections here, but not just that.
|
|
3126
|
+
pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
|
|
3127
|
+
inside: {
|
|
3128
|
+
"file-descriptor": {
|
|
3129
|
+
pattern: /^\d/,
|
|
3130
|
+
alias: "important"
|
|
3131
|
+
}
|
|
3132
|
+
}
|
|
3133
|
+
},
|
|
3134
|
+
punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
|
|
3135
|
+
number: {
|
|
3136
|
+
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
|
|
3137
|
+
lookbehind: !0
|
|
3138
|
+
}
|
|
3139
|
+
}, t.inside = n.languages.bash;
|
|
3140
|
+
for (var l = [
|
|
3141
|
+
"comment",
|
|
3142
|
+
"function-name",
|
|
3143
|
+
"for-or-select",
|
|
3144
|
+
"assign-left",
|
|
3145
|
+
"parameter",
|
|
3146
|
+
"string",
|
|
3147
|
+
"environment",
|
|
3148
|
+
"function",
|
|
3149
|
+
"keyword",
|
|
3150
|
+
"builtin",
|
|
3151
|
+
"boolean",
|
|
3152
|
+
"file-descriptor",
|
|
3153
|
+
"operator",
|
|
3154
|
+
"punctuation",
|
|
3155
|
+
"number"
|
|
3156
|
+
], s = r.variable[1].inside, c = 0; c < l.length; c++)
|
|
3157
|
+
s[l[c]] = n.languages.bash[l[c]];
|
|
3158
|
+
n.languages.sh = n.languages.bash, n.languages.shell = n.languages.bash;
|
|
3159
|
+
})(Prism);
|
|
3160
|
+
(function(n) {
|
|
3161
|
+
var e = /[*&][^\s[\]{},]+/, t = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, r = "(?:" + t.source + "(?:[ ]+" + e.source + ")?|" + e.source + "(?:[ ]+" + t.source + ")?)", l = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
|
|
3162
|
+
return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
|
|
3163
|
+
}), s = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
|
|
3164
|
+
function c(d, b) {
|
|
3165
|
+
b = (b || "").replace(/m/g, "") + "m";
|
|
3166
|
+
var S = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
|
|
3167
|
+
return r;
|
|
3168
|
+
}).replace(/<<value>>/g, function() {
|
|
3169
|
+
return d;
|
|
3170
|
+
});
|
|
3171
|
+
return RegExp(S, b);
|
|
3172
|
+
}
|
|
3173
|
+
n.languages.yaml = {
|
|
3174
|
+
scalar: {
|
|
3175
|
+
pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
|
|
3176
|
+
return r;
|
|
3177
|
+
})),
|
|
3178
|
+
lookbehind: !0,
|
|
3179
|
+
alias: "string"
|
|
3180
|
+
},
|
|
3181
|
+
comment: /#.*/,
|
|
3182
|
+
key: {
|
|
3183
|
+
pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
|
|
3184
|
+
return r;
|
|
3185
|
+
}).replace(/<<key>>/g, function() {
|
|
3186
|
+
return "(?:" + l + "|" + s + ")";
|
|
3187
|
+
})),
|
|
3188
|
+
lookbehind: !0,
|
|
3189
|
+
greedy: !0,
|
|
3190
|
+
alias: "atrule"
|
|
3191
|
+
},
|
|
3192
|
+
directive: {
|
|
3193
|
+
pattern: /(^[ \t]*)%.+/m,
|
|
3194
|
+
lookbehind: !0,
|
|
3195
|
+
alias: "important"
|
|
3196
|
+
},
|
|
3197
|
+
datetime: {
|
|
3198
|
+
pattern: c(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),
|
|
3199
|
+
lookbehind: !0,
|
|
3200
|
+
alias: "number"
|
|
3201
|
+
},
|
|
3202
|
+
boolean: {
|
|
3203
|
+
pattern: c(/false|true/.source, "i"),
|
|
3204
|
+
lookbehind: !0,
|
|
3205
|
+
alias: "important"
|
|
3206
|
+
},
|
|
3207
|
+
null: {
|
|
3208
|
+
pattern: c(/null|~/.source, "i"),
|
|
3209
|
+
lookbehind: !0,
|
|
3210
|
+
alias: "important"
|
|
3211
|
+
},
|
|
3212
|
+
string: {
|
|
3213
|
+
pattern: c(s),
|
|
3214
|
+
lookbehind: !0,
|
|
3215
|
+
greedy: !0
|
|
3216
|
+
},
|
|
3217
|
+
number: {
|
|
3218
|
+
pattern: c(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"),
|
|
3219
|
+
lookbehind: !0
|
|
3220
|
+
},
|
|
3221
|
+
tag: t,
|
|
3222
|
+
important: e,
|
|
3223
|
+
punctuation: /---|[:[\]{}\-,|>?]|\.\.\./
|
|
3224
|
+
}, n.languages.yml = n.languages.yaml;
|
|
3225
|
+
})(Prism);
|
|
3226
|
+
(function(n) {
|
|
3227
|
+
var e = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
3228
|
+
n.languages.css = {
|
|
3229
|
+
comment: /\/\*[\s\S]*?\*\//,
|
|
3230
|
+
atrule: {
|
|
3231
|
+
pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + e.source + ")*?" + /(?:;|(?=\s*\{))/.source),
|
|
3232
|
+
inside: {
|
|
3233
|
+
rule: /^@[\w-]+/,
|
|
3234
|
+
"selector-function-argument": {
|
|
3235
|
+
pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
|
|
3236
|
+
lookbehind: !0,
|
|
3237
|
+
alias: "selector"
|
|
3238
|
+
},
|
|
3239
|
+
keyword: {
|
|
3240
|
+
pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
|
|
3241
|
+
lookbehind: !0
|
|
1265
3242
|
}
|
|
1266
|
-
|
|
1267
|
-
defaultVariants: {
|
|
1268
|
-
intent: "secondary",
|
|
1269
|
-
loading: !1,
|
|
1270
|
-
iconSmall: !1,
|
|
1271
|
-
iconPos: "right",
|
|
1272
|
-
iconOnly: !1,
|
|
1273
|
-
pill: !1,
|
|
1274
|
-
size: "small"
|
|
3243
|
+
// See rest below
|
|
1275
3244
|
}
|
|
1276
|
-
}
|
|
3245
|
+
},
|
|
3246
|
+
url: {
|
|
3247
|
+
// https://drafts.csswg.org/css-values-3/#urls
|
|
3248
|
+
pattern: RegExp("\\burl\\((?:" + e.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
|
|
3249
|
+
greedy: !0,
|
|
3250
|
+
inside: {
|
|
3251
|
+
function: /^url/i,
|
|
3252
|
+
punctuation: /^\(|\)$/,
|
|
3253
|
+
string: {
|
|
3254
|
+
pattern: RegExp("^" + e.source + "$"),
|
|
3255
|
+
alias: "url"
|
|
3256
|
+
}
|
|
3257
|
+
}
|
|
3258
|
+
},
|
|
3259
|
+
selector: {
|
|
3260
|
+
pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + e.source + ")*(?=\\s*\\{)"),
|
|
3261
|
+
lookbehind: !0
|
|
3262
|
+
},
|
|
3263
|
+
string: {
|
|
3264
|
+
pattern: e,
|
|
3265
|
+
greedy: !0
|
|
3266
|
+
},
|
|
3267
|
+
property: {
|
|
3268
|
+
pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
|
|
3269
|
+
lookbehind: !0
|
|
3270
|
+
},
|
|
3271
|
+
important: /!important\b/i,
|
|
3272
|
+
function: {
|
|
3273
|
+
pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
|
|
3274
|
+
lookbehind: !0
|
|
3275
|
+
},
|
|
3276
|
+
punctuation: /[(){};:,]/
|
|
3277
|
+
}, n.languages.css.atrule.inside.rest = n.languages.css;
|
|
3278
|
+
var t = n.languages.markup;
|
|
3279
|
+
t && (t.tag.addInlined("style", "css"), t.tag.addAttribute("style", "css"));
|
|
3280
|
+
})(Prism);
|
|
3281
|
+
const Bn = `:host{display:block;font-family:var(--font-family, 'Courier New', monospace)}pre[class*="language-"]{white-space:pre-wrap;word-break:break-word;}.language{font-weight:bold;text-transform:uppercase}pre{margin:0;border-radius:8px;color:var(--purple-200);overflow:auto}code{font-family:'Courier New', monospace}.token.keyword{color:var(--purple-500)}.token.string{color:var(--green-500)}.token.function{color:var(--cyan-500)}.token.comment{color:var(--grey-700)}.relative{position:relative}.bg-stronger{background-color:var(--grey-900)}.rounded-sm{border-radius:8px}.rounded-xs{border-radius:4px}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.p-0{padding:0rem}.p-12{padding:0.75rem}.p-16{padding:1rem}.p-20{padding:1.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.pl-8{padding-left:0.5rem}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}.mb-28{margin-bottom:1.75rem}.pb-16{padding-bottom:1rem}.pb-20{padding-bottom:1.25rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.pb-8{padding-bottom:0.5rem}.mt-16{margin-top:1rem}.mt-2{margin-top:0.125rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.w-20{width:1.25rem}.h-20{height:1.25rem}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}`, qn = Bn, Mn = class {
|
|
3282
|
+
constructor(n) {
|
|
3283
|
+
p(this, n), this.code = void 0, this.language = void 0, this.copied = !1;
|
|
1277
3284
|
}
|
|
1278
|
-
|
|
1279
|
-
|
|
3285
|
+
/**
|
|
3286
|
+
* Copies the current code content to the clipboard and sets a temporary copied state.
|
|
3287
|
+
*
|
|
3288
|
+
* @private
|
|
3289
|
+
* @returns {void}
|
|
3290
|
+
*/
|
|
3291
|
+
copyToClipboard() {
|
|
3292
|
+
navigator.clipboard.writeText(this.code).then(() => {
|
|
3293
|
+
this.copied = !0, setTimeout(() => this.copied = !1, 2e3);
|
|
3294
|
+
});
|
|
1280
3295
|
}
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
3296
|
+
/**
|
|
3297
|
+
* Utility function that creates a human-friendly analytics name based on the code and language.
|
|
3298
|
+
* It uses:
|
|
3299
|
+
* - The language (in uppercase)
|
|
3300
|
+
* - The number of non-empty lines in the code
|
|
3301
|
+
* - The first non-empty line of code (truncated to 30 characters, if needed)
|
|
3302
|
+
*
|
|
3303
|
+
* returns A descriptive analytics name.
|
|
3304
|
+
*/
|
|
3305
|
+
/*private createHumanFriendlyAnalyticsName(code: string, language: string): string {
|
|
3306
|
+
// Count non-empty lines
|
|
3307
|
+
const lines = code.split('\n').filter(line => line.trim() !== '').length;
|
|
3308
|
+
|
|
3309
|
+
// Find the first non-empty line and trim it
|
|
3310
|
+
let firstNonEmptyLine = code.split('\n').find(line => line.trim() !== '');
|
|
3311
|
+
firstNonEmptyLine = firstNonEmptyLine ? firstNonEmptyLine.trim() : '';
|
|
3312
|
+
|
|
3313
|
+
// Truncate the snippet if it’s too long
|
|
3314
|
+
if (firstNonEmptyLine.length > 30) {
|
|
3315
|
+
firstNonEmptyLine = firstNonEmptyLine.substring(0, 30) + '...';
|
|
3316
|
+
}
|
|
3317
|
+
|
|
3318
|
+
return `CodeBlock:${language.toLowerCase()}|${lines}-line(s)|${firstNonEmptyLine.toLowerCase()}`;
|
|
3319
|
+
}*/
|
|
3320
|
+
/**
|
|
3321
|
+
* Returns the syntax-highlighted HTML for the code.
|
|
3322
|
+
* If the provided language is supported by Prism, this method returns the highlighted code.
|
|
3323
|
+
* Otherwise, it logs a warning and returns the raw code.
|
|
3324
|
+
*
|
|
3325
|
+
* @private
|
|
3326
|
+
* @returns {string} The highlighted HTML string for the code block.
|
|
3327
|
+
*/
|
|
3328
|
+
getHighlightedCode() {
|
|
3329
|
+
return this.language && X.languages[this.language] ? X.highlight(this.code, X.languages[this.language], this.language) : this.code;
|
|
1294
3330
|
}
|
|
1295
3331
|
render() {
|
|
1296
|
-
|
|
1297
|
-
intent: this.intent,
|
|
1298
|
-
loading: this.loading,
|
|
1299
|
-
iconPos: this.iconPos,
|
|
1300
|
-
size: this.size,
|
|
1301
|
-
pill: this.pill,
|
|
1302
|
-
iconOnly: !this.label,
|
|
1303
|
-
iconSmall: this.iconSmall
|
|
1304
|
-
}), e = this.elementType;
|
|
1305
|
-
return i(e, { key: "ecdd901c70578c07ef094aadbcd287588d4ba705", "aria-label": this.label || this.ariaLabel || void 0, "aria-disabled": this.elementType === "button" ? this.disabled : void 0, disabled: this.elementType === "button" ? this.disabled : void 0, class: `${n || ""} ${this.extraClass || ""}`, onClick: (r) => this.handleClick(r) }, this.label && i("span", { key: "af8d0ca1c5c3e54f9db3066931a69d3a5a812666", class: this.loading ? "opacity-0" : "" }, this.label), this.loading && i("span", { key: "29b72c15e80f46e023f829568f58d8a8dca82b78", class: "absolute inset-0 flex items-center justify-center" }, i("span", { key: "bad8bd059b1312ca3f5ab173b1203eb395e9bbd8", class: "loader", style: {
|
|
1306
|
-
border: `3px solid ${this.intent === "secondary" ? "rgba(255, 255, 255, .3)" : "rgba(0, 0, 0, .3)"}`,
|
|
1307
|
-
borderBottomColor: this.intent === "secondary" ? "#fff" : "#000"
|
|
1308
|
-
} })), this.icon ? i("eds-icon-wrapper", { class: `
|
|
1309
|
-
flex inline-flex items-center justify-center
|
|
1310
|
-
${this.size === "large" ? "h-24 w-24" : "h-20 w-20"}
|
|
1311
|
-
`, icon: this.icon }) : null);
|
|
3332
|
+
return i("div", { key: "3cfaec27c58d05868313150f1a358ff64c8eafbd", class: "relative bg-stronger rounded-sm" }, i("div", { key: "ed91821385f30305348750dbfffec5fdd7b4dbb8", class: "text-inverse flex justify-between items-center p-8" }, this.language ? i("span", { class: "f-ui-03" }, this.language.toUpperCase()) : i("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, i("code", { innerHTML: this.getHighlightedCode() })), i("span", { key: "3e419585214883c878a8e84c440dbd29d590002d", "aria-hidden": "true", class: "w-20 h-20 mt-8" }, i("eds-icon-wrapper", { key: "051fa9c714d5c077d5d96ec9b92f8a744ec123bc", icon: this.copied ? "success" : "copy", onClick: () => this.copyToClipboard() })), i("span", { key: "707950ce89cb0c24b1afac42a8801d13659b6bab", class: "sr-only" }, "Copy Code")), this.language && i("pre", { key: "59923dd4c16cfecafffa2edaaac5ef7579c3f128", class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, i("code", { key: "8c708992c04029d71685ad8922383ecdda05ac3c", innerHTML: this.getHighlightedCode() })));
|
|
1312
3333
|
}
|
|
1313
3334
|
get el() {
|
|
1314
|
-
return
|
|
3335
|
+
return y(this);
|
|
1315
3336
|
}
|
|
1316
3337
|
};
|
|
1317
|
-
|
|
1318
|
-
const
|
|
3338
|
+
Mn.style = qn;
|
|
3339
|
+
const Un = ".z-focus{z-index:99}.relative{position:relative}.shadow-small{--tw-shadow:0px 1.5px 2px rgba(0, 0, 0, 0.1);--tw-shadow-colored:0px 1.5px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-inverse{background-color:var(--white)}.border-softest{border:2px solid rgba(0, 0, 0, .05)}.z-10{z-index:10}.z-on-top{z-index:99999}.absolute{position:absolute}.top-full{top:100%}.mt-4{margin-top:0.25rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.gap-y-4{row-gap:0.25rem}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.left-0{left:0rem}.left-1\\/2{left:50%}.left-4{left:0.25rem}.left-\\[4px\\]{left:4px}.right-0{right:0rem}.right-4{right:0.25rem}.right-8{right:0.5rem}", Vn = Un, Gn = class {
|
|
1319
3340
|
constructor(n) {
|
|
1320
|
-
|
|
3341
|
+
p(this, n), this.dropdown = w(this, "dropdown", 7), this.focusableItems = [], this.handleClick = () => {
|
|
1321
3342
|
var e;
|
|
1322
|
-
this.isOpen = !this.isOpen, this.isOpen ? (this.focusIndex = 0, this.focusItem()) : this.closeDropdown(), this.dropdown.emit({ expanded: this.isOpen }),
|
|
3343
|
+
this.isOpen = !this.isOpen, this.isOpen ? (this.focusIndex = 0, this.focusItem()) : this.closeDropdown(), this.dropdown.emit({ expanded: this.isOpen }), I({
|
|
1323
3344
|
category: "ui-component",
|
|
1324
3345
|
parentContext: null,
|
|
1325
3346
|
tag: this.host.tagName.toLowerCase(),
|
|
@@ -1379,118 +3400,132 @@ const q = ".z-focus{z-index:99}.relative{position:relative}.shadow-small{--tw-sh
|
|
|
1379
3400
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
1380
3401
|
*/
|
|
1381
3402
|
render() {
|
|
1382
|
-
return i("div", { key: "
|
|
3403
|
+
return i("div", { key: "31e8b1fd4e146cbcad4d74bd78dff1cd1e1950bd", class: "z-focus relative", ref: (n) => this.dropdownContent = n }, i("eds-button", { key: "7021a0b0ff66780a324d7d9d1f6cff250ab64178", label: this.label, "aria-label": this.ariaLabel, icon: this.icon, intent: this.intent, onClick: this.handleClick, "aria-expanded": this.isOpen.toString(), "aria-haspopup": "menu" }), i("nav", { key: "904fd2a7f727a8b3966eab6cf9ebdb0efa474ae0", role: "menu", class: {
|
|
1383
3404
|
"shadow-small bg-inverse border-softest z-10 z-on-top absolute top-full mt-4 flex flex-col gap-y-4 border-2 p-8": !0,
|
|
1384
3405
|
"left-4": this.dropdownPos === "left" && this.dropdownOffset,
|
|
1385
3406
|
"left-0": this.dropdownPos === "left" && !this.dropdownOffset,
|
|
1386
3407
|
"right-4": this.dropdownPos === "right" && this.dropdownOffset,
|
|
1387
3408
|
"right-0": this.dropdownPos === "right" && !this.dropdownOffset,
|
|
1388
3409
|
"rounded-lg": this.rounded
|
|
1389
|
-
}, style: { display: this.isOpen ? "block" : "none" }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, i("slot", { key: "
|
|
3410
|
+
}, style: { display: this.isOpen ? "block" : "none" }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, i("slot", { key: "b416621930c7117775fef2ee91bdca0f660302f5" })));
|
|
1390
3411
|
}
|
|
1391
3412
|
get host() {
|
|
1392
|
-
return
|
|
3413
|
+
return y(this);
|
|
1393
3414
|
}
|
|
1394
3415
|
};
|
|
1395
|
-
|
|
1396
|
-
function
|
|
1397
|
-
const
|
|
1398
|
-
if (
|
|
1399
|
-
const
|
|
1400
|
-
|
|
1401
|
-
}
|
|
1402
|
-
if (
|
|
1403
|
-
const
|
|
1404
|
-
isNaN(
|
|
1405
|
-
}
|
|
1406
|
-
return l && typeof e == "string" && e.length > l &&
|
|
1407
|
-
}
|
|
1408
|
-
function
|
|
1409
|
-
const
|
|
1410
|
-
var
|
|
1411
|
-
return ((
|
|
1412
|
-
}).flatMap((
|
|
1413
|
-
var
|
|
1414
|
-
return Array.from(((
|
|
1415
|
-
}).some((
|
|
1416
|
-
return e && !
|
|
1417
|
-
}
|
|
1418
|
-
function
|
|
1419
|
-
var
|
|
1420
|
-
const l = [],
|
|
1421
|
-
var
|
|
1422
|
-
return (
|
|
3416
|
+
Gn.style = Vn;
|
|
3417
|
+
function K(n, e, t, r, l, s, c) {
|
|
3418
|
+
const d = [];
|
|
3419
|
+
if (r && !e) {
|
|
3420
|
+
const b = n.length > 30 ? `${n.slice(0, 27)}…` : n;
|
|
3421
|
+
d.push(`“${b}” is required.`);
|
|
3422
|
+
}
|
|
3423
|
+
if (t === "number") {
|
|
3424
|
+
const b = typeof e == "number" ? e : parseFloat(e);
|
|
3425
|
+
isNaN(b) ? d.push(`${n} must be a valid number.`) : (typeof s == "number" && b < s && d.push(`${n} must be greater than or equal to ${s}.`), typeof c == "number" && b > c && d.push(`${n} must be less than or equal to ${c}.`));
|
|
3426
|
+
}
|
|
3427
|
+
return l && typeof e == "string" && e.length > l && d.push(`${n} must be at most ${l} characters.`), t === "email" && e && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.toString()) && d.push("Invalid email format."), d;
|
|
3428
|
+
}
|
|
3429
|
+
function on(n, e, t) {
|
|
3430
|
+
const s = Array.from(t.querySelectorAll("eds-input-field")).filter((d) => {
|
|
3431
|
+
var b, S;
|
|
3432
|
+
return ((S = (b = d.shadowRoot) === null || b === void 0 ? void 0 : b.querySelectorAll(`input[name="${n}"]`)) === null || S === void 0 ? void 0 : S.length) > 0;
|
|
3433
|
+
}).flatMap((d) => {
|
|
3434
|
+
var b;
|
|
3435
|
+
return Array.from(((b = d.shadowRoot) === null || b === void 0 ? void 0 : b.querySelectorAll(`input[name="${n}"]`)) || []);
|
|
3436
|
+
}).some((d) => d.checked), c = [];
|
|
3437
|
+
return e && !s && c.push(`At least one option in ${n} is required.`), c;
|
|
3438
|
+
}
|
|
3439
|
+
function an(n, e, t) {
|
|
3440
|
+
var r;
|
|
3441
|
+
const l = [], s = Array.from(t.querySelectorAll("eds-input-field")).find((d) => {
|
|
3442
|
+
var b;
|
|
3443
|
+
return (b = d.shadowRoot) === null || b === void 0 ? void 0 : b.querySelector(`[name="${n}"]`);
|
|
1423
3444
|
});
|
|
1424
|
-
if (!
|
|
3445
|
+
if (!s)
|
|
1425
3446
|
return e && l.push(`${n} is required.`), l;
|
|
1426
|
-
const
|
|
1427
|
-
return e &&
|
|
1428
|
-
}
|
|
1429
|
-
function
|
|
1430
|
-
const
|
|
1431
|
-
for (const
|
|
1432
|
-
if (
|
|
1433
|
-
const l =
|
|
3447
|
+
const c = (r = s.shadowRoot) === null || r === void 0 ? void 0 : r.querySelector(`[name="${n}"]`);
|
|
3448
|
+
return e && c && !c.checked && l.push(`${n} is required.`), l;
|
|
3449
|
+
}
|
|
3450
|
+
function Yn(n, e) {
|
|
3451
|
+
const t = Array.from(n.querySelectorAll("eds-input-field"));
|
|
3452
|
+
for (const r of t)
|
|
3453
|
+
if (r.shadowRoot) {
|
|
3454
|
+
const l = r.shadowRoot.querySelector(`[name="${e}"]`);
|
|
1434
3455
|
if (l)
|
|
1435
3456
|
return l;
|
|
1436
3457
|
}
|
|
1437
3458
|
return null;
|
|
1438
3459
|
}
|
|
1439
|
-
function
|
|
3460
|
+
function Xn(n) {
|
|
1440
3461
|
const e = Array.from(n.querySelectorAll("eds-rating"));
|
|
1441
|
-
for (const
|
|
1442
|
-
return
|
|
3462
|
+
for (const t of e)
|
|
3463
|
+
return t;
|
|
3464
|
+
return null;
|
|
3465
|
+
}
|
|
3466
|
+
function Kn(n) {
|
|
3467
|
+
const e = Array.from(n.querySelectorAll("eds-nps"));
|
|
3468
|
+
for (const t of e)
|
|
3469
|
+
return t;
|
|
1443
3470
|
return null;
|
|
1444
3471
|
}
|
|
1445
|
-
function
|
|
3472
|
+
function Zn(n, e, t, r) {
|
|
1446
3473
|
const l = {};
|
|
1447
|
-
let
|
|
1448
|
-
return n.forEach((
|
|
1449
|
-
|
|
1450
|
-
|
|
3474
|
+
let s = !1;
|
|
3475
|
+
return n.forEach((c) => {
|
|
3476
|
+
var d;
|
|
3477
|
+
if (!r(c, t)) {
|
|
3478
|
+
delete l[c.name];
|
|
1451
3479
|
return;
|
|
1452
3480
|
}
|
|
1453
|
-
if (
|
|
1454
|
-
if ((
|
|
1455
|
-
const
|
|
1456
|
-
|
|
1457
|
-
} else if (
|
|
1458
|
-
const
|
|
1459
|
-
|
|
1460
|
-
} else if (
|
|
1461
|
-
const
|
|
1462
|
-
if (
|
|
1463
|
-
const
|
|
1464
|
-
|
|
3481
|
+
if (c.type !== "hidden")
|
|
3482
|
+
if ((c.type === "checkbox" || c.type === "radio") && !c.options) {
|
|
3483
|
+
const b = an(c.name, c.required, e);
|
|
3484
|
+
b.length > 0 && (l[c.name] = b, s = !0);
|
|
3485
|
+
} else if (c.options && (c.type === "checkbox" || c.type === "radio")) {
|
|
3486
|
+
const b = on(c.name, c.required, e);
|
|
3487
|
+
b.length > 0 && (l[c.name] = b, s = !0);
|
|
3488
|
+
} else if (c.type === "rating") {
|
|
3489
|
+
const b = Xn(e);
|
|
3490
|
+
if (b) {
|
|
3491
|
+
const S = b.getAttribute("selected-rating"), A = S !== null ? parseInt(S, 10) : 0, _ = K(c.name, A, c.type, c.required);
|
|
3492
|
+
_.length > 0 && (l[c.name] = _, s = !0);
|
|
1465
3493
|
}
|
|
3494
|
+
} else if (c.type === "nps") {
|
|
3495
|
+
const b = Kn(e);
|
|
3496
|
+
if (b && b.shadowRoot) {
|
|
3497
|
+
const S = (d = b.shadowRoot.querySelector('eds-button[tabindex="0"]')) === null || d === void 0 ? void 0 : d.getAttribute("aria-label"), A = S !== null ? parseInt(S, 10) : NaN, _ = Number.isInteger(A) && A >= 0 && A <= 10 ? A : NaN;
|
|
3498
|
+
isNaN(_) && c.required && (l[c.name] = ["This field is required."], s = !0);
|
|
3499
|
+
} else c.required && (l[c.name] = ["This field is required."], s = !0);
|
|
3500
|
+
return;
|
|
1466
3501
|
} else {
|
|
1467
|
-
const
|
|
1468
|
-
if (
|
|
1469
|
-
const
|
|
1470
|
-
|
|
3502
|
+
const b = Yn(e, c.name);
|
|
3503
|
+
if (b) {
|
|
3504
|
+
const S = b.value, A = K(c.name, S, c.type, c.required, c.maxlength, c.min, c.max);
|
|
3505
|
+
A.length > 0 && (l[c.name] = A, s = !0);
|
|
1471
3506
|
}
|
|
1472
3507
|
}
|
|
1473
|
-
}), { errors: l, hasError:
|
|
3508
|
+
}), { errors: l, hasError: s };
|
|
1474
3509
|
}
|
|
1475
|
-
function
|
|
1476
|
-
return n.type === "checkbox" || n.type === "radio" ? n.options ?
|
|
3510
|
+
function Jn(n, e, t) {
|
|
3511
|
+
return n.type === "checkbox" || n.type === "radio" ? n.options ? on(n.name, n.required, t) : an(n.name, n.required, t) : K(n.name, e, n.type, n.required, n.maxlength, n.min, n.max);
|
|
1477
3512
|
}
|
|
1478
|
-
function
|
|
3513
|
+
function Qn({
|
|
1479
3514
|
initData: n,
|
|
1480
3515
|
parsedFields: e,
|
|
1481
|
-
currentValues:
|
|
3516
|
+
currentValues: t
|
|
1482
3517
|
//formEl,
|
|
1483
3518
|
//isFieldVisible
|
|
1484
3519
|
}) {
|
|
1485
|
-
const
|
|
3520
|
+
const r = Object.assign({}, t);
|
|
1486
3521
|
return e.forEach((l) => {
|
|
1487
|
-
const
|
|
1488
|
-
|
|
1489
|
-
}), { updatedValues:
|
|
3522
|
+
const s = n[l.name];
|
|
3523
|
+
s !== void 0 && (r[l.name] = s);
|
|
3524
|
+
}), { updatedValues: r };
|
|
1490
3525
|
}
|
|
1491
|
-
const
|
|
3526
|
+
const ne = ".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.flex{display:flex}.flex-col{flex-direction:column}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-body-01 b,.f-body-01 strong{font-weight:var(--f-body-01---bold-weight, bold)}.f-body-02 b,.f-body-02 strong{font-weight:var(--f-body-02---bold-weight, bold)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.text-light{color:var(--grey-700)}.rounded-sm{border-radius:8px}.border-softer{border-color:rgba(0, 0, 0, .1)}.border-2{border-width:2px}.mt-20{margin-top:1.25rem}.mt-32{margin-top:2rem}.mb-32{margin-bottom:2rem}.pt-28{padding-top:1.75rem}.pl-8{padding-left:0.5rem}.pl-16{padding-left:1rem}.border-l-2{border-left-width:2px}.gap-y-8{row-gap:0.5rem}.gap-y-16{row-gap:1rem}.gap-y-24{row-gap:1.5rem}.border-group{border-left:1px solid var(--soft-color, #ddd);padding-left:1rem}.bg-inverse{background-color:var(--white)}.effect-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.shadow-hover{--tw-shadow:0px 0px 16px rgba(0, 0, 0, 0.2);--tw-shadow-colored:0px 0px 16px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.cursor-pointer{cursor:pointer}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.relative{position:relative}.rounded-lg{border-radius:16px}.px-16{padding-left:1rem;padding-right:1rem}.pb-16{padding-bottom:1rem}.p-32{padding:2rem}", ee = ne, te = class {
|
|
1492
3527
|
constructor(n) {
|
|
1493
|
-
|
|
3528
|
+
p(this, n), this.form = w(this, "form", 7), this.name = "eds-form", this.title = void 0, this.description = void 0, this.setFormUrl = !0, this.formBtn = !0, this.formBtnLabel = "Submit", this.buttonIntent = "primary", this.errorMessage = "Some fields in your form are incorrect.", this.fields = [], this.groups = [], this.initData = {}, this.formStyle = "default", this.values = {}, this.isSubmitting = !1, this.hasError = !1, this.errors = {}, this.parsedFields = [], this.parsedGroups = [];
|
|
1494
3529
|
}
|
|
1495
3530
|
async setData(n) {
|
|
1496
3531
|
this.populateFormWithInitData(n);
|
|
@@ -1507,10 +3542,10 @@ const X = ".container{width:calc(var(--container-width, 100%) - (2 * var(--break
|
|
|
1507
3542
|
return !!this.initData;
|
|
1508
3543
|
}
|
|
1509
3544
|
parseFields(n) {
|
|
1510
|
-
this.parsedFields =
|
|
3545
|
+
this.parsedFields = R(n);
|
|
1511
3546
|
}
|
|
1512
3547
|
parseGroups(n) {
|
|
1513
|
-
this.parsedGroups =
|
|
3548
|
+
this.parsedGroups = R(n);
|
|
1514
3549
|
}
|
|
1515
3550
|
emitContext(n) {
|
|
1516
3551
|
const e = new CustomEvent("parentContext", {
|
|
@@ -1524,39 +3559,39 @@ const X = ".container{width:calc(var(--container-width, 100%) - (2 * var(--break
|
|
|
1524
3559
|
isFieldVisible(n) {
|
|
1525
3560
|
if (!n.condition)
|
|
1526
3561
|
return !0;
|
|
1527
|
-
const e = this.values[n.condition.field],
|
|
1528
|
-
return String(e) === String(
|
|
3562
|
+
const e = this.values[n.condition.field], t = n.condition.value;
|
|
3563
|
+
return String(e) === String(t);
|
|
1529
3564
|
}
|
|
1530
3565
|
validateForm() {
|
|
1531
|
-
const { errors: n, hasError: e } =
|
|
3566
|
+
const { errors: n, hasError: e } = Zn(this.parsedFields, this.formEl, this.values, (t, r) => t.condition ? r[t.condition.field] === t.condition.value : !0);
|
|
1532
3567
|
this.errors = n, this.hasError = e;
|
|
1533
3568
|
}
|
|
1534
3569
|
populateFormWithInitData(n) {
|
|
1535
|
-
const { updatedValues: e } =
|
|
3570
|
+
const { updatedValues: e } = Qn({
|
|
1536
3571
|
initData: n,
|
|
1537
3572
|
parsedFields: this.parsedFields,
|
|
1538
3573
|
currentValues: this.values,
|
|
1539
3574
|
formEl: this.formEl,
|
|
1540
|
-
isFieldVisible: (
|
|
3575
|
+
isFieldVisible: (t, r) => t.condition ? r[t.condition.field] === t.condition.value : !0
|
|
1541
3576
|
});
|
|
1542
3577
|
this.values = e;
|
|
1543
3578
|
}
|
|
1544
3579
|
getFormData() {
|
|
1545
3580
|
const n = new FormData();
|
|
1546
|
-
return n.append("form_name", this.name), this.setFormUrl && typeof window < "u" && n.set("form_url", window.location.href), Array.from(this.formEl.querySelectorAll("eds-input-field")).forEach((
|
|
1547
|
-
if (
|
|
1548
|
-
const
|
|
1549
|
-
if (
|
|
1550
|
-
if (
|
|
1551
|
-
const
|
|
1552
|
-
n.append(
|
|
1553
|
-
} else if (
|
|
1554
|
-
const l =
|
|
1555
|
-
l.files && l.files.length > 0 && Array.from(l.files).forEach((
|
|
1556
|
-
n.append(l.name,
|
|
3581
|
+
return n.append("form_name", this.name), this.setFormUrl && typeof window < "u" && n.set("form_url", window.location.href), Array.from(this.formEl.querySelectorAll("eds-input-field")).forEach((t) => {
|
|
3582
|
+
if (t.shadowRoot) {
|
|
3583
|
+
const r = t.shadowRoot.querySelector("input, textarea, select");
|
|
3584
|
+
if (r && r.name)
|
|
3585
|
+
if (r.type === "checkbox" || r.type === "radio") {
|
|
3586
|
+
const s = Array.from(t.shadowRoot.querySelectorAll(`input[name="${r.name}"]:checked`)).map((c) => c.value);
|
|
3587
|
+
n.append(r.name, s.join(","));
|
|
3588
|
+
} else if (r.type === "file") {
|
|
3589
|
+
const l = r;
|
|
3590
|
+
l.files && l.files.length > 0 && Array.from(l.files).forEach((s) => {
|
|
3591
|
+
n.append(l.name, s);
|
|
1557
3592
|
});
|
|
1558
3593
|
} else
|
|
1559
|
-
n.append(
|
|
3594
|
+
n.append(r.name, r.value);
|
|
1560
3595
|
}
|
|
1561
3596
|
}), n;
|
|
1562
3597
|
}
|
|
@@ -1567,46 +3602,57 @@ const X = ".container{width:calc(var(--container-width, 100%) - (2 * var(--break
|
|
|
1567
3602
|
}), n;
|
|
1568
3603
|
}
|
|
1569
3604
|
handleChange(n, e) {
|
|
1570
|
-
const
|
|
1571
|
-
let
|
|
1572
|
-
if (
|
|
3605
|
+
const t = n.target;
|
|
3606
|
+
let r = t.value;
|
|
3607
|
+
if (t.type === "checkbox") {
|
|
1573
3608
|
const l = this.values[e.name] || "";
|
|
1574
|
-
let
|
|
1575
|
-
|
|
1576
|
-
} else if (
|
|
1577
|
-
if (!
|
|
3609
|
+
let s = l ? l.split(",") : [];
|
|
3610
|
+
t.checked ? s.includes(t.value) || s.push(t.value) : s = s.filter((c) => c !== t.value), r = s.join(",");
|
|
3611
|
+
} else if (t.type === "radio") {
|
|
3612
|
+
if (!t.checked)
|
|
1578
3613
|
return;
|
|
1579
|
-
|
|
3614
|
+
r = t.value;
|
|
1580
3615
|
}
|
|
1581
|
-
this.values = Object.assign(Object.assign({}, this.values), { [e.name]:
|
|
3616
|
+
this.values = Object.assign(Object.assign({}, this.values), { [e.name]: r }), e.name !== "password" && this.form.emit({
|
|
1582
3617
|
event: "change",
|
|
1583
3618
|
field: e.name,
|
|
1584
|
-
value:
|
|
3619
|
+
value: r,
|
|
1585
3620
|
message: `${e.name} updated`
|
|
1586
3621
|
//data: this.makeFormData()
|
|
1587
3622
|
});
|
|
1588
3623
|
}
|
|
1589
3624
|
handleInput(n, e) {
|
|
1590
|
-
const
|
|
1591
|
-
if (
|
|
3625
|
+
const t = n.target;
|
|
3626
|
+
if (t.type === "radio" && !t.checked)
|
|
1592
3627
|
return;
|
|
1593
|
-
const
|
|
1594
|
-
|
|
3628
|
+
const r = t.value, l = Object.assign({}, this.errors), s = Jn(e, t.value, this.formEl);
|
|
3629
|
+
s.length > 0 ? l[e.name] = s : delete l[e.name], this.errors = l, this.hasError = Object.keys(l).length > 0, this.form.emit({
|
|
1595
3630
|
event: "input",
|
|
1596
3631
|
field: e.name,
|
|
1597
|
-
value:
|
|
3632
|
+
value: r,
|
|
1598
3633
|
message: `${e.name} updated`
|
|
1599
3634
|
//data: this.makeFormData()
|
|
1600
3635
|
});
|
|
1601
3636
|
}
|
|
1602
3637
|
handleRating(n, e) {
|
|
1603
|
-
const
|
|
1604
|
-
this.values = Object.assign(Object.assign({}, this.values), { [e.name]:
|
|
1605
|
-
const
|
|
1606
|
-
e.required &&
|
|
3638
|
+
const t = n.detail;
|
|
3639
|
+
this.values = Object.assign(Object.assign({}, this.values), { [e.name]: t });
|
|
3640
|
+
const r = Object.assign({}, this.errors);
|
|
3641
|
+
e.required && t === 0 ? r[e.name] = ["This field is required"] : delete r[e.name], this.errors = r, this.hasError = Object.keys(r).length > 0, this.form.emit({
|
|
1607
3642
|
event: "change",
|
|
1608
3643
|
field: e.name,
|
|
1609
|
-
value:
|
|
3644
|
+
value: t,
|
|
3645
|
+
message: `${e.name} updated`
|
|
3646
|
+
});
|
|
3647
|
+
}
|
|
3648
|
+
handleNPS(n, e) {
|
|
3649
|
+
const t = n.detail;
|
|
3650
|
+
this.values = Object.assign(Object.assign({}, this.values), { [e.name]: t });
|
|
3651
|
+
const r = Object.assign({}, this.errors);
|
|
3652
|
+
e.required && t === null ? r[e.name] = ["This field is required"] : delete r[e.name], this.errors = r, this.hasError = Object.keys(r).length > 0, this.form.emit({
|
|
3653
|
+
event: "change",
|
|
3654
|
+
field: e.name,
|
|
3655
|
+
value: t,
|
|
1610
3656
|
message: `${e.name} updated`
|
|
1611
3657
|
});
|
|
1612
3658
|
}
|
|
@@ -1620,7 +3666,7 @@ const X = ".container{width:calc(var(--container-width, 100%) - (2 * var(--break
|
|
|
1620
3666
|
success: !1,
|
|
1621
3667
|
message: this.errorMessage
|
|
1622
3668
|
//data: this.makeFormData()
|
|
1623
|
-
}),
|
|
3669
|
+
}), I({
|
|
1624
3670
|
category: "ui-component",
|
|
1625
3671
|
parentContext: null,
|
|
1626
3672
|
tag: this.el.tagName.toLowerCase(),
|
|
@@ -1635,7 +3681,7 @@ const X = ".container{width:calc(var(--container-width, 100%) - (2 * var(--break
|
|
|
1635
3681
|
validated: !0,
|
|
1636
3682
|
message: "Form data validated successfully"
|
|
1637
3683
|
//data: this.getFormData()
|
|
1638
|
-
}),
|
|
3684
|
+
}), I({
|
|
1639
3685
|
category: "ui-component",
|
|
1640
3686
|
parentContext: null,
|
|
1641
3687
|
tag: this.el.tagName.toLowerCase(),
|
|
@@ -1647,29 +3693,32 @@ const X = ".container{width:calc(var(--container-width, 100%) - (2 * var(--break
|
|
|
1647
3693
|
get groupedFields() {
|
|
1648
3694
|
const n = {};
|
|
1649
3695
|
return this.parsedGroups.forEach((e) => n[e.id] = []), n.__ungrouped = [], this.parsedFields.forEach((e) => {
|
|
1650
|
-
|
|
1651
|
-
|
|
3696
|
+
if (!this.isFieldVisible(e))
|
|
3697
|
+
return;
|
|
3698
|
+
const t = e.groupId || "__ungrouped";
|
|
3699
|
+
n[t] || (n[t] = []), n[t].push(e);
|
|
1652
3700
|
}), n;
|
|
1653
3701
|
}
|
|
1654
3702
|
renderField(n) {
|
|
1655
|
-
var e, r;
|
|
3703
|
+
var e, t, r;
|
|
1656
3704
|
if (!this.isFieldVisible(n))
|
|
1657
3705
|
return null;
|
|
1658
3706
|
if (n.type === "rating") {
|
|
1659
|
-
const
|
|
1660
|
-
return i("div", { class: "form-group rating-field", key: n.name }, i("div", { class: "flex justify-between" }, n && i("eds-input-label", { name: `rating-${n.name}`, label: n.label, disabled: n.disabled, required: n.required })), i("eds-rating", { id: `rating-${n.name}`, "rating-type": n.ratingType, "rating-count": n.ratingCount, "selected-rating":
|
|
1661
|
-
}
|
|
1662
|
-
|
|
3707
|
+
const l = this.values[n.name] || 0;
|
|
3708
|
+
return i("div", { class: "form-group rating-field", key: n.name }, i("div", { class: "flex justify-between" }, n && i("eds-input-label", { name: `rating-${n.name}`, label: n.label, disabled: n.disabled, required: n.required })), i("eds-rating", { id: `rating-${n.name}`, "rating-type": n.ratingType, "rating-count": n.ratingCount, "selected-rating": l, onRating: (s) => this.handleRating(s, n) }), i("div", { class: "mt-6" }, i("eds-input-footer", { id: `${n.name}-footer`, name: n.name, message: n.message, "error-message": (e = this.errors[n.name]) === null || e === void 0 ? void 0 : e.join("<br/>"), error: !!this.errors[n.name], link: n.link })));
|
|
3709
|
+
} else if (n.type === "nps")
|
|
3710
|
+
return i("div", { class: "form-group nps-field", key: n.name }, i("div", { class: "flex justify-between" }, n && i("eds-input-label", { name: `nps-${n.name}`, label: n.question, disabled: n.disabled, required: n.required })), i("eds-nps", { id: `nps-${n.name}`, "right-label": n.rightLabel, "left-label": n.leftLabel, onNps: (l) => this.handleNPS(l, n) }), i("div", { class: "mt-6" }, i("eds-input-footer", { id: `${n.name}-footer`, name: n.name, "error-message": (t = this.errors[n.name]) === null || t === void 0 ? void 0 : t.join("<br/>"), error: !!this.errors[n.name] })));
|
|
3711
|
+
return i("eds-input-field", { key: n.name, name: n.name, label: n.label, placeholder: n.placeholder, type: n.type, value: this.values[n.name], required: n.required, hint: n.hint, message: n.message, error: !!this.errors[n.name], errorMessage: (r = this.errors[n.name]) === null || r === void 0 ? void 0 : r.join("<br/>"), options: n.options, onInput: (l) => this.handleInput(l, n), onChangeNative: (l) => this.handleChange(l, n) });
|
|
1663
3712
|
}
|
|
1664
3713
|
async getData() {
|
|
1665
3714
|
return this.makeFormData();
|
|
1666
3715
|
}
|
|
1667
3716
|
render() {
|
|
1668
|
-
const n = this.parsedFields.filter((r) => r.type === "hidden"), e = this.groupedFields;
|
|
1669
|
-
return i("form", { key: "
|
|
3717
|
+
const n = this.parsedFields.filter((r) => r.type === "hidden"), e = this.groupedFields, t = this.formStyle === "shadow" ? "bg-inverse effect-shadow shadow-hover border-softer relative rounded-lg border-2 p-32" : "";
|
|
3718
|
+
return i("form", { key: "ecf49eb81f18b444d059d3bdea4600f4ae594ea9", class: t, ref: (r) => this.formEl = r, autocomplete: "on", onSubmit: this.handleSubmit }, i("div", { key: "65137fb770f274431c7906326cdf49e0fee73b18", class: "flex flex-col gap-y-24" }, this.title && i("span", { key: "e4c5b4a7883c4569a657cc234f18f995480ec8df", role: "heading", class: "f-heading-04" }, this.title), this.description && i("span", { key: "65528e4600127f1cff4ce0e5be6f8a6bddc4c864", class: "f-body-02 text-light" }, this.description), i("slot", { key: "6230035a050386763723c2b60bd5e81b912762d7" })), n.map((r, l) => i("eds-input", { key: l, type: "hidden", name: r.name, value: r.value })), this.parsedGroups.filter((r) => Array.isArray(e[r.id]) && e[r.id].length > 0).map((r) => i("div", { class: "container mt-32", key: r.id }, i("span", { class: "f-body-02" }, i("b", null, r.title)), i("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, e[r.id].map((l) => this.renderField(l))))), i("div", { key: "8116d30248f8461a842365470da9915200531028", class: "flex flex-col mt-32 gap-y-24" }, e.__ungrouped.map((r) => this.renderField(r))), this.formBtn && i("div", { key: "e2f1d3ca6a9f6a3b44c45e576150505c49e41dd1", class: "mt-32" }, i("eds-button", { key: "e312bf08b5db526c00497fafaa9476a225919aaf", intent: this.buttonIntent, label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })));
|
|
1670
3719
|
}
|
|
1671
3720
|
get el() {
|
|
1672
|
-
return
|
|
3721
|
+
return y(this);
|
|
1673
3722
|
}
|
|
1674
3723
|
static get watchers() {
|
|
1675
3724
|
return {
|
|
@@ -1678,10 +3727,10 @@ const X = ".container{width:calc(var(--container-width, 100%) - (2 * var(--break
|
|
|
1678
3727
|
};
|
|
1679
3728
|
}
|
|
1680
3729
|
};
|
|
1681
|
-
|
|
1682
|
-
const
|
|
3730
|
+
te.style = ee;
|
|
3731
|
+
const ie = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.z-10{z-index:10}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.mr-auto{margin-right:auto}.w-\\[200px\\]{width:200px}.h-\\[85px\\]{height:85px}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hidden{display:none}.gap-x-2{-moz-column-gap:0.125rem;column-gap:0.125rem}.after\\:effect-opacity::after{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.whitespace-nowrap{white-space:nowrap}.\\!text-current{color:currentColor !important}.overflow-hidden{overflow:hidden}.after\\:\\!border-transparent::after{border-color:var(--transparent) !important}.hover\\:after\\:\\!border-transparent:hover::after{border-color:var(--transparent) !important}.after\\:opacity-0::after{opacity:0}.hover\\:after\\:opacity-100:hover::after{opacity:1}.px-16{padding-left:1rem;padding-right:1rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}}", re = ie, le = class {
|
|
1683
3732
|
constructor(n) {
|
|
1684
|
-
|
|
3733
|
+
p(this, n), this.toggleheadermenu = w(this, "toggleheadermenu", 7), this.homeUrl = "/", this.links = void 0, this.headerVariant = "default", this.menuEnabled = !1, this.isMenuOpen = !1, this.isUserMenuOpen = !1, this.isAuthenticated = !1;
|
|
1685
3734
|
}
|
|
1686
3735
|
onAuthStatusChanged(n) {
|
|
1687
3736
|
var e;
|
|
@@ -1703,24 +3752,24 @@ const Q = ".block{display:block}.inline-block{display:inline-block}.inline{displ
|
|
|
1703
3752
|
this.isUserMenuOpen = !this.isUserMenuOpen;
|
|
1704
3753
|
}
|
|
1705
3754
|
get parsedLinks() {
|
|
1706
|
-
return
|
|
3755
|
+
return R(this.links);
|
|
1707
3756
|
}
|
|
1708
3757
|
render() {
|
|
1709
3758
|
const n = {
|
|
1710
3759
|
default: "text-default bg-dark",
|
|
1711
3760
|
inverse: "text-default bg-inverse",
|
|
1712
3761
|
strong: "text-inverse bg-strongest"
|
|
1713
|
-
}, e = n[this.headerVariant] || n.default,
|
|
1714
|
-
return i("header", { key: "
|
|
3762
|
+
}, e = n[this.headerVariant] || n.default, t = this.headerVariant === "strong" ? "color-white" : "color";
|
|
3763
|
+
return i("header", { key: "a0f5bb7d9e850e9414db804019674d6bcbc8ea0b", class: `flex items-center justify-between relative z-10 ${e}` }, i("div", { key: "678d5b1583e6fa47c0eac8ce734e8ec34cd76ad9", class: "mr-auto w-[200px] h-[85px]" }, i("eds-logo", { key: "12ce9c42b266bbddfd75d2a8f0097708480a2490", type: t, href: this.homeUrl })), this.parsedLinks && i("nav", { key: "eb388b679d4e268dc7fc011bc2a6406a619287c8", class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, i("ul", { key: "c3f8689bb257166c50dd678287c8ad4f54eb315a", class: "flex gap-x-2" }, this.parsedLinks.map((r) => i("eds-link", { label: r.label, "aria-label": r.label, url: r.url, intent: "ghost", size: "large", icon: r.icon, external: r.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))), i("slot", { key: "3f689a811a60052393a795937a908cf7d0604cc6" }), this.menuEnabled && i("div", { key: "506b953b455b72085d83bdaafc6855992075ddbe", class: "md:hidden flex overflow-hidden px-16" }, i("eds-button", { key: "5b526affd813549a6142efab255d6486a5e2dd66", "aria-label": "Menu", intent: this.headerVariant === "default" ? "ghost" : "ghostInverse", icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })));
|
|
1715
3764
|
}
|
|
1716
3765
|
get hostEl() {
|
|
1717
|
-
return
|
|
3766
|
+
return y(this);
|
|
1718
3767
|
}
|
|
1719
3768
|
};
|
|
1720
|
-
|
|
1721
|
-
const
|
|
3769
|
+
le.style = re;
|
|
3770
|
+
const xt = class {
|
|
1722
3771
|
constructor(n) {
|
|
1723
|
-
|
|
3772
|
+
p(this, n), this.TagName = null, this.icon = "arrow-right", this.class = "", this.IconComponent = null;
|
|
1724
3773
|
}
|
|
1725
3774
|
componentWillLoad() {
|
|
1726
3775
|
this.loadIconComponent(this.icon);
|
|
@@ -1744,7 +3793,7 @@ const ee = class {
|
|
|
1744
3793
|
icon: ["iconChanged"]
|
|
1745
3794
|
};
|
|
1746
3795
|
}
|
|
1747
|
-
},
|
|
3796
|
+
}, oe = `/*
|
|
1748
3797
|
1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
1749
3798
|
2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
1750
3799
|
This can trigger a poorly considered lint error in some tools but is included by design.
|
|
@@ -1826,9 +3875,9 @@ video {
|
|
|
1826
3875
|
|
|
1827
3876
|
.opacity-100 {
|
|
1828
3877
|
opacity: 1;
|
|
1829
|
-
}`,
|
|
3878
|
+
}`, ae = oe, se = class {
|
|
1830
3879
|
constructor(n) {
|
|
1831
|
-
|
|
3880
|
+
p(this, n), this.img = null, this.handleLoad = () => {
|
|
1832
3881
|
this.loaded = !0, this.showBg = !1;
|
|
1833
3882
|
}, this.handleError = () => {
|
|
1834
3883
|
this.loaded = !0, this.showBg = !1;
|
|
@@ -1841,25 +3890,25 @@ video {
|
|
|
1841
3890
|
}
|
|
1842
3891
|
render() {
|
|
1843
3892
|
const n = {};
|
|
1844
|
-
return this.lazyload && (n.loading = "lazy", n.decoding = "async"), i("div", { key: "
|
|
3893
|
+
return this.lazyload && (n.loading = "lazy", n.decoding = "async"), i("div", { key: "fec0dcf2ec178a953f4ced8a71b037030983670d", class: {
|
|
1845
3894
|
"items-center justify-center": !0,
|
|
1846
3895
|
"effect-bg-pattern": this.lazyload && this.showBg
|
|
1847
|
-
} }, i("picture", { key: "
|
|
3896
|
+
} }, i("picture", { key: "0df010a6ed50519be0a2017bf12db7d1ab2fb208" }, this.formats.map((e) => i("source", { type: e.type, srcSet: e.srcset, media: e.media, sizes: this.sizes })), i("img", Object.assign({ key: "ea4275b2cc6be0cce5ab63f97d05454e3c4ee1dc", ref: (e) => this.img = e, class: {
|
|
1848
3897
|
"effect-opacity object-cover object-center": !0,
|
|
1849
3898
|
"opacity-100": this.loaded,
|
|
1850
3899
|
"opacity-0": !this.loaded
|
|
1851
3900
|
}, width: this.width, height: this.height, sizes: this.sizes, src: this.src, srcSet: this.srcset, alt: this.alt }, n, { onLoad: this.handleLoad, onError: this.handleError, onTransitionEnd: this.handleTransitionEnd }))));
|
|
1852
3901
|
}
|
|
1853
3902
|
get imgElement() {
|
|
1854
|
-
return
|
|
3903
|
+
return y(this);
|
|
1855
3904
|
}
|
|
1856
3905
|
};
|
|
1857
|
-
|
|
1858
|
-
const
|
|
3906
|
+
se.style = ae;
|
|
3907
|
+
const yt = class {
|
|
1859
3908
|
constructor(n) {
|
|
1860
|
-
|
|
1861
|
-
const
|
|
1862
|
-
this.innerVal =
|
|
3909
|
+
p(this, n), this.handleInput = (e) => {
|
|
3910
|
+
const t = e.target;
|
|
3911
|
+
this.innerVal = t.value, this.maxLength && this.type === "textarea" && (this.maxLengthReached = t.value.length >= this.maxLength);
|
|
1863
3912
|
}, this.name = void 0, this.inputId = void 0, this.placeholder = void 0, this.disabled = !1, this.hasMessage = !1, this.error = !1, this.checked = void 0, this.type = "text", this.required = !1, this.value = void 0, this.icon = void 0, this.maxLength = void 0, this.options = [], this.extraClass = void 0, this.min = void 0, this.max = void 0, this.step = void 0, this.innerVal = "", this.maxLengthReached = !1;
|
|
1864
3913
|
}
|
|
1865
3914
|
onValueChanged(n) {
|
|
@@ -1873,7 +3922,7 @@ const ie = class {
|
|
|
1873
3922
|
}
|
|
1874
3923
|
render() {
|
|
1875
3924
|
const n = !!this.icon, e = this.hasMessage || this.error ? `${this.name}-error` : "";
|
|
1876
|
-
return i("div", { key: "
|
|
3925
|
+
return i("div", { key: "0a6386205f78655569bf93960a4e2664563e4014", class: "relative flex items-center" }, this.type === "textarea" ? i("textarea", { id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, class: `min-h-80 input input-textarea ${n ? "input-with-icon" : ""} ${this.error ? "input-error" : ""} ${this.extraClass}`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": e, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }) : this.type === "select" ? i("select", { id: this.inputId || this.name, name: this.name, required: this.required, disabled: this.disabled, class: `input input-select ${this.error ? "input-error" : ""} ${this.extraClass}`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": e, onInput: this.handleInput, onChange: this.handleInput }, this.options.map((t) => i("option", { value: t.value, selected: t.value === this.innerVal, key: t.value }, t.label))) : i("input", Object.assign({ id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, type: this.type, checked: ["radio", "checkbox"].includes(this.type) ? this.checked : void 0 }, this.type === "number" ? {
|
|
1877
3926
|
min: this.min,
|
|
1878
3927
|
max: this.max,
|
|
1879
3928
|
step: this.step
|
|
@@ -1882,17 +3931,17 @@ const ie = class {
|
|
|
1882
3931
|
input ${this.type === "radio" ? "input-radio" : this.type === "checkbox" ? "input-checkbox" : ""}
|
|
1883
3932
|
${n && this.type !== "radio" && this.type !== "checkbox" ? "input-icon pl-36" : ""}
|
|
1884
3933
|
${this.error ? "input-error" : ""}
|
|
1885
|
-
`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": e, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })), this.maxLength && this.type === "textarea" && i("span", { key: "
|
|
3934
|
+
`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": e, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })), this.maxLength && this.type === "textarea" && i("span", { key: "c78bf1501f682cde9a193ea6726baf2433566516", class: `input-counter f-ui-05 absolute bottom-8 right-8 ${this.maxLengthReached ? "input-counter-error" : ""}` }, this.maxLength), this.icon && i("eds-icon-wrapper", { key: "c07e7d5d8394292cf365f32838dfd837ccf168d6", class: `absolute top-1/2 left-[4px] -translate-y-1/2 ${this.disabled, "text-lightest"}`, icon: this.icon }));
|
|
1886
3935
|
}
|
|
1887
3936
|
get el() {
|
|
1888
|
-
return
|
|
3937
|
+
return y(this);
|
|
1889
3938
|
}
|
|
1890
3939
|
static get watchers() {
|
|
1891
3940
|
return {
|
|
1892
3941
|
value: ["onValueChanged"]
|
|
1893
3942
|
};
|
|
1894
3943
|
}
|
|
1895
|
-
},
|
|
3944
|
+
}, de = `:root {
|
|
1896
3945
|
font-optical-sizing: auto;
|
|
1897
3946
|
}
|
|
1898
3947
|
html,
|
|
@@ -9662,29 +11711,29 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
9662
11711
|
}
|
|
9663
11712
|
}
|
|
9664
11713
|
|
|
9665
|
-
`,
|
|
11714
|
+
`, ce = de, ge = class {
|
|
9666
11715
|
constructor(n) {
|
|
9667
|
-
|
|
9668
|
-
var
|
|
9669
|
-
if ((
|
|
11716
|
+
p(this, n), this.edsinput = w(this, "edsinput", 7), this.edschange = w(this, "edschange", 7), this.handleNativeInput = (e) => {
|
|
11717
|
+
var t, r;
|
|
11718
|
+
if ((t = this.onInput) === null || t === void 0 || t.call(this, e), this.shouldEmitValue()) {
|
|
9670
11719
|
const l = e.target;
|
|
9671
|
-
let
|
|
9672
|
-
if (this.type === "checkbox" && ((
|
|
9673
|
-
const
|
|
9674
|
-
|
|
9675
|
-
} else this.type === "checkbox" ?
|
|
9676
|
-
this.edsinput.emit({ value:
|
|
11720
|
+
let s = l.value;
|
|
11721
|
+
if (this.type === "checkbox" && ((r = this.parsedOptions) === null || r === void 0 ? void 0 : r.length) > 0) {
|
|
11722
|
+
const c = this.hostEl.querySelectorAll(`input[type="checkbox"][name="${this.name}"]`);
|
|
11723
|
+
s = Array.from(c).filter((d) => d.checked).map((d) => d.value);
|
|
11724
|
+
} else this.type === "checkbox" ? s = l.checked : (this.type, s = l.value);
|
|
11725
|
+
this.edsinput.emit({ value: s });
|
|
9677
11726
|
}
|
|
9678
11727
|
}, this.handleNativeChange = (e) => {
|
|
9679
|
-
var
|
|
9680
|
-
if ((
|
|
11728
|
+
var t, r;
|
|
11729
|
+
if ((t = this.onChangeNative) === null || t === void 0 || t.call(this, e), this.shouldEmitValue()) {
|
|
9681
11730
|
const l = e.target;
|
|
9682
|
-
let
|
|
9683
|
-
if (this.type === "checkbox" && ((
|
|
9684
|
-
const
|
|
9685
|
-
|
|
9686
|
-
} else this.type === "checkbox" ?
|
|
9687
|
-
this.edschange.emit({ value:
|
|
11731
|
+
let s = l.value;
|
|
11732
|
+
if (this.type === "checkbox" && ((r = this.parsedOptions) === null || r === void 0 ? void 0 : r.length) > 0) {
|
|
11733
|
+
const c = this.hostEl.querySelectorAll(`input[type="checkbox"][name="${this.name}"]`);
|
|
11734
|
+
s = Array.from(c).filter((d) => d.checked).map((d) => d.value);
|
|
11735
|
+
} else this.type === "checkbox" ? s = l.checked : (this.type, s = l.value);
|
|
11736
|
+
this.edschange.emit({ value: s });
|
|
9688
11737
|
}
|
|
9689
11738
|
}, this.name = void 0, this.inputId = void 0, this.placeholder = void 0, this.disabled = !1, this.required = !1, this.label = void 0, this.hint = void 0, this.icon = void 0, this.link = void 0, this.message = void 0, this.error = !1, this.checked = void 0, this.errorMessage = void 0, this.value = void 0, this.maxLength = void 0, this.min = void 0, this.max = void 0, this.step = void 0, this.options = void 0, this.type = "text", this.onChangeNative = void 0, this.onInput = void 0, this.exposeValueEvents = !0;
|
|
9690
11739
|
}
|
|
@@ -9704,8 +11753,8 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
9704
11753
|
}
|
|
9705
11754
|
render() {
|
|
9706
11755
|
const n = Object.assign({ name: this.name, id: this.inputId, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleNativeInput, onChange: this.handleNativeChange, type: this.type, required: this.required, value: this.value, error: this.error, icon: this.icon, checked: this.checked }, this.type === "number" ? { min: this.min, max: this.max, step: this.step } : {});
|
|
9707
|
-
return i("div", { key: "
|
|
9708
|
-
var e,
|
|
11756
|
+
return i("div", { key: "eaa1d9c1095204c82bd01eab0f19f80eeee64d05" }, this.type === "checkbox" || this.type === "radio" ? this.parsedOptions.length > 0 ? i("fieldset", { class: "space-y-4 mt-8" }, i("div", { class: "flex justify-between mb-4" }, this.label && i("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required }), this.hint && i("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint)), this.parsedOptions.map((e) => i("div", { class: "flex items-center gap-x-4 gap-y-4", key: e.value }, i("eds-input", Object.assign({}, n, { value: e.value, checked: typeof this.value == "string" && this.value.split(",").includes(String(e.value)) })), i("label", { htmlFor: this.name, class: `input-label-options ${this.disabled ? "text-lighter" : ""}` }, e.label)))) : i("div", { class: "flex items-center gap-x-8" }, i("eds-input", Object.assign({}, n, { value: this.value, checked: this.value === "on" || this.checked })), this.label && i("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })) : i("div", null, i("div", { class: "flex justify-between mb-4" }, this.label && i("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }), this.hint && i("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint)), this.type === "select" ? i("eds-input-select", Object.assign({}, n, { options: this.parsedOptions })) : this.type === "file" ? i("input", { type: "file", id: this.inputId || this.name, name: this.name, onChange: this.onChangeNative, disabled: this.disabled, required: this.required }) : this.type === "search" ? i("eds-input-search", { name: "search-box" }) : this.type === "range" ? (() => {
|
|
11757
|
+
var e, t, r;
|
|
9709
11758
|
const l = {
|
|
9710
11759
|
name: n.name,
|
|
9711
11760
|
inputId: n.id || n.name,
|
|
@@ -9713,41 +11762,44 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
9713
11762
|
required: n.required,
|
|
9714
11763
|
onInput: n.onInput,
|
|
9715
11764
|
onChange: n.onChange
|
|
9716
|
-
},
|
|
9717
|
-
return i("eds-input-range", Object.assign({}, l, { min: (e =
|
|
9718
|
-
})() : i("eds-input", Object.assign({}, n))), i("div", { key: "
|
|
11765
|
+
}, s = this.parsedOptions, c = typeof this.value == "string" ? parseFloat(this.value) : this.value || 0;
|
|
11766
|
+
return i("eds-input-range", Object.assign({}, l, { min: (e = s[0]) === null || e === void 0 ? void 0 : e.value, max: (t = s[1]) === null || t === void 0 ? void 0 : t.value, step: (r = s[2]) === null || r === void 0 ? void 0 : r.value, value: c }));
|
|
11767
|
+
})() : i("eds-input", Object.assign({}, n))), i("div", { key: "60e6c848d41591b2e9ec8c5cf8dd656ec8562c38", class: "mt-6" }, i("eds-input-footer", { key: "e9298e01dbab9aa6a98a486286b32024766348d1", id: `${this.name}-footer`, name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link })));
|
|
11768
|
+
}
|
|
11769
|
+
static get delegatesFocus() {
|
|
11770
|
+
return !0;
|
|
9719
11771
|
}
|
|
9720
11772
|
get hostEl() {
|
|
9721
|
-
return
|
|
11773
|
+
return y(this);
|
|
9722
11774
|
}
|
|
9723
11775
|
};
|
|
9724
|
-
|
|
9725
|
-
const
|
|
11776
|
+
ge.style = ce;
|
|
11777
|
+
const he = "p{margin:0}.text-error{color:var(--red-700)}.flex{display:flex}.items-center{align-items:center}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.ml-4{margin-left:0.25rem}.mb-4{margin-bottom:0.25rem}.f-ui-05{font-family:var(--f-ui-05-fontFamily);font-weight:var(--f-ui-05-fontWeight);font-size:var(--f-ui-05-fontSize);line-height:var(--f-ui-05-lineHeight);letter-spacing:var(--f-ui-05-letterSpacing)}.text-lighter{color:var(--grey-600)}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.hover\\:text-lighter:hover{color:var(--grey-600)}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}", fe = he, be = class {
|
|
9726
11778
|
constructor(n) {
|
|
9727
|
-
|
|
11779
|
+
p(this, n), this.name = void 0, this.errorMessage = void 0, this.message = void 0, this.error = !1, this.link = void 0;
|
|
9728
11780
|
}
|
|
9729
11781
|
render() {
|
|
9730
|
-
return i("div", { key: "
|
|
11782
|
+
return i("div", { key: "54571d8f3c08a7a4f12e40728e02a7210ab0d345" }, this.error && this.errorMessage && i("div", { key: "db35f0c0dfa931d55d57a9c4ad3fffaeb4cea914", id: `error_${this.name}`, class: "text-error flex items-center" }, i("eds-icon-wrapper", { key: "63e401d86876829d8d2bbab887a66ef0dbd1837f", icon: "warning" }), i("p", { key: "81f8b0819a7cb119353c8ac38ab1df0cafb9d36f", class: "f-ui-04 ml-4 mb-4", innerHTML: this.errorMessage })), this.message && i("p", { key: "e5018623e2d8578864dc1f0b06d54e4a60ff9020", id: `desc_${this.name}`, class: "f-ui-05 text-lighter", innerHTML: this.message }), this.link && i("a", { key: "e7b6bde26ae02cf07ac8b8e6461282a4ba1355ed", href: this.link.url, class: "f-ui-05 effect-color hover:text-lighter underline underline-offset-4" }, this.link.label));
|
|
9731
11783
|
}
|
|
9732
11784
|
};
|
|
9733
|
-
|
|
9734
|
-
const
|
|
11785
|
+
be.style = fe;
|
|
11786
|
+
const me = ".input-label{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.input-label b,.input-label strong{font-weight:var(--f-ui-02---bold-weight, bold)}.text-lighter{color:var(--grey-600)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}", ue = me, pe = class {
|
|
9735
11787
|
constructor(n) {
|
|
9736
|
-
|
|
11788
|
+
p(this, n), this.label = void 0, this.name = void 0, this.required = !1, this.disabled = !1;
|
|
9737
11789
|
}
|
|
9738
11790
|
render() {
|
|
9739
|
-
return i("label", { key: "
|
|
11791
|
+
return i("label", { key: "90e0659383fd3be9a166457de5429385fe3bfe02", htmlFor: this.name, class: `input-label ${this.disabled ? "text-lighter" : ""}` }, this.label, this.required && i("span", { key: "4d417c45dd636bfd5872d846e5eb89ff3694a4d4" }, i("span", { key: "3924011891ee03e530fe25b269bf4231f3acd9cb", "aria-hidden": "true" }, "*"), i("span", { key: "2f343b6b4ab4cbd538189cfa404210cf676eefe7", class: "sr-only" }, "required")));
|
|
9740
11792
|
}
|
|
9741
11793
|
};
|
|
9742
|
-
|
|
9743
|
-
const
|
|
11794
|
+
pe.style = ue;
|
|
11795
|
+
const vt = class {
|
|
9744
11796
|
constructor(n) {
|
|
9745
|
-
|
|
9746
|
-
const
|
|
9747
|
-
this.sliderVal = parseInt(
|
|
11797
|
+
p(this, n), this.edsrange = w(this, "edsrange", 7), this.onInput = (e) => {
|
|
11798
|
+
const t = e.target;
|
|
11799
|
+
this.sliderVal = parseInt(t.value, 10);
|
|
9748
11800
|
}, this.onChange = (e) => {
|
|
9749
|
-
const
|
|
9750
|
-
this.sliderVal = parseInt(
|
|
11801
|
+
const t = e.target;
|
|
11802
|
+
this.sliderVal = parseInt(t.value, 10), this.edsrange.emit(this.sliderVal);
|
|
9751
11803
|
}, this.name = void 0, this.inputId = "range", this.disabled = !1, this.required = !1, this.min = 0, this.max = 100, this.step = 1, this.value = void 0, this.sliderVal = void 0;
|
|
9752
11804
|
}
|
|
9753
11805
|
componentWillLoad() {
|
|
@@ -9764,25 +11816,25 @@ const re = class {
|
|
|
9764
11816
|
return this.inputElement;
|
|
9765
11817
|
}
|
|
9766
11818
|
render() {
|
|
9767
|
-
return i("div", { key: "
|
|
11819
|
+
return i("div", { key: "3fa2ef579847e66bcacc35afe202192b78a06975", class: "relative flex flex-col items-start" }, i("input", { key: "669cc03e44dfa1ae8eae758f82f41939de1be625", id: this.inputId || this.name, name: this.name, min: this.min, max: this.max, step: this.step, value: this.sliderVal, required: this.required, disabled: this.disabled, type: "range", class: "w-full py-6 input", tabindex: "0", role: "slider", "aria-describedby": `desc_${this.name}`, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.sliderVal, onInput: this.onInput, onChange: this.onChange }), i("p", { key: "b3865e1bfacb423da277f4b76dfd0f3294f96cc6", id: `desc_${this.name}`, class: "block f-ui-05 mt-4 text-lighter" }, "Current value: ", this.sliderVal));
|
|
9768
11820
|
}
|
|
9769
11821
|
get el() {
|
|
9770
|
-
return
|
|
11822
|
+
return y(this);
|
|
9771
11823
|
}
|
|
9772
11824
|
static get watchers() {
|
|
9773
11825
|
return {
|
|
9774
11826
|
value: ["onValueChange"]
|
|
9775
11827
|
};
|
|
9776
11828
|
}
|
|
9777
|
-
},
|
|
11829
|
+
}, wt = class {
|
|
9778
11830
|
constructor(n) {
|
|
9779
|
-
|
|
11831
|
+
p(this, n), this.search = w(this, "search", 7), this.keydownListener = (e) => {
|
|
9780
11832
|
(e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k" && (e.preventDefault(), this.inputElement && !this.disabled && this.inputElement.focus());
|
|
9781
11833
|
}, this.onChange = (e) => {
|
|
9782
11834
|
this.search.emit({
|
|
9783
11835
|
event: "change",
|
|
9784
11836
|
value: e.target.value
|
|
9785
|
-
}),
|
|
11837
|
+
}), I({
|
|
9786
11838
|
category: "ui-component",
|
|
9787
11839
|
parentContext: null,
|
|
9788
11840
|
tag: this.el.tagName.toLowerCase(),
|
|
@@ -9801,8 +11853,8 @@ const re = class {
|
|
|
9801
11853
|
return this.inputElement;
|
|
9802
11854
|
}
|
|
9803
11855
|
render() {
|
|
9804
|
-
return i("div", { key: "
|
|
9805
|
-
key: "
|
|
11856
|
+
return i("div", { key: "ad7c42baf7c54ede5dca7dd2a6916557f46d33d6", class: "relative flex items-center" }, i("eds-icon-wrapper", { key: "6de80c397bae5e541de1ce3c2937bed860b58363", icon: "search", class: "absolute top-1/2 left-[4px] -translate-y-1/2 text-lightest", "aria-hidden": "true" }), i("input", {
|
|
11857
|
+
key: "9637c5569c97061fde3735ecb58b6a6f81a10e15",
|
|
9806
11858
|
id: this.inputId || this.name,
|
|
9807
11859
|
name: this.name,
|
|
9808
11860
|
placeholder: this.placeholder,
|
|
@@ -9817,25 +11869,25 @@ const re = class {
|
|
|
9817
11869
|
}));
|
|
9818
11870
|
}
|
|
9819
11871
|
get el() {
|
|
9820
|
-
return
|
|
11872
|
+
return y(this);
|
|
9821
11873
|
}
|
|
9822
|
-
},
|
|
11874
|
+
}, kt = class {
|
|
9823
11875
|
constructor(n) {
|
|
9824
|
-
|
|
9825
|
-
const
|
|
9826
|
-
this.edsselect.emit(
|
|
11876
|
+
p(this, n), this.edsselect = w(this, "edsselect", 7), this.handleChange = (e) => {
|
|
11877
|
+
const t = e.target;
|
|
11878
|
+
this.edsselect.emit(t.value);
|
|
9827
11879
|
}, this.inputId = void 0, this.name = void 0, this.placeholder = void 0, this.disabled = !1, this.hasMessage = !1, this.error = !1, this.required = !1, this.options = [], this.value = void 0;
|
|
9828
11880
|
}
|
|
9829
11881
|
render() {
|
|
9830
|
-
const n = this.inputId || this.name, e = this.placeholder || "Pick from the list",
|
|
9831
|
-
return i("div", { key: "
|
|
11882
|
+
const n = this.inputId || this.name, e = this.placeholder || "Pick from the list", t = this.hasMessage || this.error ? `${this.name}-error` : void 0;
|
|
11883
|
+
return i("div", { key: "06be08db809ec9970ca4d7bdbdcdf1c8f2bc8840", class: "relative" }, i("select", { key: "e4319592e6c2f0c71e0dc75ca2d854506bda70bc", id: n, name: this.name, class: {
|
|
9832
11884
|
input: !0,
|
|
9833
11885
|
"input-error": this.error,
|
|
9834
11886
|
"px-4": !0,
|
|
9835
11887
|
"py-2": !0
|
|
9836
|
-
}, "aria-invalid": this.error ? "true" : "false", "aria-describedby":
|
|
11888
|
+
}, "aria-invalid": this.error ? "true" : "false", "aria-describedby": t, disabled: this.disabled, required: this.required, onChange: this.handleChange }, i("option", { key: "a0ece38948f84a10ea8cd4c0a01b3f8b9730c7ef", value: "", disabled: !0, hidden: !0 }, e), this.options.map((r, l) => i("option", { key: l, value: r.value, selected: r.value === this.value }, r.label))), i("span", { key: "8ce085e43d0ba6340e52b0666dc0a31abbf1a2f9", class: "bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center" }, i("eds-icon-wrapper", { key: "8b91b3fa3a819d04ede5d7816fcb2f04e66fd03b", class: "w-20 h-20", icon: "chevron-right" })));
|
|
9837
11889
|
}
|
|
9838
|
-
},
|
|
11890
|
+
}, xe = `*,
|
|
9839
11891
|
::before,
|
|
9840
11892
|
::after {
|
|
9841
11893
|
box-sizing: border-box;
|
|
@@ -11072,7 +13124,7 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11072
13124
|
.lg\\:flex {
|
|
11073
13125
|
display: flex;
|
|
11074
13126
|
}
|
|
11075
|
-
}`,
|
|
13127
|
+
}`, ye = xe, ve = N([
|
|
11076
13128
|
"relative inline-flex justify-center items-center py-8 rounded-sm",
|
|
11077
13129
|
"effect-color effect-focus aria-disabled:text-lightest",
|
|
11078
13130
|
"cursor-pointer",
|
|
@@ -11197,60 +13249,63 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11197
13249
|
size: "small",
|
|
11198
13250
|
hasIcon: !1
|
|
11199
13251
|
}
|
|
11200
|
-
}),
|
|
13252
|
+
}), we = class {
|
|
11201
13253
|
constructor(n) {
|
|
11202
|
-
|
|
13254
|
+
p(this, n), this.parentContext = null, this.label = void 0, this.intent = void 0, this.icon = void 0, this.iconPos = "right", this.iconSmall = !1, this.size = "small", this.external = !1, this.current = !1, this.download = !1, this.url = void 0, this.ariaLabel = void 0, this.disabled = !1, this.hideLabelOnSmallScreen = !1, this.extraClass = void 0;
|
|
11203
13255
|
}
|
|
11204
13256
|
handleParentContext(n) {
|
|
11205
13257
|
n.target === this.el && (this.parentContext = n.detail, n.stopPropagation());
|
|
11206
13258
|
}
|
|
11207
13259
|
handleClick(n) {
|
|
11208
|
-
var e,
|
|
13260
|
+
var e, t;
|
|
11209
13261
|
if (this.disabled) {
|
|
11210
13262
|
n.preventDefault();
|
|
11211
13263
|
return;
|
|
11212
13264
|
}
|
|
11213
|
-
|
|
13265
|
+
I({
|
|
11214
13266
|
category: "ui-component",
|
|
11215
13267
|
parentContext: this.parentContext,
|
|
11216
13268
|
tag: this.el.tagName.toLowerCase(),
|
|
11217
|
-
name: ((e = this.label) === null || e === void 0 ? void 0 : e.toLowerCase()) || ((
|
|
13269
|
+
name: ((e = this.label) === null || e === void 0 ? void 0 : e.toLowerCase()) || ((t = this.ariaLabel) === null || t === void 0 ? void 0 : t.toLowerCase()) || "",
|
|
11218
13270
|
action: "click"
|
|
11219
13271
|
});
|
|
11220
13272
|
}
|
|
13273
|
+
handleKeyDown(n) {
|
|
13274
|
+
this.disabled || (n.key === "Enter" || n.key === " ") && (n.preventDefault(), this.handleClick(n), this.url && !this.disabled && (this.external ? window.open(this.url, "_blank", "noopener,noreferrer") : window.location.href = this.url));
|
|
13275
|
+
}
|
|
11221
13276
|
getLinkSize() {
|
|
11222
|
-
return this.size;
|
|
13277
|
+
return this.intent === "underline" ? "underline" : this.size;
|
|
11223
13278
|
}
|
|
11224
13279
|
renderLeftIcon() {
|
|
11225
|
-
return this.icon && this.iconPos === "left" ? i("span", { class:
|
|
13280
|
+
return this.icon && this.iconPos === "left" ? i("span", { class: "flex" }, i("eds-icon-wrapper", { "aria-hidden": "true", class: `
|
|
11226
13281
|
flex inline-flex items-center justify-center
|
|
11227
13282
|
${this.size === "large" ? "h-24 w-24" : "h-20 w-20"}
|
|
11228
13283
|
`, icon: this.icon })) : null;
|
|
11229
13284
|
}
|
|
11230
13285
|
renderRightIcon() {
|
|
11231
|
-
return this.icon && this.iconPos === "right" ? i("span", { class:
|
|
13286
|
+
return this.icon && this.iconPos === "right" ? i("span", { class: "flex" }, i("eds-icon-wrapper", { "aria-hidden": "true", class: `
|
|
11232
13287
|
flex inline-flex items-center justify-center
|
|
11233
13288
|
${this.size === "large" ? "h-24 w-24" : "h-20 w-20"}
|
|
11234
13289
|
`, icon: this.icon })) : null;
|
|
11235
13290
|
}
|
|
11236
13291
|
render() {
|
|
11237
|
-
const n =
|
|
13292
|
+
const n = ve({
|
|
11238
13293
|
intent: this.intent,
|
|
11239
13294
|
size: this.getLinkSize(),
|
|
11240
13295
|
iconSmall: this.iconSmall,
|
|
11241
13296
|
isActive: this.current,
|
|
11242
13297
|
hasIcon: !!this.icon
|
|
11243
|
-
}),
|
|
11244
|
-
return i(
|
|
13298
|
+
}), e = !this.disabled, t = !this.label || this.hideLabelOnSmallScreen && this.icon, r = this.hideLabelOnSmallScreen ? "hidden lg:flex" : "";
|
|
13299
|
+
return i("a", { key: "bc82c9ea21f98ed71c812c8366ba8368c3ac5bf4", class: `${n || ""} ${this.extraClass || ""}`, href: e ? this.url : void 0, target: this.external && e ? "_blank" : void 0, rel: this.external && e ? "noopener noreferrer" : void 0, tabIndex: e ? 0 : -1, "aria-label": t ? this.ariaLabel || "Link" : void 0, "aria-disabled": this.disabled ? "true" : void 0, "aria-current": this.current ? "page" : void 0, role: this.disabled ? "link" : void 0, download: this.download ? "" : void 0, onClick: (l) => this.handleClick(l), onKeyDown: (l) => this.handleKeyDown(l) }, i("span", { key: "eed89377d27a476a7d7e70a8c40f3100b8089a0b", class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), this.label && i("span", { key: "c6d09f0c54e092e53350014d6d89b67c35a8be71", class: r }, this.label), this.renderRightIcon()));
|
|
11245
13300
|
}
|
|
11246
13301
|
get el() {
|
|
11247
|
-
return
|
|
13302
|
+
return y(this);
|
|
11248
13303
|
}
|
|
11249
13304
|
};
|
|
11250
|
-
|
|
11251
|
-
const
|
|
13305
|
+
we.style = ye;
|
|
13306
|
+
const ke = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{color:currentColor}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}@media (min-width: 900px){.lg\\:w-\\[150px\\]{width:150px}}", Se = ke, Ce = class {
|
|
11252
13307
|
constructor(n) {
|
|
11253
|
-
|
|
13308
|
+
p(this, n), this.href = "/", this.orientation = "horizontal", this.type = void 0, this.label = "Home";
|
|
11254
13309
|
}
|
|
11255
13310
|
/**
|
|
11256
13311
|
* Handles the click event on the logo link.
|
|
@@ -11261,7 +13316,7 @@ const pn = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{
|
|
|
11261
13316
|
* - `action`: The action, set as "click".
|
|
11262
13317
|
*/
|
|
11263
13318
|
handleClick() {
|
|
11264
|
-
|
|
13319
|
+
I({
|
|
11265
13320
|
category: "ui-component",
|
|
11266
13321
|
tag: this.el.tagName.toLowerCase(),
|
|
11267
13322
|
name: "logo",
|
|
@@ -11274,50 +13329,214 @@ const pn = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{
|
|
|
11274
13329
|
getLogo() {
|
|
11275
13330
|
const e = {
|
|
11276
13331
|
horizontal: {
|
|
11277
|
-
color:
|
|
11278
|
-
black:
|
|
11279
|
-
"color-white":
|
|
11280
|
-
white:
|
|
11281
|
-
"no-bg":
|
|
13332
|
+
color: tn,
|
|
13333
|
+
black: bn,
|
|
13334
|
+
"color-white": mn,
|
|
13335
|
+
white: un,
|
|
13336
|
+
"no-bg": pn
|
|
11282
13337
|
},
|
|
11283
13338
|
vertical: {
|
|
11284
|
-
color:
|
|
11285
|
-
black:
|
|
11286
|
-
"color-white":
|
|
11287
|
-
white:
|
|
11288
|
-
"no-bg":
|
|
13339
|
+
color: xn,
|
|
13340
|
+
black: yn,
|
|
13341
|
+
"color-white": vn,
|
|
13342
|
+
white: wn,
|
|
13343
|
+
"no-bg": kn
|
|
11289
13344
|
}
|
|
11290
13345
|
}[this.orientation];
|
|
11291
13346
|
if (!e)
|
|
11292
|
-
return
|
|
11293
|
-
const
|
|
11294
|
-
return
|
|
13347
|
+
return tn;
|
|
13348
|
+
const t = e[this.type];
|
|
13349
|
+
return t || e.color;
|
|
11295
13350
|
}
|
|
11296
13351
|
render() {
|
|
11297
13352
|
const n = this.getLogo();
|
|
11298
|
-
return i("a", { key: "
|
|
13353
|
+
return i("a", { key: "e5c4e4701d698282dc85561c8c434f0790fb2401", href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": this.label }, i("div", { key: "32cc8649fe67b6c4a874b5c1aaa6d4d793b4c4c7", innerHTML: n }));
|
|
13354
|
+
}
|
|
13355
|
+
get el() {
|
|
13356
|
+
return y(this);
|
|
13357
|
+
}
|
|
13358
|
+
};
|
|
13359
|
+
Ce.style = Se;
|
|
13360
|
+
const Ee = ".fixed{position:fixed}.absolute{position:absolute}.w-full{width:100%}.bottom-0{bottom:0rem}.bottom-4{bottom:0.25rem}.p-4{padding:0.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.z-10{z-index:10}.z-\\[999999\\]{z-index:999999}.left-0{left:0rem}.left-1\\/2{left:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex{display:flex}.gap-12{gap:0.75rem}.gap-20{gap:1.25rem}.gap-4{gap:0.25rem}@media (min-width: 750px){.md\\:left-1\\/2{left:50%}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}", ze = Ee, Fe = class {
|
|
13361
|
+
constructor(n) {
|
|
13362
|
+
p(this, n), this.consent = w(this, "consent", 7), this.heading = "Analytics Consent", this.description = "We use anonymous analytics to improve our services. No data is collected unless you give your consent. If you don't wish to send data right now, you can always re-enable analytics later by clicking the Cookies Preference button in the footer. However, by opting in today, you're joining a community that shapes our product's future—all while keeping your data completely anonymous.", this.optOutMessage = "You are already part of our community, and your anonymous data helps shape our product's future! Rest assured, your privacy is fully protected.", this.forceShow = !1, this.showNotice = !0;
|
|
13363
|
+
}
|
|
13364
|
+
/**
|
|
13365
|
+
* Listens for global custom events to open the matomo-consent.
|
|
13366
|
+
*/
|
|
13367
|
+
toggleCookiesConsent() {
|
|
13368
|
+
this.showNotice = !this.showNotice;
|
|
13369
|
+
}
|
|
13370
|
+
/**
|
|
13371
|
+
* Checks if the consent cookie exists.
|
|
13372
|
+
*/
|
|
13373
|
+
hasCookieConsent() {
|
|
13374
|
+
return !!document.cookie.split("; ").find((n) => n.startsWith("mtm_consent="));
|
|
13375
|
+
}
|
|
13376
|
+
/**
|
|
13377
|
+
* Checks if the user has opted out after has opted in.
|
|
13378
|
+
*/
|
|
13379
|
+
optedOut() {
|
|
13380
|
+
return !!document.cookie.split("; ").find((n) => n.startsWith("mtm_consent_removed"));
|
|
13381
|
+
}
|
|
13382
|
+
/**
|
|
13383
|
+
* Generate a unique storage key based on appId or the app's domain.
|
|
13384
|
+
*/
|
|
13385
|
+
getStorageKey() {
|
|
13386
|
+
return `${window.location.host}-matomo-deferred`;
|
|
13387
|
+
}
|
|
13388
|
+
/**
|
|
13389
|
+
* Check cookies and sessionStorage (unless forceShow is true) to decide if the notice should be shown.
|
|
13390
|
+
*/
|
|
13391
|
+
componentWillLoad() {
|
|
13392
|
+
if (localStorage.getItem(`${window.location.host}-matomo-consent-given`) === "out" || this.optedOut()) {
|
|
13393
|
+
this.showNotice = !1;
|
|
13394
|
+
return;
|
|
13395
|
+
}
|
|
13396
|
+
if (this.forceShow)
|
|
13397
|
+
this.showNotice = !0;
|
|
13398
|
+
else if (this.hasCookieConsent())
|
|
13399
|
+
this.showNotice = !1;
|
|
13400
|
+
else {
|
|
13401
|
+
const e = sessionStorage.getItem(this.getStorageKey());
|
|
13402
|
+
this.showNotice = !e;
|
|
13403
|
+
}
|
|
13404
|
+
}
|
|
13405
|
+
componentDidLoad() {
|
|
13406
|
+
this.el.shadowRoot.querySelectorAll("eds-button").forEach((e) => {
|
|
13407
|
+
this.emitContext(e);
|
|
13408
|
+
});
|
|
13409
|
+
}
|
|
13410
|
+
emitContext(n) {
|
|
13411
|
+
const e = new CustomEvent("parentContext", {
|
|
13412
|
+
detail: {
|
|
13413
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
13414
|
+
identifier: null
|
|
13415
|
+
}
|
|
13416
|
+
});
|
|
13417
|
+
n.dispatchEvent(e);
|
|
13418
|
+
}
|
|
13419
|
+
optInAnalytics() {
|
|
13420
|
+
fn(), localStorage.removeItem(`${window.location.host}-matomo-consent-given`), this.hideNotice(), this.consent.emit("in");
|
|
13421
|
+
}
|
|
13422
|
+
optOutAnalytics() {
|
|
13423
|
+
en(), this.hideNotice(), this.consent.emit("out");
|
|
13424
|
+
}
|
|
13425
|
+
noThanks() {
|
|
13426
|
+
en(), localStorage.setItem(`${window.location.host}-matomo-consent-given`, "out"), this.hideNotice(), this.consent.emit("out");
|
|
13427
|
+
}
|
|
13428
|
+
/*private deferDecision() {
|
|
13429
|
+
sessionStorage.setItem(this.getStorageKey(), 'true');
|
|
13430
|
+
this.hideNotice();
|
|
13431
|
+
this.consent.emit('defer');
|
|
13432
|
+
}*/
|
|
13433
|
+
keepMeIn() {
|
|
13434
|
+
this.hideNotice();
|
|
13435
|
+
}
|
|
13436
|
+
hideNotice() {
|
|
13437
|
+
this.showNotice = !1;
|
|
13438
|
+
}
|
|
13439
|
+
render() {
|
|
13440
|
+
return this.showNotice ? i("div", { class: "fixed bottom-0 p-8 z-[999999] grow md:left-1/2 md:-translate-x-1/2 md:-translate-y-1/2 justify-center" }, i("eds-accordion", { title: this.heading, description: this.hasCookieConsent() ? this.optOutMessage : this.description, switchBg: !0, expanded: !0 }, this.hasCookieConsent() ? i("div", { class: "flex items-center gap-4" }, this.optedOut() ? i("eds-button", { intent: "primary", label: "Opt me in again", "aria-label": "Opt me in again", onClick: () => this.optInAnalytics() }) : i("eds-button", { intent: "primary", label: "Keep Me In", "aria-label": "Keep Me In", onClick: () => this.keepMeIn() }), i("eds-button", { intent: "ghostInverse", label: "Opt-out", "aria-label": "Opt-out from analytics", onClick: () => this.optOutAnalytics() })) : i("div", { class: "flex items-center gap-4" }, i("eds-button", { intent: "primary", label: "I agree", "aria-label": "Opt-in for analytics", onClick: () => this.optInAnalytics() }), i("eds-button", { intent: "ghost", label: "No, thanks", "aria-label": "Opt-out from analytics", onClick: () => this.noThanks() })))) : null;
|
|
13441
|
+
}
|
|
13442
|
+
get el() {
|
|
13443
|
+
return y(this);
|
|
13444
|
+
}
|
|
13445
|
+
};
|
|
13446
|
+
Fe.style = ze;
|
|
13447
|
+
const Ae = '.flex{display:flex}.justify-between{justify-content:space-between}.mt-4{margin-top:0.25rem}.mt-8{margin-top:0.5rem}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.grid{display:grid}.grid-col-span-1{--container-grid-columns:1;grid-column:span 1 / span 1}.grid-cols-11{grid-template-columns:repeat(11, minmax(0, 1fr))}.grid-cols-11[class*="grid-line-x"][class*="grid-line-x"]>*:nth-child(n)::before{border-bottom-width:1px}.grid-cols-11[class*="grid-line-xfull"]>*:nth-child(n)::before{inset-inline-start:calc(var(--inner-gutter) / -2);inset-inline-end:calc(var(--inner-gutter) / -2)}.grid-cols-11[class*="grid-line-x"]>*:nth-child(11n+1)::before{inset-inline-start:0}.grid-cols-11[class*="grid-line-x"]>*:nth-child(11n+11)::before{inset-inline-end:0}.grid-cols-11[class*="grid-line-x"]>*:nth-child(11n+1):nth-last-child(-n+11)::before{border-bottom-width:0}.grid-cols-11[class*="grid-line-x"]>*:nth-child(11n+1):nth-last-child(-n+11)~*::before{border-bottom-width:0}.grid-cols-11[class*="grid-line-y"][class*="grid-line-y"]>*:nth-child(n)::after{border-inline-end-width:1px}.grid-cols-11[class*="grid-line-y"][class*="grid-line-y"]>*:nth-child(11n+11)::after{border-inline-end-width:0}.grid-cols-11[class*="grid-line-y"][class*="grid-line-y"]>*:nth-child(-n+11)::after{top:0}.grid-cols-11[class*="grid-line-y"][class*="grid-line-y"]>*:nth-child(11n+1):nth-last-child(-n+11)::after{bottom:0}.grid-cols-11[class*="grid-line-y"][class*="grid-line-y"]>*:nth-child(11n+1):nth-last-child(-n+11)~li::after{bottom:0}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.text-light{color:var(--grey-700)}', Ie = Ae, Le = class {
|
|
13448
|
+
constructor(n) {
|
|
13449
|
+
p(this, n), this.nps = w(this, "nps", 7), this.min = 0, this.max = 10, this.question = void 0, this.leftLabel = void 0, this.rightLabel = void 0, this.selectedValue = null;
|
|
13450
|
+
}
|
|
13451
|
+
handleClick(n) {
|
|
13452
|
+
this.selectedValue = n, this.nps.emit(n);
|
|
13453
|
+
}
|
|
13454
|
+
handleKeyNav(n) {
|
|
13455
|
+
const e = Array.from(this.el.shadowRoot.querySelectorAll("eds-button")), t = e.findIndex((r) => r.tabIndex === 0);
|
|
13456
|
+
switch (n.key) {
|
|
13457
|
+
case "ArrowRight":
|
|
13458
|
+
case "ArrowLeft": {
|
|
13459
|
+
n.preventDefault();
|
|
13460
|
+
const r = n.key === "ArrowRight" ? 1 : -1, l = Math.min(this.max, Math.max(0, t + r));
|
|
13461
|
+
this.activateRadio(e, l);
|
|
13462
|
+
break;
|
|
13463
|
+
}
|
|
13464
|
+
case "Home": {
|
|
13465
|
+
n.preventDefault(), this.activateRadio(e, 0);
|
|
13466
|
+
break;
|
|
13467
|
+
}
|
|
13468
|
+
case "End": {
|
|
13469
|
+
n.preventDefault(), this.activateRadio(e, this.max);
|
|
13470
|
+
break;
|
|
13471
|
+
}
|
|
13472
|
+
case "Enter":
|
|
13473
|
+
case " ": {
|
|
13474
|
+
n.preventDefault(), t >= 0 && this.handleClick(this.min + t);
|
|
13475
|
+
break;
|
|
13476
|
+
}
|
|
13477
|
+
case "Escape": {
|
|
13478
|
+
n.preventDefault(), t >= 0 && e[t].blur();
|
|
13479
|
+
break;
|
|
13480
|
+
}
|
|
13481
|
+
default:
|
|
13482
|
+
return;
|
|
13483
|
+
}
|
|
13484
|
+
}
|
|
13485
|
+
activateRadio(n, e) {
|
|
13486
|
+
const t = n[e], r = this.min + e;
|
|
13487
|
+
this.handleClick(r), t.focus();
|
|
13488
|
+
}
|
|
13489
|
+
render() {
|
|
13490
|
+
const n = this.max - this.min + 1;
|
|
13491
|
+
return i("div", { key: "3831baab086cbf44a3d1511885f15bbab23c9cd2", class: "eds-nps" }, i("eds-input-label", { key: "f9bd8a812d1b65a634dfaa7aae704218dc79468c", id: "nps-question", name: "nps-question", label: this.question }), i("div", { key: "398f5225c5b4071c2570a74a9e642f5059bb7813", role: "group", id: "nps-buttons", "aria-labelledby": "nps-question", class: "grid grid-cols-11", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: n }, (e, t) => {
|
|
13492
|
+
const r = this.min + t, l = r === this.selectedValue;
|
|
13493
|
+
return i("div", { class: "grid-col-span-1", key: r }, i("eds-button", { tabindex: l ? 0 : -1, label: `${r}`, "aria-label": `${r}`, intent: l ? "primary" : "ghost", "extra-class": "!block !px-0 w-full", triggerClick: () => this.handleClick(r) }));
|
|
13494
|
+
})), i("div", { key: "0acafaae3f2ce522ffbc245c5733ca509d4bf3c1", class: "flex justify-between mt-8" }, i("span", { key: "001e0be00b07ae2e831ea6af0c577a5eeecb9a56", class: "f-ui-04 text-light ml-4" }, this.leftLabel), i("span", { key: "99a12d89ea577fb2bb9c34241a2b9f0f254c284a", class: "f-ui-04 text-light mr-4" }, this.rightLabel)));
|
|
11299
13495
|
}
|
|
11300
13496
|
get el() {
|
|
11301
|
-
return
|
|
13497
|
+
return y(this);
|
|
11302
13498
|
}
|
|
11303
13499
|
};
|
|
11304
|
-
|
|
11305
|
-
const
|
|
13500
|
+
Le.style = Ie;
|
|
13501
|
+
const _e = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-light{color:var(--grey-700)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}", Te = _e, $e = class {
|
|
11306
13502
|
constructor(n) {
|
|
11307
|
-
|
|
13503
|
+
p(this, n), this.handleKeyDown = (e) => {
|
|
13504
|
+
if (this.mode !== "default" || !this.useButtons)
|
|
13505
|
+
return;
|
|
13506
|
+
const t = this.getNavigableItems();
|
|
13507
|
+
if (e.key === "ArrowRight" || e.key === "ArrowLeft") {
|
|
13508
|
+
e.preventDefault();
|
|
13509
|
+
const r = e.key === "ArrowRight" ? 1 : -1;
|
|
13510
|
+
let l = this.focusedIndex;
|
|
13511
|
+
if (l === -1) {
|
|
13512
|
+
const c = t.findIndex((d) => d.type === "page" && d.page === this.currentPage);
|
|
13513
|
+
l = c !== -1 ? c : 0;
|
|
13514
|
+
}
|
|
13515
|
+
let s = l + r;
|
|
13516
|
+
s >= t.length ? s = 0 : s < 0 && (s = t.length - 1), this.focusedIndex = s, this.focusPaginationItem(s);
|
|
13517
|
+
} else if (e.key === "Home")
|
|
13518
|
+
e.preventDefault(), this.focusedIndex = 0, this.focusPaginationItem(0);
|
|
13519
|
+
else if (e.key === "End") {
|
|
13520
|
+
e.preventDefault();
|
|
13521
|
+
const r = t.length - 1;
|
|
13522
|
+
this.focusedIndex = r, this.focusPaginationItem(r);
|
|
13523
|
+
}
|
|
13524
|
+
}, this.handleItemFocus = (e) => {
|
|
13525
|
+
this.focusedIndex = e;
|
|
13526
|
+
}, this.currentPage = void 0, this.lastPage = void 0, this.perPage = 10, this.total = 0, this.url = "", this.mode = "default", this.useButtons = !0, this.prevLabel = "Prev", this.nextLabel = "Next", this.prevUrl = "", this.nextUrl = "", this.links = [], this.focusedIndex = -1;
|
|
11308
13527
|
}
|
|
11309
13528
|
/** Lifecycle hook to generate pagination links on component load */
|
|
11310
13529
|
componentWillLoad() {
|
|
11311
13530
|
this.mode === "default" && this.generateLinks();
|
|
11312
13531
|
}
|
|
11313
13532
|
componentDidLoad() {
|
|
11314
|
-
this.hostEl.shadowRoot.querySelectorAll("eds-link").forEach((e) => {
|
|
13533
|
+
this.useButtons || this.hostEl.shadowRoot.querySelectorAll("eds-link").forEach((e) => {
|
|
11315
13534
|
this.emitContext(e);
|
|
11316
13535
|
});
|
|
11317
13536
|
}
|
|
11318
13537
|
/**
|
|
11319
13538
|
* Emits a custom event called `parentContext` for a given link element.
|
|
11320
|
-
* This event provides context information about the
|
|
13539
|
+
* This event provides context information about the pagination component.
|
|
11321
13540
|
*
|
|
11322
13541
|
* @param linkElement - The link element to which the event will be dispatched.
|
|
11323
13542
|
*/
|
|
@@ -11333,6 +13552,23 @@ const vn = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(
|
|
|
11333
13552
|
onPageOrLastPageChange() {
|
|
11334
13553
|
this.mode === "default" && this.generateLinks();
|
|
11335
13554
|
}
|
|
13555
|
+
/**
|
|
13556
|
+
* Gets all navigable pagination items for keyboard navigation
|
|
13557
|
+
*/
|
|
13558
|
+
getNavigableItems() {
|
|
13559
|
+
const n = [];
|
|
13560
|
+
return n.push({ type: "prev", disabled: this.isFirstPage() }), this.links.forEach((e) => {
|
|
13561
|
+
typeof e == "object" && n.push({ type: "page", page: parseInt(e.label), disabled: !1 });
|
|
13562
|
+
}), n.push({ type: "next", disabled: this.isLastPage() }), n.filter((e) => !e.disabled);
|
|
13563
|
+
}
|
|
13564
|
+
/**
|
|
13565
|
+
* Focuses a specific pagination item by index
|
|
13566
|
+
*/
|
|
13567
|
+
focusPaginationItem(n) {
|
|
13568
|
+
var e;
|
|
13569
|
+
const t = (e = this.hostEl.shadowRoot) === null || e === void 0 ? void 0 : e.querySelectorAll(".pagination-button"), r = t == null ? void 0 : t[n];
|
|
13570
|
+
r && r.focus();
|
|
13571
|
+
}
|
|
11336
13572
|
/**
|
|
11337
13573
|
* Checks if the current page is the first page
|
|
11338
13574
|
* @returns {boolean} - true if current page is the first page
|
|
@@ -11355,7 +13591,7 @@ const vn = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(
|
|
|
11355
13591
|
generateLink(n) {
|
|
11356
13592
|
const e = this.url.includes("?");
|
|
11357
13593
|
return {
|
|
11358
|
-
ariaLabel: `
|
|
13594
|
+
ariaLabel: `Go to page ${n}`,
|
|
11359
13595
|
url: `${this.url}${e ? "&" : "?"}page=${n}`,
|
|
11360
13596
|
label: n.toString(),
|
|
11361
13597
|
current: this.currentPage === n,
|
|
@@ -11370,28 +13606,31 @@ const vn = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(
|
|
|
11370
13606
|
* Creates a pagination range based on delta, current, and total pages
|
|
11371
13607
|
* @param {number} current - Current page number
|
|
11372
13608
|
* @param {number} total - Total number of pages
|
|
11373
|
-
* @param {number} delta - Range of pages to display around the current page
|
|
11374
13609
|
* @returns {(number | string)[]} - Range of page numbers or ellipses
|
|
11375
13610
|
*/
|
|
11376
13611
|
getPaginationGenerator(n, e) {
|
|
11377
|
-
const
|
|
13612
|
+
const r = [];
|
|
11378
13613
|
if (e <= 5)
|
|
11379
13614
|
for (let l = 1; l <= e; l++)
|
|
11380
|
-
|
|
13615
|
+
r.push(l);
|
|
11381
13616
|
else {
|
|
11382
|
-
|
|
13617
|
+
r.push(1), n - 1 > 2 && r.push("...");
|
|
11383
13618
|
for (let l = Math.max(2, n - 1); l <= Math.min(e - 1, n + 1); l++)
|
|
11384
|
-
|
|
11385
|
-
n + 1 < e - 1 &&
|
|
13619
|
+
r.push(l);
|
|
13620
|
+
n + 1 < e - 1 && r.push("..."), r.push(e);
|
|
11386
13621
|
}
|
|
11387
|
-
return
|
|
13622
|
+
return r;
|
|
11388
13623
|
}
|
|
11389
13624
|
/**
|
|
11390
13625
|
* Formats the current page results information for display
|
|
11391
13626
|
* @returns {string} - Formatted page result information
|
|
11392
13627
|
*/
|
|
11393
13628
|
pageResults() {
|
|
11394
|
-
|
|
13629
|
+
if (this.total > 0) {
|
|
13630
|
+
const n = this.perPage * ((this.currentPage || 1) - 1) + 1, e = Math.min(this.perPage * (this.currentPage || 1), this.total);
|
|
13631
|
+
return this.total > this.perPage ? `Showing ${n} to ${e} of ${this.total} results` : `Showing ${this.total} result${this.total !== 1 ? "s" : ""}`;
|
|
13632
|
+
}
|
|
13633
|
+
return "";
|
|
11395
13634
|
}
|
|
11396
13635
|
/**
|
|
11397
13636
|
* Handles a page click event, updating the current page and dispatching an event
|
|
@@ -11399,25 +13638,25 @@ const vn = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(
|
|
|
11399
13638
|
* @param {number} newPage - New page number
|
|
11400
13639
|
*/
|
|
11401
13640
|
handlePageClick(n, e) {
|
|
11402
|
-
if (this.mode !== "navigator" && (n.preventDefault(), e !== this.currentPage)) {
|
|
11403
|
-
this.links = this.links.map((
|
|
11404
|
-
const
|
|
11405
|
-
detail: e,
|
|
13641
|
+
if (this.mode !== "navigator" && (this.useButtons && n.preventDefault(), e !== this.currentPage)) {
|
|
13642
|
+
this.links = this.links.map((r) => typeof r == "object" ? Object.assign(Object.assign({}, r), { current: parseInt(r.label) === e }) : r);
|
|
13643
|
+
const t = new CustomEvent("page", {
|
|
13644
|
+
detail: { value: e },
|
|
11406
13645
|
bubbles: !0,
|
|
11407
13646
|
composed: !0
|
|
11408
13647
|
});
|
|
11409
|
-
this.hostEl.dispatchEvent(
|
|
13648
|
+
this.hostEl.dispatchEvent(t), this.currentPage = e;
|
|
11410
13649
|
}
|
|
11411
13650
|
}
|
|
11412
13651
|
render() {
|
|
11413
|
-
return i("div", { key: "
|
|
11414
|
-
this.mode === "default" &&
|
|
11415
|
-
} })), this.mode === "default" && this.links.map((
|
|
11416
|
-
this.mode === "default" &&
|
|
11417
|
-
} })))) : null);
|
|
13652
|
+
return i("div", { key: "9379c40daaca176e67fb59918f1ca387cb4759b9" }, this.total > 0 && this.mode === "default" && i("p", { key: "d09f7f6b7de136987d5b52564bc60afb3775299a", class: "f-ui-03 text-light mb-28 w-full text-center", "aria-live": "polite", id: "pagination-info" }, i("span", { key: "4af8f097a79c8fb0495838f06424f43e5e5dcddc", class: "text-light sr-only" }, "Results:"), this.pageResults()), this.mode === "navigator" || this.lastPage && this.lastPage > 1 ? i("nav", { "aria-label": "Pagination Navigation", "aria-describedby": this.mode === "default" ? "pagination-info" : void 0, onKeyDown: this.handleKeyDown }, i("ul", { class: "flex items-center justify-center gap-x-8", role: "list" }, i("li", { class: "mr-auto" }, this.useButtons ? i("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(-1) }, i("eds-button", { label: this.prevLabel, disabled: this.mode === "navigator" ? !this.prevUrl : this.isFirstPage(), "aria-label": "Go to previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "ghost", "extra-class": "!p-8 lg:!pr-12 pagination-button", onClick: (e) => {
|
|
13653
|
+
this.mode === "default" && !this.isFirstPage() && this.handlePageClick(e, (this.currentPage || 1) - 1);
|
|
13654
|
+
} })) : i("eds-link", { label: this.prevLabel, url: this.mode === "navigator" ? this.prevUrl || "#" : this.isFirstPage() ? "#" : this.generateLink(this.currentPage - 1).url, disabled: this.mode === "navigator" ? !this.prevUrl : this.isFirstPage(), "aria-label": "Go to previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "strong", "hide-label-on-small-screen": !0, class: "!p-8 lg:!pr-12" })), this.mode === "default" && this.links.map((e, t) => i("li", { key: t, class: "f-ui-02 flex h-36 items-center justify-center" }, typeof e == "string" ? i("span", { class: "flex items-center justify-center", "aria-hidden": "true" }, e) : this.useButtons ? i("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(-1) }, i("eds-button", { label: e.label, "aria-label": e.current ? `Current page, page ${e.label}` : `Go to page ${e.label}`, "aria-current": e.current ? "page" : void 0, size: "small", "extra-class": "!p-8 pagination-button", intent: e.current ? "secondary" : "ghost", onClick: (r) => this.handlePageClick(r, parseInt(e.label)) })) : i("eds-link", { url: e.url, "aria-label": e.ariaLabel, label: e.label, current: e.current, "aria-current": e.current ? "page" : void 0, size: "small", class: "!p-8", intent: e.current ? "secondary" : "ghost", onClick: (r) => this.handlePageClick(r, parseInt(e.label)) }))), i("li", { class: "ml-auto" }, this.useButtons ? i("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(-1) }, i("eds-button", { label: this.nextLabel, disabled: this.mode === "navigator" ? !this.nextUrl : this.isLastPage(), "aria-label": "Go to next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "ghost", "extra-class": "!p-8 lg:!pl-12 pagination-button", onClick: (e) => {
|
|
13655
|
+
this.mode === "default" && !this.isLastPage() && this.handlePageClick(e, (this.currentPage || 1) + 1);
|
|
13656
|
+
} })) : i("eds-link", { label: this.nextLabel, url: this.mode === "navigator" ? this.nextUrl || "#" : this.isLastPage() ? "#" : this.generateLink(this.currentPage + 1).url, disabled: this.mode === "navigator" ? !this.nextUrl : this.isLastPage(), "aria-label": "Go to next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "strong", "hide-label-on-small-screen": !0, class: "!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors" })))) : null);
|
|
11418
13657
|
}
|
|
11419
13658
|
get hostEl() {
|
|
11420
|
-
return
|
|
13659
|
+
return y(this);
|
|
11421
13660
|
}
|
|
11422
13661
|
static get watchers() {
|
|
11423
13662
|
return {
|
|
@@ -11426,10 +13665,10 @@ const vn = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(
|
|
|
11426
13665
|
};
|
|
11427
13666
|
}
|
|
11428
13667
|
};
|
|
11429
|
-
|
|
11430
|
-
const
|
|
13668
|
+
$e.style = Te;
|
|
13669
|
+
const Oe = ":host{display:inline-block}.block{display:block}.stars{display:flex;gap:0.25rem;cursor:pointer}.star{color:var(--star-empty-color, #ccc);transition:color 0.2s ease-in-out}.star.filled{color:var(--green-500);}.star:hover,.star.filled:hover{transform:scale(1.2)}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.mt-4{margin-top:0.25rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.my-4{margin-top:0.25rem;margin-bottom:0.25rem}.my-8{margin-top:0.5rem;margin-bottom:0.5rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.0625rem * var(--tw-space-x-reverse));margin-left:calc(0.0625rem * calc(1 - var(--tw-space-x-reverse)))}", Re = Oe, De = class {
|
|
11431
13670
|
constructor(n) {
|
|
11432
|
-
|
|
13671
|
+
p(this, n), this.rating = w(this, "rating", 7), this.buttonRefs = [], this.ratingType = "star", this.ratingCount = 5, this.selectedRating = 0;
|
|
11433
13672
|
}
|
|
11434
13673
|
/**
|
|
11435
13674
|
* Lifecycle method that runs when the component has fully loaded.
|
|
@@ -11459,20 +13698,31 @@ const zn = ":host{display:inline-block}.block{display:block}.stars{display:flex;
|
|
|
11459
13698
|
* Handles the click event on a star.
|
|
11460
13699
|
* @param rating - The selected rating value.
|
|
11461
13700
|
*/
|
|
11462
|
-
|
|
11463
|
-
this.selectedRating = n, this.rating.emit(n)
|
|
13701
|
+
onSelect(n) {
|
|
13702
|
+
this.selectedRating = n, this.rating.emit(n), setTimeout(() => {
|
|
13703
|
+
const e = this.buttonRefs[n - 1];
|
|
13704
|
+
e == null || e.focus();
|
|
13705
|
+
}, 0);
|
|
13706
|
+
}
|
|
13707
|
+
handleKeyNav(n) {
|
|
13708
|
+
const { key: e } = n;
|
|
13709
|
+
if (!["ArrowRight", "ArrowLeft", "ArrowDown", "ArrowUp"].includes(e))
|
|
13710
|
+
return;
|
|
13711
|
+
n.preventDefault();
|
|
13712
|
+
const t = e === "ArrowRight" || e === "ArrowDown" ? 1 : -1;
|
|
13713
|
+
let r = (this.selectedRating || 1) + t;
|
|
13714
|
+
r > this.ratingCount && (r = 1), r < 1 && (r = this.ratingCount), this.onSelect(r);
|
|
11464
13715
|
}
|
|
11465
13716
|
render() {
|
|
11466
|
-
return i("div", { key: "
|
|
11467
|
-
const
|
|
13717
|
+
return i("div", { key: "a7fc18897f2901f60432432899da18861e76edf6", id: "rating-buttons", role: "group", "aria-labelledby": "rating", class: "stars flex space-x-1 my-8", onKeyDown: (n) => this.handleKeyNav(n) }, Array.from({ length: this.ratingCount }, (n, e) => {
|
|
13718
|
+
const t = e + 1, r = t <= this.selectedRating, l = this.selectedRating === t;
|
|
11468
13719
|
return i("eds-button", {
|
|
13720
|
+
ref: (s) => this.buttonRefs[e] = s,
|
|
11469
13721
|
icon: this.ratingType,
|
|
11470
|
-
|
|
11471
|
-
|
|
11472
|
-
|
|
11473
|
-
|
|
11474
|
-
tabIndex: this.selectedRating === 0 && e === 0 || t ? 0 : -1,
|
|
11475
|
-
intent: t ? "primary" : "ghost",
|
|
13722
|
+
"aria-label": `${t} ${this.ratingType}${t > 1 ? "s" : ""}`,
|
|
13723
|
+
onClick: () => this.onSelect(t),
|
|
13724
|
+
tabIndex: l || this.selectedRating === 0 && e === 0 ? 0 : -1,
|
|
13725
|
+
intent: r ? "primary" : "ghost",
|
|
11476
13726
|
size: "large",
|
|
11477
13727
|
"extra-class": "p-2"
|
|
11478
13728
|
// Optional padding or styling for the star button
|
|
@@ -11480,46 +13730,41 @@ const zn = ":host{display:inline-block}.block{display:block}.stars{display:flex;
|
|
|
11480
13730
|
}));
|
|
11481
13731
|
}
|
|
11482
13732
|
get el() {
|
|
11483
|
-
return
|
|
13733
|
+
return y(this);
|
|
11484
13734
|
}
|
|
11485
13735
|
};
|
|
11486
|
-
|
|
11487
|
-
const
|
|
13736
|
+
De.style = Re;
|
|
13737
|
+
const Pe = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:-2px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4,.steps h5{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before,.steps h5::before{content:counter(step);position:absolute;left:-40px;top:-2px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.my-16{margin-top:1rem;margin-bottom:1rem}.mt-16{margin-top:1rem}.mb-28{margin-bottom:1.75rem}.ml-8{margin-left:0.5rem}.gap-y-16{row-gap:1rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.block{display:block}.cursor-pointer{cursor:pointer}", Ne = Pe, He = class {
|
|
11488
13738
|
constructor(n) {
|
|
11489
|
-
|
|
11490
|
-
|
|
13739
|
+
p(this, n), this.step = w(this, "step", 7), this.finished = w(this, "finished", 7), this.next = w(this, "next", 7), this.back = w(this, "back", 7), this.handleNext = () => {
|
|
13740
|
+
const e = this.parsedSteps.length - 1;
|
|
13741
|
+
if (this.activeStep >= e) {
|
|
13742
|
+
this.finished.emit();
|
|
13743
|
+
return;
|
|
13744
|
+
}
|
|
13745
|
+
const t = this.activeStep + 1;
|
|
13746
|
+
this.next.emit(t), !this.isNextDisabledFor(this.activeStep) && (this.activeStep = t, this.step.emit(this.activeStep), Array.isArray(this.disableNext) || (this.disableNext = !1));
|
|
11491
13747
|
}, this.handleBack = () => {
|
|
11492
|
-
this.activeStep > 0
|
|
11493
|
-
|
|
13748
|
+
if (this.activeStep > 0) {
|
|
13749
|
+
const e = this.activeStep - 1;
|
|
13750
|
+
this.back.emit(e), this.activeStep = e, this.step.emit(this.activeStep), Array.isArray(this.disableNext) || (this.disableNext = !1);
|
|
13751
|
+
}
|
|
13752
|
+
}, this.steps = [], this.type = "static", this.nextLabel = "Next", this.backLabel = "Back", this.finishLabel = "Finish", this.disableNext = !1, this.headingLevel = "h4", this.activeStep = 0;
|
|
11494
13753
|
}
|
|
11495
|
-
/**
|
|
11496
|
-
* Lifecycle method that runs when the component has fully loaded.
|
|
11497
|
-
* It emits a custom event for each `eds-button` element contained within the breadcrumb.
|
|
11498
|
-
*/
|
|
11499
13754
|
componentDidLoad() {
|
|
11500
13755
|
var n;
|
|
11501
13756
|
if (this.type === "linear") {
|
|
11502
13757
|
const e = (n = this.el.shadowRoot) === null || n === void 0 ? void 0 : n.querySelectorAll("eds-button");
|
|
11503
|
-
e == null || e.forEach((
|
|
11504
|
-
this.emitContext(r);
|
|
11505
|
-
});
|
|
13758
|
+
e == null || e.forEach((t) => this.emitContext(t));
|
|
11506
13759
|
}
|
|
11507
13760
|
}
|
|
11508
13761
|
activeStepChanged(n) {
|
|
11509
13762
|
setTimeout(() => {
|
|
11510
13763
|
var e;
|
|
11511
|
-
const
|
|
11512
|
-
|
|
11513
|
-
this.emitContext(l);
|
|
11514
|
-
});
|
|
13764
|
+
const t = (e = this.el.shadowRoot) === null || e === void 0 ? void 0 : e.querySelectorAll(".step")[n];
|
|
13765
|
+
t && t.querySelectorAll("eds-button").forEach((r) => this.emitContext(r));
|
|
11515
13766
|
}, 50);
|
|
11516
13767
|
}
|
|
11517
|
-
/**
|
|
11518
|
-
* Emits a custom event called `parentContext` for a given link element.
|
|
11519
|
-
* This event provides context information about the breadcrumb component.
|
|
11520
|
-
*
|
|
11521
|
-
* @param linkElement - The link element to which the event will be dispatched.
|
|
11522
|
-
*/
|
|
11523
13768
|
emitContext(n) {
|
|
11524
13769
|
const e = new CustomEvent("parentContext", {
|
|
11525
13770
|
detail: {
|
|
@@ -11529,21 +13774,26 @@ const En = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-le
|
|
|
11529
13774
|
});
|
|
11530
13775
|
n.dispatchEvent(e);
|
|
11531
13776
|
}
|
|
11532
|
-
handleStepClick(n) {
|
|
11533
|
-
this.step.emit(n), this.type === "linear" && (this.activeStep = n);
|
|
11534
|
-
}
|
|
11535
|
-
/**
|
|
11536
|
-
* Parse the JSON string into an array of steps.
|
|
11537
|
-
*/
|
|
11538
13777
|
get parsedSteps() {
|
|
11539
|
-
return
|
|
13778
|
+
return R(this.steps);
|
|
13779
|
+
}
|
|
13780
|
+
isNextDisabledFor(n) {
|
|
13781
|
+
return Array.isArray(this.disableNext) ? !!this.disableNext[n] : n === this.activeStep && !!this.disableNext;
|
|
13782
|
+
}
|
|
13783
|
+
/** Render the semantic heading element */
|
|
13784
|
+
renderHeading(n) {
|
|
13785
|
+
const e = this.headingLevel;
|
|
13786
|
+
return i(e, null, n);
|
|
11540
13787
|
}
|
|
11541
13788
|
render() {
|
|
11542
13789
|
const n = this.parsedSteps;
|
|
11543
|
-
return this.type === "linear" ? i("div",
|
|
13790
|
+
return this.type === "linear" ? i("div", { class: "steps" }, n.map((e, t) => {
|
|
13791
|
+
const r = t === n.length - 1;
|
|
13792
|
+
return i("div", { class: "step mb-28", key: t }, this.renderHeading(e.title), this.activeStep === t && i("div", { class: "content grid gap-y-16" }, i("slot", { name: `step-${t}` }, i("div", { class: "f-body-02 text-lighter", innerHTML: e.content })), i("div", { class: "flex items-center mt-16" }, i("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: !0, onClick: this.handleBack, disabled: t === 0, class: t === 0 ? "hidden" : "block", size: "small" }), i("eds-button", { label: r ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: !0, onClick: this.handleNext, disabled: this.isNextDisabledFor(t), size: "small", class: "ml-8" })), i("slot", { name: `actions-${t}` })));
|
|
13793
|
+
})) : i("div", { class: "steps" }, n.map((e, t) => i("div", { class: "step mb-28", key: t }, this.renderHeading(e.title), i("div", { class: "content" }, i("slot", { name: `step-${t}` }, i("div", { class: t === n.length - 1 ? "f-body-02 text-lighter mt-16" : "f-body-02 text-lighter my-16", innerHTML: e.content }))))));
|
|
11544
13794
|
}
|
|
11545
13795
|
get el() {
|
|
11546
|
-
return
|
|
13796
|
+
return y(this);
|
|
11547
13797
|
}
|
|
11548
13798
|
static get watchers() {
|
|
11549
13799
|
return {
|
|
@@ -11551,29 +13801,38 @@ const En = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-le
|
|
|
11551
13801
|
};
|
|
11552
13802
|
}
|
|
11553
13803
|
};
|
|
11554
|
-
|
|
11555
|
-
const
|
|
13804
|
+
He.style = Ne;
|
|
13805
|
+
const je = ".steps{position:sticky;margin-left:16px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:-2px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4,.steps h5{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before,.steps h5::before{content:counter(step);position:absolute;left:-40px;top:-2px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.steps-img-placeholder{width:100%;height:200px;background:linear-gradient(to bottom, #9CE142, #00C959, #00A595);}.bg-\\[\\#00A595\\]{--tw-bg-opacity:1;background-color:rgb(0 165 149 / var(--tw-bg-opacity))}.relative{position:relative}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.w-full{width:100%}.h-52{height:3.25rem}.h-96{height:6rem}.h-\\[200px\\]{height:200px}.mt-16{margin-top:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:0.75rem}.last\\:mb-0:last-child{margin-bottom:0rem}.last\\:mt-16:last-child{margin-top:1rem}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.relative{position:relative}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.rounded{border-radius:0.25rem}.rounded-lg{border-radius:16px}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.p-24{padding:1.5rem}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.top-2{top:0.125rem}.bottom-2{bottom:0.125rem}.left-2{left:0.125rem}.right-2{right:0.125rem}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.overflow-hidden{overflow:hidden}.space-y-8{--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))}.space-y-16{--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.ml-8{margin-left:0.5rem}.gap-y-16{row-gap:1rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.block{display:block}.px-8{padding-left:0.5rem;padding-right:0.5rem}.pb-20{padding-bottom:1.25rem}", We = je, Be = class {
|
|
11556
13806
|
constructor(n) {
|
|
11557
|
-
|
|
11558
|
-
|
|
13807
|
+
p(this, n), this.step = w(this, "step", 7), this.finished = w(this, "finished", 7), this.next = w(this, "next", 7), this.back = w(this, "back", 7), this.handleNext = () => {
|
|
13808
|
+
const e = this.parsedSteps.length - 1;
|
|
13809
|
+
if (this.activeStep >= e) {
|
|
13810
|
+
this.finished.emit();
|
|
13811
|
+
return;
|
|
13812
|
+
}
|
|
13813
|
+
const t = this.activeStep + 1;
|
|
13814
|
+
this.next.emit(t), this.disableNext || (this.activeStep = t, this.step.emit(this.activeStep));
|
|
11559
13815
|
}, this.handleBack = () => {
|
|
11560
|
-
this.activeStep > 0
|
|
11561
|
-
|
|
13816
|
+
if (this.activeStep > 0) {
|
|
13817
|
+
const e = this.activeStep - 1;
|
|
13818
|
+
this.back.emit(e), this.activeStep = e, this.step.emit(this.activeStep);
|
|
13819
|
+
}
|
|
13820
|
+
}, this.steps = [], this.type = "static", this.imageSrc = void 0, this.imageWidth = void 0, this.bg = !0, this.message = void 0, this.nextLabel = "Next", this.backLabel = "Back", this.finishLabel = "Finish", this.disableNext = !1, this.headingLevel = "h4", this.activeStep = 0;
|
|
11562
13821
|
}
|
|
11563
13822
|
componentDidLoad() {
|
|
11564
13823
|
var n;
|
|
11565
13824
|
if (this.type === "linear") {
|
|
11566
13825
|
const e = (n = this.el.shadowRoot) === null || n === void 0 ? void 0 : n.querySelectorAll("eds-button");
|
|
11567
|
-
e == null || e.forEach((
|
|
11568
|
-
this.emitContext(
|
|
13826
|
+
e == null || e.forEach((t) => {
|
|
13827
|
+
this.emitContext(t);
|
|
11569
13828
|
});
|
|
11570
13829
|
}
|
|
11571
13830
|
}
|
|
11572
13831
|
activeStepChanged(n) {
|
|
11573
13832
|
setTimeout(() => {
|
|
11574
13833
|
var e;
|
|
11575
|
-
const
|
|
11576
|
-
|
|
13834
|
+
const t = (e = this.el.shadowRoot) === null || e === void 0 ? void 0 : e.querySelectorAll(".step")[n];
|
|
13835
|
+
t && t.querySelectorAll("eds-button").forEach((l) => {
|
|
11577
13836
|
this.emitContext(l);
|
|
11578
13837
|
});
|
|
11579
13838
|
}, 50);
|
|
@@ -11593,24 +13852,26 @@ const In = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,d
|
|
|
11593
13852
|
"border-softer effect-focus-within relative rounded-lg border-2"
|
|
11594
13853
|
].join(" ");
|
|
11595
13854
|
}
|
|
11596
|
-
handleStepClick(n) {
|
|
11597
|
-
this.step.emit(n), this.type === "linear" && (this.activeStep = n);
|
|
11598
|
-
}
|
|
11599
13855
|
/**
|
|
11600
13856
|
* Parses the steps property into an array of Step objects.
|
|
11601
13857
|
*/
|
|
11602
13858
|
get parsedSteps() {
|
|
11603
|
-
return
|
|
13859
|
+
return R(this.steps);
|
|
13860
|
+
}
|
|
13861
|
+
/** Render the semantic heading element */
|
|
13862
|
+
renderHeading(n) {
|
|
13863
|
+
const e = this.headingLevel;
|
|
13864
|
+
return i(e, null, n);
|
|
11604
13865
|
}
|
|
11605
13866
|
render() {
|
|
11606
13867
|
const n = this.parsedSteps;
|
|
11607
|
-
return i("div", { key: "
|
|
13868
|
+
return i("div", { key: "1ff00f17a85e9a3a9d7bef23694560acd77e7ee4", class: this.articleClasses() }, this.imageSrc ? i("div", { class: "w-full mb-12 rounded-t-lg overflow-hidden border-2" }, i("eds-img", { src: this.imageSrc, width: this.imageWidth, "with-bg": "true", "lazy-load": "true", alt: "Step illustration" })) : this.message && i("div", { class: "w-full bg-[#00A595] rounded-t-lg border-2" }, i("div", { class: "p-24" }, i("span", { class: "text-inverse f-heading-04 " }, this.message))), i("div", { key: "a0328e80df5d9447cfa5378eb9e45925f1f68c69", class: "pb-20 px-8" }, this.type === "linear" ? i("div", { class: "steps" }, n.map((e, t) => i("div", { class: t === 0 ? "step" : "step space-y-16", key: t }, this.renderHeading(e.title), this.activeStep === t && i("div", { class: "content grid gap-y-16" }, i("slot", { name: `step-${t}` }, i("div", { class: (t === n.length - 1, "f-body-02 text-lighter"), innerHTML: e.content })), i("div", { class: "flex items-center" }, i("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: !0, onClick: this.handleBack, disabled: t === 0, class: t === 0 ? "hidden" : "block", size: "small" }), i("eds-button", { label: t === n.length - 1 ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: !0, onClick: this.handleNext, disabled: this.disableNext, size: "small", class: "ml-8" })))))) : (
|
|
11608
13869
|
// Static mode: show all steps with their content.
|
|
11609
|
-
i("div", { class: "steps space-y-8" }, n.map((e,
|
|
13870
|
+
i("div", { class: "steps space-y-8" }, n.map((e, t) => i("div", { class: "step", key: t }, this.renderHeading(e.title), i("div", { class: "content" }, i("slot", { name: `step-${t}` }, i("div", { class: t === n.length - 1 ? "f-body-02 text-lighter mt-16" : "f-body-02 text-lighter", innerHTML: e.content }))))))
|
|
11610
13871
|
)));
|
|
11611
13872
|
}
|
|
11612
13873
|
get el() {
|
|
11613
|
-
return
|
|
13874
|
+
return y(this);
|
|
11614
13875
|
}
|
|
11615
13876
|
static get watchers() {
|
|
11616
13877
|
return {
|
|
@@ -11618,12 +13879,53 @@ const In = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,d
|
|
|
11618
13879
|
};
|
|
11619
13880
|
}
|
|
11620
13881
|
};
|
|
11621
|
-
|
|
11622
|
-
const
|
|
13882
|
+
Be.style = We;
|
|
13883
|
+
const qe = ":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:#ccc;padding:0;cursor:pointer;transition:background-color 0.2s}button.switch.switch--checked{background-color:var(--green-500)}button.switch.switch--disabled{opacity:0.6;cursor:not-allowed}.switch-handle{position:absolute;width:22px;height:22px;border-radius:50%;background-color:#fff;top:2px;left:2px;transition:transform 0.2s}button.switch.switch--checked .switch-handle{transform:translateX(24px)}.ml-8{margin-left:0.5rem}.mr-8{margin-right:0.5rem}.switch:focus{outline:2px solid #005fcc;outline-offset:2px}.switch:focus:not(:focus-visible){outline:none}.switch:focus-visible{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}", Me = qe, Ue = class {
|
|
13884
|
+
constructor(n) {
|
|
13885
|
+
p(this, n), this.uiswitch = w(this, "uiswitch", 7), this.toggleSwitch = () => {
|
|
13886
|
+
this.disabled || (this.checked = !this.checked, this.uiswitch.emit({ value: this.checked }), I({
|
|
13887
|
+
category: "ui-component",
|
|
13888
|
+
tag: this.el.tagName.toLowerCase(),
|
|
13889
|
+
name: this.checked ? this.labelOn : this.labelOff || "",
|
|
13890
|
+
action: "checked"
|
|
13891
|
+
}));
|
|
13892
|
+
}, this.handleKeyDown = (e) => {
|
|
13893
|
+
this.disabled || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.toggleSwitch());
|
|
13894
|
+
}, this.checked = !1, this.disabled = !1, this.labelOn = "", this.labelOff = "";
|
|
13895
|
+
}
|
|
13896
|
+
render() {
|
|
13897
|
+
const n = `switch-${Math.random().toString(36).substr(2, 9)}`, e = [];
|
|
13898
|
+
this.labelOff && e.push(`${n}-off`), this.labelOn && e.push(`${n}-on`);
|
|
13899
|
+
const t = e.length === 0 ? this.labelOn || this.labelOff ? this.checked ? this.labelOn : this.labelOff : "Toggle switch" : void 0;
|
|
13900
|
+
return i("div", { key: "95a833cbe8e736d7e747f6fdd8504dd8c169ea60", class: "switch-container" }, this.labelOff && i("span", { key: "a88de63c35409ab244a6cba5bd70a10728a08b2a", id: `${n}-off`, class: "switch-label switch-label--off mr-8" }, this.labelOff), i("button", { key: "d6573f05164f2b57063e9a97c3b983f32700bd7a", id: n, tabindex: this.disabled ? "-1" : "0", type: "button", role: "switch", "aria-checked": this.checked ? "true" : "false", "aria-disabled": this.disabled ? "true" : "false", "aria-labelledby": e.length > 0 ? e.join(" ") : void 0, "aria-label": t, class: {
|
|
13901
|
+
switch: !0,
|
|
13902
|
+
"switch--checked": this.checked,
|
|
13903
|
+
"switch--disabled": this.disabled
|
|
13904
|
+
}, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, i("span", { key: "35e6da3bb76779bfaad04d8990dec419524fb543", class: "switch-handle" })), this.labelOn && i("span", { key: "b14243d9d45dbdddb9473ad2c5696e07be9831d3", id: `${n}-on`, class: "switch-label switch-label--on ml-8" }, this.labelOn));
|
|
13905
|
+
}
|
|
13906
|
+
get el() {
|
|
13907
|
+
return y(this);
|
|
13908
|
+
}
|
|
13909
|
+
};
|
|
13910
|
+
Ue.style = Me;
|
|
13911
|
+
const Ve = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.p-4{padding:0.25rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-8{padding-left:0.5rem;padding-right:0.5rem}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}", Ge = Ve, Ye = class {
|
|
11623
13912
|
constructor(n) {
|
|
11624
|
-
|
|
13913
|
+
p(this, n), this.rowaction = w(this, "rowaction", 7), this.handleResize = () => {
|
|
11625
13914
|
this.updateContainerWidth();
|
|
11626
|
-
}, this.
|
|
13915
|
+
}, this.onActionKeyDown = (e) => {
|
|
13916
|
+
var t;
|
|
13917
|
+
if (e.key !== "ArrowRight" && e.key !== "ArrowLeft")
|
|
13918
|
+
return;
|
|
13919
|
+
e.preventDefault();
|
|
13920
|
+
const r = e.target, l = r.closest('[role="toolbar"]');
|
|
13921
|
+
if (!l)
|
|
13922
|
+
return;
|
|
13923
|
+
const s = Array.from(l.querySelectorAll("eds-button")), c = s.indexOf(r);
|
|
13924
|
+
if (c === -1)
|
|
13925
|
+
return;
|
|
13926
|
+
let d;
|
|
13927
|
+
e.key === "ArrowRight" ? d = (c + 1) % s.length : d = (c - 1 + s.length) % s.length, (t = s[d]) === null || t === void 0 || t.focus();
|
|
13928
|
+
}, this.data = null, this.config = {}, this.rowsPerPage = 10, this.paginationEnabled = !0, this.searchEnabled = !1, this.hostWidth = void 0, this.columnSize = "default", this.actions = [], this.actionTemplate = void 0, this.parsedActions = [], this.dataColumns = [], this.tbData = [], this.columns = [], this.currentPage = 1, this.parsedConfig = {}, this.totalRows = 0, this.searchQuery = "", this.containerWidth = 0;
|
|
11627
13929
|
}
|
|
11628
13930
|
handleDataChange() {
|
|
11629
13931
|
this.parseData();
|
|
@@ -11639,7 +13941,7 @@ const Pn = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
11639
13941
|
}
|
|
11640
13942
|
}
|
|
11641
13943
|
componentWillLoad() {
|
|
11642
|
-
this.parseConfig(), this.handleActionsChange(), this.
|
|
13944
|
+
this.parseConfig(), this.handleActionsChange(), this.parseData();
|
|
11643
13945
|
}
|
|
11644
13946
|
componentDidLoad() {
|
|
11645
13947
|
this.updateContainerWidth(), window.addEventListener("resize", this.handleResize), this.setupPaginationListener();
|
|
@@ -11655,7 +13957,7 @@ const Pn = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
11655
13957
|
}
|
|
11656
13958
|
parseData() {
|
|
11657
13959
|
try {
|
|
11658
|
-
this.tbData =
|
|
13960
|
+
this.tbData = R(this.data), this.totalRows = this.tbData.length, this.updateColumns(), this.currentPage = 1;
|
|
11659
13961
|
} catch (n) {
|
|
11660
13962
|
console.error("Failed to parse data:", n), this.tbData = [];
|
|
11661
13963
|
}
|
|
@@ -11667,19 +13969,11 @@ const Pn = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
11667
13969
|
console.error("Failed to parse config:", n), this.parsedConfig = {};
|
|
11668
13970
|
}
|
|
11669
13971
|
}
|
|
11670
|
-
async fetchData() {
|
|
11671
|
-
try {
|
|
11672
|
-
const e = await (await fetch(this.endpoint)).json();
|
|
11673
|
-
this.data = e;
|
|
11674
|
-
} catch (n) {
|
|
11675
|
-
console.error("Failed to fetch data:", n);
|
|
11676
|
-
}
|
|
11677
|
-
}
|
|
11678
13972
|
setupPaginationListener() {
|
|
11679
13973
|
if (!this.shouldEnablePagination())
|
|
11680
13974
|
return;
|
|
11681
13975
|
const n = this.hostEl.shadowRoot.querySelector("eds-pagination");
|
|
11682
|
-
n && !n.hasAttribute("listener-attached") && (n.addEventListener("page", (e) => this.handlePageChange(e.detail)), n.setAttribute("listener-attached", "true"));
|
|
13976
|
+
n && !n.hasAttribute("listener-attached") && (n.addEventListener("page", (e) => this.handlePageChange(e.detail.value)), n.setAttribute("listener-attached", "true"));
|
|
11683
13977
|
}
|
|
11684
13978
|
getFilteredRows() {
|
|
11685
13979
|
return this.tbData.filter((n) => Object.values(n).some((e) => e.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
|
|
@@ -11691,7 +13985,7 @@ const Pn = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
11691
13985
|
return n.slice(e, e + this.rowsPerPage);
|
|
11692
13986
|
}
|
|
11693
13987
|
handlePageChange(n) {
|
|
11694
|
-
this.currentPage = n,
|
|
13988
|
+
this.currentPage = n, I({
|
|
11695
13989
|
category: "ui-component",
|
|
11696
13990
|
parentContext: null,
|
|
11697
13991
|
tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
|
|
@@ -11703,33 +13997,34 @@ const Pn = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
11703
13997
|
this.searchQuery = n.target.value, this.currentPage = 1;
|
|
11704
13998
|
}
|
|
11705
13999
|
renderCell(n, e) {
|
|
11706
|
-
var
|
|
11707
|
-
const
|
|
11708
|
-
return
|
|
14000
|
+
var t;
|
|
14001
|
+
const r = (t = this.parsedConfig[e]) === null || t === void 0 ? void 0 : t.format;
|
|
14002
|
+
return r === "uppercase" ? n == null ? void 0 : n.toString().toUpperCase() : r === "svg" ? i("div", { innerHTML: n }) : r === "bold" ? i("strong", null, n) : r === "code" ? i("code", null, n) : n;
|
|
11709
14003
|
}
|
|
11710
14004
|
/**
|
|
11711
14005
|
* Renders one action (button or checkbox) for a specific action‐name.
|
|
11712
14006
|
* Used by the “Actions” column below.
|
|
11713
14007
|
*/
|
|
11714
14008
|
renderSingleActionCell(n, e) {
|
|
11715
|
-
var
|
|
11716
|
-
const
|
|
14009
|
+
var t;
|
|
14010
|
+
const r = this.parsedActions.find((d) => d.name === n);
|
|
11717
14011
|
if (this.actionTemplate)
|
|
11718
14012
|
return this.actionTemplate(e);
|
|
11719
|
-
if ((
|
|
11720
|
-
const
|
|
11721
|
-
return i("eds-input-field", { name: `chc-${n}`, label:
|
|
14013
|
+
if ((r.type || "button") === "checkbox") {
|
|
14014
|
+
const d = (t = r.field) !== null && t !== void 0 ? t : r.name, b = !!e[d];
|
|
14015
|
+
return i("eds-input-field", { name: `chc-${n}`, label: r.label, type: "checkbox", checked: b, onChange: (S) => this.emitAction(r.name, e, S.target.checked) });
|
|
11722
14016
|
}
|
|
11723
|
-
|
|
14017
|
+
const s = r.showLabel === !0, c = i("eds-button", { icon: r.icon, label: s ? r.label : null, iconPos: "left", pill: !0, size: "small", intent: "ghost", tabIndex: 0, onClick: () => this.emitAction(r.name, e) });
|
|
14018
|
+
return s ? c : i("eds-tooltip", { content: r.label }, c);
|
|
11724
14019
|
}
|
|
11725
|
-
emitAction(n, e,
|
|
11726
|
-
|
|
14020
|
+
emitAction(n, e, t) {
|
|
14021
|
+
I({
|
|
11727
14022
|
category: "ui-component",
|
|
11728
14023
|
parentContext: null,
|
|
11729
14024
|
tag: `${this.hostEl.tagName.toLowerCase()}/action`,
|
|
11730
14025
|
name: n,
|
|
11731
14026
|
action: "click"
|
|
11732
|
-
}), this.rowaction.emit({ action: n, row: e, checked: !!
|
|
14027
|
+
}), this.rowaction.emit({ action: n, row: e, checked: !!t });
|
|
11733
14028
|
}
|
|
11734
14029
|
shouldEnablePagination() {
|
|
11735
14030
|
return this.paginationEnabled && this.totalRows > this.rowsPerPage;
|
|
@@ -11752,17 +14047,22 @@ const Pn = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
11752
14047
|
return n.charAt(0).toUpperCase() + n.slice(1).toLowerCase();
|
|
11753
14048
|
}
|
|
11754
14049
|
render() {
|
|
11755
|
-
const n = this.hostWidth && this.hostWidth.trim() !== "" ? Number(this.hostWidth) : this.containerWidth || 400, e = this.getVisibleColumnsCount(),
|
|
11756
|
-
return i("div", { key: "
|
|
11757
|
-
var
|
|
11758
|
-
return
|
|
11759
|
-
}))), i("tbody", { key: "
|
|
11760
|
-
var
|
|
11761
|
-
return
|
|
11762
|
-
|
|
14050
|
+
const n = this.hostWidth && this.hostWidth.trim() !== "" ? Number(this.hostWidth) : this.containerWidth || 400, e = this.getVisibleColumnsCount(), t = e > 0 ? Math.floor(n / e * this.divisionFactor()) : 100, r = this.getPaginatedRows(), l = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
14051
|
+
return i("div", { key: "67cfdabc741af13585699e43e67ba0d204a60706" }, this.searchEnabled && i("div", { key: "208240b9832f9b2e9645cc9d7315a43bd47b54b3" }, i("eds-input-field", { key: 1, icon: "search", name: "search", "aria-label": "Search", type: "text", placeholder: "Search...", onInput: (s) => this.handleSearch(s) })), i("div", { key: "893924497d1535b7d29bc0b64ba48f4a3e366c43", class: "mt-20" }, i("table", { key: "a019fa4f2886d4c2aa4bddc88dc7b6d7aa63fdcb", class: "block overflow-x-auto mt-6 p-0" }, i("thead", { key: "a6360fea59c605878e443a23cf45d0f8a9644140" }, i("tr", { key: "09702e8838f32c52bf6314b59ec598c6fa55d609", class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((s) => {
|
|
14052
|
+
var c;
|
|
14053
|
+
return s === "actions" ? i("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${t - 4}px` } }) : !((c = this.parsedConfig[s]) === null || c === void 0) && c.hidden ? null : i("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${t - 4}px` } }, this.capitalize(s));
|
|
14054
|
+
}))), i("tbody", { key: "5cdb3697e6c84921a823b40714a497f02c82e360" }, r.map((s) => i("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((c) => {
|
|
14055
|
+
var d;
|
|
14056
|
+
return c === "actions" ? i("td", { class: "text-center border border-softer m-0 f-ui-02 break-words actions-cell", style: { minWidth: `${t - 4}px` } }, i("div", { role: "toolbar", "aria-label": "Row actions", onKeyDown: this.onActionKeyDown, style: {
|
|
14057
|
+
display: "flex",
|
|
14058
|
+
gap: "0.5rem",
|
|
14059
|
+
justifyContent: "center",
|
|
14060
|
+
flexWrap: "wrap"
|
|
14061
|
+
} }, this.parsedActions.map((b) => i("span", { style: { whiteSpace: "nowrap" } }, this.renderSingleActionCell(b.name, s))))) : !((d = this.parsedConfig[c]) === null || d === void 0) && d.hidden ? null : i("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${t - 4}px` } }, this.renderCell(s[c], c));
|
|
14062
|
+
})))))), this.shouldEnablePagination() && i("div", { key: "f5af2cd6e65c3ed55ec2810ec4b1e3f891866271", class: "mt-20" }, i("eds-pagination", { key: "32965384707df502fb197712c73bb290e38ce040", currentPage: this.currentPage, lastPage: l, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })));
|
|
11763
14063
|
}
|
|
11764
14064
|
get hostEl() {
|
|
11765
|
-
return
|
|
14065
|
+
return y(this);
|
|
11766
14066
|
}
|
|
11767
14067
|
static get watchers() {
|
|
11768
14068
|
return {
|
|
@@ -11772,17 +14072,17 @@ const Pn = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
11772
14072
|
};
|
|
11773
14073
|
}
|
|
11774
14074
|
};
|
|
11775
|
-
|
|
11776
|
-
const
|
|
14075
|
+
Ye.style = Ge;
|
|
14076
|
+
const Xe = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(147 197 253 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor;}::before,::after{--tw-content:''}a{color:inherit;text-decoration:inherit}.relative{position:relative}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.whitespace-nowrap{white-space:nowrap}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus:focus-visible{outline-style:solid}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.focus-visible\\:text-default:focus-visible{color:var(--black)}.hover\\:text-default:hover{color:var(--black)}.border-2{border-width:2px}.after\\:content-\\[\\'\\'\\]::after{--tw-content:'';content:var(--tw-content)}.after\\:bottom-0::after{bottom:0rem}.after\\:border-0::after{border-width:0px}.after\\:border-b-2::after{border-bottom-width:2px}.after\\:absolute::after{position:absolute}.after\\:inset-0::after{inset:0rem}.after\\:rounded-lg::after{border-radius:16px}.after\\:border-solid::after{border-style:solid}.after\\:border-3::after{border-width:3px}.after\\:border-accent::after{border-color:var(--green-500)}.after\\:opacity-0::after{opacity:0}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:after\\:opacity-100:focus-visible::after{opacity:1}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.rounded-tl-lg{border-top-left-radius:16px}.rounded-tr-lg{border-top-right-radius:16px}.border-l-0{border-left-width:0px}.border-r-0{border-right-width:0px}.border-b-0{border-bottom-width:0px}.pr-28{padding-right:1.75rem}.pl-28{padding-left:1.75rem}.-mr-16{margin-right:-1rem}.-ml-16{margin-left:-1rem}.px-16{padding-left:1rem;padding-right:1rem}.py-12{padding-top:0.75rem;padding-bottom:0.75rem}.after\\:left-16::after{left:1rem}.after\\:right-16::after{right:1rem}.text-lighter{color:var(--grey-600)}.bg-dark{background-color:var(--grey-300)}.hover\\:bg-darker:hover{background-color:var(--grey-400)}.border-soft{border-color:var(--grey-400)}.border-softest{border-color:rgba(0, 0, 0, .05)}.bg-default{background-color:var(--grey-200)}.text-default{color:var(--black)}.z-99{z-index:99}.after\\:z-10::after{z-index:10}.before\\:bottom-0::before{bottom:0rem}.before\\:h-12::before{height:0.75rem}.before\\:opacity-5::before{opacity:0.05}.before\\:content-\\[\\'\\'\\]::before{--tw-content:'';content:var(--tw-content)}.before\\:absolute::before{position:absolute}.before\\:-bottom-2::before{bottom:-0.125rem}.after\\:inset-x-0::after{left:0rem;right:0rem}.before\\:inset-x-0::before{left:0rem;right:0rem}.before\\:h-3::before{height:0.1875rem}.before\\:bg-default::before{background-color:var(--grey-200)}.after\\:border-soft::after{border-color:rgba(0, 0, 0, .15 )}.after\\:border-softest::after{border-color:rgba(0, 0, 0, .05)}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.before\\:bg-gradient-y::before{background:linear-gradient(to bottom, transparent, ease-in-out, black)}.scroller-x{-ms-overflow-style:none;scrollbar-width:none}.overflow-x-auto{overflow-x:auto}.max-w-xxxl{max-width:2200px}.z-1{z-index:1}.mx-auto{margin-left:auto;margin-right:auto}.pt-8{padding-top:0.5rem}.pr-16{padding-right:1rem}.pl-16{padding-left:1rem}.inline-flex{display:inline-flex}@media (min-width: 900px){.lg\\:px-28{padding-left:1.75rem;padding-right:1.75rem}}@media (min-width: 2200px){.xxxl\\:px-0{padding-left:0rem;padding-right:0rem}}", Ke = Xe, Ze = class {
|
|
11777
14077
|
constructor(n) {
|
|
11778
|
-
|
|
14078
|
+
p(this, n), this.tab = w(this, "tab", 7), this.tabRefs = [], this.setTabRef = (e, t) => {
|
|
14079
|
+
e && (this.tabRefs[t] = e);
|
|
14080
|
+
}, this.tabCva = N([
|
|
11779
14081
|
"relative py-12",
|
|
11780
14082
|
"f-ui-03 whitespace-nowrap",
|
|
11781
|
-
"effect-color",
|
|
14083
|
+
"effect-color effect-focus",
|
|
11782
14084
|
"focus-visible:text-default hover:text-default",
|
|
11783
|
-
"border-2"
|
|
11784
|
-
"after:content-[''] after:absolute after:inset-0 after:rounded-t-lg after:opacity-0",
|
|
11785
|
-
"outline-none focus:outline-none focus-visible:outline-none focus-visible:after:opacity-100"
|
|
14085
|
+
"border-2"
|
|
11786
14086
|
], {
|
|
11787
14087
|
variants: {
|
|
11788
14088
|
position: {
|
|
@@ -11792,7 +14092,10 @@ const Tn = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;-
|
|
|
11792
14092
|
right: "pl-28 pr-16 rounded-tr-lg border-l-0 -ml-16 after:left-16"
|
|
11793
14093
|
},
|
|
11794
14094
|
active: {
|
|
11795
|
-
false:
|
|
14095
|
+
false: [
|
|
14096
|
+
"text-lighter bg-dark hover:bg-darker border-softest border-b-0 z-1",
|
|
14097
|
+
"after:content-[''] after:absolute after:bottom-0 after:inset-x-0 after:h-2 after:border-soft"
|
|
14098
|
+
],
|
|
11796
14099
|
true: [
|
|
11797
14100
|
"bg-default text-default z-99",
|
|
11798
14101
|
"rounded-t-lg",
|
|
@@ -11804,28 +14107,25 @@ const Tn = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;-
|
|
|
11804
14107
|
}), this.identifier = void 0, this.navAriaLabel = "Tabs", this.tabs = void 0, this.parsedTabs = [], this.activeIndex = -1;
|
|
11805
14108
|
}
|
|
11806
14109
|
componentWillLoad() {
|
|
11807
|
-
this.parseTabs(), this.setActiveIndex(), this.tab.emit({ tabId: this.identifier, index:
|
|
14110
|
+
this.parseTabs(), this.setActiveIndex(), this.tab.emit({ tabId: this.identifier, index: this.activeIndex });
|
|
11808
14111
|
}
|
|
11809
14112
|
/**
|
|
11810
|
-
* Parses the `
|
|
11811
|
-
* Returns an empty array if parsing fails or if `
|
|
11812
|
-
*
|
|
11813
|
-
* @returns {any[]} Array of parsed link objects
|
|
11814
|
-
*/
|
|
11815
|
-
/**
|
|
11816
|
-
* Parses the `links` prop into an array of link objects.
|
|
11817
|
-
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
14113
|
+
* Parses the `tabs` prop into an array of tab objects.
|
|
14114
|
+
* Returns an empty array if parsing fails or if `tabs` is not a valid JSON string or object.
|
|
11818
14115
|
*
|
|
11819
|
-
* @returns {any[]} Array of parsed
|
|
14116
|
+
* @returns {any[]} Array of parsed tab objects
|
|
11820
14117
|
*/
|
|
11821
14118
|
parseTabs() {
|
|
11822
|
-
this.parsedTabs =
|
|
14119
|
+
this.parsedTabs = R(this.tabs), this.tabRefs = [];
|
|
11823
14120
|
}
|
|
11824
14121
|
componentDidLoad() {
|
|
11825
14122
|
this.scrollToActiveTab();
|
|
11826
14123
|
}
|
|
14124
|
+
componentDidUpdate() {
|
|
14125
|
+
this.tabRefs.length !== this.parsedTabs.length && (this.tabRefs = new Array(this.parsedTabs.length).fill(null));
|
|
14126
|
+
}
|
|
11827
14127
|
setActiveIndex() {
|
|
11828
|
-
this.activeIndex = this.parsedTabs.findIndex((n) => n.active);
|
|
14128
|
+
this.activeIndex = this.parsedTabs.findIndex((n) => n.active), this.activeIndex === -1 && this.parsedTabs.length > 0 && (this.activeIndex = 0, this.parsedTabs[0].active = !0);
|
|
11829
14129
|
}
|
|
11830
14130
|
scrollToActiveTab() {
|
|
11831
14131
|
var n;
|
|
@@ -11838,30 +14138,51 @@ const Tn = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;-
|
|
|
11838
14138
|
}, 316);
|
|
11839
14139
|
}
|
|
11840
14140
|
getTabOptions(n, e) {
|
|
11841
|
-
const
|
|
11842
|
-
return Object.assign({ class: this.tabCva({
|
|
11843
|
-
|
|
11844
|
-
|
|
11845
|
-
}), style: {
|
|
11846
|
-
zIndex: `${n ? this.parsedTabs.length + 99 : r === "left" ? e : this.parsedTabs.length + 1 - e}`
|
|
14141
|
+
const t = n ? "center" : this.activeIndex === -1 && e === 0 ? "first" : e < this.activeIndex ? "left" : "right", r = t === "left" ? e : this.parsedTabs.length + 1 - e, l = n ? this.parsedTabs.length + 99 : Math.max(r, 1);
|
|
14142
|
+
return Object.assign({ class: this.tabCva({ active: n, position: t }), style: {
|
|
14143
|
+
// stringify the number so it matches { [key: string]: string }
|
|
14144
|
+
zIndex: `${l}`
|
|
11847
14145
|
} }, n ? { "data-tab-active": "true" } : {});
|
|
11848
14146
|
}
|
|
11849
|
-
handleTabClick(n, e) {
|
|
11850
|
-
this.activeIndex = n, this.parsedTabs = this.parsedTabs.map((r,
|
|
14147
|
+
handleTabClick(n, e, t = !0) {
|
|
14148
|
+
n < 0 || n >= this.parsedTabs.length || (this.activeIndex = n, this.parsedTabs = this.parsedTabs.map((r, l) => Object.assign(Object.assign({}, r), { active: l === n })), this.tab.emit({ tabId: this.identifier, index: n, name: e }), t && I({
|
|
11851
14149
|
category: "ui-component",
|
|
11852
14150
|
tag: this.el.tagName.toLowerCase(),
|
|
11853
14151
|
name: (e == null ? void 0 : e.toLowerCase()) || "",
|
|
11854
14152
|
action: "click"
|
|
11855
|
-
})
|
|
14153
|
+
}), t && this.tabRefs[n] && setTimeout(() => {
|
|
14154
|
+
var r;
|
|
14155
|
+
(r = this.tabRefs[n]) === null || r === void 0 || r.focus();
|
|
14156
|
+
}, 0));
|
|
14157
|
+
}
|
|
14158
|
+
onKeyDown(n, e) {
|
|
14159
|
+
let t = e;
|
|
14160
|
+
switch (n.key) {
|
|
14161
|
+
case "ArrowRight":
|
|
14162
|
+
t = (e + 1) % this.parsedTabs.length, n.preventDefault();
|
|
14163
|
+
break;
|
|
14164
|
+
case "ArrowLeft":
|
|
14165
|
+
t = (e - 1 + this.parsedTabs.length) % this.parsedTabs.length, n.preventDefault();
|
|
14166
|
+
break;
|
|
14167
|
+
case "Home":
|
|
14168
|
+
t = 0, n.preventDefault();
|
|
14169
|
+
break;
|
|
14170
|
+
case "End":
|
|
14171
|
+
t = this.parsedTabs.length - 1, n.preventDefault();
|
|
14172
|
+
break;
|
|
14173
|
+
default:
|
|
14174
|
+
return;
|
|
14175
|
+
}
|
|
14176
|
+
t !== e && this.handleTabClick(t, this.parsedTabs[t].label, !0);
|
|
11856
14177
|
}
|
|
11857
14178
|
render() {
|
|
11858
|
-
return i("div", { key: "
|
|
11859
|
-
const
|
|
11860
|
-
return i(
|
|
11861
|
-
}))), i("div", { key: "
|
|
14179
|
+
return i("div", { key: "7cb51cf475d45ee3e43877ee4d42565f5930613a", id: `${this.identifier}` }, i("div", { key: "4f3c6d23f9084f07e5728b72310b96798d20b724", class: "scroller-x overflow-x-auto relative z-[1] mx-auto px-16 pt-8 lg:px-28 after:border-soft before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, i("nav", { key: "4d55e72e9f437cef8be06931445f619196a973a7", role: "tablist", ref: (n) => this.tabContainer = n, class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((n, e) => {
|
|
14180
|
+
const t = "button", r = this.getTabOptions(n.active, e), l = e === this.activeIndex;
|
|
14181
|
+
return i(t, Object.assign({}, r, { type: "button", role: "tab", "aria-selected": n.active ? "true" : "false", tabIndex: l ? 0 : -1, "aria-label": n.ariaLabel || n.label, "aria-controls": `panel-${e}`, id: `tab-${e}`, ref: (s) => this.setTabRef(s, e), onClick: () => this.handleTabClick(e, n.label, !0), onKeyDown: (s) => this.onKeyDown(s, e) }), n.label || n.ariaLabel);
|
|
14182
|
+
}))), i("div", { key: "e75f877da39c25e912853fea5dc2438fc15c67b5", class: "tab-panels" }, this.parsedTabs.map((n, e) => i("div", { role: "tabpanel", id: `panel-${e}`, "aria-labelledby": `tab-${e}`, hidden: e !== this.activeIndex, tabIndex: e === this.activeIndex ? 0 : -1, class: "effect-focus" }, i("slot", { name: `panel-${e}` })))));
|
|
11862
14183
|
}
|
|
11863
14184
|
get el() {
|
|
11864
|
-
return
|
|
14185
|
+
return y(this);
|
|
11865
14186
|
}
|
|
11866
14187
|
static get watchers() {
|
|
11867
14188
|
return {
|
|
@@ -11869,8 +14190,8 @@ const Tn = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;-
|
|
|
11869
14190
|
};
|
|
11870
14191
|
}
|
|
11871
14192
|
};
|
|
11872
|
-
|
|
11873
|
-
const
|
|
14193
|
+
Ze.style = Ke;
|
|
14194
|
+
const Je = ".f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-05{font-family:var(--f-ui-05-fontFamily);font-weight:var(--f-ui-05-fontWeight);font-size:var(--f-ui-05-fontSize);line-height:var(--f-ui-05-lineHeight);letter-spacing:var(--f-ui-05-letterSpacing)}.py-2{padding-top:0.125rem;padding-bottom:0.125rem}.py-3{padding-top:0.1875rem;padding-bottom:0.1875rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.px-5{padding-left:0.3125rem;padding-right:0.3125rem}.px-6{padding-left:0.375rem;padding-right:0.375rem}.border-2{border-width:2px}.rounded-pill{border-radius:100px}.border-default{border:2px solid var(--black)}.text-inverse{color:var(--white)}.bg-accent{background-color:var(--green-500)}.bg-strongest{background-color:var(--black)}.text-\\[\\#0034CB\\]{--tw-text-opacity:1;color:rgb(0 52 203 / var(--tw-text-opacity))}.border-\\[\\#0034CB\\]{--tw-border-opacity:1;border:2px solid rgb(0 52 203 / var(--tw-border-opacity))}.text-light{color:var(--grey-700)}.bg-strongest-soft{background-color:rgba(0, 0, 0, .05)}.border-transparent{border-color:var(--transparent)}.border-inverse{border-color:var(--white)}.bg-inverse{background-color:var(--white)}.text-lighter{color:var(--grey-600)}", Qe = Je, nt = N(
|
|
11874
14195
|
["border-2 rounded-pill"],
|
|
11875
14196
|
// Base classes
|
|
11876
14197
|
{
|
|
@@ -11898,19 +14219,19 @@ const Hn = ".f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-u
|
|
|
11898
14219
|
size: "small"
|
|
11899
14220
|
}
|
|
11900
14221
|
}
|
|
11901
|
-
),
|
|
14222
|
+
), et = class {
|
|
11902
14223
|
constructor(n) {
|
|
11903
|
-
|
|
14224
|
+
p(this, n), this.label = void 0, this.intent = "default", this.size = "small";
|
|
11904
14225
|
}
|
|
11905
14226
|
render() {
|
|
11906
|
-
const n =
|
|
11907
|
-
return i("span", { key: "
|
|
14227
|
+
const n = nt({ intent: this.intent, size: this.size });
|
|
14228
|
+
return i("span", { key: "e3fe041e8783a7d1bb5a281eb154e3c07851da38", class: n }, this.label);
|
|
11908
14229
|
}
|
|
11909
14230
|
};
|
|
11910
|
-
|
|
11911
|
-
const
|
|
14231
|
+
et.style = Qe;
|
|
14232
|
+
const tt = `.relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:0.25rem}.w-auto{width:auto}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:0.25rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.ml-8{margin-left:0.5rem}.p-12{padding:0.75rem}.rounded-lg{border-radius:16px}.shadow-md{--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),
|
|
11912
14233
|
0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
11913
|
-
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-dark{background-color:var(--grey-300)}.bg-success{background-color:var(--green-200)}.bg-error{background-color:var(--red-200)}.bg-warning{background-color:var(--yellow-200)}.text-light{color:var(--grey-700)}.text-current{color:currentColor}.text-default{color:var(--black)}`,
|
|
14234
|
+
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-dark{background-color:var(--grey-300)}.bg-success{background-color:var(--green-200)}.bg-error{background-color:var(--red-200)}.bg-warning{background-color:var(--yellow-200)}.text-light{color:var(--grey-700)}.text-current{color:currentColor}.text-default{color:var(--black)}`, it = tt, rt = N(["relative bottom-4 w-auto p-12 rounded-lg shadow-md"], {
|
|
11914
14235
|
variants: {
|
|
11915
14236
|
intent: {
|
|
11916
14237
|
default: "bg-dark text-light",
|
|
@@ -11922,9 +14243,9 @@ const Bn = `.relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:
|
|
|
11922
14243
|
defaultVariants: {
|
|
11923
14244
|
intent: "default"
|
|
11924
14245
|
}
|
|
11925
|
-
}),
|
|
14246
|
+
}), lt = class {
|
|
11926
14247
|
constructor(n) {
|
|
11927
|
-
|
|
14248
|
+
p(this, n), this.toast = w(this, "toast", 7), this.dismissToast = () => {
|
|
11928
14249
|
this.toast.emit({ visible: !1, label: "dismissed" }), this.visible = !1;
|
|
11929
14250
|
}, this.message = void 0, this.intent = "default", this.duration = void 0, this.visible = !0;
|
|
11930
14251
|
}
|
|
@@ -11956,17 +14277,45 @@ const Bn = `.relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:
|
|
|
11956
14277
|
render() {
|
|
11957
14278
|
if (!this.visible)
|
|
11958
14279
|
return null;
|
|
11959
|
-
const n =
|
|
14280
|
+
const n = rt({ intent: this.intent });
|
|
11960
14281
|
return i("div", { class: n, role: "alert", "aria-live": "assertive" }, i("div", { class: "flex items-center justify-between gap-4" }, i("span", { class: "f-ui-01" }, this.message), i("eds-button", { intent: "tertiary", icon: "close", "aria-label": "Close Toast", onClick: () => this.dismissToast(), "extra-class": "ml-8" })));
|
|
11961
14282
|
}
|
|
11962
14283
|
get el() {
|
|
11963
|
-
return
|
|
14284
|
+
return y(this);
|
|
14285
|
+
}
|
|
14286
|
+
};
|
|
14287
|
+
lt.style = it;
|
|
14288
|
+
const ot = ".relative{position:relative}.absolute{position:absolute}.inline-block{display:inline-block}.rounded-xs{border-radius:4px}.bg-strongest{background-color:var(--black)}.text-inverse{color:var(--white)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.pointer-events-none{pointer-events:none}.left-1\\/2{left:50%}.z-10{z-index:10}.transform{transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.whitespace-nowrap{white-space:nowrap}.p-6{padding:0.375rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.top-full{top:100%}.bottom-full{bottom:100%}.right-full{right:100%}.left-full{left:100%}.mr-2{margin-right:0.125rem}.ml-2{margin-left:0.125rem}.mt-2{margin-top:0.125rem}.mb-2{margin-bottom:0.125rem}.opacity-0{opacity:0}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-150{transition-duration:150ms}.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.group:hover .group-hover\\:opacity-100{opacity:1}.max-w-\\[20rem\\]{max-width:20rem}.whitespace-normal{white-space:normal}.break-words{overflow-wrap:break-word}.w-full{width:100%}", at = ot, st = class {
|
|
14289
|
+
constructor(n) {
|
|
14290
|
+
p(this, n), this.content = void 0, this.position = "top";
|
|
14291
|
+
}
|
|
14292
|
+
/** fire analytics on every hover */
|
|
14293
|
+
handleHover() {
|
|
14294
|
+
I({
|
|
14295
|
+
category: "ui-component",
|
|
14296
|
+
tag: this.el.tagName.toLowerCase(),
|
|
14297
|
+
name: this.content.toLowerCase(),
|
|
14298
|
+
action: "hover"
|
|
14299
|
+
});
|
|
14300
|
+
}
|
|
14301
|
+
render() {
|
|
14302
|
+
const n = this.position === "bottom" ? "top-full mt-2" : "bottom-full mb-2";
|
|
14303
|
+
return i("div", { key: "135df7d17db03fb3bb7bbcc50ad9ee5d84a2bca2", class: "relative w-full inline-block group" }, i("slot", { key: "4c12874eeb942e33f9c62ea6f1077fd051f683b6" }), i("div", { key: "8bb7173d16889b2ae550dc0269d9e47e1dae00ac", class: `absolute ${n}
|
|
14304
|
+
rounded-xs bg-strongest text-inverse
|
|
14305
|
+
f-ui-03-light pointer-events-none
|
|
14306
|
+
z-10 px-4 opacity-0 transition-opacity duration-150 ease-in-out
|
|
14307
|
+
group-hover:opacity-100 whitespace-normal break-words`, role: "tooltip" }, this.content));
|
|
14308
|
+
}
|
|
14309
|
+
get el() {
|
|
14310
|
+
return y(this);
|
|
11964
14311
|
}
|
|
11965
14312
|
};
|
|
11966
|
-
|
|
11967
|
-
const
|
|
14313
|
+
st.style = at;
|
|
14314
|
+
const dt = "hr,p{margin:0}.block{display:block}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.text-default{color:var(--black)}.min-w-\\[280px\\]{min-width:280px}.p-8{padding:0.5rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.gap-y-8{row-gap:0.5rem}.pb-16{padding-bottom:1rem}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1 )}.max-w-full{max-width:100%}.w-full{width:100%}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.text-light{color:var(--grey-700)}.mt-4{margin-top:0.25rem}.mt-16{margin-top:1rem}", ct = dt, gt = class {
|
|
11968
14315
|
constructor(n) {
|
|
11969
|
-
|
|
14316
|
+
p(this, n), this.handleDropdown = (e) => {
|
|
14317
|
+
this.expanded = e.detail.expanded;
|
|
14318
|
+
}, this.user = void 0, this.intent = "tertiary", this.expanded = !1;
|
|
11970
14319
|
}
|
|
11971
14320
|
/**
|
|
11972
14321
|
* Helper getter to ensure we work with a User object.
|
|
@@ -11983,44 +14332,52 @@ const Un = "hr,p{margin:0}.block{display:block}.flex{display:flex}.flex-col{flex
|
|
|
11983
14332
|
async componentWillLoad() {
|
|
11984
14333
|
}
|
|
11985
14334
|
get initials() {
|
|
11986
|
-
var n, e,
|
|
14335
|
+
var n, e, t, r;
|
|
11987
14336
|
const l = this.parsedUser;
|
|
11988
|
-
return `${((n = l.given_name) === null || n === void 0 ? void 0 : n.charAt(0)) || ""}${((e = l.family_name) === null || e === void 0 ? void 0 : e.charAt(0)) || ""}`.toUpperCase() || ((
|
|
14337
|
+
return `${((n = l.given_name) === null || n === void 0 ? void 0 : n.charAt(0)) || ""}${((e = l.family_name) === null || e === void 0 ? void 0 : e.charAt(0)) || ""}`.toUpperCase() || ((r = (t = l.name) === null || t === void 0 ? void 0 : t.charAt(0)) === null || r === void 0 ? void 0 : r.toUpperCase()) || "";
|
|
11989
14338
|
}
|
|
11990
14339
|
render() {
|
|
11991
|
-
const n = this.parsedUser;
|
|
11992
|
-
return i("div", { key: "
|
|
14340
|
+
const n = this.parsedUser, e = this.expanded ? "chevron-down" : "chevron-right";
|
|
14341
|
+
return i("div", { key: "965387104c4bd6cd3223c08f16d90146c098594c", class: "block" }, i("div", { key: "37fe5539cb058112ebe0d910439acb55b5abccd8", class: "flex items-center" }, i("eds-dropdown", { key: "17afc8dbae191aec1202ba04d85c41ed656a8c5b", label: `Hi, ${n.preferred_username}`, intent: this.intent, "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: e, class: "text-default", onDropdown: this.handleDropdown }, i("div", { key: "0228c1728b0b73e2504d2608339f9be408be09b8", class: "min-w-[280px] p-8" }, i("div", { key: "b83148ff8249bde91842b036da5506f9f5cbb145", class: "flex gap-x-16" }, i("eds-avatar", { key: "243a05bae2e4e592dc386b1897d824232d0bcfa6", "first-name": n.given_name, "last-name": n.family_name, initials: this.initials, color: "black" }), i("div", { key: "6938f54621aa89e61aa6639e8c88af4e262e0fec", class: "max-w-full" }, n.name && i("p", { key: "224ce5cf6819a9dd0c3794410a94da30cc4213bf", class: "f-ui-01 text-default w-full text-ellipsis" }, n.name), n.preferred_username && i("p", { key: "096ac761149763ef4305ef5e9bf1f4b593a0fe4f", class: "f-ui-03-light text-light mt-4" }, n.preferred_username), n.email && i("p", { key: "79f7da3c6c5efc1f521991c403184cf050b3d2e7", class: "f-ui-03-light text-light mt-4" }, n.email))), i("div", { key: "52ce98bcc290902605ebd427ee8ab72ac9af3d62", class: "text-default flex w-full flex-col gap-y-8" }, i("slot", { key: "88d1b250c434830347e0eb813214382ce899c485" }))))));
|
|
11993
14342
|
}
|
|
11994
14343
|
get hostEl() {
|
|
11995
|
-
return
|
|
14344
|
+
return y(this);
|
|
11996
14345
|
}
|
|
11997
14346
|
};
|
|
11998
|
-
|
|
14347
|
+
gt.style = ct;
|
|
11999
14348
|
export {
|
|
12000
|
-
|
|
12001
|
-
|
|
12002
|
-
|
|
12003
|
-
|
|
12004
|
-
|
|
12005
|
-
|
|
12006
|
-
|
|
12007
|
-
|
|
12008
|
-
|
|
12009
|
-
|
|
12010
|
-
|
|
12011
|
-
|
|
12012
|
-
|
|
12013
|
-
|
|
12014
|
-
|
|
12015
|
-
|
|
12016
|
-
|
|
12017
|
-
|
|
12018
|
-
|
|
12019
|
-
|
|
12020
|
-
|
|
12021
|
-
|
|
12022
|
-
|
|
12023
|
-
|
|
12024
|
-
|
|
12025
|
-
|
|
14349
|
+
En as eds_accordion,
|
|
14350
|
+
In as eds_alert,
|
|
14351
|
+
Tn as eds_avatar,
|
|
14352
|
+
Rn as eds_block_break,
|
|
14353
|
+
Nn as eds_breadcrumb,
|
|
14354
|
+
Wn as eds_button,
|
|
14355
|
+
Mn as eds_code_block,
|
|
14356
|
+
Gn as eds_dropdown,
|
|
14357
|
+
te as eds_form,
|
|
14358
|
+
le as eds_header,
|
|
14359
|
+
xt as eds_icon_wrapper,
|
|
14360
|
+
se as eds_img,
|
|
14361
|
+
yt as eds_input,
|
|
14362
|
+
ge as eds_input_field,
|
|
14363
|
+
be as eds_input_footer,
|
|
14364
|
+
pe as eds_input_label,
|
|
14365
|
+
vt as eds_input_range,
|
|
14366
|
+
wt as eds_input_search,
|
|
14367
|
+
kt as eds_input_select,
|
|
14368
|
+
we as eds_link,
|
|
14369
|
+
Ce as eds_logo,
|
|
14370
|
+
Fe as eds_matomo_notice,
|
|
14371
|
+
Le as eds_nps,
|
|
14372
|
+
$e as eds_pagination,
|
|
14373
|
+
De as eds_rating,
|
|
14374
|
+
He as eds_steps,
|
|
14375
|
+
Be as eds_steps_v2,
|
|
14376
|
+
Ue as eds_switch,
|
|
14377
|
+
Ye as eds_table,
|
|
14378
|
+
Ze as eds_tabs,
|
|
14379
|
+
et as eds_tag,
|
|
14380
|
+
lt as eds_toast,
|
|
14381
|
+
st as eds_tooltip,
|
|
14382
|
+
gt as eds_user
|
|
12026
14383
|
};
|