@vicacha-devs/medusa-plugin-stories 0.0.0-stage → 0.0.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/.medusa/server/src/__tests__/stories-plugin.spec.js +358 -0
- package/.medusa/server/src/admin/i18n/index.js +35 -0
- package/.medusa/server/src/admin/i18n/json/ar.json +196 -0
- package/.medusa/server/src/admin/i18n/json/de.json +196 -0
- package/.medusa/server/src/admin/i18n/json/en.json +196 -0
- package/.medusa/server/src/admin/i18n/json/es.json +196 -0
- package/.medusa/server/src/admin/i18n/json/fr.json +196 -0
- package/.medusa/server/src/admin/i18n/json/it.json +196 -0
- package/.medusa/server/src/admin/i18n/json/nl.json +196 -0
- package/.medusa/server/src/admin/i18n/json/pl.json +196 -0
- package/.medusa/server/src/admin/i18n/json/pt.json +196 -0
- package/.medusa/server/src/admin/i18n/json/tr.json +196 -0
- package/.medusa/server/src/admin/index.cjs +4699 -0
- package/.medusa/server/src/admin/index.js +4699 -0
- package/.medusa/server/src/api/admin/plugin/route.js +4 -0
- package/.medusa/server/src/api/admin/stories/[id]/hotspots/route.js +14 -0
- package/.medusa/server/src/api/admin/stories/[id]/route.js +27 -0
- package/.medusa/server/src/api/admin/stories/[id]/stickers/route.js +14 -0
- package/.medusa/server/src/api/admin/stories/analytics/route.js +7 -0
- package/.medusa/server/src/api/admin/stories/groups/[id]/route.js +23 -0
- package/.medusa/server/src/api/admin/stories/groups/route.js +15 -0
- package/.medusa/server/src/api/admin/stories/route.js +21 -0
- package/.medusa/server/src/api/middlewares.js +58 -0
- package/.medusa/server/src/api/store/plugin/route.js +4 -0
- package/.medusa/server/src/api/store/stories/[id]/events/route.js +12 -0
- package/.medusa/server/src/api/store/stories/[id]/interact/route.js +14 -0
- package/.medusa/server/src/api/store/stories/route.js +33 -0
- package/.medusa/server/src/api/validators.js +136 -0
- package/.medusa/server/src/hooks/index.js +213 -0
- package/.medusa/server/src/hooks/use-sdk-primitives.js +93 -0
- package/.medusa/server/src/index.js +6 -0
- package/.medusa/server/src/jobs/expire-ephemeral-stories.js +10 -0
- package/.medusa/server/src/modules/index.js +7 -0
- package/.medusa/server/src/modules/stories/index.js +3 -0
- package/.medusa/server/src/modules/story/index.js +23 -0
- package/.medusa/server/src/modules/story/migrations/Migration20260514000000.js +181 -0
- package/.medusa/server/src/modules/story/models/index.js +141 -0
- package/.medusa/server/src/modules/story/service.js +673 -0
- package/.medusa/server/src/modules/story/types.js +3 -0
- package/.medusa/server/src/modules/story/utils/security.js +76 -0
- package/.medusa/server/src/rbac.js +75 -0
- package/.medusa/server/src/sdk/index.js +148 -0
- package/.medusa/server/src/subscribers/product-deleted.js +11 -0
- package/.medusa/server/src/types/index.js +2 -0
- package/.medusa/server/src/ui/index.js +5 -0
- package/.medusa/server/src/ui/story-hotspot-pin.js +43 -0
- package/.medusa/server/src/ui/story-player-modal.js +104 -0
- package/.medusa/server/src/ui/story-product-sheet.js +7 -0
- package/.medusa/server/src/ui/story-rings-bar.js +42 -0
- package/.medusa/server/src/workflows/index.js +50 -0
- package/LICENSE +21 -0
- package/README.md +246 -2
- package/package.json +127 -3
- package/src/__tests__/medusa-shim.mjs +533 -0
- package/src/__tests__/register-ts-resolver.mjs +141 -0
- package/src/__tests__/stories-plugin.spec.ts +526 -0
- package/src/admin/README.md +94 -0
- package/src/admin/components/analytics-tab.tsx +225 -0
- package/src/admin/components/canvas-editor-tab.tsx +77 -0
- package/src/admin/components/hotspot-form-section.tsx +155 -0
- package/src/admin/components/index.ts +15 -0
- package/src/admin/components/overview-cards.tsx +96 -0
- package/src/admin/components/product-stories-card.tsx +123 -0
- package/src/admin/components/rbac-guard.tsx +153 -0
- package/src/admin/components/slide-form-section.tsx +187 -0
- package/src/admin/components/slide-preview-canvas.tsx +166 -0
- package/src/admin/components/slide-timeline-section.tsx +126 -0
- package/src/admin/components/sticker-form-section.tsx +201 -0
- package/src/admin/components/sticker-list-section.tsx +113 -0
- package/src/admin/components/stickers-tab.tsx +34 -0
- package/src/admin/components/story-ring-form.tsx +241 -0
- package/src/admin/components/story-rings-tab.tsx +204 -0
- package/src/admin/components/story-rings-table.tsx +222 -0
- package/src/admin/components/studio-header.tsx +67 -0
- package/src/admin/hooks/use-product-stories.ts +71 -0
- package/src/admin/hooks/use-stories-studio.ts +439 -0
- package/src/admin/i18n/README.md +84 -0
- package/src/admin/i18n/index.ts +36 -0
- package/src/admin/i18n/json/ar.json +196 -0
- package/src/admin/i18n/json/de.json +196 -0
- package/src/admin/i18n/json/en.json +196 -0
- package/src/admin/i18n/json/es.json +196 -0
- package/src/admin/i18n/json/fr.json +196 -0
- package/src/admin/i18n/json/it.json +196 -0
- package/src/admin/i18n/json/nl.json +196 -0
- package/src/admin/i18n/json/pl.json +196 -0
- package/src/admin/i18n/json/pt.json +196 -0
- package/src/admin/i18n/json/tr.json +196 -0
- package/src/admin/routes/stories/analytics/page.tsx +66 -0
- package/src/admin/routes/stories/canvas/page.tsx +101 -0
- package/src/admin/routes/stories/page.tsx +164 -0
- package/src/admin/routes/stories/rings/@create/page.tsx +61 -0
- package/src/admin/routes/stories/rings/page.tsx +88 -0
- package/src/admin/routes/stories/stickers/page.tsx +74 -0
- package/src/admin/tsconfig.json +23 -0
- package/src/admin/utils/theme-presets.ts +94 -0
- package/src/admin/vite-env.d.ts +1 -0
- package/src/admin/widgets/product-stories-widget.tsx +32 -0
- package/src/api/README.md +61 -0
- package/src/api/admin/plugin/route.ts +5 -0
- package/src/api/admin/stories/[id]/hotspots/route.ts +17 -0
- package/src/api/admin/stories/[id]/route.ts +40 -0
- package/src/api/admin/stories/[id]/stickers/route.ts +20 -0
- package/src/api/admin/stories/analytics/route.ts +8 -0
- package/src/api/admin/stories/groups/[id]/route.ts +30 -0
- package/src/api/admin/stories/groups/route.ts +18 -0
- package/src/api/admin/stories/route.ts +31 -0
- package/src/api/middlewares.ts +73 -0
- package/src/api/store/plugin/route.ts +5 -0
- package/src/api/store/stories/[id]/events/route.ts +14 -0
- package/src/api/store/stories/[id]/interact/route.ts +18 -0
- package/src/api/store/stories/route.ts +44 -0
- package/src/api/validators.ts +166 -0
- package/src/hooks/index.ts +419 -0
- package/src/hooks/use-sdk-primitives.ts +114 -0
- package/src/index.ts +14 -0
- package/src/jobs/README.md +16 -0
- package/src/jobs/expire-ephemeral-stories.ts +14 -0
- package/src/links/README.md +18 -0
- package/src/modules/README.md +46 -0
- package/src/modules/index.ts +15 -0
- package/src/modules/stories/index.ts +11 -0
- package/src/modules/story/index.ts +34 -0
- package/src/modules/story/migrations/Migration20260514000000.ts +196 -0
- package/src/modules/story/models/index.ts +146 -0
- package/src/modules/story/service.ts +1052 -0
- package/src/modules/story/types.ts +190 -0
- package/src/modules/story/utils/security.ts +100 -0
- package/src/providers/README.md +14 -0
- package/src/rbac.ts +89 -0
- package/src/sdk/index.ts +233 -0
- package/src/subscribers/README.md +16 -0
- package/src/subscribers/product-deleted.ts +15 -0
- package/src/types/index.ts +1 -0
- package/src/types/medusa-ui.d.ts +451 -0
- package/src/ui/index.ts +4 -0
- package/src/ui/story-hotspot-pin.tsx +122 -0
- package/src/ui/story-player-modal.tsx +361 -0
- package/src/ui/story-product-sheet.tsx +85 -0
- package/src/ui/story-rings-bar.tsx +113 -0
- package/src/workflows/README.md +19 -0
- package/src/workflows/index.ts +217 -0
- package/tsconfig.json +39 -0
|
@@ -0,0 +1,4699 @@
|
|
|
1
|
+
let _medusajs_admin_sdk = require("@medusajs/admin-sdk");
|
|
2
|
+
let react_i18next = require("react-i18next");
|
|
3
|
+
let _medusajs_dashboard_components = require("@medusajs/dashboard/components");
|
|
4
|
+
let _medusajs_icons = require("@medusajs/icons");
|
|
5
|
+
let _medusajs_ui = require("@medusajs/ui");
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
let react = require("react");
|
|
8
|
+
let _hookform_resolvers_zod = require("@hookform/resolvers/zod");
|
|
9
|
+
let react_hook_form = require("react-hook-form");
|
|
10
|
+
let zod = require("zod");
|
|
11
|
+
let _medusajs_framework_utils = require("@medusajs/framework/utils");
|
|
12
|
+
let _medusajs_admin_shared = require("@medusajs/admin-shared");
|
|
13
|
+
let react_router_dom = require("react-router-dom");
|
|
14
|
+
// src/admin/components/overview-cards.tsx
|
|
15
|
+
var StatCard = ({ title, value, icon, loading = false, onClick }) => {
|
|
16
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Container, {
|
|
17
|
+
className: (0, _medusajs_ui.clx)("p-0", onClick ? "cursor-pointer hover:bg-ui-bg-subtle-hover transition-colors" : ""),
|
|
18
|
+
onClick,
|
|
19
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
20
|
+
className: "p-5",
|
|
21
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
22
|
+
className: "flex items-center justify-between",
|
|
23
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
24
|
+
className: "text-ui-fg-subtle",
|
|
25
|
+
children: title
|
|
26
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
27
|
+
className: "flex items-center justify-center w-8 h-8 rounded-md bg-ui-bg-subtle",
|
|
28
|
+
children: icon
|
|
29
|
+
})]
|
|
30
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
31
|
+
className: "mt-3",
|
|
32
|
+
children: loading ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Skeleton, { className: "h-8 w-16" }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
33
|
+
level: "h2",
|
|
34
|
+
children: value
|
|
35
|
+
})
|
|
36
|
+
})]
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
var NavigationCard = ({ icon, title, description, onClick, position }) => {
|
|
41
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
42
|
+
type: "button",
|
|
43
|
+
className: (0, _medusajs_ui.clx)("text-left p-6 hover:bg-ui-bg-subtle-hover transition-colors", !(position === "bottom-left" || position === "bottom-right") ? "border-b border-ui-border-base" : "", position === "top-left" || position === "bottom-left" ? "md:border-r md:border-ui-border-base" : ""),
|
|
44
|
+
onClick,
|
|
45
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
46
|
+
className: "flex items-start gap-x-3",
|
|
47
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
48
|
+
className: "flex items-center justify-center w-8 h-8 rounded-md bg-ui-bg-subtle shrink-0",
|
|
49
|
+
children: icon
|
|
50
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
51
|
+
level: "h3",
|
|
52
|
+
children: title
|
|
53
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
54
|
+
className: "text-ui-fg-subtle mt-1",
|
|
55
|
+
children: description
|
|
56
|
+
})] })]
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
// src/admin/utils/theme-presets.ts
|
|
61
|
+
var ADMIN_RING_THEME_PRESETS = [
|
|
62
|
+
{
|
|
63
|
+
id: "instagram",
|
|
64
|
+
label: "Instagram Classic",
|
|
65
|
+
gradient: "linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%)"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
id: "tiktok",
|
|
69
|
+
label: "TikTok Pulse",
|
|
70
|
+
gradient: "linear-gradient(135deg, #00f2fe 0%, #000000 50%, #ff0050 100%)"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: "sunset",
|
|
74
|
+
label: "Sunset Coral",
|
|
75
|
+
gradient: "linear-gradient(135deg, #ff512f 0%, #dd2476 100%)"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: "emerald",
|
|
79
|
+
label: "Emerald Mint",
|
|
80
|
+
gradient: "linear-gradient(135deg, #10b981 0%, #047857 100%)"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: "violet",
|
|
84
|
+
label: "Electric Violet",
|
|
85
|
+
gradient: "linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%)"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: "cyber",
|
|
89
|
+
label: "Cyber Neon",
|
|
90
|
+
gradient: "linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%)"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
id: "neon",
|
|
94
|
+
label: "Neon Lime",
|
|
95
|
+
gradient: "linear-gradient(135deg, #a8ff78 0%, #78ffd6 50%, #00f2fe 100%)"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: "gold",
|
|
99
|
+
label: "Luxury Gold",
|
|
100
|
+
gradient: "linear-gradient(135deg, #f59e0b 0%, #fde68a 50%, #b45309 100%)"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: "minimal",
|
|
104
|
+
label: "Minimal Monochrome",
|
|
105
|
+
gradient: "linear-gradient(135deg, #111827 0%, #6b7280 100%)"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: "custom",
|
|
109
|
+
label: "Custom Hex",
|
|
110
|
+
gradient: "linear-gradient(135deg, #6366f1 0%, #a855f7 100%)"
|
|
111
|
+
}
|
|
112
|
+
];
|
|
113
|
+
var resolveRingGradient = (theme, customColor) => {
|
|
114
|
+
if (theme === "custom" && customColor && /^#[0-9a-fA-F]{3,8}$/.test(customColor)) return customColor;
|
|
115
|
+
return ADMIN_RING_THEME_PRESETS.find((p) => p.id === theme)?.gradient ?? ADMIN_RING_THEME_PRESETS[0].gradient;
|
|
116
|
+
};
|
|
117
|
+
var sanitizeAdminMediaUrl = (raw) => {
|
|
118
|
+
if (!raw) return null;
|
|
119
|
+
const trimmed = raw.trim();
|
|
120
|
+
if (!trimmed) return null;
|
|
121
|
+
if (trimmed.startsWith("/") && !trimmed.startsWith("//")) return trimmed;
|
|
122
|
+
try {
|
|
123
|
+
const parsed = new URL(trimmed);
|
|
124
|
+
if (parsed.protocol === "http:" || parsed.protocol === "https:") return parsed.toString();
|
|
125
|
+
return null;
|
|
126
|
+
} catch {
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
// src/admin/components/story-ring-form.tsx
|
|
131
|
+
var PLACEMENT_ZONES = [
|
|
132
|
+
"home",
|
|
133
|
+
"collection",
|
|
134
|
+
"category",
|
|
135
|
+
"product",
|
|
136
|
+
"floating_bubble",
|
|
137
|
+
"global"
|
|
138
|
+
];
|
|
139
|
+
var RING_THEME_VALUES = [
|
|
140
|
+
"instagram",
|
|
141
|
+
"tiktok",
|
|
142
|
+
"sunset",
|
|
143
|
+
"emerald",
|
|
144
|
+
"violet",
|
|
145
|
+
"cyber",
|
|
146
|
+
"neon",
|
|
147
|
+
"gold",
|
|
148
|
+
"minimal",
|
|
149
|
+
"custom"
|
|
150
|
+
];
|
|
151
|
+
var PLACEMENT_VALUES = [
|
|
152
|
+
"home",
|
|
153
|
+
"collection",
|
|
154
|
+
"category",
|
|
155
|
+
"product",
|
|
156
|
+
"floating_bubble",
|
|
157
|
+
"global"
|
|
158
|
+
];
|
|
159
|
+
var makeStoryRingCreateFormSchema = () => zod.z.object({
|
|
160
|
+
title: zod.z.string().min(1),
|
|
161
|
+
subtitle: zod.z.string().optional(),
|
|
162
|
+
avatar_url: zod.z.string().optional(),
|
|
163
|
+
ring_theme: zod.z.enum(RING_THEME_VALUES),
|
|
164
|
+
custom_ring_color: zod.z.string().optional(),
|
|
165
|
+
placement: zod.z.enum(PLACEMENT_VALUES),
|
|
166
|
+
is_pinned: zod.z.boolean(),
|
|
167
|
+
is_ephemeral: zod.z.boolean()
|
|
168
|
+
});
|
|
169
|
+
var StoryRingCreateForm = ({ onSubmit, loading }) => {
|
|
170
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
171
|
+
const schema = (0, react.useMemo)(() => makeStoryRingCreateFormSchema(), []);
|
|
172
|
+
const form = (0, react_hook_form.useForm)({
|
|
173
|
+
resolver: (0, _hookform_resolvers_zod.zodResolver)(schema),
|
|
174
|
+
defaultValues: {
|
|
175
|
+
title: "",
|
|
176
|
+
subtitle: "",
|
|
177
|
+
avatar_url: "",
|
|
178
|
+
ring_theme: "instagram",
|
|
179
|
+
custom_ring_color: "#6366f1",
|
|
180
|
+
placement: "home",
|
|
181
|
+
is_pinned: true,
|
|
182
|
+
is_ephemeral: false
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
const ringTheme = form.watch("ring_theme");
|
|
186
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.RouteDrawer.Form, {
|
|
187
|
+
form,
|
|
188
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.KeyboundForm, {
|
|
189
|
+
onSubmit: form.handleSubmit(onSubmit),
|
|
190
|
+
className: "flex flex-1 flex-col overflow-hidden",
|
|
191
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.RouteDrawer.Body, {
|
|
192
|
+
className: "flex flex-1 flex-col gap-y-4 overflow-auto p-6",
|
|
193
|
+
children: [
|
|
194
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Field, {
|
|
195
|
+
control: form.control,
|
|
196
|
+
name: "title",
|
|
197
|
+
render: ({ field }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.Form.Item, { children: [
|
|
198
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Label, { children: t("ringsTab.titleField") }),
|
|
199
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Control, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
200
|
+
placeholder: t("ringsTab.titlePlaceholder"),
|
|
201
|
+
...field
|
|
202
|
+
}) }),
|
|
203
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.ErrorMessage, {})
|
|
204
|
+
] })
|
|
205
|
+
}),
|
|
206
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Field, {
|
|
207
|
+
control: form.control,
|
|
208
|
+
name: "subtitle",
|
|
209
|
+
render: ({ field }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.Form.Item, { children: [
|
|
210
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Label, {
|
|
211
|
+
optional: true,
|
|
212
|
+
children: t("ringsTab.subtitleField")
|
|
213
|
+
}),
|
|
214
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Control, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
215
|
+
placeholder: t("ringsTab.subtitlePlaceholder"),
|
|
216
|
+
...field
|
|
217
|
+
}) }),
|
|
218
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.ErrorMessage, {})
|
|
219
|
+
] })
|
|
220
|
+
}),
|
|
221
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Field, {
|
|
222
|
+
control: form.control,
|
|
223
|
+
name: "avatar_url",
|
|
224
|
+
render: ({ field }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.Form.Item, { children: [
|
|
225
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Label, {
|
|
226
|
+
optional: true,
|
|
227
|
+
children: t("ringsTab.avatarField")
|
|
228
|
+
}),
|
|
229
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Control, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
230
|
+
type: "url",
|
|
231
|
+
placeholder: t("ringsTab.avatarPlaceholder"),
|
|
232
|
+
...field
|
|
233
|
+
}) }),
|
|
234
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.ErrorMessage, {})
|
|
235
|
+
] })
|
|
236
|
+
}),
|
|
237
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Field, {
|
|
238
|
+
control: form.control,
|
|
239
|
+
name: "ring_theme",
|
|
240
|
+
render: ({ field }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.Form.Item, { children: [
|
|
241
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Label, { children: t("ringsTab.themeField") }),
|
|
242
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Control, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select, {
|
|
243
|
+
value: field.value,
|
|
244
|
+
onValueChange: field.onChange,
|
|
245
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Trigger, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Value, {}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Content, { children: ADMIN_RING_THEME_PRESETS.map((preset) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
246
|
+
value: preset.id,
|
|
247
|
+
children: t(`ringsTab.themes.${preset.id}`)
|
|
248
|
+
}, preset.id)) })]
|
|
249
|
+
}) }),
|
|
250
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.ErrorMessage, {})
|
|
251
|
+
] })
|
|
252
|
+
}),
|
|
253
|
+
ringTheme === "custom" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Field, {
|
|
254
|
+
control: form.control,
|
|
255
|
+
name: "custom_ring_color",
|
|
256
|
+
render: ({ field }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.Form.Item, { children: [
|
|
257
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Label, { children: t("ringsTab.customColorField") }),
|
|
258
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Control, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
259
|
+
placeholder: t("ringsTab.customColorPlaceholder"),
|
|
260
|
+
...field
|
|
261
|
+
}) }),
|
|
262
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.ErrorMessage, {})
|
|
263
|
+
] })
|
|
264
|
+
}),
|
|
265
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Field, {
|
|
266
|
+
control: form.control,
|
|
267
|
+
name: "placement",
|
|
268
|
+
render: ({ field }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.Form.Item, { children: [
|
|
269
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Label, { children: t("ringsTab.placementField") }),
|
|
270
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Control, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select, {
|
|
271
|
+
value: field.value,
|
|
272
|
+
onValueChange: field.onChange,
|
|
273
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Trigger, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Value, {}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Content, { children: PLACEMENT_ZONES.map((zone) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
274
|
+
value: zone,
|
|
275
|
+
children: t(`ringsTab.zones.${zone}`)
|
|
276
|
+
}, zone)) })]
|
|
277
|
+
}) }),
|
|
278
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.ErrorMessage, {})
|
|
279
|
+
] })
|
|
280
|
+
}),
|
|
281
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Field, {
|
|
282
|
+
control: form.control,
|
|
283
|
+
name: "is_pinned",
|
|
284
|
+
render: ({ field }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Item, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
285
|
+
className: "flex items-center justify-between pt-2",
|
|
286
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Label, { children: t("ringsTab.pinnedSwitch") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.Form.Control, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Switch, {
|
|
287
|
+
checked: field.value,
|
|
288
|
+
onCheckedChange: field.onChange
|
|
289
|
+
}) })]
|
|
290
|
+
}) })
|
|
291
|
+
})
|
|
292
|
+
]
|
|
293
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.RouteDrawer.Footer, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
294
|
+
className: "flex items-center justify-end gap-x-2",
|
|
295
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.RouteDrawer.Close, {
|
|
296
|
+
asChild: true,
|
|
297
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
298
|
+
size: "small",
|
|
299
|
+
variant: "secondary",
|
|
300
|
+
children: t("header.dismiss")
|
|
301
|
+
})
|
|
302
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
303
|
+
size: "small",
|
|
304
|
+
type: "submit",
|
|
305
|
+
isLoading: loading,
|
|
306
|
+
children: t("ringsTab.createButton")
|
|
307
|
+
})]
|
|
308
|
+
}) })]
|
|
309
|
+
})
|
|
310
|
+
});
|
|
311
|
+
};
|
|
312
|
+
// src/admin/components/story-rings-table.tsx
|
|
313
|
+
var StoryRingsPreviewSection = ({ groups, selectedGroupId, onSelectGroup, onOpenCreateDrawer }) => {
|
|
314
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
315
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
316
|
+
className: "divide-y p-0",
|
|
317
|
+
children: [
|
|
318
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
319
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
320
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
321
|
+
level: "h2",
|
|
322
|
+
children: t("ringsTab.previewTitle")
|
|
323
|
+
}), onOpenCreateDrawer && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
324
|
+
size: "small",
|
|
325
|
+
variant: "primary",
|
|
326
|
+
onClick: onOpenCreateDrawer,
|
|
327
|
+
children: t("ringsTab.createButton")
|
|
328
|
+
})]
|
|
329
|
+
}),
|
|
330
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.SectionRow, {
|
|
331
|
+
title: t("analyticsTab.colHighlightRing"),
|
|
332
|
+
value: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
333
|
+
size: "xsmall",
|
|
334
|
+
color: "purple",
|
|
335
|
+
children: groups.length
|
|
336
|
+
})
|
|
337
|
+
}),
|
|
338
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
339
|
+
className: "px-6 py-4 flex items-center gap-5 overflow-x-auto bg-ui-bg-subtle",
|
|
340
|
+
children: [groups.map((g) => {
|
|
341
|
+
const isSelected = g.id === selectedGroupId;
|
|
342
|
+
const safeAvatar = sanitizeAdminMediaUrl(g.avatar_url ?? g.slides?.[0]?.thumbnail_url ?? g.slides?.[0]?.media_url);
|
|
343
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
344
|
+
type: "button",
|
|
345
|
+
onClick: () => onSelectGroup(g.id),
|
|
346
|
+
className: "flex flex-col items-center gap-1.5 shrink-0 focus:outline-hidden",
|
|
347
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
348
|
+
style: { background: resolveRingGradient(g.ring_theme, g.custom_ring_color) },
|
|
349
|
+
className: `w-16 h-16 rounded-full p-0.5 flex items-center justify-center transition-transform ${isSelected ? "scale-110 ring-2 ring-ui-fg-base" : ""}`,
|
|
350
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
351
|
+
className: "w-full h-full rounded-full bg-ui-bg-base p-0.5 flex items-center justify-center overflow-hidden",
|
|
352
|
+
children: safeAvatar ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
353
|
+
src: safeAvatar,
|
|
354
|
+
alt: g.title,
|
|
355
|
+
loading: "lazy",
|
|
356
|
+
decoding: "async",
|
|
357
|
+
className: "w-full h-full object-cover rounded-full"
|
|
358
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
359
|
+
className: "text-xs font-bold uppercase",
|
|
360
|
+
children: g.title.slice(0, 2)
|
|
361
|
+
})
|
|
362
|
+
})
|
|
363
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
364
|
+
size: "xsmall",
|
|
365
|
+
weight: isSelected ? "plus" : "regular",
|
|
366
|
+
children: g.title
|
|
367
|
+
})]
|
|
368
|
+
}, g.id);
|
|
369
|
+
}), !groups.length && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
370
|
+
size: "small",
|
|
371
|
+
className: "text-ui-fg-subtle",
|
|
372
|
+
children: t("ringsTab.emptyState")
|
|
373
|
+
})]
|
|
374
|
+
})
|
|
375
|
+
]
|
|
376
|
+
});
|
|
377
|
+
};
|
|
378
|
+
var StoryRingsTableSection = ({ groups, selectedGroupId, onSelectGroup, onToggleGroupActive, onDeleteGroup }) => {
|
|
379
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
380
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
381
|
+
className: "divide-y p-0",
|
|
382
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
383
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
384
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
385
|
+
level: "h2",
|
|
386
|
+
children: t("analyticsTab.ringBreakdownTitle")
|
|
387
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
388
|
+
size: "xsmall",
|
|
389
|
+
color: "purple",
|
|
390
|
+
children: groups.length
|
|
391
|
+
})]
|
|
392
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Header, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
393
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("ringsTab.titleField") }),
|
|
394
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("ringsTab.themeField") }),
|
|
395
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("ringsTab.placementField") }),
|
|
396
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colSlides") }),
|
|
397
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("ringsTab.activeBadge") }),
|
|
398
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { className: "text-right" })
|
|
399
|
+
] }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Body, { children: groups.map((g) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, {
|
|
400
|
+
className: selectedGroupId === g.id ? "bg-ui-bg-subtle" : "cursor-pointer",
|
|
401
|
+
onClick: () => onSelectGroup(g.id),
|
|
402
|
+
children: [
|
|
403
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
404
|
+
weight: "plus",
|
|
405
|
+
children: g.title
|
|
406
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
407
|
+
size: "xsmall",
|
|
408
|
+
className: "text-ui-fg-subtle",
|
|
409
|
+
children: t("ringsTab.handleLabel", { handle: g.handle })
|
|
410
|
+
})] }) }),
|
|
411
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
412
|
+
size: "xsmall",
|
|
413
|
+
color: "purple",
|
|
414
|
+
children: g.ring_theme
|
|
415
|
+
}) }),
|
|
416
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
417
|
+
size: "xsmall",
|
|
418
|
+
color: "blue",
|
|
419
|
+
children: t("ringsTab.zoneBadge", { placement: g.placement })
|
|
420
|
+
}) }),
|
|
421
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
422
|
+
size: "xsmall",
|
|
423
|
+
color: "grey",
|
|
424
|
+
children: t("ringsTab.slidesCountBadge", { count: g.slides?.length ?? 0 })
|
|
425
|
+
}) }),
|
|
426
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.StatusBadge, {
|
|
427
|
+
color: g.is_active ? "green" : "grey",
|
|
428
|
+
children: g.is_active ? t("ringsTab.activeBadge") : t("ringsTab.pausedBadge")
|
|
429
|
+
}) }),
|
|
430
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, {
|
|
431
|
+
className: "text-right",
|
|
432
|
+
onClick: (e) => e.stopPropagation(),
|
|
433
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
434
|
+
className: "flex items-center justify-end gap-2",
|
|
435
|
+
children: [onToggleGroupActive && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Switch, {
|
|
436
|
+
"aria-label": t("ringsTab.toggleAria", {
|
|
437
|
+
name: g.title,
|
|
438
|
+
defaultValue: `Toggle ${g.title}`
|
|
439
|
+
}),
|
|
440
|
+
checked: g.is_active,
|
|
441
|
+
onCheckedChange: (checked) => onToggleGroupActive(g.id, checked)
|
|
442
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
443
|
+
size: "small",
|
|
444
|
+
variant: "secondary",
|
|
445
|
+
onClick: () => onDeleteGroup(g.id),
|
|
446
|
+
children: t("ringsTab.deleteButton")
|
|
447
|
+
})]
|
|
448
|
+
})
|
|
449
|
+
})
|
|
450
|
+
]
|
|
451
|
+
}, g.id)) })] })]
|
|
452
|
+
});
|
|
453
|
+
};
|
|
454
|
+
// src/admin/components/story-rings-tab.tsx
|
|
455
|
+
var StoryRingsInlineCreateSection = ({ form, onFormChange, isSaving, onCreateGroup }) => {
|
|
456
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
457
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
458
|
+
className: "divide-y p-0",
|
|
459
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
460
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
461
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
462
|
+
level: "h2",
|
|
463
|
+
children: t("ringsTab.createTitle")
|
|
464
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
465
|
+
size: "small",
|
|
466
|
+
variant: "primary",
|
|
467
|
+
isLoading: isSaving,
|
|
468
|
+
onClick: onCreateGroup,
|
|
469
|
+
children: t("ringsTab.createButton")
|
|
470
|
+
})]
|
|
471
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
472
|
+
className: "flex flex-col gap-y-4 px-6 py-4",
|
|
473
|
+
children: [
|
|
474
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
475
|
+
className: "flex flex-col gap-y-1.5",
|
|
476
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
477
|
+
htmlFor: "grp-title",
|
|
478
|
+
children: t("ringsTab.titleField")
|
|
479
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
480
|
+
id: "grp-title",
|
|
481
|
+
placeholder: t("ringsTab.titlePlaceholder"),
|
|
482
|
+
value: form.title,
|
|
483
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
484
|
+
...prev,
|
|
485
|
+
title: e.target.value
|
|
486
|
+
}))
|
|
487
|
+
})]
|
|
488
|
+
}),
|
|
489
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
490
|
+
className: "flex flex-col gap-y-1.5",
|
|
491
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
492
|
+
htmlFor: "grp-subtitle",
|
|
493
|
+
children: t("ringsTab.subtitleField")
|
|
494
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
495
|
+
id: "grp-subtitle",
|
|
496
|
+
placeholder: t("ringsTab.subtitlePlaceholder"),
|
|
497
|
+
value: form.subtitle,
|
|
498
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
499
|
+
...prev,
|
|
500
|
+
subtitle: e.target.value
|
|
501
|
+
}))
|
|
502
|
+
})]
|
|
503
|
+
}),
|
|
504
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
505
|
+
className: "flex flex-col gap-y-1.5",
|
|
506
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
507
|
+
htmlFor: "grp-avatar",
|
|
508
|
+
children: t("ringsTab.avatarField")
|
|
509
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
510
|
+
id: "grp-avatar",
|
|
511
|
+
placeholder: t("ringsTab.avatarPlaceholder"),
|
|
512
|
+
value: form.avatar_url,
|
|
513
|
+
onChange: (e) => onFormChange((prev) => ({
|
|
514
|
+
...prev,
|
|
515
|
+
avatar_url: e.target.value
|
|
516
|
+
}))
|
|
517
|
+
})]
|
|
518
|
+
}),
|
|
519
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
520
|
+
className: "flex flex-col gap-y-1.5",
|
|
521
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, { children: t("ringsTab.themeField") }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select, {
|
|
522
|
+
value: form.ring_theme,
|
|
523
|
+
onValueChange: (val) => onFormChange((prev) => ({
|
|
524
|
+
...prev,
|
|
525
|
+
ring_theme: val
|
|
526
|
+
})),
|
|
527
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Trigger, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Value, {}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Content, { children: ADMIN_RING_THEME_PRESETS.map((preset) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
528
|
+
value: preset.id,
|
|
529
|
+
children: t(`ringsTab.themes.${preset.id}`)
|
|
530
|
+
}, preset.id)) })]
|
|
531
|
+
})]
|
|
532
|
+
}),
|
|
533
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
534
|
+
className: "flex flex-col gap-y-1.5",
|
|
535
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, { children: t("ringsTab.placementField") }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select, {
|
|
536
|
+
value: form.placement,
|
|
537
|
+
onValueChange: (val) => onFormChange((prev) => ({
|
|
538
|
+
...prev,
|
|
539
|
+
placement: val
|
|
540
|
+
})),
|
|
541
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Trigger, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Value, {}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Content, { children: PLACEMENT_ZONES.map((zone) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
542
|
+
value: zone,
|
|
543
|
+
children: t(`ringsTab.zones.${zone}`)
|
|
544
|
+
}, zone)) })]
|
|
545
|
+
})]
|
|
546
|
+
}),
|
|
547
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
548
|
+
className: "flex items-center justify-between pt-2",
|
|
549
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
550
|
+
htmlFor: "grp-pinned",
|
|
551
|
+
children: t("ringsTab.pinnedSwitch")
|
|
552
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Switch, {
|
|
553
|
+
id: "grp-pinned",
|
|
554
|
+
checked: form.is_pinned,
|
|
555
|
+
onCheckedChange: (checked) => onFormChange((prev) => ({
|
|
556
|
+
...prev,
|
|
557
|
+
is_pinned: checked
|
|
558
|
+
}))
|
|
559
|
+
})]
|
|
560
|
+
})
|
|
561
|
+
]
|
|
562
|
+
})]
|
|
563
|
+
});
|
|
564
|
+
};
|
|
565
|
+
// src/admin/components/slide-preview-canvas.tsx
|
|
566
|
+
var CanvasPreviewSection = ({ selectedSlide, slideForm, hotspotForm, onCanvasCoordinateClick }) => {
|
|
567
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
568
|
+
const safePreviewUrl = sanitizeAdminMediaUrl(selectedSlide?.media_url || slideForm.media_url);
|
|
569
|
+
const handleCanvasClick = (e) => {
|
|
570
|
+
const rect = e.currentTarget.getBoundingClientRect();
|
|
571
|
+
if (!rect.width || !rect.height) return;
|
|
572
|
+
const xPct = (e.clientX - rect.left) / rect.width * 100;
|
|
573
|
+
const yPct = (e.clientY - rect.top) / rect.height * 100;
|
|
574
|
+
onCanvasCoordinateClick(Math.min(95, Math.max(5, xPct)), Math.min(92, Math.max(8, yPct)));
|
|
575
|
+
};
|
|
576
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
577
|
+
className: "divide-y p-0",
|
|
578
|
+
children: [
|
|
579
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
580
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
581
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
582
|
+
level: "h2",
|
|
583
|
+
children: t("canvasTab.canvasTitle")
|
|
584
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
585
|
+
size: "xsmall",
|
|
586
|
+
color: "blue",
|
|
587
|
+
children: t("canvasTab.clickHintBadge", {
|
|
588
|
+
x: hotspotForm.x_percent,
|
|
589
|
+
y: hotspotForm.y_percent
|
|
590
|
+
})
|
|
591
|
+
})]
|
|
592
|
+
}),
|
|
593
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.SectionRow, {
|
|
594
|
+
title: t("canvasTab.slideTitleField"),
|
|
595
|
+
value: selectedSlide?.title ?? (slideForm.title || t("canvasTab.previewSlideFallback"))
|
|
596
|
+
}),
|
|
597
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
598
|
+
className: "flex flex-col items-center px-6 py-6",
|
|
599
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
600
|
+
role: "button",
|
|
601
|
+
tabIndex: 0,
|
|
602
|
+
"aria-label": t("canvasTab.canvasAriaLabel"),
|
|
603
|
+
onClick: handleCanvasClick,
|
|
604
|
+
onKeyDown: (e) => {
|
|
605
|
+
if (e.key === "Enter") onCanvasCoordinateClick(50, 50);
|
|
606
|
+
},
|
|
607
|
+
className: "relative w-full max-w-[320px] aspect-[9/16] rounded-3xl overflow-hidden border-4 border-gray-900 bg-gray-950 shadow-xl cursor-crosshair select-none flex flex-col justify-between",
|
|
608
|
+
children: [
|
|
609
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
610
|
+
className: "relative z-20 p-3 bg-gradient-to-b from-black/70 to-transparent",
|
|
611
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
612
|
+
className: "h-1 w-full rounded-full bg-white/30 overflow-hidden mb-2",
|
|
613
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "h-full w-2/3 bg-white rounded-full" })
|
|
614
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
615
|
+
className: "flex items-center justify-between text-white text-xs",
|
|
616
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
617
|
+
className: "font-semibold truncate",
|
|
618
|
+
children: selectedSlide?.title ?? (slideForm.title || t("canvasTab.previewSlideFallback"))
|
|
619
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
620
|
+
className: "text-[11px] opacity-80",
|
|
621
|
+
children: [((selectedSlide?.duration_ms ?? slideForm.duration_ms) / 1e3).toFixed(0), "s"]
|
|
622
|
+
})]
|
|
623
|
+
})]
|
|
624
|
+
}),
|
|
625
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
626
|
+
className: "absolute inset-0 z-0",
|
|
627
|
+
children: safePreviewUrl ? (selectedSlide?.media_type ?? slideForm.media_type) === "video" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("video", {
|
|
628
|
+
src: safePreviewUrl,
|
|
629
|
+
muted: true,
|
|
630
|
+
loop: true,
|
|
631
|
+
autoPlay: true,
|
|
632
|
+
playsInline: true,
|
|
633
|
+
className: "w-full h-full object-cover"
|
|
634
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
635
|
+
src: safePreviewUrl,
|
|
636
|
+
alt: t("canvasTab.slidePreviewAlt"),
|
|
637
|
+
className: "w-full h-full object-cover"
|
|
638
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
639
|
+
className: "w-full h-full flex items-center justify-center p-6 text-center text-white/60 text-xs",
|
|
640
|
+
children: t("canvasTab.emptyCanvasPrompt")
|
|
641
|
+
})
|
|
642
|
+
}),
|
|
643
|
+
(selectedSlide?.hotspots ?? []).map((hs) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
644
|
+
style: {
|
|
645
|
+
left: `${hs.x_percent}%`,
|
|
646
|
+
top: `${hs.y_percent}%`,
|
|
647
|
+
transform: "translate(-50%, -50%)"
|
|
648
|
+
},
|
|
649
|
+
className: "absolute z-20 rounded-full bg-white/95 text-gray-900 px-2.5 py-1 text-[11px] font-semibold shadow-md flex items-center gap-1",
|
|
650
|
+
children: [
|
|
651
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: "h-2 w-2 rounded-full bg-rose-500 inline-block" }),
|
|
652
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: hs.label || hs.product_title }),
|
|
653
|
+
hs.price_formatted && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
654
|
+
className: "text-rose-600",
|
|
655
|
+
children: hs.price_formatted
|
|
656
|
+
})
|
|
657
|
+
]
|
|
658
|
+
}, hs.id)),
|
|
659
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
660
|
+
style: {
|
|
661
|
+
left: `${hotspotForm.x_percent}%`,
|
|
662
|
+
top: `${hotspotForm.y_percent}%`,
|
|
663
|
+
transform: "translate(-50%, -50%)"
|
|
664
|
+
},
|
|
665
|
+
className: "absolute z-20 pointer-events-none rounded-full border-2 border-dashed border-amber-400 bg-black/60 text-amber-300 px-2 py-0.5 text-[10px] font-mono",
|
|
666
|
+
children: t("canvasTab.pinCrosshair", {
|
|
667
|
+
x: hotspotForm.x_percent,
|
|
668
|
+
y: hotspotForm.y_percent
|
|
669
|
+
})
|
|
670
|
+
}),
|
|
671
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
672
|
+
className: "relative z-20 p-3 bg-gradient-to-t from-black/80 to-transparent text-white",
|
|
673
|
+
children: [(selectedSlide?.caption || slideForm.caption) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
674
|
+
className: "text-xs text-white/90 mb-2 truncate",
|
|
675
|
+
children: selectedSlide?.caption || slideForm.caption
|
|
676
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
677
|
+
className: "w-full rounded-full bg-white text-gray-900 text-center text-xs font-semibold py-1.5",
|
|
678
|
+
children: selectedSlide?.link_text || slideForm.link_text || t("canvasTab.shopNowFallback")
|
|
679
|
+
})]
|
|
680
|
+
})
|
|
681
|
+
]
|
|
682
|
+
})
|
|
683
|
+
})
|
|
684
|
+
]
|
|
685
|
+
});
|
|
686
|
+
};
|
|
687
|
+
// src/admin/components/slide-timeline-section.tsx
|
|
688
|
+
var CanvasTimelineSection = ({ slides, selectedSlide, onSelectSlide, onToggleSlideActive, onDeleteSlide }) => {
|
|
689
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
690
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
691
|
+
className: "divide-y p-0",
|
|
692
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
693
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
694
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
695
|
+
level: "h2",
|
|
696
|
+
children: t("canvasTab.timelineTitle", { count: slides.length })
|
|
697
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
698
|
+
size: "xsmall",
|
|
699
|
+
color: "blue",
|
|
700
|
+
children: slides.length
|
|
701
|
+
})]
|
|
702
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Header, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
703
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colSlideTitle") }),
|
|
704
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("canvasTab.activeBadge") }),
|
|
705
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colHotspotClicks") }),
|
|
706
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colImpressions") }),
|
|
707
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { className: "text-right" })
|
|
708
|
+
] }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Body, { children: slides.map((s) => {
|
|
709
|
+
const isSelected = selectedSlide?.id === s.id;
|
|
710
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, {
|
|
711
|
+
className: isSelected ? "bg-ui-bg-subtle" : "cursor-pointer",
|
|
712
|
+
onClick: () => onSelectSlide(s.id),
|
|
713
|
+
children: [
|
|
714
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
715
|
+
className: "flex items-center gap-2",
|
|
716
|
+
children: [
|
|
717
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
718
|
+
weight: "plus",
|
|
719
|
+
children: s.title
|
|
720
|
+
}),
|
|
721
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
722
|
+
size: "xsmall",
|
|
723
|
+
color: "blue",
|
|
724
|
+
children: t("canvasTab.hotspotsCountBadge", { count: s.hotspots?.length ?? 0 })
|
|
725
|
+
}),
|
|
726
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
727
|
+
size: "xsmall",
|
|
728
|
+
color: "purple",
|
|
729
|
+
children: t("canvasTab.stickersCountBadge", { count: s.stickers?.length ?? 0 })
|
|
730
|
+
})
|
|
731
|
+
]
|
|
732
|
+
}) }),
|
|
733
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.StatusBadge, {
|
|
734
|
+
color: s.is_active ? "green" : "grey",
|
|
735
|
+
children: s.is_active ? t("canvasTab.activeBadge") : t("canvasTab.pausedBadge")
|
|
736
|
+
}) }),
|
|
737
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: s.clicks_count }),
|
|
738
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
739
|
+
size: "xsmall",
|
|
740
|
+
className: "text-ui-fg-subtle",
|
|
741
|
+
children: t("canvasTab.slideMetrics", {
|
|
742
|
+
views: s.views_count,
|
|
743
|
+
clicks: s.clicks_count,
|
|
744
|
+
carts: s.cart_conversions_count
|
|
745
|
+
})
|
|
746
|
+
}) }),
|
|
747
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, {
|
|
748
|
+
className: "text-right",
|
|
749
|
+
onClick: (e) => e.stopPropagation(),
|
|
750
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
751
|
+
className: "flex items-center justify-end gap-2",
|
|
752
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Switch, {
|
|
753
|
+
checked: s.is_active,
|
|
754
|
+
onCheckedChange: (checked) => onToggleSlideActive(s.id, checked)
|
|
755
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
756
|
+
size: "small",
|
|
757
|
+
variant: "secondary",
|
|
758
|
+
onClick: () => onDeleteSlide(s.id),
|
|
759
|
+
children: t("canvasTab.deleteButton")
|
|
760
|
+
})]
|
|
761
|
+
})
|
|
762
|
+
})
|
|
763
|
+
]
|
|
764
|
+
}, s.id);
|
|
765
|
+
}) })] })]
|
|
766
|
+
});
|
|
767
|
+
};
|
|
768
|
+
// src/admin/components/slide-form-section.tsx
|
|
769
|
+
var CanvasSlideBuilderSection = ({ groups, slideForm, onSlideFormChange, isSavingSlide, onCreateSlide }) => {
|
|
770
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
771
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
772
|
+
className: "divide-y p-0",
|
|
773
|
+
children: [
|
|
774
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
775
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
776
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
777
|
+
level: "h2",
|
|
778
|
+
children: t("canvasTab.publishSlideTitle")
|
|
779
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
780
|
+
size: "small",
|
|
781
|
+
variant: "primary",
|
|
782
|
+
isLoading: isSavingSlide,
|
|
783
|
+
onClick: onCreateSlide,
|
|
784
|
+
children: t("canvasTab.publishButton")
|
|
785
|
+
})]
|
|
786
|
+
}),
|
|
787
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
788
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-4 px-6 py-4",
|
|
789
|
+
children: [
|
|
790
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
791
|
+
className: "flex flex-col gap-y-1.5",
|
|
792
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
793
|
+
htmlFor: "slide-title",
|
|
794
|
+
children: t("canvasTab.slideTitleField")
|
|
795
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
796
|
+
id: "slide-title",
|
|
797
|
+
placeholder: t("canvasTab.slideTitlePlaceholder"),
|
|
798
|
+
value: slideForm.title,
|
|
799
|
+
onChange: (e) => onSlideFormChange((prev) => ({
|
|
800
|
+
...prev,
|
|
801
|
+
title: e.target.value
|
|
802
|
+
}))
|
|
803
|
+
})]
|
|
804
|
+
}),
|
|
805
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
806
|
+
className: "flex flex-col gap-y-1.5",
|
|
807
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
808
|
+
htmlFor: "slide-media-url",
|
|
809
|
+
children: t("canvasTab.mediaUrlField")
|
|
810
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
811
|
+
id: "slide-media-url",
|
|
812
|
+
placeholder: t("canvasTab.mediaUrlPlaceholder"),
|
|
813
|
+
value: slideForm.media_url,
|
|
814
|
+
onChange: (e) => onSlideFormChange((prev) => ({
|
|
815
|
+
...prev,
|
|
816
|
+
media_url: e.target.value
|
|
817
|
+
}))
|
|
818
|
+
})]
|
|
819
|
+
}),
|
|
820
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
821
|
+
className: "flex flex-col gap-y-1.5",
|
|
822
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
823
|
+
htmlFor: "slide-caption",
|
|
824
|
+
children: t("canvasTab.captionField")
|
|
825
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
826
|
+
id: "slide-caption",
|
|
827
|
+
placeholder: t("canvasTab.captionPlaceholder"),
|
|
828
|
+
value: slideForm.caption,
|
|
829
|
+
onChange: (e) => onSlideFormChange((prev) => ({
|
|
830
|
+
...prev,
|
|
831
|
+
caption: e.target.value
|
|
832
|
+
}))
|
|
833
|
+
})]
|
|
834
|
+
}),
|
|
835
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
836
|
+
className: "flex flex-col gap-y-1.5",
|
|
837
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
838
|
+
htmlFor: "slide-cta",
|
|
839
|
+
children: t("canvasTab.ctaField")
|
|
840
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
841
|
+
className: "flex gap-2",
|
|
842
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
843
|
+
id: "slide-cta",
|
|
844
|
+
placeholder: t("canvasTab.ctaUrlPlaceholder"),
|
|
845
|
+
value: slideForm.link_url,
|
|
846
|
+
onChange: (e) => onSlideFormChange((prev) => ({
|
|
847
|
+
...prev,
|
|
848
|
+
link_url: e.target.value
|
|
849
|
+
}))
|
|
850
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
851
|
+
placeholder: t("canvasTab.ctaTextPlaceholder"),
|
|
852
|
+
value: slideForm.link_text,
|
|
853
|
+
onChange: (e) => onSlideFormChange((prev) => ({
|
|
854
|
+
...prev,
|
|
855
|
+
link_text: e.target.value
|
|
856
|
+
}))
|
|
857
|
+
})]
|
|
858
|
+
})]
|
|
859
|
+
})
|
|
860
|
+
]
|
|
861
|
+
}),
|
|
862
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
863
|
+
className: "grid grid-cols-1 md:grid-cols-3 gap-4 px-6 py-4 items-center",
|
|
864
|
+
children: [
|
|
865
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
866
|
+
className: "flex flex-col gap-y-1.5",
|
|
867
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Label, { children: [
|
|
868
|
+
t("canvasTab.imageButton"),
|
|
869
|
+
" / ",
|
|
870
|
+
t("canvasTab.videoButton")
|
|
871
|
+
] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select, {
|
|
872
|
+
value: slideForm.media_type,
|
|
873
|
+
onValueChange: (val) => onSlideFormChange((prev) => ({
|
|
874
|
+
...prev,
|
|
875
|
+
media_type: val
|
|
876
|
+
})),
|
|
877
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Trigger, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Value, {}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select.Content, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
878
|
+
value: "image",
|
|
879
|
+
children: t("canvasTab.imageButton")
|
|
880
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
881
|
+
value: "video",
|
|
882
|
+
children: t("canvasTab.videoButton")
|
|
883
|
+
})] })]
|
|
884
|
+
})]
|
|
885
|
+
}),
|
|
886
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
887
|
+
className: "flex flex-col gap-y-1.5",
|
|
888
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, { children: t("analyticsTab.colHighlightRing") }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select, {
|
|
889
|
+
value: slideForm.group_id || groups[0]?.id || "",
|
|
890
|
+
onValueChange: (val) => onSlideFormChange((prev) => ({
|
|
891
|
+
...prev,
|
|
892
|
+
group_id: val
|
|
893
|
+
})),
|
|
894
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Trigger, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Value, { placeholder: t("analyticsTab.colHighlightRing") }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Content, { children: groups.map((g) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
895
|
+
value: g.id,
|
|
896
|
+
children: g.title
|
|
897
|
+
}, g.id)) })]
|
|
898
|
+
})]
|
|
899
|
+
}),
|
|
900
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
901
|
+
className: "flex items-center justify-between pt-4",
|
|
902
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
903
|
+
htmlFor: "slide-24h",
|
|
904
|
+
children: t("canvasTab.autoExpireLabel")
|
|
905
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Switch, {
|
|
906
|
+
id: "slide-24h",
|
|
907
|
+
checked: slideForm.is_ephemeral_24h,
|
|
908
|
+
onCheckedChange: (checked) => onSlideFormChange((prev) => ({
|
|
909
|
+
...prev,
|
|
910
|
+
is_ephemeral_24h: checked
|
|
911
|
+
}))
|
|
912
|
+
})]
|
|
913
|
+
})
|
|
914
|
+
]
|
|
915
|
+
})
|
|
916
|
+
]
|
|
917
|
+
});
|
|
918
|
+
};
|
|
919
|
+
// src/admin/components/hotspot-form-section.tsx
|
|
920
|
+
var CanvasHotspotPinnerSection = ({ selectedSlide, hotspotForm, onHotspotFormChange, isSavingHotspot, onAddHotspot, onRemoveHotspot }) => {
|
|
921
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
922
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
923
|
+
className: "divide-y p-0",
|
|
924
|
+
children: [
|
|
925
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
926
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
927
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
928
|
+
level: "h2",
|
|
929
|
+
children: t("canvasTab.pinHotspotTitle", { slide: selectedSlide ? `"${selectedSlide.title}"` : t("canvasTab.selectedSlideFallback") })
|
|
930
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
931
|
+
size: "small",
|
|
932
|
+
variant: "primary",
|
|
933
|
+
isLoading: isSavingHotspot,
|
|
934
|
+
onClick: onAddHotspot,
|
|
935
|
+
children: t("canvasTab.pinButton")
|
|
936
|
+
})]
|
|
937
|
+
}),
|
|
938
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.SectionRow, {
|
|
939
|
+
title: t("canvasTab.pinCrosshair", {
|
|
940
|
+
x: hotspotForm.x_percent,
|
|
941
|
+
y: hotspotForm.y_percent
|
|
942
|
+
}),
|
|
943
|
+
value: t("canvasTab.coordinatesHelp", {
|
|
944
|
+
x: hotspotForm.x_percent,
|
|
945
|
+
y: hotspotForm.y_percent
|
|
946
|
+
})
|
|
947
|
+
}),
|
|
948
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
949
|
+
className: "grid grid-cols-1 md:grid-cols-3 gap-4 px-6 py-4",
|
|
950
|
+
children: [
|
|
951
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
952
|
+
className: "flex flex-col gap-y-1.5",
|
|
953
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
954
|
+
htmlFor: "hs-prod-id",
|
|
955
|
+
children: t("canvasTab.productIdField")
|
|
956
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
957
|
+
id: "hs-prod-id",
|
|
958
|
+
placeholder: t("canvasTab.productIdPlaceholder"),
|
|
959
|
+
value: hotspotForm.product_id,
|
|
960
|
+
onChange: (e) => onHotspotFormChange((prev) => ({
|
|
961
|
+
...prev,
|
|
962
|
+
product_id: e.target.value
|
|
963
|
+
}))
|
|
964
|
+
})]
|
|
965
|
+
}),
|
|
966
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
967
|
+
className: "flex flex-col gap-y-1.5",
|
|
968
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
969
|
+
htmlFor: "hs-prod-title",
|
|
970
|
+
children: t("canvasTab.productTitleField")
|
|
971
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
972
|
+
id: "hs-prod-title",
|
|
973
|
+
placeholder: t("canvasTab.productTitlePlaceholder"),
|
|
974
|
+
value: hotspotForm.product_title,
|
|
975
|
+
onChange: (e) => onHotspotFormChange((prev) => ({
|
|
976
|
+
...prev,
|
|
977
|
+
product_title: e.target.value
|
|
978
|
+
}))
|
|
979
|
+
})]
|
|
980
|
+
}),
|
|
981
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
982
|
+
className: "flex flex-col gap-y-1.5",
|
|
983
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
984
|
+
htmlFor: "hs-price",
|
|
985
|
+
children: t("canvasTab.priceBadgeField")
|
|
986
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
987
|
+
id: "hs-price",
|
|
988
|
+
placeholder: t("canvasTab.priceBadgePlaceholder"),
|
|
989
|
+
value: hotspotForm.price_formatted,
|
|
990
|
+
onChange: (e) => onHotspotFormChange((prev) => ({
|
|
991
|
+
...prev,
|
|
992
|
+
price_formatted: e.target.value
|
|
993
|
+
}))
|
|
994
|
+
})]
|
|
995
|
+
})
|
|
996
|
+
]
|
|
997
|
+
}),
|
|
998
|
+
Boolean(selectedSlide?.hotspots?.length) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Header, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
999
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("canvasTab.productTitleField") }),
|
|
1000
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("canvasTab.priceBadgeField") }),
|
|
1001
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: "X / Y" }),
|
|
1002
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { className: "text-right" })
|
|
1003
|
+
] }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Body, { children: (selectedSlide?.hotspots ?? []).map((hs) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
1004
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, {
|
|
1005
|
+
className: "font-medium",
|
|
1006
|
+
children: hs.product_title
|
|
1007
|
+
}),
|
|
1008
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: hs.price_formatted || "—" }),
|
|
1009
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Badge, {
|
|
1010
|
+
size: "xsmall",
|
|
1011
|
+
color: "blue",
|
|
1012
|
+
children: [
|
|
1013
|
+
hs.x_percent,
|
|
1014
|
+
"%, ",
|
|
1015
|
+
hs.y_percent,
|
|
1016
|
+
"%"
|
|
1017
|
+
]
|
|
1018
|
+
}) }),
|
|
1019
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, {
|
|
1020
|
+
className: "text-right",
|
|
1021
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
1022
|
+
size: "small",
|
|
1023
|
+
variant: "secondary",
|
|
1024
|
+
onClick: () => onRemoveHotspot(hs.id),
|
|
1025
|
+
children: t("canvasTab.removeHotspotButton")
|
|
1026
|
+
})
|
|
1027
|
+
})
|
|
1028
|
+
] }, hs.id)) })] })
|
|
1029
|
+
]
|
|
1030
|
+
});
|
|
1031
|
+
};
|
|
1032
|
+
// src/admin/components/sticker-form-section.tsx
|
|
1033
|
+
var STICKER_TYPES = [
|
|
1034
|
+
"poll",
|
|
1035
|
+
"coupon",
|
|
1036
|
+
"countdown",
|
|
1037
|
+
"question_badge"
|
|
1038
|
+
];
|
|
1039
|
+
var StickerBuilderSection = ({ selectedSlide, stickerForm, onStickerFormChange, isSaving, onAddSticker }) => {
|
|
1040
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1041
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
1042
|
+
className: "divide-y p-0",
|
|
1043
|
+
children: [
|
|
1044
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1045
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
1046
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
1047
|
+
level: "h2",
|
|
1048
|
+
children: t("stickersTab.addTitle", { slide: selectedSlide ? `"${selectedSlide.title}"` : t("stickersTab.selectedSlideFallback") })
|
|
1049
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
1050
|
+
size: "small",
|
|
1051
|
+
variant: "primary",
|
|
1052
|
+
isLoading: isSaving,
|
|
1053
|
+
onClick: onAddSticker,
|
|
1054
|
+
children: t("stickersTab.addButton")
|
|
1055
|
+
})]
|
|
1056
|
+
}),
|
|
1057
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.SectionRow, {
|
|
1058
|
+
title: t("analyticsTab.colSlideTitle"),
|
|
1059
|
+
value: selectedSlide?.title || t("stickersTab.selectedSlideFallback")
|
|
1060
|
+
}),
|
|
1061
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1062
|
+
className: "flex flex-col gap-y-4 px-6 py-4",
|
|
1063
|
+
children: [
|
|
1064
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1065
|
+
className: "flex flex-col gap-y-1.5",
|
|
1066
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, { children: t("tabs.stickers") }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Select, {
|
|
1067
|
+
value: stickerForm.type,
|
|
1068
|
+
onValueChange: (val) => onStickerFormChange((prev) => ({
|
|
1069
|
+
...prev,
|
|
1070
|
+
type: val
|
|
1071
|
+
})),
|
|
1072
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Trigger, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Value, {}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Content, { children: STICKER_TYPES.map((stId) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Select.Item, {
|
|
1073
|
+
value: stId,
|
|
1074
|
+
children: t(`stickersTab.types.${stId}`)
|
|
1075
|
+
}, stId)) })]
|
|
1076
|
+
})]
|
|
1077
|
+
}),
|
|
1078
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1079
|
+
className: "flex flex-col gap-y-1.5",
|
|
1080
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
1081
|
+
htmlFor: "stk-prompt",
|
|
1082
|
+
children: t("stickersTab.promptField")
|
|
1083
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
1084
|
+
id: "stk-prompt",
|
|
1085
|
+
placeholder: t("stickersTab.promptPlaceholder"),
|
|
1086
|
+
value: stickerForm.prompt,
|
|
1087
|
+
onChange: (e) => onStickerFormChange((prev) => ({
|
|
1088
|
+
...prev,
|
|
1089
|
+
prompt: e.target.value
|
|
1090
|
+
}))
|
|
1091
|
+
})]
|
|
1092
|
+
}),
|
|
1093
|
+
stickerForm.type === "poll" && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1094
|
+
className: "grid grid-cols-2 gap-3",
|
|
1095
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1096
|
+
className: "flex flex-col gap-y-1.5",
|
|
1097
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
1098
|
+
htmlFor: "stk-opt1",
|
|
1099
|
+
children: t("stickersTab.option1Field")
|
|
1100
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
1101
|
+
id: "stk-opt1",
|
|
1102
|
+
value: stickerForm.option_one,
|
|
1103
|
+
onChange: (e) => onStickerFormChange((prev) => ({
|
|
1104
|
+
...prev,
|
|
1105
|
+
option_one: e.target.value
|
|
1106
|
+
}))
|
|
1107
|
+
})]
|
|
1108
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1109
|
+
className: "flex flex-col gap-y-1.5",
|
|
1110
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
1111
|
+
htmlFor: "stk-opt2",
|
|
1112
|
+
children: t("stickersTab.option2Field")
|
|
1113
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
1114
|
+
id: "stk-opt2",
|
|
1115
|
+
value: stickerForm.option_two,
|
|
1116
|
+
onChange: (e) => onStickerFormChange((prev) => ({
|
|
1117
|
+
...prev,
|
|
1118
|
+
option_two: e.target.value
|
|
1119
|
+
}))
|
|
1120
|
+
})]
|
|
1121
|
+
})]
|
|
1122
|
+
}),
|
|
1123
|
+
stickerForm.type === "coupon" && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1124
|
+
className: "flex flex-col gap-y-1.5",
|
|
1125
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
1126
|
+
htmlFor: "stk-coupon",
|
|
1127
|
+
children: t("stickersTab.couponField")
|
|
1128
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
1129
|
+
id: "stk-coupon",
|
|
1130
|
+
placeholder: t("stickersTab.couponPlaceholder"),
|
|
1131
|
+
value: stickerForm.coupon_code,
|
|
1132
|
+
onChange: (e) => onStickerFormChange((prev) => ({
|
|
1133
|
+
...prev,
|
|
1134
|
+
coupon_code: e.target.value
|
|
1135
|
+
}))
|
|
1136
|
+
})]
|
|
1137
|
+
}),
|
|
1138
|
+
stickerForm.type === "countdown" && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1139
|
+
className: "flex flex-col gap-y-1.5",
|
|
1140
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
1141
|
+
htmlFor: "stk-countdown",
|
|
1142
|
+
children: t("stickersTab.countdownField")
|
|
1143
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
1144
|
+
id: "stk-countdown",
|
|
1145
|
+
placeholder: t("stickersTab.countdownPlaceholder"),
|
|
1146
|
+
value: stickerForm.countdown_until,
|
|
1147
|
+
onChange: (e) => onStickerFormChange((prev) => ({
|
|
1148
|
+
...prev,
|
|
1149
|
+
countdown_until: e.target.value
|
|
1150
|
+
}))
|
|
1151
|
+
})]
|
|
1152
|
+
}),
|
|
1153
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1154
|
+
className: "grid grid-cols-2 gap-3",
|
|
1155
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1156
|
+
className: "flex flex-col gap-y-1.5",
|
|
1157
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
1158
|
+
htmlFor: "stk-x",
|
|
1159
|
+
children: t("stickersTab.posXField")
|
|
1160
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
1161
|
+
id: "stk-x",
|
|
1162
|
+
type: "number",
|
|
1163
|
+
min: 0,
|
|
1164
|
+
max: 100,
|
|
1165
|
+
value: String(stickerForm.x_percent),
|
|
1166
|
+
onChange: (e) => onStickerFormChange((prev) => ({
|
|
1167
|
+
...prev,
|
|
1168
|
+
x_percent: Number(e.target.value) || 0
|
|
1169
|
+
}))
|
|
1170
|
+
})]
|
|
1171
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1172
|
+
className: "flex flex-col gap-y-1.5",
|
|
1173
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Label, {
|
|
1174
|
+
htmlFor: "stk-y",
|
|
1175
|
+
children: t("stickersTab.posYField")
|
|
1176
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Input, {
|
|
1177
|
+
id: "stk-y",
|
|
1178
|
+
type: "number",
|
|
1179
|
+
min: 0,
|
|
1180
|
+
max: 100,
|
|
1181
|
+
value: String(stickerForm.y_percent),
|
|
1182
|
+
onChange: (e) => onStickerFormChange((prev) => ({
|
|
1183
|
+
...prev,
|
|
1184
|
+
y_percent: Number(e.target.value) || 0
|
|
1185
|
+
}))
|
|
1186
|
+
})]
|
|
1187
|
+
})]
|
|
1188
|
+
})
|
|
1189
|
+
]
|
|
1190
|
+
})
|
|
1191
|
+
]
|
|
1192
|
+
});
|
|
1193
|
+
};
|
|
1194
|
+
// src/admin/components/sticker-list-section.tsx
|
|
1195
|
+
var StickerActiveListSection = ({ selectedSlide, onRemoveSticker }) => {
|
|
1196
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1197
|
+
const stickers = selectedSlide?.stickers ?? [];
|
|
1198
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
1199
|
+
className: "divide-y p-0",
|
|
1200
|
+
children: [
|
|
1201
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1202
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
1203
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
1204
|
+
level: "h2",
|
|
1205
|
+
children: t("stickersTab.activeTitle")
|
|
1206
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
1207
|
+
size: "xsmall",
|
|
1208
|
+
color: "purple",
|
|
1209
|
+
children: stickers.length
|
|
1210
|
+
})]
|
|
1211
|
+
}),
|
|
1212
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.SectionRow, {
|
|
1213
|
+
title: t("analyticsTab.colStickerVotes"),
|
|
1214
|
+
value: String(stickers.reduce((acc, s) => acc + (s.total_interactions ?? 0), 0))
|
|
1215
|
+
}),
|
|
1216
|
+
stickers.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1217
|
+
className: "px-6 py-4",
|
|
1218
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
1219
|
+
size: "small",
|
|
1220
|
+
className: "text-ui-fg-subtle",
|
|
1221
|
+
children: t("stickersTab.emptyState")
|
|
1222
|
+
})
|
|
1223
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Header, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
1224
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("stickersTab.promptField") }),
|
|
1225
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colStickerVotes") }),
|
|
1226
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { className: "text-right" })
|
|
1227
|
+
] }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Body, { children: stickers.map((stk) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
1228
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1229
|
+
className: "flex flex-col gap-y-1 py-1",
|
|
1230
|
+
children: [
|
|
1231
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
1232
|
+
weight: "plus",
|
|
1233
|
+
children: stk.prompt
|
|
1234
|
+
}),
|
|
1235
|
+
stk.options && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1236
|
+
className: "flex flex-wrap gap-1.5",
|
|
1237
|
+
children: stk.options.map((opt) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
1238
|
+
size: "xsmall",
|
|
1239
|
+
color: "blue",
|
|
1240
|
+
children: t("stickersTab.optionVotesBadge", {
|
|
1241
|
+
label: opt.label,
|
|
1242
|
+
votes: opt.votes
|
|
1243
|
+
})
|
|
1244
|
+
}, opt.id))
|
|
1245
|
+
}),
|
|
1246
|
+
stk.coupon_code && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
1247
|
+
size: "xsmall",
|
|
1248
|
+
className: "text-ui-fg-subtle",
|
|
1249
|
+
children: t("stickersTab.couponCodeLabel", { code: stk.coupon_code })
|
|
1250
|
+
}),
|
|
1251
|
+
stk.countdown_until && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
1252
|
+
size: "xsmall",
|
|
1253
|
+
className: "text-ui-fg-subtle",
|
|
1254
|
+
children: t("stickersTab.endsLabel", { date: stk.countdown_until })
|
|
1255
|
+
})
|
|
1256
|
+
]
|
|
1257
|
+
}) }),
|
|
1258
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
1259
|
+
size: "xsmall",
|
|
1260
|
+
color: "purple",
|
|
1261
|
+
children: t("stickersTab.interactionsBadge", {
|
|
1262
|
+
type: stk.type,
|
|
1263
|
+
count: stk.total_interactions
|
|
1264
|
+
})
|
|
1265
|
+
}) }),
|
|
1266
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, {
|
|
1267
|
+
className: "text-right",
|
|
1268
|
+
children: onRemoveSticker && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
1269
|
+
size: "small",
|
|
1270
|
+
variant: "secondary",
|
|
1271
|
+
onClick: () => onRemoveSticker(stk.id),
|
|
1272
|
+
children: t("stickersTab.removeButton")
|
|
1273
|
+
})
|
|
1274
|
+
})
|
|
1275
|
+
] }, stk.id)) })] })
|
|
1276
|
+
]
|
|
1277
|
+
});
|
|
1278
|
+
};
|
|
1279
|
+
// src/admin/components/analytics-tab.tsx
|
|
1280
|
+
var AnalyticsFunnelSection = ({ analytics }) => {
|
|
1281
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1282
|
+
const totalImpressions = analytics?.total_impressions ?? 0;
|
|
1283
|
+
const hotspotCtrPct = totalImpressions > 0 ? Math.round((analytics?.total_hotspot_clicks ?? 0) / totalImpressions * 1e3) / 10 : 0;
|
|
1284
|
+
const funnelSteps = [
|
|
1285
|
+
{
|
|
1286
|
+
label: t("analyticsTab.stepImpressions"),
|
|
1287
|
+
value: totalImpressions,
|
|
1288
|
+
percent: 100
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
label: t("analyticsTab.stepCompletions"),
|
|
1292
|
+
value: analytics?.total_completions ?? 0,
|
|
1293
|
+
percent: analytics?.overall_completion_rate_pct ?? 0
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
label: t("analyticsTab.stepHotspotClicks"),
|
|
1297
|
+
value: analytics?.total_hotspot_clicks ?? 0,
|
|
1298
|
+
percent: hotspotCtrPct
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
label: t("analyticsTab.stepAddToCarts"),
|
|
1302
|
+
value: analytics?.total_cart_conversions ?? 0,
|
|
1303
|
+
percent: analytics?.overall_conversion_rate_pct ?? 0
|
|
1304
|
+
}
|
|
1305
|
+
];
|
|
1306
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
1307
|
+
className: "divide-y p-0",
|
|
1308
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1309
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
1310
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
1311
|
+
level: "h2",
|
|
1312
|
+
children: t("analyticsTab.funnelTitle")
|
|
1313
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
1314
|
+
size: "small",
|
|
1315
|
+
className: "text-ui-fg-subtle mt-1",
|
|
1316
|
+
children: t("analyticsTab.funnelSubtitle")
|
|
1317
|
+
})] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.StatusBadge, {
|
|
1318
|
+
color: (analytics?.overall_conversion_rate_pct ?? 0) > 0 ? "green" : "grey",
|
|
1319
|
+
children: t("header.conversionBadge", { rate: analytics?.overall_conversion_rate_pct ?? 0 })
|
|
1320
|
+
})]
|
|
1321
|
+
}), funnelSteps.map((step) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.SectionRow, {
|
|
1322
|
+
title: step.label,
|
|
1323
|
+
value: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1324
|
+
className: "flex items-center gap-x-2",
|
|
1325
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
1326
|
+
size: "small",
|
|
1327
|
+
weight: "plus",
|
|
1328
|
+
children: step.value
|
|
1329
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
1330
|
+
size: "xsmall",
|
|
1331
|
+
color: "grey",
|
|
1332
|
+
children: t("analyticsTab.percentOfImpressions", { percent: step.percent })
|
|
1333
|
+
})]
|
|
1334
|
+
})
|
|
1335
|
+
}, step.label))]
|
|
1336
|
+
});
|
|
1337
|
+
};
|
|
1338
|
+
var AnalyticsRingBreakdownSection = ({ analytics }) => {
|
|
1339
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1340
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
1341
|
+
className: "divide-y p-0",
|
|
1342
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1343
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
1344
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
1345
|
+
level: "h2",
|
|
1346
|
+
children: t("analyticsTab.ringBreakdownTitle")
|
|
1347
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
1348
|
+
size: "xsmall",
|
|
1349
|
+
color: "purple",
|
|
1350
|
+
children: (analytics?.by_group ?? []).length
|
|
1351
|
+
})]
|
|
1352
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Header, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
1353
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colHighlightRing") }),
|
|
1354
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colSlides") }),
|
|
1355
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colImpressions") }),
|
|
1356
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colCompletionRate") }),
|
|
1357
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colHotspotClicks") }),
|
|
1358
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colAddToCartRate") }),
|
|
1359
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colStickerVotes") })
|
|
1360
|
+
] }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Body, { children: (analytics?.by_group ?? []).map((grp) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
1361
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, {
|
|
1362
|
+
className: "font-medium",
|
|
1363
|
+
children: grp.group_title
|
|
1364
|
+
}),
|
|
1365
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: grp.slides_count }),
|
|
1366
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: grp.impressions }),
|
|
1367
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.StatusBadge, {
|
|
1368
|
+
color: grp.completion_rate_pct >= 50 ? "green" : "grey",
|
|
1369
|
+
children: [
|
|
1370
|
+
grp.completion_rate_pct,
|
|
1371
|
+
"% (",
|
|
1372
|
+
grp.completions,
|
|
1373
|
+
")"
|
|
1374
|
+
]
|
|
1375
|
+
}) }),
|
|
1376
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: grp.hotspot_clicks }),
|
|
1377
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.StatusBadge, {
|
|
1378
|
+
color: grp.conversion_rate_pct > 0 ? "green" : "grey",
|
|
1379
|
+
children: [
|
|
1380
|
+
grp.conversion_rate_pct,
|
|
1381
|
+
"% (",
|
|
1382
|
+
grp.cart_conversions,
|
|
1383
|
+
")"
|
|
1384
|
+
]
|
|
1385
|
+
}) }),
|
|
1386
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: grp.sticker_interactions })
|
|
1387
|
+
] }, grp.group_id)) })] })]
|
|
1388
|
+
});
|
|
1389
|
+
};
|
|
1390
|
+
var AnalyticsTopSlidesSection = ({ analytics }) => {
|
|
1391
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1392
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
1393
|
+
className: "divide-y p-0",
|
|
1394
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1395
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
1396
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
1397
|
+
level: "h2",
|
|
1398
|
+
children: t("analyticsTab.topSlidesTitle")
|
|
1399
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
1400
|
+
size: "xsmall",
|
|
1401
|
+
color: "blue",
|
|
1402
|
+
children: (analytics?.top_slides ?? []).length
|
|
1403
|
+
})]
|
|
1404
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Header, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
1405
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colSlideTitle") }),
|
|
1406
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colHighlightRing") }),
|
|
1407
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colImpressions") }),
|
|
1408
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colCompletions") }),
|
|
1409
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colHotspotClicks") }),
|
|
1410
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colAddToCarts") })
|
|
1411
|
+
] }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Body, { children: (analytics?.top_slides ?? []).map((slide) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
1412
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, {
|
|
1413
|
+
className: "font-medium",
|
|
1414
|
+
children: slide.title
|
|
1415
|
+
}),
|
|
1416
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
1417
|
+
size: "xsmall",
|
|
1418
|
+
color: "grey",
|
|
1419
|
+
children: slide.group_title ?? t("analyticsTab.unassigned")
|
|
1420
|
+
}) }),
|
|
1421
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: slide.impressions }),
|
|
1422
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: slide.completions }),
|
|
1423
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: slide.hotspot_clicks }),
|
|
1424
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: slide.cart_conversions })
|
|
1425
|
+
] }, slide.id)) })] })]
|
|
1426
|
+
});
|
|
1427
|
+
};
|
|
1428
|
+
// src/admin/components/product-stories-card.tsx
|
|
1429
|
+
var ProductStoriesCard = ({ productTitle, taggedSlides, isCreating, onQuickCreateProductStory }) => {
|
|
1430
|
+
const { t, i18n } = (0, react_i18next.useTranslation)();
|
|
1431
|
+
const isRtl = (i18n.resolvedLanguage || i18n.language || "").startsWith("ar");
|
|
1432
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
1433
|
+
className: "divide-y p-0",
|
|
1434
|
+
dir: isRtl ? "rtl" : "ltr",
|
|
1435
|
+
children: [
|
|
1436
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Toaster, {}),
|
|
1437
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1438
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
1439
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
1440
|
+
level: "h2",
|
|
1441
|
+
children: t("widget.title")
|
|
1442
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
1443
|
+
size: "small",
|
|
1444
|
+
className: "text-ui-fg-subtle",
|
|
1445
|
+
children: t("widget.subtitle", { product: productTitle || t("widget.thisProductFallback") })
|
|
1446
|
+
})] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Button, {
|
|
1447
|
+
variant: "secondary",
|
|
1448
|
+
size: "small",
|
|
1449
|
+
isLoading: isCreating,
|
|
1450
|
+
onClick: () => void onQuickCreateProductStory(),
|
|
1451
|
+
children: t("widget.createButton")
|
|
1452
|
+
})]
|
|
1453
|
+
}),
|
|
1454
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.SectionRow, {
|
|
1455
|
+
title: t("analyticsTab.colSlides"),
|
|
1456
|
+
value: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Badge, {
|
|
1457
|
+
size: "xsmall",
|
|
1458
|
+
color: "blue",
|
|
1459
|
+
children: taggedSlides.length
|
|
1460
|
+
})
|
|
1461
|
+
}),
|
|
1462
|
+
taggedSlides.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1463
|
+
className: "px-6 py-4",
|
|
1464
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
1465
|
+
size: "small",
|
|
1466
|
+
className: "text-ui-fg-subtle",
|
|
1467
|
+
children: t("widget.emptyState")
|
|
1468
|
+
})
|
|
1469
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Header, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
1470
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colSlideTitle") }),
|
|
1471
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colImpressions") }),
|
|
1472
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colHotspotClicks") }),
|
|
1473
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, { children: t("analyticsTab.colAddToCarts") }),
|
|
1474
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.HeaderCell, {
|
|
1475
|
+
className: "text-right",
|
|
1476
|
+
children: t("widget.activeBadge")
|
|
1477
|
+
})
|
|
1478
|
+
] }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Body, { children: taggedSlides.map((slide) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Table.Row, { children: [
|
|
1479
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1480
|
+
className: "flex items-center gap-x-3",
|
|
1481
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1482
|
+
className: "h-9 w-6 overflow-hidden rounded bg-ui-bg-subtle shrink-0",
|
|
1483
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
1484
|
+
src: slide.thumbnail_url || slide.media_url,
|
|
1485
|
+
alt: slide.title,
|
|
1486
|
+
className: "h-full w-full object-cover"
|
|
1487
|
+
})
|
|
1488
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
1489
|
+
size: "small",
|
|
1490
|
+
weight: "plus",
|
|
1491
|
+
children: slide.title
|
|
1492
|
+
})]
|
|
1493
|
+
}) }),
|
|
1494
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: slide.views_count }),
|
|
1495
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: slide.clicks_count }),
|
|
1496
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, { children: slide.cart_conversions_count }),
|
|
1497
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Table.Cell, {
|
|
1498
|
+
className: "text-right",
|
|
1499
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.StatusBadge, {
|
|
1500
|
+
color: slide.is_active ? "green" : "grey",
|
|
1501
|
+
children: slide.is_active ? t("widget.activeBadge") : t("widget.pausedBadge")
|
|
1502
|
+
})
|
|
1503
|
+
})
|
|
1504
|
+
] }, slide.id)) })] })
|
|
1505
|
+
]
|
|
1506
|
+
});
|
|
1507
|
+
};
|
|
1508
|
+
// src/sdk/index.ts
|
|
1509
|
+
var storiesQueryKeys = {
|
|
1510
|
+
all: ["stories"],
|
|
1511
|
+
adminState: (filters) => filters ? [
|
|
1512
|
+
"stories",
|
|
1513
|
+
"admin",
|
|
1514
|
+
filters
|
|
1515
|
+
] : ["stories", "admin"],
|
|
1516
|
+
groups: () => ["stories", "groups"],
|
|
1517
|
+
analytics: () => ["stories", "analytics"],
|
|
1518
|
+
storefront: (filters) => filters ? [
|
|
1519
|
+
"stories",
|
|
1520
|
+
"store",
|
|
1521
|
+
filters
|
|
1522
|
+
] : ["stories", "store"]
|
|
1523
|
+
};
|
|
1524
|
+
function matchesStoriesQueryKeyPrefix(candidateKey, prefixKey) {
|
|
1525
|
+
if (candidateKey.length < prefixKey.length) return false;
|
|
1526
|
+
for (let i = 0; i < prefixKey.length; i++) if (candidateKey[i] !== prefixKey[i]) return false;
|
|
1527
|
+
return true;
|
|
1528
|
+
}
|
|
1529
|
+
function createStoriesSdk(options) {
|
|
1530
|
+
const baseUrl = (options?.baseUrl ?? "").replace(/\/+$/, "");
|
|
1531
|
+
const fetchImpl = options?.fetchImpl ?? globalThis.fetch;
|
|
1532
|
+
async function request(path, init) {
|
|
1533
|
+
const headers = {
|
|
1534
|
+
"Content-Type": "application/json",
|
|
1535
|
+
...options?.publishableApiKey ? { "x-publishable-api-key": options.publishableApiKey } : {},
|
|
1536
|
+
...init?.headers
|
|
1537
|
+
};
|
|
1538
|
+
const res = await fetchImpl(`${baseUrl}${path}`, {
|
|
1539
|
+
credentials: "include",
|
|
1540
|
+
...init,
|
|
1541
|
+
headers
|
|
1542
|
+
});
|
|
1543
|
+
const json = await res.json().catch(() => ({}));
|
|
1544
|
+
if (!res.ok) throw new _medusajs_framework_utils.MedusaError(_medusajs_framework_utils.MedusaError.Types.UNEXPECTED_STATE, String(json.message || json.error || `HTTP ${res.status}`));
|
|
1545
|
+
return json;
|
|
1546
|
+
}
|
|
1547
|
+
return {
|
|
1548
|
+
admin: {
|
|
1549
|
+
listStudioState(filters) {
|
|
1550
|
+
return request(`/admin/stories${filters?.product_id ? `?product_id=${encodeURIComponent(filters.product_id)}` : ""}`);
|
|
1551
|
+
},
|
|
1552
|
+
createSlide(payload) {
|
|
1553
|
+
return request("/admin/stories", {
|
|
1554
|
+
method: "POST",
|
|
1555
|
+
body: JSON.stringify(payload)
|
|
1556
|
+
});
|
|
1557
|
+
},
|
|
1558
|
+
updateSlide(id, payload) {
|
|
1559
|
+
return request(`/admin/stories/${encodeURIComponent(id)}`, {
|
|
1560
|
+
method: "PATCH",
|
|
1561
|
+
body: JSON.stringify(payload)
|
|
1562
|
+
});
|
|
1563
|
+
},
|
|
1564
|
+
deleteSlide(id) {
|
|
1565
|
+
return request(`/admin/stories/${encodeURIComponent(id)}`, { method: "DELETE" });
|
|
1566
|
+
},
|
|
1567
|
+
createGroup(payload) {
|
|
1568
|
+
return request("/admin/stories/groups", {
|
|
1569
|
+
method: "POST",
|
|
1570
|
+
body: JSON.stringify(payload)
|
|
1571
|
+
});
|
|
1572
|
+
},
|
|
1573
|
+
updateGroup(id, payload) {
|
|
1574
|
+
return request(`/admin/stories/groups/${encodeURIComponent(id)}`, {
|
|
1575
|
+
method: "PATCH",
|
|
1576
|
+
body: JSON.stringify(payload)
|
|
1577
|
+
});
|
|
1578
|
+
},
|
|
1579
|
+
deleteGroup(id) {
|
|
1580
|
+
return request(`/admin/stories/groups/${encodeURIComponent(id)}`, { method: "DELETE" });
|
|
1581
|
+
},
|
|
1582
|
+
addHotspot(storyId, payload) {
|
|
1583
|
+
return request(`/admin/stories/${encodeURIComponent(storyId)}/hotspots`, {
|
|
1584
|
+
method: "POST",
|
|
1585
|
+
body: JSON.stringify(payload)
|
|
1586
|
+
});
|
|
1587
|
+
},
|
|
1588
|
+
removeHotspot(storyId, hotspotId) {
|
|
1589
|
+
return request(`/admin/stories/${encodeURIComponent(storyId)}/hotspots`, {
|
|
1590
|
+
method: "DELETE",
|
|
1591
|
+
body: JSON.stringify({ hotspot_id: hotspotId })
|
|
1592
|
+
});
|
|
1593
|
+
},
|
|
1594
|
+
addSticker(storyId, payload) {
|
|
1595
|
+
return request(`/admin/stories/${encodeURIComponent(storyId)}/stickers`, {
|
|
1596
|
+
method: "POST",
|
|
1597
|
+
body: JSON.stringify(payload)
|
|
1598
|
+
});
|
|
1599
|
+
},
|
|
1600
|
+
removeSticker(storyId, stickerId) {
|
|
1601
|
+
return request(`/admin/stories/${encodeURIComponent(storyId)}/stickers`, {
|
|
1602
|
+
method: "DELETE",
|
|
1603
|
+
body: JSON.stringify({ sticker_id: stickerId })
|
|
1604
|
+
});
|
|
1605
|
+
},
|
|
1606
|
+
getAnalytics() {
|
|
1607
|
+
return request("/admin/stories/analytics");
|
|
1608
|
+
}
|
|
1609
|
+
},
|
|
1610
|
+
store: {
|
|
1611
|
+
listStories(filters) {
|
|
1612
|
+
const params = new URLSearchParams();
|
|
1613
|
+
if (filters?.placement) params.set("placement", filters.placement);
|
|
1614
|
+
if (filters?.target_entity_id) params.set("target_entity_id", filters.target_entity_id);
|
|
1615
|
+
if (filters?.collection_id) params.set("collection_id", filters.collection_id);
|
|
1616
|
+
if (filters?.group_id) params.set("group_id", filters.group_id);
|
|
1617
|
+
if (filters?.product_id) params.set("product_id", filters.product_id);
|
|
1618
|
+
return request(`/store/stories${params.toString() ? `?${params.toString()}` : ""}`);
|
|
1619
|
+
},
|
|
1620
|
+
recordEvent(storyId, payload) {
|
|
1621
|
+
return request(`/store/stories/${encodeURIComponent(storyId)}/events`, {
|
|
1622
|
+
method: "POST",
|
|
1623
|
+
body: JSON.stringify(payload)
|
|
1624
|
+
});
|
|
1625
|
+
},
|
|
1626
|
+
interactWithSticker(storyId, payload) {
|
|
1627
|
+
return request(`/store/stories/${encodeURIComponent(storyId)}/interact`, {
|
|
1628
|
+
method: "POST",
|
|
1629
|
+
body: JSON.stringify(payload)
|
|
1630
|
+
});
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
};
|
|
1634
|
+
}
|
|
1635
|
+
var defaultStoriesSdk = createStoriesSdk();
|
|
1636
|
+
// src/hooks/use-sdk-primitives.ts
|
|
1637
|
+
var listeners = /* @__PURE__ */ new Set();
|
|
1638
|
+
function invalidateStoriesQueries(prefixKey) {
|
|
1639
|
+
for (const listener of listeners) listener(prefixKey);
|
|
1640
|
+
}
|
|
1641
|
+
function useStoriesQuery(queryKey, fetcher, options) {
|
|
1642
|
+
const enabled = options?.enabled ?? true;
|
|
1643
|
+
const [data, setData] = (0, react.useState)(options?.initialData);
|
|
1644
|
+
const [isLoading, setIsLoading] = (0, react.useState)(enabled && !options?.initialData);
|
|
1645
|
+
const [error, setError] = (0, react.useState)(null);
|
|
1646
|
+
const fetcherRef = (0, react.useRef)(fetcher);
|
|
1647
|
+
fetcherRef.current = fetcher;
|
|
1648
|
+
const serializedKey = JSON.stringify(queryKey);
|
|
1649
|
+
const refetch = (0, react.useCallback)(async () => {
|
|
1650
|
+
setIsLoading(true);
|
|
1651
|
+
setError(null);
|
|
1652
|
+
try {
|
|
1653
|
+
const res = await fetcherRef.current();
|
|
1654
|
+
setData(res);
|
|
1655
|
+
return res;
|
|
1656
|
+
} catch (err) {
|
|
1657
|
+
const normalized = err instanceof Error ? err : new Error(String(err));
|
|
1658
|
+
setError(normalized);
|
|
1659
|
+
throw normalized;
|
|
1660
|
+
} finally {
|
|
1661
|
+
setIsLoading(false);
|
|
1662
|
+
}
|
|
1663
|
+
}, []);
|
|
1664
|
+
(0, react.useEffect)(() => {
|
|
1665
|
+
if (!enabled) return;
|
|
1666
|
+
refetch().catch(() => {});
|
|
1667
|
+
}, [
|
|
1668
|
+
enabled,
|
|
1669
|
+
serializedKey,
|
|
1670
|
+
refetch
|
|
1671
|
+
]);
|
|
1672
|
+
(0, react.useEffect)(() => {
|
|
1673
|
+
if (!enabled) return;
|
|
1674
|
+
const parsedKey = JSON.parse(serializedKey);
|
|
1675
|
+
const listener = (prefixKey) => {
|
|
1676
|
+
if (matchesStoriesQueryKeyPrefix(parsedKey, prefixKey)) refetch().catch(() => {});
|
|
1677
|
+
};
|
|
1678
|
+
listeners.add(listener);
|
|
1679
|
+
return () => {
|
|
1680
|
+
listeners.delete(listener);
|
|
1681
|
+
};
|
|
1682
|
+
}, [
|
|
1683
|
+
enabled,
|
|
1684
|
+
serializedKey,
|
|
1685
|
+
refetch
|
|
1686
|
+
]);
|
|
1687
|
+
return {
|
|
1688
|
+
data,
|
|
1689
|
+
isLoading,
|
|
1690
|
+
error,
|
|
1691
|
+
refetch
|
|
1692
|
+
};
|
|
1693
|
+
}
|
|
1694
|
+
function useStoriesMutation(mutationFn, options, invalidatePrefix) {
|
|
1695
|
+
const [data, setData] = (0, react.useState)(null);
|
|
1696
|
+
const [isPending, setIsPending] = (0, react.useState)(false);
|
|
1697
|
+
const [error, setError] = (0, react.useState)(null);
|
|
1698
|
+
return {
|
|
1699
|
+
data,
|
|
1700
|
+
isPending,
|
|
1701
|
+
error,
|
|
1702
|
+
mutateAsync: (0, react.useCallback)(async (variables) => {
|
|
1703
|
+
setIsPending(true);
|
|
1704
|
+
setError(null);
|
|
1705
|
+
try {
|
|
1706
|
+
const res = await mutationFn(variables);
|
|
1707
|
+
setData(res);
|
|
1708
|
+
if (invalidatePrefix) invalidateStoriesQueries(invalidatePrefix);
|
|
1709
|
+
options?.onSuccess?.(res, variables);
|
|
1710
|
+
return res;
|
|
1711
|
+
} catch (err) {
|
|
1712
|
+
const normalized = err instanceof Error ? err : new Error(String(err));
|
|
1713
|
+
setError(normalized);
|
|
1714
|
+
options?.onError?.(normalized, variables);
|
|
1715
|
+
throw normalized;
|
|
1716
|
+
} finally {
|
|
1717
|
+
setIsPending(false);
|
|
1718
|
+
}
|
|
1719
|
+
}, [
|
|
1720
|
+
mutationFn,
|
|
1721
|
+
invalidatePrefix,
|
|
1722
|
+
options
|
|
1723
|
+
])
|
|
1724
|
+
};
|
|
1725
|
+
}
|
|
1726
|
+
// src/hooks/index.ts
|
|
1727
|
+
function useAdminStoriesState(filters, options) {
|
|
1728
|
+
return useStoriesQuery(storiesQueryKeys.adminState(filters), () => defaultStoriesSdk.admin.listStudioState(filters), options);
|
|
1729
|
+
}
|
|
1730
|
+
function useStoriesAnalytics(options) {
|
|
1731
|
+
return useStoriesQuery(storiesQueryKeys.analytics(), () => defaultStoriesSdk.admin.getAnalytics(), options);
|
|
1732
|
+
}
|
|
1733
|
+
function useCreateStoryGroup(options) {
|
|
1734
|
+
return useStoriesMutation((payload) => defaultStoriesSdk.admin.createGroup(payload), options, storiesQueryKeys.all);
|
|
1735
|
+
}
|
|
1736
|
+
function useUpdateStoryGroup(options) {
|
|
1737
|
+
return useStoriesMutation(({ id, patch }) => defaultStoriesSdk.admin.updateGroup(id, patch), options, storiesQueryKeys.all);
|
|
1738
|
+
}
|
|
1739
|
+
function useDeleteStoryGroup(options) {
|
|
1740
|
+
return useStoriesMutation(({ id }) => defaultStoriesSdk.admin.deleteGroup(id), options, storiesQueryKeys.all);
|
|
1741
|
+
}
|
|
1742
|
+
function useCreateStorySlide(options) {
|
|
1743
|
+
return useStoriesMutation((payload) => defaultStoriesSdk.admin.createSlide(payload), options, storiesQueryKeys.all);
|
|
1744
|
+
}
|
|
1745
|
+
function useUpdateStorySlide(options) {
|
|
1746
|
+
return useStoriesMutation(({ id, patch }) => defaultStoriesSdk.admin.updateSlide(id, patch), options, storiesQueryKeys.all);
|
|
1747
|
+
}
|
|
1748
|
+
function useDeleteStorySlide(options) {
|
|
1749
|
+
return useStoriesMutation(({ id }) => defaultStoriesSdk.admin.deleteSlide(id), options, storiesQueryKeys.all);
|
|
1750
|
+
}
|
|
1751
|
+
function useAddStoryHotspot(options) {
|
|
1752
|
+
return useStoriesMutation(({ storyId, hotspot }) => defaultStoriesSdk.admin.addHotspot(storyId, hotspot), options, storiesQueryKeys.all);
|
|
1753
|
+
}
|
|
1754
|
+
function useRemoveStoryHotspot(options) {
|
|
1755
|
+
return useStoriesMutation(({ storyId, hotspotId }) => defaultStoriesSdk.admin.removeHotspot(storyId, hotspotId), options, storiesQueryKeys.all);
|
|
1756
|
+
}
|
|
1757
|
+
function useAddStorySticker(options) {
|
|
1758
|
+
return useStoriesMutation(({ storyId, sticker }) => defaultStoriesSdk.admin.addSticker(storyId, sticker), options, storiesQueryKeys.all);
|
|
1759
|
+
}
|
|
1760
|
+
function useRemoveStorySticker(options) {
|
|
1761
|
+
return useStoriesMutation(({ storyId, stickerId }) => defaultStoriesSdk.admin.removeSticker(storyId, stickerId), options, storiesQueryKeys.all);
|
|
1762
|
+
}
|
|
1763
|
+
// src/admin/hooks/use-product-stories.ts
|
|
1764
|
+
/**
|
|
1765
|
+
* Decoupled hook for the Product Details Shoppable Stories widget (`product.details.after`).
|
|
1766
|
+
*/
|
|
1767
|
+
var useProductStories = (product) => {
|
|
1768
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1769
|
+
const productId = product?.id ?? "";
|
|
1770
|
+
const stateQuery = useAdminStoriesState(productId ? { product_id: productId } : void 0, { enabled: Boolean(productId) });
|
|
1771
|
+
const createSlideMutation = useCreateStorySlide();
|
|
1772
|
+
const taggedSlides = stateQuery.data?.stories ?? [];
|
|
1773
|
+
const groups = stateQuery.data?.groups ?? [];
|
|
1774
|
+
const handleQuickCreateProductStory = async () => {
|
|
1775
|
+
if (!productId || !product?.title) return;
|
|
1776
|
+
const mediaUrl = product.thumbnail || "https://images.unsplash.com/photo-1523275335684-37898b6baf30";
|
|
1777
|
+
try {
|
|
1778
|
+
const res = await createSlideMutation.mutateAsync({
|
|
1779
|
+
group_id: groups[0]?.id ?? null,
|
|
1780
|
+
title: product.title,
|
|
1781
|
+
caption: t("widget.featuredCaption", { title: product.title }),
|
|
1782
|
+
media_type: "image",
|
|
1783
|
+
media_url: mediaUrl,
|
|
1784
|
+
thumbnail_url: product.thumbnail ?? null,
|
|
1785
|
+
link_url: product.handle ? `/products/${product.handle}` : null,
|
|
1786
|
+
link_text: t("widget.shopProductLink"),
|
|
1787
|
+
hotspots: [{
|
|
1788
|
+
product_id: productId,
|
|
1789
|
+
product_title: product.title,
|
|
1790
|
+
product_handle: product.handle ?? null,
|
|
1791
|
+
product_thumbnail: product.thumbnail ?? null,
|
|
1792
|
+
x_percent: 50,
|
|
1793
|
+
y_percent: 65,
|
|
1794
|
+
label: product.title
|
|
1795
|
+
}]
|
|
1796
|
+
});
|
|
1797
|
+
_medusajs_ui.toast.success(t("messages.productStoryCreated", { title: res.story.title }));
|
|
1798
|
+
stateQuery.refetch();
|
|
1799
|
+
} catch (err) {
|
|
1800
|
+
_medusajs_ui.toast.error(err instanceof Error ? err.message : t("messages.slideCreateError"));
|
|
1801
|
+
}
|
|
1802
|
+
};
|
|
1803
|
+
return {
|
|
1804
|
+
taggedSlides,
|
|
1805
|
+
isCreating: createSlideMutation.isPending,
|
|
1806
|
+
handleQuickCreateProductStory
|
|
1807
|
+
};
|
|
1808
|
+
};
|
|
1809
|
+
// src/admin/widgets/product-stories-widget.tsx
|
|
1810
|
+
var ProductStoriesWidget = ({ data }) => {
|
|
1811
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1812
|
+
const { taggedSlides, isCreating, handleQuickCreateProductStory } = useProductStories(data);
|
|
1813
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ProductStoriesCard, {
|
|
1814
|
+
productTitle: data?.title || t("widget.thisProductFallback"),
|
|
1815
|
+
taggedSlides,
|
|
1816
|
+
isCreating,
|
|
1817
|
+
onQuickCreateProductStory: handleQuickCreateProductStory
|
|
1818
|
+
});
|
|
1819
|
+
};
|
|
1820
|
+
(0, _medusajs_admin_sdk.defineWidgetConfig)({ zone: "product.details.after" });
|
|
1821
|
+
// src/admin/hooks/use-stories-studio.ts
|
|
1822
|
+
var useStoriesStudio = () => {
|
|
1823
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
1824
|
+
const studioQuery = useAdminStoriesState();
|
|
1825
|
+
const analyticsQuery = useStoriesAnalytics();
|
|
1826
|
+
const createGroupMutation = useCreateStoryGroup();
|
|
1827
|
+
const updateGroupMutation = useUpdateStoryGroup();
|
|
1828
|
+
const deleteGroupMutation = useDeleteStoryGroup();
|
|
1829
|
+
const createSlideMutation = useCreateStorySlide();
|
|
1830
|
+
const updateSlideMutation = useUpdateStorySlide();
|
|
1831
|
+
const deleteSlideMutation = useDeleteStorySlide();
|
|
1832
|
+
const addHotspotMutation = useAddStoryHotspot();
|
|
1833
|
+
const removeHotspotMutation = useRemoveStoryHotspot();
|
|
1834
|
+
const addStickerMutation = useAddStorySticker();
|
|
1835
|
+
const removeStickerMutation = useRemoveStorySticker();
|
|
1836
|
+
const [selectedGroupId, setSelectedGroupId] = (0, react.useState)(null);
|
|
1837
|
+
const [selectedSlideId, setSelectedSlideId] = (0, react.useState)(null);
|
|
1838
|
+
const [groupForm, setGroupForm] = (0, react.useState)({
|
|
1839
|
+
title: "",
|
|
1840
|
+
subtitle: "",
|
|
1841
|
+
avatar_url: "",
|
|
1842
|
+
ring_theme: "instagram",
|
|
1843
|
+
custom_ring_color: "#6366f1",
|
|
1844
|
+
placement: "home",
|
|
1845
|
+
is_pinned: true,
|
|
1846
|
+
is_ephemeral: false
|
|
1847
|
+
});
|
|
1848
|
+
const [slideForm, setSlideForm] = (0, react.useState)({
|
|
1849
|
+
group_id: "",
|
|
1850
|
+
title: "",
|
|
1851
|
+
caption: "",
|
|
1852
|
+
media_type: "image",
|
|
1853
|
+
media_url: "",
|
|
1854
|
+
thumbnail_url: "",
|
|
1855
|
+
duration_ms: 5e3,
|
|
1856
|
+
link_url: "",
|
|
1857
|
+
link_text: "Shop Now",
|
|
1858
|
+
is_ephemeral_24h: false
|
|
1859
|
+
});
|
|
1860
|
+
const [hotspotForm, setHotspotForm] = (0, react.useState)({
|
|
1861
|
+
product_id: "",
|
|
1862
|
+
product_title: "",
|
|
1863
|
+
product_handle: "",
|
|
1864
|
+
price_formatted: "$49.00",
|
|
1865
|
+
label: "",
|
|
1866
|
+
x_percent: 50,
|
|
1867
|
+
y_percent: 62
|
|
1868
|
+
});
|
|
1869
|
+
const [stickerForm, setStickerForm] = (0, react.useState)({
|
|
1870
|
+
type: "poll",
|
|
1871
|
+
prompt: "",
|
|
1872
|
+
option_one: "Yes 🔥",
|
|
1873
|
+
option_two: "Show me more",
|
|
1874
|
+
coupon_code: "STORY15",
|
|
1875
|
+
countdown_until: "",
|
|
1876
|
+
x_percent: 50,
|
|
1877
|
+
y_percent: 25
|
|
1878
|
+
});
|
|
1879
|
+
const groups = studioQuery.data?.groups ?? [];
|
|
1880
|
+
const slides = studioQuery.data?.stories ?? [];
|
|
1881
|
+
(0, react.useEffect)(() => {
|
|
1882
|
+
if (!selectedGroupId && groups.length > 0) {
|
|
1883
|
+
setSelectedGroupId(groups[0].id);
|
|
1884
|
+
setSlideForm((prev) => ({
|
|
1885
|
+
...prev,
|
|
1886
|
+
group_id: groups[0].id
|
|
1887
|
+
}));
|
|
1888
|
+
}
|
|
1889
|
+
}, [groups, selectedGroupId]);
|
|
1890
|
+
(0, react.useEffect)(() => {
|
|
1891
|
+
if (!selectedSlideId && slides.length > 0) setSelectedSlideId(slides[0].id);
|
|
1892
|
+
}, [slides, selectedSlideId]);
|
|
1893
|
+
const selectedSlide = slides.find((s) => s.id === selectedSlideId) ?? slides[0] ?? null;
|
|
1894
|
+
const notify = (msg, tone = "success") => {
|
|
1895
|
+
if (tone === "error") _medusajs_ui.toast.error(msg);
|
|
1896
|
+
else _medusajs_ui.toast.success(msg);
|
|
1897
|
+
};
|
|
1898
|
+
const handleCreateGroup = async () => {
|
|
1899
|
+
try {
|
|
1900
|
+
const res = await createGroupMutation.mutateAsync({
|
|
1901
|
+
title: groupForm.title,
|
|
1902
|
+
subtitle: groupForm.subtitle || null,
|
|
1903
|
+
avatar_url: groupForm.avatar_url || null,
|
|
1904
|
+
ring_theme: groupForm.ring_theme,
|
|
1905
|
+
custom_ring_color: groupForm.ring_theme === "custom" ? groupForm.custom_ring_color : null,
|
|
1906
|
+
placement: groupForm.placement,
|
|
1907
|
+
is_pinned: groupForm.is_pinned,
|
|
1908
|
+
is_ephemeral: groupForm.is_ephemeral
|
|
1909
|
+
});
|
|
1910
|
+
setSelectedGroupId(res.group.id);
|
|
1911
|
+
setGroupForm((prev) => ({
|
|
1912
|
+
...prev,
|
|
1913
|
+
title: "",
|
|
1914
|
+
subtitle: ""
|
|
1915
|
+
}));
|
|
1916
|
+
notify(t("messages.groupCreated", { title: res.group.title }));
|
|
1917
|
+
} catch (err) {
|
|
1918
|
+
notify(err instanceof Error ? err.message : t("messages.groupCreateError"), "error");
|
|
1919
|
+
}
|
|
1920
|
+
};
|
|
1921
|
+
const handleToggleGroupActive = async (id, isActive) => {
|
|
1922
|
+
try {
|
|
1923
|
+
await updateGroupMutation.mutateAsync({
|
|
1924
|
+
id,
|
|
1925
|
+
patch: { is_active: isActive }
|
|
1926
|
+
});
|
|
1927
|
+
notify(isActive ? t("messages.groupActivated") : t("messages.groupPaused"));
|
|
1928
|
+
} catch (err) {
|
|
1929
|
+
notify(err instanceof Error ? err.message : t("messages.groupUpdateError"), "error");
|
|
1930
|
+
}
|
|
1931
|
+
};
|
|
1932
|
+
const handleDeleteGroup = async (id) => {
|
|
1933
|
+
try {
|
|
1934
|
+
await deleteGroupMutation.mutateAsync({ id });
|
|
1935
|
+
if (selectedGroupId === id) setSelectedGroupId(null);
|
|
1936
|
+
notify(t("messages.groupDeleted"));
|
|
1937
|
+
} catch (err) {
|
|
1938
|
+
notify(err instanceof Error ? err.message : t("messages.groupDeleteError"), "error");
|
|
1939
|
+
}
|
|
1940
|
+
};
|
|
1941
|
+
const handleCreateSlide = async () => {
|
|
1942
|
+
try {
|
|
1943
|
+
const expiresAt = slideForm.is_ephemeral_24h ? new Date(Date.now() + 864e5).toISOString() : null;
|
|
1944
|
+
const res = await createSlideMutation.mutateAsync({
|
|
1945
|
+
group_id: slideForm.group_id || selectedGroupId || null,
|
|
1946
|
+
title: slideForm.title,
|
|
1947
|
+
caption: slideForm.caption || null,
|
|
1948
|
+
media_type: slideForm.media_type,
|
|
1949
|
+
media_url: slideForm.media_url,
|
|
1950
|
+
thumbnail_url: slideForm.thumbnail_url || null,
|
|
1951
|
+
duration_ms: slideForm.duration_ms,
|
|
1952
|
+
link_url: slideForm.link_url || null,
|
|
1953
|
+
link_text: slideForm.link_text || null,
|
|
1954
|
+
expires_at: expiresAt
|
|
1955
|
+
});
|
|
1956
|
+
setSelectedSlideId(res.story.id);
|
|
1957
|
+
setSlideForm((prev) => ({
|
|
1958
|
+
...prev,
|
|
1959
|
+
title: "",
|
|
1960
|
+
caption: "",
|
|
1961
|
+
media_url: ""
|
|
1962
|
+
}));
|
|
1963
|
+
notify(t("messages.slideCreated", { title: res.story.title }));
|
|
1964
|
+
} catch (err) {
|
|
1965
|
+
notify(err instanceof Error ? err.message : t("messages.slideCreateError"), "error");
|
|
1966
|
+
}
|
|
1967
|
+
};
|
|
1968
|
+
const handleToggleSlideActive = async (id, isActive) => {
|
|
1969
|
+
try {
|
|
1970
|
+
await updateSlideMutation.mutateAsync({
|
|
1971
|
+
id,
|
|
1972
|
+
patch: { is_active: isActive }
|
|
1973
|
+
});
|
|
1974
|
+
notify(isActive ? t("messages.slideActivated") : t("messages.slidePaused"));
|
|
1975
|
+
} catch (err) {
|
|
1976
|
+
notify(err instanceof Error ? err.message : t("messages.slideUpdateError"), "error");
|
|
1977
|
+
}
|
|
1978
|
+
};
|
|
1979
|
+
const handleDeleteSlide = async (id) => {
|
|
1980
|
+
try {
|
|
1981
|
+
await deleteSlideMutation.mutateAsync({ id });
|
|
1982
|
+
if (selectedSlideId === id) setSelectedSlideId(null);
|
|
1983
|
+
notify(t("messages.slideDeleted"));
|
|
1984
|
+
} catch (err) {
|
|
1985
|
+
notify(err instanceof Error ? err.message : t("messages.slideDeleteError"), "error");
|
|
1986
|
+
}
|
|
1987
|
+
};
|
|
1988
|
+
const handleCanvasCoordinateClick = (xPercent, yPercent) => {
|
|
1989
|
+
setHotspotForm((prev) => ({
|
|
1990
|
+
...prev,
|
|
1991
|
+
x_percent: Math.round(xPercent * 10) / 10,
|
|
1992
|
+
y_percent: Math.round(yPercent * 10) / 10
|
|
1993
|
+
}));
|
|
1994
|
+
};
|
|
1995
|
+
const handleAddHotspot = async () => {
|
|
1996
|
+
if (!selectedSlide) {
|
|
1997
|
+
notify(t("messages.selectSlideForHotspot"), "error");
|
|
1998
|
+
return;
|
|
1999
|
+
}
|
|
2000
|
+
try {
|
|
2001
|
+
await addHotspotMutation.mutateAsync({
|
|
2002
|
+
storyId: selectedSlide.id,
|
|
2003
|
+
hotspot: {
|
|
2004
|
+
product_id: hotspotForm.product_id,
|
|
2005
|
+
product_title: hotspotForm.product_title,
|
|
2006
|
+
product_handle: hotspotForm.product_handle || null,
|
|
2007
|
+
price_formatted: hotspotForm.price_formatted || null,
|
|
2008
|
+
label: hotspotForm.label || null,
|
|
2009
|
+
x_percent: hotspotForm.x_percent,
|
|
2010
|
+
y_percent: hotspotForm.y_percent
|
|
2011
|
+
}
|
|
2012
|
+
});
|
|
2013
|
+
setHotspotForm((prev) => ({
|
|
2014
|
+
...prev,
|
|
2015
|
+
product_id: "",
|
|
2016
|
+
product_title: "",
|
|
2017
|
+
label: ""
|
|
2018
|
+
}));
|
|
2019
|
+
notify(t("messages.hotspotPinned", {
|
|
2020
|
+
x: hotspotForm.x_percent,
|
|
2021
|
+
y: hotspotForm.y_percent
|
|
2022
|
+
}));
|
|
2023
|
+
} catch (err) {
|
|
2024
|
+
notify(err instanceof Error ? err.message : t("messages.hotspotPinError"), "error");
|
|
2025
|
+
}
|
|
2026
|
+
};
|
|
2027
|
+
const handleRemoveHotspot = async (hotspotId) => {
|
|
2028
|
+
if (!selectedSlide) return;
|
|
2029
|
+
try {
|
|
2030
|
+
await removeHotspotMutation.mutateAsync({
|
|
2031
|
+
storyId: selectedSlide.id,
|
|
2032
|
+
hotspotId
|
|
2033
|
+
});
|
|
2034
|
+
notify(t("messages.hotspotRemoved"));
|
|
2035
|
+
} catch (err) {
|
|
2036
|
+
notify(err instanceof Error ? err.message : t("messages.hotspotRemoveError"), "error");
|
|
2037
|
+
}
|
|
2038
|
+
};
|
|
2039
|
+
const handleAddSticker = async () => {
|
|
2040
|
+
if (!selectedSlide) {
|
|
2041
|
+
notify(t("messages.selectSlideForSticker"), "error");
|
|
2042
|
+
return;
|
|
2043
|
+
}
|
|
2044
|
+
try {
|
|
2045
|
+
await addStickerMutation.mutateAsync({
|
|
2046
|
+
storyId: selectedSlide.id,
|
|
2047
|
+
sticker: {
|
|
2048
|
+
type: stickerForm.type,
|
|
2049
|
+
prompt: stickerForm.prompt,
|
|
2050
|
+
x_percent: stickerForm.x_percent,
|
|
2051
|
+
y_percent: stickerForm.y_percent,
|
|
2052
|
+
options: stickerForm.type === "poll" ? [{
|
|
2053
|
+
id: "opt_1",
|
|
2054
|
+
label: stickerForm.option_one || "Yes"
|
|
2055
|
+
}, {
|
|
2056
|
+
id: "opt_2",
|
|
2057
|
+
label: stickerForm.option_two || "No"
|
|
2058
|
+
}] : null,
|
|
2059
|
+
coupon_code: stickerForm.type === "coupon" ? stickerForm.coupon_code : null,
|
|
2060
|
+
countdown_until: stickerForm.type === "countdown" ? stickerForm.countdown_until : null
|
|
2061
|
+
}
|
|
2062
|
+
});
|
|
2063
|
+
setStickerForm((prev) => ({
|
|
2064
|
+
...prev,
|
|
2065
|
+
prompt: ""
|
|
2066
|
+
}));
|
|
2067
|
+
notify(t("messages.stickerAdded"));
|
|
2068
|
+
} catch (err) {
|
|
2069
|
+
notify(err instanceof Error ? err.message : t("messages.stickerAddError"), "error");
|
|
2070
|
+
}
|
|
2071
|
+
};
|
|
2072
|
+
const handleRemoveSticker = async (stickerId) => {
|
|
2073
|
+
if (!selectedSlide) return;
|
|
2074
|
+
try {
|
|
2075
|
+
await removeStickerMutation.mutateAsync({
|
|
2076
|
+
storyId: selectedSlide.id,
|
|
2077
|
+
stickerId
|
|
2078
|
+
});
|
|
2079
|
+
notify(t("messages.stickerRemoved"));
|
|
2080
|
+
} catch (err) {
|
|
2081
|
+
notify(err instanceof Error ? err.message : t("messages.stickerRemoveError"), "error");
|
|
2082
|
+
}
|
|
2083
|
+
};
|
|
2084
|
+
return {
|
|
2085
|
+
groups,
|
|
2086
|
+
slides,
|
|
2087
|
+
selectedGroupId,
|
|
2088
|
+
setSelectedGroupId,
|
|
2089
|
+
selectedSlide,
|
|
2090
|
+
selectedSlideId,
|
|
2091
|
+
setSelectedSlideId,
|
|
2092
|
+
analytics: analyticsQuery.data?.analytics,
|
|
2093
|
+
isLoading: studioQuery.isLoading || analyticsQuery.isLoading,
|
|
2094
|
+
groupForm,
|
|
2095
|
+
setGroupForm,
|
|
2096
|
+
slideForm,
|
|
2097
|
+
setSlideForm,
|
|
2098
|
+
hotspotForm,
|
|
2099
|
+
setHotspotForm,
|
|
2100
|
+
stickerForm,
|
|
2101
|
+
setStickerForm,
|
|
2102
|
+
isSavingGroup: createGroupMutation.isPending,
|
|
2103
|
+
isSavingSlide: createSlideMutation.isPending,
|
|
2104
|
+
isSavingHotspot: addHotspotMutation.isPending,
|
|
2105
|
+
isSavingSticker: addStickerMutation.isPending,
|
|
2106
|
+
onRefresh: () => {
|
|
2107
|
+
studioQuery.refetch();
|
|
2108
|
+
analyticsQuery.refetch();
|
|
2109
|
+
},
|
|
2110
|
+
handleCreateGroup,
|
|
2111
|
+
handleToggleGroupActive,
|
|
2112
|
+
handleDeleteGroup,
|
|
2113
|
+
handleCreateSlide,
|
|
2114
|
+
handleToggleSlideActive,
|
|
2115
|
+
handleDeleteSlide,
|
|
2116
|
+
handleCanvasCoordinateClick,
|
|
2117
|
+
handleAddHotspot,
|
|
2118
|
+
handleRemoveHotspot,
|
|
2119
|
+
handleAddSticker,
|
|
2120
|
+
handleRemoveSticker
|
|
2121
|
+
};
|
|
2122
|
+
};
|
|
2123
|
+
// src/admin/components/rbac-guard.tsx
|
|
2124
|
+
var CACHE_TTL_MS = 3e4;
|
|
2125
|
+
var cachedResult = null;
|
|
2126
|
+
var inflightPromise = null;
|
|
2127
|
+
function matchRbacPermission(granted, required, isSuperAdmin = false) {
|
|
2128
|
+
if (isSuperAdmin || !required) return true;
|
|
2129
|
+
if (granted.includes("*") || granted.includes("*:*") || granted.includes(required)) return true;
|
|
2130
|
+
const sep = required.includes(".") ? "." : required.includes(":") ? ":" : null;
|
|
2131
|
+
if (sep) {
|
|
2132
|
+
const ns = required.split(sep)[0];
|
|
2133
|
+
if (granted.includes(`${ns}.*`) || granted.includes(`${ns}:*`)) return true;
|
|
2134
|
+
}
|
|
2135
|
+
return false;
|
|
2136
|
+
}
|
|
2137
|
+
async function fetchRbacMe() {
|
|
2138
|
+
if (cachedResult && Date.now() - cachedResult.fetchedAt < CACHE_TTL_MS) return cachedResult;
|
|
2139
|
+
if (inflightPromise) return inflightPromise;
|
|
2140
|
+
inflightPromise = (async () => {
|
|
2141
|
+
try {
|
|
2142
|
+
const res = await fetch("/admin/rbac/me", {
|
|
2143
|
+
credentials: "include",
|
|
2144
|
+
headers: { Accept: "application/json" }
|
|
2145
|
+
});
|
|
2146
|
+
if (res.status === 404) {
|
|
2147
|
+
cachedResult = {
|
|
2148
|
+
rbacActive: false,
|
|
2149
|
+
isSuperAdmin: false,
|
|
2150
|
+
permissions: [],
|
|
2151
|
+
fetchedAt: Date.now()
|
|
2152
|
+
};
|
|
2153
|
+
return cachedResult;
|
|
2154
|
+
}
|
|
2155
|
+
if (!res.ok) {
|
|
2156
|
+
cachedResult = {
|
|
2157
|
+
rbacActive: true,
|
|
2158
|
+
isSuperAdmin: false,
|
|
2159
|
+
permissions: [],
|
|
2160
|
+
fetchedAt: Date.now()
|
|
2161
|
+
};
|
|
2162
|
+
return cachedResult;
|
|
2163
|
+
}
|
|
2164
|
+
const data = await res.json();
|
|
2165
|
+
cachedResult = {
|
|
2166
|
+
rbacActive: true,
|
|
2167
|
+
isSuperAdmin: Boolean(data?.isSuperAdmin),
|
|
2168
|
+
permissions: Array.isArray(data?.permissions) ? data.permissions : [],
|
|
2169
|
+
fetchedAt: Date.now()
|
|
2170
|
+
};
|
|
2171
|
+
return cachedResult;
|
|
2172
|
+
} catch {
|
|
2173
|
+
cachedResult = {
|
|
2174
|
+
rbacActive: false,
|
|
2175
|
+
isSuperAdmin: false,
|
|
2176
|
+
permissions: [],
|
|
2177
|
+
fetchedAt: Date.now()
|
|
2178
|
+
};
|
|
2179
|
+
return cachedResult;
|
|
2180
|
+
} finally {
|
|
2181
|
+
inflightPromise = null;
|
|
2182
|
+
}
|
|
2183
|
+
})();
|
|
2184
|
+
return inflightPromise;
|
|
2185
|
+
}
|
|
2186
|
+
function useRbacAccess() {
|
|
2187
|
+
const [state, setState] = (0, react.useState)(() => cachedResult && Date.now() - cachedResult.fetchedAt < CACHE_TTL_MS ? cachedResult : null);
|
|
2188
|
+
(0, react.useEffect)(() => {
|
|
2189
|
+
let active = true;
|
|
2190
|
+
fetchRbacMe().then((res) => {
|
|
2191
|
+
if (active) setState(res);
|
|
2192
|
+
});
|
|
2193
|
+
return () => {
|
|
2194
|
+
active = false;
|
|
2195
|
+
};
|
|
2196
|
+
}, []);
|
|
2197
|
+
if (!state) return {
|
|
2198
|
+
isLoading: true,
|
|
2199
|
+
rbacActive: false,
|
|
2200
|
+
hasPermission: () => false
|
|
2201
|
+
};
|
|
2202
|
+
return {
|
|
2203
|
+
isLoading: false,
|
|
2204
|
+
rbacActive: state.rbacActive,
|
|
2205
|
+
hasPermission: (permission) => {
|
|
2206
|
+
if (!state.rbacActive || !permission) return true;
|
|
2207
|
+
return matchRbacPermission(state.permissions, permission, state.isSuperAdmin);
|
|
2208
|
+
}
|
|
2209
|
+
};
|
|
2210
|
+
}
|
|
2211
|
+
var RbacGuard = ({ permission, children, hideOnDenied = false }) => {
|
|
2212
|
+
const { isLoading, hasPermission } = useRbacAccess();
|
|
2213
|
+
if (isLoading) return null;
|
|
2214
|
+
if (!hasPermission(permission)) {
|
|
2215
|
+
if (hideOnDenied) return null;
|
|
2216
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
2217
|
+
className: "flex flex-col gap-y-2 p-6",
|
|
2218
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
2219
|
+
level: "h2",
|
|
2220
|
+
children: "Access denied"
|
|
2221
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Text, {
|
|
2222
|
+
size: "small",
|
|
2223
|
+
className: "text-ui-fg-subtle",
|
|
2224
|
+
children: [
|
|
2225
|
+
"You do not have permission to view this section. (",
|
|
2226
|
+
permission,
|
|
2227
|
+
")"
|
|
2228
|
+
]
|
|
2229
|
+
})]
|
|
2230
|
+
});
|
|
2231
|
+
}
|
|
2232
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children });
|
|
2233
|
+
};
|
|
2234
|
+
// src/admin/routes/stories/page.tsx
|
|
2235
|
+
var StoriesOverviewPage = () => {
|
|
2236
|
+
const { t, i18n } = (0, react_i18next.useTranslation)();
|
|
2237
|
+
const navigate = (0, react_router_dom.useNavigate)();
|
|
2238
|
+
const studio = useStoriesStudio();
|
|
2239
|
+
const isRtl = (i18n.resolvedLanguage || i18n.language || "").startsWith("ar");
|
|
2240
|
+
const totalImpressions = studio.analytics?.total_impressions ?? 0;
|
|
2241
|
+
const conversionRate = studio.analytics?.overall_conversion_rate_pct ?? 0;
|
|
2242
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer, {
|
|
2243
|
+
widgetsZonePrefix: "stories.overview",
|
|
2244
|
+
preferredLayoutId: _medusajs_admin_shared.CORE_LAYOUT_IDS.SINGLE_COLUMN,
|
|
2245
|
+
sections: { main: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2246
|
+
id: "StoriesOverviewContent",
|
|
2247
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2248
|
+
className: "flex flex-col gap-y-4",
|
|
2249
|
+
dir: isRtl ? "rtl" : "ltr",
|
|
2250
|
+
children: [
|
|
2251
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Toaster, {}),
|
|
2252
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2253
|
+
className: "flex flex-wrap items-center justify-between gap-4",
|
|
2254
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
2255
|
+
className: "font-sans font-medium h1-core",
|
|
2256
|
+
children: t("header.title")
|
|
2257
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
2258
|
+
className: "text-ui-fg-subtle mt-1",
|
|
2259
|
+
children: t("header.subtitle")
|
|
2260
|
+
})] }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Button, {
|
|
2261
|
+
variant: "secondary",
|
|
2262
|
+
size: "small",
|
|
2263
|
+
onClick: studio.onRefresh,
|
|
2264
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.ArrowPath, {}), t("header.refresh")]
|
|
2265
|
+
})]
|
|
2266
|
+
}),
|
|
2267
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2268
|
+
className: "grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-4",
|
|
2269
|
+
children: [
|
|
2270
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(StatCard, {
|
|
2271
|
+
title: t("analyticsTab.colHighlightRing"),
|
|
2272
|
+
value: studio.groups.length,
|
|
2273
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.BuildingStorefront, {}),
|
|
2274
|
+
loading: studio.isLoading,
|
|
2275
|
+
onClick: () => navigate("/stories/rings")
|
|
2276
|
+
}),
|
|
2277
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(StatCard, {
|
|
2278
|
+
title: t("analyticsTab.colSlides"),
|
|
2279
|
+
value: studio.slides.length,
|
|
2280
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.DocumentText, {}),
|
|
2281
|
+
loading: studio.isLoading,
|
|
2282
|
+
onClick: () => navigate("/stories/canvas")
|
|
2283
|
+
}),
|
|
2284
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(StatCard, {
|
|
2285
|
+
title: t("analyticsTab.colImpressions"),
|
|
2286
|
+
value: totalImpressions,
|
|
2287
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.Users, {}),
|
|
2288
|
+
loading: studio.isLoading,
|
|
2289
|
+
onClick: () => navigate("/stories/analytics")
|
|
2290
|
+
}),
|
|
2291
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(StatCard, {
|
|
2292
|
+
title: t("analyticsTab.colAddToCartRate"),
|
|
2293
|
+
value: `${conversionRate}%`,
|
|
2294
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.CheckCircle, {}),
|
|
2295
|
+
loading: studio.isLoading,
|
|
2296
|
+
onClick: () => navigate("/stories/analytics")
|
|
2297
|
+
})
|
|
2298
|
+
]
|
|
2299
|
+
}),
|
|
2300
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_ui.Container, {
|
|
2301
|
+
className: "p-0 overflow-hidden",
|
|
2302
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2303
|
+
className: "px-6 py-5 border-b border-ui-border-base",
|
|
2304
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, {
|
|
2305
|
+
level: "h2",
|
|
2306
|
+
children: t("nav.label")
|
|
2307
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Text, {
|
|
2308
|
+
className: "text-ui-fg-subtle mt-1",
|
|
2309
|
+
children: t("header.subtitle")
|
|
2310
|
+
})]
|
|
2311
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2312
|
+
className: "grid grid-cols-1 md:grid-cols-2",
|
|
2313
|
+
children: [
|
|
2314
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(NavigationCard, {
|
|
2315
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.DocumentText, {}),
|
|
2316
|
+
title: t("canvasTab.canvasTitle"),
|
|
2317
|
+
description: t("canvasTab.emptyCanvasPrompt"),
|
|
2318
|
+
onClick: () => navigate("/stories/canvas"),
|
|
2319
|
+
position: "top-left"
|
|
2320
|
+
}),
|
|
2321
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(NavigationCard, {
|
|
2322
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.BuildingStorefront, {}),
|
|
2323
|
+
title: t("ringsTab.previewTitle"),
|
|
2324
|
+
description: t("ringsTab.createTitle"),
|
|
2325
|
+
onClick: () => navigate("/stories/rings"),
|
|
2326
|
+
position: "top-right"
|
|
2327
|
+
}),
|
|
2328
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(NavigationCard, {
|
|
2329
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.Tag, {}),
|
|
2330
|
+
title: t("tabs.stickers"),
|
|
2331
|
+
description: t("stickersTab.activeTitle"),
|
|
2332
|
+
onClick: () => navigate("/stories/stickers"),
|
|
2333
|
+
position: "bottom-left"
|
|
2334
|
+
}),
|
|
2335
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(NavigationCard, {
|
|
2336
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_icons.CheckCircle, {}),
|
|
2337
|
+
title: t("tabs.analytics"),
|
|
2338
|
+
description: t("analyticsTab.funnelSubtitle"),
|
|
2339
|
+
onClick: () => navigate("/stories/analytics"),
|
|
2340
|
+
position: "bottom-right"
|
|
2341
|
+
})
|
|
2342
|
+
]
|
|
2343
|
+
})]
|
|
2344
|
+
})
|
|
2345
|
+
]
|
|
2346
|
+
})
|
|
2347
|
+
}) }
|
|
2348
|
+
});
|
|
2349
|
+
};
|
|
2350
|
+
var Breadcrumb$4 = () => {
|
|
2351
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
2352
|
+
return t("nav.label");
|
|
2353
|
+
};
|
|
2354
|
+
var config$4 = (0, _medusajs_admin_sdk.defineRouteConfig)({
|
|
2355
|
+
label: "nav.label",
|
|
2356
|
+
translationNs: "stories",
|
|
2357
|
+
icon: _medusajs_icons.BuildingStorefront
|
|
2358
|
+
});
|
|
2359
|
+
var handle$4 = { breadcrumb: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Breadcrumb$4, {}) };
|
|
2360
|
+
var GuardedStoriesOverviewPage = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RbacGuard, {
|
|
2361
|
+
permission: "stories.read",
|
|
2362
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StoriesOverviewPage, {})
|
|
2363
|
+
});
|
|
2364
|
+
// src/admin/routes/stories/analytics/page.tsx
|
|
2365
|
+
var StoriesAnalyticsPage = () => {
|
|
2366
|
+
const studio = useStoriesStudio();
|
|
2367
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Toaster, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer, {
|
|
2368
|
+
widgetsZonePrefix: "stories.analytics",
|
|
2369
|
+
preferredLayoutId: _medusajs_admin_shared.CORE_LAYOUT_IDS.SINGLE_COLUMN,
|
|
2370
|
+
sections: { main: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2371
|
+
className: "flex flex-col gap-y-4",
|
|
2372
|
+
children: [
|
|
2373
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2374
|
+
id: "AnalyticsFunnelSection",
|
|
2375
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AnalyticsFunnelSection, { analytics: studio.analytics })
|
|
2376
|
+
}),
|
|
2377
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2378
|
+
id: "AnalyticsRingBreakdownSection",
|
|
2379
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AnalyticsRingBreakdownSection, { analytics: studio.analytics })
|
|
2380
|
+
}),
|
|
2381
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2382
|
+
id: "AnalyticsTopSlidesSection",
|
|
2383
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AnalyticsTopSlidesSection, { analytics: studio.analytics })
|
|
2384
|
+
})
|
|
2385
|
+
]
|
|
2386
|
+
}) }
|
|
2387
|
+
})] });
|
|
2388
|
+
};
|
|
2389
|
+
var Breadcrumb$3 = () => {
|
|
2390
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
2391
|
+
return t("tabs.analytics");
|
|
2392
|
+
};
|
|
2393
|
+
var config$3 = (0, _medusajs_admin_sdk.defineRouteConfig)({
|
|
2394
|
+
label: "tabs.analytics",
|
|
2395
|
+
translationNs: "stories",
|
|
2396
|
+
icon: _medusajs_icons.CheckCircle
|
|
2397
|
+
});
|
|
2398
|
+
var handle$3 = { breadcrumb: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Breadcrumb$3, {}) };
|
|
2399
|
+
var GuardedStoriesAnalyticsPage = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RbacGuard, {
|
|
2400
|
+
permission: "stories.read",
|
|
2401
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StoriesAnalyticsPage, {})
|
|
2402
|
+
});
|
|
2403
|
+
// src/admin/routes/stories/canvas/page.tsx
|
|
2404
|
+
var StoriesCanvasPage = () => {
|
|
2405
|
+
const studio = useStoriesStudio();
|
|
2406
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Toaster, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer, {
|
|
2407
|
+
widgetsZonePrefix: "stories.canvas",
|
|
2408
|
+
preferredLayoutId: _medusajs_admin_shared.CORE_LAYOUT_IDS.TWO_COLUMN,
|
|
2409
|
+
data: studio.selectedSlide,
|
|
2410
|
+
sections: {
|
|
2411
|
+
main: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
2412
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2413
|
+
id: "CanvasSlideBuilderSection",
|
|
2414
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CanvasSlideBuilderSection, {
|
|
2415
|
+
groups: studio.groups,
|
|
2416
|
+
slideForm: studio.slideForm,
|
|
2417
|
+
onSlideFormChange: studio.setSlideForm,
|
|
2418
|
+
isSavingSlide: studio.isSavingSlide,
|
|
2419
|
+
onCreateSlide: () => void studio.handleCreateSlide()
|
|
2420
|
+
})
|
|
2421
|
+
}),
|
|
2422
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2423
|
+
id: "CanvasHotspotPinnerSection",
|
|
2424
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CanvasHotspotPinnerSection, {
|
|
2425
|
+
selectedSlide: studio.selectedSlide,
|
|
2426
|
+
hotspotForm: studio.hotspotForm,
|
|
2427
|
+
onHotspotFormChange: studio.setHotspotForm,
|
|
2428
|
+
isSavingHotspot: studio.isSavingHotspot,
|
|
2429
|
+
onAddHotspot: () => void studio.handleAddHotspot(),
|
|
2430
|
+
onRemoveHotspot: (hotspotId) => void studio.handleRemoveHotspot(hotspotId)
|
|
2431
|
+
})
|
|
2432
|
+
}),
|
|
2433
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2434
|
+
id: "CanvasTimelineSection",
|
|
2435
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CanvasTimelineSection, {
|
|
2436
|
+
slides: studio.slides,
|
|
2437
|
+
selectedSlide: studio.selectedSlide,
|
|
2438
|
+
onSelectSlide: studio.setSelectedSlideId,
|
|
2439
|
+
onToggleSlideActive: (id, isActive) => void studio.handleToggleSlideActive(id, isActive),
|
|
2440
|
+
onDeleteSlide: (id) => void studio.handleDeleteSlide(id)
|
|
2441
|
+
})
|
|
2442
|
+
})
|
|
2443
|
+
] }),
|
|
2444
|
+
side: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2445
|
+
id: "CanvasPreviewSection",
|
|
2446
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CanvasPreviewSection, {
|
|
2447
|
+
selectedSlide: studio.selectedSlide,
|
|
2448
|
+
slideForm: studio.slideForm,
|
|
2449
|
+
hotspotForm: studio.hotspotForm,
|
|
2450
|
+
onCanvasCoordinateClick: studio.handleCanvasCoordinateClick
|
|
2451
|
+
})
|
|
2452
|
+
})
|
|
2453
|
+
}
|
|
2454
|
+
})] });
|
|
2455
|
+
};
|
|
2456
|
+
var Breadcrumb$2 = () => {
|
|
2457
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
2458
|
+
return t("canvasTab.canvasTitle");
|
|
2459
|
+
};
|
|
2460
|
+
var config$2 = (0, _medusajs_admin_sdk.defineRouteConfig)({
|
|
2461
|
+
label: "canvasTab.canvasTitle",
|
|
2462
|
+
translationNs: "stories",
|
|
2463
|
+
icon: _medusajs_icons.DocumentText
|
|
2464
|
+
});
|
|
2465
|
+
var handle$2 = { breadcrumb: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Breadcrumb$2, {}) };
|
|
2466
|
+
var GuardedStoriesCanvasPage = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RbacGuard, {
|
|
2467
|
+
permission: "stories.read",
|
|
2468
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StoriesCanvasPage, {})
|
|
2469
|
+
});
|
|
2470
|
+
// src/admin/routes/stories/rings/page.tsx
|
|
2471
|
+
var StoriesRingsPage = () => {
|
|
2472
|
+
const navigate = (0, react_router_dom.useNavigate)();
|
|
2473
|
+
const studio = useStoriesStudio();
|
|
2474
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Toaster, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer, {
|
|
2475
|
+
widgetsZonePrefix: "stories.rings",
|
|
2476
|
+
preferredLayoutId: _medusajs_admin_shared.CORE_LAYOUT_IDS.TWO_COLUMN,
|
|
2477
|
+
sections: {
|
|
2478
|
+
main: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2479
|
+
id: "StoryRingsPreviewSection",
|
|
2480
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StoryRingsPreviewSection, {
|
|
2481
|
+
groups: studio.groups,
|
|
2482
|
+
selectedGroupId: studio.selectedGroupId,
|
|
2483
|
+
onSelectGroup: studio.setSelectedGroupId,
|
|
2484
|
+
onOpenCreateDrawer: () => navigate("create")
|
|
2485
|
+
})
|
|
2486
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2487
|
+
id: "StoryRingsTableSection",
|
|
2488
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StoryRingsTableSection, {
|
|
2489
|
+
groups: studio.groups,
|
|
2490
|
+
selectedGroupId: studio.selectedGroupId,
|
|
2491
|
+
onSelectGroup: studio.setSelectedGroupId,
|
|
2492
|
+
onToggleGroupActive: (id, isActive) => void studio.handleToggleGroupActive(id, isActive),
|
|
2493
|
+
onDeleteGroup: (id) => void studio.handleDeleteGroup(id)
|
|
2494
|
+
})
|
|
2495
|
+
})] }),
|
|
2496
|
+
side: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2497
|
+
id: "StoryRingsInlineCreateSection",
|
|
2498
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StoryRingsInlineCreateSection, {
|
|
2499
|
+
form: studio.groupForm,
|
|
2500
|
+
onFormChange: studio.setGroupForm,
|
|
2501
|
+
isSaving: studio.isSavingGroup,
|
|
2502
|
+
onCreateGroup: () => void studio.handleCreateGroup()
|
|
2503
|
+
})
|
|
2504
|
+
})
|
|
2505
|
+
}
|
|
2506
|
+
})] });
|
|
2507
|
+
};
|
|
2508
|
+
var Breadcrumb$1 = () => {
|
|
2509
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
2510
|
+
return t("ringsTab.previewTitle");
|
|
2511
|
+
};
|
|
2512
|
+
var config$1 = (0, _medusajs_admin_sdk.defineRouteConfig)({
|
|
2513
|
+
label: "ringsTab.previewTitle",
|
|
2514
|
+
translationNs: "stories",
|
|
2515
|
+
icon: _medusajs_icons.BuildingStorefront
|
|
2516
|
+
});
|
|
2517
|
+
var handle$1 = { breadcrumb: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Breadcrumb$1, {}) };
|
|
2518
|
+
var GuardedStoriesRingsPage = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RbacGuard, {
|
|
2519
|
+
permission: "stories.read",
|
|
2520
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StoriesRingsPage, {})
|
|
2521
|
+
});
|
|
2522
|
+
// src/admin/routes/stories/rings/@create/page.tsx
|
|
2523
|
+
var CreateRingContent = () => {
|
|
2524
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
2525
|
+
const { handleSuccess } = (0, _medusajs_dashboard_components.useRouteModal)();
|
|
2526
|
+
const { mutateAsync: createGroup, isPending } = useCreateStoryGroup();
|
|
2527
|
+
const handleSubmit = async (values) => {
|
|
2528
|
+
try {
|
|
2529
|
+
const res = await createGroup({
|
|
2530
|
+
title: values.title,
|
|
2531
|
+
subtitle: values.subtitle || null,
|
|
2532
|
+
avatar_url: values.avatar_url || null,
|
|
2533
|
+
ring_theme: values.ring_theme,
|
|
2534
|
+
custom_ring_color: values.ring_theme === "custom" ? values.custom_ring_color || "#6366f1" : null,
|
|
2535
|
+
placement: values.placement,
|
|
2536
|
+
is_pinned: values.is_pinned,
|
|
2537
|
+
is_ephemeral: values.is_ephemeral
|
|
2538
|
+
});
|
|
2539
|
+
_medusajs_ui.toast.success(t("messages.groupCreated", { title: res.group.title }));
|
|
2540
|
+
handleSuccess();
|
|
2541
|
+
} catch (err) {
|
|
2542
|
+
_medusajs_ui.toast.error(err?.message ?? t("messages.groupCreateError"));
|
|
2543
|
+
}
|
|
2544
|
+
};
|
|
2545
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StoryRingCreateForm, {
|
|
2546
|
+
onSubmit: handleSubmit,
|
|
2547
|
+
loading: isPending
|
|
2548
|
+
});
|
|
2549
|
+
};
|
|
2550
|
+
var StoryRingCreateDrawer = () => {
|
|
2551
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
2552
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_medusajs_dashboard_components.RouteDrawer, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.RouteDrawer.Header, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Heading, { children: t("ringsTab.createTitle") }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CreateRingContent, {})] });
|
|
2553
|
+
};
|
|
2554
|
+
var GuardedStoryRingCreateDrawer = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RbacGuard, {
|
|
2555
|
+
permission: "stories.write",
|
|
2556
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StoryRingCreateDrawer, {})
|
|
2557
|
+
});
|
|
2558
|
+
// src/admin/routes/stories/stickers/page.tsx
|
|
2559
|
+
var StoriesStickersPage = () => {
|
|
2560
|
+
const studio = useStoriesStudio();
|
|
2561
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_ui.Toaster, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer, {
|
|
2562
|
+
widgetsZonePrefix: "stories.stickers",
|
|
2563
|
+
preferredLayoutId: _medusajs_admin_shared.CORE_LAYOUT_IDS.TWO_COLUMN,
|
|
2564
|
+
data: studio.selectedSlide,
|
|
2565
|
+
sections: {
|
|
2566
|
+
main: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2567
|
+
id: "StickerBuilderSection",
|
|
2568
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StickerBuilderSection, {
|
|
2569
|
+
selectedSlide: studio.selectedSlide,
|
|
2570
|
+
stickerForm: studio.stickerForm,
|
|
2571
|
+
onStickerFormChange: studio.setStickerForm,
|
|
2572
|
+
isSaving: studio.isSavingSticker,
|
|
2573
|
+
onAddSticker: () => void studio.handleAddSticker()
|
|
2574
|
+
})
|
|
2575
|
+
}),
|
|
2576
|
+
side: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_medusajs_dashboard_components.LayoutComposer.Entry, {
|
|
2577
|
+
id: "StickerActiveListSection",
|
|
2578
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StickerActiveListSection, {
|
|
2579
|
+
selectedSlide: studio.selectedSlide,
|
|
2580
|
+
onRemoveSticker: (stickerId) => void studio.handleRemoveSticker(stickerId)
|
|
2581
|
+
})
|
|
2582
|
+
})
|
|
2583
|
+
}
|
|
2584
|
+
})] });
|
|
2585
|
+
};
|
|
2586
|
+
var Breadcrumb = () => {
|
|
2587
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
2588
|
+
return t("tabs.stickers");
|
|
2589
|
+
};
|
|
2590
|
+
var config = (0, _medusajs_admin_sdk.defineRouteConfig)({
|
|
2591
|
+
label: "tabs.stickers",
|
|
2592
|
+
translationNs: "stories",
|
|
2593
|
+
icon: _medusajs_icons.Tag
|
|
2594
|
+
});
|
|
2595
|
+
var handle = { breadcrumb: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Breadcrumb, {}) };
|
|
2596
|
+
var GuardedStoriesStickersPage = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RbacGuard, {
|
|
2597
|
+
permission: "stories.read",
|
|
2598
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StoriesStickersPage, {})
|
|
2599
|
+
});
|
|
2600
|
+
var ar_default = {
|
|
2601
|
+
nav: { "label": "استوديو القصص" },
|
|
2602
|
+
header: {
|
|
2603
|
+
"title": "استوديو القصص القابلة للتسوق",
|
|
2604
|
+
"subtitle": "حلقات قصص تفاعلية بنسبة 9:16، نقاط منتجات X/Y، ملصقات استطلاعات وكوبونات، وقمع التحويل",
|
|
2605
|
+
"ringsBadge": "{{count}} حلقات مميزة",
|
|
2606
|
+
"slidesBadge": "{{count}} شرائح 9:16",
|
|
2607
|
+
"conversionBadge": "{{rate}}% تحويل السلة",
|
|
2608
|
+
"languageLabel": "اللغة",
|
|
2609
|
+
"refresh": "تحديث الاستوديو",
|
|
2610
|
+
"dismiss": "إغلاق"
|
|
2611
|
+
},
|
|
2612
|
+
tabs: {
|
|
2613
|
+
"canvas": "لوحة 9:16 ونقاط المنتجات ({{count}})",
|
|
2614
|
+
"rings": "الحلقات المميزة ({{count}})",
|
|
2615
|
+
"stickers": "الملصقات التفاعلية",
|
|
2616
|
+
"analytics": "قمع التحويل"
|
|
2617
|
+
},
|
|
2618
|
+
ringsTab: {
|
|
2619
|
+
"previewTitle": "معاينة الحلقات المميزة في المتجر",
|
|
2620
|
+
"emptyState": "لا توجد حلقات مميزة بعد. أنشئ أول حلقة قصة من القائمة الجانبية.",
|
|
2621
|
+
"activeBadge": "نشط",
|
|
2622
|
+
"pausedBadge": "متوقف مؤقتاً",
|
|
2623
|
+
"zoneBadge": "المنطقة: {{placement}}",
|
|
2624
|
+
"slidesCountBadge": "{{count}} شرائح",
|
|
2625
|
+
"handleLabel": "المعرف: /{{handle}}",
|
|
2626
|
+
"deleteButton": "حذف",
|
|
2627
|
+
"createTitle": "إنشاء حلقة مميزة",
|
|
2628
|
+
"titleField": "عنوان الحلقة",
|
|
2629
|
+
"titlePlaceholder": "إطلالات صيف '26",
|
|
2630
|
+
"subtitleField": "العنوان الفرعي (اختياري)",
|
|
2631
|
+
"subtitlePlaceholder": "اضغط لتسوق التشكيلة",
|
|
2632
|
+
"avatarField": "رابط صورة غلاف الحلقة",
|
|
2633
|
+
"avatarPlaceholder": "https://images.unsplash.com/...",
|
|
2634
|
+
"themeField": "سمة تدرج الحلقة",
|
|
2635
|
+
"customColorField": "لون Hex مخصص للحلقة",
|
|
2636
|
+
"customColorPlaceholder": "#6366f1",
|
|
2637
|
+
"placementField": "منطقة العرض في المتجر",
|
|
2638
|
+
"pinnedSwitch": "تثبيت في مقدمة شريط القصص",
|
|
2639
|
+
"createButton": "إنشاء حلقة مميزة",
|
|
2640
|
+
"themes": {
|
|
2641
|
+
"instagram": "كلاسيكي إنستغرام",
|
|
2642
|
+
"tiktok": "نبض تيك توك",
|
|
2643
|
+
"sunset": "مرجاني الغروب",
|
|
2644
|
+
"emerald": "نعناع زمردي",
|
|
2645
|
+
"violet": "بنفسجي كهربائي",
|
|
2646
|
+
"cyber": "نيون سايبر",
|
|
2647
|
+
"neon": "ليموني نيون",
|
|
2648
|
+
"gold": "ذهبي فاخر",
|
|
2649
|
+
"minimal": "أحادي اللون بسيط",
|
|
2650
|
+
"custom": "Hex مخصص"
|
|
2651
|
+
},
|
|
2652
|
+
"zones": {
|
|
2653
|
+
"home": "home",
|
|
2654
|
+
"collection": "collection",
|
|
2655
|
+
"category": "category",
|
|
2656
|
+
"product": "product",
|
|
2657
|
+
"floating_bubble": "floating_bubble",
|
|
2658
|
+
"global": "global"
|
|
2659
|
+
}
|
|
2660
|
+
},
|
|
2661
|
+
canvasTab: {
|
|
2662
|
+
"canvasTitle": "لوحة نقاط المنتجات التفاعلية 9:16",
|
|
2663
|
+
"clickHintBadge": "انقر على اللوحة لتحديد X/Y ({{x}}%، {{y}}%)",
|
|
2664
|
+
"canvasAriaLabel": "لوحة قصة تفاعلية 9:16 — انقر لوضع نقطة منتج",
|
|
2665
|
+
"previewSlideFallback": "معاينة الشريحة",
|
|
2666
|
+
"slidePreviewAlt": "معاينة الشريحة",
|
|
2667
|
+
"emptyCanvasPrompt": "انقر في أي مكان على شاشة 9:16 لتحديد موقع دبوس المنتج",
|
|
2668
|
+
"pinCrosshair": "+ دبوس ({{x}}%، {{y}}%)",
|
|
2669
|
+
"shopNowFallback": "تسوق الآن",
|
|
2670
|
+
"publishSlideTitle": "1. نشر شريحة قصة 9:16",
|
|
2671
|
+
"slideTitleField": "عنوان الشريحة",
|
|
2672
|
+
"slideTitlePlaceholder": "إطلاق هودي جديد",
|
|
2673
|
+
"mediaUrlField": "رابط صورة أو فيديو 9:16 (https://)",
|
|
2674
|
+
"mediaUrlPlaceholder": "https://cdn.example.com/story-9x16.jpg",
|
|
2675
|
+
"captionField": "النص التوضيحي",
|
|
2676
|
+
"captionPlaceholder": "إصدار محدود من القطن الثقيل",
|
|
2677
|
+
"ctaField": "رابط ونص زر السحب للأعلى",
|
|
2678
|
+
"ctaUrlPlaceholder": "/collections/summer",
|
|
2679
|
+
"ctaTextPlaceholder": "تسوق الآن",
|
|
2680
|
+
"imageButton": "صورة",
|
|
2681
|
+
"videoButton": "فيديو",
|
|
2682
|
+
"ringButton": "حلقة: {{title}}",
|
|
2683
|
+
"autoExpireLabel": "انتهاء تلقائي خلال 24 ساعة",
|
|
2684
|
+
"publishButton": "نشر الشريحة",
|
|
2685
|
+
"pinHotspotTitle": "2. تثبيت نقطة منتج قابلة للتسوق على {{slide}}",
|
|
2686
|
+
"selectedSlideFallback": "الشريحة المحددة",
|
|
2687
|
+
"productIdField": "معرف منتج Medusa",
|
|
2688
|
+
"productIdPlaceholder": "prod_01H...",
|
|
2689
|
+
"productTitleField": "عنوان المنتج",
|
|
2690
|
+
"productTitlePlaceholder": "ساعة كرونوغراف كلاسيكية",
|
|
2691
|
+
"priceBadgeField": "شارة السعر",
|
|
2692
|
+
"priceBadgePlaceholder": "$129.00",
|
|
2693
|
+
"coordinatesHelp": "الإحداثيات: X={{x}}%، Y={{y}}% (انقر على لوحة الهاتف لإعادة التموضع)",
|
|
2694
|
+
"pinButton": "تثبيت نقطة المنتج",
|
|
2695
|
+
"removeHotspotButton": "إزالة",
|
|
2696
|
+
"timelineTitle": "3. الجدول الزمني لشرائح القصص ({{count}})",
|
|
2697
|
+
"activeBadge": "نشط",
|
|
2698
|
+
"pausedBadge": "متوقف مؤقتاً",
|
|
2699
|
+
"hotspotsCountBadge": "{{count}} نقاط",
|
|
2700
|
+
"stickersCountBadge": "{{count}} ملصقات",
|
|
2701
|
+
"slideMetrics": "المشاهدات: {{views}} • النقرات: {{clicks}} • السلات: {{carts}}",
|
|
2702
|
+
"deleteButton": "حذف"
|
|
2703
|
+
},
|
|
2704
|
+
stickersTab: {
|
|
2705
|
+
"addTitle": "إضافة ملصق تفاعلي إلى {{slide}}",
|
|
2706
|
+
"selectedSlideFallback": "الشريحة المحددة",
|
|
2707
|
+
"types": {
|
|
2708
|
+
"poll": "استطلاع تفاعلي",
|
|
2709
|
+
"coupon": "كود خصم سريع",
|
|
2710
|
+
"countdown": "عد تنازلي للإطلاق",
|
|
2711
|
+
"question_badge": "سؤال وجواب"
|
|
2712
|
+
},
|
|
2713
|
+
"promptField": "عنوان / سؤال الملصق",
|
|
2714
|
+
"promptPlaceholder": "أي لون يجب أن نعيد توفيره قريباً؟",
|
|
2715
|
+
"option1Field": "الخيار 1",
|
|
2716
|
+
"option2Field": "الخيار 2",
|
|
2717
|
+
"couponField": "كود الخصم",
|
|
2718
|
+
"couponPlaceholder": "STORY15",
|
|
2719
|
+
"countdownField": "تاريخ/وقت انتهاء العد التنازلي",
|
|
2720
|
+
"countdownPlaceholder": "2026-12-31T23:59:00Z",
|
|
2721
|
+
"posXField": "الموضع X (%)",
|
|
2722
|
+
"posYField": "الموضع Y (%)",
|
|
2723
|
+
"addButton": "إضافة الملصق إلى الشريحة",
|
|
2724
|
+
"activeTitle": "ملصقات الشريحة النشطة والتصويت المباشر",
|
|
2725
|
+
"interactionsBadge": "{{type}} • {{count}} تفاعلات",
|
|
2726
|
+
"removeButton": "إزالة",
|
|
2727
|
+
"optionVotesBadge": "{{label}}: {{votes}} أصوات",
|
|
2728
|
+
"couponCodeLabel": "كود الكوبون: {{code}}",
|
|
2729
|
+
"endsLabel": "ينتهي: {{date}}",
|
|
2730
|
+
"emptyState": "لا توجد ملصقات تفاعلية على هذه الشريحة بعد."
|
|
2731
|
+
},
|
|
2732
|
+
analyticsTab: {
|
|
2733
|
+
"funnelTitle": "قمع تحويل القصص القابلة للتسوق",
|
|
2734
|
+
"funnelSubtitle": "مسار التفاعل الكامل عبر جميع شرائح القصص النشطة والمؤرشفة بنسبة 9:16.",
|
|
2735
|
+
"stepImpressions": "1. مرات ظهور القصص",
|
|
2736
|
+
"stepCompletions": "2. إكمال مشاهدة الشرائح",
|
|
2737
|
+
"stepHotspotClicks": "3. نقرات نقاط المنتجات",
|
|
2738
|
+
"stepAddToCarts": "4. الإضافات إلى السلة من القصص",
|
|
2739
|
+
"percentOfImpressions": "{{percent}}% من مرات الظهور",
|
|
2740
|
+
"ringBreakdownTitle": "تحليل أداء الحلقات المميزة",
|
|
2741
|
+
"colHighlightRing": "الحلقة المميزة",
|
|
2742
|
+
"colSlides": "الشرائح",
|
|
2743
|
+
"colImpressions": "مرات الظهور",
|
|
2744
|
+
"colCompletionRate": "معدل الإكمال",
|
|
2745
|
+
"colHotspotClicks": "نقرات النقاط",
|
|
2746
|
+
"colAddToCartRate": "معدل الإضافة للسلة",
|
|
2747
|
+
"colStickerVotes": "أصوات الملصقات",
|
|
2748
|
+
"topSlidesTitle": "أفضل شرائح القصص أداءً 9:16",
|
|
2749
|
+
"colSlideTitle": "عنوان الشريحة",
|
|
2750
|
+
"colCompletions": "مرات الإكمال",
|
|
2751
|
+
"colAddToCarts": "الإضافات للسلة",
|
|
2752
|
+
"unassigned": "غير معين"
|
|
2753
|
+
},
|
|
2754
|
+
widget: {
|
|
2755
|
+
"title": "قصص قابلة للتسوق 9:16",
|
|
2756
|
+
"subtitle": "قصص وحلقات مميزة تعرض {{product}} مع دبابيس منتجات تفاعلية",
|
|
2757
|
+
"thisProductFallback": "هذا المنتج",
|
|
2758
|
+
"createButton": "+ إنشاء قصة من المنتج",
|
|
2759
|
+
"emptyState": "لا توجد شرائح قصص تشير إلى هذا المنتج حالياً. انقر على \"+ إنشاء قصة من المنتج\" لإنشاء شريحة 9:16 قابلة للتسوق مع نقطة منتج مثبتة مسبقاً.",
|
|
2760
|
+
"slideMetrics": "{{views}} مشاهدات • {{clicks}} نقرات دبوس • {{carts}} إضافات للسلة",
|
|
2761
|
+
"activeBadge": "نشط",
|
|
2762
|
+
"pausedBadge": "متوقف مؤقتاً",
|
|
2763
|
+
"featuredCaption": "مميز: {{title}}",
|
|
2764
|
+
"shopProductLink": "تسوق المنتج"
|
|
2765
|
+
},
|
|
2766
|
+
messages: {
|
|
2767
|
+
"groupCreated": "تم إنشاء الحلقة المميزة \"{{title}}\".",
|
|
2768
|
+
"groupCreateError": "فشل في إنشاء مجموعة القصص",
|
|
2769
|
+
"groupActivated": "تم تفعيل الحلقة المميزة.",
|
|
2770
|
+
"groupPaused": "تم إيقاف الحلقة المميزة مؤقتاً.",
|
|
2771
|
+
"groupUpdateError": "فشل في تحديث مجموعة القصص",
|
|
2772
|
+
"groupDeleted": "تم حذف الحلقة المميزة.",
|
|
2773
|
+
"groupDeleteError": "فشل في حذف مجموعة القصص",
|
|
2774
|
+
"slideCreated": "تم نشر شريحة 9:16 \"{{title}}\".",
|
|
2775
|
+
"slideCreateError": "فشل في إنشاء شريحة القصة",
|
|
2776
|
+
"slideActivated": "تم تفعيل شريحة القصة.",
|
|
2777
|
+
"slidePaused": "تم إيقاف شريحة القصة مؤقتاً.",
|
|
2778
|
+
"slideUpdateError": "فشل في تحديث شريحة القصة",
|
|
2779
|
+
"slideDeleted": "تم حذف شريحة القصة.",
|
|
2780
|
+
"slideDeleteError": "فشل في حذف شريحة القصة",
|
|
2781
|
+
"selectSlideForHotspot": "يرجى اختيار شريحة قصة أولاً قبل تثبيت نقطة منتج.",
|
|
2782
|
+
"hotspotPinned": "تم تثبيت نقطة المنتج عند ({{x}}%، {{y}}%).",
|
|
2783
|
+
"hotspotPinError": "فشل في تثبيت نقطة المنتج",
|
|
2784
|
+
"hotspotRemoved": "تمت إزالة نقطة المنتج.",
|
|
2785
|
+
"hotspotRemoveError": "فشل في إزالة نقطة المنتج",
|
|
2786
|
+
"selectSlideForSticker": "يرجى اختيار شريحة قصة أولاً قبل إضافة ملصق.",
|
|
2787
|
+
"stickerAdded": "تمت إضافة الملصق التفاعلي إلى الشريحة.",
|
|
2788
|
+
"stickerAddError": "فشل في إضافة الملصق",
|
|
2789
|
+
"stickerRemoved": "تمت إزالة الملصق التفاعلي.",
|
|
2790
|
+
"stickerRemoveError": "فشل في إزالة الملصق",
|
|
2791
|
+
"productStoryCreated": "تم إنشاء شريحة قصة قابلة للتسوق \"{{title}}\"."
|
|
2792
|
+
}
|
|
2793
|
+
};
|
|
2794
|
+
var de_default = {
|
|
2795
|
+
nav: { "label": "Stories-Studio" },
|
|
2796
|
+
header: {
|
|
2797
|
+
"title": "Shoppable Stories Studio",
|
|
2798
|
+
"subtitle": "Interaktive 9:16-Story-Ringe, X/Y-Produkt-Hotspots, Umfrage- & Gutschein-Sticker sowie Conversion-Funnel",
|
|
2799
|
+
"ringsBadge": "{{count}} Highlight-Ringe",
|
|
2800
|
+
"slidesBadge": "{{count}} 9:16-Slides",
|
|
2801
|
+
"conversionBadge": "{{rate}}% Warenkorb-Konv.",
|
|
2802
|
+
"languageLabel": "Sprache",
|
|
2803
|
+
"refresh": "Studio aktualisieren",
|
|
2804
|
+
"dismiss": "Schließen"
|
|
2805
|
+
},
|
|
2806
|
+
tabs: {
|
|
2807
|
+
"canvas": "9:16-Canvas & Hotspot-Tagger ({{count}})",
|
|
2808
|
+
"rings": "Highlight-Ringe ({{count}})",
|
|
2809
|
+
"stickers": "Interaktive Sticker",
|
|
2810
|
+
"analytics": "Conversion-Funnel"
|
|
2811
|
+
},
|
|
2812
|
+
ringsTab: {
|
|
2813
|
+
"previewTitle": "Storefront-Vorschau der Highlight-Ringe",
|
|
2814
|
+
"emptyState": "Noch keine Highlight-Ringe vorhanden. Erstellen Sie rechts Ihren ersten Story-Ring.",
|
|
2815
|
+
"activeBadge": "Aktiv",
|
|
2816
|
+
"pausedBadge": "Pausiert",
|
|
2817
|
+
"zoneBadge": "Zone: {{placement}}",
|
|
2818
|
+
"slidesCountBadge": "{{count}} Slides",
|
|
2819
|
+
"handleLabel": "Handle: /{{handle}}",
|
|
2820
|
+
"deleteButton": "Löschen",
|
|
2821
|
+
"createTitle": "Highlight-Ring erstellen",
|
|
2822
|
+
"titleField": "Ring-Titel",
|
|
2823
|
+
"titlePlaceholder": "Sommer-Lookbook '26",
|
|
2824
|
+
"subtitleField": "Untertitel (Optional)",
|
|
2825
|
+
"subtitlePlaceholder": "Tippen, um die Kollektion zu kaufen",
|
|
2826
|
+
"avatarField": "Ring-Cover-Avatar-URL",
|
|
2827
|
+
"avatarPlaceholder": "https://images.unsplash.com/...",
|
|
2828
|
+
"themeField": "Ring-Farbverlauf-Thema",
|
|
2829
|
+
"customColorField": "Benutzerdefinierte Hex-Farbe",
|
|
2830
|
+
"customColorPlaceholder": "#6366f1",
|
|
2831
|
+
"placementField": "Storefront-Platzierungszone",
|
|
2832
|
+
"pinnedSwitch": "An den Anfang der Story-Leiste anheften",
|
|
2833
|
+
"createButton": "Highlight-Ring erstellen",
|
|
2834
|
+
"themes": {
|
|
2835
|
+
"instagram": "Instagram Klassisch",
|
|
2836
|
+
"tiktok": "TikTok Puls",
|
|
2837
|
+
"sunset": "Sonnenuntergang Koralle",
|
|
2838
|
+
"emerald": "Smaragd Minze",
|
|
2839
|
+
"violet": "Elektrisches Violett",
|
|
2840
|
+
"cyber": "Cyber Neon",
|
|
2841
|
+
"neon": "Neon Limette",
|
|
2842
|
+
"gold": "Luxus Gold",
|
|
2843
|
+
"minimal": "Minimal Monochrom",
|
|
2844
|
+
"custom": "Eigenes Hex"
|
|
2845
|
+
},
|
|
2846
|
+
"zones": {
|
|
2847
|
+
"home": "home",
|
|
2848
|
+
"collection": "collection",
|
|
2849
|
+
"category": "category",
|
|
2850
|
+
"product": "product",
|
|
2851
|
+
"floating_bubble": "floating_bubble",
|
|
2852
|
+
"global": "global"
|
|
2853
|
+
}
|
|
2854
|
+
},
|
|
2855
|
+
canvasTab: {
|
|
2856
|
+
"canvasTitle": "Interaktives 9:16-Hotspot-Canvas",
|
|
2857
|
+
"clickHintBadge": "Auf Canvas klicken, um X/Y zu setzen ({{x}}%, {{y}}%)",
|
|
2858
|
+
"canvasAriaLabel": "Interaktives 9:16-Story-Canvas — klicken, um Produkt-Hotspot zu platzieren",
|
|
2859
|
+
"previewSlideFallback": "Vorschau-Slide",
|
|
2860
|
+
"slidePreviewAlt": "Slide-Vorschau",
|
|
2861
|
+
"emptyCanvasPrompt": "Klicken Sie auf eine beliebige Stelle dieses 9:16-Bildschirms, um Ihren Produkt-Hotspot-Pin zu positionieren",
|
|
2862
|
+
"pinCrosshair": "+ Pin ({{x}}%, {{y}}%)",
|
|
2863
|
+
"shopNowFallback": "Jetzt shoppen",
|
|
2864
|
+
"publishSlideTitle": "1. 9:16-Story-Slide veröffentlichen",
|
|
2865
|
+
"slideTitleField": "Slide-Titel",
|
|
2866
|
+
"slideTitlePlaceholder": "Neuer Hoodie-Drop",
|
|
2867
|
+
"mediaUrlField": "9:16 Bild- oder Video-URL (https://)",
|
|
2868
|
+
"mediaUrlPlaceholder": "https://cdn.example.com/story-9x16.jpg",
|
|
2869
|
+
"captionField": "Bildunterschrift-Overlay",
|
|
2870
|
+
"captionPlaceholder": "Limitierte Auflage aus schwerem Fleece",
|
|
2871
|
+
"ctaField": "Swipe-Up CTA-Link & Label",
|
|
2872
|
+
"ctaUrlPlaceholder": "/collections/summer",
|
|
2873
|
+
"ctaTextPlaceholder": "Jetzt shoppen",
|
|
2874
|
+
"imageButton": "Bild",
|
|
2875
|
+
"videoButton": "Video",
|
|
2876
|
+
"ringButton": "Ring: {{title}}",
|
|
2877
|
+
"autoExpireLabel": "Nach 24h automatisch ablaufen",
|
|
2878
|
+
"publishButton": "Slide veröffentlichen",
|
|
2879
|
+
"pinHotspotTitle": "2. Shoppable Produkt-Hotspot anheften an {{slide}}",
|
|
2880
|
+
"selectedSlideFallback": "Ausgewähltes Slide",
|
|
2881
|
+
"productIdField": "Medusa Produkt-ID",
|
|
2882
|
+
"productIdPlaceholder": "prod_01H...",
|
|
2883
|
+
"productTitleField": "Produkttitel",
|
|
2884
|
+
"productTitlePlaceholder": "Minimalistischer Chronograph",
|
|
2885
|
+
"priceBadgeField": "Preis-Badge",
|
|
2886
|
+
"priceBadgePlaceholder": "$129.00",
|
|
2887
|
+
"coordinatesHelp": "Koordinaten: X={{x}}%, Y={{y}}% (links auf das Telefon-Canvas klicken, um neu zu positionieren)",
|
|
2888
|
+
"pinButton": "Produkt-Hotspot anheften",
|
|
2889
|
+
"removeHotspotButton": "Entfernen",
|
|
2890
|
+
"timelineTitle": "3. Story-Slides-Zeitachse ({{count}})",
|
|
2891
|
+
"activeBadge": "Aktiv",
|
|
2892
|
+
"pausedBadge": "Pausiert",
|
|
2893
|
+
"hotspotsCountBadge": "{{count}} Hotspots",
|
|
2894
|
+
"stickersCountBadge": "{{count}} Sticker",
|
|
2895
|
+
"slideMetrics": "Aufrufe: {{views}} • Klicks: {{clicks}} • Warenkörbe: {{carts}}",
|
|
2896
|
+
"deleteButton": "Löschen"
|
|
2897
|
+
},
|
|
2898
|
+
stickersTab: {
|
|
2899
|
+
"addTitle": "Interaktiven Sticker hinzufügen zu {{slide}}",
|
|
2900
|
+
"selectedSlideFallback": "Ausgewähltes Slide",
|
|
2901
|
+
"types": {
|
|
2902
|
+
"poll": "Interaktive Umfrage",
|
|
2903
|
+
"coupon": "Flash-Gutscheincode",
|
|
2904
|
+
"countdown": "Drop-Countdown",
|
|
2905
|
+
"question_badge": "F&A-Frage"
|
|
2906
|
+
},
|
|
2907
|
+
"promptField": "Sticker-Überschrift / Frage",
|
|
2908
|
+
"promptPlaceholder": "Welche Farbe sollen wir als Nächstes nachbestellen?",
|
|
2909
|
+
"option1Field": "Option 1",
|
|
2910
|
+
"option2Field": "Option 2",
|
|
2911
|
+
"couponField": "Rabattcode",
|
|
2912
|
+
"couponPlaceholder": "STORY15",
|
|
2913
|
+
"countdownField": "Countdown-Zieldatum/-uhrzeit",
|
|
2914
|
+
"countdownPlaceholder": "2026-12-31T23:59:00Z",
|
|
2915
|
+
"posXField": "Position X (%)",
|
|
2916
|
+
"posYField": "Position Y (%)",
|
|
2917
|
+
"addButton": "Sticker zum Slide hinzufügen",
|
|
2918
|
+
"activeTitle": "Aktive Slide-Sticker & Live-Stimmen",
|
|
2919
|
+
"interactionsBadge": "{{type}} • {{count}} Interaktionen",
|
|
2920
|
+
"removeButton": "Entfernen",
|
|
2921
|
+
"optionVotesBadge": "{{label}}: {{votes}} Stimmen",
|
|
2922
|
+
"couponCodeLabel": "Gutscheincode: {{code}}",
|
|
2923
|
+
"endsLabel": "Endet: {{date}}",
|
|
2924
|
+
"emptyState": "Noch keine interaktiven Sticker auf diesem Slide."
|
|
2925
|
+
},
|
|
2926
|
+
analyticsTab: {
|
|
2927
|
+
"funnelTitle": "Shoppable Story Conversion-Funnel",
|
|
2928
|
+
"funnelSubtitle": "End-to-End-Engagement-Pipeline über alle aktiven und archivierten 9:16-Story-Slides.",
|
|
2929
|
+
"stepImpressions": "1. Story-Impressionen",
|
|
2930
|
+
"stepCompletions": "2. Vollständige Slide-Ansichten",
|
|
2931
|
+
"stepHotspotClicks": "3. Produkt-Hotspot-Klicks",
|
|
2932
|
+
"stepAddToCarts": "4. Story-Warenkorb-Käufe",
|
|
2933
|
+
"percentOfImpressions": "{{percent}}% der Impressionen",
|
|
2934
|
+
"ringBreakdownTitle": "Leistungsübersicht nach Highlight-Ring",
|
|
2935
|
+
"colHighlightRing": "Highlight-Ring",
|
|
2936
|
+
"colSlides": "Slides",
|
|
2937
|
+
"colImpressions": "Impressionen",
|
|
2938
|
+
"colCompletionRate": "Abschlussrate",
|
|
2939
|
+
"colHotspotClicks": "Hotspot-Klicks",
|
|
2940
|
+
"colAddToCartRate": "Warenkorb-Rate",
|
|
2941
|
+
"colStickerVotes": "Sticker-Stimmen",
|
|
2942
|
+
"topSlidesTitle": "Erfolgreichste 9:16-Story-Slides",
|
|
2943
|
+
"colSlideTitle": "Slide-Titel",
|
|
2944
|
+
"colCompletions": "Abschlüsse",
|
|
2945
|
+
"colAddToCarts": "Warenkörbe",
|
|
2946
|
+
"unassigned": "Nicht zugewiesen"
|
|
2947
|
+
},
|
|
2948
|
+
widget: {
|
|
2949
|
+
"title": "Shoppable 9:16-Stories",
|
|
2950
|
+
"subtitle": "Stories & Highlight-Ringe mit {{product}} und interaktiven Hotspot-Pins",
|
|
2951
|
+
"thisProductFallback": "diesem Produkt",
|
|
2952
|
+
"createButton": "+ Story aus Produkt erstellen",
|
|
2953
|
+
"emptyState": "Derzeit markieren keine Story-Slides dieses Produkt. Klicken Sie auf „+ Story aus Produkt erstellen“, um ein 9:16-Shoppable-Slide mit vorab angeheftetem Produkt-Hotspot zu generieren.",
|
|
2954
|
+
"slideMetrics": "{{views}} Aufrufe • {{clicks}} Hotspot-Tipps • {{carts}} Warenkörbe",
|
|
2955
|
+
"activeBadge": "Aktiv",
|
|
2956
|
+
"pausedBadge": "Pausiert",
|
|
2957
|
+
"featuredCaption": "Vorgestellt: {{title}}",
|
|
2958
|
+
"shopProductLink": "Produkt ansehen"
|
|
2959
|
+
},
|
|
2960
|
+
messages: {
|
|
2961
|
+
"groupCreated": "Story-Highlight-Ring „{{title}}“ erstellt.",
|
|
2962
|
+
"groupCreateError": "Story-Gruppe konnte nicht erstellt werden",
|
|
2963
|
+
"groupActivated": "Story-Highlight-Ring aktiviert.",
|
|
2964
|
+
"groupPaused": "Story-Highlight-Ring pausiert.",
|
|
2965
|
+
"groupUpdateError": "Story-Gruppe konnte nicht aktualisiert werden",
|
|
2966
|
+
"groupDeleted": "Story-Highlight-Ring gelöscht.",
|
|
2967
|
+
"groupDeleteError": "Story-Gruppe konnte nicht gelöscht werden",
|
|
2968
|
+
"slideCreated": "9:16-Slide „{{title}}“ veröffentlicht.",
|
|
2969
|
+
"slideCreateError": "Story-Slide konnte nicht erstellt werden",
|
|
2970
|
+
"slideActivated": "Story-Slide aktiviert.",
|
|
2971
|
+
"slidePaused": "Story-Slide pausiert.",
|
|
2972
|
+
"slideUpdateError": "Story-Slide konnte nicht aktualisiert werden",
|
|
2973
|
+
"slideDeleted": "Story-Slide gelöscht.",
|
|
2974
|
+
"slideDeleteError": "Story-Slide konnte nicht gelöscht werden",
|
|
2975
|
+
"selectSlideForHotspot": "Wählen Sie zuerst ein Story-Slide aus, bevor Sie einen Hotspot anheften.",
|
|
2976
|
+
"hotspotPinned": "Produkt-Hotspot bei ({{x}}%, {{y}}%) angeheftet.",
|
|
2977
|
+
"hotspotPinError": "Produkt-Hotspot konnte nicht angeheftet werden",
|
|
2978
|
+
"hotspotRemoved": "Produkt-Hotspot entfernt.",
|
|
2979
|
+
"hotspotRemoveError": "Hotspot konnte nicht entfernt werden",
|
|
2980
|
+
"selectSlideForSticker": "Wählen Sie zuerst ein Story-Slide aus, bevor Sie einen Sticker hinzufügen.",
|
|
2981
|
+
"stickerAdded": "Interaktiver Sticker zum Slide hinzugefügt.",
|
|
2982
|
+
"stickerAddError": "Sticker konnte nicht hinzugefügt werden",
|
|
2983
|
+
"stickerRemoved": "Interaktiver Sticker entfernt.",
|
|
2984
|
+
"stickerRemoveError": "Sticker konnte nicht entfernt werden",
|
|
2985
|
+
"productStoryCreated": "Shoppable Story-Slide „{{title}}“ erstellt."
|
|
2986
|
+
}
|
|
2987
|
+
};
|
|
2988
|
+
var en_default = {
|
|
2989
|
+
nav: { "label": "Stories Studio" },
|
|
2990
|
+
header: {
|
|
2991
|
+
"title": "Shoppable Stories Studio",
|
|
2992
|
+
"subtitle": "Interactive 9:16 Story Rings, X/Y Product Hotspots, Poll & Coupon Stickers, and Storefront Conversion Funnel",
|
|
2993
|
+
"ringsBadge": "{{count}} Highlight Rings",
|
|
2994
|
+
"slidesBadge": "{{count}} 9:16 Slides",
|
|
2995
|
+
"conversionBadge": "{{rate}}% Cart Conv.",
|
|
2996
|
+
"languageLabel": "Language",
|
|
2997
|
+
"refresh": "Refresh Studio",
|
|
2998
|
+
"dismiss": "Dismiss"
|
|
2999
|
+
},
|
|
3000
|
+
tabs: {
|
|
3001
|
+
"canvas": "9:16 Canvas & Hotspot Tagger ({{count}})",
|
|
3002
|
+
"rings": "Highlight Rings ({{count}})",
|
|
3003
|
+
"stickers": "Interactive Stickers",
|
|
3004
|
+
"analytics": "Conversion Funnel"
|
|
3005
|
+
},
|
|
3006
|
+
ringsTab: {
|
|
3007
|
+
"previewTitle": "Storefront Highlight Rings Preview",
|
|
3008
|
+
"emptyState": "No highlight rings yet. Create your first Story Ring on the right.",
|
|
3009
|
+
"activeBadge": "Active",
|
|
3010
|
+
"pausedBadge": "Paused",
|
|
3011
|
+
"zoneBadge": "Zone: {{placement}}",
|
|
3012
|
+
"slidesCountBadge": "{{count}} slides",
|
|
3013
|
+
"handleLabel": "Handle: /{{handle}}",
|
|
3014
|
+
"deleteButton": "Delete",
|
|
3015
|
+
"createTitle": "Create Highlight Ring",
|
|
3016
|
+
"titleField": "Ring Title",
|
|
3017
|
+
"titlePlaceholder": "Summer Lookbook '26",
|
|
3018
|
+
"subtitleField": "Subtitle (Optional)",
|
|
3019
|
+
"subtitlePlaceholder": "Tap to shop the drop",
|
|
3020
|
+
"avatarField": "Ring Cover Avatar URL",
|
|
3021
|
+
"avatarPlaceholder": "https://images.unsplash.com/...",
|
|
3022
|
+
"themeField": "Ring Gradient Theme",
|
|
3023
|
+
"customColorField": "Custom Ring Hex Color",
|
|
3024
|
+
"customColorPlaceholder": "#6366f1",
|
|
3025
|
+
"placementField": "Storefront Placement Zone",
|
|
3026
|
+
"pinnedSwitch": "Pin to Front of Story Bar",
|
|
3027
|
+
"createButton": "Create Highlight Ring",
|
|
3028
|
+
"themes": {
|
|
3029
|
+
"instagram": "Instagram Classic",
|
|
3030
|
+
"tiktok": "TikTok Pulse",
|
|
3031
|
+
"sunset": "Sunset Coral",
|
|
3032
|
+
"emerald": "Emerald Mint",
|
|
3033
|
+
"violet": "Electric Violet",
|
|
3034
|
+
"cyber": "Cyber Neon",
|
|
3035
|
+
"neon": "Neon Lime",
|
|
3036
|
+
"gold": "Luxury Gold",
|
|
3037
|
+
"minimal": "Minimal Monochrome",
|
|
3038
|
+
"custom": "Custom Hex"
|
|
3039
|
+
},
|
|
3040
|
+
"zones": {
|
|
3041
|
+
"home": "home",
|
|
3042
|
+
"collection": "collection",
|
|
3043
|
+
"category": "category",
|
|
3044
|
+
"product": "product",
|
|
3045
|
+
"floating_bubble": "floating_bubble",
|
|
3046
|
+
"global": "global"
|
|
3047
|
+
}
|
|
3048
|
+
},
|
|
3049
|
+
canvasTab: {
|
|
3050
|
+
"canvasTitle": "9:16 Interactive Hotspot Canvas",
|
|
3051
|
+
"clickHintBadge": "Click canvas to set X/Y ({{x}}%, {{y}}%)",
|
|
3052
|
+
"canvasAriaLabel": "Interactive 9:16 Story Canvas — click to place product hotspot",
|
|
3053
|
+
"previewSlideFallback": "Preview Slide",
|
|
3054
|
+
"slidePreviewAlt": "Slide preview",
|
|
3055
|
+
"emptyCanvasPrompt": "Click anywhere on this 9:16 screen to position your Product Hotspot pin",
|
|
3056
|
+
"pinCrosshair": "+ Pin ({{x}}%, {{y}}%)",
|
|
3057
|
+
"shopNowFallback": "Shop Now",
|
|
3058
|
+
"publishSlideTitle": "1. Publish 9:16 Story Slide",
|
|
3059
|
+
"slideTitleField": "Slide Title",
|
|
3060
|
+
"slideTitlePlaceholder": "New Hoodie Drop",
|
|
3061
|
+
"mediaUrlField": "9:16 Image or Video URL (https://)",
|
|
3062
|
+
"mediaUrlPlaceholder": "https://cdn.example.com/story-9x16.jpg",
|
|
3063
|
+
"captionField": "Caption Overlay",
|
|
3064
|
+
"captionPlaceholder": "Limited edition heavyweight fleece",
|
|
3065
|
+
"ctaField": "Swipe-Up CTA Link & Label",
|
|
3066
|
+
"ctaUrlPlaceholder": "/collections/summer",
|
|
3067
|
+
"ctaTextPlaceholder": "Shop Now",
|
|
3068
|
+
"imageButton": "Image",
|
|
3069
|
+
"videoButton": "Video",
|
|
3070
|
+
"ringButton": "Ring: {{title}}",
|
|
3071
|
+
"autoExpireLabel": "Auto-Expire in 24h",
|
|
3072
|
+
"publishButton": "Publish Slide",
|
|
3073
|
+
"pinHotspotTitle": "2. Pin Shoppable Product Hotspot to {{slide}}",
|
|
3074
|
+
"selectedSlideFallback": "Selected Slide",
|
|
3075
|
+
"productIdField": "Medusa Product ID",
|
|
3076
|
+
"productIdPlaceholder": "prod_01H...",
|
|
3077
|
+
"productTitleField": "Product Title",
|
|
3078
|
+
"productTitlePlaceholder": "Minimalist Chronograph",
|
|
3079
|
+
"priceBadgeField": "Price Badge",
|
|
3080
|
+
"priceBadgePlaceholder": "$129.00",
|
|
3081
|
+
"coordinatesHelp": "Coordinates: X={{x}}%, Y={{y}}% (click phone canvas on the left to reposition)",
|
|
3082
|
+
"pinButton": "Pin Product Hotspot",
|
|
3083
|
+
"removeHotspotButton": "Remove",
|
|
3084
|
+
"timelineTitle": "3. Story Slides Timeline ({{count}})",
|
|
3085
|
+
"activeBadge": "Active",
|
|
3086
|
+
"pausedBadge": "Paused",
|
|
3087
|
+
"hotspotsCountBadge": "{{count}} hotspots",
|
|
3088
|
+
"stickersCountBadge": "{{count}} stickers",
|
|
3089
|
+
"slideMetrics": "Views: {{views}} • Clicks: {{clicks}} • Carts: {{carts}}",
|
|
3090
|
+
"deleteButton": "Delete"
|
|
3091
|
+
},
|
|
3092
|
+
stickersTab: {
|
|
3093
|
+
"addTitle": "Add Interactive Sticker to {{slide}}",
|
|
3094
|
+
"selectedSlideFallback": "Selected Slide",
|
|
3095
|
+
"types": {
|
|
3096
|
+
"poll": "Interactive Poll",
|
|
3097
|
+
"coupon": "Flash Coupon Code",
|
|
3098
|
+
"countdown": "Drop Countdown",
|
|
3099
|
+
"question_badge": "Q&A Prompt"
|
|
3100
|
+
},
|
|
3101
|
+
"promptField": "Sticker Headline / Question",
|
|
3102
|
+
"promptPlaceholder": "Which colorway should we restock next?",
|
|
3103
|
+
"option1Field": "Option 1",
|
|
3104
|
+
"option2Field": "Option 2",
|
|
3105
|
+
"couponField": "Discount Code",
|
|
3106
|
+
"couponPlaceholder": "STORY15",
|
|
3107
|
+
"countdownField": "Countdown Target Date/Time",
|
|
3108
|
+
"countdownPlaceholder": "2026-12-31T23:59:00Z",
|
|
3109
|
+
"posXField": "Position X (%)",
|
|
3110
|
+
"posYField": "Position Y (%)",
|
|
3111
|
+
"addButton": "Add Sticker to Slide",
|
|
3112
|
+
"activeTitle": "Active Slide Stickers & Live Votes",
|
|
3113
|
+
"interactionsBadge": "{{type}} • {{count}} interactions",
|
|
3114
|
+
"removeButton": "Remove",
|
|
3115
|
+
"optionVotesBadge": "{{label}}: {{votes}} votes",
|
|
3116
|
+
"couponCodeLabel": "Coupon Code: {{code}}",
|
|
3117
|
+
"endsLabel": "Ends: {{date}}",
|
|
3118
|
+
"emptyState": "No interactive stickers on this slide yet."
|
|
3119
|
+
},
|
|
3120
|
+
analyticsTab: {
|
|
3121
|
+
"funnelTitle": "Shoppable Story Conversion Funnel",
|
|
3122
|
+
"funnelSubtitle": "End-to-end engagement pipeline across all active and archived 9:16 story slides.",
|
|
3123
|
+
"stepImpressions": "1. Story Impressions",
|
|
3124
|
+
"stepCompletions": "2. Full Slide Completions",
|
|
3125
|
+
"stepHotspotClicks": "3. Product Hotspot Clicks",
|
|
3126
|
+
"stepAddToCarts": "4. Story Add-to-Carts",
|
|
3127
|
+
"percentOfImpressions": "{{percent}}% of impressions",
|
|
3128
|
+
"ringBreakdownTitle": "Highlight Ring Performance Breakdown",
|
|
3129
|
+
"colHighlightRing": "Highlight Ring",
|
|
3130
|
+
"colSlides": "Slides",
|
|
3131
|
+
"colImpressions": "Impressions",
|
|
3132
|
+
"colCompletionRate": "Completion Rate",
|
|
3133
|
+
"colHotspotClicks": "Hotspot Clicks",
|
|
3134
|
+
"colAddToCartRate": "Add-to-Cart Rate",
|
|
3135
|
+
"colStickerVotes": "Sticker Votes",
|
|
3136
|
+
"topSlidesTitle": "Top Performing 9:16 Story Slides",
|
|
3137
|
+
"colSlideTitle": "Slide Title",
|
|
3138
|
+
"colCompletions": "Completions",
|
|
3139
|
+
"colAddToCarts": "Add-to-Carts",
|
|
3140
|
+
"unassigned": "Unassigned"
|
|
3141
|
+
},
|
|
3142
|
+
widget: {
|
|
3143
|
+
"title": "Shoppable 9:16 Stories",
|
|
3144
|
+
"subtitle": "Stories & Highlight Rings featuring {{product}} with interactive hotspot pins",
|
|
3145
|
+
"thisProductFallback": "this product",
|
|
3146
|
+
"createButton": "+ Create Story From Product",
|
|
3147
|
+
"emptyState": "No story slides currently tag this product. Click \"+ Create Story From Product\" to generate a 9:16 shoppable slide with a pre-pinned product hotspot.",
|
|
3148
|
+
"slideMetrics": "{{views}} views • {{clicks}} hotspot taps • {{carts}} add-to-carts",
|
|
3149
|
+
"activeBadge": "Active",
|
|
3150
|
+
"pausedBadge": "Paused",
|
|
3151
|
+
"featuredCaption": "Featured: {{title}}",
|
|
3152
|
+
"shopProductLink": "Shop Product"
|
|
3153
|
+
},
|
|
3154
|
+
messages: {
|
|
3155
|
+
"groupCreated": "Created Story Highlight Ring \"{{title}}\".",
|
|
3156
|
+
"groupCreateError": "Failed to create story group",
|
|
3157
|
+
"groupActivated": "Story Highlight Ring activated.",
|
|
3158
|
+
"groupPaused": "Story Highlight Ring paused.",
|
|
3159
|
+
"groupUpdateError": "Failed to update story group",
|
|
3160
|
+
"groupDeleted": "Deleted Story Highlight Ring.",
|
|
3161
|
+
"groupDeleteError": "Failed to delete story group",
|
|
3162
|
+
"slideCreated": "Published 9:16 slide \"{{title}}\".",
|
|
3163
|
+
"slideCreateError": "Failed to create story slide",
|
|
3164
|
+
"slideActivated": "Story slide activated.",
|
|
3165
|
+
"slidePaused": "Story slide paused.",
|
|
3166
|
+
"slideUpdateError": "Failed to update story slide",
|
|
3167
|
+
"slideDeleted": "Deleted story slide.",
|
|
3168
|
+
"slideDeleteError": "Failed to delete story slide",
|
|
3169
|
+
"selectSlideForHotspot": "Select a story slide first before pinning a hotspot.",
|
|
3170
|
+
"hotspotPinned": "Pinned product hotspot at ({{x}}%, {{y}}%).",
|
|
3171
|
+
"hotspotPinError": "Failed to pin product hotspot",
|
|
3172
|
+
"hotspotRemoved": "Removed product hotspot.",
|
|
3173
|
+
"hotspotRemoveError": "Failed to remove hotspot",
|
|
3174
|
+
"selectSlideForSticker": "Select a story slide first before adding a sticker.",
|
|
3175
|
+
"stickerAdded": "Added interactive sticker to slide.",
|
|
3176
|
+
"stickerAddError": "Failed to add sticker",
|
|
3177
|
+
"stickerRemoved": "Removed interactive sticker.",
|
|
3178
|
+
"stickerRemoveError": "Failed to remove sticker",
|
|
3179
|
+
"productStoryCreated": "Created shoppable story slide \"{{title}}\"."
|
|
3180
|
+
}
|
|
3181
|
+
};
|
|
3182
|
+
var es_default = {
|
|
3183
|
+
nav: { "label": "Estudio de Stories" },
|
|
3184
|
+
header: {
|
|
3185
|
+
"title": "Estudio de Stories Comprables",
|
|
3186
|
+
"subtitle": "Anillos de Stories 9:16 interactivos, puntos de producto X/Y, stickers de encuestas y cupones, y embudo de conversión",
|
|
3187
|
+
"ringsBadge": "{{count}} Anillos Destacados",
|
|
3188
|
+
"slidesBadge": "{{count}} Diapositivas 9:16",
|
|
3189
|
+
"conversionBadge": "{{rate}}% Conv. Carrito",
|
|
3190
|
+
"languageLabel": "Idioma",
|
|
3191
|
+
"refresh": "Actualizar Estudio",
|
|
3192
|
+
"dismiss": "Descartar"
|
|
3193
|
+
},
|
|
3194
|
+
tabs: {
|
|
3195
|
+
"canvas": "Lienzo 9:16 y Etiquetador ({{count}})",
|
|
3196
|
+
"rings": "Anillos Destacados ({{count}})",
|
|
3197
|
+
"stickers": "Stickers Interactivos",
|
|
3198
|
+
"analytics": "Embudo de Conversión"
|
|
3199
|
+
},
|
|
3200
|
+
ringsTab: {
|
|
3201
|
+
"previewTitle": "Vista Previa de Anillos Destacados en Tienda",
|
|
3202
|
+
"emptyState": "Aún no hay anillos destacados. Crea tu primer Anillo de Story a la derecha.",
|
|
3203
|
+
"activeBadge": "Activo",
|
|
3204
|
+
"pausedBadge": "Pausado",
|
|
3205
|
+
"zoneBadge": "Zona: {{placement}}",
|
|
3206
|
+
"slidesCountBadge": "{{count}} diapositivas",
|
|
3207
|
+
"handleLabel": "Handle: /{{handle}}",
|
|
3208
|
+
"deleteButton": "Eliminar",
|
|
3209
|
+
"createTitle": "Crear Anillo Destacado",
|
|
3210
|
+
"titleField": "Título del Anillo",
|
|
3211
|
+
"titlePlaceholder": "Lookbook de Verano '26",
|
|
3212
|
+
"subtitleField": "Subtítulo (Opcional)",
|
|
3213
|
+
"subtitlePlaceholder": "Toca para comprar la colección",
|
|
3214
|
+
"avatarField": "URL de Avatar de Portada",
|
|
3215
|
+
"avatarPlaceholder": "https://images.unsplash.com/...",
|
|
3216
|
+
"themeField": "Tema de Degradado del Anillo",
|
|
3217
|
+
"customColorField": "Color Hex Personalizado del Anillo",
|
|
3218
|
+
"customColorPlaceholder": "#6366f1",
|
|
3219
|
+
"placementField": "Zona de Ubicación en Tienda",
|
|
3220
|
+
"pinnedSwitch": "Fijar al Inicio de la Barra de Stories",
|
|
3221
|
+
"createButton": "Crear Anillo Destacado",
|
|
3222
|
+
"themes": {
|
|
3223
|
+
"instagram": "Clásico de Instagram",
|
|
3224
|
+
"tiktok": "Pulso TikTok",
|
|
3225
|
+
"sunset": "Coral Atardecer",
|
|
3226
|
+
"emerald": "Menta Esmeralda",
|
|
3227
|
+
"violet": "Violeta Eléctrico",
|
|
3228
|
+
"cyber": "Neón Cyber",
|
|
3229
|
+
"neon": "Lima Neón",
|
|
3230
|
+
"gold": "Oro de Lujo",
|
|
3231
|
+
"minimal": "Monocromo Minimalista",
|
|
3232
|
+
"custom": "Hex Personalizado"
|
|
3233
|
+
},
|
|
3234
|
+
"zones": {
|
|
3235
|
+
"home": "home",
|
|
3236
|
+
"collection": "collection",
|
|
3237
|
+
"category": "category",
|
|
3238
|
+
"product": "product",
|
|
3239
|
+
"floating_bubble": "floating_bubble",
|
|
3240
|
+
"global": "global"
|
|
3241
|
+
}
|
|
3242
|
+
},
|
|
3243
|
+
canvasTab: {
|
|
3244
|
+
"canvasTitle": "Lienzo Interactivo de Puntos 9:16",
|
|
3245
|
+
"clickHintBadge": "Haz clic en el lienzo para fijar X/Y ({{x}}%, {{y}}%)",
|
|
3246
|
+
"canvasAriaLabel": "Lienzo interactivo de Story 9:16 — haz clic para colocar un punto de producto",
|
|
3247
|
+
"previewSlideFallback": "Vista Previa",
|
|
3248
|
+
"slidePreviewAlt": "Vista previa de diapositiva",
|
|
3249
|
+
"emptyCanvasPrompt": "Haz clic en cualquier lugar de esta pantalla 9:16 para posicionar tu pin de Producto",
|
|
3250
|
+
"pinCrosshair": "+ Pin ({{x}}%, {{y}}%)",
|
|
3251
|
+
"shopNowFallback": "Comprar Ahora",
|
|
3252
|
+
"publishSlideTitle": "1. Publicar Diapositiva de Story 9:16",
|
|
3253
|
+
"slideTitleField": "Título de la Diapositiva",
|
|
3254
|
+
"slideTitlePlaceholder": "Nuevo Lanzamiento de Sudadera",
|
|
3255
|
+
"mediaUrlField": "URL de Imagen o Video 9:16 (https://)",
|
|
3256
|
+
"mediaUrlPlaceholder": "https://cdn.example.com/story-9x16.jpg",
|
|
3257
|
+
"captionField": "Superposición de Subtítulo",
|
|
3258
|
+
"captionPlaceholder": "Edición limitada en felpa pesada",
|
|
3259
|
+
"ctaField": "Enlace y Etiqueta CTA Deslizar Arriba",
|
|
3260
|
+
"ctaUrlPlaceholder": "/collections/summer",
|
|
3261
|
+
"ctaTextPlaceholder": "Comprar Ahora",
|
|
3262
|
+
"imageButton": "Imagen",
|
|
3263
|
+
"videoButton": "Video",
|
|
3264
|
+
"ringButton": "Anillo: {{title}}",
|
|
3265
|
+
"autoExpireLabel": "Expirar en 24h",
|
|
3266
|
+
"publishButton": "Publicar Diapositiva",
|
|
3267
|
+
"pinHotspotTitle": "2. Fijar Punto de Producto Comprable en {{slide}}",
|
|
3268
|
+
"selectedSlideFallback": "Diapositiva Seleccionada",
|
|
3269
|
+
"productIdField": "ID de Producto Medusa",
|
|
3270
|
+
"productIdPlaceholder": "prod_01H...",
|
|
3271
|
+
"productTitleField": "Título del Producto",
|
|
3272
|
+
"productTitlePlaceholder": "Cronógrafo Minimalista",
|
|
3273
|
+
"priceBadgeField": "Insignia de Precio",
|
|
3274
|
+
"priceBadgePlaceholder": "$129.00",
|
|
3275
|
+
"coordinatesHelp": "Coordenadas: X={{x}}%, Y={{y}}% (haz clic en el lienzo izquierdo para reposicionar)",
|
|
3276
|
+
"pinButton": "Fijar Punto de Producto",
|
|
3277
|
+
"removeHotspotButton": "Quitar",
|
|
3278
|
+
"timelineTitle": "3. Línea de Tiempo de Diapositivas ({{count}})",
|
|
3279
|
+
"activeBadge": "Activo",
|
|
3280
|
+
"pausedBadge": "Pausado",
|
|
3281
|
+
"hotspotsCountBadge": "{{count}} puntos",
|
|
3282
|
+
"stickersCountBadge": "{{count}} stickers",
|
|
3283
|
+
"slideMetrics": "Vistas: {{views}} • Clics: {{clicks}} • Carritos: {{carts}}",
|
|
3284
|
+
"deleteButton": "Eliminar"
|
|
3285
|
+
},
|
|
3286
|
+
stickersTab: {
|
|
3287
|
+
"addTitle": "Añadir Sticker Interactivo a {{slide}}",
|
|
3288
|
+
"selectedSlideFallback": "Diapositiva Seleccionada",
|
|
3289
|
+
"types": {
|
|
3290
|
+
"poll": "Encuesta Interactiva",
|
|
3291
|
+
"coupon": "Código de Cupón Flash",
|
|
3292
|
+
"countdown": "Cuenta Regresiva",
|
|
3293
|
+
"question_badge": "Pregunta Q&A"
|
|
3294
|
+
},
|
|
3295
|
+
"promptField": "Titular / Pregunta del Sticker",
|
|
3296
|
+
"promptPlaceholder": "¿Qué color deberíamos reponer primero?",
|
|
3297
|
+
"option1Field": "Opción 1",
|
|
3298
|
+
"option2Field": "Opción 2",
|
|
3299
|
+
"couponField": "Código de Descuento",
|
|
3300
|
+
"couponPlaceholder": "STORY15",
|
|
3301
|
+
"countdownField": "Fecha/Hora Objetivo de Cuenta Regresiva",
|
|
3302
|
+
"countdownPlaceholder": "2026-12-31T23:59:00Z",
|
|
3303
|
+
"posXField": "Posición X (%)",
|
|
3304
|
+
"posYField": "Posición Y (%)",
|
|
3305
|
+
"addButton": "Añadir Sticker a la Diapositiva",
|
|
3306
|
+
"activeTitle": "Stickers Activos y Votos en Vivo",
|
|
3307
|
+
"interactionsBadge": "{{type}} • {{count}} interacciones",
|
|
3308
|
+
"removeButton": "Quitar",
|
|
3309
|
+
"optionVotesBadge": "{{label}}: {{votes}} votos",
|
|
3310
|
+
"couponCodeLabel": "Código de Cupón: {{code}}",
|
|
3311
|
+
"endsLabel": "Termina: {{date}}",
|
|
3312
|
+
"emptyState": "Aún no hay stickers interactivos en esta diapositiva."
|
|
3313
|
+
},
|
|
3314
|
+
analyticsTab: {
|
|
3315
|
+
"funnelTitle": "Embudo de Conversión de Stories Comprables",
|
|
3316
|
+
"funnelSubtitle": "Flujo completo de interacción en todas las diapositivas de stories 9:16 activas y archivadas.",
|
|
3317
|
+
"stepImpressions": "1. Impresiones de Stories",
|
|
3318
|
+
"stepCompletions": "2. Diapositivas Completadas",
|
|
3319
|
+
"stepHotspotClicks": "3. Clics en Puntos de Producto",
|
|
3320
|
+
"stepAddToCarts": "4. Añadidos al Carrito desde Stories",
|
|
3321
|
+
"percentOfImpressions": "{{percent}}% de impresiones",
|
|
3322
|
+
"ringBreakdownTitle": "Desglose de Rendimiento por Anillo Destacado",
|
|
3323
|
+
"colHighlightRing": "Anillo Destacado",
|
|
3324
|
+
"colSlides": "Diapositivas",
|
|
3325
|
+
"colImpressions": "Impresiones",
|
|
3326
|
+
"colCompletionRate": "Tasa de Finalización",
|
|
3327
|
+
"colHotspotClicks": "Clics en Puntos",
|
|
3328
|
+
"colAddToCartRate": "Tasa de Carrito",
|
|
3329
|
+
"colStickerVotes": "Votos en Stickers",
|
|
3330
|
+
"topSlidesTitle": "Diapositivas 9:16 con Mejor Rendimiento",
|
|
3331
|
+
"colSlideTitle": "Título de Diapositiva",
|
|
3332
|
+
"colCompletions": "Finalizaciones",
|
|
3333
|
+
"colAddToCarts": "Carritos",
|
|
3334
|
+
"unassigned": "Sin asignar"
|
|
3335
|
+
},
|
|
3336
|
+
widget: {
|
|
3337
|
+
"title": "Stories Comprables 9:16",
|
|
3338
|
+
"subtitle": "Stories y Anillos Destacados que presentan {{product}} con pines de producto interactivos",
|
|
3339
|
+
"thisProductFallback": "este producto",
|
|
3340
|
+
"createButton": "+ Crear Story desde Producto",
|
|
3341
|
+
"emptyState": "Ninguna diapositiva etiqueta este producto actualmente. Haz clic en \"+ Crear Story desde Producto\" para generar una diapositiva comprable 9:16 con un punto preasignado.",
|
|
3342
|
+
"slideMetrics": "{{views}} vistas • {{clicks}} toques en pin • {{carts}} al carrito",
|
|
3343
|
+
"activeBadge": "Activo",
|
|
3344
|
+
"pausedBadge": "Pausado",
|
|
3345
|
+
"featuredCaption": "Destacado: {{title}}",
|
|
3346
|
+
"shopProductLink": "Ver Producto"
|
|
3347
|
+
},
|
|
3348
|
+
messages: {
|
|
3349
|
+
"groupCreated": "Se creó el Anillo Destacado \"{{title}}\".",
|
|
3350
|
+
"groupCreateError": "Error al crear el grupo de stories",
|
|
3351
|
+
"groupActivated": "Anillo Destacado activado.",
|
|
3352
|
+
"groupPaused": "Anillo Destacado pausado.",
|
|
3353
|
+
"groupUpdateError": "Error al actualizar el grupo de stories",
|
|
3354
|
+
"groupDeleted": "Anillo Destacado eliminado.",
|
|
3355
|
+
"groupDeleteError": "Error al eliminar el grupo de stories",
|
|
3356
|
+
"slideCreated": "Se publicó la diapositiva 9:16 \"{{title}}\".",
|
|
3357
|
+
"slideCreateError": "Error al crear la diapositiva de story",
|
|
3358
|
+
"slideActivated": "Diapositiva de story activada.",
|
|
3359
|
+
"slidePaused": "Diapositiva de story pausada.",
|
|
3360
|
+
"slideUpdateError": "Error al actualizar la diapositiva de story",
|
|
3361
|
+
"slideDeleted": "Diapositiva de story eliminada.",
|
|
3362
|
+
"slideDeleteError": "Error al eliminar la diapositiva de story",
|
|
3363
|
+
"selectSlideForHotspot": "Selecciona una diapositiva antes de fijar un punto de producto.",
|
|
3364
|
+
"hotspotPinned": "Punto de producto fijado en ({{x}}%, {{y}}%).",
|
|
3365
|
+
"hotspotPinError": "Error al fijar el punto de producto",
|
|
3366
|
+
"hotspotRemoved": "Punto de producto eliminado.",
|
|
3367
|
+
"hotspotRemoveError": "Error al eliminar el punto de producto",
|
|
3368
|
+
"selectSlideForSticker": "Selecciona una diapositiva antes de añadir un sticker.",
|
|
3369
|
+
"stickerAdded": "Sticker interactivo añadido a la diapositiva.",
|
|
3370
|
+
"stickerAddError": "Error al añadir el sticker",
|
|
3371
|
+
"stickerRemoved": "Sticker interactivo eliminado.",
|
|
3372
|
+
"stickerRemoveError": "Error al eliminar el sticker",
|
|
3373
|
+
"productStoryCreated": "Se creó la diapositiva de story comprable \"{{title}}\"."
|
|
3374
|
+
}
|
|
3375
|
+
};
|
|
3376
|
+
var fr_default = {
|
|
3377
|
+
nav: { "label": "Studio Stories" },
|
|
3378
|
+
header: {
|
|
3379
|
+
"title": "Studio de Stories Shoppable",
|
|
3380
|
+
"subtitle": "Anneaux de Stories 9:16 interactifs, points produits X/Y, stickers sondages et coupons, et entonnoir de conversion",
|
|
3381
|
+
"ringsBadge": "{{count}} Anneaux à la Une",
|
|
3382
|
+
"slidesBadge": "{{count}} Diapositives 9:16",
|
|
3383
|
+
"conversionBadge": "{{rate}}% Conv. Panier",
|
|
3384
|
+
"languageLabel": "Langue",
|
|
3385
|
+
"refresh": "Actualiser le Studio",
|
|
3386
|
+
"dismiss": "Fermer"
|
|
3387
|
+
},
|
|
3388
|
+
tabs: {
|
|
3389
|
+
"canvas": "Canevas 9:16 & Points Produits ({{count}})",
|
|
3390
|
+
"rings": "Anneaux à la Une ({{count}})",
|
|
3391
|
+
"stickers": "Stickers Interactifs",
|
|
3392
|
+
"analytics": "Entonnoir de Conversion"
|
|
3393
|
+
},
|
|
3394
|
+
ringsTab: {
|
|
3395
|
+
"previewTitle": "Aperçu des Anneaux à la Une en Boutique",
|
|
3396
|
+
"emptyState": "Aucun anneau à la une pour le moment. Créez votre premier anneau de Story à droite.",
|
|
3397
|
+
"activeBadge": "Actif",
|
|
3398
|
+
"pausedBadge": "En pause",
|
|
3399
|
+
"zoneBadge": "Zone : {{placement}}",
|
|
3400
|
+
"slidesCountBadge": "{{count}} diapositives",
|
|
3401
|
+
"handleLabel": "Handle : /{{handle}}",
|
|
3402
|
+
"deleteButton": "Supprimer",
|
|
3403
|
+
"createTitle": "Créer un Anneau à la Une",
|
|
3404
|
+
"titleField": "Titre de l'Anneau",
|
|
3405
|
+
"titlePlaceholder": "Lookbook Été '26",
|
|
3406
|
+
"subtitleField": "Sous-titre (Optionnel)",
|
|
3407
|
+
"subtitlePlaceholder": "Touchez pour découvrir la collection",
|
|
3408
|
+
"avatarField": "URL de l'Avatar de Couverture",
|
|
3409
|
+
"avatarPlaceholder": "https://images.unsplash.com/...",
|
|
3410
|
+
"themeField": "Thème de Dégradé de l'Anneau",
|
|
3411
|
+
"customColorField": "Couleur Hex Personnalisée",
|
|
3412
|
+
"customColorPlaceholder": "#6366f1",
|
|
3413
|
+
"placementField": "Zone d'Emplacement Boutique",
|
|
3414
|
+
"pinnedSwitch": "Épingler en Tête de la Barre de Stories",
|
|
3415
|
+
"createButton": "Créer l'Anneau à la Une",
|
|
3416
|
+
"themes": {
|
|
3417
|
+
"instagram": "Classique Instagram",
|
|
3418
|
+
"tiktok": "Pulse TikTok",
|
|
3419
|
+
"sunset": "Corail Crépuscule",
|
|
3420
|
+
"emerald": "Menthe Émeraude",
|
|
3421
|
+
"violet": "Violet Électrique",
|
|
3422
|
+
"cyber": "Cyber Néon",
|
|
3423
|
+
"neon": "Citron Néon",
|
|
3424
|
+
"gold": "Or Luxe",
|
|
3425
|
+
"minimal": "Monochrome Minimal",
|
|
3426
|
+
"custom": "Hex Personnalisé"
|
|
3427
|
+
},
|
|
3428
|
+
"zones": {
|
|
3429
|
+
"home": "home",
|
|
3430
|
+
"collection": "collection",
|
|
3431
|
+
"category": "category",
|
|
3432
|
+
"product": "product",
|
|
3433
|
+
"floating_bubble": "floating_bubble",
|
|
3434
|
+
"global": "global"
|
|
3435
|
+
}
|
|
3436
|
+
},
|
|
3437
|
+
canvasTab: {
|
|
3438
|
+
"canvasTitle": "Canevas Interactif de Points 9:16",
|
|
3439
|
+
"clickHintBadge": "Cliquez sur le canevas pour définir X/Y ({{x}}%, {{y}}%)",
|
|
3440
|
+
"canvasAriaLabel": "Canevas Story 9:16 interactif — cliquez pour placer un point produit",
|
|
3441
|
+
"previewSlideFallback": "Aperçu Diapositive",
|
|
3442
|
+
"slidePreviewAlt": "Aperçu de la diapositive",
|
|
3443
|
+
"emptyCanvasPrompt": "Cliquez n'importe où sur cet écran 9:16 pour positionner votre épingle produit",
|
|
3444
|
+
"pinCrosshair": "+ Épingle ({{x}}%, {{y}}%)",
|
|
3445
|
+
"shopNowFallback": "Acheter",
|
|
3446
|
+
"publishSlideTitle": "1. Publier une Diapositive Story 9:16",
|
|
3447
|
+
"slideTitleField": "Titre de la Diapositive",
|
|
3448
|
+
"slideTitlePlaceholder": "Nouveau Hoodie",
|
|
3449
|
+
"mediaUrlField": "URL Image ou Vidéo 9:16 (https://)",
|
|
3450
|
+
"mediaUrlPlaceholder": "https://cdn.example.com/story-9x16.jpg",
|
|
3451
|
+
"captionField": "Légende Superposée",
|
|
3452
|
+
"captionPlaceholder": "Molleton lourd en édition limitée",
|
|
3453
|
+
"ctaField": "Lien & Libellé CTA Swipe-Up",
|
|
3454
|
+
"ctaUrlPlaceholder": "/collections/summer",
|
|
3455
|
+
"ctaTextPlaceholder": "Acheter",
|
|
3456
|
+
"imageButton": "Image",
|
|
3457
|
+
"videoButton": "Vidéo",
|
|
3458
|
+
"ringButton": "Anneau : {{title}}",
|
|
3459
|
+
"autoExpireLabel": "Expiration auto 24h",
|
|
3460
|
+
"publishButton": "Publier la Diapositive",
|
|
3461
|
+
"pinHotspotTitle": "2. Épingler un Point Produit sur {{slide}}",
|
|
3462
|
+
"selectedSlideFallback": "la Diapositive Sélectionnée",
|
|
3463
|
+
"productIdField": "ID Produit Medusa",
|
|
3464
|
+
"productIdPlaceholder": "prod_01H...",
|
|
3465
|
+
"productTitleField": "Titre du Produit",
|
|
3466
|
+
"productTitlePlaceholder": "Chronographe Minimaliste",
|
|
3467
|
+
"priceBadgeField": "Badge de Prix",
|
|
3468
|
+
"priceBadgePlaceholder": "$129.00",
|
|
3469
|
+
"coordinatesHelp": "Coordonnées : X={{x}}%, Y={{y}}% (cliquez sur le canevas à gauche pour repositionner)",
|
|
3470
|
+
"pinButton": "Épingler le Point Produit",
|
|
3471
|
+
"removeHotspotButton": "Retirer",
|
|
3472
|
+
"timelineTitle": "3. Chronologie des Diapositives ({{count}})",
|
|
3473
|
+
"activeBadge": "Actif",
|
|
3474
|
+
"pausedBadge": "En pause",
|
|
3475
|
+
"hotspotsCountBadge": "{{count}} points",
|
|
3476
|
+
"stickersCountBadge": "{{count}} stickers",
|
|
3477
|
+
"slideMetrics": "Vues : {{views}} • Clics : {{clicks}} • Paniers : {{carts}}",
|
|
3478
|
+
"deleteButton": "Supprimer"
|
|
3479
|
+
},
|
|
3480
|
+
stickersTab: {
|
|
3481
|
+
"addTitle": "Ajouter un Sticker Interactif à {{slide}}",
|
|
3482
|
+
"selectedSlideFallback": "la Diapositive Sélectionnée",
|
|
3483
|
+
"types": {
|
|
3484
|
+
"poll": "Sondage Interactif",
|
|
3485
|
+
"coupon": "Code Promo Flash",
|
|
3486
|
+
"countdown": "Compte à Rebours",
|
|
3487
|
+
"question_badge": "Question Q&R"
|
|
3488
|
+
},
|
|
3489
|
+
"promptField": "Titre / Question du Sticker",
|
|
3490
|
+
"promptPlaceholder": "Quel coloris devons-nous réapprovisionner ?",
|
|
3491
|
+
"option1Field": "Option 1",
|
|
3492
|
+
"option2Field": "Option 2",
|
|
3493
|
+
"couponField": "Code de Réduction",
|
|
3494
|
+
"couponPlaceholder": "STORY15",
|
|
3495
|
+
"countdownField": "Date/Heure Cible du Compte à Rebours",
|
|
3496
|
+
"countdownPlaceholder": "2026-12-31T23:59:00Z",
|
|
3497
|
+
"posXField": "Position X (%)",
|
|
3498
|
+
"posYField": "Position Y (%)",
|
|
3499
|
+
"addButton": "Ajouter le Sticker à la Diapositive",
|
|
3500
|
+
"activeTitle": "Stickers Actifs & Votes en Direct",
|
|
3501
|
+
"interactionsBadge": "{{type}} • {{count}} interactions",
|
|
3502
|
+
"removeButton": "Retirer",
|
|
3503
|
+
"optionVotesBadge": "{{label}} : {{votes}} votes",
|
|
3504
|
+
"couponCodeLabel": "Code Promo : {{code}}",
|
|
3505
|
+
"endsLabel": "Fin : {{date}}",
|
|
3506
|
+
"emptyState": "Aucun sticker interactif sur cette diapositive."
|
|
3507
|
+
},
|
|
3508
|
+
analyticsTab: {
|
|
3509
|
+
"funnelTitle": "Entonnoir de Conversion des Stories Shoppable",
|
|
3510
|
+
"funnelSubtitle": "Pipeline d'engagement complet sur toutes les diapositives 9:16 actives et archivées.",
|
|
3511
|
+
"stepImpressions": "1. Impressions de Stories",
|
|
3512
|
+
"stepCompletions": "2. Lectures Complètes",
|
|
3513
|
+
"stepHotspotClicks": "3. Clics sur Points Produits",
|
|
3514
|
+
"stepAddToCarts": "4. Ajouts au Panier",
|
|
3515
|
+
"percentOfImpressions": "{{percent}}% des impressions",
|
|
3516
|
+
"ringBreakdownTitle": "Performance par Anneau à la Une",
|
|
3517
|
+
"colHighlightRing": "Anneau à la Une",
|
|
3518
|
+
"colSlides": "Diapositives",
|
|
3519
|
+
"colImpressions": "Impressions",
|
|
3520
|
+
"colCompletionRate": "Taux de Complétion",
|
|
3521
|
+
"colHotspotClicks": "Clics Points",
|
|
3522
|
+
"colAddToCartRate": "Taux d'Ajout au Panier",
|
|
3523
|
+
"colStickerVotes": "Votes Stickers",
|
|
3524
|
+
"topSlidesTitle": "Meilleures Diapositives Stories 9:16",
|
|
3525
|
+
"colSlideTitle": "Titre de la Diapositive",
|
|
3526
|
+
"colCompletions": "Complétions",
|
|
3527
|
+
"colAddToCarts": "Ajouts au Panier",
|
|
3528
|
+
"unassigned": "Non assigné"
|
|
3529
|
+
},
|
|
3530
|
+
widget: {
|
|
3531
|
+
"title": "Stories Shoppable 9:16",
|
|
3532
|
+
"subtitle": "Stories et Anneaux à la Une présentant {{product}} avec des épingles produits interactives",
|
|
3533
|
+
"thisProductFallback": "ce produit",
|
|
3534
|
+
"createButton": "+ Créer une Story depuis le Produit",
|
|
3535
|
+
"emptyState": "Aucune diapositive n'identifie actuellement ce produit. Cliquez sur « + Créer une Story depuis le Produit » pour générer une diapositive 9:16 avec un point produit pré-épinglé.",
|
|
3536
|
+
"slideMetrics": "{{views}} vues • {{clicks}} clics point • {{carts}} ajouts panier",
|
|
3537
|
+
"activeBadge": "Actif",
|
|
3538
|
+
"pausedBadge": "En pause",
|
|
3539
|
+
"featuredCaption": "À la une : {{title}}",
|
|
3540
|
+
"shopProductLink": "Voir le Produit"
|
|
3541
|
+
},
|
|
3542
|
+
messages: {
|
|
3543
|
+
"groupCreated": "Anneau à la Une « {{title}} » créé.",
|
|
3544
|
+
"groupCreateError": "Échec de la création du groupe de stories",
|
|
3545
|
+
"groupActivated": "Anneau à la Une activé.",
|
|
3546
|
+
"groupPaused": "Anneau à la Une mis en pause.",
|
|
3547
|
+
"groupUpdateError": "Échec de la mise à jour du groupe de stories",
|
|
3548
|
+
"groupDeleted": "Anneau à la Une supprimé.",
|
|
3549
|
+
"groupDeleteError": "Échec de la suppression du groupe de stories",
|
|
3550
|
+
"slideCreated": "Diapositive 9:16 « {{title}} » publiée.",
|
|
3551
|
+
"slideCreateError": "Échec de la création de la diapositive",
|
|
3552
|
+
"slideActivated": "Diapositive activée.",
|
|
3553
|
+
"slidePaused": "Diapositive mise en pause.",
|
|
3554
|
+
"slideUpdateError": "Échec de la mise à jour de la diapositive",
|
|
3555
|
+
"slideDeleted": "Diapositive supprimée.",
|
|
3556
|
+
"slideDeleteError": "Échec de la suppression de la diapositive",
|
|
3557
|
+
"selectSlideForHotspot": "Sélectionnez d'abord une diapositive avant d'épingler un point produit.",
|
|
3558
|
+
"hotspotPinned": "Point produit épinglé à ({{x}}%, {{y}}%).",
|
|
3559
|
+
"hotspotPinError": "Échec de l'épinglage du point produit",
|
|
3560
|
+
"hotspotRemoved": "Point produit retiré.",
|
|
3561
|
+
"hotspotRemoveError": "Échec de la suppression du point produit",
|
|
3562
|
+
"selectSlideForSticker": "Sélectionnez d'abord une diapositive avant d'ajouter un sticker.",
|
|
3563
|
+
"stickerAdded": "Sticker interactif ajouté à la diapositive.",
|
|
3564
|
+
"stickerAddError": "Échec de l'ajout du sticker",
|
|
3565
|
+
"stickerRemoved": "Sticker interactif retiré.",
|
|
3566
|
+
"stickerRemoveError": "Échec de la suppression du sticker",
|
|
3567
|
+
"productStoryCreated": "Diapositive story shoppable « {{title}} » créée."
|
|
3568
|
+
}
|
|
3569
|
+
};
|
|
3570
|
+
var it_default = {
|
|
3571
|
+
nav: { "label": "Studio Stories" },
|
|
3572
|
+
header: {
|
|
3573
|
+
"title": "Studio Stories Acquistabili",
|
|
3574
|
+
"subtitle": "Anelli Story 9:16 interattivi, hotspot prodotto X/Y, sticker sondaggi e coupon, e funnel di conversione",
|
|
3575
|
+
"ringsBadge": "{{count}} Anelli in Evidenza",
|
|
3576
|
+
"slidesBadge": "{{count}} Slide 9:16",
|
|
3577
|
+
"conversionBadge": "{{rate}}% Conv. Carrello",
|
|
3578
|
+
"languageLabel": "Lingua",
|
|
3579
|
+
"refresh": "Aggiorna Studio",
|
|
3580
|
+
"dismiss": "Chiudi"
|
|
3581
|
+
},
|
|
3582
|
+
tabs: {
|
|
3583
|
+
"canvas": "Canvas 9:16 & Tagger Hotspot ({{count}})",
|
|
3584
|
+
"rings": "Anelli in Evidenza ({{count}})",
|
|
3585
|
+
"stickers": "Sticker Interattivi",
|
|
3586
|
+
"analytics": "Funnel di Conversione"
|
|
3587
|
+
},
|
|
3588
|
+
ringsTab: {
|
|
3589
|
+
"previewTitle": "Anteprima Anelli in Evidenza sullo Storefront",
|
|
3590
|
+
"emptyState": "Nessun anello in evidenza. Crea il tuo primo Story Ring a destra.",
|
|
3591
|
+
"activeBadge": "Attivo",
|
|
3592
|
+
"pausedBadge": "In pausa",
|
|
3593
|
+
"zoneBadge": "Zona: {{placement}}",
|
|
3594
|
+
"slidesCountBadge": "{{count}} slide",
|
|
3595
|
+
"handleLabel": "Handle: /{{handle}}",
|
|
3596
|
+
"deleteButton": "Elimina",
|
|
3597
|
+
"createTitle": "Crea Anello in Evidenza",
|
|
3598
|
+
"titleField": "Titolo Anello",
|
|
3599
|
+
"titlePlaceholder": "Lookbook Estate '26",
|
|
3600
|
+
"subtitleField": "Sottotitolo (Opzionale)",
|
|
3601
|
+
"subtitlePlaceholder": "Tocca per acquistare la collezione",
|
|
3602
|
+
"avatarField": "URL Avatar Copertina Anello",
|
|
3603
|
+
"avatarPlaceholder": "https://images.unsplash.com/...",
|
|
3604
|
+
"themeField": "Tema Gradiente Anello",
|
|
3605
|
+
"customColorField": "Colore Hex Personalizzato",
|
|
3606
|
+
"customColorPlaceholder": "#6366f1",
|
|
3607
|
+
"placementField": "Zona di Posizionamento Storefront",
|
|
3608
|
+
"pinnedSwitch": "Fissa in Cima alla Barra delle Stories",
|
|
3609
|
+
"createButton": "Crea Anello in Evidenza",
|
|
3610
|
+
"themes": {
|
|
3611
|
+
"instagram": "Classico Instagram",
|
|
3612
|
+
"tiktok": "Impulso TikTok",
|
|
3613
|
+
"sunset": "Corallo Tramonto",
|
|
3614
|
+
"emerald": "Menta Smeraldo",
|
|
3615
|
+
"violet": "Viola Elettrico",
|
|
3616
|
+
"cyber": "Cyber Neon",
|
|
3617
|
+
"neon": "Lime Neon",
|
|
3618
|
+
"gold": "Oro Lusso",
|
|
3619
|
+
"minimal": "Monocromo Minimal",
|
|
3620
|
+
"custom": "Hex Personalizzato"
|
|
3621
|
+
},
|
|
3622
|
+
"zones": {
|
|
3623
|
+
"home": "home",
|
|
3624
|
+
"collection": "collection",
|
|
3625
|
+
"category": "category",
|
|
3626
|
+
"product": "product",
|
|
3627
|
+
"floating_bubble": "floating_bubble",
|
|
3628
|
+
"global": "global"
|
|
3629
|
+
}
|
|
3630
|
+
},
|
|
3631
|
+
canvasTab: {
|
|
3632
|
+
"canvasTitle": "Canvas Interattivo Hotspot 9:16",
|
|
3633
|
+
"clickHintBadge": "Clicca sul canvas per impostare X/Y ({{x}}%, {{y}}%)",
|
|
3634
|
+
"canvasAriaLabel": "Canvas Story 9:16 interattivo — clicca per posizionare l'hotspot prodotto",
|
|
3635
|
+
"previewSlideFallback": "Anteprima Slide",
|
|
3636
|
+
"slidePreviewAlt": "Anteprima slide",
|
|
3637
|
+
"emptyCanvasPrompt": "Clicca ovunque su questo schermo 9:16 per posizionare il pin Hotspot Prodotto",
|
|
3638
|
+
"pinCrosshair": "+ Pin ({{x}}%, {{y}}%)",
|
|
3639
|
+
"shopNowFallback": "Acquista Ora",
|
|
3640
|
+
"publishSlideTitle": "1. Pubblica Slide Story 9:16",
|
|
3641
|
+
"slideTitleField": "Titolo Slide",
|
|
3642
|
+
"slideTitlePlaceholder": "Nuova Felpa Drop",
|
|
3643
|
+
"mediaUrlField": "URL Immagine o Video 9:16 (https://)",
|
|
3644
|
+
"mediaUrlPlaceholder": "https://cdn.example.com/story-9x16.jpg",
|
|
3645
|
+
"captionField": "Didascalia in Sovrimpressione",
|
|
3646
|
+
"captionPlaceholder": "Felpa pesante in edizione limitata",
|
|
3647
|
+
"ctaField": "Link e Testo CTA Swipe-Up",
|
|
3648
|
+
"ctaUrlPlaceholder": "/collections/summer",
|
|
3649
|
+
"ctaTextPlaceholder": "Acquista Ora",
|
|
3650
|
+
"imageButton": "Immagine",
|
|
3651
|
+
"videoButton": "Video",
|
|
3652
|
+
"ringButton": "Anello: {{title}}",
|
|
3653
|
+
"autoExpireLabel": "Scadenza automatica 24h",
|
|
3654
|
+
"publishButton": "Pubblica Slide",
|
|
3655
|
+
"pinHotspotTitle": "2. Fissa Hotspot Prodotto Acquistabile su {{slide}}",
|
|
3656
|
+
"selectedSlideFallback": "Slide Selezionata",
|
|
3657
|
+
"productIdField": "ID Prodotto Medusa",
|
|
3658
|
+
"productIdPlaceholder": "prod_01H...",
|
|
3659
|
+
"productTitleField": "Titolo Prodotto",
|
|
3660
|
+
"productTitlePlaceholder": "Cronografo Minimalista",
|
|
3661
|
+
"priceBadgeField": "Badge Prezzo",
|
|
3662
|
+
"priceBadgePlaceholder": "$129.00",
|
|
3663
|
+
"coordinatesHelp": "Coordinate: X={{x}}%, Y={{y}}% (clicca sul canvas a sinistra per riposizionare)",
|
|
3664
|
+
"pinButton": "Fissa Hotspot Prodotto",
|
|
3665
|
+
"removeHotspotButton": "Rimuovi",
|
|
3666
|
+
"timelineTitle": "3. Timeline Slide Story ({{count}})",
|
|
3667
|
+
"activeBadge": "Attivo",
|
|
3668
|
+
"pausedBadge": "In pausa",
|
|
3669
|
+
"hotspotsCountBadge": "{{count}} hotspot",
|
|
3670
|
+
"stickersCountBadge": "{{count}} sticker",
|
|
3671
|
+
"slideMetrics": "Visualizzazioni: {{views}} • Clic: {{clicks}} • Carrelli: {{carts}}",
|
|
3672
|
+
"deleteButton": "Elimina"
|
|
3673
|
+
},
|
|
3674
|
+
stickersTab: {
|
|
3675
|
+
"addTitle": "Aggiungi Sticker Interattivo a {{slide}}",
|
|
3676
|
+
"selectedSlideFallback": "Slide Selezionata",
|
|
3677
|
+
"types": {
|
|
3678
|
+
"poll": "Sondaggio Interattivo",
|
|
3679
|
+
"coupon": "Codice Coupon Flash",
|
|
3680
|
+
"countdown": "Conto alla Rovescia",
|
|
3681
|
+
"question_badge": "Domanda Q&A"
|
|
3682
|
+
},
|
|
3683
|
+
"promptField": "Titolo / Domanda dello Sticker",
|
|
3684
|
+
"promptPlaceholder": "Quale colore dovremmo riassortire?",
|
|
3685
|
+
"option1Field": "Opzione 1",
|
|
3686
|
+
"option2Field": "Opzione 2",
|
|
3687
|
+
"couponField": "Codice Sconto",
|
|
3688
|
+
"couponPlaceholder": "STORY15",
|
|
3689
|
+
"countdownField": "Data/Ora Obiettivo Conto alla Rovescia",
|
|
3690
|
+
"countdownPlaceholder": "2026-12-31T23:59:00Z",
|
|
3691
|
+
"posXField": "Posizione X (%)",
|
|
3692
|
+
"posYField": "Posizione Y (%)",
|
|
3693
|
+
"addButton": "Aggiungi Sticker alla Slide",
|
|
3694
|
+
"activeTitle": "Sticker Attivi e Voti Live",
|
|
3695
|
+
"interactionsBadge": "{{type}} • {{count}} interazioni",
|
|
3696
|
+
"removeButton": "Rimuovi",
|
|
3697
|
+
"optionVotesBadge": "{{label}}: {{votes}} voti",
|
|
3698
|
+
"couponCodeLabel": "Codice Coupon: {{code}}",
|
|
3699
|
+
"endsLabel": "Termina: {{date}}",
|
|
3700
|
+
"emptyState": "Nessuno sticker interattivo su questa slide."
|
|
3701
|
+
},
|
|
3702
|
+
analyticsTab: {
|
|
3703
|
+
"funnelTitle": "Funnel di Conversione Stories Acquistabili",
|
|
3704
|
+
"funnelSubtitle": "Pipeline completa di coinvolgimento su tutte le slide 9:16 attive e archiviate.",
|
|
3705
|
+
"stepImpressions": "1. Impressioni Stories",
|
|
3706
|
+
"stepCompletions": "2. Completamenti Slide",
|
|
3707
|
+
"stepHotspotClicks": "3. Clic Hotspot Prodotto",
|
|
3708
|
+
"stepAddToCarts": "4. Aggiunte al Carrello",
|
|
3709
|
+
"percentOfImpressions": "{{percent}}% delle impressioni",
|
|
3710
|
+
"ringBreakdownTitle": "Rendimento per Anello in Evidenza",
|
|
3711
|
+
"colHighlightRing": "Anello in Evidenza",
|
|
3712
|
+
"colSlides": "Slide",
|
|
3713
|
+
"colImpressions": "Impressioni",
|
|
3714
|
+
"colCompletionRate": "Tasso di Completamento",
|
|
3715
|
+
"colHotspotClicks": "Clic Hotspot",
|
|
3716
|
+
"colAddToCartRate": "Tasso Carrello",
|
|
3717
|
+
"colStickerVotes": "Voti Sticker",
|
|
3718
|
+
"topSlidesTitle": "Migliori Slide Stories 9:16",
|
|
3719
|
+
"colSlideTitle": "Titolo Slide",
|
|
3720
|
+
"colCompletions": "Completamenti",
|
|
3721
|
+
"colAddToCarts": "Aggiunte al Carrello",
|
|
3722
|
+
"unassigned": "Non assegnato"
|
|
3723
|
+
},
|
|
3724
|
+
widget: {
|
|
3725
|
+
"title": "Stories Acquistabili 9:16",
|
|
3726
|
+
"subtitle": "Stories e Anelli in Evidenza con {{product}} e pin hotspot interattivi",
|
|
3727
|
+
"thisProductFallback": "questo prodotto",
|
|
3728
|
+
"createButton": "+ Crea Story dal Prodotto",
|
|
3729
|
+
"emptyState": "Nessuna slide tagga attualmente questo prodotto. Clicca su \"+ Crea Story dal Prodotto\" per generare una slide 9:16 acquistabile con hotspot pre-fissato.",
|
|
3730
|
+
"slideMetrics": "{{views}} visualizzazioni • {{clicks}} tocchi hotspot • {{carts}} al carrello",
|
|
3731
|
+
"activeBadge": "Attivo",
|
|
3732
|
+
"pausedBadge": "In pausa",
|
|
3733
|
+
"featuredCaption": "In evidenza: {{title}}",
|
|
3734
|
+
"shopProductLink": "Acquista Prodotto"
|
|
3735
|
+
},
|
|
3736
|
+
messages: {
|
|
3737
|
+
"groupCreated": "Anello in Evidenza \"{{title}}\" creato.",
|
|
3738
|
+
"groupCreateError": "Impossibile creare il gruppo di stories",
|
|
3739
|
+
"groupActivated": "Anello in Evidenza attivato.",
|
|
3740
|
+
"groupPaused": "Anello in Evidenza messo in pausa.",
|
|
3741
|
+
"groupUpdateError": "Impossibile aggiornare il gruppo di stories",
|
|
3742
|
+
"groupDeleted": "Anello in Evidenza eliminato.",
|
|
3743
|
+
"groupDeleteError": "Impossibile eliminare il gruppo di stories",
|
|
3744
|
+
"slideCreated": "Slide 9:16 \"{{title}}\" pubblicata.",
|
|
3745
|
+
"slideCreateError": "Impossibile creare la slide",
|
|
3746
|
+
"slideActivated": "Slide story attivata.",
|
|
3747
|
+
"slidePaused": "Slide story messa in pausa.",
|
|
3748
|
+
"slideUpdateError": "Impossibile aggiornare la slide",
|
|
3749
|
+
"slideDeleted": "Slide story eliminata.",
|
|
3750
|
+
"slideDeleteError": "Impossibile eliminare la slide",
|
|
3751
|
+
"selectSlideForHotspot": "Seleziona prima una slide per fissare un hotspot.",
|
|
3752
|
+
"hotspotPinned": "Hotspot prodotto fissato a ({{x}}%, {{y}}%).",
|
|
3753
|
+
"hotspotPinError": "Impossibile fissare l'hotspot prodotto",
|
|
3754
|
+
"hotspotRemoved": "Hotspot prodotto rimosso.",
|
|
3755
|
+
"hotspotRemoveError": "Impossibile rimuovere l'hotspot",
|
|
3756
|
+
"selectSlideForSticker": "Seleziona prima una slide per aggiungere uno sticker.",
|
|
3757
|
+
"stickerAdded": "Sticker interattivo aggiunto alla slide.",
|
|
3758
|
+
"stickerAddError": "Impossibile aggiungere lo sticker",
|
|
3759
|
+
"stickerRemoved": "Sticker interattivo rimosso.",
|
|
3760
|
+
"stickerRemoveError": "Impossibile rimuovere lo sticker",
|
|
3761
|
+
"productStoryCreated": "Slide story acquistabile \"{{title}}\" creata."
|
|
3762
|
+
}
|
|
3763
|
+
};
|
|
3764
|
+
var nl_default = {
|
|
3765
|
+
nav: { "label": "Stories Studio" },
|
|
3766
|
+
header: {
|
|
3767
|
+
"title": "Shoppable Stories Studio",
|
|
3768
|
+
"subtitle": "Interactieve 9:16 Story-ringen, X/Y-producthotspots, poll- en couponstickers en conversietrechter",
|
|
3769
|
+
"ringsBadge": "{{count}} Highlight-ringen",
|
|
3770
|
+
"slidesBadge": "{{count}} 9:16-slides",
|
|
3771
|
+
"conversionBadge": "{{rate}}% Winkelwagenconv.",
|
|
3772
|
+
"languageLabel": "Taal",
|
|
3773
|
+
"refresh": "Studio vernieuwen",
|
|
3774
|
+
"dismiss": "Sluiten"
|
|
3775
|
+
},
|
|
3776
|
+
tabs: {
|
|
3777
|
+
"canvas": "9:16-canvas & Hotspots ({{count}})",
|
|
3778
|
+
"rings": "Highlight-ringen ({{count}})",
|
|
3779
|
+
"stickers": "Interactieve stickers",
|
|
3780
|
+
"analytics": "Conversietrechter"
|
|
3781
|
+
},
|
|
3782
|
+
ringsTab: {
|
|
3783
|
+
"previewTitle": "Storefront Highlight-ringen Voorbeeld",
|
|
3784
|
+
"emptyState": "Nog geen highlight-ringen. Maak rechts je eerste Story-ring aan.",
|
|
3785
|
+
"activeBadge": "Actief",
|
|
3786
|
+
"pausedBadge": "Gepauzeerd",
|
|
3787
|
+
"zoneBadge": "Zone: {{placement}}",
|
|
3788
|
+
"slidesCountBadge": "{{count}} slides",
|
|
3789
|
+
"handleLabel": "Handle: /{{handle}}",
|
|
3790
|
+
"deleteButton": "Verwijderen",
|
|
3791
|
+
"createTitle": "Highlight-ring aanmaken",
|
|
3792
|
+
"titleField": "Ringtitel",
|
|
3793
|
+
"titlePlaceholder": "Zomer Lookbook '26",
|
|
3794
|
+
"subtitleField": "Ondertitel (Optioneel)",
|
|
3795
|
+
"subtitlePlaceholder": "Tik om de collectie te shoppen",
|
|
3796
|
+
"avatarField": "Ring Cover Avatar-URL",
|
|
3797
|
+
"avatarPlaceholder": "https://images.unsplash.com/...",
|
|
3798
|
+
"themeField": "Ring Kleurverloop Thema",
|
|
3799
|
+
"customColorField": "Aangepaste Hex-kleur",
|
|
3800
|
+
"customColorPlaceholder": "#6366f1",
|
|
3801
|
+
"placementField": "Storefront Plaatsingszone",
|
|
3802
|
+
"pinnedSwitch": "Vastpinnen vooraan de Story-balk",
|
|
3803
|
+
"createButton": "Highlight-ring aanmaken",
|
|
3804
|
+
"themes": {
|
|
3805
|
+
"instagram": "Instagram Klassiek",
|
|
3806
|
+
"tiktok": "TikTok Puls",
|
|
3807
|
+
"sunset": "Zonsondergang Koraal",
|
|
3808
|
+
"emerald": "Smaragd Mint",
|
|
3809
|
+
"violet": "Elektrisch Violet",
|
|
3810
|
+
"cyber": "Cyber Neon",
|
|
3811
|
+
"neon": "Neon Limoen",
|
|
3812
|
+
"gold": "Luxe Goud",
|
|
3813
|
+
"minimal": "Minimaal Monochroom",
|
|
3814
|
+
"custom": "Aangepaste Hex"
|
|
3815
|
+
},
|
|
3816
|
+
"zones": {
|
|
3817
|
+
"home": "home",
|
|
3818
|
+
"collection": "collection",
|
|
3819
|
+
"category": "category",
|
|
3820
|
+
"product": "product",
|
|
3821
|
+
"floating_bubble": "floating_bubble",
|
|
3822
|
+
"global": "global"
|
|
3823
|
+
}
|
|
3824
|
+
},
|
|
3825
|
+
canvasTab: {
|
|
3826
|
+
"canvasTitle": "9:16 Interactief Hotspot-canvas",
|
|
3827
|
+
"clickHintBadge": "Klik op canvas om X/Y in te stellen ({{x}}%, {{y}}%)",
|
|
3828
|
+
"canvasAriaLabel": "Interactief 9:16 Story-canvas — klik om producthotspot te plaatsen",
|
|
3829
|
+
"previewSlideFallback": "Voorbeeldslide",
|
|
3830
|
+
"slidePreviewAlt": "Slidevoorbeeld",
|
|
3831
|
+
"emptyCanvasPrompt": "Klik ergens op dit 9:16-scherm om je Product Hotspot-pin te plaatsen",
|
|
3832
|
+
"pinCrosshair": "+ Pin ({{x}}%, {{y}}%)",
|
|
3833
|
+
"shopNowFallback": "Shop Nu",
|
|
3834
|
+
"publishSlideTitle": "1. 9:16 Story-slide publiceren",
|
|
3835
|
+
"slideTitleField": "Slidetitel",
|
|
3836
|
+
"slideTitlePlaceholder": "Nieuwe Hoodie Drop",
|
|
3837
|
+
"mediaUrlField": "9:16 Afbeelding- of Video-URL (https://)",
|
|
3838
|
+
"mediaUrlPlaceholder": "https://cdn.example.com/story-9x16.jpg",
|
|
3839
|
+
"captionField": "Bijschrift-overlay",
|
|
3840
|
+
"captionPlaceholder": "Limited edition zware fleece",
|
|
3841
|
+
"ctaField": "Swipe-Up CTA-link & Label",
|
|
3842
|
+
"ctaUrlPlaceholder": "/collections/summer",
|
|
3843
|
+
"ctaTextPlaceholder": "Shop Nu",
|
|
3844
|
+
"imageButton": "Afbeelding",
|
|
3845
|
+
"videoButton": "Video",
|
|
3846
|
+
"ringButton": "Ring: {{title}}",
|
|
3847
|
+
"autoExpireLabel": "Automatisch verlopen na 24u",
|
|
3848
|
+
"publishButton": "Slide publiceren",
|
|
3849
|
+
"pinHotspotTitle": "2. Shoppable Producthotspot vastpinnen op {{slide}}",
|
|
3850
|
+
"selectedSlideFallback": "Geselecteerde Slide",
|
|
3851
|
+
"productIdField": "Medusa Product-ID",
|
|
3852
|
+
"productIdPlaceholder": "prod_01H...",
|
|
3853
|
+
"productTitleField": "Producttitel",
|
|
3854
|
+
"productTitlePlaceholder": "Minimalistische Chronograaf",
|
|
3855
|
+
"priceBadgeField": "Prijsbadge",
|
|
3856
|
+
"priceBadgePlaceholder": "$129.00",
|
|
3857
|
+
"coordinatesHelp": "Coördinaten: X={{x}}%, Y={{y}}% (klik links op het telefooncanvas om te verplaatsen)",
|
|
3858
|
+
"pinButton": "Producthotspot vastpinnen",
|
|
3859
|
+
"removeHotspotButton": "Verwijderen",
|
|
3860
|
+
"timelineTitle": "3. Story-slides Tijdlijn ({{count}})",
|
|
3861
|
+
"activeBadge": "Actief",
|
|
3862
|
+
"pausedBadge": "Gepauzeerd",
|
|
3863
|
+
"hotspotsCountBadge": "{{count}} hotspots",
|
|
3864
|
+
"stickersCountBadge": "{{count}} stickers",
|
|
3865
|
+
"slideMetrics": "Weergaven: {{views}} • Kliks: {{clicks}} • Winkelwagens: {{carts}}",
|
|
3866
|
+
"deleteButton": "Verwijderen"
|
|
3867
|
+
},
|
|
3868
|
+
stickersTab: {
|
|
3869
|
+
"addTitle": "Interactieve sticker toevoegen aan {{slide}}",
|
|
3870
|
+
"selectedSlideFallback": "Geselecteerde Slide",
|
|
3871
|
+
"types": {
|
|
3872
|
+
"poll": "Interactieve Poll",
|
|
3873
|
+
"coupon": "Flash-kortingscode",
|
|
3874
|
+
"countdown": "Drop Aftelling",
|
|
3875
|
+
"question_badge": "V&A-vraag"
|
|
3876
|
+
},
|
|
3877
|
+
"promptField": "Stickerkop / Vraag",
|
|
3878
|
+
"promptPlaceholder": "Welke kleur moeten we als volgende aanvullen?",
|
|
3879
|
+
"option1Field": "Optie 1",
|
|
3880
|
+
"option2Field": "Optie 2",
|
|
3881
|
+
"couponField": "Kortingscode",
|
|
3882
|
+
"couponPlaceholder": "STORY15",
|
|
3883
|
+
"countdownField": "Einddatum/-tijd Aftelling",
|
|
3884
|
+
"countdownPlaceholder": "2026-12-31T23:59:00Z",
|
|
3885
|
+
"posXField": "Positie X (%)",
|
|
3886
|
+
"posYField": "Positie Y (%)",
|
|
3887
|
+
"addButton": "Sticker aan slide toevoegen",
|
|
3888
|
+
"activeTitle": "Actieve Slide-stickers & Live Stemmen",
|
|
3889
|
+
"interactionsBadge": "{{type}} • {{count}} interacties",
|
|
3890
|
+
"removeButton": "Verwijderen",
|
|
3891
|
+
"optionVotesBadge": "{{label}}: {{votes}} stemmen",
|
|
3892
|
+
"couponCodeLabel": "Kortingscode: {{code}}",
|
|
3893
|
+
"endsLabel": "Eindigt: {{date}}",
|
|
3894
|
+
"emptyState": "Nog geen interactieve stickers op deze slide."
|
|
3895
|
+
},
|
|
3896
|
+
analyticsTab: {
|
|
3897
|
+
"funnelTitle": "Shoppable Story Conversietrechter",
|
|
3898
|
+
"funnelSubtitle": "Volledige betrokkenheidspijplijn over alle actieve en gearchiveerde 9:16-storyslides.",
|
|
3899
|
+
"stepImpressions": "1. Story-impressies",
|
|
3900
|
+
"stepCompletions": "2. Volledige Slideweergaven",
|
|
3901
|
+
"stepHotspotClicks": "3. Producthotspot-kliks",
|
|
3902
|
+
"stepAddToCarts": "4. Toevoegingen aan Winkelwagen",
|
|
3903
|
+
"percentOfImpressions": "{{percent}}% van impressies",
|
|
3904
|
+
"ringBreakdownTitle": "Prestatie-overzicht per Highlight-ring",
|
|
3905
|
+
"colHighlightRing": "Highlight-ring",
|
|
3906
|
+
"colSlides": "Slides",
|
|
3907
|
+
"colImpressions": "Impressies",
|
|
3908
|
+
"colCompletionRate": "Voltooiingspercentage",
|
|
3909
|
+
"colHotspotClicks": "Hotspot-kliks",
|
|
3910
|
+
"colAddToCartRate": "Winkelwagenpercentage",
|
|
3911
|
+
"colStickerVotes": "Stickerstemmen",
|
|
3912
|
+
"topSlidesTitle": "Best Presterende 9:16 Story-slides",
|
|
3913
|
+
"colSlideTitle": "Slidetitel",
|
|
3914
|
+
"colCompletions": "Voltooiingen",
|
|
3915
|
+
"colAddToCarts": "Winkelwagens",
|
|
3916
|
+
"unassigned": "Niet toegewezen"
|
|
3917
|
+
},
|
|
3918
|
+
widget: {
|
|
3919
|
+
"title": "Shoppable 9:16 Stories",
|
|
3920
|
+
"subtitle": "Stories & Highlight-ringen met {{product}} en interactieve hotspot-pins",
|
|
3921
|
+
"thisProductFallback": "dit product",
|
|
3922
|
+
"createButton": "+ Story maken van Product",
|
|
3923
|
+
"emptyState": "Er zijn momenteel geen storyslides gekoppeld aan dit product. Klik op \"+ Story maken van Product\" om een 9:16 shoppable slide met vooraf vastgepinde producthotspot te maken.",
|
|
3924
|
+
"slideMetrics": "{{views}} weergaven • {{clicks}} hotspot-tikken • {{carts}} in winkelwagen",
|
|
3925
|
+
"activeBadge": "Actief",
|
|
3926
|
+
"pausedBadge": "Gepauzeerd",
|
|
3927
|
+
"featuredCaption": "Uitgelicht: {{title}}",
|
|
3928
|
+
"shopProductLink": "Bekijk Product"
|
|
3929
|
+
},
|
|
3930
|
+
messages: {
|
|
3931
|
+
"groupCreated": "Story Highlight-ring \"{{title}}\" aangemaakt.",
|
|
3932
|
+
"groupCreateError": "Aanmaken van storygroep mislukt",
|
|
3933
|
+
"groupActivated": "Story Highlight-ring geactiveerd.",
|
|
3934
|
+
"groupPaused": "Story Highlight-ring gepauzeerd.",
|
|
3935
|
+
"groupUpdateError": "Bijwerken van storygroep mislukt",
|
|
3936
|
+
"groupDeleted": "Story Highlight-ring verwijderd.",
|
|
3937
|
+
"groupDeleteError": "Verwijderen van storygroep mislukt",
|
|
3938
|
+
"slideCreated": "9:16-slide \"{{title}}\" gepubliceerd.",
|
|
3939
|
+
"slideCreateError": "Aanmaken van storyslide mislukt",
|
|
3940
|
+
"slideActivated": "Storyslide geactiveerd.",
|
|
3941
|
+
"slidePaused": "Storyslide gepauzeerd.",
|
|
3942
|
+
"slideUpdateError": "Bijwerken van storyslide mislukt",
|
|
3943
|
+
"slideDeleted": "Storyslide verwijderd.",
|
|
3944
|
+
"slideDeleteError": "Verwijderen van storyslide mislukt",
|
|
3945
|
+
"selectSlideForHotspot": "Selecteer eerst een storyslide voordat je een hotspot vastpint.",
|
|
3946
|
+
"hotspotPinned": "Producthotspot vastgepind op ({{x}}%, {{y}}%).",
|
|
3947
|
+
"hotspotPinError": "Vastpinnen van producthotspot mislukt",
|
|
3948
|
+
"hotspotRemoved": "Producthotspot verwijderd.",
|
|
3949
|
+
"hotspotRemoveError": "Verwijderen van hotspot mislukt",
|
|
3950
|
+
"selectSlideForSticker": "Selecteer eerst een storyslide voordat je een sticker toevoegt.",
|
|
3951
|
+
"stickerAdded": "Interactieve sticker toegevoegd aan slide.",
|
|
3952
|
+
"stickerAddError": "Toevoegen van sticker mislukt",
|
|
3953
|
+
"stickerRemoved": "Interactieve sticker verwijderd.",
|
|
3954
|
+
"stickerRemoveError": "Verwijderen van sticker mislukt",
|
|
3955
|
+
"productStoryCreated": "Shoppable storyslide \"{{title}}\" aangemaakt."
|
|
3956
|
+
}
|
|
3957
|
+
};
|
|
3958
|
+
var pl_default = {
|
|
3959
|
+
nav: { "label": "Studio Stories" },
|
|
3960
|
+
header: {
|
|
3961
|
+
"title": "Studio Zakupowych Stories",
|
|
3962
|
+
"subtitle": "Interaktywne pierścienie Stories 9:16, punkty produktów X/Y, naklejki ankiet i kuponów oraz lejek konwersji",
|
|
3963
|
+
"ringsBadge": "{{count}} Pierścienie Wyróżnień",
|
|
3964
|
+
"slidesBadge": "{{count}} Slajdy 9:16",
|
|
3965
|
+
"conversionBadge": "{{rate}}% Konw. Koszyka",
|
|
3966
|
+
"languageLabel": "Język",
|
|
3967
|
+
"refresh": "Odśwież Studio",
|
|
3968
|
+
"dismiss": "Zamknij"
|
|
3969
|
+
},
|
|
3970
|
+
tabs: {
|
|
3971
|
+
"canvas": "Płótno 9:16 i Punkty Produktów ({{count}})",
|
|
3972
|
+
"rings": "Pierścienie Wyróżnień ({{count}})",
|
|
3973
|
+
"stickers": "Interaktywne Naklejki",
|
|
3974
|
+
"analytics": "Lejek Konwersji"
|
|
3975
|
+
},
|
|
3976
|
+
ringsTab: {
|
|
3977
|
+
"previewTitle": "Podgląd Pierścieni Wyróżnień w Sklepie",
|
|
3978
|
+
"emptyState": "Brak pierścieni wyróżnień. Utwórz swój pierwszy pierścień Story po prawej stronie.",
|
|
3979
|
+
"activeBadge": "Aktywny",
|
|
3980
|
+
"pausedBadge": "Wstrzymany",
|
|
3981
|
+
"zoneBadge": "Strefa: {{placement}}",
|
|
3982
|
+
"slidesCountBadge": "{{count}} slajdów",
|
|
3983
|
+
"handleLabel": "Handle: /{{handle}}",
|
|
3984
|
+
"deleteButton": "Usuń",
|
|
3985
|
+
"createTitle": "Utwórz Pierścień Wyróżnień",
|
|
3986
|
+
"titleField": "Tytuł Pierścienia",
|
|
3987
|
+
"titlePlaceholder": "Letni Lookbook '26",
|
|
3988
|
+
"subtitleField": "Podtytuł (Opcjonalny)",
|
|
3989
|
+
"subtitlePlaceholder": "Dotknij, aby kupić kolekcję",
|
|
3990
|
+
"avatarField": "URL Awatara Okładki",
|
|
3991
|
+
"avatarPlaceholder": "https://images.unsplash.com/...",
|
|
3992
|
+
"themeField": "Motyw Gradientu Pierścienia",
|
|
3993
|
+
"customColorField": "Własny Kolor Hex",
|
|
3994
|
+
"customColorPlaceholder": "#6366f1",
|
|
3995
|
+
"placementField": "Strefa Umiejscowienia w Sklepie",
|
|
3996
|
+
"pinnedSwitch": "Przypnij na Początku Paska Stories",
|
|
3997
|
+
"createButton": "Utwórz Pierścień Wyróżnień",
|
|
3998
|
+
"themes": {
|
|
3999
|
+
"instagram": "Klasyczny Instagram",
|
|
4000
|
+
"tiktok": "Puls TikTok",
|
|
4001
|
+
"sunset": "Koralowy Zachód",
|
|
4002
|
+
"emerald": "Szmaragdowa Mięta",
|
|
4003
|
+
"violet": "Elektryczny Fiolet",
|
|
4004
|
+
"cyber": "Cyber Neon",
|
|
4005
|
+
"neon": "Neonowa Limonka",
|
|
4006
|
+
"gold": "Luksusowe Złoto",
|
|
4007
|
+
"minimal": "Minimalistyczny Monochrom",
|
|
4008
|
+
"custom": "Własny Hex"
|
|
4009
|
+
},
|
|
4010
|
+
"zones": {
|
|
4011
|
+
"home": "home",
|
|
4012
|
+
"collection": "collection",
|
|
4013
|
+
"category": "category",
|
|
4014
|
+
"product": "product",
|
|
4015
|
+
"floating_bubble": "floating_bubble",
|
|
4016
|
+
"global": "global"
|
|
4017
|
+
}
|
|
4018
|
+
},
|
|
4019
|
+
canvasTab: {
|
|
4020
|
+
"canvasTitle": "Interaktywne Płótno Punktów 9:16",
|
|
4021
|
+
"clickHintBadge": "Kliknij płótno, aby ustawić X/Y ({{x}}%, {{y}}%)",
|
|
4022
|
+
"canvasAriaLabel": "Interaktywne płótno Story 9:16 — kliknij, aby umieścić punkt produktu",
|
|
4023
|
+
"previewSlideFallback": "Podgląd Slajdu",
|
|
4024
|
+
"slidePreviewAlt": "Podgląd slajdu",
|
|
4025
|
+
"emptyCanvasPrompt": "Kliknij w dowolnym miejscu ekranu 9:16, aby umieścić pinezkę produktu",
|
|
4026
|
+
"pinCrosshair": "+ Pinezka ({{x}}%, {{y}}%)",
|
|
4027
|
+
"shopNowFallback": "Kup Teraz",
|
|
4028
|
+
"publishSlideTitle": "1. Opublikuj Slajd Story 9:16",
|
|
4029
|
+
"slideTitleField": "Tytuł Slajdu",
|
|
4030
|
+
"slideTitlePlaceholder": "Nowa Bluza Drop",
|
|
4031
|
+
"mediaUrlField": "URL Obrazu lub Wideo 9:16 (https://)",
|
|
4032
|
+
"mediaUrlPlaceholder": "https://cdn.example.com/story-9x16.jpg",
|
|
4033
|
+
"captionField": "Nakładka z Podpisem",
|
|
4034
|
+
"captionPlaceholder": "Limitowana edycja z grubego polaru",
|
|
4035
|
+
"ctaField": "Link i Tekst CTA Przesuń w Górę",
|
|
4036
|
+
"ctaUrlPlaceholder": "/collections/summer",
|
|
4037
|
+
"ctaTextPlaceholder": "Kup Teraz",
|
|
4038
|
+
"imageButton": "Obraz",
|
|
4039
|
+
"videoButton": "Wideo",
|
|
4040
|
+
"ringButton": "Pierścień: {{title}}",
|
|
4041
|
+
"autoExpireLabel": "Wygasa po 24h",
|
|
4042
|
+
"publishButton": "Opublikuj Slajd",
|
|
4043
|
+
"pinHotspotTitle": "2. Przypnij Punkt Produktu do {{slide}}",
|
|
4044
|
+
"selectedSlideFallback": "Wybranego Slajdu",
|
|
4045
|
+
"productIdField": "ID Produktu Medusa",
|
|
4046
|
+
"productIdPlaceholder": "prod_01H...",
|
|
4047
|
+
"productTitleField": "Tytuł Produktu",
|
|
4048
|
+
"productTitlePlaceholder": "Minimalistyczny Chronograf",
|
|
4049
|
+
"priceBadgeField": "Plakietka Ceny",
|
|
4050
|
+
"priceBadgePlaceholder": "$129.00",
|
|
4051
|
+
"coordinatesHelp": "Współrzędne: X={{x}}%, Y={{y}}% (kliknij płótno po lewej, aby zmienić pozycję)",
|
|
4052
|
+
"pinButton": "Przypnij Punkt Produktu",
|
|
4053
|
+
"removeHotspotButton": "Usuń",
|
|
4054
|
+
"timelineTitle": "3. Oś Czasu Slajdów ({{count}})",
|
|
4055
|
+
"activeBadge": "Aktywny",
|
|
4056
|
+
"pausedBadge": "Wstrzymany",
|
|
4057
|
+
"hotspotsCountBadge": "{{count}} punktów",
|
|
4058
|
+
"stickersCountBadge": "{{count}} naklejek",
|
|
4059
|
+
"slideMetrics": "Wyświetlenia: {{views}} • Kliknięcia: {{clicks}} • Koszyki: {{carts}}",
|
|
4060
|
+
"deleteButton": "Usuń"
|
|
4061
|
+
},
|
|
4062
|
+
stickersTab: {
|
|
4063
|
+
"addTitle": "Dodaj Interaktywną Naklejkę do {{slide}}",
|
|
4064
|
+
"selectedSlideFallback": "Wybranego Slajdu",
|
|
4065
|
+
"types": {
|
|
4066
|
+
"poll": "Interaktywna Ankieta",
|
|
4067
|
+
"coupon": "Kod Kuponu Błyskawicznego",
|
|
4068
|
+
"countdown": "Odliczanie do Dropu",
|
|
4069
|
+
"question_badge": "Pytanie Q&A"
|
|
4070
|
+
},
|
|
4071
|
+
"promptField": "Nagłówek / Pytanie Naklejki",
|
|
4072
|
+
"promptPlaceholder": "Który kolor powinniśmy uzupełnić jako następny?",
|
|
4073
|
+
"option1Field": "Opcja 1",
|
|
4074
|
+
"option2Field": "Opcja 2",
|
|
4075
|
+
"couponField": "Kod Rabatowy",
|
|
4076
|
+
"couponPlaceholder": "STORY15",
|
|
4077
|
+
"countdownField": "Docelowa Data/Godzina Odliczania",
|
|
4078
|
+
"countdownPlaceholder": "2026-12-31T23:59:00Z",
|
|
4079
|
+
"posXField": "Pozycja X (%)",
|
|
4080
|
+
"posYField": "Pozycja Y (%)",
|
|
4081
|
+
"addButton": "Dodaj Naklejkę do Slajdu",
|
|
4082
|
+
"activeTitle": "Aktywne Naklejki i Głosy na Żywo",
|
|
4083
|
+
"interactionsBadge": "{{type}} • {{count}} interakcji",
|
|
4084
|
+
"removeButton": "Usuń",
|
|
4085
|
+
"optionVotesBadge": "{{label}}: {{votes}} głosów",
|
|
4086
|
+
"couponCodeLabel": "Kod Kuponu: {{code}}",
|
|
4087
|
+
"endsLabel": "Kończy się: {{date}}",
|
|
4088
|
+
"emptyState": "Brak interaktywnych naklejek na tym slajdzie."
|
|
4089
|
+
},
|
|
4090
|
+
analyticsTab: {
|
|
4091
|
+
"funnelTitle": "Lejek Konwersji Zakupowych Stories",
|
|
4092
|
+
"funnelSubtitle": "Pełny proces zaangażowania we wszystkich aktywnych i zarchiwizowanych slajdach 9:16.",
|
|
4093
|
+
"stepImpressions": "1. Wyświetlenia Stories",
|
|
4094
|
+
"stepCompletions": "2. Pełne Obejrzenia Slajdów",
|
|
4095
|
+
"stepHotspotClicks": "3. Kliknięcia Punktów Produktów",
|
|
4096
|
+
"stepAddToCarts": "4. Dodania do Koszyka",
|
|
4097
|
+
"percentOfImpressions": "{{percent}}% wyświetleń",
|
|
4098
|
+
"ringBreakdownTitle": "Wydajność według Pierścienia Wyróżnień",
|
|
4099
|
+
"colHighlightRing": "Pierścień Wyróżnień",
|
|
4100
|
+
"colSlides": "Slajdy",
|
|
4101
|
+
"colImpressions": "Wyświetlenia",
|
|
4102
|
+
"colCompletionRate": "Wskaźnik Ukończenia",
|
|
4103
|
+
"colHotspotClicks": "Kliknięcia Punktów",
|
|
4104
|
+
"colAddToCartRate": "Wskaźnik Koszyka",
|
|
4105
|
+
"colStickerVotes": "Głosy w Naklejkach",
|
|
4106
|
+
"topSlidesTitle": "Najlepsze Slajdy Stories 9:16",
|
|
4107
|
+
"colSlideTitle": "Tytuł Slajdu",
|
|
4108
|
+
"colCompletions": "Ukończenia",
|
|
4109
|
+
"colAddToCarts": "Koszyki",
|
|
4110
|
+
"unassigned": "Nieprzypisany"
|
|
4111
|
+
},
|
|
4112
|
+
widget: {
|
|
4113
|
+
"title": "Zakupowe Stories 9:16",
|
|
4114
|
+
"subtitle": "Stories i Pierścienie Wyróżnień prezentujące {{product}} z interaktywnymi pinezkami produktów",
|
|
4115
|
+
"thisProductFallback": "ten produkt",
|
|
4116
|
+
"createButton": "+ Utwórz Story z Produktu",
|
|
4117
|
+
"emptyState": "Żaden slajd nie oznacza obecnie tego produktu. Kliknij „+ Utwórz Story z Produktu”, aby wygenerować zakupowy slajd 9:16 z przypiętym punktem produktu.",
|
|
4118
|
+
"slideMetrics": "{{views}} wyświetleń • {{clicks}} kliknięć pinezki • {{carts}} w koszyku",
|
|
4119
|
+
"activeBadge": "Aktywny",
|
|
4120
|
+
"pausedBadge": "Wstrzymany",
|
|
4121
|
+
"featuredCaption": "Wyróżnione: {{title}}",
|
|
4122
|
+
"shopProductLink": "Zobacz Produkt"
|
|
4123
|
+
},
|
|
4124
|
+
messages: {
|
|
4125
|
+
"groupCreated": "Utworzono Pierścień Wyróżnień „{{title}}”.",
|
|
4126
|
+
"groupCreateError": "Nie udało się utworzyć grupy stories",
|
|
4127
|
+
"groupActivated": "Pierścień Wyróżnień aktywowany.",
|
|
4128
|
+
"groupPaused": "Pierścień Wyróżnień wstrzymany.",
|
|
4129
|
+
"groupUpdateError": "Nie udało się zaktualizować grupy stories",
|
|
4130
|
+
"groupDeleted": "Usunięto Pierścień Wyróżnień.",
|
|
4131
|
+
"groupDeleteError": "Nie udało się usunąć grupy stories",
|
|
4132
|
+
"slideCreated": "Opublikowano slajd 9:16 „{{title}}”.",
|
|
4133
|
+
"slideCreateError": "Nie udało się utworzyć slajdu story",
|
|
4134
|
+
"slideActivated": "Slajd story aktywowany.",
|
|
4135
|
+
"slidePaused": "Slajd story wstrzymany.",
|
|
4136
|
+
"slideUpdateError": "Nie udało się zaktualizować slajdu story",
|
|
4137
|
+
"slideDeleted": "Usunięto slajd story.",
|
|
4138
|
+
"slideDeleteError": "Nie udało się usunąć slajdu story",
|
|
4139
|
+
"selectSlideForHotspot": "Wybierz najpierw slajd przed przypięciem punktu produktu.",
|
|
4140
|
+
"hotspotPinned": "Przypięto punkt produktu w ({{x}}%, {{y}}%).",
|
|
4141
|
+
"hotspotPinError": "Nie udało się przypiąć punktu produktu",
|
|
4142
|
+
"hotspotRemoved": "Usunięto punkt produktu.",
|
|
4143
|
+
"hotspotRemoveError": "Nie udało się usunąć punktu produktu",
|
|
4144
|
+
"selectSlideForSticker": "Wybierz najpierw slajd przed dodaniem naklejki.",
|
|
4145
|
+
"stickerAdded": "Dodano interaktywną naklejkę do slajdu.",
|
|
4146
|
+
"stickerAddError": "Nie udało się dodać naklejki",
|
|
4147
|
+
"stickerRemoved": "Usunięto interaktywną naklejkę.",
|
|
4148
|
+
"stickerRemoveError": "Nie udało się usunąć naklejki",
|
|
4149
|
+
"productStoryCreated": "Utworzono zakupowy slajd story „{{title}}”."
|
|
4150
|
+
}
|
|
4151
|
+
};
|
|
4152
|
+
var pt_default = {
|
|
4153
|
+
nav: { "label": "Estúdio de Stories" },
|
|
4154
|
+
header: {
|
|
4155
|
+
"title": "Estúdio de Stories Compráveis",
|
|
4156
|
+
"subtitle": "Anéis de Stories 9:16 interativos, hotspots de produto X/Y, stickers de enquete e cupom, e funil de conversão",
|
|
4157
|
+
"ringsBadge": "{{count}} Anéis de Destaque",
|
|
4158
|
+
"slidesBadge": "{{count}} Slides 9:16",
|
|
4159
|
+
"conversionBadge": "{{rate}}% Conv. Carrinho",
|
|
4160
|
+
"languageLabel": "Idioma",
|
|
4161
|
+
"refresh": "Atualizar Estúdio",
|
|
4162
|
+
"dismiss": "Dispensar"
|
|
4163
|
+
},
|
|
4164
|
+
tabs: {
|
|
4165
|
+
"canvas": "Canvas 9:16 e Hotspots ({{count}})",
|
|
4166
|
+
"rings": "Anéis de Destaque ({{count}})",
|
|
4167
|
+
"stickers": "Stickers Interativos",
|
|
4168
|
+
"analytics": "Funil de Conversão"
|
|
4169
|
+
},
|
|
4170
|
+
ringsTab: {
|
|
4171
|
+
"previewTitle": "Pré-visualização dos Anéis de Destaque na Loja",
|
|
4172
|
+
"emptyState": "Ainda não há anéis de destaque. Crie seu primeiro Anel de Story à direita.",
|
|
4173
|
+
"activeBadge": "Ativo",
|
|
4174
|
+
"pausedBadge": "Pausado",
|
|
4175
|
+
"zoneBadge": "Zona: {{placement}}",
|
|
4176
|
+
"slidesCountBadge": "{{count}} slides",
|
|
4177
|
+
"handleLabel": "Handle: /{{handle}}",
|
|
4178
|
+
"deleteButton": "Excluir",
|
|
4179
|
+
"createTitle": "Criar Anel de Destaque",
|
|
4180
|
+
"titleField": "Título do Anel",
|
|
4181
|
+
"titlePlaceholder": "Lookbook de Verão '26",
|
|
4182
|
+
"subtitleField": "Subtítulo (Opcional)",
|
|
4183
|
+
"subtitlePlaceholder": "Toque para comprar a coleção",
|
|
4184
|
+
"avatarField": "URL do Avatar da Capa",
|
|
4185
|
+
"avatarPlaceholder": "https://images.unsplash.com/...",
|
|
4186
|
+
"themeField": "Tema de Gradiente do Anel",
|
|
4187
|
+
"customColorField": "Cor Hex Personalizada",
|
|
4188
|
+
"customColorPlaceholder": "#6366f1",
|
|
4189
|
+
"placementField": "Zona de Exibição na Loja",
|
|
4190
|
+
"pinnedSwitch": "Fixar no Início da Barra de Stories",
|
|
4191
|
+
"createButton": "Criar Anel de Destaque",
|
|
4192
|
+
"themes": {
|
|
4193
|
+
"instagram": "Clássico Instagram",
|
|
4194
|
+
"tiktok": "Pulso TikTok",
|
|
4195
|
+
"sunset": "Coral Pôr do Sol",
|
|
4196
|
+
"emerald": "Menta Esmeralda",
|
|
4197
|
+
"violet": "Violeta Elétrico",
|
|
4198
|
+
"cyber": "Cyber Neon",
|
|
4199
|
+
"neon": "Lima Neon",
|
|
4200
|
+
"gold": "Ouro Luxo",
|
|
4201
|
+
"minimal": "Monocromático Minimal",
|
|
4202
|
+
"custom": "Hex Personalizado"
|
|
4203
|
+
},
|
|
4204
|
+
"zones": {
|
|
4205
|
+
"home": "home",
|
|
4206
|
+
"collection": "collection",
|
|
4207
|
+
"category": "category",
|
|
4208
|
+
"product": "product",
|
|
4209
|
+
"floating_bubble": "floating_bubble",
|
|
4210
|
+
"global": "global"
|
|
4211
|
+
}
|
|
4212
|
+
},
|
|
4213
|
+
canvasTab: {
|
|
4214
|
+
"canvasTitle": "Canvas Interativo de Hotspots 9:16",
|
|
4215
|
+
"clickHintBadge": "Clique no canvas para definir X/Y ({{x}}%, {{y}}%)",
|
|
4216
|
+
"canvasAriaLabel": "Canvas interativo de Story 9:16 — clique para posicionar um hotspot de produto",
|
|
4217
|
+
"previewSlideFallback": "Prévia do Slide",
|
|
4218
|
+
"slidePreviewAlt": "Prévia do slide",
|
|
4219
|
+
"emptyCanvasPrompt": "Clique em qualquer lugar desta tela 9:16 para posicionar o pin do seu Produto",
|
|
4220
|
+
"pinCrosshair": "+ Pin ({{x}}%, {{y}}%)",
|
|
4221
|
+
"shopNowFallback": "Comprar Agora",
|
|
4222
|
+
"publishSlideTitle": "1. Publicar Slide de Story 9:16",
|
|
4223
|
+
"slideTitleField": "Título do Slide",
|
|
4224
|
+
"slideTitlePlaceholder": "Novo Moletom Drop",
|
|
4225
|
+
"mediaUrlField": "URL de Imagem ou Vídeo 9:16 (https://)",
|
|
4226
|
+
"mediaUrlPlaceholder": "https://cdn.example.com/story-9x16.jpg",
|
|
4227
|
+
"captionField": "Sobrepor Legenda",
|
|
4228
|
+
"captionPlaceholder": "Moletom pesado em edição limitada",
|
|
4229
|
+
"ctaField": "Link e Texto do CTA Arraste para Cima",
|
|
4230
|
+
"ctaUrlPlaceholder": "/collections/summer",
|
|
4231
|
+
"ctaTextPlaceholder": "Comprar Agora",
|
|
4232
|
+
"imageButton": "Imagem",
|
|
4233
|
+
"videoButton": "Vídeo",
|
|
4234
|
+
"ringButton": "Anel: {{title}}",
|
|
4235
|
+
"autoExpireLabel": "Expirar em 24h",
|
|
4236
|
+
"publishButton": "Publicar Slide",
|
|
4237
|
+
"pinHotspotTitle": "2. Fixar Hotspot de Produto Comprável em {{slide}}",
|
|
4238
|
+
"selectedSlideFallback": "Slide Selecionado",
|
|
4239
|
+
"productIdField": "ID do Produto Medusa",
|
|
4240
|
+
"productIdPlaceholder": "prod_01H...",
|
|
4241
|
+
"productTitleField": "Título do Produto",
|
|
4242
|
+
"productTitlePlaceholder": "Cronógrafo Minimalista",
|
|
4243
|
+
"priceBadgeField": "Selo de Preço",
|
|
4244
|
+
"priceBadgePlaceholder": "$129.00",
|
|
4245
|
+
"coordinatesHelp": "Coordenadas: X={{x}}%, Y={{y}}% (clique no canvas à esquerda para reposicionar)",
|
|
4246
|
+
"pinButton": "Fixar Hotspot de Produto",
|
|
4247
|
+
"removeHotspotButton": "Remover",
|
|
4248
|
+
"timelineTitle": "3. Linha do Tempo de Slides ({{count}})",
|
|
4249
|
+
"activeBadge": "Ativo",
|
|
4250
|
+
"pausedBadge": "Pausado",
|
|
4251
|
+
"hotspotsCountBadge": "{{count}} hotspots",
|
|
4252
|
+
"stickersCountBadge": "{{count}} stickers",
|
|
4253
|
+
"slideMetrics": "Visualizações: {{views}} • Cliques: {{clicks}} • Carrinhos: {{carts}}",
|
|
4254
|
+
"deleteButton": "Excluir"
|
|
4255
|
+
},
|
|
4256
|
+
stickersTab: {
|
|
4257
|
+
"addTitle": "Adicionar Sticker Interativo a {{slide}}",
|
|
4258
|
+
"selectedSlideFallback": "Slide Selecionado",
|
|
4259
|
+
"types": {
|
|
4260
|
+
"poll": "Enquete Interativa",
|
|
4261
|
+
"coupon": "Cupom Relâmpago",
|
|
4262
|
+
"countdown": "Contagem Regressiva",
|
|
4263
|
+
"question_badge": "Pergunta P&R"
|
|
4264
|
+
},
|
|
4265
|
+
"promptField": "Título / Pergunta do Sticker",
|
|
4266
|
+
"promptPlaceholder": "Qual cor devemos repor primeiro?",
|
|
4267
|
+
"option1Field": "Opção 1",
|
|
4268
|
+
"option2Field": "Opção 2",
|
|
4269
|
+
"couponField": "Código de Desconto",
|
|
4270
|
+
"couponPlaceholder": "STORY15",
|
|
4271
|
+
"countdownField": "Data/Hora Alvo da Contagem Regressiva",
|
|
4272
|
+
"countdownPlaceholder": "2026-12-31T23:59:00Z",
|
|
4273
|
+
"posXField": "Posição X (%)",
|
|
4274
|
+
"posYField": "Posição Y (%)",
|
|
4275
|
+
"addButton": "Adicionar Sticker ao Slide",
|
|
4276
|
+
"activeTitle": "Stickers Ativos e Votos ao Vivo",
|
|
4277
|
+
"interactionsBadge": "{{type}} • {{count}} interações",
|
|
4278
|
+
"removeButton": "Remover",
|
|
4279
|
+
"optionVotesBadge": "{{label}}: {{votes}} votos",
|
|
4280
|
+
"couponCodeLabel": "Código do Cupom: {{code}}",
|
|
4281
|
+
"endsLabel": "Termina: {{date}}",
|
|
4282
|
+
"emptyState": "Nenhum sticker interativo neste slide ainda."
|
|
4283
|
+
},
|
|
4284
|
+
analyticsTab: {
|
|
4285
|
+
"funnelTitle": "Funil de Conversão de Stories Compráveis",
|
|
4286
|
+
"funnelSubtitle": "Pipeline completo de engajamento em todos os slides 9:16 ativos e arquivados.",
|
|
4287
|
+
"stepImpressions": "1. Impressões de Stories",
|
|
4288
|
+
"stepCompletions": "2. Conclusões de Slides",
|
|
4289
|
+
"stepHotspotClicks": "3. Cliques em Hotspots",
|
|
4290
|
+
"stepAddToCarts": "4. Adições ao Carrinho",
|
|
4291
|
+
"percentOfImpressions": "{{percent}}% das impressões",
|
|
4292
|
+
"ringBreakdownTitle": "Desempenho por Anel de Destaque",
|
|
4293
|
+
"colHighlightRing": "Anel de Destaque",
|
|
4294
|
+
"colSlides": "Slides",
|
|
4295
|
+
"colImpressions": "Impressões",
|
|
4296
|
+
"colCompletionRate": "Taxa de Conclusão",
|
|
4297
|
+
"colHotspotClicks": "Cliques em Hotspots",
|
|
4298
|
+
"colAddToCartRate": "Taxa de Carrinho",
|
|
4299
|
+
"colStickerVotes": "Votos em Stickers",
|
|
4300
|
+
"topSlidesTitle": "Slides de Stories 9:16 com Melhor Desempenho",
|
|
4301
|
+
"colSlideTitle": "Título do Slide",
|
|
4302
|
+
"colCompletions": "Conclusões",
|
|
4303
|
+
"colAddToCarts": "Carrinhos",
|
|
4304
|
+
"unassigned": "Não atribuído"
|
|
4305
|
+
},
|
|
4306
|
+
widget: {
|
|
4307
|
+
"title": "Stories Compráveis 9:16",
|
|
4308
|
+
"subtitle": "Stories e Anéis de Destaque apresentando {{product}} com pins de hotspot interativos",
|
|
4309
|
+
"thisProductFallback": "este produto",
|
|
4310
|
+
"createButton": "+ Criar Story a partir do Produto",
|
|
4311
|
+
"emptyState": "Nenhum slide marca este produto no momento. Clique em \"+ Criar Story a partir do Produto\" para gerar um slide 9:16 comprável com hotspot pré-fixado.",
|
|
4312
|
+
"slideMetrics": "{{views}} visualizações • {{clicks}} toques no pin • {{carts}} ao carrinho",
|
|
4313
|
+
"activeBadge": "Ativo",
|
|
4314
|
+
"pausedBadge": "Pausado",
|
|
4315
|
+
"featuredCaption": "Destaque: {{title}}",
|
|
4316
|
+
"shopProductLink": "Ver Produto"
|
|
4317
|
+
},
|
|
4318
|
+
messages: {
|
|
4319
|
+
"groupCreated": "Anel de Destaque \"{{title}}\" criado.",
|
|
4320
|
+
"groupCreateError": "Falha ao criar grupo de stories",
|
|
4321
|
+
"groupActivated": "Anel de Destaque ativado.",
|
|
4322
|
+
"groupPaused": "Anel de Destaque pausado.",
|
|
4323
|
+
"groupUpdateError": "Falha ao atualizar grupo de stories",
|
|
4324
|
+
"groupDeleted": "Anel de Destaque excluído.",
|
|
4325
|
+
"groupDeleteError": "Falha ao excluir grupo de stories",
|
|
4326
|
+
"slideCreated": "Slide 9:16 \"{{title}}\" publicado.",
|
|
4327
|
+
"slideCreateError": "Falha ao criar slide de story",
|
|
4328
|
+
"slideActivated": "Slide de story ativado.",
|
|
4329
|
+
"slidePaused": "Slide de story pausado.",
|
|
4330
|
+
"slideUpdateError": "Falha ao atualizar slide de story",
|
|
4331
|
+
"slideDeleted": "Slide de story excluído.",
|
|
4332
|
+
"slideDeleteError": "Falha ao excluir slide de story",
|
|
4333
|
+
"selectSlideForHotspot": "Selecione um slide primeiro antes de fixar um hotspot.",
|
|
4334
|
+
"hotspotPinned": "Hotspot de produto fixado em ({{x}}%, {{y}}%).",
|
|
4335
|
+
"hotspotPinError": "Falha ao fixar hotspot de produto",
|
|
4336
|
+
"hotspotRemoved": "Hotspot de produto removido.",
|
|
4337
|
+
"hotspotRemoveError": "Falha ao remover hotspot",
|
|
4338
|
+
"selectSlideForSticker": "Selecione um slide primeiro antes de adicionar um sticker.",
|
|
4339
|
+
"stickerAdded": "Sticker interativo adicionado ao slide.",
|
|
4340
|
+
"stickerAddError": "Falha ao adicionar sticker",
|
|
4341
|
+
"stickerRemoved": "Sticker interativo removido.",
|
|
4342
|
+
"stickerRemoveError": "Falha ao remover sticker",
|
|
4343
|
+
"productStoryCreated": "Slide de story comprável \"{{title}}\" criado."
|
|
4344
|
+
}
|
|
4345
|
+
};
|
|
4346
|
+
var tr_default = {
|
|
4347
|
+
nav: { "label": "Hikaye Stüdyosu" },
|
|
4348
|
+
header: {
|
|
4349
|
+
"title": "Alışveriş Yapılabilir Hikaye Stüdyosu",
|
|
4350
|
+
"subtitle": "Etkileşimli 9:16 Hikaye Halkaları, X/Y Ürün Noktaları, Anket ve Kupon Çıkartmaları ve Dönüşüm Hunisi",
|
|
4351
|
+
"ringsBadge": "{{count}} Öne Çıkan Halka",
|
|
4352
|
+
"slidesBadge": "{{count}} 9:16 Slayt",
|
|
4353
|
+
"conversionBadge": "%{{rate}} Sepet Dönüşümü",
|
|
4354
|
+
"languageLabel": "Dil",
|
|
4355
|
+
"refresh": "Stüdyoyu Yenile",
|
|
4356
|
+
"dismiss": "Kapat"
|
|
4357
|
+
},
|
|
4358
|
+
tabs: {
|
|
4359
|
+
"canvas": "9:16 Tuval ve Ürün Etiketleyici ({{count}})",
|
|
4360
|
+
"rings": "Öne Çıkan Halkalar ({{count}})",
|
|
4361
|
+
"stickers": "Etkileşimli Çıkartmalar",
|
|
4362
|
+
"analytics": "Dönüşüm Hunisi"
|
|
4363
|
+
},
|
|
4364
|
+
ringsTab: {
|
|
4365
|
+
"previewTitle": "Mağaza Öne Çıkan Halkalar Önizlemesi",
|
|
4366
|
+
"emptyState": "Henüz öne çıkan halka yok. Sağ taraftan ilk Hikaye Halkanızı oluşturun.",
|
|
4367
|
+
"activeBadge": "Aktif",
|
|
4368
|
+
"pausedBadge": "Duraklatıldı",
|
|
4369
|
+
"zoneBadge": "Bölge: {{placement}}",
|
|
4370
|
+
"slidesCountBadge": "{{count}} slayt",
|
|
4371
|
+
"handleLabel": "Handle: /{{handle}}",
|
|
4372
|
+
"deleteButton": "Sil",
|
|
4373
|
+
"createTitle": "Öne Çıkan Halka Oluştur",
|
|
4374
|
+
"titleField": "Halka Başlığı",
|
|
4375
|
+
"titlePlaceholder": "Yaz Koleksiyonu '26",
|
|
4376
|
+
"subtitleField": "Alt Başlık (İsteğe Bağlı)",
|
|
4377
|
+
"subtitlePlaceholder": "Koleksiyonu keşfetmek için dokunun",
|
|
4378
|
+
"avatarField": "Halka Kapak Avatar URL'si",
|
|
4379
|
+
"avatarPlaceholder": "https://images.unsplash.com/...",
|
|
4380
|
+
"themeField": "Halka Gradyan Teması",
|
|
4381
|
+
"customColorField": "Özel Hex Rengi",
|
|
4382
|
+
"customColorPlaceholder": "#6366f1",
|
|
4383
|
+
"placementField": "Mağaza Yerleşim Bölgesi",
|
|
4384
|
+
"pinnedSwitch": "Hikaye Çubuğunun Başına Sabitle",
|
|
4385
|
+
"createButton": "Öne Çıkan Halka Oluştur",
|
|
4386
|
+
"themes": {
|
|
4387
|
+
"instagram": "Instagram Klasik",
|
|
4388
|
+
"tiktok": "TikTok Nabız",
|
|
4389
|
+
"sunset": "Gün Batımı Mercan",
|
|
4390
|
+
"emerald": "Zümrüt Nane",
|
|
4391
|
+
"violet": "Elektrik Moru",
|
|
4392
|
+
"cyber": "Siber Neon",
|
|
4393
|
+
"neon": "Neon Limon",
|
|
4394
|
+
"gold": "Lüks Altın",
|
|
4395
|
+
"minimal": "Minimal Monokrom",
|
|
4396
|
+
"custom": "Özel Hex"
|
|
4397
|
+
},
|
|
4398
|
+
"zones": {
|
|
4399
|
+
"home": "home",
|
|
4400
|
+
"collection": "collection",
|
|
4401
|
+
"category": "category",
|
|
4402
|
+
"product": "product",
|
|
4403
|
+
"floating_bubble": "floating_bubble",
|
|
4404
|
+
"global": "global"
|
|
4405
|
+
}
|
|
4406
|
+
},
|
|
4407
|
+
canvasTab: {
|
|
4408
|
+
"canvasTitle": "9:16 Etkileşimli Ürün Noktası Tuvali",
|
|
4409
|
+
"clickHintBadge": "X/Y ayarlamak için tuvale tıklayın (%{{x}}, %{{y}})",
|
|
4410
|
+
"canvasAriaLabel": "Etkileşimli 9:16 Hikaye Tuvali — ürün noktası yerleştirmek için tıklayın",
|
|
4411
|
+
"previewSlideFallback": "Önizleme Slaytı",
|
|
4412
|
+
"slidePreviewAlt": "Slayt önizlemesi",
|
|
4413
|
+
"emptyCanvasPrompt": "Ürün Noktası pimini konumlandırmak için bu 9:16 ekranda herhangi bir yere tıklayın",
|
|
4414
|
+
"pinCrosshair": "+ Pim (%{{x}}, %{{y}})",
|
|
4415
|
+
"shopNowFallback": "Şimdi Alışveriş Yap",
|
|
4416
|
+
"publishSlideTitle": "1. 9:16 Hikaye Slaytı Yayınla",
|
|
4417
|
+
"slideTitleField": "Slayt Başlığı",
|
|
4418
|
+
"slideTitlePlaceholder": "Yeni Kapüşonlu Lansmanı",
|
|
4419
|
+
"mediaUrlField": "9:16 Görsel veya Video URL'si (https://)",
|
|
4420
|
+
"mediaUrlPlaceholder": "https://cdn.example.com/story-9x16.jpg",
|
|
4421
|
+
"captionField": "Altyazı Katmanı",
|
|
4422
|
+
"captionPlaceholder": "Sınırlı üretim kalın polar",
|
|
4423
|
+
"ctaField": "Yukarı Kaydırma CTA Bağlantısı ve Metni",
|
|
4424
|
+
"ctaUrlPlaceholder": "/collections/summer",
|
|
4425
|
+
"ctaTextPlaceholder": "Şimdi Alışveriş Yap",
|
|
4426
|
+
"imageButton": "Görsel",
|
|
4427
|
+
"videoButton": "Video",
|
|
4428
|
+
"ringButton": "Halka: {{title}}",
|
|
4429
|
+
"autoExpireLabel": "24 Saatte Otomatik Sona Erdir",
|
|
4430
|
+
"publishButton": "Slaytı Yayınla",
|
|
4431
|
+
"pinHotspotTitle": "2. {{slide}} Üzerine Alışveriş Noktası Sabitle",
|
|
4432
|
+
"selectedSlideFallback": "Seçili Slayt",
|
|
4433
|
+
"productIdField": "Medusa Ürün Kimliği",
|
|
4434
|
+
"productIdPlaceholder": "prod_01H...",
|
|
4435
|
+
"productTitleField": "Ürün Başlığı",
|
|
4436
|
+
"productTitlePlaceholder": "Minimalist Kronograf",
|
|
4437
|
+
"priceBadgeField": "Fiyat Rozeti",
|
|
4438
|
+
"priceBadgePlaceholder": "$129.00",
|
|
4439
|
+
"coordinatesHelp": "Koordinatlar: X=%{{x}}, Y=%{{y}} (yeniden konumlandırmak için soldaki telefon tuvaline tıklayın)",
|
|
4440
|
+
"pinButton": "Ürün Noktasını Sabitle",
|
|
4441
|
+
"removeHotspotButton": "Kaldır",
|
|
4442
|
+
"timelineTitle": "3. Hikaye Slaytları Zaman Çizelgesi ({{count}})",
|
|
4443
|
+
"activeBadge": "Aktif",
|
|
4444
|
+
"pausedBadge": "Duraklatıldı",
|
|
4445
|
+
"hotspotsCountBadge": "{{count}} nokta",
|
|
4446
|
+
"stickersCountBadge": "{{count}} çıkartma",
|
|
4447
|
+
"slideMetrics": "Görüntülenme: {{views}} • Tıklama: {{clicks}} • Sepet: {{carts}}",
|
|
4448
|
+
"deleteButton": "Sil"
|
|
4449
|
+
},
|
|
4450
|
+
stickersTab: {
|
|
4451
|
+
"addTitle": "{{slide}} Üzerine Etkileşimli Çıkartma Ekle",
|
|
4452
|
+
"selectedSlideFallback": "Seçili Slayt",
|
|
4453
|
+
"types": {
|
|
4454
|
+
"poll": "Etkileşimli Anket",
|
|
4455
|
+
"coupon": "Flaş Kupon Kodu",
|
|
4456
|
+
"countdown": "Lansman Geri Sayımı",
|
|
4457
|
+
"question_badge": "Soru-Cevap İstemi"
|
|
4458
|
+
},
|
|
4459
|
+
"promptField": "Çıkartma Başlığı / Sorusu",
|
|
4460
|
+
"promptPlaceholder": "Sıradaki stokta hangi renk olmalı?",
|
|
4461
|
+
"option1Field": "Seçenek 1",
|
|
4462
|
+
"option2Field": "Seçenek 2",
|
|
4463
|
+
"couponField": "İndirim Kodu",
|
|
4464
|
+
"couponPlaceholder": "STORY15",
|
|
4465
|
+
"countdownField": "Geri Sayım Hedef Tarih/Saat",
|
|
4466
|
+
"countdownPlaceholder": "2026-12-31T23:59:00Z",
|
|
4467
|
+
"posXField": "Konum X (%)",
|
|
4468
|
+
"posYField": "Konum Y (%)",
|
|
4469
|
+
"addButton": "Slayta Çıkartma Ekle",
|
|
4470
|
+
"activeTitle": "Aktif Slayt Çıkartmaları ve Canlı Oylar",
|
|
4471
|
+
"interactionsBadge": "{{type}} • {{count}} etkileşim",
|
|
4472
|
+
"removeButton": "Kaldır",
|
|
4473
|
+
"optionVotesBadge": "{{label}}: {{votes}} oy",
|
|
4474
|
+
"couponCodeLabel": "Kupon Kodu: {{code}}",
|
|
4475
|
+
"endsLabel": "Bitiş: {{date}}",
|
|
4476
|
+
"emptyState": "Bu slaytta henüz etkileşimli çıkartma yok."
|
|
4477
|
+
},
|
|
4478
|
+
analyticsTab: {
|
|
4479
|
+
"funnelTitle": "Alışveriş Yapılabilir Hikaye Dönüşüm Hunisi",
|
|
4480
|
+
"funnelSubtitle": "Tüm aktif ve arşivlenmiş 9:16 hikaye slaytlarındaki uçtan uca etkileşim hattı.",
|
|
4481
|
+
"stepImpressions": "1. Hikaye Gösterimleri",
|
|
4482
|
+
"stepCompletions": "2. Tam Slayt Tamamlamaları",
|
|
4483
|
+
"stepHotspotClicks": "3. Ürün Noktası Tıklamaları",
|
|
4484
|
+
"stepAddToCarts": "4. Hikayeden Sepete Eklemeler",
|
|
4485
|
+
"percentOfImpressions": "Gösterimlerin %{{percent}} kadarı",
|
|
4486
|
+
"ringBreakdownTitle": "Öne Çıkan Halka Performans Dağılımı",
|
|
4487
|
+
"colHighlightRing": "Öne Çıkan Halka",
|
|
4488
|
+
"colSlides": "Slaytlar",
|
|
4489
|
+
"colImpressions": "Gösterimler",
|
|
4490
|
+
"colCompletionRate": "Tamamlama Oranı",
|
|
4491
|
+
"colHotspotClicks": "Nokta Tıklamaları",
|
|
4492
|
+
"colAddToCartRate": "Sepete Ekleme Oranı",
|
|
4493
|
+
"colStickerVotes": "Çıkartma Oyları",
|
|
4494
|
+
"topSlidesTitle": "En İyi Performans Gösteren 9:16 Slaytlar",
|
|
4495
|
+
"colSlideTitle": "Slayt Başlığı",
|
|
4496
|
+
"colCompletions": "Tamamlamalar",
|
|
4497
|
+
"colAddToCarts": "Sepete Eklemeler",
|
|
4498
|
+
"unassigned": "Atanmamış"
|
|
4499
|
+
},
|
|
4500
|
+
widget: {
|
|
4501
|
+
"title": "Alışveriş Yapılabilir 9:16 Hikayeler",
|
|
4502
|
+
"subtitle": "Etkileşimli ürün pimleriyle {{product}} içeren Hikayeler ve Öne Çıkan Halkalar",
|
|
4503
|
+
"thisProductFallback": "bu ürün",
|
|
4504
|
+
"createButton": "+ Üründen Hikaye Oluştur",
|
|
4505
|
+
"emptyState": "Şu anda hiçbir hikaye slaytı bu ürünü etiketlemiyor. Önceden sabitlenmiş ürün noktasına sahip 9:16 alışveriş slaytı oluşturmak için \"+ Üründen Hikaye Oluştur\" düğmesine tıklayın.",
|
|
4506
|
+
"slideMetrics": "{{views}} görüntülenme • {{clicks}} nokta dokunuşu • {{carts}} sepete ekleme",
|
|
4507
|
+
"activeBadge": "Aktif",
|
|
4508
|
+
"pausedBadge": "Duraklatıldı",
|
|
4509
|
+
"featuredCaption": "Öne Çıkan: {{title}}",
|
|
4510
|
+
"shopProductLink": "Ürünü İncele"
|
|
4511
|
+
},
|
|
4512
|
+
messages: {
|
|
4513
|
+
"groupCreated": "\"{{title}}\" Hikaye Öne Çıkan Halkası oluşturuldu.",
|
|
4514
|
+
"groupCreateError": "Hikaye grubu oluşturulamadı",
|
|
4515
|
+
"groupActivated": "Hikaye Öne Çıkan Halkası etkinleştirildi.",
|
|
4516
|
+
"groupPaused": "Hikaye Öne Çıkan Halkası duraklatıldı.",
|
|
4517
|
+
"groupUpdateError": "Hikaye grubu güncellenemedi",
|
|
4518
|
+
"groupDeleted": "Hikaye Öne Çıkan Halkası silindi.",
|
|
4519
|
+
"groupDeleteError": "Hikaye grubu silinemedi",
|
|
4520
|
+
"slideCreated": "9:16 slayt \"{{title}}\" yayınlandı.",
|
|
4521
|
+
"slideCreateError": "Hikaye slaytı oluşturulamadı",
|
|
4522
|
+
"slideActivated": "Hikaye slaytı etkinleştirildi.",
|
|
4523
|
+
"slidePaused": "Hikaye slaytı duraklatıldı.",
|
|
4524
|
+
"slideUpdateError": "Hikaye slaytı güncellenemedi",
|
|
4525
|
+
"slideDeleted": "Hikaye slaytı silindi.",
|
|
4526
|
+
"slideDeleteError": "Hikaye slaytı silinemedi",
|
|
4527
|
+
"selectSlideForHotspot": "Bir ürün noktası sabitlemeden önce bir hikaye slaytı seçin.",
|
|
4528
|
+
"hotspotPinned": "Ürün noktası (%{{x}}, %{{y}}) konumuna sabitlendi.",
|
|
4529
|
+
"hotspotPinError": "Ürün noktası sabitlenemedi",
|
|
4530
|
+
"hotspotRemoved": "Ürün noktası kaldırıldı.",
|
|
4531
|
+
"hotspotRemoveError": "Ürün noktası kaldırılamadı",
|
|
4532
|
+
"selectSlideForSticker": "Bir çıkartma eklemeden önce bir hikaye slaytı seçin.",
|
|
4533
|
+
"stickerAdded": "Slayta etkileşimli çıkartma eklendi.",
|
|
4534
|
+
"stickerAddError": "Çıkartma eklenemedi",
|
|
4535
|
+
"stickerRemoved": "Etkileşimli çıkartma kaldırıldı.",
|
|
4536
|
+
"stickerRemoveError": "Çıkartma kaldırılamadı",
|
|
4537
|
+
"productStoryCreated": "Alışveriş yapılabilir hikaye slaytı \"{{title}}\" oluşturuldu."
|
|
4538
|
+
}
|
|
4539
|
+
};
|
|
4540
|
+
// src/admin/i18n/index.ts
|
|
4541
|
+
var i18n_default = {
|
|
4542
|
+
ar: {
|
|
4543
|
+
translation: ar_default,
|
|
4544
|
+
stories: ar_default
|
|
4545
|
+
},
|
|
4546
|
+
de: {
|
|
4547
|
+
translation: de_default,
|
|
4548
|
+
stories: de_default
|
|
4549
|
+
},
|
|
4550
|
+
en: {
|
|
4551
|
+
translation: en_default,
|
|
4552
|
+
stories: en_default
|
|
4553
|
+
},
|
|
4554
|
+
es: {
|
|
4555
|
+
translation: es_default,
|
|
4556
|
+
stories: es_default
|
|
4557
|
+
},
|
|
4558
|
+
fr: {
|
|
4559
|
+
translation: fr_default,
|
|
4560
|
+
stories: fr_default
|
|
4561
|
+
},
|
|
4562
|
+
it: {
|
|
4563
|
+
translation: it_default,
|
|
4564
|
+
stories: it_default
|
|
4565
|
+
},
|
|
4566
|
+
nl: {
|
|
4567
|
+
translation: nl_default,
|
|
4568
|
+
stories: nl_default
|
|
4569
|
+
},
|
|
4570
|
+
pl: {
|
|
4571
|
+
translation: pl_default,
|
|
4572
|
+
stories: pl_default
|
|
4573
|
+
},
|
|
4574
|
+
pt: {
|
|
4575
|
+
translation: pt_default,
|
|
4576
|
+
stories: pt_default
|
|
4577
|
+
},
|
|
4578
|
+
tr: {
|
|
4579
|
+
translation: tr_default,
|
|
4580
|
+
stories: tr_default
|
|
4581
|
+
}
|
|
4582
|
+
};
|
|
4583
|
+
var plugin = {
|
|
4584
|
+
widgetModule: { widgets: [{
|
|
4585
|
+
Component: ProductStoriesWidget,
|
|
4586
|
+
zone: ["product.details.after"],
|
|
4587
|
+
widgetId: "Widget-2e34"
|
|
4588
|
+
}] },
|
|
4589
|
+
routeModule: { routes: [
|
|
4590
|
+
{
|
|
4591
|
+
Component: GuardedStoriesOverviewPage,
|
|
4592
|
+
path: "/stories",
|
|
4593
|
+
handle: {
|
|
4594
|
+
label: config$4.label,
|
|
4595
|
+
translationNs: config$4.translationNs,
|
|
4596
|
+
permissions: config$4.permissions,
|
|
4597
|
+
...handle$4
|
|
4598
|
+
}
|
|
4599
|
+
},
|
|
4600
|
+
{
|
|
4601
|
+
Component: GuardedStoriesAnalyticsPage,
|
|
4602
|
+
path: "/stories/analytics",
|
|
4603
|
+
handle: {
|
|
4604
|
+
label: config$3.label,
|
|
4605
|
+
translationNs: config$3.translationNs,
|
|
4606
|
+
permissions: config$3.permissions,
|
|
4607
|
+
...handle$3
|
|
4608
|
+
}
|
|
4609
|
+
},
|
|
4610
|
+
{
|
|
4611
|
+
Component: GuardedStoriesCanvasPage,
|
|
4612
|
+
path: "/stories/canvas",
|
|
4613
|
+
handle: {
|
|
4614
|
+
label: config$2.label,
|
|
4615
|
+
translationNs: config$2.translationNs,
|
|
4616
|
+
permissions: config$2.permissions,
|
|
4617
|
+
...handle$2
|
|
4618
|
+
}
|
|
4619
|
+
},
|
|
4620
|
+
{
|
|
4621
|
+
Component: GuardedStoriesRingsPage,
|
|
4622
|
+
path: "/stories/rings",
|
|
4623
|
+
handle: {
|
|
4624
|
+
label: config$1.label,
|
|
4625
|
+
translationNs: config$1.translationNs,
|
|
4626
|
+
permissions: config$1.permissions,
|
|
4627
|
+
...handle$1
|
|
4628
|
+
},
|
|
4629
|
+
children: [{
|
|
4630
|
+
Component: GuardedStoryRingCreateDrawer,
|
|
4631
|
+
path: "/stories/rings/create"
|
|
4632
|
+
}]
|
|
4633
|
+
},
|
|
4634
|
+
{
|
|
4635
|
+
Component: GuardedStoriesStickersPage,
|
|
4636
|
+
path: "/stories/stickers",
|
|
4637
|
+
handle: {
|
|
4638
|
+
label: config.label,
|
|
4639
|
+
translationNs: config.translationNs,
|
|
4640
|
+
permissions: config.permissions,
|
|
4641
|
+
...handle
|
|
4642
|
+
}
|
|
4643
|
+
}
|
|
4644
|
+
] },
|
|
4645
|
+
menuItemModule: { menuItems: [
|
|
4646
|
+
{
|
|
4647
|
+
label: config$4.label,
|
|
4648
|
+
icon: config$4.icon,
|
|
4649
|
+
path: "/stories",
|
|
4650
|
+
nested: void 0,
|
|
4651
|
+
rank: void 0,
|
|
4652
|
+
translationNs: config$4.translationNs,
|
|
4653
|
+
permissions: void 0
|
|
4654
|
+
},
|
|
4655
|
+
{
|
|
4656
|
+
label: config$2.label,
|
|
4657
|
+
icon: config$2.icon,
|
|
4658
|
+
path: "/stories/canvas",
|
|
4659
|
+
nested: void 0,
|
|
4660
|
+
rank: void 0,
|
|
4661
|
+
translationNs: config$2.translationNs,
|
|
4662
|
+
permissions: void 0
|
|
4663
|
+
},
|
|
4664
|
+
{
|
|
4665
|
+
label: config$1.label,
|
|
4666
|
+
icon: config$1.icon,
|
|
4667
|
+
path: "/stories/rings",
|
|
4668
|
+
nested: void 0,
|
|
4669
|
+
rank: void 0,
|
|
4670
|
+
translationNs: config$1.translationNs,
|
|
4671
|
+
permissions: void 0
|
|
4672
|
+
},
|
|
4673
|
+
{
|
|
4674
|
+
label: config.label,
|
|
4675
|
+
icon: config.icon,
|
|
4676
|
+
path: "/stories/stickers",
|
|
4677
|
+
nested: void 0,
|
|
4678
|
+
rank: void 0,
|
|
4679
|
+
translationNs: config.translationNs,
|
|
4680
|
+
permissions: void 0
|
|
4681
|
+
},
|
|
4682
|
+
{
|
|
4683
|
+
label: config$3.label,
|
|
4684
|
+
icon: config$3.icon,
|
|
4685
|
+
path: "/stories/analytics",
|
|
4686
|
+
nested: void 0,
|
|
4687
|
+
rank: void 0,
|
|
4688
|
+
translationNs: config$3.translationNs,
|
|
4689
|
+
permissions: void 0
|
|
4690
|
+
}
|
|
4691
|
+
] },
|
|
4692
|
+
formModule: { customFields: {} },
|
|
4693
|
+
displayModule: { displays: {} },
|
|
4694
|
+
i18nModule: { resources: i18n_default },
|
|
4695
|
+
cellRendererModule: {},
|
|
4696
|
+
layoutModule: { layouts: [] },
|
|
4697
|
+
searchEntityModule: {}
|
|
4698
|
+
};
|
|
4699
|
+
module.exports = plugin;
|