@jackuait/blok 0.9.0 → 0.10.0-beta.10
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 +50 -2
- package/codemod/test.js +39 -6
- package/dist/blok.mjs +3 -3
- package/dist/chunks/_basePickBy-DISiGhsr.mjs +410 -0
- package/dist/chunks/_baseUniq-gAuHRtRF.mjs +1045 -0
- package/dist/chunks/_getTag-Aj56Wgor.mjs +26 -0
- package/dist/chunks/arc-D-pL2Ftf.mjs +80 -0
- package/dist/chunks/architecture-YZFGNWBL-CuqTb_ae.mjs +3 -0
- package/dist/chunks/architectureDiagram-Q4EWVU46-DS7mqjL2.mjs +4066 -0
- package/dist/chunks/array-BsrkCVSZ.mjs +6 -0
- package/dist/chunks/blockDiagram-DXYQGD6D-BTtcn4NG.mjs +3259 -0
- package/dist/chunks/{blok-RJ3hyzDH.mjs → blok-Bg3-zpSu.mjs} +2192 -2156
- package/dist/chunks/c-C6JXJf5K.mjs +5 -0
- package/dist/chunks/c4Diagram-AHTNJAMY-Y4Dcwcoo.mjs +2956 -0
- package/dist/chunks/ccount-C9Y7nqDe.mjs +10 -0
- package/dist/chunks/channel-Cln-eWE0.mjs +5 -0
- package/dist/chunks/chunk-2KRD3SAO-DkM7qh-k.mjs +20 -0
- package/dist/chunks/chunk-336JU56O-B17AtzlK.mjs +49 -0
- package/dist/chunks/chunk-426QAEUC-D6UAVUog.mjs +13 -0
- package/dist/chunks/chunk-4BX2VUAB-CgIkjF7Z.mjs +19 -0
- package/dist/chunks/chunk-4TB4RGXK-BUP4eON3.mjs +3250 -0
- package/dist/chunks/chunk-55IACEB6-zZ-IgaSt.mjs +8 -0
- package/dist/chunks/chunk-5FUZZQ4R-DsZnJYxM.mjs +3786 -0
- package/dist/chunks/chunk-5PVQY5BW-CORl9dnu.mjs +1692 -0
- package/dist/chunks/chunk-67CJDMHE-m0UKdcSH.mjs +20 -0
- package/dist/chunks/chunk-7N4EOEYR-DKNajFZd.mjs +29 -0
- package/dist/chunks/chunk-AA7GKIK3-BeLhNzKa.mjs +24 -0
- package/dist/chunks/chunk-BSJP7CBP-CJExmx8a.mjs +83 -0
- package/dist/chunks/chunk-CIAEETIT-CTikoJ19.mjs +20 -0
- package/dist/chunks/chunk-D6kmoKXy.mjs +20 -0
- package/dist/chunks/chunk-EDXVE4YY-DjInnnwb.mjs +26 -0
- package/dist/chunks/chunk-ENJZ2VHE-CIl5FRDA.mjs +566 -0
- package/dist/chunks/chunk-FMBD7UC4-DjV0W7UE.mjs +5 -0
- package/dist/chunks/chunk-FOC6F5B3-LmHCCWYY.mjs +20 -0
- package/dist/chunks/chunk-ICPOFSXX-BHZIN46A.mjs +3290 -0
- package/dist/chunks/chunk-K5T4RW27-BPZ6fFnW.mjs +16370 -0
- package/dist/chunks/chunk-KGLVRYIC-S1OQdW76.mjs +20 -0
- package/dist/chunks/chunk-LIHQZDEY-CjtyJlI6.mjs +55 -0
- package/dist/chunks/chunk-ORNJ4GCN-CdO0hAge.mjs +25 -0
- package/dist/chunks/chunk-OYMX7WX6-ApX8eV4o.mjs +2038 -0
- package/dist/chunks/chunk-QZHKN3VN-BGFuA6-k.mjs +12 -0
- package/dist/chunks/chunk-U2HBQHQK-B88ZUOTL.mjs +1875 -0
- package/dist/chunks/chunk-X2U36JSP-1VS5TyCr.mjs +68 -0
- package/dist/chunks/chunk-XPW4576I-BMupdrvo.mjs +1146 -0
- package/dist/chunks/chunk-YZCP3GAM-BQ7eEsm2.mjs +60 -0
- package/dist/chunks/chunk-ZZ45TVLE-D1xks9zd.mjs +33 -0
- package/dist/chunks/classDiagram-6PBFFD2Q-C59BZJxp.mjs +30 -0
- package/dist/chunks/classDiagram-v2-HSJHXN6E-7a0qeMsE.mjs +30 -0
- package/dist/chunks/clone-Ckjt1LtE.mjs +8 -0
- package/dist/chunks/{constants-A3iVmQL8.mjs → constants-D7zjGD5W.mjs} +529 -530
- package/dist/chunks/core-Bm6DWt7D.mjs +4501 -0
- package/dist/chunks/cose-bilkent-S5V4N54A-Bpcs2jA_.mjs +2246 -0
- package/dist/chunks/cpp-BdjvAny0.mjs +16 -0
- package/dist/chunks/csharp-YHxeHpeH.mjs +3 -0
- package/dist/chunks/css-DdLevFaX.mjs +3 -0
- package/dist/chunks/cytoscape.esm-BvD8wo00.mjs +18108 -0
- package/dist/chunks/dagre-CGNbYTKq.mjs +1536 -0
- package/dist/chunks/dagre-KV5264BT-DUD9ikgN.mjs +298 -0
- package/dist/chunks/dart-DrPWqfcC.mjs +3 -0
- package/dist/chunks/default-qigT1Xpq.mjs +4 -0
- package/dist/chunks/defaultLocale-ChuSeAxU.mjs +201 -0
- package/dist/chunks/diagram-5BDNPKRD-CZGfTYEe.mjs +112 -0
- package/dist/chunks/diagram-G4DWMVQ6-CuS0-h95.mjs +546 -0
- package/dist/chunks/diagram-MMDJMWI5-C-AEApYz.mjs +234 -0
- package/dist/chunks/diagram-TYMM5635-CiwAJVMq.mjs +144 -0
- package/dist/chunks/dist-Ctq-pyfb.mjs +59 -0
- package/dist/chunks/dockerfile-C68ALcaN.mjs +3 -0
- package/dist/chunks/engine-javascript-CJpnSvzf.mjs +2373 -0
- package/dist/chunks/erDiagram-SMLLAGMA-DeH5yck2.mjs +1712 -0
- package/dist/chunks/flowDiagram-DWJPFMVM-Cr6dwmQ5.mjs +4175 -0
- package/dist/chunks/ganttDiagram-T4ZO3ILL-K-divBg_.mjs +3083 -0
- package/dist/chunks/gitGraph-7Q5UKJZL-Dl-vQzrq.mjs +3 -0
- package/dist/chunks/gitGraphDiagram-UUTBAWPF-UytPZv72.mjs +792 -0
- package/dist/chunks/go-Fm5N96DN.mjs +3 -0
- package/dist/chunks/graphlib-Cye9EPNq.mjs +223 -0
- package/dist/chunks/graphql-BSnqmqgO.mjs +11 -0
- package/dist/chunks/html-BLNeZvnp.mjs +10 -0
- package/dist/chunks/{i18next-Ch0gVA3V.mjs → i18next-CXx5niYF.mjs} +1 -1
- package/dist/chunks/{i18next-loader-dH3UPF7S.mjs → i18next-loader-CwsYu0n6.mjs} +2 -2
- package/dist/chunks/info-OMHHGYJF-BOejJvJR.mjs +3 -0
- package/dist/chunks/infoDiagram-42DDH7IO-DuYnDbF3.mjs +29 -0
- package/dist/chunks/init-C6T-mugb.mjs +15 -0
- package/dist/chunks/ishikawaDiagram-UXIWVN3A-CHc59dLn.mjs +719 -0
- package/dist/chunks/java-83DWBpzu.mjs +5 -0
- package/dist/chunks/javascript-CBgeF1Xx.mjs +3 -0
- package/dist/chunks/journeyDiagram-VCZTEJTY-CD25C4_n.mjs +885 -0
- package/dist/chunks/json-BI17y-1H.mjs +3 -0
- package/dist/chunks/kanban-definition-6JOO6SKY-CTCT6N_p.mjs +980 -0
- package/dist/chunks/katex-CmTPfM0f.mjs +22026 -0
- package/dist/chunks/kotlin-DjnvsrfO.mjs +3 -0
- package/dist/chunks/latex-24n3TcOR.mjs +5 -0
- package/dist/chunks/{lightweight-i18n-1rbaxIZW.mjs → lightweight-i18n-Cvv8CWh4.mjs} +69 -2
- package/dist/chunks/line-Dct5pMmw.mjs +34 -0
- package/dist/chunks/linear-BRCpMvtr.mjs +289 -0
- package/dist/chunks/lua-DV0fuZWx.mjs +5 -0
- package/dist/chunks/markdown-BqQYT45f.mjs +3 -0
- package/dist/chunks/mdast-util-math-BlK2Zu-1.mjs +151 -0
- package/dist/chunks/mermaid-parser.core-CA3DKkuk.mjs +57 -0
- package/dist/chunks/mermaid-vF0cEnZ0.mjs +3 -0
- package/dist/chunks/mermaid.core-CA8nc1sZ.mjs +989 -0
- package/dist/{messages-DaOnbI6d.mjs → chunks/messages-8IHf7ZP3.mjs} +68 -1
- package/dist/chunks/{messages-C9aKfCro.mjs → messages-A_MkXDlG.mjs} +68 -1
- package/dist/{messages-BLEVLZve.mjs → chunks/messages-B0vPBsWq.mjs} +68 -1
- package/dist/chunks/{messages-C0hQPZmh2.mjs → messages-B2N4fUi72.mjs} +68 -1
- package/dist/{messages-HNAtlVax.mjs → chunks/messages-B4UMuyjT.mjs} +73 -6
- package/dist/chunks/{messages-DRUkmDVZ.mjs → messages-B9kmbUWV.mjs} +68 -1
- package/dist/{messages-Dbsx9m5q2.mjs → chunks/messages-BA8Iv99Y2.mjs} +68 -1
- package/dist/chunks/{messages-Da-SOTFW.mjs → messages-BAsb5CgZ.mjs} +68 -1
- package/dist/{messages-D1P0QGLz2.mjs → chunks/messages-BDZA10kl2.mjs} +68 -1
- package/dist/chunks/{messages-ComLU2T32.mjs → messages-BE6lHKwf.mjs} +68 -1
- package/dist/chunks/{messages-gaxTO-87.mjs → messages-BQYvBqm2.mjs} +68 -1
- package/dist/chunks/{messages-BwKs-9DF.mjs → messages-BSghd0ez.mjs} +68 -1
- package/dist/{messages-BPRR6TMf.mjs → chunks/messages-BUVhHx0q2.mjs} +68 -1
- package/dist/{messages-B7jZvo-m.mjs → chunks/messages-BVjoM7P0.mjs} +68 -1
- package/dist/{messages-C-4z1-Dh.mjs → chunks/messages-BXM80fdr2.mjs} +68 -1
- package/dist/{messages-Bm0nvUuj2.mjs → chunks/messages-BYlSMRkd.mjs} +68 -1
- package/dist/chunks/{messages-DLPrj3Dh.mjs → messages-BYxLFj7y.mjs} +68 -1
- package/dist/{messages-BRcLIBCd2.mjs → chunks/messages-BeFqtIrc2.mjs} +68 -1
- package/dist/{messages-zHkURG6V2.mjs → chunks/messages-Bfnq1xv4.mjs} +68 -1
- package/dist/chunks/{messages-Z762-GLL.mjs → messages-BhzzNkN-.mjs} +68 -1
- package/dist/chunks/{messages-COJ0CbVV2.mjs → messages-BjadX8jR2.mjs} +68 -1
- package/dist/{messages-B2ZwD4n9.mjs → chunks/messages-Bp8qin1R.mjs} +68 -1
- package/dist/chunks/{messages-DdEWnfAR.mjs → messages-Bphq_Bt3.mjs} +71 -4
- package/dist/{messages-CUDbNJG5.mjs → chunks/messages-Bxvi1ebN.mjs} +68 -1
- package/dist/chunks/{messages-B0t2L3bi.mjs → messages-C0HvoMPb.mjs} +68 -1
- package/dist/{messages-D6qfWi6H2.mjs → chunks/messages-C3aX3q0H.mjs} +68 -1
- package/dist/chunks/{messages-v9NkxRcL.mjs → messages-C6Mpiacw.mjs} +68 -1
- package/dist/chunks/{messages-CqZ9vFyx.mjs → messages-C7VGpihw.mjs} +69 -2
- package/dist/chunks/{messages-Yj4Q1_uX2.mjs → messages-CKBhDGI3.mjs} +69 -2
- package/dist/chunks/{messages-DxtnwNPo.mjs → messages-COO5xmcA.mjs} +68 -1
- package/dist/{messages-CZTcgUzd.mjs → chunks/messages-CSJ_zb3a2.mjs} +68 -1
- package/dist/{messages-A8aZS7d_2.mjs → chunks/messages-CSL-6xfb2.mjs} +68 -1
- package/dist/{messages-CxruHsuD2.mjs → chunks/messages-CVdpweyf2.mjs} +69 -2
- package/dist/{messages-D2Mf9z2D.mjs → chunks/messages-Cdf0W9H02.mjs} +68 -1
- package/dist/chunks/{messages-DAbCNake2.mjs → messages-Ck81cQkn2.mjs} +68 -1
- package/dist/chunks/{messages-Dyku8Cut.mjs → messages-Cmf6NhSC.mjs} +68 -1
- package/dist/chunks/{messages-DQ6bFum9.mjs → messages-Cs81Z_Bh.mjs} +68 -1
- package/dist/chunks/{messages-cegxHurd2.mjs → messages-Cu-Wevxs2.mjs} +68 -1
- package/dist/{messages-D2HwpoUE.mjs → chunks/messages-D3zojZ94.mjs} +69 -2
- package/dist/{messages-BfTBVFd9.mjs → chunks/messages-D55HRx5O2.mjs} +68 -1
- package/dist/chunks/{messages-Dl03jd4b2.mjs → messages-D9N2MvQx2.mjs} +68 -1
- package/dist/{messages-DfXh-i9o.mjs → chunks/messages-DG-4DPmP.mjs} +68 -1
- package/dist/chunks/{messages-DmJf9laH2.mjs → messages-DGL1ySqb2.mjs} +68 -1
- package/dist/chunks/{messages-DfU4yvkL.mjs → messages-DJoNVjqP.mjs} +68 -1
- package/dist/{messages-Bsd4ruEY.mjs → chunks/messages-DMVXnAYj.mjs} +70 -3
- package/dist/{messages-3WhPEFd7.mjs → chunks/messages-DOuS1Qge.mjs} +68 -1
- package/dist/chunks/{messages-B1kDfIN82.mjs → messages-DWu1r4gc2.mjs} +68 -1
- package/dist/{messages-Dtih3ffa2.mjs → chunks/messages-DlLXpgWM2.mjs} +68 -1
- package/dist/chunks/{messages-DKNULJpc.mjs → messages-DlonA3wa.mjs} +69 -2
- package/dist/{messages-C5pBfa_W.mjs → chunks/messages-Dr0Ekmbz.mjs} +81 -14
- package/dist/{messages-Du62vI49.mjs → chunks/messages-DzTk8bJ5.mjs} +68 -1
- package/dist/{messages-DNAp0U4l2.mjs → chunks/messages-FWfsxpBz.mjs} +68 -1
- package/dist/{messages-B2YeJw8s2.mjs → chunks/messages-G416eyjY.mjs} +68 -1
- package/dist/chunks/{messages-C5-aaU2b.mjs → messages-Je5YvxiY.mjs} +68 -1
- package/dist/chunks/{messages-DHHZUf_H2.mjs → messages-JyvWu4rf2.mjs} +68 -1
- package/dist/chunks/{messages-D_6vPBzT.mjs → messages-KdawW5Na.mjs} +68 -1
- package/dist/chunks/{messages-DnuhgHG0.mjs → messages-MxpWO1db.mjs} +68 -1
- package/dist/{messages-DT4rHATO2.mjs → chunks/messages-NEqrrYvE2.mjs} +68 -1
- package/dist/chunks/{messages-DeSSxLsh.mjs → messages-RInp1ytX.mjs} +68 -1
- package/dist/{messages-DfEPVRdJ.mjs → chunks/messages-TRUuyiFB.mjs} +68 -1
- package/dist/chunks/{messages--eH7tTJV2.mjs → messages-aZcy0JQq2.mjs} +68 -1
- package/dist/{messages-O6z1uabG.mjs → chunks/messages-iS34FHFB.mjs} +68 -1
- package/dist/{messages-BE0DjTEC.mjs → chunks/messages-ihCjSFJI2.mjs} +68 -1
- package/dist/chunks/{messages-_5Pg5fKy2.mjs → messages-jfVpL9c-2.mjs} +68 -1
- package/dist/chunks/{messages-CaRSYuhO.mjs → messages-p1mbe__S.mjs} +68 -1
- package/dist/chunks/{messages-BGssMBWM2.mjs → messages-rCd0Rrw6.mjs} +69 -2
- package/dist/{messages-COgvIEeW.mjs → chunks/messages-xuqyb6Ff2.mjs} +68 -1
- package/dist/chunks/micromark-extension-math-BbkUb36G.mjs +169 -0
- package/dist/chunks/micromark-factory-space-y4SDWQKm.mjs +36 -0
- package/dist/chunks/mindmap-definition-QFDTVHPH-hNnyBkEP.mjs +1013 -0
- package/dist/chunks/{notifier-Butv4Dvo.mjs → notifier-CuvTt9pe.mjs} +1 -1
- package/dist/chunks/objectWithoutProperties-D0XxKB4n.mjs +23 -0
- package/dist/chunks/one-light-DmNO_Y4X.mjs +4 -0
- package/dist/chunks/ordinal-B-kolV-i.mjs +65 -0
- package/dist/chunks/packet-4T2RLAQJ-B5ZMgwzZ.mjs +3 -0
- package/dist/chunks/path-rIMjg_tH.mjs +85 -0
- package/dist/chunks/php-DmXKyPwJ.mjs +18 -0
- package/dist/chunks/pie-ZZUOXDRM-B9l6y0XJ.mjs +3 -0
- package/dist/chunks/pieDiagram-DEJITSTG-Gw-fsc6U.mjs +179 -0
- package/dist/chunks/python-DfwfY9t5.mjs +3 -0
- package/dist/chunks/quadrantDiagram-34T5L4WZ-CQ5fGYI5.mjs +1960 -0
- package/dist/chunks/r-BD2D7qEW.mjs +5 -0
- package/dist/chunks/radar-PYXPWWZC-D5kYmUaB.mjs +3 -0
- package/dist/chunks/requirementDiagram-MS252O5E-DjWKB42c.mjs +2224 -0
- package/dist/chunks/rough.esm-cmMIcj7N.mjs +1353 -0
- package/dist/chunks/ruby-DdOo03Kg.mjs +33 -0
- package/dist/chunks/rust-DEDueB5R.mjs +3 -0
- package/dist/chunks/sankeyDiagram-XADWPNL6-BIN2evSB.mjs +909 -0
- package/dist/chunks/scala-CsjqvxE4.mjs +3 -0
- package/dist/chunks/sequenceDiagram-FGHM5R23-CQz2lMoS.mjs +4181 -0
- package/dist/chunks/shellscript-Bh5zEpnQ.mjs +3 -0
- package/dist/chunks/sql-D9CrOi1i.mjs +3 -0
- package/dist/chunks/src-DVJl6f6s.mjs +2149 -0
- package/dist/chunks/stateDiagram-FHFEXIEX-BIBFsF65.mjs +218 -0
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-BZUmAVw7.mjs +28 -0
- package/dist/chunks/swift-Dpyt0s2c.mjs +3 -0
- package/dist/chunks/timeline-definition-GMOUNBTQ-CzvQ7Lav.mjs +1084 -0
- package/dist/chunks/{tools-nT6zA9QL.mjs → tools-CrRhWn8L.mjs} +3043 -1303
- package/dist/chunks/treeView-SZITEDCU-BNtnNxpI.mjs +3 -0
- package/dist/chunks/treemap-W4RFUUIX-DYENULz2.mjs +3 -0
- package/dist/chunks/typescript-DO5cd4m8.mjs +5 -0
- package/dist/chunks/vennDiagram-DHZGUBPP-B0DmLQqe.mjs +1876 -0
- package/dist/chunks/vitesse-dark-CcorSKT2.mjs +4 -0
- package/dist/chunks/wardley-RL74JXVD-ByNHVBTb.mjs +3 -0
- package/dist/chunks/wardleyDiagram-NUSXRM2D-CzoKesUw.mjs +594 -0
- package/dist/chunks/xml-g8kXXALs.mjs +5 -0
- package/dist/chunks/xychartDiagram-5P7HB3ND-CixwR8r2.mjs +2017 -0
- package/dist/chunks/yaml-CrNNZyLb.mjs +3 -0
- package/dist/cli.mjs +1 -1
- package/dist/full.mjs +14 -14
- package/dist/locales.mjs +135 -68
- package/dist/markdown.mjs +3954 -0
- package/dist/{messages-D_CUdqU12.mjs → messages-5jvKxQNu2.mjs} +68 -1
- package/dist/{chunks/messages-CFfpHyTU.mjs → messages-7QD-X6XT2.mjs} +68 -1
- package/dist/{messages-CdX1odk_2.mjs → messages-96iaAUds2.mjs} +68 -1
- package/dist/{messages-C8ca-jEa.mjs → messages-B19o-Teb.mjs} +69 -2
- package/dist/{messages-I03yFhup.mjs → messages-B1ZUQagA.mjs} +68 -1
- package/dist/{chunks/messages-BSw88lIo2.mjs → messages-B7ieAJBd2.mjs} +68 -1
- package/dist/{messages-sNSXCkeB.mjs → messages-BECMxmfX.mjs} +68 -1
- package/dist/{messages-DgGZsxBB.mjs → messages-BIHc0KHY.mjs} +68 -1
- package/dist/{messages-yZj20Fvf.mjs → messages-BIoeoik5.mjs} +68 -1
- package/dist/{chunks/messages-D8JFu42v.mjs → messages-BJeGJksD.mjs} +68 -1
- package/dist/{messages-BSLErTnW2.mjs → messages-BRZX964b2.mjs} +68 -1
- package/dist/{chunks/messages-BW8arxf72.mjs → messages-BTQPpoM42.mjs} +68 -1
- package/dist/{messages-C52AiyVV.mjs → messages-BYNcD6uR.mjs} +68 -1
- package/dist/{messages-BxJv0qBn2.mjs → messages-BYmmMDrN2.mjs} +68 -1
- package/dist/{messages-CoCy2JIP.mjs → messages-BbYq1pk-.mjs} +68 -1
- package/dist/{messages-Cnz_SHE32.mjs → messages-BiUGXvYr2.mjs} +68 -1
- package/dist/{chunks/messages-Dl6SVT1Z.mjs → messages-BiiongNz2.mjs} +68 -1
- package/dist/{chunks/messages-C912bk5I.mjs → messages-Bm0Feca1.mjs} +69 -2
- package/dist/{chunks/messages-CTuCPqpJ.mjs → messages-BmAn22OX.mjs} +68 -1
- package/dist/{messages-DdiPWkV8.mjs → messages-Bq3F2Tp_.mjs} +68 -1
- package/dist/{chunks/messages-DJxXZi1D2.mjs → messages-BsycN_JI2.mjs} +68 -1
- package/dist/{chunks/messages-OdEuBvgf.mjs → messages-BwHs4cm1.mjs} +70 -3
- package/dist/{chunks/messages-C4ZAJzBh.mjs → messages-CJTy6JZt.mjs} +68 -1
- package/dist/{chunks/messages-D2OZ9dbO.mjs → messages-CR_L_UtK.mjs} +68 -1
- package/dist/{messages-ypuLZyw12.mjs → messages-CSUHBs4c2.mjs} +68 -1
- package/dist/{chunks/messages-BkES2MDr2.mjs → messages-CWIXvnDf2.mjs} +68 -1
- package/dist/{messages-Cpeko5kB.mjs → messages-CcF4y-E4.mjs} +68 -1
- package/dist/{messages-BmnC-s4X.mjs → messages-Ce6KVEbT.mjs} +68 -1
- package/dist/{messages-DTNfG4ZH.mjs → messages-Ci0KqX-J.mjs} +71 -4
- package/dist/{chunks/messages-CGh56r-H2.mjs → messages-CjbnogEC.mjs} +68 -1
- package/dist/{messages-B3jq5Hpa.mjs → messages-CmB406HW.mjs} +69 -2
- package/dist/{chunks/messages-BsZz1Hnn2.mjs → messages-CqXtJTpU.mjs} +68 -1
- package/dist/{messages-DL000FUf2.mjs → messages-D0aw5_0k2.mjs} +68 -1
- package/dist/{chunks/messages-Df2RYuup2.mjs → messages-D8FQWulF2.mjs} +68 -1
- package/dist/{messages-CxHn7cs2.mjs → messages-DBiVgUs2.mjs} +68 -1
- package/dist/{chunks/messages-Dsapm4K9.mjs → messages-DIJlIqlQ2.mjs} +68 -1
- package/dist/{chunks/messages-517llQmh.mjs → messages-DLX_iBDJ.mjs} +68 -1
- package/dist/{chunks/messages-BG8Nq35G.mjs → messages-DLlc9QPw.mjs} +68 -1
- package/dist/{messages-cokJPuUp2.mjs → messages-DMr62KiO2.mjs} +68 -1
- package/dist/{chunks/messages-Dkp-Eyu02.mjs → messages-DPA-mMWC2.mjs} +68 -1
- package/dist/{chunks/messages-7uCUVFea.mjs → messages-DTh9a8mR.mjs} +68 -1
- package/dist/{messages-VBFioL2M.mjs → messages-DY4IqlhY.mjs} +68 -1
- package/dist/{chunks/messages-C4X0xP3h.mjs → messages-DYTTu0O12.mjs} +68 -1
- package/dist/{messages-diSPQ2Da2.mjs → messages-DbySKTKt2.mjs} +69 -2
- package/dist/{chunks/messages-BGE43_6M.mjs → messages-Ddnj2iTG2.mjs} +68 -1
- package/dist/{chunks/messages-BtUqUzMG2.mjs → messages-DkLU_rWm.mjs} +68 -1
- package/dist/{messages-DSX2HaeN2.mjs → messages-Dl3Sv6Rq2.mjs} +68 -1
- package/dist/{chunks/messages-BDvpl6Ox.mjs → messages-Dl5Y2-Ia.mjs} +81 -14
- package/dist/{chunks/messages-C7plNvNE2.mjs → messages-DnG0ef8t2.mjs} +69 -2
- package/dist/{chunks/messages-qS8tM3Dk.mjs → messages-DnGJD4TL.mjs} +68 -1
- package/dist/{messages-Ct468oX22.mjs → messages-Dnp9N6RU2.mjs} +68 -1
- package/dist/{chunks/messages-CjIA--kO.mjs → messages-Dvn35ksS.mjs} +68 -1
- package/dist/{messages-BRxNqmJ8.mjs → messages-Dw__BcTj.mjs} +68 -1
- package/dist/{chunks/messages-0zhE8A9X.mjs → messages-Dy-Y_nEI.mjs} +68 -1
- package/dist/{chunks/messages-CCH4OETw2.mjs → messages-E_ZuzGDt.mjs} +68 -1
- package/dist/{chunks/messages-DZzoT0T_.mjs → messages-F2xRoY1w.mjs} +68 -1
- package/dist/{chunks/messages-zGdqNZbH.mjs → messages-Smt4GBbj.mjs} +73 -6
- package/dist/{messages-CvIxHHp92.mjs → messages-aMXpHt5X2.mjs} +68 -1
- package/dist/{messages-C8JVJUp12.mjs → messages-aWZH50vu2.mjs} +68 -1
- package/dist/{messages-Phrqr7a6.mjs → messages-dv19AkyJ.mjs} +68 -1
- package/dist/{chunks/messages-DngM4hda2.mjs → messages-hWwSRF-2.mjs} +68 -1
- package/dist/{messages-DpGo_Da5.mjs → messages-j7o5rT9s.mjs} +68 -1
- package/dist/{messages-C6WJx6Z0.mjs → messages-nUVjeh7K.mjs} +68 -1
- package/dist/{messages-CbVilNPE.mjs → messages-nlhESX9t.mjs} +68 -1
- package/dist/{messages-C6o0FVy02.mjs → messages-rk-A1Wa42.mjs} +69 -2
- package/dist/{messages-D4mCIODv.mjs → messages-xh2eOLvs.mjs} +68 -1
- package/dist/{chunks/messages-Ct9UUOrl2.mjs → messages-ynAe7ewZ.mjs} +68 -1
- package/dist/react.mjs +26 -25
- package/dist/tools.mjs +3 -3
- package/dist/vendor.LICENSE.txt +5404 -80
- package/package.json +16 -1
- package/src/components/blocks.ts +26 -1
- package/src/components/constants/data-attributes.ts +2 -2
- package/src/components/i18n/locales/am/messages.json +68 -1
- package/src/components/i18n/locales/ar/messages.json +68 -1
- package/src/components/i18n/locales/az/messages.json +68 -1
- package/src/components/i18n/locales/bg/messages.json +68 -1
- package/src/components/i18n/locales/bn/messages.json +68 -1
- package/src/components/i18n/locales/bs/messages.json +69 -2
- package/src/components/i18n/locales/cs/messages.json +70 -3
- package/src/components/i18n/locales/da/messages.json +71 -4
- package/src/components/i18n/locales/de/messages.json +73 -6
- package/src/components/i18n/locales/dv/messages.json +68 -1
- package/src/components/i18n/locales/el/messages.json +68 -1
- package/src/components/i18n/locales/en/messages.json +68 -1
- package/src/components/i18n/locales/es/messages.json +68 -1
- package/src/components/i18n/locales/et/messages.json +69 -2
- package/src/components/i18n/locales/fa/messages.json +68 -1
- package/src/components/i18n/locales/fi/messages.json +68 -1
- package/src/components/i18n/locales/fil/messages.json +81 -14
- package/src/components/i18n/locales/fr/messages.json +68 -1
- package/src/components/i18n/locales/gu/messages.json +68 -1
- package/src/components/i18n/locales/he/messages.json +68 -1
- package/src/components/i18n/locales/hi/messages.json +68 -1
- package/src/components/i18n/locales/hr/messages.json +69 -2
- package/src/components/i18n/locales/hu/messages.json +68 -1
- package/src/components/i18n/locales/hy/messages.json +68 -1
- package/src/components/i18n/locales/id/messages.json +68 -1
- package/src/components/i18n/locales/it/messages.json +68 -1
- package/src/components/i18n/locales/ja/messages.json +68 -1
- package/src/components/i18n/locales/ka/messages.json +68 -1
- package/src/components/i18n/locales/km/messages.json +68 -1
- package/src/components/i18n/locales/kn/messages.json +68 -1
- package/src/components/i18n/locales/ko/messages.json +68 -1
- package/src/components/i18n/locales/ku/messages.json +68 -1
- package/src/components/i18n/locales/lo/messages.json +68 -1
- package/src/components/i18n/locales/lt/messages.json +68 -1
- package/src/components/i18n/locales/lv/messages.json +68 -1
- package/src/components/i18n/locales/mk/messages.json +68 -1
- package/src/components/i18n/locales/ml/messages.json +68 -1
- package/src/components/i18n/locales/mn/messages.json +68 -1
- package/src/components/i18n/locales/mr/messages.json +68 -1
- package/src/components/i18n/locales/ms/messages.json +69 -2
- package/src/components/i18n/locales/my/messages.json +68 -1
- package/src/components/i18n/locales/ne/messages.json +68 -1
- package/src/components/i18n/locales/nl/messages.json +68 -1
- package/src/components/i18n/locales/no/messages.json +68 -1
- package/src/components/i18n/locales/pa/messages.json +68 -1
- package/src/components/i18n/locales/pl/messages.json +68 -1
- package/src/components/i18n/locales/ps/messages.json +68 -1
- package/src/components/i18n/locales/pt/messages.json +68 -1
- package/src/components/i18n/locales/ro/messages.json +68 -1
- package/src/components/i18n/locales/ru/messages.json +68 -1
- package/src/components/i18n/locales/sd/messages.json +68 -1
- package/src/components/i18n/locales/si/messages.json +68 -1
- package/src/components/i18n/locales/sk/messages.json +69 -2
- package/src/components/i18n/locales/sl/messages.json +69 -2
- package/src/components/i18n/locales/sq/messages.json +68 -1
- package/src/components/i18n/locales/sr/messages.json +68 -1
- package/src/components/i18n/locales/sv/messages.json +68 -1
- package/src/components/i18n/locales/sw/messages.json +68 -1
- package/src/components/i18n/locales/ta/messages.json +68 -1
- package/src/components/i18n/locales/te/messages.json +68 -1
- package/src/components/i18n/locales/th/messages.json +68 -1
- package/src/components/i18n/locales/tr/messages.json +68 -1
- package/src/components/i18n/locales/ug/messages.json +68 -1
- package/src/components/i18n/locales/uk/messages.json +68 -1
- package/src/components/i18n/locales/ur/messages.json +68 -1
- package/src/components/i18n/locales/vi/messages.json +68 -1
- package/src/components/i18n/locales/yi/messages.json +68 -1
- package/src/components/i18n/locales/zh/messages.json +68 -1
- package/src/components/icons/index.ts +78 -0
- 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/ui.ts +0 -3
- package/src/components/modules/blockEvents/composers/blockSelectionKeys.ts +20 -3
- 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/renderer.ts +17 -0
- package/src/components/modules/ui.ts +1 -13
- package/src/components/ui/toolbox.ts +9 -0
- package/src/components/utils/caret/boundaries.ts +15 -4
- package/src/components/utils/popover/popover-desktop.ts +11 -0
- 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 +57 -2
- package/src/tools/callout/constants.ts +2 -1
- package/src/tools/callout/emoji-picker/index.ts +41 -2
- package/src/tools/callout/index.ts +25 -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 +11 -2
- package/src/tools/header/index.ts +2 -0
- package/src/tools/index.ts +6 -0
- 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/list/style-config.ts +3 -0
- package/src/tools/paragraph/index.ts +1 -0
- package/src/tools/quote/index.ts +229 -0
- 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 +220 -14
- package/src/tools/table/table-cell-blocks.ts +51 -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 +87 -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/src/tools/toggle/index.ts +1 -0
- package/types/configs/blok-config.d.ts +7 -0
- package/types/data-attributes.d.ts +0 -1
- package/types/markdown.d.ts +2 -0
- package/types/tools/callout.d.ts +16 -0
- package/types/tools/code.d.ts +13 -0
- package/types/tools/quote.d.ts +13 -0
- package/types/tools/tool-settings.d.ts +7 -0
- package/types/tools-entry.d.ts +7 -0
- /package/dist/chunks/{am-CHDDMHkd.mjs → am-BxlkYGsI.mjs} +0 -0
- /package/dist/chunks/{ar-DoqfNqut.mjs → ar-9vlpr9V8.mjs} +0 -0
- /package/dist/chunks/{az-C34P9iEa.mjs → az-ON63W_FP.mjs} +0 -0
- /package/dist/chunks/{bg-jroXLY8Y.mjs → bg-CtXWTP5w.mjs} +0 -0
- /package/dist/chunks/{bn-BRI-WqxY.mjs → bn-BERvhXM4.mjs} +0 -0
- /package/dist/chunks/{bs-CCGUpNHu.mjs → bs-CBg8NVPG.mjs} +0 -0
- /package/dist/chunks/{cs-D5qZOGuc.mjs → cs-DeQddxS7.mjs} +0 -0
- /package/dist/chunks/{da-DrJ7W37K.mjs → da-DyTo-ec_.mjs} +0 -0
- /package/dist/chunks/{de-BW6-kp2c.mjs → de-Cu7545m1.mjs} +0 -0
- /package/dist/chunks/{el-C-Vc_Otu.mjs → el-oiubLRBq.mjs} +0 -0
- /package/dist/chunks/{es-B6fI5K9i.mjs → es-DZUC6Klv.mjs} +0 -0
- /package/dist/chunks/{et-BhVlZ-Yz.mjs → et-CDeklAog.mjs} +0 -0
- /package/dist/chunks/{fa-D55Ijdqa.mjs → fa-Cafp7_Li.mjs} +0 -0
- /package/dist/chunks/{fi-jNLjhKUQ.mjs → fi-BD_V_aVW.mjs} +0 -0
- /package/dist/chunks/{fil-DYd0T5aX.mjs → fil-Crsfbtx4.mjs} +0 -0
- /package/dist/chunks/{fr-yxy5xWw_.mjs → fr-BGGc04Zv.mjs} +0 -0
- /package/dist/chunks/{gu-CcY_LJe7.mjs → gu-Vg_BgCTp.mjs} +0 -0
- /package/dist/chunks/{he-DL9s7wNw.mjs → he-DTY9chlZ.mjs} +0 -0
- /package/dist/chunks/{hi-C8eGXgw5.mjs → hi-DChMXk0x.mjs} +0 -0
- /package/dist/chunks/{hr-DLpybOhU.mjs → hr-BWVgNU8k.mjs} +0 -0
- /package/dist/chunks/{hu-BkT0gT00.mjs → hu-B37awHXA.mjs} +0 -0
- /package/dist/chunks/{hy-CVFDCp2S.mjs → hy-DGC_GDHh.mjs} +0 -0
- /package/dist/chunks/{id-0P4W9Az0.mjs → id-V7cw6La2.mjs} +0 -0
- /package/dist/chunks/{it-mLY6_uoW.mjs → it-DrTGP8Rn.mjs} +0 -0
- /package/dist/chunks/{ja-7RkeRNWG.mjs → ja-DS4pbJEG.mjs} +0 -0
- /package/dist/chunks/{ka-C7Lx-Qsh.mjs → ka-BueyosRh.mjs} +0 -0
- /package/dist/chunks/{km-Q8udaraH.mjs → km-B0K891yW.mjs} +0 -0
- /package/dist/chunks/{kn-BiETM-iq.mjs → kn-BQ__skg8.mjs} +0 -0
- /package/dist/chunks/{ko-tiB80pF1.mjs → ko-BuPxi_7e.mjs} +0 -0
- /package/dist/chunks/{ku-CY-OABkR.mjs → ku-nQjwPRw2.mjs} +0 -0
- /package/dist/chunks/{lo-CTBhEnyk.mjs → lo-K5NVFoq1.mjs} +0 -0
- /package/dist/chunks/{lt-BHKHEtqK.mjs → lt-D3xD6Eb2.mjs} +0 -0
- /package/dist/chunks/{lv-DWxgtfUg.mjs → lv-DH13mzZj.mjs} +0 -0
- /package/dist/chunks/{mk-BjookGdx.mjs → mk-Bb48BcDA.mjs} +0 -0
- /package/dist/chunks/{ml-L-NnZcp9.mjs → ml-BHPEj1kD.mjs} +0 -0
- /package/dist/chunks/{mn-OMWi7Hl_.mjs → mn-BNGzpdI6.mjs} +0 -0
- /package/dist/chunks/{mr-B6JPzITo.mjs → mr-D5PgU-cH.mjs} +0 -0
- /package/dist/chunks/{ms-CG3S-sPB.mjs → ms-DPkxqKz5.mjs} +0 -0
- /package/dist/chunks/{my-BLAmGfhT.mjs → my-DZGcyfxy.mjs} +0 -0
- /package/dist/chunks/{native-BPcABu9z.mjs → native-D0cfLXsM.mjs} +0 -0
- /package/dist/chunks/{ne-D1JHLfYw.mjs → ne-BU_Wh4Wv.mjs} +0 -0
- /package/dist/chunks/{nl-Ca7Q8FnY.mjs → nl-DtAPk1mK.mjs} +0 -0
- /package/dist/chunks/{no-Coxcohcz.mjs → no-CdW3n3BY.mjs} +0 -0
- /package/dist/chunks/{objectSpread2-CyPxu8-u.mjs → objectSpread2-CWwMYL_U.mjs} +0 -0
- /package/dist/chunks/{pa-CCaXqpaI.mjs → pa-BacCHz87.mjs} +0 -0
- /package/dist/chunks/{pl-Cl_fAZ84.mjs → pl-8zBJbmhZ.mjs} +0 -0
- /package/dist/chunks/{ps-WD5qGAWy.mjs → ps-c6nGXD-W.mjs} +0 -0
- /package/dist/chunks/{pt-C4zvLfvq.mjs → pt-B5yR8Qhr.mjs} +0 -0
- /package/dist/chunks/{ro-DbefHcmM.mjs → ro-Nscylsqb.mjs} +0 -0
- /package/dist/chunks/{ru-uU1J14jd.mjs → ru-DxERQkVJ.mjs} +0 -0
- /package/dist/chunks/{sd-DKu368Ip.mjs → sd-5z-QY3q9.mjs} +0 -0
- /package/dist/chunks/{si-BsJCiPkZ.mjs → si-DTL0mzrx.mjs} +0 -0
- /package/dist/chunks/{sk-CD-a3SN6.mjs → sk-DrGczTvY.mjs} +0 -0
- /package/dist/chunks/{sl-CXhrPJe_.mjs → sl-D8nJjig4.mjs} +0 -0
- /package/dist/chunks/{sq-CTctCoFQ.mjs → sq-C74Hm3YL.mjs} +0 -0
- /package/dist/chunks/{sr-BZkhBwXj.mjs → sr-DAwB05Gj.mjs} +0 -0
- /package/dist/chunks/{sv-NmRZb_xi.mjs → sv-BkHBsN4y.mjs} +0 -0
- /package/dist/chunks/{sw-Be5ik3H6.mjs → sw-BBQLTq_z.mjs} +0 -0
- /package/dist/chunks/{ta-DsXh6neL.mjs → ta-DRRzdKky.mjs} +0 -0
- /package/dist/chunks/{te-CwpCbM8M.mjs → te-CedXLsKM.mjs} +0 -0
- /package/dist/chunks/{th-CcZ15OLk.mjs → th-DDOlGA0W.mjs} +0 -0
- /package/dist/chunks/{tr-q3bTgvhW.mjs → tr-ClgvwOlL.mjs} +0 -0
- /package/dist/chunks/{tw-DmW6-pCY.mjs → tw-CqxBf-1Y.mjs} +0 -0
- /package/dist/chunks/{ug-919EhLsL.mjs → ug-bXxwiinM.mjs} +0 -0
- /package/dist/chunks/{uk-aNMEzd0Y.mjs → uk-Dp46o_VT.mjs} +0 -0
- /package/dist/chunks/{ur-BwQI77sh.mjs → ur-MfEEhdFq.mjs} +0 -0
- /package/dist/chunks/{vi-Dxq806-F.mjs → vi-bt-3LPGO.mjs} +0 -0
- /package/dist/chunks/{zh-BcHuy1Ti.mjs → zh-Dgyb5Ly8.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",
|
|
@@ -26,7 +18,7 @@ var r = Object.create, i = Object.defineProperty, a = Object.getOwnPropertyDescr
|
|
|
26
18
|
selected: "data-blok-selected",
|
|
27
19
|
stretched: "data-blok-stretched",
|
|
28
20
|
empty: "data-blok-empty",
|
|
29
|
-
|
|
21
|
+
contentAlign: "data-blok-content-align",
|
|
30
22
|
rtl: "data-blok-rtl",
|
|
31
23
|
dragging: "data-blok-dragging",
|
|
32
24
|
draggingMulti: "data-blok-dragging-multi",
|
|
@@ -104,7 +96,7 @@ var r = Object.create, i = Object.defineProperty, a = Object.getOwnPropertyDescr
|
|
|
104
96
|
slashSearch: "data-blok-slash-search",
|
|
105
97
|
testid: "data-blok-testid",
|
|
106
98
|
forceHover: "data-blok-force-hover"
|
|
107
|
-
},
|
|
99
|
+
}, o = (e, t) => t === void 0 ? `[${e}]` : `[${e}="${t}"]`, s = {
|
|
108
100
|
BACKSPACE: 8,
|
|
109
101
|
TAB: 9,
|
|
110
102
|
ENTER: 13,
|
|
@@ -131,15 +123,15 @@ var r = Object.create, i = Object.defineProperty, a = Object.getOwnPropertyDescr
|
|
|
131
123
|
BRACKET_KEY_MAX: 223,
|
|
132
124
|
PROCESSING_KEY: 229,
|
|
133
125
|
SLASH: 191
|
|
134
|
-
},
|
|
126
|
+
}, c = {
|
|
135
127
|
LEFT: 0,
|
|
136
128
|
WHEEL: 1,
|
|
137
129
|
RIGHT: 2,
|
|
138
130
|
BACKWARD: 3,
|
|
139
131
|
FORWARD: 4
|
|
140
|
-
},
|
|
132
|
+
}, l = () => "0.10.0-beta.10", u = /* @__PURE__ */ function(e) {
|
|
141
133
|
return e.VERBOSE = "VERBOSE", e.INFO = "INFO", e.WARN = "WARN", e.ERROR = "ERROR", e;
|
|
142
|
-
}({}),
|
|
134
|
+
}({}), d = (e, t, n = "log", r, i = "color: inherit") => {
|
|
143
135
|
let a = typeof console > "u" ? void 0 : console;
|
|
144
136
|
if (!a || typeof a[n] != "function") return;
|
|
145
137
|
let o = [
|
|
@@ -148,40 +140,40 @@ var r = Object.create, i = Object.defineProperty, a = Object.getOwnPropertyDescr
|
|
|
148
140
|
"warn",
|
|
149
141
|
"error"
|
|
150
142
|
].includes(n), s = [];
|
|
151
|
-
switch (
|
|
152
|
-
case
|
|
153
|
-
case
|
|
143
|
+
switch (d.logLevel) {
|
|
144
|
+
case u.VERBOSE: break;
|
|
145
|
+
case u.ERROR:
|
|
154
146
|
if (n !== "error") return;
|
|
155
147
|
break;
|
|
156
|
-
case
|
|
148
|
+
case u.WARN:
|
|
157
149
|
if (!["error", "warn"].includes(n)) return;
|
|
158
150
|
break;
|
|
159
|
-
case
|
|
151
|
+
case u.INFO:
|
|
160
152
|
if (!o || e) return;
|
|
161
153
|
break;
|
|
162
154
|
}
|
|
163
155
|
r && s.push(r);
|
|
164
|
-
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];
|
|
165
157
|
try {
|
|
166
|
-
a[n](...
|
|
158
|
+
a[n](...p);
|
|
167
159
|
} catch (e) {}
|
|
168
160
|
};
|
|
169
|
-
|
|
170
|
-
var
|
|
171
|
-
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
},
|
|
175
|
-
|
|
176
|
-
},
|
|
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) => {
|
|
177
169
|
if (typeof e != "object" || !e) return !1;
|
|
178
170
|
let t = Object.getPrototypeOf(e);
|
|
179
171
|
return t === null || t === Object.prototype;
|
|
180
|
-
},
|
|
172
|
+
}, _ = (e) => typeof e == "string", v = (e) => typeof e == "boolean", y = (e) => typeof e == "number", ee = function(e) {
|
|
181
173
|
return e === void 0;
|
|
182
|
-
},
|
|
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) {
|
|
183
175
|
setTimeout(() => e.apply(this, n), t);
|
|
184
|
-
},
|
|
176
|
+
}, te = (e, t, n) => {
|
|
185
177
|
let r = { timeoutId: null };
|
|
186
178
|
return function(...i) {
|
|
187
179
|
let a = () => {
|
|
@@ -189,7 +181,7 @@ var ee = (e) => {
|
|
|
189
181
|
}, o = n === !0 && r.timeoutId === null;
|
|
190
182
|
r.timeoutId !== null && clearTimeout(r.timeoutId), r.timeoutId = setTimeout(a, t), o && e.apply(this, i);
|
|
191
183
|
};
|
|
192
|
-
},
|
|
184
|
+
}, ne = (e, t, n) => {
|
|
193
185
|
let r = (n == null ? void 0 : n.leading) !== !1, i = (n == null ? void 0 : n.trailing) !== !1, a = {
|
|
194
186
|
lastCallTime: void 0,
|
|
195
187
|
lastInvokeTime: 0,
|
|
@@ -220,79 +212,79 @@ var ee = (e) => {
|
|
|
220
212
|
let n = Date.now(), i = c(n);
|
|
221
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;
|
|
222
214
|
};
|
|
223
|
-
},
|
|
215
|
+
}, S = (() => {
|
|
224
216
|
try {
|
|
225
217
|
return Function("return this")();
|
|
226
218
|
} catch (e) {
|
|
227
219
|
return;
|
|
228
220
|
}
|
|
229
221
|
})();
|
|
230
|
-
|
|
231
|
-
var
|
|
232
|
-
if (
|
|
233
|
-
},
|
|
234
|
-
if (
|
|
235
|
-
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();
|
|
236
228
|
return e == null ? void 0 : e.navigator;
|
|
237
|
-
},
|
|
229
|
+
}, ie = (e) => /^[-\w]+\/([-+\w]+|\*)$/.test(e), ae = () => {
|
|
238
230
|
var e, t;
|
|
239
231
|
let n = {
|
|
240
232
|
win: !1,
|
|
241
233
|
mac: !1,
|
|
242
234
|
x11: !1,
|
|
243
235
|
linux: !1
|
|
244
|
-
}, 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;
|
|
245
237
|
return a === void 0 || (n[a] = !0), n;
|
|
246
|
-
},
|
|
247
|
-
let e =
|
|
238
|
+
}, oe = () => {
|
|
239
|
+
let e = C();
|
|
248
240
|
return !e || typeof e.matchMedia != "function" ? !1 : e.matchMedia("(max-width: 650px)").matches;
|
|
249
|
-
},
|
|
241
|
+
}, se = (() => {
|
|
250
242
|
var e;
|
|
251
|
-
let t =
|
|
243
|
+
let t = re();
|
|
252
244
|
if (!t) return !1;
|
|
253
245
|
let n = t.userAgent || "", r = t.userAgentData, i = r == null ? void 0 : r.platform;
|
|
254
246
|
if (/iP(ad|hone|od)/.test(n) || i !== void 0 && i !== "" && /iP(ad|hone|od)/.test(i)) return !0;
|
|
255
247
|
let a = ((e = t.maxTouchPoints) == null ? 0 : e) > 1, o = () => t.platform, s = i !== void 0 && i !== "" ? i : void 0;
|
|
256
248
|
return (a ? s == null ? o() : s : void 0) === "MacIntel";
|
|
257
|
-
})(),
|
|
249
|
+
})(), ce = (e) => {
|
|
258
250
|
try {
|
|
259
251
|
return new URL(e).href;
|
|
260
252
|
} catch (e) {}
|
|
261
|
-
let t =
|
|
253
|
+
let t = C();
|
|
262
254
|
return e.substring(0, 2) === "//" ? t ? `${t.location.protocol}${e}` : e : t ? `${t.location.origin}${e}` : e;
|
|
263
|
-
},
|
|
264
|
-
let t =
|
|
255
|
+
}, le = (e) => {
|
|
256
|
+
let t = C();
|
|
265
257
|
t && t.open(e, "_blank");
|
|
266
|
-
},
|
|
267
|
-
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, " + ");
|
|
268
260
|
return t.mac ? n.replace(/ctrl|cmd/gi, "⌘").replace(/alt/gi, "⌥") : n.replace(/cmd/gi, "Ctrl").replace(/windows/gi, "WIN");
|
|
269
|
-
},
|
|
270
|
-
let r =
|
|
271
|
-
return Object.keys(
|
|
272
|
-
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];
|
|
273
265
|
if (i !== void 0) {
|
|
274
|
-
if (
|
|
275
|
-
r[e] =
|
|
266
|
+
if (g(i) && g(n) && !Array.isArray(i)) {
|
|
267
|
+
r[e] = fe(n, i);
|
|
276
268
|
return;
|
|
277
269
|
}
|
|
278
270
|
r[e] = i;
|
|
279
271
|
}
|
|
280
272
|
}), r;
|
|
281
|
-
},
|
|
282
|
-
if (!
|
|
283
|
-
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);
|
|
284
276
|
return Object.assign(e, n), e;
|
|
285
|
-
},
|
|
277
|
+
}, pe = (e, t) => e.length === t.length ? e.every((e, n) => T(e, t[n])) : !1, T = (e, t) => {
|
|
286
278
|
if (e === t) return !0;
|
|
287
279
|
if (e === null || t === null || typeof e != "object" || typeof t != "object" || Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
288
|
-
if (Array.isArray(e) && Array.isArray(t)) return
|
|
280
|
+
if (Array.isArray(e) && Array.isArray(t)) return pe(e, t);
|
|
289
281
|
let n = Object.keys(e), r = Object.keys(t);
|
|
290
|
-
return n.length === r.length ? n.every((n) => Object.prototype.hasOwnProperty.call(t, n) &&
|
|
291
|
-
},
|
|
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) => {
|
|
292
284
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
293
|
-
for (; e--;) t +=
|
|
285
|
+
for (; e--;) t += me[n[e] & 63];
|
|
294
286
|
return t;
|
|
295
|
-
},
|
|
287
|
+
}, ge = 1e8, _e = 16, ve = () => he(10), ye = (e = "") => `${e}${Math.floor(Math.random() * ge).toString(_e)}`, E = class e {
|
|
296
288
|
static isSingleTag(e) {
|
|
297
289
|
return !!e.tagName && [
|
|
298
290
|
"AREA",
|
|
@@ -403,10 +395,10 @@ var T = () => {
|
|
|
403
395
|
return l ? this.getDeepestNode(l, n) : s.parentNode;
|
|
404
396
|
}
|
|
405
397
|
static isElement(e) {
|
|
406
|
-
return
|
|
398
|
+
return y(e) ? !1 : typeof e == "object" && !!e && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE;
|
|
407
399
|
}
|
|
408
400
|
static isFragment(e) {
|
|
409
|
-
return
|
|
401
|
+
return y(e) ? !1 : typeof e == "object" && !!e && "nodeType" in e && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE;
|
|
410
402
|
}
|
|
411
403
|
static isContentEditable(e) {
|
|
412
404
|
return e.contentEditable === "true";
|
|
@@ -458,7 +450,7 @@ var T = () => {
|
|
|
458
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(".");
|
|
459
451
|
}
|
|
460
452
|
static containsOnlyInlineElements(t) {
|
|
461
|
-
let n =
|
|
453
|
+
let n = _(t) ? (() => {
|
|
462
454
|
let e = document.createElement("div");
|
|
463
455
|
return e.innerHTML = t, e;
|
|
464
456
|
})() : t, r = (t) => !e.blockElements.includes(t.tagName.toLowerCase()) && Array.from(t.children).every(r);
|
|
@@ -468,7 +460,7 @@ var T = () => {
|
|
|
468
460
|
return e.containsOnlyInlineElements(t) ? [t] : Array.from(t.children).reduce((t, n) => [...t, ...e.getDeepestBlockElements(n)], []);
|
|
469
461
|
}
|
|
470
462
|
static getHolder(e) {
|
|
471
|
-
if (!
|
|
463
|
+
if (!_(e)) return e;
|
|
472
464
|
let t = document.getElementById(e);
|
|
473
465
|
if (t !== null) return t;
|
|
474
466
|
throw Error(`Element with id "${e}" not found`);
|
|
@@ -518,32 +510,32 @@ var T = () => {
|
|
|
518
510
|
offset: a
|
|
519
511
|
};
|
|
520
512
|
}
|
|
521
|
-
},
|
|
522
|
-
e.setAttribute("data-blok-empty",
|
|
523
|
-
},
|
|
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) => {
|
|
524
516
|
let t = [...new Set(e)];
|
|
525
517
|
for (let e of t) {
|
|
526
518
|
var n;
|
|
527
|
-
let t = (n =
|
|
528
|
-
|
|
519
|
+
let t = (n = D.get(e)) == null ? 0 : n;
|
|
520
|
+
D.set(e, t + 1);
|
|
529
521
|
}
|
|
530
522
|
let r = { cleanedUp: !1 };
|
|
531
523
|
return () => {
|
|
532
524
|
if (!r.cleanedUp) {
|
|
533
525
|
r.cleanedUp = !0;
|
|
534
526
|
for (let e of t) {
|
|
535
|
-
let t =
|
|
536
|
-
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));
|
|
537
529
|
}
|
|
538
530
|
}
|
|
539
531
|
};
|
|
540
|
-
},
|
|
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 {
|
|
541
533
|
constructor() {
|
|
542
534
|
this.allListeners = [];
|
|
543
535
|
}
|
|
544
536
|
on(e, t, n, r = !1) {
|
|
545
537
|
if (this.findOne(e, t, n, r)) return;
|
|
546
|
-
let i =
|
|
538
|
+
let i = ye("l"), a = {
|
|
547
539
|
id: i,
|
|
548
540
|
element: e,
|
|
549
541
|
eventType: t,
|
|
@@ -618,60 +610,60 @@ var T = () => {
|
|
|
618
610
|
let n = this.normalizeListenerOptions(e), r = this.normalizeListenerOptions(t);
|
|
619
611
|
return n.capture === r.capture && n.once === r.once && n.passive === r.passive && n.signal === r.signal;
|
|
620
612
|
}
|
|
621
|
-
},
|
|
613
|
+
}, O = (e, t) => {
|
|
622
614
|
if (!e.conversionConfig) return !1;
|
|
623
615
|
let n = e.conversionConfig[t];
|
|
624
|
-
return
|
|
625
|
-
},
|
|
616
|
+
return h(n) || _(n);
|
|
617
|
+
}, k = (e, t) => {
|
|
626
618
|
let n = t.includes(".") ? t : `toolNames.${t}`;
|
|
627
619
|
return e.has(n) ? e.t(n) : void 0;
|
|
628
|
-
},
|
|
629
|
-
let r = t.titleKey ?
|
|
620
|
+
}, Oe = (e, t, n = "") => {
|
|
621
|
+
let r = t.titleKey ? k(e, t.titleKey) : void 0;
|
|
630
622
|
if (r !== void 0) return r;
|
|
631
|
-
let i = t.title ?
|
|
623
|
+
let i = t.title ? k(e, t.title) : void 0;
|
|
632
624
|
if (i !== void 0) return i;
|
|
633
625
|
if (t.title) return t.title;
|
|
634
|
-
let a = n ?
|
|
626
|
+
let a = n ? k(e, n) : void 0;
|
|
635
627
|
return a == null ? n : a;
|
|
636
|
-
},
|
|
637
|
-
let r = t ?
|
|
628
|
+
}, ke = (e, t, n) => {
|
|
629
|
+
let r = t ? k(e, t) : void 0;
|
|
638
630
|
if (r !== void 0) return r;
|
|
639
|
-
let i =
|
|
631
|
+
let i = k(e, n);
|
|
640
632
|
return i == null ? n : i;
|
|
641
|
-
},
|
|
642
|
-
let r = (await
|
|
643
|
-
return i !== void 0 && !
|
|
644
|
-
if (!
|
|
645
|
-
let a = new Set(i.toolbox.map((e) => e.data).filter((e) => e !== void 0).flatMap((e) => Object.keys(e))), o = i.toolbox.filter((
|
|
646
|
-
if (
|
|
647
|
-
let n =
|
|
648
|
-
return !(n &&
|
|
649
|
-
let n =
|
|
650
|
-
return
|
|
651
|
-
}) || !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);
|
|
652
644
|
});
|
|
653
|
-
return o.length > 0 &&
|
|
645
|
+
return o.length > 0 && t.push(n(n({}, i), {}, { toolbox: o })), t;
|
|
654
646
|
}, []);
|
|
655
|
-
},
|
|
656
|
-
if (
|
|
657
|
-
if (
|
|
658
|
-
for (let
|
|
659
|
-
let
|
|
660
|
-
if (
|
|
661
|
-
}
|
|
662
|
-
let r = new Set(
|
|
663
|
-
return
|
|
664
|
-
if (!
|
|
665
|
-
let i =
|
|
666
|
-
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;
|
|
667
659
|
}, []);
|
|
668
|
-
},
|
|
660
|
+
}, Fe = (e, t) => {
|
|
669
661
|
let n = t == null ? void 0 : t.export;
|
|
670
|
-
return
|
|
671
|
-
},
|
|
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) => {
|
|
672
664
|
let r = t == null ? void 0 : t.import;
|
|
673
|
-
return
|
|
674
|
-
},
|
|
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 {
|
|
675
667
|
constructor() {
|
|
676
668
|
this.subscribers = {};
|
|
677
669
|
}
|
|
@@ -687,7 +679,7 @@ var T = () => {
|
|
|
687
679
|
this.subscribers[e].push(n);
|
|
688
680
|
}
|
|
689
681
|
emit(e, t) {
|
|
690
|
-
|
|
682
|
+
b(this.subscribers) || !this.subscribers[e] || this.subscribers[e].reduce((e, t) => {
|
|
691
683
|
let n = t(e);
|
|
692
684
|
return n === void 0 ? e : n;
|
|
693
685
|
}, t);
|
|
@@ -704,7 +696,7 @@ var T = () => {
|
|
|
704
696
|
destroy() {
|
|
705
697
|
this.subscribers = {};
|
|
706
698
|
}
|
|
707
|
-
},
|
|
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 {
|
|
708
700
|
static getAnchorNode() {
|
|
709
701
|
let e = window.getSelection();
|
|
710
702
|
return e ? e.anchorNode : null;
|
|
@@ -713,7 +705,7 @@ var T = () => {
|
|
|
713
705
|
let e = window.getSelection();
|
|
714
706
|
if (!e) return null;
|
|
715
707
|
let t = e.anchorNode;
|
|
716
|
-
return t ?
|
|
708
|
+
return t ? E.isElement(t) ? t : t.parentElement : null;
|
|
717
709
|
}
|
|
718
710
|
static getAnchorOffset() {
|
|
719
711
|
let e = window.getSelection();
|
|
@@ -725,7 +717,7 @@ var T = () => {
|
|
|
725
717
|
}
|
|
726
718
|
static isSelectionAtBlok(e) {
|
|
727
719
|
if (!e) return !1;
|
|
728
|
-
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;
|
|
729
721
|
return r ? r.nodeType === Node.ELEMENT_NODE : !1;
|
|
730
722
|
}
|
|
731
723
|
static getIsAtBlok() {
|
|
@@ -733,7 +725,7 @@ var T = () => {
|
|
|
733
725
|
}
|
|
734
726
|
static isRangeAtBlok(e) {
|
|
735
727
|
if (!e) return;
|
|
736
|
-
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;
|
|
737
729
|
return n ? n.nodeType === Node.ELEMENT_NODE : !1;
|
|
738
730
|
}
|
|
739
731
|
static getIsSelectionExists() {
|
|
@@ -756,8 +748,8 @@ var T = () => {
|
|
|
756
748
|
width: 0,
|
|
757
749
|
height: 0
|
|
758
750
|
}, t = window.getSelection();
|
|
759
|
-
if (!t) return
|
|
760
|
-
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;
|
|
761
753
|
if (t.rangeCount === 0) return e;
|
|
762
754
|
let n = t.getRangeAt(0).cloneRange(), r = n.getBoundingClientRect();
|
|
763
755
|
if (r.x === 0 && r.y === 0) {
|
|
@@ -773,13 +765,13 @@ var T = () => {
|
|
|
773
765
|
let t = window.getSelection();
|
|
774
766
|
return (e = t == null ? void 0 : t.toString()) == null ? "" : e;
|
|
775
767
|
}
|
|
776
|
-
},
|
|
768
|
+
}, Ue = class {
|
|
777
769
|
static setCursor(e, t = 0) {
|
|
778
|
-
let n = document.createRange(), r = window.getSelection(), i =
|
|
779
|
-
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());
|
|
780
772
|
}
|
|
781
773
|
static isRangeInsideContainer(e) {
|
|
782
|
-
let t =
|
|
774
|
+
let t = A.getRange();
|
|
783
775
|
return t === null ? !1 : e.contains(t.startContainer);
|
|
784
776
|
}
|
|
785
777
|
static collapseToEnd() {
|
|
@@ -788,7 +780,7 @@ var T = () => {
|
|
|
788
780
|
let t = document.createRange();
|
|
789
781
|
t.selectNodeContents(e.focusNode), t.collapse(!1), e.removeAllRanges(), e.addRange(t);
|
|
790
782
|
}
|
|
791
|
-
},
|
|
783
|
+
}, We, j = class {
|
|
792
784
|
static applyBoxShadowToWrapper(e) {
|
|
793
785
|
let t = e.parentElement;
|
|
794
786
|
if (!t) return;
|
|
@@ -852,10 +844,10 @@ var T = () => {
|
|
|
852
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(", ");
|
|
853
845
|
}
|
|
854
846
|
};
|
|
855
|
-
|
|
847
|
+
We = j, We.BG_COLOR = "rgba(0, 0, 0, 0.08)";
|
|
856
848
|
//#endregion
|
|
857
849
|
//#region src/components/selection/fake-background/text-nodes.ts
|
|
858
|
-
var
|
|
850
|
+
var Ge = class {
|
|
859
851
|
static collectTextNodes(e) {
|
|
860
852
|
let t = [], { commonAncestorContainer: n } = e;
|
|
861
853
|
if (n.nodeType === Node.TEXT_NODE) return t.push(n), t;
|
|
@@ -886,10 +878,10 @@ var Xe = class {
|
|
|
886
878
|
];
|
|
887
879
|
return n.slice(0, -1).map((t, r) => e.substring(t, n[r + 1])).filter((e) => e.length > 0);
|
|
888
880
|
}
|
|
889
|
-
},
|
|
881
|
+
}, M = class {
|
|
890
882
|
static wrapRangeWithHighlight(e) {
|
|
891
883
|
if (e.collapsed) return null;
|
|
892
|
-
let t =
|
|
884
|
+
let t = E.make("span");
|
|
893
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";
|
|
894
886
|
let n = e.extractContents();
|
|
895
887
|
return n.childNodes.length === 0 ? null : (t.appendChild(n), e.insertNode(t), t);
|
|
@@ -903,17 +895,17 @@ var Xe = class {
|
|
|
903
895
|
}
|
|
904
896
|
static splitMultiLineWrapper(e) {
|
|
905
897
|
let t = e.getClientRects();
|
|
906
|
-
if (t.length <= 1) return
|
|
898
|
+
if (t.length <= 1) return j.applyBoxShadowToWrapper(e), [e];
|
|
907
899
|
let n = e.textContent || "", r = e.parentNode;
|
|
908
|
-
if (!r || !n) return
|
|
900
|
+
if (!r || !n) return j.applyBoxShadowToWrapper(e), [e];
|
|
909
901
|
let i = [], a = e.firstChild;
|
|
910
|
-
if (!a || a.nodeType !== Node.TEXT_NODE) return
|
|
911
|
-
let o =
|
|
912
|
-
if (o.length === 0) return
|
|
913
|
-
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();
|
|
914
906
|
return s.forEach((e) => {
|
|
915
907
|
if (e.length === 0) return;
|
|
916
|
-
let t =
|
|
908
|
+
let t = E.make("span");
|
|
917
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);
|
|
918
910
|
}), r.replaceChild(c, e), i;
|
|
919
911
|
}
|
|
@@ -924,7 +916,7 @@ var Xe = class {
|
|
|
924
916
|
t.removeChild(e);
|
|
925
917
|
}
|
|
926
918
|
}
|
|
927
|
-
},
|
|
919
|
+
}, Ke = class {
|
|
928
920
|
constructor(e) {
|
|
929
921
|
this.selectionUtils = e;
|
|
930
922
|
}
|
|
@@ -934,7 +926,7 @@ var Xe = class {
|
|
|
934
926
|
if (!e || e.rangeCount === 0) return;
|
|
935
927
|
let t = e.getRangeAt(0);
|
|
936
928
|
if (t.collapsed) return;
|
|
937
|
-
let n =
|
|
929
|
+
let n = Ge.collectTextNodes(t);
|
|
938
930
|
if (n.length === 0) return;
|
|
939
931
|
let r = t.startContainer, i = t.startOffset, a = t.endContainer, o = t.endOffset, s = [];
|
|
940
932
|
if (n.forEach((e) => {
|
|
@@ -942,11 +934,11 @@ var Xe = class {
|
|
|
942
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;
|
|
943
935
|
if (d === p) return;
|
|
944
936
|
c.setStart(e, d), c.setEnd(e, p);
|
|
945
|
-
let m =
|
|
937
|
+
let m = M.wrapRangeWithHighlight(c);
|
|
946
938
|
m && s.push(m);
|
|
947
939
|
}), s.length === 0) return;
|
|
948
|
-
let c =
|
|
949
|
-
|
|
940
|
+
let c = M.postProcessHighlightWrappers(s);
|
|
941
|
+
j.applyLineHeightExtensions(c);
|
|
950
942
|
let l = document.createRange();
|
|
951
943
|
l.setStartBefore(c[0]), l.setEndAfter(c[c.length - 1]), this.selectionUtils.savedSelectionRange = l.cloneRange();
|
|
952
944
|
let u = window.getSelection();
|
|
@@ -957,7 +949,7 @@ var Xe = class {
|
|
|
957
949
|
}
|
|
958
950
|
removeOrphanedFakeBackgroundElements() {
|
|
959
951
|
document.querySelectorAll("[data-blok-fake-background=\"true\"]").forEach((e) => {
|
|
960
|
-
|
|
952
|
+
M.unwrapFakeBackground(e);
|
|
961
953
|
});
|
|
962
954
|
}
|
|
963
955
|
clearFakeBackground() {
|
|
@@ -968,28 +960,28 @@ var Xe = class {
|
|
|
968
960
|
if (e.length === 0) return;
|
|
969
961
|
let t = e[0], n = e[e.length - 1], r = t.firstChild, i = n.lastChild;
|
|
970
962
|
if (e.forEach((e) => {
|
|
971
|
-
|
|
963
|
+
M.unwrapFakeBackground(e);
|
|
972
964
|
}), r && i) {
|
|
973
965
|
var a;
|
|
974
966
|
let e = document.createRange();
|
|
975
967
|
e.setStart(r, 0), e.setEnd(i, ((a = i.textContent) == null ? void 0 : a.length) || 0), this.selectionUtils.savedSelectionRange = e;
|
|
976
968
|
}
|
|
977
969
|
}
|
|
978
|
-
},
|
|
970
|
+
}, qe = class {
|
|
979
971
|
static addFakeCursor() {
|
|
980
|
-
let e =
|
|
972
|
+
let e = A.getRange();
|
|
981
973
|
if (e === null) return;
|
|
982
|
-
let t =
|
|
983
|
-
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);
|
|
984
976
|
}
|
|
985
977
|
static isFakeCursorInsideContainer(e) {
|
|
986
|
-
return
|
|
978
|
+
return E.find(e, o(a.fakeCursor)) !== null;
|
|
987
979
|
}
|
|
988
980
|
static removeFakeCursor(e = document.body) {
|
|
989
|
-
let t =
|
|
981
|
+
let t = E.find(e, o(a.fakeCursor));
|
|
990
982
|
t && t.remove();
|
|
991
983
|
}
|
|
992
|
-
},
|
|
984
|
+
}, Je = class {
|
|
993
985
|
static findParentTag(e, t, n = 10) {
|
|
994
986
|
let r = window.getSelection();
|
|
995
987
|
if (!r || !r.anchorNode || !r.focusNode) return null;
|
|
@@ -1017,63 +1009,63 @@ var Xe = class {
|
|
|
1017
1009
|
let n = document.createRange();
|
|
1018
1010
|
n.selectNodeContents(e), t.addRange(n);
|
|
1019
1011
|
}
|
|
1020
|
-
},
|
|
1012
|
+
}, Ye = class {
|
|
1021
1013
|
constructor() {
|
|
1022
|
-
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);
|
|
1023
1015
|
}
|
|
1024
1016
|
static get anchorNode() {
|
|
1025
|
-
return
|
|
1017
|
+
return A.getAnchorNode();
|
|
1026
1018
|
}
|
|
1027
1019
|
static get anchorElement() {
|
|
1028
|
-
return
|
|
1020
|
+
return A.getAnchorElement();
|
|
1029
1021
|
}
|
|
1030
1022
|
static get anchorOffset() {
|
|
1031
|
-
return
|
|
1023
|
+
return A.getAnchorOffset();
|
|
1032
1024
|
}
|
|
1033
1025
|
static get isCollapsed() {
|
|
1034
|
-
return
|
|
1026
|
+
return A.getIsCollapsed();
|
|
1035
1027
|
}
|
|
1036
1028
|
static get isAtBlok() {
|
|
1037
|
-
return
|
|
1029
|
+
return A.getIsAtBlok();
|
|
1038
1030
|
}
|
|
1039
1031
|
static isSelectionAtBlok(e) {
|
|
1040
|
-
return
|
|
1032
|
+
return A.isSelectionAtBlok(e);
|
|
1041
1033
|
}
|
|
1042
1034
|
static isRangeAtBlok(e) {
|
|
1043
|
-
return
|
|
1035
|
+
return A.isRangeAtBlok(e);
|
|
1044
1036
|
}
|
|
1045
1037
|
static get isSelectionExists() {
|
|
1046
|
-
return
|
|
1038
|
+
return A.getIsSelectionExists();
|
|
1047
1039
|
}
|
|
1048
1040
|
static get range() {
|
|
1049
|
-
return
|
|
1041
|
+
return A.getRange();
|
|
1050
1042
|
}
|
|
1051
1043
|
static getRangeFromSelection(e) {
|
|
1052
|
-
return
|
|
1044
|
+
return A.getRangeFromSelection(e);
|
|
1053
1045
|
}
|
|
1054
1046
|
static get rect() {
|
|
1055
|
-
return
|
|
1047
|
+
return A.getRect();
|
|
1056
1048
|
}
|
|
1057
1049
|
static get text() {
|
|
1058
|
-
return
|
|
1050
|
+
return A.getText();
|
|
1059
1051
|
}
|
|
1060
1052
|
static get() {
|
|
1061
|
-
return
|
|
1053
|
+
return A.get();
|
|
1062
1054
|
}
|
|
1063
1055
|
static setCursor(e, t = 0) {
|
|
1064
|
-
return
|
|
1056
|
+
return Ue.setCursor(e, t);
|
|
1065
1057
|
}
|
|
1066
1058
|
static isRangeInsideContainer(e) {
|
|
1067
|
-
return
|
|
1059
|
+
return Ue.isRangeInsideContainer(e);
|
|
1068
1060
|
}
|
|
1069
1061
|
static addFakeCursor() {
|
|
1070
|
-
|
|
1062
|
+
qe.addFakeCursor();
|
|
1071
1063
|
}
|
|
1072
1064
|
static isFakeCursorInsideContainer(e) {
|
|
1073
|
-
return
|
|
1065
|
+
return qe.isFakeCursorInsideContainer(e);
|
|
1074
1066
|
}
|
|
1075
1067
|
static removeFakeCursor(e = document.body) {
|
|
1076
|
-
|
|
1068
|
+
qe.removeFakeCursor(e);
|
|
1077
1069
|
}
|
|
1078
1070
|
removeFakeBackground() {
|
|
1079
1071
|
this.fakeBackgroundManager.removeFakeBackground();
|
|
@@ -1088,7 +1080,7 @@ var Xe = class {
|
|
|
1088
1080
|
this.fakeBackgroundManager.setFakeBackground();
|
|
1089
1081
|
}
|
|
1090
1082
|
save() {
|
|
1091
|
-
this.savedSelectionRange =
|
|
1083
|
+
this.savedSelectionRange = A.getRange();
|
|
1092
1084
|
}
|
|
1093
1085
|
restore() {
|
|
1094
1086
|
if (!this.savedSelectionRange) return;
|
|
@@ -1099,17 +1091,17 @@ var Xe = class {
|
|
|
1099
1091
|
this.savedSelectionRange = null;
|
|
1100
1092
|
}
|
|
1101
1093
|
collapseToEnd() {
|
|
1102
|
-
|
|
1094
|
+
Ue.collapseToEnd();
|
|
1103
1095
|
}
|
|
1104
1096
|
findParentTag(e, t, n = 10) {
|
|
1105
|
-
return
|
|
1097
|
+
return Je.findParentTag(e, t, n);
|
|
1106
1098
|
}
|
|
1107
1099
|
expandToTag(e) {
|
|
1108
|
-
|
|
1100
|
+
Je.expandToTag(e);
|
|
1109
1101
|
}
|
|
1110
|
-
},
|
|
1102
|
+
}, N = /* @__PURE__ */ function(e) {
|
|
1111
1103
|
return e.Default = "default", e.Separator = "separator", e.Html = "html", e;
|
|
1112
|
-
}({}),
|
|
1104
|
+
}({}), Xe = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
1113
1105
|
(function(n, r) {
|
|
1114
1106
|
typeof define == "function" && define.amd ? define("html-janitor", r) : typeof e == "object" ? t.exports = r() : n.HTMLJanitor = r();
|
|
1115
1107
|
})(e, function() {
|
|
@@ -1197,129 +1189,129 @@ var Xe = class {
|
|
|
1197
1189
|
}
|
|
1198
1190
|
return e;
|
|
1199
1191
|
});
|
|
1200
|
-
})))()),
|
|
1201
|
-
let i =
|
|
1202
|
-
return
|
|
1203
|
-
}),
|
|
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) => {
|
|
1204
1196
|
let r = {}, i = e;
|
|
1205
1197
|
for (let a in e) {
|
|
1206
1198
|
if (!Object.prototype.hasOwnProperty.call(e, a)) continue;
|
|
1207
|
-
let o = i[a], s =
|
|
1208
|
-
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);
|
|
1209
1201
|
}
|
|
1210
1202
|
return r;
|
|
1211
|
-
},
|
|
1212
|
-
let r =
|
|
1213
|
-
return r ?
|
|
1214
|
-
},
|
|
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) => {
|
|
1215
1207
|
if (!e || e.indexOf("<") === -1) return e;
|
|
1216
1208
|
if (typeof document < "u") {
|
|
1217
1209
|
let t = document.createElement("template");
|
|
1218
1210
|
return t.innerHTML = e, t.content.querySelectorAll("[href],[src]").forEach((e) => {
|
|
1219
1211
|
["href", "src"].forEach((t) => {
|
|
1220
|
-
|
|
1212
|
+
at(e.getAttribute(t)) && e.removeAttribute(t);
|
|
1221
1213
|
});
|
|
1222
1214
|
}), t.innerHTML;
|
|
1223
1215
|
}
|
|
1224
|
-
return e.replace(
|
|
1225
|
-
},
|
|
1226
|
-
if (
|
|
1216
|
+
return e.replace(Qe, "");
|
|
1217
|
+
}, st = (e) => {
|
|
1218
|
+
if (b(e)) return {};
|
|
1227
1219
|
let t = {};
|
|
1228
|
-
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]));
|
|
1229
1221
|
return t;
|
|
1230
|
-
},
|
|
1222
|
+
}, ct = (e) => function(t) {
|
|
1231
1223
|
let n = e.call(this, t);
|
|
1232
1224
|
return n == null ? {} : n;
|
|
1233
|
-
},
|
|
1225
|
+
}, lt = new Set([
|
|
1234
1226
|
"class",
|
|
1235
1227
|
"id",
|
|
1236
1228
|
"title",
|
|
1237
1229
|
"role",
|
|
1238
1230
|
"dir",
|
|
1239
1231
|
"lang"
|
|
1240
|
-
]),
|
|
1232
|
+
]), ut = (e) => {
|
|
1241
1233
|
let t = e.toLowerCase();
|
|
1242
|
-
return t.startsWith("data-") || t.startsWith("aria-") ||
|
|
1243
|
-
},
|
|
1234
|
+
return t.startsWith("data-") || t.startsWith("aria-") || lt.has(t);
|
|
1235
|
+
}, dt = (e) => {
|
|
1244
1236
|
let t = {};
|
|
1245
1237
|
return Array.from(e.attributes).forEach((e) => {
|
|
1246
|
-
|
|
1238
|
+
ut(e.name) && (t[e.name] = !0);
|
|
1247
1239
|
}), t;
|
|
1248
|
-
},
|
|
1249
|
-
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);
|
|
1250
1242
|
let n = {};
|
|
1251
1243
|
for (let r in e) {
|
|
1252
1244
|
if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
|
|
1253
1245
|
let i = e[r], a = t ? t[r] : void 0;
|
|
1254
|
-
if (
|
|
1255
|
-
n[r] =
|
|
1246
|
+
if (h(a)) {
|
|
1247
|
+
n[r] = F(a);
|
|
1256
1248
|
continue;
|
|
1257
1249
|
}
|
|
1258
|
-
if (
|
|
1259
|
-
n[r] =
|
|
1250
|
+
if (h(i)) {
|
|
1251
|
+
n[r] = F(i);
|
|
1260
1252
|
continue;
|
|
1261
1253
|
}
|
|
1262
|
-
if (
|
|
1263
|
-
n[r] =
|
|
1254
|
+
if (g(i) && g(a)) {
|
|
1255
|
+
n[r] = w({}, a, i);
|
|
1264
1256
|
continue;
|
|
1265
1257
|
}
|
|
1266
1258
|
if (a !== void 0) {
|
|
1267
|
-
n[r] =
|
|
1259
|
+
n[r] = F(a);
|
|
1268
1260
|
continue;
|
|
1269
1261
|
}
|
|
1270
|
-
n[r] =
|
|
1262
|
+
n[r] = F(i);
|
|
1271
1263
|
}
|
|
1272
1264
|
if (!t) return n;
|
|
1273
|
-
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])));
|
|
1274
1266
|
return n;
|
|
1275
|
-
},
|
|
1276
|
-
if (
|
|
1277
|
-
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);
|
|
1278
1270
|
return t.forEach((e) => {
|
|
1279
1271
|
if (e) for (let t in e) {
|
|
1280
1272
|
if (!Object.prototype.hasOwnProperty.call(e, t)) continue;
|
|
1281
1273
|
let r = e[t];
|
|
1282
1274
|
if (!Object.prototype.hasOwnProperty.call(n, t)) continue;
|
|
1283
1275
|
let i = n[t];
|
|
1284
|
-
if (
|
|
1276
|
+
if (h(r)) {
|
|
1285
1277
|
n[t] = r;
|
|
1286
1278
|
continue;
|
|
1287
1279
|
}
|
|
1288
|
-
if (!(r === !0 &&
|
|
1280
|
+
if (!(r === !0 && h(i))) {
|
|
1289
1281
|
if (r === !0) {
|
|
1290
|
-
n[t] =
|
|
1282
|
+
n[t] = g(i) && !h(i) ? w({}, i) : F(r);
|
|
1291
1283
|
continue;
|
|
1292
1284
|
}
|
|
1293
|
-
if (
|
|
1294
|
-
n[t] =
|
|
1285
|
+
if (g(r) && g(i)) {
|
|
1286
|
+
n[t] = w({}, i, r);
|
|
1295
1287
|
continue;
|
|
1296
1288
|
}
|
|
1297
|
-
n[t] =
|
|
1289
|
+
n[t] = F(r);
|
|
1298
1290
|
}
|
|
1299
1291
|
}
|
|
1300
1292
|
}), n;
|
|
1301
|
-
},
|
|
1293
|
+
}, ht = (e, t) => {
|
|
1302
1294
|
if (typeof document > "u" || !e || e.indexOf("<") === -1) return e;
|
|
1303
|
-
let n = Object.entries(t).filter(([, e]) =>
|
|
1295
|
+
let n = Object.entries(t).filter(([, e]) => h(e));
|
|
1304
1296
|
if (n.length === 0) return e;
|
|
1305
1297
|
let r = document.createElement("template");
|
|
1306
1298
|
return r.innerHTML = e, n.forEach(([e, t]) => {
|
|
1307
1299
|
r.content.querySelectorAll(e).forEach((e) => {
|
|
1308
1300
|
let n = t(e);
|
|
1309
|
-
if (!(
|
|
1301
|
+
if (!(v(n) || h(n) || n == null)) for (let [t, r] of Object.entries(n)) {
|
|
1310
1302
|
if (r === !1) {
|
|
1311
1303
|
e.removeAttribute(t);
|
|
1312
1304
|
continue;
|
|
1313
1305
|
}
|
|
1314
|
-
r !== !0 &&
|
|
1306
|
+
r !== !0 && _(r) && e.setAttribute(t, r);
|
|
1315
1307
|
}
|
|
1316
1308
|
});
|
|
1317
1309
|
}), r.innerHTML;
|
|
1318
|
-
},
|
|
1310
|
+
}, gt, _t = 10, vt = "tooltip", yt = "aria-hidden", bt = "false", xt = "true", St = "visibility", Ct = "visible", wt = "hidden", Tt = class e {
|
|
1319
1311
|
get CSS() {
|
|
1320
1312
|
return {
|
|
1321
|
-
tooltip:
|
|
1322
|
-
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(" "),
|
|
1323
1315
|
tooltipShown: ["opacity-100"]
|
|
1324
1316
|
};
|
|
1325
1317
|
}
|
|
@@ -1330,7 +1322,7 @@ var Xe = class {
|
|
|
1330
1322
|
this.nodes = {
|
|
1331
1323
|
wrapper: null,
|
|
1332
1324
|
content: null
|
|
1333
|
-
}, 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 = () => {
|
|
1334
1326
|
this.showed && this.hide();
|
|
1335
1327
|
}, this.prepare(), window.addEventListener("scroll", this.handleWindowScroll, { passive: !0 });
|
|
1336
1328
|
}
|
|
@@ -1401,12 +1393,12 @@ var Xe = class {
|
|
|
1401
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;
|
|
1402
1394
|
}
|
|
1403
1395
|
prepare() {
|
|
1404
|
-
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());
|
|
1405
1397
|
}
|
|
1406
1398
|
updateTooltipVisibility() {
|
|
1407
1399
|
if (!this.nodes.wrapper) return;
|
|
1408
1400
|
let e = Array.isArray(this.CSS.tooltipShown) ? this.CSS.tooltipShown[0] : this.CSS.tooltipShown, t = this.nodes.wrapper.classList.contains(e);
|
|
1409
|
-
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");
|
|
1410
1402
|
}
|
|
1411
1403
|
watchTooltipVisibility() {
|
|
1412
1404
|
var e;
|
|
@@ -1418,7 +1410,7 @@ var Xe = class {
|
|
|
1418
1410
|
}));
|
|
1419
1411
|
}
|
|
1420
1412
|
ensureTooltipAttributes() {
|
|
1421
|
-
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());
|
|
1422
1414
|
}
|
|
1423
1415
|
placeBottom(e, t) {
|
|
1424
1416
|
var n;
|
|
@@ -1460,16 +1452,16 @@ var Xe = class {
|
|
|
1460
1452
|
Array.isArray(t) ? t.forEach((t) => e.appendChild(t)) : e.appendChild(t);
|
|
1461
1453
|
}
|
|
1462
1454
|
};
|
|
1463
|
-
|
|
1464
|
-
var
|
|
1465
|
-
|
|
1466
|
-
},
|
|
1467
|
-
|
|
1468
|
-
},
|
|
1469
|
-
|
|
1470
|
-
},
|
|
1471
|
-
|
|
1472
|
-
},
|
|
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 = () => {
|
|
1473
1465
|
var e, t;
|
|
1474
1466
|
let n = window.getSelection();
|
|
1475
1467
|
if (n === null) return [null, 0];
|
|
@@ -1480,7 +1472,7 @@ var R = () => At.getInstance(), jt = (e, t, n) => {
|
|
|
1480
1472
|
if (a !== void 0) return [a, 0];
|
|
1481
1473
|
let o = (e = r.childNodes[i - 1]) == null ? null : e, s = (t = o == null ? void 0 : o.textContent) == null ? null : t;
|
|
1482
1474
|
return [o, s === null ? 0 : s.length];
|
|
1483
|
-
},
|
|
1475
|
+
}, jt = (e) => {
|
|
1484
1476
|
var t;
|
|
1485
1477
|
let n = window.getSelection();
|
|
1486
1478
|
if (n === null || n.rangeCount === 0) return 0;
|
|
@@ -1488,35 +1480,35 @@ var R = () => At.getInstance(), jt = (e, t, n) => {
|
|
|
1488
1480
|
if (i == null) return 0;
|
|
1489
1481
|
let a = document.createRange();
|
|
1490
1482
|
return a.selectNodeContents(i), a.setEnd(r.startContainer, r.startOffset), a.toString().length;
|
|
1491
|
-
},
|
|
1483
|
+
}, Mt = (e, t, n, r) => {
|
|
1492
1484
|
let i = document.createRange();
|
|
1493
1485
|
r === "left" ? (i.selectNodeContents(e), i.setEnd(t, n)) : (i.selectNodeContents(e), i.setStart(t, n));
|
|
1494
1486
|
let a = i.cloneContents(), o = document.createElement("div");
|
|
1495
1487
|
o.appendChild(a);
|
|
1496
1488
|
let s = o.textContent || "";
|
|
1497
|
-
if (o.querySelectorAll("img, br, hr, input, area, base, col, embed, link, meta, param, source, track, wbr").length > 0) return !1;
|
|
1489
|
+
if (o.querySelectorAll("img, br, hr, input, area, base, col, embed, link, meta, param, source, track, wbr").length > 0 && !(r === "right" && o.querySelectorAll("img, hr, input, area, base, col, embed, link, meta, param, source, track, wbr").length === 0 && s.trim() === "")) return !1;
|
|
1498
1490
|
let c = s.includes("\xA0") || o.innerHTML.includes(" ") || i.toString().includes("\xA0"), l = t.nodeType === Node.TEXT_NODE && (r === "left" ? (t.textContent || "").slice(0, n) : (t.textContent || "").slice(n)).includes("\xA0");
|
|
1499
1491
|
if (c || l) return !1;
|
|
1500
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);
|
|
1501
1493
|
let u = o.getBoundingClientRect().width;
|
|
1502
|
-
return document.body.removeChild(o), !(u > 0 || !
|
|
1503
|
-
},
|
|
1494
|
+
return document.body.removeChild(o), !(u > 0 || !be(s) || window.getComputedStyle(e).whiteSpace.startsWith("pre") && s.length > 0);
|
|
1495
|
+
}, Nt = (e) => {
|
|
1504
1496
|
var t;
|
|
1505
|
-
let n =
|
|
1506
|
-
if (n === null ||
|
|
1507
|
-
if (
|
|
1508
|
-
if (
|
|
1509
|
-
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();
|
|
1510
1502
|
if (r === null) return !1;
|
|
1511
1503
|
let a = window.getSelection(), o = (t = a == null ? void 0 : a.focusNode) == null ? null : t;
|
|
1512
|
-
return o !== null && o !== e && !(o.nodeType === Node.TEXT_NODE && o.parentNode === e) ? !1 :
|
|
1513
|
-
},
|
|
1514
|
-
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);
|
|
1515
1507
|
if (t === null) return !0;
|
|
1516
|
-
if (
|
|
1517
|
-
let [n, r] =
|
|
1518
|
-
return n === null ? !1 :
|
|
1519
|
-
},
|
|
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 {
|
|
1520
1512
|
constructor(e, t) {
|
|
1521
1513
|
this.cursor = -1, this.items = [], this.items = e == null ? [] : e, this.focusedCssClass = t;
|
|
1522
1514
|
}
|
|
@@ -1546,16 +1538,16 @@ var R = () => At.getInstance(), jt = (e, t, n) => {
|
|
|
1546
1538
|
let n = t === e.directions.RIGHT ? -1 : 0, r = this.cursor === -1 ? n : this.cursor;
|
|
1547
1539
|
r !== -1 && (this.items[r].classList.remove(this.focusedCssClass), this.items[r].removeAttribute("data-blok-focused"));
|
|
1548
1540
|
let i = t === e.directions.RIGHT ? (r + 1) % this.items.length : (this.items.length + r - 1) % this.items.length;
|
|
1549
|
-
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;
|
|
1550
1542
|
}
|
|
1551
1543
|
};
|
|
1552
|
-
|
|
1544
|
+
Ft = L, Ft.directions = {
|
|
1553
1545
|
RIGHT: "right",
|
|
1554
1546
|
LEFT: "left"
|
|
1555
1547
|
};
|
|
1556
1548
|
//#endregion
|
|
1557
1549
|
//#region src/components/flipper.ts
|
|
1558
|
-
var
|
|
1550
|
+
var It = class e {
|
|
1559
1551
|
get isActivated() {
|
|
1560
1552
|
return this.activated;
|
|
1561
1553
|
}
|
|
@@ -1565,39 +1557,39 @@ var Vt = class e {
|
|
|
1565
1557
|
var n;
|
|
1566
1558
|
let r = t.target;
|
|
1567
1559
|
if (this.shouldSkipTarget(r, t)) return;
|
|
1568
|
-
let i = this.getKeyCode(t), a = i ===
|
|
1569
|
-
if (!(t.shiftKey && a) && this.isEventReadyForHandling(t) && !(i ===
|
|
1570
|
-
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:
|
|
1571
1563
|
this.handleTabPress(t);
|
|
1572
1564
|
break;
|
|
1573
|
-
case
|
|
1565
|
+
case s.LEFT:
|
|
1574
1566
|
this.onArrowLeftCallback && this.onArrowLeftCallback();
|
|
1575
1567
|
break;
|
|
1576
|
-
case
|
|
1568
|
+
case s.UP:
|
|
1577
1569
|
this.flipLeft();
|
|
1578
1570
|
break;
|
|
1579
|
-
case
|
|
1571
|
+
case s.RIGHT:
|
|
1580
1572
|
var o;
|
|
1581
1573
|
(o = this.iterator) != null && o.currentItem && this.currentItemHasChildren() && this.handleEnterPress(t);
|
|
1582
1574
|
break;
|
|
1583
|
-
case
|
|
1575
|
+
case s.DOWN:
|
|
1584
1576
|
this.flipRight();
|
|
1585
1577
|
break;
|
|
1586
|
-
case
|
|
1578
|
+
case s.ENTER:
|
|
1587
1579
|
this.handleEnterPress(t);
|
|
1588
1580
|
break;
|
|
1589
1581
|
case null: break;
|
|
1590
1582
|
}
|
|
1591
|
-
}, 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;
|
|
1592
1584
|
}
|
|
1593
1585
|
static get usedKeys() {
|
|
1594
1586
|
return [
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1587
|
+
s.TAB,
|
|
1588
|
+
s.LEFT,
|
|
1589
|
+
s.RIGHT,
|
|
1590
|
+
s.ENTER,
|
|
1591
|
+
s.UP,
|
|
1592
|
+
s.DOWN
|
|
1601
1593
|
];
|
|
1602
1594
|
}
|
|
1603
1595
|
activate(e, t) {
|
|
@@ -1658,12 +1650,12 @@ var Vt = class e {
|
|
|
1658
1650
|
getKeyCode(e) {
|
|
1659
1651
|
var t;
|
|
1660
1652
|
return (t = {
|
|
1661
|
-
Tab:
|
|
1662
|
-
Enter:
|
|
1663
|
-
ArrowLeft:
|
|
1664
|
-
ArrowRight:
|
|
1665
|
-
ArrowUp:
|
|
1666
|
-
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
|
|
1667
1659
|
}[e.key]) == null ? null : t;
|
|
1668
1660
|
}
|
|
1669
1661
|
isEventReadyForHandling(e) {
|
|
@@ -1677,16 +1669,16 @@ var Vt = class e {
|
|
|
1677
1669
|
return this.handleContentEditableTargets;
|
|
1678
1670
|
}
|
|
1679
1671
|
handleTabPress(e) {
|
|
1680
|
-
let t = e.shiftKey ?
|
|
1672
|
+
let t = e.shiftKey ? L.directions.LEFT : L.directions.RIGHT;
|
|
1681
1673
|
if (this.skipNextTabFocus) {
|
|
1682
1674
|
this.skipNextTabFocus = !1;
|
|
1683
1675
|
return;
|
|
1684
1676
|
}
|
|
1685
1677
|
switch (t) {
|
|
1686
|
-
case
|
|
1678
|
+
case L.directions.RIGHT:
|
|
1687
1679
|
this.flipRight();
|
|
1688
1680
|
break;
|
|
1689
|
-
case
|
|
1681
|
+
case L.directions.LEFT:
|
|
1690
1682
|
this.flipLeft();
|
|
1691
1683
|
break;
|
|
1692
1684
|
}
|
|
@@ -1696,7 +1688,7 @@ var Vt = class e {
|
|
|
1696
1688
|
}
|
|
1697
1689
|
handleEnterPress(e) {
|
|
1698
1690
|
var t, n;
|
|
1699
|
-
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));
|
|
1700
1692
|
}
|
|
1701
1693
|
scrollElementIntoView(e) {
|
|
1702
1694
|
let t = e;
|
|
@@ -1715,7 +1707,7 @@ var Vt = class e {
|
|
|
1715
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;
|
|
1716
1708
|
return n && !i || s || o;
|
|
1717
1709
|
}
|
|
1718
|
-
},
|
|
1710
|
+
}, Lt = [
|
|
1719
1711
|
{
|
|
1720
1712
|
name: "gray",
|
|
1721
1713
|
text: "#787774",
|
|
@@ -1761,7 +1753,7 @@ var Vt = class e {
|
|
|
1761
1753
|
text: "#d44c47",
|
|
1762
1754
|
bg: "#fdebec"
|
|
1763
1755
|
}
|
|
1764
|
-
],
|
|
1756
|
+
], Rt = [
|
|
1765
1757
|
{
|
|
1766
1758
|
name: "gray",
|
|
1767
1759
|
text: "#9b9b9b",
|
|
@@ -1808,12 +1800,12 @@ var Vt = class e {
|
|
|
1808
1800
|
bg: "#4e1a18"
|
|
1809
1801
|
}
|
|
1810
1802
|
];
|
|
1811
|
-
function
|
|
1803
|
+
function zt(e, t) {
|
|
1812
1804
|
return `var(--blok-color-${e}-${t})`;
|
|
1813
1805
|
}
|
|
1814
1806
|
//#endregion
|
|
1815
1807
|
//#region src/components/utils/color-mapping.ts
|
|
1816
|
-
function
|
|
1808
|
+
function Bt(e, t, n) {
|
|
1817
1809
|
let r = t / 100, i = n / 100;
|
|
1818
1810
|
if (r === 0) {
|
|
1819
1811
|
let e = Math.round(i * 255);
|
|
@@ -1833,7 +1825,7 @@ function Gt(e, t, n) {
|
|
|
1833
1825
|
Math.round(o(c, s, l - 1 / 3) * 255)
|
|
1834
1826
|
];
|
|
1835
1827
|
}
|
|
1836
|
-
function
|
|
1828
|
+
function R(e) {
|
|
1837
1829
|
let t = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);
|
|
1838
1830
|
if (t) return [
|
|
1839
1831
|
parseInt(t[1], 16),
|
|
@@ -1865,10 +1857,10 @@ function B(e) {
|
|
|
1865
1857
|
Number(a[3])
|
|
1866
1858
|
];
|
|
1867
1859
|
let o = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%\s*(?:,\s*[\d.]+\s*)?\)$/i.exec(e);
|
|
1868
|
-
return o ?
|
|
1860
|
+
return o ? Bt(Number(o[1]), Number(o[2]), Number(o[3])) : null;
|
|
1869
1861
|
}
|
|
1870
|
-
var
|
|
1871
|
-
function
|
|
1862
|
+
var Vt = .1;
|
|
1863
|
+
function z(e) {
|
|
1872
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;
|
|
1873
1865
|
if (i === a) return [
|
|
1874
1866
|
0,
|
|
@@ -1882,8 +1874,8 @@ function V(e) {
|
|
|
1882
1874
|
o
|
|
1883
1875
|
];
|
|
1884
1876
|
}
|
|
1885
|
-
function
|
|
1886
|
-
let n = e[1] <
|
|
1877
|
+
function Ht(e, t) {
|
|
1878
|
+
let n = e[1] < Vt, r = t[1] < Vt;
|
|
1887
1879
|
if (n && r) {
|
|
1888
1880
|
let n = Math.abs(e[2] - t[2]);
|
|
1889
1881
|
return n * n;
|
|
@@ -1892,14 +1884,14 @@ function qt(e, t) {
|
|
|
1892
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]);
|
|
1893
1885
|
return 8 * a * a + 1 * o * o + 1 * s * s;
|
|
1894
1886
|
}
|
|
1895
|
-
function
|
|
1896
|
-
let n =
|
|
1887
|
+
function B(e, t) {
|
|
1888
|
+
let n = R(e);
|
|
1897
1889
|
if (n === null) return e;
|
|
1898
|
-
let r =
|
|
1899
|
-
return
|
|
1900
|
-
let i =
|
|
1890
|
+
let r = z(n);
|
|
1891
|
+
return Lt.reduce((e, n) => {
|
|
1892
|
+
let i = R(n[t]);
|
|
1901
1893
|
if (i === null) return e;
|
|
1902
|
-
let a =
|
|
1894
|
+
let a = Ht(r, z(i));
|
|
1903
1895
|
return a < e.distance ? {
|
|
1904
1896
|
color: n[t],
|
|
1905
1897
|
distance: a
|
|
@@ -1909,14 +1901,14 @@ function H(e, t) {
|
|
|
1909
1901
|
distance: Infinity
|
|
1910
1902
|
}).color;
|
|
1911
1903
|
}
|
|
1912
|
-
function
|
|
1904
|
+
function Ut(e, t) {
|
|
1913
1905
|
var n;
|
|
1914
|
-
let r =
|
|
1906
|
+
let r = R(e);
|
|
1915
1907
|
if (r === null) return null;
|
|
1916
|
-
let i =
|
|
1917
|
-
let r =
|
|
1908
|
+
let i = z(r), a = [...Lt, ...Rt].reduce((e, n) => {
|
|
1909
|
+
let r = R(n[t]);
|
|
1918
1910
|
if (r === null) return e;
|
|
1919
|
-
let a =
|
|
1911
|
+
let a = Ht(i, z(r));
|
|
1920
1912
|
return e === null || a < e.distance ? {
|
|
1921
1913
|
name: n.name,
|
|
1922
1914
|
distance: a
|
|
@@ -1926,11 +1918,11 @@ function Jt(e, t) {
|
|
|
1926
1918
|
}
|
|
1927
1919
|
//#endregion
|
|
1928
1920
|
//#region src/tools/table/table-cell-clipboard.ts
|
|
1929
|
-
var
|
|
1930
|
-
function
|
|
1921
|
+
var V = "data-blok-table-cells";
|
|
1922
|
+
function Wt(e, t, n) {
|
|
1931
1923
|
return e ? `background-color: ${n}` : t ? "background-color: transparent" : "";
|
|
1932
1924
|
}
|
|
1933
|
-
function
|
|
1925
|
+
function Gt(e) {
|
|
1934
1926
|
if (e.length === 0) return {
|
|
1935
1927
|
rows: 0,
|
|
1936
1928
|
cols: 0,
|
|
@@ -1939,7 +1931,7 @@ function Xt(e) {
|
|
|
1939
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: [] })));
|
|
1940
1932
|
for (let r of e) {
|
|
1941
1933
|
let e = r.row - t, i = r.col - n;
|
|
1942
|
-
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);
|
|
1943
1935
|
}
|
|
1944
1936
|
return {
|
|
1945
1937
|
rows: a,
|
|
@@ -1947,70 +1939,74 @@ function Xt(e) {
|
|
|
1947
1939
|
cells: s
|
|
1948
1940
|
};
|
|
1949
1941
|
}
|
|
1950
|
-
function
|
|
1942
|
+
function Kt(e) {
|
|
1951
1943
|
let { data: t } = e;
|
|
1952
1944
|
return typeof t.text == "string" ? t.text : Array.isArray(t.items) ? t.items.filter((e) => typeof e == "string").join(" ") : "";
|
|
1953
1945
|
}
|
|
1954
|
-
function
|
|
1946
|
+
function qt(e) {
|
|
1955
1947
|
var t;
|
|
1956
1948
|
let n = document.createElement("div");
|
|
1957
1949
|
return n.innerHTML = e, (t = n.textContent) == null ? "" : t;
|
|
1958
1950
|
}
|
|
1959
|
-
function
|
|
1960
|
-
return
|
|
1951
|
+
function Jt(e) {
|
|
1952
|
+
return qt(Kt(e));
|
|
1961
1953
|
}
|
|
1962
|
-
function
|
|
1963
|
-
return `<table ${
|
|
1964
|
-
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("; ");
|
|
1965
1957
|
return `<td${n ? ` style="${n}"` : ""}>${t}</td>`;
|
|
1966
1958
|
}).join("")}</tr>`).join("")}</table>`;
|
|
1967
1959
|
}
|
|
1968
|
-
function
|
|
1969
|
-
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");
|
|
1970
1962
|
}
|
|
1971
|
-
var
|
|
1963
|
+
var Zt = new Set(["color", "background-color"]), Qt = {
|
|
1972
1964
|
b: !0,
|
|
1973
1965
|
strong: !0,
|
|
1974
1966
|
i: !0,
|
|
1975
1967
|
em: !0,
|
|
1976
1968
|
br: !0,
|
|
1977
|
-
a: {
|
|
1969
|
+
a: {
|
|
1970
|
+
href: !0,
|
|
1971
|
+
target: "_blank",
|
|
1972
|
+
rel: "nofollow"
|
|
1973
|
+
},
|
|
1978
1974
|
mark: (e) => {
|
|
1979
1975
|
let t = e.style, n = Array.from({ length: t.length }, (e, n) => t.item(n));
|
|
1980
|
-
for (let e of n)
|
|
1976
|
+
for (let e of n) Zt.has(e) || t.removeProperty(e);
|
|
1981
1977
|
return t.length > 0 ? { style: !0 } : {};
|
|
1982
1978
|
}
|
|
1983
1979
|
};
|
|
1984
|
-
function
|
|
1980
|
+
function H(e) {
|
|
1985
1981
|
let t = e.replace(/\s/g, "");
|
|
1986
1982
|
return t === "rgb(0,0,0)" || t === "#000000";
|
|
1987
1983
|
}
|
|
1988
|
-
function
|
|
1984
|
+
function $t(e) {
|
|
1989
1985
|
let t = e.cloneNode(!0);
|
|
1990
1986
|
for (let e of Array.from(t.querySelectorAll("span"))) {
|
|
1991
1987
|
var n, r, i;
|
|
1992
|
-
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";
|
|
1993
1989
|
if (!a && !o && !d && !f) continue;
|
|
1994
|
-
let p = d ?
|
|
1995
|
-
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));
|
|
1996
1992
|
}
|
|
1997
1993
|
for (let e of Array.from(t.querySelectorAll("a[style]"))) {
|
|
1998
1994
|
var a, o, s;
|
|
1999
|
-
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";
|
|
2000
1996
|
if (!l && !u) continue;
|
|
2001
|
-
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;
|
|
2002
1998
|
m.innerHTML = `<mark style="${p};">${m.innerHTML}</mark>`, m.style.removeProperty("color"), m.style.removeProperty("background-color");
|
|
2003
1999
|
}
|
|
2004
2000
|
for (let e of Array.from(t.querySelectorAll("p"))) {
|
|
2005
2001
|
let t = document.createRange().createContextualFragment(e.innerHTML + "<br>");
|
|
2006
2002
|
e.replaceWith(t);
|
|
2007
2003
|
}
|
|
2008
|
-
return
|
|
2004
|
+
return P(t.innerHTML, Qt).replace(/(<br\s*\/?>|\s)+$/i, "").trim();
|
|
2009
2005
|
}
|
|
2010
|
-
function
|
|
2006
|
+
function en(e) {
|
|
2011
2007
|
if (!e) return null;
|
|
2012
2008
|
let t = new DOMParser().parseFromString(e, "text/html").querySelector("table");
|
|
2013
|
-
if (!t || t.hasAttribute(
|
|
2009
|
+
if (!t || t.hasAttribute(V)) return null;
|
|
2014
2010
|
let n = t.querySelectorAll("tr");
|
|
2015
2011
|
if (n.length === 0) return null;
|
|
2016
2012
|
let r = [];
|
|
@@ -2018,16 +2014,16 @@ function on(e) {
|
|
|
2018
2014
|
let t = e.querySelectorAll("td, th"), n = [];
|
|
2019
2015
|
t.forEach((e) => {
|
|
2020
2016
|
var t;
|
|
2021
|
-
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) => ({
|
|
2022
2018
|
tool: "paragraph",
|
|
2023
2019
|
data: { text: e }
|
|
2024
2020
|
})) : [{
|
|
2025
2021
|
tool: "paragraph",
|
|
2026
2022
|
data: { text: "" }
|
|
2027
2023
|
}] }, a = (t = e.getAttribute("style")) == null ? "" : t, o = /background-color\s*:\s*([^;]+)/i.exec(a);
|
|
2028
|
-
o != null && o[1] && (i.color =
|
|
2024
|
+
o != null && o[1] && (i.color = B(o[1].trim(), "bg"));
|
|
2029
2025
|
let s = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(a);
|
|
2030
|
-
s != null && s[1] && !
|
|
2026
|
+
s != null && s[1] && !H(s[1].trim()) && (i.textColor = B(s[1].trim(), "text")), n.push(i);
|
|
2031
2027
|
}), r.push(n);
|
|
2032
2028
|
});
|
|
2033
2029
|
let i = Math.max(0, ...r.map((e) => e.length));
|
|
@@ -2042,8 +2038,8 @@ function on(e) {
|
|
|
2042
2038
|
cells: r
|
|
2043
2039
|
};
|
|
2044
2040
|
}
|
|
2045
|
-
function
|
|
2046
|
-
let t = RegExp(`${
|
|
2041
|
+
function tn(e) {
|
|
2042
|
+
let t = RegExp(`${V}='([^']*)'|${V}="([^"]*)"`, "s").exec(e);
|
|
2047
2043
|
if (!t) return null;
|
|
2048
2044
|
try {
|
|
2049
2045
|
var n;
|
|
@@ -2057,24 +2053,24 @@ function sn(e) {
|
|
|
2057
2053
|
}
|
|
2058
2054
|
//#endregion
|
|
2059
2055
|
//#region src/components/icons/index.ts
|
|
2060
|
-
var 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 15 10-10m0 10L5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"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\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", un = "\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", dn = "\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", fn = "\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", pn = "\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", mn = "\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", hn = "\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", gn = "\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", _n = "\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", vn = "\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", yn = "\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", bn = "\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", 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 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", 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=\"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", 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.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", 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=\"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", 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 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", En = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.1667 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", 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=\"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", On = "\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", 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=\"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", 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 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", jn = "\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", 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=\"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", Nn = "\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", Pn = "\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", 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 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", In = "\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", Ln = "\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", Rn = "\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", zn = "\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", Bn = "\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", Vn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.5 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", Hn = "\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", Un = "\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", Wn = "\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", Gn = "\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", Kn = "\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", 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.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", Jn = "<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>", Yn = "<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>", Xn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 10h12\" 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", 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 = {
|
|
2061
2057
|
root: "",
|
|
2062
2058
|
alignedStart: "text-start",
|
|
2063
2059
|
alignedCenter: "text-center",
|
|
2064
2060
|
title: "",
|
|
2065
2061
|
description: "opacity-60 mt-[3px]"
|
|
2066
|
-
},
|
|
2062
|
+
}, lr = class {
|
|
2067
2063
|
constructor(e) {
|
|
2068
2064
|
let t = e.alignment === "center" ? "center" : "start";
|
|
2069
2065
|
this.nodes = {
|
|
2070
|
-
root:
|
|
2071
|
-
title:
|
|
2072
|
-
}, 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));
|
|
2073
2069
|
}
|
|
2074
2070
|
getElement() {
|
|
2075
2071
|
return this.nodes.root;
|
|
2076
2072
|
}
|
|
2077
|
-
},
|
|
2073
|
+
}, ur = class {
|
|
2078
2074
|
constructor(e) {
|
|
2079
2075
|
this.params = e;
|
|
2080
2076
|
}
|
|
@@ -2082,7 +2078,7 @@ var cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2082
2078
|
if (this.params !== void 0 && "name" in this.params) return this.params.name;
|
|
2083
2079
|
}
|
|
2084
2080
|
destroy() {
|
|
2085
|
-
|
|
2081
|
+
Dt();
|
|
2086
2082
|
}
|
|
2087
2083
|
onChildrenOpen() {
|
|
2088
2084
|
var e;
|
|
@@ -2097,7 +2093,7 @@ var cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2097
2093
|
this.params !== void 0 && "onActivate" in this.params && ((e = (t = this.params).onActivate) == null || e.call(t, this.params));
|
|
2098
2094
|
}
|
|
2099
2095
|
addHint(e, t) {
|
|
2100
|
-
|
|
2096
|
+
Ot(e, new lr(t).getElement(), { placement: t.position });
|
|
2101
2097
|
}
|
|
2102
2098
|
getMountElement() {
|
|
2103
2099
|
return this.getElement();
|
|
@@ -2139,15 +2135,15 @@ var cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2139
2135
|
get isActive() {
|
|
2140
2136
|
return this.params === void 0 || !("isActive" in this.params) ? !1 : typeof this.params.isActive == "function" ? this.params.isActive() : this.params.isActive === !0;
|
|
2141
2137
|
}
|
|
2142
|
-
},
|
|
2138
|
+
}, W = {
|
|
2143
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",
|
|
2144
2140
|
itemDisabled: "cursor-default pointer-events-none text-text-secondary",
|
|
2145
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",
|
|
2146
2142
|
focused: "is-focused"
|
|
2147
|
-
},
|
|
2143
|
+
}, dr = {
|
|
2148
2144
|
item: "rounded-lg p-1",
|
|
2149
2145
|
itemIconOnly: "aspect-square justify-center"
|
|
2150
|
-
},
|
|
2146
|
+
}, fr = { item: "rounded p-[3px] mobile:p-1" }, G = class extends ur {
|
|
2151
2147
|
get isDisabled() {
|
|
2152
2148
|
return this.params.isDisabled === !0;
|
|
2153
2149
|
}
|
|
@@ -2167,7 +2163,7 @@ var cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2167
2163
|
return this.confirmationState !== null;
|
|
2168
2164
|
}
|
|
2169
2165
|
get isFocused() {
|
|
2170
|
-
return this.nodes.root === null ? !1 : this.nodes.root.hasAttribute(
|
|
2166
|
+
return this.nodes.root === null ? !1 : this.nodes.root.hasAttribute(a.focused);
|
|
2171
2167
|
}
|
|
2172
2168
|
constructor(e, t) {
|
|
2173
2169
|
super(e), this.params = e, this.nodes = {
|
|
@@ -2194,7 +2190,7 @@ var cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2194
2190
|
}
|
|
2195
2191
|
toggleActive(e) {
|
|
2196
2192
|
if (this.nodes.root === null) return;
|
|
2197
|
-
let t = this.nodes.root.hasAttribute(
|
|
2193
|
+
let t = this.nodes.root.hasAttribute(a.popoverItemActive), n = e === void 0 ? !t : e;
|
|
2198
2194
|
this.setActive(n);
|
|
2199
2195
|
}
|
|
2200
2196
|
toggleHidden(e) {
|
|
@@ -2206,70 +2202,70 @@ var cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2206
2202
|
onFocus() {
|
|
2207
2203
|
this.disableSpecialHoverAndFocusBehavior();
|
|
2208
2204
|
}
|
|
2209
|
-
createRootElement(
|
|
2205
|
+
createRootElement(e, t) {
|
|
2210
2206
|
var r, i;
|
|
2211
|
-
let
|
|
2212
|
-
if (
|
|
2213
|
-
|
|
2214
|
-
}),
|
|
2215
|
-
var
|
|
2216
|
-
this.addHint(
|
|
2217
|
-
position: (
|
|
2218
|
-
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"
|
|
2219
2215
|
}));
|
|
2220
2216
|
}
|
|
2221
|
-
return
|
|
2217
|
+
return s;
|
|
2222
2218
|
}
|
|
2223
2219
|
createContentElements(e, t, n) {
|
|
2224
|
-
var r, i,
|
|
2225
|
-
let
|
|
2226
|
-
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) {
|
|
2227
2223
|
let n = document.createElement("div");
|
|
2228
|
-
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;
|
|
2229
2225
|
}
|
|
2230
2226
|
if (t.secondaryLabel) {
|
|
2231
2227
|
let n = document.createElement("div");
|
|
2232
|
-
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;
|
|
2233
2229
|
}
|
|
2234
2230
|
if (this.hasChildren && !this.isChevronHidden) {
|
|
2235
2231
|
let t = document.createElement("div");
|
|
2236
|
-
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;
|
|
2237
2233
|
}
|
|
2238
2234
|
}
|
|
2239
2235
|
createIconElement(e, t, n, r) {
|
|
2240
2236
|
let i = document.createElement("div");
|
|
2241
|
-
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;
|
|
2242
2238
|
}
|
|
2243
2239
|
getContainerClass() {
|
|
2244
|
-
var e,
|
|
2245
|
-
let a = (e = (
|
|
2246
|
-
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);
|
|
2247
2243
|
}
|
|
2248
|
-
getIconClass(e,
|
|
2249
|
-
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!");
|
|
2250
2246
|
}
|
|
2251
2247
|
getChevronClass(e) {
|
|
2252
|
-
return
|
|
2248
|
+
return r(W.icon, "w-5 h-5 bg-transparent", e && "rotate-90");
|
|
2253
2249
|
}
|
|
2254
2250
|
setActive(e) {
|
|
2255
|
-
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));
|
|
2256
2252
|
}
|
|
2257
2253
|
setHidden(e) {
|
|
2258
|
-
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!")));
|
|
2259
2255
|
}
|
|
2260
2256
|
setFocused(e) {
|
|
2261
|
-
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!")));
|
|
2262
2258
|
}
|
|
2263
2259
|
setNoHover(e) {
|
|
2264
|
-
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));
|
|
2265
2261
|
}
|
|
2266
2262
|
setNoFocus(e) {
|
|
2267
|
-
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));
|
|
2268
2264
|
}
|
|
2269
|
-
enableConfirmationMode(
|
|
2265
|
+
enableConfirmationMode(e) {
|
|
2270
2266
|
if (this.nodes.root === null) return;
|
|
2271
|
-
let
|
|
2272
|
-
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();
|
|
2273
2269
|
}
|
|
2274
2270
|
setConfirmation(e) {
|
|
2275
2271
|
if (this.nodes.root) {
|
|
@@ -2281,10 +2277,10 @@ var cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2281
2277
|
}
|
|
2282
2278
|
}
|
|
2283
2279
|
clearConfirmationState() {
|
|
2284
|
-
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());
|
|
2285
2281
|
}
|
|
2286
2282
|
applyConfirmationState(e) {
|
|
2287
|
-
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));
|
|
2288
2284
|
}
|
|
2289
2285
|
restoreOriginalIcon() {
|
|
2290
2286
|
!this.nodes.icon || !this.params.icon || (this.nodes.icon.innerHTML = this.params.icon);
|
|
@@ -2326,16 +2322,16 @@ var cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2326
2322
|
getIconElement() {
|
|
2327
2323
|
return this.nodes.icon;
|
|
2328
2324
|
}
|
|
2329
|
-
},
|
|
2325
|
+
}, K = {
|
|
2330
2326
|
container: "py-1.5 px-2 max-h-5 overflow-hidden",
|
|
2331
2327
|
containerHidden: "opacity-0 max-h-0! py-0!",
|
|
2332
2328
|
line: "h-px w-full bg-popover-border/60"
|
|
2333
|
-
},
|
|
2329
|
+
}, q = {
|
|
2334
2330
|
container: "px-1 py-0 max-h-none",
|
|
2335
2331
|
line: "h-full w-px",
|
|
2336
2332
|
nestedContainer: "py-1 px-[3px]",
|
|
2337
2333
|
nestedLine: "w-full h-px"
|
|
2338
|
-
},
|
|
2334
|
+
}, pr = class extends ur {
|
|
2339
2335
|
constructor(e) {
|
|
2340
2336
|
var t, n;
|
|
2341
2337
|
super(), this.nodes = {
|
|
@@ -2349,25 +2345,25 @@ var cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2349
2345
|
toggleHidden(e) {
|
|
2350
2346
|
if (!this.nodes.root) return;
|
|
2351
2347
|
let t = this.getContainerClass(!1), n = this.getContainerClass(!0);
|
|
2352
|
-
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);
|
|
2353
2349
|
}
|
|
2354
2350
|
getContainerClass(e) {
|
|
2355
|
-
let
|
|
2356
|
-
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);
|
|
2357
2353
|
}
|
|
2358
2354
|
getLineClass() {
|
|
2359
|
-
return this.isNestedInline ?
|
|
2355
|
+
return this.isNestedInline ? r(K.line, q.nestedLine) : this.isInline ? r(K.line, q.line) : K.line;
|
|
2360
2356
|
}
|
|
2361
2357
|
createRootElement() {
|
|
2362
2358
|
let e = document.createElement("div");
|
|
2363
|
-
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");
|
|
2364
2360
|
let t = document.createElement("div");
|
|
2365
|
-
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;
|
|
2366
2362
|
}
|
|
2367
|
-
},
|
|
2363
|
+
}, mr = {
|
|
2368
2364
|
root: "",
|
|
2369
2365
|
rootHidden: "hidden"
|
|
2370
|
-
},
|
|
2366
|
+
}, hr = { root: "flex items-center" }, J = class extends ur {
|
|
2371
2367
|
constructor(e, t) {
|
|
2372
2368
|
var n;
|
|
2373
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);
|
|
@@ -2376,33 +2372,33 @@ var cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2376
2372
|
return this.nodes.root;
|
|
2377
2373
|
}
|
|
2378
2374
|
toggleHidden(e) {
|
|
2379
|
-
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));
|
|
2380
2376
|
}
|
|
2381
2377
|
getControls() {
|
|
2382
2378
|
if (!this.nodes.root) return [];
|
|
2383
|
-
let e = this.nodes.root.querySelectorAll(`button, ${
|
|
2379
|
+
let e = this.nodes.root.querySelectorAll(`button, ${E.allInputsSelector}`);
|
|
2384
2380
|
return Array.from(e);
|
|
2385
2381
|
}
|
|
2386
2382
|
updateRootClasses() {
|
|
2387
|
-
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));
|
|
2388
2384
|
}
|
|
2389
|
-
createRootElement(
|
|
2385
|
+
createRootElement(e, t) {
|
|
2390
2386
|
var i;
|
|
2391
|
-
let
|
|
2392
|
-
if (
|
|
2393
|
-
var
|
|
2394
|
-
this.addHint(
|
|
2395
|
-
position: (
|
|
2396
|
-
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"
|
|
2397
2393
|
}));
|
|
2398
2394
|
}
|
|
2399
|
-
return
|
|
2395
|
+
return o;
|
|
2400
2396
|
}
|
|
2401
|
-
},
|
|
2397
|
+
}, gr = {
|
|
2402
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)]",
|
|
2403
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",
|
|
2404
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"
|
|
2405
|
-
},
|
|
2401
|
+
}, _r = (e, t) => {
|
|
2406
2402
|
if (e.length === 0) return t.length;
|
|
2407
2403
|
if (t.length === 0) return e.length;
|
|
2408
2404
|
let n = Array.from({ length: t.length + 1 }, (e, t) => t), r = Array(t.length + 1);
|
|
@@ -2415,37 +2411,37 @@ var cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2415
2411
|
n.splice(0, n.length, ...r);
|
|
2416
2412
|
}
|
|
2417
2413
|
return n[t.length];
|
|
2418
|
-
},
|
|
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) => {
|
|
2419
2415
|
let a = i === 0 || e[i - 1] === " " || e[i - 1] === "-" || e[i - 1] === "_";
|
|
2420
2416
|
return n < t.length && a && r === t[n] ? n + 1 : n;
|
|
2421
|
-
}, 0) === t.length,
|
|
2417
|
+
}, 0) === t.length, br = (e, t) => {
|
|
2422
2418
|
if (e === t) return 100;
|
|
2423
2419
|
if (e.startsWith(t)) return 90;
|
|
2424
2420
|
if (e.includes(t)) return 75;
|
|
2425
|
-
if (t.length >= 2 &&
|
|
2426
|
-
if (t.length >= 2 &&
|
|
2421
|
+
if (t.length >= 2 && yr(e, t)) return 55;
|
|
2422
|
+
if (t.length >= 2 && vr(e, t)) return 35;
|
|
2427
2423
|
if (t.length >= 3) {
|
|
2428
2424
|
let n = Math.floor(t.length / 3);
|
|
2429
|
-
if (
|
|
2425
|
+
if (_r(e, t) <= n) return 15;
|
|
2430
2426
|
}
|
|
2431
2427
|
return 0;
|
|
2432
|
-
},
|
|
2428
|
+
}, Y = (e, t) => {
|
|
2433
2429
|
if (t === "") return 100;
|
|
2434
2430
|
let n = t.toLowerCase(), r = [];
|
|
2435
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());
|
|
2436
2432
|
return r.reduce((e, t) => {
|
|
2437
|
-
let r =
|
|
2433
|
+
let r = br(t, n);
|
|
2438
2434
|
return r > e ? r : e;
|
|
2439
2435
|
}, 0);
|
|
2440
|
-
},
|
|
2436
|
+
}, xr = /* @__PURE__ */ function(e) {
|
|
2441
2437
|
return e.Search = "search", e;
|
|
2442
|
-
}({}),
|
|
2438
|
+
}({}), Sr = class extends Le {
|
|
2443
2439
|
constructor({ items: e, placeholder: t }) {
|
|
2444
2440
|
super(), this.searchQuery = "", this.handleValueChange = () => {
|
|
2445
2441
|
this.applySearch(this.input.value);
|
|
2446
|
-
}, this.listeners = new
|
|
2447
|
-
let n =
|
|
2448
|
-
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, {
|
|
2449
2445
|
type: "search",
|
|
2450
2446
|
placeholder: t,
|
|
2451
2447
|
tabIndex: -1
|
|
@@ -2468,7 +2464,7 @@ var cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2468
2464
|
this.input.value = "";
|
|
2469
2465
|
}
|
|
2470
2466
|
applySearch(e) {
|
|
2471
|
-
this.searchQuery !== e && (this.searchQuery = e, this.emit(
|
|
2467
|
+
this.searchQuery !== e && (this.searchQuery = e, this.emit(xr.Search, {
|
|
2472
2468
|
query: e,
|
|
2473
2469
|
items: this.foundItems
|
|
2474
2470
|
}));
|
|
@@ -2496,10 +2492,10 @@ var cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2496
2492
|
get foundItems() {
|
|
2497
2493
|
return this.items.map((e) => ({
|
|
2498
2494
|
item: e,
|
|
2499
|
-
score:
|
|
2495
|
+
score: Y(e, this.searchQuery)
|
|
2500
2496
|
})).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score).map(({ item: e }) => e);
|
|
2501
2497
|
}
|
|
2502
|
-
},
|
|
2498
|
+
}, Cr, X = class e {
|
|
2503
2499
|
constructor() {
|
|
2504
2500
|
this.stack = [], this.boundPointerDown = null;
|
|
2505
2501
|
}
|
|
@@ -2551,7 +2547,7 @@ var cn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2551
2547
|
t !== -1 && this.stack.splice(t, 1);
|
|
2552
2548
|
}
|
|
2553
2549
|
};
|
|
2554
|
-
|
|
2550
|
+
Cr = X, Cr._instance = null;
|
|
2555
2551
|
//#endregion
|
|
2556
2552
|
//#region src/components/utils/popover/popover.const.ts
|
|
2557
2553
|
var Z = {
|
|
@@ -2560,22 +2556,22 @@ var Z = {
|
|
|
2560
2556
|
popoverContainerOpened: "opacity-100 pointer-events-auto p-1.5 max-h-(--max-height) border-none",
|
|
2561
2557
|
popoverOverlay: "hidden bg-dark",
|
|
2562
2558
|
items: "overflow-y-auto overscroll-contain"
|
|
2563
|
-
},
|
|
2559
|
+
}, wr = {
|
|
2564
2560
|
popover: "relative",
|
|
2565
2561
|
popoverContainer: "flex-row top-0 min-w-max w-max p-1 mobile:absolute"
|
|
2566
|
-
},
|
|
2562
|
+
}, Tr = (e) => `level-${e}`, Q = /* @__PURE__ */ function(e) {
|
|
2567
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;
|
|
2568
2564
|
}({}), $ = /* @__PURE__ */ function(e) {
|
|
2569
2565
|
return e.Closed = "closed", e.ClosedOnActivate = "closed-on-activate", e;
|
|
2570
|
-
}({}),
|
|
2566
|
+
}({}), Er = class extends Le {
|
|
2571
2567
|
get itemsDefault() {
|
|
2572
|
-
return this.items.filter((e) => e instanceof
|
|
2568
|
+
return this.items.filter((e) => e instanceof G);
|
|
2573
2569
|
}
|
|
2574
|
-
constructor(
|
|
2575
|
-
super(), this.params =
|
|
2570
|
+
constructor(e, t = {}) {
|
|
2571
|
+
super(), this.params = e, this.itemsRenderParams = t, this.listeners = new De(), this.messages = {
|
|
2576
2572
|
nothingFound: "Nothing found",
|
|
2577
2573
|
search: "Search"
|
|
2578
|
-
}, 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));
|
|
2579
2575
|
}
|
|
2580
2576
|
getElement() {
|
|
2581
2577
|
return this.nodes.popover;
|
|
@@ -2585,13 +2581,13 @@ var Z = {
|
|
|
2585
2581
|
}
|
|
2586
2582
|
show() {
|
|
2587
2583
|
var e;
|
|
2588
|
-
let
|
|
2589
|
-
|
|
2590
|
-
let { trigger:
|
|
2591
|
-
((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);
|
|
2592
2588
|
}
|
|
2593
2589
|
hide() {
|
|
2594
|
-
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);
|
|
2595
2591
|
}
|
|
2596
2592
|
destroy() {
|
|
2597
2593
|
var e, t;
|
|
@@ -2611,21 +2607,21 @@ var Z = {
|
|
|
2611
2607
|
buildItems(e) {
|
|
2612
2608
|
return e.map((e) => {
|
|
2613
2609
|
switch (e.type) {
|
|
2614
|
-
case
|
|
2615
|
-
case
|
|
2616
|
-
case
|
|
2617
|
-
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]);
|
|
2618
2614
|
}
|
|
2619
2615
|
});
|
|
2620
2616
|
}
|
|
2621
2617
|
getTargetItem(e) {
|
|
2622
|
-
return this.items.filter((e) => e instanceof
|
|
2618
|
+
return this.items.filter((e) => e instanceof G || e instanceof J).find((t) => {
|
|
2623
2619
|
let n = t.getElement();
|
|
2624
2620
|
return n === null ? !1 : e.composedPath().includes(n);
|
|
2625
2621
|
});
|
|
2626
2622
|
}
|
|
2627
2623
|
handleItemClick(e) {
|
|
2628
|
-
if (!(e instanceof
|
|
2624
|
+
if (!(e instanceof G && e.isDisabled)) {
|
|
2629
2625
|
if (e.hasChildren) {
|
|
2630
2626
|
this.showNestedItems(e), this.callHandleClickIfPresent(e);
|
|
2631
2627
|
return;
|
|
@@ -2638,7 +2634,7 @@ var Z = {
|
|
|
2638
2634
|
t !== void 0 && this.handleItemClick(t);
|
|
2639
2635
|
}
|
|
2640
2636
|
toggleItemActivenessIfNeeded(e) {
|
|
2641
|
-
if (!(e instanceof
|
|
2637
|
+
if (!(e instanceof G) || (e.toggle === !0 && e.toggleActive(), typeof e.toggle != "string")) return;
|
|
2642
2638
|
let t = this.itemsDefault.filter((t) => t.toggle === e.toggle);
|
|
2643
2639
|
if (t.length === 1) {
|
|
2644
2640
|
e.toggleActive();
|
|
@@ -2649,37 +2645,37 @@ var Z = {
|
|
|
2649
2645
|
});
|
|
2650
2646
|
}
|
|
2651
2647
|
refreshItemActiveState(e) {
|
|
2652
|
-
e instanceof
|
|
2648
|
+
e instanceof G && e.toggle === void 0 && e.toggleActive(e.isActive);
|
|
2653
2649
|
}
|
|
2654
2650
|
callHandleClickIfPresent(e) {
|
|
2655
2651
|
"handleClick" in e && typeof e.handleClick == "function" && e.handleClick();
|
|
2656
2652
|
}
|
|
2657
2653
|
toggleNothingFoundMessage(e) {
|
|
2658
|
-
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));
|
|
2659
2655
|
}
|
|
2660
2656
|
setOpenTop(e) {
|
|
2661
|
-
e ? this.nodes.popover.setAttribute(
|
|
2657
|
+
e ? this.nodes.popover.setAttribute(a.popoverOpenTop, "true") : this.nodes.popover.removeAttribute(a.popoverOpenTop);
|
|
2662
2658
|
}
|
|
2663
2659
|
setOpenLeft(e) {
|
|
2664
|
-
e ? this.nodes.popover.setAttribute(
|
|
2660
|
+
e ? this.nodes.popover.setAttribute(a.popoverOpenLeft, "true") : this.nodes.popover.removeAttribute(a.popoverOpenLeft);
|
|
2665
2661
|
}
|
|
2666
2662
|
hasNode(e) {
|
|
2667
2663
|
return this.nodes.popover.contains(e);
|
|
2668
2664
|
}
|
|
2669
2665
|
createPopoverDOM() {
|
|
2670
|
-
var e,
|
|
2671
|
-
let
|
|
2672
|
-
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");
|
|
2673
2669
|
let i = document.createElement("div");
|
|
2674
|
-
i.className = Z.popoverContainer, i.style.boxShadow = "var(--blok-popover-box-shadow)", i.setAttribute(
|
|
2675
|
-
let a = document.createElement("div");
|
|
2676
|
-
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");
|
|
2677
2671
|
let o = document.createElement("div");
|
|
2678
|
-
|
|
2679
|
-
|
|
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,
|
|
2680
2676
|
popoverContainer: i,
|
|
2681
|
-
nothingFoundMessage:
|
|
2682
|
-
items:
|
|
2677
|
+
nothingFoundMessage: o,
|
|
2678
|
+
items: s
|
|
2683
2679
|
};
|
|
2684
2680
|
}
|
|
2685
2681
|
appendItemElements() {
|
|
@@ -2692,22 +2688,22 @@ var Z = {
|
|
|
2692
2688
|
};
|
|
2693
2689
|
//#endregion
|
|
2694
2690
|
//#region src/components/utils/popover/popover-position.ts
|
|
2695
|
-
function
|
|
2691
|
+
function Dr(e, t, n) {
|
|
2696
2692
|
return e <= t ? !1 : e <= n ? !0 : n > t;
|
|
2697
2693
|
}
|
|
2698
|
-
function
|
|
2694
|
+
function Or(e) {
|
|
2699
2695
|
var t;
|
|
2700
|
-
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;
|
|
2701
2697
|
return {
|
|
2702
2698
|
top: h,
|
|
2703
|
-
left:
|
|
2699
|
+
left: te + r.width > g + o.x ? Math.max(_ + o.x, g + o.x - r.width) : te,
|
|
2704
2700
|
openTop: p,
|
|
2705
|
-
openLeft:
|
|
2701
|
+
openLeft: x
|
|
2706
2702
|
};
|
|
2707
2703
|
}
|
|
2708
2704
|
//#endregion
|
|
2709
2705
|
//#region src/components/utils/popover/popover-desktop.ts
|
|
2710
|
-
var
|
|
2706
|
+
var kr = class e extends Er {
|
|
2711
2707
|
setLeftAlignElement(e) {
|
|
2712
2708
|
this.leftAlignElement = e;
|
|
2713
2709
|
}
|
|
@@ -2721,15 +2717,15 @@ var Or = class e extends Tr {
|
|
|
2721
2717
|
e == null || e.onFocus();
|
|
2722
2718
|
}, this.onSearch = (e) => {
|
|
2723
2719
|
var t;
|
|
2724
|
-
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;
|
|
2725
2721
|
this.items.forEach((e) => {
|
|
2726
|
-
let t = e instanceof
|
|
2727
|
-
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);
|
|
2728
2724
|
}), this._size = void 0, !n && i.length > 0 ? this.reorderItemsByRank(i) : n && this.originalItemOrder !== void 0 && this.restoreOriginalItemOrder();
|
|
2729
2725
|
for (let e of this.promotedSeparators) e.remove();
|
|
2730
2726
|
if (this.promotedSeparators = [], this.promotedItemCache !== null) for (let e of this.promotedItemCache.items) {
|
|
2731
|
-
var
|
|
2732
|
-
(
|
|
2727
|
+
var s;
|
|
2728
|
+
(s = e.getElement()) == null || s.remove();
|
|
2733
2729
|
}
|
|
2734
2730
|
if (e.promotedItems.length > 0) {
|
|
2735
2731
|
let t = /* @__PURE__ */ new Map();
|
|
@@ -2748,26 +2744,29 @@ var Or = class e extends Tr {
|
|
|
2748
2744
|
return Math.max(...t[1].map((e) => e.score)) - n;
|
|
2749
2745
|
});
|
|
2750
2746
|
for (let [e, t] of n) {
|
|
2751
|
-
var
|
|
2747
|
+
var c;
|
|
2752
2748
|
let n = this.createGroupSeparator(e);
|
|
2753
|
-
this.promotedSeparators.push(n), (
|
|
2749
|
+
this.promotedSeparators.push(n), (c = this.nodes.items) == null || c.appendChild(n), this.appendPromotedGroupElements(t);
|
|
2754
2750
|
}
|
|
2755
2751
|
}
|
|
2756
|
-
this.toggleNothingFoundMessage(a)
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2752
|
+
if (this.toggleNothingFoundMessage(o), this.trigger && this.nodes.popover.hasAttribute(a.popoverOpened)) {
|
|
2753
|
+
let { top: e, left: t, openTop: n, openLeft: r } = this.calculatePosition();
|
|
2754
|
+
this.nodes.popover.style.top = `${e}px`, this.nodes.popover.style.left = `${t}px`, this.setOpenTop(n), this.setOpenLeft(r);
|
|
2755
|
+
}
|
|
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;
|
|
2760
2759
|
let r = e.flipper;
|
|
2761
|
-
r === void 0 ? this.flipper = new
|
|
2760
|
+
r === void 0 ? this.flipper = new It({
|
|
2762
2761
|
items: this.flippableElements,
|
|
2763
|
-
focusedItemClass:
|
|
2762
|
+
focusedItemClass: W.focused,
|
|
2764
2763
|
allowedKeys: [
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2764
|
+
s.TAB,
|
|
2765
|
+
s.UP,
|
|
2766
|
+
s.DOWN,
|
|
2767
|
+
s.ENTER,
|
|
2768
|
+
s.RIGHT,
|
|
2769
|
+
s.LEFT
|
|
2771
2770
|
],
|
|
2772
2771
|
onArrowLeft: e.onNavigateBack,
|
|
2773
2772
|
handleContentEditableTargets: e.handleContentEditableNavigation
|
|
@@ -2798,7 +2797,7 @@ var Or = class e extends Tr {
|
|
|
2798
2797
|
this.nodes.popover.style.setProperty("--width", t + "px");
|
|
2799
2798
|
}
|
|
2800
2799
|
if (!this.trigger) {
|
|
2801
|
-
let { openTop: e, openLeft: t } =
|
|
2800
|
+
let { openTop: e, openLeft: t } = Or({
|
|
2802
2801
|
anchor: this.nodes.popoverContainer.getBoundingClientRect(),
|
|
2803
2802
|
popoverSize: n,
|
|
2804
2803
|
scopeBounds: this.scopeElement.getBoundingClientRect(),
|
|
@@ -2835,7 +2834,7 @@ var Or = class e extends Tr {
|
|
|
2835
2834
|
calculatePosition() {
|
|
2836
2835
|
var e, t, n;
|
|
2837
2836
|
let r = (e = this.params.position) == null ? (t = this.trigger) == null ? void 0 : t.getBoundingClientRect() : e;
|
|
2838
|
-
return r ?
|
|
2837
|
+
return r ? Or({
|
|
2839
2838
|
anchor: r,
|
|
2840
2839
|
popoverSize: this.size,
|
|
2841
2840
|
scopeBounds: this.scopeElement.getBoundingClientRect(),
|
|
@@ -2874,14 +2873,14 @@ var Or = class e extends Tr {
|
|
|
2874
2873
|
t instanceof Node && this.nestedPopover !== void 0 && this.nestedPopover !== null && this.nestedPopover.hasNode(t) || (this.destroyNestedPopoverIfExists(!1), this.previouslyHoveredItem = null);
|
|
2875
2874
|
}
|
|
2876
2875
|
getTargetItem(e) {
|
|
2877
|
-
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) => {
|
|
2878
2877
|
let n = t.getElement();
|
|
2879
2878
|
return n === null ? !1 : e.composedPath().includes(n);
|
|
2880
2879
|
});
|
|
2881
2880
|
}
|
|
2882
2881
|
setTriggerItemPosition(e, t) {
|
|
2883
|
-
let n = t.getElement(), r = (n ? n.offsetTop : 0) - this.scrollTop, i = this.offsetTop + r,
|
|
2884
|
-
(
|
|
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");
|
|
2885
2884
|
}
|
|
2886
2885
|
destroyNestedPopoverIfExists(e = !0) {
|
|
2887
2886
|
var t, n, r;
|
|
@@ -2923,27 +2922,27 @@ var Or = class e extends Tr {
|
|
|
2923
2922
|
}), this.nestedPopover.show(), (r = this.flipper) == null || r.deactivate(), this.nestedPopover;
|
|
2924
2923
|
}
|
|
2925
2924
|
applyNestedPopoverPositioning(e) {
|
|
2926
|
-
let t = e.querySelector(`[${
|
|
2925
|
+
let t = e.querySelector(`[${a.popoverContainer}]`);
|
|
2927
2926
|
if (!(t instanceof HTMLElement)) return;
|
|
2928
|
-
let n = t, r = e.querySelector(`[${
|
|
2929
|
-
this.nodes.popover.hasAttribute(
|
|
2930
|
-
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);
|
|
2931
2930
|
n.style.position = "absolute";
|
|
2932
|
-
let
|
|
2933
|
-
|
|
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)";
|
|
2934
2933
|
}
|
|
2935
2934
|
get size() {
|
|
2936
2935
|
var e;
|
|
2937
2936
|
if (this._size) return this._size;
|
|
2938
|
-
let
|
|
2937
|
+
let t = {
|
|
2939
2938
|
height: 0,
|
|
2940
2939
|
width: 0
|
|
2941
2940
|
};
|
|
2942
|
-
if (this.nodes.popover === null) return
|
|
2943
|
-
let
|
|
2944
|
-
|
|
2945
|
-
let i =
|
|
2946
|
-
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;
|
|
2947
2946
|
}
|
|
2948
2947
|
invalidateSizeCache() {
|
|
2949
2948
|
this._size = void 0;
|
|
@@ -2952,11 +2951,11 @@ var Or = class e extends Tr {
|
|
|
2952
2951
|
return this.items.flatMap((e) => this.getFlippableElementsForItem(e)).filter((e) => e != null);
|
|
2953
2952
|
}
|
|
2954
2953
|
getFlippableElementsForItem(e) {
|
|
2955
|
-
if (e instanceof
|
|
2954
|
+
if (e instanceof J) {
|
|
2956
2955
|
let t = e.getElement();
|
|
2957
2956
|
return t ? [t] : [];
|
|
2958
2957
|
}
|
|
2959
|
-
if (!(e instanceof
|
|
2958
|
+
if (!(e instanceof G) || e.isDisabled) return [];
|
|
2960
2959
|
let t = e.getElement();
|
|
2961
2960
|
return t ? [t] : [];
|
|
2962
2961
|
}
|
|
@@ -2970,15 +2969,15 @@ var Or = class e extends Tr {
|
|
|
2970
2969
|
collectPromotedChildren(e, t, n) {
|
|
2971
2970
|
for (let a of e) {
|
|
2972
2971
|
var r, i;
|
|
2973
|
-
if (!(a instanceof
|
|
2972
|
+
if (!(a instanceof G) || !a.hasChildren) continue;
|
|
2974
2973
|
let e = (r = (i = a.title) == null ? a.name : i) == null ? "" : r, o = [...t, e];
|
|
2975
2974
|
this.collectDefaultChildren(a.children, o, n);
|
|
2976
2975
|
}
|
|
2977
2976
|
}
|
|
2978
2977
|
collectDefaultChildren(e, t, n) {
|
|
2979
2978
|
for (let r of e) {
|
|
2980
|
-
if (r.type !== void 0 && r.type !==
|
|
2981
|
-
let e = new
|
|
2979
|
+
if (r.type !== void 0 && r.type !== N.Default) continue;
|
|
2980
|
+
let e = new G(r);
|
|
2982
2981
|
if (e.name !== void 0 && this.isNamePermanentlyHidden(e.name)) {
|
|
2983
2982
|
e.destroy();
|
|
2984
2983
|
continue;
|
|
@@ -2998,7 +2997,7 @@ var Or = class e extends Tr {
|
|
|
2998
2997
|
}
|
|
2999
2998
|
createGroupSeparator(e) {
|
|
3000
2999
|
let t = document.createElement("div");
|
|
3001
|
-
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;
|
|
3002
3001
|
}
|
|
3003
3002
|
appendPromotedGroupElements(e) {
|
|
3004
3003
|
for (let { item: n } of e) {
|
|
@@ -3012,13 +3011,13 @@ var Or = class e extends Tr {
|
|
|
3012
3011
|
deduplicateAgainstPromoted(e, t) {
|
|
3013
3012
|
let n = /* @__PURE__ */ new Set();
|
|
3014
3013
|
for (let { item: e } of t) e.title !== void 0 && n.add(e.title.toLowerCase());
|
|
3015
|
-
return e.filter((e) => !(e instanceof
|
|
3014
|
+
return e.filter((e) => !(e instanceof G) || e.title === void 0 ? !0 : !n.has(e.title.toLowerCase()));
|
|
3016
3015
|
}
|
|
3017
3016
|
addSearch() {
|
|
3018
|
-
this.search = new
|
|
3017
|
+
this.search = new Sr({
|
|
3019
3018
|
items: this.itemsDefault,
|
|
3020
3019
|
placeholder: this.messages.search
|
|
3021
|
-
}), this.search.on(
|
|
3020
|
+
}), this.search.on(xr.Search, (e) => {
|
|
3022
3021
|
if (e.query === "") {
|
|
3023
3022
|
this.cleanupPromotedItems(), this.onSearch({
|
|
3024
3023
|
query: e.query,
|
|
@@ -3032,7 +3031,7 @@ var Or = class e extends Tr {
|
|
|
3032
3031
|
var r;
|
|
3033
3032
|
return {
|
|
3034
3033
|
item: n,
|
|
3035
|
-
score:
|
|
3034
|
+
score: Y(n, e.query),
|
|
3036
3035
|
chain: (r = t.get(n)) == null ? [] : r
|
|
3037
3036
|
};
|
|
3038
3037
|
}).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score);
|
|
@@ -3057,12 +3056,12 @@ var Or = class e extends Tr {
|
|
|
3057
3056
|
this.promotedItemCache === null && (this.promotedItemCache = this.buildPromotedItemCache());
|
|
3058
3057
|
let t = this.itemsDefault.map((t) => ({
|
|
3059
3058
|
item: t,
|
|
3060
|
-
score:
|
|
3059
|
+
score: Y(t, e)
|
|
3061
3060
|
})).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score), { parentChains: n } = this.promotedItemCache, r = this.promotedItemCache.items.map((t) => {
|
|
3062
3061
|
var r;
|
|
3063
3062
|
return {
|
|
3064
3063
|
item: t,
|
|
3065
|
-
score:
|
|
3064
|
+
score: Y(t, e),
|
|
3066
3065
|
chain: (r = n.get(t)) == null ? [] : r
|
|
3067
3066
|
};
|
|
3068
3067
|
}).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score);
|
|
@@ -3087,17 +3086,17 @@ var Or = class e extends Tr {
|
|
|
3087
3086
|
this.originalItemOrder = void 0;
|
|
3088
3087
|
}
|
|
3089
3088
|
}
|
|
3090
|
-
},
|
|
3091
|
-
let t =
|
|
3089
|
+
}, Ar = function(e) {
|
|
3090
|
+
let t = E.make("div");
|
|
3092
3091
|
return t.style.display = "flex", t.style.flexDirection = "column", t.style.gap = "4px", e.forEach((e) => {
|
|
3093
|
-
let n =
|
|
3092
|
+
let n = E.make("div"), r = e.indexOf(" ");
|
|
3094
3093
|
if (r > 0) {
|
|
3095
|
-
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 });
|
|
3096
3095
|
a.style.color = "white", n.appendChild(a), n.appendChild(document.createTextNode(i));
|
|
3097
3096
|
} else n.appendChild(document.createTextNode(e));
|
|
3098
3097
|
t.appendChild(n);
|
|
3099
3098
|
}), t;
|
|
3100
|
-
},
|
|
3099
|
+
}, jr, Mr = class {
|
|
3101
3100
|
constructor({ api: e }) {
|
|
3102
3101
|
this.i18nAPI = e.i18n, this.blocksAPI = e.blocks, this.selectionAPI = e.selection, this.toolsAPI = e.tools, this.caretAPI = e.caret, this.i18nInstance = {
|
|
3103
3102
|
t: (e, t) => this.i18nAPI.t(e),
|
|
@@ -3106,11 +3105,11 @@ var Or = class e extends Tr {
|
|
|
3106
3105
|
}
|
|
3107
3106
|
async render() {
|
|
3108
3107
|
var e = this;
|
|
3109
|
-
let t =
|
|
3108
|
+
let t = Ye.get();
|
|
3110
3109
|
if (t === null) return [];
|
|
3111
3110
|
let n = e.blocksAPI.getBlockByElement(t.anchorNode);
|
|
3112
3111
|
if (n === void 0) return [];
|
|
3113
|
-
let r = await
|
|
3112
|
+
let r = await Me(n, e.toolsAPI.getBlockTools());
|
|
3114
3113
|
if (r.length === 0) return [];
|
|
3115
3114
|
let i = r.reduce((t, r) => {
|
|
3116
3115
|
var i;
|
|
@@ -3118,7 +3117,7 @@ var Or = class e extends Tr {
|
|
|
3118
3117
|
var a;
|
|
3119
3118
|
i.title !== void 0 && t.push({
|
|
3120
3119
|
icon: i.icon,
|
|
3121
|
-
title:
|
|
3120
|
+
title: Oe(e.i18nInstance, i, r.name),
|
|
3122
3121
|
name: (a = i.name) == null ? r.name : a,
|
|
3123
3122
|
closeOnActivate: !0,
|
|
3124
3123
|
onActivate: async () => {
|
|
@@ -3127,7 +3126,7 @@ var Or = class e extends Tr {
|
|
|
3127
3126
|
}
|
|
3128
3127
|
});
|
|
3129
3128
|
}), t;
|
|
3130
|
-
}, []), 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();
|
|
3131
3130
|
return {
|
|
3132
3131
|
name: "convert-to",
|
|
3133
3132
|
title: o,
|
|
@@ -3145,10 +3144,10 @@ var Or = class e extends Tr {
|
|
|
3145
3144
|
};
|
|
3146
3145
|
}
|
|
3147
3146
|
};
|
|
3148
|
-
|
|
3147
|
+
jr = Mr, jr.isInline = !0;
|
|
3149
3148
|
//#endregion
|
|
3150
3149
|
//#region src/tools/toggle/constants.ts
|
|
3151
|
-
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 = {
|
|
3152
3151
|
toggleOpen: "data-blok-toggle-open",
|
|
3153
3152
|
toggleArrow: "data-blok-toggle-arrow",
|
|
3154
3153
|
toggleContent: "data-blok-toggle-content",
|
|
@@ -3156,4 +3155,4 @@ var Mr = "toggle", Nr = "tools.toggle.placeholder", Pr = "tools.toggle.bodyPlace
|
|
|
3156
3155
|
toggleChildren: "data-blok-toggle-children"
|
|
3157
3156
|
};
|
|
3158
3157
|
//#endregion
|
|
3159
|
-
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 };
|