@strapi/plugin-users-permissions 5.0.0-alpha.1 → 5.0.0-alpha.2
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/_chunks/{EditViewPage-kgrZ8rEg-6k5dfk_x.js → EditViewPage-JFzIJClS-9jnyNYlZ.js} +163 -163
- package/dist/_chunks/{EditViewPage-kgrZ8rEg-6k5dfk_x.js.map → EditViewPage-JFzIJClS-9jnyNYlZ.js.map} +1 -1
- package/dist/_chunks/{EditViewPage-kgrZ8rEg-GlayP0Uq.mjs → EditViewPage-JFzIJClS-SluImrzz.mjs} +3 -3
- package/dist/_chunks/{EditViewPage-kgrZ8rEg-GlayP0Uq.mjs.map → EditViewPage-JFzIJClS-SluImrzz.mjs.map} +1 -1
- package/dist/_chunks/{ListViewPage-BNB0ptO7-TUQO_9Hj.js → ListViewPage-1VNVP9Rw-94jqnla4.js} +103 -103
- package/dist/_chunks/{ListViewPage-BNB0ptO7-TUQO_9Hj.js.map → ListViewPage-1VNVP9Rw-94jqnla4.js.map} +1 -1
- package/dist/_chunks/{ListViewPage-BNB0ptO7-t1ra9JlI.mjs → ListViewPage-1VNVP9Rw-Ce-HkFp1.mjs} +6 -6
- package/dist/_chunks/{ListViewPage-BNB0ptO7-t1ra9JlI.mjs.map → ListViewPage-1VNVP9Rw-Ce-HkFp1.mjs.map} +1 -1
- package/dist/_chunks/{ReviewWorkflowsColumn-56Z6l-FH-mpkuW-HV.mjs → ReviewWorkflowsColumn-sPZxvFUd-Cd4JhTlj.mjs} +2 -2
- package/dist/_chunks/{ReviewWorkflowsColumn-56Z6l-FH-mpkuW-HV.mjs.map → ReviewWorkflowsColumn-sPZxvFUd-Cd4JhTlj.mjs.map} +1 -1
- package/dist/_chunks/{ReviewWorkflowsColumn-56Z6l-FH-3Dq1lGu9.js → ReviewWorkflowsColumn-sPZxvFUd-S2eFi9Dy.js} +5 -5
- package/dist/_chunks/{ReviewWorkflowsColumn-56Z6l-FH-3Dq1lGu9.js.map → ReviewWorkflowsColumn-sPZxvFUd-S2eFi9Dy.js.map} +1 -1
- package/dist/_chunks/{constants-evLWZCaJ-0QLv9QPI.mjs → constants-0OGkpIzK-R5N7-OUr.mjs} +2 -2
- package/dist/_chunks/{constants-evLWZCaJ-0QLv9QPI.mjs.map → constants-0OGkpIzK-R5N7-OUr.mjs.map} +1 -1
- package/dist/_chunks/{constants-evLWZCaJ-dGs71EWl.js → constants-0OGkpIzK-f_M9PDKN.js} +18 -18
- package/dist/_chunks/{constants-evLWZCaJ-dGs71EWl.js.map → constants-0OGkpIzK-f_M9PDKN.js.map} +1 -1
- package/dist/_chunks/{index-Bg2Rf_5y.js → index-6X9XaLjS.js} +4 -4
- package/dist/_chunks/{index-Bg2Rf_5y.js.map → index-6X9XaLjS.js.map} +1 -1
- package/dist/_chunks/{index-YFPS5vYF-cugkJcLS.mjs → index-GIVuHJgC-_q6V7_2B.mjs} +3 -3
- package/dist/_chunks/{index-YFPS5vYF-cugkJcLS.mjs.map → index-GIVuHJgC-_q6V7_2B.mjs.map} +1 -1
- package/dist/_chunks/{index-YFPS5vYF-ZGkR3L1g.js → index-GIVuHJgC-tj2acNbO.js} +3 -3
- package/dist/_chunks/{index-YFPS5vYF-ZGkR3L1g.js.map → index-GIVuHJgC-tj2acNbO.js.map} +1 -1
- package/dist/_chunks/{index-yKMi8hKt.js → index-Q5NQ4RI9.js} +10 -10
- package/dist/_chunks/{index-yKMi8hKt.js.map → index-Q5NQ4RI9.js.map} +1 -1
- package/dist/_chunks/{index-6E51D69B.js → index-RT4MW9Nr.js} +2 -2
- package/dist/_chunks/{index-6E51D69B.js.map → index-RT4MW9Nr.js.map} +1 -1
- package/dist/_chunks/{index-hG66XSuA.mjs → index-av_iGW-0.mjs} +2 -2
- package/dist/_chunks/{index-hG66XSuA.mjs.map → index-av_iGW-0.mjs.map} +1 -1
- package/dist/_chunks/{index-ylhaoJtw.js → index-heeE_h30.js} +4 -4
- package/dist/_chunks/{index-ylhaoJtw.js.map → index-heeE_h30.js.map} +1 -1
- package/dist/_chunks/{index-xt3l4qU9.mjs → index-iaIILeuQ.mjs} +10 -10
- package/dist/_chunks/{index-xt3l4qU9.mjs.map → index-iaIILeuQ.mjs.map} +1 -1
- package/dist/_chunks/{index-R05CeNXG.mjs → index-pDvppjQG.mjs} +3 -3
- package/dist/_chunks/{index-R05CeNXG.mjs.map → index-pDvppjQG.mjs.map} +1 -1
- package/dist/_chunks/{index-LpFmy25n.js → index-tFzYCM9l.js} +2 -2
- package/dist/_chunks/{index-LpFmy25n.js.map → index-tFzYCM9l.js.map} +1 -1
- package/dist/_chunks/{index-aEKi1Qb9.mjs → index-vvcDunmb.mjs} +3 -3
- package/dist/_chunks/{index-aEKi1Qb9.mjs.map → index-vvcDunmb.mjs.map} +1 -1
- package/dist/_chunks/{index-BGIcvvEB.mjs → index-whB2wk2v.mjs} +2 -2
- package/dist/_chunks/{index-BGIcvvEB.mjs.map → index-whB2wk2v.mjs.map} +1 -1
- package/dist/_chunks/{useSyncRbac-83vFRiaG-ov11t-T1.mjs → useSyncRbac-JNQibLFa-D0RzXrU4.mjs} +2 -2
- package/dist/_chunks/{useSyncRbac-83vFRiaG-ov11t-T1.mjs.map → useSyncRbac-JNQibLFa-D0RzXrU4.mjs.map} +1 -1
- package/dist/_chunks/{useSyncRbac-83vFRiaG-YY4KQcAU.js → useSyncRbac-JNQibLFa-G2N9BPgu.js} +7 -7
- package/dist/_chunks/{useSyncRbac-83vFRiaG-YY4KQcAU.js.map → useSyncRbac-JNQibLFa-G2N9BPgu.js.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +6 -6
package/dist/_chunks/{EditViewPage-kgrZ8rEg-6k5dfk_x.js → EditViewPage-JFzIJClS-9jnyNYlZ.js}
RENAMED
|
@@ -7,7 +7,7 @@ const Helmet = require("./Helmet-d9JljxUo.js");
|
|
|
7
7
|
const reactIntl = require("react-intl");
|
|
8
8
|
const reactRouterDom = require("react-router-dom");
|
|
9
9
|
const styled = require("styled-components");
|
|
10
|
-
const
|
|
10
|
+
const indexGIVuHJgC = require("./index-GIVuHJgC-tj2acNbO.js");
|
|
11
11
|
const Icons = require("@strapi/icons");
|
|
12
12
|
const createNextState2 = require("immer");
|
|
13
13
|
const debounce = require("lodash/debounce");
|
|
@@ -19,7 +19,7 @@ const require$$2$1 = require("path");
|
|
|
19
19
|
const require$$1$1 = require("url");
|
|
20
20
|
const require$$1 = require("fs");
|
|
21
21
|
const require$$8 = require("punycode");
|
|
22
|
-
const
|
|
22
|
+
const useSyncRbacJNQibLFa = require("./useSyncRbac-JNQibLFa-G2N9BPgu.js");
|
|
23
23
|
const _interopDefault = (e2) => e2 && e2.__esModule ? e2 : { default: e2 };
|
|
24
24
|
function _interopNamespace(e2) {
|
|
25
25
|
if (e2 && e2.__esModule)
|
|
@@ -10386,11 +10386,11 @@ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ React.forwardR
|
|
|
10386
10386
|
} else
|
|
10387
10387
|
return child2;
|
|
10388
10388
|
});
|
|
10389
|
-
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone,
|
|
10389
|
+
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone, indexGIVuHJgC._extends({}, slotProps, {
|
|
10390
10390
|
ref: forwardedRef
|
|
10391
10391
|
}), /* @__PURE__ */ React.isValidElement(newElement) ? /* @__PURE__ */ React.cloneElement(newElement, void 0, newChildren) : null);
|
|
10392
10392
|
}
|
|
10393
|
-
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone,
|
|
10393
|
+
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone, indexGIVuHJgC._extends({}, slotProps, {
|
|
10394
10394
|
ref: forwardedRef
|
|
10395
10395
|
}), children);
|
|
10396
10396
|
});
|
|
@@ -10445,7 +10445,7 @@ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
|
|
|
10445
10445
|
}
|
|
10446
10446
|
function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name2) {
|
|
10447
10447
|
const PROVIDER_NAME = name2 + "CollectionProvider";
|
|
10448
|
-
const [createCollectionContext, createCollectionScope] =
|
|
10448
|
+
const [createCollectionContext, createCollectionScope] = indexGIVuHJgC.$c512c27ab02ef895$export$50c7b4e9d9f19c1(PROVIDER_NAME);
|
|
10449
10449
|
const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(PROVIDER_NAME, {
|
|
10450
10450
|
collectionRef: {
|
|
10451
10451
|
current: null
|
|
@@ -10559,7 +10559,7 @@ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.re
|
|
|
10559
10559
|
React.useEffect(() => {
|
|
10560
10560
|
window[Symbol.for("radix-ui")] = true;
|
|
10561
10561
|
}, []);
|
|
10562
|
-
return /* @__PURE__ */ React.createElement(Comp,
|
|
10562
|
+
return /* @__PURE__ */ React.createElement(Comp, indexGIVuHJgC._extends({}, primitiveProps, {
|
|
10563
10563
|
ref: forwardedRef
|
|
10564
10564
|
}));
|
|
10565
10565
|
});
|
|
@@ -10639,7 +10639,7 @@ const $d7bdfb9eb0fdf311$var$EVENT_OPTIONS = {
|
|
|
10639
10639
|
};
|
|
10640
10640
|
const $d7bdfb9eb0fdf311$var$GROUP_NAME = "RovingFocusGroup";
|
|
10641
10641
|
const [$d7bdfb9eb0fdf311$var$Collection, $d7bdfb9eb0fdf311$var$useCollection, $d7bdfb9eb0fdf311$var$createCollectionScope] = $e02a7d9cb1dc128c$export$c74125a8e3af6bb2($d7bdfb9eb0fdf311$var$GROUP_NAME);
|
|
10642
|
-
const [$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext, $d7bdfb9eb0fdf311$export$c7109489551a4f4] =
|
|
10642
|
+
const [$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext, $d7bdfb9eb0fdf311$export$c7109489551a4f4] = indexGIVuHJgC.$c512c27ab02ef895$export$50c7b4e9d9f19c1($d7bdfb9eb0fdf311$var$GROUP_NAME, [
|
|
10643
10643
|
$d7bdfb9eb0fdf311$var$createCollectionScope
|
|
10644
10644
|
]);
|
|
10645
10645
|
const [$d7bdfb9eb0fdf311$var$RovingFocusProvider, $d7bdfb9eb0fdf311$var$useRovingFocusContext] = $d7bdfb9eb0fdf311$var$createRovingFocusGroupContext($d7bdfb9eb0fdf311$var$GROUP_NAME);
|
|
@@ -10648,7 +10648,7 @@ const $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /* @__PURE__ */ React.forwardR
|
|
|
10648
10648
|
scope: props.__scopeRovingFocusGroup
|
|
10649
10649
|
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$var$Collection.Slot, {
|
|
10650
10650
|
scope: props.__scopeRovingFocusGroup
|
|
10651
|
-
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl,
|
|
10651
|
+
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, indexGIVuHJgC._extends({}, props, {
|
|
10652
10652
|
ref: forwardedRef
|
|
10653
10653
|
}))));
|
|
10654
10654
|
});
|
|
@@ -10704,7 +10704,7 @@ const $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /* @__PURE__ */ React.forward
|
|
|
10704
10704
|
),
|
|
10705
10705
|
[]
|
|
10706
10706
|
)
|
|
10707
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,
|
|
10707
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, indexGIVuHJgC._extends({
|
|
10708
10708
|
tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
|
|
10709
10709
|
"data-orientation": orientation
|
|
10710
10710
|
}, groupProps, {
|
|
@@ -10774,7 +10774,7 @@ const $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /* @__PURE__ */ React.forwardRe
|
|
|
10774
10774
|
id: id2,
|
|
10775
10775
|
focusable,
|
|
10776
10776
|
active
|
|
10777
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span,
|
|
10777
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, indexGIVuHJgC._extends({
|
|
10778
10778
|
tabIndex: isCurrentTabStop ? 0 : -1,
|
|
10779
10779
|
"data-orientation": context.orientation
|
|
10780
10780
|
}, itemProps, {
|
|
@@ -10881,7 +10881,7 @@ const $89eedd556c436f6a$export$1ff3c3f08ae963c0 = /* @__PURE__ */ React.forwardR
|
|
|
10881
10881
|
"aria-orientation": ariaOrientation,
|
|
10882
10882
|
role: "separator"
|
|
10883
10883
|
};
|
|
10884
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,
|
|
10884
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, indexGIVuHJgC._extends({
|
|
10885
10885
|
"data-orientation": orientation
|
|
10886
10886
|
}, semanticProps, domProps, {
|
|
10887
10887
|
ref: forwardedRef
|
|
@@ -10914,7 +10914,7 @@ const $b3bbe2732c13b576$export$bea8ebba691c5813 = /* @__PURE__ */ React.forwardR
|
|
|
10914
10914
|
onChange: onPressedChange,
|
|
10915
10915
|
defaultProp: defaultPressed
|
|
10916
10916
|
});
|
|
10917
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button,
|
|
10917
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, indexGIVuHJgC._extends({
|
|
10918
10918
|
type: "button",
|
|
10919
10919
|
"aria-pressed": pressed,
|
|
10920
10920
|
"data-state": pressed ? "on" : "off",
|
|
@@ -10928,7 +10928,7 @@ const $b3bbe2732c13b576$export$bea8ebba691c5813 = /* @__PURE__ */ React.forwardR
|
|
|
10928
10928
|
}));
|
|
10929
10929
|
});
|
|
10930
10930
|
const $6c1fd9e6a8969628$var$TOGGLE_GROUP_NAME = "ToggleGroup";
|
|
10931
|
-
const [$6c1fd9e6a8969628$var$createToggleGroupContext, $6c1fd9e6a8969628$export$d1c7c4bcd9f26dd4] =
|
|
10931
|
+
const [$6c1fd9e6a8969628$var$createToggleGroupContext, $6c1fd9e6a8969628$export$d1c7c4bcd9f26dd4] = indexGIVuHJgC.$c512c27ab02ef895$export$50c7b4e9d9f19c1($6c1fd9e6a8969628$var$TOGGLE_GROUP_NAME, [
|
|
10932
10932
|
$d7bdfb9eb0fdf311$export$c7109489551a4f4
|
|
10933
10933
|
]);
|
|
10934
10934
|
const $6c1fd9e6a8969628$var$useRovingFocusGroupScope = $d7bdfb9eb0fdf311$export$c7109489551a4f4();
|
|
@@ -10936,13 +10936,13 @@ const $6c1fd9e6a8969628$export$af3ec21f6cfb5e30 = /* @__PURE__ */ React__namespa
|
|
|
10936
10936
|
const { type, ...toggleGroupProps } = props;
|
|
10937
10937
|
if (type === "single") {
|
|
10938
10938
|
const singleProps = toggleGroupProps;
|
|
10939
|
-
return /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImplSingle,
|
|
10939
|
+
return /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImplSingle, indexGIVuHJgC._extends({}, singleProps, {
|
|
10940
10940
|
ref: forwardedRef
|
|
10941
10941
|
}));
|
|
10942
10942
|
}
|
|
10943
10943
|
if (type === "multiple") {
|
|
10944
10944
|
const multipleProps = toggleGroupProps;
|
|
10945
|
-
return /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImplMultiple,
|
|
10945
|
+
return /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImplMultiple, indexGIVuHJgC._extends({}, multipleProps, {
|
|
10946
10946
|
ref: forwardedRef
|
|
10947
10947
|
}));
|
|
10948
10948
|
}
|
|
@@ -10970,7 +10970,7 @@ const $6c1fd9e6a8969628$var$ToggleGroupImplSingle = /* @__PURE__ */ React__names
|
|
|
10970
10970
|
setValue
|
|
10971
10971
|
]
|
|
10972
10972
|
)
|
|
10973
|
-
}, /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl,
|
|
10973
|
+
}, /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl, indexGIVuHJgC._extends({}, toggleGroupSingleProps, {
|
|
10974
10974
|
ref: forwardedRef
|
|
10975
10975
|
})));
|
|
10976
10976
|
});
|
|
@@ -11009,7 +11009,7 @@ const $6c1fd9e6a8969628$var$ToggleGroupImplMultiple = /* @__PURE__ */ React__nam
|
|
|
11009
11009
|
value: value1,
|
|
11010
11010
|
onItemActivate: handleButtonActivate,
|
|
11011
11011
|
onItemDeactivate: handleButtonDeactivate
|
|
11012
|
-
}, /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl,
|
|
11012
|
+
}, /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl, indexGIVuHJgC._extends({}, toggleGroupMultipleProps, {
|
|
11013
11013
|
ref: forwardedRef
|
|
11014
11014
|
})));
|
|
11015
11015
|
});
|
|
@@ -11027,15 +11027,15 @@ const $6c1fd9e6a8969628$var$ToggleGroupImpl = /* @__PURE__ */ React__namespace.d
|
|
|
11027
11027
|
scope: __scopeToggleGroup,
|
|
11028
11028
|
rovingFocus,
|
|
11029
11029
|
disabled
|
|
11030
|
-
}, rovingFocus ? /* @__PURE__ */ React__namespace.default.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9,
|
|
11030
|
+
}, rovingFocus ? /* @__PURE__ */ React__namespace.default.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, indexGIVuHJgC._extends({
|
|
11031
11031
|
asChild: true
|
|
11032
11032
|
}, rovingFocusGroupScope, {
|
|
11033
11033
|
orientation,
|
|
11034
11034
|
dir: direction2,
|
|
11035
11035
|
loop: loop2
|
|
11036
|
-
}), /* @__PURE__ */ React__namespace.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,
|
|
11036
|
+
}), /* @__PURE__ */ React__namespace.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, indexGIVuHJgC._extends({}, commonProps, {
|
|
11037
11037
|
ref: forwardedRef
|
|
11038
|
-
}))) : /* @__PURE__ */ React__namespace.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,
|
|
11038
|
+
}))) : /* @__PURE__ */ React__namespace.default.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, indexGIVuHJgC._extends({}, commonProps, {
|
|
11039
11039
|
ref: forwardedRef
|
|
11040
11040
|
})));
|
|
11041
11041
|
});
|
|
@@ -11052,15 +11052,15 @@ const $6c1fd9e6a8969628$export$b453109e13abe10b = /* @__PURE__ */ React__namespa
|
|
|
11052
11052
|
disabled
|
|
11053
11053
|
};
|
|
11054
11054
|
const ref = React__namespace.default.useRef(null);
|
|
11055
|
-
return context.rovingFocus ? /* @__PURE__ */ React__namespace.default.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2,
|
|
11055
|
+
return context.rovingFocus ? /* @__PURE__ */ React__namespace.default.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, indexGIVuHJgC._extends({
|
|
11056
11056
|
asChild: true
|
|
11057
11057
|
}, rovingFocusGroupScope, {
|
|
11058
11058
|
focusable: !disabled,
|
|
11059
11059
|
active: pressed,
|
|
11060
11060
|
ref
|
|
11061
|
-
}), /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl,
|
|
11061
|
+
}), /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl, indexGIVuHJgC._extends({}, commonProps, {
|
|
11062
11062
|
ref: forwardedRef
|
|
11063
|
-
}))) : /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl,
|
|
11063
|
+
}))) : /* @__PURE__ */ React__namespace.default.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl, indexGIVuHJgC._extends({}, commonProps, {
|
|
11064
11064
|
ref: forwardedRef
|
|
11065
11065
|
}));
|
|
11066
11066
|
});
|
|
@@ -11073,7 +11073,7 @@ const $6c1fd9e6a8969628$var$ToggleGroupItemImpl = /* @__PURE__ */ React__namespa
|
|
|
11073
11073
|
"aria-pressed": void 0
|
|
11074
11074
|
};
|
|
11075
11075
|
const typeProps = valueContext.type === "single" ? singleProps : void 0;
|
|
11076
|
-
return /* @__PURE__ */ React__namespace.default.createElement($b3bbe2732c13b576$export$bea8ebba691c5813,
|
|
11076
|
+
return /* @__PURE__ */ React__namespace.default.createElement($b3bbe2732c13b576$export$bea8ebba691c5813, indexGIVuHJgC._extends({}, typeProps, itemProps, {
|
|
11077
11077
|
ref: forwardedRef,
|
|
11078
11078
|
onPressedChange: (pressed) => {
|
|
11079
11079
|
if (pressed)
|
|
@@ -11086,7 +11086,7 @@ const $6c1fd9e6a8969628$var$ToggleGroupItemImpl = /* @__PURE__ */ React__namespa
|
|
|
11086
11086
|
const $6c1fd9e6a8969628$export$be92b6f5f03c0fe9 = $6c1fd9e6a8969628$export$af3ec21f6cfb5e30;
|
|
11087
11087
|
const $6c1fd9e6a8969628$export$6d08773d2e66f8f2 = $6c1fd9e6a8969628$export$b453109e13abe10b;
|
|
11088
11088
|
const $3dc4ded751c8bdfb$var$TOOLBAR_NAME = "Toolbar";
|
|
11089
|
-
const [$3dc4ded751c8bdfb$var$createToolbarContext, $3dc4ded751c8bdfb$export$233e637670877d91] =
|
|
11089
|
+
const [$3dc4ded751c8bdfb$var$createToolbarContext, $3dc4ded751c8bdfb$export$233e637670877d91] = indexGIVuHJgC.$c512c27ab02ef895$export$50c7b4e9d9f19c1($3dc4ded751c8bdfb$var$TOOLBAR_NAME, [
|
|
11090
11090
|
$d7bdfb9eb0fdf311$export$c7109489551a4f4,
|
|
11091
11091
|
$6c1fd9e6a8969628$export$d1c7c4bcd9f26dd4
|
|
11092
11092
|
]);
|
|
@@ -11101,13 +11101,13 @@ const $3dc4ded751c8bdfb$export$4c260019440d418f = /* @__PURE__ */ React.forwardR
|
|
|
11101
11101
|
scope: __scopeToolbar,
|
|
11102
11102
|
orientation,
|
|
11103
11103
|
dir: direction2
|
|
11104
|
-
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9,
|
|
11104
|
+
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, indexGIVuHJgC._extends({
|
|
11105
11105
|
asChild: true
|
|
11106
11106
|
}, rovingFocusGroupScope, {
|
|
11107
11107
|
orientation,
|
|
11108
11108
|
dir: direction2,
|
|
11109
11109
|
loop: loop2
|
|
11110
|
-
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,
|
|
11110
|
+
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, indexGIVuHJgC._extends({
|
|
11111
11111
|
role: "toolbar",
|
|
11112
11112
|
"aria-orientation": orientation,
|
|
11113
11113
|
dir: direction2
|
|
@@ -11119,7 +11119,7 @@ const $3dc4ded751c8bdfb$var$SEPARATOR_NAME = "ToolbarSeparator";
|
|
|
11119
11119
|
const $3dc4ded751c8bdfb$export$291e1a31e8ec7868 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
11120
11120
|
const { __scopeToolbar, ...separatorProps } = props;
|
|
11121
11121
|
const context = $3dc4ded751c8bdfb$var$useToolbarContext($3dc4ded751c8bdfb$var$SEPARATOR_NAME, __scopeToolbar);
|
|
11122
|
-
return /* @__PURE__ */ React.createElement($89eedd556c436f6a$export$be92b6f5f03c0fe9,
|
|
11122
|
+
return /* @__PURE__ */ React.createElement($89eedd556c436f6a$export$be92b6f5f03c0fe9, indexGIVuHJgC._extends({
|
|
11123
11123
|
orientation: context.orientation === "horizontal" ? "vertical" : "horizontal"
|
|
11124
11124
|
}, separatorProps, {
|
|
11125
11125
|
ref: forwardedRef
|
|
@@ -11128,11 +11128,11 @@ const $3dc4ded751c8bdfb$export$291e1a31e8ec7868 = /* @__PURE__ */ React.forwardR
|
|
|
11128
11128
|
const $3dc4ded751c8bdfb$export$e5c1a33878e86e9e = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
11129
11129
|
const { __scopeToolbar, ...buttonProps } = props;
|
|
11130
11130
|
const rovingFocusGroupScope = $3dc4ded751c8bdfb$var$useRovingFocusGroupScope(__scopeToolbar);
|
|
11131
|
-
return /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2,
|
|
11131
|
+
return /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, indexGIVuHJgC._extends({
|
|
11132
11132
|
asChild: true
|
|
11133
11133
|
}, rovingFocusGroupScope, {
|
|
11134
11134
|
focusable: !props.disabled
|
|
11135
|
-
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button,
|
|
11135
|
+
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, indexGIVuHJgC._extends({
|
|
11136
11136
|
type: "button"
|
|
11137
11137
|
}, buttonProps, {
|
|
11138
11138
|
ref: forwardedRef
|
|
@@ -11143,7 +11143,7 @@ const $3dc4ded751c8bdfb$export$aeae28cb17562c0b = /* @__PURE__ */ React.forwardR
|
|
|
11143
11143
|
const { __scopeToolbar, ...toggleGroupProps } = props;
|
|
11144
11144
|
const context = $3dc4ded751c8bdfb$var$useToolbarContext($3dc4ded751c8bdfb$var$TOGGLE_GROUP_NAME, __scopeToolbar);
|
|
11145
11145
|
const toggleGroupScope = $3dc4ded751c8bdfb$var$useToggleGroupScope(__scopeToolbar);
|
|
11146
|
-
return /* @__PURE__ */ React.createElement($6c1fd9e6a8969628$export$be92b6f5f03c0fe9,
|
|
11146
|
+
return /* @__PURE__ */ React.createElement($6c1fd9e6a8969628$export$be92b6f5f03c0fe9, indexGIVuHJgC._extends({
|
|
11147
11147
|
"data-orientation": context.orientation,
|
|
11148
11148
|
dir: context.dir
|
|
11149
11149
|
}, toggleGroupScope, toggleGroupProps, {
|
|
@@ -11157,9 +11157,9 @@ const $3dc4ded751c8bdfb$export$546b879b639844a1 = /* @__PURE__ */ React.forwardR
|
|
|
11157
11157
|
const scope = {
|
|
11158
11158
|
__scopeToolbar: props.__scopeToolbar
|
|
11159
11159
|
};
|
|
11160
|
-
return /* @__PURE__ */ React.createElement($3dc4ded751c8bdfb$export$e5c1a33878e86e9e,
|
|
11160
|
+
return /* @__PURE__ */ React.createElement($3dc4ded751c8bdfb$export$e5c1a33878e86e9e, indexGIVuHJgC._extends({
|
|
11161
11161
|
asChild: true
|
|
11162
|
-
}, scope), /* @__PURE__ */ React.createElement($6c1fd9e6a8969628$export$6d08773d2e66f8f2,
|
|
11162
|
+
}, scope), /* @__PURE__ */ React.createElement($6c1fd9e6a8969628$export$6d08773d2e66f8f2, indexGIVuHJgC._extends({}, toggleGroupScope, toggleItemProps, {
|
|
11163
11163
|
ref: forwardedRef
|
|
11164
11164
|
})));
|
|
11165
11165
|
});
|
|
@@ -25607,7 +25607,7 @@ picocolors_browser.exports = create();
|
|
|
25607
25607
|
picocolors_browser.exports.createColors = create;
|
|
25608
25608
|
var picocolors_browserExports = picocolors_browser.exports;
|
|
25609
25609
|
let pico = picocolors_browserExports;
|
|
25610
|
-
let terminalHighlight$1 =
|
|
25610
|
+
let terminalHighlight$1 = indexGIVuHJgC.require$$0;
|
|
25611
25611
|
let CssSyntaxError$3 = class CssSyntaxError extends Error {
|
|
25612
25612
|
constructor(message, line, column, source2, file, plugin2) {
|
|
25613
25613
|
super(message);
|
|
@@ -26379,7 +26379,7 @@ let nanoid$1 = (size2 = 21) => {
|
|
|
26379
26379
|
return id2;
|
|
26380
26380
|
};
|
|
26381
26381
|
var nonSecure = { nanoid: nanoid$1, customAlphabet };
|
|
26382
|
-
let { SourceMapConsumer: SourceMapConsumer$2, SourceMapGenerator: SourceMapGenerator$2 } =
|
|
26382
|
+
let { SourceMapConsumer: SourceMapConsumer$2, SourceMapGenerator: SourceMapGenerator$2 } = indexGIVuHJgC.require$$0;
|
|
26383
26383
|
let { existsSync, readFileSync } = require$$1__default.default;
|
|
26384
26384
|
let { dirname: dirname$1, join: join$1 } = require$$2__default.default;
|
|
26385
26385
|
function fromBase64(str) {
|
|
@@ -26498,11 +26498,11 @@ let PreviousMap$2 = class PreviousMap {
|
|
|
26498
26498
|
};
|
|
26499
26499
|
var previousMap = PreviousMap$2;
|
|
26500
26500
|
PreviousMap$2.default = PreviousMap$2;
|
|
26501
|
-
let { SourceMapConsumer: SourceMapConsumer$1, SourceMapGenerator: SourceMapGenerator$1 } =
|
|
26501
|
+
let { SourceMapConsumer: SourceMapConsumer$1, SourceMapGenerator: SourceMapGenerator$1 } = indexGIVuHJgC.require$$0;
|
|
26502
26502
|
let { fileURLToPath, pathToFileURL: pathToFileURL$1 } = require$$1__default$1.default;
|
|
26503
26503
|
let { isAbsolute, resolve: resolve$1 } = require$$2__default.default;
|
|
26504
26504
|
let { nanoid } = nonSecure;
|
|
26505
|
-
let terminalHighlight =
|
|
26505
|
+
let terminalHighlight = indexGIVuHJgC.require$$0;
|
|
26506
26506
|
let CssSyntaxError$1 = cssSyntaxError;
|
|
26507
26507
|
let PreviousMap$1 = previousMap;
|
|
26508
26508
|
let fromOffsetCache = Symbol("fromOffsetCache");
|
|
@@ -26704,7 +26704,7 @@ Input$4.default = Input$4;
|
|
|
26704
26704
|
if (terminalHighlight && terminalHighlight.registerInput) {
|
|
26705
26705
|
terminalHighlight.registerInput(Input$4);
|
|
26706
26706
|
}
|
|
26707
|
-
let { SourceMapConsumer, SourceMapGenerator } =
|
|
26707
|
+
let { SourceMapConsumer, SourceMapGenerator } = indexGIVuHJgC.require$$0;
|
|
26708
26708
|
let { dirname, relative, resolve, sep } = require$$2__default.default;
|
|
26709
26709
|
let { pathToFileURL } = require$$1__default$1.default;
|
|
26710
26710
|
let Input$3 = input;
|
|
@@ -79010,7 +79010,7 @@ const useLazyComponents = (componentUids = []) => {
|
|
|
79010
79010
|
const [lazyComponentStore, setLazyComponentStore] = React.useState(Object.fromEntries(componentStore));
|
|
79011
79011
|
const newUids = componentUids.filter((uid) => !componentStore.get(uid));
|
|
79012
79012
|
const [loading, setLoading] = React.useState(() => !!newUids.length);
|
|
79013
|
-
const getCustomField =
|
|
79013
|
+
const getCustomField = indexGIVuHJgC.useStrapiApp("useLazyComponents", (state) => state.customFields.get);
|
|
79014
79014
|
React.useEffect(() => {
|
|
79015
79015
|
const setStore = (store) => {
|
|
79016
79016
|
setLazyComponentStore(store);
|
|
@@ -79312,7 +79312,7 @@ const Image = ({ attributes, children, element }) => {
|
|
|
79312
79312
|
const ImageDialog = () => {
|
|
79313
79313
|
const [isOpen, setIsOpen] = React__namespace.useState(true);
|
|
79314
79314
|
const { editor } = useBlocksEditorContext("ImageDialog");
|
|
79315
|
-
const components =
|
|
79315
|
+
const components = indexGIVuHJgC.useStrapiApp("ImageDialog", (state) => state.components);
|
|
79316
79316
|
if (!components || !isOpen)
|
|
79317
79317
|
return null;
|
|
79318
79318
|
const MediaLibraryDialog = components["media-library"];
|
|
@@ -79350,7 +79350,7 @@ const ImageDialog = () => {
|
|
|
79350
79350
|
const nodeImage = {
|
|
79351
79351
|
...expectedImage,
|
|
79352
79352
|
alternativeText: expectedImage.alternativeText || expectedImage.name,
|
|
79353
|
-
url:
|
|
79353
|
+
url: indexGIVuHJgC.prefixFileUrlWithBackendUrl(image3.url)
|
|
79354
79354
|
};
|
|
79355
79355
|
return nodeImage;
|
|
79356
79356
|
});
|
|
@@ -80329,8 +80329,8 @@ const DropPlaceholder = styled__default.default(designSystem.Box)`
|
|
|
80329
80329
|
|
|
80330
80330
|
// Show drop placeholder 8px above or below the drop target
|
|
80331
80331
|
${({ dragDirection, theme, placeholderMargin }) => styled.css`
|
|
80332
|
-
top: ${dragDirection ===
|
|
80333
|
-
bottom: ${dragDirection ===
|
|
80332
|
+
top: ${dragDirection === indexGIVuHJgC.DIRECTIONS.UPWARD && `-${theme.spaces[placeholderMargin]}`};
|
|
80333
|
+
bottom: ${dragDirection === indexGIVuHJgC.DIRECTIONS.DOWNWARD && `-${theme.spaces[placeholderMargin]}`};
|
|
80334
80334
|
`}
|
|
80335
80335
|
`;
|
|
80336
80336
|
const DragItem = styled__default.default(designSystem.Flex)`
|
|
@@ -80401,7 +80401,7 @@ const DragAndDropElement = ({
|
|
|
80401
80401
|
setLiveText(
|
|
80402
80402
|
formatMessage(
|
|
80403
80403
|
{
|
|
80404
|
-
id:
|
|
80404
|
+
id: indexGIVuHJgC.getTranslation("components.Blocks.dnd.reorder"),
|
|
80405
80405
|
defaultMessage: "{item}, moved. New position in the editor: {position}."
|
|
80406
80406
|
},
|
|
80407
80407
|
{
|
|
@@ -80413,8 +80413,8 @@ const DragAndDropElement = ({
|
|
|
80413
80413
|
},
|
|
80414
80414
|
[editor, formatMessage, name2, setLiveText]
|
|
80415
80415
|
);
|
|
80416
|
-
const [{ handlerId, isDragging, isOverDropTarget, direction: direction2 }, blockRef, dropRef, dragRef] =
|
|
80417
|
-
type: `${
|
|
80416
|
+
const [{ handlerId, isDragging, isOverDropTarget, direction: direction2 }, blockRef, dropRef, dragRef] = indexGIVuHJgC.useDragAndDrop(!disabled, {
|
|
80417
|
+
type: `${indexGIVuHJgC.ItemTypes.BLOCKS}_${name2}`,
|
|
80418
80418
|
index,
|
|
80419
80419
|
item: {
|
|
80420
80420
|
index,
|
|
@@ -80481,7 +80481,7 @@ const DragAndDropElement = ({
|
|
|
80481
80481
|
role: "button",
|
|
80482
80482
|
tabIndex: 0,
|
|
80483
80483
|
"aria-label": formatMessage({
|
|
80484
|
-
id:
|
|
80484
|
+
id: indexGIVuHJgC.getTranslation("components.DragHandle-label"),
|
|
80485
80485
|
defaultMessage: "Drag"
|
|
80486
80486
|
}),
|
|
80487
80487
|
onClick: (e2) => e2.stopPropagation(),
|
|
@@ -80507,7 +80507,7 @@ const CloneDragItem = ({ children, dragHandleTopMargin }) => {
|
|
|
80507
80507
|
forwardedAs: "div",
|
|
80508
80508
|
role: "button",
|
|
80509
80509
|
"aria-label": formatMessage({
|
|
80510
|
-
id:
|
|
80510
|
+
id: indexGIVuHJgC.getTranslation("components.DragHandle-label"),
|
|
80511
80511
|
defaultMessage: "Drag"
|
|
80512
80512
|
}),
|
|
80513
80513
|
dragHandleTopMargin,
|
|
@@ -80582,7 +80582,7 @@ const BlocksContent = ({ placeholder, ariaLabelId }) => {
|
|
|
80582
80582
|
setLiveText(
|
|
80583
80583
|
formatMessage(
|
|
80584
80584
|
{
|
|
80585
|
-
id:
|
|
80585
|
+
id: indexGIVuHJgC.getTranslation("components.Blocks.dnd.reorder"),
|
|
80586
80586
|
defaultMessage: "{item}, moved. New position in the editor: {position}."
|
|
80587
80587
|
},
|
|
80588
80588
|
{
|
|
@@ -80813,7 +80813,7 @@ const EditorLayout$1 = ({
|
|
|
80813
80813
|
CollapseIconButton,
|
|
80814
80814
|
{
|
|
80815
80815
|
"aria-label": formatMessage({
|
|
80816
|
-
id:
|
|
80816
|
+
id: indexGIVuHJgC.getTranslation("components.Blocks.collapse"),
|
|
80817
80817
|
defaultMessage: "Collapse"
|
|
80818
80818
|
}),
|
|
80819
80819
|
onClick: onCollapse,
|
|
@@ -81020,7 +81020,7 @@ const selectorBlockKeys = [
|
|
|
81020
81020
|
const isSelectorBlockKey = (key2) => {
|
|
81021
81021
|
return typeof key2 === "string" && selectorBlockKeys.includes(key2);
|
|
81022
81022
|
};
|
|
81023
|
-
const [BlocksEditorProvider, usePartialBlocksEditorContext] =
|
|
81023
|
+
const [BlocksEditorProvider, usePartialBlocksEditorContext] = indexGIVuHJgC.$c512c27ab02ef895$export$fd42f52fd3ae1109("BlocksEditor");
|
|
81024
81024
|
function useBlocksEditorContext(consumerName) {
|
|
81025
81025
|
const context = usePartialBlocksEditorContext(consumerName);
|
|
81026
81026
|
const editor = useSlate();
|
|
@@ -81091,7 +81091,7 @@ const BlocksEditor = React__namespace.forwardRef(
|
|
|
81091
81091
|
};
|
|
81092
81092
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
81093
81093
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { id: ariaDescriptionId, children: formatMessage({
|
|
81094
|
-
id:
|
|
81094
|
+
id: indexGIVuHJgC.getTranslation("components.Blocks.dnd.instruction"),
|
|
81095
81095
|
defaultMessage: `To reorder blocks, press Command or Control along with Shift and the Up or Down arrow keys`
|
|
81096
81096
|
}) }),
|
|
81097
81097
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { "aria-live": "assertive", children: liveText }),
|
|
@@ -81125,7 +81125,7 @@ const BlocksEditor = React__namespace.forwardRef(
|
|
|
81125
81125
|
ExpandIconButton,
|
|
81126
81126
|
{
|
|
81127
81127
|
"aria-label": formatMessage({
|
|
81128
|
-
id:
|
|
81128
|
+
id: indexGIVuHJgC.getTranslation("components.Blocks.expand"),
|
|
81129
81129
|
defaultMessage: "Expand"
|
|
81130
81130
|
}),
|
|
81131
81131
|
onClick: handleToggleExpand,
|
|
@@ -81146,7 +81146,7 @@ const BlocksEditor = React__namespace.forwardRef(
|
|
|
81146
81146
|
const BlocksInput = React__namespace.forwardRef(
|
|
81147
81147
|
({ label: label2, name: name2, required = false, hint, ...editorProps }, forwardedRef) => {
|
|
81148
81148
|
const id2 = React__namespace.useId();
|
|
81149
|
-
const field =
|
|
81149
|
+
const field = indexGIVuHJgC.useField(name2);
|
|
81150
81150
|
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field, { id: id2, name: name2, hint, error: field.error, required, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 1, children: [
|
|
81151
81151
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.FieldLabel, { children: label2 }),
|
|
81152
81152
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -81215,7 +81215,7 @@ const prepareTempKeys = traverseData(
|
|
|
81215
81215
|
(attribute2) => attribute2.type === "component" && attribute2.repeatable || attribute2.type === "dynamiczone",
|
|
81216
81216
|
(data) => {
|
|
81217
81217
|
if (Array.isArray(data) && data.length > 0) {
|
|
81218
|
-
const keys =
|
|
81218
|
+
const keys = indexGIVuHJgC.generateNKeysBetween(void 0, void 0, data.length);
|
|
81219
81219
|
return data.map((datum, index) => ({
|
|
81220
81220
|
...datum,
|
|
81221
81221
|
__temp_key__: keys[index]
|
|
@@ -81228,7 +81228,7 @@ const removeFieldsThatDontExistOnSchema = (schema) => (data) => {
|
|
|
81228
81228
|
const schemaKeys = Object.keys(schema.attributes);
|
|
81229
81229
|
const dataKeys = Object.keys(data);
|
|
81230
81230
|
const keysToRemove = dataKeys.filter((key2) => !schemaKeys.includes(key2));
|
|
81231
|
-
const revisedData = [...keysToRemove, ...
|
|
81231
|
+
const revisedData = [...keysToRemove, ...indexGIVuHJgC.DOCUMENT_META_FIELDS].reduce((acc, key2) => {
|
|
81232
81232
|
delete acc[key2];
|
|
81233
81233
|
return acc;
|
|
81234
81234
|
}, structuredClone(data));
|
|
@@ -81275,7 +81275,7 @@ const createDefaultForm = (contentType, components = {}) => {
|
|
|
81275
81275
|
};
|
|
81276
81276
|
const Initializer = ({ disabled, name: name2, onClick }) => {
|
|
81277
81277
|
const { formatMessage } = reactIntl.useIntl();
|
|
81278
|
-
const field =
|
|
81278
|
+
const field = indexGIVuHJgC.useField(name2);
|
|
81279
81279
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
81280
81280
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
81281
81281
|
designSystem.Box,
|
|
@@ -81292,7 +81292,7 @@ const Initializer = ({ disabled, name: name2, onClick }) => {
|
|
|
81292
81292
|
children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 2, children: [
|
|
81293
81293
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(CircleIcon, {}) }),
|
|
81294
81294
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { textColor: "primary600", variant: "pi", fontWeight: "bold", children: formatMessage({
|
|
81295
|
-
id:
|
|
81295
|
+
id: indexGIVuHJgC.getTranslation("components.empty-repeatable"),
|
|
81296
81296
|
defaultMessage: "No entry yet. Click on the button below to add one."
|
|
81297
81297
|
}) }) })
|
|
81298
81298
|
] })
|
|
@@ -81314,12 +81314,12 @@ const CircleIcon = styled__default.default(Icons.PlusCircle)`
|
|
|
81314
81314
|
const NonRepeatableComponent = ({ attribute: attribute2, name: name2 }) => {
|
|
81315
81315
|
const {
|
|
81316
81316
|
edit: { components }
|
|
81317
|
-
} =
|
|
81318
|
-
const { value } =
|
|
81319
|
-
const level =
|
|
81317
|
+
} = indexGIVuHJgC.useDocLayout();
|
|
81318
|
+
const { value } = indexGIVuHJgC.useField(name2);
|
|
81319
|
+
const level = indexGIVuHJgC.useComponent("NonRepeatableComponent", (state) => state.level);
|
|
81320
81320
|
const { layout } = components[attribute2.component];
|
|
81321
81321
|
const isNested = level > 0;
|
|
81322
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
81322
|
+
return /* @__PURE__ */ jsxRuntime.jsx(indexGIVuHJgC.ComponentProvider, { id: value?.id, uid: attribute2.component, level: level + 1, type: "component", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
81323
81323
|
designSystem.Box,
|
|
81324
81324
|
{
|
|
81325
81325
|
background: "neutral100",
|
|
@@ -81344,15 +81344,15 @@ const RepeatableComponent = ({
|
|
|
81344
81344
|
name: name2,
|
|
81345
81345
|
mainField
|
|
81346
81346
|
}) => {
|
|
81347
|
-
const { toggleNotification } =
|
|
81347
|
+
const { toggleNotification } = indexGIVuHJgC.useNotification();
|
|
81348
81348
|
const { formatMessage } = reactIntl.useIntl();
|
|
81349
81349
|
const { search: searchString } = reactRouterDom.useLocation();
|
|
81350
81350
|
const search = React__namespace.useMemo(() => new URLSearchParams(searchString), [searchString]);
|
|
81351
|
-
const { components } =
|
|
81352
|
-
const { value = [], error: error2 } =
|
|
81353
|
-
const addFieldRow =
|
|
81354
|
-
const moveFieldRow =
|
|
81355
|
-
const removeFieldRow =
|
|
81351
|
+
const { components } = indexGIVuHJgC.useDoc();
|
|
81352
|
+
const { value = [], error: error2 } = indexGIVuHJgC.useField(name2);
|
|
81353
|
+
const addFieldRow = indexGIVuHJgC.useForm("RepeatableComponent", (state) => state.addFieldRow);
|
|
81354
|
+
const moveFieldRow = indexGIVuHJgC.useForm("RepeatableComponent", (state) => state.moveFieldRow);
|
|
81355
|
+
const removeFieldRow = indexGIVuHJgC.useForm("RepeatableComponent", (state) => state.removeFieldRow);
|
|
81356
81356
|
const { max = Infinity } = attribute2;
|
|
81357
81357
|
const [collapseToOpen, setCollapseToOpen] = React__namespace.useState(null);
|
|
81358
81358
|
const [liveText, setLiveText] = React__namespace.useState("");
|
|
@@ -81363,9 +81363,9 @@ const RepeatableComponent = ({
|
|
|
81363
81363
|
return void 0;
|
|
81364
81364
|
}
|
|
81365
81365
|
const [, path3] = fieldParam.split(`${name2}.`);
|
|
81366
|
-
if (
|
|
81366
|
+
if (indexGIVuHJgC.getIn(value, path3, void 0) !== void 0) {
|
|
81367
81367
|
const [subpath] = path3.split(".");
|
|
81368
|
-
return
|
|
81368
|
+
return indexGIVuHJgC.getIn(value, subpath, void 0)?.__temp_key__;
|
|
81369
81369
|
}
|
|
81370
81370
|
}
|
|
81371
81371
|
return void 0;
|
|
@@ -81388,7 +81388,7 @@ const RepeatableComponent = ({
|
|
|
81388
81388
|
toggleNotification({
|
|
81389
81389
|
type: "info",
|
|
81390
81390
|
message: formatMessage({
|
|
81391
|
-
id:
|
|
81391
|
+
id: indexGIVuHJgC.getTranslation("components.notification.info.maximum-requirement")
|
|
81392
81392
|
})
|
|
81393
81393
|
});
|
|
81394
81394
|
}
|
|
@@ -81397,7 +81397,7 @@ const RepeatableComponent = ({
|
|
|
81397
81397
|
setLiveText(
|
|
81398
81398
|
formatMessage(
|
|
81399
81399
|
{
|
|
81400
|
-
id:
|
|
81400
|
+
id: indexGIVuHJgC.getTranslation("dnd.reorder"),
|
|
81401
81401
|
defaultMessage: "{item}, moved. New position in list: {position}."
|
|
81402
81402
|
},
|
|
81403
81403
|
{
|
|
@@ -81420,7 +81420,7 @@ const RepeatableComponent = ({
|
|
|
81420
81420
|
setLiveText(
|
|
81421
81421
|
formatMessage(
|
|
81422
81422
|
{
|
|
81423
|
-
id:
|
|
81423
|
+
id: indexGIVuHJgC.getTranslation("dnd.cancel-item"),
|
|
81424
81424
|
defaultMessage: "{item}, dropped. Re-order cancelled."
|
|
81425
81425
|
},
|
|
81426
81426
|
{
|
|
@@ -81433,7 +81433,7 @@ const RepeatableComponent = ({
|
|
|
81433
81433
|
setLiveText(
|
|
81434
81434
|
formatMessage(
|
|
81435
81435
|
{
|
|
81436
|
-
id:
|
|
81436
|
+
id: indexGIVuHJgC.getTranslation("dnd.grab-item"),
|
|
81437
81437
|
defaultMessage: `{item}, grabbed. Current position in list: {position}. Press up and down arrow to change position, Spacebar to drop, Escape to cancel.`
|
|
81438
81438
|
},
|
|
81439
81439
|
{
|
|
@@ -81447,7 +81447,7 @@ const RepeatableComponent = ({
|
|
|
81447
81447
|
setLiveText(
|
|
81448
81448
|
formatMessage(
|
|
81449
81449
|
{
|
|
81450
|
-
id:
|
|
81450
|
+
id: indexGIVuHJgC.getTranslation("dnd.drop-item"),
|
|
81451
81451
|
defaultMessage: `{item}, dropped. Final position in list: {position}.`
|
|
81452
81452
|
},
|
|
81453
81453
|
{
|
|
@@ -81458,20 +81458,20 @@ const RepeatableComponent = ({
|
|
|
81458
81458
|
);
|
|
81459
81459
|
};
|
|
81460
81460
|
const ariaDescriptionId = React__namespace.useId();
|
|
81461
|
-
const level =
|
|
81461
|
+
const level = indexGIVuHJgC.useComponent("RepeatableComponent", (state) => state.level);
|
|
81462
81462
|
if (value.length === 0) {
|
|
81463
81463
|
return /* @__PURE__ */ jsxRuntime.jsx(Initializer, { disabled, name: name2, onClick: handleClick });
|
|
81464
81464
|
}
|
|
81465
81465
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { hasRadius: true, children: [
|
|
81466
81466
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { id: ariaDescriptionId, children: formatMessage({
|
|
81467
|
-
id:
|
|
81467
|
+
id: indexGIVuHJgC.getTranslation("dnd.instructions"),
|
|
81468
81468
|
defaultMessage: `Press spacebar to grab and re-order`
|
|
81469
81469
|
}) }),
|
|
81470
81470
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { "aria-live": "assertive", children: liveText }),
|
|
81471
81471
|
/* @__PURE__ */ jsxRuntime.jsxs(AccordionGroup, { error: error2, children: [
|
|
81472
81472
|
/* @__PURE__ */ jsxRuntime.jsx(AccordionContent, { "aria-describedby": ariaDescriptionId, children: value.map(({ __temp_key__: key2, id: id2 }, index) => {
|
|
81473
81473
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
81474
|
-
|
|
81474
|
+
indexGIVuHJgC.ComponentProvider,
|
|
81475
81475
|
{
|
|
81476
81476
|
id: id2,
|
|
81477
81477
|
uid: attribute2.component,
|
|
@@ -81503,7 +81503,7 @@ const RepeatableComponent = ({
|
|
|
81503
81503
|
);
|
|
81504
81504
|
}) }),
|
|
81505
81505
|
/* @__PURE__ */ jsxRuntime.jsx(AccordionFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", height: "48px", background: "neutral0", children: /* @__PURE__ */ jsxRuntime.jsx(TextButtonCustom, { disabled, onClick: handleClick, startIcon: /* @__PURE__ */ jsxRuntime.jsx(Icons.Plus, {}), children: formatMessage({
|
|
81506
|
-
id:
|
|
81506
|
+
id: indexGIVuHJgC.getTranslation("containers.EditView.add.new-entry"),
|
|
81507
81507
|
defaultMessage: "Add an entry"
|
|
81508
81508
|
}) }) }) })
|
|
81509
81509
|
] })
|
|
@@ -81618,15 +81618,15 @@ const Component = ({
|
|
|
81618
81618
|
const { formatMessage } = reactIntl.useIntl();
|
|
81619
81619
|
const {
|
|
81620
81620
|
edit: { components }
|
|
81621
|
-
} =
|
|
81621
|
+
} = indexGIVuHJgC.useDocLayout();
|
|
81622
81622
|
const { layout } = components[attribute2.component];
|
|
81623
|
-
const displayValue =
|
|
81624
|
-
return
|
|
81623
|
+
const displayValue = indexGIVuHJgC.useForm("RepeatableComponent", (state) => {
|
|
81624
|
+
return indexGIVuHJgC.getIn(state.values, [...name2.split("."), mainField.name]);
|
|
81625
81625
|
});
|
|
81626
81626
|
const accordionRef = React__namespace.useRef(null);
|
|
81627
81627
|
const componentKey = name2.split(".").slice(0, -1).join(".");
|
|
81628
|
-
const [{ handlerId, isDragging, handleKeyDown }, boxRef, dropRef, dragRef, dragPreviewRef] =
|
|
81629
|
-
type: `${
|
|
81628
|
+
const [{ handlerId, isDragging, handleKeyDown }, boxRef, dropRef, dragRef, dragPreviewRef] = indexGIVuHJgC.useDragAndDrop(!disabled, {
|
|
81629
|
+
type: `${indexGIVuHJgC.ItemTypes.COMPONENT}_${componentKey}`,
|
|
81630
81630
|
index,
|
|
81631
81631
|
item: {
|
|
81632
81632
|
index,
|
|
@@ -81638,7 +81638,7 @@ const Component = ({
|
|
|
81638
81638
|
...dragProps
|
|
81639
81639
|
});
|
|
81640
81640
|
React__namespace.useEffect(() => {
|
|
81641
|
-
dragPreviewRef(
|
|
81641
|
+
dragPreviewRef(indexGIVuHJgC.getEmptyImage(), { captureDraggingState: false });
|
|
81642
81642
|
}, [dragPreviewRef, index]);
|
|
81643
81643
|
const composedAccordionRefs = designSystem.useComposedRefs(accordionRef, dragRef);
|
|
81644
81644
|
const composedBoxRefs = designSystem.useComposedRefs(boxRef, dropRef);
|
|
@@ -81654,7 +81654,7 @@ const Component = ({
|
|
|
81654
81654
|
borderWidth: 0,
|
|
81655
81655
|
onClick: onDeleteComponent,
|
|
81656
81656
|
label: formatMessage({
|
|
81657
|
-
id:
|
|
81657
|
+
id: indexGIVuHJgC.getTranslation("containers.Edit.delete"),
|
|
81658
81658
|
defaultMessage: "Delete"
|
|
81659
81659
|
}),
|
|
81660
81660
|
icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.Trash, {})
|
|
@@ -81672,7 +81672,7 @@ const Component = ({
|
|
|
81672
81672
|
onClick: (e2) => e2.stopPropagation(),
|
|
81673
81673
|
"data-handler-id": handlerId,
|
|
81674
81674
|
label: formatMessage({
|
|
81675
|
-
id:
|
|
81675
|
+
id: indexGIVuHJgC.getTranslation("components.DragHandle-label"),
|
|
81676
81676
|
defaultMessage: "Drag"
|
|
81677
81677
|
}),
|
|
81678
81678
|
onKeyDown: handleKeyDown,
|
|
@@ -81719,9 +81719,9 @@ const ComponentInput = ({
|
|
|
81719
81719
|
...props
|
|
81720
81720
|
}) => {
|
|
81721
81721
|
const { formatMessage } = reactIntl.useIntl();
|
|
81722
|
-
const field =
|
|
81722
|
+
const field = indexGIVuHJgC.useField(name2);
|
|
81723
81723
|
const showResetComponent = !attribute2.repeatable && field.value && !disabled;
|
|
81724
|
-
const { components } =
|
|
81724
|
+
const { components } = indexGIVuHJgC.useDoc();
|
|
81725
81725
|
const handleInitialisationClick = () => {
|
|
81726
81726
|
const schema = components[attribute2.component];
|
|
81727
81727
|
const form = createDefaultForm(schema, components);
|
|
@@ -81753,7 +81753,7 @@ const ComponentInput = ({
|
|
|
81753
81753
|
designSystem.IconButton,
|
|
81754
81754
|
{
|
|
81755
81755
|
label: formatMessage({
|
|
81756
|
-
id:
|
|
81756
|
+
id: indexGIVuHJgC.getTranslation("components.reset-entry"),
|
|
81757
81757
|
defaultMessage: "Reset Entry"
|
|
81758
81758
|
}),
|
|
81759
81759
|
icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.Trash, {}),
|
|
@@ -81958,7 +81958,7 @@ const ComponentPicker = ({
|
|
|
81958
81958
|
hasRadius: true,
|
|
81959
81959
|
children: [
|
|
81960
81960
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral600", children: formatMessage({
|
|
81961
|
-
id:
|
|
81961
|
+
id: indexGIVuHJgC.getTranslation("components.DynamicZone.ComponentPicker-label"),
|
|
81962
81962
|
defaultMessage: "Pick one component"
|
|
81963
81963
|
}) }) }),
|
|
81964
81964
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingTop: 2, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.KeyboardNavigable, { attributeName: "data-strapi-accordion-toggle", children: Object.entries(dynamicComponentsByCategory).map(([category, components], index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -81992,13 +81992,13 @@ const DynamicComponent = ({
|
|
|
81992
81992
|
}) => {
|
|
81993
81993
|
const [isOpen, setIsOpen] = React__namespace.useState(true);
|
|
81994
81994
|
const { formatMessage } = reactIntl.useIntl();
|
|
81995
|
-
const formValues =
|
|
81995
|
+
const formValues = indexGIVuHJgC.useForm("DynamicComponent", (state) => state.values);
|
|
81996
81996
|
const {
|
|
81997
81997
|
edit: { components }
|
|
81998
|
-
} =
|
|
81998
|
+
} = indexGIVuHJgC.useDocLayout();
|
|
81999
81999
|
const title = React__namespace.useMemo(() => {
|
|
82000
82000
|
const { mainField } = components[componentUid]?.settings ?? { mainField: "id" };
|
|
82001
|
-
const mainFieldValue =
|
|
82001
|
+
const mainFieldValue = indexGIVuHJgC.getIn(formValues, `${name2}.${index}.${mainField}`);
|
|
82002
82002
|
const displayedValue = mainField === "id" ? "" : String(mainFieldValue).trim();
|
|
82003
82003
|
const mainValue = displayedValue.length > 0 ? `- ${displayedValue}` : displayedValue;
|
|
82004
82004
|
return mainValue;
|
|
@@ -82013,8 +82013,8 @@ const DynamicComponent = ({
|
|
|
82013
82013
|
const handleToggle = () => {
|
|
82014
82014
|
setIsOpen((s) => !s);
|
|
82015
82015
|
};
|
|
82016
|
-
const [{ handlerId, isDragging, handleKeyDown }, boxRef, dropRef, dragRef, dragPreviewRef] =
|
|
82017
|
-
type: `${
|
|
82016
|
+
const [{ handlerId, isDragging, handleKeyDown }, boxRef, dropRef, dragRef, dragPreviewRef] = indexGIVuHJgC.useDragAndDrop(!disabled, {
|
|
82017
|
+
type: `${indexGIVuHJgC.ItemTypes.DYNAMIC_ZONE}_${name2}`,
|
|
82018
82018
|
index,
|
|
82019
82019
|
item: {
|
|
82020
82020
|
index,
|
|
@@ -82027,7 +82027,7 @@ const DynamicComponent = ({
|
|
|
82027
82027
|
onCancel
|
|
82028
82028
|
});
|
|
82029
82029
|
React__namespace.useEffect(() => {
|
|
82030
|
-
dragPreviewRef(
|
|
82030
|
+
dragPreviewRef(indexGIVuHJgC.getEmptyImage(), { captureDraggingState: false });
|
|
82031
82031
|
}, [dragPreviewRef, index]);
|
|
82032
82032
|
const composedBoxRefs = designSystem.useComposedRefs(boxRef, dropRef);
|
|
82033
82033
|
const accordionActions = disabled ? null : /* @__PURE__ */ jsxRuntime.jsxs(ActionsFlex, { gap: 0, children: [
|
|
@@ -82037,7 +82037,7 @@ const DynamicComponent = ({
|
|
|
82037
82037
|
borderWidth: 0,
|
|
82038
82038
|
label: formatMessage(
|
|
82039
82039
|
{
|
|
82040
|
-
id:
|
|
82040
|
+
id: indexGIVuHJgC.getTranslation("components.DynamicZone.delete-label"),
|
|
82041
82041
|
defaultMessage: "Delete {name}"
|
|
82042
82042
|
},
|
|
82043
82043
|
{ name: title }
|
|
@@ -82057,7 +82057,7 @@ const DynamicComponent = ({
|
|
|
82057
82057
|
"data-handler-id": handlerId,
|
|
82058
82058
|
ref: dragRef,
|
|
82059
82059
|
label: formatMessage({
|
|
82060
|
-
id:
|
|
82060
|
+
id: indexGIVuHJgC.getTranslation("components.DragHandle-label"),
|
|
82061
82061
|
defaultMessage: "Drag"
|
|
82062
82062
|
}),
|
|
82063
82063
|
onKeyDown: handleKeyDown,
|
|
@@ -82068,14 +82068,14 @@ const DynamicComponent = ({
|
|
|
82068
82068
|
/* @__PURE__ */ jsxRuntime.jsxs(v2.Menu.Trigger, { size: "S", endIcon: null, paddingLeft: 2, paddingRight: 2, children: [
|
|
82069
82069
|
/* @__PURE__ */ jsxRuntime.jsx(Icons.More, { "aria-hidden": true, focusable: false }),
|
|
82070
82070
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { as: "span", children: formatMessage({
|
|
82071
|
-
id:
|
|
82071
|
+
id: indexGIVuHJgC.getTranslation("components.DynamicZone.more-actions"),
|
|
82072
82072
|
defaultMessage: "More actions"
|
|
82073
82073
|
}) })
|
|
82074
82074
|
] }),
|
|
82075
82075
|
/* @__PURE__ */ jsxRuntime.jsxs(v2.Menu.Content, { children: [
|
|
82076
82076
|
/* @__PURE__ */ jsxRuntime.jsxs(v2.Menu.SubRoot, { children: [
|
|
82077
82077
|
/* @__PURE__ */ jsxRuntime.jsx(v2.Menu.SubTrigger, { children: formatMessage({
|
|
82078
|
-
id:
|
|
82078
|
+
id: indexGIVuHJgC.getTranslation("components.DynamicZone.add-item-above"),
|
|
82079
82079
|
defaultMessage: "Add component above"
|
|
82080
82080
|
}) }),
|
|
82081
82081
|
/* @__PURE__ */ jsxRuntime.jsx(v2.Menu.SubContent, { children: Object.entries(dynamicComponentsByCategory).map(([category, components2]) => /* @__PURE__ */ jsxRuntime.jsxs(React__namespace.Fragment, { children: [
|
|
@@ -82085,7 +82085,7 @@ const DynamicComponent = ({
|
|
|
82085
82085
|
] }),
|
|
82086
82086
|
/* @__PURE__ */ jsxRuntime.jsxs(v2.Menu.SubRoot, { children: [
|
|
82087
82087
|
/* @__PURE__ */ jsxRuntime.jsx(v2.Menu.SubTrigger, { children: formatMessage({
|
|
82088
|
-
id:
|
|
82088
|
+
id: indexGIVuHJgC.getTranslation("components.DynamicZone.add-item-below"),
|
|
82089
82089
|
defaultMessage: "Add component below"
|
|
82090
82090
|
}) }),
|
|
82091
82091
|
/* @__PURE__ */ jsxRuntime.jsx(v2.Menu.SubContent, { children: Object.entries(dynamicComponentsByCategory).map(([category, components2]) => /* @__PURE__ */ jsxRuntime.jsxs(React__namespace.Fragment, { children: [
|
|
@@ -82194,7 +82194,7 @@ const DynamicZoneLabel = ({
|
|
|
82194
82194
|
}
|
|
82195
82195
|
) });
|
|
82196
82196
|
};
|
|
82197
|
-
const [DynamicZoneProvider, useDynamicZone] =
|
|
82197
|
+
const [DynamicZoneProvider, useDynamicZone] = indexGIVuHJgC.createContext(
|
|
82198
82198
|
"DynamicZone",
|
|
82199
82199
|
{
|
|
82200
82200
|
isInDynamicZone: false
|
|
@@ -82211,8 +82211,8 @@ const DynamicZone = ({
|
|
|
82211
82211
|
const { max = Infinity, min = -Infinity } = attribute2 ?? {};
|
|
82212
82212
|
const [addComponentIsOpen, setAddComponentIsOpen] = React__namespace.useState(false);
|
|
82213
82213
|
const [liveText, setLiveText] = React__namespace.useState("");
|
|
82214
|
-
const { components } =
|
|
82215
|
-
const { addFieldRow, removeFieldRow, moveFieldRow } =
|
|
82214
|
+
const { components } = indexGIVuHJgC.useDoc();
|
|
82215
|
+
const { addFieldRow, removeFieldRow, moveFieldRow } = indexGIVuHJgC.useForm(
|
|
82216
82216
|
"DynamicZone",
|
|
82217
82217
|
({ addFieldRow: addFieldRow2, removeFieldRow: removeFieldRow2, moveFieldRow: moveFieldRow2 }) => ({
|
|
82218
82218
|
addFieldRow: addFieldRow2,
|
|
@@ -82220,7 +82220,7 @@ const DynamicZone = ({
|
|
|
82220
82220
|
moveFieldRow: moveFieldRow2
|
|
82221
82221
|
})
|
|
82222
82222
|
);
|
|
82223
|
-
const { value = [], error: error2 } =
|
|
82223
|
+
const { value = [], error: error2 } = indexGIVuHJgC.useField(
|
|
82224
82224
|
name2
|
|
82225
82225
|
);
|
|
82226
82226
|
const dynamicComponentsByCategory = React__namespace.useMemo(() => {
|
|
@@ -82235,7 +82235,7 @@ const DynamicZone = ({
|
|
|
82235
82235
|
}, {});
|
|
82236
82236
|
}, [attribute2.components, components]);
|
|
82237
82237
|
const { formatMessage } = reactIntl.useIntl();
|
|
82238
|
-
const { toggleNotification } =
|
|
82238
|
+
const { toggleNotification } = indexGIVuHJgC.useNotification();
|
|
82239
82239
|
const dynamicDisplayedComponentsLength = value.length;
|
|
82240
82240
|
const handleAddComponent = (uid, position) => {
|
|
82241
82241
|
setAddComponentIsOpen(false);
|
|
@@ -82255,7 +82255,7 @@ const DynamicZone = ({
|
|
|
82255
82255
|
toggleNotification({
|
|
82256
82256
|
type: "info",
|
|
82257
82257
|
message: formatMessage({
|
|
82258
|
-
id:
|
|
82258
|
+
id: indexGIVuHJgC.getTranslation("components.notification.info.maximum-requirement")
|
|
82259
82259
|
})
|
|
82260
82260
|
});
|
|
82261
82261
|
}
|
|
@@ -82264,7 +82264,7 @@ const DynamicZone = ({
|
|
|
82264
82264
|
setLiveText(
|
|
82265
82265
|
formatMessage(
|
|
82266
82266
|
{
|
|
82267
|
-
id:
|
|
82267
|
+
id: indexGIVuHJgC.getTranslation("dnd.reorder"),
|
|
82268
82268
|
defaultMessage: "{item}, moved. New position in list: {position}."
|
|
82269
82269
|
},
|
|
82270
82270
|
{
|
|
@@ -82280,7 +82280,7 @@ const DynamicZone = ({
|
|
|
82280
82280
|
setLiveText(
|
|
82281
82281
|
formatMessage(
|
|
82282
82282
|
{
|
|
82283
|
-
id:
|
|
82283
|
+
id: indexGIVuHJgC.getTranslation("dnd.cancel-item"),
|
|
82284
82284
|
defaultMessage: "{item}, dropped. Re-order cancelled."
|
|
82285
82285
|
},
|
|
82286
82286
|
{
|
|
@@ -82293,7 +82293,7 @@ const DynamicZone = ({
|
|
|
82293
82293
|
setLiveText(
|
|
82294
82294
|
formatMessage(
|
|
82295
82295
|
{
|
|
82296
|
-
id:
|
|
82296
|
+
id: indexGIVuHJgC.getTranslation("dnd.grab-item"),
|
|
82297
82297
|
defaultMessage: `{item}, grabbed. Current position in list: {position}. Press up and down arrow to change position, Spacebar to drop, Escape to cancel.`
|
|
82298
82298
|
},
|
|
82299
82299
|
{
|
|
@@ -82307,7 +82307,7 @@ const DynamicZone = ({
|
|
|
82307
82307
|
setLiveText(
|
|
82308
82308
|
formatMessage(
|
|
82309
82309
|
{
|
|
82310
|
-
id:
|
|
82310
|
+
id: indexGIVuHJgC.getTranslation("dnd.drop-item"),
|
|
82311
82311
|
defaultMessage: `{item}, dropped. Final position in list: {position}.`
|
|
82312
82312
|
},
|
|
82313
82313
|
{
|
|
@@ -82328,7 +82328,7 @@ const DynamicZone = ({
|
|
|
82328
82328
|
if (hasError && dynamicDisplayedComponentsLength > max) {
|
|
82329
82329
|
return formatMessage(
|
|
82330
82330
|
{
|
|
82331
|
-
id:
|
|
82331
|
+
id: indexGIVuHJgC.getTranslation(`components.DynamicZone.extra-components`),
|
|
82332
82332
|
defaultMessage: "There {number, plural, =0 {are # extra components} one {is # extra component} other {are # extra components}}"
|
|
82333
82333
|
},
|
|
82334
82334
|
{
|
|
@@ -82339,7 +82339,7 @@ const DynamicZone = ({
|
|
|
82339
82339
|
if (hasError && dynamicDisplayedComponentsLength < min) {
|
|
82340
82340
|
return formatMessage(
|
|
82341
82341
|
{
|
|
82342
|
-
id:
|
|
82342
|
+
id: indexGIVuHJgC.getTranslation(`components.DynamicZone.missing-components`),
|
|
82343
82343
|
defaultMessage: "There {number, plural, =0 {are # missing components} one {is # missing component} other {are # missing components}}"
|
|
82344
82344
|
},
|
|
82345
82345
|
{ number: min - dynamicDisplayedComponentsLength }
|
|
@@ -82347,13 +82347,13 @@ const DynamicZone = ({
|
|
|
82347
82347
|
}
|
|
82348
82348
|
return formatMessage(
|
|
82349
82349
|
{
|
|
82350
|
-
id:
|
|
82350
|
+
id: indexGIVuHJgC.getTranslation("components.DynamicZone.add-component"),
|
|
82351
82351
|
defaultMessage: "Add a component to {componentName}"
|
|
82352
82352
|
},
|
|
82353
82353
|
{ componentName: label2 || name2 }
|
|
82354
82354
|
);
|
|
82355
82355
|
};
|
|
82356
|
-
const level =
|
|
82356
|
+
const level = indexGIVuHJgC.useComponent("DynamicZone", (state) => state.level);
|
|
82357
82357
|
const ariaDescriptionId = React__namespace.useId();
|
|
82358
82358
|
return /* @__PURE__ */ jsxRuntime.jsx(DynamicZoneProvider, { isInDynamicZone: true, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 6, children: [
|
|
82359
82359
|
dynamicDisplayedComponentsLength > 0 && /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { children: [
|
|
@@ -82368,12 +82368,12 @@ const DynamicZone = ({
|
|
|
82368
82368
|
}
|
|
82369
82369
|
),
|
|
82370
82370
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { id: ariaDescriptionId, children: formatMessage({
|
|
82371
|
-
id:
|
|
82371
|
+
id: indexGIVuHJgC.getTranslation("dnd.instructions"),
|
|
82372
82372
|
defaultMessage: `Press spacebar to grab and re-order`
|
|
82373
82373
|
}) }),
|
|
82374
82374
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { "aria-live": "assertive", children: liveText }),
|
|
82375
82375
|
/* @__PURE__ */ jsxRuntime.jsx("ol", { "aria-describedby": ariaDescriptionId, children: value.map((field, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
82376
|
-
|
|
82376
|
+
indexGIVuHJgC.ComponentProvider,
|
|
82377
82377
|
{
|
|
82378
82378
|
level: level + 1,
|
|
82379
82379
|
uid: field.__component,
|
|
@@ -82419,7 +82419,7 @@ const DynamicZone = ({
|
|
|
82419
82419
|
)
|
|
82420
82420
|
] }) });
|
|
82421
82421
|
};
|
|
82422
|
-
const uidApi =
|
|
82422
|
+
const uidApi = indexGIVuHJgC.contentManagerApi.injectEndpoints({
|
|
82423
82423
|
endpoints: (builder) => ({
|
|
82424
82424
|
getDefaultUID: builder.query({
|
|
82425
82425
|
query: ({ params, ...data }) => {
|
|
@@ -82461,17 +82461,17 @@ const { useGenerateUIDMutation, useGetDefaultUIDQuery, useGetAvailabilityQuery }
|
|
|
82461
82461
|
const UID_REGEX = /^[A-Za-z0-9-_.~]*$/;
|
|
82462
82462
|
const UIDInput = React__namespace.forwardRef(
|
|
82463
82463
|
({ hint, disabled, label: label2, name: name2, placeholder, required }, ref) => {
|
|
82464
|
-
const { model, id: id2 } =
|
|
82465
|
-
const allFormValues =
|
|
82464
|
+
const { model, id: id2 } = indexGIVuHJgC.useDoc();
|
|
82465
|
+
const allFormValues = indexGIVuHJgC.useForm("InputUID", (form) => form.values);
|
|
82466
82466
|
const [availability, setAvailability] = React__namespace.useState();
|
|
82467
82467
|
const [showRegenerate, setShowRegenerate] = React__namespace.useState(false);
|
|
82468
|
-
const field =
|
|
82468
|
+
const field = indexGIVuHJgC.useField(name2);
|
|
82469
82469
|
const debouncedValue = useDebounce(field.value, 300);
|
|
82470
|
-
const { toggleNotification } =
|
|
82471
|
-
const { _unstableFormatAPIError: formatAPIError } =
|
|
82470
|
+
const { toggleNotification } = indexGIVuHJgC.useNotification();
|
|
82471
|
+
const { _unstableFormatAPIError: formatAPIError } = indexGIVuHJgC.useAPIErrorHandler();
|
|
82472
82472
|
const { formatMessage } = reactIntl.useIntl();
|
|
82473
|
-
const [{ query }] =
|
|
82474
|
-
const params = React__namespace.useMemo(() =>
|
|
82473
|
+
const [{ query }] = indexGIVuHJgC.useQueryParams();
|
|
82474
|
+
const params = React__namespace.useMemo(() => indexGIVuHJgC.buildValidParams(query), [query]);
|
|
82475
82475
|
const {
|
|
82476
82476
|
data: defaultGeneratedUID,
|
|
82477
82477
|
isLoading: isGeneratingDefaultUID,
|
|
@@ -82570,7 +82570,7 @@ const UIDInput = React__namespace.forwardRef(
|
|
|
82570
82570
|
};
|
|
82571
82571
|
}, [availabilityData]);
|
|
82572
82572
|
const isLoading = isGeneratingDefaultUID || isGeneratingUID || isCheckingAvailability;
|
|
82573
|
-
const fieldRef =
|
|
82573
|
+
const fieldRef = indexGIVuHJgC.useFocusInputField(name2);
|
|
82574
82574
|
const composedRefs = designSystem.useComposedRefs(ref, fieldRef);
|
|
82575
82575
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
82576
82576
|
designSystem.TextInput,
|
|
@@ -83983,7 +83983,7 @@ const StyledFlex = styled__default.default(designSystem.Flex)`
|
|
|
83983
83983
|
`;
|
|
83984
83984
|
const Wysiwyg = React__namespace.forwardRef(
|
|
83985
83985
|
({ hint, disabled, label: label2, name: name2, placeholder, required }, forwardedRef) => {
|
|
83986
|
-
const field =
|
|
83986
|
+
const field = indexGIVuHJgC.useField(name2);
|
|
83987
83987
|
const textareaRef = React__namespace.useRef(null);
|
|
83988
83988
|
const editorRef = React__namespace.useRef(
|
|
83989
83989
|
null
|
|
@@ -83991,7 +83991,7 @@ const Wysiwyg = React__namespace.forwardRef(
|
|
|
83991
83991
|
const [isPreviewMode, setIsPreviewMode] = React__namespace.useState(false);
|
|
83992
83992
|
const [mediaLibVisible, setMediaLibVisible] = React__namespace.useState(false);
|
|
83993
83993
|
const [isExpandMode, setIsExpandMode] = React__namespace.useState(false);
|
|
83994
|
-
const components =
|
|
83994
|
+
const components = indexGIVuHJgC.useStrapiApp("ImageDialog", (state) => state.components);
|
|
83995
83995
|
const MediaLibraryDialog = components["media-library"];
|
|
83996
83996
|
const handleToggleMediaLib = () => setMediaLibVisible((prev) => !prev);
|
|
83997
83997
|
const handleTogglePreviewMode = () => setIsPreviewMode((prev) => !prev);
|
|
@@ -84039,7 +84039,7 @@ const Wysiwyg = React__namespace.forwardRef(
|
|
|
84039
84039
|
const handleSelectAssets = (files) => {
|
|
84040
84040
|
const formattedFiles = files.map((f) => ({
|
|
84041
84041
|
alt: f.alternativeText || f.name,
|
|
84042
|
-
url:
|
|
84042
|
+
url: indexGIVuHJgC.prefixFileUrlWithBackendUrl(f.url),
|
|
84043
84043
|
mime: f.mime
|
|
84044
84044
|
}));
|
|
84045
84045
|
insertFile(editorRef, formattedFiles);
|
|
@@ -84097,18 +84097,18 @@ const Wysiwyg = React__namespace.forwardRef(
|
|
|
84097
84097
|
}
|
|
84098
84098
|
);
|
|
84099
84099
|
const InputRenderer = ({ visible, hint: providedHint, ...props }) => {
|
|
84100
|
-
const { id: id2 } =
|
|
84101
|
-
const isFormDisabled =
|
|
84100
|
+
const { id: id2 } = indexGIVuHJgC.useDoc();
|
|
84101
|
+
const isFormDisabled = indexGIVuHJgC.useForm("InputRenderer", (state) => state.disabled);
|
|
84102
84102
|
const isInDynamicZone = useDynamicZone("isInDynamicZone", (state) => state.isInDynamicZone);
|
|
84103
|
-
const canCreateFields =
|
|
84104
|
-
const canReadFields =
|
|
84105
|
-
const canUpdateFields =
|
|
84106
|
-
const canUserAction =
|
|
84103
|
+
const canCreateFields = indexGIVuHJgC.useDocumentRBAC("InputRenderer", (rbac) => rbac.canCreateFields);
|
|
84104
|
+
const canReadFields = indexGIVuHJgC.useDocumentRBAC("InputRenderer", (rbac) => rbac.canReadFields);
|
|
84105
|
+
const canUpdateFields = indexGIVuHJgC.useDocumentRBAC("InputRenderer", (rbac) => rbac.canUpdateFields);
|
|
84106
|
+
const canUserAction = indexGIVuHJgC.useDocumentRBAC("InputRenderer", (rbac) => rbac.canUserAction);
|
|
84107
84107
|
const editableFields = id2 ? canUpdateFields : canCreateFields;
|
|
84108
84108
|
const readableFields = id2 ? canReadFields : canCreateFields;
|
|
84109
84109
|
const canUserReadField = canUserAction(props.name, readableFields, props.type);
|
|
84110
84110
|
const canUserEditField = canUserAction(props.name, editableFields, props.type);
|
|
84111
|
-
const fields =
|
|
84111
|
+
const fields = indexGIVuHJgC.useStrapiApp("InputRenderer", (app) => app.fields);
|
|
84112
84112
|
const { lazyComponentStore } = useLazyComponents(
|
|
84113
84113
|
attributeHasCustomFieldProperty(props.attribute) ? [props.attribute.customField] : void 0
|
|
84114
84114
|
);
|
|
@@ -84126,7 +84126,7 @@ const InputRenderer = ({ visible, hint: providedHint, ...props }) => {
|
|
|
84126
84126
|
return /* @__PURE__ */ jsxRuntime.jsx(CustomInput, { ...props, hint, disabled: fieldIsDisabled });
|
|
84127
84127
|
} else {
|
|
84128
84128
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
84129
|
-
|
|
84129
|
+
indexGIVuHJgC.InputRenderer,
|
|
84130
84130
|
{
|
|
84131
84131
|
...props,
|
|
84132
84132
|
hint,
|
|
@@ -84149,14 +84149,14 @@ const InputRenderer = ({ visible, hint: providedHint, ...props }) => {
|
|
|
84149
84149
|
case "dynamiczone":
|
|
84150
84150
|
return /* @__PURE__ */ jsxRuntime.jsx(DynamicZone, { ...props, hint, disabled: fieldIsDisabled });
|
|
84151
84151
|
case "relation":
|
|
84152
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
84152
|
+
return /* @__PURE__ */ jsxRuntime.jsx(indexGIVuHJgC.RelationsField, { ...props, hint, disabled: fieldIsDisabled });
|
|
84153
84153
|
case "richtext":
|
|
84154
84154
|
return /* @__PURE__ */ jsxRuntime.jsx(Wysiwyg, { ...props, hint, type: props.type, disabled: fieldIsDisabled });
|
|
84155
84155
|
case "uid":
|
|
84156
84156
|
return /* @__PURE__ */ jsxRuntime.jsx(UIDInput, { ...props, hint, type: props.type, disabled: fieldIsDisabled });
|
|
84157
84157
|
case "enumeration":
|
|
84158
84158
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
84159
|
-
|
|
84159
|
+
indexGIVuHJgC.InputRenderer,
|
|
84160
84160
|
{
|
|
84161
84161
|
...props,
|
|
84162
84162
|
hint,
|
|
@@ -84168,7 +84168,7 @@ const InputRenderer = ({ visible, hint: providedHint, ...props }) => {
|
|
|
84168
84168
|
default:
|
|
84169
84169
|
const { unique: _unique, mainField: _mainField, ...restProps } = props;
|
|
84170
84170
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
84171
|
-
|
|
84171
|
+
indexGIVuHJgC.InputRenderer,
|
|
84172
84172
|
{
|
|
84173
84173
|
...restProps,
|
|
84174
84174
|
hint,
|
|
@@ -84260,9 +84260,9 @@ const EditViewPage = () => {
|
|
|
84260
84260
|
query: { status }
|
|
84261
84261
|
},
|
|
84262
84262
|
setQuery
|
|
84263
|
-
] =
|
|
84263
|
+
] = indexGIVuHJgC.useQueryParams();
|
|
84264
84264
|
const { formatMessage } = reactIntl.useIntl();
|
|
84265
|
-
const { toggleNotification } =
|
|
84265
|
+
const { toggleNotification } = indexGIVuHJgC.useNotification();
|
|
84266
84266
|
const tabApi = React__namespace.useRef(null);
|
|
84267
84267
|
const {
|
|
84268
84268
|
document: document2,
|
|
@@ -84273,7 +84273,7 @@ const EditViewPage = () => {
|
|
|
84273
84273
|
collectionType,
|
|
84274
84274
|
id: id2,
|
|
84275
84275
|
model
|
|
84276
|
-
} =
|
|
84276
|
+
} = indexGIVuHJgC.useDoc();
|
|
84277
84277
|
const hasDraftAndPublished = schema?.options?.draftAndPublish ?? false;
|
|
84278
84278
|
React__namespace.useEffect(() => {
|
|
84279
84279
|
if (tabApi.current && hasDraftAndPublished) {
|
|
@@ -84289,8 +84289,8 @@ const EditViewPage = () => {
|
|
|
84289
84289
|
});
|
|
84290
84290
|
}
|
|
84291
84291
|
});
|
|
84292
|
-
const isLoadingActionsRBAC =
|
|
84293
|
-
const isSingleType = collectionType ===
|
|
84292
|
+
const isLoadingActionsRBAC = indexGIVuHJgC.useDocumentRBAC("EditViewPage", (state) => state.isLoading);
|
|
84293
|
+
const isSingleType = collectionType === indexGIVuHJgC.SINGLE_TYPES;
|
|
84294
84294
|
const isCreatingDocument = !id2 && !isSingleType;
|
|
84295
84295
|
const {
|
|
84296
84296
|
isLoading: isLoadingLayout,
|
|
@@ -84298,7 +84298,7 @@ const EditViewPage = () => {
|
|
|
84298
84298
|
layout,
|
|
84299
84299
|
settings: { mainField }
|
|
84300
84300
|
}
|
|
84301
|
-
} =
|
|
84301
|
+
} = indexGIVuHJgC.useDocumentLayout(model);
|
|
84302
84302
|
const { isLazyLoading } = useLazyComponents([]);
|
|
84303
84303
|
const isLoading = isLoadingActionsRBAC || isLoadingDocument || isLoadingLayout || isLazyLoading;
|
|
84304
84304
|
const initialValues = React__namespace.useMemo(() => {
|
|
@@ -84309,10 +84309,10 @@ const EditViewPage = () => {
|
|
|
84309
84309
|
return transformDocument(schema, components)(form);
|
|
84310
84310
|
}, [document2, isCreatingDocument, isSingleType, schema, components]);
|
|
84311
84311
|
if (isLoading && !document2?.documentId) {
|
|
84312
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
84312
|
+
return /* @__PURE__ */ jsxRuntime.jsx(indexGIVuHJgC.Page.Loading, {});
|
|
84313
84313
|
}
|
|
84314
84314
|
if (!initialValues) {
|
|
84315
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
84315
|
+
return /* @__PURE__ */ jsxRuntime.jsx(indexGIVuHJgC.Page.Error, {});
|
|
84316
84316
|
}
|
|
84317
84317
|
const handleTabChange = (index, { resetForm }) => {
|
|
84318
84318
|
if (index === 0) {
|
|
@@ -84326,15 +84326,15 @@ const EditViewPage = () => {
|
|
|
84326
84326
|
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Main, { paddingLeft: 10, paddingRight: 10, children: [
|
|
84327
84327
|
/* @__PURE__ */ jsxRuntime.jsx(Helmet.HelmetExport, { title: `${documentTitle} | Strapi` }),
|
|
84328
84328
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
84329
|
-
|
|
84329
|
+
indexGIVuHJgC.Form,
|
|
84330
84330
|
{
|
|
84331
84331
|
disabled: hasDraftAndPublished && status === "published",
|
|
84332
84332
|
initialValues,
|
|
84333
84333
|
method: isCreatingDocument ? "POST" : "PUT",
|
|
84334
|
-
validationSchema:
|
|
84334
|
+
validationSchema: indexGIVuHJgC.createYupSchema(schema?.attributes, components),
|
|
84335
84335
|
children: ({ resetForm }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
84336
84336
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
84337
|
-
|
|
84337
|
+
indexGIVuHJgC.Header,
|
|
84338
84338
|
{
|
|
84339
84339
|
isCreating: isCreatingDocument,
|
|
84340
84340
|
status: hasDraftAndPublished ? getDocumentStatus(document2, meta) : void 0,
|
|
@@ -84347,7 +84347,7 @@ const EditViewPage = () => {
|
|
|
84347
84347
|
ref: tabApi,
|
|
84348
84348
|
variant: "simple",
|
|
84349
84349
|
label: formatMessage({
|
|
84350
|
-
id:
|
|
84350
|
+
id: indexGIVuHJgC.getTranslation("containers.edit.tabs.label"),
|
|
84351
84351
|
defaultMessage: "Document status"
|
|
84352
84352
|
}),
|
|
84353
84353
|
initialSelectedTabIndex: hasDraftAndPublished && status === "published" ? 1 : 0,
|
|
@@ -84357,11 +84357,11 @@ const EditViewPage = () => {
|
|
|
84357
84357
|
children: [
|
|
84358
84358
|
hasDraftAndPublished ? /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Tabs, { children: [
|
|
84359
84359
|
/* @__PURE__ */ jsxRuntime.jsx(StatusTab, { children: formatMessage({
|
|
84360
|
-
id:
|
|
84360
|
+
id: indexGIVuHJgC.getTranslation("containers.edit.tabs.draft"),
|
|
84361
84361
|
defaultMessage: "draft"
|
|
84362
84362
|
}) }),
|
|
84363
84363
|
/* @__PURE__ */ jsxRuntime.jsx(StatusTab, { disabled: !meta || meta.availableStatus.length === 0, children: formatMessage({
|
|
84364
|
-
id:
|
|
84364
|
+
id: indexGIVuHJgC.getTranslation("containers.edit.tabs.published"),
|
|
84365
84365
|
defaultMessage: "published"
|
|
84366
84366
|
}) })
|
|
84367
84367
|
] }) : null,
|
|
@@ -84370,12 +84370,12 @@ const EditViewPage = () => {
|
|
|
84370
84370
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.TabPanel, { children: /* @__PURE__ */ jsxRuntime.jsx(FormLayout, { layout }) }),
|
|
84371
84371
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.TabPanel, { children: /* @__PURE__ */ jsxRuntime.jsx(FormLayout, { layout }) })
|
|
84372
84372
|
] }) }),
|
|
84373
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.GridItem, { col: 3, s: 12, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
84373
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.GridItem, { col: 3, s: 12, children: /* @__PURE__ */ jsxRuntime.jsx(indexGIVuHJgC.Panels, {}) })
|
|
84374
84374
|
] })
|
|
84375
84375
|
]
|
|
84376
84376
|
}
|
|
84377
84377
|
),
|
|
84378
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
84378
|
+
/* @__PURE__ */ jsxRuntime.jsx(indexGIVuHJgC.Blocker, {})
|
|
84379
84379
|
] })
|
|
84380
84380
|
}
|
|
84381
84381
|
)
|
|
@@ -84397,16 +84397,16 @@ const getDocumentStatus = (document2, meta) => {
|
|
|
84397
84397
|
};
|
|
84398
84398
|
const ProtectedEditViewPage = () => {
|
|
84399
84399
|
const { slug } = reactRouterDom.useParams();
|
|
84400
|
-
const [{ query }] =
|
|
84401
|
-
const { permissions = [], isLoading, isError } =
|
|
84400
|
+
const [{ query }] = indexGIVuHJgC.useQueryParams();
|
|
84401
|
+
const { permissions = [], isLoading, isError } = useSyncRbacJNQibLFa.useSyncRbac(slug ?? "", query, "editView");
|
|
84402
84402
|
if (isLoading) {
|
|
84403
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
84403
|
+
return /* @__PURE__ */ jsxRuntime.jsx(indexGIVuHJgC.Page.Loading, {});
|
|
84404
84404
|
}
|
|
84405
84405
|
if (!isLoading && isError || !slug) {
|
|
84406
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
84406
|
+
return /* @__PURE__ */ jsxRuntime.jsx(indexGIVuHJgC.Page.Error, {});
|
|
84407
84407
|
}
|
|
84408
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
84408
|
+
return /* @__PURE__ */ jsxRuntime.jsx(indexGIVuHJgC.Page.Protect, { permissions, children: ({ permissions: permissions2 }) => /* @__PURE__ */ jsxRuntime.jsx(indexGIVuHJgC.DocumentRBAC, { permissions: permissions2, children: /* @__PURE__ */ jsxRuntime.jsx(EditViewPage, {}) }) });
|
|
84409
84409
|
};
|
|
84410
84410
|
exports.EditViewPage = EditViewPage;
|
|
84411
84411
|
exports.ProtectedEditViewPage = ProtectedEditViewPage;
|
|
84412
|
-
//# sourceMappingURL=EditViewPage-
|
|
84412
|
+
//# sourceMappingURL=EditViewPage-JFzIJClS-9jnyNYlZ.js.map
|