@jackuait/blok 0.10.3 → 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-3wc3aInM.mjs → blok-NcdNQ0I6.mjs} +2364 -2178
- package/dist/chunks/{constants-Bp622jic.mjs → constants-DtfShkXT.mjs} +318 -227
- 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-BC1jRfoS.mjs → tools-DMSi-3RW.mjs} +3445 -1302
- 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/inline/index.ts +0 -3
- package/src/components/modules/tools.ts +5 -0
- package/src/components/modules/uiControllers/controllers/keyboard.ts +29 -0
- 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/ui/toolbox.ts +0 -1
- 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 +4 -2
- 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/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;
|
|
@@ -664,7 +664,7 @@ var S = () => {
|
|
|
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 S = () => {
|
|
|
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;
|
|
@@ -766,7 +766,7 @@ var S = () => {
|
|
|
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
771
|
var n, r;
|
|
772
772
|
let i = document.createRange(), a = window.getSelection(), o = T.isNativeInput(e);
|
|
@@ -778,7 +778,7 @@ var S = () => {
|
|
|
778
778
|
return s !== null && document.activeElement !== s && s.focus(), i.getBoundingClientRect();
|
|
779
779
|
}
|
|
780
780
|
static isRangeInsideContainer(e) {
|
|
781
|
-
let t =
|
|
781
|
+
let t = k.getRange();
|
|
782
782
|
return t === null ? !1 : e.contains(t.startContainer);
|
|
783
783
|
}
|
|
784
784
|
static collapseToEnd() {
|
|
@@ -787,7 +787,7 @@ var S = () => {
|
|
|
787
787
|
let t = document.createRange();
|
|
788
788
|
t.selectNodeContents(e.focusNode), t.collapse(!1), e.removeAllRanges(), e.addRange(t);
|
|
789
789
|
}
|
|
790
|
-
},
|
|
790
|
+
}, Ge, A = class {
|
|
791
791
|
static applyBoxShadowToWrapper(e) {
|
|
792
792
|
let t = e.parentElement;
|
|
793
793
|
if (!t) return;
|
|
@@ -851,10 +851,10 @@ var S = () => {
|
|
|
851
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(", ");
|
|
852
852
|
}
|
|
853
853
|
};
|
|
854
|
-
|
|
854
|
+
Ge = A, Ge.BG_COLOR = "rgba(0, 0, 0, 0.08)";
|
|
855
855
|
//#endregion
|
|
856
856
|
//#region src/components/selection/fake-background/text-nodes.ts
|
|
857
|
-
var
|
|
857
|
+
var Ke = class {
|
|
858
858
|
static collectTextNodes(e) {
|
|
859
859
|
let t = [], { commonAncestorContainer: n } = e;
|
|
860
860
|
if (n.nodeType === Node.TEXT_NODE) return t.push(n), t;
|
|
@@ -885,7 +885,7 @@ var Ge = class {
|
|
|
885
885
|
];
|
|
886
886
|
return n.slice(0, -1).map((t, r) => e.substring(t, n[r + 1])).filter((e) => e.length > 0);
|
|
887
887
|
}
|
|
888
|
-
},
|
|
888
|
+
}, j = class {
|
|
889
889
|
static wrapRangeWithHighlight(e) {
|
|
890
890
|
if (e.collapsed) return null;
|
|
891
891
|
let t = T.make("span");
|
|
@@ -902,14 +902,14 @@ var Ge = class {
|
|
|
902
902
|
}
|
|
903
903
|
static splitMultiLineWrapper(e) {
|
|
904
904
|
let t = e.getClientRects();
|
|
905
|
-
if (t.length <= 1) return
|
|
905
|
+
if (t.length <= 1) return A.applyBoxShadowToWrapper(e), [e];
|
|
906
906
|
let n = e.textContent || "", r = e.parentNode;
|
|
907
|
-
if (!r || !n) return
|
|
907
|
+
if (!r || !n) return A.applyBoxShadowToWrapper(e), [e];
|
|
908
908
|
let i = [], a = e.firstChild;
|
|
909
|
-
if (!a || a.nodeType !== Node.TEXT_NODE) return
|
|
910
|
-
let o =
|
|
911
|
-
if (o.length === 0) return
|
|
912
|
-
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();
|
|
913
913
|
return s.forEach((e) => {
|
|
914
914
|
if (e.length === 0) return;
|
|
915
915
|
let t = T.make("span");
|
|
@@ -923,7 +923,7 @@ var Ge = class {
|
|
|
923
923
|
t.removeChild(e);
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
|
-
},
|
|
926
|
+
}, qe = class {
|
|
927
927
|
constructor(e) {
|
|
928
928
|
this.selectionUtils = e;
|
|
929
929
|
}
|
|
@@ -933,7 +933,7 @@ var Ge = class {
|
|
|
933
933
|
if (!e || e.rangeCount === 0) return;
|
|
934
934
|
let t = e.getRangeAt(0);
|
|
935
935
|
if (t.collapsed) return;
|
|
936
|
-
let n =
|
|
936
|
+
let n = Ke.collectTextNodes(t);
|
|
937
937
|
if (n.length === 0) return;
|
|
938
938
|
let r = t.startContainer, i = t.startOffset, a = t.endContainer, o = t.endOffset, s = [];
|
|
939
939
|
if (n.forEach((e) => {
|
|
@@ -941,11 +941,11 @@ var Ge = class {
|
|
|
941
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;
|
|
942
942
|
if (d === p) return;
|
|
943
943
|
c.setStart(e, d), c.setEnd(e, p);
|
|
944
|
-
let m =
|
|
944
|
+
let m = j.wrapRangeWithHighlight(c);
|
|
945
945
|
m && s.push(m);
|
|
946
946
|
}), s.length === 0) return;
|
|
947
|
-
let c =
|
|
948
|
-
|
|
947
|
+
let c = j.postProcessHighlightWrappers(s);
|
|
948
|
+
A.applyLineHeightExtensions(c);
|
|
949
949
|
let l = document.createRange();
|
|
950
950
|
l.setStartBefore(c[0]), l.setEndAfter(c[c.length - 1]), this.selectionUtils.savedSelectionRange = l.cloneRange();
|
|
951
951
|
let u = window.getSelection();
|
|
@@ -956,7 +956,7 @@ var Ge = class {
|
|
|
956
956
|
}
|
|
957
957
|
removeOrphanedFakeBackgroundElements() {
|
|
958
958
|
document.querySelectorAll("[data-blok-fake-background=\"true\"]").forEach((e) => {
|
|
959
|
-
|
|
959
|
+
j.unwrapFakeBackground(e);
|
|
960
960
|
});
|
|
961
961
|
}
|
|
962
962
|
clearFakeBackground() {
|
|
@@ -967,16 +967,16 @@ var Ge = class {
|
|
|
967
967
|
if (e.length === 0) return;
|
|
968
968
|
let t = e[0], n = e[e.length - 1], r = t.firstChild, i = n.lastChild;
|
|
969
969
|
if (e.forEach((e) => {
|
|
970
|
-
|
|
970
|
+
j.unwrapFakeBackground(e);
|
|
971
971
|
}), r && i) {
|
|
972
972
|
var a;
|
|
973
973
|
let e = document.createRange();
|
|
974
974
|
e.setStart(r, 0), e.setEnd(i, ((a = i.textContent) == null ? void 0 : a.length) || 0), this.selectionUtils.savedSelectionRange = e;
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
|
-
},
|
|
977
|
+
}, Je = class {
|
|
978
978
|
static addFakeCursor() {
|
|
979
|
-
let e =
|
|
979
|
+
let e = k.getRange();
|
|
980
980
|
if (e === null) return;
|
|
981
981
|
let t = T.make("span");
|
|
982
982
|
t.setAttribute(a.fakeCursor, ""), t.setAttribute("data-blok-mutation-free", "true"), e.collapse(), e.insertNode(t);
|
|
@@ -988,7 +988,7 @@ var Ge = class {
|
|
|
988
988
|
let t = T.find(e, o(a.fakeCursor));
|
|
989
989
|
t && t.remove();
|
|
990
990
|
}
|
|
991
|
-
},
|
|
991
|
+
}, Ye = class {
|
|
992
992
|
static findParentTag(e, t, n = 10) {
|
|
993
993
|
let r = window.getSelection();
|
|
994
994
|
if (!r || !r.anchorNode || !r.focusNode) return null;
|
|
@@ -1016,63 +1016,63 @@ var Ge = class {
|
|
|
1016
1016
|
let n = document.createRange();
|
|
1017
1017
|
n.selectNodeContents(e), t.addRange(n);
|
|
1018
1018
|
}
|
|
1019
|
-
},
|
|
1019
|
+
}, Xe = class {
|
|
1020
1020
|
constructor() {
|
|
1021
|
-
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);
|
|
1022
1022
|
}
|
|
1023
1023
|
static get anchorNode() {
|
|
1024
|
-
return
|
|
1024
|
+
return k.getAnchorNode();
|
|
1025
1025
|
}
|
|
1026
1026
|
static get anchorElement() {
|
|
1027
|
-
return
|
|
1027
|
+
return k.getAnchorElement();
|
|
1028
1028
|
}
|
|
1029
1029
|
static get anchorOffset() {
|
|
1030
|
-
return
|
|
1030
|
+
return k.getAnchorOffset();
|
|
1031
1031
|
}
|
|
1032
1032
|
static get isCollapsed() {
|
|
1033
|
-
return
|
|
1033
|
+
return k.getIsCollapsed();
|
|
1034
1034
|
}
|
|
1035
1035
|
static get isAtBlok() {
|
|
1036
|
-
return
|
|
1036
|
+
return k.getIsAtBlok();
|
|
1037
1037
|
}
|
|
1038
1038
|
static isSelectionAtBlok(e) {
|
|
1039
|
-
return
|
|
1039
|
+
return k.isSelectionAtBlok(e);
|
|
1040
1040
|
}
|
|
1041
1041
|
static isRangeAtBlok(e) {
|
|
1042
|
-
return
|
|
1042
|
+
return k.isRangeAtBlok(e);
|
|
1043
1043
|
}
|
|
1044
1044
|
static get isSelectionExists() {
|
|
1045
|
-
return
|
|
1045
|
+
return k.getIsSelectionExists();
|
|
1046
1046
|
}
|
|
1047
1047
|
static get range() {
|
|
1048
|
-
return
|
|
1048
|
+
return k.getRange();
|
|
1049
1049
|
}
|
|
1050
1050
|
static getRangeFromSelection(e) {
|
|
1051
|
-
return
|
|
1051
|
+
return k.getRangeFromSelection(e);
|
|
1052
1052
|
}
|
|
1053
1053
|
static get rect() {
|
|
1054
|
-
return
|
|
1054
|
+
return k.getRect();
|
|
1055
1055
|
}
|
|
1056
1056
|
static get text() {
|
|
1057
|
-
return
|
|
1057
|
+
return k.getText();
|
|
1058
1058
|
}
|
|
1059
1059
|
static get() {
|
|
1060
|
-
return
|
|
1060
|
+
return k.get();
|
|
1061
1061
|
}
|
|
1062
1062
|
static setCursor(e, t = 0) {
|
|
1063
|
-
return
|
|
1063
|
+
return We.setCursor(e, t);
|
|
1064
1064
|
}
|
|
1065
1065
|
static isRangeInsideContainer(e) {
|
|
1066
|
-
return
|
|
1066
|
+
return We.isRangeInsideContainer(e);
|
|
1067
1067
|
}
|
|
1068
1068
|
static addFakeCursor() {
|
|
1069
|
-
|
|
1069
|
+
Je.addFakeCursor();
|
|
1070
1070
|
}
|
|
1071
1071
|
static isFakeCursorInsideContainer(e) {
|
|
1072
|
-
return
|
|
1072
|
+
return Je.isFakeCursorInsideContainer(e);
|
|
1073
1073
|
}
|
|
1074
1074
|
static removeFakeCursor(e = document.body) {
|
|
1075
|
-
|
|
1075
|
+
Je.removeFakeCursor(e);
|
|
1076
1076
|
}
|
|
1077
1077
|
removeFakeBackground() {
|
|
1078
1078
|
this.fakeBackgroundManager.removeFakeBackground();
|
|
@@ -1087,7 +1087,7 @@ var Ge = class {
|
|
|
1087
1087
|
this.fakeBackgroundManager.setFakeBackground();
|
|
1088
1088
|
}
|
|
1089
1089
|
save() {
|
|
1090
|
-
this.savedSelectionRange =
|
|
1090
|
+
this.savedSelectionRange = k.getRange();
|
|
1091
1091
|
}
|
|
1092
1092
|
restore() {
|
|
1093
1093
|
if (!this.savedSelectionRange) return;
|
|
@@ -1098,17 +1098,17 @@ var Ge = class {
|
|
|
1098
1098
|
this.savedSelectionRange = null;
|
|
1099
1099
|
}
|
|
1100
1100
|
collapseToEnd() {
|
|
1101
|
-
|
|
1101
|
+
We.collapseToEnd();
|
|
1102
1102
|
}
|
|
1103
1103
|
findParentTag(e, t, n = 10) {
|
|
1104
|
-
return
|
|
1104
|
+
return Ye.findParentTag(e, t, n);
|
|
1105
1105
|
}
|
|
1106
1106
|
expandToTag(e) {
|
|
1107
|
-
|
|
1107
|
+
Ye.expandToTag(e);
|
|
1108
1108
|
}
|
|
1109
|
-
},
|
|
1109
|
+
}, M = /* @__PURE__ */ function(e) {
|
|
1110
1110
|
return e.Default = "default", e.Separator = "separator", e.Html = "html", e;
|
|
1111
|
-
}({}),
|
|
1111
|
+
}({}), Ze = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
1112
1112
|
(function(n, r) {
|
|
1113
1113
|
typeof define == "function" && define.amd ? define("html-janitor", r) : typeof e == "object" ? t.exports = r() : n.HTMLJanitor = r();
|
|
1114
1114
|
})(e, function() {
|
|
@@ -1196,66 +1196,66 @@ var Ge = class {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
return e;
|
|
1198
1198
|
});
|
|
1199
|
-
})))()),
|
|
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) => {
|
|
1200
1200
|
let i = h(t) ? t(e.tool) : t, a = i == null ? {} : i;
|
|
1201
|
-
return g(a) && b(a) && b(r) ? e : n(n({}, e), {}, { data:
|
|
1202
|
-
}),
|
|
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) => {
|
|
1203
1203
|
let r = {}, i = e;
|
|
1204
1204
|
for (let a in e) {
|
|
1205
1205
|
if (!Object.prototype.hasOwnProperty.call(e, a)) continue;
|
|
1206
1206
|
let o = i[a], s = g(t) ? t : void 0, c = s == null ? void 0 : s[a];
|
|
1207
|
-
r[a] =
|
|
1207
|
+
r[a] = tt(o, c !== void 0 && at(c) ? c : t, n);
|
|
1208
1208
|
}
|
|
1209
1209
|
return r;
|
|
1210
|
-
},
|
|
1211
|
-
let r =
|
|
1212
|
-
return r ?
|
|
1213
|
-
},
|
|
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) => {
|
|
1214
1214
|
if (!e || e.indexOf("<") === -1) return e;
|
|
1215
1215
|
if (typeof document < "u") {
|
|
1216
1216
|
let t = document.createElement("template");
|
|
1217
1217
|
return t.innerHTML = e, t.content.querySelectorAll("[href],[src]").forEach((e) => {
|
|
1218
1218
|
["href", "src"].forEach((t) => {
|
|
1219
|
-
|
|
1219
|
+
ot(e.getAttribute(t)) && e.removeAttribute(t);
|
|
1220
1220
|
});
|
|
1221
1221
|
}), t.innerHTML;
|
|
1222
1222
|
}
|
|
1223
|
-
return e.replace(
|
|
1224
|
-
},
|
|
1223
|
+
return e.replace($e, "");
|
|
1224
|
+
}, ct = (e) => {
|
|
1225
1225
|
if (b(e)) return {};
|
|
1226
1226
|
let t = {};
|
|
1227
|
-
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]));
|
|
1228
1228
|
return t;
|
|
1229
|
-
},
|
|
1229
|
+
}, lt = (e) => function(t) {
|
|
1230
1230
|
let n = e.call(this, t);
|
|
1231
1231
|
return n == null ? {} : n;
|
|
1232
|
-
},
|
|
1232
|
+
}, ut = new Set([
|
|
1233
1233
|
"class",
|
|
1234
1234
|
"id",
|
|
1235
1235
|
"title",
|
|
1236
1236
|
"role",
|
|
1237
1237
|
"dir",
|
|
1238
1238
|
"lang"
|
|
1239
|
-
]),
|
|
1239
|
+
]), dt = (e) => {
|
|
1240
1240
|
let t = e.toLowerCase();
|
|
1241
|
-
return t.startsWith("data-") || t.startsWith("aria-") ||
|
|
1242
|
-
},
|
|
1241
|
+
return t.startsWith("data-") || t.startsWith("aria-") || ut.has(t);
|
|
1242
|
+
}, ft = (e) => {
|
|
1243
1243
|
let t = {};
|
|
1244
1244
|
return Array.from(e.attributes).forEach((e) => {
|
|
1245
|
-
|
|
1245
|
+
dt(e.name) && (t[e.name] = !0);
|
|
1246
1246
|
}), t;
|
|
1247
|
-
},
|
|
1248
|
-
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);
|
|
1249
1249
|
let n = {};
|
|
1250
1250
|
for (let r in e) {
|
|
1251
1251
|
if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
|
|
1252
1252
|
let i = e[r], a = t ? t[r] : void 0;
|
|
1253
1253
|
if (h(a)) {
|
|
1254
|
-
n[r] =
|
|
1254
|
+
n[r] = P(a);
|
|
1255
1255
|
continue;
|
|
1256
1256
|
}
|
|
1257
1257
|
if (h(i)) {
|
|
1258
|
-
n[r] =
|
|
1258
|
+
n[r] = P(i);
|
|
1259
1259
|
continue;
|
|
1260
1260
|
}
|
|
1261
1261
|
if (g(i) && g(a)) {
|
|
@@ -1263,17 +1263,17 @@ var Ge = class {
|
|
|
1263
1263
|
continue;
|
|
1264
1264
|
}
|
|
1265
1265
|
if (a !== void 0) {
|
|
1266
|
-
n[r] =
|
|
1266
|
+
n[r] = P(a);
|
|
1267
1267
|
continue;
|
|
1268
1268
|
}
|
|
1269
|
-
n[r] =
|
|
1269
|
+
n[r] = P(i);
|
|
1270
1270
|
}
|
|
1271
1271
|
if (!t) return n;
|
|
1272
|
-
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])));
|
|
1273
1273
|
return n;
|
|
1274
|
-
},
|
|
1274
|
+
}, mt = (e, t) => g(e) && !h(e) ? pt(t, e) : e === !1 ? {} : b(t) ? null : ct(t), ht = (e, ...t) => {
|
|
1275
1275
|
if (b(e)) return Object.assign({}, ...t);
|
|
1276
|
-
let n =
|
|
1276
|
+
let n = ct(e);
|
|
1277
1277
|
return t.forEach((e) => {
|
|
1278
1278
|
if (e) for (let t in e) {
|
|
1279
1279
|
if (!Object.prototype.hasOwnProperty.call(e, t)) continue;
|
|
@@ -1286,18 +1286,18 @@ var Ge = class {
|
|
|
1286
1286
|
}
|
|
1287
1287
|
if (!(r === !0 && h(i))) {
|
|
1288
1288
|
if (r === !0) {
|
|
1289
|
-
n[t] = g(i) && !h(i) ? C({}, i) :
|
|
1289
|
+
n[t] = g(i) && !h(i) ? C({}, i) : P(r);
|
|
1290
1290
|
continue;
|
|
1291
1291
|
}
|
|
1292
1292
|
if (g(r) && g(i)) {
|
|
1293
1293
|
n[t] = C({}, i, r);
|
|
1294
1294
|
continue;
|
|
1295
1295
|
}
|
|
1296
|
-
n[t] =
|
|
1296
|
+
n[t] = P(r);
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
1299
|
}), n;
|
|
1300
|
-
},
|
|
1300
|
+
}, gt = (e, t) => {
|
|
1301
1301
|
if (typeof document > "u" || !e || e.indexOf("<") === -1) return e;
|
|
1302
1302
|
let n = Object.entries(t).filter(([, e]) => h(e));
|
|
1303
1303
|
if (n.length === 0) return e;
|
|
@@ -1314,7 +1314,7 @@ var Ge = class {
|
|
|
1314
1314
|
}
|
|
1315
1315
|
});
|
|
1316
1316
|
}), r.innerHTML;
|
|
1317
|
-
},
|
|
1317
|
+
}, _t, vt = 10, yt = "tooltip", bt = "aria-hidden", xt = "false", St = "true", Ct = "visibility", wt = "visible", Tt = "hidden", Et = class e {
|
|
1318
1318
|
get CSS() {
|
|
1319
1319
|
return {
|
|
1320
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(" "),
|
|
@@ -1329,7 +1329,7 @@ var Ge = class {
|
|
|
1329
1329
|
this.nodes = {
|
|
1330
1330
|
wrapper: null,
|
|
1331
1331
|
content: null
|
|
1332
|
-
}, 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 = () => {
|
|
1333
1333
|
this.showed && this.hide();
|
|
1334
1334
|
}, this.prepare(), window.addEventListener("scroll", this.handleWindowScroll, { passive: !0 });
|
|
1335
1335
|
}
|
|
@@ -1400,12 +1400,12 @@ var Ge = class {
|
|
|
1400
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;
|
|
1401
1401
|
}
|
|
1402
1402
|
prepare() {
|
|
1403
|
-
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());
|
|
1404
1404
|
}
|
|
1405
1405
|
updateTooltipVisibility() {
|
|
1406
1406
|
if (!this.nodes.wrapper) return;
|
|
1407
1407
|
let e = Array.isArray(this.CSS.tooltipShown) ? this.CSS.tooltipShown[0] : this.CSS.tooltipShown, t = this.nodes.wrapper.classList.contains(e);
|
|
1408
|
-
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");
|
|
1409
1409
|
}
|
|
1410
1410
|
watchTooltipVisibility() {
|
|
1411
1411
|
var e;
|
|
@@ -1417,7 +1417,7 @@ var Ge = class {
|
|
|
1417
1417
|
}));
|
|
1418
1418
|
}
|
|
1419
1419
|
ensureTooltipAttributes() {
|
|
1420
|
-
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());
|
|
1421
1421
|
}
|
|
1422
1422
|
placeBottom(e, t) {
|
|
1423
1423
|
var n;
|
|
@@ -1459,16 +1459,16 @@ var Ge = class {
|
|
|
1459
1459
|
Array.isArray(t) ? t.forEach((t) => e.appendChild(t)) : e.appendChild(t);
|
|
1460
1460
|
}
|
|
1461
1461
|
};
|
|
1462
|
-
|
|
1463
|
-
var
|
|
1464
|
-
|
|
1465
|
-
},
|
|
1466
|
-
|
|
1467
|
-
},
|
|
1468
|
-
|
|
1469
|
-
}, kt = () => {
|
|
1470
|
-
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);
|
|
1471
1469
|
}, At = () => {
|
|
1470
|
+
F().destroy();
|
|
1471
|
+
}, jt = () => {
|
|
1472
1472
|
var e, t;
|
|
1473
1473
|
let n = window.getSelection();
|
|
1474
1474
|
if (n === null) return [null, 0];
|
|
@@ -1479,7 +1479,7 @@ var I = () => Tt.getInstance(), Et = (e, t, n) => {
|
|
|
1479
1479
|
if (a !== void 0) return [a, 0];
|
|
1480
1480
|
let o = (e = r.childNodes[i - 1]) == null ? null : e, s = (t = o == null ? void 0 : o.textContent) == null ? null : t;
|
|
1481
1481
|
return [o, s === null ? 0 : s.length];
|
|
1482
|
-
},
|
|
1482
|
+
}, Mt = (e) => {
|
|
1483
1483
|
var t;
|
|
1484
1484
|
let n = window.getSelection();
|
|
1485
1485
|
if (n === null || n.rangeCount === 0) return 0;
|
|
@@ -1487,7 +1487,7 @@ var I = () => Tt.getInstance(), Et = (e, t, n) => {
|
|
|
1487
1487
|
if (i == null) return 0;
|
|
1488
1488
|
let a = document.createRange();
|
|
1489
1489
|
return a.selectNodeContents(i), a.setEnd(r.startContainer, r.startOffset), a.toString().length;
|
|
1490
|
-
},
|
|
1490
|
+
}, Nt = (e, t, n, r) => {
|
|
1491
1491
|
let i = document.createRange();
|
|
1492
1492
|
r === "left" ? (i.selectNodeContents(e), i.setEnd(t, n)) : (i.selectNodeContents(e), i.setStart(t, n));
|
|
1493
1493
|
let a = i.cloneContents(), o = document.createElement("div");
|
|
@@ -1499,23 +1499,23 @@ var I = () => Tt.getInstance(), Et = (e, t, n) => {
|
|
|
1499
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);
|
|
1500
1500
|
let u = o.getBoundingClientRect().width;
|
|
1501
1501
|
return document.body.removeChild(o), !(u > 0 || !xe(s) || window.getComputedStyle(e).whiteSpace.startsWith("pre") && s.length > 0);
|
|
1502
|
-
},
|
|
1502
|
+
}, Pt = (e) => {
|
|
1503
1503
|
var t;
|
|
1504
1504
|
let n = T.getDeepestNode(e);
|
|
1505
1505
|
if (n === null || T.isEmpty(e)) return !0;
|
|
1506
1506
|
if (T.isNativeInput(n)) return n.selectionEnd === 0;
|
|
1507
1507
|
if (T.isEmpty(e)) return !0;
|
|
1508
|
-
let [r, i] =
|
|
1508
|
+
let [r, i] = jt();
|
|
1509
1509
|
if (r === null) return !1;
|
|
1510
1510
|
let a = window.getSelection(), o = (t = a == null ? void 0 : a.focusNode) == null ? null : t;
|
|
1511
|
-
return o !== null && o !== e && !(o.nodeType === Node.TEXT_NODE && o.parentNode === e) ? !1 :
|
|
1512
|
-
},
|
|
1511
|
+
return o !== null && o !== e && !(o.nodeType === Node.TEXT_NODE && o.parentNode === e) ? !1 : Nt(e, r, i, "left");
|
|
1512
|
+
}, Ft = (e) => {
|
|
1513
1513
|
let t = T.getDeepestNode(e, !0);
|
|
1514
1514
|
if (t === null) return !0;
|
|
1515
1515
|
if (T.isNativeInput(t)) return t.selectionEnd === t.value.length;
|
|
1516
|
-
let [n, r] =
|
|
1517
|
-
return n === null ? !1 :
|
|
1518
|
-
},
|
|
1516
|
+
let [n, r] = jt();
|
|
1517
|
+
return n === null ? !1 : Nt(e, n, r, "right");
|
|
1518
|
+
}, It, I = class e {
|
|
1519
1519
|
constructor(e, t) {
|
|
1520
1520
|
this.cursor = -1, this.items = [], this.items = e == null ? [] : e, this.focusedCssClass = t;
|
|
1521
1521
|
}
|
|
@@ -1545,16 +1545,16 @@ var I = () => Tt.getInstance(), Et = (e, t, n) => {
|
|
|
1545
1545
|
let n = t === e.directions.RIGHT ? -1 : 0, r = this.cursor === -1 ? n : this.cursor;
|
|
1546
1546
|
r !== -1 && (this.items[r].classList.remove(this.focusedCssClass), this.items[r].removeAttribute("data-blok-focused"));
|
|
1547
1547
|
let i = t === e.directions.RIGHT ? (r + 1) % this.items.length : (this.items.length + r - 1) % this.items.length;
|
|
1548
|
-
return T.canSetCaret(this.items[i]) && te(() =>
|
|
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;
|
|
1549
1549
|
}
|
|
1550
1550
|
};
|
|
1551
|
-
|
|
1551
|
+
It = I, It.directions = {
|
|
1552
1552
|
RIGHT: "right",
|
|
1553
1553
|
LEFT: "left"
|
|
1554
1554
|
};
|
|
1555
1555
|
//#endregion
|
|
1556
1556
|
//#region src/components/flipper.ts
|
|
1557
|
-
var
|
|
1557
|
+
var Lt = class e {
|
|
1558
1558
|
get isActivated() {
|
|
1559
1559
|
return this.activated;
|
|
1560
1560
|
}
|
|
@@ -1587,7 +1587,7 @@ var It = class e {
|
|
|
1587
1587
|
break;
|
|
1588
1588
|
case null: break;
|
|
1589
1589
|
}
|
|
1590
|
-
}, 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;
|
|
1591
1591
|
}
|
|
1592
1592
|
static get usedKeys() {
|
|
1593
1593
|
return [
|
|
@@ -1676,16 +1676,16 @@ var It = class e {
|
|
|
1676
1676
|
return this.handleContentEditableTargets;
|
|
1677
1677
|
}
|
|
1678
1678
|
handleTabPress(e) {
|
|
1679
|
-
let t = e.shiftKey ?
|
|
1679
|
+
let t = e.shiftKey ? I.directions.LEFT : I.directions.RIGHT;
|
|
1680
1680
|
if (this.skipNextTabFocus) {
|
|
1681
1681
|
this.skipNextTabFocus = !1;
|
|
1682
1682
|
return;
|
|
1683
1683
|
}
|
|
1684
1684
|
switch (t) {
|
|
1685
|
-
case
|
|
1685
|
+
case I.directions.RIGHT:
|
|
1686
1686
|
this.flipRight();
|
|
1687
1687
|
break;
|
|
1688
|
-
case
|
|
1688
|
+
case I.directions.LEFT:
|
|
1689
1689
|
this.flipLeft();
|
|
1690
1690
|
break;
|
|
1691
1691
|
}
|
|
@@ -1714,7 +1714,7 @@ var It = class e {
|
|
|
1714
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;
|
|
1715
1715
|
return n && !i || s || o;
|
|
1716
1716
|
}
|
|
1717
|
-
},
|
|
1717
|
+
}, Rt = [
|
|
1718
1718
|
{
|
|
1719
1719
|
name: "gray",
|
|
1720
1720
|
text: "#787774",
|
|
@@ -1760,7 +1760,7 @@ var It = class e {
|
|
|
1760
1760
|
text: "#d44c47",
|
|
1761
1761
|
bg: "#fdebec"
|
|
1762
1762
|
}
|
|
1763
|
-
],
|
|
1763
|
+
], zt = [
|
|
1764
1764
|
{
|
|
1765
1765
|
name: "gray",
|
|
1766
1766
|
text: "#9b9b9b",
|
|
@@ -1807,12 +1807,12 @@ var It = class e {
|
|
|
1807
1807
|
bg: "#4e1a18"
|
|
1808
1808
|
}
|
|
1809
1809
|
];
|
|
1810
|
-
function
|
|
1810
|
+
function Bt(e, t) {
|
|
1811
1811
|
return `var(--blok-color-${e}-${t})`;
|
|
1812
1812
|
}
|
|
1813
1813
|
//#endregion
|
|
1814
1814
|
//#region src/components/utils/color-mapping.ts
|
|
1815
|
-
function
|
|
1815
|
+
function Vt(e, t, n) {
|
|
1816
1816
|
let r = t / 100, i = n / 100;
|
|
1817
1817
|
if (r === 0) {
|
|
1818
1818
|
let e = Math.round(i * 255);
|
|
@@ -1832,7 +1832,7 @@ function Bt(e, t, n) {
|
|
|
1832
1832
|
Math.round(o(c, s, l - 1 / 3) * 255)
|
|
1833
1833
|
];
|
|
1834
1834
|
}
|
|
1835
|
-
function
|
|
1835
|
+
function L(e) {
|
|
1836
1836
|
let t = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);
|
|
1837
1837
|
if (t) return [
|
|
1838
1838
|
parseInt(t[1], 16),
|
|
@@ -1864,10 +1864,10 @@ function R(e) {
|
|
|
1864
1864
|
Number(a[3])
|
|
1865
1865
|
];
|
|
1866
1866
|
let o = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%\s*(?:,\s*[\d.]+\s*)?\)$/i.exec(e);
|
|
1867
|
-
return o ?
|
|
1867
|
+
return o ? Vt(Number(o[1]), Number(o[2]), Number(o[3])) : null;
|
|
1868
1868
|
}
|
|
1869
|
-
var
|
|
1870
|
-
function
|
|
1869
|
+
var Ht = .1;
|
|
1870
|
+
function R(e) {
|
|
1871
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;
|
|
1872
1872
|
if (i === a) return [
|
|
1873
1873
|
0,
|
|
@@ -1881,8 +1881,8 @@ function z(e) {
|
|
|
1881
1881
|
o
|
|
1882
1882
|
];
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1885
|
-
let n = e[1] <
|
|
1884
|
+
function Ut(e, t) {
|
|
1885
|
+
let n = e[1] < Ht, r = t[1] < Ht;
|
|
1886
1886
|
if (n && r) {
|
|
1887
1887
|
let n = Math.abs(e[2] - t[2]);
|
|
1888
1888
|
return n * n;
|
|
@@ -1891,14 +1891,14 @@ function Ht(e, t) {
|
|
|
1891
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]);
|
|
1892
1892
|
return 8 * a * a + 1 * o * o + 1 * s * s;
|
|
1893
1893
|
}
|
|
1894
|
-
function
|
|
1895
|
-
let n =
|
|
1894
|
+
function z(e, t) {
|
|
1895
|
+
let n = L(e);
|
|
1896
1896
|
if (n === null) return e;
|
|
1897
|
-
let r =
|
|
1898
|
-
return
|
|
1899
|
-
let i =
|
|
1897
|
+
let r = R(n);
|
|
1898
|
+
return Rt.reduce((e, n) => {
|
|
1899
|
+
let i = L(n[t]);
|
|
1900
1900
|
if (i === null) return e;
|
|
1901
|
-
let a =
|
|
1901
|
+
let a = Ut(r, R(i));
|
|
1902
1902
|
return a < e.distance ? {
|
|
1903
1903
|
color: n[t],
|
|
1904
1904
|
distance: a
|
|
@@ -1908,14 +1908,14 @@ function B(e, t) {
|
|
|
1908
1908
|
distance: Infinity
|
|
1909
1909
|
}).color;
|
|
1910
1910
|
}
|
|
1911
|
-
function
|
|
1911
|
+
function Wt(e, t) {
|
|
1912
1912
|
var n;
|
|
1913
|
-
let r =
|
|
1913
|
+
let r = L(e);
|
|
1914
1914
|
if (r === null) return null;
|
|
1915
|
-
let i =
|
|
1916
|
-
let r =
|
|
1915
|
+
let i = R(r), a = [...Rt, ...zt].reduce((e, n) => {
|
|
1916
|
+
let r = L(n[t]);
|
|
1917
1917
|
if (r === null) return e;
|
|
1918
|
-
let a =
|
|
1918
|
+
let a = Ut(i, R(r));
|
|
1919
1919
|
return e === null || a < e.distance ? {
|
|
1920
1920
|
name: n.name,
|
|
1921
1921
|
distance: a
|
|
@@ -1925,11 +1925,11 @@ function Ut(e, t) {
|
|
|
1925
1925
|
}
|
|
1926
1926
|
//#endregion
|
|
1927
1927
|
//#region src/tools/table/table-cell-clipboard.ts
|
|
1928
|
-
var
|
|
1929
|
-
function
|
|
1928
|
+
var B = "data-blok-table-cells";
|
|
1929
|
+
function Gt(e, t, n) {
|
|
1930
1930
|
return e ? `background-color: ${n}` : t ? "background-color: transparent" : "";
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1932
|
+
function Kt(e) {
|
|
1933
1933
|
if (e.length === 0) return {
|
|
1934
1934
|
rows: 0,
|
|
1935
1935
|
cols: 0,
|
|
@@ -1946,28 +1946,28 @@ function Gt(e) {
|
|
|
1946
1946
|
cells: s
|
|
1947
1947
|
};
|
|
1948
1948
|
}
|
|
1949
|
-
function
|
|
1949
|
+
function qt(e) {
|
|
1950
1950
|
let { data: t } = e;
|
|
1951
1951
|
return typeof t.text == "string" ? t.text : Array.isArray(t.items) ? t.items.filter((e) => typeof e == "string").join(" ") : "";
|
|
1952
1952
|
}
|
|
1953
|
-
function
|
|
1953
|
+
function Jt(e) {
|
|
1954
1954
|
var t;
|
|
1955
1955
|
let n = document.createElement("div");
|
|
1956
1956
|
return n.innerHTML = e, (t = n.textContent) == null ? "" : t;
|
|
1957
1957
|
}
|
|
1958
|
-
function Jt(e) {
|
|
1959
|
-
return qt(Kt(e));
|
|
1960
|
-
}
|
|
1961
1958
|
function Yt(e) {
|
|
1962
|
-
return
|
|
1963
|
-
|
|
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("; ");
|
|
1964
1964
|
return `<td${n ? ` style="${n}"` : ""}>${t}</td>`;
|
|
1965
1965
|
}).join("")}</tr>`).join("")}</table>`;
|
|
1966
1966
|
}
|
|
1967
|
-
function
|
|
1968
|
-
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");
|
|
1969
1969
|
}
|
|
1970
|
-
var
|
|
1970
|
+
var Qt = new Set(["color", "background-color"]), $t = {
|
|
1971
1971
|
b: !0,
|
|
1972
1972
|
strong: !0,
|
|
1973
1973
|
i: !0,
|
|
@@ -1980,40 +1980,40 @@ var Zt = new Set(["color", "background-color"]), Qt = {
|
|
|
1980
1980
|
},
|
|
1981
1981
|
mark: (e) => {
|
|
1982
1982
|
let t = e.style, n = Array.from({ length: t.length }, (e, n) => t.item(n));
|
|
1983
|
-
for (let e of n)
|
|
1983
|
+
for (let e of n) Qt.has(e) || t.removeProperty(e);
|
|
1984
1984
|
return t.length > 0 ? { style: !0 } : {};
|
|
1985
1985
|
}
|
|
1986
1986
|
};
|
|
1987
|
-
function
|
|
1987
|
+
function V(e) {
|
|
1988
1988
|
let t = e.replace(/\s/g, "");
|
|
1989
1989
|
return t === "rgb(0,0,0)" || t === "#000000";
|
|
1990
1990
|
}
|
|
1991
|
-
function
|
|
1991
|
+
function en(e) {
|
|
1992
1992
|
let t = e.cloneNode(!0);
|
|
1993
1993
|
for (let e of Array.from(t.querySelectorAll("span"))) {
|
|
1994
1994
|
var n, r, i;
|
|
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 && !
|
|
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";
|
|
1996
1996
|
if (!a && !o && !d && !f) continue;
|
|
1997
|
-
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;
|
|
1998
1998
|
e.replaceWith(document.createRange().createContextualFragment(y));
|
|
1999
1999
|
}
|
|
2000
2000
|
for (let e of Array.from(t.querySelectorAll("a[style]"))) {
|
|
2001
2001
|
var a, o, s;
|
|
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 && !
|
|
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";
|
|
2003
2003
|
if (!l && !u) continue;
|
|
2004
|
-
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;
|
|
2005
2005
|
m.innerHTML = `<mark style="${p};">${m.innerHTML}</mark>`, m.style.removeProperty("color"), m.style.removeProperty("background-color");
|
|
2006
2006
|
}
|
|
2007
2007
|
for (let e of Array.from(t.querySelectorAll("p"))) {
|
|
2008
2008
|
let t = document.createRange().createContextualFragment(e.innerHTML + "<br>");
|
|
2009
2009
|
e.replaceWith(t);
|
|
2010
2010
|
}
|
|
2011
|
-
return
|
|
2011
|
+
return N(t.innerHTML, $t).replace(/(<br\s*\/?>|\s)+$/i, "").trim();
|
|
2012
2012
|
}
|
|
2013
|
-
function
|
|
2013
|
+
function tn(e) {
|
|
2014
2014
|
if (!e) return null;
|
|
2015
2015
|
let t = new DOMParser().parseFromString(e, "text/html").querySelector("table");
|
|
2016
|
-
if (!t || t.hasAttribute(
|
|
2016
|
+
if (!t || t.hasAttribute(B)) return null;
|
|
2017
2017
|
let n = t.querySelectorAll("tr");
|
|
2018
2018
|
if (n.length === 0) return null;
|
|
2019
2019
|
let r = [];
|
|
@@ -2021,16 +2021,16 @@ function en(e) {
|
|
|
2021
2021
|
let t = e.querySelectorAll("td, th"), n = [];
|
|
2022
2022
|
t.forEach((e) => {
|
|
2023
2023
|
var t;
|
|
2024
|
-
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) => ({
|
|
2025
2025
|
tool: "paragraph",
|
|
2026
2026
|
data: { text: e }
|
|
2027
2027
|
})) : [{
|
|
2028
2028
|
tool: "paragraph",
|
|
2029
2029
|
data: { text: "" }
|
|
2030
2030
|
}] }, a = (t = e.getAttribute("style")) == null ? "" : t, o = /background-color\s*:\s*([^;]+)/i.exec(a);
|
|
2031
|
-
o != null && o[1] && (i.color =
|
|
2031
|
+
o != null && o[1] && (i.color = z(o[1].trim(), "bg"));
|
|
2032
2032
|
let s = (/* @__PURE__ */ RegExp("(?<![a-z-])color\\s*:\\s*([^;]+)", "i")).exec(a);
|
|
2033
|
-
s != null && s[1] && !
|
|
2033
|
+
s != null && s[1] && !V(s[1].trim()) && (i.textColor = z(s[1].trim(), "text")), n.push(i);
|
|
2034
2034
|
}), r.push(n);
|
|
2035
2035
|
});
|
|
2036
2036
|
let i = Math.max(0, ...r.map((e) => e.length));
|
|
@@ -2045,8 +2045,8 @@ function en(e) {
|
|
|
2045
2045
|
cells: r
|
|
2046
2046
|
};
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2049
|
-
let t = RegExp(`${
|
|
2048
|
+
function nn(e) {
|
|
2049
|
+
let t = RegExp(`${B}='([^']*)'|${B}="([^"]*)"`, "s").exec(e);
|
|
2050
2050
|
if (!t) return null;
|
|
2051
2051
|
try {
|
|
2052
2052
|
var n;
|
|
@@ -2060,24 +2060,100 @@ function tn(e) {
|
|
|
2060
2060
|
}
|
|
2061
2061
|
//#endregion
|
|
2062
2062
|
//#region src/components/icons/index.ts
|
|
2063
|
-
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 = {
|
|
2064
2140
|
root: "",
|
|
2065
2141
|
alignedStart: "text-start",
|
|
2066
2142
|
alignedCenter: "text-center",
|
|
2067
2143
|
title: "",
|
|
2068
2144
|
description: "opacity-60 mt-[3px]"
|
|
2069
|
-
},
|
|
2145
|
+
}, Tr = class {
|
|
2070
2146
|
constructor(e) {
|
|
2071
2147
|
let t = e.alignment === "center" ? "center" : "start";
|
|
2072
2148
|
this.nodes = {
|
|
2073
2149
|
root: T.make("div", [U.root, t === "center" ? U.alignedCenter : U.alignedStart]),
|
|
2074
2150
|
title: T.make("div", U.title, { textContent: e.title })
|
|
2075
|
-
}, 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,
|
|
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));
|
|
2076
2152
|
}
|
|
2077
2153
|
getElement() {
|
|
2078
2154
|
return this.nodes.root;
|
|
2079
2155
|
}
|
|
2080
|
-
},
|
|
2156
|
+
}, Er = class {
|
|
2081
2157
|
constructor(e) {
|
|
2082
2158
|
this.params = e;
|
|
2083
2159
|
}
|
|
@@ -2085,7 +2161,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2085
2161
|
if (this.params !== void 0 && "name" in this.params) return this.params.name;
|
|
2086
2162
|
}
|
|
2087
2163
|
destroy() {
|
|
2088
|
-
|
|
2164
|
+
Ot();
|
|
2089
2165
|
}
|
|
2090
2166
|
onChildrenOpen() {
|
|
2091
2167
|
var e;
|
|
@@ -2100,7 +2176,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2100
2176
|
this.params !== void 0 && "onActivate" in this.params && ((e = (t = this.params).onActivate) == null || e.call(t, this.params));
|
|
2101
2177
|
}
|
|
2102
2178
|
addHint(e, t) {
|
|
2103
|
-
|
|
2179
|
+
kt(e, new Tr(t).getElement(), { placement: t.position });
|
|
2104
2180
|
}
|
|
2105
2181
|
getMountElement() {
|
|
2106
2182
|
return this.getElement();
|
|
@@ -2147,10 +2223,10 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2147
2223
|
itemDisabled: "cursor-default pointer-events-none text-text-secondary",
|
|
2148
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",
|
|
2149
2225
|
focused: "is-focused"
|
|
2150
|
-
},
|
|
2226
|
+
}, Dr = {
|
|
2151
2227
|
item: "rounded-lg p-1",
|
|
2152
2228
|
itemIconOnly: "aspect-square justify-center"
|
|
2153
|
-
},
|
|
2229
|
+
}, Or = { item: "rounded p-[3px] mobile:p-1" }, G = class extends Er {
|
|
2154
2230
|
get isDisabled() {
|
|
2155
2231
|
return this.params.isDisabled === !0;
|
|
2156
2232
|
}
|
|
@@ -2232,7 +2308,10 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2232
2308
|
}
|
|
2233
2309
|
if (t.secondaryLabel) {
|
|
2234
2310
|
let n = document.createElement("div");
|
|
2235
|
-
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
|
+
}
|
|
2236
2315
|
}
|
|
2237
2316
|
if (t.trailingIcon) {
|
|
2238
2317
|
let n = document.createElement("div");
|
|
@@ -2240,7 +2319,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2240
2319
|
}
|
|
2241
2320
|
if (this.hasChildren && !this.isChevronHidden) {
|
|
2242
2321
|
let t = document.createElement("div");
|
|
2243
|
-
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;
|
|
2244
2323
|
}
|
|
2245
2324
|
}
|
|
2246
2325
|
createIconElement(e, t, n, r) {
|
|
@@ -2250,7 +2329,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2250
2329
|
getContainerClass() {
|
|
2251
2330
|
var e, t, n, i;
|
|
2252
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;
|
|
2253
|
-
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);
|
|
2254
2333
|
}
|
|
2255
2334
|
getIconClass(e, t, n) {
|
|
2256
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!");
|
|
@@ -2300,8 +2379,9 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2300
2379
|
!this.nodes.titleEl || this.params.title === void 0 || (this.nodes.titleEl.textContent = this.params.title);
|
|
2301
2380
|
}
|
|
2302
2381
|
restoreOriginalSecondaryLabel() {
|
|
2303
|
-
|
|
2304
|
-
|
|
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";
|
|
2305
2385
|
}
|
|
2306
2386
|
updateIcon(e) {
|
|
2307
2387
|
!this.nodes.icon || !e || (this.nodes.icon.innerHTML = e);
|
|
@@ -2310,7 +2390,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2310
2390
|
!this.nodes.titleEl || e.title === void 0 || (this.nodes.titleEl.textContent = e.title);
|
|
2311
2391
|
}
|
|
2312
2392
|
updateSecondaryLabel(e) {
|
|
2313
|
-
this.nodes.secondaryLabelEl && (this.nodes.secondaryLabelEl.
|
|
2393
|
+
this.nodes.secondaryLabelEl && (this.nodes.secondaryLabelEl.innerHTML = e ? H(e) : "", this.nodes.secondaryLabelEl.style.display = e ? "" : "none");
|
|
2314
2394
|
}
|
|
2315
2395
|
disableConfirmationMode() {
|
|
2316
2396
|
this.nodes.root !== null && (this.setConfirmation(null), this.confirmationState = null, this.disableSpecialHoverAndFocusBehavior());
|
|
@@ -2342,7 +2422,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2342
2422
|
line: "h-full w-px",
|
|
2343
2423
|
nestedContainer: "py-1 px-[3px]",
|
|
2344
2424
|
nestedLine: "w-full h-px"
|
|
2345
|
-
},
|
|
2425
|
+
}, kr = class extends Er {
|
|
2346
2426
|
constructor(e) {
|
|
2347
2427
|
var t, n;
|
|
2348
2428
|
super(), this.nodes = {
|
|
@@ -2371,10 +2451,10 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2371
2451
|
let t = document.createElement("div");
|
|
2372
2452
|
return t.className = this.getLineClass(), t.setAttribute(a.popoverItemSeparatorLine, ""), e.appendChild(t), this.nodes.line = t, e;
|
|
2373
2453
|
}
|
|
2374
|
-
},
|
|
2454
|
+
}, Ar = {
|
|
2375
2455
|
root: "",
|
|
2376
2456
|
rootHidden: "hidden"
|
|
2377
|
-
},
|
|
2457
|
+
}, jr = { root: "flex items-center" }, J = class extends Er {
|
|
2378
2458
|
constructor(e, t) {
|
|
2379
2459
|
var n;
|
|
2380
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);
|
|
@@ -2391,12 +2471,12 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2391
2471
|
return Array.from(e);
|
|
2392
2472
|
}
|
|
2393
2473
|
updateRootClasses() {
|
|
2394
|
-
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));
|
|
2395
2475
|
}
|
|
2396
2476
|
createRootElement(e, t) {
|
|
2397
2477
|
var i;
|
|
2398
2478
|
let o = document.createElement("div");
|
|
2399
|
-
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) {
|
|
2400
2480
|
var s, c;
|
|
2401
2481
|
this.addHint(o, n(n({}, e.hint), {}, {
|
|
2402
2482
|
position: (t == null || (s = t.hint) == null ? void 0 : s.position) || "right",
|
|
@@ -2405,11 +2485,11 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2405
2485
|
}
|
|
2406
2486
|
return o;
|
|
2407
2487
|
}
|
|
2408
|
-
},
|
|
2488
|
+
}, Mr = {
|
|
2409
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)]",
|
|
2410
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",
|
|
2411
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"
|
|
2412
|
-
},
|
|
2492
|
+
}, Nr = (e, t) => {
|
|
2413
2493
|
if (e.length === 0) return t.length;
|
|
2414
2494
|
if (t.length === 0) return e.length;
|
|
2415
2495
|
let n = Array.from({ length: t.length + 1 }, (e, t) => t), r = Array(t.length + 1);
|
|
@@ -2422,18 +2502,18 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2422
2502
|
n.splice(0, n.length, ...r);
|
|
2423
2503
|
}
|
|
2424
2504
|
return n[t.length];
|
|
2425
|
-
},
|
|
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) => {
|
|
2426
2506
|
let a = i === 0 || e[i - 1] === " " || e[i - 1] === "-" || e[i - 1] === "_";
|
|
2427
2507
|
return n < t.length && a && r === t[n] ? n + 1 : n;
|
|
2428
|
-
}, 0) === t.length,
|
|
2508
|
+
}, 0) === t.length, Ir = (e, t) => {
|
|
2429
2509
|
if (e === t) return 100;
|
|
2430
2510
|
if (e.startsWith(t)) return 90;
|
|
2431
2511
|
if (e.includes(t)) return 75;
|
|
2432
|
-
if (t.length >= 2 &&
|
|
2433
|
-
if (t.length >= 2 &&
|
|
2512
|
+
if (t.length >= 2 && Fr(e, t)) return 55;
|
|
2513
|
+
if (t.length >= 2 && Pr(e, t)) return 35;
|
|
2434
2514
|
if (t.length >= 3) {
|
|
2435
2515
|
let n = Math.floor(t.length / 3);
|
|
2436
|
-
if (
|
|
2516
|
+
if (Nr(e, t) <= n) return 15;
|
|
2437
2517
|
}
|
|
2438
2518
|
return 0;
|
|
2439
2519
|
}, Y = (e, t) => {
|
|
@@ -2441,18 +2521,18 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2441
2521
|
let n = t.toLowerCase(), r = [];
|
|
2442
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());
|
|
2443
2523
|
return r.reduce((e, t) => {
|
|
2444
|
-
let r =
|
|
2524
|
+
let r = Ir(t, n);
|
|
2445
2525
|
return r > e ? r : e;
|
|
2446
2526
|
}, 0);
|
|
2447
|
-
},
|
|
2527
|
+
}, Lr = /* @__PURE__ */ function(e) {
|
|
2448
2528
|
return e.Search = "search", e;
|
|
2449
|
-
}({}),
|
|
2529
|
+
}({}), Rr = class extends Re {
|
|
2450
2530
|
constructor({ items: e, placeholder: t }) {
|
|
2451
2531
|
super(), this.searchQuery = "", this.handleValueChange = () => {
|
|
2452
2532
|
this.applySearch(this.input.value);
|
|
2453
|
-
}, this.listeners = new Oe(), this.items = e, this.wrapper = T.make("div",
|
|
2454
|
-
let n = T.make("div",
|
|
2455
|
-
this.input = T.make("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, {
|
|
2456
2536
|
type: "search",
|
|
2457
2537
|
placeholder: t,
|
|
2458
2538
|
tabIndex: -1
|
|
@@ -2475,7 +2555,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2475
2555
|
this.input.value = "";
|
|
2476
2556
|
}
|
|
2477
2557
|
applySearch(e) {
|
|
2478
|
-
this.searchQuery !== e && (this.searchQuery = e, this.emit(
|
|
2558
|
+
this.searchQuery !== e && (this.searchQuery = e, this.emit(Lr.Search, {
|
|
2479
2559
|
query: e,
|
|
2480
2560
|
items: this.foundItems
|
|
2481
2561
|
}));
|
|
@@ -2506,7 +2586,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2506
2586
|
score: Y(e, this.searchQuery)
|
|
2507
2587
|
})).filter(({ score: e }) => e > 0).sort((e, t) => t.score - e.score).map(({ item: e }) => e);
|
|
2508
2588
|
}
|
|
2509
|
-
},
|
|
2589
|
+
}, zr, X = class e {
|
|
2510
2590
|
constructor() {
|
|
2511
2591
|
this.stack = [], this.boundPointerDown = null;
|
|
2512
2592
|
}
|
|
@@ -2558,7 +2638,7 @@ var nn = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"
|
|
|
2558
2638
|
t !== -1 && this.stack.splice(t, 1);
|
|
2559
2639
|
}
|
|
2560
2640
|
};
|
|
2561
|
-
|
|
2641
|
+
zr = X, zr._instance = null;
|
|
2562
2642
|
//#endregion
|
|
2563
2643
|
//#region src/components/utils/popover/popover.const.ts
|
|
2564
2644
|
var Z = {
|
|
@@ -2566,15 +2646,16 @@ var Z = {
|
|
|
2566
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)]",
|
|
2567
2647
|
popoverContainerOpened: "opacity-100 pointer-events-auto p-1.5 max-h-(--max-height) border-none",
|
|
2568
2648
|
popoverOverlay: "hidden bg-dark",
|
|
2569
|
-
items: "overflow-y-auto overscroll-contain"
|
|
2570
|
-
|
|
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 = {
|
|
2571
2652
|
popover: "relative",
|
|
2572
2653
|
popoverContainer: "flex-row top-0 min-w-max w-max p-1 mobile:absolute"
|
|
2573
|
-
},
|
|
2654
|
+
}, Vr = (e) => `level-${e}`, Q = /* @__PURE__ */ function(e) {
|
|
2574
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;
|
|
2575
2656
|
}({}), $ = /* @__PURE__ */ function(e) {
|
|
2576
2657
|
return e.Closed = "closed", e.ClosedOnActivate = "closed-on-activate", e;
|
|
2577
|
-
}({}),
|
|
2658
|
+
}({}), Hr = class extends Re {
|
|
2578
2659
|
get itemsDefault() {
|
|
2579
2660
|
return this.items.filter((e) => e instanceof G);
|
|
2580
2661
|
}
|
|
@@ -2582,7 +2663,7 @@ var Z = {
|
|
|
2582
2663
|
super(), this.params = e, this.itemsRenderParams = t, this.listeners = new Oe(), this.messages = {
|
|
2583
2664
|
nothingFound: "Nothing found",
|
|
2584
2665
|
search: "Search"
|
|
2585
|
-
}, 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());
|
|
2586
2667
|
}
|
|
2587
2668
|
getElement() {
|
|
2588
2669
|
return this.nodes.popover;
|
|
@@ -2596,12 +2677,12 @@ var Z = {
|
|
|
2596
2677
|
show() {
|
|
2597
2678
|
var e;
|
|
2598
2679
|
let t = this.nodes.popover;
|
|
2599
|
-
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();
|
|
2600
2681
|
let { trigger: n } = this.params;
|
|
2601
2682
|
((e = this.params.nestingLevel) == null ? 0 : e) === 0 && n !== void 0 && X.instance.register(this, n);
|
|
2602
2683
|
}
|
|
2603
2684
|
hide() {
|
|
2604
|
-
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);
|
|
2605
2686
|
}
|
|
2606
2687
|
destroy() {
|
|
2607
2688
|
var e, t;
|
|
@@ -2621,10 +2702,10 @@ var Z = {
|
|
|
2621
2702
|
buildItems(e) {
|
|
2622
2703
|
return e.map((e) => {
|
|
2623
2704
|
switch (e.type) {
|
|
2624
|
-
case
|
|
2625
|
-
case
|
|
2626
|
-
case
|
|
2627
|
-
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]);
|
|
2628
2709
|
}
|
|
2629
2710
|
});
|
|
2630
2711
|
}
|
|
@@ -2673,6 +2754,10 @@ var Z = {
|
|
|
2673
2754
|
setOpenLeft(e) {
|
|
2674
2755
|
e ? this.nodes.popover.setAttribute(a.popoverOpenLeft, "true") : this.nodes.popover.removeAttribute(a.popoverOpenLeft);
|
|
2675
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
|
+
}
|
|
2676
2761
|
hasNode(e) {
|
|
2677
2762
|
return this.nodes.popover.contains(e);
|
|
2678
2763
|
}
|
|
@@ -2685,11 +2770,17 @@ var Z = {
|
|
|
2685
2770
|
let o = document.createElement("div");
|
|
2686
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;
|
|
2687
2772
|
let s = document.createElement("div");
|
|
2688
|
-
|
|
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), {
|
|
2689
2778
|
popover: n,
|
|
2690
2779
|
popoverContainer: i,
|
|
2691
2780
|
nothingFoundMessage: o,
|
|
2692
|
-
items: s
|
|
2781
|
+
items: s,
|
|
2782
|
+
scrollHazeTop: c,
|
|
2783
|
+
scrollHazeBottom: l
|
|
2693
2784
|
};
|
|
2694
2785
|
}
|
|
2695
2786
|
appendItemElements() {
|
|
@@ -2702,12 +2793,12 @@ var Z = {
|
|
|
2702
2793
|
};
|
|
2703
2794
|
//#endregion
|
|
2704
2795
|
//#region src/components/utils/popover/popover-position.ts
|
|
2705
|
-
function
|
|
2706
|
-
return e <= t ? !1 : e <= n
|
|
2796
|
+
function Ur(e, t, n) {
|
|
2797
|
+
return e <= t ? !1 : e <= n;
|
|
2707
2798
|
}
|
|
2708
|
-
function
|
|
2799
|
+
function Wr(e) {
|
|
2709
2800
|
var t;
|
|
2710
|
-
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;
|
|
2711
2802
|
return {
|
|
2712
2803
|
top: g,
|
|
2713
2804
|
left: re + r.width > _ + o.x ? Math.max(v + o.x, _ + o.x - r.width) : re,
|
|
@@ -2717,7 +2808,7 @@ function jr(e) {
|
|
|
2717
2808
|
}
|
|
2718
2809
|
//#endregion
|
|
2719
2810
|
//#region src/components/utils/popover/popover-desktop.ts
|
|
2720
|
-
var
|
|
2811
|
+
var Gr = class e extends Hr {
|
|
2721
2812
|
setLeftAlignElement(e) {
|
|
2722
2813
|
this.leftAlignElement = e;
|
|
2723
2814
|
}
|
|
@@ -2733,7 +2824,7 @@ var Mr = class e extends kr {
|
|
|
2733
2824
|
var t;
|
|
2734
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;
|
|
2735
2826
|
this.items.forEach((e) => {
|
|
2736
|
-
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);
|
|
2737
2828
|
e.toggleHidden(a);
|
|
2738
2829
|
}), this._size = void 0, !n && i.length > 0 ? this.reorderItemsByRank(i) : n && this.originalItemOrder !== void 0 && this.restoreOriginalItemOrder();
|
|
2739
2830
|
for (let e of this.promotedSeparators) e.remove();
|
|
@@ -2763,7 +2854,7 @@ var Mr = class e extends kr {
|
|
|
2763
2854
|
this.promotedSeparators.push(n), (c = this.nodes.items) == null || c.appendChild(n), this.appendPromotedGroupElements(t);
|
|
2764
2855
|
}
|
|
2765
2856
|
}
|
|
2766
|
-
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)) {
|
|
2767
2858
|
let { top: e, left: t, openTop: n, openLeft: r } = this.calculatePosition();
|
|
2768
2859
|
this.nodes.popover.style.top = `${e}px`, this.nodes.popover.style.left = `${t}px`, this.setOpenTop(n), this.setOpenLeft(r);
|
|
2769
2860
|
}
|
|
@@ -2771,7 +2862,7 @@ var Mr = class e extends kr {
|
|
|
2771
2862
|
(t = this.flipper) != null && t.isActivated && (this.flipper.deactivate(), this.flipper.activate(d), d.length > 0 && this.flipper.focusItem(0, { skipNextTab: !0 }));
|
|
2772
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;
|
|
2773
2864
|
let r = e.flipper;
|
|
2774
|
-
r === void 0 ? this.flipper = new
|
|
2865
|
+
r === void 0 ? this.flipper = new Lt({
|
|
2775
2866
|
items: this.flippableElements,
|
|
2776
2867
|
focusedItemClass: W.focused,
|
|
2777
2868
|
allowedKeys: [
|
|
@@ -2811,7 +2902,7 @@ var Mr = class e extends kr {
|
|
|
2811
2902
|
this.nodes.popover.style.setProperty("--width", t + "px");
|
|
2812
2903
|
}
|
|
2813
2904
|
if (!this.trigger) {
|
|
2814
|
-
let { openTop: e, openLeft: t } =
|
|
2905
|
+
let { openTop: e, openLeft: t } = Wr({
|
|
2815
2906
|
anchor: this.nodes.popoverContainer.getBoundingClientRect(),
|
|
2816
2907
|
popoverSize: n,
|
|
2817
2908
|
scopeBounds: this.scopeElement.getBoundingClientRect(),
|
|
@@ -2848,7 +2939,7 @@ var Mr = class e extends kr {
|
|
|
2848
2939
|
calculatePosition() {
|
|
2849
2940
|
var e, t, n;
|
|
2850
2941
|
let r = (e = this.params.position) == null ? (t = this.trigger) == null ? void 0 : t.getBoundingClientRect() : e;
|
|
2851
|
-
return r ?
|
|
2942
|
+
return r ? Wr({
|
|
2852
2943
|
anchor: r,
|
|
2853
2944
|
popoverSize: this.size,
|
|
2854
2945
|
scopeBounds: this.scopeElement.getBoundingClientRect(),
|
|
@@ -2990,7 +3081,7 @@ var Mr = class e extends kr {
|
|
|
2990
3081
|
}
|
|
2991
3082
|
collectDefaultChildren(e, t, n) {
|
|
2992
3083
|
for (let r of e) {
|
|
2993
|
-
if (r.type !== void 0 && r.type !==
|
|
3084
|
+
if (r.type !== void 0 && r.type !== M.Default) continue;
|
|
2994
3085
|
let e = new G(r);
|
|
2995
3086
|
if (e.name !== void 0 && this.isNamePermanentlyHidden(e.name)) {
|
|
2996
3087
|
e.destroy();
|
|
@@ -3028,10 +3119,10 @@ var Mr = class e extends kr {
|
|
|
3028
3119
|
return e.filter((e) => !(e instanceof G) || e.title === void 0 ? !0 : !n.has(e.title.toLowerCase()));
|
|
3029
3120
|
}
|
|
3030
3121
|
addSearch() {
|
|
3031
|
-
this.search = new
|
|
3122
|
+
this.search = new Rr({
|
|
3032
3123
|
items: this.itemsDefault,
|
|
3033
3124
|
placeholder: this.messages.search
|
|
3034
|
-
}), this.search.on(
|
|
3125
|
+
}), this.search.on(Lr.Search, (e) => {
|
|
3035
3126
|
if (e.query === "") {
|
|
3036
3127
|
this.cleanupPromotedItems(), this.onSearch({
|
|
3037
3128
|
query: e.query,
|
|
@@ -3100,7 +3191,7 @@ var Mr = class e extends kr {
|
|
|
3100
3191
|
this.originalItemOrder = void 0;
|
|
3101
3192
|
}
|
|
3102
3193
|
}
|
|
3103
|
-
},
|
|
3194
|
+
}, Kr = function(e) {
|
|
3104
3195
|
let t = T.make("div");
|
|
3105
3196
|
return t.style.display = "flex", t.style.flexDirection = "column", t.style.gap = "4px", e.forEach((e) => {
|
|
3106
3197
|
let n = T.make("div"), r = e.indexOf(" ");
|
|
@@ -3110,7 +3201,7 @@ var Mr = class e extends kr {
|
|
|
3110
3201
|
} else n.appendChild(document.createTextNode(e));
|
|
3111
3202
|
t.appendChild(n);
|
|
3112
3203
|
}), t;
|
|
3113
|
-
},
|
|
3204
|
+
}, qr, Jr = class {
|
|
3114
3205
|
constructor({ api: e }) {
|
|
3115
3206
|
this.i18nAPI = e.i18n, this.blocksAPI = e.blocks, this.selectionAPI = e.selection, this.toolsAPI = e.tools, this.caretAPI = e.caret, this.i18nInstance = {
|
|
3116
3207
|
t: (e, t) => this.i18nAPI.t(e),
|
|
@@ -3119,7 +3210,7 @@ var Mr = class e extends kr {
|
|
|
3119
3210
|
}
|
|
3120
3211
|
async render() {
|
|
3121
3212
|
var e = this;
|
|
3122
|
-
let t =
|
|
3213
|
+
let t = Xe.get();
|
|
3123
3214
|
if (t === null) return [];
|
|
3124
3215
|
let n = e.blocksAPI.getBlockByElement(t.anchorNode);
|
|
3125
3216
|
if (n === void 0) return [];
|
|
@@ -3158,10 +3249,10 @@ var Mr = class e extends kr {
|
|
|
3158
3249
|
};
|
|
3159
3250
|
}
|
|
3160
3251
|
};
|
|
3161
|
-
|
|
3252
|
+
qr = Jr, qr.isInline = !0;
|
|
3162
3253
|
//#endregion
|
|
3163
3254
|
//#region src/tools/toggle/constants.ts
|
|
3164
|
-
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 = {
|
|
3165
3256
|
toggleOpen: "data-blok-toggle-open",
|
|
3166
3257
|
toggleArrow: "data-blok-toggle-arrow",
|
|
3167
3258
|
toggleContent: "data-blok-toggle-content",
|
|
@@ -3169,4 +3260,4 @@ var Ir = "toggle", Lr = "tools.toggle.placeholder", Rr = "tools.toggle.bodyPlace
|
|
|
3169
3260
|
toggleChildren: "data-blok-toggle-children"
|
|
3170
3261
|
};
|
|
3171
3262
|
//#endregion
|
|
3172
|
-
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 };
|