@useinsider/guido 1.0.0-beta.c99b3ab → 1.0.0-beta.cd820fb

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 (84) hide show
  1. package/dist/@types/generic.d.ts +9 -0
  2. package/dist/components/Guido.vue.d.ts +5 -2
  3. package/dist/components/Guido.vue.js +8 -8
  4. package/dist/components/Guido.vue2.js +50 -35
  5. package/dist/components/organisms/email-preview/PreviewContainer.vue.js +19 -0
  6. package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +19 -0
  7. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +4 -0
  8. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +22 -0
  9. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +30 -0
  10. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.d.ts +2 -0
  11. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +19 -0
  12. package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +29 -0
  13. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +2 -0
  14. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +22 -0
  15. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +31 -0
  16. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +2 -0
  17. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +17 -0
  18. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +20 -0
  19. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +2 -0
  20. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +18 -0
  21. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue2.js +25 -0
  22. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +4 -0
  23. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +19 -0
  24. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +23 -0
  25. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +4 -0
  26. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +20 -0
  27. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +21 -0
  28. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +2 -0
  29. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +17 -0
  30. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +22 -0
  31. package/dist/components/organisms/header/MiddleSlot.vue.js +9 -9
  32. package/dist/components/organisms/header/MiddleSlot.vue2.js +17 -14
  33. package/dist/components/organisms/header/RightSlot.vue.js +5 -5
  34. package/dist/components/organisms/header/RightSlot.vue2.js +19 -20
  35. package/dist/components/organisms/header/ViewOptions.vue.js +8 -8
  36. package/dist/components/organisms/header/ViewOptions.vue2.js +10 -8
  37. package/dist/components/wrappers/{WpDrawer.vue.d.ts → WpModal.vue.d.ts} +29 -27
  38. package/dist/components/wrappers/WpModal.vue.js +27 -0
  39. package/dist/components/wrappers/WpModal.vue2.js +22 -0
  40. package/dist/composables/useActionsApi.d.ts +2 -0
  41. package/dist/composables/useActionsApi.js +62 -36
  42. package/dist/composables/useCodeEditorApi.d.ts +4 -0
  43. package/dist/composables/useCodeEditorApi.js +11 -0
  44. package/dist/composables/useConfig.d.ts +4 -0
  45. package/dist/composables/useConfig.js +7 -0
  46. package/dist/composables/useDebounce.d.ts +4 -0
  47. package/dist/composables/useDebounce.js +12 -0
  48. package/dist/composables/usePreviewMode.d.ts +5 -0
  49. package/dist/composables/usePreviewMode.js +31 -0
  50. package/dist/composables/useResponsivePreview.d.ts +5 -0
  51. package/dist/composables/useResponsivePreview.js +86 -0
  52. package/dist/composables/useStripo.js +20 -18
  53. package/dist/enums/defaults.js +9 -5
  54. package/dist/enums/preview.d.ts +13 -0
  55. package/dist/enums/preview.js +23 -0
  56. package/dist/extensions/DynamicContent/dynamic-content.js +13 -15
  57. package/dist/guido.css +1 -1
  58. package/dist/static/assets/inbox-mockup.svg.js +4 -0
  59. package/dist/static/assets/phone-mockup.svg.js +4 -0
  60. package/dist/stores/dynamic-content.d.ts +27 -0
  61. package/dist/stores/dynamic-content.js +23 -0
  62. package/dist/stores/editor.d.ts +0 -2
  63. package/dist/stores/editor.js +3 -5
  64. package/dist/stores/preview.d.ts +64 -0
  65. package/dist/stores/preview.js +49 -0
  66. package/dist/utils/arrayUtil.d.ts +1 -0
  67. package/dist/utils/arrayUtil.js +10 -0
  68. package/dist/utils/genericUtil.d.ts +2 -0
  69. package/dist/utils/genericUtil.js +7 -0
  70. package/package.json +1 -2
  71. package/dist/@types/save-as-template.d.ts +0 -11
  72. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.js +0 -20
  73. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +0 -58
  74. package/dist/components/wrappers/WpDrawer.vue.js +0 -25
  75. package/dist/components/wrappers/WpDrawer.vue2.js +0 -23
  76. package/dist/composables/useValidation.d.ts +0 -30
  77. package/dist/composables/useValidation.js +0 -19
  78. package/dist/composables/validators/saveAsTemplate.d.ts +0 -26
  79. package/dist/composables/validators/saveAsTemplate.js +0 -21
  80. package/dist/mock/api/template-library.d.ts +0 -2
  81. package/dist/node_modules/valibot/dist/index.js +0 -157
  82. package/dist/stores/save-as-template.d.ts +0 -25
  83. package/dist/stores/save-as-template.js +0 -44
  84. /package/dist/components/organisms/{save-as-template/SaveAsTemplateDrawer.vue.d.ts → email-preview/PreviewContainer.vue.d.ts} +0 -0
@@ -1,58 +0,0 @@
1
- import { defineComponent as N, ref as i, computed as _, toRef as h } from "vue";
2
- import A from "../../wrappers/WpDrawer.vue.js";
3
- import { useTranslations as C } from "../../../composables/useTranslations.js";
4
- import { useTemplateNameValidator as b } from "../../../composables/validators/saveAsTemplate.js";
5
- import { useEditorStore as w } from "../../../stores/editor.js";
6
- import { useSaveAsTemplateStore as O } from "../../../stores/save-as-template.js";
7
- import { InMultiSelect as B, InBasicTextInput as x } from "@useinsider/design-system-vue";
8
- const z = /* @__PURE__ */ N({
9
- __name: "SaveAsTemplateDrawer",
10
- setup(D) {
11
- const s = C(), o = w(), t = O(), a = i(!1), l = i(!1), p = _(() => ({
12
- primaryButton: {
13
- styling: "solid",
14
- type: "primary",
15
- labelText: s(a.value ? "newsletter.saving" : "products.save"),
16
- loadingStatus: a.value,
17
- disabledStatus: t.skeletonStatus
18
- },
19
- cancelOrBackButton: {
20
- styling: "ghost",
21
- type: "secondary",
22
- labelText: s("products.cancel"),
23
- disabledStatus: a.value
24
- }
25
- })), r = i(""), c = b(h(t, "templateName")), n = () => {
26
- const e = c.validate();
27
- return r.value = e.errorMessage, e.success;
28
- }, u = () => {
29
- o.isSaveAsTemplateDrawerOpen = !1;
30
- }, d = (e) => {
31
- t.templateName = e, r.value && n();
32
- }, f = async (e) => {
33
- l.value = !0, await t.createCategory(e), l.value = !1;
34
- }, v = (e) => {
35
- t.selectedCategories = [...e];
36
- }, g = (e) => {
37
- e && (t.selectedCategories = [...e]);
38
- }, S = () => {
39
- t.selectedCategories = [];
40
- }, T = () => {
41
- if (a.value = !0, !n()) {
42
- a.value = !1;
43
- return;
44
- }
45
- setTimeout(() => {
46
- console.debug("💾 Saved", t.getTemplateName), a.value = !1;
47
- }, 3e3);
48
- }, m = async () => {
49
- t.$reset(), await t.fetchCategories(), t.skeletonStatus = !1;
50
- };
51
- return o.$subscribe((e, { isSaveAsTemplateDrawerOpen: y }) => {
52
- y && m();
53
- }), { __sfc: !0, trans: s, editorStore: o, saveAsTemplateStore: t, isSaving: a, isAddingOption: l, footerButtonGroupOptions: p, templateNameError: r, nameValidator: c, validateTemplateName: n, closeModal: u, handleTemplateName: d, handleAddOption: f, handleCategoryChange: v, handleSelectAllOptions: g, handleResetAllOptions: S, saveTemplate: T, initializeDrawer: m, WpDrawer: A, InBasicTextInput: x, InMultiSelect: B };
54
- }
55
- });
56
- export {
57
- z as default
58
- };
@@ -1,25 +0,0 @@
1
- import r from "./WpDrawer.vue2.js";
2
- import s from "../../_virtual/_plugin-vue2_normalizer.js";
3
- var i = function() {
4
- var t = this, n = t._self._c, e = t._self._setupProxy;
5
- return n(e.InDrawer, { class: t.className, attrs: { id: t.id, "footer-status": "", "close-on-outside-click": t.closeOnOutsideClick, "description-status": t.descriptionStatus, "description-text": t.descriptionText, "footer-button-group-options": t.footerButtonGroupOptions, size: t.size, status: t.status, "title-text": t.titleText }, on: { cancelOrBackButtonEvent: function(o) {
6
- return e.emit("cancelOrBackButtonEvent");
7
- }, onCloseEvent: function(o) {
8
- return e.emit("onCloseEvent");
9
- }, primaryButtonEvent: function(o) {
10
- return e.emit("primaryButtonEvent");
11
- } }, scopedSlots: t._u([{ key: "contentSlot", fn: function() {
12
- return [n("div", [t._t("default")], 2)];
13
- }, proxy: !0 }], null, !0) });
14
- }, u = [], c = /* @__PURE__ */ s(
15
- r,
16
- i,
17
- u,
18
- !1,
19
- null,
20
- null
21
- );
22
- const f = c.exports;
23
- export {
24
- f as default
25
- };
@@ -1,23 +0,0 @@
1
- import { defineComponent as e } from "vue";
2
- import { InDrawer as o } from "@useinsider/design-system-vue";
3
- const r = /* @__PURE__ */ e({
4
- __name: "WpDrawer",
5
- props: {
6
- id: null,
7
- className: { default: "" },
8
- size: { default: "small" },
9
- closeOnOutsideClick: { type: Boolean, default: !0 },
10
- descriptionStatus: { type: Boolean, default: !1 },
11
- descriptionText: { default: "" },
12
- footerButtonGroupOptions: null,
13
- status: { type: Boolean },
14
- titleText: null
15
- },
16
- emits: ["cancelOrBackButtonEvent", "onCloseEvent", "primaryButtonEvent"],
17
- setup(n, { emit: t }) {
18
- return { __sfc: !0, emit: t, InDrawer: o };
19
- }
20
- });
21
- export {
22
- r as default
23
- };
@@ -1,30 +0,0 @@
1
- import { type BaseIssue, type BaseSchema } from 'valibot';
2
- import { type Ref } from 'vue';
3
- type Base = BaseSchema<unknown, unknown, BaseIssue<unknown>>;
4
- type MaybeRefOrGetter<T> = T | Ref<T> | (() => T);
5
- export declare function useValidation<const Schema extends Base = Base>(input: MaybeRefOrGetter<unknown>, schema: Schema): {
6
- schema: Schema;
7
- validate: () => {
8
- error: import("valibot").InferIssue<Schema> | undefined;
9
- errorMessage: string;
10
- typed: true;
11
- success: true;
12
- output: import("valibot").InferOutput<Schema>;
13
- issues: undefined;
14
- } | {
15
- error: import("valibot").InferIssue<Schema> | undefined;
16
- errorMessage: string;
17
- typed: true;
18
- success: false;
19
- output: import("valibot").InferOutput<Schema>;
20
- issues: [import("valibot").InferIssue<Schema>, ...import("valibot").InferIssue<Schema>[]];
21
- } | {
22
- error: import("valibot").InferIssue<Schema> | undefined;
23
- errorMessage: string;
24
- typed: false;
25
- success: false;
26
- output: unknown;
27
- issues: [import("valibot").InferIssue<Schema>, ...import("valibot").InferIssue<Schema>[]];
28
- };
29
- };
30
- export {};
@@ -1,19 +0,0 @@
1
- import { safeParse as i } from "../node_modules/valibot/dist/index.js";
2
- import { unref as u } from "vue";
3
- function l(a, e) {
4
- return {
5
- schema: e,
6
- validate: () => {
7
- var s, t, o;
8
- const r = i(e, u(a), { abortPipeEarly: !0 });
9
- return {
10
- ...r,
11
- error: (s = r.issues) == null ? void 0 : s[0],
12
- errorMessage: ((o = (t = r.issues) == null ? void 0 : t[0]) == null ? void 0 : o.message) || ""
13
- };
14
- }
15
- };
16
- }
17
- export {
18
- l as useValidation
19
- };
@@ -1,26 +0,0 @@
1
- import type { Ref } from 'vue';
2
- export declare const useTemplateNameValidator: (name: Ref<string>) => {
3
- schema: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, string>, import("valibot").MaxLengthAction<string, 255, string>]>;
4
- validate: () => {
5
- error: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255> | undefined;
6
- errorMessage: string;
7
- typed: true;
8
- success: true;
9
- output: string;
10
- issues: undefined;
11
- } | {
12
- error: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255> | undefined;
13
- errorMessage: string;
14
- typed: true;
15
- success: false;
16
- output: string;
17
- issues: [import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255>, ...(import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255>)[]];
18
- } | {
19
- error: import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255> | undefined;
20
- errorMessage: string;
21
- typed: false;
22
- success: false;
23
- output: unknown;
24
- issues: [import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255>, ...(import("valibot").StringIssue | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, 255>)[]];
25
- };
26
- };
@@ -1,21 +0,0 @@
1
- import { pipe as r, maxLength as i, nonEmpty as n, string as o } from "../../node_modules/valibot/dist/index.js";
2
- import { useTranslations as s } from "../useTranslations.js";
3
- import { useValidation as m } from "../useValidation.js";
4
- const u = (e) => {
5
- const t = s(), a = 255;
6
- return m(e, r(
7
- o(),
8
- n(t("whatsapp-business.template-name-required")),
9
- i(
10
- a,
11
- t("validations.enter-up-to-x-characters", {
12
- article: "a",
13
- field: t("products.template-name"),
14
- max: a
15
- })
16
- )
17
- ));
18
- };
19
- export {
20
- u as useTemplateNameValidator
21
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import("msw").HttpHandler[];
2
- export default _default;
@@ -1,157 +0,0 @@
1
- var a;
2
- // @__NO_SIDE_EFFECTS__
3
- function f(e) {
4
- return {
5
- lang: (e == null ? void 0 : e.lang) ?? (a == null ? void 0 : a.lang),
6
- message: e == null ? void 0 : e.message,
7
- abortEarly: (e == null ? void 0 : e.abortEarly) ?? (a == null ? void 0 : a.abortEarly),
8
- abortPipeEarly: (e == null ? void 0 : e.abortPipeEarly) ?? (a == null ? void 0 : a.abortPipeEarly)
9
- };
10
- }
11
- var p;
12
- // @__NO_SIDE_EFFECTS__
13
- function E(e) {
14
- return p == null ? void 0 : p.get(e);
15
- }
16
- var y;
17
- // @__NO_SIDE_EFFECTS__
18
- function k(e) {
19
- return y == null ? void 0 : y.get(e);
20
- }
21
- var m;
22
- // @__NO_SIDE_EFFECTS__
23
- function P(e, n) {
24
- var s;
25
- return (s = m == null ? void 0 : m.get(e)) == null ? void 0 : s.get(n);
26
- }
27
- // @__NO_SIDE_EFFECTS__
28
- function $(e) {
29
- var s, r;
30
- const n = typeof e;
31
- return n === "string" ? `"${e}"` : n === "number" || n === "bigint" || n === "boolean" ? `${e}` : n === "object" || n === "function" ? (e && ((r = (s = Object.getPrototypeOf(e)) == null ? void 0 : s.constructor) == null ? void 0 : r.name)) ?? "null" : n;
32
- }
33
- function c(e, n, s, r, u) {
34
- const g = u && "input" in u ? u.input : s.value, t = (u == null ? void 0 : u.expected) ?? e.expects ?? null, v = (u == null ? void 0 : u.received) ?? /* @__PURE__ */ $(g), i = {
35
- kind: e.kind,
36
- type: e.type,
37
- input: g,
38
- expected: t,
39
- received: v,
40
- message: `Invalid ${n}: ${t ? `Expected ${t} but r` : "R"}eceived ${v}`,
41
- requirement: e.requirement,
42
- path: u == null ? void 0 : u.path,
43
- issues: u == null ? void 0 : u.issues,
44
- lang: r.lang,
45
- abortEarly: r.abortEarly,
46
- abortPipeEarly: r.abortPipeEarly
47
- }, b = e.kind === "schema", l = (u == null ? void 0 : u.message) ?? e.message ?? /* @__PURE__ */ P(e.reference, i.lang) ?? (b ? /* @__PURE__ */ k(i.lang) : null) ?? r.message ?? /* @__PURE__ */ E(i.lang);
48
- l !== void 0 && (i.message = typeof l == "function" ? (
49
- // @ts-expect-error
50
- l(i)
51
- ) : l), b && (s.typed = !1), s.issues ? s.issues.push(i) : s.issues = [i];
52
- }
53
- // @__NO_SIDE_EFFECTS__
54
- function d(e) {
55
- return {
56
- version: 1,
57
- vendor: "valibot",
58
- validate(n) {
59
- return e["~run"]({ value: n }, /* @__PURE__ */ f());
60
- }
61
- };
62
- }
63
- // @__NO_SIDE_EFFECTS__
64
- function _(e, n) {
65
- return {
66
- kind: "validation",
67
- type: "max_length",
68
- reference: _,
69
- async: !1,
70
- expects: `<=${e}`,
71
- requirement: e,
72
- message: n,
73
- "~run"(s, r) {
74
- return s.typed && s.value.length > this.requirement && c(this, "length", s, r, {
75
- received: `${s.value.length}`
76
- }), s;
77
- }
78
- };
79
- }
80
- // @__NO_SIDE_EFFECTS__
81
- function x(e) {
82
- return {
83
- kind: "validation",
84
- type: "non_empty",
85
- reference: x,
86
- async: !1,
87
- expects: "!0",
88
- message: e,
89
- "~run"(n, s) {
90
- return n.typed && n.value.length === 0 && c(this, "length", n, s, {
91
- received: "0"
92
- }), n;
93
- }
94
- };
95
- }
96
- // @__NO_SIDE_EFFECTS__
97
- function S(e) {
98
- return {
99
- kind: "schema",
100
- type: "string",
101
- reference: S,
102
- expects: "string",
103
- async: !1,
104
- message: e,
105
- get "~standard"() {
106
- return /* @__PURE__ */ d(this);
107
- },
108
- "~run"(n, s) {
109
- return typeof n.value == "string" ? n.typed = !0 : c(this, "type", n, s), n;
110
- }
111
- };
112
- }
113
- // @__NO_SIDE_EFFECTS__
114
- function M(...e) {
115
- return {
116
- ...e[0],
117
- pipe: e,
118
- get "~standard"() {
119
- return /* @__PURE__ */ d(this);
120
- },
121
- "~run"(n, s) {
122
- for (const r of e)
123
- if (r.kind !== "metadata") {
124
- if (n.issues && (r.kind === "schema" || r.kind === "transformation")) {
125
- n.typed = !1;
126
- break;
127
- }
128
- (!n.issues || !s.abortEarly && !s.abortPipeEarly) && (n = r["~run"](n, s));
129
- }
130
- return n;
131
- }
132
- };
133
- }
134
- // @__NO_SIDE_EFFECTS__
135
- function j(e, n, s) {
136
- const r = e["~run"]({ value: n }, /* @__PURE__ */ f(s));
137
- return {
138
- typed: r.typed,
139
- success: !r.issues,
140
- output: r.value,
141
- issues: r.issues
142
- };
143
- }
144
- export {
145
- c as _addIssue,
146
- d as _getStandardProps,
147
- $ as _stringify,
148
- f as getGlobalConfig,
149
- E as getGlobalMessage,
150
- k as getSchemaMessage,
151
- P as getSpecificMessage,
152
- _ as maxLength,
153
- x as nonEmpty,
154
- M as pipe,
155
- j as safeParse,
156
- S as string
157
- };
@@ -1,25 +0,0 @@
1
- import type { MappedCategory } from '@@/Types/save-as-template';
2
- interface StoreState {
3
- templateName: string;
4
- categories: MappedCategory[];
5
- selectedCategories: MappedCategory[];
6
- skeletonStatus: boolean;
7
- }
8
- export declare const useSaveAsTemplateStore: import("pinia").StoreDefinition<"saveAsTemplate", StoreState, {
9
- getTemplateName: (state: {
10
- templateName: string;
11
- categories: {
12
- value: string;
13
- text: string;
14
- }[];
15
- selectedCategories: {
16
- value: string;
17
- text: string;
18
- }[];
19
- skeletonStatus: boolean;
20
- } & import("pinia").PiniaCustomStateProperties<StoreState>) => string;
21
- }, {
22
- fetchCategories(): Promise<void>;
23
- createCategory(category: string): Promise<void>;
24
- }>;
25
- export {};
@@ -1,44 +0,0 @@
1
- import { useHttp as s } from "../composables/useHttp.js";
2
- import { useToaster as o } from "../composables/useToaster.js";
3
- import { defineStore as i } from "pinia";
4
- const c = () => ({
5
- templateName: "",
6
- categories: [],
7
- selectedCategories: [],
8
- skeletonStatus: !0
9
- }), { get: l, post: m } = s(), { handleError: r } = o(), d = i("saveAsTemplate", {
10
- state: () => c(),
11
- getters: {
12
- getTemplateName: (e) => e.templateName.trim()
13
- },
14
- actions: {
15
- async fetchCategories() {
16
- try {
17
- const { data: e = [] } = await l("/newsletter/template-library/get-template-categories");
18
- this.categories = e.map((t) => ({
19
- value: t.id.toString(),
20
- text: t.name
21
- }));
22
- } catch (e) {
23
- r(e, "Failed to fetch template categories");
24
- }
25
- },
26
- async createCategory(e) {
27
- try {
28
- const { data: { id: t } } = await m(
29
- "/newsletter/template-library/create-category",
30
- { category: e }
31
- ), a = {
32
- value: t.toString(),
33
- text: e
34
- };
35
- this.categories.push(a), this.selectedCategories.push(a);
36
- } catch (t) {
37
- r(t, "Failed to create category");
38
- }
39
- }
40
- }
41
- });
42
- export {
43
- d as useSaveAsTemplateStore
44
- };