@jackuait/blok 0.11.1 → 0.12.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/LICENSE +13 -1
- package/NOTICE +10 -0
- package/README.md +7 -1
- package/codemod/migrate-editorjs-to-blok.js +51 -1
- package/codemod/test.js +95 -0
- package/dist/blok.cjs +1 -1
- package/dist/blok.iife.js +31 -30
- package/dist/blok.mjs +2 -2
- package/dist/chunks/_basePickBy-CLCgPLk_.cjs +1 -0
- package/dist/chunks/_basePickBy-cIM18c5w.mjs +166 -0
- package/dist/chunks/_baseUniq-C3lUNj_l.mjs +682 -0
- package/dist/chunks/_baseUniq-Cm3XBb1f.cjs +1 -0
- package/dist/chunks/arc-BSr2jl4o.mjs +80 -0
- package/dist/chunks/arc-C-l7V0ww.cjs +1 -0
- package/dist/chunks/architecture-YZFGNWBL-C5uKTSqd.mjs +3 -0
- package/dist/chunks/architecture-YZFGNWBL-DopZbt9d.cjs +1 -0
- package/dist/chunks/architectureDiagram-Q4EWVU46-B3EkmUoA.cjs +36 -0
- package/dist/chunks/architectureDiagram-Q4EWVU46-DL5lPOq_.mjs +4066 -0
- package/dist/chunks/blockDiagram-DXYQGD6D-ChnytJiO.cjs +132 -0
- package/dist/chunks/blockDiagram-DXYQGD6D-DjFfRgP_.mjs +3074 -0
- package/dist/chunks/blok-Cxcy7G7v.mjs +13801 -0
- package/dist/chunks/blok-qY4LDF7A.cjs +17 -0
- package/dist/chunks/c4Diagram-AHTNJAMY-D9cwQ5dP.cjs +10 -0
- package/dist/chunks/c4Diagram-AHTNJAMY-DDydXzN1.mjs +2956 -0
- package/dist/chunks/channel-1VaVTmSI.mjs +5 -0
- package/dist/chunks/channel-DTKWBt5v.cjs +1 -0
- package/dist/chunks/chunk-2KRD3SAO-Dcv71dz8.cjs +1 -0
- package/dist/chunks/chunk-2KRD3SAO-DslQvmzC.mjs +20 -0
- package/dist/chunks/chunk-336JU56O-CUNPhOYK.mjs +49 -0
- package/dist/chunks/chunk-336JU56O-DsJvvQpB.cjs +1 -0
- package/dist/chunks/chunk-426QAEUC-Ciny2-Rz.mjs +13 -0
- package/dist/chunks/chunk-426QAEUC-DEYJ0OiL.cjs +1 -0
- package/dist/chunks/chunk-4BX2VUAB-D1dKBLiS.cjs +1 -0
- package/dist/chunks/chunk-4BX2VUAB-ljY9_i7D.mjs +19 -0
- package/dist/chunks/chunk-4TB4RGXK-C-eXrWWX.cjs +206 -0
- package/dist/chunks/chunk-4TB4RGXK-orLiGd4g.mjs +3250 -0
- package/dist/chunks/chunk-55IACEB6-BOy3ofgp.cjs +1 -0
- package/dist/chunks/chunk-55IACEB6-BPnDY27B.mjs +8 -0
- package/dist/chunks/chunk-5FUZZQ4R-D3UGwLBL.cjs +62 -0
- package/dist/chunks/chunk-5FUZZQ4R-D5gG1Dk4.mjs +3786 -0
- package/dist/chunks/chunk-5PVQY5BW-BCwqe25T.cjs +2 -0
- package/dist/chunks/chunk-5PVQY5BW-DVKx7m4a.mjs +1122 -0
- package/dist/chunks/chunk-67CJDMHE-BU_rrdV4.mjs +20 -0
- package/dist/chunks/chunk-67CJDMHE-VKwQfp25.cjs +1 -0
- package/dist/chunks/chunk-7N4EOEYR-BpM-QbmS.cjs +1 -0
- package/dist/chunks/chunk-7N4EOEYR-Cx6N1y9w.mjs +29 -0
- package/dist/chunks/chunk-AA7GKIK3-DCAy6uIg.mjs +24 -0
- package/dist/chunks/chunk-AA7GKIK3-RcaBhHiZ.cjs +1 -0
- package/dist/chunks/chunk-BSJP7CBP-BHijZ5f8.mjs +83 -0
- package/dist/chunks/chunk-BSJP7CBP-wiZ2ll8-.cjs +1 -0
- package/dist/chunks/chunk-CIAEETIT-0sn8TZoo.cjs +1 -0
- package/dist/chunks/chunk-CIAEETIT-BWpztfre.mjs +20 -0
- package/dist/chunks/chunk-EDXVE4YY-BJAhHZ3a.mjs +26 -0
- package/dist/chunks/chunk-EDXVE4YY-CXhcVSEI.cjs +1 -0
- package/dist/chunks/chunk-ENJZ2VHE-BgpbBBSF.cjs +10 -0
- package/dist/chunks/chunk-ENJZ2VHE-COIAdqL4.mjs +566 -0
- package/dist/chunks/chunk-FMBD7UC4-CUTvay8e.mjs +5 -0
- package/dist/chunks/chunk-FMBD7UC4-DCJ-fphu.cjs +15 -0
- package/dist/chunks/chunk-FOC6F5B3-3FOtyf3P.mjs +20 -0
- package/dist/chunks/chunk-FOC6F5B3-C2-FyqYn.cjs +1 -0
- package/dist/chunks/chunk-ICPOFSXX-BUWZvUuu.cjs +122 -0
- package/dist/chunks/chunk-ICPOFSXX-Dn5WbEeN.mjs +3290 -0
- package/dist/chunks/chunk-K5T4RW27-CX5gsk1T.cjs +94 -0
- package/dist/chunks/chunk-K5T4RW27-De7GqZCP.mjs +16372 -0
- package/dist/chunks/chunk-KGLVRYIC-Cwvjry7S.cjs +1 -0
- package/dist/chunks/chunk-KGLVRYIC-sDQUxLS7.mjs +20 -0
- package/dist/chunks/chunk-LIHQZDEY-BC8om0l2.cjs +1 -0
- package/dist/chunks/chunk-LIHQZDEY-BoY9X2Wj.mjs +55 -0
- package/dist/chunks/chunk-ORNJ4GCN-CYLjqcXc.mjs +25 -0
- package/dist/chunks/chunk-ORNJ4GCN-CoC7A1vn.cjs +1 -0
- package/dist/chunks/chunk-OYMX7WX6-Bbwq_g2w.mjs +2038 -0
- package/dist/chunks/chunk-OYMX7WX6-D3csU8-J.cjs +231 -0
- package/dist/chunks/chunk-QZHKN3VN-Bs3XaH0U.mjs +12 -0
- package/dist/chunks/chunk-QZHKN3VN-Db_x7kn8.cjs +1 -0
- package/dist/chunks/chunk-U2HBQHQK-CEwYxA8R.cjs +70 -0
- package/dist/chunks/chunk-U2HBQHQK-DLyzqElq.mjs +1875 -0
- package/dist/chunks/chunk-X2U36JSP-BY9JBwLQ.cjs +1 -0
- package/dist/chunks/chunk-X2U36JSP-UKGkP2m1.mjs +68 -0
- package/dist/chunks/chunk-XPW4576I-2i_ZgZLs.mjs +1146 -0
- package/dist/chunks/chunk-XPW4576I-Ym5mFsxv.cjs +32 -0
- package/dist/chunks/chunk-YZCP3GAM-C2GbOoUx.mjs +60 -0
- package/dist/chunks/chunk-YZCP3GAM-WMeXt5aH.cjs +1 -0
- package/dist/chunks/chunk-ZZ45TVLE-CeD1lNAB.cjs +1 -0
- package/dist/chunks/chunk-ZZ45TVLE-DyYus02Y.mjs +33 -0
- package/dist/chunks/classDiagram-6PBFFD2Q-DNHZ3qE5.mjs +30 -0
- package/dist/chunks/classDiagram-6PBFFD2Q-DWcC9USb.cjs +1 -0
- package/dist/chunks/classDiagram-v2-HSJHXN6E-BXKTiJNh.cjs +1 -0
- package/dist/chunks/classDiagram-v2-HSJHXN6E-GgfA5-jG.mjs +30 -0
- package/dist/chunks/clone-DeEumpiC.mjs +8 -0
- package/dist/chunks/clone-gX2HWen_.cjs +1 -0
- package/dist/chunks/constants-BYCpx4v_.cjs +457 -0
- package/dist/chunks/constants-Bhk7u_hm.mjs +3432 -0
- package/dist/chunks/cose-bilkent-S5V4N54A-BuQ-Gx1y.mjs +2246 -0
- package/dist/chunks/cose-bilkent-S5V4N54A-CdxjlgEx.cjs +1 -0
- package/dist/chunks/dagre-BVQ5RQE_.mjs +1483 -0
- package/dist/chunks/dagre-D9QEFKwC.cjs +1 -0
- package/dist/chunks/dagre-KV5264BT-BxQkkVxZ.mjs +298 -0
- package/dist/chunks/dagre-KV5264BT-Dz_FEBZU.cjs +4 -0
- package/dist/chunks/diagram-5BDNPKRD-Cf9AymAx.cjs +10 -0
- package/dist/chunks/diagram-5BDNPKRD-joiZwmh1.mjs +112 -0
- package/dist/chunks/diagram-G4DWMVQ6-3CAnipxw.cjs +24 -0
- package/dist/chunks/diagram-G4DWMVQ6-DrvbpYBX.mjs +546 -0
- package/dist/chunks/diagram-MMDJMWI5-B3CwY62T.mjs +234 -0
- package/dist/chunks/diagram-MMDJMWI5-DMrk0xwH.cjs +43 -0
- package/dist/chunks/diagram-TYMM5635-B3g66i1E.mjs +144 -0
- package/dist/chunks/diagram-TYMM5635-BAuYHtjV.cjs +24 -0
- package/dist/chunks/erDiagram-SMLLAGMA-4Ks-44BH.cjs +85 -0
- package/dist/chunks/erDiagram-SMLLAGMA-Bw6U_hHz.mjs +1712 -0
- package/dist/chunks/flowDiagram-DWJPFMVM-D2yMfIFs.mjs +4175 -0
- package/dist/chunks/flowDiagram-DWJPFMVM-O6dDtont.cjs +162 -0
- package/dist/chunks/ganttDiagram-T4ZO3ILL-D-ymktbJ.cjs +292 -0
- package/dist/chunks/ganttDiagram-T4ZO3ILL-SEs0Ez0p.mjs +3083 -0
- package/dist/chunks/gitGraph-7Q5UKJZL-BLhgGqhG.cjs +1 -0
- package/dist/chunks/gitGraph-7Q5UKJZL-DbRxS8Lo.mjs +3 -0
- package/dist/chunks/gitGraphDiagram-UUTBAWPF-BSuqMw-A.cjs +106 -0
- package/dist/chunks/gitGraphDiagram-UUTBAWPF-BpVIPN2N.mjs +792 -0
- package/dist/chunks/graphlib-C2L_nEcM.cjs +1 -0
- package/dist/chunks/graphlib-Cpp6Todw.mjs +225 -0
- package/dist/chunks/i18next-loader-BJAXtkt3.cjs +1 -0
- package/dist/chunks/i18next-loader-dnJtS6Nb.mjs +35 -0
- package/dist/chunks/info-OMHHGYJF-BRxQdcvB.mjs +3 -0
- package/dist/chunks/info-OMHHGYJF-Cb4wPKNP.cjs +1 -0
- package/dist/chunks/infoDiagram-42DDH7IO-BNAE_Dp2.cjs +2 -0
- package/dist/chunks/infoDiagram-42DDH7IO-JYmpv-Gn.mjs +29 -0
- package/dist/chunks/isEmpty-BYDpYNyM.cjs +1 -0
- package/dist/chunks/isEmpty-Bgy1eL0m.mjs +35 -0
- package/dist/chunks/ishikawaDiagram-UXIWVN3A-Ca_1igMn.cjs +70 -0
- package/dist/chunks/ishikawaDiagram-UXIWVN3A-ClkZz1Tc.mjs +719 -0
- package/dist/chunks/journeyDiagram-VCZTEJTY-BTzeo896.mjs +885 -0
- package/dist/chunks/journeyDiagram-VCZTEJTY-D69nfb5v.cjs +139 -0
- package/dist/chunks/kanban-definition-6JOO6SKY-BTSuFyjj.cjs +89 -0
- package/dist/chunks/kanban-definition-6JOO6SKY-C2Jk5rDA.mjs +980 -0
- package/dist/chunks/lightweight-i18n-T_Nc45AF.cjs +1 -0
- package/dist/chunks/lightweight-i18n-qpzXlOVm.mjs +344 -0
- package/dist/chunks/line-CjJKN63i.cjs +1 -0
- package/dist/chunks/line-zarcRAiW.mjs +34 -0
- package/dist/chunks/linear-CDUWrVHa.cjs +1 -0
- package/dist/chunks/linear-CXe29GGg.mjs +289 -0
- package/dist/chunks/mdast-util-math-BfFBcnFx.cjs +5 -0
- package/dist/chunks/mdast-util-math-CqPx3t0S.mjs +151 -0
- package/dist/chunks/mermaid-parser.core-BXANIhlc.mjs +57 -0
- package/dist/chunks/mermaid-parser.core-DMmP6uoD.cjs +3 -0
- package/dist/chunks/mermaid.core-A4e6ZJqs.mjs +977 -0
- package/dist/chunks/mermaid.core-C66G0J-z.cjs +10 -0
- package/dist/chunks/messages--BWLKiOP2.mjs +319 -0
- package/dist/chunks/messages--LI6Qp0h.mjs +319 -0
- package/dist/chunks/messages-4TiLLTpr2.cjs +1 -0
- package/dist/chunks/messages-7ul_s8GB2.mjs +319 -0
- package/dist/chunks/messages-8BZGqPD1.cjs +1 -0
- package/dist/chunks/messages-96ztlozp.cjs +1 -0
- package/dist/chunks/messages-B-_ZQLp5.mjs +319 -0
- package/dist/chunks/messages-B1YSYW3Y.cjs +1 -0
- package/dist/chunks/messages-B3E33lPt2.mjs +319 -0
- package/dist/chunks/messages-BABN8cuN.mjs +319 -0
- package/dist/chunks/messages-BDAXqxYw.cjs +1 -0
- package/dist/chunks/messages-BE0YZo6f.cjs +1 -0
- package/dist/chunks/messages-BIg9D7T52.cjs +1 -0
- package/dist/chunks/messages-BKtPvquH2.mjs +319 -0
- package/dist/chunks/messages-BMKq6Ps12.cjs +1 -0
- package/dist/chunks/messages-BMqvMau_2.mjs +319 -0
- package/dist/chunks/messages-BNmaVDtf.mjs +319 -0
- package/dist/chunks/messages-BRRMkfZY2.cjs +1 -0
- package/dist/chunks/messages-BUg0EGM6.cjs +1 -0
- package/dist/chunks/messages-BV88VXs-2.mjs +319 -0
- package/dist/chunks/messages-BVAjj_W_2.mjs +319 -0
- package/dist/chunks/messages-BWd6mmTm.mjs +319 -0
- package/dist/chunks/messages-BXce9Dbm.mjs +319 -0
- package/dist/chunks/messages-B_OU8dr_.mjs +319 -0
- package/dist/chunks/messages-B_VpqVFy.mjs +319 -0
- package/dist/chunks/messages-B_t9669l.mjs +319 -0
- package/dist/chunks/messages-Begh-7SQ.cjs +1 -0
- package/dist/chunks/messages-BfTeMiOT.cjs +1 -0
- package/dist/chunks/messages-BguYUD04.cjs +1 -0
- package/dist/chunks/messages-Bi5NKhkL.cjs +1 -0
- package/dist/chunks/messages-BliJJjNK2.cjs +1 -0
- package/dist/chunks/messages-BmSnovX9.cjs +1 -0
- package/dist/chunks/messages-BoZAdwRU2.mjs +319 -0
- package/dist/chunks/messages-Bp-PMdAJ.mjs +319 -0
- package/dist/chunks/messages-BphoNqXl2.mjs +319 -0
- package/dist/chunks/messages-Bs5HM4rw2.cjs +1 -0
- package/dist/chunks/messages-BtZSlvVR.cjs +1 -0
- package/dist/chunks/messages-Btg_N5Nj2.cjs +1 -0
- package/dist/chunks/messages-C67MLHmh.cjs +1 -0
- package/dist/chunks/messages-C6RXCX1D2.mjs +319 -0
- package/dist/chunks/messages-C6Zo4thu.mjs +319 -0
- package/dist/chunks/messages-C7QEUxQf2.cjs +1 -0
- package/dist/chunks/messages-CB-RDoMj2.cjs +1 -0
- package/dist/chunks/messages-CBOtPEE5.cjs +1 -0
- package/dist/chunks/messages-CBoKI_4k2.mjs +319 -0
- package/dist/chunks/messages-CCMMPgcH.mjs +319 -0
- package/dist/chunks/messages-CFvaU-9Q2.mjs +319 -0
- package/dist/chunks/messages-CHDxRwD8.mjs +319 -0
- package/dist/chunks/messages-CJWSRA8r.cjs +1 -0
- package/dist/chunks/messages-CJaj0WrV.mjs +319 -0
- package/dist/chunks/messages-CLnZAk7s.mjs +319 -0
- package/dist/chunks/messages-CNWWk9zU.cjs +1 -0
- package/dist/chunks/messages-CO4IPaU22.mjs +319 -0
- package/dist/chunks/messages-CQii-Hly.mjs +319 -0
- package/dist/chunks/messages-CSPoZeJd.cjs +1 -0
- package/dist/chunks/messages-CThWJOaj2.cjs +1 -0
- package/dist/chunks/messages-CWbag2W1.mjs +319 -0
- package/dist/chunks/messages-CWfPtitC.mjs +319 -0
- package/dist/chunks/messages-CYh8BT-U2.cjs +1 -0
- package/dist/chunks/messages-CZAwmrBN2.mjs +319 -0
- package/dist/chunks/messages-CcmzbJED2.mjs +319 -0
- package/dist/chunks/messages-Cdp2ao16.cjs +1 -0
- package/dist/chunks/messages-CeSGFPaX.mjs +319 -0
- package/dist/chunks/messages-CfmN_C_V2.cjs +1 -0
- package/dist/chunks/messages-CgTWiYXl.mjs +319 -0
- package/dist/chunks/messages-CiqFmj282.mjs +319 -0
- package/dist/chunks/messages-Cj1I1bdS.mjs +319 -0
- package/dist/chunks/messages-CktwPONk2.cjs +1 -0
- package/dist/chunks/messages-ClMbt_082.cjs +1 -0
- package/dist/chunks/messages-ClfpoVLB.cjs +1 -0
- package/dist/chunks/messages-CmcpUpmY2.cjs +1 -0
- package/dist/chunks/messages-CnNUiCOF2.cjs +1 -0
- package/dist/chunks/messages-Cq-tyBQ7.cjs +1 -0
- package/dist/chunks/messages-Cqs6tnMT.mjs +319 -0
- package/dist/chunks/messages-CrPQatEP.cjs +1 -0
- package/dist/chunks/messages-CtNhn2A72.cjs +1 -0
- package/dist/chunks/messages-Cw-JQsbB.cjs +1 -0
- package/dist/chunks/messages-CxLZNPP22.mjs +319 -0
- package/dist/chunks/messages-D2to7PFh.mjs +319 -0
- package/dist/chunks/messages-D7GNxw46.cjs +1 -0
- package/dist/chunks/messages-DDqbUQPS2.cjs +1 -0
- package/dist/chunks/messages-DIsfRggy.mjs +319 -0
- package/dist/chunks/messages-DLvqdeVe.mjs +319 -0
- package/dist/chunks/messages-DMukq8ei2.cjs +1 -0
- package/dist/chunks/messages-DOJ7TGKc.mjs +319 -0
- package/dist/chunks/messages-DPpKBEMV.mjs +319 -0
- package/dist/chunks/messages-DWDt4hEW.mjs +319 -0
- package/dist/chunks/messages-DYPc3t5L.cjs +1 -0
- package/dist/chunks/messages-DYRRi1JW.mjs +319 -0
- package/dist/chunks/messages-DYbP7_iL.cjs +1 -0
- package/dist/chunks/messages-D_gbD8W22.mjs +319 -0
- package/dist/chunks/messages-DaQ1XgNk.mjs +319 -0
- package/dist/chunks/messages-DjW1_-Ba2.mjs +319 -0
- package/dist/chunks/messages-Dop11yxi.mjs +319 -0
- package/dist/chunks/messages-DoyFY1Ye.mjs +319 -0
- package/dist/chunks/messages-DpjZ6YjX.cjs +1 -0
- package/dist/chunks/messages-DprfonW1.mjs +319 -0
- package/dist/chunks/messages-Dq8w46wu.cjs +1 -0
- package/dist/chunks/messages-DqbBTg1F2.mjs +319 -0
- package/dist/chunks/messages-DsGOj3A62.cjs +1 -0
- package/dist/chunks/messages-Dt6sbdaY.mjs +319 -0
- package/dist/chunks/messages-Dv3xqn-c.mjs +319 -0
- package/dist/chunks/messages-DwZCK3WR2.cjs +1 -0
- package/dist/chunks/messages-G-grLA6L2.cjs +1 -0
- package/dist/chunks/messages-HmyGBKiy2.cjs +1 -0
- package/dist/chunks/messages-IsKrH6md2.mjs +319 -0
- package/dist/chunks/messages-L1H9KlM8.cjs +1 -0
- package/dist/chunks/messages-OwCNaUA2.cjs +1 -0
- package/dist/chunks/messages-Q1fgq2tw.cjs +1 -0
- package/dist/chunks/messages-RLMDvD9N.mjs +319 -0
- package/dist/chunks/messages-SGrUP3jU2.mjs +319 -0
- package/dist/chunks/messages-TET2HqbJ.mjs +319 -0
- package/dist/chunks/messages-UR9AknuE.cjs +1 -0
- package/dist/chunks/messages-UXbrSqP4.mjs +319 -0
- package/dist/chunks/messages-UlQUIo4t.cjs +1 -0
- package/dist/chunks/messages-VO5bBaDw2.cjs +1 -0
- package/dist/chunks/messages-Vz-ouTEN.mjs +319 -0
- package/dist/chunks/messages-Z5hg0_Dz2.mjs +319 -0
- package/dist/chunks/messages-bBZDrpto2.mjs +319 -0
- package/dist/chunks/messages-ipwQdTtE.cjs +1 -0
- package/dist/chunks/messages-jXbN1DEs.mjs +319 -0
- package/dist/chunks/messages-kon7ablY2.cjs +1 -0
- package/dist/chunks/messages-oeTrLt0-.cjs +1 -0
- package/dist/chunks/messages-qga5_rrO.cjs +1 -0
- package/dist/chunks/messages-sEnNaZIo.cjs +1 -0
- package/dist/chunks/messages-szOBKu5g.cjs +1 -0
- package/dist/chunks/messages-tZ7nZ7qL.cjs +1 -0
- package/dist/chunks/messages-u_dR89Qy.mjs +319 -0
- package/dist/chunks/messages-wDo4f3f9.cjs +1 -0
- package/dist/chunks/messages-wxVdFEgz2.mjs +319 -0
- package/dist/chunks/messages-x3ljzuuQ2.cjs +1 -0
- package/dist/chunks/messages-x6wDbfws2.mjs +319 -0
- package/dist/chunks/messages-ygmjC_Dc.cjs +1 -0
- package/dist/chunks/messages-zPVJyoxM.cjs +1 -0
- package/dist/chunks/micromark-extension-math-Cm8w3ABm.cjs +1 -0
- package/dist/chunks/micromark-extension-math-cDSPzUWY.mjs +169 -0
- package/dist/chunks/mindmap-definition-QFDTVHPH-DLO594eM.cjs +96 -0
- package/dist/chunks/mindmap-definition-QFDTVHPH-QxqvL96A.mjs +1013 -0
- package/dist/chunks/notifier-CfO3Icvp.cjs +1 -0
- package/dist/chunks/notifier-DMdYq9FS.mjs +73 -0
- package/dist/chunks/ordinal-DgAmiD5I.mjs +65 -0
- package/dist/chunks/ordinal-mgpK7IL3.cjs +1 -0
- package/dist/chunks/packet-4T2RLAQJ-BQYK4Pey.cjs +1 -0
- package/dist/chunks/packet-4T2RLAQJ-BwgNXqij.mjs +3 -0
- package/dist/chunks/pie-ZZUOXDRM-BLh1-ocA.cjs +1 -0
- package/dist/chunks/pie-ZZUOXDRM-CrDtyZu4.mjs +3 -0
- package/dist/chunks/pieDiagram-DEJITSTG-CGduyUgA.mjs +179 -0
- package/dist/chunks/pieDiagram-DEJITSTG-Do5jGsL7.cjs +30 -0
- package/dist/chunks/prism-bash-OGjZLOVe.cjs +1 -0
- package/dist/chunks/prism-bash-oISNNULp.mjs +175 -0
- package/dist/chunks/prism-c-1g9CdJOp.cjs +1 -0
- package/dist/chunks/prism-c-MtM8JocP.mjs +54 -0
- package/dist/chunks/prism-cpp-CORR584T.cjs +1 -0
- package/dist/chunks/prism-cpp-DswQJFJz.mjs +63 -0
- package/dist/chunks/prism-csharp-BqZp_TTb.cjs +1 -0
- package/dist/chunks/prism-csharp-GIfQrsqe.mjs +236 -0
- package/dist/chunks/prism-css-BLyqeHZR.mjs +55 -0
- package/dist/chunks/prism-css-DmF38Kcs.cjs +1 -0
- package/dist/chunks/prism-dart-CFseeodJ.cjs +1 -0
- package/dist/chunks/prism-dart-DbCi1QVI.mjs +52 -0
- package/dist/chunks/prism-docker-BOsXo4aW.cjs +1 -0
- package/dist/chunks/prism-docker-CUCbqggk.mjs +75 -0
- package/dist/chunks/prism-go-DVHXGmKb.mjs +20 -0
- package/dist/chunks/prism-go-DsEyoP6D.cjs +1 -0
- package/dist/chunks/prism-graphql-DGEYZFbw.mjs +114 -0
- package/dist/chunks/prism-graphql-DqXh7GRP.cjs +1 -0
- package/dist/chunks/prism-java-CzQtfd6W.mjs +99 -0
- package/dist/chunks/prism-java-DQn4zrh0.cjs +1 -0
- package/dist/chunks/prism-javascript-CAkVOGaq.mjs +101 -0
- package/dist/chunks/prism-javascript-UQPp4ffL.cjs +1 -0
- package/dist/chunks/prism-json-B-63BF6R.cjs +1 -0
- package/dist/chunks/prism-json-BSGjg8pt.mjs +25 -0
- package/dist/chunks/prism-kotlin-D9r_epW6.mjs +64 -0
- package/dist/chunks/prism-kotlin-DmCIViWe.cjs +1 -0
- package/dist/chunks/prism-latex-Bcpg2uQr.cjs +1 -0
- package/dist/chunks/prism-latex-o70KNu9w.mjs +43 -0
- package/dist/chunks/prism-lua-7od8jpGg.mjs +17 -0
- package/dist/chunks/prism-lua-DyMxrgA_.cjs +1 -0
- package/dist/chunks/prism-markdown-BY8dZr_8.cjs +1 -0
- package/dist/chunks/prism-markdown-CI62y6qt.mjs +251 -0
- package/dist/chunks/prism-markup-DFqZi51m.mjs +116 -0
- package/dist/chunks/prism-markup-OdaHxDBn.cjs +1 -0
- package/dist/chunks/prism-markup-templating-Cnde-rJf.cjs +1 -0
- package/dist/chunks/prism-markup-templating-DTIDwO2f.mjs +39 -0
- package/dist/chunks/prism-php-BFUaOiLc.mjs +277 -0
- package/dist/chunks/prism-php-D8NgAYtH.cjs +1 -0
- package/dist/chunks/prism-python-CTRSlrPP.mjs +59 -0
- package/dist/chunks/prism-python-vAqxHcox.cjs +1 -0
- package/dist/chunks/prism-r-AA_ZuQPX.mjs +19 -0
- package/dist/chunks/prism-r-BsUW1w_m.cjs +1 -0
- package/dist/chunks/prism-ruby-BttDevO3.mjs +156 -0
- package/dist/chunks/prism-ruby-D7wGSPCx.cjs +1 -0
- package/dist/chunks/prism-rust-1wrW82hd.mjs +92 -0
- package/dist/chunks/prism-rust-C65Pn3Oc.cjs +1 -0
- package/dist/chunks/prism-scala-C26iL30s.mjs +43 -0
- package/dist/chunks/prism-scala-DuAsLUh6.cjs +1 -0
- package/dist/chunks/prism-sql-CSv-2hNx.mjs +29 -0
- package/dist/chunks/prism-sql-DHhl_Wd1.cjs +1 -0
- package/dist/chunks/prism-swift-2HH6IALG.cjs +1 -0
- package/dist/chunks/prism-swift-ik83oO-E.mjs +94 -0
- package/dist/chunks/prism-typescript-ChaS5gh3.mjs +38 -0
- package/dist/chunks/prism-typescript-Cuqi9QKv.cjs +1 -0
- package/dist/chunks/prism-yaml-BT2oArqa.cjs +1 -0
- package/dist/chunks/prism-yaml-YI3VZVAw.mjs +68 -0
- package/dist/chunks/quadrantDiagram-34T5L4WZ-BdwmsqYk.cjs +7 -0
- package/dist/chunks/quadrantDiagram-34T5L4WZ-BiqiWPbj.mjs +1960 -0
- package/dist/chunks/radar-PYXPWWZC-CYtB39az.mjs +3 -0
- package/dist/chunks/radar-PYXPWWZC-Drac9aGm.cjs +1 -0
- package/dist/chunks/requirementDiagram-MS252O5E-Cko4AhA2.mjs +2224 -0
- package/dist/chunks/requirementDiagram-MS252O5E-DBRLVWVl.cjs +84 -0
- package/dist/chunks/sankeyDiagram-XADWPNL6-BFWIr9AZ.mjs +909 -0
- package/dist/chunks/sankeyDiagram-XADWPNL6-Dq3Fi6gG.cjs +10 -0
- package/dist/chunks/sequenceDiagram-FGHM5R23-BKKZAG9O.cjs +157 -0
- package/dist/chunks/sequenceDiagram-FGHM5R23-DHFzzYeT.mjs +4181 -0
- package/dist/chunks/stateDiagram-FHFEXIEX-B1vJTyiJ.mjs +218 -0
- package/dist/chunks/stateDiagram-FHFEXIEX-DsHbgVAE.cjs +1 -0
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-DC206QSk.mjs +28 -0
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-DzkxV3pL.cjs +1 -0
- package/dist/chunks/timeline-definition-GMOUNBTQ-BlXvHIKp.mjs +1084 -0
- package/dist/chunks/timeline-definition-GMOUNBTQ-durCMWAX.cjs +120 -0
- package/dist/chunks/tools-Bc4e0xmz.mjs +13848 -0
- package/dist/chunks/tools-DaOdAh89.cjs +115 -0
- package/dist/chunks/treeView-SZITEDCU-BpLDxB8w.cjs +1 -0
- package/dist/chunks/treeView-SZITEDCU-DIbHFtMw.mjs +3 -0
- package/dist/chunks/treemap-W4RFUUIX-4t60SvLo.mjs +3 -0
- package/dist/chunks/treemap-W4RFUUIX-jpjSZokO.cjs +1 -0
- package/dist/chunks/vennDiagram-DHZGUBPP-BVxAvXiG.mjs +1876 -0
- package/dist/chunks/vennDiagram-DHZGUBPP-Dtpe6giP.cjs +34 -0
- package/dist/chunks/wardley-RL74JXVD-CBBTKC3H.cjs +1 -0
- package/dist/chunks/wardley-RL74JXVD-g5DNBeQ1.mjs +3 -0
- package/dist/chunks/wardleyDiagram-NUSXRM2D-BGORQqtQ.mjs +594 -0
- package/dist/chunks/wardleyDiagram-NUSXRM2D-ClsU-9PV.cjs +20 -0
- package/dist/chunks/xychartDiagram-5P7HB3ND-DplTzQI6.mjs +2017 -0
- package/dist/chunks/xychartDiagram-5P7HB3ND-EO18s7Fo.cjs +7 -0
- package/dist/full.cjs +1 -1
- package/dist/full.mjs +9 -9
- package/dist/locales.mjs +175 -68
- package/dist/markdown.cjs +2 -2
- package/dist/markdown.mjs +392 -384
- package/dist/messages-28LGzsNB.mjs +319 -0
- package/dist/messages-35X8GsGw2.mjs +319 -0
- package/dist/messages-5ygX-4B92.mjs +319 -0
- package/dist/messages-83AcZNii.mjs +319 -0
- package/dist/messages-B-OvX3Vz2.mjs +319 -0
- package/dist/messages-B56oJj_X2.mjs +319 -0
- package/dist/messages-B7peBJXJ2.mjs +319 -0
- package/dist/messages-BGwTNk0S2.mjs +319 -0
- package/dist/messages-BH-SS-wY.mjs +319 -0
- package/dist/messages-BPX8V6tu.mjs +319 -0
- package/dist/messages-BUp8P-0d.mjs +319 -0
- package/dist/messages-BX3WM02N2.mjs +319 -0
- package/dist/messages-BZrMZvRb2.mjs +319 -0
- package/dist/messages-B_0akf3T.mjs +319 -0
- package/dist/messages-BaE65Wtr.mjs +319 -0
- package/dist/messages-BdSGtvzM.mjs +319 -0
- package/dist/messages-BerXSWcD.mjs +319 -0
- package/dist/messages-BqKaz7yB2.mjs +319 -0
- package/dist/messages-BrqBJ6W_2.mjs +319 -0
- package/dist/messages-BvgGIpxE2.mjs +319 -0
- package/dist/messages-BxSe3rKx.mjs +319 -0
- package/dist/messages-ByD9AIJL2.mjs +319 -0
- package/dist/messages-CDJS_Tu2.mjs +319 -0
- package/dist/messages-CF9R29jb.mjs +319 -0
- package/dist/messages-CIbK29nM.mjs +319 -0
- package/dist/messages-CMD0tgb2.mjs +319 -0
- package/dist/messages-CMW0tO_d2.mjs +319 -0
- package/dist/messages-CMrYQJ5x2.mjs +319 -0
- package/dist/messages-CQZJnkss2.mjs +319 -0
- package/dist/messages-CRnolvNg.mjs +319 -0
- package/dist/messages-CS74u2hS2.mjs +319 -0
- package/dist/messages-CTxao0S32.mjs +319 -0
- package/dist/messages-CZl83L7T.mjs +319 -0
- package/dist/messages-C_kloJSr.mjs +319 -0
- package/dist/messages-Cfe_CPBW.mjs +319 -0
- package/dist/messages-Ch0oiQp5.mjs +319 -0
- package/dist/messages-Cigiz7tI.mjs +319 -0
- package/dist/messages-Cjac781Z.mjs +319 -0
- package/dist/messages-CqVFa1ZA.mjs +319 -0
- package/dist/messages-CwDgZL5-.mjs +319 -0
- package/dist/messages-Czd64cAx.mjs +319 -0
- package/dist/messages-CzxMz1wI.mjs +319 -0
- package/dist/messages-D2SkVxgV.mjs +319 -0
- package/dist/messages-D4ZsN52E2.mjs +319 -0
- package/dist/messages-DG0aBs1m2.mjs +319 -0
- package/dist/messages-DIkQAMxZ2.mjs +319 -0
- package/dist/messages-DJBc5_b_2.mjs +319 -0
- package/dist/messages-DN8oOcrS.mjs +319 -0
- package/dist/messages-DV5yhL0q.mjs +319 -0
- package/dist/messages-DVI1iDTn2.mjs +319 -0
- package/dist/messages-DVzrCNrY.mjs +319 -0
- package/dist/messages-DXwJOr-H2.mjs +319 -0
- package/dist/messages-D_edVQrv.mjs +319 -0
- package/dist/messages-DbODRieP.mjs +319 -0
- package/dist/messages-KMQrhAva.mjs +319 -0
- package/dist/messages-L4NsHX-g.mjs +319 -0
- package/dist/messages-PPuF4CRy.mjs +319 -0
- package/dist/messages-UTJEPSiL.mjs +319 -0
- package/dist/messages-Wa5EXypv2.mjs +319 -0
- package/dist/messages-Wfxn9jZh.mjs +319 -0
- package/dist/messages-XieI4326.mjs +319 -0
- package/dist/messages-ZASZzduy.mjs +319 -0
- package/dist/messages-Z_3X1FJJ2.mjs +319 -0
- package/dist/messages-huyV3ICu.mjs +319 -0
- package/dist/messages-rd6zBwaX2.mjs +319 -0
- package/dist/messages-sBpTj74Q.mjs +319 -0
- package/dist/messages-twD0eDdc.mjs +319 -0
- package/dist/react.cjs +1 -1
- package/dist/react.mjs +25 -26
- package/dist/tools.cjs +1 -1
- package/dist/tools.mjs +3 -3
- package/dist/vendor.LICENSE.txt +141 -899
- package/package.json +12 -6
- package/src/components/constants/data-attributes.ts +2 -0
- package/src/components/dom.ts +4 -2
- package/src/components/i18n/locales/am/messages.json +109 -1
- package/src/components/i18n/locales/ar/messages.json +109 -1
- package/src/components/i18n/locales/az/messages.json +109 -1
- package/src/components/i18n/locales/bg/messages.json +109 -1
- package/src/components/i18n/locales/bn/messages.json +109 -1
- package/src/components/i18n/locales/bs/messages.json +109 -1
- package/src/components/i18n/locales/cs/messages.json +109 -1
- package/src/components/i18n/locales/da/messages.json +109 -1
- package/src/components/i18n/locales/de/messages.json +110 -2
- package/src/components/i18n/locales/dv/messages.json +109 -1
- package/src/components/i18n/locales/el/messages.json +109 -1
- package/src/components/i18n/locales/en/messages.json +108 -1
- package/src/components/i18n/locales/es/messages.json +109 -1
- package/src/components/i18n/locales/et/messages.json +109 -1
- package/src/components/i18n/locales/fa/messages.json +109 -1
- package/src/components/i18n/locales/fi/messages.json +109 -1
- package/src/components/i18n/locales/fil/messages.json +109 -1
- package/src/components/i18n/locales/fr/messages.json +110 -2
- package/src/components/i18n/locales/gu/messages.json +109 -1
- package/src/components/i18n/locales/he/messages.json +109 -1
- package/src/components/i18n/locales/hi/messages.json +109 -1
- package/src/components/i18n/locales/hr/messages.json +109 -1
- package/src/components/i18n/locales/hu/messages.json +109 -1
- package/src/components/i18n/locales/hy/messages.json +109 -1
- package/src/components/i18n/locales/id/messages.json +109 -1
- package/src/components/i18n/locales/it/messages.json +109 -1
- package/src/components/i18n/locales/ja/messages.json +109 -1
- package/src/components/i18n/locales/ka/messages.json +109 -1
- package/src/components/i18n/locales/km/messages.json +109 -1
- package/src/components/i18n/locales/kn/messages.json +109 -1
- package/src/components/i18n/locales/ko/messages.json +109 -1
- package/src/components/i18n/locales/ku/messages.json +109 -1
- package/src/components/i18n/locales/lo/messages.json +109 -1
- package/src/components/i18n/locales/lt/messages.json +109 -1
- package/src/components/i18n/locales/lv/messages.json +109 -1
- package/src/components/i18n/locales/mk/messages.json +109 -1
- package/src/components/i18n/locales/ml/messages.json +109 -1
- package/src/components/i18n/locales/mn/messages.json +109 -1
- package/src/components/i18n/locales/mr/messages.json +109 -1
- package/src/components/i18n/locales/ms/messages.json +109 -1
- package/src/components/i18n/locales/my/messages.json +109 -1
- package/src/components/i18n/locales/ne/messages.json +109 -1
- package/src/components/i18n/locales/nl/messages.json +110 -2
- package/src/components/i18n/locales/no/messages.json +109 -1
- package/src/components/i18n/locales/pa/messages.json +109 -1
- package/src/components/i18n/locales/pl/messages.json +109 -1
- package/src/components/i18n/locales/ps/messages.json +109 -1
- package/src/components/i18n/locales/pt/messages.json +109 -1
- package/src/components/i18n/locales/ro/messages.json +109 -1
- package/src/components/i18n/locales/ru/messages.json +109 -1
- package/src/components/i18n/locales/sd/messages.json +109 -1
- package/src/components/i18n/locales/si/messages.json +109 -1
- package/src/components/i18n/locales/sk/messages.json +109 -1
- package/src/components/i18n/locales/sl/messages.json +109 -1
- package/src/components/i18n/locales/sq/messages.json +109 -1
- package/src/components/i18n/locales/sr/messages.json +109 -1
- package/src/components/i18n/locales/sv/messages.json +109 -1
- package/src/components/i18n/locales/sw/messages.json +109 -1
- package/src/components/i18n/locales/ta/messages.json +109 -1
- package/src/components/i18n/locales/te/messages.json +109 -1
- package/src/components/i18n/locales/th/messages.json +109 -1
- package/src/components/i18n/locales/tr/messages.json +109 -1
- package/src/components/i18n/locales/ug/messages.json +109 -1
- package/src/components/i18n/locales/uk/messages.json +109 -1
- package/src/components/i18n/locales/ur/messages.json +109 -1
- package/src/components/i18n/locales/vi/messages.json +109 -1
- package/src/components/i18n/locales/yi/messages.json +109 -1
- package/src/components/i18n/locales/zh/messages.json +109 -1
- package/src/components/icons/index.ts +59 -0
- package/src/components/inline-tools/inline-tool-code.ts +1 -1
- package/src/components/modules/api/toolbar.ts +6 -4
- package/src/components/modules/blockEvents/index.ts +9 -0
- package/src/components/modules/blockManager/operations.ts +14 -1
- package/src/components/modules/drag/DragController.ts +24 -3
- package/src/components/modules/paste/handlers/files-handler.ts +41 -4
- package/src/components/modules/paste/index.ts +5 -1
- package/src/components/modules/paste/tool-registry.ts +22 -12
- package/src/components/modules/toolbar/blockSettings.ts +14 -2
- package/src/components/modules/toolbar/index.ts +49 -16
- package/src/components/modules/toolbar/inline/selection-validator.ts +17 -0
- package/src/components/modules/toolbar/plus-button.ts +4 -2
- package/src/components/modules/toolbar/positioning.ts +27 -0
- package/src/components/modules/toolbar/settings-toggler.ts +16 -5
- package/src/components/modules/toolbar/tooltip.ts +59 -15
- package/src/components/modules/ui.ts +23 -8
- package/src/components/ui/toolbox.ts +92 -7
- package/src/components/utils/data-model-transform.ts +71 -1
- package/src/components/utils/popover/components/popover-item/popover-item-default/popover-item-default.const.ts +5 -4
- package/src/components/utils/popover/components/popover-item/popover-item-default/popover-item-default.ts +1 -0
- package/src/components/utils/popover/components/popover-item/popover-item-separator/popover-item-separator.const.ts +1 -1
- package/src/components/utils/popover/components/search-input/search-input.const.ts +3 -3
- package/src/components/utils/popover/popover-abstract.ts +137 -2
- package/src/components/utils/popover/popover-desktop.ts +260 -14
- package/src/components/utils/popover/popover-inline.ts +3 -2
- package/src/components/utils/popover/popover-nested-position.ts +132 -0
- package/src/components/utils/popover/popover-position.ts +46 -5
- package/src/components/utils/popover/popover.const.ts +6 -3
- package/src/components/utils/tooltip.ts +52 -8
- package/src/components/utils/top-layer.ts +137 -0
- package/src/playground/block-states-gallery.ts +123 -0
- package/src/playground/icon-gallery.ts +346 -0
- package/src/styles/checklist.css +70 -0
- package/src/styles/colors.css +666 -0
- package/src/styles/database.css +1176 -0
- package/src/styles/emoji-picker.css +58 -0
- package/src/styles/fonts.css +33 -0
- package/src/styles/image.css +1111 -0
- package/src/styles/isolation.css +204 -0
- package/src/styles/keyframes.css +62 -0
- package/src/styles/main.css +28 -2566
- package/src/styles/popover-animation.css +34 -0
- package/src/styles/preflight.css +283 -0
- package/src/styles/slash-search.css +52 -0
- package/src/styles/tables.css +154 -0
- package/src/styles/tokens.css +127 -0
- package/src/tools/callout/emoji-picker/index.ts +4 -2
- package/src/tools/code/code-keyboard.ts +70 -8
- package/src/tools/code/constants.ts +3 -9
- package/src/tools/code/dom-builder.ts +5 -1
- package/src/tools/code/index.ts +185 -25
- package/src/tools/code/language-detector.ts +47 -52
- package/src/tools/code/prism-applier.ts +183 -0
- package/src/tools/code/prism-loader.ts +197 -0
- package/src/tools/database/database-board-view.ts +3 -1
- package/src/tools/image/alt-popover.css +42 -0
- package/src/tools/image/alt-popover.ts +104 -0
- package/src/tools/image/constants.ts +25 -0
- package/src/tools/image/crop-editor.css +513 -0
- package/src/tools/image/crop-editor.ts +331 -0
- package/src/tools/image/crop-math.ts +117 -0
- package/src/tools/image/crop-modal.css +105 -0
- package/src/tools/image/crop-modal.ts +92 -0
- package/src/tools/image/empty-state.ts +407 -0
- package/src/tools/image/error-state.ts +69 -0
- package/src/tools/image/errors.ts +18 -0
- package/src/tools/image/i18n.ts +8 -0
- package/src/tools/image/index.ts +755 -0
- package/src/tools/image/resizer.ts +119 -0
- package/src/tools/image/spring.ts +16 -0
- package/src/tools/image/ui.ts +921 -0
- package/src/tools/image/uploader.ts +61 -0
- package/src/tools/image/uploading-state.ts +117 -0
- package/src/tools/index.ts +2 -0
- package/src/tools/toggle/constants.ts +3 -1
- package/src/types-internal/prismjs-components.d.ts +9 -0
- package/types/api/toolbar.d.ts +14 -1
- package/types/configs/blok-config.d.ts +24 -0
- package/types/tools/image.d.ts +72 -0
- package/types/utils/popover/popover.d.ts +27 -0
- package/dist/chunks/_basePickBy-6gOwWeg0.mjs +0 -166
- package/dist/chunks/_basePickBy-mUHvTE6c.cjs +0 -1
- package/dist/chunks/_baseUniq-BP5sM8qF.cjs +0 -1
- package/dist/chunks/_baseUniq-BcOWmEX6.mjs +0 -682
- package/dist/chunks/arc-kVpio4JL.mjs +0 -80
- package/dist/chunks/arc-lSzOinJz.cjs +0 -1
- package/dist/chunks/architecture-YZFGNWBL-BFcrDSEW.mjs +0 -3
- package/dist/chunks/architecture-YZFGNWBL-D91d5pcl.cjs +0 -1
- package/dist/chunks/architectureDiagram-Q4EWVU46-CN6p4Aji.mjs +0 -4066
- package/dist/chunks/architectureDiagram-Q4EWVU46-CyW5N5Ic.cjs +0 -36
- package/dist/chunks/blockDiagram-DXYQGD6D-BvZWa5Rv.mjs +0 -3074
- package/dist/chunks/blockDiagram-DXYQGD6D-DmhBCLgd.cjs +0 -132
- package/dist/chunks/blok-CNEP3LpI.cjs +0 -16
- package/dist/chunks/blok-DNvzyOYn.mjs +0 -13679
- package/dist/chunks/c-CQrSye6K.mjs +0 -5
- package/dist/chunks/c-DNJHkQXQ.cjs +0 -1
- package/dist/chunks/c4Diagram-AHTNJAMY-Cmc2PsEs.mjs +0 -2956
- package/dist/chunks/c4Diagram-AHTNJAMY-DU2IYTXY.cjs +0 -10
- package/dist/chunks/ccount-B7is2MU0.mjs +0 -10
- package/dist/chunks/ccount-DtzbJUOh.cjs +0 -1
- package/dist/chunks/channel-BTWFNzkv.mjs +0 -5
- package/dist/chunks/channel-BqhnS5zl.cjs +0 -1
- package/dist/chunks/chunk-2KRD3SAO-COfwt0om.cjs +0 -1
- package/dist/chunks/chunk-2KRD3SAO-DWLzBIZw.mjs +0 -20
- package/dist/chunks/chunk-336JU56O-CqWDeAp1.cjs +0 -1
- package/dist/chunks/chunk-336JU56O-DbaX7hyp.mjs +0 -49
- package/dist/chunks/chunk-426QAEUC-MjtXwzdI.cjs +0 -1
- package/dist/chunks/chunk-426QAEUC-pmH9mm_X.mjs +0 -13
- package/dist/chunks/chunk-4BX2VUAB-B1LZI9QZ.mjs +0 -19
- package/dist/chunks/chunk-4BX2VUAB-Zs4zJRk9.cjs +0 -1
- package/dist/chunks/chunk-4TB4RGXK-BC8qRYSD.mjs +0 -3250
- package/dist/chunks/chunk-4TB4RGXK-Bq0teBqe.cjs +0 -206
- package/dist/chunks/chunk-55IACEB6-CaLO8kWA.mjs +0 -8
- package/dist/chunks/chunk-55IACEB6-DyTTYuc2.cjs +0 -1
- package/dist/chunks/chunk-5FUZZQ4R-6rlcIGG-.cjs +0 -62
- package/dist/chunks/chunk-5FUZZQ4R-DAWdfx4J.mjs +0 -3786
- package/dist/chunks/chunk-5PVQY5BW-7Voh8aPS.mjs +0 -1122
- package/dist/chunks/chunk-5PVQY5BW-DmATt7Fz.cjs +0 -2
- package/dist/chunks/chunk-67CJDMHE-DSEGOn_f.mjs +0 -20
- package/dist/chunks/chunk-67CJDMHE-zWcmgvwZ.cjs +0 -1
- package/dist/chunks/chunk-7N4EOEYR-CAuNhdG9.cjs +0 -1
- package/dist/chunks/chunk-7N4EOEYR-CnSg1Hfu.mjs +0 -29
- package/dist/chunks/chunk-AA7GKIK3-BmatWFnp.mjs +0 -24
- package/dist/chunks/chunk-AA7GKIK3-YMbh5HEs.cjs +0 -1
- package/dist/chunks/chunk-BSJP7CBP-BtFfqv7R.mjs +0 -83
- package/dist/chunks/chunk-BSJP7CBP-CjkEoJDh.cjs +0 -1
- package/dist/chunks/chunk-CIAEETIT-BP9BiKe5.cjs +0 -1
- package/dist/chunks/chunk-CIAEETIT-nVgPUEW1.mjs +0 -20
- package/dist/chunks/chunk-EDXVE4YY-Bw1v2mUF.cjs +0 -1
- package/dist/chunks/chunk-EDXVE4YY-e7599cf4.mjs +0 -26
- package/dist/chunks/chunk-ENJZ2VHE-9fAN50L-.cjs +0 -10
- package/dist/chunks/chunk-ENJZ2VHE-DaMNdqfV.mjs +0 -566
- package/dist/chunks/chunk-FMBD7UC4-CH_SSwhS.cjs +0 -15
- package/dist/chunks/chunk-FMBD7UC4-xT5c0WSd.mjs +0 -5
- package/dist/chunks/chunk-FOC6F5B3-AxSG6qaj.mjs +0 -20
- package/dist/chunks/chunk-FOC6F5B3-ScFIigAO.cjs +0 -1
- package/dist/chunks/chunk-ICPOFSXX-DQ4NxQTM.cjs +0 -122
- package/dist/chunks/chunk-ICPOFSXX-DbL0YBQf.mjs +0 -3290
- package/dist/chunks/chunk-K5T4RW27-BdGvq1o8.cjs +0 -94
- package/dist/chunks/chunk-K5T4RW27-CYdwJMQV.mjs +0 -16372
- package/dist/chunks/chunk-KGLVRYIC-BwOmLwqF.mjs +0 -20
- package/dist/chunks/chunk-KGLVRYIC-uzPiXgAg.cjs +0 -1
- package/dist/chunks/chunk-LIHQZDEY-ChgbfPTz.cjs +0 -1
- package/dist/chunks/chunk-LIHQZDEY-Csx8-523.mjs +0 -55
- package/dist/chunks/chunk-ORNJ4GCN-CCDHRflI.mjs +0 -25
- package/dist/chunks/chunk-ORNJ4GCN-HF28XIop.cjs +0 -1
- package/dist/chunks/chunk-OYMX7WX6-BAoDgMPF.mjs +0 -2038
- package/dist/chunks/chunk-OYMX7WX6-CGUpemDb.cjs +0 -231
- package/dist/chunks/chunk-QZHKN3VN-D1myzhE_.mjs +0 -12
- package/dist/chunks/chunk-QZHKN3VN-d_ESXyai.cjs +0 -1
- package/dist/chunks/chunk-U2HBQHQK-BXyrI_xP.mjs +0 -1875
- package/dist/chunks/chunk-U2HBQHQK-D62A_XCV.cjs +0 -70
- package/dist/chunks/chunk-X2U36JSP-BEHpYlmW.cjs +0 -1
- package/dist/chunks/chunk-X2U36JSP-CXhWYelJ.mjs +0 -68
- package/dist/chunks/chunk-XPW4576I-BidQL50C.cjs +0 -32
- package/dist/chunks/chunk-XPW4576I-DOztVf6t.mjs +0 -1146
- package/dist/chunks/chunk-YZCP3GAM-DrkjtME-.mjs +0 -60
- package/dist/chunks/chunk-YZCP3GAM-DuLQPyT4.cjs +0 -1
- package/dist/chunks/chunk-ZZ45TVLE-CSFFLvxb.mjs +0 -33
- package/dist/chunks/chunk-ZZ45TVLE-CZOUDLGO.cjs +0 -1
- package/dist/chunks/classDiagram-6PBFFD2Q-Ci3S9iu3.mjs +0 -30
- package/dist/chunks/classDiagram-6PBFFD2Q-GDkPRBlp.cjs +0 -1
- package/dist/chunks/classDiagram-v2-HSJHXN6E-B4vt694Q.cjs +0 -1
- package/dist/chunks/classDiagram-v2-HSJHXN6E-BkaFKbgJ.mjs +0 -30
- package/dist/chunks/clone-WSLD7bVs.mjs +0 -8
- package/dist/chunks/clone-_XTzxdN3.cjs +0 -1
- package/dist/chunks/constants-DJjFgioo.cjs +0 -451
- package/dist/chunks/constants-DMsOCPcF.mjs +0 -3268
- package/dist/chunks/core-C8BHLAAO.cjs +0 -12
- package/dist/chunks/core-D2KrVz4a.mjs +0 -4501
- package/dist/chunks/cose-bilkent-S5V4N54A-BXBidSxC.mjs +0 -2246
- package/dist/chunks/cose-bilkent-S5V4N54A-RkR02HV4.cjs +0 -1
- package/dist/chunks/cpp-DVBevX-J.cjs +0 -1
- package/dist/chunks/cpp-DnMQuZPn.mjs +0 -16
- package/dist/chunks/csharp-ByiKf6DR.mjs +0 -3
- package/dist/chunks/csharp-CHUT4JOq.cjs +0 -1
- package/dist/chunks/css-BqsWMbBt.mjs +0 -3
- package/dist/chunks/css-QEheyxtB.cjs +0 -1
- package/dist/chunks/dagre-C7z2UZ4M.mjs +0 -1483
- package/dist/chunks/dagre-KV5264BT-B5pZgbkN.cjs +0 -4
- package/dist/chunks/dagre-KV5264BT-Ct6qUqKI.mjs +0 -298
- package/dist/chunks/dagre-VHP8Ngkv.cjs +0 -1
- package/dist/chunks/dart-aYsezAEv.mjs +0 -3
- package/dist/chunks/dart-jPH5d8ma.cjs +0 -1
- package/dist/chunks/diagram-5BDNPKRD-B9hNG7ht.mjs +0 -112
- package/dist/chunks/diagram-5BDNPKRD-C1llOHQP.cjs +0 -10
- package/dist/chunks/diagram-G4DWMVQ6-9_YOaVXe.mjs +0 -546
- package/dist/chunks/diagram-G4DWMVQ6-CLdEGHkn.cjs +0 -24
- package/dist/chunks/diagram-MMDJMWI5-CnbiCUM3.cjs +0 -43
- package/dist/chunks/diagram-MMDJMWI5-DmStUoNk.mjs +0 -234
- package/dist/chunks/diagram-TYMM5635-BtMB4AKf.cjs +0 -24
- package/dist/chunks/diagram-TYMM5635-DmrkkW85.mjs +0 -144
- package/dist/chunks/dockerfile-1GBIWF66.mjs +0 -3
- package/dist/chunks/dockerfile-B2jMQOes.cjs +0 -1
- package/dist/chunks/engine-javascript-CYa8VRAu.mjs +0 -2373
- package/dist/chunks/engine-javascript-HHRWd9yA.cjs +0 -141
- package/dist/chunks/erDiagram-SMLLAGMA-5vkZ5DwJ.mjs +0 -1712
- package/dist/chunks/erDiagram-SMLLAGMA-luvZB3lF.cjs +0 -85
- package/dist/chunks/flowDiagram-DWJPFMVM-BpYbAeYP.cjs +0 -162
- package/dist/chunks/flowDiagram-DWJPFMVM-CGTiQBd7.mjs +0 -4175
- package/dist/chunks/ganttDiagram-T4ZO3ILL-BNtXyM0I.mjs +0 -3083
- package/dist/chunks/ganttDiagram-T4ZO3ILL-BaWZufgI.cjs +0 -292
- package/dist/chunks/gitGraph-7Q5UKJZL-Ds_Z9h4o.cjs +0 -1
- package/dist/chunks/gitGraph-7Q5UKJZL-DxMmuJIv.mjs +0 -3
- package/dist/chunks/gitGraphDiagram-UUTBAWPF-CmQR-xZp.mjs +0 -792
- package/dist/chunks/gitGraphDiagram-UUTBAWPF-DjMU1Vyg.cjs +0 -106
- package/dist/chunks/go-4mRqLTld.mjs +0 -3
- package/dist/chunks/go-BX-cNLGO.cjs +0 -1
- package/dist/chunks/graphlib-BfwqhpXp.mjs +0 -225
- package/dist/chunks/graphlib-CYv_-0LK.cjs +0 -1
- package/dist/chunks/graphql-4Htarzhp.mjs +0 -11
- package/dist/chunks/graphql-BnxAS09v.cjs +0 -1
- package/dist/chunks/html-CAN0GHkJ.cjs +0 -1
- package/dist/chunks/html-DW39yhuS.mjs +0 -10
- package/dist/chunks/i18next-loader-CyDs2NKf.mjs +0 -35
- package/dist/chunks/i18next-loader-cGwOOjK3.cjs +0 -1
- package/dist/chunks/info-OMHHGYJF-ChWZqC0a.mjs +0 -3
- package/dist/chunks/info-OMHHGYJF-u0RRQ9Uo.cjs +0 -1
- package/dist/chunks/infoDiagram-42DDH7IO-BbV_tozh.mjs +0 -29
- package/dist/chunks/infoDiagram-42DDH7IO-DOYkYMWg.cjs +0 -2
- package/dist/chunks/isEmpty-BHdznGlG.cjs +0 -1
- package/dist/chunks/isEmpty-jlCmuYeg.mjs +0 -35
- package/dist/chunks/ishikawaDiagram-UXIWVN3A-CbqoivFu.cjs +0 -70
- package/dist/chunks/ishikawaDiagram-UXIWVN3A-DJBG3b-A.mjs +0 -719
- package/dist/chunks/java-DD_iwrM-.mjs +0 -5
- package/dist/chunks/java-O-rzZ2Bn.cjs +0 -1
- package/dist/chunks/javascript-CJBlE5PB.mjs +0 -3
- package/dist/chunks/javascript-z9G2vOAZ.cjs +0 -1
- package/dist/chunks/journeyDiagram-VCZTEJTY-B5Peb7wS.cjs +0 -139
- package/dist/chunks/journeyDiagram-VCZTEJTY-BdMsFn3r.mjs +0 -885
- package/dist/chunks/json-C_epQRuA.cjs +0 -1
- package/dist/chunks/json-yRGZVu2_.mjs +0 -3
- package/dist/chunks/kanban-definition-6JOO6SKY-CwmSo6Ve.cjs +0 -89
- package/dist/chunks/kanban-definition-6JOO6SKY-ncNaxcxH.mjs +0 -980
- package/dist/chunks/kotlin-BmkhKZGf.mjs +0 -3
- package/dist/chunks/kotlin-Dj7KFgV1.cjs +0 -1
- package/dist/chunks/latex-BeVX0E4Z.mjs +0 -5
- package/dist/chunks/latex-u7qVP95p.cjs +0 -1
- package/dist/chunks/lightweight-i18n-Bb_VS9v5.mjs +0 -237
- package/dist/chunks/lightweight-i18n-CGBjC2TJ.cjs +0 -1
- package/dist/chunks/line-B7XG48Uf.cjs +0 -1
- package/dist/chunks/line-CWJNfvdn.mjs +0 -34
- package/dist/chunks/linear-BU4OjSPS.mjs +0 -289
- package/dist/chunks/linear-D5j5Vgij.cjs +0 -1
- package/dist/chunks/lua-6ceNckPi.cjs +0 -1
- package/dist/chunks/lua-CPnWrc7C.mjs +0 -5
- package/dist/chunks/markdown-DSiOSAsn.mjs +0 -3
- package/dist/chunks/markdown-Vce1p-mO.cjs +0 -1
- package/dist/chunks/mdast-util-math-B9OHoBuN.cjs +0 -5
- package/dist/chunks/mdast-util-math-D42zbZda.mjs +0 -151
- package/dist/chunks/mermaid-C2y_3PIg.mjs +0 -3
- package/dist/chunks/mermaid-Cu5vPKfS.cjs +0 -1
- package/dist/chunks/mermaid-parser.core-BrZQFEht.cjs +0 -3
- package/dist/chunks/mermaid-parser.core-DBhkcRo7.mjs +0 -57
- package/dist/chunks/mermaid.core-GiTRPJLF.cjs +0 -10
- package/dist/chunks/mermaid.core-uSzF9nF1.mjs +0 -977
- package/dist/chunks/messages--CbdZY2w.cjs +0 -1
- package/dist/chunks/messages--c74ihtM.mjs +0 -212
- package/dist/chunks/messages-041mNyU42.mjs +0 -212
- package/dist/chunks/messages-1hpCmcb5.cjs +0 -1
- package/dist/chunks/messages-44SP7ajI.mjs +0 -212
- package/dist/chunks/messages-4_3WFJMy2.cjs +0 -1
- package/dist/chunks/messages-7NvouWKA2.mjs +0 -212
- package/dist/chunks/messages-ADxG1iWK2.cjs +0 -1
- package/dist/chunks/messages-AnuHiDPc2.mjs +0 -212
- package/dist/chunks/messages-B1V7UT9I.mjs +0 -212
- package/dist/chunks/messages-B2Q9NH4D.mjs +0 -212
- package/dist/chunks/messages-B3MONaxw2.cjs +0 -1
- package/dist/chunks/messages-B3tNgyxG2.cjs +0 -1
- package/dist/chunks/messages-B6j77WNV2.mjs +0 -212
- package/dist/chunks/messages-B91FdwB0.cjs +0 -1
- package/dist/chunks/messages-B9igXgiw.cjs +0 -1
- package/dist/chunks/messages-BB1xM_oB.cjs +0 -1
- package/dist/chunks/messages-BEV0lzGv2.mjs +0 -212
- package/dist/chunks/messages-BG749_88.mjs +0 -212
- package/dist/chunks/messages-BGZLiYrQ.cjs +0 -1
- package/dist/chunks/messages-BGpGj8nJ2.mjs +0 -212
- package/dist/chunks/messages-BK6gK3wu.cjs +0 -1
- package/dist/chunks/messages-BKmAFG9Z.cjs +0 -1
- package/dist/chunks/messages-BMVJq-1T.cjs +0 -1
- package/dist/chunks/messages-BMsqJNz0.cjs +0 -1
- package/dist/chunks/messages-BNYDShPm2.mjs +0 -212
- package/dist/chunks/messages-BSVhckNg.cjs +0 -1
- package/dist/chunks/messages-BUaHDggs.cjs +0 -1
- package/dist/chunks/messages-BUaJv5qS.cjs +0 -1
- package/dist/chunks/messages-BW--wNis.mjs +0 -212
- package/dist/chunks/messages-BXcSH14N.cjs +0 -1
- package/dist/chunks/messages-BYOYrUOu.cjs +0 -1
- package/dist/chunks/messages-BYSE1Iq2.cjs +0 -1
- package/dist/chunks/messages-B_Mqw9Dl2.mjs +0 -212
- package/dist/chunks/messages-Bb225KE6.cjs +0 -1
- package/dist/chunks/messages-BbYwT3FH2.mjs +0 -212
- package/dist/chunks/messages-Bda8jwos2.mjs +0 -212
- package/dist/chunks/messages-BdpFAZGZ.mjs +0 -212
- package/dist/chunks/messages-BiDR95AW.cjs +0 -1
- package/dist/chunks/messages-BkAoxm6t.cjs +0 -1
- package/dist/chunks/messages-BmNLNUz_.mjs +0 -212
- package/dist/chunks/messages-BnGtg6t4.mjs +0 -212
- package/dist/chunks/messages-BnXkEkD_.mjs +0 -212
- package/dist/chunks/messages-BpUasRQ3.cjs +0 -1
- package/dist/chunks/messages-BwtU06Ax.mjs +0 -212
- package/dist/chunks/messages-BxV8K7y42.cjs +0 -1
- package/dist/chunks/messages-Bxhns4Ui.cjs +0 -1
- package/dist/chunks/messages-ByRcwLIO.mjs +0 -212
- package/dist/chunks/messages-C0sxGmLV2.cjs +0 -1
- package/dist/chunks/messages-C5nqE8O42.cjs +0 -1
- package/dist/chunks/messages-C7il6l-S.cjs +0 -1
- package/dist/chunks/messages-CFyGEGXM2.cjs +0 -1
- package/dist/chunks/messages-CHBH3EQG.mjs +0 -212
- package/dist/chunks/messages-CIYU5iEj.mjs +0 -212
- package/dist/chunks/messages-CJGOmFxi.mjs +0 -212
- package/dist/chunks/messages-CN2yjHzW.cjs +0 -1
- package/dist/chunks/messages-CP7Ncgaf.mjs +0 -212
- package/dist/chunks/messages-CP8YKa4F.mjs +0 -212
- package/dist/chunks/messages-CTy_3-mw2.cjs +0 -1
- package/dist/chunks/messages-CUxaqK8t2.mjs +0 -212
- package/dist/chunks/messages-CXDk_Rlr2.mjs +0 -212
- package/dist/chunks/messages-CYZxR91M.mjs +0 -212
- package/dist/chunks/messages-C_ogasse2.cjs +0 -1
- package/dist/chunks/messages-CbFuceEb.cjs +0 -1
- package/dist/chunks/messages-CbbYb7cc.cjs +0 -1
- package/dist/chunks/messages-CfO5kKI72.cjs +0 -1
- package/dist/chunks/messages-Cgv5DuNV.cjs +0 -1
- package/dist/chunks/messages-Cjm7Nj1C.mjs +0 -212
- package/dist/chunks/messages-CjzZ6nxv.mjs +0 -212
- package/dist/chunks/messages-CkBrRFY02.cjs +0 -1
- package/dist/chunks/messages-CpVtcYqo.mjs +0 -212
- package/dist/chunks/messages-CpppvIiu.cjs +0 -1
- package/dist/chunks/messages-CumomgDd2.mjs +0 -212
- package/dist/chunks/messages-CvCb4dCy.mjs +0 -212
- package/dist/chunks/messages-D3DNj1jh.mjs +0 -212
- package/dist/chunks/messages-D7d2U-tx.mjs +0 -212
- package/dist/chunks/messages-D8-vyZ2V.cjs +0 -1
- package/dist/chunks/messages-DFWhnXF12.mjs +0 -212
- package/dist/chunks/messages-DIpVfyX-2.cjs +0 -1
- package/dist/chunks/messages-DJBeEI7G.cjs +0 -1
- package/dist/chunks/messages-DJr1x1i2.mjs +0 -212
- package/dist/chunks/messages-DN7PU5Un2.mjs +0 -212
- package/dist/chunks/messages-DR8nFHdw2.cjs +0 -1
- package/dist/chunks/messages-DT5Ux3el.cjs +0 -1
- package/dist/chunks/messages-DVh_Bwwq.mjs +0 -212
- package/dist/chunks/messages-DVwHxslb.mjs +0 -212
- package/dist/chunks/messages-DZ1Pfnl0.mjs +0 -212
- package/dist/chunks/messages-Da2SYMf52.cjs +0 -1
- package/dist/chunks/messages-DaaqkvOz2.cjs +0 -1
- package/dist/chunks/messages-DdiqfVCc.cjs +0 -1
- package/dist/chunks/messages-DfZe7SKZ.cjs +0 -1
- package/dist/chunks/messages-DkJ0bcqu.cjs +0 -1
- package/dist/chunks/messages-DkmG49t8.cjs +0 -1
- package/dist/chunks/messages-Do3QV7QW.mjs +0 -212
- package/dist/chunks/messages-Do4o9ckW.cjs +0 -1
- package/dist/chunks/messages-DrbTe09r.cjs +0 -1
- package/dist/chunks/messages-Drxwphbg2.mjs +0 -212
- package/dist/chunks/messages-DtgIZDlN.cjs +0 -1
- package/dist/chunks/messages-DtloGH1v2.mjs +0 -212
- package/dist/chunks/messages-Du0zg7UM.mjs +0 -212
- package/dist/chunks/messages-DuA_D23n.mjs +0 -212
- package/dist/chunks/messages-DwKRw3jP2.mjs +0 -212
- package/dist/chunks/messages-DxCaGN-Q2.cjs +0 -1
- package/dist/chunks/messages-DxpBJ5ZY.cjs +0 -1
- package/dist/chunks/messages-DyWu9_0D.cjs +0 -1
- package/dist/chunks/messages-DzAYvMm72.mjs +0 -212
- package/dist/chunks/messages-Dzmge-lj.mjs +0 -212
- package/dist/chunks/messages-ETNAE7WV.mjs +0 -212
- package/dist/chunks/messages-F4r6ruTX2.mjs +0 -212
- package/dist/chunks/messages-FNQdT9Da.mjs +0 -212
- package/dist/chunks/messages-FYGyC6zk2.mjs +0 -212
- package/dist/chunks/messages-Hg0BECWK.cjs +0 -1
- package/dist/chunks/messages-JlduXweH2.cjs +0 -1
- package/dist/chunks/messages-Km2PU_o7.cjs +0 -1
- package/dist/chunks/messages-MgJnGL9X2.cjs +0 -1
- package/dist/chunks/messages-PIoKW4js2.cjs +0 -1
- package/dist/chunks/messages-VEm9mp5H.cjs +0 -1
- package/dist/chunks/messages-WgwkG5PL2.cjs +0 -1
- package/dist/chunks/messages-X46KAUoI.cjs +0 -1
- package/dist/chunks/messages-ZS1Ro8ZB.mjs +0 -212
- package/dist/chunks/messages-ZZd1ckSO2.cjs +0 -1
- package/dist/chunks/messages-dyhHlgE9.mjs +0 -212
- package/dist/chunks/messages-fAEKtYXO.mjs +0 -212
- package/dist/chunks/messages-hhptyJO3.mjs +0 -212
- package/dist/chunks/messages-hk4dinYI.mjs +0 -212
- package/dist/chunks/messages-knSLxvI6.mjs +0 -212
- package/dist/chunks/messages-lORohDgW2.mjs +0 -212
- package/dist/chunks/messages-mvnz8DvU.mjs +0 -212
- package/dist/chunks/messages-pHWKsrcZ.mjs +0 -212
- package/dist/chunks/messages-q2McAyOz.mjs +0 -212
- package/dist/chunks/messages-r62SI44r.mjs +0 -212
- package/dist/chunks/messages-uFdMhLbJ.mjs +0 -212
- package/dist/chunks/messages-vRqPeNM_.cjs +0 -1
- package/dist/chunks/messages-vhq442qv.cjs +0 -1
- package/dist/chunks/micromark-extension-math-BXJknrtf.cjs +0 -1
- package/dist/chunks/micromark-extension-math-x3wvkKaN.mjs +0 -169
- package/dist/chunks/mindmap-definition-QFDTVHPH-6O8s-b35.cjs +0 -96
- package/dist/chunks/mindmap-definition-QFDTVHPH-BfOyKFtC.mjs +0 -1013
- package/dist/chunks/notifier-B-wErJJB.mjs +0 -73
- package/dist/chunks/notifier-CwnFVNdD.cjs +0 -1
- package/dist/chunks/objectWithoutProperties-BbzyiphF.cjs +0 -1
- package/dist/chunks/objectWithoutProperties-Dci1-l7D.mjs +0 -23
- package/dist/chunks/one-light-D2mpnHEP.cjs +0 -1
- package/dist/chunks/one-light-bqnXiA0I.mjs +0 -4
- package/dist/chunks/ordinal-CN3SDQau.mjs +0 -65
- package/dist/chunks/ordinal-DFFZs5-y.cjs +0 -1
- package/dist/chunks/packet-4T2RLAQJ-7DW35MGl.mjs +0 -3
- package/dist/chunks/packet-4T2RLAQJ-B5XvZd2W.cjs +0 -1
- package/dist/chunks/php-BMavm1CR.cjs +0 -1
- package/dist/chunks/php-Dejkjxb5.mjs +0 -18
- package/dist/chunks/pie-ZZUOXDRM-Dtuq0w2k.mjs +0 -3
- package/dist/chunks/pie-ZZUOXDRM-SOG0aDPa.cjs +0 -1
- package/dist/chunks/pieDiagram-DEJITSTG-B1sjciNi.mjs +0 -179
- package/dist/chunks/pieDiagram-DEJITSTG-BkEwYBz9.cjs +0 -30
- package/dist/chunks/python-Dcoit5Q5.cjs +0 -1
- package/dist/chunks/python-tdu-oDWx.mjs +0 -3
- package/dist/chunks/quadrantDiagram-34T5L4WZ-CV838wf-.mjs +0 -1960
- package/dist/chunks/quadrantDiagram-34T5L4WZ-RJme4lkz.cjs +0 -7
- package/dist/chunks/r-BdDCwgEs.cjs +0 -1
- package/dist/chunks/r-D8fCyoTl.mjs +0 -5
- package/dist/chunks/radar-PYXPWWZC-Bz4lwSbg.mjs +0 -3
- package/dist/chunks/radar-PYXPWWZC-Doch8Lt3.cjs +0 -1
- package/dist/chunks/requirementDiagram-MS252O5E-CA3LUAVZ.mjs +0 -2224
- package/dist/chunks/requirementDiagram-MS252O5E-CMqFsK_K.cjs +0 -84
- package/dist/chunks/ruby-DHm8_lqY.cjs +0 -1
- package/dist/chunks/ruby-Z7wCYjey.mjs +0 -33
- package/dist/chunks/rust-Cdm0j4IC.cjs +0 -1
- package/dist/chunks/rust-D5IQAarB.mjs +0 -3
- package/dist/chunks/sankeyDiagram-XADWPNL6-BPaUkDQv.cjs +0 -10
- package/dist/chunks/sankeyDiagram-XADWPNL6-Cw8wB2YO.mjs +0 -909
- package/dist/chunks/scala-CbcMYkuq.mjs +0 -3
- package/dist/chunks/scala-Tb1u_9W3.cjs +0 -1
- package/dist/chunks/sequenceDiagram-FGHM5R23-DbM-gyMR.cjs +0 -157
- package/dist/chunks/sequenceDiagram-FGHM5R23-pm0MaeXC.mjs +0 -4181
- package/dist/chunks/shellscript-CZefq5l_.mjs +0 -3
- package/dist/chunks/shellscript-D6KsENaG.cjs +0 -1
- package/dist/chunks/sql-BlpbD7FB.cjs +0 -1
- package/dist/chunks/sql-C4ibVEDs.mjs +0 -3
- package/dist/chunks/stateDiagram-FHFEXIEX-CEcLtV9Z.cjs +0 -1
- package/dist/chunks/stateDiagram-FHFEXIEX-CMcsvm0M.mjs +0 -218
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-C4nZGNBm.mjs +0 -28
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-aa692V81.cjs +0 -1
- package/dist/chunks/swift-Drpgj9J0.mjs +0 -3
- package/dist/chunks/swift-DubrdZus.cjs +0 -1
- package/dist/chunks/timeline-definition-GMOUNBTQ-DwHKPj3j.mjs +0 -1084
- package/dist/chunks/timeline-definition-GMOUNBTQ-ceXDJGg_.cjs +0 -120
- package/dist/chunks/tools-DPov06L-.mjs +0 -11458
- package/dist/chunks/tools-NAqHj-Cy.cjs +0 -9
- package/dist/chunks/treeView-SZITEDCU-BUuSm_Hn.cjs +0 -1
- package/dist/chunks/treeView-SZITEDCU-DPG9FJ6Q.mjs +0 -3
- package/dist/chunks/treemap-W4RFUUIX-BerKlw0i.cjs +0 -1
- package/dist/chunks/treemap-W4RFUUIX-N4tZJR1-.mjs +0 -3
- package/dist/chunks/typescript-BKtlqLze.cjs +0 -1
- package/dist/chunks/typescript-Bnpf4OG6.mjs +0 -5
- package/dist/chunks/vennDiagram-DHZGUBPP-BzOeMJe8.cjs +0 -34
- package/dist/chunks/vennDiagram-DHZGUBPP-Gfy0QWtB.mjs +0 -1876
- package/dist/chunks/vitesse-dark-BSL-cCXL.cjs +0 -1
- package/dist/chunks/vitesse-dark-dflHsflb.mjs +0 -4
- package/dist/chunks/wardley-RL74JXVD-BzKtPJ3g.cjs +0 -1
- package/dist/chunks/wardley-RL74JXVD-C7Hzc5y2.mjs +0 -3
- package/dist/chunks/wardleyDiagram-NUSXRM2D-ChZiL3a0.mjs +0 -594
- package/dist/chunks/wardleyDiagram-NUSXRM2D-qo6LFohO.cjs +0 -20
- package/dist/chunks/xml-C1PUeKuL.mjs +0 -5
- package/dist/chunks/xml-CwiH0x4E.cjs +0 -1
- package/dist/chunks/xychartDiagram-5P7HB3ND-CH1Z2Cbf.cjs +0 -7
- package/dist/chunks/xychartDiagram-5P7HB3ND-t_dhLiOA.mjs +0 -2017
- package/dist/chunks/yaml-CecI9urB.mjs +0 -3
- package/dist/chunks/yaml-CkVxfQ4c.cjs +0 -1
- package/dist/messages--zgIPYtb.mjs +0 -212
- package/dist/messages-4jULpVvw.mjs +0 -212
- package/dist/messages-AbwSlRf_.mjs +0 -212
- package/dist/messages-B-dl7Pwb2.mjs +0 -212
- package/dist/messages-B3rCRhb1.mjs +0 -212
- package/dist/messages-B73L8nKc2.mjs +0 -212
- package/dist/messages-BAjsD2Vm2.mjs +0 -212
- package/dist/messages-BBodSb5B2.mjs +0 -212
- package/dist/messages-BTpn6H9x2.mjs +0 -212
- package/dist/messages-BWb0GjTj2.mjs +0 -212
- package/dist/messages-BbCgnri12.mjs +0 -212
- package/dist/messages-Bfon_Y3q.mjs +0 -212
- package/dist/messages-BhOtow9J2.mjs +0 -212
- package/dist/messages-BoB7m0uu2.mjs +0 -212
- package/dist/messages-BsOZPjeg.mjs +0 -212
- package/dist/messages-BuzKUYPV.mjs +0 -212
- package/dist/messages-BzOKMdMQ.mjs +0 -212
- package/dist/messages-C2H3PeQW2.mjs +0 -212
- package/dist/messages-C5KNzSTk.mjs +0 -212
- package/dist/messages-CIDYjE6l.mjs +0 -212
- package/dist/messages-CJmyF5ye.mjs +0 -212
- package/dist/messages-CTwiYb2a2.mjs +0 -212
- package/dist/messages-CUHoJaDO.mjs +0 -212
- package/dist/messages-CVeuqUjQ2.mjs +0 -212
- package/dist/messages-CW75b4sz.mjs +0 -212
- package/dist/messages-CXd7YeWV.mjs +0 -212
- package/dist/messages-CjlYkunD.mjs +0 -212
- package/dist/messages-CrGx64yd.mjs +0 -212
- package/dist/messages-Ct0jbgHd.mjs +0 -212
- package/dist/messages-CtKrCYD1.mjs +0 -212
- package/dist/messages-Cu2eLjfJ.mjs +0 -212
- package/dist/messages-CvwQ-fK_2.mjs +0 -212
- package/dist/messages-Cy6UYN9b.mjs +0 -212
- package/dist/messages-D01vnfA9.mjs +0 -212
- package/dist/messages-D0BAV45W.mjs +0 -212
- package/dist/messages-D5LGpdga.mjs +0 -212
- package/dist/messages-DATK4ftv.mjs +0 -212
- package/dist/messages-DEl77Urv2.mjs +0 -212
- package/dist/messages-DHNjM2nv2.mjs +0 -212
- package/dist/messages-DMW8b_sO.mjs +0 -212
- package/dist/messages-DNmgANKr.mjs +0 -212
- package/dist/messages-DQaa3cEM.mjs +0 -212
- package/dist/messages-DSlD4bV9.mjs +0 -212
- package/dist/messages-DTzbkXFt.mjs +0 -212
- package/dist/messages-DbZihxtV.mjs +0 -212
- package/dist/messages-DeE8fyKQ.mjs +0 -212
- package/dist/messages-Dg-TpO2S2.mjs +0 -212
- package/dist/messages-DgP82LzF.mjs +0 -212
- package/dist/messages-Dh3Vt7WC.mjs +0 -212
- package/dist/messages-DiVVyZD22.mjs +0 -212
- package/dist/messages-DpRnGjoe.mjs +0 -212
- package/dist/messages-DqZmrFaa2.mjs +0 -212
- package/dist/messages-Dra9Fz5Q.mjs +0 -212
- package/dist/messages-DuPBRgEF2.mjs +0 -212
- package/dist/messages-DuxEyAY-2.mjs +0 -212
- package/dist/messages-FmJD6lHR2.mjs +0 -212
- package/dist/messages-ONielGl92.mjs +0 -212
- package/dist/messages-RzgUqCGb2.mjs +0 -212
- package/dist/messages-U22AKGKs.mjs +0 -212
- package/dist/messages-XufeeRfO.mjs +0 -212
- package/dist/messages-fprUm7SO2.mjs +0 -212
- package/dist/messages-gFNdz3Tn2.mjs +0 -212
- package/dist/messages-h_n5GBm6.mjs +0 -212
- package/dist/messages-oOogIpsL2.mjs +0 -212
- package/dist/messages-otwg3KcK.mjs +0 -212
- package/dist/messages-rDDoBMWb.mjs +0 -212
- package/dist/messages-trQPxZIu.mjs +0 -212
- package/src/tools/code/highlight-applier.ts +0 -229
- package/src/tools/code/shiki-loader.ts +0 -135
- /package/dist/chunks/{am-CyXvGFRE.cjs → am-CGgVs8Sg.cjs} +0 -0
- /package/dist/chunks/{am-JTszxMum.mjs → am-TVbhxPdQ.mjs} +0 -0
- /package/dist/chunks/{ar-CME8m7Ug.mjs → ar-ClSvzRAM.mjs} +0 -0
- /package/dist/chunks/{ar-BbusVfTp.cjs → ar-nFMIw80i.cjs} +0 -0
- /package/dist/chunks/{array-BMXfsgb2.cjs → array-B193TMZz.cjs} +0 -0
- /package/dist/chunks/{array-B4E6ednJ.mjs → array-ChMzkF5S.mjs} +0 -0
- /package/dist/chunks/{az-D7MMnw6r.cjs → az-Cb6l6ydx.cjs} +0 -0
- /package/dist/chunks/{az-CU1BXEnK.mjs → az-Df0rChHp.mjs} +0 -0
- /package/dist/chunks/{bg-C3H2Qh_2.cjs → bg-BdZUTRFn.cjs} +0 -0
- /package/dist/chunks/{bg-C1QKbOOv.mjs → bg-DLJ0oZ8E.mjs} +0 -0
- /package/dist/chunks/{bn-BGOycYTM.cjs → bn-CneGelWq.cjs} +0 -0
- /package/dist/chunks/{bn-DbDE4DPn.mjs → bn-rM6ek4mO.mjs} +0 -0
- /package/dist/chunks/{bs-5jPxlF97.mjs → bs-16ZwjsQl.mjs} +0 -0
- /package/dist/chunks/{bs-C7amuK1D.cjs → bs-XAmTKQeJ.cjs} +0 -0
- /package/dist/chunks/{cs-BEZB2qcc.mjs → cs-C-zvdtZ-.mjs} +0 -0
- /package/dist/chunks/{cs-BUD3Muxp.cjs → cs-DKYguxBC.cjs} +0 -0
- /package/dist/chunks/{cytoscape.esm-CWkCAUzT.mjs → cytoscape.esm-BsvVxiuI.mjs} +0 -0
- /package/dist/chunks/{cytoscape.esm-CjWrb5SM.cjs → cytoscape.esm-gv01QJ5y.cjs} +0 -0
- /package/dist/chunks/{da-DXZ2uOgL.mjs → da-D1HzIKpF.mjs} +0 -0
- /package/dist/chunks/{da-CO2FYbLa.cjs → da-DiLbdYqu.cjs} +0 -0
- /package/dist/chunks/{de-B8nkOjfD.cjs → de-ClyUjm_W.cjs} +0 -0
- /package/dist/chunks/{de-D4FxC1Yq.mjs → de-Dpmwqjaw.mjs} +0 -0
- /package/dist/chunks/{default-DPWNu2LM.mjs → default-D5Eal3bU.mjs} +0 -0
- /package/dist/chunks/{default-DP8dtTxC.cjs → default-D9azvkQ_.cjs} +0 -0
- /package/dist/chunks/{defaultLocale-BxWls4I1.cjs → defaultLocale-CSsowJXG.cjs} +0 -0
- /package/dist/chunks/{defaultLocale-BYV2aVaI.mjs → defaultLocale-DiiR34KB.mjs} +0 -0
- /package/dist/chunks/{dist-CKM-fjTE.mjs → dist-BFuUZzlT.mjs} +0 -0
- /package/dist/chunks/{dist-CxdzFxpy.cjs → dist-DS4hv48u.cjs} +0 -0
- /package/dist/chunks/{el-D2ILhp1-.cjs → el-CFVhJTIb.cjs} +0 -0
- /package/dist/chunks/{el-DwIVDdku.mjs → el-DQ-dU1wp.mjs} +0 -0
- /package/dist/chunks/{es-DXxnOS9P.cjs → es-BlajxX2r.cjs} +0 -0
- /package/dist/chunks/{es-DlO4MePt.mjs → es-Dhzgzei6.mjs} +0 -0
- /package/dist/chunks/{et-BBSbb8pL.mjs → et-CnhEwclb.mjs} +0 -0
- /package/dist/chunks/{et-mT4xnDc7.cjs → et-ggACA1d9.cjs} +0 -0
- /package/dist/chunks/{fa-DsJou-pw.mjs → fa-B4zSY96K.mjs} +0 -0
- /package/dist/chunks/{fa-D9CUFSHX.cjs → fa-DuYd0CQw.cjs} +0 -0
- /package/dist/chunks/{fi-CsMgo7Wk.mjs → fi-B525ro09.mjs} +0 -0
- /package/dist/chunks/{fi-DpCqdl_1.cjs → fi-D3-4SL4-.cjs} +0 -0
- /package/dist/chunks/{fil-BjeZREJI.cjs → fil-Cs84dmNe.cjs} +0 -0
- /package/dist/chunks/{fil-Dlw8sEta.mjs → fil-DPB6Byn0.mjs} +0 -0
- /package/dist/chunks/{fr-DYmwW1y1.cjs → fr-C8Z2PE7u.cjs} +0 -0
- /package/dist/chunks/{fr-DeapG5NH.mjs → fr-CbMgtPHe.mjs} +0 -0
- /package/dist/chunks/{gu-klAnA_ns.mjs → gu-BDs1p7Uo.mjs} +0 -0
- /package/dist/chunks/{gu-4g6NA9h8.cjs → gu-CPQY3Iyq.cjs} +0 -0
- /package/dist/chunks/{he-2H5DcbO0.cjs → he-BkMGwSM7.cjs} +0 -0
- /package/dist/chunks/{he-9TdyXc1J.mjs → he-DWa_-C46.mjs} +0 -0
- /package/dist/chunks/{hi-DVOss_Zp.mjs → hi-Buu8Rua9.mjs} +0 -0
- /package/dist/chunks/{hi-Dvb4O5oj.cjs → hi-ClQSrRZz.cjs} +0 -0
- /package/dist/chunks/{hr-CXo-QFLf.mjs → hr-WosECnFF.mjs} +0 -0
- /package/dist/chunks/{hr-B4Y5vULZ.cjs → hr-wrh48ogh.cjs} +0 -0
- /package/dist/chunks/{hu-D3Pi7CJx.cjs → hu-BSVMkfs2.cjs} +0 -0
- /package/dist/chunks/{hu-B6uKq-NU.mjs → hu-CeBjtxCd.mjs} +0 -0
- /package/dist/chunks/{hy-DZ74SDlC.cjs → hy-CwF59lJj.cjs} +0 -0
- /package/dist/chunks/{hy-B7CWqbUW.mjs → hy-DwfBE3Yt.mjs} +0 -0
- /package/dist/chunks/{i18next-CkovSPO7.cjs → i18next-C14J6E5L.cjs} +0 -0
- /package/dist/chunks/{i18next-BFvS_Rnh.mjs → i18next-DjO-l2Ee.mjs} +0 -0
- /package/dist/chunks/{id-C5d2QGEQ.mjs → id-CBV5ivYd.mjs} +0 -0
- /package/dist/chunks/{id-WfjZeYKN.cjs → id-DN2KcAmG.cjs} +0 -0
- /package/dist/chunks/{init-C3Dyaaly.mjs → init-C2Iht9jH.mjs} +0 -0
- /package/dist/chunks/{init-BvlcnoG2.cjs → init-DMaknHdL.cjs} +0 -0
- /package/dist/chunks/{isArrayLikeObject-CnaR8YJm.cjs → isArrayLikeObject-Bk7ImDHR.cjs} +0 -0
- /package/dist/chunks/{isArrayLikeObject-B-1mfvNK.mjs → isArrayLikeObject-CyB7POJY.mjs} +0 -0
- /package/dist/chunks/{it-hqsqt6f7.cjs → it-CSt1S7SQ.cjs} +0 -0
- /package/dist/chunks/{it-BgPXC2_F.mjs → it-CU5gg8BZ.mjs} +0 -0
- /package/dist/chunks/{ja-BwLgKsdH.cjs → ja-BbwATm6F.cjs} +0 -0
- /package/dist/chunks/{ja-CQ7ujOz3.mjs → ja-khPKQhMG.mjs} +0 -0
- /package/dist/chunks/{ka-xoKako16.cjs → ka-Cqnq4zZT.cjs} +0 -0
- /package/dist/chunks/{ka-DAPmSm_-.mjs → ka-DN17rDOq.mjs} +0 -0
- /package/dist/chunks/{katex-_C7fvrbX.cjs → katex-D_RH6O9V.cjs} +0 -0
- /package/dist/chunks/{katex-Bbz34ZLq.mjs → katex-thO7aa9b.mjs} +0 -0
- /package/dist/chunks/{km-BJ9H-RbD.mjs → km-BbS9HEwx.mjs} +0 -0
- /package/dist/chunks/{km-D7Fl8wAA.cjs → km-COh3mhzp.cjs} +0 -0
- /package/dist/chunks/{kn-CthdB8vH.mjs → kn-7TPoJJQt.mjs} +0 -0
- /package/dist/chunks/{kn-Ckju1oeq.cjs → kn-CX062fVg.cjs} +0 -0
- /package/dist/chunks/{ko-DbEA41LU.mjs → ko-CDI2MnWL.mjs} +0 -0
- /package/dist/chunks/{ko-Dt1tQEjC.cjs → ko-gSw_U9kC.cjs} +0 -0
- /package/dist/chunks/{ku-B_j9qSrv.mjs → ku-DONc_aap.mjs} +0 -0
- /package/dist/chunks/{ku-_i2C5XD5.cjs → ku-DnvmAkID.cjs} +0 -0
- /package/dist/chunks/{lo-DfEpgG9m.cjs → lo-BrwlEjmE.cjs} +0 -0
- /package/dist/chunks/{lo-DSklR1Zs.mjs → lo-PtNU87QX.mjs} +0 -0
- /package/dist/chunks/{lt-BwLILIED.cjs → lt-Bw969G31.cjs} +0 -0
- /package/dist/chunks/{lt-C9aVbfRt.mjs → lt-CV9PgETS.mjs} +0 -0
- /package/dist/chunks/{lv-DLwMSEc0.mjs → lv-CFPT5CoC.mjs} +0 -0
- /package/dist/chunks/{lv-DdrYab3x.cjs → lv-DhwZOfiA.cjs} +0 -0
- /package/dist/chunks/{micromark-factory-space-BnsBDplI.cjs → micromark-factory-space-CsUhZvC1.cjs} +0 -0
- /package/dist/chunks/{micromark-factory-space-C6wz33de.mjs → micromark-factory-space-y4SDWQKm.mjs} +0 -0
- /package/dist/chunks/{mk-D96bSjMK.mjs → mk-5waYEn6e.mjs} +0 -0
- /package/dist/chunks/{mk-CsPHE4cO.cjs → mk-vuwbN_RA.cjs} +0 -0
- /package/dist/chunks/{ml-CAsiw8BP.cjs → ml-DQZZm6v3.cjs} +0 -0
- /package/dist/chunks/{ml-D1Ek94RG.mjs → ml-iK4LpGaW.mjs} +0 -0
- /package/dist/chunks/{mn-Db6DwHPv.cjs → mn-Dz3r2r3T.cjs} +0 -0
- /package/dist/chunks/{mn-CyNCFOYP.mjs → mn-nfQCBqsj.mjs} +0 -0
- /package/dist/chunks/{mr-CaA3xXVf.mjs → mr-8ddBHqrW.mjs} +0 -0
- /package/dist/chunks/{mr-BBAuoEIQ.cjs → mr-BDjve7Md.cjs} +0 -0
- /package/dist/chunks/{ms-Cfv7BOEG.cjs → ms-2boGmWFn.cjs} +0 -0
- /package/dist/chunks/{ms-IZU-A3Qk.mjs → ms-BRxHmUVO.mjs} +0 -0
- /package/dist/chunks/{my-C-AQLGIp.mjs → my-Bq-MP3br.mjs} +0 -0
- /package/dist/chunks/{my-DOLHceI8.cjs → my-BtRZdE5q.cjs} +0 -0
- /package/dist/chunks/{native-DbFHGXp1.cjs → native-Bok_u8yD.cjs} +0 -0
- /package/dist/chunks/{native-CarRLbbJ.mjs → native-DIGOFhyn.mjs} +0 -0
- /package/dist/chunks/{ne-LaymXAjm.mjs → ne-B6JfM08W.mjs} +0 -0
- /package/dist/chunks/{ne-B2gHspK_.cjs → ne-C9oc_I3v.cjs} +0 -0
- /package/dist/chunks/{nl-C5ezxTkA.cjs → nl-CkIGPyM6.cjs} +0 -0
- /package/dist/chunks/{nl-Dm1eVwTA.mjs → nl-NuO8CW66.mjs} +0 -0
- /package/dist/chunks/{no-B2WicGhz.mjs → no-BtwrqS-b.mjs} +0 -0
- /package/dist/chunks/{no-D4hjenPs.cjs → no-De7tM2WX.cjs} +0 -0
- /package/dist/chunks/{pa-CemLebw7.cjs → pa-Bm15OLTz.cjs} +0 -0
- /package/dist/chunks/{pa-ry61xHq9.mjs → pa-ClSxjHFF.mjs} +0 -0
- /package/dist/chunks/{path-CLcQoP7n.cjs → path-CFQyJ4S5.cjs} +0 -0
- /package/dist/chunks/{path-Crax6eds.mjs → path-iPyWZTLQ.mjs} +0 -0
- /package/dist/chunks/{pl-DzCnx7eR.mjs → pl-C-aTCeRd.mjs} +0 -0
- /package/dist/chunks/{pl-D_sFAkCs.cjs → pl-D80QrSlq.cjs} +0 -0
- /package/dist/chunks/{ps-DKXG6JHY.mjs → ps-B8wPRrcC.mjs} +0 -0
- /package/dist/chunks/{ps-ygHHO68A.cjs → ps-ySfeV5NE.cjs} +0 -0
- /package/dist/chunks/{pt-e09B0rEd.mjs → pt-8tijWt3B.mjs} +0 -0
- /package/dist/chunks/{pt-x_mmaTtD.cjs → pt-Bigoi5oj.cjs} +0 -0
- /package/dist/chunks/{ro-HNnYR5pB.mjs → ro-BiUSkkwp.mjs} +0 -0
- /package/dist/chunks/{ro-CLGSgHzJ.cjs → ro-Dvtjmd-W.cjs} +0 -0
- /package/dist/chunks/{rough.esm-BaIXPgTh.cjs → rough.esm-DC-UFdM0.cjs} +0 -0
- /package/dist/chunks/{rough.esm-CChKUjNP.mjs → rough.esm-buj-m5wB.mjs} +0 -0
- /package/dist/chunks/{ru-LpaLXWmO.cjs → ru-dq73Ra3e.cjs} +0 -0
- /package/dist/chunks/{ru-D_jTWgK8.mjs → ru-qkCthz2J.mjs} +0 -0
- /package/dist/chunks/{sd-B5PS8K1I.cjs → sd-BhtQCaFq.cjs} +0 -0
- /package/dist/chunks/{sd-B7bgXBin.mjs → sd-DfoXSEBK.mjs} +0 -0
- /package/dist/chunks/{si-BjMoO5xu.cjs → si-CWG8h4tD.cjs} +0 -0
- /package/dist/chunks/{si-aQCsTBIp.mjs → si-RPCp-GrG.mjs} +0 -0
- /package/dist/chunks/{sk-pQPYnDDU.cjs → sk-Bkag9oKD.cjs} +0 -0
- /package/dist/chunks/{sk-Bjrct9rr.mjs → sk-CVRHQjYN.mjs} +0 -0
- /package/dist/chunks/{sl-B_yalM3h.cjs → sl-BhupPCcO.cjs} +0 -0
- /package/dist/chunks/{sl-DvS57kCB.mjs → sl-Clf3YXji.mjs} +0 -0
- /package/dist/chunks/{sq-gzZkHXFJ.cjs → sq-Bosym4Xb.cjs} +0 -0
- /package/dist/chunks/{sq-BexoWiW2.mjs → sq-C-nwTgWs.mjs} +0 -0
- /package/dist/chunks/{sr-CXir4bLq.mjs → sr-BiElo1CU.mjs} +0 -0
- /package/dist/chunks/{sr-O4v1KJY1.cjs → sr-DFPGZJ0s.cjs} +0 -0
- /package/dist/chunks/{src-d9yswOqA.cjs → src-al3Kn9PA.cjs} +0 -0
- /package/dist/chunks/{src-yreeH1hr.mjs → src-gZQLeVvM.mjs} +0 -0
- /package/dist/chunks/{sv-D0tEFwN7.cjs → sv-CiYmSxqX.cjs} +0 -0
- /package/dist/chunks/{sv-B_Owhjrs.mjs → sv-DVztafBI.mjs} +0 -0
- /package/dist/chunks/{sw-DE8oPVEt.cjs → sw-CMbHoINv.cjs} +0 -0
- /package/dist/chunks/{sw-B4p84FCO.mjs → sw-CgJk20G2.mjs} +0 -0
- /package/dist/chunks/{ta-BCVLtFMU.cjs → ta-BrC1o95Z.cjs} +0 -0
- /package/dist/chunks/{ta-BU_-jQ33.mjs → ta-rqChn3y2.mjs} +0 -0
- /package/dist/chunks/{te-BISdOeGS.cjs → te-DAKpWpi8.cjs} +0 -0
- /package/dist/chunks/{te-5FGke4TK.mjs → te-LIsqeDyD.mjs} +0 -0
- /package/dist/chunks/{th-DFyekAQ3.mjs → th-Bm6lDr_S.mjs} +0 -0
- /package/dist/chunks/{th-CJXhSA-L.cjs → th-D0CG2M2k.cjs} +0 -0
- /package/dist/chunks/{tr-BjTvmhJt.cjs → tr-Bw_nVU1b.cjs} +0 -0
- /package/dist/chunks/{tr-C7Zj3lX4.mjs → tr-g8oLvvcP.mjs} +0 -0
- /package/dist/chunks/{types-BNvlbr9u.mjs → types-DrdCPGbk.mjs} +0 -0
- /package/dist/chunks/{types-BQX8SD8Q.cjs → types-GPfn5gE2.cjs} +0 -0
- /package/dist/chunks/{ug-DsQjxbOa.cjs → ug-DvC-UnxD.cjs} +0 -0
- /package/dist/chunks/{ug-DJwD0iui.mjs → ug-zVaKVoWE.mjs} +0 -0
- /package/dist/chunks/{uk-BPzbNIjw.cjs → uk-Cx32rUi7.cjs} +0 -0
- /package/dist/chunks/{uk-hkOj8kWN.mjs → uk-DGVBUwum.mjs} +0 -0
- /package/dist/chunks/{ur-Cy5A8nFG.mjs → ur-7wbChoVl.mjs} +0 -0
- /package/dist/chunks/{ur-Do8k1hR-.cjs → ur-BMh2seDu.cjs} +0 -0
- /package/dist/chunks/{vi-CCTEx9XR.cjs → vi-4TUS0GSi.cjs} +0 -0
- /package/dist/chunks/{vi-CEt0cTzQ.mjs → vi-CLg1e4-a.mjs} +0 -0
- /package/dist/chunks/{zh-Ive4on8E.cjs → zh-DZtmJNDR.cjs} +0 -0
- /package/dist/chunks/{zh-BwQjLCGO.mjs → zh-LvpOPMNT.mjs} +0 -0
|
@@ -0,0 +1,3432 @@
|
|
|
1
|
+
import { o as e, t } from "./chunk-D6kmoKXy.mjs";
|
|
2
|
+
import { t as n } from "./objectSpread2-CWwMYL_U.mjs";
|
|
3
|
+
import { n as r, t as i } from "./tw-CqxBf-1Y.mjs";
|
|
4
|
+
//#region src/components/constants/data-attributes.ts
|
|
5
|
+
var a = {
|
|
6
|
+
interface: "data-blok-interface",
|
|
7
|
+
element: "data-blok-element",
|
|
8
|
+
elementContent: "data-blok-element-content",
|
|
9
|
+
editor: "data-blok-editor",
|
|
10
|
+
redactor: "data-blok-redactor",
|
|
11
|
+
id: "data-blok-id",
|
|
12
|
+
component: "data-blok-component",
|
|
13
|
+
tool: "data-blok-tool",
|
|
14
|
+
depth: "data-blok-depth",
|
|
15
|
+
hidden: "data-blok-hidden",
|
|
16
|
+
disabled: "data-blok-disabled",
|
|
17
|
+
focused: "data-blok-focused",
|
|
18
|
+
selected: "data-blok-selected",
|
|
19
|
+
stretched: "data-blok-stretched",
|
|
20
|
+
empty: "data-blok-empty",
|
|
21
|
+
contentAlign: "data-blok-content-align",
|
|
22
|
+
rtl: "data-blok-rtl",
|
|
23
|
+
dragging: "data-blok-dragging",
|
|
24
|
+
draggingMulti: "data-blok-dragging-multi",
|
|
25
|
+
duplicating: "data-blok-duplicating",
|
|
26
|
+
dragHandle: "data-blok-drag-handle",
|
|
27
|
+
toolbar: "data-blok-toolbar",
|
|
28
|
+
settingsToggler: "data-blok-settings-toggler",
|
|
29
|
+
toolboxOpened: "data-blok-toolbox-opened",
|
|
30
|
+
blockSettingsOpened: "data-blok-block-settings-opened",
|
|
31
|
+
opened: "data-blok-opened",
|
|
32
|
+
popover: "data-blok-popover",
|
|
33
|
+
popoverContainer: "data-blok-popover-container",
|
|
34
|
+
popoverItems: "data-blok-popover-items",
|
|
35
|
+
popoverOverlay: "data-blok-popover-overlay",
|
|
36
|
+
popoverCustomContent: "data-blok-popover-custom-content",
|
|
37
|
+
popoverCustomClass: "data-blok-popover-custom-class",
|
|
38
|
+
popoverInline: "data-blok-popover-inline",
|
|
39
|
+
popoverOpened: "data-blok-popover-opened",
|
|
40
|
+
popoverOpenTop: "data-blok-popover-open-top",
|
|
41
|
+
popoverOpenLeft: "data-blok-popover-open-left",
|
|
42
|
+
nested: "data-blok-nested",
|
|
43
|
+
nestedLevel: "data-blok-nested-level",
|
|
44
|
+
promotedGroupLabel: "data-blok-promoted-group-label",
|
|
45
|
+
topLevelGroupLabel: "data-blok-top-level-group-label",
|
|
46
|
+
popoverHeader: "data-blok-popover-header",
|
|
47
|
+
popoverHeaderText: "data-blok-popover-header-text",
|
|
48
|
+
popoverHeaderBackButton: "data-blok-popover-header-back-button",
|
|
49
|
+
popoverItem: "data-blok-popover-item",
|
|
50
|
+
popoverItemIcon: "data-blok-popover-item-icon",
|
|
51
|
+
popoverItemIconChevronRight: "data-blok-popover-item-icon-chevron-right",
|
|
52
|
+
popoverItemTitle: "data-blok-popover-item-title",
|
|
53
|
+
popoverItemSecondaryTitle: "data-blok-popover-item-secondary-title",
|
|
54
|
+
popoverItemActive: "data-blok-popover-item-active",
|
|
55
|
+
popoverItemConfirmation: "data-blok-popover-item-confirmation",
|
|
56
|
+
popoverItemNoHover: "data-blok-popover-item-no-hover",
|
|
57
|
+
popoverItemNoFocus: "data-blok-popover-item-no-focus",
|
|
58
|
+
popoverItemDestructive: "data-blok-popover-item-destructive",
|
|
59
|
+
popoverItemSeparator: "data-blok-popover-item-separator",
|
|
60
|
+
popoverItemSeparatorLine: "data-blok-popover-item-separator-line",
|
|
61
|
+
popoverItemHtml: "data-blok-popover-item-html",
|
|
62
|
+
hasChildren: "data-blok-has-children",
|
|
63
|
+
itemName: "data-blok-item-name",
|
|
64
|
+
nothingFoundDisplayed: "data-blok-nothing-found-displayed",
|
|
65
|
+
overlay: "data-blok-overlay",
|
|
66
|
+
overlayContainer: "data-blok-overlay-container",
|
|
67
|
+
overlayRectangle: "data-blok-overlay-rectangle",
|
|
68
|
+
overlayHidden: "data-blok-overlay-hidden",
|
|
69
|
+
fakeCursor: "data-blok-fake-cursor",
|
|
70
|
+
fakeBackground: "data-blok-fake-background",
|
|
71
|
+
scrollZone: "data-blok-scroll-zone",
|
|
72
|
+
scrollLocked: "data-blok-scroll-locked",
|
|
73
|
+
scrollLockedHard: "data-blok-scroll-locked-hard",
|
|
74
|
+
shadowCaret: "data-blok-shadow-caret",
|
|
75
|
+
placeholder: "data-blok-placeholder",
|
|
76
|
+
placeholderActive: "data-blok-placeholder-active",
|
|
77
|
+
nestedBlocks: "data-blok-nested-blocks",
|
|
78
|
+
mutationFree: "data-blok-mutation-free",
|
|
79
|
+
navigationFocused: "data-blok-navigation-focused",
|
|
80
|
+
flipperNavigationTarget: "data-blok-flipper-navigation-target",
|
|
81
|
+
inlineToolbar: "data-blok-inline-toolbar",
|
|
82
|
+
linkToolActive: "data-blok-link-tool-active",
|
|
83
|
+
linkToolUnlink: "data-blok-link-tool-unlink",
|
|
84
|
+
linkToolInputOpened: "data-blok-link-tool-input-opened",
|
|
85
|
+
boldCollapsedLength: "data-blok-bold-collapsed-length",
|
|
86
|
+
boldCollapsedActive: "data-blok-bold-collapsed-active",
|
|
87
|
+
boldPrevLength: "data-blok-bold-prev-length",
|
|
88
|
+
boldLeadingWs: "data-blok-bold-leading-ws",
|
|
89
|
+
boldMarker: "data-blok-bold-marker",
|
|
90
|
+
shown: "data-blok-shown",
|
|
91
|
+
placement: "data-blok-placement",
|
|
92
|
+
bounceIn: "data-blok-bounce-in",
|
|
93
|
+
announcer: "data-blok-announcer",
|
|
94
|
+
stub: "data-blok-stub",
|
|
95
|
+
stubInfo: "data-blok-stub-info",
|
|
96
|
+
stubTitle: "data-blok-stub-title",
|
|
97
|
+
stubSubtitle: "data-blok-stub-subtitle",
|
|
98
|
+
slashSearch: "data-blok-slash-search",
|
|
99
|
+
testid: "data-blok-testid",
|
|
100
|
+
forceHover: "data-blok-force-hover"
|
|
101
|
+
}, o = (e, t) => t === void 0 ? `[${e}]` : `[${e}="${t}"]`, s = {
|
|
102
|
+
BACKSPACE: 8,
|
|
103
|
+
TAB: 9,
|
|
104
|
+
ENTER: 13,
|
|
105
|
+
SHIFT: 16,
|
|
106
|
+
CTRL: 17,
|
|
107
|
+
ALT: 18,
|
|
108
|
+
ESC: 27,
|
|
109
|
+
SPACE: 32,
|
|
110
|
+
LEFT: 37,
|
|
111
|
+
UP: 38,
|
|
112
|
+
DOWN: 40,
|
|
113
|
+
RIGHT: 39,
|
|
114
|
+
DELETE: 46,
|
|
115
|
+
NUMBER_KEY_MIN: 47,
|
|
116
|
+
NUMBER_KEY_MAX: 58,
|
|
117
|
+
LETTER_KEY_MIN: 64,
|
|
118
|
+
LETTER_KEY_MAX: 91,
|
|
119
|
+
META: 91,
|
|
120
|
+
NUMPAD_KEY_MIN: 95,
|
|
121
|
+
NUMPAD_KEY_MAX: 112,
|
|
122
|
+
PUNCTUATION_KEY_MIN: 185,
|
|
123
|
+
PUNCTUATION_KEY_MAX: 193,
|
|
124
|
+
BRACKET_KEY_MIN: 218,
|
|
125
|
+
BRACKET_KEY_MAX: 223,
|
|
126
|
+
PROCESSING_KEY: 229,
|
|
127
|
+
SLASH: 191
|
|
128
|
+
}, c = {
|
|
129
|
+
LEFT: 0,
|
|
130
|
+
WHEEL: 1,
|
|
131
|
+
RIGHT: 2,
|
|
132
|
+
BACKWARD: 3,
|
|
133
|
+
FORWARD: 4
|
|
134
|
+
}, l = () => "0.12.0", u = /* @__PURE__ */ function(e) {
|
|
135
|
+
return e.VERBOSE = "VERBOSE", e.INFO = "INFO", e.WARN = "WARN", e.ERROR = "ERROR", e;
|
|
136
|
+
}({}), d = (e, t, n = "log", r, i = "color: inherit") => {
|
|
137
|
+
let a = typeof console > "u" ? void 0 : console;
|
|
138
|
+
if (!a || typeof a[n] != "function") return;
|
|
139
|
+
let o = [
|
|
140
|
+
"info",
|
|
141
|
+
"log",
|
|
142
|
+
"warn",
|
|
143
|
+
"error"
|
|
144
|
+
].includes(n), s = [];
|
|
145
|
+
switch (d.logLevel) {
|
|
146
|
+
case u.VERBOSE: break;
|
|
147
|
+
case u.ERROR:
|
|
148
|
+
if (n !== "error") return;
|
|
149
|
+
break;
|
|
150
|
+
case u.WARN:
|
|
151
|
+
if (!["error", "warn"].includes(n)) return;
|
|
152
|
+
break;
|
|
153
|
+
case u.INFO:
|
|
154
|
+
if (!o || e) return;
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
r && s.push(r);
|
|
158
|
+
let c = `Blok ${l()}`, f = e ? o ? (s.unshift("line-height: 1em;\n color: #006FEA;\n display: inline-block;\n font-size: 11px;\n line-height: 1em;\n background-color: #fff;\n padding: 4px 9px;\n border-radius: 30px;\n border: 1px solid rgba(56, 138, 229, 0.16);\n margin: 4px 5px 4px 0;", i), `%c${c}%c ${t}`) : `( ${c} )${t}` : t, p = o ? r === void 0 ? [f, ...s] : [`${f} %o`, ...s] : [f];
|
|
159
|
+
try {
|
|
160
|
+
a[n](...p);
|
|
161
|
+
} catch (e) {}
|
|
162
|
+
};
|
|
163
|
+
d.logLevel = u.VERBOSE;
|
|
164
|
+
var f = (e) => {
|
|
165
|
+
d.logLevel = e;
|
|
166
|
+
}, p = (e, t = "log", n, r) => {
|
|
167
|
+
d(!1, e, t, n, r);
|
|
168
|
+
}, m = (e, t = "log", n, r) => {
|
|
169
|
+
d(!0, e, t, n, r);
|
|
170
|
+
}, h = (e) => typeof e == "function", g = (e) => {
|
|
171
|
+
if (typeof e != "object" || !e) return !1;
|
|
172
|
+
let t = Object.getPrototypeOf(e);
|
|
173
|
+
return t === null || t === Object.prototype;
|
|
174
|
+
}, _ = (e) => typeof e == "string", v = (e) => typeof e == "boolean", y = (e) => typeof e == "number", ee = function(e) {
|
|
175
|
+
return e === void 0;
|
|
176
|
+
}, b = (e) => e == null ? !0 : typeof e == "string" || Array.isArray(e) ? e.length === 0 : e instanceof Map || e instanceof Set ? e.size === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, te = (e, t) => function(...n) {
|
|
177
|
+
setTimeout(() => e.apply(this, n), t);
|
|
178
|
+
}, ne = (e, t, n) => {
|
|
179
|
+
let r = { timeoutId: null };
|
|
180
|
+
return function(...i) {
|
|
181
|
+
let a = () => {
|
|
182
|
+
r.timeoutId = null, n !== !0 && e.apply(this, i);
|
|
183
|
+
}, o = n === !0 && r.timeoutId === null;
|
|
184
|
+
r.timeoutId !== null && clearTimeout(r.timeoutId), r.timeoutId = setTimeout(a, t), o && e.apply(this, i);
|
|
185
|
+
};
|
|
186
|
+
}, re = (e, t, n) => {
|
|
187
|
+
let r = (n == null ? void 0 : n.leading) !== !1, i = (n == null ? void 0 : n.trailing) !== !1, a = {
|
|
188
|
+
lastCallTime: void 0,
|
|
189
|
+
lastInvokeTime: 0,
|
|
190
|
+
timerId: void 0,
|
|
191
|
+
lastArgs: void 0,
|
|
192
|
+
lastThis: void 0
|
|
193
|
+
}, o = (t) => {
|
|
194
|
+
a.lastInvokeTime = t;
|
|
195
|
+
let n = a.lastArgs, r = a.lastThis;
|
|
196
|
+
return a.lastArgs = void 0, a.lastThis = void 0, e.apply(r, n == null ? [] : n);
|
|
197
|
+
}, s = (e) => {
|
|
198
|
+
var n;
|
|
199
|
+
let r = e - ((n = a.lastCallTime) == null ? 0 : n), o = e - a.lastInvokeTime, s = t - r;
|
|
200
|
+
return i ? Math.min(s, t - o) : s;
|
|
201
|
+
}, c = (e) => {
|
|
202
|
+
var n;
|
|
203
|
+
let r = e - ((n = a.lastCallTime) == null ? 0 : n), i = e - a.lastInvokeTime;
|
|
204
|
+
return a.lastCallTime === void 0 || r >= t || r < 0 || i >= t;
|
|
205
|
+
}, l = () => {
|
|
206
|
+
let e = Date.now();
|
|
207
|
+
if (!c(e)) {
|
|
208
|
+
a.timerId = setTimeout(l, s(e));
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
a.timerId = void 0, i && a.lastArgs !== void 0 && o(e), a.lastArgs = void 0, a.lastThis = void 0;
|
|
212
|
+
};
|
|
213
|
+
return function(...e) {
|
|
214
|
+
let n = Date.now(), i = c(n);
|
|
215
|
+
if (a.lastArgs = e, a.lastThis = this, a.lastCallTime = n, i && a.timerId === void 0) return a.lastInvokeTime = n, a.timerId = setTimeout(l, t), r ? o(n) : void 0;
|
|
216
|
+
};
|
|
217
|
+
}, x = (() => {
|
|
218
|
+
try {
|
|
219
|
+
return Function("return this")();
|
|
220
|
+
} catch (e) {
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
})();
|
|
224
|
+
x && x.window === void 0 && (x.window = x);
|
|
225
|
+
var S = () => {
|
|
226
|
+
if (x != null && x.window) return x.window;
|
|
227
|
+
}, ie = () => {
|
|
228
|
+
if (x != null && x.navigator) return x.navigator;
|
|
229
|
+
let e = S();
|
|
230
|
+
return e == null ? void 0 : e.navigator;
|
|
231
|
+
}, ae = (e) => /^[-\w]+\/([-+\w]+|\*)$/.test(e), oe = () => {
|
|
232
|
+
var e, t;
|
|
233
|
+
let n = {
|
|
234
|
+
win: !1,
|
|
235
|
+
mac: !1,
|
|
236
|
+
x11: !1,
|
|
237
|
+
linux: !1
|
|
238
|
+
}, r = ie(), i = (e = r == null || (t = r.userAgent) == null ? void 0 : t.toLowerCase()) == null ? "" : e, a = i ? Object.keys(n).find((e) => i.indexOf(e) !== -1) : void 0;
|
|
239
|
+
return a === void 0 || (n[a] = !0), n;
|
|
240
|
+
}, se = () => {
|
|
241
|
+
let e = S();
|
|
242
|
+
return !e || typeof e.matchMedia != "function" ? !1 : e.matchMedia("(max-width: 650px)").matches;
|
|
243
|
+
}, ce = (() => {
|
|
244
|
+
var e;
|
|
245
|
+
let t = ie();
|
|
246
|
+
if (!t) return !1;
|
|
247
|
+
let n = t.userAgent || "", r = t.userAgentData, i = r == null ? void 0 : r.platform;
|
|
248
|
+
if (/iP(ad|hone|od)/.test(n) || i !== void 0 && i !== "" && /iP(ad|hone|od)/.test(i)) return !0;
|
|
249
|
+
let a = ((e = t.maxTouchPoints) == null ? 0 : e) > 1, o = () => t.platform, s = i !== void 0 && i !== "" ? i : void 0;
|
|
250
|
+
return (a ? s == null ? o() : s : void 0) === "MacIntel";
|
|
251
|
+
})(), le = (e) => {
|
|
252
|
+
try {
|
|
253
|
+
return new URL(e).href;
|
|
254
|
+
} catch (e) {}
|
|
255
|
+
let t = S();
|
|
256
|
+
return e.substring(0, 2) === "//" ? t ? `${t.location.protocol}${e}` : e : t ? `${t.location.origin}${e}` : e;
|
|
257
|
+
}, ue = (e) => {
|
|
258
|
+
let t = S();
|
|
259
|
+
t && t.open(e, "_blank");
|
|
260
|
+
}, de = (e) => e && e.slice(0, 1).toUpperCase() + e.slice(1), fe = (e) => {
|
|
261
|
+
let t = oe(), n = e.replace(/shift/gi, "⇧").replace(/backspace/gi, "⌫").replace(/enter/gi, "⏎").replace(/up/gi, "↑").replace(/left/gi, "→").replace(/down/gi, "↓").replace(/right/gi, "←").replace(/escape/gi, "⎋").replace(/insert/gi, "Ins").replace(/delete/gi, "␡").replace(/\+/gi, " + ");
|
|
262
|
+
return t.mac ? n.replace(/ctrl|cmd/gi, "⌘").replace(/alt/gi, "⌥") : n.replace(/cmd/gi, "Ctrl").replace(/windows/gi, "WIN");
|
|
263
|
+
}, pe = (e, t) => {
|
|
264
|
+
let r = n({}, e);
|
|
265
|
+
return Object.keys(t).forEach((e) => {
|
|
266
|
+
let n = r[e], i = t[e];
|
|
267
|
+
if (i !== void 0) {
|
|
268
|
+
if (g(i) && g(n) && !Array.isArray(i)) {
|
|
269
|
+
r[e] = pe(n, i);
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
r[e] = i;
|
|
273
|
+
}
|
|
274
|
+
}), r;
|
|
275
|
+
}, C = (e, ...t) => {
|
|
276
|
+
if (!g(e) || t.length === 0) return e;
|
|
277
|
+
let n = t.reduce((e, t) => g(t) ? pe(e, t) : e, e);
|
|
278
|
+
return Object.assign(e, n), e;
|
|
279
|
+
}, me = (e, t) => e.length === t.length ? e.every((e, n) => w(e, t[n])) : !1, w = (e, t) => {
|
|
280
|
+
if (e === t) return !0;
|
|
281
|
+
if (e === null || t === null || typeof e != "object" || typeof t != "object" || Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
282
|
+
if (Array.isArray(e) && Array.isArray(t)) return me(e, t);
|
|
283
|
+
let n = Object.keys(e), r = Object.keys(t);
|
|
284
|
+
return n.length === r.length ? n.every((n) => Object.prototype.hasOwnProperty.call(t, n) && w(e[n], t[n])) : !1;
|
|
285
|
+
}, he = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", ge = (e = 21) => {
|
|
286
|
+
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
287
|
+
for (; e--;) t += he[n[e] & 63];
|
|
288
|
+
return t;
|
|
289
|
+
}, _e = 1e8, ve = 16, ye = () => ge(10), be = (e = "") => `${e}${Math.floor(Math.random() * _e).toString(ve)}`, T = class e {
|
|
290
|
+
static isSingleTag(e) {
|
|
291
|
+
return !!e.tagName && [
|
|
292
|
+
"AREA",
|
|
293
|
+
"BASE",
|
|
294
|
+
"BR",
|
|
295
|
+
"COL",
|
|
296
|
+
"COMMAND",
|
|
297
|
+
"EMBED",
|
|
298
|
+
"HR",
|
|
299
|
+
"IMG",
|
|
300
|
+
"INPUT",
|
|
301
|
+
"KEYGEN",
|
|
302
|
+
"LINK",
|
|
303
|
+
"META",
|
|
304
|
+
"PARAM",
|
|
305
|
+
"SOURCE",
|
|
306
|
+
"TRACK",
|
|
307
|
+
"WBR"
|
|
308
|
+
].includes(e.tagName);
|
|
309
|
+
}
|
|
310
|
+
static isLineBreakTag(e) {
|
|
311
|
+
return ["BR", "WBR"].includes(e.tagName);
|
|
312
|
+
}
|
|
313
|
+
static isValidClassName(e) {
|
|
314
|
+
if (e === "" || /\s/.test(e)) return !1;
|
|
315
|
+
try {
|
|
316
|
+
return document.createElement("div").classList.add(e), !0;
|
|
317
|
+
} catch (e) {
|
|
318
|
+
return !1;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
static safelyAddClasses(t, n) {
|
|
322
|
+
let r = [], i = [];
|
|
323
|
+
for (let t of n) e.isValidClassName(t) ? r.push(t) : i.push(t);
|
|
324
|
+
if (r.length > 0 && t.classList.add(...r), i.length > 0) {
|
|
325
|
+
let e = t.className, n = e ? `${e} ${i.join(" ")}` : i.join(" ");
|
|
326
|
+
t.setAttribute("class", n);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
static make(t, n = null, r = {}) {
|
|
330
|
+
let i = document.createElement(t);
|
|
331
|
+
if (Array.isArray(n)) {
|
|
332
|
+
let t = n.filter((e) => e !== void 0 && e !== "").flatMap((e) => e.split(" ")).filter((e) => e !== "");
|
|
333
|
+
e.safelyAddClasses(i, t);
|
|
334
|
+
}
|
|
335
|
+
if (typeof n == "string" && n !== "") {
|
|
336
|
+
let t = n.split(" ").filter((e) => e !== "");
|
|
337
|
+
e.safelyAddClasses(i, t);
|
|
338
|
+
}
|
|
339
|
+
for (let e in r) {
|
|
340
|
+
if (!Object.prototype.hasOwnProperty.call(r, e)) continue;
|
|
341
|
+
let t = r[e];
|
|
342
|
+
if (t != null) {
|
|
343
|
+
if (e in i) {
|
|
344
|
+
i[e] = t;
|
|
345
|
+
continue;
|
|
346
|
+
}
|
|
347
|
+
i.setAttribute(e, String(t));
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
return i;
|
|
351
|
+
}
|
|
352
|
+
static text(e) {
|
|
353
|
+
return document.createTextNode(e);
|
|
354
|
+
}
|
|
355
|
+
static append(e, t) {
|
|
356
|
+
Array.isArray(t) ? t.forEach((t) => e.appendChild(t)) : e.appendChild(t);
|
|
357
|
+
}
|
|
358
|
+
static prepend(e, t) {
|
|
359
|
+
Array.isArray(t) ? [...t].reverse().forEach((t) => e.prepend(t)) : e.prepend(t);
|
|
360
|
+
}
|
|
361
|
+
static find(e = document, t) {
|
|
362
|
+
return e.querySelector(t);
|
|
363
|
+
}
|
|
364
|
+
static get(e) {
|
|
365
|
+
return document.getElementById(e);
|
|
366
|
+
}
|
|
367
|
+
static findAll(e = document, t) {
|
|
368
|
+
return e.querySelectorAll(t);
|
|
369
|
+
}
|
|
370
|
+
static get allInputsSelector() {
|
|
371
|
+
return "[contenteditable=true], [contenteditable=\"plaintext-only\"], textarea, input:not([type]), " + [
|
|
372
|
+
"text",
|
|
373
|
+
"password",
|
|
374
|
+
"email",
|
|
375
|
+
"number",
|
|
376
|
+
"search",
|
|
377
|
+
"tel",
|
|
378
|
+
"url"
|
|
379
|
+
].map((e) => `input[type="${e}"]`).join(", ");
|
|
380
|
+
}
|
|
381
|
+
static findAllInputs(t) {
|
|
382
|
+
let n = Array.from(t.querySelectorAll(e.allInputsSelector)), r = [];
|
|
383
|
+
for (let e of n) e instanceof HTMLElement && r.push(e);
|
|
384
|
+
return r.reduce((t, n) => e.isNativeInput(n) || e.containsOnlyInlineElements(n) ? [...t, n] : [...t, ...e.getDeepestBlockElements(n)], []);
|
|
385
|
+
}
|
|
386
|
+
static getDeepestNode(t, n = !1) {
|
|
387
|
+
var r;
|
|
388
|
+
let i = n ? "lastChild" : "firstChild", a = n ? "previousSibling" : "nextSibling";
|
|
389
|
+
if (t === null || t.nodeType !== Node.ELEMENT_NODE) return t;
|
|
390
|
+
let o = t[i];
|
|
391
|
+
if (o === null) return t;
|
|
392
|
+
let s = o;
|
|
393
|
+
if (!(e.isSingleTag(s) && !e.isNativeInput(s) && !e.isLineBreakTag(s))) return this.getDeepestNode(s, n);
|
|
394
|
+
let c = s[a];
|
|
395
|
+
if (c) return this.getDeepestNode(c, n);
|
|
396
|
+
let l = (r = s.parentNode) == null ? void 0 : r[a];
|
|
397
|
+
return l ? this.getDeepestNode(l, n) : s.parentNode;
|
|
398
|
+
}
|
|
399
|
+
static isElement(e) {
|
|
400
|
+
return y(e) ? !1 : typeof e == "object" && !!e && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE;
|
|
401
|
+
}
|
|
402
|
+
static isFragment(e) {
|
|
403
|
+
return y(e) ? !1 : typeof e == "object" && !!e && "nodeType" in e && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
|
|
404
|
+
}
|
|
405
|
+
static isContentEditable(e) {
|
|
406
|
+
return e.contentEditable === "true" || e.contentEditable === "plaintext-only" || e instanceof HTMLElement && e.getAttribute("contenteditable") === "plaintext-only";
|
|
407
|
+
}
|
|
408
|
+
static isNativeInput(e) {
|
|
409
|
+
return typeof e == "object" && e && "tagName" in e && typeof e.tagName == "string" ? ["INPUT", "TEXTAREA"].includes(e.tagName) : !1;
|
|
410
|
+
}
|
|
411
|
+
static canSetCaret(t) {
|
|
412
|
+
return e.isNativeInput(t) ? !new Set([
|
|
413
|
+
"file",
|
|
414
|
+
"checkbox",
|
|
415
|
+
"radio",
|
|
416
|
+
"hidden",
|
|
417
|
+
"submit",
|
|
418
|
+
"button",
|
|
419
|
+
"image",
|
|
420
|
+
"reset"
|
|
421
|
+
]).has(t.type) : e.isContentEditable(t);
|
|
422
|
+
}
|
|
423
|
+
static isNodeEmpty(e, t) {
|
|
424
|
+
var n, r;
|
|
425
|
+
if (this.isSingleTag(e) && !this.isLineBreakTag(e)) return !1;
|
|
426
|
+
let i = this.isElement(e) && this.isNativeInput(e) ? e.value : (n = e.textContent) == null ? void 0 : n.replace("", ""), a = t ? i == null ? void 0 : i.replace(new RegExp(t, "g"), "") : i;
|
|
427
|
+
return ((r = a == null ? void 0 : a.length) == null ? 0 : r) === 0;
|
|
428
|
+
}
|
|
429
|
+
static isLeaf(e) {
|
|
430
|
+
return e.childNodes.length === 0;
|
|
431
|
+
}
|
|
432
|
+
static isEmpty(e, t) {
|
|
433
|
+
let n = [e];
|
|
434
|
+
for (; n.length > 0;) {
|
|
435
|
+
let e = n.shift();
|
|
436
|
+
if (e) {
|
|
437
|
+
if (this.isLeaf(e) && !this.isNodeEmpty(e, t)) return !1;
|
|
438
|
+
n.push(...Array.from(e.childNodes));
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
return !0;
|
|
442
|
+
}
|
|
443
|
+
static isHTMLString(t) {
|
|
444
|
+
let n = e.make("div");
|
|
445
|
+
return n.innerHTML = t, n.childElementCount > 0;
|
|
446
|
+
}
|
|
447
|
+
static getContentLength(t) {
|
|
448
|
+
var n, r;
|
|
449
|
+
return e.isNativeInput(t) ? t.value.length : t.nodeType === Node.TEXT_NODE ? t.length : (n = (r = t.textContent) == null ? void 0 : r.length) == null ? 0 : n;
|
|
450
|
+
}
|
|
451
|
+
static get blockElements() {
|
|
452
|
+
return /* @__PURE__ */ "address.article.aside.blockquote.canvas.div.dl.dt.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.li.main.nav.noscript.ol.output.p.pre.ruby.section.table.tbody.thead.tr.tfoot.ul.video".split(".");
|
|
453
|
+
}
|
|
454
|
+
static containsOnlyInlineElements(t) {
|
|
455
|
+
let n = _(t) ? (() => {
|
|
456
|
+
let e = document.createElement("div");
|
|
457
|
+
return e.innerHTML = t, e;
|
|
458
|
+
})() : t, r = (t) => !e.blockElements.includes(t.tagName.toLowerCase()) && Array.from(t.children).every(r);
|
|
459
|
+
return Array.from(n.children).every(r);
|
|
460
|
+
}
|
|
461
|
+
static getDeepestBlockElements(t) {
|
|
462
|
+
return e.containsOnlyInlineElements(t) ? [t] : Array.from(t.children).reduce((t, n) => [...t, ...e.getDeepestBlockElements(n)], []);
|
|
463
|
+
}
|
|
464
|
+
static getHolder(e) {
|
|
465
|
+
if (!_(e)) return e;
|
|
466
|
+
let t = document.getElementById(e);
|
|
467
|
+
if (t !== null) return t;
|
|
468
|
+
throw Error(`Element with id "${e}" not found`);
|
|
469
|
+
}
|
|
470
|
+
static isAnchor(e) {
|
|
471
|
+
return e.tagName.toLowerCase() === "a";
|
|
472
|
+
}
|
|
473
|
+
static offset(e) {
|
|
474
|
+
let t = e.getBoundingClientRect(), n = window.scrollX || document.documentElement.scrollLeft, r = window.scrollY || document.documentElement.scrollTop, i = t.top + r, a = t.left + n;
|
|
475
|
+
return {
|
|
476
|
+
top: i,
|
|
477
|
+
left: a,
|
|
478
|
+
bottom: i + t.height,
|
|
479
|
+
right: a + t.width
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
static getNodeByOffset(e, t) {
|
|
483
|
+
let n = document.createTreeWalker(e, NodeFilter.SHOW_TEXT, null), r = (e, i, a, o) => {
|
|
484
|
+
var s;
|
|
485
|
+
if (!e && a) {
|
|
486
|
+
let e = i - o, n = Math.max(t - e, 0);
|
|
487
|
+
return {
|
|
488
|
+
node: a,
|
|
489
|
+
offset: Math.min(n, o)
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
if (!e) return {
|
|
493
|
+
node: null,
|
|
494
|
+
offset: 0
|
|
495
|
+
};
|
|
496
|
+
let c = ((s = e.textContent) == null ? "" : s).length;
|
|
497
|
+
return i + c >= t ? {
|
|
498
|
+
node: e,
|
|
499
|
+
offset: Math.min(t - i, c)
|
|
500
|
+
} : r(n.nextNode(), i + c, e, c);
|
|
501
|
+
}, { node: i, offset: a } = r(n.nextNode(), 0, null, 0);
|
|
502
|
+
if (!i) return {
|
|
503
|
+
node: null,
|
|
504
|
+
offset: 0
|
|
505
|
+
};
|
|
506
|
+
let o = i.textContent;
|
|
507
|
+
return !o || o.length === 0 ? {
|
|
508
|
+
node: null,
|
|
509
|
+
offset: 0
|
|
510
|
+
} : {
|
|
511
|
+
node: i,
|
|
512
|
+
offset: a
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
}, xe = (e) => !/[^\t\n\r \u200B]/.test(e), Se = (e) => {
|
|
516
|
+
e.setAttribute("data-blok-empty", T.isEmpty(e) ? "true" : "false");
|
|
517
|
+
}, Ce = ["header", "table"], E = /* @__PURE__ */ new Map(), we = (e) => {
|
|
518
|
+
let t = [...new Set(e)];
|
|
519
|
+
for (let e of t) {
|
|
520
|
+
var n;
|
|
521
|
+
let t = (n = E.get(e)) == null ? 0 : n;
|
|
522
|
+
E.set(e, t + 1);
|
|
523
|
+
}
|
|
524
|
+
let r = { cleanedUp: !1 };
|
|
525
|
+
return () => {
|
|
526
|
+
if (!r.cleanedUp) {
|
|
527
|
+
r.cleanedUp = !0;
|
|
528
|
+
for (let e of t) {
|
|
529
|
+
let t = E.get(e);
|
|
530
|
+
t !== void 0 && (t <= 1 ? E.delete(e) : E.set(e, t - 1));
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
}, Te = () => [...Ce, ...E.keys()], Ee = (e) => e ? (e instanceof HTMLElement ? e : e.holder).closest("[data-blok-table-cell-blocks]") !== null : !1, De = (e) => Ce.includes(e) || E.has(e), Oe = class {
|
|
535
|
+
constructor() {
|
|
536
|
+
this.allListeners = [];
|
|
537
|
+
}
|
|
538
|
+
on(e, t, n, r = !1) {
|
|
539
|
+
if (this.findOne(e, t, n, r)) return;
|
|
540
|
+
let i = be("l"), a = {
|
|
541
|
+
id: i,
|
|
542
|
+
element: e,
|
|
543
|
+
eventType: t,
|
|
544
|
+
handler: n,
|
|
545
|
+
options: r
|
|
546
|
+
};
|
|
547
|
+
return this.allListeners.push(a), e.addEventListener(t, n, r), i;
|
|
548
|
+
}
|
|
549
|
+
off(e, t, n, r) {
|
|
550
|
+
let i = this.findAll(e, t, n, r);
|
|
551
|
+
i.forEach((e, t) => {
|
|
552
|
+
let n = this.allListeners.indexOf(i[t]);
|
|
553
|
+
n > -1 && (this.allListeners.splice(n, 1), e.element.removeEventListener(e.eventType, e.handler, e.options));
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
offById(e) {
|
|
557
|
+
let t = this.findById(e);
|
|
558
|
+
if (!t) return;
|
|
559
|
+
t.element.removeEventListener(t.eventType, t.handler, t.options);
|
|
560
|
+
let n = this.allListeners.indexOf(t);
|
|
561
|
+
n > -1 && this.allListeners.splice(n, 1);
|
|
562
|
+
}
|
|
563
|
+
findOne(e, t, n, r) {
|
|
564
|
+
var i;
|
|
565
|
+
return (i = this.findAll(e, t, n, r)[0]) == null ? null : i;
|
|
566
|
+
}
|
|
567
|
+
findAll(e, t, n, r) {
|
|
568
|
+
return e ? this.findByEventTarget(e).filter((e) => {
|
|
569
|
+
let i = t === void 0 || e.eventType === t, a = n === void 0 || e.handler === n, o = this.areOptionsEqual(e.options, r);
|
|
570
|
+
return i && a && o;
|
|
571
|
+
}) : [];
|
|
572
|
+
}
|
|
573
|
+
removeAll() {
|
|
574
|
+
this.allListeners.forEach((e) => {
|
|
575
|
+
e.element.removeEventListener(e.eventType, e.handler, e.options);
|
|
576
|
+
}), this.allListeners = [];
|
|
577
|
+
}
|
|
578
|
+
destroy() {
|
|
579
|
+
this.removeAll();
|
|
580
|
+
}
|
|
581
|
+
findByEventTarget(e) {
|
|
582
|
+
return this.allListeners.filter((t) => t.element === e);
|
|
583
|
+
}
|
|
584
|
+
findByType(e) {
|
|
585
|
+
return this.allListeners.filter((t) => t.eventType === e);
|
|
586
|
+
}
|
|
587
|
+
findByHandler(e) {
|
|
588
|
+
return this.allListeners.filter((t) => t.handler === e);
|
|
589
|
+
}
|
|
590
|
+
findById(e) {
|
|
591
|
+
return this.allListeners.find((t) => t.id === e);
|
|
592
|
+
}
|
|
593
|
+
normalizeListenerOptions(e) {
|
|
594
|
+
var t, n, r;
|
|
595
|
+
return typeof e == "boolean" ? {
|
|
596
|
+
capture: e,
|
|
597
|
+
once: !1,
|
|
598
|
+
passive: !1
|
|
599
|
+
} : e ? {
|
|
600
|
+
capture: (t = e.capture) == null ? !1 : t,
|
|
601
|
+
once: (n = e.once) == null ? !1 : n,
|
|
602
|
+
passive: (r = e.passive) == null ? !1 : r,
|
|
603
|
+
signal: e.signal
|
|
604
|
+
} : {
|
|
605
|
+
capture: !1,
|
|
606
|
+
once: !1,
|
|
607
|
+
passive: !1
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
areOptionsEqual(e, t) {
|
|
611
|
+
if (t === void 0) return !0;
|
|
612
|
+
let n = this.normalizeListenerOptions(e), r = this.normalizeListenerOptions(t);
|
|
613
|
+
return n.capture === r.capture && n.once === r.once && n.passive === r.passive && n.signal === r.signal;
|
|
614
|
+
}
|
|
615
|
+
}, D = (e, t) => {
|
|
616
|
+
if (!e.conversionConfig) return !1;
|
|
617
|
+
let n = e.conversionConfig[t];
|
|
618
|
+
return h(n) || _(n);
|
|
619
|
+
}, O = (e, t) => {
|
|
620
|
+
let n = t.includes(".") ? t : `toolNames.${t}`;
|
|
621
|
+
return e.has(n) ? e.t(n) : void 0;
|
|
622
|
+
}, ke = (e, t, n = "") => {
|
|
623
|
+
let r = t.titleKey ? O(e, t.titleKey) : void 0;
|
|
624
|
+
if (r !== void 0) return r;
|
|
625
|
+
let i = t.title ? O(e, t.title) : void 0;
|
|
626
|
+
if (i !== void 0) return i;
|
|
627
|
+
if (t.title) return t.title;
|
|
628
|
+
let a = n ? O(e, n) : void 0;
|
|
629
|
+
return a == null ? n : a;
|
|
630
|
+
}, Ae = (e, t, n) => {
|
|
631
|
+
let r = t ? O(e, t) : void 0;
|
|
632
|
+
if (r !== void 0) return r;
|
|
633
|
+
let i = O(e, n);
|
|
634
|
+
return i == null ? n : i;
|
|
635
|
+
}, je = (e, t) => D(e.tool, t), Me = (e, t) => Object.entries(e).some((([e, n]) => t[e] && w(t[e], n))), Ne = async (e, t) => {
|
|
636
|
+
let r = (await e.save()).data, i = t.find((t) => t.name === e.name);
|
|
637
|
+
return i !== void 0 && !D(i, "export") ? [] : t.reduce((t, i) => {
|
|
638
|
+
if (!D(i, "import") || i.toolbox === void 0) return t;
|
|
639
|
+
let a = new Set(i.toolbox.map((e) => e.data).filter((e) => e !== void 0).flatMap((e) => Object.keys(e))), o = i.toolbox.filter((t) => {
|
|
640
|
+
if (b(t) || t.icon === void 0) return !1;
|
|
641
|
+
let n = t.data !== void 0;
|
|
642
|
+
return !(n && t.data !== void 0 && [...a].every((e) => {
|
|
643
|
+
let n = t.data === void 0 ? void 0 : t.data[e], i = r[e];
|
|
644
|
+
return w(n, i);
|
|
645
|
+
}) || !n && i.name === e.name);
|
|
646
|
+
});
|
|
647
|
+
return o.length > 0 && t.push(n(n({}, i), {}, { toolbox: o })), t;
|
|
648
|
+
}, []);
|
|
649
|
+
}, Pe = (e, t) => e.mergeable ? e.name === t.name ? !0 : je(t, "export") && je(e, "import") : !1, Fe = async (e, t) => {
|
|
650
|
+
if (e.length === 0) return [];
|
|
651
|
+
if (e.length === 1) return Ne(e[0], t);
|
|
652
|
+
for (let n of e) {
|
|
653
|
+
let e = t.find((e) => e.name === n.name);
|
|
654
|
+
if (e !== void 0 && !D(e, "export")) return [];
|
|
655
|
+
}
|
|
656
|
+
let r = new Set(e.map((e) => e.name));
|
|
657
|
+
return t.reduce((e, t) => {
|
|
658
|
+
if (!D(t, "import") || t.toolbox === void 0) return e;
|
|
659
|
+
let i = t.toolbox.filter((e) => !(b(e) || e.icon === void 0 || e.data === void 0 && r.size === 1 && r.has(t.name)));
|
|
660
|
+
return i.length > 0 && e.push(n(n({}, t), {}, { toolbox: i })), e;
|
|
661
|
+
}, []);
|
|
662
|
+
}, Ie = (e, t) => {
|
|
663
|
+
let n = t == null ? void 0 : t.export;
|
|
664
|
+
return h(n) ? n(e) : _(n) ? e[n] : (n !== void 0 && p("Conversion «export» property must be a string or function. String means key of saved data object to export. Function should export processed string to export."), "");
|
|
665
|
+
}, Le = (e, t, n) => {
|
|
666
|
+
let r = t == null ? void 0 : t.import;
|
|
667
|
+
return h(r) ? r(e, n) : _(r) ? { [r]: e } : (r !== void 0 && p("Conversion «import» property must be a string or function. String means key of tool data to import. Function accepts a imported string and return composed tool data."), {});
|
|
668
|
+
}, Re = class {
|
|
669
|
+
constructor() {
|
|
670
|
+
this.subscribers = {};
|
|
671
|
+
}
|
|
672
|
+
on(e, t) {
|
|
673
|
+
e in this.subscribers || (this.subscribers[e] = []), this.subscribers[e].push(t);
|
|
674
|
+
}
|
|
675
|
+
once(e, t) {
|
|
676
|
+
e in this.subscribers || (this.subscribers[e] = []);
|
|
677
|
+
let n = (r) => {
|
|
678
|
+
let i = t(r), a = this.subscribers[e].indexOf(n);
|
|
679
|
+
return a !== -1 && this.subscribers[e].splice(a, 1), i;
|
|
680
|
+
};
|
|
681
|
+
this.subscribers[e].push(n);
|
|
682
|
+
}
|
|
683
|
+
emit(e, t) {
|
|
684
|
+
b(this.subscribers) || !this.subscribers[e] || this.subscribers[e].reduce((e, t) => {
|
|
685
|
+
let n = t(e);
|
|
686
|
+
return n === void 0 ? e : n;
|
|
687
|
+
}, t);
|
|
688
|
+
}
|
|
689
|
+
off(e, t) {
|
|
690
|
+
let n = this.subscribers[e];
|
|
691
|
+
if (n === void 0) {
|
|
692
|
+
console.warn(`EventDispatcher .off(): there is no subscribers for event "${e.toString()}". Probably, .off() called before .on()`);
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
695
|
+
let r = n.indexOf(t);
|
|
696
|
+
r !== -1 && n.splice(r, 1);
|
|
697
|
+
}
|
|
698
|
+
destroy() {
|
|
699
|
+
this.subscribers = {};
|
|
700
|
+
}
|
|
701
|
+
}, ze = "blok", Be = "inline-toolbar", Ve = "tooltip", He = "[data-blok-interface=inline-toolbar]", Ue = typeof process < "u" ? process.platform === "darwin" ? "Meta" : "Control" : typeof navigator < "u" && navigator.userAgent.toLowerCase().includes("mac") ? "Meta" : "Control", k = class {
|
|
702
|
+
static getAnchorNode() {
|
|
703
|
+
let e = window.getSelection();
|
|
704
|
+
return e ? e.anchorNode : null;
|
|
705
|
+
}
|
|
706
|
+
static getAnchorElement() {
|
|
707
|
+
let e = window.getSelection();
|
|
708
|
+
if (!e) return null;
|
|
709
|
+
let t = e.anchorNode;
|
|
710
|
+
return t ? T.isElement(t) ? t : t.parentElement : null;
|
|
711
|
+
}
|
|
712
|
+
static getAnchorOffset() {
|
|
713
|
+
let e = window.getSelection();
|
|
714
|
+
return e ? e.anchorOffset : null;
|
|
715
|
+
}
|
|
716
|
+
static getIsCollapsed() {
|
|
717
|
+
let e = window.getSelection();
|
|
718
|
+
return e ? e.isCollapsed : null;
|
|
719
|
+
}
|
|
720
|
+
static isSelectionAtBlok(e) {
|
|
721
|
+
if (!e) return !1;
|
|
722
|
+
let t = e.anchorNode || e.focusNode, n = t && t.nodeType === Node.TEXT_NODE ? t.parentNode : t, r = n && n instanceof Element ? n.closest(o(a.redactor)) : null;
|
|
723
|
+
return r ? r.nodeType === Node.ELEMENT_NODE : !1;
|
|
724
|
+
}
|
|
725
|
+
static getIsAtBlok() {
|
|
726
|
+
return this.isSelectionAtBlok(this.get());
|
|
727
|
+
}
|
|
728
|
+
static isRangeAtBlok(e) {
|
|
729
|
+
if (!e) return;
|
|
730
|
+
let t = e.startContainer && e.startContainer.nodeType === Node.TEXT_NODE ? e.startContainer.parentNode : e.startContainer, n = t && t instanceof Element ? t.closest(o(a.redactor)) : null;
|
|
731
|
+
return n ? n.nodeType === Node.ELEMENT_NODE : !1;
|
|
732
|
+
}
|
|
733
|
+
static getIsSelectionExists() {
|
|
734
|
+
let e = this.get();
|
|
735
|
+
return !!(e != null && e.anchorNode);
|
|
736
|
+
}
|
|
737
|
+
static get() {
|
|
738
|
+
return window.getSelection();
|
|
739
|
+
}
|
|
740
|
+
static getRange() {
|
|
741
|
+
return this.getRangeFromSelection(this.get());
|
|
742
|
+
}
|
|
743
|
+
static getRangeFromSelection(e) {
|
|
744
|
+
return e && e.rangeCount ? e.getRangeAt(0) : null;
|
|
745
|
+
}
|
|
746
|
+
static getRect() {
|
|
747
|
+
let e = {
|
|
748
|
+
x: 0,
|
|
749
|
+
y: 0,
|
|
750
|
+
width: 0,
|
|
751
|
+
height: 0
|
|
752
|
+
}, t = window.getSelection();
|
|
753
|
+
if (!t) return p("Method window.getSelection returned null", "warn"), e;
|
|
754
|
+
if (t.rangeCount === null || Number.isNaN(t.rangeCount)) return p("Method SelectionUtils.rangeCount is not supported", "warn"), e;
|
|
755
|
+
if (t.rangeCount === 0) return e;
|
|
756
|
+
let n = t.getRangeAt(0).cloneRange(), r = n.getBoundingClientRect();
|
|
757
|
+
if (r.x === 0 && r.y === 0) {
|
|
758
|
+
let e = document.createElement("span");
|
|
759
|
+
e.appendChild(document.createTextNode("")), n.insertNode(e);
|
|
760
|
+
let t = e.getBoundingClientRect(), r = e.parentNode;
|
|
761
|
+
return r == null || r.removeChild(e), r == null || r.normalize(), t;
|
|
762
|
+
}
|
|
763
|
+
return r;
|
|
764
|
+
}
|
|
765
|
+
static getText() {
|
|
766
|
+
var e;
|
|
767
|
+
let t = window.getSelection();
|
|
768
|
+
return (e = t == null ? void 0 : t.toString()) == null ? "" : e;
|
|
769
|
+
}
|
|
770
|
+
}, We = class {
|
|
771
|
+
static setCursor(e, t = 0) {
|
|
772
|
+
var n, r;
|
|
773
|
+
let i = document.createRange(), a = window.getSelection(), o = T.isNativeInput(e);
|
|
774
|
+
if (o && !T.canSetCaret(e)) return e.getBoundingClientRect();
|
|
775
|
+
if (o) return e.focus(), e.selectionStart = t, e.selectionEnd = t, e.getBoundingClientRect();
|
|
776
|
+
if (i.setStart(e, t), i.setEnd(e, t), !a) return e.getBoundingClientRect();
|
|
777
|
+
a.removeAllRanges(), a.addRange(i);
|
|
778
|
+
let s = T.isContentEditable(e) ? e : (n = (r = e.parentElement) == null ? void 0 : r.closest("[contenteditable=\"true\"]")) == null ? null : n;
|
|
779
|
+
return s !== null && document.activeElement !== s && s.focus(), i.getBoundingClientRect();
|
|
780
|
+
}
|
|
781
|
+
static isRangeInsideContainer(e) {
|
|
782
|
+
let t = k.getRange();
|
|
783
|
+
return t === null ? !1 : e.contains(t.startContainer);
|
|
784
|
+
}
|
|
785
|
+
static collapseToEnd() {
|
|
786
|
+
let e = window.getSelection();
|
|
787
|
+
if (!e || !e.focusNode) return;
|
|
788
|
+
let t = document.createRange();
|
|
789
|
+
t.selectNodeContents(e.focusNode), t.collapse(!1), e.removeAllRanges(), e.addRange(t);
|
|
790
|
+
}
|
|
791
|
+
}, Ge, A = class {
|
|
792
|
+
static applyBoxShadowToWrapper(e) {
|
|
793
|
+
let t = e.parentElement;
|
|
794
|
+
if (!t) return;
|
|
795
|
+
let n = window.getComputedStyle(t), r = window.getComputedStyle(e), i = parseFloat(n.lineHeight), a = parseFloat(r.fontSize), o = Number.isNaN(i) ? a * 1.2 : i, s = e.getBoundingClientRect(), c = Math.max(0, (o - s.height) / 2);
|
|
796
|
+
c > 0 && (e.style.boxShadow = `0 ${c}px 0 ${this.BG_COLOR}, 0 -${c}px 0 ${this.BG_COLOR}`);
|
|
797
|
+
}
|
|
798
|
+
static applyLineHeightExtensions(e) {
|
|
799
|
+
let t = this.collectAllLineRects(e);
|
|
800
|
+
if (t.length === 0) return;
|
|
801
|
+
t.sort((e, t) => e.top - t.top);
|
|
802
|
+
let n = this.groupRectsByLine(t);
|
|
803
|
+
e.forEach((e) => {
|
|
804
|
+
this.applyMultiLineBoxShadow(e, n);
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
static collectAllLineRects(e) {
|
|
808
|
+
let t = [];
|
|
809
|
+
return e.forEach((e) => {
|
|
810
|
+
let n = e.getClientRects();
|
|
811
|
+
Array.from(n).forEach((n) => {
|
|
812
|
+
t.push({
|
|
813
|
+
top: n.top,
|
|
814
|
+
bottom: n.bottom,
|
|
815
|
+
span: e
|
|
816
|
+
});
|
|
817
|
+
});
|
|
818
|
+
}), t;
|
|
819
|
+
}
|
|
820
|
+
static groupRectsByLine(e) {
|
|
821
|
+
let t = [];
|
|
822
|
+
return e.forEach((e) => {
|
|
823
|
+
let n = t.find((t) => Math.abs(t.top - e.top) < 2);
|
|
824
|
+
n ? (n.top = Math.min(n.top, e.top), n.bottom = Math.max(n.bottom, e.bottom)) : t.push({
|
|
825
|
+
top: e.top,
|
|
826
|
+
bottom: e.bottom
|
|
827
|
+
});
|
|
828
|
+
}), t.sort((e, t) => e.top - t.top), t;
|
|
829
|
+
}
|
|
830
|
+
static applyMultiLineBoxShadow(e, t) {
|
|
831
|
+
let n = e.getClientRects();
|
|
832
|
+
if (n.length === 0) return;
|
|
833
|
+
let r = e.parentElement;
|
|
834
|
+
if (!r) return;
|
|
835
|
+
let i = window.getComputedStyle(r), a = parseFloat(i.lineHeight), o = parseFloat(window.getComputedStyle(e).fontSize), s = Number.isNaN(a) ? o * 1.2 : a, c = n[0], l = n[n.length - 1], u = this.findLineIndex(c.top, t), d = this.findLineIndex(l.top, t), f = n.length > 1 && u !== d, p = u === 0, m = d === t.length - 1, h = Math.max(0, (s - c.height) / 2), g = f ? this.calculateLineTopExtension(h, p, t, u) : h, _ = f ? this.calculateLineBottomExtension(h, m, t, d) : h, v = this.buildBoxShadow(g, _);
|
|
836
|
+
e.style.boxShadow = v;
|
|
837
|
+
}
|
|
838
|
+
static findLineIndex(e, t) {
|
|
839
|
+
let n = t.findIndex((t) => Math.abs(t.top - e) < 5);
|
|
840
|
+
return n >= 0 ? n : 0;
|
|
841
|
+
}
|
|
842
|
+
static calculateLineTopExtension(e, t, n, r) {
|
|
843
|
+
return e;
|
|
844
|
+
}
|
|
845
|
+
static calculateLineBottomExtension(e, t, n, r) {
|
|
846
|
+
if (t) return e;
|
|
847
|
+
let i = n[r], a = n[r + 1].top - i.bottom, o = e;
|
|
848
|
+
return e + Math.max(0, a - o);
|
|
849
|
+
}
|
|
850
|
+
static buildBoxShadow(e, t) {
|
|
851
|
+
let n = [];
|
|
852
|
+
return n.push(`inset 0 0 0 9999px ${this.BG_COLOR}`), t > 0 && n.push(`0 ${t}px 0 ${this.BG_COLOR}`), e > 0 && n.push(`0 -${e}px 0 ${this.BG_COLOR}`), n.join(", ");
|
|
853
|
+
}
|
|
854
|
+
};
|
|
855
|
+
Ge = A, Ge.BG_COLOR = "rgba(0, 0, 0, 0.08)";
|
|
856
|
+
//#endregion
|
|
857
|
+
//#region src/components/selection/fake-background/text-nodes.ts
|
|
858
|
+
var Ke = class {
|
|
859
|
+
static collectTextNodes(e) {
|
|
860
|
+
let t = [], { commonAncestorContainer: n } = e;
|
|
861
|
+
if (n.nodeType === Node.TEXT_NODE) return t.push(n), t;
|
|
862
|
+
let r = document.createTreeWalker(n, NodeFilter.SHOW_TEXT, { acceptNode: (t) => e.intersectsNode(t) && t.textContent && t.textContent.length > 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT });
|
|
863
|
+
for (; r.nextNode();) t.push(r.currentNode);
|
|
864
|
+
return t;
|
|
865
|
+
}
|
|
866
|
+
static findLineBreakPositions(e, t) {
|
|
867
|
+
let n = e.textContent || "", r = document.createRange();
|
|
868
|
+
return Array.from({ length: n.length }, (e, t) => t).reduce((n, i) => {
|
|
869
|
+
if (n.positions.length >= t - 1) return n;
|
|
870
|
+
r.setStart(e, i), r.setEnd(e, i + 1);
|
|
871
|
+
let a = r.getBoundingClientRect();
|
|
872
|
+
return n.lastTop !== -1 && Math.abs(a.top - n.lastTop) > 5 && n.positions.push(i), {
|
|
873
|
+
positions: n.positions,
|
|
874
|
+
lastTop: a.top
|
|
875
|
+
};
|
|
876
|
+
}, {
|
|
877
|
+
positions: [],
|
|
878
|
+
lastTop: -1
|
|
879
|
+
}).positions;
|
|
880
|
+
}
|
|
881
|
+
static splitTextAtPositions(e, t) {
|
|
882
|
+
let n = [
|
|
883
|
+
0,
|
|
884
|
+
...t,
|
|
885
|
+
e.length
|
|
886
|
+
];
|
|
887
|
+
return n.slice(0, -1).map((t, r) => e.substring(t, n[r + 1])).filter((e) => e.length > 0);
|
|
888
|
+
}
|
|
889
|
+
}, j = class {
|
|
890
|
+
static wrapRangeWithHighlight(e) {
|
|
891
|
+
if (e.collapsed) return null;
|
|
892
|
+
let t = T.make("span");
|
|
893
|
+
t.setAttribute("data-blok-testid", "fake-background"), t.setAttribute("data-blok-fake-background", "true"), t.setAttribute("data-blok-mutation-free", "true"), t.style.color = "inherit", t.style.boxDecorationBreak = "clone", t.style["-webkit-box-decoration-break"] = "clone", t.style.whiteSpace = "pre-wrap";
|
|
894
|
+
let n = e.extractContents();
|
|
895
|
+
return n.childNodes.length === 0 ? null : (t.appendChild(n), e.insertNode(t), t);
|
|
896
|
+
}
|
|
897
|
+
static postProcessHighlightWrappers(e) {
|
|
898
|
+
let t = [];
|
|
899
|
+
return e.forEach((e) => {
|
|
900
|
+
let n = this.splitMultiLineWrapper(e);
|
|
901
|
+
t.push(...n);
|
|
902
|
+
}), t;
|
|
903
|
+
}
|
|
904
|
+
static splitMultiLineWrapper(e) {
|
|
905
|
+
let t = e.getClientRects();
|
|
906
|
+
if (t.length <= 1) return A.applyBoxShadowToWrapper(e), [e];
|
|
907
|
+
let n = e.textContent || "", r = e.parentNode;
|
|
908
|
+
if (!r || !n) return A.applyBoxShadowToWrapper(e), [e];
|
|
909
|
+
let i = [], a = e.firstChild;
|
|
910
|
+
if (!a || a.nodeType !== Node.TEXT_NODE) return A.applyBoxShadowToWrapper(e), [e];
|
|
911
|
+
let o = Ke.findLineBreakPositions(a, t.length);
|
|
912
|
+
if (o.length === 0) return A.applyBoxShadowToWrapper(e), [e];
|
|
913
|
+
let s = Ke.splitTextAtPositions(n, o), c = document.createDocumentFragment();
|
|
914
|
+
return s.forEach((e) => {
|
|
915
|
+
if (e.length === 0) return;
|
|
916
|
+
let t = T.make("span");
|
|
917
|
+
t.setAttribute("data-blok-testid", "fake-background"), t.setAttribute("data-blok-fake-background", "true"), t.setAttribute("data-blok-mutation-free", "true"), t.style.color = "inherit", t.style.boxDecorationBreak = "clone", t.style["-webkit-box-decoration-break"] = "clone", t.style.whiteSpace = "pre-wrap", t.textContent = e, c.appendChild(t), i.push(t);
|
|
918
|
+
}), r.replaceChild(c, e), i;
|
|
919
|
+
}
|
|
920
|
+
static unwrapFakeBackground(e) {
|
|
921
|
+
let t = e.parentNode;
|
|
922
|
+
if (t) {
|
|
923
|
+
for (; e.firstChild;) t.insertBefore(e.firstChild, e);
|
|
924
|
+
t.removeChild(e);
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
}, qe = class {
|
|
928
|
+
constructor(e) {
|
|
929
|
+
this.selectionUtils = e;
|
|
930
|
+
}
|
|
931
|
+
setFakeBackground() {
|
|
932
|
+
this.removeFakeBackground();
|
|
933
|
+
let e = window.getSelection();
|
|
934
|
+
if (!e || e.rangeCount === 0) return;
|
|
935
|
+
let t = e.getRangeAt(0);
|
|
936
|
+
if (t.collapsed) return;
|
|
937
|
+
let n = Ke.collectTextNodes(t);
|
|
938
|
+
if (n.length === 0) return;
|
|
939
|
+
let r = t.startContainer, i = t.startOffset, a = t.endContainer, o = t.endOffset, s = [];
|
|
940
|
+
if (n.forEach((e) => {
|
|
941
|
+
var t, n;
|
|
942
|
+
let c = document.createRange(), l = e === r, u = e === a, d = l ? i : 0, f = (t = (n = e.textContent) == null ? void 0 : n.length) == null ? 0 : t, p = u ? o : f;
|
|
943
|
+
if (d === p) return;
|
|
944
|
+
c.setStart(e, d), c.setEnd(e, p);
|
|
945
|
+
let m = j.wrapRangeWithHighlight(c);
|
|
946
|
+
m && s.push(m);
|
|
947
|
+
}), s.length === 0) return;
|
|
948
|
+
let c = j.postProcessHighlightWrappers(s);
|
|
949
|
+
A.applyLineHeightExtensions(c);
|
|
950
|
+
let l = document.createRange();
|
|
951
|
+
l.setStartBefore(c[0]), l.setEndAfter(c[c.length - 1]), this.selectionUtils.savedSelectionRange = l.cloneRange();
|
|
952
|
+
let u = window.getSelection();
|
|
953
|
+
u && (u.removeAllRanges(), u.addRange(l)), this.selectionUtils.isFakeBackgroundEnabled = !0;
|
|
954
|
+
}
|
|
955
|
+
removeFakeBackground() {
|
|
956
|
+
this.selectionUtils.isFakeBackgroundEnabled && (this.removeHighlightSpans(), this.selectionUtils.isFakeBackgroundEnabled = !1), this.removeOrphanedFakeBackgroundElements();
|
|
957
|
+
}
|
|
958
|
+
removeOrphanedFakeBackgroundElements() {
|
|
959
|
+
document.querySelectorAll("[data-blok-fake-background=\"true\"]").forEach((e) => {
|
|
960
|
+
j.unwrapFakeBackground(e);
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
clearFakeBackground() {
|
|
964
|
+
this.removeOrphanedFakeBackgroundElements(), this.selectionUtils.isFakeBackgroundEnabled = !1;
|
|
965
|
+
}
|
|
966
|
+
removeHighlightSpans() {
|
|
967
|
+
let e = document.querySelectorAll("[data-blok-fake-background=\"true\"]");
|
|
968
|
+
if (e.length === 0) return;
|
|
969
|
+
let t = e[0], n = e[e.length - 1], r = t.firstChild, i = n.lastChild;
|
|
970
|
+
if (e.forEach((e) => {
|
|
971
|
+
j.unwrapFakeBackground(e);
|
|
972
|
+
}), r && i) {
|
|
973
|
+
var a;
|
|
974
|
+
let e = document.createRange();
|
|
975
|
+
e.setStart(r, 0), e.setEnd(i, ((a = i.textContent) == null ? void 0 : a.length) || 0), this.selectionUtils.savedSelectionRange = e;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
}, Je = class {
|
|
979
|
+
static addFakeCursor() {
|
|
980
|
+
let e = k.getRange();
|
|
981
|
+
if (e === null) return;
|
|
982
|
+
let t = T.make("span");
|
|
983
|
+
t.setAttribute(a.fakeCursor, ""), t.setAttribute("data-blok-mutation-free", "true"), e.collapse(), e.insertNode(t);
|
|
984
|
+
}
|
|
985
|
+
static isFakeCursorInsideContainer(e) {
|
|
986
|
+
return T.find(e, o(a.fakeCursor)) !== null;
|
|
987
|
+
}
|
|
988
|
+
static removeFakeCursor(e = document.body) {
|
|
989
|
+
let t = T.find(e, o(a.fakeCursor));
|
|
990
|
+
t && t.remove();
|
|
991
|
+
}
|
|
992
|
+
}, Ye = class {
|
|
993
|
+
static findParentTag(e, t, n = 10) {
|
|
994
|
+
let r = window.getSelection();
|
|
995
|
+
if (!r || !r.anchorNode || !r.focusNode) return null;
|
|
996
|
+
let i = [r.anchorNode, r.focusNode], a = (r) => {
|
|
997
|
+
let i = (n, r) => {
|
|
998
|
+
if (r <= 0 || !n) return null;
|
|
999
|
+
let a = n.nodeType === Node.ELEMENT_NODE && n.tagName === e, o = !t || n.classList && n.classList.contains(t);
|
|
1000
|
+
if (a && o) return n;
|
|
1001
|
+
if (!n.parentNode) return null;
|
|
1002
|
+
let s = n.parentNode, c = !t || s.classList && s.classList.contains(t);
|
|
1003
|
+
return s.tagName === e && c ? s : i(s, r - 1);
|
|
1004
|
+
};
|
|
1005
|
+
return i(r, n);
|
|
1006
|
+
};
|
|
1007
|
+
for (let e of i) {
|
|
1008
|
+
let t = a(e);
|
|
1009
|
+
if (t) return t;
|
|
1010
|
+
}
|
|
1011
|
+
return null;
|
|
1012
|
+
}
|
|
1013
|
+
static expandToTag(e) {
|
|
1014
|
+
let t = window.getSelection();
|
|
1015
|
+
if (!t) return;
|
|
1016
|
+
t.removeAllRanges();
|
|
1017
|
+
let n = document.createRange();
|
|
1018
|
+
n.selectNodeContents(e), t.addRange(n);
|
|
1019
|
+
}
|
|
1020
|
+
}, Xe = class {
|
|
1021
|
+
constructor() {
|
|
1022
|
+
this.instance = null, this.selection = null, this.savedSelectionRange = null, this.isFakeBackgroundEnabled = !1, this.fakeBackgroundManager = new qe(this);
|
|
1023
|
+
}
|
|
1024
|
+
static get anchorNode() {
|
|
1025
|
+
return k.getAnchorNode();
|
|
1026
|
+
}
|
|
1027
|
+
static get anchorElement() {
|
|
1028
|
+
return k.getAnchorElement();
|
|
1029
|
+
}
|
|
1030
|
+
static get anchorOffset() {
|
|
1031
|
+
return k.getAnchorOffset();
|
|
1032
|
+
}
|
|
1033
|
+
static get isCollapsed() {
|
|
1034
|
+
return k.getIsCollapsed();
|
|
1035
|
+
}
|
|
1036
|
+
static get isAtBlok() {
|
|
1037
|
+
return k.getIsAtBlok();
|
|
1038
|
+
}
|
|
1039
|
+
static isSelectionAtBlok(e) {
|
|
1040
|
+
return k.isSelectionAtBlok(e);
|
|
1041
|
+
}
|
|
1042
|
+
static isRangeAtBlok(e) {
|
|
1043
|
+
return k.isRangeAtBlok(e);
|
|
1044
|
+
}
|
|
1045
|
+
static get isSelectionExists() {
|
|
1046
|
+
return k.getIsSelectionExists();
|
|
1047
|
+
}
|
|
1048
|
+
static get range() {
|
|
1049
|
+
return k.getRange();
|
|
1050
|
+
}
|
|
1051
|
+
static getRangeFromSelection(e) {
|
|
1052
|
+
return k.getRangeFromSelection(e);
|
|
1053
|
+
}
|
|
1054
|
+
static get rect() {
|
|
1055
|
+
return k.getRect();
|
|
1056
|
+
}
|
|
1057
|
+
static get text() {
|
|
1058
|
+
return k.getText();
|
|
1059
|
+
}
|
|
1060
|
+
static get() {
|
|
1061
|
+
return k.get();
|
|
1062
|
+
}
|
|
1063
|
+
static setCursor(e, t = 0) {
|
|
1064
|
+
return We.setCursor(e, t);
|
|
1065
|
+
}
|
|
1066
|
+
static isRangeInsideContainer(e) {
|
|
1067
|
+
return We.isRangeInsideContainer(e);
|
|
1068
|
+
}
|
|
1069
|
+
static addFakeCursor() {
|
|
1070
|
+
Je.addFakeCursor();
|
|
1071
|
+
}
|
|
1072
|
+
static isFakeCursorInsideContainer(e) {
|
|
1073
|
+
return Je.isFakeCursorInsideContainer(e);
|
|
1074
|
+
}
|
|
1075
|
+
static removeFakeCursor(e = document.body) {
|
|
1076
|
+
Je.removeFakeCursor(e);
|
|
1077
|
+
}
|
|
1078
|
+
removeFakeBackground() {
|
|
1079
|
+
this.fakeBackgroundManager.removeFakeBackground();
|
|
1080
|
+
}
|
|
1081
|
+
removeOrphanedFakeBackgroundElements() {
|
|
1082
|
+
this.fakeBackgroundManager.removeOrphanedFakeBackgroundElements();
|
|
1083
|
+
}
|
|
1084
|
+
clearFakeBackground() {
|
|
1085
|
+
this.fakeBackgroundManager.clearFakeBackground();
|
|
1086
|
+
}
|
|
1087
|
+
setFakeBackground() {
|
|
1088
|
+
this.fakeBackgroundManager.setFakeBackground();
|
|
1089
|
+
}
|
|
1090
|
+
save() {
|
|
1091
|
+
this.savedSelectionRange = k.getRange();
|
|
1092
|
+
}
|
|
1093
|
+
restore() {
|
|
1094
|
+
if (!this.savedSelectionRange) return;
|
|
1095
|
+
let e = window.getSelection();
|
|
1096
|
+
e && (e.removeAllRanges(), e.addRange(this.savedSelectionRange));
|
|
1097
|
+
}
|
|
1098
|
+
clearSaved() {
|
|
1099
|
+
this.savedSelectionRange = null;
|
|
1100
|
+
}
|
|
1101
|
+
collapseToEnd() {
|
|
1102
|
+
We.collapseToEnd();
|
|
1103
|
+
}
|
|
1104
|
+
findParentTag(e, t, n = 10) {
|
|
1105
|
+
return Ye.findParentTag(e, t, n);
|
|
1106
|
+
}
|
|
1107
|
+
expandToTag(e) {
|
|
1108
|
+
Ye.expandToTag(e);
|
|
1109
|
+
}
|
|
1110
|
+
}, M = /* @__PURE__ */ function(e) {
|
|
1111
|
+
return e.Default = "default", e.Separator = "separator", e.Html = "html", e;
|
|
1112
|
+
}({}), Ze = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
1113
|
+
(function(n, r) {
|
|
1114
|
+
typeof define == "function" && define.amd ? define("html-janitor", r) : typeof e == "object" ? t.exports = r() : n.HTMLJanitor = r();
|
|
1115
|
+
})(e, function() {
|
|
1116
|
+
function e(e) {
|
|
1117
|
+
var t = e.tags;
|
|
1118
|
+
if (!Object.keys(t).map(function(e) {
|
|
1119
|
+
return typeof t[e];
|
|
1120
|
+
}).every(function(e) {
|
|
1121
|
+
return e === "object" || e === "boolean" || e === "function";
|
|
1122
|
+
})) throw Error("The configuration was invalid");
|
|
1123
|
+
this.config = e;
|
|
1124
|
+
}
|
|
1125
|
+
var t = [
|
|
1126
|
+
"P",
|
|
1127
|
+
"LI",
|
|
1128
|
+
"TD",
|
|
1129
|
+
"TH",
|
|
1130
|
+
"DIV",
|
|
1131
|
+
"H1",
|
|
1132
|
+
"H2",
|
|
1133
|
+
"H3",
|
|
1134
|
+
"H4",
|
|
1135
|
+
"H5",
|
|
1136
|
+
"H6",
|
|
1137
|
+
"PRE"
|
|
1138
|
+
];
|
|
1139
|
+
function n(e) {
|
|
1140
|
+
return t.indexOf(e.nodeName) !== -1;
|
|
1141
|
+
}
|
|
1142
|
+
var r = [
|
|
1143
|
+
"A",
|
|
1144
|
+
"B",
|
|
1145
|
+
"STRONG",
|
|
1146
|
+
"I",
|
|
1147
|
+
"EM",
|
|
1148
|
+
"SUB",
|
|
1149
|
+
"SUP",
|
|
1150
|
+
"U",
|
|
1151
|
+
"STRIKE"
|
|
1152
|
+
];
|
|
1153
|
+
function i(e) {
|
|
1154
|
+
return r.indexOf(e.nodeName) !== -1;
|
|
1155
|
+
}
|
|
1156
|
+
e.prototype.clean = function(e) {
|
|
1157
|
+
let t = document.implementation.createHTMLDocument(), n = t.createElement("div");
|
|
1158
|
+
return n.innerHTML = e, this._sanitize(t, n), n.innerHTML;
|
|
1159
|
+
}, e.prototype._sanitize = function(e, t) {
|
|
1160
|
+
var r = a(e, t), l = r.firstChild();
|
|
1161
|
+
if (l) do {
|
|
1162
|
+
if (l.nodeType === Node.TEXT_NODE) if (l.data.trim() === "" && (l.previousElementSibling && n(l.previousElementSibling) || l.nextElementSibling && n(l.nextElementSibling))) {
|
|
1163
|
+
t.removeChild(l), this._sanitize(e, t);
|
|
1164
|
+
break;
|
|
1165
|
+
} else continue;
|
|
1166
|
+
if (l.nodeType === Node.COMMENT_NODE) {
|
|
1167
|
+
t.removeChild(l), this._sanitize(e, t);
|
|
1168
|
+
break;
|
|
1169
|
+
}
|
|
1170
|
+
var u = i(l), d;
|
|
1171
|
+
u && (d = Array.prototype.some.call(l.childNodes, n));
|
|
1172
|
+
var f = !!t.parentNode, p = n(t) && n(l) && f, m = l.nodeName.toLowerCase(), h = o(this.config, m, l);
|
|
1173
|
+
if (u && d || s(l, h) || !this.config.keepNestedBlockElements && p) {
|
|
1174
|
+
if (!(l.nodeName === "SCRIPT" || l.nodeName === "STYLE")) for (; l.childNodes.length > 0;) t.insertBefore(l.childNodes[0], l);
|
|
1175
|
+
t.removeChild(l), this._sanitize(e, t);
|
|
1176
|
+
break;
|
|
1177
|
+
}
|
|
1178
|
+
for (var g = 0; g < l.attributes.length; g += 1) {
|
|
1179
|
+
var _ = l.attributes[g];
|
|
1180
|
+
c(_, h, l) && (l.removeAttribute(_.name), --g);
|
|
1181
|
+
}
|
|
1182
|
+
this._sanitize(e, l);
|
|
1183
|
+
} while (l = r.nextSibling());
|
|
1184
|
+
};
|
|
1185
|
+
function a(e, t) {
|
|
1186
|
+
return e.createTreeWalker(t, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT, null, !1);
|
|
1187
|
+
}
|
|
1188
|
+
function o(e, t, n) {
|
|
1189
|
+
return typeof e.tags[t] == "function" ? e.tags[t](n) : e.tags[t];
|
|
1190
|
+
}
|
|
1191
|
+
function s(e, t) {
|
|
1192
|
+
return t === void 0 ? !0 : typeof t == "boolean" ? !t : !1;
|
|
1193
|
+
}
|
|
1194
|
+
function c(e, t, n) {
|
|
1195
|
+
var r = e.name.toLowerCase();
|
|
1196
|
+
return t === !0 ? !1 : typeof t[r] == "function" ? !t[r](e.value, n) : t[r] === void 0 || t[r] === !1 ? !0 : typeof t[r] == "string" ? t[r] !== e.value : !1;
|
|
1197
|
+
}
|
|
1198
|
+
return e;
|
|
1199
|
+
});
|
|
1200
|
+
})))()), Qe = /^\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)/i, $e = /\s*(?:href|src)\s*=\s*(?:"\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^"]*"|'\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^']*|(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^ \t\r\n>]*)/gi, et = (e, t, r = {}) => e.map((e) => {
|
|
1201
|
+
let i = h(t) ? t(e.tool) : t, a = i == null ? {} : i;
|
|
1202
|
+
return g(a) && b(a) && b(r) ? e : n(n({}, e), {}, { data: tt(e.data, a, r) });
|
|
1203
|
+
}), N = (e, t = {}) => new Ze.default({ tags: t }).clean(e), tt = (e, t, n) => Array.isArray(e) ? nt(e, t, n) : g(e) ? rt(e, t, n) : _(e) ? it(e, t, n) : e, nt = (e, t, n) => e.map((e) => tt(e, t, n)), rt = (e, t, n) => {
|
|
1204
|
+
let r = {}, i = e;
|
|
1205
|
+
for (let a in e) {
|
|
1206
|
+
if (!Object.prototype.hasOwnProperty.call(e, a)) continue;
|
|
1207
|
+
let o = i[a], s = g(t) ? t : void 0, c = s == null ? void 0 : s[a];
|
|
1208
|
+
r[a] = tt(o, c !== void 0 && at(c) ? c : t, n);
|
|
1209
|
+
}
|
|
1210
|
+
return r;
|
|
1211
|
+
}, it = (e, t, n) => {
|
|
1212
|
+
let r = mt(t, n);
|
|
1213
|
+
return r ? st(gt(N(e, r), r)) : b(n) ? st(e) : st(gt(N(e, n), n));
|
|
1214
|
+
}, at = (e) => g(e) || v(e) || h(e), ot = (e) => e ? Qe.test(e) : !1, st = (e) => {
|
|
1215
|
+
if (!e || e.indexOf("<") === -1) return e;
|
|
1216
|
+
if (typeof document < "u") {
|
|
1217
|
+
let t = document.createElement("template");
|
|
1218
|
+
return t.innerHTML = e, t.content.querySelectorAll("[href],[src]").forEach((e) => {
|
|
1219
|
+
["href", "src"].forEach((t) => {
|
|
1220
|
+
ot(e.getAttribute(t)) && e.removeAttribute(t);
|
|
1221
|
+
});
|
|
1222
|
+
}), t.innerHTML;
|
|
1223
|
+
}
|
|
1224
|
+
return e.replace($e, "");
|
|
1225
|
+
}, ct = (e) => {
|
|
1226
|
+
if (b(e)) return {};
|
|
1227
|
+
let t = {};
|
|
1228
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = P(e[n]));
|
|
1229
|
+
return t;
|
|
1230
|
+
}, lt = (e) => function(t) {
|
|
1231
|
+
let n = e.call(this, t);
|
|
1232
|
+
return n == null ? {} : n;
|
|
1233
|
+
}, ut = new Set([
|
|
1234
|
+
"class",
|
|
1235
|
+
"id",
|
|
1236
|
+
"title",
|
|
1237
|
+
"role",
|
|
1238
|
+
"dir",
|
|
1239
|
+
"lang"
|
|
1240
|
+
]), dt = (e) => {
|
|
1241
|
+
let t = e.toLowerCase();
|
|
1242
|
+
return t.startsWith("data-") || t.startsWith("aria-") || ut.has(t);
|
|
1243
|
+
}, ft = (e) => {
|
|
1244
|
+
let t = {};
|
|
1245
|
+
return Array.from(e.attributes).forEach((e) => {
|
|
1246
|
+
dt(e.name) && (t[e.name] = !0);
|
|
1247
|
+
}), t;
|
|
1248
|
+
}, P = (e) => e === !0 ? lt(ft) : e === !1 ? !1 : h(e) ? lt(e) : _(e) ? e : g(e) ? C({}, e) : e, pt = (e, t) => {
|
|
1249
|
+
if (b(e)) return ct(t);
|
|
1250
|
+
let n = {};
|
|
1251
|
+
for (let r in e) {
|
|
1252
|
+
if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
|
|
1253
|
+
let i = e[r], a = t ? t[r] : void 0;
|
|
1254
|
+
if (h(a)) {
|
|
1255
|
+
n[r] = P(a);
|
|
1256
|
+
continue;
|
|
1257
|
+
}
|
|
1258
|
+
if (h(i)) {
|
|
1259
|
+
n[r] = P(i);
|
|
1260
|
+
continue;
|
|
1261
|
+
}
|
|
1262
|
+
if (g(i) && g(a)) {
|
|
1263
|
+
n[r] = C({}, a, i);
|
|
1264
|
+
continue;
|
|
1265
|
+
}
|
|
1266
|
+
if (a !== void 0) {
|
|
1267
|
+
n[r] = P(a);
|
|
1268
|
+
continue;
|
|
1269
|
+
}
|
|
1270
|
+
n[r] = P(i);
|
|
1271
|
+
}
|
|
1272
|
+
if (!t) return n;
|
|
1273
|
+
for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (Object.prototype.hasOwnProperty.call(n, e) || (n[e] = P(t[e])));
|
|
1274
|
+
return n;
|
|
1275
|
+
}, mt = (e, t) => g(e) && !h(e) ? pt(t, e) : e === !1 ? {} : b(t) ? null : ct(t), ht = (e, ...t) => {
|
|
1276
|
+
if (b(e)) return Object.assign({}, ...t);
|
|
1277
|
+
let n = ct(e);
|
|
1278
|
+
return t.forEach((e) => {
|
|
1279
|
+
if (e) for (let t in e) {
|
|
1280
|
+
if (!Object.prototype.hasOwnProperty.call(e, t)) continue;
|
|
1281
|
+
let r = e[t];
|
|
1282
|
+
if (!Object.prototype.hasOwnProperty.call(n, t)) continue;
|
|
1283
|
+
let i = n[t];
|
|
1284
|
+
if (h(r)) {
|
|
1285
|
+
n[t] = r;
|
|
1286
|
+
continue;
|
|
1287
|
+
}
|
|
1288
|
+
if (!(r === !0 && h(i))) {
|
|
1289
|
+
if (r === !0) {
|
|
1290
|
+
n[t] = g(i) && !h(i) ? C({}, i) : P(r);
|
|
1291
|
+
continue;
|
|
1292
|
+
}
|
|
1293
|
+
if (g(r) && g(i)) {
|
|
1294
|
+
n[t] = C({}, i, r);
|
|
1295
|
+
continue;
|
|
1296
|
+
}
|
|
1297
|
+
n[t] = P(r);
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
}), n;
|
|
1301
|
+
}, gt = (e, t) => {
|
|
1302
|
+
if (typeof document > "u" || !e || e.indexOf("<") === -1) return e;
|
|
1303
|
+
let n = Object.entries(t).filter(([, e]) => h(e));
|
|
1304
|
+
if (n.length === 0) return e;
|
|
1305
|
+
let r = document.createElement("template");
|
|
1306
|
+
return r.innerHTML = e, n.forEach(([e, t]) => {
|
|
1307
|
+
r.content.querySelectorAll(e).forEach((e) => {
|
|
1308
|
+
let n = t(e);
|
|
1309
|
+
if (!(v(n) || h(n) || n == null)) for (let [t, r] of Object.entries(n)) {
|
|
1310
|
+
if (r === !1) {
|
|
1311
|
+
e.removeAttribute(t);
|
|
1312
|
+
continue;
|
|
1313
|
+
}
|
|
1314
|
+
r !== !0 && _(r) && e.setAttribute(t, r);
|
|
1315
|
+
}
|
|
1316
|
+
});
|
|
1317
|
+
}), r.innerHTML;
|
|
1318
|
+
}, F = "popover", _t = "manual", vt = "data-blok-top-layer", I = () => typeof HTMLElement < "u" && "popover" in HTMLElement.prototype, yt = (e) => {
|
|
1319
|
+
if (!I()) return !1;
|
|
1320
|
+
e.hasAttribute(F) || e.setAttribute(F, _t), e.setAttribute(vt, "true");
|
|
1321
|
+
try {
|
|
1322
|
+
return e.showPopover(), !0;
|
|
1323
|
+
} catch (e) {
|
|
1324
|
+
return !1;
|
|
1325
|
+
}
|
|
1326
|
+
}, bt = (e) => {
|
|
1327
|
+
if (I()) {
|
|
1328
|
+
if (e.hasAttribute(F)) {
|
|
1329
|
+
try {
|
|
1330
|
+
e.hidePopover();
|
|
1331
|
+
} catch (e) {}
|
|
1332
|
+
e.removeAttribute(F);
|
|
1333
|
+
}
|
|
1334
|
+
e.removeAttribute(vt);
|
|
1335
|
+
}
|
|
1336
|
+
}, xt = (e) => e.hasAttribute(vt), St = (e) => {
|
|
1337
|
+
e.removeAttribute(F);
|
|
1338
|
+
}, Ct, wt = 10, Tt = "tooltip", Et = "aria-hidden", Dt = "false", Ot = "true", kt = "visibility", At = "visible", jt = "hidden", Mt = class e {
|
|
1339
|
+
get CSS() {
|
|
1340
|
+
return {
|
|
1341
|
+
tooltip: i("fixed z-overlay top-0 left-0", "bg-tooltip-bg opacity-0", "select-none pointer-events-none", "rounded-lg shadow-tooltip", "mobile:hidden").split(" "),
|
|
1342
|
+
tooltipContent: i("px-2.5 py-1.5", "text-tooltip-font text-xs text-center", "tracking-[0.02em] leading-[1em]").split(" "),
|
|
1343
|
+
tooltipShown: ["opacity-100"]
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
static getInstance() {
|
|
1347
|
+
return e.instance || (e.instance = new e()), e.instance;
|
|
1348
|
+
}
|
|
1349
|
+
constructor() {
|
|
1350
|
+
this.nodes = {
|
|
1351
|
+
wrapper: null,
|
|
1352
|
+
content: null
|
|
1353
|
+
}, this.showed = !1, this.offsetTop = wt, this.offsetLeft = wt, this.offsetRight = wt, this.showingTimeout = null, this.ariaObserver = null, this.handleWindowScroll = () => {
|
|
1354
|
+
this.showed && this.hide();
|
|
1355
|
+
}, this.prepare(), window.addEventListener("scroll", this.handleWindowScroll, { passive: !0 });
|
|
1356
|
+
}
|
|
1357
|
+
show(e, t, n = {}) {
|
|
1358
|
+
this.nodes.wrapper || this.prepare(), this.showingTimeout && (clearTimeout(this.showingTimeout), this.showingTimeout = null);
|
|
1359
|
+
let r = Object.assign({
|
|
1360
|
+
placement: "bottom",
|
|
1361
|
+
marginTop: 0,
|
|
1362
|
+
marginLeft: 0,
|
|
1363
|
+
marginRight: 0,
|
|
1364
|
+
marginBottom: 0,
|
|
1365
|
+
delay: 0
|
|
1366
|
+
}, n);
|
|
1367
|
+
if (this.nodes.content && (this.nodes.content.innerHTML = "", this.nodes.content.appendChild(this.createContentNode(t)), this.nodes.wrapper)) {
|
|
1368
|
+
switch (r.placement) {
|
|
1369
|
+
case "top":
|
|
1370
|
+
this.placeTop(e, r);
|
|
1371
|
+
break;
|
|
1372
|
+
case "left":
|
|
1373
|
+
this.placeLeft(e, r);
|
|
1374
|
+
break;
|
|
1375
|
+
case "right":
|
|
1376
|
+
this.placeRight(e, r);
|
|
1377
|
+
break;
|
|
1378
|
+
default:
|
|
1379
|
+
this.placeBottom(e, r);
|
|
1380
|
+
break;
|
|
1381
|
+
}
|
|
1382
|
+
if (r && r.delay) {
|
|
1383
|
+
this.showingTimeout = setTimeout(() => {
|
|
1384
|
+
if (this.showingTimeout = null, this.nodes.wrapper) {
|
|
1385
|
+
let e = Array.isArray(this.CSS.tooltipShown) ? this.CSS.tooltipShown : [this.CSS.tooltipShown];
|
|
1386
|
+
this.nodes.wrapper.classList.add(...e), this.updateTooltipVisibility();
|
|
1387
|
+
}
|
|
1388
|
+
this.showed = !0;
|
|
1389
|
+
}, r.delay);
|
|
1390
|
+
return;
|
|
1391
|
+
}
|
|
1392
|
+
if (this.nodes.wrapper) {
|
|
1393
|
+
let e = Array.isArray(this.CSS.tooltipShown) ? this.CSS.tooltipShown : [this.CSS.tooltipShown];
|
|
1394
|
+
this.nodes.wrapper.classList.add(...e), this.updateTooltipVisibility(), this.promoteToTopLayer();
|
|
1395
|
+
}
|
|
1396
|
+
this.showed = !0;
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
promoteToTopLayer() {
|
|
1400
|
+
this.nodes.wrapper !== null && yt(this.nodes.wrapper);
|
|
1401
|
+
}
|
|
1402
|
+
createContentNode(e) {
|
|
1403
|
+
if (typeof e == "string") return document.createTextNode(e);
|
|
1404
|
+
if (e instanceof Node) return e;
|
|
1405
|
+
throw Error("[Blok Tooltip] Wrong type of «content» passed. It should be an instance of Node or String. But " + typeof e + " given.");
|
|
1406
|
+
}
|
|
1407
|
+
hide() {
|
|
1408
|
+
if (this.showingTimeout && (clearTimeout(this.showingTimeout), this.showingTimeout = null), this.nodes.wrapper) {
|
|
1409
|
+
let e = Array.isArray(this.CSS.tooltipShown) ? this.CSS.tooltipShown : [this.CSS.tooltipShown];
|
|
1410
|
+
this.nodes.wrapper.classList.remove(...e), this.updateTooltipVisibility(), this.removeFromTopLayer();
|
|
1411
|
+
}
|
|
1412
|
+
this.showed = !1;
|
|
1413
|
+
}
|
|
1414
|
+
removeFromTopLayer() {
|
|
1415
|
+
this.nodes.wrapper !== null && bt(this.nodes.wrapper);
|
|
1416
|
+
}
|
|
1417
|
+
onHover(e, t, n = {}) {
|
|
1418
|
+
e.addEventListener("mouseenter", () => {
|
|
1419
|
+
let r = document.querySelector("[data-blok-popover-opened=\"true\"]");
|
|
1420
|
+
r !== null && !r.contains(e) || this.show(e, t, n);
|
|
1421
|
+
}), e.addEventListener("mouseleave", () => {
|
|
1422
|
+
this.hide();
|
|
1423
|
+
});
|
|
1424
|
+
}
|
|
1425
|
+
destroy() {
|
|
1426
|
+
var t;
|
|
1427
|
+
(t = this.ariaObserver) == null || t.disconnect(), this.ariaObserver = null, this.nodes.wrapper && this.nodes.wrapper.remove(), window.removeEventListener("scroll", this.handleWindowScroll), e.instance = null;
|
|
1428
|
+
}
|
|
1429
|
+
prepare() {
|
|
1430
|
+
this.nodes.wrapper = this.make("div", this.CSS.tooltip), this.nodes.wrapper.setAttribute(a.interface, Ve), this.nodes.wrapper.setAttribute("data-blok-testid", "tooltip"), this.nodes.content = this.make("div", this.CSS.tooltipContent), this.nodes.content.setAttribute("data-blok-testid", "tooltip-content"), this.nodes.wrapper && this.nodes.content && (this.append(this.nodes.wrapper, this.nodes.content), this.append(document.body, this.nodes.wrapper), this.ensureTooltipAttributes());
|
|
1431
|
+
}
|
|
1432
|
+
updateTooltipVisibility() {
|
|
1433
|
+
if (!this.nodes.wrapper) return;
|
|
1434
|
+
let e = Array.isArray(this.CSS.tooltipShown) ? this.CSS.tooltipShown[0] : this.CSS.tooltipShown, t = this.nodes.wrapper.classList.contains(e);
|
|
1435
|
+
this.nodes.wrapper.style.setProperty(kt, t ? At : jt, t ? "" : "important"), this.nodes.wrapper.setAttribute(Et, t ? Dt : Ot), this.nodes.wrapper.setAttribute("data-blok-shown", t ? "true" : "false");
|
|
1436
|
+
}
|
|
1437
|
+
watchTooltipVisibility() {
|
|
1438
|
+
var e;
|
|
1439
|
+
this.nodes.wrapper && ((e = this.ariaObserver) == null || e.disconnect(), this.updateTooltipVisibility(), this.ariaObserver = new MutationObserver(() => {
|
|
1440
|
+
this.updateTooltipVisibility();
|
|
1441
|
+
}), this.ariaObserver.observe(this.nodes.wrapper, {
|
|
1442
|
+
attributes: !0,
|
|
1443
|
+
attributeFilter: ["class"]
|
|
1444
|
+
}));
|
|
1445
|
+
}
|
|
1446
|
+
ensureTooltipAttributes() {
|
|
1447
|
+
this.nodes.wrapper && ((!this.nodes.wrapper.hasAttribute(a.interface) || this.nodes.wrapper.getAttribute(a.interface) !== "tooltip") && this.nodes.wrapper.setAttribute(a.interface, Ve), this.nodes.wrapper.setAttribute("role", Tt), this.watchTooltipVisibility());
|
|
1448
|
+
}
|
|
1449
|
+
placeBottom(e, t) {
|
|
1450
|
+
var n;
|
|
1451
|
+
if (!this.nodes.wrapper) return;
|
|
1452
|
+
let r = e.getBoundingClientRect(), i = r.left + e.clientWidth / 2 - this.nodes.wrapper.offsetWidth / 2, a = r.bottom + this.getScrollTop() + this.offsetTop + ((n = t.marginTop) == null ? 0 : n);
|
|
1453
|
+
this.applyPlacement("bottom", i, a);
|
|
1454
|
+
}
|
|
1455
|
+
placeTop(e, t) {
|
|
1456
|
+
if (!this.nodes.wrapper) return;
|
|
1457
|
+
let n = e.getBoundingClientRect(), r = n.left + e.clientWidth / 2 - this.nodes.wrapper.offsetWidth / 2, i = n.top + this.getScrollTop() - this.nodes.wrapper.clientHeight - this.offsetTop;
|
|
1458
|
+
this.applyPlacement("top", r, i);
|
|
1459
|
+
}
|
|
1460
|
+
placeLeft(e, t) {
|
|
1461
|
+
var n;
|
|
1462
|
+
if (!this.nodes.wrapper) return;
|
|
1463
|
+
let r = e.getBoundingClientRect(), i = r.left - this.nodes.wrapper.offsetWidth - this.offsetLeft - ((n = t.marginLeft) == null ? 0 : n), a = r.top + this.getScrollTop() + e.clientHeight / 2 - this.nodes.wrapper.offsetHeight / 2;
|
|
1464
|
+
this.applyPlacement("left", i, a);
|
|
1465
|
+
}
|
|
1466
|
+
placeRight(e, t) {
|
|
1467
|
+
var n;
|
|
1468
|
+
if (!this.nodes.wrapper) return;
|
|
1469
|
+
let r = e.getBoundingClientRect(), i = r.right + this.offsetRight + ((n = t.marginRight) == null ? 0 : n), a = r.top + this.getScrollTop() + e.clientHeight / 2 - this.nodes.wrapper.offsetHeight / 2;
|
|
1470
|
+
this.applyPlacement("right", i, a);
|
|
1471
|
+
}
|
|
1472
|
+
applyPlacement(e, t, n) {
|
|
1473
|
+
this.nodes.wrapper && (this.nodes.wrapper.setAttribute("data-blok-placement", e), this.nodes.wrapper.style.left = `${t}px`, this.nodes.wrapper.style.top = `${n}px`);
|
|
1474
|
+
}
|
|
1475
|
+
getScrollTop() {
|
|
1476
|
+
return 0;
|
|
1477
|
+
}
|
|
1478
|
+
make(e, t = null, n = {}) {
|
|
1479
|
+
let r = document.createElement(e);
|
|
1480
|
+
Array.isArray(t) && r.classList.add(...t), typeof t == "string" && r.classList.add(t);
|
|
1481
|
+
for (let e in n) Object.prototype.hasOwnProperty.call(n, e) && (r[e] = n[e]);
|
|
1482
|
+
return r;
|
|
1483
|
+
}
|
|
1484
|
+
append(e, t) {
|
|
1485
|
+
Array.isArray(t) ? t.forEach((t) => e.appendChild(t)) : e.appendChild(t);
|
|
1486
|
+
}
|
|
1487
|
+
};
|
|
1488
|
+
Ct = Mt, Ct.instance = null;
|
|
1489
|
+
var L = () => Mt.getInstance(), Nt = (e, t, n) => {
|
|
1490
|
+
L().show(e, t, n == null ? {} : n);
|
|
1491
|
+
}, Pt = () => {
|
|
1492
|
+
L().hide();
|
|
1493
|
+
}, Ft = (e, t, n) => {
|
|
1494
|
+
L().onHover(e, t, n == null ? {} : n);
|
|
1495
|
+
}, It = () => {
|
|
1496
|
+
L().destroy();
|
|
1497
|
+
}, Lt = () => {
|
|
1498
|
+
var e, t;
|
|
1499
|
+
let n = window.getSelection();
|
|
1500
|
+
if (n === null) return [null, 0];
|
|
1501
|
+
let r = n.focusNode, i = n.focusOffset;
|
|
1502
|
+
if (r === null) return [null, 0];
|
|
1503
|
+
if (r.nodeType === Node.TEXT_NODE || r.childNodes.length === 0) return [r, i];
|
|
1504
|
+
let a = r.childNodes[i];
|
|
1505
|
+
if (a !== void 0) return [a, 0];
|
|
1506
|
+
let o = (e = r.childNodes[i - 1]) == null ? null : e, s = (t = o == null ? void 0 : o.textContent) == null ? null : t;
|
|
1507
|
+
return [o, s === null ? 0 : s.length];
|
|
1508
|
+
}, Rt = (e) => {
|
|
1509
|
+
var t;
|
|
1510
|
+
let n = window.getSelection();
|
|
1511
|
+
if (n === null || n.rangeCount === 0) return 0;
|
|
1512
|
+
let r = n.getRangeAt(0), i = e == null ? (t = r.startContainer.parentElement) == null ? void 0 : t.closest("[contenteditable=\"true\"]") : e;
|
|
1513
|
+
if (i == null) return 0;
|
|
1514
|
+
let a = document.createRange();
|
|
1515
|
+
return a.selectNodeContents(i), a.setEnd(r.startContainer, r.startOffset), a.toString().length;
|
|
1516
|
+
}, zt = (e, t, n, r) => {
|
|
1517
|
+
let i = document.createRange();
|
|
1518
|
+
r === "left" ? (i.selectNodeContents(e), i.setEnd(t, n)) : (i.selectNodeContents(e), i.setStart(t, n));
|
|
1519
|
+
let a = i.cloneContents(), o = document.createElement("div");
|
|
1520
|
+
o.appendChild(a);
|
|
1521
|
+
let s = o.textContent || "";
|
|
1522
|
+
if (o.querySelectorAll("img, br, hr, input, area, base, col, embed, link, meta, param, source, track, wbr").length > 0 && !(r === "right" && o.querySelectorAll("img, hr, input, area, base, col, embed, link, meta, param, source, track, wbr").length === 0 && s.trim() === "")) return !1;
|
|
1523
|
+
let c = s.includes("\xA0") || o.innerHTML.includes(" ") || i.toString().includes("\xA0"), l = t.nodeType === Node.TEXT_NODE && (r === "left" ? (t.textContent || "").slice(0, n) : (t.textContent || "").slice(n)).includes("\xA0");
|
|
1524
|
+
if (c || l) return !1;
|
|
1525
|
+
o.style.position = "absolute", o.style.visibility = "hidden", o.style.height = "auto", o.style.width = "auto", o.style.whiteSpace = window.getComputedStyle(e).whiteSpace, document.body.appendChild(o);
|
|
1526
|
+
let u = o.getBoundingClientRect().width;
|
|
1527
|
+
return document.body.removeChild(o), !(u > 0 || !xe(s) || window.getComputedStyle(e).whiteSpace.startsWith("pre") && s.length > 0);
|
|
1528
|
+
}, Bt = (e) => {
|
|
1529
|
+
var t;
|
|
1530
|
+
let n = T.getDeepestNode(e);
|
|
1531
|
+
if (n === null || T.isEmpty(e)) return !0;
|
|
1532
|
+
if (T.isNativeInput(n)) return n.selectionEnd === 0;
|
|
1533
|
+
if (T.isEmpty(e)) return !0;
|
|
1534
|
+
let [r, i] = Lt();
|
|
1535
|
+
if (r === null) return !1;
|
|
1536
|
+
let a = window.getSelection(), o = (t = a == null ? void 0 : a.focusNode) == null ? null : t;
|
|
1537
|
+
return o !== null && o !== e && !(o.nodeType === Node.TEXT_NODE && o.parentNode === e) ? !1 : zt(e, r, i, "left");
|
|
1538
|
+
}, Vt = (e) => {
|
|
1539
|
+
let t = T.getDeepestNode(e, !0);
|
|
1540
|
+
if (t === null) return !0;
|
|
1541
|
+
if (T.isNativeInput(t)) return t.selectionEnd === t.value.length;
|
|
1542
|
+
let [n, r] = Lt();
|
|
1543
|
+
return n === null ? !1 : zt(e, n, r, "right");
|
|
1544
|
+
}, Ht, R = class e {
|
|
1545
|
+
constructor(e, t) {
|
|
1546
|
+
this.cursor = -1, this.items = [], this.items = e == null ? [] : e, this.focusedCssClass = t;
|
|
1547
|
+
}
|
|
1548
|
+
get currentItem() {
|
|
1549
|
+
return this.cursor === -1 ? null : this.items[this.cursor];
|
|
1550
|
+
}
|
|
1551
|
+
setCursor(e) {
|
|
1552
|
+
e < this.items.length && e >= -1 && (this.dropCursor(), this.cursor = e, this.items[this.cursor].classList.add(this.focusedCssClass), this.items[this.cursor].setAttribute("data-blok-focused", "true"));
|
|
1553
|
+
}
|
|
1554
|
+
setItems(e) {
|
|
1555
|
+
this.items = e;
|
|
1556
|
+
}
|
|
1557
|
+
hasItems() {
|
|
1558
|
+
return this.items.length > 0;
|
|
1559
|
+
}
|
|
1560
|
+
next() {
|
|
1561
|
+
this.cursor = this.leafNodesAndReturnIndex(e.directions.RIGHT);
|
|
1562
|
+
}
|
|
1563
|
+
previous() {
|
|
1564
|
+
this.cursor = this.leafNodesAndReturnIndex(e.directions.LEFT);
|
|
1565
|
+
}
|
|
1566
|
+
dropCursor() {
|
|
1567
|
+
this.cursor !== -1 && (this.items[this.cursor].classList.remove(this.focusedCssClass), this.items[this.cursor].removeAttribute("data-blok-focused"), this.cursor = -1);
|
|
1568
|
+
}
|
|
1569
|
+
leafNodesAndReturnIndex(t) {
|
|
1570
|
+
if (this.items.length === 0) return this.cursor;
|
|
1571
|
+
let n = t === e.directions.RIGHT ? -1 : 0, r = this.cursor === -1 ? n : this.cursor;
|
|
1572
|
+
r !== -1 && (this.items[r].classList.remove(this.focusedCssClass), this.items[r].removeAttribute("data-blok-focused"));
|
|
1573
|
+
let i = t === e.directions.RIGHT ? (r + 1) % this.items.length : (this.items.length + r - 1) % this.items.length;
|
|
1574
|
+
return T.canSetCaret(this.items[i]) && te(() => Xe.setCursor(this.items[i]), 50)(), this.items[i].classList.add(this.focusedCssClass), this.items[i].setAttribute("data-blok-focused", "true"), i;
|
|
1575
|
+
}
|
|
1576
|
+
};
|
|
1577
|
+
Ht = R, Ht.directions = {
|
|
1578
|
+
RIGHT: "right",
|
|
1579
|
+
LEFT: "left"
|
|
1580
|
+
};
|
|
1581
|
+
//#endregion
|
|
1582
|
+
//#region src/components/flipper.ts
|
|
1583
|
+
var Ut = class e {
|
|
1584
|
+
get isActivated() {
|
|
1585
|
+
return this.activated;
|
|
1586
|
+
}
|
|
1587
|
+
constructor(t) {
|
|
1588
|
+
var n, r;
|
|
1589
|
+
this.iterator = null, this.activated = !1, this.skipNextTabFocus = !1, this.flipCallbacks = [], this.onKeyDown = (t) => {
|
|
1590
|
+
var n;
|
|
1591
|
+
let r = t.target;
|
|
1592
|
+
if (this.shouldSkipTarget(r, t)) return;
|
|
1593
|
+
let i = this.getKeyCode(t), a = i === s.LEFT || i === s.RIGHT || i === s.UP || i === s.DOWN;
|
|
1594
|
+
if (!(t.shiftKey && a) && this.isEventReadyForHandling(t) && !(i === s.ENTER && !((n = this.iterator) != null && n.currentItem))) switch (t.stopPropagation(), t.stopImmediatePropagation(), i !== null && e.usedKeys.includes(i) && t.preventDefault(), i) {
|
|
1595
|
+
case s.TAB:
|
|
1596
|
+
this.handleTabPress(t);
|
|
1597
|
+
break;
|
|
1598
|
+
case s.LEFT:
|
|
1599
|
+
this.onArrowLeftCallback && this.onArrowLeftCallback();
|
|
1600
|
+
break;
|
|
1601
|
+
case s.UP:
|
|
1602
|
+
this.flipLeft();
|
|
1603
|
+
break;
|
|
1604
|
+
case s.RIGHT:
|
|
1605
|
+
var o;
|
|
1606
|
+
(o = this.iterator) != null && o.currentItem && this.currentItemHasChildren() && this.handleEnterPress(t);
|
|
1607
|
+
break;
|
|
1608
|
+
case s.DOWN:
|
|
1609
|
+
this.flipRight();
|
|
1610
|
+
break;
|
|
1611
|
+
case s.ENTER:
|
|
1612
|
+
this.handleEnterPress(t);
|
|
1613
|
+
break;
|
|
1614
|
+
case null: break;
|
|
1615
|
+
}
|
|
1616
|
+
}, this.iterator = new R(t.items || [], (n = t.focusedItemClass) == null ? "" : n), this.activateCallback = t.activateCallback, this.allowedKeys = t.allowedKeys || e.usedKeys, this.handleContentEditableTargets = (r = t.handleContentEditableTargets) == null ? !1 : r, this.onArrowLeftCallback = t.onArrowLeft;
|
|
1617
|
+
}
|
|
1618
|
+
static get usedKeys() {
|
|
1619
|
+
return [
|
|
1620
|
+
s.TAB,
|
|
1621
|
+
s.LEFT,
|
|
1622
|
+
s.RIGHT,
|
|
1623
|
+
s.ENTER,
|
|
1624
|
+
s.UP,
|
|
1625
|
+
s.DOWN
|
|
1626
|
+
];
|
|
1627
|
+
}
|
|
1628
|
+
activate(e, t) {
|
|
1629
|
+
if (this.activated = !0, e) {
|
|
1630
|
+
var n;
|
|
1631
|
+
(n = this.iterator) == null || n.setItems(e);
|
|
1632
|
+
}
|
|
1633
|
+
if (t !== void 0) {
|
|
1634
|
+
var r;
|
|
1635
|
+
(r = this.iterator) == null || r.setCursor(t);
|
|
1636
|
+
}
|
|
1637
|
+
document.addEventListener("keydown", this.onKeyDown, !0), window.addEventListener("keydown", this.onKeyDown, !0);
|
|
1638
|
+
}
|
|
1639
|
+
deactivate() {
|
|
1640
|
+
this.activated = !1, this.dropCursor(), this.skipNextTabFocus = !1, document.removeEventListener("keydown", this.onKeyDown, !0), window.removeEventListener("keydown", this.onKeyDown, !0);
|
|
1641
|
+
}
|
|
1642
|
+
focusFirst() {
|
|
1643
|
+
this.dropCursor(), this.flipRight();
|
|
1644
|
+
}
|
|
1645
|
+
focusItem(e, t) {
|
|
1646
|
+
var n;
|
|
1647
|
+
let r = this.iterator;
|
|
1648
|
+
if (r && r.hasItems()) {
|
|
1649
|
+
if (e < 0) {
|
|
1650
|
+
r.dropCursor();
|
|
1651
|
+
return;
|
|
1652
|
+
}
|
|
1653
|
+
((n = t == null ? void 0 : t.skipNextTab) == null ? !r.currentItem && e === 0 : n) && (this.skipNextTabFocus = !0), r.setCursor(e);
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
flipLeft() {
|
|
1657
|
+
var e;
|
|
1658
|
+
(e = this.iterator) == null || e.previous(), this.flipCallback();
|
|
1659
|
+
}
|
|
1660
|
+
flipRight() {
|
|
1661
|
+
var e;
|
|
1662
|
+
(e = this.iterator) == null || e.next(), this.flipCallback();
|
|
1663
|
+
}
|
|
1664
|
+
hasFocus() {
|
|
1665
|
+
var e;
|
|
1666
|
+
return !!((e = this.iterator) != null && e.currentItem);
|
|
1667
|
+
}
|
|
1668
|
+
currentItemHasChildren() {
|
|
1669
|
+
var e;
|
|
1670
|
+
let t = (e = this.iterator) == null ? void 0 : e.currentItem;
|
|
1671
|
+
return t ? t.hasAttribute("data-blok-has-children") : !1;
|
|
1672
|
+
}
|
|
1673
|
+
onFlip(e) {
|
|
1674
|
+
this.flipCallbacks.push(e);
|
|
1675
|
+
}
|
|
1676
|
+
removeOnFlip(e) {
|
|
1677
|
+
this.flipCallbacks = this.flipCallbacks.filter((t) => t !== e);
|
|
1678
|
+
}
|
|
1679
|
+
dropCursor() {
|
|
1680
|
+
var e;
|
|
1681
|
+
(e = this.iterator) == null || e.dropCursor();
|
|
1682
|
+
}
|
|
1683
|
+
getKeyCode(e) {
|
|
1684
|
+
var t;
|
|
1685
|
+
return (t = {
|
|
1686
|
+
Tab: s.TAB,
|
|
1687
|
+
Enter: s.ENTER,
|
|
1688
|
+
ArrowLeft: s.LEFT,
|
|
1689
|
+
ArrowRight: s.RIGHT,
|
|
1690
|
+
ArrowUp: s.UP,
|
|
1691
|
+
ArrowDown: s.DOWN
|
|
1692
|
+
}[e.key]) == null ? null : t;
|
|
1693
|
+
}
|
|
1694
|
+
isEventReadyForHandling(e) {
|
|
1695
|
+
let t = this.getKeyCode(e);
|
|
1696
|
+
return this.activated && t !== null && this.allowedKeys.includes(t);
|
|
1697
|
+
}
|
|
1698
|
+
setHandleContentEditableTargets(e) {
|
|
1699
|
+
this.handleContentEditableTargets = e;
|
|
1700
|
+
}
|
|
1701
|
+
getHandleContentEditableTargets() {
|
|
1702
|
+
return this.handleContentEditableTargets;
|
|
1703
|
+
}
|
|
1704
|
+
handleTabPress(e) {
|
|
1705
|
+
let t = e.shiftKey ? R.directions.LEFT : R.directions.RIGHT;
|
|
1706
|
+
if (this.skipNextTabFocus) {
|
|
1707
|
+
this.skipNextTabFocus = !1;
|
|
1708
|
+
return;
|
|
1709
|
+
}
|
|
1710
|
+
switch (t) {
|
|
1711
|
+
case R.directions.RIGHT:
|
|
1712
|
+
this.flipRight();
|
|
1713
|
+
break;
|
|
1714
|
+
case R.directions.LEFT:
|
|
1715
|
+
this.flipLeft();
|
|
1716
|
+
break;
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
handleExternalKeydown(e) {
|
|
1720
|
+
this.onKeyDown(e);
|
|
1721
|
+
}
|
|
1722
|
+
handleEnterPress(e) {
|
|
1723
|
+
var t, n;
|
|
1724
|
+
this.activated && ((t = this.iterator) != null && t.currentItem && (e.stopPropagation(), e.preventDefault(), this.iterator.currentItem.click()), h(this.activateCallback) && (n = this.iterator) != null && n.currentItem && this.activateCallback(this.iterator.currentItem));
|
|
1725
|
+
}
|
|
1726
|
+
scrollElementIntoView(e) {
|
|
1727
|
+
let t = e;
|
|
1728
|
+
if (typeof t.scrollIntoViewIfNeeded == "function") {
|
|
1729
|
+
t.scrollIntoViewIfNeeded();
|
|
1730
|
+
return;
|
|
1731
|
+
}
|
|
1732
|
+
t.scrollIntoView({ block: "nearest" });
|
|
1733
|
+
}
|
|
1734
|
+
flipCallback() {
|
|
1735
|
+
var e;
|
|
1736
|
+
(e = this.iterator) != null && e.currentItem && this.scrollElementIntoView(this.iterator.currentItem), this.flipCallbacks.forEach((e) => e());
|
|
1737
|
+
}
|
|
1738
|
+
shouldSkipTarget(e, t) {
|
|
1739
|
+
if (!e) return !1;
|
|
1740
|
+
let n = e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement, r = t.key === "Tab" || t.key === "ArrowUp" || t.key === "ArrowDown" || t.key === "Enter" || t.key === "ArrowRight" || t.key === "ArrowLeft", i = e.getAttribute("data-blok-flipper-navigation-target") === "true" && r, a = e.isContentEditable, o = e.closest("[data-blok-link-tool-input-opened=\"true\"]") !== null, s = a && !this.handleContentEditableTargets;
|
|
1741
|
+
return n && !i || s || o;
|
|
1742
|
+
}
|
|
1743
|
+
}, Wt = [
|
|
1744
|
+
{
|
|
1745
|
+
name: "gray",
|
|
1746
|
+
text: "#787774",
|
|
1747
|
+
bg: "#f1f1ef"
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
name: "brown",
|
|
1751
|
+
text: "#9f6b53",
|
|
1752
|
+
bg: "#f4eeee"
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
name: "orange",
|
|
1756
|
+
text: "#d9730d",
|
|
1757
|
+
bg: "#fbecdd"
|
|
1758
|
+
},
|
|
1759
|
+
{
|
|
1760
|
+
name: "yellow",
|
|
1761
|
+
text: "#cb9b00",
|
|
1762
|
+
bg: "#fbf3db"
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
name: "green",
|
|
1766
|
+
text: "#448361",
|
|
1767
|
+
bg: "#edf3ec"
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
name: "blue",
|
|
1771
|
+
text: "#337ea9",
|
|
1772
|
+
bg: "#e7f3f8"
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
name: "purple",
|
|
1776
|
+
text: "#9065b0",
|
|
1777
|
+
bg: "#f6f3f9"
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
name: "pink",
|
|
1781
|
+
text: "#c14c8a",
|
|
1782
|
+
bg: "#f9f0f5"
|
|
1783
|
+
},
|
|
1784
|
+
{
|
|
1785
|
+
name: "red",
|
|
1786
|
+
text: "#d44c47",
|
|
1787
|
+
bg: "#fdebec"
|
|
1788
|
+
}
|
|
1789
|
+
], Gt = [
|
|
1790
|
+
{
|
|
1791
|
+
name: "gray",
|
|
1792
|
+
text: "#9b9b9b",
|
|
1793
|
+
bg: "#2f2f2f"
|
|
1794
|
+
},
|
|
1795
|
+
{
|
|
1796
|
+
name: "brown",
|
|
1797
|
+
text: "#c59177",
|
|
1798
|
+
bg: "#452a1c"
|
|
1799
|
+
},
|
|
1800
|
+
{
|
|
1801
|
+
name: "orange",
|
|
1802
|
+
text: "#dc8c47",
|
|
1803
|
+
bg: "#4d2f14"
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
name: "yellow",
|
|
1807
|
+
text: "#d4ab49",
|
|
1808
|
+
bg: "#544012"
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
name: "green",
|
|
1812
|
+
text: "#5db184",
|
|
1813
|
+
bg: "#1e432f"
|
|
1814
|
+
},
|
|
1815
|
+
{
|
|
1816
|
+
name: "blue",
|
|
1817
|
+
text: "#5c9fcc",
|
|
1818
|
+
bg: "#123a54"
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
name: "purple",
|
|
1822
|
+
text: "#a67dca",
|
|
1823
|
+
bg: "#341d49"
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
name: "pink",
|
|
1827
|
+
text: "#d45e99",
|
|
1828
|
+
bg: "#4b1b33"
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
name: "red",
|
|
1832
|
+
text: "#dd5e5a",
|
|
1833
|
+
bg: "#4e1a18"
|
|
1834
|
+
}
|
|
1835
|
+
];
|
|
1836
|
+
function Kt(e, t) {
|
|
1837
|
+
return `var(--blok-color-${e}-${t})`;
|
|
1838
|
+
}
|
|
1839
|
+
//#endregion
|
|
1840
|
+
//#region src/components/utils/color-mapping.ts
|
|
1841
|
+
function qt(e, t, n) {
|
|
1842
|
+
let r = t / 100, i = n / 100;
|
|
1843
|
+
if (r === 0) {
|
|
1844
|
+
let e = Math.round(i * 255);
|
|
1845
|
+
return [
|
|
1846
|
+
e,
|
|
1847
|
+
e,
|
|
1848
|
+
e
|
|
1849
|
+
];
|
|
1850
|
+
}
|
|
1851
|
+
let a = (e) => e < 0 ? e + 1 : e > 1 ? e - 1 : e, o = (e, t, n) => {
|
|
1852
|
+
let r = a(n);
|
|
1853
|
+
return r < 1 / 6 ? e + (t - e) * 6 * r : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e;
|
|
1854
|
+
}, s = i < .5 ? i * (1 + r) : i + r - i * r, c = 2 * i - s, l = e / 360;
|
|
1855
|
+
return [
|
|
1856
|
+
Math.round(o(c, s, l + 1 / 3) * 255),
|
|
1857
|
+
Math.round(o(c, s, l) * 255),
|
|
1858
|
+
Math.round(o(c, s, l - 1 / 3) * 255)
|
|
1859
|
+
];
|
|
1860
|
+
}
|
|
1861
|
+
function z(e) {
|
|
1862
|
+
let t = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);
|
|
1863
|
+
if (t) return [
|
|
1864
|
+
parseInt(t[1], 16),
|
|
1865
|
+
parseInt(t[2], 16),
|
|
1866
|
+
parseInt(t[3], 16)
|
|
1867
|
+
];
|
|
1868
|
+
let n = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})[0-9a-f]{2}$/i.exec(e);
|
|
1869
|
+
if (n) return [
|
|
1870
|
+
parseInt(n[1], 16),
|
|
1871
|
+
parseInt(n[2], 16),
|
|
1872
|
+
parseInt(n[3], 16)
|
|
1873
|
+
];
|
|
1874
|
+
let r = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(e);
|
|
1875
|
+
if (r) return [
|
|
1876
|
+
parseInt(r[1] + r[1], 16),
|
|
1877
|
+
parseInt(r[2] + r[2], 16),
|
|
1878
|
+
parseInt(r[3] + r[3], 16)
|
|
1879
|
+
];
|
|
1880
|
+
let i = /^#([0-9a-f])([0-9a-f])([0-9a-f])[0-9a-f]$/i.exec(e);
|
|
1881
|
+
if (i) return [
|
|
1882
|
+
parseInt(i[1] + i[1], 16),
|
|
1883
|
+
parseInt(i[2] + i[2], 16),
|
|
1884
|
+
parseInt(i[3] + i[3], 16)
|
|
1885
|
+
];
|
|
1886
|
+
let a = /^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*[\d.]+\s*)?\)$/i.exec(e);
|
|
1887
|
+
if (a) return [
|
|
1888
|
+
Number(a[1]),
|
|
1889
|
+
Number(a[2]),
|
|
1890
|
+
Number(a[3])
|
|
1891
|
+
];
|
|
1892
|
+
let o = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%\s*(?:,\s*[\d.]+\s*)?\)$/i.exec(e);
|
|
1893
|
+
return o ? qt(Number(o[1]), Number(o[2]), Number(o[3])) : null;
|
|
1894
|
+
}
|
|
1895
|
+
var Jt = .1;
|
|
1896
|
+
function B(e) {
|
|
1897
|
+
let t = e[0] / 255, n = e[1] / 255, r = e[2] / 255, i = Math.max(t, n, r), a = Math.min(t, n, r), o = (i + a) / 2;
|
|
1898
|
+
if (i === a) return [
|
|
1899
|
+
0,
|
|
1900
|
+
0,
|
|
1901
|
+
o
|
|
1902
|
+
];
|
|
1903
|
+
let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
|
|
1904
|
+
return [
|
|
1905
|
+
((e) => e === t ? ((n - r) / s + (n < r ? 6 : 0)) / 6 : e === n ? ((r - t) / s + 2) / 6 : ((t - n) / s + 4) / 6)(i) * 360,
|
|
1906
|
+
c,
|
|
1907
|
+
o
|
|
1908
|
+
];
|
|
1909
|
+
}
|
|
1910
|
+
function Yt(e, t) {
|
|
1911
|
+
let n = e[1] < Jt, r = t[1] < Jt;
|
|
1912
|
+
if (n && r) {
|
|
1913
|
+
let n = Math.abs(e[2] - t[2]);
|
|
1914
|
+
return n * n;
|
|
1915
|
+
}
|
|
1916
|
+
if (n !== r) return 1e3;
|
|
1917
|
+
let i = Math.abs(e[0] - t[0]), a = Math.min(i, 360 - i) / 180, o = Math.abs(e[1] - t[1]), s = Math.abs(e[2] - t[2]);
|
|
1918
|
+
return 8 * a * a + 1 * o * o + 1 * s * s;
|
|
1919
|
+
}
|
|
1920
|
+
function V(e, t) {
|
|
1921
|
+
let n = z(e);
|
|
1922
|
+
if (n === null) return e;
|
|
1923
|
+
let r = B(n);
|
|
1924
|
+
return Wt.reduce((e, n) => {
|
|
1925
|
+
let i = z(n[t]);
|
|
1926
|
+
if (i === null) return e;
|
|
1927
|
+
let a = Yt(r, B(i));
|
|
1928
|
+
return a < e.distance ? {
|
|
1929
|
+
color: n[t],
|
|
1930
|
+
distance: a
|
|
1931
|
+
} : e;
|
|
1932
|
+
}, {
|
|
1933
|
+
color: e,
|
|
1934
|
+
distance: Infinity
|
|
1935
|
+
}).color;
|
|
1936
|
+
}
|
|
1937
|
+
function Xt(e, t) {
|
|
1938
|
+
var n;
|
|
1939
|
+
let r = z(e);
|
|
1940
|
+
if (r === null) return null;
|
|
1941
|
+
let i = B(r), a = [...Wt, ...Gt].reduce((e, n) => {
|
|
1942
|
+
let r = z(n[t]);
|
|
1943
|
+
if (r === null) return e;
|
|
1944
|
+
let a = Yt(i, B(r));
|
|
1945
|
+
return e === null || a < e.distance ? {
|
|
1946
|
+
name: n.name,
|
|
1947
|
+
distance: a
|
|
1948
|
+
} : e;
|
|
1949
|
+
}, null);
|
|
1950
|
+
return (n = a == null ? void 0 : a.name) == null ? null : n;
|
|
1951
|
+
}
|
|
1952
|
+
//#endregion
|
|
1953
|
+
//#region src/tools/table/table-cell-clipboard.ts
|
|
1954
|
+
var H = "data-blok-table-cells";
|
|
1955
|
+
function Zt(e, t, n) {
|
|
1956
|
+
return e ? `background-color: ${n}` : t ? "background-color: transparent" : "";
|
|
1957
|
+
}
|
|
1958
|
+
function Qt(e) {
|
|
1959
|
+
if (e.length === 0) return {
|
|
1960
|
+
rows: 0,
|
|
1961
|
+
cols: 0,
|
|
1962
|
+
cells: []
|
|
1963
|
+
};
|
|
1964
|
+
let t = Math.min(...e.map((e) => e.row)), n = Math.min(...e.map((e) => e.col)), r = Math.max(...e.map((e) => e.row)), i = Math.max(...e.map((e) => e.col)), a = r - t + 1, o = i - n + 1, s = Array.from({ length: a }, () => Array.from({ length: o }, () => ({ blocks: [] })));
|
|
1965
|
+
for (let r of e) {
|
|
1966
|
+
let e = r.row - t, i = r.col - n;
|
|
1967
|
+
s[e][i] = { blocks: r.blocks }, r.color !== void 0 && (s[e][i].color = r.color), r.textColor !== void 0 && (s[e][i].textColor = r.textColor), r.placement !== void 0 && (s[e][i].placement = r.placement);
|
|
1968
|
+
}
|
|
1969
|
+
return {
|
|
1970
|
+
rows: a,
|
|
1971
|
+
cols: o,
|
|
1972
|
+
cells: s
|
|
1973
|
+
};
|
|
1974
|
+
}
|
|
1975
|
+
function $t(e) {
|
|
1976
|
+
let { data: t } = e;
|
|
1977
|
+
return typeof t.text == "string" ? t.text : Array.isArray(t.items) ? t.items.filter((e) => typeof e == "string").join(" ") : "";
|
|
1978
|
+
}
|
|
1979
|
+
function en(e) {
|
|
1980
|
+
var t;
|
|
1981
|
+
let n = document.createElement("div");
|
|
1982
|
+
return n.innerHTML = e, (t = n.textContent) == null ? "" : t;
|
|
1983
|
+
}
|
|
1984
|
+
function tn(e) {
|
|
1985
|
+
return en($t(e));
|
|
1986
|
+
}
|
|
1987
|
+
function nn(e) {
|
|
1988
|
+
return `<table ${H}='${JSON.stringify(e).replace(/'/g, "'")}'>${e.cells.map((e) => `<tr>${e.map((e) => {
|
|
1989
|
+
let t = e.blocks.map($t).join(" "), n = [e.color ? `background-color: ${e.color}` : "", e.textColor ? `color: ${e.textColor}` : ""].filter(Boolean).join("; ");
|
|
1990
|
+
return `<td${n ? ` style="${n}"` : ""}>${t}</td>`;
|
|
1991
|
+
}).join("")}</tr>`).join("")}</table>`;
|
|
1992
|
+
}
|
|
1993
|
+
function rn(e) {
|
|
1994
|
+
return e.cells.map((e) => e.map((e) => e.blocks.map(tn).join(" ")).join(" ")).join("\n");
|
|
1995
|
+
}
|
|
1996
|
+
var an = new Set(["color", "background-color"]), on = {
|
|
1997
|
+
b: !0,
|
|
1998
|
+
strong: !0,
|
|
1999
|
+
i: !0,
|
|
2000
|
+
em: !0,
|
|
2001
|
+
br: !0,
|
|
2002
|
+
a: {
|
|
2003
|
+
href: !0,
|
|
2004
|
+
target: "_blank",
|
|
2005
|
+
rel: "nofollow"
|
|
2006
|
+
},
|
|
2007
|
+
mark: (e) => {
|
|
2008
|
+
let t = e.style, n = Array.from({ length: t.length }, (e, n) => t.item(n));
|
|
2009
|
+
for (let e of n) an.has(e) || t.removeProperty(e);
|
|
2010
|
+
return t.length > 0 ? { style: !0 } : {};
|
|
2011
|
+
}
|
|
2012
|
+
};
|
|
2013
|
+
function U(e) {
|
|
2014
|
+
let t = e.replace(/\s/g, "");
|
|
2015
|
+
return t === "rgb(0,0,0)" || t === "#000000";
|
|
2016
|
+
}
|
|
2017
|
+
function sn(e) {
|
|
2018
|
+
let t = e.cloneNode(!0);
|
|
2019
|
+
for (let e of Array.from(t.querySelectorAll("span"))) {
|
|
2020
|
+
var n, r, i;
|
|
2021
|
+
let t = (n = e.getAttribute("style")) == null ? "" : n, a = /font-weight\s*:\s*(700|bold)/i.test(t), o = /font-style\s*:\s*italic/i.test(t), s = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(t), c = /background-color\s*:\s*([^;]+)/i.exec(t), l = s == null || (r = s[1]) == null ? void 0 : r.trim(), u = c == null || (i = c[1]) == null ? void 0 : i.trim(), d = l !== void 0 && !U(l), f = u !== void 0 && u !== "transparent";
|
|
2022
|
+
if (!a && !o && !d && !f) continue;
|
|
2023
|
+
let p = d ? V(l, "text") : "", m = f ? V(u, "bg") : "", h = [d ? `color: ${p}` : "", Zt(f, d, m)].filter(Boolean).join("; "), g = e.innerHTML, _ = h ? `<mark style="${h};">${g}</mark>` : g, v = o ? `<i>${_}</i>` : _, y = a ? `<b>${v}</b>` : v;
|
|
2024
|
+
e.replaceWith(document.createRange().createContextualFragment(y));
|
|
2025
|
+
}
|
|
2026
|
+
for (let e of Array.from(t.querySelectorAll("a[style]"))) {
|
|
2027
|
+
var a, o, s;
|
|
2028
|
+
let t = (a = e.getAttribute("style")) == null ? "" : a, n = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(t), r = /background-color\s*:\s*([^;]+)/i.exec(t), i = n == null || (o = n[1]) == null ? void 0 : o.trim(), c = r == null || (s = r[1]) == null ? void 0 : s.trim(), l = i !== void 0 && !U(i) && i !== "inherit", u = c !== void 0 && c !== "transparent" && c !== "inherit";
|
|
2029
|
+
if (!l && !u) continue;
|
|
2030
|
+
let d = l ? V(i, "text") : "", f = u ? V(c, "bg") : "", p = [l ? `color: ${d}` : "", Zt(u, l, f)].filter(Boolean).join("; "), m = e;
|
|
2031
|
+
m.innerHTML = `<mark style="${p};">${m.innerHTML}</mark>`, m.style.removeProperty("color"), m.style.removeProperty("background-color");
|
|
2032
|
+
}
|
|
2033
|
+
for (let e of Array.from(t.querySelectorAll("p"))) {
|
|
2034
|
+
let t = document.createRange().createContextualFragment(e.innerHTML + "<br>");
|
|
2035
|
+
e.replaceWith(t);
|
|
2036
|
+
}
|
|
2037
|
+
return N(t.innerHTML, on).replace(/(<br\s*\/?>|\s)+$/i, "").trim();
|
|
2038
|
+
}
|
|
2039
|
+
function cn(e) {
|
|
2040
|
+
if (!e) return null;
|
|
2041
|
+
let t = new DOMParser().parseFromString(e, "text/html").querySelector("table");
|
|
2042
|
+
if (!t || t.hasAttribute(H)) return null;
|
|
2043
|
+
let n = t.querySelectorAll("tr");
|
|
2044
|
+
if (n.length === 0) return null;
|
|
2045
|
+
let r = [];
|
|
2046
|
+
n.forEach((e) => {
|
|
2047
|
+
let t = e.querySelectorAll("td, th"), n = [];
|
|
2048
|
+
t.forEach((e) => {
|
|
2049
|
+
var t;
|
|
2050
|
+
let r = sn(e).split(/<br\s*\/?>/i).map((e) => e.trim()).filter(Boolean), i = { blocks: r.length > 0 ? r.map((e) => ({
|
|
2051
|
+
tool: "paragraph",
|
|
2052
|
+
data: { text: e }
|
|
2053
|
+
})) : [{
|
|
2054
|
+
tool: "paragraph",
|
|
2055
|
+
data: { text: "" }
|
|
2056
|
+
}] }, a = (t = e.getAttribute("style")) == null ? "" : t, o = /background-color\s*:\s*([^;]+)/i.exec(a);
|
|
2057
|
+
o != null && o[1] && (i.color = V(o[1].trim(), "bg"));
|
|
2058
|
+
let s = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(a);
|
|
2059
|
+
s != null && s[1] && !U(s[1].trim()) && (i.textColor = V(s[1].trim(), "text")), n.push(i);
|
|
2060
|
+
}), r.push(n);
|
|
2061
|
+
});
|
|
2062
|
+
let i = Math.max(0, ...r.map((e) => e.length));
|
|
2063
|
+
if (r.length === 0 || i === 0) return null;
|
|
2064
|
+
for (let e of r) for (; e.length < i;) e.push({ blocks: [{
|
|
2065
|
+
tool: "paragraph",
|
|
2066
|
+
data: { text: "" }
|
|
2067
|
+
}] });
|
|
2068
|
+
return {
|
|
2069
|
+
rows: r.length,
|
|
2070
|
+
cols: i,
|
|
2071
|
+
cells: r
|
|
2072
|
+
};
|
|
2073
|
+
}
|
|
2074
|
+
function ln(e) {
|
|
2075
|
+
let t = RegExp(`${H}='([^']*)'|${H}="([^"]*)"`, "s").exec(e);
|
|
2076
|
+
if (!t) return null;
|
|
2077
|
+
try {
|
|
2078
|
+
var n;
|
|
2079
|
+
let e = (n = t[1]) == null ? t[2] : n;
|
|
2080
|
+
if (e === void 0) return null;
|
|
2081
|
+
let r = e.replace(/'/g, "'").replace(/"/g, "\"").replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
2082
|
+
return JSON.parse(r);
|
|
2083
|
+
} catch (e) {
|
|
2084
|
+
return null;
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
//#endregion
|
|
2088
|
+
//#region src/components/icons/index.ts
|
|
2089
|
+
var un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m4.5 10.5 4 4 7-8\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", dn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 2 Q10 10 18 10 Q10 10 10 18 Q10 10 2 10 Q10 10 10 2Z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n</svg>\n", fn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m5 15 10-10m0 10L5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", pn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n transform=\"translate(0,-1)\"\n d=\"M6 11h4.9231c.6528 0 1.2789-.3161 1.7405-.8787.4617-.56259.721-1.32565.721-2.1213 0-.79565-.2593-1.55871-.721-2.12132C12.202 5.31607 11.5759 5 10.9231 5H6v6Zm0 0h5.5385c.6528 0 1.2789.3161 1.7405.8787.4617.5626.721 1.3257.721 2.1213 0 .7956-.2593 1.5587-.721 2.1213-.4616.5626-1.0877.8787-1.7405.8787H6v-6Z\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", mn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M8.5 4h6m-10 12h6m1-12-4 12\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", hn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8.5 11.5a3.5 3.5 0 0 0 5 0l2-2a3.536 3.536 0 0 0-5-5l-1 1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M11.5 8.5a3.5 3.5 0 0 0-5 0l-2 2a3.536 3.536 0 0 0 5 5l1-1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", gn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"1.25\" y=\"1.25\" width=\"17.5\" height=\"17.5\" rx=\"4.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M6.5 14.5L10 5.5l3.5 9\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M8.5 11h3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", _n = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5.5 3.5v7.5a4.5 4.5 0 0 0 9 0V3.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M3.5 18.5h13\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", vn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 10h12\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M8.2 10c-1-.5-1.8-1.27-1.8-2.4 0-1.99 1.61-3.6 3.6-3.6s3.6 1.61 3.6 3.6\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M11.8 10c1 .5 1.8 1.27 1.8 2.4 0 1.99-1.61 3.6-3.6 3.6s-3.6-1.61-3.6-3.6\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", yn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M14.5 6.5l2-2-2-2\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16.5 4.5h-4a5 5 0 0 0-5 5v1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M5.5 13.5l-2 2 2 2\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M3.5 15.5h4a5 5 0 0 0 5-5v-1\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", bn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"7.5\" cy=\"5.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"5.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"7.5\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"7.5\" cy=\"14.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"14.5\" r=\"1\" fill=\"currentColor\"/>\n</svg>\n", xn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 10h11M10 4.5v11\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Sn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m6 8 4 4 4-4\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m12 5-5 5 5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", wn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m8 5 5 5-5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Tn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"9\" cy=\"9\" r=\"4.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"m12.5 12.5 3.5 3.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", En = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.1667 5 2.5-1.66667V15\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Dn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m7.5 10h-3.3333c0-3.3333 3.3333-2.5 3.3333-5 0-1.25-1.6667-2.08333-3.3333-.83333\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", On = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.5833 3.75C16 7.91667 17.5 8.75 17.5 10c0 .442-.1756.866-.4882 1.1785-.3125.3126-.7364.4882-1.1785.4882.4421 0 .866.1756 1.1785.4881.3126.3126.4882.7365.4882 1.1785 0 1.5-1.6667 2.5-3.3333 1.25\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", kn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10 15V5M14.1667 8.33333V10.8333C14.1667 11.0543 14.2545 11.2663 14.4107 11.4226C14.567 11.5789 14.779 11.6667 15 11.6667H17.5M17.5 8.33333V15M3.33334 10H10M3.33334 15V5\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", An = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10M3.33334 15V5M10 15V5M17.5 8.33333H14.1667V10.8333H15.25C16.5 10.8333 17.5 11.75 17.5 12.9167C17.5 14.0833 16.5 15 15.25 15C14.8333 15 14.5 14.9167 14.1667 14.75\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", jn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.1667 8.3333c0 .9205.7462 1.6667 1.6666 1.6667.9205 0 1.6667-.7462 1.6667-1.6667 0-.9204-.7462-1.6666-1.6667-1.6666-.9204 0-1.6666.7462-1.6666 1.6666Zm0 0c0-2.0833.8333-3.3333 2.5-4.99997\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Mn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M14.5 7.28571V6h-9v1.28571M10 6v9m0 0H8.71429M10 15h1.2857\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4 3 16h14Z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M10 8.5v3.5m0 2v.01\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Pn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3 3l3 2-3 2M9 5h8M6 10h11M6 15h11\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Fn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M8 5h9M8 10h9M8 15h9\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n />\n <circle cx=\"4\" cy=\"5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4\" cy=\"15\" r=\"1\" fill=\"currentColor\"/>\n</svg>\n", In = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8 5h9M8 10h9M8 15h9\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <text x=\"4\" y=\"6\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">1</text>\n <text x=\"4\" y=\"11\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">2</text>\n <text x=\"4\" y=\"16\" fill=\"currentColor\" font-size=\"5\" font-family=\"sans-serif\" text-anchor=\"middle\" dominant-baseline=\"central\">3</text>\n</svg>\n", Ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M10 5h7M10 10h7M10 15h7M3 5l1 1 2-2M3 10l1 1 2-2M3 15l1 1 2-2\"\n stroke=\"currentColor\"\n stroke-width=\"1.25\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n</svg>\n", Rn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", zn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 4h11A1.5 1.5 0 0 1 17 5.5V8H3V5.5A1.5 1.5 0 0 1 4.5 4Z\" fill=\"currentColor\"/>\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", Bn = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\"/>\n <circle cx=\"12\" cy=\"12\" r=\"3\"/>\n</svg>\n", Vn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 4H7.5v12H4.5A1.5 1.5 0 0 1 3 14.5v-9A1.5 1.5 0 0 1 4.5 4Z\" fill=\"currentColor\"/>\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8h14M3 12h14M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", Hn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4l-3 3m3-3l3 3M10 4v7M5 16h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 16l-3-3m3 3l3-3M10 16V9M5 4h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Wn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 10l3-3M4 10l3 3M4 10h7M16 5v10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Gn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M16 10l-3-3m3 3l-3 3M16 10H9M4 5v10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Kn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"7\" y=\"7\" width=\"9\" height=\"9\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M5 13h-.5A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3h7A1.5 1.5 0 0 1 13 4.5V5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", qn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12.5 5.5l2 2M4.5 13.5l8-8 2 2-8 8H4.5v-2z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Jn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 6.5h11\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M8 6.5V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M6.5 6.5l.5 8.5a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1l.5-8.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M8.5 9.5v3.5M11.5 9.5v3.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Yn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"5\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"15\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n</svg>\n", Xn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5m3.5 5 2-1.5V15\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Zn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5m7 10h-3c0-3 3-2.25 3-4.5 0-1.125-1.5-1.875-3-.75\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Qn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 15V5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M11 8.5c1.25-.75 2.5-.25 2.5.75 0 .75-1 1.25-1 1.25s1 .5 1 1.25c0 1-1.25 1.5-2.5.75\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M16 7l2.5 3-2.5 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", $n = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M10 4C8 6 7.5 8 7.5 10C7.5 12 8 14 10 16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M10 4C12 6 12.5 8 12.5 10C12.5 12 12 14 10 16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M4 10H16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", er = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"5.5\" width=\"14\" height=\"9\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n <path d=\"M3 8L10 10L17 8\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", tr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M7.5 4L7.5 16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M12.5 4L12.5 16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M4 8H16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M4 12H16\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", nr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 4v12\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\"/>\n <path d=\"M9 6h7\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M9 10h7\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M9 14h5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", rr = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\"/><line x1=\"9\" y1=\"10\" x2=\"15\" y2=\"10\"/><line x1=\"12\" y1=\"7\" x2=\"12\" y2=\"13\"/></svg>", ir = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\n <rect x=\"2.5\" y=\"3\" width=\"12\" height=\"6\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M14.5 6H16a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-6a1 1 0 0 0-1 1V14\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <rect x=\"8\" y=\"14\" width=\"3\" height=\"3.5\" rx=\"0.75\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>", ar = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 10h12\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", or = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m7 6-4 4 4 4m6-8 4 4-4 4\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", sr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m6 7-3 3 3 3m8-6 3 3-3 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"m12 5-4 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", cr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 3l2.2 4.4 4.8.7-3.5 3.4.8 4.8L10 14l-4.3 2.3.8-4.8L3 8.1l4.8-.7L10 3z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", lr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <circle cx=\"7.5\" cy=\"8.5\" r=\"0.75\" fill=\"currentColor\"/>\n <circle cx=\"12.5\" cy=\"8.5\" r=\"0.75\" fill=\"currentColor\"/>\n <path d=\"M7.5 12a3 3 0 0 0 5 0\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", ur = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 17v-7\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M10 13c-3 0-6-2-6-5 3 0 6 2 6 5z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n <path d=\"M10 10c3 0 6-2.5 6-5.5-3 0-6 2.5-6 5.5z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n</svg>\n", dr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5 3v4c0 1.1.9 2 2 2v8\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M9 3v4c0 1.1-.9 2-2 2\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M7 3v3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M13 3v14\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M13 3c1.7 0 3 1.5 3 3.5S13 10 13 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n</svg>\n", fr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M10 7.5l2.4 1.7-.9 2.8h-3l-.9-2.8z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n <path d=\"M10 7.5V4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M12.4 9.2l3.1-1.1\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M11.5 12l2 2.6\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M8.5 12l-2 2.6\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M7.6 9.2l-3.1-1.1\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", pr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <ellipse cx=\"10\" cy=\"10\" rx=\"2.75\" ry=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3.5 10h13\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", mr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8 13.5c-.25-1.5-1.5-3.5-2.5-5.5a4.5 4.5 0 0 1 9 0c-1 2-2.25 4-2.5 5.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M8 13.5v1.75c0 .41.34.75.75.75h2.5c.41 0 .75-.34.75-.75V13.5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n <path d=\"M8 14.75h4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M9.25 11l.75-3 .75 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <circle cx=\"10\" cy=\"7\" r=\"1\" stroke=\"currentColor\" stroke-width=\"1\"/>\n</svg>\n", hr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8.5 5l-1 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M12.5 5l-1 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M5 8h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M5 12h10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", gr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5 17V3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M5 3c2 0 3 1.5 5 1.5S14 3 16 3v8c-2 0-3 1.5-5 1.5S7 11 5 11\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", _r = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <ellipse cx=\"10\" cy=\"5.5\" rx=\"6\" ry=\"2.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M4 5.5v4c0 1.38 2.69 2.5 6 2.5s6-1.12 6-2.5v-4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M4 9.5v4c0 1.38 2.69 2.5 6 2.5s6-1.12 6-2.5v-4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", vr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <rect x=\"4.5\" y=\"6\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n <rect x=\"4.5\" y=\"9\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n <rect x=\"9\" y=\"6\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n <rect x=\"14\" y=\"6\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n</svg>\n", yr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"4.5\" cy=\"6.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4.5\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4.5\" cy=\"13.5\" r=\"1\" fill=\"currentColor\"/>\n <path d=\"M7.5 6.5h9M7.5 10h9M7.5 13.5h9\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", br = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4.5\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8.5h14\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M7 3v3M13 3v3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <circle cx=\"7\" cy=\"12\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"12\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"13\" cy=\"12\" r=\"1\" fill=\"currentColor\"/>\n</svg>\n", xr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-dasharray=\"1.5 2\"/>\n <path d=\"M5.5 7 8.5 10 5.5 13\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M14.5 7 11.5 10 14.5 13\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Sr = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\"/><path d=\"M12 3v18\"/><path d=\"M8 8l4 4-4 4\"/><path d=\"M16 8l-4 4 4 4\"/></svg>", Cr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4\" width=\"6\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <rect x=\"11\" y=\"4\" width=\"6\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", wr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"6\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"6\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"6\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n</svg>\n", Tr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"2.5\" y=\"3.5\" width=\"15\" height=\"13\" rx=\"2\" fill=\"currentColor\" fill-opacity=\"0.08\" stroke=\"currentColor\" stroke-width=\"1.4\"/>\n <circle cx=\"7\" cy=\"8\" r=\"1.3\" fill=\"currentColor\"/>\n <path d=\"M3 13.25 6.25 10l2.25 2.25L12.25 8.25 17 13\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", W = (e) => `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${e}</svg>`, Er = W("<rect x=\"3\" y=\"8\" width=\"8\" height=\"8\" rx=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M3 4h18\"/><path d=\"M14 10h7\"/><path d=\"M14 14h7\"/><path d=\"M3 20h18\"/>"), Dr = W("<rect x=\"8\" y=\"8\" width=\"8\" height=\"8\" rx=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M3 4h18\"/><path d=\"M3 20h18\"/>"), Or = W("<rect x=\"13\" y=\"8\" width=\"8\" height=\"8\" rx=\"1.5\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M3 4h18\"/><path d=\"M3 10h7\"/><path d=\"M3 14h7\"/><path d=\"M3 20h18\"/>"), kr = W("<path d=\"M5 12h14\"/>"), Ar = W("<path d=\"M12 5v14\"/><path d=\"M5 12h14\"/>"), jr = W("<path d=\"M10 13a4 4 0 0 1 0-5.66l3-3a4 4 0 0 1 5.66 5.66l-1.5 1.5\"/><path d=\"M14 11a4 4 0 0 1 0 5.66l-3 3a4 4 0 1 1-5.66-5.66l1.5-1.5\"/>"), Mr = W("<path d=\"M9 3v6H3\"/><path d=\"M21 9h-6V3\"/><path d=\"M3 15h6v6\"/><path d=\"M15 21v-6h6\"/>"), Nr = W("<path d=\"M15 3h6v6\"/><path d=\"M9 21H3v-6\"/><path d=\"m21 3-7 7\"/><path d=\"m3 21 7-7\"/>"), Pr = W("<path d=\"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4\"/><path d=\"M7 10l5 5 5-5\"/><path d=\"M12 15V3\"/>"), Fr = W("<rect x=\"3\" y=\"3.5\" width=\"18\" height=\"12\" rx=\"2.5\"/><path d=\"M5 19h14\"/><path d=\"M8 22h8\"/>"), Ir = W("<path d=\"M4 7h15\"/><path d=\"m15 3 4 4-4 4\"/><path d=\"M20 17H5\"/><path d=\"m9 13-4 4 4 4\"/>"), Lr = W("<path d=\"M6 2v14a2 2 0 0 0 2 2h14\"/><path d=\"M2 6h14a2 2 0 0 1 2 2v14\"/>"), Rr = "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\"><circle cx=\"5\" cy=\"12\" r=\"1.6\"/><circle cx=\"12\" cy=\"12\" r=\"1.6\"/><circle cx=\"19\" cy=\"12\" r=\"1.6\"/></svg>", zr = "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" width=\"14\" height=\"14\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M18 6L6 18M6 6l12 12\"/></svg>", Br = "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M14.5 4.5H6A2.5 2.5 0 0 0 3.5 7v10A2.5 2.5 0 0 0 6 19.5h12a2.5 2.5 0 0 0 2.5-2.5v-6.25\"/><path d=\"m14.5 4.5 1.75 2.25 2.25-1.25 2 2.75\"/><circle cx=\"8\" cy=\"9\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><path d=\"m3.8 16.25 3.45-3.45 2.5 2.5 3.5-3.5 4 4\"/></svg>", Vr = W("<path d=\"M12 4v10\"/><path d=\"m7.5 8.5 4.5-4.5 4.5 4.5\"/><path d=\"M5 14v3.5A2.5 2.5 0 0 0 7.5 20h9a2.5 2.5 0 0 0 2.5-2.5V14\"/>"), Hr = W("<path d=\"M10 14a5 5 0 0 0 7.07 0l2.83-2.83a5 5 0 0 0-7.07-7.07L11.5 5.5\"/><path d=\"M14 10a5 5 0 0 0-7.07 0l-2.83 2.83a5 5 0 0 0 7.07 7.07l1.33-1.33\"/>"), Ur = W("<path d=\"M12 4v12\"/><path d=\"m6.5 10.5 5.5 5.5 5.5-5.5\"/><path d=\"M4 18h16\"/>"), Wr = W("<path d=\"M12 5v11\"/><path d=\"m7 10 5-5 5 5\"/>"), Gr = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\"><rect x=\"1.5\" y=\"1.5\" width=\"11\" height=\"11\" rx=\"2\" stroke=\"currentColor\" stroke-width=\"1.2\"/><circle cx=\"4.5\" cy=\"4.5\" r=\".9\" fill=\"currentColor\"/><circle cx=\"7\" cy=\"7\" r=\".9\" fill=\"currentColor\"/><circle cx=\"9.5\" cy=\"9.5\" r=\".9\" fill=\"currentColor\"/></svg>", Kr = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\"><path d=\"M3.5 3.5l7 7M10.5 3.5l-7 7\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"/></svg>", qr = "<svg aria-hidden=\"true\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.5 2.5L8.5 6L4.5 9.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>", Jr = {
|
|
2090
|
+
"⌘": "⌘",
|
|
2091
|
+
"⇧": "⇧",
|
|
2092
|
+
"⌥": "⌥",
|
|
2093
|
+
"⌃": "⌃",
|
|
2094
|
+
"⌫": "⌫",
|
|
2095
|
+
"⏎": "⏎",
|
|
2096
|
+
"⎋": "⎋",
|
|
2097
|
+
"␡": "⌦",
|
|
2098
|
+
"↑": "↑",
|
|
2099
|
+
"↓": "↓",
|
|
2100
|
+
"←": "←",
|
|
2101
|
+
"→": "→",
|
|
2102
|
+
ctrl: "⌃",
|
|
2103
|
+
alt: "⌥",
|
|
2104
|
+
shift: "⇧",
|
|
2105
|
+
enter: "↵",
|
|
2106
|
+
backspace: "⌫",
|
|
2107
|
+
escape: "⎋",
|
|
2108
|
+
esc: "⎋",
|
|
2109
|
+
delete: "⌦",
|
|
2110
|
+
del: "Del",
|
|
2111
|
+
tab: "⇥",
|
|
2112
|
+
ins: "Ins",
|
|
2113
|
+
win: "⊞"
|
|
2114
|
+
};
|
|
2115
|
+
function Yr(e) {
|
|
2116
|
+
var t, n;
|
|
2117
|
+
let r = e.trim();
|
|
2118
|
+
return (t = (n = Jr[r.toLowerCase()]) == null ? Jr[r] : n) == null ? r : t;
|
|
2119
|
+
}
|
|
2120
|
+
function Xr(e) {
|
|
2121
|
+
let t = /([⌘⇧⌥⌃⌫⏎⎋⌦↑↓←→↵⇥])|([^⌘⇧⌥⌃⌫⏎⎋⌦↑↓←→↵⇥]+)/gu, n = [];
|
|
2122
|
+
for (let r of e.matchAll(t)) {
|
|
2123
|
+
let e = r[0].trim();
|
|
2124
|
+
e && n.push(e);
|
|
2125
|
+
}
|
|
2126
|
+
return n;
|
|
2127
|
+
}
|
|
2128
|
+
function Zr(e) {
|
|
2129
|
+
let t = e.length === 1, n = t ? 13 : 11, r = t ? 13 : 7.5, i = Math.ceil(e.length * r);
|
|
2130
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="${i}" height="16" viewBox="0 0 ${i} 16" style="display:inline-block;vertical-align:middle;flex-shrink:0" aria-hidden="true"><text x="${i / 2}" y="9" text-anchor="middle" dominant-baseline="middle" font-family="-apple-system,BlinkMacSystemFont,'SF Pro Text','Helvetica Neue',sans-serif" font-size="${n}" font-weight="400" fill="currentColor">${e}</text></svg>`;
|
|
2131
|
+
}
|
|
2132
|
+
function Qr(e) {
|
|
2133
|
+
let t = e.split(" + ").flatMap(Xr);
|
|
2134
|
+
return t.length === 0 ? e : `<span style="display:inline-flex;align-items:center;line-height:1">${t.map((e) => Zr(Yr(e))).join("")}</span>`;
|
|
2135
|
+
}
|
|
2136
|
+
var $r = {
|
|
2137
|
+
"⌘": "Command",
|
|
2138
|
+
"⇧": "Shift",
|
|
2139
|
+
"⌥": "Option",
|
|
2140
|
+
"⌃": "Control",
|
|
2141
|
+
"⌫": "Backspace",
|
|
2142
|
+
"⌦": "Delete",
|
|
2143
|
+
"⏎": "Return",
|
|
2144
|
+
"↵": "Return",
|
|
2145
|
+
"⎋": "Escape",
|
|
2146
|
+
"⇥": "Tab",
|
|
2147
|
+
"↑": "Up",
|
|
2148
|
+
"↓": "Down",
|
|
2149
|
+
"←": "Left",
|
|
2150
|
+
"→": "Right",
|
|
2151
|
+
del: "Delete",
|
|
2152
|
+
ins: "Insert",
|
|
2153
|
+
"⊞": "Win"
|
|
2154
|
+
};
|
|
2155
|
+
function ei(e) {
|
|
2156
|
+
let t = e.split(" + ").flatMap(Xr);
|
|
2157
|
+
return t.length === 0 ? e : t.map((e) => {
|
|
2158
|
+
var t, n;
|
|
2159
|
+
let r = e.trim(), i = r.toLowerCase();
|
|
2160
|
+
return (t = (n = $r[r]) == null ? $r[i] : n) == null ? r.toUpperCase() : t;
|
|
2161
|
+
}).join("+");
|
|
2162
|
+
}
|
|
2163
|
+
//#endregion
|
|
2164
|
+
//#region src/components/utils/popover/components/hint/hint.const.ts
|
|
2165
|
+
var G = {
|
|
2166
|
+
root: "",
|
|
2167
|
+
alignedStart: "text-start",
|
|
2168
|
+
alignedCenter: "text-center",
|
|
2169
|
+
title: "",
|
|
2170
|
+
description: "opacity-60 mt-[3px]"
|
|
2171
|
+
}, ti = class {
|
|
2172
|
+
constructor(e) {
|
|
2173
|
+
let t = e.alignment === "center" ? "center" : "start";
|
|
2174
|
+
this.nodes = {
|
|
2175
|
+
root: T.make("div", [G.root, t === "center" ? G.alignedCenter : G.alignedStart]),
|
|
2176
|
+
title: T.make("div", G.title, { textContent: e.title })
|
|
2177
|
+
}, this.nodes.root.setAttribute("data-alignment", t), this.nodes.root.appendChild(this.nodes.title), e.description !== void 0 && (this.nodes.description = T.make("div", G.description), this.nodes.description.innerHTML = Qr(e.description), this.nodes.root.appendChild(this.nodes.description));
|
|
2178
|
+
}
|
|
2179
|
+
getElement() {
|
|
2180
|
+
return this.nodes.root;
|
|
2181
|
+
}
|
|
2182
|
+
}, ni = class {
|
|
2183
|
+
constructor(e) {
|
|
2184
|
+
this.params = e;
|
|
2185
|
+
}
|
|
2186
|
+
get name() {
|
|
2187
|
+
if (this.params !== void 0 && "name" in this.params) return this.params.name;
|
|
2188
|
+
}
|
|
2189
|
+
destroy() {
|
|
2190
|
+
Pt();
|
|
2191
|
+
}
|
|
2192
|
+
onChildrenOpen() {
|
|
2193
|
+
var e;
|
|
2194
|
+
this.params !== void 0 && "children" in this.params && typeof ((e = this.params.children) == null ? void 0 : e.onOpen) == "function" && this.params.children.onOpen();
|
|
2195
|
+
}
|
|
2196
|
+
onChildrenClose() {
|
|
2197
|
+
var e;
|
|
2198
|
+
this.params !== void 0 && "children" in this.params && typeof ((e = this.params.children) == null ? void 0 : e.onClose) == "function" && this.params.children.onClose();
|
|
2199
|
+
}
|
|
2200
|
+
handleClick() {
|
|
2201
|
+
var e, t;
|
|
2202
|
+
this.params !== void 0 && "onActivate" in this.params && ((e = (t = this.params).onActivate) == null || e.call(t, this.params));
|
|
2203
|
+
}
|
|
2204
|
+
addHint(e, t) {
|
|
2205
|
+
Ft(e, new ti(t).getElement(), { placement: t.position });
|
|
2206
|
+
}
|
|
2207
|
+
getMountElement() {
|
|
2208
|
+
return this.getElement();
|
|
2209
|
+
}
|
|
2210
|
+
get children() {
|
|
2211
|
+
var e;
|
|
2212
|
+
return this.params !== void 0 && "children" in this.params && ((e = this.params.children) == null ? void 0 : e.items) !== void 0 ? this.params.children.items : [];
|
|
2213
|
+
}
|
|
2214
|
+
get hasChildren() {
|
|
2215
|
+
return this.children.length > 0;
|
|
2216
|
+
}
|
|
2217
|
+
get isChildrenOpen() {
|
|
2218
|
+
var e;
|
|
2219
|
+
return this.params !== void 0 && "children" in this.params && ((e = this.params.children) == null ? void 0 : e.isOpen) === !0;
|
|
2220
|
+
}
|
|
2221
|
+
get isChevronHidden() {
|
|
2222
|
+
var e;
|
|
2223
|
+
return this.params !== void 0 && "children" in this.params && ((e = this.params.children) == null ? void 0 : e.hideChevron) === !0;
|
|
2224
|
+
}
|
|
2225
|
+
get isChildrenFlippable() {
|
|
2226
|
+
var e;
|
|
2227
|
+
return !(this.params === void 0 || !("children" in this.params) || ((e = this.params.children) == null ? void 0 : e.isFlippable) === !1);
|
|
2228
|
+
}
|
|
2229
|
+
get isChildrenSearchable() {
|
|
2230
|
+
var e;
|
|
2231
|
+
return this.params !== void 0 && "children" in this.params && ((e = this.params.children) == null ? void 0 : e.searchable) === !0;
|
|
2232
|
+
}
|
|
2233
|
+
get childrenWidth() {
|
|
2234
|
+
var e;
|
|
2235
|
+
if (!(this.params === void 0 || !("children" in this.params))) return (e = this.params.children) == null ? void 0 : e.width;
|
|
2236
|
+
}
|
|
2237
|
+
get childrenMinWidth() {
|
|
2238
|
+
var e;
|
|
2239
|
+
if (!(this.params === void 0 || !("children" in this.params))) return (e = this.params.children) == null ? void 0 : e.minWidth;
|
|
2240
|
+
}
|
|
2241
|
+
get closeOnActivate() {
|
|
2242
|
+
return this.params !== void 0 && "closeOnActivate" in this.params && this.params.closeOnActivate;
|
|
2243
|
+
}
|
|
2244
|
+
get isActive() {
|
|
2245
|
+
return this.params === void 0 || !("isActive" in this.params) ? !1 : typeof this.params.isActive == "function" ? this.params.isActive() : this.params.isActive === !0;
|
|
2246
|
+
}
|
|
2247
|
+
}, K = {
|
|
2248
|
+
item: "flex items-center select-none border-none bg-transparent rounded-lg px-2 py-1 text-text-primary mb-px outline-hidden max-h-8 overflow-hidden data-blok-popover-item-active:bg-icon-active-bg data-blok-popover-item-active:text-icon-active-text can-hover:hover:cursor-pointer can-hover:hover:bg-item-hover-bg data-blok-force-hover:cursor-pointer data-blok-force-hover:bg-item-hover-bg data-[blok-focused=\"true\"]:bg-item-focus-bg data-blok-popover-item-no-hover:hover:bg-transparent data-blok-popover-item-no-hover:cursor-default can-hover:data-blok-popover-item-destructive:hover:text-item-destructive-text can-hover:data-blok-popover-item-destructive:hover:bg-item-destructive-hover-bg [&[data-blok-popover-item-destructive][data-blok-force-hover]]:text-item-destructive-text [&[data-blok-popover-item-destructive][data-blok-force-hover]]:bg-item-destructive-hover-bg [&[data-blok-popover-item-destructive][data-blok-focused=\"true\"]]:text-item-destructive-text [&[data-blok-popover-item-destructive][data-blok-focused=\"true\"]]:bg-item-destructive-hover-bg",
|
|
2249
|
+
itemDisabled: "cursor-default pointer-events-none text-text-secondary",
|
|
2250
|
+
icon: "flex items-center justify-center w-6 h-6 shrink-0 rounded-lg bg-popover-icon-bg [&_svg]:w-4 [&_svg]:h-4",
|
|
2251
|
+
focused: "is-focused"
|
|
2252
|
+
}, ri = {
|
|
2253
|
+
item: "rounded-md px-1 py-1.5",
|
|
2254
|
+
itemIconOnly: "justify-center",
|
|
2255
|
+
itemWithTitle: "px-2"
|
|
2256
|
+
}, ii = { item: "rounded p-[3px] mobile:p-1" }, q = class extends ni {
|
|
2257
|
+
get isDisabled() {
|
|
2258
|
+
return this.params.isDisabled === !0;
|
|
2259
|
+
}
|
|
2260
|
+
get toggle() {
|
|
2261
|
+
return this.params.toggle;
|
|
2262
|
+
}
|
|
2263
|
+
get title() {
|
|
2264
|
+
return this.params.title;
|
|
2265
|
+
}
|
|
2266
|
+
get englishTitle() {
|
|
2267
|
+
return this.params.englishTitle;
|
|
2268
|
+
}
|
|
2269
|
+
get searchTerms() {
|
|
2270
|
+
return this.params.searchTerms;
|
|
2271
|
+
}
|
|
2272
|
+
get isConfirmationStateEnabled() {
|
|
2273
|
+
return this.confirmationState !== null;
|
|
2274
|
+
}
|
|
2275
|
+
get isFocused() {
|
|
2276
|
+
return this.nodes.root === null ? !1 : this.nodes.root.hasAttribute(a.focused);
|
|
2277
|
+
}
|
|
2278
|
+
constructor(e, t) {
|
|
2279
|
+
super(e), this.params = e, this.nodes = {
|
|
2280
|
+
root: null,
|
|
2281
|
+
icon: null,
|
|
2282
|
+
titleEl: null,
|
|
2283
|
+
secondaryLabelEl: null,
|
|
2284
|
+
chevron: null
|
|
2285
|
+
}, this.confirmationState = null, this.removeSpecialFocusBehavior = () => {
|
|
2286
|
+
this.setNoFocus(!1);
|
|
2287
|
+
}, this.removeSpecialHoverBehavior = () => {
|
|
2288
|
+
this.setNoHover(!1);
|
|
2289
|
+
}, this.renderParams = t, this.nodes.root = this.createRootElement(e, t);
|
|
2290
|
+
}
|
|
2291
|
+
getElement() {
|
|
2292
|
+
return this.nodes.root;
|
|
2293
|
+
}
|
|
2294
|
+
handleClick() {
|
|
2295
|
+
if (this.isConfirmationStateEnabled && this.confirmationState !== null) {
|
|
2296
|
+
this.activateOrEnableConfirmationMode(this.confirmationState);
|
|
2297
|
+
return;
|
|
2298
|
+
}
|
|
2299
|
+
this.activateOrEnableConfirmationMode(this.params);
|
|
2300
|
+
}
|
|
2301
|
+
toggleActive(e) {
|
|
2302
|
+
if (this.nodes.root === null) return;
|
|
2303
|
+
let t = this.nodes.root.hasAttribute(a.popoverItemActive), n = e === void 0 ? !t : e;
|
|
2304
|
+
this.setActive(n);
|
|
2305
|
+
}
|
|
2306
|
+
toggleHidden(e) {
|
|
2307
|
+
this.setHidden(e);
|
|
2308
|
+
}
|
|
2309
|
+
reset() {
|
|
2310
|
+
this.isConfirmationStateEnabled && this.disableConfirmationMode();
|
|
2311
|
+
}
|
|
2312
|
+
onFocus() {
|
|
2313
|
+
this.disableSpecialHoverAndFocusBehavior();
|
|
2314
|
+
}
|
|
2315
|
+
createRootElement(e, t) {
|
|
2316
|
+
var r, i;
|
|
2317
|
+
let o = (r = t == null ? void 0 : t.wrapperTag) == null ? "div" : r, s = document.createElement(o);
|
|
2318
|
+
if (o === "button" && s.setAttribute("type", "button"), s.className = this.getContainerClass(), s.setAttribute(a.popoverItem, ""), s.setAttribute("data-blok-testid", "popover-item"), e.name && s.setAttribute("data-blok-item-name", e.name), e.dataset && Object.entries(e.dataset).forEach(([e, t]) => {
|
|
2319
|
+
s.setAttribute(`data-${e}`, t);
|
|
2320
|
+
}), e.isDisabled && s.setAttribute(a.disabled, "true"), "isDestructive" in e && e.isDestructive && s.setAttribute(a.popoverItemDestructive, "true"), this.isActive && s.setAttribute(a.popoverItemActive, "true"), this.hasChildren && s.setAttribute(a.hasChildren, "true"), this.createContentElements(s, e, t), e.hint !== void 0 && (t == null || (i = t.hint) == null ? void 0 : i.enabled) !== !1 && e.hint !== void 0) {
|
|
2321
|
+
var c, l;
|
|
2322
|
+
this.addHint(s, n(n({}, e.hint), {}, {
|
|
2323
|
+
position: (t == null || (c = t.hint) == null ? void 0 : c.position) || "right",
|
|
2324
|
+
alignment: (t == null || (l = t.hint) == null ? void 0 : l.alignment) || "center"
|
|
2325
|
+
}));
|
|
2326
|
+
}
|
|
2327
|
+
return s;
|
|
2328
|
+
}
|
|
2329
|
+
createContentElements(e, t, n) {
|
|
2330
|
+
var r, i, o;
|
|
2331
|
+
let s = (r = n == null ? void 0 : n.iconWithGap) == null ? !0 : r, c = (i = n == null ? void 0 : n.isInline) == null ? !1 : i, l = (o = n == null ? void 0 : n.isNestedInline) == null ? !1 : o, u = t.title;
|
|
2332
|
+
if (t.icon && (this.nodes.icon = this.createIconElement(t.icon, s, c, l), e.appendChild(this.nodes.icon)), u !== void 0) {
|
|
2333
|
+
let n = document.createElement("div");
|
|
2334
|
+
n.className = t.secondaryLabel ? "grow whitespace-nowrap text-[13px] font-medium leading-5" : "mr-auto whitespace-nowrap text-[13px] font-medium leading-5", n.setAttribute(a.popoverItemTitle, ""), n.setAttribute("data-blok-testid", "popover-item-title"), n.textContent = u, e.appendChild(n), this.nodes.titleEl = n;
|
|
2335
|
+
}
|
|
2336
|
+
if (t.secondaryLabel) {
|
|
2337
|
+
let n = document.createElement("div");
|
|
2338
|
+
if (n.className = "ml-auto shrink-0 inline-flex items-center whitespace-nowrap pl-20 leading-none text-text-secondary/60", n.setAttribute(a.popoverItemSecondaryTitle, ""), n.setAttribute("data-blok-testid", "popover-item-secondary-title"), n.innerHTML = Qr(t.secondaryLabel), e.appendChild(n), this.nodes.secondaryLabelEl = n, t.title !== void 0) {
|
|
2339
|
+
var d;
|
|
2340
|
+
Ft((d = n.firstElementChild) == null ? n : d, ei(t.secondaryLabel), { placement: "top" });
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
if (t.trailingIcon) {
|
|
2344
|
+
let n = document.createElement("div");
|
|
2345
|
+
n.className = "ml-auto shrink-0 flex items-center justify-center [&_svg]:w-icon [&_svg]:h-icon", n.setAttribute("data-blok-testid", "popover-item-trailing-icon"), n.innerHTML = t.trailingIcon, e.appendChild(n);
|
|
2346
|
+
}
|
|
2347
|
+
if (this.hasChildren && !this.isChevronHidden) {
|
|
2348
|
+
let t = document.createElement("div");
|
|
2349
|
+
t.className = this.getChevronClass(c), t.setAttribute(a.popoverItemIcon, ""), t.setAttribute(a.popoverItemIconChevronRight, ""), t.setAttribute("data-blok-testid", "popover-item-chevron-right"), t.innerHTML = wn, e.appendChild(t), this.nodes.chevron = t;
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
createIconElement(e, t, n, r) {
|
|
2353
|
+
let i = document.createElement("div");
|
|
2354
|
+
return i.className = this.getIconClass(t, n, r), i.setAttribute(a.popoverItemIcon, ""), i.setAttribute("data-blok-testid", "popover-item-icon"), i.innerHTML = e, t && i.setAttribute(a.tool, ""), i;
|
|
2355
|
+
}
|
|
2356
|
+
getContainerClass() {
|
|
2357
|
+
var e, t, n, i;
|
|
2358
|
+
let a = (e = (t = this.renderParams) == null ? void 0 : t.isInline) == null ? !1 : e, o = (n = (i = this.renderParams) == null ? void 0 : i.isNestedInline) == null ? !1 : n;
|
|
2359
|
+
return r(K.item, !a && !o && "pl-2 pr-3", a && ri.item, a && this.params.icon && ri.itemIconOnly, a && this.params.title && ri.itemWithTitle, o && ii.item, this.params.isDisabled && K.itemDisabled);
|
|
2360
|
+
}
|
|
2361
|
+
getIconClass(e, t, n) {
|
|
2362
|
+
return r(K.icon, t && "w-auto h-auto bg-transparent [&_svg]:w-icon [&_svg]:h-icon mobile:[&_svg]:w-icon-mobile mobile:[&_svg]:h-icon-mobile", n && "w-toolbox-btn h-toolbox-btn", e && "mr-3", e && t && "shadow-none mr-0!", e && n && "mr-2!");
|
|
2363
|
+
}
|
|
2364
|
+
getChevronClass(e) {
|
|
2365
|
+
return r(K.icon, "w-5 h-5 bg-transparent", e && "rotate-90");
|
|
2366
|
+
}
|
|
2367
|
+
setActive(e) {
|
|
2368
|
+
this.nodes.root && (e ? this.nodes.root.setAttribute(a.popoverItemActive, "true") : this.nodes.root.removeAttribute(a.popoverItemActive));
|
|
2369
|
+
}
|
|
2370
|
+
setHidden(e) {
|
|
2371
|
+
this.nodes.root && (e ? (this.nodes.root.setAttribute(a.hidden, "true"), this.nodes.root.classList.add("opacity-0", "max-h-0!", "py-0!", "mb-0!")) : (this.nodes.root.removeAttribute(a.hidden), this.nodes.root.classList.remove("opacity-0", "max-h-0!", "py-0!", "mb-0!")));
|
|
2372
|
+
}
|
|
2373
|
+
setFocused(e) {
|
|
2374
|
+
this.nodes.root && (e ? (this.nodes.root.setAttribute(a.focused, "true"), this.nodes.root.classList.add("bg-item-focus-bg!")) : (this.nodes.root.removeAttribute(a.focused), this.nodes.root.classList.remove("bg-item-focus-bg!")));
|
|
2375
|
+
}
|
|
2376
|
+
setNoHover(e) {
|
|
2377
|
+
this.nodes.root && (e ? this.nodes.root.setAttribute(a.popoverItemNoHover, "true") : this.nodes.root.removeAttribute(a.popoverItemNoHover));
|
|
2378
|
+
}
|
|
2379
|
+
setNoFocus(e) {
|
|
2380
|
+
this.nodes.root && (e ? this.nodes.root.setAttribute(a.popoverItemNoFocus, "true") : this.nodes.root.removeAttribute(a.popoverItemNoFocus));
|
|
2381
|
+
}
|
|
2382
|
+
enableConfirmationMode(e) {
|
|
2383
|
+
if (this.nodes.root === null) return;
|
|
2384
|
+
let t = n(n(n({}, this.params), e), {}, { confirmation: "confirmation" in e ? e.confirmation : void 0 });
|
|
2385
|
+
this.setConfirmation(t), this.confirmationState = e, this.enableSpecialHoverAndFocusBehavior();
|
|
2386
|
+
}
|
|
2387
|
+
setConfirmation(e) {
|
|
2388
|
+
if (this.nodes.root) {
|
|
2389
|
+
if (e === null) {
|
|
2390
|
+
this.clearConfirmationState();
|
|
2391
|
+
return;
|
|
2392
|
+
}
|
|
2393
|
+
this.applyConfirmationState(e);
|
|
2394
|
+
}
|
|
2395
|
+
}
|
|
2396
|
+
clearConfirmationState() {
|
|
2397
|
+
this.nodes.root && (this.nodes.root.removeAttribute(a.popoverItemConfirmation), this.nodes.root.classList.remove("bg-item-confirm-bg!", "text-white!"), this.restoreOriginalIcon(), this.restoreOriginalTitle(), this.restoreOriginalSecondaryLabel());
|
|
2398
|
+
}
|
|
2399
|
+
applyConfirmationState(e) {
|
|
2400
|
+
this.nodes.root && (this.nodes.root.setAttribute(a.popoverItemConfirmation, "true"), this.nodes.root.classList.add("bg-item-confirm-bg!", "text-white!"), this.updateIcon(e.icon), this.updateTitle(e), this.updateSecondaryLabel(e.secondaryLabel));
|
|
2401
|
+
}
|
|
2402
|
+
restoreOriginalIcon() {
|
|
2403
|
+
!this.nodes.icon || !this.params.icon || (this.nodes.icon.innerHTML = this.params.icon);
|
|
2404
|
+
}
|
|
2405
|
+
restoreOriginalTitle() {
|
|
2406
|
+
!this.nodes.titleEl || this.params.title === void 0 || (this.nodes.titleEl.textContent = this.params.title);
|
|
2407
|
+
}
|
|
2408
|
+
restoreOriginalSecondaryLabel() {
|
|
2409
|
+
if (!this.nodes.secondaryLabelEl) return;
|
|
2410
|
+
let e = this.params.secondaryLabel;
|
|
2411
|
+
this.nodes.secondaryLabelEl.innerHTML = e ? Qr(e) : "", this.nodes.secondaryLabelEl.style.display = e ? "" : "none";
|
|
2412
|
+
}
|
|
2413
|
+
updateIcon(e) {
|
|
2414
|
+
!this.nodes.icon || !e || (this.nodes.icon.innerHTML = e);
|
|
2415
|
+
}
|
|
2416
|
+
updateTitle(e) {
|
|
2417
|
+
!this.nodes.titleEl || e.title === void 0 || (this.nodes.titleEl.textContent = e.title);
|
|
2418
|
+
}
|
|
2419
|
+
updateSecondaryLabel(e) {
|
|
2420
|
+
this.nodes.secondaryLabelEl && (this.nodes.secondaryLabelEl.innerHTML = e ? Qr(e) : "", this.nodes.secondaryLabelEl.style.display = e ? "" : "none");
|
|
2421
|
+
}
|
|
2422
|
+
disableConfirmationMode() {
|
|
2423
|
+
this.nodes.root !== null && (this.setConfirmation(null), this.confirmationState = null, this.disableSpecialHoverAndFocusBehavior());
|
|
2424
|
+
}
|
|
2425
|
+
enableSpecialHoverAndFocusBehavior() {
|
|
2426
|
+
var e;
|
|
2427
|
+
this.setNoHover(!0), this.setNoFocus(!0), (e = this.nodes.root) == null || e.addEventListener("mouseleave", this.removeSpecialHoverBehavior, { once: !0 });
|
|
2428
|
+
}
|
|
2429
|
+
disableSpecialHoverAndFocusBehavior() {
|
|
2430
|
+
var e;
|
|
2431
|
+
this.removeSpecialFocusBehavior(), this.removeSpecialHoverBehavior(), (e = this.nodes.root) == null || e.removeEventListener("mouseleave", this.removeSpecialHoverBehavior);
|
|
2432
|
+
}
|
|
2433
|
+
activateOrEnableConfirmationMode(e) {
|
|
2434
|
+
if (!("confirmation" in e) || e.confirmation === void 0) try {
|
|
2435
|
+
var t;
|
|
2436
|
+
(t = e.onActivate) == null || t.call(e, e), this.disableConfirmationMode();
|
|
2437
|
+
} catch (e) {}
|
|
2438
|
+
else this.enableConfirmationMode(e.confirmation);
|
|
2439
|
+
}
|
|
2440
|
+
getIconElement() {
|
|
2441
|
+
return this.nodes.icon;
|
|
2442
|
+
}
|
|
2443
|
+
}, J = {
|
|
2444
|
+
container: "py-1.5 max-h-5 overflow-hidden",
|
|
2445
|
+
containerHidden: "opacity-0 max-h-0! py-0!",
|
|
2446
|
+
line: "h-px w-full bg-popover-border/60"
|
|
2447
|
+
}, ai = {
|
|
2448
|
+
container: "px-1 py-0 max-h-none",
|
|
2449
|
+
line: "h-full w-px",
|
|
2450
|
+
nestedContainer: "py-1 px-[3px]",
|
|
2451
|
+
nestedLine: "w-full h-px"
|
|
2452
|
+
}, oi = class extends ni {
|
|
2453
|
+
constructor(e) {
|
|
2454
|
+
var t, n;
|
|
2455
|
+
super(), this.nodes = {
|
|
2456
|
+
root: null,
|
|
2457
|
+
line: null
|
|
2458
|
+
}, this.isInline = (t = e == null ? void 0 : e.isInline) == null ? !1 : t, this.isNestedInline = (n = e == null ? void 0 : e.isNestedInline) == null ? !1 : n, this.nodes.root = this.createRootElement();
|
|
2459
|
+
}
|
|
2460
|
+
getElement() {
|
|
2461
|
+
return this.nodes.root;
|
|
2462
|
+
}
|
|
2463
|
+
toggleHidden(e) {
|
|
2464
|
+
if (!this.nodes.root) return;
|
|
2465
|
+
let t = this.getContainerClass(!1), n = this.getContainerClass(!0);
|
|
2466
|
+
this.nodes.root.className = e ? n : t, e ? this.nodes.root.setAttribute(a.hidden, "true") : this.nodes.root.removeAttribute(a.hidden);
|
|
2467
|
+
}
|
|
2468
|
+
getContainerClass(e) {
|
|
2469
|
+
let t = J.container;
|
|
2470
|
+
return this.isNestedInline ? r(t, ai.nestedContainer, e && J.containerHidden) : this.isInline ? r(t, ai.container, e && J.containerHidden) : r(t, e && J.containerHidden);
|
|
2471
|
+
}
|
|
2472
|
+
getLineClass() {
|
|
2473
|
+
return this.isNestedInline ? r(J.line, ai.nestedLine) : this.isInline ? r(J.line, ai.line) : J.line;
|
|
2474
|
+
}
|
|
2475
|
+
createRootElement() {
|
|
2476
|
+
let e = document.createElement("div");
|
|
2477
|
+
e.className = this.getContainerClass(!1), e.setAttribute(a.popoverItemSeparator, ""), e.setAttribute("data-blok-testid", "popover-item-separator");
|
|
2478
|
+
let t = document.createElement("div");
|
|
2479
|
+
return t.className = this.getLineClass(), t.setAttribute(a.popoverItemSeparatorLine, ""), e.appendChild(t), this.nodes.line = t, e;
|
|
2480
|
+
}
|
|
2481
|
+
}, si = {
|
|
2482
|
+
root: "",
|
|
2483
|
+
rootHidden: "hidden"
|
|
2484
|
+
}, ci = { root: "flex items-center" }, Y = class extends ni {
|
|
2485
|
+
constructor(e, t) {
|
|
2486
|
+
var n;
|
|
2487
|
+
super(e), this.nodes = { root: null }, this.isHidden = !1, this.isInline = (n = t == null ? void 0 : t.isInline) == null ? !1 : n, this.nodes.root = this.createRootElement(e, t);
|
|
2488
|
+
}
|
|
2489
|
+
getElement() {
|
|
2490
|
+
return this.nodes.root;
|
|
2491
|
+
}
|
|
2492
|
+
toggleHidden(e) {
|
|
2493
|
+
this.isHidden = e, this.updateRootClasses(), this.nodes.root && (e ? this.nodes.root.setAttribute(a.hidden, "true") : this.nodes.root.removeAttribute(a.hidden));
|
|
2494
|
+
}
|
|
2495
|
+
getControls() {
|
|
2496
|
+
if (!this.nodes.root) return [];
|
|
2497
|
+
let e = this.nodes.root.querySelectorAll(`button, ${T.allInputsSelector}`);
|
|
2498
|
+
return Array.from(e);
|
|
2499
|
+
}
|
|
2500
|
+
updateRootClasses() {
|
|
2501
|
+
this.nodes.root && (this.nodes.root.className = r(si.root, this.isInline && ci.root, this.isHidden && si.rootHidden));
|
|
2502
|
+
}
|
|
2503
|
+
createRootElement(e, t) {
|
|
2504
|
+
var i;
|
|
2505
|
+
let o = document.createElement("div");
|
|
2506
|
+
if (o.className = r(si.root, this.isInline && ci.root), o.setAttribute(a.popoverItemHtml, ""), o.setAttribute("data-blok-testid", "popover-item-html"), e.name && o.setAttribute("data-blok-item-name", e.name), o.appendChild(e.element), e.hint !== void 0 && (t == null || (i = t.hint) == null ? void 0 : i.enabled) !== !1) {
|
|
2507
|
+
var s, c;
|
|
2508
|
+
this.addHint(o, n(n({}, e.hint), {}, {
|
|
2509
|
+
position: (t == null || (s = t.hint) == null ? void 0 : s.position) || "right",
|
|
2510
|
+
alignment: (t == null || (c = t.hint) == null ? void 0 : c.alignment) || "center"
|
|
2511
|
+
}));
|
|
2512
|
+
}
|
|
2513
|
+
return o;
|
|
2514
|
+
}
|
|
2515
|
+
}, li = {
|
|
2516
|
+
wrapper: "bg-search-input-bg border border-search-input-border rounded-lg px-2 py-0.5 grid grid-cols-[auto_1fr] grid-rows-[auto] focus-within:border-search-input-focus-border focus-within:shadow-[0_0_0_2px_rgba(35,131,226,0.15)]",
|
|
2517
|
+
icon: "w-6 h-6 flex items-center justify-center mr-1.5 [&_svg]:w-4 [&_svg]:h-4 [&_svg]:text-gray-text",
|
|
2518
|
+
input: "text-sm outline-hidden font-medium font-inherit border-0 bg-transparent m-0 p-0 leading-[20px] min-w-[calc(100%-(--spacing(6))-6px)] text-text-primary placeholder:text-gray-text/80 placeholder:font-normal"
|
|
2519
|
+
}, ui = (e, t) => {
|
|
2520
|
+
if (e.length === 0) return t.length;
|
|
2521
|
+
if (t.length === 0) return e.length;
|
|
2522
|
+
let n = Array.from({ length: t.length + 1 }, (e, t) => t), r = Array(t.length + 1);
|
|
2523
|
+
for (let [i, a] of [...e].entries()) {
|
|
2524
|
+
r[0] = i + 1;
|
|
2525
|
+
for (let [e, i] of [...t].entries()) {
|
|
2526
|
+
let t = e + 1, o = a === i ? 0 : 1;
|
|
2527
|
+
r[t] = Math.min(n[t] + 1, r[t - 1] + 1, n[t - 1] + o);
|
|
2528
|
+
}
|
|
2529
|
+
n.splice(0, n.length, ...r);
|
|
2530
|
+
}
|
|
2531
|
+
return n[t.length];
|
|
2532
|
+
}, di = (e, t) => [...e].reduce((e, n) => e < t.length && n === t[e] ? e + 1 : e, 0) === t.length, fi = (e, t) => [...e].reduce((n, r, i) => {
|
|
2533
|
+
let a = i === 0 || e[i - 1] === " " || e[i - 1] === "-" || e[i - 1] === "_";
|
|
2534
|
+
return n < t.length && a && r === t[n] ? n + 1 : n;
|
|
2535
|
+
}, 0) === t.length, pi = (e, t) => {
|
|
2536
|
+
if (e === t) return 100;
|
|
2537
|
+
if (e.startsWith(t)) return 90;
|
|
2538
|
+
if (e.includes(t)) return 75;
|
|
2539
|
+
if (t.length >= 2 && fi(e, t)) return 55;
|
|
2540
|
+
if (t.length >= 2 && di(e, t)) return 35;
|
|
2541
|
+
if (t.length >= 3) {
|
|
2542
|
+
let n = Math.floor(t.length / 3);
|
|
2543
|
+
if (ui(e, t) <= n) return 15;
|
|
2544
|
+
}
|
|
2545
|
+
return 0;
|
|
2546
|
+
}, mi = (e, t) => {
|
|
2547
|
+
if (t === "") return 100;
|
|
2548
|
+
let n = t.toLowerCase(), r = [];
|
|
2549
|
+
if (e.title !== void 0 && r.push(e.title.toLowerCase()), e.englishTitle !== void 0 && r.push(e.englishTitle.toLowerCase()), e.searchTerms !== void 0) for (let t of e.searchTerms) r.push(t.toLowerCase());
|
|
2550
|
+
return r.reduce((e, t) => {
|
|
2551
|
+
let r = pi(t, n);
|
|
2552
|
+
return r > e ? r : e;
|
|
2553
|
+
}, 0);
|
|
2554
|
+
}, hi = /* @__PURE__ */ function(e) {
|
|
2555
|
+
return e.Search = "search", e;
|
|
2556
|
+
}({}), gi = class extends Re {
|
|
2557
|
+
constructor({ items: e, placeholder: t }) {
|
|
2558
|
+
super(), this.searchQuery = "", this.handleValueChange = () => {
|
|
2559
|
+
this.applySearch(this.input.value);
|
|
2560
|
+
}, this.listeners = new Oe(), this.items = e, this.wrapper = T.make("div", li.wrapper), this.wrapper.setAttribute("data-blok-testid", "popover-search-field");
|
|
2561
|
+
let n = T.make("div", li.icon, { innerHTML: Tn });
|
|
2562
|
+
this.input = T.make("input", li.input, {
|
|
2563
|
+
type: "search",
|
|
2564
|
+
placeholder: t,
|
|
2565
|
+
tabIndex: -1
|
|
2566
|
+
}), this.input.setAttribute("data-blok-flipper-navigation-target", "true"), this.input.setAttribute("data-blok-testid", "popover-search-input"), this.wrapper.appendChild(n), this.wrapper.appendChild(this.input), this.overrideValueProperty(), [
|
|
2567
|
+
"input",
|
|
2568
|
+
"keyup",
|
|
2569
|
+
"search",
|
|
2570
|
+
"change"
|
|
2571
|
+
].forEach((e) => {
|
|
2572
|
+
this.listeners.on(this.input, e, this.handleValueChange);
|
|
2573
|
+
});
|
|
2574
|
+
}
|
|
2575
|
+
getElement() {
|
|
2576
|
+
return this.wrapper;
|
|
2577
|
+
}
|
|
2578
|
+
focus() {
|
|
2579
|
+
this.input.focus();
|
|
2580
|
+
}
|
|
2581
|
+
clear() {
|
|
2582
|
+
this.input.value = "";
|
|
2583
|
+
}
|
|
2584
|
+
applySearch(e) {
|
|
2585
|
+
this.searchQuery !== e && (this.searchQuery = e, this.emit(hi.Search, {
|
|
2586
|
+
query: e,
|
|
2587
|
+
items: this.foundItems
|
|
2588
|
+
}));
|
|
2589
|
+
}
|
|
2590
|
+
overrideValueProperty() {
|
|
2591
|
+
var e, t;
|
|
2592
|
+
let n = Object.getPrototypeOf(this.input), r = Object.getOwnPropertyDescriptor(n, "value");
|
|
2593
|
+
if ((r == null ? void 0 : r.set) === void 0 || r.get === void 0) return;
|
|
2594
|
+
let i = this.applySearch.bind(this), a = r.get, o = r.set;
|
|
2595
|
+
Object.defineProperty(this.input, "value", {
|
|
2596
|
+
configurable: (e = r.configurable) == null ? !0 : e,
|
|
2597
|
+
enumerable: (t = r.enumerable) == null ? !1 : t,
|
|
2598
|
+
get() {
|
|
2599
|
+
let e = a == null ? void 0 : a.call(this);
|
|
2600
|
+
return typeof e == "string" ? e : "";
|
|
2601
|
+
},
|
|
2602
|
+
set(e) {
|
|
2603
|
+
o == null || o.call(this, e), i(e);
|
|
2604
|
+
}
|
|
2605
|
+
});
|
|
2606
|
+
}
|
|
2607
|
+
destroy() {
|
|
2608
|
+
this.listeners.removeAll();
|
|
2609
|
+
}
|
|
2610
|
+
get foundItems() {
|
|
2611
|
+
return this.items.map((e) => ({
|
|
2612
|
+
item: e,
|
|
2613
|
+
score: mi(e, this.searchQuery)
|
|
2614
|
+
})).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score).map(({ item: e }) => e);
|
|
2615
|
+
}
|
|
2616
|
+
}, _i, vi = class e {
|
|
2617
|
+
constructor() {
|
|
2618
|
+
this.stack = [], this.boundPointerDown = null;
|
|
2619
|
+
}
|
|
2620
|
+
static get instance() {
|
|
2621
|
+
return e._instance === null && (e._instance = new e()), e._instance;
|
|
2622
|
+
}
|
|
2623
|
+
static resetForTests() {
|
|
2624
|
+
var t;
|
|
2625
|
+
return (t = e._instance) == null || t.destroy(), e._instance = new e(), e._instance;
|
|
2626
|
+
}
|
|
2627
|
+
register(e, t) {
|
|
2628
|
+
let n = [...this.stack];
|
|
2629
|
+
for (let t of n) t.popover !== e && (t.popover.hide(), this.removeFromStack(t.popover));
|
|
2630
|
+
this.stack.push({
|
|
2631
|
+
popover: e,
|
|
2632
|
+
triggerElement: t
|
|
2633
|
+
}), this.ensureDocumentListener();
|
|
2634
|
+
}
|
|
2635
|
+
unregister(e) {
|
|
2636
|
+
this.removeFromStack(e), this.stack.length === 0 && this.removeDocumentListener();
|
|
2637
|
+
}
|
|
2638
|
+
closeTopmost() {
|
|
2639
|
+
return this.stack.length === 0 ? !1 : (this.stack[this.stack.length - 1].popover.hide(), !0);
|
|
2640
|
+
}
|
|
2641
|
+
hasOpenPopovers() {
|
|
2642
|
+
return this.stack.length > 0;
|
|
2643
|
+
}
|
|
2644
|
+
destroy() {
|
|
2645
|
+
this.removeDocumentListener(), this.stack = [];
|
|
2646
|
+
}
|
|
2647
|
+
handleDocumentPointerDown(e) {
|
|
2648
|
+
let t = e.target;
|
|
2649
|
+
if (!(t instanceof Node)) return;
|
|
2650
|
+
let n = [];
|
|
2651
|
+
for (let e of [...this.stack].reverse()) {
|
|
2652
|
+
if (e.popover.hasNode(t) || e.triggerElement.contains(t)) break;
|
|
2653
|
+
n.push(e);
|
|
2654
|
+
}
|
|
2655
|
+
for (let e of n) e.popover.hide();
|
|
2656
|
+
}
|
|
2657
|
+
ensureDocumentListener() {
|
|
2658
|
+
this.boundPointerDown === null && (this.boundPointerDown = (e) => this.handleDocumentPointerDown(e), document.addEventListener("pointerdown", this.boundPointerDown));
|
|
2659
|
+
}
|
|
2660
|
+
removeDocumentListener() {
|
|
2661
|
+
this.boundPointerDown !== null && (document.removeEventListener("pointerdown", this.boundPointerDown), this.boundPointerDown = null);
|
|
2662
|
+
}
|
|
2663
|
+
removeFromStack(e) {
|
|
2664
|
+
let t = this.stack.findIndex((t) => t.popover === e);
|
|
2665
|
+
t !== -1 && this.stack.splice(t, 1);
|
|
2666
|
+
}
|
|
2667
|
+
};
|
|
2668
|
+
_i = vi, _i._instance = null;
|
|
2669
|
+
//#endregion
|
|
2670
|
+
//#region src/components/utils/popover/popover.const.ts
|
|
2671
|
+
var X = {
|
|
2672
|
+
popoverContainer: "absolute flex flex-col overflow-hidden box-border opacity-0 pointer-events-none p-0 border-none z-[var(--blok-z-popover)] max-h-0 min-w-(--width) w-(--width) rounded-xl text-sm left-(--popover-left) top-(--popover-top) bg-popover-bg",
|
|
2673
|
+
popoverContainerMobile: "fixed max-w-none rounded-[10px] min-w-[calc(100%-var(--offset)*2)] left-auto top-auto inset-[auto_var(--offset)_calc(var(--offset)+env(safe-area-inset-bottom))_var(--offset)]",
|
|
2674
|
+
popoverContainerOpened: "opacity-100 pointer-events-auto px-1.5 pt-1.5 pb-0 max-h-(--max-height) border-none",
|
|
2675
|
+
popoverOverlay: "hidden bg-dark",
|
|
2676
|
+
items: "flex-1 min-h-0 overflow-y-auto overscroll-contain pb-1.5",
|
|
2677
|
+
scrollHaze: "absolute inset-x-0 h-6 pointer-events-none z-1 transition-opacity duration-300 ease-in-out"
|
|
2678
|
+
}, yi = {
|
|
2679
|
+
popover: "relative",
|
|
2680
|
+
popoverContainer: "flex-row top-0 min-w-max w-max p-1 mobile:absolute",
|
|
2681
|
+
popoverContainerOpened: "pb-1.5"
|
|
2682
|
+
}, bi = (e) => `level-${e}`, Z = /* @__PURE__ */ function(e) {
|
|
2683
|
+
return e.NestingLevel = "--nesting-level", e.PopoverHeight = "--popover-height", e.InlinePopoverWidth = "--inline-popover-width", e.PopoverTop = "--popover-top", e.PopoverLeft = "--popover-left", e.TriggerItemLeft = "--trigger-item-left", e.TriggerItemTop = "--trigger-item-top", e;
|
|
2684
|
+
}({}), Q = /* @__PURE__ */ function(e) {
|
|
2685
|
+
return e.Closed = "closed", e.ClosedOnActivate = "closed-on-activate", e;
|
|
2686
|
+
}({}), xi = class extends Re {
|
|
2687
|
+
get itemsDefault() {
|
|
2688
|
+
return this.items.filter((e) => e instanceof q);
|
|
2689
|
+
}
|
|
2690
|
+
constructor(e, t = {}) {
|
|
2691
|
+
super(), this.params = e, this.itemsRenderParams = t, this.listeners = new Oe(), this.messages = {
|
|
2692
|
+
nothingFound: "Nothing found",
|
|
2693
|
+
search: "Search",
|
|
2694
|
+
actions: "Actions"
|
|
2695
|
+
}, this.permanentlyHiddenNames = /* @__PURE__ */ new Set(), this.items = this.buildItems(e.items), e.messages && (this.messages = n(n({}, this.messages), e.messages)), this.nodes = this.createPopoverDOM(), this.appendItemElements(), this.nodes.popoverContainer && this.listeners.on(this.nodes.popoverContainer, "click", (e) => this.handleClick(e)), this.nodes.items && this.listeners.on(this.nodes.items, "scroll", () => this.updateScrollHazes());
|
|
2696
|
+
}
|
|
2697
|
+
getElement() {
|
|
2698
|
+
return this.nodes.popover;
|
|
2699
|
+
}
|
|
2700
|
+
getMountElement() {
|
|
2701
|
+
return this.nodes.popover;
|
|
2702
|
+
}
|
|
2703
|
+
get isShown() {
|
|
2704
|
+
return this.nodes.popover.hasAttribute(a.popoverOpened);
|
|
2705
|
+
}
|
|
2706
|
+
show() {
|
|
2707
|
+
var e, t;
|
|
2708
|
+
let n = this.nodes.popover;
|
|
2709
|
+
n !== null && !n.isConnected && document.body.appendChild(n);
|
|
2710
|
+
let i = ((e = this.params.nestingLevel) == null ? 0 : e) === 0, o = this.params.trigger !== void 0;
|
|
2711
|
+
n !== null && i && o && I() && yt(n), this.nodes.popover.setAttribute(a.popoverOpened, "true"), this.nodes.popoverContainer.className = r(this.nodes.popoverContainer.className, X.popoverContainerOpened), this.itemsDefault.forEach((e) => this.refreshItemActiveState(e)), this.search !== void 0 && this.search.focus(), this.nodes.scrollHazeTop.style.transition = "none", this.nodes.scrollHazeBottom.style.transition = "none", this.updateScrollHazes(), requestAnimationFrame(() => {
|
|
2712
|
+
this.nodes.scrollHazeTop.style.transition = "", this.nodes.scrollHazeBottom.style.transition = "";
|
|
2713
|
+
});
|
|
2714
|
+
let { trigger: s } = this.params;
|
|
2715
|
+
((t = this.params.nestingLevel) == null ? 0 : t) === 0 && s !== void 0 && vi.instance.register(this, s);
|
|
2716
|
+
}
|
|
2717
|
+
hide() {
|
|
2718
|
+
let e = this.nodes.popover;
|
|
2719
|
+
e !== null && I() && xt(e) && bt(e), this.nodes.popover.removeAttribute(a.popoverOpened), this.nodes.popover.removeAttribute(a.popoverOpenTop), this.nodes.popover.removeAttribute(a.popoverOpenLeft), this.nodes.popoverContainer.className = X.popoverContainer, this.itemsDefault.forEach((e) => e.reset()), this.nodes.scrollHazeTop.style.opacity = "0", this.nodes.scrollHazeBottom.style.opacity = "0", this.search !== void 0 && this.search.clear(), vi.instance.unregister(this), this.emit(Q.Closed);
|
|
2720
|
+
}
|
|
2721
|
+
destroy() {
|
|
2722
|
+
var e, t;
|
|
2723
|
+
let n = this.createCloseGhost();
|
|
2724
|
+
this.items.forEach((e) => e.destroy()), (e = this.nodes.popover) == null || e.remove(), this.listeners.removeAll(), (t = this.search) == null || t.destroy(), this.playCloseGhost(n);
|
|
2725
|
+
}
|
|
2726
|
+
createCloseGhost() {
|
|
2727
|
+
let e = this.nodes.popover;
|
|
2728
|
+
if (!(e != null && e.isConnected)) return null;
|
|
2729
|
+
let t = e.getBoundingClientRect();
|
|
2730
|
+
if (t.width === 0 && t.height === 0) return null;
|
|
2731
|
+
let n = e.cloneNode(!0);
|
|
2732
|
+
n.removeAttribute("id"), n.removeAttribute("data-blok-testid"), n.querySelectorAll("[id]").forEach((e) => e.removeAttribute("id")), n.querySelectorAll("[data-blok-testid]").forEach((e) => e.removeAttribute("data-blok-testid")), n.setAttribute(a.popoverOpened, "true");
|
|
2733
|
+
let i = n.querySelector(`[${a.popoverContainer}]`);
|
|
2734
|
+
return i && (i.className = r(X.popoverContainer, X.popoverContainerOpened)), n.style.position = "absolute", n.style.top = `${t.top + window.scrollY}px`, n.style.left = `${t.left + window.scrollX}px`, n.style.pointerEvents = "none", n.querySelectorAll(`[${a.popoverContainer}]`).forEach((e) => {
|
|
2735
|
+
e.style.setProperty("pointer-events", "none");
|
|
2736
|
+
}), n;
|
|
2737
|
+
}
|
|
2738
|
+
playCloseGhost(e) {
|
|
2739
|
+
if (!e) return;
|
|
2740
|
+
document.body.appendChild(e), e.offsetHeight, e.removeAttribute(a.popoverOpened);
|
|
2741
|
+
let t = e.querySelector(`[${a.popoverContainer}]`);
|
|
2742
|
+
t && (t.className = X.popoverContainer);
|
|
2743
|
+
let n = () => e.remove();
|
|
2744
|
+
t == null || t.addEventListener("transitionend", n, { once: !0 }), window.setTimeout(n, 400);
|
|
2745
|
+
}
|
|
2746
|
+
filterItems(e) {}
|
|
2747
|
+
toggleItemHiddenByName(e, t) {
|
|
2748
|
+
this.items.filter((t) => t.name === e).forEach((e) => e.toggleHidden(t)), t ? this.permanentlyHiddenNames.add(e) : this.permanentlyHiddenNames.delete(e);
|
|
2749
|
+
}
|
|
2750
|
+
isNamePermanentlyHidden(e) {
|
|
2751
|
+
return this.permanentlyHiddenNames.has(e);
|
|
2752
|
+
}
|
|
2753
|
+
activateItemByName(e) {
|
|
2754
|
+
let t = this.items.find((t) => t.name === e);
|
|
2755
|
+
t !== void 0 && this.handleItemClick(t);
|
|
2756
|
+
}
|
|
2757
|
+
buildItems(e) {
|
|
2758
|
+
return e.map((e) => {
|
|
2759
|
+
switch (e.type) {
|
|
2760
|
+
case M.Separator: return new oi(this.itemsRenderParams[M.Separator]);
|
|
2761
|
+
case M.Html: return new Y(e, this.itemsRenderParams[M.Html]);
|
|
2762
|
+
case M.Default:
|
|
2763
|
+
case void 0: return new q(e, this.itemsRenderParams[M.Default]);
|
|
2764
|
+
}
|
|
2765
|
+
});
|
|
2766
|
+
}
|
|
2767
|
+
getTargetItem(e) {
|
|
2768
|
+
return this.items.filter((e) => e instanceof q || e instanceof Y).find((t) => {
|
|
2769
|
+
let n = t.getElement();
|
|
2770
|
+
return n === null ? !1 : e.composedPath().includes(n);
|
|
2771
|
+
});
|
|
2772
|
+
}
|
|
2773
|
+
handleItemClick(e) {
|
|
2774
|
+
if (!(e instanceof q && e.isDisabled)) {
|
|
2775
|
+
if (e.hasChildren) {
|
|
2776
|
+
this.showNestedItems(e), this.callHandleClickIfPresent(e);
|
|
2777
|
+
return;
|
|
2778
|
+
}
|
|
2779
|
+
this.itemsDefault.filter((t) => t !== e).forEach((e) => e.reset()), this.callHandleClickIfPresent(e), this.toggleItemActivenessIfNeeded(e), this.refreshItemActiveState(e), e.closeOnActivate === !0 && (this.hide(), this.emit(Q.ClosedOnActivate));
|
|
2780
|
+
}
|
|
2781
|
+
}
|
|
2782
|
+
handleClick(e) {
|
|
2783
|
+
let t = this.getTargetItem(e);
|
|
2784
|
+
t !== void 0 && this.handleItemClick(t);
|
|
2785
|
+
}
|
|
2786
|
+
toggleItemActivenessIfNeeded(e) {
|
|
2787
|
+
if (!(e instanceof q) || (e.toggle === !0 && e.toggleActive(), typeof e.toggle != "string")) return;
|
|
2788
|
+
let t = this.itemsDefault.filter((t) => t.toggle === e.toggle);
|
|
2789
|
+
if (t.length === 1) {
|
|
2790
|
+
e.toggleActive();
|
|
2791
|
+
return;
|
|
2792
|
+
}
|
|
2793
|
+
t.forEach((t) => {
|
|
2794
|
+
t.toggleActive(t === e);
|
|
2795
|
+
});
|
|
2796
|
+
}
|
|
2797
|
+
refreshItemActiveState(e) {
|
|
2798
|
+
e instanceof q && e.toggle === void 0 && e.toggleActive(e.isActive);
|
|
2799
|
+
}
|
|
2800
|
+
callHandleClickIfPresent(e) {
|
|
2801
|
+
"handleClick" in e && typeof e.handleClick == "function" && e.handleClick();
|
|
2802
|
+
}
|
|
2803
|
+
toggleNothingFoundMessage(e) {
|
|
2804
|
+
if (e) {
|
|
2805
|
+
var t, n;
|
|
2806
|
+
this.nodes.nothingFoundMessage.classList.remove("hidden"), this.nodes.nothingFoundMessage.setAttribute(a.nothingFoundDisplayed, "true"), (t = this.nodes.items) == null || t.classList.remove("pb-1.5"), (n = this.nodes.popoverContainer) == null || n.classList.remove("px-1.5", "pt-1.5");
|
|
2807
|
+
} else {
|
|
2808
|
+
var r;
|
|
2809
|
+
if (this.nodes.nothingFoundMessage.classList.add("hidden"), this.nodes.nothingFoundMessage.removeAttribute(a.nothingFoundDisplayed), (r = this.nodes.items) == null || r.classList.add("pb-1.5"), this.isShown) {
|
|
2810
|
+
var i;
|
|
2811
|
+
(i = this.nodes.popoverContainer) == null || i.classList.add("px-1.5", "pt-1.5");
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
setOpenTop(e) {
|
|
2816
|
+
e ? this.nodes.popover.setAttribute(a.popoverOpenTop, "true") : this.nodes.popover.removeAttribute(a.popoverOpenTop);
|
|
2817
|
+
}
|
|
2818
|
+
setOpenLeft(e) {
|
|
2819
|
+
e ? this.nodes.popover.setAttribute(a.popoverOpenLeft, "true") : this.nodes.popover.removeAttribute(a.popoverOpenLeft);
|
|
2820
|
+
}
|
|
2821
|
+
updateScrollHazes() {
|
|
2822
|
+
let { items: e, scrollHazeTop: t, scrollHazeBottom: n } = this.nodes, r = e.scrollHeight > e.clientHeight, i = e.scrollTop <= 0, a = e.scrollTop + e.clientHeight >= e.scrollHeight - 1;
|
|
2823
|
+
t.style.opacity = r && !i ? "1" : "0", n.style.opacity = r && !a ? "1" : "0", t.style.top = `${e.offsetTop}px`, n.style.top = `${e.offsetTop + e.clientHeight - n.offsetHeight}px`;
|
|
2824
|
+
}
|
|
2825
|
+
hasNode(e) {
|
|
2826
|
+
return this.nodes.popover.contains(e);
|
|
2827
|
+
}
|
|
2828
|
+
createPopoverDOM() {
|
|
2829
|
+
var e, t;
|
|
2830
|
+
let n = document.createElement("div");
|
|
2831
|
+
this.params.class && (n.className = this.params.class), n.setAttribute(a.popover, ""), this.params.class && n.setAttribute("data-blok-popover-custom-class", this.params.class), n.setAttribute("data-blok-testid", "popover"), n.style.setProperty("--width", (e = this.params.width) == null ? "auto" : e), n.style.setProperty("--item-padding", "4px"), n.style.setProperty("--item-height", "calc(1.75rem + 2 * var(--item-padding))"), n.style.setProperty("--popover-top", "calc(100% + 0.5rem)"), n.style.setProperty("--popover-left", "0"), n.style.setProperty("--nested-popover-overlap", "0.25rem"), n.style.setProperty("--max-height", "400px");
|
|
2832
|
+
let i = document.createElement("div");
|
|
2833
|
+
i.className = X.popoverContainer, i.style.boxShadow = "var(--blok-popover-box-shadow)", i.setAttribute(a.popoverContainer, ""), i.setAttribute("data-blok-testid", "popover-container");
|
|
2834
|
+
let o = document.createElement("div");
|
|
2835
|
+
o.className = r("cursor-default text-[13px] leading-5 font-normal whitespace-nowrap overflow-hidden text-ellipsis text-gray-text px-3 py-4 text-center", "hidden"), o.setAttribute("data-blok-testid", "popover-nothing-found"), o.textContent = (t = this.messages.nothingFound) == null ? "Nothing found" : t;
|
|
2836
|
+
let s = document.createElement("div");
|
|
2837
|
+
s.className = X.items, s.setAttribute(a.popoverItems, ""), s.setAttribute("data-blok-testid", "popover-items");
|
|
2838
|
+
let c = document.createElement("div");
|
|
2839
|
+
c.className = X.scrollHaze, c.style.background = "linear-gradient(to bottom, var(--blok-popover-bg), transparent)", c.style.opacity = "0";
|
|
2840
|
+
let l = document.createElement("div");
|
|
2841
|
+
l.className = X.scrollHaze, l.style.background = "linear-gradient(to top, var(--blok-popover-bg), transparent)", l.style.opacity = "0";
|
|
2842
|
+
let u = this.params.contextLabel === void 0 ? void 0 : (() => {
|
|
2843
|
+
let e = document.createElement("div");
|
|
2844
|
+
return e.className = "shrink-0 pl-2 pr-3 pt-1 pb-1.5 text-xs font-medium text-gray-text/50 cursor-default bg-popover-bg", e.setAttribute("role", "status"), e.setAttribute("data-blok-testid", "popover-context-label"), e.textContent = this.params.contextLabel, e;
|
|
2845
|
+
})();
|
|
2846
|
+
return i.appendChild(o), u !== void 0 && i.appendChild(u), i.appendChild(s), i.appendChild(c), i.appendChild(l), n.appendChild(i), {
|
|
2847
|
+
popover: n,
|
|
2848
|
+
popoverContainer: i,
|
|
2849
|
+
nothingFoundMessage: o,
|
|
2850
|
+
contextLabel: u,
|
|
2851
|
+
items: s,
|
|
2852
|
+
scrollHazeTop: c,
|
|
2853
|
+
scrollHazeBottom: l
|
|
2854
|
+
};
|
|
2855
|
+
}
|
|
2856
|
+
appendItemElements() {
|
|
2857
|
+
this.items.forEach((e) => {
|
|
2858
|
+
var t, n, r;
|
|
2859
|
+
let i = (t = (n = e.getMountElement) == null ? void 0 : n.call(e)) == null ? e.getElement() : t;
|
|
2860
|
+
i !== null && ((r = this.nodes.items) == null || r.appendChild(i));
|
|
2861
|
+
});
|
|
2862
|
+
}
|
|
2863
|
+
};
|
|
2864
|
+
//#endregion
|
|
2865
|
+
//#region src/components/utils/popover/popover-nested-position.ts
|
|
2866
|
+
function Si(e) {
|
|
2867
|
+
let { parentRect: t, nestedWidth: n, viewportWidth: r, parentPrefersLeft: i, overlap: a = 4 } = e, o = Math.max(0, t.left), s = Math.max(0, r - t.right + a), c = n <= o, l = n <= s;
|
|
2868
|
+
if (i) {
|
|
2869
|
+
if (c) return { openLeft: !0 };
|
|
2870
|
+
if (l) return { openLeft: !1 };
|
|
2871
|
+
} else {
|
|
2872
|
+
if (l) return { openLeft: !1 };
|
|
2873
|
+
if (c) return { openLeft: !0 };
|
|
2874
|
+
}
|
|
2875
|
+
return { openLeft: o > s };
|
|
2876
|
+
}
|
|
2877
|
+
function Ci(e) {
|
|
2878
|
+
let { desiredTop: t, nestedHeight: n, viewportHeight: r, margin: i = 8 } = e, a = i, o = r - n - i;
|
|
2879
|
+
return o < a ? { top: a } : { top: Math.max(a, Math.min(o, t)) };
|
|
2880
|
+
}
|
|
2881
|
+
//#endregion
|
|
2882
|
+
//#region src/components/utils/popover/popover-position.ts
|
|
2883
|
+
function wi(e, t, n) {
|
|
2884
|
+
return e <= t ? !1 : e <= n;
|
|
2885
|
+
}
|
|
2886
|
+
function Ti(e) {
|
|
2887
|
+
var t;
|
|
2888
|
+
let { anchor: n, popoverSize: r, scopeBounds: i, viewportSize: a, scrollOffset: o, offset: s = 8, leftAlignRect: c, placeLeftOfAnchor: l = !1, viewportMargin: u = 0 } = e, d = Math.min(a.height, i.bottom), f = Math.max(0, i.top), p = Math.min(a.width, i.right), m = Math.max(0, i.left), h = i.top + o.y;
|
|
2889
|
+
if (l) {
|
|
2890
|
+
let e = (n.top + n.bottom) / 2 + o.y, t = n.top + o.y, c = e - r.height / 2, l = i.bottom + o.y, d = o.y + u, f = o.y + a.height - u, p = Math.max(h, Math.min(d, t)), g = Math.min(l, f) - r.height, _ = Math.max(p, t), v = Math.min(_, Math.max(p, c)), y = g < p ? p : Math.min(g, v), ee = n.left - s - r.width + o.x;
|
|
2891
|
+
return {
|
|
2892
|
+
top: y,
|
|
2893
|
+
left: Math.max(m + o.x, ee),
|
|
2894
|
+
openTop: !1,
|
|
2895
|
+
openLeft: !0
|
|
2896
|
+
};
|
|
2897
|
+
}
|
|
2898
|
+
let g = d - n.bottom - s, _ = n.top - s - f, v = wi(r.height, g, _), y = v ? n.top - s - r.height + o.y : n.bottom + s + o.y, ee = y < h ? h : y, b = ((t = c == null ? void 0 : c.left) == null ? n.left : t) + o.x, te = n.right + o.x, ne = p + o.x - b, re = te - m - o.x, x = wi(r.width, ne, re), S = x ? Math.max(m + o.x, n.right - r.width + o.x) : b;
|
|
2899
|
+
return {
|
|
2900
|
+
top: ee,
|
|
2901
|
+
left: S + r.width > p + o.x ? Math.max(m + o.x, p + o.x - r.width) : S,
|
|
2902
|
+
openTop: v,
|
|
2903
|
+
openLeft: x
|
|
2904
|
+
};
|
|
2905
|
+
}
|
|
2906
|
+
//#endregion
|
|
2907
|
+
//#region src/components/utils/popover/popover-desktop.ts
|
|
2908
|
+
var $ = {
|
|
2909
|
+
x: null,
|
|
2910
|
+
y: null
|
|
2911
|
+
}, Ei = "__blokPopoverPointerTracker__";
|
|
2912
|
+
typeof document < "u" && !document[Ei] && (document.addEventListener("mousemove", (e) => {
|
|
2913
|
+
$.x = e.clientX, $.y = e.clientY;
|
|
2914
|
+
}, { capture: !0 }), document[Ei] = !0);
|
|
2915
|
+
var Di = class e extends xi {
|
|
2916
|
+
setLeftAlignElement(e) {
|
|
2917
|
+
this.leftAlignElement = e;
|
|
2918
|
+
}
|
|
2919
|
+
constructor(e, t) {
|
|
2920
|
+
var n;
|
|
2921
|
+
if (super(e, t), this.nestingLevel = 0, this.nestedPopoverTriggerItem = null, this.previouslyHoveredItem = null, this.suppressSyncHover = !1, this.suppressSyncHoverPointer = null, this.suppressSyncHoverRaf = null, this.scopeElement = document.body, this.placeLeftOfAnchor = !1, this.viewportMargin = 0, this.promotedItemCache = null, this.promotedSeparators = [], this.topLevelSeparator = null, this.hide = () => {
|
|
2922
|
+
var e;
|
|
2923
|
+
this.cleanupPromotedItems(), super.hide(), this.destroyNestedPopoverIfExists(), (e = this.flipper) == null || e.deactivate(), this.previouslyHoveredItem = null, this.disarmSuppressSyncHover(), this.params.position = void 0, this.nodes.popover.style.top = "", this.nodes.popover.style.left = "";
|
|
2924
|
+
}, this.onFlip = () => {
|
|
2925
|
+
let e = this.itemsDefault.find((e) => e.isFocused);
|
|
2926
|
+
e == null || e.onFocus();
|
|
2927
|
+
}, this.onSearch = (e) => {
|
|
2928
|
+
var t;
|
|
2929
|
+
let n = e.query === "", r = e.topLevelItems;
|
|
2930
|
+
this.nodes.contextLabel !== void 0 && (n ? (this.nodes.contextLabel.removeAttribute(a.hidden), this.nodes.contextLabel.classList.remove("hidden")) : (this.nodes.contextLabel.setAttribute(a.hidden, "true"), this.nodes.contextLabel.classList.add("hidden")));
|
|
2931
|
+
let i = !n && e.promotedItems.length > 0 ? this.deduplicateAgainstPromoted(r, e.promotedItems) : r, o = i.length === 0 && e.promotedItems.length === 0;
|
|
2932
|
+
this.items.forEach((e) => {
|
|
2933
|
+
let t = e instanceof q, r = e instanceof oi || e instanceof Y, a = t ? !i.includes(e) || e.name !== void 0 && this.isNamePermanentlyHidden(e.name) : r && (o || !n);
|
|
2934
|
+
e.toggleHidden(a);
|
|
2935
|
+
}), this._size = void 0, !n && i.length > 0 ? this.reorderItemsByRank(i) : n && this.originalItemOrder !== void 0 && this.restoreOriginalItemOrder();
|
|
2936
|
+
for (let e of this.promotedSeparators) e.remove();
|
|
2937
|
+
if (this.promotedSeparators = [], this.topLevelSeparator !== null && (this.topLevelSeparator.remove(), this.topLevelSeparator = null), this.promotedItemCache !== null) for (let e of this.promotedItemCache.items) {
|
|
2938
|
+
var s;
|
|
2939
|
+
(s = e.getElement()) == null || s.remove();
|
|
2940
|
+
}
|
|
2941
|
+
if (!n && i.length > 0 && e.promotedItems.length > 0) {
|
|
2942
|
+
var c;
|
|
2943
|
+
let e = (c = this.messages.actions) == null ? "Actions" : c, t = this.createGroupSeparator(e, "topLevel"), n = i[0].getElement();
|
|
2944
|
+
n !== null && this.nodes.items !== null && (this.nodes.items.insertBefore(t, n), this.topLevelSeparator = t);
|
|
2945
|
+
}
|
|
2946
|
+
if (e.promotedItems.length > 0) {
|
|
2947
|
+
let t = /* @__PURE__ */ new Map();
|
|
2948
|
+
for (let n of e.promotedItems) {
|
|
2949
|
+
let e = n.chain.join(" › "), r = t.get(e);
|
|
2950
|
+
r === void 0 ? t.set(e, [{
|
|
2951
|
+
item: n.item,
|
|
2952
|
+
score: n.score
|
|
2953
|
+
}]) : r.push({
|
|
2954
|
+
item: n.item,
|
|
2955
|
+
score: n.score
|
|
2956
|
+
});
|
|
2957
|
+
}
|
|
2958
|
+
let n = [...t.entries()].sort((e, t) => {
|
|
2959
|
+
let n = Math.max(...e[1].map((e) => e.score));
|
|
2960
|
+
return Math.max(...t[1].map((e) => e.score)) - n;
|
|
2961
|
+
});
|
|
2962
|
+
for (let [e, t] of n) {
|
|
2963
|
+
var l;
|
|
2964
|
+
let n = this.createGroupSeparator(e);
|
|
2965
|
+
this.promotedSeparators.push(n), (l = this.nodes.items) == null || l.appendChild(n), this.appendPromotedGroupElements(t);
|
|
2966
|
+
}
|
|
2967
|
+
}
|
|
2968
|
+
if (this.toggleNothingFoundMessage(o), this.updateScrollHazes(), this.trigger && this.nodes.popover.hasAttribute(a.popoverOpened)) {
|
|
2969
|
+
let { top: e, left: t, openTop: n, openLeft: r } = this.calculatePosition();
|
|
2970
|
+
this.nodes.popover.style.top = `${e}px`, this.nodes.popover.style.left = `${t}px`, this.setOpenTop(n), this.setOpenLeft(r);
|
|
2971
|
+
}
|
|
2972
|
+
let u = n ? this.flippableElements : i.map((e) => e.getElement()), d = e.promotedItems.map(({ item: e }) => e.getElement()), f = [...u, ...d].filter((e) => e !== null);
|
|
2973
|
+
(t = this.flipper) != null && t.isActivated && (this.flipper.deactivate(), this.flipper.activate(f), f.length > 0 && this.flipper.focusItem(0, { skipNextTab: !0 }));
|
|
2974
|
+
}, e.trigger && (this.trigger = e.trigger), e.leftAlignElement && (this.leftAlignElement = e.leftAlignElement), e.placeLeftOfAnchor === !0 && (this.placeLeftOfAnchor = !0), typeof e.viewportMargin == "number" && (this.viewportMargin = e.viewportMargin), e.nestingLevel !== void 0 && (this.nestingLevel = e.nestingLevel), this.nestingLevel > 0 && this.nodes.popover.setAttribute(a.nested, "true"), e.scopeElement !== void 0 && (this.scopeElement = e.scopeElement), this.nodes.popoverContainer !== null && (this.listeners.on(this.nodes.popoverContainer, "mouseover", (e) => this.handleHover(e)), this.listeners.on(this.nodes.popoverContainer, "mouseleave", (e) => this.handleMouseLeave(e))), e.searchable && this.addSearch(), e.flippable === !1) return;
|
|
2975
|
+
let r = e.flipper;
|
|
2976
|
+
r === void 0 ? this.flipper = new Ut({
|
|
2977
|
+
items: this.flippableElements,
|
|
2978
|
+
focusedItemClass: K.focused,
|
|
2979
|
+
allowedKeys: [
|
|
2980
|
+
s.TAB,
|
|
2981
|
+
s.UP,
|
|
2982
|
+
s.DOWN,
|
|
2983
|
+
s.ENTER,
|
|
2984
|
+
s.RIGHT,
|
|
2985
|
+
s.LEFT
|
|
2986
|
+
],
|
|
2987
|
+
onArrowLeft: e.onNavigateBack,
|
|
2988
|
+
handleContentEditableTargets: e.handleContentEditableNavigation
|
|
2989
|
+
}) : (r.deactivate(), r.removeOnFlip(this.onFlip), this.flipper = r), (n = this.flipper) == null || n.onFlip(this.onFlip);
|
|
2990
|
+
}
|
|
2991
|
+
hasFocus() {
|
|
2992
|
+
return this.flipper === void 0 ? !1 : this.flipper.hasFocus();
|
|
2993
|
+
}
|
|
2994
|
+
toggleItemHiddenByName(e, t) {
|
|
2995
|
+
super.toggleItemHiddenByName(e, t), this._size = void 0;
|
|
2996
|
+
}
|
|
2997
|
+
get scrollTop() {
|
|
2998
|
+
return this.nodes.items === null ? 0 : this.nodes.items.scrollTop;
|
|
2999
|
+
}
|
|
3000
|
+
get offsetTop() {
|
|
3001
|
+
return this.nodes.popoverContainer === null ? 0 : this.nodes.popoverContainer.offsetTop;
|
|
3002
|
+
}
|
|
3003
|
+
show() {
|
|
3004
|
+
var e;
|
|
3005
|
+
let t = this.getMountElement();
|
|
3006
|
+
if (this.trigger && t && document.body.appendChild(t), this.trigger) {
|
|
3007
|
+
let { top: e, left: t, openTop: n, openLeft: r } = this.calculatePosition();
|
|
3008
|
+
this.nodes.popover.style.position = "absolute", this.nodes.popover.style.top = `${e}px`, this.nodes.popover.style.left = `${t}px`, this.nodes.popover.style.setProperty(Z.PopoverTop, "0px"), this.nodes.popover.style.setProperty(Z.PopoverLeft, "0px"), this.setOpenTop(n), this.setOpenLeft(r);
|
|
3009
|
+
}
|
|
3010
|
+
let n = this.size;
|
|
3011
|
+
if (this.nodes.popover.style.setProperty(Z.PopoverHeight, n.height + "px"), this.params.width === void 0 || this.params.width === "auto") {
|
|
3012
|
+
let e = this.params.minWidth === void 0 ? 0 : parseFloat(this.params.minWidth), t = Math.max(n.width, e);
|
|
3013
|
+
this.nodes.popover.style.setProperty("--width", t + "px");
|
|
3014
|
+
}
|
|
3015
|
+
if (!this.trigger) {
|
|
3016
|
+
let { openTop: e, openLeft: t } = Ti({
|
|
3017
|
+
anchor: this.nodes.popoverContainer.getBoundingClientRect(),
|
|
3018
|
+
popoverSize: n,
|
|
3019
|
+
scopeBounds: this.scopeElement.getBoundingClientRect(),
|
|
3020
|
+
viewportSize: {
|
|
3021
|
+
width: window.innerWidth,
|
|
3022
|
+
height: window.innerHeight
|
|
3023
|
+
},
|
|
3024
|
+
scrollOffset: {
|
|
3025
|
+
x: window.scrollX,
|
|
3026
|
+
y: window.scrollY
|
|
3027
|
+
},
|
|
3028
|
+
offset: 0
|
|
3029
|
+
});
|
|
3030
|
+
e && (this.setOpenTop(!0), this.nodes.popover.style.setProperty(Z.PopoverTop, "calc(-1 * (0.5rem + var(--popover-height)))")), t && (this.setOpenLeft(!0), this.nodes.popover.style.setProperty(Z.PopoverLeft, "calc(-1 * var(--width) + 100%)"));
|
|
3031
|
+
}
|
|
3032
|
+
this.armSuppressSyncHover(), super.show(), (e = this.flipper) == null || e.activate(this.flippableElements), queueMicrotask(() => {
|
|
3033
|
+
this.focusInitialElement();
|
|
3034
|
+
});
|
|
3035
|
+
}
|
|
3036
|
+
focusInitialElement() {
|
|
3037
|
+
var e;
|
|
3038
|
+
if (this.search) {
|
|
3039
|
+
this.search.focus();
|
|
3040
|
+
return;
|
|
3041
|
+
}
|
|
3042
|
+
this.params.autoFocusFirstItem !== !1 && ((e = this.flipper) == null || e.focusItem(0, { skipNextTab: !0 }));
|
|
3043
|
+
}
|
|
3044
|
+
updatePosition(e) {
|
|
3045
|
+
if (this.params.position = e, this.nodes.popover.hasAttribute("data-blok-popover-opened")) {
|
|
3046
|
+
let { top: e, left: t, openTop: n, openLeft: r } = this.calculatePosition();
|
|
3047
|
+
this.nodes.popover.style.top = `${e}px`, this.nodes.popover.style.left = `${t}px`, this.setOpenTop(n), this.setOpenLeft(r);
|
|
3048
|
+
}
|
|
3049
|
+
}
|
|
3050
|
+
calculatePosition() {
|
|
3051
|
+
var e, t;
|
|
3052
|
+
let n = this.params.position, r = n == null ? (e = this.trigger) == null ? void 0 : e.getBoundingClientRect() : n;
|
|
3053
|
+
if (!r) return {
|
|
3054
|
+
top: 0,
|
|
3055
|
+
left: 0,
|
|
3056
|
+
openTop: !1,
|
|
3057
|
+
openLeft: !1
|
|
3058
|
+
};
|
|
3059
|
+
let i = n === void 0 ? (t = this.leftAlignElement) == null ? void 0 : t.getBoundingClientRect() : void 0;
|
|
3060
|
+
return Ti({
|
|
3061
|
+
anchor: r,
|
|
3062
|
+
popoverSize: this.size,
|
|
3063
|
+
scopeBounds: this.scopeElement.getBoundingClientRect(),
|
|
3064
|
+
viewportSize: {
|
|
3065
|
+
width: window.innerWidth,
|
|
3066
|
+
height: window.innerHeight
|
|
3067
|
+
},
|
|
3068
|
+
scrollOffset: {
|
|
3069
|
+
x: window.scrollX,
|
|
3070
|
+
y: window.scrollY
|
|
3071
|
+
},
|
|
3072
|
+
offset: 8,
|
|
3073
|
+
leftAlignRect: i,
|
|
3074
|
+
placeLeftOfAnchor: this.placeLeftOfAnchor,
|
|
3075
|
+
viewportMargin: this.viewportMargin
|
|
3076
|
+
});
|
|
3077
|
+
}
|
|
3078
|
+
destroy() {
|
|
3079
|
+
this.hide(), super.destroy();
|
|
3080
|
+
}
|
|
3081
|
+
armSuppressSyncHover() {
|
|
3082
|
+
this.disarmSuppressSyncHover(), this.suppressSyncHover = !0, this.suppressSyncHoverPointer = $.x !== null && $.y !== null ? {
|
|
3083
|
+
x: $.x,
|
|
3084
|
+
y: $.y
|
|
3085
|
+
} : null, this.suppressSyncHoverRaf = window.requestAnimationFrame(() => {
|
|
3086
|
+
this.suppressSyncHoverRaf = window.requestAnimationFrame(() => {
|
|
3087
|
+
this.disarmSuppressSyncHover();
|
|
3088
|
+
});
|
|
3089
|
+
});
|
|
3090
|
+
}
|
|
3091
|
+
isLikelySynthesizedHover(e) {
|
|
3092
|
+
return this.suppressSyncHoverPointer === null ? !0 : e.clientX === this.suppressSyncHoverPointer.x && e.clientY === this.suppressSyncHoverPointer.y;
|
|
3093
|
+
}
|
|
3094
|
+
disarmSuppressSyncHover() {
|
|
3095
|
+
this.suppressSyncHover = !1, this.suppressSyncHoverPointer = null, this.suppressSyncHoverRaf !== null && (window.cancelAnimationFrame(this.suppressSyncHoverRaf), this.suppressSyncHoverRaf = null);
|
|
3096
|
+
}
|
|
3097
|
+
hasNode(e) {
|
|
3098
|
+
return super.hasNode(e) ? !0 : this.nestedPopover !== void 0 && this.nestedPopover !== null ? this.nestedPopover.hasNode(e) : !1;
|
|
3099
|
+
}
|
|
3100
|
+
showNestedItems(e) {
|
|
3101
|
+
this.nestedPopover !== null && this.nestedPopover !== void 0 || (this.nestedPopoverTriggerItem = e, this.showNestedPopoverForItem(e));
|
|
3102
|
+
}
|
|
3103
|
+
handleHover(e) {
|
|
3104
|
+
if (this.suppressSyncHover) {
|
|
3105
|
+
if (e instanceof MouseEvent && this.isLikelySynthesizedHover(e)) {
|
|
3106
|
+
this.disarmSuppressSyncHover();
|
|
3107
|
+
return;
|
|
3108
|
+
}
|
|
3109
|
+
this.disarmSuppressSyncHover();
|
|
3110
|
+
}
|
|
3111
|
+
let t = this.getTargetItem(e);
|
|
3112
|
+
t !== void 0 && this.previouslyHoveredItem !== t && (this.nestedPopover !== void 0 && this.nestedPopover !== null && e.target instanceof Node && this.nestedPopover.hasNode(e.target) || (this.destroyNestedPopoverIfExists(!1), this.previouslyHoveredItem = t, t.hasChildren && this.showNestedPopoverForItem(t)));
|
|
3113
|
+
}
|
|
3114
|
+
handleMouseLeave(e) {
|
|
3115
|
+
let t = e.relatedTarget;
|
|
3116
|
+
t instanceof Node && this.nestedPopover !== void 0 && this.nestedPopover !== null && this.nestedPopover.hasNode(t) || (this.destroyNestedPopoverIfExists(!1), this.previouslyHoveredItem = null);
|
|
3117
|
+
}
|
|
3118
|
+
getTargetItem(e) {
|
|
3119
|
+
return (this.promotedItemCache === null ? this.items : [...this.items, ...this.promotedItemCache.items]).filter((e) => e instanceof q || e instanceof Y).find((t) => {
|
|
3120
|
+
let n = t.getElement();
|
|
3121
|
+
return n === null ? !1 : e.composedPath().includes(n);
|
|
3122
|
+
});
|
|
3123
|
+
}
|
|
3124
|
+
setTriggerItemPosition(e, t) {
|
|
3125
|
+
let n = t.getElement(), r = (n ? n.offsetTop : 0) - this.scrollTop, i = this.offsetTop + r, o = e.querySelector(`[${a.popover}]`);
|
|
3126
|
+
(o instanceof HTMLElement ? o : e).style.setProperty(Z.TriggerItemTop, i + "px");
|
|
3127
|
+
}
|
|
3128
|
+
destroyNestedPopoverIfExists(e = !0) {
|
|
3129
|
+
var t, n, r;
|
|
3130
|
+
if (this.nestedPopover === void 0 || this.nestedPopover === null) return;
|
|
3131
|
+
let i = (t = this.nestedPopoverTriggerItem) == null ? void 0 : t.getElement(), a = this.nestedPopover.getElement();
|
|
3132
|
+
this.nestedPopover.off(Q.ClosedOnActivate, this.hide), this.nestedPopover.hide(), this.nestedPopover.destroy(), a.remove(), this.nestedPopover = null, (n = this.flipper) == null || n.activate(this.flippableElements), e && this.focusAfterNestedPopoverClose(i), (r = this.nestedPopoverTriggerItem) == null || r.onChildrenClose(), this.nestedPopoverTriggerItem = null;
|
|
3133
|
+
}
|
|
3134
|
+
focusAfterNestedPopoverClose(e) {
|
|
3135
|
+
if (!e || !this.flipper) {
|
|
3136
|
+
var t;
|
|
3137
|
+
(t = this.flipper) == null || t.focusFirst();
|
|
3138
|
+
return;
|
|
3139
|
+
}
|
|
3140
|
+
let n = this.flippableElements.indexOf(e);
|
|
3141
|
+
if (n !== -1) {
|
|
3142
|
+
this.flipper.focusItem(n, { skipNextTab: !1 });
|
|
3143
|
+
return;
|
|
3144
|
+
}
|
|
3145
|
+
this.flipper.focusFirst();
|
|
3146
|
+
}
|
|
3147
|
+
showNestedPopoverForItem(t) {
|
|
3148
|
+
var n, r;
|
|
3149
|
+
let i = (n = this.flipper) == null ? void 0 : n.getHandleContentEditableTargets();
|
|
3150
|
+
this.nestedPopover = new e({
|
|
3151
|
+
searchable: t.isChildrenSearchable,
|
|
3152
|
+
items: t.children,
|
|
3153
|
+
nestingLevel: this.nestingLevel + 1,
|
|
3154
|
+
flippable: t.isChildrenFlippable,
|
|
3155
|
+
messages: this.messages,
|
|
3156
|
+
onNavigateBack: this.destroyNestedPopoverIfExists.bind(this),
|
|
3157
|
+
width: t.childrenWidth,
|
|
3158
|
+
minWidth: t.childrenMinWidth,
|
|
3159
|
+
handleContentEditableNavigation: i,
|
|
3160
|
+
autoFocusFirstItem: this.params.autoFocusFirstItem
|
|
3161
|
+
}), t.onChildrenOpen(), this.nestedPopover.on(Q.ClosedOnActivate, this.hide);
|
|
3162
|
+
let a = this.nestedPopover.getMountElement(), o = this.nestedPopover.getElement();
|
|
3163
|
+
return this.nodes.popover.appendChild(a), this.setTriggerItemPosition(a, t), o.style.setProperty(Z.NestingLevel, this.nestedPopover.nestingLevel.toString()), this.applyNestedPopoverPositioning(a, t), this.listeners.on(a, "click", () => {
|
|
3164
|
+
this.nestedPopoverTriggerItem !== null && this.refreshItemActiveState(this.nestedPopoverTriggerItem);
|
|
3165
|
+
}), this.nestedPopover.show(), (r = this.flipper) == null || r.deactivate(), this.nestedPopover;
|
|
3166
|
+
}
|
|
3167
|
+
applyNestedPopoverPositioning(e, t) {
|
|
3168
|
+
var n, r, i, o;
|
|
3169
|
+
let s = e.querySelector(`[${a.popoverContainer}]`);
|
|
3170
|
+
if (!(s instanceof HTMLElement)) return;
|
|
3171
|
+
let c = s, l = e.querySelector(`[${a.popover}]`), u = l instanceof HTMLElement ? l : e;
|
|
3172
|
+
this.nodes.popover.hasAttribute(a.popoverOpenTop);
|
|
3173
|
+
let d = this.nodes.popover.hasAttribute(a.popoverOpenLeft);
|
|
3174
|
+
c.style.position = "absolute";
|
|
3175
|
+
let f = this.nodes.popoverContainer.offsetWidth, p = this.params.width === void 0 || this.params.width === "auto" ? `${f}px` : "var(--width)", m = this.nodes.popoverContainer.getBoundingClientRect(), h = (n = (r = this.nestedPopover) == null ? void 0 : r.size.width) == null ? f : n, { openLeft: g } = Si({
|
|
3176
|
+
parentRect: {
|
|
3177
|
+
left: m.left,
|
|
3178
|
+
right: m.right,
|
|
3179
|
+
width: m.width
|
|
3180
|
+
},
|
|
3181
|
+
nestedWidth: h,
|
|
3182
|
+
viewportWidth: window.innerWidth,
|
|
3183
|
+
parentPrefersLeft: d
|
|
3184
|
+
});
|
|
3185
|
+
g ? u.style.setProperty(Z.PopoverLeft, `calc(-1 * (var(--nesting-level) + 1) * ${p} + 100%)`) : u.style.setProperty(Z.PopoverLeft, `calc(var(--nesting-level) * (${p} - var(--nested-popover-overlap)))`);
|
|
3186
|
+
let _ = t.getElement(), v = _ == null ? void 0 : _.getBoundingClientRect(), y = (i = (o = this.nestedPopover) == null ? void 0 : o.size.height) == null ? 0 : i;
|
|
3187
|
+
if (v && y > 0) {
|
|
3188
|
+
let { top: e } = Ci({
|
|
3189
|
+
desiredTop: v.top + v.height / 2 - y / 2,
|
|
3190
|
+
nestedHeight: y,
|
|
3191
|
+
viewportHeight: window.innerHeight
|
|
3192
|
+
}), t = this.nodes.popover.getBoundingClientRect().top;
|
|
3193
|
+
c.style.top = `${e - t}px`;
|
|
3194
|
+
} else c.style.top = "calc(var(--trigger-item-top) - var(--popover-height) / 2 + var(--item-height) / 2)";
|
|
3195
|
+
}
|
|
3196
|
+
get size() {
|
|
3197
|
+
var e;
|
|
3198
|
+
if (this._size) return this._size;
|
|
3199
|
+
let t = {
|
|
3200
|
+
height: 0,
|
|
3201
|
+
width: 0
|
|
3202
|
+
};
|
|
3203
|
+
if (this.nodes.popover === null) return t;
|
|
3204
|
+
let n = this.nodes.popover.cloneNode(!0);
|
|
3205
|
+
n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "-1000px", St(n), n.setAttribute(a.popoverOpened, "true"), (e = n.querySelector(`[${a.nested}]`)) == null || e.remove();
|
|
3206
|
+
let i = n.querySelector(`[${a.popoverContainer}]`);
|
|
3207
|
+
return i.className = r(i.className, X.popoverContainerOpened), document.body.appendChild(n), t.height = i.offsetHeight, t.width = i.offsetWidth, n.remove(), this._size = t, t;
|
|
3208
|
+
}
|
|
3209
|
+
invalidateSizeCache() {
|
|
3210
|
+
this._size = void 0;
|
|
3211
|
+
}
|
|
3212
|
+
get flippableElements() {
|
|
3213
|
+
return this.items.flatMap((e) => this.getFlippableElementsForItem(e)).filter((e) => e != null);
|
|
3214
|
+
}
|
|
3215
|
+
getFlippableElementsForItem(e) {
|
|
3216
|
+
if (e instanceof Y) {
|
|
3217
|
+
let t = e.getElement();
|
|
3218
|
+
return t ? [t] : [];
|
|
3219
|
+
}
|
|
3220
|
+
if (!(e instanceof q) || e.isDisabled) return [];
|
|
3221
|
+
let t = e.getElement();
|
|
3222
|
+
return t ? [t] : [];
|
|
3223
|
+
}
|
|
3224
|
+
buildPromotedItemCache() {
|
|
3225
|
+
let e = {
|
|
3226
|
+
items: [],
|
|
3227
|
+
parentChains: /* @__PURE__ */ new Map()
|
|
3228
|
+
};
|
|
3229
|
+
return this.collectPromotedChildren(this.items, [], e), e;
|
|
3230
|
+
}
|
|
3231
|
+
collectPromotedChildren(e, t, n) {
|
|
3232
|
+
for (let a of e) {
|
|
3233
|
+
var r, i;
|
|
3234
|
+
if (!(a instanceof q) || !a.hasChildren) continue;
|
|
3235
|
+
let e = (r = (i = a.title) == null ? a.name : i) == null ? "" : r, o = [...t, e];
|
|
3236
|
+
this.collectDefaultChildren(a.children, o, n);
|
|
3237
|
+
}
|
|
3238
|
+
}
|
|
3239
|
+
collectDefaultChildren(e, t, n) {
|
|
3240
|
+
for (let r of e) {
|
|
3241
|
+
if (r.type !== void 0 && r.type !== M.Default) continue;
|
|
3242
|
+
let e = new q(r);
|
|
3243
|
+
if (e.name !== void 0 && this.isNamePermanentlyHidden(e.name)) {
|
|
3244
|
+
e.destroy();
|
|
3245
|
+
continue;
|
|
3246
|
+
}
|
|
3247
|
+
n.items.push(e), n.parentChains.set(e, t), e.hasChildren && this.collectPromotedChildren([e], t, n);
|
|
3248
|
+
}
|
|
3249
|
+
}
|
|
3250
|
+
cleanupPromotedItems() {
|
|
3251
|
+
for (let e of this.promotedSeparators) e.remove();
|
|
3252
|
+
if (this.promotedSeparators = [], this.topLevelSeparator !== null && (this.topLevelSeparator.remove(), this.topLevelSeparator = null), this.promotedItemCache !== null) {
|
|
3253
|
+
for (let t of this.promotedItemCache.items) {
|
|
3254
|
+
var e;
|
|
3255
|
+
(e = t.getElement()) == null || e.remove(), t.destroy();
|
|
3256
|
+
}
|
|
3257
|
+
this.promotedItemCache = null;
|
|
3258
|
+
}
|
|
3259
|
+
}
|
|
3260
|
+
createGroupSeparator(e, t = "promoted") {
|
|
3261
|
+
let n = document.createElement("div"), r = t === "topLevel" ? a.topLevelGroupLabel : a.promotedGroupLabel;
|
|
3262
|
+
return n.setAttribute(r, ""), n.setAttribute("role", "separator"), n.className = "pl-2 pr-3 pt-2.5 pb-1 text-[11px] font-medium uppercase tracking-wide text-gray-text/50 cursor-default", n.textContent = e, n;
|
|
3263
|
+
}
|
|
3264
|
+
appendPromotedGroupElements(e) {
|
|
3265
|
+
for (let { item: n } of e) {
|
|
3266
|
+
let e = n.getElement();
|
|
3267
|
+
if (e !== null) {
|
|
3268
|
+
var t;
|
|
3269
|
+
(t = this.nodes.items) == null || t.appendChild(e);
|
|
3270
|
+
}
|
|
3271
|
+
}
|
|
3272
|
+
}
|
|
3273
|
+
deduplicateAgainstPromoted(e, t) {
|
|
3274
|
+
let n = /* @__PURE__ */ new Set();
|
|
3275
|
+
for (let { item: e } of t) e.title !== void 0 && n.add(e.title.toLowerCase());
|
|
3276
|
+
return e.filter((e) => !(e instanceof q) || e.title === void 0 ? !0 : !n.has(e.title.toLowerCase()));
|
|
3277
|
+
}
|
|
3278
|
+
addSearch() {
|
|
3279
|
+
this.search = new gi({
|
|
3280
|
+
items: this.itemsDefault,
|
|
3281
|
+
placeholder: this.messages.search
|
|
3282
|
+
}), this.search.on(hi.Search, (e) => {
|
|
3283
|
+
if (e.query === "") {
|
|
3284
|
+
this.cleanupPromotedItems(), this.onSearch({
|
|
3285
|
+
query: e.query,
|
|
3286
|
+
topLevelItems: e.items,
|
|
3287
|
+
promotedItems: []
|
|
3288
|
+
});
|
|
3289
|
+
return;
|
|
3290
|
+
}
|
|
3291
|
+
this.promotedItemCache === null && (this.promotedItemCache = this.buildPromotedItemCache());
|
|
3292
|
+
let { parentChains: t } = this.promotedItemCache, n = this.promotedItemCache.items.map((n) => {
|
|
3293
|
+
var r;
|
|
3294
|
+
return {
|
|
3295
|
+
item: n,
|
|
3296
|
+
score: mi(n, e.query),
|
|
3297
|
+
chain: (r = t.get(n)) == null ? [] : r
|
|
3298
|
+
};
|
|
3299
|
+
}).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score);
|
|
3300
|
+
this.onSearch({
|
|
3301
|
+
query: e.query,
|
|
3302
|
+
topLevelItems: e.items,
|
|
3303
|
+
promotedItems: n
|
|
3304
|
+
});
|
|
3305
|
+
});
|
|
3306
|
+
let e = this.search.getElement();
|
|
3307
|
+
e.classList.add("mb-1.5"), this.nodes.popoverContainer.insertBefore(e, this.nodes.popoverContainer.firstChild);
|
|
3308
|
+
}
|
|
3309
|
+
filterItems(e) {
|
|
3310
|
+
if (e === "") {
|
|
3311
|
+
this.cleanupPromotedItems(), this.onSearch({
|
|
3312
|
+
query: e,
|
|
3313
|
+
topLevelItems: this.itemsDefault,
|
|
3314
|
+
promotedItems: []
|
|
3315
|
+
});
|
|
3316
|
+
return;
|
|
3317
|
+
}
|
|
3318
|
+
this.promotedItemCache === null && (this.promotedItemCache = this.buildPromotedItemCache());
|
|
3319
|
+
let t = this.itemsDefault.map((t) => ({
|
|
3320
|
+
item: t,
|
|
3321
|
+
score: mi(t, e)
|
|
3322
|
+
})).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score), { parentChains: n } = this.promotedItemCache, r = this.promotedItemCache.items.map((t) => {
|
|
3323
|
+
var r;
|
|
3324
|
+
return {
|
|
3325
|
+
item: t,
|
|
3326
|
+
score: mi(t, e),
|
|
3327
|
+
chain: (r = n.get(t)) == null ? [] : r
|
|
3328
|
+
};
|
|
3329
|
+
}).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score);
|
|
3330
|
+
this.onSearch({
|
|
3331
|
+
query: e,
|
|
3332
|
+
topLevelItems: t.map(({ item: e }) => e),
|
|
3333
|
+
promotedItems: r
|
|
3334
|
+
});
|
|
3335
|
+
}
|
|
3336
|
+
reorderItemsByRank(e) {
|
|
3337
|
+
this.originalItemOrder === void 0 && this.nodes.items !== null && (this.originalItemOrder = Array.from(this.nodes.items.children));
|
|
3338
|
+
let t = this.nodes.items;
|
|
3339
|
+
if (t !== null) for (let n of e) {
|
|
3340
|
+
let e = n.getElement();
|
|
3341
|
+
e !== null && t.appendChild(e);
|
|
3342
|
+
}
|
|
3343
|
+
}
|
|
3344
|
+
restoreOriginalItemOrder() {
|
|
3345
|
+
let e = this.nodes.items;
|
|
3346
|
+
if (!(e === null || this.originalItemOrder === void 0)) {
|
|
3347
|
+
for (let t of this.originalItemOrder) e.appendChild(t);
|
|
3348
|
+
this.originalItemOrder = void 0;
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
}, Oi = (e) => {
|
|
3352
|
+
e.style.color = "white", e.style.fontWeight = "500";
|
|
3353
|
+
}, ki = function(e) {
|
|
3354
|
+
let t = T.make("div");
|
|
3355
|
+
return t.style.display = "flex", t.style.flexDirection = "column", t.style.gap = "4px", t.style.color = "rgba(255, 255, 255, 0.55)", e.forEach((e) => {
|
|
3356
|
+
let n = T.make("div");
|
|
3357
|
+
if (Array.isArray(e)) e.forEach((e) => {
|
|
3358
|
+
if (e.highlight) {
|
|
3359
|
+
let t = T.make("span", null, { textContent: e.text });
|
|
3360
|
+
Oi(t), n.appendChild(t);
|
|
3361
|
+
} else n.appendChild(document.createTextNode(e.text));
|
|
3362
|
+
});
|
|
3363
|
+
else {
|
|
3364
|
+
let t = e.indexOf(" ");
|
|
3365
|
+
if (t > 0) {
|
|
3366
|
+
let r = e.substring(0, t), i = e.substring(t), a = T.make("span", null, { textContent: r });
|
|
3367
|
+
Oi(a), n.appendChild(a), n.appendChild(document.createTextNode(i));
|
|
3368
|
+
} else n.appendChild(document.createTextNode(e));
|
|
3369
|
+
}
|
|
3370
|
+
t.appendChild(n);
|
|
3371
|
+
}), t;
|
|
3372
|
+
}, Ai, ji = class {
|
|
3373
|
+
constructor({ api: e }) {
|
|
3374
|
+
this.i18nAPI = e.i18n, this.blocksAPI = e.blocks, this.selectionAPI = e.selection, this.toolsAPI = e.tools, this.caretAPI = e.caret, this.i18nInstance = {
|
|
3375
|
+
t: (e, t) => this.i18nAPI.t(e),
|
|
3376
|
+
has: (e) => this.i18nAPI.t(e) !== e
|
|
3377
|
+
};
|
|
3378
|
+
}
|
|
3379
|
+
async render() {
|
|
3380
|
+
var e = this;
|
|
3381
|
+
let t = Xe.get();
|
|
3382
|
+
if (t === null) return [];
|
|
3383
|
+
let n = e.blocksAPI.getBlockByElement(t.anchorNode);
|
|
3384
|
+
if (n === void 0) return [];
|
|
3385
|
+
let r = await Ne(n, e.toolsAPI.getBlockTools());
|
|
3386
|
+
if (r.length === 0) return [];
|
|
3387
|
+
let i = r.reduce((t, r) => {
|
|
3388
|
+
var i;
|
|
3389
|
+
return (i = r.toolbox) == null || i.forEach((i) => {
|
|
3390
|
+
var a;
|
|
3391
|
+
i.title !== void 0 && t.push({
|
|
3392
|
+
icon: i.icon,
|
|
3393
|
+
title: ke(e.i18nInstance, i, r.name),
|
|
3394
|
+
name: (a = i.name) == null ? r.name : a,
|
|
3395
|
+
closeOnActivate: !0,
|
|
3396
|
+
onActivate: async () => {
|
|
3397
|
+
let t = await e.blocksAPI.convert(n.id, r.name, i.data);
|
|
3398
|
+
e.caretAPI.setToBlock(t, "end");
|
|
3399
|
+
}
|
|
3400
|
+
});
|
|
3401
|
+
}), t;
|
|
3402
|
+
}, []), a = await n.getActiveToolboxEntry(), o = a ? ke(e.i18nInstance, a, n.name) : Ae(e.i18nInstance, n.name, de(n.name)), s = !se();
|
|
3403
|
+
return {
|
|
3404
|
+
name: "convert-to",
|
|
3405
|
+
title: o,
|
|
3406
|
+
hint: { title: e.i18nAPI.t("popover.convertTo") },
|
|
3407
|
+
children: {
|
|
3408
|
+
items: i,
|
|
3409
|
+
width: "auto",
|
|
3410
|
+
onOpen: () => {
|
|
3411
|
+
s && (e.selectionAPI.setFakeBackground(), e.selectionAPI.save());
|
|
3412
|
+
},
|
|
3413
|
+
onClose: () => {
|
|
3414
|
+
s && (e.selectionAPI.restore(), e.selectionAPI.removeFakeBackground());
|
|
3415
|
+
}
|
|
3416
|
+
}
|
|
3417
|
+
};
|
|
3418
|
+
}
|
|
3419
|
+
};
|
|
3420
|
+
Ai = ji, Ai.isInline = !0;
|
|
3421
|
+
//#endregion
|
|
3422
|
+
//#region src/tools/toggle/constants.ts
|
|
3423
|
+
var Mi = "toggle", Ni = "tools.toggle.placeholder", Pi = "tools.toggle.bodyPlaceholder", Fi = "tools.toggle.ariaLabelCollapse", Ii = "tools.toggle.ariaLabelExpand", Li = "outline-hidden py-[7px] mt-[2px] mb-px", Ri = "outline-hidden pl-0.5 leading-[1.5] flex-1 min-w-0", zi = "flex items-center", Bi = "flex-shrink-0 p-[8px] flex items-center justify-center cursor-pointer select-none rounded can-hover:hover:bg-item-hover-bg transition-colors duration-200 ease-in-out focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none in-data-[blok-toggle-empty=true]:text-gray-text", Vi = qr, Hi = "hidden pl-7 pt-[8px] pb-[8px] text-gray-text leading-[1.5] cursor-pointer select-none", Ui = "pl-7", Wi = {
|
|
3424
|
+
toggleOpen: "data-blok-toggle-open",
|
|
3425
|
+
toggleArrow: "data-blok-toggle-arrow",
|
|
3426
|
+
toggleContent: "data-blok-toggle-content",
|
|
3427
|
+
toggleBodyPlaceholder: "data-blok-toggle-body-placeholder",
|
|
3428
|
+
toggleChildren: "data-blok-toggle-children",
|
|
3429
|
+
toggleEmpty: "data-blok-toggle-empty"
|
|
3430
|
+
};
|
|
3431
|
+
//#endregion
|
|
3432
|
+
export { pr as $, Oe as $n, Xn as $t, pn as A, Ft as An, f as Ar, yr as At, sr as B, He as Bn, qn as Bt, vi as C, Ut as Cn, h as Cr, Un as Ct, Ur as D, Rt as Dn, u as Dr, hn as Dt, K as E, Lt as En, ee as Er, mn as Et, Sn as F, ht as Fn, o as Fr, gn as Ft, Kr as G, Ie as Gn, yn as Gt, Kn as H, Ue as Hn, xn as Ht, Cn as I, et as In, bn as It, ar as J, Fe as Jn, Sr as Jt, _r as K, Le as Kn, Ir as Kt, wn as L, M as Ln, xr as Lt, rr as M, yt as Mn, s as Mr, Ln as Mt, Fr as N, bt as Nn, c as Nr, In as Nt, Wr as O, It as On, p as Or, jr as Ot, un as P, N as Pn, a as Pr, er as Pt, gr as Q, ke as Qn, Mn as Qt, zr as R, Xe as Rn, Rr as Rt, bi as S, Kt as Sn, b as Sr, Hn as St, q as T, Bt as Tn, _ as Tr, Gn as Tt, Lr as U, Re as Un, Bn as Ut, Mr as V, Be as Vn, wr as Vt, fn as W, Pe as Wn, nr as Wt, Pr as X, Me as Xn, vn as Xt, Yn as Y, je as Yn, Cr as Yt, fr as Z, Ae as Zn, Rn as Zt, xi as _, V as _n, ae as _r, Tr as _t, Li as a, Vr as an, xe as ar, dr as at, X as b, Wt as bn, te as br, Or as bt, Ri as c, Ar as cn, ge as cr, En as ct, Ui as d, nn as dn, fe as dr, kn as dt, Zn as en, Te as er, hr as et, zi as f, rn as fn, de as fr, An as ft, Di as g, Qt as gn, se as gr, zn as gt, ki as h, cn as hn, ce as hr, Vn as ht, Bi as i, _n as in, T as ir, cr as it, br as j, Nt as jn, l as jr, Fn as jt, vr as k, Pt as kn, m as kr, Hr as kt, Ni as l, kr as ln, C as lr, Dn as lt, ji as m, ln as mn, le as mr, tr as mt, Ii as n, Pn as nn, De as nr, lr as nt, Pi as o, dn as on, Se as or, Nr as ot, Mi as p, U as pn, oe as pr, jn as pt, Gr as q, Ne as qn, Tn as qt, Vi as r, Jn as rn, we as rr, ur as rt, Hi as s, Nn as sn, ye as sr, $n as st, Fi as t, Qn as tn, Ee as tr, mr as tt, Wi as u, an as un, w as ur, On as ut, Q as v, Xt as vn, ue as vr, Dr as vt, Y as w, Vt as wn, g as wr, Wn as wt, yi as x, Gt as xn, re as xr, Br as xt, Z as y, z as yn, ne as yr, Er as yt, or as z, ze as zn, ir as zt };
|