@jackuait/blok 0.10.2 → 0.10.4
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/{blok-D-T1XZ92.mjs → blok-NcdNQ0I6.mjs} +2304 -2101
- package/dist/chunks/{constants-CaB-mlB5.mjs → constants-DtfShkXT.mjs} +414 -317
- package/dist/chunks/{i18next-loader-CDnSPae_.mjs → i18next-loader-D32EUWLr.mjs} +1 -1
- package/dist/chunks/{lightweight-i18n-DZmo8dAI.mjs → lightweight-i18n-DpkvRXEd.mjs} +19 -0
- package/dist/{messages-Ddq3Ce3E2.mjs → chunks/messages-AD17iDBx.mjs} +18 -0
- package/dist/{messages-neGD3WGq.mjs → chunks/messages-B03yUEra2.mjs} +18 -0
- package/dist/chunks/{messages-CIfUm1Oa.mjs → messages-B2dU00Z3.mjs} +18 -0
- package/dist/chunks/{messages-BKN3YVIj.mjs → messages-B8hICx3L.mjs} +18 -0
- package/dist/{messages-Dnd5YSWv.mjs → chunks/messages-BBe45sPH.mjs} +18 -0
- package/dist/{messages-C7lJg8fy2.mjs → chunks/messages-BCifzMVO2.mjs} +18 -0
- package/dist/chunks/{messages-D7dx_6k8.mjs → messages-BGmvvtg_.mjs} +18 -0
- package/dist/{messages-Q5sQeVap2.mjs → chunks/messages-BJNFCDv42.mjs} +18 -0
- package/dist/chunks/{messages-BlxwW7M6.mjs → messages-BNy4e7Xl.mjs} +18 -0
- package/dist/chunks/{messages-C15z2r5U.mjs → messages-BcHZf9o-.mjs} +18 -0
- package/dist/{messages-A96tMxeU.mjs → chunks/messages-BjyYZeBm2.mjs} +18 -0
- package/dist/{messages-BbJ7ZXY8.mjs → chunks/messages-Bop7vrhU.mjs} +18 -0
- package/dist/{messages-BiTMwiKH.mjs → chunks/messages-BouFtpfO.mjs} +18 -0
- package/dist/chunks/{messages-ElIGUi0O2.mjs → messages-Br6bE1FD2.mjs} +18 -0
- package/dist/chunks/{messages-BHMiK51R.mjs → messages-C-EBhOHE.mjs} +18 -0
- package/dist/chunks/{messages-kGmxkeFH.mjs → messages-C3X7dv3f.mjs} +18 -0
- package/dist/chunks/{messages-4Ck88DYZ2.mjs → messages-C7Pjof0d2.mjs} +18 -0
- package/dist/{messages-D0lLw9KM.mjs → chunks/messages-C7sBaZOO2.mjs} +18 -0
- package/dist/chunks/{messages-QMOmwcZb.mjs → messages-C85zv_7x.mjs} +18 -0
- package/dist/chunks/{messages-DSrdy9Nw2.mjs → messages-CCEgR9GN2.mjs} +18 -0
- package/dist/chunks/{messages-DUr9WAkD.mjs → messages-CDSyoUft.mjs} +18 -0
- package/dist/{messages-bkGniiaz.mjs → chunks/messages-CGFlOwst.mjs} +18 -0
- package/dist/chunks/{messages-DBMaLL8b2.mjs → messages-CGLTjtRv2.mjs} +18 -0
- package/dist/{messages-2ZWBTerL.mjs → chunks/messages-CGPxUESo.mjs} +18 -0
- package/dist/chunks/{messages-BfAcUavP.mjs → messages-CNaaqQVz.mjs} +18 -0
- package/dist/{messages-DBhvm8NK.mjs → chunks/messages-CPFB2_m-2.mjs} +18 -0
- package/dist/chunks/{messages-zt6zdYWh.mjs → messages-CTdSIOAc.mjs} +18 -0
- package/dist/chunks/{messages-1_6UkKLS.mjs → messages-CXVWb9js.mjs} +18 -0
- package/dist/{messages-CdEASHDp2.mjs → chunks/messages-Cfbmwdep2.mjs} +18 -0
- package/dist/chunks/{messages-DxHh0O8j2.mjs → messages-ChayV9WY2.mjs} +18 -0
- package/dist/chunks/{messages-BgM91Lxm2.mjs → messages-Ci7UXRVI2.mjs} +18 -0
- package/dist/chunks/{messages-Clku7Cf-2.mjs → messages-CpXvyGWv2.mjs} +18 -0
- package/dist/chunks/{messages-DjvaiALg2.mjs → messages-Cql2ozf_2.mjs} +18 -0
- package/dist/{messages-DODrhcop.mjs → chunks/messages-Cxy_E2IS.mjs} +18 -0
- package/dist/chunks/{messages-CZSlfnkO2.mjs → messages-D9syZVGi2.mjs} +18 -0
- package/dist/chunks/{messages-BRAoJpOu.mjs → messages-D9uWAWjW.mjs} +18 -0
- package/dist/chunks/{messages-BK8Cp2d0.mjs → messages-DRJxSTqs.mjs} +18 -0
- package/dist/{messages-C_Qn9SbQ.mjs → chunks/messages-DSbI0vJf.mjs} +18 -0
- package/dist/chunks/{messages-CD_MnBln.mjs → messages-DVvrZRyZ.mjs} +18 -0
- package/dist/{messages-BE_z-zrb.mjs → chunks/messages-DY8zPIZW.mjs} +18 -0
- package/dist/chunks/{messages-Bz0-KNEB.mjs → messages-D_kZN9rB.mjs} +18 -0
- package/dist/{messages-C1vc5584.mjs → chunks/messages-DjSuq0-y2.mjs} +18 -0
- package/dist/chunks/{messages-DPzHD51Y.mjs → messages-DkP3Jf4F.mjs} +18 -0
- package/dist/{messages-_PLyRfVw.mjs → chunks/messages-DoPdy75l.mjs} +18 -0
- package/dist/chunks/{messages-JSQjKQ8I.mjs → messages-DpydMd36.mjs} +18 -0
- package/dist/{messages-BckDk9aq2.mjs → chunks/messages-DtZ9U9g72.mjs} +18 -0
- package/dist/{messages-JNrYldAa2.mjs → chunks/messages-H6vLy8wJ.mjs} +18 -0
- package/dist/chunks/{messages-DTN1XGll.mjs → messages-HzH9_QH8.mjs} +18 -0
- package/dist/chunks/{messages-C0IFfhnp.mjs → messages-O6FOfUgF.mjs} +18 -0
- package/dist/{messages-Be_2RHZD.mjs → chunks/messages-OSP4Hj5o.mjs} +18 -0
- package/dist/chunks/{messages-DMoERagV2.mjs → messages-RiqdVwuN2.mjs} +18 -0
- package/dist/chunks/{messages-BJ-vT1SU2.mjs → messages-SP659Sal2.mjs} +18 -0
- package/dist/{messages-Che99vKP.mjs → chunks/messages-THR8q8bJ.mjs} +18 -0
- package/dist/chunks/{messages-CvANwuht2.mjs → messages-VlEyFUxF2.mjs} +18 -0
- package/dist/{messages-apA6BStA.mjs → chunks/messages-VtfKWZ2S.mjs} +18 -0
- package/dist/{messages-DpJGbx3q.mjs → chunks/messages-YbckahVx2.mjs} +18 -0
- package/dist/{messages-DYuD5-rO.mjs → chunks/messages-ZhHLC6dk.mjs} +18 -0
- package/dist/{messages-C0GSBBCo2.mjs → chunks/messages-bFEdH3lv.mjs} +18 -0
- package/dist/chunks/{messages-euM2m3wQ.mjs → messages-dpXwA3Sz.mjs} +18 -0
- package/dist/chunks/{messages-CQBo3lmL2.mjs → messages-fbL5y58u2.mjs} +18 -0
- package/dist/chunks/{messages-CxiURE2X.mjs → messages-oPV2oMxM.mjs} +18 -0
- package/dist/{messages-DM4Gjc9h.mjs → chunks/messages-oXBbHW9A.mjs} +18 -0
- package/dist/chunks/{messages-QilfinOn2.mjs → messages-vDgsEqQW2.mjs} +18 -0
- package/dist/{messages-ClGvlFcH2.mjs → chunks/messages-wYQksm10.mjs} +18 -0
- package/dist/{messages-CnuH-BZK2.mjs → chunks/messages-yGedmr61.mjs} +18 -0
- package/dist/chunks/{messages-sDdNf8O9.mjs → messages-zQOpKjl3.mjs} +18 -0
- package/dist/chunks/{messages-eFd4YYzt.mjs → messages-zWqsggJh.mjs} +18 -0
- package/dist/chunks/{tools-BFK2MvVI.mjs → tools-DMSi-3RW.mjs} +3434 -1240
- package/dist/full.mjs +10 -10
- package/dist/locales.mjs +86 -67
- package/dist/{messages-BK_LsgY4.mjs → messages-0lOPMv8u.mjs} +18 -0
- package/dist/{messages-LYJbLq_F.mjs → messages-5wuR90qS.mjs} +18 -0
- package/dist/{messages-98nQiC7t2.mjs → messages-6eX0fWGR2.mjs} +18 -0
- package/dist/{chunks/messages-DUeiPraX.mjs → messages-9L4qqCKh2.mjs} +18 -0
- package/dist/{chunks/messages-Q7-4ZJLB2.mjs → messages-B4zPxKl62.mjs} +18 -0
- package/dist/{messages-D0005ti32.mjs → messages-BCMFYqKc2.mjs} +18 -0
- package/dist/{chunks/messages-CC_noR8y.mjs → messages-BKXjO3NH.mjs} +18 -0
- package/dist/{messages-CRNogopy2.mjs → messages-BLW2GX7J2.mjs} +18 -0
- package/dist/{messages-D81w6AmW.mjs → messages-BLfK27kX.mjs} +18 -0
- package/dist/{chunks/messages-CPBN4zWc.mjs → messages-BM2kx9Td.mjs} +18 -0
- package/dist/{messages-E8NjqzWq2.mjs → messages-BORkMoil2.mjs} +18 -0
- package/dist/{messages-Dqu4aX9s.mjs → messages-BPw_x-6H.mjs} +18 -0
- package/dist/{messages-DSmxJWju2.mjs → messages-BRY51SEw2.mjs} +18 -0
- package/dist/{chunks/messages-BONyZroH.mjs → messages-BSNsrZVN.mjs} +18 -0
- package/dist/{chunks/messages-BAlZjPcl.mjs → messages-B_UKuqrH.mjs} +18 -0
- package/dist/{chunks/messages-DB_-5Xln.mjs → messages-BrYeJsSE2.mjs} +18 -0
- package/dist/{messages-Brd5R-da2.mjs → messages-BwttyHDI2.mjs} +18 -0
- package/dist/{messages-qfvXgPpu2.mjs → messages-C-8qb9sf2.mjs} +18 -0
- package/dist/{chunks/messages-BbEW9bQz.mjs → messages-C34dTwF72.mjs} +18 -0
- package/dist/{messages-BmH2cQHQ.mjs → messages-C67YUZ9-.mjs} +18 -0
- package/dist/{messages-DpwMKDV0.mjs → messages-C6yKu_PJ.mjs} +18 -0
- package/dist/{messages-Do7Xjy0n.mjs → messages-CA6J_QoC.mjs} +18 -0
- package/dist/{messages-DVL0KZE5.mjs → messages-CFUBJfnf.mjs} +18 -0
- package/dist/{chunks/messages-DVr1sqfI2.mjs → messages-CLUBh7O_.mjs} +18 -0
- package/dist/{chunks/messages-wl8YrvGG.mjs → messages-CLZoy5fQ.mjs} +18 -0
- package/dist/{messages-CisR4PNV.mjs → messages-CNGwdIEz.mjs} +18 -0
- package/dist/{messages-DopaMHC42.mjs → messages-CR4gHjd82.mjs} +18 -0
- package/dist/{messages-DK6dA0O2.mjs → messages-CVMngZNA.mjs} +18 -0
- package/dist/{messages-Xc0KUbYl.mjs → messages-Cd5CW5Tt.mjs} +18 -0
- package/dist/{chunks/messages-ChK7v1PV.mjs → messages-CrjQ2Op0.mjs} +18 -0
- package/dist/{chunks/messages-CRF7nNrO.mjs → messages-Cv1PSaNk.mjs} +18 -0
- package/dist/{messages-DOGbHYv-2.mjs → messages-CxZarWTm2.mjs} +18 -0
- package/dist/{messages-D3rwCtKn.mjs → messages-D0eT_eWA.mjs} +18 -0
- package/dist/{messages-C6ONf71u2.mjs → messages-D6RYu9JW2.mjs} +18 -0
- package/dist/{messages-DQORja0D.mjs → messages-D8U5D391.mjs} +18 -0
- package/dist/{chunks/messages-EDMC5ukV.mjs → messages-D8dO6OMN.mjs} +18 -0
- package/dist/{messages-DfFZ6Yj5.mjs → messages-DA4T9WBe.mjs} +18 -0
- package/dist/{chunks/messages-D22e9h7V2.mjs → messages-DB4UKN8D.mjs} +18 -0
- package/dist/{chunks/messages-DEBy3nuJ2.mjs → messages-DCdP2ujL.mjs} +18 -0
- package/dist/{messages-D05jqBIa2.mjs → messages-DPFuzIdF2.mjs} +18 -0
- package/dist/{chunks/messages-DrfRYiM32.mjs → messages-DQ1icG7L.mjs} +18 -0
- package/dist/{chunks/messages-a07QVz8U.mjs → messages-DT7dwzEe.mjs} +18 -0
- package/dist/{chunks/messages-CszmHAvQ.mjs → messages-DUYxMxrQ2.mjs} +18 -0
- package/dist/{chunks/messages-DtoId_bw2.mjs → messages-D_V0kHD7.mjs} +18 -0
- package/dist/{messages-BesJaI6A.mjs → messages-DfqM_XvD.mjs} +18 -0
- package/dist/{messages-CT-Kdas6.mjs → messages-Di3-WVzq.mjs} +18 -0
- package/dist/{messages-BcVB3osF.mjs → messages-Dl0bfeA-.mjs} +18 -0
- package/dist/{chunks/messages-C1S9ztpF.mjs → messages-Do3mHd9U.mjs} +18 -0
- package/dist/{chunks/messages-BeGZqQwz.mjs → messages-DqDlcEPn.mjs} +18 -0
- package/dist/{chunks/messages-CTCe595D2.mjs → messages-DwiykEgr2.mjs} +18 -0
- package/dist/{chunks/messages-8Ld7P_9j2.mjs → messages-Dx5n6MLQ2.mjs} +18 -0
- package/dist/{messages-LMaR2_bE.mjs → messages-DxEiqa-B.mjs} +18 -0
- package/dist/{chunks/messages-CxxyR4vY.mjs → messages-Dxr1BBvo.mjs} +18 -0
- package/dist/{messages-D6VIFnSW.mjs → messages-DzknMM7W.mjs} +18 -0
- package/dist/{chunks/messages-oMc7qugU2.mjs → messages-ELvF3qMl2.mjs} +18 -0
- package/dist/{messages-53w0fPZS2.mjs → messages-JVJdC0Er2.mjs} +18 -0
- package/dist/{chunks/messages-BMD37y3q2.mjs → messages-KVerxvZC.mjs} +18 -0
- package/dist/{chunks/messages-Du2BffA7.mjs → messages-OOiDDmVw.mjs} +18 -0
- package/dist/{messages-uwK7ktqk.mjs → messages-PyOr_YgV.mjs} +18 -0
- package/dist/{messages-qbKjjvgd2.mjs → messages-VrQw3tQ62.mjs} +18 -0
- package/dist/{messages-CTTmWn4Y2.mjs → messages-WsUHzXMu2.mjs} +18 -0
- package/dist/{messages-CZbcxlZt2.mjs → messages-ZHgPRUj02.mjs} +18 -0
- package/dist/{messages-DKHbt-7l2.mjs → messages-aoO_TtoE2.mjs} +18 -0
- package/dist/{chunks/messages-CW35K1pq.mjs → messages-bh8BiOee2.mjs} +18 -0
- package/dist/{messages-BrOWqNCu2.mjs → messages-gZEhkRrR2.mjs} +18 -0
- package/dist/{chunks/messages-BRoa9tGl.mjs → messages-hya8YLMj.mjs} +18 -0
- package/dist/{messages-CdduYw-q.mjs → messages-tb1FD_ge.mjs} +18 -0
- package/dist/react.mjs +2 -2
- package/dist/tools.mjs +3 -3
- package/dist/vendor.LICENSE.txt +135 -0
- package/package.json +2 -1
- package/src/blok.ts +48 -0
- package/src/components/block/index.ts +21 -2
- package/src/components/block-tunes/block-tune-copy-link.ts +82 -0
- package/src/components/i18n/locales/am/messages.json +18 -0
- package/src/components/i18n/locales/ar/messages.json +18 -0
- package/src/components/i18n/locales/az/messages.json +18 -0
- package/src/components/i18n/locales/bg/messages.json +18 -0
- package/src/components/i18n/locales/bn/messages.json +18 -0
- package/src/components/i18n/locales/bs/messages.json +18 -0
- package/src/components/i18n/locales/cs/messages.json +18 -0
- package/src/components/i18n/locales/da/messages.json +18 -0
- package/src/components/i18n/locales/de/messages.json +18 -0
- package/src/components/i18n/locales/dv/messages.json +18 -0
- package/src/components/i18n/locales/el/messages.json +18 -0
- package/src/components/i18n/locales/en/messages.json +19 -0
- package/src/components/i18n/locales/es/messages.json +18 -0
- package/src/components/i18n/locales/et/messages.json +18 -0
- package/src/components/i18n/locales/fa/messages.json +18 -0
- package/src/components/i18n/locales/fi/messages.json +18 -0
- package/src/components/i18n/locales/fil/messages.json +18 -0
- package/src/components/i18n/locales/fr/messages.json +18 -0
- package/src/components/i18n/locales/gu/messages.json +18 -0
- package/src/components/i18n/locales/he/messages.json +18 -0
- package/src/components/i18n/locales/hi/messages.json +18 -0
- package/src/components/i18n/locales/hr/messages.json +18 -0
- package/src/components/i18n/locales/hu/messages.json +18 -0
- package/src/components/i18n/locales/hy/messages.json +18 -0
- package/src/components/i18n/locales/id/messages.json +18 -0
- package/src/components/i18n/locales/it/messages.json +18 -0
- package/src/components/i18n/locales/ja/messages.json +18 -0
- package/src/components/i18n/locales/ka/messages.json +18 -0
- package/src/components/i18n/locales/km/messages.json +18 -0
- package/src/components/i18n/locales/kn/messages.json +18 -0
- package/src/components/i18n/locales/ko/messages.json +18 -0
- package/src/components/i18n/locales/ku/messages.json +18 -0
- package/src/components/i18n/locales/lo/messages.json +18 -0
- package/src/components/i18n/locales/lt/messages.json +18 -0
- package/src/components/i18n/locales/lv/messages.json +18 -0
- package/src/components/i18n/locales/mk/messages.json +18 -0
- package/src/components/i18n/locales/ml/messages.json +18 -0
- package/src/components/i18n/locales/mn/messages.json +18 -0
- package/src/components/i18n/locales/mr/messages.json +18 -0
- package/src/components/i18n/locales/ms/messages.json +18 -0
- package/src/components/i18n/locales/my/messages.json +18 -0
- package/src/components/i18n/locales/ne/messages.json +18 -0
- package/src/components/i18n/locales/nl/messages.json +18 -0
- package/src/components/i18n/locales/no/messages.json +18 -0
- package/src/components/i18n/locales/pa/messages.json +18 -0
- package/src/components/i18n/locales/pl/messages.json +18 -0
- package/src/components/i18n/locales/ps/messages.json +18 -0
- package/src/components/i18n/locales/pt/messages.json +18 -0
- package/src/components/i18n/locales/ro/messages.json +18 -0
- package/src/components/i18n/locales/ru/messages.json +18 -0
- package/src/components/i18n/locales/sd/messages.json +18 -0
- package/src/components/i18n/locales/si/messages.json +18 -0
- package/src/components/i18n/locales/sk/messages.json +18 -0
- package/src/components/i18n/locales/sl/messages.json +18 -0
- package/src/components/i18n/locales/sq/messages.json +18 -0
- package/src/components/i18n/locales/sr/messages.json +18 -0
- package/src/components/i18n/locales/sv/messages.json +18 -0
- package/src/components/i18n/locales/sw/messages.json +18 -0
- package/src/components/i18n/locales/ta/messages.json +18 -0
- package/src/components/i18n/locales/te/messages.json +18 -0
- package/src/components/i18n/locales/th/messages.json +18 -0
- package/src/components/i18n/locales/tr/messages.json +18 -0
- package/src/components/i18n/locales/ug/messages.json +18 -0
- package/src/components/i18n/locales/uk/messages.json +18 -0
- package/src/components/i18n/locales/ur/messages.json +18 -0
- package/src/components/i18n/locales/vi/messages.json +18 -0
- package/src/components/i18n/locales/yi/messages.json +18 -0
- package/src/components/i18n/locales/zh/messages.json +18 -0
- package/src/components/icons/index.ts +65 -0
- package/src/components/inline-tools/inline-tool-bold.ts +10 -0
- package/src/components/inline-tools/inline-tool-code.ts +54 -1
- package/src/components/inline-tools/inline-tool-italic.ts +54 -1
- package/src/components/inline-tools/inline-tool-strikethrough.ts +54 -1
- package/src/components/inline-tools/inline-tool-underline.ts +54 -1
- package/src/components/inline-tools/services/bold-normalization-pass.ts +29 -3
- package/src/components/inline-tools/utils/formatting-range-utils.ts +83 -0
- package/src/components/modules/api/tools.ts +19 -0
- package/src/components/modules/blockEvents/composers/keyboardNavigation.ts +5 -5
- package/src/components/modules/blockManager/blockManager.ts +22 -0
- package/src/components/modules/blockManager/event-binder.ts +12 -1
- package/src/components/modules/blockManager/factory.ts +4 -0
- package/src/components/modules/blockManager/types.ts +4 -0
- package/src/components/modules/blockManager/yjs-sync.ts +16 -2
- package/src/components/modules/paste/google-docs-preprocessor.ts +49 -3
- package/src/components/modules/paste/handlers/table-cells-handler.ts +12 -2
- package/src/components/modules/paste/index.ts +8 -4
- package/src/components/modules/paste/types.ts +2 -0
- package/src/components/modules/renderer.ts +22 -2
- package/src/components/modules/saver.ts +19 -1
- package/src/components/modules/themeManager.ts +3 -1
- package/src/components/modules/toolbar/blockSettings.ts +51 -1
- package/src/components/modules/toolbar/index.ts +95 -3
- package/src/components/modules/toolbar/inline/index.ts +0 -3
- package/src/components/modules/toolbar/plus-button.ts +37 -0
- package/src/components/modules/toolbar/settings-toggler.ts +6 -0
- package/src/components/modules/tools.ts +5 -0
- package/src/components/modules/uiControllers/controllers/keyboard.ts +85 -22
- package/src/components/modules/uiControllers/controllers/selection.ts +14 -2
- package/src/components/modules/yjs/document-store.ts +22 -0
- package/src/components/modules/yjs/index.ts +10 -0
- package/src/components/modules/yjs/serializer.ts +20 -0
- package/src/components/selection/cursor.ts +12 -2
- package/src/components/ui/toolbox.ts +31 -5
- package/src/components/utils/id-generator.ts +11 -0
- package/src/components/utils/key-icon.ts +187 -0
- package/src/components/utils/popover/components/hint/hint.ts +3 -1
- package/src/components/utils/popover/components/popover-item/popover-item-default/popover-item-default.ts +18 -5
- package/src/components/utils/popover/popover-abstract.ts +45 -0
- package/src/components/utils/popover/popover-desktop.ts +1 -0
- package/src/components/utils/popover/popover-position.ts +12 -5
- package/src/components/utils/popover/popover.const.ts +2 -0
- package/src/components/utils.ts +1 -0
- package/src/styles/main.css +1269 -0
- package/src/tools/code/index.ts +4 -0
- package/src/tools/database/database-backend-sync.ts +132 -0
- package/src/tools/database/database-board-view.ts +410 -0
- package/src/tools/database/database-card-drag.ts +306 -0
- package/src/tools/database/database-card-drawer.ts +546 -0
- package/src/tools/database/database-column-controls.ts +141 -0
- package/src/tools/database/database-column-drag.ts +262 -0
- package/src/tools/database/database-keyboard.ts +35 -0
- package/src/tools/database/database-list-row-drag.ts +245 -0
- package/src/tools/database/database-list-view.ts +333 -0
- package/src/tools/database/database-model.ts +214 -0
- package/src/tools/database/database-property-type-popover.ts +108 -0
- package/src/tools/database/database-tab-bar.ts +558 -0
- package/src/tools/database/database-view-popover.ts +129 -0
- package/src/tools/database/database-view-renderer.ts +25 -0
- package/src/tools/database/index.ts +1223 -0
- package/src/tools/database/types.ts +152 -0
- package/src/tools/database-row/index.ts +74 -0
- package/src/tools/index.ts +4 -0
- package/src/tools/table/index.ts +10 -19
- package/src/tools/table/table-cell-selection.ts +126 -7
- package/src/tools/table/table-core.ts +59 -5
- package/src/tools/table/table-model.ts +8 -0
- package/src/tools/table/table-row-col-controls.ts +40 -18
- package/types/api/tools.d.ts +18 -0
- package/types/configs/blok-config.d.ts +27 -0
- package/types/data-formats/output-data.d.ts +13 -0
- package/types/index.d.ts +17 -0
- package/types/tools/database.d.ts +152 -0
- package/types/tools-entry.d.ts +7 -4
- package/types/utils/popover/popover.d.ts +6 -0
|
@@ -130,7 +130,7 @@ var a = {
|
|
|
130
130
|
RIGHT: 2,
|
|
131
131
|
BACKWARD: 3,
|
|
132
132
|
FORWARD: 4
|
|
133
|
-
}, l = () => "0.10.
|
|
133
|
+
}, l = () => "0.10.4", u = /* @__PURE__ */ function(e) {
|
|
134
134
|
return e.VERBOSE = "VERBOSE", e.INFO = "INFO", e.WARN = "WARN", e.ERROR = "ERROR", e;
|
|
135
135
|
}({}), d = (e, t, n = "log", r, i = "color: inherit") => {
|
|
136
136
|
let a = typeof console > "u" ? void 0 : console;
|
|
@@ -172,9 +172,9 @@ var f = (e) => {
|
|
|
172
172
|
return t === null || t === Object.prototype;
|
|
173
173
|
}, _ = (e) => typeof e == "string", v = (e) => typeof e == "boolean", y = (e) => typeof e == "number", ee = function(e) {
|
|
174
174
|
return e === void 0;
|
|
175
|
-
}, b = (e) => e == null ? !0 : typeof e == "string" || Array.isArray(e) ? e.length === 0 : e instanceof Map || e instanceof Set ? e.size === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1,
|
|
175
|
+
}, b = (e) => e == null ? !0 : typeof e == "string" || Array.isArray(e) ? e.length === 0 : e instanceof Map || e instanceof Set ? e.size === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, te = (e, t) => function(...n) {
|
|
176
176
|
setTimeout(() => e.apply(this, n), t);
|
|
177
|
-
},
|
|
177
|
+
}, ne = (e, t, n) => {
|
|
178
178
|
let r = { timeoutId: null };
|
|
179
179
|
return function(...i) {
|
|
180
180
|
let a = () => {
|
|
@@ -182,7 +182,7 @@ var f = (e) => {
|
|
|
182
182
|
}, o = n === !0 && r.timeoutId === null;
|
|
183
183
|
r.timeoutId !== null && clearTimeout(r.timeoutId), r.timeoutId = setTimeout(a, t), o && e.apply(this, i);
|
|
184
184
|
};
|
|
185
|
-
},
|
|
185
|
+
}, re = (e, t, n) => {
|
|
186
186
|
let r = (n == null ? void 0 : n.leading) !== !1, i = (n == null ? void 0 : n.trailing) !== !1, a = {
|
|
187
187
|
lastCallTime: void 0,
|
|
188
188
|
lastInvokeTime: 0,
|
|
@@ -213,79 +213,79 @@ var f = (e) => {
|
|
|
213
213
|
let n = Date.now(), i = c(n);
|
|
214
214
|
if (a.lastArgs = e, a.lastThis = this, a.lastCallTime = n, i && a.timerId === void 0) return a.lastInvokeTime = n, a.timerId = setTimeout(l, t), r ? o(n) : void 0;
|
|
215
215
|
};
|
|
216
|
-
},
|
|
216
|
+
}, x = (() => {
|
|
217
217
|
try {
|
|
218
218
|
return Function("return this")();
|
|
219
219
|
} catch (e) {
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
222
|
})();
|
|
223
|
-
|
|
224
|
-
var
|
|
225
|
-
if (
|
|
226
|
-
},
|
|
227
|
-
if (
|
|
228
|
-
let e =
|
|
223
|
+
x && x.window === void 0 && (x.window = x);
|
|
224
|
+
var S = () => {
|
|
225
|
+
if (x != null && x.window) return x.window;
|
|
226
|
+
}, ie = () => {
|
|
227
|
+
if (x != null && x.navigator) return x.navigator;
|
|
228
|
+
let e = S();
|
|
229
229
|
return e == null ? void 0 : e.navigator;
|
|
230
|
-
},
|
|
230
|
+
}, ae = (e) => /^[-\w]+\/([-+\w]+|\*)$/.test(e), oe = () => {
|
|
231
231
|
var e, t;
|
|
232
232
|
let n = {
|
|
233
233
|
win: !1,
|
|
234
234
|
mac: !1,
|
|
235
235
|
x11: !1,
|
|
236
236
|
linux: !1
|
|
237
|
-
}, r =
|
|
237
|
+
}, r = ie(), i = (e = r == null || (t = r.userAgent) == null ? void 0 : t.toLowerCase()) == null ? "" : e, a = i ? Object.keys(n).find((e) => i.indexOf(e) !== -1) : void 0;
|
|
238
238
|
return a === void 0 || (n[a] = !0), n;
|
|
239
|
-
},
|
|
240
|
-
let e =
|
|
239
|
+
}, se = () => {
|
|
240
|
+
let e = S();
|
|
241
241
|
return !e || typeof e.matchMedia != "function" ? !1 : e.matchMedia("(max-width: 650px)").matches;
|
|
242
|
-
},
|
|
242
|
+
}, ce = (() => {
|
|
243
243
|
var e;
|
|
244
|
-
let t =
|
|
244
|
+
let t = ie();
|
|
245
245
|
if (!t) return !1;
|
|
246
246
|
let n = t.userAgent || "", r = t.userAgentData, i = r == null ? void 0 : r.platform;
|
|
247
247
|
if (/iP(ad|hone|od)/.test(n) || i !== void 0 && i !== "" && /iP(ad|hone|od)/.test(i)) return !0;
|
|
248
248
|
let a = ((e = t.maxTouchPoints) == null ? 0 : e) > 1, o = () => t.platform, s = i !== void 0 && i !== "" ? i : void 0;
|
|
249
249
|
return (a ? s == null ? o() : s : void 0) === "MacIntel";
|
|
250
|
-
})(),
|
|
250
|
+
})(), le = (e) => {
|
|
251
251
|
try {
|
|
252
252
|
return new URL(e).href;
|
|
253
253
|
} catch (e) {}
|
|
254
|
-
let t =
|
|
254
|
+
let t = S();
|
|
255
255
|
return e.substring(0, 2) === "//" ? t ? `${t.location.protocol}${e}` : e : t ? `${t.location.origin}${e}` : e;
|
|
256
|
-
},
|
|
257
|
-
let t =
|
|
256
|
+
}, ue = (e) => {
|
|
257
|
+
let t = S();
|
|
258
258
|
t && t.open(e, "_blank");
|
|
259
|
-
},
|
|
260
|
-
let t =
|
|
259
|
+
}, de = (e) => e && e.slice(0, 1).toUpperCase() + e.slice(1), fe = (e) => {
|
|
260
|
+
let t = oe(), n = e.replace(/shift/gi, "⇧").replace(/backspace/gi, "⌫").replace(/enter/gi, "⏎").replace(/up/gi, "↑").replace(/left/gi, "→").replace(/down/gi, "↓").replace(/right/gi, "←").replace(/escape/gi, "⎋").replace(/insert/gi, "Ins").replace(/delete/gi, "␡").replace(/\+/gi, " + ");
|
|
261
261
|
return t.mac ? n.replace(/ctrl|cmd/gi, "⌘").replace(/alt/gi, "⌥") : n.replace(/cmd/gi, "Ctrl").replace(/windows/gi, "WIN");
|
|
262
|
-
},
|
|
262
|
+
}, pe = (e, t) => {
|
|
263
263
|
let r = n({}, e);
|
|
264
264
|
return Object.keys(t).forEach((e) => {
|
|
265
265
|
let n = r[e], i = t[e];
|
|
266
266
|
if (i !== void 0) {
|
|
267
267
|
if (g(i) && g(n) && !Array.isArray(i)) {
|
|
268
|
-
r[e] =
|
|
268
|
+
r[e] = pe(n, i);
|
|
269
269
|
return;
|
|
270
270
|
}
|
|
271
271
|
r[e] = i;
|
|
272
272
|
}
|
|
273
273
|
}), r;
|
|
274
|
-
},
|
|
274
|
+
}, C = (e, ...t) => {
|
|
275
275
|
if (!g(e) || t.length === 0) return e;
|
|
276
|
-
let n = t.reduce((e, t) => g(t) ?
|
|
276
|
+
let n = t.reduce((e, t) => g(t) ? pe(e, t) : e, e);
|
|
277
277
|
return Object.assign(e, n), e;
|
|
278
|
-
},
|
|
278
|
+
}, me = (e, t) => e.length === t.length ? e.every((e, n) => w(e, t[n])) : !1, w = (e, t) => {
|
|
279
279
|
if (e === t) return !0;
|
|
280
280
|
if (e === null || t === null || typeof e != "object" || typeof t != "object" || Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
281
|
-
if (Array.isArray(e) && Array.isArray(t)) return
|
|
281
|
+
if (Array.isArray(e) && Array.isArray(t)) return me(e, t);
|
|
282
282
|
let n = Object.keys(e), r = Object.keys(t);
|
|
283
|
-
return n.length === r.length ? n.every((n) => Object.prototype.hasOwnProperty.call(t, n) &&
|
|
284
|
-
},
|
|
283
|
+
return n.length === r.length ? n.every((n) => Object.prototype.hasOwnProperty.call(t, n) && w(e[n], t[n])) : !1;
|
|
284
|
+
}, he = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", ge = (e = 21) => {
|
|
285
285
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
286
|
-
for (; e--;) t +=
|
|
286
|
+
for (; e--;) t += he[n[e] & 63];
|
|
287
287
|
return t;
|
|
288
|
-
},
|
|
288
|
+
}, _e = 1e8, ve = 16, ye = () => ge(10), be = (e = "") => `${e}${Math.floor(Math.random() * _e).toString(ve)}`, T = class e {
|
|
289
289
|
static isSingleTag(e) {
|
|
290
290
|
return !!e.tagName && [
|
|
291
291
|
"AREA",
|
|
@@ -511,32 +511,32 @@ var C = () => {
|
|
|
511
511
|
offset: a
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
|
-
},
|
|
515
|
-
e.setAttribute("data-blok-empty",
|
|
516
|
-
},
|
|
514
|
+
}, xe = (e) => !/[^\t\n\r \u200B]/.test(e), Se = (e) => {
|
|
515
|
+
e.setAttribute("data-blok-empty", T.isEmpty(e) ? "true" : "false");
|
|
516
|
+
}, Ce = ["header", "table"], E = /* @__PURE__ */ new Map(), we = (e) => {
|
|
517
517
|
let t = [...new Set(e)];
|
|
518
518
|
for (let e of t) {
|
|
519
519
|
var n;
|
|
520
|
-
let t = (n =
|
|
521
|
-
|
|
520
|
+
let t = (n = E.get(e)) == null ? 0 : n;
|
|
521
|
+
E.set(e, t + 1);
|
|
522
522
|
}
|
|
523
523
|
let r = { cleanedUp: !1 };
|
|
524
524
|
return () => {
|
|
525
525
|
if (!r.cleanedUp) {
|
|
526
526
|
r.cleanedUp = !0;
|
|
527
527
|
for (let e of t) {
|
|
528
|
-
let t =
|
|
529
|
-
t !== void 0 && (t <= 1 ?
|
|
528
|
+
let t = E.get(e);
|
|
529
|
+
t !== void 0 && (t <= 1 ? E.delete(e) : E.set(e, t - 1));
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
};
|
|
533
|
-
},
|
|
533
|
+
}, Te = () => [...Ce, ...E.keys()], Ee = (e) => e ? (e instanceof HTMLElement ? e : e.holder).closest("[data-blok-table-cell-blocks]") !== null : !1, De = (e) => Ce.includes(e) || E.has(e), Oe = class {
|
|
534
534
|
constructor() {
|
|
535
535
|
this.allListeners = [];
|
|
536
536
|
}
|
|
537
537
|
on(e, t, n, r = !1) {
|
|
538
538
|
if (this.findOne(e, t, n, r)) return;
|
|
539
|
-
let i =
|
|
539
|
+
let i = be("l"), a = {
|
|
540
540
|
id: i,
|
|
541
541
|
element: e,
|
|
542
542
|
eventType: t,
|
|
@@ -611,60 +611,60 @@ var C = () => {
|
|
|
611
611
|
let n = this.normalizeListenerOptions(e), r = this.normalizeListenerOptions(t);
|
|
612
612
|
return n.capture === r.capture && n.once === r.once && n.passive === r.passive && n.signal === r.signal;
|
|
613
613
|
}
|
|
614
|
-
},
|
|
614
|
+
}, D = (e, t) => {
|
|
615
615
|
if (!e.conversionConfig) return !1;
|
|
616
616
|
let n = e.conversionConfig[t];
|
|
617
617
|
return h(n) || _(n);
|
|
618
|
-
},
|
|
618
|
+
}, O = (e, t) => {
|
|
619
619
|
let n = t.includes(".") ? t : `toolNames.${t}`;
|
|
620
620
|
return e.has(n) ? e.t(n) : void 0;
|
|
621
|
-
},
|
|
622
|
-
let r = t.titleKey ?
|
|
621
|
+
}, ke = (e, t, n = "") => {
|
|
622
|
+
let r = t.titleKey ? O(e, t.titleKey) : void 0;
|
|
623
623
|
if (r !== void 0) return r;
|
|
624
|
-
let i = t.title ?
|
|
624
|
+
let i = t.title ? O(e, t.title) : void 0;
|
|
625
625
|
if (i !== void 0) return i;
|
|
626
626
|
if (t.title) return t.title;
|
|
627
|
-
let a = n ?
|
|
627
|
+
let a = n ? O(e, n) : void 0;
|
|
628
628
|
return a == null ? n : a;
|
|
629
|
-
},
|
|
630
|
-
let r = t ?
|
|
629
|
+
}, Ae = (e, t, n) => {
|
|
630
|
+
let r = t ? O(e, t) : void 0;
|
|
631
631
|
if (r !== void 0) return r;
|
|
632
|
-
let i =
|
|
632
|
+
let i = O(e, n);
|
|
633
633
|
return i == null ? n : i;
|
|
634
|
-
},
|
|
634
|
+
}, je = (e, t) => D(e.tool, t), Me = (e, t) => Object.entries(e).some((([e, n]) => t[e] && w(t[e], n))), Ne = async (e, t) => {
|
|
635
635
|
let r = (await e.save()).data, i = t.find((t) => t.name === e.name);
|
|
636
|
-
return i !== void 0 && !
|
|
637
|
-
if (!
|
|
636
|
+
return i !== void 0 && !D(i, "export") ? [] : t.reduce((t, i) => {
|
|
637
|
+
if (!D(i, "import") || i.toolbox === void 0) return t;
|
|
638
638
|
let a = new Set(i.toolbox.map((e) => e.data).filter((e) => e !== void 0).flatMap((e) => Object.keys(e))), o = i.toolbox.filter((t) => {
|
|
639
639
|
if (b(t) || t.icon === void 0) return !1;
|
|
640
640
|
let n = t.data !== void 0;
|
|
641
641
|
return !(n && t.data !== void 0 && [...a].every((e) => {
|
|
642
642
|
let n = t.data === void 0 ? void 0 : t.data[e], i = r[e];
|
|
643
|
-
return
|
|
643
|
+
return w(n, i);
|
|
644
644
|
}) || !n && i.name === e.name);
|
|
645
645
|
});
|
|
646
646
|
return o.length > 0 && t.push(n(n({}, i), {}, { toolbox: o })), t;
|
|
647
647
|
}, []);
|
|
648
|
-
},
|
|
648
|
+
}, Pe = (e, t) => e.mergeable ? e.name === t.name ? !0 : je(t, "export") && je(e, "import") : !1, Fe = async (e, t) => {
|
|
649
649
|
if (e.length === 0) return [];
|
|
650
|
-
if (e.length === 1) return
|
|
650
|
+
if (e.length === 1) return Ne(e[0], t);
|
|
651
651
|
for (let n of e) {
|
|
652
652
|
let e = t.find((e) => e.name === n.name);
|
|
653
|
-
if (e !== void 0 && !
|
|
653
|
+
if (e !== void 0 && !D(e, "export")) return [];
|
|
654
654
|
}
|
|
655
655
|
let r = new Set(e.map((e) => e.name));
|
|
656
656
|
return t.reduce((e, t) => {
|
|
657
|
-
if (!
|
|
657
|
+
if (!D(t, "import") || t.toolbox === void 0) return e;
|
|
658
658
|
let i = t.toolbox.filter((e) => !(b(e) || e.icon === void 0 || e.data === void 0 && r.size === 1 && r.has(t.name)));
|
|
659
659
|
return i.length > 0 && e.push(n(n({}, t), {}, { toolbox: i })), e;
|
|
660
660
|
}, []);
|
|
661
|
-
},
|
|
661
|
+
}, Ie = (e, t) => {
|
|
662
662
|
let n = t == null ? void 0 : t.export;
|
|
663
663
|
return h(n) ? n(e) : _(n) ? e[n] : (n !== void 0 && p("Conversion «export» property must be a string or function. String means key of saved data object to export. Function should export processed string to export."), "");
|
|
664
|
-
},
|
|
664
|
+
}, Le = (e, t, n) => {
|
|
665
665
|
let r = t == null ? void 0 : t.import;
|
|
666
666
|
return h(r) ? r(e, n) : _(r) ? { [r]: e } : (r !== void 0 && p("Conversion «import» property must be a string or function. String means key of tool data to import. Function accepts a imported string and return composed tool data."), {});
|
|
667
|
-
},
|
|
667
|
+
}, Re = class {
|
|
668
668
|
constructor() {
|
|
669
669
|
this.subscribers = {};
|
|
670
670
|
}
|
|
@@ -697,7 +697,7 @@ var C = () => {
|
|
|
697
697
|
destroy() {
|
|
698
698
|
this.subscribers = {};
|
|
699
699
|
}
|
|
700
|
-
},
|
|
700
|
+
}, ze = "blok", Be = "inline-toolbar", Ve = "tooltip", He = "[data-blok-interface=inline-toolbar]", Ue = typeof process < "u" ? process.platform === "darwin" ? "Meta" : "Control" : typeof navigator < "u" && navigator.userAgent.toLowerCase().includes("mac") ? "Meta" : "Control", k = class {
|
|
701
701
|
static getAnchorNode() {
|
|
702
702
|
let e = window.getSelection();
|
|
703
703
|
return e ? e.anchorNode : null;
|
|
@@ -706,7 +706,7 @@ var C = () => {
|
|
|
706
706
|
let e = window.getSelection();
|
|
707
707
|
if (!e) return null;
|
|
708
708
|
let t = e.anchorNode;
|
|
709
|
-
return t ?
|
|
709
|
+
return t ? T.isElement(t) ? t : t.parentElement : null;
|
|
710
710
|
}
|
|
711
711
|
static getAnchorOffset() {
|
|
712
712
|
let e = window.getSelection();
|
|
@@ -766,13 +766,19 @@ var C = () => {
|
|
|
766
766
|
let t = window.getSelection();
|
|
767
767
|
return (e = t == null ? void 0 : t.toString()) == null ? "" : e;
|
|
768
768
|
}
|
|
769
|
-
},
|
|
769
|
+
}, We = class {
|
|
770
770
|
static setCursor(e, t = 0) {
|
|
771
|
-
|
|
772
|
-
|
|
771
|
+
var n, r;
|
|
772
|
+
let i = document.createRange(), a = window.getSelection(), o = T.isNativeInput(e);
|
|
773
|
+
if (o && !T.canSetCaret(e)) return e.getBoundingClientRect();
|
|
774
|
+
if (o) return e.focus(), e.selectionStart = t, e.selectionEnd = t, e.getBoundingClientRect();
|
|
775
|
+
if (i.setStart(e, t), i.setEnd(e, t), !a) return e.getBoundingClientRect();
|
|
776
|
+
a.removeAllRanges(), a.addRange(i);
|
|
777
|
+
let s = T.isContentEditable(e) ? e : (n = (r = e.parentElement) == null ? void 0 : r.closest("[contenteditable=\"true\"]")) == null ? null : n;
|
|
778
|
+
return s !== null && document.activeElement !== s && s.focus(), i.getBoundingClientRect();
|
|
773
779
|
}
|
|
774
780
|
static isRangeInsideContainer(e) {
|
|
775
|
-
let t =
|
|
781
|
+
let t = k.getRange();
|
|
776
782
|
return t === null ? !1 : e.contains(t.startContainer);
|
|
777
783
|
}
|
|
778
784
|
static collapseToEnd() {
|
|
@@ -781,7 +787,7 @@ var C = () => {
|
|
|
781
787
|
let t = document.createRange();
|
|
782
788
|
t.selectNodeContents(e.focusNode), t.collapse(!1), e.removeAllRanges(), e.addRange(t);
|
|
783
789
|
}
|
|
784
|
-
},
|
|
790
|
+
}, Ge, A = class {
|
|
785
791
|
static applyBoxShadowToWrapper(e) {
|
|
786
792
|
let t = e.parentElement;
|
|
787
793
|
if (!t) return;
|
|
@@ -845,10 +851,10 @@ var C = () => {
|
|
|
845
851
|
return n.push(`inset 0 0 0 9999px ${this.BG_COLOR}`), t > 0 && n.push(`0 ${t}px 0 ${this.BG_COLOR}`), e > 0 && n.push(`0 -${e}px 0 ${this.BG_COLOR}`), n.join(", ");
|
|
846
852
|
}
|
|
847
853
|
};
|
|
848
|
-
|
|
854
|
+
Ge = A, Ge.BG_COLOR = "rgba(0, 0, 0, 0.08)";
|
|
849
855
|
//#endregion
|
|
850
856
|
//#region src/components/selection/fake-background/text-nodes.ts
|
|
851
|
-
var
|
|
857
|
+
var Ke = class {
|
|
852
858
|
static collectTextNodes(e) {
|
|
853
859
|
let t = [], { commonAncestorContainer: n } = e;
|
|
854
860
|
if (n.nodeType === Node.TEXT_NODE) return t.push(n), t;
|
|
@@ -879,10 +885,10 @@ var Ge = class {
|
|
|
879
885
|
];
|
|
880
886
|
return n.slice(0, -1).map((t, r) => e.substring(t, n[r + 1])).filter((e) => e.length > 0);
|
|
881
887
|
}
|
|
882
|
-
},
|
|
888
|
+
}, j = class {
|
|
883
889
|
static wrapRangeWithHighlight(e) {
|
|
884
890
|
if (e.collapsed) return null;
|
|
885
|
-
let t =
|
|
891
|
+
let t = T.make("span");
|
|
886
892
|
t.setAttribute("data-blok-testid", "fake-background"), t.setAttribute("data-blok-fake-background", "true"), t.setAttribute("data-blok-mutation-free", "true"), t.style.color = "inherit", t.style.boxDecorationBreak = "clone", t.style["-webkit-box-decoration-break"] = "clone", t.style.whiteSpace = "pre-wrap";
|
|
887
893
|
let n = e.extractContents();
|
|
888
894
|
return n.childNodes.length === 0 ? null : (t.appendChild(n), e.insertNode(t), t);
|
|
@@ -896,17 +902,17 @@ var Ge = class {
|
|
|
896
902
|
}
|
|
897
903
|
static splitMultiLineWrapper(e) {
|
|
898
904
|
let t = e.getClientRects();
|
|
899
|
-
if (t.length <= 1) return
|
|
905
|
+
if (t.length <= 1) return A.applyBoxShadowToWrapper(e), [e];
|
|
900
906
|
let n = e.textContent || "", r = e.parentNode;
|
|
901
|
-
if (!r || !n) return
|
|
907
|
+
if (!r || !n) return A.applyBoxShadowToWrapper(e), [e];
|
|
902
908
|
let i = [], a = e.firstChild;
|
|
903
|
-
if (!a || a.nodeType !== Node.TEXT_NODE) return
|
|
904
|
-
let o =
|
|
905
|
-
if (o.length === 0) return
|
|
906
|
-
let s =
|
|
909
|
+
if (!a || a.nodeType !== Node.TEXT_NODE) return A.applyBoxShadowToWrapper(e), [e];
|
|
910
|
+
let o = Ke.findLineBreakPositions(a, t.length);
|
|
911
|
+
if (o.length === 0) return A.applyBoxShadowToWrapper(e), [e];
|
|
912
|
+
let s = Ke.splitTextAtPositions(n, o), c = document.createDocumentFragment();
|
|
907
913
|
return s.forEach((e) => {
|
|
908
914
|
if (e.length === 0) return;
|
|
909
|
-
let t =
|
|
915
|
+
let t = T.make("span");
|
|
910
916
|
t.setAttribute("data-blok-testid", "fake-background"), t.setAttribute("data-blok-fake-background", "true"), t.setAttribute("data-blok-mutation-free", "true"), t.style.color = "inherit", t.style.boxDecorationBreak = "clone", t.style["-webkit-box-decoration-break"] = "clone", t.style.whiteSpace = "pre-wrap", t.textContent = e, c.appendChild(t), i.push(t);
|
|
911
917
|
}), r.replaceChild(c, e), i;
|
|
912
918
|
}
|
|
@@ -917,7 +923,7 @@ var Ge = class {
|
|
|
917
923
|
t.removeChild(e);
|
|
918
924
|
}
|
|
919
925
|
}
|
|
920
|
-
},
|
|
926
|
+
}, qe = class {
|
|
921
927
|
constructor(e) {
|
|
922
928
|
this.selectionUtils = e;
|
|
923
929
|
}
|
|
@@ -927,7 +933,7 @@ var Ge = class {
|
|
|
927
933
|
if (!e || e.rangeCount === 0) return;
|
|
928
934
|
let t = e.getRangeAt(0);
|
|
929
935
|
if (t.collapsed) return;
|
|
930
|
-
let n =
|
|
936
|
+
let n = Ke.collectTextNodes(t);
|
|
931
937
|
if (n.length === 0) return;
|
|
932
938
|
let r = t.startContainer, i = t.startOffset, a = t.endContainer, o = t.endOffset, s = [];
|
|
933
939
|
if (n.forEach((e) => {
|
|
@@ -935,11 +941,11 @@ var Ge = class {
|
|
|
935
941
|
let c = document.createRange(), l = e === r, u = e === a, d = l ? i : 0, f = (t = (n = e.textContent) == null ? void 0 : n.length) == null ? 0 : t, p = u ? o : f;
|
|
936
942
|
if (d === p) return;
|
|
937
943
|
c.setStart(e, d), c.setEnd(e, p);
|
|
938
|
-
let m =
|
|
944
|
+
let m = j.wrapRangeWithHighlight(c);
|
|
939
945
|
m && s.push(m);
|
|
940
946
|
}), s.length === 0) return;
|
|
941
|
-
let c =
|
|
942
|
-
|
|
947
|
+
let c = j.postProcessHighlightWrappers(s);
|
|
948
|
+
A.applyLineHeightExtensions(c);
|
|
943
949
|
let l = document.createRange();
|
|
944
950
|
l.setStartBefore(c[0]), l.setEndAfter(c[c.length - 1]), this.selectionUtils.savedSelectionRange = l.cloneRange();
|
|
945
951
|
let u = window.getSelection();
|
|
@@ -950,7 +956,7 @@ var Ge = class {
|
|
|
950
956
|
}
|
|
951
957
|
removeOrphanedFakeBackgroundElements() {
|
|
952
958
|
document.querySelectorAll("[data-blok-fake-background=\"true\"]").forEach((e) => {
|
|
953
|
-
|
|
959
|
+
j.unwrapFakeBackground(e);
|
|
954
960
|
});
|
|
955
961
|
}
|
|
956
962
|
clearFakeBackground() {
|
|
@@ -961,28 +967,28 @@ var Ge = class {
|
|
|
961
967
|
if (e.length === 0) return;
|
|
962
968
|
let t = e[0], n = e[e.length - 1], r = t.firstChild, i = n.lastChild;
|
|
963
969
|
if (e.forEach((e) => {
|
|
964
|
-
|
|
970
|
+
j.unwrapFakeBackground(e);
|
|
965
971
|
}), r && i) {
|
|
966
972
|
var a;
|
|
967
973
|
let e = document.createRange();
|
|
968
974
|
e.setStart(r, 0), e.setEnd(i, ((a = i.textContent) == null ? void 0 : a.length) || 0), this.selectionUtils.savedSelectionRange = e;
|
|
969
975
|
}
|
|
970
976
|
}
|
|
971
|
-
},
|
|
977
|
+
}, Je = class {
|
|
972
978
|
static addFakeCursor() {
|
|
973
|
-
let e =
|
|
979
|
+
let e = k.getRange();
|
|
974
980
|
if (e === null) return;
|
|
975
|
-
let t =
|
|
981
|
+
let t = T.make("span");
|
|
976
982
|
t.setAttribute(a.fakeCursor, ""), t.setAttribute("data-blok-mutation-free", "true"), e.collapse(), e.insertNode(t);
|
|
977
983
|
}
|
|
978
984
|
static isFakeCursorInsideContainer(e) {
|
|
979
|
-
return
|
|
985
|
+
return T.find(e, o(a.fakeCursor)) !== null;
|
|
980
986
|
}
|
|
981
987
|
static removeFakeCursor(e = document.body) {
|
|
982
|
-
let t =
|
|
988
|
+
let t = T.find(e, o(a.fakeCursor));
|
|
983
989
|
t && t.remove();
|
|
984
990
|
}
|
|
985
|
-
},
|
|
991
|
+
}, Ye = class {
|
|
986
992
|
static findParentTag(e, t, n = 10) {
|
|
987
993
|
let r = window.getSelection();
|
|
988
994
|
if (!r || !r.anchorNode || !r.focusNode) return null;
|
|
@@ -1010,63 +1016,63 @@ var Ge = class {
|
|
|
1010
1016
|
let n = document.createRange();
|
|
1011
1017
|
n.selectNodeContents(e), t.addRange(n);
|
|
1012
1018
|
}
|
|
1013
|
-
},
|
|
1019
|
+
}, Xe = class {
|
|
1014
1020
|
constructor() {
|
|
1015
|
-
this.instance = null, this.selection = null, this.savedSelectionRange = null, this.isFakeBackgroundEnabled = !1, this.fakeBackgroundManager = new
|
|
1021
|
+
this.instance = null, this.selection = null, this.savedSelectionRange = null, this.isFakeBackgroundEnabled = !1, this.fakeBackgroundManager = new qe(this);
|
|
1016
1022
|
}
|
|
1017
1023
|
static get anchorNode() {
|
|
1018
|
-
return
|
|
1024
|
+
return k.getAnchorNode();
|
|
1019
1025
|
}
|
|
1020
1026
|
static get anchorElement() {
|
|
1021
|
-
return
|
|
1027
|
+
return k.getAnchorElement();
|
|
1022
1028
|
}
|
|
1023
1029
|
static get anchorOffset() {
|
|
1024
|
-
return
|
|
1030
|
+
return k.getAnchorOffset();
|
|
1025
1031
|
}
|
|
1026
1032
|
static get isCollapsed() {
|
|
1027
|
-
return
|
|
1033
|
+
return k.getIsCollapsed();
|
|
1028
1034
|
}
|
|
1029
1035
|
static get isAtBlok() {
|
|
1030
|
-
return
|
|
1036
|
+
return k.getIsAtBlok();
|
|
1031
1037
|
}
|
|
1032
1038
|
static isSelectionAtBlok(e) {
|
|
1033
|
-
return
|
|
1039
|
+
return k.isSelectionAtBlok(e);
|
|
1034
1040
|
}
|
|
1035
1041
|
static isRangeAtBlok(e) {
|
|
1036
|
-
return
|
|
1042
|
+
return k.isRangeAtBlok(e);
|
|
1037
1043
|
}
|
|
1038
1044
|
static get isSelectionExists() {
|
|
1039
|
-
return
|
|
1045
|
+
return k.getIsSelectionExists();
|
|
1040
1046
|
}
|
|
1041
1047
|
static get range() {
|
|
1042
|
-
return
|
|
1048
|
+
return k.getRange();
|
|
1043
1049
|
}
|
|
1044
1050
|
static getRangeFromSelection(e) {
|
|
1045
|
-
return
|
|
1051
|
+
return k.getRangeFromSelection(e);
|
|
1046
1052
|
}
|
|
1047
1053
|
static get rect() {
|
|
1048
|
-
return
|
|
1054
|
+
return k.getRect();
|
|
1049
1055
|
}
|
|
1050
1056
|
static get text() {
|
|
1051
|
-
return
|
|
1057
|
+
return k.getText();
|
|
1052
1058
|
}
|
|
1053
1059
|
static get() {
|
|
1054
|
-
return
|
|
1060
|
+
return k.get();
|
|
1055
1061
|
}
|
|
1056
1062
|
static setCursor(e, t = 0) {
|
|
1057
|
-
return
|
|
1063
|
+
return We.setCursor(e, t);
|
|
1058
1064
|
}
|
|
1059
1065
|
static isRangeInsideContainer(e) {
|
|
1060
|
-
return
|
|
1066
|
+
return We.isRangeInsideContainer(e);
|
|
1061
1067
|
}
|
|
1062
1068
|
static addFakeCursor() {
|
|
1063
|
-
|
|
1069
|
+
Je.addFakeCursor();
|
|
1064
1070
|
}
|
|
1065
1071
|
static isFakeCursorInsideContainer(e) {
|
|
1066
|
-
return
|
|
1072
|
+
return Je.isFakeCursorInsideContainer(e);
|
|
1067
1073
|
}
|
|
1068
1074
|
static removeFakeCursor(e = document.body) {
|
|
1069
|
-
|
|
1075
|
+
Je.removeFakeCursor(e);
|
|
1070
1076
|
}
|
|
1071
1077
|
removeFakeBackground() {
|
|
1072
1078
|
this.fakeBackgroundManager.removeFakeBackground();
|
|
@@ -1081,7 +1087,7 @@ var Ge = class {
|
|
|
1081
1087
|
this.fakeBackgroundManager.setFakeBackground();
|
|
1082
1088
|
}
|
|
1083
1089
|
save() {
|
|
1084
|
-
this.savedSelectionRange =
|
|
1090
|
+
this.savedSelectionRange = k.getRange();
|
|
1085
1091
|
}
|
|
1086
1092
|
restore() {
|
|
1087
1093
|
if (!this.savedSelectionRange) return;
|
|
@@ -1092,17 +1098,17 @@ var Ge = class {
|
|
|
1092
1098
|
this.savedSelectionRange = null;
|
|
1093
1099
|
}
|
|
1094
1100
|
collapseToEnd() {
|
|
1095
|
-
|
|
1101
|
+
We.collapseToEnd();
|
|
1096
1102
|
}
|
|
1097
1103
|
findParentTag(e, t, n = 10) {
|
|
1098
|
-
return
|
|
1104
|
+
return Ye.findParentTag(e, t, n);
|
|
1099
1105
|
}
|
|
1100
1106
|
expandToTag(e) {
|
|
1101
|
-
|
|
1107
|
+
Ye.expandToTag(e);
|
|
1102
1108
|
}
|
|
1103
|
-
},
|
|
1109
|
+
}, M = /* @__PURE__ */ function(e) {
|
|
1104
1110
|
return e.Default = "default", e.Separator = "separator", e.Html = "html", e;
|
|
1105
|
-
}({}),
|
|
1111
|
+
}({}), Ze = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
1106
1112
|
(function(n, r) {
|
|
1107
1113
|
typeof define == "function" && define.amd ? define("html-janitor", r) : typeof e == "object" ? t.exports = r() : n.HTMLJanitor = r();
|
|
1108
1114
|
})(e, function() {
|
|
@@ -1190,84 +1196,84 @@ var Ge = class {
|
|
|
1190
1196
|
}
|
|
1191
1197
|
return e;
|
|
1192
1198
|
});
|
|
1193
|
-
})))()),
|
|
1199
|
+
})))()), Qe = /^\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)/i, $e = /\s*(?:href|src)\s*=\s*(?:"\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^"]*"|'\s*(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^']*|(?:javascript\s*:|data\s*:\s*text\s*\/\s*html)[^ \t\r\n>]*)/gi, et = (e, t, r = {}) => e.map((e) => {
|
|
1194
1200
|
let i = h(t) ? t(e.tool) : t, a = i == null ? {} : i;
|
|
1195
|
-
return g(a) && b(a) && b(r) ? e : n(n({}, e), {}, { data:
|
|
1196
|
-
}),
|
|
1201
|
+
return g(a) && b(a) && b(r) ? e : n(n({}, e), {}, { data: tt(e.data, a, r) });
|
|
1202
|
+
}), N = (e, t = {}) => new Ze.default({ tags: t }).clean(e), tt = (e, t, n) => Array.isArray(e) ? nt(e, t, n) : g(e) ? rt(e, t, n) : _(e) ? it(e, t, n) : e, nt = (e, t, n) => e.map((e) => tt(e, t, n)), rt = (e, t, n) => {
|
|
1197
1203
|
let r = {}, i = e;
|
|
1198
1204
|
for (let a in e) {
|
|
1199
1205
|
if (!Object.prototype.hasOwnProperty.call(e, a)) continue;
|
|
1200
1206
|
let o = i[a], s = g(t) ? t : void 0, c = s == null ? void 0 : s[a];
|
|
1201
|
-
r[a] =
|
|
1207
|
+
r[a] = tt(o, c !== void 0 && at(c) ? c : t, n);
|
|
1202
1208
|
}
|
|
1203
1209
|
return r;
|
|
1204
|
-
},
|
|
1205
|
-
let r =
|
|
1206
|
-
return r ?
|
|
1207
|
-
},
|
|
1210
|
+
}, it = (e, t, n) => {
|
|
1211
|
+
let r = mt(t, n);
|
|
1212
|
+
return r ? st(gt(N(e, r), r)) : b(n) ? st(e) : st(gt(N(e, n), n));
|
|
1213
|
+
}, at = (e) => g(e) || v(e) || h(e), ot = (e) => e ? Qe.test(e) : !1, st = (e) => {
|
|
1208
1214
|
if (!e || e.indexOf("<") === -1) return e;
|
|
1209
1215
|
if (typeof document < "u") {
|
|
1210
1216
|
let t = document.createElement("template");
|
|
1211
1217
|
return t.innerHTML = e, t.content.querySelectorAll("[href],[src]").forEach((e) => {
|
|
1212
1218
|
["href", "src"].forEach((t) => {
|
|
1213
|
-
|
|
1219
|
+
ot(e.getAttribute(t)) && e.removeAttribute(t);
|
|
1214
1220
|
});
|
|
1215
1221
|
}), t.innerHTML;
|
|
1216
1222
|
}
|
|
1217
|
-
return e.replace(
|
|
1218
|
-
},
|
|
1223
|
+
return e.replace($e, "");
|
|
1224
|
+
}, ct = (e) => {
|
|
1219
1225
|
if (b(e)) return {};
|
|
1220
1226
|
let t = {};
|
|
1221
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
1227
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = P(e[n]));
|
|
1222
1228
|
return t;
|
|
1223
|
-
},
|
|
1229
|
+
}, lt = (e) => function(t) {
|
|
1224
1230
|
let n = e.call(this, t);
|
|
1225
1231
|
return n == null ? {} : n;
|
|
1226
|
-
},
|
|
1232
|
+
}, ut = new Set([
|
|
1227
1233
|
"class",
|
|
1228
1234
|
"id",
|
|
1229
1235
|
"title",
|
|
1230
1236
|
"role",
|
|
1231
1237
|
"dir",
|
|
1232
1238
|
"lang"
|
|
1233
|
-
]),
|
|
1239
|
+
]), dt = (e) => {
|
|
1234
1240
|
let t = e.toLowerCase();
|
|
1235
|
-
return t.startsWith("data-") || t.startsWith("aria-") ||
|
|
1236
|
-
},
|
|
1241
|
+
return t.startsWith("data-") || t.startsWith("aria-") || ut.has(t);
|
|
1242
|
+
}, ft = (e) => {
|
|
1237
1243
|
let t = {};
|
|
1238
1244
|
return Array.from(e.attributes).forEach((e) => {
|
|
1239
|
-
|
|
1245
|
+
dt(e.name) && (t[e.name] = !0);
|
|
1240
1246
|
}), t;
|
|
1241
|
-
},
|
|
1242
|
-
if (b(e)) return
|
|
1247
|
+
}, P = (e) => e === !0 ? lt(ft) : e === !1 ? !1 : h(e) ? lt(e) : _(e) ? e : g(e) ? C({}, e) : e, pt = (e, t) => {
|
|
1248
|
+
if (b(e)) return ct(t);
|
|
1243
1249
|
let n = {};
|
|
1244
1250
|
for (let r in e) {
|
|
1245
1251
|
if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
|
|
1246
1252
|
let i = e[r], a = t ? t[r] : void 0;
|
|
1247
1253
|
if (h(a)) {
|
|
1248
|
-
n[r] =
|
|
1254
|
+
n[r] = P(a);
|
|
1249
1255
|
continue;
|
|
1250
1256
|
}
|
|
1251
1257
|
if (h(i)) {
|
|
1252
|
-
n[r] =
|
|
1258
|
+
n[r] = P(i);
|
|
1253
1259
|
continue;
|
|
1254
1260
|
}
|
|
1255
1261
|
if (g(i) && g(a)) {
|
|
1256
|
-
n[r] =
|
|
1262
|
+
n[r] = C({}, a, i);
|
|
1257
1263
|
continue;
|
|
1258
1264
|
}
|
|
1259
1265
|
if (a !== void 0) {
|
|
1260
|
-
n[r] =
|
|
1266
|
+
n[r] = P(a);
|
|
1261
1267
|
continue;
|
|
1262
1268
|
}
|
|
1263
|
-
n[r] =
|
|
1269
|
+
n[r] = P(i);
|
|
1264
1270
|
}
|
|
1265
1271
|
if (!t) return n;
|
|
1266
|
-
for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (Object.prototype.hasOwnProperty.call(n, e) || (n[e] =
|
|
1272
|
+
for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (Object.prototype.hasOwnProperty.call(n, e) || (n[e] = P(t[e])));
|
|
1267
1273
|
return n;
|
|
1268
|
-
},
|
|
1274
|
+
}, mt = (e, t) => g(e) && !h(e) ? pt(t, e) : e === !1 ? {} : b(t) ? null : ct(t), ht = (e, ...t) => {
|
|
1269
1275
|
if (b(e)) return Object.assign({}, ...t);
|
|
1270
|
-
let n =
|
|
1276
|
+
let n = ct(e);
|
|
1271
1277
|
return t.forEach((e) => {
|
|
1272
1278
|
if (e) for (let t in e) {
|
|
1273
1279
|
if (!Object.prototype.hasOwnProperty.call(e, t)) continue;
|
|
@@ -1280,18 +1286,18 @@ var Ge = class {
|
|
|
1280
1286
|
}
|
|
1281
1287
|
if (!(r === !0 && h(i))) {
|
|
1282
1288
|
if (r === !0) {
|
|
1283
|
-
n[t] = g(i) && !h(i) ?
|
|
1289
|
+
n[t] = g(i) && !h(i) ? C({}, i) : P(r);
|
|
1284
1290
|
continue;
|
|
1285
1291
|
}
|
|
1286
1292
|
if (g(r) && g(i)) {
|
|
1287
|
-
n[t] =
|
|
1293
|
+
n[t] = C({}, i, r);
|
|
1288
1294
|
continue;
|
|
1289
1295
|
}
|
|
1290
|
-
n[t] =
|
|
1296
|
+
n[t] = P(r);
|
|
1291
1297
|
}
|
|
1292
1298
|
}
|
|
1293
1299
|
}), n;
|
|
1294
|
-
},
|
|
1300
|
+
}, gt = (e, t) => {
|
|
1295
1301
|
if (typeof document > "u" || !e || e.indexOf("<") === -1) return e;
|
|
1296
1302
|
let n = Object.entries(t).filter(([, e]) => h(e));
|
|
1297
1303
|
if (n.length === 0) return e;
|
|
@@ -1308,7 +1314,7 @@ var Ge = class {
|
|
|
1308
1314
|
}
|
|
1309
1315
|
});
|
|
1310
1316
|
}), r.innerHTML;
|
|
1311
|
-
},
|
|
1317
|
+
}, _t, vt = 10, yt = "tooltip", bt = "aria-hidden", xt = "false", St = "true", Ct = "visibility", wt = "visible", Tt = "hidden", Et = class e {
|
|
1312
1318
|
get CSS() {
|
|
1313
1319
|
return {
|
|
1314
1320
|
tooltip: i("absolute z-overlay top-0 left-0", "bg-tooltip-bg opacity-0", "select-none pointer-events-none", "rounded-lg shadow-tooltip", "before:content-[''] before:absolute before:inset-0 before:bg-tooltip-bg before:-z-10 before:rounded-lg", "mobile:hidden").split(" "),
|
|
@@ -1323,7 +1329,7 @@ var Ge = class {
|
|
|
1323
1329
|
this.nodes = {
|
|
1324
1330
|
wrapper: null,
|
|
1325
1331
|
content: null
|
|
1326
|
-
}, this.showed = !1, this.offsetTop =
|
|
1332
|
+
}, this.showed = !1, this.offsetTop = vt, this.offsetLeft = vt, this.offsetRight = vt, this.showingTimeout = null, this.ariaObserver = null, this.handleWindowScroll = () => {
|
|
1327
1333
|
this.showed && this.hide();
|
|
1328
1334
|
}, this.prepare(), window.addEventListener("scroll", this.handleWindowScroll, { passive: !0 });
|
|
1329
1335
|
}
|
|
@@ -1394,12 +1400,12 @@ var Ge = class {
|
|
|
1394
1400
|
(t = this.ariaObserver) == null || t.disconnect(), this.ariaObserver = null, this.nodes.wrapper && this.nodes.wrapper.remove(), window.removeEventListener("scroll", this.handleWindowScroll), e.instance = null;
|
|
1395
1401
|
}
|
|
1396
1402
|
prepare() {
|
|
1397
|
-
this.nodes.wrapper = this.make("div", this.CSS.tooltip), this.nodes.wrapper.setAttribute(a.interface,
|
|
1403
|
+
this.nodes.wrapper = this.make("div", this.CSS.tooltip), this.nodes.wrapper.setAttribute(a.interface, Ve), this.nodes.wrapper.setAttribute("data-blok-testid", "tooltip"), this.nodes.content = this.make("div", this.CSS.tooltipContent), this.nodes.content.setAttribute("data-blok-testid", "tooltip-content"), this.nodes.wrapper && this.nodes.content && (this.append(this.nodes.wrapper, this.nodes.content), this.append(document.body, this.nodes.wrapper), this.ensureTooltipAttributes());
|
|
1398
1404
|
}
|
|
1399
1405
|
updateTooltipVisibility() {
|
|
1400
1406
|
if (!this.nodes.wrapper) return;
|
|
1401
1407
|
let e = Array.isArray(this.CSS.tooltipShown) ? this.CSS.tooltipShown[0] : this.CSS.tooltipShown, t = this.nodes.wrapper.classList.contains(e);
|
|
1402
|
-
this.nodes.wrapper.style.setProperty(
|
|
1408
|
+
this.nodes.wrapper.style.setProperty(Ct, t ? wt : Tt, t ? "" : "important"), this.nodes.wrapper.setAttribute(bt, t ? xt : St), this.nodes.wrapper.setAttribute("data-blok-shown", t ? "true" : "false");
|
|
1403
1409
|
}
|
|
1404
1410
|
watchTooltipVisibility() {
|
|
1405
1411
|
var e;
|
|
@@ -1411,7 +1417,7 @@ var Ge = class {
|
|
|
1411
1417
|
}));
|
|
1412
1418
|
}
|
|
1413
1419
|
ensureTooltipAttributes() {
|
|
1414
|
-
this.nodes.wrapper && ((!this.nodes.wrapper.hasAttribute(a.interface) || this.nodes.wrapper.getAttribute(a.interface) !== "tooltip") && this.nodes.wrapper.setAttribute(a.interface,
|
|
1420
|
+
this.nodes.wrapper && ((!this.nodes.wrapper.hasAttribute(a.interface) || this.nodes.wrapper.getAttribute(a.interface) !== "tooltip") && this.nodes.wrapper.setAttribute(a.interface, Ve), this.nodes.wrapper.setAttribute("role", yt), this.watchTooltipVisibility());
|
|
1415
1421
|
}
|
|
1416
1422
|
placeBottom(e, t) {
|
|
1417
1423
|
var n;
|
|
@@ -1453,16 +1459,16 @@ var Ge = class {
|
|
|
1453
1459
|
Array.isArray(t) ? t.forEach((t) => e.appendChild(t)) : e.appendChild(t);
|
|
1454
1460
|
}
|
|
1455
1461
|
};
|
|
1456
|
-
|
|
1457
|
-
var
|
|
1458
|
-
|
|
1459
|
-
},
|
|
1460
|
-
|
|
1461
|
-
},
|
|
1462
|
-
|
|
1463
|
-
}, kt = () => {
|
|
1464
|
-
I().destroy();
|
|
1462
|
+
_t = Et, _t.instance = null;
|
|
1463
|
+
var F = () => Et.getInstance(), Dt = (e, t, n) => {
|
|
1464
|
+
F().show(e, t, n == null ? {} : n);
|
|
1465
|
+
}, Ot = () => {
|
|
1466
|
+
F().hide();
|
|
1467
|
+
}, kt = (e, t, n) => {
|
|
1468
|
+
F().onHover(e, t, n == null ? {} : n);
|
|
1465
1469
|
}, At = () => {
|
|
1470
|
+
F().destroy();
|
|
1471
|
+
}, jt = () => {
|
|
1466
1472
|
var e, t;
|
|
1467
1473
|
let n = window.getSelection();
|
|
1468
1474
|
if (n === null) return [null, 0];
|
|
@@ -1473,7 +1479,7 @@ var I = () => Tt.getInstance(), Et = (e, t, n) => {
|
|
|
1473
1479
|
if (a !== void 0) return [a, 0];
|
|
1474
1480
|
let o = (e = r.childNodes[i - 1]) == null ? null : e, s = (t = o == null ? void 0 : o.textContent) == null ? null : t;
|
|
1475
1481
|
return [o, s === null ? 0 : s.length];
|
|
1476
|
-
},
|
|
1482
|
+
}, Mt = (e) => {
|
|
1477
1483
|
var t;
|
|
1478
1484
|
let n = window.getSelection();
|
|
1479
1485
|
if (n === null || n.rangeCount === 0) return 0;
|
|
@@ -1481,7 +1487,7 @@ var I = () => Tt.getInstance(), Et = (e, t, n) => {
|
|
|
1481
1487
|
if (i == null) return 0;
|
|
1482
1488
|
let a = document.createRange();
|
|
1483
1489
|
return a.selectNodeContents(i), a.setEnd(r.startContainer, r.startOffset), a.toString().length;
|
|
1484
|
-
},
|
|
1490
|
+
}, Nt = (e, t, n, r) => {
|
|
1485
1491
|
let i = document.createRange();
|
|
1486
1492
|
r === "left" ? (i.selectNodeContents(e), i.setEnd(t, n)) : (i.selectNodeContents(e), i.setStart(t, n));
|
|
1487
1493
|
let a = i.cloneContents(), o = document.createElement("div");
|
|
@@ -1492,24 +1498,24 @@ var I = () => Tt.getInstance(), Et = (e, t, n) => {
|
|
|
1492
1498
|
if (c || l) return !1;
|
|
1493
1499
|
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);
|
|
1494
1500
|
let u = o.getBoundingClientRect().width;
|
|
1495
|
-
return document.body.removeChild(o), !(u > 0 || !
|
|
1496
|
-
},
|
|
1501
|
+
return document.body.removeChild(o), !(u > 0 || !xe(s) || window.getComputedStyle(e).whiteSpace.startsWith("pre") && s.length > 0);
|
|
1502
|
+
}, Pt = (e) => {
|
|
1497
1503
|
var t;
|
|
1498
|
-
let n =
|
|
1499
|
-
if (n === null ||
|
|
1500
|
-
if (
|
|
1501
|
-
if (
|
|
1502
|
-
let [r, i] =
|
|
1504
|
+
let n = T.getDeepestNode(e);
|
|
1505
|
+
if (n === null || T.isEmpty(e)) return !0;
|
|
1506
|
+
if (T.isNativeInput(n)) return n.selectionEnd === 0;
|
|
1507
|
+
if (T.isEmpty(e)) return !0;
|
|
1508
|
+
let [r, i] = jt();
|
|
1503
1509
|
if (r === null) return !1;
|
|
1504
1510
|
let a = window.getSelection(), o = (t = a == null ? void 0 : a.focusNode) == null ? null : t;
|
|
1505
|
-
return o !== null && o !== e && !(o.nodeType === Node.TEXT_NODE && o.parentNode === e) ? !1 :
|
|
1506
|
-
},
|
|
1507
|
-
let t =
|
|
1511
|
+
return o !== null && o !== e && !(o.nodeType === Node.TEXT_NODE && o.parentNode === e) ? !1 : Nt(e, r, i, "left");
|
|
1512
|
+
}, Ft = (e) => {
|
|
1513
|
+
let t = T.getDeepestNode(e, !0);
|
|
1508
1514
|
if (t === null) return !0;
|
|
1509
|
-
if (
|
|
1510
|
-
let [n, r] =
|
|
1511
|
-
return n === null ? !1 :
|
|
1512
|
-
},
|
|
1515
|
+
if (T.isNativeInput(t)) return t.selectionEnd === t.value.length;
|
|
1516
|
+
let [n, r] = jt();
|
|
1517
|
+
return n === null ? !1 : Nt(e, n, r, "right");
|
|
1518
|
+
}, It, I = class e {
|
|
1513
1519
|
constructor(e, t) {
|
|
1514
1520
|
this.cursor = -1, this.items = [], this.items = e == null ? [] : e, this.focusedCssClass = t;
|
|
1515
1521
|
}
|
|
@@ -1539,16 +1545,16 @@ var I = () => Tt.getInstance(), Et = (e, t, n) => {
|
|
|
1539
1545
|
let n = t === e.directions.RIGHT ? -1 : 0, r = this.cursor === -1 ? n : this.cursor;
|
|
1540
1546
|
r !== -1 && (this.items[r].classList.remove(this.focusedCssClass), this.items[r].removeAttribute("data-blok-focused"));
|
|
1541
1547
|
let i = t === e.directions.RIGHT ? (r + 1) % this.items.length : (this.items.length + r - 1) % this.items.length;
|
|
1542
|
-
return
|
|
1548
|
+
return T.canSetCaret(this.items[i]) && te(() => Xe.setCursor(this.items[i]), 50)(), this.items[i].classList.add(this.focusedCssClass), this.items[i].setAttribute("data-blok-focused", "true"), i;
|
|
1543
1549
|
}
|
|
1544
1550
|
};
|
|
1545
|
-
|
|
1551
|
+
It = I, It.directions = {
|
|
1546
1552
|
RIGHT: "right",
|
|
1547
1553
|
LEFT: "left"
|
|
1548
1554
|
};
|
|
1549
1555
|
//#endregion
|
|
1550
1556
|
//#region src/components/flipper.ts
|
|
1551
|
-
var
|
|
1557
|
+
var Lt = class e {
|
|
1552
1558
|
get isActivated() {
|
|
1553
1559
|
return this.activated;
|
|
1554
1560
|
}
|
|
@@ -1581,7 +1587,7 @@ var It = class e {
|
|
|
1581
1587
|
break;
|
|
1582
1588
|
case null: break;
|
|
1583
1589
|
}
|
|
1584
|
-
}, this.iterator = new
|
|
1590
|
+
}, this.iterator = new I(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;
|
|
1585
1591
|
}
|
|
1586
1592
|
static get usedKeys() {
|
|
1587
1593
|
return [
|
|
@@ -1670,16 +1676,16 @@ var It = class e {
|
|
|
1670
1676
|
return this.handleContentEditableTargets;
|
|
1671
1677
|
}
|
|
1672
1678
|
handleTabPress(e) {
|
|
1673
|
-
let t = e.shiftKey ?
|
|
1679
|
+
let t = e.shiftKey ? I.directions.LEFT : I.directions.RIGHT;
|
|
1674
1680
|
if (this.skipNextTabFocus) {
|
|
1675
1681
|
this.skipNextTabFocus = !1;
|
|
1676
1682
|
return;
|
|
1677
1683
|
}
|
|
1678
1684
|
switch (t) {
|
|
1679
|
-
case
|
|
1685
|
+
case I.directions.RIGHT:
|
|
1680
1686
|
this.flipRight();
|
|
1681
1687
|
break;
|
|
1682
|
-
case
|
|
1688
|
+
case I.directions.LEFT:
|
|
1683
1689
|
this.flipLeft();
|
|
1684
1690
|
break;
|
|
1685
1691
|
}
|
|
@@ -1708,7 +1714,7 @@ var It = class e {
|
|
|
1708
1714
|
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;
|
|
1709
1715
|
return n && !i || s || o;
|
|
1710
1716
|
}
|
|
1711
|
-
},
|
|
1717
|
+
}, Rt = [
|
|
1712
1718
|
{
|
|
1713
1719
|
name: "gray",
|
|
1714
1720
|
text: "#787774",
|
|
@@ -1754,7 +1760,7 @@ var It = class e {
|
|
|
1754
1760
|
text: "#d44c47",
|
|
1755
1761
|
bg: "#fdebec"
|
|
1756
1762
|
}
|
|
1757
|
-
],
|
|
1763
|
+
], zt = [
|
|
1758
1764
|
{
|
|
1759
1765
|
name: "gray",
|
|
1760
1766
|
text: "#9b9b9b",
|
|
@@ -1801,12 +1807,12 @@ var It = class e {
|
|
|
1801
1807
|
bg: "#4e1a18"
|
|
1802
1808
|
}
|
|
1803
1809
|
];
|
|
1804
|
-
function
|
|
1810
|
+
function Bt(e, t) {
|
|
1805
1811
|
return `var(--blok-color-${e}-${t})`;
|
|
1806
1812
|
}
|
|
1807
1813
|
//#endregion
|
|
1808
1814
|
//#region src/components/utils/color-mapping.ts
|
|
1809
|
-
function
|
|
1815
|
+
function Vt(e, t, n) {
|
|
1810
1816
|
let r = t / 100, i = n / 100;
|
|
1811
1817
|
if (r === 0) {
|
|
1812
1818
|
let e = Math.round(i * 255);
|
|
@@ -1826,7 +1832,7 @@ function Bt(e, t, n) {
|
|
|
1826
1832
|
Math.round(o(c, s, l - 1 / 3) * 255)
|
|
1827
1833
|
];
|
|
1828
1834
|
}
|
|
1829
|
-
function
|
|
1835
|
+
function L(e) {
|
|
1830
1836
|
let t = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);
|
|
1831
1837
|
if (t) return [
|
|
1832
1838
|
parseInt(t[1], 16),
|
|
@@ -1858,10 +1864,10 @@ function R(e) {
|
|
|
1858
1864
|
Number(a[3])
|
|
1859
1865
|
];
|
|
1860
1866
|
let o = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%\s*(?:,\s*[\d.]+\s*)?\)$/i.exec(e);
|
|
1861
|
-
return o ?
|
|
1867
|
+
return o ? Vt(Number(o[1]), Number(o[2]), Number(o[3])) : null;
|
|
1862
1868
|
}
|
|
1863
|
-
var
|
|
1864
|
-
function
|
|
1869
|
+
var Ht = .1;
|
|
1870
|
+
function R(e) {
|
|
1865
1871
|
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;
|
|
1866
1872
|
if (i === a) return [
|
|
1867
1873
|
0,
|
|
@@ -1875,8 +1881,8 @@ function z(e) {
|
|
|
1875
1881
|
o
|
|
1876
1882
|
];
|
|
1877
1883
|
}
|
|
1878
|
-
function
|
|
1879
|
-
let n = e[1] <
|
|
1884
|
+
function Ut(e, t) {
|
|
1885
|
+
let n = e[1] < Ht, r = t[1] < Ht;
|
|
1880
1886
|
if (n && r) {
|
|
1881
1887
|
let n = Math.abs(e[2] - t[2]);
|
|
1882
1888
|
return n * n;
|
|
@@ -1885,14 +1891,14 @@ function Ht(e, t) {
|
|
|
1885
1891
|
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]);
|
|
1886
1892
|
return 8 * a * a + 1 * o * o + 1 * s * s;
|
|
1887
1893
|
}
|
|
1888
|
-
function
|
|
1889
|
-
let n =
|
|
1894
|
+
function z(e, t) {
|
|
1895
|
+
let n = L(e);
|
|
1890
1896
|
if (n === null) return e;
|
|
1891
|
-
let r =
|
|
1892
|
-
return
|
|
1893
|
-
let i =
|
|
1897
|
+
let r = R(n);
|
|
1898
|
+
return Rt.reduce((e, n) => {
|
|
1899
|
+
let i = L(n[t]);
|
|
1894
1900
|
if (i === null) return e;
|
|
1895
|
-
let a =
|
|
1901
|
+
let a = Ut(r, R(i));
|
|
1896
1902
|
return a < e.distance ? {
|
|
1897
1903
|
color: n[t],
|
|
1898
1904
|
distance: a
|
|
@@ -1902,14 +1908,14 @@ function B(e, t) {
|
|
|
1902
1908
|
distance: Infinity
|
|
1903
1909
|
}).color;
|
|
1904
1910
|
}
|
|
1905
|
-
function
|
|
1911
|
+
function Wt(e, t) {
|
|
1906
1912
|
var n;
|
|
1907
|
-
let r =
|
|
1913
|
+
let r = L(e);
|
|
1908
1914
|
if (r === null) return null;
|
|
1909
|
-
let i =
|
|
1910
|
-
let r =
|
|
1915
|
+
let i = R(r), a = [...Rt, ...zt].reduce((e, n) => {
|
|
1916
|
+
let r = L(n[t]);
|
|
1911
1917
|
if (r === null) return e;
|
|
1912
|
-
let a =
|
|
1918
|
+
let a = Ut(i, R(r));
|
|
1913
1919
|
return e === null || a < e.distance ? {
|
|
1914
1920
|
name: n.name,
|
|
1915
1921
|
distance: a
|
|
@@ -1919,11 +1925,11 @@ function Ut(e, t) {
|
|
|
1919
1925
|
}
|
|
1920
1926
|
//#endregion
|
|
1921
1927
|
//#region src/tools/table/table-cell-clipboard.ts
|
|
1922
|
-
var
|
|
1923
|
-
function
|
|
1928
|
+
var B = "data-blok-table-cells";
|
|
1929
|
+
function Gt(e, t, n) {
|
|
1924
1930
|
return e ? `background-color: ${n}` : t ? "background-color: transparent" : "";
|
|
1925
1931
|
}
|
|
1926
|
-
function
|
|
1932
|
+
function Kt(e) {
|
|
1927
1933
|
if (e.length === 0) return {
|
|
1928
1934
|
rows: 0,
|
|
1929
1935
|
cols: 0,
|
|
@@ -1940,28 +1946,28 @@ function Gt(e) {
|
|
|
1940
1946
|
cells: s
|
|
1941
1947
|
};
|
|
1942
1948
|
}
|
|
1943
|
-
function
|
|
1949
|
+
function qt(e) {
|
|
1944
1950
|
let { data: t } = e;
|
|
1945
1951
|
return typeof t.text == "string" ? t.text : Array.isArray(t.items) ? t.items.filter((e) => typeof e == "string").join(" ") : "";
|
|
1946
1952
|
}
|
|
1947
|
-
function
|
|
1953
|
+
function Jt(e) {
|
|
1948
1954
|
var t;
|
|
1949
1955
|
let n = document.createElement("div");
|
|
1950
1956
|
return n.innerHTML = e, (t = n.textContent) == null ? "" : t;
|
|
1951
1957
|
}
|
|
1952
|
-
function Jt(e) {
|
|
1953
|
-
return qt(Kt(e));
|
|
1954
|
-
}
|
|
1955
1958
|
function Yt(e) {
|
|
1956
|
-
return
|
|
1957
|
-
|
|
1959
|
+
return Jt(qt(e));
|
|
1960
|
+
}
|
|
1961
|
+
function Xt(e) {
|
|
1962
|
+
return `<table ${B}='${JSON.stringify(e).replace(/'/g, "'")}'>${e.cells.map((e) => `<tr>${e.map((e) => {
|
|
1963
|
+
let t = e.blocks.map(qt).join(" "), n = [e.color ? `background-color: ${e.color}` : "", e.textColor ? `color: ${e.textColor}` : ""].filter(Boolean).join("; ");
|
|
1958
1964
|
return `<td${n ? ` style="${n}"` : ""}>${t}</td>`;
|
|
1959
1965
|
}).join("")}</tr>`).join("")}</table>`;
|
|
1960
1966
|
}
|
|
1961
|
-
function
|
|
1962
|
-
return e.cells.map((e) => e.map((e) => e.blocks.map(
|
|
1967
|
+
function Zt(e) {
|
|
1968
|
+
return e.cells.map((e) => e.map((e) => e.blocks.map(Yt).join(" ")).join(" ")).join("\n");
|
|
1963
1969
|
}
|
|
1964
|
-
var
|
|
1970
|
+
var Qt = new Set(["color", "background-color"]), $t = {
|
|
1965
1971
|
b: !0,
|
|
1966
1972
|
strong: !0,
|
|
1967
1973
|
i: !0,
|
|
@@ -1974,40 +1980,40 @@ var Zt = new Set(["color", "background-color"]), Qt = {
|
|
|
1974
1980
|
},
|
|
1975
1981
|
mark: (e) => {
|
|
1976
1982
|
let t = e.style, n = Array.from({ length: t.length }, (e, n) => t.item(n));
|
|
1977
|
-
for (let e of n)
|
|
1983
|
+
for (let e of n) Qt.has(e) || t.removeProperty(e);
|
|
1978
1984
|
return t.length > 0 ? { style: !0 } : {};
|
|
1979
1985
|
}
|
|
1980
1986
|
};
|
|
1981
|
-
function
|
|
1987
|
+
function V(e) {
|
|
1982
1988
|
let t = e.replace(/\s/g, "");
|
|
1983
1989
|
return t === "rgb(0,0,0)" || t === "#000000";
|
|
1984
1990
|
}
|
|
1985
|
-
function
|
|
1991
|
+
function en(e) {
|
|
1986
1992
|
let t = e.cloneNode(!0);
|
|
1987
1993
|
for (let e of Array.from(t.querySelectorAll("span"))) {
|
|
1988
1994
|
var n, r, i;
|
|
1989
|
-
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 && !
|
|
1995
|
+
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 && !V(l), f = u !== void 0 && u !== "transparent";
|
|
1990
1996
|
if (!a && !o && !d && !f) continue;
|
|
1991
|
-
let p = d ?
|
|
1997
|
+
let p = d ? z(l, "text") : "", m = f ? z(u, "bg") : "", h = [d ? `color: ${p}` : "", Gt(f, d, m)].filter(Boolean).join("; "), g = e.innerHTML, _ = h ? `<mark style="${h};">${g}</mark>` : g, v = o ? `<i>${_}</i>` : _, y = a ? `<b>${v}</b>` : v;
|
|
1992
1998
|
e.replaceWith(document.createRange().createContextualFragment(y));
|
|
1993
1999
|
}
|
|
1994
2000
|
for (let e of Array.from(t.querySelectorAll("a[style]"))) {
|
|
1995
2001
|
var a, o, s;
|
|
1996
|
-
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 && !
|
|
2002
|
+
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 && !V(i) && i !== "inherit", u = c !== void 0 && c !== "transparent" && c !== "inherit";
|
|
1997
2003
|
if (!l && !u) continue;
|
|
1998
|
-
let d = l ?
|
|
2004
|
+
let d = l ? z(i, "text") : "", f = u ? z(c, "bg") : "", p = [l ? `color: ${d}` : "", Gt(u, l, f)].filter(Boolean).join("; "), m = e;
|
|
1999
2005
|
m.innerHTML = `<mark style="${p};">${m.innerHTML}</mark>`, m.style.removeProperty("color"), m.style.removeProperty("background-color");
|
|
2000
2006
|
}
|
|
2001
2007
|
for (let e of Array.from(t.querySelectorAll("p"))) {
|
|
2002
2008
|
let t = document.createRange().createContextualFragment(e.innerHTML + "<br>");
|
|
2003
2009
|
e.replaceWith(t);
|
|
2004
2010
|
}
|
|
2005
|
-
return
|
|
2011
|
+
return N(t.innerHTML, $t).replace(/(<br\s*\/?>|\s)+$/i, "").trim();
|
|
2006
2012
|
}
|
|
2007
|
-
function
|
|
2013
|
+
function tn(e) {
|
|
2008
2014
|
if (!e) return null;
|
|
2009
2015
|
let t = new DOMParser().parseFromString(e, "text/html").querySelector("table");
|
|
2010
|
-
if (!t || t.hasAttribute(
|
|
2016
|
+
if (!t || t.hasAttribute(B)) return null;
|
|
2011
2017
|
let n = t.querySelectorAll("tr");
|
|
2012
2018
|
if (n.length === 0) return null;
|
|
2013
2019
|
let r = [];
|
|
@@ -2015,16 +2021,16 @@ function en(e) {
|
|
|
2015
2021
|
let t = e.querySelectorAll("td, th"), n = [];
|
|
2016
2022
|
t.forEach((e) => {
|
|
2017
2023
|
var t;
|
|
2018
|
-
let r =
|
|
2024
|
+
let r = en(e).split(/<br\s*\/?>/i).map((e) => e.trim()).filter(Boolean), i = { blocks: r.length > 0 ? r.map((e) => ({
|
|
2019
2025
|
tool: "paragraph",
|
|
2020
2026
|
data: { text: e }
|
|
2021
2027
|
})) : [{
|
|
2022
2028
|
tool: "paragraph",
|
|
2023
2029
|
data: { text: "" }
|
|
2024
2030
|
}] }, a = (t = e.getAttribute("style")) == null ? "" : t, o = /background-color\s*:\s*([^;]+)/i.exec(a);
|
|
2025
|
-
o != null && o[1] && (i.color =
|
|
2031
|
+
o != null && o[1] && (i.color = z(o[1].trim(), "bg"));
|
|
2026
2032
|
let s = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(a);
|
|
2027
|
-
s != null && s[1] && !
|
|
2033
|
+
s != null && s[1] && !V(s[1].trim()) && (i.textColor = z(s[1].trim(), "text")), n.push(i);
|
|
2028
2034
|
}), r.push(n);
|
|
2029
2035
|
});
|
|
2030
2036
|
let i = Math.max(0, ...r.map((e) => e.length));
|
|
@@ -2039,8 +2045,8 @@ function en(e) {
|
|
|
2039
2045
|
cells: r
|
|
2040
2046
|
};
|
|
2041
2047
|
}
|
|
2042
|
-
function
|
|
2043
|
-
let t = RegExp(`${
|
|
2048
|
+
function nn(e) {
|
|
2049
|
+
let t = RegExp(`${B}='([^']*)'|${B}="([^"]*)"`, "s").exec(e);
|
|
2044
2050
|
if (!t) return null;
|
|
2045
2051
|
try {
|
|
2046
2052
|
var n;
|
|
@@ -2054,24 +2060,100 @@ function tn(e) {
|
|
|
2054
2060
|
}
|
|
2055
2061
|
//#endregion
|
|
2056
2062
|
//#region src/components/icons/index.ts
|
|
2057
|
-
var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m4.5 10.5 4 4 7-8\" 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 2 Q10 10 18 10 Q10 10 10 18 Q10 10 2 10 Q10 10 10 2Z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n</svg>\n", an = "\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", on = "\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", 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=\"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", cn = "\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", ln = "\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", un = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5.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", dn = "\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", fn = "\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", pn = "\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", 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.5 10h11M10 4.5v11\" 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=\"m6 8 4 4 4-4\" 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=\"m12 5-5 5 5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", _n = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m8 5 5 5-5 5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", vn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"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", yn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"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", bn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 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", 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.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", 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=\"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", 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 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", 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.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", 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=\"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", En = "\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", 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 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", 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=\"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", kn = "\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", 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=\"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", jn = "\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", 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.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", Nn = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\"/>\n <circle cx=\"12\" cy=\"12\" r=\"3\"/>\n</svg>\n", 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 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", Fn = "\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", 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 16l-3-3m3 3l3-3M10 16V9M5 4h10\" 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=\"M4 10l3-3M4 10l3 3M4 10h7M16 5v10\" 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=\"M16 10l-3-3m3 3l-3 3M16 10H9M4 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 <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", Bn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.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", Vn = "\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", 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 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", 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 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", Wn = "\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", Gn = "\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", Kn = "\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", qn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 4v12\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\"/>\n <path d=\"M9 6h7\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M9 10h7\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M9 14h5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Jn = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\"/><line x1=\"9\" y1=\"10\" x2=\"15\" y2=\"10\"/><line x1=\"12\" y1=\"7\" x2=\"12\" y2=\"13\"/></svg>", Yn = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\n <rect x=\"2.5\" y=\"3\" width=\"12\" height=\"6\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M14.5 6H16a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1h-6a1 1 0 0 0-1 1V14\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <rect x=\"8\" y=\"14\" width=\"3\" height=\"3.5\" rx=\"0.75\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>", Xn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 10h12\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Zn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m7 6-4 4 4 4m6-8 4 4-4 4\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", Qn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m6 7-3 3 3 3m8-6 3 3-3 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"m12 5-4 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", $n = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 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", 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 <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", tr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 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", nr = "\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", rr = "\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", ir = "\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", ar = "\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", or = "\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", sr = "\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", cr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-dasharray=\"1.5 2\"/>\n <path d=\"M5.5 7 8.5 10 5.5 13\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M14.5 7 11.5 10 14.5 13\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", lr = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\"/><path d=\"M12 3v18\"/><path d=\"M8 8l4 4-4 4\"/><path d=\"M16 8l-4 4 4 4\"/></svg>", ur = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4\" width=\"6\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <rect x=\"11\" y=\"4\" width=\"6\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", dr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"6\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"6\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"6\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n</svg>\n", U = {
|
|
2063
|
+
var 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.5 10.5 4 4 7-8\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"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 d=\"M10 2 Q10 10 18 10 Q10 10 10 18 Q10 10 2 10 Q10 10 10 2Z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linejoin=\"round\"/>\n</svg>\n", on = "\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", sn = "\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", 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=\"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", ln = "\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", un = "\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", dn = "\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", 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 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", pn = "\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", mn = "\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", 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 10h11M10 4.5v11\" 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=\"m6 8 4 4 4-4\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", _n = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m12 5-5 5 5 5\" 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=\"m8 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 <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", bn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 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", 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 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", 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.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", 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=\"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", 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 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", Tn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3.33334 10H10m-6.66666 5V5M10 15V5m4.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", 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=\"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", Dn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 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", On = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M3 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", 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=\"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", An = "\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", 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=\"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", Mn = "\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", Nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.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", Pn = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\"/>\n <circle cx=\"12\" cy=\"12\" r=\"3\"/>\n</svg>\n", 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=\"M12.5 5.5l2 2M4.5 13.5l8-8 2 2-8 8H4.5v-2z\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", 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 <circle cx=\"5\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"15\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n</svg>\n", 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 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", 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 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", Kn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M2.5 10h5M2.5 15V5M7.5 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", qn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6\" 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", Jn = "\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", Yn = "\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", Xn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 4v12\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\"/>\n <path d=\"M9 6h7\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M9 10h7\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M9 14h5\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", Zn = "<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>", Qn = "<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>", $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 10h12\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", er = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m7 6-4 4 4 4m6-8 4 4-4 4\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", tr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m6 7-3 3 3 3m8-6 3 3-3 3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"m12 5-4 10\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", nr = "\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", rr = "\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", ir = "\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", ar = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5 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", or = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"10\" cy=\"10\" r=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <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", sr = "\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", cr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8 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", lr = "\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", ur = "\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", dr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <ellipse cx=\"10\" cy=\"5.5\" rx=\"6\" ry=\"2.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M4 5.5v4c0 1.38 2.69 2.5 6 2.5s6-1.12 6-2.5v-4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M4 9.5v4c0 1.38 2.69 2.5 6 2.5s6-1.12 6-2.5v-4\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", fr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M7.5 4v12M12.5 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <rect x=\"4.5\" y=\"6\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n <rect x=\"4.5\" y=\"9\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n <rect x=\"9\" y=\"6\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n <rect x=\"14\" y=\"6\" width=\"1.5\" height=\"2\" rx=\"0.5\" fill=\"currentColor\"/>\n</svg>\n", pr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"4.5\" cy=\"6.5\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4.5\" cy=\"10\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"4.5\" cy=\"13.5\" r=\"1\" fill=\"currentColor\"/>\n <path d=\"M7.5 6.5h9M7.5 10h9M7.5 13.5h9\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n</svg>\n", mr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4.5\" width=\"14\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <path d=\"M3 8.5h14\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <path d=\"M7 3v3M13 3v3\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\"/>\n <circle cx=\"7\" cy=\"12\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"12\" r=\"1\" fill=\"currentColor\"/>\n <circle cx=\"13\" cy=\"12\" r=\"1\" fill=\"currentColor\"/>\n</svg>\n", hr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 4v12\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-dasharray=\"1.5 2\"/>\n <path d=\"M5.5 7 8.5 10 5.5 13\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M14.5 7 11.5 10 14.5 13\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", gr = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\"/><path d=\"M12 3v18\"/><path d=\"M8 8l4 4-4 4\"/><path d=\"M16 8l-4 4 4 4\"/></svg>", _r = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"3\" y=\"4\" width=\"6\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n <rect x=\"11\" y=\"4\" width=\"6\" height=\"12\" rx=\"1.5\" stroke=\"currentColor\" stroke-width=\"1.25\"/>\n</svg>\n", vr = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"6\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"6\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"6\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"10\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"6\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"10\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n <circle cx=\"14\" cy=\"14\" r=\"1.25\" fill=\"currentColor\"/>\n</svg>\n", yr = {
|
|
2064
|
+
"⌘": "⌘",
|
|
2065
|
+
"⇧": "⇧",
|
|
2066
|
+
"⌥": "⌥",
|
|
2067
|
+
"⌃": "⌃",
|
|
2068
|
+
"⌫": "⌫",
|
|
2069
|
+
"⏎": "⏎",
|
|
2070
|
+
"⎋": "⎋",
|
|
2071
|
+
"␡": "⌦",
|
|
2072
|
+
"↑": "↑",
|
|
2073
|
+
"↓": "↓",
|
|
2074
|
+
"←": "←",
|
|
2075
|
+
"→": "→",
|
|
2076
|
+
ctrl: "⌃",
|
|
2077
|
+
alt: "⌥",
|
|
2078
|
+
shift: "⇧",
|
|
2079
|
+
enter: "↵",
|
|
2080
|
+
backspace: "⌫",
|
|
2081
|
+
escape: "⎋",
|
|
2082
|
+
esc: "⎋",
|
|
2083
|
+
delete: "⌦",
|
|
2084
|
+
del: "Del",
|
|
2085
|
+
tab: "⇥",
|
|
2086
|
+
ins: "Ins",
|
|
2087
|
+
win: "⊞"
|
|
2088
|
+
};
|
|
2089
|
+
function br(e) {
|
|
2090
|
+
var t, n;
|
|
2091
|
+
let r = e.trim();
|
|
2092
|
+
return (t = (n = yr[r.toLowerCase()]) == null ? yr[r] : n) == null ? r : t;
|
|
2093
|
+
}
|
|
2094
|
+
function xr(e) {
|
|
2095
|
+
let t = /([⌘⇧⌥⌃⌫⏎⎋⌦↑↓←→↵⇥])|([^⌘⇧⌥⌃⌫⏎⎋⌦↑↓←→↵⇥]+)/gu, n = [];
|
|
2096
|
+
for (let r of e.matchAll(t)) {
|
|
2097
|
+
let e = r[0].trim();
|
|
2098
|
+
e && n.push(e);
|
|
2099
|
+
}
|
|
2100
|
+
return n;
|
|
2101
|
+
}
|
|
2102
|
+
function Sr(e) {
|
|
2103
|
+
let t = e.length === 1, n = t ? 13 : 11, r = t ? 13 : 7.5, i = Math.ceil(e.length * r);
|
|
2104
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="${i}" height="16" viewBox="0 0 ${i} 16" style="display:inline-block;vertical-align:middle;flex-shrink:0" aria-hidden="true"><text x="${i / 2}" y="9" text-anchor="middle" dominant-baseline="middle" font-family="-apple-system,BlinkMacSystemFont,'SF Pro Text','Helvetica Neue',sans-serif" font-size="${n}" font-weight="400" fill="currentColor">${e}</text></svg>`;
|
|
2105
|
+
}
|
|
2106
|
+
function H(e) {
|
|
2107
|
+
let t = e.split(" + ").flatMap(xr);
|
|
2108
|
+
return t.length === 0 ? e : `<span style="display:inline-flex;align-items:center;line-height:1">${t.map((e) => Sr(br(e))).join("")}</span>`;
|
|
2109
|
+
}
|
|
2110
|
+
var Cr = {
|
|
2111
|
+
"⌘": "Command",
|
|
2112
|
+
"⇧": "Shift",
|
|
2113
|
+
"⌥": "Option",
|
|
2114
|
+
"⌃": "Control",
|
|
2115
|
+
"⌫": "Backspace",
|
|
2116
|
+
"⌦": "Delete",
|
|
2117
|
+
"⏎": "Return",
|
|
2118
|
+
"↵": "Return",
|
|
2119
|
+
"⎋": "Escape",
|
|
2120
|
+
"⇥": "Tab",
|
|
2121
|
+
"↑": "Up",
|
|
2122
|
+
"↓": "Down",
|
|
2123
|
+
"←": "Left",
|
|
2124
|
+
"→": "Right",
|
|
2125
|
+
del: "Delete",
|
|
2126
|
+
ins: "Insert",
|
|
2127
|
+
"⊞": "Win"
|
|
2128
|
+
};
|
|
2129
|
+
function wr(e) {
|
|
2130
|
+
let t = e.split(" + ").flatMap(xr);
|
|
2131
|
+
return t.length === 0 ? e : t.map((e) => {
|
|
2132
|
+
var t, n;
|
|
2133
|
+
let r = e.trim(), i = r.toLowerCase();
|
|
2134
|
+
return (t = (n = Cr[r]) == null ? Cr[i] : n) == null ? r.toUpperCase() : t;
|
|
2135
|
+
}).join("+");
|
|
2136
|
+
}
|
|
2137
|
+
//#endregion
|
|
2138
|
+
//#region src/components/utils/popover/components/hint/hint.const.ts
|
|
2139
|
+
var U = {
|
|
2058
2140
|
root: "",
|
|
2059
2141
|
alignedStart: "text-start",
|
|
2060
2142
|
alignedCenter: "text-center",
|
|
2061
2143
|
title: "",
|
|
2062
2144
|
description: "opacity-60 mt-[3px]"
|
|
2063
|
-
},
|
|
2145
|
+
}, Tr = class {
|
|
2064
2146
|
constructor(e) {
|
|
2065
2147
|
let t = e.alignment === "center" ? "center" : "start";
|
|
2066
2148
|
this.nodes = {
|
|
2067
|
-
root:
|
|
2068
|
-
title:
|
|
2069
|
-
}, this.nodes.root.setAttribute("data-alignment", t), this.nodes.root.appendChild(this.nodes.title), e.description !== void 0 && (this.nodes.description =
|
|
2149
|
+
root: T.make("div", [U.root, t === "center" ? U.alignedCenter : U.alignedStart]),
|
|
2150
|
+
title: T.make("div", U.title, { textContent: e.title })
|
|
2151
|
+
}, this.nodes.root.setAttribute("data-alignment", t), this.nodes.root.appendChild(this.nodes.title), e.description !== void 0 && (this.nodes.description = T.make("div", U.description), this.nodes.description.innerHTML = H(e.description), this.nodes.root.appendChild(this.nodes.description));
|
|
2070
2152
|
}
|
|
2071
2153
|
getElement() {
|
|
2072
2154
|
return this.nodes.root;
|
|
2073
2155
|
}
|
|
2074
|
-
},
|
|
2156
|
+
}, Er = class {
|
|
2075
2157
|
constructor(e) {
|
|
2076
2158
|
this.params = e;
|
|
2077
2159
|
}
|
|
@@ -2079,7 +2161,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2079
2161
|
if (this.params !== void 0 && "name" in this.params) return this.params.name;
|
|
2080
2162
|
}
|
|
2081
2163
|
destroy() {
|
|
2082
|
-
|
|
2164
|
+
Ot();
|
|
2083
2165
|
}
|
|
2084
2166
|
onChildrenOpen() {
|
|
2085
2167
|
var e;
|
|
@@ -2094,7 +2176,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2094
2176
|
this.params !== void 0 && "onActivate" in this.params && ((e = (t = this.params).onActivate) == null || e.call(t, this.params));
|
|
2095
2177
|
}
|
|
2096
2178
|
addHint(e, t) {
|
|
2097
|
-
|
|
2179
|
+
kt(e, new Tr(t).getElement(), { placement: t.position });
|
|
2098
2180
|
}
|
|
2099
2181
|
getMountElement() {
|
|
2100
2182
|
return this.getElement();
|
|
@@ -2141,10 +2223,10 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2141
2223
|
itemDisabled: "cursor-default pointer-events-none text-text-secondary",
|
|
2142
2224
|
icon: "flex items-center justify-center w-7 h-7 shrink-0 rounded-lg bg-popover-icon-bg [&_svg]:w-icon [&_svg]:h-icon",
|
|
2143
2225
|
focused: "is-focused"
|
|
2144
|
-
},
|
|
2226
|
+
}, Dr = {
|
|
2145
2227
|
item: "rounded-lg p-1",
|
|
2146
2228
|
itemIconOnly: "aspect-square justify-center"
|
|
2147
|
-
},
|
|
2229
|
+
}, Or = { item: "rounded p-[3px] mobile:p-1" }, G = class extends Er {
|
|
2148
2230
|
get isDisabled() {
|
|
2149
2231
|
return this.params.isDisabled === !0;
|
|
2150
2232
|
}
|
|
@@ -2226,7 +2308,10 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2226
2308
|
}
|
|
2227
2309
|
if (t.secondaryLabel) {
|
|
2228
2310
|
let n = document.createElement("div");
|
|
2229
|
-
n.className = "ml-auto shrink-0 flex items-center whitespace-nowrap pl-20
|
|
2311
|
+
if (n.className = "ml-auto shrink-0 inline-flex items-center whitespace-nowrap pl-20 leading-none text-text-secondary/60", n.setAttribute(a.popoverItemSecondaryTitle, ""), n.setAttribute("data-blok-testid", "popover-item-secondary-title"), n.innerHTML = H(t.secondaryLabel), e.appendChild(n), this.nodes.secondaryLabelEl = n, t.title !== void 0) {
|
|
2312
|
+
var d;
|
|
2313
|
+
kt((d = n.firstElementChild) == null ? n : d, wr(t.secondaryLabel), { placement: "top" });
|
|
2314
|
+
}
|
|
2230
2315
|
}
|
|
2231
2316
|
if (t.trailingIcon) {
|
|
2232
2317
|
let n = document.createElement("div");
|
|
@@ -2234,7 +2319,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2234
2319
|
}
|
|
2235
2320
|
if (this.hasChildren && !this.isChevronHidden) {
|
|
2236
2321
|
let t = document.createElement("div");
|
|
2237
|
-
t.className = this.getChevronClass(c), t.setAttribute(a.popoverItemIcon, ""), t.setAttribute(a.popoverItemIconChevronRight, ""), t.setAttribute("data-blok-testid", "popover-item-chevron-right"), t.innerHTML =
|
|
2322
|
+
t.className = this.getChevronClass(c), t.setAttribute(a.popoverItemIcon, ""), t.setAttribute(a.popoverItemIconChevronRight, ""), t.setAttribute("data-blok-testid", "popover-item-chevron-right"), t.innerHTML = vn, e.appendChild(t), this.nodes.chevron = t;
|
|
2238
2323
|
}
|
|
2239
2324
|
}
|
|
2240
2325
|
createIconElement(e, t, n, r) {
|
|
@@ -2244,7 +2329,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2244
2329
|
getContainerClass() {
|
|
2245
2330
|
var e, t, n, i;
|
|
2246
2331
|
let a = (e = (t = this.renderParams) == null ? void 0 : t.isInline) == null ? !1 : e, o = (n = (i = this.renderParams) == null ? void 0 : i.isNestedInline) == null ? !1 : n;
|
|
2247
|
-
return r(W.item, !a && !o && "pl-2 pr-3", a &&
|
|
2332
|
+
return r(W.item, !a && !o && "pl-2 pr-3", a && Dr.item, a && this.params.icon && Dr.itemIconOnly, o && Or.item, this.params.isDisabled && W.itemDisabled);
|
|
2248
2333
|
}
|
|
2249
2334
|
getIconClass(e, t, n) {
|
|
2250
2335
|
return r(W.icon, t && "w-auto h-auto bg-transparent [&_svg]:w-icon [&_svg]:h-icon mobile:[&_svg]:w-icon-mobile mobile:[&_svg]:h-icon-mobile", n && "w-toolbox-btn h-toolbox-btn", e && "mr-3", e && t && "shadow-none mr-0!", e && n && "mr-2!");
|
|
@@ -2294,8 +2379,9 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2294
2379
|
!this.nodes.titleEl || this.params.title === void 0 || (this.nodes.titleEl.textContent = this.params.title);
|
|
2295
2380
|
}
|
|
2296
2381
|
restoreOriginalSecondaryLabel() {
|
|
2297
|
-
|
|
2298
|
-
|
|
2382
|
+
if (!this.nodes.secondaryLabelEl) return;
|
|
2383
|
+
let e = this.params.secondaryLabel;
|
|
2384
|
+
this.nodes.secondaryLabelEl.innerHTML = e ? H(e) : "", this.nodes.secondaryLabelEl.style.display = e ? "" : "none";
|
|
2299
2385
|
}
|
|
2300
2386
|
updateIcon(e) {
|
|
2301
2387
|
!this.nodes.icon || !e || (this.nodes.icon.innerHTML = e);
|
|
@@ -2304,7 +2390,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2304
2390
|
!this.nodes.titleEl || e.title === void 0 || (this.nodes.titleEl.textContent = e.title);
|
|
2305
2391
|
}
|
|
2306
2392
|
updateSecondaryLabel(e) {
|
|
2307
|
-
this.nodes.secondaryLabelEl && (this.nodes.secondaryLabelEl.
|
|
2393
|
+
this.nodes.secondaryLabelEl && (this.nodes.secondaryLabelEl.innerHTML = e ? H(e) : "", this.nodes.secondaryLabelEl.style.display = e ? "" : "none");
|
|
2308
2394
|
}
|
|
2309
2395
|
disableConfirmationMode() {
|
|
2310
2396
|
this.nodes.root !== null && (this.setConfirmation(null), this.confirmationState = null, this.disableSpecialHoverAndFocusBehavior());
|
|
@@ -2336,7 +2422,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2336
2422
|
line: "h-full w-px",
|
|
2337
2423
|
nestedContainer: "py-1 px-[3px]",
|
|
2338
2424
|
nestedLine: "w-full h-px"
|
|
2339
|
-
},
|
|
2425
|
+
}, kr = class extends Er {
|
|
2340
2426
|
constructor(e) {
|
|
2341
2427
|
var t, n;
|
|
2342
2428
|
super(), this.nodes = {
|
|
@@ -2365,10 +2451,10 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2365
2451
|
let t = document.createElement("div");
|
|
2366
2452
|
return t.className = this.getLineClass(), t.setAttribute(a.popoverItemSeparatorLine, ""), e.appendChild(t), this.nodes.line = t, e;
|
|
2367
2453
|
}
|
|
2368
|
-
},
|
|
2454
|
+
}, Ar = {
|
|
2369
2455
|
root: "",
|
|
2370
2456
|
rootHidden: "hidden"
|
|
2371
|
-
},
|
|
2457
|
+
}, jr = { root: "flex items-center" }, J = class extends Er {
|
|
2372
2458
|
constructor(e, t) {
|
|
2373
2459
|
var n;
|
|
2374
2460
|
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);
|
|
@@ -2381,16 +2467,16 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2381
2467
|
}
|
|
2382
2468
|
getControls() {
|
|
2383
2469
|
if (!this.nodes.root) return [];
|
|
2384
|
-
let e = this.nodes.root.querySelectorAll(`button, ${
|
|
2470
|
+
let e = this.nodes.root.querySelectorAll(`button, ${T.allInputsSelector}`);
|
|
2385
2471
|
return Array.from(e);
|
|
2386
2472
|
}
|
|
2387
2473
|
updateRootClasses() {
|
|
2388
|
-
this.nodes.root && (this.nodes.root.className = r(
|
|
2474
|
+
this.nodes.root && (this.nodes.root.className = r(Ar.root, this.isInline && jr.root, this.isHidden && Ar.rootHidden));
|
|
2389
2475
|
}
|
|
2390
2476
|
createRootElement(e, t) {
|
|
2391
2477
|
var i;
|
|
2392
2478
|
let o = document.createElement("div");
|
|
2393
|
-
if (o.className = r(
|
|
2479
|
+
if (o.className = r(Ar.root, this.isInline && jr.root), o.setAttribute(a.popoverItemHtml, ""), o.setAttribute("data-blok-testid", "popover-item-html"), e.name && o.setAttribute("data-blok-item-name", e.name), o.appendChild(e.element), e.hint !== void 0 && (t == null || (i = t.hint) == null ? void 0 : i.enabled) !== !1) {
|
|
2394
2480
|
var s, c;
|
|
2395
2481
|
this.addHint(o, n(n({}, e.hint), {}, {
|
|
2396
2482
|
position: (t == null || (s = t.hint) == null ? void 0 : s.position) || "right",
|
|
@@ -2399,11 +2485,11 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2399
2485
|
}
|
|
2400
2486
|
return o;
|
|
2401
2487
|
}
|
|
2402
|
-
},
|
|
2488
|
+
}, Mr = {
|
|
2403
2489
|
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)]",
|
|
2404
2490
|
icon: "w-toolbox-btn h-toolbox-btn flex items-center justify-center mr-2 [&_svg]:w-icon [&_svg]:h-icon [&_svg]:text-gray-text",
|
|
2405
2491
|
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"
|
|
2406
|
-
},
|
|
2492
|
+
}, Nr = (e, t) => {
|
|
2407
2493
|
if (e.length === 0) return t.length;
|
|
2408
2494
|
if (t.length === 0) return e.length;
|
|
2409
2495
|
let n = Array.from({ length: t.length + 1 }, (e, t) => t), r = Array(t.length + 1);
|
|
@@ -2416,18 +2502,18 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2416
2502
|
n.splice(0, n.length, ...r);
|
|
2417
2503
|
}
|
|
2418
2504
|
return n[t.length];
|
|
2419
|
-
},
|
|
2505
|
+
}, Pr = (e, t) => [...e].reduce((e, n) => e < t.length && n === t[e] ? e + 1 : e, 0) === t.length, Fr = (e, t) => [...e].reduce((n, r, i) => {
|
|
2420
2506
|
let a = i === 0 || e[i - 1] === " " || e[i - 1] === "-" || e[i - 1] === "_";
|
|
2421
2507
|
return n < t.length && a && r === t[n] ? n + 1 : n;
|
|
2422
|
-
}, 0) === t.length,
|
|
2508
|
+
}, 0) === t.length, Ir = (e, t) => {
|
|
2423
2509
|
if (e === t) return 100;
|
|
2424
2510
|
if (e.startsWith(t)) return 90;
|
|
2425
2511
|
if (e.includes(t)) return 75;
|
|
2426
|
-
if (t.length >= 2 &&
|
|
2427
|
-
if (t.length >= 2 &&
|
|
2512
|
+
if (t.length >= 2 && Fr(e, t)) return 55;
|
|
2513
|
+
if (t.length >= 2 && Pr(e, t)) return 35;
|
|
2428
2514
|
if (t.length >= 3) {
|
|
2429
2515
|
let n = Math.floor(t.length / 3);
|
|
2430
|
-
if (
|
|
2516
|
+
if (Nr(e, t) <= n) return 15;
|
|
2431
2517
|
}
|
|
2432
2518
|
return 0;
|
|
2433
2519
|
}, Y = (e, t) => {
|
|
@@ -2435,18 +2521,18 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2435
2521
|
let n = t.toLowerCase(), r = [];
|
|
2436
2522
|
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());
|
|
2437
2523
|
return r.reduce((e, t) => {
|
|
2438
|
-
let r =
|
|
2524
|
+
let r = Ir(t, n);
|
|
2439
2525
|
return r > e ? r : e;
|
|
2440
2526
|
}, 0);
|
|
2441
|
-
},
|
|
2527
|
+
}, Lr = /* @__PURE__ */ function(e) {
|
|
2442
2528
|
return e.Search = "search", e;
|
|
2443
|
-
}({}),
|
|
2529
|
+
}({}), Rr = class extends Re {
|
|
2444
2530
|
constructor({ items: e, placeholder: t }) {
|
|
2445
2531
|
super(), this.searchQuery = "", this.handleValueChange = () => {
|
|
2446
2532
|
this.applySearch(this.input.value);
|
|
2447
|
-
}, this.listeners = new
|
|
2448
|
-
let n =
|
|
2449
|
-
this.input =
|
|
2533
|
+
}, this.listeners = new Oe(), this.items = e, this.wrapper = T.make("div", Mr.wrapper), this.wrapper.setAttribute("data-blok-testid", "popover-search-field");
|
|
2534
|
+
let n = T.make("div", Mr.icon, { innerHTML: yn });
|
|
2535
|
+
this.input = T.make("input", Mr.input, {
|
|
2450
2536
|
type: "search",
|
|
2451
2537
|
placeholder: t,
|
|
2452
2538
|
tabIndex: -1
|
|
@@ -2469,7 +2555,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2469
2555
|
this.input.value = "";
|
|
2470
2556
|
}
|
|
2471
2557
|
applySearch(e) {
|
|
2472
|
-
this.searchQuery !== e && (this.searchQuery = e, this.emit(
|
|
2558
|
+
this.searchQuery !== e && (this.searchQuery = e, this.emit(Lr.Search, {
|
|
2473
2559
|
query: e,
|
|
2474
2560
|
items: this.foundItems
|
|
2475
2561
|
}));
|
|
@@ -2500,7 +2586,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2500
2586
|
score: Y(e, this.searchQuery)
|
|
2501
2587
|
})).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score).map(({ item: e }) => e);
|
|
2502
2588
|
}
|
|
2503
|
-
},
|
|
2589
|
+
}, zr, X = class e {
|
|
2504
2590
|
constructor() {
|
|
2505
2591
|
this.stack = [], this.boundPointerDown = null;
|
|
2506
2592
|
}
|
|
@@ -2552,7 +2638,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2552
2638
|
t !== -1 && this.stack.splice(t, 1);
|
|
2553
2639
|
}
|
|
2554
2640
|
};
|
|
2555
|
-
|
|
2641
|
+
zr = X, zr._instance = null;
|
|
2556
2642
|
//#endregion
|
|
2557
2643
|
//#region src/components/utils/popover/popover.const.ts
|
|
2558
2644
|
var Z = {
|
|
@@ -2560,23 +2646,24 @@ var Z = {
|
|
|
2560
2646
|
popoverContainerMobile: "fixed max-w-none rounded-[10px] min-w-[calc(100%-var(--offset)*2)] left-auto top-auto inset-[auto_var(--offset)_calc(var(--offset)+env(safe-area-inset-bottom))_var(--offset)]",
|
|
2561
2647
|
popoverContainerOpened: "opacity-100 pointer-events-auto p-1.5 max-h-(--max-height) border-none",
|
|
2562
2648
|
popoverOverlay: "hidden bg-dark",
|
|
2563
|
-
items: "overflow-y-auto overscroll-contain"
|
|
2564
|
-
|
|
2649
|
+
items: "overflow-y-auto overscroll-contain",
|
|
2650
|
+
scrollHaze: "absolute inset-x-0 h-6 pointer-events-none z-1 transition-opacity duration-300 ease-in-out"
|
|
2651
|
+
}, Br = {
|
|
2565
2652
|
popover: "relative",
|
|
2566
2653
|
popoverContainer: "flex-row top-0 min-w-max w-max p-1 mobile:absolute"
|
|
2567
|
-
},
|
|
2654
|
+
}, Vr = (e) => `level-${e}`, Q = /* @__PURE__ */ function(e) {
|
|
2568
2655
|
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;
|
|
2569
2656
|
}({}), $ = /* @__PURE__ */ function(e) {
|
|
2570
2657
|
return e.Closed = "closed", e.ClosedOnActivate = "closed-on-activate", e;
|
|
2571
|
-
}({}),
|
|
2658
|
+
}({}), Hr = class extends Re {
|
|
2572
2659
|
get itemsDefault() {
|
|
2573
2660
|
return this.items.filter((e) => e instanceof G);
|
|
2574
2661
|
}
|
|
2575
2662
|
constructor(e, t = {}) {
|
|
2576
|
-
super(), this.params = e, this.itemsRenderParams = t, this.listeners = new
|
|
2663
|
+
super(), this.params = e, this.itemsRenderParams = t, this.listeners = new Oe(), this.messages = {
|
|
2577
2664
|
nothingFound: "Nothing found",
|
|
2578
2665
|
search: "Search"
|
|
2579
|
-
}, this.permanentlyHiddenNames = /* @__PURE__ */ new Set(), this.items = this.buildItems(e.items), e.messages && (this.messages = n(n({}, this.messages), e.messages)), this.nodes = this.createPopoverDOM(), this.appendItemElements(), this.nodes.popoverContainer && this.listeners.on(this.nodes.popoverContainer, "click", (e) => this.handleClick(e));
|
|
2666
|
+
}, this.permanentlyHiddenNames = /* @__PURE__ */ new Set(), this.items = this.buildItems(e.items), e.messages && (this.messages = n(n({}, this.messages), e.messages)), this.nodes = this.createPopoverDOM(), this.appendItemElements(), this.nodes.popoverContainer && this.listeners.on(this.nodes.popoverContainer, "click", (e) => this.handleClick(e)), this.nodes.items && this.listeners.on(this.nodes.items, "scroll", () => this.updateScrollHazes());
|
|
2580
2667
|
}
|
|
2581
2668
|
getElement() {
|
|
2582
2669
|
return this.nodes.popover;
|
|
@@ -2590,12 +2677,12 @@ var Z = {
|
|
|
2590
2677
|
show() {
|
|
2591
2678
|
var e;
|
|
2592
2679
|
let t = this.nodes.popover;
|
|
2593
|
-
t !== null && !t.isConnected && document.body.appendChild(t), this.nodes.popover.setAttribute(a.popoverOpened, "true"), this.nodes.popoverContainer.className = r(this.nodes.popoverContainer.className, Z.popoverContainerOpened), this.itemsDefault.forEach((e) => this.refreshItemActiveState(e)), this.search !== void 0 && this.search.focus();
|
|
2680
|
+
t !== null && !t.isConnected && document.body.appendChild(t), this.nodes.popover.setAttribute(a.popoverOpened, "true"), this.nodes.popoverContainer.className = r(this.nodes.popoverContainer.className, Z.popoverContainerOpened), this.itemsDefault.forEach((e) => this.refreshItemActiveState(e)), this.search !== void 0 && this.search.focus(), this.updateScrollHazes();
|
|
2594
2681
|
let { trigger: n } = this.params;
|
|
2595
2682
|
((e = this.params.nestingLevel) == null ? 0 : e) === 0 && n !== void 0 && X.instance.register(this, n);
|
|
2596
2683
|
}
|
|
2597
2684
|
hide() {
|
|
2598
|
-
this.nodes.popover.removeAttribute(a.popoverOpened), this.nodes.popover.removeAttribute(a.popoverOpenTop), this.nodes.popover.removeAttribute(a.popoverOpenLeft), this.nodes.popoverContainer.className = Z.popoverContainer, this.itemsDefault.forEach((e) => e.reset()), this.search !== void 0 && this.search.clear(), X.instance.unregister(this), this.emit($.Closed);
|
|
2685
|
+
this.nodes.popover.removeAttribute(a.popoverOpened), this.nodes.popover.removeAttribute(a.popoverOpenTop), this.nodes.popover.removeAttribute(a.popoverOpenLeft), this.nodes.popoverContainer.className = Z.popoverContainer, this.itemsDefault.forEach((e) => e.reset()), this.nodes.scrollHazeTop.style.opacity = "0", this.nodes.scrollHazeBottom.style.opacity = "0", this.search !== void 0 && this.search.clear(), X.instance.unregister(this), this.emit($.Closed);
|
|
2599
2686
|
}
|
|
2600
2687
|
destroy() {
|
|
2601
2688
|
var e, t;
|
|
@@ -2615,10 +2702,10 @@ var Z = {
|
|
|
2615
2702
|
buildItems(e) {
|
|
2616
2703
|
return e.map((e) => {
|
|
2617
2704
|
switch (e.type) {
|
|
2618
|
-
case
|
|
2619
|
-
case
|
|
2620
|
-
case
|
|
2621
|
-
case void 0: return new G(e, this.itemsRenderParams[
|
|
2705
|
+
case M.Separator: return new kr(this.itemsRenderParams[M.Separator]);
|
|
2706
|
+
case M.Html: return new J(e, this.itemsRenderParams[M.Html]);
|
|
2707
|
+
case M.Default:
|
|
2708
|
+
case void 0: return new G(e, this.itemsRenderParams[M.Default]);
|
|
2622
2709
|
}
|
|
2623
2710
|
});
|
|
2624
2711
|
}
|
|
@@ -2667,6 +2754,10 @@ var Z = {
|
|
|
2667
2754
|
setOpenLeft(e) {
|
|
2668
2755
|
e ? this.nodes.popover.setAttribute(a.popoverOpenLeft, "true") : this.nodes.popover.removeAttribute(a.popoverOpenLeft);
|
|
2669
2756
|
}
|
|
2757
|
+
updateScrollHazes() {
|
|
2758
|
+
let { items: e, scrollHazeTop: t, scrollHazeBottom: n } = this.nodes, r = e.scrollHeight > e.clientHeight, i = e.scrollTop <= 0, a = e.scrollTop + e.clientHeight >= e.scrollHeight - 1;
|
|
2759
|
+
t.style.opacity = r && !i ? "1" : "0", n.style.opacity = r && !a ? "1" : "0", t.style.top = `${e.offsetTop}px`, n.style.top = `${e.offsetTop + e.clientHeight - n.offsetHeight}px`;
|
|
2760
|
+
}
|
|
2670
2761
|
hasNode(e) {
|
|
2671
2762
|
return this.nodes.popover.contains(e);
|
|
2672
2763
|
}
|
|
@@ -2679,11 +2770,17 @@ var Z = {
|
|
|
2679
2770
|
let o = document.createElement("div");
|
|
2680
2771
|
o.className = r("cursor-default text-[13px] leading-5 font-normal whitespace-nowrap overflow-hidden text-ellipsis text-gray-text px-3 py-4 text-center", "hidden"), o.setAttribute("data-blok-testid", "popover-nothing-found"), o.textContent = (t = this.messages.nothingFound) == null ? "Nothing found" : t;
|
|
2681
2772
|
let s = document.createElement("div");
|
|
2682
|
-
|
|
2773
|
+
s.className = Z.items, s.setAttribute(a.popoverItems, ""), s.setAttribute("data-blok-testid", "popover-items");
|
|
2774
|
+
let c = document.createElement("div");
|
|
2775
|
+
c.className = Z.scrollHaze, c.style.background = "linear-gradient(to bottom, var(--blok-popover-bg), transparent)", c.style.opacity = "0";
|
|
2776
|
+
let l = document.createElement("div");
|
|
2777
|
+
return l.className = Z.scrollHaze, l.style.background = "linear-gradient(to top, var(--blok-popover-bg), transparent)", l.style.opacity = "0", i.appendChild(o), i.appendChild(s), i.appendChild(c), i.appendChild(l), n.appendChild(i), {
|
|
2683
2778
|
popover: n,
|
|
2684
2779
|
popoverContainer: i,
|
|
2685
2780
|
nothingFoundMessage: o,
|
|
2686
|
-
items: s
|
|
2781
|
+
items: s,
|
|
2782
|
+
scrollHazeTop: c,
|
|
2783
|
+
scrollHazeBottom: l
|
|
2687
2784
|
};
|
|
2688
2785
|
}
|
|
2689
2786
|
appendItemElements() {
|
|
@@ -2696,22 +2793,22 @@ var Z = {
|
|
|
2696
2793
|
};
|
|
2697
2794
|
//#endregion
|
|
2698
2795
|
//#region src/components/utils/popover/popover-position.ts
|
|
2699
|
-
function
|
|
2700
|
-
return e <= t ? !1 : e <= n
|
|
2796
|
+
function Ur(e, t, n) {
|
|
2797
|
+
return e <= t ? !1 : e <= n;
|
|
2701
2798
|
}
|
|
2702
|
-
function
|
|
2799
|
+
function Wr(e) {
|
|
2703
2800
|
var t;
|
|
2704
|
-
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 =
|
|
2801
|
+
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 = Ur(r.height, d, f), m = p ? n.top - s - r.height + o.y : n.bottom + s + o.y, h = i.top + o.y, g = m < h ? h : m, _ = Math.min(a.width, i.right), v = Math.max(0, i.left), y = ((t = c == null ? void 0 : c.left) == null ? n.left : t) + o.x, ee = n.right + o.x, b = _ + o.x - y, te = ee - v - o.x, ne = Ur(r.width, b, te), re = ne ? Math.max(v + o.x, n.right - r.width + o.x) : y;
|
|
2705
2802
|
return {
|
|
2706
|
-
top:
|
|
2707
|
-
left:
|
|
2803
|
+
top: g,
|
|
2804
|
+
left: re + r.width > _ + o.x ? Math.max(v + o.x, _ + o.x - r.width) : re,
|
|
2708
2805
|
openTop: p,
|
|
2709
|
-
openLeft:
|
|
2806
|
+
openLeft: ne
|
|
2710
2807
|
};
|
|
2711
2808
|
}
|
|
2712
2809
|
//#endregion
|
|
2713
2810
|
//#region src/components/utils/popover/popover-desktop.ts
|
|
2714
|
-
var
|
|
2811
|
+
var Gr = class e extends Hr {
|
|
2715
2812
|
setLeftAlignElement(e) {
|
|
2716
2813
|
this.leftAlignElement = e;
|
|
2717
2814
|
}
|
|
@@ -2727,7 +2824,7 @@ var Mr = class e extends kr {
|
|
|
2727
2824
|
var t;
|
|
2728
2825
|
let n = e.query === "", r = e.topLevelItems, i = !n && e.promotedItems.length > 0 ? this.deduplicateAgainstPromoted(r, e.promotedItems) : r, o = i.length === 0 && e.promotedItems.length === 0;
|
|
2729
2826
|
this.items.forEach((e) => {
|
|
2730
|
-
let t = e instanceof G, r = e instanceof
|
|
2827
|
+
let t = e instanceof G, r = e instanceof kr || e instanceof J, a = t ? !i.includes(e) || e.name !== void 0 && this.isNamePermanentlyHidden(e.name) : r && (o || !n);
|
|
2731
2828
|
e.toggleHidden(a);
|
|
2732
2829
|
}), this._size = void 0, !n && i.length > 0 ? this.reorderItemsByRank(i) : n && this.originalItemOrder !== void 0 && this.restoreOriginalItemOrder();
|
|
2733
2830
|
for (let e of this.promotedSeparators) e.remove();
|
|
@@ -2757,7 +2854,7 @@ var Mr = class e extends kr {
|
|
|
2757
2854
|
this.promotedSeparators.push(n), (c = this.nodes.items) == null || c.appendChild(n), this.appendPromotedGroupElements(t);
|
|
2758
2855
|
}
|
|
2759
2856
|
}
|
|
2760
|
-
if (this.toggleNothingFoundMessage(o), this.trigger && this.nodes.popover.hasAttribute(a.popoverOpened)) {
|
|
2857
|
+
if (this.toggleNothingFoundMessage(o), this.updateScrollHazes(), this.trigger && this.nodes.popover.hasAttribute(a.popoverOpened)) {
|
|
2761
2858
|
let { top: e, left: t, openTop: n, openLeft: r } = this.calculatePosition();
|
|
2762
2859
|
this.nodes.popover.style.top = `${e}px`, this.nodes.popover.style.left = `${t}px`, this.setOpenTop(n), this.setOpenLeft(r);
|
|
2763
2860
|
}
|
|
@@ -2765,7 +2862,7 @@ var Mr = class e extends kr {
|
|
|
2765
2862
|
(t = this.flipper) != null && t.isActivated && (this.flipper.deactivate(), this.flipper.activate(d), d.length > 0 && this.flipper.focusItem(0, { skipNextTab: !0 }));
|
|
2766
2863
|
}, e.trigger && (this.trigger = e.trigger), e.leftAlignElement && (this.leftAlignElement = e.leftAlignElement), e.nestingLevel !== void 0 && (this.nestingLevel = e.nestingLevel), this.nestingLevel > 0 && this.nodes.popover.setAttribute(a.nested, "true"), e.scopeElement !== void 0 && (this.scopeElement = e.scopeElement), this.nodes.popoverContainer !== null && (this.listeners.on(this.nodes.popoverContainer, "mouseover", (e) => this.handleHover(e)), this.listeners.on(this.nodes.popoverContainer, "mouseleave", (e) => this.handleMouseLeave(e))), e.searchable && this.addSearch(), e.flippable === !1) return;
|
|
2767
2864
|
let r = e.flipper;
|
|
2768
|
-
r === void 0 ? this.flipper = new
|
|
2865
|
+
r === void 0 ? this.flipper = new Lt({
|
|
2769
2866
|
items: this.flippableElements,
|
|
2770
2867
|
focusedItemClass: W.focused,
|
|
2771
2868
|
allowedKeys: [
|
|
@@ -2805,7 +2902,7 @@ var Mr = class e extends kr {
|
|
|
2805
2902
|
this.nodes.popover.style.setProperty("--width", t + "px");
|
|
2806
2903
|
}
|
|
2807
2904
|
if (!this.trigger) {
|
|
2808
|
-
let { openTop: e, openLeft: t } =
|
|
2905
|
+
let { openTop: e, openLeft: t } = Wr({
|
|
2809
2906
|
anchor: this.nodes.popoverContainer.getBoundingClientRect(),
|
|
2810
2907
|
popoverSize: n,
|
|
2811
2908
|
scopeBounds: this.scopeElement.getBoundingClientRect(),
|
|
@@ -2842,7 +2939,7 @@ var Mr = class e extends kr {
|
|
|
2842
2939
|
calculatePosition() {
|
|
2843
2940
|
var e, t, n;
|
|
2844
2941
|
let r = (e = this.params.position) == null ? (t = this.trigger) == null ? void 0 : t.getBoundingClientRect() : e;
|
|
2845
|
-
return r ?
|
|
2942
|
+
return r ? Wr({
|
|
2846
2943
|
anchor: r,
|
|
2847
2944
|
popoverSize: this.size,
|
|
2848
2945
|
scopeBounds: this.scopeElement.getBoundingClientRect(),
|
|
@@ -2984,7 +3081,7 @@ var Mr = class e extends kr {
|
|
|
2984
3081
|
}
|
|
2985
3082
|
collectDefaultChildren(e, t, n) {
|
|
2986
3083
|
for (let r of e) {
|
|
2987
|
-
if (r.type !== void 0 && r.type !==
|
|
3084
|
+
if (r.type !== void 0 && r.type !== M.Default) continue;
|
|
2988
3085
|
let e = new G(r);
|
|
2989
3086
|
if (e.name !== void 0 && this.isNamePermanentlyHidden(e.name)) {
|
|
2990
3087
|
e.destroy();
|
|
@@ -3022,10 +3119,10 @@ var Mr = class e extends kr {
|
|
|
3022
3119
|
return e.filter((e) => !(e instanceof G) || e.title === void 0 ? !0 : !n.has(e.title.toLowerCase()));
|
|
3023
3120
|
}
|
|
3024
3121
|
addSearch() {
|
|
3025
|
-
this.search = new
|
|
3122
|
+
this.search = new Rr({
|
|
3026
3123
|
items: this.itemsDefault,
|
|
3027
3124
|
placeholder: this.messages.search
|
|
3028
|
-
}), this.search.on(
|
|
3125
|
+
}), this.search.on(Lr.Search, (e) => {
|
|
3029
3126
|
if (e.query === "") {
|
|
3030
3127
|
this.cleanupPromotedItems(), this.onSearch({
|
|
3031
3128
|
query: e.query,
|
|
@@ -3094,17 +3191,17 @@ var Mr = class e extends kr {
|
|
|
3094
3191
|
this.originalItemOrder = void 0;
|
|
3095
3192
|
}
|
|
3096
3193
|
}
|
|
3097
|
-
},
|
|
3098
|
-
let t =
|
|
3194
|
+
}, Kr = function(e) {
|
|
3195
|
+
let t = T.make("div");
|
|
3099
3196
|
return t.style.display = "flex", t.style.flexDirection = "column", t.style.gap = "4px", e.forEach((e) => {
|
|
3100
|
-
let n =
|
|
3197
|
+
let n = T.make("div"), r = e.indexOf(" ");
|
|
3101
3198
|
if (r > 0) {
|
|
3102
|
-
let t = e.substring(0, r), i = e.substring(r), a =
|
|
3199
|
+
let t = e.substring(0, r), i = e.substring(r), a = T.make("span", null, { textContent: t });
|
|
3103
3200
|
a.style.color = "white", n.appendChild(a), n.appendChild(document.createTextNode(i));
|
|
3104
3201
|
} else n.appendChild(document.createTextNode(e));
|
|
3105
3202
|
t.appendChild(n);
|
|
3106
3203
|
}), t;
|
|
3107
|
-
},
|
|
3204
|
+
}, qr, Jr = class {
|
|
3108
3205
|
constructor({ api: e }) {
|
|
3109
3206
|
this.i18nAPI = e.i18n, this.blocksAPI = e.blocks, this.selectionAPI = e.selection, this.toolsAPI = e.tools, this.caretAPI = e.caret, this.i18nInstance = {
|
|
3110
3207
|
t: (e, t) => this.i18nAPI.t(e),
|
|
@@ -3113,11 +3210,11 @@ var Mr = class e extends kr {
|
|
|
3113
3210
|
}
|
|
3114
3211
|
async render() {
|
|
3115
3212
|
var e = this;
|
|
3116
|
-
let t =
|
|
3213
|
+
let t = Xe.get();
|
|
3117
3214
|
if (t === null) return [];
|
|
3118
3215
|
let n = e.blocksAPI.getBlockByElement(t.anchorNode);
|
|
3119
3216
|
if (n === void 0) return [];
|
|
3120
|
-
let r = await
|
|
3217
|
+
let r = await Ne(n, e.toolsAPI.getBlockTools());
|
|
3121
3218
|
if (r.length === 0) return [];
|
|
3122
3219
|
let i = r.reduce((t, r) => {
|
|
3123
3220
|
var i;
|
|
@@ -3125,7 +3222,7 @@ var Mr = class e extends kr {
|
|
|
3125
3222
|
var a;
|
|
3126
3223
|
i.title !== void 0 && t.push({
|
|
3127
3224
|
icon: i.icon,
|
|
3128
|
-
title:
|
|
3225
|
+
title: ke(e.i18nInstance, i, r.name),
|
|
3129
3226
|
name: (a = i.name) == null ? r.name : a,
|
|
3130
3227
|
closeOnActivate: !0,
|
|
3131
3228
|
onActivate: async () => {
|
|
@@ -3134,7 +3231,7 @@ var Mr = class e extends kr {
|
|
|
3134
3231
|
}
|
|
3135
3232
|
});
|
|
3136
3233
|
}), t;
|
|
3137
|
-
}, []), a = await n.getActiveToolboxEntry(), o = a ?
|
|
3234
|
+
}, []), a = await n.getActiveToolboxEntry(), o = a ? ke(e.i18nInstance, a, n.name) : Ae(e.i18nInstance, n.name, de(n.name)), s = !se();
|
|
3138
3235
|
return {
|
|
3139
3236
|
name: "convert-to",
|
|
3140
3237
|
title: o,
|
|
@@ -3152,10 +3249,10 @@ var Mr = class e extends kr {
|
|
|
3152
3249
|
};
|
|
3153
3250
|
}
|
|
3154
3251
|
};
|
|
3155
|
-
|
|
3252
|
+
qr = Jr, qr.isInline = !0;
|
|
3156
3253
|
//#endregion
|
|
3157
3254
|
//#region src/tools/toggle/constants.ts
|
|
3158
|
-
var
|
|
3255
|
+
var Yr = "toggle", Xr = "tools.toggle.placeholder", Zr = "tools.toggle.bodyPlaceholder", Qr = "tools.toggle.ariaLabelCollapse", $r = "tools.toggle.ariaLabelExpand", ei = "outline-hidden py-[7px] mt-[2px] mb-px", ti = "outline-hidden pl-0.5 leading-[1.5] flex-1 min-w-0", ni = "flex items-center", ri = "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", ii = "<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>", ai = "hidden pl-7 pt-[8px] pb-[8px] text-gray-text leading-[1.5] cursor-pointer select-none", oi = "pl-7", si = {
|
|
3159
3256
|
toggleOpen: "data-blok-toggle-open",
|
|
3160
3257
|
toggleArrow: "data-blok-toggle-arrow",
|
|
3161
3258
|
toggleContent: "data-blok-toggle-content",
|
|
@@ -3163,4 +3260,4 @@ var Ir = "toggle", Lr = "tools.toggle.placeholder", Rr = "tools.toggle.bodyPlace
|
|
|
3163
3260
|
toggleChildren: "data-blok-toggle-children"
|
|
3164
3261
|
};
|
|
3165
3262
|
//#endregion
|
|
3166
|
-
export {
|
|
3263
|
+
export { xn as $, h as $n, zt as $t, Zn as A, Te as An, _r as At, $n as B, w as Bn, an as Bt, X as C, Ne as Cn, vr as Ct, fr as D, Ae as Dn, pn as Dt, W as E, Me as En, Xn as Et, er as F, xe as Fn, Gn as Ft, lr as G, ce as Gn, V as Gt, or as H, de as Hn, Qt as Ht, tr as I, Se as In, Kn as It, ir as J, ue as Jn, Kt as Jt, cr as K, se as Kn, nn as Kt, Bn as L, ye as Ln, On as Lt, gn as M, De as Mn, Mn as Mt, _n as N, we as Nn, En as Nt, sn as O, ke as On, yn as Ot, vn as P, T as Pn, Wn as Pt, bn as Q, b as Qn, Rt as Qt, on as R, ge as Rn, Hn as Rt, Vr as S, Le as Sn, Vn as St, G as T, je as Tn, Pn as Tt, ur as U, oe as Un, Xt as Ut, Un as V, fe as Vn, Dn as Vt, sr as W, le as Wn, Zt as Wt, ar as X, te as Xn, Wt as Xt, nr as Y, ne as Yn, z as Yt, qn as Z, re as Zn, L as Zt, Hr as _, Be as _n, Jn as _t, ei as a, Mt as an, m as ar, Fn as at, Z as b, Pe as bn, hr as bt, ti as c, kt as cn, s as cr, Ln as ct, oi as d, ht as dn, o as dr, cn as dt, Bt as en, g as er, Sn as et, ni as f, et as fn, ln as ft, Gr as g, He as gn, An as gt, Kr as h, ze as hn, jn as ht, ri as i, jt as in, p as ir, Yn as it, rn as j, Ee as jn, fn as jt, mr as k, Oe as kn, gr as kt, Xr as l, Dt as ln, c as lr, Rn as lt, Jr as m, Xe as mn, kn as mt, $r as n, Ft as nn, ee as nr, wn as nt, Zr as o, At as on, f as or, Nn as ot, Yr as p, M as pn, pr as pt, rr as q, ae as qn, tn as qt, ii as r, Pt as rn, u as rr, Tn as rt, ai as s, Ot as sn, l as sr, In as st, Qr as t, Lt as tn, _ as tr, Cn as tt, si as u, N as un, a as ur, zn as ut, $ as v, Ue as vn, un as vt, J as w, Fe as wn, hn as wt, Br as x, Ie as xn, Qn as xt, Q as y, Re as yn, mn as yt, dr as z, C as zn, dn as zt };
|