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