@chaibuilder/sdk 4.0.0-beta.3 → 4.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{2SSKDMRQ-BnsZi3K3.cjs → 2SSKDMRQ-BIryEtW-.cjs} +1 -1
- package/dist/{2SSKDMRQ-CnSDkQcy.js → 2SSKDMRQ-trME0kvt.js} +2 -2
- package/dist/{AP7HFJJL-B31839PG.cjs → AP7HFJJL-5ZR38Hyh.cjs} +1 -1
- package/dist/{AP7HFJJL-CymCmW14.js → AP7HFJJL-CAGB9iMp.js} +1 -1
- package/dist/IconPicker-CQ-BgNNU.cjs +1 -0
- package/dist/{IconPicker-B1rWC-Ex.js → IconPicker-Mu75ni5T.js} +8 -7
- package/dist/{WDYDFRGG-BUVnbAci.js → WDYDFRGG-Cd4hRWj-.js} +2 -2
- package/dist/{WDYDFRGG-BxhOCHc3.cjs → WDYDFRGG-n8sBZVFG.cjs} +1 -1
- package/dist/{actions-registery-YnFmU21O.cjs → actions-registery-JdxhXhT6.cjs} +1 -1
- package/dist/{actions-registery-CZ1w0NKa.js → actions-registery-y_ENc8zj.js} +2 -2
- package/dist/actions.cjs +1 -1
- package/dist/actions.js +2 -2
- package/dist/active-in-another-tab-CZLV-uAW.cjs +1 -0
- package/dist/active-in-another-tab-Cb6tnX9u.js +35 -0
- package/dist/{add-new-language-page-WmlCnytQ.js → add-new-language-page-BKcBaqZu.js} +54 -53
- package/dist/add-new-language-page-C3UzNV7W.cjs +1 -0
- package/dist/{add-new-page-soZ8GAkN.cjs → add-new-page-mULv9r3z.cjs} +1 -1
- package/dist/{add-new-page-VW2wAYZp.js → add-new-page-pH3PwqJe.js} +2 -2
- package/dist/ai-panel-content-BPgRdgye.cjs +1 -0
- package/dist/{ai-panel-content-D_o7Q_A-.js → ai-panel-content-CNxN84pv.js} +12 -11
- package/dist/{ai-panel-default-lang-DnElspF0.js → ai-panel-default-lang-CYcHjk8U.js} +40 -40
- package/dist/{ai-panel-default-lang-COYaxNwn.cjs → ai-panel-default-lang-DhTPtPgD.cjs} +2 -2
- package/dist/{ai-panel-other-lang-CkynNlAU.cjs → ai-panel-other-lang-CGNU3-FI.cjs} +1 -1
- package/dist/{ai-panel-other-lang-Dp0E9_Hx.js → ai-panel-other-lang-D8Ofvj8F.js} +8 -8
- package/dist/ai-prompt-input-CUutJjlf.cjs +1 -0
- package/dist/{ai-prompt-input-Bhc0ds7X.js → ai-prompt-input-Ceuy5bs3.js} +68 -67
- package/dist/{ai-translation-prompt-CZ55HQmo.js → ai-translation-prompt-BiepZRcN.js} +2 -2
- package/dist/ai-translation-prompt-CoCPLEed.cjs +1 -0
- package/dist/{apply-binding-6iwlED02.js → apply-binding-BvWfJCSZ.js} +204 -196
- package/dist/apply-binding-IsUf6UWJ.cjs +1 -0
- package/dist/{code-display-DhD_RBcg.js → code-display-Ck81Id9K.js} +1 -1
- package/dist/code-display-DloSPyPr.cjs +1 -0
- package/dist/code-editor-C1ewJzDJ.cjs +1 -0
- package/dist/{code-editor-DRIAnNbb.js → code-editor-Z14ByBIv.js} +11 -10
- package/dist/{continue-editing-in-this-client-CS2aQ7yY.js → continue-editing-in-this-client-Byi6ER3L.js} +10 -9
- package/dist/continue-editing-in-this-client-k9Ab5E63.cjs +1 -0
- package/dist/core-Dr7QYemB.js +56 -0
- package/dist/core-Y0lXLwkq.cjs +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +3 -3
- package/dist/core.js +32 -31
- package/dist/css-import-modal--bSJR-_y.cjs +13 -0
- package/dist/{css-import-modal-Byg6wV0O.js → css-import-modal-De7Kvg5C.js} +4 -3
- package/dist/{delete-design-token-BRZZiWtQ.js → delete-design-token-B97CnFDU.js} +1 -1
- package/dist/{delete-design-token-DkVs1oBf.cjs → delete-design-token-C6s-ESB_.cjs} +1 -1
- package/dist/delete-page-Djn97HiP.cjs +1 -0
- package/dist/{delete-page-BzyX9TN-.js → delete-page-Dnf97ZHP.js} +11 -10
- package/dist/{design-token-usage-xQs6SlaJ.js → design-token-usage-B-SykAjD.js} +14 -13
- package/dist/design-token-usage-OTd93kS8.cjs +1 -0
- package/dist/digital-asset-manager-DHYRXaaq.cjs +1 -0
- package/dist/{digital-asset-manager-DbtwzxRz.js → digital-asset-manager-b8gDuLnI.js} +6 -5
- package/dist/{duplicate-page-BR7Dlo9d.js → duplicate-page-Bdtpl7_R.js} +19 -18
- package/dist/duplicate-page-C4Ovp8Ff.cjs +1 -0
- package/dist/dynamic-page-selector-B8DdnfrF.cjs +1 -0
- package/dist/{dynamic-page-selector-Cb5r_W8s.js → dynamic-page-selector-BVnIM1Rq.js} +15 -14
- package/dist/get-chai-builder-tailwind-config-DNp8Vhme.cjs +1 -0
- package/dist/{get-chai-builder-tailwind-config-DjoVOuAf.js → get-chai-builder-tailwind-config-k8l5sdcw.js} +5 -5
- package/dist/{get-chai-builder-theme-Dl72X7cz.cjs → get-chai-builder-theme-BApShjRz.cjs} +1 -1
- package/dist/{get-chai-builder-theme-BYtp20KD.js → get-chai-builder-theme-DDVRJQ6Z.js} +1 -1
- package/dist/{image-editor-G-K28aTS.cjs → image-editor-C2zOHeKv.cjs} +1 -1
- package/dist/{image-editor-DV8kUKhl.js → image-editor-cckqPmk5.js} +1 -1
- package/dist/index-B0e71wJ1.cjs +160 -0
- package/dist/{index-ZuacEL1j.js → index-Bn0fFN58.js} +665 -663
- package/dist/{index-Ct7ElCGK.js → index-CAhEmHYP.js} +3744 -3920
- package/dist/index-DKuwxj1x.cjs +5 -0
- package/dist/{json-diff-viewer-D7z4zNvv.cjs → json-diff-viewer-D9DVIBz4.cjs} +3 -3
- package/dist/{json-diff-viewer-krslPepD.js → json-diff-viewer-DNizzMnu.js} +5 -4
- package/dist/lang-panel-C1dbn163.cjs +1 -0
- package/dist/{lang-panel-BwIewMyw.js → lang-panel-DL_BtSRD.js} +15 -14
- package/dist/manage-design-tokens-CXjYkarE.cjs +1 -0
- package/dist/{manage-design-tokens-Caz_20VK.js → manage-design-tokens-xxMO_RYg.js} +12 -11
- package/dist/{mark-as-template-D295ZQtU.js → mark-as-template-Ba2bmVd9.js} +17 -16
- package/dist/mark-as-template-DF1KIMr0.cjs +1 -0
- package/dist/{nested-path-selector-content-CKYYK-C5.js → nested-path-selector-content-Br1IWhK5.js} +24 -23
- package/dist/nested-path-selector-content-Cuk7NB-u.cjs +1 -0
- package/dist/{no-language-page-content-BvqRBP6y.js → no-language-page-content-9B2Fm-on.js} +10 -9
- package/dist/no-language-page-content-CxTp-LIM.cjs +1 -0
- package/dist/{no-language-page-dialog-PjNqTUpl.js → no-language-page-dialog-CPlKMyb8.js} +2 -2
- package/dist/{no-language-page-dialog-BcEoqyQB.cjs → no-language-page-dialog-DynACvgV.cjs} +1 -1
- package/dist/{page-creator-DiOITEMw.js → page-creator-BtyJz2sx.js} +115 -114
- package/dist/page-creator-Cbfv9N0P.cjs +1 -0
- package/dist/{page-lock-Bfbs6RgL.js → page-lock-CzsxrmN5.js} +2 -2
- package/dist/{page-lock-BdYmCks0.cjs → page-lock-fRos9wRU.cjs} +1 -1
- package/dist/{page-locked-dialog-B6MKTRfY.js → page-locked-dialog-D2q9qkPk.js} +18 -15
- package/dist/page-locked-dialog-D57d2gvn.cjs +1 -0
- package/dist/{page-manager-new-CzX22g2n.js → page-manager-new-D6DVIx2S.js} +30 -29
- package/dist/page-manager-new-aE198gKS.cjs +1 -0
- package/dist/{page-manager-search-and-filter-CM0UMb6U.js → page-manager-search-and-filter-CuZkQaZg.js} +13 -12
- package/dist/page-manager-search-and-filter-DGQEgKzy.cjs +1 -0
- package/dist/{page-revisions-content-NH9JK4Ey.js → page-revisions-content-5rbicFbD.js} +34 -31
- package/dist/page-revisions-content-CefqOvKX.cjs +1 -0
- package/dist/pages.cjs +1 -1
- package/dist/pages.d.ts +4 -4
- package/dist/pages.js +1 -1
- package/dist/{plugin-C6rgJDNQ.cjs → plugin-BGlQf0iy.cjs} +1 -1
- package/dist/{plugin-3ZKK6RXm.js → plugin-C-ht41UZ.js} +1 -1
- package/dist/publish-pages-content-DBb8M3TG.cjs +1 -0
- package/dist/{publish-pages-content-D9aixMN5.js → publish-pages-content-WeGk-YLC.js} +66 -65
- package/dist/register-chai-top-bar-BqwKw4uy.cjs +1 -0
- package/dist/register-chai-top-bar-ESJHs5s-.js +237 -0
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +2 -2
- package/dist/render.js +87 -80
- package/dist/rte-widget-modal-DBoPRXq-.cjs +1 -0
- package/dist/{rte-widget-modal-DOJEXLIf.js → rte-widget-modal-J-_AytmK.js} +15 -14
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.d.ts +168 -4
- package/dist/runtime.js +68 -38
- package/dist/save-to-lib-0ysmXVbI.cjs +1 -0
- package/dist/{save-to-lib-eiOc_SSN.js → save-to-lib-CQQxoovF.js} +39 -38
- package/dist/sdk.css +1 -1
- package/dist/selected-block-display-BWupQFoQ.cjs +16 -0
- package/dist/{selected-block-display-CBFePS19.js → selected-block-display-CgoXS8Hr.js} +37 -36
- package/dist/{seo-panel-C1-iMOR1.js → seo-panel-B798Myp_.js} +12 -11
- package/dist/seo-panel-BkFbXIL0.cjs +2 -0
- package/dist/{shared-json-ld-B4PxAM_0.js → shared-json-ld-Clg_UEhd.js} +68 -67
- package/dist/shared-json-ld-Cn3MCW6I.cjs +1 -0
- package/dist/slug-input-BHyD8cxk.cjs +1 -0
- package/dist/{slug-input-AwNJs9im.js → slug-input-hX5VaZpj.js} +9 -8
- package/dist/supabase-actions.cjs +1 -1
- package/dist/supabase-actions.d.ts +1 -1
- package/dist/supabase-actions.js +1 -1
- package/dist/take-over-request-Dzczo20q.cjs +1 -0
- package/dist/{take-over-request-C4FeDtN_.js → take-over-request-s1L5Yofb.js} +17 -16
- package/dist/theme-panel-footer-NTNCL0SW.cjs +1 -0
- package/dist/{theme-panel-footer-uBQqSJXm.js → theme-panel-footer-sK6bYhEb.js} +11 -10
- package/dist/translation-warning-modal-BfM4HGck.cjs +1 -0
- package/dist/{translation-warning-modal-B64YqlbI.js → translation-warning-modal-Jadkcver.js} +9 -8
- package/dist/unmark-as-template-CqkHI3gR.cjs +1 -0
- package/dist/{unmark-as-template-CZ9sQp_P.js → unmark-as-template-D5b775eR.js} +11 -10
- package/dist/unpublish-page-BT5bCfs6.cjs +1 -0
- package/dist/unpublish-page-DLLLgY43.js +28 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +3 -0
- package/dist/utils.js +2 -2
- package/dist/web-blocks.cjs +1 -1
- package/dist/web-blocks.js +5 -5
- package/dist/{web-preview-Djy6WIyj.js → web-preview-C_yFwxEe.js} +2 -2
- package/dist/web-preview-DU1MgppY.cjs +1 -0
- package/package.json +4 -2
- package/dist/IconPicker-DREyo007.cjs +0 -1
- package/dist/active-in-another-tab-B47YjQGN.cjs +0 -1
- package/dist/active-in-another-tab-CyjngVA6.js +0 -34
- package/dist/add-new-language-page-88xzrUy8.cjs +0 -1
- package/dist/ai-panel-content-7zCil042.cjs +0 -1
- package/dist/ai-prompt-input-CThbVp0_.cjs +0 -1
- package/dist/ai-translation-prompt-C2kJQFDX.cjs +0 -1
- package/dist/apply-binding-KKp5PnpZ.cjs +0 -1
- package/dist/code-display-BnqzqzoP.cjs +0 -1
- package/dist/code-editor-o3___nu2.cjs +0 -1
- package/dist/continue-editing-in-this-client-CtMYsk-A.cjs +0 -1
- package/dist/core-BoRDjj4h.cjs +0 -1
- package/dist/core-yvI6kCyw.js +0 -56
- package/dist/css-import-modal-CyqkXWCO.cjs +0 -13
- package/dist/delete-page-DxX7PFIE.cjs +0 -1
- package/dist/design-token-usage-CAHzEGgJ.cjs +0 -1
- package/dist/digital-asset-manager--uO8Agia.cjs +0 -1
- package/dist/duplicate-page-CaNAbXwV.cjs +0 -1
- package/dist/dynamic-page-selector-Cxk_gjni.cjs +0 -1
- package/dist/get-chai-builder-tailwind-config-B9rCyiQo.cjs +0 -1
- package/dist/index-DF5DEvqb.cjs +0 -160
- package/dist/index-WQwzsC7A.cjs +0 -5
- package/dist/lang-panel-DT96k1xg.cjs +0 -1
- package/dist/manage-design-tokens-CrmLe7UT.cjs +0 -1
- package/dist/mark-as-template-W3LmpiqN.cjs +0 -1
- package/dist/nested-path-selector-content-CoS_d3dc.cjs +0 -1
- package/dist/no-language-page-content-DkfeMl90.cjs +0 -1
- package/dist/page-creator-C4gc5NSC.cjs +0 -1
- package/dist/page-locked-dialog-B1FAtK92.cjs +0 -1
- package/dist/page-manager-new-CHDueBDk.cjs +0 -1
- package/dist/page-manager-search-and-filter-DkkRIH86.cjs +0 -1
- package/dist/page-revisions-content-ChY-4f2V.cjs +0 -1
- package/dist/publish-pages-content-x-JuSFJ9.cjs +0 -1
- package/dist/rte-widget-modal-BaHIuEjF.cjs +0 -1
- package/dist/save-to-lib-Cgpxw8-g.cjs +0 -1
- package/dist/selected-block-display-BgRY82CT.cjs +0 -16
- package/dist/seo-panel-DfAb8U7W.cjs +0 -2
- package/dist/shared-json-ld-DzG398hr.cjs +0 -1
- package/dist/slug-input-C_ijLQ_X.cjs +0 -1
- package/dist/take-over-request-BNxcjY2j.cjs +0 -1
- package/dist/theme-panel-footer-Cq9pljro.cjs +0 -1
- package/dist/translation-warning-modal-BZAcwM2_.cjs +0 -1
- package/dist/unmark-as-template-EVvk0vmp.cjs +0 -1
- package/dist/unpublish-page-D4VwOlxc.js +0 -27
- package/dist/unpublish-page-bdSmwAVQ.cjs +0 -1
- package/dist/web-preview-Cio70gk5.cjs +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a, Fragment as Q } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { z, B as u } from "./register-chai-top-bar-ESJHs5s-.js";
|
|
3
|
+
import { a0 as _, a1 as H, a2 as K, L as X, a3 as q, a4 as J, a5 as Y } from "./index-CAhEmHYP.js";
|
|
4
|
+
import { D as ee } from "./apply-binding-BvWfJCSZ.js";
|
|
4
5
|
import { MagnifyingGlassIcon as L, PlusIcon as O, TokensIcon as te, ArrowLeftIcon as ne, EyeOpenIcon as se, Pencil1Icon as re, TrashIcon as ae } from "@radix-ui/react-icons";
|
|
5
6
|
import { useAtom as oe } from "jotai";
|
|
6
7
|
import { nanoid as ie } from "nanoid";
|
|
@@ -16,7 +17,7 @@ const S = (n) => {
|
|
|
16
17
|
return m.length === 0 ? "" : m.length > 25 ? o("Token name must be 25 characters or less") : /^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$/.test(m) ? Object.entries(s).find(
|
|
17
18
|
([l, v]) => v.name === m && (!d || l !== i)
|
|
18
19
|
) ? o("Token name already exists") : "" : o("Only alphanumeric characters and hyphens allowed");
|
|
19
|
-
}, xe = (n) => n.replace(/\s+/g, "-"), ge = M(() => import("./delete-design-token-
|
|
20
|
+
}, xe = (n) => n.replace(/\s+/g, "-"), ge = M(() => import("./delete-design-token-B97CnFDU.js")), pe = M(() => import("./design-token-usage-B-SykAjD.js")), ve = ({ tokenId: n, token: s, isDisabled: o, onEdit: d, onDelete: i }) => /* @__PURE__ */ a("div", { className: "group relative flex items-center justify-between overflow-hidden rounded border p-2 transition-all duration-150 hover:bg-muted/90", children: [
|
|
20
21
|
/* @__PURE__ */ a("div", { className: "min-w-0 flex-1 overflow-hidden", children: [
|
|
21
22
|
/* @__PURE__ */ e("div", { className: "text-xs font-semibold", children: s.name }),
|
|
22
23
|
/* @__PURE__ */ e("div", { className: "w-full max-w-52 truncate text-[10px] font-light", children: s.value })
|
|
@@ -53,7 +54,7 @@ const S = (n) => {
|
|
|
53
54
|
}
|
|
54
55
|
) }) })
|
|
55
56
|
] })
|
|
56
|
-
] }),
|
|
57
|
+
] }), Le = ({}) => {
|
|
57
58
|
const { t: n } = ue(), [s, o] = oe(_), d = H(), [i, m] = g("view"), [p, k] = g(null), [l, v] = g(""), [h, b] = g(""), [T, y] = g(""), [w, P] = g(""), [B, C] = g(!1), f = le(null), D = ce(() => Object.entries(s).filter(
|
|
58
59
|
([, t]) => t.name.toLowerCase().includes(w.toLowerCase()) || t.value.toLowerCase().includes(w.toLowerCase())
|
|
59
60
|
), [s, w]);
|
|
@@ -103,7 +104,7 @@ const S = (n) => {
|
|
|
103
104
|
}, W = (t) => {
|
|
104
105
|
const r = s[t];
|
|
105
106
|
r && (k(t), v(r.name), b(r.value), y(""), m("edit"));
|
|
106
|
-
},
|
|
107
|
+
}, E = () => {
|
|
107
108
|
k(null), v(""), b(""), y(""), m("add");
|
|
108
109
|
}, A = () => {
|
|
109
110
|
f.current && clearTimeout(f.current), k(null), v(""), b(""), y(""), C(!1), m("view");
|
|
@@ -112,14 +113,14 @@ const S = (n) => {
|
|
|
112
113
|
v(r);
|
|
113
114
|
const c = fe(r, s, n, i === "edit", p || void 0);
|
|
114
115
|
y(c), i === "edit" && !c && j(r, h);
|
|
115
|
-
},
|
|
116
|
+
}, I = (t) => {
|
|
116
117
|
b(t), i === "edit" && !T && l.trim() && j(l, t);
|
|
117
118
|
}, $ = (t) => {
|
|
118
119
|
const r = J(Y(he(h, t)));
|
|
119
|
-
|
|
120
|
+
I(r);
|
|
120
121
|
}, G = (t) => {
|
|
121
122
|
const r = h.split(" ").filter((c) => c !== t).join(" ");
|
|
122
|
-
|
|
123
|
+
I(r);
|
|
123
124
|
};
|
|
124
125
|
return /* @__PURE__ */ e("div", { className: "flex h-full w-full flex-col", children: i === "view" ? /* @__PURE__ */ a(Q, { children: [
|
|
125
126
|
Object.entries(s).length > 0 && /* @__PURE__ */ a("div", { className: "flex items-center justify-between gap-x-2", children: [
|
|
@@ -139,7 +140,7 @@ const S = (n) => {
|
|
|
139
140
|
u,
|
|
140
141
|
{
|
|
141
142
|
variant: "outline",
|
|
142
|
-
onClick:
|
|
143
|
+
onClick: E,
|
|
143
144
|
size: "sm",
|
|
144
145
|
className: "h-6 border-primary text-xs text-primary hover:bg-primary/10 hover:text-primary",
|
|
145
146
|
children: [
|
|
@@ -154,7 +155,7 @@ const S = (n) => {
|
|
|
154
155
|
/* @__PURE__ */ e("div", { className: "mb-2 text-3xl", children: /* @__PURE__ */ e(te, { className: "h-12 w-12 text-muted-foreground" }) }),
|
|
155
156
|
/* @__PURE__ */ e("p", { className: "mb-1 text-sm font-medium text-foreground", children: n("No design tokens yet") }),
|
|
156
157
|
/* @__PURE__ */ e("p", { className: "text-center text-xs text-muted-foreground", children: n("Create reusable design tokens to streamline your styling") }),
|
|
157
|
-
/* @__PURE__ */ a(u, { variant: "default", onClick:
|
|
158
|
+
/* @__PURE__ */ a(u, { variant: "default", onClick: E, size: "sm", className: "mt-4 h-7 text-xs leading-tight", children: [
|
|
158
159
|
/* @__PURE__ */ e(O, { className: "mr-1 h-3 w-3" }),
|
|
159
160
|
n("Add first design token")
|
|
160
161
|
] })
|
|
@@ -236,5 +237,5 @@ const S = (n) => {
|
|
|
236
237
|
})() });
|
|
237
238
|
};
|
|
238
239
|
export {
|
|
239
|
-
|
|
240
|
+
Le as default
|
|
240
241
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { z, B as c } from "./register-chai-top-bar-ESJHs5s-.js";
|
|
3
|
+
import { D as L, d as P, e as B, f as E, p as S, L as w, T as U, q as R } from "./index-CAhEmHYP.js";
|
|
4
|
+
import { q as j, m as O } from "./index-Bn0fFN58.js";
|
|
4
5
|
import { startCase as y } from "lodash-es";
|
|
5
6
|
import { Tag as q, File as X, ImageIcon as _, X as $ } from "lucide-react";
|
|
6
|
-
import { useState as
|
|
7
|
+
import { useState as m, useRef as H, useCallback as K } from "react";
|
|
7
8
|
import { useTranslation as Z } from "react-i18next";
|
|
8
9
|
import { toast as k } from "sonner";
|
|
9
|
-
const G = 1 * 1024 * 1024,
|
|
10
|
-
const { t: a } = Z(), [g, p] =
|
|
10
|
+
const G = 1 * 1024 * 1024, re = ({ page: n, onClose: d }) => {
|
|
11
|
+
const { t: a } = Z(), [g, p] = m(!1), [x, T] = m(""), [l, N] = m(""), [v, u] = m(!1), i = H(null), I = j(), { data: h } = O(), f = h == null ? void 0 : h.find((s) => s.key === n.pageType), C = (f == null ? void 0 : f.name) || y(n.pageType), D = K(
|
|
11
12
|
(s) => {
|
|
12
13
|
var b;
|
|
13
14
|
const o = (b = s.target.files) == null ? void 0 : b[0];
|
|
@@ -38,7 +39,7 @@ const G = 1 * 1024 * 1024, se = ({ page: n, onClose: m }) => {
|
|
|
38
39
|
var s;
|
|
39
40
|
(s = i.current) == null || s.click();
|
|
40
41
|
}, A = () => {
|
|
41
|
-
p(!0),
|
|
42
|
+
p(!0), I.mutate(
|
|
42
43
|
{
|
|
43
44
|
page: n,
|
|
44
45
|
name: n.name,
|
|
@@ -48,7 +49,7 @@ const G = 1 * 1024 * 1024, se = ({ page: n, onClose: m }) => {
|
|
|
48
49
|
},
|
|
49
50
|
{
|
|
50
51
|
onSuccess: () => {
|
|
51
|
-
p(!1),
|
|
52
|
+
p(!1), d();
|
|
52
53
|
},
|
|
53
54
|
onError: () => {
|
|
54
55
|
p(!1);
|
|
@@ -56,10 +57,10 @@ const G = 1 * 1024 * 1024, se = ({ page: n, onClose: m }) => {
|
|
|
56
57
|
}
|
|
57
58
|
);
|
|
58
59
|
};
|
|
59
|
-
return /* @__PURE__ */ e(L, { open: !0, onOpenChange:
|
|
60
|
-
/* @__PURE__ */ t(
|
|
61
|
-
/* @__PURE__ */ e(
|
|
62
|
-
/* @__PURE__ */ t(
|
|
60
|
+
return /* @__PURE__ */ e(L, { open: !0, onOpenChange: d, children: /* @__PURE__ */ t(P, { children: [
|
|
61
|
+
/* @__PURE__ */ t(B, { children: [
|
|
62
|
+
/* @__PURE__ */ e(E, { children: a("Mark as template") }),
|
|
63
|
+
/* @__PURE__ */ t(S, { className: "space-y-1 py-4 text-xs text-slate-500", children: [
|
|
63
64
|
a("Are you sure you want to mark this page as a template?"),
|
|
64
65
|
/* @__PURE__ */ e("br", {}),
|
|
65
66
|
a("Templates can be used to create new pages with the same content.")
|
|
@@ -87,13 +88,13 @@ const G = 1 * 1024 * 1024, se = ({ page: n, onClose: m }) => {
|
|
|
87
88
|
/* @__PURE__ */ t("div", { children: [
|
|
88
89
|
/* @__PURE__ */ e(w, { htmlFor: "description", className: "text-xs font-medium", children: a("Description (Optional)") }),
|
|
89
90
|
/* @__PURE__ */ e(
|
|
90
|
-
|
|
91
|
+
U,
|
|
91
92
|
{
|
|
92
93
|
id: "description",
|
|
93
94
|
placeholder: a("Describe this template's purpose"),
|
|
94
95
|
className: "mt-1 h-24 resize-none text-xs",
|
|
95
96
|
value: x,
|
|
96
|
-
onChange: (s) =>
|
|
97
|
+
onChange: (s) => T(s.target.value)
|
|
97
98
|
}
|
|
98
99
|
)
|
|
99
100
|
] }),
|
|
@@ -102,7 +103,7 @@ const G = 1 * 1024 * 1024, se = ({ page: n, onClose: m }) => {
|
|
|
102
103
|
/* @__PURE__ */ t("div", { className: "space-y-2", children: [
|
|
103
104
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
|
|
104
105
|
/* @__PURE__ */ e(
|
|
105
|
-
|
|
106
|
+
z,
|
|
106
107
|
{
|
|
107
108
|
type: "file",
|
|
108
109
|
id: "previewImage",
|
|
@@ -142,7 +143,7 @@ const G = 1 * 1024 * 1024, se = ({ page: n, onClose: m }) => {
|
|
|
142
143
|
{
|
|
143
144
|
variant: "outline",
|
|
144
145
|
onClick: (s) => {
|
|
145
|
-
s.stopPropagation(),
|
|
146
|
+
s.stopPropagation(), d();
|
|
146
147
|
},
|
|
147
148
|
children: a("Cancel")
|
|
148
149
|
}
|
|
@@ -152,5 +153,5 @@ const G = 1 * 1024 * 1024, se = ({ page: n, onClose: m }) => {
|
|
|
152
153
|
] }) });
|
|
153
154
|
};
|
|
154
155
|
export {
|
|
155
|
-
|
|
156
|
+
re as default
|
|
156
157
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("./register-chai-top-bar-BqwKw4uy.cjs"),t=require("./index-B0e71wJ1.cjs"),y=require("./index-DKuwxj1x.cjs"),w=require("lodash-es"),m=require("lucide-react"),l=require("react"),M=require("react-i18next"),k=require("sonner"),B=1*1024*1024,A=({page:r,onClose:u})=>{const{t:s}=M.useTranslation(),[f,p]=l.useState(!1),[j,T]=l.useState(""),[c,N]=l.useState(""),[v,x]=l.useState(!1),i=l.useRef(null),C=y.useMarkAsTemplate(),{data:h}=y.usePageTypes(),g=h==null?void 0:h.find(a=>a.key===r.pageType),I=(g==null?void 0:g.name)||w.startCase(r.pageType),D=l.useCallback(a=>{var b;const d=(b=a.target.files)==null?void 0:b[0];if(d){if(d.size>B){k.toast.error(s("File too large"),{description:`${s("Maximum file size is 1MB. Selected file is")} ${(d.size/1024).toFixed(2)}KB.`}),i.current&&(i.current.value="");return}try{x(!0);const n=new FileReader;n.onloadend=()=>{N(n.result),x(!1)},n.readAsDataURL(d)}catch(n){console.error("Error reading file:",n),x(!1),k.toast.error(s("Failed to process image"),{description:n instanceof Error?n.message:s("Unknown error")})}}},[s]),F=()=>{N(""),i.current&&(i.current.value="")},S=()=>{var a;(a=i.current)==null||a.click()},q=()=>{p(!0),C.mutate({page:r,name:r.name,description:j.trim()||void 0,pageType:r.pageType,...c?{previewImage:c}:{}},{onSuccess:()=>{p(!1),u()},onError:()=>{p(!1)}})};return e.jsx(t.Dialog,{open:!0,onOpenChange:u,children:e.jsxs(t.DialogContent,{children:[e.jsxs(t.DialogHeader,{children:[e.jsx(t.DialogTitle,{children:s("Mark as template")}),e.jsxs(t.DialogDescription,{className:"space-y-1 py-4 text-xs text-slate-500",children:[s("Are you sure you want to mark this page as a template?"),e.jsx("br",{}),s("Templates can be used to create new pages with the same content.")]})]}),e.jsxs("div",{className:"mb-4 space-y-4 text-xs",children:[e.jsxs("div",{className:"space-y-3 rounded border bg-slate-50 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(m.Tag,{className:"h-4 w-4 text-slate-500"}),e.jsxs("span",{className:"font-medium text-slate-500",children:[s("Page Name"),":"]}),e.jsx("span",{className:"font-semibold",children:w.startCase(r.name)})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(m.File,{className:"h-4 w-4 text-slate-500"}),e.jsxs("span",{className:"font-medium text-slate-500",children:[s("Type"),":"]}),e.jsx("span",{className:"font-semibold",children:I})]})]}),e.jsxs("div",{children:[e.jsx(t.Label,{htmlFor:"description",className:"text-xs font-medium",children:s("Description (Optional)")}),e.jsx(t.Textarea,{id:"description",placeholder:s("Describe this template's purpose"),className:"mt-1 h-24 resize-none text-xs",value:j,onChange:a=>T(a.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(t.Label,{htmlFor:"previewImage",className:"text-xs font-medium",children:s("Preview Image (Optional)")}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(o.Input,{type:"file",id:"previewImage",ref:i,onChange:D,accept:"image/*",className:"hidden"}),e.jsx(o.Button,{type:"button",variant:"outline",onClick:S,disabled:v,className:"w-full",children:v?e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent"}),s("Uploading...")]}):e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(m.ImageIcon,{className:"h-4 w-4"}),s("Select image")]})}),c&&e.jsx(o.Button,{type:"button",variant:"outline",size:"icon",onClick:F,children:e.jsx(m.X,{className:"h-4 w-4"})})]}),c&&e.jsx("div",{className:"aspect-video overflow-hidden rounded-md border",children:e.jsx("img",{src:c,alt:s("Preview"),className:"h-full max-h-[200px] w-full object-contain"})}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("max 1mb")})]})]})]}),e.jsxs(t.DialogFooter,{className:f?"pointer-events-none opacity-75":"",children:[e.jsx(o.Button,{variant:"outline",onClick:a=>{a.stopPropagation(),u()},children:s("Cancel")}),e.jsx(o.Button,{variant:"default",disabled:f,onClick:q,children:s("Mark as template")})]})]})})};exports.default=A;
|
package/dist/{nested-path-selector-content-CKYYK-C5.js → nested-path-selector-content-Br1IWhK5.js}
RENAMED
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
import { jsx as c, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { ChevronLeft as
|
|
2
|
+
import { ChevronLeft as v, ChevronRight as g } from "lucide-react";
|
|
3
3
|
import * as l from "react";
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import { B as k } from "./register-chai-top-bar-ESJHs5s-.js";
|
|
5
|
+
import { P as N, C as x, i as P, j as S, k as w, l as B, m as d } from "./index-CAhEmHYP.js";
|
|
6
|
+
function I({
|
|
6
7
|
data: o,
|
|
7
|
-
onSelect:
|
|
8
|
+
onSelect: m,
|
|
8
9
|
dataType: t = "value",
|
|
9
|
-
open:
|
|
10
|
-
setOpen:
|
|
10
|
+
open: h,
|
|
11
|
+
setOpen: u
|
|
11
12
|
}) {
|
|
12
|
-
const [s, i] = l.useState([]), [y,
|
|
13
|
+
const [s, i] = l.useState([]), [y, f] = l.useState(o);
|
|
13
14
|
l.useEffect(() => {
|
|
14
|
-
|
|
15
|
-
}, [o,
|
|
15
|
+
h || i([]), f(o);
|
|
16
|
+
}, [o, h]);
|
|
16
17
|
const b = (e) => Array.isArray(e) ? "array" : typeof e == "object" && e !== null ? "object" : "value", j = l.useCallback(
|
|
17
18
|
(e) => {
|
|
18
19
|
const r = (a) => t === "value" ? a === "value" || a === "object" : t === "array" ? a === "array" : a === t;
|
|
19
|
-
e.type === "object" ? (i((a) => [...a, e.key]),
|
|
20
|
+
e.type === "object" ? (i((a) => [...a, e.key]), f(e.value)) : r(e.type) && (m([...s, e.key].join(".")), u(!1));
|
|
20
21
|
},
|
|
21
|
-
[t,
|
|
22
|
+
[t, m, s, u]
|
|
22
23
|
), C = l.useCallback(() => {
|
|
23
24
|
if (s.length > 0) {
|
|
24
25
|
const e = s.slice(0, -1);
|
|
25
|
-
i(e),
|
|
26
|
+
i(e), f(e.reduce((r, a) => r[a], o));
|
|
26
27
|
}
|
|
27
|
-
}, [s, o]),
|
|
28
|
+
}, [s, o]), p = l.useMemo(() => Object.entries(y).map(([e, r]) => ({
|
|
28
29
|
key: e,
|
|
29
30
|
value: r,
|
|
30
31
|
type: b(r)
|
|
31
32
|
})).filter((e) => t === "value" ? e.type === "value" || e.type === "object" : t === "array" ? e.type === "array" || e.type === "object" : t === "object" ? e.type === "object" : !0), [y, t]);
|
|
32
|
-
return /* @__PURE__ */ c(
|
|
33
|
-
/* @__PURE__ */ c(
|
|
33
|
+
return /* @__PURE__ */ c(N, { className: "z-[9999] w-[200px] p-0", children: /* @__PURE__ */ n(x, { children: [
|
|
34
|
+
/* @__PURE__ */ c(P, { className: "border-none", placeholder: "Search..." }),
|
|
34
35
|
/* @__PURE__ */ n(
|
|
35
|
-
|
|
36
|
+
S,
|
|
36
37
|
{
|
|
37
38
|
onWheel: (e) => {
|
|
38
39
|
try {
|
|
@@ -44,13 +45,13 @@ function E({
|
|
|
44
45
|
}
|
|
45
46
|
},
|
|
46
47
|
children: [
|
|
47
|
-
/* @__PURE__ */ c(
|
|
48
|
-
/* @__PURE__ */ n(
|
|
48
|
+
/* @__PURE__ */ c(w, { children: "No option found." }),
|
|
49
|
+
/* @__PURE__ */ n(B, { children: [
|
|
49
50
|
s.length > 0 && /* @__PURE__ */ n(d, { onSelect: C, className: "flex items-center text-sm", children: [
|
|
50
|
-
/* @__PURE__ */ c(
|
|
51
|
+
/* @__PURE__ */ c(v, { className: "mr-2 h-4 w-4" }),
|
|
51
52
|
"Back"
|
|
52
53
|
] }),
|
|
53
|
-
|
|
54
|
+
p.map((e) => /* @__PURE__ */ n(
|
|
54
55
|
d,
|
|
55
56
|
{
|
|
56
57
|
onSelect: () => j(e),
|
|
@@ -59,13 +60,13 @@ function E({
|
|
|
59
60
|
/* @__PURE__ */ c("span", { children: e.key }),
|
|
60
61
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
61
62
|
t === "object" && e.type === "object" && /* @__PURE__ */ c(
|
|
62
|
-
|
|
63
|
+
k,
|
|
63
64
|
{
|
|
64
65
|
size: "sm",
|
|
65
66
|
variant: "ghost",
|
|
66
67
|
className: "h-6 px-2 hover:bg-primary hover:text-primary-foreground",
|
|
67
68
|
onClick: (r) => {
|
|
68
|
-
r.stopPropagation(),
|
|
69
|
+
r.stopPropagation(), m([...s, e.key].join(".")), u(!1);
|
|
69
70
|
},
|
|
70
71
|
children: "Select"
|
|
71
72
|
}
|
|
@@ -83,5 +84,5 @@ function E({
|
|
|
83
84
|
] }) });
|
|
84
85
|
}
|
|
85
86
|
export {
|
|
86
|
-
|
|
87
|
+
I as default
|
|
87
88
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),d=require("lucide-react"),p=require("react"),v=require("./register-chai-top-bar-BqwKw4uy.cjs"),a=require("./index-B0e71wJ1.cjs");function C(c){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const r in c)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(c,r);Object.defineProperty(l,r,i.get?i:{enumerable:!0,get:()=>c[r]})}}return l.default=c,Object.freeze(l)}const o=C(p);function N({data:c,onSelect:l,dataType:r="value",open:i,setOpen:m}){const[u,f]=o.useState([]),[h,j]=o.useState(c);o.useEffect(()=>{i||f([]),j(c)},[c,i]);const b=e=>Array.isArray(e)?"array":typeof e=="object"&&e!==null?"object":"value",y=o.useCallback(e=>{const n=s=>r==="value"?s==="value"||s==="object":r==="array"?s==="array":s===r;e.type==="object"?(f(s=>[...s,e.key]),j(e.value)):n(e.type)&&(l([...u,e.key].join(".")),m(!1))},[r,l,u,m]),x=o.useCallback(()=>{if(u.length>0){const e=u.slice(0,-1);f(e),j(e.reduce((n,s)=>n[s],c))}},[u,c]),g=o.useMemo(()=>Object.entries(h).map(([e,n])=>({key:e,value:n,type:b(n)})).filter(e=>r==="value"?e.type==="value"||e.type==="object":r==="array"?e.type==="array"||e.type==="object":r==="object"?e.type==="object":!0),[h,r]);return t.jsx(a.PopoverContent,{className:"z-[9999] w-[200px] p-0",children:t.jsxs(a.Command,{children:[t.jsx(a.CommandInput,{className:"border-none",placeholder:"Search..."}),t.jsxs(a.CommandList,{onWheel:e=>{try{e.preventDefault();const n=e.currentTarget;n.scrollTop+=e.deltaY}catch{e.preventDefault()}},children:[t.jsx(a.CommandEmpty,{children:"No option found."}),t.jsxs(a.CommandGroup,{children:[u.length>0&&t.jsxs(a.CommandItem,{onSelect:x,className:"flex items-center text-sm",children:[t.jsx(d.ChevronLeft,{className:"mr-2 h-4 w-4"}),"Back"]}),g.map(e=>t.jsxs(a.CommandItem,{onSelect:()=>y(e),className:"flex items-center justify-between",children:[t.jsx("span",{children:e.key}),t.jsxs("div",{className:"flex items-center gap-2",children:[r==="object"&&e.type==="object"&&t.jsx(v.Button,{size:"sm",variant:"ghost",className:"h-6 px-2 hover:bg-primary hover:text-primary-foreground",onClick:n=>{n.stopPropagation(),l([...u,e.key].join(".")),m(!1)},children:"Select"}),(e.type==="object"||e.type==="array")&&t.jsx("div",{className:"cursor-pointer rounded p-1 hover:bg-muted",children:t.jsx(d.ChevronRight,{className:"h-4 w-4 opacity-50"})})]})]},e.key))]})]})]})})}exports.default=N;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { B as h } from "./register-chai-top-bar-ESJHs5s-.js";
|
|
3
|
+
import { n as u, R as w, U as p, V as f, W as P, X as C } from "./index-CAhEmHYP.js";
|
|
4
|
+
import { c as S, d as L, L as x, B as N } from "./index-Bn0fFN58.js";
|
|
4
5
|
import { get as v } from "lodash-es";
|
|
5
6
|
import { LockIcon as B } from "lucide-react";
|
|
6
7
|
import { useTranslation as E } from "react-i18next";
|
|
7
8
|
const A = () => {
|
|
8
|
-
const { t: a } = E(), [c, l] = S(), r = c.get("lang"), i = L(r), { setSelectedLang: g } =
|
|
9
|
+
const { t: a } = E(), [c, l] = S(), r = c.get("lang"), i = L(r), { setSelectedLang: g } = u(), m = () => {
|
|
9
10
|
const n = new URLSearchParams(window.location.search);
|
|
10
11
|
n.delete("lang");
|
|
11
|
-
const o = n.toString(),
|
|
12
|
-
window.history.pushState({}, "",
|
|
12
|
+
const o = n.toString(), d = `${window.location.pathname}${o ? `?${o}` : ""}`;
|
|
13
|
+
window.history.pushState({}, "", d), l(n), g(""), window.dispatchEvent(new PopStateEvent("popstate"));
|
|
13
14
|
};
|
|
14
15
|
if (i) return null;
|
|
15
16
|
const t = v(x, r);
|
|
16
|
-
return /* @__PURE__ */ e(N, { children: /* @__PURE__ */ s(
|
|
17
|
-
/* @__PURE__ */ e(
|
|
17
|
+
return /* @__PURE__ */ e(N, { children: /* @__PURE__ */ s(w, { className: "mx-auto w-full max-w-md", children: [
|
|
18
|
+
/* @__PURE__ */ e(p, { className: "space-y-1", children: /* @__PURE__ */ s(f, { className: "flex items-center gap-2 text-2xl", children: [
|
|
18
19
|
/* @__PURE__ */ e(B, { className: "h-6 w-6 text-yellow-500" }),
|
|
19
20
|
a("Page missing for"),
|
|
20
21
|
' "',
|
|
@@ -23,7 +24,7 @@ const A = () => {
|
|
|
23
24
|
a("language"),
|
|
24
25
|
"."
|
|
25
26
|
] }) }),
|
|
26
|
-
/* @__PURE__ */ e(
|
|
27
|
+
/* @__PURE__ */ e(P, { className: "grid gap-4", children: /* @__PURE__ */ s("div", { children: [
|
|
27
28
|
a("Page is not available in the"),
|
|
28
29
|
' "',
|
|
29
30
|
t,
|
|
@@ -34,7 +35,7 @@ const A = () => {
|
|
|
34
35
|
'"',
|
|
35
36
|
a("language or switch to the base language.")
|
|
36
37
|
] }) }),
|
|
37
|
-
/* @__PURE__ */ e(
|
|
38
|
+
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(h, { onClick: m, className: "w-full", variant: "destructive", children: a("Switch to default language") }) })
|
|
38
39
|
] }) });
|
|
39
40
|
};
|
|
40
41
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("./register-chai-top-bar-BqwKw4uy.cjs"),t=require("./index-B0e71wJ1.cjs"),n=require("./index-DKuwxj1x.cjs"),w=require("lodash-es"),x=require("lucide-react"),p=require("react-i18next"),P=()=>{const{t:a}=p.useTranslation(),[i,l]=n.useSearchParams(),c=i.get("lang"),g=n.useIsLanguagePageCreated(c),{setSelectedLang:u}=t.useLanguages(),d=()=>{const r=new URLSearchParams(window.location.search);r.delete("lang");const o=r.toString(),h=`${window.location.pathname}${o?`?${o}`:""}`;window.history.pushState({},"",h),l(r),u(""),window.dispatchEvent(new PopStateEvent("popstate"))};if(g)return null;const s=w.get(n.LANGUAGES,c);return e.jsx(n.BlurContainer,{children:e.jsxs(t.Card,{className:"mx-auto w-full max-w-md",children:[e.jsx(t.CardHeader,{className:"space-y-1",children:e.jsxs(t.CardTitle,{className:"flex items-center gap-2 text-2xl",children:[e.jsx(x.LockIcon,{className:"h-6 w-6 text-yellow-500"}),a("Page missing for"),' "',s,'" ',a("language"),"."]})}),e.jsx(t.CardContent,{className:"grid gap-4",children:e.jsxs("div",{children:[a("Page is not available in the"),' "',s,'" ',a("language. Either create the page in the"),' "',s,'"',a("language or switch to the base language.")]})}),e.jsx(t.CardFooter,{children:e.jsx(m.Button,{onClick:d,className:"w-full",variant:"destructive",children:a("Switch to default language")})})]})})};exports.default=P;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { c as g, d as n } from "./index-
|
|
2
|
+
import { c as g, d as n } from "./index-Bn0fFN58.js";
|
|
3
3
|
import { Suspense as s, lazy as t } from "react";
|
|
4
|
-
const o = t(() => import("./no-language-page-content-
|
|
4
|
+
const o = t(() => import("./no-language-page-content-9B2Fm-on.js")), l = () => {
|
|
5
5
|
const [e] = g(), r = e.get("lang");
|
|
6
6
|
return n(r) ? null : /* @__PURE__ */ a(s, { children: /* @__PURE__ */ a(o, {}) });
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./index-DKuwxj1x.cjs"),n=require("react"),t=n.lazy(()=>Promise.resolve().then(()=>require("./no-language-page-content-CxTp-LIM.cjs"))),g=()=>{const[r]=a.useSearchParams(),s=r.get("lang");return a.useIsLanguagePageCreated(s)?null:e.jsx(n.Suspense,{children:e.jsx(t,{})})};exports.default=g;
|