@charisol/plexo-sdk 1.1.4 → 1.1.6
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/{compiler-BpXCk9OP.js → compiler-Dv-nnW6a.js} +65 -57
- package/dist/compiler.js +1 -1
- package/dist/compilerClient.js +51 -43
- package/dist/components/icons.d.ts +8 -0
- package/dist/components/sidebarTabs/ContentTab.d.ts +2 -0
- package/dist/{iconSvgStatic-CeiuMavi.js → iconSvgStatic-D5PrYZfC.js} +170 -71
- package/dist/index.js +14362 -14101
- package/dist/plexo-sdk.css +1 -1
- package/dist/utilities/elementResolvers.d.ts +14 -6
- package/dist/utilities/playground.helpers.d.ts +108 -0
- package/dist/utilities/playground.interfaces.d.ts +9 -0
- package/dist/utilities/socialBrandIcons.d.ts +17 -0
- package/dist/utilities/types.d.ts +1 -1
- package/package.json +2 -1
|
@@ -8,46 +8,145 @@ function t(e, t, n) {
|
|
|
8
8
|
return r.splice(i, 0, t), r;
|
|
9
9
|
}
|
|
10
10
|
//#endregion
|
|
11
|
-
//#region
|
|
12
|
-
var n =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
//#region node_modules/simple-icons/index.mjs
|
|
12
|
+
var n = "\"/></svg>", r = {
|
|
13
|
+
title: "Facebook",
|
|
14
|
+
slug: "facebook",
|
|
15
|
+
get svg() {
|
|
16
|
+
return "<svg role=\"img\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><title>Facebook</title><path d=\"" + this.path + n;
|
|
17
|
+
},
|
|
18
|
+
path: "M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z",
|
|
19
|
+
source: "https://about.meta.com/brand/resources/facebook/logo",
|
|
20
|
+
hex: "0866FF",
|
|
21
|
+
guidelines: "https://about.meta.com/brand/resources/facebook/logo"
|
|
22
|
+
}, i = {
|
|
23
|
+
title: "Instagram",
|
|
24
|
+
slug: "instagram",
|
|
25
|
+
get svg() {
|
|
26
|
+
return "<svg role=\"img\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><title>Instagram</title><path d=\"" + this.path + n;
|
|
27
|
+
},
|
|
28
|
+
path: "M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077",
|
|
29
|
+
source: "https://about.meta.com/brand/resources/instagram",
|
|
30
|
+
hex: "FF0069",
|
|
31
|
+
guidelines: "https://about.meta.com/brand/resources/instagram"
|
|
32
|
+
}, a = {
|
|
33
|
+
title: "Pinterest",
|
|
34
|
+
slug: "pinterest",
|
|
35
|
+
get svg() {
|
|
36
|
+
return "<svg role=\"img\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><title>Pinterest</title><path d=\"" + this.path + n;
|
|
37
|
+
},
|
|
38
|
+
path: "M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z",
|
|
39
|
+
source: "https://business.pinterest.com/en/brand-guidelines",
|
|
40
|
+
hex: "BD081C",
|
|
41
|
+
guidelines: "https://business.pinterest.com/en/brand-guidelines"
|
|
42
|
+
}, o = {
|
|
43
|
+
title: "TikTok",
|
|
44
|
+
slug: "tiktok",
|
|
45
|
+
get svg() {
|
|
46
|
+
return "<svg role=\"img\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><title>TikTok</title><path d=\"" + this.path + n;
|
|
47
|
+
},
|
|
48
|
+
path: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z",
|
|
49
|
+
source: "https://tiktok.com",
|
|
50
|
+
hex: "000000"
|
|
51
|
+
}, s = {
|
|
52
|
+
title: "WhatsApp",
|
|
53
|
+
slug: "whatsapp",
|
|
54
|
+
get svg() {
|
|
55
|
+
return "<svg role=\"img\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><title>WhatsApp</title><path d=\"" + this.path + n;
|
|
56
|
+
},
|
|
57
|
+
path: "M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z",
|
|
58
|
+
source: "https://about.meta.com/brand/resources/whatsapp/whatsapp-brand",
|
|
59
|
+
hex: "25D366",
|
|
60
|
+
guidelines: "https://about.meta.com/brand/resources/whatsapp/whatsapp-brand"
|
|
61
|
+
}, c = {
|
|
62
|
+
title: "X",
|
|
63
|
+
slug: "x",
|
|
64
|
+
get svg() {
|
|
65
|
+
return "<svg role=\"img\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><title>X</title><path d=\"" + this.path + n;
|
|
66
|
+
},
|
|
67
|
+
path: "M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z",
|
|
68
|
+
source: "https://x.com",
|
|
69
|
+
hex: "000000",
|
|
70
|
+
guidelines: "https://about.x.com/en/who-we-are/brand-toolkit"
|
|
71
|
+
}, l = {
|
|
72
|
+
title: "YouTube",
|
|
73
|
+
slug: "youtube",
|
|
74
|
+
get svg() {
|
|
75
|
+
return "<svg role=\"img\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><title>YouTube</title><path d=\"" + this.path + n;
|
|
76
|
+
},
|
|
77
|
+
path: "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z",
|
|
78
|
+
source: "https://www.youtube.com/howyoutubeworks/resources/brand-resources/#logos-icons-and-colors",
|
|
79
|
+
hex: "FF0000",
|
|
80
|
+
guidelines: "https://www.youtube.com/howyoutubeworks/resources/brand-resources/#logos-icons-and-colors"
|
|
81
|
+
}, u = {
|
|
82
|
+
facebook: {
|
|
83
|
+
path: r.path,
|
|
84
|
+
color: `#${r.hex}`
|
|
85
|
+
},
|
|
86
|
+
instagram: {
|
|
87
|
+
path: i.path,
|
|
88
|
+
color: `#${i.hex}`
|
|
89
|
+
},
|
|
90
|
+
linkedin: {
|
|
91
|
+
path: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.446-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 1 1 0-4.125 2.062 2.062 0 0 1 0 4.125zM7.114 20.452H3.558V9h3.556v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z",
|
|
92
|
+
color: "#0A66C2"
|
|
93
|
+
},
|
|
94
|
+
x: {
|
|
95
|
+
path: c.path,
|
|
96
|
+
color: `#${c.hex}`
|
|
97
|
+
},
|
|
98
|
+
youtube: {
|
|
99
|
+
path: l.path,
|
|
100
|
+
color: `#${l.hex}`
|
|
101
|
+
},
|
|
102
|
+
pinterest: {
|
|
103
|
+
path: a.path,
|
|
104
|
+
color: `#${a.hex}`
|
|
105
|
+
},
|
|
106
|
+
whatsapp: {
|
|
107
|
+
path: s.path,
|
|
108
|
+
color: `#${s.hex}`
|
|
109
|
+
},
|
|
110
|
+
tiktok: {
|
|
111
|
+
path: o.path,
|
|
112
|
+
color: `#${o.hex}`
|
|
23
113
|
}
|
|
24
|
-
};
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
114
|
+
}, d = "M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z";
|
|
115
|
+
function f(e) {
|
|
116
|
+
return u[e]?.color || "#475569";
|
|
117
|
+
}
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/utilities/elementResolvers.ts
|
|
120
|
+
var p = (e) => e === "twitter" ? "x" : e, m = (e, t = "currentColor") => `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path fill="${t}" d="${u[p(e)]?.path || "M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"}"/></svg>`;
|
|
121
|
+
function h(e) {
|
|
122
|
+
let t = e.attributes || {}, n = e.style || {}, r = Array.isArray(t.links) ? t.links : [], i = t.colorMode === "branded";
|
|
123
|
+
return r.filter((e) => e && typeof e == "object").map((e) => {
|
|
124
|
+
let r = p(String(e.provider || ""));
|
|
125
|
+
return {
|
|
126
|
+
provider: r,
|
|
127
|
+
url: typeof e.url == "string" && e.url.trim() ? e.url : "#",
|
|
128
|
+
color: i ? f(r) : e.color || n.iconColor || "#475569",
|
|
129
|
+
backgroundColor: i ? "transparent" : e.backgroundColor || n.iconBackgroundColor || "#f8fafc",
|
|
130
|
+
size: e.size || n.iconSize || "36px",
|
|
131
|
+
iconType: (e.iconType || t.iconType) === "square" ? "square" : "circle"
|
|
132
|
+
};
|
|
133
|
+
});
|
|
35
134
|
}
|
|
36
|
-
function
|
|
135
|
+
function g(e) {
|
|
37
136
|
let t = e.attributes || {};
|
|
38
137
|
return (Array.isArray(t.links) ? t.links : []).filter((e) => e && typeof e == "object").map((e) => ({
|
|
39
138
|
label: typeof e.label == "string" && e.label.trim() ? e.label : "Link",
|
|
40
139
|
href: typeof e.href == "string" && e.href.trim() ? e.href : "#"
|
|
41
140
|
}));
|
|
42
141
|
}
|
|
43
|
-
function
|
|
142
|
+
function _(e) {
|
|
44
143
|
let t = e.style || {}, n = e.attributes || {};
|
|
45
144
|
return {
|
|
46
145
|
width: t.width || "100%",
|
|
47
146
|
height: n.autoHeight === !1 && t.height || "auto"
|
|
48
147
|
};
|
|
49
148
|
}
|
|
50
|
-
function
|
|
149
|
+
function v(e, t, n, r) {
|
|
51
150
|
if (e) return e;
|
|
52
151
|
if (t) {
|
|
53
152
|
let e = t.trim().split(/\s+/).filter(Boolean);
|
|
@@ -63,22 +162,22 @@ function s(e, t, n, r) {
|
|
|
63
162
|
}
|
|
64
163
|
return r;
|
|
65
164
|
}
|
|
66
|
-
function
|
|
165
|
+
function y(e) {
|
|
67
166
|
let t = e.style || {}, n = e.attributes || {};
|
|
68
167
|
return {
|
|
69
168
|
width: n.autoWidth === !1 ? t.width || "100%" : "auto",
|
|
70
169
|
height: n.autoHeight === !1 && t.height || "auto"
|
|
71
170
|
};
|
|
72
171
|
}
|
|
73
|
-
function
|
|
172
|
+
function b(e) {
|
|
74
173
|
let t = e.style || {};
|
|
75
174
|
return (e.attributes || {}).autoHeight === !1 && t.height || "auto";
|
|
76
175
|
}
|
|
77
|
-
function
|
|
176
|
+
function x(e, t) {
|
|
78
177
|
let n = e.style || {};
|
|
79
178
|
return (e.attributes || {}).autoHeight === !1 && n.height || t;
|
|
80
179
|
}
|
|
81
|
-
var
|
|
180
|
+
var S = [
|
|
82
181
|
"showLabel",
|
|
83
182
|
"fontSize",
|
|
84
183
|
"labelFontWeight",
|
|
@@ -89,16 +188,16 @@ var d = [
|
|
|
89
188
|
"inputTextColor",
|
|
90
189
|
"placeholderColor"
|
|
91
190
|
];
|
|
92
|
-
function
|
|
191
|
+
function C(e) {
|
|
93
192
|
let t = null;
|
|
94
193
|
return (Array.isArray(e) ? e : []).map((e) => {
|
|
95
194
|
let n = e?.inheritStylesFromPrevious && t ? { ...e } : e;
|
|
96
|
-
if (e?.inheritStylesFromPrevious && t) for (let e of
|
|
195
|
+
if (e?.inheritStylesFromPrevious && t) for (let e of S) n[e] = t[e];
|
|
97
196
|
return t = n, n;
|
|
98
197
|
});
|
|
99
198
|
}
|
|
100
|
-
var
|
|
101
|
-
function
|
|
199
|
+
var w = (e) => String(Math.max(0, e)).padStart(2, "0");
|
|
200
|
+
function T(e, t, n = Date.now()) {
|
|
102
201
|
let r = e ? Date.parse(e) : NaN, i = Number.isNaN(r) ? n : r, a = i - n;
|
|
103
202
|
if (a <= 0) return {
|
|
104
203
|
days: "00",
|
|
@@ -110,31 +209,31 @@ function m(e, t, n = Date.now()) {
|
|
|
110
209
|
};
|
|
111
210
|
let o = Math.floor(a / 1e3), s = Math.floor(o / 86400), c = Math.floor(o % 86400 / 3600), l = Math.floor(o % 3600 / 60), u = o % 60;
|
|
112
211
|
return {
|
|
113
|
-
days:
|
|
114
|
-
hours:
|
|
115
|
-
minutes:
|
|
116
|
-
seconds:
|
|
212
|
+
days: w(s),
|
|
213
|
+
hours: w(c),
|
|
214
|
+
minutes: w(l),
|
|
215
|
+
seconds: w(u),
|
|
117
216
|
isExpired: !1,
|
|
118
217
|
targetTimestamp: i
|
|
119
218
|
};
|
|
120
219
|
}
|
|
121
|
-
var
|
|
220
|
+
var E = [
|
|
122
221
|
"youtube.com",
|
|
123
222
|
"www.youtube.com",
|
|
124
223
|
"youtu.be",
|
|
125
224
|
"m.youtube.com"
|
|
126
225
|
];
|
|
127
|
-
function
|
|
226
|
+
function D(e) {
|
|
128
227
|
return e.hostname === "youtu.be" ? e.pathname.slice(1).split("/")[0] || null : e.pathname.startsWith("/embed/") ? e.pathname.slice(7).split("/")[0] || null : e.pathname.startsWith("/shorts/") ? e.pathname.slice(8).split("/")[0] || null : e.searchParams.get("v");
|
|
129
228
|
}
|
|
130
|
-
function
|
|
229
|
+
function O(e) {
|
|
131
230
|
let t = e.pathname.match(/(\d+)/);
|
|
132
231
|
return t ? t[1] : null;
|
|
133
232
|
}
|
|
134
|
-
var
|
|
135
|
-
function
|
|
233
|
+
var k = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22360%22%20viewBox%3D%220%200%20640%20360%22%3E%3Crect%20width%3D%22640%22%20height%3D%22360%22%20fill%3D%22%230f172a%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22180%22%20r%3D%2248%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.9%22%2F%3E%3Cpath%20d%3D%22M304%20156%20L356%20180%20L304%20204%20Z%22%20fill%3D%22%230f172a%22%2F%3E%3C%2Fsvg%3E";
|
|
234
|
+
function A(e) {
|
|
136
235
|
if (!e || typeof e != "string") return {
|
|
137
|
-
thumbnailUrl:
|
|
236
|
+
thumbnailUrl: k,
|
|
138
237
|
provider: "unknown"
|
|
139
238
|
};
|
|
140
239
|
let t;
|
|
@@ -142,34 +241,34 @@ function y(e) {
|
|
|
142
241
|
t = new URL(e);
|
|
143
242
|
} catch {
|
|
144
243
|
return {
|
|
145
|
-
thumbnailUrl:
|
|
244
|
+
thumbnailUrl: k,
|
|
146
245
|
provider: "unknown"
|
|
147
246
|
};
|
|
148
247
|
}
|
|
149
|
-
if (
|
|
150
|
-
let e =
|
|
248
|
+
if (E.includes(t.hostname)) {
|
|
249
|
+
let e = D(t);
|
|
151
250
|
if (e) return {
|
|
152
251
|
thumbnailUrl: `https://img.youtube.com/vi/${e}/hqdefault.jpg`,
|
|
153
252
|
provider: "youtube"
|
|
154
253
|
};
|
|
155
254
|
}
|
|
156
255
|
if (t.hostname === "vimeo.com" || t.hostname === "www.vimeo.com" || t.hostname === "player.vimeo.com") {
|
|
157
|
-
let e =
|
|
256
|
+
let e = O(t);
|
|
158
257
|
if (e) return {
|
|
159
258
|
thumbnailUrl: `https://vumbnail.com/${e}.jpg`,
|
|
160
259
|
provider: "vimeo"
|
|
161
260
|
};
|
|
162
261
|
}
|
|
163
262
|
return {
|
|
164
|
-
thumbnailUrl:
|
|
263
|
+
thumbnailUrl: k,
|
|
165
264
|
provider: "unknown"
|
|
166
265
|
};
|
|
167
266
|
}
|
|
168
|
-
function
|
|
267
|
+
function j(e, t) {
|
|
169
268
|
let n = e || "Star", r = n.replace(/[-_]([a-z0-9])/gi, (e, t) => t.toUpperCase()).replace(/^\w/, (e) => e.toUpperCase()), i = n.toLowerCase().replace(/[-_]/g, "");
|
|
170
269
|
return t.includes(n) ? n : t.includes(r) ? r : t.includes(`${r}Icon`) ? `${r}Icon` : t.find((e) => e.toLowerCase().replace(/[-_]/g, "") === i) || "HelpCircle";
|
|
171
270
|
}
|
|
172
|
-
function
|
|
271
|
+
function M(e) {
|
|
173
272
|
let t = e.attributes || {}, n = Math.max(1, Number(t.rowCount) || 2), r = Math.max(1, Number(t.colCount) || 2), i = Array.isArray(t.cells) ? t.cells : [], a = [];
|
|
174
273
|
for (let e = 0; e < n; e++) {
|
|
175
274
|
let t = Array.isArray(i[e]) ? i[e] : [], n = [];
|
|
@@ -185,29 +284,29 @@ function x(e) {
|
|
|
185
284
|
striped: !!t.striped
|
|
186
285
|
};
|
|
187
286
|
}
|
|
188
|
-
var
|
|
189
|
-
function
|
|
190
|
-
let r = n <
|
|
287
|
+
var N = 8;
|
|
288
|
+
function P(e, t, n) {
|
|
289
|
+
let r = n < N && Array.isArray(e?.children) ? e.children : [];
|
|
191
290
|
return {
|
|
192
291
|
id: typeof e?.id == "string" && e.id ? e.id : `item-${t}`,
|
|
193
292
|
title: typeof e?.title == "string" && e.title.trim() ? e.title : `Item ${t + 1}`,
|
|
194
293
|
content: typeof e?.content == "string" ? e.content : "",
|
|
195
294
|
defaultOpen: !!e?.defaultOpen,
|
|
196
|
-
children: r.map((e, t) =>
|
|
295
|
+
children: r.map((e, t) => P(e, t, n + 1))
|
|
197
296
|
};
|
|
198
297
|
}
|
|
199
|
-
function
|
|
298
|
+
function F(e, t) {
|
|
200
299
|
if (t !== "multi") {
|
|
201
300
|
let t = !1;
|
|
202
301
|
for (let n of e) n.defaultOpen && (t ? n.defaultOpen = !1 : t = !0);
|
|
203
302
|
}
|
|
204
|
-
for (let n of e)
|
|
303
|
+
for (let n of e) F(n.children, t);
|
|
205
304
|
}
|
|
206
|
-
function
|
|
207
|
-
let t = e.attributes || {}, n = t.mode === "multi" ? "multi" : "single", r = (Array.isArray(t.items) ? t.items : []).map((e, t) =>
|
|
208
|
-
return
|
|
305
|
+
function I(e) {
|
|
306
|
+
let t = e.attributes || {}, n = t.mode === "multi" ? "multi" : "single", r = (Array.isArray(t.items) ? t.items : []).map((e, t) => P(e, t, 0));
|
|
307
|
+
return F(r, n), r;
|
|
209
308
|
}
|
|
210
|
-
function
|
|
309
|
+
function L(e, t, n) {
|
|
211
310
|
let r = JSON.parse(JSON.stringify(Array.isArray(e) ? e : [])), i = (e, t) => {
|
|
212
311
|
let [r, ...a] = t;
|
|
213
312
|
if (e[r]) {
|
|
@@ -225,7 +324,7 @@ function E(e, t, n) {
|
|
|
225
324
|
}
|
|
226
325
|
//#endregion
|
|
227
326
|
//#region src/utilities/iconSvgStatic.ts
|
|
228
|
-
var
|
|
327
|
+
var R = {
|
|
229
328
|
"a-arrow-down": [
|
|
230
329
|
["path", { d: "m14 12 4 4 4-4" }],
|
|
231
330
|
["path", { d: "M18 16V7" }],
|
|
@@ -15045,18 +15144,18 @@ var D = {
|
|
|
15045
15144
|
y2: "11"
|
|
15046
15145
|
}]
|
|
15047
15146
|
]
|
|
15048
|
-
},
|
|
15049
|
-
function
|
|
15147
|
+
}, z = "circle-help";
|
|
15148
|
+
function B(e) {
|
|
15050
15149
|
return e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1-$2").toLowerCase();
|
|
15051
15150
|
}
|
|
15052
|
-
function
|
|
15053
|
-
let t = e || "HelpCircle", n =
|
|
15054
|
-
if (
|
|
15151
|
+
function V(e) {
|
|
15152
|
+
let t = e || "HelpCircle", n = B(t.replace(/^\w/, (e) => e.toUpperCase()));
|
|
15153
|
+
if (R[n]) return n;
|
|
15055
15154
|
let r = t.toLowerCase().replace(/[-_\s]/g, "");
|
|
15056
|
-
return Object.keys(
|
|
15155
|
+
return Object.keys(R).find((e) => e.replace(/-/g, "") === r) || z;
|
|
15057
15156
|
}
|
|
15058
|
-
function
|
|
15059
|
-
return `<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" viewBox="0 0 24 24" fill="none" stroke="${n}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${(
|
|
15157
|
+
function H(e, t, n) {
|
|
15158
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" viewBox="0 0 24 24" fill="none" stroke="${n}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${(R[V(e)] || R[z] || []).map(([e, t]) => `<${e} ${Object.entries(t).map(([e, t]) => `${e}="${String(t)}"`).join(" ")}></${e}>`).join("")}</svg>`;
|
|
15060
15159
|
}
|
|
15061
15160
|
//#endregion
|
|
15062
|
-
export {
|
|
15161
|
+
export { d as _, y as a, e as b, x as c, g as d, h as f, L as g, A as h, v as i, _ as l, T as m, m as n, b as o, M as p, I as r, C as s, H as t, j as u, u as v, t as x, f as y };
|