@useinsider/guido 1.0.0-beta.f57520c → 1.0.0-beta.f5fd3cf

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/README.md +39 -397
  2. package/dist/@types/generic.d.ts +0 -8
  3. package/dist/App.vue.d.ts +1 -1
  4. package/dist/components/Guido.vue.d.ts +3 -17
  5. package/dist/components/Guido.vue.js +7 -7
  6. package/dist/components/Guido.vue2.js +23 -63
  7. package/dist/components/organisms/header/LeftSlot.vue.d.ts +1 -1
  8. package/dist/components/organisms/header/LeftSlot.vue.js +9 -9
  9. package/dist/components/organisms/header/LeftSlot.vue2.js +6 -10
  10. package/dist/components/organisms/header/MiddleSlot.vue.js +7 -7
  11. package/dist/components/organisms/header/MiddleSlot.vue2.js +4 -6
  12. package/dist/components/organisms/header/RightSlot.vue.js +10 -7
  13. package/dist/components/organisms/header/RightSlot.vue2.js +17 -30
  14. package/dist/components/organisms/header/ViewOptions.vue.d.ts +1 -1
  15. package/dist/components/organisms/header/version-history/VersionHistory.vue.d.ts +1 -13
  16. package/dist/components/organisms/header/version-history/VersionHistory.vue.js +7 -7
  17. package/dist/components/organisms/header/version-history/VersionHistory.vue2.js +10 -13
  18. package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.d.ts +1 -1
  19. package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.js +1 -1
  20. package/dist/components/organisms/header/version-history/ViewOptions.vue.d.ts +1 -1
  21. package/dist/composables/useActionsApi.d.ts +0 -1
  22. package/dist/composables/useActionsApi.js +12 -14
  23. package/dist/composables/useCustomInterfaceAppearance.js +9 -45
  24. package/dist/composables/useExport.d.ts +1 -1
  25. package/dist/composables/useExport.js +20 -35
  26. package/dist/composables/useStripo.js +53 -54
  27. package/dist/composables/useTemplates.d.ts +5 -0
  28. package/dist/composables/useTemplates.js +27 -0
  29. package/dist/guido.css +1 -1
  30. package/dist/node_modules/pinia/dist/pinia.js +317 -0
  31. package/dist/node_modules/pinia/node_modules/vue-demi/lib/index.js +11 -0
  32. package/dist/static/editor.css.js +232 -0
  33. package/dist/static/templates/default/index.html.js +5 -0
  34. package/dist/static/templates/default/style.css.js +119 -0
  35. package/dist/stores/editor.d.ts +0 -2
  36. package/dist/stores/editor.js +4 -6
  37. package/dist/stores/version-history.js +1 -1
  38. package/package.json +5 -7
  39. package/dist/@types/save-as-template.d.ts +0 -11
  40. package/dist/_virtual/AddCustomFont.js +0 -4
  41. package/dist/_virtual/AiAssistantValueType.js +0 -4
  42. package/dist/_virtual/BackgroundColorBuiltInControl.js +0 -4
  43. package/dist/_virtual/BackgroundImageBuiltInControl.js +0 -4
  44. package/dist/_virtual/Block.js +0 -4
  45. package/dist/_virtual/BlockAttributes.js +0 -4
  46. package/dist/_virtual/BlockCompositionType.js +0 -4
  47. package/dist/_virtual/BlockPaddingsBuiltInControl.js +0 -4
  48. package/dist/_virtual/BlockRenderer.js +0 -4
  49. package/dist/_virtual/BlockType.js +0 -4
  50. package/dist/_virtual/BlocksPanel.js +0 -4
  51. package/dist/_virtual/BuiltInControl.js +0 -4
  52. package/dist/_virtual/BuiltInControlTypes.js +0 -4
  53. package/dist/_virtual/ButtonBorderBuiltInControl.js +0 -4
  54. package/dist/_virtual/ButtonColorBuiltInControl.js +0 -4
  55. package/dist/_virtual/ButtonFontColorBuiltInControl.js +0 -4
  56. package/dist/_virtual/ButtonInternalIndentsBuiltInControl.js +0 -4
  57. package/dist/_virtual/ButtonTextBuiltInControl.js +0 -4
  58. package/dist/_virtual/ContextAction.js +0 -4
  59. package/dist/_virtual/ContextActionType.js +0 -4
  60. package/dist/_virtual/Control.js +0 -4
  61. package/dist/_virtual/EditorStatePropertyType.js +0 -4
  62. package/dist/_virtual/Extension.js +0 -4
  63. package/dist/_virtual/ExtensionBuilder.js +0 -4
  64. package/dist/_virtual/FontFamilyBuiltInControl.js +0 -4
  65. package/dist/_virtual/LinkColorBuiltInControl.js +0 -4
  66. package/dist/_virtual/ModificationDescription.js +0 -4
  67. package/dist/_virtual/PanelPosition.js +0 -4
  68. package/dist/_virtual/PreviewDeviceMode.js +0 -4
  69. package/dist/_virtual/SettingsPanelRegistry.js +0 -4
  70. package/dist/_virtual/SettingsPanelTab.js +0 -4
  71. package/dist/_virtual/SettingsTab.js +0 -4
  72. package/dist/_virtual/StructureBorderBuiltInControl.js +0 -4
  73. package/dist/_virtual/StructurePaddingsBuiltInControl.js +0 -4
  74. package/dist/_virtual/TextColorBuiltInControl.js +0 -4
  75. package/dist/_virtual/TextLineSpacingBuiltInControl.js +0 -4
  76. package/dist/_virtual/TextSizeBuiltInControl.js +0 -4
  77. package/dist/_virtual/TextStyleBuiltInControl.js +0 -4
  78. package/dist/_virtual/UIElement.js +0 -4
  79. package/dist/_virtual/UIElementTagRegistry.js +0 -4
  80. package/dist/_virtual/UIElementType.js +0 -4
  81. package/dist/_virtual/UIElementsAttributes.js +0 -4
  82. package/dist/_virtual/index.js +0 -5
  83. package/dist/_virtual/index2.js +0 -4
  84. package/dist/components/organisms/header/version-history/RestoreButton.vue.d.ts +0 -2
  85. package/dist/components/organisms/header/version-history/RestoreButton.vue.js +0 -19
  86. package/dist/components/organisms/header/version-history/RestoreButton.vue2.js +0 -14
  87. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +0 -2
  88. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.js +0 -20
  89. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +0 -58
  90. package/dist/components/wrappers/WpDrawer.vue.d.ts +0 -63
  91. package/dist/components/wrappers/WpDrawer.vue.js +0 -25
  92. package/dist/components/wrappers/WpDrawer.vue2.js +0 -23
  93. package/dist/composables/useGuidoActions.d.ts +0 -46
  94. package/dist/composables/useGuidoActions.js +0 -37
  95. package/dist/composables/useHtmlCompiler.d.ts +0 -4
  96. package/dist/composables/useHtmlCompiler.js +0 -16
  97. package/dist/composables/useProvideInject.d.ts +0 -14
  98. package/dist/composables/useProvideInject.js +0 -17
  99. package/dist/composables/useValidation.d.ts +0 -30
  100. package/dist/composables/useValidation.js +0 -19
  101. package/dist/composables/validators/saveAsTemplate.d.ts +0 -26
  102. package/dist/composables/validators/saveAsTemplate.js +0 -21
  103. package/dist/config/compiler/htmlCompilerRules.d.ts +0 -2
  104. package/dist/config/compiler/htmlCompilerRules.js +0 -145
  105. package/dist/config/compiler/outlookCompilerRules.d.ts +0 -0
  106. package/dist/enums/displayConditions.d.ts +0 -2
  107. package/dist/enums/displayConditions.js +0 -80
  108. package/dist/extensions/DynamicContent/dynamic-content-modal.d.ts +0 -6
  109. package/dist/extensions/DynamicContent/dynamic-content-modal.js +0 -27
  110. package/dist/extensions/DynamicContent/dynamic-content.css.js +0 -24
  111. package/dist/extensions/DynamicContent/dynamic-content.d.ts +0 -16
  112. package/dist/extensions/DynamicContent/dynamic-content.js +0 -63
  113. package/dist/extensions/DynamicContent/extension.d.ts +0 -2
  114. package/dist/extensions/DynamicContent/extension.js +0 -11
  115. package/dist/mock/api/default-template.d.ts +0 -2
  116. package/dist/mock/api/template-library.d.ts +0 -2
  117. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +0 -51
  118. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +0 -52
  119. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +0 -41
  120. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +0 -18
  121. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +0 -32
  122. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +0 -18
  123. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +0 -8
  124. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +0 -13
  125. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +0 -34
  126. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +0 -13
  127. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +0 -13
  128. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +0 -104
  129. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +0 -13
  130. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +0 -13
  131. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +0 -13
  132. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +0 -13
  133. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +0 -13
  134. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +0 -13
  135. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +0 -45
  136. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +0 -43
  137. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +0 -46
  138. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +0 -44
  139. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +0 -22
  140. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +0 -46
  141. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +0 -46
  142. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +0 -45
  143. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +0 -45
  144. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +0 -45
  145. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +0 -20
  146. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +0 -43
  147. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +0 -45
  148. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +0 -18
  149. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +0 -32
  150. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +0 -46
  151. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +0 -44
  152. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +0 -43
  153. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +0 -43
  154. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +0 -45
  155. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +0 -43
  156. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +0 -266
  157. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +0 -26
  158. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +0 -22
  159. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +0 -18
  160. package/dist/node_modules/valibot/dist/index.js +0 -157
  161. package/dist/services/stripoApi.d.ts +0 -8
  162. package/dist/services/stripoApi.js +0 -49
  163. package/dist/static/styles/base.css.js +0 -11
  164. package/dist/static/styles/components/alert-message.css.js +0 -39
  165. package/dist/static/styles/components/amp-block.css.js +0 -18
  166. package/dist/static/styles/components/base-input.css.js +0 -47
  167. package/dist/static/styles/components/button-group.css.js +0 -54
  168. package/dist/static/styles/components/button.css.js +0 -106
  169. package/dist/static/styles/components/combobox.css.js +0 -49
  170. package/dist/static/styles/components/counter.css.js +0 -42
  171. package/dist/static/styles/components/dropdown-menu.css.js +0 -52
  172. package/dist/static/styles/components/narrow-panel.css.js +0 -38
  173. package/dist/static/styles/components/switcher.css.js +0 -11
  174. package/dist/static/styles/components/tabs.css.js +0 -97
  175. package/dist/static/styles/components/tools.css.js +0 -23
  176. package/dist/static/styles/components/version-history.css.js +0 -30
  177. package/dist/static/styles/components/wide-panel.css.js +0 -135
  178. package/dist/static/styles/variables.css.js +0 -23
  179. package/dist/stores/save-as-template.d.ts +0 -25
  180. package/dist/stores/save-as-template.js +0 -44
  181. package/dist/utils/htmlCompiler.d.ts +0 -12
  182. package/dist/utils/htmlCompiler.js +0 -70
@@ -1,38 +1,42 @@
1
- import { useActionsApi as g } from "./useActionsApi.js";
2
- import { useCustomInterfaceAppearance as f } from "./useCustomInterfaceAppearance.js";
3
- import { useToaster as S } from "./useToaster.js";
4
- import { displayConditions as C } from "../enums/displayConditions.js";
5
- import E from "../extensions/DynamicContent/extension.js";
6
- import { useStripoApi as y } from "../services/stripoApi.js";
7
- import { useEditorStore as h } from "../stores/editor.js";
8
- const A = (a) => {
9
- const { handleError: d } = S(), { getToken: c, getCustomFonts: u } = y(), l = (e, r = []) => {
10
- const i = h(), { html: t, css: s, forceRecreate: m } = e;
1
+ import { useCustomInterfaceAppearance as g } from "./useCustomInterfaceAppearance.js";
2
+ import { useHttp as y } from "./useHttp.js";
3
+ import { useToaster as h } from "./useToaster.js";
4
+ import { useEditorStore as w } from "../stores/editor.js";
5
+ const k = (c) => {
6
+ const { get: a, post: u } = y(), { handleError: i } = h(), l = async () => {
7
+ try {
8
+ return (await u("/v2/stripo/get-user-token", {
9
+ pluginId: void 0,
10
+ secretKey: void 0,
11
+ role: void 0,
12
+ userId: c.emailId
13
+ })).data.token;
14
+ } catch (t) {
15
+ return i(t, "Failed to fetch token"), "";
16
+ }
17
+ }, p = async () => {
18
+ try {
19
+ return ((await a("/stripo/get-partner-custom-fonts")).data || []).map((n) => ({
20
+ ...n,
21
+ active: !0
22
+ }));
23
+ } catch (t) {
24
+ return i(t, "Failed to fetch custom fonts"), [];
25
+ }
26
+ }, m = (t, r = []) => {
27
+ const n = w(), { html: e, css: s } = t;
11
28
  window.UIEditor.initEditor(
12
29
  document.querySelector("#guido-editor"),
13
30
  {
14
- metadata: a,
15
- html: t,
31
+ metadata: c,
32
+ html: e,
16
33
  css: s,
17
- forceRecreate: m,
18
34
  locale: "en",
19
35
  undoButtonSelector: "#guido__undo-button",
20
36
  redoButtonSelector: "#guido__redo-button",
21
37
  mobileViewButtonSelector: ".guido__view-option-selection-mobile",
22
38
  desktopViewButtonSelector: ".guido__view-option-selection-desktop",
23
39
  codeEditorButtonSelector: "#guido__code-button",
24
- customAppearanceMergetags: !0,
25
- customAppearanceMergetagsBorderColor: "#f1f3fe",
26
- customAppearanceMergetagsBackgroundColor: "#f1f3fe",
27
- customViewStyles: `
28
- .esd-x, .esd-merge-tag {color: #0a2ecc !important; box-shadow: none !important;}
29
- .esd-merge-tag {border: 1px solid #b5c1f1; border-radius: 4px !important;}
30
- `,
31
- conditionsEnabled: !0,
32
- customConditionsEnabled: !0,
33
- conditionCategories: C,
34
- enableXSSSecurity: !0,
35
- messageSettingsEnabled: !1,
36
40
  editorFonts: {
37
41
  showDefaultStandardFonts: !0,
38
42
  showDefaultNotStandardFonts: !0,
@@ -40,56 +44,51 @@ const A = (a) => {
40
44
  },
41
45
  async onTokenRefreshRequest(o) {
42
46
  try {
43
- const n = await c();
44
- o(n);
45
- } catch (n) {
46
- d(n, "Failed to refresh token");
47
+ const d = await l();
48
+ o(d);
49
+ } catch (d) {
50
+ i(d, "Failed to refresh token");
47
51
  }
48
52
  },
49
53
  onTemplateLoaded() {
50
54
  try {
51
- const { importCss: o } = f(), { activateCustomViewStyles: n } = g();
52
- o(), n();
55
+ const { importCss: o } = g();
56
+ o();
53
57
  } catch (o) {
54
- d(o, "Failed to load custom interface appearance");
58
+ i(o, "Failed to load custom interface appearance");
55
59
  }
56
60
  },
57
61
  onCodeEditorVisibilityChanged(o) {
58
- i.isCodeEditorOpen = o;
62
+ n.isCodeEditorOpen = o;
59
63
  },
60
64
  onEditorVisualModeChanged(o) {
61
- i.editorVisualMode = o.toLowerCase();
65
+ n.editorVisualMode = o.toLowerCase();
62
66
  },
63
67
  onVersionHistoryVisibilityChanged(o) {
64
- i.isVersionHistoryOpen = o;
65
- },
66
- onDataChanged() {
67
- i.hasChanges = !0;
68
- },
69
- ignoreClickOutsideSelectors: ["#guido-dynamic-content-modal"],
70
- extensions: [E]
68
+ n.isVersionHistoryOpen = o;
69
+ }
71
70
  }
72
71
  );
73
- }, p = (e) => new Promise((r, i) => {
72
+ }, f = (t) => new Promise((r, n) => {
74
73
  if (document.getElementById("UiEditorScript")) {
75
- e(), r();
74
+ t(), r();
76
75
  return;
77
76
  }
78
- const t = document.createElement("script");
79
- t.id = "UiEditorScript", t.type = "module", t.src = "https://plugins.stripo.email/resources/uieditor/latest/UIEditor.js", t.onload = () => {
80
- e(), r();
81
- }, t.onerror = () => {
77
+ const e = document.createElement("script");
78
+ e.id = "UiEditorScript", e.type = "module", e.src = "https://plugins.stripo.email/resources/uieditor/latest/UIEditor.js", e.onload = () => {
79
+ t(), r();
80
+ }, e.onerror = () => {
82
81
  const s = new Error("Failed to load Stripo UIEditor script");
83
- i(s);
84
- }, document.body.appendChild(t);
82
+ n(s);
83
+ }, document.body.appendChild(e);
85
84
  });
86
- return { initPlugin: async (e) => {
87
- await p(async () => {
88
- const r = await u();
89
- l(e, r);
85
+ return { initPlugin: async (t) => {
86
+ await f(async () => {
87
+ const r = await p();
88
+ m(t, r);
90
89
  });
91
90
  } };
92
91
  };
93
92
  export {
94
- A as useStripo
93
+ k as useStripo
95
94
  };
@@ -0,0 +1,5 @@
1
+ import type { Template } from '@@/Types/stripo';
2
+ export declare const useTemplates: () => {
3
+ getDefaultTemplate: () => Promise<Template>;
4
+ getTemplate: (templateName: string) => Promise<Template>;
5
+ };
@@ -0,0 +1,27 @@
1
+ const s = () => {
2
+ const t = async () => {
3
+ const [e, a] = await Promise.all([
4
+ // eslint-disable-next-line import/extensions
5
+ import("../static/templates/default/index.html.js"),
6
+ import("../static/templates/default/style.css.js")
7
+ ]);
8
+ return {
9
+ html: e.default,
10
+ css: a.default
11
+ };
12
+ };
13
+ return {
14
+ getDefaultTemplate: t,
15
+ getTemplate: async (e) => {
16
+ switch (e) {
17
+ case "default":
18
+ return t();
19
+ default:
20
+ return t();
21
+ }
22
+ }
23
+ };
24
+ };
25
+ export {
26
+ s as useTemplates
27
+ };
package/dist/guido.css CHANGED
@@ -1 +1 @@
1
- .version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}[data-v-6a2bde67] .guido__verion-history-view-option-selection-desktop svg,[data-v-6a2bde67] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6a2bde67] .in-segments-wrapper__button_selected,[data-v-6a2bde67] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-0fff376c] .guido__view-option-selection-desktop svg,[data-v-0fff376c] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-0fff376c] .in-segments-wrapper__button_selected,[data-v-0fff376c] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.guido-editor__wrapper[data-v-202b6818],.guido-editor__container[data-v-202b6818]{width:100%;height:calc(100vh - 75px)}
1
+ .version-history-item[data-v-0e2ff42d]{flex-basis:200px}.version-history-wrapper[data-v-187d41fa]{gap:8px}[data-v-6a2bde67] .guido__verion-history-view-option-selection-desktop svg,[data-v-6a2bde67] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6a2bde67] .in-segments-wrapper__button_selected,[data-v-6a2bde67] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-0fff376c] .guido__view-option-selection-desktop svg,[data-v-0fff376c] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-0fff376c] .in-segments-wrapper__button_selected,[data-v-0fff376c] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.header-right-slot[data-v-fefca98f]{gap:16px}.guido-editor__wrapper[data-v-d4a5c957],.guido-editor__container[data-v-d4a5c957]{width:100%;height:100vh}
@@ -0,0 +1,317 @@
1
+ import { hasInjectionContext as ut } from "../node_modules/vue-demi/lib/index.js";
2
+ import { inject as at, getCurrentInstance as it, set as O, ref as K, reactive as ft, markRaw as j, effectScope as _t, isRef as x, isReactive as J, toRef as T, del as A, nextTick as B, computed as tt, getCurrentScope as lt, onScopeDispose as Et, watch as pt, toRefs as Q } from "vue";
3
+ /*!
4
+ * pinia v2.3.1
5
+ * (c) 2025 Eduardo San Martin Morote
6
+ * @license MIT
7
+ */
8
+ let R;
9
+ const L = (t) => R = t, dt = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
10
+ /* istanbul ignore next */
11
+ Symbol()
12
+ );
13
+ function V(t) {
14
+ return t && typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]" && typeof t.toJSON != "function";
15
+ }
16
+ var w;
17
+ (function(t) {
18
+ t.direct = "direct", t.patchObject = "patch object", t.patchFunction = "patch function";
19
+ })(w || (w = {}));
20
+ const C = typeof window < "u";
21
+ function et(t, u) {
22
+ for (const r in u) {
23
+ const o = u[r];
24
+ if (!(r in t))
25
+ continue;
26
+ const c = t[r];
27
+ V(c) && V(o) && !x(o) && !J(o) ? t[r] = et(c, o) : O(t, r, o);
28
+ }
29
+ return t;
30
+ }
31
+ const ot = () => {
32
+ };
33
+ function X(t, u, r, o = ot) {
34
+ t.push(u);
35
+ const c = () => {
36
+ const f = t.indexOf(u);
37
+ f > -1 && (t.splice(f, 1), o());
38
+ };
39
+ return !r && lt() && Et(c), c;
40
+ }
41
+ function g(t, ...u) {
42
+ t.slice().forEach((r) => {
43
+ r(...u);
44
+ });
45
+ }
46
+ const ht = (t) => t(), Y = Symbol(), W = Symbol();
47
+ function H(t, u) {
48
+ t instanceof Map && u instanceof Map ? u.forEach((r, o) => t.set(o, r)) : t instanceof Set && u instanceof Set && u.forEach(t.add, t);
49
+ for (const r in u) {
50
+ if (!u.hasOwnProperty(r))
51
+ continue;
52
+ const o = u[r], c = t[r];
53
+ V(c) && V(o) && t.hasOwnProperty(r) && !x(o) && !J(o) ? t[r] = H(c, o) : t[r] = o;
54
+ }
55
+ return t;
56
+ }
57
+ const Nt = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
58
+ /* istanbul ignore next */
59
+ Symbol()
60
+ );
61
+ function vt(t) {
62
+ return !V(t) || !t.hasOwnProperty(Nt);
63
+ }
64
+ const { assign: y } = Object;
65
+ function Z(t) {
66
+ return !!(x(t) && t.effect);
67
+ }
68
+ function G(t, u, r, o) {
69
+ const { state: c, actions: f, getters: E } = u, i = r.state.value[t];
70
+ let b;
71
+ function N() {
72
+ !i && (process.env.NODE_ENV === "production" || !o) && O(r.state.value, t, c ? c() : {});
73
+ const p = process.env.NODE_ENV !== "production" && o ? (
74
+ // use ref() to unwrap refs inside state TODO: check if this is still necessary
75
+ Q(K(c ? c() : {}).value)
76
+ ) : Q(r.state.value[t]);
77
+ return y(p, f, Object.keys(E || {}).reduce((_, l) => (process.env.NODE_ENV !== "production" && l in p && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${l}" in store "${t}".`), _[l] = j(tt(() => {
78
+ L(r);
79
+ const v = r._s.get(t);
80
+ if (v._r)
81
+ return E[l].call(v, v);
82
+ })), _), {}));
83
+ }
84
+ return b = M(t, N, u, r, o, !0), b;
85
+ }
86
+ function M(t, u, r = {}, o, c, f) {
87
+ let E;
88
+ const i = y({ actions: {} }, r);
89
+ if (process.env.NODE_ENV !== "production" && !o._e.active)
90
+ throw new Error("Pinia destroyed");
91
+ const b = { deep: !0 };
92
+ process.env.NODE_ENV;
93
+ let N, p, _ = [], l = [], v;
94
+ const D = o.state.value[t];
95
+ !f && !D && (process.env.NODE_ENV === "production" || !c) && O(o.state.value, t, {});
96
+ const $ = K({});
97
+ let q;
98
+ function z(s) {
99
+ let e;
100
+ N = p = !1, process.env.NODE_ENV !== "production" && (v = []), typeof s == "function" ? (s(o.state.value[t]), e = {
101
+ type: w.patchFunction,
102
+ storeId: t,
103
+ events: v
104
+ }) : (H(o.state.value[t], s), e = {
105
+ type: w.patchObject,
106
+ payload: s,
107
+ storeId: t,
108
+ events: v
109
+ });
110
+ const a = q = Symbol();
111
+ B().then(() => {
112
+ q === a && (N = !0);
113
+ }), p = !0, g(_, e, o.state.value[t]);
114
+ }
115
+ const st = f ? function() {
116
+ const { state: e } = r, a = e ? e() : {};
117
+ this.$patch((d) => {
118
+ y(d, a);
119
+ });
120
+ } : (
121
+ /* istanbul ignore next */
122
+ process.env.NODE_ENV !== "production" ? () => {
123
+ throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`);
124
+ } : ot
125
+ );
126
+ function nt() {
127
+ E.stop(), _ = [], l = [], o._s.delete(t);
128
+ }
129
+ const k = (s, e = "") => {
130
+ if (Y in s)
131
+ return s[W] = e, s;
132
+ const a = function() {
133
+ L(o);
134
+ const d = Array.from(arguments), P = [], F = [];
135
+ function rt(h) {
136
+ P.push(h);
137
+ }
138
+ function ct(h) {
139
+ F.push(h);
140
+ }
141
+ g(l, {
142
+ args: d,
143
+ name: a[W],
144
+ store: n,
145
+ after: rt,
146
+ onError: ct
147
+ });
148
+ let S;
149
+ try {
150
+ S = s.apply(this && this.$id === t ? this : n, d);
151
+ } catch (h) {
152
+ throw g(F, h), h;
153
+ }
154
+ return S instanceof Promise ? S.then((h) => (g(P, h), h)).catch((h) => (g(F, h), Promise.reject(h))) : (g(P, S), S);
155
+ };
156
+ return a[Y] = !0, a[W] = e, a;
157
+ }, I = /* @__PURE__ */ j({
158
+ actions: {},
159
+ getters: {},
160
+ state: [],
161
+ hotState: $
162
+ }), U = {
163
+ _p: o,
164
+ // _s: scope,
165
+ $id: t,
166
+ $onAction: X.bind(null, l),
167
+ $patch: z,
168
+ $reset: st,
169
+ $subscribe(s, e = {}) {
170
+ const a = X(_, s, e.detached, () => d()), d = E.run(() => pt(() => o.state.value[t], (P) => {
171
+ (e.flush === "sync" ? p : N) && s({
172
+ storeId: t,
173
+ type: w.direct,
174
+ events: v
175
+ }, P);
176
+ }, y({}, b, e)));
177
+ return a;
178
+ },
179
+ $dispose: nt
180
+ };
181
+ U._r = !1;
182
+ const n = ft(process.env.NODE_ENV !== "production" || (process.env.NODE_ENV !== "production" || typeof __VUE_PROD_DEVTOOLS__ < "u" && __VUE_PROD_DEVTOOLS__) && process.env.NODE_ENV !== "test" && C ? y(
183
+ {
184
+ _hmrPayload: I,
185
+ _customProperties: j(/* @__PURE__ */ new Set())
186
+ // devtools custom properties
187
+ },
188
+ U
189
+ // must be added later
190
+ // setupStore
191
+ ) : U);
192
+ o._s.set(t, n);
193
+ const m = (o._a && o._a.runWithContext || ht)(() => o._e.run(() => (E = _t()).run(() => u({ action: k }))));
194
+ for (const s in m) {
195
+ const e = m[s];
196
+ if (x(e) && !Z(e) || J(e))
197
+ process.env.NODE_ENV !== "production" && c ? O($.value, s, T(m, s)) : f || (D && vt(e) && (x(e) ? e.value = D[s] : H(e, D[s])), O(o.state.value[t], s, e)), process.env.NODE_ENV !== "production" && I.state.push(s);
198
+ else if (typeof e == "function") {
199
+ const a = process.env.NODE_ENV !== "production" && c ? e : k(e, s);
200
+ O(m, s, a), process.env.NODE_ENV !== "production" && (I.actions[s] = e), i.actions[s] = e;
201
+ } else process.env.NODE_ENV !== "production" && Z(e) && (I.getters[s] = f ? (
202
+ // @ts-expect-error
203
+ r.getters[s]
204
+ ) : e, C && (m._getters || // @ts-expect-error: same
205
+ (m._getters = j([]))).push(s));
206
+ }
207
+ if (Object.keys(m).forEach((s) => {
208
+ O(n, s, m[s]);
209
+ }), Object.defineProperty(n, "$state", {
210
+ get: () => process.env.NODE_ENV !== "production" && c ? $.value : o.state.value[t],
211
+ set: (s) => {
212
+ if (process.env.NODE_ENV !== "production" && c)
213
+ throw new Error("cannot set hotState");
214
+ z((e) => {
215
+ y(e, s);
216
+ });
217
+ }
218
+ }), process.env.NODE_ENV !== "production" && (n._hotUpdate = j((s) => {
219
+ n._hotUpdating = !0, s._hmrPayload.state.forEach((e) => {
220
+ if (e in n.$state) {
221
+ const a = s.$state[e], d = n.$state[e];
222
+ typeof a == "object" && V(a) && V(d) ? et(a, d) : s.$state[e] = d;
223
+ }
224
+ O(n, e, T(s.$state, e));
225
+ }), Object.keys(n.$state).forEach((e) => {
226
+ e in s.$state || A(n, e);
227
+ }), N = !1, p = !1, o.state.value[t] = T(s._hmrPayload, "hotState"), p = !0, B().then(() => {
228
+ N = !0;
229
+ });
230
+ for (const e in s._hmrPayload.actions) {
231
+ const a = s[e];
232
+ O(n, e, k(a, e));
233
+ }
234
+ for (const e in s._hmrPayload.getters) {
235
+ const a = s._hmrPayload.getters[e], d = f ? (
236
+ // special handling of options api
237
+ tt(() => (L(o), a.call(n, n)))
238
+ ) : a;
239
+ O(n, e, d);
240
+ }
241
+ Object.keys(n._hmrPayload.getters).forEach((e) => {
242
+ e in s._hmrPayload.getters || A(n, e);
243
+ }), Object.keys(n._hmrPayload.actions).forEach((e) => {
244
+ e in s._hmrPayload.actions || A(n, e);
245
+ }), n._hmrPayload = s._hmrPayload, n._getters = s._getters, n._hotUpdating = !1;
246
+ })), (process.env.NODE_ENV !== "production" || typeof __VUE_PROD_DEVTOOLS__ < "u" && __VUE_PROD_DEVTOOLS__) && process.env.NODE_ENV !== "test" && C) {
247
+ const s = {
248
+ writable: !0,
249
+ configurable: !0,
250
+ // avoid warning on devtools trying to display this property
251
+ enumerable: !1
252
+ };
253
+ ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((e) => {
254
+ Object.defineProperty(n, e, y({ value: n[e] }, s));
255
+ });
256
+ }
257
+ return n._r = !0, o._p.forEach((s) => {
258
+ if ((process.env.NODE_ENV !== "production" || typeof __VUE_PROD_DEVTOOLS__ < "u" && __VUE_PROD_DEVTOOLS__) && process.env.NODE_ENV !== "test" && C) {
259
+ const e = E.run(() => s({
260
+ store: n,
261
+ app: o._a,
262
+ pinia: o,
263
+ options: i
264
+ }));
265
+ Object.keys(e || {}).forEach((a) => n._customProperties.add(a)), y(n, e);
266
+ } else
267
+ y(n, E.run(() => s({
268
+ store: n,
269
+ app: o._a,
270
+ pinia: o,
271
+ options: i
272
+ })));
273
+ }), process.env.NODE_ENV !== "production" && n.$state && typeof n.$state == "object" && typeof n.$state.constructor == "function" && !n.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
274
+ state: () => new MyClass()
275
+ Found in store "${n.$id}".`), D && f && r.hydrate && r.hydrate(n.$state, D), N = !0, p = !0, n;
276
+ }
277
+ /*! #__NO_SIDE_EFFECTS__ */
278
+ // @__NO_SIDE_EFFECTS__
279
+ function mt(t, u, r) {
280
+ let o, c;
281
+ const f = typeof u == "function";
282
+ if (typeof t == "string")
283
+ o = t, c = f ? r : u;
284
+ else if (c = t, o = t.id, process.env.NODE_ENV !== "production" && typeof o != "string")
285
+ throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');
286
+ function E(i, b) {
287
+ const N = ut();
288
+ if (i = // in test mode, ignore the argument provided as we can always retrieve a
289
+ // pinia instance with getActivePinia()
290
+ (process.env.NODE_ENV === "test" && R && R._testing ? null : i) || (N ? at(dt, null) : null), i && L(i), process.env.NODE_ENV !== "production" && !R)
291
+ throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
292
+ See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
293
+ This will fail in production.`);
294
+ i = R, i._s.has(o) || (f ? M(o, u, c, i) : G(o, c, i), process.env.NODE_ENV !== "production" && (E._pinia = i));
295
+ const p = i._s.get(o);
296
+ if (process.env.NODE_ENV !== "production" && b) {
297
+ const _ = "__hot:" + o, l = f ? M(_, u, c, i, !0) : G(_, y({}, c), i, !0);
298
+ b._hotUpdate(l), delete i.state.value[_], i._s.delete(_);
299
+ }
300
+ if (process.env.NODE_ENV !== "production" && C) {
301
+ const _ = it();
302
+ if (_ && _.proxy && // avoid adding stores that are just built for hot module replacement
303
+ !b) {
304
+ const l = _.proxy, v = "_pStores" in l ? l._pStores : l._pStores = {};
305
+ v[o] = p;
306
+ }
307
+ }
308
+ return p;
309
+ }
310
+ return E.$id = o, E;
311
+ }
312
+ export {
313
+ w as MutationType,
314
+ mt as defineStore,
315
+ L as setActivePinia,
316
+ vt as shouldHydrate
317
+ };
@@ -0,0 +1,11 @@
1
+ import t, { getCurrentInstance as e } from "vue";
2
+ export * from "vue";
3
+ import { default as f } from "vue";
4
+ t.util.warn;
5
+ function n() {
6
+ return !!e();
7
+ }
8
+ export {
9
+ f as Vue,
10
+ n as hasInjectionContext
11
+ };