@charisol/plexo-sdk 1.1.5 → 1.1.7

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.
@@ -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 src/utilities/elementResolvers.ts
12
- var n = (e) => e === "twitter" ? "x" : e, r = (e, t = "currentColor") => {
13
- switch (n(e)) {
14
- case "facebook": return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path fill="${t}" d="M14 8h2V4h-2c-2.2 0-4 1.8-4 4v2H8v4h2v6h4v-6h2.5l.5-4H14V8c0-.55.45-1 1-1Z"/></svg>`;
15
- case "instagram": return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><rect x="4" y="4" width="16" height="16" rx="5" ry="5" fill="none" stroke="${t}" stroke-width="2"/><circle cx="12" cy="12" r="3.5" fill="none" stroke="${t}" stroke-width="2"/><circle cx="17" cy="7" r="1" fill="${t}"/></svg>`;
16
- case "linkedin": return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><circle cx="8" cy="9" r="1.25" fill="${t}"/><path fill="${t}" d="M7 11h2v6H7zM11 11h2v.9c.5-.7 1.34-1.15 2.4-1.15 2 0 3.1 1.25 3.1 3.6V17h-2v-2.2c0-1.3-.45-2.05-1.55-2.05-1.2 0-1.85.8-1.85 2.05V17h-2z"/></svg>`;
17
- case "x": return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path fill="${t}" d="M6 5h3.1l3 4.2L15.7 5H18l-4.8 5.5L18.4 18h-3.1l-3.3-4.7L8 18H5.6l5-5.8z"/></svg>`;
18
- case "youtube": return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><rect x="3" y="6.5" width="18" height="11" rx="3" fill="${t}"/><path fill="#fff" d="m10 9 5 3-5 3z"/></svg>`;
19
- case "pinterest": return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path fill="${t}" d="M12 4a8 8 0 0 0-2.9 15.46c-.04-1.17 0-2.58.3-3.82l1.1-4.6s-.27-.56-.27-1.4c0-1.3.75-2.27 1.68-2.27.8 0 1.18.6 1.18 1.3 0 .8-.5 2-.77 3.12-.22.94.47 1.7 1.4 1.7 1.67 0 2.8-2.15 2.8-4.7 0-1.93-1.3-3.37-3.67-3.37-2.68 0-4.35 2-4.35 4.23 0 .77.23 1.34.6 1.77.17.2.2.29.13.53l-.2.8c-.07.25-.3.34-.56.25-1.55-.63-2.27-2.32-2.27-4.22 0-3.14 2.64-6.9 7.89-6.9 4.21 0 6.98 3.05 6.98 6.32 0 4.32-2.4 7.54-5.93 7.54-1.18 0-2.28-.64-2.65-1.37l-.73 2.78c-.26.95-.77 2.14-1.22 2.96A8 8 0 1 0 12 4Z"/></svg>`;
20
- case "whatsapp": return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path fill="${t}" d="M12 4a8 8 0 0 0-6.9 12.04L4 20l4.11-1.06A8 8 0 1 0 12 4Zm4.55 11.36c-.2.56-1.14 1.04-1.57 1.1-.4.06-.92.09-1.48-.08-.34-.11-.78-.25-1.35-.5-2.37-1.03-3.92-3.45-4.04-3.6-.11-.15-.96-1.27-.96-2.42s.6-1.72.8-1.96c.2-.24.45-.3.6-.3h.43c.14 0 .33-.05.51.38.2.48.7 1.67.75 1.79.06.12.1.26.02.42-.07.15-.11.26-.22.39-.11.13-.23.29-.33.39-.11.11-.22.23-.1.45.11.22.52.86 1.11 1.39.76.68 1.4.89 1.62.99.22.11.35.09.48-.06.13-.15.56-.65.72-.88.15-.22.31-.18.52-.11.22.08 1.36.64 1.6.76.23.11.38.17.44.27.06.1.06.61-.14 1.17Z"/></svg>`;
21
- case "tiktok": return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><path fill="${t}" d="M14.4 4c.24 1.12.9 2.08 1.86 2.67.7.42 1.52.64 2.35.63V10a6.5 6.5 0 0 1-4.2-1.52v5.24A4.72 4.72 0 1 1 9.7 9v2.6a2.12 2.12 0 1 0 2.1 2.12V4z"/></svg>`;
22
- default: return `<svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true"><circle cx="12" cy="12" r="4" fill="${t}"/></svg>`;
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 i(e) {
26
- let t = e.attributes || {}, r = e.style || {};
27
- return (Array.isArray(t.links) ? t.links : []).filter((e) => e && typeof e == "object").map((e) => ({
28
- provider: n(String(e.provider || "")),
29
- url: typeof e.url == "string" && e.url.trim() ? e.url : "#",
30
- color: e.color || r.iconColor || "#475569",
31
- backgroundColor: e.backgroundColor || r.iconBackgroundColor || "#f8fafc",
32
- size: e.size || r.iconSize || "36px",
33
- iconType: (e.iconType || t.iconType) === "square" ? "square" : "circle"
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 a(e) {
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 o(e) {
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 s(e, t, n, r) {
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 c(e) {
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 l(e) {
172
+ function b(e) {
74
173
  let t = e.style || {};
75
174
  return (e.attributes || {}).autoHeight === !1 && t.height || "auto";
76
175
  }
77
- function u(e, t) {
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 d = [
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 f(e) {
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 d) n[e] = t[e];
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 p = (e) => String(Math.max(0, e)).padStart(2, "0");
101
- function m(e, t, n = Date.now()) {
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: p(s),
114
- hours: p(c),
115
- minutes: p(l),
116
- seconds: p(u),
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 h = [
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 g(e) {
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 _(e) {
229
+ function O(e) {
131
230
  let t = e.pathname.match(/(\d+)/);
132
231
  return t ? t[1] : null;
133
232
  }
134
- var v = "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";
135
- function y(e) {
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: v,
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: v,
244
+ thumbnailUrl: k,
146
245
  provider: "unknown"
147
246
  };
148
247
  }
149
- if (h.includes(t.hostname)) {
150
- let e = g(t);
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 = _(t);
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: v,
263
+ thumbnailUrl: k,
165
264
  provider: "unknown"
166
265
  };
167
266
  }
168
- function b(e, t) {
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 x(e) {
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 S = 8;
189
- function C(e, t, n) {
190
- let r = n < S && Array.isArray(e?.children) ? e.children : [];
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) => C(e, t, n + 1))
295
+ children: r.map((e, t) => P(e, t, n + 1))
197
296
  };
198
297
  }
199
- function w(e, t) {
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) w(n.children, t);
303
+ for (let n of e) F(n.children, t);
205
304
  }
206
- function T(e) {
207
- let t = e.attributes || {}, n = t.mode === "multi" ? "multi" : "single", r = (Array.isArray(t.items) ? t.items : []).map((e, t) => C(e, t, 0));
208
- return w(r, n), r;
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 E(e, t, n) {
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 D = {
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
- }, O = "circle-help";
15049
- function k(e) {
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 A(e) {
15053
- let t = e || "HelpCircle", n = k(t.replace(/^\w/, (e) => e.toUpperCase()));
15054
- if (D[n]) return n;
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(D).find((e) => e.replace(/-/g, "") === r) || O;
15155
+ return Object.keys(R).find((e) => e.replace(/-/g, "") === r) || z;
15057
15156
  }
15058
- function j(e, t, n) {
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">${(D[A(e)] || D[O] || []).map(([e, t]) => `<${e} ${Object.entries(t).map(([e, t]) => `${e}="${String(t)}"`).join(" ")}></${e}>`).join("")}</svg>`;
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 { e as _, c as a, u as c, a as d, i as f, E as g, y as h, s as i, o as l, m, r as n, l as o, x as p, T as r, f as s, j as t, b as u, t as v };
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 };