@layers-app/editor 2.2.41 → 2.2.43

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 (225) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.d.ts +3 -3
  3. package/dist/index.js +4 -4
  4. package/dist/{layers.DU-5gyIL.js → layers.-wUVh76U.js} +1 -1
  5. package/dist/{layers.CwzcRNpd.js → layers.03AG_Ahp.js} +1 -1
  6. package/dist/{layers.BvdltVTe.js → layers.0PDCLAB9.js} +4 -4
  7. package/dist/{layers.eUUVnf56.js → layers.0cO0ixPk.js} +1 -1
  8. package/dist/{layers.CI2dxkVZ.js → layers.0mM7kmYM.js} +1 -1
  9. package/dist/{layers.CuEH1y5V.js → layers.4Bvndpod.js} +1 -1
  10. package/dist/{layers.DlzAUFQk.js → layers.5e-XI3nh.js} +1 -1
  11. package/dist/{layers.Bck1nyDf.js → layers.6IPXZlHV.js} +3 -3
  12. package/dist/layers.6hbGirUz.js +1 -0
  13. package/dist/{layers.BeIaZJU-.js → layers.9fzhTnHG.js} +1 -1
  14. package/dist/{layers.DdVFlLYB.js → layers.B07DqX4u.js} +1 -1
  15. package/dist/{layers.BeEGapP8.js → layers.B0xERJEP.js} +1 -1
  16. package/dist/{layers.DAvNRddm.js → layers.B2oAQIVT.js} +1 -1
  17. package/dist/{layers.BHUxeY-o.js → layers.B3Z00oIe.js} +1 -1
  18. package/dist/{layers.D_2VYVAz.js → layers.B4oJOgaL.js} +1 -1
  19. package/dist/{layers.BBlgFkaX.js → layers.B5iDAMC-.js} +1 -1
  20. package/dist/{layers.C7CAhgE9.js → layers.B5iuTZ1t.js} +1 -1
  21. package/dist/{layers.BiJ8hfRt.js → layers.B7K7JjK6.js} +3 -3
  22. package/dist/{layers.rvGjGGX-.js → layers.B7XHIy_4.js} +1 -1
  23. package/dist/layers.BGELWsp6.js +6 -0
  24. package/dist/{layers.kPF1pBqD.js → layers.BHmZJxfg.js} +1 -1
  25. package/dist/{layers.nkBs2J_Y.js → layers.BHu_YyDc.js} +1 -1
  26. package/dist/{layers.9S8DSgzy.js → layers.BJCeJUWZ.js} +19085 -19527
  27. package/dist/{layers.CNGUViM-.js → layers.BLtR2kcw.js} +4 -4
  28. package/dist/{layers.B2Y3SOyx.js → layers.BM0IeEyx.js} +1 -1
  29. package/dist/{layers.Bbx5_76Z.js → layers.BN7XA9Mz.js} +1 -1
  30. package/dist/{layers.BuC8mggQ.js → layers.BPiBAWd5.js} +1 -1
  31. package/dist/{layers.DK_8k30I.js → layers.BRYVeXtX.js} +1 -1
  32. package/dist/{layers.C0nd9_au.js → layers.BRzmQpbn.js} +1 -1
  33. package/dist/{layers.DqLY2bj6.js → layers.BSDW_YyL.js} +1 -1
  34. package/dist/{layers.DqbSBCTg.js → layers.BSzAtyQb.js} +1 -1
  35. package/dist/{layers.C3TfSp3b.js → layers.BU3693bQ.js} +1 -1
  36. package/dist/{layers.uO2ixaGs.js → layers.BZ-_wuxN.js} +1 -1
  37. package/dist/layers.B_bY10SW.js +16 -0
  38. package/dist/{layers.Bnns4b8C.js → layers.BaFHpWlD.js} +1 -1
  39. package/dist/{layers.CoKmxI39.js → layers.BaSqDCUi.js} +1 -1
  40. package/dist/{layers.CKNafy8Z.js → layers.BbMtfvwE.js} +1 -1
  41. package/dist/layers.BbPiDwK6.js +8 -0
  42. package/dist/{layers.CdSOkW0t.js → layers.BcB0Nlwg.js} +1 -1
  43. package/dist/{layers.CiRsNynK.js → layers.BcrIK8qs.js} +1 -1
  44. package/dist/{layers.m_ulwRpf.js → layers.Bdnbq1Fc.js} +1 -1
  45. package/dist/{layers.DaWCCzXz.js → layers.Bdo184oK.js} +1 -1
  46. package/dist/{layers.DhowXOlR.js → layers.BdpJh8Oo.js} +1 -1
  47. package/dist/{layers.DJNq6slZ.js → layers.BfM6qako.js} +207 -213
  48. package/dist/{layers.6NJGN7LR.js → layers.BhBT87wa.js} +1 -1
  49. package/dist/{layers.BKCo0vbX.js → layers.BjPDJ-Kw.js} +10 -10
  50. package/dist/{layers.CZ6EIVkr.js → layers.BjkFiCls.js} +1 -1
  51. package/dist/{layers.tgfKdwxk.js → layers.Bk5Uaw8R.js} +1 -1
  52. package/dist/{layers.s8O26TRm.js → layers.Bn8ENbPC.js} +1 -1
  53. package/dist/{layers.C_hkkoz8.js → layers.BnPxqyuX.js} +1 -1
  54. package/dist/layers.BnUlk4VQ.js +8583 -0
  55. package/dist/{layers.o6WBaOLa.js → layers.Bo56cnSy.js} +1 -1
  56. package/dist/{layers.CuJjDl5I.js → layers.BswN_MdX.js} +1 -1
  57. package/dist/{layers.BNc3uVU5.js → layers.Btm6c1FD.js} +1 -1
  58. package/dist/{layers.C0P8qV9q.js → layers.BudxiKeS.js} +1 -1
  59. package/dist/{layers.0REwXLJa.js → layers.BvTr3OqB.js} +1 -1
  60. package/dist/{layers.pz4hKIUL.js → layers.Bx4TPdVb.js} +1 -1
  61. package/dist/{layers.DqqiMEmK.js → layers.BxBOl4Dl.js} +1 -1
  62. package/dist/{layers.D87cBIKf.js → layers.Bxvsg8Mb.js} +1 -1
  63. package/dist/{layers.D0vgKk7k.js → layers.By6Y9awO.js} +115 -111
  64. package/dist/{layers.C1_VHbtk.js → layers.ByPB1YI0.js} +1 -1
  65. package/dist/{layers.C6AQnU4v.js → layers.BzLOwAv9.js} +1 -1
  66. package/dist/layers.BzQjss-Y.js +423 -0
  67. package/dist/{layers.Bf0vTbsV.js → layers.C2WnW5up.js} +4 -4
  68. package/dist/{layers.B5FmUA8d.js → layers.C3I87c35.js} +1 -1
  69. package/dist/{layers.Ca_FfHTH.js → layers.C4I6DUMy.js} +111 -111
  70. package/dist/{layers.CimFPCJA.js → layers.C4lKVCKG.js} +1 -1
  71. package/dist/layers.C5-WLmjg.js +1 -0
  72. package/dist/{layers.CM1RY50-.js → layers.C9Sr1U5-.js} +319 -310
  73. package/dist/{layers.3-KHMN8-.js → layers.CFWmVRYf.js} +1 -1
  74. package/dist/{layers.BNgccTqa.js → layers.CF_7ZzFo.js} +3 -3
  75. package/dist/{layers.B4pgQDx9.js → layers.CIebvJty.js} +1 -1
  76. package/dist/{layers.7iqMYe1Z.js → layers.CIjbcwec.js} +1 -1
  77. package/dist/{layers.Bf6zaNoL.js → layers.CJO8izOl.js} +1 -1
  78. package/dist/{layers.BYnRL5fg.js → layers.CKVfFH8C.js} +1 -1
  79. package/dist/{layers.DxoCSH4r.js → layers.CKtCjDB5.js} +1 -1
  80. package/dist/{layers.DSs7H9TY.js → layers.CLGJqlQC.js} +1 -1
  81. package/dist/{layers.BjiKlA5A.js → layers.CMJ7A9ld.js} +1 -1
  82. package/dist/{layers.DZIuSvWH.js → layers.CPHBPK8k.js} +1 -1
  83. package/dist/{layers.CxnKa1SZ.js → layers.CPNJ-TZg.js} +1 -1
  84. package/dist/{layers.BH74WarV.js → layers.CQ-YrAtS.js} +1 -1
  85. package/dist/{layers.D1x7GR3O.js → layers.CS7HWB4X.js} +4 -4
  86. package/dist/{layers.BB5zhvW_.js → layers.CUGnkSgl.js} +1 -1
  87. package/dist/{layers.DZr9ja6S.js → layers.CUHCWsr6.js} +3 -3
  88. package/dist/{layers.DxiI7oFV.js → layers.CW1tyuRJ.js} +8 -8
  89. package/dist/{layers.B1-2ER2o.js → layers.CWyLzhzU.js} +1 -1
  90. package/dist/{layers.pI_GV11S.js → layers.C_48WisB.js} +3 -3
  91. package/dist/{layers.BgOa2ZQq.js → layers.C_IvrzZ3.js} +1 -1
  92. package/dist/{layers.jhkokT-m.js → layers.C_qUkVxS.js} +1 -1
  93. package/dist/{layers.D8aKn7_I.js → layers.CasHcfAK.js} +1 -1
  94. package/dist/{layers.DC4WjaI4.js → layers.Cb8w7m3T.js} +1 -1
  95. package/dist/{layers.K9sbiHeh.js → layers.CcY8SYVh.js} +1 -1
  96. package/dist/{layers.iQB27rXc.js → layers.CemDejcL.js} +1 -1
  97. package/dist/{layers.DdogDSyL.js → layers.Cglb20ve.js} +1 -1
  98. package/dist/{layers.DmYKMAk5.js → layers.Cim2gy1q.js} +1 -1
  99. package/dist/{layers.BhQd8YgR.js → layers.CjPHxy5F.js} +1 -1
  100. package/dist/{layers.iMpiFcJq.js → layers.CjwpDgRI.js} +1 -1
  101. package/dist/{layers.BSUqNKh-.js → layers.Cm4ScAcA.js} +1 -1
  102. package/dist/{layers.q3IjirYU.js → layers.CnHlffpI.js} +1 -1
  103. package/dist/{layers.Bfmz9os1.js → layers.CnLvIdDn.js} +1 -1
  104. package/dist/{layers.DZT3fhDF.js → layers.CnPbRZ5g.js} +1 -1
  105. package/dist/layers.Co188iOY.js +6 -0
  106. package/dist/{layers.Ce6JuM4T.js → layers.Con-Dh2E.js} +3 -3
  107. package/dist/{layers.DwxdvxV6.js → layers.CqOEfQFk.js} +1 -1
  108. package/dist/{layers.BTC0a-iu.js → layers.CtmFs842.js} +1 -1
  109. package/dist/{layers.DA9xtoYs.js → layers.Cu4zCXaq.js} +4 -4
  110. package/dist/{layers.DH8HnxJY.js → layers.CwQebQGo.js} +2 -2
  111. package/dist/{layers.B_Zw6UfK.js → layers.CxOau-hs.js} +1 -1
  112. package/dist/{layers.BeW-l4JL.js → layers.CxfeVqFB.js} +1 -1
  113. package/dist/{layers.DaDNIac_.js → layers.CxqZJUKb.js} +1 -1
  114. package/dist/{layers.va1nURVd.js → layers.CyJwHXzH.js} +6 -6
  115. package/dist/{layers.BkfLSpc7.js → layers.CzcULpYV.js} +1 -1
  116. package/dist/{layers.Bh0e5oBt.js → layers.D1YO6sUx.js} +1 -1
  117. package/dist/{layers.DUtZsAUN.js → layers.D2pb9Wvr.js} +1 -1
  118. package/dist/layers.D2uJTLQD.js +1 -0
  119. package/dist/layers.D3UpXEwL.js +425 -0
  120. package/dist/{layers.R4j_04y7.js → layers.D3fr8EC0.js} +1 -1
  121. package/dist/{layers.pSfFlbuv.js → layers.D4WHc1zo.js} +2 -2
  122. package/dist/{layers.CdJ_RdT6.js → layers.D78A28yU.js} +8488 -8818
  123. package/dist/{layers.ZimVFJsj.js → layers.D7IERGZB.js} +1 -1
  124. package/dist/{layers.DSA8lkEg.js → layers.D9NG4hfd.js} +1 -1
  125. package/dist/{layers.DHWU1y10.js → layers.D9ajcZP1.js} +1 -1
  126. package/dist/{layers.BtqiE2Zw.js → layers.DB3g0uv9.js} +1 -1
  127. package/dist/{layers.9RpqwIgn.js → layers.DC3-RC1l.js} +1 -1
  128. package/dist/{layers.BfBwi9kx.js → layers.DFiSzcgX.js} +11 -11
  129. package/dist/{layers.DweZXvH2.js → layers.DGA33SjL.js} +2 -2
  130. package/dist/{layers.CntF-9iu.js → layers.DH3ePdsz.js} +1 -1
  131. package/dist/{layers.DNZeWizh.js → layers.DHLBQn4i.js} +3 -3
  132. package/dist/{layers.DVwRkt1k.js → layers.DKbpSRnS.js} +2 -2
  133. package/dist/{layers.CZ-ghciP.js → layers.DMD2Uy-b.js} +1 -1
  134. package/dist/{layers.B20QYwrg.js → layers.DMbmaXEp.js} +1 -1
  135. package/dist/{layers.D-Ie2JQV.js → layers.DMmvRDDM.js} +1 -1
  136. package/dist/{layers.-prUTMEe.js → layers.DMrcq2Gr.js} +1 -1
  137. package/dist/{layers.CaYqx9TB.js → layers.DO67bAdi.js} +1 -1
  138. package/dist/layers.DQGVM1KB.js +1 -0
  139. package/dist/layers.DRRyMIft.js +1 -0
  140. package/dist/{layers.C_Ur-9Yr.js → layers.DRtT_PXy.js} +6 -2
  141. package/dist/{layers.D2yTz-So.js → layers.DS2xWw5u.js} +1 -1
  142. package/dist/{layers.Bjl3-TZ6.js → layers.DTvOLDFJ.js} +1 -1
  143. package/dist/{layers.oJ2sQ4Hw.js → layers.DVH0bxj2.js} +22 -22
  144. package/dist/{layers.BprGkykI.js → layers.DW5NMC_Y.js} +1 -1
  145. package/dist/{layers.BQn0SMyS.js → layers.DWCTsdNx.js} +1 -1
  146. package/dist/{layers.D0sTzHvk.js → layers.DXGbCu9s.js} +1 -1
  147. package/dist/{layers.B6e4LO7M.js → layers.DXvR0Ic3.js} +3 -3
  148. package/dist/{layers.DHCkeaBj.js → layers.DXwUwZdz.js} +2 -2
  149. package/dist/{layers.-pogHjPZ.js → layers.DZNF4hVk.js} +1 -1
  150. package/dist/{layers.DwZRGekE.js → layers.D_KUnC5f.js} +1 -1
  151. package/dist/{layers.azQKEmBP.js → layers.D_dNQ2RW.js} +5 -5
  152. package/dist/{layers.BUUbg20U.js → layers.D_fmVaW-.js} +1 -1
  153. package/dist/{layers.CVvm2cN5.js → layers.Da0nsXuF.js} +1 -1
  154. package/dist/{layers.Bk3BD2LO.js → layers.DbYK2pEp.js} +1 -1
  155. package/dist/{layers.Cz4C01_N.js → layers.DbbksUuA.js} +1 -1
  156. package/dist/{layers.BWEwrUfZ.js → layers.Dbri2FL3.js} +1 -1
  157. package/dist/{layers.D5Ydj3ww.js → layers.Dc7NnfUG.js} +1 -1
  158. package/dist/layers.Ddrl9HG1.js +96 -0
  159. package/dist/{layers.Dt4hTKjU.js → layers.DiAn5oCP.js} +1 -1
  160. package/dist/{layers.CqOpB2pv.js → layers.Dib9h9Y9.js} +1 -1
  161. package/dist/layers.Dl5fPqLs.js +1 -0
  162. package/dist/{layers.DoP-WMDr.js → layers.Dl_n_LxZ.js} +6 -6
  163. package/dist/{layers.CZ6iGqZQ.js → layers.Dm1yBfDi.js} +1 -1
  164. package/dist/{layers.BZNymU7f.js → layers.DmM2jU0O.js} +1 -1
  165. package/dist/{layers.DRwGEKDY.js → layers.DoHU4UID.js} +4 -4
  166. package/dist/{layers.CBZ6rdkQ.js → layers.Dp9QA0Dz.js} +1 -1
  167. package/dist/{layers.BIzPxN5I.js → layers.DqkcR9Cj.js} +3 -3
  168. package/dist/{layers.BPG9BJyp.js → layers.DquK_j31.js} +1 -1
  169. package/dist/layers.Dsw7pDbX.js +748 -0
  170. package/dist/{layers.DXAGo5cY.js → layers.DsxjlRxg.js} +1 -1
  171. package/dist/{layers.CiU5xtTu.js → layers.DtaKuCjp.js} +1 -1
  172. package/dist/layers.Dv5cum-u.js +51 -0
  173. package/dist/{layers.C9_GwOsc.js → layers.Dwfq9cNX.js} +1 -1
  174. package/dist/{layers.DnX82iOF.js → layers.DzZcev45.js} +1 -1
  175. package/dist/{layers.CtgJUNhm.js → layers.ENr5T7WS.js} +1 -1
  176. package/dist/{layers.BWiShM4D.js → layers.FKGuICkq.js} +7 -7
  177. package/dist/{layers.BKV_Sn-p.js → layers.GSbMAxhC.js} +1 -1
  178. package/dist/{layers.DvprN6bf.js → layers.I-tHkE95.js} +1 -1
  179. package/dist/{layers.BJEB2n7C.js → layers.L0lr9_dy.js} +1 -1
  180. package/dist/{layers.ChX7eMI0.js → layers.OZMdOIeE.js} +4 -4
  181. package/dist/{layers.DH8K9r9O.js → layers.Q2dvyyyS.js} +1 -1
  182. package/dist/{layers.B44bGQl8.js → layers.R2p30D-p.js} +1 -1
  183. package/dist/{layers.KIMFA6cd.js → layers.STJilcsA.js} +1 -1
  184. package/dist/{layers.FUlqL-BW.js → layers.T7eDGkWl.js} +1 -1
  185. package/dist/{layers.D4aJmX4D.js → layers.UgwPqXW8.js} +1 -1
  186. package/dist/{layers.BsEdQLFP.js → layers.Xh-WVbYL.js} +1 -1
  187. package/dist/{layers.C3czrXaI.js → layers.e5-5q9GW.js} +1 -1
  188. package/dist/{layers.CB6Gb2PR.js → layers.hGNauRnS.js} +4135 -4186
  189. package/dist/layers.hUNsvmkE.js +198 -0
  190. package/dist/{layers.CvxHQb8U.js → layers.hkL7RA_5.js} +1 -1
  191. package/dist/{layers.DvTE7LyS.js → layers.joa0U6F3.js} +1 -1
  192. package/dist/{layers.BFOV9gyP.js → layers.mOqn0HZL.js} +3 -3
  193. package/dist/{layers.DHtvA3UR.js → layers.n-WUmPth.js} +1 -1
  194. package/dist/{layers.BEBGt1Dt.js → layers.nTJYG5Fr.js} +1 -1
  195. package/dist/{layers.BTUD8Ga6.js → layers.o99xgyrj.js} +1 -1
  196. package/dist/{layers.BtEhde9Y.js → layers.pQg8FbPj.js} +5 -5
  197. package/dist/{layers.CCkpZbNU.js → layers.phLsmtCV.js} +1 -1
  198. package/dist/{layers.DDm6VVYR.js → layers.pp1C1Tmj.js} +1 -1
  199. package/dist/{layers.CqsMZzo3.js → layers.qZ_fMp-N.js} +1 -1
  200. package/dist/{layers.vqHuEAO-.js → layers.rnn88Z_F.js} +1 -1
  201. package/dist/{layers.D1aHIuph.js → layers.sZWWruWl.js} +1 -1
  202. package/dist/{layers.CezhTfqb.js → layers.skYBIGuA.js} +1 -1
  203. package/dist/{layers.C2V2Fqd8.js → layers.t9ki07H9.js} +2 -2
  204. package/dist/{layers.H-s_kgpp.js → layers.v9an1lHW.js} +1 -1
  205. package/dist/{layers.xbktakT7.js → layers.w5M_mTV4.js} +3 -3
  206. package/dist/{layers.BsiV_mYn.js → layers.zw0Kaz0i.js} +1 -1
  207. package/dist/{layers.DDM4b59r.js → layers.zzb4BOcI.js} +1 -1
  208. package/package.json +80 -80
  209. package/dist/layers.AZFDTfYD.js +0 -108
  210. package/dist/layers.BPmFneBG.js +0 -10148
  211. package/dist/layers.C-a7ykRd.js +0 -7
  212. package/dist/layers.CCV8nVyL.js +0 -754
  213. package/dist/layers.CX2hJt1r.js +0 -423
  214. package/dist/layers.CYf-jzmA.js +0 -8
  215. package/dist/layers.CZeKVeuD.js +0 -1
  216. package/dist/layers.DFsWppan.js +0 -198
  217. package/dist/layers.DJlXUaLG.js +0 -16
  218. package/dist/layers.DQwjT1Ef.js +0 -1
  219. package/dist/layers.DwkrCSjE.js +0 -6
  220. package/dist/layers.LUWx2Na_.js +0 -1
  221. package/dist/layers.V_aDpQCH.js +0 -1
  222. package/dist/layers.ZbZryeHO.js +0 -1
  223. package/dist/layers.lnCuj7Q6.js +0 -51
  224. package/dist/layers.nQDKnlwp.js +0 -425
  225. package/dist/layers.z8kAk_Sg.js +0 -1
@@ -1,16 +0,0 @@
1
- import { useLexicalComposerContext as r } from "@lexical/react/LexicalComposerContext";
2
- import { u as o, I as l } from "./layers.9S8DSgzy.js";
3
- import { $ as d, a as x, E as u, l as E, p as n } from "./layers.9S8DSgzy.js";
4
- function s() {
5
- const [a] = r();
6
- return o(a), null;
7
- }
8
- export {
9
- d as $createExcalidrawNode,
10
- x as $isExcalidrawNode,
11
- u as ExcalidrawNode,
12
- s as ExcalidrawPlugin,
13
- l as INSERT_EXCALIDRAW_COMMAND,
14
- E as languageToLocaleMap,
15
- n as parseExcalidrawData
16
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("react"),J=require("@lexical/react/LexicalComposerContext"),P=require("@lexical/react/useLexicalEditable"),K=require("@lexical/react/useLexicalNodeSelection"),Q=require("@lexical/utils"),y=require("lexical"),o=require("./layers.D0vgKk7k.js"),G=require("react-i18next"),g=require("@mantine/core"),Z=require("@mantine/hooks");require("@lexical/mark");require("@lexical/code");const ee=require("@layers-app/shared"),te=({isCloseModal:l,setCloseModalOpen:a,confirmClose:E})=>{const{t:v}=G.useTranslation();return t.jsx(g.Modal,{opened:l,onClose:()=>{a(!1)},centered:!0,withCloseButton:!1,closeOnClickOutside:!0,closeOnEscape:!0,size:440,radius:"lg",zIndex:999,children:t.jsxs(g.Stack,{gap:24,pt:"md",children:[t.jsxs(g.Stack,{gap:"xs",align:"center",children:[t.jsx(o.HugeiconsIcon,{icon:o.AlertCircleIcon,size:20,color:"var(--mantine-color-dimmed)"}),t.jsxs(g.Stack,{gap:6,align:"center",children:[t.jsx(g.Text,{fw:700,size:"md",ta:"center",children:v("editor.unsavedChanges.title")}),t.jsx(g.Text,{c:"dimmed",size:"sm",ta:"center",children:v("editor.unsavedChanges.message")})]})]}),t.jsxs(g.Group,{gap:"xs",grow:!0,wrap:"nowrap",children:[t.jsx(g.Button,{variant:"default",radius:"md",onClick:()=>{a(!1)},children:v("editor.unsavedChanges.cancel")}),t.jsx(g.Button,{color:"indigo.8",radius:"md",onClick:E,children:v("editor.unsavedChanges.closeWithoutSaving")})]})]})})};function oe({imageContainerRef:l,editor:a,rootClassName:E=null,width:v="inherit",height:m="inherit",nodeKey:u,alignment:z,setModalOpen:A,previewSVG:i,isModalOpen:h}){const{disable:C,imperativeHandleRef:j}=r.useContext(o.Context),F=r.useMemo(()=>i??"",[i]),[S,b]=r.useState(!1),[H,{open:k,close:O}]=Z.useDisclosure(!1),{t:w}=G.useTranslation();r.useEffect(()=>{h&&b(!1)},[h]);const N=(e,p)=>{a.update(()=>{y.$setSelection(null);const c=y.$getNodeByKey(u);return o.$isExcalidrawNode(c)&&c.setWidthAndHeight(e,p),!0})},T=()=>{o.deleteNode(a,u)},R=()=>{O(),A(!0)},_=()=>{O(),o.deleteNode(a,u)};return t.jsxs(o.ResizableContainer,{editor:a,isIcon:!1,isEmbed:!0,width:o.parseContainerSize(v),height:o.parseContainerSize(m),onResizeEnd:N,alignment:z,disable:C,onRegisterDecoratorEnter:e=>{j!=null&&j.current&&(j.current.decoratorEnterAction=e)},onActivate:()=>a.dispatchCommand(o.ON_CHANGE_COMMAND,"show_menu"),children:[t.jsxs(g.Box,{className:"media-wrapper excaildraw",children:[t.jsx("div",{className:`media-actions${o.IS_TOUCH_DEVICE||!o.IS_HOVER_CAPABLE?" visible":""}`,children:o.IS_TOUCH_DEVICE?t.jsx(o.ActionIcon,{"aria-label":w("editor.toolbar.more"),label:w("editor.toolbar.more"),flexBorder:!0,onClick:k,icon:o.MoreHorizontalIcon,iconColor:"var(--mantine-color-gray-text)"}):t.jsxs(t.Fragment,{children:[t.jsx(o.ActionIcon,{"aria-label":"Settings",label:w("editor.link.edit"),flexBorder:!0,onClick:()=>{A(!0)},icon:o.Edit04Icon,iconColor:"var(--mantine-color-gray-text)"}),t.jsx(o.NodeAlignmentMenu,{opened:S,setOpened:b,t:w,editor:a,nodeKey:u,flexBorder:!0}),t.jsx(o.ActionIcon,{"aria-label":"Delete",label:w("editor.actions.delete"),flexBorder:!0,onClick:T,icon:o.Delete03Icon,iconColor:"var(--mantine-color-red-outline)"})]})}),t.jsx(g.Box,{w:"100%",ref:e=>{e&&l&&(l.current=e)},className:E??"",dangerouslySetInnerHTML:{__html:F}})]}),o.IS_TOUCH_DEVICE&&t.jsx(o.MobileDrawer,{opened:H,onClose:O,title:w("editor.image.mobileActions"),children:t.jsxs(g.Stack,{gap:4,p:0,children:[t.jsx(g.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:R,leftSection:t.jsx(o.HugeiconsIcon,{icon:o.Edit04Icon,size:16,color:"var(--mantine-color-dimmed)"}),children:w("editor.link.edit")}),t.jsx(g.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:_,leftSection:t.jsx(o.HugeiconsIcon,{icon:o.Delete03Icon,size:16,color:"var(--mantine-color-red-6)"}),children:w("editor.actions.delete")})]})})]})}let $=null;const ne=r.lazy(async()=>{var a;const l=await Promise.resolve().then(()=>require("./layers.DFsWppan.js")).then(E=>E.index);return!$&&l&&($=l.exportToSvg||((a=l.default)==null?void 0:a.exportToSvg)||l.default),{default:l.Excalidraw}}),re=()=>{const[l,a]=r.useState(null),E=r.useCallback(v=>a(v),[]);return[l,E]};function se({onSave:l,initialElements:a,initialAppState:E,initialFiles:v,isShown:m=!1,onDelete:u,onClose:z,isEdited:A}){const[i,h]=re(),{i18n:C,t:j}=G.useTranslation(),{colorScheme:F}=g.useMantineColorScheme(),S=r.useRef(!1),[b,H]=r.useState(a),[k,O]=r.useState(v),[w,N]=r.useState(m);r.useEffect(()=>{m&&N(!0)},[m]),r.useEffect(()=>{!m||S.current||(S.current=!0,Promise.resolve().then(()=>require("./layers.Dyvby5gX.js")))},[m]),r.useEffect(()=>{m&&setTimeout(()=>{var e,p;(e=i==null?void 0:i.refresh)==null||e.call(i),(p=i==null?void 0:i.scrollToContent)==null||p.call(i)},500)},[m,i]),r.useEffect(()=>{if(!m)return;const e=(s,d)=>{const n=j(s);return n.startsWith("editor.menu")?d:n},p=e("editor.menu.excalidraw.tools.frameTool",C.language==="ru"?"Инструмент рамки":C.language==="es"?"Herramienta de marco":"Frame tool"),c=e("editor.menu.excalidraw.tools.webEmbed",C.language==="ru"?"Веб-встраивание":C.language==="es"?"Incrustación web":"Web Embed"),f=e("editor.menu.excalidraw.tools.generate",C.language==="ru"?"Генерировать":C.language==="es"?"Generar":"Generate"),L={"Frame tool":p,"Web Embed":c,"Web embeded":c,Generate:f},q=()=>{const s=document.querySelector(".App-toolbar__extra-tools-dropdown");if(!s)return;const d=document.createTreeWalker(s,NodeFilter.SHOW_TEXT,null);let n;for(;n=d.nextNode();)if(n.nodeType===Node.TEXT_NODE&&n.textContent){const x=n.textContent.trim();for(const[D,B]of Object.entries(L))if(x===D&&B&&!x.includes(B)){n.textContent=n.textContent.replace(D,B);break}}},I=()=>{setTimeout(()=>{q()},0)},M=setTimeout(()=>{const s=document.querySelector(".excalidraw-container");if(s){const d=s.querySelector(".App-toolbar__extra-tools-trigger");d&&d.addEventListener("click",I)}},300);return()=>{clearTimeout(M);const s=document.querySelector(".excalidraw-container");if(s){const d=s.querySelector(".App-toolbar__extra-tools-trigger");d&&d.removeEventListener("click",I)}}},[m,C.language,j]);const T=r.useCallback(async()=>{var q,I,M;let e=$;if(!e||typeof e!="function"){const s=await Promise.resolve().then(()=>require("./layers.DFsWppan.js")).then(d=>d.index);e=s.exportToSvg||((q=s.default)==null?void 0:q.exportToSvg)||s.default,e&&typeof e=="function"&&($=e)}if(!e||typeof e!="function"){const s=await Promise.resolve().then(()=>require("./layers.DFsWppan.js")).then(n=>n.index),d=s?Object.keys(s):[];throw console.error("Excalidraw module structure:",{keys:d,hasExportToSvg:s&&"exportToSvg"in s,hasDefault:s&&"default"in s,moduleType:typeof s,module:s}),new Error(`exportToSvg is not available from @excalidraw/excalidraw. Module keys: ${d.join(", ")}. Please ensure @excalidraw/excalidraw is properly installed.`)}const p=((I=i==null?void 0:i.getAppState)==null?void 0:I.call(i))??E,c=await e({appState:p,elements:b,files:k}),f=(M=c==null?void 0:c.firstElementChild)==null?void 0:M.firstElementChild,L=c.getAttribute("viewBox");if(L!=null){const s=L.split(" ");c.setAttribute("width",s[2]),c.setAttribute("height",s[3])}return f&&f.tagName==="style"&&f.remove(),c.setAttribute("width","100%"),c.setAttribute("height","100%"),c.setAttribute("display","block"),c.classList.add("excalidraw-svg"),c.outerHTML},[b,k,i,E]),R=()=>{if(b&&b.filter(e=>!e.isDeleted).length>0){const e=i==null?void 0:i.getAppState(),p={exportBackground:e==null?void 0:e.exportBackground,exportScale:e==null?void 0:e.exportScale,exportWithDarkMode:(e==null?void 0:e.theme)==="dark",isBindingEnabled:e==null?void 0:e.isBindingEnabled,isLoading:e==null?void 0:e.isLoading,name:e==null?void 0:e.name,theme:e==null?void 0:e.theme,viewBackgroundColor:e==null?void 0:e.viewBackgroundColor,viewModeEnabled:e==null?void 0:e.viewModeEnabled,zenModeEnabled:e==null?void 0:e.zenModeEnabled,zoom:e==null?void 0:e.zoom};(async()=>{const c=await T();l(b,p,k,c)})()}else u()},_=(e,p,c)=>{(e==null?void 0:e.length)!==(a==null?void 0:a.length)&&(A.current=!0),H(e),O(c)};return t.jsx(ee.BottomDrawerWithoutHeader,{opened:m,onClose:z,onSave:R,className:"excaildraw-modal",closeOnEscape:!1,children:w&&t.jsx(r.Suspense,{fallback:t.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",minHeight:"400px"},children:t.jsx(g.Loader,{size:"sm"})}),children:t.jsx(ne,{langCode:o.languageToLocaleMap[C.language],theme:F,onChange:_,excalidrawAPI:h,initialData:{appState:{...E||{isLoading:!1}},elements:a,files:v,scrollToContent:!0}})})})}function ie({nodeKey:l,data:a,width:E,height:v,alignment:m}){var d;const[u]=J.useLexicalComposerContext(),{fetchUploadMedia:z,fetchDeleteMedia:A}=r.useContext(o.Context),i=P.useLexicalEditable(),h=r.useMemo(()=>o.parseExcalidrawData(a),[a]),C=r.useRef(o.extractAttachmentIdsFromFiles(h.files??{})),j=r.useRef(Object.keys(h.files??{}));r.useEffect(()=>{const n=o.extractAttachmentIdsFromFiles(h.files??{});for(const x of Object.keys(n))C.current[x]=n[x]},[h.files]);const F=((d=h==null?void 0:h.elements)==null?void 0:d.length)===0&&!h.previewSVG,[S,b]=r.useState(F&&u.isEditable()),[H,k]=r.useState(!1),O=r.useRef(null),w=r.useRef(null),N=r.useRef(null),[T,R,_]=K.useLexicalNodeSelection(l),e=r.useCallback(n=>(T&&(n.preventDefault(),u.update(()=>{const x=y.$getNodeByKey(l);x&&x.remove()})),!1),[u,T,l]);r.useEffect(()=>{if(!i){T&&_();return}return Q.mergeRegister(u.registerCommand(y.CLICK_COMMAND,n=>{const x=w.current,D=n.target;return x!==null&&x.contains(D)?(n.shiftKey||_(),R(!T),n.detail>1&&b(!0),!0):!1},y.COMMAND_PRIORITY_LOW),u.registerCommand(y.KEY_DELETE_COMMAND,e,y.COMMAND_PRIORITY_LOW),u.registerCommand(y.KEY_BACKSPACE_COMMAND,e,y.COMMAND_PRIORITY_LOW))},[_,u,T,e,R,i]);const p=r.useCallback(()=>(b(!1),u.update(()=>{const n=y.$getNodeByKey(l);n&&n.remove()})),[u,l]),c=async(n,x,D,B)=>{const{files:W,urlByDataUrl:U,attachmentIdByFileId:Y}=await o.uploadInlineFiles(D,z,C.current);C.current=o.deleteRemovedAttachments(j.current,W,Y,A),j.current=Object.keys(W);const X=o.rewriteSvgDataUrls(B,U);u.update(()=>{const V=y.$getNodeByKey(l);o.$isExcalidrawNode(V)&&(n&&n.length>0||Object.keys(W).length>0?V.setData(JSON.stringify({appState:x,elements:n,files:W,previewSVG:X})):V.remove())})},{elements:f=[],files:L={},appState:q={},previewSVG:I}=h,M=r.useCallback(()=>{b(!1),k(!1),N.current=!1,(f==null?void 0:f.length)===0&&u.update(()=>{const n=y.$getNodeByKey(l);n&&n.remove()})},[u,l,f==null?void 0:f.length]),s=r.useCallback(()=>{N.current?k(!0):M()},[M]);return t.jsxs(t.Fragment,{children:[t.jsx(te,{isCloseModal:H,confirmClose:M,setCloseModalOpen:k}),t.jsx(se,{initialElements:f,isEdited:N,initialFiles:L,initialAppState:q,isShown:S,onDelete:p,onClose:s,onSave:async(n,x,D,B)=>{await c(n,x,D,B),b(!1)},closeOnClickOutside:!1}),(f==null?void 0:f.length)&&t.jsx("div",{style:{display:"flex",justifyContent:m},children:t.jsx(oe,{imageContainerRef:O,className:"image",width:E,height:v,editor:u,nodeKey:l,alignment:m,setModalOpen:b,previewSVG:I,isModalOpen:S})})]})}exports.default=ie;
@@ -1,6 +0,0 @@
1
- import { e as o, j as s, o as f } from "./layers.CdJ_RdT6.js";
2
- export {
3
- o as default,
4
- s as en,
5
- f as kaa
6
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./layers.Bbx5_76Z.js");require("./layers.DFsWppan.js");exports.Commands=e.CB;exports.subsetToBase64=e.QB;exports.subsetToBinary=e.NQ;exports.toBase64=e.AI;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),a=require("react"),E=require("react-i18next"),T=require("@lexical/react/LexicalComposerContext"),C=require("@mantine/core"),k=require("lexical"),i=require("./layers.D0vgKk7k.js"),_=require("@layers-app/shared"),fe=require("@lexical/react/useLexicalEditable"),U=require("@mantine/hooks");require("@lexical/react/LexicalDecoratorBlockNode");require("@lexical/utils");require("@lexical/mark");require("@lexical/code");require("@lexical/selection");require("react-dom");require("@lexical/react/LexicalErrorBoundary");require("@lexical/react/LexicalBlockWithAlignableContents");require("@mantine/notifications");const oe=[["path",{d:"M8.00001 3.09779C8.00001 3.09779 4.03375 2.74194 3.38784 3.38785C2.74192 4.03375 3.09784 8 3.09784 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.00001 20.9022C8.00001 20.9022 4.03375 21.2581 3.38784 20.6122C2.74192 19.9662 3.09784 16 3.09784 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 3.09779C16 3.09779 19.9663 2.74194 20.6122 3.38785C21.2581 4.03375 20.9022 8 20.9022 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M16 20.9022C16 20.9022 19.9663 21.2581 20.6122 20.6122C21.2581 19.9662 20.9022 16 20.9022 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14.0107 9.99847L20.0625 3.94678",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M9.99696 14.0024L3.63966 20.3807",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M9.99732 10.0024L3.84571 3.85889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M13.9795 14.0024L20.5279 20.4983",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"7"}]];function xe(e,r){const o=document.createElement("a");o.href=e,o.download=r,o.rel="noopener",document.body.appendChild(o),o.click(),o.remove()}function z(e){try{const o=new URL(e,window.location.origin).pathname.split("/").pop()||"image";return o.includes(".")?o:`${o}.png`}catch{return"image"}}async function q(e,r){const o=await fetch(e);if(!o.ok)throw new Error("fetch failed");const s=await o.blob(),c=URL.createObjectURL(s);try{xe(c,r)}finally{setTimeout(()=>URL.revokeObjectURL(c),0)}}function ne({opened:e,onOpenChange:r,t:o,onDownload:s,onDelete:c}){return n.jsxs(C.Menu,{opened:e,onChange:r,transitionProps:i.animationMenu,shadow:"md",position:"bottom-start",offset:4,withinPortal:!0,closeOnItemClick:!0,children:[n.jsx(C.Menu.Target,{children:n.jsx(i.ActionIcon,{label:o("editor.toolbar.more"),icon:i.MoreHorizontalIcon,iconColor:"var(--mantine-color-gray-text)","aria-label":o("editor.toolbar.more")})}),n.jsxs(C.Menu.Dropdown,{p:4,w:164,onMouseDown:l=>l.preventDefault(),children:[n.jsx(C.Menu.Item,{leftSection:n.jsx(C.Flex,{align:"center",justify:"center",c:"gray.6",children:n.jsx(i.HugeiconsIcon,{icon:i.Download01Icon,size:16})}),onClick:l=>{l.stopPropagation(),s()},children:o("editor.gallery.download")}),n.jsx(C.Menu.Item,{color:"red",leftSection:n.jsx(C.Flex,{align:"center",justify:"center",c:"red.6",children:n.jsx(i.HugeiconsIcon,{icon:i.Delete03Icon,size:16})}),onClick:l=>{l.stopPropagation(),c()},children:o("editor.contextMenu.delete")})]})]})}const ie=({t:e,src:r,setShown:o,id:s})=>{const[c,{open:l,close:m}]=U.useDisclosure(!1),g=a.useMemo(()=>[{id:!s||s==="0"?"":s,Url:r??"",contentType:"image/*",originalFileName:"",fileSize:0,storageType:"",storagePath:"",fileName:"",parentType:"",parentId:"",ownerId:"",createdAt:new Date,updatedAt:new Date,version:0,deleted:!1,deletedAt:new Date}],[r,s]),h=f=>{f?l():m()};return n.jsxs(n.Fragment,{children:[n.jsx(_.AttachmentsGalleryModal,{opened:c,onOpenChange:h,attachments:g}),n.jsx(i.ActionIcon,{label:e("editor.image.preview"),icon:oe,iconColor:"var(--mantine-color-gray-text)","aria-label":e("editor.image.preview"),onClick:()=>{o(!1),l()}})]})},Ce=({nodeKey:e,src:r})=>{const[o]=T.useLexicalComposerContext(),s=fe.useLexicalEditable(),[c,l]=a.useState(!1),[m,g]=a.useState(!1),{t:h}=E.useTranslation(),f=a.useCallback(()=>{o.update(()=>{const b=k.$getNodeByKey(e);i.$isImageNode(b)&&b.remove()})},[o,e]),y=a.useCallback(async()=>{if(r)try{await q(r,z(r))}catch{}},[r]);return n.jsxs("div",{className:`media-actions ${s?"":"media-actions--readonly"}`,children:[n.jsx(ie,{t:h,src:r,setShown:()=>{}}),s&&n.jsxs(n.Fragment,{children:[n.jsx(i.NodeAlignmentMenu,{opened:c,setOpened:l,t:h,editor:o,nodeKey:e,setShown:()=>{}}),n.jsx(ne,{opened:m,onOpenChange:g,t:h,onDownload:()=>void y(),onDelete:f})]})]})},be=()=>{};function we({nodeKey:e,src:r,id:o}){const{t:s}=E.useTranslation(),[c]=T.useLexicalComposerContext(),[l,m]=a.useState(!1),[g,h]=a.useState(!1),f=a.useCallback(()=>{h(!1),c.update(()=>{const b=k.$getNodeByKey(e);if(!i.$isImageNode(b))return;const j=b.getParent();i.$isImageOverlayWrapperNode(j)?j.remove():b.remove()})},[c,e]),y=a.useCallback(async()=>{if(r)try{await q(r,z(r))}catch{}},[r]);return n.jsxs("div",{className:"media-actions visible",style:{position:"absolute",top:10,right:10,zIndex:10,pointerEvents:"auto",display:"flex",gap:4},onClick:b=>b.stopPropagation(),children:[n.jsx(ie,{t:s,src:r,setShown:be,id:o}),n.jsx(i.NodeAlignmentMenu,{opened:l,setOpened:m,t:s,editor:c,nodeKey:e}),n.jsx(ne,{opened:g,onOpenChange:h,t:s,onDownload:()=>void y(),onDelete:f})]})}function ye({nodeKey:e,src:r,id:o}){const{t:s}=E.useTranslation(),[c]=T.useLexicalComposerContext(),[l,{open:m,close:g}]=U.useDisclosure(!1),[h,{open:f,close:y}]=U.useDisclosure(!1),b=a.useMemo(()=>[{id:!o||o==="0"?"":o,Url:r??"",contentType:"image/*",originalFileName:"",fileSize:0,storageType:"",storagePath:"",fileName:"",parentType:"",parentId:"",ownerId:"",createdAt:new Date,updatedAt:new Date,version:0,deleted:!1,deletedAt:new Date}],[r,o]),j=()=>{g(),f()},N=a.useCallback(async()=>{if(g(),!!r)try{await q(r,z(r))}catch{}},[r,g]),L=a.useCallback(()=>{g(),c.update(()=>{const w=k.$getNodeByKey(e);i.$isImageNode(w)&&w.remove()})},[c,e,g]);return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"image-touch-actions",style:{position:"absolute",top:8,right:8,zIndex:10,pointerEvents:"auto"},onClick:w=>w.stopPropagation(),children:n.jsx(i.ActionIcon,{label:s("editor.toolbar.more"),icon:i.MoreHorizontalCircle01Icon,iconColor:"var(--mantine-color-gray-text)","aria-label":s("editor.toolbar.more"),onClick:m})}),n.jsx(_.AttachmentsGalleryModal,{opened:h,onOpenChange:w=>w?f():y(),attachments:b}),n.jsx(i.MobileDrawer,{opened:l,onClose:g,title:s("editor.image.mobileActions"),children:n.jsxs(C.Stack,{gap:4,p:0,children:[n.jsx(C.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:j,leftSection:n.jsx(i.HugeiconsIcon,{icon:oe,size:16,color:"var(--mantine-color-dimmed)"}),children:s("editor.image.previewFullScreen")}),n.jsx(C.Button,{type:"button",variant:"subtle",color:"gray",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:()=>void N(),leftSection:n.jsx(i.HugeiconsIcon,{icon:i.Download01Icon,size:16,color:"var(--mantine-color-dimmed)"}),children:s("editor.gallery.download")}),n.jsx(C.Button,{type:"button",variant:"subtle",color:"red",fullWidth:!0,justify:"flex-start",bg:"var(--editor-action-bg)",onClick:L,leftSection:n.jsx(i.HugeiconsIcon,{icon:i.Delete03Icon,size:16,color:"var(--mantine-color-red-6)"}),children:s("editor.actions.delete")})]})})]})}const te=e=>{const{width:r,height:o,isLoading:s,isError:c,src:l,id:m,altText:g,imageRef:h,maxWidth:f,aspectRatio:y}=e;return n.jsxs("div",{className:"media-wrapper","data-reserved-box":y?"":void 0,style:{width:r,height:y?"auto":o,aspectRatio:y||void 0,display:"inline-flex",position:"relative"},children:[n.jsx(C.LoadingOverlay,{visible:s,zIndex:1e3,overlayProps:{backgroundOpacity:.5},loaderProps:{size:24,color:"black"}}),n.jsx(Ie,{className:null,src:l,altText:g,imageRef:h,width:"inherit",height:"inherit",maxWidth:f||"auto",id:m}),i.IS_TOUCH_DEVICE&&n.jsx(ye,{nodeKey:e.nodeKey,src:l,id:m}),i.IS_TOUCH_TABLET&&n.jsx(we,{nodeKey:e.nodeKey,src:l,id:m}),i.IS_HOVER_CAPABLE&&!i.IS_TOUCH_DEVICE&&!i.IS_TOUCH_TABLET&&n.jsx(Ce,{nodeKey:e.nodeKey,src:l})]})};function Ie({altText:e,className:r,imageRef:o,src:s,width:c,height:l,maxWidth:m,id:g}){const[h,f]=a.useState(!1);return n.jsx("img",{className:`${r||void 0} ${h?"":"loading"}`,src:s,alt:e,ref:o,style:{height:l,maxWidth:m,width:c},onLoad:()=>{s.includes("splash")?setTimeout(()=>{f(!0)},100):f(!0)},draggable:"false","data-id":g})}function ke(e){const{disable:r}=a.useContext(i.Context);return r&&i.ImageNode.isPlaceholderSrc(e.src)?null:n.jsx(je,{...e})}function je({src:e,altText:r,nodeKey:o,width:s,height:c,maxWidth:l,showCaption:m,caption:g,id:h,create:f,alignment:y,imagePickerTab:b,aspectRatio:j}){var K,ee;const N=a.useRef(null),[L,w]=a.useState(!0),[p]=T.useLexicalComposerContext(),[v,O]=a.useState(!0),[I,P]=a.useState({width:0,height:0}),{start:F}=i.useCancelUpload(),[ve,W]=a.useState(0),{fetchUploadMedia:S,fetchDeleteMedia:H,maxFileSize:Ne,imperativeHandleRef:M,disable:re}=a.useContext(i.Context),D=i.mediaMap.has(e)&&(((K=i.mediaMap.get(e))==null?void 0:K.mediaNodeKeys.length)===0||((ee=i.mediaMap.get(e))==null?void 0:ee.mediaNodeKeys.length)===void 0||e.trim()===""),{t:A}=E.useTranslation(),B=t=>{if(typeof t=="number")return t>0?t:null;if(typeof t=="string"&&!t.includes("%")){const d=parseFloat(t);return Number.isFinite(d)&&d>0?d:null}return null},V=B(s),G=B(c),X=V&&G?V/G:void 0,[ae,se]=a.useState(void 0),Y=a.useMemo(()=>{try{const t=parseFloat(localStorage.getItem("layers-img-ratio:"+e)||"");return Number.isFinite(t)&&t>0?t:void 0}catch{return}},[e]),le=X??j??Y??ae,[ce,Z]=a.useState(!1),de=!ce&&!X&&(j??Y)!=null,[Le,ue]=a.useState(0);a.useEffect(()=>p.registerDecoratorListener(()=>{ue(t=>t+1)}),[D]),a.useEffect(()=>{const t=p.getElementByKey(o);t&&(t.style.removeProperty("aspect-ratio"),t.style.removeProperty("width"))},[p,o]),a.useEffect(()=>{if(!e||e.startsWith("data:image/")||!e.trim()){w(!1);return}const t=new Image;t.src=e,t.onload=()=>{if(w(!1),t.naturalWidth){const d=t.naturalWidth/t.naturalHeight;if(se(d),t.naturalWidth>=100)try{localStorage.setItem("layers-img-ratio:"+e,String(d))}catch{}!j&&t.naturalWidth>=100&&p.update(()=>{const u=k.$getNodeByKey(o);i.$isImageNode(u)&&u.getAspectRatio()==null&&u.setAspectRatio(d)},{tag:"history-merge"})}},t.onerror=()=>{w(!1)}},[e,D]);const ge=(t,d)=>{p.update(()=>{k.$setSelection(null);const u=k.$getNodeByKey(o);i.$isImageNode(u)&&u.setWidthAndHeight(t,d)})},{historyState:J}=i.useSharedHistoryContext(),{settings:{showNestedEditorTreeView:Q}}=i.useSettings();function he(t){return t.endsWith(".svg")||t.includes("image/svg+xml")}function pe(t){return new Promise((d,u)=>{if(he(t)){d(0);return}const x=new Image;x.src=t,x.onload=()=>{d(x.width)},x.onerror=()=>{u(new Error("Failed to load image"))}})}a.useEffect(()=>{let t=s,d=c,u=100;(e.includes("unsplash")?e.trim():!D&&e.trim()||e.includes("upload-src-editor"))&&e!=="upload"&&pe(e).then(x=>{typeof t=="number"&&t<u&&x<u?(O(!0),P({width:t,height:d})):x<u?(O(!0),P({width:"auto",height:"auto"})):(P({width:x,height:x}),O(!1)),Z(!0)}).catch(x=>{Z(!0),console.warn("Ошибка при загрузке изображения:",x.message)})},[e,D]),a.useEffect(()=>{I.width&&I.height&&v&&p.update(()=>{const t=k.$getNodeByKey(o);i.$isImageNode(t)&&t.setWidthAndHeight(I.width,I.height)})},[I.width,I.height,v]);const me=a.useCallback(t=>i.$writeImagePickerTabToNode(p,o,t),[p,o]),R=a.useCallback((t,d)=>{w(!1),p.update(()=>{const u=k.$getNodeByKey(o);i.$isImageNode(u)&&(u.setSrc(t),u.setId(d))})},[p,o]),$=a.useCallback(t=>{w(!0);const d=F();S&&S(t[0],(u,x)=>{R(u,x),W(0)},u=>{u&&_.showErrorNotification({message:A("editor.gallery.errorFile")}),W(0),R(e.startsWith("blob:")?"upload":"","")},d,u=>{W(u)})},[S,F,A,R,e]);return a.useEffect(()=>p.registerCommand(i.UPLOAD_IMAGE_COMMAND,t=>!e.startsWith("blob:")&&e!=="upload"||t.targetNodeKey!==o?!1:($(t.files),!0),k.COMMAND_PRIORITY_LOW),[p,$,o,e]),!e||e==="upload"?n.jsx(C.Box,{"data-editor-image-picker-drop-root":!0,w:"100%",children:n.jsx(i.ImagePicker,{inline:!0,nodeKey:o,defaultTabValue:b,onWriteTabToNode:me,uploading:!1,onUpload:t=>{!S||!t.length||$(t)},popoverProps:{opened:!0,position:"bottom",zIndex:i.EDITOR_UI_MIN_Z_INDEX},onChange:t=>{p.update(()=>{const d=k.$getNodeByKey(o);i.$isImageNode(d)&&d.setSrc(t)})}})}):v&&!de?n.jsx(te,{width:I.width,height:I.height,isLoading:L,isError:!1,isIcon:v,src:e,id:h,editor:p,nodeKey:o,fetchDeleteMedia:H,altText:r,imageRef:N,maxWidth:l,showCaption:m,caption:g,isCollabActive:!1,historyState:J,showNestedEditorTreeView:Q,t:A}):n.jsx(i.ResizableContainer,{editor:p,isIcon:v,width:i.parseContainerSize(s),height:i.parseContainerSize(c),initialWidth:I.width||"",initialHeight:I.height||"",onResizeEnd:ge,alignment:y,disable:re,onRegisterDecoratorEnter:t=>{M!=null&&M.current&&(M.current.decoratorEnterAction=t)},onActivate:()=>p.dispatchCommand(i.ON_CHANGE_COMMAND,"show_menu"),children:n.jsx(te,{width:"inherit",height:"inherit",aspectRatio:le,isLoading:L,isError:!1,isIcon:v,src:e,id:h,editor:p,nodeKey:o,fetchDeleteMedia:H,altText:r,imageRef:N,maxWidth:l,showCaption:m,caption:g,isCollabActive:!1,historyState:J,showNestedEditorTreeView:Q,t:A})})}exports.default=ke;
@@ -1 +0,0 @@
1
- "use strict";const n=require("./layers.AZFDTfYD.js"),s=(e,r)=>n.Utils.lang.round(n.Color.parse(e)[r]);exports.channel=s;
@@ -1,51 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./layers.AZFDTfYD.js"),gt=require("./layers.BLd2spTm.js");require("lodash-es");const Et=require("./layers.Cyzu9PKQ.js");require("./layers.DFsWppan.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const mt=require("./layers.B1-2ER2o.js"),kt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function Ot(t){return typeof t=="string"&&kt.test(t)}function lt(t){if(!Ot(t))throw TypeError("Invalid UUID");let e;return Uint8Array.of((e=parseInt(t.slice(0,8),16))>>>24,e>>>16&255,e>>>8&255,e&255,(e=parseInt(t.slice(9,13),16))>>>8,e&255,(e=parseInt(t.slice(14,18),16))>>>8,e&255,(e=parseInt(t.slice(19,23),16))>>>8,e&255,(e=parseInt(t.slice(24,36),16))/1099511627776&255,e/4294967296&255,e>>>24&255,e>>>16&255,e>>>8&255,e&255)}const M=[];for(let t=0;t<256;++t)M.push((t+256).toString(16).slice(1));function Rt(t,e=0){return(M[t[e+0]]+M[t[e+1]]+M[t[e+2]]+M[t[e+3]]+"-"+M[t[e+4]]+M[t[e+5]]+"-"+M[t[e+6]]+M[t[e+7]]+"-"+M[t[e+8]]+M[t[e+9]]+"-"+M[t[e+10]]+M[t[e+11]]+M[t[e+12]]+M[t[e+13]]+M[t[e+14]]+M[t[e+15]]).toLowerCase()}function bt(t){t=unescape(encodeURIComponent(t));const e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r);return e}const xt="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Nt="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Tt(t,e,r,l,u,f){const _=typeof r=="string"?bt(r):r,d=typeof l=="string"?lt(l):l;if(typeof l=="string"&&(l=lt(l)),(l==null?void 0:l.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let a=new Uint8Array(16+_.length);if(a.set(d),a.set(_,d.length),a=e(a),a[6]=a[6]&15|t,a[8]=a[8]&63|128,u){if(f=f||0,f<0||f+16>u.length)throw new RangeError(`UUID byte range ${f}:${f+15} is out of buffer bounds`);for(let p=0;p<16;++p)u[f+p]=a[p];return u}return Rt(a)}function At(t,e,r,l){switch(t){case 0:return e&r^~e&l;case 1:return e^r^l;case 2:return e&r^e&l^r&l;case 3:return e^r^l}}function et(t,e){return t<<e|t>>>32-e}function Mt(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520],l=new Uint8Array(t.length+1);l.set(t),l[t.length]=128,t=l;const u=t.length/4+2,f=Math.ceil(u/16),_=new Array(f);for(let d=0;d<f;++d){const a=new Uint32Array(16);for(let p=0;p<16;++p)a[p]=t[d*64+p*4]<<24|t[d*64+p*4+1]<<16|t[d*64+p*4+2]<<8|t[d*64+p*4+3];_[d]=a}_[f-1][14]=(t.length-1)*8/Math.pow(2,32),_[f-1][14]=Math.floor(_[f-1][14]),_[f-1][15]=(t.length-1)*8&4294967295;for(let d=0;d<f;++d){const a=new Uint32Array(80);for(let y=0;y<16;++y)a[y]=_[d][y];for(let y=16;y<80;++y)a[y]=et(a[y-3]^a[y-8]^a[y-14]^a[y-16],1);let p=r[0],O=r[1],m=r[2],R=r[3],k=r[4];for(let y=0;y<80;++y){const D=Math.floor(y/20),P=et(p,5)+At(D,O,m,R)+k+e[D]+a[y]>>>0;k=R,R=m,m=et(O,30)>>>0,O=p,p=P}r[0]=r[0]+p>>>0,r[1]=r[1]+O>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+R>>>0,r[4]=r[4]+k>>>0}return Uint8Array.of(r[0]>>24,r[0]>>16,r[0]>>8,r[0],r[1]>>24,r[1]>>16,r[1]>>8,r[1],r[2]>>24,r[2]>>16,r[2]>>8,r[2],r[3]>>24,r[3]>>16,r[3]>>8,r[3],r[4]>>24,r[4]>>16,r[4]>>8,r[4])}function it(t,e,r,l){return Tt(80,Mt,t,e,r,l)}it.DNS=xt;it.URL=Nt;var rt=(function(){var t=function(S,n,s,c){for(s=s||{},c=S.length;c--;s[S[c]]=n);return s},e=[6,8,10,20,22,24,26,27,28],r=[1,10],l=[1,11],u=[1,12],f=[1,13],_=[1,14],d=[1,15],a=[1,21],p=[1,22],O=[1,23],m=[1,24],R=[1,25],k=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],y=[1,34],D=[27,28,46,47],P=[41,42,43,44,45],W=[17,34],Y=[1,54],A=[1,53],w=[17,34,36,38],x={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(n,s,c,h,g,i,V){var o=i.length-1;switch(g){case 1:break;case 2:this.$=[];break;case 3:i[o-1].push(i[o]),this.$=i[o-1];break;case 4:case 5:this.$=i[o];break;case 6:case 7:this.$=[];break;case 8:h.addEntity(i[o-4]),h.addEntity(i[o-2]),h.addRelationship(i[o-4],i[o],i[o-2],i[o-3]);break;case 9:h.addEntity(i[o-3]),h.addAttributes(i[o-3],i[o-1]);break;case 10:h.addEntity(i[o-2]);break;case 11:h.addEntity(i[o]);break;case 12:h.addEntity(i[o-6],i[o-4]),h.addAttributes(i[o-6],i[o-1]);break;case 13:h.addEntity(i[o-5],i[o-3]);break;case 14:h.addEntity(i[o-3],i[o-1]);break;case 15:case 16:this.$=i[o].trim(),h.setAccTitle(this.$);break;case 17:case 18:this.$=i[o].trim(),h.setAccDescription(this.$);break;case 19:case 43:this.$=i[o];break;case 20:case 41:case 42:this.$=i[o].replace(/"/g,"");break;case 21:case 29:this.$=[i[o]];break;case 22:i[o].push(i[o-1]),this.$=i[o];break;case 23:this.$={attributeType:i[o-1],attributeName:i[o]};break;case 24:this.$={attributeType:i[o-2],attributeName:i[o-1],attributeKeyTypeList:i[o]};break;case 25:this.$={attributeType:i[o-2],attributeName:i[o-1],attributeComment:i[o]};break;case 26:this.$={attributeType:i[o-3],attributeName:i[o-2],attributeKeyTypeList:i[o-1],attributeComment:i[o]};break;case 27:case 28:case 31:this.$=i[o];break;case 30:i[o-2].push(i[o]),this.$=i[o-2];break;case 32:this.$=i[o].replace(/"/g,"");break;case 33:this.$={cardA:i[o],relType:i[o-1],cardB:i[o-2]};break;case 34:this.$=h.Cardinality.ZERO_OR_ONE;break;case 35:this.$=h.Cardinality.ZERO_OR_MORE;break;case 36:this.$=h.Cardinality.ONE_OR_MORE;break;case 37:this.$=h.Cardinality.ONLY_ONE;break;case 38:this.$=h.Cardinality.MD_PARENT;break;case 39:this.$=h.Identification.NON_IDENTIFYING;break;case 40:this.$=h.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:l,24:u,26:f,27:_,28:d},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:l,24:u,26:f,27:_,28:d},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:a,42:p,43:O,44:m,45:R}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(k,[2,19]),t(k,[2,20]),t(e,[2,4]),{11:29,27:_,28:d},{16:30,17:[1,31],29:32,30:33,34:y},{11:35,27:_,28:d},{40:36,46:[1,37],47:[1,38]},t(D,[2,34]),t(D,[2,35]),t(D,[2,36]),t(D,[2,37]),t(D,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:y},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:a,42:p,43:O,44:m,45:R},t(P,[2,39]),t(P,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(W,[2,23],{32:50,33:51,35:52,37:Y,38:A}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(W,[2,24],{33:56,36:[1,57],38:A}),t(W,[2,25]),t(w,[2,29]),t(W,[2,32]),t(w,[2,31]),{16:58,17:[1,59],29:32,30:33,34:y},t(W,[2,26]),{35:60,37:Y},{17:[1,61]},t(e,[2,13]),t(w,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(n,s){if(s.recoverable)this.trace(n);else{var c=new Error(n);throw c.hash=s,c}},parse:function(n){var s=this,c=[0],h=[],g=[null],i=[],V=this.table,o="",X=0,at=0,ft=2,st=1,yt=i.slice.call(arguments,1),T=Object.create(this.lexer),H={yy:{}};for(var j in this.yy)Object.prototype.hasOwnProperty.call(this.yy,j)&&(H.yy[j]=this.yy[j]);T.setInput(n,H.yy),H.yy.lexer=T,H.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var J=T.yylloc;i.push(J);var pt=T.options&&T.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var F;return F=h.pop()||T.lex()||st,typeof F!="number"&&(F instanceof Array&&(h=F,F=h.pop()),F=s.symbols_[F]||F),F}for(var I,z,v,$,K={},Q,Z,ot,q;;){if(z=c[c.length-1],this.defaultActions[z]?v=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=_t()),v=V[z]&&V[z][I]),typeof v>"u"||!v.length||!v[0]){var tt="";q=[];for(Q in V[z])this.terminals_[Q]&&Q>ft&&q.push("'"+this.terminals_[Q]+"'");T.showPosition?tt="Parse error on line "+(X+1)+`:
2
- `+T.showPosition()+`
3
- Expecting `+q.join(", ")+", got '"+(this.terminals_[I]||I)+"'":tt="Parse error on line "+(X+1)+": Unexpected "+(I==st?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(tt,{text:T.match,token:this.terminals_[I]||I,line:T.yylineno,loc:J,expected:q})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+I);switch(v[0]){case 1:c.push(I),g.push(T.yytext),i.push(T.yylloc),c.push(v[1]),I=null,at=T.yyleng,o=T.yytext,X=T.yylineno,J=T.yylloc;break;case 2:if(Z=this.productions_[v[1]][1],K.$=g[g.length-Z],K._$={first_line:i[i.length-(Z||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(Z||1)].first_column,last_column:i[i.length-1].last_column},pt&&(K._$.range=[i[i.length-(Z||1)].range[0],i[i.length-1].range[1]]),$=this.performAction.apply(K,[o,at,X,H.yy,v[1],g,i].concat(yt)),typeof $<"u")return $;Z&&(c=c.slice(0,-1*Z*2),g=g.slice(0,-1*Z),i=i.slice(0,-1*Z)),c.push(this.productions_[v[1]][0]),g.push(K.$),i.push(K._$),ot=V[c[c.length-2]][c[c.length-1]],c.push(ot);break;case 3:return!0}}return!0}},N=(function(){var S={EOF:1,parseError:function(s,c){if(this.yy.parser)this.yy.parser.parseError(s,c);else throw new Error(s)},setInput:function(n,s){return this.yy=s||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var s=n.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var s=n.length,c=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var g=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===h.length?this.yylloc.first_column:0)+h[h.length-c.length].length-c[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),s=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
5
- `+s+"^"},test_match:function(n,s){var c,h,g;if(this.options.backtrack_lexer&&(g={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(g.yylloc.range=this.yylloc.range.slice(0))),h=n[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],c=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var i in g)this[i]=g[i];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,s,c,h;this._more||(this.yytext="",this.match="");for(var g=this._currentRules(),i=0;i<g.length;i++)if(c=this._input.match(this.rules[g[i]]),c&&(!s||c[0].length>s[0].length)){if(s=c,h=i,this.options.backtrack_lexer){if(n=this.test_match(c,g[i]),n!==!1)return n;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(n=this.test_match(s,g[h]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return s||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(s,c,h,g){switch(h){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;case 22:return c.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return c.yytext[0];case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};return S})();x.lexer=N;function L(){this.yy={}}return L.prototype=x,x.Parser=L,new L})();rt.parser=rt;const wt=rt;let U={},nt=[];const St={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},It={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},dt=function(t,e=void 0){return U[t]===void 0?(U[t]={attributes:[],alias:e},E.log$1.info("Added new entity :",t)):U[t]&&!U[t].alias&&e&&(U[t].alias=e,E.log$1.info(`Add alias '${e}' to entity '${t}'`)),U[t]},Dt=()=>U,vt=function(t,e){let r=dt(t),l;for(l=e.length-1;l>=0;l--)r.attributes.push(e[l]),E.log$1.debug("Added attribute ",e[l].attributeName)},Lt=function(t,e,r,l){let u={entityA:t,roleA:e,entityB:r,relSpec:l};nt.push(u),E.log$1.debug("Added new relationship :",u)},Bt=()=>nt,Ct=function(){U={},nt=[],E.clear()},Pt={Cardinality:St,Identification:It,getConfig:()=>E.getConfig().er,addEntity:dt,addAttributes:vt,getEntities:Dt,addRelationship:Lt,getRelationships:Bt,clear:Ct,setAccTitle:E.setAccTitle,getAccTitle:E.getAccTitle,setAccDescription:E.setAccDescription,getAccDescription:E.getAccDescription,setDiagramTitle:E.setDiagramTitle,getDiagramTitle:E.getDiagramTitle},B={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},Yt=function(t,e){let r;t.append("defs").append("marker").attr("id",B.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",B.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",B.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",B.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",B.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",B.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",B.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",B.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=t.append("defs").append("marker").attr("id",B.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=t.append("defs").append("marker").attr("id",B.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},C={ERMarkers:B,insertMarkers:Yt},Zt=/[^\dA-Za-z](\W)*/g;let b={},G=new Map;const Ft=function(t){const e=Object.keys(t);for(const r of e)b[r]=t[r]},Wt=(t,e,r)=>{const l=b.entityPadding/3,u=b.entityPadding/3,f=b.fontSize*.85,_=e.node().getBBox(),d=[];let a=!1,p=!1,O=0,m=0,R=0,k=0,y=_.height+l*2,D=1;r.forEach(A=>{A.attributeKeyTypeList!==void 0&&A.attributeKeyTypeList.length>0&&(a=!0),A.attributeComment!==void 0&&(p=!0)}),r.forEach(A=>{const w=`${e.node().id}-attr-${D}`;let x=0;const N=E.parseGenericTypes(A.attributeType),L=t.append("text").classed("er entityLabel",!0).attr("id",`${w}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",E.getConfig().fontFamily).style("font-size",f+"px").text(N),S=t.append("text").classed("er entityLabel",!0).attr("id",`${w}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",E.getConfig().fontFamily).style("font-size",f+"px").text(A.attributeName),n={};n.tn=L,n.nn=S;const s=L.node().getBBox(),c=S.node().getBBox();if(O=Math.max(O,s.width),m=Math.max(m,c.width),x=Math.max(s.height,c.height),a){const h=A.attributeKeyTypeList!==void 0?A.attributeKeyTypeList.join(","):"",g=t.append("text").classed("er entityLabel",!0).attr("id",`${w}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",E.getConfig().fontFamily).style("font-size",f+"px").text(h);n.kn=g;const i=g.node().getBBox();R=Math.max(R,i.width),x=Math.max(x,i.height)}if(p){const h=t.append("text").classed("er entityLabel",!0).attr("id",`${w}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",E.getConfig().fontFamily).style("font-size",f+"px").text(A.attributeComment||"");n.cn=h;const g=h.node().getBBox();k=Math.max(k,g.width),x=Math.max(x,g.height)}n.height=x,d.push(n),y+=x+l*2,D+=1});let P=4;a&&(P+=2),p&&(P+=2);const W=O+m+R+k,Y={width:Math.max(b.minEntityWidth,Math.max(_.width+b.entityPadding*2,W+u*P)),height:r.length>0?y:Math.max(b.minEntityHeight,_.height+b.entityPadding*2)};if(r.length>0){const A=Math.max(0,(Y.width-W-u*P)/(P/2));e.attr("transform","translate("+Y.width/2+","+(l+_.height/2)+")");let w=_.height+l*2,x="attributeBoxOdd";d.forEach(N=>{const L=w+l+N.height/2;N.tn.attr("transform","translate("+u+","+L+")");const S=t.insert("rect","#"+N.tn.node().id).classed(`er ${x}`,!0).attr("x",0).attr("y",w).attr("width",O+u*2+A).attr("height",N.height+l*2),n=parseFloat(S.attr("x"))+parseFloat(S.attr("width"));N.nn.attr("transform","translate("+(n+u)+","+L+")");const s=t.insert("rect","#"+N.nn.node().id).classed(`er ${x}`,!0).attr("x",n).attr("y",w).attr("width",m+u*2+A).attr("height",N.height+l*2);let c=parseFloat(s.attr("x"))+parseFloat(s.attr("width"));if(a){N.kn.attr("transform","translate("+(c+u)+","+L+")");const h=t.insert("rect","#"+N.kn.node().id).classed(`er ${x}`,!0).attr("x",c).attr("y",w).attr("width",R+u*2+A).attr("height",N.height+l*2);c=parseFloat(h.attr("x"))+parseFloat(h.attr("width"))}p&&(N.cn.attr("transform","translate("+(c+u)+","+L+")"),t.insert("rect","#"+N.cn.node().id).classed(`er ${x}`,"true").attr("x",c).attr("y",w).attr("width",k+u*2+A).attr("height",N.height+l*2)),w+=N.height+l*2,x=x==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else Y.height=Math.max(b.minEntityHeight,y),e.attr("transform","translate("+Y.width/2+","+Y.height/2+")");return Y},Ut=function(t,e,r){const l=Object.keys(e);let u;return l.forEach(function(f){const _=Xt(f,"entity");G.set(f,_);const d=t.append("g").attr("id",_);u=u===void 0?_:u;const a="text-"+_,p=d.append("text").classed("er entityLabel",!0).attr("id",a).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",E.getConfig().fontFamily).style("font-size",b.fontSize+"px").text(e[f].alias??f),{width:O,height:m}=Wt(d,p,e[f].attributes),k=d.insert("rect","#"+a).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",O).attr("height",m).node().getBBox();r.setNode(_,{width:k.width,height:k.height,shape:"rect",id:_})}),u},Ht=function(t,e){e.nodes().forEach(function(r){r!==void 0&&e.node(r)!==void 0&&t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )")})},ut=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},zt=function(t,e){return t.forEach(function(r){e.setEdge(G.get(r.entityA),G.get(r.entityB),{relationship:r},ut(r))}),t};let ct=0;const Kt=function(t,e,r,l,u){ct++;const f=r.edge(G.get(e.entityA),G.get(e.entityB),ut(e)),_=mt.line().x(function(y){return y.x}).y(function(y){return y.y}).curve(E.curveBasis),d=t.insert("path","#"+l).classed("er relationshipLine",!0).attr("d",_(f.points)).style("stroke",b.stroke).style("fill","none");e.relSpec.relType===u.db.Identification.NON_IDENTIFYING&&d.attr("stroke-dasharray","8,8");let a="";switch(b.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),e.relSpec.cardA){case u.db.Cardinality.ZERO_OR_ONE:d.attr("marker-end","url("+a+"#"+C.ERMarkers.ZERO_OR_ONE_END+")");break;case u.db.Cardinality.ZERO_OR_MORE:d.attr("marker-end","url("+a+"#"+C.ERMarkers.ZERO_OR_MORE_END+")");break;case u.db.Cardinality.ONE_OR_MORE:d.attr("marker-end","url("+a+"#"+C.ERMarkers.ONE_OR_MORE_END+")");break;case u.db.Cardinality.ONLY_ONE:d.attr("marker-end","url("+a+"#"+C.ERMarkers.ONLY_ONE_END+")");break;case u.db.Cardinality.MD_PARENT:d.attr("marker-end","url("+a+"#"+C.ERMarkers.MD_PARENT_END+")");break}switch(e.relSpec.cardB){case u.db.Cardinality.ZERO_OR_ONE:d.attr("marker-start","url("+a+"#"+C.ERMarkers.ZERO_OR_ONE_START+")");break;case u.db.Cardinality.ZERO_OR_MORE:d.attr("marker-start","url("+a+"#"+C.ERMarkers.ZERO_OR_MORE_START+")");break;case u.db.Cardinality.ONE_OR_MORE:d.attr("marker-start","url("+a+"#"+C.ERMarkers.ONE_OR_MORE_START+")");break;case u.db.Cardinality.ONLY_ONE:d.attr("marker-start","url("+a+"#"+C.ERMarkers.ONLY_ONE_START+")");break;case u.db.Cardinality.MD_PARENT:d.attr("marker-start","url("+a+"#"+C.ERMarkers.MD_PARENT_START+")");break}const p=d.node().getTotalLength(),O=d.node().getPointAtLength(p*.5),m="rel"+ct,k=t.append("text").classed("er relationshipLabel",!0).attr("id",m).attr("x",O.x).attr("y",O.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",E.getConfig().fontFamily).style("font-size",b.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+m).classed("er relationshipLabelBox",!0).attr("x",O.x-k.width/2).attr("y",O.y-k.height/2).attr("width",k.width).attr("height",k.height)},Vt=function(t,e,r,l){b=E.getConfig().er,E.log$1.info("Drawing ER diagram");const u=E.getConfig().securityLevel;let f;u==="sandbox"&&(f=E.select("#i"+e));const d=(u==="sandbox"?E.select(f.nodes()[0].contentDocument.body):E.select("body")).select(`[id='${e}']`);C.insertMarkers(d,b);let a;a=new gt.Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:b.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const p=Ut(d,l.db.getEntities(),a),O=zt(l.db.getRelationships(),a);Et.layout(a),Ht(d,a),O.forEach(function(D){Kt(d,D,a,p,l)});const m=b.diagramPadding;E.utils.insertTitle(d,"entityTitleText",b.titleTopMargin,l.db.getDiagramTitle());const R=d.node().getBBox(),k=R.width+m*2,y=R.height+m*2;E.configureSvgSize(d,y,k,b.useMaxWidth),d.attr("viewBox",`${R.x-m} ${R.y-m} ${k} ${y}`)},Gt="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function Xt(t="",e=""){const r=t.replace(Zt,"");return`${ht(e)}${ht(r)}${it(t,Gt)}`}function ht(t=""){return t.length>0?`${t}-`:""}const Qt={setConf:Ft,draw:Vt},qt=t=>`
7
- .entityBox {
8
- fill: ${t.mainBkg};
9
- stroke: ${t.nodeBorder};
10
- }
11
-
12
- .attributeBoxOdd {
13
- fill: ${t.attributeBackgroundColorOdd};
14
- stroke: ${t.nodeBorder};
15
- }
16
-
17
- .attributeBoxEven {
18
- fill: ${t.attributeBackgroundColorEven};
19
- stroke: ${t.nodeBorder};
20
- }
21
-
22
- .relationshipLabelBox {
23
- fill: ${t.tertiaryColor};
24
- opacity: 0.7;
25
- background-color: ${t.tertiaryColor};
26
- rect {
27
- opacity: 0.5;
28
- }
29
- }
30
-
31
- .relationshipLine {
32
- stroke: ${t.lineColor};
33
- }
34
-
35
- .entityTitleText {
36
- text-anchor: middle;
37
- font-size: 18px;
38
- fill: ${t.textColor};
39
- }
40
- #MD_PARENT_START {
41
- fill: #f5f5f5 !important;
42
- stroke: ${t.lineColor} !important;
43
- stroke-width: 1;
44
- }
45
- #MD_PARENT_END {
46
- fill: #f5f5f5 !important;
47
- stroke: ${t.lineColor} !important;
48
- stroke-width: 1;
49
- }
50
-
51
- `,jt=qt,Jt={parser:wt,db:Pt,renderer:Qt,styles:jt};exports.diagram=Jt;