@localazy/strapi-plugin 1.0.4 → 1.0.9

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.
Files changed (61) hide show
  1. package/dist/_chunks/FetchIdentity-4kkW9N7Y.js +981 -0
  2. package/dist/_chunks/FetchIdentity-BWSQAXt-.mjs +983 -0
  3. package/dist/_chunks/{LanguagesSelector-CeB7tVcb.mjs → LanguagesSelector-DwAGgpcR.mjs} +4 -2
  4. package/dist/_chunks/{LanguagesSelector-Bd8VFHib.js → LanguagesSelector-yWC_Yb_S.js} +12 -10
  5. package/dist/_chunks/{App-NRmSxuW3.js → LocalazyApp-DnaA768k.js} +136 -117
  6. package/dist/_chunks/{App-CtS6CrNn.mjs → LocalazyApp-zySanVTu.mjs} +32 -13
  7. package/dist/_chunks/{ContentTransferSetup-CeKXlzw_.mjs → LocalazyContentTransferSetup-C7qVIeix.mjs} +49 -456
  8. package/dist/_chunks/{ContentTransferSetup-DGs8MZPj.js → LocalazyContentTransferSetup-CeOM6bYA.js} +113 -520
  9. package/dist/_chunks/{GlobalSettings-rOwd0Y0E.mjs → LocalazyGlobalSettings-QvuLdsLe.mjs} +17 -8
  10. package/dist/_chunks/{GlobalSettings-CRMPRA3Y.js → LocalazyGlobalSettings-ewETL3oG.js} +61 -52
  11. package/dist/_chunks/LocalazyPanel-BXVLvFgD.js +83 -0
  12. package/dist/_chunks/LocalazyPanel-BotUsX-y.mjs +83 -0
  13. package/dist/_chunks/LocalazyStatusColumn-C81HewMg.mjs +51 -0
  14. package/dist/_chunks/LocalazyStatusColumn-Dt96YcGQ.js +51 -0
  15. package/dist/_chunks/{isEqual-CC-cEPwY.mjs → RequireLocalazyAuth-CDuyGCrT.mjs} +22 -1
  16. package/dist/_chunks/{isEqual-0M0aSdTT.js → RequireLocalazyAuth-CWBWETzC.js} +50 -29
  17. package/dist/_chunks/_commonjsHelpers-Bc2YnDe1.js +7 -0
  18. package/dist/_chunks/_commonjsHelpers-DWwsNxpa.mjs +8 -0
  19. package/dist/_chunks/en-CMWcM0nM.js +10 -0
  20. package/dist/_chunks/en-RX915msK.mjs +10 -0
  21. package/dist/_chunks/entry-exclusion-service-BVPICve2.mjs +60 -0
  22. package/dist/_chunks/entry-exclusion-service-CGV6iOkB.js +60 -0
  23. package/dist/_chunks/{has-model-changed-gNSOSMBa.js → has-model-changed-DVYRxVhM.js} +33 -32
  24. package/dist/_chunks/{has-model-changed-DViUIQHk.mjs → has-model-changed-DZL36gWh.mjs} +3 -2
  25. package/dist/_chunks/i18n-0dV2P-Hm.js +2378 -0
  26. package/dist/_chunks/i18n-RoETLXdU.mjs +2378 -0
  27. package/dist/_chunks/index-1he9s_bs.js +430 -0
  28. package/dist/_chunks/index-BIbKC7-V.mjs +432 -0
  29. package/dist/_chunks/index-CCxXsn7Z.js +254 -0
  30. package/dist/_chunks/{set-Cbi1yYuW.js → index-CaY3BYnQ.js} +878 -4379
  31. package/dist/_chunks/{set-Dnhh_SyE.mjs → index-CgI_aKe_.mjs} +906 -4408
  32. package/dist/_chunks/index-DsrYI6aB.mjs +231 -0
  33. package/dist/_chunks/initReactI18next-B0H8_DlW.js +60 -0
  34. package/dist/_chunks/initReactI18next-MHHxeg_9.mjs +61 -0
  35. package/dist/_chunks/{index-Dj68Ixl2.mjs → strapi-api-base-BE8VMlaA.js} +7 -234
  36. package/dist/_chunks/{index-Bbwk3kp3.js → strapi-api-base-DjeKGUw7.mjs} +15 -242
  37. package/dist/_chunks/useTranslation-BdIl-aLe.js +188 -0
  38. package/dist/_chunks/useTranslation-CZQ4lU1m.mjs +189 -0
  39. package/dist/admin/index.js +1 -1
  40. package/dist/admin/index.mjs +1 -1
  41. package/dist/admin/src/components/LocalazyPanel.d.ts +4 -0
  42. package/dist/admin/src/components/LocalazyStatusColumn.d.ts +3 -0
  43. package/dist/admin/src/components/RequireLocalazyAuth.d.ts +6 -0
  44. package/dist/admin/src/index.d.ts +1 -0
  45. package/dist/admin/src/modules/entry-exclusion/services/entry-exclusion-service.d.ts +18 -0
  46. package/dist/admin/src/modules/plugin-settings/locale/en.d.ts +8 -0
  47. package/dist/admin/src/pages/LocalazyApp.d.ts +2 -0
  48. package/dist/admin/src/pages/LocalazyContentTransferSetup.d.ts +2 -0
  49. package/dist/admin/src/pages/LocalazyGlobalSettings.d.ts +2 -0
  50. package/dist/server/index.js +202 -35
  51. package/dist/server/index.mjs +202 -35
  52. package/dist/server/src/controllers/entry-exclusion-controller.d.ts +21 -0
  53. package/dist/server/src/controllers/index.d.ts +7 -0
  54. package/dist/server/src/core/index.d.ts +6 -0
  55. package/dist/server/src/index.d.ts +15 -0
  56. package/dist/server/src/routes/entry-exclusion-routes.d.ts +9 -0
  57. package/dist/server/src/services/entry-exclusion-service.d.ts +23 -0
  58. package/dist/server/src/services/index.d.ts +8 -0
  59. package/package.json +2 -2
  60. package/dist/_chunks/en-BTf8goGM.mjs +0 -8
  61. package/dist/_chunks/en-CRtsEFtl.js +0 -8
@@ -2,428 +2,17 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
- const isEqual = require("./isEqual-0M0aSdTT.js");
6
- const set = require("./set-Cbi1yYuW.js");
5
+ const RequireLocalazyAuth = require("./RequireLocalazyAuth-CWBWETzC.js");
6
+ const FetchIdentity = require("./FetchIdentity-4kkW9N7Y.js");
7
7
  const admin = require("@strapi/strapi/admin");
8
- const hasModelChanged = require("./has-model-changed-gNSOSMBa.js");
8
+ const index = require("./index-CaY3BYnQ.js");
9
+ const hasModelChanged = require("./has-model-changed-DVYRxVhM.js");
10
+ const useTranslation = require("./useTranslation-BdIl-aLe.js");
9
11
  const styled = require("styled-components");
10
- const _interopDefault = (e2) => e2 && e2.__esModule ? e2 : { default: e2 };
12
+ const index$1 = require("./index-1he9s_bs.js");
13
+ require("./i18n-0dV2P-Hm.js");
14
+ const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
11
15
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
12
- var voidElements = {
13
- "area": true,
14
- "base": true,
15
- "br": true,
16
- "col": true,
17
- "embed": true,
18
- "hr": true,
19
- "img": true,
20
- "input": true,
21
- "link": true,
22
- "meta": true,
23
- "param": true,
24
- "source": true,
25
- "track": true,
26
- "wbr": true
27
- };
28
- const e = /* @__PURE__ */ set.getDefaultExportFromCjs(voidElements);
29
- var t = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
30
- function n(n2) {
31
- var r2 = { type: "tag", name: "", voidElement: false, attrs: {}, children: [] }, i2 = n2.match(/<\/?([^\s]+?)[/\s>]/);
32
- if (i2 && (r2.name = i2[1], (e[i2[1]] || "/" === n2.charAt(n2.length - 2)) && (r2.voidElement = true), r2.name.startsWith("!--"))) {
33
- var s2 = n2.indexOf("-->");
34
- return { type: "comment", comment: -1 !== s2 ? n2.slice(4, s2) : "" };
35
- }
36
- for (var a2 = new RegExp(t), c2 = null; null !== (c2 = a2.exec(n2)); ) if (c2[0].trim()) if (c2[1]) {
37
- var o = c2[1].trim(), l = [o, ""];
38
- o.indexOf("=") > -1 && (l = o.split("=")), r2.attrs[l[0]] = l[1], a2.lastIndex--;
39
- } else c2[2] && (r2.attrs[c2[2]] = c2[3].trim().substring(1, c2[3].length - 1));
40
- return r2;
41
- }
42
- var r = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, i = /^\s*$/, s = /* @__PURE__ */ Object.create(null);
43
- function a(e2, t2) {
44
- switch (t2.type) {
45
- case "text":
46
- return e2 + t2.content;
47
- case "tag":
48
- return e2 += "<" + t2.name + (t2.attrs ? function(e3) {
49
- var t3 = [];
50
- for (var n2 in e3) t3.push(n2 + '="' + e3[n2] + '"');
51
- return t3.length ? " " + t3.join(" ") : "";
52
- }(t2.attrs) : "") + (t2.voidElement ? "/>" : ">"), t2.voidElement ? e2 : e2 + t2.children.reduce(a, "") + "</" + t2.name + ">";
53
- case "comment":
54
- return e2 + "<!--" + t2.comment + "-->";
55
- }
56
- }
57
- var c = { parse: function(e2, t2) {
58
- t2 || (t2 = {}), t2.components || (t2.components = s);
59
- var a2, c2 = [], o = [], l = -1, m = false;
60
- if (0 !== e2.indexOf("<")) {
61
- var u = e2.indexOf("<");
62
- c2.push({ type: "text", content: -1 === u ? e2 : e2.substring(0, u) });
63
- }
64
- return e2.replace(r, function(r2, s2) {
65
- if (m) {
66
- if (r2 !== "</" + a2.name + ">") return;
67
- m = false;
68
- }
69
- var u2, f = "/" !== r2.charAt(1), h = r2.startsWith("<!--"), p = s2 + r2.length, d = e2.charAt(p);
70
- if (h) {
71
- var v = n(r2);
72
- return l < 0 ? (c2.push(v), c2) : ((u2 = o[l]).children.push(v), c2);
73
- }
74
- if (f && (l++, "tag" === (a2 = n(r2)).type && t2.components[a2.name] && (a2.type = "component", m = true), a2.voidElement || m || !d || "<" === d || a2.children.push({ type: "text", content: e2.slice(p, e2.indexOf("<", p)) }), 0 === l && c2.push(a2), (u2 = o[l - 1]) && u2.children.push(a2), o[l] = a2), (!f || a2.voidElement) && (l > -1 && (a2.voidElement || a2.name === r2.slice(2, -1)) && (l--, a2 = -1 === l ? c2 : o[l]), !m && "<" !== d && d)) {
75
- u2 = -1 === l ? c2 : o[l].children;
76
- var x = e2.indexOf("<", p), g = e2.slice(p, -1 === x ? void 0 : x);
77
- i.test(g) && (g = " "), (x > -1 && l + u2.length >= 0 || " " !== g) && u2.push({ type: "text", content: g });
78
- }
79
- }), c2;
80
- }, stringify: function(e2) {
81
- return e2.reduce(function(e3, t2) {
82
- return e3 + a("", t2);
83
- }, "");
84
- } };
85
- const hasChildren = (node, checkLength) => {
86
- if (!node) return false;
87
- const base = node.props?.children ?? node.children;
88
- if (checkLength) return base.length > 0;
89
- return !!base;
90
- };
91
- const getChildren = (node) => {
92
- if (!node) return [];
93
- const children = node.props?.children ?? node.children;
94
- return node.props?.i18nIsDynamicList ? getAsArray(children) : children;
95
- };
96
- const hasValidReactChildren = (children) => Array.isArray(children) && children.every(React.isValidElement);
97
- const getAsArray = (data) => Array.isArray(data) ? data : [data];
98
- const mergeProps = (source, target) => {
99
- const newTarget = {
100
- ...target
101
- };
102
- newTarget.props = Object.assign(source.props, target.props);
103
- return newTarget;
104
- };
105
- const nodesToString = (children, i18nOptions, i18n, i18nKey) => {
106
- if (!children) return "";
107
- let stringNode = "";
108
- const childrenArray = getAsArray(children);
109
- const keepArray = i18nOptions?.transSupportBasicHtmlNodes ? i18nOptions.transKeepBasicHtmlNodesFor ?? [] : [];
110
- childrenArray.forEach((child, childIndex) => {
111
- if (set.isString(child)) {
112
- stringNode += `${child}`;
113
- return;
114
- }
115
- if (React.isValidElement(child)) {
116
- const {
117
- props,
118
- type
119
- } = child;
120
- const childPropsCount = Object.keys(props).length;
121
- const shouldKeepChild = keepArray.indexOf(type) > -1;
122
- const childChildren = props.children;
123
- if (!childChildren && shouldKeepChild && !childPropsCount) {
124
- stringNode += `<${type}/>`;
125
- return;
126
- }
127
- if (!childChildren && (!shouldKeepChild || childPropsCount) || props.i18nIsDynamicList) {
128
- stringNode += `<${childIndex}></${childIndex}>`;
129
- return;
130
- }
131
- if (shouldKeepChild && childPropsCount === 1 && set.isString(childChildren)) {
132
- stringNode += `<${type}>${childChildren}</${type}>`;
133
- return;
134
- }
135
- const content = nodesToString(childChildren, i18nOptions, i18n, i18nKey);
136
- stringNode += `<${childIndex}>${content}</${childIndex}>`;
137
- return;
138
- }
139
- if (child === null) {
140
- set.warn(i18n, "TRANS_NULL_VALUE", `Passed in a null value as child`, {
141
- i18nKey
142
- });
143
- return;
144
- }
145
- if (set.isObject(child)) {
146
- const {
147
- format,
148
- ...clone
149
- } = child;
150
- const keys = Object.keys(clone);
151
- if (keys.length === 1) {
152
- const value = format ? `${keys[0]}, ${format}` : keys[0];
153
- stringNode += `{{${value}}}`;
154
- return;
155
- }
156
- set.warn(i18n, "TRANS_INVALID_OBJ", `Invalid child - Object should only have keys {{ value, format }} (format is optional).`, {
157
- i18nKey,
158
- child
159
- });
160
- return;
161
- }
162
- set.warn(i18n, "TRANS_INVALID_VAR", `Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.`, {
163
- i18nKey,
164
- child
165
- });
166
- });
167
- return stringNode;
168
- };
169
- const renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, shouldUnescape) => {
170
- if (targetString === "") return [];
171
- const keepArray = i18nOptions.transKeepBasicHtmlNodesFor || [];
172
- const emptyChildrenButNeedsHandling = targetString && new RegExp(keepArray.map((keep) => `<${keep}`).join("|")).test(targetString);
173
- if (!children && !emptyChildrenButNeedsHandling && !shouldUnescape) return [targetString];
174
- const data = {};
175
- const getData = (childs) => {
176
- const childrenArray = getAsArray(childs);
177
- childrenArray.forEach((child) => {
178
- if (set.isString(child)) return;
179
- if (hasChildren(child)) getData(getChildren(child));
180
- else if (set.isObject(child) && !React.isValidElement(child)) Object.assign(data, child);
181
- });
182
- };
183
- getData(children);
184
- const ast = c.parse(`<0>${targetString}</0>`);
185
- const opts = {
186
- ...data,
187
- ...combinedTOpts
188
- };
189
- const renderInner = (child, node, rootReactNode) => {
190
- const childs = getChildren(child);
191
- const mappedChildren = mapAST(childs, node.children, rootReactNode);
192
- return hasValidReactChildren(childs) && mappedChildren.length === 0 || child.props?.i18nIsDynamicList ? childs : mappedChildren;
193
- };
194
- const pushTranslatedJSX = (child, inner, mem, i2, isVoid) => {
195
- if (child.dummy) {
196
- child.children = inner;
197
- mem.push(React.cloneElement(child, {
198
- key: i2
199
- }, isVoid ? void 0 : inner));
200
- } else {
201
- mem.push(...React.Children.map([child], (c2) => {
202
- const props = {
203
- ...c2.props
204
- };
205
- delete props.i18nIsDynamicList;
206
- return React.createElement(c2.type, {
207
- ...props,
208
- key: i2,
209
- ref: c2.ref
210
- }, isVoid ? null : inner);
211
- }));
212
- }
213
- };
214
- const mapAST = (reactNode, astNode, rootReactNode) => {
215
- const reactNodes = getAsArray(reactNode);
216
- const astNodes = getAsArray(astNode);
217
- return astNodes.reduce((mem, node, i2) => {
218
- const translationContent = node.children?.[0]?.content && i18n.services.interpolator.interpolate(node.children[0].content, opts, i18n.language);
219
- if (node.type === "tag") {
220
- let tmp = reactNodes[parseInt(node.name, 10)];
221
- if (rootReactNode.length === 1 && !tmp) tmp = rootReactNode[0][node.name];
222
- if (!tmp) tmp = {};
223
- const child = Object.keys(node.attrs).length !== 0 ? mergeProps({
224
- props: node.attrs
225
- }, tmp) : tmp;
226
- const isElement = React.isValidElement(child);
227
- const isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;
228
- const isEmptyTransWithHTML = emptyChildrenButNeedsHandling && set.isObject(child) && child.dummy && !isElement;
229
- const isKnownComponent = set.isObject(children) && Object.hasOwnProperty.call(children, node.name);
230
- if (set.isString(child)) {
231
- const value = i18n.services.interpolator.interpolate(child, opts, i18n.language);
232
- mem.push(value);
233
- } else if (hasChildren(child) || isValidTranslationWithChildren) {
234
- const inner = renderInner(child, node, rootReactNode);
235
- pushTranslatedJSX(child, inner, mem, i2);
236
- } else if (isEmptyTransWithHTML) {
237
- const inner = mapAST(reactNodes, node.children, rootReactNode);
238
- pushTranslatedJSX(child, inner, mem, i2);
239
- } else if (Number.isNaN(parseFloat(node.name))) {
240
- if (isKnownComponent) {
241
- const inner = renderInner(child, node, rootReactNode);
242
- pushTranslatedJSX(child, inner, mem, i2, node.voidElement);
243
- } else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {
244
- if (node.voidElement) {
245
- mem.push(React.createElement(node.name, {
246
- key: `${node.name}-${i2}`
247
- }));
248
- } else {
249
- const inner = mapAST(reactNodes, node.children, rootReactNode);
250
- mem.push(React.createElement(node.name, {
251
- key: `${node.name}-${i2}`
252
- }, inner));
253
- }
254
- } else if (node.voidElement) {
255
- mem.push(`<${node.name} />`);
256
- } else {
257
- const inner = mapAST(reactNodes, node.children, rootReactNode);
258
- mem.push(`<${node.name}>${inner}</${node.name}>`);
259
- }
260
- } else if (set.isObject(child) && !isElement) {
261
- const content = node.children[0] ? translationContent : null;
262
- if (content) mem.push(content);
263
- } else {
264
- pushTranslatedJSX(child, translationContent, mem, i2, node.children.length !== 1 || !translationContent);
265
- }
266
- } else if (node.type === "text") {
267
- const wrapTextNodes = i18nOptions.transWrapTextNodes;
268
- const content = shouldUnescape ? i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);
269
- if (wrapTextNodes) {
270
- mem.push(React.createElement(wrapTextNodes, {
271
- key: `${node.name}-${i2}`
272
- }, content));
273
- } else {
274
- mem.push(content);
275
- }
276
- }
277
- return mem;
278
- }, []);
279
- };
280
- const result = mapAST([{
281
- dummy: true,
282
- children: children || []
283
- }], ast, getAsArray(children || []));
284
- return getChildren(result[0]);
285
- };
286
- const fixComponentProps = (component, index, translation) => {
287
- const componentKey = component.key || index;
288
- const comp = React.cloneElement(component, {
289
- key: componentKey
290
- });
291
- if (!comp.props || !comp.props.children || translation.indexOf(`${index}/>`) < 0 && translation.indexOf(`${index} />`) < 0) {
292
- return comp;
293
- }
294
- function Componentized() {
295
- return React.createElement(React.Fragment, null, comp);
296
- }
297
- return React.createElement(Componentized);
298
- };
299
- const generateArrayComponents = (components, translation) => components.map((c2, index) => fixComponentProps(c2, index, translation));
300
- const generateObjectComponents = (components, translation) => {
301
- const componentMap = {};
302
- Object.keys(components).forEach((c2) => {
303
- Object.assign(componentMap, {
304
- [c2]: fixComponentProps(components[c2], c2, translation)
305
- });
306
- });
307
- return componentMap;
308
- };
309
- const generateComponents = (components, translation, i18n, i18nKey) => {
310
- if (!components) return null;
311
- if (Array.isArray(components)) {
312
- return generateArrayComponents(components, translation);
313
- }
314
- if (set.isObject(components)) {
315
- return generateObjectComponents(components, translation);
316
- }
317
- set.warnOnce(i18n, "TRANS_INVALID_COMPONENTS", `<Trans /> "components" prop expects an object or array`, {
318
- i18nKey
319
- });
320
- return null;
321
- };
322
- function Trans$1({
323
- children,
324
- count,
325
- parent,
326
- i18nKey,
327
- context,
328
- tOptions = {},
329
- values,
330
- defaults,
331
- components,
332
- ns,
333
- i18n: i18nFromProps,
334
- t: tFromProps,
335
- shouldUnescape,
336
- ...additionalProps
337
- }) {
338
- const i18n = i18nFromProps || set.getI18n();
339
- if (!i18n) {
340
- set.warnOnce(i18n, "NO_I18NEXT_INSTANCE", `Trans: You need to pass in an i18next instance using i18nextReactModule`, {
341
- i18nKey
342
- });
343
- return children;
344
- }
345
- const t2 = tFromProps || i18n.t.bind(i18n) || ((k) => k);
346
- const reactI18nextOptions = {
347
- ...set.getDefaults(),
348
- ...i18n.options?.react
349
- };
350
- let namespaces = ns || t2.ns || i18n.options?.defaultNS;
351
- namespaces = set.isString(namespaces) ? [namespaces] : namespaces || ["translation"];
352
- const nodeAsString = nodesToString(children, reactI18nextOptions, i18n, i18nKey);
353
- const defaultValue = defaults || nodeAsString || reactI18nextOptions.transEmptyNodeValue || i18nKey;
354
- const {
355
- hashTransKey
356
- } = reactI18nextOptions;
357
- const key = i18nKey || (hashTransKey ? hashTransKey(nodeAsString || defaultValue) : nodeAsString || defaultValue);
358
- if (i18n.options?.interpolation?.defaultVariables) {
359
- values = values && Object.keys(values).length > 0 ? {
360
- ...values,
361
- ...i18n.options.interpolation.defaultVariables
362
- } : {
363
- ...i18n.options.interpolation.defaultVariables
364
- };
365
- }
366
- const interpolationOverride = values || count !== void 0 && !i18n.options?.interpolation?.alwaysFormat || !children ? tOptions.interpolation : {
367
- interpolation: {
368
- ...tOptions.interpolation,
369
- prefix: "#$?",
370
- suffix: "?$#"
371
- }
372
- };
373
- const combinedTOpts = {
374
- ...tOptions,
375
- context: context || tOptions.context,
376
- count,
377
- ...values,
378
- ...interpolationOverride,
379
- defaultValue,
380
- ns: namespaces
381
- };
382
- const translation = key ? t2(key, combinedTOpts) : defaultValue;
383
- const generatedComponents = generateComponents(components, translation, i18n, i18nKey);
384
- const content = renderNodes(generatedComponents || children, translation, i18n, reactI18nextOptions, combinedTOpts, shouldUnescape);
385
- const useAsParent = parent ?? reactI18nextOptions.defaultTransParent;
386
- return useAsParent ? React.createElement(useAsParent, additionalProps, content) : content;
387
- }
388
- function Trans({
389
- children,
390
- count,
391
- parent,
392
- i18nKey,
393
- context,
394
- tOptions = {},
395
- values,
396
- defaults,
397
- components,
398
- ns,
399
- i18n: i18nFromProps,
400
- t: tFromProps,
401
- shouldUnescape,
402
- ...additionalProps
403
- }) {
404
- const {
405
- i18n: i18nFromContext,
406
- defaultNS: defaultNSFromContext
407
- } = React.useContext(set.I18nContext) || {};
408
- const i18n = i18nFromProps || i18nFromContext || set.getI18n();
409
- const t2 = tFromProps || i18n?.t.bind(i18n);
410
- return Trans$1({
411
- children,
412
- count,
413
- parent,
414
- i18nKey,
415
- context,
416
- tOptions,
417
- values,
418
- defaults,
419
- components,
420
- ns: ns || t2?.ns || defaultNSFromContext || i18n?.options?.defaultNS,
421
- i18n,
422
- t: tFromProps,
423
- shouldUnescape,
424
- ...additionalProps
425
- });
426
- }
427
16
  const getFilteredModelsSchemas = (models) => {
428
17
  if (!models) {
429
18
  return [];
@@ -453,21 +42,21 @@ const buildContentTransferSetupSchema = (localizableTree = [], storedSetupSchema
453
42
  const localizableTreeValueToSet = hasModelChanged.get(oStoredSetupSchema, key);
454
43
  const allModelsTreeValueToSet = hasModelChanged.findModelValueByKey(allModelsTree, key);
455
44
  if (allModelsTreeValueToSet === null) {
456
- set.set(destinationObject, key, null);
45
+ FetchIdentity.set(destinationObject, key, null);
457
46
  } else if (localizableTreeValueToSet !== null) {
458
- set.set(destinationObject, key, localizableTreeValueToSet);
47
+ FetchIdentity.set(destinationObject, key, localizableTreeValueToSet);
459
48
  } else {
460
49
  const newValueToSet = hasModelChanged.findModelValueByKey(allModelsTree, key);
461
- set.set(destinationObject, key, newValueToSet);
50
+ FetchIdentity.set(destinationObject, key, newValueToSet);
462
51
  }
463
52
  });
464
53
  newKeys.forEach((key) => {
465
- set.set(destinationObject, key, hasModelChanged.get(oLocalizableTree, key));
54
+ FetchIdentity.set(destinationObject, key, hasModelChanged.get(oLocalizableTree, key));
466
55
  });
467
56
  const destinationArray = [];
468
- const sortedDestinationObjectKeys = Object.keys(destinationObject).sort((a2, b) => {
469
- if (a2 < b) return -1;
470
- if (a2 > b) return 1;
57
+ const sortedDestinationObjectKeys = Object.keys(destinationObject).sort((a, b) => {
58
+ if (a < b) return -1;
59
+ if (a > b) return 1;
471
60
  return 0;
472
61
  });
473
62
  for (const key of sortedDestinationObjectKeys) {
@@ -1183,16 +772,16 @@ const TreeItem = ({ label, value, children, passedKey = "", onTreeItemClick }) =
1183
772
  onTreeItemClick(key, currentValue);
1184
773
  };
1185
774
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1186
- typeof value === "boolean" && /* @__PURE__ */ jsxRuntime.jsx(set.CheckboxImpl, { checked: value, onCheckedChange: () => onChange([passedKey], value), children: label || "-" }),
1187
- value === null && /* @__PURE__ */ jsxRuntime.jsx(set.CheckboxImpl, { checked: false, disabled: true, children: label || "-" }),
775
+ typeof value === "boolean" && /* @__PURE__ */ jsxRuntime.jsx(index.CheckboxImpl, { checked: value, onCheckedChange: () => onChange([passedKey], value), children: label || "-" }),
776
+ value === null && /* @__PURE__ */ jsxRuntime.jsx(index.CheckboxImpl, { checked: false, disabled: true, children: label || "-" }),
1188
777
  children && /* @__PURE__ */ jsxRuntime.jsx("div", { children }, passedKey)
1189
778
  ] });
1190
779
  };
1191
780
  function createBaseFor(fromRight) {
1192
781
  return function(object, iteratee, keysFunc) {
1193
- var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
782
+ var index2 = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
1194
783
  while (length--) {
1195
- var key = props[++index];
784
+ var key = props[++index2];
1196
785
  if (iteratee(iterable[key], key, iterable) === false) {
1197
786
  break;
1198
787
  }
@@ -1202,19 +791,19 @@ function createBaseFor(fromRight) {
1202
791
  }
1203
792
  var baseFor = createBaseFor();
1204
793
  function baseForOwn(object, iteratee) {
1205
- return object && baseFor(object, iteratee, set.keys);
794
+ return object && baseFor(object, iteratee, FetchIdentity.keys);
1206
795
  }
1207
796
  function createBaseEach(eachFunc, fromRight) {
1208
797
  return function(collection, iteratee) {
1209
798
  if (collection == null) {
1210
799
  return collection;
1211
800
  }
1212
- if (!set.isArrayLike(collection)) {
801
+ if (!FetchIdentity.isArrayLike(collection)) {
1213
802
  return eachFunc(collection, iteratee);
1214
803
  }
1215
- var length = collection.length, index = -1, iterable = Object(collection);
1216
- while (++index < length) {
1217
- if (iteratee(iterable[index], index, iterable) === false) {
804
+ var length = collection.length, index2 = -1, iterable = Object(collection);
805
+ while (++index2 < length) {
806
+ if (iteratee(iterable[index2], index2, iterable) === false) {
1218
807
  break;
1219
808
  }
1220
809
  }
@@ -1229,13 +818,13 @@ function castFunction(value) {
1229
818
  return typeof value == "function" ? value : identity;
1230
819
  }
1231
820
  function forEach(collection, iteratee) {
1232
- var func = set.isArray(collection) ? set.arrayEach : baseEach;
821
+ var func = FetchIdentity.isArray(collection) ? FetchIdentity.arrayEach : baseEach;
1233
822
  return func(collection, castFunction(iteratee));
1234
823
  }
1235
824
  function flattenObject(obj, delimiter = ".") {
1236
825
  const nobj = {};
1237
826
  forEach(obj, (val, key) => {
1238
- if (set.isObject$1(val) && !set.isArray(val)) {
827
+ if (FetchIdentity.isObject(val) && !FetchIdentity.isArray(val)) {
1239
828
  const strip = flattenObject(val, delimiter);
1240
829
  forEach(strip, (v, k) => {
1241
830
  nobj[key + delimiter + k] = v;
@@ -1247,7 +836,7 @@ function flattenObject(obj, delimiter = ".") {
1247
836
  return nobj;
1248
837
  }
1249
838
  const Tree = ({ objects, onTreeItemClick, initiallyExpanded = false }) => {
1250
- const { t: t2 } = set.useTranslation();
839
+ const { t } = useTranslation.useTranslation();
1251
840
  const [, setIsExpanded] = React.useState(initiallyExpanded);
1252
841
  React.useEffect(() => {
1253
842
  setIsExpanded(initiallyExpanded);
@@ -1295,15 +884,15 @@ const Tree = ({ objects, onTreeItemClick, initiallyExpanded = false }) => {
1295
884
  return false;
1296
885
  }
1297
886
  const passedKey = `${path}.${key}`;
1298
- return /* @__PURE__ */ jsxRuntime.jsxs(set.Box, { marginTop: 6, marginBottom: 6, marginLeft: 6, children: [
887
+ return /* @__PURE__ */ jsxRuntime.jsxs(index.Box, { marginTop: 6, marginBottom: 6, marginLeft: 6, children: [
1299
888
  isSubbranchObject && /* @__PURE__ */ jsxRuntime.jsx(
1300
- set.CheckboxImpl,
889
+ index.CheckboxImpl,
1301
890
  {
1302
891
  disabled: hasAllNullValue,
1303
892
  checked: getCheckedState(hasTruthyValue, hasFalsyValue),
1304
893
  onCheckedChange: () => onTreeItemClick(flattenedKeys, hasTruthyValue),
1305
- children: /* @__PURE__ */ jsxRuntime.jsxs(set.Flex, { alignItems: "center", children: [
1306
- !!value?.__component__ && /* @__PURE__ */ jsxRuntime.jsx(set.Flex, { alignItems: "center", marginRight: 2, children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$P, { width: "1rem", height: "1rem" }) }),
894
+ children: /* @__PURE__ */ jsxRuntime.jsxs(index.Flex, { alignItems: "center", children: [
895
+ !!value?.__component__ && /* @__PURE__ */ jsxRuntime.jsx(index.Flex, { alignItems: "center", marginRight: 2, children: /* @__PURE__ */ jsxRuntime.jsx(ForwardRef$P, { width: "1rem", height: "1rem" }) }),
1307
896
  value?.__component__ || key || "-"
1308
897
  ] })
1309
898
  }
@@ -1314,16 +903,16 @@ const Tree = ({ objects, onTreeItemClick, initiallyExpanded = false }) => {
1314
903
  }
1315
904
  return /* @__PURE__ */ jsxRuntime.jsx(TreeItem, { onTreeItemClick, passedKey: path, label: name, value: branch }, path);
1316
905
  };
1317
- return /* @__PURE__ */ jsxRuntime.jsx(set.Box, { children: Object.entries(objects).map(([key, value]) => {
1318
- return value.__model__ !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(set.Box, { borderColor: "neutral200", hasRadius: true, children: /* @__PURE__ */ jsxRuntime.jsx(set.Accordion.Root, { size: "S", children: /* @__PURE__ */ jsxRuntime.jsxs(set.Accordion.Item, { value: key, children: [
1319
- /* @__PURE__ */ jsxRuntime.jsxs(set.Flex, { alignItems: "center", justifyContent: "space-between", children: [
1320
- /* @__PURE__ */ jsxRuntime.jsx(set.Accordion.Header, { style: { flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsxs(set.Accordion.Trigger, { description: key, children: [
906
+ return /* @__PURE__ */ jsxRuntime.jsx(index.Box, { children: Object.entries(objects).map(([key, value]) => {
907
+ return value.__model__ !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(index.Box, { borderColor: "neutral200", hasRadius: true, children: /* @__PURE__ */ jsxRuntime.jsx(index.Accordion.Root, { size: "S", children: /* @__PURE__ */ jsxRuntime.jsxs(index.Accordion.Item, { value: key, children: [
908
+ /* @__PURE__ */ jsxRuntime.jsxs(index.Flex, { alignItems: "center", justifyContent: "space-between", children: [
909
+ /* @__PURE__ */ jsxRuntime.jsx(index.Accordion.Header, { style: { flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsxs(index.Accordion.Trigger, { description: key, children: [
1321
910
  key,
1322
911
  " ",
1323
- t2("plugin_settings.tree_item_count", { count: getCheckedStateCount(value) })
912
+ t("plugin_settings.tree_item_count", { count: getCheckedStateCount(value) })
1324
913
  ] }) }),
1325
914
  /* @__PURE__ */ jsxRuntime.jsx(
1326
- set.SwitchImpl,
915
+ index.SwitchImpl,
1327
916
  {
1328
917
  label: `switch_tree_${key}`,
1329
918
  onCheckedChange: () => onTreeItemClick([`${key}.__model__`], value.__model__),
@@ -1332,7 +921,7 @@ const Tree = ({ objects, onTreeItemClick, initiallyExpanded = false }) => {
1332
921
  }
1333
922
  )
1334
923
  ] }),
1335
- /* @__PURE__ */ jsxRuntime.jsx(set.Accordion.Content, { children: createTree(key, value, key) })
924
+ /* @__PURE__ */ jsxRuntime.jsx(index.Accordion.Content, { children: createTree(key, value, key) })
1336
925
  ] }) }) }, `key`);
1337
926
  }) });
1338
927
  };
@@ -1344,104 +933,104 @@ const CustomBullet = styled__default.default.div`
1344
933
  border-radius: 50%;
1345
934
  `;
1346
935
  function ContentTransferSetupEmpty() {
1347
- const { t: t2 } = set.useTranslation();
936
+ const { t } = useTranslation.useTranslation();
1348
937
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1349
- /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { textColor: "neutral600", variant: "beta", children: t2("plugin_settings.there_is_nothing_to_transfer") }),
938
+ /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { textColor: "neutral600", variant: "beta", children: t("plugin_settings.there_is_nothing_to_transfer") }),
1350
939
  /* @__PURE__ */ jsxRuntime.jsx("br", {}),
1351
940
  /* @__PURE__ */ jsxRuntime.jsx("br", {}),
1352
- /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { textColor: "neutral600", variant: "omega", children: t2("plugin_settings.please_check_that_you_have_entered_a_valid_collection") }),
941
+ /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { textColor: "neutral600", variant: "omega", children: t("plugin_settings.please_check_that_you_have_entered_a_valid_collection") }),
1353
942
  /* @__PURE__ */ jsxRuntime.jsx("br", {}),
1354
- /* @__PURE__ */ jsxRuntime.jsxs(set.Flex, { marginTop: 1, alignItems: "center", children: [
943
+ /* @__PURE__ */ jsxRuntime.jsxs(index.Flex, { marginTop: 1, alignItems: "center", children: [
1355
944
  /* @__PURE__ */ jsxRuntime.jsx(CustomBullet, {}),
1356
- /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { textColor: "neutral600", variant: "omega", children: /* @__PURE__ */ jsxRuntime.jsx(
1357
- Trans,
945
+ /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { textColor: "neutral600", variant: "omega", children: /* @__PURE__ */ jsxRuntime.jsx(
946
+ index$1.Trans,
1358
947
  {
1359
948
  i18nKey: "plugin_settings.step_1",
1360
- components: { 1: /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { variant: "omega", fontWeight: "semiBold" }) }
949
+ components: { 1: /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { variant: "omega", fontWeight: "semiBold" }) }
1361
950
  }
1362
951
  ) })
1363
952
  ] }),
1364
- /* @__PURE__ */ jsxRuntime.jsxs(set.Flex, { marginTop: 1, alignItems: "center", children: [
953
+ /* @__PURE__ */ jsxRuntime.jsxs(index.Flex, { marginTop: 1, alignItems: "center", children: [
1365
954
  /* @__PURE__ */ jsxRuntime.jsx(CustomBullet, {}),
1366
- /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { textColor: "neutral600", variant: "omega", children: /* @__PURE__ */ jsxRuntime.jsx(
1367
- Trans,
955
+ /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { textColor: "neutral600", variant: "omega", children: /* @__PURE__ */ jsxRuntime.jsx(
956
+ index$1.Trans,
1368
957
  {
1369
958
  i18nKey: "plugin_settings.step_2",
1370
- components: { 1: /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { variant: "omega", fontWeight: "semiBold" }) }
959
+ components: { 1: /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { variant: "omega", fontWeight: "semiBold" }) }
1371
960
  }
1372
961
  ) })
1373
962
  ] }),
1374
- /* @__PURE__ */ jsxRuntime.jsxs(set.Flex, { marginTop: 1, alignItems: "center", children: [
963
+ /* @__PURE__ */ jsxRuntime.jsxs(index.Flex, { marginTop: 1, alignItems: "center", children: [
1375
964
  /* @__PURE__ */ jsxRuntime.jsx(CustomBullet, {}),
1376
- /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { textColor: "neutral600", variant: "omega", children: /* @__PURE__ */ jsxRuntime.jsx(
1377
- Trans,
965
+ /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { textColor: "neutral600", variant: "omega", children: /* @__PURE__ */ jsxRuntime.jsx(
966
+ index$1.Trans,
1378
967
  {
1379
968
  i18nKey: "plugin_settings.step_3",
1380
- components: { 1: /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { variant: "omega", fontWeight: "semiBold" }) }
969
+ components: { 1: /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { variant: "omega", fontWeight: "semiBold" }) }
1381
970
  }
1382
971
  ) })
1383
972
  ] }),
1384
- /* @__PURE__ */ jsxRuntime.jsxs(set.Flex, { marginTop: 1, alignItems: "center", children: [
973
+ /* @__PURE__ */ jsxRuntime.jsxs(index.Flex, { marginTop: 1, alignItems: "center", children: [
1385
974
  /* @__PURE__ */ jsxRuntime.jsx(CustomBullet, {}),
1386
- /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { textColor: "neutral600", variant: "omega", children: /* @__PURE__ */ jsxRuntime.jsx(
1387
- Trans,
975
+ /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { textColor: "neutral600", variant: "omega", children: /* @__PURE__ */ jsxRuntime.jsx(
976
+ index$1.Trans,
1388
977
  {
1389
978
  i18nKey: "plugin_settings.step_4",
1390
- components: { 1: /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { variant: "omega", fontWeight: "semiBold" }) }
979
+ components: { 1: /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { variant: "omega", fontWeight: "semiBold" }) }
1391
980
  }
1392
981
  ) })
1393
982
  ] }),
1394
- /* @__PURE__ */ jsxRuntime.jsxs(set.Flex, { marginTop: 1, alignItems: "center", children: [
983
+ /* @__PURE__ */ jsxRuntime.jsxs(index.Flex, { marginTop: 1, alignItems: "center", children: [
1395
984
  /* @__PURE__ */ jsxRuntime.jsx(CustomBullet, {}),
1396
- /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { textColor: "neutral600", variant: "omega", children: /* @__PURE__ */ jsxRuntime.jsx(
1397
- Trans,
985
+ /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { textColor: "neutral600", variant: "omega", children: /* @__PURE__ */ jsxRuntime.jsx(
986
+ index$1.Trans,
1398
987
  {
1399
988
  i18nKey: "plugin_settings.step_5",
1400
- components: { 1: /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { variant: "omega", fontWeight: "semiBold" }) }
989
+ components: { 1: /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { variant: "omega", fontWeight: "semiBold" }) }
1401
990
  }
1402
991
  ) })
1403
992
  ] })
1404
993
  ] });
1405
994
  }
1406
995
  const ContentTransferSetup = () => {
1407
- const { t: t2 } = set.useTranslation();
996
+ const { t } = useTranslation.useTranslation();
1408
997
  const [isLoading, setIsLoading] = React.useState(true);
1409
998
  const [showAlert, setShowAlert] = React.useState(false);
1410
999
  const [showModalChangedAlert, setShowModalChangedAlert] = React.useState(false);
1411
1000
  const [, setItemsExpandedModel] = React.useState([]);
1412
1001
  const buildItemsExpandedModel = (models) => {
1413
- const r2 = {};
1414
- getFilteredModelsSchemas(models).forEach((model, index) => {
1415
- r2[model.modelUid] = index === 0;
1002
+ const r = {};
1003
+ getFilteredModelsSchemas(models).forEach((model, index2) => {
1004
+ r[model.modelUid] = index2 === 0;
1416
1005
  });
1417
- return r2;
1006
+ return r;
1418
1007
  };
1419
1008
  const [, setTreeModelsSchemas] = React.useState([]);
1420
1009
  const [originalFormModel, setOriginalFormModel] = React.useState([]);
1421
1010
  const [formModel, setFormModel] = React.useState([]);
1422
1011
  const [hasUnsavedChanges, setHasUnsavedChanges] = React.useState(false);
1423
1012
  const onCancelClick = () => {
1424
- setFormModel(set.cloneDeep(originalFormModel));
1013
+ setFormModel(FetchIdentity.cloneDeep(originalFormModel));
1425
1014
  setHasUnsavedChanges(false);
1426
1015
  };
1427
1016
  const saveContentTransferSetup = async (data) => {
1428
1017
  try {
1429
- await set.PluginSettingsService.updateContentTransferSetup(data);
1430
- setOriginalFormModel(set.cloneDeep(data));
1018
+ await FetchIdentity.PluginSettingsService.updateContentTransferSetup(data);
1019
+ setOriginalFormModel(FetchIdentity.cloneDeep(data));
1431
1020
  setHasUnsavedChanges(false);
1432
1021
  setShowAlert(true);
1433
1022
  setShowModalChangedAlert(false);
1434
- } catch (e2) {
1435
- throw e2.data;
1023
+ } catch (e) {
1024
+ throw e.data;
1436
1025
  }
1437
1026
  };
1438
1027
  const onTreeItemClick = (keys, currentValue) => {
1439
1028
  setFormModel((prevState) => {
1440
1029
  const modelName = keys[0].split(".")[0];
1441
1030
  let arrayIndex;
1442
- const model = prevState.find((m, index) => {
1031
+ const model = prevState.find((m, index2) => {
1443
1032
  if (Object.keys(m).includes(modelName)) {
1444
- arrayIndex = index;
1033
+ arrayIndex = index2;
1445
1034
  return true;
1446
1035
  }
1447
1036
  return false;
@@ -1449,18 +1038,18 @@ const ContentTransferSetup = () => {
1449
1038
  if (model === void 0) {
1450
1039
  return prevState;
1451
1040
  }
1452
- const newState = set.cloneDeep(prevState);
1041
+ const newState = FetchIdentity.cloneDeep(prevState);
1453
1042
  keys.forEach((key) => {
1454
1043
  if (key.includes("__component__")) {
1455
1044
  return;
1456
1045
  }
1457
1046
  const isEditable = hasModelChanged.get(model, key) !== null;
1458
1047
  if (isEditable) {
1459
- set.set(model, key, !currentValue);
1048
+ FetchIdentity.set(model, key, !currentValue);
1460
1049
  }
1461
1050
  });
1462
1051
  newState.splice(arrayIndex, 1, model);
1463
- setHasUnsavedChanges(!isEqual.isEqual(originalFormModel, newState) || showModalChangedAlert);
1052
+ setHasUnsavedChanges(!RequireLocalazyAuth.isEqual(originalFormModel, newState) || showModalChangedAlert);
1464
1053
  return newState;
1465
1054
  });
1466
1055
  };
@@ -1471,11 +1060,11 @@ const ContentTransferSetup = () => {
1471
1060
  React.useEffect(() => {
1472
1061
  async function fetchData() {
1473
1062
  setIsLoading(true);
1474
- const [models, localizableModels] = await Promise.all([
1063
+ const [models, localizableModels, storedContentTransferSetup] = await Promise.all([
1475
1064
  hasModelChanged.StrapiModelService.getModels(),
1476
- hasModelChanged.StrapiModelService.getLocalizableModels()
1065
+ hasModelChanged.StrapiModelService.getLocalizableModels(),
1066
+ FetchIdentity.PluginSettingsService.getContentTransferSetup()
1477
1067
  ]);
1478
- const storedContentTransferSetup = await set.PluginSettingsService.getContentTransferSetup();
1479
1068
  const itemsExpandedModel = buildItemsExpandedModel(localizableModels);
1480
1069
  setItemsExpandedModel(itemsExpandedModel);
1481
1070
  const allModelsTree = hasModelChanged.getModelsTree(models, models);
@@ -1487,7 +1076,7 @@ const ContentTransferSetup = () => {
1487
1076
  allModelsTree
1488
1077
  );
1489
1078
  setFormModel(computedFormModel);
1490
- setOriginalFormModel(set.cloneDeep(computedFormModel));
1079
+ setOriginalFormModel(FetchIdentity.cloneDeep(computedFormModel));
1491
1080
  const localHasModelChanged = await hasModelChanged.hasModelChanged(localizableTree, storedContentTransferSetup.setup);
1492
1081
  setShowModalChangedAlert(localHasModelChanged);
1493
1082
  setHasUnsavedChanges(localHasModelChanged);
@@ -1499,68 +1088,68 @@ const ContentTransferSetup = () => {
1499
1088
  /* @__PURE__ */ jsxRuntime.jsx(
1500
1089
  admin.Layouts.Header,
1501
1090
  {
1502
- title: t2("plugin_settings.content_transfer_setup"),
1503
- subtitle: t2("plugin_settings.content_transfer_setup_description"),
1504
- primaryAction: /* @__PURE__ */ jsxRuntime.jsxs(set.Flex, { gap: 2, children: [
1505
- /* @__PURE__ */ jsxRuntime.jsx(set.Button, { variant: "secondary", disabled: !hasUnsavedChanges, onClick: onCancelClick, children: t2("plugin_settings.cancel") }),
1091
+ title: t("plugin_settings.content_transfer_setup"),
1092
+ subtitle: t("plugin_settings.content_transfer_setup_description"),
1093
+ primaryAction: /* @__PURE__ */ jsxRuntime.jsxs(index.Flex, { gap: 2, children: [
1094
+ /* @__PURE__ */ jsxRuntime.jsx(index.Button, { variant: "secondary", disabled: !hasUnsavedChanges, onClick: onCancelClick, children: t("plugin_settings.cancel") }),
1506
1095
  /* @__PURE__ */ jsxRuntime.jsx(
1507
- set.Button,
1096
+ index.Button,
1508
1097
  {
1509
- startIcon: /* @__PURE__ */ jsxRuntime.jsx(set.ForwardRef$4z, {}),
1098
+ startIcon: /* @__PURE__ */ jsxRuntime.jsx(index.ForwardRef$4z, {}),
1510
1099
  disabled: !hasUnsavedChanges,
1511
1100
  onClick: () => {
1512
1101
  saveContentTransferSetup(formModel);
1513
1102
  },
1514
- children: t2("plugin_settings.save")
1103
+ children: t("plugin_settings.save")
1515
1104
  }
1516
1105
  )
1517
1106
  ] }),
1518
1107
  as: "h2"
1519
1108
  }
1520
1109
  ),
1521
- /* @__PURE__ */ jsxRuntime.jsxs(set.Box, { marginRight: 10, marginLeft: 10, children: [
1522
- !isLoading && showAlert && /* @__PURE__ */ jsxRuntime.jsx(set.Box, { marginBottom: 8, children: /* @__PURE__ */ jsxRuntime.jsx(
1523
- set.Alert,
1110
+ /* @__PURE__ */ jsxRuntime.jsxs(index.Box, { marginRight: 10, marginLeft: 10, children: [
1111
+ !isLoading && showAlert && /* @__PURE__ */ jsxRuntime.jsx(index.Box, { marginBottom: 8, children: /* @__PURE__ */ jsxRuntime.jsx(
1112
+ index.Alert,
1524
1113
  {
1525
1114
  onClose: () => setShowAlert(false),
1526
- closeLabel: t2("plugin_settings.close"),
1527
- title: t2("plugin_settings.content_transfer_setup_saved"),
1115
+ closeLabel: t("plugin_settings.close"),
1116
+ title: t("plugin_settings.content_transfer_setup_saved"),
1528
1117
  variant: "success",
1529
- children: t2("plugin_settings.content_transfer_setup_saved_successfully")
1118
+ children: t("plugin_settings.content_transfer_setup_saved_successfully")
1530
1119
  }
1531
1120
  ) }),
1532
- !isLoading && showModalChangedAlert && /* @__PURE__ */ jsxRuntime.jsx(set.Box, { marginBottom: 8, children: /* @__PURE__ */ jsxRuntime.jsx(
1533
- set.Alert,
1121
+ !isLoading && showModalChangedAlert && /* @__PURE__ */ jsxRuntime.jsx(index.Box, { marginBottom: 8, children: /* @__PURE__ */ jsxRuntime.jsx(
1122
+ index.Alert,
1534
1123
  {
1535
1124
  onClose: () => setShowModalChangedAlert(false),
1536
- closeLabel: t2("plugin_settings.close"),
1537
- title: t2("plugin_settings.content_types_model_changed"),
1125
+ closeLabel: t("plugin_settings.close"),
1126
+ title: t("plugin_settings.content_types_model_changed"),
1538
1127
  variant: "default",
1539
- children: t2("plugin_settings.please_update_your_content")
1128
+ children: t("plugin_settings.please_update_your_content")
1540
1129
  }
1541
1130
  ) }),
1542
- !isLoading && /* @__PURE__ */ jsxRuntime.jsxs(set.Box, { background: "neutral0", padding: 7, paddingTop: 6, shadow: "tableShadow", hasRadius: true, children: [
1131
+ !isLoading && /* @__PURE__ */ jsxRuntime.jsxs(index.Box, { background: "neutral0", padding: 7, paddingTop: 6, shadow: "tableShadow", hasRadius: true, children: [
1543
1132
  !formModel.length && // empty state
1544
1133
  /* @__PURE__ */ jsxRuntime.jsx(ContentTransferSetupEmpty, {}),
1545
- formModel.map((tree, index) => {
1546
- return /* @__PURE__ */ jsxRuntime.jsx(set.Box, { marginBottom: 3, children: /* @__PURE__ */ jsxRuntime.jsx(Tree, { onTreeItemClick, objects: tree, initiallyExpanded: index === 0 }) }, `box_tree_${index}`);
1134
+ formModel.map((tree, index$12) => {
1135
+ return /* @__PURE__ */ jsxRuntime.jsx(index.Box, { marginBottom: 3, children: /* @__PURE__ */ jsxRuntime.jsx(Tree, { onTreeItemClick, objects: tree, initiallyExpanded: index$12 === 0 }) }, `box_tree_${index$12}`);
1547
1136
  }),
1548
- !!formModel.length && /* @__PURE__ */ jsxRuntime.jsxs(set.Box, { children: [
1549
- /* @__PURE__ */ jsxRuntime.jsx(set.Box, { paddingTop: 6, paddingBottom: 6, children: /* @__PURE__ */ jsxRuntime.jsx(set.Divider, {}) }),
1550
- /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { variant: "omega", children: t2("plugin_settings.you_can_upload_download") }),
1551
- /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { variant: "omega", fontWeight: "semiBold", children: t2("plugin_settings.only_text_based_content") }),
1137
+ !!formModel.length && /* @__PURE__ */ jsxRuntime.jsxs(index.Box, { children: [
1138
+ /* @__PURE__ */ jsxRuntime.jsx(index.Box, { paddingTop: 6, paddingBottom: 6, children: /* @__PURE__ */ jsxRuntime.jsx(index.Divider, {}) }),
1139
+ /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { variant: "omega", children: t("plugin_settings.you_can_upload_download") }),
1140
+ /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { variant: "omega", fontWeight: "semiBold", children: t("plugin_settings.only_text_based_content") }),
1552
1141
  /* @__PURE__ */ jsxRuntime.jsx("br", {}),
1553
1142
  /* @__PURE__ */ jsxRuntime.jsx("br", {}),
1554
- /* @__PURE__ */ jsxRuntime.jsx(set.Typography, { variant: "omega", children: t2("plugin_settings.learn_more_in_docs_message_a") }),
1143
+ /* @__PURE__ */ jsxRuntime.jsx(index.Typography, { variant: "omega", children: t("plugin_settings.learn_more_in_docs_message_a") }),
1555
1144
  /* @__PURE__ */ jsxRuntime.jsx(
1556
- set.Typography,
1145
+ index.Typography,
1557
1146
  {
1558
1147
  onClick: onReadDocumentationClick,
1559
1148
  variant: "omega",
1560
1149
  fontWeight: "semiBold",
1561
1150
  textColor: "primary600",
1562
1151
  style: { cursor: "pointer" },
1563
- children: t2("plugin_settings.learn_more_in_docs_message_b")
1152
+ children: t("plugin_settings.learn_more_in_docs_message_b")
1564
1153
  }
1565
1154
  )
1566
1155
  ] })
@@ -1568,4 +1157,8 @@ const ContentTransferSetup = () => {
1568
1157
  ] })
1569
1158
  ] });
1570
1159
  };
1571
- exports.ContentTransferSetup = ContentTransferSetup;
1160
+ const LocalazyContentTransferSetup = () => /* @__PURE__ */ jsxRuntime.jsxs(FetchIdentity.LocalazyIdentityProvider, { children: [
1161
+ /* @__PURE__ */ jsxRuntime.jsx(FetchIdentity.FetchIdentity, {}),
1162
+ /* @__PURE__ */ jsxRuntime.jsx(RequireLocalazyAuth.RequireLocalazyAuth, { children: /* @__PURE__ */ jsxRuntime.jsx(ContentTransferSetup, {}) })
1163
+ ] });
1164
+ exports.default = LocalazyContentTransferSetup;