@jackuait/blok 0.8.2 → 0.8.3-beta.2
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/dist/blok.mjs +2 -2
- package/dist/chunks/am-CHDDMHkd.mjs +16490 -0
- package/dist/chunks/ar-DoqfNqut.mjs +19245 -0
- package/dist/chunks/az-C34P9iEa.mjs +14694 -0
- package/dist/chunks/bg-jroXLY8Y.mjs +15432 -0
- package/dist/chunks/{blok-GAbVCHTV.mjs → blok-0-8moMz9.mjs} +2090 -2052
- package/dist/chunks/bn-BRI-WqxY.mjs +16150 -0
- package/dist/chunks/bs-CCGUpNHu.mjs +12536 -0
- package/dist/chunks/{constants-CyDHDZyH.mjs → constants-PWnlOOrQ.mjs} +211 -172
- package/dist/chunks/cs-D5qZOGuc.mjs +22809 -0
- package/dist/chunks/da-DrJ7W37K.mjs +14573 -0
- package/dist/chunks/de-BW6-kp2c.mjs +16366 -0
- package/dist/chunks/el-C-Vc_Otu.mjs +16339 -0
- package/dist/chunks/es-B6fI5K9i.mjs +13597 -0
- package/dist/chunks/et-BhVlZ-Yz.mjs +14747 -0
- package/dist/chunks/fa-D55Ijdqa.mjs +16368 -0
- package/dist/chunks/fi-jNLjhKUQ.mjs +14408 -0
- package/dist/chunks/fil-DYd0T5aX.mjs +15915 -0
- package/dist/chunks/fr-yxy5xWw_.mjs +17010 -0
- package/dist/chunks/gu-CcY_LJe7.mjs +19021 -0
- package/dist/chunks/he-DL9s7wNw.mjs +15047 -0
- package/dist/chunks/hi-C8eGXgw5.mjs +15946 -0
- package/dist/chunks/hr-DLpybOhU.mjs +15099 -0
- package/dist/chunks/hu-BkT0gT00.mjs +16564 -0
- package/dist/chunks/hy-CVFDCp2S.mjs +12823 -0
- package/dist/chunks/{i18next-loader-p-7ioTwr.mjs → i18next-loader-BCAGutUy.mjs} +2 -2
- package/dist/chunks/id-0P4W9Az0.mjs +16690 -0
- package/dist/chunks/it-mLY6_uoW.mjs +19054 -0
- package/dist/chunks/ja-7RkeRNWG.mjs +15708 -0
- package/dist/chunks/ka-C7Lx-Qsh.mjs +13049 -0
- package/dist/chunks/km-Q8udaraH.mjs +12319 -0
- package/dist/chunks/kn-BiETM-iq.mjs +19123 -0
- package/dist/chunks/ko-tiB80pF1.mjs +17322 -0
- package/dist/chunks/ku-CY-OABkR.mjs +236 -0
- package/dist/chunks/{lightweight-i18n-BPeH69Dl.mjs → lightweight-i18n-CNUuUkuo.mjs} +31 -1
- package/dist/chunks/lo-CTBhEnyk.mjs +13576 -0
- package/dist/chunks/lt-BHKHEtqK.mjs +14587 -0
- package/dist/chunks/lv-DWxgtfUg.mjs +15042 -0
- package/dist/chunks/{messages-BHf_VcXb2.mjs → messages-2i0z2hFq2.mjs} +32 -2
- package/dist/{messages-8zo-T-Nx2.mjs → chunks/messages-4epWYTzK.mjs} +32 -2
- package/dist/chunks/{messages-DgZnRQRS.mjs → messages-B-x11A7Z.mjs} +32 -2
- package/dist/chunks/{messages-C03I_oR-2.mjs → messages-B1mCwtgm2.mjs} +32 -2
- package/dist/{messages-C5hD5pSd2.mjs → chunks/messages-B2Xnfn7m2.mjs} +32 -2
- package/dist/chunks/{messages-B-i-d1Bc.mjs → messages-B38lWmza.mjs} +32 -2
- package/dist/{messages-BRC9E_sp.mjs → chunks/messages-B3VMWaO8.mjs} +32 -2
- package/dist/{messages-BrcgNZOJ.mjs → chunks/messages-B6n2OYKJ.mjs} +32 -2
- package/dist/chunks/{messages-CIugNDDO2.mjs → messages-B847kJa02.mjs} +32 -2
- package/dist/chunks/{messages-CH_cexo62.mjs → messages-B8nL5cPA2.mjs} +32 -2
- package/dist/chunks/{messages-Bdk5tBNu.mjs → messages-BHMUmX3N.mjs} +32 -2
- package/dist/chunks/{messages-LL3Tflph.mjs → messages-BN78Am3l2.mjs} +32 -2
- package/dist/chunks/{messages-BIrkzbBP.mjs → messages-BRa1Itk_.mjs} +32 -2
- package/dist/chunks/{messages-BtS6JWMT.mjs → messages-BleThZm5.mjs} +32 -2
- package/dist/{messages-DHJ1fZLL.mjs → chunks/messages-Bo2PcQoc.mjs} +32 -2
- package/dist/{messages-D5rnT-BC.mjs → chunks/messages-Bqk7cuZY.mjs} +32 -2
- package/dist/chunks/{messages-Di7mfvB8.mjs → messages-BrsB1FRe.mjs} +32 -2
- package/dist/{messages-CsmTziC6.mjs → chunks/messages-ByeBRHpJ.mjs} +32 -2
- package/dist/{messages-C7Rz00Tp.mjs → chunks/messages-C35b_LVM.mjs} +32 -2
- package/dist/{messages-Co26RSCV2.mjs → chunks/messages-CAH4L_Mq2.mjs} +32 -2
- package/dist/chunks/{messages-BMzmli1K.mjs → messages-CBa6-NHn.mjs} +32 -2
- package/dist/chunks/{messages-wUoSWFsJ2.mjs → messages-CCywXuFz2.mjs} +32 -2
- package/dist/chunks/{messages-4OvVdaG52.mjs → messages-CDZrOiaR.mjs} +32 -2
- package/dist/{messages-C92tAUYT2.mjs → chunks/messages-CEVMB1TN2.mjs} +32 -2
- package/dist/{messages-CHeucLGl2.mjs → chunks/messages-CF7WlKOY.mjs} +32 -2
- package/dist/{messages-D_-rh8gl.mjs → chunks/messages-CLcwMAAe.mjs} +32 -2
- package/dist/chunks/{messages-Df69rfTF2.mjs → messages-CTGjizuJ2.mjs} +32 -2
- package/dist/chunks/{messages-Ehx9YYeb2.mjs → messages-CTI66ZU52.mjs} +32 -2
- package/dist/{messages-C9LsEUfG.mjs → chunks/messages-CTtFH-AE.mjs} +32 -2
- package/dist/{messages-BB8umWL1.mjs → chunks/messages-CbilQw5o2.mjs} +32 -2
- package/dist/chunks/{messages-BAgTIgPH.mjs → messages-CiSiPyKp.mjs} +32 -2
- package/dist/chunks/{messages-5thhSeME.mjs → messages-ClD_3Kmk.mjs} +32 -2
- package/dist/chunks/{messages--aM83pib2.mjs → messages-CqoOMgIb2.mjs} +32 -2
- package/dist/chunks/{messages-EDTq4Q52.mjs → messages-Cqxe2gIN.mjs} +32 -2
- package/dist/chunks/{messages-SsrFJhTN.mjs → messages-CxKX6wTt.mjs} +32 -2
- package/dist/chunks/{messages-DUp8NnKT.mjs → messages-CyrZJ9dG.mjs} +32 -2
- package/dist/{messages-EIeWKoc5.mjs → chunks/messages-D1eXOdyJ.mjs} +32 -2
- package/dist/chunks/{messages-ohtcmr1w.mjs → messages-D2QcrPYF.mjs} +32 -2
- package/dist/{messages-DV29fJMD2.mjs → chunks/messages-D6EtVUzk2.mjs} +32 -2
- package/dist/{messages-C4HpNHfK.mjs → chunks/messages-D7qp-JvC.mjs} +32 -2
- package/dist/chunks/{messages-Dr-Ig3sw.mjs → messages-DAhzpf-j.mjs} +32 -2
- package/dist/chunks/{messages-DKChC8Qu.mjs → messages-DEVxqfH0.mjs} +32 -2
- package/dist/{messages-CkIRmpfZ2.mjs → chunks/messages-DHJIlD2m.mjs} +32 -2
- package/dist/{messages-CmoTIebG2.mjs → chunks/messages-DJ_gZym52.mjs} +32 -2
- package/dist/{messages-Cu7Lr1wp.mjs → chunks/messages-DMENc4jZ.mjs} +32 -2
- package/dist/chunks/{messages-BAC7nLeM.mjs → messages-DVDFAJaw.mjs} +32 -2
- package/dist/chunks/{messages-Co4WFeQ8.mjs → messages-DYQ87v5m.mjs} +32 -2
- package/dist/chunks/{messages-BO_jtRbZ2.mjs → messages-Dc2wd0BC2.mjs} +32 -2
- package/dist/{messages-F7cRf-20.mjs → chunks/messages-DlSDBHih.mjs} +32 -2
- package/dist/chunks/{messages-Nz8C7Znm.mjs → messages-Dmxk7uOK.mjs} +32 -2
- package/dist/chunks/{messages-8pf7gRQm2.mjs → messages-Dqoj0eKD2.mjs} +32 -2
- package/dist/{messages-BD_U2EnE.mjs → chunks/messages-DvUNk-e7.mjs} +32 -2
- package/dist/{messages-CTFwu5-h2.mjs → chunks/messages-DvZa_OtS2.mjs} +32 -2
- package/dist/chunks/{messages-CSpfBhlK2.mjs → messages-Dxa27UhV2.mjs} +32 -2
- package/dist/chunks/{messages-D14soBOO.mjs → messages-JQR7Z2f0.mjs} +32 -2
- package/dist/{messages-bRqMCja-2.mjs → chunks/messages-K453lCht2.mjs} +32 -2
- package/dist/{messages-B9ythxux.mjs → chunks/messages-Kqu8QyYy2.mjs} +32 -2
- package/dist/{messages-CWzET_9H2.mjs → chunks/messages-LGqROvB5.mjs} +32 -2
- package/dist/{messages-JwMkLben.mjs → chunks/messages-LiQ7ni4i2.mjs} +32 -2
- package/dist/{messages-B21zLG6b.mjs → chunks/messages-PDaWSrFT.mjs} +32 -2
- package/dist/{messages-ouO9js8Z.mjs → chunks/messages-SOew8O6I.mjs} +32 -2
- package/dist/{messages-SepwOOcg.mjs → chunks/messages-cjqgX4JV2.mjs} +32 -2
- package/dist/chunks/{messages-BARPMN7R.mjs → messages-fdO2V2XC.mjs} +32 -2
- package/dist/chunks/{messages-DDpgr0B1.mjs → messages-lu4RI1A3.mjs} +32 -2
- package/dist/{messages-D_cAZ4Ic2.mjs → chunks/messages-qt_Tsj1u2.mjs} +32 -2
- package/dist/chunks/{messages-BDTgiBJY2.mjs → messages-uQOWdLDn2.mjs} +32 -2
- package/dist/chunks/{messages-FCmAVA792.mjs → messages-xG65ERBM2.mjs} +32 -2
- package/dist/chunks/mk-BjookGdx.mjs +16800 -0
- package/dist/chunks/ml-L-NnZcp9.mjs +13558 -0
- package/dist/chunks/mn-OMWi7Hl_.mjs +12107 -0
- package/dist/chunks/mr-B6JPzITo.mjs +17324 -0
- package/dist/chunks/ms-CG3S-sPB.mjs +14999 -0
- package/dist/chunks/my-BLAmGfhT.mjs +12534 -0
- package/dist/chunks/native-BPcABu9z.mjs +107 -0
- package/dist/chunks/ne-D1JHLfYw.mjs +13248 -0
- package/dist/chunks/nl-Ca7Q8FnY.mjs +16693 -0
- package/dist/chunks/no-Coxcohcz.mjs +14767 -0
- package/dist/chunks/pa-CCaXqpaI.mjs +17220 -0
- package/dist/chunks/pl-Cl_fAZ84.mjs +17221 -0
- package/dist/chunks/ps-WD5qGAWy.mjs +12185 -0
- package/dist/chunks/pt-C4zvLfvq.mjs +16334 -0
- package/dist/chunks/ro-DbefHcmM.mjs +18857 -0
- package/dist/chunks/ru-uU1J14jd.mjs +17485 -0
- package/dist/chunks/sd-DKu368Ip.mjs +10889 -0
- package/dist/chunks/si-BsJCiPkZ.mjs +12721 -0
- package/dist/chunks/sk-CD-a3SN6.mjs +19081 -0
- package/dist/chunks/sl-CXhrPJe_.mjs +15682 -0
- package/dist/chunks/sq-CTctCoFQ.mjs +15278 -0
- package/dist/chunks/sr-BZkhBwXj.mjs +14524 -0
- package/dist/chunks/sv-NmRZb_xi.mjs +12855 -0
- package/dist/chunks/sw-Be5ik3H6.mjs +14315 -0
- package/dist/chunks/ta-DsXh6neL.mjs +16836 -0
- package/dist/chunks/te-CwpCbM8M.mjs +18588 -0
- package/dist/chunks/th-CcZ15OLk.mjs +13894 -0
- package/dist/chunks/{tools-CW1RAIvp.mjs → tools-BBmJ8jqK.mjs} +1417 -761
- package/dist/chunks/tr-q3bTgvhW.mjs +16318 -0
- package/dist/chunks/ug-919EhLsL.mjs +9816 -0
- package/dist/chunks/uk-aNMEzd0Y.mjs +16725 -0
- package/dist/chunks/ur-BwQI77sh.mjs +18051 -0
- package/dist/chunks/vi-Dxq806-F.mjs +14006 -0
- package/dist/chunks/zh-BcHuy1Ti.mjs +16334 -0
- package/dist/full.mjs +10 -10
- package/dist/locales.mjs +98 -68
- package/dist/{messages-qV14y_oA2.mjs → messages--PYnorLu2.mjs} +32 -2
- package/dist/{messages-Cy3Ne_M9.mjs → messages-B2X5gO-s.mjs} +32 -2
- package/dist/{chunks/messages-D1SqLcxI2.mjs → messages-BD3lSUU_.mjs} +32 -2
- package/dist/{chunks/messages-CIZkNCpW.mjs → messages-BFbAM_pK2.mjs} +32 -2
- package/dist/{chunks/messages-CIBuZccC.mjs → messages-BMUQ7kA62.mjs} +32 -2
- package/dist/{messages-CrWsU4Xw2.mjs → messages-BR1Hlhdc2.mjs} +32 -2
- package/dist/{chunks/messages-D2uBlGXR2.mjs → messages-BRJBZB-H2.mjs} +32 -2
- package/dist/{chunks/messages-OIelQDL32.mjs → messages-BTFWPbHk2.mjs} +32 -2
- package/dist/{messages-EwoT2jof.mjs → messages-BXvE3YB4.mjs} +32 -2
- package/dist/{messages-CqNzlpWi.mjs → messages-BZg8xxIT.mjs} +32 -2
- package/dist/{messages-BAZK-8Zb.mjs → messages-B_idm-Pp.mjs} +32 -2
- package/dist/{messages-LyzjEEIj2.mjs → messages-BcrsCh5-2.mjs} +32 -2
- package/dist/{chunks/messages-DPoPrTiZ.mjs → messages-Bf0eqjDJ.mjs} +32 -2
- package/dist/{messages-CKmmJ9tW.mjs → messages-Bgu3IB_k.mjs} +32 -2
- package/dist/{chunks/messages-DeLzropc.mjs → messages-Bkv2sk7Y.mjs} +32 -2
- package/dist/{messages-rM6YFLZH.mjs → messages-Bn77ieXA.mjs} +32 -2
- package/dist/{messages-CTPFrtK92.mjs → messages-Buf_f_-32.mjs} +32 -2
- package/dist/{messages-ouRGTAKo2.mjs → messages-BvIBkUCG2.mjs} +32 -2
- package/dist/{chunks/messages-DVg69mRj.mjs → messages-Bw0kGTAV.mjs} +32 -2
- package/dist/{chunks/messages-CWp6-Y8f2.mjs → messages-C5MKR_WT2.mjs} +32 -2
- package/dist/{chunks/messages-N72K1hw3.mjs → messages-C6UkeZ0y.mjs} +32 -2
- package/dist/{messages-CzZAfGif.mjs → messages-C9AvcT0K.mjs} +32 -2
- package/dist/{chunks/messages-D0IKicWg.mjs → messages-CC596_yM.mjs} +32 -2
- package/dist/{messages-DiSeSE8p.mjs → messages-CGD9LR8l.mjs} +32 -2
- package/dist/{messages-Tx25QErT.mjs → messages-CH8tCpAX.mjs} +32 -2
- package/dist/{chunks/messages-DfsHFEWa.mjs → messages-CIGa1j8-2.mjs} +32 -2
- package/dist/{messages-TI0u6Ked.mjs → messages-CJ5pCncM.mjs} +32 -2
- package/dist/{chunks/messages-DEGzGmEQ2.mjs → messages-CJd52qP7.mjs} +32 -2
- package/dist/{messages-Bm8I_Li12.mjs → messages-CWIigMhw2.mjs} +32 -2
- package/dist/{messages-JZhs_0pf.mjs → messages-CY_Fj715.mjs} +32 -2
- package/dist/{messages-BSLYh59S.mjs → messages-C_YAmOyQ.mjs} +32 -2
- package/dist/{messages-CIxT1nSh.mjs → messages-CjCjr0wW.mjs} +32 -2
- package/dist/{messages-Dr9L1psl.mjs → messages-CqbeAhjH.mjs} +32 -2
- package/dist/{messages-BTR3QlIb2.mjs → messages-Cr2hTJyi2.mjs} +32 -2
- package/dist/{chunks/messages-BKjLgO5d.mjs → messages-Cuw_6akN.mjs} +32 -2
- package/dist/{messages-lEyiemqU2.mjs → messages-D0KBToO12.mjs} +32 -2
- package/dist/{messages-1_FCq0It.mjs → messages-D2Xo8E0P.mjs} +32 -2
- package/dist/{messages-Djhu5RJd.mjs → messages-D5Uk_qYf.mjs} +32 -2
- package/dist/{messages-CHWfj4ik.mjs → messages-D7dJJ7dx.mjs} +32 -2
- package/dist/{chunks/messages-DmrsEYQm2.mjs → messages-D8SS2hOs2.mjs} +32 -2
- package/dist/{chunks/messages-DQOk-dTH.mjs → messages-D9a5iSFC2.mjs} +32 -2
- package/dist/{messages-BSwhWcYw.mjs → messages-DAjtVSb6.mjs} +32 -2
- package/dist/{messages-BZXBdD_S2.mjs → messages-DBuHaabF2.mjs} +32 -2
- package/dist/{chunks/messages-CuRN1_ep2.mjs → messages-DCjAu6M72.mjs} +32 -2
- package/dist/{messages-CKX9iXIb2.mjs → messages-DFlT_TM02.mjs} +32 -2
- package/dist/{chunks/messages-DlM9TmqS2.mjs → messages-DPECmAwT.mjs} +32 -2
- package/dist/{chunks/messages-DhGHk-Ma2.mjs → messages-DR2Lgl002.mjs} +32 -2
- package/dist/{messages-DDiP6yex.mjs → messages-DUPXmcZh.mjs} +32 -2
- package/dist/{chunks/messages-CoRQE_Jc.mjs → messages-DVReQ5EC.mjs} +32 -2
- package/dist/{chunks/messages-BvlSf_pu.mjs → messages-DaZkRhoM.mjs} +32 -2
- package/dist/{chunks/messages-B9zocutJ.mjs → messages-Dc93MR86.mjs} +32 -2
- package/dist/{messages-Dc7ZzqYN.mjs → messages-Dd4OTpH3.mjs} +32 -2
- package/dist/{chunks/messages-BsYzg2le.mjs → messages-DffJ5W5G.mjs} +32 -2
- package/dist/{messages-D8iCBMg7.mjs → messages-DjWAR34D.mjs} +32 -2
- package/dist/{messages-BzZ8LahA2.mjs → messages-DkaJV53s2.mjs} +32 -2
- package/dist/{chunks/messages-stUQR58d.mjs → messages-Dl7LQ_fI.mjs} +32 -2
- package/dist/{chunks/messages-B_fFjpX12.mjs → messages-DlEdd01l2.mjs} +32 -2
- package/dist/{chunks/messages-5ohIWynJ.mjs → messages-ItP2i78l.mjs} +32 -2
- package/dist/{messages-DDJOu049.mjs → messages-Oqm_fCLp.mjs} +32 -2
- package/dist/{chunks/messages-DrXNb1gu.mjs → messages-UpoT1AS6.mjs} +32 -2
- package/dist/{chunks/messages-COkQfKa72.mjs → messages-Z8dpjy_K2.mjs} +32 -2
- package/dist/{messages-mVLfVtQX2.mjs → messages-ierNgYE02.mjs} +32 -2
- package/dist/{messages-DToWAonn2.mjs → messages-ikSI7M732.mjs} +32 -2
- package/dist/{chunks/messages-DKCoHa5D.mjs → messages-olK9oNtb.mjs} +32 -2
- package/dist/{messages-CsnglxbV2.mjs → messages-rgXeOQMh2.mjs} +32 -2
- package/dist/{chunks/messages-CDJLoStb.mjs → messages-syo0DKqf.mjs} +32 -2
- package/dist/{chunks/messages-BgaGPFuy2.mjs → messages-tFDVfvWL.mjs} +32 -2
- package/dist/react.mjs +2 -2
- package/dist/tools.mjs +3 -3
- package/dist/vendor.LICENSE.txt +34 -0
- package/package.json +3 -1
- package/src/components/i18n/locales/am/messages.json +32 -2
- package/src/components/i18n/locales/ar/messages.json +32 -2
- package/src/components/i18n/locales/az/messages.json +32 -2
- package/src/components/i18n/locales/bg/messages.json +32 -2
- package/src/components/i18n/locales/bn/messages.json +32 -2
- package/src/components/i18n/locales/bs/messages.json +32 -2
- package/src/components/i18n/locales/cs/messages.json +32 -2
- package/src/components/i18n/locales/da/messages.json +32 -2
- package/src/components/i18n/locales/de/messages.json +32 -2
- package/src/components/i18n/locales/dv/messages.json +32 -2
- package/src/components/i18n/locales/el/messages.json +32 -2
- package/src/components/i18n/locales/en/messages.json +31 -1
- package/src/components/i18n/locales/es/messages.json +32 -2
- package/src/components/i18n/locales/et/messages.json +32 -2
- package/src/components/i18n/locales/fa/messages.json +32 -2
- package/src/components/i18n/locales/fi/messages.json +32 -2
- package/src/components/i18n/locales/fil/messages.json +32 -2
- package/src/components/i18n/locales/fr/messages.json +32 -2
- package/src/components/i18n/locales/gu/messages.json +32 -2
- package/src/components/i18n/locales/he/messages.json +32 -2
- package/src/components/i18n/locales/hi/messages.json +32 -2
- package/src/components/i18n/locales/hr/messages.json +32 -2
- package/src/components/i18n/locales/hu/messages.json +32 -2
- package/src/components/i18n/locales/hy/messages.json +32 -2
- package/src/components/i18n/locales/id/messages.json +32 -2
- package/src/components/i18n/locales/it/messages.json +32 -2
- package/src/components/i18n/locales/ja/messages.json +32 -2
- package/src/components/i18n/locales/ka/messages.json +32 -2
- package/src/components/i18n/locales/km/messages.json +32 -2
- package/src/components/i18n/locales/kn/messages.json +32 -2
- package/src/components/i18n/locales/ko/messages.json +32 -2
- package/src/components/i18n/locales/ku/messages.json +32 -2
- package/src/components/i18n/locales/lo/messages.json +32 -2
- package/src/components/i18n/locales/lt/messages.json +32 -2
- package/src/components/i18n/locales/lv/messages.json +32 -2
- package/src/components/i18n/locales/mk/messages.json +32 -2
- package/src/components/i18n/locales/ml/messages.json +32 -2
- package/src/components/i18n/locales/mn/messages.json +32 -2
- package/src/components/i18n/locales/mr/messages.json +32 -2
- package/src/components/i18n/locales/ms/messages.json +32 -2
- package/src/components/i18n/locales/my/messages.json +32 -2
- package/src/components/i18n/locales/ne/messages.json +32 -2
- package/src/components/i18n/locales/nl/messages.json +32 -2
- package/src/components/i18n/locales/no/messages.json +32 -2
- package/src/components/i18n/locales/pa/messages.json +32 -2
- package/src/components/i18n/locales/pl/messages.json +32 -2
- package/src/components/i18n/locales/ps/messages.json +32 -2
- package/src/components/i18n/locales/pt/messages.json +32 -2
- package/src/components/i18n/locales/ro/messages.json +32 -2
- package/src/components/i18n/locales/ru/messages.json +32 -2
- package/src/components/i18n/locales/sd/messages.json +32 -2
- package/src/components/i18n/locales/si/messages.json +32 -2
- package/src/components/i18n/locales/sk/messages.json +32 -2
- package/src/components/i18n/locales/sl/messages.json +32 -2
- package/src/components/i18n/locales/sq/messages.json +32 -2
- package/src/components/i18n/locales/sr/messages.json +32 -2
- package/src/components/i18n/locales/sv/messages.json +32 -2
- package/src/components/i18n/locales/sw/messages.json +32 -2
- package/src/components/i18n/locales/ta/messages.json +32 -2
- package/src/components/i18n/locales/te/messages.json +32 -2
- package/src/components/i18n/locales/th/messages.json +32 -2
- package/src/components/i18n/locales/tr/messages.json +32 -2
- package/src/components/i18n/locales/ug/messages.json +32 -2
- package/src/components/i18n/locales/uk/messages.json +32 -2
- package/src/components/i18n/locales/ur/messages.json +32 -2
- package/src/components/i18n/locales/vi/messages.json +32 -2
- package/src/components/i18n/locales/yi/messages.json +32 -2
- package/src/components/i18n/locales/zh/messages.json +32 -2
- package/src/components/icons/index.ts +98 -0
- package/src/components/modules/api/i18n.ts +1 -0
- package/src/components/modules/blockEvents/composers/keyboardNavigation.ts +22 -5
- package/src/components/modules/blockManager/operations.ts +1 -0
- package/src/components/modules/toolbar/index.ts +102 -7
- package/src/components/modules/toolbar/plus-button.ts +17 -5
- package/src/components/modules/uiControllers/controllers/blockHover.ts +36 -9
- package/src/components/modules/uiControllers/handlers/touch.ts +20 -8
- package/src/components/tools/factory.ts +4 -0
- package/src/components/ui/toolbox.ts +38 -3
- package/src/components/utils/popover/popover-desktop.ts +48 -71
- package/src/components/utils/popover/popover-position.ts +105 -0
- package/src/stories/MarkerColors.stories.ts +8 -1
- package/src/styles/main.css +121 -17
- package/src/tools/callout/block-operations.ts +17 -0
- package/src/tools/callout/callout-keyboard.ts +45 -0
- package/src/tools/callout/constants.ts +30 -0
- package/src/tools/callout/dom-builder.ts +53 -0
- package/src/tools/callout/emoji-picker/emoji-data.ts +105 -0
- package/src/tools/callout/emoji-picker/emoji-locale.ts +165 -0
- package/src/tools/callout/emoji-picker/index.ts +762 -0
- package/src/tools/callout/emoji-picker/locales/am.json +1 -0
- package/src/tools/callout/emoji-picker/locales/ar.json +1 -0
- package/src/tools/callout/emoji-picker/locales/az.json +1 -0
- package/src/tools/callout/emoji-picker/locales/bg.json +1 -0
- package/src/tools/callout/emoji-picker/locales/bn.json +1 -0
- package/src/tools/callout/emoji-picker/locales/bs.json +1 -0
- package/src/tools/callout/emoji-picker/locales/cs.json +1 -0
- package/src/tools/callout/emoji-picker/locales/da.json +1 -0
- package/src/tools/callout/emoji-picker/locales/de.json +1 -0
- package/src/tools/callout/emoji-picker/locales/el.json +1 -0
- package/src/tools/callout/emoji-picker/locales/es.json +1 -0
- package/src/tools/callout/emoji-picker/locales/et.json +1 -0
- package/src/tools/callout/emoji-picker/locales/fa.json +1 -0
- package/src/tools/callout/emoji-picker/locales/fi.json +1 -0
- package/src/tools/callout/emoji-picker/locales/fil.json +1 -0
- package/src/tools/callout/emoji-picker/locales/fr.json +1 -0
- package/src/tools/callout/emoji-picker/locales/gu.json +1 -0
- package/src/tools/callout/emoji-picker/locales/he.json +1 -0
- package/src/tools/callout/emoji-picker/locales/hi.json +1 -0
- package/src/tools/callout/emoji-picker/locales/hr.json +1 -0
- package/src/tools/callout/emoji-picker/locales/hu.json +1 -0
- package/src/tools/callout/emoji-picker/locales/hy.json +1 -0
- package/src/tools/callout/emoji-picker/locales/id.json +1 -0
- package/src/tools/callout/emoji-picker/locales/it.json +1 -0
- package/src/tools/callout/emoji-picker/locales/ja.json +1 -0
- package/src/tools/callout/emoji-picker/locales/ka.json +1 -0
- package/src/tools/callout/emoji-picker/locales/km.json +1 -0
- package/src/tools/callout/emoji-picker/locales/kn.json +1 -0
- package/src/tools/callout/emoji-picker/locales/ko.json +1 -0
- package/src/tools/callout/emoji-picker/locales/ku.json +1 -0
- package/src/tools/callout/emoji-picker/locales/lo.json +1 -0
- package/src/tools/callout/emoji-picker/locales/lt.json +1 -0
- package/src/tools/callout/emoji-picker/locales/lv.json +1 -0
- package/src/tools/callout/emoji-picker/locales/mk.json +1 -0
- package/src/tools/callout/emoji-picker/locales/ml.json +1 -0
- package/src/tools/callout/emoji-picker/locales/mn.json +1 -0
- package/src/tools/callout/emoji-picker/locales/mr.json +1 -0
- package/src/tools/callout/emoji-picker/locales/ms.json +1 -0
- package/src/tools/callout/emoji-picker/locales/my.json +1 -0
- package/src/tools/callout/emoji-picker/locales/ne.json +1 -0
- package/src/tools/callout/emoji-picker/locales/nl.json +1 -0
- package/src/tools/callout/emoji-picker/locales/no.json +1 -0
- package/src/tools/callout/emoji-picker/locales/pa.json +1 -0
- package/src/tools/callout/emoji-picker/locales/pl.json +1 -0
- package/src/tools/callout/emoji-picker/locales/ps.json +1 -0
- package/src/tools/callout/emoji-picker/locales/pt.json +1 -0
- package/src/tools/callout/emoji-picker/locales/ro.json +1 -0
- package/src/tools/callout/emoji-picker/locales/ru.json +1 -0
- package/src/tools/callout/emoji-picker/locales/sd.json +1 -0
- package/src/tools/callout/emoji-picker/locales/si.json +1 -0
- package/src/tools/callout/emoji-picker/locales/sk.json +1 -0
- package/src/tools/callout/emoji-picker/locales/sl.json +1 -0
- package/src/tools/callout/emoji-picker/locales/sq.json +1 -0
- package/src/tools/callout/emoji-picker/locales/sr.json +1 -0
- package/src/tools/callout/emoji-picker/locales/sv.json +1 -0
- package/src/tools/callout/emoji-picker/locales/sw.json +1 -0
- package/src/tools/callout/emoji-picker/locales/ta.json +1 -0
- package/src/tools/callout/emoji-picker/locales/te.json +1 -0
- package/src/tools/callout/emoji-picker/locales/th.json +1 -0
- package/src/tools/callout/emoji-picker/locales/tr.json +1 -0
- package/src/tools/callout/emoji-picker/locales/ug.json +1 -0
- package/src/tools/callout/emoji-picker/locales/uk.json +1 -0
- package/src/tools/callout/emoji-picker/locales/ur.json +1 -0
- package/src/tools/callout/emoji-picker/locales/vi.json +1 -0
- package/src/tools/callout/emoji-picker/locales/zh.json +1 -0
- package/src/tools/callout/index.ts +338 -0
- package/src/tools/callout/types.ts +11 -0
- package/src/tools/header/header-toggle-keyboard.ts +3 -2
- package/src/tools/header/index.ts +1 -1
- package/src/tools/index.ts +2 -0
- package/src/tools/toggle/index.ts +1 -1
- package/src/tools/toggle/toggle-keyboard.ts +29 -1
- package/types/api/i18n.d.ts +7 -0
- package/types/tools-entry.d.ts +0 -4
- /package/dist/chunks/{i18next-DymC16cN.mjs → i18next-Ch0gVA3V.mjs} +0 -0
- /package/dist/chunks/{notifier-BqYxvxnV.mjs → notifier-Butv4Dvo.mjs} +0 -0
|
@@ -137,7 +137,7 @@ var r = Object.create, i = Object.defineProperty, a = Object.getOwnPropertyDescr
|
|
|
137
137
|
RIGHT: 2,
|
|
138
138
|
BACKWARD: 3,
|
|
139
139
|
FORWARD: 4
|
|
140
|
-
}, g = () => "0.8.2", _ = /* @__PURE__ */ function(e) {
|
|
140
|
+
}, g = () => "0.8.3-beta.2", _ = /* @__PURE__ */ function(e) {
|
|
141
141
|
return e.VERBOSE = "VERBOSE", e.INFO = "INFO", e.WARN = "WARN", e.ERROR = "ERROR", e;
|
|
142
142
|
}({}), v = (e, t, n = "log", r, i = "color: inherit") => {
|
|
143
143
|
let a = typeof console > "u" ? void 0 : console;
|
|
@@ -1461,15 +1461,15 @@ var Xe = class {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
};
|
|
1463
1463
|
xt = At, xt.instance = null;
|
|
1464
|
-
var
|
|
1465
|
-
|
|
1466
|
-
},
|
|
1467
|
-
|
|
1468
|
-
},
|
|
1469
|
-
|
|
1464
|
+
var R = () => At.getInstance(), jt = (e, t, n) => {
|
|
1465
|
+
R().show(e, t, n == null ? {} : n);
|
|
1466
|
+
}, Mt = () => {
|
|
1467
|
+
R().hide();
|
|
1468
|
+
}, Nt = (e, t, n) => {
|
|
1469
|
+
R().onHover(e, t, n == null ? {} : n);
|
|
1470
|
+
}, Pt = () => {
|
|
1471
|
+
R().destroy();
|
|
1470
1472
|
}, Ft = () => {
|
|
1471
|
-
jt().destroy();
|
|
1472
|
-
}, It = () => {
|
|
1473
1473
|
var e, t;
|
|
1474
1474
|
let n = window.getSelection();
|
|
1475
1475
|
if (n === null) return [null, 0];
|
|
@@ -1480,7 +1480,7 @@ var jt = () => At.getInstance(), Mt = (e, t, n) => {
|
|
|
1480
1480
|
if (a !== void 0) return [a, 0];
|
|
1481
1481
|
let o = (e = r.childNodes[i - 1]) == null ? null : e, s = (t = o == null ? void 0 : o.textContent) == null ? null : t;
|
|
1482
1482
|
return [o, s === null ? 0 : s.length];
|
|
1483
|
-
},
|
|
1483
|
+
}, It = (e) => {
|
|
1484
1484
|
var t;
|
|
1485
1485
|
let n = window.getSelection();
|
|
1486
1486
|
if (n === null || n.rangeCount === 0) return 0;
|
|
@@ -1488,7 +1488,7 @@ var jt = () => At.getInstance(), Mt = (e, t, n) => {
|
|
|
1488
1488
|
if (i == null) return 0;
|
|
1489
1489
|
let a = document.createRange();
|
|
1490
1490
|
return a.selectNodeContents(i), a.setEnd(r.startContainer, r.startOffset), a.toString().length;
|
|
1491
|
-
},
|
|
1491
|
+
}, Lt = (e, t, n, r) => {
|
|
1492
1492
|
let i = document.createRange();
|
|
1493
1493
|
r === "left" ? (i.selectNodeContents(e), i.setEnd(t, n)) : (i.selectNodeContents(e), i.setStart(t, n));
|
|
1494
1494
|
let a = i.cloneContents(), o = document.createElement("div");
|
|
@@ -1500,23 +1500,23 @@ var jt = () => At.getInstance(), Mt = (e, t, n) => {
|
|
|
1500
1500
|
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
1501
|
let u = o.getBoundingClientRect().width;
|
|
1502
1502
|
return document.body.removeChild(o), !(u > 0 || !Te(s) || window.getComputedStyle(e).whiteSpace.startsWith("pre") && s.length > 0);
|
|
1503
|
-
},
|
|
1503
|
+
}, Rt = (e) => {
|
|
1504
1504
|
var t;
|
|
1505
1505
|
let n = O.getDeepestNode(e);
|
|
1506
1506
|
if (n === null || O.isEmpty(e)) return !0;
|
|
1507
1507
|
if (O.isNativeInput(n)) return n.selectionEnd === 0;
|
|
1508
1508
|
if (O.isEmpty(e)) return !0;
|
|
1509
|
-
let [r, i] =
|
|
1509
|
+
let [r, i] = Ft();
|
|
1510
1510
|
if (r === null) return !1;
|
|
1511
1511
|
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
|
-
},
|
|
1512
|
+
return o !== null && o !== e && !(o.nodeType === Node.TEXT_NODE && o.parentNode === e) ? !1 : Lt(e, r, i, "left");
|
|
1513
|
+
}, zt = (e) => {
|
|
1514
1514
|
let t = O.getDeepestNode(e, !0);
|
|
1515
1515
|
if (t === null) return !0;
|
|
1516
1516
|
if (O.isNativeInput(t)) return t.selectionEnd === t.value.length;
|
|
1517
|
-
let [n, r] =
|
|
1518
|
-
return n === null ? !1 :
|
|
1519
|
-
},
|
|
1517
|
+
let [n, r] = Ft();
|
|
1518
|
+
return n === null ? !1 : Lt(e, n, r, "right");
|
|
1519
|
+
}, Bt, z = class e {
|
|
1520
1520
|
constructor(e, t) {
|
|
1521
1521
|
this.cursor = -1, this.items = [], this.items = e == null ? [] : e, this.focusedCssClass = t;
|
|
1522
1522
|
}
|
|
@@ -1549,13 +1549,13 @@ var jt = () => At.getInstance(), Mt = (e, t, n) => {
|
|
|
1549
1549
|
return O.canSetCaret(this.items[i]) && ae(() => et.setCursor(this.items[i]), 50)(), this.items[i].classList.add(this.focusedCssClass), this.items[i].setAttribute("data-blok-focused", "true"), i;
|
|
1550
1550
|
}
|
|
1551
1551
|
};
|
|
1552
|
-
|
|
1552
|
+
Bt = z, Bt.directions = {
|
|
1553
1553
|
RIGHT: "right",
|
|
1554
1554
|
LEFT: "left"
|
|
1555
1555
|
};
|
|
1556
1556
|
//#endregion
|
|
1557
1557
|
//#region src/components/flipper.ts
|
|
1558
|
-
var
|
|
1558
|
+
var Vt = class e {
|
|
1559
1559
|
get isActivated() {
|
|
1560
1560
|
return this.activated;
|
|
1561
1561
|
}
|
|
@@ -1588,7 +1588,7 @@ var Ht = class e {
|
|
|
1588
1588
|
break;
|
|
1589
1589
|
case null: break;
|
|
1590
1590
|
}
|
|
1591
|
-
}, this.iterator = new
|
|
1591
|
+
}, this.iterator = new z(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
1592
|
}
|
|
1593
1593
|
static get usedKeys() {
|
|
1594
1594
|
return [
|
|
@@ -1677,16 +1677,16 @@ var Ht = class e {
|
|
|
1677
1677
|
return this.handleContentEditableTargets;
|
|
1678
1678
|
}
|
|
1679
1679
|
handleTabPress(e) {
|
|
1680
|
-
let t = e.shiftKey ?
|
|
1680
|
+
let t = e.shiftKey ? z.directions.LEFT : z.directions.RIGHT;
|
|
1681
1681
|
if (this.skipNextTabFocus) {
|
|
1682
1682
|
this.skipNextTabFocus = !1;
|
|
1683
1683
|
return;
|
|
1684
1684
|
}
|
|
1685
1685
|
switch (t) {
|
|
1686
|
-
case
|
|
1686
|
+
case z.directions.RIGHT:
|
|
1687
1687
|
this.flipRight();
|
|
1688
1688
|
break;
|
|
1689
|
-
case
|
|
1689
|
+
case z.directions.LEFT:
|
|
1690
1690
|
this.flipLeft();
|
|
1691
1691
|
break;
|
|
1692
1692
|
}
|
|
@@ -1715,7 +1715,7 @@ var Ht = class e {
|
|
|
1715
1715
|
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
1716
|
return n && !i || s || o;
|
|
1717
1717
|
}
|
|
1718
|
-
},
|
|
1718
|
+
}, Ht = [
|
|
1719
1719
|
{
|
|
1720
1720
|
name: "gray",
|
|
1721
1721
|
text: "#787774",
|
|
@@ -1761,7 +1761,7 @@ var Ht = class e {
|
|
|
1761
1761
|
text: "#d44c47",
|
|
1762
1762
|
bg: "#fdebec"
|
|
1763
1763
|
}
|
|
1764
|
-
],
|
|
1764
|
+
], Ut = [
|
|
1765
1765
|
{
|
|
1766
1766
|
name: "gray",
|
|
1767
1767
|
text: "#9b9b9b",
|
|
@@ -1808,12 +1808,12 @@ var Ht = class e {
|
|
|
1808
1808
|
bg: "#4e1a18"
|
|
1809
1809
|
}
|
|
1810
1810
|
];
|
|
1811
|
-
function
|
|
1811
|
+
function Wt(e, t) {
|
|
1812
1812
|
return `var(--blok-color-${e}-${t})`;
|
|
1813
1813
|
}
|
|
1814
1814
|
//#endregion
|
|
1815
1815
|
//#region src/components/utils/color-mapping.ts
|
|
1816
|
-
function
|
|
1816
|
+
function Gt(e, t, n) {
|
|
1817
1817
|
let r = t / 100, i = n / 100;
|
|
1818
1818
|
if (r === 0) {
|
|
1819
1819
|
let e = Math.round(i * 255);
|
|
@@ -1833,7 +1833,7 @@ function Kt(e, t, n) {
|
|
|
1833
1833
|
Math.round(o(c, s, l - 1 / 3) * 255)
|
|
1834
1834
|
];
|
|
1835
1835
|
}
|
|
1836
|
-
function
|
|
1836
|
+
function B(e) {
|
|
1837
1837
|
let t = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);
|
|
1838
1838
|
if (t) return [
|
|
1839
1839
|
parseInt(t[1], 16),
|
|
@@ -1865,10 +1865,10 @@ function z(e) {
|
|
|
1865
1865
|
Number(a[3])
|
|
1866
1866
|
];
|
|
1867
1867
|
let o = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%\s*(?:,\s*[\d.]+\s*)?\)$/i.exec(e);
|
|
1868
|
-
return o ?
|
|
1868
|
+
return o ? Gt(Number(o[1]), Number(o[2]), Number(o[3])) : null;
|
|
1869
1869
|
}
|
|
1870
|
-
var
|
|
1871
|
-
function
|
|
1870
|
+
var Kt = .1;
|
|
1871
|
+
function V(e) {
|
|
1872
1872
|
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
1873
|
if (i === a) return [
|
|
1874
1874
|
0,
|
|
@@ -1882,8 +1882,8 @@ function B(e) {
|
|
|
1882
1882
|
o
|
|
1883
1883
|
];
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1886
|
-
let n = e[1] <
|
|
1885
|
+
function qt(e, t) {
|
|
1886
|
+
let n = e[1] < Kt, r = t[1] < Kt;
|
|
1887
1887
|
if (n && r) {
|
|
1888
1888
|
let n = Math.abs(e[2] - t[2]);
|
|
1889
1889
|
return n * n;
|
|
@@ -1892,14 +1892,14 @@ function Jt(e, t) {
|
|
|
1892
1892
|
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
1893
|
return 8 * a * a + 1 * o * o + 1 * s * s;
|
|
1894
1894
|
}
|
|
1895
|
-
function
|
|
1896
|
-
let n =
|
|
1895
|
+
function H(e, t) {
|
|
1896
|
+
let n = B(e);
|
|
1897
1897
|
if (n === null) return e;
|
|
1898
|
-
let r =
|
|
1899
|
-
return
|
|
1900
|
-
let i =
|
|
1898
|
+
let r = V(n);
|
|
1899
|
+
return Ht.reduce((e, n) => {
|
|
1900
|
+
let i = B(n[t]);
|
|
1901
1901
|
if (i === null) return e;
|
|
1902
|
-
let a =
|
|
1902
|
+
let a = qt(r, V(i));
|
|
1903
1903
|
return a < e.distance ? {
|
|
1904
1904
|
color: n[t],
|
|
1905
1905
|
distance: a
|
|
@@ -1909,14 +1909,14 @@ function V(e, t) {
|
|
|
1909
1909
|
distance: Infinity
|
|
1910
1910
|
}).color;
|
|
1911
1911
|
}
|
|
1912
|
-
function
|
|
1912
|
+
function Jt(e, t) {
|
|
1913
1913
|
var n;
|
|
1914
|
-
let r =
|
|
1914
|
+
let r = B(e);
|
|
1915
1915
|
if (r === null) return null;
|
|
1916
|
-
let i =
|
|
1917
|
-
let r =
|
|
1916
|
+
let i = V(r), a = [...Ht, ...Ut].reduce((e, n) => {
|
|
1917
|
+
let r = B(n[t]);
|
|
1918
1918
|
if (r === null) return e;
|
|
1919
|
-
let a =
|
|
1919
|
+
let a = qt(i, V(r));
|
|
1920
1920
|
return e === null || a < e.distance ? {
|
|
1921
1921
|
name: n.name,
|
|
1922
1922
|
distance: a
|
|
@@ -1926,11 +1926,11 @@ function Yt(e, t) {
|
|
|
1926
1926
|
}
|
|
1927
1927
|
//#endregion
|
|
1928
1928
|
//#region src/tools/table/table-cell-clipboard.ts
|
|
1929
|
-
var
|
|
1930
|
-
function
|
|
1929
|
+
var U = "data-blok-table-cells";
|
|
1930
|
+
function Yt(e, t, n) {
|
|
1931
1931
|
return e ? `background-color: ${n}` : t ? "background-color: transparent" : "";
|
|
1932
1932
|
}
|
|
1933
|
-
function
|
|
1933
|
+
function Xt(e) {
|
|
1934
1934
|
if (e.length === 0) return {
|
|
1935
1935
|
rows: 0,
|
|
1936
1936
|
cols: 0,
|
|
@@ -1947,28 +1947,28 @@ function Zt(e) {
|
|
|
1947
1947
|
cells: s
|
|
1948
1948
|
};
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1950
|
+
function Zt(e) {
|
|
1951
1951
|
let { data: t } = e;
|
|
1952
1952
|
return typeof t.text == "string" ? t.text : Array.isArray(t.items) ? t.items.filter((e) => typeof e == "string").join(" ") : "";
|
|
1953
1953
|
}
|
|
1954
|
-
function
|
|
1954
|
+
function Qt(e) {
|
|
1955
1955
|
var t;
|
|
1956
1956
|
let n = document.createElement("div");
|
|
1957
1957
|
return n.innerHTML = e, (t = n.textContent) == null ? "" : t;
|
|
1958
1958
|
}
|
|
1959
|
-
function
|
|
1960
|
-
return
|
|
1959
|
+
function $t(e) {
|
|
1960
|
+
return Qt(Zt(e));
|
|
1961
1961
|
}
|
|
1962
|
-
function
|
|
1963
|
-
return `<table ${
|
|
1964
|
-
let t = e.blocks.map(
|
|
1962
|
+
function en(e) {
|
|
1963
|
+
return `<table ${U}='${JSON.stringify(e).replace(/'/g, "'")}'>${e.cells.map((e) => `<tr>${e.map((e) => {
|
|
1964
|
+
let t = e.blocks.map(Zt).join(" "), n = [e.color ? `background-color: ${e.color}` : "", e.textColor ? `color: ${e.textColor}` : ""].filter(Boolean).join("; ");
|
|
1965
1965
|
return `<td${n ? ` style="${n}"` : ""}>${t}</td>`;
|
|
1966
1966
|
}).join("")}</tr>`).join("")}</table>`;
|
|
1967
1967
|
}
|
|
1968
|
-
function
|
|
1969
|
-
return e.cells.map((e) => e.map((e) => e.blocks.map(
|
|
1968
|
+
function tn(e) {
|
|
1969
|
+
return e.cells.map((e) => e.map((e) => e.blocks.map($t).join(" ")).join(" ")).join("\n");
|
|
1970
1970
|
}
|
|
1971
|
-
var
|
|
1971
|
+
var nn = new Set(["color", "background-color"]), rn = {
|
|
1972
1972
|
b: !0,
|
|
1973
1973
|
strong: !0,
|
|
1974
1974
|
i: !0,
|
|
@@ -1977,40 +1977,40 @@ var rn = new Set(["color", "background-color"]), an = {
|
|
|
1977
1977
|
a: { href: !0 },
|
|
1978
1978
|
mark: (e) => {
|
|
1979
1979
|
let t = e.style, n = Array.from({ length: t.length }, (e, n) => t.item(n));
|
|
1980
|
-
for (let e of n)
|
|
1980
|
+
for (let e of n) nn.has(e) || t.removeProperty(e);
|
|
1981
1981
|
return t.length > 0 ? { style: !0 } : {};
|
|
1982
1982
|
}
|
|
1983
1983
|
};
|
|
1984
|
-
function
|
|
1984
|
+
function W(e) {
|
|
1985
1985
|
let t = e.replace(/\s/g, "");
|
|
1986
1986
|
return t === "rgb(0,0,0)" || t === "#000000";
|
|
1987
1987
|
}
|
|
1988
|
-
function
|
|
1988
|
+
function an(e) {
|
|
1989
1989
|
let t = e.cloneNode(!0);
|
|
1990
1990
|
for (let e of Array.from(t.querySelectorAll("span"))) {
|
|
1991
1991
|
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 && !
|
|
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 && !W(l), f = u !== void 0 && u !== "transparent";
|
|
1993
1993
|
if (!a && !o && !d && !f) continue;
|
|
1994
|
-
let p = d ?
|
|
1994
|
+
let p = d ? H(l, "text") : "", m = f ? H(u, "bg") : "", h = [d ? `color: ${p}` : "", Yt(f, d, m)].filter(Boolean).join("; "), g = e.innerHTML, _ = h ? `<mark style="${h};">${g}</mark>` : g, v = o ? `<i>${_}</i>` : _, ee = a ? `<b>${v}</b>` : v;
|
|
1995
1995
|
e.replaceWith(document.createRange().createContextualFragment(ee));
|
|
1996
1996
|
}
|
|
1997
1997
|
for (let e of Array.from(t.querySelectorAll("a[style]"))) {
|
|
1998
1998
|
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 && !
|
|
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 && !W(i) && i !== "inherit", u = c !== void 0 && c !== "transparent" && c !== "inherit";
|
|
2000
2000
|
if (!l && !u) continue;
|
|
2001
|
-
let d = l ?
|
|
2001
|
+
let d = l ? H(i, "text") : "", f = u ? H(c, "bg") : "", p = [l ? `color: ${d}` : "", Yt(u, l, f)].filter(Boolean).join("; "), m = e;
|
|
2002
2002
|
m.innerHTML = `<mark style="${p};">${m.innerHTML}</mark>`, m.style.removeProperty("color"), m.style.removeProperty("background-color");
|
|
2003
2003
|
}
|
|
2004
2004
|
for (let e of Array.from(t.querySelectorAll("p"))) {
|
|
2005
2005
|
let t = document.createRange().createContextualFragment(e.innerHTML + "<br>");
|
|
2006
2006
|
e.replaceWith(t);
|
|
2007
2007
|
}
|
|
2008
|
-
return I(t.innerHTML,
|
|
2008
|
+
return I(t.innerHTML, rn).replace(/(<br\s*\/?>|\s)+$/i, "").trim();
|
|
2009
2009
|
}
|
|
2010
|
-
function
|
|
2010
|
+
function on(e) {
|
|
2011
2011
|
if (!e) return null;
|
|
2012
2012
|
let t = new DOMParser().parseFromString(e, "text/html").querySelector("table");
|
|
2013
|
-
if (!t || t.hasAttribute(
|
|
2013
|
+
if (!t || t.hasAttribute(U)) return null;
|
|
2014
2014
|
let n = t.querySelectorAll("tr");
|
|
2015
2015
|
if (n.length === 0) return null;
|
|
2016
2016
|
let r = [];
|
|
@@ -2018,16 +2018,16 @@ function sn(e) {
|
|
|
2018
2018
|
let t = e.querySelectorAll("td, th"), n = [];
|
|
2019
2019
|
t.forEach((e) => {
|
|
2020
2020
|
var t;
|
|
2021
|
-
let r =
|
|
2021
|
+
let r = an(e).split(/<br\s*\/?>/i).map((e) => e.trim()).filter(Boolean), i = { blocks: r.length > 0 ? r.map((e) => ({
|
|
2022
2022
|
tool: "paragraph",
|
|
2023
2023
|
data: { text: e }
|
|
2024
2024
|
})) : [{
|
|
2025
2025
|
tool: "paragraph",
|
|
2026
2026
|
data: { text: "" }
|
|
2027
2027
|
}] }, a = (t = e.getAttribute("style")) == null ? "" : t, o = /background-color\s*:\s*([^;]+)/i.exec(a);
|
|
2028
|
-
o != null && o[1] && (i.color =
|
|
2028
|
+
o != null && o[1] && (i.color = H(o[1].trim(), "bg"));
|
|
2029
2029
|
let s = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(a);
|
|
2030
|
-
s != null && s[1] && !
|
|
2030
|
+
s != null && s[1] && !W(s[1].trim()) && (i.textColor = H(s[1].trim(), "text")), n.push(i);
|
|
2031
2031
|
}), r.push(n);
|
|
2032
2032
|
});
|
|
2033
2033
|
let i = Math.max(0, ...r.map((e) => e.length));
|
|
@@ -2042,8 +2042,8 @@ function sn(e) {
|
|
|
2042
2042
|
cells: r
|
|
2043
2043
|
};
|
|
2044
2044
|
}
|
|
2045
|
-
function
|
|
2046
|
-
let t = RegExp(`${
|
|
2045
|
+
function sn(e) {
|
|
2046
|
+
let t = RegExp(`${U}='([^']*)'|${U}="([^"]*)"`, "s").exec(e);
|
|
2047
2047
|
if (!t) return null;
|
|
2048
2048
|
try {
|
|
2049
2049
|
var n;
|
|
@@ -2057,24 +2057,24 @@ function cn(e) {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
//#endregion
|
|
2059
2059
|
//#region src/components/icons/index.ts
|
|
2060
|
-
var ln = "\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", un = "\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", 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=\"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", fn = "\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", pn = "\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", mn = "\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", hn = "\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", gn = "\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", _n = "\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", 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 10h11M10 4.5v11\" 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=\"m12 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 <path d=\"m8 5 5 5-5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", xn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <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", 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 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", 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 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", wn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 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", 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=\"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", 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 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", Dn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 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", On = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"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", kn = "\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", An = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3 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", jn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"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", 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 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", Nn = "\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", Pn = "\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", 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 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", 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 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", 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 4l-3 3m3-3l3 3M10 4v7M5 16h10\" 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=\"M10 16l-3-3m3 3l3-3M10 16V9M5 4h10\" 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=\"M4 10l3-3M4 10l3 3M4 10h7M16 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 <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", Vn = "\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", Hn = "\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", 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 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", 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 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", Gn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 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", Kn = "\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", qn = "\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", Jn = "\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", W = {
|
|
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=\"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", Zn = "\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", Qn = "\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", $n = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5 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", er = "\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", 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 <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", nr = "\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", 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.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", ir = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5 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 = {
|
|
2061
2061
|
root: "",
|
|
2062
2062
|
alignedStart: "text-start",
|
|
2063
2063
|
alignedCenter: "text-center",
|
|
2064
2064
|
title: "",
|
|
2065
2065
|
description: "opacity-60 mt-[3px]"
|
|
2066
|
-
},
|
|
2066
|
+
}, ar = class {
|
|
2067
2067
|
constructor(e) {
|
|
2068
2068
|
let t = e.alignment === "center" ? "center" : "start";
|
|
2069
2069
|
this.nodes = {
|
|
2070
|
-
root: O.make("div", [
|
|
2071
|
-
title: O.make("div",
|
|
2072
|
-
}, this.nodes.root.setAttribute("data-alignment", t), this.nodes.root.appendChild(this.nodes.title), e.description !== void 0 && (this.nodes.description = O.make("div",
|
|
2070
|
+
root: O.make("div", [G.root, t === "center" ? G.alignedCenter : G.alignedStart]),
|
|
2071
|
+
title: O.make("div", G.title, { textContent: e.title })
|
|
2072
|
+
}, this.nodes.root.setAttribute("data-alignment", t), this.nodes.root.appendChild(this.nodes.title), e.description !== void 0 && (this.nodes.description = O.make("div", G.description, { textContent: e.description }), this.nodes.root.appendChild(this.nodes.description));
|
|
2073
2073
|
}
|
|
2074
2074
|
getElement() {
|
|
2075
2075
|
return this.nodes.root;
|
|
2076
2076
|
}
|
|
2077
|
-
},
|
|
2077
|
+
}, or = class {
|
|
2078
2078
|
constructor(e) {
|
|
2079
2079
|
this.params = e;
|
|
2080
2080
|
}
|
|
@@ -2082,7 +2082,7 @@ var ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2082
2082
|
if (this.params !== void 0 && "name" in this.params) return this.params.name;
|
|
2083
2083
|
}
|
|
2084
2084
|
destroy() {
|
|
2085
|
-
|
|
2085
|
+
Mt();
|
|
2086
2086
|
}
|
|
2087
2087
|
onChildrenOpen() {
|
|
2088
2088
|
var e;
|
|
@@ -2097,7 +2097,7 @@ var ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2097
2097
|
this.params !== void 0 && "onActivate" in this.params && ((e = (t = this.params).onActivate) == null || e.call(t, this.params));
|
|
2098
2098
|
}
|
|
2099
2099
|
addHint(e, t) {
|
|
2100
|
-
|
|
2100
|
+
Nt(e, new ar(t).getElement(), { placement: t.position });
|
|
2101
2101
|
}
|
|
2102
2102
|
getMountElement() {
|
|
2103
2103
|
return this.getElement();
|
|
@@ -2139,15 +2139,15 @@ var ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2139
2139
|
get isActive() {
|
|
2140
2140
|
return this.params === void 0 || !("isActive" in this.params) ? !1 : typeof this.params.isActive == "function" ? this.params.isActive() : this.params.isActive === !0;
|
|
2141
2141
|
}
|
|
2142
|
-
},
|
|
2142
|
+
}, K = {
|
|
2143
2143
|
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
2144
|
itemDisabled: "cursor-default pointer-events-none text-text-secondary",
|
|
2145
2145
|
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
2146
|
focused: "is-focused"
|
|
2147
|
-
},
|
|
2147
|
+
}, sr = {
|
|
2148
2148
|
item: "rounded-lg p-1",
|
|
2149
2149
|
itemIconOnly: "aspect-square justify-center"
|
|
2150
|
-
},
|
|
2150
|
+
}, cr = { item: "rounded p-[3px] mobile:p-1" }, q = class extends or {
|
|
2151
2151
|
get isDisabled() {
|
|
2152
2152
|
return this.params.isDisabled === !0;
|
|
2153
2153
|
}
|
|
@@ -2233,7 +2233,7 @@ var ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2233
2233
|
}
|
|
2234
2234
|
if (this.hasChildren && !this.isChevronHidden) {
|
|
2235
2235
|
let t = document.createElement("div");
|
|
2236
|
-
t.className = this.getChevronClass(s), t.setAttribute(f.popoverItemIcon, ""), t.setAttribute(f.popoverItemIconChevronRight, ""), t.setAttribute("data-blok-testid", "popover-item-chevron-right"), t.innerHTML =
|
|
2236
|
+
t.className = this.getChevronClass(s), t.setAttribute(f.popoverItemIcon, ""), t.setAttribute(f.popoverItemIconChevronRight, ""), t.setAttribute("data-blok-testid", "popover-item-chevron-right"), t.innerHTML = yn, e.appendChild(t), this.nodes.chevron = t;
|
|
2237
2237
|
}
|
|
2238
2238
|
}
|
|
2239
2239
|
createIconElement(e, t, n, r) {
|
|
@@ -2243,13 +2243,13 @@ var ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2243
2243
|
getContainerClass() {
|
|
2244
2244
|
var e, n, r, i;
|
|
2245
2245
|
let a = (e = (n = this.renderParams) == null ? void 0 : n.isInline) == null ? !1 : e, o = (r = (i = this.renderParams) == null ? void 0 : i.isNestedInline) == null ? !1 : r;
|
|
2246
|
-
return t(
|
|
2246
|
+
return t(K.item, !a && !o && "pl-2 pr-3", a && sr.item, a && this.params.icon && sr.itemIconOnly, o && cr.item, this.params.isDisabled && K.itemDisabled);
|
|
2247
2247
|
}
|
|
2248
2248
|
getIconClass(e, n, r) {
|
|
2249
|
-
return t(
|
|
2249
|
+
return t(K.icon, n && "w-auto h-auto bg-transparent [&_svg]:w-icon [&_svg]:h-icon mobile:[&_svg]:w-icon-mobile mobile:[&_svg]:h-icon-mobile", r && "w-toolbox-btn h-toolbox-btn", e && "mr-3", e && n && "shadow-none mr-0!", e && r && "mr-2!");
|
|
2250
2250
|
}
|
|
2251
2251
|
getChevronClass(e) {
|
|
2252
|
-
return t(
|
|
2252
|
+
return t(K.icon, "w-5 h-5 bg-transparent", e && "rotate-90");
|
|
2253
2253
|
}
|
|
2254
2254
|
setActive(e) {
|
|
2255
2255
|
this.nodes.root && (e ? this.nodes.root.setAttribute(f.popoverItemActive, "true") : this.nodes.root.removeAttribute(f.popoverItemActive));
|
|
@@ -2326,16 +2326,16 @@ var ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2326
2326
|
getIconElement() {
|
|
2327
2327
|
return this.nodes.icon;
|
|
2328
2328
|
}
|
|
2329
|
-
},
|
|
2329
|
+
}, J = {
|
|
2330
2330
|
container: "py-1.5 px-2 max-h-5 overflow-hidden",
|
|
2331
2331
|
containerHidden: "opacity-0 max-h-0! py-0!",
|
|
2332
2332
|
line: "h-px w-full bg-popover-border/60"
|
|
2333
|
-
},
|
|
2333
|
+
}, lr = {
|
|
2334
2334
|
container: "px-1 py-0 max-h-none",
|
|
2335
2335
|
line: "h-full w-px",
|
|
2336
2336
|
nestedContainer: "py-1 px-[3px]",
|
|
2337
2337
|
nestedLine: "w-full h-px"
|
|
2338
|
-
},
|
|
2338
|
+
}, ur = class extends or {
|
|
2339
2339
|
constructor(e) {
|
|
2340
2340
|
var t, n;
|
|
2341
2341
|
super(), this.nodes = {
|
|
@@ -2352,11 +2352,11 @@ var ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2352
2352
|
this.nodes.root.className = e ? n : t, e ? this.nodes.root.setAttribute(f.hidden, "true") : this.nodes.root.removeAttribute(f.hidden);
|
|
2353
2353
|
}
|
|
2354
2354
|
getContainerClass(e) {
|
|
2355
|
-
let n =
|
|
2356
|
-
return this.isNestedInline ? t(n,
|
|
2355
|
+
let n = J.container;
|
|
2356
|
+
return this.isNestedInline ? t(n, lr.nestedContainer, e && J.containerHidden) : this.isInline ? t(n, lr.container, e && J.containerHidden) : t(n, e && J.containerHidden);
|
|
2357
2357
|
}
|
|
2358
2358
|
getLineClass() {
|
|
2359
|
-
return this.isNestedInline ? t(
|
|
2359
|
+
return this.isNestedInline ? t(J.line, lr.nestedLine) : this.isInline ? t(J.line, lr.line) : J.line;
|
|
2360
2360
|
}
|
|
2361
2361
|
createRootElement() {
|
|
2362
2362
|
let e = document.createElement("div");
|
|
@@ -2364,10 +2364,10 @@ var ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2364
2364
|
let t = document.createElement("div");
|
|
2365
2365
|
return t.className = this.getLineClass(), t.setAttribute(f.popoverItemSeparatorLine, ""), e.appendChild(t), this.nodes.line = t, e;
|
|
2366
2366
|
}
|
|
2367
|
-
},
|
|
2367
|
+
}, dr = {
|
|
2368
2368
|
root: "",
|
|
2369
2369
|
rootHidden: "hidden"
|
|
2370
|
-
},
|
|
2370
|
+
}, fr = { root: "flex items-center" }, Y = class extends or {
|
|
2371
2371
|
constructor(e, t) {
|
|
2372
2372
|
var n;
|
|
2373
2373
|
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);
|
|
@@ -2384,12 +2384,12 @@ var ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2384
2384
|
return Array.from(e);
|
|
2385
2385
|
}
|
|
2386
2386
|
updateRootClasses() {
|
|
2387
|
-
this.nodes.root && (this.nodes.root.className = t(
|
|
2387
|
+
this.nodes.root && (this.nodes.root.className = t(dr.root, this.isInline && fr.root, this.isHidden && dr.rootHidden));
|
|
2388
2388
|
}
|
|
2389
2389
|
createRootElement(n, r) {
|
|
2390
2390
|
var i;
|
|
2391
2391
|
let a = document.createElement("div");
|
|
2392
|
-
if (a.className = t(
|
|
2392
|
+
if (a.className = t(dr.root, this.isInline && fr.root), a.setAttribute(f.popoverItemHtml, ""), a.setAttribute("data-blok-testid", "popover-item-html"), n.name && a.setAttribute("data-blok-item-name", n.name), a.appendChild(n.element), n.hint !== void 0 && (r == null || (i = r.hint) == null ? void 0 : i.enabled) !== !1) {
|
|
2393
2393
|
var o, s;
|
|
2394
2394
|
this.addHint(a, e(e({}, n.hint), {}, {
|
|
2395
2395
|
position: (r == null || (o = r.hint) == null ? void 0 : o.position) || "right",
|
|
@@ -2398,11 +2398,11 @@ var ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2398
2398
|
}
|
|
2399
2399
|
return a;
|
|
2400
2400
|
}
|
|
2401
|
-
},
|
|
2401
|
+
}, pr = {
|
|
2402
2402
|
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
2403
|
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
2404
|
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
|
-
},
|
|
2405
|
+
}, mr = (e, t) => {
|
|
2406
2406
|
if (e.length === 0) return t.length;
|
|
2407
2407
|
if (t.length === 0) return e.length;
|
|
2408
2408
|
let n = Array.from({ length: t.length + 1 }, (e, t) => t), r = Array(t.length + 1);
|
|
@@ -2415,37 +2415,37 @@ var ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2415
2415
|
n.splice(0, n.length, ...r);
|
|
2416
2416
|
}
|
|
2417
2417
|
return n[t.length];
|
|
2418
|
-
},
|
|
2418
|
+
}, hr = (e, t) => [...e].reduce((e, n) => e < t.length && n === t[e] ? e + 1 : e, 0) === t.length, gr = (e, t) => [...e].reduce((n, r, i) => {
|
|
2419
2419
|
let a = i === 0 || e[i - 1] === " " || e[i - 1] === "-" || e[i - 1] === "_";
|
|
2420
2420
|
return n < t.length && a && r === t[n] ? n + 1 : n;
|
|
2421
|
-
}, 0) === t.length,
|
|
2421
|
+
}, 0) === t.length, _r = (e, t) => {
|
|
2422
2422
|
if (e === t) return 100;
|
|
2423
2423
|
if (e.startsWith(t)) return 90;
|
|
2424
2424
|
if (e.includes(t)) return 75;
|
|
2425
|
-
if (t.length >= 2 &&
|
|
2426
|
-
if (t.length >= 2 &&
|
|
2425
|
+
if (t.length >= 2 && gr(e, t)) return 55;
|
|
2426
|
+
if (t.length >= 2 && hr(e, t)) return 35;
|
|
2427
2427
|
if (t.length >= 3) {
|
|
2428
2428
|
let n = Math.floor(t.length / 3);
|
|
2429
|
-
if (
|
|
2429
|
+
if (mr(e, t) <= n) return 15;
|
|
2430
2430
|
}
|
|
2431
2431
|
return 0;
|
|
2432
|
-
},
|
|
2432
|
+
}, vr = (e, t) => {
|
|
2433
2433
|
if (t === "") return 100;
|
|
2434
2434
|
let n = t.toLowerCase(), r = [];
|
|
2435
2435
|
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
2436
|
return r.reduce((e, t) => {
|
|
2437
|
-
let r =
|
|
2437
|
+
let r = _r(t, n);
|
|
2438
2438
|
return r > e ? r : e;
|
|
2439
2439
|
}, 0);
|
|
2440
|
-
},
|
|
2440
|
+
}, yr = /* @__PURE__ */ function(e) {
|
|
2441
2441
|
return e.Search = "search", e;
|
|
2442
|
-
}({}),
|
|
2442
|
+
}({}), br = class extends He {
|
|
2443
2443
|
constructor({ items: e, placeholder: t }) {
|
|
2444
2444
|
super(), this.searchQuery = "", this.handleValueChange = () => {
|
|
2445
2445
|
this.applySearch(this.input.value);
|
|
2446
|
-
}, this.listeners = new Me(), this.items = e, this.wrapper = O.make("div",
|
|
2447
|
-
let n = O.make("div",
|
|
2448
|
-
this.input = O.make("input",
|
|
2446
|
+
}, this.listeners = new Me(), this.items = e, this.wrapper = O.make("div", pr.wrapper), this.wrapper.setAttribute("data-blok-testid", "popover-search-field");
|
|
2447
|
+
let n = O.make("div", pr.icon, { innerHTML: bn });
|
|
2448
|
+
this.input = O.make("input", pr.input, {
|
|
2449
2449
|
type: "search",
|
|
2450
2450
|
placeholder: t,
|
|
2451
2451
|
tabIndex: -1
|
|
@@ -2468,7 +2468,7 @@ var ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2468
2468
|
this.input.value = "";
|
|
2469
2469
|
}
|
|
2470
2470
|
applySearch(e) {
|
|
2471
|
-
this.searchQuery !== e && (this.searchQuery = e, this.emit(
|
|
2471
|
+
this.searchQuery !== e && (this.searchQuery = e, this.emit(yr.Search, {
|
|
2472
2472
|
query: e,
|
|
2473
2473
|
items: this.foundItems
|
|
2474
2474
|
}));
|
|
@@ -2496,10 +2496,10 @@ var ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2496
2496
|
get foundItems() {
|
|
2497
2497
|
return this.items.map((e) => ({
|
|
2498
2498
|
item: e,
|
|
2499
|
-
score:
|
|
2499
|
+
score: vr(e, this.searchQuery)
|
|
2500
2500
|
})).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score).map(({ item: e }) => e);
|
|
2501
2501
|
}
|
|
2502
|
-
},
|
|
2502
|
+
}, xr, X = class e {
|
|
2503
2503
|
constructor() {
|
|
2504
2504
|
this.stack = [], this.boundPointerDown = null;
|
|
2505
2505
|
}
|
|
@@ -2551,7 +2551,7 @@ var ln = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2551
2551
|
t !== -1 && this.stack.splice(t, 1);
|
|
2552
2552
|
}
|
|
2553
2553
|
};
|
|
2554
|
-
|
|
2554
|
+
xr = X, xr._instance = null;
|
|
2555
2555
|
//#endregion
|
|
2556
2556
|
//#region src/components/utils/popover/popover.const.ts
|
|
2557
2557
|
var Z = {
|
|
@@ -2560,16 +2560,16 @@ var Z = {
|
|
|
2560
2560
|
popoverContainerOpened: "opacity-100 pointer-events-auto p-1.5 max-h-(--max-height) border-none",
|
|
2561
2561
|
popoverOverlay: "hidden bg-dark",
|
|
2562
2562
|
items: "overflow-y-auto overscroll-contain"
|
|
2563
|
-
},
|
|
2563
|
+
}, Sr = {
|
|
2564
2564
|
popover: "relative",
|
|
2565
2565
|
popoverContainer: "flex-row top-0 min-w-max w-max p-1 mobile:absolute"
|
|
2566
|
-
},
|
|
2566
|
+
}, Cr = (e) => `level-${e}`, Q = /* @__PURE__ */ function(e) {
|
|
2567
2567
|
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
2568
|
}({}), $ = /* @__PURE__ */ function(e) {
|
|
2569
2569
|
return e.Closed = "closed", e.ClosedOnActivate = "closed-on-activate", e;
|
|
2570
|
-
}({}),
|
|
2570
|
+
}({}), wr = class extends He {
|
|
2571
2571
|
get itemsDefault() {
|
|
2572
|
-
return this.items.filter((e) => e instanceof
|
|
2572
|
+
return this.items.filter((e) => e instanceof q);
|
|
2573
2573
|
}
|
|
2574
2574
|
constructor(t, n = {}) {
|
|
2575
2575
|
super(), this.params = t, this.itemsRenderParams = n, this.listeners = new Me(), this.messages = {
|
|
@@ -2588,10 +2588,10 @@ var Z = {
|
|
|
2588
2588
|
let n = this.nodes.popover;
|
|
2589
2589
|
n !== null && !n.isConnected && document.body.appendChild(n), this.nodes.popover.setAttribute(f.popoverOpened, "true"), this.nodes.popoverContainer.className = t(this.nodes.popoverContainer.className, Z.popoverContainerOpened), this.itemsDefault.forEach((e) => this.refreshItemActiveState(e)), this.search !== void 0 && this.search.focus();
|
|
2590
2590
|
let { trigger: r } = this.params;
|
|
2591
|
-
((e = this.params.nestingLevel) == null ? 0 : e) === 0 && r !== void 0 &&
|
|
2591
|
+
((e = this.params.nestingLevel) == null ? 0 : e) === 0 && r !== void 0 && X.instance.register(this, r);
|
|
2592
2592
|
}
|
|
2593
2593
|
hide() {
|
|
2594
|
-
this.nodes.popover.removeAttribute(f.popoverOpened), this.nodes.popover.removeAttribute(f.popoverOpenTop), this.nodes.popover.removeAttribute(f.popoverOpenLeft), this.nodes.popoverContainer.className = Z.popoverContainer, this.itemsDefault.forEach((e) => e.reset()), this.search !== void 0 && this.search.clear(),
|
|
2594
|
+
this.nodes.popover.removeAttribute(f.popoverOpened), this.nodes.popover.removeAttribute(f.popoverOpenTop), this.nodes.popover.removeAttribute(f.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
2595
|
}
|
|
2596
2596
|
destroy() {
|
|
2597
2597
|
var e, t;
|
|
@@ -2611,21 +2611,21 @@ var Z = {
|
|
|
2611
2611
|
buildItems(e) {
|
|
2612
2612
|
return e.map((e) => {
|
|
2613
2613
|
switch (e.type) {
|
|
2614
|
-
case F.Separator: return new
|
|
2614
|
+
case F.Separator: return new ur(this.itemsRenderParams[F.Separator]);
|
|
2615
2615
|
case F.Html: return new Y(e, this.itemsRenderParams[F.Html]);
|
|
2616
2616
|
case F.Default:
|
|
2617
|
-
case void 0: return new
|
|
2617
|
+
case void 0: return new q(e, this.itemsRenderParams[F.Default]);
|
|
2618
2618
|
}
|
|
2619
2619
|
});
|
|
2620
2620
|
}
|
|
2621
2621
|
getTargetItem(e) {
|
|
2622
|
-
return this.items.filter((e) => e instanceof
|
|
2622
|
+
return this.items.filter((e) => e instanceof q || e instanceof Y).find((t) => {
|
|
2623
2623
|
let n = t.getElement();
|
|
2624
2624
|
return n === null ? !1 : e.composedPath().includes(n);
|
|
2625
2625
|
});
|
|
2626
2626
|
}
|
|
2627
2627
|
handleItemClick(e) {
|
|
2628
|
-
if (!(e instanceof
|
|
2628
|
+
if (!(e instanceof q && e.isDisabled)) {
|
|
2629
2629
|
if (e.hasChildren) {
|
|
2630
2630
|
this.showNestedItems(e), this.callHandleClickIfPresent(e);
|
|
2631
2631
|
return;
|
|
@@ -2638,7 +2638,7 @@ var Z = {
|
|
|
2638
2638
|
t !== void 0 && this.handleItemClick(t);
|
|
2639
2639
|
}
|
|
2640
2640
|
toggleItemActivenessIfNeeded(e) {
|
|
2641
|
-
if (!(e instanceof
|
|
2641
|
+
if (!(e instanceof q) || (e.toggle === !0 && e.toggleActive(), typeof e.toggle != "string")) return;
|
|
2642
2642
|
let t = this.itemsDefault.filter((t) => t.toggle === e.toggle);
|
|
2643
2643
|
if (t.length === 1) {
|
|
2644
2644
|
e.toggleActive();
|
|
@@ -2649,7 +2649,7 @@ var Z = {
|
|
|
2649
2649
|
});
|
|
2650
2650
|
}
|
|
2651
2651
|
refreshItemActiveState(e) {
|
|
2652
|
-
e instanceof
|
|
2652
|
+
e instanceof q && e.toggle === void 0 && e.toggleActive(e.isActive);
|
|
2653
2653
|
}
|
|
2654
2654
|
callHandleClickIfPresent(e) {
|
|
2655
2655
|
"handleClick" in e && typeof e.handleClick == "function" && e.handleClick();
|
|
@@ -2689,7 +2689,25 @@ var Z = {
|
|
|
2689
2689
|
i !== null && ((r = this.nodes.items) == null || r.appendChild(i));
|
|
2690
2690
|
});
|
|
2691
2691
|
}
|
|
2692
|
-
}
|
|
2692
|
+
};
|
|
2693
|
+
//#endregion
|
|
2694
|
+
//#region src/components/utils/popover/popover-position.ts
|
|
2695
|
+
function Tr(e, t, n) {
|
|
2696
|
+
return e <= t ? !1 : e <= n ? !0 : n > t;
|
|
2697
|
+
}
|
|
2698
|
+
function Er(e) {
|
|
2699
|
+
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 = Tr(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, ee = n.right + o.x, y = g + o.x - v, te = ee - _ - o.x, b = Tr(r.width, y, te), x = b ? Math.max(_ + o.x, n.right - r.width + o.x) : v;
|
|
2701
|
+
return {
|
|
2702
|
+
top: h,
|
|
2703
|
+
left: x + r.width > g + o.x ? Math.max(_ + o.x, g + o.x - r.width) : x,
|
|
2704
|
+
openTop: p,
|
|
2705
|
+
openLeft: b
|
|
2706
|
+
};
|
|
2707
|
+
}
|
|
2708
|
+
//#endregion
|
|
2709
|
+
//#region src/components/utils/popover/popover-desktop.ts
|
|
2710
|
+
var Dr = class e extends wr {
|
|
2693
2711
|
setLeftAlignElement(e) {
|
|
2694
2712
|
this.leftAlignElement = e;
|
|
2695
2713
|
}
|
|
@@ -2705,9 +2723,9 @@ var Z = {
|
|
|
2705
2723
|
var t;
|
|
2706
2724
|
let n = e.query === "", r = e.topLevelItems, i = !n && e.promotedItems.length > 0 ? this.deduplicateAgainstPromoted(r, e.promotedItems) : r, a = i.length === 0 && e.promotedItems.length === 0;
|
|
2707
2725
|
this.items.forEach((e) => {
|
|
2708
|
-
let t = e instanceof
|
|
2726
|
+
let t = e instanceof q, r = e instanceof ur || e instanceof Y, o = t ? !i.includes(e) || e.name !== void 0 && this.isNamePermanentlyHidden(e.name) : r && (a || !n);
|
|
2709
2727
|
e.toggleHidden(o);
|
|
2710
|
-
}), !n && i.length > 0 ? this.reorderItemsByRank(i) : n && this.originalItemOrder !== void 0 && this.restoreOriginalItemOrder();
|
|
2728
|
+
}), this._size = void 0, !n && i.length > 0 ? this.reorderItemsByRank(i) : n && this.originalItemOrder !== void 0 && this.restoreOriginalItemOrder();
|
|
2711
2729
|
for (let e of this.promotedSeparators) e.remove();
|
|
2712
2730
|
if (this.promotedSeparators = [], this.promotedItemCache !== null) for (let e of this.promotedItemCache.items) {
|
|
2713
2731
|
var o;
|
|
@@ -2740,9 +2758,9 @@ var Z = {
|
|
|
2740
2758
|
(t = this.flipper) != null && t.isActivated && (this.flipper.deactivate(), this.flipper.activate(u), u.length > 0 && this.flipper.focusItem(0, { skipNextTab: !0 }));
|
|
2741
2759
|
}, 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(f.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;
|
|
2742
2760
|
let r = e.flipper;
|
|
2743
|
-
r === void 0 ? this.flipper = new
|
|
2761
|
+
r === void 0 ? this.flipper = new Vt({
|
|
2744
2762
|
items: this.flippableElements,
|
|
2745
|
-
focusedItemClass:
|
|
2763
|
+
focusedItemClass: K.focused,
|
|
2746
2764
|
allowedKeys: [
|
|
2747
2765
|
m.TAB,
|
|
2748
2766
|
m.UP,
|
|
@@ -2771,15 +2789,32 @@ var Z = {
|
|
|
2771
2789
|
var e;
|
|
2772
2790
|
let t = this.getMountElement();
|
|
2773
2791
|
if (this.trigger && t && document.body.appendChild(t), this.trigger) {
|
|
2774
|
-
let { top: e, left: t } = this.calculatePosition();
|
|
2775
|
-
this.nodes.popover.style.position = "absolute", this.nodes.popover.style.top = `${e}px`, this.nodes.popover.style.left = `${t}px`, this.nodes.popover.style.setProperty(Q.PopoverTop, "0px"), this.nodes.popover.style.setProperty(Q.PopoverLeft, "0px");
|
|
2792
|
+
let { top: e, left: t, openTop: n, openLeft: r } = this.calculatePosition();
|
|
2793
|
+
this.nodes.popover.style.position = "absolute", this.nodes.popover.style.top = `${e}px`, this.nodes.popover.style.left = `${t}px`, this.nodes.popover.style.setProperty(Q.PopoverTop, "0px"), this.nodes.popover.style.setProperty(Q.PopoverLeft, "0px"), this.setOpenTop(n), this.setOpenLeft(r);
|
|
2776
2794
|
}
|
|
2777
2795
|
let n = this.size;
|
|
2778
2796
|
if (this.nodes.popover.style.setProperty(Q.PopoverHeight, n.height + "px"), this.params.width === void 0 || this.params.width === "auto") {
|
|
2779
2797
|
let e = this.params.minWidth === void 0 ? 0 : parseFloat(this.params.minWidth), t = Math.max(n.width, e);
|
|
2780
2798
|
this.nodes.popover.style.setProperty("--width", t + "px");
|
|
2781
2799
|
}
|
|
2782
|
-
|
|
2800
|
+
if (!this.trigger) {
|
|
2801
|
+
let { openTop: e, openLeft: t } = Er({
|
|
2802
|
+
anchor: this.nodes.popoverContainer.getBoundingClientRect(),
|
|
2803
|
+
popoverSize: n,
|
|
2804
|
+
scopeBounds: this.scopeElement.getBoundingClientRect(),
|
|
2805
|
+
viewportSize: {
|
|
2806
|
+
width: window.innerWidth,
|
|
2807
|
+
height: window.innerHeight
|
|
2808
|
+
},
|
|
2809
|
+
scrollOffset: {
|
|
2810
|
+
x: window.scrollX,
|
|
2811
|
+
y: window.scrollY
|
|
2812
|
+
},
|
|
2813
|
+
offset: 0
|
|
2814
|
+
});
|
|
2815
|
+
e && (this.setOpenTop(!0), this.nodes.popover.style.setProperty(Q.PopoverTop, "calc(-1 * (0.5rem + var(--popover-height)))")), t && (this.setOpenLeft(!0), this.nodes.popover.style.setProperty(Q.PopoverLeft, "calc(-1 * var(--width) + 100%)"));
|
|
2816
|
+
}
|
|
2817
|
+
super.show(), (e = this.flipper) == null || e.activate(this.flippableElements), queueMicrotask(() => {
|
|
2783
2818
|
this.focusInitialElement();
|
|
2784
2819
|
});
|
|
2785
2820
|
}
|
|
@@ -2793,21 +2828,32 @@ var Z = {
|
|
|
2793
2828
|
}
|
|
2794
2829
|
updatePosition(e) {
|
|
2795
2830
|
if (this.params.position = e, this.nodes.popover.hasAttribute("data-blok-popover-opened")) {
|
|
2796
|
-
let { top: e, left: t } = this.calculatePosition();
|
|
2797
|
-
this.nodes.popover.style.top = `${e}px`, this.nodes.popover.style.left = `${t}px
|
|
2831
|
+
let { top: e, left: t, openTop: n, openLeft: r } = this.calculatePosition();
|
|
2832
|
+
this.nodes.popover.style.top = `${e}px`, this.nodes.popover.style.left = `${t}px`, this.setOpenTop(n), this.setOpenLeft(r);
|
|
2798
2833
|
}
|
|
2799
2834
|
}
|
|
2800
2835
|
calculatePosition() {
|
|
2801
|
-
var e, t, n
|
|
2802
|
-
let
|
|
2803
|
-
|
|
2836
|
+
var e, t, n;
|
|
2837
|
+
let r = (e = this.params.position) == null ? (t = this.trigger) == null ? void 0 : t.getBoundingClientRect() : e;
|
|
2838
|
+
return r ? Er({
|
|
2839
|
+
anchor: r,
|
|
2840
|
+
popoverSize: this.size,
|
|
2841
|
+
scopeBounds: this.scopeElement.getBoundingClientRect(),
|
|
2842
|
+
viewportSize: {
|
|
2843
|
+
width: window.innerWidth,
|
|
2844
|
+
height: window.innerHeight
|
|
2845
|
+
},
|
|
2846
|
+
scrollOffset: {
|
|
2847
|
+
x: window.scrollX,
|
|
2848
|
+
y: window.scrollY
|
|
2849
|
+
},
|
|
2850
|
+
offset: 8,
|
|
2851
|
+
leftAlignRect: (n = this.leftAlignElement) == null ? void 0 : n.getBoundingClientRect()
|
|
2852
|
+
}) : {
|
|
2804
2853
|
top: 0,
|
|
2805
|
-
left: 0
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
return {
|
|
2809
|
-
top: l,
|
|
2810
|
-
left: u + a.width > o + window.scrollX ? Math.max(0, i.right - a.width + window.scrollX) : u
|
|
2854
|
+
left: 0,
|
|
2855
|
+
openTop: !1,
|
|
2856
|
+
openLeft: !1
|
|
2811
2857
|
};
|
|
2812
2858
|
}
|
|
2813
2859
|
destroy() {
|
|
@@ -2828,7 +2874,7 @@ var Z = {
|
|
|
2828
2874
|
t instanceof Node && this.nestedPopover !== void 0 && this.nestedPopover !== null && this.nestedPopover.hasNode(t) || (this.destroyNestedPopoverIfExists(!1), this.previouslyHoveredItem = null);
|
|
2829
2875
|
}
|
|
2830
2876
|
getTargetItem(e) {
|
|
2831
|
-
return (this.promotedItemCache === null ? this.items : [...this.items, ...this.promotedItemCache.items]).filter((e) => e instanceof
|
|
2877
|
+
return (this.promotedItemCache === null ? this.items : [...this.items, ...this.promotedItemCache.items]).filter((e) => e instanceof q || e instanceof Y).find((t) => {
|
|
2832
2878
|
let n = t.getElement();
|
|
2833
2879
|
return n === null ? !1 : e.composedPath().includes(n);
|
|
2834
2880
|
});
|
|
@@ -2886,16 +2932,6 @@ var Z = {
|
|
|
2886
2932
|
let o = this.params.width === void 0 || this.params.width === "auto" ? `${this.nodes.popoverContainer.offsetWidth}px` : "var(--width)";
|
|
2887
2933
|
a ? i.style.setProperty(Q.PopoverLeft, `calc(-1 * (var(--nesting-level) + 1) * ${o} + 100%)`) : i.style.setProperty(Q.PopoverLeft, `calc(var(--nesting-level) * (${o} - var(--nested-popover-overlap)))`), n.style.top = "calc(var(--trigger-item-top) - var(--popover-height) / 2 + var(--item-height) / 2)";
|
|
2888
2934
|
}
|
|
2889
|
-
get shouldOpenBottom() {
|
|
2890
|
-
if (this.nodes.popover === void 0 || this.nodes.popover === null) return !1;
|
|
2891
|
-
let e = this.nodes.popoverContainer.getBoundingClientRect(), t = this.scopeElement.getBoundingClientRect(), n = this.size.height, r = e.top + n, i = e.top - n, a = Math.min(window.innerHeight, t.bottom);
|
|
2892
|
-
return i < t.top || r <= a;
|
|
2893
|
-
}
|
|
2894
|
-
get shouldOpenRight() {
|
|
2895
|
-
if (this.nodes.popover === void 0 || this.nodes.popover === null) return !1;
|
|
2896
|
-
let e = this.nodes.popover.getBoundingClientRect(), t = this.scopeElement.getBoundingClientRect(), n = this.size.width, r = e.right + n, i = e.left - n, a = Math.min(window.innerWidth, t.right);
|
|
2897
|
-
return i < t.left || r <= a;
|
|
2898
|
-
}
|
|
2899
2935
|
get size() {
|
|
2900
2936
|
var e;
|
|
2901
2937
|
if (this._size) return this._size;
|
|
@@ -2909,6 +2945,9 @@ var Z = {
|
|
|
2909
2945
|
let i = r.querySelector(`[${f.popoverContainer}]`);
|
|
2910
2946
|
return i.className = t(i.className, Z.popoverContainerOpened), document.body.appendChild(r), n.height = i.offsetHeight, n.width = i.offsetWidth, r.remove(), this._size = n, n;
|
|
2911
2947
|
}
|
|
2948
|
+
invalidateSizeCache() {
|
|
2949
|
+
this._size = void 0;
|
|
2950
|
+
}
|
|
2912
2951
|
get flippableElements() {
|
|
2913
2952
|
return this.items.flatMap((e) => this.getFlippableElementsForItem(e)).filter((e) => e != null);
|
|
2914
2953
|
}
|
|
@@ -2917,7 +2956,7 @@ var Z = {
|
|
|
2917
2956
|
let t = e.getElement();
|
|
2918
2957
|
return t ? [t] : [];
|
|
2919
2958
|
}
|
|
2920
|
-
if (!(e instanceof
|
|
2959
|
+
if (!(e instanceof q) || e.isDisabled) return [];
|
|
2921
2960
|
let t = e.getElement();
|
|
2922
2961
|
return t ? [t] : [];
|
|
2923
2962
|
}
|
|
@@ -2931,7 +2970,7 @@ var Z = {
|
|
|
2931
2970
|
collectPromotedChildren(e, t, n) {
|
|
2932
2971
|
for (let a of e) {
|
|
2933
2972
|
var r, i;
|
|
2934
|
-
if (!(a instanceof
|
|
2973
|
+
if (!(a instanceof q) || !a.hasChildren) continue;
|
|
2935
2974
|
let e = (r = (i = a.title) == null ? a.name : i) == null ? "" : r, o = [...t, e];
|
|
2936
2975
|
this.collectDefaultChildren(a.children, o, n);
|
|
2937
2976
|
}
|
|
@@ -2939,7 +2978,7 @@ var Z = {
|
|
|
2939
2978
|
collectDefaultChildren(e, t, n) {
|
|
2940
2979
|
for (let r of e) {
|
|
2941
2980
|
if (r.type !== void 0 && r.type !== F.Default) continue;
|
|
2942
|
-
let e = new
|
|
2981
|
+
let e = new q(r);
|
|
2943
2982
|
if (e.name !== void 0 && this.isNamePermanentlyHidden(e.name)) {
|
|
2944
2983
|
e.destroy();
|
|
2945
2984
|
continue;
|
|
@@ -2973,13 +3012,13 @@ var Z = {
|
|
|
2973
3012
|
deduplicateAgainstPromoted(e, t) {
|
|
2974
3013
|
let n = /* @__PURE__ */ new Set();
|
|
2975
3014
|
for (let { item: e } of t) e.title !== void 0 && n.add(e.title.toLowerCase());
|
|
2976
|
-
return e.filter((e) => !(e instanceof
|
|
3015
|
+
return e.filter((e) => !(e instanceof q) || e.title === void 0 ? !0 : !n.has(e.title.toLowerCase()));
|
|
2977
3016
|
}
|
|
2978
3017
|
addSearch() {
|
|
2979
|
-
this.search = new
|
|
3018
|
+
this.search = new br({
|
|
2980
3019
|
items: this.itemsDefault,
|
|
2981
3020
|
placeholder: this.messages.search
|
|
2982
|
-
}), this.search.on(
|
|
3021
|
+
}), this.search.on(yr.Search, (e) => {
|
|
2983
3022
|
if (e.query === "") {
|
|
2984
3023
|
this.cleanupPromotedItems(), this.onSearch({
|
|
2985
3024
|
query: e.query,
|
|
@@ -2993,7 +3032,7 @@ var Z = {
|
|
|
2993
3032
|
var r;
|
|
2994
3033
|
return {
|
|
2995
3034
|
item: n,
|
|
2996
|
-
score:
|
|
3035
|
+
score: vr(n, e.query),
|
|
2997
3036
|
chain: (r = t.get(n)) == null ? [] : r
|
|
2998
3037
|
};
|
|
2999
3038
|
}).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score);
|
|
@@ -3018,12 +3057,12 @@ var Z = {
|
|
|
3018
3057
|
this.promotedItemCache === null && (this.promotedItemCache = this.buildPromotedItemCache());
|
|
3019
3058
|
let t = this.itemsDefault.map((t) => ({
|
|
3020
3059
|
item: t,
|
|
3021
|
-
score:
|
|
3060
|
+
score: vr(t, e)
|
|
3022
3061
|
})).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score), { parentChains: n } = this.promotedItemCache, r = this.promotedItemCache.items.map((t) => {
|
|
3023
3062
|
var r;
|
|
3024
3063
|
return {
|
|
3025
3064
|
item: t,
|
|
3026
|
-
score:
|
|
3065
|
+
score: vr(t, e),
|
|
3027
3066
|
chain: (r = n.get(t)) == null ? [] : r
|
|
3028
3067
|
};
|
|
3029
3068
|
}).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score);
|
|
@@ -3048,7 +3087,7 @@ var Z = {
|
|
|
3048
3087
|
this.originalItemOrder = void 0;
|
|
3049
3088
|
}
|
|
3050
3089
|
}
|
|
3051
|
-
},
|
|
3090
|
+
}, Or = function(e) {
|
|
3052
3091
|
let t = O.make("div");
|
|
3053
3092
|
return t.style.display = "flex", t.style.flexDirection = "column", t.style.gap = "4px", e.forEach((e) => {
|
|
3054
3093
|
let n = O.make("div"), r = e.indexOf(" ");
|
|
@@ -3058,7 +3097,7 @@ var Z = {
|
|
|
3058
3097
|
} else n.appendChild(document.createTextNode(e));
|
|
3059
3098
|
t.appendChild(n);
|
|
3060
3099
|
}), t;
|
|
3061
|
-
},
|
|
3100
|
+
}, kr, Ar = class {
|
|
3062
3101
|
constructor({ api: e }) {
|
|
3063
3102
|
this.i18nAPI = e.i18n, this.blocksAPI = e.blocks, this.selectionAPI = e.selection, this.toolsAPI = e.tools, this.caretAPI = e.caret, this.i18nInstance = {
|
|
3064
3103
|
t: (e, t) => this.i18nAPI.t(e),
|
|
@@ -3106,10 +3145,10 @@ var Z = {
|
|
|
3106
3145
|
};
|
|
3107
3146
|
}
|
|
3108
3147
|
};
|
|
3109
|
-
|
|
3148
|
+
kr = Ar, kr.isInline = !0;
|
|
3110
3149
|
//#endregion
|
|
3111
3150
|
//#region src/tools/toggle/constants.ts
|
|
3112
|
-
var
|
|
3151
|
+
var jr = "toggle", Mr = "tools.toggle.placeholder", Nr = "tools.toggle.bodyPlaceholder", Pr = "tools.toggle.ariaLabelCollapse", Fr = "tools.toggle.ariaLabelExpand", Ir = "outline-hidden py-[7px] mt-[2px] mb-px", Lr = "outline-hidden pl-0.5 leading-[1.5] flex-1 min-w-0", Rr = "flex items-center", zr = "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", Br = "<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>", Vr = "hidden pl-7 pt-[8px] pb-[8px] text-gray-text leading-[1.5] cursor-pointer select-none", Hr = "pl-7", Ur = {
|
|
3113
3152
|
toggleOpen: "data-blok-toggle-open",
|
|
3114
3153
|
toggleArrow: "data-blok-toggle-arrow",
|
|
3115
3154
|
toggleContent: "data-blok-toggle-content",
|
|
@@ -3117,4 +3156,4 @@ var vr = "toggle", yr = "tools.toggle.placeholder", br = "tools.toggle.bodyPlace
|
|
|
3117
3156
|
toggleChildren: "data-blok-toggle-children"
|
|
3118
3157
|
};
|
|
3119
3158
|
//#endregion
|
|
3120
|
-
export {
|
|
3159
|
+
export { Rn as $, qe as $t, Bn as A, ae as An, H as At, $n as B, ee as Bn, It as Bt, X as C, ue as Cn, nn as Ct, ln as D, le as Dn, sn as Dt, K as E, de as En, W as Et, rr as F, S as Fn, Wt as Ft, wn as G, p as Gn, I as Gt, xn as H, m as Hn, Mt as Ht, nr as I, ie as In, Vt as It, qn as J, F as Jt, Tn as K, l as Kn, yt as Kt, Zn as L, _ as Ln, zt as Lt, er as M, C as Mn, B as Mt, ir as N, b as Nn, Ht as Nt, Jn as O, me as On, on as Ot, tr as P, x as Pn, Ut as Pt, Ln as Q, We as Qt, Qn as R, y as Rn, Rt, Cr as S, he as Sn, On as St, q as T, fe as Tn, tn as Tt, Sn as U, h as Un, Nt as Ut, Gn as V, g as Vn, Pt as Vt, Cn as W, f as Wn, jt as Wt, Pn as X, Ue as Xt, Fn as Y, et as Yt, In as Z, Ke as Zt, wr as _, Ee as _n, Un as _t, Ir as a, ze as an, jn as at, Z as b, D as bn, Vn as bt, Lr as c, Pe as cn, gn as ct, Hr as d, ke as dn, hn as dt, He as en, zn as et, Rr as f, Ae as fn, bn as ft, Dr as g, Te as gn, Hn as gt, Or as h, O as hn, Dn as ht, zr as i, Le as in, Mn as it, cn as j, se as jn, Jt as jt, vn as k, oe as kn, Xt as kt, Mr as l, Ne as ln, Yn as lt, Ar as m, Oe as mn, Nn as mt, Fr as n, Be as nn, dn as nt, Nr as o, Fe as on, Kn as ot, jr as p, je as pn, mn as pt, En as q, it as qt, Br as r, Ve as rn, An as rt, Vr as s, Ie as sn, fn as st, Pr as t, Re as tn, un as tt, Ur as u, Me as un, _n as ut, $ as v, Ce as vn, Wn as vt, Y as w, pe as wn, en as wt, Sr as x, ge as xn, pn as xt, Q as y, E as yn, kn as yt, Xn as z, te as zn, Ft as zt };
|