@layers-app/editor 2.3.5 → 2.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.js +6 -6
  3. package/dist/{layers.Zyqql1eX.js → layers.-1o2ZV0j.js} +1 -1
  4. package/dist/{layers.Dn19xoY_.js → layers.-rXv7s2M.js} +3 -3
  5. package/dist/{layers.xID5X81j.js → layers.00eOWvm5.js} +1 -1
  6. package/dist/{layers.XOsXY-sg.js → layers.1A_eaCnl.js} +1 -1
  7. package/dist/{layers.D2qBFxgd.js → layers.1Smhn6wY.js} +1 -1
  8. package/dist/{layers.BXR7Q4O0.js → layers.1VdCEMT6.js} +1 -1
  9. package/dist/{layers.D4uF4iwo.js → layers.1hMwQFlO.js} +1 -1
  10. package/dist/{layers.BVWiN8dT.js → layers.2RpC8eO3.js} +1 -1
  11. package/dist/{layers.Ug1GskGJ.js → layers.3BeaWe4e.js} +1 -1
  12. package/dist/{layers.CRfxFI67.js → layers.3sKVLyh3.js} +1 -1
  13. package/dist/{layers.B0rfzZWu.js → layers.5LUAqt7C.js} +1 -1
  14. package/dist/{layers.DhAt8V0V.js → layers.6mNCfqta.js} +1 -1
  15. package/dist/{layers.-VlIwa08.js → layers.B0uZIURE.js} +1 -1
  16. package/dist/{layers.D2wLh8jH.js → layers.B2BjLybu.js} +138 -138
  17. package/dist/{layers.Cwzvd6Kr.js → layers.B2MNzoK5.js} +2 -2
  18. package/dist/{layers.2bzzLfwP.js → layers.B4eNlOqq.js} +1 -1
  19. package/dist/{layers.BTlkMiGU.js → layers.B4pluQaD.js} +1 -1
  20. package/dist/{layers.DbGFtvlR.js → layers.B6trZpBv.js} +2 -2
  21. package/dist/{layers.l3OlQTgS.js → layers.B8V5GOl1.js} +1 -1
  22. package/dist/{layers.B6HtJ2cK.js → layers.BATI-UoQ.js} +1 -1
  23. package/dist/{layers.17DOAqqj.js → layers.BBWx7x16.js} +1 -1
  24. package/dist/{layers.CuQ5yUXE.js → layers.BC7tTwRn.js} +1 -1
  25. package/dist/{layers.BF6vXUH7.js → layers.BDK10TNl.js} +2 -2
  26. package/dist/{layers.Bk3yddNB.js → layers.BEKkI_YT.js} +2 -2
  27. package/dist/{layers.DaLxSEou.js → layers.BEbGhx1G.js} +1 -1
  28. package/dist/{layers.CBGG3KL2.js → layers.BEeuugk0.js} +1 -1
  29. package/dist/{layers.B15WP6qd.js → layers.BIJVmJnW.js} +1 -1
  30. package/dist/{layers.QHxbhMk_.js → layers.BKbi7VzA.js} +24 -24
  31. package/dist/{layers.BC0gWTaw.js → layers.BLQ3Gjr2.js} +3 -3
  32. package/dist/{layers.Dg-BSviK.js → layers.BLi3BbOC.js} +1 -1
  33. package/dist/{layers.B4C_CiFp.js → layers.BN5AHBnu.js} +1 -1
  34. package/dist/{layers.CtMvBJBS.js → layers.BOesLo59.js} +3 -3
  35. package/dist/{layers.BIZNZsgb.js → layers.BRfg-ZHz.js} +5 -5
  36. package/dist/{layers.DRhofXpI.js → layers.BRv10NFB.js} +1 -1
  37. package/dist/{layers.DtmjjMZC.js → layers.BTOuuL6n.js} +1 -1
  38. package/dist/{layers.DMpvcdGz.js → layers.BUJejW50.js} +1 -1
  39. package/dist/{layers.BKkZ8xmN.js → layers.BVKESWV6.js} +1 -1
  40. package/dist/{layers.BdMpp7lE.js → layers.BYnxtXL-.js} +3 -3
  41. package/dist/{layers.9QrBwKsF.js → layers.B_ZhHb3f.js} +1 -1
  42. package/dist/{layers.DhSlVkxD.js → layers.Ba1Px01T.js} +2 -2
  43. package/dist/{layers.DXmZcpoP.js → layers.BbgMLw5O.js} +1 -1
  44. package/dist/{layers.DFFceBll.js → layers.BcHljpZ6.js} +1 -1
  45. package/dist/{layers.Cu1LU2Ec.js → layers.BdPpIds5.js} +1 -1
  46. package/dist/{layers.DZGK4XDT.js → layers.BhUp9_rL.js} +1 -1
  47. package/dist/{layers.DAxpLuZ_.js → layers.Bj5H3cVR.js} +2 -2
  48. package/dist/{layers.C-VUvnab.js → layers.BlIMCLkr.js} +1 -1
  49. package/dist/{layers.DHu3WKbV.js → layers.BmCW53sB.js} +1 -1
  50. package/dist/{layers.C823iYdQ.js → layers.BpUWDwE0.js} +1 -1
  51. package/dist/{layers.D9OckQ1d.js → layers.Broy6VvA.js} +1 -1
  52. package/dist/{layers.C4kK4zJF.js → layers.BuHPrQEv.js} +1 -1
  53. package/dist/{layers.QAZr2nnm.js → layers.BvTpUhX5.js} +1 -1
  54. package/dist/{layers.ChD0vCTn.js → layers.Bvn_2zxv.js} +1 -1
  55. package/dist/{layers.BQaxFGFv.js → layers.BwHx7C0r.js} +1 -1
  56. package/dist/{layers.Bx_ZcWeM.js → layers.BxytQX0F.js} +1 -1
  57. package/dist/{layers.OEJw6wn-.js → layers.ByQPRTpv.js} +1 -1
  58. package/dist/{layers.PYk-Em47.js → layers.C1ajMI3P.js} +1 -1
  59. package/dist/{layers.CZl3nnA0.js → layers.C3ZzjoyG.js} +1 -1
  60. package/dist/{layers.DP2R_RPi.js → layers.C3oPIK-F.js} +1 -1
  61. package/dist/{layers.86qWfXQi.js → layers.C56Z5xmr.js} +1 -1
  62. package/dist/{layers.6VTAjKBI.js → layers.C5B0a2vM.js} +1 -1
  63. package/dist/{layers.Dbob_7EM.js → layers.C75V_eG2.js} +2 -2
  64. package/dist/{layers.BZGj5Vvb.js → layers.CAGM2Kd7.js} +1 -1
  65. package/dist/{layers.VYY450Oj.js → layers.CGQPuGeO.js} +2 -2
  66. package/dist/{layers.2JIsr3yt.js → layers.CGSaOXvp.js} +1 -1
  67. package/dist/{layers.B6hnUriW.js → layers.CGlkKWma.js} +1 -1
  68. package/dist/{layers.tOcZDO9n.js → layers.CHlLisYT.js} +1 -1
  69. package/dist/{layers.B7hI2AQs.js → layers.CIvMx5hs.js} +1 -1
  70. package/dist/{layers.Bkv2PBuz.js → layers.CKmeC_5a.js} +1 -1
  71. package/dist/{layers.abv2ZTYE.js → layers.CLEtymbE.js} +1 -1
  72. package/dist/{layers.DiY6E5_8.js → layers.CLTXdSTv.js} +2 -2
  73. package/dist/{layers.CaTPheMV.js → layers.CLw94OO7.js} +1 -1
  74. package/dist/{layers.Duy_rICR.js → layers.CMFsbYb2.js} +1 -1
  75. package/dist/{layers.CdXjjB-I.js → layers.CMkRFTyj.js} +1 -1
  76. package/dist/{layers.DfX-U489.js → layers.CNAhw7b2.js} +1 -1
  77. package/dist/{layers.RsYVppoA.js → layers.COIZ4qe0.js} +1 -1
  78. package/dist/{layers.D2p4qgjB.js → layers.COXXuQRj.js} +1 -1
  79. package/dist/{layers.CCoVuv41.js → layers.CSFymMhp.js} +187 -187
  80. package/dist/{layers.CjS5US5X.js → layers.CSHk0AUR.js} +1 -1
  81. package/dist/{layers.FBRhxm5w.js → layers.CSyjfnn1.js} +1 -1
  82. package/dist/{layers.W6xf19CY.js → layers.CTIRwTjF.js} +1 -1
  83. package/dist/{layers.FUOopWkf.js → layers.CVeUDdpE.js} +1 -1
  84. package/dist/{layers.0vgtum76.js → layers.CVrXvk6O.js} +1 -1
  85. package/dist/{layers.yQIceN-g.js → layers.CWhTHBNr.js} +1 -1
  86. package/dist/{layers.B4mf6d5h.js → layers.CWpjQgFx.js} +1 -1
  87. package/dist/{layers.BeTgCSs7.js → layers.CX1A7y5F.js} +1 -1
  88. package/dist/{layers.BihEbjyD.js → layers.CXBFyAby.js} +3 -3
  89. package/dist/{layers.DwMwTyQj.js → layers.CY0fm2_R.js} +1 -1
  90. package/dist/{layers.D0axh6Co.js → layers.CZj7i0E-.js} +1 -1
  91. package/dist/{layers.D06gLg3w.js → layers.C_E6QdEv.js} +1 -1
  92. package/dist/{layers.HPMZOLEE.js → layers.CdsaNUq_.js} +1 -1
  93. package/dist/{layers.BN7MKbFn.js → layers.Cf2EpWm_.js} +1 -1
  94. package/dist/{layers.B5sisCK-.js → layers.ChK-I6F5.js} +1 -1
  95. package/dist/{layers.DxngWEtn.js → layers.CiGqwSqw.js} +1 -1
  96. package/dist/{layers.CNnPs2if.js → layers.CjS2RT5v.js} +1 -1
  97. package/dist/layers.ClCAN7fV.js +8 -0
  98. package/dist/layers.ClvZogQP.js +6 -0
  99. package/dist/{layers.BfFyHpnJ.js → layers.CnGvF1Uk.js} +1 -1
  100. package/dist/{layers.2ZWfG7Kc.js → layers.CnQyU8_F.js} +1 -1
  101. package/dist/{layers.tNdUk2Ti.js → layers.CnWXFqcS.js} +3 -3
  102. package/dist/{layers.LzTzcphk.js → layers.CnpH_yP2.js} +1 -1
  103. package/dist/{layers.TWd_cgiD.js → layers.CpFUl4b3.js} +2 -2
  104. package/dist/{layers.DhH4r58e.js → layers.CuqY2WsB.js} +1 -1
  105. package/dist/{layers.BjMXZ7Hq.js → layers.CvlvNnR6.js} +1 -1
  106. package/dist/{layers.Cvas4L-Y.js → layers.CwfL_M3o.js} +1 -1
  107. package/dist/{layers.pz202BJa.js → layers.CxXPCjw0.js} +1 -1
  108. package/dist/{layers.NTPlff8Z.js → layers.CyOIrrmk.js} +1 -1
  109. package/dist/{layers.BItTEMRl.js → layers.CzugFsb-.js} +1 -1
  110. package/dist/{layers.CsDm4Rcf.js → layers.D-JtfzF-.js} +1 -1
  111. package/dist/{layers.Dl793PNA.js → layers.D-rPRpQ-.js} +1 -1
  112. package/dist/{layers.D09a77gC.js → layers.D-w8NGAs.js} +1 -1
  113. package/dist/{layers.FBJd5wXM.js → layers.D0jUWoyo.js} +4 -4
  114. package/dist/{layers.CDu9Fedl.js → layers.D1_dB4PJ.js} +1 -1
  115. package/dist/{layers.D8-qfMHo.js → layers.D1_e0RfA.js} +3 -3
  116. package/dist/layers.D2rlseYh.js +1 -0
  117. package/dist/{layers.DwTFxZ0P.js → layers.D313IKz7.js} +1 -1
  118. package/dist/{layers.DneV1Ycl.js → layers.D3tWo4uZ.js} +1 -1
  119. package/dist/{layers.Dr4y8wct.js → layers.D57iWCEZ.js} +1 -1
  120. package/dist/{layers.DyyWmFvG.js → layers.D6Eoj8wk.js} +1 -1
  121. package/dist/{layers.BMDftC1Y.js → layers.D6qXtflV.js} +1 -1
  122. package/dist/{layers.kNnmOm6h.js → layers.D77_tDLy.js} +1 -1
  123. package/dist/{layers.CU_vQfRq.js → layers.D78FwZ6J.js} +1 -1
  124. package/dist/{layers.Btr7wO_I.js → layers.D8I6CVsJ.js} +1 -1
  125. package/dist/{layers.DJm4Qf-9.js → layers.D9UKUCx-.js} +1 -1
  126. package/dist/{layers.0c6wXC0n.js → layers.DALK7P1x.js} +1 -1
  127. package/dist/{layers.C6dgM4o8.js → layers.DCir5pv1.js} +1 -1
  128. package/dist/{layers.B6-Ov7jz.js → layers.DCrfpsbD.js} +1 -1
  129. package/dist/{layers.L-n3e2jf.js → layers.DDDDIW6s.js} +1 -1
  130. package/dist/{layers.nFMAj0WU.js → layers.DDFIbYXo.js} +1 -1
  131. package/dist/{layers.B44x6J9u.js → layers.DDdMW8NZ.js} +1 -1
  132. package/dist/{layers.B7GmOQb8.js → layers.DEVxW2mz.js} +1 -1
  133. package/dist/{layers.BWlAwfde.js → layers.DF1rBLTN.js} +1 -1
  134. package/dist/{layers.vlJZw41F.js → layers.DFc0rH1f.js} +1 -1
  135. package/dist/{layers.D5dPGsVY.js → layers.DFyoJT9Q.js} +1 -1
  136. package/dist/{layers.BUNnlIv8.js → layers.DHxBGCEw.js} +1 -1
  137. package/dist/{layers.CicSmn28.js → layers.DIyfNOEP.js} +1 -1
  138. package/dist/{layers.CQ1Gv2d_.js → layers.DJYz8lgJ.js} +1 -1
  139. package/dist/{layers.-sX0WmQt.js → layers.DKx5tKpK.js} +1 -1
  140. package/dist/{layers.CVnJv17O.js → layers.DMC6fMp7.js} +1 -1
  141. package/dist/{layers.CmbxAH_W.js → layers.DMvoUqv3.js} +1 -1
  142. package/dist/{layers.D1utucmY.js → layers.DOs4PDYn.js} +1 -1
  143. package/dist/{layers.CCqW4TYW.js → layers.DT2p0Q3C.js} +1 -1
  144. package/dist/{layers.8SzZ62td.js → layers.DUHeG5sd.js} +1 -1
  145. package/dist/{layers.CKibrigV.js → layers.DWtuthjL.js} +1 -1
  146. package/dist/{layers.rkBh2_24.js → layers.DXyoBe6f.js} +1 -1
  147. package/dist/{layers.C69ZxLar.js → layers.DY-isf34.js} +1 -1
  148. package/dist/{layers.CRQovLVV.js → layers.DYOifZnj.js} +3 -3
  149. package/dist/{layers.Bh2i6eZ5.js → layers.D_zaEMut.js} +1 -1
  150. package/dist/{layers.3m_izwG9.js → layers.Db1C03zZ.js} +1 -1
  151. package/dist/{layers.C61WJJHF.js → layers.DcpUpC3Z.js} +1 -1
  152. package/dist/{layers.DP0wVN8o.js → layers.DdFdoHtN.js} +1 -1
  153. package/dist/{layers.C-jqGjpM.js → layers.DgOLNaaP.js} +1 -1
  154. package/dist/{layers.DNjRCLMi.js → layers.Dga646ly.js} +3 -3
  155. package/dist/{layers.CNUN3x_C.js → layers.DjIAvoEH.js} +1 -1
  156. package/dist/{layers.CT7Of9Sb.js → layers.Dl7cCyy3.js} +1 -1
  157. package/dist/{layers.D09E3UyF.js → layers.DlRZb_pH.js} +1 -1
  158. package/dist/{layers.CdMoNgHT.js → layers.DpmUBcsq.js} +1 -1
  159. package/dist/{layers.DpAK2gd6.js → layers.Dr0PTEpT.js} +1 -1
  160. package/dist/{layers.DdbXZ1gb.js → layers.DuRWKWBB.js} +1 -1
  161. package/dist/{layers.C6xQn98q.js → layers.DveBi9_t.js} +1 -1
  162. package/dist/{layers.BQxQ_VHS.js → layers.Dvp_hlJt.js} +1 -1
  163. package/dist/{layers.CXwi01IS.js → layers.Dw22_RZw.js} +3 -3
  164. package/dist/{layers.C1_3pIGA.js → layers.DwJuhYqO.js} +1 -1
  165. package/dist/{layers.C1Sn3_x5.js → layers.Dxg4iCau.js} +3 -3
  166. package/dist/layers.Eo0EOPKx.js +1 -0
  167. package/dist/{layers.C4Icfx-V.js → layers.G-o2C_LB.js} +1 -1
  168. package/dist/{layers.CGY5P1_D.js → layers.G4SX7Rt8.js} +1 -1
  169. package/dist/{layers.CydZYFGx.js → layers.GCJ6uBwn.js} +1 -1
  170. package/dist/{layers.D-JVc3kQ.js → layers.Jt-RQoPD.js} +1 -1
  171. package/dist/{layers.qcn8dPut.js → layers.MBRBpiik.js} +1 -1
  172. package/dist/{layers.DhZ_TFJ0.js → layers.N0GFXX4Z.js} +1 -1
  173. package/dist/{layers.C5rFXigo.js → layers.NEkBdrkL.js} +13500 -13892
  174. package/dist/{layers.BE5dGeDX.js → layers.Nx5vTN5X.js} +1 -1
  175. package/dist/{layers.DZLCGtWj.js → layers.OEGF24wP.js} +1 -1
  176. package/dist/{layers.BizaKgK4.js → layers.OXvrDItE.js} +1 -1
  177. package/dist/{layers.xbqkY4fF.js → layers.RJM7RM_M.js} +7 -7
  178. package/dist/{layers.BhGOdtE4.js → layers.Rf0eYFNJ.js} +1 -1
  179. package/dist/{layers.BBzLQy3M.js → layers.Sm16GKno.js} +1 -1
  180. package/dist/{layers.B1uaEePl.js → layers.SnIAnNW2.js} +1 -1
  181. package/dist/{layers.CJkt25xp.js → layers.Vn9L2vsY.js} +1 -1
  182. package/dist/{layers.Dh-SmjOb.js → layers.VsShnbnV.js} +1 -1
  183. package/dist/{layers.CxIb0x7b.js → layers.XHnTdxqK.js} +1 -1
  184. package/dist/{layers.hQQwRdmZ.js → layers.XXNPXOs3.js} +1 -1
  185. package/dist/{layers.DvbVUIKW.js → layers.XzYd5483.js} +1 -1
  186. package/dist/{layers.DcpdxBGE.js → layers._BpjPfQJ.js} +1 -1
  187. package/dist/{layers.2cgFKeRS.js → layers.bU0ub6M5.js} +1 -1
  188. package/dist/layers.cxLUG6ld.js +1 -0
  189. package/dist/{layers.DNPMShS8.js → layers.dFiHtMHm.js} +1 -1
  190. package/dist/{layers.Cr_zK84w.js → layers.fS1JxRWP.js} +1 -1
  191. package/dist/{layers.X6IXk5Ee.js → layers.hHhY-gFl.js} +8 -8
  192. package/dist/{layers.DKKB1GnT.js → layers.iY5skSnI.js} +1 -1
  193. package/dist/{layers.BoKVPhkA.js → layers.keC_6Q6C.js} +4 -4
  194. package/dist/{layers.Bisk-KjY.js → layers.lBznb8b8.js} +3 -3
  195. package/dist/layers.lJI6GsUA.js +1 -0
  196. package/dist/{layers.mBZAmKrM.js → layers.nFLxmDaL.js} +1 -1
  197. package/dist/{layers.CU2qQ4d6.js → layers.nFiJch1f.js} +1 -1
  198. package/dist/{layers.DTV8sNFP.js → layers.nHa83MQT.js} +4 -4
  199. package/dist/{layers.D-LT7f4r.js → layers.nKCyAA7X.js} +1 -1
  200. package/dist/{layers.DrsuDOat.js → layers.oQMxkxLx.js} +1 -1
  201. package/dist/{layers.D_OIYjde.js → layers.pLdyijmL.js} +102 -561
  202. package/dist/{layers.CHSvvNvL.js → layers.sfQ1-28y.js} +1 -1
  203. package/dist/{layers.BmFjermk.js → layers.un2GvsbJ.js} +1 -1
  204. package/dist/{layers.THKMKVT6.js → layers.vo9Hg_P-.js} +1 -1
  205. package/dist/{layers.k5vXqBeZ.js → layers.wbdLohFF.js} +1 -1
  206. package/dist/{layers.B-a377ag.js → layers.xGFRGQya.js} +1 -1
  207. package/dist/{layers.CCnDiTT2.js → layers.ypLCi9gv.js} +1 -1
  208. package/dist/{layers.DD7ggCz9.js → layers.zRmQU3vx.js} +1 -1
  209. package/package.json +1 -1
  210. package/dist/layers.BWIbEOqS.js +0 -8
  211. package/dist/layers.CGvy11qi.js +0 -1
  212. package/dist/layers.DR2ZRDRj.js +0 -1
  213. package/dist/layers.DVC1WbzR.js +0 -6
  214. package/dist/layers.NksOW9p9.js +0 -1
  215. package/dist/layers.g__NfmoJ.js +0 -1
@@ -1,11 +1,11 @@
1
1
  import { jsx as n, jsxs as N, Fragment as B } from "react/jsx-runtime";
2
- import { useState as y, useCallback as C, useRef as ee, useEffect as S, useMemo as te, useContext as Ie } from "react";
3
- import { useTranslation as V } from "react-i18next";
4
- import { useLexicalComposerContext as G } from "@lexical/react/LexicalComposerContext";
5
- import { Menu as R, Flex as J, Popover as z, Stack as He, Button as $, Box as Be, LoadingOverlay as Ve } from "@mantine/core";
6
- import { $getNodeByKey as T, COMMAND_PRIORITY_LOW as Ge, $setSelection as Xe } from "lexical";
7
- import { y as Ye, z as Ze, B as qe, D as Je, F as he, G as K, J as Qe, L as Ke, A as oe, K as et, P as tt, H as M, Q as Ce, n as De, S as Le, U as Ne, V as E, N as Oe, W as ot, X as nt, q as we, Y as it, C as Se, Z as at, _ as rt, a0 as Q, a1 as lt, a2 as st, a3 as dt, a4 as ct, a5 as ut, a6 as pt, R as mt, m as be, O as gt, a7 as ft, k as ke, a8 as ve, o as ht, a9 as wt, aa as bt } from "./layers.C5rFXigo.js";
8
- import { AttachmentsGalleryModal as Pe, showErrorNotification as kt } from "@layers-app/shared";
2
+ import { useState as y, useCallback as C, useRef as ee, useEffect as P, useMemo as te, useContext as Ie } from "react";
3
+ import { useTranslation as G } from "react-i18next";
4
+ import { useLexicalComposerContext as V } from "@lexical/react/LexicalComposerContext";
5
+ import { Menu as R, Flex as J, Popover as z, Stack as He, Button as j, Box as Be, LoadingOverlay as Ge } from "@mantine/core";
6
+ import { $getNodeByKey as x, COMMAND_PRIORITY_LOW as Ve, $setSelection as Xe } from "lexical";
7
+ import { B as Ye, D as Ze, F as qe, G as Je, J as he, L as K, N as Qe, P as Ke, A as oe, n as et, Q as tt, H as M, R as Ce, q as De, S as Le, U as Ne, V as T, o as Oe, W as ot, X as nt, s as we, Y as it, C as Pe, Z as rt, _ as at, a0 as Q, a1 as lt, a2 as st, a3 as dt, a4 as ct, a5 as ut, a6 as pt, m as mt, k as ke, O as gt, a7 as ft, K as be, a8 as ve, r as ht, a9 as wt, aa as kt } from "./layers.NEkBdrkL.js";
8
+ import { AttachmentsGalleryModal as Se, showErrorNotification as bt } from "@layers-app/shared";
9
9
  import { useLexicalEditable as ne } from "@lexical/react/useLexicalEditable";
10
10
  import { useDisclosure as H } from "@mantine/hooks";
11
11
  import "@lexical/react/LexicalDecoratorBlockNode";
@@ -29,64 +29,64 @@ function ie(e) {
29
29
  return "image";
30
30
  }
31
31
  }
32
- async function ae(e, i) {
32
+ async function re(e, i) {
33
33
  const t = await fetch(e);
34
34
  if (!t.ok)
35
35
  throw new Error("fetch failed");
36
- const a = await t.blob(), r = URL.createObjectURL(a);
36
+ const r = await t.blob(), a = URL.createObjectURL(r);
37
37
  try {
38
- vt(r, i);
38
+ vt(a, i);
39
39
  } finally {
40
- setTimeout(() => URL.revokeObjectURL(r), 0);
40
+ setTimeout(() => URL.revokeObjectURL(a), 0);
41
41
  }
42
42
  }
43
43
  function yt({
44
44
  editor: e,
45
45
  nodeKey: i,
46
46
  href: t,
47
- onClose: a
47
+ onClose: r
48
48
  }) {
49
- const [r, s] = y(
49
+ const [a, s] = y(
50
50
  () => Ye(t)
51
- ), [l, d] = y(() => Ze(t)), [I, b] = y(!1), p = C((c) => {
52
- s(c), b(!1);
51
+ ), [l, d] = y(() => Ze(t)), [I, k] = y(!1), p = C((c) => {
52
+ s(c), k(!1);
53
53
  }, []), m = C((c) => {
54
- d(c), b(!1);
54
+ d(c), k(!1);
55
55
  }, []), h = C(() => {
56
- const c = qe(l.trim(), r);
57
- if (!c || !Je(c, r)) {
58
- b(!0);
56
+ const c = qe(l.trim(), a);
57
+ if (!c || !Je(c, a)) {
58
+ k(!0);
59
59
  return;
60
60
  }
61
- he(e, i, K(c)), a();
62
- }, [e, i, l, r, a]), v = C(() => {
63
- he(e, i, ""), a();
64
- }, [e, i, a]), k = C(
61
+ he(e, i, K(c)), r();
62
+ }, [e, i, l, a, r]), v = C(() => {
63
+ he(e, i, ""), r();
64
+ }, [e, i, r]), b = C(
65
65
  (c) => {
66
- c.key === "Enter" ? (c.preventDefault(), h()) : c.key === "Escape" && (c.preventDefault(), a());
66
+ c.key === "Enter" ? (c.preventDefault(), h()) : c.key === "Escape" && (c.preventDefault(), r());
67
67
  },
68
- [h, a]
68
+ [h, r]
69
69
  );
70
70
  return {
71
- linkType: r,
71
+ linkType: a,
72
72
  linkUrl: l,
73
73
  error: I,
74
74
  onLinkTypeChange: p,
75
75
  onUrlInputChange: m,
76
- onUrlInputKeyDown: k,
76
+ onUrlInputKeyDown: b,
77
77
  onSave: h,
78
78
  onRemove: v
79
79
  };
80
80
  }
81
- function re({
81
+ function ae({
82
82
  editor: e,
83
83
  nodeKey: i,
84
84
  href: t,
85
- onClose: a,
86
- mobile: r
85
+ onClose: r,
86
+ mobile: a
87
87
  }) {
88
- const s = ee(null), l = yt({ editor: e, nodeKey: i, href: t, onClose: a });
89
- return S(() => {
88
+ const s = ee(null), l = yt({ editor: e, nodeKey: i, href: t, onClose: r });
89
+ return P(() => {
90
90
  var d;
91
91
  (d = s.current) == null || d.focus({ preventScroll: !0 });
92
92
  }, []), /* @__PURE__ */ n(
@@ -96,22 +96,22 @@ function re({
96
96
  linkUrl: l.linkUrl,
97
97
  linkType: l.linkType,
98
98
  error: l.error,
99
- mobile: r,
99
+ mobile: a,
100
100
  onLinkTypeChange: l.onLinkTypeChange,
101
101
  onUrlInputChange: l.onUrlInputChange,
102
102
  onUrlInputKeyDown: l.onUrlInputKeyDown,
103
- onCancel: a,
103
+ onCancel: r,
104
104
  onSave: l.onSave,
105
105
  onRemove: t ? l.onRemove : void 0
106
106
  }
107
107
  );
108
108
  }
109
- function Te({
109
+ function xe({
110
110
  opened: e,
111
111
  onOpenChange: i,
112
112
  t,
113
- onDownload: a,
114
- onDelete: r,
113
+ onDownload: r,
114
+ onDelete: a,
115
115
  hasLink: s,
116
116
  onLinkAction: l
117
117
  }) {
@@ -159,7 +159,7 @@ function Te({
159
159
  {
160
160
  leftSection: /* @__PURE__ */ n(J, { align: "center", justify: "center", c: "gray.6", children: /* @__PURE__ */ n(M, { icon: Ce, size: 16 }) }),
161
161
  onClick: (d) => {
162
- d.stopPropagation(), a();
162
+ d.stopPropagation(), r();
163
163
  },
164
164
  children: t("editor.gallery.download")
165
165
  }
@@ -170,7 +170,7 @@ function Te({
170
170
  color: "red",
171
171
  leftSection: /* @__PURE__ */ n(J, { align: "center", justify: "center", c: "red.6", children: /* @__PURE__ */ n(M, { icon: De, size: 16 }) }),
172
172
  onClick: (d) => {
173
- d.stopPropagation(), r();
173
+ d.stopPropagation(), a();
174
174
  },
175
175
  children: t("editor.contextMenu.delete")
176
176
  }
@@ -182,15 +182,15 @@ function Te({
182
182
  }
183
183
  );
184
184
  }
185
- const Ee = ({
185
+ const Te = ({
186
186
  t: e,
187
187
  src: i,
188
188
  setShown: t,
189
- id: a
189
+ id: r
190
190
  }) => {
191
- const [r, { open: s, close: l }] = H(!1), d = Le(), I = te(() => [
191
+ const [a, { open: s, close: l }] = H(!1), d = Le(), I = te(() => [
192
192
  {
193
- id: !a || a === "0" ? "" : a,
193
+ id: !r || r === "0" ? "" : r,
194
194
  Url: i ?? "",
195
195
  contentType: "image/*",
196
196
  originalFileName: "",
@@ -207,12 +207,12 @@ const Ee = ({
207
207
  deleted: !1,
208
208
  deletedAt: /* @__PURE__ */ new Date()
209
209
  }
210
- ], [i, a]);
210
+ ], [i, r]);
211
211
  return /* @__PURE__ */ N(B, { children: [
212
212
  /* @__PURE__ */ n(
213
- Pe,
213
+ Se,
214
214
  {
215
- opened: r,
215
+ opened: a,
216
216
  onOpenChange: (p) => {
217
217
  p ? s() : l();
218
218
  },
@@ -238,31 +238,31 @@ const Ee = ({
238
238
  src: i,
239
239
  href: t
240
240
  }) => {
241
- const [a] = G(), r = ne(), [s, l] = y(!1), [d, I] = y(!1), [b, p] = y(!1), { t: m } = V();
242
- S(() => {
243
- if (!b) return;
244
- const k = (c) => {
241
+ const [r] = V(), a = ne(), [s, l] = y(!1), [d, I] = y(!1), [k, p] = y(!1), { t: m } = G();
242
+ P(() => {
243
+ if (!k) return;
244
+ const b = (c) => {
245
245
  const w = c.target;
246
246
  w != null && w.closest(".floating-link-dropdown") || w != null && w.closest(".floating-link-type-combobox-dropdown") || p(!1);
247
247
  };
248
- return document.addEventListener("pointerdown", k, !0), () => document.removeEventListener("pointerdown", k, !0);
249
- }, [b]);
248
+ return document.addEventListener("pointerdown", b, !0), () => document.removeEventListener("pointerdown", b, !0);
249
+ }, [k]);
250
250
  const h = C(() => {
251
- a.update(() => {
252
- const k = T(e);
253
- E(k) && k.remove();
251
+ r.update(() => {
252
+ const b = x(e);
253
+ T(b) && b.remove();
254
254
  });
255
- }, [a, e]), v = C(async () => {
255
+ }, [r, e]), v = C(async () => {
256
256
  if (i)
257
257
  try {
258
- await ae(i, ie(i));
258
+ await re(i, ie(i));
259
259
  } catch {
260
260
  }
261
261
  }, [i]);
262
262
  return /* @__PURE__ */ N(
263
263
  z,
264
264
  {
265
- opened: b,
265
+ opened: k,
266
266
  onChange: p,
267
267
  position: "bottom-end",
268
268
  offset: 4,
@@ -274,25 +274,25 @@ const Ee = ({
274
274
  /* @__PURE__ */ n(z.Target, { children: /* @__PURE__ */ N(
275
275
  "div",
276
276
  {
277
- className: `media-actions ${r ? "" : "media-actions--readonly"}`,
277
+ className: `media-actions ${a ? "" : "media-actions--readonly"}`,
278
278
  children: [
279
- /* @__PURE__ */ n(Ee, { t: m, src: i, setShown: () => {
279
+ /* @__PURE__ */ n(Te, { t: m, src: i, setShown: () => {
280
280
  } }),
281
- r && /* @__PURE__ */ N(B, { children: [
281
+ a && /* @__PURE__ */ N(B, { children: [
282
282
  /* @__PURE__ */ n(
283
283
  Oe,
284
284
  {
285
285
  opened: s,
286
286
  setOpened: l,
287
287
  t: m,
288
- editor: a,
288
+ editor: r,
289
289
  nodeKey: e,
290
290
  setShown: () => {
291
291
  }
292
292
  }
293
293
  ),
294
294
  /* @__PURE__ */ n(
295
- Te,
295
+ xe,
296
296
  {
297
297
  opened: d,
298
298
  onOpenChange: I,
@@ -313,9 +313,9 @@ const Ee = ({
313
313
  className: `floating-link-dropdown floating-link-dropdown--${t ? "edit" : "create"}-mode`,
314
314
  "data-test-id": "floating-link-dropdown",
315
315
  children: /* @__PURE__ */ n(
316
- re,
316
+ ae,
317
317
  {
318
- editor: a,
318
+ editor: r,
319
319
  nodeKey: e,
320
320
  href: t,
321
321
  onClose: () => p(!1)
@@ -328,9 +328,9 @@ const Ee = ({
328
328
  );
329
329
  }, Ct = () => {
330
330
  };
331
- function Dt({ nodeKey: e, src: i, id: t, href: a }) {
332
- const { t: r } = V(), [s] = G(), l = ne(), [d, I] = y(!1), [b, p] = y(!1), [m, h] = y(!1);
333
- S(() => {
331
+ function Dt({ nodeKey: e, src: i, id: t, href: r }) {
332
+ const { t: a } = G(), [s] = V(), l = ne(), [d, I] = y(!1), [k, p] = y(!1), [m, h] = y(!1);
333
+ P(() => {
334
334
  if (!m) return;
335
335
  const c = (w) => {
336
336
  const u = w.target;
@@ -340,15 +340,15 @@ function Dt({ nodeKey: e, src: i, id: t, href: a }) {
340
340
  }, [m]);
341
341
  const v = C(() => {
342
342
  p(!1), s.update(() => {
343
- const c = T(e);
344
- if (!E(c)) return;
343
+ const c = x(e);
344
+ if (!T(c)) return;
345
345
  const w = c.getParent();
346
346
  ot(w) ? w.remove() : c.remove();
347
347
  });
348
- }, [s, e]), k = C(async () => {
348
+ }, [s, e]), b = C(async () => {
349
349
  if (i)
350
350
  try {
351
- await ae(i, ie(i));
351
+ await re(i, ie(i));
352
352
  } catch {
353
353
  }
354
354
  }, [i]);
@@ -379,27 +379,27 @@ function Dt({ nodeKey: e, src: i, id: t, href: a }) {
379
379
  },
380
380
  onClick: (c) => c.stopPropagation(),
381
381
  children: [
382
- /* @__PURE__ */ n(Ee, { t: r, src: i, setShown: Ct, id: t }),
382
+ /* @__PURE__ */ n(Te, { t: a, src: i, setShown: Ct, id: t }),
383
383
  l && /* @__PURE__ */ N(B, { children: [
384
384
  /* @__PURE__ */ n(
385
385
  Oe,
386
386
  {
387
387
  opened: d,
388
388
  setOpened: I,
389
- t: r,
389
+ t: a,
390
390
  editor: s,
391
391
  nodeKey: e
392
392
  }
393
393
  ),
394
394
  /* @__PURE__ */ n(
395
- Te,
395
+ xe,
396
396
  {
397
- opened: b,
397
+ opened: k,
398
398
  onOpenChange: p,
399
- t: r,
400
- onDownload: () => void k(),
399
+ t: a,
400
+ onDownload: () => void b(),
401
401
  onDelete: v,
402
- hasLink: !!a,
402
+ hasLink: !!r,
403
403
  onLinkAction: () => h(!0)
404
404
  }
405
405
  )
@@ -410,14 +410,14 @@ function Dt({ nodeKey: e, src: i, id: t, href: a }) {
410
410
  /* @__PURE__ */ n(
411
411
  z.Dropdown,
412
412
  {
413
- className: `floating-link-dropdown floating-link-dropdown--${a ? "edit" : "create"}-mode`,
413
+ className: `floating-link-dropdown floating-link-dropdown--${r ? "edit" : "create"}-mode`,
414
414
  "data-test-id": "floating-link-dropdown",
415
415
  children: /* @__PURE__ */ n(
416
- re,
416
+ ae,
417
417
  {
418
418
  editor: s,
419
419
  nodeKey: e,
420
- href: a,
420
+ href: r,
421
421
  onClose: () => h(!1)
422
422
  }
423
423
  )
@@ -427,10 +427,10 @@ function Dt({ nodeKey: e, src: i, id: t, href: a }) {
427
427
  }
428
428
  );
429
429
  }
430
- function Lt({ nodeKey: e, src: i, id: t, href: a }) {
431
- const { t: r } = V(), [s] = G(), l = ne(), d = Le(), [I, { open: b, close: p }] = H(!1), [m, { open: h, close: v }] = H(!1), [k, { open: c, close: w }] = H(!1), u = () => {
430
+ function Lt({ nodeKey: e, src: i, id: t, href: r }) {
431
+ const { t: a } = G(), [s] = V(), l = ne(), d = Le(), [I, { open: k, close: p }] = H(!1), [m, { open: h, close: v }] = H(!1), [b, { open: c, close: w }] = H(!1), u = () => {
432
432
  p(), c();
433
- }, P = te(
433
+ }, S = te(
434
434
  () => [
435
435
  {
436
436
  id: !t || t === "0" ? "" : t,
@@ -457,13 +457,13 @@ function Lt({ nodeKey: e, src: i, id: t, href: a }) {
457
457
  }, L = C(async () => {
458
458
  if (p(), !!i)
459
459
  try {
460
- await ae(i, ie(i));
460
+ await re(i, ie(i));
461
461
  } catch {
462
462
  }
463
- }, [i, p]), x = C(() => {
463
+ }, [i, p]), E = C(() => {
464
464
  p(), s.update(() => {
465
- const O = T(e);
466
- E(O) && O.remove();
465
+ const O = x(e);
466
+ T(O) && O.remove();
467
467
  });
468
468
  }, [s, e, p]);
469
469
  return /* @__PURE__ */ N(B, { children: [
@@ -482,21 +482,21 @@ function Lt({ nodeKey: e, src: i, id: t, href: a }) {
482
482
  children: /* @__PURE__ */ n(
483
483
  oe,
484
484
  {
485
- label: r("editor.toolbar.more"),
485
+ label: a("editor.toolbar.more"),
486
486
  icon: nt,
487
487
  iconColor: "var(--mantine-color-gray-text)",
488
- "aria-label": r("editor.toolbar.more"),
489
- onClick: b
488
+ "aria-label": a("editor.toolbar.more"),
489
+ onClick: k
490
490
  }
491
491
  )
492
492
  }
493
493
  ),
494
494
  /* @__PURE__ */ n(
495
- Pe,
495
+ Se,
496
496
  {
497
497
  opened: m,
498
498
  onOpenChange: (O) => O ? h() : v(),
499
- attachments: P,
499
+ attachments: S,
500
500
  allowDownload: d
501
501
  }
502
502
  ),
@@ -505,10 +505,10 @@ function Lt({ nodeKey: e, src: i, id: t, href: a }) {
505
505
  {
506
506
  opened: I,
507
507
  onClose: p,
508
- title: r("editor.image.mobileActions"),
508
+ title: a("editor.image.mobileActions"),
509
509
  children: /* @__PURE__ */ N(He, { gap: 4, p: 0, children: [
510
510
  /* @__PURE__ */ n(
511
- $,
511
+ j,
512
512
  {
513
513
  type: "button",
514
514
  variant: "subtle",
@@ -525,11 +525,11 @@ function Lt({ nodeKey: e, src: i, id: t, href: a }) {
525
525
  color: "var(--mantine-color-dimmed)"
526
526
  }
527
527
  ),
528
- children: r("editor.image.previewFullScreen")
528
+ children: a("editor.image.previewFullScreen")
529
529
  }
530
530
  ),
531
531
  l && /* @__PURE__ */ n(
532
- $,
532
+ j,
533
533
  {
534
534
  type: "button",
535
535
  variant: "subtle",
@@ -546,11 +546,11 @@ function Lt({ nodeKey: e, src: i, id: t, href: a }) {
546
546
  color: "var(--mantine-color-dimmed)"
547
547
  }
548
548
  ),
549
- children: r(a ? "editor.link.editLink" : "editor.link.addLink")
549
+ children: a(r ? "editor.link.editLink" : "editor.link.addLink")
550
550
  }
551
551
  ),
552
552
  d && /* @__PURE__ */ n(
553
- $,
553
+ j,
554
554
  {
555
555
  type: "button",
556
556
  variant: "subtle",
@@ -567,11 +567,11 @@ function Lt({ nodeKey: e, src: i, id: t, href: a }) {
567
567
  color: "var(--mantine-color-dimmed)"
568
568
  }
569
569
  ),
570
- children: r("editor.gallery.download")
570
+ children: a("editor.gallery.download")
571
571
  }
572
572
  ),
573
573
  l && /* @__PURE__ */ n(
574
- $,
574
+ j,
575
575
  {
576
576
  type: "button",
577
577
  variant: "subtle",
@@ -579,7 +579,7 @@ function Lt({ nodeKey: e, src: i, id: t, href: a }) {
579
579
  fullWidth: !0,
580
580
  justify: "flex-start",
581
581
  bg: "var(--editor-action-bg)",
582
- onClick: x,
582
+ onClick: E,
583
583
  leftSection: /* @__PURE__ */ n(
584
584
  M,
585
585
  {
@@ -588,7 +588,7 @@ function Lt({ nodeKey: e, src: i, id: t, href: a }) {
588
588
  color: "var(--mantine-color-red-6)"
589
589
  }
590
590
  ),
591
- children: r("editor.actions.delete")
591
+ children: a("editor.actions.delete")
592
592
  }
593
593
  )
594
594
  ] })
@@ -597,15 +597,15 @@ function Lt({ nodeKey: e, src: i, id: t, href: a }) {
597
597
  /* @__PURE__ */ n(
598
598
  we,
599
599
  {
600
- opened: k,
600
+ opened: b,
601
601
  onClose: w,
602
- title: r(a ? "editor.link.editLink" : "editor.link.addLink"),
602
+ title: a(r ? "editor.link.editLink" : "editor.link.addLink"),
603
603
  children: /* @__PURE__ */ n(
604
- re,
604
+ ae,
605
605
  {
606
606
  editor: s,
607
607
  nodeKey: e,
608
- href: a,
608
+ href: r,
609
609
  onClose: w,
610
610
  mobile: !0
611
611
  }
@@ -618,13 +618,13 @@ const ye = (e) => {
618
618
  const {
619
619
  width: i,
620
620
  height: t,
621
- isLoading: a,
622
- isError: r,
621
+ isLoading: r,
622
+ isError: a,
623
623
  src: s,
624
624
  id: l,
625
625
  altText: d,
626
626
  imageRef: I,
627
- maxWidth: b,
627
+ maxWidth: k,
628
628
  aspectRatio: p,
629
629
  href: m
630
630
  } = e, h = ee(null);
@@ -642,9 +642,9 @@ const ye = (e) => {
642
642
  },
643
643
  children: [
644
644
  /* @__PURE__ */ n(
645
- Ve,
645
+ Ge,
646
646
  {
647
- visible: a,
647
+ visible: r,
648
648
  zIndex: 1e3,
649
649
  overlayProps: { backgroundOpacity: 0.5 },
650
650
  loaderProps: { size: 24, color: "black" }
@@ -664,8 +664,8 @@ const ye = (e) => {
664
664
  } : void 0,
665
665
  onClick: m ? (v) => {
666
666
  v.preventDefault();
667
- const k = h.current;
668
- h.current = null, !(k && Math.hypot(v.clientX - k.x, v.clientY - k.y) > 5) && window.open(K(m), "_blank", "noopener,noreferrer");
667
+ const b = h.current;
668
+ h.current = null, !(b && Math.hypot(v.clientX - b.x, v.clientY - b.y) > 5) && window.open(K(m), "_blank", "noopener,noreferrer");
669
669
  } : void 0,
670
670
  children: /* @__PURE__ */ n(
671
671
  Nt,
@@ -676,13 +676,13 @@ const ye = (e) => {
676
676
  imageRef: I,
677
677
  width: "inherit",
678
678
  height: "inherit",
679
- maxWidth: b || "auto",
679
+ maxWidth: k || "auto",
680
680
  id: l
681
681
  }
682
682
  )
683
683
  }
684
684
  ),
685
- ke && /* @__PURE__ */ n(
685
+ be && /* @__PURE__ */ n(
686
686
  Lt,
687
687
  {
688
688
  nodeKey: e.nodeKey,
@@ -700,7 +700,7 @@ const ye = (e) => {
700
700
  href: m
701
701
  }
702
702
  ),
703
- ht && !ke && !ve && /* @__PURE__ */ n(It, { nodeKey: e.nodeKey, src: s, href: m })
703
+ ht && !be && !ve && /* @__PURE__ */ n(It, { nodeKey: e.nodeKey, src: s, href: m })
704
704
  ]
705
705
  }
706
706
  );
@@ -709,29 +709,29 @@ function Nt({
709
709
  altText: e,
710
710
  className: i,
711
711
  imageRef: t,
712
- src: a,
713
- width: r,
712
+ src: r,
713
+ width: a,
714
714
  height: s,
715
715
  maxWidth: l,
716
716
  id: d
717
717
  }) {
718
- const [I, b] = y(!1);
718
+ const [I, k] = y(!1);
719
719
  return /* @__PURE__ */ n(
720
720
  "img",
721
721
  {
722
722
  className: `${i || void 0} ${I ? "" : "loading"}`,
723
- src: a,
723
+ src: r,
724
724
  alt: e,
725
725
  ref: t,
726
726
  style: {
727
727
  height: s,
728
728
  maxWidth: l,
729
- width: r
729
+ width: a
730
730
  },
731
731
  onLoad: () => {
732
- a.includes("splash") ? setTimeout(() => {
733
- b(!0);
734
- }, 100) : b(!0);
732
+ r.includes("splash") ? setTimeout(() => {
733
+ k(!0);
734
+ }, 100) : k(!0);
735
735
  },
736
736
  draggable: "false",
737
737
  "data-id": d
@@ -739,43 +739,43 @@ function Nt({
739
739
  );
740
740
  }
741
741
  function qt(e) {
742
- const { disable: i } = Ie(Se);
743
- return i && at.isPlaceholderSrc(e.src) ? null : /* @__PURE__ */ n(Ot, { ...e });
742
+ const { disable: i } = Ie(Pe);
743
+ return i && rt.isPlaceholderSrc(e.src) ? null : /* @__PURE__ */ n(Ot, { ...e });
744
744
  }
745
745
  function Ot({
746
746
  src: e,
747
747
  altText: i,
748
748
  nodeKey: t,
749
- width: a,
750
- height: r,
749
+ width: r,
750
+ height: a,
751
751
  maxWidth: s,
752
752
  showCaption: l,
753
753
  caption: d,
754
754
  id: I,
755
- create: b,
755
+ create: k,
756
756
  alignment: p,
757
757
  imagePickerTab: m,
758
758
  aspectRatio: h,
759
759
  href: v
760
760
  }) {
761
761
  var ge, fe;
762
- const k = ee(null), [c, w] = y(!0), [u] = G(), [P, U] = y(!0), [L, x] = y({
762
+ const b = ee(null), [c, w] = y(!0), [u] = V(), [S, U] = y(!0), [L, E] = y({
763
763
  width: 0,
764
764
  height: 0
765
- }), { start: O } = rt(), [St, X] = y(0), {
765
+ }), { start: O } = at(), [Pt, X] = y(0), {
766
766
  fetchUploadMedia: W,
767
767
  fetchDeleteMedia: le,
768
- maxFileSize: Pt,
769
- imperativeHandleRef: _,
768
+ maxFileSize: St,
769
+ imperativeHandleRef: F,
770
770
  disable: Ue
771
- } = Ie(Se), F = Q.has(e) && (((ge = Q.get(e)) == null ? void 0 : ge.mediaNodeKeys.length) === 0 || ((fe = Q.get(e)) == null ? void 0 : fe.mediaNodeKeys.length) === void 0 || e.trim() === ""), { t: j } = V(), se = (o) => {
771
+ } = Ie(Pe), _ = Q.has(e) && (((ge = Q.get(e)) == null ? void 0 : ge.mediaNodeKeys.length) === 0 || ((fe = Q.get(e)) == null ? void 0 : fe.mediaNodeKeys.length) === void 0 || e.trim() === ""), { t: $ } = G(), se = (o) => {
772
772
  if (typeof o == "number") return o > 0 ? o : null;
773
773
  if (typeof o == "string" && !o.includes("%")) {
774
774
  const g = parseFloat(o);
775
775
  return Number.isFinite(g) && g > 0 ? g : null;
776
776
  }
777
777
  return null;
778
- }, A = se(a), de = se(r), ce = A && de ? A / de : void 0, [xe, Ae] = y(
778
+ }, A = se(r), de = se(a), ce = A && de ? A / de : void 0, [Ee, Ae] = y(
779
779
  void 0
780
780
  ), ue = te(() => {
781
781
  try {
@@ -786,13 +786,13 @@ function Ot({
786
786
  } catch {
787
787
  return;
788
788
  }
789
- }, [e]), Re = ce ?? h ?? ue ?? xe, [Me, Y] = y(!1), ze = !Me && !ce && (h ?? ue) != null, [Tt, We] = y(0);
790
- S(() => u.registerDecoratorListener(() => {
789
+ }, [e]), Re = ce ?? h ?? ue ?? Ee, [Me, Y] = y(!1), ze = !Me && !ce && (h ?? ue) != null, [xt, We] = y(0);
790
+ P(() => u.registerDecoratorListener(() => {
791
791
  We((o) => o + 1);
792
- }), [F]), S(() => {
792
+ }), [_]), P(() => {
793
793
  const o = u.getElementByKey(t);
794
794
  o && (o.style.removeProperty("aspect-ratio"), o.style.removeProperty("width"));
795
- }, [u, t]), S(() => {
795
+ }, [u, t]), P(() => {
796
796
  if (!e || e.startsWith("data:image/") || !e.trim()) {
797
797
  w(!1);
798
798
  return;
@@ -808,8 +808,8 @@ function Ot({
808
808
  }
809
809
  !h && o.naturalWidth >= 100 && u.update(
810
810
  () => {
811
- const f = T(t);
812
- E(f) && f.getAspectRatio() == null && f.setAspectRatio(g);
811
+ const f = x(t);
812
+ T(f) && f.getAspectRatio() == null && f.setAspectRatio(g);
813
813
  },
814
814
  { tag: "history-merge" }
815
815
  );
@@ -817,24 +817,24 @@ function Ot({
817
817
  }, o.onerror = () => {
818
818
  w(!1);
819
819
  };
820
- }, [e, F]);
821
- const _e = (o, g) => {
820
+ }, [e, _]);
821
+ const Fe = (o, g) => {
822
822
  u.update(() => {
823
823
  Xe(null);
824
- const f = T(t);
825
- E(f) && f.setWidthAndHeight(o, g);
824
+ const f = x(t);
825
+ T(f) && f.setWidthAndHeight(o, g);
826
826
  });
827
827
  }, { historyState: pe } = lt(), {
828
828
  settings: { showNestedEditorTreeView: me }
829
829
  } = st();
830
- function Fe(o) {
830
+ function _e(o) {
831
831
  const g = wt(o);
832
- return g ? bt(g).width : 0;
832
+ return g ? kt(g).width : 0;
833
833
  }
834
- function je(o) {
834
+ function $e(o) {
835
835
  return new Promise((g, f) => {
836
836
  if (ft(o)) {
837
- g(Fe(o));
837
+ g(_e(o));
838
838
  return;
839
839
  }
840
840
  const D = new Image();
@@ -845,21 +845,21 @@ function Ot({
845
845
  };
846
846
  });
847
847
  }
848
- S(() => {
849
- let o = a, g = r, f = 100;
850
- if ((e.includes("unsplash") ? e.trim() : !F && e.trim() || e.includes("upload-src-editor")) && e !== "upload") {
848
+ P(() => {
849
+ let o = r, g = a, f = 100;
850
+ if ((e.includes("unsplash") ? e.trim() : !_ && e.trim() || e.includes("upload-src-editor")) && e !== "upload") {
851
851
  if (A != null && A >= f) {
852
- U(!1), x({ width: A, height: A }), Y(!0);
852
+ U(!1), E({ width: A, height: A }), Y(!0);
853
853
  return;
854
854
  }
855
- je(e).then((D) => {
856
- typeof o == "number" && o < f && D < f ? (U(!0), x({
855
+ $e(e).then((D) => {
856
+ typeof o == "number" && o < f && D < f ? (U(!0), E({
857
857
  width: o,
858
858
  height: g
859
- })) : D < f ? (U(!0), x({
859
+ })) : D < f ? (U(!0), E({
860
860
  width: "auto",
861
861
  height: "auto"
862
- })) : (x({
862
+ })) : (E({
863
863
  width: D,
864
864
  height: D
865
865
  }), U(!1)), Y(!0);
@@ -867,20 +867,20 @@ function Ot({
867
867
  Y(!0), console.warn("Ошибка при загрузке изображения:", D.message);
868
868
  });
869
869
  }
870
- }, [e, F]), S(() => {
871
- L.width && L.height && P && u.update(() => {
872
- const o = T(t);
873
- E(o) && o.setWidthAndHeight(L.width, L.height);
870
+ }, [e, _]), P(() => {
871
+ L.width && L.height && S && u.update(() => {
872
+ const o = x(t);
873
+ T(o) && o.setWidthAndHeight(L.width, L.height);
874
874
  });
875
- }, [L.width, L.height, P]);
876
- const $e = C(
875
+ }, [L.width, L.height, S]);
876
+ const je = C(
877
877
  (o) => dt(u, t, o),
878
878
  [u, t]
879
879
  ), Z = C(
880
880
  (o, g) => {
881
881
  w(!1), u.update(() => {
882
- const f = T(t);
883
- E(f) && (f.setSrc(o), f.setId(g));
882
+ const f = x(t);
883
+ T(f) && (f.setSrc(o), f.setId(g));
884
884
  });
885
885
  },
886
886
  [u, t]
@@ -894,8 +894,8 @@ function Ot({
894
894
  Z(f, D), X(0);
895
895
  },
896
896
  (f) => {
897
- f && kt({
898
- message: j("editor.gallery.errorFile")
897
+ f && bt({
898
+ message: $("editor.gallery.errorFile")
899
899
  }), X(0), Z(e.startsWith("blob:") ? "upload" : "", "");
900
900
  },
901
901
  g,
@@ -904,19 +904,19 @@ function Ot({
904
904
  }
905
905
  );
906
906
  },
907
- [W, O, j, Z, e]
907
+ [W, O, $, Z, e]
908
908
  );
909
- return S(() => u.registerCommand(
909
+ return P(() => u.registerCommand(
910
910
  ct,
911
911
  (o) => !e.startsWith("blob:") && e !== "upload" || o.targetNodeKey !== t ? !1 : (q(o.files), !0),
912
- Ge
912
+ Ve
913
913
  ), [u, q, t, e]), !e || e === "upload" ? /* @__PURE__ */ n(Be, { "data-editor-image-picker-drop-root": !0, w: "100%", children: /* @__PURE__ */ n(
914
914
  ut,
915
915
  {
916
916
  inline: !0,
917
917
  nodeKey: t,
918
918
  defaultTabValue: m,
919
- onWriteTabToNode: $e,
919
+ onWriteTabToNode: je,
920
920
  uploading: !1,
921
921
  onUpload: (o) => {
922
922
  !W || !o.length || q(o);
@@ -928,49 +928,49 @@ function Ot({
928
928
  },
929
929
  onChange: (o) => {
930
930
  u.update(() => {
931
- const g = T(t);
932
- E(g) && g.setSrc(o);
931
+ const g = x(t);
932
+ T(g) && g.setSrc(o);
933
933
  });
934
934
  }
935
935
  }
936
- ) }) : P && !ze ? /* @__PURE__ */ n(
936
+ ) }) : S && !ze ? /* @__PURE__ */ n(
937
937
  ye,
938
938
  {
939
939
  width: L.width,
940
940
  height: L.height,
941
941
  isLoading: c,
942
942
  isError: !1,
943
- isIcon: P,
943
+ isIcon: S,
944
944
  src: e,
945
945
  id: I,
946
946
  editor: u,
947
947
  nodeKey: t,
948
948
  fetchDeleteMedia: le,
949
949
  altText: i,
950
- imageRef: k,
950
+ imageRef: b,
951
951
  maxWidth: s,
952
952
  showCaption: l,
953
953
  caption: d,
954
954
  isCollabActive: !1,
955
955
  historyState: pe,
956
956
  showNestedEditorTreeView: me,
957
- t: j,
957
+ t: $,
958
958
  href: v
959
959
  }
960
960
  ) : /* @__PURE__ */ n(
961
961
  mt,
962
962
  {
963
963
  editor: u,
964
- isIcon: P,
965
- width: be(a),
966
- height: be(r),
964
+ isIcon: S,
965
+ width: ke(r),
966
+ height: ke(a),
967
967
  initialWidth: L.width || "",
968
968
  initialHeight: L.height || "",
969
- onResizeEnd: _e,
969
+ onResizeEnd: Fe,
970
970
  alignment: p,
971
971
  disable: Ue,
972
972
  onRegisterDecoratorEnter: (o) => {
973
- _ != null && _.current && (_.current.decoratorEnterAction = o);
973
+ F != null && F.current && (F.current.decoratorEnterAction = o);
974
974
  },
975
975
  onActivate: () => u.dispatchCommand(gt, "show_menu"),
976
976
  children: /* @__PURE__ */ n(
@@ -981,21 +981,21 @@ function Ot({
981
981
  aspectRatio: Re,
982
982
  isLoading: c,
983
983
  isError: !1,
984
- isIcon: P,
984
+ isIcon: S,
985
985
  src: e,
986
986
  id: I,
987
987
  editor: u,
988
988
  nodeKey: t,
989
989
  fetchDeleteMedia: le,
990
990
  altText: i,
991
- imageRef: k,
991
+ imageRef: b,
992
992
  maxWidth: s,
993
993
  showCaption: l,
994
994
  caption: d,
995
995
  isCollabActive: !1,
996
996
  historyState: pe,
997
997
  showNestedEditorTreeView: me,
998
- t: j,
998
+ t: $,
999
999
  href: v
1000
1000
  }
1001
1001
  )