@incodetech/web 2.0.0-alpha.6 → 2.0.0-alpha.8
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/email/email.es.js +10 -10
- package/dist/flow/flow.es.js +381 -381
- package/dist/{preact-custom-element.esm-BGQkPkOv.js → incodeModule-Dv8Qllrv.js} +72 -63
- package/dist/{otpInput-cq1THeRd.js → otpInput-BtoZe0Wz.js} +1 -1
- package/dist/{incodeModule-BuCBWati.js → page-D9ijzlSn.js} +56 -66
- package/dist/phone/phone.es.js +11 -11
- package/dist/selfie/selfie.es.js +13 -13
- package/dist/themes/dark.css +3 -3
- package/dist/themes/light.css +3 -3
- package/dist/{title-XSxhaBDx.js → title-BfO5Dlzk.js} +1 -1
- package/dist/types/email.d.ts +10 -3
- package/dist/types/flow.d.ts +30 -7
- package/dist/types/index.d.ts +1 -91
- package/dist/types/phone.d.ts +10 -3
- package/dist/types/selfie.d.ts +10 -3
- package/package.json +6 -6
- package/dist/types/email/email.d.ts +0 -2
- package/dist/types/email/styles.d.ts +0 -1
- package/dist/types/flow/flow.d.ts +0 -2
- package/dist/types/flow/styles.d.ts +0 -1
- package/dist/types/phone/phone.d.ts +0 -2
- package/dist/types/phone/styles.d.ts +0 -1
- package/dist/types/selfie/selfie.d.ts +0 -2
- package/dist/types/selfie/styles.d.ts +0 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { l as m, d as
|
|
1
|
+
import { l as m, d as I, y as w, _ as p, J as H, G as f, K as _, k as V } from "./vendor-preact-CK0WeTOR.js";
|
|
2
2
|
var z = 0;
|
|
3
|
-
function s(e, n, t,
|
|
3
|
+
function s(e, n, t, o, c, r) {
|
|
4
4
|
n || (n = {});
|
|
5
5
|
var a, i, l = n;
|
|
6
6
|
if ("ref" in l) for (i in l = {}, n) i == "ref" ? a = n[i] : l[i] = n[i];
|
|
7
|
-
var d = { type: e, props: l, key: t, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --z, __i: -1, __u: 0, __source: c, __self:
|
|
7
|
+
var d = { type: e, props: l, key: t, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --z, __i: -1, __u: 0, __source: c, __self: r };
|
|
8
8
|
if (typeof e == "function" && (a = e.defaultProps)) for (i in a) l[i] === void 0 && (l[i] = a[i]);
|
|
9
9
|
return m.vnode && m.vnode(d), d;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
const { autoLoad: t = !0 } = n, [
|
|
13
|
-
() =>
|
|
11
|
+
function G(e, n = {}) {
|
|
12
|
+
const { autoLoad: t = !0 } = n, [o] = I(e), [c, r] = I(
|
|
13
|
+
() => o.getState()
|
|
14
14
|
);
|
|
15
|
-
return w(() => (t &&
|
|
15
|
+
return w(() => (t && o.load && o.load(), o.subscribe(r)), [o, t]), [c, o];
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const h = (...e) => {
|
|
18
18
|
const n = [];
|
|
19
19
|
for (const t of e)
|
|
20
20
|
if (t) {
|
|
21
21
|
if (typeof t == "string")
|
|
22
22
|
n.push(t);
|
|
23
23
|
else if (typeof t == "object")
|
|
24
|
-
for (const [
|
|
25
|
-
c && n.push(
|
|
24
|
+
for (const [o, c] of Object.entries(t))
|
|
25
|
+
c && n.push(o);
|
|
26
26
|
}
|
|
27
27
|
return n.join(" ");
|
|
28
28
|
}, L = ({
|
|
@@ -36,7 +36,7 @@ const f = (...e) => {
|
|
|
36
36
|
viewBox: "0 0 31 31",
|
|
37
37
|
fill: "none",
|
|
38
38
|
xmlns: "http://www.w3.org/2000/svg",
|
|
39
|
-
class:
|
|
39
|
+
class: h("IncodeLoadingIconPrimaryIcon", n),
|
|
40
40
|
children: [
|
|
41
41
|
/* @__PURE__ */ s("title", { children: "Spinner Inner part" }),
|
|
42
42
|
/* @__PURE__ */ s("path", { d: "M28.1614 15.2837C29.453 15.2837 30.5186 14.2304 30.3181 12.9545C30.1344 11.7862 29.8129 10.6411 29.3582 9.54344C28.6044 7.72356 27.4995 6.06997 26.1066 4.67709C24.7137 3.28421 23.0601 2.17932 21.2403 1.4255C20.1426 0.970841 18.9974 0.649265 17.8292 0.46563C16.5533 0.265073 15.5 1.33073 15.5 2.62232C15.5 3.91391 16.5601 4.93461 17.8187 5.22473C18.3748 5.35291 18.9206 5.52729 19.4503 5.74672C20.7028 6.26548 21.8407 7.02585 22.7993 7.98441C23.7578 8.94296 24.5182 10.0809 25.037 11.3333C25.2564 11.8631 25.4308 12.4089 25.559 12.965C25.8491 14.2236 26.8698 15.2837 28.1614 15.2837Z" })
|
|
@@ -53,7 +53,7 @@ const f = (...e) => {
|
|
|
53
53
|
viewBox: "0 0 31 31",
|
|
54
54
|
fill: "none",
|
|
55
55
|
xmlns: "http://www.w3.org/2000/svg",
|
|
56
|
-
class:
|
|
56
|
+
class: h("IncodeLoadingIconSecondaryIcon", n),
|
|
57
57
|
children: [
|
|
58
58
|
/* @__PURE__ */ s("title", { children: "Spinner Outer part" }),
|
|
59
59
|
/* @__PURE__ */ s("path", { d: "M30.5 15.2837C30.5 23.568 23.7843 30.2837 15.5 30.2837C7.21573 30.2837 0.5 23.568 0.5 15.2837C0.5 6.99942 7.21573 0.283691 15.5 0.283691C23.7843 0.283691 30.5 6.99942 30.5 15.2837ZM5.17725 15.2837C5.17725 20.9848 9.7989 25.6064 15.5 25.6064C21.2011 25.6064 25.8227 20.9848 25.8227 15.2837C25.8227 9.5826 21.2011 4.96095 15.5 4.96095C9.7989 4.96095 5.17725 9.5826 5.17725 15.2837Z" })
|
|
@@ -66,16 +66,16 @@ const f = (...e) => {
|
|
|
66
66
|
}) => /* @__PURE__ */ s("div", { class: "IncodeLoadingIcon", children: [
|
|
67
67
|
/* @__PURE__ */ s(k, { size: e, className: n }),
|
|
68
68
|
/* @__PURE__ */ s("div", { class: "IncodeLoadingIconPrimary", children: /* @__PURE__ */ s(L, { size: e, className: t }) })
|
|
69
|
-
] }),
|
|
69
|
+
] }), E = {
|
|
70
70
|
primary: "IncodeButtonPrimary",
|
|
71
71
|
link: "IncodeButtonLink"
|
|
72
|
-
},
|
|
72
|
+
}, J = (e) => {
|
|
73
73
|
const {
|
|
74
74
|
isLoading: n = !1,
|
|
75
75
|
variant: t = "primary",
|
|
76
|
-
class:
|
|
76
|
+
class: o,
|
|
77
77
|
type: c = "button",
|
|
78
|
-
children:
|
|
78
|
+
children: r,
|
|
79
79
|
disabled: a,
|
|
80
80
|
...i
|
|
81
81
|
} = e;
|
|
@@ -83,18 +83,18 @@ const f = (...e) => {
|
|
|
83
83
|
"button",
|
|
84
84
|
{
|
|
85
85
|
...i,
|
|
86
|
-
class:
|
|
86
|
+
class: h(
|
|
87
87
|
"IncodeButton",
|
|
88
88
|
n ? "IncodeButtonLoading" : "",
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
E[t],
|
|
90
|
+
o
|
|
91
91
|
),
|
|
92
92
|
disabled: a || n,
|
|
93
93
|
type: c,
|
|
94
|
-
children: n ? /* @__PURE__ */ s(x, { size: 30 }) :
|
|
94
|
+
children: n ? /* @__PURE__ */ s(x, { size: 30 }) : r
|
|
95
95
|
}
|
|
96
96
|
);
|
|
97
|
-
},
|
|
97
|
+
}, O = /* @__PURE__ */ new Set([
|
|
98
98
|
0,
|
|
99
99
|
2,
|
|
100
100
|
4,
|
|
@@ -113,7 +113,7 @@ const f = (...e) => {
|
|
|
113
113
|
120,
|
|
114
114
|
160,
|
|
115
115
|
200
|
|
116
|
-
]),
|
|
116
|
+
]), j = (e, n) => n === "horizontal" ? {
|
|
117
117
|
0: "IncodeSpacerHorizontal0",
|
|
118
118
|
2: "IncodeSpacerHorizontal2",
|
|
119
119
|
4: "IncodeSpacerHorizontal4",
|
|
@@ -151,95 +151,104 @@ const f = (...e) => {
|
|
|
151
151
|
120: "IncodeSpacerVertical120",
|
|
152
152
|
160: "IncodeSpacerVertical160",
|
|
153
153
|
200: "IncodeSpacerVertical200"
|
|
154
|
-
}[e],
|
|
154
|
+
}[e], R = ({
|
|
155
155
|
size: e,
|
|
156
156
|
className: n,
|
|
157
157
|
direction: t = "vertical"
|
|
158
|
-
}) => e === void 0 ? /* @__PURE__ */ s("div", { class: `IncodeSpacerFlex ${n || ""}` }) : (t === "horizontal" ? "w" : t === "vertical" ? "h" : void 0) ? typeof e == "number" &&
|
|
158
|
+
}) => e === void 0 ? /* @__PURE__ */ s("div", { class: `IncodeSpacerFlex ${n || ""}` }) : (t === "horizontal" ? "w" : t === "vertical" ? "h" : void 0) ? typeof e == "number" && O.has(e) ? /* @__PURE__ */ s("div", { class: `${j(e, t)} ${n || ""}` }) : /* @__PURE__ */ s("div", { class: `${n || ""}` }) : /* @__PURE__ */ s("div", { class: `${n || ""}` });
|
|
159
159
|
function u() {
|
|
160
160
|
return u = Object.assign ? Object.assign.bind() : function(e) {
|
|
161
161
|
for (var n = 1; n < arguments.length; n++) {
|
|
162
162
|
var t = arguments[n];
|
|
163
|
-
for (var
|
|
163
|
+
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
|
|
164
164
|
}
|
|
165
165
|
return e;
|
|
166
166
|
}, u.apply(this, arguments);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function g(e, n) {
|
|
169
169
|
if (e == null) return {};
|
|
170
|
-
var t,
|
|
171
|
-
for (
|
|
170
|
+
var t, o, c = {}, r = Object.keys(e);
|
|
171
|
+
for (o = 0; o < r.length; o++) n.indexOf(t = r[o]) >= 0 || (c[t] = e[t]);
|
|
172
172
|
return c;
|
|
173
173
|
}
|
|
174
|
-
var
|
|
175
|
-
function
|
|
174
|
+
var M = ["context", "children"], P = ["useFragment"];
|
|
175
|
+
function $(e, n, t, o) {
|
|
176
176
|
function c() {
|
|
177
|
-
var
|
|
178
|
-
return a._vdomComponent = e,
|
|
177
|
+
var r, a = Reflect.construct(HTMLElement, [], c);
|
|
178
|
+
return a._vdomComponent = e, o && o.shadow ? (a._root = a.attachShadow({ mode: o.mode || "open", serializable: (r = o.serializable) != null && r }), o.adoptedStyleSheets && (a._root.adoptedStyleSheets = o.adoptedStyleSheets)) : a._root = a, a;
|
|
179
179
|
}
|
|
180
180
|
return (c.prototype = Object.create(HTMLElement.prototype)).constructor = c, c.prototype.connectedCallback = function() {
|
|
181
|
-
T.call(this,
|
|
182
|
-
}, c.prototype.attributeChangedCallback =
|
|
183
|
-
Object.defineProperty(c.prototype,
|
|
184
|
-
return this._vdom ? this._vdom.props[
|
|
181
|
+
T.call(this, o);
|
|
182
|
+
}, c.prototype.attributeChangedCallback = A, c.prototype.disconnectedCallback = F, t = t || e.observedAttributes || Object.keys(e.propTypes || {}), c.observedAttributes = t, e.formAssociated && (c.formAssociated = !0), t.forEach(function(r) {
|
|
183
|
+
Object.defineProperty(c.prototype, r, { get: function() {
|
|
184
|
+
return this._vdom ? this._vdom.props[r] : this._props[r];
|
|
185
185
|
}, set: function(a) {
|
|
186
|
-
this._vdom ? this.attributeChangedCallback(
|
|
186
|
+
this._vdom ? this.attributeChangedCallback(r, null, a) : (this._props || (this._props = {}), this._props[r] = a);
|
|
187
187
|
var i = typeof a;
|
|
188
|
-
a != null && i !== "string" && i !== "boolean" && i !== "number" || this.setAttribute(
|
|
188
|
+
a != null && i !== "string" && i !== "boolean" && i !== "number" || this.setAttribute(r, a);
|
|
189
189
|
} });
|
|
190
190
|
}), customElements.define(n || e.tagName || e.displayName || e.name, c), c;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function B(e) {
|
|
193
193
|
this.getChildContext = function() {
|
|
194
194
|
return e.context;
|
|
195
195
|
};
|
|
196
|
-
var n = e.children, t =
|
|
196
|
+
var n = e.children, t = g(e, M);
|
|
197
197
|
return _(n, t);
|
|
198
198
|
}
|
|
199
199
|
function T(e) {
|
|
200
200
|
var n = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
|
|
201
|
-
this.dispatchEvent(n), this._vdom = p(
|
|
201
|
+
this.dispatchEvent(n), this._vdom = p(B, u({}, this._props, { context: n.detail.context }), y(this, this._vdomComponent, e)), (this.hasAttribute("hydrate") ? H : f)(this._vdom, this._root);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function b(e) {
|
|
204
204
|
return e.replace(/-(\w)/g, function(n, t) {
|
|
205
205
|
return t ? t.toUpperCase() : "";
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function A(e, n, t) {
|
|
209
209
|
if (this._vdom) {
|
|
210
|
-
var
|
|
211
|
-
|
|
210
|
+
var o = {};
|
|
211
|
+
o[e] = t = t ?? void 0, o[b(e)] = t, this._vdom = _(this._vdom, o), f(this._vdom, this._root);
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
|
|
214
|
+
function F() {
|
|
215
|
+
f(this._vdom = null, this._root);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
var t = this,
|
|
219
|
-
return p(
|
|
220
|
-
|
|
217
|
+
function S(e, n) {
|
|
218
|
+
var t = this, o = e.useFragment, c = g(e, P);
|
|
219
|
+
return p(o ? V : "slot", u({}, c, { ref: function(r) {
|
|
220
|
+
r ? (t.ref = r, t._listener || (t._listener = function(a) {
|
|
221
221
|
a.stopPropagation(), a.detail.context = n;
|
|
222
|
-
},
|
|
222
|
+
}, r.addEventListener("_preact", t._listener))) : t.ref.removeEventListener("_preact", t._listener);
|
|
223
223
|
} }));
|
|
224
224
|
}
|
|
225
225
|
function y(e, n, t) {
|
|
226
226
|
if (e.nodeType === 3) return e.data;
|
|
227
227
|
if (e.nodeType !== 1) return null;
|
|
228
|
-
var
|
|
229
|
-
for (
|
|
230
|
-
for (
|
|
231
|
-
var l = y(i[
|
|
232
|
-
d ? c[d] = p(
|
|
228
|
+
var o = [], c = {}, r = 0, a = e.attributes, i = e.childNodes;
|
|
229
|
+
for (r = a.length; r--; ) a[r].name !== "slot" && (c[a[r].name] = a[r].value, c[b(a[r].name)] = a[r].value);
|
|
230
|
+
for (r = i.length; r--; ) {
|
|
231
|
+
var l = y(i[r], null, t), d = i[r].slot;
|
|
232
|
+
d ? c[d] = p(S, { name: d }, l) : o[r] = l;
|
|
233
233
|
}
|
|
234
|
-
var v = !(!t || !t.shadow), C = n ? p(
|
|
234
|
+
var v = !(!t || !t.shadow), C = n ? p(S, { useFragment: !v }, o) : o;
|
|
235
235
|
return !v && n && (e.innerHTML = ""), p(n || e.nodeName.toLowerCase(), c, C);
|
|
236
236
|
}
|
|
237
|
+
function N(e, n, t) {
|
|
238
|
+
$(e, n, [...t], {
|
|
239
|
+
shadow: !1
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
const Z = ["config", "onFinish", "onError"];
|
|
243
|
+
function U(e, n) {
|
|
244
|
+
N(e, n, Z);
|
|
245
|
+
}
|
|
237
246
|
export {
|
|
238
|
-
|
|
247
|
+
J as B,
|
|
239
248
|
x as L,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
249
|
+
R as S,
|
|
250
|
+
G as a,
|
|
251
|
+
h as c,
|
|
252
|
+
U as r,
|
|
244
253
|
s as u
|
|
245
254
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as n, S as h, B as T } from "./
|
|
1
|
+
import { u as n, S as h, B as T } from "./incodeModule-Dv8Qllrv.js";
|
|
2
2
|
import { d as $, A as K, y as I, k as R } from "./vendor-preact-CK0WeTOR.js";
|
|
3
3
|
const c = 6, S = ({
|
|
4
4
|
resendTimer: g,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { u as C, S as s
|
|
2
|
-
import { u as
|
|
1
|
+
import { u as C, S as s } from "./incodeModule-Dv8Qllrv.js";
|
|
2
|
+
import { u as f } from "./uiConfig-CQ1W9cUD.js";
|
|
3
3
|
import { k as u } from "./vendor-preact-CK0WeTOR.js";
|
|
4
|
-
function
|
|
4
|
+
function x({ children: e }) {
|
|
5
5
|
return /* @__PURE__ */ C("div", { class: "IncodeComponent", children: e });
|
|
6
6
|
}
|
|
7
|
-
const
|
|
7
|
+
const p = "https://assets.incode.com/@incodetech/web/2.0.0-alpha.8/assets/incode-logo-ed68c8e9.svg";
|
|
8
8
|
function d(e) {
|
|
9
|
-
for (const
|
|
10
|
-
if (
|
|
9
|
+
for (const t of e)
|
|
10
|
+
if (t !== void 0) return t;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function H(e) {
|
|
13
13
|
if (!e) return;
|
|
14
14
|
if (/^\d+$/.test(e)) return Number(e);
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
15
|
+
const t = e.match(/^(\d+)px$/);
|
|
16
|
+
if (t) return Number(t[1]);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
const
|
|
18
|
+
function L(e) {
|
|
19
|
+
const t = d([
|
|
20
20
|
e.logo?.height,
|
|
21
21
|
e.uiConfig.logoHeight
|
|
22
22
|
]);
|
|
@@ -27,54 +27,54 @@ function V(e) {
|
|
|
27
27
|
e.uiConfig.hideFooterBranding
|
|
28
28
|
]) ?? !1,
|
|
29
29
|
logoSrc: d([e.logo?.src, e.uiConfig.logoSrc]) ?? e.defaultLogoSrc,
|
|
30
|
-
logoHeightPx:
|
|
30
|
+
logoHeightPx: H(t) ?? 80
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
const
|
|
35
|
-
return
|
|
33
|
+
function V(e) {
|
|
34
|
+
const t = f();
|
|
35
|
+
return L({ ...e, uiConfig: t });
|
|
36
36
|
}
|
|
37
|
-
const
|
|
38
|
-
let
|
|
39
|
-
|
|
40
|
-
const
|
|
41
|
-
return
|
|
42
|
-
r: Number.parseInt(
|
|
43
|
-
g: Number.parseInt(
|
|
44
|
-
b: Number.parseInt(
|
|
37
|
+
const m = (e) => {
|
|
38
|
+
let t = e.replace("#", "");
|
|
39
|
+
t.length === 3 && (t = t.split("").map((n) => n + n).join(""));
|
|
40
|
+
const o = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
41
|
+
return o?.[1] && o?.[2] && o?.[3] ? {
|
|
42
|
+
r: Number.parseInt(o[1], 16) / 255,
|
|
43
|
+
g: Number.parseInt(o[2], 16) / 255,
|
|
44
|
+
b: Number.parseInt(o[3], 16) / 255
|
|
45
45
|
} : null;
|
|
46
|
-
},
|
|
47
|
-
const
|
|
46
|
+
}, M = (e, t, o) => {
|
|
47
|
+
const n = (r) => {
|
|
48
48
|
const i = Math.round(r * 255).toString(16);
|
|
49
49
|
return i.length === 1 ? `0${i}` : i;
|
|
50
50
|
};
|
|
51
|
-
return `#${
|
|
51
|
+
return `#${n(e)}${n(t)}${n(o)}`;
|
|
52
52
|
};
|
|
53
|
-
function Z(e,
|
|
54
|
-
const
|
|
53
|
+
function Z(e, t) {
|
|
54
|
+
const o = typeof document < "u" ? document.documentElement : null;
|
|
55
|
+
if (!o) return null;
|
|
56
|
+
const n = getComputedStyle(o).getPropertyValue(e).trim();
|
|
55
57
|
if (!n) return null;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
if (
|
|
59
|
-
|
|
60
|
-
if (t.startsWith("rgb")) {
|
|
61
|
-
const r = t.match(/\d+/g);
|
|
58
|
+
if (n.startsWith("#"))
|
|
59
|
+
return n;
|
|
60
|
+
if (n.startsWith("rgb")) {
|
|
61
|
+
const r = n.match(/\d+/g);
|
|
62
62
|
if (r && r.length >= 3) {
|
|
63
63
|
const i = Number.parseInt(r[0], 10) / 255, c = Number.parseInt(r[1], 10) / 255, a = Number.parseInt(r[2], 10) / 255;
|
|
64
|
-
return
|
|
64
|
+
return M(i, c, a);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
return null;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const
|
|
71
|
-
if (!
|
|
72
|
-
const
|
|
69
|
+
function S(e, t) {
|
|
70
|
+
const o = m(t);
|
|
71
|
+
if (!o) return e;
|
|
72
|
+
const n = [o.r, o.g, o.b, 1];
|
|
73
73
|
return JSON.parse(
|
|
74
|
-
JSON.stringify(e).replace(/"replaceColorWithYours"/g,
|
|
74
|
+
JSON.stringify(e).replace(/"replaceColorWithYours"/g, n.join(", ")).replace(/"replaceR"/g, o.r.toString()).replace(/"replaceG"/g, o.g.toString()).replace(/"replaceB"/g, o.b.toString())
|
|
75
75
|
);
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const I = () => {
|
|
78
78
|
const e = Z("--text-body-secondary") ?? "#60667c";
|
|
79
79
|
return /* @__PURE__ */ C(
|
|
80
80
|
"svg",
|
|
@@ -177,27 +177,27 @@ const b = () => {
|
|
|
177
177
|
]
|
|
178
178
|
}
|
|
179
179
|
);
|
|
180
|
-
},
|
|
180
|
+
}, w = ({
|
|
181
181
|
title: e,
|
|
182
|
-
subtitle:
|
|
183
|
-
className:
|
|
184
|
-
logo:
|
|
182
|
+
subtitle: t,
|
|
183
|
+
className: o,
|
|
184
|
+
logo: n,
|
|
185
185
|
children: r,
|
|
186
186
|
hideHeader: i,
|
|
187
187
|
hideFooterBranding: c,
|
|
188
188
|
"data-testid": a,
|
|
189
189
|
"data-permission-status": g
|
|
190
190
|
}) => {
|
|
191
|
-
const l =
|
|
191
|
+
const l = V({
|
|
192
192
|
hideHeader: i,
|
|
193
193
|
hideFooterBranding: c,
|
|
194
|
-
logo:
|
|
195
|
-
defaultLogoSrc:
|
|
196
|
-
}), h = e ||
|
|
194
|
+
logo: n,
|
|
195
|
+
defaultLogoSrc: p
|
|
196
|
+
}), h = e || t;
|
|
197
197
|
return /* @__PURE__ */ C(
|
|
198
198
|
"div",
|
|
199
199
|
{
|
|
200
|
-
class: `IncodePageContainer ${
|
|
200
|
+
class: `IncodePageContainer ${o ?? ""}`,
|
|
201
201
|
"data-testid": a,
|
|
202
202
|
"data-permission-status": g,
|
|
203
203
|
children: /* @__PURE__ */ C("div", { class: "IncodePageInner", children: [
|
|
@@ -214,31 +214,21 @@ const b = () => {
|
|
|
214
214
|
/* @__PURE__ */ C(s, { size: l.hideHeader ? 40 : 24 }),
|
|
215
215
|
/* @__PURE__ */ C("div", { class: "IncodePageTitleContainer", children: [
|
|
216
216
|
e ? /* @__PURE__ */ C("h2", { class: "IncodePageTitle", children: e }) : null,
|
|
217
|
-
|
|
217
|
+
t ? /* @__PURE__ */ C(u, { children: [
|
|
218
218
|
/* @__PURE__ */ C(s, { size: 12 }),
|
|
219
|
-
/* @__PURE__ */ C("p", { class: "IncodePageSubtitle", children:
|
|
219
|
+
/* @__PURE__ */ C("p", { class: "IncodePageSubtitle", children: t })
|
|
220
220
|
] }) : null
|
|
221
221
|
] })
|
|
222
222
|
] }) : null,
|
|
223
223
|
/* @__PURE__ */ C("div", { class: "IncodePageContent", children: r }),
|
|
224
|
-
l.hideFooterBranding ? null : /* @__PURE__ */ C("div", { class: "IncodePageFooter", children: /* @__PURE__ */ C("div", { class: "IncodePageFooterInner", children: /* @__PURE__ */ C(
|
|
224
|
+
l.hideFooterBranding ? null : /* @__PURE__ */ C("div", { class: "IncodePageFooter", children: /* @__PURE__ */ C("div", { class: "IncodePageFooterInner", children: /* @__PURE__ */ C(I, {}) }) })
|
|
225
225
|
] })
|
|
226
226
|
}
|
|
227
227
|
);
|
|
228
228
|
};
|
|
229
|
-
function v(e, o, n) {
|
|
230
|
-
f(e, o, [...n], {
|
|
231
|
-
shadow: !1
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
const P = ["config", "onFinish", "onError"];
|
|
235
|
-
function $(e, o) {
|
|
236
|
-
v(e, o, P);
|
|
237
|
-
}
|
|
238
229
|
export {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
N as a,
|
|
230
|
+
x as I,
|
|
231
|
+
w as P,
|
|
242
232
|
Z as g,
|
|
243
|
-
|
|
233
|
+
S as r
|
|
244
234
|
};
|