@layers-app/editor 2.1.2 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{layers.DHjlzdnX.js → layers.0h0xCCvu.js} +3 -3
- package/dist/{layers.DPT86vbm.js → layers.1iRWn23E.js} +1 -1
- package/dist/{layers.24fH3jO7.js → layers.47swObhK.js} +1 -1
- package/dist/{layers.DEvk5b_m.js → layers.4n1gtRVe.js} +1 -1
- package/dist/{layers.DVDV5Eob.js → layers.7TsK-Kpe.js} +4 -4
- package/dist/{layers.D2C1AAFy.js → layers.7xEtaMzU.js} +1 -1
- package/dist/{layers.Dt4MUmh2.js → layers.AW6ZJg83.js} +1 -1
- package/dist/{layers.BH4CcuPU.js → layers.Aa4aSsWk.js} +1 -1
- package/dist/{layers.d6Fn7klb.js → layers.B2hwWcA2.js} +1 -1
- package/dist/{layers.CKVT73b6.js → layers.B3Puj5he.js} +1 -1
- package/dist/{layers.CFc3R-QM.js → layers.B54prYGZ.js} +1 -1
- package/dist/{layers.Be9HvW7_.js → layers.B5OXOXmy.js} +1 -1
- package/dist/{layers.BgQfUEuD.js → layers.B8h3aTAI.js} +1 -1
- package/dist/{layers.BkohC21G.js → layers.B8zC9lOU.js} +1 -1
- package/dist/{layers.211k8J6Q.js → layers.BBgpAhwA.js} +1 -1
- package/dist/{layers.B5NvkSWw.js → layers.BDSOX2CD.js} +4 -4
- package/dist/{layers.Qs9pBp--.js → layers.BDZyk-_d.js} +1 -1
- package/dist/{layers.cUmJE27h.js → layers.BDybYMm_.js} +1 -1
- package/dist/{layers.CuHh4C3N.js → layers.BG--ipsx.js} +3 -3
- package/dist/{layers.DPKHuF3H.js → layers.BGFBC-Gr.js} +1 -1
- package/dist/{layers.DWeTBqHP.js → layers.BGOtFCsx.js} +1 -1
- package/dist/{layers.C3EhLFnp.js → layers.BGls9yuY.js} +1 -1
- package/dist/{layers.B5_w6m34.js → layers.BJFKH68r.js} +1 -1
- package/dist/{layers.DhdB8Zf6.js → layers.BKHDRNqX.js} +1 -1
- package/dist/{layers.CVMV-qFS.js → layers.BKoYtTI-.js} +1 -1
- package/dist/{layers.BS7XwVf7.js → layers.BLgjmb5i.js} +1 -1
- package/dist/{layers.h3iBRW2G.js → layers.BMBTFPwh.js} +1 -1
- package/dist/{layers.AC7W4xBD.js → layers.BMICBPj8.js} +4 -4
- package/dist/{layers.QycpaeM5.js → layers.BN3ygs4g.js} +1 -1
- package/dist/{layers.DkSaaOmQ.js → layers.BOlJGPxF.js} +1 -1
- package/dist/layers.BQNASuUa.js +6 -0
- package/dist/{layers.3D28WHDQ.js → layers.BQaOGAZ0.js} +1 -1
- package/dist/{layers.DEuYgDza.js → layers.BRx5nPJB.js} +1 -1
- package/dist/{layers.jjdcXDWp.js → layers.BS8vE0dV.js} +1 -1
- package/dist/layers.BSSHVyJ4.js +1 -0
- package/dist/{layers.DPkUH6BK.js → layers.BT7Zo_Ih.js} +1 -1
- package/dist/{layers.DXmuvgzS.js → layers.BTyLb_e_.js} +1 -1
- package/dist/{layers.N_d5-jzu.js → layers.BVpXkDdv.js} +1 -1
- package/dist/{layers.GnoGau-5.js → layers.B_fccDFH.js} +1 -1
- package/dist/{layers.BTOmeaK0.js → layers.Ba8sUBgc.js} +1 -1
- package/dist/{layers.DqfbMYCz.js → layers.BcTsQfaC.js} +1 -1
- package/dist/{layers.B0n1bJOa.js → layers.BeMgdWFI.js} +1 -1
- package/dist/layers.BfoCDFZ9.js +1 -0
- package/dist/{layers.CGVEHq8q.js → layers.Bhcz8svQ.js} +1 -1
- package/dist/{layers.Cme2ArIh.js → layers.Bj4PSUye.js} +1 -1
- package/dist/{layers.D_dLQzZ8.js → layers.BnZeGjMO.js} +1 -1
- package/dist/{layers.Bi_sulT8.js → layers.Bo67iVkw.js} +1 -1
- package/dist/{layers.B8fj-1G9.js → layers.BocO2HWt.js} +1 -1
- package/dist/{layers.uNp9QNnL.js → layers.BppwELpk.js} +1 -1
- package/dist/{layers.CIhrDk39.js → layers.Bq9RC4C4.js} +1 -1
- package/dist/{layers.D-s-J6sZ.js → layers.BqwIK88k.js} +1 -1
- package/dist/{layers.CUdEBcfl.js → layers.BsGxddFV.js} +1 -1
- package/dist/{layers.DK8ENVZh.js → layers.BxzEqaLL.js} +1 -1
- package/dist/{layers.CQ7hqL8T.js → layers.Byu2aohV.js} +1 -1
- package/dist/{layers.BYUzOY_F.js → layers.Bz56YIfK.js} +1 -1
- package/dist/{layers.C1BnBwLU.js → layers.C27S2Xar.js} +1 -1
- package/dist/{layers.Bw7-Q65_.js → layers.C28APEyB.js} +3 -3
- package/dist/{layers.DLFbew7-.js → layers.C28M0pbG.js} +5 -5
- package/dist/{layers.lFFqMK5F.js → layers.C2aWyQ_z.js} +1 -1
- package/dist/{layers.C1-eF8XV.js → layers.C3LY8tx7.js} +2 -2
- package/dist/{layers.QIdlF7l4.js → layers.C4VSQwqA.js} +1 -1
- package/dist/{layers.DHjwMehd.js → layers.C6jxKkTv.js} +1 -1
- package/dist/{layers.Dl9658KJ.js → layers.C7_sEZsw.js} +1 -1
- package/dist/{layers.HKP_U8_i.js → layers.C9egzq2p.js} +1 -1
- package/dist/{layers.CgCBbzNF.js → layers.C9pSe8Gq.js} +1 -1
- package/dist/{layers.DFWroQa5.js → layers.CAMZZkZG.js} +1 -1
- package/dist/{layers.Bx7QY9-W.js → layers.CC7k-uCF.js} +1 -1
- package/dist/{layers.DJYfwaER.js → layers.CEbI900B.js} +1 -1
- package/dist/{layers.Bh8zZbZR.js → layers.CEng0uhp.js} +2 -2
- package/dist/{layers.Cu3a8RlJ.js → layers.CFZVIlvH.js} +1 -1
- package/dist/{layers.SyyNUorj.js → layers.CIV5LuL0.js} +1 -1
- package/dist/{layers.CVCQLc7t.js → layers.CJ7b2VoP.js} +3 -3
- package/dist/{layers.CwIS7DrJ.js → layers.CKKHzx-Z.js} +4 -4
- package/dist/{layers.DX2RzOlU.js → layers.CKOPZMk4.js} +1 -1
- package/dist/layers.CL3mtH76.js +539 -0
- package/dist/{layers.OLs_EQp8.js → layers.CLQWeDwS.js} +4 -4
- package/dist/{layers.BJzPnW43.js → layers.CLXOAVPz.js} +1 -1
- package/dist/{layers.D1Oocmsk.js → layers.CLxWcsfl.js} +6 -6
- package/dist/{layers.pLv3k2Ct.js → layers.CNpkcp3V.js} +4 -4
- package/dist/layers.CPmFoLSN.js +1125 -0
- package/dist/{layers.Dinv788w.js → layers.CRGuNhS-.js} +1 -1
- package/dist/{layers.CM4X9zEZ.js → layers.CS2Q0MP6.js} +1 -1
- package/dist/{layers.BGR_bGMP.js → layers.CS330bin.js} +1 -1
- package/dist/{layers.C9ZD83zp.js → layers.CS7NMRN_.js} +25 -25
- package/dist/{layers.C-VanZJ5.js → layers.CSSbl973.js} +1 -1
- package/dist/{layers.BX09_qEb.js → layers.CU4oDgOc.js} +1 -1
- package/dist/{layers.B7VW63VK.js → layers.CUAcceRX.js} +1 -1
- package/dist/{layers.DeG9JJhv.js → layers.CVWgLN9d.js} +2 -2
- package/dist/{layers.wnrcDB5T.js → layers.CX8BXozR.js} +1 -1
- package/dist/{layers.MP1t8ZW0.js → layers.CYx3WWdM.js} +1 -1
- package/dist/{layers.BUSrsj2C.js → layers.C_DV_R5p.js} +1 -1
- package/dist/{layers.CrtHh9Jf.js → layers.CbB7a2CQ.js} +1 -1
- package/dist/{layers.1T45bgi4.js → layers.Ccq59tb8.js} +1 -1
- package/dist/{layers.Ia3rP-TK.js → layers.Cdo2oTor.js} +1 -1
- package/dist/{layers.X_sehKhk.js → layers.Ce1CohBK.js} +5 -5
- package/dist/{layers.CQMowyfw.js → layers.CgD7ay5J.js} +2 -2
- package/dist/{layers.CH7ZfhJs.js → layers.Cgc8JRjh.js} +1 -1
- package/dist/{layers.DcnvBarW.js → layers.CgwU5cxh.js} +1 -1
- package/dist/{layers.De7nqrar.js → layers.CiVpjulR.js} +1 -1
- package/dist/{layers.B2P5cT4-.js → layers.Ci_-CaC7.js} +1 -1
- package/dist/{layers.tW7c_8Fe.js → layers.CiuG5bFW.js} +1 -1
- package/dist/{layers.DE3MIxt1.js → layers.Ck3pOq18.js} +1 -1
- package/dist/{layers.mE8tBmJm.js → layers.Cli1o2i6.js} +1 -1
- package/dist/{layers.Dg9zRFEO.js → layers.Cm_sw-AY.js} +1 -1
- package/dist/layers.CmmYt3Ou.js +1 -0
- package/dist/{layers.CATrQrUY.js → layers.CmpAOvSy.js} +1 -1
- package/dist/{layers.DFe4pQq-.js → layers.Co_xJxKs.js} +1 -1
- package/dist/{layers.DV5Gopgo.js → layers.Cp00BqUB.js} +1 -1
- package/dist/{layers.C8UUVTbp.js → layers.CpmoXIAt.js} +1 -1
- package/dist/{layers.DLzQvvOb.js → layers.CqMMm2pL.js} +3 -3
- package/dist/{layers.DsJULkj2.js → layers.CqTnCIrx.js} +1 -1
- package/dist/{layers.WJmzeUEe.js → layers.CrxxpXzR.js} +1 -1
- package/dist/{layers.CVKSymcN.js → layers.Cswoe0IX.js} +1 -1
- package/dist/{layers.BZVYPStP.js → layers.CsxVLmvQ.js} +1 -1
- package/dist/{layers.ixo7Wzze.js → layers.CvnlEd9b.js} +1 -1
- package/dist/{layers.YwwpoNfE.js → layers.CvysdL-r.js} +1 -1
- package/dist/{layers.B6gOO5fW.js → layers.D03Ua4xq.js} +1 -1
- package/dist/layers.D0jPJbv8.js +8 -0
- package/dist/{layers.BqQb9N_9.js → layers.D2nNrhbx.js} +1028 -1035
- package/dist/{layers.Is0Wgnhb.js → layers.D3OjD3_Z.js} +1 -1
- package/dist/{layers.BCKDOBoF.js → layers.D3UeFDcM.js} +1 -1
- package/dist/{layers.CNACpRlj.js → layers.D3xEVf11.js} +1 -1
- package/dist/{layers.U0YQXDmg.js → layers.D4_rAe6g.js} +1 -1
- package/dist/{layers.DmOCs_36.js → layers.D4x86ACf.js} +1 -1
- package/dist/{layers.BylpY8Ry.js → layers.D6Rcr62n.js} +1 -1
- package/dist/{layers.D-EAR42e.js → layers.D9SNCBUi.js} +1 -1
- package/dist/{layers.DM2TlX9k.js → layers.DC1iLoXw.js} +1 -1
- package/dist/{layers.CJqWaMuJ.js → layers.DDVdzu5M.js} +1 -1
- package/dist/{layers.BFX-cQ7d.js → layers.DF1wIyJl.js} +1 -1
- package/dist/{layers.BGri-SH8.js → layers.DF3IwTvD.js} +1 -1
- package/dist/{layers.CWxGQ2FY.js → layers.DFf3K_BU.js} +1 -1
- package/dist/{layers.BzXvCj8u.js → layers.DIF45FFn.js} +1 -1
- package/dist/{layers.CORFE6ZZ.js → layers.DItbZWrP.js} +1 -1
- package/dist/{layers.-tOWT3CM.js → layers.DJ-3Xpuz.js} +1 -1
- package/dist/{layers.CveGXN13.js → layers.DLiB9OEd.js} +1 -1
- package/dist/{layers.BJmB3Omq.js → layers.DNJkc-Mo.js} +17751 -16828
- package/dist/{layers.BOrWZRWS.js → layers.DPBt8Ar9.js} +1 -1
- package/dist/{layers.LSgpiMEM.js → layers.DPbQjNkl.js} +1 -1
- package/dist/{layers.DjKimTMc.js → layers.DQ15N9DZ.js} +1 -1
- package/dist/{layers.HUoQy4j2.js → layers.DQwmvElW.js} +1 -1
- package/dist/{layers.DAMprab7.js → layers.DRMN4wK5.js} +1 -1
- package/dist/{layers.yhTGLBnE.js → layers.DRmnp_VT.js} +6 -5
- package/dist/{layers._V8aXe_7.js → layers.DTaNTG_B.js} +6252 -5985
- package/dist/{layers.Dp63j4hl.js → layers.DTgmIl0j.js} +3 -3
- package/dist/{layers.D0eBTcYq.js → layers.DZp57Oqh.js} +1 -1
- package/dist/{layers.BunoWudg.js → layers.Da-2dyEi.js} +1 -1
- package/dist/{layers.eHevaWp3.js → layers.DcFGX6Rw.js} +1 -1
- package/dist/{layers.7MGamder.js → layers.DdafmrR3.js} +2 -2
- package/dist/{layers.BmjmK7MG.js → layers.DeM__u1_.js} +1 -1
- package/dist/{layers.CPA1pQ_g.js → layers.Df22ww72.js} +3 -3
- package/dist/{layers.sdU_7oll.js → layers.Dgp1gaU6.js} +4 -4
- package/dist/layers.DilA0qnM.js +54 -0
- package/dist/{layers.DLKeJAVb.js → layers.DkgAwtpC.js} +1 -1
- package/dist/{layers.Dt3IQEZC.js → layers.DlEA3-cX.js} +1 -1
- package/dist/{layers.B2ldDn6H.js → layers.Dld7xCuy.js} +1 -1
- package/dist/{layers.CGnFpg-y.js → layers.DnMJFLGr.js} +4 -4
- package/dist/{layers.DzKruh5r.js → layers.DndmHTyu.js} +1 -1
- package/dist/{layers.JFsXCOXj.js → layers.Dod6Nf_j.js} +1 -1
- package/dist/layers.DojFOI4Z.js +1 -0
- package/dist/{layers.Bu_7Dam4.js → layers.DpMixDb4.js} +1 -1
- package/dist/{layers.DSxPKJQz.js → layers.DpPFzOm0.js} +1 -1
- package/dist/{layers.BcCOxB85.js → layers.DqtTeUFK.js} +1 -1
- package/dist/{layers.DRElgKaX.js → layers.Dvn_9A0a.js} +1 -1
- package/dist/{layers.DmE4cJfm.js → layers.DvzDTiKM.js} +1 -1
- package/dist/{layers.C8m3to9J.js → layers.DxbeR8gn.js} +1 -1
- package/dist/layers.Dy-sMwk8.js +1 -0
- package/dist/{layers.CyxrUxbC.js → layers.Dy3JpZkl.js} +1 -1
- package/dist/{layers.Beb3lNk8.js → layers.DyOMyr1U.js} +1 -1
- package/dist/{layers.DgwokyUD.js → layers.DzUUP9Du.js} +1 -1
- package/dist/{layers.CD0Cy2U0.js → layers.Dzl9Kzo9.js} +1 -1
- package/dist/{layers.DG-1hZsf.js → layers.EW49Ned6.js} +1 -1
- package/dist/{layers.D2Q8slIc.js → layers.EW6UiJMi.js} +1 -1
- package/dist/{layers.C4Acp9zY.js → layers.F3RaMrM-.js} +1 -1
- package/dist/{layers.CS_hl_F4.js → layers.FICd1tQW.js} +3 -3
- package/dist/{layers.DzsWVMRF.js → layers.GLyR-OWz.js} +142 -151
- package/dist/{layers.BHtcqiKc.js → layers.GornH8rL.js} +1 -1
- package/dist/{layers.BFsc5CST.js → layers.HNZIi4HM.js} +3 -3
- package/dist/{layers.t-jpthGE.js → layers.Hc8Pmmic.js} +44 -44
- package/dist/{layers.C8YRR8y2.js → layers.JQ45PKXx.js} +1 -1
- package/dist/{layers.581oHIQu.js → layers.K43S7aP0.js} +1 -1
- package/dist/{layers.BhTG1NCS.js → layers.KLaNL4bG.js} +1 -1
- package/dist/{layers.VzP1BwO_.js → layers.MHceKg9n.js} +1 -1
- package/dist/{layers.BacoSRCm.js → layers.MubFSdwe.js} +1 -1
- package/dist/{layers.DIzL84j8.js → layers.RQU5nEtM.js} +1 -1
- package/dist/{layers.CdAtg-92.js → layers.SfPz0Yvc.js} +1 -1
- package/dist/{layers.i_nyv3uW.js → layers.U56kgtto.js} +4 -4
- package/dist/{layers.2cXF9DlP.js → layers.W-AFrwh2.js} +1 -1
- package/dist/{layers.CnCxUhgk.js → layers.YVE78Hde.js} +1 -1
- package/dist/{layers.B7PlXb_7.js → layers.bK_voO90.js} +1 -1
- package/dist/{layers.kPojR14s.js → layers.fAOYEH60.js} +1 -1
- package/dist/{layers.Cw0YM5x4.js → layers.gu8VQIr-.js} +1 -1
- package/dist/{layers.CbrkwYHM.js → layers.hN_6Bz4k.js} +1 -1
- package/dist/{layers.Sms3JyGg.js → layers.i_mYGumA.js} +1 -1
- package/dist/{layers.C50Jwlir.js → layers.ktfZPCbd.js} +1 -1
- package/dist/layers.lXfukYV5.js +1 -0
- package/dist/{layers.BtVCO2La.js → layers.oPXgxcx0.js} +1 -1
- package/dist/{layers.D-Hm0MPj.js → layers.piLdW3O-.js} +1 -1
- package/dist/{layers.CxuC306z.js → layers.rbpTi3-T.js} +1 -1
- package/dist/{layers.7CgX4wIw.js → layers.rq_uH5pA.js} +1 -1
- package/dist/{layers.Bw80vB5j.js → layers.sr1vtGu6.js} +1 -1
- package/dist/{layers.Bs39uNwj.js → layers.wB2fo65H.js} +1 -1
- package/dist/{layers.DcpwulkC.js → layers.zwanR9F3.js} +3 -3
- package/package.json +13 -13
- package/dist/layers.Bs6NXB6I.js +0 -8
- package/dist/layers.C4frFpgE.js +0 -1
- package/dist/layers.Ci1Nf5vS.js +0 -1
- package/dist/layers.Cje93wfr.js +0 -1
- package/dist/layers.D74Kw2Nl.js +0 -1
- package/dist/layers.JkpjL-1v.js +0 -6
- package/dist/layers.i1uXwwIp.js +0 -845
- package/dist/layers.n7_pucol.js +0 -559
- package/dist/layers.zHGtf3U2.js +0 -1
|
@@ -1,30 +1,21 @@
|
|
|
1
1
|
import { jsxs as P, jsx as o, Fragment as le } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as v, useCallback as b, useMemo as de, useContext as Q, useRef as ce, useEffect as x } from "react";
|
|
3
3
|
import { useTranslation as H } from "react-i18next";
|
|
4
|
-
import { useLexicalComposerContext as
|
|
5
|
-
import { Stack as
|
|
6
|
-
import { $getNodeByKey as
|
|
7
|
-
import { b as
|
|
8
|
-
import { AttachmentsGalleryModal as
|
|
9
|
-
import "@lexical/react/LexicalDecoratorBlockNode";
|
|
10
|
-
import "@lexical/utils";
|
|
4
|
+
import { useLexicalComposerContext as j } from "@lexical/react/LexicalComposerContext";
|
|
5
|
+
import { Stack as ue, Button as L, Box as ge, LoadingOverlay as me } from "@mantine/core";
|
|
6
|
+
import { $getNodeByKey as y, COMMAND_PRIORITY_LOW as he, $setSelection as fe } from "lexical";
|
|
7
|
+
import { b as N, d as K, i as ee, P as pe, N as we, M as ve, A as Ie, O as be, c as Ce, H as R, g as ye, T as Ne, l as Ae, C as te, e as xe, f as De, m as F, h as Te, j as Oe, k as Se, U as Ee, n as Me, o as Pe, R as ke, p as Y, q as _e, r as ze, s as We } from "./layers.DNJkc-Mo.js";
|
|
8
|
+
import { AttachmentsGalleryModal as Ue, showErrorNotification as Le } from "@layers-app/shared";
|
|
11
9
|
import { useDisclosure as Z } from "@mantine/hooks";
|
|
12
|
-
|
|
13
|
-
import "@lexical/code";
|
|
14
|
-
import "@lexical/selection";
|
|
15
|
-
import "@lexical/react/LexicalBlockWithAlignableContents";
|
|
16
|
-
import "@mantine/notifications";
|
|
17
|
-
const Fe = () => {
|
|
10
|
+
const Re = () => {
|
|
18
11
|
};
|
|
19
|
-
function
|
|
20
|
-
const { t: r } = H(), [
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
const I = v.getParent();
|
|
25
|
-
fe(I) ? I.remove() : v.remove();
|
|
12
|
+
function Fe({ nodeKey: e, src: n, id: i }) {
|
|
13
|
+
const { t: r } = H(), [u] = j(), [g, m] = v(!1), [l, h] = v(!1), f = b(() => {
|
|
14
|
+
u.update(() => {
|
|
15
|
+
const w = y(e);
|
|
16
|
+
N(w) && w.remove();
|
|
26
17
|
});
|
|
27
|
-
}, [
|
|
18
|
+
}, [u, e]), A = b(async () => {
|
|
28
19
|
if (n)
|
|
29
20
|
try {
|
|
30
21
|
await K(n, ee(n));
|
|
@@ -44,35 +35,35 @@ function He({ nodeKey: e, src: n, id: i }) {
|
|
|
44
35
|
display: "flex",
|
|
45
36
|
gap: 4
|
|
46
37
|
},
|
|
47
|
-
onClick: (
|
|
38
|
+
onClick: (w) => w.stopPropagation(),
|
|
48
39
|
children: [
|
|
49
|
-
/* @__PURE__ */ o(
|
|
40
|
+
/* @__PURE__ */ o(pe, { t: r, src: n, setShown: Re, id: i }),
|
|
50
41
|
/* @__PURE__ */ o(
|
|
51
42
|
we,
|
|
52
43
|
{
|
|
53
|
-
opened:
|
|
54
|
-
setOpened:
|
|
44
|
+
opened: g,
|
|
45
|
+
setOpened: m,
|
|
55
46
|
t: r,
|
|
56
|
-
editor:
|
|
47
|
+
editor: u,
|
|
57
48
|
nodeKey: e
|
|
58
49
|
}
|
|
59
50
|
),
|
|
60
51
|
/* @__PURE__ */ o(
|
|
61
|
-
|
|
52
|
+
ve,
|
|
62
53
|
{
|
|
63
54
|
opened: l,
|
|
64
55
|
onOpenChange: h,
|
|
65
56
|
t: r,
|
|
66
|
-
onDownload: () => void
|
|
67
|
-
onDelete:
|
|
57
|
+
onDownload: () => void A(),
|
|
58
|
+
onDelete: f
|
|
68
59
|
}
|
|
69
60
|
)
|
|
70
61
|
]
|
|
71
62
|
}
|
|
72
63
|
);
|
|
73
64
|
}
|
|
74
|
-
function
|
|
75
|
-
const { t: r } = H(), [
|
|
65
|
+
function He({ nodeKey: e, src: n, id: i }) {
|
|
66
|
+
const { t: r } = H(), [u] = j(), [g, { open: m, close: l }] = Z(!1), [h, { open: f, close: A }] = Z(!1), w = de(
|
|
76
67
|
() => [
|
|
77
68
|
{
|
|
78
69
|
id: !i || i === "0" ? "" : i,
|
|
@@ -94,20 +85,20 @@ function $e({ nodeKey: e, src: n, id: i }) {
|
|
|
94
85
|
}
|
|
95
86
|
],
|
|
96
87
|
[n, i]
|
|
97
|
-
),
|
|
98
|
-
l(),
|
|
99
|
-
},
|
|
88
|
+
), D = () => {
|
|
89
|
+
l(), f();
|
|
90
|
+
}, T = b(async () => {
|
|
100
91
|
if (l(), !!n)
|
|
101
92
|
try {
|
|
102
93
|
await K(n, ee(n));
|
|
103
94
|
} catch {
|
|
104
95
|
}
|
|
105
|
-
}, [n, l]),
|
|
106
|
-
l(),
|
|
107
|
-
const a =
|
|
108
|
-
|
|
96
|
+
}, [n, l]), I = b(() => {
|
|
97
|
+
l(), u.update(() => {
|
|
98
|
+
const a = y(e);
|
|
99
|
+
N(a) && a.remove();
|
|
109
100
|
});
|
|
110
|
-
}, [
|
|
101
|
+
}, [u, e, l]);
|
|
111
102
|
return /* @__PURE__ */ P(le, { children: [
|
|
112
103
|
/* @__PURE__ */ o(
|
|
113
104
|
"div",
|
|
@@ -122,32 +113,32 @@ function $e({ nodeKey: e, src: n, id: i }) {
|
|
|
122
113
|
},
|
|
123
114
|
onClick: (a) => a.stopPropagation(),
|
|
124
115
|
children: /* @__PURE__ */ o(
|
|
125
|
-
|
|
116
|
+
Ie,
|
|
126
117
|
{
|
|
127
118
|
label: r("editor.toolbar.more"),
|
|
128
|
-
icon:
|
|
119
|
+
icon: be,
|
|
129
120
|
iconColor: "var(--mantine-color-gray-text)",
|
|
130
121
|
"aria-label": r("editor.toolbar.more"),
|
|
131
|
-
onClick:
|
|
122
|
+
onClick: m
|
|
132
123
|
}
|
|
133
124
|
)
|
|
134
125
|
}
|
|
135
126
|
),
|
|
136
127
|
/* @__PURE__ */ o(
|
|
137
|
-
|
|
128
|
+
Ue,
|
|
138
129
|
{
|
|
139
130
|
opened: h,
|
|
140
|
-
onOpenChange: (a) => a ?
|
|
141
|
-
attachments:
|
|
131
|
+
onOpenChange: (a) => a ? f() : A(),
|
|
132
|
+
attachments: w
|
|
142
133
|
}
|
|
143
134
|
),
|
|
144
135
|
/* @__PURE__ */ o(
|
|
145
|
-
|
|
136
|
+
Ce,
|
|
146
137
|
{
|
|
147
|
-
opened:
|
|
138
|
+
opened: g,
|
|
148
139
|
onClose: l,
|
|
149
140
|
title: r("editor.image.mobileActions"),
|
|
150
|
-
children: /* @__PURE__ */ P(
|
|
141
|
+
children: /* @__PURE__ */ P(ue, { gap: 4, p: 0, children: [
|
|
151
142
|
/* @__PURE__ */ o(
|
|
152
143
|
L,
|
|
153
144
|
{
|
|
@@ -157,11 +148,11 @@ function $e({ nodeKey: e, src: n, id: i }) {
|
|
|
157
148
|
fullWidth: !0,
|
|
158
149
|
justify: "flex-start",
|
|
159
150
|
bg: "light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",
|
|
160
|
-
onClick:
|
|
151
|
+
onClick: D,
|
|
161
152
|
leftSection: /* @__PURE__ */ o(
|
|
162
153
|
R,
|
|
163
154
|
{
|
|
164
|
-
icon:
|
|
155
|
+
icon: ye,
|
|
165
156
|
size: 16,
|
|
166
157
|
color: "var(--mantine-color-dimmed)"
|
|
167
158
|
}
|
|
@@ -178,11 +169,11 @@ function $e({ nodeKey: e, src: n, id: i }) {
|
|
|
178
169
|
fullWidth: !0,
|
|
179
170
|
justify: "flex-start",
|
|
180
171
|
bg: "light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",
|
|
181
|
-
onClick: () => void
|
|
172
|
+
onClick: () => void T(),
|
|
182
173
|
leftSection: /* @__PURE__ */ o(
|
|
183
174
|
R,
|
|
184
175
|
{
|
|
185
|
-
icon:
|
|
176
|
+
icon: Ne,
|
|
186
177
|
size: 16,
|
|
187
178
|
color: "var(--mantine-color-dimmed)"
|
|
188
179
|
}
|
|
@@ -199,11 +190,11 @@ function $e({ nodeKey: e, src: n, id: i }) {
|
|
|
199
190
|
fullWidth: !0,
|
|
200
191
|
justify: "flex-start",
|
|
201
192
|
bg: "light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-outline-hover))",
|
|
202
|
-
onClick:
|
|
193
|
+
onClick: I,
|
|
203
194
|
leftSection: /* @__PURE__ */ o(
|
|
204
195
|
R,
|
|
205
196
|
{
|
|
206
|
-
icon:
|
|
197
|
+
icon: Ae,
|
|
207
198
|
size: 16,
|
|
208
199
|
color: "var(--mantine-color-red-6)"
|
|
209
200
|
}
|
|
@@ -221,12 +212,12 @@ const J = (e) => {
|
|
|
221
212
|
width: n,
|
|
222
213
|
height: i,
|
|
223
214
|
isLoading: r,
|
|
224
|
-
isError:
|
|
225
|
-
src:
|
|
226
|
-
id:
|
|
215
|
+
isError: u,
|
|
216
|
+
src: g,
|
|
217
|
+
id: m,
|
|
227
218
|
altText: l,
|
|
228
219
|
imageRef: h,
|
|
229
|
-
maxWidth:
|
|
220
|
+
maxWidth: f
|
|
230
221
|
} = e;
|
|
231
222
|
return /* @__PURE__ */ P(
|
|
232
223
|
"div",
|
|
@@ -240,7 +231,7 @@ const J = (e) => {
|
|
|
240
231
|
},
|
|
241
232
|
children: [
|
|
242
233
|
/* @__PURE__ */ o(
|
|
243
|
-
|
|
234
|
+
me,
|
|
244
235
|
{
|
|
245
236
|
visible: r,
|
|
246
237
|
zIndex: 1e3,
|
|
@@ -252,17 +243,17 @@ const J = (e) => {
|
|
|
252
243
|
je,
|
|
253
244
|
{
|
|
254
245
|
className: null,
|
|
255
|
-
src:
|
|
246
|
+
src: g,
|
|
256
247
|
altText: l,
|
|
257
248
|
imageRef: h,
|
|
258
249
|
width: "inherit",
|
|
259
250
|
height: "inherit",
|
|
260
|
-
maxWidth:
|
|
261
|
-
id:
|
|
251
|
+
maxWidth: f || "auto",
|
|
252
|
+
id: m
|
|
262
253
|
}
|
|
263
254
|
),
|
|
264
|
-
ze && /* @__PURE__ */ o(
|
|
265
|
-
|
|
255
|
+
ze && /* @__PURE__ */ o(He, { nodeKey: e.nodeKey, src: g, id: m }),
|
|
256
|
+
We && /* @__PURE__ */ o(Fe, { nodeKey: e.nodeKey, src: g, id: m })
|
|
266
257
|
]
|
|
267
258
|
}
|
|
268
259
|
);
|
|
@@ -272,12 +263,12 @@ function je({
|
|
|
272
263
|
className: n,
|
|
273
264
|
imageRef: i,
|
|
274
265
|
src: r,
|
|
275
|
-
width:
|
|
276
|
-
height:
|
|
277
|
-
maxWidth:
|
|
266
|
+
width: u,
|
|
267
|
+
height: g,
|
|
268
|
+
maxWidth: m,
|
|
278
269
|
id: l
|
|
279
270
|
}) {
|
|
280
|
-
const [h,
|
|
271
|
+
const [h, f] = v(!1);
|
|
281
272
|
return /* @__PURE__ */ o(
|
|
282
273
|
"img",
|
|
283
274
|
{
|
|
@@ -286,70 +277,70 @@ function je({
|
|
|
286
277
|
alt: e,
|
|
287
278
|
ref: i,
|
|
288
279
|
style: {
|
|
289
|
-
height:
|
|
290
|
-
maxWidth:
|
|
291
|
-
width:
|
|
280
|
+
height: g,
|
|
281
|
+
maxWidth: m,
|
|
282
|
+
width: u
|
|
292
283
|
},
|
|
293
284
|
onLoad: () => {
|
|
294
285
|
r.includes("splash") ? setTimeout(() => {
|
|
295
|
-
|
|
296
|
-
}, 100) :
|
|
286
|
+
f(!0);
|
|
287
|
+
}, 100) : f(!0);
|
|
297
288
|
},
|
|
298
289
|
draggable: "false",
|
|
299
290
|
"data-id": l
|
|
300
291
|
}
|
|
301
292
|
);
|
|
302
293
|
}
|
|
303
|
-
function
|
|
294
|
+
function ot(e) {
|
|
304
295
|
const { disable: n } = Q(te);
|
|
305
|
-
return n &&
|
|
296
|
+
return n && xe.isPlaceholderSrc(e.src) ? null : /* @__PURE__ */ o($e, { ...e });
|
|
306
297
|
}
|
|
307
|
-
function
|
|
298
|
+
function $e({
|
|
308
299
|
src: e,
|
|
309
300
|
altText: n,
|
|
310
301
|
nodeKey: i,
|
|
311
302
|
width: r,
|
|
312
|
-
height:
|
|
313
|
-
maxWidth:
|
|
314
|
-
showCaption:
|
|
303
|
+
height: u,
|
|
304
|
+
maxWidth: g,
|
|
305
|
+
showCaption: m,
|
|
315
306
|
caption: l,
|
|
316
307
|
id: h,
|
|
317
|
-
create:
|
|
318
|
-
alignment:
|
|
319
|
-
imagePickerTab:
|
|
308
|
+
create: f,
|
|
309
|
+
alignment: A,
|
|
310
|
+
imagePickerTab: w
|
|
320
311
|
}) {
|
|
321
312
|
var q, X;
|
|
322
|
-
const
|
|
313
|
+
const D = ce(null), [T, I] = v(!0), [a] = j(), [C, k] = v(!0), [p, _] = v({
|
|
323
314
|
width: 0,
|
|
324
315
|
height: 0
|
|
325
|
-
}), { start:
|
|
326
|
-
fetchUploadMedia:
|
|
316
|
+
}), { start: $ } = De(), [Be, z] = v(0), {
|
|
317
|
+
fetchUploadMedia: O,
|
|
327
318
|
fetchDeleteMedia: B,
|
|
328
|
-
maxFileSize:
|
|
319
|
+
maxFileSize: Ge,
|
|
329
320
|
imperativeHandleRef: S,
|
|
330
321
|
disable: oe
|
|
331
|
-
} = Q(te), E = F.has(e) && (((q = F.get(e)) == null ? void 0 : q.mediaNodeKeys.length) === 0 || ((X = F.get(e)) == null ? void 0 : X.mediaNodeKeys.length) === void 0 || e.trim() === ""), { t: M } = H(), [
|
|
332
|
-
|
|
322
|
+
} = Q(te), E = F.has(e) && (((q = F.get(e)) == null ? void 0 : q.mediaNodeKeys.length) === 0 || ((X = F.get(e)) == null ? void 0 : X.mediaNodeKeys.length) === void 0 || e.trim() === ""), { t: M } = H(), [Ve, ie] = v(0);
|
|
323
|
+
x(() => a.registerDecoratorListener(() => {
|
|
333
324
|
ie((t) => t + 1);
|
|
334
|
-
}), [E]),
|
|
325
|
+
}), [E]), x(() => {
|
|
335
326
|
if (!e || e.startsWith("data:image/") || !e.trim()) {
|
|
336
|
-
|
|
327
|
+
I(!1);
|
|
337
328
|
return;
|
|
338
329
|
}
|
|
339
330
|
const t = new Image();
|
|
340
|
-
t.src = e, t.onload = () =>
|
|
341
|
-
|
|
331
|
+
t.src = e, t.onload = () => I(!1), t.onerror = () => {
|
|
332
|
+
I(!1);
|
|
342
333
|
};
|
|
343
334
|
}, [e, E]);
|
|
344
335
|
const ne = (t, d) => {
|
|
345
336
|
a.update(() => {
|
|
346
|
-
|
|
347
|
-
const s =
|
|
348
|
-
|
|
337
|
+
fe(null);
|
|
338
|
+
const s = y(i);
|
|
339
|
+
N(s) && s.setWidthAndHeight(t, d);
|
|
349
340
|
});
|
|
350
341
|
}, { historyState: G } = Te(), {
|
|
351
342
|
settings: { showNestedEditorTreeView: V }
|
|
352
|
-
} =
|
|
343
|
+
} = Oe();
|
|
353
344
|
function ae(t) {
|
|
354
345
|
return t.endsWith(".svg") || t.includes("image/svg+xml");
|
|
355
346
|
}
|
|
@@ -367,105 +358,105 @@ function Be({
|
|
|
367
358
|
};
|
|
368
359
|
});
|
|
369
360
|
}
|
|
370
|
-
|
|
371
|
-
let t = r, d =
|
|
361
|
+
x(() => {
|
|
362
|
+
let t = r, d = u, s = 100;
|
|
372
363
|
(e.includes("unsplash") ? e.trim() : !E && e.trim() || e.includes("upload-src-editor")) && e !== "upload" && re(e).then((c) => {
|
|
373
|
-
typeof t == "number" && t < s && c < s ? (k(!0),
|
|
364
|
+
typeof t == "number" && t < s && c < s ? (k(!0), _({
|
|
374
365
|
width: t,
|
|
375
366
|
height: d
|
|
376
|
-
})) : c < s ? (k(!0),
|
|
367
|
+
})) : c < s ? (k(!0), _({
|
|
377
368
|
width: "auto",
|
|
378
369
|
height: "auto"
|
|
379
|
-
})) : (
|
|
370
|
+
})) : (_({
|
|
380
371
|
width: c,
|
|
381
372
|
height: c
|
|
382
373
|
}), k(!1));
|
|
383
374
|
}).catch((c) => {
|
|
384
375
|
console.warn("Ошибка при загрузке изображения:", c.message);
|
|
385
376
|
});
|
|
386
|
-
}, [e, E]),
|
|
387
|
-
|
|
388
|
-
const t =
|
|
389
|
-
|
|
377
|
+
}, [e, E]), x(() => {
|
|
378
|
+
p.width && p.height && C && a.update(() => {
|
|
379
|
+
const t = y(i);
|
|
380
|
+
N(t) && t.setWidthAndHeight(p.width, p.height);
|
|
390
381
|
});
|
|
391
|
-
}, [
|
|
392
|
-
const se =
|
|
393
|
-
(t) =>
|
|
382
|
+
}, [p.width, p.height, C]);
|
|
383
|
+
const se = b(
|
|
384
|
+
(t) => Se(a, i, t),
|
|
394
385
|
[a, i]
|
|
395
|
-
),
|
|
386
|
+
), W = b(
|
|
396
387
|
(t, d) => {
|
|
397
|
-
|
|
398
|
-
const s =
|
|
399
|
-
|
|
388
|
+
I(!1), a.update(() => {
|
|
389
|
+
const s = y(i);
|
|
390
|
+
N(s) && (s.setSrc(t), s.setId(d));
|
|
400
391
|
});
|
|
401
392
|
},
|
|
402
393
|
[a, i]
|
|
403
|
-
), U =
|
|
394
|
+
), U = b(
|
|
404
395
|
(t) => {
|
|
405
|
-
|
|
406
|
-
const d =
|
|
407
|
-
|
|
396
|
+
I(!0);
|
|
397
|
+
const d = $();
|
|
398
|
+
O && O(
|
|
408
399
|
t[0],
|
|
409
400
|
(s, c) => {
|
|
410
|
-
|
|
401
|
+
W(s, c), z(0);
|
|
411
402
|
},
|
|
412
403
|
(s) => {
|
|
413
|
-
s &&
|
|
404
|
+
s && Le({
|
|
414
405
|
message: M("editor.gallery.errorFile")
|
|
415
|
-
}),
|
|
406
|
+
}), z(0), W("", "");
|
|
416
407
|
},
|
|
417
408
|
d,
|
|
418
409
|
(s) => {
|
|
419
|
-
|
|
410
|
+
z(s);
|
|
420
411
|
}
|
|
421
412
|
);
|
|
422
413
|
},
|
|
423
|
-
[
|
|
414
|
+
[O, $, M, W]
|
|
424
415
|
);
|
|
425
|
-
return
|
|
426
|
-
|
|
416
|
+
return x(() => a.registerCommand(
|
|
417
|
+
Ee,
|
|
427
418
|
(t) => e !== "upload" || t.targetNodeKey !== i ? !1 : (U(t.files), !0),
|
|
428
419
|
he
|
|
429
|
-
), [a, U, i, e]), !e || e === "upload" ? /* @__PURE__ */ o(
|
|
430
|
-
|
|
420
|
+
), [a, U, i, e]), !e || e === "upload" ? /* @__PURE__ */ o(ge, { "data-editor-image-picker-drop-root": !0, w: "100%", children: /* @__PURE__ */ o(
|
|
421
|
+
Me,
|
|
431
422
|
{
|
|
432
423
|
inline: !0,
|
|
433
424
|
nodeKey: i,
|
|
434
|
-
defaultTabValue:
|
|
425
|
+
defaultTabValue: w,
|
|
435
426
|
onWriteTabToNode: se,
|
|
436
427
|
uploading: !1,
|
|
437
428
|
onUpload: (t) => {
|
|
438
|
-
!
|
|
429
|
+
!O || !t.length || U(t);
|
|
439
430
|
},
|
|
440
431
|
popoverProps: {
|
|
441
432
|
opened: !0,
|
|
442
433
|
position: "bottom",
|
|
443
|
-
zIndex:
|
|
434
|
+
zIndex: Pe
|
|
444
435
|
},
|
|
445
436
|
onChange: (t) => {
|
|
446
437
|
a.update(() => {
|
|
447
|
-
const d =
|
|
448
|
-
|
|
438
|
+
const d = y(i);
|
|
439
|
+
N(d) && d.setSrc(t);
|
|
449
440
|
});
|
|
450
441
|
}
|
|
451
442
|
}
|
|
452
|
-
) }) :
|
|
443
|
+
) }) : C ? /* @__PURE__ */ o(
|
|
453
444
|
J,
|
|
454
445
|
{
|
|
455
|
-
width:
|
|
456
|
-
height:
|
|
457
|
-
isLoading:
|
|
446
|
+
width: p.width,
|
|
447
|
+
height: p.height,
|
|
448
|
+
isLoading: T,
|
|
458
449
|
isError: !1,
|
|
459
|
-
isIcon:
|
|
450
|
+
isIcon: C,
|
|
460
451
|
src: e,
|
|
461
452
|
id: h,
|
|
462
453
|
editor: a,
|
|
463
454
|
nodeKey: i,
|
|
464
455
|
fetchDeleteMedia: B,
|
|
465
456
|
altText: n,
|
|
466
|
-
imageRef:
|
|
467
|
-
maxWidth:
|
|
468
|
-
showCaption:
|
|
457
|
+
imageRef: D,
|
|
458
|
+
maxWidth: g,
|
|
459
|
+
showCaption: m,
|
|
469
460
|
caption: l,
|
|
470
461
|
isCollabActive: !1,
|
|
471
462
|
historyState: G,
|
|
@@ -473,16 +464,16 @@ function Be({
|
|
|
473
464
|
t: M
|
|
474
465
|
}
|
|
475
466
|
) : /* @__PURE__ */ o(
|
|
476
|
-
|
|
467
|
+
ke,
|
|
477
468
|
{
|
|
478
469
|
editor: a,
|
|
479
|
-
isIcon:
|
|
470
|
+
isIcon: C,
|
|
480
471
|
width: Y(r),
|
|
481
|
-
height: Y(
|
|
482
|
-
initialWidth:
|
|
483
|
-
initialHeight:
|
|
472
|
+
height: Y(u),
|
|
473
|
+
initialWidth: p.width || "",
|
|
474
|
+
initialHeight: p.height || "",
|
|
484
475
|
onResizeEnd: ne,
|
|
485
|
-
alignment:
|
|
476
|
+
alignment: A,
|
|
486
477
|
disable: oe,
|
|
487
478
|
onRegisterDecoratorEnter: (t) => {
|
|
488
479
|
S != null && S.current && (S.current.decoratorEnterAction = t);
|
|
@@ -493,18 +484,18 @@ function Be({
|
|
|
493
484
|
{
|
|
494
485
|
width: "inherit",
|
|
495
486
|
height: "inherit",
|
|
496
|
-
isLoading:
|
|
487
|
+
isLoading: T,
|
|
497
488
|
isError: !1,
|
|
498
|
-
isIcon:
|
|
489
|
+
isIcon: C,
|
|
499
490
|
src: e,
|
|
500
491
|
id: h,
|
|
501
492
|
editor: a,
|
|
502
493
|
nodeKey: i,
|
|
503
494
|
fetchDeleteMedia: B,
|
|
504
495
|
altText: n,
|
|
505
|
-
imageRef:
|
|
506
|
-
maxWidth:
|
|
507
|
-
showCaption:
|
|
496
|
+
imageRef: D,
|
|
497
|
+
maxWidth: g,
|
|
498
|
+
showCaption: m,
|
|
508
499
|
caption: l,
|
|
509
500
|
isCollabActive: !1,
|
|
510
501
|
historyState: G,
|
|
@@ -516,5 +507,5 @@ function Be({
|
|
|
516
507
|
);
|
|
517
508
|
}
|
|
518
509
|
export {
|
|
519
|
-
|
|
510
|
+
ot as default
|
|
520
511
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./layers.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./layers.CS7NMRN_.js"),pt=require("./layers.BLd2spTm.js");require("lodash-es");const _t=require("./layers.Cyzu9PKQ.js");require("./layers.Hc8Pmmic.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const gt=require("./layers.4n1gtRVe.js"),Et=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function mt(t){return typeof t=="string"&&Et.test(t)}const M=[];for(let t=0;t<256;++t)M.push((t+256).toString(16).slice(1));function kt(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]]}function xt(t){if(!mt(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function Ot(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}const Rt="6ba7b810-9dad-11d1-80b4-00c04fd430c8",bt="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Nt(t,e,r){function u(c,p,f,o){var h;if(typeof c=="string"&&(c=Ot(c)),typeof p=="string"&&(p=xt(p)),((h=p)===null||h===void 0?void 0:h.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let _=new Uint8Array(16+c.length);if(_.set(p),_.set(c,p.length),_=r(_),_[6]=_[6]&15|e,_[8]=_[8]&63|128,f){o=o||0;for(let m=0;m<16;++m)f[o+m]=_[m];return f}return kt(_)}try{u.name=t}catch{}return u.DNS=Rt,u.URL=bt,u}function Tt(t,e,r,u){switch(t){case 0:return e&r^~e&u;case 1:return e^r^u;case 2:return e&r^e&u^r&u;case 3:return e^r^u}}function et(t,e){return t<<e|t>>>32-e}function At(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const f=unescape(encodeURIComponent(t));t=[];for(let o=0;o<f.length;++o)t.push(f.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const u=t.length/4+2,c=Math.ceil(u/16),p=new Array(c);for(let f=0;f<c;++f){const o=new Uint32Array(16);for(let h=0;h<16;++h)o[h]=t[f*64+h*4]<<24|t[f*64+h*4+1]<<16|t[f*64+h*4+2]<<8|t[f*64+h*4+3];p[f]=o}p[c-1][14]=(t.length-1)*8/Math.pow(2,32),p[c-1][14]=Math.floor(p[c-1][14]),p[c-1][15]=(t.length-1)*8&4294967295;for(let f=0;f<c;++f){const o=new Uint32Array(80);for(let y=0;y<16;++y)o[y]=p[f][y];for(let y=16;y<80;++y)o[y]=et(o[y-3]^o[y-8]^o[y-14]^o[y-16],1);let h=r[0],_=r[1],m=r[2],k=r[3],O=r[4];for(let y=0;y<80;++y){const T=Math.floor(y/20),D=et(h,5)+Tt(T,_,m,k)+O+e[T]+o[y]>>>0;O=k,k=m,m=et(_,30)>>>0,_=h,h=D}r[0]=r[0]+h>>>0,r[1]=r[1]+_>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+k>>>0,r[4]=r[4]+O>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const Mt=Nt("v5",80,At);var rt=(function(){var t=function(w,n,a,l){for(a=a||{},l=w.length;l--;a[w[l]]=n);return a},e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],c=[1,12],p=[1,13],f=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],k=[1,24],O=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],T=[1,34],D=[27,28,46,47],F=[41,42,43,44,45],W=[17,34],P=[1,54],A=[1,53],S=[17,34,36,38],R={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,a,l,d,g,i,V){var s=i.length-1;switch(g){case 1:break;case 2:this.$=[];break;case 3:i[s-1].push(i[s]),this.$=i[s-1];break;case 4:case 5:this.$=i[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(i[s-4]),d.addEntity(i[s-2]),d.addRelationship(i[s-4],i[s],i[s-2],i[s-3]);break;case 9:d.addEntity(i[s-3]),d.addAttributes(i[s-3],i[s-1]);break;case 10:d.addEntity(i[s-2]);break;case 11:d.addEntity(i[s]);break;case 12:d.addEntity(i[s-6],i[s-4]),d.addAttributes(i[s-6],i[s-1]);break;case 13:d.addEntity(i[s-5],i[s-3]);break;case 14:d.addEntity(i[s-3],i[s-1]);break;case 15:case 16:this.$=i[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=i[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=i[s];break;case 20:case 41:case 42:this.$=i[s].replace(/"/g,"");break;case 21:case 29:this.$=[i[s]];break;case 22:i[s].push(i[s-1]),this.$=i[s];break;case 23:this.$={attributeType:i[s-1],attributeName:i[s]};break;case 24:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeKeyTypeList:i[s]};break;case 25:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeComment:i[s]};break;case 26:this.$={attributeType:i[s-3],attributeName:i[s-2],attributeKeyTypeList:i[s-1],attributeComment:i[s]};break;case 27:case 28:case 31:this.$=i[s];break;case 30:i[s-2].push(i[s]),this.$=i[s-2];break;case 32:this.$=i[s].replace(/"/g,"");break;case 33:this.$={cardA:i[s],relType:i[s-1],cardB:i[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.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:u,24:c,26:p,27:f,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:c,26:p,27:f,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:k,45:O}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(y,[2,19]),t(y,[2,20]),t(e,[2,4]),{11:29,27:f,28:o},{16:30,17:[1,31],29:32,30:33,34:T},{11:35,27:f,28:o},{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:T},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:k,45:O},t(F,[2,39]),t(F,[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:P,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(S,[2,29]),t(W,[2,32]),t(S,[2,31]),{16:58,17:[1,59],29:32,30:33,34:T},t(W,[2,26]),{35:60,37:P},{17:[1,61]},t(e,[2,13]),t(S,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(n,a){if(a.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=a,l}},parse:function(n){var a=this,l=[0],d=[],g=[null],i=[],V=this.table,s="",X=0,nt=0,dt=2,at=1,ut=i.slice.call(arguments,1),N=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]);N.setInput(n,H.yy),H.yy.lexer=N,H.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var J=N.yylloc;i.push(J);var ft=N.options&&N.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(){var Z;return Z=d.pop()||N.lex()||at,typeof Z!="number"&&(Z instanceof Array&&(d=Z,Z=d.pop()),Z=a.symbols_[Z]||Z),Z}for(var I,z,v,$,K={},Q,Y,st,q;;){if(z=l[l.length-1],this.defaultActions[z]?v=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=yt()),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>dt&&q.push("'"+this.terminals_[Q]+"'");N.showPosition?tt="Parse error on line "+(X+1)+`:
|
|
2
2
|
`+N.showPosition()+`
|
|
3
3
|
Expecting `+q.join(", ")+", got '"+(this.terminals_[I]||I)+"'":tt="Parse error on line "+(X+1)+": Unexpected "+(I==at?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(tt,{text:N.match,token:this.terminals_[I]||I,line:N.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:l.push(I),g.push(N.yytext),i.push(N.yylloc),l.push(v[1]),I=null,nt=N.yyleng,s=N.yytext,X=N.yylineno,J=N.yylloc;break;case 2:if(Y=this.productions_[v[1]][1],K.$=g[g.length-Y],K._$={first_line:i[i.length-(Y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(Y||1)].first_column,last_column:i[i.length-1].last_column},ft&&(K._$.range=[i[i.length-(Y||1)].range[0],i[i.length-1].range[1]]),$=this.performAction.apply(K,[s,nt,X,H.yy,v[1],g,i].concat(ut)),typeof $<"u")return $;Y&&(l=l.slice(0,-1*Y*2),g=g.slice(0,-1*Y),i=i.slice(0,-1*Y)),l.push(this.productions_[v[1]][0]),g.push(K.$),i.push(K._$),st=V[l[l.length-2]][l[l.length-1]],l.push(st);break;case 3:return!0}}return!0}},b=(function(){var w={EOF:1,parseError:function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},setInput:function(n,a){return this.yy=a||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 a=n.match(/(?:\r\n?|\n).*/g);return a?(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 a=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var d=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),l.length-1&&(this.yylineno-=l.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:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-a]),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
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(),a=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as we, s as ve, c as $t, g as st, o as _e, n as ke, b as Pe, d as Lt, l as X, e as Le, f as Ie, j as v, i as At, q as Ae, u as B, R as nt, S as wt, T as te, Z as Ne, V as ee, W as Bt } from "./layers.
|
|
2
|
-
import { J as se } from "./layers.
|
|
3
|
-
import { a as Se, b as zt, d as Me, g as Nt, c as Re, e as Ce } from "./layers.
|
|
1
|
+
import { a as we, s as ve, c as $t, g as st, o as _e, n as ke, b as Pe, d as Lt, l as X, e as Le, f as Ie, j as v, i as At, q as Ae, u as B, R as nt, S as wt, T as te, Z as Ne, V as ee, W as Bt } from "./layers.D2nNrhbx.js";
|
|
2
|
+
import { J as se } from "./layers.DTaNTG_B.js";
|
|
3
|
+
import { a as Se, b as zt, d as Me, g as Nt, c as Re, e as Ce } from "./layers.DdafmrR3.js";
|
|
4
4
|
import "lodash-es/memoize.js";
|
|
5
5
|
import "lodash-es/merge.js";
|
|
6
6
|
import "lodash-es/isEmpty.js";
|