@burdenoff/microfe-product 2026.715.1 → 2026.720.1

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 (28) hide show
  1. package/dist/product/pages/ContentPageViewPage.js +42 -43
  2. package/dist/product/pages/ContentPageViewPage.js.map +1 -1
  3. package/dist/product/pages/ProductViewPage.js +88 -87
  4. package/dist/product/pages/ProductViewPage.js.map +1 -1
  5. package/dist/product-management/modules/content-pages/components/ContentPageForm.js +341 -473
  6. package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
  7. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +8 -10
  8. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
  9. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +250 -252
  10. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -1
  11. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +72 -72
  12. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
  13. package/dist/product-management/modules/products/components/ProductForm.js +490 -492
  14. package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
  15. package/dist/product-management/modules/products/pages/ProductDetailPage.js +130 -129
  16. package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
  17. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +195 -203
  18. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
  19. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +88 -87
  20. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
  21. package/dist/shared/components/MarkdownEditor.js +161 -0
  22. package/dist/shared/components/MarkdownEditor.js.map +1 -0
  23. package/dist/shared/components/index.js +1 -0
  24. package/package.json +2 -2
  25. package/dist/node_modules/dompurify/dist/purify.es.js +0 -555
  26. package/dist/node_modules/dompurify/dist/purify.es.js.map +0 -1
  27. package/dist/shared/utils/renderMarkdown.js +0 -8
  28. package/dist/shared/utils/renderMarkdown.js.map +0 -1
@@ -1,989 +1,987 @@
1
1
  import { useTr as e } from "../../../shared/hooks/useTr.js";
2
2
  import { ProductStatus as t } from "../types/index.js";
3
- import { TagInput as n } from "../../../shared/components/input/TagInput.js";
4
- import { ZodError as r } from "../../../../node_modules/zod/v4/classic/errors.js";
5
- import { createProductSchema as i, updateProductSchema as a } from "../schemas/index.js";
6
- import { useState as o } from "react";
7
- import { ChevronDown as s, ChevronRight as c, Loader2 as l, Plus as u, Shield as d, X as f } from "lucide-react";
8
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
3
+ import { MarkdownEditor as n } from "../../../../shared/components/MarkdownEditor.js";
4
+ import { TagInput as r } from "../../../shared/components/input/TagInput.js";
5
+ import { ZodError as i } from "../../../../node_modules/zod/v4/classic/errors.js";
6
+ import { createProductSchema as a, updateProductSchema as o } from "../schemas/index.js";
7
+ import { useState as s } from "react";
8
+ import { ChevronDown as c, ChevronRight as l, Loader2 as u, Plus as d, Shield as f, X as p } from "lucide-react";
9
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
9
10
  //#region src/product-management/modules/products/components/ProductForm.tsx
10
- var h = 0, g = (e) => `${e}-${++h}`;
11
- function _(e) {
11
+ var g = 0, _ = (e) => `${e}-${++g}`;
12
+ function v(e) {
12
13
  if (e?.socialLinks && typeof e.socialLinks == "object") {
13
14
  let t = Object.entries(e.socialLinks);
14
15
  if (t.length > 0) return t.map(([e, t]) => ({
15
- id: g("social"),
16
+ id: _("social"),
16
17
  platform: e,
17
18
  url: t
18
19
  }));
19
20
  }
20
21
  return [];
21
22
  }
22
- function v(e) {
23
+ function y(e) {
23
24
  if (e?.resourceLinks && typeof e.resourceLinks == "object") {
24
25
  let t = Object.entries(e.resourceLinks);
25
26
  if (t.length > 0) return t.map(([e, t]) => ({
26
- id: g("resource"),
27
+ id: _("resource"),
27
28
  resource: e,
28
29
  url: t
29
30
  }));
30
31
  }
31
32
  return [];
32
33
  }
33
- function y({ product: h, onSubmit: y, onCancel: b, loading: x }) {
34
- let S = e(), [C, w] = o({
35
- name: h?.name || "",
36
- slug: h?.slug || "",
37
- description: h?.description || "",
38
- status: h?.status || t.ACTIVE,
39
- logoUrl: h?.logoUrl || "",
40
- website: h?.website || "",
41
- appUrl: h?.appUrl || "",
42
- docsUrl: h?.docsUrl || "",
43
- githubUrl: h?.githubUrl || "",
44
- statusPageUrl: h?.statusPageUrl || "",
45
- contactEmail: h?.contactEmail || "",
46
- supportEmail: h?.supportEmail || "",
47
- contactPhone: h?.contactPhone || "",
48
- contactAddress: h?.contactAddress || "",
49
- seoTitle: h?.seoTitle || "",
50
- seoDescription: h?.seoDescription || "",
51
- seoKeywords: h?.seoKeywords || "",
52
- ogImage: h?.ogImage || "",
53
- appStoreUrl: h?.appStoreUrl || "",
54
- playStoreUrl: h?.playStoreUrl || ""
55
- }), [T, E] = o(() => _(h)), [D, O] = o(() => v(h)), [k, A] = o(h?.tags ?? []), [j, M] = o({}), [N, P] = o({
34
+ function b({ product: g, onSubmit: b, onCancel: x, loading: S }) {
35
+ let C = e(), [w, T] = s({
36
+ name: g?.name || "",
37
+ slug: g?.slug || "",
38
+ description: g?.description || "",
39
+ status: g?.status || t.ACTIVE,
40
+ logoUrl: g?.logoUrl || "",
41
+ website: g?.website || "",
42
+ appUrl: g?.appUrl || "",
43
+ docsUrl: g?.docsUrl || "",
44
+ githubUrl: g?.githubUrl || "",
45
+ statusPageUrl: g?.statusPageUrl || "",
46
+ contactEmail: g?.contactEmail || "",
47
+ supportEmail: g?.supportEmail || "",
48
+ contactPhone: g?.contactPhone || "",
49
+ contactAddress: g?.contactAddress || "",
50
+ seoTitle: g?.seoTitle || "",
51
+ seoDescription: g?.seoDescription || "",
52
+ seoKeywords: g?.seoKeywords || "",
53
+ ogImage: g?.ogImage || "",
54
+ appStoreUrl: g?.appStoreUrl || "",
55
+ playStoreUrl: g?.playStoreUrl || ""
56
+ }), [E, D] = s(() => v(g)), [O, k] = s(() => y(g)), [A, j] = s(g?.tags ?? []), [M, N] = s({}), [P, F] = s({
56
57
  contact: !1,
57
58
  seo: !1,
58
59
  appStore: !1,
59
60
  social: !1,
60
61
  resources: !1,
61
62
  integrations: !1
62
- }), F = (e) => {
63
- P((t) => ({
63
+ }), I = (e) => {
64
+ F((t) => ({
64
65
  ...t,
65
66
  [e]: !t[e]
66
67
  }));
67
- }, I = () => {
68
- E((e) => [...e, {
69
- id: g("social"),
68
+ }, L = () => {
69
+ D((e) => [...e, {
70
+ id: _("social"),
70
71
  platform: "",
71
72
  url: ""
72
73
  }]);
73
- }, L = (e) => {
74
- E((t) => t.filter((t, n) => n !== e));
75
- }, R = (e, t, n) => {
76
- E((r) => r.map((r, i) => i === e ? {
74
+ }, R = (e) => {
75
+ D((t) => t.filter((t, n) => n !== e));
76
+ }, z = (e, t, n) => {
77
+ D((r) => r.map((r, i) => i === e ? {
77
78
  ...r,
78
79
  [t]: n
79
80
  } : r));
80
- }, z = () => {
81
- let e = T.filter((e) => e.platform.trim() !== "" && e.url.trim() !== "");
81
+ }, B = () => {
82
+ let e = E.filter((e) => e.platform.trim() !== "" && e.url.trim() !== "");
82
83
  if (e.length === 0) return;
83
84
  let t = {};
84
85
  return e.forEach((e) => {
85
86
  t[e.platform.trim()] = e.url.trim();
86
87
  }), t;
87
- }, B = () => {
88
- O((e) => [...e, {
89
- id: g("resource"),
88
+ }, V = () => {
89
+ k((e) => [...e, {
90
+ id: _("resource"),
90
91
  resource: "",
91
92
  url: ""
92
93
  }]);
93
- }, V = (e) => {
94
- O((t) => t.filter((t, n) => n !== e));
95
- }, H = (e, t, n) => {
96
- O((r) => r.map((r, i) => i === e ? {
94
+ }, H = (e) => {
95
+ k((t) => t.filter((t, n) => n !== e));
96
+ }, U = (e, t, n) => {
97
+ k((r) => r.map((r, i) => i === e ? {
97
98
  ...r,
98
99
  [t]: n
99
100
  } : r));
100
- }, U = () => {
101
- let e = D.filter((e) => e.resource.trim() !== "" && e.url.trim() !== "");
101
+ }, W = () => {
102
+ let e = O.filter((e) => e.resource.trim() !== "" && e.url.trim() !== "");
102
103
  if (e.length === 0) return;
103
104
  let t = {};
104
105
  return e.forEach((e) => {
105
106
  t[e.resource.trim()] = e.url.trim();
106
107
  }), t;
107
- }, W = () => {
108
+ }, G = () => {
108
109
  try {
109
- let e = h ? a : i, t = {
110
- ...C,
111
- socialLinks: z(),
112
- resourceLinks: U()
110
+ let e = g ? o : a, t = {
111
+ ...w,
112
+ socialLinks: B(),
113
+ resourceLinks: W()
113
114
  };
114
- return e.parse(t), M({}), !0;
115
+ return e.parse(t), N({}), !0;
115
116
  } catch (e) {
116
- if (e instanceof r) {
117
+ if (e instanceof i) {
117
118
  let t = {};
118
119
  e.issues.forEach((e) => {
119
120
  let n = e.path.join(".");
120
121
  t[n] = e.message;
121
- }), M(t);
122
+ }), N(t);
122
123
  }
123
124
  return !1;
124
125
  }
125
- }, G = async (e) => {
126
- if (e.preventDefault(), !W()) return;
127
- let t = z(), n = U();
128
- await y(h ? {
129
- name: C.name === h.name ? void 0 : C.name,
130
- description: C.description === h.description ? void 0 : C.description,
131
- status: C.status === h.status ? void 0 : C.status,
132
- logoUrl: C.logoUrl === h.logoUrl ? void 0 : C.logoUrl,
133
- website: C.website === h.website ? void 0 : C.website,
134
- appUrl: C.appUrl === h.appUrl ? void 0 : C.appUrl,
135
- docsUrl: C.docsUrl === h.docsUrl ? void 0 : C.docsUrl,
136
- githubUrl: C.githubUrl === h.githubUrl ? void 0 : C.githubUrl,
137
- statusPageUrl: C.statusPageUrl === h.statusPageUrl ? void 0 : C.statusPageUrl,
138
- contactEmail: C.contactEmail === (h.contactEmail || "") ? void 0 : C.contactEmail,
139
- supportEmail: C.supportEmail === (h.supportEmail || "") ? void 0 : C.supportEmail,
140
- contactPhone: C.contactPhone === (h.contactPhone || "") ? void 0 : C.contactPhone,
141
- contactAddress: C.contactAddress === (h.contactAddress || "") ? void 0 : C.contactAddress,
142
- seoTitle: C.seoTitle === (h.seoTitle || "") ? void 0 : C.seoTitle,
143
- seoDescription: C.seoDescription === (h.seoDescription || "") ? void 0 : C.seoDescription,
144
- seoKeywords: C.seoKeywords === (h.seoKeywords || "") ? void 0 : C.seoKeywords,
145
- ogImage: C.ogImage === (h.ogImage || "") ? void 0 : C.ogImage,
146
- appStoreUrl: C.appStoreUrl === (h.appStoreUrl || "") ? void 0 : C.appStoreUrl,
147
- playStoreUrl: C.playStoreUrl === (h.playStoreUrl || "") ? void 0 : C.playStoreUrl,
126
+ }, K = async (e) => {
127
+ if (e.preventDefault(), !G()) return;
128
+ let t = B(), n = W();
129
+ await b(g ? {
130
+ name: w.name === g.name ? void 0 : w.name,
131
+ description: w.description === g.description ? void 0 : w.description,
132
+ status: w.status === g.status ? void 0 : w.status,
133
+ logoUrl: w.logoUrl === g.logoUrl ? void 0 : w.logoUrl,
134
+ website: w.website === g.website ? void 0 : w.website,
135
+ appUrl: w.appUrl === g.appUrl ? void 0 : w.appUrl,
136
+ docsUrl: w.docsUrl === g.docsUrl ? void 0 : w.docsUrl,
137
+ githubUrl: w.githubUrl === g.githubUrl ? void 0 : w.githubUrl,
138
+ statusPageUrl: w.statusPageUrl === g.statusPageUrl ? void 0 : w.statusPageUrl,
139
+ contactEmail: w.contactEmail === (g.contactEmail || "") ? void 0 : w.contactEmail,
140
+ supportEmail: w.supportEmail === (g.supportEmail || "") ? void 0 : w.supportEmail,
141
+ contactPhone: w.contactPhone === (g.contactPhone || "") ? void 0 : w.contactPhone,
142
+ contactAddress: w.contactAddress === (g.contactAddress || "") ? void 0 : w.contactAddress,
143
+ seoTitle: w.seoTitle === (g.seoTitle || "") ? void 0 : w.seoTitle,
144
+ seoDescription: w.seoDescription === (g.seoDescription || "") ? void 0 : w.seoDescription,
145
+ seoKeywords: w.seoKeywords === (g.seoKeywords || "") ? void 0 : w.seoKeywords,
146
+ ogImage: w.ogImage === (g.ogImage || "") ? void 0 : w.ogImage,
147
+ appStoreUrl: w.appStoreUrl === (g.appStoreUrl || "") ? void 0 : w.appStoreUrl,
148
+ playStoreUrl: w.playStoreUrl === (g.playStoreUrl || "") ? void 0 : w.playStoreUrl,
148
149
  socialLinks: t,
149
150
  resourceLinks: n,
150
- tags: k,
151
+ tags: A,
151
152
  ...(() => {
152
153
  let t = e.target, n = t.elements.namedItem("recaptchaSiteKey")?.value, r = t.elements.namedItem("recaptchaSecretKey")?.value, i = {};
153
- return n && n !== (h.recaptchaSiteKey || "") && (i.recaptchaSiteKey = n), r && (i.recaptchaSecretKey = r), i;
154
+ return n && n !== (g.recaptchaSiteKey || "") && (i.recaptchaSiteKey = n), r && (i.recaptchaSecretKey = r), i;
154
155
  })()
155
156
  } : {
156
- name: C.name,
157
- slug: C.slug,
158
- description: C.description || void 0,
159
- status: C.status,
160
- logoUrl: C.logoUrl || void 0,
161
- website: C.website || void 0,
162
- appUrl: C.appUrl || void 0,
163
- docsUrl: C.docsUrl || void 0,
164
- githubUrl: C.githubUrl || void 0,
165
- statusPageUrl: C.statusPageUrl || void 0,
166
- contactEmail: C.contactEmail || void 0,
167
- supportEmail: C.supportEmail || void 0,
168
- contactPhone: C.contactPhone || void 0,
169
- contactAddress: C.contactAddress || void 0,
170
- seoTitle: C.seoTitle || void 0,
171
- seoDescription: C.seoDescription || void 0,
172
- seoKeywords: C.seoKeywords || void 0,
173
- ogImage: C.ogImage || void 0,
174
- appStoreUrl: C.appStoreUrl || void 0,
175
- playStoreUrl: C.playStoreUrl || void 0,
157
+ name: w.name,
158
+ slug: w.slug,
159
+ description: w.description || void 0,
160
+ status: w.status,
161
+ logoUrl: w.logoUrl || void 0,
162
+ website: w.website || void 0,
163
+ appUrl: w.appUrl || void 0,
164
+ docsUrl: w.docsUrl || void 0,
165
+ githubUrl: w.githubUrl || void 0,
166
+ statusPageUrl: w.statusPageUrl || void 0,
167
+ contactEmail: w.contactEmail || void 0,
168
+ supportEmail: w.supportEmail || void 0,
169
+ contactPhone: w.contactPhone || void 0,
170
+ contactAddress: w.contactAddress || void 0,
171
+ seoTitle: w.seoTitle || void 0,
172
+ seoDescription: w.seoDescription || void 0,
173
+ seoKeywords: w.seoKeywords || void 0,
174
+ ogImage: w.ogImage || void 0,
175
+ appStoreUrl: w.appStoreUrl || void 0,
176
+ playStoreUrl: w.playStoreUrl || void 0,
176
177
  socialLinks: t,
177
178
  resourceLinks: n,
178
- tags: k
179
+ tags: A
179
180
  });
180
- }, K = "\n w-full px-3 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n placeholder:text-text-tertiary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n disabled:bg-bg-sunken disabled:cursor-not-allowed\n transition-all duration-200\n ", q = "\n flex items-center gap-2 w-full text-left\n text-sm font-semibold text-text-secondary uppercase tracking-wider\n cursor-pointer hover:text-text-primary transition-colors duration-200\n ";
181
- return /* @__PURE__ */ m("form", {
182
- onSubmit: G,
181
+ }, q = "\n w-full px-3 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n placeholder:text-text-tertiary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n disabled:bg-bg-sunken disabled:cursor-not-allowed\n transition-all duration-200\n ", J = "\n flex items-center gap-2 w-full text-left\n text-sm font-semibold text-text-secondary uppercase tracking-wider\n cursor-pointer hover:text-text-primary transition-colors duration-200\n ";
182
+ return /* @__PURE__ */ h("form", {
183
+ onSubmit: K,
183
184
  className: "space-y-6 animate-in fade-in duration-200",
184
185
  children: [
185
- /* @__PURE__ */ m("div", {
186
+ /* @__PURE__ */ h("div", {
186
187
  className: "space-y-4",
187
188
  children: [
188
- /* @__PURE__ */ p("h3", {
189
+ /* @__PURE__ */ m("h3", {
189
190
  className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
190
- children: S("products.basicInformation", "Basic Information")
191
+ children: C("products.basicInformation", "Basic Information")
191
192
  }),
192
- /* @__PURE__ */ m("div", { children: [
193
- /* @__PURE__ */ m("label", {
193
+ /* @__PURE__ */ h("div", { children: [
194
+ /* @__PURE__ */ h("label", {
194
195
  htmlFor: "name",
195
196
  className: "block text-sm font-medium text-text-primary mb-1",
196
197
  children: [
197
- S("products.productName", "Product Name"),
198
+ C("products.productName", "Product Name"),
198
199
  " ",
199
- /* @__PURE__ */ p("span", {
200
+ /* @__PURE__ */ m("span", {
200
201
  className: "text-[var(--color-status-error)]",
201
202
  children: "*"
202
203
  })
203
204
  ]
204
205
  }),
205
- /* @__PURE__ */ p("input", {
206
+ /* @__PURE__ */ m("input", {
206
207
  id: "name",
207
208
  type: "text",
208
- value: C.name,
209
- onChange: (e) => w({
210
- ...C,
209
+ value: w.name,
210
+ onChange: (e) => T({
211
+ ...w,
211
212
  name: e.target.value
212
213
  }),
213
- className: K,
214
- placeholder: S("products.enterProductName", "Enter product name"),
215
- disabled: x,
214
+ className: q,
215
+ placeholder: C("products.enterProductName", "Enter product name"),
216
+ disabled: S,
216
217
  required: !0
217
218
  }),
218
- j.name && /* @__PURE__ */ p("p", {
219
+ M.name && /* @__PURE__ */ m("p", {
219
220
  className: "text-sm text-[var(--color-status-error)] mt-1",
220
- children: j.name
221
+ children: M.name
221
222
  })
222
223
  ] }),
223
- /* @__PURE__ */ m("div", { children: [
224
- /* @__PURE__ */ m("label", {
224
+ /* @__PURE__ */ h("div", { children: [
225
+ /* @__PURE__ */ h("label", {
225
226
  htmlFor: "slug",
226
227
  className: "block text-sm font-medium text-text-primary mb-1",
227
228
  children: [
228
- S("products.slug", "Slug"),
229
+ C("products.slug", "Slug"),
229
230
  " ",
230
- /* @__PURE__ */ p("span", {
231
+ /* @__PURE__ */ m("span", {
231
232
  className: "text-[var(--color-status-error)]",
232
233
  children: "*"
233
234
  })
234
235
  ]
235
236
  }),
236
- /* @__PURE__ */ p("input", {
237
+ /* @__PURE__ */ m("input", {
237
238
  id: "slug",
238
239
  type: "text",
239
- value: C.slug,
240
- onChange: (e) => w({
241
- ...C,
240
+ value: w.slug,
241
+ onChange: (e) => T({
242
+ ...w,
242
243
  slug: e.target.value.toLowerCase().replace(/\s+/g, "-")
243
244
  }),
244
- className: K,
245
+ className: q,
245
246
  placeholder: "product-slug",
246
- disabled: x || !!h,
247
- required: !h
247
+ disabled: S || !!g,
248
+ required: !g
248
249
  }),
249
- /* @__PURE__ */ p("p", {
250
+ /* @__PURE__ */ m("p", {
250
251
  className: "text-xs text-text-tertiary mt-1",
251
- children: S("products.slugHint", "Lowercase letters, numbers, and hyphens only. Cannot be changed after creation.")
252
+ children: C("products.slugHint", "Lowercase letters, numbers, and hyphens only. Cannot be changed after creation.")
252
253
  }),
253
- j.slug && /* @__PURE__ */ p("p", {
254
+ M.slug && /* @__PURE__ */ m("p", {
254
255
  className: "text-sm text-[var(--color-status-error)] mt-1",
255
- children: j.slug
256
+ children: M.slug
256
257
  })
257
258
  ] }),
258
- /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
259
- htmlFor: "description",
260
- className: "block text-sm font-medium text-text-primary mb-1",
261
- children: S("products.description", "Description")
262
- }), /* @__PURE__ */ p("textarea", {
259
+ /* @__PURE__ */ m(n, {
263
260
  id: "description",
264
- value: C.description,
265
- onChange: (e) => w({
266
- ...C,
267
- description: e.target.value
261
+ label: C("products.description", "Description"),
262
+ value: w.description,
263
+ onChange: (e) => T({
264
+ ...w,
265
+ description: e
268
266
  }),
269
- rows: 3,
270
- className: K,
271
- placeholder: S("products.enterProductDescription", "Enter product description"),
272
- disabled: x
273
- })] }),
274
- /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
267
+ placeholder: C("products.enterProductDescription", "Enter product description"),
268
+ disabled: S,
269
+ rows: 4,
270
+ minHeight: 120
271
+ }),
272
+ /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
275
273
  htmlFor: "status",
276
274
  className: "block text-sm font-medium text-text-primary mb-1",
277
- children: S("products.status", "Status")
278
- }), /* @__PURE__ */ m("select", {
275
+ children: C("products.status", "Status")
276
+ }), /* @__PURE__ */ h("select", {
279
277
  id: "status",
280
- value: C.status,
281
- onChange: (e) => w({
282
- ...C,
278
+ value: w.status,
279
+ onChange: (e) => T({
280
+ ...w,
283
281
  status: e.target.value
284
282
  }),
285
- className: K,
286
- disabled: x,
283
+ className: q,
284
+ disabled: S,
287
285
  children: [
288
- /* @__PURE__ */ p("option", {
286
+ /* @__PURE__ */ m("option", {
289
287
  value: t.ACTIVE,
290
- children: S("products.statusActive", "Active")
288
+ children: C("products.statusActive", "Active")
291
289
  }),
292
- /* @__PURE__ */ p("option", {
290
+ /* @__PURE__ */ m("option", {
293
291
  value: t.DRAFT,
294
- children: S("products.statusDraft", "Draft")
292
+ children: C("products.statusDraft", "Draft")
295
293
  }),
296
- /* @__PURE__ */ p("option", {
294
+ /* @__PURE__ */ m("option", {
297
295
  value: t.WAITLIST,
298
- children: S("products.statusWaitlist", "Waitlist")
296
+ children: C("products.statusWaitlist", "Waitlist")
299
297
  }),
300
- /* @__PURE__ */ p("option", {
298
+ /* @__PURE__ */ m("option", {
301
299
  value: t.COMING_SOON,
302
- children: S("products.statusComingSoon", "Coming Soon")
300
+ children: C("products.statusComingSoon", "Coming Soon")
303
301
  })
304
302
  ]
305
303
  })] }),
306
- /* @__PURE__ */ m("div", { children: [
307
- /* @__PURE__ */ p("label", {
304
+ /* @__PURE__ */ h("div", { children: [
305
+ /* @__PURE__ */ m("label", {
308
306
  className: "block text-sm font-medium text-text-primary mb-1",
309
- children: S("products.tags", "Tags")
307
+ children: C("products.tags", "Tags")
310
308
  }),
311
- /* @__PURE__ */ p(n, {
312
- value: k,
313
- onChange: A,
314
- disabled: x
309
+ /* @__PURE__ */ m(r, {
310
+ value: A,
311
+ onChange: j,
312
+ disabled: S
315
313
  }),
316
- /* @__PURE__ */ p("p", {
314
+ /* @__PURE__ */ m("p", {
317
315
  className: "text-xs text-text-tertiary mt-1",
318
- children: S("products.tagsHint", "Press Enter or comma to add a tag.")
316
+ children: C("products.tagsHint", "Press Enter or comma to add a tag.")
319
317
  })
320
318
  ] })
321
319
  ]
322
320
  }),
323
- /* @__PURE__ */ m("div", {
321
+ /* @__PURE__ */ h("div", {
324
322
  className: "space-y-4 pt-4 border-t border-border-seam",
325
323
  children: [
326
- /* @__PURE__ */ p("h3", {
324
+ /* @__PURE__ */ m("h3", {
327
325
  className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
328
- children: S("products.urlsAndLinks", "URLs & Links")
326
+ children: C("products.urlsAndLinks", "URLs & Links")
329
327
  }),
330
- /* @__PURE__ */ m("div", { children: [
331
- /* @__PURE__ */ p("label", {
328
+ /* @__PURE__ */ h("div", { children: [
329
+ /* @__PURE__ */ m("label", {
332
330
  htmlFor: "logoUrl",
333
331
  className: "block text-sm font-medium text-text-primary mb-1",
334
- children: S("products.logoUrl", "Logo URL")
332
+ children: C("products.logoUrl", "Logo URL")
335
333
  }),
336
- /* @__PURE__ */ p("input", {
334
+ /* @__PURE__ */ m("input", {
337
335
  id: "logoUrl",
338
336
  type: "url",
339
- value: C.logoUrl,
340
- onChange: (e) => w({
341
- ...C,
337
+ value: w.logoUrl,
338
+ onChange: (e) => T({
339
+ ...w,
342
340
  logoUrl: e.target.value
343
341
  }),
344
- className: K,
342
+ className: q,
345
343
  placeholder: "https://example.com/logo.png",
346
- disabled: x
344
+ disabled: S
347
345
  }),
348
- j.logoUrl && /* @__PURE__ */ p("p", {
346
+ M.logoUrl && /* @__PURE__ */ m("p", {
349
347
  className: "text-sm text-[var(--color-status-error)] mt-1",
350
- children: j.logoUrl
348
+ children: M.logoUrl
351
349
  })
352
350
  ] }),
353
- /* @__PURE__ */ m("div", { children: [
354
- /* @__PURE__ */ m("label", {
351
+ /* @__PURE__ */ h("div", { children: [
352
+ /* @__PURE__ */ h("label", {
355
353
  htmlFor: "appUrl",
356
354
  className: "block text-sm font-medium text-text-primary mb-1",
357
355
  children: [
358
- S("products.appUrl", "App URL"),
356
+ C("products.appUrl", "App URL"),
359
357
  " ",
360
- /* @__PURE__ */ p("span", {
358
+ /* @__PURE__ */ m("span", {
361
359
  className: "text-[var(--color-status-warning)]",
362
- children: S("products.requiredForProductSwitcher", "(Required for product switcher)")
360
+ children: C("products.requiredForProductSwitcher", "(Required for product switcher)")
363
361
  })
364
362
  ]
365
363
  }),
366
- /* @__PURE__ */ p("input", {
364
+ /* @__PURE__ */ m("input", {
367
365
  id: "appUrl",
368
366
  type: "url",
369
- value: C.appUrl,
370
- onChange: (e) => w({
371
- ...C,
367
+ value: w.appUrl,
368
+ onChange: (e) => T({
369
+ ...w,
372
370
  appUrl: e.target.value
373
371
  }),
374
- className: K,
372
+ className: q,
375
373
  placeholder: "https://app.product.com/",
376
- disabled: x
374
+ disabled: S
377
375
  }),
378
- /* @__PURE__ */ p("p", {
376
+ /* @__PURE__ */ m("p", {
379
377
  className: "text-xs text-text-tertiary mt-1",
380
- children: S("products.appUrlHint", "The main application URL. Products without an App URL won't appear in the product switcher.")
378
+ children: C("products.appUrlHint", "The main application URL. Products without an App URL won't appear in the product switcher.")
381
379
  }),
382
- j.appUrl && /* @__PURE__ */ p("p", {
380
+ M.appUrl && /* @__PURE__ */ m("p", {
383
381
  className: "text-sm text-[var(--color-status-error)] mt-1",
384
- children: j.appUrl
382
+ children: M.appUrl
385
383
  })
386
384
  ] }),
387
- /* @__PURE__ */ m("div", { children: [
388
- /* @__PURE__ */ p("label", {
385
+ /* @__PURE__ */ h("div", { children: [
386
+ /* @__PURE__ */ m("label", {
389
387
  htmlFor: "website",
390
388
  className: "block text-sm font-medium text-text-primary mb-1",
391
- children: S("products.websiteUrl", "Website URL")
389
+ children: C("products.websiteUrl", "Website URL")
392
390
  }),
393
- /* @__PURE__ */ p("input", {
391
+ /* @__PURE__ */ m("input", {
394
392
  id: "website",
395
393
  type: "url",
396
- value: C.website,
397
- onChange: (e) => w({
398
- ...C,
394
+ value: w.website,
395
+ onChange: (e) => T({
396
+ ...w,
399
397
  website: e.target.value
400
398
  }),
401
- className: K,
399
+ className: q,
402
400
  placeholder: "https://product.com/",
403
- disabled: x
401
+ disabled: S
404
402
  }),
405
- j.website && /* @__PURE__ */ p("p", {
403
+ M.website && /* @__PURE__ */ m("p", {
406
404
  className: "text-sm text-[var(--color-status-error)] mt-1",
407
- children: j.website
405
+ children: M.website
408
406
  })
409
407
  ] }),
410
- /* @__PURE__ */ m("div", { children: [
411
- /* @__PURE__ */ p("label", {
408
+ /* @__PURE__ */ h("div", { children: [
409
+ /* @__PURE__ */ m("label", {
412
410
  htmlFor: "docsUrl",
413
411
  className: "block text-sm font-medium text-text-primary mb-1",
414
- children: S("products.documentationUrl", "Documentation URL")
412
+ children: C("products.documentationUrl", "Documentation URL")
415
413
  }),
416
- /* @__PURE__ */ p("input", {
414
+ /* @__PURE__ */ m("input", {
417
415
  id: "docsUrl",
418
416
  type: "url",
419
- value: C.docsUrl,
420
- onChange: (e) => w({
421
- ...C,
417
+ value: w.docsUrl,
418
+ onChange: (e) => T({
419
+ ...w,
422
420
  docsUrl: e.target.value
423
421
  }),
424
- className: K,
422
+ className: q,
425
423
  placeholder: "https://docs.product.com/",
426
- disabled: x
424
+ disabled: S
427
425
  }),
428
- j.docsUrl && /* @__PURE__ */ p("p", {
426
+ M.docsUrl && /* @__PURE__ */ m("p", {
429
427
  className: "text-sm text-[var(--color-status-error)] mt-1",
430
- children: j.docsUrl
428
+ children: M.docsUrl
431
429
  })
432
430
  ] }),
433
- /* @__PURE__ */ m("div", { children: [
434
- /* @__PURE__ */ p("label", {
431
+ /* @__PURE__ */ h("div", { children: [
432
+ /* @__PURE__ */ m("label", {
435
433
  htmlFor: "githubUrl",
436
434
  className: "block text-sm font-medium text-text-primary mb-1",
437
- children: S("products.githubUrl", "GitHub URL")
435
+ children: C("products.githubUrl", "GitHub URL")
438
436
  }),
439
- /* @__PURE__ */ p("input", {
437
+ /* @__PURE__ */ m("input", {
440
438
  id: "githubUrl",
441
439
  type: "url",
442
- value: C.githubUrl,
443
- onChange: (e) => w({
444
- ...C,
440
+ value: w.githubUrl,
441
+ onChange: (e) => T({
442
+ ...w,
445
443
  githubUrl: e.target.value
446
444
  }),
447
- className: K,
445
+ className: q,
448
446
  placeholder: "https://github.com/org/repo",
449
- disabled: x
447
+ disabled: S
450
448
  }),
451
- j.githubUrl && /* @__PURE__ */ p("p", {
449
+ M.githubUrl && /* @__PURE__ */ m("p", {
452
450
  className: "text-sm text-[var(--color-status-error)] mt-1",
453
- children: j.githubUrl
451
+ children: M.githubUrl
454
452
  })
455
453
  ] }),
456
- /* @__PURE__ */ m("div", { children: [
457
- /* @__PURE__ */ p("label", {
454
+ /* @__PURE__ */ h("div", { children: [
455
+ /* @__PURE__ */ m("label", {
458
456
  htmlFor: "statusPageUrl",
459
457
  className: "block text-sm font-medium text-text-primary mb-1",
460
- children: S("products.statusPageUrl", "Status Page URL")
458
+ children: C("products.statusPageUrl", "Status Page URL")
461
459
  }),
462
- /* @__PURE__ */ p("input", {
460
+ /* @__PURE__ */ m("input", {
463
461
  id: "statusPageUrl",
464
462
  type: "url",
465
- value: C.statusPageUrl,
466
- onChange: (e) => w({
467
- ...C,
463
+ value: w.statusPageUrl,
464
+ onChange: (e) => T({
465
+ ...w,
468
466
  statusPageUrl: e.target.value
469
467
  }),
470
- className: K,
468
+ className: q,
471
469
  placeholder: "https://status.product.com/",
472
- disabled: x
470
+ disabled: S
473
471
  }),
474
- j.statusPageUrl && /* @__PURE__ */ p("p", {
472
+ M.statusPageUrl && /* @__PURE__ */ m("p", {
475
473
  className: "text-sm text-[var(--color-status-error)] mt-1",
476
- children: j.statusPageUrl
474
+ children: M.statusPageUrl
477
475
  })
478
476
  ] })
479
477
  ]
480
478
  }),
481
- /* @__PURE__ */ m("div", {
479
+ /* @__PURE__ */ h("div", {
482
480
  className: "space-y-4 pt-4 border-t border-border-seam",
483
- children: [/* @__PURE__ */ m("button", {
481
+ children: [/* @__PURE__ */ h("button", {
484
482
  type: "button",
485
- onClick: () => F("contact"),
486
- className: q,
487
- children: [N.contact ? /* @__PURE__ */ p(s, { size: 16 }) : /* @__PURE__ */ p(c, { size: 16 }), S("products.contactInformation", "Contact Information")]
488
- }), N.contact && /* @__PURE__ */ m("div", {
483
+ onClick: () => I("contact"),
484
+ className: J,
485
+ children: [P.contact ? /* @__PURE__ */ m(c, { size: 16 }) : /* @__PURE__ */ m(l, { size: 16 }), C("products.contactInformation", "Contact Information")]
486
+ }), P.contact && /* @__PURE__ */ h("div", {
489
487
  className: "space-y-4 animate-in fade-in duration-200",
490
488
  children: [
491
- /* @__PURE__ */ m("div", { children: [
492
- /* @__PURE__ */ p("label", {
489
+ /* @__PURE__ */ h("div", { children: [
490
+ /* @__PURE__ */ m("label", {
493
491
  htmlFor: "contactEmail",
494
492
  className: "block text-sm font-medium text-text-primary mb-1",
495
- children: S("products.contactEmail", "Contact Email")
493
+ children: C("products.contactEmail", "Contact Email")
496
494
  }),
497
- /* @__PURE__ */ p("input", {
495
+ /* @__PURE__ */ m("input", {
498
496
  id: "contactEmail",
499
497
  type: "email",
500
- value: C.contactEmail,
501
- onChange: (e) => w({
502
- ...C,
498
+ value: w.contactEmail,
499
+ onChange: (e) => T({
500
+ ...w,
503
501
  contactEmail: e.target.value
504
502
  }),
505
- className: K,
503
+ className: q,
506
504
  placeholder: "contact@product.com",
507
- disabled: x
505
+ disabled: S
508
506
  }),
509
- j.contactEmail && /* @__PURE__ */ p("p", {
507
+ M.contactEmail && /* @__PURE__ */ m("p", {
510
508
  className: "text-sm text-[var(--color-status-error)] mt-1",
511
- children: j.contactEmail
509
+ children: M.contactEmail
512
510
  })
513
511
  ] }),
514
- /* @__PURE__ */ m("div", { children: [
515
- /* @__PURE__ */ p("label", {
512
+ /* @__PURE__ */ h("div", { children: [
513
+ /* @__PURE__ */ m("label", {
516
514
  htmlFor: "supportEmail",
517
515
  className: "block text-sm font-medium text-text-primary mb-1",
518
- children: S("products.supportEmail", "Support Email")
516
+ children: C("products.supportEmail", "Support Email")
519
517
  }),
520
- /* @__PURE__ */ p("input", {
518
+ /* @__PURE__ */ m("input", {
521
519
  id: "supportEmail",
522
520
  type: "email",
523
- value: C.supportEmail,
524
- onChange: (e) => w({
525
- ...C,
521
+ value: w.supportEmail,
522
+ onChange: (e) => T({
523
+ ...w,
526
524
  supportEmail: e.target.value
527
525
  }),
528
- className: K,
526
+ className: q,
529
527
  placeholder: "support@product.com",
530
- disabled: x
528
+ disabled: S
531
529
  }),
532
- j.supportEmail && /* @__PURE__ */ p("p", {
530
+ M.supportEmail && /* @__PURE__ */ m("p", {
533
531
  className: "text-sm text-[var(--color-status-error)] mt-1",
534
- children: j.supportEmail
532
+ children: M.supportEmail
535
533
  })
536
534
  ] }),
537
- /* @__PURE__ */ m("div", { children: [
538
- /* @__PURE__ */ p("label", {
535
+ /* @__PURE__ */ h("div", { children: [
536
+ /* @__PURE__ */ m("label", {
539
537
  htmlFor: "contactPhone",
540
538
  className: "block text-sm font-medium text-text-primary mb-1",
541
- children: S("products.contactPhone", "Contact Phone")
539
+ children: C("products.contactPhone", "Contact Phone")
542
540
  }),
543
- /* @__PURE__ */ p("input", {
541
+ /* @__PURE__ */ m("input", {
544
542
  id: "contactPhone",
545
543
  type: "tel",
546
- value: C.contactPhone,
547
- onChange: (e) => w({
548
- ...C,
544
+ value: w.contactPhone,
545
+ onChange: (e) => T({
546
+ ...w,
549
547
  contactPhone: e.target.value
550
548
  }),
551
- className: K,
549
+ className: q,
552
550
  placeholder: "+1 (555) 123-4567",
553
- disabled: x
551
+ disabled: S
554
552
  }),
555
- j.contactPhone && /* @__PURE__ */ p("p", {
553
+ M.contactPhone && /* @__PURE__ */ m("p", {
556
554
  className: "text-sm text-[var(--color-status-error)] mt-1",
557
- children: j.contactPhone
555
+ children: M.contactPhone
558
556
  })
559
557
  ] }),
560
- /* @__PURE__ */ m("div", { children: [
561
- /* @__PURE__ */ p("label", {
558
+ /* @__PURE__ */ h("div", { children: [
559
+ /* @__PURE__ */ m("label", {
562
560
  htmlFor: "contactAddress",
563
561
  className: "block text-sm font-medium text-text-primary mb-1",
564
- children: S("products.contactAddress", "Contact Address")
562
+ children: C("products.contactAddress", "Contact Address")
565
563
  }),
566
- /* @__PURE__ */ p("textarea", {
564
+ /* @__PURE__ */ m("textarea", {
567
565
  id: "contactAddress",
568
- value: C.contactAddress,
569
- onChange: (e) => w({
570
- ...C,
566
+ value: w.contactAddress,
567
+ onChange: (e) => T({
568
+ ...w,
571
569
  contactAddress: e.target.value
572
570
  }),
573
571
  rows: 3,
574
- className: K,
572
+ className: q,
575
573
  placeholder: "123 Main St, City, State, ZIP",
576
- disabled: x
574
+ disabled: S
577
575
  }),
578
- j.contactAddress && /* @__PURE__ */ p("p", {
576
+ M.contactAddress && /* @__PURE__ */ m("p", {
579
577
  className: "text-sm text-[var(--color-status-error)] mt-1",
580
- children: j.contactAddress
578
+ children: M.contactAddress
581
579
  })
582
580
  ] })
583
581
  ]
584
582
  })]
585
583
  }),
586
- /* @__PURE__ */ m("div", {
584
+ /* @__PURE__ */ h("div", {
587
585
  className: "space-y-4 pt-4 border-t border-border-seam",
588
- children: [/* @__PURE__ */ m("button", {
586
+ children: [/* @__PURE__ */ h("button", {
589
587
  type: "button",
590
- onClick: () => F("seo"),
591
- className: q,
592
- children: [N.seo ? /* @__PURE__ */ p(s, { size: 16 }) : /* @__PURE__ */ p(c, { size: 16 }), S("products.seoMetadata", "SEO Metadata")]
593
- }), N.seo && /* @__PURE__ */ m("div", {
588
+ onClick: () => I("seo"),
589
+ className: J,
590
+ children: [P.seo ? /* @__PURE__ */ m(c, { size: 16 }) : /* @__PURE__ */ m(l, { size: 16 }), C("products.seoMetadata", "SEO Metadata")]
591
+ }), P.seo && /* @__PURE__ */ h("div", {
594
592
  className: "space-y-4 animate-in fade-in duration-200",
595
593
  children: [
596
- /* @__PURE__ */ m("div", { children: [
597
- /* @__PURE__ */ p("label", {
594
+ /* @__PURE__ */ h("div", { children: [
595
+ /* @__PURE__ */ m("label", {
598
596
  htmlFor: "seoTitle",
599
597
  className: "block text-sm font-medium text-text-primary mb-1",
600
- children: S("products.seoTitle", "SEO Title")
598
+ children: C("products.seoTitle", "SEO Title")
601
599
  }),
602
- /* @__PURE__ */ p("input", {
600
+ /* @__PURE__ */ m("input", {
603
601
  id: "seoTitle",
604
602
  type: "text",
605
- value: C.seoTitle,
606
- onChange: (e) => w({
607
- ...C,
603
+ value: w.seoTitle,
604
+ onChange: (e) => T({
605
+ ...w,
608
606
  seoTitle: e.target.value
609
607
  }),
610
- className: K,
608
+ className: q,
611
609
  placeholder: "Product SEO title",
612
- disabled: x,
610
+ disabled: S,
613
611
  maxLength: 100
614
612
  }),
615
- /* @__PURE__ */ m("div", {
613
+ /* @__PURE__ */ h("div", {
616
614
  className: "flex justify-between mt-1",
617
- children: [j.seoTitle ? /* @__PURE__ */ p("p", {
615
+ children: [M.seoTitle ? /* @__PURE__ */ m("p", {
618
616
  className: "text-sm text-[var(--color-status-error)]",
619
- children: j.seoTitle
620
- }) : /* @__PURE__ */ p("span", {}), /* @__PURE__ */ m("p", {
617
+ children: M.seoTitle
618
+ }) : /* @__PURE__ */ m("span", {}), /* @__PURE__ */ h("p", {
621
619
  className: "text-xs text-text-tertiary",
622
- children: [C.seoTitle.length, "/100"]
620
+ children: [w.seoTitle.length, "/100"]
623
621
  })]
624
622
  })
625
623
  ] }),
626
- /* @__PURE__ */ m("div", { children: [
627
- /* @__PURE__ */ p("label", {
624
+ /* @__PURE__ */ h("div", { children: [
625
+ /* @__PURE__ */ m("label", {
628
626
  htmlFor: "seoDescription",
629
627
  className: "block text-sm font-medium text-text-primary mb-1",
630
- children: S("products.seoDescription", "SEO Description")
628
+ children: C("products.seoDescription", "SEO Description")
631
629
  }),
632
- /* @__PURE__ */ p("textarea", {
630
+ /* @__PURE__ */ m("textarea", {
633
631
  id: "seoDescription",
634
- value: C.seoDescription,
635
- onChange: (e) => w({
636
- ...C,
632
+ value: w.seoDescription,
633
+ onChange: (e) => T({
634
+ ...w,
637
635
  seoDescription: e.target.value
638
636
  }),
639
637
  rows: 3,
640
- className: K,
641
- placeholder: S("products.seoDescriptionPlaceholder", "Brief description for search engines"),
642
- disabled: x,
638
+ className: q,
639
+ placeholder: C("products.seoDescriptionPlaceholder", "Brief description for search engines"),
640
+ disabled: S,
643
641
  maxLength: 300
644
642
  }),
645
- /* @__PURE__ */ m("div", {
643
+ /* @__PURE__ */ h("div", {
646
644
  className: "flex justify-between mt-1",
647
- children: [j.seoDescription ? /* @__PURE__ */ p("p", {
645
+ children: [M.seoDescription ? /* @__PURE__ */ m("p", {
648
646
  className: "text-sm text-[var(--color-status-error)]",
649
- children: j.seoDescription
650
- }) : /* @__PURE__ */ p("span", {}), /* @__PURE__ */ m("p", {
647
+ children: M.seoDescription
648
+ }) : /* @__PURE__ */ m("span", {}), /* @__PURE__ */ h("p", {
651
649
  className: "text-xs text-text-tertiary",
652
- children: [C.seoDescription.length, "/300"]
650
+ children: [w.seoDescription.length, "/300"]
653
651
  })]
654
652
  })
655
653
  ] }),
656
- /* @__PURE__ */ m("div", { children: [
657
- /* @__PURE__ */ p("label", {
654
+ /* @__PURE__ */ h("div", { children: [
655
+ /* @__PURE__ */ m("label", {
658
656
  htmlFor: "seoKeywords",
659
657
  className: "block text-sm font-medium text-text-primary mb-1",
660
- children: S("products.seoKeywords", "SEO Keywords")
658
+ children: C("products.seoKeywords", "SEO Keywords")
661
659
  }),
662
- /* @__PURE__ */ p("input", {
660
+ /* @__PURE__ */ m("input", {
663
661
  id: "seoKeywords",
664
662
  type: "text",
665
- value: C.seoKeywords,
666
- onChange: (e) => w({
667
- ...C,
663
+ value: w.seoKeywords,
664
+ onChange: (e) => T({
665
+ ...w,
668
666
  seoKeywords: e.target.value
669
667
  }),
670
- className: K,
668
+ className: q,
671
669
  placeholder: "keyword1, keyword2, keyword3",
672
- disabled: x,
670
+ disabled: S,
673
671
  maxLength: 200
674
672
  }),
675
- /* @__PURE__ */ p("p", {
673
+ /* @__PURE__ */ m("p", {
676
674
  className: "text-xs text-text-tertiary mt-1",
677
- children: S("products.seoKeywordsHint", "Comma-separated keywords for search engine optimization.")
675
+ children: C("products.seoKeywordsHint", "Comma-separated keywords for search engine optimization.")
678
676
  }),
679
- j.seoKeywords && /* @__PURE__ */ p("p", {
677
+ M.seoKeywords && /* @__PURE__ */ m("p", {
680
678
  className: "text-sm text-[var(--color-status-error)] mt-1",
681
- children: j.seoKeywords
679
+ children: M.seoKeywords
682
680
  })
683
681
  ] }),
684
- /* @__PURE__ */ m("div", { children: [
685
- /* @__PURE__ */ p("label", {
682
+ /* @__PURE__ */ h("div", { children: [
683
+ /* @__PURE__ */ m("label", {
686
684
  htmlFor: "ogImage",
687
685
  className: "block text-sm font-medium text-text-primary mb-1",
688
- children: S("products.ogImageUrl", "OG Image URL")
686
+ children: C("products.ogImageUrl", "OG Image URL")
689
687
  }),
690
- /* @__PURE__ */ p("input", {
688
+ /* @__PURE__ */ m("input", {
691
689
  id: "ogImage",
692
690
  type: "url",
693
- value: C.ogImage,
694
- onChange: (e) => w({
695
- ...C,
691
+ value: w.ogImage,
692
+ onChange: (e) => T({
693
+ ...w,
696
694
  ogImage: e.target.value
697
695
  }),
698
- className: K,
696
+ className: q,
699
697
  placeholder: "https://example.com/og-image.png",
700
- disabled: x
698
+ disabled: S
701
699
  }),
702
- /* @__PURE__ */ p("p", {
700
+ /* @__PURE__ */ m("p", {
703
701
  className: "text-xs text-text-tertiary mt-1",
704
- children: S("products.ogImageHint", "Open Graph image used when sharing on social media.")
702
+ children: C("products.ogImageHint", "Open Graph image used when sharing on social media.")
705
703
  }),
706
- j.ogImage && /* @__PURE__ */ p("p", {
704
+ M.ogImage && /* @__PURE__ */ m("p", {
707
705
  className: "text-sm text-[var(--color-status-error)] mt-1",
708
- children: j.ogImage
706
+ children: M.ogImage
709
707
  })
710
708
  ] })
711
709
  ]
712
710
  })]
713
711
  }),
714
- /* @__PURE__ */ m("div", {
712
+ /* @__PURE__ */ h("div", {
715
713
  className: "space-y-4 pt-4 border-t border-border-seam",
716
- children: [/* @__PURE__ */ m("button", {
714
+ children: [/* @__PURE__ */ h("button", {
717
715
  type: "button",
718
- onClick: () => F("appStore"),
719
- className: q,
720
- children: [N.appStore ? /* @__PURE__ */ p(s, { size: 16 }) : /* @__PURE__ */ p(c, { size: 16 }), S("products.appStoreLinks", "App Store Links")]
721
- }), N.appStore && /* @__PURE__ */ m("div", {
716
+ onClick: () => I("appStore"),
717
+ className: J,
718
+ children: [P.appStore ? /* @__PURE__ */ m(c, { size: 16 }) : /* @__PURE__ */ m(l, { size: 16 }), C("products.appStoreLinks", "App Store Links")]
719
+ }), P.appStore && /* @__PURE__ */ h("div", {
722
720
  className: "space-y-4 animate-in fade-in duration-200",
723
- children: [/* @__PURE__ */ m("div", { children: [
724
- /* @__PURE__ */ p("label", {
721
+ children: [/* @__PURE__ */ h("div", { children: [
722
+ /* @__PURE__ */ m("label", {
725
723
  htmlFor: "appStoreUrl",
726
724
  className: "block text-sm font-medium text-text-primary mb-1",
727
- children: S("products.appleAppStoreUrl", "Apple App Store URL")
725
+ children: C("products.appleAppStoreUrl", "Apple App Store URL")
728
726
  }),
729
- /* @__PURE__ */ p("input", {
727
+ /* @__PURE__ */ m("input", {
730
728
  id: "appStoreUrl",
731
729
  type: "url",
732
- value: C.appStoreUrl,
733
- onChange: (e) => w({
734
- ...C,
730
+ value: w.appStoreUrl,
731
+ onChange: (e) => T({
732
+ ...w,
735
733
  appStoreUrl: e.target.value
736
734
  }),
737
- className: K,
735
+ className: q,
738
736
  placeholder: "https://apps.apple.com/app/...",
739
- disabled: x
737
+ disabled: S
740
738
  }),
741
- j.appStoreUrl && /* @__PURE__ */ p("p", {
739
+ M.appStoreUrl && /* @__PURE__ */ m("p", {
742
740
  className: "text-sm text-[var(--color-status-error)] mt-1",
743
- children: j.appStoreUrl
741
+ children: M.appStoreUrl
744
742
  })
745
- ] }), /* @__PURE__ */ m("div", { children: [
746
- /* @__PURE__ */ p("label", {
743
+ ] }), /* @__PURE__ */ h("div", { children: [
744
+ /* @__PURE__ */ m("label", {
747
745
  htmlFor: "playStoreUrl",
748
746
  className: "block text-sm font-medium text-text-primary mb-1",
749
- children: S("products.googlePlayStoreUrl", "Google Play Store URL")
747
+ children: C("products.googlePlayStoreUrl", "Google Play Store URL")
750
748
  }),
751
- /* @__PURE__ */ p("input", {
749
+ /* @__PURE__ */ m("input", {
752
750
  id: "playStoreUrl",
753
751
  type: "url",
754
- value: C.playStoreUrl,
755
- onChange: (e) => w({
756
- ...C,
752
+ value: w.playStoreUrl,
753
+ onChange: (e) => T({
754
+ ...w,
757
755
  playStoreUrl: e.target.value
758
756
  }),
759
- className: K,
757
+ className: q,
760
758
  placeholder: "https://play.google.com/store/apps/details?id=...",
761
- disabled: x
759
+ disabled: S
762
760
  }),
763
- j.playStoreUrl && /* @__PURE__ */ p("p", {
761
+ M.playStoreUrl && /* @__PURE__ */ m("p", {
764
762
  className: "text-sm text-[var(--color-status-error)] mt-1",
765
- children: j.playStoreUrl
763
+ children: M.playStoreUrl
766
764
  })
767
765
  ] })]
768
766
  })]
769
767
  }),
770
- /* @__PURE__ */ m("div", {
768
+ /* @__PURE__ */ h("div", {
771
769
  className: "space-y-4 pt-4 border-t border-border-seam",
772
- children: [/* @__PURE__ */ m("button", {
770
+ children: [/* @__PURE__ */ h("button", {
773
771
  type: "button",
774
- onClick: () => F("social"),
775
- className: q,
776
- children: [N.social ? /* @__PURE__ */ p(s, { size: 16 }) : /* @__PURE__ */ p(c, { size: 16 }), S("products.socialMediaLinks", "Social Media Links")]
777
- }), N.social && /* @__PURE__ */ m("div", {
772
+ onClick: () => I("social"),
773
+ className: J,
774
+ children: [P.social ? /* @__PURE__ */ m(c, { size: 16 }) : /* @__PURE__ */ m(l, { size: 16 }), C("products.socialMediaLinks", "Social Media Links")]
775
+ }), P.social && /* @__PURE__ */ h("div", {
778
776
  className: "space-y-4 animate-in fade-in duration-200",
779
- children: [T.map((e, t) => /* @__PURE__ */ m("div", {
777
+ children: [E.map((e, t) => /* @__PURE__ */ h("div", {
780
778
  className: "flex items-start gap-3",
781
779
  children: [
782
- /* @__PURE__ */ m("div", {
780
+ /* @__PURE__ */ h("div", {
783
781
  className: "flex-1",
784
- children: [/* @__PURE__ */ p("label", {
782
+ children: [/* @__PURE__ */ m("label", {
785
783
  htmlFor: `socialPlatform-${t}`,
786
784
  className: "block text-sm font-medium text-text-primary mb-1",
787
- children: S("products.platform", "Platform")
788
- }), /* @__PURE__ */ p("input", {
785
+ children: C("products.platform", "Platform")
786
+ }), /* @__PURE__ */ m("input", {
789
787
  id: `socialPlatform-${t}`,
790
788
  type: "text",
791
789
  value: e.platform,
792
- onChange: (e) => R(t, "platform", e.target.value),
793
- className: K,
790
+ onChange: (e) => z(t, "platform", e.target.value),
791
+ className: q,
794
792
  placeholder: "e.g. twitter",
795
- disabled: x
793
+ disabled: S
796
794
  })]
797
795
  }),
798
- /* @__PURE__ */ m("div", {
796
+ /* @__PURE__ */ h("div", {
799
797
  className: "flex-[2]",
800
- children: [/* @__PURE__ */ p("label", {
798
+ children: [/* @__PURE__ */ m("label", {
801
799
  htmlFor: `socialUrl-${t}`,
802
800
  className: "block text-sm font-medium text-text-primary mb-1",
803
- children: S("products.url", "URL")
804
- }), /* @__PURE__ */ p("input", {
801
+ children: C("products.url", "URL")
802
+ }), /* @__PURE__ */ m("input", {
805
803
  id: `socialUrl-${t}`,
806
804
  type: "url",
807
805
  value: e.url,
808
- onChange: (e) => R(t, "url", e.target.value),
809
- className: K,
806
+ onChange: (e) => z(t, "url", e.target.value),
807
+ className: q,
810
808
  placeholder: "https://twitter.com/yourproduct",
811
- disabled: x
809
+ disabled: S
812
810
  })]
813
811
  }),
814
- /* @__PURE__ */ p("button", {
812
+ /* @__PURE__ */ m("button", {
815
813
  type: "button",
816
- onClick: () => L(t),
817
- disabled: x,
814
+ onClick: () => R(t),
815
+ disabled: S,
818
816
  className: "\n mt-7 p-2\n text-text-tertiary\n hover:text-[var(--color-status-error)]\n rounded-lg\n hover:bg-bg-sunken\n transition-all duration-200\n disabled:opacity-50 disabled:cursor-not-allowed\n ",
819
- title: S("products.removeSocialLink", "Remove social link"),
820
- children: /* @__PURE__ */ p(f, { size: 16 })
817
+ title: C("products.removeSocialLink", "Remove social link"),
818
+ children: /* @__PURE__ */ m(p, { size: 16 })
821
819
  })
822
820
  ]
823
- }, e.id)), /* @__PURE__ */ m("button", {
821
+ }, e.id)), /* @__PURE__ */ h("button", {
824
822
  type: "button",
825
- onClick: I,
826
- disabled: x,
823
+ onClick: L,
824
+ disabled: S,
827
825
  className: "\n inline-flex items-center gap-2 px-4 py-2\n text-sm font-medium\n text-text-secondary\n border border-dashed border-default\n rounded-lg\n hover:bg-bg-sunken hover:text-text-primary\n transition-all duration-200\n disabled:opacity-50 disabled:cursor-not-allowed\n ",
828
- children: [/* @__PURE__ */ p(u, { size: 16 }), S("products.addSocialLink", "Add Social Link")]
826
+ children: [/* @__PURE__ */ m(d, { size: 16 }), C("products.addSocialLink", "Add Social Link")]
829
827
  })]
830
828
  })]
831
829
  }),
832
- /* @__PURE__ */ m("div", {
830
+ /* @__PURE__ */ h("div", {
833
831
  className: "space-y-4 pt-4 border-t border-border-seam",
834
- children: [/* @__PURE__ */ m("button", {
832
+ children: [/* @__PURE__ */ h("button", {
835
833
  type: "button",
836
- onClick: () => F("resources"),
837
- className: q,
838
- children: [N.resources ? /* @__PURE__ */ p(s, { size: 16 }) : /* @__PURE__ */ p(c, { size: 16 }), S("products.resourceLinks", "Resource Links")]
839
- }), N.resources && /* @__PURE__ */ m("div", {
834
+ onClick: () => I("resources"),
835
+ className: J,
836
+ children: [P.resources ? /* @__PURE__ */ m(c, { size: 16 }) : /* @__PURE__ */ m(l, { size: 16 }), C("products.resourceLinks", "Resource Links")]
837
+ }), P.resources && /* @__PURE__ */ h("div", {
840
838
  className: "space-y-4 animate-in fade-in duration-200",
841
839
  children: [
842
- /* @__PURE__ */ p("p", {
840
+ /* @__PURE__ */ m("p", {
843
841
  className: "text-xs text-text-tertiary",
844
- children: S("products.resourceLinksHint", "Footer \"Resources\" column. Known keys: docs, community, careers, team, companies. Unknown keys are ignored by the website until the SDK adds them.")
842
+ children: C("products.resourceLinksHint", "Footer \"Resources\" column. Known keys: docs, community, careers, team, companies. Unknown keys are ignored by the website until the SDK adds them.")
845
843
  }),
846
- D.map((e, t) => /* @__PURE__ */ m("div", {
844
+ O.map((e, t) => /* @__PURE__ */ h("div", {
847
845
  className: "flex items-start gap-3",
848
846
  children: [
849
- /* @__PURE__ */ m("div", {
847
+ /* @__PURE__ */ h("div", {
850
848
  className: "flex-1",
851
- children: [/* @__PURE__ */ p("label", {
849
+ children: [/* @__PURE__ */ m("label", {
852
850
  htmlFor: `resourceKey-${t}`,
853
851
  className: "block text-sm font-medium text-text-primary mb-1",
854
- children: S("products.resource", "Resource")
855
- }), /* @__PURE__ */ p("input", {
852
+ children: C("products.resource", "Resource")
853
+ }), /* @__PURE__ */ m("input", {
856
854
  id: `resourceKey-${t}`,
857
855
  type: "text",
858
856
  value: e.resource,
859
- onChange: (e) => H(t, "resource", e.target.value),
860
- className: K,
857
+ onChange: (e) => U(t, "resource", e.target.value),
858
+ className: q,
861
859
  placeholder: "e.g. docs",
862
- disabled: x
860
+ disabled: S
863
861
  })]
864
862
  }),
865
- /* @__PURE__ */ m("div", {
863
+ /* @__PURE__ */ h("div", {
866
864
  className: "flex-[2]",
867
- children: [/* @__PURE__ */ p("label", {
865
+ children: [/* @__PURE__ */ m("label", {
868
866
  htmlFor: `resourceUrl-${t}`,
869
867
  className: "block text-sm font-medium text-text-primary mb-1",
870
- children: S("products.url", "URL")
871
- }), /* @__PURE__ */ p("input", {
868
+ children: C("products.url", "URL")
869
+ }), /* @__PURE__ */ m("input", {
872
870
  id: `resourceUrl-${t}`,
873
871
  type: "url",
874
872
  value: e.url,
875
- onChange: (e) => H(t, "url", e.target.value),
876
- className: K,
873
+ onChange: (e) => U(t, "url", e.target.value),
874
+ className: q,
877
875
  placeholder: "https://docs.yourproduct.com",
878
- disabled: x
876
+ disabled: S
879
877
  })]
880
878
  }),
881
- /* @__PURE__ */ p("button", {
879
+ /* @__PURE__ */ m("button", {
882
880
  type: "button",
883
- onClick: () => V(t),
884
- disabled: x,
881
+ onClick: () => H(t),
882
+ disabled: S,
885
883
  className: "\n mt-7 p-2\n text-text-tertiary\n hover:text-[var(--color-status-error)]\n rounded-lg\n hover:bg-bg-sunken\n transition-all duration-200\n disabled:opacity-50 disabled:cursor-not-allowed\n ",
886
- title: S("products.removeResourceLink", "Remove resource link"),
887
- children: /* @__PURE__ */ p(f, { size: 16 })
884
+ title: C("products.removeResourceLink", "Remove resource link"),
885
+ children: /* @__PURE__ */ m(p, { size: 16 })
888
886
  })
889
887
  ]
890
888
  }, e.id)),
891
- /* @__PURE__ */ m("button", {
889
+ /* @__PURE__ */ h("button", {
892
890
  type: "button",
893
- onClick: B,
894
- disabled: x,
891
+ onClick: V,
892
+ disabled: S,
895
893
  className: "\n inline-flex items-center gap-2 px-4 py-2\n text-sm font-medium\n text-text-secondary\n border border-dashed border-default\n rounded-lg\n hover:bg-bg-sunken hover:text-text-primary\n transition-all duration-200\n disabled:opacity-50 disabled:cursor-not-allowed\n ",
896
- children: [/* @__PURE__ */ p(u, { size: 16 }), S("products.addResourceLink", "Add Resource Link")]
894
+ children: [/* @__PURE__ */ m(d, { size: 16 }), C("products.addResourceLink", "Add Resource Link")]
897
895
  })
898
896
  ]
899
897
  })]
900
898
  }),
901
- /* @__PURE__ */ m("div", {
899
+ /* @__PURE__ */ h("div", {
902
900
  className: "border border-default rounded-lg overflow-hidden",
903
- children: [/* @__PURE__ */ m("button", {
901
+ children: [/* @__PURE__ */ h("button", {
904
902
  type: "button",
905
- onClick: () => F("integrations"),
903
+ onClick: () => I("integrations"),
906
904
  className: "\n w-full flex items-center gap-2 px-4 py-3\n text-sm font-semibold text-text-primary\n bg-surface hover:bg-bg-sunken\n transition-all duration-200\n ",
907
905
  children: [
908
- N.integrations ? /* @__PURE__ */ p(s, { size: 16 }) : /* @__PURE__ */ p(c, { size: 16 }),
909
- /* @__PURE__ */ p(d, {
906
+ P.integrations ? /* @__PURE__ */ m(c, { size: 16 }) : /* @__PURE__ */ m(l, { size: 16 }),
907
+ /* @__PURE__ */ m(f, {
910
908
  size: 16,
911
909
  className: "text-text-secondary"
912
910
  }),
913
- S("products.integrations", "Integrations"),
914
- /* @__PURE__ */ p("span", {
911
+ C("products.integrations", "Integrations"),
912
+ /* @__PURE__ */ m("span", {
915
913
  className: "text-xs font-normal text-text-secondary ml-1",
916
- children: S("products.recaptcha", "(reCAPTCHA)")
914
+ children: C("products.recaptcha", "(reCAPTCHA)")
917
915
  })
918
916
  ]
919
- }), N.integrations && /* @__PURE__ */ m("div", {
917
+ }), P.integrations && /* @__PURE__ */ h("div", {
920
918
  className: "px-4 pb-4 pt-2 space-y-4 border-t border-border-seam",
921
919
  children: [
922
- /* @__PURE__ */ p("p", {
920
+ /* @__PURE__ */ m("p", {
923
921
  className: "text-xs text-text-secondary",
924
- children: S("products.recaptchaDescription", "reCAPTCHA v2 keys for bot protection on website forms (newsletter, contact). Site key is public, secret key is used for server-side verification only.")
922
+ children: C("products.recaptchaDescription", "reCAPTCHA v2 keys for bot protection on website forms (newsletter, contact). Site key is public, secret key is used for server-side verification only.")
925
923
  }),
926
- /* @__PURE__ */ m("div", { children: [
927
- /* @__PURE__ */ p("label", {
924
+ /* @__PURE__ */ h("div", { children: [
925
+ /* @__PURE__ */ m("label", {
928
926
  className: "block text-sm font-medium text-text-primary mb-1.5",
929
- children: S("products.recaptchaSiteKey", "reCAPTCHA Site Key")
927
+ children: C("products.recaptchaSiteKey", "reCAPTCHA Site Key")
930
928
  }),
931
- /* @__PURE__ */ p("input", {
929
+ /* @__PURE__ */ m("input", {
932
930
  type: "text",
933
931
  name: "recaptchaSiteKey",
934
- defaultValue: h?.recaptchaSiteKey || "",
935
- disabled: x,
932
+ defaultValue: g?.recaptchaSiteKey || "",
933
+ disabled: S,
936
934
  placeholder: "6Lxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
937
935
  className: "\n w-full px-3 py-2\n bg-[var(--color-bg-input)] text-text-primary\n border border-default rounded-lg\n focus:outline-none focus:ring-2 focus:ring-[var(--color-action-primary-bg)] focus:border-transparent\n disabled:opacity-50\n text-sm font-mono\n transition-all duration-200\n "
938
936
  }),
939
- /* @__PURE__ */ p("p", {
937
+ /* @__PURE__ */ m("p", {
940
938
  className: "text-xs text-text-secondary mt-1",
941
- children: S("products.recaptchaSiteKeyHint", "Public key — exposed in frontend. Register at google.com/recaptcha/admin")
939
+ children: C("products.recaptchaSiteKeyHint", "Public key — exposed in frontend. Register at google.com/recaptcha/admin")
942
940
  })
943
941
  ] }),
944
- /* @__PURE__ */ m("div", { children: [
945
- /* @__PURE__ */ p("label", {
942
+ /* @__PURE__ */ h("div", { children: [
943
+ /* @__PURE__ */ m("label", {
946
944
  className: "block text-sm font-medium text-text-primary mb-1.5",
947
- children: S("products.recaptchaSecretKey", "reCAPTCHA Secret Key")
945
+ children: C("products.recaptchaSecretKey", "reCAPTCHA Secret Key")
948
946
  }),
949
- /* @__PURE__ */ p("input", {
947
+ /* @__PURE__ */ m("input", {
950
948
  type: "password",
951
949
  name: "recaptchaSecretKey",
952
950
  defaultValue: "",
953
- disabled: x,
954
- placeholder: S("products.enterSecretKeyPlaceholder", "Enter secret key (leave empty to keep existing)"),
951
+ disabled: S,
952
+ placeholder: C("products.enterSecretKeyPlaceholder", "Enter secret key (leave empty to keep existing)"),
955
953
  className: "\n w-full px-3 py-2\n bg-[var(--color-bg-input)] text-text-primary\n border border-default rounded-lg\n focus:outline-none focus:ring-2 focus:ring-[var(--color-action-primary-bg)] focus:border-transparent\n disabled:opacity-50\n text-sm font-mono\n transition-all duration-200\n "
956
954
  }),
957
- /* @__PURE__ */ p("p", {
955
+ /* @__PURE__ */ m("p", {
958
956
  className: "text-xs text-text-secondary mt-1",
959
- children: S("products.recaptchaSecretKeyHint", "Secret key — server-side only, never exposed via public API")
957
+ children: C("products.recaptchaSecretKeyHint", "Secret key — server-side only, never exposed via public API")
960
958
  })
961
959
  ] })
962
960
  ]
963
961
  })]
964
962
  }),
965
- /* @__PURE__ */ m("div", {
963
+ /* @__PURE__ */ h("div", {
966
964
  className: "flex gap-3 pt-4 border-t border-border-seam",
967
- children: [/* @__PURE__ */ m("button", {
965
+ children: [/* @__PURE__ */ h("button", {
968
966
  type: "submit",
969
- disabled: x,
967
+ disabled: S,
970
968
  className: "\n inline-flex items-center gap-2 px-6 py-2.5\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90\n transition-all duration-200\n font-medium\n disabled:opacity-50 disabled:cursor-not-allowed\n ",
971
- children: [x && /* @__PURE__ */ p(l, {
969
+ children: [S && /* @__PURE__ */ m(u, {
972
970
  size: 16,
973
971
  className: "animate-spin"
974
- }), h ? S("products.updateProduct", "Update Product") : S("products.createProduct", "Create Product")]
975
- }), /* @__PURE__ */ p("button", {
972
+ }), g ? C("products.updateProduct", "Update Product") : C("products.createProduct", "Create Product")]
973
+ }), /* @__PURE__ */ m("button", {
976
974
  type: "button",
977
- onClick: b,
978
- disabled: x,
975
+ onClick: x,
976
+ disabled: S,
979
977
  className: "\n px-6 py-2.5\n bg-transparent\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-bg-sunken\n transition-all duration-200\n font-medium\n disabled:opacity-50 disabled:cursor-not-allowed\n ",
980
- children: S("productCommon.cancel", "Cancel")
978
+ children: C("productCommon.cancel", "Cancel")
981
979
  })]
982
980
  })
983
981
  ]
984
982
  });
985
983
  }
986
984
  //#endregion
987
- export { y as ProductForm };
985
+ export { b as ProductForm };
988
986
 
989
987
  //# sourceMappingURL=ProductForm.js.map