@plitzi/sdk-elements 0.36.1 → 0.37.0

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 (53) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/dist/Element/ElementParentContext.d.ts +13 -0
  3. package/dist/Element/ElementParentContext.mjs +6 -0
  4. package/dist/Element/LayoutBody.d.ts +21 -0
  5. package/dist/Element/LayoutBody.mjs +24 -0
  6. package/dist/Element/hocs/withElement.mjs +104 -87
  7. package/dist/Element/hooks/useElementDataSource.mjs +1 -1
  8. package/dist/Element/hooks/useElementInternal.mjs +24 -24
  9. package/dist/Element/hooks/useInternalItems.mjs +42 -39
  10. package/dist/Element/hooks/useLayoutChain.d.ts +10 -0
  11. package/dist/Element/hooks/useLayoutChain.mjs +20 -0
  12. package/dist/Element/hooks/useRootElementInteractions.mjs +45 -44
  13. package/dist/dataSource/GlobalSources.mjs +60 -59
  14. package/dist/dataSource/pathFields.d.ts +7 -0
  15. package/dist/dataSource/pathFields.mjs +8 -0
  16. package/dist/elements/advanced/Custom/declaration.d.ts +7 -9
  17. package/dist/elements/advanced/Custom/index.d.ts +1 -7
  18. package/dist/elements/advanced/Reference/Reference.mjs +93 -89
  19. package/dist/elements/advanced/Reference/declaration.d.ts +1 -1
  20. package/dist/elements/advanced/Reference/index.d.ts +1 -1
  21. package/dist/elements/basic/Button/Button.d.ts +9 -1
  22. package/dist/elements/basic/Button/Button.mjs +19 -20
  23. package/dist/elements/basic/Button/Settings.d.ts +2 -1
  24. package/dist/elements/basic/Button/Settings.mjs +13 -6
  25. package/dist/elements/basic/Button/declaration.d.ts +1 -0
  26. package/dist/elements/basic/Button/index.d.ts +1 -0
  27. package/dist/elements/declarations/index.d.ts +6 -9
  28. package/dist/elements/form/FormControl/declaration.d.ts +2 -0
  29. package/dist/elements/internal/LayoutContainer/LayoutContainer.d.ts +6 -0
  30. package/dist/elements/internal/LayoutContainer/LayoutContainer.mjs +31 -23
  31. package/dist/elements/internal/LayoutContainer/Settings.d.ts +4 -1
  32. package/dist/elements/internal/LayoutContainer/Settings.mjs +78 -64
  33. package/dist/elements/internal/LayoutContainer/declaration.d.ts +2 -0
  34. package/dist/elements/internal/LayoutContainer/index.d.ts +2 -0
  35. package/dist/elements/internal/LayoutPicker/LayoutPicker.d.ts +10 -0
  36. package/dist/elements/internal/LayoutPicker/LayoutPicker.mjs +35 -0
  37. package/dist/elements/internal/LayoutPicker/index.d.ts +3 -0
  38. package/dist/elements/internal/LayoutPicker/index.mjs +5 -0
  39. package/dist/elements/internal/Page/Page.mjs +49 -48
  40. package/dist/elements/internal/Page/Settings.mjs +101 -119
  41. package/dist/elements/provider/ApiContainer/ApiContainer.mjs +58 -66
  42. package/dist/elements/provider/ApiContainer/declaration.mjs +1 -1
  43. package/dist/elements/provider/ApiContainer/hooks/useApi.d.ts +8 -0
  44. package/dist/elements/provider/ApiContainer/hooks/useApi.mjs +52 -48
  45. package/dist/elements/structure/Container/Container.d.ts +1 -1
  46. package/dist/elements/structure/Container/Settings.d.ts +1 -1
  47. package/dist/elements/structure/Container/Settings.mjs +4 -0
  48. package/dist/elements/structure/Container/declaration.d.ts +1 -1
  49. package/dist/elements/structure/Container/index.d.ts +1 -1
  50. package/dist/elements/structure/DialogContainer/DialogContainer.mjs +17 -25
  51. package/dist/elements/structure/ModalContainer/ModalContainer.mjs +15 -23
  52. package/dist/index.d.ts +6 -9
  53. package/package.json +38 -10
@@ -1,31 +1,36 @@
1
- import e from "../../../Element/hocs/withElement.mjs";
2
- import t from "../../../Element/hooks/useElement.mjs";
3
- import { RootElement as n } from "../../../Element/RootElement.mjs";
4
- import r from "../LayoutContainer/index.mjs";
5
- import { use as i, useEffect as a, useMemo as o } from "react";
6
- import s from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
7
- import { useSdkStore as c } from "@plitzi/sdk-shared/store";
8
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
9
- import d from "clsx";
10
- import { Helmet as f } from "@dr.pogodin/react-helmet";
1
+ import e from "../../../Element/LayoutBody.mjs";
2
+ import t from "../../../Element/hocs/withElement.mjs";
3
+ import n from "../../../Element/hooks/useElement.mjs";
4
+ import { RootElement as r } from "../../../Element/RootElement.mjs";
5
+ import i from "../LayoutContainer/index.mjs";
6
+ import a from "../../../Element/hooks/useLayoutChain.mjs";
7
+ import { use as o, useEffect as s, useMemo as c } from "react";
8
+ import l from "@plitzi/sdk-shared/hooks/usePlitziServiceContext";
9
+ import { useSdkStore as u } from "@plitzi/sdk-shared/store";
10
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
11
+ import p from "clsx";
12
+ import { Helmet as m } from "@dr.pogodin/react-helmet";
11
13
  //#region src/elements/internal/Page/Page.tsx
12
- var p = ({ ref: e, seoEnabled: p = !1, seoPageTitle: m = "Title", seoPageDescription: h = "Description", className: g = "", layout: _ = "", layoutContainer: v = "", children: y }) => {
13
- let { id: b } = t(), { settings: { previewMode: x }, contexts: { InteractionsContext: S } } = s(), { interactionsManager: C } = i(S), [[w, T]] = c(["navigation.routeParams", "navigation.queryParams"]), E = o(() => ({
14
- id: _,
15
- rootId: b,
16
- plitziElementLayout: {
17
- bodyChildren: y,
18
- containerId: v || _,
19
- referenceId: b,
20
- rootId: v || _,
21
- type: "layout"
22
- }
23
- }), [
24
- v,
25
- _,
26
- b,
27
- y
28
- ]), D = o(() => ({ onPageLoad: {
14
+ var h = (e) => e.map((e) => ({
15
+ ...e,
16
+ plitziElementLayout: {
17
+ containerId: e.slot,
18
+ rootId: e.slot,
19
+ type: "layout"
20
+ }
21
+ })), g = (t, n, r) => t.reduce((t, { layout: r, slot: a, plitziElementLayout: o }) => /* @__PURE__ */ d(e, {
22
+ body: t,
23
+ children: /* @__PURE__ */ d(i, { internalProps: {
24
+ id: r,
25
+ rootId: n,
26
+ plitziElementLayout: o
27
+ } })
28
+ }, a), r), _ = ({ ref: e, seoEnabled: t = !1, seoPageTitle: i = "Title", seoPageDescription: _ = "Description", className: v = "", layout: y = "", layoutContainer: b = "", children: x }) => {
29
+ let { id: S } = n(), { settings: { previewMode: C }, contexts: { InteractionsContext: w } } = l(), { interactionsManager: T } = o(w), [[E, D]] = u(["navigation.routeParams", "navigation.queryParams"]), O = a(y, b), k = c(() => h(O), [O]), A = c(() => g(k, S, x), [
30
+ k,
31
+ S,
32
+ x
33
+ ]), j = c(() => ({ onPageLoad: {
29
34
  action: "onPageLoad",
30
35
  title: "On Page Load",
31
36
  type: "trigger",
@@ -36,35 +41,31 @@ var p = ({ ref: e, seoEnabled: p = !1, seoPageTitle: m = "Title", seoPageDescrip
36
41
  queryParams: ""
37
42
  }
38
43
  } }), []);
39
- return a(() => {
44
+ return s(() => {
40
45
  let e = !1;
41
46
  return queueMicrotask(() => {
42
- e || C.interactionTrigger(b, "onPageLoad", {
43
- pageId: b,
44
- routeParams: w,
45
- queryParams: T
47
+ e || T.interactionTrigger(S, "onPageLoad", {
48
+ pageId: S,
49
+ routeParams: E,
50
+ queryParams: D
46
51
  });
47
52
  }), () => {
48
53
  e = !0;
49
54
  };
50
55
  }, [
51
- b,
52
- C,
56
+ S,
53
57
  T,
54
- w
55
- ]), /* @__PURE__ */ u(n, {
58
+ D,
59
+ E
60
+ ]), /* @__PURE__ */ f(r, {
56
61
  ref: e,
57
- className: d("plitzi-component__page", g),
58
- interactionTriggers: D,
59
- children: [
60
- p && x && /* @__PURE__ */ u(f, { children: [!!m && /* @__PURE__ */ l("title", { children: m }), !!h && /* @__PURE__ */ l("meta", {
61
- name: "description",
62
- content: h
63
- })] }),
64
- _ && /* @__PURE__ */ l(r, { internalProps: E }, v || _),
65
- !_ && y
66
- ]
62
+ className: p("plitzi-component__page", v),
63
+ interactionTriggers: j,
64
+ children: [t && C && /* @__PURE__ */ f(m, { children: [!!i && /* @__PURE__ */ d("title", { children: i }), !!_ && /* @__PURE__ */ d("meta", {
65
+ name: "description",
66
+ content: _
67
+ })] }), A]
67
68
  });
68
- }, m = e(p);
69
+ }, v = t(_);
69
70
  //#endregion
70
- export { p as Page, m as default };
71
+ export { _ as Page, v as default };
@@ -1,228 +1,210 @@
1
- import { useCallback as e, useMemo as t } from "react";
2
- import { useCommonStore as n } from "@plitzi/sdk-shared/store";
3
- import { get as r, pick as i } from "@plitzi/plitzi-ui/helpers";
4
- import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
5
- import { getPageFullPath as c } from "@plitzi/sdk-navigation/NavigationHelper";
6
- import l from "@plitzi/plitzi-ui/Alert";
7
- import u from "@plitzi/plitzi-ui/Checkbox";
8
- import d from "@plitzi/plitzi-ui/Input";
9
- import f from "@plitzi/plitzi-ui/TextArea";
10
- import p from "@plitzi/plitzi-ui/Select";
11
- import m from "@plitzi/plitzi-ui/Select2";
1
+ import e from "../LayoutPicker/index.mjs";
2
+ import { useCallback as t, useMemo as n } from "react";
3
+ import { useCommonStore as r } from "@plitzi/sdk-shared/store";
4
+ import { get as i, pick as a } from "@plitzi/plitzi-ui/helpers";
5
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
6
+ import { getPageFullPath as l } from "@plitzi/sdk-navigation/NavigationHelper";
7
+ import u from "@plitzi/plitzi-ui/Alert";
8
+ import d from "@plitzi/plitzi-ui/Checkbox";
9
+ import f from "@plitzi/plitzi-ui/Input";
10
+ import p from "@plitzi/plitzi-ui/TextArea";
11
+ import m from "@plitzi/plitzi-ui/Select";
12
+ import h from "@plitzi/plitzi-ui/Select2";
12
13
  //#region src/elements/internal/Page/Settings.tsx
13
- var h = ({ id: h = "", seoEnabled: g = !1, enabled: _ = !0, name: v = "", folder: y = "", seoPageTitle: b = "Title", seoPageDescription: x = "Description", slug: S = "", layout: C = "", layoutContainer: w = "", accessLevel: T = "", unauthorizedBehaviour: E = "", unauthorizedPageRedirect: D = "", onUpdate: O }) => {
14
- let [[k, A, j]] = n([
14
+ var g = ({ id: g = "", seoEnabled: _ = !1, enabled: v = !0, name: y = "", folder: b = "", seoPageTitle: x = "Title", seoPageDescription: S = "Description", slug: C = "", layout: w = "", layoutContainer: T = "", accessLevel: E = "", unauthorizedBehaviour: D = "", unauthorizedPageRedirect: O = "", onUpdate: k }) => {
15
+ let [[A, j, M]] = r([
15
16
  "schema.flat",
16
17
  "schema.pages",
17
18
  "schema.pageFolders"
18
- ]), M = t(() => Object.values(k).filter((e) => r(e, "definition.type", "") === "layoutContainer"), [k]), N = t(() => C ? Object.values(k).filter((e) => r(e, "definition.type", "") === "container" && r(e, "definition.rootId", "") === C) : [], [k, C]), P = t(() => Object.values(i(k, A.filter((e) => e !== h))), [
19
- k,
20
- h,
21
- A
22
- ]), F = e((e) => (t) => O?.(e, t), [O]), I = e((e) => {
23
- O?.("name", e);
24
- let t = v.replaceAll(" ", "-").toLowerCase().replaceAll(/([^a-z0-9]+)/gi, "");
25
- (!S || S === t) && O?.("slug", e.replaceAll(" ", "-").toLowerCase().replaceAll(/([^a-z0-9-]+)/gi, ""));
19
+ ]), N = n(() => Object.values(a(A, j.filter((e) => e !== g))), [
20
+ A,
21
+ g,
22
+ j
23
+ ]), P = t((e) => (t) => k?.(e, t), [k]), F = t((e) => {
24
+ k?.("name", e);
25
+ let t = y.replaceAll(" ", "-").toLowerCase().replaceAll(/([^a-z0-9]+)/gi, "");
26
+ (!C || C === t) && k?.("slug", e.replaceAll(" ", "-").toLowerCase().replaceAll(/([^a-z0-9-]+)/gi, ""));
26
27
  }, [
27
- O,
28
- S,
29
- v
30
- ]), L = e((e) => {
28
+ k,
29
+ C,
30
+ y
31
+ ]), I = t((e) => {
31
32
  if (/^[a-zA-Z0-9:*/_-]+$/gim.test(e) || !e) {
32
33
  let t = e.replaceAll("//", "/");
33
- O?.("slug", t);
34
+ k?.("slug", t);
34
35
  }
35
- }, [O]), R = e((e) => {
36
- O?.("layout", e), O?.("layoutContainer", "");
37
- }, [O]), z = e((e) => {
38
- O?.("accessLevel", e), O?.("unauthorizedBehaviour", ""), O?.("unauthorizedPageRedirect", "");
39
- }, [O]), B = e((e) => O?.("seoEnabled", e.target.checked), [O]), V = e((e) => O?.("enabled", e.target.checked), [O]), H = e((e) => O?.("folder", e?.value ?? ""), [O]), U = t(() => [{
36
+ }, [k]), L = t((e) => {
37
+ k?.("accessLevel", e), k?.("unauthorizedBehaviour", ""), k?.("unauthorizedPageRedirect", "");
38
+ }, [k]), R = t((e) => k?.("seoEnabled", e.target.checked), [k]), z = t((e) => k?.("enabled", e.target.checked), [k]), B = t((e) => k?.("folder", e?.value ?? ""), [k]), V = n(() => [{
40
39
  value: "",
41
40
  label: "None"
42
- }, ...j.map(({ id: e, name: t }) => ({
41
+ }, ...M.map(({ id: e, name: t }) => ({
43
42
  value: e,
44
43
  label: t
45
- }))], [j]), W = t(() => c(k, j, h, !0), [
46
- k,
47
- j,
48
- h
44
+ }))], [M]), H = n(() => l(A, M, g, !0), [
45
+ A,
46
+ M,
47
+ g
49
48
  ]);
50
- return /* @__PURE__ */ s("div", {
49
+ return /* @__PURE__ */ c("div", {
51
50
  className: "flex flex-col gap-4 py-2",
52
51
  children: [
53
- !_ && /* @__PURE__ */ o(l, {
52
+ !v && /* @__PURE__ */ s(u, {
54
53
  intent: "info",
55
54
  size: "xs",
56
55
  solid: !1,
57
- children: /* @__PURE__ */ o("span", {
56
+ children: /* @__PURE__ */ s("span", {
58
57
  className: "text-xs",
59
58
  children: "When this option is disable, this page wont be accesible"
60
59
  })
61
60
  }),
62
- /* @__PURE__ */ o(u, {
61
+ /* @__PURE__ */ s(d, {
63
62
  label: " Page Enabled",
64
- checked: _,
65
- onChange: V,
63
+ checked: v,
64
+ onChange: z,
66
65
  size: "xs"
67
66
  }),
68
- /* @__PURE__ */ o(d, {
69
- value: v,
67
+ /* @__PURE__ */ s(f, {
68
+ value: y,
70
69
  label: "Page Name",
71
- onChange: I,
70
+ onChange: F,
72
71
  size: "xs"
73
72
  }),
74
- /* @__PURE__ */ o(l, {
73
+ /* @__PURE__ */ s(u, {
75
74
  intent: "info",
76
75
  size: "xs",
77
76
  solid: !1,
78
- children: /* @__PURE__ */ o("span", {
77
+ children: /* @__PURE__ */ s("span", {
79
78
  className: "text-xs",
80
79
  children: "Slug is a combination of letters, numbers and _ - : / *"
81
80
  })
82
81
  }),
83
- /* @__PURE__ */ s("div", {
82
+ /* @__PURE__ */ c("div", {
84
83
  className: "flex flex-col",
85
- children: [/* @__PURE__ */ o(d, {
86
- value: S,
87
- onChange: L,
84
+ children: [/* @__PURE__ */ s(f, {
85
+ value: C,
86
+ onChange: I,
88
87
  label: "Slug / Path",
89
88
  className: { inputContainer: "rounded-none rounded-tl rounded-tr" },
90
89
  size: "xs"
91
- }), /* @__PURE__ */ s("div", {
90
+ }), /* @__PURE__ */ c("div", {
92
91
  className: "truncate rounded-b border-x border-b border-gray-200 px-1 py-0.5 text-xs",
93
- title: W,
94
- children: ["Full Path: ", /* @__PURE__ */ o("span", {
92
+ title: H,
93
+ children: ["Full Path: ", /* @__PURE__ */ s("span", {
95
94
  className: "font-bold",
96
- children: W
95
+ children: H
97
96
  })]
98
97
  })]
99
98
  }),
100
- /* @__PURE__ */ o(m, {
99
+ /* @__PURE__ */ s(h, {
101
100
  label: "Folder",
102
- value: y,
103
- options: U,
101
+ value: b,
102
+ options: V,
104
103
  placeholder: "None",
105
- onChange: H,
104
+ onChange: B,
106
105
  size: "xs"
107
106
  }),
108
- /* @__PURE__ */ o(p, {
109
- value: C,
110
- placeholder: "None",
111
- label: "Layout",
112
- onChange: R,
113
- size: "xs",
114
- children: M.map(({ id: e, definition: { label: t } }) => /* @__PURE__ */ o("option", {
115
- value: e,
116
- children: t
117
- }, e))
118
- }),
119
- C && /* @__PURE__ */ o(p, {
120
- value: w,
121
- placeholder: "None",
122
- label: "Layout Container Body",
123
- onChange: F("layoutContainer"),
124
- size: "xs",
125
- children: N.map(({ id: e, definition: { label: t } }) => /* @__PURE__ */ o("option", {
126
- value: e,
127
- children: t
128
- }, e))
107
+ /* @__PURE__ */ s(e, {
108
+ layout: w,
109
+ layoutContainer: T,
110
+ onUpdate: k
129
111
  }),
130
- /* @__PURE__ */ s(p, {
131
- value: T,
112
+ /* @__PURE__ */ c(m, {
113
+ value: E,
132
114
  label: "Restrict Access",
133
- onChange: z,
115
+ onChange: L,
134
116
  placeholder: "None",
135
117
  size: "xs",
136
- children: [/* @__PURE__ */ o("option", {
118
+ children: [/* @__PURE__ */ s("option", {
137
119
  value: "public",
138
120
  children: "Public"
139
- }), /* @__PURE__ */ o("option", {
121
+ }), /* @__PURE__ */ s("option", {
140
122
  value: "authenticated",
141
123
  children: "Authenticated"
142
124
  })]
143
125
  }),
144
- T === "" && /* @__PURE__ */ o(l, {
126
+ E === "" && /* @__PURE__ */ s(u, {
145
127
  intent: "info",
146
128
  solid: !1,
147
129
  size: "xs",
148
- children: /* @__PURE__ */ o("span", {
130
+ children: /* @__PURE__ */ s("span", {
149
131
  className: "text-xs",
150
132
  children: "Anyone on the internet can access this page"
151
133
  })
152
134
  }),
153
- T === "public" && /* @__PURE__ */ o(l, {
135
+ E === "public" && /* @__PURE__ */ s(u, {
154
136
  intent: "info",
155
137
  solid: !1,
156
138
  size: "xs",
157
- children: /* @__PURE__ */ o("span", {
139
+ children: /* @__PURE__ */ s("span", {
158
140
  className: "text-xs",
159
141
  children: "Only Guest can access this page"
160
142
  })
161
143
  }),
162
- T !== "" && /* @__PURE__ */ o(p, {
144
+ E !== "" && /* @__PURE__ */ s(m, {
163
145
  label: "Unauthorized Behaviour",
164
- value: E,
165
- onChange: F("unauthorizedBehaviour"),
146
+ value: D,
147
+ onChange: P("unauthorizedBehaviour"),
166
148
  placeholder: "None",
167
149
  size: "xs",
168
- children: /* @__PURE__ */ o("option", {
150
+ children: /* @__PURE__ */ s("option", {
169
151
  value: "redirect",
170
152
  children: "Redirect"
171
153
  })
172
154
  }),
173
- E === "redirect" && /* @__PURE__ */ o(p, {
174
- value: D,
155
+ D === "redirect" && /* @__PURE__ */ s(m, {
156
+ value: O,
175
157
  label: "Redirect Page",
176
- onChange: F("unauthorizedPageRedirect"),
158
+ onChange: P("unauthorizedPageRedirect"),
177
159
  placeholder: "None",
178
160
  size: "xs",
179
- children: P.map((e) => /* @__PURE__ */ o("option", {
161
+ children: N.map((e) => /* @__PURE__ */ s("option", {
180
162
  value: e.id,
181
- children: r(e, "attributes.name")
163
+ children: i(e, "attributes.name")
182
164
  }, e.id))
183
165
  }),
184
- /* @__PURE__ */ o(u, {
166
+ /* @__PURE__ */ s(d, {
185
167
  label: " SEO Enabled",
186
- checked: g,
187
- onChange: B,
168
+ checked: _,
169
+ onChange: R,
188
170
  size: "xs"
189
171
  }),
190
- g && /* @__PURE__ */ s(a, { children: [
191
- /* @__PURE__ */ o(d, {
192
- value: b,
172
+ _ && /* @__PURE__ */ c(o, { children: [
173
+ /* @__PURE__ */ s(f, {
174
+ value: x,
193
175
  label: "SEO Title",
194
- onChange: F("seoPageTitle"),
176
+ onChange: P("seoPageTitle"),
195
177
  size: "xs"
196
178
  }),
197
- /* @__PURE__ */ o(f, {
179
+ /* @__PURE__ */ s(p, {
198
180
  label: "SEO Description",
199
- value: x,
200
- onChange: F("seoPageDescription"),
181
+ value: S,
182
+ onChange: P("seoPageDescription"),
201
183
  rows: 3,
202
184
  size: "xs"
203
185
  }),
204
- /* @__PURE__ */ s("div", {
186
+ /* @__PURE__ */ c("div", {
205
187
  className: "flex flex-col",
206
188
  children: [
207
- /* @__PURE__ */ o("p", {
189
+ /* @__PURE__ */ s("p", {
208
190
  className: "mb-4 text-xs",
209
191
  children: "Specify this page's title and description. You can see how they'll look in search engine results pages (SERPs) in the preview below."
210
192
  }),
211
- /* @__PURE__ */ o("label", { children: "Search Result Preview" }),
212
- /* @__PURE__ */ s("div", {
193
+ /* @__PURE__ */ s("label", { children: "Search Result Preview" }),
194
+ /* @__PURE__ */ c("div", {
213
195
  className: "rounded border border-gray-300 px-2 py-1",
214
196
  children: [
215
- /* @__PURE__ */ o("div", {
197
+ /* @__PURE__ */ s("div", {
216
198
  className: "mb-1 pt-1 text-xl text-[#1a0dab]",
217
- children: /* @__PURE__ */ o("label", { children: b })
199
+ children: /* @__PURE__ */ s("label", { children: x })
218
200
  }),
219
- /* @__PURE__ */ o("div", {
201
+ /* @__PURE__ */ s("div", {
220
202
  className: "text-sm text-[#006621]",
221
- children: /* @__PURE__ */ o("span", { children: "www.url.com" })
203
+ children: /* @__PURE__ */ s("span", { children: "www.url.com" })
222
204
  }),
223
- /* @__PURE__ */ o("div", {
205
+ /* @__PURE__ */ s("div", {
224
206
  className: "settings-seo__description mb-1 pt-1 text-sm",
225
- children: `${x.slice(0, 160)}...`
207
+ children: `${S.slice(0, 160)}...`
226
208
  })
227
209
  ]
228
210
  })
@@ -233,4 +215,4 @@ var h = ({ id: h = "", seoEnabled: g = !1, enabled: _ = !0, name: v = "", folder
233
215
  });
234
216
  };
235
217
  //#endregion
236
- export { h as default };
218
+ export { g as default };