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