@m4l/layouts 0.1.34 → 0.1.37
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/components/BaseModule/index.d.ts +0 -1
- package/components/MFHostApp/index.d.ts +0 -1
- package/components/MFIsolationApp/index.d.ts +0 -1
- package/components/MFIsolationApp/subcomponents/MFAuthApp/index.d.ts +0 -1
- package/index.js +1 -1
- package/layouts/MasterDetailLayout/index.d.ts +0 -1
- package/layouts/NoAuthModuleLayout/index.d.ts +0 -1
- package/layouts/NoAuthModuleLayout/index.eabf38c1.js +345 -0
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/index.d.ts +1 -3
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/DesktopContent/index.d.ts +1 -0
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/MobileContent/index.d.ts +1 -0
- package/layouts/NoAuthModuleLayout/types.d.ts +1 -1
- package/layouts/{index.8748e200.js → index.8e0df44b.js} +1 -1
- package/package.json +1 -1
- package/layouts/NoAuthModuleLayout/index.5d946846.js +0 -198
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/index.d.ts +0 -3
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/AppBar/index.d.ts +0 -2
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/Form/index.d.ts +0 -3
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/Form/subcomponents/NameDescription/index.d.ts +0 -2
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/subcomponents/Form/types.d.ts +0 -4
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/AppBarForm/types.d.ts +0 -4
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/LogoLeyend/index.d.ts +0 -2
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/types.d.ts +0 -4
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { B as L } from "./components/BaseModule/index.6309486a.js";
|
|
|
4
4
|
import { a as g, A as h } from "./contexts/AuthContext/index.6f966215.js";
|
|
5
5
|
import { a as N, d as B, g as F } from "./layouts/ModuleLayout/index.c673a65f.js";
|
|
6
6
|
import { a as H, d as I, g as P } from "./layouts/MasterDetailLayout/index.793884be.js";
|
|
7
|
-
import { N as j, d as k, g as q } from "./layouts/NoAuthModuleLayout/index.
|
|
7
|
+
import { N as j, d as k, g as q } from "./layouts/NoAuthModuleLayout/index.eabf38c1.js";
|
|
8
8
|
import { u as z } from "./hooks/useMasterDetail/index.dd9cb927.js";
|
|
9
9
|
import { u as G } from "./hooks/useAuth/index.cb6a3420.js";
|
|
10
10
|
import { u as K } from "./hooks/useModule/index.97184469.js";
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import { useResponsiveDesktop as I, useLocales as $ } from "@m4l/graphics";
|
|
2
|
+
import { LanguagePopover as h, Image as x, Typography as a, ScrollBar as m, HelmetPage as W } from "@m4l/components";
|
|
3
|
+
import { styled as t, alpha as d } from "@mui/material/styles";
|
|
4
|
+
import { useBase as u, useModuleDictionary as g, useDomain as y, useEnvironment as H, BaseProvider as N, FlagsProvider as R, ModuleDictionaryProvider as U, ModuleSkeletonProvider as F } from "@m4l/core";
|
|
5
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
6
|
+
const P = t("div")(({
|
|
7
|
+
theme: o
|
|
8
|
+
}) => ({
|
|
9
|
+
display: "flex",
|
|
10
|
+
justifyContent: "center",
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
height: "100vh",
|
|
13
|
+
padding: "20px",
|
|
14
|
+
backgroundColor: o.palette.background.background,
|
|
15
|
+
[o.breakpoints.down("md")]: {
|
|
16
|
+
padding: "0px"
|
|
17
|
+
}
|
|
18
|
+
})), j = t("div")(({ theme: o }) => ({
|
|
19
|
+
display: "flex",
|
|
20
|
+
borderRadius: "16px",
|
|
21
|
+
backgroundColor: o.palette.background.neutral,
|
|
22
|
+
boxShadow: o.customShadows?.z4,
|
|
23
|
+
padding: "20px 0 20px 20px",
|
|
24
|
+
width: "100%",
|
|
25
|
+
height: "100%",
|
|
26
|
+
maxWidth: "965px",
|
|
27
|
+
maxHeight: "900px",
|
|
28
|
+
position: "relative",
|
|
29
|
+
overflow: "auto",
|
|
30
|
+
"& .M4LanguagePopover-root": {
|
|
31
|
+
position: "absolute",
|
|
32
|
+
top: "20px",
|
|
33
|
+
right: "20px",
|
|
34
|
+
zIndex: 1
|
|
35
|
+
}
|
|
36
|
+
})), T = t("div")(({ theme: o }) => ({
|
|
37
|
+
display: "flex",
|
|
38
|
+
flexDirection: "column",
|
|
39
|
+
justifyContent: "center",
|
|
40
|
+
alignItems: "center",
|
|
41
|
+
borderRadius: "16px",
|
|
42
|
+
width: "100%",
|
|
43
|
+
maxWidth: "400px",
|
|
44
|
+
height: "100%",
|
|
45
|
+
backgroundColor: o.palette.state?.focus,
|
|
46
|
+
boxShadow: o.customShadows?.z4,
|
|
47
|
+
padding: "0 60px",
|
|
48
|
+
gap: "40px",
|
|
49
|
+
overflow: "hidden",
|
|
50
|
+
"& .MuiTypography-root": {
|
|
51
|
+
color: o.palette.patronus?.marbleLight[10],
|
|
52
|
+
display: "flex",
|
|
53
|
+
justifyContent: "center",
|
|
54
|
+
textAlign: "center",
|
|
55
|
+
textTransform: "uppercase"
|
|
56
|
+
},
|
|
57
|
+
"& .M4LTypography-root .MuiSkeleton-root": {
|
|
58
|
+
backgroundColor: d(`${o.palette.patronus?.marbleLight[10]}`, 0.24),
|
|
59
|
+
margin: "auto"
|
|
60
|
+
}
|
|
61
|
+
})), A = t("div")(({ theme: o }) => ({
|
|
62
|
+
display: "flex",
|
|
63
|
+
width: "84px",
|
|
64
|
+
height: "84px",
|
|
65
|
+
borderRadius: "6px",
|
|
66
|
+
backgroundColor: o.palette.state?.active,
|
|
67
|
+
justifyContent: "center",
|
|
68
|
+
alignItems: "center",
|
|
69
|
+
boxShadow: `0px 4px 8px ${d(o.palette.patronus?.coolGrey[70] || "", 0.16)}`,
|
|
70
|
+
"& .M4LImage-root": {
|
|
71
|
+
backgroundColor: o.palette.patronus?.marbleLight[10],
|
|
72
|
+
borderRadius: "6px"
|
|
73
|
+
}
|
|
74
|
+
})), B = t("div")(() => ({
|
|
75
|
+
display: "flex",
|
|
76
|
+
flexDirection: "column",
|
|
77
|
+
gap: "5px",
|
|
78
|
+
width: "100%"
|
|
79
|
+
})), z = t("div")(() => ({
|
|
80
|
+
display: "flex",
|
|
81
|
+
flexDirection: "column",
|
|
82
|
+
gap: "5px",
|
|
83
|
+
width: "100%"
|
|
84
|
+
})), G = t("div")(() => ({
|
|
85
|
+
display: "flex",
|
|
86
|
+
flexDirection: "column",
|
|
87
|
+
padding: "0 60px 0 80px",
|
|
88
|
+
margin: "auto 0",
|
|
89
|
+
width: "100%",
|
|
90
|
+
gap: "20px"
|
|
91
|
+
})), E = t("div")(() => ({
|
|
92
|
+
display: "flex",
|
|
93
|
+
width: "100%",
|
|
94
|
+
height: "100%"
|
|
95
|
+
})), q = t("div")(() => ({
|
|
96
|
+
display: "flex",
|
|
97
|
+
flexDirection: "column",
|
|
98
|
+
width: "100%",
|
|
99
|
+
gap: "4px"
|
|
100
|
+
})), J = () => {
|
|
101
|
+
const {
|
|
102
|
+
children: o,
|
|
103
|
+
companyLogoSmallUrl: l
|
|
104
|
+
} = u(), {
|
|
105
|
+
getLabel: n
|
|
106
|
+
} = g(), {
|
|
107
|
+
name: r
|
|
108
|
+
} = y();
|
|
109
|
+
return /* @__PURE__ */ i(j, {
|
|
110
|
+
children: [/* @__PURE__ */ e(h, {}), /* @__PURE__ */ i(T, {
|
|
111
|
+
children: [/* @__PURE__ */ e(A, {
|
|
112
|
+
children: /* @__PURE__ */ e(x, {
|
|
113
|
+
src: l,
|
|
114
|
+
ratio: "1:1",
|
|
115
|
+
width: "64px",
|
|
116
|
+
height: "64px"
|
|
117
|
+
})
|
|
118
|
+
}), /* @__PURE__ */ i(B, {
|
|
119
|
+
children: [/* @__PURE__ */ e(a, {
|
|
120
|
+
variant: "subtitleDens",
|
|
121
|
+
skeletonWidth: "70%",
|
|
122
|
+
skeletongHeight: "24px",
|
|
123
|
+
children: r
|
|
124
|
+
}), /* @__PURE__ */ e(a, {
|
|
125
|
+
variant: "paragraph",
|
|
126
|
+
skeletonWidth: "40%",
|
|
127
|
+
skeletongHeight: "20px",
|
|
128
|
+
children: n("company_name_subtitle")
|
|
129
|
+
})]
|
|
130
|
+
}), /* @__PURE__ */ i(z, {
|
|
131
|
+
children: [/* @__PURE__ */ e(a, {
|
|
132
|
+
variant: "h5",
|
|
133
|
+
skeletonWidth: "50%",
|
|
134
|
+
skeletongHeight: "36px",
|
|
135
|
+
children: n("module_leyend")
|
|
136
|
+
}), /* @__PURE__ */ e(a, {
|
|
137
|
+
variant: "subtitle",
|
|
138
|
+
skeletonWidth: "80%",
|
|
139
|
+
skeletongHeight: "24px",
|
|
140
|
+
children: "slogan"
|
|
141
|
+
})]
|
|
142
|
+
})]
|
|
143
|
+
}), /* @__PURE__ */ e(E, {
|
|
144
|
+
children: /* @__PURE__ */ e(m, {
|
|
145
|
+
children: /* @__PURE__ */ i(G, {
|
|
146
|
+
children: [/* @__PURE__ */ i(q, {
|
|
147
|
+
children: [/* @__PURE__ */ e(a, {
|
|
148
|
+
variant: "h5",
|
|
149
|
+
skeletonWidth: "20%",
|
|
150
|
+
skeletongHeight: "36px",
|
|
151
|
+
children: n("module_name")
|
|
152
|
+
}), /* @__PURE__ */ e(a, {
|
|
153
|
+
variant: "paragraph",
|
|
154
|
+
skeletonWidth: "40%",
|
|
155
|
+
skeletongHeight: "20px",
|
|
156
|
+
children: n("module_description")
|
|
157
|
+
})]
|
|
158
|
+
}), o]
|
|
159
|
+
})
|
|
160
|
+
})
|
|
161
|
+
})]
|
|
162
|
+
});
|
|
163
|
+
}, K = t("div")(({ theme: o }) => ({
|
|
164
|
+
display: "flex",
|
|
165
|
+
flexDirection: "column",
|
|
166
|
+
width: "100%",
|
|
167
|
+
height: "100%",
|
|
168
|
+
backgroundColor: o.palette.background.neutral,
|
|
169
|
+
padding: "12px",
|
|
170
|
+
gap: "32px"
|
|
171
|
+
})), O = t("div")(({ theme: o }) => ({
|
|
172
|
+
display: "flex",
|
|
173
|
+
flexDirection: "column",
|
|
174
|
+
padding: "12px",
|
|
175
|
+
gap: "20px",
|
|
176
|
+
width: "100%",
|
|
177
|
+
backgroundColor: o.palette.state?.focus,
|
|
178
|
+
boxShadow: o.customShadows?.z4,
|
|
179
|
+
position: "relative",
|
|
180
|
+
borderRadius: "8px",
|
|
181
|
+
"& .M4LanguagePopover-root": {
|
|
182
|
+
position: "absolute",
|
|
183
|
+
top: "12px",
|
|
184
|
+
right: "12px"
|
|
185
|
+
},
|
|
186
|
+
"& .MuiTypography-root": {
|
|
187
|
+
color: o.palette.patronus?.marbleLight[10],
|
|
188
|
+
display: "flex",
|
|
189
|
+
textTransform: "uppercase"
|
|
190
|
+
},
|
|
191
|
+
"& .MuiSkeleton-root": {
|
|
192
|
+
backgroundColor: d(`${o.palette.patronus?.marbleLight[10]}`, 0.24),
|
|
193
|
+
margin: "auto"
|
|
194
|
+
}
|
|
195
|
+
}));
|
|
196
|
+
t("div")(() => ({
|
|
197
|
+
display: "flex"
|
|
198
|
+
}));
|
|
199
|
+
const Q = t("div")(({ theme: o }) => ({
|
|
200
|
+
display: "flex",
|
|
201
|
+
width: "52px",
|
|
202
|
+
height: "52px",
|
|
203
|
+
borderRadius: "6px",
|
|
204
|
+
backgroundColor: o.palette.state?.active,
|
|
205
|
+
justifyContent: "center",
|
|
206
|
+
alignItems: "center",
|
|
207
|
+
boxShadow: `0px 4px 8px ${d(o.palette.patronus?.coolGrey[70] || "", 0.16)}`,
|
|
208
|
+
"& .M4LImage-root": {
|
|
209
|
+
backgroundColor: o.palette.patronus?.marbleLight[10],
|
|
210
|
+
borderRadius: "6px"
|
|
211
|
+
}
|
|
212
|
+
})), V = t("div")(() => ({
|
|
213
|
+
display: "flex",
|
|
214
|
+
flexDirection: "column",
|
|
215
|
+
width: "100%"
|
|
216
|
+
})), X = t("div")(() => ({
|
|
217
|
+
display: "flex",
|
|
218
|
+
flexDirection: "column",
|
|
219
|
+
padding: "12px",
|
|
220
|
+
margin: "auto 0",
|
|
221
|
+
width: "100%",
|
|
222
|
+
gap: "20px"
|
|
223
|
+
})), Y = t("div")(() => ({
|
|
224
|
+
display: "flex",
|
|
225
|
+
width: "100%",
|
|
226
|
+
height: "100%",
|
|
227
|
+
overflow: "hidden"
|
|
228
|
+
})), Z = t("div")(() => ({
|
|
229
|
+
display: "flex",
|
|
230
|
+
flexDirection: "column",
|
|
231
|
+
width: "100%",
|
|
232
|
+
gap: "4px"
|
|
233
|
+
})), oo = () => {
|
|
234
|
+
const {
|
|
235
|
+
children: o,
|
|
236
|
+
companyLogoSmallUrl: l
|
|
237
|
+
} = u(), {
|
|
238
|
+
getLabel: n
|
|
239
|
+
} = g(), {
|
|
240
|
+
name: r
|
|
241
|
+
} = y();
|
|
242
|
+
return /* @__PURE__ */ i(K, {
|
|
243
|
+
children: [/* @__PURE__ */ i(O, {
|
|
244
|
+
children: [/* @__PURE__ */ e(Q, {
|
|
245
|
+
children: /* @__PURE__ */ e(x, {
|
|
246
|
+
src: l,
|
|
247
|
+
ratio: "1:1",
|
|
248
|
+
width: "44px",
|
|
249
|
+
height: "44px"
|
|
250
|
+
})
|
|
251
|
+
}), /* @__PURE__ */ i(V, {
|
|
252
|
+
children: [/* @__PURE__ */ e(a, {
|
|
253
|
+
variant: "subtitleDens",
|
|
254
|
+
skeletonWidth: "70%",
|
|
255
|
+
skeletongHeight: "24px",
|
|
256
|
+
children: r
|
|
257
|
+
}), /* @__PURE__ */ e(a, {
|
|
258
|
+
variant: "paragraph",
|
|
259
|
+
skeletonWidth: "40%",
|
|
260
|
+
skeletongHeight: "20px",
|
|
261
|
+
children: n("company_name_subtitle")
|
|
262
|
+
})]
|
|
263
|
+
}), /* @__PURE__ */ e(h, {})]
|
|
264
|
+
}), /* @__PURE__ */ e(Y, {
|
|
265
|
+
children: /* @__PURE__ */ e(m, {
|
|
266
|
+
children: /* @__PURE__ */ i(X, {
|
|
267
|
+
children: [/* @__PURE__ */ i(Z, {
|
|
268
|
+
children: [/* @__PURE__ */ e(a, {
|
|
269
|
+
variant: "h5",
|
|
270
|
+
skeletonWidth: "20%",
|
|
271
|
+
skeletongHeight: "36px",
|
|
272
|
+
children: n("module_name")
|
|
273
|
+
}), /* @__PURE__ */ e(a, {
|
|
274
|
+
variant: "paragraph",
|
|
275
|
+
skeletonWidth: "40%",
|
|
276
|
+
skeletongHeight: "20px",
|
|
277
|
+
children: n("module_description")
|
|
278
|
+
})]
|
|
279
|
+
}), o]
|
|
280
|
+
})
|
|
281
|
+
})
|
|
282
|
+
})]
|
|
283
|
+
});
|
|
284
|
+
}, eo = () => {
|
|
285
|
+
const {
|
|
286
|
+
getModuleLabel: o
|
|
287
|
+
} = g(), l = I(), {
|
|
288
|
+
subtitle: n
|
|
289
|
+
} = u();
|
|
290
|
+
return /* @__PURE__ */ e(W, {
|
|
291
|
+
title: o(),
|
|
292
|
+
subtitle: n,
|
|
293
|
+
children: /* @__PURE__ */ e(P, {
|
|
294
|
+
children: l ? /* @__PURE__ */ e(J, {}) : /* @__PURE__ */ e(oo, {})
|
|
295
|
+
})
|
|
296
|
+
});
|
|
297
|
+
}, ro = (o) => {
|
|
298
|
+
const {
|
|
299
|
+
moduleId: l,
|
|
300
|
+
moduleNameField: n,
|
|
301
|
+
children: r,
|
|
302
|
+
componentsDictionary: f,
|
|
303
|
+
skeletonFlags: b,
|
|
304
|
+
subtitle: v,
|
|
305
|
+
companyLogoSmallUrl: k,
|
|
306
|
+
companyLogoNormalUrl: C,
|
|
307
|
+
moduleIlustrationUrl: L
|
|
308
|
+
} = o, {
|
|
309
|
+
host_static_assets: s,
|
|
310
|
+
environment_assets: p
|
|
311
|
+
} = H(), w = $().currentLocale?.localeString, D = C || `${s}/${p}/frontend/commons/assets/icons/logotipo_m4l.svg`, M = k || `${s}/${p}/frontend/commons/assets/icons/isotipo_m4l.svg`, _ = L || `${s}/${p}/frontend/domain/host/commons/assets/img/illustration_noauth.png`, c = b;
|
|
312
|
+
return c.findIndex((S) => S === "dictionary_loaded") < 0 && c.push("dictionary_loaded"), /* @__PURE__ */ e(N, {
|
|
313
|
+
value: {
|
|
314
|
+
subtitle: v,
|
|
315
|
+
companyLogoSmallUrl: M,
|
|
316
|
+
companyLogoNormalUrl: D,
|
|
317
|
+
moduleIlustrationUrl: _,
|
|
318
|
+
children: r
|
|
319
|
+
},
|
|
320
|
+
children: /* @__PURE__ */ e(R, {
|
|
321
|
+
children: /* @__PURE__ */ e(U, {
|
|
322
|
+
isAuth: !1,
|
|
323
|
+
moduleId: l,
|
|
324
|
+
moduleNameField: n,
|
|
325
|
+
componentsDictionary: f,
|
|
326
|
+
currentLang: w,
|
|
327
|
+
children: /* @__PURE__ */ e(F, {
|
|
328
|
+
flags: c,
|
|
329
|
+
children: /* @__PURE__ */ e(eo, {})
|
|
330
|
+
})
|
|
331
|
+
})
|
|
332
|
+
})
|
|
333
|
+
});
|
|
334
|
+
};
|
|
335
|
+
function so() {
|
|
336
|
+
return ["no_auth_module_layout"];
|
|
337
|
+
}
|
|
338
|
+
const po = {
|
|
339
|
+
no_auth_module_layout: {}
|
|
340
|
+
};
|
|
341
|
+
export {
|
|
342
|
+
ro as N,
|
|
343
|
+
po as d,
|
|
344
|
+
so as g
|
|
345
|
+
};
|
package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/DesktopContent/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DesktopContent: () => JSX.Element;
|
package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/MobileContent/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MobileContent: () => JSX.Element;
|
|
@@ -8,11 +8,11 @@ export declare interface NoAuthBaseProviderProps {
|
|
|
8
8
|
companyLogoSmallUrl: string;
|
|
9
9
|
companyLogoNormalUrl: string;
|
|
10
10
|
moduleIlustrationUrl?: string;
|
|
11
|
+
children: ReactNode;
|
|
11
12
|
}
|
|
12
13
|
export interface NoAuthModuleLayoutProps extends NoAuthBaseProviderProps {
|
|
13
14
|
moduleId: string;
|
|
14
15
|
moduleNameField?: string;
|
|
15
16
|
componentsDictionary: string[];
|
|
16
17
|
skeletonFlags: string[];
|
|
17
|
-
children: ReactNode;
|
|
18
18
|
}
|
package/package.json
CHANGED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import { useResponsive as h, useLocales as N } from "@m4l/graphics";
|
|
2
|
-
import { Image as p, Typography as u, LanguagePopover as W, HelmetPage as k } from "@m4l/components";
|
|
3
|
-
import { useModuleDictionary as m, useBase as g, useEnvironment as b, BaseProvider as I, FlagsProvider as S, ModuleDictionaryProvider as F, ModuleSkeletonProvider as A } from "@m4l/core";
|
|
4
|
-
import { styled as t } from "@mui/material/styles";
|
|
5
|
-
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
6
|
-
const C = t("div")(({
|
|
7
|
-
theme: o
|
|
8
|
-
}) => ({
|
|
9
|
-
boxShadow: o.shadows[1],
|
|
10
|
-
borderRadius: o.spacing(2),
|
|
11
|
-
width: "100%",
|
|
12
|
-
maxWidth: "464px",
|
|
13
|
-
display: "flex",
|
|
14
|
-
flexDirection: "column",
|
|
15
|
-
justifyContent: "flex-start",
|
|
16
|
-
alignItems: "center",
|
|
17
|
-
margin: o.spacing(2, 0, 2, 2),
|
|
18
|
-
padding: o.spacing(4, 3),
|
|
19
|
-
gap: o.spacing(3),
|
|
20
|
-
overflow: "hidden"
|
|
21
|
-
})), j = () => {
|
|
22
|
-
const {
|
|
23
|
-
getLabel: o
|
|
24
|
-
} = m(), {
|
|
25
|
-
companyLogoNormalUrl: n,
|
|
26
|
-
moduleIlustrationUrl: l
|
|
27
|
-
} = g();
|
|
28
|
-
return /* @__PURE__ */ i(C, {
|
|
29
|
-
children: [/* @__PURE__ */ e(p, {
|
|
30
|
-
width: "400px",
|
|
31
|
-
height: "400px",
|
|
32
|
-
src: n,
|
|
33
|
-
alt: "logo"
|
|
34
|
-
}, "Logo"), l ? /* @__PURE__ */ e(p, {
|
|
35
|
-
src: l,
|
|
36
|
-
width: "100%",
|
|
37
|
-
height: "300px"
|
|
38
|
-
}) : null, /* @__PURE__ */ e(u, {
|
|
39
|
-
variant: "h3",
|
|
40
|
-
skeletonWidth: "30%",
|
|
41
|
-
skeletongHeight: "18px",
|
|
42
|
-
children: o("module_leyend")
|
|
43
|
-
}, "Leyend")]
|
|
44
|
-
});
|
|
45
|
-
}, B = t("div")(() => ({
|
|
46
|
-
flexGrow: "1",
|
|
47
|
-
display: "flex",
|
|
48
|
-
flexDirection: "column"
|
|
49
|
-
})), P = t("header")(({
|
|
50
|
-
theme: o
|
|
51
|
-
}) => ({
|
|
52
|
-
width: "100%",
|
|
53
|
-
display: "flex",
|
|
54
|
-
justifyContent: "space-between",
|
|
55
|
-
padding: o.spacing(1, 3),
|
|
56
|
-
[o.breakpoints.up("md")]: {
|
|
57
|
-
justifyContent: "flex-end"
|
|
58
|
-
}
|
|
59
|
-
})), $ = () => {
|
|
60
|
-
const {
|
|
61
|
-
companyLogoSmallUrl: o
|
|
62
|
-
} = g(), n = h("down", "md");
|
|
63
|
-
return /* @__PURE__ */ i(P, {
|
|
64
|
-
children: [n ? /* @__PURE__ */ e(p, {
|
|
65
|
-
src: o,
|
|
66
|
-
width: "40px",
|
|
67
|
-
height: "40px",
|
|
68
|
-
skeletonVariant: "circle"
|
|
69
|
-
}, "Isotipo") : null, /* @__PURE__ */ e(W, {})]
|
|
70
|
-
});
|
|
71
|
-
}, H = t("div")(() => ({
|
|
72
|
-
display: "flex",
|
|
73
|
-
overflow: "auto",
|
|
74
|
-
width: "100%",
|
|
75
|
-
height: "100%",
|
|
76
|
-
justifyContent: "center"
|
|
77
|
-
})), R = t("div")(({
|
|
78
|
-
theme: o
|
|
79
|
-
}) => ({
|
|
80
|
-
display: "flex",
|
|
81
|
-
width: "100%",
|
|
82
|
-
height: "auto",
|
|
83
|
-
margin: "auto",
|
|
84
|
-
maxWidth: "480px",
|
|
85
|
-
flexDirection: "column",
|
|
86
|
-
gap: o.spacing(3)
|
|
87
|
-
})), E = t("div")(({
|
|
88
|
-
theme: o
|
|
89
|
-
}) => ({
|
|
90
|
-
display: "flex",
|
|
91
|
-
flexDirection: "column",
|
|
92
|
-
gap: o.spacing(2),
|
|
93
|
-
padding: o.spacing(0, 3)
|
|
94
|
-
})), G = () => {
|
|
95
|
-
const {
|
|
96
|
-
getModuleLabel: o,
|
|
97
|
-
getLabel: n
|
|
98
|
-
} = m();
|
|
99
|
-
return /* @__PURE__ */ i(E, {
|
|
100
|
-
children: [/* @__PURE__ */ e(u, {
|
|
101
|
-
variant: "h4",
|
|
102
|
-
skeletonWidth: "35%",
|
|
103
|
-
skeletongHeight: "36px",
|
|
104
|
-
children: o()
|
|
105
|
-
}, "ModuleName"), /* @__PURE__ */ e(u, {
|
|
106
|
-
skeletonWidth: "60%",
|
|
107
|
-
skeletongHeight: "21px",
|
|
108
|
-
children: n("module_description")
|
|
109
|
-
}, "ModuleDescription")]
|
|
110
|
-
});
|
|
111
|
-
}, T = (o) => {
|
|
112
|
-
const {
|
|
113
|
-
children: n
|
|
114
|
-
} = o;
|
|
115
|
-
return /* @__PURE__ */ e(H, {
|
|
116
|
-
children: /* @__PURE__ */ i(R, {
|
|
117
|
-
children: [/* @__PURE__ */ e(G, {}), n]
|
|
118
|
-
})
|
|
119
|
-
});
|
|
120
|
-
}, V = (o) => {
|
|
121
|
-
const {
|
|
122
|
-
children: n
|
|
123
|
-
} = o;
|
|
124
|
-
return /* @__PURE__ */ i(B, {
|
|
125
|
-
children: [/* @__PURE__ */ e($, {}), /* @__PURE__ */ e(T, {
|
|
126
|
-
children: n
|
|
127
|
-
})]
|
|
128
|
-
});
|
|
129
|
-
}, q = t("div")(() => ({
|
|
130
|
-
display: "flex",
|
|
131
|
-
height: "100vh"
|
|
132
|
-
})), z = (o) => {
|
|
133
|
-
const {
|
|
134
|
-
children: n
|
|
135
|
-
} = o, {
|
|
136
|
-
getModuleLabel: l
|
|
137
|
-
} = m(), r = h("up", "md"), {
|
|
138
|
-
subtitle: a
|
|
139
|
-
} = g();
|
|
140
|
-
return /* @__PURE__ */ e(k, {
|
|
141
|
-
title: l(),
|
|
142
|
-
subtitle: a,
|
|
143
|
-
children: /* @__PURE__ */ i(q, {
|
|
144
|
-
children: [r ? /* @__PURE__ */ e(j, {}) : null, /* @__PURE__ */ e(V, {
|
|
145
|
-
children: n
|
|
146
|
-
})]
|
|
147
|
-
})
|
|
148
|
-
});
|
|
149
|
-
}, Y = (o) => {
|
|
150
|
-
const {
|
|
151
|
-
moduleId: n,
|
|
152
|
-
moduleNameField: l,
|
|
153
|
-
children: r,
|
|
154
|
-
componentsDictionary: a,
|
|
155
|
-
skeletonFlags: f,
|
|
156
|
-
subtitle: y,
|
|
157
|
-
companyLogoSmallUrl: x,
|
|
158
|
-
companyLogoNormalUrl: L,
|
|
159
|
-
moduleIlustrationUrl: v
|
|
160
|
-
} = o, {
|
|
161
|
-
host_static_assets: s,
|
|
162
|
-
environment_assets: d
|
|
163
|
-
} = b(), _ = N().currentLocale?.localeString, w = L || `${s}/${d}/frontend/commons/assets/icons/logotipo_m4l.svg`, M = x || `${s}/${d}/frontend/commons/assets/icons/isotipo_m4l.svg`, U = v || `${s}/${d}/frontend/domain/host/commons/assets/img/illustration_noauth.png`, c = f;
|
|
164
|
-
return c.findIndex((D) => D === "dictionary_loaded") < 0 && c.push("dictionary_loaded"), /* @__PURE__ */ e(I, {
|
|
165
|
-
value: {
|
|
166
|
-
subtitle: y,
|
|
167
|
-
companyLogoSmallUrl: M,
|
|
168
|
-
companyLogoNormalUrl: w,
|
|
169
|
-
moduleIlustrationUrl: U
|
|
170
|
-
},
|
|
171
|
-
children: /* @__PURE__ */ e(S, {
|
|
172
|
-
children: /* @__PURE__ */ e(F, {
|
|
173
|
-
isAuth: !1,
|
|
174
|
-
moduleId: n,
|
|
175
|
-
moduleNameField: l,
|
|
176
|
-
componentsDictionary: a,
|
|
177
|
-
currentLang: _,
|
|
178
|
-
children: /* @__PURE__ */ e(A, {
|
|
179
|
-
flags: c,
|
|
180
|
-
children: /* @__PURE__ */ e(z, {
|
|
181
|
-
children: r
|
|
182
|
-
})
|
|
183
|
-
})
|
|
184
|
-
})
|
|
185
|
-
})
|
|
186
|
-
});
|
|
187
|
-
};
|
|
188
|
-
function Z() {
|
|
189
|
-
return ["no_auth_module_layout"];
|
|
190
|
-
}
|
|
191
|
-
const oo = {
|
|
192
|
-
no_auth_module_layout: {}
|
|
193
|
-
};
|
|
194
|
-
export {
|
|
195
|
-
Y as N,
|
|
196
|
-
oo as d,
|
|
197
|
-
Z as g
|
|
198
|
-
};
|