@chaibuilder/pages 0.16.16 → 0.16.18
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/{2AITGKQY-BV6JxIio.cjs → 2AITGKQY-DbBNqqNQ.cjs} +1 -1
- package/dist/{2AITGKQY-DmJ7FEya.js → 2AITGKQY-jev6nZ--.js} +2 -2
- package/dist/{NCMVHL6D-B_AZmaGG.cjs → NCMVHL6D-BjH1Tg1s.cjs} +1 -1
- package/dist/{NCMVHL6D-DsqUQxZK.js → NCMVHL6D-BtVmDJZQ.js} +2 -2
- package/dist/{ZDWCUMSJ-CQXWzREv.cjs → ZDWCUMSJ-Nezb42Bx.cjs} +1 -1
- package/dist/{ZDWCUMSJ-DusX6DXb.js → ZDWCUMSJ-S9dikjgz.js} +1 -1
- package/dist/{active-in-another-tab-rGDvhc3f.cjs → active-in-another-tab-B2jwquvi.cjs} +1 -1
- package/dist/{active-in-another-tab-CSNxota6.js → active-in-another-tab-nD0Ct2zR.js} +1 -1
- package/dist/{add-new-language-page-DmQ_eB85.cjs → add-new-language-page-B2CGLeBl.cjs} +1 -1
- package/dist/{add-new-language-page-C1ekdWwV.js → add-new-language-page-BJk1ZO-t.js} +2 -2
- package/dist/{add-new-page-C6gW1_B-.js → add-new-page-DNMc1_m8.js} +1 -1
- package/dist/{add-new-page-BImvK_fV.cjs → add-new-page-Y4l1kKgu.cjs} +1 -1
- package/dist/{ai-panel-content-BGMRcgkl.cjs → ai-panel-content-B2R5ac1Q.cjs} +1 -1
- package/dist/{ai-panel-content-BJoNy1Yk.js → ai-panel-content-BZDagIjt.js} +2 -2
- package/dist/{ai-panel-default-lang-BLE3cVLR.js → ai-panel-default-lang-DFVRw2XO.js} +3 -3
- package/dist/{ai-panel-default-lang-CNTq97FU.cjs → ai-panel-default-lang-DpRzlKuh.cjs} +2 -2
- package/dist/{ai-panel-other-lang-DBBxinT6.js → ai-panel-other-lang-CGiXHbUA.js} +3 -3
- package/dist/{ai-panel-other-lang-VRmIp9Qm.cjs → ai-panel-other-lang-mjWK495u.cjs} +1 -1
- package/dist/{ai-prompt-input-5aMuJDep.cjs → ai-prompt-input-B3799aqQ.cjs} +1 -1
- package/dist/{ai-prompt-input-BivmKxNH.js → ai-prompt-input-B6dhDx3f.js} +2 -2
- package/dist/{ai-translation-prompt-hp5Ey1Eq.cjs → ai-translation-prompt-C3SvF46x.cjs} +1 -1
- package/dist/{ai-translation-prompt-CkvGj9Zu.js → ai-translation-prompt-D5ndfcqu.js} +1 -1
- package/dist/{continue-editing-in-this-client-Bdm_5BEM.js → continue-editing-in-this-client-BtPTGxtF.js} +1 -1
- package/dist/{continue-editing-in-this-client-BdjGzFLm.cjs → continue-editing-in-this-client-ClnIhAB4.cjs} +1 -1
- package/dist/{delete-page-OGCRZzrG.cjs → delete-page-BWQiX4Qy.cjs} +1 -1
- package/dist/{delete-page-BHu4rVNA.js → delete-page-CgbNmdX3.js} +1 -1
- package/dist/{digital-asset-manager-CaF6tRHd.cjs → digital-asset-manager-CHPG0akQ.cjs} +1 -1
- package/dist/{digital-asset-manager-C7JEgxdI.js → digital-asset-manager-D2DU2Arz.js} +1 -1
- package/dist/{duplicate-page-Co3QgE3M.cjs → duplicate-page-D9YHfSTB.cjs} +1 -1
- package/dist/{duplicate-page-DZW5jpE3.js → duplicate-page-nhaRQq48.js} +2 -2
- package/dist/{dynamic-page-selector-CL-sCDkO.cjs → dynamic-page-selector-BhFVhQXO.cjs} +1 -1
- package/dist/{dynamic-page-selector-C2vVfVwL.js → dynamic-page-selector-BpAx2T1D.js} +1 -1
- package/dist/index-Nz9M0K-w.cjs +5 -0
- package/dist/{index-DOH-lluK.js → index-tOCLaJS0.js} +139 -140
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{json-diff-viewer-C69tubC8.cjs → json-diff-viewer-B7VUOCAk.cjs} +1 -1
- package/dist/{json-diff-viewer-DVB2glQZ.js → json-diff-viewer-BHsCH0rV.js} +1 -1
- package/dist/{lang-panel-BDNMrT8U.js → lang-panel-Bf4bybUW.js} +2 -2
- package/dist/{lang-panel-DWj5wlfo.cjs → lang-panel-CBDont1C.cjs} +1 -1
- package/dist/{mark-as-template-Br9qxjbc.cjs → mark-as-template-ClVxTs7-.cjs} +1 -1
- package/dist/{mark-as-template-wKn7aI8D.js → mark-as-template-mD5zJnTi.js} +1 -1
- package/dist/{no-language-page-content-CFVzHv_Y.cjs → no-language-page-content-BGqiBsuw.cjs} +1 -1
- package/dist/{no-language-page-content-C7oVsIYu.js → no-language-page-content-C91jYzRM.js} +1 -1
- package/dist/{no-language-page-dialog-5-cAE2F2.js → no-language-page-dialog-CU_Y_GF8.js} +2 -2
- package/dist/{no-language-page-dialog-BqrxzBfj.cjs → no-language-page-dialog-DnN17tvI.cjs} +1 -1
- package/dist/{page-creator-itnGYmd4.cjs → page-creator-BYEKqyKF.cjs} +1 -1
- package/dist/{page-creator-89jgn0Ao.js → page-creator-Dwn4aALC.js} +2 -2
- package/dist/{page-lock-BGnEhXCW.cjs → page-lock-DAWrc3GC.cjs} +1 -1
- package/dist/{page-lock-T6QScRbl.js → page-lock-DHoFXsEj.js} +2 -2
- package/dist/{page-locked-dialog-B39IqdJ9.cjs → page-locked-dialog-DMDIpR6r.cjs} +1 -1
- package/dist/{page-locked-dialog-Bo2JuCSN.js → page-locked-dialog-QL8ZUQQd.js} +1 -1
- package/dist/{page-manager-new-CElobhjD.js → page-manager-new-1RGAp9KU.js} +2 -2
- package/dist/{page-manager-new-D44_zdpQ.cjs → page-manager-new-r1540okw.cjs} +1 -1
- package/dist/{page-manager-search-and-filter-VgVbeup1.js → page-manager-search-and-filter-B9kZBAGe.js} +1 -1
- package/dist/{page-manager-search-and-filter-DmXFyylC.cjs → page-manager-search-and-filter-Dp1Z6uDu.cjs} +1 -1
- package/dist/{page-revisions-content-C3GLr_sM.js → page-revisions-content-BLLa8Sar.js} +2 -2
- package/dist/{page-revisions-content-CsxGDRzT.cjs → page-revisions-content-qrkR9Stz.cjs} +1 -1
- package/dist/{publish-pages-content-Cj6sTZ-B.js → publish-pages-content-CML_ott4.js} +2 -2
- package/dist/{publish-pages-content-CdwZOxtG.cjs → publish-pages-content-DquiwxG5.cjs} +1 -1
- package/dist/{save-to-lib-BjfzVByH.cjs → save-to-lib-BBZn9sEZ.cjs} +1 -1
- package/dist/{save-to-lib-DtdHpuWg.js → save-to-lib-DZOs6H7V.js} +1 -1
- package/dist/{selected-block-display-B0yeKnWl.cjs → selected-block-display-DWpFg5KU.cjs} +1 -1
- package/dist/{selected-block-display-DVzQ888o.js → selected-block-display-qF0wXDpP.js} +1 -1
- package/dist/{seo-panel-CaXQTicZ.cjs → seo-panel-CmqA8v6p.cjs} +1 -1
- package/dist/{seo-panel-h6FQkwhv.js → seo-panel-DcTu-rLl.js} +1 -1
- package/dist/{shared-json-ld-B1HhFgk0.js → shared-json-ld-Bs_lzQ6G.js} +1 -1
- package/dist/{shared-json-ld-DcYfd7Sl.cjs → shared-json-ld-DZ2eZ35l.cjs} +1 -1
- package/dist/{slug-input-DDDMhrBe.cjs → slug-input-BvRnz9Xf.cjs} +1 -1
- package/dist/{slug-input-Bq48cfWr.js → slug-input-Df9ug5YA.js} +1 -1
- package/dist/{take-over-request-BC2Rh5wd.js → take-over-request-BBmLlOro.js} +1 -1
- package/dist/{take-over-request-Cpa9ooTw.cjs → take-over-request-eUnq0CcU.cjs} +1 -1
- package/dist/{theme-panel-footer-B4D33YEO.js → theme-panel-footer-BO6xk08X.js} +1 -1
- package/dist/{theme-panel-footer-DoFYuPy1.cjs → theme-panel-footer-CzntKXBS.cjs} +1 -1
- package/dist/{unmark-as-template-4A6kxi6r.cjs → unmark-as-template-BHbGyEJS.cjs} +1 -1
- package/dist/{unmark-as-template-fkt1rehy.js → unmark-as-template-CSpTbvOz.js} +1 -1
- package/dist/{unpublish-page-IQ4WTVMd.js → unpublish-page-DTVEQJoy.js} +1 -1
- package/dist/{unpublish-page-uIYo5nwG.cjs → unpublish-page-kHxAVlJS.cjs} +1 -1
- package/dist/{web-preview-BvfhE4ij.cjs → web-preview-CW4XBgip.cjs} +1 -1
- package/dist/{web-preview-DYbA7jro.js → web-preview-SaTB5Pss.js} +1 -1
- package/package.json +1 -1
- package/dist/index-MzR4MaVE.cjs +0 -5
|
@@ -6,13 +6,13 @@ var A = (e, t, n) => (Hn(e, t, "read from private field"), n ? n.call(e) : t.get
|
|
|
6
6
|
import { jsxs as m, Fragment as me, jsx as c } from "react/jsx-runtime";
|
|
7
7
|
import { get as H, reverse as Or, sortBy as Dr, find as ae, noop as ms, groupBy as xr, values as Es, first as ps, minBy as ys, keyBy as Rr, map as Kt, isEmpty as Te, compact as As, each as kr, upperCase as qn, filter as Ts, includes as Ur, has as Yt, pick as In, keys as Mr, pickBy as Br, endsWith as Fr, isArray as Kr, startCase as Vr, isFunction as Hr, cloneDeep as qr, isEqual as $r } from "lodash-es";
|
|
8
8
|
import * as Q from "react";
|
|
9
|
-
import Qr, { useMemo as q, useCallback as z, useState as K, useEffect as
|
|
9
|
+
import Qr, { useMemo as q, useCallback as z, useState as K, useEffect as ne, useRef as Ie, lazy as V, Suspense as X, createContext as zr, Component as jr, createElement as $n } from "react";
|
|
10
10
|
import { atom as pe, useAtom as ie } from "jotai";
|
|
11
11
|
import { useQuery as oe, useMutation as Y, useQueryClient as J, onlineManager as Ss, QueryClient as Wr, QueryClientProvider as Yr } from "@tanstack/react-query";
|
|
12
12
|
import { useLanguages as _e, useSavePage as ke, useTranslation as Pe, mergeClasses as Vt, usePermissions as _s, PERMISSIONS as Jr, useRightPanel as Zr, useChaiFeatureFlag as Xr, useIsPageLoaded as ea, registerChaiLibrary as ta, getBlocksFromHTML as na, registerChaiSidebarPanel as Gt, registerChaiFeatureFlag as rn, registerChaiTopBar as sa, registerChaiMediaManager as ra, registerChaiSaveToLibrary as aa, ChaiBuilderEditor as ia } from "@chaibuilder/sdk";
|
|
13
13
|
import { Tooltip as Jt, TooltipTrigger as Zt, Button as M, TooltipContent as Xt, Sheet as Ps, SheetContent as ws, SheetHeader as oa, SheetTitle as la, SheetDescription as ca, DropdownMenu as Ln, DropdownMenuTrigger as Nn, DropdownMenuContent as Cn, DropdownMenuItem as fe, Separator as ua, TooltipProvider as vs, SheetTrigger as da, Skeleton as Ot, Dialog as bs, HoverCard as fa, HoverCardTrigger as ha, HoverCardContent as ga, AlertDialog as ma, AlertDialogTrigger as Ea, AlertDialogContent as pa, AlertDialogHeader as ya, AlertDialogTitle as Aa, AlertDialogDescription as Ta, AlertDialogFooter as Sa, AlertDialogCancel as _a, AlertDialogAction as Pa, Popover as wa, PopoverTrigger as va, DialogContent as ba, DialogHeader as Ia, DialogTitle as La, Tabs as Na, TabsList as Ca, TabsTrigger as an, TabsContent as on, Textarea as Qn, Alert as Ga, AlertDescription as Oa } from "@chaibuilder/sdk/ui";
|
|
14
14
|
import { LogsIcon as Da, Folder as xa, Languages as zn, ChevronDown as En, Star as Ra, Plus as Is, History as ka, Play as Ua, Palette as Ma, CheckCircle as Ba, Loader as Ht, Save as Fa, Send as jn, Rocket as Wn, CopyPlusIcon as Ka, Pencil as Va, Power as Ha, Trash as qa, SquareLibrary as Yn, Hash as $a, File as Qa, MoreHorizontal as Jn, ExternalLink as za, LanguagesIcon as ja, User as Wa, X as Zn, Trash2 as Ya, ImageIcon as Xn, Code as Ja, Eye as Za, Share2 as Xa, FileCode2 as ei, AlertTriangle as ti } from "lucide-react";
|
|
15
|
-
import { toast as
|
|
15
|
+
import { toast as k } from "sonner";
|
|
16
16
|
import { useRegisteredChaiBlocks as ni, getDefaultBlockProps as si } from "@chaibuilder/runtime";
|
|
17
17
|
import { loadWebBlocks as ri } from "@chaibuilder/sdk/web-blocks";
|
|
18
18
|
const Dt = {
|
|
@@ -333,7 +333,7 @@ function we() {
|
|
|
333
333
|
const [e, t] = K(
|
|
334
334
|
new URLSearchParams(window.location.search)
|
|
335
335
|
);
|
|
336
|
-
return
|
|
336
|
+
return ne(() => {
|
|
337
337
|
const n = () => {
|
|
338
338
|
t(new URLSearchParams(window.location.search));
|
|
339
339
|
};
|
|
@@ -367,7 +367,7 @@ const Me = (e) => {
|
|
|
367
367
|
};
|
|
368
368
|
function oi(e, t) {
|
|
369
369
|
const [n, s] = K(e);
|
|
370
|
-
return
|
|
370
|
+
return ne(() => {
|
|
371
371
|
const r = setTimeout(() => s(e), t);
|
|
372
372
|
return () => clearTimeout(r);
|
|
373
373
|
}, [e, t]), n;
|
|
@@ -387,10 +387,10 @@ const li = ({ query: e, uuid: t }) => {
|
|
|
387
387
|
}, ci = () => {
|
|
388
388
|
const { selectedLang: e, fallbackLang: t } = _e(), [n, s] = Gs(), [r, a] = K(""), i = oi(r, 500), { allLangPages: o, data: l, isFetching: d } = li({ query: i }), u = z((h) => s(h), [s]), f = z((h) => a(h), [a]), g = z(() => {
|
|
389
389
|
if (!n) return;
|
|
390
|
-
const h = !(n != null && n.primaryPage), p = e.length === 0, T = h ? n == null ? void 0 : n.id : n == null ? void 0 : n.primaryPage,
|
|
390
|
+
const h = !(n != null && n.primaryPage), p = e.length === 0, T = h ? n == null ? void 0 : n.id : n == null ? void 0 : n.primaryPage, D = o.filter(
|
|
391
391
|
(y) => (y == null ? void 0 : y.primaryPage) === T || y.id === T
|
|
392
392
|
).find((y) => p ? y.lang === e || y.lang === t : y.lang === e);
|
|
393
|
-
s(
|
|
393
|
+
s(D || n);
|
|
394
394
|
}, [n, e, o, s, t]);
|
|
395
395
|
return {
|
|
396
396
|
isFetching: d,
|
|
@@ -448,7 +448,7 @@ const Dn = pe(null), xn = () => {
|
|
|
448
448
|
ACTIVE_IN_ANOTHER_TAB: "ACTIVE_IN_ANOTHER_TAB",
|
|
449
449
|
FORCE_TAKE_OVER: "FORCE_TAKE_OVER",
|
|
450
450
|
CONNECTION_LOST: "CONNECTION_LOST"
|
|
451
|
-
},
|
|
451
|
+
}, se = {
|
|
452
452
|
FORCE_TAKE_OVER: "FORCE_TAKE_OVER",
|
|
453
453
|
TAKE_OVER_REQUEST: "TAKE_OVER_REQUEST",
|
|
454
454
|
TAKE_OVER_APPROVED: "TAKE_OVER_APPROVED",
|
|
@@ -457,13 +457,13 @@ const Dn = pe(null), xn = () => {
|
|
|
457
457
|
CONTINUE_EDITING_IN_THIS_CLIENT: "CONTINUE_EDITING_IN_THIS_CLIENT",
|
|
458
458
|
CONTINUE_EDITING_IN_THIS_TAB_REQUEST: "CONTINUE_EDITING_IN_THIS_TAB_REQUEST"
|
|
459
459
|
}, gi = ["sync", "join", "leave"], mi = [
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
460
|
+
se.FORCE_TAKE_OVER,
|
|
461
|
+
se.TAKE_OVER_REQUEST,
|
|
462
|
+
se.TAKE_OVER_APPROVED,
|
|
463
|
+
se.TAKE_OVER_REJECTED,
|
|
464
|
+
se.FORCE_TAKE_OVER_REQUEST,
|
|
465
|
+
se.CONTINUE_EDITING_IN_THIS_CLIENT,
|
|
466
|
+
se.CONTINUE_EDITING_IN_THIS_TAB_REQUEST
|
|
467
467
|
], Ei = pe({}), xs = pe(null), pi = pe(ee.CHECKING), yi = pe({}), Ai = (e) => {
|
|
468
468
|
const t = {}, n = xr(Es(e).map(ps).filter(Boolean), "pageId");
|
|
469
469
|
return Object.entries(n).forEach(
|
|
@@ -497,7 +497,7 @@ const Rs = () => {
|
|
|
497
497
|
return q(() => t[e], [t, e]);
|
|
498
498
|
}, Rn = () => {
|
|
499
499
|
const e = Ns(), { setPageStatus: t } = he(), [n] = ie(xs);
|
|
500
|
-
return
|
|
500
|
+
return ne(() => {
|
|
501
501
|
if (clearTimeout(ln), !e)
|
|
502
502
|
return ln = setTimeout(() => {
|
|
503
503
|
e || t(ee.EDITING);
|
|
@@ -541,27 +541,27 @@ const Rs = () => {
|
|
|
541
541
|
const u = d || {};
|
|
542
542
|
if (!(!(u != null && u.pageId) || (u == null ? void 0 : u.pageId) !== i.current || (u == null ? void 0 : u.receiverClientId) !== Ue))
|
|
543
543
|
switch (r({}), l) {
|
|
544
|
-
case
|
|
545
|
-
case
|
|
544
|
+
case se.FORCE_TAKE_OVER_REQUEST:
|
|
545
|
+
case se.CONTINUE_EDITING_IN_THIS_TAB_REQUEST: {
|
|
546
546
|
try {
|
|
547
547
|
await o(!0);
|
|
548
548
|
} catch (f) {
|
|
549
549
|
console.error("Failed to save page before releasing lock:", f);
|
|
550
550
|
}
|
|
551
|
-
await a(
|
|
551
|
+
await a(se.CONTINUE_EDITING_IN_THIS_CLIENT, { requestingClientId: u == null ? void 0 : u.senderClientId }), setTimeout(() => r({ type: l }), 0);
|
|
552
552
|
break;
|
|
553
553
|
}
|
|
554
|
-
case
|
|
554
|
+
case se.TAKE_OVER_REQUEST: {
|
|
555
555
|
r({ requestingUserId: u == null ? void 0 : u.userId, requestingClientId: u == null ? void 0 : u.senderClientId }), s(ee.TAKE_OVER_REQUESTED);
|
|
556
556
|
break;
|
|
557
557
|
}
|
|
558
|
-
case
|
|
558
|
+
case se.CONTINUE_EDITING_IN_THIS_CLIENT: {
|
|
559
559
|
const f = Ti(n == null ? void 0 : n.presenceState());
|
|
560
560
|
s(ee.CHECKING), await (n == null ? void 0 : n.track({ onlineAt: f, pageId: i.current, userId: e, clientId: Ue }));
|
|
561
561
|
break;
|
|
562
562
|
}
|
|
563
|
-
case
|
|
564
|
-
r({ type:
|
|
563
|
+
case se.TAKE_OVER_REJECTED: {
|
|
564
|
+
r({ type: se.TAKE_OVER_REJECTED });
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
@@ -570,9 +570,16 @@ const Rs = () => {
|
|
|
570
570
|
);
|
|
571
571
|
}, Hc = () => {
|
|
572
572
|
const e = Ns(), t = en(), n = Nt(), s = Si(), [r, a] = ie(xs), { setPageStatus: i } = he(), o = vi(), l = Pi(), d = Ie(o), u = Ie(l);
|
|
573
|
-
|
|
573
|
+
ne(() => {
|
|
574
574
|
d.current = o, u.current = l;
|
|
575
|
-
}, [o, l]),
|
|
575
|
+
}, [o, l]), ne(() => {
|
|
576
|
+
const f = () => {
|
|
577
|
+
document.visibilityState === "visible" && r && r.subscribe();
|
|
578
|
+
};
|
|
579
|
+
return document.addEventListener("visibilitychange", f), () => {
|
|
580
|
+
document.removeEventListener("visibilitychange", f);
|
|
581
|
+
};
|
|
582
|
+
}, [r]), ne(() => {
|
|
576
583
|
if (!e || !t || !s || r && r.topic === s) return;
|
|
577
584
|
const f = e.channel(s, {
|
|
578
585
|
config: { presence: { key: Ue } }
|
|
@@ -586,19 +593,11 @@ const Rs = () => {
|
|
|
586
593
|
u.current(f);
|
|
587
594
|
});
|
|
588
595
|
}), f.subscribe(async (g) => {
|
|
589
|
-
g === "SUBSCRIBED" ?
|
|
590
|
-
id: "realtime-connection-error",
|
|
591
|
-
duration: 1 / 0,
|
|
592
|
-
action: {
|
|
593
|
-
label: "Reload",
|
|
594
|
-
onClick: () => window.location.reload()
|
|
595
|
-
},
|
|
596
|
-
position: "bottom-center"
|
|
597
|
-
}), a(null), i(ee.CONNECTION_LOST));
|
|
596
|
+
g === "SUBSCRIBED" ? a(f) : (g === "CHANNEL_ERROR" || g === "TIMED_OUT") && (console.log("Realtime connection failed", g), i(ee.CONNECTION_LOST));
|
|
598
597
|
}), () => {
|
|
599
|
-
f.unsubscribe()
|
|
598
|
+
f.unsubscribe();
|
|
600
599
|
};
|
|
601
|
-
}, [e, t, s, a]),
|
|
600
|
+
}, [e, t, s, a]), ne(() => (r && n && t && r.track({
|
|
602
601
|
pageId: n,
|
|
603
602
|
userId: t,
|
|
604
603
|
clientId: Ue,
|
|
@@ -636,18 +635,18 @@ const Rs = () => {
|
|
|
636
635
|
},
|
|
637
636
|
placeholderData: (r) => r || {}
|
|
638
637
|
});
|
|
639
|
-
}, bi = V(() => import("./page-manager-new-
|
|
638
|
+
}, bi = V(() => import("./page-manager-new-1RGAp9KU.js")), Ms = ({ children: e }) => {
|
|
640
639
|
const { t } = Pe(), [n, s] = we(), r = n.get("page"), { data: a, isFetching: i } = ce(), { data: o, isFetching: l } = Us(), [d, u] = K(!1), [f, g] = K(!0), { savePage: h } = ke(), p = !!r && !Te(a), { isLocked: T } = he(), S = q(() => {
|
|
641
640
|
if (!o || l) return !1;
|
|
642
641
|
const v = o.find((U) => U.slug === "/");
|
|
643
642
|
return v == null ? void 0 : v.id;
|
|
644
643
|
}, [o, l]);
|
|
645
|
-
|
|
644
|
+
ne(() => {
|
|
646
645
|
if (l || !S || o.some((b) => b.id === r)) return;
|
|
647
646
|
const U = new URLSearchParams({ page: S });
|
|
648
647
|
Ds(U, s), !l && o && g(!1);
|
|
649
648
|
}, [r, l, o, S, s]);
|
|
650
|
-
const
|
|
649
|
+
const D = !f && !r, y = !f && !i && Te(a), w = d || D || y;
|
|
651
650
|
return /* @__PURE__ */ m(me, { children: [
|
|
652
651
|
/* @__PURE__ */ c("div", { className: "flex items-center gap-x-1", children: /* @__PURE__ */ c("div", { className: "relative", children: /* @__PURE__ */ m(Jt, { children: [
|
|
653
652
|
/* @__PURE__ */ c(
|
|
@@ -684,7 +683,7 @@ const Rs = () => {
|
|
|
684
683
|
}
|
|
685
684
|
) })
|
|
686
685
|
] });
|
|
687
|
-
}, Ii = V(() => import("./add-new-language-page-
|
|
686
|
+
}, Ii = V(() => import("./add-new-language-page-BJk1ZO-t.js")), Li = () => {
|
|
688
687
|
const e = le("topLeftCorner", null);
|
|
689
688
|
return e ? /* @__PURE__ */ c("div", { className: "max-h-9 w-full overflow-hidden pr-2", children: Qr.createElement(e, {}) }) : null;
|
|
690
689
|
}, Ni = ({
|
|
@@ -693,7 +692,7 @@ const Rs = () => {
|
|
|
693
692
|
goToDefaultLang: n = !1
|
|
694
693
|
}) => {
|
|
695
694
|
const { fallbackLang: s, languages: r, selectedLang: a, setSelectedLang: i } = _e(), o = Te(a) ? s : a, [, l] = we(), { isLocked: d } = he(), { t: u } = Pe();
|
|
696
|
-
|
|
695
|
+
ne(() => {
|
|
697
696
|
const y = new URLSearchParams(window.location.search), w = y.get("lang");
|
|
698
697
|
w && (r.includes(w) ? i(w) : (y.delete("lang"), l(y), i("")));
|
|
699
698
|
}, [r, l, i]);
|
|
@@ -722,14 +721,14 @@ const Rs = () => {
|
|
|
722
721
|
detail: {
|
|
723
722
|
fromLang: o,
|
|
724
723
|
toLang: y,
|
|
725
|
-
switchHandler: () =>
|
|
724
|
+
switchHandler: () => D(y)
|
|
726
725
|
}
|
|
727
726
|
});
|
|
728
727
|
window.dispatchEvent(v);
|
|
729
728
|
return;
|
|
730
729
|
}
|
|
731
|
-
|
|
732
|
-
},
|
|
730
|
+
D(y);
|
|
731
|
+
}, D = (y) => {
|
|
733
732
|
i(y);
|
|
734
733
|
const w = new URLSearchParams(window.location.search);
|
|
735
734
|
y === s ? w.delete("lang") : w.set("lang", y), Ds(w, l);
|
|
@@ -738,7 +737,7 @@ const Rs = () => {
|
|
|
738
737
|
/* @__PURE__ */ c(zn, { className: "h-4 w-4" }),
|
|
739
738
|
H(Dt, o, o),
|
|
740
739
|
/* @__PURE__ */ c(En, { className: "h-4 w-4" })
|
|
741
|
-
] }) : n ? /* @__PURE__ */ c(M, { onClick: () =>
|
|
740
|
+
] }) : n ? /* @__PURE__ */ c(M, { onClick: () => D(s), variant: "link", size: "sm", children: u("Switch to default language") }) : /* @__PURE__ */ c(me, { children: /* @__PURE__ */ m(Ln, { children: [
|
|
742
741
|
/* @__PURE__ */ c(Nn, { asChild: !0, className: "focus:outline-none", children: /* @__PURE__ */ m(
|
|
743
742
|
M,
|
|
744
743
|
{
|
|
@@ -827,7 +826,7 @@ function Gi() {
|
|
|
827
826
|
/* @__PURE__ */ c(Ot, { className: "h-8 w-8 rounded-full" })
|
|
828
827
|
] }, t)) });
|
|
829
828
|
}
|
|
830
|
-
const Oi = Q.lazy(() => import("./page-revisions-content-
|
|
829
|
+
const Oi = Q.lazy(() => import("./page-revisions-content-BLLa8Sar.js"));
|
|
831
830
|
function Di() {
|
|
832
831
|
const [e, t] = Q.useState(!1);
|
|
833
832
|
return /* @__PURE__ */ c(vs, { children: /* @__PURE__ */ m(Jt, { delayDuration: 0, children: [
|
|
@@ -899,11 +898,11 @@ const cn = ({
|
|
|
899
898
|
queryKey: [E.GET_WEBSITE_PAGES]
|
|
900
899
|
});
|
|
901
900
|
const i = a.template ? `Page created from "${a.template.name}" template` : a.hasSlug === !1 ? "New " + ((o = ae(s, { key: a.pageType })) == null ? void 0 : o.name) + " added successfully" : "New page added successfully";
|
|
902
|
-
|
|
901
|
+
k.success(i);
|
|
903
902
|
},
|
|
904
903
|
onError: (r, a) => {
|
|
905
904
|
const i = ae(s, { key: a.pageType });
|
|
906
|
-
|
|
905
|
+
k.error(`Failed to add new ${i != null && i.hasSlug ? "page" : i.name}.`, {
|
|
907
906
|
description: H(xi, r.message, r.message)
|
|
908
907
|
});
|
|
909
908
|
}
|
|
@@ -928,7 +927,7 @@ const cn = ({
|
|
|
928
927
|
},
|
|
929
928
|
onError: (a, i) => {
|
|
930
929
|
const o = ae(r, { key: i.pageType });
|
|
931
|
-
|
|
930
|
+
k.error(`Failed to update ${o != null && o.hasSlug ? "page" : o.name}.`, {
|
|
932
931
|
description: a.message
|
|
933
932
|
});
|
|
934
933
|
}
|
|
@@ -942,7 +941,7 @@ const cn = ({
|
|
|
942
941
|
}),
|
|
943
942
|
onSuccess: (r, a) => {
|
|
944
943
|
if (r.code === "PAGE_LOCKED") {
|
|
945
|
-
|
|
944
|
+
k.error("Delete not allowed", {
|
|
946
945
|
description: "Page is currently being edited by another user."
|
|
947
946
|
});
|
|
948
947
|
return;
|
|
@@ -957,7 +956,7 @@ const cn = ({
|
|
|
957
956
|
},
|
|
958
957
|
onError: (r, a) => {
|
|
959
958
|
const i = ae(s, { key: a.pageType });
|
|
960
|
-
|
|
959
|
+
k.error(`Failed to delete ${i != null && i.hasSlug ? "page" : i.name}.`, {
|
|
961
960
|
description: r.message
|
|
962
961
|
});
|
|
963
962
|
}
|
|
@@ -976,13 +975,13 @@ const cn = ({
|
|
|
976
975
|
queryKey: [E.GET_WEBSITE_PAGES]
|
|
977
976
|
});
|
|
978
977
|
const i = ae(s, { key: a.pageType });
|
|
979
|
-
|
|
978
|
+
k.success(
|
|
980
979
|
i != null && i.hasSlug ? "Page unpublished successfully." : "New " + i.name + " added successfully."
|
|
981
980
|
);
|
|
982
981
|
},
|
|
983
982
|
onError: (r, a) => {
|
|
984
983
|
const i = ae(s, { key: a.pageType });
|
|
985
|
-
|
|
984
|
+
k.error(`Failed to take offline ${i != null && i.hasSlug ? "page" : i.name}.`, {
|
|
986
985
|
description: r.message
|
|
987
986
|
});
|
|
988
987
|
}
|
|
@@ -1004,7 +1003,7 @@ const cn = ({
|
|
|
1004
1003
|
});
|
|
1005
1004
|
},
|
|
1006
1005
|
onError: (a) => {
|
|
1007
|
-
console.log("##", a),
|
|
1006
|
+
console.log("##", a), k.error("Failed to publish pages.");
|
|
1008
1007
|
}
|
|
1009
1008
|
});
|
|
1010
1009
|
}, Wc = () => {
|
|
@@ -1026,10 +1025,10 @@ const cn = ({
|
|
|
1026
1025
|
onSuccess: () => {
|
|
1027
1026
|
n.invalidateQueries({
|
|
1028
1027
|
queryKey: [E.GET_WEBSITE_PAGES]
|
|
1029
|
-
}),
|
|
1028
|
+
}), k.success("Page marked as template successfully.");
|
|
1030
1029
|
},
|
|
1031
1030
|
onError: () => {
|
|
1032
|
-
|
|
1031
|
+
k.error("Failed to mark page as template.");
|
|
1033
1032
|
}
|
|
1034
1033
|
});
|
|
1035
1034
|
}, Yc = () => {
|
|
@@ -1042,10 +1041,10 @@ const cn = ({
|
|
|
1042
1041
|
onSuccess: () => {
|
|
1043
1042
|
n.invalidateQueries({
|
|
1044
1043
|
queryKey: [E.GET_WEBSITE_PAGES]
|
|
1045
|
-
}),
|
|
1044
|
+
}), k.success("Page unmarked as template successfully.");
|
|
1046
1045
|
},
|
|
1047
1046
|
onError: () => {
|
|
1048
|
-
|
|
1047
|
+
k.error("Failed to unmark page as template.");
|
|
1049
1048
|
}
|
|
1050
1049
|
});
|
|
1051
1050
|
}, Jc = () => {
|
|
@@ -1056,17 +1055,17 @@ const cn = ({
|
|
|
1056
1055
|
data: { id: s, slug: r }
|
|
1057
1056
|
}),
|
|
1058
1057
|
onSuccess: (s, { primaryPage: r }) => {
|
|
1059
|
-
|
|
1058
|
+
k.success("Slug changed successfully."), r ? n.invalidateQueries({
|
|
1060
1059
|
queryKey: [E.GET_LANGUAGE_PAGES, r]
|
|
1061
1060
|
}) : n.invalidateQueries({
|
|
1062
1061
|
queryKey: [E.GET_WEBSITE_PAGES]
|
|
1063
1062
|
});
|
|
1064
1063
|
},
|
|
1065
1064
|
onError: () => {
|
|
1066
|
-
|
|
1065
|
+
k.error("Failed to change slug");
|
|
1067
1066
|
}
|
|
1068
1067
|
});
|
|
1069
|
-
}, Ui = V(() => import("./publish-pages-content-
|
|
1068
|
+
}, Ui = V(() => import("./publish-pages-content-CML_ott4.js"));
|
|
1070
1069
|
function Mi({
|
|
1071
1070
|
showModal: e = !1,
|
|
1072
1071
|
onClose: t = () => console.log("Cancelled")
|
|
@@ -1156,7 +1155,7 @@ function Un({
|
|
|
1156
1155
|
/* @__PURE__ */ c(Xt, { side: n, sideOffset: 10, children: /* @__PURE__ */ c("p", { children: t }) })
|
|
1157
1156
|
] }) }) : e;
|
|
1158
1157
|
}
|
|
1159
|
-
const Hi = V(() => import("./unpublish-page-
|
|
1158
|
+
const Hi = V(() => import("./unpublish-page-DTVEQJoy.js")), qi = V(() => import("./translation-warning-modal-DalBhNQy.js")), $i = () => {
|
|
1160
1159
|
const { t: e } = Pe(), { selectedLang: t, fallbackLang: n } = _e(), s = le("getPreviewUrl", async (g) => g), [r, a] = K(""), { data: i } = ce(), { data: o } = Me(), { data: l } = Ce(), d = q(
|
|
1161
1160
|
() => {
|
|
1162
1161
|
var g;
|
|
@@ -1167,7 +1166,7 @@ const Hi = V(() => import("./unpublish-page-IQ4WTVMd.js")), qi = V(() => import(
|
|
|
1167
1166
|
var h;
|
|
1168
1167
|
return (h = ae(l, { key: g })) == null ? void 0 : h.hasSlug;
|
|
1169
1168
|
}, [l]), f = t === n ? "" : t;
|
|
1170
|
-
return
|
|
1169
|
+
return ne(() => {
|
|
1171
1170
|
(async () => {
|
|
1172
1171
|
if (typeof s == "function") {
|
|
1173
1172
|
const g = !u(i == null ? void 0 : i.pageType), h = await s(
|
|
@@ -1195,7 +1194,7 @@ const Hi = V(() => import("./unpublish-page-IQ4WTVMd.js")), qi = V(() => import(
|
|
|
1195
1194
|
] });
|
|
1196
1195
|
}, zi = () => {
|
|
1197
1196
|
const { t: e } = Pe(), [t, n] = K(!1), { isLocked: s } = he(), { savePageAsync: r, saveState: a } = ke();
|
|
1198
|
-
|
|
1197
|
+
ne(() => {
|
|
1199
1198
|
const u = (f) => {
|
|
1200
1199
|
a === "UNSAVED" && (f.preventDefault(), f.returnValue = !1);
|
|
1201
1200
|
};
|
|
@@ -1233,7 +1232,7 @@ const Hi = V(() => import("./unpublish-page-IQ4WTVMd.js")), qi = V(() => import(
|
|
|
1233
1232
|
d
|
|
1234
1233
|
] });
|
|
1235
1234
|
}, ji = () => {
|
|
1236
|
-
const { t: e } = Pe(), { selectedLang: t } = _e(), { data: n } = Ne(), { data: s } = Me(), [r, a] = K(!1), [i, o] = K(!1), [l, d] = K(null), { savePageAsync: u } = ke(), [f, g] = K(!1), { data: h } = ce(), { mutate: p, isPending: T } = Bs(), { needTranslations: S } = ke(),
|
|
1235
|
+
const { t: e } = Pe(), { selectedLang: t } = _e(), { data: n } = Ne(), { data: s } = Me(), [r, a] = K(!1), [i, o] = K(!1), [l, d] = K(null), { savePageAsync: u } = ke(), [f, g] = K(!1), { data: h } = ce(), { mutate: p, isPending: T } = Bs(), { needTranslations: S } = ke(), D = S(), { buttonText: y, buttonClassName: w, isPublished: v } = q(() => {
|
|
1237
1236
|
const P = h && (h == null ? void 0 : h.online);
|
|
1238
1237
|
return {
|
|
1239
1238
|
buttonClassName: P ? "hover:bg-green-600 bg-green-500" : "",
|
|
@@ -1241,7 +1240,7 @@ const Hi = V(() => import("./unpublish-page-IQ4WTVMd.js")), qi = V(() => import(
|
|
|
1241
1240
|
buttonText: e(P ? "Published" : "Publish")
|
|
1242
1241
|
};
|
|
1243
1242
|
}, [h, e]), U = async () => {
|
|
1244
|
-
if (
|
|
1243
|
+
if (D) {
|
|
1245
1244
|
g(!0);
|
|
1246
1245
|
return;
|
|
1247
1246
|
}
|
|
@@ -1452,8 +1451,8 @@ const Yi = ({
|
|
|
1452
1451
|
) })
|
|
1453
1452
|
] })
|
|
1454
1453
|
] });
|
|
1455
|
-
}, Ji = V(() => import("./add-new-page-
|
|
1456
|
-
const [e, t] = K(null), [n, s] = K(null), [r, a] = K(null), [i, o] = K(null), [l, d] = K(null), [u, f] = K(null), { data: g, isFetching: h } = Ne(), { selectedLang: p, fallbackLang: T } = _e(), { data: S } = Me(),
|
|
1454
|
+
}, Ji = V(() => import("./add-new-page-DNMc1_m8.js")), Zi = V(() => import("./delete-page-CgbNmdX3.js")), Xi = V(() => import("./duplicate-page-nhaRQq48.js")), eo = V(() => import("./mark-as-template-mD5zJnTi.js")), to = V(() => import("./unmark-as-template-CSpTbvOz.js")), no = V(() => import("./unpublish-page-DTVEQJoy.js")), so = () => {
|
|
1455
|
+
const [e, t] = K(null), [n, s] = K(null), [r, a] = K(null), [i, o] = K(null), [l, d] = K(null), [u, f] = K(null), { data: g, isFetching: h } = Ne(), { selectedLang: p, fallbackLang: T } = _e(), { data: S } = Me(), D = S == null ? void 0 : S.find((b) => b.lang === p), { isLocked: y } = he(), w = !(g != null && g.slug), [, v] = ie(Dn);
|
|
1457
1456
|
if (!g) return null;
|
|
1458
1457
|
const U = (b) => {
|
|
1459
1458
|
p.length > 0 && p !== T ? v({
|
|
@@ -1471,7 +1470,7 @@ const Yi = ({
|
|
|
1471
1470
|
variant: "ghost",
|
|
1472
1471
|
children: h ? /* @__PURE__ */ c(Ht, { className: "h-4 w-4 animate-spin text-slate-400" }) : /* @__PURE__ */ m("span", { className: "flex w-full cursor-pointer items-end overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-xs font-medium", children: [
|
|
1473
1472
|
w ? /* @__PURE__ */ c($a, { className: "mr-1 h-4 w-4" }) : /* @__PURE__ */ c(Qa, { className: "mr-1 h-4 w-4" }),
|
|
1474
|
-
H(
|
|
1473
|
+
H(D || g, "name") ?? ""
|
|
1475
1474
|
] })
|
|
1476
1475
|
}
|
|
1477
1476
|
) }),
|
|
@@ -1533,7 +1532,7 @@ const Yi = ({
|
|
|
1533
1532
|
), ro = ({ hasDynamicPage: e }) => /* @__PURE__ */ c(Fs, { children: /* @__PURE__ */ m("div", { className: "flex min-w-[300px] max-w-[400px] flex-col items-center justify-center rounded-lg border bg-white p-4 shadow-lg", children: [
|
|
1534
1533
|
/* @__PURE__ */ c("h1", { className: "text-lg font-medium", children: e ? "Select a page" : "No pages found" }),
|
|
1535
1534
|
/* @__PURE__ */ c("p", { className: "pt-2 text-center text-sm font-light text-gray-600", children: e ? "Please select a page from the list in the top header. This will enable you to edit the page." : "Please add a new page" })
|
|
1536
|
-
] }) }), ao = V(() => import("./dynamic-page-selector-
|
|
1535
|
+
] }) }), ao = V(() => import("./dynamic-page-selector-BpAx2T1D.js")), io = () => {
|
|
1537
1536
|
const { dynamicPage: e, allLangPages: t, isFetching: n } = ci(), s = t.length > 0;
|
|
1538
1537
|
return n ? null : /* @__PURE__ */ m("div", { className: "relative", children: [
|
|
1539
1538
|
!e && /* @__PURE__ */ c(ro, { hasDynamicPage: s }),
|
|
@@ -1690,10 +1689,10 @@ const Yi = ({
|
|
|
1690
1689
|
var a;
|
|
1691
1690
|
t.invalidateQueries({
|
|
1692
1691
|
queryKey: [E.GET_WEBSITE_DRAFT_SETTINGS]
|
|
1693
|
-
}), (a = r == null ? void 0 : r.settings) != null && a.theme ||
|
|
1692
|
+
}), (a = r == null ? void 0 : r.settings) != null && a.theme || k.success("Website settings updated successfully.");
|
|
1694
1693
|
},
|
|
1695
1694
|
onError: (s) => {
|
|
1696
|
-
|
|
1695
|
+
k.error("Failed to update website settings", {
|
|
1697
1696
|
description: s.message
|
|
1698
1697
|
});
|
|
1699
1698
|
}
|
|
@@ -1705,10 +1704,10 @@ const Yi = ({
|
|
|
1705
1704
|
onSuccess: () => {
|
|
1706
1705
|
t.invalidateQueries({
|
|
1707
1706
|
queryKey: [E.GET_GLOBAL_JSONLD_ITEMS]
|
|
1708
|
-
}),
|
|
1707
|
+
}), k.success("Schema added successfully.");
|
|
1709
1708
|
},
|
|
1710
1709
|
onError: (r) => {
|
|
1711
|
-
|
|
1710
|
+
k.error("Failed to add schema", {
|
|
1712
1711
|
description: r.message
|
|
1713
1712
|
});
|
|
1714
1713
|
}
|
|
@@ -1720,10 +1719,10 @@ const Yi = ({
|
|
|
1720
1719
|
onSuccess: () => {
|
|
1721
1720
|
t.invalidateQueries({
|
|
1722
1721
|
queryKey: [E.GET_GLOBAL_JSONLD_ITEMS]
|
|
1723
|
-
}),
|
|
1722
|
+
}), k.success("Schema updated successfully.");
|
|
1724
1723
|
},
|
|
1725
1724
|
onError: (r) => {
|
|
1726
|
-
|
|
1725
|
+
k.error("Failed to update schema", {
|
|
1727
1726
|
description: r.message
|
|
1728
1727
|
});
|
|
1729
1728
|
}
|
|
@@ -1735,10 +1734,10 @@ const Yi = ({
|
|
|
1735
1734
|
onSuccess: () => {
|
|
1736
1735
|
t.invalidateQueries({
|
|
1737
1736
|
queryKey: [E.GET_GLOBAL_JSONLD_ITEMS]
|
|
1738
|
-
}),
|
|
1737
|
+
}), k.success("Schema deleted successfully.");
|
|
1739
1738
|
},
|
|
1740
1739
|
onError: (s) => {
|
|
1741
|
-
|
|
1740
|
+
k.error("Failed to delete schema", {
|
|
1742
1741
|
description: s.message
|
|
1743
1742
|
});
|
|
1744
1743
|
}
|
|
@@ -1748,7 +1747,7 @@ const Yi = ({
|
|
|
1748
1747
|
return Y({
|
|
1749
1748
|
mutationFn: async (n) => t(e, { action: E.TOGGLE_PAGE_GLOBAL_SCHEMA, data: n }),
|
|
1750
1749
|
onError: (n) => {
|
|
1751
|
-
|
|
1750
|
+
k.error("Failed to toggle schema", {
|
|
1752
1751
|
description: n.message
|
|
1753
1752
|
});
|
|
1754
1753
|
}
|
|
@@ -1758,10 +1757,10 @@ const Yi = ({
|
|
|
1758
1757
|
return Y({
|
|
1759
1758
|
mutationFn: async (n) => t(e, { action: E.APPLY_SCHEMA_TO_ALL_PAGES, data: { schemaId: n } }),
|
|
1760
1759
|
onSuccess: (n) => {
|
|
1761
|
-
|
|
1760
|
+
k.success(`Schema applied to ${n.count} page(s)`);
|
|
1762
1761
|
},
|
|
1763
1762
|
onError: (n) => {
|
|
1764
|
-
|
|
1763
|
+
k.error("Failed to apply schema to all pages", {
|
|
1765
1764
|
description: n.message
|
|
1766
1765
|
});
|
|
1767
1766
|
}
|
|
@@ -1771,10 +1770,10 @@ const Yi = ({
|
|
|
1771
1770
|
return Y({
|
|
1772
1771
|
mutationFn: async (n) => t(e, { action: E.REMOVE_SCHEMA_FROM_ALL_PAGES, data: { schemaId: n } }),
|
|
1773
1772
|
onSuccess: (n) => {
|
|
1774
|
-
|
|
1773
|
+
k.success(`Schema removed from ${n.count} page(s)`);
|
|
1775
1774
|
},
|
|
1776
1775
|
onError: (n) => {
|
|
1777
|
-
|
|
1776
|
+
k.error("Failed to remove schema from all pages", {
|
|
1778
1777
|
description: n.message
|
|
1779
1778
|
});
|
|
1780
1779
|
}
|
|
@@ -1878,7 +1877,7 @@ const Yi = ({
|
|
|
1878
1877
|
[n, t]
|
|
1879
1878
|
)
|
|
1880
1879
|
};
|
|
1881
|
-
}, To = V(() => import("./ai-panel-content-
|
|
1880
|
+
}, To = V(() => import("./ai-panel-content-BZDagIjt.js").then((e) => e.b)), Vs = "chai-chat-panel", So = ({ className: e = "h-full w-full" }) => /* @__PURE__ */ m("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", version: "1.1", className: e, children: [
|
|
1882
1881
|
/* @__PURE__ */ c("title", { children: "ai" }),
|
|
1883
1882
|
/* @__PURE__ */ c("g", { id: "Page-1", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ c("g", { id: "icon", fill: "currentColor", transform: "translate(64.000000, 64.000000)", children: /* @__PURE__ */ c(
|
|
1884
1883
|
"path",
|
|
@@ -1893,7 +1892,7 @@ const Yi = ({
|
|
|
1893
1892
|
button: _o,
|
|
1894
1893
|
panel: To,
|
|
1895
1894
|
position: "top"
|
|
1896
|
-
}, wo = V(() => import("./lang-panel-
|
|
1895
|
+
}, wo = V(() => import("./lang-panel-Bf4bybUW.js")), vo = ({ isActive: e, show: t }) => {
|
|
1897
1896
|
const { data: n } = Be();
|
|
1898
1897
|
return !Yt(n, "languages") || !H(n, "languages", []).length ? null : /* @__PURE__ */ c(M, { size: "sm", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ c(ja, { className: "h-4 w-4" }) });
|
|
1899
1898
|
}, Hs = "lang", bo = {
|
|
@@ -1904,7 +1903,7 @@ const Yi = ({
|
|
|
1904
1903
|
button: vo,
|
|
1905
1904
|
view: "modal",
|
|
1906
1905
|
width: 400
|
|
1907
|
-
}, Io = V(() => import("./seo-panel-
|
|
1906
|
+
}, Io = V(() => import("./seo-panel-DcTu-rLl.js")), qs = "seo", Lo = ({ isActive: e, show: t }) => {
|
|
1908
1907
|
const { data: n } = ce(), s = Ri(n == null ? void 0 : n.pageType);
|
|
1909
1908
|
return !Yt(s, "hasSlug") || !s.hasSlug ? null : /* @__PURE__ */ c(M, { size: "icon", className: "my-1 p-0", onClick: t, variant: e ? "default" : "ghost", children: /* @__PURE__ */ m(
|
|
1910
1909
|
"svg",
|
|
@@ -1996,19 +1995,19 @@ var Qs = !1, Do = (e, t) => e === t, qt = Symbol("solid-proxy"), zs = typeof Pro
|
|
|
1996
1995
|
cleanups: null,
|
|
1997
1996
|
context: null,
|
|
1998
1997
|
owner: null
|
|
1999
|
-
}, dn = {}, N = null, fn = null, xo = null,
|
|
1998
|
+
}, dn = {}, N = null, fn = null, xo = null, x = null, te = null, Se = null, tn = 0;
|
|
2000
1999
|
function xe(e, t) {
|
|
2001
|
-
const n =
|
|
2000
|
+
const n = x, s = N, r = e.length === 0, a = t === void 0 ? s : t, i = r ? Ys : {
|
|
2002
2001
|
owned: null,
|
|
2003
2002
|
cleanups: null,
|
|
2004
2003
|
context: a ? a.context : null,
|
|
2005
2004
|
owner: a
|
|
2006
2005
|
}, o = r ? e : () => e(() => Z(() => ft(i)));
|
|
2007
|
-
N = i,
|
|
2006
|
+
N = i, x = null;
|
|
2008
2007
|
try {
|
|
2009
2008
|
return Ee(o, !0);
|
|
2010
2009
|
} finally {
|
|
2011
|
-
|
|
2010
|
+
x = n, N = s;
|
|
2012
2011
|
}
|
|
2013
2012
|
}
|
|
2014
2013
|
function F(e, t) {
|
|
@@ -2046,7 +2045,7 @@ function Uo(e, t, n) {
|
|
|
2046
2045
|
let s, r, a;
|
|
2047
2046
|
s = !0, r = e, a = {};
|
|
2048
2047
|
let i = null, o = dn, l = null, d = !1, u = "initialValue" in a, f = typeof s == "function" && W(s);
|
|
2049
|
-
const g = /* @__PURE__ */ new Set(), [h, p] = (a.storage || F)(a.initialValue), [T, S] = F(void 0), [
|
|
2048
|
+
const g = /* @__PURE__ */ new Set(), [h, p] = (a.storage || F)(a.initialValue), [T, S] = F(void 0), [D, y] = F(void 0, {
|
|
2050
2049
|
equals: !1
|
|
2051
2050
|
}), [w, v] = F(u ? "ready" : "unresolved");
|
|
2052
2051
|
_.context && (l = _.getNextContextId(), a.ssrLoadFrom === "initial" ? o = a.initialValue : _.load && _.has(l) && (o = _.load(l)));
|
|
@@ -2065,7 +2064,7 @@ function Uo(e, t, n) {
|
|
|
2065
2064
|
function ye() {
|
|
2066
2065
|
const P = Ko, I = h(), j = T();
|
|
2067
2066
|
if (j !== void 0 && !i) throw j;
|
|
2068
|
-
return
|
|
2067
|
+
return x && x.user, I;
|
|
2069
2068
|
}
|
|
2070
2069
|
function Ae(P = !0) {
|
|
2071
2070
|
if (P !== !1 && d) return;
|
|
@@ -2127,13 +2126,13 @@ function ru(e) {
|
|
|
2127
2126
|
return Ee(e, !1);
|
|
2128
2127
|
}
|
|
2129
2128
|
function Z(e) {
|
|
2130
|
-
if (
|
|
2131
|
-
const t =
|
|
2132
|
-
|
|
2129
|
+
if (x === null) return e();
|
|
2130
|
+
const t = x;
|
|
2131
|
+
x = null;
|
|
2133
2132
|
try {
|
|
2134
2133
|
return e();
|
|
2135
2134
|
} finally {
|
|
2136
|
-
|
|
2135
|
+
x = t;
|
|
2137
2136
|
}
|
|
2138
2137
|
}
|
|
2139
2138
|
function au(e, t, n) {
|
|
@@ -2161,22 +2160,22 @@ function ns() {
|
|
|
2161
2160
|
return N;
|
|
2162
2161
|
}
|
|
2163
2162
|
function Zs(e, t) {
|
|
2164
|
-
const n = N, s =
|
|
2165
|
-
N = e,
|
|
2163
|
+
const n = N, s = x;
|
|
2164
|
+
N = e, x = null;
|
|
2166
2165
|
try {
|
|
2167
2166
|
return Ee(t, !0);
|
|
2168
2167
|
} catch (r) {
|
|
2169
2168
|
Mn(r);
|
|
2170
2169
|
} finally {
|
|
2171
|
-
N = n,
|
|
2170
|
+
N = n, x = s;
|
|
2172
2171
|
}
|
|
2173
2172
|
}
|
|
2174
2173
|
function Bo(e) {
|
|
2175
|
-
const t =
|
|
2174
|
+
const t = x, n = N;
|
|
2176
2175
|
return Promise.resolve().then(() => {
|
|
2177
|
-
|
|
2176
|
+
x = t, N = n;
|
|
2178
2177
|
let s;
|
|
2179
|
-
return Ee(e, !1),
|
|
2178
|
+
return Ee(e, !1), x = N = null, s ? s.done : void 0;
|
|
2180
2179
|
});
|
|
2181
2180
|
}
|
|
2182
2181
|
var [Fo, iu] = /* @__PURE__ */ F(!1);
|
|
@@ -2210,9 +2209,9 @@ function er() {
|
|
|
2210
2209
|
const e = te;
|
|
2211
2210
|
te = null, Ee(() => jt(this), !1), te = e;
|
|
2212
2211
|
}
|
|
2213
|
-
if (
|
|
2212
|
+
if (x) {
|
|
2214
2213
|
const e = this.observers ? this.observers.length : 0;
|
|
2215
|
-
|
|
2214
|
+
x.sources ? (x.sources.push(this), x.sourceSlots.push(e)) : (x.sources = [this], x.sourceSlots = [e]), this.observers ? (this.observers.push(x), this.observerSlots.push(x.sources.length - 1)) : (this.observers = [x], this.observerSlots = [x.sources.length - 1]);
|
|
2216
2215
|
}
|
|
2217
2216
|
return this.value;
|
|
2218
2217
|
}
|
|
@@ -2235,14 +2234,14 @@ function at(e) {
|
|
|
2235
2234
|
}
|
|
2236
2235
|
function Vo(e, t, n) {
|
|
2237
2236
|
let s;
|
|
2238
|
-
const r = N, a =
|
|
2239
|
-
|
|
2237
|
+
const r = N, a = x;
|
|
2238
|
+
x = N = e;
|
|
2240
2239
|
try {
|
|
2241
2240
|
s = e.fn(t);
|
|
2242
2241
|
} catch (i) {
|
|
2243
2242
|
return e.pure && (e.state = ve, e.owned && e.owned.forEach(ft), e.owned = null), e.updatedAt = n + 1, Mn(i);
|
|
2244
2243
|
} finally {
|
|
2245
|
-
|
|
2244
|
+
x = a, N = r;
|
|
2246
2245
|
}
|
|
2247
2246
|
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? tr(e, s) : e.value = s, e.updatedAt = n);
|
|
2248
2247
|
}
|
|
@@ -2389,7 +2388,7 @@ function Qo(e, t, n = {}) {
|
|
|
2389
2388
|
return dt(() => Wt(a)), () => {
|
|
2390
2389
|
let l = e() || [], d = l.length, u, f;
|
|
2391
2390
|
return l[js], Z(() => {
|
|
2392
|
-
let h, p, T, S,
|
|
2391
|
+
let h, p, T, S, D, y, w, v, U;
|
|
2393
2392
|
if (d === 0)
|
|
2394
2393
|
i !== 0 && (Wt(a), a = [], s = [], r = [], i = 0, o && (o = [])), n.fallback && (s = [yn], r[0] = xe((b) => (a[0] = b, n.fallback())), i = 1);
|
|
2395
2394
|
else if (i === 0) {
|
|
@@ -2397,15 +2396,15 @@ function Qo(e, t, n = {}) {
|
|
|
2397
2396
|
s[f] = l[f], r[f] = xe(g);
|
|
2398
2397
|
i = d;
|
|
2399
2398
|
} else {
|
|
2400
|
-
for (T = new Array(d), S = new Array(d), o && (
|
|
2399
|
+
for (T = new Array(d), S = new Array(d), o && (D = new Array(d)), y = 0, w = Math.min(i, d); y < w && s[y] === l[y]; y++) ;
|
|
2401
2400
|
for (w = i - 1, v = d - 1; w >= y && v >= y && s[w] === l[v]; w--, v--)
|
|
2402
|
-
T[v] = r[w], S[v] = a[w], o && (
|
|
2401
|
+
T[v] = r[w], S[v] = a[w], o && (D[v] = o[w]);
|
|
2403
2402
|
for (h = /* @__PURE__ */ new Map(), p = new Array(v + 1), f = v; f >= y; f--)
|
|
2404
2403
|
U = l[f], u = h.get(U), p[f] = u === void 0 ? -1 : u, h.set(U, f);
|
|
2405
2404
|
for (u = y; u <= w; u++)
|
|
2406
|
-
U = s[u], f = h.get(U), f !== void 0 && f !== -1 ? (T[f] = r[u], S[f] = a[u], o && (
|
|
2405
|
+
U = s[u], f = h.get(U), f !== void 0 && f !== -1 ? (T[f] = r[u], S[f] = a[u], o && (D[f] = o[u]), f = p[f], h.set(U, f)) : a[u]();
|
|
2407
2406
|
for (f = y; f < d; f++)
|
|
2408
|
-
f in T ? (r[f] = T[f], a[f] = S[f], o && (o[f] =
|
|
2407
|
+
f in T ? (r[f] = T[f], a[f] = S[f], o && (o[f] = D[f], o[f](f))) : r[f] = xe(g);
|
|
2409
2408
|
r = r.slice(0, i = d), s = l.slice(0);
|
|
2410
2409
|
}
|
|
2411
2410
|
return r;
|
|
@@ -3540,8 +3539,8 @@ var Pr = (e, t, n, s, r = [], a = [], i = /* @__PURE__ */ new Map()) => {
|
|
|
3540
3539
|
if (p === "__proto__" || p === "constructor" || p === "prototype")
|
|
3541
3540
|
throw new Error(`Detected property ${p}. This is a prototype pollution risk, please remove it from your object.`);
|
|
3542
3541
|
const T = Pr(h, t, n, s, [...r, p], [...a, e], i);
|
|
3543
|
-
u[p] = T.transformedValue, Le(T.annotations) ? f[p] = T.annotations : gt(T.annotations) && rt(T.annotations, (S,
|
|
3544
|
-
f[gr(p) + "." +
|
|
3542
|
+
u[p] = T.transformedValue, Le(T.annotations) ? f[p] = T.annotations : gt(T.annotations) && rt(T.annotations, (S, D) => {
|
|
3543
|
+
f[gr(p) + "." + D] = S;
|
|
3545
3544
|
});
|
|
3546
3545
|
});
|
|
3547
3546
|
const g = Pn(f) ? {
|
|
@@ -3587,7 +3586,7 @@ function bn(e, t = {}) {
|
|
|
3587
3586
|
return Yl(r, a, o, e, t.nonenumerable), r;
|
|
3588
3587
|
}, {});
|
|
3589
3588
|
}
|
|
3590
|
-
var
|
|
3589
|
+
var R = class {
|
|
3591
3590
|
/**
|
|
3592
3591
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
|
3593
3592
|
*/
|
|
@@ -3635,16 +3634,16 @@ var k = class {
|
|
|
3635
3634
|
this.allowedErrorProps.push(...e);
|
|
3636
3635
|
}
|
|
3637
3636
|
};
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
var Jl =
|
|
3637
|
+
R.defaultInstance = new R();
|
|
3638
|
+
R.serialize = R.defaultInstance.serialize.bind(R.defaultInstance);
|
|
3639
|
+
R.deserialize = R.defaultInstance.deserialize.bind(R.defaultInstance);
|
|
3640
|
+
R.stringify = R.defaultInstance.stringify.bind(R.defaultInstance);
|
|
3641
|
+
R.parse = R.defaultInstance.parse.bind(R.defaultInstance);
|
|
3642
|
+
R.registerClass = R.defaultInstance.registerClass.bind(R.defaultInstance);
|
|
3643
|
+
R.registerSymbol = R.defaultInstance.registerSymbol.bind(R.defaultInstance);
|
|
3644
|
+
R.registerCustom = R.defaultInstance.registerCustom.bind(R.defaultInstance);
|
|
3645
|
+
R.allowErrorProps = R.defaultInstance.allowErrorProps.bind(R.defaultInstance);
|
|
3646
|
+
var Jl = R.serialize, Su = R.stringify;
|
|
3648
3647
|
function _u(e) {
|
|
3649
3648
|
return e.state.fetchStatus === "fetching" ? "fetching" : e.getObserversCount() ? e.state.fetchStatus === "paused" ? "paused" : e.isStale() ? "stale" : "fresh" : "inactive";
|
|
3650
3649
|
}
|
|
@@ -3805,7 +3804,7 @@ var Iu = (e, t = !1) => {
|
|
|
3805
3804
|
const t = lr(() => {
|
|
3806
3805
|
const n = this, [s] = A(this, $e), [r] = A(this, Qe), [a] = A(this, ze), [i] = A(this, je), [o] = A(this, St), [l] = A(this, He);
|
|
3807
3806
|
let d;
|
|
3808
|
-
return A(this, We) ? d = A(this, We) : (d = ir(() => import("./NCMVHL6D-
|
|
3807
|
+
return A(this, We) ? d = A(this, We) : (d = ir(() => import("./NCMVHL6D-BtVmDJZQ.js")), G(this, We, d)), Ir(A(this, Tt), A(this, qe)), rr(d, ar({
|
|
3809
3808
|
get queryFlavor() {
|
|
3810
3809
|
return A(n, yt);
|
|
3811
3810
|
},
|
|
@@ -3904,7 +3903,7 @@ var Iu = (e, t = !1) => {
|
|
|
3904
3903
|
const t = lr(() => {
|
|
3905
3904
|
const n = this, [s] = A(this, Ze), [r] = A(this, Xe), [a] = A(this, et), [i] = A(this, tt), [o] = A(this, It), [l] = A(this, Ye), [d] = A(this, nt);
|
|
3906
3905
|
let u;
|
|
3907
|
-
return A(this, st) ? u = A(this, st) : (u = ir(() => import("./2AITGKQY-
|
|
3906
|
+
return A(this, st) ? u = A(this, st) : (u = ir(() => import("./2AITGKQY-jev6nZ--.js")), G(this, st, u)), Ir(A(this, bt), A(this, Je)), rr(u, ar({
|
|
3908
3907
|
get queryFlavor() {
|
|
3909
3908
|
return A(n, wt);
|
|
3910
3909
|
},
|
|
@@ -4090,7 +4089,7 @@ const ac = pe(""), ic = () => {
|
|
|
4090
4089
|
},
|
|
4091
4090
|
[e]
|
|
4092
4091
|
);
|
|
4093
|
-
}, dc = V(() => import("./page-lock-
|
|
4092
|
+
}, dc = V(() => import("./page-lock-DHoFXsEj.js")), fc = V(() => import("./no-language-page-dialog-CU_Y_GF8.js")), hc = V(() => import("./digital-asset-manager-D2DU2Arz.js")), gc = V(() => import("./save-to-lib-DZOs6H7V.js")), mc = V(() => import("./theme-panel-footer-BO6xk08X.js")), Ec = V(() => import("./web-preview-SaTB5Pss.js"));
|
|
4094
4093
|
ic();
|
|
4095
4094
|
ri();
|
|
4096
4095
|
sa(lo);
|
|
@@ -4101,10 +4100,10 @@ const pc = {
|
|
|
4101
4100
|
role: "",
|
|
4102
4101
|
permissions: null
|
|
4103
4102
|
}, ds = (e) => {
|
|
4104
|
-
const { data: t } = Eo(), n = kn(), { data: s = pc, isFetching: r } = po(), { data: a, isFetching: i } = Ce(), { data: o, isFetching: l } = oc(), { data: d, isFetching: u } = Be(), f = r || i || l || u, [g] = we(), h = g.get("page"), { data: p } = ce(), { data: T, isFetching: S } = ho(), { blocks:
|
|
4105
|
-
it.current =
|
|
4103
|
+
const { data: t } = Eo(), n = kn(), { data: s = pc, isFetching: r } = po(), { data: a, isFetching: i } = Ce(), { data: o, isFetching: l } = oc(), { data: d, isFetching: u } = Be(), f = r || i || l || u, [g] = we(), h = g.get("page"), { data: p } = ce(), { data: T, isFetching: S } = ho(), { blocks: D } = fo(T), { data: y, isFetching: w } = go(), { pageStatus: v } = he(), U = co(), { onSave: b } = yo(), { mutateAsync: ye } = lc(), { getPartialBlocks: Ae, getPartialBlockBlocks: B } = Ao(), { mutateAsync: P } = ki(), { mutateAsync: I } = mo(), j = uc(), [$, ue] = K(!1), it = Ie([]), be = q(() => H(d, "theme", {}) || {}, [d]), ot = v === ee.EDITING, Ge = v === ee.CHECKING, Bn = S || Ge || w;
|
|
4104
|
+
it.current = D;
|
|
4106
4105
|
const [Lr] = ie(ac);
|
|
4107
|
-
|
|
4106
|
+
ne(() => {
|
|
4108
4107
|
const re = () => {
|
|
4109
4108
|
document.hidden ? ue(!0) : ue(!1);
|
|
4110
4109
|
};
|
|
@@ -4148,7 +4147,7 @@ const pc = {
|
|
|
4148
4147
|
onError: e.onError || console.error,
|
|
4149
4148
|
getPartialBlockBlocks: B,
|
|
4150
4149
|
getPartialBlocks: Ae,
|
|
4151
|
-
blocks: S ? [] :
|
|
4150
|
+
blocks: S ? [] : D,
|
|
4152
4151
|
theme: qr(be),
|
|
4153
4152
|
pageTypes: a,
|
|
4154
4153
|
searchPageTypeItems: Cr,
|
|
@@ -4176,7 +4175,7 @@ const pc = {
|
|
|
4176
4175
|
}
|
|
4177
4176
|
}), Ou = (e) => {
|
|
4178
4177
|
const [, t] = Gn(), [n, s] = K(!1);
|
|
4179
|
-
return
|
|
4178
|
+
return ne(() => (t(
|
|
4180
4179
|
In(e, [
|
|
4181
4180
|
"apiUrl",
|
|
4182
4181
|
"usersApiUrl",
|
|
@@ -4277,7 +4276,7 @@ const Du = () => {
|
|
|
4277
4276
|
console.error("Failed to update metadata");
|
|
4278
4277
|
}
|
|
4279
4278
|
});
|
|
4280
|
-
}, Sc = V(() => import("./digital-asset-manager-
|
|
4279
|
+
}, Sc = V(() => import("./digital-asset-manager-D2DU2Arz.js")), ku = ({
|
|
4281
4280
|
assetId: e,
|
|
4282
4281
|
assetUrl: t,
|
|
4283
4282
|
onChange: n,
|
|
@@ -4504,7 +4503,7 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4504
4503
|
n = n.replace(r[0], i);
|
|
4505
4504
|
}
|
|
4506
4505
|
return n;
|
|
4507
|
-
}, Lc = V(() => import("./shared-json-ld-
|
|
4506
|
+
}, Lc = V(() => import("./shared-json-ld-Bs_lzQ6G.js")), Uu = ({
|
|
4508
4507
|
value: e,
|
|
4509
4508
|
onChange: t,
|
|
4510
4509
|
disabled: n = !1,
|
|
@@ -4517,8 +4516,8 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4517
4516
|
hasJsonLdForSelectedLang: d,
|
|
4518
4517
|
copyJsonLDFromDefaultPage: u
|
|
4519
4518
|
}) => {
|
|
4520
|
-
const [f, g] = K("edit"), [h, p] = K(null), [T, S] = K(""),
|
|
4521
|
-
|
|
4519
|
+
const [f, g] = K("edit"), [h, p] = K(null), [T, S] = K(""), D = Ie(null), [y] = Gn(), w = i === "jsonLD" && H(y, "features.sharedJsonLD", !1), v = i === "jsonLD" && !d && !!u;
|
|
4520
|
+
ne(() => {
|
|
4522
4521
|
e.trim() === "" && t("{}");
|
|
4523
4522
|
}, [e, t]);
|
|
4524
4523
|
const U = (B) => {
|
|
@@ -4553,7 +4552,7 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4553
4552
|
}
|
|
4554
4553
|
}
|
|
4555
4554
|
};
|
|
4556
|
-
|
|
4555
|
+
ne(() => {
|
|
4557
4556
|
const B = fs(e);
|
|
4558
4557
|
if (B.isValid)
|
|
4559
4558
|
if (p(null), B.parsed) {
|
|
@@ -4571,7 +4570,7 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4571
4570
|
t(P);
|
|
4572
4571
|
}
|
|
4573
4572
|
}, Ae = () => {
|
|
4574
|
-
h != null && h.position &&
|
|
4573
|
+
h != null && h.position && D.current && (D.current.focus(), D.current.setSelectionRange(h.position, h.position + 1));
|
|
4575
4574
|
};
|
|
4576
4575
|
return /* @__PURE__ */ c(Pc, { fallback: /* @__PURE__ */ c("div", { children: "Some error" }), children: /* @__PURE__ */ c("div", { className: "space-y-2", children: /* @__PURE__ */ m(Na, { value: f, onValueChange: g, className: "w-full", children: [
|
|
4577
4576
|
/* @__PURE__ */ m("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
@@ -4636,7 +4635,7 @@ const vc = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), fs = (e) => {
|
|
|
4636
4635
|
] }) }) : /* @__PURE__ */ c(
|
|
4637
4636
|
Qn,
|
|
4638
4637
|
{
|
|
4639
|
-
ref:
|
|
4638
|
+
ref: D,
|
|
4640
4639
|
id: i,
|
|
4641
4640
|
name: i,
|
|
4642
4641
|
className: `rounded-md border border-input text-xs ${h ? "border-red-500" : ""}`,
|
|
@@ -4703,7 +4702,7 @@ export {
|
|
|
4703
4702
|
Fs as B,
|
|
4704
4703
|
F as C,
|
|
4705
4704
|
ol as D,
|
|
4706
|
-
|
|
4705
|
+
se as E,
|
|
4707
4706
|
Js as F,
|
|
4708
4707
|
ar as G,
|
|
4709
4708
|
Wo as H,
|