@abgov/web-components 1.0.0-alpha.186 → 1.0.0-alpha.187
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/package.json +1 -1
- package/web-components.es.js +2 -2
- package/web-components.umd.js +2 -2
package/package.json
CHANGED
package/web-components.es.js
CHANGED
|
@@ -2403,7 +2403,7 @@ class Button extends SvelteElement {
|
|
|
2403
2403
|
super();
|
|
2404
2404
|
|
|
2405
2405
|
this.shadowRoot.innerHTML = `<style>:host{--button-height:2.625rem;--button-height-compact:2rem;--button-height-tall:3.25rem;box-sizing:border-box;font-family:var(--goa-font-family-sans)}@media(max-width: 480px){:host{width:100%}button{width:100%}}button{display:inline-flex;box-sizing:border-box;border-radius:0.25rem;border:2px solid var(--goa-color-interactive-default);box-sizing:border-box;cursor:pointer;font-family:var(--goa-font-family-sans);font-size:var(--goa-font-size-5);font-weight:400;height:var(--button-height);letter-spacing:var(--goa-letter-spacing-button);line-height:100%;padding:0 0.75rem;gap:0.5rem;align-items:center;justify-content:center;transition:transform 0.1s ease-in-out, background-color 0.2s ease-in-out,
|
|
2406
|
-
border-color 0.2s ease-in-out}.text{padding-bottom:var(--font-valign-fix, 0)}button:disabled{pointer-events:none;opacity:0.5}button.compact{height:var(--button-height-compact);font-size:var(--goa-font-size-4)}button.start{height:var(--button-height-tall);font-weight:var(--goa-font-weight-bold)}button.start,button.submit,button.primary{border:2px solid var(--goa-color-interactive-default);background-color:var(--goa-color-interactive-default);color:var(--goa-color-text-light)}button.start:hover,button.submit:hover,button.primary:hover{border-color:var(--goa-color-interactive-hover);background-color:var(--goa-color-interactive-hover)}button.start:focus,button.start:active,button.submit:focus,button.submit:active,button.primary:focus,button.primary:active{box-shadow:0 0 0 3px var(--goa-color-interactive-focus);border-color:var(--goa-color-interactive-hover);background-color:var(--goa-color-interactive-hover);outline:none}button.secondary{border:2px solid var(--goa-color-interactive-default);background-color:var(--goa-color-greyscale-white);color:var(--goa-color-interactive-default)}button.secondary:hover{border-color:var(--goa-color-interactive-hover);color:var(--goa-color-interactive-hover);background-color:var(--goa-color-greyscale-100)}button.secondary:focus,button.secondary:active{border-color:var(--goa-color-interactive-hover);box-shadow:0 0 0 3px var(--goa-color-interactive-focus);background-color:var(--goa-color-greyscale-100);outline:none}button.tertiary{border:1px solid transparent;background-color:transparent;color:var(--goa-color-interactive-default);text-decoration:underline}button.tertiary:hover{border-color:var(--goa-color-greyscale-100);color:var(--goa-color-interactive-hover);background-color:var(--goa-color-greyscale-100)}button.tertiary:focus,button.tertiary:active{border-color:var(--goa-color-greyscale-100);background-color:var(--goa-color-greyscale-100);color:var(--goa-color-interactive-hover);box-shadow:0 0 0 3px var(--goa-color-interactive-focus);outline:none}.submit.destructive,.primary.destructive{color:var(--goa-color-greyscale-white);background-color:var(--goa-color-emergency-default);border-color:var(--goa-color-emergency-default)}.submit.destructive:hover,.primary.destructive:hover{background-color:var(--goa-color-emergency-dark);border-color:var(--goa-color-emergency-dark)}.submit.destructive:focus,.primary.destructive:focus,.primary.destructive:active{background-color:var(--goa-color-emergency-dark);border-color:var(--goa-color-emergency-dark)}.secondary.destructive{color:var(--goa-color-emergency-default);border-color:var(--goa-color-emergency-default);background-color:var(--goa-color-greyscale-white)}.secondary.destructive:hover{border-color:var(--goa-color-emergency-dark);color:var(--goa-color-emergency-dark);background-color:var(--goa-color-greyscale-white)}.secondary.destructive:focus,.secondary.destructive:active{color:var(--goa-color-emergency-dark);border-color:var(--goa-color-emergency-dark);background-color:var(--goa-color-greyscale-white)}.tertiary.destructive{color:var(--goa-color-emergency-default);border-color:transparent}.tertiary.destructive:hover{color:var(--goa-color-emergency-dark)}.tertiary.destructive:focus,.tertiary.destructive:active{color:var(--goa-color-emergency-dark)}</style>`;
|
|
2406
|
+
border-color 0.2s ease-in-out}.text{padding-bottom:var(--font-valign-fix, 0)}button:disabled{pointer-events:none;opacity:0.5}button.compact{height:var(--button-height-compact);font-size:var(--goa-font-size-4);padding-left:var(--goa-space-xs);padding-right:var(--goa-space-xs)}button.start{height:var(--button-height-tall);font-weight:var(--goa-font-weight-bold)}button.start,button.submit,button.primary{border:2px solid var(--goa-color-interactive-default);background-color:var(--goa-color-interactive-default);color:var(--goa-color-text-light)}button.start:hover,button.submit:hover,button.primary:hover{border-color:var(--goa-color-interactive-hover);background-color:var(--goa-color-interactive-hover)}button.start:focus,button.start:active,button.submit:focus,button.submit:active,button.primary:focus,button.primary:active{box-shadow:0 0 0 3px var(--goa-color-interactive-focus);border-color:var(--goa-color-interactive-hover);background-color:var(--goa-color-interactive-hover);outline:none}button.secondary{border:2px solid var(--goa-color-interactive-default);background-color:var(--goa-color-greyscale-white);color:var(--goa-color-interactive-default)}button.secondary:hover{border-color:var(--goa-color-interactive-hover);color:var(--goa-color-interactive-hover);background-color:var(--goa-color-greyscale-100)}button.secondary:focus,button.secondary:active{border-color:var(--goa-color-interactive-hover);box-shadow:0 0 0 3px var(--goa-color-interactive-focus);background-color:var(--goa-color-greyscale-100);outline:none}button.tertiary{border:1px solid transparent;background-color:transparent;color:var(--goa-color-interactive-default);text-decoration:underline}button.tertiary:hover{border-color:var(--goa-color-greyscale-100);color:var(--goa-color-interactive-hover);background-color:var(--goa-color-greyscale-100)}button.tertiary:focus,button.tertiary:active{border-color:var(--goa-color-greyscale-100);background-color:var(--goa-color-greyscale-100);color:var(--goa-color-interactive-hover);box-shadow:0 0 0 3px var(--goa-color-interactive-focus);outline:none}.submit.destructive,.primary.destructive{color:var(--goa-color-greyscale-white);background-color:var(--goa-color-emergency-default);border-color:var(--goa-color-emergency-default)}.submit.destructive:hover,.primary.destructive:hover{background-color:var(--goa-color-emergency-dark);border-color:var(--goa-color-emergency-dark)}.submit.destructive:focus,.primary.destructive:focus,.primary.destructive:active{background-color:var(--goa-color-emergency-dark);border-color:var(--goa-color-emergency-dark)}.secondary.destructive{color:var(--goa-color-emergency-default);border-color:var(--goa-color-emergency-default);background-color:var(--goa-color-greyscale-white)}.secondary.destructive:hover{border-color:var(--goa-color-emergency-dark);color:var(--goa-color-emergency-dark);background-color:var(--goa-color-greyscale-white)}.secondary.destructive:focus,.secondary.destructive:active{color:var(--goa-color-emergency-dark);border-color:var(--goa-color-emergency-dark);background-color:var(--goa-color-greyscale-white)}.tertiary.destructive{color:var(--goa-color-emergency-default);border-color:transparent}.tertiary.destructive:hover{color:var(--goa-color-emergency-dark)}.tertiary.destructive:focus,.tertiary.destructive:active{color:var(--goa-color-emergency-dark)}</style>`;
|
|
2407
2407
|
|
|
2408
2408
|
init(
|
|
2409
2409
|
this,
|
|
@@ -14509,7 +14509,7 @@ function instance$9($$self, $$props, $$invalidate) {
|
|
|
14509
14509
|
class Table extends SvelteElement {
|
|
14510
14510
|
constructor(options) {
|
|
14511
14511
|
super();
|
|
14512
|
-
this.shadowRoot.innerHTML = `<style>:host{overflow-x:auto}table{border-collapse:collapse}table.sticky{position:relative}table.sticky thead{position:sticky;top:0}td{font:var(--goa-typography-body-m);padding:0.75rem 1rem;border-bottom:1px solid var(--goa-color-greyscale-200)}table .goa-table-number-column{font:var(--goa-typography-number-m);text-align:right}table.relaxed td{padding:1rem}th{background-color:var(--goa-color-greyscale-white);color:var(--goa-color-text-secondary);padding:1rem;text-align:left;border-bottom:2px solid var(--goa-color-greyscale-
|
|
14512
|
+
this.shadowRoot.innerHTML = `<style>:host{overflow-x:auto}table{border-collapse:collapse}table.sticky{position:relative}table.sticky thead{position:sticky;top:0}td{font:var(--goa-typography-body-m);padding:0.75rem 1rem;border-bottom:1px solid var(--goa-color-greyscale-200)}table .goa-table-number-column{font:var(--goa-typography-number-m);text-align:right}table.relaxed td{padding:1rem}th{background-color:var(--goa-color-greyscale-white);color:var(--goa-color-text-secondary);padding:1rem;text-align:left;border-bottom:2px solid var(--goa-color-greyscale-600);vertical-align:bottom}th:has(goa-table-sort-header){padding:0}tfoot td{background-color:var(--goa-color-greyscale-100)}tfoot tr:first-child td{border-top:2px solid var(--goa-color-greyscale-200)}tfoot tr:last-child td{border-bottom:none}</style>`;
|
|
14513
14513
|
|
|
14514
14514
|
init(
|
|
14515
14515
|
this,
|
package/web-components.umd.js
CHANGED
|
@@ -16,7 +16,7 @@ var __vite_style__=document.createElement("style");__vite_style__.innerHTML=`@im
|
|
|
16
16
|
--alignment: ${n[2]};
|
|
17
17
|
--direction: ${n[1]};
|
|
18
18
|
`)&&d(e,"style",r)},i:C,o:C,d(n){n&&H(e)}}}function xr(i,e,t){let{gap:r="m"}=e,{direction:n="row"}=e,{alignment:o="start"}=e,{mt:a=null}=e,{mr:l=null}=e,{mb:s=null}=e,{ml:c=null}=e;return i.$$set=u=>{"gap"in u&&t(0,r=u.gap),"direction"in u&&t(1,n=u.direction),"alignment"in u&&t(2,o=u.alignment),"mt"in u&&t(3,a=u.mt),"mr"in u&&t(4,l=u.mr),"mb"in u&&t(5,s=u.mb),"ml"in u&&t(6,c=u.ml)},[r,n,o,a,l,s,c]}class Mr extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>.block{display:flex;flex-direction:var(--direction);align-items:var(--alignment);gap:var(--gap)}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},xr,Cr,O,{gap:0,direction:1,alignment:2,mt:3,mr:4,mb:5,ml:6},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["gap","direction","alignment","mt","mr","mb","ml"]}get gap(){return this.$$.ctx[0]}set gap(e){this.$$set({gap:e}),g()}get direction(){return this.$$.ctx[1]}set direction(e){this.$$set({direction:e}),g()}get alignment(){return this.$$.ctx[2]}set alignment(e){this.$$set({alignment:e}),g()}get mt(){return this.$$.ctx[3]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[4]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[5]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[6]}set ml(e){this.$$set({ml:e}),g()}}customElements.define("goa-block",Mr);function zr(i){let e,t,r,n,o=i[3]&&Nt(i),a=i[4]&&Rt(i);return{c(){o&&o.c(),e=N(),t=v("span"),t.innerHTML="<slot></slot>",r=N(),a&&a.c(),n=pe(),d(t,"class","text")},m(l,s){o&&o.m(l,s),k(l,e,s),k(l,t,s),k(l,r,s),a&&a.m(l,s),k(l,n,s)},p(l,s){l[3]?o?o.p(l,s):(o=Nt(l),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null),l[4]?a?a.p(l,s):(a=Rt(l),a.c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null)},d(l){o&&o.d(l),l&&H(e),l&&H(t),l&&H(r),a&&a.d(l),l&&H(n)}}}function Er(i){let e,t,r;return{c(){e=v("span"),e.innerHTML="<slot></slot>",t=N(),r=v("goa-icon"),d(e,"class","text"),M(r,"id","trailing-icon"),M(r,"type","arrow-forward"),M(r,"inverted","true")},m(n,o){k(n,e,o),k(n,t,o),k(n,r,o)},p:C,d(n){n&&H(e),n&&H(t),n&&H(r)}}}function Nt(i){let e;return{c(){e=v("goa-icon"),M(e,"id","leading-icon"),M(e,"type",i[3]),M(e,"inverted",i[11])},m(t,r){k(t,e,r)},p(t,r){r&8&&M(e,"type",t[3]),r&2048&&M(e,"inverted",t[11])},d(t){t&&H(e)}}}function Rt(i){let e;return{c(){e=v("goa-icon"),M(e,"id","trailing-icon"),M(e,"type",i[4]),M(e,"inverted",i[11])},m(t,r){k(t,e,r)},p(t,r){r&16&&M(e,"type",t[4]),r&2048&&M(e,"inverted",t[11])},d(t){t&&H(e)}}}function Lr(i){let e,t,r,n,o;function a(c,u){return c[0]==="start"?Er:zr}let l=a(i),s=l(i);return{c(){e=v("button"),s.c(),this.c=C,d(e,"class",t=""+(i[0]+" "+i[1]+" "+i[2])),d(e,"style",r=Y(i[6],i[7],i[8],i[9])),e.disabled=i[10],d(e,"data-testid",i[5]),B(e,"leading",i[3]),B(e,"trailing",i[4]||i[0]==="start")},m(c,u){k(c,e,u),s.m(e,null),n||(o=[q(e,"click",i[12]),q(e,"click",i[12])],n=!0)},p(c,[u]){l===(l=a(c))&&s?s.p(c,u):(s.d(1),s=l(c),s&&(s.c(),s.m(e,null))),u&7&&t!==(t=""+(c[0]+" "+c[1]+" "+c[2]))&&d(e,"class",t),u&960&&r!==(r=Y(c[6],c[7],c[8],c[9]))&&d(e,"style",r),u&1024&&(e.disabled=c[10]),u&32&&d(e,"data-testid",c[5]),u&15&&B(e,"leading",c[3]),u&23&&B(e,"trailing",c[4]||c[0]==="start")},i:C,o:C,d(c){c&&H(e),s.d(),n=!1,ae(o)}}}function Hr(i,e,t){let r,n;const[o,a]=J("Button type",["primary","submit","secondary","tertiary","start"],!0),[l,s]=J("Button size",["normal","compact"],!0),[c,u]=J("Button variant",["normal","destructive"],!0);let{type:f="primary"}=e,{size:h="normal"}=e,{variant:y="normal"}=e,{disabled:b="false"}=e,{leadingicon:w=null}=e,{trailingicon:_=null}=e,{testid:p=""}=e,{mt:z=null}=e,{mr:D=null}=e,{mb:E=null}=e,{ml:x=null}=e;function T(L){r||this.dispatchEvent(new CustomEvent("_click",{composed:!0,bubbles:!0}))}return Q(()=>{a(f),s(h),u(y)}),i.$$set=L=>{"type"in L&&t(0,f=L.type),"size"in L&&t(1,h=L.size),"variant"in L&&t(2,y=L.variant),"disabled"in L&&t(13,b=L.disabled),"leadingicon"in L&&t(3,w=L.leadingicon),"trailingicon"in L&&t(4,_=L.trailingicon),"testid"in L&&t(5,p=L.testid),"mt"in L&&t(6,z=L.mt),"mr"in L&&t(7,D=L.mr),"mb"in L&&t(8,E=L.mb),"ml"in L&&t(9,x=L.ml)},i.$$.update=()=>{i.$$.dirty&8192&&t(10,r=K(b)),i.$$.dirty&1&&t(11,n=f==="primary"||f==="start")},[f,h,y,w,_,p,z,D,E,x,r,n,T,b]}class Ar extends P{constructor(e){super();this.shadowRoot.innerHTML=`<style>:host{--button-height:2.625rem;--button-height-compact:2rem;--button-height-tall:3.25rem;box-sizing:border-box;font-family:var(--goa-font-family-sans)}@media(max-width: 480px){:host{width:100%}button{width:100%}}button{display:inline-flex;box-sizing:border-box;border-radius:0.25rem;border:2px solid var(--goa-color-interactive-default);box-sizing:border-box;cursor:pointer;font-family:var(--goa-font-family-sans);font-size:var(--goa-font-size-5);font-weight:400;height:var(--button-height);letter-spacing:var(--goa-letter-spacing-button);line-height:100%;padding:0 0.75rem;gap:0.5rem;align-items:center;justify-content:center;transition:transform 0.1s ease-in-out, background-color 0.2s ease-in-out,
|
|
19
|
-
border-color 0.2s ease-in-out}.text{padding-bottom:var(--font-valign-fix, 0)}button:disabled{pointer-events:none;opacity:0.5}button.compact{height:var(--button-height-compact);font-size:var(--goa-font-size-4)}button.start{height:var(--button-height-tall);font-weight:var(--goa-font-weight-bold)}button.start,button.submit,button.primary{border:2px solid var(--goa-color-interactive-default);background-color:var(--goa-color-interactive-default);color:var(--goa-color-text-light)}button.start:hover,button.submit:hover,button.primary:hover{border-color:var(--goa-color-interactive-hover);background-color:var(--goa-color-interactive-hover)}button.start:focus,button.start:active,button.submit:focus,button.submit:active,button.primary:focus,button.primary:active{box-shadow:0 0 0 3px var(--goa-color-interactive-focus);border-color:var(--goa-color-interactive-hover);background-color:var(--goa-color-interactive-hover);outline:none}button.secondary{border:2px solid var(--goa-color-interactive-default);background-color:var(--goa-color-greyscale-white);color:var(--goa-color-interactive-default)}button.secondary:hover{border-color:var(--goa-color-interactive-hover);color:var(--goa-color-interactive-hover);background-color:var(--goa-color-greyscale-100)}button.secondary:focus,button.secondary:active{border-color:var(--goa-color-interactive-hover);box-shadow:0 0 0 3px var(--goa-color-interactive-focus);background-color:var(--goa-color-greyscale-100);outline:none}button.tertiary{border:1px solid transparent;background-color:transparent;color:var(--goa-color-interactive-default);text-decoration:underline}button.tertiary:hover{border-color:var(--goa-color-greyscale-100);color:var(--goa-color-interactive-hover);background-color:var(--goa-color-greyscale-100)}button.tertiary:focus,button.tertiary:active{border-color:var(--goa-color-greyscale-100);background-color:var(--goa-color-greyscale-100);color:var(--goa-color-interactive-hover);box-shadow:0 0 0 3px var(--goa-color-interactive-focus);outline:none}.submit.destructive,.primary.destructive{color:var(--goa-color-greyscale-white);background-color:var(--goa-color-emergency-default);border-color:var(--goa-color-emergency-default)}.submit.destructive:hover,.primary.destructive:hover{background-color:var(--goa-color-emergency-dark);border-color:var(--goa-color-emergency-dark)}.submit.destructive:focus,.primary.destructive:focus,.primary.destructive:active{background-color:var(--goa-color-emergency-dark);border-color:var(--goa-color-emergency-dark)}.secondary.destructive{color:var(--goa-color-emergency-default);border-color:var(--goa-color-emergency-default);background-color:var(--goa-color-greyscale-white)}.secondary.destructive:hover{border-color:var(--goa-color-emergency-dark);color:var(--goa-color-emergency-dark);background-color:var(--goa-color-greyscale-white)}.secondary.destructive:focus,.secondary.destructive:active{color:var(--goa-color-emergency-dark);border-color:var(--goa-color-emergency-dark);background-color:var(--goa-color-greyscale-white)}.tertiary.destructive{color:var(--goa-color-emergency-default);border-color:transparent}.tertiary.destructive:hover{color:var(--goa-color-emergency-dark)}.tertiary.destructive:focus,.tertiary.destructive:active{color:var(--goa-color-emergency-dark)}</style>`,F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Hr,Lr,O,{type:0,size:1,variant:2,disabled:13,leadingicon:3,trailingicon:4,testid:5,mt:6,mr:7,mb:8,ml:9},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["type","size","variant","disabled","leadingicon","trailingicon","testid","mt","mr","mb","ml"]}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),g()}get size(){return this.$$.ctx[1]}set size(e){this.$$set({size:e}),g()}get variant(){return this.$$.ctx[2]}set variant(e){this.$$set({variant:e}),g()}get disabled(){return this.$$.ctx[13]}set disabled(e){this.$$set({disabled:e}),g()}get leadingicon(){return this.$$.ctx[3]}set leadingicon(e){this.$$set({leadingicon:e}),g()}get trailingicon(){return this.$$.ctx[4]}set trailingicon(e){this.$$set({trailingicon:e}),g()}get testid(){return this.$$.ctx[5]}set testid(e){this.$$set({testid:e}),g()}get mt(){return this.$$.ctx[6]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[7]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[8]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[9]}set ml(e){this.$$set({ml:e}),g()}}customElements.define("goa-button",Ar);function Tr(i){let e,t,r;return{c(){e=v("div"),t=v("slot"),this.c=C,d(e,"data-testid",i[1]),d(e,"style",r=""+(Y(i[2],i[3],i[4],i[5])+"; --alignment: "+i[6]+"; --gap-size: "+(i[0]==="relaxed"?"1rem":"0.75rem")))},m(n,o){k(n,e,o),m(e,t)},p(n,[o]){o&2&&d(e,"data-testid",n[1]),o&125&&r!==(r=""+(Y(n[2],n[3],n[4],n[5])+"; --alignment: "+n[6]+"; --gap-size: "+(n[0]==="relaxed"?"1rem":"0.75rem")))&&d(e,"style",r)},i:C,o:C,d(n){n&&H(e)}}}function Ir(i,e,t){let r,{alignment:n="start"}=e,{gap:o="relaxed"}=e,{testid:a=""}=e,{mt:l=null}=e,{mr:s=null}=e,{mb:c=null}=e,{ml:u=null}=e;const[f,h]=J("alignment",["start","end","center"]),[y,b]=J("gap",["relaxed","compact"]);return Q(()=>{h(n),b(o)}),i.$$set=w=>{"alignment"in w&&t(7,n=w.alignment),"gap"in w&&t(0,o=w.gap),"testid"in w&&t(1,a=w.testid),"mt"in w&&t(2,l=w.mt),"mr"in w&&t(3,s=w.mr),"mb"in w&&t(4,c=w.mb),"ml"in w&&t(5,u=w.ml)},i.$$.update=()=>{i.$$.dirty&128&&t(6,r={start:"flex-start",end:"flex-end",center:"center"}[n])},[o,a,l,s,c,u,r,n]}class Dr extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}div{display:flex;flex-direction:row;justify-content:var(--alignment);align-items:center;flex-wrap:wrap;gap:var(--gap-size);padding:3px 0}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Ir,Tr,O,{alignment:7,gap:0,testid:1,mt:2,mr:3,mb:4,ml:5},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["alignment","gap","testid","mt","mr","mb","ml"]}get alignment(){return this.$$.ctx[7]}set alignment(e){this.$$set({alignment:e}),g()}get gap(){return this.$$.ctx[0]}set gap(e){this.$$set({gap:e}),g()}get testid(){return this.$$.ctx[1]}set testid(e){this.$$set({testid:e}),g()}get mt(){return this.$$.ctx[2]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[3]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[4]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[5]}set ml(e){this.$$set({ml:e}),g()}}customElements.define("goa-button-group",Dr);function jt(i){let e,t;return{c(){e=v("h3"),t=Z(i[5]),B(e,"medium",i[9])},m(r,n){k(r,e,n),m(e,t)},p(r,n){n&32&&W(t,r[5]),n&512&&B(e,"medium",r[9])},d(r){r&&H(e)}}}function Nr(i){let e,t,r,n,o,a,l,s,c,u,f,h;ge(i[12]);let y=i[5]&&jt(i);return{c(){e=v("div"),t=v("span"),r=v("goa-icon"),a=N(),l=v("span"),y&&y.c(),s=N(),c=v("slot"),this.c=C,M(r,"type",i[10]),M(r,"size",i[8]),M(r,"inverted",n=i[4]==="important"?"false":"true"),d(t,"class",o="icon "+i[4]),d(l,"class","content"),d(e,"style",u=Y(i[0],i[1],i[2],i[3])),d(e,"class","notification"),d(e,"data-testid",i[6]),B(e,"medium",i[9])},m(b,w){k(b,e,w),m(e,t),m(t,r),m(e,a),m(e,l),y&&y.m(l,null),m(l,s),m(l,c),f||(h=q(window,"resize",i[12]),f=!0)},p(b,[w]){w&1024&&M(r,"type",b[10]),w&256&&M(r,"size",b[8]),w&16&&n!==(n=b[4]==="important"?"false":"true")&&M(r,"inverted",n),w&16&&o!==(o="icon "+b[4])&&d(t,"class",o),b[5]?y?y.p(b,w):(y=jt(b),y.c(),y.m(l,s)):y&&(y.d(1),y=null),w&15&&u!==(u=Y(b[0],b[1],b[2],b[3]))&&d(e,"style",u),w&64&&d(e,"data-testid",b[6]),w&512&&B(e,"medium",b[9])},i:C,o:C,d(b){b&&H(e),y&&y.d(),f=!1,h()}}}function Rr(i,e,t){let r,n;const[o,a]=J("Callout type",["emergency","important","information","event","success"],!0),[l,s]=J("Callout size",["medium","large"]);let{mt:c=null}=e,{mr:u=null}=e,{mb:f="l"}=e,{ml:h=null}=e,{size:y="large"}=e,{type:b}=e,{heading:w=""}=e,{testid:_=""}=e,p=0,z="medium";Q(()=>{s(y),setTimeout(()=>{a(b),t(8,z=r?"small":"medium")})});function D(){t(7,p=window.innerWidth)}return i.$$set=E=>{"mt"in E&&t(0,c=E.mt),"mr"in E&&t(1,u=E.mr),"mb"in E&&t(2,f=E.mb),"ml"in E&&t(3,h=E.ml),"size"in E&&t(11,y=E.size),"type"in E&&t(4,b=E.type),"heading"in E&&t(5,w=E.heading),"testid"in E&&t(6,_=E.testid)},i.$$.update=()=>{i.$$.dirty&2176&&t(9,r=p<640||y==="medium"),i.$$.dirty&16&&t(10,n=b==="emergency"?"warning":b==="important"?"alert-circle":b==="information"?"information-circle":b==="success"?"checkmark-circle":b==="event"?"calendar":"")},[c,u,f,h,b,w,_,p,z,r,n,y,D]}class jr extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.notification{display:flex;align-items:stretch;overflow:hidden;font:var(--goa-typography-body-m)}h3{font-size:var(--goa-font-size-7);line-height:var(--goa-line-height-2);font-weight:var(--goa-font-weight-regular);margin-top:var(--goa-space-none);margin-bottom:var(--goa-space-m)}.emergency{background-color:var(--goa-color-emergency-default)}.important{background-color:var(--goa-color-warning-default)}.information{background-color:var(--goa-color-info-default)}.event{background-color:var(--goa-color-info-default)}.success{background-color:var(--goa-color-success-default)}.icon{text-align:center;padding-top:var(--goa-space-l);padding-left:var(--goa-space-s);padding-right:var(--goa-space-s)}.content{flex:1 1 auto;background-color:var(--goa-color-greyscale-100);padding:var(--goa-space-l)}.notification.medium{font:var(--goa-typography-body-s);max-width:22rem}h3.medium{font:var(--goa-typography-heading-xs);margin-bottom:var(--goa-space-2xs)}.notification.medium .content{padding:var(--goa-space-s);margin-top:calc(-1 * var(--goa-space-3xs))}.notification.medium .icon{padding-top:var(--goa-space-s);padding-left:var(--goa-space-2xs);padding-right:var(--goa-space-2xs)}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Rr,Nr,O,{mt:0,mr:1,mb:2,ml:3,size:11,type:4,heading:5,testid:6},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["mt","mr","mb","ml","size","type","heading","testid"]}get mt(){return this.$$.ctx[0]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[1]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[2]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[3]}set ml(e){this.$$set({ml:e}),g()}get size(){return this.$$.ctx[11]}set size(e){this.$$set({size:e}),g()}get type(){return this.$$.ctx[4]}set type(e){this.$$set({type:e}),g()}get heading(){return this.$$.ctx[5]}set heading(e){this.$$set({heading:e}),g()}get testid(){return this.$$.ctx[6]}set testid(e){this.$$set({testid:e}),g()}}customElements.define("goa-callout",jr);function Vr(i){let e;return{c(){e=v("goa-card-content"),e.innerHTML='<goa-button-group alignment="end"><slot></slot></goa-button-group>',this.c=C},m(t,r){k(t,e,r)},p:C,i:C,o:C,d(t){t&&H(e)}}}class Sr extends P{constructor(e){super();F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},null,Vr,O,{},null),e&&e.target&&k(e.target,this,e.anchor)}}customElements.define("goa-card-actions",Sr);function Br(i){let e,t,r;return{c(){e=v("div"),t=v("slot"),this.c=C,d(e,"data-testid",i[7]),d(e,"class","card"),d(e,"style",r="--width: "+i[1]+"; --height: "+(i[2]==="auto"?"auto":"100%")+"; "+Y(i[3],i[4],i[5],i[6])+" "+(i[0]===0?"border: 1px solid var(--goa-color-greyscale-200);":`box-shadow: var(--shadow-${i[0]});`)+"")},m(n,o){k(n,e,o),m(e,t)},p(n,[o]){o&128&&d(e,"data-testid",n[7]),o&127&&r!==(r="--width: "+n[1]+"; --height: "+(n[2]==="auto"?"auto":"100%")+"; "+Y(n[3],n[4],n[5],n[6])+" "+(n[0]===0?"border: 1px solid var(--goa-color-greyscale-200);":`box-shadow: var(--shadow-${n[0]});`)+"")&&d(e,"style",r)},i:C,o:C,d(n){n&&H(e)}}}function Or(i,e,t){let{elevation:r=0}=e,{width:n="100%"}=e,{height:o="auto"}=e,{mt:a=null}=e,{mr:l=null}=e,{mb:s=null}=e,{ml:c=null}=e,{testid:u=""}=e;return i.$$set=f=>{"elevation"in f&&t(0,r=f.elevation),"width"in f&&t(1,n=f.width),"height"in f&&t(2,o=f.height),"mt"in f&&t(3,a=f.mt),"mr"in f&&t(4,l=f.mr),"mb"in f&&t(5,s=f.mb),"ml"in f&&t(6,c=f.ml),"testid"in f&&t(7,u=f.testid)},[r,n,o,a,l,s,c,u]}class Zr extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.card{background-color:var(--goa-color-greyscale-white);border-radius:4px;overflow:hidden;height:var(--height)}@media(min-width: 320px){.card{margin:0 auto}}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Or,Br,O,{elevation:0,width:1,height:2,mt:3,mr:4,mb:5,ml:6,testid:7},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["elevation","width","height","mt","mr","mb","ml","testid"]}get elevation(){return this.$$.ctx[0]}set elevation(e){this.$$set({elevation:e}),g()}get width(){return this.$$.ctx[1]}set width(e){this.$$set({width:e}),g()}get height(){return this.$$.ctx[2]}set height(e){this.$$set({height:e}),g()}get mt(){return this.$$.ctx[3]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[4]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[5]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[6]}set ml(e){this.$$set({ml:e}),g()}get testid(){return this.$$.ctx[7]}set testid(e){this.$$set({testid:e}),g()}}customElements.define("goa-card",Zr);function Pr(i){let e;return{c(){e=v("div"),e.innerHTML="<slot></slot>",this.c=C,d(e,"class","card-content")},m(t,r){k(t,e,r)},p:C,i:C,o:C,d(t){t&&H(e)}}}class Gr extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.card-content{padding:1rem}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},null,Pr,O,{},null),e&&e.target&&k(e.target,this,e.anchor)}}customElements.define("goa-card-content",Gr);function Fr(i){let e;return{c(){e=v("div"),e.innerHTML="<slot></slot>",this.c=C,d(e,"class","card-group")},m(t,r){k(t,e,r)},p:C,i:C,o:C,d(t){t&&H(e)}}}class Yr extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.card-group{display:flex;flex-wrap:wrap;justify-content:space-around;gap:1rem;width:100%}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},null,Fr,O,{},null),e&&e.target&&k(e.target,this,e.anchor)}}customElements.define("goa-card-group",Yr);function qr(i){let e;return{c(){e=v("div"),this.c=C,$(e,"background-image","url("+i[0]+")"),$(e,"height",i[1]),$(e,"background-size","cover"),$(e,"background-position","center")},m(t,r){k(t,e,r)},p(t,[r]){r&1&&$(e,"background-image","url("+t[0]+")"),r&2&&$(e,"height",t[1])},i:C,o:C,d(t){t&&H(e)}}}function Wr(i,e,t){let{src:r}=e,{height:n="100%"}=e;return i.$$set=o=>{"src"in o&&t(0,r=o.src),"height"in o&&t(1,n=o.height)},[r,n]}class Ur extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Wr,qr,O,{src:0,height:1},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["src","height"]}get src(){return this.$$.ctx[0]}set src(e){this.$$set({src:e}),g()}get height(){return this.$$.ctx[1]}set height(e){this.$$set({height:e}),g()}}customElements.define("goa-card-image",Ur);function Qr(i){let e,t;return{c(){e=ke("svg"),t=ke("path"),d(t,"d","M5.09,9.64,1.27,5.82,0,7.09l5.09,5.09L16,1.27,14.73,0Z"),d(e,"id","checkmark"),d(e,"data-testid","checkmark"),d(e,"xmlns","http://www.w3.org/2000/svg"),d(e,"viewBox","0 0 16 12.18")},m(r,n){k(r,e,n),m(e,t)},d(r){r&&H(e)}}}function Kr(i){let e,t;return{c(){e=ke("svg"),t=ke("rect"),d(t,"width","15"),d(t,"height","2"),d(e,"id","dashmark"),d(e,"data-testid","dashmark"),d(e,"xmlns","http://www.w3.org/2000/svg"),d(e,"viewBox","0 0 15 2")},m(r,n){k(r,e,n),m(e,t)},d(r){r&&H(e)}}}function Xr(i){let e,t,r,n,o,a,l,s,c,u,f,h,y;function b(p,z){if(p[10])return Kr;if(p[9])return Qr}let w=b(i),_=w&&w(i);return{c(){e=v("label"),t=v("div"),r=v("input"),a=N(),_&&_.c(),l=N(),s=v("div"),c=v("slot"),u=Z(i[1]),this.c=C,d(r,"id",i[0]),d(r,"name",i[0]),r.checked=i[9],r.disabled=i[12],d(r,"type","checkbox"),r.value=n=`${i[2]}`,d(r,"aria-label",o=i[4]||i[0]),d(t,"class","goa-checkbox-container"),B(t,"goa-checkbox--selected",i[9]),d(s,"class","goa-checkbox-text"),d(s,"data-testid","text"),d(e,"data-testid",i[3]),d(e,"for",i[0]),d(e,"style",f=Y(i[5],i[6],i[7],i[8])),d(e,"class","goa-checkbox"),B(e,"goa-checkbox--disabled",i[12]),B(e,"goa-checkbox--error",i[11])},m(p,z){k(p,e,z),m(e,t),m(t,r),m(t,a),_&&_.m(t,null),m(e,l),m(e,s),m(s,c),m(c,u),h||(y=q(r,"change",i[13]),h=!0)},p(p,[z]){z&1&&d(r,"id",p[0]),z&1&&d(r,"name",p[0]),z&512&&(r.checked=p[9]),z&4096&&(r.disabled=p[12]),z&4&&n!==(n=`${p[2]}`)&&(r.value=n),z&17&&o!==(o=p[4]||p[0])&&d(r,"aria-label",o),w!==(w=b(p))&&(_&&_.d(1),_=w&&w(p),_&&(_.c(),_.m(t,null))),z&512&&B(t,"goa-checkbox--selected",p[9]),z&2&&W(u,p[1]),z&8&&d(e,"data-testid",p[3]),z&1&&d(e,"for",p[0]),z&480&&f!==(f=Y(p[5],p[6],p[7],p[8]))&&d(e,"style",f),z&4096&&B(e,"goa-checkbox--disabled",p[12]),z&2048&&B(e,"goa-checkbox--error",p[11])},i:C,o:C,d(p){p&&H(e),_&&_.d(),h=!1,y()}}}function Jr(i,e,t){let r,n,o,a,{name:l}=e,{checked:s="false"}=e,{text:c=""}=e,{value:u=""}=e,{disabled:f="false"}=e,{error:h="false"}=e,{testid:y=""}=e,{arialabel:b=""}=e,{mt:w=null}=e,{mr:_=null}=e,{mb:p=null}=e,{ml:z=null}=e,D;Q(()=>{D=u});function E(x){const T=!o,L=T?`${D||"checked"}`:"";t(14,s=sr(T)),x.target.dispatchEvent(new CustomEvent("_change",{composed:!0,detail:{name:l,checked:T,value:L}}))}return i.$$set=x=>{"name"in x&&t(0,l=x.name),"checked"in x&&t(14,s=x.checked),"text"in x&&t(1,c=x.text),"value"in x&&t(2,u=x.value),"disabled"in x&&t(15,f=x.disabled),"error"in x&&t(16,h=x.error),"testid"in x&&t(3,y=x.testid),"arialabel"in x&&t(4,b=x.arialabel),"mt"in x&&t(5,w=x.mt),"mr"in x&&t(6,_=x.mr),"mb"in x&&t(7,p=x.mb),"ml"in x&&t(8,z=x.ml)},i.$$.update=()=>{i.$$.dirty&32768&&t(12,r=K(f)),i.$$.dirty&65536&&t(11,n=K(h)),i.$$.dirty&16384&&t(9,o=K(s))},t(10,a=!1),[l,c,u,y,b,w,_,p,z,o,a,n,r,E,s,f,h]}class $r extends P{constructor(e){super();this.shadowRoot.innerHTML='<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans);display:block}.goa-checkbox{display:inline-flex;align-items:center;min-height:calc(3rem - 4px);cursor:pointer}.goa-checkbox input[type="checkbox"]{opacity:0;position:absolute;cursor:pointer}.goa-checkbox--disabled .goa-checkbox-text{opacity:40%}.goa-checkbox-container{box-sizing:border-box;border:1px solid var(--goa-color-greyscale-700);border-radius:2px;background-color:var(--goa-color-greyscale-white);height:1.5rem;width:1.5rem;display:flex;justify-content:center;padding:3px;flex:0 0 auto}.goa-checkbox-container svg{fill:var(--goa-color-greyscale-white)}.goa-checkbox-container.goa-checkbox--selected{background-color:var(--goa-color-interactive-default)}.goa-checkbox-container.goa-checkbox--selected:hover{background-color:var(--goa-color-interactive-hover)}.goa-checkbox-container:hover{box-shadow:0 0 0 var(--goa-border-width-m) var(--goa-color-interactive-hover);border:none}.goa-checkbox-container:focus-within,.goa-checkbox-container:focus,.goa-checkbox-container:active{box-shadow:0 0 0 3px var(--goa-color-interactive-focus);border:1px solid var(--goa-color-greyscale-700);outline:none}.goa-checkbox-text{padding-left:0.5rem;user-select:none;font-weight:var(--goa-font-weight-regular)}.goa-checkbox--disabled .goa-checkbox-container,.goa-checkbox--disabled .goa-checkbox-container:hover{border:1px solid var(--goa-color-greyscale-400);box-shadow:none}.goa-checkbox--disabled,input[type=checkbox][disabled]:hover{cursor:default}.goa-checkbox--error .goa-checkbox-container,.goa-checkbox--error .goa-checkbox-container:hover{border:1px solid var(--goa-color-emergency-default);box-shadow:inset 0 0 0 1px var(--goa-color-emergency-default);background-color:var(--goa-color-greyscale-white)}.goa-checkbox--error .goa-checkbox-container svg{fill:var(--goa-color-emergency-default)}</style>',F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Jr,Xr,O,{name:0,checked:14,text:1,value:2,disabled:15,error:16,testid:3,arialabel:4,mt:5,mr:6,mb:7,ml:8},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["name","checked","text","value","disabled","error","testid","arialabel","mt","mr","mb","ml"]}get name(){return this.$$.ctx[0]}set name(e){this.$$set({name:e}),g()}get checked(){return this.$$.ctx[14]}set checked(e){this.$$set({checked:e}),g()}get text(){return this.$$.ctx[1]}set text(e){this.$$set({text:e}),g()}get value(){return this.$$.ctx[2]}set value(e){this.$$set({value:e}),g()}get disabled(){return this.$$.ctx[15]}set disabled(e){this.$$set({disabled:e}),g()}get error(){return this.$$.ctx[16]}set error(e){this.$$set({error:e}),g()}get testid(){return this.$$.ctx[3]}set testid(e){this.$$set({testid:e}),g()}get arialabel(){return this.$$.ctx[4]}set arialabel(e){this.$$set({arialabel:e}),g()}get mt(){return this.$$.ctx[5]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[6]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[7]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[8]}set ml(e){this.$$set({ml:e}),g()}}customElements.define("goa-checkbox",$r);function Vt(i){let e;return{c(){e=v("goa-icon"),M(e,"class","leading-icon"),M(e,"size","medium"),M(e,"type",i[4])},m(t,r){k(t,e,r)},p(t,r){r&16&&M(e,"type",t[4])},d(t){t&&H(e)}}}function St(i){let e,t,r;return{c(){e=v("goa-icon"),M(e,"class","delete-icon"),M(e,"size","medium"),M(e,"theme","filled"),M(e,"type","close-circle"),M(e,"fillcolor",t=i[10]?"var(--goa-color-emergency-default)":i[9]?"var(--goa-color-interactive-hover)":"var(--goa-color-greyscale-700)"),M(e,"opacity",r=i[10]?i[9]?1:.5:1)},m(n,o){k(n,e,o)},p(n,o){o&1536&&t!==(t=n[10]?"var(--goa-color-emergency-default)":n[9]?"var(--goa-color-interactive-hover)":"var(--goa-color-greyscale-700)")&&M(e,"fillcolor",t),o&1536&&r!==(r=n[10]?n[9]?1:.5:1)&&M(e,"opacity",r)},d(n){n&&H(e)}}}function en(i){let e,t,r,n,o,a,l,s,c=i[4]&&Vt(i),u=i[11]&&St(i);return{c(){e=v("div"),c&&c.c(),t=N(),r=v("div"),n=Z(i[5]),o=N(),u&&u.c(),this.c=C,d(r,"class","text"),d(e,"data-testid",i[7]),d(e,"class","chip"),d(e,"style",a=Y(i[0],i[1],i[2],i[3])),d(e,"tabindex","0"),B(e,"deletable",i[11]),B(e,"error",i[10]),B(e,"variant",i[6])},m(f,h){k(f,e,h),c&&c.m(e,null),m(e,t),m(e,r),m(r,n),m(e,o),u&&u.m(e,null),i[15](e),l||(s=[q(e,"click",i[16]),q(e,"mouseover",i[17]),q(e,"mouseout",i[18]),q(e,"focus",i[19]),q(e,"blur",i[20])],l=!0)},p(f,[h]){f[4]?c?c.p(f,h):(c=Vt(f),c.c(),c.m(e,t)):c&&(c.d(1),c=null),h&32&&W(n,f[5]),f[11]?u?u.p(f,h):(u=St(f),u.c(),u.m(e,null)):u&&(u.d(1),u=null),h&128&&d(e,"data-testid",f[7]),h&15&&a!==(a=Y(f[0],f[1],f[2],f[3]))&&d(e,"style",a),h&2048&&B(e,"deletable",f[11]),h&1024&&B(e,"error",f[10]),h&64&&B(e,"variant",f[6])},i:C,o:C,d(f){f&&H(e),c&&c.d(),u&&u.d(),i[15](null),l=!1,ae(s)}}}function tn(i,e,t){let{mt:r=null}=e,{mr:n=null}=e,{mb:o=null}=e,{ml:a=null}=e,{leadingicon:l=null}=e,{error:s="false"}=e,{deletable:c="false"}=e,{content:u}=e,{variant:f}=e,{testid:h=""}=e,y,b=!1,w,_;function p(I){y.dispatchEvent(new CustomEvent("_click",{composed:!0,bubbles:!0})),I.stopPropagation()}function z(I){U[I?"unshift":"push"](()=>{y=I,t(8,y)})}const D=I=>_&&p(I),E=()=>t(9,b=!0),x=()=>t(9,b=!1),T=()=>t(9,b=!1),L=()=>t(9,b=!1);return i.$$set=I=>{"mt"in I&&t(0,r=I.mt),"mr"in I&&t(1,n=I.mr),"mb"in I&&t(2,o=I.mb),"ml"in I&&t(3,a=I.ml),"leadingicon"in I&&t(4,l=I.leadingicon),"error"in I&&t(13,s=I.error),"deletable"in I&&t(14,c=I.deletable),"content"in I&&t(5,u=I.content),"variant"in I&&t(6,f=I.variant),"testid"in I&&t(7,h=I.testid)},i.$$.update=()=>{i.$$.dirty&8192&&t(10,w=K(s)),i.$$.dirty&16384&&t(11,_=K(c))},[r,n,o,a,l,u,f,h,y,b,w,_,p,s,c,z,D,E,x,T,L]}class rn extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>.leading-icon{margin-left:-0.25rem}.chip{vertical-align:middle;align-items:center;background-color:var(--goa-color-greyscale-white);border-radius:99px;border:1px solid #949494;box-sizing:border-box;color:var(--goa-color-text-default);display:inline-flex;flex-direction:row;font-size:var(--goa-font-size-3);font-weight:var(--goa-font-weight-regular);gap:0.25rem;height:2rem;justify-content:center;padding:0 0.75rem;cursor:default}.text{padding-bottom:var(--font-valign-fix, 0)}.chip:focus{outline:2px solid var(--goa-color-interactive-focus);background-color:var(--goa-color-greyscale-white)}.chip:hover{background-color:var(--goa-color-greyscale-200)}.deletable{cursor:pointer}.delete-icon{margin-right:-0.25rem}.error,.error:hover{background-color:var(--goa-color-emergency-light)}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},tn,en,O,{mt:0,mr:1,mb:2,ml:3,leadingicon:4,error:13,deletable:14,content:5,variant:6,testid:7},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["mt","mr","mb","ml","leadingicon","error","deletable","content","variant","testid"]}get mt(){return this.$$.ctx[0]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[1]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[2]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[3]}set ml(e){this.$$set({ml:e}),g()}get leadingicon(){return this.$$.ctx[4]}set leadingicon(e){this.$$set({leadingicon:e}),g()}get error(){return this.$$.ctx[13]}set error(e){this.$$set({error:e}),g()}get deletable(){return this.$$.ctx[14]}set deletable(e){this.$$set({deletable:e}),g()}get content(){return this.$$.ctx[5]}set content(e){this.$$set({content:e}),g()}get variant(){return this.$$.ctx[6]}set variant(e){this.$$set({variant:e}),g()}get testid(){return this.$$.ctx[7]}set testid(e){this.$$set({testid:e}),g()}}customElements.define("goa-chip",rn);function nn(i){const e=i-1;return e*e*e+1}function on(i){return Math.pow(i-1,3)*(1-i)+1}function De(i,{delay:e=0,duration:t=400,easing:r=Ve}={}){const n=+getComputedStyle(i).opacity;return{delay:e,duration:t,easing:r,css:o=>`opacity: ${o*n}`}}function Bt(i,{delay:e=0,duration:t=400,easing:r=nn,x:n=0,y:o=0,opacity:a=0}={}){const l=getComputedStyle(i),s=+l.opacity,c=l.transform==="none"?"":l.transform,u=s*(1-a);return{delay:e,duration:t,easing:r,css:(f,h)=>`
|
|
19
|
+
border-color 0.2s ease-in-out}.text{padding-bottom:var(--font-valign-fix, 0)}button:disabled{pointer-events:none;opacity:0.5}button.compact{height:var(--button-height-compact);font-size:var(--goa-font-size-4);padding-left:var(--goa-space-xs);padding-right:var(--goa-space-xs)}button.start{height:var(--button-height-tall);font-weight:var(--goa-font-weight-bold)}button.start,button.submit,button.primary{border:2px solid var(--goa-color-interactive-default);background-color:var(--goa-color-interactive-default);color:var(--goa-color-text-light)}button.start:hover,button.submit:hover,button.primary:hover{border-color:var(--goa-color-interactive-hover);background-color:var(--goa-color-interactive-hover)}button.start:focus,button.start:active,button.submit:focus,button.submit:active,button.primary:focus,button.primary:active{box-shadow:0 0 0 3px var(--goa-color-interactive-focus);border-color:var(--goa-color-interactive-hover);background-color:var(--goa-color-interactive-hover);outline:none}button.secondary{border:2px solid var(--goa-color-interactive-default);background-color:var(--goa-color-greyscale-white);color:var(--goa-color-interactive-default)}button.secondary:hover{border-color:var(--goa-color-interactive-hover);color:var(--goa-color-interactive-hover);background-color:var(--goa-color-greyscale-100)}button.secondary:focus,button.secondary:active{border-color:var(--goa-color-interactive-hover);box-shadow:0 0 0 3px var(--goa-color-interactive-focus);background-color:var(--goa-color-greyscale-100);outline:none}button.tertiary{border:1px solid transparent;background-color:transparent;color:var(--goa-color-interactive-default);text-decoration:underline}button.tertiary:hover{border-color:var(--goa-color-greyscale-100);color:var(--goa-color-interactive-hover);background-color:var(--goa-color-greyscale-100)}button.tertiary:focus,button.tertiary:active{border-color:var(--goa-color-greyscale-100);background-color:var(--goa-color-greyscale-100);color:var(--goa-color-interactive-hover);box-shadow:0 0 0 3px var(--goa-color-interactive-focus);outline:none}.submit.destructive,.primary.destructive{color:var(--goa-color-greyscale-white);background-color:var(--goa-color-emergency-default);border-color:var(--goa-color-emergency-default)}.submit.destructive:hover,.primary.destructive:hover{background-color:var(--goa-color-emergency-dark);border-color:var(--goa-color-emergency-dark)}.submit.destructive:focus,.primary.destructive:focus,.primary.destructive:active{background-color:var(--goa-color-emergency-dark);border-color:var(--goa-color-emergency-dark)}.secondary.destructive{color:var(--goa-color-emergency-default);border-color:var(--goa-color-emergency-default);background-color:var(--goa-color-greyscale-white)}.secondary.destructive:hover{border-color:var(--goa-color-emergency-dark);color:var(--goa-color-emergency-dark);background-color:var(--goa-color-greyscale-white)}.secondary.destructive:focus,.secondary.destructive:active{color:var(--goa-color-emergency-dark);border-color:var(--goa-color-emergency-dark);background-color:var(--goa-color-greyscale-white)}.tertiary.destructive{color:var(--goa-color-emergency-default);border-color:transparent}.tertiary.destructive:hover{color:var(--goa-color-emergency-dark)}.tertiary.destructive:focus,.tertiary.destructive:active{color:var(--goa-color-emergency-dark)}</style>`,F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Hr,Lr,O,{type:0,size:1,variant:2,disabled:13,leadingicon:3,trailingicon:4,testid:5,mt:6,mr:7,mb:8,ml:9},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["type","size","variant","disabled","leadingicon","trailingicon","testid","mt","mr","mb","ml"]}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),g()}get size(){return this.$$.ctx[1]}set size(e){this.$$set({size:e}),g()}get variant(){return this.$$.ctx[2]}set variant(e){this.$$set({variant:e}),g()}get disabled(){return this.$$.ctx[13]}set disabled(e){this.$$set({disabled:e}),g()}get leadingicon(){return this.$$.ctx[3]}set leadingicon(e){this.$$set({leadingicon:e}),g()}get trailingicon(){return this.$$.ctx[4]}set trailingicon(e){this.$$set({trailingicon:e}),g()}get testid(){return this.$$.ctx[5]}set testid(e){this.$$set({testid:e}),g()}get mt(){return this.$$.ctx[6]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[7]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[8]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[9]}set ml(e){this.$$set({ml:e}),g()}}customElements.define("goa-button",Ar);function Tr(i){let e,t,r;return{c(){e=v("div"),t=v("slot"),this.c=C,d(e,"data-testid",i[1]),d(e,"style",r=""+(Y(i[2],i[3],i[4],i[5])+"; --alignment: "+i[6]+"; --gap-size: "+(i[0]==="relaxed"?"1rem":"0.75rem")))},m(n,o){k(n,e,o),m(e,t)},p(n,[o]){o&2&&d(e,"data-testid",n[1]),o&125&&r!==(r=""+(Y(n[2],n[3],n[4],n[5])+"; --alignment: "+n[6]+"; --gap-size: "+(n[0]==="relaxed"?"1rem":"0.75rem")))&&d(e,"style",r)},i:C,o:C,d(n){n&&H(e)}}}function Ir(i,e,t){let r,{alignment:n="start"}=e,{gap:o="relaxed"}=e,{testid:a=""}=e,{mt:l=null}=e,{mr:s=null}=e,{mb:c=null}=e,{ml:u=null}=e;const[f,h]=J("alignment",["start","end","center"]),[y,b]=J("gap",["relaxed","compact"]);return Q(()=>{h(n),b(o)}),i.$$set=w=>{"alignment"in w&&t(7,n=w.alignment),"gap"in w&&t(0,o=w.gap),"testid"in w&&t(1,a=w.testid),"mt"in w&&t(2,l=w.mt),"mr"in w&&t(3,s=w.mr),"mb"in w&&t(4,c=w.mb),"ml"in w&&t(5,u=w.ml)},i.$$.update=()=>{i.$$.dirty&128&&t(6,r={start:"flex-start",end:"flex-end",center:"center"}[n])},[o,a,l,s,c,u,r,n]}class Dr extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}div{display:flex;flex-direction:row;justify-content:var(--alignment);align-items:center;flex-wrap:wrap;gap:var(--gap-size);padding:3px 0}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Ir,Tr,O,{alignment:7,gap:0,testid:1,mt:2,mr:3,mb:4,ml:5},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["alignment","gap","testid","mt","mr","mb","ml"]}get alignment(){return this.$$.ctx[7]}set alignment(e){this.$$set({alignment:e}),g()}get gap(){return this.$$.ctx[0]}set gap(e){this.$$set({gap:e}),g()}get testid(){return this.$$.ctx[1]}set testid(e){this.$$set({testid:e}),g()}get mt(){return this.$$.ctx[2]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[3]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[4]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[5]}set ml(e){this.$$set({ml:e}),g()}}customElements.define("goa-button-group",Dr);function jt(i){let e,t;return{c(){e=v("h3"),t=Z(i[5]),B(e,"medium",i[9])},m(r,n){k(r,e,n),m(e,t)},p(r,n){n&32&&W(t,r[5]),n&512&&B(e,"medium",r[9])},d(r){r&&H(e)}}}function Nr(i){let e,t,r,n,o,a,l,s,c,u,f,h;ge(i[12]);let y=i[5]&&jt(i);return{c(){e=v("div"),t=v("span"),r=v("goa-icon"),a=N(),l=v("span"),y&&y.c(),s=N(),c=v("slot"),this.c=C,M(r,"type",i[10]),M(r,"size",i[8]),M(r,"inverted",n=i[4]==="important"?"false":"true"),d(t,"class",o="icon "+i[4]),d(l,"class","content"),d(e,"style",u=Y(i[0],i[1],i[2],i[3])),d(e,"class","notification"),d(e,"data-testid",i[6]),B(e,"medium",i[9])},m(b,w){k(b,e,w),m(e,t),m(t,r),m(e,a),m(e,l),y&&y.m(l,null),m(l,s),m(l,c),f||(h=q(window,"resize",i[12]),f=!0)},p(b,[w]){w&1024&&M(r,"type",b[10]),w&256&&M(r,"size",b[8]),w&16&&n!==(n=b[4]==="important"?"false":"true")&&M(r,"inverted",n),w&16&&o!==(o="icon "+b[4])&&d(t,"class",o),b[5]?y?y.p(b,w):(y=jt(b),y.c(),y.m(l,s)):y&&(y.d(1),y=null),w&15&&u!==(u=Y(b[0],b[1],b[2],b[3]))&&d(e,"style",u),w&64&&d(e,"data-testid",b[6]),w&512&&B(e,"medium",b[9])},i:C,o:C,d(b){b&&H(e),y&&y.d(),f=!1,h()}}}function Rr(i,e,t){let r,n;const[o,a]=J("Callout type",["emergency","important","information","event","success"],!0),[l,s]=J("Callout size",["medium","large"]);let{mt:c=null}=e,{mr:u=null}=e,{mb:f="l"}=e,{ml:h=null}=e,{size:y="large"}=e,{type:b}=e,{heading:w=""}=e,{testid:_=""}=e,p=0,z="medium";Q(()=>{s(y),setTimeout(()=>{a(b),t(8,z=r?"small":"medium")})});function D(){t(7,p=window.innerWidth)}return i.$$set=E=>{"mt"in E&&t(0,c=E.mt),"mr"in E&&t(1,u=E.mr),"mb"in E&&t(2,f=E.mb),"ml"in E&&t(3,h=E.ml),"size"in E&&t(11,y=E.size),"type"in E&&t(4,b=E.type),"heading"in E&&t(5,w=E.heading),"testid"in E&&t(6,_=E.testid)},i.$$.update=()=>{i.$$.dirty&2176&&t(9,r=p<640||y==="medium"),i.$$.dirty&16&&t(10,n=b==="emergency"?"warning":b==="important"?"alert-circle":b==="information"?"information-circle":b==="success"?"checkmark-circle":b==="event"?"calendar":"")},[c,u,f,h,b,w,_,p,z,r,n,y,D]}class jr extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.notification{display:flex;align-items:stretch;overflow:hidden;font:var(--goa-typography-body-m)}h3{font-size:var(--goa-font-size-7);line-height:var(--goa-line-height-2);font-weight:var(--goa-font-weight-regular);margin-top:var(--goa-space-none);margin-bottom:var(--goa-space-m)}.emergency{background-color:var(--goa-color-emergency-default)}.important{background-color:var(--goa-color-warning-default)}.information{background-color:var(--goa-color-info-default)}.event{background-color:var(--goa-color-info-default)}.success{background-color:var(--goa-color-success-default)}.icon{text-align:center;padding-top:var(--goa-space-l);padding-left:var(--goa-space-s);padding-right:var(--goa-space-s)}.content{flex:1 1 auto;background-color:var(--goa-color-greyscale-100);padding:var(--goa-space-l)}.notification.medium{font:var(--goa-typography-body-s);max-width:22rem}h3.medium{font:var(--goa-typography-heading-xs);margin-bottom:var(--goa-space-2xs)}.notification.medium .content{padding:var(--goa-space-s);margin-top:calc(-1 * var(--goa-space-3xs))}.notification.medium .icon{padding-top:var(--goa-space-s);padding-left:var(--goa-space-2xs);padding-right:var(--goa-space-2xs)}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Rr,Nr,O,{mt:0,mr:1,mb:2,ml:3,size:11,type:4,heading:5,testid:6},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["mt","mr","mb","ml","size","type","heading","testid"]}get mt(){return this.$$.ctx[0]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[1]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[2]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[3]}set ml(e){this.$$set({ml:e}),g()}get size(){return this.$$.ctx[11]}set size(e){this.$$set({size:e}),g()}get type(){return this.$$.ctx[4]}set type(e){this.$$set({type:e}),g()}get heading(){return this.$$.ctx[5]}set heading(e){this.$$set({heading:e}),g()}get testid(){return this.$$.ctx[6]}set testid(e){this.$$set({testid:e}),g()}}customElements.define("goa-callout",jr);function Vr(i){let e;return{c(){e=v("goa-card-content"),e.innerHTML='<goa-button-group alignment="end"><slot></slot></goa-button-group>',this.c=C},m(t,r){k(t,e,r)},p:C,i:C,o:C,d(t){t&&H(e)}}}class Sr extends P{constructor(e){super();F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},null,Vr,O,{},null),e&&e.target&&k(e.target,this,e.anchor)}}customElements.define("goa-card-actions",Sr);function Br(i){let e,t,r;return{c(){e=v("div"),t=v("slot"),this.c=C,d(e,"data-testid",i[7]),d(e,"class","card"),d(e,"style",r="--width: "+i[1]+"; --height: "+(i[2]==="auto"?"auto":"100%")+"; "+Y(i[3],i[4],i[5],i[6])+" "+(i[0]===0?"border: 1px solid var(--goa-color-greyscale-200);":`box-shadow: var(--shadow-${i[0]});`)+"")},m(n,o){k(n,e,o),m(e,t)},p(n,[o]){o&128&&d(e,"data-testid",n[7]),o&127&&r!==(r="--width: "+n[1]+"; --height: "+(n[2]==="auto"?"auto":"100%")+"; "+Y(n[3],n[4],n[5],n[6])+" "+(n[0]===0?"border: 1px solid var(--goa-color-greyscale-200);":`box-shadow: var(--shadow-${n[0]});`)+"")&&d(e,"style",r)},i:C,o:C,d(n){n&&H(e)}}}function Or(i,e,t){let{elevation:r=0}=e,{width:n="100%"}=e,{height:o="auto"}=e,{mt:a=null}=e,{mr:l=null}=e,{mb:s=null}=e,{ml:c=null}=e,{testid:u=""}=e;return i.$$set=f=>{"elevation"in f&&t(0,r=f.elevation),"width"in f&&t(1,n=f.width),"height"in f&&t(2,o=f.height),"mt"in f&&t(3,a=f.mt),"mr"in f&&t(4,l=f.mr),"mb"in f&&t(5,s=f.mb),"ml"in f&&t(6,c=f.ml),"testid"in f&&t(7,u=f.testid)},[r,n,o,a,l,s,c,u]}class Zr extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.card{background-color:var(--goa-color-greyscale-white);border-radius:4px;overflow:hidden;height:var(--height)}@media(min-width: 320px){.card{margin:0 auto}}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Or,Br,O,{elevation:0,width:1,height:2,mt:3,mr:4,mb:5,ml:6,testid:7},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["elevation","width","height","mt","mr","mb","ml","testid"]}get elevation(){return this.$$.ctx[0]}set elevation(e){this.$$set({elevation:e}),g()}get width(){return this.$$.ctx[1]}set width(e){this.$$set({width:e}),g()}get height(){return this.$$.ctx[2]}set height(e){this.$$set({height:e}),g()}get mt(){return this.$$.ctx[3]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[4]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[5]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[6]}set ml(e){this.$$set({ml:e}),g()}get testid(){return this.$$.ctx[7]}set testid(e){this.$$set({testid:e}),g()}}customElements.define("goa-card",Zr);function Pr(i){let e;return{c(){e=v("div"),e.innerHTML="<slot></slot>",this.c=C,d(e,"class","card-content")},m(t,r){k(t,e,r)},p:C,i:C,o:C,d(t){t&&H(e)}}}class Gr extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.card-content{padding:1rem}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},null,Pr,O,{},null),e&&e.target&&k(e.target,this,e.anchor)}}customElements.define("goa-card-content",Gr);function Fr(i){let e;return{c(){e=v("div"),e.innerHTML="<slot></slot>",this.c=C,d(e,"class","card-group")},m(t,r){k(t,e,r)},p:C,i:C,o:C,d(t){t&&H(e)}}}class Yr extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.card-group{display:flex;flex-wrap:wrap;justify-content:space-around;gap:1rem;width:100%}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},null,Fr,O,{},null),e&&e.target&&k(e.target,this,e.anchor)}}customElements.define("goa-card-group",Yr);function qr(i){let e;return{c(){e=v("div"),this.c=C,$(e,"background-image","url("+i[0]+")"),$(e,"height",i[1]),$(e,"background-size","cover"),$(e,"background-position","center")},m(t,r){k(t,e,r)},p(t,[r]){r&1&&$(e,"background-image","url("+t[0]+")"),r&2&&$(e,"height",t[1])},i:C,o:C,d(t){t&&H(e)}}}function Wr(i,e,t){let{src:r}=e,{height:n="100%"}=e;return i.$$set=o=>{"src"in o&&t(0,r=o.src),"height"in o&&t(1,n=o.height)},[r,n]}class Ur extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Wr,qr,O,{src:0,height:1},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["src","height"]}get src(){return this.$$.ctx[0]}set src(e){this.$$set({src:e}),g()}get height(){return this.$$.ctx[1]}set height(e){this.$$set({height:e}),g()}}customElements.define("goa-card-image",Ur);function Qr(i){let e,t;return{c(){e=ke("svg"),t=ke("path"),d(t,"d","M5.09,9.64,1.27,5.82,0,7.09l5.09,5.09L16,1.27,14.73,0Z"),d(e,"id","checkmark"),d(e,"data-testid","checkmark"),d(e,"xmlns","http://www.w3.org/2000/svg"),d(e,"viewBox","0 0 16 12.18")},m(r,n){k(r,e,n),m(e,t)},d(r){r&&H(e)}}}function Kr(i){let e,t;return{c(){e=ke("svg"),t=ke("rect"),d(t,"width","15"),d(t,"height","2"),d(e,"id","dashmark"),d(e,"data-testid","dashmark"),d(e,"xmlns","http://www.w3.org/2000/svg"),d(e,"viewBox","0 0 15 2")},m(r,n){k(r,e,n),m(e,t)},d(r){r&&H(e)}}}function Xr(i){let e,t,r,n,o,a,l,s,c,u,f,h,y;function b(p,z){if(p[10])return Kr;if(p[9])return Qr}let w=b(i),_=w&&w(i);return{c(){e=v("label"),t=v("div"),r=v("input"),a=N(),_&&_.c(),l=N(),s=v("div"),c=v("slot"),u=Z(i[1]),this.c=C,d(r,"id",i[0]),d(r,"name",i[0]),r.checked=i[9],r.disabled=i[12],d(r,"type","checkbox"),r.value=n=`${i[2]}`,d(r,"aria-label",o=i[4]||i[0]),d(t,"class","goa-checkbox-container"),B(t,"goa-checkbox--selected",i[9]),d(s,"class","goa-checkbox-text"),d(s,"data-testid","text"),d(e,"data-testid",i[3]),d(e,"for",i[0]),d(e,"style",f=Y(i[5],i[6],i[7],i[8])),d(e,"class","goa-checkbox"),B(e,"goa-checkbox--disabled",i[12]),B(e,"goa-checkbox--error",i[11])},m(p,z){k(p,e,z),m(e,t),m(t,r),m(t,a),_&&_.m(t,null),m(e,l),m(e,s),m(s,c),m(c,u),h||(y=q(r,"change",i[13]),h=!0)},p(p,[z]){z&1&&d(r,"id",p[0]),z&1&&d(r,"name",p[0]),z&512&&(r.checked=p[9]),z&4096&&(r.disabled=p[12]),z&4&&n!==(n=`${p[2]}`)&&(r.value=n),z&17&&o!==(o=p[4]||p[0])&&d(r,"aria-label",o),w!==(w=b(p))&&(_&&_.d(1),_=w&&w(p),_&&(_.c(),_.m(t,null))),z&512&&B(t,"goa-checkbox--selected",p[9]),z&2&&W(u,p[1]),z&8&&d(e,"data-testid",p[3]),z&1&&d(e,"for",p[0]),z&480&&f!==(f=Y(p[5],p[6],p[7],p[8]))&&d(e,"style",f),z&4096&&B(e,"goa-checkbox--disabled",p[12]),z&2048&&B(e,"goa-checkbox--error",p[11])},i:C,o:C,d(p){p&&H(e),_&&_.d(),h=!1,y()}}}function Jr(i,e,t){let r,n,o,a,{name:l}=e,{checked:s="false"}=e,{text:c=""}=e,{value:u=""}=e,{disabled:f="false"}=e,{error:h="false"}=e,{testid:y=""}=e,{arialabel:b=""}=e,{mt:w=null}=e,{mr:_=null}=e,{mb:p=null}=e,{ml:z=null}=e,D;Q(()=>{D=u});function E(x){const T=!o,L=T?`${D||"checked"}`:"";t(14,s=sr(T)),x.target.dispatchEvent(new CustomEvent("_change",{composed:!0,detail:{name:l,checked:T,value:L}}))}return i.$$set=x=>{"name"in x&&t(0,l=x.name),"checked"in x&&t(14,s=x.checked),"text"in x&&t(1,c=x.text),"value"in x&&t(2,u=x.value),"disabled"in x&&t(15,f=x.disabled),"error"in x&&t(16,h=x.error),"testid"in x&&t(3,y=x.testid),"arialabel"in x&&t(4,b=x.arialabel),"mt"in x&&t(5,w=x.mt),"mr"in x&&t(6,_=x.mr),"mb"in x&&t(7,p=x.mb),"ml"in x&&t(8,z=x.ml)},i.$$.update=()=>{i.$$.dirty&32768&&t(12,r=K(f)),i.$$.dirty&65536&&t(11,n=K(h)),i.$$.dirty&16384&&t(9,o=K(s))},t(10,a=!1),[l,c,u,y,b,w,_,p,z,o,a,n,r,E,s,f,h]}class $r extends P{constructor(e){super();this.shadowRoot.innerHTML='<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans);display:block}.goa-checkbox{display:inline-flex;align-items:center;min-height:calc(3rem - 4px);cursor:pointer}.goa-checkbox input[type="checkbox"]{opacity:0;position:absolute;cursor:pointer}.goa-checkbox--disabled .goa-checkbox-text{opacity:40%}.goa-checkbox-container{box-sizing:border-box;border:1px solid var(--goa-color-greyscale-700);border-radius:2px;background-color:var(--goa-color-greyscale-white);height:1.5rem;width:1.5rem;display:flex;justify-content:center;padding:3px;flex:0 0 auto}.goa-checkbox-container svg{fill:var(--goa-color-greyscale-white)}.goa-checkbox-container.goa-checkbox--selected{background-color:var(--goa-color-interactive-default)}.goa-checkbox-container.goa-checkbox--selected:hover{background-color:var(--goa-color-interactive-hover)}.goa-checkbox-container:hover{box-shadow:0 0 0 var(--goa-border-width-m) var(--goa-color-interactive-hover);border:none}.goa-checkbox-container:focus-within,.goa-checkbox-container:focus,.goa-checkbox-container:active{box-shadow:0 0 0 3px var(--goa-color-interactive-focus);border:1px solid var(--goa-color-greyscale-700);outline:none}.goa-checkbox-text{padding-left:0.5rem;user-select:none;font-weight:var(--goa-font-weight-regular)}.goa-checkbox--disabled .goa-checkbox-container,.goa-checkbox--disabled .goa-checkbox-container:hover{border:1px solid var(--goa-color-greyscale-400);box-shadow:none}.goa-checkbox--disabled,input[type=checkbox][disabled]:hover{cursor:default}.goa-checkbox--error .goa-checkbox-container,.goa-checkbox--error .goa-checkbox-container:hover{border:1px solid var(--goa-color-emergency-default);box-shadow:inset 0 0 0 1px var(--goa-color-emergency-default);background-color:var(--goa-color-greyscale-white)}.goa-checkbox--error .goa-checkbox-container svg{fill:var(--goa-color-emergency-default)}</style>',F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Jr,Xr,O,{name:0,checked:14,text:1,value:2,disabled:15,error:16,testid:3,arialabel:4,mt:5,mr:6,mb:7,ml:8},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["name","checked","text","value","disabled","error","testid","arialabel","mt","mr","mb","ml"]}get name(){return this.$$.ctx[0]}set name(e){this.$$set({name:e}),g()}get checked(){return this.$$.ctx[14]}set checked(e){this.$$set({checked:e}),g()}get text(){return this.$$.ctx[1]}set text(e){this.$$set({text:e}),g()}get value(){return this.$$.ctx[2]}set value(e){this.$$set({value:e}),g()}get disabled(){return this.$$.ctx[15]}set disabled(e){this.$$set({disabled:e}),g()}get error(){return this.$$.ctx[16]}set error(e){this.$$set({error:e}),g()}get testid(){return this.$$.ctx[3]}set testid(e){this.$$set({testid:e}),g()}get arialabel(){return this.$$.ctx[4]}set arialabel(e){this.$$set({arialabel:e}),g()}get mt(){return this.$$.ctx[5]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[6]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[7]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[8]}set ml(e){this.$$set({ml:e}),g()}}customElements.define("goa-checkbox",$r);function Vt(i){let e;return{c(){e=v("goa-icon"),M(e,"class","leading-icon"),M(e,"size","medium"),M(e,"type",i[4])},m(t,r){k(t,e,r)},p(t,r){r&16&&M(e,"type",t[4])},d(t){t&&H(e)}}}function St(i){let e,t,r;return{c(){e=v("goa-icon"),M(e,"class","delete-icon"),M(e,"size","medium"),M(e,"theme","filled"),M(e,"type","close-circle"),M(e,"fillcolor",t=i[10]?"var(--goa-color-emergency-default)":i[9]?"var(--goa-color-interactive-hover)":"var(--goa-color-greyscale-700)"),M(e,"opacity",r=i[10]?i[9]?1:.5:1)},m(n,o){k(n,e,o)},p(n,o){o&1536&&t!==(t=n[10]?"var(--goa-color-emergency-default)":n[9]?"var(--goa-color-interactive-hover)":"var(--goa-color-greyscale-700)")&&M(e,"fillcolor",t),o&1536&&r!==(r=n[10]?n[9]?1:.5:1)&&M(e,"opacity",r)},d(n){n&&H(e)}}}function en(i){let e,t,r,n,o,a,l,s,c=i[4]&&Vt(i),u=i[11]&&St(i);return{c(){e=v("div"),c&&c.c(),t=N(),r=v("div"),n=Z(i[5]),o=N(),u&&u.c(),this.c=C,d(r,"class","text"),d(e,"data-testid",i[7]),d(e,"class","chip"),d(e,"style",a=Y(i[0],i[1],i[2],i[3])),d(e,"tabindex","0"),B(e,"deletable",i[11]),B(e,"error",i[10]),B(e,"variant",i[6])},m(f,h){k(f,e,h),c&&c.m(e,null),m(e,t),m(e,r),m(r,n),m(e,o),u&&u.m(e,null),i[15](e),l||(s=[q(e,"click",i[16]),q(e,"mouseover",i[17]),q(e,"mouseout",i[18]),q(e,"focus",i[19]),q(e,"blur",i[20])],l=!0)},p(f,[h]){f[4]?c?c.p(f,h):(c=Vt(f),c.c(),c.m(e,t)):c&&(c.d(1),c=null),h&32&&W(n,f[5]),f[11]?u?u.p(f,h):(u=St(f),u.c(),u.m(e,null)):u&&(u.d(1),u=null),h&128&&d(e,"data-testid",f[7]),h&15&&a!==(a=Y(f[0],f[1],f[2],f[3]))&&d(e,"style",a),h&2048&&B(e,"deletable",f[11]),h&1024&&B(e,"error",f[10]),h&64&&B(e,"variant",f[6])},i:C,o:C,d(f){f&&H(e),c&&c.d(),u&&u.d(),i[15](null),l=!1,ae(s)}}}function tn(i,e,t){let{mt:r=null}=e,{mr:n=null}=e,{mb:o=null}=e,{ml:a=null}=e,{leadingicon:l=null}=e,{error:s="false"}=e,{deletable:c="false"}=e,{content:u}=e,{variant:f}=e,{testid:h=""}=e,y,b=!1,w,_;function p(I){y.dispatchEvent(new CustomEvent("_click",{composed:!0,bubbles:!0})),I.stopPropagation()}function z(I){U[I?"unshift":"push"](()=>{y=I,t(8,y)})}const D=I=>_&&p(I),E=()=>t(9,b=!0),x=()=>t(9,b=!1),T=()=>t(9,b=!1),L=()=>t(9,b=!1);return i.$$set=I=>{"mt"in I&&t(0,r=I.mt),"mr"in I&&t(1,n=I.mr),"mb"in I&&t(2,o=I.mb),"ml"in I&&t(3,a=I.ml),"leadingicon"in I&&t(4,l=I.leadingicon),"error"in I&&t(13,s=I.error),"deletable"in I&&t(14,c=I.deletable),"content"in I&&t(5,u=I.content),"variant"in I&&t(6,f=I.variant),"testid"in I&&t(7,h=I.testid)},i.$$.update=()=>{i.$$.dirty&8192&&t(10,w=K(s)),i.$$.dirty&16384&&t(11,_=K(c))},[r,n,o,a,l,u,f,h,y,b,w,_,p,s,c,z,D,E,x,T,L]}class rn extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>.leading-icon{margin-left:-0.25rem}.chip{vertical-align:middle;align-items:center;background-color:var(--goa-color-greyscale-white);border-radius:99px;border:1px solid #949494;box-sizing:border-box;color:var(--goa-color-text-default);display:inline-flex;flex-direction:row;font-size:var(--goa-font-size-3);font-weight:var(--goa-font-weight-regular);gap:0.25rem;height:2rem;justify-content:center;padding:0 0.75rem;cursor:default}.text{padding-bottom:var(--font-valign-fix, 0)}.chip:focus{outline:2px solid var(--goa-color-interactive-focus);background-color:var(--goa-color-greyscale-white)}.chip:hover{background-color:var(--goa-color-greyscale-200)}.deletable{cursor:pointer}.delete-icon{margin-right:-0.25rem}.error,.error:hover{background-color:var(--goa-color-emergency-light)}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},tn,en,O,{mt:0,mr:1,mb:2,ml:3,leadingicon:4,error:13,deletable:14,content:5,variant:6,testid:7},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["mt","mr","mb","ml","leadingicon","error","deletable","content","variant","testid"]}get mt(){return this.$$.ctx[0]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[1]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[2]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[3]}set ml(e){this.$$set({ml:e}),g()}get leadingicon(){return this.$$.ctx[4]}set leadingicon(e){this.$$set({leadingicon:e}),g()}get error(){return this.$$.ctx[13]}set error(e){this.$$set({error:e}),g()}get deletable(){return this.$$.ctx[14]}set deletable(e){this.$$set({deletable:e}),g()}get content(){return this.$$.ctx[5]}set content(e){this.$$set({content:e}),g()}get variant(){return this.$$.ctx[6]}set variant(e){this.$$set({variant:e}),g()}get testid(){return this.$$.ctx[7]}set testid(e){this.$$set({testid:e}),g()}}customElements.define("goa-chip",rn);function nn(i){const e=i-1;return e*e*e+1}function on(i){return Math.pow(i-1,3)*(1-i)+1}function De(i,{delay:e=0,duration:t=400,easing:r=Ve}={}){const n=+getComputedStyle(i).opacity;return{delay:e,duration:t,easing:r,css:o=>`opacity: ${o*n}`}}function Bt(i,{delay:e=0,duration:t=400,easing:r=nn,x:n=0,y:o=0,opacity:a=0}={}){const l=getComputedStyle(i),s=+l.opacity,c=l.transform==="none"?"":l.transform,u=s*(1-a);return{delay:e,duration:t,easing:r,css:(f,h)=>`
|
|
20
20
|
transform: ${c} translate(${(1-f)*n}px, ${(1-f)*o}px);
|
|
21
21
|
opacity: ${s-u*h}`}}function mt(i,e){let t=!1;function r(){if(!n())return;const l=a();t=!0,document.body.style.overflow="hidden",document.body.style.paddingRight=l+"px"}function n(){return document.body.style.overflow!=="hidden"}function o(){!t||(t=!1,setTimeout(()=>{document.body.style.overflow="",document.body.style.paddingRight="0"},200))}function a(){if(document.body.clientHeight<=document.documentElement.clientHeight)return 0;const l=document.createElement("div");l.style.visibility="hidden",l.style.overflow="scroll",document.body.appendChild(l);const s=document.createElement("div");l.appendChild(s);const c=l.offsetWidth-s.offsetWidth;return l.parentNode.removeChild(l),c}return e.enable&&r(),{update(){e.enable||o()},destroy(){o()}}}function Ot(i){let e,t,r,n;const o=[ln,an],a=[];function l(s,c){return s[3]?0:s[4]?1:-1}return~(e=l(i))&&(t=a[e]=o[e](i)),{c(){t&&t.c(),r=pe()},m(s,c){~e&&a[e].m(s,c),k(s,r,c),n=!0},p(s,c){let u=e;e=l(s),e===u?~e&&a[e].p(s,c):(t&&(Ae(),te(a[u],1,1,()=>{a[u]=null}),Te()),~e?(t=a[e],t?t.p(s,c):(t=a[e]=o[e](s),t.c()),X(t,1),t.m(r.parentNode,r)):t=null)},i(s){n||(X(t),n=!0)},o(s){te(t),n=!1},d(s){~e&&a[e].d(s),s&&H(r)}}}function an(i){let e,t,r,n,o=i[0]&&Zt(i);return{c(){e=v("div"),t=v("goa-spinner"),r=N(),o&&o.c(),M(t,"size",i[2]),M(t,"progress",i[1]),d(e,"class",n="spinner-"+i[2]),B(e,"inline",i[4])},m(a,l){k(a,e,l),m(e,t),m(e,r),o&&o.m(e,null)},p(a,l){l&4&&M(t,"size",a[2]),l&2&&M(t,"progress",a[1]),a[0]?o?o.p(a,l):(o=Zt(a),o.c(),o.m(e,null)):o&&(o.d(1),o=null),l&4&&n!==(n="spinner-"+a[2])&&d(e,"class",n),l&20&&B(e,"inline",a[4])},i:C,o:C,d(a){a&&H(e),o&&o.d()}}}function ln(i){let e,t,r,n,o,a,l,s=i[0]&&Pt(i);return{c(){e=v("div"),t=v("goa-spinner"),r=N(),s&&s.c(),M(t,"size",i[2]),M(t,"progress",i[1]),B(e,"fullscreen",i[3])},m(c,u){k(c,e,u),m(e,t),m(e,r),s&&s.m(e,null),o=!0,a||(l=ct(mt.call(null,e,{enable:!0})),a=!0)},p(c,u){(!o||u&4)&&M(t,"size",c[2]),(!o||u&2)&&M(t,"progress",c[1]),c[0]?s?s.p(c,u):(s=Pt(c),s.c(),s.m(e,null)):s&&(s.d(1),s=null),(!o||u&8)&&B(e,"fullscreen",c[3])},i(c){o||(ge(()=>{n||(n=et(e,De,{duration:300},!0)),n.run(1)}),o=!0)},o(c){n||(n=et(e,De,{duration:300},!1)),n.run(0),o=!1},d(c){c&&H(e),s&&s.d(),c&&n&&n.end(),a=!1,l()}}}function Zt(i){let e,t;return{c(){e=v("div"),t=Z(i[0]),d(e,"class","message")},m(r,n){k(r,e,n),m(e,t)},p(r,n){n&1&&W(t,r[0])},d(r){r&&H(e)}}}function Pt(i){let e,t;return{c(){e=v("div"),t=Z(i[0]),d(e,"class","message")},m(r,n){k(r,e,n),m(e,t)},p(r,n){n&1&&W(t,r[0])},d(r){r&&H(e)}}}function sn(i){let e,t,r=i[5]&&Ot(i);return{c(){r&&r.c(),e=pe(),this.c=C},m(n,o){r&&r.m(n,o),k(n,e,o),t=!0},p(n,[o]){n[5]?r?(r.p(n,o),o&32&&X(r,1)):(r=Ot(n),r.c(),X(r,1),r.m(e.parentNode,e)):r&&(Ae(),te(r,1,1,()=>{r=null}),Te())},i(n){t||(X(r),t=!0)},o(n){te(r),t=!1},d(n){r&&r.d(n),n&&H(e)}}}function cn(i,e,t){let r;const[n,o]=J("Circular progress variant",["fullscreen","inline"]),[a,l]=J("Button size",["small","large"]);let{variant:s="inline"}=e,{size:c="large"}=e,{message:u=""}=e,{progress:f=-1}=e,{visible:h="false"}=e,y,b,w;return Q(async()=>{o(s),l(c),t(2,y=c==="small"?"large":"xlarge"),t(3,b=s==="fullscreen"),t(4,w=s==="inline")}),i.$$set=_=>{"variant"in _&&t(6,s=_.variant),"size"in _&&t(7,c=_.size),"message"in _&&t(0,u=_.message),"progress"in _&&t(1,f=_.progress),"visible"in _&&t(8,h=_.visible)},i.$$.update=()=>{i.$$.dirty&256&&t(5,r=K(h))},[u,f,y,b,w,r,s,c,h]}class dn extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.fullscreen{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;flex-direction:column;background-color:rgba(255, 255, 255, 0.9)}.inline{margin:3.5rem;display:inline-flex;flex-direction:column;align-items:center;justify-content:center}.spinner-large .message{margin-top:1.5rem;font-size:1.2rem}.spinner-xlarge .message{margin-top:2rem;font-size:1.5rem}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},cn,sn,O,{variant:6,size:7,message:0,progress:1,visible:8},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["variant","size","message","progress","visible"]}get variant(){return this.$$.ctx[6]}set variant(e){this.$$set({variant:e}),g()}get size(){return this.$$.ctx[7]}set size(e){this.$$set({size:e}),g()}get message(){return this.$$.ctx[0]}set message(e){this.$$set({message:e}),g()}get progress(){return this.$$.ctx[1]}set progress(e){this.$$set({progress:e}),g()}get visible(){return this.$$.ctx[8]}set visible(e){this.$$set({visible:e}),g()}}customElements.define("goa-circular-progress",dn);function un(i){let e,t,r,n,o,a,l,s,c,u;return{c(){e=v("div"),t=v("header"),r=v("div"),r.innerHTML='<slot name="title"></slot>',n=N(),o=v("div"),o.innerHTML='<slot name="actions"></slot>',l=N(),s=v("div"),s.innerHTML="<slot></slot>",this.c=C,d(r,"class","title"),d(o,"class","actions"),d(t,"class",a="heading--"+i[1]),d(s,"class","content"),d(e,"data-testid",i[3]),d(e,"style",c=Y(i[4],i[5],i[6],i[7])),d(e,"class",u=`
|
|
22
22
|
goa-container
|
|
@@ -123,7 +123,7 @@ var __vite_style__=document.createElement("style");__vite_style__.innerHTML=`@im
|
|
|
123
123
|
`),B(e,"sticky",i[7])},m(a,l){k(a,e,l),m(e,t),m(e,r),m(e,n),i[9](e)},p(a,[l]){l&2&&d(e,"class",a[1]),l&61&&o!==(o=`
|
|
124
124
|
${a[0]?`width: ${a[0]};`:""}
|
|
125
125
|
${Y(a[2],a[3],a[4],a[5])}
|
|
126
|
-
`)&&d(e,"style",o),l&130&&B(e,"sticky",a[7])},i:C,o:C,d(a){a&&H(e),i[9](null)}}}function Jo(i,e,t){let r;const[n,o]=J("Table variant",["normal","relaxed"],!0);let{width:a=""}=e,{stickyheader:l="false"}=e,{variant:s="normal"}=e,{mt:c=null}=e,{mr:u=null}=e,{mb:f=null}=e,{ml:h=null}=e,y;Q(()=>{o(s),setTimeout(b,0);const _=y.querySelector("slot");if(!_||_.assignedElements().length===0)return;const p=_.assignedElements()[0].querySelectorAll("template table > *");y.append(...p.length>0?p:_.assignedElements())});async function b(){await ce();const _=y.querySelectorAll("goa-table-sort-header");_.forEach(p=>{p.addEventListener("click",()=>{const z=p.getAttribute("name");let D;_.forEach(E=>{if(E.getAttribute("name")===z){const T=E.getAttribute("direction")==="desc"?"asc":"desc";D=T==="asc"?1:-1,E.setAttribute("direction",T)}else E.setAttribute("direction","none")}),p.dispatchEvent(new CustomEvent("_sort",{composed:!0,bubbles:!1,cancelable:!0,detail:{sortBy:z,sortDir:D}}))})})}function w(_){U[_?"unshift":"push"](()=>{y=_,t(6,y)})}return i.$$set=_=>{"width"in _&&t(0,a=_.width),"stickyheader"in _&&t(8,l=_.stickyheader),"variant"in _&&t(1,s=_.variant),"mt"in _&&t(2,c=_.mt),"mr"in _&&t(3,u=_.mr),"mb"in _&&t(4,f=_.mb),"ml"in _&&t(5,h=_.ml)},i.$$.update=()=>{i.$$.dirty&256&&t(7,r=K(l))},[a,s,c,u,f,h,y,r,l,w]}class $o extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{overflow-x:auto}table{border-collapse:collapse}table.sticky{position:relative}table.sticky thead{position:sticky;top:0}td{font:var(--goa-typography-body-m);padding:0.75rem 1rem;border-bottom:1px solid var(--goa-color-greyscale-200)}table .goa-table-number-column{font:var(--goa-typography-number-m);text-align:right}table.relaxed td{padding:1rem}th{background-color:var(--goa-color-greyscale-white);color:var(--goa-color-text-secondary);padding:1rem;text-align:left;border-bottom:2px solid var(--goa-color-greyscale-
|
|
126
|
+
`)&&d(e,"style",o),l&130&&B(e,"sticky",a[7])},i:C,o:C,d(a){a&&H(e),i[9](null)}}}function Jo(i,e,t){let r;const[n,o]=J("Table variant",["normal","relaxed"],!0);let{width:a=""}=e,{stickyheader:l="false"}=e,{variant:s="normal"}=e,{mt:c=null}=e,{mr:u=null}=e,{mb:f=null}=e,{ml:h=null}=e,y;Q(()=>{o(s),setTimeout(b,0);const _=y.querySelector("slot");if(!_||_.assignedElements().length===0)return;const p=_.assignedElements()[0].querySelectorAll("template table > *");y.append(...p.length>0?p:_.assignedElements())});async function b(){await ce();const _=y.querySelectorAll("goa-table-sort-header");_.forEach(p=>{p.addEventListener("click",()=>{const z=p.getAttribute("name");let D;_.forEach(E=>{if(E.getAttribute("name")===z){const T=E.getAttribute("direction")==="desc"?"asc":"desc";D=T==="asc"?1:-1,E.setAttribute("direction",T)}else E.setAttribute("direction","none")}),p.dispatchEvent(new CustomEvent("_sort",{composed:!0,bubbles:!1,cancelable:!0,detail:{sortBy:z,sortDir:D}}))})})}function w(_){U[_?"unshift":"push"](()=>{y=_,t(6,y)})}return i.$$set=_=>{"width"in _&&t(0,a=_.width),"stickyheader"in _&&t(8,l=_.stickyheader),"variant"in _&&t(1,s=_.variant),"mt"in _&&t(2,c=_.mt),"mr"in _&&t(3,u=_.mr),"mb"in _&&t(4,f=_.mb),"ml"in _&&t(5,h=_.ml)},i.$$.update=()=>{i.$$.dirty&256&&t(7,r=K(l))},[a,s,c,u,f,h,y,r,l,w]}class $o extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{overflow-x:auto}table{border-collapse:collapse}table.sticky{position:relative}table.sticky thead{position:sticky;top:0}td{font:var(--goa-typography-body-m);padding:0.75rem 1rem;border-bottom:1px solid var(--goa-color-greyscale-200)}table .goa-table-number-column{font:var(--goa-typography-number-m);text-align:right}table.relaxed td{padding:1rem}th{background-color:var(--goa-color-greyscale-white);color:var(--goa-color-text-secondary);padding:1rem;text-align:left;border-bottom:2px solid var(--goa-color-greyscale-600);vertical-align:bottom}th:has(goa-table-sort-header){padding:0}tfoot td{background-color:var(--goa-color-greyscale-100)}tfoot tr:first-child td{border-top:2px solid var(--goa-color-greyscale-200)}tfoot tr:last-child td{border-bottom:none}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Jo,Xo,O,{width:0,stickyheader:8,variant:1,mt:2,mr:3,mb:4,ml:5},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["width","stickyheader","variant","mt","mr","mb","ml"]}get width(){return this.$$.ctx[0]}set width(e){this.$$set({width:e}),g()}get stickyheader(){return this.$$.ctx[8]}set stickyheader(e){this.$$set({stickyheader:e}),g()}get variant(){return this.$$.ctx[1]}set variant(e){this.$$set({variant:e}),g()}get mt(){return this.$$.ctx[2]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[3]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[4]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[5]}set ml(e){this.$$set({ml:e}),g()}}customElements.define("goa-table",$o);function ea(i){let e,t;return{c(){e=v("img"),d(e,"alt",i[0]),d(e,"class",i[0]),Ee(e.src,t="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgd2lkdGg9IjE2IgogICBoZWlnaHQ9IjIyIgogICB2aWV3Qm94PSIwIDAgMTYgMjIiCiAgIGZpbGw9Im5vbmUiCiAgIHZlcnNpb249IjEuMSIKICAgaWQ9InN2ZzEwNjgiCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGRlZnMKICAgICBpZD0iZGVmczEwNzIiIC8+CiAgPHBhdGgKICAgICBkPSJtIDAuNTk0Mzc0NzEsNy45MDkwOTkgNi41NTIxODc5OSw3LjY0NjI1IGMgMC4xMDU2MSwwLjEyMzE4IDAuMjM2NjIsMC4yMjIwNiAwLjM4NDA0LDAuMjg5ODUgMC4xNDc0MiwwLjA2Nzc5IDAuMzA3NzYsMC4xMDI4OSAwLjQ3MDAyLDAuMTAyODkgMC4xNjIyNiwwIDAuMzIyNiwtMC4wMzUxIDAuNDcwMDIsLTAuMTAyODkgMC4xNDc0MiwtMC4wNjc3OSAwLjI3ODQzLC0wLjE2NjY3IDAuMzg0MDQsLTAuMjg5ODUgbCA2LjU1MjE4MDMsLTcuNjQ2MjUgYyAwLjYyNTMsLTAuNzI5ODQgMC4xMDY5LC0xLjg1NzE4OCAtMC44NTQxLC0xLjg1NzE4OCBIIDEuNDQ2NTYyNyBjIC0wLjk2MDkzNzk5LDAgLTEuNDc5Mzc1NjksMS4xMjczNDggLTAuODUyMTg3OTksMS44NTcxODggeiIKICAgICBmaWxsPSIjMDA3MGM0IgogICAgIGlkPSJwYXRoMTA2NiIgLz4KPC9zdmc+Cg==")||d(e,"src",t)},m(r,n){k(r,e,n)},p(r,n){n&1&&d(e,"alt",r[0]),n&1&&d(e,"class",r[0])},d(r){r&&H(e)}}}function ta(i){let e,t;return{c(){e=v("img"),d(e,"alt","not sorted"),Ee(e.src,t="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMTUuMzU5ODg3IgogICBoZWlnaHQ9IjIxLjg0NDI1IgogICB2aWV3Qm94PSIwIDAgNC4wNjM5NzAxIDUuNzc5NjI0NCIKICAgdmVyc2lvbj0iMS4xIgogICBpZD0ic3ZnNTE3IgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzCiAgICAgaWQ9ImRlZnM1MTQiIC8+CiAgPGcKICAgICBpZD0ibGF5ZXIxIgogICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKC05LjM0NTE0MDMsLTguNzQ0OTg2NikiPgogICAgPHBhdGgKICAgICAgIGQ9Im0gOS40MTc3Njg0LDEyLjM5NzYzMSAxLjczMzU5ODYsMi4wMjMwNyBjIDAuMDI3OTQsMC4wMzI1OSAwLjA2MjYxLDAuMDU4NzUgMC4xMDE2MTEsMC4wNzY2OSAwLjAzOSwwLjAxNzk0IDAuMDgxNDMsMC4wMjcyMiAwLjEyNDM1OSwwLjAyNzIyIDAuMDQyOTMsMCAwLjA4NTM1LC0wLjAwOTMgMC4xMjQzNiwtMC4wMjcyMiAwLjAzOSwtMC4wMTc5NCAwLjA3MzY3LC0wLjA0NDEgMC4xMDE2MSwtMC4wNzY2OSBsIDEuNzMzNTk4LC0yLjAyMzA3IGMgMC4xNjU0NDQsLTAuMTkzMTA0IDAuMDI4MjgsLTAuNDkxMzgxIC0wLjIyNTk4MSwtMC40OTEzODEgSCA5LjY0MzI0MjQgYyAtMC4yNTQyNDgsMCAtMC4zOTE0MTgsMC4yOTgyNzcgLTAuMjI1NDc0LDAuNDkxMzgxIHoiCiAgICAgICBmaWxsPSIjYWRhZGFkIgogICAgICAgaWQ9InBhdGgzMzUiCiAgICAgICBzdHlsZT0ic3Ryb2tlLXdpZHRoOjAuMjY0NTgzIiAvPgogICAgPHBhdGgKICAgICAgIGQ9Ik0gMTMuMzM2NDk0LDEwLjg3MTk2OCAxMS42MDI4ODksOC44NDg4OTY2IGMgLTAuMDI3OTQsLTAuMDMyNTkgLTAuMDYyNjEsLTAuMDU4NzUgLTAuMTAxNjExLC0wLjA3NjY5IC0wLjAzOSwtMC4wMTc5NCAtMC4wODE0MywtMC4wMjcyMiAtMC4xMjQzNTksLTAuMDI3MjIgLTAuMDQyOTMsMCAtMC4wODUzNSwwLjAwOTMgLTAuMTI0MzYsMC4wMjcyMiAtMC4wMzkwMSwwLjAxNzk0IC0wLjA3MzY3LDAuMDQ0MSAtMC4xMDE2MTMsMC4wNzY2OSBMIDkuNDE3MzQ3MSwxMC44NzE5NjggYyAtMC4xNjU0NDcsMC4xOTMxMDMgLTAuMDI4MjgsMC40OTEzNzkgMC4yMjU5NzEsMC40OTEzNzkgaCAzLjQ2NzY5NzkgYyAwLjI1NDIzOCwwIDAuMzkxNDI1LC0wLjI5ODI3NiAwLjIyNTQ3OCwtMC40OTEzNzkgeiIKICAgICAgIGZpbGw9IiNhZGFkYWQiCiAgICAgICBpZD0icGF0aDIiCiAgICAgICBzdHlsZT0ic3Ryb2tlLXdpZHRoOjAuMjY0NTgzIiAvPgogIDwvZz4KPC9zdmc+Cg==")||d(e,"src",t)},m(r,n){k(r,e,n)},p:C,d(r){r&&H(e)}}}function ia(i){let e,t,r;function n(l,s){return l[0]==="none"?ta:ea}let o=n(i),a=o(i);return{c(){e=v("button"),t=v("slot"),r=N(),a.c(),this.c=C},m(l,s){k(l,e,s),m(e,t),m(e,r),a.m(e,null)},p(l,[s]){o===(o=n(l))&&a?a.p(l,s):(a.d(1),a=o(l),a&&(a.c(),a.m(e,null)))},i:C,o:C,d(l){l&&H(e),a.d()}}}function ra(i,e,t){let{direction:r="none"}=e;return i.$$set=n=>{"direction"in n&&t(0,r=n.direction)},[r]}class na extends P{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{display:flex;align-items:flex-end}button{border:none;background:none;display:flex;font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit;padding:1rem;width:100%;height:100%;text-align:left;gap:0.25rem;align-items:flex-end;justify-content:stretch}button *{align-self:flex-end}img{width:16px;height:22px;scale:0.7}button:hover{background-color:var(--goa-color-greyscale-100);cursor:pointer;color:var(--goa-color-interactive-default)}img.asc{transform:rotate(180deg)}</style>",F(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},ra,ia,O,{direction:0},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["direction"]}get direction(){return this.$$.ctx[0]}set direction(e){this.$$set({direction:e}),g()}}customElements.define("goa-table-sort-header",na);function oa(i){let e,t,r,n,o,a,l;return{c(){e=v("div"),t=v("textarea"),n=N(),this.c=C,d(t,"name",i[0]),d(t,"placeholder",i[2]),t.value=i[1],d(t,"rows",i[3]),d(t,"aria-label",r=i[6]||i[0]),d(t,"class","goa-textarea"),t.disabled=i[12],t.readOnly=i[13],d(t,"data-testid",i[4]),B(t,"error",i[14]),d(e,"class","container"),d(e,"style",o=`
|
|
127
127
|
${Y(i[7],i[8],i[9],i[10])};
|
|
128
128
|
--width: ${i[5]};
|
|
129
129
|
`)},m(s,c){k(s,e,c),m(e,t),m(e,n),a||(l=q(t,"keyup",i[15]),a=!0)},p(s,[c]){c&1&&d(t,"name",s[0]),c&4&&d(t,"placeholder",s[2]),c&2&&(t.value=s[1]),c&8&&d(t,"rows",s[3]),c&65&&r!==(r=s[6]||s[0])&&d(t,"aria-label",r),c&4096&&(t.disabled=s[12]),c&8192&&(t.readOnly=s[13]),c&16&&d(t,"data-testid",s[4]),c&16384&&B(t,"error",s[14]),c&1952&&o!==(o=`
|