@burdenoff/microfe-product 2026.520.3 → 2026.521.2

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