@ukpc-lib/react 0.16.1-sandbox.saas-9356.patch-2 → 0.16.1-sandbox.saas-9201.patch-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.
@@ -0,0 +1,14 @@
1
+ function o(e) {
2
+ if (e === void 0)
3
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
+ return e;
5
+ }
6
+ function n(e, r) {
7
+ return n = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, i) {
8
+ return t.__proto__ = i, t;
9
+ }, n(e, r);
10
+ }
11
+ export {
12
+ o as _,
13
+ n as a
14
+ };
@@ -1,442 +0,0 @@
1
- import { r as g, s as q, j as i } from "./react-to-web-component-w5r1Fs9q.js";
2
- function x(t) {
3
- "@babel/helpers - typeof";
4
- return x = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
5
- return typeof e;
6
- } : function(e) {
7
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
8
- }, x(t);
9
- }
10
- function J(t, e) {
11
- if (!(t instanceof e))
12
- throw new TypeError("Cannot call a class as a function");
13
- }
14
- function V(t, e) {
15
- if (x(t) != "object" || !t)
16
- return t;
17
- var n = t[Symbol.toPrimitive];
18
- if (n !== void 0) {
19
- var r = n.call(t, e);
20
- if (x(r) != "object")
21
- return r;
22
- throw new TypeError("@@toPrimitive must return a primitive value.");
23
- }
24
- return (e === "string" ? String : Number)(t);
25
- }
26
- function M(t) {
27
- var e = V(t, "string");
28
- return x(e) == "symbol" ? e : e + "";
29
- }
30
- function L(t, e) {
31
- for (var n = 0; n < e.length; n++) {
32
- var r = e[n];
33
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, M(r.key), r);
34
- }
35
- }
36
- function Y(t, e, n) {
37
- return e && L(t.prototype, e), n && L(t, n), Object.defineProperty(t, "prototype", {
38
- writable: !1
39
- }), t;
40
- }
41
- function W(t, e, n) {
42
- return (e = M(e)) in t ? Object.defineProperty(t, e, {
43
- value: n,
44
- enumerable: !0,
45
- configurable: !0,
46
- writable: !0
47
- }) : t[e] = n, t;
48
- }
49
- function Z(t) {
50
- if (Array.isArray(t))
51
- return t;
52
- }
53
- function U(t, e) {
54
- (e == null || e > t.length) && (e = t.length);
55
- for (var n = 0, r = Array(e); n < e; n++)
56
- r[n] = t[n];
57
- return r;
58
- }
59
- function Q(t, e) {
60
- if (t) {
61
- if (typeof t == "string")
62
- return U(t, e);
63
- var n = {}.toString.call(t).slice(8, -1);
64
- return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? U(t, e) : void 0;
65
- }
66
- }
67
- function X() {
68
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
69
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
70
- }
71
- function ee() {
72
- if (console && console.warn) {
73
- for (var t, e = arguments.length, n = new Array(e), r = 0; r < e; r++)
74
- n[r] = arguments[r];
75
- typeof n[0] == "string" && (n[0] = "react-i18next:: ".concat(n[0])), (t = console).warn.apply(t, n);
76
- }
77
- }
78
- var z = {};
79
- function N() {
80
- for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
81
- e[n] = arguments[n];
82
- typeof e[0] == "string" && z[e[0]] || (typeof e[0] == "string" && (z[e[0]] = /* @__PURE__ */ new Date()), ee.apply(void 0, e));
83
- }
84
- var K = function(e, n) {
85
- return function() {
86
- if (e.isInitialized)
87
- n();
88
- else {
89
- var r = function o() {
90
- setTimeout(function() {
91
- e.off("initialized", o);
92
- }, 0), n();
93
- };
94
- e.on("initialized", r);
95
- }
96
- };
97
- };
98
- function B(t, e, n) {
99
- t.loadNamespaces(e, K(t, n));
100
- }
101
- function F(t, e, n, r) {
102
- typeof n == "string" && (n = [n]), n.forEach(function(o) {
103
- t.options.ns.indexOf(o) < 0 && t.options.ns.push(o);
104
- }), t.loadLanguages(e, K(t, r));
105
- }
106
- function te(t, e) {
107
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = e.languages[0], o = e.options ? e.options.fallbackLng : !1, f = e.languages[e.languages.length - 1];
108
- if (r.toLowerCase() === "cimode")
109
- return !0;
110
- var a = function(l, u) {
111
- var h = e.services.backendConnector.state["".concat(l, "|").concat(u)];
112
- return h === -1 || h === 2;
113
- };
114
- return n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !a(e.isLanguageChangingTo, t) ? !1 : !!(e.hasResourceBundle(r, t) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || a(r, t) && (!o || a(f, t)));
115
- }
116
- function ne(t, e) {
117
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
118
- if (!e.languages || !e.languages.length)
119
- return N("i18n.languages were undefined or empty", e.languages), !0;
120
- var r = e.options.ignoreJSONStructure !== void 0;
121
- return r ? e.hasLoadedNamespace(t, {
122
- lng: n.lng,
123
- precheck: function(f, a) {
124
- if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && f.services.backendConnector.backend && f.isLanguageChangingTo && !a(f.isLanguageChangingTo, t))
125
- return !1;
126
- }
127
- }) : te(t, e, n);
128
- }
129
- var re = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, ae = {
130
- "&amp;": "&",
131
- "&#38;": "&",
132
- "&lt;": "<",
133
- "&#60;": "<",
134
- "&gt;": ">",
135
- "&#62;": ">",
136
- "&apos;": "'",
137
- "&#39;": "'",
138
- "&quot;": '"',
139
- "&#34;": '"',
140
- "&nbsp;": " ",
141
- "&#160;": " ",
142
- "&copy;": "©",
143
- "&#169;": "©",
144
- "&reg;": "®",
145
- "&#174;": "®",
146
- "&hellip;": "…",
147
- "&#8230;": "…",
148
- "&#x2F;": "/",
149
- "&#47;": "/"
150
- }, ie = function(e) {
151
- return ae[e];
152
- }, oe = function(e) {
153
- return e.replace(re, ie);
154
- };
155
- function H(t, e) {
156
- var n = Object.keys(t);
157
- if (Object.getOwnPropertySymbols) {
158
- var r = Object.getOwnPropertySymbols(t);
159
- e && (r = r.filter(function(o) {
160
- return Object.getOwnPropertyDescriptor(t, o).enumerable;
161
- })), n.push.apply(n, r);
162
- }
163
- return n;
164
- }
165
- function R(t) {
166
- for (var e = 1; e < arguments.length; e++) {
167
- var n = arguments[e] != null ? arguments[e] : {};
168
- e % 2 ? H(Object(n), !0).forEach(function(r) {
169
- W(t, r, n[r]);
170
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : H(Object(n)).forEach(function(r) {
171
- Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
172
- });
173
- }
174
- return t;
175
- }
176
- var C = {
177
- bindI18n: "languageChanged",
178
- bindI18nStore: "",
179
- transEmptyNodeValue: "",
180
- transSupportBasicHtmlNodes: !0,
181
- transWrapTextNodes: "",
182
- transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
183
- useSuspense: !0,
184
- unescape: oe
185
- };
186
- function ve() {
187
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
188
- C = R(R({}, C), t);
189
- }
190
- function se() {
191
- return C;
192
- }
193
- var G;
194
- function xe(t) {
195
- G = t;
196
- }
197
- function ue() {
198
- return G;
199
- }
200
- var ce = g.createContext(), fe = function() {
201
- function t() {
202
- J(this, t), this.usedNamespaces = {};
203
- }
204
- return Y(t, [{
205
- key: "addUsedNamespaces",
206
- value: function(n) {
207
- var r = this;
208
- n.forEach(function(o) {
209
- r.usedNamespaces[o] || (r.usedNamespaces[o] = !0);
210
- });
211
- }
212
- }, {
213
- key: "getUsedNamespaces",
214
- value: function() {
215
- return Object.keys(this.usedNamespaces);
216
- }
217
- }]), t;
218
- }();
219
- function le(t, e) {
220
- var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
221
- if (n != null) {
222
- var r, o, f, a, m = [], l = !0, u = !1;
223
- try {
224
- if (f = (n = n.call(t)).next, e !== 0)
225
- for (; !(l = (r = f.call(n)).done) && (m.push(r.value), m.length !== e); l = !0)
226
- ;
227
- } catch (h) {
228
- u = !0, o = h;
229
- } finally {
230
- try {
231
- if (!l && n.return != null && (a = n.return(), Object(a) !== a))
232
- return;
233
- } finally {
234
- if (u)
235
- throw o;
236
- }
237
- }
238
- return m;
239
- }
240
- }
241
- function pe(t, e) {
242
- return Z(t) || le(t, e) || Q(t, e) || X();
243
- }
244
- function D(t, e) {
245
- var n = Object.keys(t);
246
- if (Object.getOwnPropertySymbols) {
247
- var r = Object.getOwnPropertySymbols(t);
248
- e && (r = r.filter(function(o) {
249
- return Object.getOwnPropertyDescriptor(t, o).enumerable;
250
- })), n.push.apply(n, r);
251
- }
252
- return n;
253
- }
254
- function P(t) {
255
- for (var e = 1; e < arguments.length; e++) {
256
- var n = arguments[e] != null ? arguments[e] : {};
257
- e % 2 ? D(Object(n), !0).forEach(function(r) {
258
- W(t, r, n[r]);
259
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : D(Object(n)).forEach(function(r) {
260
- Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
261
- });
262
- }
263
- return t;
264
- }
265
- var de = function(e, n) {
266
- var r = g.useRef();
267
- return g.useEffect(function() {
268
- r.current = e;
269
- }, [e, n]), r.current;
270
- };
271
- function ge(t) {
272
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = e.i18n, r = g.useContext(ce) || {}, o = r.i18n, f = r.defaultNS, a = n || o || ue();
273
- if (a && !a.reportNamespaces && (a.reportNamespaces = new fe()), !a) {
274
- N("You will need to pass in an i18next instance by using initReactI18next");
275
- var m = function(d, c) {
276
- return typeof c == "string" ? c : c && x(c) === "object" && typeof c.defaultValue == "string" ? c.defaultValue : Array.isArray(d) ? d[d.length - 1] : d;
277
- }, l = [m, {}, !1];
278
- return l.t = m, l.i18n = {}, l.ready = !1, l;
279
- }
280
- a.options.react && a.options.react.wait !== void 0 && N("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
281
- var u = P(P(P({}, se()), a.options.react), e), h = u.useSuspense, I = u.keyPrefix, s = f || a.options && a.options.defaultNS;
282
- s = typeof s == "string" ? [s] : s || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(s);
283
- var b = (a.isInitialized || a.initializedStoreOnce) && s.every(function(p) {
284
- return ne(p, a, u);
285
- });
286
- function v() {
287
- return a.getFixedT(e.lng || null, u.nsMode === "fallback" ? s : s[0], I);
288
- }
289
- var $ = g.useState(v), E = pe($, 2), k = E[0], w = E[1], j = s.join();
290
- e.lng && (j = "".concat(e.lng).concat(j));
291
- var T = de(j), y = g.useRef(!0);
292
- g.useEffect(function() {
293
- var p = u.bindI18n, d = u.bindI18nStore;
294
- y.current = !0, !b && !h && (e.lng ? F(a, e.lng, s, function() {
295
- y.current && w(v);
296
- }) : B(a, s, function() {
297
- y.current && w(v);
298
- })), b && T && T !== j && y.current && w(v);
299
- function c() {
300
- y.current && w(v);
301
- }
302
- return p && a && a.on(p, c), d && a && a.store.on(d, c), function() {
303
- y.current = !1, p && a && p.split(" ").forEach(function(S) {
304
- return a.off(S, c);
305
- }), d && a && d.split(" ").forEach(function(S) {
306
- return a.store.off(S, c);
307
- });
308
- };
309
- }, [a, j]);
310
- var A = g.useRef(!0);
311
- g.useEffect(function() {
312
- y.current && !A.current && w(v), A.current = !1;
313
- }, [a, I]);
314
- var _ = [k, a, b];
315
- if (_.t = k, _.i18n = a, _.ready = b, b || !b && !h)
316
- return _;
317
- throw new Promise(function(p) {
318
- e.lng ? F(a, e.lng, s, function() {
319
- return p();
320
- }) : B(a, s, function() {
321
- return p();
322
- });
323
- });
324
- }
325
- const O = {
326
- "page-container": "_page-container_1pwo1_1",
327
- "page-main-content": "_page-main-content_1pwo1_8",
328
- "page-title": "_page-title_1pwo1_19",
329
- "text-base": "_text-base_1pwo1_26",
330
- "mt-4": "_mt-4_1pwo1_33"
331
- }, me = () => {
332
- const { t } = ge();
333
- return /* @__PURE__ */ i.jsx("div", { className: "unauth__container " + O["page-container"], children: /* @__PURE__ */ i.jsxs("div", { className: "unauth__main-content " + O["page-main-content"], children: [
334
- /* @__PURE__ */ i.jsx(he, {}),
335
- /* @__PURE__ */ i.jsxs("div", { className: "unauth__main-text", children: [
336
- /* @__PURE__ */ i.jsx("h2", { className: "unauth__main-text__title " + O["page-title"], children: t("components.unauthorizedPage.title") }),
337
- /* @__PURE__ */ i.jsxs("p", { className: "unauth__main-text__desc " + O["text-base"], children: [
338
- t("components.unauthorizedPage.description1"),
339
- " ",
340
- /* @__PURE__ */ i.jsx("br", {}),
341
- " ",
342
- t("components.unauthorizedPage.description2")
343
- ] })
344
- ] })
345
- ] }) });
346
- }, he = () => /* @__PURE__ */ i.jsxs(
347
- "svg",
348
- {
349
- width: "61",
350
- height: "60",
351
- viewBox: "0 0 61 60",
352
- fill: "none",
353
- xmlns: "http://www.w3.org/2000/svg",
354
- children: [
355
- /* @__PURE__ */ i.jsxs("g", { filter: "url(#filter0_d_10800_50471)", children: [
356
- /* @__PURE__ */ i.jsx("rect", { x: "2.5", y: "1", width: "56", height: "56", rx: "28", fill: "white" }),
357
- /* @__PURE__ */ i.jsx(
358
- "path",
359
- {
360
- d: "M24.6667 27.833V23.1663C24.6667 21.6192 25.2812 20.1355 26.3752 19.0416C27.4692 17.9476 28.9529 17.333 30.5 17.333C32.0471 17.333 33.5308 17.9476 34.6248 19.0416C35.7188 20.1355 36.3333 21.6192 36.3333 23.1663V27.833M22.3333 27.833H38.6667C39.9553 27.833 41 28.8777 41 30.1663V38.333C41 39.6217 39.9553 40.6663 38.6667 40.6663H22.3333C21.0447 40.6663 20 39.6217 20 38.333V30.1663C20 28.8777 21.0447 27.833 22.3333 27.833Z",
361
- stroke: "#292929",
362
- "stroke-width": "2.33333",
363
- "stroke-linecap": "round",
364
- "stroke-linejoin": "round"
365
- }
366
- )
367
- ] }),
368
- /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsxs(
369
- "filter",
370
- {
371
- id: "filter0_d_10800_50471",
372
- x: "0.5",
373
- y: "0",
374
- width: "60",
375
- height: "60",
376
- filterUnits: "userSpaceOnUse",
377
- "color-interpolation-filters": "sRGB",
378
- children: [
379
- /* @__PURE__ */ i.jsx("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
380
- /* @__PURE__ */ i.jsx(
381
- "feColorMatrix",
382
- {
383
- in: "SourceAlpha",
384
- type: "matrix",
385
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
386
- result: "hardAlpha"
387
- }
388
- ),
389
- /* @__PURE__ */ i.jsx("feOffset", { dy: "1" }),
390
- /* @__PURE__ */ i.jsx("feGaussianBlur", { stdDeviation: "1" }),
391
- /* @__PURE__ */ i.jsx(
392
- "feColorMatrix",
393
- {
394
- type: "matrix",
395
- values: "0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0"
396
- }
397
- ),
398
- /* @__PURE__ */ i.jsx(
399
- "feBlend",
400
- {
401
- mode: "normal",
402
- in2: "BackgroundImageFix",
403
- result: "effect1_dropShadow_10800_50471"
404
- }
405
- ),
406
- /* @__PURE__ */ i.jsx(
407
- "feBlend",
408
- {
409
- mode: "normal",
410
- in: "SourceGraphic",
411
- in2: "effect1_dropShadow_10800_50471",
412
- result: "shape"
413
- }
414
- )
415
- ]
416
- }
417
- ) })
418
- ]
419
- }
420
- );
421
- function ye() {
422
- return (
423
- // <I18nextProvider i18n={i18n}>
424
- /* @__PURE__ */ i.jsx(me, {})
425
- );
426
- }
427
- {
428
- const t = q(ye);
429
- customElements.define("access-denied", t);
430
- }
431
- export {
432
- me as U,
433
- x as _,
434
- Z as a,
435
- Q as b,
436
- X as c,
437
- Y as d,
438
- W as e,
439
- J as f,
440
- xe as g,
441
- ve as s
442
- };