@lls/vivi 24.1.7-e05728e4 → 24.1.7-ed075ae9

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/lib/index.js CHANGED
@@ -306,7 +306,7 @@ var init_src_components_core_DocumentToolbar = __esm({
306
306
  "tmp_esbuild/_src_components_core_DocumentToolbar.module.css"() {
307
307
  "use strict";
308
308
  init_SiZlRV2YWb1jY5gExVMrYPMZB79ONPQM_B3jhc8NVMM();
309
- src_components_core_DocumentToolbar_default = { "toggleMenuButton": "vv-JySIna-toggleMenuButton", "parentToolbar": "vv-JySIna-parentToolbar", "toolbar": "vv-JySIna-toolbar" };
309
+ src_components_core_DocumentToolbar_default = { "toolbar": "vv-JySIna-toolbar", "toggleMenuButton": "vv-JySIna-toggleMenuButton", "parentToolbar": "vv-JySIna-parentToolbar" };
310
310
  }
311
311
  });
312
312
 
@@ -320,7 +320,7 @@ var init_DocumentToolbar = __esm({
320
320
 
321
321
  // src/components/core/DocumentToolbar.tsx
322
322
  import { useCallback, useState } from "react";
323
- import { Button, Tooltip, Z_DOCUMENT_TOOLBAR } from "@lls/lls-kit";
323
+ import { Button, Tooltip } from "@lls/lls-kit";
324
324
  import { cx } from "@lls/utils";
325
325
  import { jsx, jsxs } from "react/jsx-runtime";
326
326
  var ToolbarButton, EditToolbarDepth0, EditToolbarDepth1, EditToolbar, ToggleToolbar, Toolbar;
@@ -332,12 +332,12 @@ var init_DocumentToolbar2 = __esm({
332
332
  init_template();
333
333
  init_DocumentToolbar();
334
334
  ToolbarButton = ({ onClick, disabled, disabledTitle, title, icon = "heart" }) => /* @__PURE__ */ jsx(Tooltip, { title: disabled && disabledTitle ? disabledTitle : title, children: /* @__PURE__ */ jsx(Button, { disabled, onClick, theme: "gray", icon }) });
335
- EditToolbarDepth0 = ({ openEditor, openMetadataEditor }) => /* @__PURE__ */ jsxs("div", { className: cx(src_components_core_DocumentToolbar_default.parentToolbar, src_components_core_DocumentToolbar_default.toolbar), style: { "--v-z-document-toolbar": Z_DOCUMENT_TOOLBAR }, children: [
335
+ EditToolbarDepth0 = ({ openEditor, openMetadataEditor }) => /* @__PURE__ */ jsxs("div", { className: cx(src_components_core_DocumentToolbar_default.parentToolbar, src_components_core_DocumentToolbar_default.toolbar), children: [
336
336
  /* @__PURE__ */ jsx(ToolbarButton, { title: "Editer", onClick: (e) => openEditor("root", e) }),
337
337
  /* @__PURE__ */ jsx(ToolbarButton, { title: "Metadata", onClick: (e) => openMetadataEditor("root", e) })
338
338
  ] });
339
339
  EditToolbarDepth1 = ({ path, openEditor, openMetadataEditor, deleteCard, deleteRightResponses, docJson }) => {
340
- return /* @__PURE__ */ jsxs("div", { className: src_components_core_DocumentToolbar_default.toolbar, style: { "--v-z-document-toolbar": Z_DOCUMENT_TOOLBAR }, children: [
340
+ return /* @__PURE__ */ jsxs("div", { className: src_components_core_DocumentToolbar_default.toolbar, children: [
341
341
  /* @__PURE__ */ jsx(ToolbarButton, { title: "Editer", onClick: (e) => openEditor(docJson?.uuid, e) }),
342
342
  /* @__PURE__ */ jsx(ToolbarButton, { title: "Metadata", onClick: (e) => openMetadataEditor(docJson?.uuid, e) }),
343
343
  /* @__PURE__ */ jsx(ToolbarButton, { title: "Supprimer", onClick: () => deleteCard(path) }),
@@ -545,7 +545,7 @@ var init_src_components_primarygrid_EditGrid = __esm({
545
545
  "tmp_esbuild/_src_components_primarygrid_EditGrid.module.css"() {
546
546
  "use strict";
547
547
  init_vFzhiihuB7Z8HMP8oT_qcw0NyCnSgKQtL5TqEfjnBaQ();
548
- src_components_primarygrid_EditGrid_default = { "col": "vv-WWJSSq-col", "zonePicture": "vv-WWJSSq-zonePicture", "interface": "vv-WWJSSq-interface", "zone": "vv-WWJSSq-zone", "editGrid": "vv-WWJSSq-editGrid", "layout": "vv-WWJSSq-layout", "addZone": "vv-WWJSSq-addZone", "row": "vv-WWJSSq-row", "interfaceHeader": "vv-WWJSSq-interfaceHeader" };
548
+ src_components_primarygrid_EditGrid_default = { "interface": "vv-WWJSSq-interface", "zonePicture": "vv-WWJSSq-zonePicture", "layout": "vv-WWJSSq-layout", "editGrid": "vv-WWJSSq-editGrid", "addZone": "vv-WWJSSq-addZone", "interfaceHeader": "vv-WWJSSq-interfaceHeader", "row": "vv-WWJSSq-row", "col": "vv-WWJSSq-col", "zone": "vv-WWJSSq-zone" };
549
549
  }
550
550
  });
551
551
 
@@ -734,7 +734,7 @@ var init_src_components_primarygrid_ZonesMaker = __esm({
734
734
  "tmp_esbuild/_src_components_primarygrid_ZonesMaker.module.css"() {
735
735
  "use strict";
736
736
  init_imZi27_UCk5xmhRkGJbtYm5sGwf0_1B99_Xe1fxg();
737
- src_components_primarygrid_ZonesMaker_default = { "handle": "vv-WzhmXa-handle", "zoneMaker": "vv-WzhmXa-zoneMaker", "pictureZone": "vv-WzhmXa-pictureZone" };
737
+ src_components_primarygrid_ZonesMaker_default = { "zoneMaker": "vv-WzhmXa-zoneMaker", "pictureZone": "vv-WzhmXa-pictureZone", "handle": "vv-WzhmXa-handle" };
738
738
  }
739
739
  });
740
740
 
@@ -839,7 +839,8 @@ var init_ZonesMaker2 = __esm({
839
839
  "--v-zonemaker-handle-left": `${handle.left}%`,
840
840
  "--v-zonemaker-handle-top": `${handle.top}%`
841
841
  },
842
- onMouseDown: (e) => onStartResizing(e, zone, handle.id)
842
+ onMouseDown: (e) => onStartResizing(e, zone, handle.id),
843
+ onTouchStart: (e) => onStartResizing(e, zone, handle.id)
843
844
  },
844
845
  handle.id
845
846
  ))
@@ -987,7 +988,7 @@ var init_src_components_primarygrid_ViewGrid = __esm({
987
988
  "tmp_esbuild/_src_components_primarygrid_ViewGrid.module.css"() {
988
989
  "use strict";
989
990
  init_INxu5dk73JTxjtEzrQ83WOJDTfp5b5jZD8ZfkbKQHIA();
990
- src_components_primarygrid_ViewGrid_default = { "illu": "vv-TauroG-illu", "pictureZone": "vv-TauroG-pictureZone", "viewGrid": "vv-TauroG-viewGrid" };
991
+ src_components_primarygrid_ViewGrid_default = { "viewGrid": "vv-TauroG-viewGrid", "content": "vv-TauroG-content", "pictureZone": "vv-TauroG-pictureZone" };
991
992
  }
992
993
  });
993
994
 
@@ -999,8 +1000,63 @@ var init_ViewGrid = __esm({
999
1000
  }
1000
1001
  });
1001
1002
 
1003
+ // css-modules:css-modules://TRUO9IsCZ8ngJD4Cc_eYHei0BzqoyjltRGbkROcYloU.css
1004
+ var init_TRUO9IsCZ8ngJD4Cc_eYHei0BzqoyjltRGbkROcYloU = __esm({
1005
+ "css-modules:css-modules://TRUO9IsCZ8ngJD4Cc_eYHei0BzqoyjltRGbkROcYloU.css"() {
1006
+ }
1007
+ });
1008
+
1009
+ // tmp_esbuild/_src_components_primarygrid_FullscreenDocument.module.css
1010
+ var src_components_primarygrid_FullscreenDocument_default;
1011
+ var init_src_components_primarygrid_FullscreenDocument = __esm({
1012
+ "tmp_esbuild/_src_components_primarygrid_FullscreenDocument.module.css"() {
1013
+ "use strict";
1014
+ init_TRUO9IsCZ8ngJD4Cc_eYHei0BzqoyjltRGbkROcYloU();
1015
+ src_components_primarygrid_FullscreenDocument_default = { "document": "vv-zPhWHa-document", "zonePicture": "vv-zPhWHa-zonePicture" };
1016
+ }
1017
+ });
1018
+
1019
+ // src/components/primarygrid/FullscreenDocument.module.css
1020
+ var init_FullscreenDocument = __esm({
1021
+ "src/components/primarygrid/FullscreenDocument.module.css"() {
1022
+ "use strict";
1023
+ init_src_components_primarygrid_FullscreenDocument();
1024
+ }
1025
+ });
1026
+
1027
+ // src/components/primarygrid/FullscreenDocument.tsx
1028
+ import React2 from "react";
1029
+ import _10 from "lodash/fp.js";
1030
+ import { Portal } from "@lls/lls-kit";
1031
+ import { jsx as jsx5 } from "react/jsx-runtime";
1032
+ var FullscreenDoc, FullscreenDocument_default;
1033
+ var init_FullscreenDocument2 = __esm({
1034
+ "src/components/primarygrid/FullscreenDocument.tsx"() {
1035
+ "use strict";
1036
+ init_FullscreenDocument();
1037
+ init_grid();
1038
+ FullscreenDoc = ({ doc, pictureUrl, children }) => {
1039
+ const childsByUUid = _10.keyBy("props.docJson.uuid", React2.Children.toArray(children));
1040
+ const fullscreenChild = childsByUUid[doc.id];
1041
+ return /* @__PURE__ */ jsx5(Portal, { children: /* @__PURE__ */ jsx5("div", { className: src_components_primarygrid_FullscreenDocument_default.document, style: { "--v-grid-picture-aspect-ratio": ILLUSTRATION_ASPECT_RATIO }, children: /* @__PURE__ */ jsx5("div", { className: src_components_primarygrid_FullscreenDocument_default.zonePicture, children: /* @__PURE__ */ jsx5(
1042
+ "div",
1043
+ {
1044
+ style: {
1045
+ "--v-grid-zone-picture-url": `url('${pictureUrl}')`,
1046
+ "--v-grid-zone-picture-ratio": doc.w / doc.h * ILLUSTRATION_ASPECT_RATIO,
1047
+ "--v-grid-zone-picture-size": `${1e4 / doc.w}%`,
1048
+ "--v-grid-zone-picture-left": `${-doc.x}%`,
1049
+ "--v-grid-zone-picture-top": `${-doc.y}%`
1050
+ }
1051
+ }
1052
+ ) }) }) });
1053
+ };
1054
+ FullscreenDocument_default = FullscreenDoc;
1055
+ }
1056
+ });
1057
+
1002
1058
  // src/components/primarygrid/ViewGrid.tsx
1003
- import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
1059
+ import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
1004
1060
  var ViewGrid, ViewGrid_default;
1005
1061
  var init_ViewGrid2 = __esm({
1006
1062
  "src/components/primarygrid/ViewGrid.tsx"() {
@@ -1009,16 +1065,26 @@ var init_ViewGrid2 = __esm({
1009
1065
  init_store();
1010
1066
  init_url();
1011
1067
  init_ViewGrid();
1068
+ init_FullscreenDocument2();
1012
1069
  ViewGrid = ({ children, picture }) => {
1013
- const { layouts } = useReadMdRendererProps(["layouts"]);
1070
+ const {
1071
+ layouts,
1072
+ fullscreenDocUuid,
1073
+ areZonesVisible = false,
1074
+ setFullscreenDocUuid
1075
+ } = useReadMdRendererProps(["layouts", "fullscreenDocUuid", "areZonesVisible", "setFullscreenDocUuid"]);
1076
+ const fullscreenDoc = layouts?.primary?.find((doc) => doc.id === fullscreenDocUuid);
1077
+ const pictureUrl = asLlsWebp(picture ?? "");
1014
1078
  return /* @__PURE__ */ jsxs5("div", { className: src_components_primarygrid_ViewGrid_default.viewGrid, style: { "--v-grid-picture-aspect-ratio": ILLUSTRATION_ASPECT_RATIO }, children: [
1015
- /* @__PURE__ */ jsxs5("div", { className: src_components_primarygrid_ViewGrid_default.illu, children: [
1016
- /* @__PURE__ */ jsx5("img", { alt: "illustration", src: asLlsWebp(picture ?? "") }),
1079
+ /* @__PURE__ */ jsxs5("div", { className: src_components_primarygrid_ViewGrid_default.content, children: [
1080
+ /* @__PURE__ */ jsx6("img", { alt: "illustration", src: pictureUrl }),
1017
1081
  layouts?.primary?.map((layoutItem, index) => {
1018
- return /* @__PURE__ */ jsx5(
1082
+ return /* @__PURE__ */ jsx6(
1019
1083
  "div",
1020
1084
  {
1021
1085
  className: src_components_primarygrid_ViewGrid_default.pictureZone,
1086
+ "data-visible": +areZonesVisible,
1087
+ onClick: () => setFullscreenDocUuid(layoutItem.id),
1022
1088
  style: {
1023
1089
  "--v-picturezone-x": `${layoutItem.x}%`,
1024
1090
  "--v-picturezone-y": `${layoutItem.y}%`,
@@ -1031,7 +1097,7 @@ var init_ViewGrid2 = __esm({
1031
1097
  );
1032
1098
  })
1033
1099
  ] }),
1034
- /* @__PURE__ */ jsx5("div", { className: src_components_primarygrid_ViewGrid_default.docs, children: /* @__PURE__ */ jsx5("b", { children }) })
1100
+ fullscreenDoc && /* @__PURE__ */ jsx6(FullscreenDocument_default, { doc: fullscreenDoc, pictureUrl, children })
1035
1101
  ] });
1036
1102
  };
1037
1103
  ViewGrid_default = ViewGrid;
@@ -1039,7 +1105,7 @@ var init_ViewGrid2 = __esm({
1039
1105
  });
1040
1106
 
1041
1107
  // src/components/primarygrid/Grid.tsx
1042
- import { jsx as jsx6 } from "react/jsx-runtime";
1108
+ import { jsx as jsx7 } from "react/jsx-runtime";
1043
1109
  var PrimaryGrid, Grid_default;
1044
1110
  var init_Grid = __esm({
1045
1111
  "src/components/primarygrid/Grid.tsx"() {
@@ -1050,7 +1116,7 @@ var init_Grid = __esm({
1050
1116
  init_ViewGrid2();
1051
1117
  PrimaryGrid = (props) => {
1052
1118
  const { mode } = useReadMdRendererProps(["mode"]);
1053
- return isEditMode(mode) ? /* @__PURE__ */ jsx6(EditGrid_default, { ...props }) : /* @__PURE__ */ jsx6(ViewGrid_default, { ...props });
1119
+ return isEditMode(mode) ? /* @__PURE__ */ jsx7(EditGrid_default, { ...props }) : /* @__PURE__ */ jsx7(ViewGrid_default, { ...props });
1054
1120
  };
1055
1121
  Grid_default = PrimaryGrid;
1056
1122
  }
@@ -1081,11 +1147,11 @@ var init_DocumentHtml = __esm({
1081
1147
  });
1082
1148
 
1083
1149
  // src/components/core/DocumentHtml.tsx
1084
- import React2, { memo, useRef as useRef2 } from "react";
1150
+ import React3, { memo, useRef as useRef2 } from "react";
1085
1151
  import HtmlToReact from "html-to-react";
1086
- import _10 from "lodash/fp.js";
1152
+ import _11 from "lodash/fp.js";
1087
1153
  import { cx as cx2 } from "@lls/utils";
1088
- import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
1154
+ import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
1089
1155
  var htmlToReactParser, processNodeDefinitions, MemoToolbar, DocumentHtml, getProcessingInstructions, MdRenderer, DocumentHtml_default;
1090
1156
  var init_DocumentHtml2 = __esm({
1091
1157
  "src/components/core/DocumentHtml.tsx"() {
@@ -1102,14 +1168,14 @@ var init_DocumentHtml2 = __esm({
1102
1168
  htmlToReactParser = new HtmlToReact.Parser({
1103
1169
  recognizeSelfClosing: true
1104
1170
  });
1105
- processNodeDefinitions = new HtmlToReact.ProcessNodeDefinitions(React2);
1171
+ processNodeDefinitions = new HtmlToReact.ProcessNodeDefinitions(React3);
1106
1172
  MemoToolbar = memo(({ toolbarProps: props, docJson }) => {
1107
- const compactMode = _10.get("compactMode", props);
1108
- const openEditor = _10.get("openEditor", props);
1109
- const openMetadataEditor = _10.get("openMetadataEditor", props);
1110
- const deleteCard = _10.get("deleteCard", props);
1111
- const deleteRightResponses = _10.get("deleteRightResponses", props);
1112
- return /* @__PURE__ */ jsx7(
1173
+ const compactMode = _11.get("compactMode", props);
1174
+ const openEditor = _11.get("openEditor", props);
1175
+ const openMetadataEditor = _11.get("openMetadataEditor", props);
1176
+ const deleteCard = _11.get("deleteCard", props);
1177
+ const deleteRightResponses = _11.get("deleteRightResponses", props);
1178
+ return /* @__PURE__ */ jsx8(
1113
1179
  Toolbar,
1114
1180
  {
1115
1181
  compactMode,
@@ -1133,25 +1199,25 @@ var init_DocumentHtml2 = __esm({
1133
1199
  "data-isprint": +isPrint(),
1134
1200
  className: cx2(DOCUMENT_CLASSNAME, src_components_core_DocumentHtml_default.document),
1135
1201
  children: [
1136
- /* @__PURE__ */ jsx7(MemoToolbar, { toolbarProps: props, docJson }),
1137
- /* @__PURE__ */ jsx7(ErrorBoundary_default, { docJson, mode, children: /* @__PURE__ */ jsx7(MdRenderer, { mdRendererProps, docJson, toolbarProps: props, docChildren }) })
1202
+ /* @__PURE__ */ jsx8(MemoToolbar, { toolbarProps: props, docJson }),
1203
+ /* @__PURE__ */ jsx8(ErrorBoundary_default, { docJson, mode, children: /* @__PURE__ */ jsx8(MdRenderer, { mdRendererProps, docJson, toolbarProps: props, docChildren }) })
1138
1204
  ]
1139
1205
  }
1140
1206
  );
1141
1207
  };
1142
1208
  getProcessingInstructions = ({ docChildren }) => {
1143
1209
  const tag = (nodeName, handler) => ({
1144
- shouldProcessNode: _10.matchesProperty("name", nodeName),
1210
+ shouldProcessNode: _11.matchesProperty("name", nodeName),
1145
1211
  processNode: handler
1146
1212
  });
1147
- const _shortTag = (name, Component, props = {}, mapAttributes = _10.identity) => {
1148
- return tag(name, (node, children, key) => /* @__PURE__ */ jsx7(Component, { ...mapAttributes(node.attribs), children, ...props }, key));
1213
+ const _shortTag = (name, Component, props = {}, mapAttributes = _11.identity) => {
1214
+ return tag(name, (node, children, key) => /* @__PURE__ */ jsx8(Component, { ...mapAttributes(node.attribs), children, ...props }, key));
1149
1215
  };
1150
1216
  return [
1151
- tag("primarygrid", (node) => /* @__PURE__ */ jsx7(Grid_default, { ...node.attribs, children: docChildren }, "grid")),
1217
+ tag("primarygrid", (node) => /* @__PURE__ */ jsx8(Grid_default, { ...node.attribs, children: docChildren }, "grid")),
1152
1218
  {
1153
1219
  shouldProcessNode: (node) => {
1154
- if (node.type === "text" && _10.trim(node.data) === "") {
1220
+ if (node.type === "text" && _11.trim(node.data) === "") {
1155
1221
  return true;
1156
1222
  }
1157
1223
  },
@@ -1169,7 +1235,7 @@ var init_DocumentHtml2 = __esm({
1169
1235
  ...mdRendererProps,
1170
1236
  ...documentProps
1171
1237
  });
1172
- const contentMd = _10.flow(_10.get("docJson.contentMd"), _10.partial(escapeTagContent, ["code"]), removeTrailingNewLines)(props);
1238
+ const contentMd = _11.flow(_11.get("docJson.contentMd"), _11.partial(escapeTagContent, ["code"]), removeTrailingNewLines)(props);
1173
1239
  const reactElement = htmlToReactParser.parseWithInstructions(contentMd, isValidNode, instructions) || null;
1174
1240
  return reactElement;
1175
1241
  }, areDocumentHtmlPropsEqual);
@@ -1189,7 +1255,7 @@ var init_src_components_core_Document = __esm({
1189
1255
  "tmp_esbuild/_src_components_core_Document.module.css"() {
1190
1256
  "use strict";
1191
1257
  init_kTdLFWdq92OvhQjGBgoqbpa_uWI0Nagw0W33VXQfA9A();
1192
- src_components_core_Document_default = { "rootDocument": "vv--ZTaFW-rootDocument", "divSearch": "vv--ZTaFW-divSearch" };
1258
+ src_components_core_Document_default = { "divSearch": "vv--ZTaFW-divSearch", "rootDocument": "vv--ZTaFW-rootDocument" };
1193
1259
  }
1194
1260
  });
1195
1261
 
@@ -1202,9 +1268,9 @@ var init_Document = __esm({
1202
1268
  });
1203
1269
 
1204
1270
  // src/components/core/Document.tsx
1205
- import _11 from "lodash/fp.js";
1206
- import React3 from "react";
1207
- import { jsx as jsx8 } from "react/jsx-runtime";
1271
+ import _12 from "lodash/fp.js";
1272
+ import React4 from "react";
1273
+ import { jsx as jsx9 } from "react/jsx-runtime";
1208
1274
  var Document, RootDocument, Document_default;
1209
1275
  var init_Document2 = __esm({
1210
1276
  "src/components/core/Document.tsx"() {
@@ -1212,19 +1278,19 @@ var init_Document2 = __esm({
1212
1278
  init_DocumentHtml2();
1213
1279
  init_Document();
1214
1280
  Document = ({ docJson, toolbarProps = {}, mdRendererProps }) => {
1215
- return /* @__PURE__ */ jsx8(DocumentHtml_default, { toolbarProps, mdRendererProps, docJson });
1281
+ return /* @__PURE__ */ jsx9(DocumentHtml_default, { toolbarProps, mdRendererProps, docJson });
1216
1282
  };
1217
1283
  Document.displayName = "Document";
1218
- RootDocument = React3.forwardRef(({ docJson = {}, toolbarProps, mdRendererProps }, ref) => {
1219
- const children = _11.getOr([], "children", docJson);
1220
- return /* @__PURE__ */ jsx8("div", { className: src_components_core_Document_default.rootDocument, ref, children: /* @__PURE__ */ jsx8(
1284
+ RootDocument = React4.forwardRef(({ docJson = {}, toolbarProps, mdRendererProps }, ref) => {
1285
+ const children = _12.getOr([], "children", docJson);
1286
+ return /* @__PURE__ */ jsx9("div", { className: src_components_core_Document_default.rootDocument, ref, children: /* @__PURE__ */ jsx9(
1221
1287
  DocumentHtml_default,
1222
1288
  {
1223
1289
  toolbarProps,
1224
1290
  mdRendererProps,
1225
1291
  docJson,
1226
- children: _11.map((child) => {
1227
- return /* @__PURE__ */ jsx8(
1292
+ children: _12.map((child) => {
1293
+ return /* @__PURE__ */ jsx9(
1228
1294
  Document,
1229
1295
  {
1230
1296
  toolbarProps,
@@ -1288,11 +1354,11 @@ var init_ViewerMd = __esm({
1288
1354
  });
1289
1355
 
1290
1356
  // src/components/core/viewer/ViewerMd.tsx
1291
- import React4, { useRef as useRef3, useCallback as useCallback3, useMemo } from "react";
1357
+ import React5, { useRef as useRef3, useCallback as useCallback3, useMemo } from "react";
1292
1358
  import { styleThemeProps } from "@lls/lls-kit";
1293
- import _12 from "lodash/fp.js";
1359
+ import _13 from "lodash/fp.js";
1294
1360
  import { cx as cx3 } from "@lls/utils";
1295
- import { jsx as jsx9 } from "react/jsx-runtime";
1361
+ import { jsx as jsx10 } from "react/jsx-runtime";
1296
1362
  var getMdRendererProps, ViewerMd, ViewerMd_default;
1297
1363
  var init_ViewerMd2 = __esm({
1298
1364
  "src/components/core/viewer/ViewerMd.tsx"() {
@@ -1304,29 +1370,32 @@ var init_ViewerMd2 = __esm({
1304
1370
  init_Codemirror();
1305
1371
  init_constants();
1306
1372
  init_ViewerMd();
1307
- getMdRendererProps = _12.pick(["isOffline", "isTouchable", "wasSsrRendered", "picture"]);
1308
- ViewerMd = React4.forwardRef(
1373
+ getMdRendererProps = _13.pick(["isOffline", "isTouchable", "wasSsrRendered", "areZonesVisible"]);
1374
+ ViewerMd = React5.forwardRef(
1309
1375
  ({
1310
1376
  template = {},
1311
- addPicture = _12.noop,
1312
- addDocument = _12.noop,
1313
- updateLayouts = _12.noop,
1314
- deleteDocument = _12.noop,
1315
- onChange = _12.noop,
1377
+ addPicture = _13.noop,
1378
+ addDocument = _13.noop,
1379
+ updateLayouts = _13.noop,
1380
+ deleteDocument = _13.noop,
1381
+ onChange = _13.noop,
1316
1382
  sizeIndex = 2,
1317
1383
  fontFamily = "LatoWeb",
1318
1384
  mode = "view",
1319
1385
  isDysMode = false,
1386
+ fullscreenDocUuid = void 0,
1387
+ setFullscreenDocUuid = _13.noop,
1320
1388
  ...props
1321
1389
  }, ref) => {
1322
- const pageId = _12.get("id", template);
1323
- const onChangeCallbackRef = useRef3(_12.noop);
1390
+ const pageId = _13.get("id", template);
1391
+ const onChangeCallbackRef = useRef3(_13.noop);
1324
1392
  const innerViewerRef = useRef3(null);
1325
- const hashMdRendererProps = _12.flow(
1393
+ const hashMdRendererProps = _13.flow(
1326
1394
  getMdRendererProps,
1327
- _12.assign({
1395
+ _13.assign({
1328
1396
  mode,
1329
- pageId
1397
+ pageId,
1398
+ fullscreenDocUuid
1330
1399
  }),
1331
1400
  JSON.stringify
1332
1401
  )(props);
@@ -1336,21 +1405,21 @@ var init_ViewerMd2 = __esm({
1336
1405
  const { deleteRightResponses, openEditor, openMetadataEditor } = props;
1337
1406
  const isPrint2 = isPrint();
1338
1407
  const mdRendererProps = useMemo(() => {
1339
- return _12.flow(
1408
+ return _13.flow(
1340
1409
  JSON.parse,
1341
- _12.assign({
1410
+ _13.assign({
1342
1411
  // there should only be FUNCTIONS here
1343
1412
  addPicture,
1344
1413
  addDocument,
1345
1414
  updateLayouts,
1346
- deleteDocument
1415
+ deleteDocument,
1416
+ setFullscreenDocUuid
1347
1417
  })
1348
1418
  )(hashMdRendererProps);
1349
- }, [hashMdRendererProps, addPicture, addDocument, updateLayouts, deleteDocument]);
1419
+ }, [hashMdRendererProps, addPicture, addDocument, updateLayouts, deleteDocument, setFullscreenDocUuid]);
1350
1420
  const onDocChange = useCallback3((doc) => {
1351
1421
  onChangeCallbackRef.current(doc);
1352
1422
  }, []);
1353
- _12.replace;
1354
1423
  useWriteStore({
1355
1424
  mdRendererProps: {
1356
1425
  ...mdRendererProps,
@@ -1370,7 +1439,7 @@ var init_ViewerMd2 = __esm({
1370
1439
  openMetadataEditor
1371
1440
  };
1372
1441
  }, [deleteDocument, deleteRightResponses, openEditor, openMetadataEditor]);
1373
- return /* @__PURE__ */ jsx9(
1442
+ return /* @__PURE__ */ jsx10(
1374
1443
  "div",
1375
1444
  {
1376
1445
  style: {
@@ -1380,7 +1449,7 @@ var init_ViewerMd2 = __esm({
1380
1449
  "data-isprint": +isPrint2,
1381
1450
  className: cx3(VIVI_CLASSNAME, src_components_core_viewer_ViewerMd_default.viewer),
1382
1451
  ref,
1383
- children: /* @__PURE__ */ jsx9("div", { className: src_components_core_viewer_ViewerMd_default.viewerInner, ref: innerViewerRef, "data-mode": mode, children: /* @__PURE__ */ jsx9(Document_default, { mdRendererProps, toolbarProps, docJson: template }) })
1452
+ children: /* @__PURE__ */ jsx10("div", { className: src_components_core_viewer_ViewerMd_default.viewerInner, ref: innerViewerRef, "data-mode": mode, children: /* @__PURE__ */ jsx10(Document_default, { mdRendererProps, toolbarProps, docJson: template }) })
1384
1453
  }
1385
1454
  );
1386
1455
  }
@@ -1390,15 +1459,15 @@ var init_ViewerMd2 = __esm({
1390
1459
  });
1391
1460
 
1392
1461
  // src/components/core/editor/EditViewerMd.tsx
1393
- import React5, { useCallback as useCallback4 } from "react";
1394
- import { jsx as jsx10 } from "react/jsx-runtime";
1462
+ import React6, { useCallback as useCallback4 } from "react";
1463
+ import { jsx as jsx11 } from "react/jsx-runtime";
1395
1464
  var EditViewerMd, EditViewerMd_default;
1396
1465
  var init_EditViewerMd = __esm({
1397
1466
  "src/components/core/editor/EditViewerMd.tsx"() {
1398
1467
  "use strict";
1399
1468
  init_ViewerMd2();
1400
1469
  init_template();
1401
- EditViewerMd = React5.forwardRef(({ template, onChange, ...props }, ref) => {
1470
+ EditViewerMd = React6.forwardRef(({ template, onChange, ...props }, ref) => {
1402
1471
  const addDocument = useCallback4(
1403
1472
  (docInfos) => {
1404
1473
  onChange((template2) => addDocumentToTemplate(template2, docInfos));
@@ -1422,7 +1491,7 @@ var init_EditViewerMd = __esm({
1422
1491
  const addPicture = (picture) => {
1423
1492
  onChange((prev) => ({ ...prev, contentMd: `<primarygrid picture="${picture}" />` }));
1424
1493
  };
1425
- return /* @__PURE__ */ jsx10(
1494
+ return /* @__PURE__ */ jsx11(
1426
1495
  ViewerMd_default,
1427
1496
  {
1428
1497
  template,
@@ -1467,8 +1536,8 @@ var init_useDragAndResize = __esm({
1467
1536
 
1468
1537
  // ../viewer/src/hooks/useDragAndResize.tsx
1469
1538
  import { useEffect as useEffect4, useRef as useRef4, useState as useState4 } from "react";
1470
- import _13 from "lodash/fp.js";
1471
- import { Fragment, jsx as jsx11 } from "react/jsx-runtime";
1539
+ import _14 from "lodash/fp.js";
1540
+ import { Fragment, jsx as jsx12 } from "react/jsx-runtime";
1472
1541
  var resizeHandlersProps, useDragAndResize, useDragAndResize_default;
1473
1542
  var init_useDragAndResize2 = __esm({
1474
1543
  "../viewer/src/hooks/useDragAndResize.tsx"() {
@@ -1596,17 +1665,17 @@ var init_useDragAndResize2 = __esm({
1596
1665
  shouldMoveX: false,
1597
1666
  shouldMoveY: false
1598
1667
  });
1599
- const positionX = _13.getOr(0, "x", defaultPositions);
1600
- const bodyWidth = _13.getOr(0, "body.offsetWidth", document);
1668
+ const positionX = _14.getOr(0, "x", defaultPositions);
1669
+ const bodyWidth = _14.getOr(0, "body.offsetWidth", document);
1601
1670
  const x = positionX + defaultWidth > bodyWidth ? positionX - defaultWidth : positionX;
1602
1671
  const [translateData, setTranslateData] = useState4({
1603
1672
  isActive: false,
1604
1673
  x,
1605
- y: _13.getOr(0, "y", defaultPositions)
1674
+ y: _14.getOr(0, "y", defaultPositions)
1606
1675
  });
1607
1676
  useEffect4(() => {
1608
1677
  if (translateData.isActive) {
1609
- const onMouseUp = () => setTranslateData(_13.set("isActive", false));
1678
+ const onMouseUp = () => setTranslateData(_14.set("isActive", false));
1610
1679
  const onMouseMove = (e) => setTranslateData(({ x: x2, y, ...translateData2 }) => ({
1611
1680
  ...translateData2,
1612
1681
  x: x2 + e.movementX,
@@ -1631,7 +1700,7 @@ var init_useDragAndResize2 = __esm({
1631
1700
  }
1632
1701
  const { shouldSizeX, shouldSizeY, shouldMoveX, shouldMoveY } = resizingData;
1633
1702
  const onMouseUp = () => {
1634
- setResizingData(_13.set("isActive", false));
1703
+ setResizingData(_14.set("isActive", false));
1635
1704
  };
1636
1705
  const getNewSizeValue = ({
1637
1706
  shouldMove,
@@ -1685,9 +1754,9 @@ var init_useDragAndResize2 = __esm({
1685
1754
  };
1686
1755
  }
1687
1756
  }, [size, resizingData, onResize]);
1688
- const launchTranslate = () => setTranslateData(_13.set("isActive", true));
1689
- const handlersElement = canResize ? /* @__PURE__ */ jsx11("div", { children: resizeHandlersProps.map((handle, key) => {
1690
- return /* @__PURE__ */ jsx11(
1757
+ const launchTranslate = () => setTranslateData(_14.set("isActive", true));
1758
+ const handlersElement = canResize ? /* @__PURE__ */ jsx12("div", { children: resizeHandlersProps.map((handle, key) => {
1759
+ return /* @__PURE__ */ jsx12(
1691
1760
  "div",
1692
1761
  {
1693
1762
  className: home_ec2_user_actions_runner_work_monorepo_monorepo_libs_viewer_src_hooks_useDragAndResize_default.handle,
@@ -1698,15 +1767,15 @@ var init_useDragAndResize2 = __esm({
1698
1767
  "--v-left": handle.left,
1699
1768
  "--v-cursor": handle.cursor
1700
1769
  },
1701
- ..._13.omit("resizingProps", handle),
1770
+ ..._14.omit("resizingProps", handle),
1702
1771
  onMouseDown: () => setResizingData({
1703
1772
  isActive: true,
1704
- ..._13.get("resizingProps", handle)
1773
+ ..._14.get("resizingProps", handle)
1705
1774
  })
1706
1775
  },
1707
1776
  key
1708
1777
  );
1709
- }) }) : /* @__PURE__ */ jsx11(Fragment, {});
1778
+ }) }) : /* @__PURE__ */ jsx12(Fragment, {});
1710
1779
  const isActive = translateData.isActive || resizingData.isActive;
1711
1780
  useEffect4(() => {
1712
1781
  if (!rndRef.current)
@@ -1789,9 +1858,9 @@ var CodemirrorEditor_browser_exports = {};
1789
1858
  __export(CodemirrorEditor_browser_exports, {
1790
1859
  default: () => CodemirrorEditor_browser_default
1791
1860
  });
1792
- import _14 from "lodash/fp.js";
1861
+ import _15 from "lodash/fp.js";
1793
1862
  import { useEffect as useEffect6, useRef as useRef5, useState as useState6 } from "react";
1794
- import { jsx as jsx12 } from "react/jsx-runtime";
1863
+ import { jsx as jsx13 } from "react/jsx-runtime";
1795
1864
  var TAGS, completeAfter, completeIfAfterLt, completeIfInTag, xmlValidator, CodemirrorEditor, CodemirrorEditor_browser_default;
1796
1865
  var init_CodemirrorEditor_browser2 = __esm({
1797
1866
  "src/components/lazy/CodemirrorEditor.browser.tsx"() {
@@ -1847,11 +1916,11 @@ var init_CodemirrorEditor_browser2 = __esm({
1847
1916
  };
1848
1917
  CodemirrorEditor = ({
1849
1918
  readOnly,
1850
- onChange = _14.noop,
1919
+ onChange = _15.noop,
1851
1920
  keyMap,
1852
- componentDidMount = _14.noop,
1921
+ componentDidMount = _15.noop,
1853
1922
  value = "",
1854
- onError = _14.noop
1923
+ onError = _15.noop
1855
1924
  }) => {
1856
1925
  const textarea = useRef5(null);
1857
1926
  const [editor, setEditor] = useState6(null);
@@ -1897,22 +1966,22 @@ var init_CodemirrorEditor_browser2 = __esm({
1897
1966
  editor.off("change", localChange);
1898
1967
  };
1899
1968
  }, [editor, onChange]);
1900
- return /* @__PURE__ */ jsx12("div", { className: src_components_lazy_CodemirrorEditor_browser_default.codemirrorWrapper, children: /* @__PURE__ */ jsx12("textarea", { ref: textarea, value, onChange: _14.noop }) });
1969
+ return /* @__PURE__ */ jsx13("div", { className: src_components_lazy_CodemirrorEditor_browser_default.codemirrorWrapper, children: /* @__PURE__ */ jsx13("textarea", { ref: textarea, value, onChange: _15.noop }) });
1901
1970
  };
1902
1971
  CodemirrorEditor_browser_default = CodemirrorEditor;
1903
1972
  }
1904
1973
  });
1905
1974
 
1906
1975
  // src/components/core/editor/CodemirrorEditor.tsx
1907
- import React6, { Suspense } from "react";
1908
- import { jsx as jsx13 } from "react/jsx-runtime";
1976
+ import React7, { Suspense } from "react";
1977
+ import { jsx as jsx14 } from "react/jsx-runtime";
1909
1978
  var LazyEditor, CodemirrorEditor2, CodemirrorEditor_default;
1910
1979
  var init_CodemirrorEditor = __esm({
1911
1980
  "src/components/core/editor/CodemirrorEditor.tsx"() {
1912
1981
  "use strict";
1913
1982
  init_useClientMounted();
1914
1983
  init_lazy();
1915
- LazyEditor = React6.lazy(
1984
+ LazyEditor = React7.lazy(
1916
1985
  () => (
1917
1986
  // @ts-ignore TODO fallback is causing type issue
1918
1987
  typeof window === "undefined" ? { default: null } : Promise.resolve().then(() => (init_CodemirrorEditor_browser2(), CodemirrorEditor_browser_exports)).then(lazyInterop)
@@ -1920,7 +1989,7 @@ var init_CodemirrorEditor = __esm({
1920
1989
  );
1921
1990
  CodemirrorEditor2 = (props) => {
1922
1991
  const clientMounted = useClientMounted_default();
1923
- return clientMounted ? /* @__PURE__ */ jsx13(Suspense, { children: /* @__PURE__ */ jsx13(LazyEditor, { ...props }) }) : /* @__PURE__ */ jsx13("div", {});
1992
+ return clientMounted ? /* @__PURE__ */ jsx14(Suspense, { children: /* @__PURE__ */ jsx14(LazyEditor, { ...props }) }) : /* @__PURE__ */ jsx14("div", {});
1924
1993
  };
1925
1994
  CodemirrorEditor_default = CodemirrorEditor2;
1926
1995
  }
@@ -1951,14 +2020,14 @@ var init_EditorHeaderModal = __esm({
1951
2020
  });
1952
2021
 
1953
2022
  // src/components/core/editor/EditorHeaderModal.tsx
1954
- import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
2023
+ import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
1955
2024
  var EditorHeaderModal, EditorHeaderModal_default;
1956
2025
  var init_EditorHeaderModal2 = __esm({
1957
2026
  "src/components/core/editor/EditorHeaderModal.tsx"() {
1958
2027
  "use strict";
1959
2028
  init_EditorHeaderModal();
1960
2029
  EditorHeaderModal = ({ onClick }) => /* @__PURE__ */ jsxs7("div", { children: [
1961
- /* @__PURE__ */ jsx14(
2030
+ /* @__PURE__ */ jsx15(
1962
2031
  "div",
1963
2032
  {
1964
2033
  className: src_components_core_editor_EditorHeaderModal_default.header,
@@ -1977,7 +2046,7 @@ var init_EditorHeaderModal2 = __esm({
1977
2046
  children: "Principale"
1978
2047
  }
1979
2048
  ),
1980
- /* @__PURE__ */ jsx14(
2049
+ /* @__PURE__ */ jsx15(
1981
2050
  "div",
1982
2051
  {
1983
2052
  className: src_components_core_editor_EditorHeaderModal_default.header,
@@ -2013,7 +2082,7 @@ var init_EditorHeaderModal2 = __esm({
2013
2082
  ]
2014
2083
  }
2015
2084
  ),
2016
- /* @__PURE__ */ jsx14(
2085
+ /* @__PURE__ */ jsx15(
2017
2086
  "div",
2018
2087
  {
2019
2088
  className: src_components_core_editor_EditorHeaderModal_default.header,
@@ -2029,7 +2098,7 @@ var init_EditorHeaderModal2 = __esm({
2029
2098
  children: "Compl\xE9mentaire 2"
2030
2099
  }
2031
2100
  ),
2032
- /* @__PURE__ */ jsx14(
2101
+ /* @__PURE__ */ jsx15(
2033
2102
  "div",
2034
2103
  {
2035
2104
  className: src_components_core_editor_EditorHeaderModal_default.header,
@@ -2075,7 +2144,7 @@ var init_EditorListModal = __esm({
2075
2144
  });
2076
2145
 
2077
2146
  // src/components/core/editor/EditorListModal.tsx
2078
- import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
2147
+ import { jsx as jsx16, jsxs as jsxs8 } from "react/jsx-runtime";
2079
2148
  var generateList, EditorListModal, EditorListModal_default;
2080
2149
  var init_EditorListModal2 = __esm({
2081
2150
  "src/components/core/editor/EditorListModal.tsx"() {
@@ -2089,9 +2158,9 @@ var init_EditorListModal2 = __esm({
2089
2158
  </ul>
2090
2159
  `;
2091
2160
  EditorListModal = ({ onClick }) => /* @__PURE__ */ jsxs8("div", { children: [
2092
- /* @__PURE__ */ jsx15("ul", { className: src_components_core_editor_EditorListModal_default.ul, onClick: () => onClick(() => generateList("disc")), children: /* @__PURE__ */ jsx15("li", {}) }),
2093
- /* @__PURE__ */ jsx15("ul", { className: src_components_core_editor_EditorListModal_default.ul, type: "circle", onClick: () => onClick(() => generateList("circle")), children: /* @__PURE__ */ jsx15("li", {}) }),
2094
- /* @__PURE__ */ jsx15("ul", { className: src_components_core_editor_EditorListModal_default.ul, type: "square", onClick: () => onClick(() => generateList("square")), children: /* @__PURE__ */ jsx15("li", {}) })
2161
+ /* @__PURE__ */ jsx16("ul", { className: src_components_core_editor_EditorListModal_default.ul, onClick: () => onClick(() => generateList("disc")), children: /* @__PURE__ */ jsx16("li", {}) }),
2162
+ /* @__PURE__ */ jsx16("ul", { className: src_components_core_editor_EditorListModal_default.ul, type: "circle", onClick: () => onClick(() => generateList("circle")), children: /* @__PURE__ */ jsx16("li", {}) }),
2163
+ /* @__PURE__ */ jsx16("ul", { className: src_components_core_editor_EditorListModal_default.ul, type: "square", onClick: () => onClick(() => generateList("square")), children: /* @__PURE__ */ jsx16("li", {}) })
2095
2164
  ] });
2096
2165
  EditorListModal_default = EditorListModal;
2097
2166
  }
@@ -2122,17 +2191,17 @@ var init_EditorMathsModal = __esm({
2122
2191
  });
2123
2192
 
2124
2193
  // src/components/core/editor/EditorMathsModal.tsx
2125
- import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
2194
+ import { jsx as jsx17, jsxs as jsxs9 } from "react/jsx-runtime";
2126
2195
  var EditorMathsModal, EditorMathsModal_default;
2127
2196
  var init_EditorMathsModal2 = __esm({
2128
2197
  "src/components/core/editor/EditorMathsModal.tsx"() {
2129
2198
  "use strict";
2130
2199
  init_EditorMathsModal();
2131
2200
  EditorMathsModal = ({ onClick }) => /* @__PURE__ */ jsxs9("div", { children: [
2132
- /* @__PURE__ */ jsx16("div", { className: src_components_core_editor_EditorMathsModal_default.mathsElement, onClick: () => onClick((selectedText) => `<math>${selectedText}</math>`), children: "KaTeX" }),
2133
- /* @__PURE__ */ jsx16("div", { className: src_components_core_editor_EditorMathsModal_default.mathsElement, onClick: () => onClick((selectedText) => `\\text{${selectedText}}`), children: "\\text {...}" }),
2134
- /* @__PURE__ */ jsx16("div", { className: src_components_core_editor_EditorMathsModal_default.mathsElement, onClick: () => onClick((selectedText) => `<python inline="true">${selectedText}</python>`), children: "python" }),
2135
- /* @__PURE__ */ jsx16("div", { className: src_components_core_editor_EditorMathsModal_default.mathsElement, onClick: () => onClick((selectedText) => `<geogebra>${selectedText}</geogebra>`), children: "geogebra" })
2201
+ /* @__PURE__ */ jsx17("div", { className: src_components_core_editor_EditorMathsModal_default.mathsElement, onClick: () => onClick((selectedText) => `<math>${selectedText}</math>`), children: "KaTeX" }),
2202
+ /* @__PURE__ */ jsx17("div", { className: src_components_core_editor_EditorMathsModal_default.mathsElement, onClick: () => onClick((selectedText) => `\\text{${selectedText}}`), children: "\\text {...}" }),
2203
+ /* @__PURE__ */ jsx17("div", { className: src_components_core_editor_EditorMathsModal_default.mathsElement, onClick: () => onClick((selectedText) => `<python inline="true">${selectedText}</python>`), children: "python" }),
2204
+ /* @__PURE__ */ jsx17("div", { className: src_components_core_editor_EditorMathsModal_default.mathsElement, onClick: () => onClick((selectedText) => `<geogebra>${selectedText}</geogebra>`), children: "geogebra" })
2136
2205
  ] });
2137
2206
  EditorMathsModal_default = EditorMathsModal;
2138
2207
  }
@@ -2163,7 +2232,7 @@ var init_EditorOrderedListModal = __esm({
2163
2232
  });
2164
2233
 
2165
2234
  // src/components/core/editor/EditorOrderedListModal.tsx
2166
- import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
2235
+ import { jsx as jsx18, jsxs as jsxs10 } from "react/jsx-runtime";
2167
2236
  var generateList2, EditorOrderedListModal, EditorOrderedListModal_default;
2168
2237
  var init_EditorOrderedListModal2 = __esm({
2169
2238
  "src/components/core/editor/EditorOrderedListModal.tsx"() {
@@ -2178,29 +2247,29 @@ var init_EditorOrderedListModal2 = __esm({
2178
2247
  `;
2179
2248
  EditorOrderedListModal = ({ onClick }) => /* @__PURE__ */ jsxs10("div", { children: [
2180
2249
  /* @__PURE__ */ jsxs10("ol", { className: src_components_core_editor_EditorOrderedListModal_default.ol, type: "1", onClick: () => onClick(() => generateList2("1")), children: [
2181
- /* @__PURE__ */ jsx17("li", {}),
2182
- /* @__PURE__ */ jsx17("li", {}),
2183
- /* @__PURE__ */ jsx17("li", {})
2250
+ /* @__PURE__ */ jsx18("li", {}),
2251
+ /* @__PURE__ */ jsx18("li", {}),
2252
+ /* @__PURE__ */ jsx18("li", {})
2184
2253
  ] }),
2185
2254
  /* @__PURE__ */ jsxs10("ol", { className: src_components_core_editor_EditorOrderedListModal_default.ol, type: "a", onClick: () => onClick(() => generateList2("a")), children: [
2186
- /* @__PURE__ */ jsx17("li", {}),
2187
- /* @__PURE__ */ jsx17("li", {}),
2188
- /* @__PURE__ */ jsx17("li", {})
2255
+ /* @__PURE__ */ jsx18("li", {}),
2256
+ /* @__PURE__ */ jsx18("li", {}),
2257
+ /* @__PURE__ */ jsx18("li", {})
2189
2258
  ] }),
2190
2259
  /* @__PURE__ */ jsxs10("ol", { className: src_components_core_editor_EditorOrderedListModal_default.ol, type: "A", onClick: () => onClick(() => generateList2("A")), children: [
2191
- /* @__PURE__ */ jsx17("li", {}),
2192
- /* @__PURE__ */ jsx17("li", {}),
2193
- /* @__PURE__ */ jsx17("li", {})
2260
+ /* @__PURE__ */ jsx18("li", {}),
2261
+ /* @__PURE__ */ jsx18("li", {}),
2262
+ /* @__PURE__ */ jsx18("li", {})
2194
2263
  ] }),
2195
2264
  /* @__PURE__ */ jsxs10("ol", { className: src_components_core_editor_EditorOrderedListModal_default.ol, type: "i", onClick: () => onClick(() => generateList2("i")), children: [
2196
- /* @__PURE__ */ jsx17("li", {}),
2197
- /* @__PURE__ */ jsx17("li", {}),
2198
- /* @__PURE__ */ jsx17("li", {})
2265
+ /* @__PURE__ */ jsx18("li", {}),
2266
+ /* @__PURE__ */ jsx18("li", {}),
2267
+ /* @__PURE__ */ jsx18("li", {})
2199
2268
  ] }),
2200
2269
  /* @__PURE__ */ jsxs10("ol", { className: src_components_core_editor_EditorOrderedListModal_default.ol, type: "I", onClick: () => onClick(() => generateList2("I")), children: [
2201
- /* @__PURE__ */ jsx17("li", {}),
2202
- /* @__PURE__ */ jsx17("li", {}),
2203
- /* @__PURE__ */ jsx17("li", {})
2270
+ /* @__PURE__ */ jsx18("li", {}),
2271
+ /* @__PURE__ */ jsx18("li", {}),
2272
+ /* @__PURE__ */ jsx18("li", {})
2204
2273
  ] })
2205
2274
  ] });
2206
2275
  EditorOrderedListModal_default = EditorOrderedListModal;
@@ -2232,19 +2301,19 @@ var init_EditorQuestionModal = __esm({
2232
2301
  });
2233
2302
 
2234
2303
  // src/components/core/editor/EditorQuestionModal.tsx
2235
- import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
2304
+ import { jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
2236
2305
  var EditorQuestionModal, EditorQuestionModal_default;
2237
2306
  var init_EditorQuestionModal2 = __esm({
2238
2307
  "src/components/core/editor/EditorQuestionModal.tsx"() {
2239
2308
  "use strict";
2240
2309
  init_EditorQuestionModal();
2241
2310
  EditorQuestionModal = ({ onClick }) => /* @__PURE__ */ jsxs11("div", { children: [
2242
- /* @__PURE__ */ jsx18("div", { className: src_components_core_editor_EditorQuestionModal_default.question, onClick: () => onClick(() => `<qtarea id="" width="90%" />`), children: "Question textarea" }),
2243
- /* @__PURE__ */ jsx18("div", { className: src_components_core_editor_EditorQuestionModal_default.question, onClick: () => onClick((selectedText) => `<qt id="">${selectedText}</qt>`), children: "Question ouverte" }),
2244
- /* @__PURE__ */ jsx18("div", { className: src_components_core_editor_EditorQuestionModal_default.question, onClick: () => onClick((selectedText) => `<qs id="">${selectedText}</qs>`), children: 'Question "select"' }),
2245
- /* @__PURE__ */ jsx18("div", { className: src_components_core_editor_EditorQuestionModal_default.question, onClick: () => onClick(() => '<qc id="" />'), children: "Question checkbox" }),
2246
- /* @__PURE__ */ jsx18("div", { className: src_components_core_editor_EditorQuestionModal_default.question, onClick: () => onClick(() => '<qr id="" value="" />'), children: "Question radio" }),
2247
- /* @__PURE__ */ jsx18(
2311
+ /* @__PURE__ */ jsx19("div", { className: src_components_core_editor_EditorQuestionModal_default.question, onClick: () => onClick(() => `<qtarea id="" width="90%" />`), children: "Question textarea" }),
2312
+ /* @__PURE__ */ jsx19("div", { className: src_components_core_editor_EditorQuestionModal_default.question, onClick: () => onClick((selectedText) => `<qt id="">${selectedText}</qt>`), children: "Question ouverte" }),
2313
+ /* @__PURE__ */ jsx19("div", { className: src_components_core_editor_EditorQuestionModal_default.question, onClick: () => onClick((selectedText) => `<qs id="">${selectedText}</qs>`), children: 'Question "select"' }),
2314
+ /* @__PURE__ */ jsx19("div", { className: src_components_core_editor_EditorQuestionModal_default.question, onClick: () => onClick(() => '<qc id="" />'), children: "Question checkbox" }),
2315
+ /* @__PURE__ */ jsx19("div", { className: src_components_core_editor_EditorQuestionModal_default.question, onClick: () => onClick(() => '<qr id="" value="" />'), children: "Question radio" }),
2316
+ /* @__PURE__ */ jsx19(
2248
2317
  "div",
2249
2318
  {
2250
2319
  className: src_components_core_editor_EditorQuestionModal_default.question,
@@ -2265,8 +2334,8 @@ var init_EditorQuestionModal2 = __esm({
2265
2334
  children: "Question DnD"
2266
2335
  }
2267
2336
  ),
2268
- /* @__PURE__ */ jsx18("div", { className: src_components_core_editor_EditorQuestionModal_default.question, onClick: () => onClick((selectedText) => `<qmath id="">${selectedText}</qmath>`), children: "Question maths" }),
2269
- /* @__PURE__ */ jsx18(
2337
+ /* @__PURE__ */ jsx19("div", { className: src_components_core_editor_EditorQuestionModal_default.question, onClick: () => onClick((selectedText) => `<qmath id="">${selectedText}</qmath>`), children: "Question maths" }),
2338
+ /* @__PURE__ */ jsx19(
2270
2339
  "div",
2271
2340
  {
2272
2341
  className: src_components_core_editor_EditorQuestionModal_default.question,
@@ -2279,7 +2348,7 @@ var init_EditorQuestionModal2 = __esm({
2279
2348
  children: "Question maths select"
2280
2349
  }
2281
2350
  ),
2282
- /* @__PURE__ */ jsx18("div", { className: src_components_core_editor_EditorQuestionModal_default.question, onClick: () => onClick(() => `<qdraw2 id=""/>`), children: "Question draw" })
2351
+ /* @__PURE__ */ jsx19("div", { className: src_components_core_editor_EditorQuestionModal_default.question, onClick: () => onClick(() => `<qdraw2 id=""/>`), children: "Question draw" })
2283
2352
  ] });
2284
2353
  EditorQuestionModal_default = EditorQuestionModal;
2285
2354
  }
@@ -2310,37 +2379,37 @@ var init_EditorStampModal = __esm({
2310
2379
  });
2311
2380
 
2312
2381
  // src/components/core/editor/EditorStampModal.tsx
2313
- import { jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
2382
+ import { jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
2314
2383
  var EditorStampModal, EditorStampModal_default;
2315
2384
  var init_EditorStampModal2 = __esm({
2316
2385
  "src/components/core/editor/EditorStampModal.tsx"() {
2317
2386
  "use strict";
2318
2387
  init_EditorStampModal();
2319
2388
  EditorStampModal = ({ onClick }) => /* @__PURE__ */ jsxs12("div", { children: [
2320
- /* @__PURE__ */ jsx19("div", { className: src_components_core_editor_EditorStampModal_default.stamp, onClick: () => onClick((selectedText) => `<stamp theme="" size="">${selectedText}</stamp>`), children: "Stamp classique" }),
2321
- /* @__PURE__ */ jsx19("div", { className: src_components_core_editor_EditorStampModal_default.stamp, onClick: () => onClick(() => `<stamp theme="" icon="" size=""/>`), children: "Stamp avec icon" })
2389
+ /* @__PURE__ */ jsx20("div", { className: src_components_core_editor_EditorStampModal_default.stamp, onClick: () => onClick((selectedText) => `<stamp theme="" size="">${selectedText}</stamp>`), children: "Stamp classique" }),
2390
+ /* @__PURE__ */ jsx20("div", { className: src_components_core_editor_EditorStampModal_default.stamp, onClick: () => onClick(() => `<stamp theme="" icon="" size=""/>`), children: "Stamp avec icon" })
2322
2391
  ] });
2323
2392
  EditorStampModal_default = EditorStampModal;
2324
2393
  }
2325
2394
  });
2326
2395
 
2327
2396
  // src/utils/table.ts
2328
- import _15 from "lodash/fp.js";
2397
+ import _16 from "lodash/fp.js";
2329
2398
  var generateTable;
2330
2399
  var init_table = __esm({
2331
2400
  "src/utils/table.ts"() {
2332
2401
  "use strict";
2333
2402
  generateTable = ({ column, line }) => {
2334
- const headLine = _15.times(_15.constant("<th></th>"), column);
2335
- const bodyLine = _15.times(_15.constant("<td></td>"), column);
2403
+ const headLine = _16.times(_16.constant("<th></th>"), column);
2404
+ const bodyLine = _16.times(_16.constant("<td></td>"), column);
2336
2405
  const head = `<thead>
2337
2406
  <tr>
2338
- ${_15.join("\n ", headLine)}
2407
+ ${_16.join("\n ", headLine)}
2339
2408
  </tr>
2340
2409
  </thead>`;
2341
2410
  const body = `<tbody>
2342
- ${_15.times(_15.constant(`<tr>
2343
- ${_15.join("\n ", bodyLine)}
2411
+ ${_16.times(_16.constant(`<tr>
2412
+ ${_16.join("\n ", bodyLine)}
2344
2413
  </tr>`), line - 1).join("\n ")}
2345
2414
  </tbody>`;
2346
2415
  return `<table>
@@ -2364,7 +2433,7 @@ var init_src_components_core_editor_EditorTableModal = __esm({
2364
2433
  "tmp_esbuild/_src_components_core_editor_EditorTableModal.module.css"() {
2365
2434
  "use strict";
2366
2435
  init_l9ewCrSeYzAUJUd9PfLHkZujTTXaJQ_auwa6d_qDY3s();
2367
- src_components_core_editor_EditorTableModal_default = { "line": "vv-VbIHYG-line", "cell": "vv-VbIHYG-cell", "grid": "vv-VbIHYG-grid", "header": "vv-VbIHYG-header" };
2436
+ src_components_core_editor_EditorTableModal_default = { "grid": "vv-VbIHYG-grid", "cell": "vv-VbIHYG-cell", "header": "vv-VbIHYG-header", "line": "vv-VbIHYG-line" };
2368
2437
  }
2369
2438
  });
2370
2439
 
@@ -2378,8 +2447,8 @@ var init_EditorTableModal = __esm({
2378
2447
 
2379
2448
  // src/components/core/editor/EditorTableModal.tsx
2380
2449
  import { useCallback as useCallback5, useState as useState7 } from "react";
2381
- import _16 from "lodash/fp.js";
2382
- import { jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
2450
+ import _17 from "lodash/fp.js";
2451
+ import { jsx as jsx21, jsxs as jsxs13 } from "react/jsx-runtime";
2383
2452
  var LINE_COUNT, COLUMN_COUNT, CELL_WIDTH, CELL_HEIGHT, CELL_MARGIN, LINE_WIDTH, Cell, EditorTableModal, EditorTableModal_default;
2384
2453
  var init_EditorTableModal2 = __esm({
2385
2454
  "src/components/core/editor/EditorTableModal.tsx"() {
@@ -2399,7 +2468,7 @@ var init_EditorTableModal2 = __esm({
2399
2468
  const onClickCallback = useCallback5(() => {
2400
2469
  onClick({ column, line });
2401
2470
  }, [column, line, onClick]);
2402
- return /* @__PURE__ */ jsx20(
2471
+ return /* @__PURE__ */ jsx21(
2403
2472
  "div",
2404
2473
  {
2405
2474
  className: src_components_core_editor_EditorTableModal_default.cell,
@@ -2421,17 +2490,17 @@ var init_EditorTableModal2 = __esm({
2421
2490
  },
2422
2491
  [onClick]
2423
2492
  );
2424
- const selectedLine = _16.getOr(0, "line", selected);
2425
- const selectedColumn = _16.getOr(0, "column", selected);
2493
+ const selectedLine = _17.getOr(0, "line", selected);
2494
+ const selectedColumn = _17.getOr(0, "column", selected);
2426
2495
  return /* @__PURE__ */ jsxs13("div", { children: [
2427
- /* @__PURE__ */ jsx20("div", { className: src_components_core_editor_EditorTableModal_default.header, children: `${selectedLine} x ${selectedColumn}` }),
2428
- /* @__PURE__ */ jsx20("div", { className: src_components_core_editor_EditorTableModal_default.grid, style: { "--v-line-width": `${LINE_WIDTH}px` }, children: _16.flow(
2429
- _16.range(1),
2430
- _16.map((line) => /* @__PURE__ */ jsx20("div", { className: src_components_core_editor_EditorTableModal_default.line, style: { "--v-cell-margin": `${CELL_MARGIN}px` }, children: _16.flow(
2431
- _16.range(1),
2432
- _16.map((column) => {
2496
+ /* @__PURE__ */ jsx21("div", { className: src_components_core_editor_EditorTableModal_default.header, children: `${selectedLine} x ${selectedColumn}` }),
2497
+ /* @__PURE__ */ jsx21("div", { className: src_components_core_editor_EditorTableModal_default.grid, style: { "--v-line-width": `${LINE_WIDTH}px` }, children: _17.flow(
2498
+ _17.range(1),
2499
+ _17.map((line) => /* @__PURE__ */ jsx21("div", { className: src_components_core_editor_EditorTableModal_default.line, style: { "--v-cell-margin": `${CELL_MARGIN}px` }, children: _17.flow(
2500
+ _17.range(1),
2501
+ _17.map((column) => {
2433
2502
  const isselected = line <= selectedLine && column <= selectedColumn;
2434
- return /* @__PURE__ */ jsx20(Cell, { isSelected: isselected, onMouseEnter, onClick: createTable, column, line }, column);
2503
+ return /* @__PURE__ */ jsx21(Cell, { isSelected: isselected, onMouseEnter, onClick: createTable, column, line }, column);
2435
2504
  })
2436
2505
  )(COLUMN_COUNT) }, line))
2437
2506
  )(LINE_COUNT) })
@@ -2453,7 +2522,7 @@ var init_src_components_core_editor_EditorTitleModal = __esm({
2453
2522
  "tmp_esbuild/_src_components_core_editor_EditorTitleModal.module.css"() {
2454
2523
  "use strict";
2455
2524
  init_V9YMxBzxg_bf_yrJnoKZc7V_grOZr8Z66I81mib_oQ4();
2456
- src_components_core_editor_EditorTitleModal_default = { "body3": "vv-_Pgo7W-body3", "title": "vv-_Pgo7W-title", "h2": "vv-_Pgo7W-h2", "h4": "vv-_Pgo7W-h4", "body1": "vv-_Pgo7W-body1", "body2": "vv-_Pgo7W-body2", "h1": "vv-_Pgo7W-h1", "h3": "vv-_Pgo7W-h3" };
2525
+ src_components_core_editor_EditorTitleModal_default = { "h3": "vv-_Pgo7W-h3", "title": "vv-_Pgo7W-title", "h1": "vv-_Pgo7W-h1", "h2": "vv-_Pgo7W-h2", "body2": "vv-_Pgo7W-body2", "h4": "vv-_Pgo7W-h4", "body3": "vv-_Pgo7W-body3", "body1": "vv-_Pgo7W-body1" };
2457
2526
  }
2458
2527
  });
2459
2528
 
@@ -2467,20 +2536,20 @@ var init_EditorTitleModal = __esm({
2467
2536
 
2468
2537
  // src/components/core/editor/EditorTitleModal.tsx
2469
2538
  import { cx as cx4 } from "@lls/utils";
2470
- import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
2539
+ import { jsx as jsx22, jsxs as jsxs14 } from "react/jsx-runtime";
2471
2540
  var EditorTitlesModal, EditorTitleModal_default;
2472
2541
  var init_EditorTitleModal2 = __esm({
2473
2542
  "src/components/core/editor/EditorTitleModal.tsx"() {
2474
2543
  "use strict";
2475
2544
  init_EditorTitleModal();
2476
2545
  EditorTitlesModal = ({ onClick }) => /* @__PURE__ */ jsxs14("div", { children: [
2477
- /* @__PURE__ */ jsx21("div", { className: cx4(src_components_core_editor_EditorTitleModal_default.h1, src_components_core_editor_EditorTitleModal_default.title), onClick: () => onClick((selectedText) => `<h1>${selectedText}</h1>`), children: "h1" }),
2478
- /* @__PURE__ */ jsx21("div", { className: cx4(src_components_core_editor_EditorTitleModal_default.h2, src_components_core_editor_EditorTitleModal_default.title), onClick: () => onClick((selectedText) => `<h2>${selectedText}</h2>`), children: "h2" }),
2479
- /* @__PURE__ */ jsx21("div", { className: cx4(src_components_core_editor_EditorTitleModal_default.h3, src_components_core_editor_EditorTitleModal_default.title), onClick: () => onClick((selectedText) => `<h3>${selectedText}</h3>`), children: "h3" }),
2480
- /* @__PURE__ */ jsx21("div", { className: cx4(src_components_core_editor_EditorTitleModal_default.h4, src_components_core_editor_EditorTitleModal_default.title), onClick: () => onClick((selectedText) => `<h4>${selectedText}</h4>`), children: "h4" }),
2481
- /* @__PURE__ */ jsx21("div", { className: cx4(src_components_core_editor_EditorTitleModal_default.body1, src_components_core_editor_EditorTitleModal_default.title), onClick: () => onClick((selectedText) => `<body1>${selectedText}</body1>`), children: "body1" }),
2482
- /* @__PURE__ */ jsx21("div", { className: cx4(src_components_core_editor_EditorTitleModal_default.body2, src_components_core_editor_EditorTitleModal_default.title), onClick: () => onClick((selectedText) => `<body2>${selectedText}</body2>`), children: "body2" }),
2483
- /* @__PURE__ */ jsx21("div", { className: cx4(src_components_core_editor_EditorTitleModal_default.body3, src_components_core_editor_EditorTitleModal_default.title), onClick: () => onClick((selectedText) => `<body3>${selectedText}</body3>`), children: "body3" })
2546
+ /* @__PURE__ */ jsx22("div", { className: cx4(src_components_core_editor_EditorTitleModal_default.h1, src_components_core_editor_EditorTitleModal_default.title), onClick: () => onClick((selectedText) => `<h1>${selectedText}</h1>`), children: "h1" }),
2547
+ /* @__PURE__ */ jsx22("div", { className: cx4(src_components_core_editor_EditorTitleModal_default.h2, src_components_core_editor_EditorTitleModal_default.title), onClick: () => onClick((selectedText) => `<h2>${selectedText}</h2>`), children: "h2" }),
2548
+ /* @__PURE__ */ jsx22("div", { className: cx4(src_components_core_editor_EditorTitleModal_default.h3, src_components_core_editor_EditorTitleModal_default.title), onClick: () => onClick((selectedText) => `<h3>${selectedText}</h3>`), children: "h3" }),
2549
+ /* @__PURE__ */ jsx22("div", { className: cx4(src_components_core_editor_EditorTitleModal_default.h4, src_components_core_editor_EditorTitleModal_default.title), onClick: () => onClick((selectedText) => `<h4>${selectedText}</h4>`), children: "h4" }),
2550
+ /* @__PURE__ */ jsx22("div", { className: cx4(src_components_core_editor_EditorTitleModal_default.body1, src_components_core_editor_EditorTitleModal_default.title), onClick: () => onClick((selectedText) => `<body1>${selectedText}</body1>`), children: "body1" }),
2551
+ /* @__PURE__ */ jsx22("div", { className: cx4(src_components_core_editor_EditorTitleModal_default.body2, src_components_core_editor_EditorTitleModal_default.title), onClick: () => onClick((selectedText) => `<body2>${selectedText}</body2>`), children: "body2" }),
2552
+ /* @__PURE__ */ jsx22("div", { className: cx4(src_components_core_editor_EditorTitleModal_default.body3, src_components_core_editor_EditorTitleModal_default.title), onClick: () => onClick((selectedText) => `<body3>${selectedText}</body3>`), children: "body3" })
2484
2553
  ] });
2485
2554
  EditorTitleModal_default = EditorTitlesModal;
2486
2555
  }
@@ -2514,7 +2583,7 @@ var init_EditorToolbar = __esm({
2514
2583
  import { forwardRef, useCallback as useCallback6, useState as useState8 } from "react";
2515
2584
  import xmlFormat from "xml-formatter";
2516
2585
  import { Button as Button3, ButtonsList, Tooltip as Tooltip2 } from "@lls/lls-kit";
2517
- import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
2586
+ import { jsx as jsx23, jsxs as jsxs15 } from "react/jsx-runtime";
2518
2587
  import { createElement } from "react";
2519
2588
  var EDITOR_BUTTONS, Dropdown, EditorToolbar, EditorToolbar_default;
2520
2589
  var init_EditorToolbar2 = __esm({
@@ -2719,17 +2788,17 @@ ${selectedText}
2719
2788
  const listItems = [
2720
2789
  {
2721
2790
  type: "component",
2722
- content: /* @__PURE__ */ jsx22(Overlay, { onClick: onClickOverlay })
2791
+ content: /* @__PURE__ */ jsx23(Overlay, { onClick: onClickOverlay })
2723
2792
  }
2724
2793
  ];
2725
2794
  return /* @__PURE__ */ jsxs15("span", { className: src_components_core_editor_EditorToolbar_default.span, onClick: toggleVisible, children: [
2726
- /* @__PURE__ */ jsx22(Tooltip2, { content: title, children: /* @__PURE__ */ jsx22(Button3, { theme: "gray", icon, children: " " }) }),
2727
- visible && /* @__PURE__ */ jsx22(ButtonsList, { listItems, className: src_components_core_editor_EditorToolbar_default.absoluteMenuButton, zIndex: 1, withMask: false })
2795
+ /* @__PURE__ */ jsx23(Tooltip2, { content: title, children: /* @__PURE__ */ jsx23(Button3, { theme: "gray", icon, children: " " }) }),
2796
+ visible && /* @__PURE__ */ jsx23(ButtonsList, { listItems, className: src_components_core_editor_EditorToolbar_default.absoluteMenuButton, zIndex: 1, withMask: false })
2728
2797
  ] });
2729
2798
  };
2730
- EditorToolbar = forwardRef(({ replace }, menuRef) => /* @__PURE__ */ jsx22("div", { className: src_components_core_editor_EditorToolbar_default.editorToolbar, ref: menuRef, children: EDITOR_BUTTONS.map((button, i) => {
2799
+ EditorToolbar = forwardRef(({ replace }, menuRef) => /* @__PURE__ */ jsx23("div", { className: src_components_core_editor_EditorToolbar_default.editorToolbar, ref: menuRef, children: EDITOR_BUTTONS.map((button, i) => {
2731
2800
  const { icon, action, title, dropdown } = button;
2732
- return dropdown ? /* @__PURE__ */ createElement(Dropdown, { ...button, action: (callback) => replace(callback), key: i }) : /* @__PURE__ */ jsx22(Tooltip2, { content: title, children: /* @__PURE__ */ jsx22(Button3, { theme: "gray", onClick: () => replace(action, title), icon, children: " " }, i) });
2801
+ return dropdown ? /* @__PURE__ */ createElement(Dropdown, { ...button, action: (callback) => replace(callback), key: i }) : /* @__PURE__ */ jsx23(Tooltip2, { content: title, children: /* @__PURE__ */ jsx23(Button3, { theme: "gray", onClick: () => replace(action, title), icon, children: " " }, i) });
2733
2802
  }) }));
2734
2803
  EditorToolbar.displayName = "EditorToolbar";
2735
2804
  EditorToolbar_default = EditorToolbar;
@@ -2748,7 +2817,7 @@ var init_src_components_core_editor_Editor = __esm({
2748
2817
  "tmp_esbuild/_src_components_core_editor_Editor.module.css"() {
2749
2818
  "use strict";
2750
2819
  init_NNguA_8WOGh41wmBCm8AF1DJWa35r2rfRhLOxgn68();
2751
- src_components_core_editor_Editor_default = { "wrapper": "vv-cGAezq-wrapper", "errorBanner": "vv-cGAezq-errorBanner", "rnd": "vv-cGAezq-rnd", "header": "vv-cGAezq-header" };
2820
+ src_components_core_editor_Editor_default = { "rnd": "vv-cGAezq-rnd", "errorBanner": "vv-cGAezq-errorBanner", "header": "vv-cGAezq-header", "wrapper": "vv-cGAezq-wrapper" };
2752
2821
  }
2753
2822
  });
2754
2823
 
@@ -2762,9 +2831,9 @@ var init_Editor = __esm({
2762
2831
 
2763
2832
  // src/components/core/editor/Editor.tsx
2764
2833
  import { useCallback as useCallback7, useMemo as useMemo2, useRef as useRef6 } from "react";
2765
- import _17 from "lodash/fp.js";
2834
+ import _18 from "lodash/fp.js";
2766
2835
  import { Button as Button4 } from "@lls/lls-kit";
2767
- import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
2836
+ import { jsx as jsx24, jsxs as jsxs16 } from "react/jsx-runtime";
2768
2837
  var DEFAULT_WIDTH, DEFAULT_HEIGHT, Editor, Editor_default;
2769
2838
  var init_Editor2 = __esm({
2770
2839
  "src/components/core/editor/Editor.tsx"() {
@@ -2794,7 +2863,7 @@ var init_Editor2 = __esm({
2794
2863
  editor.current.focus();
2795
2864
  }, []);
2796
2865
  const onChange = useMemo2(() => {
2797
- return _17.debounce(500, (contentMd) => onDocChange(_17.set("contentMd", contentMd, doc)));
2866
+ return _18.debounce(500, (contentMd) => onDocChange(_18.set("contentMd", contentMd, doc)));
2798
2867
  }, [doc, onDocChange]);
2799
2868
  const keyMap = useMemo2(() => {
2800
2869
  return {
@@ -2813,10 +2882,10 @@ var init_Editor2 = __esm({
2813
2882
  }
2814
2883
  });
2815
2884
  return /* @__PURE__ */ jsxs16("div", { className: src_components_core_editor_Editor_default.rnd, ref: rndRef, children: [
2816
- /* @__PURE__ */ jsx23("div", { className: src_components_core_editor_Editor_default.header, onMouseDown: launchTranslate, children: /* @__PURE__ */ jsx23(Button4, { onClick: onClose, theme: "gray", children: "cancel" }) }),
2817
- /* @__PURE__ */ jsx23(EditorToolbar_default, { replace }),
2818
- /* @__PURE__ */ jsx23("div", { className: src_components_core_editor_Editor_default.wrapper, children: /* @__PURE__ */ jsx23(CodemirrorEditor_default, { componentDidMount: setEditor, value: _17.get("contentMd", doc), onChange, keyMap, onError }) }),
2819
- error && /* @__PURE__ */ jsx23("div", { className: src_components_core_editor_Editor_default.errorBanner, children: error }),
2885
+ /* @__PURE__ */ jsx24("div", { className: src_components_core_editor_Editor_default.header, onMouseDown: launchTranslate, children: /* @__PURE__ */ jsx24(Button4, { onClick: onClose, theme: "gray", children: "cancel" }) }),
2886
+ /* @__PURE__ */ jsx24(EditorToolbar_default, { replace }),
2887
+ /* @__PURE__ */ jsx24("div", { className: src_components_core_editor_Editor_default.wrapper, children: /* @__PURE__ */ jsx24(CodemirrorEditor_default, { componentDidMount: setEditor, value: _18.get("contentMd", doc), onChange, keyMap, onError }) }),
2888
+ error && /* @__PURE__ */ jsx24("div", { className: src_components_core_editor_Editor_default.errorBanner, children: error }),
2820
2889
  handlersElement
2821
2890
  ] });
2822
2891
  };
@@ -2825,12 +2894,12 @@ var init_Editor2 = __esm({
2825
2894
  });
2826
2895
 
2827
2896
  // src/components/core/editor/EditorSsr.tsx
2828
- import { jsx as jsx24 } from "react/jsx-runtime";
2897
+ import { jsx as jsx25 } from "react/jsx-runtime";
2829
2898
  var EditorSsr, EditorSsr_default;
2830
2899
  var init_EditorSsr = __esm({
2831
2900
  "src/components/core/editor/EditorSsr.tsx"() {
2832
2901
  "use strict";
2833
- EditorSsr = () => /* @__PURE__ */ jsx24("div", {});
2902
+ EditorSsr = () => /* @__PURE__ */ jsx25("div", {});
2834
2903
  EditorSsr_default = EditorSsr;
2835
2904
  }
2836
2905
  });
@@ -2861,8 +2930,8 @@ var init_useDragAndResize3 = __esm({
2861
2930
 
2862
2931
  // src/hooks/useDragAndResize.tsx
2863
2932
  import { useEffect as useEffect7, useRef as useRef7, useState as useState9 } from "react";
2864
- import _18 from "lodash/fp.js";
2865
- import { Fragment as Fragment2, jsx as jsx25 } from "react/jsx-runtime";
2933
+ import _19 from "lodash/fp.js";
2934
+ import { Fragment as Fragment2, jsx as jsx26 } from "react/jsx-runtime";
2866
2935
  var resizeHandlersProps2, useDragAndResize2, useDragAndResize_default2;
2867
2936
  var init_useDragAndResize4 = __esm({
2868
2937
  "src/hooks/useDragAndResize.tsx"() {
@@ -2990,17 +3059,17 @@ var init_useDragAndResize4 = __esm({
2990
3059
  shouldMoveX: false,
2991
3060
  shouldMoveY: false
2992
3061
  });
2993
- const positionX = _18.getOr(0, "x", defaultPositions);
2994
- const bodyWidth = _18.getOr(0, "body.offsetWidth", document);
3062
+ const positionX = _19.getOr(0, "x", defaultPositions);
3063
+ const bodyWidth = _19.getOr(0, "body.offsetWidth", document);
2995
3064
  const x = positionX + defaultWidth > bodyWidth ? positionX - defaultWidth : positionX;
2996
3065
  const [translateData, setTranslateData] = useState9({
2997
3066
  isActive: false,
2998
3067
  x,
2999
- y: _18.getOr(0, "y", defaultPositions)
3068
+ y: _19.getOr(0, "y", defaultPositions)
3000
3069
  });
3001
3070
  useEffect7(() => {
3002
3071
  if (translateData.isActive) {
3003
- const onMouseUp = () => setTranslateData(_18.set("isActive", false));
3072
+ const onMouseUp = () => setTranslateData(_19.set("isActive", false));
3004
3073
  const onMouseMove = (e) => setTranslateData(({ x: x2, y, ...translateData2 }) => ({
3005
3074
  ...translateData2,
3006
3075
  x: x2 + e.movementX,
@@ -3025,7 +3094,7 @@ var init_useDragAndResize4 = __esm({
3025
3094
  }
3026
3095
  const { shouldSizeX, shouldSizeY, shouldMoveX, shouldMoveY } = resizingData;
3027
3096
  const onMouseUp = () => {
3028
- setResizingData(_18.set("isActive", false));
3097
+ setResizingData(_19.set("isActive", false));
3029
3098
  };
3030
3099
  const getNewSizeValue = ({
3031
3100
  shouldMove,
@@ -3079,9 +3148,9 @@ var init_useDragAndResize4 = __esm({
3079
3148
  };
3080
3149
  }
3081
3150
  }, [size, resizingData, onResize]);
3082
- const launchTranslate = () => setTranslateData(_18.set("isActive", true));
3083
- const handlersElement = canResize ? /* @__PURE__ */ jsx25("div", { children: resizeHandlersProps2.map((handle, key) => {
3084
- return /* @__PURE__ */ jsx25(
3151
+ const launchTranslate = () => setTranslateData(_19.set("isActive", true));
3152
+ const handlersElement = canResize ? /* @__PURE__ */ jsx26("div", { children: resizeHandlersProps2.map((handle, key) => {
3153
+ return /* @__PURE__ */ jsx26(
3085
3154
  "div",
3086
3155
  {
3087
3156
  className: src_hooks_useDragAndResize_default.handle,
@@ -3092,15 +3161,15 @@ var init_useDragAndResize4 = __esm({
3092
3161
  "--v-left": handle.left,
3093
3162
  "--v-cursor": handle.cursor
3094
3163
  },
3095
- ..._18.omit("resizingProps", handle),
3164
+ ..._19.omit("resizingProps", handle),
3096
3165
  onMouseDown: () => setResizingData({
3097
3166
  isActive: true,
3098
- ..._18.get("resizingProps", handle)
3167
+ ..._19.get("resizingProps", handle)
3099
3168
  })
3100
3169
  },
3101
3170
  key
3102
3171
  );
3103
- }) }) : /* @__PURE__ */ jsx25(Fragment2, {});
3172
+ }) }) : /* @__PURE__ */ jsx26(Fragment2, {});
3104
3173
  const isActive = translateData.isActive || resizingData.isActive;
3105
3174
  useEffect7(() => {
3106
3175
  if (!rndRef.current)
@@ -3135,7 +3204,7 @@ var init_src_components_core_editor_MetadataEditor = __esm({
3135
3204
  "tmp_esbuild/_src_components_core_editor_MetadataEditor.module.css"() {
3136
3205
  "use strict";
3137
3206
  init_Zb1cEYNT4eNwW8io0xWL7zXkOH8P26_7eImYlmla2wA();
3138
- src_components_core_editor_MetadataEditor_default = { "field": "vv-ftXTRa-field", "select": "vv-ftXTRa-select", "rnd": "vv-ftXTRa-rnd", "body": "vv-ftXTRa-body", "uuid": "vv-ftXTRa-uuid", "header": "vv-ftXTRa-header", "fieldWrapper": "vv-ftXTRa-fieldWrapper" };
3207
+ src_components_core_editor_MetadataEditor_default = { "uuid": "vv-ftXTRa-uuid", "body": "vv-ftXTRa-body", "fieldWrapper": "vv-ftXTRa-fieldWrapper", "field": "vv-ftXTRa-field", "header": "vv-ftXTRa-header", "select": "vv-ftXTRa-select", "rnd": "vv-ftXTRa-rnd" };
3139
3208
  }
3140
3209
  });
3141
3210
 
@@ -3148,10 +3217,10 @@ var init_MetadataEditor = __esm({
3148
3217
  });
3149
3218
 
3150
3219
  // src/components/core/editor/MetadataEditor.tsx
3151
- import _19 from "lodash/fp.js";
3220
+ import _20 from "lodash/fp.js";
3152
3221
  import { Button as Button5 } from "@lls/lls-kit";
3153
3222
  import Select from "react-select";
3154
- import { jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
3223
+ import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
3155
3224
  var MetadataEditor, MetadataEditor_default;
3156
3225
  var init_MetadataEditor2 = __esm({
3157
3226
  "src/components/core/editor/MetadataEditor.tsx"() {
@@ -3159,27 +3228,27 @@ var init_MetadataEditor2 = __esm({
3159
3228
  init_useDragAndResize4();
3160
3229
  init_MetadataEditor();
3161
3230
  MetadataEditor = ({ doc, onDocChange, onClose, positions, notions }) => {
3162
- const metadata = _19.get("metadata", doc);
3163
- const setValue = (subName, e) => onDocChange(_19.set(["metadata", subName], _19.get("target.value", e), doc));
3164
- const setMultipleValue = (subName, values) => onDocChange(_19.set(["metadata", subName], _19.map("value", values), doc));
3231
+ const metadata = _20.get("metadata", doc);
3232
+ const setValue = (subName, e) => onDocChange(_20.set(["metadata", subName], _20.get("target.value", e), doc));
3233
+ const setMultipleValue = (subName, values) => onDocChange(_20.set(["metadata", subName], _20.map("value", values), doc));
3165
3234
  const { handlersElement, launchTranslate, rndRef } = useDragAndResize_default2({
3166
3235
  defaultPositions: positions
3167
3236
  });
3168
3237
  return /* @__PURE__ */ jsxs17("div", { className: src_components_core_editor_MetadataEditor_default.rnd, ref: rndRef, children: [
3169
- /* @__PURE__ */ jsx26("div", { className: src_components_core_editor_MetadataEditor_default.header, onMouseDown: launchTranslate, children: /* @__PURE__ */ jsx26(Button5, { onClick: onClose, theme: "gray", children: "cancel" }) }),
3238
+ /* @__PURE__ */ jsx27("div", { className: src_components_core_editor_MetadataEditor_default.header, onMouseDown: launchTranslate, children: /* @__PURE__ */ jsx27(Button5, { onClick: onClose, theme: "gray", children: "cancel" }) }),
3170
3239
  /* @__PURE__ */ jsxs17("div", { className: src_components_core_editor_MetadataEditor_default.body, children: [
3171
3240
  /* @__PURE__ */ jsxs17("div", { className: src_components_core_editor_MetadataEditor_default.fieldWrapper, children: [
3172
3241
  "Uuid:",
3173
3242
  " ",
3174
- /* @__PURE__ */ jsx26("span", { className: src_components_core_editor_MetadataEditor_default.uuid, style: { "--data-font": "monospace" }, children: doc.uuid })
3243
+ /* @__PURE__ */ jsx27("span", { className: src_components_core_editor_MetadataEditor_default.uuid, style: { "--data-font": "monospace" }, children: doc.uuid })
3175
3244
  ] }),
3176
3245
  /* @__PURE__ */ jsxs17("div", { className: src_components_core_editor_MetadataEditor_default.fieldWrapper, children: [
3177
3246
  "Title",
3178
- /* @__PURE__ */ jsx26(
3247
+ /* @__PURE__ */ jsx27(
3179
3248
  "input",
3180
3249
  {
3181
3250
  className: src_components_core_editor_MetadataEditor_default.field,
3182
- value: _19.getOr("", "title", metadata),
3251
+ value: _20.getOr("", "title", metadata),
3183
3252
  onChange: (e) => setValue("title", e),
3184
3253
  onBlur: (e) => setValue("title", e)
3185
3254
  }
@@ -3187,11 +3256,11 @@ var init_MetadataEditor2 = __esm({
3187
3256
  ] }),
3188
3257
  /* @__PURE__ */ jsxs17("div", { className: src_components_core_editor_MetadataEditor_default.fieldWrapper, children: [
3189
3258
  "Description",
3190
- /* @__PURE__ */ jsx26(
3259
+ /* @__PURE__ */ jsx27(
3191
3260
  "input",
3192
3261
  {
3193
3262
  className: src_components_core_editor_MetadataEditor_default.field,
3194
- value: _19.getOr("", "description", metadata),
3263
+ value: _20.getOr("", "description", metadata),
3195
3264
  onChange: (e) => setValue("description", e),
3196
3265
  onBlur: (e) => setValue("description", e)
3197
3266
  }
@@ -3199,11 +3268,11 @@ var init_MetadataEditor2 = __esm({
3199
3268
  ] }),
3200
3269
  /* @__PURE__ */ jsxs17("div", { className: src_components_core_editor_MetadataEditor_default.fieldWrapper, children: [
3201
3270
  "Image",
3202
- /* @__PURE__ */ jsx26(
3271
+ /* @__PURE__ */ jsx27(
3203
3272
  "input",
3204
3273
  {
3205
3274
  className: src_components_core_editor_MetadataEditor_default.field,
3206
- value: _19.getOr("", "image", metadata),
3275
+ value: _20.getOr("", "image", metadata),
3207
3276
  onChange: (e) => setValue("image", e),
3208
3277
  onBlur: (e) => setValue("image", e)
3209
3278
  }
@@ -3211,27 +3280,27 @@ var init_MetadataEditor2 = __esm({
3211
3280
  ] }),
3212
3281
  /* @__PURE__ */ jsxs17("div", { className: src_components_core_editor_MetadataEditor_default.fieldWrapper, children: [
3213
3282
  "Keywords",
3214
- /* @__PURE__ */ jsx26(
3283
+ /* @__PURE__ */ jsx27(
3215
3284
  "input",
3216
3285
  {
3217
3286
  className: src_components_core_editor_MetadataEditor_default.field,
3218
- value: _19.getOr("", "keywords", metadata),
3287
+ value: _20.getOr("", "keywords", metadata),
3219
3288
  onChange: (e) => setValue("keywords", e),
3220
3289
  onBlur: (e) => setValue("keywords", e)
3221
3290
  }
3222
3291
  )
3223
3292
  ] }),
3224
- !_19.isEmpty(notions) && /* @__PURE__ */ jsxs17("div", { className: src_components_core_editor_MetadataEditor_default.fieldWrapper, children: [
3293
+ !_20.isEmpty(notions) && /* @__PURE__ */ jsxs17("div", { className: src_components_core_editor_MetadataEditor_default.fieldWrapper, children: [
3225
3294
  "Notion",
3226
- /* @__PURE__ */ jsx26(
3295
+ /* @__PURE__ */ jsx27(
3227
3296
  Select,
3228
3297
  {
3229
3298
  className: src_components_core_editor_MetadataEditor_default.select,
3230
- value: _19.flow(
3231
- _19.get("notions"),
3232
- _19.map((notion) => ({ label: notion, value: notion }))
3299
+ value: _20.flow(
3300
+ _20.get("notions"),
3301
+ _20.map((notion) => ({ label: notion, value: notion }))
3233
3302
  )(metadata),
3234
- options: _19.map((notion) => ({ label: notion, value: notion }), notions),
3303
+ options: _20.map((notion) => ({ label: notion, value: notion }), notions),
3235
3304
  isMulti: true,
3236
3305
  onChange: (values) => setMultipleValue("notions", values)
3237
3306
  }
@@ -3246,7 +3315,7 @@ var init_MetadataEditor2 = __esm({
3246
3315
  });
3247
3316
 
3248
3317
  // src/hooks/useEditor.tsx
3249
- import _20 from "lodash/fp.js";
3318
+ import _21 from "lodash/fp.js";
3250
3319
  import { useCallback as useCallback8, useEffect as useEffect8, useState as useState10 } from "react";
3251
3320
  var EDITOR_MARGIN, useEditor, useEditor_default;
3252
3321
  var init_useEditor = __esm({
@@ -3259,7 +3328,7 @@ var init_useEditor = __esm({
3259
3328
  const [path, setPath] = useState10(void 0);
3260
3329
  const [positions, setPositions] = useState10({ x: 0, y: 0 });
3261
3330
  useEffect8(() => {
3262
- _20.noop(id);
3331
+ _21.noop(id);
3263
3332
  setPath(void 0);
3264
3333
  }, [id]);
3265
3334
  const open = useCallback8((editPath, e) => {
@@ -3321,7 +3390,7 @@ var init_src_components_lazy_index_editor = __esm({
3321
3390
  "tmp_esbuild/_src_components_lazy_index.editor.module.css"() {
3322
3391
  "use strict";
3323
3392
  init_N7qE5xz_356BL8FwluXb9SO0Q6g8pmP18e18R9y8bEU();
3324
- src_components_lazy_index_editor_default = { "submit": "vv-RUXZgW-submit", "pageContainer": "vv-RUXZgW-pageContainer", "screen": "vv-RUXZgW-screen", "alert": "vv-RUXZgW-alert", "alertOpenedAnimation": "vv-RUXZgW-alertOpenedAnimation", "exitButton": "vv-RUXZgW-exitButton", "stickyBar": "vv-RUXZgW-stickyBar", "button": "vv-RUXZgW-button" };
3393
+ src_components_lazy_index_editor_default = { "submit": "vv-RUXZgW-submit", "exitButton": "vv-RUXZgW-exitButton", "alertOpenedAnimation": "vv-RUXZgW-alertOpenedAnimation", "pageContainer": "vv-RUXZgW-pageContainer", "alert": "vv-RUXZgW-alert", "screen": "vv-RUXZgW-screen", "button": "vv-RUXZgW-button", "stickyBar": "vv-RUXZgW-stickyBar" };
3325
3394
  }
3326
3395
  });
3327
3396
 
@@ -3338,11 +3407,11 @@ var index_editor_exports = {};
3338
3407
  __export(index_editor_exports, {
3339
3408
  default: () => index_editor_default
3340
3409
  });
3341
- import React7, { useCallback as useCallback9, useEffect as useEffect9, useState as useState11 } from "react";
3342
- import _21 from "lodash/fp.js";
3410
+ import React8, { useCallback as useCallback9, useEffect as useEffect9, useState as useState11 } from "react";
3411
+ import _22 from "lodash/fp.js";
3343
3412
  import { Button as Button6, RadioButton, Snackbar } from "@lls/lls-kit";
3344
3413
  import { copyToClipboard } from "@lls/utils";
3345
- import { Fragment as Fragment3, jsx as jsx27, jsxs as jsxs18 } from "react/jsx-runtime";
3414
+ import { Fragment as Fragment3, jsx as jsx28, jsxs as jsxs18 } from "react/jsx-runtime";
3346
3415
  var Editor2, CompactModeButton, CopyButton, EditorStickyBar, EditorNext, index_editor_default;
3347
3416
  var init_index_editor2 = __esm({
3348
3417
  "src/components/lazy/index.editor.tsx"() {
@@ -3365,9 +3434,9 @@ var init_index_editor2 = __esm({
3365
3434
  const onClick = useCallback9(() => {
3366
3435
  setIsCompactMode(!isCompactMode);
3367
3436
  }, [setIsCompactMode, isCompactMode]);
3368
- return /* @__PURE__ */ jsx27(Button6, { theme, accent: "alt", "data-isactive": +isCompactMode, onClick, children: "cm" });
3437
+ return /* @__PURE__ */ jsx28(Button6, { theme, accent: "alt", "data-isactive": +isCompactMode, onClick, children: "cm" });
3369
3438
  };
3370
- CopyButton = ({ template, theme, setCopied = _21.noop }) => {
3439
+ CopyButton = ({ template, theme, setCopied = _22.noop }) => {
3371
3440
  const onClick = useCallback9(() => {
3372
3441
  copyToClipboard(JSON.stringify(template, null, 2));
3373
3442
  setCopied(true);
@@ -3375,19 +3444,19 @@ var init_index_editor2 = __esm({
3375
3444
  setCopied(false);
3376
3445
  }, 3500);
3377
3446
  }, [template, setCopied]);
3378
- return /* @__PURE__ */ jsx27(Button6, { className: src_components_lazy_index_editor_default.button, theme, accent: "alt", type: "button", onClick, children: "Copier le JSON" });
3447
+ return /* @__PURE__ */ jsx28(Button6, { className: src_components_lazy_index_editor_default.button, theme, accent: "alt", type: "button", onClick, children: "Copier le JSON" });
3379
3448
  };
3380
3449
  EditorStickyBar = ({ mode, setMode, handleSubmit, template, isCompactMode, setIsCompactMode, setCopied }) => {
3381
3450
  const stickyBarTheme = IS_PROD ? "premium" : "primary";
3382
3451
  return /* @__PURE__ */ jsxs18("div", { className: src_components_lazy_index_editor_default.stickyBar, children: [
3383
- /* @__PURE__ */ jsx27(RadioButton, { isChecked: mode === "edit", onChange: setMode, label: "Edit", name: "Mode", value: "edit" }),
3384
- /* @__PURE__ */ jsx27(RadioButton, { isChecked: mode === "view", onChange: setMode, label: "View", name: "Mode", value: "view" }),
3385
- /* @__PURE__ */ jsx27(Button6, { theme: stickyBarTheme, onClick: handleSubmit, children: "Submit" }),
3386
- /* @__PURE__ */ jsx27(CompactModeButton, { theme: stickyBarTheme, isCompactMode, setIsCompactMode }),
3387
- /* @__PURE__ */ jsx27(CopyButton, { theme: stickyBarTheme, template, setCopied })
3452
+ /* @__PURE__ */ jsx28(RadioButton, { isChecked: mode === "edit", onChange: setMode, label: "Edit", name: "Mode", value: "edit" }),
3453
+ /* @__PURE__ */ jsx28(RadioButton, { isChecked: mode === "view", onChange: setMode, label: "View", name: "Mode", value: "view" }),
3454
+ /* @__PURE__ */ jsx28(Button6, { theme: stickyBarTheme, onClick: handleSubmit, children: "Submit" }),
3455
+ /* @__PURE__ */ jsx28(CompactModeButton, { theme: stickyBarTheme, isCompactMode, setIsCompactMode }),
3456
+ /* @__PURE__ */ jsx28(CopyButton, { theme: stickyBarTheme, template, setCopied })
3388
3457
  ] });
3389
3458
  };
3390
- EditorNext = React7.forwardRef(({ template, onChange = _21.noop, onSubmit = _21.noop, notions, ...props }, ref) => {
3459
+ EditorNext = React8.forwardRef(({ template, onChange = _22.noop, onSubmit = _22.noop, notions, ...props }, ref) => {
3391
3460
  const [isCompactMode, setIsCompactMode] = useState11(false);
3392
3461
  const [mode, setMode] = useState11("edit");
3393
3462
  const [copied, setCopied] = useState11(false);
@@ -3395,7 +3464,7 @@ var init_index_editor2 = __esm({
3395
3464
  const editEditor = useEditor_default({ id });
3396
3465
  const metadataEditor = useEditor_default({ id });
3397
3466
  const [docLintErrors, setDocLintErrors] = useState11({});
3398
- const firstFoundErrorUuid = _21.findKey.convert({ cap: false })(Boolean, docLintErrors);
3467
+ const firstFoundErrorUuid = _22.findKey.convert({ cap: false })(Boolean, docLintErrors);
3399
3468
  const [showWarningSnackbar, setShowWarningSnackbar] = useState11(false);
3400
3469
  useEffect9(() => {
3401
3470
  if (showWarningSnackbar) {
@@ -3407,11 +3476,11 @@ var init_index_editor2 = __esm({
3407
3476
  }, [showWarningSnackbar]);
3408
3477
  useEffect9(() => {
3409
3478
  setDocLintErrors(
3410
- _21.flow(
3411
- _21.get("children"),
3479
+ _22.flow(
3480
+ _22.get("children"),
3412
3481
  (children) => [...children, { uuid: "root", contentMd: template?.contentMd }],
3413
- _21.map((child) => [child.uuid, parseErrorsInContentMd(child.contentMd)]),
3414
- _21.fromPairs
3482
+ _22.map((child) => [child.uuid, parseErrorsInContentMd(child.contentMd)]),
3483
+ _22.fromPairs
3415
3484
  )(template)
3416
3485
  );
3417
3486
  }, [template]);
@@ -3434,7 +3503,7 @@ ${JSON.stringify(
3434
3503
  return;
3435
3504
  }
3436
3505
  const invalidIdCard = getMissingId(template);
3437
- if (!_21.isEmpty(invalidIdCard)) {
3506
+ if (!_22.isEmpty(invalidIdCard)) {
3438
3507
  alert(
3439
3508
  `L'une des cartes du template n'a pas un id valide. Par mesure de securit\xE9 la sauvegarde \xE0 \xE9t\xE9 bloqu\xE9e.
3440
3509
 
@@ -3451,7 +3520,7 @@ ${JSON.stringify(
3451
3520
  }, [mode, template, onSubmit]);
3452
3521
  const onKeyDown = useCallback9(
3453
3522
  (e) => {
3454
- const sKey = _21.flow(_21.invoke("key.toLowerCase"), _21.isEqual("s"))(e);
3523
+ const sKey = _22.flow(_22.invoke("key.toLowerCase"), _22.isEqual("s"))(e);
3455
3524
  if (sKey && isMetaControlKeyPressed(e)) {
3456
3525
  e.preventDefault();
3457
3526
  return handleSubmit();
@@ -3467,7 +3536,7 @@ ${JSON.stringify(
3467
3536
  }, [onKeyDown]);
3468
3537
  const onError = useCallback9(
3469
3538
  (error) => {
3470
- setDocLintErrors(_21.set(editEditor.path, error));
3539
+ setDocLintErrors(_22.set(editEditor.path, error));
3471
3540
  },
3472
3541
  [editEditor.path]
3473
3542
  );
@@ -3479,13 +3548,13 @@ ${JSON.stringify(
3479
3548
  };
3480
3549
  const onDocChange = useCallback9(
3481
3550
  (doc) => {
3482
- const uuid = _21.get("uuid", doc);
3551
+ const uuid = _22.get("uuid", doc);
3483
3552
  if (!uuid) {
3484
3553
  onChange(doc);
3485
3554
  } else {
3486
3555
  onChange(({ children, ...template2 } = {}) => ({
3487
3556
  ...template2,
3488
- children: React7.Children.map(children, (child) => typeof child === "object" && child !== null && _21.matches({ uuid }, child) ? doc : child)
3557
+ children: React8.Children.map(children, (child) => typeof child === "object" && child !== null && _22.matches({ uuid }, child) ? doc : child)
3489
3558
  }));
3490
3559
  }
3491
3560
  },
@@ -3502,10 +3571,10 @@ ${JSON.stringify(
3502
3571
  setCopied
3503
3572
  };
3504
3573
  return /* @__PURE__ */ jsxs18(Fragment3, { children: [
3505
- /* @__PURE__ */ jsx27(EditorStickyBar, { ...toolbarProps }),
3506
- /* @__PURE__ */ jsx27("div", { className: src_components_lazy_index_editor_default.pageContainer, children: /* @__PURE__ */ jsxs18("div", { className: src_components_lazy_index_editor_default.screen, children: [
3507
- copied && /* @__PURE__ */ jsx27("div", { className: src_components_lazy_index_editor_default.alert, children: "JSON copi\xE9 dans le presse-papier" }),
3508
- isEditMode(mode) ? /* @__PURE__ */ jsx27(
3574
+ /* @__PURE__ */ jsx28(EditorStickyBar, { ...toolbarProps }),
3575
+ /* @__PURE__ */ jsx28("div", { className: src_components_lazy_index_editor_default.pageContainer, children: /* @__PURE__ */ jsxs18("div", { className: src_components_lazy_index_editor_default.screen, children: [
3576
+ copied && /* @__PURE__ */ jsx28("div", { className: src_components_lazy_index_editor_default.alert, children: "JSON copi\xE9 dans le presse-papier" }),
3577
+ isEditMode(mode) ? /* @__PURE__ */ jsx28(
3509
3578
  EditViewerMd_default,
3510
3579
  {
3511
3580
  ...props,
@@ -3517,8 +3586,8 @@ ${JSON.stringify(
3517
3586
  compactMode: isCompactMode,
3518
3587
  template
3519
3588
  }
3520
- ) : /* @__PURE__ */ jsx27(ViewerMd_default, { ...props, ref, mode, template, onChange }),
3521
- metadataEditor.path && /* @__PURE__ */ jsx27(
3589
+ ) : /* @__PURE__ */ jsx28(ViewerMd_default, { ...props, ref, mode, template, onChange }),
3590
+ metadataEditor.path && /* @__PURE__ */ jsx28(
3522
3591
  MetadataEditor_default,
3523
3592
  {
3524
3593
  doc: getDocumentByUuid(metadataEditor.path, template),
@@ -3529,7 +3598,7 @@ ${JSON.stringify(
3529
3598
  },
3530
3599
  `metadata_${metadataEditor.path}`
3531
3600
  ),
3532
- editEditor.path && /* @__PURE__ */ jsx27(
3601
+ editEditor.path && /* @__PURE__ */ jsx28(
3533
3602
  Editor2,
3534
3603
  {
3535
3604
  error: docLintErrors[editEditor.path],
@@ -3542,7 +3611,7 @@ ${JSON.stringify(
3542
3611
  `edit_${editEditor.path}`
3543
3612
  )
3544
3613
  ] }) }),
3545
- showWarningSnackbar && !!firstFoundErrorUuid && /* @__PURE__ */ jsx27(
3614
+ showWarningSnackbar && !!firstFoundErrorUuid && /* @__PURE__ */ jsx28(
3546
3615
  Snackbar,
3547
3616
  {
3548
3617
  open: true,
@@ -3563,19 +3632,19 @@ ${JSON.stringify(
3563
3632
  });
3564
3633
 
3565
3634
  // src/index.editor.tsx
3566
- import React8, { Suspense as Suspense2 } from "react";
3567
- import { jsx as jsx28 } from "react/jsx-runtime";
3568
- var LazyEditor2 = React8.lazy(() => Promise.resolve().then(() => (init_index_editor2(), index_editor_exports)));
3635
+ import React9, { Suspense as Suspense2 } from "react";
3636
+ import { jsx as jsx29 } from "react/jsx-runtime";
3637
+ var LazyEditor2 = React9.lazy(() => Promise.resolve().then(() => (init_index_editor2(), index_editor_exports)));
3569
3638
  var ViewerEditor = (props) => {
3570
- return /* @__PURE__ */ jsx28(Suspense2, { children: /* @__PURE__ */ jsx28(LazyEditor2, { ...props }) });
3639
+ return /* @__PURE__ */ jsx29(Suspense2, { children: /* @__PURE__ */ jsx29(LazyEditor2, { ...props }) });
3571
3640
  };
3572
3641
  var index_editor_default2 = ViewerEditor;
3573
3642
 
3574
3643
  // src/index.viewer.tsx
3575
3644
  init_ViewerMd2();
3576
- import { jsx as jsx29 } from "react/jsx-runtime";
3645
+ import { jsx as jsx30 } from "react/jsx-runtime";
3577
3646
  var Viewer = (props) => {
3578
- return /* @__PURE__ */ jsx29(ViewerMd_default, { ...props });
3647
+ return /* @__PURE__ */ jsx30(ViewerMd_default, { ...props });
3579
3648
  };
3580
3649
  var index_viewer_default = Viewer;
3581
3650
  export {