@jackuait/blok 0.10.0-beta.5 → 0.10.0-beta.7
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/codemod/migrate-editorjs-to-blok.js +0 -2
- package/codemod/test.js +0 -6
- package/dist/blok.mjs +3 -3
- package/dist/chunks/_basePickBy-BHRNO12X.mjs +410 -0
- package/dist/chunks/_baseUniq-DtFPDBML.mjs +1045 -0
- package/dist/chunks/_getTag-ozrhqxk_.mjs +26 -0
- package/dist/chunks/arc-BEqJP9HX.mjs +80 -0
- package/dist/chunks/architecture-YZFGNWBL-Bcu-90pi.mjs +3 -0
- package/dist/chunks/architectureDiagram-Q4EWVU46-BMno5LCn.mjs +4066 -0
- package/dist/chunks/array-Cyf-61SV.mjs +6 -0
- package/dist/chunks/blockDiagram-DXYQGD6D-DlP_cPth.mjs +3259 -0
- package/dist/chunks/{blok-DH-WEcA8.mjs → blok-CiLRmoHI.mjs} +2030 -1996
- package/dist/chunks/c4Diagram-AHTNJAMY-BbVV8EXj.mjs +2956 -0
- package/dist/chunks/channel-DPcniO2B.mjs +5 -0
- package/dist/chunks/chunk-2KRD3SAO-CazES4VS.mjs +20 -0
- package/dist/chunks/chunk-336JU56O-heO72r_k.mjs +49 -0
- package/dist/chunks/chunk-426QAEUC-CmCcml1z.mjs +13 -0
- package/dist/chunks/chunk-4BX2VUAB-B10DxOza.mjs +19 -0
- package/dist/chunks/chunk-4TB4RGXK-B0snhZOU.mjs +3250 -0
- package/dist/chunks/chunk-55IACEB6-CGkn5ABd.mjs +8 -0
- package/dist/chunks/chunk-5FUZZQ4R-USdumo_u.mjs +3786 -0
- package/dist/chunks/chunk-5PVQY5BW-CxUGVzQL.mjs +1692 -0
- package/dist/chunks/chunk-67CJDMHE-Bvw55oRa.mjs +20 -0
- package/dist/chunks/chunk-7N4EOEYR-Bs2qDy88.mjs +29 -0
- package/dist/chunks/chunk-AA7GKIK3-Bss0LgrN.mjs +24 -0
- package/dist/chunks/chunk-BSJP7CBP-CpUW7gi5.mjs +83 -0
- package/dist/chunks/chunk-CIAEETIT-DlRbLLf3.mjs +20 -0
- package/dist/chunks/chunk-D6kmoKXy.mjs +20 -0
- package/dist/chunks/chunk-EDXVE4YY-DEcX4XWm.mjs +26 -0
- package/dist/chunks/chunk-ENJZ2VHE-B4THRZkR.mjs +566 -0
- package/dist/chunks/chunk-FMBD7UC4-CF6BKEiV.mjs +5 -0
- package/dist/chunks/chunk-FOC6F5B3--xuza7Yn.mjs +20 -0
- package/dist/chunks/chunk-ICPOFSXX-BMja8cuy.mjs +3290 -0
- package/dist/chunks/chunk-K5T4RW27-CHEqGHFS.mjs +16370 -0
- package/dist/chunks/chunk-KGLVRYIC-DHYYpR8v.mjs +20 -0
- package/dist/chunks/chunk-LIHQZDEY-AvbOvyLE.mjs +55 -0
- package/dist/chunks/chunk-ORNJ4GCN-38fbR5OS.mjs +25 -0
- package/dist/chunks/chunk-OYMX7WX6-BiqlATPA.mjs +2038 -0
- package/dist/chunks/chunk-QZHKN3VN-DitZIvj8.mjs +12 -0
- package/dist/chunks/chunk-U2HBQHQK-DJytnHmZ.mjs +1875 -0
- package/dist/chunks/chunk-X2U36JSP-DlOifw1K.mjs +68 -0
- package/dist/chunks/chunk-XPW4576I-s4fsi4XO.mjs +1146 -0
- package/dist/chunks/chunk-YZCP3GAM-Ch258bXC.mjs +60 -0
- package/dist/chunks/chunk-ZZ45TVLE-DWziaKxP.mjs +33 -0
- package/dist/chunks/classDiagram-6PBFFD2Q-BOkAe08u.mjs +30 -0
- package/dist/chunks/classDiagram-v2-HSJHXN6E-DeKatSvh.mjs +30 -0
- package/dist/chunks/clone-CJCz7VRp.mjs +8 -0
- package/dist/chunks/{constants-Ccno9NZS.mjs → constants-DFS8l39Y.mjs} +525 -552
- package/dist/chunks/cose-bilkent-S5V4N54A-CzLGVqvr.mjs +2246 -0
- package/dist/chunks/cytoscape.esm-D0iglm-M.mjs +18108 -0
- package/dist/chunks/dagre-KV5264BT-XbHSjleO.mjs +298 -0
- package/dist/chunks/dagre-XY8CZ1sg.mjs +1536 -0
- package/dist/chunks/default-DIfXCS2E.mjs +4 -0
- package/dist/chunks/defaultLocale-DFhS1600.mjs +201 -0
- package/dist/chunks/diagram-5BDNPKRD-CM7c3UTI.mjs +112 -0
- package/dist/chunks/diagram-G4DWMVQ6-Bhg4ps6b.mjs +546 -0
- package/dist/chunks/diagram-MMDJMWI5-C-UCVaxB.mjs +234 -0
- package/dist/chunks/diagram-TYMM5635-BOHSujSD.mjs +144 -0
- package/dist/chunks/dist-DHsXIYdd.mjs +59 -0
- package/dist/chunks/erDiagram-SMLLAGMA-CwKxXFMB.mjs +1712 -0
- package/dist/chunks/flowDiagram-DWJPFMVM-rQJKfyuO.mjs +4175 -0
- package/dist/chunks/ganttDiagram-T4ZO3ILL-DfaZirLX.mjs +3083 -0
- package/dist/chunks/gitGraph-7Q5UKJZL-BKG8cHGz.mjs +3 -0
- package/dist/chunks/gitGraphDiagram-UUTBAWPF-CRa-ymsI.mjs +792 -0
- package/dist/chunks/graphlib-CuDElSdG.mjs +223 -0
- package/dist/chunks/{i18next-G6FKbZqA.mjs → i18next-BBGW2sDE.mjs} +1 -1
- package/dist/chunks/{i18next-loader-CwNimni3.mjs → i18next-loader-CasQQb5s.mjs} +2 -2
- package/dist/chunks/info-OMHHGYJF-FKqYyUn9.mjs +3 -0
- package/dist/chunks/infoDiagram-42DDH7IO-CvyJU2nE.mjs +29 -0
- package/dist/chunks/init-JlKGZtuT.mjs +15 -0
- package/dist/chunks/ishikawaDiagram-UXIWVN3A-CIpbw1BK.mjs +719 -0
- package/dist/chunks/journeyDiagram-VCZTEJTY-H96UcUK9.mjs +885 -0
- package/dist/chunks/kanban-definition-6JOO6SKY-BYZT3srA.mjs +980 -0
- package/dist/chunks/katex-JyOgX6MW.mjs +22026 -0
- package/dist/chunks/{lightweight-i18n-DWCdzAw0.mjs → lightweight-i18n-Cvv8CWh4.mjs} +29 -18
- package/dist/chunks/line-B9xUUA7k.mjs +34 -0
- package/dist/chunks/linear-Dj-1yA_B.mjs +289 -0
- package/dist/chunks/mdast-util-math-CHYUxOHk.mjs +151 -0
- package/dist/chunks/mermaid-parser.core-D6OPAUtM.mjs +57 -0
- package/dist/chunks/mermaid.core-BPN9ZHKQ.mjs +989 -0
- package/dist/{messages-B-4fku2H2.mjs → chunks/messages--YKhFEDE.mjs} +30 -19
- package/dist/{messages-BCG_evLg.mjs → chunks/messages-0Uwu1AMJ2.mjs} +28 -17
- package/dist/{messages-CdlsTFB1.mjs → chunks/messages-1__0Ph4Q.mjs} +28 -17
- package/dist/chunks/{messages-wLSVQbsA2.mjs → messages-4sm9Pb0C.mjs} +28 -17
- package/dist/chunks/{messages-R2W_rGOo2.mjs → messages-4uxjtzKW.mjs} +28 -17
- package/dist/chunks/{messages-Dm4YVlrm.mjs → messages-B-SwLgkQ.mjs} +30 -19
- package/dist/{messages--S8_taOd2.mjs → chunks/messages-B1ylBxXQ.mjs} +28 -17
- package/dist/chunks/{messages-B7MIRzCa2.mjs → messages-B5m3dhKc.mjs} +28 -17
- package/dist/chunks/{messages-Dplnp19q.mjs → messages-B6n2zDtv.mjs} +29 -18
- package/dist/chunks/{messages-DD7BI6BK.mjs → messages-BC9w4zAT.mjs} +28 -17
- package/dist/chunks/{messages-BrFl5773.mjs → messages-BOj-7N3p.mjs} +28 -17
- package/dist/chunks/{messages-BbdNugdi.mjs → messages-BRYHTS18.mjs} +28 -17
- package/dist/chunks/{messages-JQKFJo7C.mjs → messages-BSBbVjor.mjs} +35 -24
- package/dist/{messages-CBzd_x7H.mjs → chunks/messages-BUUkmUGc.mjs} +28 -17
- package/dist/{messages-CjmSrt1D.mjs → chunks/messages-Bb3YEV2P.mjs} +33 -22
- package/dist/{messages-BvgXeMSL2.mjs → chunks/messages-Be_6YLzJ.mjs} +29 -18
- package/dist/{messages-pgPcitDH.mjs → chunks/messages-BevRhv5d.mjs} +28 -17
- package/dist/chunks/{messages-BW_7lfqG2.mjs → messages-Bhqr7Im2.mjs} +28 -17
- package/dist/chunks/{messages-LxumrNue2.mjs → messages-BpJFjSKa.mjs} +29 -18
- package/dist/{messages-xEI8gEDK.mjs → chunks/messages-BqYlq_Bn.mjs} +28 -17
- package/dist/{messages-CBdQ3XP9.mjs → chunks/messages-BtAwCUfD.mjs} +28 -17
- package/dist/{messages-D3cAcyzj.mjs → chunks/messages-Bthbp65G.mjs} +29 -18
- package/dist/{messages-CYX48nfg.mjs → chunks/messages-BvHMZ8Pi2.mjs} +28 -17
- package/dist/{messages-Dddxv8-f2.mjs → chunks/messages-Bw1BE9jW.mjs} +28 -17
- package/dist/chunks/{messages-d0Ky6QjR.mjs → messages-Bx6Wt285.mjs} +28 -17
- package/dist/chunks/{messages-BPog17132.mjs → messages-BzslJRYv.mjs} +29 -18
- package/dist/{messages-hTpeKUaW.mjs → chunks/messages-C02M0Tpw.mjs} +28 -17
- package/dist/chunks/{messages-C-b6tPad2.mjs → messages-C1u3E9qg.mjs} +28 -17
- package/dist/{messages-BJ7BuFZi.mjs → chunks/messages-C68WgSKk.mjs} +29 -18
- package/dist/chunks/{messages-Bpda_3PM2.mjs → messages-C8w8JCP0.mjs} +30 -19
- package/dist/chunks/{messages-CmrMwBv3.mjs → messages-CFOZdSk4.mjs} +28 -17
- package/dist/{messages-DVQNjdPk.mjs → chunks/messages-CGOY79lr.mjs} +28 -17
- package/dist/chunks/{messages-DAVsuDWh2.mjs → messages-CGaSMZPu.mjs} +28 -17
- package/dist/{messages-DtrSrdfE2.mjs → chunks/messages-CJJgQ0BH.mjs} +28 -17
- package/dist/{messages-CgzbJ8_l2.mjs → chunks/messages-CTD6rtQj2.mjs} +28 -17
- package/dist/chunks/{messages-p4byLfvR.mjs → messages-CZymJML9.mjs} +32 -21
- package/dist/{messages-CqkRG9mH.mjs → chunks/messages-CfeFJbiv.mjs} +32 -21
- package/dist/{messages-DjJQoYvP2.mjs → chunks/messages-Cgatzu_z.mjs} +30 -19
- package/dist/{messages-CM5fsPo02.mjs → chunks/messages-Ch2zBI602.mjs} +28 -17
- package/dist/chunks/{messages-CyNsByCY.mjs → messages-CiAHsUfO.mjs} +28 -17
- package/dist/{messages-BXI3qIos.mjs → chunks/messages-Cuzq-tNW.mjs} +28 -17
- package/dist/chunks/{messages-FHrCEJmY2.mjs → messages-Cw4qiMwb.mjs} +28 -17
- package/dist/chunks/{messages-xfjdrZmx.mjs → messages-Cyh-mz40.mjs} +28 -17
- package/dist/{messages-Bo_FUvVH.mjs → chunks/messages-D-I2QO8H.mjs} +28 -17
- package/dist/chunks/{messages-Ct7AMBS82.mjs → messages-D0D2gruy.mjs} +28 -17
- package/dist/chunks/{messages-CrMfiGu5.mjs → messages-D1BKxfLD.mjs} +29 -18
- package/dist/chunks/{messages-CmXADeab2.mjs → messages-D4eDs6R_.mjs} +28 -17
- package/dist/chunks/{messages-ClRHDxzh.mjs → messages-D9Xr-hES.mjs} +28 -17
- package/dist/{messages-tsHpMdDT2.mjs → chunks/messages-D9eJPHia.mjs} +30 -19
- package/dist/{messages-DUBHHfEt.mjs → chunks/messages-DBFWSzKY2.mjs} +28 -17
- package/dist/{messages-i4S6q64n2.mjs → chunks/messages-DC0wu2S7.mjs} +28 -17
- package/dist/chunks/{messages-BnznaKEP2.mjs → messages-DF9o19rG.mjs} +28 -17
- package/dist/{messages-DA-o8X3A.mjs → chunks/messages-DFS_n986.mjs} +51 -40
- package/dist/{messages-BGsDZTQp2.mjs → chunks/messages-DGS4H30T.mjs} +28 -17
- package/dist/chunks/{messages-Cdx4QMR1.mjs → messages-DKjddpzJ.mjs} +30 -19
- package/dist/chunks/{messages-B3s2vra72.mjs → messages-DMvTdUXC.mjs} +30 -19
- package/dist/{messages-Dcyrzdxa2.mjs → chunks/messages-DQUX-QYI2.mjs} +28 -17
- package/dist/chunks/{messages-BS1nOvZ-.mjs → messages-DUigq8FO2.mjs} +28 -17
- package/dist/{messages-BKjqW08U.mjs → chunks/messages-DY0FJdpH.mjs} +28 -17
- package/dist/{messages-BBvDbp62.mjs → chunks/messages-DfVXiqt-2.mjs} +28 -17
- package/dist/chunks/{messages-DHCVA7XQ.mjs → messages-DgZc9TJw.mjs} +28 -17
- package/dist/chunks/{messages-1Raf1IK82.mjs → messages-QD4BCUDP.mjs} +28 -17
- package/dist/{messages-JhoVMjfX2.mjs → chunks/messages-USmweex9.mjs} +28 -17
- package/dist/chunks/{messages-DBpXyvRe2.mjs → messages-a1JTi0Qm.mjs} +31 -20
- package/dist/chunks/{messages-D5IgUbBD2.mjs → messages-jcgCHPRn.mjs} +28 -17
- package/dist/chunks/{messages-Dfpi8pDY.mjs → messages-tnnqHpbd.mjs} +29 -18
- package/dist/{messages-DZEcrbmH.mjs → chunks/messages-vzWKPLJO.mjs} +28 -17
- package/dist/chunks/micromark-extension-math-Cz_ZZ_0Y.mjs +169 -0
- package/dist/chunks/micromark-factory-space-WwmyBO_J.mjs +36 -0
- package/dist/chunks/mindmap-definition-QFDTVHPH-BswFuNN6.mjs +1013 -0
- package/dist/chunks/{notifier-Butv4Dvo.mjs → notifier-B1zCi9G1.mjs} +1 -1
- package/dist/chunks/{objectSpread2-BY4mgzrQ.mjs → objectSpread2-CWwMYL_U.mjs} +1 -1
- package/dist/chunks/ordinal-D1_lEgAO.mjs +65 -0
- package/dist/chunks/packet-4T2RLAQJ-DTUW2U0C.mjs +3 -0
- package/dist/chunks/path-6nYPAvNb.mjs +85 -0
- package/dist/chunks/pie-ZZUOXDRM-D-umqvEM.mjs +3 -0
- package/dist/chunks/pieDiagram-DEJITSTG-1WJgvK1w.mjs +179 -0
- package/dist/chunks/quadrantDiagram-34T5L4WZ-B_YH8QGl.mjs +1960 -0
- package/dist/chunks/radar-PYXPWWZC-DkQelf08.mjs +3 -0
- package/dist/chunks/requirementDiagram-MS252O5E-DRl0YJRI.mjs +2224 -0
- package/dist/chunks/rough.esm-CSWJruu5.mjs +1353 -0
- package/dist/chunks/sankeyDiagram-XADWPNL6-B-8IrknH.mjs +909 -0
- package/dist/chunks/sequenceDiagram-FGHM5R23-DTLb8qmO.mjs +4181 -0
- package/dist/chunks/src-CRgEHLPW.mjs +2149 -0
- package/dist/chunks/stateDiagram-FHFEXIEX-B0JFjLFy.mjs +218 -0
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-Co9CUU_z.mjs +28 -0
- package/dist/chunks/timeline-definition-GMOUNBTQ-CS9KTh-Q.mjs +1084 -0
- package/dist/chunks/{tools-C2_IVsQY.mjs → tools-CSYsrnud.mjs} +2846 -3098
- package/dist/chunks/treeView-SZITEDCU-DOOoyNP9.mjs +3 -0
- package/dist/chunks/treemap-W4RFUUIX-CsOoUA-u.mjs +3 -0
- package/dist/chunks/vennDiagram-DHZGUBPP-0BNu5Wna.mjs +1876 -0
- package/dist/chunks/wardley-RL74JXVD-CCzZcmEk.mjs +3 -0
- package/dist/chunks/wardleyDiagram-NUSXRM2D-Ca9XByNH.mjs +594 -0
- package/dist/chunks/xychartDiagram-5P7HB3ND-C8AyKUAE.mjs +2017 -0
- package/dist/cli.mjs +1 -1
- package/dist/full.mjs +14 -14
- package/dist/locales.mjs +95 -84
- package/dist/markdown.mjs +3962 -0
- package/dist/{chunks/messages-6mikOS4D2.mjs → messages-5jvKxQNu2.mjs} +28 -17
- package/dist/{messages-BAcH6PtT2.mjs → messages-7QD-X6XT2.mjs} +28 -17
- package/dist/{messages-DbxbxUiK2.mjs → messages-96iaAUds2.mjs} +29 -18
- package/dist/{messages-CVcQD-9u.mjs → messages-B19o-Teb.mjs} +30 -19
- package/dist/{messages-Ccd587Yn.mjs → messages-B1ZUQagA.mjs} +28 -17
- package/dist/{messages-upqrRZQH2.mjs → messages-B7ieAJBd2.mjs} +28 -17
- package/dist/{chunks/messages-Csvm4mtA.mjs → messages-BECMxmfX.mjs} +28 -17
- package/dist/{chunks/messages-DA7Zk-Cy.mjs → messages-BIHc0KHY.mjs} +29 -18
- package/dist/{chunks/messages-BdnSVKOw.mjs → messages-BIoeoik5.mjs} +28 -17
- package/dist/{chunks/messages-DQ5AyNCU.mjs → messages-BJeGJksD.mjs} +28 -17
- package/dist/{messages-C5XPUD9T2.mjs → messages-BRZX964b2.mjs} +29 -18
- package/dist/{messages-Dkg99bfr2.mjs → messages-BTQPpoM42.mjs} +31 -20
- package/dist/{messages-fLi0P2dP.mjs → messages-BYNcD6uR.mjs} +28 -17
- package/dist/{messages-BvgTQLf72.mjs → messages-BYmmMDrN2.mjs} +28 -17
- package/dist/{chunks/messages-CgRvtOEY.mjs → messages-BbYq1pk-.mjs} +28 -17
- package/dist/{chunks/messages-DUDgFEEe2.mjs → messages-BiUGXvYr2.mjs} +28 -17
- package/dist/{chunks/messages-DJkIeapn.mjs → messages-BiiongNz2.mjs} +28 -17
- package/dist/{messages-BBq0M604.mjs → messages-Bm0Feca1.mjs} +32 -21
- package/dist/{messages-eTourT12.mjs → messages-BmAn22OX.mjs} +28 -17
- package/dist/{messages-C6Y4Jv2N.mjs → messages-Bq3F2Tp_.mjs} +28 -17
- package/dist/{messages-DIRha_gg2.mjs → messages-BsycN_JI2.mjs} +28 -17
- package/dist/{chunks/messages-CljStrYi.mjs → messages-BwHs4cm1.mjs} +32 -21
- package/dist/{chunks/messages-Cs9XBt4T.mjs → messages-CJTy6JZt.mjs} +28 -17
- package/dist/{messages-BokEflKa.mjs → messages-CR_L_UtK.mjs} +28 -17
- package/dist/{chunks/messages-ZJ0b1C3a.mjs → messages-CSUHBs4c2.mjs} +28 -17
- package/dist/{messages-BcFQFcJ92.mjs → messages-CWIXvnDf2.mjs} +28 -17
- package/dist/{messages-DnatBKPm.mjs → messages-CcF4y-E4.mjs} +28 -17
- package/dist/{messages-BywbKcPC.mjs → messages-Ce6KVEbT.mjs} +29 -18
- package/dist/{messages-DOTJ2NvJ.mjs → messages-Ci0KqX-J.mjs} +35 -24
- package/dist/{messages-BtxaN-xx.mjs → messages-CjbnogEC.mjs} +28 -17
- package/dist/{messages-BSe3QDnQ.mjs → messages-CmB406HW.mjs} +30 -19
- package/dist/{messages-BVKZK-3t.mjs → messages-CqXtJTpU.mjs} +28 -17
- package/dist/{chunks/messages-DJA6fb_P2.mjs → messages-D0aw5_0k2.mjs} +30 -19
- package/dist/{chunks/messages-DPykxECP2.mjs → messages-D8FQWulF2.mjs} +28 -17
- package/dist/{chunks/messages-CpzO7KRA.mjs → messages-DBiVgUs2.mjs} +29 -18
- package/dist/{chunks/messages-B0ffBqzr.mjs → messages-DIJlIqlQ2.mjs} +28 -17
- package/dist/{chunks/messages-BaPZuLjN.mjs → messages-DLX_iBDJ.mjs} +28 -17
- package/dist/{chunks/messages-CvfKofOP.mjs → messages-DLlc9QPw.mjs} +28 -17
- package/dist/{chunks/messages-Czny5pPT2.mjs → messages-DMr62KiO2.mjs} +28 -17
- package/dist/{chunks/messages-IDEUsFhQ2.mjs → messages-DPA-mMWC2.mjs} +29 -18
- package/dist/{messages-BCuTVHBV.mjs → messages-DTh9a8mR.mjs} +28 -17
- package/dist/{chunks/messages-DT7fRpCy.mjs → messages-DY4IqlhY.mjs} +28 -17
- package/dist/{chunks/messages-BgVEGd4c.mjs → messages-DYTTu0O12.mjs} +28 -17
- package/dist/{messages-Bk984gRE2.mjs → messages-DbySKTKt2.mjs} +30 -19
- package/dist/{chunks/messages-ID1PHnMv.mjs → messages-Ddnj2iTG2.mjs} +28 -17
- package/dist/{messages-BmNaAyKS.mjs → messages-DkLU_rWm.mjs} +28 -17
- package/dist/{messages-C6OJvnJg2.mjs → messages-Dl3Sv6Rq2.mjs} +29 -18
- package/dist/{chunks/messages-C1OqT_nL.mjs → messages-Dl5Y2-Ia.mjs} +51 -40
- package/dist/{chunks/messages-Cqc-6rfh2.mjs → messages-DnG0ef8t2.mjs} +30 -19
- package/dist/{chunks/messages-BkCjgGxc.mjs → messages-DnGJD4TL.mjs} +28 -17
- package/dist/{messages-Bio7KYsr2.mjs → messages-Dnp9N6RU2.mjs} +28 -17
- package/dist/{chunks/messages-Df87zXXG.mjs → messages-Dvn35ksS.mjs} +28 -17
- package/dist/{messages-CHJ5SOZI.mjs → messages-Dw__BcTj.mjs} +28 -17
- package/dist/{chunks/messages-DC7TX-YT.mjs → messages-Dy-Y_nEI.mjs} +28 -17
- package/dist/{messages-DV9e1DW7.mjs → messages-E_ZuzGDt.mjs} +28 -17
- package/dist/{messages-DD5pW0zJ.mjs → messages-F2xRoY1w.mjs} +28 -17
- package/dist/{chunks/messages-BgsPQXfP.mjs → messages-Smt4GBbj.mjs} +33 -22
- package/dist/{messages-DJT4Bt_02.mjs → messages-aMXpHt5X2.mjs} +28 -17
- package/dist/{chunks/messages-B2pW6jO_.mjs → messages-aWZH50vu2.mjs} +30 -19
- package/dist/{chunks/messages-u2yxkNTE2.mjs → messages-dv19AkyJ.mjs} +28 -17
- package/dist/{messages-DJKLtW7u.mjs → messages-hWwSRF-2.mjs} +28 -17
- package/dist/{messages-tK67CBqn.mjs → messages-j7o5rT9s.mjs} +28 -17
- package/dist/{messages-DqyqEw1_.mjs → messages-nUVjeh7K.mjs} +29 -18
- package/dist/{chunks/messages-DSjXen8E.mjs → messages-nlhESX9t.mjs} +28 -17
- package/dist/{messages-C30Vz-UZ2.mjs → messages-rk-A1Wa42.mjs} +30 -19
- package/dist/{chunks/messages-DR09nkcZ.mjs → messages-xh2eOLvs.mjs} +28 -17
- package/dist/{chunks/messages-C11byid72.mjs → messages-ynAe7ewZ.mjs} +28 -17
- package/dist/react.mjs +3 -3
- package/dist/tools.mjs +3 -3
- package/dist/vendor.LICENSE.txt +4609 -212
- package/package.json +21 -3
- package/src/components/blocks.ts +26 -1
- package/src/components/constants/data-attributes.ts +0 -2
- package/src/components/i18n/locales/am/messages.json +28 -17
- package/src/components/i18n/locales/ar/messages.json +28 -17
- package/src/components/i18n/locales/az/messages.json +28 -17
- package/src/components/i18n/locales/bg/messages.json +28 -17
- package/src/components/i18n/locales/bn/messages.json +28 -17
- package/src/components/i18n/locales/bs/messages.json +30 -19
- package/src/components/i18n/locales/cs/messages.json +32 -21
- package/src/components/i18n/locales/da/messages.json +35 -24
- package/src/components/i18n/locales/de/messages.json +33 -22
- package/src/components/i18n/locales/dv/messages.json +28 -17
- package/src/components/i18n/locales/el/messages.json +28 -17
- package/src/components/i18n/locales/en/messages.json +28 -17
- package/src/components/i18n/locales/es/messages.json +29 -18
- package/src/components/i18n/locales/et/messages.json +32 -21
- package/src/components/i18n/locales/fa/messages.json +28 -17
- package/src/components/i18n/locales/fi/messages.json +28 -17
- package/src/components/i18n/locales/fil/messages.json +51 -40
- package/src/components/i18n/locales/fr/messages.json +29 -18
- package/src/components/i18n/locales/gu/messages.json +28 -17
- package/src/components/i18n/locales/he/messages.json +28 -17
- package/src/components/i18n/locales/hi/messages.json +28 -17
- package/src/components/i18n/locales/hr/messages.json +30 -19
- package/src/components/i18n/locales/hu/messages.json +29 -18
- package/src/components/i18n/locales/hy/messages.json +28 -17
- package/src/components/i18n/locales/id/messages.json +28 -17
- package/src/components/i18n/locales/it/messages.json +29 -18
- package/src/components/i18n/locales/ja/messages.json +28 -17
- package/src/components/i18n/locales/ka/messages.json +28 -17
- package/src/components/i18n/locales/km/messages.json +28 -17
- package/src/components/i18n/locales/kn/messages.json +28 -17
- package/src/components/i18n/locales/ko/messages.json +28 -17
- package/src/components/i18n/locales/ku/messages.json +28 -17
- package/src/components/i18n/locales/lo/messages.json +28 -17
- package/src/components/i18n/locales/lt/messages.json +28 -17
- package/src/components/i18n/locales/lv/messages.json +28 -17
- package/src/components/i18n/locales/mk/messages.json +28 -17
- package/src/components/i18n/locales/ml/messages.json +28 -17
- package/src/components/i18n/locales/mn/messages.json +28 -17
- package/src/components/i18n/locales/mr/messages.json +28 -17
- package/src/components/i18n/locales/ms/messages.json +30 -19
- package/src/components/i18n/locales/my/messages.json +28 -17
- package/src/components/i18n/locales/ne/messages.json +28 -17
- package/src/components/i18n/locales/nl/messages.json +30 -19
- package/src/components/i18n/locales/no/messages.json +31 -20
- package/src/components/i18n/locales/pa/messages.json +28 -17
- package/src/components/i18n/locales/pl/messages.json +29 -18
- package/src/components/i18n/locales/ps/messages.json +28 -17
- package/src/components/i18n/locales/pt/messages.json +29 -18
- package/src/components/i18n/locales/ro/messages.json +29 -18
- package/src/components/i18n/locales/ru/messages.json +28 -17
- package/src/components/i18n/locales/sd/messages.json +28 -17
- package/src/components/i18n/locales/si/messages.json +28 -17
- package/src/components/i18n/locales/sk/messages.json +30 -19
- package/src/components/i18n/locales/sl/messages.json +30 -19
- package/src/components/i18n/locales/sq/messages.json +29 -18
- package/src/components/i18n/locales/sr/messages.json +28 -17
- package/src/components/i18n/locales/sv/messages.json +30 -19
- package/src/components/i18n/locales/sw/messages.json +28 -17
- package/src/components/i18n/locales/ta/messages.json +28 -17
- package/src/components/i18n/locales/te/messages.json +28 -17
- package/src/components/i18n/locales/th/messages.json +28 -17
- package/src/components/i18n/locales/tr/messages.json +28 -17
- package/src/components/i18n/locales/ug/messages.json +28 -17
- package/src/components/i18n/locales/uk/messages.json +28 -17
- package/src/components/i18n/locales/ur/messages.json +28 -17
- package/src/components/i18n/locales/vi/messages.json +28 -17
- package/src/components/i18n/locales/yi/messages.json +28 -17
- package/src/components/i18n/locales/zh/messages.json +28 -17
- package/src/components/icons/index.ts +59 -47
- package/src/components/inline-tools/inline-tool-code.ts +399 -0
- package/src/components/modules/api/blocks.ts +17 -0
- package/src/components/modules/api/tools.ts +0 -19
- package/src/components/modules/blockEvents/composers/blockSelectionKeys.ts +20 -3
- package/src/components/modules/blockEvents/composers/keyboardNavigation.ts +5 -5
- package/src/components/modules/blockManager/blockManager.ts +0 -11
- package/src/components/modules/blockManager/event-binder.ts +1 -12
- package/src/components/modules/paste/handlers/html-handler.ts +13 -10
- package/src/components/modules/paste/handlers/index.ts +1 -0
- package/src/components/modules/paste/index.ts +6 -0
- package/src/components/modules/themeManager.ts +1 -3
- package/src/components/modules/toolbar/blockSettings.ts +1 -0
- package/src/components/modules/toolbar/inline/index.ts +3 -0
- package/src/components/modules/ui.ts +0 -13
- package/src/components/modules/uiControllers/controllers/keyboard.ts +0 -29
- package/src/components/modules/uiControllers/controllers/selection.ts +2 -14
- package/src/components/ui/toolbox.ts +1 -0
- package/src/components/utils/popover/popover-position.ts +2 -4
- package/src/markdown/index.ts +63 -0
- package/src/markdown/markdown-handler.ts +110 -0
- package/src/markdown/mdast-to-blocks.ts +418 -0
- package/src/markdown/phrasing-to-html.ts +60 -0
- package/src/markdown/types.ts +42 -0
- package/src/stories/EditorModes.stories.ts +0 -60
- package/src/styles/main.css +39 -1140
- package/src/tools/callout/emoji-picker/index.ts +3 -2
- package/src/tools/callout/index.ts +24 -0
- package/src/tools/code/code-keyboard.ts +142 -0
- package/src/tools/code/constants.ts +96 -0
- package/src/tools/code/dom-builder.ts +181 -0
- package/src/tools/code/highlight-applier.ts +229 -0
- package/src/tools/code/index.ts +462 -0
- package/src/tools/code/katex-loader.ts +50 -0
- package/src/tools/code/language-picker.ts +241 -0
- package/src/tools/code/mermaid-loader.ts +45 -0
- package/src/tools/code/shiki-loader.ts +135 -0
- package/src/tools/divider/index.ts +9 -1
- package/src/tools/index.ts +4 -2
- package/src/tools/list/block-operations.ts +3 -1
- package/src/tools/list/depth-validator.ts +4 -7
- package/src/tools/list/dom-builder.ts +5 -3
- package/src/tools/list/index.ts +21 -3
- package/src/tools/list/list-helpers.ts +9 -2
- package/src/tools/list/list-keyboard.ts +56 -14
- package/src/tools/list/list-lifecycle.ts +3 -1
- package/src/tools/list/marker-calculator.ts +37 -0
- package/src/tools/list/ordered-marker-manager.ts +4 -2
- package/src/tools/table/core/table-commands.ts +16 -0
- package/src/tools/table/core/table-controller.ts +29 -0
- package/src/tools/table/core/table-events.ts +17 -0
- package/src/tools/table/index.ts +196 -13
- package/src/tools/table/table-cell-blocks.ts +9 -6
- package/src/tools/table/table-cell-clipboard.ts +7 -2
- package/src/tools/table/table-cell-placement-picker.ts +133 -0
- package/src/tools/table/table-cell-selection.ts +174 -19
- package/src/tools/table/table-core.ts +321 -113
- package/src/tools/table/table-map.ts +279 -0
- package/src/tools/table/table-model.ts +901 -1
- package/src/tools/table/table-operations.ts +78 -44
- package/src/tools/table/table-resize.ts +19 -17
- package/src/tools/table/table-row-col-drag.ts +24 -10
- package/src/tools/table/types.ts +24 -2
- package/types/api/tools.d.ts +0 -18
- package/types/data-attributes.d.ts +0 -1
- package/types/index.d.ts +0 -16
- package/types/markdown.d.ts +2 -0
- package/types/tools/code.d.ts +13 -0
- package/src/tools/database/database-backend-sync.ts +0 -101
- package/src/tools/database/database-board-view.ts +0 -301
- package/src/tools/database/database-card-drag.ts +0 -306
- package/src/tools/database/database-card-drawer.ts +0 -546
- package/src/tools/database/database-column-controls.ts +0 -46
- package/src/tools/database/database-column-drag.ts +0 -262
- package/src/tools/database/database-keyboard.ts +0 -35
- package/src/tools/database/database-list-row-drag.ts +0 -245
- package/src/tools/database/database-list-view.ts +0 -333
- package/src/tools/database/database-model.ts +0 -246
- package/src/tools/database/database-property-type-popover.ts +0 -108
- package/src/tools/database/database-tab-bar.ts +0 -532
- package/src/tools/database/database-view-popover.ts +0 -109
- package/src/tools/database/database-view-renderer.ts +0 -25
- package/src/tools/database/index.ts +0 -948
- package/src/tools/database/types.ts +0 -144
- package/types/tools/database.d.ts +0 -145
- /package/dist/chunks/{am-CHDDMHkd.mjs → am-rVzV1W41.mjs} +0 -0
- /package/dist/chunks/{ar-DoqfNqut.mjs → ar-C710lkoH.mjs} +0 -0
- /package/dist/chunks/{az-C34P9iEa.mjs → az-BOp1pgua.mjs} +0 -0
- /package/dist/chunks/{bg-jroXLY8Y.mjs → bg-CL9p09ZD.mjs} +0 -0
- /package/dist/chunks/{bn-BRI-WqxY.mjs → bn-CNmSeyAy.mjs} +0 -0
- /package/dist/chunks/{bs-CCGUpNHu.mjs → bs-BRzMGqzk.mjs} +0 -0
- /package/dist/chunks/{cs-D5qZOGuc.mjs → cs-BYPBLmnF.mjs} +0 -0
- /package/dist/chunks/{da-DrJ7W37K.mjs → da-CBC_LR1c.mjs} +0 -0
- /package/dist/chunks/{de-BW6-kp2c.mjs → de-DxRFMoAj.mjs} +0 -0
- /package/dist/chunks/{el-C-Vc_Otu.mjs → el-Bk6YbySf.mjs} +0 -0
- /package/dist/chunks/{es-B6fI5K9i.mjs → es-DpT3FCMR.mjs} +0 -0
- /package/dist/chunks/{et-BhVlZ-Yz.mjs → et-DE9Dr_g9.mjs} +0 -0
- /package/dist/chunks/{fa-D55Ijdqa.mjs → fa-Banj1QUE.mjs} +0 -0
- /package/dist/chunks/{fi-jNLjhKUQ.mjs → fi-DfN3M5ER.mjs} +0 -0
- /package/dist/chunks/{fil-DYd0T5aX.mjs → fil-DbCsRS1d.mjs} +0 -0
- /package/dist/chunks/{fr-yxy5xWw_.mjs → fr-D1clKhgt.mjs} +0 -0
- /package/dist/chunks/{gu-CcY_LJe7.mjs → gu-1CsZyRwT.mjs} +0 -0
- /package/dist/chunks/{he-DL9s7wNw.mjs → he-qQdnL6eK.mjs} +0 -0
- /package/dist/chunks/{hi-C8eGXgw5.mjs → hi-DxM0Nff1.mjs} +0 -0
- /package/dist/chunks/{hr-DLpybOhU.mjs → hr-Onldyi-u.mjs} +0 -0
- /package/dist/chunks/{hu-BkT0gT00.mjs → hu-CAn3pBuY.mjs} +0 -0
- /package/dist/chunks/{hy-CVFDCp2S.mjs → hy-D43q7NxE.mjs} +0 -0
- /package/dist/chunks/{id-0P4W9Az0.mjs → id-Xrw5Dd0Y.mjs} +0 -0
- /package/dist/chunks/{it-mLY6_uoW.mjs → it-CA9ZDMSc.mjs} +0 -0
- /package/dist/chunks/{ja-7RkeRNWG.mjs → ja-D0J6WRFh.mjs} +0 -0
- /package/dist/chunks/{ka-C7Lx-Qsh.mjs → ka-BZL7xDuY.mjs} +0 -0
- /package/dist/chunks/{km-Q8udaraH.mjs → km-BimgQZVU.mjs} +0 -0
- /package/dist/chunks/{kn-BiETM-iq.mjs → kn-C2n2cPHK.mjs} +0 -0
- /package/dist/chunks/{ko-tiB80pF1.mjs → ko-n4Cn93D3.mjs} +0 -0
- /package/dist/chunks/{ku-CY-OABkR.mjs → ku-BYZCgT44.mjs} +0 -0
- /package/dist/chunks/{lo-CTBhEnyk.mjs → lo-DVXiAE4N.mjs} +0 -0
- /package/dist/chunks/{lt-BHKHEtqK.mjs → lt-B9KlQFnY.mjs} +0 -0
- /package/dist/chunks/{lv-DWxgtfUg.mjs → lv-BINeOdyx.mjs} +0 -0
- /package/dist/chunks/{mk-BjookGdx.mjs → mk-_-QrPrLN.mjs} +0 -0
- /package/dist/chunks/{ml-L-NnZcp9.mjs → ml-KvJSC1KT.mjs} +0 -0
- /package/dist/chunks/{mn-OMWi7Hl_.mjs → mn-CjFjWnRG.mjs} +0 -0
- /package/dist/chunks/{mr-B6JPzITo.mjs → mr-DqAZ7FRX.mjs} +0 -0
- /package/dist/chunks/{ms-CG3S-sPB.mjs → ms-BZcV4UG_.mjs} +0 -0
- /package/dist/chunks/{my-BLAmGfhT.mjs → my-97SC9jYN.mjs} +0 -0
- /package/dist/chunks/{native-BPcABu9z.mjs → native-CzYG0YgY.mjs} +0 -0
- /package/dist/chunks/{ne-D1JHLfYw.mjs → ne-Bs-M2TyF.mjs} +0 -0
- /package/dist/chunks/{nl-Ca7Q8FnY.mjs → nl-2ZwQilo-.mjs} +0 -0
- /package/dist/chunks/{no-Coxcohcz.mjs → no-fOQTpFq1.mjs} +0 -0
- /package/dist/chunks/{pa-CCaXqpaI.mjs → pa-DLOqkMi0.mjs} +0 -0
- /package/dist/chunks/{pl-Cl_fAZ84.mjs → pl-FYs9QrXU.mjs} +0 -0
- /package/dist/chunks/{ps-WD5qGAWy.mjs → ps-CTXe6pSe.mjs} +0 -0
- /package/dist/chunks/{pt-C4zvLfvq.mjs → pt-B1X4x7d1.mjs} +0 -0
- /package/dist/chunks/{ro-DbefHcmM.mjs → ro-Bf7S2FaR.mjs} +0 -0
- /package/dist/chunks/{ru-uU1J14jd.mjs → ru-B8lqnu_j.mjs} +0 -0
- /package/dist/chunks/{sd-DKu368Ip.mjs → sd-CHRYJm2r.mjs} +0 -0
- /package/dist/chunks/{si-BsJCiPkZ.mjs → si-CI0Hs6vH.mjs} +0 -0
- /package/dist/chunks/{sk-CD-a3SN6.mjs → sk-Bdvq1Kb_.mjs} +0 -0
- /package/dist/chunks/{sl-CXhrPJe_.mjs → sl-B_qiFTV5.mjs} +0 -0
- /package/dist/chunks/{sq-CTctCoFQ.mjs → sq-E0j1hysP.mjs} +0 -0
- /package/dist/chunks/{sr-BZkhBwXj.mjs → sr-VPpVNTZw.mjs} +0 -0
- /package/dist/chunks/{sv-NmRZb_xi.mjs → sv-gKmDSR3d.mjs} +0 -0
- /package/dist/chunks/{sw-Be5ik3H6.mjs → sw-zeFLiO23.mjs} +0 -0
- /package/dist/chunks/{ta-DsXh6neL.mjs → ta-Ci-j89hR.mjs} +0 -0
- /package/dist/chunks/{te-CwpCbM8M.mjs → te-qyMI0M7a.mjs} +0 -0
- /package/dist/chunks/{th-CcZ15OLk.mjs → th-DPxHtpdb.mjs} +0 -0
- /package/dist/chunks/{tr-q3bTgvhW.mjs → tr-CRV6GS-G.mjs} +0 -0
- /package/dist/chunks/{tw-DmW6-pCY.mjs → tw-CqxBf-1Y.mjs} +0 -0
- /package/dist/chunks/{ug-919EhLsL.mjs → ug-DW0YFpo5.mjs} +0 -0
- /package/dist/chunks/{uk-aNMEzd0Y.mjs → uk-ssteuphK.mjs} +0 -0
- /package/dist/chunks/{ur-BwQI77sh.mjs → ur-qhY3-jY7.mjs} +0 -0
- /package/dist/chunks/{vi-Dxq806-F.mjs → vi-CHriMMC8.mjs} +0 -0
- /package/dist/chunks/{zh-BcHuy1Ti.mjs → zh-BJktawVN.mjs} +0 -0
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
get: ((e) => t[e]).bind(null, d),
|
|
7
|
-
enumerable: !(r = a(t, d)) || r.enumerable
|
|
8
|
-
});
|
|
9
|
-
return e;
|
|
10
|
-
}, d = (e, t, n) => (n = e == null ? {} : r(s(e)), u(t || !e || !e.__esModule ? i(n, "default", {
|
|
11
|
-
value: e,
|
|
12
|
-
enumerable: !0
|
|
13
|
-
}) : n, e)), f = {
|
|
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 = {
|
|
14
6
|
interface: "data-blok-interface",
|
|
15
7
|
element: "data-blok-element",
|
|
16
8
|
elementContent: "data-blok-element-content",
|
|
@@ -27,7 +19,6 @@ var r = Object.create, i = Object.defineProperty, a = Object.getOwnPropertyDescr
|
|
|
27
19
|
stretched: "data-blok-stretched",
|
|
28
20
|
empty: "data-blok-empty",
|
|
29
21
|
contentAlign: "data-blok-content-align",
|
|
30
|
-
narrow: "data-blok-narrow",
|
|
31
22
|
rtl: "data-blok-rtl",
|
|
32
23
|
dragging: "data-blok-dragging",
|
|
33
24
|
draggingMulti: "data-blok-dragging-multi",
|
|
@@ -105,7 +96,7 @@ var r = Object.create, i = Object.defineProperty, a = Object.getOwnPropertyDescr
|
|
|
105
96
|
slashSearch: "data-blok-slash-search",
|
|
106
97
|
testid: "data-blok-testid",
|
|
107
98
|
forceHover: "data-blok-force-hover"
|
|
108
|
-
},
|
|
99
|
+
}, o = (e, t) => t === void 0 ? `[${e}]` : `[${e}="${t}"]`, s = {
|
|
109
100
|
BACKSPACE: 8,
|
|
110
101
|
TAB: 9,
|
|
111
102
|
ENTER: 13,
|
|
@@ -132,15 +123,15 @@ var r = Object.create, i = Object.defineProperty, a = Object.getOwnPropertyDescr
|
|
|
132
123
|
BRACKET_KEY_MAX: 223,
|
|
133
124
|
PROCESSING_KEY: 229,
|
|
134
125
|
SLASH: 191
|
|
135
|
-
},
|
|
126
|
+
}, c = {
|
|
136
127
|
LEFT: 0,
|
|
137
128
|
WHEEL: 1,
|
|
138
129
|
RIGHT: 2,
|
|
139
130
|
BACKWARD: 3,
|
|
140
131
|
FORWARD: 4
|
|
141
|
-
},
|
|
132
|
+
}, l = () => "0.10.0-beta.7", u = /* @__PURE__ */ function(e) {
|
|
142
133
|
return e.VERBOSE = "VERBOSE", e.INFO = "INFO", e.WARN = "WARN", e.ERROR = "ERROR", e;
|
|
143
|
-
}({}),
|
|
134
|
+
}({}), d = (e, t, n = "log", r, i = "color: inherit") => {
|
|
144
135
|
let a = typeof console > "u" ? void 0 : console;
|
|
145
136
|
if (!a || typeof a[n] != "function") return;
|
|
146
137
|
let o = [
|
|
@@ -149,40 +140,40 @@ var r = Object.create, i = Object.defineProperty, a = Object.getOwnPropertyDescr
|
|
|
149
140
|
"warn",
|
|
150
141
|
"error"
|
|
151
142
|
].includes(n), s = [];
|
|
152
|
-
switch (
|
|
153
|
-
case
|
|
154
|
-
case
|
|
143
|
+
switch (d.logLevel) {
|
|
144
|
+
case u.VERBOSE: break;
|
|
145
|
+
case u.ERROR:
|
|
155
146
|
if (n !== "error") return;
|
|
156
147
|
break;
|
|
157
|
-
case
|
|
148
|
+
case u.WARN:
|
|
158
149
|
if (!["error", "warn"].includes(n)) return;
|
|
159
150
|
break;
|
|
160
|
-
case
|
|
151
|
+
case u.INFO:
|
|
161
152
|
if (!o || e) return;
|
|
162
153
|
break;
|
|
163
154
|
}
|
|
164
155
|
r && s.push(r);
|
|
165
|
-
let c = `Blok ${
|
|
156
|
+
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];
|
|
166
157
|
try {
|
|
167
|
-
a[n](...
|
|
158
|
+
a[n](...p);
|
|
168
159
|
} catch (e) {}
|
|
169
160
|
};
|
|
170
|
-
|
|
171
|
-
var
|
|
172
|
-
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
},
|
|
161
|
+
d.logLevel = u.VERBOSE;
|
|
162
|
+
var f = (e) => {
|
|
163
|
+
d.logLevel = e;
|
|
164
|
+
}, p = (e, t = "log", n, r) => {
|
|
165
|
+
d(!1, e, t, n, r);
|
|
166
|
+
}, m = (e, t = "log", n, r) => {
|
|
167
|
+
d(!0, e, t, n, r);
|
|
168
|
+
}, h = (e) => typeof e == "function", g = (e) => {
|
|
178
169
|
if (typeof e != "object" || !e) return !1;
|
|
179
170
|
let t = Object.getPrototypeOf(e);
|
|
180
171
|
return t === null || t === Object.prototype;
|
|
181
|
-
},
|
|
172
|
+
}, _ = (e) => typeof e == "string", v = (e) => typeof e == "boolean", y = (e) => typeof e == "number", ee = function(e) {
|
|
182
173
|
return e === void 0;
|
|
183
|
-
},
|
|
174
|
+
}, 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, x = (e, t) => function(...n) {
|
|
184
175
|
setTimeout(() => e.apply(this, n), t);
|
|
185
|
-
},
|
|
176
|
+
}, te = (e, t, n) => {
|
|
186
177
|
let r = { timeoutId: null };
|
|
187
178
|
return function(...i) {
|
|
188
179
|
let a = () => {
|
|
@@ -190,7 +181,7 @@ var ee = (e) => {
|
|
|
190
181
|
}, o = n === !0 && r.timeoutId === null;
|
|
191
182
|
r.timeoutId !== null && clearTimeout(r.timeoutId), r.timeoutId = setTimeout(a, t), o && e.apply(this, i);
|
|
192
183
|
};
|
|
193
|
-
},
|
|
184
|
+
}, ne = (e, t, n) => {
|
|
194
185
|
let r = (n == null ? void 0 : n.leading) !== !1, i = (n == null ? void 0 : n.trailing) !== !1, a = {
|
|
195
186
|
lastCallTime: void 0,
|
|
196
187
|
lastInvokeTime: 0,
|
|
@@ -221,79 +212,79 @@ var ee = (e) => {
|
|
|
221
212
|
let n = Date.now(), i = c(n);
|
|
222
213
|
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;
|
|
223
214
|
};
|
|
224
|
-
},
|
|
215
|
+
}, S = (() => {
|
|
225
216
|
try {
|
|
226
217
|
return Function("return this")();
|
|
227
218
|
} catch (e) {
|
|
228
219
|
return;
|
|
229
220
|
}
|
|
230
221
|
})();
|
|
231
|
-
|
|
232
|
-
var
|
|
233
|
-
if (
|
|
234
|
-
},
|
|
235
|
-
if (
|
|
236
|
-
let e =
|
|
222
|
+
S && S.window === void 0 && (S.window = S);
|
|
223
|
+
var C = () => {
|
|
224
|
+
if (S != null && S.window) return S.window;
|
|
225
|
+
}, re = () => {
|
|
226
|
+
if (S != null && S.navigator) return S.navigator;
|
|
227
|
+
let e = C();
|
|
237
228
|
return e == null ? void 0 : e.navigator;
|
|
238
|
-
},
|
|
229
|
+
}, ie = (e) => /^[-\w]+\/([-+\w]+|\*)$/.test(e), ae = () => {
|
|
239
230
|
var e, t;
|
|
240
231
|
let n = {
|
|
241
232
|
win: !1,
|
|
242
233
|
mac: !1,
|
|
243
234
|
x11: !1,
|
|
244
235
|
linux: !1
|
|
245
|
-
}, r =
|
|
236
|
+
}, r = re(), 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;
|
|
246
237
|
return a === void 0 || (n[a] = !0), n;
|
|
247
|
-
},
|
|
248
|
-
let e =
|
|
238
|
+
}, oe = () => {
|
|
239
|
+
let e = C();
|
|
249
240
|
return !e || typeof e.matchMedia != "function" ? !1 : e.matchMedia("(max-width: 650px)").matches;
|
|
250
|
-
},
|
|
241
|
+
}, se = (() => {
|
|
251
242
|
var e;
|
|
252
|
-
let t =
|
|
243
|
+
let t = re();
|
|
253
244
|
if (!t) return !1;
|
|
254
245
|
let n = t.userAgent || "", r = t.userAgentData, i = r == null ? void 0 : r.platform;
|
|
255
246
|
if (/iP(ad|hone|od)/.test(n) || i !== void 0 && i !== "" && /iP(ad|hone|od)/.test(i)) return !0;
|
|
256
247
|
let a = ((e = t.maxTouchPoints) == null ? 0 : e) > 1, o = () => t.platform, s = i !== void 0 && i !== "" ? i : void 0;
|
|
257
248
|
return (a ? s == null ? o() : s : void 0) === "MacIntel";
|
|
258
|
-
})(),
|
|
249
|
+
})(), ce = (e) => {
|
|
259
250
|
try {
|
|
260
251
|
return new URL(e).href;
|
|
261
252
|
} catch (e) {}
|
|
262
|
-
let t =
|
|
253
|
+
let t = C();
|
|
263
254
|
return e.substring(0, 2) === "//" ? t ? `${t.location.protocol}${e}` : e : t ? `${t.location.origin}${e}` : e;
|
|
264
|
-
},
|
|
265
|
-
let t =
|
|
255
|
+
}, le = (e) => {
|
|
256
|
+
let t = C();
|
|
266
257
|
t && t.open(e, "_blank");
|
|
267
|
-
},
|
|
268
|
-
let t =
|
|
258
|
+
}, ue = (e) => e && e.slice(0, 1).toUpperCase() + e.slice(1), de = (e) => {
|
|
259
|
+
let t = ae(), 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, " + ");
|
|
269
260
|
return t.mac ? n.replace(/ctrl|cmd/gi, "⌘").replace(/alt/gi, "⌥") : n.replace(/cmd/gi, "Ctrl").replace(/windows/gi, "WIN");
|
|
270
|
-
},
|
|
271
|
-
let r =
|
|
272
|
-
return Object.keys(
|
|
273
|
-
let
|
|
261
|
+
}, fe = (e, t) => {
|
|
262
|
+
let r = n({}, e);
|
|
263
|
+
return Object.keys(t).forEach((e) => {
|
|
264
|
+
let n = r[e], i = t[e];
|
|
274
265
|
if (i !== void 0) {
|
|
275
|
-
if (
|
|
276
|
-
r[e] =
|
|
266
|
+
if (g(i) && g(n) && !Array.isArray(i)) {
|
|
267
|
+
r[e] = fe(n, i);
|
|
277
268
|
return;
|
|
278
269
|
}
|
|
279
270
|
r[e] = i;
|
|
280
271
|
}
|
|
281
272
|
}), r;
|
|
282
|
-
},
|
|
283
|
-
if (!
|
|
284
|
-
let n = t.reduce((e, t) =>
|
|
273
|
+
}, w = (e, ...t) => {
|
|
274
|
+
if (!g(e) || t.length === 0) return e;
|
|
275
|
+
let n = t.reduce((e, t) => g(t) ? fe(e, t) : e, e);
|
|
285
276
|
return Object.assign(e, n), e;
|
|
286
|
-
},
|
|
277
|
+
}, pe = (e, t) => e.length === t.length ? e.every((e, n) => T(e, t[n])) : !1, T = (e, t) => {
|
|
287
278
|
if (e === t) return !0;
|
|
288
279
|
if (e === null || t === null || typeof e != "object" || typeof t != "object" || Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
289
|
-
if (Array.isArray(e) && Array.isArray(t)) return
|
|
280
|
+
if (Array.isArray(e) && Array.isArray(t)) return pe(e, t);
|
|
290
281
|
let n = Object.keys(e), r = Object.keys(t);
|
|
291
|
-
return n.length === r.length ? n.every((n) => Object.prototype.hasOwnProperty.call(t, n) &&
|
|
292
|
-
},
|
|
282
|
+
return n.length === r.length ? n.every((n) => Object.prototype.hasOwnProperty.call(t, n) && T(e[n], t[n])) : !1;
|
|
283
|
+
}, me = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", he = (e = 21) => {
|
|
293
284
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
294
|
-
for (; e--;) t +=
|
|
285
|
+
for (; e--;) t += me[n[e] & 63];
|
|
295
286
|
return t;
|
|
296
|
-
},
|
|
287
|
+
}, ge = 1e8, _e = 16, ve = () => he(10), ye = (e = "") => `${e}${Math.floor(Math.random() * ge).toString(_e)}`, E = class e {
|
|
297
288
|
static isSingleTag(e) {
|
|
298
289
|
return !!e.tagName && [
|
|
299
290
|
"AREA",
|
|
@@ -404,10 +395,10 @@ var T = () => {
|
|
|
404
395
|
return l ? this.getDeepestNode(l, n) : s.parentNode;
|
|
405
396
|
}
|
|
406
397
|
static isElement(e) {
|
|
407
|
-
return
|
|
398
|
+
return y(e) ? !1 : typeof e == "object" && !!e && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE;
|
|
408
399
|
}
|
|
409
400
|
static isFragment(e) {
|
|
410
|
-
return
|
|
401
|
+
return y(e) ? !1 : typeof e == "object" && !!e && "nodeType" in e && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
|
|
411
402
|
}
|
|
412
403
|
static isContentEditable(e) {
|
|
413
404
|
return e.contentEditable === "true";
|
|
@@ -459,7 +450,7 @@ var T = () => {
|
|
|
459
450
|
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(".");
|
|
460
451
|
}
|
|
461
452
|
static containsOnlyInlineElements(t) {
|
|
462
|
-
let n =
|
|
453
|
+
let n = _(t) ? (() => {
|
|
463
454
|
let e = document.createElement("div");
|
|
464
455
|
return e.innerHTML = t, e;
|
|
465
456
|
})() : t, r = (t) => !e.blockElements.includes(t.tagName.toLowerCase()) && Array.from(t.children).every(r);
|
|
@@ -469,7 +460,7 @@ var T = () => {
|
|
|
469
460
|
return e.containsOnlyInlineElements(t) ? [t] : Array.from(t.children).reduce((t, n) => [...t, ...e.getDeepestBlockElements(n)], []);
|
|
470
461
|
}
|
|
471
462
|
static getHolder(e) {
|
|
472
|
-
if (!
|
|
463
|
+
if (!_(e)) return e;
|
|
473
464
|
let t = document.getElementById(e);
|
|
474
465
|
if (t !== null) return t;
|
|
475
466
|
throw Error(`Element with id "${e}" not found`);
|
|
@@ -519,32 +510,32 @@ var T = () => {
|
|
|
519
510
|
offset: a
|
|
520
511
|
};
|
|
521
512
|
}
|
|
522
|
-
},
|
|
523
|
-
e.setAttribute("data-blok-empty",
|
|
524
|
-
},
|
|
513
|
+
}, be = (e) => !/[^\t\n\r \u200B]/.test(e), xe = (e) => {
|
|
514
|
+
e.setAttribute("data-blok-empty", E.isEmpty(e) ? "true" : "false");
|
|
515
|
+
}, Se = ["header", "table"], D = /* @__PURE__ */ new Map(), Ce = (e) => {
|
|
525
516
|
let t = [...new Set(e)];
|
|
526
517
|
for (let e of t) {
|
|
527
518
|
var n;
|
|
528
|
-
let t = (n =
|
|
529
|
-
|
|
519
|
+
let t = (n = D.get(e)) == null ? 0 : n;
|
|
520
|
+
D.set(e, t + 1);
|
|
530
521
|
}
|
|
531
522
|
let r = { cleanedUp: !1 };
|
|
532
523
|
return () => {
|
|
533
524
|
if (!r.cleanedUp) {
|
|
534
525
|
r.cleanedUp = !0;
|
|
535
526
|
for (let e of t) {
|
|
536
|
-
let t =
|
|
537
|
-
t !== void 0 && (t <= 1 ?
|
|
527
|
+
let t = D.get(e);
|
|
528
|
+
t !== void 0 && (t <= 1 ? D.delete(e) : D.set(e, t - 1));
|
|
538
529
|
}
|
|
539
530
|
}
|
|
540
531
|
};
|
|
541
|
-
},
|
|
532
|
+
}, we = () => [...Se, ...D.keys()], Te = (e) => e ? (e instanceof HTMLElement ? e : e.holder).closest("[data-blok-table-cell-blocks]") !== null : !1, Ee = (e) => Se.includes(e) || D.has(e), De = class {
|
|
542
533
|
constructor() {
|
|
543
534
|
this.allListeners = [];
|
|
544
535
|
}
|
|
545
536
|
on(e, t, n, r = !1) {
|
|
546
537
|
if (this.findOne(e, t, n, r)) return;
|
|
547
|
-
let i =
|
|
538
|
+
let i = ye("l"), a = {
|
|
548
539
|
id: i,
|
|
549
540
|
element: e,
|
|
550
541
|
eventType: t,
|
|
@@ -619,60 +610,60 @@ var T = () => {
|
|
|
619
610
|
let n = this.normalizeListenerOptions(e), r = this.normalizeListenerOptions(t);
|
|
620
611
|
return n.capture === r.capture && n.once === r.once && n.passive === r.passive && n.signal === r.signal;
|
|
621
612
|
}
|
|
622
|
-
},
|
|
613
|
+
}, O = (e, t) => {
|
|
623
614
|
if (!e.conversionConfig) return !1;
|
|
624
615
|
let n = e.conversionConfig[t];
|
|
625
|
-
return
|
|
626
|
-
},
|
|
616
|
+
return h(n) || _(n);
|
|
617
|
+
}, k = (e, t) => {
|
|
627
618
|
let n = t.includes(".") ? t : `toolNames.${t}`;
|
|
628
619
|
return e.has(n) ? e.t(n) : void 0;
|
|
629
|
-
},
|
|
630
|
-
let r = t.titleKey ?
|
|
620
|
+
}, Oe = (e, t, n = "") => {
|
|
621
|
+
let r = t.titleKey ? k(e, t.titleKey) : void 0;
|
|
631
622
|
if (r !== void 0) return r;
|
|
632
|
-
let i = t.title ?
|
|
623
|
+
let i = t.title ? k(e, t.title) : void 0;
|
|
633
624
|
if (i !== void 0) return i;
|
|
634
625
|
if (t.title) return t.title;
|
|
635
|
-
let a = n ?
|
|
626
|
+
let a = n ? k(e, n) : void 0;
|
|
636
627
|
return a == null ? n : a;
|
|
637
|
-
},
|
|
638
|
-
let r = t ?
|
|
628
|
+
}, ke = (e, t, n) => {
|
|
629
|
+
let r = t ? k(e, t) : void 0;
|
|
639
630
|
if (r !== void 0) return r;
|
|
640
|
-
let i =
|
|
631
|
+
let i = k(e, n);
|
|
641
632
|
return i == null ? n : i;
|
|
642
|
-
},
|
|
643
|
-
let r = (await
|
|
644
|
-
return i !== void 0 && !
|
|
645
|
-
if (!
|
|
646
|
-
let a = new Set(i.toolbox.map((e) => e.data).filter((e) => e !== void 0).flatMap((e) => Object.keys(e))), o = i.toolbox.filter((
|
|
647
|
-
if (
|
|
648
|
-
let n =
|
|
649
|
-
return !(n &&
|
|
650
|
-
let n =
|
|
651
|
-
return
|
|
652
|
-
}) || !n && i.name ===
|
|
633
|
+
}, Ae = (e, t) => O(e.tool, t), je = (e, t) => Object.entries(e).some((([e, n]) => t[e] && T(t[e], n))), Me = async (e, t) => {
|
|
634
|
+
let r = (await e.save()).data, i = t.find((t) => t.name === e.name);
|
|
635
|
+
return i !== void 0 && !O(i, "export") ? [] : t.reduce((t, i) => {
|
|
636
|
+
if (!O(i, "import") || i.toolbox === void 0) return t;
|
|
637
|
+
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) => {
|
|
638
|
+
if (b(t) || t.icon === void 0) return !1;
|
|
639
|
+
let n = t.data !== void 0;
|
|
640
|
+
return !(n && t.data !== void 0 && [...a].every((e) => {
|
|
641
|
+
let n = t.data === void 0 ? void 0 : t.data[e], i = r[e];
|
|
642
|
+
return T(n, i);
|
|
643
|
+
}) || !n && i.name === e.name);
|
|
653
644
|
});
|
|
654
|
-
return o.length > 0 &&
|
|
645
|
+
return o.length > 0 && t.push(n(n({}, i), {}, { toolbox: o })), t;
|
|
655
646
|
}, []);
|
|
656
|
-
},
|
|
657
|
-
if (
|
|
658
|
-
if (
|
|
659
|
-
for (let
|
|
660
|
-
let
|
|
661
|
-
if (
|
|
662
|
-
}
|
|
663
|
-
let r = new Set(
|
|
664
|
-
return
|
|
665
|
-
if (!
|
|
666
|
-
let i =
|
|
667
|
-
return i.length > 0 &&
|
|
647
|
+
}, Ne = (e, t) => e.mergeable ? e.name === t.name ? !0 : Ae(t, "export") && Ae(e, "import") : !1, Pe = async (e, t) => {
|
|
648
|
+
if (e.length === 0) return [];
|
|
649
|
+
if (e.length === 1) return Me(e[0], t);
|
|
650
|
+
for (let n of e) {
|
|
651
|
+
let e = t.find((e) => e.name === n.name);
|
|
652
|
+
if (e !== void 0 && !O(e, "export")) return [];
|
|
653
|
+
}
|
|
654
|
+
let r = new Set(e.map((e) => e.name));
|
|
655
|
+
return t.reduce((e, t) => {
|
|
656
|
+
if (!O(t, "import") || t.toolbox === void 0) return e;
|
|
657
|
+
let i = t.toolbox.filter((e) => !(b(e) || e.icon === void 0 || e.data === void 0 && r.size === 1 && r.has(t.name)));
|
|
658
|
+
return i.length > 0 && e.push(n(n({}, t), {}, { toolbox: i })), e;
|
|
668
659
|
}, []);
|
|
669
|
-
},
|
|
660
|
+
}, Fe = (e, t) => {
|
|
670
661
|
let n = t == null ? void 0 : t.export;
|
|
671
|
-
return
|
|
672
|
-
},
|
|
662
|
+
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."), "");
|
|
663
|
+
}, Ie = (e, t, n) => {
|
|
673
664
|
let r = t == null ? void 0 : t.import;
|
|
674
|
-
return
|
|
675
|
-
},
|
|
665
|
+
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."), {});
|
|
666
|
+
}, Le = class {
|
|
676
667
|
constructor() {
|
|
677
668
|
this.subscribers = {};
|
|
678
669
|
}
|
|
@@ -688,7 +679,7 @@ var T = () => {
|
|
|
688
679
|
this.subscribers[e].push(n);
|
|
689
680
|
}
|
|
690
681
|
emit(e, t) {
|
|
691
|
-
|
|
682
|
+
b(this.subscribers) || !this.subscribers[e] || this.subscribers[e].reduce((e, t) => {
|
|
692
683
|
let n = t(e);
|
|
693
684
|
return n === void 0 ? e : n;
|
|
694
685
|
}, t);
|
|
@@ -705,7 +696,7 @@ var T = () => {
|
|
|
705
696
|
destroy() {
|
|
706
697
|
this.subscribers = {};
|
|
707
698
|
}
|
|
708
|
-
},
|
|
699
|
+
}, Re = "blok", ze = "inline-toolbar", Be = "tooltip", Ve = "[data-blok-interface=inline-toolbar]", He = typeof process < "u" ? process.platform === "darwin" ? "Meta" : "Control" : typeof navigator < "u" && navigator.userAgent.toLowerCase().includes("mac") ? "Meta" : "Control", A = class {
|
|
709
700
|
static getAnchorNode() {
|
|
710
701
|
let e = window.getSelection();
|
|
711
702
|
return e ? e.anchorNode : null;
|
|
@@ -714,7 +705,7 @@ var T = () => {
|
|
|
714
705
|
let e = window.getSelection();
|
|
715
706
|
if (!e) return null;
|
|
716
707
|
let t = e.anchorNode;
|
|
717
|
-
return t ?
|
|
708
|
+
return t ? E.isElement(t) ? t : t.parentElement : null;
|
|
718
709
|
}
|
|
719
710
|
static getAnchorOffset() {
|
|
720
711
|
let e = window.getSelection();
|
|
@@ -726,7 +717,7 @@ var T = () => {
|
|
|
726
717
|
}
|
|
727
718
|
static isSelectionAtBlok(e) {
|
|
728
719
|
if (!e) return !1;
|
|
729
|
-
let t = e.anchorNode || e.focusNode, n = t && t.nodeType === Node.TEXT_NODE ? t.parentNode : t, r = n && n instanceof Element ? n.closest(
|
|
720
|
+
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;
|
|
730
721
|
return r ? r.nodeType === Node.ELEMENT_NODE : !1;
|
|
731
722
|
}
|
|
732
723
|
static getIsAtBlok() {
|
|
@@ -734,7 +725,7 @@ var T = () => {
|
|
|
734
725
|
}
|
|
735
726
|
static isRangeAtBlok(e) {
|
|
736
727
|
if (!e) return;
|
|
737
|
-
let t = e.startContainer && e.startContainer.nodeType === Node.TEXT_NODE ? e.startContainer.parentNode : e.startContainer, n = t && t instanceof Element ? t.closest(
|
|
728
|
+
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;
|
|
738
729
|
return n ? n.nodeType === Node.ELEMENT_NODE : !1;
|
|
739
730
|
}
|
|
740
731
|
static getIsSelectionExists() {
|
|
@@ -757,8 +748,8 @@ var T = () => {
|
|
|
757
748
|
width: 0,
|
|
758
749
|
height: 0
|
|
759
750
|
}, t = window.getSelection();
|
|
760
|
-
if (!t) return
|
|
761
|
-
if (t.rangeCount === null || Number.isNaN(t.rangeCount)) return
|
|
751
|
+
if (!t) return p("Method window.getSelection returned null", "warn"), e;
|
|
752
|
+
if (t.rangeCount === null || Number.isNaN(t.rangeCount)) return p("Method SelectionUtils.rangeCount is not supported", "warn"), e;
|
|
762
753
|
if (t.rangeCount === 0) return e;
|
|
763
754
|
let n = t.getRangeAt(0).cloneRange(), r = n.getBoundingClientRect();
|
|
764
755
|
if (r.x === 0 && r.y === 0) {
|
|
@@ -774,13 +765,13 @@ var T = () => {
|
|
|
774
765
|
let t = window.getSelection();
|
|
775
766
|
return (e = t == null ? void 0 : t.toString()) == null ? "" : e;
|
|
776
767
|
}
|
|
777
|
-
},
|
|
768
|
+
}, Ue = class {
|
|
778
769
|
static setCursor(e, t = 0) {
|
|
779
|
-
let n = document.createRange(), r = window.getSelection(), i =
|
|
780
|
-
return i && !
|
|
770
|
+
let n = document.createRange(), r = window.getSelection(), i = E.isNativeInput(e);
|
|
771
|
+
return i && !E.canSetCaret(e) ? e.getBoundingClientRect() : i ? (e.focus(), e.selectionStart = t, e.selectionEnd = t, e.getBoundingClientRect()) : (n.setStart(e, t), n.setEnd(e, t), r ? (r.removeAllRanges(), r.addRange(n), E.isContentEditable(e) && document.activeElement !== e && e.focus(), n.getBoundingClientRect()) : e.getBoundingClientRect());
|
|
781
772
|
}
|
|
782
773
|
static isRangeInsideContainer(e) {
|
|
783
|
-
let t =
|
|
774
|
+
let t = A.getRange();
|
|
784
775
|
return t === null ? !1 : e.contains(t.startContainer);
|
|
785
776
|
}
|
|
786
777
|
static collapseToEnd() {
|
|
@@ -789,7 +780,7 @@ var T = () => {
|
|
|
789
780
|
let t = document.createRange();
|
|
790
781
|
t.selectNodeContents(e.focusNode), t.collapse(!1), e.removeAllRanges(), e.addRange(t);
|
|
791
782
|
}
|
|
792
|
-
},
|
|
783
|
+
}, We, j = class {
|
|
793
784
|
static applyBoxShadowToWrapper(e) {
|
|
794
785
|
let t = e.parentElement;
|
|
795
786
|
if (!t) return;
|
|
@@ -853,10 +844,10 @@ var T = () => {
|
|
|
853
844
|
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(", ");
|
|
854
845
|
}
|
|
855
846
|
};
|
|
856
|
-
|
|
847
|
+
We = j, We.BG_COLOR = "rgba(0, 0, 0, 0.08)";
|
|
857
848
|
//#endregion
|
|
858
849
|
//#region src/components/selection/fake-background/text-nodes.ts
|
|
859
|
-
var
|
|
850
|
+
var Ge = class {
|
|
860
851
|
static collectTextNodes(e) {
|
|
861
852
|
let t = [], { commonAncestorContainer: n } = e;
|
|
862
853
|
if (n.nodeType === Node.TEXT_NODE) return t.push(n), t;
|
|
@@ -887,10 +878,10 @@ var Xe = class {
|
|
|
887
878
|
];
|
|
888
879
|
return n.slice(0, -1).map((t, r) => e.substring(t, n[r + 1])).filter((e) => e.length > 0);
|
|
889
880
|
}
|
|
890
|
-
},
|
|
881
|
+
}, M = class {
|
|
891
882
|
static wrapRangeWithHighlight(e) {
|
|
892
883
|
if (e.collapsed) return null;
|
|
893
|
-
let t =
|
|
884
|
+
let t = E.make("span");
|
|
894
885
|
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";
|
|
895
886
|
let n = e.extractContents();
|
|
896
887
|
return n.childNodes.length === 0 ? null : (t.appendChild(n), e.insertNode(t), t);
|
|
@@ -904,17 +895,17 @@ var Xe = class {
|
|
|
904
895
|
}
|
|
905
896
|
static splitMultiLineWrapper(e) {
|
|
906
897
|
let t = e.getClientRects();
|
|
907
|
-
if (t.length <= 1) return
|
|
898
|
+
if (t.length <= 1) return j.applyBoxShadowToWrapper(e), [e];
|
|
908
899
|
let n = e.textContent || "", r = e.parentNode;
|
|
909
|
-
if (!r || !n) return
|
|
900
|
+
if (!r || !n) return j.applyBoxShadowToWrapper(e), [e];
|
|
910
901
|
let i = [], a = e.firstChild;
|
|
911
|
-
if (!a || a.nodeType !== Node.TEXT_NODE) return
|
|
912
|
-
let o =
|
|
913
|
-
if (o.length === 0) return
|
|
914
|
-
let s =
|
|
902
|
+
if (!a || a.nodeType !== Node.TEXT_NODE) return j.applyBoxShadowToWrapper(e), [e];
|
|
903
|
+
let o = Ge.findLineBreakPositions(a, t.length);
|
|
904
|
+
if (o.length === 0) return j.applyBoxShadowToWrapper(e), [e];
|
|
905
|
+
let s = Ge.splitTextAtPositions(n, o), c = document.createDocumentFragment();
|
|
915
906
|
return s.forEach((e) => {
|
|
916
907
|
if (e.length === 0) return;
|
|
917
|
-
let t =
|
|
908
|
+
let t = E.make("span");
|
|
918
909
|
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);
|
|
919
910
|
}), r.replaceChild(c, e), i;
|
|
920
911
|
}
|
|
@@ -925,7 +916,7 @@ var Xe = class {
|
|
|
925
916
|
t.removeChild(e);
|
|
926
917
|
}
|
|
927
918
|
}
|
|
928
|
-
},
|
|
919
|
+
}, Ke = class {
|
|
929
920
|
constructor(e) {
|
|
930
921
|
this.selectionUtils = e;
|
|
931
922
|
}
|
|
@@ -935,7 +926,7 @@ var Xe = class {
|
|
|
935
926
|
if (!e || e.rangeCount === 0) return;
|
|
936
927
|
let t = e.getRangeAt(0);
|
|
937
928
|
if (t.collapsed) return;
|
|
938
|
-
let n =
|
|
929
|
+
let n = Ge.collectTextNodes(t);
|
|
939
930
|
if (n.length === 0) return;
|
|
940
931
|
let r = t.startContainer, i = t.startOffset, a = t.endContainer, o = t.endOffset, s = [];
|
|
941
932
|
if (n.forEach((e) => {
|
|
@@ -943,11 +934,11 @@ var Xe = class {
|
|
|
943
934
|
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;
|
|
944
935
|
if (d === p) return;
|
|
945
936
|
c.setStart(e, d), c.setEnd(e, p);
|
|
946
|
-
let m =
|
|
937
|
+
let m = M.wrapRangeWithHighlight(c);
|
|
947
938
|
m && s.push(m);
|
|
948
939
|
}), s.length === 0) return;
|
|
949
|
-
let c =
|
|
950
|
-
|
|
940
|
+
let c = M.postProcessHighlightWrappers(s);
|
|
941
|
+
j.applyLineHeightExtensions(c);
|
|
951
942
|
let l = document.createRange();
|
|
952
943
|
l.setStartBefore(c[0]), l.setEndAfter(c[c.length - 1]), this.selectionUtils.savedSelectionRange = l.cloneRange();
|
|
953
944
|
let u = window.getSelection();
|
|
@@ -958,7 +949,7 @@ var Xe = class {
|
|
|
958
949
|
}
|
|
959
950
|
removeOrphanedFakeBackgroundElements() {
|
|
960
951
|
document.querySelectorAll("[data-blok-fake-background=\"true\"]").forEach((e) => {
|
|
961
|
-
|
|
952
|
+
M.unwrapFakeBackground(e);
|
|
962
953
|
});
|
|
963
954
|
}
|
|
964
955
|
clearFakeBackground() {
|
|
@@ -969,28 +960,28 @@ var Xe = class {
|
|
|
969
960
|
if (e.length === 0) return;
|
|
970
961
|
let t = e[0], n = e[e.length - 1], r = t.firstChild, i = n.lastChild;
|
|
971
962
|
if (e.forEach((e) => {
|
|
972
|
-
|
|
963
|
+
M.unwrapFakeBackground(e);
|
|
973
964
|
}), r && i) {
|
|
974
965
|
var a;
|
|
975
966
|
let e = document.createRange();
|
|
976
967
|
e.setStart(r, 0), e.setEnd(i, ((a = i.textContent) == null ? void 0 : a.length) || 0), this.selectionUtils.savedSelectionRange = e;
|
|
977
968
|
}
|
|
978
969
|
}
|
|
979
|
-
},
|
|
970
|
+
}, qe = class {
|
|
980
971
|
static addFakeCursor() {
|
|
981
|
-
let e =
|
|
972
|
+
let e = A.getRange();
|
|
982
973
|
if (e === null) return;
|
|
983
|
-
let t =
|
|
984
|
-
t.setAttribute(
|
|
974
|
+
let t = E.make("span");
|
|
975
|
+
t.setAttribute(a.fakeCursor, ""), t.setAttribute("data-blok-mutation-free", "true"), e.collapse(), e.insertNode(t);
|
|
985
976
|
}
|
|
986
977
|
static isFakeCursorInsideContainer(e) {
|
|
987
|
-
return
|
|
978
|
+
return E.find(e, o(a.fakeCursor)) !== null;
|
|
988
979
|
}
|
|
989
980
|
static removeFakeCursor(e = document.body) {
|
|
990
|
-
let t =
|
|
981
|
+
let t = E.find(e, o(a.fakeCursor));
|
|
991
982
|
t && t.remove();
|
|
992
983
|
}
|
|
993
|
-
},
|
|
984
|
+
}, Je = class {
|
|
994
985
|
static findParentTag(e, t, n = 10) {
|
|
995
986
|
let r = window.getSelection();
|
|
996
987
|
if (!r || !r.anchorNode || !r.focusNode) return null;
|
|
@@ -1018,63 +1009,63 @@ var Xe = class {
|
|
|
1018
1009
|
let n = document.createRange();
|
|
1019
1010
|
n.selectNodeContents(e), t.addRange(n);
|
|
1020
1011
|
}
|
|
1021
|
-
},
|
|
1012
|
+
}, Ye = class {
|
|
1022
1013
|
constructor() {
|
|
1023
|
-
this.instance = null, this.selection = null, this.savedSelectionRange = null, this.isFakeBackgroundEnabled = !1, this.fakeBackgroundManager = new
|
|
1014
|
+
this.instance = null, this.selection = null, this.savedSelectionRange = null, this.isFakeBackgroundEnabled = !1, this.fakeBackgroundManager = new Ke(this);
|
|
1024
1015
|
}
|
|
1025
1016
|
static get anchorNode() {
|
|
1026
|
-
return
|
|
1017
|
+
return A.getAnchorNode();
|
|
1027
1018
|
}
|
|
1028
1019
|
static get anchorElement() {
|
|
1029
|
-
return
|
|
1020
|
+
return A.getAnchorElement();
|
|
1030
1021
|
}
|
|
1031
1022
|
static get anchorOffset() {
|
|
1032
|
-
return
|
|
1023
|
+
return A.getAnchorOffset();
|
|
1033
1024
|
}
|
|
1034
1025
|
static get isCollapsed() {
|
|
1035
|
-
return
|
|
1026
|
+
return A.getIsCollapsed();
|
|
1036
1027
|
}
|
|
1037
1028
|
static get isAtBlok() {
|
|
1038
|
-
return
|
|
1029
|
+
return A.getIsAtBlok();
|
|
1039
1030
|
}
|
|
1040
1031
|
static isSelectionAtBlok(e) {
|
|
1041
|
-
return
|
|
1032
|
+
return A.isSelectionAtBlok(e);
|
|
1042
1033
|
}
|
|
1043
1034
|
static isRangeAtBlok(e) {
|
|
1044
|
-
return
|
|
1035
|
+
return A.isRangeAtBlok(e);
|
|
1045
1036
|
}
|
|
1046
1037
|
static get isSelectionExists() {
|
|
1047
|
-
return
|
|
1038
|
+
return A.getIsSelectionExists();
|
|
1048
1039
|
}
|
|
1049
1040
|
static get range() {
|
|
1050
|
-
return
|
|
1041
|
+
return A.getRange();
|
|
1051
1042
|
}
|
|
1052
1043
|
static getRangeFromSelection(e) {
|
|
1053
|
-
return
|
|
1044
|
+
return A.getRangeFromSelection(e);
|
|
1054
1045
|
}
|
|
1055
1046
|
static get rect() {
|
|
1056
|
-
return
|
|
1047
|
+
return A.getRect();
|
|
1057
1048
|
}
|
|
1058
1049
|
static get text() {
|
|
1059
|
-
return
|
|
1050
|
+
return A.getText();
|
|
1060
1051
|
}
|
|
1061
1052
|
static get() {
|
|
1062
|
-
return
|
|
1053
|
+
return A.get();
|
|
1063
1054
|
}
|
|
1064
1055
|
static setCursor(e, t = 0) {
|
|
1065
|
-
return
|
|
1056
|
+
return Ue.setCursor(e, t);
|
|
1066
1057
|
}
|
|
1067
1058
|
static isRangeInsideContainer(e) {
|
|
1068
|
-
return
|
|
1059
|
+
return Ue.isRangeInsideContainer(e);
|
|
1069
1060
|
}
|
|
1070
1061
|
static addFakeCursor() {
|
|
1071
|
-
|
|
1062
|
+
qe.addFakeCursor();
|
|
1072
1063
|
}
|
|
1073
1064
|
static isFakeCursorInsideContainer(e) {
|
|
1074
|
-
return
|
|
1065
|
+
return qe.isFakeCursorInsideContainer(e);
|
|
1075
1066
|
}
|
|
1076
1067
|
static removeFakeCursor(e = document.body) {
|
|
1077
|
-
|
|
1068
|
+
qe.removeFakeCursor(e);
|
|
1078
1069
|
}
|
|
1079
1070
|
removeFakeBackground() {
|
|
1080
1071
|
this.fakeBackgroundManager.removeFakeBackground();
|
|
@@ -1089,7 +1080,7 @@ var Xe = class {
|
|
|
1089
1080
|
this.fakeBackgroundManager.setFakeBackground();
|
|
1090
1081
|
}
|
|
1091
1082
|
save() {
|
|
1092
|
-
this.savedSelectionRange =
|
|
1083
|
+
this.savedSelectionRange = A.getRange();
|
|
1093
1084
|
}
|
|
1094
1085
|
restore() {
|
|
1095
1086
|
if (!this.savedSelectionRange) return;
|
|
@@ -1100,17 +1091,17 @@ var Xe = class {
|
|
|
1100
1091
|
this.savedSelectionRange = null;
|
|
1101
1092
|
}
|
|
1102
1093
|
collapseToEnd() {
|
|
1103
|
-
|
|
1094
|
+
Ue.collapseToEnd();
|
|
1104
1095
|
}
|
|
1105
1096
|
findParentTag(e, t, n = 10) {
|
|
1106
|
-
return
|
|
1097
|
+
return Je.findParentTag(e, t, n);
|
|
1107
1098
|
}
|
|
1108
1099
|
expandToTag(e) {
|
|
1109
|
-
|
|
1100
|
+
Je.expandToTag(e);
|
|
1110
1101
|
}
|
|
1111
|
-
},
|
|
1102
|
+
}, N = /* @__PURE__ */ function(e) {
|
|
1112
1103
|
return e.Default = "default", e.Separator = "separator", e.Html = "html", e;
|
|
1113
|
-
}({}),
|
|
1104
|
+
}({}), Xe = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
1114
1105
|
(function(n, r) {
|
|
1115
1106
|
typeof define == "function" && define.amd ? define("html-janitor", r) : typeof e == "object" ? t.exports = r() : n.HTMLJanitor = r();
|
|
1116
1107
|
})(e, function() {
|
|
@@ -1198,129 +1189,129 @@ var Xe = class {
|
|
|
1198
1189
|
}
|
|
1199
1190
|
return e;
|
|
1200
1191
|
});
|
|
1201
|
-
})))()),
|
|
1202
|
-
let i =
|
|
1203
|
-
return
|
|
1204
|
-
}),
|
|
1192
|
+
})))()), Ze = /^\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)/i, Qe = /\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, $e = (e, t, r = {}) => e.map((e) => {
|
|
1193
|
+
let i = h(t) ? t(e.tool) : t, a = i == null ? {} : i;
|
|
1194
|
+
return g(a) && b(a) && b(r) ? e : n(n({}, e), {}, { data: et(e.data, a, r) });
|
|
1195
|
+
}), P = (e, t = {}) => new Xe.default({ tags: t }).clean(e), et = (e, t, n) => Array.isArray(e) ? tt(e, t, n) : g(e) ? nt(e, t, n) : _(e) ? rt(e, t, n) : e, tt = (e, t, n) => e.map((e) => et(e, t, n)), nt = (e, t, n) => {
|
|
1205
1196
|
let r = {}, i = e;
|
|
1206
1197
|
for (let a in e) {
|
|
1207
1198
|
if (!Object.prototype.hasOwnProperty.call(e, a)) continue;
|
|
1208
|
-
let o = i[a], s =
|
|
1209
|
-
r[a] =
|
|
1199
|
+
let o = i[a], s = g(t) ? t : void 0, c = s == null ? void 0 : s[a];
|
|
1200
|
+
r[a] = et(o, c !== void 0 && it(c) ? c : t, n);
|
|
1210
1201
|
}
|
|
1211
1202
|
return r;
|
|
1212
|
-
},
|
|
1213
|
-
let r =
|
|
1214
|
-
return r ?
|
|
1215
|
-
},
|
|
1203
|
+
}, rt = (e, t, n) => {
|
|
1204
|
+
let r = pt(t, n);
|
|
1205
|
+
return r ? ot(ht(P(e, r), r)) : b(n) ? ot(e) : ot(ht(P(e, n), n));
|
|
1206
|
+
}, it = (e) => g(e) || v(e) || h(e), at = (e) => e ? Ze.test(e) : !1, ot = (e) => {
|
|
1216
1207
|
if (!e || e.indexOf("<") === -1) return e;
|
|
1217
1208
|
if (typeof document < "u") {
|
|
1218
1209
|
let t = document.createElement("template");
|
|
1219
1210
|
return t.innerHTML = e, t.content.querySelectorAll("[href],[src]").forEach((e) => {
|
|
1220
1211
|
["href", "src"].forEach((t) => {
|
|
1221
|
-
|
|
1212
|
+
at(e.getAttribute(t)) && e.removeAttribute(t);
|
|
1222
1213
|
});
|
|
1223
1214
|
}), t.innerHTML;
|
|
1224
1215
|
}
|
|
1225
|
-
return e.replace(
|
|
1226
|
-
},
|
|
1227
|
-
if (
|
|
1216
|
+
return e.replace(Qe, "");
|
|
1217
|
+
}, st = (e) => {
|
|
1218
|
+
if (b(e)) return {};
|
|
1228
1219
|
let t = {};
|
|
1229
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
1220
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = F(e[n]));
|
|
1230
1221
|
return t;
|
|
1231
|
-
},
|
|
1222
|
+
}, ct = (e) => function(t) {
|
|
1232
1223
|
let n = e.call(this, t);
|
|
1233
1224
|
return n == null ? {} : n;
|
|
1234
|
-
},
|
|
1225
|
+
}, lt = new Set([
|
|
1235
1226
|
"class",
|
|
1236
1227
|
"id",
|
|
1237
1228
|
"title",
|
|
1238
1229
|
"role",
|
|
1239
1230
|
"dir",
|
|
1240
1231
|
"lang"
|
|
1241
|
-
]),
|
|
1232
|
+
]), ut = (e) => {
|
|
1242
1233
|
let t = e.toLowerCase();
|
|
1243
|
-
return t.startsWith("data-") || t.startsWith("aria-") ||
|
|
1244
|
-
},
|
|
1234
|
+
return t.startsWith("data-") || t.startsWith("aria-") || lt.has(t);
|
|
1235
|
+
}, dt = (e) => {
|
|
1245
1236
|
let t = {};
|
|
1246
1237
|
return Array.from(e.attributes).forEach((e) => {
|
|
1247
|
-
|
|
1238
|
+
ut(e.name) && (t[e.name] = !0);
|
|
1248
1239
|
}), t;
|
|
1249
|
-
},
|
|
1250
|
-
if (
|
|
1240
|
+
}, F = (e) => e === !0 ? ct(dt) : e === !1 ? !1 : h(e) ? ct(e) : _(e) ? e : g(e) ? w({}, e) : e, ft = (e, t) => {
|
|
1241
|
+
if (b(e)) return st(t);
|
|
1251
1242
|
let n = {};
|
|
1252
1243
|
for (let r in e) {
|
|
1253
1244
|
if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
|
|
1254
1245
|
let i = e[r], a = t ? t[r] : void 0;
|
|
1255
|
-
if (
|
|
1256
|
-
n[r] =
|
|
1246
|
+
if (h(a)) {
|
|
1247
|
+
n[r] = F(a);
|
|
1257
1248
|
continue;
|
|
1258
1249
|
}
|
|
1259
|
-
if (
|
|
1260
|
-
n[r] =
|
|
1250
|
+
if (h(i)) {
|
|
1251
|
+
n[r] = F(i);
|
|
1261
1252
|
continue;
|
|
1262
1253
|
}
|
|
1263
|
-
if (
|
|
1264
|
-
n[r] =
|
|
1254
|
+
if (g(i) && g(a)) {
|
|
1255
|
+
n[r] = w({}, a, i);
|
|
1265
1256
|
continue;
|
|
1266
1257
|
}
|
|
1267
1258
|
if (a !== void 0) {
|
|
1268
|
-
n[r] =
|
|
1259
|
+
n[r] = F(a);
|
|
1269
1260
|
continue;
|
|
1270
1261
|
}
|
|
1271
|
-
n[r] =
|
|
1262
|
+
n[r] = F(i);
|
|
1272
1263
|
}
|
|
1273
1264
|
if (!t) return n;
|
|
1274
|
-
for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (Object.prototype.hasOwnProperty.call(n, e) || (n[e] =
|
|
1265
|
+
for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (Object.prototype.hasOwnProperty.call(n, e) || (n[e] = F(t[e])));
|
|
1275
1266
|
return n;
|
|
1276
|
-
},
|
|
1277
|
-
if (
|
|
1278
|
-
let n =
|
|
1267
|
+
}, pt = (e, t) => g(e) && !h(e) ? ft(t, e) : e === !1 ? {} : b(t) ? null : st(t), mt = (e, ...t) => {
|
|
1268
|
+
if (b(e)) return Object.assign({}, ...t);
|
|
1269
|
+
let n = st(e);
|
|
1279
1270
|
return t.forEach((e) => {
|
|
1280
1271
|
if (e) for (let t in e) {
|
|
1281
1272
|
if (!Object.prototype.hasOwnProperty.call(e, t)) continue;
|
|
1282
1273
|
let r = e[t];
|
|
1283
1274
|
if (!Object.prototype.hasOwnProperty.call(n, t)) continue;
|
|
1284
1275
|
let i = n[t];
|
|
1285
|
-
if (
|
|
1276
|
+
if (h(r)) {
|
|
1286
1277
|
n[t] = r;
|
|
1287
1278
|
continue;
|
|
1288
1279
|
}
|
|
1289
|
-
if (!(r === !0 &&
|
|
1280
|
+
if (!(r === !0 && h(i))) {
|
|
1290
1281
|
if (r === !0) {
|
|
1291
|
-
n[t] =
|
|
1282
|
+
n[t] = g(i) && !h(i) ? w({}, i) : F(r);
|
|
1292
1283
|
continue;
|
|
1293
1284
|
}
|
|
1294
|
-
if (
|
|
1295
|
-
n[t] =
|
|
1285
|
+
if (g(r) && g(i)) {
|
|
1286
|
+
n[t] = w({}, i, r);
|
|
1296
1287
|
continue;
|
|
1297
1288
|
}
|
|
1298
|
-
n[t] =
|
|
1289
|
+
n[t] = F(r);
|
|
1299
1290
|
}
|
|
1300
1291
|
}
|
|
1301
1292
|
}), n;
|
|
1302
|
-
},
|
|
1293
|
+
}, ht = (e, t) => {
|
|
1303
1294
|
if (typeof document > "u" || !e || e.indexOf("<") === -1) return e;
|
|
1304
|
-
let n = Object.entries(t).filter(([, e]) =>
|
|
1295
|
+
let n = Object.entries(t).filter(([, e]) => h(e));
|
|
1305
1296
|
if (n.length === 0) return e;
|
|
1306
1297
|
let r = document.createElement("template");
|
|
1307
1298
|
return r.innerHTML = e, n.forEach(([e, t]) => {
|
|
1308
1299
|
r.content.querySelectorAll(e).forEach((e) => {
|
|
1309
1300
|
let n = t(e);
|
|
1310
|
-
if (!(
|
|
1301
|
+
if (!(v(n) || h(n) || n == null)) for (let [t, r] of Object.entries(n)) {
|
|
1311
1302
|
if (r === !1) {
|
|
1312
1303
|
e.removeAttribute(t);
|
|
1313
1304
|
continue;
|
|
1314
1305
|
}
|
|
1315
|
-
r !== !0 &&
|
|
1306
|
+
r !== !0 && _(r) && e.setAttribute(t, r);
|
|
1316
1307
|
}
|
|
1317
1308
|
});
|
|
1318
1309
|
}), r.innerHTML;
|
|
1319
|
-
},
|
|
1310
|
+
}, gt, _t = 10, vt = "tooltip", yt = "aria-hidden", bt = "false", xt = "true", St = "visibility", Ct = "visible", wt = "hidden", Tt = class e {
|
|
1320
1311
|
get CSS() {
|
|
1321
1312
|
return {
|
|
1322
|
-
tooltip:
|
|
1323
|
-
tooltipContent:
|
|
1313
|
+
tooltip: i("absolute z-overlay top-0 left-0", "bg-tooltip-bg opacity-0", "select-none pointer-events-none", "rounded-lg shadow-tooltip", "before:content-[''] before:absolute before:inset-0 before:bg-tooltip-bg before:-z-10 before:rounded-lg", "mobile:hidden").split(" "),
|
|
1314
|
+
tooltipContent: i("px-2.5 py-1.5", "text-tooltip-font text-xs text-center", "tracking-[0.02em] leading-[1em]").split(" "),
|
|
1324
1315
|
tooltipShown: ["opacity-100"]
|
|
1325
1316
|
};
|
|
1326
1317
|
}
|
|
@@ -1331,7 +1322,7 @@ var Xe = class {
|
|
|
1331
1322
|
this.nodes = {
|
|
1332
1323
|
wrapper: null,
|
|
1333
1324
|
content: null
|
|
1334
|
-
}, this.showed = !1, this.offsetTop =
|
|
1325
|
+
}, this.showed = !1, this.offsetTop = _t, this.offsetLeft = _t, this.offsetRight = _t, this.showingTimeout = null, this.ariaObserver = null, this.handleWindowScroll = () => {
|
|
1335
1326
|
this.showed && this.hide();
|
|
1336
1327
|
}, this.prepare(), window.addEventListener("scroll", this.handleWindowScroll, { passive: !0 });
|
|
1337
1328
|
}
|
|
@@ -1402,12 +1393,12 @@ var Xe = class {
|
|
|
1402
1393
|
(t = this.ariaObserver) == null || t.disconnect(), this.ariaObserver = null, this.nodes.wrapper && this.nodes.wrapper.remove(), window.removeEventListener("scroll", this.handleWindowScroll), e.instance = null;
|
|
1403
1394
|
}
|
|
1404
1395
|
prepare() {
|
|
1405
|
-
this.nodes.wrapper = this.make("div", this.CSS.tooltip), this.nodes.wrapper.setAttribute(
|
|
1396
|
+
this.nodes.wrapper = this.make("div", this.CSS.tooltip), this.nodes.wrapper.setAttribute(a.interface, Be), 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());
|
|
1406
1397
|
}
|
|
1407
1398
|
updateTooltipVisibility() {
|
|
1408
1399
|
if (!this.nodes.wrapper) return;
|
|
1409
1400
|
let e = Array.isArray(this.CSS.tooltipShown) ? this.CSS.tooltipShown[0] : this.CSS.tooltipShown, t = this.nodes.wrapper.classList.contains(e);
|
|
1410
|
-
this.nodes.wrapper.style.setProperty(
|
|
1401
|
+
this.nodes.wrapper.style.setProperty(St, t ? Ct : wt, t ? "" : "important"), this.nodes.wrapper.setAttribute(yt, t ? bt : xt), this.nodes.wrapper.setAttribute("data-blok-shown", t ? "true" : "false");
|
|
1411
1402
|
}
|
|
1412
1403
|
watchTooltipVisibility() {
|
|
1413
1404
|
var e;
|
|
@@ -1419,7 +1410,7 @@ var Xe = class {
|
|
|
1419
1410
|
}));
|
|
1420
1411
|
}
|
|
1421
1412
|
ensureTooltipAttributes() {
|
|
1422
|
-
this.nodes.wrapper && ((!this.nodes.wrapper.hasAttribute(
|
|
1413
|
+
this.nodes.wrapper && ((!this.nodes.wrapper.hasAttribute(a.interface) || this.nodes.wrapper.getAttribute(a.interface) !== "tooltip") && this.nodes.wrapper.setAttribute(a.interface, Be), this.nodes.wrapper.setAttribute("role", vt), this.watchTooltipVisibility());
|
|
1423
1414
|
}
|
|
1424
1415
|
placeBottom(e, t) {
|
|
1425
1416
|
var n;
|
|
@@ -1461,16 +1452,16 @@ var Xe = class {
|
|
|
1461
1452
|
Array.isArray(t) ? t.forEach((t) => e.appendChild(t)) : e.appendChild(t);
|
|
1462
1453
|
}
|
|
1463
1454
|
};
|
|
1464
|
-
|
|
1465
|
-
var
|
|
1466
|
-
|
|
1467
|
-
},
|
|
1468
|
-
|
|
1469
|
-
},
|
|
1470
|
-
|
|
1471
|
-
},
|
|
1472
|
-
|
|
1473
|
-
},
|
|
1455
|
+
gt = Tt, gt.instance = null;
|
|
1456
|
+
var I = () => Tt.getInstance(), Et = (e, t, n) => {
|
|
1457
|
+
I().show(e, t, n == null ? {} : n);
|
|
1458
|
+
}, Dt = () => {
|
|
1459
|
+
I().hide();
|
|
1460
|
+
}, Ot = (e, t, n) => {
|
|
1461
|
+
I().onHover(e, t, n == null ? {} : n);
|
|
1462
|
+
}, kt = () => {
|
|
1463
|
+
I().destroy();
|
|
1464
|
+
}, At = () => {
|
|
1474
1465
|
var e, t;
|
|
1475
1466
|
let n = window.getSelection();
|
|
1476
1467
|
if (n === null) return [null, 0];
|
|
@@ -1481,7 +1472,7 @@ var R = () => At.getInstance(), jt = (e, t, n) => {
|
|
|
1481
1472
|
if (a !== void 0) return [a, 0];
|
|
1482
1473
|
let o = (e = r.childNodes[i - 1]) == null ? null : e, s = (t = o == null ? void 0 : o.textContent) == null ? null : t;
|
|
1483
1474
|
return [o, s === null ? 0 : s.length];
|
|
1484
|
-
},
|
|
1475
|
+
}, jt = (e) => {
|
|
1485
1476
|
var t;
|
|
1486
1477
|
let n = window.getSelection();
|
|
1487
1478
|
if (n === null || n.rangeCount === 0) return 0;
|
|
@@ -1489,7 +1480,7 @@ var R = () => At.getInstance(), jt = (e, t, n) => {
|
|
|
1489
1480
|
if (i == null) return 0;
|
|
1490
1481
|
let a = document.createRange();
|
|
1491
1482
|
return a.selectNodeContents(i), a.setEnd(r.startContainer, r.startOffset), a.toString().length;
|
|
1492
|
-
},
|
|
1483
|
+
}, Mt = (e, t, n, r) => {
|
|
1493
1484
|
let i = document.createRange();
|
|
1494
1485
|
r === "left" ? (i.selectNodeContents(e), i.setEnd(t, n)) : (i.selectNodeContents(e), i.setStart(t, n));
|
|
1495
1486
|
let a = i.cloneContents(), o = document.createElement("div");
|
|
@@ -1500,24 +1491,24 @@ var R = () => At.getInstance(), jt = (e, t, n) => {
|
|
|
1500
1491
|
if (c || l) return !1;
|
|
1501
1492
|
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);
|
|
1502
1493
|
let u = o.getBoundingClientRect().width;
|
|
1503
|
-
return document.body.removeChild(o), !(u > 0 || !
|
|
1504
|
-
},
|
|
1494
|
+
return document.body.removeChild(o), !(u > 0 || !be(s) || window.getComputedStyle(e).whiteSpace.startsWith("pre") && s.length > 0);
|
|
1495
|
+
}, Nt = (e) => {
|
|
1505
1496
|
var t;
|
|
1506
|
-
let n =
|
|
1507
|
-
if (n === null ||
|
|
1508
|
-
if (
|
|
1509
|
-
if (
|
|
1510
|
-
let [r, i] =
|
|
1497
|
+
let n = E.getDeepestNode(e);
|
|
1498
|
+
if (n === null || E.isEmpty(e)) return !0;
|
|
1499
|
+
if (E.isNativeInput(n)) return n.selectionEnd === 0;
|
|
1500
|
+
if (E.isEmpty(e)) return !0;
|
|
1501
|
+
let [r, i] = At();
|
|
1511
1502
|
if (r === null) return !1;
|
|
1512
1503
|
let a = window.getSelection(), o = (t = a == null ? void 0 : a.focusNode) == null ? null : t;
|
|
1513
|
-
return o !== null && o !== e && !(o.nodeType === Node.TEXT_NODE && o.parentNode === e) ? !1 :
|
|
1514
|
-
},
|
|
1515
|
-
let t =
|
|
1504
|
+
return o !== null && o !== e && !(o.nodeType === Node.TEXT_NODE && o.parentNode === e) ? !1 : Mt(e, r, i, "left");
|
|
1505
|
+
}, Pt = (e) => {
|
|
1506
|
+
let t = E.getDeepestNode(e, !0);
|
|
1516
1507
|
if (t === null) return !0;
|
|
1517
|
-
if (
|
|
1518
|
-
let [n, r] =
|
|
1519
|
-
return n === null ? !1 :
|
|
1520
|
-
},
|
|
1508
|
+
if (E.isNativeInput(t)) return t.selectionEnd === t.value.length;
|
|
1509
|
+
let [n, r] = At();
|
|
1510
|
+
return n === null ? !1 : Mt(e, n, r, "right");
|
|
1511
|
+
}, Ft, L = class e {
|
|
1521
1512
|
constructor(e, t) {
|
|
1522
1513
|
this.cursor = -1, this.items = [], this.items = e == null ? [] : e, this.focusedCssClass = t;
|
|
1523
1514
|
}
|
|
@@ -1547,16 +1538,16 @@ var R = () => At.getInstance(), jt = (e, t, n) => {
|
|
|
1547
1538
|
let n = t === e.directions.RIGHT ? -1 : 0, r = this.cursor === -1 ? n : this.cursor;
|
|
1548
1539
|
r !== -1 && (this.items[r].classList.remove(this.focusedCssClass), this.items[r].removeAttribute("data-blok-focused"));
|
|
1549
1540
|
let i = t === e.directions.RIGHT ? (r + 1) % this.items.length : (this.items.length + r - 1) % this.items.length;
|
|
1550
|
-
return
|
|
1541
|
+
return E.canSetCaret(this.items[i]) && x(() => Ye.setCursor(this.items[i]), 50)(), this.items[i].classList.add(this.focusedCssClass), this.items[i].setAttribute("data-blok-focused", "true"), i;
|
|
1551
1542
|
}
|
|
1552
1543
|
};
|
|
1553
|
-
|
|
1544
|
+
Ft = L, Ft.directions = {
|
|
1554
1545
|
RIGHT: "right",
|
|
1555
1546
|
LEFT: "left"
|
|
1556
1547
|
};
|
|
1557
1548
|
//#endregion
|
|
1558
1549
|
//#region src/components/flipper.ts
|
|
1559
|
-
var
|
|
1550
|
+
var It = class e {
|
|
1560
1551
|
get isActivated() {
|
|
1561
1552
|
return this.activated;
|
|
1562
1553
|
}
|
|
@@ -1566,39 +1557,39 @@ var Vt = class e {
|
|
|
1566
1557
|
var n;
|
|
1567
1558
|
let r = t.target;
|
|
1568
1559
|
if (this.shouldSkipTarget(r, t)) return;
|
|
1569
|
-
let i = this.getKeyCode(t), a = i ===
|
|
1570
|
-
if (!(t.shiftKey && a) && this.isEventReadyForHandling(t) && !(i ===
|
|
1571
|
-
case
|
|
1560
|
+
let i = this.getKeyCode(t), a = i === s.LEFT || i === s.RIGHT || i === s.UP || i === s.DOWN;
|
|
1561
|
+
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) {
|
|
1562
|
+
case s.TAB:
|
|
1572
1563
|
this.handleTabPress(t);
|
|
1573
1564
|
break;
|
|
1574
|
-
case
|
|
1565
|
+
case s.LEFT:
|
|
1575
1566
|
this.onArrowLeftCallback && this.onArrowLeftCallback();
|
|
1576
1567
|
break;
|
|
1577
|
-
case
|
|
1568
|
+
case s.UP:
|
|
1578
1569
|
this.flipLeft();
|
|
1579
1570
|
break;
|
|
1580
|
-
case
|
|
1571
|
+
case s.RIGHT:
|
|
1581
1572
|
var o;
|
|
1582
1573
|
(o = this.iterator) != null && o.currentItem && this.currentItemHasChildren() && this.handleEnterPress(t);
|
|
1583
1574
|
break;
|
|
1584
|
-
case
|
|
1575
|
+
case s.DOWN:
|
|
1585
1576
|
this.flipRight();
|
|
1586
1577
|
break;
|
|
1587
|
-
case
|
|
1578
|
+
case s.ENTER:
|
|
1588
1579
|
this.handleEnterPress(t);
|
|
1589
1580
|
break;
|
|
1590
1581
|
case null: break;
|
|
1591
1582
|
}
|
|
1592
|
-
}, this.iterator = new
|
|
1583
|
+
}, this.iterator = new L(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;
|
|
1593
1584
|
}
|
|
1594
1585
|
static get usedKeys() {
|
|
1595
1586
|
return [
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1587
|
+
s.TAB,
|
|
1588
|
+
s.LEFT,
|
|
1589
|
+
s.RIGHT,
|
|
1590
|
+
s.ENTER,
|
|
1591
|
+
s.UP,
|
|
1592
|
+
s.DOWN
|
|
1602
1593
|
];
|
|
1603
1594
|
}
|
|
1604
1595
|
activate(e, t) {
|
|
@@ -1659,12 +1650,12 @@ var Vt = class e {
|
|
|
1659
1650
|
getKeyCode(e) {
|
|
1660
1651
|
var t;
|
|
1661
1652
|
return (t = {
|
|
1662
|
-
Tab:
|
|
1663
|
-
Enter:
|
|
1664
|
-
ArrowLeft:
|
|
1665
|
-
ArrowRight:
|
|
1666
|
-
ArrowUp:
|
|
1667
|
-
ArrowDown:
|
|
1653
|
+
Tab: s.TAB,
|
|
1654
|
+
Enter: s.ENTER,
|
|
1655
|
+
ArrowLeft: s.LEFT,
|
|
1656
|
+
ArrowRight: s.RIGHT,
|
|
1657
|
+
ArrowUp: s.UP,
|
|
1658
|
+
ArrowDown: s.DOWN
|
|
1668
1659
|
}[e.key]) == null ? null : t;
|
|
1669
1660
|
}
|
|
1670
1661
|
isEventReadyForHandling(e) {
|
|
@@ -1678,16 +1669,16 @@ var Vt = class e {
|
|
|
1678
1669
|
return this.handleContentEditableTargets;
|
|
1679
1670
|
}
|
|
1680
1671
|
handleTabPress(e) {
|
|
1681
|
-
let t = e.shiftKey ?
|
|
1672
|
+
let t = e.shiftKey ? L.directions.LEFT : L.directions.RIGHT;
|
|
1682
1673
|
if (this.skipNextTabFocus) {
|
|
1683
1674
|
this.skipNextTabFocus = !1;
|
|
1684
1675
|
return;
|
|
1685
1676
|
}
|
|
1686
1677
|
switch (t) {
|
|
1687
|
-
case
|
|
1678
|
+
case L.directions.RIGHT:
|
|
1688
1679
|
this.flipRight();
|
|
1689
1680
|
break;
|
|
1690
|
-
case
|
|
1681
|
+
case L.directions.LEFT:
|
|
1691
1682
|
this.flipLeft();
|
|
1692
1683
|
break;
|
|
1693
1684
|
}
|
|
@@ -1697,7 +1688,7 @@ var Vt = class e {
|
|
|
1697
1688
|
}
|
|
1698
1689
|
handleEnterPress(e) {
|
|
1699
1690
|
var t, n;
|
|
1700
|
-
this.activated && ((t = this.iterator) != null && t.currentItem && (e.stopPropagation(), e.preventDefault(), this.iterator.currentItem.click()),
|
|
1691
|
+
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));
|
|
1701
1692
|
}
|
|
1702
1693
|
scrollElementIntoView(e) {
|
|
1703
1694
|
let t = e;
|
|
@@ -1716,7 +1707,7 @@ var Vt = class e {
|
|
|
1716
1707
|
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;
|
|
1717
1708
|
return n && !i || s || o;
|
|
1718
1709
|
}
|
|
1719
|
-
},
|
|
1710
|
+
}, Lt = [
|
|
1720
1711
|
{
|
|
1721
1712
|
name: "gray",
|
|
1722
1713
|
text: "#787774",
|
|
@@ -1762,7 +1753,7 @@ var Vt = class e {
|
|
|
1762
1753
|
text: "#d44c47",
|
|
1763
1754
|
bg: "#fdebec"
|
|
1764
1755
|
}
|
|
1765
|
-
],
|
|
1756
|
+
], Rt = [
|
|
1766
1757
|
{
|
|
1767
1758
|
name: "gray",
|
|
1768
1759
|
text: "#9b9b9b",
|
|
@@ -1809,12 +1800,12 @@ var Vt = class e {
|
|
|
1809
1800
|
bg: "#4e1a18"
|
|
1810
1801
|
}
|
|
1811
1802
|
];
|
|
1812
|
-
function
|
|
1803
|
+
function zt(e, t) {
|
|
1813
1804
|
return `var(--blok-color-${e}-${t})`;
|
|
1814
1805
|
}
|
|
1815
1806
|
//#endregion
|
|
1816
1807
|
//#region src/components/utils/color-mapping.ts
|
|
1817
|
-
function
|
|
1808
|
+
function Bt(e, t, n) {
|
|
1818
1809
|
let r = t / 100, i = n / 100;
|
|
1819
1810
|
if (r === 0) {
|
|
1820
1811
|
let e = Math.round(i * 255);
|
|
@@ -1834,7 +1825,7 @@ function Gt(e, t, n) {
|
|
|
1834
1825
|
Math.round(o(c, s, l - 1 / 3) * 255)
|
|
1835
1826
|
];
|
|
1836
1827
|
}
|
|
1837
|
-
function
|
|
1828
|
+
function R(e) {
|
|
1838
1829
|
let t = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);
|
|
1839
1830
|
if (t) return [
|
|
1840
1831
|
parseInt(t[1], 16),
|
|
@@ -1866,10 +1857,10 @@ function B(e) {
|
|
|
1866
1857
|
Number(a[3])
|
|
1867
1858
|
];
|
|
1868
1859
|
let o = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%\s*(?:,\s*[\d.]+\s*)?\)$/i.exec(e);
|
|
1869
|
-
return o ?
|
|
1860
|
+
return o ? Bt(Number(o[1]), Number(o[2]), Number(o[3])) : null;
|
|
1870
1861
|
}
|
|
1871
|
-
var
|
|
1872
|
-
function
|
|
1862
|
+
var Vt = .1;
|
|
1863
|
+
function z(e) {
|
|
1873
1864
|
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;
|
|
1874
1865
|
if (i === a) return [
|
|
1875
1866
|
0,
|
|
@@ -1883,8 +1874,8 @@ function V(e) {
|
|
|
1883
1874
|
o
|
|
1884
1875
|
];
|
|
1885
1876
|
}
|
|
1886
|
-
function
|
|
1887
|
-
let n = e[1] <
|
|
1877
|
+
function Ht(e, t) {
|
|
1878
|
+
let n = e[1] < Vt, r = t[1] < Vt;
|
|
1888
1879
|
if (n && r) {
|
|
1889
1880
|
let n = Math.abs(e[2] - t[2]);
|
|
1890
1881
|
return n * n;
|
|
@@ -1893,14 +1884,14 @@ function qt(e, t) {
|
|
|
1893
1884
|
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]);
|
|
1894
1885
|
return 8 * a * a + 1 * o * o + 1 * s * s;
|
|
1895
1886
|
}
|
|
1896
|
-
function
|
|
1897
|
-
let n =
|
|
1887
|
+
function B(e, t) {
|
|
1888
|
+
let n = R(e);
|
|
1898
1889
|
if (n === null) return e;
|
|
1899
|
-
let r =
|
|
1900
|
-
return
|
|
1901
|
-
let i =
|
|
1890
|
+
let r = z(n);
|
|
1891
|
+
return Lt.reduce((e, n) => {
|
|
1892
|
+
let i = R(n[t]);
|
|
1902
1893
|
if (i === null) return e;
|
|
1903
|
-
let a =
|
|
1894
|
+
let a = Ht(r, z(i));
|
|
1904
1895
|
return a < e.distance ? {
|
|
1905
1896
|
color: n[t],
|
|
1906
1897
|
distance: a
|
|
@@ -1910,14 +1901,14 @@ function H(e, t) {
|
|
|
1910
1901
|
distance: Infinity
|
|
1911
1902
|
}).color;
|
|
1912
1903
|
}
|
|
1913
|
-
function
|
|
1904
|
+
function Ut(e, t) {
|
|
1914
1905
|
var n;
|
|
1915
|
-
let r =
|
|
1906
|
+
let r = R(e);
|
|
1916
1907
|
if (r === null) return null;
|
|
1917
|
-
let i =
|
|
1918
|
-
let r =
|
|
1908
|
+
let i = z(r), a = [...Lt, ...Rt].reduce((e, n) => {
|
|
1909
|
+
let r = R(n[t]);
|
|
1919
1910
|
if (r === null) return e;
|
|
1920
|
-
let a =
|
|
1911
|
+
let a = Ht(i, z(r));
|
|
1921
1912
|
return e === null || a < e.distance ? {
|
|
1922
1913
|
name: n.name,
|
|
1923
1914
|
distance: a
|
|
@@ -1927,11 +1918,11 @@ function Jt(e, t) {
|
|
|
1927
1918
|
}
|
|
1928
1919
|
//#endregion
|
|
1929
1920
|
//#region src/tools/table/table-cell-clipboard.ts
|
|
1930
|
-
var
|
|
1931
|
-
function
|
|
1921
|
+
var V = "data-blok-table-cells";
|
|
1922
|
+
function Wt(e, t, n) {
|
|
1932
1923
|
return e ? `background-color: ${n}` : t ? "background-color: transparent" : "";
|
|
1933
1924
|
}
|
|
1934
|
-
function
|
|
1925
|
+
function Gt(e) {
|
|
1935
1926
|
if (e.length === 0) return {
|
|
1936
1927
|
rows: 0,
|
|
1937
1928
|
cols: 0,
|
|
@@ -1940,7 +1931,7 @@ function Xt(e) {
|
|
|
1940
1931
|
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: [] })));
|
|
1941
1932
|
for (let r of e) {
|
|
1942
1933
|
let e = r.row - t, i = r.col - n;
|
|
1943
|
-
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);
|
|
1934
|
+
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);
|
|
1944
1935
|
}
|
|
1945
1936
|
return {
|
|
1946
1937
|
rows: a,
|
|
@@ -1948,70 +1939,74 @@ function Xt(e) {
|
|
|
1948
1939
|
cells: s
|
|
1949
1940
|
};
|
|
1950
1941
|
}
|
|
1951
|
-
function
|
|
1942
|
+
function Kt(e) {
|
|
1952
1943
|
let { data: t } = e;
|
|
1953
1944
|
return typeof t.text == "string" ? t.text : Array.isArray(t.items) ? t.items.filter((e) => typeof e == "string").join(" ") : "";
|
|
1954
1945
|
}
|
|
1955
|
-
function
|
|
1946
|
+
function qt(e) {
|
|
1956
1947
|
var t;
|
|
1957
1948
|
let n = document.createElement("div");
|
|
1958
1949
|
return n.innerHTML = e, (t = n.textContent) == null ? "" : t;
|
|
1959
1950
|
}
|
|
1960
|
-
function
|
|
1961
|
-
return
|
|
1951
|
+
function Jt(e) {
|
|
1952
|
+
return qt(Kt(e));
|
|
1962
1953
|
}
|
|
1963
|
-
function
|
|
1964
|
-
return `<table ${
|
|
1965
|
-
let t = e.blocks.map(
|
|
1954
|
+
function Yt(e) {
|
|
1955
|
+
return `<table ${V}='${JSON.stringify(e).replace(/'/g, "'")}'>${e.cells.map((e) => `<tr>${e.map((e) => {
|
|
1956
|
+
let t = e.blocks.map(Kt).join(" "), n = [e.color ? `background-color: ${e.color}` : "", e.textColor ? `color: ${e.textColor}` : ""].filter(Boolean).join("; ");
|
|
1966
1957
|
return `<td${n ? ` style="${n}"` : ""}>${t}</td>`;
|
|
1967
1958
|
}).join("")}</tr>`).join("")}</table>`;
|
|
1968
1959
|
}
|
|
1969
|
-
function
|
|
1970
|
-
return e.cells.map((e) => e.map((e) => e.blocks.map(
|
|
1960
|
+
function Xt(e) {
|
|
1961
|
+
return e.cells.map((e) => e.map((e) => e.blocks.map(Jt).join(" ")).join(" ")).join("\n");
|
|
1971
1962
|
}
|
|
1972
|
-
var
|
|
1963
|
+
var Zt = new Set(["color", "background-color"]), Qt = {
|
|
1973
1964
|
b: !0,
|
|
1974
1965
|
strong: !0,
|
|
1975
1966
|
i: !0,
|
|
1976
1967
|
em: !0,
|
|
1977
1968
|
br: !0,
|
|
1978
|
-
a: {
|
|
1969
|
+
a: {
|
|
1970
|
+
href: !0,
|
|
1971
|
+
target: "_blank",
|
|
1972
|
+
rel: "nofollow"
|
|
1973
|
+
},
|
|
1979
1974
|
mark: (e) => {
|
|
1980
1975
|
let t = e.style, n = Array.from({ length: t.length }, (e, n) => t.item(n));
|
|
1981
|
-
for (let e of n)
|
|
1976
|
+
for (let e of n) Zt.has(e) || t.removeProperty(e);
|
|
1982
1977
|
return t.length > 0 ? { style: !0 } : {};
|
|
1983
1978
|
}
|
|
1984
1979
|
};
|
|
1985
|
-
function
|
|
1980
|
+
function H(e) {
|
|
1986
1981
|
let t = e.replace(/\s/g, "");
|
|
1987
1982
|
return t === "rgb(0,0,0)" || t === "#000000";
|
|
1988
1983
|
}
|
|
1989
|
-
function
|
|
1984
|
+
function $t(e) {
|
|
1990
1985
|
let t = e.cloneNode(!0);
|
|
1991
1986
|
for (let e of Array.from(t.querySelectorAll("span"))) {
|
|
1992
1987
|
var n, r, i;
|
|
1993
|
-
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 && !
|
|
1988
|
+
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 && !H(l), f = u !== void 0 && u !== "transparent";
|
|
1994
1989
|
if (!a && !o && !d && !f) continue;
|
|
1995
|
-
let p = d ?
|
|
1996
|
-
e.replaceWith(document.createRange().createContextualFragment(
|
|
1990
|
+
let p = d ? B(l, "text") : "", m = f ? B(u, "bg") : "", h = [d ? `color: ${p}` : "", Wt(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;
|
|
1991
|
+
e.replaceWith(document.createRange().createContextualFragment(y));
|
|
1997
1992
|
}
|
|
1998
1993
|
for (let e of Array.from(t.querySelectorAll("a[style]"))) {
|
|
1999
1994
|
var a, o, s;
|
|
2000
|
-
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 && !
|
|
1995
|
+
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 && !H(i) && i !== "inherit", u = c !== void 0 && c !== "transparent" && c !== "inherit";
|
|
2001
1996
|
if (!l && !u) continue;
|
|
2002
|
-
let d = l ?
|
|
1997
|
+
let d = l ? B(i, "text") : "", f = u ? B(c, "bg") : "", p = [l ? `color: ${d}` : "", Wt(u, l, f)].filter(Boolean).join("; "), m = e;
|
|
2003
1998
|
m.innerHTML = `<mark style="${p};">${m.innerHTML}</mark>`, m.style.removeProperty("color"), m.style.removeProperty("background-color");
|
|
2004
1999
|
}
|
|
2005
2000
|
for (let e of Array.from(t.querySelectorAll("p"))) {
|
|
2006
2001
|
let t = document.createRange().createContextualFragment(e.innerHTML + "<br>");
|
|
2007
2002
|
e.replaceWith(t);
|
|
2008
2003
|
}
|
|
2009
|
-
return
|
|
2004
|
+
return P(t.innerHTML, Qt).replace(/(<br\s*\/?>|\s)+$/i, "").trim();
|
|
2010
2005
|
}
|
|
2011
|
-
function
|
|
2006
|
+
function en(e) {
|
|
2012
2007
|
if (!e) return null;
|
|
2013
2008
|
let t = new DOMParser().parseFromString(e, "text/html").querySelector("table");
|
|
2014
|
-
if (!t || t.hasAttribute(
|
|
2009
|
+
if (!t || t.hasAttribute(V)) return null;
|
|
2015
2010
|
let n = t.querySelectorAll("tr");
|
|
2016
2011
|
if (n.length === 0) return null;
|
|
2017
2012
|
let r = [];
|
|
@@ -2019,16 +2014,16 @@ function on(e) {
|
|
|
2019
2014
|
let t = e.querySelectorAll("td, th"), n = [];
|
|
2020
2015
|
t.forEach((e) => {
|
|
2021
2016
|
var t;
|
|
2022
|
-
let r =
|
|
2017
|
+
let r = $t(e).split(/<br\s*\/?>/i).map((e) => e.trim()).filter(Boolean), i = { blocks: r.length > 0 ? r.map((e) => ({
|
|
2023
2018
|
tool: "paragraph",
|
|
2024
2019
|
data: { text: e }
|
|
2025
2020
|
})) : [{
|
|
2026
2021
|
tool: "paragraph",
|
|
2027
2022
|
data: { text: "" }
|
|
2028
2023
|
}] }, a = (t = e.getAttribute("style")) == null ? "" : t, o = /background-color\s*:\s*([^;]+)/i.exec(a);
|
|
2029
|
-
o != null && o[1] && (i.color =
|
|
2024
|
+
o != null && o[1] && (i.color = B(o[1].trim(), "bg"));
|
|
2030
2025
|
let s = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(a);
|
|
2031
|
-
s != null && s[1] && !
|
|
2026
|
+
s != null && s[1] && !H(s[1].trim()) && (i.textColor = B(s[1].trim(), "text")), n.push(i);
|
|
2032
2027
|
}), r.push(n);
|
|
2033
2028
|
});
|
|
2034
2029
|
let i = Math.max(0, ...r.map((e) => e.length));
|
|
@@ -2043,8 +2038,8 @@ function on(e) {
|
|
|
2043
2038
|
cells: r
|
|
2044
2039
|
};
|
|
2045
2040
|
}
|
|
2046
|
-
function
|
|
2047
|
-
let t = RegExp(`${
|
|
2041
|
+
function tn(e) {
|
|
2042
|
+
let t = RegExp(`${V}='([^']*)'|${V}="([^"]*)"`, "s").exec(e);
|
|
2048
2043
|
if (!t) return null;
|
|
2049
2044
|
try {
|
|
2050
2045
|
var n;
|
|
@@ -2057,47 +2052,25 @@ function sn(e) {
|
|
|
2057
2052
|
}
|
|
2058
2053
|
}
|
|
2059
2054
|
//#endregion
|
|
2060
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/objectWithoutPropertiesLoose.js
|
|
2061
|
-
function cn(e, t) {
|
|
2062
|
-
if (e == null) return {};
|
|
2063
|
-
var n = {};
|
|
2064
|
-
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
2065
|
-
if (t.includes(r)) continue;
|
|
2066
|
-
n[r] = e[r];
|
|
2067
|
-
}
|
|
2068
|
-
return n;
|
|
2069
|
-
}
|
|
2070
|
-
//#endregion
|
|
2071
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/objectWithoutProperties.js
|
|
2072
|
-
function ln(e, t) {
|
|
2073
|
-
if (e == null) return {};
|
|
2074
|
-
var n, r, i = cn(e, t);
|
|
2075
|
-
if (Object.getOwnPropertySymbols) {
|
|
2076
|
-
var a = Object.getOwnPropertySymbols(e);
|
|
2077
|
-
for (r = 0; r < a.length; r++) n = a[r], t.includes(n) || {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
2078
|
-
}
|
|
2079
|
-
return i;
|
|
2080
|
-
}
|
|
2081
|
-
//#endregion
|
|
2082
2055
|
//#region src/components/icons/index.ts
|
|
2083
|
-
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=\"m5 15 10-10m0 10L5 5\" 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\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", 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.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", pn = "\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", mn = "\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", hn = "\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", gn = "\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", _n = "\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", vn = "\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", yn = "\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", bn = "\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", xn = "\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", Sn = "\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", Cn = "\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", wn = "\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", Tn = "\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", 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=\"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", 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 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", 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.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", 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=\"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", An = "\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", 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 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", 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 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", Nn = "\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", 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=\"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", Fn = "\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", In = "\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", Ln = "\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", Rn = "\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", zn = "\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", Bn = "\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", Vn = "\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", Hn = "\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", Un = "\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", 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.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", Gn = "\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", Kn = "\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", Jn = "\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", Yn = "\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", Xn = "\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", 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 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", Qn = "<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>", $n = "<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>", er = "\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", tr = "\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", nr = "\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", rr = "\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", ir = "\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", ar = "\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", or = "\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", sr = "\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", cr = "\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", lr = "\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", ur = "\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", dr = "\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", fr = "\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=\"5\" rx=\"1\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <rect x=\"11\" y=\"4\" width=\"6\" height=\"5\" rx=\"1\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <rect x=\"3\" y=\"11\" width=\"6\" height=\"5\" rx=\"1\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <rect x=\"11\" y=\"11\" width=\"6\" height=\"5\" rx=\"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=\"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", mr = "\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", G = {
|
|
2056
|
+
var nn = "\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", rn = "\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", 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=\"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", on = "\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", sn = "\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", cn = "\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", ln = "\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", un = "\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", dn = "\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", fn = "\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", pn = "\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", mn = "\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", hn = "\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", gn = "\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", _n = "\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", vn = "\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", yn = "\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", bn = "\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", xn = "\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", Sn = "\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", Cn = "\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", wn = "\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", Tn = "\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", En = "\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", 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=\"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", On = "\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", kn = "\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", An = "\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", jn = "\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", Mn = "\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", Nn = "\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", Pn = "\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", Fn = "\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", In = "\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", Ln = "\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", Rn = "\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", 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 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", Bn = "\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", Vn = "\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", Hn = "\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", 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 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", Wn = "<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>", Gn = "<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>", Kn = "\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", qn = "\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", Jn = "\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", Yn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 6h12M4 10h8a2 2 0 0 1 2 2v0a2 2 0 0 1-2 2H9m0 0 2-2m-2 2 2 2\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\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=\"M7 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" opacity=\"0.35\"/>\n <circle cx=\"4.5\" cy=\"7\" r=\"0.75\" fill=\"currentColor\"/>\n <circle cx=\"4.5\" cy=\"10\" r=\"0.75\" fill=\"currentColor\"/>\n <circle cx=\"4.5\" cy=\"13\" r=\"0.75\" fill=\"currentColor\"/>\n <path d=\"M10 7h6M10 10h6M10 13h4\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"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=\"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", Qn = "\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", $n = "\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", er = "\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", tr = "\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", nr = "\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", rr = "\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", ir = "\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", ar = "\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", or = "\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 <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", U = {
|
|
2084
2057
|
root: "",
|
|
2085
2058
|
alignedStart: "text-start",
|
|
2086
2059
|
alignedCenter: "text-center",
|
|
2087
2060
|
title: "",
|
|
2088
2061
|
description: "opacity-60 mt-[3px]"
|
|
2089
|
-
},
|
|
2062
|
+
}, lr = class {
|
|
2090
2063
|
constructor(e) {
|
|
2091
2064
|
let t = e.alignment === "center" ? "center" : "start";
|
|
2092
2065
|
this.nodes = {
|
|
2093
|
-
root:
|
|
2094
|
-
title:
|
|
2095
|
-
}, this.nodes.root.setAttribute("data-alignment", t), this.nodes.root.appendChild(this.nodes.title), e.description !== void 0 && (this.nodes.description =
|
|
2066
|
+
root: E.make("div", [U.root, t === "center" ? U.alignedCenter : U.alignedStart]),
|
|
2067
|
+
title: E.make("div", U.title, { textContent: e.title })
|
|
2068
|
+
}, this.nodes.root.setAttribute("data-alignment", t), this.nodes.root.appendChild(this.nodes.title), e.description !== void 0 && (this.nodes.description = E.make("div", U.description, { textContent: e.description }), this.nodes.root.appendChild(this.nodes.description));
|
|
2096
2069
|
}
|
|
2097
2070
|
getElement() {
|
|
2098
2071
|
return this.nodes.root;
|
|
2099
2072
|
}
|
|
2100
|
-
},
|
|
2073
|
+
}, ur = class {
|
|
2101
2074
|
constructor(e) {
|
|
2102
2075
|
this.params = e;
|
|
2103
2076
|
}
|
|
@@ -2105,7 +2078,7 @@ var un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2105
2078
|
if (this.params !== void 0 && "name" in this.params) return this.params.name;
|
|
2106
2079
|
}
|
|
2107
2080
|
destroy() {
|
|
2108
|
-
|
|
2081
|
+
Dt();
|
|
2109
2082
|
}
|
|
2110
2083
|
onChildrenOpen() {
|
|
2111
2084
|
var e;
|
|
@@ -2120,7 +2093,7 @@ var un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2120
2093
|
this.params !== void 0 && "onActivate" in this.params && ((e = (t = this.params).onActivate) == null || e.call(t, this.params));
|
|
2121
2094
|
}
|
|
2122
2095
|
addHint(e, t) {
|
|
2123
|
-
|
|
2096
|
+
Ot(e, new lr(t).getElement(), { placement: t.position });
|
|
2124
2097
|
}
|
|
2125
2098
|
getMountElement() {
|
|
2126
2099
|
return this.getElement();
|
|
@@ -2162,15 +2135,15 @@ var un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2162
2135
|
get isActive() {
|
|
2163
2136
|
return this.params === void 0 || !("isActive" in this.params) ? !1 : typeof this.params.isActive == "function" ? this.params.isActive() : this.params.isActive === !0;
|
|
2164
2137
|
}
|
|
2165
|
-
},
|
|
2138
|
+
}, W = {
|
|
2166
2139
|
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-9 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",
|
|
2167
2140
|
itemDisabled: "cursor-default pointer-events-none text-text-secondary",
|
|
2168
2141
|
icon: "flex items-center justify-center w-7 h-7 shrink-0 rounded-lg bg-popover-icon-bg [&_svg]:w-icon [&_svg]:h-icon",
|
|
2169
2142
|
focused: "is-focused"
|
|
2170
|
-
},
|
|
2143
|
+
}, dr = {
|
|
2171
2144
|
item: "rounded-lg p-1",
|
|
2172
2145
|
itemIconOnly: "aspect-square justify-center"
|
|
2173
|
-
},
|
|
2146
|
+
}, fr = { item: "rounded p-[3px] mobile:p-1" }, G = class extends ur {
|
|
2174
2147
|
get isDisabled() {
|
|
2175
2148
|
return this.params.isDisabled === !0;
|
|
2176
2149
|
}
|
|
@@ -2190,7 +2163,7 @@ var un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2190
2163
|
return this.confirmationState !== null;
|
|
2191
2164
|
}
|
|
2192
2165
|
get isFocused() {
|
|
2193
|
-
return this.nodes.root === null ? !1 : this.nodes.root.hasAttribute(
|
|
2166
|
+
return this.nodes.root === null ? !1 : this.nodes.root.hasAttribute(a.focused);
|
|
2194
2167
|
}
|
|
2195
2168
|
constructor(e, t) {
|
|
2196
2169
|
super(e), this.params = e, this.nodes = {
|
|
@@ -2217,7 +2190,7 @@ var un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2217
2190
|
}
|
|
2218
2191
|
toggleActive(e) {
|
|
2219
2192
|
if (this.nodes.root === null) return;
|
|
2220
|
-
let t = this.nodes.root.hasAttribute(
|
|
2193
|
+
let t = this.nodes.root.hasAttribute(a.popoverItemActive), n = e === void 0 ? !t : e;
|
|
2221
2194
|
this.setActive(n);
|
|
2222
2195
|
}
|
|
2223
2196
|
toggleHidden(e) {
|
|
@@ -2229,70 +2202,70 @@ var un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2229
2202
|
onFocus() {
|
|
2230
2203
|
this.disableSpecialHoverAndFocusBehavior();
|
|
2231
2204
|
}
|
|
2232
|
-
createRootElement(
|
|
2205
|
+
createRootElement(e, t) {
|
|
2233
2206
|
var r, i;
|
|
2234
|
-
let
|
|
2235
|
-
if (
|
|
2236
|
-
|
|
2237
|
-
}),
|
|
2238
|
-
var
|
|
2239
|
-
this.addHint(
|
|
2240
|
-
position: (
|
|
2241
|
-
alignment: (
|
|
2207
|
+
let o = (r = t == null ? void 0 : t.wrapperTag) == null ? "div" : r, s = document.createElement(o);
|
|
2208
|
+
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]) => {
|
|
2209
|
+
s.setAttribute(`data-${e}`, t);
|
|
2210
|
+
}), 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) {
|
|
2211
|
+
var c, l;
|
|
2212
|
+
this.addHint(s, n(n({}, e.hint), {}, {
|
|
2213
|
+
position: (t == null || (c = t.hint) == null ? void 0 : c.position) || "right",
|
|
2214
|
+
alignment: (t == null || (l = t.hint) == null ? void 0 : l.alignment) || "center"
|
|
2242
2215
|
}));
|
|
2243
2216
|
}
|
|
2244
|
-
return
|
|
2217
|
+
return s;
|
|
2245
2218
|
}
|
|
2246
2219
|
createContentElements(e, t, n) {
|
|
2247
|
-
var r, i,
|
|
2248
|
-
let
|
|
2249
|
-
if (t.icon && (this.nodes.icon = this.createIconElement(t.icon,
|
|
2220
|
+
var r, i, o;
|
|
2221
|
+
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;
|
|
2222
|
+
if (t.icon && (this.nodes.icon = this.createIconElement(t.icon, s, c, l), e.appendChild(this.nodes.icon)), u !== void 0) {
|
|
2250
2223
|
let n = document.createElement("div");
|
|
2251
|
-
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(
|
|
2224
|
+
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;
|
|
2252
2225
|
}
|
|
2253
2226
|
if (t.secondaryLabel) {
|
|
2254
2227
|
let n = document.createElement("div");
|
|
2255
|
-
n.className = "ml-auto shrink-0 flex items-center whitespace-nowrap pl-20 font-mono text-[13px] tracking-wide text-text-secondary/60", n.setAttribute(
|
|
2228
|
+
n.className = "ml-auto shrink-0 flex items-center whitespace-nowrap pl-20 font-mono text-[13px] tracking-wide text-text-secondary/60", n.setAttribute(a.popoverItemSecondaryTitle, ""), n.setAttribute("data-blok-testid", "popover-item-secondary-title"), n.textContent = t.secondaryLabel, e.appendChild(n), this.nodes.secondaryLabelEl = n;
|
|
2256
2229
|
}
|
|
2257
2230
|
if (this.hasChildren && !this.isChevronHidden) {
|
|
2258
2231
|
let t = document.createElement("div");
|
|
2259
|
-
t.className = this.getChevronClass(
|
|
2232
|
+
t.className = this.getChevronClass(c), t.setAttribute(a.popoverItemIcon, ""), t.setAttribute(a.popoverItemIconChevronRight, ""), t.setAttribute("data-blok-testid", "popover-item-chevron-right"), t.innerHTML = mn, e.appendChild(t), this.nodes.chevron = t;
|
|
2260
2233
|
}
|
|
2261
2234
|
}
|
|
2262
2235
|
createIconElement(e, t, n, r) {
|
|
2263
2236
|
let i = document.createElement("div");
|
|
2264
|
-
return i.className = this.getIconClass(t, n, r), i.setAttribute(
|
|
2237
|
+
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;
|
|
2265
2238
|
}
|
|
2266
2239
|
getContainerClass() {
|
|
2267
|
-
var e,
|
|
2268
|
-
let a = (e = (
|
|
2269
|
-
return
|
|
2240
|
+
var e, t, n, i;
|
|
2241
|
+
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;
|
|
2242
|
+
return r(W.item, !a && !o && "pl-2 pr-3", a && dr.item, a && this.params.icon && dr.itemIconOnly, o && fr.item, this.params.isDisabled && W.itemDisabled);
|
|
2270
2243
|
}
|
|
2271
|
-
getIconClass(e,
|
|
2272
|
-
return
|
|
2244
|
+
getIconClass(e, t, n) {
|
|
2245
|
+
return r(W.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!");
|
|
2273
2246
|
}
|
|
2274
2247
|
getChevronClass(e) {
|
|
2275
|
-
return
|
|
2248
|
+
return r(W.icon, "w-5 h-5 bg-transparent", e && "rotate-90");
|
|
2276
2249
|
}
|
|
2277
2250
|
setActive(e) {
|
|
2278
|
-
this.nodes.root && (e ? this.nodes.root.setAttribute(
|
|
2251
|
+
this.nodes.root && (e ? this.nodes.root.setAttribute(a.popoverItemActive, "true") : this.nodes.root.removeAttribute(a.popoverItemActive));
|
|
2279
2252
|
}
|
|
2280
2253
|
setHidden(e) {
|
|
2281
|
-
this.nodes.root && (e ? (this.nodes.root.setAttribute(
|
|
2254
|
+
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!")));
|
|
2282
2255
|
}
|
|
2283
2256
|
setFocused(e) {
|
|
2284
|
-
this.nodes.root && (e ? (this.nodes.root.setAttribute(
|
|
2257
|
+
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!")));
|
|
2285
2258
|
}
|
|
2286
2259
|
setNoHover(e) {
|
|
2287
|
-
this.nodes.root && (e ? this.nodes.root.setAttribute(
|
|
2260
|
+
this.nodes.root && (e ? this.nodes.root.setAttribute(a.popoverItemNoHover, "true") : this.nodes.root.removeAttribute(a.popoverItemNoHover));
|
|
2288
2261
|
}
|
|
2289
2262
|
setNoFocus(e) {
|
|
2290
|
-
this.nodes.root && (e ? this.nodes.root.setAttribute(
|
|
2263
|
+
this.nodes.root && (e ? this.nodes.root.setAttribute(a.popoverItemNoFocus, "true") : this.nodes.root.removeAttribute(a.popoverItemNoFocus));
|
|
2291
2264
|
}
|
|
2292
|
-
enableConfirmationMode(
|
|
2265
|
+
enableConfirmationMode(e) {
|
|
2293
2266
|
if (this.nodes.root === null) return;
|
|
2294
|
-
let
|
|
2295
|
-
this.setConfirmation(
|
|
2267
|
+
let t = n(n(n({}, this.params), e), {}, { confirmation: "confirmation" in e ? e.confirmation : void 0 });
|
|
2268
|
+
this.setConfirmation(t), this.confirmationState = e, this.enableSpecialHoverAndFocusBehavior();
|
|
2296
2269
|
}
|
|
2297
2270
|
setConfirmation(e) {
|
|
2298
2271
|
if (this.nodes.root) {
|
|
@@ -2304,10 +2277,10 @@ var un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2304
2277
|
}
|
|
2305
2278
|
}
|
|
2306
2279
|
clearConfirmationState() {
|
|
2307
|
-
this.nodes.root && (this.nodes.root.removeAttribute(
|
|
2280
|
+
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());
|
|
2308
2281
|
}
|
|
2309
2282
|
applyConfirmationState(e) {
|
|
2310
|
-
this.nodes.root && (this.nodes.root.setAttribute(
|
|
2283
|
+
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));
|
|
2311
2284
|
}
|
|
2312
2285
|
restoreOriginalIcon() {
|
|
2313
2286
|
!this.nodes.icon || !this.params.icon || (this.nodes.icon.innerHTML = this.params.icon);
|
|
@@ -2349,16 +2322,16 @@ var un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2349
2322
|
getIconElement() {
|
|
2350
2323
|
return this.nodes.icon;
|
|
2351
2324
|
}
|
|
2352
|
-
},
|
|
2325
|
+
}, K = {
|
|
2353
2326
|
container: "py-1.5 px-2 max-h-5 overflow-hidden",
|
|
2354
2327
|
containerHidden: "opacity-0 max-h-0! py-0!",
|
|
2355
2328
|
line: "h-px w-full bg-popover-border/60"
|
|
2356
|
-
},
|
|
2329
|
+
}, q = {
|
|
2357
2330
|
container: "px-1 py-0 max-h-none",
|
|
2358
2331
|
line: "h-full w-px",
|
|
2359
2332
|
nestedContainer: "py-1 px-[3px]",
|
|
2360
2333
|
nestedLine: "w-full h-px"
|
|
2361
|
-
},
|
|
2334
|
+
}, pr = class extends ur {
|
|
2362
2335
|
constructor(e) {
|
|
2363
2336
|
var t, n;
|
|
2364
2337
|
super(), this.nodes = {
|
|
@@ -2372,25 +2345,25 @@ var un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2372
2345
|
toggleHidden(e) {
|
|
2373
2346
|
if (!this.nodes.root) return;
|
|
2374
2347
|
let t = this.getContainerClass(!1), n = this.getContainerClass(!0);
|
|
2375
|
-
this.nodes.root.className = e ? n : t, e ? this.nodes.root.setAttribute(
|
|
2348
|
+
this.nodes.root.className = e ? n : t, e ? this.nodes.root.setAttribute(a.hidden, "true") : this.nodes.root.removeAttribute(a.hidden);
|
|
2376
2349
|
}
|
|
2377
2350
|
getContainerClass(e) {
|
|
2378
|
-
let
|
|
2379
|
-
return this.isNestedInline ? t
|
|
2351
|
+
let t = K.container;
|
|
2352
|
+
return this.isNestedInline ? r(t, q.nestedContainer, e && K.containerHidden) : this.isInline ? r(t, q.container, e && K.containerHidden) : r(t, e && K.containerHidden);
|
|
2380
2353
|
}
|
|
2381
2354
|
getLineClass() {
|
|
2382
|
-
return this.isNestedInline ?
|
|
2355
|
+
return this.isNestedInline ? r(K.line, q.nestedLine) : this.isInline ? r(K.line, q.line) : K.line;
|
|
2383
2356
|
}
|
|
2384
2357
|
createRootElement() {
|
|
2385
2358
|
let e = document.createElement("div");
|
|
2386
|
-
e.className = this.getContainerClass(!1), e.setAttribute(
|
|
2359
|
+
e.className = this.getContainerClass(!1), e.setAttribute(a.popoverItemSeparator, ""), e.setAttribute("data-blok-testid", "popover-item-separator");
|
|
2387
2360
|
let t = document.createElement("div");
|
|
2388
|
-
return t.className = this.getLineClass(), t.setAttribute(
|
|
2361
|
+
return t.className = this.getLineClass(), t.setAttribute(a.popoverItemSeparatorLine, ""), e.appendChild(t), this.nodes.line = t, e;
|
|
2389
2362
|
}
|
|
2390
|
-
},
|
|
2363
|
+
}, mr = {
|
|
2391
2364
|
root: "",
|
|
2392
2365
|
rootHidden: "hidden"
|
|
2393
|
-
},
|
|
2366
|
+
}, hr = { root: "flex items-center" }, J = class extends ur {
|
|
2394
2367
|
constructor(e, t) {
|
|
2395
2368
|
var n;
|
|
2396
2369
|
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);
|
|
@@ -2399,33 +2372,33 @@ var un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2399
2372
|
return this.nodes.root;
|
|
2400
2373
|
}
|
|
2401
2374
|
toggleHidden(e) {
|
|
2402
|
-
this.isHidden = e, this.updateRootClasses(), this.nodes.root && (e ? this.nodes.root.setAttribute(
|
|
2375
|
+
this.isHidden = e, this.updateRootClasses(), this.nodes.root && (e ? this.nodes.root.setAttribute(a.hidden, "true") : this.nodes.root.removeAttribute(a.hidden));
|
|
2403
2376
|
}
|
|
2404
2377
|
getControls() {
|
|
2405
2378
|
if (!this.nodes.root) return [];
|
|
2406
|
-
let e = this.nodes.root.querySelectorAll(`button, ${
|
|
2379
|
+
let e = this.nodes.root.querySelectorAll(`button, ${E.allInputsSelector}`);
|
|
2407
2380
|
return Array.from(e);
|
|
2408
2381
|
}
|
|
2409
2382
|
updateRootClasses() {
|
|
2410
|
-
this.nodes.root && (this.nodes.root.className =
|
|
2383
|
+
this.nodes.root && (this.nodes.root.className = r(mr.root, this.isInline && hr.root, this.isHidden && mr.rootHidden));
|
|
2411
2384
|
}
|
|
2412
|
-
createRootElement(
|
|
2385
|
+
createRootElement(e, t) {
|
|
2413
2386
|
var i;
|
|
2414
|
-
let
|
|
2415
|
-
if (
|
|
2416
|
-
var
|
|
2417
|
-
this.addHint(
|
|
2418
|
-
position: (
|
|
2419
|
-
alignment: (
|
|
2387
|
+
let o = document.createElement("div");
|
|
2388
|
+
if (o.className = r(mr.root, this.isInline && hr.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) {
|
|
2389
|
+
var s, c;
|
|
2390
|
+
this.addHint(o, n(n({}, e.hint), {}, {
|
|
2391
|
+
position: (t == null || (s = t.hint) == null ? void 0 : s.position) || "right",
|
|
2392
|
+
alignment: (t == null || (c = t.hint) == null ? void 0 : c.alignment) || "center"
|
|
2420
2393
|
}));
|
|
2421
2394
|
}
|
|
2422
|
-
return
|
|
2395
|
+
return o;
|
|
2423
2396
|
}
|
|
2424
|
-
},
|
|
2397
|
+
}, gr = {
|
|
2425
2398
|
wrapper: "bg-search-input-bg border border-search-input-border rounded-lg p-1 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)]",
|
|
2426
2399
|
icon: "w-toolbox-btn h-toolbox-btn flex items-center justify-center mr-2 [&_svg]:w-icon [&_svg]:h-icon [&_svg]:text-gray-text",
|
|
2427
2400
|
input: "text-sm outline-hidden font-medium font-inherit border-0 bg-transparent m-0 p-0 leading-[22px] min-w-[calc(100%-(--spacing(6))-10px)] text-text-primary placeholder:text-gray-text/80 placeholder:font-normal"
|
|
2428
|
-
},
|
|
2401
|
+
}, _r = (e, t) => {
|
|
2429
2402
|
if (e.length === 0) return t.length;
|
|
2430
2403
|
if (t.length === 0) return e.length;
|
|
2431
2404
|
let n = Array.from({ length: t.length + 1 }, (e, t) => t), r = Array(t.length + 1);
|
|
@@ -2438,37 +2411,37 @@ var un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2438
2411
|
n.splice(0, n.length, ...r);
|
|
2439
2412
|
}
|
|
2440
2413
|
return n[t.length];
|
|
2441
|
-
},
|
|
2414
|
+
}, vr = (e, t) => [...e].reduce((e, n) => e < t.length && n === t[e] ? e + 1 : e, 0) === t.length, yr = (e, t) => [...e].reduce((n, r, i) => {
|
|
2442
2415
|
let a = i === 0 || e[i - 1] === " " || e[i - 1] === "-" || e[i - 1] === "_";
|
|
2443
2416
|
return n < t.length && a && r === t[n] ? n + 1 : n;
|
|
2444
|
-
}, 0) === t.length,
|
|
2417
|
+
}, 0) === t.length, br = (e, t) => {
|
|
2445
2418
|
if (e === t) return 100;
|
|
2446
2419
|
if (e.startsWith(t)) return 90;
|
|
2447
2420
|
if (e.includes(t)) return 75;
|
|
2448
|
-
if (t.length >= 2 &&
|
|
2449
|
-
if (t.length >= 2 &&
|
|
2421
|
+
if (t.length >= 2 && yr(e, t)) return 55;
|
|
2422
|
+
if (t.length >= 2 && vr(e, t)) return 35;
|
|
2450
2423
|
if (t.length >= 3) {
|
|
2451
2424
|
let n = Math.floor(t.length / 3);
|
|
2452
|
-
if (
|
|
2425
|
+
if (_r(e, t) <= n) return 15;
|
|
2453
2426
|
}
|
|
2454
2427
|
return 0;
|
|
2455
|
-
},
|
|
2428
|
+
}, Y = (e, t) => {
|
|
2456
2429
|
if (t === "") return 100;
|
|
2457
2430
|
let n = t.toLowerCase(), r = [];
|
|
2458
2431
|
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());
|
|
2459
2432
|
return r.reduce((e, t) => {
|
|
2460
|
-
let r =
|
|
2433
|
+
let r = br(t, n);
|
|
2461
2434
|
return r > e ? r : e;
|
|
2462
2435
|
}, 0);
|
|
2463
|
-
},
|
|
2436
|
+
}, xr = /* @__PURE__ */ function(e) {
|
|
2464
2437
|
return e.Search = "search", e;
|
|
2465
|
-
}({}),
|
|
2438
|
+
}({}), Sr = class extends Le {
|
|
2466
2439
|
constructor({ items: e, placeholder: t }) {
|
|
2467
2440
|
super(), this.searchQuery = "", this.handleValueChange = () => {
|
|
2468
2441
|
this.applySearch(this.input.value);
|
|
2469
|
-
}, this.listeners = new
|
|
2470
|
-
let n =
|
|
2471
|
-
this.input =
|
|
2442
|
+
}, this.listeners = new De(), this.items = e, this.wrapper = E.make("div", gr.wrapper), this.wrapper.setAttribute("data-blok-testid", "popover-search-field");
|
|
2443
|
+
let n = E.make("div", gr.icon, { innerHTML: hn });
|
|
2444
|
+
this.input = E.make("input", gr.input, {
|
|
2472
2445
|
type: "search",
|
|
2473
2446
|
placeholder: t,
|
|
2474
2447
|
tabIndex: -1
|
|
@@ -2491,7 +2464,7 @@ var un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2491
2464
|
this.input.value = "";
|
|
2492
2465
|
}
|
|
2493
2466
|
applySearch(e) {
|
|
2494
|
-
this.searchQuery !== e && (this.searchQuery = e, this.emit(
|
|
2467
|
+
this.searchQuery !== e && (this.searchQuery = e, this.emit(xr.Search, {
|
|
2495
2468
|
query: e,
|
|
2496
2469
|
items: this.foundItems
|
|
2497
2470
|
}));
|
|
@@ -2519,10 +2492,10 @@ var un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2519
2492
|
get foundItems() {
|
|
2520
2493
|
return this.items.map((e) => ({
|
|
2521
2494
|
item: e,
|
|
2522
|
-
score:
|
|
2495
|
+
score: Y(e, this.searchQuery)
|
|
2523
2496
|
})).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score).map(({ item: e }) => e);
|
|
2524
2497
|
}
|
|
2525
|
-
},
|
|
2498
|
+
}, Cr, X = class e {
|
|
2526
2499
|
constructor() {
|
|
2527
2500
|
this.stack = [], this.boundPointerDown = null;
|
|
2528
2501
|
}
|
|
@@ -2574,7 +2547,7 @@ var un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2574
2547
|
t !== -1 && this.stack.splice(t, 1);
|
|
2575
2548
|
}
|
|
2576
2549
|
};
|
|
2577
|
-
|
|
2550
|
+
Cr = X, Cr._instance = null;
|
|
2578
2551
|
//#endregion
|
|
2579
2552
|
//#region src/components/utils/popover/popover.const.ts
|
|
2580
2553
|
var Z = {
|
|
@@ -2583,22 +2556,22 @@ var Z = {
|
|
|
2583
2556
|
popoverContainerOpened: "opacity-100 pointer-events-auto p-1.5 max-h-(--max-height) border-none",
|
|
2584
2557
|
popoverOverlay: "hidden bg-dark",
|
|
2585
2558
|
items: "overflow-y-auto overscroll-contain"
|
|
2586
|
-
},
|
|
2559
|
+
}, wr = {
|
|
2587
2560
|
popover: "relative",
|
|
2588
2561
|
popoverContainer: "flex-row top-0 min-w-max w-max p-1 mobile:absolute"
|
|
2589
|
-
},
|
|
2562
|
+
}, Tr = (e) => `level-${e}`, Q = /* @__PURE__ */ function(e) {
|
|
2590
2563
|
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;
|
|
2591
2564
|
}({}), $ = /* @__PURE__ */ function(e) {
|
|
2592
2565
|
return e.Closed = "closed", e.ClosedOnActivate = "closed-on-activate", e;
|
|
2593
|
-
}({}),
|
|
2566
|
+
}({}), Er = class extends Le {
|
|
2594
2567
|
get itemsDefault() {
|
|
2595
|
-
return this.items.filter((e) => e instanceof
|
|
2568
|
+
return this.items.filter((e) => e instanceof G);
|
|
2596
2569
|
}
|
|
2597
|
-
constructor(
|
|
2598
|
-
super(), this.params =
|
|
2570
|
+
constructor(e, t = {}) {
|
|
2571
|
+
super(), this.params = e, this.itemsRenderParams = t, this.listeners = new De(), this.messages = {
|
|
2599
2572
|
nothingFound: "Nothing found",
|
|
2600
2573
|
search: "Search"
|
|
2601
|
-
}, this.permanentlyHiddenNames = /* @__PURE__ */ new Set(), this.items = this.buildItems(
|
|
2574
|
+
}, 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));
|
|
2602
2575
|
}
|
|
2603
2576
|
getElement() {
|
|
2604
2577
|
return this.nodes.popover;
|
|
@@ -2608,13 +2581,13 @@ var Z = {
|
|
|
2608
2581
|
}
|
|
2609
2582
|
show() {
|
|
2610
2583
|
var e;
|
|
2611
|
-
let
|
|
2612
|
-
|
|
2613
|
-
let { trigger:
|
|
2614
|
-
((e = this.params.nestingLevel) == null ? 0 : e) === 0 &&
|
|
2584
|
+
let t = this.nodes.popover;
|
|
2585
|
+
t !== null && !t.isConnected && document.body.appendChild(t), this.nodes.popover.setAttribute(a.popoverOpened, "true"), this.nodes.popoverContainer.className = r(this.nodes.popoverContainer.className, Z.popoverContainerOpened), this.itemsDefault.forEach((e) => this.refreshItemActiveState(e)), this.search !== void 0 && this.search.focus();
|
|
2586
|
+
let { trigger: n } = this.params;
|
|
2587
|
+
((e = this.params.nestingLevel) == null ? 0 : e) === 0 && n !== void 0 && X.instance.register(this, n);
|
|
2615
2588
|
}
|
|
2616
2589
|
hide() {
|
|
2617
|
-
this.nodes.popover.removeAttribute(
|
|
2590
|
+
this.nodes.popover.removeAttribute(a.popoverOpened), this.nodes.popover.removeAttribute(a.popoverOpenTop), this.nodes.popover.removeAttribute(a.popoverOpenLeft), this.nodes.popoverContainer.className = Z.popoverContainer, this.itemsDefault.forEach((e) => e.reset()), this.search !== void 0 && this.search.clear(), X.instance.unregister(this), this.emit($.Closed);
|
|
2618
2591
|
}
|
|
2619
2592
|
destroy() {
|
|
2620
2593
|
var e, t;
|
|
@@ -2634,21 +2607,21 @@ var Z = {
|
|
|
2634
2607
|
buildItems(e) {
|
|
2635
2608
|
return e.map((e) => {
|
|
2636
2609
|
switch (e.type) {
|
|
2637
|
-
case
|
|
2638
|
-
case
|
|
2639
|
-
case
|
|
2640
|
-
case void 0: return new
|
|
2610
|
+
case N.Separator: return new pr(this.itemsRenderParams[N.Separator]);
|
|
2611
|
+
case N.Html: return new J(e, this.itemsRenderParams[N.Html]);
|
|
2612
|
+
case N.Default:
|
|
2613
|
+
case void 0: return new G(e, this.itemsRenderParams[N.Default]);
|
|
2641
2614
|
}
|
|
2642
2615
|
});
|
|
2643
2616
|
}
|
|
2644
2617
|
getTargetItem(e) {
|
|
2645
|
-
return this.items.filter((e) => e instanceof
|
|
2618
|
+
return this.items.filter((e) => e instanceof G || e instanceof J).find((t) => {
|
|
2646
2619
|
let n = t.getElement();
|
|
2647
2620
|
return n === null ? !1 : e.composedPath().includes(n);
|
|
2648
2621
|
});
|
|
2649
2622
|
}
|
|
2650
2623
|
handleItemClick(e) {
|
|
2651
|
-
if (!(e instanceof
|
|
2624
|
+
if (!(e instanceof G && e.isDisabled)) {
|
|
2652
2625
|
if (e.hasChildren) {
|
|
2653
2626
|
this.showNestedItems(e), this.callHandleClickIfPresent(e);
|
|
2654
2627
|
return;
|
|
@@ -2661,7 +2634,7 @@ var Z = {
|
|
|
2661
2634
|
t !== void 0 && this.handleItemClick(t);
|
|
2662
2635
|
}
|
|
2663
2636
|
toggleItemActivenessIfNeeded(e) {
|
|
2664
|
-
if (!(e instanceof
|
|
2637
|
+
if (!(e instanceof G) || (e.toggle === !0 && e.toggleActive(), typeof e.toggle != "string")) return;
|
|
2665
2638
|
let t = this.itemsDefault.filter((t) => t.toggle === e.toggle);
|
|
2666
2639
|
if (t.length === 1) {
|
|
2667
2640
|
e.toggleActive();
|
|
@@ -2672,37 +2645,37 @@ var Z = {
|
|
|
2672
2645
|
});
|
|
2673
2646
|
}
|
|
2674
2647
|
refreshItemActiveState(e) {
|
|
2675
|
-
e instanceof
|
|
2648
|
+
e instanceof G && e.toggle === void 0 && e.toggleActive(e.isActive);
|
|
2676
2649
|
}
|
|
2677
2650
|
callHandleClickIfPresent(e) {
|
|
2678
2651
|
"handleClick" in e && typeof e.handleClick == "function" && e.handleClick();
|
|
2679
2652
|
}
|
|
2680
2653
|
toggleNothingFoundMessage(e) {
|
|
2681
|
-
e ? (this.nodes.nothingFoundMessage.classList.remove("hidden"), this.nodes.nothingFoundMessage.setAttribute(
|
|
2654
|
+
e ? (this.nodes.nothingFoundMessage.classList.remove("hidden"), this.nodes.nothingFoundMessage.setAttribute(a.nothingFoundDisplayed, "true")) : (this.nodes.nothingFoundMessage.classList.add("hidden"), this.nodes.nothingFoundMessage.removeAttribute(a.nothingFoundDisplayed));
|
|
2682
2655
|
}
|
|
2683
2656
|
setOpenTop(e) {
|
|
2684
|
-
e ? this.nodes.popover.setAttribute(
|
|
2657
|
+
e ? this.nodes.popover.setAttribute(a.popoverOpenTop, "true") : this.nodes.popover.removeAttribute(a.popoverOpenTop);
|
|
2685
2658
|
}
|
|
2686
2659
|
setOpenLeft(e) {
|
|
2687
|
-
e ? this.nodes.popover.setAttribute(
|
|
2660
|
+
e ? this.nodes.popover.setAttribute(a.popoverOpenLeft, "true") : this.nodes.popover.removeAttribute(a.popoverOpenLeft);
|
|
2688
2661
|
}
|
|
2689
2662
|
hasNode(e) {
|
|
2690
2663
|
return this.nodes.popover.contains(e);
|
|
2691
2664
|
}
|
|
2692
2665
|
createPopoverDOM() {
|
|
2693
|
-
var e,
|
|
2694
|
-
let
|
|
2695
|
-
this.params.class && (
|
|
2666
|
+
var e, t;
|
|
2667
|
+
let n = document.createElement("div");
|
|
2668
|
+
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");
|
|
2696
2669
|
let i = document.createElement("div");
|
|
2697
|
-
i.className = Z.popoverContainer, i.style.boxShadow = "var(--blok-popover-box-shadow)", i.setAttribute(
|
|
2698
|
-
let a = document.createElement("div");
|
|
2699
|
-
a.className = t("cursor-default text-[13px] leading-5 font-normal whitespace-nowrap overflow-hidden text-ellipsis text-gray-text px-3 py-4 text-center", "hidden"), a.setAttribute("data-blok-testid", "popover-nothing-found"), a.textContent = (n = this.messages.nothingFound) == null ? "Nothing found" : n;
|
|
2670
|
+
i.className = Z.popoverContainer, i.style.boxShadow = "var(--blok-popover-box-shadow)", i.setAttribute(a.popoverContainer, ""), i.setAttribute("data-blok-testid", "popover-container");
|
|
2700
2671
|
let o = document.createElement("div");
|
|
2701
|
-
|
|
2702
|
-
|
|
2672
|
+
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;
|
|
2673
|
+
let s = document.createElement("div");
|
|
2674
|
+
return s.className = Z.items, s.setAttribute(a.popoverItems, ""), s.setAttribute("data-blok-testid", "popover-items"), i.appendChild(o), i.appendChild(s), n.appendChild(i), {
|
|
2675
|
+
popover: n,
|
|
2703
2676
|
popoverContainer: i,
|
|
2704
|
-
nothingFoundMessage:
|
|
2705
|
-
items:
|
|
2677
|
+
nothingFoundMessage: o,
|
|
2678
|
+
items: s
|
|
2706
2679
|
};
|
|
2707
2680
|
}
|
|
2708
2681
|
appendItemElements() {
|
|
@@ -2715,22 +2688,22 @@ var Z = {
|
|
|
2715
2688
|
};
|
|
2716
2689
|
//#endregion
|
|
2717
2690
|
//#region src/components/utils/popover/popover-position.ts
|
|
2718
|
-
function
|
|
2719
|
-
return e <= t ? !1 : e <= n;
|
|
2691
|
+
function Dr(e, t, n) {
|
|
2692
|
+
return e <= t ? !1 : e <= n ? !0 : n > t;
|
|
2720
2693
|
}
|
|
2721
|
-
function
|
|
2694
|
+
function Or(e) {
|
|
2722
2695
|
var t;
|
|
2723
|
-
let { anchor: n, popoverSize: r, scopeBounds: i, viewportSize: a, scrollOffset: o, offset: s = 8, leftAlignRect: c } = e, l = Math.min(a.height, i.bottom), u = Math.max(0, i.top), d = l - n.bottom - s, f = n.top - s - u, p =
|
|
2696
|
+
let { anchor: n, popoverSize: r, scopeBounds: i, viewportSize: a, scrollOffset: o, offset: s = 8, leftAlignRect: c } = e, l = Math.min(a.height, i.bottom), u = Math.max(0, i.top), d = l - n.bottom - s, f = n.top - s - u, p = Dr(r.height, d, f), m = p ? n.top - s - r.height + o.y : n.bottom + s + o.y, h = m < u + o.y ? u + o.y : m, g = Math.min(a.width, i.right), _ = Math.max(0, i.left), v = ((t = c == null ? void 0 : c.left) == null ? n.left : t) + o.x, y = n.right + o.x, ee = g + o.x - v, b = y - _ - o.x, x = Dr(r.width, ee, b), te = x ? Math.max(_ + o.x, n.right - r.width + o.x) : v;
|
|
2724
2697
|
return {
|
|
2725
2698
|
top: h,
|
|
2726
|
-
left:
|
|
2699
|
+
left: te + r.width > g + o.x ? Math.max(_ + o.x, g + o.x - r.width) : te,
|
|
2727
2700
|
openTop: p,
|
|
2728
|
-
openLeft:
|
|
2701
|
+
openLeft: x
|
|
2729
2702
|
};
|
|
2730
2703
|
}
|
|
2731
2704
|
//#endregion
|
|
2732
2705
|
//#region src/components/utils/popover/popover-desktop.ts
|
|
2733
|
-
var
|
|
2706
|
+
var kr = class e extends Er {
|
|
2734
2707
|
setLeftAlignElement(e) {
|
|
2735
2708
|
this.leftAlignElement = e;
|
|
2736
2709
|
}
|
|
@@ -2744,15 +2717,15 @@ var Lr = class e extends Pr {
|
|
|
2744
2717
|
e == null || e.onFocus();
|
|
2745
2718
|
}, this.onSearch = (e) => {
|
|
2746
2719
|
var t;
|
|
2747
|
-
let n = e.query === "", r = e.topLevelItems, i = !n && e.promotedItems.length > 0 ? this.deduplicateAgainstPromoted(r, e.promotedItems) : r,
|
|
2720
|
+
let n = e.query === "", r = e.topLevelItems, i = !n && e.promotedItems.length > 0 ? this.deduplicateAgainstPromoted(r, e.promotedItems) : r, o = i.length === 0 && e.promotedItems.length === 0;
|
|
2748
2721
|
this.items.forEach((e) => {
|
|
2749
|
-
let t = e instanceof
|
|
2750
|
-
e.toggleHidden(
|
|
2722
|
+
let t = e instanceof G, r = e instanceof pr || e instanceof J, a = t ? !i.includes(e) || e.name !== void 0 && this.isNamePermanentlyHidden(e.name) : r && (o || !n);
|
|
2723
|
+
e.toggleHidden(a);
|
|
2751
2724
|
}), this._size = void 0, !n && i.length > 0 ? this.reorderItemsByRank(i) : n && this.originalItemOrder !== void 0 && this.restoreOriginalItemOrder();
|
|
2752
2725
|
for (let e of this.promotedSeparators) e.remove();
|
|
2753
2726
|
if (this.promotedSeparators = [], this.promotedItemCache !== null) for (let e of this.promotedItemCache.items) {
|
|
2754
|
-
var
|
|
2755
|
-
(
|
|
2727
|
+
var s;
|
|
2728
|
+
(s = e.getElement()) == null || s.remove();
|
|
2756
2729
|
}
|
|
2757
2730
|
if (e.promotedItems.length > 0) {
|
|
2758
2731
|
let t = /* @__PURE__ */ new Map();
|
|
@@ -2771,29 +2744,29 @@ var Lr = class e extends Pr {
|
|
|
2771
2744
|
return Math.max(...t[1].map((e) => e.score)) - n;
|
|
2772
2745
|
});
|
|
2773
2746
|
for (let [e, t] of n) {
|
|
2774
|
-
var
|
|
2747
|
+
var c;
|
|
2775
2748
|
let n = this.createGroupSeparator(e);
|
|
2776
|
-
this.promotedSeparators.push(n), (
|
|
2749
|
+
this.promotedSeparators.push(n), (c = this.nodes.items) == null || c.appendChild(n), this.appendPromotedGroupElements(t);
|
|
2777
2750
|
}
|
|
2778
2751
|
}
|
|
2779
|
-
if (this.toggleNothingFoundMessage(
|
|
2752
|
+
if (this.toggleNothingFoundMessage(o), this.trigger && this.nodes.popover.hasAttribute(a.popoverOpened)) {
|
|
2780
2753
|
let { top: e, left: t, openTop: n, openLeft: r } = this.calculatePosition();
|
|
2781
2754
|
this.nodes.popover.style.top = `${e}px`, this.nodes.popover.style.left = `${t}px`, this.setOpenTop(n), this.setOpenLeft(r);
|
|
2782
2755
|
}
|
|
2783
|
-
let
|
|
2784
|
-
(t = this.flipper) != null && t.isActivated && (this.flipper.deactivate(), this.flipper.activate(
|
|
2785
|
-
}, e.trigger && (this.trigger = e.trigger), e.leftAlignElement && (this.leftAlignElement = e.leftAlignElement), e.nestingLevel !== void 0 && (this.nestingLevel = e.nestingLevel), this.nestingLevel > 0 && this.nodes.popover.setAttribute(
|
|
2756
|
+
let l = n ? this.flippableElements : i.map((e) => e.getElement()), u = e.promotedItems.map(({ item: e }) => e.getElement()), d = [...l, ...u].filter((e) => e !== null);
|
|
2757
|
+
(t = this.flipper) != null && t.isActivated && (this.flipper.deactivate(), this.flipper.activate(d), d.length > 0 && this.flipper.focusItem(0, { skipNextTab: !0 }));
|
|
2758
|
+
}, e.trigger && (this.trigger = e.trigger), e.leftAlignElement && (this.leftAlignElement = e.leftAlignElement), 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;
|
|
2786
2759
|
let r = e.flipper;
|
|
2787
|
-
r === void 0 ? this.flipper = new
|
|
2760
|
+
r === void 0 ? this.flipper = new It({
|
|
2788
2761
|
items: this.flippableElements,
|
|
2789
|
-
focusedItemClass:
|
|
2762
|
+
focusedItemClass: W.focused,
|
|
2790
2763
|
allowedKeys: [
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2764
|
+
s.TAB,
|
|
2765
|
+
s.UP,
|
|
2766
|
+
s.DOWN,
|
|
2767
|
+
s.ENTER,
|
|
2768
|
+
s.RIGHT,
|
|
2769
|
+
s.LEFT
|
|
2797
2770
|
],
|
|
2798
2771
|
onArrowLeft: e.onNavigateBack,
|
|
2799
2772
|
handleContentEditableTargets: e.handleContentEditableNavigation
|
|
@@ -2824,7 +2797,7 @@ var Lr = class e extends Pr {
|
|
|
2824
2797
|
this.nodes.popover.style.setProperty("--width", t + "px");
|
|
2825
2798
|
}
|
|
2826
2799
|
if (!this.trigger) {
|
|
2827
|
-
let { openTop: e, openLeft: t } =
|
|
2800
|
+
let { openTop: e, openLeft: t } = Or({
|
|
2828
2801
|
anchor: this.nodes.popoverContainer.getBoundingClientRect(),
|
|
2829
2802
|
popoverSize: n,
|
|
2830
2803
|
scopeBounds: this.scopeElement.getBoundingClientRect(),
|
|
@@ -2861,7 +2834,7 @@ var Lr = class e extends Pr {
|
|
|
2861
2834
|
calculatePosition() {
|
|
2862
2835
|
var e, t, n;
|
|
2863
2836
|
let r = (e = this.params.position) == null ? (t = this.trigger) == null ? void 0 : t.getBoundingClientRect() : e;
|
|
2864
|
-
return r ?
|
|
2837
|
+
return r ? Or({
|
|
2865
2838
|
anchor: r,
|
|
2866
2839
|
popoverSize: this.size,
|
|
2867
2840
|
scopeBounds: this.scopeElement.getBoundingClientRect(),
|
|
@@ -2900,14 +2873,14 @@ var Lr = class e extends Pr {
|
|
|
2900
2873
|
t instanceof Node && this.nestedPopover !== void 0 && this.nestedPopover !== null && this.nestedPopover.hasNode(t) || (this.destroyNestedPopoverIfExists(!1), this.previouslyHoveredItem = null);
|
|
2901
2874
|
}
|
|
2902
2875
|
getTargetItem(e) {
|
|
2903
|
-
return (this.promotedItemCache === null ? this.items : [...this.items, ...this.promotedItemCache.items]).filter((e) => e instanceof
|
|
2876
|
+
return (this.promotedItemCache === null ? this.items : [...this.items, ...this.promotedItemCache.items]).filter((e) => e instanceof G || e instanceof J).find((t) => {
|
|
2904
2877
|
let n = t.getElement();
|
|
2905
2878
|
return n === null ? !1 : e.composedPath().includes(n);
|
|
2906
2879
|
});
|
|
2907
2880
|
}
|
|
2908
2881
|
setTriggerItemPosition(e, t) {
|
|
2909
|
-
let n = t.getElement(), r = (n ? n.offsetTop : 0) - this.scrollTop, i = this.offsetTop + r,
|
|
2910
|
-
(
|
|
2882
|
+
let n = t.getElement(), r = (n ? n.offsetTop : 0) - this.scrollTop, i = this.offsetTop + r, o = e.querySelector(`[${a.popover}]`);
|
|
2883
|
+
(o instanceof HTMLElement ? o : e).style.setProperty(Q.TriggerItemTop, i + "px");
|
|
2911
2884
|
}
|
|
2912
2885
|
destroyNestedPopoverIfExists(e = !0) {
|
|
2913
2886
|
var t, n, r;
|
|
@@ -2949,27 +2922,27 @@ var Lr = class e extends Pr {
|
|
|
2949
2922
|
}), this.nestedPopover.show(), (r = this.flipper) == null || r.deactivate(), this.nestedPopover;
|
|
2950
2923
|
}
|
|
2951
2924
|
applyNestedPopoverPositioning(e) {
|
|
2952
|
-
let t = e.querySelector(`[${
|
|
2925
|
+
let t = e.querySelector(`[${a.popoverContainer}]`);
|
|
2953
2926
|
if (!(t instanceof HTMLElement)) return;
|
|
2954
|
-
let n = t, r = e.querySelector(`[${
|
|
2955
|
-
this.nodes.popover.hasAttribute(
|
|
2956
|
-
let
|
|
2927
|
+
let n = t, r = e.querySelector(`[${a.popover}]`), i = r instanceof HTMLElement ? r : e;
|
|
2928
|
+
this.nodes.popover.hasAttribute(a.popoverOpenTop);
|
|
2929
|
+
let o = this.nodes.popover.hasAttribute(a.popoverOpenLeft);
|
|
2957
2930
|
n.style.position = "absolute";
|
|
2958
|
-
let
|
|
2959
|
-
|
|
2931
|
+
let s = this.params.width === void 0 || this.params.width === "auto" ? `${this.nodes.popoverContainer.offsetWidth}px` : "var(--width)";
|
|
2932
|
+
o ? i.style.setProperty(Q.PopoverLeft, `calc(-1 * (var(--nesting-level) + 1) * ${s} + 100%)`) : i.style.setProperty(Q.PopoverLeft, `calc(var(--nesting-level) * (${s} - var(--nested-popover-overlap)))`), n.style.top = "calc(var(--trigger-item-top) - var(--popover-height) / 2 + var(--item-height) / 2)";
|
|
2960
2933
|
}
|
|
2961
2934
|
get size() {
|
|
2962
2935
|
var e;
|
|
2963
2936
|
if (this._size) return this._size;
|
|
2964
|
-
let
|
|
2937
|
+
let t = {
|
|
2965
2938
|
height: 0,
|
|
2966
2939
|
width: 0
|
|
2967
2940
|
};
|
|
2968
|
-
if (this.nodes.popover === null) return
|
|
2969
|
-
let
|
|
2970
|
-
|
|
2971
|
-
let i =
|
|
2972
|
-
return i.className =
|
|
2941
|
+
if (this.nodes.popover === null) return t;
|
|
2942
|
+
let n = this.nodes.popover.cloneNode(!0);
|
|
2943
|
+
n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "-1000px", n.setAttribute(a.popoverOpened, "true"), (e = n.querySelector(`[${a.nested}]`)) == null || e.remove();
|
|
2944
|
+
let i = n.querySelector(`[${a.popoverContainer}]`);
|
|
2945
|
+
return i.className = r(i.className, Z.popoverContainerOpened), document.body.appendChild(n), t.height = i.offsetHeight, t.width = i.offsetWidth, n.remove(), this._size = t, t;
|
|
2973
2946
|
}
|
|
2974
2947
|
invalidateSizeCache() {
|
|
2975
2948
|
this._size = void 0;
|
|
@@ -2978,11 +2951,11 @@ var Lr = class e extends Pr {
|
|
|
2978
2951
|
return this.items.flatMap((e) => this.getFlippableElementsForItem(e)).filter((e) => e != null);
|
|
2979
2952
|
}
|
|
2980
2953
|
getFlippableElementsForItem(e) {
|
|
2981
|
-
if (e instanceof
|
|
2954
|
+
if (e instanceof J) {
|
|
2982
2955
|
let t = e.getElement();
|
|
2983
2956
|
return t ? [t] : [];
|
|
2984
2957
|
}
|
|
2985
|
-
if (!(e instanceof
|
|
2958
|
+
if (!(e instanceof G) || e.isDisabled) return [];
|
|
2986
2959
|
let t = e.getElement();
|
|
2987
2960
|
return t ? [t] : [];
|
|
2988
2961
|
}
|
|
@@ -2996,15 +2969,15 @@ var Lr = class e extends Pr {
|
|
|
2996
2969
|
collectPromotedChildren(e, t, n) {
|
|
2997
2970
|
for (let a of e) {
|
|
2998
2971
|
var r, i;
|
|
2999
|
-
if (!(a instanceof
|
|
2972
|
+
if (!(a instanceof G) || !a.hasChildren) continue;
|
|
3000
2973
|
let e = (r = (i = a.title) == null ? a.name : i) == null ? "" : r, o = [...t, e];
|
|
3001
2974
|
this.collectDefaultChildren(a.children, o, n);
|
|
3002
2975
|
}
|
|
3003
2976
|
}
|
|
3004
2977
|
collectDefaultChildren(e, t, n) {
|
|
3005
2978
|
for (let r of e) {
|
|
3006
|
-
if (r.type !== void 0 && r.type !==
|
|
3007
|
-
let e = new
|
|
2979
|
+
if (r.type !== void 0 && r.type !== N.Default) continue;
|
|
2980
|
+
let e = new G(r);
|
|
3008
2981
|
if (e.name !== void 0 && this.isNamePermanentlyHidden(e.name)) {
|
|
3009
2982
|
e.destroy();
|
|
3010
2983
|
continue;
|
|
@@ -3024,7 +2997,7 @@ var Lr = class e extends Pr {
|
|
|
3024
2997
|
}
|
|
3025
2998
|
createGroupSeparator(e) {
|
|
3026
2999
|
let t = document.createElement("div");
|
|
3027
|
-
return t.setAttribute(
|
|
3000
|
+
return t.setAttribute(a.promotedGroupLabel, ""), t.setAttribute("role", "separator"), t.className = "px-3 pt-2.5 pb-1 text-[11px] font-medium uppercase tracking-wide text-gray-text/50 cursor-default", t.textContent = e, t;
|
|
3028
3001
|
}
|
|
3029
3002
|
appendPromotedGroupElements(e) {
|
|
3030
3003
|
for (let { item: n } of e) {
|
|
@@ -3038,13 +3011,13 @@ var Lr = class e extends Pr {
|
|
|
3038
3011
|
deduplicateAgainstPromoted(e, t) {
|
|
3039
3012
|
let n = /* @__PURE__ */ new Set();
|
|
3040
3013
|
for (let { item: e } of t) e.title !== void 0 && n.add(e.title.toLowerCase());
|
|
3041
|
-
return e.filter((e) => !(e instanceof
|
|
3014
|
+
return e.filter((e) => !(e instanceof G) || e.title === void 0 ? !0 : !n.has(e.title.toLowerCase()));
|
|
3042
3015
|
}
|
|
3043
3016
|
addSearch() {
|
|
3044
|
-
this.search = new
|
|
3017
|
+
this.search = new Sr({
|
|
3045
3018
|
items: this.itemsDefault,
|
|
3046
3019
|
placeholder: this.messages.search
|
|
3047
|
-
}), this.search.on(
|
|
3020
|
+
}), this.search.on(xr.Search, (e) => {
|
|
3048
3021
|
if (e.query === "") {
|
|
3049
3022
|
this.cleanupPromotedItems(), this.onSearch({
|
|
3050
3023
|
query: e.query,
|
|
@@ -3058,7 +3031,7 @@ var Lr = class e extends Pr {
|
|
|
3058
3031
|
var r;
|
|
3059
3032
|
return {
|
|
3060
3033
|
item: n,
|
|
3061
|
-
score:
|
|
3034
|
+
score: Y(n, e.query),
|
|
3062
3035
|
chain: (r = t.get(n)) == null ? [] : r
|
|
3063
3036
|
};
|
|
3064
3037
|
}).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score);
|
|
@@ -3083,12 +3056,12 @@ var Lr = class e extends Pr {
|
|
|
3083
3056
|
this.promotedItemCache === null && (this.promotedItemCache = this.buildPromotedItemCache());
|
|
3084
3057
|
let t = this.itemsDefault.map((t) => ({
|
|
3085
3058
|
item: t,
|
|
3086
|
-
score:
|
|
3059
|
+
score: Y(t, e)
|
|
3087
3060
|
})).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score), { parentChains: n } = this.promotedItemCache, r = this.promotedItemCache.items.map((t) => {
|
|
3088
3061
|
var r;
|
|
3089
3062
|
return {
|
|
3090
3063
|
item: t,
|
|
3091
|
-
score:
|
|
3064
|
+
score: Y(t, e),
|
|
3092
3065
|
chain: (r = n.get(t)) == null ? [] : r
|
|
3093
3066
|
};
|
|
3094
3067
|
}).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score);
|
|
@@ -3113,17 +3086,17 @@ var Lr = class e extends Pr {
|
|
|
3113
3086
|
this.originalItemOrder = void 0;
|
|
3114
3087
|
}
|
|
3115
3088
|
}
|
|
3116
|
-
},
|
|
3117
|
-
let t =
|
|
3089
|
+
}, Ar = function(e) {
|
|
3090
|
+
let t = E.make("div");
|
|
3118
3091
|
return t.style.display = "flex", t.style.flexDirection = "column", t.style.gap = "4px", e.forEach((e) => {
|
|
3119
|
-
let n =
|
|
3092
|
+
let n = E.make("div"), r = e.indexOf(" ");
|
|
3120
3093
|
if (r > 0) {
|
|
3121
|
-
let t = e.substring(0, r), i = e.substring(r), a =
|
|
3094
|
+
let t = e.substring(0, r), i = e.substring(r), a = E.make("span", null, { textContent: t });
|
|
3122
3095
|
a.style.color = "white", n.appendChild(a), n.appendChild(document.createTextNode(i));
|
|
3123
3096
|
} else n.appendChild(document.createTextNode(e));
|
|
3124
3097
|
t.appendChild(n);
|
|
3125
3098
|
}), t;
|
|
3126
|
-
},
|
|
3099
|
+
}, jr, Mr = class {
|
|
3127
3100
|
constructor({ api: e }) {
|
|
3128
3101
|
this.i18nAPI = e.i18n, this.blocksAPI = e.blocks, this.selectionAPI = e.selection, this.toolsAPI = e.tools, this.caretAPI = e.caret, this.i18nInstance = {
|
|
3129
3102
|
t: (e, t) => this.i18nAPI.t(e),
|
|
@@ -3132,11 +3105,11 @@ var Lr = class e extends Pr {
|
|
|
3132
3105
|
}
|
|
3133
3106
|
async render() {
|
|
3134
3107
|
var e = this;
|
|
3135
|
-
let t =
|
|
3108
|
+
let t = Ye.get();
|
|
3136
3109
|
if (t === null) return [];
|
|
3137
3110
|
let n = e.blocksAPI.getBlockByElement(t.anchorNode);
|
|
3138
3111
|
if (n === void 0) return [];
|
|
3139
|
-
let r = await
|
|
3112
|
+
let r = await Me(n, e.toolsAPI.getBlockTools());
|
|
3140
3113
|
if (r.length === 0) return [];
|
|
3141
3114
|
let i = r.reduce((t, r) => {
|
|
3142
3115
|
var i;
|
|
@@ -3144,7 +3117,7 @@ var Lr = class e extends Pr {
|
|
|
3144
3117
|
var a;
|
|
3145
3118
|
i.title !== void 0 && t.push({
|
|
3146
3119
|
icon: i.icon,
|
|
3147
|
-
title:
|
|
3120
|
+
title: Oe(e.i18nInstance, i, r.name),
|
|
3148
3121
|
name: (a = i.name) == null ? r.name : a,
|
|
3149
3122
|
closeOnActivate: !0,
|
|
3150
3123
|
onActivate: async () => {
|
|
@@ -3153,7 +3126,7 @@ var Lr = class e extends Pr {
|
|
|
3153
3126
|
}
|
|
3154
3127
|
});
|
|
3155
3128
|
}), t;
|
|
3156
|
-
}, []), a = await n.getActiveToolboxEntry(), o = a ?
|
|
3129
|
+
}, []), a = await n.getActiveToolboxEntry(), o = a ? Oe(e.i18nInstance, a, n.name) : ke(e.i18nInstance, n.name, ue(n.name)), s = !oe();
|
|
3157
3130
|
return {
|
|
3158
3131
|
name: "convert-to",
|
|
3159
3132
|
title: o,
|
|
@@ -3171,10 +3144,10 @@ var Lr = class e extends Pr {
|
|
|
3171
3144
|
};
|
|
3172
3145
|
}
|
|
3173
3146
|
};
|
|
3174
|
-
|
|
3147
|
+
jr = Mr, jr.isInline = !0;
|
|
3175
3148
|
//#endregion
|
|
3176
3149
|
//#region src/tools/toggle/constants.ts
|
|
3177
|
-
var
|
|
3150
|
+
var Nr = "toggle", Pr = "tools.toggle.placeholder", Fr = "tools.toggle.bodyPlaceholder", Ir = "tools.toggle.ariaLabelCollapse", Lr = "tools.toggle.ariaLabelExpand", Rr = "outline-hidden py-[7px] mt-[2px] mb-px", zr = "outline-hidden pl-0.5 leading-[1.5] flex-1 min-w-0", Br = "flex items-center", Vr = "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", Hr = "<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>", Ur = "hidden pl-7 pt-[8px] pb-[8px] text-gray-text leading-[1.5] cursor-pointer select-none", Wr = "pl-7", Gr = {
|
|
3178
3151
|
toggleOpen: "data-blok-toggle-open",
|
|
3179
3152
|
toggleArrow: "data-blok-toggle-arrow",
|
|
3180
3153
|
toggleContent: "data-blok-toggle-content",
|
|
@@ -3182,4 +3155,4 @@ var Vr = "toggle", Hr = "tools.toggle.placeholder", Ur = "tools.toggle.bodyPlace
|
|
|
3182
3155
|
toggleChildren: "data-blok-toggle-children"
|
|
3183
3156
|
};
|
|
3184
3157
|
//#endregion
|
|
3185
|
-
export {
|
|
3158
|
+
export { kn as $, a as $n, Et as $t, qn as A, de as An, Cn as At, Qn as B, ne as Bn, Ut as Bt, X as C, Ce as Cn, Sn as Ct, rn as D, ve as Dn, wn as Dt, W as E, xe as En, zn as Et, tr as F, oe as Fn, H as Ft, gn as G, ee as Gn, It as Gt, Zn as H, h as Hn, Lt as Ht, ar as I, ie as In, tn as It, yn as J, m as Jn, At as Jt, _n as K, u as Kn, Pt as Kt, nr as L, le as Ln, en as Lt, Fn as M, ae as Mn, Zt as Mt, nn as N, ce as Nn, Yt as Nt, Wn as O, w as On, In as Ot, Kn as P, se as Pn, Xt as Pt, An as Q, c as Qn, Ot as Qt, ir as R, te as Rn, Gt as Rt, Tr as S, Ee as Sn, On as St, G as T, be as Tn, Rn as Tt, er as U, g as Un, Rt as Ut, $n as V, b as Vn, R as Vt, Bn as W, _ as Wn, zt as Wt, xn as X, l as Xn, kt as Xt, bn as Y, f as Yn, jt as Yt, Hn as Z, s as Zn, Dt as Zt, Er as _, ke as _n, Un as _t, Rr as a, Re as an, Xn as at, Z as b, we as bn, sr as bt, zr as c, He as cn, Dn as ct, Wr as d, Fe as dn, sn as dt, P as en, o as er, jn as et, Br as f, Ie as fn, dn as ft, kr as g, je as gn, fn as gt, Ar as h, Ae as hn, cr as ht, Vr as i, Ye as in, an as it, Jn as j, ue as jn, Yn as jt, pn as k, T as kn, cn as kt, Pr as l, Le as ln, En as lt, Mr as m, Pe as mn, Gn as mt, Lr as n, $e as nn, Nn as nt, Fr as o, Ve as on, on as ot, Nr as p, Me as pn, or as pt, vn as q, p as qn, Nt as qt, Hr as r, N as rn, Pn as rt, Ur as s, ze as sn, Tn as st, Ir as t, mt as tn, Mn as tt, Gr as u, Ne as un, Vn as ut, $ as v, Oe as vn, un as vt, J as w, E as wn, Ln as wt, wr as x, Te as xn, ln as xt, Q as y, De as yn, hn as yt, rr as z, x as zn, B as zt };
|