@ebrains/vue 3.1.0 → 3.2.0
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/color-primary-palette_6.entry-1eBEirY0.js +1 -0
- package/{color-primary-palette_6.entry-DLM8AbQ4.mjs → color-primary-palette_6.entry-H67NPitC.mjs} +15 -15
- package/{components-section.entry-Di2VXgMA.mjs → components-section.entry-B1dz0g33.mjs} +2 -2
- package/{components-section.entry-D3Cs3rKx.js → components-section.entry-CcoF89WU.js} +2 -2
- package/correct-use-of-colors.entry-C073SOHl.js +1 -0
- package/correct-use-of-colors.entry-TbWXh9C3.mjs +59 -0
- package/{docs-palettes.entry-BdmohcUb.mjs → docs-palettes.entry-C2pGHAUO.mjs} +2 -2
- package/{docs-palettes.entry-CMeJkYSH.js → docs-palettes.entry-QaWmCwPR.js} +1 -1
- package/{docs-tokens.entry-CNGoSG29.js → docs-tokens.entry-C0FAMzjq.js} +1 -1
- package/{docs-tokens.entry-CWOYs_8-.mjs → docs-tokens.entry-C672wOyc.mjs} +2 -2
- package/{eds-accordion_53.entry-B-Wyebqm.mjs → eds-accordion_53.entry-DnQ71cUa.mjs} +771 -517
- package/{eds-accordion_53.entry-B5ZXKAjG.js → eds-accordion_53.entry-zcFgu-bN.js} +233 -13
- package/eds-app-root.entry-CdYXRvEH.js +1 -0
- package/eds-app-root.entry-SRuoPkpR.mjs +25 -0
- package/{eds-cookies-preference.entry-CVcAao_J.js → eds-cookies-preference.entry-C5oyARD2.js} +1 -1
- package/{eds-cookies-preference.entry-WYgccA0t.mjs → eds-cookies-preference.entry-DCpS4QYq.mjs} +5 -5
- package/{eds-feedback.entry-D5Ouctg6.js → eds-feedback.entry-CjGbkIyP.js} +1 -1
- package/{eds-feedback.entry-BpRZtSfF.mjs → eds-feedback.entry-DgcQUGEM.mjs} +1 -1
- package/{eds-frame.entry-B4p00bwc.mjs → eds-frame.entry-Bal0CtfI.mjs} +2 -2
- package/{eds-frame.entry-DR1xGJst.js → eds-frame.entry-CS-QzNkR.js} +1 -1
- package/{eds-gauge.entry-B_w5n0cW.js → eds-gauge.entry-CSyfwF-_.js} +1 -1
- package/{eds-gauge.entry-DgEkwl17.mjs → eds-gauge.entry-Ck3pnw-L.mjs} +1 -1
- package/{eds-gitlab-contributors.entry-zWK0Z2kn.js → eds-gitlab-contributors.entry--cj-UT_T.js} +1 -1
- package/{eds-gitlab-contributors.entry-B1AEl-u7.mjs → eds-gitlab-contributors.entry-DFVGHOFu.mjs} +11 -20
- package/{eds-icon-bluesky.entry-pDbXLbWF.js → eds-icon-bluesky.entry-BdmwMS1Y.js} +1 -1
- package/eds-icon-bluesky.entry-Dn96V_Ds.mjs +13 -0
- package/eds-icon-eu.entry-B-GwzWAf.mjs +13 -0
- package/eds-icon-eu.entry-CAN9lqP_.js +1 -0
- package/{eds-icon-facebook.entry-CVymbjZx.js → eds-icon-facebook.entry-R5tBlxkL.js} +1 -1
- package/eds-icon-facebook.entry-s1-bqh2N.mjs +13 -0
- package/{eds-icon-gitlab.entry-BeJh3EES.js → eds-icon-gitlab.entry-BNvAWAWU.js} +1 -1
- package/eds-icon-gitlab.entry-bsOZxWgG.mjs +13 -0
- package/{eds-icon-linkedin.entry-DzZnyxAm.js → eds-icon-linkedin.entry-BmKw7UwO.js} +1 -1
- package/eds-icon-linkedin.entry-CQ8aQkpK.mjs +13 -0
- package/eds-icon-mastodon.entry-Bp3uiLJK.js +1 -0
- package/eds-icon-mastodon.entry-MqjbMszr.mjs +13 -0
- package/{eds-icon-twitter.entry-D1GOytI5.js → eds-icon-twitter.entry-B7qqj7uR.js} +1 -1
- package/eds-icon-twitter.entry-BDHU-frf.mjs +13 -0
- package/eds-icon-youtube.entry-BEsZUIRy.js +1 -0
- package/eds-icon-youtube.entry-DHXGAtfw.mjs +13 -0
- package/{eds-input-search.entry-C-8KBUCs.mjs → eds-input-search.entry-BH4SeDfq.mjs} +5 -5
- package/{eds-input-search.entry-CtZHtmS4.js → eds-input-search.entry-bBQR1BS4.js} +1 -1
- package/{eds-modal.entry-3OECayey.js → eds-modal.entry-BzkfXrr0.js} +1 -1
- package/{eds-modal.entry-CRVpxuBW.mjs → eds-modal.entry-CrwS8bkc.mjs} +10 -2
- package/{eds-pie.entry-CQmET1EH.js → eds-pie.entry-BLtKp4WE.js} +1 -1
- package/{eds-pie.entry-BPCyYhUQ.mjs → eds-pie.entry-hanOmYYd.mjs} +1 -1
- package/{eds-section-core_2.entry-29cp2-oK.js → eds-section-core_2.entry-BCEx-Y5E.js} +1 -1
- package/{eds-section-core_2.entry-nuk5XXsS.mjs → eds-section-core_2.entry-CIQTdyrr.mjs} +6 -6
- package/{eds-splash-screen.entry-6LjvQMdi.js → eds-splash-screen.entry-CM8rm1uo.js} +1 -1
- package/{eds-splash-screen.entry-ysMrUnNU.mjs → eds-splash-screen.entry-DwqEVjpm.mjs} +1 -1
- package/{eds-timeline.entry-DMH1Ms5n.js → eds-timeline.entry-B2ms_g6o.js} +1 -1
- package/{eds-timeline.entry-DKpKHB5k.mjs → eds-timeline.entry-BNhrI9Ej.mjs} +5 -5
- package/{eds-toast-manager.entry-DnCELf2f.js → eds-toast-manager.entry-Cy-DXVuo.js} +1 -1
- package/{eds-toast-manager.entry-DVXxUD8d.mjs → eds-toast-manager.entry-Dsj7g74X.mjs} +5 -5
- package/{eds-trl-badge.entry-D7q4hgde.js → eds-trl-badge.entry-Bk9QSv1P.js} +1 -1
- package/{eds-trl-badge.entry-DCmmqQHB.mjs → eds-trl-badge.entry-lb_N2T5G.mjs} +9 -9
- package/incorrect-use-of-colors.entry-BgXG9URu.js +1 -0
- package/incorrect-use-of-colors.entry-f1_9a2ie.mjs +42 -0
- package/{index-WyhGZcXS.js → index-Bng_ykBc.js} +4 -4
- package/{index-DL15mWAH.mjs → index-WGs6rGzb.mjs} +293 -281
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/logo-space.entry-CFC2Gs2G.mjs +75 -0
- package/{logo-space.entry-DojbLxT4.js → logo-space.entry-qBWZJ5nT.js} +1 -1
- package/{logo-variations-horizontal_2.entry-DNcdxqUe.mjs → logo-variations-horizontal_2.entry-CEwWf28Q.mjs} +12 -12
- package/{logo-variations-horizontal_2.entry-BxLg0D44.js → logo-variations-horizontal_2.entry-DmjS1SNC.js} +3 -3
- package/{logo-variations-tabs.entry-C6mpER1C.js → logo-variations-tabs.entry-BA2qo3EF.js} +1 -1
- package/{logo-variations-tabs.entry-DRT8k7pQ.mjs → logo-variations-tabs.entry-D0CJpUNF.mjs} +4 -4
- package/{logo-wrong-usage.entry-DTRzJDQo.js → logo-wrong-usage.entry-CjGaQC45.js} +1 -1
- package/{logo-wrong-usage.entry-DHJIJsVZ.mjs → logo-wrong-usage.entry-DesUHaDc.mjs} +5 -5
- package/package.json +1 -1
- package/{svg-repository.entry-DZc3Ej9y.js → svg-repository.entry-JEAJo50z.js} +2 -2
- package/{svg-repository.entry-DZfvxxeh.mjs → svg-repository.entry-OnOCsUve.mjs} +13 -13
- package/{token-list_3.entry-CuNhLZNv.mjs → token-list_3.entry-B4YpBeyT.mjs} +7 -7
- package/{token-list_3.entry-ve9r960B.js → token-list_3.entry-mH55IVfb.js} +1 -1
- package/{token-ratios.entry-D5YiyMvt.mjs → token-ratios.entry-CqueacSp.mjs} +2 -2
- package/token-ratios.entry-DjSZYMDP.js +1 -0
- package/token-spacing.entry-DYxFda6A.js +1 -0
- package/token-spacing.entry-DfUjKTaZ.mjs +12 -0
- package/{token-typography.entry-C_NmBPt2.mjs → token-typography.entry-BXifOq6O.mjs} +9 -3
- package/{token-typography.entry-DEuXeYSY.js → token-typography.entry-Dw2E2kTC.js} +1 -1
- package/color-primary-palette_6.entry-g0jXU2Ob.js +0 -1
- package/correct-use-of-colors.entry-BO20319L.mjs +0 -59
- package/correct-use-of-colors.entry-D6EyksAq.js +0 -1
- package/eds-app-root.entry-BIOnfrHA.mjs +0 -25
- package/eds-app-root.entry-K5aPf66w.js +0 -1
- package/eds-icon-bluesky.entry-TCr9yCHs.mjs +0 -13
- package/eds-icon-eu.entry-CTBu76k-.js +0 -1
- package/eds-icon-eu.entry-DuKnYzW-.mjs +0 -13
- package/eds-icon-facebook.entry-B1moHgT8.mjs +0 -13
- package/eds-icon-gitlab.entry-B51la_co.mjs +0 -13
- package/eds-icon-linkedin.entry-D8aMAhFL.mjs +0 -13
- package/eds-icon-mastodon.entry-8MO-blJh.js +0 -1
- package/eds-icon-mastodon.entry-DrOJJ5Kz.mjs +0 -13
- package/eds-icon-twitter.entry-B59MqkyR.mjs +0 -13
- package/eds-icon-youtube.entry-BnxPIc3O.js +0 -1
- package/eds-icon-youtube.entry-CzNnNcEj.mjs +0 -13
- package/incorrect-use-of-colors.entry-BSLfYKUb.mjs +0 -42
- package/incorrect-use-of-colors.entry-DHqHOdH0.js +0 -1
- package/logo-space.entry-iQSqRbq9.mjs +0 -18
- package/token-ratios.entry-BgWROZuw.js +0 -1
- package/token-spacing.entry-BchYKWuE.js +0 -1
- package/token-spacing.entry-CSkx5neb.mjs +0 -12
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as u, c as
|
|
1
|
+
import { r as u, c as k, h as t, g as w, H as Y } from "./index-WGs6rGzb.mjs";
|
|
2
2
|
import { s as F, m as Ee, a as le } from "./analytics-d99780e3-Bay18Oil.mjs";
|
|
3
|
-
import { p as
|
|
3
|
+
import { p as M } from "./sharedUtils-a550989c-Ci3Tx3jc.mjs";
|
|
4
4
|
import { l as Fe } from "./negative-84eec72e-C5p0bd7Z.mjs";
|
|
5
5
|
import { l as Ae } from "./positive-cc986d7c-5QAxRLUF.mjs";
|
|
6
6
|
const Ie = ":host{display:block;width:100%}.accordion-card{border-radius:16px;padding:1.5rem;transition:all 0.4s ease;position:relative;overflow:hidden;border:1px solid rgba(0, 0, 0, 0.1)}.accordion-card-default{background:var(--brand-black);color:var(--white)}.accordion-card-default:hover{border-color:rgba(0, 255, 157, 0.4);box-shadow:0 4px 20px rgba(0, 0, 0, 0.1)}.accordion-card-default .accordion-title{color:var(--white)}.accordion-card-default .accordion-description{color:var(--grey-light)}.accordion-card-default .accordion-chevron{color:var(--white)}.accordion-card-default .accordion-content{color:var(--grey-light)}.accordion-card-inverse{background:var(--white);color:var(--brand-black)}.accordion-card-inverse:hover{border-color:rgba(0, 255, 157, 0.4);box-shadow:0 4px 20px rgba(0, 0, 0, 0.1)}.accordion-card-inverse .accordion-title{color:var(--brand-black)}.accordion-card-inverse .accordion-description{color:var(--grey-700)}.accordion-card-inverse .accordion-chevron{color:var(--brand-black)}.accordion-card-inverse .accordion-content{color:var(--grey-700)}.accordion-header{display:flex;align-items:center;gap:1rem;cursor:pointer;width:100%;background:none;border:none;padding:0;text-align:left;-webkit-user-select:none;user-select:none}.accordion-header:focus-visible{outline:2px solid var(--brand-green);outline-offset:2px;border-radius:8px}.accordion-icon{width:48px;height:48px;min-width:48px;display:flex;align-items:center;justify-content:center;background:rgba(0, 255, 157, 0.1);border-radius:12px;color:var(--brand-green);flex-shrink:0}.accordion-card-inverse .accordion-icon{background:rgba(0, 0, 0, 0.05);color:var(--brand-black)}.accordion-header-text{flex-grow:1;min-width:0}.accordion-title{font-family:'Inter', var(--f-heading-fontFamily);font-weight:300;font-size:1.25rem;line-height:1.4;margin:0}.accordion-description{font-family:'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;font-size:0.9375rem;line-height:1.6;margin-top:0.25rem;margin-bottom:0}.accordion-chevron{flex-shrink:0;transition:transform 0.3s ease}.accordion-panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows 0.4s ease}.accordion-panel.expanded{grid-template-rows:1fr}.accordion-panel-inner{overflow:hidden}.accordion-content{padding-top:1rem;font-family:'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;font-size:0.9375rem;line-height:1.6}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}@media (max-width: 768px){.accordion-card{padding:1.25rem}.accordion-icon{width:40px;height:40px;min-width:40px}.accordion-title{font-size:1.125rem}.accordion-header{gap:0.75rem}}h3,p{margin:0}", _e = Ie, Le = class {
|
|
7
7
|
constructor(e) {
|
|
8
|
-
u(this, e), this.accordion =
|
|
8
|
+
u(this, e), this.accordion = k(this, "accordion", 7), this.handleClick = () => {
|
|
9
9
|
var n;
|
|
10
10
|
this.isExpanded = !this.isExpanded, this.toggleIcon = this.isExpanded ? "chevron-down" : "chevron-right", this.accordion.emit(this.isExpanded), F({
|
|
11
11
|
category: "ui-component",
|
|
@@ -19,20 +19,17 @@ const Ie = ":host{display:block;width:100%}.accordion-card{border-radius:16px;pa
|
|
|
19
19
|
}, this.heading = void 0, this.description = void 0, this.variant = "inverse", this.icon = void 0, this.switchBg = !0, this.expanded = !1, this.clampText = !0, this.isExpanded = this.expanded, this.toggleIcon = this.expanded ? "chevron-down" : "chevron-right";
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
const e = [
|
|
23
|
-
|
|
24
|
-
`accordion-card-${this.variant}`
|
|
25
|
-
].join(" ");
|
|
26
|
-
return t("div", { key: "08061b87dfd54b49f8aa782f29e2a9c5c8bcd2ef", class: e }, t("div", { key: "728033232d8e6aa348bc98d028a5bd62d32fd934", class: "accordion-header", onClick: this.handleClick, onKeyDown: this.handleKeyDown, role: "button", tabindex: 0, "aria-expanded": String(this.isExpanded), "aria-controls": "accordionSection" }, this.icon && t("div", { key: "eeb4260c955a2d4394bc3663dc749afc45b6f87f", class: "accordion-icon" }, t("eds-icon-wrapper", { key: "0896625a235bda97a098ac7b9a4ebec00e5fa587", name: this.icon, size: 24 })), t("div", { key: "3e6b85780bc597a84dc0eb5d2526f9e54c16148d", class: "accordion-header-text" }, t("h3", { key: "b5c5c0023bc23dc225183736f02683134a40da93", class: "accordion-title" }, this.heading), this.description && t("p", { key: "eb04c90cef03a838a4f852b988f3a9984e593120", class: `accordion-description ${!this.isExpanded && this.clampText ? "line-clamp-1" : ""}` }, this.description)), t("eds-icon-wrapper", { key: "583d0bcc82a178c2a47eef586aede9c87e8ea456", name: this.toggleIcon, size: 20, class: "accordion-chevron" })), t("section", { key: "8f820377d639ced2d0a4fe505452b6b408640400", id: "accordionSection", "aria-hidden": String(!this.isExpanded), class: `accordion-panel ${this.isExpanded ? "expanded" : ""}` }, t("div", { key: "d41dc9c3ef21f14df3ca25138440356703fa35ed", class: "accordion-panel-inner" }, t("div", { key: "156c3c9b139efcb964525147338ecdeeca538123", class: "accordion-content" }, t("slot", { key: "b19b54c279cca1a32b4ed0f5b0a319d87b7bf937" })))));
|
|
22
|
+
const e = ["accordion-card", `accordion-card-${this.variant}`].join(" ");
|
|
23
|
+
return t("div", { key: "e437239cc58d208a41d178ad843b56b4cf96c868", class: e }, t("div", { key: "d8918b77de629a60332118da38969f237ef5f4a6", class: "accordion-header", onClick: this.handleClick, onKeyDown: this.handleKeyDown, role: "button", tabindex: 0, "aria-expanded": String(this.isExpanded), "aria-controls": "accordionSection" }, this.icon && t("div", { key: "56d74602ae6f5b2246a42047caae30fd7affd5eb", class: "accordion-icon" }, t("eds-icon-wrapper", { key: "91dec34e9bec65648e943203dfbf7a2c2f85a239", name: this.icon, size: 24 })), t("div", { key: "3abdd978e4de24e892fe763a2ad42606915b7136", class: "accordion-header-text" }, t("h3", { key: "7a6e750e6b9462577fd71c4a08d5e029c5c31c17", class: "accordion-title" }, this.heading), this.description && t("p", { key: "1b79cce1a659c8ec48f365c44bbd9593bb11769a", class: `accordion-description ${!this.isExpanded && this.clampText ? "line-clamp-1" : ""}` }, this.description)), t("eds-icon-wrapper", { key: "a911f1daf7776c574ec42a7d007c2c21768d0b05", name: this.toggleIcon, size: 20, class: "accordion-chevron" })), t("section", { key: "fe743b5bffe37fd352d26f3a1660fd0e0a6633a7", id: "accordionSection", "aria-hidden": String(!this.isExpanded), class: `accordion-panel ${this.isExpanded ? "expanded" : ""}` }, t("div", { key: "0d9fc37345deb16c1a5793c7deeb41298c4cf209", class: "accordion-panel-inner" }, t("div", { key: "697c71cdf914948ba9d017a2e92f42ce0e2ffc73", class: "accordion-content" }, t("slot", { key: "156b2c0be11111d3876bdbc1852f51a8b44b0284" })))));
|
|
27
24
|
}
|
|
28
25
|
get el() {
|
|
29
|
-
return
|
|
26
|
+
return w(this);
|
|
30
27
|
}
|
|
31
28
|
};
|
|
32
29
|
Le.style = _e;
|
|
33
|
-
const
|
|
30
|
+
const Me = ":host{display:block;width:100%}*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}p{margin:0}.alert-card{position:relative;border-radius:16px;padding:1rem 1.25rem;display:flex;gap:0.75rem;width:100%;border:1px solid rgba(0, 0, 0, 0.1);overflow:hidden;font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.alert-card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px}.alert-default{background-color:var(--grey-light);color:var(--brand-black)}.alert-default::before{background-color:var(--grey-dark)}.alert-default .alert-icon{color:var(--grey-dark)}.alert-warning{background-color:var(--yellow-200);color:var(--brand-black)}.alert-warning::before{background-color:var(--yellow-600)}.alert-warning .alert-icon{color:var(--yellow-600)}.alert-error{background-color:var(--red-200);color:var(--brand-black)}.alert-error::before{background-color:var(--red-600)}.alert-error .alert-icon{color:var(--red-600)}.alert-success{background-color:var(--brand-green);color:var(--brand-black)}.alert-success::before{background-color:var(--green-700)}.alert-success .alert-icon{color:var(--green-700)}.alert-brand{background-color:var(--brand-black);color:var(--brand-green)}.alert-brand::before{background-color:var(--brand-green)}.alert-brand .alert-icon{color:var(--brand-green)}.alert-brand .alert-dismiss{color:var(--brand-green)}.alert-horizontal{flex-direction:row;align-items:center}.alert-vertical{flex-direction:column;align-items:flex-start}.alert-icon{flex-shrink:0;display:flex;align-items:center;justify-content:center}.alert-body{flex:1;min-width:0}.alert-message{margin:0}.alert-action{flex-shrink:0}.alert-dismiss{flex-shrink:0;display:flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;padding:0.25rem;border-radius:8px;color:inherit;opacity:0.7;transition:opacity 0.2s ease}.alert-dismiss:hover{opacity:1}.alert-dismiss:focus-visible{outline:2px solid var(--brand-green);outline-offset:2px}@media (max-width: 768px){.alert-card{padding:0.75rem 1rem;gap:0.5rem}.alert-horizontal{flex-direction:column;align-items:flex-start}.alert-dismiss{position:absolute;top:0.5rem;right:0.5rem;padding:0.125rem}.alert-card:has(.alert-dismiss){padding-right:2.25rem}}", He = Me, $e = class {
|
|
34
31
|
constructor(e) {
|
|
35
|
-
u(this, e), this.edsalert =
|
|
32
|
+
u(this, e), this.edsalert = k(this, "edsalert", 7), this.edsDismiss = k(this, "edsDismiss", 7), this.message = void 0, this.pressableLabel = void 0, this.pressableUrl = void 0, this.direction = "horizontal", this.intent = "default", this.icon = void 0, this.dismissible = !1, this.withBtn = !1, this.dismissed = !1;
|
|
36
33
|
}
|
|
37
34
|
componentWillLoad() {
|
|
38
35
|
this.withBtn = !!this.pressableLabel;
|
|
@@ -61,7 +58,7 @@ const He = ":host{display:block;width:100%}*,::before,::after{box-sizing:border-
|
|
|
61
58
|
return t("div", { class: `alert-card alert-${e} alert-${this.direction}`, role: "alert", "aria-label": n, "aria-live": e === "error" || e === "warning" ? "assertive" : "polite" }, this.intentIcon && t("div", { class: "alert-icon" }, t("eds-icon-wrapper", { name: this.intentIcon, size: 20 })), t("div", { class: "alert-body" }, this.message ? t("p", { class: "alert-message" }, this.message) : t("div", { class: "alert-message" }, t("slot", null))), this.withBtn && t("div", { class: "alert-action" }, this.pressableUrl ? t("eds-link", { label: this.pressableLabel, url: this.pressableUrl, intent: "strong" }) : t("eds-button", { label: this.pressableLabel, intent: "ghost", onClick: () => this.handleAction() })), this.dismissible && t("button", { class: "alert-dismiss", onClick: () => this.handleDismiss(), "aria-label": "Dismiss alert" }, t("eds-icon-wrapper", { name: "close", size: 20 })));
|
|
62
59
|
}
|
|
63
60
|
get el() {
|
|
64
|
-
return
|
|
61
|
+
return w(this);
|
|
65
62
|
}
|
|
66
63
|
static get watchers() {
|
|
67
64
|
return {
|
|
@@ -69,8 +66,8 @@ const He = ":host{display:block;width:100%}*,::before,::after{box-sizing:border-
|
|
|
69
66
|
};
|
|
70
67
|
}
|
|
71
68
|
};
|
|
72
|
-
|
|
73
|
-
const
|
|
69
|
+
$e.style = He;
|
|
70
|
+
const Be = `::before,
|
|
74
71
|
::after {
|
|
75
72
|
box-sizing: border-box;
|
|
76
73
|
border-width: 0;
|
|
@@ -271,7 +268,7 @@ abbr:where([title]) {
|
|
|
271
268
|
|
|
272
269
|
.bg-gradient-04-bottom {
|
|
273
270
|
background: linear-gradient(to top, #2B69FC, ease-in-out, #E6E6E6);
|
|
274
|
-
}`,
|
|
271
|
+
}`, De = Be, Te = class {
|
|
275
272
|
constructor(e) {
|
|
276
273
|
u(this, e), this.firstName = "User", this.lastName = "Avatar", this.picture = void 0, this.initials = void 0, this.color = "grey";
|
|
277
274
|
}
|
|
@@ -320,8 +317,8 @@ abbr:where([title]) {
|
|
|
320
317
|
return t("div", { key: "36f8cb598e0e53793ce8a49e9e2419f41ba8f160", class: this.containerClasses }, this.picture ? t("eds-img", { src: this.picture, width: 54, height: 54, sizes: "120px", alt: `${this.firstName} ${this.lastName}`, lazyload: !0, withBg: !0 }) : t("abbr", { title: this.computedInitials || `${this.firstName} ${this.lastName}`, class: "!no-underline f-ui-01" }, this.computedInitials));
|
|
321
318
|
}
|
|
322
319
|
};
|
|
323
|
-
|
|
324
|
-
const Ve = ".border-softer{border-color:rgba(0, 0, 0, .1)}.border-default{border-color:var(--brand-black)}.my-16{margin-top:1rem;margin-bottom:1rem}.block{display:block}.w-full{width:100%}.border-t-2{border-top-width:2px}",
|
|
320
|
+
Te.style = De;
|
|
321
|
+
const Ve = ".border-softer{border-color:rgba(0, 0, 0, .1)}.border-default{border-color:var(--brand-black)}.my-16{margin-top:1rem;margin-bottom:1rem}.block{display:block}.w-full{width:100%}.border-t-2{border-top-width:2px}", Oe = Ve, Ne = class {
|
|
325
322
|
constructor(e) {
|
|
326
323
|
u(this, e), this.inverse = !1;
|
|
327
324
|
}
|
|
@@ -329,7 +326,7 @@ const Ve = ".border-softer{border-color:rgba(0, 0, 0, .1)}.border-default{border
|
|
|
329
326
|
return t("hr", { key: "2531c44fa20745f7860e4647f77ffa038a56d832", class: `${this.inverse ? "border-default" : "border-softer"} my-16 inline-block w-full border-t-2` });
|
|
330
327
|
}
|
|
331
328
|
};
|
|
332
|
-
|
|
329
|
+
Ne.style = Oe;
|
|
333
330
|
const Pe = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.hidden{display:none}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.125rem * var(--tw-space-x-reverse));margin-left:calc(0.125rem * calc(1 - var(--tw-space-x-reverse)))}.px-2{padding-left:0.125rem;padding-right:0.125rem}.w-20{width:1.25rem}.w-28{width:1.75rem}.w-32{width:2rem}.w-44{width:2.75rem}.h-20{height:1.25rem}.h-24{height:1.5rem}.h-28{height:1.75rem}.h-32{height:2rem}@media (min-width: 750px){.md\\:block{display:block}}", Re = Pe, je = class {
|
|
334
331
|
constructor(e) {
|
|
335
332
|
u(this, e), this.updateScreenSize = () => {
|
|
@@ -341,7 +338,7 @@ const Pe = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset
|
|
|
341
338
|
* Watches for changes to the `items` prop and parses it.
|
|
342
339
|
*/
|
|
343
340
|
parseItems(e) {
|
|
344
|
-
this.parsedItems =
|
|
341
|
+
this.parsedItems = M(e);
|
|
345
342
|
}
|
|
346
343
|
/**
|
|
347
344
|
* Lifecycle method that runs when the component is about to be loaded.
|
|
@@ -420,7 +417,7 @@ const Pe = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset
|
|
|
420
417
|
})));
|
|
421
418
|
}
|
|
422
419
|
get el() {
|
|
423
|
-
return
|
|
420
|
+
return w(this);
|
|
424
421
|
}
|
|
425
422
|
static get watchers() {
|
|
426
423
|
return {
|
|
@@ -440,33 +437,33 @@ function We() {
|
|
|
440
437
|
for (var e, n, i = 0, r = ""; i < arguments.length; ) (e = arguments[i++]) && (n = pe(e)) && (r && (r += " "), r += n);
|
|
441
438
|
return r;
|
|
442
439
|
}
|
|
443
|
-
const oe = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, se = We,
|
|
440
|
+
const oe = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, se = We, Z = (e, n) => (i) => {
|
|
444
441
|
var r;
|
|
445
442
|
if ((n == null ? void 0 : n.variants) == null) return se(e, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
|
|
446
|
-
const { variants: a, defaultVariants: l } = n, o = Object.keys(a).map((
|
|
447
|
-
const
|
|
448
|
-
if (
|
|
449
|
-
const
|
|
450
|
-
return a[
|
|
451
|
-
}), s = i && Object.entries(i).reduce((
|
|
452
|
-
let [
|
|
453
|
-
return
|
|
454
|
-
}, {}), h = n == null || (r = n.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((
|
|
455
|
-
let { class:
|
|
456
|
-
return Object.entries(
|
|
457
|
-
let [E,
|
|
458
|
-
return Array.isArray(
|
|
443
|
+
const { variants: a, defaultVariants: l } = n, o = Object.keys(a).map((m) => {
|
|
444
|
+
const y = i == null ? void 0 : i[m], A = l == null ? void 0 : l[m];
|
|
445
|
+
if (y === null) return null;
|
|
446
|
+
const H = oe(y) || oe(A);
|
|
447
|
+
return a[m][H];
|
|
448
|
+
}), s = i && Object.entries(i).reduce((m, y) => {
|
|
449
|
+
let [A, H] = y;
|
|
450
|
+
return H === void 0 || (m[A] = H), m;
|
|
451
|
+
}, {}), h = n == null || (r = n.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((m, y) => {
|
|
452
|
+
let { class: A, className: H, ...N } = y;
|
|
453
|
+
return Object.entries(N).every((V) => {
|
|
454
|
+
let [E, S] = V;
|
|
455
|
+
return Array.isArray(S) ? S.includes({
|
|
459
456
|
...l,
|
|
460
457
|
...s
|
|
461
458
|
}[E]) : {
|
|
462
459
|
...l,
|
|
463
460
|
...s
|
|
464
|
-
}[E] ===
|
|
461
|
+
}[E] === S;
|
|
465
462
|
}) ? [
|
|
466
|
-
...
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
] :
|
|
463
|
+
...m,
|
|
464
|
+
A,
|
|
465
|
+
H
|
|
466
|
+
] : m;
|
|
470
467
|
}, []);
|
|
471
468
|
return se(e, o, h, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
|
|
472
469
|
}, qe = `/* ============================================
|
|
@@ -1659,9 +1656,9 @@ button,
|
|
|
1659
1656
|
.md\\:flex {
|
|
1660
1657
|
display: flex;
|
|
1661
1658
|
}
|
|
1662
|
-
}`, Ue = qe,
|
|
1659
|
+
}`, Ue = qe, Ye = class {
|
|
1663
1660
|
constructor(e) {
|
|
1664
|
-
u(this, e), this.button =
|
|
1661
|
+
u(this, e), this.button = Z([
|
|
1665
1662
|
"relative items-center cursor-pointer",
|
|
1666
1663
|
// Brand-green focus-visible outline (rules live in eds-button.css);
|
|
1667
1664
|
// without this class keyboard focus falls back to the browser ring.
|
|
@@ -1683,12 +1680,8 @@ button,
|
|
|
1683
1680
|
brandLight: "bg-brand-light text-default hover:bg-accent hover:text-default aria-disabled:shadow-none",
|
|
1684
1681
|
brandInverse: "bg-accent text-default hover:bg-inverse hover:text-default aria-disabled:shadow-none",
|
|
1685
1682
|
neutral: "bg-darker after:border-softest bg-inverse hover:bg-dark hover:text-light text-inverse aria-disabled:shadow-none",
|
|
1686
|
-
cta: [
|
|
1687
|
-
|
|
1688
|
-
],
|
|
1689
|
-
"cta-brand": [
|
|
1690
|
-
"cta-link-brand !px-0 !py-0 !min-h-0 !h-auto"
|
|
1691
|
-
]
|
|
1683
|
+
cta: ["cta-link !px-0 !py-0 !min-h-0 !h-auto"],
|
|
1684
|
+
"cta-brand": ["cta-link-brand !px-0 !py-0 !min-h-0 !h-auto"]
|
|
1692
1685
|
},
|
|
1693
1686
|
loading: {
|
|
1694
1687
|
true: "pointer-events-none",
|
|
@@ -1837,20 +1830,20 @@ button,
|
|
|
1837
1830
|
iconSmall: this.iconSmall,
|
|
1838
1831
|
fullWidth: this.fullWidth
|
|
1839
1832
|
}), n = this.elementType, i = !this.disabled && !this.loading, r = this.intent === "primary" || this.intent === "secondaryInverse" ? "rgba(255, 255, 255, 0.3)" : "rgba(7, 20, 13, 0.3)", a = this.intent === "primary" || this.intent === "secondaryInverse" ? "#FFFFFF" : "#07140D";
|
|
1840
|
-
return t(
|
|
1833
|
+
return t(Y, { key: "ad9bb3e0343e6c05c8f43ca9dc502ef28aa001d6" }, t(n, { key: "90b51743bb12a5b4f0b309bb9d38932401ff0fa9", tabindex: i ? "0" : "-1", "aria-label": this.label ? void 0 : this.ariaLabel, "aria-disabled": this.disabled || this.loading ? "true" : void 0, "aria-busy": this.loading ? "true" : void 0, disabled: this.elementType === "button" ? this.disabled || this.loading : void 0, role: this.elementType === "a" ? "button" : void 0, class: `${e || ""}`, onClick: (l) => this.handleClick(l), onKeyDown: (l) => this.handleKeyDown(l) }, this.label && t("span", { key: "35c7fa9449b445ef16d1ac77cb3ed8036e857687", class: `${this.loading ? "opacity-0" : ""} ${this.icon && this.intent !== "cta" && this.intent !== "cta-brand" ? this.iconPos === "right" ? this.size === "large" ? "pr-4" : "pr-2" : this.size === "large" ? "pl-4" : "pl-2" : ""}`, "aria-hidden": this.loading ? "true" : void 0 }, this.label), this.loading && t("span", { key: "5a6a5c78568dae1b77433147e1ae04f9139467de", class: "absolute inset-0 flex items-center justify-center", "aria-hidden": "true" }, t("span", { key: "e392714658931a190cbfcae756c16831f69f8f0d", class: "loader", style: {
|
|
1841
1834
|
border: `3px solid ${r}`,
|
|
1842
1835
|
borderBottomColor: a
|
|
1843
|
-
} })), this.icon ? t("eds-icon-wrapper", { name: this.icon, size: 20, "aria-hidden": "true" }) : null));
|
|
1836
|
+
} })), this.icon ? t("eds-icon-wrapper", { name: this.icon, size: 20, "aria-hidden": "true", class: this.loading ? "opacity-0" : "" }) : null));
|
|
1844
1837
|
}
|
|
1845
1838
|
static get delegatesFocus() {
|
|
1846
1839
|
return !0;
|
|
1847
1840
|
}
|
|
1848
1841
|
get el() {
|
|
1849
|
-
return
|
|
1842
|
+
return w(this);
|
|
1850
1843
|
}
|
|
1851
1844
|
};
|
|
1852
|
-
|
|
1853
|
-
const
|
|
1845
|
+
Ye.style = Ue;
|
|
1846
|
+
const Ze = ":host{display:flex;height:100%}.app-card{height:auto;border-radius:16px;padding:1.5rem;transition:all 0.4s ease;display:flex;flex-direction:column;flex-grow:1}.app-card-default{background:var(--brand-black);border:1px solid rgba(0, 0, 0, 0.1)}.app-card-default:hover{background:var(--brand-black);border-color:rgba(0, 255, 157, 0.4);transform:translateY(-4px);box-shadow:0 4px 20px rgba(0, 0, 0, 0.1)}.app-card-default .app-title{color:var(--white)}.app-card-default .app-description{color:var(--grey-light)}.app-card-default .app-tag{background:rgba(255, 255, 255, 0.1);color:var(--white)}.app-card-inverse{background:var(--white);border:1px solid rgba(0, 0, 0, 0.1)}.app-card-inverse:hover{background:var(--white);border-color:rgba(0, 255, 157, 0.4);transform:translateY(-4px);box-shadow:0 4px 20px rgba(0, 0, 0, 0.1)}.app-card-inverse .app-title{color:var(--brand-black)}.app-card-inverse .app-description{color:var(--grey-dark)}.app-card-inverse .app-tag{background:rgba(0, 0, 0, 0.08);color:var(--brand-black)}eds-tag{margin-bottom:1rem}.app-title{font-family:'Inter', var(--f-heading-fontFamily);font-weight:300;font-size:1.75rem;margin-top:0;margin-bottom:1rem;line-height:1.3}.app-description{font-family:'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;font-size:0.9375rem;line-height:1.6;margin-bottom:1.5rem;flex-grow:1}.app-tags{display:flex;gap:0.5rem;flex-wrap:wrap;margin-bottom:1.5rem}.app-tag{padding:0.375rem 0.75rem;border-radius:4px;font-size:0.75rem;font-weight:400}@media (max-width: 768px){.app-card{padding:2rem}.app-title{font-size:1.5rem}}", Ke = Ze, Ge = class {
|
|
1854
1847
|
constructor(e) {
|
|
1855
1848
|
u(this, e), this.category = void 0, this.title = void 0, this.description = void 0, this.tags = [], this.url = void 0, this.linkText = "Explore Components", this.variant = "default";
|
|
1856
1849
|
}
|
|
@@ -1858,17 +1851,14 @@ const Ye = ":host{display:flex;height:100%}.app-card{height:auto;border-radius:1
|
|
|
1858
1851
|
* Parse the tags prop into an array
|
|
1859
1852
|
*/
|
|
1860
1853
|
get parsedTags() {
|
|
1861
|
-
return
|
|
1854
|
+
return M(this.tags);
|
|
1862
1855
|
}
|
|
1863
1856
|
render() {
|
|
1864
|
-
const e = [
|
|
1865
|
-
|
|
1866
|
-
`app-card-${this.variant}`
|
|
1867
|
-
].join(" "), n = this.variant === "default" ? "cta-brand" : "cta", i = this.variant === "default" ? "brand" : "dark";
|
|
1868
|
-
return t("div", { key: "e90fec25a02a9635247da04ca23a932be9cd7ea5", class: e }, this.category && t("eds-tag", { key: "a001a815aa32a96beac3d4af08766479030fe8d4", label: this.category, intent: i, size: "medium" }), t("h3", { key: "10d4532b4fe9b9a92ad24b09634028c583166bb3", class: "app-title" }, this.title), t("p", { key: "de1559913d227ff6b023ecdbc5fea29f66cb01a0", class: "app-description" }, this.description), this.parsedTags && this.parsedTags.length > 0 && t("div", { key: "386a2e72a92ea03c13a4410983b8b5320e83b810", class: "app-tags" }, this.parsedTags.map((r, a) => t("span", { key: a, class: "app-tag" }, r.label))), this.url && t("eds-link", { key: "2c1a3d133a6f04b6a3359a3c8d2f47eb19c75202", label: this.linkText, url: this.url, intent: n, icon: "arrow-right", "icon-pos": "right" }));
|
|
1857
|
+
const e = ["app-card", `app-card-${this.variant}`].join(" "), n = this.variant === "default" ? "cta-brand" : "cta", i = this.variant === "default" ? "brand" : "dark";
|
|
1858
|
+
return t("div", { key: "84aa9bd8ccac7cd163a0295e53610d3f149d2fc7", class: e }, this.category && t("eds-tag", { key: "ff5f5fc550289df7dc13c9d77e9ee318692c54ef", label: this.category, intent: i, size: "medium" }), t("h3", { key: "7f3ed9e3c270cf7c7d99f084cd3f7dac93929676", class: "app-title" }, this.title), t("p", { key: "969ed185ab45832e1e10a5446067f6926864696c", class: "app-description" }, this.description), this.parsedTags && this.parsedTags.length > 0 && t("div", { key: "4a619204bcfe0b85e3e69b58157269f7bed9f44b", class: "app-tags" }, this.parsedTags.map((r, a) => t("span", { key: a, class: "app-tag" }, r.label))), this.url && t("eds-link", { key: "d2f32c5114f60cf2b25e96db84e090d90fe1a9ed", label: this.linkText, url: this.url, intent: n, icon: "arrow-right", "icon-pos": "right" }));
|
|
1869
1859
|
}
|
|
1870
1860
|
get el() {
|
|
1871
|
-
return
|
|
1861
|
+
return w(this);
|
|
1872
1862
|
}
|
|
1873
1863
|
};
|
|
1874
1864
|
Ge.style = Ke;
|
|
@@ -1884,17 +1874,14 @@ const Xe = ":host{display:flex;height:100%}.cta-container{height:auto;text-align
|
|
|
1884
1874
|
* Parse the links prop into an array
|
|
1885
1875
|
*/
|
|
1886
1876
|
get parsedLinks() {
|
|
1887
|
-
return
|
|
1877
|
+
return M(this.links);
|
|
1888
1878
|
}
|
|
1889
1879
|
render() {
|
|
1890
|
-
const e = [
|
|
1891
|
-
|
|
1892
|
-
`cta-container-${this.variant}`
|
|
1893
|
-
].join(" "), n = this.variant === "default" ? "brandInverse" : "brand", i = this.variant === "default" ? "secondaryInverse" : "secondary", r = this.variant === "default" ? "cta" : "underline";
|
|
1894
|
-
return t("div", { key: "ee2163e6096ad05dc55ac40c6626236723a23b72", class: e }, t("div", { key: "f51481133015ef5eafce48bab525cf166c000e3a", class: "cta-content" }, t("h2", { key: "577441d8bc7cb4c906408faf995e106ef2779e8b", class: "cta-title", innerHTML: this.title }), t("p", { key: "b8cbcf891b95f82c3dd57f1db9335f55c1d7162c", class: "cta-description" }, this.description), t("div", { key: "f167262a521b9e15176a4fc65e3e45a8cf24feb1", class: "cta-actions" }, t("slot", { key: "c114de9b72bf56a2bda67d21aab0a1a24efba2e4", name: "actions" }, t("eds-button", { key: "75c4508fad3377ae1788bca7cda5f8315c8301a3", label: this.primaryButtonText, intent: n, icon: "arrow-right", "icon-pos": "right", size: "large", triggerClick: this.handlePrimaryClick }), this.secondaryButtonText && t("eds-button", { key: "2c6de6b1032c62619b7225d3f7cbc04617fca465", label: this.secondaryButtonText, intent: i, size: "large", triggerClick: this.handleSecondaryClick }))), this.parsedLinks && this.parsedLinks.length > 0 && t("div", { key: "a78f81632c85cb729d738b0bb533d260bc7e3727", class: "cta-links" }, this.parsedLinks.map((a, l) => t("eds-link", { key: l, label: a.label, url: a.url, intent: r })))));
|
|
1880
|
+
const e = ["cta-container", `cta-container-${this.variant}`].join(" "), n = this.variant === "default" ? "brandInverse" : "brand", i = this.variant === "default" ? "secondaryInverse" : "secondary", r = this.variant === "default" ? "cta" : "underline";
|
|
1881
|
+
return t("div", { key: "6a3ccb2ee1f3ad3cc7c3fc0c54381284a9a5190b", class: e }, t("div", { key: "2a6ad1f084c3e7afea0a11a35c8b5e20d3a2c7ee", class: "cta-content" }, t("h2", { key: "157f32d98283cf59a16f73def69974238e4dc938", class: "cta-title", innerHTML: this.title }), t("p", { key: "660beebc8c10f93a7052c23e5eacb2481fb3bcd7", class: "cta-description" }, this.description), t("div", { key: "e7610c3e2738aace2ac921304c6b2a6e5f5a5952", class: "cta-actions" }, t("slot", { key: "75113d5cc2d10aaaa2d6b7b4f0f16ea916a5a1ae", name: "actions" }, t("eds-button", { key: "140823c45ce817555ebe0969f1f07787b5d40819", label: this.primaryButtonText, intent: n, icon: "arrow-right", "icon-pos": "right", size: "large", triggerClick: this.handlePrimaryClick }), this.secondaryButtonText && t("eds-button", { key: "8b2cd73793a85d6da3c138459f9ab864e9f2b9ab", label: this.secondaryButtonText, intent: i, size: "large", triggerClick: this.handleSecondaryClick }))), this.parsedLinks && this.parsedLinks.length > 0 && t("div", { key: "10f5ebc9ed558a29e166325ff143f79b5324f130", class: "cta-links" }, this.parsedLinks.map((a, l) => t("eds-link", { key: l, label: a.label, url: a.url, intent: r })))));
|
|
1895
1882
|
}
|
|
1896
1883
|
get el() {
|
|
1897
|
-
return
|
|
1884
|
+
return w(this);
|
|
1898
1885
|
}
|
|
1899
1886
|
};
|
|
1900
1887
|
Qe.style = Je;
|
|
@@ -1915,14 +1902,11 @@ const rn = ":host{display:flex;height:100%}.feature-card{height:auto;border-radi
|
|
|
1915
1902
|
u(this, e), this.icon = void 0, this.title = void 0, this.description = void 0, this.url = void 0, this.linkText = "Learn more", this.variant = "default";
|
|
1916
1903
|
}
|
|
1917
1904
|
render() {
|
|
1918
|
-
const e = [
|
|
1919
|
-
|
|
1920
|
-
`feature-card-${this.variant}`
|
|
1921
|
-
].join(" ");
|
|
1922
|
-
return t("div", { key: "f76c056bbca7b38892cdecf56291fe3882c9e3bb", class: e }, this.icon && t("div", { key: "9e22a5f6c5e30b55c4bac84f5f11f773b1b37ab9", class: "feature-icon" }, t("eds-icon-wrapper", { key: "64154c38f3655cb55f14c2963a62ead699d8a533", name: this.icon, size: 24 })), t("h3", { key: "99ed95a90796dbb6baa3f73cb2830fcd0954328c", class: "feature-title" }, this.title), t("p", { key: "f91109a10f62a58d8b650987fbbf1a5a4f68beaa", class: "feature-description" }, this.description), this.url && t("eds-link", { key: "b94b57e5385da9db54a3767d0413349000add755", label: this.linkText, url: this.url, intent: "cta", icon: "arrow-right", "icon-pos": "right" }));
|
|
1905
|
+
const e = ["feature-card", `feature-card-${this.variant}`].join(" ");
|
|
1906
|
+
return t("div", { key: "585107ac2cfc2ea55fc560d2da9e6bfc0595b5ad", class: e }, this.icon && t("div", { key: "6dd26bd834d446872d0ab27e8a26e08488507686", class: "feature-icon" }, t("eds-icon-wrapper", { key: "e5502241c155784370a0e5f214b0bfd88aa634a7", name: this.icon, size: 24 })), t("h3", { key: "974e30754eb9d4aa37beddc7ed065228df704009", class: "feature-title" }, this.title), t("p", { key: "605f476de2001a1b85ec95b5c11eaa8a3cfcb9f3", class: "feature-description" }, this.description), this.url && t("eds-link", { key: "5ee756a958973fc4f7daf6e0bdad4e42179becb3", label: this.linkText, url: this.url, intent: "cta", icon: "arrow-right", "icon-pos": "right" }));
|
|
1923
1907
|
}
|
|
1924
1908
|
get el() {
|
|
1925
|
-
return
|
|
1909
|
+
return w(this);
|
|
1926
1910
|
}
|
|
1927
1911
|
};
|
|
1928
1912
|
ln.style = an;
|
|
@@ -1942,7 +1926,7 @@ const on = ".h-300{height:300px}.h-auto{height:auto}:host{display:flex;height:10
|
|
|
1942
1926
|
* @returns {any[]} Array of parsed link objects
|
|
1943
1927
|
*/
|
|
1944
1928
|
get parsedTags() {
|
|
1945
|
-
return
|
|
1929
|
+
return M(this.tags);
|
|
1946
1930
|
}
|
|
1947
1931
|
articleClasses() {
|
|
1948
1932
|
let e = "bg-strongest";
|
|
@@ -1975,10 +1959,10 @@ const on = ".h-300{height:300px}.h-auto{height:auto}:host{display:flex;height:10
|
|
|
1975
1959
|
this.isHovered = !1;
|
|
1976
1960
|
}
|
|
1977
1961
|
render() {
|
|
1978
|
-
return t("article", { key: "
|
|
1962
|
+
return t("article", { key: "3757ce9c894928dc158e920f10fb5ffdc46a1f8d", class: this.articleClasses(), onClick: this.url ? () => this.handleClick() : void 0, onMouseEnter: this.url ? () => this.handleMouseEnter() : void 0, onMouseLeave: this.url ? () => this.handleMouseLeave() : void 0 }, this.icon && t("div", { key: "70683a1435c967b26f1d8eae69b1aaccb29e0a75", class: "card-icon-wrapper" }, t("eds-icon-wrapper", { key: "74386a2045b07aa177cd18b6c10f99cca870d228", name: this.icon, size: 32 })), t("div", { key: "38bfc9f2895eba37ced45b8cb8ec3e65bdae559e", class: "p-12 flex flex-col grow" }, this.parsedTags && this.parsedTags.length > 0 && t("div", { key: "33b736039f478cbdffd3322b2d2bb60754318140", class: "flex mb-12 gap-x-4" }, this.parsedTags.map((e, n) => t("eds-tag", { key: n, intent: e.intent, label: e.label, size: e.size }))), t("eds-card-title", { key: "57b16d2c6d579b143bb91af377bf6e8dc161b210", title: this.title, url: this.url, intent: this.intent, size: this.titleSize }), this.description && t("div", { key: "7fa96262badff009bbeaf21c200a0c49413ec37d", class: "mt-8" }, this.description && t("eds-card-desc", { key: "2a4381f7f709774591c944308f033ef49d59cf8d", "truncate-lines": "3", description: this.description, intent: this.intent })), t("slot", { key: "bba602658c39a0332c9a1cf65b5c3b5f614d7bb5", name: "card" }), this.url && t("div", { key: "c14cc16acd3d000cb550a3d8fa01eaf52da70893", class: `flex items-center justify-between mt-auto pt-16 ${this.getLearnMoreColor()}` }, t("span", { key: "66b50d088e275373a4368962f70396342f0e0353", class: "f-ui-01" }, "Learn more"), t("eds-icon-wrapper", { key: "f2de3d43d1965815d24455b2c2b0a96f5feb64a1", name: this.isHovered ? "arrow-right" : "arrow-up-right", size: 32 }))));
|
|
1979
1963
|
}
|
|
1980
1964
|
get el() {
|
|
1981
|
-
return
|
|
1965
|
+
return w(this);
|
|
1982
1966
|
}
|
|
1983
1967
|
};
|
|
1984
1968
|
dn.style = sn;
|
|
@@ -1990,7 +1974,7 @@ const cn = ":host{display:flex;height:100%}.hero-card{height:auto;position:relat
|
|
|
1990
1974
|
* Parse the tags prop into an array
|
|
1991
1975
|
*/
|
|
1992
1976
|
get parsedTags() {
|
|
1993
|
-
return
|
|
1977
|
+
return M(this.tags);
|
|
1994
1978
|
}
|
|
1995
1979
|
handleClick() {
|
|
1996
1980
|
var e;
|
|
@@ -2003,15 +1987,11 @@ const cn = ":host{display:flex;height:100%}.hero-card{height:auto;position:relat
|
|
|
2003
1987
|
}), window.location.href = this.url);
|
|
2004
1988
|
}
|
|
2005
1989
|
render() {
|
|
2006
|
-
const e = [
|
|
2007
|
-
|
|
2008
|
-
`hero-card-${this.variant}`,
|
|
2009
|
-
this.url ? "hero-card-clickable" : ""
|
|
2010
|
-
].filter(Boolean).join(" ");
|
|
2011
|
-
return t("div", { key: "c92f2acc8065b4142b28ca213abbb646e61f44fc", class: e, onClick: () => this.handleClick() }, t("div", { key: "38b8ec832d05a4891646ac31f24d32f62c5ac2e1", class: "card-category" }, this.category), t("div", { key: "d356e4651ed9d136c72c519ecb9b484570c9b3be", class: "card-title" }, this.title), this.description && t("div", { key: "52afdf7988667f73d8725e6a5f5b7816d4b38b30", class: "card-description" }, this.description), this.parsedTags && this.parsedTags.length > 0 && t("div", { key: "a50fb41278d3b98da7054e0bee52d2a98ab5d8f3", class: "card-tags" }, this.parsedTags.map((n, i) => t("span", { key: i, class: "card-tag" }, n.label))));
|
|
1990
|
+
const e = ["hero-card", `hero-card-${this.variant}`, this.url ? "hero-card-clickable" : ""].filter(Boolean).join(" ");
|
|
1991
|
+
return t("div", { key: "c5b0745da99444ae9981161910e7248d50865d6c", class: e, onClick: () => this.handleClick() }, t("div", { key: "adb890d7bd56faff4bdeaea9a1550209a8e9847f", class: "card-category" }, this.category), t("div", { key: "c6d68b85a94c753e383f0dc92709cdbb859a9400", class: "card-title" }, this.title), this.description && t("div", { key: "47d880f01f9e0d3feaa46bc3310e1018b71eb5da", class: "card-description" }, this.description), this.parsedTags && this.parsedTags.length > 0 && t("div", { key: "8f1060a78bebd9def4ac7a1e6ba79a12094363e0", class: "card-tags" }, this.parsedTags.map((n, i) => t("span", { key: i, class: "card-tag" }, n.label))));
|
|
2012
1992
|
}
|
|
2013
1993
|
get el() {
|
|
2014
|
-
return
|
|
1994
|
+
return w(this);
|
|
2015
1995
|
}
|
|
2016
1996
|
};
|
|
2017
1997
|
gn.style = hn;
|
|
@@ -2030,19 +2010,15 @@ const fn = ":host{display:flex;height:100%}.stat-card{height:auto;border-radius:
|
|
|
2030
2010
|
}), window.location.href = this.url);
|
|
2031
2011
|
}
|
|
2032
2012
|
render() {
|
|
2033
|
-
const e = [
|
|
2034
|
-
|
|
2035
|
-
`stat-card-${this.variant}`,
|
|
2036
|
-
this.url ? "stat-card-clickable" : ""
|
|
2037
|
-
].filter(Boolean).join(" ");
|
|
2038
|
-
return t("div", { key: "f1dadeadd1d893b7a33aa92772baf7245954f6e7", class: e, onClick: () => this.handleClick() }, t("div", { key: "6adb8cc68740cd2dabf0bacf0af446e1499171a8", class: "stat-number" }, this.number), t("div", { key: "adc7a8ffd44bceda51fcb98f68cfc8d7e454db5f", class: "stat-label" }, this.label), this.description && t("div", { key: "f70549244277e2c08c7bd94a1d297c00655faff5", class: "stat-description" }, this.description));
|
|
2013
|
+
const e = ["stat-card", `stat-card-${this.variant}`, this.url ? "stat-card-clickable" : ""].filter(Boolean).join(" ");
|
|
2014
|
+
return t("div", { key: "0c4dcd6130ae23813c7decf3dd6d3ce465a9b743", class: e, onClick: () => this.handleClick() }, t("div", { key: "8c787c4ed6e96c9c0403a119edc534b8698e4296", class: "stat-number" }, this.number), t("div", { key: "7d86e9731cf43d3ffa923bdf27403ba34ab4dc0a", class: "stat-label" }, this.label), this.description && t("div", { key: "aaf9942a61087f46dc883d64184e6b33a4cb4d71", class: "stat-description" }, this.description));
|
|
2039
2015
|
}
|
|
2040
2016
|
get el() {
|
|
2041
|
-
return
|
|
2017
|
+
return w(this);
|
|
2042
2018
|
}
|
|
2043
2019
|
};
|
|
2044
2020
|
pn.style = bn;
|
|
2045
|
-
const
|
|
2021
|
+
const mn = "a{all:unset;display:inline;color:inherit;text-decoration:none;cursor:pointer}h1,h2,h3,h4,h5,h6{margin:0}.f-display-02{font-family:var(--f-display-02-fontFamily);font-weight:var(--f-display-02-fontWeight);font-size:var(--f-display-02-fontSize);line-height:var(--f-display-02-lineHeight);letter-spacing:var(--f-display-02-letterSpacing)}.f-heading-02{font-family:var(--f-heading-02-fontFamily);font-weight:var(--f-heading-02-fontWeight);font-size:var(--f-heading-02-fontSize);line-height:var(--f-heading-02-lineHeight);letter-spacing:var(--f-heading-02-letterSpacing)}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.font-semibold{font-weight:600}.break-words{overflow-wrap:break-word}.after\\:absolute::after{position:absolute}.after\\:inset-0::after{inset:0rem}.after\\:z-10::after{z-index:10}.after\\:content-\\[\\'\\'\\]::after{--tw-content:'';content:var(--tw-content)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.text-default{color:var(--brand-black)}.text-inverse{color:var(--white)}.cursor-pointer{cursor:pointer}", un = mn, xn = class {
|
|
2046
2022
|
constructor(e) {
|
|
2047
2023
|
u(this, e), this.url = void 0, this.externalLink = !1, this.title = void 0, this.intent = "secondary", this.size = "large";
|
|
2048
2024
|
}
|
|
@@ -2066,8 +2042,8 @@ const un = "a{all:unset;display:inline;color:inherit;text-decoration:none;cursor
|
|
|
2066
2042
|
return this.url ? t("span", { class: n }, t("a", { class: `break-words after:absolute after:inset-0 after:z-10 after:content-[''] focus:outline-none ${e} cursor-pointer`, href: this.url, target: this.externalLink ? "_blank" : void 0, rel: this.externalLink ? "noopener noreferrer" : void 0 }, this.title)) : t("span", { class: `${n} ${e} break-words` }, this.title);
|
|
2067
2043
|
}
|
|
2068
2044
|
};
|
|
2069
|
-
xn.style =
|
|
2070
|
-
var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {},
|
|
2045
|
+
xn.style = un;
|
|
2046
|
+
var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, me = { exports: {} };
|
|
2071
2047
|
(function(e) {
|
|
2072
2048
|
var n = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
|
2073
2049
|
/**
|
|
@@ -2184,8 +2160,8 @@ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2184
2160
|
return g[p];
|
|
2185
2161
|
b = /** @type {Record<string, any>} */
|
|
2186
2162
|
{}, g[p] = b;
|
|
2187
|
-
for (var
|
|
2188
|
-
d.hasOwnProperty(
|
|
2163
|
+
for (var v in d)
|
|
2164
|
+
d.hasOwnProperty(v) && (b[v] = c(d[v], g));
|
|
2189
2165
|
return (
|
|
2190
2166
|
/** @type {any} */
|
|
2191
2167
|
b
|
|
@@ -2193,8 +2169,8 @@ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2193
2169
|
case "Array":
|
|
2194
2170
|
return p = s.util.objId(d), g[p] ? g[p] : (b = [], g[p] = b, /** @type {Array} */
|
|
2195
2171
|
/** @type {any} */
|
|
2196
|
-
d.forEach(function(
|
|
2197
|
-
b[
|
|
2172
|
+
d.forEach(function(z, x) {
|
|
2173
|
+
b[x] = c(z, g);
|
|
2198
2174
|
}), /** @type {any} */
|
|
2199
2175
|
b);
|
|
2200
2176
|
default:
|
|
@@ -2414,28 +2390,28 @@ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2414
2390
|
insertBefore: function(c, d, g, b) {
|
|
2415
2391
|
b = b || /** @type {any} */
|
|
2416
2392
|
s.languages;
|
|
2417
|
-
var p = b[c],
|
|
2418
|
-
for (var
|
|
2419
|
-
if (p.hasOwnProperty(
|
|
2420
|
-
if (
|
|
2421
|
-
for (var
|
|
2422
|
-
g.hasOwnProperty(
|
|
2423
|
-
g.hasOwnProperty(
|
|
2393
|
+
var p = b[c], v = {};
|
|
2394
|
+
for (var z in p)
|
|
2395
|
+
if (p.hasOwnProperty(z)) {
|
|
2396
|
+
if (z == d)
|
|
2397
|
+
for (var x in g)
|
|
2398
|
+
g.hasOwnProperty(x) && (v[x] = g[x]);
|
|
2399
|
+
g.hasOwnProperty(z) || (v[z] = p[z]);
|
|
2424
2400
|
}
|
|
2425
|
-
var
|
|
2426
|
-
return b[c] =
|
|
2427
|
-
|
|
2428
|
-
}),
|
|
2401
|
+
var C = b[c];
|
|
2402
|
+
return b[c] = v, s.languages.DFS(s.languages, function(_, D) {
|
|
2403
|
+
D === C && _ != c && (this[_] = v);
|
|
2404
|
+
}), v;
|
|
2429
2405
|
},
|
|
2430
2406
|
// Traverse a language definition with Depth First Search
|
|
2431
2407
|
DFS: function c(d, g, b, p) {
|
|
2432
2408
|
p = p || {};
|
|
2433
|
-
var
|
|
2434
|
-
for (var
|
|
2435
|
-
if (d.hasOwnProperty(
|
|
2436
|
-
g.call(d,
|
|
2437
|
-
var
|
|
2438
|
-
|
|
2409
|
+
var v = s.util.objId;
|
|
2410
|
+
for (var z in d)
|
|
2411
|
+
if (d.hasOwnProperty(z)) {
|
|
2412
|
+
g.call(d, z, d[z], b || z);
|
|
2413
|
+
var x = d[z], C = s.util.type(x);
|
|
2414
|
+
C === "Object" && !p[v(x)] ? (p[v(x)] = !0, c(x, g, null, p)) : C === "Array" && !p[v(x)] && (p[v(x)] = !0, c(x, g, z, p));
|
|
2439
2415
|
}
|
|
2440
2416
|
}
|
|
2441
2417
|
},
|
|
@@ -2477,8 +2453,8 @@ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2477
2453
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
2478
2454
|
};
|
|
2479
2455
|
s.hooks.run("before-highlightall", b), b.elements = Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)), s.hooks.run("before-all-elements-highlight", b);
|
|
2480
|
-
for (var p = 0,
|
|
2481
|
-
s.highlightElement(
|
|
2456
|
+
for (var p = 0, v; v = b.elements[p++]; )
|
|
2457
|
+
s.highlightElement(v, d === !0, b.callback);
|
|
2482
2458
|
},
|
|
2483
2459
|
/**
|
|
2484
2460
|
* Highlights the code inside a single element.
|
|
@@ -2511,36 +2487,36 @@ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2511
2487
|
highlightElement: function(c, d, g) {
|
|
2512
2488
|
var b = s.util.getLanguage(c), p = s.languages[b];
|
|
2513
2489
|
s.util.setLanguage(c, b);
|
|
2514
|
-
var
|
|
2515
|
-
|
|
2516
|
-
var
|
|
2490
|
+
var v = c.parentElement;
|
|
2491
|
+
v && v.nodeName.toLowerCase() === "pre" && s.util.setLanguage(v, b);
|
|
2492
|
+
var z = c.textContent, x = {
|
|
2517
2493
|
element: c,
|
|
2518
2494
|
language: b,
|
|
2519
2495
|
grammar: p,
|
|
2520
|
-
code:
|
|
2496
|
+
code: z
|
|
2521
2497
|
};
|
|
2522
|
-
function
|
|
2523
|
-
|
|
2498
|
+
function C(D) {
|
|
2499
|
+
x.highlightedCode = D, s.hooks.run("before-insert", x), x.element.innerHTML = x.highlightedCode, s.hooks.run("after-highlight", x), s.hooks.run("complete", x), g && g.call(x.element);
|
|
2524
2500
|
}
|
|
2525
|
-
if (s.hooks.run("before-sanity-check",
|
|
2526
|
-
s.hooks.run("complete",
|
|
2501
|
+
if (s.hooks.run("before-sanity-check", x), v = x.element.parentElement, v && v.nodeName.toLowerCase() === "pre" && !v.hasAttribute("tabindex") && v.setAttribute("tabindex", "0"), !x.code) {
|
|
2502
|
+
s.hooks.run("complete", x), g && g.call(x.element);
|
|
2527
2503
|
return;
|
|
2528
2504
|
}
|
|
2529
|
-
if (s.hooks.run("before-highlight",
|
|
2530
|
-
|
|
2505
|
+
if (s.hooks.run("before-highlight", x), !x.grammar) {
|
|
2506
|
+
C(s.util.encode(x.code));
|
|
2531
2507
|
return;
|
|
2532
2508
|
}
|
|
2533
2509
|
if (d && r.Worker) {
|
|
2534
|
-
var
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
},
|
|
2538
|
-
language:
|
|
2539
|
-
code:
|
|
2510
|
+
var _ = new Worker(s.filename);
|
|
2511
|
+
_.onmessage = function(D) {
|
|
2512
|
+
C(D.data);
|
|
2513
|
+
}, _.postMessage(JSON.stringify({
|
|
2514
|
+
language: x.language,
|
|
2515
|
+
code: x.code,
|
|
2540
2516
|
immediateClose: !0
|
|
2541
2517
|
}));
|
|
2542
2518
|
} else
|
|
2543
|
-
|
|
2519
|
+
C(s.highlight(x.code, x.grammar, x.language));
|
|
2544
2520
|
},
|
|
2545
2521
|
/**
|
|
2546
2522
|
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
@@ -2603,8 +2579,8 @@ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2603
2579
|
d[b] = g[b];
|
|
2604
2580
|
delete d.rest;
|
|
2605
2581
|
}
|
|
2606
|
-
var p = new
|
|
2607
|
-
return
|
|
2582
|
+
var p = new A();
|
|
2583
|
+
return H(p, p.head, c), y(c, p, d, p.head, 0), V(p);
|
|
2608
2584
|
},
|
|
2609
2585
|
/**
|
|
2610
2586
|
* @namespace
|
|
@@ -2656,8 +2632,8 @@ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2656
2632
|
return d;
|
|
2657
2633
|
if (Array.isArray(d)) {
|
|
2658
2634
|
var b = "";
|
|
2659
|
-
return d.forEach(function(
|
|
2660
|
-
b += c(
|
|
2635
|
+
return d.forEach(function(C) {
|
|
2636
|
+
b += c(C, g);
|
|
2661
2637
|
}), b;
|
|
2662
2638
|
}
|
|
2663
2639
|
var p = {
|
|
@@ -2667,80 +2643,80 @@ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2667
2643
|
classes: ["token", d.type],
|
|
2668
2644
|
attributes: {},
|
|
2669
2645
|
language: g
|
|
2670
|
-
},
|
|
2671
|
-
|
|
2672
|
-
var
|
|
2673
|
-
for (var
|
|
2674
|
-
|
|
2675
|
-
return "<" + p.tag + ' class="' + p.classes.join(" ") + '"' +
|
|
2646
|
+
}, v = d.alias;
|
|
2647
|
+
v && (Array.isArray(v) ? Array.prototype.push.apply(p.classes, v) : p.classes.push(v)), s.hooks.run("wrap", p);
|
|
2648
|
+
var z = "";
|
|
2649
|
+
for (var x in p.attributes)
|
|
2650
|
+
z += " " + x + '="' + (p.attributes[x] || "").replace(/"/g, """) + '"';
|
|
2651
|
+
return "<" + p.tag + ' class="' + p.classes.join(" ") + '"' + z + ">" + p.content + "</" + p.tag + ">";
|
|
2676
2652
|
};
|
|
2677
|
-
function
|
|
2653
|
+
function m(c, d, g, b) {
|
|
2678
2654
|
c.lastIndex = d;
|
|
2679
2655
|
var p = c.exec(g);
|
|
2680
2656
|
if (p && b && p[1]) {
|
|
2681
|
-
var
|
|
2682
|
-
p.index +=
|
|
2657
|
+
var v = p[1].length;
|
|
2658
|
+
p.index += v, p[0] = p[0].slice(v);
|
|
2683
2659
|
}
|
|
2684
2660
|
return p;
|
|
2685
2661
|
}
|
|
2686
|
-
function
|
|
2687
|
-
for (var
|
|
2688
|
-
if (!(!g.hasOwnProperty(
|
|
2689
|
-
var
|
|
2690
|
-
|
|
2691
|
-
for (var
|
|
2692
|
-
if (
|
|
2662
|
+
function y(c, d, g, b, p, v) {
|
|
2663
|
+
for (var z in g)
|
|
2664
|
+
if (!(!g.hasOwnProperty(z) || !g[z])) {
|
|
2665
|
+
var x = g[z];
|
|
2666
|
+
x = Array.isArray(x) ? x : [x];
|
|
2667
|
+
for (var C = 0; C < x.length; ++C) {
|
|
2668
|
+
if (v && v.cause == z + "," + C)
|
|
2693
2669
|
return;
|
|
2694
|
-
var
|
|
2695
|
-
if (ie && !
|
|
2696
|
-
var ze =
|
|
2697
|
-
|
|
2670
|
+
var _ = x[C], D = _.inside, te = !!_.lookbehind, ie = !!_.greedy, ke = _.alias;
|
|
2671
|
+
if (ie && !_.pattern.global) {
|
|
2672
|
+
var ze = _.pattern.toString().match(/[imsuy]*$/)[0];
|
|
2673
|
+
_.pattern = RegExp(_.pattern.source, ze + "g");
|
|
2698
2674
|
}
|
|
2699
|
-
for (var re =
|
|
2700
|
-
var
|
|
2675
|
+
for (var re = _.pattern || _, L = b.next, B = p; L !== d.tail && !(v && B >= v.reach); B += L.value.length, L = L.next) {
|
|
2676
|
+
var O = L.value;
|
|
2701
2677
|
if (d.length > c.length)
|
|
2702
2678
|
return;
|
|
2703
|
-
if (!(
|
|
2704
|
-
var j = 1,
|
|
2679
|
+
if (!(O instanceof h)) {
|
|
2680
|
+
var j = 1, $;
|
|
2705
2681
|
if (ie) {
|
|
2706
|
-
if (
|
|
2682
|
+
if ($ = m(re, B, c, te), !$ || $.index >= c.length)
|
|
2707
2683
|
break;
|
|
2708
|
-
var W =
|
|
2709
|
-
for (
|
|
2710
|
-
|
|
2711
|
-
if (
|
|
2684
|
+
var W = $.index, Se = $.index + $[0].length, T = B;
|
|
2685
|
+
for (T += L.value.length; W >= T; )
|
|
2686
|
+
L = L.next, T += L.value.length;
|
|
2687
|
+
if (T -= L.value.length, B = T, L.value instanceof h)
|
|
2712
2688
|
continue;
|
|
2713
|
-
for (var P =
|
|
2714
|
-
j++,
|
|
2715
|
-
j--,
|
|
2716
|
-
} else if (
|
|
2689
|
+
for (var P = L; P !== d.tail && (T < Se || typeof P.value == "string"); P = P.next)
|
|
2690
|
+
j++, T += P.value.length;
|
|
2691
|
+
j--, O = c.slice(B, T), $.index -= B;
|
|
2692
|
+
} else if ($ = m(re, 0, O, te), !$)
|
|
2717
2693
|
continue;
|
|
2718
|
-
var W =
|
|
2719
|
-
|
|
2720
|
-
var U =
|
|
2721
|
-
K && (U =
|
|
2722
|
-
var Ce = new h(
|
|
2723
|
-
if (
|
|
2694
|
+
var W = $.index, q = $[0], K = O.slice(0, W), ae = O.slice(W + q.length), G = B + O.length;
|
|
2695
|
+
v && G > v.reach && (v.reach = G);
|
|
2696
|
+
var U = L.prev;
|
|
2697
|
+
K && (U = H(d, U, K), B += K.length), N(d, U, j);
|
|
2698
|
+
var Ce = new h(z, D ? s.tokenize(q, D) : q, ke, q);
|
|
2699
|
+
if (L = H(d, U, Ce), ae && H(d, L, ae), j > 1) {
|
|
2724
2700
|
var X = {
|
|
2725
|
-
cause:
|
|
2701
|
+
cause: z + "," + C,
|
|
2726
2702
|
reach: G
|
|
2727
2703
|
};
|
|
2728
|
-
|
|
2704
|
+
y(c, d, g, L.prev, B, X), v && X.reach > v.reach && (v.reach = X.reach);
|
|
2729
2705
|
}
|
|
2730
2706
|
}
|
|
2731
2707
|
}
|
|
2732
2708
|
}
|
|
2733
2709
|
}
|
|
2734
2710
|
}
|
|
2735
|
-
function
|
|
2711
|
+
function A() {
|
|
2736
2712
|
var c = { value: null, prev: null, next: null }, d = { value: null, prev: c, next: null };
|
|
2737
2713
|
c.next = d, this.head = c, this.tail = d, this.length = 0;
|
|
2738
2714
|
}
|
|
2739
|
-
function
|
|
2715
|
+
function H(c, d, g) {
|
|
2740
2716
|
var b = d.next, p = { value: g, prev: d, next: b };
|
|
2741
2717
|
return d.next = p, b.prev = p, c.length++, p;
|
|
2742
2718
|
}
|
|
2743
|
-
function
|
|
2719
|
+
function N(c, d, g) {
|
|
2744
2720
|
for (var b = d.next, p = 0; p < g && b !== c.tail; p++)
|
|
2745
2721
|
b = b.next;
|
|
2746
2722
|
d.next = b, b.prev = d, c.length -= p;
|
|
@@ -2757,12 +2733,12 @@ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2757
2733
|
}, !1)), s;
|
|
2758
2734
|
var E = s.util.currentScript();
|
|
2759
2735
|
E && (s.filename = E.src, E.hasAttribute("data-manual") && (s.manual = !0));
|
|
2760
|
-
function
|
|
2736
|
+
function S() {
|
|
2761
2737
|
s.manual || s.highlightAll();
|
|
2762
2738
|
}
|
|
2763
2739
|
if (!s.manual) {
|
|
2764
|
-
var
|
|
2765
|
-
|
|
2740
|
+
var I = document.readyState;
|
|
2741
|
+
I === "loading" || I === "interactive" && E && E.defer ? document.addEventListener("DOMContentLoaded", S) : window.requestAnimationFrame ? window.requestAnimationFrame(S) : window.setTimeout(S, 16);
|
|
2766
2742
|
}
|
|
2767
2743
|
return s;
|
|
2768
2744
|
}(n);
|
|
@@ -3144,8 +3120,8 @@ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
3144
3120
|
if (typeof i > "u" || typeof document > "u")
|
|
3145
3121
|
return;
|
|
3146
3122
|
Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
|
|
3147
|
-
var r = "Loading…", a = function(E,
|
|
3148
|
-
return "✖ Error " + E + " while fetching file: " +
|
|
3123
|
+
var r = "Loading…", a = function(E, S) {
|
|
3124
|
+
return "✖ Error " + E + " while fetching file: " + S;
|
|
3149
3125
|
}, l = "✖ Error: File does not exist or is empty", o = {
|
|
3150
3126
|
js: "javascript",
|
|
3151
3127
|
py: "python",
|
|
@@ -3156,52 +3132,52 @@ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
3156
3132
|
bat: "batch",
|
|
3157
3133
|
h: "c",
|
|
3158
3134
|
tex: "latex"
|
|
3159
|
-
}, s = "data-src-status", h = "loading",
|
|
3160
|
-
function
|
|
3135
|
+
}, s = "data-src-status", h = "loading", m = "loaded", y = "failed", A = "pre[data-src]:not([" + s + '="' + m + '"]):not([' + s + '="' + h + '"])';
|
|
3136
|
+
function H(E, S, I) {
|
|
3161
3137
|
var c = new XMLHttpRequest();
|
|
3162
3138
|
c.open("GET", E, !0), c.onreadystatechange = function() {
|
|
3163
|
-
c.readyState == 4 && (c.status < 400 && c.responseText ?
|
|
3139
|
+
c.readyState == 4 && (c.status < 400 && c.responseText ? S(c.responseText) : c.status >= 400 ? I(a(c.status, c.statusText)) : I(l));
|
|
3164
3140
|
}, c.send(null);
|
|
3165
3141
|
}
|
|
3166
|
-
function
|
|
3167
|
-
var
|
|
3168
|
-
if (
|
|
3169
|
-
var
|
|
3170
|
-
return c ? d ? [
|
|
3142
|
+
function N(E) {
|
|
3143
|
+
var S = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(E || "");
|
|
3144
|
+
if (S) {
|
|
3145
|
+
var I = Number(S[1]), c = S[2], d = S[3];
|
|
3146
|
+
return c ? d ? [I, Number(d)] : [I, void 0] : [I, I];
|
|
3171
3147
|
}
|
|
3172
3148
|
}
|
|
3173
3149
|
i.hooks.add("before-highlightall", function(E) {
|
|
3174
|
-
E.selector += ", " +
|
|
3150
|
+
E.selector += ", " + A;
|
|
3175
3151
|
}), i.hooks.add("before-sanity-check", function(E) {
|
|
3176
|
-
var
|
|
3152
|
+
var S = (
|
|
3177
3153
|
/** @type {HTMLPreElement} */
|
|
3178
3154
|
E.element
|
|
3179
3155
|
);
|
|
3180
|
-
if (
|
|
3181
|
-
E.code = "",
|
|
3182
|
-
var
|
|
3183
|
-
|
|
3184
|
-
var c =
|
|
3156
|
+
if (S.matches(A)) {
|
|
3157
|
+
E.code = "", S.setAttribute(s, h);
|
|
3158
|
+
var I = S.appendChild(document.createElement("CODE"));
|
|
3159
|
+
I.textContent = r;
|
|
3160
|
+
var c = S.getAttribute("data-src"), d = E.language;
|
|
3185
3161
|
if (d === "none") {
|
|
3186
3162
|
var g = (/\.(\w+)$/.exec(c) || [, "none"])[1];
|
|
3187
3163
|
d = o[g] || g;
|
|
3188
3164
|
}
|
|
3189
|
-
i.util.setLanguage(
|
|
3165
|
+
i.util.setLanguage(I, d), i.util.setLanguage(S, d);
|
|
3190
3166
|
var b = i.plugins.autoloader;
|
|
3191
|
-
b && b.loadLanguages(d),
|
|
3167
|
+
b && b.loadLanguages(d), H(
|
|
3192
3168
|
c,
|
|
3193
3169
|
function(p) {
|
|
3194
|
-
|
|
3195
|
-
var
|
|
3196
|
-
if (
|
|
3197
|
-
var
|
|
3198
|
-
|
|
3199
|
-
`),
|
|
3170
|
+
S.setAttribute(s, m);
|
|
3171
|
+
var v = N(S.getAttribute("data-range"));
|
|
3172
|
+
if (v) {
|
|
3173
|
+
var z = p.split(/\r\n?|\n/g), x = v[0], C = v[1] == null ? z.length : v[1];
|
|
3174
|
+
x < 0 && (x += z.length), x = Math.max(0, Math.min(x - 1, z.length)), C < 0 && (C += z.length), C = Math.max(0, Math.min(C, z.length)), p = z.slice(x, C).join(`
|
|
3175
|
+
`), S.hasAttribute("data-start") || S.setAttribute("data-start", String(x + 1));
|
|
3200
3176
|
}
|
|
3201
|
-
|
|
3177
|
+
I.textContent = p, i.highlightElement(I);
|
|
3202
3178
|
},
|
|
3203
3179
|
function(p) {
|
|
3204
|
-
|
|
3180
|
+
S.setAttribute(s, y), I.textContent = p;
|
|
3205
3181
|
}
|
|
3206
3182
|
);
|
|
3207
3183
|
}
|
|
@@ -3213,8 +3189,8 @@ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
3213
3189
|
*
|
|
3214
3190
|
* @param {ParentNode} [container=document]
|
|
3215
3191
|
*/
|
|
3216
|
-
highlight: function(
|
|
3217
|
-
for (var
|
|
3192
|
+
highlight: function(S) {
|
|
3193
|
+
for (var I = (S || document).querySelectorAll(A), c = 0, d; d = I[c++]; )
|
|
3218
3194
|
i.highlightElement(d);
|
|
3219
3195
|
}
|
|
3220
3196
|
};
|
|
@@ -3223,8 +3199,8 @@ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
3223
3199
|
V || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), V = !0), i.plugins.fileHighlight.highlight.apply(this, arguments);
|
|
3224
3200
|
};
|
|
3225
3201
|
}();
|
|
3226
|
-
})(
|
|
3227
|
-
const J =
|
|
3202
|
+
})(me);
|
|
3203
|
+
const J = me.exports;
|
|
3228
3204
|
Prism.languages.python = {
|
|
3229
3205
|
comment: {
|
|
3230
3206
|
pattern: /(^|[^\\])#.*/,
|
|
@@ -3513,12 +3489,12 @@ Prism.languages.py = Prism.languages.python;
|
|
|
3513
3489
|
}), l = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
|
|
3514
3490
|
function o(s, h) {
|
|
3515
3491
|
h = (h || "").replace(/m/g, "") + "m";
|
|
3516
|
-
var
|
|
3492
|
+
var m = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
|
|
3517
3493
|
return r;
|
|
3518
3494
|
}).replace(/<<value>>/g, function() {
|
|
3519
3495
|
return s;
|
|
3520
3496
|
});
|
|
3521
|
-
return RegExp(
|
|
3497
|
+
return RegExp(m, h);
|
|
3522
3498
|
}
|
|
3523
3499
|
e.languages.yaml = {
|
|
3524
3500
|
scalar: {
|
|
@@ -3628,7 +3604,7 @@ Prism.languages.py = Prism.languages.python;
|
|
|
3628
3604
|
var i = e.languages.markup;
|
|
3629
3605
|
i && (i.tag.addInlined("style", "css"), i.tag.addAttribute("style", "css"));
|
|
3630
3606
|
})(Prism);
|
|
3631
|
-
const vn =
|
|
3607
|
+
const vn = ":host{display:block}.codewrap{position:relative;background:#08170f;border:1px solid rgba(255, 255, 255, 0.07);border-radius:12px;overflow:hidden}.codetop{display:flex;align-items:center;justify-content:space-between;padding:11px 13px;border-bottom:1px solid rgba(255, 255, 255, 0.07)}.langchip{font-family:'IBM Plex Mono', ui-monospace, monospace;font-size:9.5px;letter-spacing:0.1em;text-transform:uppercase;color:#00ff9d;background:rgba(0, 255, 157, 0.1);border:1px solid rgba(0, 255, 157, 0.25);border-radius:5px;padding:4px 8px;line-height:1}.copy{display:inline-flex;align-items:center;gap:7px;background:transparent;border:none;cursor:pointer;font-family:'IBM Plex Mono', ui-monospace, monospace;font-size:10.5px;letter-spacing:0.06em;text-transform:uppercase;color:rgba(235, 242, 238, 0.62);padding:5px 7px;border-radius:6px;transition:color 0.14s, background 0.14s}.copy:hover{color:#00ff9d;background:rgba(0, 255, 157, 0.08)}.copy eds-icon-wrapper{color:inherit;display:inline-flex}pre{margin:0;padding:16px 15px;overflow-x:auto;white-space:pre;font-family:'IBM Plex Mono', ui-monospace, monospace;font-size:12.5px;line-height:1.75;color:#cfe3d8}code{font-family:inherit;font-size:inherit;line-height:inherit}.token.tag{color:#ff7b9c}.token.attr-name{color:#9fe8ff}.token.attr-value{color:#00ff9d}.token.string{color:#00ff9d}.token.punctuation{color:#6f8579}.token.attr-value .token.punctuation{color:#00ff9d}.token.comment{color:#6f8579;font-style:italic}.token.keyword{color:#ff7b9c}.token.function{color:#9fe8ff}.token.operator{color:#9fe8ff}.token.number{color:#ffb87e}.token.boolean{color:#d18fff}.token.property{color:#9fe8ff}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}", yn = vn, wn = class {
|
|
3632
3608
|
constructor(e) {
|
|
3633
3609
|
u(this, e), this.code = void 0, this.language = void 0, this.copied = !1;
|
|
3634
3610
|
}
|
|
@@ -3679,16 +3655,16 @@ const vn = `:host{display:block}.relative{position:relative}.bg-strongest{backgr
|
|
|
3679
3655
|
return this.language && J.languages[this.language] ? J.highlight(this.code, J.languages[this.language], this.language) : this.code;
|
|
3680
3656
|
}
|
|
3681
3657
|
render() {
|
|
3682
|
-
return t("div", { key: "
|
|
3658
|
+
return t("div", { key: "70292c4efd3cfaa9e825fe5f50ca4c04807bfbf6", class: "codewrap" }, t("div", { key: "8af431690673102d18e43fe225267244ecf7ed1c", class: "codetop" }, t("span", { key: "484e4eb6636cd91314a17a3f048f8486f7dccb0a", class: "langchip" }, this.language ? this.language.toUpperCase() : "CODE"), t("button", { key: "9a866e116ce719c59985b62850a351a4a87c30a8", type: "button", class: "copy", "aria-label": "Copy code", onClick: () => this.copyToClipboard() }, t("eds-icon-wrapper", { key: "bfb0c5fe395e5a1f814e32fe21edff4829394225", name: this.copied ? "checkmark-filled" : "copy", size: 16 }), this.copied ? "Copied" : "Copy")), t("pre", { key: "cda2b6d9eee175ea01ee99ce68912813efa12a48", class: this.language ? `language-${this.language}` : "", role: "region", "aria-label": this.language ? `Code block in ${this.language}` : "Code block" }, t("code", { key: "2ebb1b9ac0f24a6c3c82e486745a476a4b4d5b7c", innerHTML: this.getHighlightedCode() })));
|
|
3683
3659
|
}
|
|
3684
3660
|
get el() {
|
|
3685
|
-
return
|
|
3661
|
+
return w(this);
|
|
3686
3662
|
}
|
|
3687
3663
|
};
|
|
3688
3664
|
wn.style = yn;
|
|
3689
3665
|
const kn = ".z-focus{z-index:99}.relative{position:relative}.shadow-small{--tw-shadow:0px 1.5px 2px rgba(0, 0, 0, 0.1);--tw-shadow-colored:0px 1.5px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-inverse{background-color:var(--white)}.border-softest{border:2px solid rgba(0, 0, 0, .05)}.z-10{z-index:10}.z-on-top{z-index:99999}.absolute{position:absolute}.top-full{top:100%}.mt-4{margin-top:0.25rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.gap-y-4{row-gap:0.25rem}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.left-0{left:0rem}.left-1\\/2{left:50%}.left-4{left:0.25rem}.left-\\[4px\\]{left:4px}.right-0{right:0rem}.right-4{right:0.25rem}.right-8{right:0.5rem}", zn = kn, Sn = class {
|
|
3690
3666
|
constructor(e) {
|
|
3691
|
-
u(this, e), this.dropdown =
|
|
3667
|
+
u(this, e), this.dropdown = k(this, "dropdown", 7), this.focusableItems = [], this.handleClick = () => {
|
|
3692
3668
|
var n, i;
|
|
3693
3669
|
this.isOpen = !this.isOpen, this.isOpen ? (this.focusableItems = Array.from(((n = this.panelEl) === null || n === void 0 ? void 0 : n.querySelectorAll('a, button, [role="menuitem"]')) || []), this.focusableItems.forEach((r) => {
|
|
3694
3670
|
r.hasAttribute("role") || r.setAttribute("role", "menuitem");
|
|
@@ -3797,7 +3773,7 @@ const kn = ".z-focus{z-index:99}.relative{position:relative}.shadow-small{--tw-s
|
|
|
3797
3773
|
}, style: { display: this.isOpen ? "block" : "none" }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, t("slot", { key: "d6b153bb5968fa958be4d96d60cce774a9a0713c" })));
|
|
3798
3774
|
}
|
|
3799
3775
|
get host() {
|
|
3800
|
-
return
|
|
3776
|
+
return w(this);
|
|
3801
3777
|
}
|
|
3802
3778
|
};
|
|
3803
3779
|
Sn.style = zn;
|
|
@@ -3816,20 +3792,21 @@ const Cn = ":host{display:block}p{margin:0}ul{list-style:none;padding:0;margin:0
|
|
|
3816
3792
|
links: [
|
|
3817
3793
|
{ label: "GitLab", href: "https://gitlab.ebrains.eu/ri/tech-hub/ebrains-ui-ecosystem/", external: !0 },
|
|
3818
3794
|
{ label: "Storybook", href: "https://storybook.design.ebrains.eu", external: !0 },
|
|
3819
|
-
{
|
|
3795
|
+
{
|
|
3796
|
+
label: "Report Issues",
|
|
3797
|
+
href: "https://gitlab.ebrains.eu/ri/tech-hub/ebrains-ui-ecosystem/-/issues",
|
|
3798
|
+
external: !0
|
|
3799
|
+
},
|
|
3820
3800
|
{ label: "Contribute", href: "https://design.ebrains.eu/get-started/contributing/", external: !0 }
|
|
3821
3801
|
]
|
|
3822
3802
|
},
|
|
3823
3803
|
{
|
|
3824
3804
|
heading: "Legal",
|
|
3825
|
-
links: [
|
|
3826
|
-
{ label: "MIT License" },
|
|
3827
|
-
{ label: "Cookie Preferences", action: "cookies" }
|
|
3828
|
-
]
|
|
3805
|
+
links: [{ label: "MIT License" }, { label: "Cookie Preferences", action: "cookies" }]
|
|
3829
3806
|
}
|
|
3830
3807
|
], Fn = class {
|
|
3831
3808
|
constructor(e) {
|
|
3832
|
-
u(this, e), this.cookies =
|
|
3809
|
+
u(this, e), this.cookies = k(this, "cookies", 7), this.backToTop = () => {
|
|
3833
3810
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
3834
3811
|
}, this.emitCookies = () => {
|
|
3835
3812
|
this.cookies.emit("toggle");
|
|
@@ -3895,10 +3872,10 @@ const Cn = ":host{display:block}p{margin:0}ul{list-style:none;padding:0;margin:0
|
|
|
3895
3872
|
}
|
|
3896
3873
|
render() {
|
|
3897
3874
|
const e = (/* @__PURE__ */ new Date()).getFullYear(), n = this.rightsReserved || `${e} EBRAINS. All rights reserved.`, i = this.variant === "inverse", r = ["eds-footer-root", i ? "theme-inverse" : "theme-default"].join(" ");
|
|
3898
|
-
return t("footer", { key: "
|
|
3875
|
+
return t("footer", { key: "e7d7584fcd2dcfd2e4e469c5e9e2621f010036fe", class: r }, this.social ? t("div", { class: "footer-social" }, t("div", { class: "footer-container" }, t("eds-social-networks", { variant: this.variant }))) : null, t("div", { key: "4233c2f5665ff8fd49f1949ef450b87149f1d9ba", class: "footer-container" }, t("div", { key: "6a90c75dc5a099727e58fb21c706e7d310c2e58f", class: "footer-grid" }, t("div", { key: "450704c6200bf603a296c383872eecdf4ef94fd9", class: "footer-brand" }, t("div", { key: "380ba7f532a8f94627e206e33480be697861dc57", class: "footer-brand-row" }, t("a", { key: "2cbc262b8630d7106b1ff4c9b9e97f7421df05bd", target: "_blank", rel: "noopener noreferrer", class: "footer-flag-link", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-europe_en", "aria-label": "Learn about Horizon Europe funding" }, t("svg", { key: "a1374ae892acdd10d5294e3197e9b37e8adb7b38", class: "footer-flag-svg", width: "63", height: "50", viewBox: "0 0 640 480", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "11b83b7931271e829803de01822a6618e66c8b17", d: "M0 0h640v480H0V0z", fill: "#039" }), t("path", { key: "2e5b724042df62f59964709ec2e6954767690805", d: "M325.032 93.15l17.513-.398-14.401 9.972 5.789 16.53L320 108.639l-13.933 10.615 5.789-16.531-14.399-9.97 17.51.396L320 76.374l5.032 16.775zm0 284.444l17.513-.398-14.401 9.972 5.789 16.53L320 393.083l-13.933 10.615 5.789-16.531-14.399-9.97 17.51.397L320 360.818l5.032 16.776zm-147.25-158.983l5.029 16.761 17.511-.397-14.4 9.969 5.79 16.533-13.933-10.616-13.932 10.616 5.788-16.531-14.401-9.971 17.511.397 5.028-16.761.004-.015.001.003.001-.003.003.015zm77.885-105.334l17.511-.397-14.401 9.971 5.79 16.531-13.932-10.614-13.933 10.615 5.788-16.531-14.4-9.971h.005l-.003-.001 17.51.397 5.033-16.775 5.032 16.775zm-52.729 52.729l17.511-.398h.002l-14.402 9.971 5.79 16.531-13.933-10.615-13.932 10.615 5.789-16.532-14.4-9.97 17.51.397 5.033-16.776 5.032 16.777zm-5.001 125.803l5.027 16.759 17.513-.397-14.401 9.971 5.79 16.531-.005-.005.003.006-13.932-10.615-13.933 10.615 5.788-16.532-14.398-9.97 17.51.396 5.029-16.759.004-.016v.003l.002-.003.003.016zm51.445 47.71l5.027 16.76 17.513-.397-14.401 9.97 5.791 16.532-.004-.004.002.004-13.933-10.615-13.933 10.615 5.788-16.532-14.398-9.97 17.51.397 5.029-16.76.004-.016v.003l.002-.003.003.016zm217.873-104.147l17.511-.397-14.401 9.969 5.79 16.533-13.934-10.616-13.931 10.616 5.789-16.533-14.399-9.969 17.509.397 5.034-16.776 5.032 16.776zm-63.958-95.997l-5.786-16.522 14.401-9.972-17.511.398-5.033-16.778-5.034 16.777-17.51-.398 14.4 9.972-5.789 16.53 13.932-10.614 13.934 10.614-.004-.007zm38.797 42.122l13.934 10.614-.004-.007-5.787-16.524 14.401-9.971-17.51.399-5.033-16.778-5.033 16.777-17.51-.398h-.001l14.399 9.972-5.787 16.529 13.931-10.613zm5.007 127.071l17.51-.397-14.4 9.971 5.79 16.531-13.933-10.614-13.932 10.615 5.788-16.531-14.401-9.971h.005l-.003-.001 17.51.397 5.033-16.775 5.033 16.775zm-51.446 47.711l17.511-.397-14.4 9.97 5.79 16.532-13.933-10.615-13.933 10.615 5.789-16.531-14.401-9.971h.002l17.51.397 5.033-16.776 5.032 16.776z", fill: "#FC0" }))), t("p", { key: "20e15f10baf1ddf47bc35e4d339a8efaf4b4bb49", class: "footer-funded" }, this.fundedBy)), t("p", { key: "126e04d4a993422b5554fb87dfb9b388e8d2a4af", class: "footer-copyright" }, "© ", n)), this.resolvedColumns.map((a, l) => t("div", { class: "footer-column", key: `col-${l}` }, t("h4", { class: "footer-column-heading" }, a.heading), t("ul", { class: "footer-column-list" }, (a.links || []).map((o, s) => this.renderLink(o, s))))))), this.enableScrollTop ? t("div", { id: "toTop", class: "footer-back-to-top" }, t("eds-button", { id: "backToTop", "aria-label": this.backToTopAriaLabel, intent: i ? "ghostInverse" : "ghost", size: "large", icon: "chevron-up", onClick: this.backToTop, tabindex: "-1" })) : null);
|
|
3899
3876
|
}
|
|
3900
3877
|
get el() {
|
|
3901
|
-
return
|
|
3878
|
+
return w(this);
|
|
3902
3879
|
}
|
|
3903
3880
|
static get watchers() {
|
|
3904
3881
|
return {
|
|
@@ -3924,15 +3901,15 @@ function ne(e, n, i, r, a, l, o) {
|
|
|
3924
3901
|
s.push("Invalid URL format.");
|
|
3925
3902
|
}
|
|
3926
3903
|
if (i === "tel" && n) {
|
|
3927
|
-
const h = n.toString(),
|
|
3928
|
-
|
|
3904
|
+
const h = n.toString(), m = /\d/.test(h), y = /^[\d\s\-\+\(\)\.]+$/.test(h);
|
|
3905
|
+
m ? y || s.push("Phone number contains invalid characters. Use only digits, spaces, +, -, (, ), or .") : s.push("Phone number must contain at least one digit.");
|
|
3929
3906
|
}
|
|
3930
3907
|
return s;
|
|
3931
3908
|
}
|
|
3932
|
-
function
|
|
3909
|
+
function ue(e, n, i) {
|
|
3933
3910
|
const l = Array.from(i.querySelectorAll("eds-input-field")).filter((s) => {
|
|
3934
|
-
var h,
|
|
3935
|
-
return ((
|
|
3911
|
+
var h, m;
|
|
3912
|
+
return ((m = (h = s.shadowRoot) === null || h === void 0 ? void 0 : h.querySelectorAll(`input[name="${e}"]`)) === null || m === void 0 ? void 0 : m.length) > 0;
|
|
3936
3913
|
}).flatMap((s) => {
|
|
3937
3914
|
var h;
|
|
3938
3915
|
return Array.from(((h = s.shadowRoot) === null || h === void 0 ? void 0 : h.querySelectorAll(`input[name="${e}"]`)) || []);
|
|
@@ -3985,26 +3962,26 @@ function Ln(e, n, i, r) {
|
|
|
3985
3962
|
const s = xe(o.name, o.required, n);
|
|
3986
3963
|
s.length > 0 && (a[o.name] = s, l = !0);
|
|
3987
3964
|
} else if (o.options && (o.type === "checkbox" || o.type === "radio")) {
|
|
3988
|
-
const s =
|
|
3965
|
+
const s = ue(o.name, o.required, n);
|
|
3989
3966
|
s.length > 0 && (a[o.name] = s, l = !0);
|
|
3990
3967
|
} else if (o.type === "rating") {
|
|
3991
3968
|
const s = In(n);
|
|
3992
3969
|
if (s) {
|
|
3993
|
-
const h = s.getAttribute("selected-rating"),
|
|
3994
|
-
|
|
3970
|
+
const h = s.getAttribute("selected-rating"), m = h !== null ? parseInt(h, 10) : 0, y = ne(o.name, m, o.type, o.required);
|
|
3971
|
+
y.length > 0 && (a[o.name] = y, l = !0);
|
|
3995
3972
|
}
|
|
3996
3973
|
} else if (o.type === "nps") {
|
|
3997
3974
|
const s = _n(n);
|
|
3998
3975
|
if (s) {
|
|
3999
|
-
const h = s.getAttribute("selected-value"),
|
|
4000
|
-
(
|
|
3976
|
+
const h = s.getAttribute("selected-value"), m = h !== null ? parseInt(h, 10) : null;
|
|
3977
|
+
(m === null || isNaN(m)) && o.required && (a[o.name] = ["This field is required."], l = !0);
|
|
4001
3978
|
} else o.required && (a[o.name] = ["This field is required."], l = !0);
|
|
4002
3979
|
return;
|
|
4003
3980
|
} else {
|
|
4004
3981
|
const s = An(n, o.name);
|
|
4005
3982
|
if (s) {
|
|
4006
|
-
const h = s.value,
|
|
4007
|
-
|
|
3983
|
+
const h = s.value, m = ne(o.name, h, o.type, o.required, o.maxlength, o.min, o.max);
|
|
3984
|
+
m.length > 0 && (a[o.name] = m, l = !0);
|
|
4008
3985
|
}
|
|
4009
3986
|
}
|
|
4010
3987
|
}), { errors: a, hasError: l };
|
|
@@ -4015,10 +3992,10 @@ function ve(e) {
|
|
|
4015
3992
|
let n = String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
4016
3993
|
return n = n.replace(/\*\*([^*]+)\*\*/g, "<strong>$1</strong>"), n = n.replace(/\[([^\]]+)\]\(([^)\s]+)\)/g, (i, r, a) => /^(https?:|mailto:)/i.test(a) ? `<a href="${a}" target="_blank" rel="noopener noreferrer" class="eds-desc-link">${r}</a>` : r), n = n.replace(/\n/g, "<br>"), n;
|
|
4017
3994
|
}
|
|
4018
|
-
function
|
|
4019
|
-
return e.type === "checkbox" || e.type === "radio" ? e.options ?
|
|
3995
|
+
function Mn(e, n, i) {
|
|
3996
|
+
return e.type === "checkbox" || e.type === "radio" ? e.options ? ue(e.name, e.required, i) : xe(e.name, e.required, i) : ne(e.name, n, e.type, e.required, e.maxlength, e.min, e.max);
|
|
4020
3997
|
}
|
|
4021
|
-
function
|
|
3998
|
+
function Hn({
|
|
4022
3999
|
initData: e,
|
|
4023
4000
|
parsedFields: n,
|
|
4024
4001
|
currentValues: i
|
|
@@ -4031,9 +4008,10 @@ function Mn({
|
|
|
4031
4008
|
l !== void 0 && (r[a.name] = l);
|
|
4032
4009
|
}), { updatedValues: r };
|
|
4033
4010
|
}
|
|
4034
|
-
const
|
|
4011
|
+
const $n = `.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.flex{display:flex}.flex-col{flex-direction:column}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-body-01 b,.f-body-01 strong{font-weight:var(--f-body-01---bold-weight, bold)}.f-body-02 b,.f-body-02 strong{font-weight:var(--f-body-02---bold-weight, bold)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:600;font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:600;font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing);overflow:visible}.text-light{color:var(--grey-dark)}.rounded-xs{border-radius:4px}.rounded-sm{border-radius:8px}.border-softer{border-color:rgba(0, 0, 0, .1)}.border-2{border-width:2px}.border-t-2{border-top-width:2px}.mt-20{margin-top:1.25rem}.mt-24{margin-top:1.5rem}.mt-32{margin-top:2rem}.mt-48{margin-top:3rem}.mt-64{margin-top:4rem}.mb-32{margin-bottom:2rem}.mb-48{margin-bottom:3rem}.pt-28{padding-top:1.75rem}.pt-32{padding-top:2rem}.pt-64{padding-top:4rem}.pl-8{padding-left:0.5rem}.pl-16{padding-left:1rem}.border-l-2{border-left-width:2px}.gap-y-8{row-gap:0.5rem}.gap-y-16{row-gap:1rem}.gap-y-20{row-gap:1.25rem}.gap-y-24{row-gap:1.5rem}.border-group{border-left:1px solid var(--soft-color, #ddd);padding-left:1rem}.bg-inverse{background-color:var(--white)}.form-brand{box-shadow:0 2px 12px rgba(0, 0, 0, 0.08);border-left:4px solid var(--brand-green);animation:fadeInUp 0.6s ease}.form-brand-card{--warn:#ffb22c;--warn-strong:#b26b00;--danger:#ff6b5b;--danger-strong:#c0392b;background:var(--white, #fff);border:1px solid var(--line-color, #e2e2e2);border-radius:20px;overflow:hidden;box-shadow:0 30px 60px -34px rgba(7, 20, 13, 0.32);animation:fadeInUp 0.6s ease}.form-brand-header{position:relative;overflow:hidden;background:var(--brand-black, #07140d);color:#fff;padding:38px 40px 34px}.fbh-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
|
|
4012
|
+
linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);background-size:42px 42px;-webkit-mask-image:radial-gradient(130% 110% at 15% 0%, #000, transparent 72%);mask-image:radial-gradient(130% 110% at 15% 0%, #000, transparent 72%);opacity:0.5;pointer-events:none}.fbh-glow{position:absolute;top:-50%;right:-12%;width:420px;height:420px;background:radial-gradient(circle, rgba(0, 255, 157, 0.16), transparent 62%);pointer-events:none}.fbh-glow--expiring{background:radial-gradient(circle, rgba(255, 178, 44, 0.13), transparent 62%)}.fbh-glow--closed{background:radial-gradient(circle, rgba(192, 57, 43, 0.14), transparent 62%)}.fbh-in{position:relative}.fbh-brand{display:flex;align-items:center;gap:10px;margin-bottom:24px}.fbh-mark{width:30px;height:30px;border-radius:50%;background:linear-gradient(150deg, #00ff9d, #00c87b 55%, #0a8f5a);display:flex;align-items:center;justify-content:center}.fbh-mark svg{width:19px;height:19px}.fbh-word{font-weight:600;font-size:16px;letter-spacing:0.04em}.fbh-logo{width:150px;margin-bottom:22px}.fbh-eyebrow{font-family:'IBM Plex Mono', monospace;font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--brand-green, #00ff9d);display:inline-flex;align-items:center;gap:7px}.fbh-eyebrow svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;flex:0 0 12px}.fbh-eyebrow--expiring{color:var(--warn, #ffb22c)}.fbh-eyebrow--closed{color:var(--danger, #ff6b5b)}.fbh-title{font-weight:200;font-size:clamp(26px, 4vw, 36px);letter-spacing:-0.02em;line-height:1.08;margin-bottom:12px}.fbh-sub{font-size:14.5px;color:rgba(235, 242, 238, 0.62);font-weight:300;max-width:72ch;line-height:1.55}.fbh-meta{display:flex;gap:22px;margin-top:22px;flex-wrap:wrap}.fbh-meta span{display:inline-flex;align-items:center;gap:7px;font-family:'IBM Plex Mono', monospace;font-size:10.5px;letter-spacing:0.06em;text-transform:uppercase;color:rgba(235, 242, 238, 0.62)}.fbh-meta svg{width:13px;height:13px;stroke:var(--brand-green, #00ff9d);fill:none;stroke-width:1.8}.fbh-meta span.is-warn{color:var(--warn, #ffb22c)}.fbh-meta span.is-warn svg{stroke:var(--warn, #ffb22c)}.fbh-meta span.is-danger{color:var(--danger, #ff6b5b)}.fbh-meta span.is-danger svg{stroke:var(--danger, #ff6b5b)}.form-meta-time{display:inline-flex;align-items:center;gap:7px;width:fit-content;font-family:'IBM Plex Mono', monospace;font-size:10.5px;letter-spacing:0.06em;text-transform:uppercase;color:var(--grey-dark)}.form-meta-time svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.form-brand-body{padding:var(--eds-form-padding, 34px 40px 30px);--eds-field-accent:#00c87b}.form-brand-body--closed{opacity:0.55}.form-sect{margin-bottom:30px}.form-sect:last-child{margin-bottom:0}.form-sect-head{display:flex;align-items:center;gap:9px;margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid var(--line-color, #e2e2e2)}.form-sect-glyph{color:#00c87b;display:inline-flex}.form-sect-glyph svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}.form-sect-label{font-family:'IBM Plex Mono', monospace;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:var(--brand-black, #07140d)}.form-brand-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 40px;border-top:1px solid var(--line-color, #e2e2e2);background:#fcfcfc;flex-wrap:wrap}.form-brand-footer-actions{display:flex;align-items:center;gap:12px}.req-note{font-family:'IBM Plex Mono', monospace;font-size:10.5px;letter-spacing:0.06em;text-transform:uppercase;color:#8a8c8a}.req-note b{color:#00c87b}.fbf-left{display:flex;align-items:center;gap:12px;min-width:0}.fbf-save{display:inline-flex;align-items:center;gap:9px;font-family:'IBM Plex Mono', monospace;font-size:10.5px;letter-spacing:0.07em;text-transform:uppercase;color:#8a8c8a;transition:color 0.2s;white-space:nowrap}.fbf-save-dot{width:7px;height:7px;border-radius:50%;background:#00c87b;flex:0 0 7px;transition:background 0.2s}.fbf-save--saving{color:#7a7b7a}.fbf-save--saving .fbf-save-dot{background:#7a7b7a;animation:fbfPulse 1s ease-in-out infinite}.fbf-save--error{color:var(--danger-strong, #c0392b)}.fbf-save--error .fbf-save-dot{background:var(--danger-strong, #c0392b)}@keyframes fbfPulse{0%,100%{opacity:1}50%{opacity:0.25}}.fbf-sep{width:1px;height:13px;background:var(--line-color, #e2e2e2);flex:0 0 1px}.fbf-clear{font-family:'IBM Plex Sans', system-ui, sans-serif;font-size:13.5px;color:var(--body-l, #5a5f5c);cursor:pointer;background:none;border:none;padding:6px 2px;transition:color 0.15s}.fbf-clear:hover:not(:disabled){color:var(--danger-strong, #c0392b)}.fbf-clear:disabled{opacity:0.4;cursor:not-allowed}.fbf-confirm{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.fbf-confirm-q{font-size:13.5px;color:var(--danger-strong, #c0392b);display:inline-flex;align-items:center;gap:8px}.fbf-confirm-q svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;flex:0 0 15px}.fbf-confirm-no{font-family:'IBM Plex Sans', system-ui, sans-serif;font-size:13.5px;color:var(--body-l, #5a5f5c);cursor:pointer;background:none;border:none}.fbf-confirm-no:hover{color:var(--brand-black, #07140d)}.fbf-confirm-yes{font-family:'IBM Plex Sans', system-ui, sans-serif;font-size:13.5px;font-weight:500;cursor:pointer;border-radius:999px;padding:9px 16px;background:#fdf0ee;color:var(--danger-strong, #c0392b);border:1px solid #f2cfc9;transition:0.15s}.fbf-confirm-yes:hover{background:var(--danger-strong, #c0392b);color:#fff;border-color:var(--danger-strong, #c0392b)}.req-note--closed{display:inline-flex;align-items:center;gap:7px;color:var(--danger-strong, #c0392b)}.req-note--closed svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2;flex:0 0 13px}@media (max-width: 600px){.form-brand-header,.form-brand-footer{padding-left:24px;padding-right:24px}.form-brand-body{padding:var(--eds-form-padding, 28px 24px 28px)}.form-brand-footer{align-items:flex-start;flex-direction:column-reverse;gap:20px;padding-top:22px}.form-brand-footer-actions,.fbf-confirm{width:100%;justify-content:space-between}.fbf-left{flex-wrap:wrap;row-gap:8px;width:100%;padding-top:20px;border-top:1px solid var(--line-color, #e2e2e2)}}@keyframes fadeInUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.effect-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.shadow-hover{--tw-shadow:0px 0px 16px rgba(0, 0, 0, 0.2);--tw-shadow-colored:0px 0px 16px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.cursor-pointer{cursor:pointer}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--brand-green)}.effect-focus-within:focus-within{outline-style:solid}.relative{position:relative}.rounded-sm{border-radius:8px}.rounded-lg{border-radius:16px}.px-16{padding-left:1rem;padding-right:1rem}.pb-4{padding-bottom:0.25rem}.pb-16{padding-bottom:1rem}.p-32{padding:2rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.w-full{width:100%}.justify-between{justify-content:space-between}.items-center{align-items:center}@media (min-width: 750px){.md\\:flex-row-reverse{flex-direction:row-reverse}.md\\:justify-between{justify-content:space-between}.md\\:gap-y-0{row-gap:0}.md\\:w-auto{width:auto}.md\\:mt-64{margin-top:4rem}.md\\:pt-64{padding-top:4rem}}.eds-desc-link{position:relative;display:inline-block;color:var(--brand-black);text-decoration:none}.eds-desc-link::after{content:'';position:absolute;bottom:-2px;left:0;width:0;height:2px;background-color:var(--brand-green);transition:width 0.3s ease}.eds-desc-link:hover::after{width:100%}.eds-desc-link:focus-visible::after{width:0}.fbh-sub .eds-desc-link{color:#fff;font-weight:400}.eds-content-block{line-height:1.5;color:var(--brand-black, #07140d)}.eds-content-block strong{font-weight:600}.eds-content-block .eds-desc-link{font-weight:600}`, Bn = $n, Dn = class {
|
|
4035
4013
|
constructor(e) {
|
|
4036
|
-
u(this, e), this.form =
|
|
4014
|
+
u(this, e), this.form = k(this, "form", 7), this.name = "eds-form", this.title = "Form Title", this.description = "Form Description", this.eyebrow = void 0, this.estimatedTime = void 0, this.progress = void 0, this.expires = void 0, this.policy = void 0, this.gdpr = !1, this.setFormUrl = !0, this.formBtn = !0, this.formBtnLabel = "Submit", this.buttonIntent = "primary", this.clearBtn = !1, this.clearBtnLabel = "Clear", this.errorMessage = "Some fields in your form are incorrect.", this.fields = [], this.groups = [], this.initData = {}, this.formStyle = "default", this.status = "open", this.saveStatus = "idle", this.saveLabel = void 0, this.values = {}, this.showClearConfirm = !1, this.isSubmitting = !1, this.hasError = !1, this.errors = {}, this.parsedFields = [], this.parsedGroups = [];
|
|
4037
4015
|
}
|
|
4038
4016
|
async setData(e) {
|
|
4039
4017
|
this.populateFormWithInitData(e);
|
|
@@ -4050,10 +4028,10 @@ const Dn = ".container{width:calc(var(--container-width, 100%) - (2 * var(--brea
|
|
|
4050
4028
|
return !!this.initData;
|
|
4051
4029
|
}
|
|
4052
4030
|
parseFields(e) {
|
|
4053
|
-
this.parsedFields =
|
|
4031
|
+
this.parsedFields = M(e);
|
|
4054
4032
|
}
|
|
4055
4033
|
parseGroups(e) {
|
|
4056
|
-
this.parsedGroups =
|
|
4034
|
+
this.parsedGroups = M(e);
|
|
4057
4035
|
}
|
|
4058
4036
|
emitContext(e) {
|
|
4059
4037
|
const n = new CustomEvent("parentContext", {
|
|
@@ -4081,7 +4059,7 @@ const Dn = ".container{width:calc(var(--container-width, 100%) - (2 * var(--brea
|
|
|
4081
4059
|
this.errors = e, this.hasError = n;
|
|
4082
4060
|
}
|
|
4083
4061
|
populateFormWithInitData(e) {
|
|
4084
|
-
const { updatedValues: n } =
|
|
4062
|
+
const { updatedValues: n } = Hn({
|
|
4085
4063
|
initData: e,
|
|
4086
4064
|
parsedFields: this.parsedFields,
|
|
4087
4065
|
currentValues: this.values,
|
|
@@ -4136,8 +4114,8 @@ const Dn = ".container{width:calc(var(--container-width, 100%) - (2 * var(--brea
|
|
|
4136
4114
|
if (!o)
|
|
4137
4115
|
return;
|
|
4138
4116
|
Array.from(o.querySelectorAll('input[type="file"][name]')).forEach((h) => {
|
|
4139
|
-
const
|
|
4140
|
-
|
|
4117
|
+
const m = h.name, y = h.files ? Array.from(h.files) : [];
|
|
4118
|
+
y.length > 0 && y.forEach((A) => n.append(m, A));
|
|
4141
4119
|
});
|
|
4142
4120
|
}), n;
|
|
4143
4121
|
}
|
|
@@ -4175,7 +4153,7 @@ const Dn = ".container{width:calc(var(--container-width, 100%) - (2 * var(--brea
|
|
|
4175
4153
|
return;
|
|
4176
4154
|
i = l.value;
|
|
4177
4155
|
}
|
|
4178
|
-
const r = Object.assign({}, this.errors), a =
|
|
4156
|
+
const r = Object.assign({}, this.errors), a = Mn(n, i, this.formEl);
|
|
4179
4157
|
a.length > 0 ? r[n.name] = a : delete r[n.name], this.errors = r, this.hasError = Object.keys(r).length > 0, this.form.emit({
|
|
4180
4158
|
event: "input",
|
|
4181
4159
|
field: n.name,
|
|
@@ -4208,7 +4186,7 @@ const Dn = ".container{width:calc(var(--container-width, 100%) - (2 * var(--brea
|
|
|
4208
4186
|
}
|
|
4209
4187
|
handleSubmit(e) {
|
|
4210
4188
|
var n, i;
|
|
4211
|
-
if (e == null || e.preventDefault(), !this.isSubmitting) {
|
|
4189
|
+
if (e == null || e.preventDefault(), this.status !== "closed" && !this.isSubmitting) {
|
|
4212
4190
|
if (this.isSubmitting = !0, this.validateForm(), this.hasError) {
|
|
4213
4191
|
this.isSubmitting = !1, this.form.emit({
|
|
4214
4192
|
event: "submit",
|
|
@@ -4256,7 +4234,8 @@ const Dn = ".container{width:calc(var(--container-width, 100%) - (2 * var(--brea
|
|
|
4256
4234
|
}), this.form.emit({
|
|
4257
4235
|
event: "change",
|
|
4258
4236
|
message: "Form cleared",
|
|
4259
|
-
success: !0
|
|
4237
|
+
success: !0,
|
|
4238
|
+
cleared: !0
|
|
4260
4239
|
}), F({
|
|
4261
4240
|
category: "ui-component",
|
|
4262
4241
|
parentContext: null,
|
|
@@ -4278,23 +4257,24 @@ const Dn = ".container{width:calc(var(--container-width, 100%) - (2 * var(--brea
|
|
|
4278
4257
|
var n, i, r, a, l, o, s;
|
|
4279
4258
|
if (!this.isFieldVisible(e))
|
|
4280
4259
|
return null;
|
|
4260
|
+
const h = e.disabled || this.status === "closed";
|
|
4281
4261
|
if (e.type === "content") {
|
|
4282
|
-
const
|
|
4283
|
-
return t("div", { class: "eds-content-block f-body-02 text-default", key: e.name, innerHTML: this.formatDescription(
|
|
4262
|
+
const m = (i = (n = e.content) !== null && n !== void 0 ? n : e.label) !== null && i !== void 0 ? i : "";
|
|
4263
|
+
return t("div", { class: "eds-content-block f-body-02 text-default", key: e.name, innerHTML: this.formatDescription(m) });
|
|
4284
4264
|
}
|
|
4285
4265
|
if (e.type === "rating") {
|
|
4286
|
-
const
|
|
4287
|
-
return t("div", { class: "form-group rating-field", key: e.name }, t("div", { class: "flex justify-between" }, e && t("eds-input-label", { name: `rating-${e.name}`, label: e.label, disabled:
|
|
4266
|
+
const m = this.values[e.name] || 0;
|
|
4267
|
+
return t("div", { class: "form-group rating-field", key: e.name }, t("div", { class: "flex justify-between" }, e && t("eds-input-label", { name: `rating-${e.name}`, label: e.label, disabled: h, required: e.required })), t("eds-rating", { id: `rating-${e.name}`, "rating-type": e.ratingType, "rating-count": e.ratingCount, "selected-rating": m, onRating: (y) => this.handleRating(y, e) }), t("div", { class: "mt-6" }, t("eds-input-footer", { id: `${e.name}-footer`, name: e.name, message: e.message, "error-message": (r = this.errors[e.name]) === null || r === void 0 ? void 0 : r.join("<br/>"), error: !!this.errors[e.name], link: e.link })));
|
|
4288
4268
|
} else if (e.type === "nps") {
|
|
4289
|
-
const
|
|
4290
|
-
return t("div", { class: "form-group nps-field", key: e.name }, t("div", { class: "flex justify-between" }, e && t("eds-input-label", { name: `nps-${e.name}`, label: e.question, disabled:
|
|
4269
|
+
const m = this.values[e.name] !== void 0 ? this.values[e.name] : null;
|
|
4270
|
+
return t("div", { class: "form-group nps-field", key: e.name }, t("div", { class: "flex justify-between" }, e && t("eds-input-label", { name: `nps-${e.name}`, label: e.question, disabled: h, required: e.required })), t("eds-nps", { id: `nps-${e.name}`, "right-label": e.rightLabel, "left-label": e.leftLabel, "selected-value": m, onNps: (y) => this.handleNPS(y, e) }), t("div", { class: "mt-6" }, t("eds-input-footer", { id: `${e.name}-footer`, name: e.name, "error-message": (a = this.errors[e.name]) === null || a === void 0 ? void 0 : a.join("<br/>"), error: !!this.errors[e.name] })));
|
|
4291
4271
|
} else {
|
|
4292
4272
|
if (e.type === "search-select")
|
|
4293
|
-
return t("eds-search-select", { key: e.name, name: e.name, label: e.label, source: e.source, options: e.options, multiple: !!e.multiple, "api-base": e.apiBase || "/api/v1", placeholder: e.placeholder, required: e.required, disabled:
|
|
4273
|
+
return t("eds-search-select", { key: e.name, name: e.name, label: e.label, source: e.source, options: e.options, multiple: !!e.multiple, "api-base": e.apiBase || "/api/v1", placeholder: e.placeholder, required: e.required, disabled: h, hint: e.hint, message: e.message, error: !!this.errors[e.name], "error-message": (l = this.errors[e.name]) === null || l === void 0 ? void 0 : l.join("<br/>"), value: this.values[e.name], onEdsinput: (m) => this.handleInput(m, e), onEdschange: (m) => this.handleChange(m, e) });
|
|
4294
4274
|
if (e.type === "kg-web-service")
|
|
4295
|
-
return t("eds-kg-web-services-select", { key: e.name, name: e.name, label: e.label, "api-endpoint": e.apiEndpoint || "/api/v1/kg/web-services/cached", placeholder: e.placeholder, required: e.required, disabled:
|
|
4275
|
+
return t("eds-kg-web-services-select", { key: e.name, name: e.name, label: e.label, "api-endpoint": e.apiEndpoint || "/api/v1/kg/web-services/cached", placeholder: e.placeholder, required: e.required, disabled: h, hint: e.hint, message: e.message, error: !!this.errors[e.name], "error-message": (o = this.errors[e.name]) === null || o === void 0 ? void 0 : o.join("<br/>"), value: this.values[e.name], size: e.size || 500, onEdsinput: (m) => this.handleInput(m, e), onEdschange: (m) => this.handleChange(m, e) });
|
|
4296
4276
|
}
|
|
4297
|
-
return t("eds-input-field", { key: e.name, name: e.name, label: e.label, placeholder: e.placeholder, type: e.type, value: this.values[e.name], required: e.required, hint: e.hint, message: e.message, link: e.link, error: !!this.errors[e.name], errorMessage: (s = this.errors[e.name]) === null || s === void 0 ? void 0 : s.join("<br/>"), options: e.options, onInput: (
|
|
4277
|
+
return t("eds-input-field", { key: e.name, name: e.name, label: e.label, placeholder: e.placeholder, type: e.type, value: this.values[e.name], required: e.required, disabled: h, hint: e.hint, message: e.message, link: e.link, error: !!this.errors[e.name], errorMessage: (s = this.errors[e.name]) === null || s === void 0 ? void 0 : s.join("<br/>"), options: e.options, onInput: (m) => this.handleInput(m, e), onChangeNative: (m) => this.handleChange(m, e) });
|
|
4298
4278
|
}
|
|
4299
4279
|
async getData() {
|
|
4300
4280
|
return this.makeFormData();
|
|
@@ -4314,10 +4294,26 @@ const Dn = ".container{width:calc(var(--container-width, 100%) - (2 * var(--brea
|
|
|
4314
4294
|
render() {
|
|
4315
4295
|
const e = this.parsedFields.filter((r) => r.type === "hidden"), n = this.groupedFields;
|
|
4316
4296
|
let i = "";
|
|
4317
|
-
|
|
4297
|
+
if (this.formStyle === "default" ? i = "bg-inverse border-softer relative rounded-xs border-2" : this.formStyle === "shadow" ? i = "bg-inverse effect-shadow shadow-hover border-softer relative rounded-xs border-2" : this.formStyle === "brand" && (i = "bg-inverse form-brand relative rounded-xs"), this.formStyle === "brand") {
|
|
4298
|
+
const r = this.parsedFields.some((y) => y && y.required && y.type !== "hidden"), a = this.parsedGroups.filter((y) => Array.isArray(n[y.id]) && n[y.id].length > 0).map((y) => t("div", { class: "form-sect", key: y.id }, t("div", { class: "form-sect-head" }, t("span", { class: "form-sect-glyph", "aria-hidden": "true" }, t("svg", { viewBox: "0 0 24 24" }, t("path", { d: "M6 4l13 7-5.5 1.5L11 18z", "stroke-linejoin": "round" }))), t("span", { class: "form-sect-label" }, y.title)), t("div", { class: "flex flex-col gap-y-24" }, n[y.id].map((A) => this.renderField(A))))), l = this.status === "closed", o = this.status === "expiring", s = l ? "Closed" : o ? "Closing soon" : "", h = l ? t("svg", { viewBox: "0 0 24 24" }, t("circle", { cx: "12", cy: "12", r: "9" }), t("path", { d: "M15 9l-6 6M9 9l6 6", "stroke-linecap": "round" })) : o ? t("svg", { viewBox: "0 0 24 24" }, t("circle", { cx: "12", cy: "12", r: "9" }), t("path", { d: "M12 8v4.5M12 16h.01", "stroke-linecap": "round" })) : null, m = l ? "is-danger" : o ? "is-warn" : "";
|
|
4299
|
+
return t("form", { class: `form-brand-card relative ${l ? "is-closed" : ""}`, ref: (y) => this.formEl = y, autocomplete: "on", onSubmit: this.handleSubmit }, t("div", { class: "form-brand-header" }, t("div", { class: "fbh-grid", "aria-hidden": "true" }), t("div", { class: `fbh-glow fbh-glow--${this.status}`, "aria-hidden": "true" }), t("div", { class: "fbh-in" }, t("div", { class: "fbh-logo" }, t("eds-logo", { variant: "negative", href: "/" })), this.eyebrow && t("span", { class: `fbh-eyebrow fbh-eyebrow--${this.status}` }, h, this.eyebrow, s ? ` · ${s}` : ""), this.title && t("h1", { class: "fbh-title" }, this.title), this.description && t("p", { class: "fbh-sub", innerHTML: this.formatDescription(this.description) }), (this.progress != null || this.expires || this.policy || this.estimatedTime || this.gdpr) && t("div", { class: "fbh-meta" }, this.progress != null && t("span", null, t("svg", { viewBox: "0 0 24 24" }, t("circle", { cx: "12", cy: "12", r: "9" }), t("path", { d: "M9 12.5l2 2 4-4" })), this.progress, "% complete"), this.expires && t("span", { class: m }, t("svg", { viewBox: "0 0 24 24" }, t("rect", { x: "4", y: "5", width: "16", height: "15", rx: "2" }), t("path", { d: "M4 9h16M8 3v4M16 3v4" })), this.expires), this.policy && t("span", null, t("svg", { viewBox: "0 0 24 24" }, t("path", { d: "M4 9a7 7 0 0112-4M20 15a7 7 0 01-12 4M16 5h4V1M8 19H4v4" })), this.policy), this.estimatedTime && t("span", null, t("svg", { viewBox: "0 0 24 24" }, t("circle", { cx: "12", cy: "12", r: "9" }), t("path", { d: "M12 8v4l3 2" })), this.estimatedTime), this.gdpr && t("span", null, t("svg", { viewBox: "0 0 24 24" }, t("path", { d: "M12 3l7 3v5c0 4.4-3 8-7 10-4-2-7-5.6-7-10V6z" }), t("path", { d: "M9 12l2 2 4-4" })), "GDPR compliant")))), t("div", { class: `form-brand-body ${l ? "form-brand-body--closed" : ""}` }, e.map((y, A) => t("eds-input", { key: A, type: "hidden", name: y.name, value: y.value })), a, n.__ungrouped && n.__ungrouped.length > 0 && t("div", { class: "form-sect form-sect--bare" }, t("div", { class: "flex flex-col gap-y-24" }, n.__ungrouped.map((y) => this.renderField(y))))), l ? t("div", { class: "form-brand-footer" }, t("span", { class: "req-note req-note--closed" }, t("svg", { viewBox: "0 0 24 24" }, t("rect", { x: "5", y: "11", width: "14", height: "9", rx: "2" }), t("path", { d: "M8 11V8a4 4 0 018 0v3" })), "Submissions closed"), t("div", { class: "form-brand-footer-actions" }, t("eds-button", { intent: "neutral", pill: !0, label: this.formBtnLabel, disabled: !0, icon: "arrow-right", size: "large" }))) : (this.formBtn || this.clearBtn || r || this.saveLabel) && t("div", { class: "form-brand-footer" }, t("div", { class: "fbf-left" }, this.saveLabel && t("span", { class: `fbf-save fbf-save--${this.saveStatus}`, role: "status", "aria-live": "polite" }, t("span", { class: "fbf-save-dot", "aria-hidden": "true" }), this.saveLabel), this.saveLabel && r && t("span", { class: "fbf-sep", "aria-hidden": "true" }), r && t("span", { class: "req-note" }, t("b", null, "*"), " Required fields")), this.showClearConfirm ? t("div", { class: "fbf-confirm" }, t("span", { class: "fbf-confirm-q" }, t("svg", { viewBox: "0 0 24 24" }, t("circle", { cx: "12", cy: "12", r: "9" }), t("path", { d: "M12 8v4.5M12 16h.01", "stroke-linecap": "round" })), "Clear everything you've typed?"), t("button", { type: "button", class: "fbf-confirm-no", onClick: () => this.showClearConfirm = !1 }, "Cancel"), t("button", { type: "button", class: "fbf-confirm-yes", onClick: (y) => {
|
|
4300
|
+
this.showClearConfirm = !1, this.handleClear(y);
|
|
4301
|
+
} }, "Yes, clear it")) : t("div", { class: "form-brand-footer-actions" }, this.clearBtn && t("button", { type: "button", class: "fbf-clear", disabled: this.isSubmitting || !this.values || Object.keys(this.values).length === 0, onClick: () => this.showClearConfirm = !0 }, this.clearBtnLabel), this.formBtn && t("eds-button", { intent: "brand", pill: !0, label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, icon: "arrow-right", size: "large", onClick: () => this.handleSubmit() }))));
|
|
4302
|
+
}
|
|
4303
|
+
return t("form", {
|
|
4304
|
+
class: i,
|
|
4305
|
+
// Inner padding defaults to 2rem (the original p-32 look) but can be
|
|
4306
|
+
// overridden per-consumer via a CSS custom property, which inherits through
|
|
4307
|
+
// the shadow boundary. A form slotted inside an already-padded container
|
|
4308
|
+
// (e.g. a multi-step eds-steps card) sets `--eds-form-padding: 0` to sit flush.
|
|
4309
|
+
style: { padding: "var(--eds-form-padding, 2rem)" },
|
|
4310
|
+
ref: (r) => this.formEl = r,
|
|
4311
|
+
autocomplete: "on",
|
|
4312
|
+
onSubmit: this.handleSubmit
|
|
4313
|
+
}, t("div", { class: "flex flex-col gap-y-20 overflow-visible" }, this.estimatedTime && t("span", { class: "form-meta-time" }, t("svg", { viewBox: "0 0 24 24", "aria-hidden": "true" }, t("circle", { cx: "12", cy: "12", r: "9" }), t("path", { d: "M12 8v4l3 2" })), this.estimatedTime), this.title && t("span", { role: "heading", class: "f-heading-05 pb-4 block" }, this.title), this.description && t("span", { class: "f-body-02 text-light", innerHTML: this.formatDescription(this.description) }), t("slot", null)), e.map((r, a) => t("eds-input", { key: a, type: "hidden", name: r.name, value: r.value })), this.parsedGroups.filter((r) => Array.isArray(n[r.id]) && n[r.id].length > 0).map((r) => t("div", { class: "mt-48", key: r.id }, t("span", { class: "f-body-02" }, t("b", null, r.title)), t("div", { class: "border-group mt-24 mb-48 flex flex-col gap-y-24" }, n[r.id].map((a) => this.renderField(a))))), t("div", { class: "flex flex-col mt-32 gap-y-24" }, n.__ungrouped.map((r) => this.renderField(r))), (this.formBtn || this.clearBtn) && t("div", { class: "mt-32 md:mt-64 flex flex-col items-center md:flex-row-reverse md:justify-between gap-y-16 md:gap-y-0" }, this.formBtn && t("eds-button", { intent: this.buttonIntent, pill: !0, label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, icon: "arrow-right", size: "large", onClick: () => this.handleSubmit() }), this.clearBtn && t("eds-button", { intent: "neutral", pill: !0, size: "large", label: this.clearBtnLabel, disabled: this.isSubmitting || !this.values || Object.keys(this.values).length === 0, onClick: (r) => this.handleClear(r) })));
|
|
4318
4314
|
}
|
|
4319
4315
|
get el() {
|
|
4320
|
-
return
|
|
4316
|
+
return w(this);
|
|
4321
4317
|
}
|
|
4322
4318
|
static get watchers() {
|
|
4323
4319
|
return {
|
|
@@ -4326,10 +4322,10 @@ const Dn = ".container{width:calc(var(--container-width, 100%) - (2 * var(--brea
|
|
|
4326
4322
|
};
|
|
4327
4323
|
}
|
|
4328
4324
|
};
|
|
4329
|
-
|
|
4330
|
-
const
|
|
4325
|
+
Dn.style = Bn;
|
|
4326
|
+
const Tn = ".bg-default{background-color:var(--grey-light)}.bg-darker{background-color:var(--grey-dark)}.bg-inverse{background-color:var(--white)}.bg-strongest{background-color:var(--brand-black)}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0rem}.z-\\[999999\\]{z-index:999999}.overflow-y-scroll{overflow-y:scroll}.flex{display:flex}.inline-flex{display:inline-flex}.min-h-full{min-height:100%}.flex-col{flex-direction:column}.w-full{width:100%}.top-0{top:0rem}.mx-auto{margin-left:auto;margin-right:auto}.mt-auto{margin-top:auto}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.mr-auto{margin-right:auto}.w-\\[250px\\]{width:250px}.h-\\[85px\\]{height:85px}.px-16{padding-left:1rem;padding-right:1rem}.py-16{padding-top:1rem;padding-bottom:1rem}.mt-28{margin-top:1.75rem}.gap-y-8{row-gap:0.5rem}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.rounded-xs{border-radius:4px}.f-heading-02{font-family:var(--f-heading-02-fontFamily);font-weight:var(--f-heading-02-fontWeight);font-size:var(--f-heading-02-fontSize);line-height:var(--f-heading-02-lineHeight);letter-spacing:var(--f-heading-02-letterSpacing)}.hover\\:text-lighter:hover{color:var(--grey-600)}.w-fit{width:-moz-fit-content;width:fit-content}.p-\\[24px\\]{padding:24px}", Vn = Tn, On = class {
|
|
4331
4327
|
constructor(e) {
|
|
4332
|
-
u(this, e), this.menuClose =
|
|
4328
|
+
u(this, e), this.menuClose = k(this, "menuClose", 7), this.links = void 0, this.menuLinks = void 0, this.homeUrl = "/", this.inverseHeader = !1, this.isMenuOpen = !1;
|
|
4333
4329
|
}
|
|
4334
4330
|
/**
|
|
4335
4331
|
* Listens on `body` for `toggleheadermenu` to open/close the menu.
|
|
@@ -4379,7 +4375,7 @@ const Bn = ".bg-default{background-color:var(--grey-light)}.bg-darker{background
|
|
|
4379
4375
|
* @returns {any[]} Array of parsed link objects
|
|
4380
4376
|
*/
|
|
4381
4377
|
get parsedLinks() {
|
|
4382
|
-
return
|
|
4378
|
+
return M(this.links);
|
|
4383
4379
|
}
|
|
4384
4380
|
/**
|
|
4385
4381
|
* Parses the `menuLinks` prop into an array of link objects.
|
|
@@ -4388,14 +4384,14 @@ const Bn = ".bg-default{background-color:var(--grey-light)}.bg-darker{background
|
|
|
4388
4384
|
* @returns {any[]} Array of parsed menu link objects
|
|
4389
4385
|
*/
|
|
4390
4386
|
get parsedMenuLinks() {
|
|
4391
|
-
return
|
|
4387
|
+
return M(this.menuLinks);
|
|
4392
4388
|
}
|
|
4393
4389
|
render() {
|
|
4394
4390
|
return this.isMenuOpen ? t("div", { role: "dialog", "aria-modal": "true", "aria-label": "Main menu", class: "eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll" }, t("div", { class: "flex min-h-full flex-col" }, t("div", { class: `w-full sticky top-0 ${this.inverseHeader ? "bg-strongest" : "bg-default"}` }, t("div", { class: "mx-auto flex items-center justify-between" }, t("div", { class: "mr-auto w-[250px]" }, t("div", { class: "p-[24px]" }, t("eds-logo", { variant: "positive", href: this.homeUrl }))), t("div", { class: "px-16" }, t("eds-button", { "aria-label": "Close menu", intent: "ghost", icon: "close", size: "large", onClick: () => this.closeMenu() })))), t("div", { class: "py-16 px-16" }, t("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedLinks.map((e, n) => t("eds-link", { label: e.label, key: n, url: e.url, intent: "secondary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "arrow-right" }))), t("eds-block-break", null), t("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedMenuLinks.map((e, n) => t("eds-link", { label: e.label, key: n, url: e.url, intent: "secondary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "chevron-right" }))), t("nav", { class: "mt-28 flex flex-col gap-y-8" }, t("slot", null))), t("div", { class: "mt-auto" }, t("eds-footer", { social: !0, "extra-class": "bg-darker" })))) : null;
|
|
4395
4391
|
}
|
|
4396
4392
|
};
|
|
4397
|
-
|
|
4398
|
-
const
|
|
4393
|
+
On.style = Vn;
|
|
4394
|
+
const Nn = `:host{display:block;width:100%}p{margin:0}ol,ul,menu{list-style:none;margin:0;padding:0}.search-wrapper{position:relative;width:100%}.search-pill{display:flex;align-items:center;gap:12px;height:48px;padding:0 18px;border-radius:999px;font-family:var(--plex-sans, 'IBM Plex Sans', system-ui, sans-serif);font-size:15px;cursor:text;transition:background 120ms ease, box-shadow 120ms ease, color 120ms ease}.search-pill .search-icon{flex-shrink:0}.search-pill .search-input{flex:1;min-width:0;border:0;background:transparent;outline:none;font:inherit;color:inherit;-webkit-appearance:none;appearance:none}.search-pill .search-input::-webkit-search-cancel-button{-webkit-appearance:none}.search-pill .search-kbd{flex-shrink:0;font-family:'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;font-size:11px;font-weight:500;line-height:1;padding:3px 6px;border-radius:4px;box-shadow:inset 0 -1px 0 rgba(0, 0, 0, 0.05);letter-spacing:0.02em}.search-pill:focus-within .search-kbd{display:none}.search-pill .search-clear{flex-shrink:0;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;border:0;border-radius:999px;background:transparent;color:inherit;cursor:pointer;opacity:0.7;transition:opacity 120ms ease, background 120ms ease}.search-pill .search-clear:hover{opacity:1;background:rgba(0, 0, 0, 0.06)}.search-pill .search-clear:focus-visible{outline:none;box-shadow:0 0 0 2px var(--brand-green, #00C87B);opacity:1}.search-pill--black .search-clear:hover{background:rgba(255, 255, 255, 0.10)}.search-pill--gray{background:var(--grey-light, #ECECEC);color:var(--grey-dark, #7A7B7A);border:0}.search-pill--gray:hover{background:#E0E0E0}.search-pill--gray .search-input{color:var(--brand-black, #07140D)}.search-pill--gray .search-input::placeholder{color:var(--grey-dark, #7A7B7A)}.search-pill--gray .search-kbd{color:var(--grey-dark, #7A7B7A);background:var(--white, #FFFFFF);border:1px solid #DCDCDC}.search-pill--gray:focus-within{background:var(--white, #FFFFFF);box-shadow:0 0 0 2px var(--brand-green, #00C87B)}.search-pill--white{background:var(--white, #FFFFFF);color:var(--grey-dark, #7A7B7A);border:1px solid var(--grey-light, #ECECEC)}.search-pill--white:hover{background:#FAFAFA}.search-pill--white .search-input{color:var(--brand-black, #07140D)}.search-pill--white .search-input::placeholder{color:var(--grey-dark, #7A7B7A)}.search-pill--white .search-kbd{color:var(--grey-dark, #7A7B7A);background:var(--grey-light, #ECECEC);border:1px solid #DCDCDC}.search-pill--white:focus-within{background:var(--white, #FFFFFF);box-shadow:0 0 0 2px var(--brand-green, #00C87B)}.search-pill--black{background:var(--brand-black, #07140D);color:rgba(255, 255, 255, 0.7);border:1px solid rgba(255, 255, 255, 0.12)}.search-pill--black:hover{background:#11221A}.search-pill--black .search-input{color:var(--white, #FFFFFF)}.search-pill--black .search-input::placeholder{color:rgba(255, 255, 255, 0.55)}.search-pill--black .search-kbd{color:rgba(255, 255, 255, 0.75);background:rgba(255, 255, 255, 0.08);border:1px solid rgba(255, 255, 255, 0.15)}.search-pill--black:focus-within{background:var(--brand-black, #07140D);box-shadow:0 0 0 2px var(--brand-green, #00C87B)}.search-dropdown{position:absolute;top:calc(100% + 8px);left:0;right:0;background:white;border:1px solid #e0e0e0;border-radius:12px;box-shadow:0 8px 24px rgba(0, 0, 0, 0.12),
|
|
4399
4395
|
0 2px 8px rgba(0, 0, 0, 0.08),
|
|
4400
4396
|
0 0 0 1px rgba(0, 255, 157, 0.08);max-height:500px;overflow:hidden;z-index:9999;display:flex;flex-direction:column;animation:dropdownFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1)}.dropdown-state{display:flex;align-items:center;justify-content:center;gap:8px;padding:24px;color:#616161;font-size:14px}.dropdown-results{list-style:none;margin:0;overflow-y:auto;overflow-x:hidden;max-height:440px}.result-item{padding:7px 7px;cursor:pointer;border-left:4px solid transparent;margin-bottom:2px;transition:all 0.25s cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden;word-wrap:break-word;word-break:break-word}.result-item:hover,.result-item--selected{background:linear-gradient(
|
|
4401
4397
|
90deg,
|
|
@@ -4406,9 +4402,9 @@ const On = `:host{display:block;width:100%}p{margin:0}ol,ul,menu{list-style:none
|
|
|
4406
4402
|
rgba(0, 255, 157, 0.02) 0%,
|
|
4407
4403
|
rgba(0, 255, 157, 0.05) 100%
|
|
4408
4404
|
);flex-shrink:0}.footer-hint{font-size:11px;color:#616161;display:flex;align-items:center;gap:6px;flex-wrap:wrap}kbd{display:inline-block;padding:3px 7px;font-size:11px;font-family:monospace;line-height:1.2;font-weight:500;color:var(--green-700);background:rgba(0, 255, 157, 0.1);border:1px solid rgba(0, 200, 123, 0.3);border-radius:4px;box-shadow:0 2px 0 rgba(0, 255, 157, 0.15),
|
|
4409
|
-
inset 0 1px 0 rgba(255, 255, 255, 0.5)}.dropdown-results::-webkit-scrollbar{width:8px}.dropdown-results::-webkit-scrollbar-track{background:rgba(0, 255, 157, 0.05);border-radius:4px}.dropdown-results::-webkit-scrollbar-thumb{background:#33FFB8;border-radius:4px}.dropdown-results::-webkit-scrollbar-thumb:hover{background:#00FF9D}.flex{display:flex}.inline-flex{display:inline-flex}.text-center{text-align:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-error{color:var(--red-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.ml-4{margin-left:0.25rem}.ml-8{margin-left:0.5rem}.ml-16{margin-left:1rem}.p-16{padding:1rem}.p-64{padding:4rem}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}`, Pn =
|
|
4405
|
+
inset 0 1px 0 rgba(255, 255, 255, 0.5)}.dropdown-results::-webkit-scrollbar{width:8px}.dropdown-results::-webkit-scrollbar-track{background:rgba(0, 255, 157, 0.05);border-radius:4px}.dropdown-results::-webkit-scrollbar-thumb{background:#33FFB8;border-radius:4px}.dropdown-results::-webkit-scrollbar-thumb:hover{background:#00FF9D}.flex{display:flex}.inline-flex{display:inline-flex}.text-center{text-align:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-error{color:var(--red-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.ml-4{margin-left:0.25rem}.ml-8{margin-left:0.5rem}.ml-16{margin-left:1rem}.p-16{padding:1rem}.p-64{padding:4rem}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}`, Pn = Nn, Rn = class {
|
|
4410
4406
|
constructor(e) {
|
|
4411
|
-
u(this, e), this.resultSelected =
|
|
4407
|
+
u(this, e), this.resultSelected = k(this, "resultSelected", 7), this.searchClosed = k(this, "searchClosed", 7), this.handleClear = () => {
|
|
4412
4408
|
this.debounceTimer && clearTimeout(this.debounceTimer), this.query = "", this.results = [], this.hasSearched = !1, this.showDropdown = !1, this.selectedIndex = -1, this.inputRef && (this.inputRef.value = "", this.inputRef.focus());
|
|
4413
4409
|
}, this.handleInput = (n) => {
|
|
4414
4410
|
var i;
|
|
@@ -4471,7 +4467,9 @@ const On = `:host{display:block;width:100%}p{margin:0}ol,ul,menu{list-style:none
|
|
|
4471
4467
|
try {
|
|
4472
4468
|
const i = {};
|
|
4473
4469
|
this.authToken && (i.Authorization = `Bearer ${this.authToken}`);
|
|
4474
|
-
const r = await fetch(`${this.apiEndpoint}?q=${encodeURIComponent(n)}&limit=${this.limit}`, {
|
|
4470
|
+
const r = await fetch(`${this.apiEndpoint}?q=${encodeURIComponent(n)}&limit=${this.limit}`, {
|
|
4471
|
+
headers: i
|
|
4472
|
+
});
|
|
4475
4473
|
if (!r.ok)
|
|
4476
4474
|
throw new Error("Search failed");
|
|
4477
4475
|
const a = await r.json();
|
|
@@ -4521,7 +4519,7 @@ const On = `:host{display:block;width:100%}p{margin:0}ol,ul,menu{list-style:none
|
|
|
4521
4519
|
return this.hasSearched && !this.loading && !this.hasResults && this.query.trim();
|
|
4522
4520
|
}
|
|
4523
4521
|
render() {
|
|
4524
|
-
return t("div", { key: "
|
|
4522
|
+
return t("div", { key: "677355c6a3318ec1197965eac1b2cd92d1068730", class: "search-wrapper" }, t("label", { key: "f5cc85b9445df11e888428bb2a0b2b4114bdc3a9", class: `search-pill search-pill--${this.variant}`, htmlFor: "search-global" }, t("svg", { key: "b95972f32833c302166af4d496d62aabbbca6b96", class: "search-icon", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, t("circle", { key: "916f6f24dc45b800fd024196cad8a5a7704715e0", cx: "11", cy: "11", r: "7" }), t("line", { key: "e73a37d14e3c5de75ff1d5e1ff3ac6dc17276884", x1: "20", y1: "20", x2: "16.5", y2: "16.5" })), t("input", { key: "e9c88b7577dbc32d700f4ccfc657ac3400c406a7", id: "search-global", class: "search-input", type: "search", name: "search-box-global", placeholder: this.placeholder, value: this.query, autoComplete: "off", onInput: this.handleInput, ref: (e) => this.inputRef = e }), this.query && this.query.length > 0 ? t("button", { type: "button", class: "search-clear", "aria-label": "Clear search", onMouseDown: (e) => e.preventDefault(), onClick: () => this.handleClear() }, t("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2.2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, t("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), t("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : t("kbd", { class: "search-kbd", "aria-hidden": "true" }, "⌘K")), this.showDropdown && t("div", { key: "bac2451a0d8e8fe44f4ee8205aac072866c071cc", class: "search-dropdown", ref: (e) => this.dropdownRef = e }, this.loading && t("div", { key: "2272670a68466fdcb7f7dbef9392c85524f26511", class: "flex text-center justify-center p-64" }, t("eds-spinner", { key: "ea08bc71e4e251110d63c1f7f0c9ec3cf4f02d31", variant: "primary", size: "sm" })), this.error && !this.loading && t("div", { key: "c54f235e8cf516715d83b830c13b7091ce10c8e5", class: "flex text-center justify-center p-16" }, t("span", { key: "5e0164e70620b1b70acbd665f72e02627758d447", class: "text-error f-body-02" }, this.error)), this.showEmpty && t("div", { key: "bc8c5dce2e1e9e0cdb46db53a94d4a06401f8c2f", class: "dropdown-state" }, t("eds-icon-wrapper", { key: "ddb1815134abfd538530de6d805006f2e629f423", name: "search" }), t("div", { key: "0fe6b3742f59bf6a9745d0c3652caeed1c9fcd0c" }, t("p", { key: "26751d170e283e85eb0fa914c7cd681281b79606", class: "f-body-02" }, "No results found"), t("p", { key: "3c5117ba70272690647141c09105ad73142d2880", class: "f-ui-04 text-lightest" }, "Try different keywords"))), this.hasResults && !this.loading && t("ul", { key: "ec4e905215fa05a2d29e3cb02325b898cc8e7e75", class: "dropdown-results" }, this.results.map((e, n) => t("li", { key: e.id, "data-index": n, class: {
|
|
4525
4523
|
"result-item": !0,
|
|
4526
4524
|
"result-item--selected": n === this.selectedIndex
|
|
4527
4525
|
}, onClick: () => this.selectResult(e), onMouseEnter: () => this.selectedIndex = n }, t("div", { class: "result-header" }, t("span", { class: "result-title f-body-02" }, e.title)), t("div", { class: "result-meta" }, e.parent_software ? [
|
|
@@ -4533,16 +4531,16 @@ const On = `:host{display:block;width:100%}p{margin:0}ol,ul,menu{list-style:none
|
|
|
4533
4531
|
] : [
|
|
4534
4532
|
t("span", { class: "result-badge" }, e.source),
|
|
4535
4533
|
e.section && t("span", { class: "result-badge" }, e.section)
|
|
4536
|
-
], t("span", { class: "result-url" }, e.url)), e.snippet && t("p", { class: "result-snippet" }, this.stripHtml(e.snippet))))), this.hasResults && !this.loading && t("div", { key: "
|
|
4534
|
+
], t("span", { class: "result-url" }, e.url)), e.snippet && t("p", { class: "result-snippet" }, this.stripHtml(e.snippet))))), this.hasResults && !this.loading && t("div", { key: "8ba2b0905762d08201d770ef4ad555b5817a93d5", class: "dropdown-footer" }, t("span", { key: "447177da436c4673c1530b63985069270eea9629", class: "footer-hint" }, t("kbd", { key: "eca68fd4c32ff1b05130322d55c6b40353d0d7e9" }, "↑"), " ", t("kbd", { key: "f0e8c800465276b7648e883f0de99389e144cbdf" }, "↓"), " navigate • ", t("kbd", { key: "a40bfd64de00d1e9e7770ae13221b84e7270a93e" }, "↵"), " select • ", t("kbd", { key: "bbc53439fad27289cdd4705a7ddb61e8d3b578ee" }, "esc"), " close"))));
|
|
4537
4535
|
}
|
|
4538
4536
|
get el() {
|
|
4539
|
-
return
|
|
4537
|
+
return w(this);
|
|
4540
4538
|
}
|
|
4541
4539
|
};
|
|
4542
4540
|
Rn.style = Pn;
|
|
4543
4541
|
const jn = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.z-10{z-index:10}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-light)}.bg-strongest{background-color:var(--brand-black)}.mr-auto{margin-right:auto}.w-\\[250px\\]{width:250px}.h-\\[85px\\]{height:85px}.p-\\[24px\\]{padding:24px}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.grow{flex-grow:1}.flex-1{flex:1 1 0%}.justify-end{justify-content:flex-end}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hidden{display:none}.gap-x-2{-moz-column-gap:0.125rem;column-gap:0.125rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.gap-8{gap:0.5rem}.after\\:effect-opacity::after{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.whitespace-nowrap{white-space:nowrap}.\\!text-current{color:currentColor !important}.overflow-hidden{overflow:hidden}.after\\:\\!border-transparent::after{border-color:var(--transparent) !important}.hover\\:after\\:\\!border-transparent:hover::after{border-color:var(--transparent) !important}.after\\:opacity-0::after{opacity:0}.hover\\:after\\:opacity-100:hover::after{opacity:1}.px-16{padding-left:1rem;padding-right:1rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}}", Wn = jn, qn = class {
|
|
4544
4542
|
constructor(e) {
|
|
4545
|
-
u(this, e), this.toggleheadermenu =
|
|
4543
|
+
u(this, e), this.toggleheadermenu = k(this, "toggleheadermenu", 7), this.url = "/", this.links = void 0, this.variant = "default", this.menu = !1, this.isMenuOpen = !1, this.isUserMenuOpen = !1;
|
|
4546
4544
|
}
|
|
4547
4545
|
componentDidLoad() {
|
|
4548
4546
|
var e, n;
|
|
@@ -4561,7 +4559,7 @@ const jn = ".block{display:block}.inline-block{display:inline-block}.inline{disp
|
|
|
4561
4559
|
this.isUserMenuOpen = !this.isUserMenuOpen;
|
|
4562
4560
|
}
|
|
4563
4561
|
get parsedLinks() {
|
|
4564
|
-
return
|
|
4562
|
+
return M(this.links);
|
|
4565
4563
|
}
|
|
4566
4564
|
render() {
|
|
4567
4565
|
const e = {
|
|
@@ -4569,10 +4567,10 @@ const jn = ".block{display:block}.inline-block{display:inline-block}.inline{disp
|
|
|
4569
4567
|
inverse: "text-default bg-inverse",
|
|
4570
4568
|
default: "text-default bg-dark"
|
|
4571
4569
|
}, n = e[this.variant] || e.default, i = this.variant === "strong" ? "negative" : "positive", r = this.variant === "strong" ? "underlineInverse" : "underline";
|
|
4572
|
-
return t("header", { key: "
|
|
4570
|
+
return t("header", { key: "7b2039f33349e19ff3f6e8519e36c73008f636ff", role: "banner", class: `flex items-center justify-between relative z-10 ${n}` }, t("div", { key: "300470c050a9f50a08cc0d964b718327ecec598f", class: "w-[250px]" }, t("div", { key: "4ff98957c7f838561b2a86b6fcf5a40a1f631d94", class: "p-[24px]" }, t("eds-logo", { key: "610e8465379fbdc9cab1d315aa11940763ba4561", variant: i, href: this.url }))), this.parsedLinks && t("nav", { key: "97e14d79eea2d69fb37785984d29167e3056c2ec", role: "navigation", "aria-label": "Primary", class: "flex-1 flex justify-center items-center hidden md:flex" }, t("ul", { key: "79a7dd5f647319b339078ad426160ebc21af733d", class: "flex gap-x-16" }, this.parsedLinks.map((a) => t("eds-link", { label: a.label, "aria-label": a.label, url: a.url, intent: r, size: "large", icon: a.icon, external: a.external })))), t("div", { key: "1da0a64c28395f3601e6e954f5ed9017525d4c2e", class: "w-[250px] flex justify-end items-center" }, t("slot", { key: "bae6c23ce8400bc5ff21c4aec71e915bde7b15f2", name: "actions" })), this.menu && t("div", { key: "9ab2466ce42dcf2136565a14522f734565bd2fbf", class: "md:hidden flex overflow-hidden px-16" }, t("eds-button", { key: "bd2e20f436a96bd28eea126e655f0c9c9976d32e", "aria-label": "Menu", intent: this.variant === "strong" ? "ghostInverse" : "ghost", icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })));
|
|
4573
4571
|
}
|
|
4574
4572
|
get hostEl() {
|
|
4575
|
-
return
|
|
4573
|
+
return w(this);
|
|
4576
4574
|
}
|
|
4577
4575
|
};
|
|
4578
4576
|
qn.style = Wn;
|
|
@@ -4607,14 +4605,14 @@ function Q(e) {
|
|
|
4607
4605
|
}
|
|
4608
4606
|
function he(e, n) {
|
|
4609
4607
|
if (e == null) return {};
|
|
4610
|
-
var i, r, a =
|
|
4608
|
+
var i, r, a = Yn(e, n);
|
|
4611
4609
|
if (Object.getOwnPropertySymbols) {
|
|
4612
4610
|
var l = Object.getOwnPropertySymbols(e);
|
|
4613
4611
|
for (r = 0; r < l.length; r++) i = l[r], n.indexOf(i) === -1 && {}.propertyIsEnumerable.call(e, i) && (a[i] = e[i]);
|
|
4614
4612
|
}
|
|
4615
4613
|
return a;
|
|
4616
4614
|
}
|
|
4617
|
-
function
|
|
4615
|
+
function Yn(e, n) {
|
|
4618
4616
|
if (e == null) return {};
|
|
4619
4617
|
var i = {};
|
|
4620
4618
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -4623,7 +4621,7 @@ function Zn(e, n) {
|
|
|
4623
4621
|
}
|
|
4624
4622
|
return i;
|
|
4625
4623
|
}
|
|
4626
|
-
function
|
|
4624
|
+
function Zn(e, n) {
|
|
4627
4625
|
if (typeof e != "object" || !e) return e;
|
|
4628
4626
|
var i = e[Symbol.toPrimitive];
|
|
4629
4627
|
if (i !== void 0) {
|
|
@@ -4634,7 +4632,7 @@ function Yn(e, n) {
|
|
|
4634
4632
|
return (n === "string" ? String : Number)(e);
|
|
4635
4633
|
}
|
|
4636
4634
|
function Kn(e) {
|
|
4637
|
-
var n =
|
|
4635
|
+
var n = Zn(e, "string");
|
|
4638
4636
|
return typeof n == "symbol" ? n : n + "";
|
|
4639
4637
|
}
|
|
4640
4638
|
var Gn = ["width", "height", "viewBox"], Xn = ["tabindex"], Jn = {
|
|
@@ -4962,7 +4960,7 @@ var Qn = {
|
|
|
4962
4960
|
}],
|
|
4963
4961
|
name: "choose-item",
|
|
4964
4962
|
size: 20
|
|
4965
|
-
},
|
|
4963
|
+
}, mt = {
|
|
4966
4964
|
elem: "svg",
|
|
4967
4965
|
attrs: {
|
|
4968
4966
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4989,7 +4987,7 @@ var Qn = {
|
|
|
4989
4987
|
}],
|
|
4990
4988
|
name: "copy--link",
|
|
4991
4989
|
size: 20
|
|
4992
|
-
},
|
|
4990
|
+
}, ut = {
|
|
4993
4991
|
elem: "svg",
|
|
4994
4992
|
attrs: {
|
|
4995
4993
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5264,7 +5262,7 @@ var Qn = {
|
|
|
5264
5262
|
}],
|
|
5265
5263
|
name: "share-knowledge",
|
|
5266
5264
|
size: 20
|
|
5267
|
-
},
|
|
5265
|
+
}, Mt = {
|
|
5268
5266
|
elem: "svg",
|
|
5269
5267
|
attrs: {
|
|
5270
5268
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5293,7 +5291,7 @@ var Qn = {
|
|
|
5293
5291
|
}],
|
|
5294
5292
|
name: "help",
|
|
5295
5293
|
size: 20
|
|
5296
|
-
},
|
|
5294
|
+
}, Ht = {
|
|
5297
5295
|
elem: "svg",
|
|
5298
5296
|
attrs: {
|
|
5299
5297
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5310,7 +5308,7 @@ var Qn = {
|
|
|
5310
5308
|
}],
|
|
5311
5309
|
name: "customer-service",
|
|
5312
5310
|
size: 20
|
|
5313
|
-
},
|
|
5311
|
+
}, $t = {
|
|
5314
5312
|
elem: "svg",
|
|
5315
5313
|
attrs: {
|
|
5316
5314
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5333,7 +5331,7 @@ var Qn = {
|
|
|
5333
5331
|
}],
|
|
5334
5332
|
name: "code",
|
|
5335
5333
|
size: 20
|
|
5336
|
-
},
|
|
5334
|
+
}, Bt = {
|
|
5337
5335
|
elem: "svg",
|
|
5338
5336
|
attrs: {
|
|
5339
5337
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5356,7 +5354,7 @@ var Qn = {
|
|
|
5356
5354
|
}],
|
|
5357
5355
|
name: "rocket",
|
|
5358
5356
|
size: 20
|
|
5359
|
-
},
|
|
5357
|
+
}, Dt = {
|
|
5360
5358
|
elem: "svg",
|
|
5361
5359
|
attrs: {
|
|
5362
5360
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5385,7 +5383,7 @@ var Qn = {
|
|
|
5385
5383
|
}],
|
|
5386
5384
|
name: "compass",
|
|
5387
5385
|
size: 20
|
|
5388
|
-
},
|
|
5386
|
+
}, Tt = {
|
|
5389
5387
|
elem: "svg",
|
|
5390
5388
|
attrs: {
|
|
5391
5389
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5419,7 +5417,7 @@ var Qn = {
|
|
|
5419
5417
|
}],
|
|
5420
5418
|
name: "search",
|
|
5421
5419
|
size: 20
|
|
5422
|
-
},
|
|
5420
|
+
}, Ot = {
|
|
5423
5421
|
elem: "svg",
|
|
5424
5422
|
attrs: {
|
|
5425
5423
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5441,7 +5439,7 @@ var Qn = {
|
|
|
5441
5439
|
}],
|
|
5442
5440
|
name: "settings",
|
|
5443
5441
|
size: 20
|
|
5444
|
-
},
|
|
5442
|
+
}, Nt = {
|
|
5445
5443
|
elem: "svg",
|
|
5446
5444
|
attrs: {
|
|
5447
5445
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5580,7 +5578,7 @@ var Qn = {
|
|
|
5580
5578
|
}],
|
|
5581
5579
|
name: "logout",
|
|
5582
5580
|
size: 20
|
|
5583
|
-
},
|
|
5581
|
+
}, Yt = {
|
|
5584
5582
|
elem: "svg",
|
|
5585
5583
|
attrs: {
|
|
5586
5584
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5597,7 +5595,7 @@ var Qn = {
|
|
|
5597
5595
|
}],
|
|
5598
5596
|
name: "group",
|
|
5599
5597
|
size: 20
|
|
5600
|
-
},
|
|
5598
|
+
}, Zt = {
|
|
5601
5599
|
elem: "svg",
|
|
5602
5600
|
attrs: {
|
|
5603
5601
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6024,7 +6022,7 @@ var Qn = {
|
|
|
6024
6022
|
}],
|
|
6025
6023
|
name: "logo--linkedin",
|
|
6026
6024
|
size: 20
|
|
6027
|
-
},
|
|
6025
|
+
}, mi = {
|
|
6028
6026
|
elem: "svg",
|
|
6029
6027
|
attrs: {
|
|
6030
6028
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6041,7 +6039,7 @@ var Qn = {
|
|
|
6041
6039
|
}],
|
|
6042
6040
|
name: "logo--facebook",
|
|
6043
6041
|
size: 20
|
|
6044
|
-
},
|
|
6042
|
+
}, ui = {
|
|
6045
6043
|
elem: "svg",
|
|
6046
6044
|
attrs: {
|
|
6047
6045
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6125,8 +6123,8 @@ const yi = {
|
|
|
6125
6123
|
documentDownload: f(Jt),
|
|
6126
6124
|
trashCan: f(gi),
|
|
6127
6125
|
chooseItem: f(pt),
|
|
6128
|
-
copyLink: f(
|
|
6129
|
-
dragHorizontal: f(
|
|
6126
|
+
copyLink: f(mt),
|
|
6127
|
+
dragHorizontal: f(ut),
|
|
6130
6128
|
dragVertical: f(xt),
|
|
6131
6129
|
login: f(qt),
|
|
6132
6130
|
logout: f(Ut),
|
|
@@ -6144,19 +6142,19 @@ const yi = {
|
|
|
6144
6142
|
forum: f(_t),
|
|
6145
6143
|
shareKnowledge: f(Lt),
|
|
6146
6144
|
time: f(ti),
|
|
6147
|
-
help: f(
|
|
6148
|
-
customerService: f(
|
|
6149
|
-
code: f(
|
|
6150
|
-
rocket: f(
|
|
6151
|
-
compass: f(
|
|
6145
|
+
help: f(Mt),
|
|
6146
|
+
customerService: f(Ht),
|
|
6147
|
+
code: f($t),
|
|
6148
|
+
rocket: f(Bt),
|
|
6149
|
+
compass: f(Dt),
|
|
6152
6150
|
// Interface
|
|
6153
|
-
menu: f(
|
|
6151
|
+
menu: f(Tt),
|
|
6154
6152
|
search: f(Vt),
|
|
6155
|
-
settings: f(
|
|
6156
|
-
notification: f(
|
|
6153
|
+
settings: f(Ot),
|
|
6154
|
+
notification: f(Nt),
|
|
6157
6155
|
user: f(Pt),
|
|
6158
|
-
group: f(
|
|
6159
|
-
save: f(
|
|
6156
|
+
group: f(Yt),
|
|
6157
|
+
save: f(Zt),
|
|
6160
6158
|
// Content
|
|
6161
6159
|
document: f(Gt),
|
|
6162
6160
|
folder: f(Qt),
|
|
@@ -6174,8 +6172,8 @@ const yi = {
|
|
|
6174
6172
|
//Social
|
|
6175
6173
|
twitter: f(bi),
|
|
6176
6174
|
linkedin: f(pi),
|
|
6177
|
-
facebook: f(
|
|
6178
|
-
youtube: f(
|
|
6175
|
+
facebook: f(mi),
|
|
6176
|
+
youtube: f(ui),
|
|
6179
6177
|
mastodon: f(xi),
|
|
6180
6178
|
bluesky: f(vi)
|
|
6181
6179
|
}, wi = ":host{display:inline-flex;align-items:center;justify-content:center}.icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.icon svg{display:block;fill:currentColor;color:inherit}.icon--16{width:16px;height:16px}.icon--16 svg{width:16px;height:16px}.icon--20{width:20px;height:20px}.icon--20 svg{width:20px;height:20px}.icon--24{width:24px;height:24px}.icon--24 svg{width:24px;height:24px}.icon--32{width:32px;height:32px}.icon--32 svg{width:32px;height:32px}", ki = wi, zi = class {
|
|
@@ -6187,7 +6185,7 @@ const yi = {
|
|
|
6187
6185
|
if (!e)
|
|
6188
6186
|
return console.warn(`Icon "${this.name}" not found in ICONS`), null;
|
|
6189
6187
|
const n = !this.label;
|
|
6190
|
-
return t(
|
|
6188
|
+
return t(Y, { role: n ? null : "img", "aria-label": n ? null : this.label, "aria-hidden": n ? "true" : null }, t("span", { class: `icon icon--${this.size}`, innerHTML: e }));
|
|
6191
6189
|
}
|
|
6192
6190
|
};
|
|
6193
6191
|
zi.style = ki;
|
|
@@ -6288,21 +6286,21 @@ video {
|
|
|
6288
6286
|
}
|
|
6289
6287
|
render() {
|
|
6290
6288
|
const e = {};
|
|
6291
|
-
return this.lazyload && (e.loading = "lazy", e.decoding = "async"), t("div", { key: "
|
|
6289
|
+
return this.lazyload && (e.loading = "lazy", e.decoding = "async"), t("div", { key: "2b9ac7ccd4ed8b525c368059ec0c99fce03e5367", class: {
|
|
6292
6290
|
"items-center justify-center": !0,
|
|
6293
6291
|
"effect-bg-pattern": this.lazyload && this.showBg
|
|
6294
|
-
} }, t("picture", { key: "
|
|
6292
|
+
} }, t("picture", { key: "fe98dc4ac3197c0cd363ce6ed34ff33ad655de3b" }, this.formats.map((n) => t("source", { type: n.type, srcSet: n.srcset, media: n.media, sizes: this.sizes })), t("img", Object.assign({ key: "48cd85fd0bbbf5155fdac71de07a20214399080b", ref: (n) => this.img = n, class: {
|
|
6295
6293
|
"effect-opacity object-cover object-center": !0,
|
|
6296
6294
|
"opacity-100": this.loaded,
|
|
6297
6295
|
"opacity-0": !this.loaded
|
|
6298
6296
|
}, width: this.width, height: this.height, sizes: this.sizes, src: this.src, srcSet: this.srcset, alt: this.alt }, e, { onLoad: this.handleLoad, onError: this.handleError, onTransitionEnd: this.handleTransitionEnd }))));
|
|
6299
6297
|
}
|
|
6300
6298
|
get imgElement() {
|
|
6301
|
-
return
|
|
6299
|
+
return w(this);
|
|
6302
6300
|
}
|
|
6303
6301
|
};
|
|
6304
6302
|
Ei.style = Ci;
|
|
6305
|
-
const
|
|
6303
|
+
const ha = class {
|
|
6306
6304
|
constructor(e) {
|
|
6307
6305
|
u(this, e), this.handleInput = (n) => {
|
|
6308
6306
|
const i = n.target;
|
|
@@ -6320,7 +6318,7 @@ const ca = class {
|
|
|
6320
6318
|
}
|
|
6321
6319
|
render() {
|
|
6322
6320
|
const e = !!this.icon, n = this.hasMessage || this.error ? `${this.name}-error` : "";
|
|
6323
|
-
return t("div", { key: "
|
|
6321
|
+
return t("div", { key: "6456b8536db4d219eb307603c986e0aca4867a66", class: "relative flex items-center" }, this.type === "textarea" ? t("textarea", { id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, class: `min-h-80 input input-textarea ${e ? "input-with-icon" : ""} ${this.error ? "input-error" : ""} ${this.extraClass}`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": n, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }) : this.type === "select" ? t("select", { id: this.inputId || this.name, name: this.name, required: this.required, disabled: this.disabled, class: `input input-select ${this.error ? "input-error" : ""} ${this.extraClass}`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": n, onInput: this.handleInput, onChange: this.handleInput }, this.options.map((i) => t("option", { value: i.value, selected: i.value === this.innerVal, key: i.value }, i.label))) : t("input", Object.assign({ id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, type: this.type, tabindex: this.inputTabIndex, checked: ["radio", "checkbox"].includes(this.type) ? this.checked : void 0 }, this.type === "number" ? {
|
|
6324
6322
|
min: this.min,
|
|
6325
6323
|
max: this.max,
|
|
6326
6324
|
step: this.step
|
|
@@ -6329,10 +6327,10 @@ const ca = class {
|
|
|
6329
6327
|
input ${this.type === "radio" ? "input-radio" : this.type === "checkbox" ? "input-checkbox" : ""}
|
|
6330
6328
|
${e && this.type !== "radio" && this.type !== "checkbox" ? "input-icon pl-36" : ""}
|
|
6331
6329
|
${this.error ? "input-error" : ""}
|
|
6332
|
-
`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": n, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })), this.maxLength && this.type === "textarea" && t("span", { key: "
|
|
6330
|
+
`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": n, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })), this.maxLength && this.type === "textarea" && t("span", { key: "216f52d80eefa2f89e388e020e597493015ae8d6", class: `input-counter f-ui-05 absolute bottom-8 right-8 ${this.maxLengthReached ? "input-counter-error" : ""}` }, this.maxLength), this.icon && t("eds-icon-wrapper", { key: "d3771580564237c9a8ded4e07f4293517bc885fd", class: `absolute top-1/2 left-[12px] -translate-y-1/2 ${this.disabled, "text-lightest"}`, name: this.icon }));
|
|
6333
6331
|
}
|
|
6334
6332
|
get el() {
|
|
6335
|
-
return
|
|
6333
|
+
return w(this);
|
|
6336
6334
|
}
|
|
6337
6335
|
static get watchers() {
|
|
6338
6336
|
return {
|
|
@@ -6341,7 +6339,7 @@ const ca = class {
|
|
|
6341
6339
|
}
|
|
6342
6340
|
}, Fi = ".eds-input-dropzone-container{display:flex;flex-direction:column;align-items:flex-start;gap:0.75rem;max-width:100%}.eds-input-dropzone-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.eds-input-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;width:100%;min-height:200px;padding:2rem;border:2px dashed var(--color-border-soft, #d0d0d0);border-radius:8px;background-color:var(--color-bg-inverse, #ffffff);cursor:pointer;transition:all 0.2s ease;outline:none;box-sizing:border-box}.eds-input-dropzone:hover:not(.disabled){border-color:var(--color-border-strong, #07140D);background-color:var(--color-bg-softer, #ECECEC)}.eds-input-dropzone.dragging:not(.disabled){border-color:var(--color-accent, #00FF9D);background-color:var(--color-bg-softest, #F8F8F8);border-width:3px}.eds-input-dropzone.disabled{opacity:0.5;cursor:not-allowed;background-color:var(--color-bg-disabled, #f5f5f5)}.eds-input-dropzone:focus-visible{outline:2px solid var(--color-accent, #00FF9D);outline-offset:2px}.dropzone-icon{width:48px;height:48px;color:var(--color-text-light, #7A7B7A);flex-shrink:0}.eds-input-dropzone.dragging .dropzone-icon{color:var(--color-accent, #00FF9D)}.dropzone-text{display:flex;flex-direction:column;align-items:center;gap:0.25rem;text-align:center}.dropzone-primary{font-family:var(--font-family, 'IBM Plex Sans', sans-serif);font-size:1rem;font-weight:500;color:var(--color-text-default, #07140D);margin:0}.dropzone-secondary{font-family:var(--font-family, 'IBM Plex Sans', sans-serif);font-size:0.875rem;font-weight:400;color:var(--color-text-light, #7A7B7A);margin:0}.eds-input-dropzone-chips{display:flex;flex-wrap:wrap;gap:0.5rem;width:100%}.eds-input-dropzone-chip{display:inline-flex;align-items:center;gap:0.5rem;padding:0.4rem 0.75rem;background-color:var(--color-bg-softer, #ECECEC);border-radius:100px;font-size:0.75rem;color:var(--color-text-default, #07140D)}.file-chip-icon{width:14px;height:14px;color:var(--color-text-light, #7A7B7A);flex-shrink:0}.eds-input-dropzone-chip-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}.eds-input-dropzone-chip-size{font-family:var(--font-family-mono, 'IBM Plex Mono', monospace);font-size:0.625rem;color:var(--color-text-light, #7A7B7A);flex-shrink:0}.eds-input-dropzone-chip-remove{display:flex;align-items:center;justify-content:center;width:14px;height:14px;padding:0;border:none;background:transparent;color:var(--color-text-light, #7A7B7A);cursor:pointer;transition:color 0.2s ease;flex-shrink:0}.eds-input-dropzone-chip-remove:hover:not(:disabled){color:var(--color-error, #e53935)}.eds-input-dropzone-chip-remove:disabled{opacity:0.5;cursor:not-allowed}.eds-input-dropzone-chip-remove svg{width:14px;height:14px}@media (max-width: 640px){.eds-input-dropzone{min-height:160px;padding:1.5rem}.dropzone-icon{width:40px;height:40px}.dropzone-primary{font-size:0.875rem}.dropzone-secondary{font-size:0.75rem}.eds-input-dropzone-chip-name{max-width:120px}}", Ai = Fi, Ii = class {
|
|
6343
6341
|
constructor(e) {
|
|
6344
|
-
u(this, e), this.edsfile =
|
|
6342
|
+
u(this, e), this.edsfile = k(this, "edsfile", 7), this.handleDropzoneClick = () => {
|
|
6345
6343
|
var n;
|
|
6346
6344
|
this.disabled || (n = this.fileInputRef) === null || n === void 0 || n.click();
|
|
6347
6345
|
}, this.handleFileSelect = (n) => {
|
|
@@ -6385,10 +6383,10 @@ const ca = class {
|
|
|
6385
6383
|
}
|
|
6386
6384
|
render() {
|
|
6387
6385
|
const e = `eds-input-dropzone ${this.isDragging ? "dragging" : ""} ${this.disabled ? "disabled" : ""}`;
|
|
6388
|
-
return t("div", { key: "
|
|
6386
|
+
return t("div", { key: "3a6f1876c879e361934a9e8730afe9d14a50d8e2", class: "eds-input-dropzone-container" }, t("input", { key: "293c9d66be6da5cf34b470f00468b3ede6abfb35", ref: (n) => this.fileInputRef = n, type: "file", id: this.inputId || this.name, name: this.name, class: "eds-input-dropzone-hidden", disabled: this.disabled, required: this.required, multiple: this.multiple, accept: this.accept, onChange: this.handleFileSelect }), t("div", { key: "56457ccacc1e643258447ee929bdeb6b0e6e4fe7", class: e, onClick: this.handleDropzoneClick, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, onDrop: this.handleDrop }, t("svg", { key: "017fa615ec5b04dd3edd65d2e064ea58039d422b", class: "dropzone-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, t("path", { key: "796dee372172d244dae644cab2136fce784e0865", d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), t("polyline", { key: "cdd841be70c9a89c6040909797da1277b1ce244b", points: "17 8 12 3 7 8" }), t("line", { key: "b4a8af3db664bdebd0c9651e4c806811ea21d905", x1: "12", y1: "3", x2: "12", y2: "15" })), t("div", { key: "5c799c8a751b06c743f4fc7c1810a91f35307d46", class: "dropzone-text" }, t("p", { key: "0d3971953c6f472bbde247378fccb4171606872d", class: "dropzone-primary" }, this.primaryText), t("p", { key: "c64910c2d7ba60e6d315fa2831aca54faba84a79", class: "dropzone-secondary" }, this.secondaryText))), this.selectedFiles.length > 0 && t("div", { key: "b6f19ccc0304ba8a4369c95e86a61ad084dd9256", class: "eds-input-dropzone-chips" }, this.selectedFiles.map((n) => t("div", { key: n.id, class: "eds-input-dropzone-chip" }, this.getFileIcon(n.file.name), t("span", { class: "eds-input-dropzone-chip-name" }, n.file.name), t("span", { class: "eds-input-dropzone-chip-size" }, this.formatFileSize(n.file.size)), t("button", { type: "button", class: "eds-input-dropzone-chip-remove", onClick: () => this.handleRemoveFile(n.id), disabled: this.disabled, "aria-label": `Remove ${n.file.name}` }, t("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, t("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), t("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))))));
|
|
6389
6387
|
}
|
|
6390
6388
|
get hostEl() {
|
|
6391
|
-
return
|
|
6389
|
+
return w(this);
|
|
6392
6390
|
}
|
|
6393
6391
|
};
|
|
6394
6392
|
Ii.style = Ai;
|
|
@@ -12275,6 +12273,17 @@ video {
|
|
|
12275
12273
|
.input::placeholder {
|
|
12276
12274
|
color: var(--grey-500);
|
|
12277
12275
|
}
|
|
12276
|
+
/* A <select> has no ::placeholder — when no option is chosen yet it shows the
|
|
12277
|
+
placeholder <option> in the normal dark text colour, which looks heavier than
|
|
12278
|
+
text-input placeholders. is-placeholder (set by eds-input-select while empty)
|
|
12279
|
+
matches them by rendering the closed select in grey-500; real options in the
|
|
12280
|
+
open dropdown stay dark for readability. */
|
|
12281
|
+
.input.is-placeholder {
|
|
12282
|
+
color: var(--grey-500);
|
|
12283
|
+
}
|
|
12284
|
+
.input.is-placeholder option {
|
|
12285
|
+
color: var(--brand-black);
|
|
12286
|
+
}
|
|
12278
12287
|
.input {
|
|
12279
12288
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
12280
12289
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -12766,6 +12775,9 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
12766
12775
|
.mt-8 {
|
|
12767
12776
|
margin-top: 0.5rem;
|
|
12768
12777
|
}
|
|
12778
|
+
.mb-8 {
|
|
12779
|
+
margin-bottom: 0.5rem;
|
|
12780
|
+
}
|
|
12769
12781
|
.mt-auto {
|
|
12770
12782
|
margin-top: auto;
|
|
12771
12783
|
}
|
|
@@ -14162,9 +14174,214 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
14162
14174
|
}
|
|
14163
14175
|
}
|
|
14164
14176
|
|
|
14165
|
-
|
|
14177
|
+
/* ============================================================
|
|
14178
|
+
Field input styling — the new "brand form" look, applied to
|
|
14179
|
+
every field type rendered through eds-input-field (the wrapper).
|
|
14180
|
+
Element+class selectors (input.input / textarea.input / select.input)
|
|
14181
|
+
beat the global utility-based \`.input\` reliably. Focus colour reads
|
|
14182
|
+
--eds-field-accent (set by eds-form's brand body) and falls back to
|
|
14183
|
+
the brand-green-dark default, so this looks consistent everywhere.
|
|
14184
|
+
============================================================ */
|
|
14185
|
+
|
|
14186
|
+
/* Text-like inputs + select box.
|
|
14187
|
+
NB: radio/checkbox/range also carry the \`.input\` class, so they're excluded
|
|
14188
|
+
here (otherwise the box sizing would balloon them) — they're styled below. */
|
|
14189
|
+
input.input:not([type='radio']):not([type='checkbox']):not([type='range']),
|
|
14190
|
+
textarea.input,
|
|
14191
|
+
select.input {
|
|
14192
|
+
min-height: 50px;
|
|
14193
|
+
padding: 0 16px;
|
|
14194
|
+
border: 1px solid var(--line-color, #e2e2e2);
|
|
14195
|
+
border-radius: 10px;
|
|
14196
|
+
background: var(--white, #ffffff);
|
|
14197
|
+
color: var(--brand-black, #07140d);
|
|
14198
|
+
box-shadow: none;
|
|
14199
|
+
transition: border-color 0.14s ease, box-shadow 0.14s ease;
|
|
14200
|
+
}
|
|
14201
|
+
|
|
14202
|
+
/* Leading-icon inputs: restore the left padding that clears the icon (the icon
|
|
14203
|
+
sits absolutely at left:12px). The \`.input-icon\` + full :not() chain out-
|
|
14204
|
+
specifies the \`padding: 0 16px\` rule above, which would otherwise let the
|
|
14205
|
+
placeholder / text sit under the icon. */
|
|
14206
|
+
input.input.input-icon:not([type='radio']):not([type='checkbox']):not([type='range']) {
|
|
14207
|
+
padding-left: 42px;
|
|
14208
|
+
}
|
|
14209
|
+
|
|
14210
|
+
input.input:not([type='radio']):not([type='checkbox']):not([type='range'])::placeholder,
|
|
14211
|
+
textarea.input::placeholder {
|
|
14212
|
+
color: #a9aba9;
|
|
14213
|
+
}
|
|
14214
|
+
|
|
14215
|
+
input.input:not([type='radio']):not([type='checkbox']):not([type='range']):hover,
|
|
14216
|
+
textarea.input:hover,
|
|
14217
|
+
select.input:hover {
|
|
14218
|
+
border-color: #c9ccca;
|
|
14219
|
+
}
|
|
14220
|
+
|
|
14221
|
+
input.input:not([type='radio']):not([type='checkbox']):not([type='range']):focus,
|
|
14222
|
+
input.input:not([type='radio']):not([type='checkbox']):not([type='range']):focus-visible,
|
|
14223
|
+
textarea.input:focus,
|
|
14224
|
+
textarea.input:focus-visible,
|
|
14225
|
+
select.input:focus,
|
|
14226
|
+
select.input:focus-visible {
|
|
14227
|
+
outline: none;
|
|
14228
|
+
border-color: var(--eds-field-accent, #00c87b);
|
|
14229
|
+
box-shadow: 0 0 0 3px var(--eds-field-focus-ring, rgba(0, 200, 123, 0.16));
|
|
14230
|
+
}
|
|
14231
|
+
|
|
14232
|
+
input.input:not([type='radio']):not([type='checkbox']):not([type='range']):disabled,
|
|
14233
|
+
textarea.input:disabled,
|
|
14234
|
+
select.input:disabled {
|
|
14235
|
+
background: #f7f7f7;
|
|
14236
|
+
color: #a9aba9;
|
|
14237
|
+
cursor: not-allowed;
|
|
14238
|
+
}
|
|
14239
|
+
|
|
14240
|
+
/* Textarea — taller, top-aligned, resizable */
|
|
14241
|
+
textarea.input,
|
|
14242
|
+
textarea.input-textarea {
|
|
14243
|
+
min-height: 108px;
|
|
14244
|
+
padding: 14px 16px;
|
|
14245
|
+
line-height: 1.55;
|
|
14246
|
+
resize: vertical;
|
|
14247
|
+
align-items: flex-start;
|
|
14248
|
+
}
|
|
14249
|
+
|
|
14250
|
+
/* Select — keep room for the chevron the select renders on the right */
|
|
14251
|
+
select.input,
|
|
14252
|
+
select.input-select {
|
|
14253
|
+
padding-right: 44px;
|
|
14254
|
+
cursor: pointer;
|
|
14255
|
+
}
|
|
14256
|
+
|
|
14257
|
+
/* Range — not a boxed input; a clean track (green fill is painted inline
|
|
14258
|
+
by eds-input-range up to the current value) */
|
|
14259
|
+
input[type='range'].input {
|
|
14260
|
+
min-height: 0;
|
|
14261
|
+
height: 6px;
|
|
14262
|
+
padding: 0;
|
|
14263
|
+
border: none;
|
|
14264
|
+
border-radius: 3px;
|
|
14265
|
+
box-shadow: none;
|
|
14266
|
+
}
|
|
14267
|
+
input[type='range'].input:focus,
|
|
14268
|
+
input[type='range'].input:focus-visible {
|
|
14269
|
+
outline: none;
|
|
14270
|
+
border: none;
|
|
14271
|
+
box-shadow: none;
|
|
14272
|
+
}
|
|
14273
|
+
|
|
14274
|
+
/* Range thumb — brand-black knob with a green ring (matches the mockup). */
|
|
14275
|
+
input[type='range'].input::-webkit-slider-thumb {
|
|
14276
|
+
-webkit-appearance: none;
|
|
14277
|
+
appearance: none;
|
|
14278
|
+
width: 20px;
|
|
14279
|
+
height: 20px;
|
|
14280
|
+
border-radius: 50%;
|
|
14281
|
+
background: var(--brand-black, #07140d);
|
|
14282
|
+
border: 3px solid var(--eds-field-accent, #00c87b);
|
|
14283
|
+
cursor: pointer;
|
|
14284
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
14285
|
+
}
|
|
14286
|
+
input[type='range'].input::-moz-range-thumb {
|
|
14287
|
+
width: 18px;
|
|
14288
|
+
height: 18px;
|
|
14289
|
+
border-radius: 50%;
|
|
14290
|
+
background: var(--brand-black, #07140d);
|
|
14291
|
+
border: 3px solid var(--eds-field-accent, #00c87b);
|
|
14292
|
+
cursor: pointer;
|
|
14293
|
+
}
|
|
14294
|
+
|
|
14295
|
+
/* Range layout: value readout (top-right) + min/mid/max scale (below). */
|
|
14296
|
+
.eds-range {
|
|
14297
|
+
display: flex;
|
|
14298
|
+
flex-direction: column;
|
|
14299
|
+
padding-top: 6px;
|
|
14300
|
+
}
|
|
14301
|
+
.eds-range-top {
|
|
14302
|
+
display: flex;
|
|
14303
|
+
justify-content: flex-end;
|
|
14304
|
+
margin-bottom: 12px;
|
|
14305
|
+
}
|
|
14306
|
+
.eds-range-val {
|
|
14307
|
+
font-family: 'IBM Plex Mono', ui-monospace, monospace;
|
|
14308
|
+
font-size: 15px;
|
|
14309
|
+
font-weight: 500;
|
|
14310
|
+
color: var(--eds-field-accent, #00c87b);
|
|
14311
|
+
font-variant-numeric: tabular-nums;
|
|
14312
|
+
}
|
|
14313
|
+
.eds-range-scale {
|
|
14314
|
+
display: flex;
|
|
14315
|
+
justify-content: space-between;
|
|
14316
|
+
font-family: 'IBM Plex Mono', ui-monospace, monospace;
|
|
14317
|
+
font-size: 10px;
|
|
14318
|
+
color: #7a7b7a;
|
|
14319
|
+
margin-top: 10px;
|
|
14320
|
+
}
|
|
14321
|
+
|
|
14322
|
+
/* Radio & checkbox — brand-green when selected (white mark stays) */
|
|
14323
|
+
input.input-radio:checked,
|
|
14324
|
+
input.input-checkbox:checked {
|
|
14325
|
+
background-color: var(--eds-field-accent, #00c87b);
|
|
14326
|
+
border-color: var(--eds-field-accent, #00c87b);
|
|
14327
|
+
}
|
|
14328
|
+
|
|
14329
|
+
/* Radio / checkbox options as selectable cards (matches the brand mockup).
|
|
14330
|
+
:has(input:checked) works because eds-input is light-DOM, so there's no
|
|
14331
|
+
shadow boundary between the card and the control. */
|
|
14332
|
+
.eds-option-list {
|
|
14333
|
+
display: flex;
|
|
14334
|
+
flex-direction: column;
|
|
14335
|
+
gap: 11px;
|
|
14336
|
+
border: 0;
|
|
14337
|
+
padding: 0;
|
|
14338
|
+
margin: 0;
|
|
14339
|
+
}
|
|
14340
|
+
|
|
14341
|
+
.eds-option-card {
|
|
14342
|
+
display: flex;
|
|
14343
|
+
align-items: center;
|
|
14344
|
+
gap: 11px;
|
|
14345
|
+
padding: 13px 15px;
|
|
14346
|
+
border: 1px solid var(--line-color, #e2e2e2);
|
|
14347
|
+
border-radius: 10px;
|
|
14348
|
+
cursor: pointer;
|
|
14349
|
+
font-size: 14.5px;
|
|
14350
|
+
transition: border-color 0.14s ease, background-color 0.14s ease,
|
|
14351
|
+
box-shadow 0.14s ease;
|
|
14352
|
+
}
|
|
14353
|
+
|
|
14354
|
+
.eds-option-card:hover {
|
|
14355
|
+
border-color: #c9ccca;
|
|
14356
|
+
background: #fcfefd;
|
|
14357
|
+
}
|
|
14358
|
+
|
|
14359
|
+
.eds-option-card:has(input:checked) {
|
|
14360
|
+
border-color: var(--eds-field-accent, #00c87b);
|
|
14361
|
+
background: rgba(0, 255, 157, 0.05);
|
|
14362
|
+
box-shadow: 0 0 0 2px var(--eds-field-card-ring, rgba(0, 255, 157, 0.12));
|
|
14363
|
+
}
|
|
14364
|
+
|
|
14365
|
+
.eds-option-card.is-disabled {
|
|
14366
|
+
cursor: not-allowed;
|
|
14367
|
+
opacity: 0.6;
|
|
14368
|
+
}
|
|
14369
|
+
|
|
14370
|
+
.eds-option-text {
|
|
14371
|
+
flex: 0 1 auto;
|
|
14372
|
+
}
|
|
14373
|
+
|
|
14374
|
+
.eds-option-help {
|
|
14375
|
+
margin-left: auto;
|
|
14376
|
+
font-family: 'IBM Plex Mono', monospace;
|
|
14377
|
+
font-size: 10px;
|
|
14378
|
+
letter-spacing: 0.04em;
|
|
14379
|
+
color: #8a8c8a;
|
|
14380
|
+
}
|
|
14381
|
+
|
|
14382
|
+
`, Li = _i, Mi = class {
|
|
14166
14383
|
constructor(e) {
|
|
14167
|
-
u(this, e), this.edsinput =
|
|
14384
|
+
u(this, e), this.edsinput = k(this, "edsinput", 7), this.edschange = k(this, "edschange", 7), this.handleNativeInput = (n) => {
|
|
14168
14385
|
var i, r;
|
|
14169
14386
|
if ((i = this.onInput) === null || i === void 0 || i.call(this, n), this.shouldEmitValue()) {
|
|
14170
14387
|
const a = n.target;
|
|
@@ -14226,7 +14443,13 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
14226
14443
|
icon: this.type === "text" ? this.icon : void 0,
|
|
14227
14444
|
checked: this.checked
|
|
14228
14445
|
}, this.type === "number" ? { min: this.min, max: this.max, step: this.step } : {});
|
|
14229
|
-
return t("div", { key: "
|
|
14446
|
+
return t("div", { key: "2f4fc787a53ec8b3afcd8a6c372075e9c077e220" }, this.type === "checkbox" || this.type === "radio" ? this.parsedOptions.length > 0 ? t("fieldset", { class: "eds-option-list" }, (this.label || this.hint) && t("div", { class: "flex justify-between mb-12" }, this.label && t("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required }), this.hint && t("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint)), this.parsedOptions.map((n) => (
|
|
14447
|
+
// Each option is a selectable card. The native control lives in
|
|
14448
|
+
// eds-input (light DOM), so the card highlights via :has(input:checked)
|
|
14449
|
+
// — no JS state needed. The label wraps the control, so clicking
|
|
14450
|
+
// anywhere on the card toggles it.
|
|
14451
|
+
t("label", { class: `eds-option-card ${this.disabled ? "is-disabled" : ""}`, key: n.value }, t("eds-input", Object.assign({}, e, { inputId: `${this.inputId || this.name}-${n.value}`, inputTabIndex: 0, value: n.value, checked: typeof this.value == "string" && this.value.split(",").includes(String(n.value)) })), t("span", { class: "eds-option-text" }, n.label), n.description && t("span", { class: "eds-option-help" }, n.description))
|
|
14452
|
+
))) : t("div", { class: "flex items-center gap-x-8" }, t("eds-input", Object.assign({}, e, { inputTabIndex: 0, value: this.value, checked: this.value === "on" || this.checked })), this.label && t("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })) : t("div", null, (this.label || this.hint) && t("div", { class: "flex justify-between mb-8" }, this.label && t("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }), this.hint && t("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint)), this.type === "select" ? t("eds-input-select", Object.assign({}, e, { options: this.parsedOptions })) : this.type === "file" ? t("eds-input-file", { name: this.name, inputId: this.inputId, disabled: this.disabled, required: this.required, multiple: !0, onEdsfile: this.handleFileChange }) : this.type === "dropzone" ? t("eds-input-dropzone", { name: this.name, inputId: this.inputId, disabled: this.disabled, required: this.required, multiple: !0, onEdsfile: this.handleFileChange }) : this.type === "range" ? (() => {
|
|
14230
14453
|
var n, i, r, a, l, o;
|
|
14231
14454
|
const s = {
|
|
14232
14455
|
name: e.name,
|
|
@@ -14235,21 +14458,21 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
14235
14458
|
required: e.required,
|
|
14236
14459
|
onInput: e.onInput,
|
|
14237
14460
|
onChange: e.onChange
|
|
14238
|
-
}, h = this.parsedOptions,
|
|
14239
|
-
return t("eds-input-range", Object.assign({}, s, { min: (n = this.min) !== null && n !== void 0 ? n : (i = h[0]) === null || i === void 0 ? void 0 : i.value, max: (r = this.max) !== null && r !== void 0 ? r : (a = h[1]) === null || a === void 0 ? void 0 : a.value, step: (l = this.step) !== null && l !== void 0 ? l : (o = h[2]) === null || o === void 0 ? void 0 : o.value, value:
|
|
14240
|
-
})() : t("eds-input", Object.assign({}, e))), t("div", { key: "
|
|
14461
|
+
}, h = this.parsedOptions, m = typeof this.value == "string" ? parseFloat(this.value) : this.value;
|
|
14462
|
+
return t("eds-input-range", Object.assign({}, s, { min: (n = this.min) !== null && n !== void 0 ? n : (i = h[0]) === null || i === void 0 ? void 0 : i.value, max: (r = this.max) !== null && r !== void 0 ? r : (a = h[1]) === null || a === void 0 ? void 0 : a.value, step: (l = this.step) !== null && l !== void 0 ? l : (o = h[2]) === null || o === void 0 ? void 0 : o.value, value: m }));
|
|
14463
|
+
})() : t("eds-input", Object.assign({}, e))), t("div", { key: "33bfae3f5ef4a8a1a0c529fade0d1a8616eff100", class: "mt-8" }, t("eds-input-footer", { key: "c4b6b192d052c486965b9b89fc6756324138975c", id: `${this.name}-footer`, name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link })));
|
|
14241
14464
|
}
|
|
14242
14465
|
static get delegatesFocus() {
|
|
14243
14466
|
return !0;
|
|
14244
14467
|
}
|
|
14245
14468
|
get hostEl() {
|
|
14246
|
-
return
|
|
14469
|
+
return w(this);
|
|
14247
14470
|
}
|
|
14248
14471
|
};
|
|
14249
|
-
|
|
14250
|
-
const
|
|
14472
|
+
Mi.style = Li;
|
|
14473
|
+
const Hi = ".eds-input-file-container{display:flex;flex-direction:column;align-items:flex-start;gap:0.75rem}.eds-input-file-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.eds-input-file-btn{display:inline-flex;align-items:center;gap:0.5rem;padding:0.75rem 1.25rem;border:1.5px solid var(--color-border-soft, #d0d0d0);border-radius:100px;background-color:var(--color-bg-inverse, #ffffff);font-family:var(--font-family, 'IBM Plex Sans', sans-serif);font-size:0.875rem;font-weight:500;color:var(--color-text-default, #07140D);cursor:pointer;transition:all 0.2s ease;outline:none}.eds-input-file-btn:hover:not(:disabled){border-color:var(--color-border-strong, #07140D);background-color:var(--color-bg-softer, #ECECEC)}.eds-input-file-btn:active:not(:disabled){background-color:var(--color-bg-soft, #F5F5F5)}.eds-input-file-btn:focus-visible{outline:2px solid var(--color-accent, #00FF9D);outline-offset:2px}.eds-input-file-btn:disabled{opacity:0.5;cursor:not-allowed}.eds-input-file-btn svg{width:16px;height:16px;flex-shrink:0}.eds-input-file-chips{display:flex;flex-wrap:wrap;gap:0.5rem}.eds-input-file-chip{display:inline-flex;align-items:center;gap:0.5rem;padding:0.4rem 0.75rem;background-color:var(--color-bg-softer, #ECECEC);border-radius:100px;font-size:0.75rem;color:var(--color-text-default, #07140D)}.eds-input-file-chip-icon{width:14px;height:14px;color:var(--color-text-light, #7A7B7A);flex-shrink:0}.eds-input-file-chip-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}.eds-input-file-chip-size{font-family:var(--font-family-mono, 'IBM Plex Mono', monospace);font-size:0.625rem;color:var(--color-text-light, #7A7B7A);flex-shrink:0}.eds-input-file-chip-remove{display:flex;align-items:center;justify-content:center;width:14px;height:14px;padding:0;border:none;background:transparent;color:var(--color-text-light, #7A7B7A);cursor:pointer;transition:color 0.2s ease;flex-shrink:0}.eds-input-file-chip-remove:hover:not(:disabled){color:var(--color-error, #e53935)}.eds-input-file-chip-remove:disabled{opacity:0.5;cursor:not-allowed}.eds-input-file-chip-remove svg{width:14px;height:14px}@media (max-width: 640px){.eds-input-file-chip-name{max-width:120px}}", $i = Hi, Bi = class {
|
|
14251
14474
|
constructor(e) {
|
|
14252
|
-
u(this, e), this.edsfile =
|
|
14475
|
+
u(this, e), this.edsfile = k(this, "edsfile", 7), this.handleButtonClick = () => {
|
|
14253
14476
|
var n;
|
|
14254
14477
|
(n = this.fileInputRef) === null || n === void 0 || n.click();
|
|
14255
14478
|
}, this.handleFileSelect = (n) => {
|
|
@@ -14282,34 +14505,34 @@ const Mi = ".eds-input-file-container{display:flex;flex-direction:column;align-i
|
|
|
14282
14505
|
}
|
|
14283
14506
|
render() {
|
|
14284
14507
|
const e = this.buttonLabel || (this.multiple ? "Choose Files" : "Choose File");
|
|
14285
|
-
return t("div", { key: "
|
|
14508
|
+
return t("div", { key: "810e30b054b1a6a43c9cc79e318ae487679de1d7", class: "eds-input-file-container" }, t("input", { key: "21a2162df7e6cc430b230407891bd1568bb4fe18", ref: (n) => this.fileInputRef = n, type: "file", id: this.inputId || this.name, name: this.name, class: "eds-input-file-hidden", disabled: this.disabled, required: this.required, multiple: this.multiple, accept: this.accept, onChange: this.handleFileSelect }), t("button", { key: "d297cf5c5e63c002558e878a140b931a68a25f54", type: "button", class: "eds-input-file-btn", onClick: this.handleButtonClick, disabled: this.disabled }, t("svg", { key: "eb08b7516dce89647e28ca0c0ec1f70ade64b2cd", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, t("path", { key: "b0eefaf19325e60d5f974039644f8ab962bbfe92", d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), t("polyline", { key: "d0bfb65f3c6e3e9d019d23e94ceeb08ba3f6976e", points: "17 8 12 3 7 8" }), t("line", { key: "3e7b0172924b54c26b9100ea264e85be73beabe9", x1: "12", y1: "3", x2: "12", y2: "15" })), e), this.selectedFiles.length > 0 && t("div", { key: "633d574a840479eb58ec596078960c88fbf4ce94", class: "eds-input-file-chips" }, this.selectedFiles.map((n) => t("div", { key: n.id, class: "eds-input-file-chip" }, this.getFileIcon(n.file.name), t("span", { class: "eds-input-file-chip-name" }, n.file.name), t("span", { class: "eds-input-file-chip-size" }, this.formatFileSize(n.file.size)), t("button", { type: "button", class: "eds-input-file-chip-remove", onClick: () => this.handleRemoveFile(n.id), disabled: this.disabled, "aria-label": `Remove ${n.file.name}` }, t("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, t("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), t("line", { x1: "6", y1: "6", x2: "18", y2: "18" })))))));
|
|
14286
14509
|
}
|
|
14287
14510
|
get hostEl() {
|
|
14288
|
-
return
|
|
14511
|
+
return w(this);
|
|
14289
14512
|
}
|
|
14290
14513
|
};
|
|
14291
|
-
|
|
14292
|
-
const
|
|
14514
|
+
Bi.style = $i;
|
|
14515
|
+
const Di = "p{margin:0}.eds-help{font-family:'IBM Plex Mono', ui-monospace, monospace;font-size:10.5px;line-height:1.45;letter-spacing:0.01em;color:#8a8c8a}.eds-desc-link{position:relative;display:inline-block;color:var(--brand-black);text-decoration:none}.eds-desc-link::after{content:'';position:absolute;bottom:-2px;left:0;width:0;height:2px;background-color:var(--brand-green);transition:width 0.3s ease}.eds-desc-link:hover::after{width:100%}.eds-desc-link:focus-visible::after{width:0}eds-link{--f-ui-02-fontSize:var(--f-ui-04-fontSize)}.text-error{color:var(--red-700)}.flex{display:flex}.items-center{align-items:center}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.ml-4{margin-left:0.25rem}.pt-4{padding-top:0.25rem}.mb-4{margin-bottom:0.25rem}.f-ui-05{font-family:var(--f-ui-05-fontFamily);font-weight:var(--f-ui-05-fontWeight);font-size:var(--f-ui-05-fontSize);line-height:var(--f-ui-05-lineHeight);letter-spacing:var(--f-ui-05-letterSpacing)}.text-lighter{color:var(--grey-600)}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.hover\\:text-lighter:hover{color:var(--grey-600)}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}", Ti = Di, Vi = class {
|
|
14293
14516
|
constructor(e) {
|
|
14294
14517
|
u(this, e), this.name = void 0, this.errorMessage = void 0, this.message = void 0, this.error = !1, this.link = void 0;
|
|
14295
14518
|
}
|
|
14296
14519
|
render() {
|
|
14297
|
-
return t("div", { key: "
|
|
14520
|
+
return t("div", { key: "e3cf47ad941e608ec8f5daefd89d72e6d0af0f28" }, this.error && this.errorMessage && t("div", { key: "0771ab5b0ba362a01df27c4b6ce0949ec51ec857", id: `error_${this.name}`, class: "text-error flex items-center" }, t("eds-icon-wrapper", { key: "43f86aa8632ea24b311e00a336b7d4b00b47ac80", name: "warning", size: 20 }), t("p", { key: "734a138c54dc0120fc6fdd320122c737b33b9d3b", class: "f-ui-04 ml-4 mb-4 pt-4", innerHTML: this.errorMessage })), this.message && t("p", { key: "f8c6d5c1f48e10f9c556fc8d44189836b3b46dbf", id: `desc_${this.name}`, class: "eds-help text-lighter", innerHTML: ve(this.message) }), this.link && t("eds-link", { key: "fe7a52e14c6cf0791d36b781a92d7bbeca487ccc", label: this.link.label, url: this.link.url, intent: "underline", size: "small", external: !0 }));
|
|
14298
14521
|
}
|
|
14299
14522
|
};
|
|
14300
|
-
Vi.style =
|
|
14301
|
-
const
|
|
14523
|
+
Vi.style = Ti;
|
|
14524
|
+
const Oi = ".input-label{font-family:var(--plex-sans, 'IBM Plex Sans', system-ui, sans-serif);font-size:14.5px;font-weight:600;line-height:1.3;letter-spacing:0;color:var(--brand-black, #07140d)}.input-label b,.input-label strong{font-weight:var(--f-ui-02---bold-weight, bold)}.text-lighter{color:var(--grey-600)}.req-mark{color:var(--eds-field-accent, currentColor);margin-left:1px;font-weight:600}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}", Ni = Oi, Pi = class {
|
|
14302
14525
|
constructor(e) {
|
|
14303
14526
|
u(this, e), this.label = void 0, this.name = void 0, this.required = !1, this.disabled = !1;
|
|
14304
14527
|
}
|
|
14305
14528
|
render() {
|
|
14306
|
-
return t("label", { key: "
|
|
14529
|
+
return t("label", { key: "46f04462b12694d932be79bb1d252cd001d29e58", htmlFor: this.name, class: `input-label ${this.disabled ? "text-lighter" : ""}` }, this.label, this.required && t("span", { key: "c747f5a7896b395f5c1b54725a966d54c7e5dfcd" }, t("span", { key: "2a27cfce971df8eab6186028f6c8319f19504317", "aria-hidden": "true", class: "req-mark" }, "*"), t("span", { key: "5876e15a66aa95a62b934edec0d64f01f713d1a8", class: "sr-only" }, "required")));
|
|
14307
14530
|
}
|
|
14308
14531
|
};
|
|
14309
|
-
Pi.style =
|
|
14310
|
-
const
|
|
14532
|
+
Pi.style = Ni;
|
|
14533
|
+
const ga = class {
|
|
14311
14534
|
constructor(e) {
|
|
14312
|
-
u(this, e), this.edsrange =
|
|
14535
|
+
u(this, e), this.edsrange = k(this, "edsrange", 7), this.onInput = (n) => {
|
|
14313
14536
|
const i = n.target;
|
|
14314
14537
|
this.sliderVal = parseInt(i.value, 10);
|
|
14315
14538
|
}, this.onChange = (n) => {
|
|
@@ -14321,9 +14544,12 @@ const ha = class {
|
|
|
14321
14544
|
var e;
|
|
14322
14545
|
this.sliderVal = (e = this.value) !== null && e !== void 0 ? e : Math.round(this.min + (this.max - this.min) / 2);
|
|
14323
14546
|
}
|
|
14324
|
-
// Keep the internal state in sync when the passed value changes.
|
|
14547
|
+
// Keep the internal state in sync when the passed value changes. When the
|
|
14548
|
+
// value is cleared (undefined/null — e.g. "Clear form"), fall back to the
|
|
14549
|
+
// default midpoint so BOTH the thumb and the filled track reset together
|
|
14550
|
+
// (the fill is derived from sliderVal, so it must be updated too).
|
|
14325
14551
|
onValueChange(e) {
|
|
14326
|
-
e
|
|
14552
|
+
this.sliderVal = e ?? Math.round(this.min + (this.max - this.min) / 2);
|
|
14327
14553
|
}
|
|
14328
14554
|
componentDidLoad() {
|
|
14329
14555
|
this.inputElement = this.el.querySelector("input");
|
|
@@ -14333,32 +14559,38 @@ const ha = class {
|
|
|
14333
14559
|
}
|
|
14334
14560
|
render() {
|
|
14335
14561
|
var e;
|
|
14336
|
-
const n = (e = this.sliderVal) !== null && e !== void 0 ? e : Math.round(this.min + (this.max - this.min) / 2)
|
|
14337
|
-
|
|
14562
|
+
const n = (e = this.sliderVal) !== null && e !== void 0 ? e : Math.round(this.min + (this.max - this.min) / 2), i = this.max > this.min ? (n - this.min) / (this.max - this.min) * 100 : 0, r = {
|
|
14563
|
+
background: `linear-gradient(90deg, var(--eds-field-accent, var(--green-500)) ${i}%, var(--grey-light, #ececec) ${i}%)`
|
|
14564
|
+
}, a = Math.round(this.min + (this.max - this.min) / 2);
|
|
14565
|
+
return t("div", { key: "742f329624bc2a8632640b6a93b6258d915f6deb", class: "eds-range" }, t("div", { key: "112ef4ef42761c85350f9624c10436fbd2600fce", class: "eds-range-top" }, t("span", { key: "2b2dbde929434f68c85a36380cbed1780707dfd8", id: `desc_${this.name}`, class: "eds-range-val" }, n)), t("input", { key: "d5bcbf157647324a1ddafab2001518707ae0de9b", id: this.inputId || this.name, name: this.name, style: r, min: this.min, max: this.max, step: this.step, value: n, required: this.required, disabled: this.disabled, type: "range", class: "w-full input eds-range-input", tabindex: "0", role: "slider", "aria-describedby": `desc_${this.name}`, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": n, onInput: this.onInput, onChange: this.onChange }), t("div", { key: "e72eed37dc3dc0bd596f9198f4d3f59ac11e1c40", class: "eds-range-scale", "aria-hidden": "true" }, t("span", { key: "ba65117d4dc0c498878760ddf124d614c19af7b9" }, this.min), t("span", { key: "82e42ecec8f53634c005acc151f12a3c6f390ab3" }, a), t("span", { key: "b2272241e488952785c92b4a495b1ba744e13d19" }, this.max)));
|
|
14338
14566
|
}
|
|
14339
14567
|
get el() {
|
|
14340
|
-
return
|
|
14568
|
+
return w(this);
|
|
14341
14569
|
}
|
|
14342
14570
|
static get watchers() {
|
|
14343
14571
|
return {
|
|
14344
14572
|
value: ["onValueChange"]
|
|
14345
14573
|
};
|
|
14346
14574
|
}
|
|
14347
|
-
},
|
|
14575
|
+
}, fa = class {
|
|
14348
14576
|
constructor(e) {
|
|
14349
|
-
u(this, e), this.edsselect =
|
|
14577
|
+
u(this, e), this.edsselect = k(this, "edsselect", 7), this.handleChange = (n) => {
|
|
14350
14578
|
const i = n.target;
|
|
14351
14579
|
this.edsselect.emit(i.value);
|
|
14352
14580
|
}, this.inputId = void 0, this.name = void 0, this.placeholder = void 0, this.disabled = !1, this.hasMessage = !1, this.error = !1, this.required = !1, this.options = [], this.value = void 0;
|
|
14353
14581
|
}
|
|
14354
14582
|
render() {
|
|
14355
14583
|
const e = this.inputId || this.name, n = this.placeholder || "Pick from the list", i = this.hasMessage || this.error ? `${this.name}-error` : void 0;
|
|
14356
|
-
return t("div", { key: "
|
|
14584
|
+
return t("div", { key: "303df3cd45f076ae5b29f301c9dc742e1664887a", class: "relative" }, t("select", { key: "7635ec7c53e7f07c7c71ab25e8475ed53a8d013e", id: e, name: this.name, class: {
|
|
14357
14585
|
input: !0,
|
|
14358
14586
|
"input-error": this.error,
|
|
14587
|
+
// No real value yet → the placeholder option is showing. Lets CSS
|
|
14588
|
+
// render the select text in the light placeholder colour (grey-500),
|
|
14589
|
+
// matching text inputs, instead of the dark default text colour.
|
|
14590
|
+
"is-placeholder": !this.value && this.value !== 0,
|
|
14359
14591
|
"px-4": !0,
|
|
14360
14592
|
"py-2": !0
|
|
14361
|
-
}, "aria-invalid": this.error ? "true" : "false", "aria-describedby": i, disabled: this.disabled, required: this.required, onChange: this.handleChange }, t("option", { key: "
|
|
14593
|
+
}, "aria-invalid": this.error ? "true" : "false", "aria-describedby": i, disabled: this.disabled, required: this.required, onChange: this.handleChange }, t("option", { key: "793cd7db90936a9746810075246b5408710ce7ac", value: "", disabled: !0, selected: !this.value || this.value === "" }, n), this.options.map((r, a) => t("option", { key: a, value: r.value, selected: r.value === this.value }, r.label))), t("span", { key: "41a1eb4a753c304148ee6cdc71049fa15cbd61f6", class: "bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center" }, t("eds-icon-wrapper", { key: "4ee4022f9d47fc26b27006f144fc598367f50169", class: "w-20 h-20", name: "chevron-right" })));
|
|
14362
14594
|
}
|
|
14363
14595
|
}, Ri = ":host{display:block;font-family:var(--plex-sans, 'IBM Plex Sans', system-ui, sans-serif);color:var(--brand-black, #07140D)}.lr-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0.75rem;margin-bottom:1.5rem}.lr-heading{font-family:var(--inter, 'Inter', sans-serif);font-weight:300;font-size:1.75rem;line-height:110%;margin:0;color:var(--brand-black, #07140D)}.summary{display:flex;gap:0.5rem}.filters{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:0.75rem;margin-bottom:1.5rem;align-items:flex-end}.filter-search{grid-column:span 2}.filter-select{grid-column:span 1}.accordion-list{display:flex;flex-direction:column;gap:0.5rem}.resources-content{padding-top:0.5rem}.kg-link{margin-bottom:1rem}.resources-table{width:100%;border-collapse:collapse;font-size:0.875rem}.resources-table thead th{text-align:left;font-family:var(--plex-sans, 'IBM Plex Sans', system-ui, sans-serif);font-weight:500;font-size:0.75rem;text-transform:uppercase;letter-spacing:0.04em;color:var(--grey-dark, #7A7B7A);padding:0.5rem 0.75rem;border-bottom:1px solid rgba(0, 0, 0, 0.1)}.resource-row{transition:background-color 0.2s ease}.resource-row--clickable{cursor:pointer}.resource-row--clickable:hover{background-color:rgba(0, 255, 157, 0.04)}.resource-row td{padding:0.625rem 0.75rem;border-bottom:1px solid rgba(0, 0, 0, 0.04);vertical-align:top}.resource-row:last-child td{border-bottom:none}.resource-name{font-weight:500;font-size:1.0625rem;color:var(--brand-black, #07140D);transition:color 0.2s ease}.resource-row--clickable:hover .resource-name{color:var(--brand-green-dark, #00C87B)}.resource-desc{margin:0.25rem 0 0;font-size:0.9375rem;color:var(--grey-dark, #7A7B7A);line-height:145%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.col-name{width:auto}.col-type{width:160px;white-space:nowrap}.col-level{width:110px;white-space:nowrap}.loading{position:relative;min-height:8rem;padding:1rem 1.25rem;color:var(--grey-dark, #7A7B7A);font-size:0.9375rem;border:1px solid rgba(0, 0, 0, 0.08);border-radius:0.25rem;background-color:rgba(0, 0, 0, 0.02)}.no-results{padding:2rem;text-align:center;color:var(--grey-dark, #7A7B7A);font-size:0.875rem}@media (max-width: 750px){.lr-header{flex-direction:column;align-items:flex-start}.filters{grid-template-columns:1fr}.filter-search,.filter-select{grid-column:span 1}.col-type,.col-level{width:auto}.resources-table thead{display:none}.resource-row{display:flex;flex-wrap:wrap;gap:0.375rem;padding:0.625rem 0;border-bottom:1px solid rgba(0, 0, 0, 0.04)}.resource-row td{border:none;padding:0}.col-name{width:100%}}", ji = Ri;
|
|
14364
14596
|
let ee = null, fe = 0;
|
|
@@ -14451,16 +14683,16 @@ const Wi = 10 * 60 * 1e3, qi = class {
|
|
|
14451
14683
|
}
|
|
14452
14684
|
render() {
|
|
14453
14685
|
const e = !this.loading && !this.error ? this.getFilteredSoftware() : [];
|
|
14454
|
-
return t("div", { key: "
|
|
14686
|
+
return t("div", { key: "aef669885e2bc85b30f70b3db12fbf4040a306a9", class: "lr-container" }, t("div", { key: "95413849959947a851e27a404aa21368aa895e96", class: "lr-header" }, t("h2", { key: "10353aae716a1408f3f49d70501684a633bf7b51", class: "lr-heading" }, this.heading)), this.loading && t("div", { key: "d3318b411c4e27551997a697aa165fe4afb8f3fa", class: "loading", role: "status", "aria-live": "polite" }, t("eds-spinner", { key: "b242ace225a2b93d5d8e6e4fd3b78a23778d1995", size: "sm", variant: "primary", background: "transparent", message: "Loading learning resources..." })), this.error && !this.loading && t("eds-alert", { key: "c0a5cf3aa2830cb96f253f10a34babc4bdb9aedb", intent: "error", message: this.error }), !this.loading && !this.error && t("div", { key: "83671b3aea2286fe508742ae81d8d0d4aae9863c", class: "accordion-list" }, e.map((n) => t("eds-accordion", { heading: n.name, description: this.renderAccordionDescription(n), variant: this.variant, icon: "book", switchBg: !0, clampText: !1 }, this.renderResources(n))), e.length === 0 && t("p", { key: "2d344afbcaa2f18bddf2872fd1cf1eb0993ce632", class: "no-results" }, "No software matches the current filters.")));
|
|
14455
14687
|
}
|
|
14456
14688
|
get el() {
|
|
14457
|
-
return
|
|
14689
|
+
return w(this);
|
|
14458
14690
|
}
|
|
14459
14691
|
};
|
|
14460
14692
|
qi.style = ji;
|
|
14461
|
-
const Ui = ".kg-web-services-select-container{width:100%}.loading-container,.error-container{width:100%}",
|
|
14693
|
+
const Ui = ".kg-web-services-select-container{width:100%}.loading-container,.error-container{width:100%}", Yi = Ui, be = /* @__PURE__ */ new Map(), Zi = 5 * 60 * 1e3, Ki = class {
|
|
14462
14694
|
constructor(e) {
|
|
14463
|
-
u(this, e), this.edsinput =
|
|
14695
|
+
u(this, e), this.edsinput = k(this, "edsinput", 7), this.edschange = k(this, "edschange", 7), this.apiEndpoint = "/api/v1/kg/web-services/cached", this.label = "Select Web Service", this.name = "web-service", this.placeholder = "Choose a web service...", this.required = !1, this.disabled = !1, this.size = 100, this.searchTerm = "", this.value = void 0, this.hint = void 0, this.message = void 0, this.error = !1, this.errorMessage = void 0, this.loading = !1, this.webServices = [], this.fetchError = "", this.selectOptions = [];
|
|
14464
14696
|
}
|
|
14465
14697
|
componentWillLoad() {
|
|
14466
14698
|
this.fetchWebServices();
|
|
@@ -14469,7 +14701,7 @@ const Ui = ".kg-web-services-select-container{width:100%}.loading-container,.err
|
|
|
14469
14701
|
this.loading = !0, this.fetchError = "";
|
|
14470
14702
|
try {
|
|
14471
14703
|
const e = new URLSearchParams(Object.assign({ size: this.size.toString() }, this.searchTerm && { search: this.searchTerm })), n = `${this.apiEndpoint}?${e.toString()}`, i = be.get(n), r = Date.now();
|
|
14472
|
-
if (i && r - i.timestamp <
|
|
14704
|
+
if (i && r - i.timestamp < Zi)
|
|
14473
14705
|
this.webServices = i.data;
|
|
14474
14706
|
else {
|
|
14475
14707
|
const a = await fetch(`${this.apiEndpoint}?${e}`);
|
|
@@ -14499,7 +14731,7 @@ const Ui = ".kg-web-services-select-container{width:100%}.loading-container,.err
|
|
|
14499
14731
|
} }));
|
|
14500
14732
|
}
|
|
14501
14733
|
};
|
|
14502
|
-
Ki.style =
|
|
14734
|
+
Ki.style = Yi;
|
|
14503
14735
|
const Gi = `*,
|
|
14504
14736
|
::before,
|
|
14505
14737
|
::after {
|
|
@@ -15912,7 +16144,7 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
15912
16144
|
.lg\\:flex {
|
|
15913
16145
|
display: flex;
|
|
15914
16146
|
}
|
|
15915
|
-
}`, Xi = Gi, Ji =
|
|
16147
|
+
}`, Xi = Gi, Ji = Z([
|
|
15916
16148
|
"relative inline-flex justify-center items-center py-8 rounded-sm",
|
|
15917
16149
|
"effect-color effect-focus aria-disabled:text-lightest",
|
|
15918
16150
|
"cursor-pointer",
|
|
@@ -15965,12 +16197,8 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
15965
16197
|
"rounded-full",
|
|
15966
16198
|
"aria-disabled:bg-dark aria-disabled:text-lightest"
|
|
15967
16199
|
],
|
|
15968
|
-
cta: [
|
|
15969
|
-
|
|
15970
|
-
],
|
|
15971
|
-
"cta-brand": [
|
|
15972
|
-
"cta-link-brand !px-0 !py-0 !min-h-0 !h-auto"
|
|
15973
|
-
]
|
|
16200
|
+
cta: ["cta-link !px-0 !py-0 !min-h-0 !h-auto"],
|
|
16201
|
+
"cta-brand": ["cta-link-brand !px-0 !py-0 !min-h-0 !h-auto"]
|
|
15974
16202
|
},
|
|
15975
16203
|
iconSmall: {
|
|
15976
16204
|
true: "",
|
|
@@ -16140,24 +16368,19 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
16140
16368
|
hasIcon: !!this.icon,
|
|
16141
16369
|
pill: this.pill
|
|
16142
16370
|
}), n = typeof this.url == "string" && this.url.length ? this.url : void 0, i = !this.disabled, r = !this.label || this.hideLabelOnSmallScreen && this.icon, a = this.hideLabelOnSmallScreen ? "hidden lg:flex" : "";
|
|
16143
|
-
return t("a", { key: "
|
|
16371
|
+
return t("a", { key: "a447ffc8ba377ceb4fe0dc199ad7225e222d4cf3", class: `${e || ""}`, href: i ? n : void 0, target: this.external && i ? "_blank" : void 0, rel: this.external && i ? "noopener noreferrer" : void 0, tabIndex: i ? 0 : -1, "aria-label": r ? this.ariaLabel || "Link" : void 0, "aria-disabled": this.disabled ? "true" : void 0, "aria-current": this.current ? "page" : void 0, role: this.disabled ? "link" : void 0, download: this.download ? "" : void 0, onClick: (l) => this.handleClick(l), onKeyDown: (l) => this.handleKeyDown(l) }, t("span", { key: "72d84592cfd7e48e983e281d8e8f1d8a2b739e26", class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), this.label && t("span", { key: "a101036d3206e7f610c04dfc9d0a4dcd5c1a2b4f", class: `${a} ${this.icon ? this.iconPos === "right" ? this.size === "large" ? "pr-4" : "pr-2" : this.size === "large" ? "pl-4" : "pl-2" : ""}` }, this.label), this.renderRightIcon()));
|
|
16144
16372
|
}
|
|
16145
16373
|
get el() {
|
|
16146
|
-
return
|
|
16374
|
+
return w(this);
|
|
16147
16375
|
}
|
|
16148
16376
|
};
|
|
16149
16377
|
Qi.style = Xi;
|
|
16150
16378
|
const er = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{color:currentColor}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.p-\\[24px\\]{padding:24px}@media (min-width: 900px){.lg\\:w-\\[150px\\]{width:150px}}", nr = er, tr = class {
|
|
16151
16379
|
constructor(e) {
|
|
16152
|
-
u(this, e), this.href = "/", this.
|
|
16380
|
+
u(this, e), this.href = "/", this.variant = "positive";
|
|
16153
16381
|
}
|
|
16154
16382
|
/**
|
|
16155
|
-
*
|
|
16156
|
-
* Emits a `matomoEvent` for analytics tracking with details about the interaction.
|
|
16157
|
-
* - `category`: Component type (e.g., "ui-component").
|
|
16158
|
-
* - `tag`: The HTML tag name of the component.
|
|
16159
|
-
* - `name`: Event name, set as "logo".
|
|
16160
|
-
* - `action`: The action, set as "click".
|
|
16383
|
+
* Emits an analytics event when the logo link is clicked.
|
|
16161
16384
|
*/
|
|
16162
16385
|
handleClick() {
|
|
16163
16386
|
F({
|
|
@@ -16167,24 +16390,18 @@ const er = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{
|
|
|
16167
16390
|
action: "click"
|
|
16168
16391
|
});
|
|
16169
16392
|
}
|
|
16170
|
-
/**
|
|
16171
|
-
* Determines the appropriate SVG content based on the `orientation` and `type` props.
|
|
16172
|
-
*/
|
|
16173
|
-
getLogo() {
|
|
16174
|
-
return this.variant == "negative" ? Fe : Ae;
|
|
16175
|
-
}
|
|
16176
16393
|
render() {
|
|
16177
|
-
const e = this.
|
|
16178
|
-
return t("a", { key: "
|
|
16394
|
+
const e = this.variant === "negative" ? Fe : Ae;
|
|
16395
|
+
return t("a", { key: "3576feaa13063508c317d8b31817165de79ced77", href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": "Home" }, t("div", { key: "b43ef52813a59ba47e4a07c3d410b007a27ca186", innerHTML: e }));
|
|
16179
16396
|
}
|
|
16180
16397
|
get el() {
|
|
16181
|
-
return
|
|
16398
|
+
return w(this);
|
|
16182
16399
|
}
|
|
16183
16400
|
};
|
|
16184
16401
|
tr.style = nr;
|
|
16185
16402
|
const ir = ":host{display:block;background-color:var(--white, #FFFFFF);border-radius:16px;box-shadow:0 8px 24px rgba(0, 0, 0, 0.12);overflow:hidden}.flex{display:flex}.items-center{align-items:center}.gap-8{gap:0.5rem}", rr = ir, ar = class {
|
|
16186
16403
|
constructor(e) {
|
|
16187
|
-
u(this, e), this.consent =
|
|
16404
|
+
u(this, e), this.consent = k(this, "consent", 7), this.heading = "Analytics Consent", this.description = "We use anonymous analytics to improve our services. No data is collected unless you give your consent. If you don't wish to send data right now, you can always re-enable analytics later by clicking the Cookies Preference button in the footer. However, by opting in today, you're joining a community that shapes our product's future—all while keeping your data completely anonymous.", this.optOutMessage = "You are already part of our community, and your anonymous data helps shape our product's future! Rest assured, your privacy is fully protected.", this.forceShow = !1, this.showNotice = !0;
|
|
16188
16405
|
}
|
|
16189
16406
|
/**
|
|
16190
16407
|
* Listens for global custom events to open the matomo-consent.
|
|
@@ -16272,13 +16489,13 @@ const ir = ":host{display:block;background-color:var(--white, #FFFFFF);border-ra
|
|
|
16272
16489
|
) : null;
|
|
16273
16490
|
}
|
|
16274
16491
|
get el() {
|
|
16275
|
-
return
|
|
16492
|
+
return w(this);
|
|
16276
16493
|
}
|
|
16277
16494
|
};
|
|
16278
16495
|
ar.style = rr;
|
|
16279
16496
|
const lr = '.eds-nps__labels{padding-top:0.75rem;padding-bottom:0.5rem}.eds-nps__scale{display:block;width:fit-content;max-width:100%;padding-top:0.5rem;}#nps-buttons{gap:0.6rem}.eds-nps__btn{border-radius:9999px;transition:transform 0.15s ease-in-out}.eds-nps__btn.is-selected{transform:scale(1.12)}.flex{display:flex}.justify-between{justify-content:space-between}.mt-4{margin-top:0.25rem}.mt-8{margin-top:0.5rem}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.gap-2{gap:0.125rem}.gap-4{gap:0.25rem}.grid{display:grid}.grid-col-span-1{--container-grid-columns:1;grid-column:span 1 / span 1}.grid-cols-11{grid-template-columns:repeat(11, minmax(0, 1fr))}.grid-cols-11[class*="grid-line-x"][class*="grid-line-x"]>*:nth-child(n)::before{border-bottom-width:1px}.grid-cols-11[class*="grid-line-xfull"]>*:nth-child(n)::before{inset-inline-start:calc(var(--inner-gutter) / -2);inset-inline-end:calc(var(--inner-gutter) / -2)}.grid-cols-11[class*="grid-line-x"]>*:nth-child(11n+1)::before{inset-inline-start:0}.grid-cols-11[class*="grid-line-x"]>*:nth-child(11n+11)::before{inset-inline-end:0}.grid-cols-11[class*="grid-line-x"]>*:nth-child(11n+1):nth-last-child(-n+11)::before{border-bottom-width:0}.grid-cols-11[class*="grid-line-x"]>*:nth-child(11n+1):nth-last-child(-n+11)~*::before{border-bottom-width:0}.grid-cols-11[class*="grid-line-y"][class*="grid-line-y"]>*:nth-child(n)::after{border-inline-end-width:1px}.grid-cols-11[class*="grid-line-y"][class*="grid-line-y"]>*:nth-child(11n+11)::after{border-inline-end-width:0}.grid-cols-11[class*="grid-line-y"][class*="grid-line-y"]>*:nth-child(-n+11)::after{top:0}.grid-cols-11[class*="grid-line-y"][class*="grid-line-y"]>*:nth-child(11n+1):nth-last-child(-n+11)::after{bottom:0}.grid-cols-11[class*="grid-line-y"][class*="grid-line-y"]>*:nth-child(11n+1):nth-last-child(-n+11)~li::after{bottom:0}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.text-light{color:var(--grey-dark)}.flex-wrap{flex-wrap:wrap}', or = lr, sr = class {
|
|
16280
16497
|
constructor(e) {
|
|
16281
|
-
u(this, e), this.nps =
|
|
16498
|
+
u(this, e), this.nps = k(this, "nps", 7), this.min = 0, this.max = 10, this.btnRefs = [], this.onSelect = (n) => {
|
|
16282
16499
|
this.internalValue = n, this.nps.emit(n), requestAnimationFrame(() => {
|
|
16283
16500
|
var i, r;
|
|
16284
16501
|
const a = n - this.min;
|
|
@@ -16349,15 +16566,15 @@ const lr = '.eds-nps__labels{padding-top:0.75rem;padding-bottom:0.5rem}.eds-nps_
|
|
|
16349
16566
|
}
|
|
16350
16567
|
render() {
|
|
16351
16568
|
const e = this.max - this.min + 1;
|
|
16352
|
-
return t("div", { key: "
|
|
16569
|
+
return t("div", { key: "edbeca6a946c3b355161d09707d6732dd5a79e67", class: "eds-nps" }, t("eds-input-label", { key: "cf2b345b98407ee204a914e50183f5f895698adb", id: "nps-question", name: "nps-question", label: this.question }), t("div", { key: "423d0d8b676c8d3a72efd71f092a6b041a42c007", class: "eds-nps__scale" }, t("div", { key: "b93fdd4168213fd5835a1253c5731c8dfa860572", id: "nps-buttons", role: "radiogroup", "aria-labelledby": "nps-question", onKeyDown: this.handleKeyNav, class: "flex flex-wrap gap-2 my-8" }, Array.from({ length: e }, (n, i) => {
|
|
16353
16570
|
const r = this.min + i, a = r === this.internalValue, l = a || this.internalValue == null && i === 0 ? 0 : -1;
|
|
16354
16571
|
return t("div", { class: "flex", key: r }, t("eds-button", { ref: (o) => this.btnRefs[i] = o, size: "large", role: "radio", "aria-checked": a ? "true" : "false", "aria-label": `${r}`, onClick: () => this.onSelect(r), tabIndex: l, intent: a ? "brand" : "brandLight", class: a ? "eds-nps__btn is-selected" : "eds-nps__btn", "extra-class": "!block !px-0 w-full", label: `${r}`, pill: !0, onFocus: () => {
|
|
16355
16572
|
this.internalValue = r;
|
|
16356
16573
|
} }));
|
|
16357
|
-
})), t("div", { key: "
|
|
16574
|
+
})), t("div", { key: "035bf1b3da3c481084201b1edb76a4d3e900a878", class: "flex justify-between eds-nps__labels" }, t("span", { key: "218622e6374ffa7b137b38dde7654e7b671cea6a", class: "f-ui-04 text-light ml-4" }, this.leftLabel), t("span", { key: "66d04e813fa6eee2fb52b7f48540b647016e0fe7", class: "f-ui-04 text-light mr-4" }, this.rightLabel))));
|
|
16358
16575
|
}
|
|
16359
16576
|
get el() {
|
|
16360
|
-
return
|
|
16577
|
+
return w(this);
|
|
16361
16578
|
}
|
|
16362
16579
|
static get watchers() {
|
|
16363
16580
|
return {
|
|
@@ -16517,14 +16734,14 @@ const dr = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(
|
|
|
16517
16734
|
}
|
|
16518
16735
|
}
|
|
16519
16736
|
render() {
|
|
16520
|
-
return t("div", { key: "
|
|
16737
|
+
return t("div", { key: "7968465b6c55f17657aa5bd3271448a9d780bec7" }, this.total > 0 && this.mode === "default" && t("p", { key: "e266baaf3b45095b1e0d90c493d254405fa317b7", class: "f-ui-03 text-light mb-28 w-full text-center", "aria-live": "polite", id: "pagination-info" }, t("span", { key: "2acbccf0cb69248fb36b2479eb925d5cb728a3b5", class: "text-light sr-only" }, "Results:"), this.pageResults()), this.mode === "navigator" || this.lastPage && this.lastPage > 1 ? t("nav", { "aria-label": "Pagination Navigation", "aria-describedby": this.mode === "default" ? "pagination-info" : void 0, onKeyDown: this.handleKeyDown }, t("ul", { class: "flex items-center justify-center gap-x-8", role: "list" }, t("li", { class: "mr-auto" }, this.useButtons ? t("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(-1) }, t("eds-button", { label: this.prevLabel, disabled: this.mode === "navigator" ? !this.prevUrl : this.isFirstPage(), "aria-label": "Go to previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "ghost", "extra-class": "!p-8 lg:!pr-12 pagination-button", onClick: (n) => {
|
|
16521
16738
|
this.mode === "default" && !this.isFirstPage() && this.handlePageClick(n, (this.currentPage || 1) - 1);
|
|
16522
16739
|
} })) : t("eds-link", { label: this.prevLabel, url: this.mode === "navigator" ? this.prevUrl || "#" : this.isFirstPage() ? "#" : this.generateLink(this.currentPage - 1).url, disabled: this.mode === "navigator" ? !this.prevUrl : this.isFirstPage(), "aria-label": "Go to previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "strong", "hide-label-on-small-screen": !0, class: "!p-8 lg:!pr-12" })), this.mode === "default" && this.links.map((n, i) => t("li", { key: i, class: "f-ui-02 flex h-36 items-center justify-center" }, typeof n == "string" ? t("span", { class: "flex items-center justify-center", "aria-hidden": "true" }, n) : this.useButtons ? t("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(-1) }, t("eds-button", { label: n.label, "aria-label": n.current ? `Current page, page ${n.label}` : `Go to page ${n.label}`, "aria-current": n.current ? "page" : void 0, size: "small", "extra-class": "!p-8 pagination-button", intent: n.current ? "brand" : "ghost", onClick: (r) => this.handlePageClick(r, parseInt(n.label)) })) : t("eds-link", { url: n.url, "aria-label": n.ariaLabel, label: n.label, current: n.current, "aria-current": n.current ? "page" : void 0, size: "small", class: "!p-8", intent: n.current ? "primary" : "secondary", onClick: (r) => this.handlePageClick(r, parseInt(n.label)) }))), t("li", { class: "ml-auto" }, this.useButtons ? t("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(-1) }, t("eds-button", { label: this.nextLabel, disabled: this.mode === "navigator" ? !this.nextUrl : this.isLastPage(), "aria-label": "Go to next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "ghost", "extra-class": "!p-8 lg:!pl-12 pagination-button", onClick: (n) => {
|
|
16523
16740
|
this.mode === "default" && !this.isLastPage() && this.handlePageClick(n, (this.currentPage || 1) + 1);
|
|
16524
16741
|
} })) : t("eds-link", { label: this.nextLabel, url: this.mode === "navigator" ? this.nextUrl || "#" : this.isLastPage() ? "#" : this.generateLink(this.currentPage + 1).url, disabled: this.mode === "navigator" ? !this.nextUrl : this.isLastPage(), "aria-label": "Go to next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "strong", "hide-label-on-small-screen": !0, class: "!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors" })))) : null);
|
|
16525
16742
|
}
|
|
16526
16743
|
get hostEl() {
|
|
16527
|
-
return
|
|
16744
|
+
return w(this);
|
|
16528
16745
|
}
|
|
16529
16746
|
static get watchers() {
|
|
16530
16747
|
return {
|
|
@@ -16563,21 +16780,14 @@ const gr = ".w-full{width:100%}.h-full{height:100%}.bg-default{background-color:
|
|
|
16563
16780
|
"border-softer",
|
|
16564
16781
|
"overflow-hidden",
|
|
16565
16782
|
"relative"
|
|
16566
|
-
].filter(Boolean).join(" "), r = [
|
|
16567
|
-
"inner",
|
|
16568
|
-
"h-full",
|
|
16569
|
-
"transition-all",
|
|
16570
|
-
"duration-300",
|
|
16571
|
-
"bg-accent",
|
|
16572
|
-
"z-0"
|
|
16573
|
-
].filter(Boolean).join(" ");
|
|
16783
|
+
].filter(Boolean).join(" "), r = ["inner", "h-full", "transition-all", "duration-300", "bg-accent", "z-0"].filter(Boolean).join(" ");
|
|
16574
16784
|
return t("div", { role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": e, "aria-valuetext": `${e}%`, class: i }, t("div", { class: r, style: { width: `${e}%` } }), t("div", { class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, t("span", { class: "text-default f-ui-01" }, e, "%")));
|
|
16575
16785
|
}
|
|
16576
16786
|
};
|
|
16577
16787
|
br.style = fr;
|
|
16578
|
-
const pr = ":host{display:inline-block}.block{display:block}.stars{display:flex;gap:0.25rem;cursor:pointer}.star{color:var(--star-empty-color, #ccc);transition:color 0.2s ease-in-out}.star.filled{color:var(--brand-green);}.star:hover,.star.filled:hover{transform:scale(1.2)}.eds-rating__btn{transition:transform 0.15s ease-in-out}.eds-rating__btn.is-selected{transform:scale(1.05)}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.mt-4{margin-top:0.25rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.my-4{margin-top:0.25rem;margin-bottom:0.25rem}.my-8{margin-top:0.5rem;margin-bottom:0.5rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.0625rem * var(--tw-space-x-reverse));margin-left:calc(0.0625rem * calc(1 - var(--tw-space-x-reverse)))}",
|
|
16788
|
+
const pr = ":host{display:inline-block}.block{display:block}.stars{display:flex;gap:0.25rem;cursor:pointer}.star{color:var(--star-empty-color, #ccc);transition:color 0.2s ease-in-out}.star.filled{color:var(--brand-green);}.star:hover,.star.filled:hover{transform:scale(1.2)}.eds-rating__btn{transition:transform 0.15s ease-in-out}.eds-rating__btn.is-selected{transform:scale(1.05)}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.mt-4{margin-top:0.25rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.my-4{margin-top:0.25rem;margin-bottom:0.25rem}.my-8{margin-top:0.5rem;margin-bottom:0.5rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.0625rem * var(--tw-space-x-reverse));margin-left:calc(0.0625rem * calc(1 - var(--tw-space-x-reverse)))}", mr = pr, ur = class {
|
|
16579
16789
|
constructor(e) {
|
|
16580
|
-
u(this, e), this.rating =
|
|
16790
|
+
u(this, e), this.rating = k(this, "rating", 7), this.buttonRefs = [], this.ratingType = "star", this.ratingCount = 5, this.selectedRating = 0, this.internalRating = 0;
|
|
16581
16791
|
}
|
|
16582
16792
|
/**
|
|
16583
16793
|
* Watch for changes to the selectedRating prop and sync internal state.
|
|
@@ -16635,13 +16845,13 @@ const pr = ":host{display:inline-block}.block{display:block}.stars{display:flex;
|
|
|
16635
16845
|
r > this.ratingCount && (r = 1), r < 1 && (r = this.ratingCount), this.onSelect(r);
|
|
16636
16846
|
}
|
|
16637
16847
|
render() {
|
|
16638
|
-
return t("div", { key: "
|
|
16848
|
+
return t("div", { key: "57a4d7bc36daac45ba1b2a6924a6976919614c99", id: "rating-buttons", role: "group", "aria-labelledby": "rating", class: "stars flex space-x-1 my-8", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: this.ratingCount }, (e, n) => {
|
|
16639
16849
|
const i = n + 1, r = i <= this.internalRating, a = this.internalRating === i;
|
|
16640
16850
|
return t("eds-button", { ref: (l) => this.buttonRefs[n] = l, icon: this.ratingType, "aria-label": `${i} ${this.ratingType}${i > 1 ? "s" : ""}`, onClick: () => this.onSelect(i), tabIndex: a || this.internalRating === 0 && n === 0 ? 0 : -1, intent: r ? "brand" : "brandLight", class: r ? "eds-rating__btn is-selected" : "eds-rating__btn", size: "large" });
|
|
16641
16851
|
}));
|
|
16642
16852
|
}
|
|
16643
16853
|
get el() {
|
|
16644
|
-
return
|
|
16854
|
+
return w(this);
|
|
16645
16855
|
}
|
|
16646
16856
|
static get watchers() {
|
|
16647
16857
|
return {
|
|
@@ -16649,10 +16859,10 @@ const pr = ":host{display:inline-block}.block{display:block}.stars{display:flex;
|
|
|
16649
16859
|
};
|
|
16650
16860
|
}
|
|
16651
16861
|
};
|
|
16652
|
-
|
|
16653
|
-
const xr = ":host{display:block;width:100%;font-family:var(--f-ui-02-fontFamily, 'IBM Plex Sans', system-ui, sans-serif)}.eds-ss{position:relative;display:block;width:100%}.eds-ss__labelrow{display:flex;justify-content:space-between;margin-bottom:0.25rem}.eds-ss__hint{margin-top:0.5rem;margin-left:0.5rem;font-family:var(--f-ui-05-fontFamily);font-weight:var(--f-ui-05-fontWeight);font-size:var(--f-ui-05-fontSize);line-height:var(--f-ui-05-lineHeight);letter-spacing:var(--f-ui-05-letterSpacing);color:var(--grey-600)}.eds-ss__control{position:relative}.eds-ss__box{display:flex;flex-wrap:wrap;align-items:center;gap:0.35rem;width:100%;box-sizing:border-box;min-height:2.5rem;padding:6px 0.75rem;padding-right:3.75rem;border-width:2px;border-style:solid;border-color:rgba(0, 0, 0, 0.1);border-radius:8px;background:var(--white, #fff);transition-property:color, background-color, border-color;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-duration:300ms}.eds-ss__box:hover{border-color:var(--brand-black)}.eds-ss__box:focus-within{border-color:var(--brand-black);outline:3px solid var(--brand-green);outline-offset:2px}.eds-ss__box.is-error{border-color:var(--red-700)}.eds-ss__box.is-disabled{cursor:not-allowed;background-color:var(--grey-300)}.eds-ss__input{flex:1;min-width:6rem;border:none;outline:none;background:transparent;padding:4px 0;color:var(--brand-black);font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.eds-ss__input::placeholder{color:var(--grey-500)}.eds-ss__input:disabled{cursor:not-allowed;color:var(--grey-500)}.eds-ss__chip{display:inline-flex;align-items:center;gap:0.35rem;padding:4px 0.4rem 4px 0.7rem;background:rgba(0, 200, 123, 0.12);color:var(--brand-green-dark, #00A867);border-radius:6px;font-family:var(--f-ui-02-fontFamily);font-size:var(--f-ui-02-fontSize);font-weight:600;line-height:1.4;max-width:100%}.eds-ss__chip-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.eds-ss__chip-x{flex-shrink:0;border:none;background:none;cursor:pointer;color:var(--brand-green-dark, #00A867);font-size:1.2rem;line-height:1;padding:0 2px}.eds-ss__chip-x:hover{color:var(--brand-black, #07140D)}.eds-ss__clear,.eds-ss__chevron{position:absolute;top:50%;transform:translateY(-50%)}.eds-ss__chevron{right:6px;width:1.75rem;height:1.75rem;display:flex;align-items:center;justify-content:center;background-color:var(--grey-300);border-radius:4px;color:var(--brand-black);pointer-events:none}.eds-ss__clear{right:2.6rem;color:var(--grey-600, #6e6e6e);background:none;border:none;cursor:pointer;font-size:1.05rem;line-height:1}.eds-ss__clear:hover{color:var(--brand-black, #07140D)}.eds-ss__list{position:absolute;z-index:50;left:0;right:0;margin:0.25rem 0 0;padding:0.25rem;list-style:none;max-height:18rem;overflow-y:auto;background:var(--white, #fff);border:2px solid rgba(0, 0, 0, 0.1);border-radius:8px;box-shadow:0 8px 24px rgba(0, 0, 0, 0.12)}.eds-ss__option{padding:0.5rem 0.6rem;border-radius:6px;cursor:pointer;color:var(--brand-black, #07140D);font-family:var(--f-ui-02-fontFamily);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.eds-ss__option.is-active{background:rgba(0, 200, 123, 0.1)}.eds-ss__option.is-selected{font-weight:600;color:var(--brand-green-dark, #00A867)}.eds-ss__status,.eds-ss__more{padding:0.5rem 0.6rem;font-family:var(--f-ui-05-fontFamily);font-size:var(--f-ui-05-fontSize);line-height:var(--f-ui-05-lineHeight);color:var(--grey-600, #6e6e6e)}.eds-ss__status.is-error{color:var(--red-700, #d64545)}.eds-ss__more{border-top:1px solid rgba(0, 0, 0, 0.1);margin-top:0.25rem;font-style:italic}", vr = xr, yr = class {
|
|
16862
|
+
ur.style = mr;
|
|
16863
|
+
const xr = ":host{display:block;width:100%;font-family:var(--f-ui-02-fontFamily, 'IBM Plex Sans', system-ui, sans-serif)}.eds-ss{position:relative;display:block;width:100%}.eds-ss__labelrow{display:flex;justify-content:space-between;margin-bottom:0.25rem}.eds-ss__hint{margin-top:0.5rem;margin-left:0.5rem;font-family:var(--f-ui-05-fontFamily);font-weight:var(--f-ui-05-fontWeight);font-size:var(--f-ui-05-fontSize);line-height:var(--f-ui-05-lineHeight);letter-spacing:var(--f-ui-05-letterSpacing);color:var(--grey-600)}.eds-ss__control{position:relative}.eds-ss__box{display:flex;flex-wrap:wrap;align-items:center;gap:0.35rem;width:100%;box-sizing:border-box;min-height:2.5rem;padding:6px 0.75rem;padding-right:3.75rem;border-width:2px;border-style:solid;border-color:rgba(0, 0, 0, 0.1);border-radius:8px;background:var(--white, #fff);transition-property:color, background-color, border-color;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-duration:300ms}.eds-ss__box:hover{border-color:var(--brand-black)}.eds-ss__box:focus-within{border-color:var(--brand-black);outline:3px solid var(--brand-green);outline-offset:2px}.eds-ss__box.is-error{border-color:var(--red-700)}.eds-ss__box.is-disabled{cursor:not-allowed;background-color:var(--grey-300)}.eds-ss__input{flex:1;min-width:6rem;border:none;outline:none;background:transparent;padding:4px 0;color:var(--brand-black);font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.eds-ss__input::placeholder{color:var(--grey-500);opacity:1}.eds-ss__input:disabled{cursor:not-allowed;color:var(--grey-500)}.eds-ss__chip{display:inline-flex;align-items:center;gap:0.35rem;padding:4px 0.4rem 4px 0.7rem;background:rgba(0, 200, 123, 0.12);color:var(--brand-green-dark, #00A867);border-radius:6px;font-family:var(--f-ui-02-fontFamily);font-size:var(--f-ui-02-fontSize);font-weight:600;line-height:1.4;max-width:100%}.eds-ss__chip-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.eds-ss__chip-x{flex-shrink:0;border:none;background:none;cursor:pointer;color:var(--brand-green-dark, #00A867);font-size:1.2rem;line-height:1;padding:0 2px}.eds-ss__chip-x:hover{color:var(--brand-black, #07140D)}.eds-ss__clear,.eds-ss__chevron{position:absolute;top:50%;transform:translateY(-50%)}.eds-ss__chevron{right:6px;width:1.75rem;height:1.75rem;display:flex;align-items:center;justify-content:center;background-color:var(--grey-300);border-radius:4px;color:var(--brand-black);pointer-events:none}.eds-ss__clear{right:2.6rem;color:var(--grey-600, #6e6e6e);background:none;border:none;cursor:pointer;font-size:1.05rem;line-height:1}.eds-ss__clear:hover{color:var(--brand-black, #07140D)}.eds-ss__list{position:absolute;z-index:50;left:0;right:0;margin:0.25rem 0 0;padding:0.25rem;list-style:none;max-height:18rem;overflow-y:auto;background:var(--white, #fff);border:2px solid rgba(0, 0, 0, 0.1);border-radius:8px;box-shadow:0 8px 24px rgba(0, 0, 0, 0.12)}.eds-ss__option{padding:0.5rem 0.6rem;border-radius:6px;cursor:pointer;color:var(--brand-black, #07140D);font-family:var(--f-ui-02-fontFamily);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.eds-ss__option.is-active{background:rgba(0, 200, 123, 0.1)}.eds-ss__option.is-selected{font-weight:600;color:var(--brand-green-dark, #00A867)}.eds-ss__status,.eds-ss__more{padding:0.5rem 0.6rem;font-family:var(--f-ui-05-fontFamily);font-size:var(--f-ui-05-fontSize);line-height:var(--f-ui-05-lineHeight);color:var(--grey-600, #6e6e6e)}.eds-ss__status.is-error{color:var(--red-700, #d64545)}.eds-ss__more{border-top:1px solid rgba(0, 0, 0, 0.1);margin-top:0.25rem;font-style:italic}.mt-6{margin-top:0.375rem}", vr = xr, yr = class {
|
|
16654
16864
|
constructor(e) {
|
|
16655
|
-
u(this, e), this.edsinput =
|
|
16865
|
+
u(this, e), this.edsinput = k(this, "edsinput", 7), this.edschange = k(this, "edschange", 7), this.debounceTimer = null, this.inlineOptions = [], this.listboxId = `eds-ss-list-${Math.round(performance.now())}`, this.labelCache = {}, this.onInput = (n) => {
|
|
16656
16866
|
this.query = n.target.value, this.open = !0, this.activeIndex = -1, this.runSearch(this.query);
|
|
16657
16867
|
}, this.clear = () => {
|
|
16658
16868
|
this.multiple ? (this.value = [], this.emitValue([])) : (this.value = void 0, this.selectedLabel = "", this.emitValue("")), this.query = "";
|
|
@@ -16775,14 +16985,18 @@ const xr = ":host{display:block;width:100%;font-family:var(--f-ui-02-fontFamily,
|
|
|
16775
16985
|
}
|
|
16776
16986
|
render() {
|
|
16777
16987
|
const e = this.selectedValues, n = e.length > 0, i = this.multiple ? this.query : this.open ? this.query : this.selectedLabel, r = this.multiple ? n ? "" : this.placeholder : n && !this.open ? this.selectedLabel : this.placeholder;
|
|
16778
|
-
return t("div", { key: "
|
|
16988
|
+
return t("div", { key: "c07301b4d8b6dceeea092423faeefdb51df5882a", class: "eds-ss" }, (this.label || this.hint) && t("div", { key: "852ddc433b142caed852c7503d68aab968808480", class: "eds-ss__labelrow" }, this.label && t("eds-input-label", { key: "d44b4925954172a7ad5dec8e71b363630fc8cd3b", name: `${this.name}-input`, label: this.label, required: this.required, disabled: this.disabled }), this.hint && t("p", { key: "964933f90c1526383364fa4a76b6b31846a6e3e0", id: `${this.name}-hint`, class: "eds-ss__hint" }, this.hint)), t("div", { key: "69b226ececf5431ce220f5686e01f18aba100b8d", class: "eds-ss__control relative" }, t("div", { key: "942ba3e7020e2a9ae1eb4176b1d7b7444368baa3", class: { "eds-ss__box": !0, "is-error": this.error || !!this.fetchError, "is-disabled": this.disabled } }, this.multiple && e.map((a) => t("span", { class: "eds-ss__chip", key: a }, t("span", { class: "eds-ss__chip-label" }, this.labelFor(a)), !this.disabled && t("button", { type: "button", class: "eds-ss__chip-x", "aria-label": `Remove ${this.labelFor(a)}`, onMouseDown: (l) => {
|
|
16779
16989
|
l.preventDefault(), this.removeValue(a, l);
|
|
16780
|
-
} }, "×"))), t("input", { key: "
|
|
16990
|
+
} }, "×"))), t("input", { key: "c41ce7b8e648f0c9e688ae94b0a1a25945ad8715", id: `${this.name}-input`, class: "eds-ss__input", type: "text", role: "combobox", autocomplete: "off", "aria-expanded": this.open ? "true" : "false", "aria-controls": this.listboxId, "aria-autocomplete": "list", placeholder: r, value: i, disabled: this.disabled, required: this.required && !n, onFocus: () => this.openMenu(), onInput: this.onInput, onKeyDown: this.onKeyDown })), !this.multiple && n && !this.disabled && t("button", { key: "331e43093fc5749fc369bf976119610b2a310576", type: "button", class: "eds-ss__clear", "aria-label": "Clear selection", onClick: this.clear }, "×"), t("span", { key: "11b78efe2584e65cb533fb88746ad38da47f2b8d", class: "eds-ss__chevron", "aria-hidden": "true" }, t("eds-icon-wrapper", { key: "ca62bbe9b3f90b1625208584a6b9e5a154acc5be", name: "chevron-right", size: 20 }))), this.open && t("ul", { key: "f4739dc147217d1d575494d0bdd83427f898ddc3", class: "eds-ss__list", id: this.listboxId, role: "listbox" }, this.loading && t("li", { key: "def95414349449021ec318cae0e3990621992e3e", class: "eds-ss__status" }, "Searching…"), !this.loading && this.fetchError && t("li", { key: "32d940c717170d0e53200ff552bf513e3e6e5fe1", class: "eds-ss__status is-error" }, this.fetchError), !this.loading && !this.fetchError && this.visibleItems.length === 0 && t("li", { key: "bea6ededb51b4baab76eca8a237d4a740d3478da", class: "eds-ss__status" }, "No matches"), !this.loading && !this.fetchError && this.visibleItems.map((a, l) => t("li", { key: a.value, class: {
|
|
16991
|
+
"eds-ss__option": !0,
|
|
16992
|
+
"is-active": l === this.activeIndex,
|
|
16993
|
+
"is-selected": e.includes(String(a.value))
|
|
16994
|
+
}, role: "option", "aria-selected": e.includes(String(a.value)) ? "true" : "false", onMouseEnter: () => this.activeIndex = l, onMouseDown: (o) => {
|
|
16781
16995
|
o.preventDefault(), this.select(a);
|
|
16782
|
-
} }, a.label)), !this.loading && !this.fetchError && this.hiddenCount > 0 && t("li", { key: "
|
|
16996
|
+
} }, a.label)), !this.loading && !this.fetchError && this.hiddenCount > 0 && t("li", { key: "8d6fe6aa8041a948a19004a03728b1439469e28e", class: "eds-ss__more" }, "+", this.hiddenCount, " more — keep typing to narrow")), t("div", { key: "dfb6a12b7eff98bd05b674d385db1dc2e6a17ac2", class: "mt-6" }, t("eds-input-footer", { key: "2f0b9dbc247dea65d3c7abea1a6384b496e586b8", name: this.name, message: this.message, error: this.error, "error-message": this.errorMessage })));
|
|
16783
16997
|
}
|
|
16784
16998
|
get host() {
|
|
16785
|
-
return
|
|
16999
|
+
return w(this);
|
|
16786
17000
|
}
|
|
16787
17001
|
static get watchers() {
|
|
16788
17002
|
return {
|
|
@@ -16794,7 +17008,7 @@ const xr = ":host{display:block;width:100%;font-family:var(--f-ui-02-fontFamily,
|
|
|
16794
17008
|
yr.style = vr;
|
|
16795
17009
|
const wr = ":host{display:block;width:100%;height:100%;overflow-y:auto;overflow-x:hidden;transition:width 0.3s ease}:host(.collapsed){width:4rem}:host::-webkit-scrollbar{width:8px}:host::-webkit-scrollbar-track{background:transparent}:host::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.2);border-radius:4px}:host::-webkit-scrollbar-thumb:hover{background:rgba(0, 0, 0, 0.3)}.sidebar-nav{padding:0.5rem 0}.sidebar-header{display:flex;justify-content:flex-end;padding:0.5rem 0.75rem;margin-bottom:0.5rem}:host(.collapsed) .sidebar-header{justify-content:center;padding:0.5rem}.collapse-toggle{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;background:none;border:none;cursor:pointer;padding:0;border-radius:0.375rem;transition:background-color 0.15s ease;color:inherit}.collapse-toggle:hover{background-color:rgba(0, 0, 0, 0.08)}.collapse-toggle:focus-visible{outline:2px solid var(--eds-focus-color, #0066cc);outline-offset:2px}.sidebar-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0.125rem}.sidebar-item{display:flex;flex-direction:column}.sidebar-item-content{display:flex;align-items:center;gap:0.5rem;padding:0.5rem 0.75rem;cursor:pointer;user-select:none;word-break:break-word;transition:background-color 0.15s ease;border-radius:0.375rem;margin:0 0.5rem;position:relative}:host(.collapsed) .sidebar-item-content{justify-content:center;padding:0.75rem;margin:0 0.5rem}.sidebar-item-content:hover{background-color:rgba(0, 0, 0, 0.04)}.sidebar-item-content:focus-visible{outline:2px solid var(--eds-focus-color, #0066cc);outline-offset:-2px;z-index:1}.sidebar-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.25rem;height:1.25rem}.sidebar-content-wrapper{display:flex;align-items:center;gap:0.5rem;flex:1;min-width:0}.sidebar-toggle{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.25rem;height:1.25rem;padding:0;margin:-0.125rem 0;pointer-events:none}.sidebar-link-wrapper{flex:1;min-width:0;pointer-events:none}.sidebar-link{font-weight:400;pointer-events:none}.sidebar-children{list-style:none;margin:0.25rem 0 0 0;padding:0;display:flex;flex-direction:column;gap:0.125rem;overflow:hidden;animation:slideDown 0.2s ease}@keyframes slideDown{from{opacity:0;transform:translateY(-0.25rem)}to{opacity:1;transform:translateY(0)}}.sidebar-item.level-0 .sidebar-item-content{padding-left:0.75rem}:host(.collapsed) .sidebar-item.level-0 .sidebar-item-content{padding-left:0.75rem}.sidebar-item.level-1 .sidebar-item-content{padding-left:2rem}.sidebar-item.level-2 .sidebar-item-content{padding-left:3.25rem}.sidebar-item.level-3 .sidebar-item-content{padding-left:4.5rem}.sidebar-item.level-4 .sidebar-item-content{padding-left:5.75rem}.sidebar-item.level-5 .sidebar-item-content{padding-left:7rem}:host(.theme-default) .sidebar-item-content{border-radius:0.375rem;margin:0 0.5rem;padding:0.5rem 0.75rem}:host(.theme-default.collapsed) .sidebar-item-content{margin:0 0.5rem;border-radius:0.375rem}:host(.theme-default) .sidebar-item-content:hover{background-color:rgba(0, 0, 0, 0.04)}:host(.theme-default) .sidebar-item.active>.sidebar-item-content{background-color:transparent}:host(.theme-default) .sidebar-item.active>.sidebar-item-content .sidebar-link{font-weight:600}:host(.theme-default) .sidebar-item.level-0 .sidebar-item-content{padding-left:0.75rem}:host(.theme-default) .sidebar-item.level-1 .sidebar-item-content{padding-left:2rem}:host(.theme-default) .sidebar-item.level-2 .sidebar-item-content{padding-left:3.25rem}:host(.theme-default) .sidebar-item.level-3 .sidebar-item-content{padding-left:4.5rem}:host(.theme-default) .sidebar-item.level-4 .sidebar-item-content{padding-left:5.75rem}:host(.theme-minimal) .sidebar-item-content{border-radius:0;margin:0;padding-left:1rem;padding-right:1rem}:host(.theme-minimal.collapsed) .sidebar-item-content{margin:0 0.25rem;border-radius:0.375rem}:host(.theme-minimal) .sidebar-item-content:hover{background-color:rgba(0, 255, 157, 0.05);color:var(--brand-black, #07140D)}:host(.theme-minimal) .sidebar-item.active>.sidebar-item-content{background-color:rgba(0, 255, 157, 0.1);border-left:3px solid var(--brand-green-dark, #00C87B);padding-left:calc(1rem - 3px);color:var(--brand-black, #07140D);font-weight:500}:host(.theme-minimal.collapsed) .sidebar-item.active>.sidebar-item-content{border-left:none;border-radius:0.375rem;padding-left:0.75rem;background-color:rgba(0, 255, 157, 0.1);color:var(--brand-black, #07140D)}:host(.theme-minimal) .sidebar-item.level-1.active>.sidebar-item-content{padding-left:calc(2rem - 3px)}:host(.theme-minimal) .sidebar-item.level-2.active>.sidebar-item-content{padding-left:calc(3.25rem - 3px)}:host(.theme-minimal) .sidebar-item.level-3.active>.sidebar-item-content{padding-left:calc(4.5rem - 3px)}:host(.theme-minimal) .sidebar-item.level-4.active>.sidebar-item-content{padding-left:calc(5.75rem - 3px)}:host(.theme-minimal) .sidebar-item.level-0 .sidebar-item-content{padding-left:1rem}:host(.theme-minimal) .sidebar-item.level-1 .sidebar-item-content{padding-left:2rem}:host(.theme-minimal) .sidebar-item.level-2 .sidebar-item-content{padding-left:3.25rem}:host(.theme-minimal) .sidebar-item.level-3 .sidebar-item-content{padding-left:4.5rem}:host(.theme-minimal) .sidebar-item.level-4 .sidebar-item-content{padding-left:5.75rem}:host(.theme-minimal) .sidebar-children{position:relative}:host(.theme-ebrains) .sidebar-item-content{padding:0.5rem 1rem;border-radius:0.5rem;margin:0 0.5rem}:host(.theme-ebrains.collapsed) .sidebar-item-content{padding:0.75rem}:host(.theme-ebrains) .sidebar-item-content:hover{background-color:rgba(0, 0, 0, 0.05)}:host(.theme-ebrains) .sidebar-item.active>.sidebar-item-content{background-color:var(--brand-green-dark, #22c55e);color:white}:host(.theme-ebrains) .sidebar-item.active>.sidebar-item-content .sidebar-link{--eds-link-color:white;--eds-link-hover-color:white}:host(.theme-ebrains) .sidebar-item.active>.sidebar-item-content .sidebar-toggle{color:white}:host(.theme-ebrains) .sidebar-item.active>.sidebar-item-content .sidebar-icon{color:white}:host(.theme-ebrains) .sidebar-item.level-0 .sidebar-item-content{padding-left:1rem}:host(.theme-ebrains) .sidebar-item.level-1 .sidebar-item-content{padding-left:2.25rem}:host(.theme-ebrains) .sidebar-item.level-2 .sidebar-item-content{padding-left:3.5rem}:host(.theme-ebrains) .sidebar-item.level-3 .sidebar-item-content{padding-left:4.75rem}:host(.theme-ebrains) .sidebar-item.level-4 .sidebar-item-content{padding-left:6rem}@media (prefers-color-scheme: dark){.collapse-toggle:hover{background-color:rgba(255, 255, 255, 0.08)}:host(.theme-default) .sidebar-item-content:hover{background-color:rgba(255, 255, 255, 0.05)}:host(.theme-default) .sidebar-item.active>.sidebar-item-content{background-color:rgba(0, 102, 204, 0.15)}:host(.theme-minimal) .sidebar-item-content:hover{background-color:rgba(255, 255, 255, 0.06)}:host::-webkit-scrollbar-thumb{background:rgba(255, 255, 255, 0.2)}:host::-webkit-scrollbar-thumb:hover{background:rgba(255, 255, 255, 0.3)}}.sidebar-toggle eds-icon-wrapper,.sidebar-icon eds-icon-wrapper,.collapse-toggle eds-icon-wrapper{transition:transform 0.15s ease;display:flex;align-items:center;justify-content:center}.sidebar-item-content:focus-visible .sidebar-link{text-decoration:underline}.sidebar-item.active>.sidebar-item-content .sidebar-link{font-weight:500}:host(.collapsed) .sidebar-item-content::after{content:attr(title);position:absolute;left:100%;top:50%;transform:translateY(-50%);margin-left:0.5rem;padding:0.5rem 0.75rem;background:rgba(0, 0, 0, 0.9);color:white;border-radius:0.375rem;white-space:nowrap;font-size:0.875rem;opacity:0;pointer-events:none;transition:opacity 0.2s ease;z-index:1000}:host(.collapsed) .sidebar-item-content:hover::after{opacity:1;transition-delay:0.3s}.-ml-4{margin-left:-0.25rem}.mt-2{margin-top:0.125rem}", kr = wr, zr = class {
|
|
16796
17010
|
constructor(e) {
|
|
16797
|
-
u(this, e), this.sidebar =
|
|
17011
|
+
u(this, e), this.sidebar = k(this, "sidebar", 7), this.toggleItem = (n, i) => {
|
|
16798
17012
|
i && i.stopPropagation();
|
|
16799
17013
|
const r = new Set(this.openItems);
|
|
16800
17014
|
r.has(n) ? r.delete(n) : r.add(n), this.openItems = r;
|
|
@@ -16871,13 +17085,13 @@ const wr = ":host{display:block;width:100%;height:100%;overflow-y:auto;overflow-
|
|
|
16871
17085
|
} }, a && t("span", { class: "sidebar-toggle -ml-4", "aria-hidden": "true" }, t("eds-icon-wrapper", { name: i ? "chevron-down" : "chevron-right" })), t("span", { class: "sidebar-link-wrapper" }, t("eds-link", { label: e.title, url: e.url || "#", intent: r ? "strong" : "weak", size: "small", "aria-label": e.title, "extra-class": "sidebar-link", tabindex: "-1" }))), a && i && t("ul", { id: o, class: "sidebar-children" }, e.children.map((s) => this.renderItem(s, n + 1))));
|
|
16872
17086
|
}
|
|
16873
17087
|
render() {
|
|
16874
|
-
return t(
|
|
17088
|
+
return t(Y, { key: "f5221c19e8148ca62a76fb470a4aa6786c3e41b5", class: {
|
|
16875
17089
|
"eds-sidebar": !0,
|
|
16876
17090
|
[`theme-${this.theme}`]: !0
|
|
16877
17091
|
} }, t("nav", { key: "0a975a10a3892f6eabaf2a1c2be21963f0e76549", class: "sidebar-nav", "aria-label": "Sidebar" }, t("ul", { key: "498436fa1f4ec7ff2f3feea843fe58b415d20a3f", class: "sidebar-list" }, this.parsedItems.map((e) => this.renderItem(e, 0)))));
|
|
16878
17092
|
}
|
|
16879
17093
|
get el() {
|
|
16880
|
-
return
|
|
17094
|
+
return w(this);
|
|
16881
17095
|
}
|
|
16882
17096
|
static get watchers() {
|
|
16883
17097
|
return {
|
|
@@ -16928,7 +17142,7 @@ const Sr = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset
|
|
|
16928
17142
|
*/
|
|
16929
17143
|
render() {
|
|
16930
17144
|
const e = this.variant === "inverse", n = e ? "text-inverse" : "", i = e ? "inverse" : "strong";
|
|
16931
|
-
return t("nav", { key: "
|
|
17145
|
+
return t("nav", { key: "42abfdc0d94bad2fa273de7a476099df0a5103ff", "aria-label": "Social media" }, t("p", { key: "c2eb9600afd49b5b178392f0f46efd58909f8843", class: `f-ui-02 ${n}` }, this.heading), t("ul", { key: "b71a410550b06d89947ee9475af98c19cbe7e130", class: "mt-12 flex gap-4" }, this.socialNetworks.map((r, a) => t("li", { key: a }, t("eds-link", { external: !0, "aria-label": `EBRAINS on ${r.label}`, url: r.url, icon: r.icon, intent: i })))));
|
|
16932
17146
|
}
|
|
16933
17147
|
};
|
|
16934
17148
|
Er.style = Cr;
|
|
@@ -16992,13 +17206,15 @@ const Fr = ":host{display:block}.spinner{box-sizing:border-box;border-radius:50%
|
|
|
16992
17206
|
alignItems: "center",
|
|
16993
17207
|
justifyContent: "center"
|
|
16994
17208
|
};
|
|
16995
|
-
return t(
|
|
17209
|
+
return t(Y, { key: "4b78f045f987eb40289d2829bab08f28324f13d2" }, t("div", { key: "05fcd319080518845630c6fd4bccda02032c3c5f", class: "spinner-overlay", style: r }, t("span", { key: "c1e24a0e3f3f9704ad9a118724f3437124e4f36f", class: "spinner", style: i }), this.message && t("p", { key: "947cd986f00100e950b1c2380b651c6baebca142", class: "f-ui-01" }, this.message)));
|
|
16996
17210
|
}
|
|
16997
17211
|
};
|
|
16998
17212
|
Ir.style = Ar;
|
|
16999
|
-
const _r = `blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{position:sticky;margin-left:16px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4,.steps h5{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before,.steps h5::before{content:counter(step);position:absolute;left:-40px;top:-2px;display:flex;align-items:center;justify-content:center;width:31px;height:31px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.steps-img-placeholder{width:100%;height:200px;background:linear-gradient(to bottom, #9CE142, #00C959, #00A595);}.bg-\\[\\#00A595\\]{--tw-bg-opacity:1;background-color:rgb(0 165 149 / var(--tw-bg-opacity))}.relative{position:relative}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.text-center{text-align:center}.text-default{color:var(--brand-black)}.text-inverse{color:var(--white)}.text-light{color:var(--grey-light)}.text-lighter{color:var(--grey-dark)}.w-full{width:100%}.h-52{height:3.25rem}.h-96{height:6rem}.h-\\[200px\\]{height:200px}.justify-between{justify-content:space-between}.mt-16{margin-top:1rem}.mt-32{margin-top:2rem}.mt-64{margin-top:4rem}.my-16{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:0.75rem}.mb-16{margin-bottom:1rem}.last\\:mb-0:last-child{margin-bottom:0rem}.last\\:mt-16:last-child{margin-top:1rem}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.relative{position:relative}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.rounded{border-radius:0.25rem}.rounded-lg{border-radius:16px}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.p-24{padding:1.5rem}.bg-default{background-color:var(--grey-light)}.bg-inverse{background-color:var(--white)}.top-2{top:0.125rem}.bottom-2{bottom:0.125rem}.left-2{left:0.125rem}.right-2{right:0.125rem}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.overflow-hidden{overflow:hidden}.space-y-8{--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))}.space-y-16{--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.ml-8{margin-left:0.5rem}.gap-y-16{row-gap:1rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.block{display:block}.items-center{align-items:center}.px-8{padding-left:0.5rem;padding-right:0.5rem}.pb-20{padding-bottom:1.25rem}.eds-steps__title[role="button"]{cursor:pointer}.eds-steps__title.is-disabled{cursor:not-allowed;color:rgba(0, 0, 0, 0.5);}.eds-steps__title.is-disabled::before{opacity:1;filter:none}.steps--horizontal{display:flex;flex-direction:column;gap:2rem}.horizontal-indicators{display:flex;
|
|
17213
|
+
const _r = `blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{position:sticky;margin-left:16px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4,.steps h5{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before,.steps h5::before{content:counter(step);position:absolute;left:-40px;top:-2px;display:flex;align-items:center;justify-content:center;width:31px;height:31px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.steps-img-placeholder{width:100%;height:200px;background:linear-gradient(to bottom, #9CE142, #00C959, #00A595);}.bg-\\[\\#00A595\\]{--tw-bg-opacity:1;background-color:rgb(0 165 149 / var(--tw-bg-opacity))}.relative{position:relative}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.text-center{text-align:center}.text-default{color:var(--brand-black)}.text-inverse{color:var(--white)}.text-light{color:var(--grey-light)}.text-lighter{color:var(--grey-dark)}.w-full{width:100%}.h-52{height:3.25rem}.h-96{height:6rem}.h-\\[200px\\]{height:200px}.justify-between{justify-content:space-between}.mt-16{margin-top:1rem}.mt-32{margin-top:2rem}.mt-64{margin-top:4rem}.my-16{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:0.75rem}.mb-16{margin-bottom:1rem}.last\\:mb-0:last-child{margin-bottom:0rem}.last\\:mt-16:last-child{margin-top:1rem}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.relative{position:relative}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.rounded{border-radius:0.25rem}.rounded-lg{border-radius:16px}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.p-24{padding:1.5rem}.bg-default{background-color:var(--grey-light)}.bg-inverse{background-color:var(--white)}.top-2{top:0.125rem}.bottom-2{bottom:0.125rem}.left-2{left:0.125rem}.right-2{right:0.125rem}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.overflow-hidden{overflow:hidden}.space-y-8{--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))}.space-y-16{--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.ml-8{margin-left:0.5rem}.gap-y-16{row-gap:1rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.block{display:block}.items-center{align-items:center}.px-8{padding-left:0.5rem;padding-right:0.5rem}.pb-20{padding-bottom:1.25rem}.eds-steps__title[role="button"]{cursor:pointer}.eds-steps__title.is-disabled{cursor:not-allowed;color:rgba(0, 0, 0, 0.5);}.eds-steps__title.is-disabled::before{opacity:1;filter:none}.steps--horizontal{display:flex;flex-direction:column;gap:2rem}.horizontal-indicators{display:flex;align-items:flex-start;gap:0;padding:0;margin-top:1.75rem;margin-bottom:0}.horizontal-step{display:flex;flex-direction:column;align-items:flex-start;gap:0.6rem;cursor:pointer;flex:1 1 0;min-width:0;position:relative}.horizontal-step:last-child{flex:0 0 auto}.horizontal-step:not(:last-child)::after{content:'';position:absolute;top:1.375rem;left:calc(2.75rem + 0.4rem);width:calc(100% - 2.75rem - 0.8rem);height:3px;border-radius:2px;background-color:#e0e0e0;transform:translateY(-50%);z-index:1}.horizontal-step>span{text-align:left;align-self:stretch}.horizontal-step.is-completed:not(:last-child)::after{background-color:var(--brand-green-dark);}.step-indicator{width:2.75rem;height:2.75rem;border-radius:50%;border:2px solid #e0e0e0;display:flex;align-items:center;justify-content:center;background-color:white;transition:all 0.3s ease;flex:0 0 auto}.horizontal-step.is-active .step-indicator{border-color:var(--brand-green-dark);background-color:var(--brand-green-dark);color:var(--white)}.horizontal-step.is-completed .step-indicator{border-color:var(--brand-green-dark);background-color:var(--white)}.horizontal-step.is-disabled{opacity:0.5;cursor:not-allowed}.step-number{font-family:var(--font-family-mono, 'IBM Plex Mono', monospace);font-weight:500;font-size:0.95rem}.step-label{font-family:var(--font-family-mono, 'IBM Plex Mono', monospace);font-size:9.5px;letter-spacing:0.07em;text-transform:uppercase;font-weight:500;color:var(--dark-grey, #7a7b7a)}.horizontal-step.is-active .step-label{color:var(--brand-green-dark)}.step-content{padding:0.5rem 0;margin-left:0;margin-right:0}@media (min-width: 700px){.step-content{padding:1.5rem 0}}.opacity-50{opacity:0.5}.eds-steps__title[role="button"]{cursor:pointer}.theme-brand.steps h3::before,.theme-brand.steps h4::before,.theme-brand.steps h5::before{background:var(--brand-green);color:var(--brand-black);border-color:var(--brand-green);font-weight:600}.theme-brand .step-indicator{background-color:var(--grey-light);border-color:transparent;color:var(--dark-grey, #7a7b7a)}.theme-brand .horizontal-step.is-active .step-indicator{border-color:var(--brand-green);background-color:var(--brand-green);color:var(--brand-black);box-shadow:0 0 0 4px rgba(0, 255, 157, 0.2)}.theme-brand .horizontal-step.is-completed .step-indicator{border-color:var(--brand-green);background-color:var(--brand-green);color:var(--brand-black)}.theme-brand .horizontal-step.is-completed:not(:last-child)::after{background-color:var(--brand-green)}.theme-brand .horizontal-step.is-active .step-label,.theme-brand .horizontal-step.is-completed .step-label{color:var(--brand-black)}.theme-brand .step-number{font-weight:600}.theme-default.steps h3::before,.theme-default.steps h4::before,.theme-default.steps h5::before{background:var(--grey-900);color:#fff;border-color:#ccc}.theme-default .step-indicator{background-color:white;border-color:#e0e0e0}.theme-default .horizontal-step.is-active .step-indicator{border-color:var(--brand-green-dark);background-color:var(--brand-green-dark);color:var(--white)}.theme-default .horizontal-step.is-completed .step-indicator{border-color:var(--brand-green-dark);background-color:var(--white)}.theme-default .horizontal-step.is-completed:not(:last-child)::after{background-color:var(--brand-green-dark)}.theme-default .horizontal-step.is-active .step-label{color:var(--brand-green-dark)}`, Lr = _r, Mr = class {
|
|
17000
17214
|
constructor(e) {
|
|
17001
|
-
u(this, e), this.step =
|
|
17215
|
+
u(this, e), this.step = k(this, "step", 7), this.finished = k(this, "finished", 7), this.next = k(this, "next", 7), this.back = k(this, "back", 7), this.onResize = () => {
|
|
17216
|
+
this.isMobile = typeof window < "u" && window.innerWidth < 750;
|
|
17217
|
+
}, this.handleTitleClick = (n) => {
|
|
17002
17218
|
if (this.type === "linear") {
|
|
17003
17219
|
if (n > this.activeStep) {
|
|
17004
17220
|
for (let i = this.activeStep; i < n; i++)
|
|
@@ -17016,7 +17232,7 @@ const _r = `blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{p
|
|
|
17016
17232
|
}, this.handleNext = () => {
|
|
17017
17233
|
const n = this.parsedSteps.length - 1;
|
|
17018
17234
|
if (this.activeStep >= n) {
|
|
17019
|
-
this.finished.emit()
|
|
17235
|
+
this.finished.emit();
|
|
17020
17236
|
return;
|
|
17021
17237
|
}
|
|
17022
17238
|
const i = this.activeStep + 1;
|
|
@@ -17031,7 +17247,7 @@ const _r = `blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{p
|
|
|
17031
17247
|
const i = this.activeStep - 1;
|
|
17032
17248
|
this.back.emit(i), this.activeStep = i, this.step.emit(this.activeStep), Array.isArray(this.disableNext) || (this.disableNext = !1);
|
|
17033
17249
|
}
|
|
17034
|
-
}, this.steps = [], this.type = "static", this.orientation = "vertical", this.theme = "default", this.nextLabel = "Next", this.backLabel = "Back", this.finishLabel = "Finish", this.showFinish = !0, this.disableNext = !1, this.headingLevel = "h4", this.collapsibleTitles = !1, this.activeStep = 0;
|
|
17250
|
+
}, this.steps = [], this.type = "static", this.orientation = "vertical", this.theme = "default", this.nextLabel = "Next", this.backLabel = "Back", this.finishLabel = "Finish", this.showFinish = !0, this.disableNext = !1, this.headingLevel = "h4", this.collapsibleTitles = !1, this.activeStep = 0, this.isMobile = !1;
|
|
17035
17251
|
}
|
|
17036
17252
|
handleDisableNextChange(e) {
|
|
17037
17253
|
if (typeof e == "string" && e.trim().startsWith("["))
|
|
@@ -17041,8 +17257,18 @@ const _r = `blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{p
|
|
|
17041
17257
|
console.error("Failed to parse disable-next array:", n);
|
|
17042
17258
|
}
|
|
17043
17259
|
}
|
|
17260
|
+
/** Nav button size: comfortable on desktop, compact on mobile. */
|
|
17261
|
+
get navBtnSize() {
|
|
17262
|
+
return this.isMobile ? "small" : "large";
|
|
17263
|
+
}
|
|
17044
17264
|
componentWillLoad() {
|
|
17045
|
-
this.handleDisableNextChange(this.disableNext);
|
|
17265
|
+
this.handleDisableNextChange(this.disableNext), this.onResize();
|
|
17266
|
+
}
|
|
17267
|
+
connectedCallback() {
|
|
17268
|
+
typeof window < "u" && window.addEventListener("resize", this.onResize);
|
|
17269
|
+
}
|
|
17270
|
+
disconnectedCallback() {
|
|
17271
|
+
typeof window < "u" && window.removeEventListener("resize", this.onResize);
|
|
17046
17272
|
}
|
|
17047
17273
|
componentDidLoad() {
|
|
17048
17274
|
if (this.type === "linear") {
|
|
@@ -17074,7 +17300,7 @@ const _r = `blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{p
|
|
|
17074
17300
|
e.dispatchEvent(n);
|
|
17075
17301
|
}
|
|
17076
17302
|
get parsedSteps() {
|
|
17077
|
-
return
|
|
17303
|
+
return M(this.steps);
|
|
17078
17304
|
}
|
|
17079
17305
|
isStepDisabled(e) {
|
|
17080
17306
|
return Array.isArray(this.disableNext) ? e < this.disableNext.length ? !!this.disableNext[e] : !1 : e === this.activeStep && !!this.disableNext;
|
|
@@ -17114,7 +17340,7 @@ const _r = `blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{p
|
|
|
17114
17340
|
}
|
|
17115
17341
|
return t("div", { class: `horizontal-step ${i ? "is-active" : ""} ${r ? "is-completed" : ""}`, onClick: () => !a && this.handleTitleClick(n), onKeyDown: (o) => {
|
|
17116
17342
|
a || (o.key === "Enter" || o.key === " ") && (o.preventDefault(), this.handleTitleClick(n));
|
|
17117
|
-
}, role: "button", tabindex: a ? -1 : 0, "aria-label": `Step ${n + 1}: ${e.title}`, "aria-current": i ? "step" : void 0, "aria-disabled": a ? "true" : "false" }, t("div", { class: "step-indicator" }, t("span", { class: "step-number" }, n + 1)), t("span", { class: `
|
|
17343
|
+
}, role: "button", tabindex: a ? -1 : 0, "aria-label": `Step ${n + 1}: ${e.title}`, "aria-current": i ? "step" : void 0, "aria-disabled": a ? "true" : "false" }, t("div", { class: "step-indicator" }, t("span", { class: "step-number" }, n + 1)), t("span", { class: `step-label ${a ? "opacity-50" : ""}` }, e.title));
|
|
17118
17344
|
}
|
|
17119
17345
|
render() {
|
|
17120
17346
|
const e = this.parsedSteps, n = this.theme === "brand" ? "theme-brand" : "theme-default";
|
|
@@ -17123,14 +17349,14 @@ const _r = `blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{p
|
|
|
17123
17349
|
if (this.activeStep !== r)
|
|
17124
17350
|
return null;
|
|
17125
17351
|
const l = this.orientation === "horizontal" ? "mt-64" : "mt-32";
|
|
17126
|
-
return t("div", { class: "step-content", key: r, id: `eds-step-panel-${r}` }, t("slot", { name: `step-${r}` }, t("div", { class: "f-body-02 text-lighter", innerHTML: i.content })), t("div", { class: `flex items-center justify-between ${l}` }, t("eds-button", { label: this.backLabel, intent: "
|
|
17352
|
+
return t("div", { class: "step-content", key: r, id: `eds-step-panel-${r}` }, t("slot", { name: `step-${r}` }, t("div", { class: "f-body-02 text-lighter", innerHTML: i.content })), t("div", { class: `flex items-center justify-between ${l}` }, t("eds-button", { label: this.backLabel, intent: "primary", icon: "chevron-left", iconPos: "left", onClick: this.handleBack, disabled: r === 0, class: r === 0 ? "hidden" : "block", size: this.navBtnSize, iconSmall: this.isMobile }), (!a || this.showFinish) && t("eds-button", { label: a ? this.finishLabel : this.nextLabel, intent: a ? "brand" : "primary", icon: "chevron-right", onClick: this.handleNext, disabled: this.isNextDisabledFor(r), size: this.navBtnSize, iconSmall: this.isMobile, class: r > 0 ? "ml-8" : null })), t("slot", { name: `actions-${r}` }));
|
|
17127
17353
|
})) : this.type === "linear" ? t("div", { class: `steps ${n}` }, e.map((i, r) => {
|
|
17128
17354
|
const a = r === e.length - 1, l = this.orientation === "horizontal" ? "mt-64" : "mt-32";
|
|
17129
|
-
return t("div", { class: "step mb-16", key: r }, this.renderHeading(i.title, r), this.activeStep === r && t("div", { class: "content grid gap-y-16", id: `eds-step-panel-${r}` }, t("slot", { name: `step-${r}` }, t("div", { class: "my-16 f-body-02 text-lighter", innerHTML: i.content })), t("div", { class: `flex items-center justify-between ${l}` }, t("eds-button", { label: this.backLabel, intent: "
|
|
17355
|
+
return t("div", { class: "step mb-16", key: r }, this.renderHeading(i.title, r), this.activeStep === r && t("div", { class: "content grid gap-y-16", id: `eds-step-panel-${r}` }, t("slot", { name: `step-${r}` }, t("div", { class: "my-16 f-body-02 text-lighter", innerHTML: i.content })), t("div", { class: `flex items-center justify-between ${l}` }, t("eds-button", { label: this.backLabel, intent: "primary", icon: "chevron-left", iconPos: "left", onClick: this.handleBack, disabled: r === 0, class: r === 0 ? "hidden" : "block", size: this.navBtnSize, iconSmall: this.isMobile }), (!a || this.showFinish) && t("eds-button", { label: a ? this.finishLabel : this.nextLabel, intent: a ? "brand" : "primary", icon: "chevron-right", onClick: this.handleNext, disabled: this.isNextDisabledFor(r), size: this.navBtnSize, iconSmall: this.isMobile, class: r > 0 ? "ml-8" : null })), t("slot", { name: `actions-${r}` })));
|
|
17130
17356
|
})) : t("div", { class: `steps ${n}` }, e.map((i, r) => t("div", { class: "step mb-16", key: r }, this.renderHeading(i.title, r), t("div", { class: "content", id: `eds-step-panel-${r}` }, t("slot", { name: `step-${r}` }, t("div", { class: "f-body-02 text-lighter my-16", innerHTML: i.content }))))));
|
|
17131
17357
|
}
|
|
17132
17358
|
get el() {
|
|
17133
|
-
return
|
|
17359
|
+
return w(this);
|
|
17134
17360
|
}
|
|
17135
17361
|
static get watchers() {
|
|
17136
17362
|
return {
|
|
@@ -17139,10 +17365,12 @@ const _r = `blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{p
|
|
|
17139
17365
|
};
|
|
17140
17366
|
}
|
|
17141
17367
|
};
|
|
17142
|
-
|
|
17143
|
-
const
|
|
17368
|
+
Mr.style = Lr;
|
|
17369
|
+
const Hr = `blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{position:sticky;margin-left:16px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-41px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4,.steps h5{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps-body{margin-top:16px}@media (max-width: 749px){.steps h3,.steps h4,.steps h5{font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight)}.steps-body{margin-top:32px}}.steps h4::before,.steps h5::before{content:counter(step);position:absolute;left:-40px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.steps-img-placeholder{width:100%;height:200px;background:linear-gradient(to bottom, #9CE142, #00C959, #00A595);}.bg-\\[\\#00A595\\]{--tw-bg-opacity:1;background-color:rgb(0 165 149 / var(--tw-bg-opacity))}.relative{position:relative}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.text-center{text-align:center}.text-default{color:var(--brand-black)}.text-accent{color:var(--brand-green)}.text-inverse{color:var(--white)}.text-light{color:var(--grey-light)}.text-lighter{color:var(--grey-dark)}.w-full{width:100%}.h-52{height:3.25rem}.h-96{height:6rem}.h-\\[200px\\]{height:200px}.justify-between{justify-content:space-between}.mt-16{margin-top:1rem}.mt-32{margin-top:2rem}.mt-64{margin-top:4rem}.mb-16{margin-bottom:1rem}.mb-32{margin-bottom:2rem}.my-16{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:0.75rem}.last\\:mb-0:last-child{margin-bottom:0rem}.last\\:mt-16:last-child{margin-top:1rem}.border-softer{border:none}.relative{position:relative}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.rounded{border-radius:0.25rem}.rounded-lg{border-radius:16px}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.border-2{border-width:0}.p-8{padding:0.5rem}.p-24{padding:1.5rem}.bg-default{background-color:var(--grey-light)}.bg-inverse{background-color:var(--white)}.bg-strongest{background-color:var(--brand-black)}.top-2{top:0.125rem}.bottom-2{bottom:0.125rem}.left-2{left:0.125rem}.right-2{right:0.125rem}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.overflow-hidden{overflow:hidden}.space-y-8{--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))}.space-y-16{--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.ml-8{margin-left:0.5rem}.gap-y-16{row-gap:1rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.block{display:block}.items-center{align-items:center}.px-8{padding-left:0.5rem;padding-right:0.5rem}.pb-20{padding-bottom:1.25rem}.eds-steps__title[role="button"]{cursor:pointer}.eds-steps__title.is-disabled{cursor:not-allowed;color:rgba(0, 0, 0, 0.5);}.eds-steps__title.is-disabled::before{opacity:1;filter:none}.steps--horizontal{display:flex;flex-direction:column;gap:2rem}.horizontal-indicators{display:flex;align-items:flex-start;gap:0;padding:0;margin-top:1.75rem;margin-bottom:0}.step-content-aligned{padding-left:0;padding-right:0}.horizontal-step{display:flex;flex-direction:column;align-items:flex-start;gap:0.6rem;cursor:pointer;flex:1 1 0;min-width:0;position:relative}.horizontal-step:last-child{flex:0 0 auto}.horizontal-step:not(:last-child)::after{content:'';position:absolute;top:1.375rem;left:calc(2.75rem + 0.4rem);width:calc(100% - 2.75rem - 0.8rem);height:3px;border-radius:2px;background-color:#e0e0e0;transform:translateY(-50%);z-index:1}.horizontal-step>span{text-align:left;align-self:stretch}.horizontal-step.is-completed:not(:last-child)::after{background-color:var(--brand-green);}.step-indicator{width:2.75rem;height:2.75rem;border-radius:50%;border:2px solid #e0e0e0;display:flex;align-items:center;justify-content:center;background-color:white;transition:all 0.3s ease;flex:0 0 auto;z-index:2}.horizontal-step.is-active .step-indicator{border-color:var(--brand-green-dark);background-color:var(--brand-green-dark);color:var(--white)}.horizontal-step.is-completed .step-indicator{border-color:var(--brand-green-dark);background-color:var(--white)}.horizontal-step.is-disabled{opacity:0.5;cursor:not-allowed}.step-number{font-family:var(--font-family-mono, 'IBM Plex Mono', monospace);font-weight:500;font-size:0.95rem}.step-label{font-family:var(--font-family-mono, 'IBM Plex Mono', monospace);font-size:9.5px;letter-spacing:0.07em;text-transform:uppercase;font-weight:500;color:var(--dark-grey, #7a7b7a)}.horizontal-step.is-active .step-label{color:var(--brand-green-dark)}.step-content{padding:0.5rem 0;margin-left:0;margin-right:0}@media (min-width: 700px){.step-content{padding:1.5rem 0}}.opacity-50{opacity:0.5}.bg-dark{background-color:var(--grey-light)}.bg-darker{background-color:var(--grey-dark)}.theme-brand.steps h3::before,.theme-brand.steps h4::before,.theme-brand.steps h5::before{background:var(--brand-green);color:var(--brand-black);border-color:var(--brand-green);font-weight:600}.theme-brand.steps h3.is-completed::before,.theme-brand.steps h4.is-completed::before,.theme-brand.steps h5.is-completed::before{content:'';}.theme-brand.steps .step-checkmark-icon{position:absolute;left:-39px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:30px;height:30px;z-index:1}.theme-brand.steps h3 .step-checkmark-icon{left:-41px;width:32px;height:32px;top:50%}.theme-brand .step-indicator{background-color:var(--grey-light);border-color:transparent;color:var(--dark-grey, #7a7b7a)}.theme-brand .horizontal-step.is-active .step-indicator{border-color:var(--brand-green);background-color:var(--brand-green);color:var(--brand-black);box-shadow:0 0 0 4px rgba(0, 255, 157, 0.2)}.theme-brand .horizontal-step.is-completed .step-indicator{border-color:var(--brand-green);background-color:var(--brand-green);color:var(--brand-black)}.theme-brand .horizontal-step.is-completed .step-number{display:none}.theme-brand .horizontal-step:not(:last-child)::after{background-color:var(--grey-light);}.theme-brand .horizontal-step.is-completed:not(:last-child)::after{background-color:var(--brand-green)}.theme-brand .horizontal-step.is-active .step-label,.theme-brand .horizontal-step.is-completed .step-label{color:var(--brand-black)}.theme-brand .step-number{font-weight:600}.theme-default.steps h3::before,.theme-default.steps h4::before,.theme-default.steps h5::before{background:var(--grey-900);color:#fff;border-color:#ccc}.theme-default .step-indicator{background-color:white;border-color:#e0e0e0}.theme-default .horizontal-step.is-active .step-indicator{border-color:var(--brand-green-dark);background-color:var(--brand-green-dark);color:var(--white)}.theme-default .horizontal-step.is-completed .step-indicator{border-color:var(--brand-green-dark);background-color:var(--white)}.theme-default .horizontal-step.is-completed:not(:last-child)::after{background-color:var(--brand-green-dark)}.theme-default .horizontal-step.is-active .step-label{color:var(--brand-green-dark)}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--brand-green)}.effect-focus-within:focus-within{outline-style:solid}`, $r = Hr, Br = class {
|
|
17144
17370
|
constructor(e) {
|
|
17145
|
-
u(this, e), this.step =
|
|
17371
|
+
u(this, e), this.step = k(this, "step", 7), this.finished = k(this, "finished", 7), this.next = k(this, "next", 7), this.back = k(this, "back", 7), this.onResize = () => {
|
|
17372
|
+
this.isMobile = typeof window < "u" && window.innerWidth < 750;
|
|
17373
|
+
}, this.handleTitleClick = (n) => {
|
|
17146
17374
|
if (this.type === "linear") {
|
|
17147
17375
|
if (n > this.activeStep) {
|
|
17148
17376
|
for (let i = this.activeStep; i < n; i++)
|
|
@@ -17160,7 +17388,7 @@ const Mr = `blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{p
|
|
|
17160
17388
|
}, this.handleNext = () => {
|
|
17161
17389
|
const n = this.parsedSteps.length - 1;
|
|
17162
17390
|
if (this.activeStep >= n) {
|
|
17163
|
-
this.finished.emit()
|
|
17391
|
+
this.finished.emit();
|
|
17164
17392
|
return;
|
|
17165
17393
|
}
|
|
17166
17394
|
const i = this.activeStep + 1;
|
|
@@ -17175,7 +17403,11 @@ const Mr = `blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{p
|
|
|
17175
17403
|
const i = this.activeStep - 1;
|
|
17176
17404
|
this.back.emit(i), this.activeStep = i, this.step.emit(this.activeStep), Array.isArray(this.disableNext) || (this.disableNext = !1);
|
|
17177
17405
|
}
|
|
17178
|
-
}, this.steps = [], this.type = "static", this.orientation = "vertical", this.theme = "default", this.imageSrc = void 0, this.imageWidth = void 0, this.message = void 0, this.nextLabel = "Next", this.backLabel = "Back", this.finishLabel = "Finish", this.showFinish = !0, this.disableNext = !1, this.headingLevel = "h4", this.activeStep = 0;
|
|
17406
|
+
}, this.steps = [], this.type = "static", this.orientation = "vertical", this.theme = "default", this.imageSrc = void 0, this.imageWidth = void 0, this.message = void 0, this.nextLabel = "Next", this.backLabel = "Back", this.finishLabel = "Finish", this.showFinish = !0, this.card = !0, this.disableNext = !1, this.headingLevel = "h4", this.activeStep = 0, this.isMobile = !1;
|
|
17407
|
+
}
|
|
17408
|
+
/** Nav button size: comfortable on desktop, compact on mobile. */
|
|
17409
|
+
get navBtnSize() {
|
|
17410
|
+
return this.isMobile ? "small" : "large";
|
|
17179
17411
|
}
|
|
17180
17412
|
handleDisableNextChange(e) {
|
|
17181
17413
|
if (typeof e == "string" && e.trim().startsWith("["))
|
|
@@ -17201,7 +17433,13 @@ const Mr = `blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{p
|
|
|
17201
17433
|
}, 50);
|
|
17202
17434
|
}
|
|
17203
17435
|
componentWillLoad() {
|
|
17204
|
-
this.handleDisableNextChange(this.disableNext);
|
|
17436
|
+
this.handleDisableNextChange(this.disableNext), this.onResize();
|
|
17437
|
+
}
|
|
17438
|
+
connectedCallback() {
|
|
17439
|
+
typeof window < "u" && window.addEventListener("resize", this.onResize);
|
|
17440
|
+
}
|
|
17441
|
+
disconnectedCallback() {
|
|
17442
|
+
typeof window < "u" && window.removeEventListener("resize", this.onResize);
|
|
17205
17443
|
}
|
|
17206
17444
|
componentDidLoad() {
|
|
17207
17445
|
if (this.type === "linear") {
|
|
@@ -17221,10 +17459,10 @@ const Mr = `blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{p
|
|
|
17221
17459
|
e.dispatchEvent(n);
|
|
17222
17460
|
}
|
|
17223
17461
|
articleClasses() {
|
|
17224
|
-
return
|
|
17462
|
+
return this.card ? "border-softer relative rounded-lg border-2" : "relative";
|
|
17225
17463
|
}
|
|
17226
17464
|
get parsedSteps() {
|
|
17227
|
-
return
|
|
17465
|
+
return M(this.steps);
|
|
17228
17466
|
}
|
|
17229
17467
|
isStepDisabled(e) {
|
|
17230
17468
|
return Array.isArray(this.disableNext) ? e < this.disableNext.length ? !!this.disableNext[e] : !1 : e === this.activeStep && !!this.disableNext;
|
|
@@ -17264,20 +17502,23 @@ const Mr = `blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{p
|
|
|
17264
17502
|
}
|
|
17265
17503
|
return t("div", { class: `horizontal-step ${i ? "is-active" : ""} ${r ? "is-completed" : ""}`, onClick: () => !a && this.handleTitleClick(n), onKeyDown: (o) => {
|
|
17266
17504
|
a || (o.key === "Enter" || o.key === " ") && (o.preventDefault(), this.handleTitleClick(n));
|
|
17267
|
-
}, role: "button", tabindex: a ? -1 : 0, "aria-label": `Step ${n + 1}: ${e.title}`, "aria-current": i ? "step" : void 0, "aria-disabled": a ? "true" : "false" }, t("div", { class: "step-indicator" }, r ? t("eds-icon-wrapper", { name: "checkmark", size: 20 }) : t("span", { class: "step-number" }, n + 1)), t("span", { class: `
|
|
17505
|
+
}, role: "button", tabindex: a ? -1 : 0, "aria-label": `Step ${n + 1}: ${e.title}`, "aria-current": i ? "step" : void 0, "aria-disabled": a ? "true" : "false" }, t("div", { class: "step-indicator" }, r ? t("eds-icon-wrapper", { name: "checkmark", size: 20 }) : t("span", { class: "step-number" }, n + 1)), t("span", { class: `step-label ${a ? "opacity-50" : ""}` }, e.title));
|
|
17268
17506
|
}
|
|
17269
17507
|
render() {
|
|
17270
|
-
const e = this.parsedSteps, n = this.orientation === "horizontal" ? "mt-64" : "mt-32", i = this.theme === "brand" ? "theme-brand" : "theme-default";
|
|
17271
|
-
return t("div", { key: "
|
|
17508
|
+
const e = this.parsedSteps, n = this.orientation === "horizontal" ? "mt-64 mb-16" : "mt-32 mb-32", i = this.theme === "brand" ? "theme-brand" : "theme-default";
|
|
17509
|
+
return t("div", { key: "84383c5655004ccc0bcc144f3765c2d0b000cad6", class: this.articleClasses() }, this.imageSrc ? t("div", { class: "w-full mb-12 rounded-t-lg overflow-hidden border-2" }, t("eds-img", { src: this.imageSrc, width: this.imageWidth, "with-bg": "true", "lazy-load": "true", alt: "Step illustration" })) : this.message && t("div", { class: `w-full ${this.theme === "brand" ? "bg-strongest" : "bg-darker"} rounded-t-lg border-2` }, t("div", { class: "p-24" }, t("span", { class: `${this.theme === "brand" ? "text-accent" : "text-inverse"} f-heading-04` }, this.message))), t("div", { key: "d5fb5bbf6a48b90bf0db1e79a61ba5e445986368", class: "steps-body pb-20", style: {
|
|
17510
|
+
paddingLeft: "var(--eds-steps-padding-x, 0.5rem)",
|
|
17511
|
+
paddingRight: "var(--eds-steps-padding-x, 0.5rem)"
|
|
17512
|
+
} }, this.type === "linear" && this.orientation === "horizontal" ? t("div", { class: `steps--horizontal ${i}`, style: { "--step-count": e.length.toString() } }, t("div", { class: "horizontal-indicators" }, e.map((r, a) => this.renderHorizontalIndicator(r, a))), e.map((r, a) => {
|
|
17272
17513
|
const l = a === e.length - 1;
|
|
17273
|
-
return this.activeStep !== a ? null : t("div", { class: "step-content", key: a, id: `eds-step-panel-${a}` }, t("slot", { name: `step-${a}` }, t("div", { class: "f-body-02 text-lighter", innerHTML: r.content })), t("div", { class: `flex items-center justify-between ${n}` }, t("eds-button", { label: this.backLabel, intent: "primary", icon: "arrow-left", iconPos: "left", onClick: this.handleBack, disabled: a === 0, class: a === 0 ? "hidden" : "block", size:
|
|
17514
|
+
return this.activeStep !== a ? null : t("div", { class: "step-content", key: a, id: `eds-step-panel-${a}` }, t("slot", { name: `step-${a}` }, t("div", { class: "f-body-02 text-lighter", innerHTML: r.content })), t("div", { class: `flex items-center justify-between ${n}` }, t("eds-button", { label: this.backLabel, intent: "primary", icon: "arrow-left", iconPos: "left", onClick: this.handleBack, disabled: a === 0, class: a === 0 ? "hidden" : "block", size: this.navBtnSize, iconSmall: this.isMobile, pill: !0 }), (!l || this.showFinish) && t("eds-button", { label: l ? this.finishLabel : this.nextLabel, intent: l ? "brand" : "primary", icon: "arrow-right", onClick: this.handleNext, disabled: this.isNextDisabledFor(a), size: this.navBtnSize, iconSmall: this.isMobile, class: a > 0 ? "ml-8" : null, pill: !0 })), t("slot", { name: `actions-${a}` }));
|
|
17274
17515
|
})) : this.type === "linear" ? t("div", { class: `steps ${i}` }, e.map((r, a) => {
|
|
17275
17516
|
const l = this.activeStep > a;
|
|
17276
|
-
return t("div", { class: `${a === 0 ? "step" : "step mt-16"} ${l ? "is-completed" : ""}`, key: a }, this.renderHeading(r.title, a), this.activeStep === a && t("div", { class: "content grid gap-y-16", id: `eds-step-panel-${a}` }, t("slot", { name: `step-${a}` }, t("div", { class: "my-16 f-body-02 text-lighter", innerHTML: r.content })), t("div", { class: `flex items-center justify-between ${n}` }, t("eds-button", { label: this.backLabel, intent: "
|
|
17517
|
+
return t("div", { class: `${a === 0 ? "step" : "step mt-16"} ${l ? "is-completed" : ""}`, key: a }, this.renderHeading(r.title, a), this.activeStep === a && t("div", { class: "content grid gap-y-16", id: `eds-step-panel-${a}` }, t("slot", { name: `step-${a}` }, t("div", { class: "my-16 f-body-02 text-lighter", innerHTML: r.content })), t("div", { class: `flex items-center justify-between ${n}` }, t("eds-button", { label: this.backLabel, intent: "primary", icon: "chevron-left", iconPos: "left", onClick: this.handleBack, disabled: a === 0, class: a === 0 ? "hidden" : "block", size: this.navBtnSize, iconSmall: this.isMobile, pill: !0 }), (a < e.length - 1 || this.showFinish) && t("eds-button", { label: a === e.length - 1 ? this.finishLabel : this.nextLabel, intent: a === e.length - 1 ? "brand" : "primary", icon: "chevron-right", onClick: this.handleNext, disabled: this.isNextDisabledFor(a), size: this.navBtnSize, iconSmall: this.isMobile, class: a > 0 ? "ml-8" : null, pill: !0 }))));
|
|
17277
17518
|
})) : t("div", { class: `steps space-y-8 ${i}` }, e.map((r, a) => t("div", { class: "step", key: a }, this.renderHeading(r.title, a), t("div", { class: "content", id: `eds-step-panel-${a}` }, t("div", { class: "content-body" }, t("slot", { name: `step-${a}` }, t("div", { class: "my-16 f-body-02 text-lighter", innerHTML: r.content })))))))));
|
|
17278
17519
|
}
|
|
17279
17520
|
get el() {
|
|
17280
|
-
return
|
|
17521
|
+
return w(this);
|
|
17281
17522
|
}
|
|
17282
17523
|
static get watchers() {
|
|
17283
17524
|
return {
|
|
@@ -17286,10 +17527,10 @@ const Mr = `blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{p
|
|
|
17286
17527
|
};
|
|
17287
17528
|
}
|
|
17288
17529
|
};
|
|
17289
|
-
|
|
17290
|
-
const
|
|
17530
|
+
Br.style = $r;
|
|
17531
|
+
const Dr = ":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:var(--grey-dark);padding:0;cursor:pointer;transition:background-color 0.2s}button.switch.switch--checked{background-color:var(--brand-green)}button.switch.switch--disabled{opacity:0.6;cursor:not-allowed}.switch-handle{position:absolute;width:22px;height:22px;border-radius:50%;background-color:#fff;top:2px;left:2px;transition:transform 0.2s}button.switch.switch--checked .switch-handle{transform:translateX(24px)}.ml-8{margin-left:0.5rem}.mr-8{margin-right:0.5rem}.switch:focus{outline:2px solid #005fcc;outline-offset:2px}.switch:focus:not(:focus-visible){outline:none}.switch:focus-visible{outline-width:3px;outline-offset:2px;outline-color:var(--brand-green)}.segmented-container{display:inline-flex;gap:0.5rem;background:var(--grey-light);padding:0.5rem;border-radius:2rem}.segmented-btn{padding:0.5rem 1.5rem;background:transparent;border:none;border-radius:1.5rem;font-family:var(--plex-sans, 'IBM Plex Sans', system-ui, sans-serif);font-size:14px;font-weight:500;cursor:pointer;transition:all 0.3s;color:var(--body-l, #5a5f5c);white-space:nowrap}.segmented-btn--active{background:var(--brand-green);color:var(--brand-black)}.segmented-btn:hover:not(.segmented-btn--active):not(.segmented-btn--disabled){color:var(--brand-black)}.segmented-container--dark{background:#fff;border:1px solid var(--grey-300, #e2e2e2);padding:4px;gap:3px}.segmented-container--dark .segmented-btn{padding:9px 30px;border-radius:999px;transition:0.14s}.segmented-container--dark .segmented-btn--active{background:var(--brand-black, #07140d);color:#fff}.segmented-btn--disabled{opacity:0.6;cursor:not-allowed}.segmented-btn:focus{outline:2px solid #005fcc;outline-offset:2px}.segmented-btn:focus:not(:focus-visible){outline:none}.segmented-btn:focus-visible{outline-width:3px;outline-offset:2px;outline-color:var(--brand-green)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);letter-spacing:var(--f-ui-03-letterSpacing)}", Tr = Dr, Vr = class {
|
|
17291
17532
|
constructor(e) {
|
|
17292
|
-
u(this, e), this.uiswitch =
|
|
17533
|
+
u(this, e), this.uiswitch = k(this, "uiswitch", 7), this.toggleSwitch = () => {
|
|
17293
17534
|
this.disabled || (this.checked = !this.checked, this.uiswitch.emit({ value: this.checked }), F({
|
|
17294
17535
|
category: "ui-component",
|
|
17295
17536
|
tag: this.el.tagName.toLowerCase(),
|
|
@@ -17301,7 +17542,7 @@ const Tr = ":host{display:inline-block}.switch-container{display:inline-flex;ali
|
|
|
17301
17542
|
}, this.checked = !1, this.disabled = !1, this.labelOn = "", this.labelOff = "", this.variant = "toggle";
|
|
17302
17543
|
}
|
|
17303
17544
|
render() {
|
|
17304
|
-
return this.variant === "segmented" ? this.renderSegmented() : this.renderToggle();
|
|
17545
|
+
return this.variant === "segmented" || this.variant === "segmented-dark" ? this.renderSegmented() : this.renderToggle();
|
|
17305
17546
|
}
|
|
17306
17547
|
renderToggle() {
|
|
17307
17548
|
const e = `switch-${Math.random().toString(36).substr(2, 9)}`, n = [];
|
|
@@ -17314,28 +17555,31 @@ const Tr = ":host{display:inline-block}.switch-container{display:inline-flex;ali
|
|
|
17314
17555
|
}, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, t("span", { class: "switch-handle" })), this.labelOn && t("span", { id: `${e}-on`, class: "switch-label switch-label--on ml-8" }, this.labelOn));
|
|
17315
17556
|
}
|
|
17316
17557
|
renderSegmented() {
|
|
17317
|
-
return t("div", { class:
|
|
17558
|
+
return t("div", { class: {
|
|
17559
|
+
"segmented-container": !0,
|
|
17560
|
+
"segmented-container--dark": this.variant === "segmented-dark"
|
|
17561
|
+
}, role: "group", "aria-label": "View toggle" }, t("button", { type: "button", tabindex: this.disabled ? "-1" : "0", class: {
|
|
17318
17562
|
"segmented-btn": !0,
|
|
17319
17563
|
"segmented-btn--active": !this.checked,
|
|
17320
17564
|
"segmented-btn--disabled": this.disabled
|
|
17321
17565
|
}, onClick: () => {
|
|
17322
17566
|
!this.disabled && this.checked && this.toggleSwitch();
|
|
17323
|
-
}, onKeyDown: this.handleKeyDown, disabled: this.disabled, "aria-pressed": this.checked ? "false" : "true" }, t("span",
|
|
17567
|
+
}, onKeyDown: this.handleKeyDown, disabled: this.disabled, "aria-pressed": this.checked ? "false" : "true" }, t("span", null, this.labelOff)), t("button", { type: "button", tabindex: this.disabled ? "-1" : "0", class: {
|
|
17324
17568
|
"segmented-btn": !0,
|
|
17325
17569
|
"segmented-btn--active": this.checked,
|
|
17326
17570
|
"segmented-btn--disabled": this.disabled
|
|
17327
17571
|
}, onClick: () => {
|
|
17328
17572
|
!this.disabled && !this.checked && this.toggleSwitch();
|
|
17329
|
-
}, onKeyDown: this.handleKeyDown, disabled: this.disabled, "aria-pressed": this.checked ? "true" : "false" }, t("span",
|
|
17573
|
+
}, onKeyDown: this.handleKeyDown, disabled: this.disabled, "aria-pressed": this.checked ? "true" : "false" }, t("span", null, this.labelOn)));
|
|
17330
17574
|
}
|
|
17331
17575
|
get el() {
|
|
17332
|
-
return
|
|
17576
|
+
return w(this);
|
|
17333
17577
|
}
|
|
17334
17578
|
};
|
|
17335
|
-
Vr.style =
|
|
17336
|
-
const
|
|
17579
|
+
Vr.style = Tr;
|
|
17580
|
+
const Or = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.brand-table-wrapper{margin-top:2rem;width:100%}.brand-table{width:100% !important;border-collapse:separate !important;border-spacing:0 !important;display:table !important;table-layout:fixed !important}.brand-thead{background:var(--grey-light)}.brand-header-row{border:none !important}.brand-header-row th{padding:1rem 1.5rem !important;text-align:center !important;font-weight:600 !important;font-size:0.9rem !important;text-transform:uppercase;letter-spacing:0.05em;color:var(--grey-dark) !important;border:none !important;overflow-wrap:break-word !important;word-wrap:break-word !important}.brand-header-row th:first-child{border-radius:0.5rem 0 0 0;padding-left:2rem !important}.brand-header-row th:last-child{border-radius:0 0.5rem 0 0;padding-right:2rem !important}.brand-row{border-bottom:1px solid var(--grey-light) !important;transition:all 0.3s ease;position:relative;background:transparent !important}.brand-row.has-actions{cursor:pointer}.brand-row:hover{background:rgba(0, 255, 157, 0.05) !important}.brand-row td{padding:1.5rem 1.5rem !important;border:none !important;vertical-align:middle;position:relative;z-index:1;overflow-wrap:break-word !important;word-wrap:break-word !important}.brand-row td:first-child{padding-left:2rem !important}.brand-row td:last-child{padding-right:2rem !important}.brand-row .actions-cell{text-align:right !important}.brand-table tr.brand-row{border-left:none;border-right:none;border-top:none}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.p-4{padding:0.25rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-8{padding-left:0.5rem;padding-right:0.5rem}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}.controls-container{display:flex;width:100%}.view-toggle-wrapper{flex-shrink:0}.search-wrapper{min-width:0}.card-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));gap:1.5rem;margin-top:1.5rem}.data-card{background:var(--white);border:1px solid var(--grey-light);border-radius:0.75rem;padding:1.5rem;transition:all 0.3s ease;display:flex;flex-direction:column;gap:1rem}.data-card:hover{border-color:var(--brand-green);box-shadow:0 4px 12px rgba(0, 255, 157, 0.1);transform:translateY(-2px)}.card-content{display:flex;flex-direction:column;gap:0.75rem;flex:1}.card-field{display:flex;flex-direction:column;gap:0.25rem}.card-label{font-family:var(--f-ui-03-fontFamily);font-size:var(--f-ui-03-fontSize);font-weight:var(--f-ui-03-fontWeight);line-height:var(--f-ui-03-lineHeight);text-transform:uppercase;letter-spacing:0.05em;color:var(--grey-dark)}.card-value{font-family:var(--f-ui-02-fontFamily);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);color:var(--brand-black);word-wrap:break-word}.card-field:first-child .card-value{font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight)}.card-actions{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;gap:0.5rem;padding-top:0.75rem;border-top:1px solid var(--grey-light)}@media (min-width: 640px){.card-grid{grid-template-columns:repeat(auto-fill, minmax(320px, 1fr))}}@media (min-width: 1024px){.card-grid{grid-template-columns:repeat(auto-fill, minmax(350px, 1fr));gap:2rem}}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-start{align-items:flex-start}.items-center{align-items:center}.gap-16{gap:1rem}.mb-16{margin-bottom:1rem}.w-full{width:100%}.w-auto{width:auto}@media (min-width: 750px){.flex-md-row{flex-direction:row}.items-md-center{align-items:center}.w-md-auto{width:auto}.w-md-400{width:400px}}", Nr = Or, Pr = class {
|
|
17337
17581
|
constructor(e) {
|
|
17338
|
-
u(this, e), this.rowaction =
|
|
17582
|
+
u(this, e), this.rowaction = k(this, "rowaction", 7), this.viewchange = k(this, "viewchange", 7), this.handleResize = () => {
|
|
17339
17583
|
this.updateContainerWidth();
|
|
17340
17584
|
}, this.onActionKeyDown = (n) => {
|
|
17341
17585
|
var i;
|
|
@@ -17398,7 +17642,7 @@ const Nr = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
17398
17642
|
}
|
|
17399
17643
|
parseData() {
|
|
17400
17644
|
try {
|
|
17401
|
-
this.tbData =
|
|
17645
|
+
this.tbData = M(this.data), this.totalRows = this.tbData.length, this.updateColumns(), this.currentPage = 1;
|
|
17402
17646
|
} catch (e) {
|
|
17403
17647
|
console.error("Failed to parse data:", e), this.tbData = [];
|
|
17404
17648
|
}
|
|
@@ -17451,12 +17695,12 @@ const Nr = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
17451
17695
|
*/
|
|
17452
17696
|
renderSingleActionCell(e, n) {
|
|
17453
17697
|
var i;
|
|
17454
|
-
const r = this.parsedActions.find((
|
|
17698
|
+
const r = this.parsedActions.find((m) => m.name === e);
|
|
17455
17699
|
if (this.actionTemplate)
|
|
17456
17700
|
return this.actionTemplate(n);
|
|
17457
17701
|
if ((r.type || "button") === "checkbox") {
|
|
17458
|
-
const
|
|
17459
|
-
return t("eds-input-field", { name: `chc-${e}`, label: r.label, type: "checkbox", checked:
|
|
17702
|
+
const m = (i = r.field) !== null && i !== void 0 ? i : r.name, y = !!n[m];
|
|
17703
|
+
return t("eds-input-field", { name: `chc-${e}`, label: r.label, type: "checkbox", checked: y, onChange: (A) => this.emitAction(r.name, n, A.target.checked) });
|
|
17460
17704
|
}
|
|
17461
17705
|
const l = r.showLabel === !0, o = this.theme === "brand", s = r.intent || (o ? "primary" : "ghost"), h = t("eds-button", { icon: r.icon, label: l ? r.label : null, iconPos: r.pos || "left", pill: !0, size: "small", intent: s, tabIndex: 0, onClick: () => this.emitAction(r.name, n) });
|
|
17462
17706
|
return l ? h : t("eds-tooltip", { content: r.label }, h);
|
|
@@ -17515,10 +17759,10 @@ const Nr = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
17515
17759
|
}
|
|
17516
17760
|
render() {
|
|
17517
17761
|
const e = this.getPaginatedRows(), n = Math.ceil(this.totalRows / this.rowsPerPage), i = this.showViewToggle || this.searchEnabled;
|
|
17518
|
-
return t("div", { key: "
|
|
17762
|
+
return t("div", { key: "8a025e9e12285aa3444b2f83e0b68af55cbe32e6" }, i && t("div", { key: "f97864d8b61db7ec4fa623ecadc3c225464a6c84", class: "controls-container flex-col flex-md-row items-start items-md-center justify-between gap-16 mb-16" }, this.showViewToggle && t("div", { key: "ddf8b1c0fb59fe81efa22a4dc02b414d41ae7208", class: "view-toggle-wrapper" }, t("eds-switch", { key: "c3631986b456a88559face6a2ce7ce8acd5d01c2", variant: "segmented", labelOff: "Table View", labelOn: "Card View", checked: this.view === "card", onUiswitch: this.handleViewChange })), this.searchEnabled && t("div", { key: "a02d7f163dd2bb34bb26ae60bd5b018ed07291d9", class: `search-wrapper w-full ${this.showViewToggle ? "w-md-400" : ""}` }, t("eds-input-field", { key: 1, icon: "search", name: "search", "aria-label": "Search", type: "text", placeholder: "Search...", onInput: (r) => this.handleSearch(r) }))), this.view === "card" ? this.renderCardView(e) : this.renderTableView(e), this.shouldEnablePagination() && t("div", { key: "ecf412674a951b4d19e87385270cb49e64e590f6", class: "mt-20" }, t("eds-pagination", { key: "fe1365ecb4d249548ba0c936a48b6141ff14ad0e", currentPage: this.currentPage, lastPage: n, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })));
|
|
17519
17763
|
}
|
|
17520
17764
|
get hostEl() {
|
|
17521
|
-
return
|
|
17765
|
+
return w(this);
|
|
17522
17766
|
}
|
|
17523
17767
|
static get watchers() {
|
|
17524
17768
|
return {
|
|
@@ -17528,10 +17772,10 @@ const Nr = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
17528
17772
|
};
|
|
17529
17773
|
}
|
|
17530
17774
|
};
|
|
17531
|
-
Pr.style =
|
|
17775
|
+
Pr.style = Nr;
|
|
17532
17776
|
const Rr = ":host{display:block}.tabs-container{display:flex;gap:0.25rem;padding:0.25rem;border-radius:10px;width:fit-content;margin-bottom:3rem}.tabs-container-default{background-color:var(--brand-black, #07140D);border:1px solid rgba(255, 255, 255, 0.06)}.tabs-container-inverse{background:rgba(0, 0, 0, 0.02);border:1px solid rgba(0, 0, 0, 0.06)}.tabs-nav{display:flex;gap:0.25rem}.tab{padding:0.625rem 1.25rem;border-radius:8px;font-size:1.125rem;cursor:pointer;transition:color 0.15s ease;border:none;background:transparent;font-family:'IBM Plex Sans', sans-serif;white-space:nowrap;outline:none}.tab:focus-visible{outline:3px solid var(--brand-green);outline-offset:2px}.tab-default{color:var(--grey-700)}.tab-default:hover{color:var(--white)}.tab-default.tab-active{background:rgba(0, 255, 157, 0.1);color:var(--brand-green)}.tab-inverse{color:var(--grey-700)}.tab-inverse:hover{color:var(--brand-black)}.tab-inverse.tab-active{background:rgba(0, 200, 123, 0.1);color:var(--brand-green-dark)}.tab-panels{margin-top:2rem}.tab-panels>div{outline:none}.tab-panels>div:focus-visible{outline:3px solid var(--brand-green);outline-offset:2px;border-radius:4px}@media (max-width: 768px){.tabs-container{width:100%;overflow-x:auto}.tabs-nav{width:100%;min-width:fit-content}}", jr = Rr, Wr = class {
|
|
17533
17777
|
constructor(e) {
|
|
17534
|
-
u(this, e), this.tab =
|
|
17778
|
+
u(this, e), this.tab = k(this, "tab", 7), this.tabRefs = [], this.setTabRef = (n, i) => {
|
|
17535
17779
|
n && (this.tabRefs[i] = n);
|
|
17536
17780
|
}, this.identifier = void 0, this.navAriaLabel = "Tabs", this.tabs = void 0, this.variant = "default", this.parsedTabs = [], this.activeIndex = -1;
|
|
17537
17781
|
}
|
|
@@ -17552,7 +17796,7 @@ const Rr = ":host{display:block}.tabs-container{display:flex;gap:0.25rem;padding
|
|
|
17552
17796
|
* truncate when the new list is shorter to drop stale entries.
|
|
17553
17797
|
*/
|
|
17554
17798
|
parseTabs() {
|
|
17555
|
-
this.parsedTabs =
|
|
17799
|
+
this.parsedTabs = M(this.tabs), this.tabRefs.length > this.parsedTabs.length && (this.tabRefs.length = this.parsedTabs.length);
|
|
17556
17800
|
}
|
|
17557
17801
|
componentDidUpdate() {
|
|
17558
17802
|
this.tabRefs.length > this.parsedTabs.length && (this.tabRefs.length = this.parsedTabs.length);
|
|
@@ -17600,21 +17844,14 @@ const Rr = ":host{display:block}.tabs-container{display:flex;gap:0.25rem;padding
|
|
|
17600
17844
|
i !== n && this.handleTabClick(i, this.parsedTabs[i].label, !0);
|
|
17601
17845
|
}
|
|
17602
17846
|
render() {
|
|
17603
|
-
const e = [
|
|
17604
|
-
|
|
17605
|
-
`
|
|
17606
|
-
].join(" ");
|
|
17607
|
-
return t("div", { key: "646f43031cde2e0ab84d2830fd9477841b3c757b", id: `${this.identifier}` }, t("div", { key: "2eb01c96640c6fc602777f227525066e5970489e", class: e }, t("nav", { key: "b419fc7414574ea70b19433a3c5daa63b5ad6652", role: "tablist", class: "tabs-nav", "aria-label": this.navAriaLabel }, this.parsedTabs.map((n, i) => {
|
|
17608
|
-
const r = i === this.activeIndex, a = [
|
|
17609
|
-
"tab",
|
|
17610
|
-
`tab-${this.variant}`,
|
|
17611
|
-
r ? "tab-active" : ""
|
|
17612
|
-
].filter(Boolean).join(" ");
|
|
17847
|
+
const e = ["tabs-container", `tabs-container-${this.variant}`].join(" ");
|
|
17848
|
+
return t("div", { key: "39b1e8fc98303be43fbbd0e67807786fe0ad8fef", id: `${this.identifier}` }, t("div", { key: "3cef6bd5804c110e51560c7b58de5cb77eadbbb6", class: e }, t("nav", { key: "b59ed6ad2fe067b2c39b1db43cd4242eec1b01bf", role: "tablist", class: "tabs-nav", "aria-label": this.navAriaLabel }, this.parsedTabs.map((n, i) => {
|
|
17849
|
+
const r = i === this.activeIndex, a = ["tab", `tab-${this.variant}`, r ? "tab-active" : ""].filter(Boolean).join(" ");
|
|
17613
17850
|
return t("button", { class: a, type: "button", role: "tab", "aria-selected": r ? "true" : "false", tabIndex: r ? 0 : -1, "aria-label": n.ariaLabel || n.label, "aria-controls": `panel-${i}`, id: `tab-${i}`, ref: (l) => this.setTabRef(l, i), onClick: () => this.handleTabClick(i, n.label, !0), onKeyDown: (l) => this.onKeyDown(l, i) }, n.label || n.ariaLabel);
|
|
17614
|
-
}))), t("div", { key: "
|
|
17851
|
+
}))), t("div", { key: "224717af5f59fbea2683dd33144760be8c553bb8", class: "tab-panels" }, this.parsedTabs.map((n, i) => t("div", { role: "tabpanel", id: `panel-${i}`, "aria-labelledby": `tab-${i}`, hidden: i !== this.activeIndex, tabIndex: i === this.activeIndex ? 0 : -1 }, t("slot", { name: `panel-${i}` })))));
|
|
17615
17852
|
}
|
|
17616
17853
|
get el() {
|
|
17617
|
-
return
|
|
17854
|
+
return w(this);
|
|
17618
17855
|
}
|
|
17619
17856
|
static get watchers() {
|
|
17620
17857
|
return {
|
|
@@ -17876,7 +18113,7 @@ const qr = ` .f-ui-01 {
|
|
|
17876
18113
|
|
|
17877
18114
|
.inline-flex {
|
|
17878
18115
|
display: inline-flex;
|
|
17879
|
-
}`, Ur = qr,
|
|
18116
|
+
}`, Ur = qr, Yr = Z(
|
|
17880
18117
|
["relative inline-flex justify-center items-center py-8 rounded-xs"],
|
|
17881
18118
|
// Base classes
|
|
17882
18119
|
{
|
|
@@ -17903,25 +18140,27 @@ const qr = ` .f-ui-01 {
|
|
|
17903
18140
|
size: "small"
|
|
17904
18141
|
}
|
|
17905
18142
|
}
|
|
17906
|
-
),
|
|
18143
|
+
), Zr = class {
|
|
17907
18144
|
constructor(e) {
|
|
17908
18145
|
u(this, e), this.label = void 0, this.intent = "brand", this.size = "large";
|
|
17909
18146
|
}
|
|
17910
18147
|
render() {
|
|
17911
|
-
const e =
|
|
17912
|
-
return t("span", { key: "
|
|
18148
|
+
const e = Yr({ intent: this.intent, size: this.size });
|
|
18149
|
+
return t("span", { key: "f9399ed92717576781bff9fb5f117743d50720af", class: e }, t("span", { key: "9500083dfbddd73539de9e1c5b738bf7a3415624", style: { position: "relative", zIndex: "1" } }, this.label));
|
|
17913
18150
|
}
|
|
17914
18151
|
};
|
|
17915
|
-
|
|
17916
|
-
const Kr =
|
|
18152
|
+
Zr.style = Ur;
|
|
18153
|
+
const Kr = `:host{display:block}.relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:0.25rem}.w-auto{width:auto}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:0.25rem}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.ml-8{margin-left:0.5rem}.p-12{padding:0.75rem}.rounded-sm{border-radius:8px}.rounded-xs{border-radius:4px}.rounded-lg{border-radius:16px}.shadow-md{--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),
|
|
17917
18154
|
0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
17918
|
-
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-dark{background-color:var(--grey-light)}.bg-success{background-color:var(--brand-green)}.bg-error{background-color:var(--red-200)}.bg-warning{background-color:var(--yellow-200)}.text-light{color:var(--grey-dark)}.text-current{color:currentColor}.text-default{color:var(--brand-black)}.text-accent{color:var(--brand-green)}.bg-inverse{background-color:var(--white)}.bg-strongest{background-color:var(--brand-black)}.border-l-\\[3px\\]{border-left-width:3px}.border-accent{border-color:var(--brand-green)}.py-16{padding-top:1rem;padding-bottom:1rem}.px-20{padding-left:1.25rem;padding-right:1.25rem}.rounded-r-4{border-top-right-radius:4px;border-bottom-right-radius:4px}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.opacity-50{opacity:0.5}.hover\\:opacity-100:hover{opacity:1}`, Gr = Kr, Xr =
|
|
18155
|
+
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-dark{background-color:var(--grey-light)}.bg-success{background-color:var(--brand-green)}.bg-error{background-color:var(--red-200)}.bg-warning{background-color:var(--yellow-200)}.text-light{color:var(--grey-dark)}.text-current{color:currentColor}.text-default{color:var(--brand-black)}.text-accent{color:var(--brand-green)}.bg-inverse{background-color:var(--white)}.bg-strongest{background-color:var(--brand-black)}.border-l-\\[3px\\]{border-left-width:3px}.border-accent{border-color:var(--brand-green)}.py-16{padding-top:1rem;padding-bottom:1rem}.px-20{padding-left:1.25rem;padding-right:1.25rem}.rounded-r-4{border-top-right-radius:4px;border-bottom-right-radius:4px}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.opacity-50{opacity:0.5}.hover\\:opacity-100:hover{opacity:1}.banner{--rail:#7a7b7a;--surface:#ffffff;--line:#e2e2e2;--icon-bg:#f0f0f0;--icon-fg:#5a5f5c;--title:#07140d;--msg:#8a8c8a;display:flex;flex-wrap:wrap;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--rail);border-radius:12px;padding:15px 18px}.banner--brand,.banner--info{--rail:var(--brand-green, #00ff9d);--icon-bg:rgba(0, 255, 157, 0.12);--icon-fg:var(--green-d, #00c87b);--title:var(--brand-black, #07140d);--msg:#8a8c8a}.banner--success{--rail:var(--green-d, #00c87b);--surface:#f0fbf6;--line:#cdeede;--icon-bg:rgba(0, 200, 123, 0.12);--icon-fg:var(--green-d, #00c87b);--title:#0a6b46;--msg:#5a7a6c}.banner--warning{--rail:#b26b00;--surface:#fff6e6;--line:#f0dcb4;--icon-bg:rgba(178, 107, 0, 0.12);--icon-fg:#b26b00;--title:#b26b00;--msg:#8a6a2a}.banner--error{--rail:#c0392b;--surface:#fdf0ee;--line:#f2cfc9;--icon-bg:rgba(192, 57, 43, 0.1);--icon-fg:#c0392b;--title:#c0392b;--msg:#8d5049}.banner-ic{flex:0 0 auto;width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:var(--icon-bg);color:var(--icon-fg)}.banner-copy{flex:1 1 auto;min-width:0}.banner-title{font-family:var(--sans, 'IBM Plex Sans', system-ui, sans-serif);font-size:14.5px;font-weight:600;color:var(--title)}.banner-msg{font-family:var(--mono, 'IBM Plex Mono', ui-monospace, monospace);font-size:10.5px;letter-spacing:0.04em;color:var(--msg);line-height:1.45;margin-top:3px}.banner-title+.banner-msg{margin-top:3px}.banner-actions{flex:0 0 auto;display:flex;align-items:center;gap:16px}.banner-x{flex:0 0 auto;border:none;background:transparent;color:var(--msg);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:4px;border-radius:6px;opacity:0.6;transition:opacity 0.14s, background 0.14s}.banner-x:hover{opacity:1;background:rgba(0, 0, 0, 0.05)}@media (max-width: 1024px){.banner-actions{gap:12px}}`, Gr = Kr, Xr = Z(["relative bottom-4 w-auto rounded-xs p-12"], {
|
|
17919
18156
|
variants: {
|
|
17920
18157
|
intent: {
|
|
17921
18158
|
default: "bg-dark text-dark",
|
|
17922
18159
|
success: "bg-success text-dark",
|
|
17923
18160
|
error: "bg-error text-dark",
|
|
17924
18161
|
warning: "bg-warning text-dark",
|
|
18162
|
+
info: "bg-dark text-dark",
|
|
18163
|
+
neutral: "bg-dark text-dark",
|
|
17925
18164
|
brand: "bg-strongest text-accent",
|
|
17926
18165
|
brandInverse: "bg-inverse text-default"
|
|
17927
18166
|
}
|
|
@@ -17929,15 +18168,26 @@ const Kr = `.relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:
|
|
|
17929
18168
|
defaultVariants: {
|
|
17930
18169
|
intent: "default"
|
|
17931
18170
|
}
|
|
17932
|
-
}), Jr =
|
|
18171
|
+
}), Jr = {
|
|
18172
|
+
default: "information",
|
|
18173
|
+
neutral: "information",
|
|
18174
|
+
info: "information",
|
|
18175
|
+
brand: "information",
|
|
18176
|
+
success: "checkmark",
|
|
18177
|
+
warning: "warning",
|
|
18178
|
+
error: "warning"
|
|
18179
|
+
}, Qr = class {
|
|
17933
18180
|
constructor(e) {
|
|
17934
|
-
u(this, e), this.toast =
|
|
18181
|
+
u(this, e), this.toast = k(this, "toast", 7), this.dismissToast = () => {
|
|
17935
18182
|
this.toast.emit({ visible: !1, label: "dismissed" }), this.visible = !1;
|
|
17936
|
-
}, this.message = void 0, this.intent = "default", this.duration = void 0, this.visible = !0;
|
|
18183
|
+
}, this.message = void 0, this.intent = "default", this.variant = "toast", this.heading = void 0, this.icon = void 0, this.dismissible = !1, this.duration = void 0, this.visible = !0, this.hasActions = !1;
|
|
18184
|
+
}
|
|
18185
|
+
componentWillLoad() {
|
|
18186
|
+
this.hasActions = !!this.el.querySelector('[slot="actions"]');
|
|
17937
18187
|
}
|
|
17938
18188
|
componentDidLoad() {
|
|
17939
18189
|
const e = this.el.shadowRoot.querySelector("eds-button");
|
|
17940
|
-
this.emitContext(e);
|
|
18190
|
+
e && this.emitContext(e);
|
|
17941
18191
|
}
|
|
17942
18192
|
/**
|
|
17943
18193
|
* Emits a custom event called `parentContext` for a given button element.
|
|
@@ -17960,18 +18210,24 @@ const Kr = `.relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:
|
|
|
17960
18210
|
disconnectedCallback() {
|
|
17961
18211
|
clearTimeout(this.dismissTimeout);
|
|
17962
18212
|
}
|
|
18213
|
+
renderBanner() {
|
|
18214
|
+
const e = this.icon || Jr[this.intent] || "information", n = this.dismissible || this.duration && this.duration > 0;
|
|
18215
|
+
return t("div", { class: `banner banner--${this.intent}`, role: "status", "aria-live": "polite" }, t("span", { class: "banner-ic", "aria-hidden": "true" }, t("eds-icon-wrapper", { name: e, size: 20 })), t("div", { class: "banner-copy" }, this.heading && t("div", { class: "banner-title" }, this.heading), t("div", { class: "banner-msg" }, this.message)), this.hasActions && t("div", { class: "banner-actions" }, t("slot", { name: "actions" })), n && t("button", { type: "button", class: "banner-x", "aria-label": "Dismiss", onClick: () => this.dismissToast() }, t("eds-icon-wrapper", { name: "close", size: 16 })));
|
|
18216
|
+
}
|
|
17963
18217
|
render() {
|
|
17964
18218
|
if (!this.visible)
|
|
17965
18219
|
return null;
|
|
18220
|
+
if (this.variant === "banner")
|
|
18221
|
+
return this.renderBanner();
|
|
17966
18222
|
const e = Xr({ intent: this.intent });
|
|
17967
18223
|
return t("div", { class: e, role: "alert", "aria-live": "assertive" }, t("div", { class: "flex items-center justify-between gap-4" }, t("span", { class: "f-ui-02" }, this.message), t("eds-button", { intent: "ghost", size: "large", icon: "close", "aria-label": "Close Toast", onClick: () => this.dismissToast(), "extra-class": "ml-8" })));
|
|
17968
18224
|
}
|
|
17969
18225
|
get el() {
|
|
17970
|
-
return
|
|
18226
|
+
return w(this);
|
|
17971
18227
|
}
|
|
17972
18228
|
};
|
|
17973
|
-
|
|
17974
|
-
const
|
|
18229
|
+
Qr.style = Gr;
|
|
18230
|
+
const ea = ".relative{position:relative}.absolute{position:absolute}.inline-block{display:inline-block}.rounded-xs{border-radius:4px}.bg-strongest{background-color:var(--black)}.text-inverse{color:var(--white)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.pointer-events-none{pointer-events:none}.left-1\\/2{left:50%}.z-10{z-index:10}.transform{transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.whitespace-nowrap{white-space:nowrap}.p-6{padding:0.375rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.top-full{top:100%}.bottom-full{bottom:100%}.right-full{right:100%}.left-full{left:100%}.mr-2{margin-right:0.125rem}.ml-2{margin-left:0.125rem}.mt-2{margin-top:0.125rem}.mb-2{margin-bottom:0.125rem}.opacity-0{opacity:0}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-150{transition-duration:150ms}.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.group:hover .group-hover\\:opacity-100{opacity:1}.max-w-\\[20rem\\]{max-width:20rem}.whitespace-normal{white-space:normal}.break-words{overflow-wrap:break-word}.w-full{width:100%}", na = ea, ta = class {
|
|
17975
18231
|
constructor(e) {
|
|
17976
18232
|
u(this, e), this.content = void 0, this.position = "top";
|
|
17977
18233
|
}
|
|
@@ -17986,22 +18242,22 @@ const Qr = ".relative{position:relative}.absolute{position:absolute}.inline-bloc
|
|
|
17986
18242
|
}
|
|
17987
18243
|
render() {
|
|
17988
18244
|
const e = this.position === "bottom" ? "top-full mt-2" : "bottom-full mb-2";
|
|
17989
|
-
return t("div", { key: "
|
|
18245
|
+
return t("div", { key: "70fac9a2e9d60c2dd24961d162c5230dcf5d6232", class: "relative w-full inline-block group" }, t("slot", { key: "02e4f975a0b23905883663f773a221c747906a11" }), t("div", { key: "cff74243e3b7bd0111bb0e6023367ac88b50c379", class: `absolute ${e}
|
|
17990
18246
|
rounded-xs bg-strongest text-inverse
|
|
17991
18247
|
f-ui-03-light pointer-events-none
|
|
17992
18248
|
z-10 px-4 opacity-0 transition-opacity duration-150 ease-in-out
|
|
17993
18249
|
group-hover:opacity-100 whitespace-normal break-words`, role: "tooltip" }, this.content));
|
|
17994
18250
|
}
|
|
17995
18251
|
get el() {
|
|
17996
|
-
return
|
|
18252
|
+
return w(this);
|
|
17997
18253
|
}
|
|
17998
18254
|
};
|
|
17999
|
-
|
|
18000
|
-
const
|
|
18255
|
+
ta.style = na;
|
|
18256
|
+
const ia = "hr,p{margin:0}.block{display:block}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.text-default{color:var(--black)}.min-w-\\[280px\\]{min-width:280px}.p-8{padding:0.5rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.gap-y-8{row-gap:0.5rem}.pb-16{padding-bottom:1rem}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1 )}.max-w-full{max-width:100%}.w-full{width:100%}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.text-light{color:var(--grey-700)}.mt-4{margin-top:0.25rem}.mt-16{margin-top:1rem}", ra = ia, aa = class {
|
|
18001
18257
|
constructor(e) {
|
|
18002
18258
|
u(this, e), this.handleDropdown = (n) => {
|
|
18003
18259
|
this.expanded = n.detail.expanded;
|
|
18004
|
-
}, this.user = void 0, this.intent = "ghost", this.dropdownLabel = "Account", this.expanded = !1
|
|
18260
|
+
}, this.user = void 0, this.intent = "ghost", this.dropdownLabel = "Account", this.expanded = !1;
|
|
18005
18261
|
}
|
|
18006
18262
|
/**
|
|
18007
18263
|
* Helper getter to ensure we work with a User object.
|
|
@@ -18015,8 +18271,6 @@ const ta = "hr,p{margin:0}.block{display:block}.flex{display:flex}.flex-col{flex
|
|
|
18015
18271
|
}
|
|
18016
18272
|
return this.user;
|
|
18017
18273
|
}
|
|
18018
|
-
async componentWillLoad() {
|
|
18019
|
-
}
|
|
18020
18274
|
get initials() {
|
|
18021
18275
|
var e, n, i, r;
|
|
18022
18276
|
const a = this.parsedUser;
|
|
@@ -18028,20 +18282,20 @@ const ta = "hr,p{margin:0}.block{display:block}.flex{display:flex}.flex-col{flex
|
|
|
18028
18282
|
}
|
|
18029
18283
|
render() {
|
|
18030
18284
|
const e = this.parsedUser;
|
|
18031
|
-
return t("div", { key: "
|
|
18285
|
+
return t("div", { key: "680e43b28d6f449f1bc527a205bc8cb1593c2e3b", class: "block" }, t("div", { key: "472e128751bbd16584d2c17a0f05de9ce39b3618", class: "flex items-center" }, t("eds-dropdown", { key: "b8e77167f98bcc07280a440ab8c086ab72650866", ref: (n) => this.dropdownEl = n, intent: this.intent, "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "user", label: this.dropdownLabel, class: "text-default", onDropdown: this.handleDropdown }, t("div", { key: "d55809a0ab5387f867d27669198c7e9bfc206383", class: "min-w-[280px] p-8" }, t("div", { key: "e703e71577d4d1e78664fa807de67551483069c1", class: "flex gap-x-16", "data-dropdown-no-close": !0 }, t("eds-avatar", { key: "7672f9a4f84bc13ab079a7e6185eff87aa15a1f7", "first-name": e.given_name, "last-name": e.family_name, initials: this.initials, color: "black" }), t("div", { key: "ac9e6e17465d52a247b289224ce3ea473989c1ee", class: "max-w-full" }, e.name && t("p", { key: "caab9568a17e0bbc68c418f070b93ae6f21fad21", class: "f-ui-01 text-default w-full text-ellipsis" }, e.name), e.preferred_username && t("p", { key: "0ba0fbec86e6600ee4eb0e0827a78e7292808ab1", class: "f-ui-03-light text-light mt-4" }, e.preferred_username), e.email && t("p", { key: "a3f8870af9bdd001cf5e894b71f8403bff639608", class: "f-ui-03-light text-light mt-4" }, e.email))), t("div", { key: "d230d82178d53043406e26f264c3fe26d7a87211", class: "text-default flex w-full flex-col gap-y-8" }, t("slot", { key: "5d28ca2126fbd735560e6034ea1c24e225bf2ee5" }))))));
|
|
18032
18286
|
}
|
|
18033
18287
|
get hostEl() {
|
|
18034
|
-
return
|
|
18288
|
+
return w(this);
|
|
18035
18289
|
}
|
|
18036
18290
|
};
|
|
18037
|
-
|
|
18291
|
+
aa.style = ra;
|
|
18038
18292
|
export {
|
|
18039
18293
|
Le as eds_accordion,
|
|
18040
|
-
|
|
18041
|
-
|
|
18042
|
-
|
|
18294
|
+
$e as eds_alert,
|
|
18295
|
+
Te as eds_avatar,
|
|
18296
|
+
Ne as eds_block_break,
|
|
18043
18297
|
je as eds_breadcrumb,
|
|
18044
|
-
|
|
18298
|
+
Ye as eds_button,
|
|
18045
18299
|
Ge as eds_card_app,
|
|
18046
18300
|
Qe as eds_card_cta,
|
|
18047
18301
|
tn as eds_card_desc,
|
|
@@ -18053,20 +18307,20 @@ export {
|
|
|
18053
18307
|
wn as eds_code_block,
|
|
18054
18308
|
Sn as eds_dropdown,
|
|
18055
18309
|
Fn as eds_footer,
|
|
18056
|
-
|
|
18057
|
-
|
|
18310
|
+
Dn as eds_form,
|
|
18311
|
+
On as eds_fullscreen_menu,
|
|
18058
18312
|
Rn as eds_global_search,
|
|
18059
18313
|
qn as eds_header,
|
|
18060
18314
|
zi as eds_icon_wrapper,
|
|
18061
18315
|
Ei as eds_img,
|
|
18062
|
-
|
|
18316
|
+
ha as eds_input,
|
|
18063
18317
|
Ii as eds_input_dropzone,
|
|
18064
|
-
|
|
18065
|
-
|
|
18318
|
+
Mi as eds_input_field,
|
|
18319
|
+
Bi as eds_input_file,
|
|
18066
18320
|
Vi as eds_input_footer,
|
|
18067
18321
|
Pi as eds_input_label,
|
|
18068
|
-
|
|
18069
|
-
|
|
18322
|
+
ga as eds_input_range,
|
|
18323
|
+
fa as eds_input_select,
|
|
18070
18324
|
qi as eds_kg_learning_resources,
|
|
18071
18325
|
Ki as eds_kg_web_services_select,
|
|
18072
18326
|
Qi as eds_link,
|
|
@@ -18075,18 +18329,18 @@ export {
|
|
|
18075
18329
|
sr as eds_nps,
|
|
18076
18330
|
hr as eds_pagination,
|
|
18077
18331
|
br as eds_progress_bar,
|
|
18078
|
-
|
|
18332
|
+
ur as eds_rating,
|
|
18079
18333
|
yr as eds_search_select,
|
|
18080
18334
|
zr as eds_sidebar,
|
|
18081
18335
|
Er as eds_social_networks,
|
|
18082
18336
|
Ir as eds_spinner,
|
|
18083
|
-
|
|
18084
|
-
|
|
18337
|
+
Mr as eds_steps,
|
|
18338
|
+
Br as eds_steps_v2,
|
|
18085
18339
|
Vr as eds_switch,
|
|
18086
18340
|
Pr as eds_table,
|
|
18087
18341
|
Wr as eds_tabs,
|
|
18088
|
-
|
|
18089
|
-
|
|
18090
|
-
|
|
18091
|
-
|
|
18342
|
+
Zr as eds_tag,
|
|
18343
|
+
Qr as eds_toast,
|
|
18344
|
+
ta as eds_tooltip,
|
|
18345
|
+
aa as eds_user
|
|
18092
18346
|
};
|