@burdenoff/microfe-product 2026.521.1 → 2026.521.3
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.
- package/dist/generated/global-operations.d.ts +7 -0
- package/dist/generated/global-operations.d.ts.map +1 -1
- package/dist/generated/global-operations.js +5 -0
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +3 -0
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/generated/global-types.js.map +1 -1
- package/dist/product-management/modules/products/components/ProductForm.d.ts.map +1 -1
- package/dist/product-management/modules/products/components/ProductForm.js +419 -317
- package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/product-management/modules/products/pages/ProductDetailPage.js +216 -194
- package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
- package/dist/product-management/modules/products/schemas/index.d.ts +2 -0
- package/dist/product-management/modules/products/schemas/index.d.ts.map +1 -1
- package/dist/product-management/modules/products/schemas/index.js +6 -3
- package/dist/product-management/modules/products/schemas/index.js.map +1 -1
- package/dist/product-management/modules/products/types/index.d.ts +3 -0
- package/dist/product-management/modules/products/types/index.d.ts.map +1 -1
- package/dist/product-management/modules/products/types/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -17,131 +17,164 @@ function h(e) {
|
|
|
17
17
|
}
|
|
18
18
|
return [];
|
|
19
19
|
}
|
|
20
|
-
function g(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
}),
|
|
49
|
-
|
|
59
|
+
}), P = (e) => {
|
|
60
|
+
N((t) => ({
|
|
50
61
|
...t,
|
|
51
62
|
[e]: !t[e]
|
|
52
63
|
}));
|
|
53
|
-
},
|
|
54
|
-
|
|
64
|
+
}, F = () => {
|
|
65
|
+
T((e) => [...e, {
|
|
55
66
|
platform: "",
|
|
56
67
|
url: ""
|
|
57
68
|
}]);
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
|
|
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
|
-
},
|
|
66
|
-
let e =
|
|
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
|
-
},
|
|
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 =
|
|
75
|
-
...
|
|
76
|
-
socialLinks:
|
|
104
|
+
let e = _ ? a : i, t = {
|
|
105
|
+
...S,
|
|
106
|
+
socialLinks: R(),
|
|
107
|
+
resourceLinks: H()
|
|
77
108
|
};
|
|
78
|
-
return e.parse(t),
|
|
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
|
-
}),
|
|
116
|
+
}), j(t);
|
|
86
117
|
}
|
|
87
118
|
return !1;
|
|
88
119
|
}
|
|
89
|
-
},
|
|
90
|
-
if (e.preventDefault(), !
|
|
91
|
-
let t =
|
|
92
|
-
await _
|
|
93
|
-
name:
|
|
94
|
-
description:
|
|
95
|
-
status:
|
|
96
|
-
logoUrl:
|
|
97
|
-
website:
|
|
98
|
-
appUrl:
|
|
99
|
-
docsUrl:
|
|
100
|
-
githubUrl:
|
|
101
|
-
statusPageUrl:
|
|
102
|
-
contactEmail:
|
|
103
|
-
supportEmail:
|
|
104
|
-
contactPhone:
|
|
105
|
-
contactAddress:
|
|
106
|
-
seoTitle:
|
|
107
|
-
seoDescription:
|
|
108
|
-
seoKeywords:
|
|
109
|
-
ogImage:
|
|
110
|
-
appStoreUrl:
|
|
111
|
-
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
|
-
|
|
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 !== (
|
|
148
|
+
return n && n !== (_.recaptchaSiteKey || "") && (i.recaptchaSiteKey = n), r && (i.recaptchaSecretKey = r), i;
|
|
117
149
|
})()
|
|
118
150
|
} : {
|
|
119
|
-
name:
|
|
120
|
-
slug:
|
|
121
|
-
description:
|
|
122
|
-
status:
|
|
123
|
-
logoUrl:
|
|
124
|
-
website:
|
|
125
|
-
appUrl:
|
|
126
|
-
docsUrl:
|
|
127
|
-
githubUrl:
|
|
128
|
-
statusPageUrl:
|
|
129
|
-
contactEmail:
|
|
130
|
-
supportEmail:
|
|
131
|
-
contactPhone:
|
|
132
|
-
contactAddress:
|
|
133
|
-
seoTitle:
|
|
134
|
-
seoDescription:
|
|
135
|
-
seoKeywords:
|
|
136
|
-
ogImage:
|
|
137
|
-
appStoreUrl:
|
|
138
|
-
playStoreUrl:
|
|
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
|
-
|
|
172
|
+
resourceLinks: n,
|
|
173
|
+
tags: O
|
|
141
174
|
});
|
|
142
|
-
},
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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:
|
|
171
|
-
onChange: (e) =>
|
|
172
|
-
...
|
|
203
|
+
value: S.name,
|
|
204
|
+
onChange: (e) => C({
|
|
205
|
+
...S,
|
|
173
206
|
name: e.target.value
|
|
174
207
|
}),
|
|
175
|
-
className:
|
|
176
|
-
placeholder:
|
|
177
|
-
disabled:
|
|
208
|
+
className: G,
|
|
209
|
+
placeholder: x("products.enterProductName", "Enter product name"),
|
|
210
|
+
disabled: b,
|
|
178
211
|
required: !0
|
|
179
212
|
}),
|
|
180
|
-
|
|
213
|
+
A.name && /* @__PURE__ */ p("p", {
|
|
181
214
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
182
|
-
children:
|
|
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
|
-
|
|
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:
|
|
202
|
-
onChange: (e) =>
|
|
203
|
-
...
|
|
234
|
+
value: S.slug,
|
|
235
|
+
onChange: (e) => C({
|
|
236
|
+
...S,
|
|
204
237
|
slug: e.target.value.toLowerCase().replace(/\s+/g, "-")
|
|
205
238
|
}),
|
|
206
|
-
className:
|
|
239
|
+
className: G,
|
|
207
240
|
placeholder: "product-slug",
|
|
208
|
-
disabled:
|
|
209
|
-
required: !
|
|
241
|
+
disabled: b || !!_,
|
|
242
|
+
required: !_
|
|
210
243
|
}),
|
|
211
244
|
/* @__PURE__ */ p("p", {
|
|
212
245
|
className: "text-xs text-text-tertiary mt-1",
|
|
213
|
-
children:
|
|
246
|
+
children: x("products.slugHint", "Lowercase letters, numbers, and hyphens only. Cannot be changed after creation.")
|
|
214
247
|
}),
|
|
215
|
-
|
|
248
|
+
A.slug && /* @__PURE__ */ p("p", {
|
|
216
249
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
217
|
-
children:
|
|
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:
|
|
256
|
+
children: x("products.description", "Description")
|
|
224
257
|
}), /* @__PURE__ */ p("textarea", {
|
|
225
258
|
id: "description",
|
|
226
|
-
value:
|
|
227
|
-
onChange: (e) =>
|
|
228
|
-
...
|
|
259
|
+
value: S.description,
|
|
260
|
+
onChange: (e) => C({
|
|
261
|
+
...S,
|
|
229
262
|
description: e.target.value
|
|
230
263
|
}),
|
|
231
264
|
rows: 3,
|
|
232
|
-
className:
|
|
233
|
-
placeholder:
|
|
234
|
-
disabled:
|
|
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:
|
|
272
|
+
children: x("products.status", "Status")
|
|
240
273
|
}), /* @__PURE__ */ m("select", {
|
|
241
274
|
id: "status",
|
|
242
|
-
value:
|
|
243
|
-
onChange: (e) =>
|
|
244
|
-
...
|
|
275
|
+
value: S.status,
|
|
276
|
+
onChange: (e) => C({
|
|
277
|
+
...S,
|
|
245
278
|
status: e.target.value
|
|
246
279
|
}),
|
|
247
|
-
className:
|
|
248
|
-
disabled:
|
|
280
|
+
className: G,
|
|
281
|
+
disabled: b,
|
|
249
282
|
children: [
|
|
250
283
|
/* @__PURE__ */ p("option", {
|
|
251
284
|
value: t.ACTIVE,
|
|
252
|
-
children:
|
|
285
|
+
children: x("products.statusActive", "Active")
|
|
253
286
|
}),
|
|
254
287
|
/* @__PURE__ */ p("option", {
|
|
255
288
|
value: t.DRAFT,
|
|
256
|
-
children:
|
|
289
|
+
children: x("products.statusDraft", "Draft")
|
|
257
290
|
}),
|
|
258
291
|
/* @__PURE__ */ p("option", {
|
|
259
292
|
value: t.WAITLIST,
|
|
260
|
-
children:
|
|
293
|
+
children: x("products.statusWaitlist", "Waitlist")
|
|
261
294
|
}),
|
|
262
295
|
/* @__PURE__ */ p("option", {
|
|
263
296
|
value: t.COMING_SOON,
|
|
264
|
-
children:
|
|
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:
|
|
304
|
+
children: x("products.tags", "Tags")
|
|
272
305
|
}),
|
|
273
306
|
/* @__PURE__ */ p(n, {
|
|
274
|
-
value:
|
|
275
|
-
onChange:
|
|
276
|
-
disabled:
|
|
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:
|
|
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:
|
|
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:
|
|
329
|
+
children: x("products.logoUrl", "Logo URL")
|
|
297
330
|
}),
|
|
298
331
|
/* @__PURE__ */ p("input", {
|
|
299
332
|
id: "logoUrl",
|
|
300
333
|
type: "url",
|
|
301
|
-
value:
|
|
302
|
-
onChange: (e) =>
|
|
303
|
-
...
|
|
334
|
+
value: S.logoUrl,
|
|
335
|
+
onChange: (e) => C({
|
|
336
|
+
...S,
|
|
304
337
|
logoUrl: e.target.value
|
|
305
338
|
}),
|
|
306
|
-
className:
|
|
339
|
+
className: G,
|
|
307
340
|
placeholder: "https://example.com/logo.png",
|
|
308
|
-
disabled:
|
|
341
|
+
disabled: b
|
|
309
342
|
}),
|
|
310
|
-
|
|
343
|
+
A.logoUrl && /* @__PURE__ */ p("p", {
|
|
311
344
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
312
|
-
children:
|
|
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
|
-
|
|
353
|
+
x("products.appUrl", "App URL"),
|
|
321
354
|
" ",
|
|
322
355
|
/* @__PURE__ */ p("span", {
|
|
323
356
|
className: "text-[var(--color-status-warning)]",
|
|
324
|
-
children:
|
|
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:
|
|
332
|
-
onChange: (e) =>
|
|
333
|
-
...
|
|
364
|
+
value: S.appUrl,
|
|
365
|
+
onChange: (e) => C({
|
|
366
|
+
...S,
|
|
334
367
|
appUrl: e.target.value
|
|
335
368
|
}),
|
|
336
|
-
className:
|
|
369
|
+
className: G,
|
|
337
370
|
placeholder: "https://app.product.com/",
|
|
338
|
-
disabled:
|
|
371
|
+
disabled: b
|
|
339
372
|
}),
|
|
340
373
|
/* @__PURE__ */ p("p", {
|
|
341
374
|
className: "text-xs text-text-tertiary mt-1",
|
|
342
|
-
children:
|
|
375
|
+
children: x("products.appUrlHint", "The main application URL. Products without an App URL won't appear in the product switcher.")
|
|
343
376
|
}),
|
|
344
|
-
|
|
377
|
+
A.appUrl && /* @__PURE__ */ p("p", {
|
|
345
378
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
346
|
-
children:
|
|
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:
|
|
386
|
+
children: x("products.websiteUrl", "Website URL")
|
|
354
387
|
}),
|
|
355
388
|
/* @__PURE__ */ p("input", {
|
|
356
389
|
id: "website",
|
|
357
390
|
type: "url",
|
|
358
|
-
value:
|
|
359
|
-
onChange: (e) =>
|
|
360
|
-
...
|
|
391
|
+
value: S.website,
|
|
392
|
+
onChange: (e) => C({
|
|
393
|
+
...S,
|
|
361
394
|
website: e.target.value
|
|
362
395
|
}),
|
|
363
|
-
className:
|
|
396
|
+
className: G,
|
|
364
397
|
placeholder: "https://product.com/",
|
|
365
|
-
disabled:
|
|
398
|
+
disabled: b
|
|
366
399
|
}),
|
|
367
|
-
|
|
400
|
+
A.website && /* @__PURE__ */ p("p", {
|
|
368
401
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
369
|
-
children:
|
|
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:
|
|
409
|
+
children: x("products.documentationUrl", "Documentation URL")
|
|
377
410
|
}),
|
|
378
411
|
/* @__PURE__ */ p("input", {
|
|
379
412
|
id: "docsUrl",
|
|
380
413
|
type: "url",
|
|
381
|
-
value:
|
|
382
|
-
onChange: (e) =>
|
|
383
|
-
...
|
|
414
|
+
value: S.docsUrl,
|
|
415
|
+
onChange: (e) => C({
|
|
416
|
+
...S,
|
|
384
417
|
docsUrl: e.target.value
|
|
385
418
|
}),
|
|
386
|
-
className:
|
|
419
|
+
className: G,
|
|
387
420
|
placeholder: "https://docs.product.com/",
|
|
388
|
-
disabled:
|
|
421
|
+
disabled: b
|
|
389
422
|
}),
|
|
390
|
-
|
|
423
|
+
A.docsUrl && /* @__PURE__ */ p("p", {
|
|
391
424
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
392
|
-
children:
|
|
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:
|
|
432
|
+
children: x("products.githubUrl", "GitHub URL")
|
|
400
433
|
}),
|
|
401
434
|
/* @__PURE__ */ p("input", {
|
|
402
435
|
id: "githubUrl",
|
|
403
436
|
type: "url",
|
|
404
|
-
value:
|
|
405
|
-
onChange: (e) =>
|
|
406
|
-
...
|
|
437
|
+
value: S.githubUrl,
|
|
438
|
+
onChange: (e) => C({
|
|
439
|
+
...S,
|
|
407
440
|
githubUrl: e.target.value
|
|
408
441
|
}),
|
|
409
|
-
className:
|
|
442
|
+
className: G,
|
|
410
443
|
placeholder: "https://github.com/org/repo",
|
|
411
|
-
disabled:
|
|
444
|
+
disabled: b
|
|
412
445
|
}),
|
|
413
|
-
|
|
446
|
+
A.githubUrl && /* @__PURE__ */ p("p", {
|
|
414
447
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
415
|
-
children:
|
|
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:
|
|
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:
|
|
428
|
-
onChange: (e) =>
|
|
429
|
-
...
|
|
460
|
+
value: S.statusPageUrl,
|
|
461
|
+
onChange: (e) => C({
|
|
462
|
+
...S,
|
|
430
463
|
statusPageUrl: e.target.value
|
|
431
464
|
}),
|
|
432
|
-
className:
|
|
465
|
+
className: G,
|
|
433
466
|
placeholder: "https://status.product.com/",
|
|
434
|
-
disabled:
|
|
467
|
+
disabled: b
|
|
435
468
|
}),
|
|
436
|
-
|
|
469
|
+
A.statusPageUrl && /* @__PURE__ */ p("p", {
|
|
437
470
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
438
|
-
children:
|
|
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: () =>
|
|
448
|
-
className:
|
|
449
|
-
children: [
|
|
450
|
-
}),
|
|
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:
|
|
490
|
+
children: x("products.contactEmail", "Contact Email")
|
|
458
491
|
}),
|
|
459
492
|
/* @__PURE__ */ p("input", {
|
|
460
493
|
id: "contactEmail",
|
|
461
494
|
type: "email",
|
|
462
|
-
value:
|
|
463
|
-
onChange: (e) =>
|
|
464
|
-
...
|
|
495
|
+
value: S.contactEmail,
|
|
496
|
+
onChange: (e) => C({
|
|
497
|
+
...S,
|
|
465
498
|
contactEmail: e.target.value
|
|
466
499
|
}),
|
|
467
|
-
className:
|
|
500
|
+
className: G,
|
|
468
501
|
placeholder: "contact@product.com",
|
|
469
|
-
disabled:
|
|
502
|
+
disabled: b
|
|
470
503
|
}),
|
|
471
|
-
|
|
504
|
+
A.contactEmail && /* @__PURE__ */ p("p", {
|
|
472
505
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
473
|
-
children:
|
|
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:
|
|
513
|
+
children: x("products.supportEmail", "Support Email")
|
|
481
514
|
}),
|
|
482
515
|
/* @__PURE__ */ p("input", {
|
|
483
516
|
id: "supportEmail",
|
|
484
517
|
type: "email",
|
|
485
|
-
value:
|
|
486
|
-
onChange: (e) =>
|
|
487
|
-
...
|
|
518
|
+
value: S.supportEmail,
|
|
519
|
+
onChange: (e) => C({
|
|
520
|
+
...S,
|
|
488
521
|
supportEmail: e.target.value
|
|
489
522
|
}),
|
|
490
|
-
className:
|
|
523
|
+
className: G,
|
|
491
524
|
placeholder: "support@product.com",
|
|
492
|
-
disabled:
|
|
525
|
+
disabled: b
|
|
493
526
|
}),
|
|
494
|
-
|
|
527
|
+
A.supportEmail && /* @__PURE__ */ p("p", {
|
|
495
528
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
496
|
-
children:
|
|
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:
|
|
536
|
+
children: x("products.contactPhone", "Contact Phone")
|
|
504
537
|
}),
|
|
505
538
|
/* @__PURE__ */ p("input", {
|
|
506
539
|
id: "contactPhone",
|
|
507
540
|
type: "tel",
|
|
508
|
-
value:
|
|
509
|
-
onChange: (e) =>
|
|
510
|
-
...
|
|
541
|
+
value: S.contactPhone,
|
|
542
|
+
onChange: (e) => C({
|
|
543
|
+
...S,
|
|
511
544
|
contactPhone: e.target.value
|
|
512
545
|
}),
|
|
513
|
-
className:
|
|
546
|
+
className: G,
|
|
514
547
|
placeholder: "+1 (555) 123-4567",
|
|
515
|
-
disabled:
|
|
548
|
+
disabled: b
|
|
516
549
|
}),
|
|
517
|
-
|
|
550
|
+
A.contactPhone && /* @__PURE__ */ p("p", {
|
|
518
551
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
519
|
-
children:
|
|
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:
|
|
559
|
+
children: x("products.contactAddress", "Contact Address")
|
|
527
560
|
}),
|
|
528
561
|
/* @__PURE__ */ p("textarea", {
|
|
529
562
|
id: "contactAddress",
|
|
530
|
-
value:
|
|
531
|
-
onChange: (e) =>
|
|
532
|
-
...
|
|
563
|
+
value: S.contactAddress,
|
|
564
|
+
onChange: (e) => C({
|
|
565
|
+
...S,
|
|
533
566
|
contactAddress: e.target.value
|
|
534
567
|
}),
|
|
535
568
|
rows: 3,
|
|
536
|
-
className:
|
|
569
|
+
className: G,
|
|
537
570
|
placeholder: "123 Main St, City, State, ZIP",
|
|
538
|
-
disabled:
|
|
571
|
+
disabled: b
|
|
539
572
|
}),
|
|
540
|
-
|
|
573
|
+
A.contactAddress && /* @__PURE__ */ p("p", {
|
|
541
574
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
542
|
-
children:
|
|
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: () =>
|
|
553
|
-
className:
|
|
554
|
-
children: [
|
|
555
|
-
}),
|
|
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:
|
|
595
|
+
children: x("products.seoTitle", "SEO Title")
|
|
563
596
|
}),
|
|
564
597
|
/* @__PURE__ */ p("input", {
|
|
565
598
|
id: "seoTitle",
|
|
566
599
|
type: "text",
|
|
567
|
-
value:
|
|
568
|
-
onChange: (e) =>
|
|
569
|
-
...
|
|
600
|
+
value: S.seoTitle,
|
|
601
|
+
onChange: (e) => C({
|
|
602
|
+
...S,
|
|
570
603
|
seoTitle: e.target.value
|
|
571
604
|
}),
|
|
572
|
-
className:
|
|
605
|
+
className: G,
|
|
573
606
|
placeholder: "Product SEO title",
|
|
574
|
-
disabled:
|
|
607
|
+
disabled: b,
|
|
575
608
|
maxLength: 100
|
|
576
609
|
}),
|
|
577
610
|
/* @__PURE__ */ m("div", {
|
|
578
611
|
className: "flex justify-between mt-1",
|
|
579
|
-
children: [
|
|
612
|
+
children: [A.seoTitle ? /* @__PURE__ */ p("p", {
|
|
580
613
|
className: "text-sm text-[var(--color-status-error)]",
|
|
581
|
-
children:
|
|
614
|
+
children: A.seoTitle
|
|
582
615
|
}) : /* @__PURE__ */ p("span", {}), /* @__PURE__ */ m("p", {
|
|
583
616
|
className: "text-xs text-text-tertiary",
|
|
584
|
-
children: [
|
|
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:
|
|
625
|
+
children: x("products.seoDescription", "SEO Description")
|
|
593
626
|
}),
|
|
594
627
|
/* @__PURE__ */ p("textarea", {
|
|
595
628
|
id: "seoDescription",
|
|
596
|
-
value:
|
|
597
|
-
onChange: (e) =>
|
|
598
|
-
...
|
|
629
|
+
value: S.seoDescription,
|
|
630
|
+
onChange: (e) => C({
|
|
631
|
+
...S,
|
|
599
632
|
seoDescription: e.target.value
|
|
600
633
|
}),
|
|
601
634
|
rows: 3,
|
|
602
|
-
className:
|
|
603
|
-
placeholder:
|
|
604
|
-
disabled:
|
|
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: [
|
|
642
|
+
children: [A.seoDescription ? /* @__PURE__ */ p("p", {
|
|
610
643
|
className: "text-sm text-[var(--color-status-error)]",
|
|
611
|
-
children:
|
|
644
|
+
children: A.seoDescription
|
|
612
645
|
}) : /* @__PURE__ */ p("span", {}), /* @__PURE__ */ m("p", {
|
|
613
646
|
className: "text-xs text-text-tertiary",
|
|
614
|
-
children: [
|
|
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:
|
|
655
|
+
children: x("products.seoKeywords", "SEO Keywords")
|
|
623
656
|
}),
|
|
624
657
|
/* @__PURE__ */ p("input", {
|
|
625
658
|
id: "seoKeywords",
|
|
626
659
|
type: "text",
|
|
627
|
-
value:
|
|
628
|
-
onChange: (e) =>
|
|
629
|
-
...
|
|
660
|
+
value: S.seoKeywords,
|
|
661
|
+
onChange: (e) => C({
|
|
662
|
+
...S,
|
|
630
663
|
seoKeywords: e.target.value
|
|
631
664
|
}),
|
|
632
|
-
className:
|
|
665
|
+
className: G,
|
|
633
666
|
placeholder: "keyword1, keyword2, keyword3",
|
|
634
|
-
disabled:
|
|
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:
|
|
672
|
+
children: x("products.seoKeywordsHint", "Comma-separated keywords for search engine optimization.")
|
|
640
673
|
}),
|
|
641
|
-
|
|
674
|
+
A.seoKeywords && /* @__PURE__ */ p("p", {
|
|
642
675
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
643
|
-
children:
|
|
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:
|
|
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:
|
|
656
|
-
onChange: (e) =>
|
|
657
|
-
...
|
|
688
|
+
value: S.ogImage,
|
|
689
|
+
onChange: (e) => C({
|
|
690
|
+
...S,
|
|
658
691
|
ogImage: e.target.value
|
|
659
692
|
}),
|
|
660
|
-
className:
|
|
693
|
+
className: G,
|
|
661
694
|
placeholder: "https://example.com/og-image.png",
|
|
662
|
-
disabled:
|
|
695
|
+
disabled: b
|
|
663
696
|
}),
|
|
664
697
|
/* @__PURE__ */ p("p", {
|
|
665
698
|
className: "text-xs text-text-tertiary mt-1",
|
|
666
|
-
children:
|
|
699
|
+
children: x("products.ogImageHint", "Open Graph image used when sharing on social media.")
|
|
667
700
|
}),
|
|
668
|
-
|
|
701
|
+
A.ogImage && /* @__PURE__ */ p("p", {
|
|
669
702
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
670
|
-
children:
|
|
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: () =>
|
|
681
|
-
className:
|
|
682
|
-
children: [
|
|
683
|
-
}),
|
|
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:
|
|
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:
|
|
695
|
-
onChange: (e) =>
|
|
696
|
-
...
|
|
727
|
+
value: S.appStoreUrl,
|
|
728
|
+
onChange: (e) => C({
|
|
729
|
+
...S,
|
|
697
730
|
appStoreUrl: e.target.value
|
|
698
731
|
}),
|
|
699
|
-
className:
|
|
732
|
+
className: G,
|
|
700
733
|
placeholder: "https://apps.apple.com/app/...",
|
|
701
|
-
disabled:
|
|
734
|
+
disabled: b
|
|
702
735
|
}),
|
|
703
|
-
|
|
736
|
+
A.appStoreUrl && /* @__PURE__ */ p("p", {
|
|
704
737
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
705
|
-
children:
|
|
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:
|
|
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:
|
|
717
|
-
onChange: (e) =>
|
|
718
|
-
...
|
|
749
|
+
value: S.playStoreUrl,
|
|
750
|
+
onChange: (e) => C({
|
|
751
|
+
...S,
|
|
719
752
|
playStoreUrl: e.target.value
|
|
720
753
|
}),
|
|
721
|
-
className:
|
|
754
|
+
className: G,
|
|
722
755
|
placeholder: "https://play.google.com/store/apps/details?id=...",
|
|
723
|
-
disabled:
|
|
756
|
+
disabled: b
|
|
724
757
|
}),
|
|
725
|
-
|
|
758
|
+
A.playStoreUrl && /* @__PURE__ */ p("p", {
|
|
726
759
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
727
|
-
children:
|
|
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: () =>
|
|
737
|
-
className:
|
|
738
|
-
children: [
|
|
739
|
-
}),
|
|
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: [
|
|
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:
|
|
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) =>
|
|
755
|
-
className:
|
|
787
|
+
onChange: (e) => L(t, "platform", e.target.value),
|
|
788
|
+
className: G,
|
|
756
789
|
placeholder: "e.g. twitter",
|
|
757
|
-
disabled:
|
|
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:
|
|
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) =>
|
|
771
|
-
className:
|
|
803
|
+
onChange: (e) => L(t, "url", e.target.value),
|
|
804
|
+
className: G,
|
|
772
805
|
placeholder: "https://twitter.com/yourproduct",
|
|
773
|
-
disabled:
|
|
806
|
+
disabled: b
|
|
774
807
|
})]
|
|
775
808
|
}),
|
|
776
809
|
/* @__PURE__ */ p("button", {
|
|
777
810
|
type: "button",
|
|
778
|
-
onClick: () =>
|
|
779
|
-
disabled:
|
|
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:
|
|
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:
|
|
788
|
-
disabled:
|
|
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 }),
|
|
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: () =>
|
|
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
|
-
|
|
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
|
-
|
|
908
|
+
x("products.integrations", "Integrations"),
|
|
807
909
|
/* @__PURE__ */ p("span", {
|
|
808
910
|
className: "text-xs font-normal text-text-secondary ml-1",
|
|
809
|
-
children:
|
|
911
|
+
children: x("products.recaptcha", "(reCAPTCHA)")
|
|
810
912
|
})
|
|
811
913
|
]
|
|
812
|
-
}),
|
|
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:
|
|
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:
|
|
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:
|
|
828
|
-
disabled:
|
|
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:
|
|
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:
|
|
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:
|
|
847
|
-
placeholder:
|
|
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:
|
|
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:
|
|
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: [
|
|
966
|
+
children: [b && /* @__PURE__ */ p(l, {
|
|
865
967
|
size: 16,
|
|
866
968
|
className: "animate-spin"
|
|
867
|
-
}),
|
|
969
|
+
}), _ ? x("products.updateProduct", "Update Product") : x("products.createProduct", "Create Product")]
|
|
868
970
|
}), /* @__PURE__ */ p("button", {
|
|
869
971
|
type: "button",
|
|
870
|
-
onClick:
|
|
871
|
-
disabled:
|
|
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:
|
|
975
|
+
children: x("productCommon.cancel", "Cancel")
|
|
874
976
|
})]
|
|
875
977
|
})
|
|
876
978
|
]
|
|
877
979
|
});
|
|
878
980
|
}
|
|
879
981
|
//#endregion
|
|
880
|
-
export {
|
|
982
|
+
export { _ as ProductForm };
|
|
881
983
|
|
|
882
984
|
//# sourceMappingURL=ProductForm.js.map
|