@abgov/web-components 1.0.0-alpha.31 → 1.0.0-alpha.32

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/web-components",
3
- "version": "1.0.0-alpha.31",
3
+ "version": "1.0.0-alpha.32",
4
4
  "description": "Government of Alberta - UI Web components",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -6677,6 +6677,7 @@ function create_fragment$6(ctx) {
6677
6677
  let t1;
6678
6678
  let span;
6679
6679
  let slot;
6680
+ let t2_value = (/*label*/ ctx[1] || /*value*/ ctx[0]) + "";
6680
6681
  let t2;
6681
6682
  let mounted;
6682
6683
  let dispose;
@@ -6690,7 +6691,7 @@ function create_fragment$6(ctx) {
6690
6691
  t1 = space();
6691
6692
  span = element("span");
6692
6693
  slot = element("slot");
6693
- t2 = text(/*label*/ ctx[1]);
6694
+ t2 = text(t2_value);
6694
6695
  this.c = noop;
6695
6696
  attr(input, "type", "radio");
6696
6697
  attr(input, "data-testid", "radio-input");
@@ -6736,7 +6737,7 @@ function create_fragment$6(ctx) {
6736
6737
  input.disabled = /*disabled*/ ctx[3];
6737
6738
  }
6738
6739
 
6739
- if (dirty & /*label*/ 2) set_data(t2, /*label*/ ctx[1]);
6740
+ if (dirty & /*label, value*/ 3 && t2_value !== (t2_value = (/*label*/ ctx[1] || /*value*/ ctx[0]) + "")) set_data(t2, t2_value);
6740
6741
 
6741
6742
  if (dirty & /*disabled*/ 8) {
6742
6743
  toggle_class(label_1, "goa-radio--disabled", /*disabled*/ ctx[3]);
@@ -6810,7 +6811,7 @@ function instance$6($$self, $$props, $$invalidate) {
6810
6811
  class RadioItem extends SvelteElement {
6811
6812
  constructor(options) {
6812
6813
  super();
6813
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}label.goa-radio{--goa-border-color:var(--color-gray-600);--goa-border-color--checked:var(--goa-color-interactive--active);--goa-radio-color--error:var(--goa-color-status-emergency);--goa-radio-outline-color:var(--goa-color-interactive--highlight);--goa-radio-outline-width:3px;--goa-radio-diameter:1.5rem;--goa-radio-border-width:1px;--goa-radio-border-width--checked:7px;box-sizing:border-box;display:inline-flex;align-items:center;min-height:3rem}.goa-radio:hover{cursor:pointer}.goa-radio *,.goa-radio *:before,.goa-radio *:after{box-sizing:border-box}.goa-radio input[type="radio"]{display:none}.goa-radio-label{padding:0.5rem;font-weight:var(--fw-regular)}.goa-radio-icon{display:inline-block;height:var(--goa-radio-diameter);width:var(--goa-radio-diameter);border-radius:50%;background-color:#fff;transition:box-shadow 100ms ease-in-out}.goa-radio:focus>input:not(:disabled)~.goa-radio-icon{box-shadow:0 0 0 var(--goa-radio-outline-width) var(--goa-radio-outline-color)}.goa-radio--disabled:hover{cursor:default}input[type="radio"]:checked~.goa-radio-icon{border:var(--goa-radio-border-width--checked) solid var(--goa-border-color--checked)}input[type="radio"]:not(:checked)~.goa-radio-icon{border:var(--goa-radio-border-width) solid var(--goa-border-color)}input[type="radio"]:disabled~.goa-radio-icon{border:var(--goa-radio-border-width) solid var(--goa-border-color);opacity:0.3}input[type="radio"]:disabled:checked~.goa-radio-icon{border:var(--goa-radio-border-width--checked) solid var(--goa-border-color--checked);opacity:0.3}.goa-radio--error input[type="radio"]:checked~.goa-radio-icon{border:7px solid var(--goa-radio-color--error)}.goa-radio--error input[type="radio"]:not(:checked)~.goa-radio-icon{border:2px solid var(--goa-radio-color--error)}</style>`;
6814
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}label.goa-radio{--goa-radio-outline-width:3px;--goa-radio-diameter:1.5rem;--goa-radio-border-width:1px;--goa-radio-border-width--checked:7px;box-sizing:border-box;display:inline-flex;align-items:center;min-height:3rem}.goa-radio:hover{cursor:pointer}.goa-radio *,.goa-radio *:before,.goa-radio *:after{box-sizing:border-box}.goa-radio input[type="radio"]{width:0;height:0}.goa-radio input[type="radio"]:focus~.goa-radio-icon{box-shadow:0 0 0 var(--goa-radio-outline-width) var(--goa-color-interactive--highlight)}.goa-radio-label{padding:0.5rem;font-weight:var(--fw-regular)}.goa-radio-icon{display:inline-block;height:var(--goa-radio-diameter);width:var(--goa-radio-diameter);border-radius:50%;background-color:#fff;transition:box-shadow 100ms ease-in-out}.goa-radio:focus>input:not(:disabled)~.goa-radio-icon{box-shadow:0 0 0 var(--goa-radio-outline-width) var(--goa-color-interactive--highlight)}.goa-radio--disabled:hover{cursor:default}input[type="radio"]:checked~.goa-radio-icon{border:var(--goa-radio-border-width--checked) solid var(--goa-color-interactive--active)}input[type="radio"]:not(:checked)~.goa-radio-icon{border:var(--goa-radio-border-width) solid var(--color-gray-600)}input[type="radio"]:disabled~.goa-radio-icon{border:var(--goa-radio-border-width) solid var(--color-gray-600);opacity:0.4}input[type="radio"]:disabled:checked~.goa-radio-icon{border:var(--goa-radio-border-width--checked) solid var(--goa-color-interactive--active);opacity:0.3}.goa-radio--error input[type="radio"]:checked~.goa-radio-icon{border:7px solid var(--goa-color-status-emergency)}.goa-radio--error input[type="radio"]:not(:checked)~.goa-radio-icon{border:2px solid var(--goa-color-status-emergency)}</style>`;
6814
6815
 
6815
6816
  init(
6816
6817
  this,
@@ -12,7 +12,7 @@
12
12
  type--${b[0]}
13
13
  `)&&d(e,"class",l),m&3137&&D(e,"error",b[11])},i:_,o:_,d(b){b&&x(e),u&&u.d(),i[21](null),f&&f.d(),g&&g.d(),s=!1,c()}}}function vr(){this.dispatchEvent(new CustomEvent("_trailingIconClick",{composed:!0}))}function yr(i,e,t){let r,o,n,a,l,{type:s="text"}=e,{name:c=""}=e,{value:u=""}=e,{placeholder:f=""}=e,{leadingicon:g=null}=e,{trailingicon:b=null}=e,{variant:m="goa"}=e,{disabled:p="false"}=e,{handletrailingiconclick:E="false"}=e,{focused:z="false"}=e,{readonly:C="false"}=e,{error:R="false"}=e,{testid:V=""}=e,{width:q="100%"}=e,P;function ge(M){M.target.dispatchEvent(new CustomEvent("_change",{composed:!0,bubbles:!1,cancelable:!0,detail:{name:c,value:M.target.value}})),M.stopPropagation()}function re(M){de[M?"unshift":"push"](()=>{P=M,t(9,P)})}return i.$$set=M=>{"type"in M&&t(0,s=M.type),"name"in M&&t(1,c=M.name),"value"in M&&t(2,u=M.value),"placeholder"in M&&t(3,f=M.placeholder),"leadingicon"in M&&t(4,g=M.leadingicon),"trailingicon"in M&&t(5,b=M.trailingicon),"variant"in M&&t(6,m=M.variant),"disabled"in M&&t(15,p=M.disabled),"handletrailingiconclick"in M&&t(16,E=M.handletrailingiconclick),"focused"in M&&t(17,z=M.focused),"readonly"in M&&t(18,C=M.readonly),"error"in M&&t(19,R=M.error),"testid"in M&&t(7,V=M.testid),"width"in M&&t(8,q=M.width)},i.$$.update=()=>{i.$$.dirty&65536&&t(13,r=O(E)),i.$$.dirty&131072&&t(20,o=O(z)),i.$$.dirty&262144&&t(12,n=O(C)),i.$$.dirty&524288&&t(11,a=O(R)),i.$$.dirty&32768&&t(10,l=O(p)),i.$$.dirty&1049088&&o&&P&&setTimeout(()=>P.focus(),1)},[s,c,u,f,g,b,m,V,q,P,l,a,n,r,ge,p,E,z,C,R,o,re]}class Pt extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-input,.goa-input *{box-sizing:border-box}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:3px;background:white;color:var(--color-black, #ccc);padding:var(--input-padding, 0.5rem) 0.5rem;display:inline-flex;align-items:center}.goa-input:hover{border-color:var(--goa-color-interactive--hover)}.goa-input:active,.goa-input:focus,.goa-input:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--highlight)}.goa-input:disabled{border-color:var(--color-gray-500)}.goa-input:disabled:hover{border-color:var(--color-gray-500)}.goa-input:disabled:focus{box-shadow:none}.goa-input input[readonly]{cursor:pointer}.goa-input.type--range{border:none}.goa-input.type--range:active,.goa-input.type--range:focus,.goa-input.type--range:focus-within{box-shadow:none}.goa-input-leading-icon{line-height:18px}.goa-input-trailing-icon{display:flex;align-items:center}.goa-input-trailing-icon>.goa-icon-button{margin-right:-0.5rem}input{display:block;width:100%;font-size:var(--input-font-size)}.goa-input-leading-icon+input{padding-left:0.5rem}input,input:focus,input:hover,input:active{outline:none;border:none}.goa-input--disabled{opacity:0.5;cursor:default;border-color:var(--color-black)}.goa-input--disabled:hover,.goa-input--disabled:active,.goa-input--disabled:focus{border-color:var(--color-black);cursor:default;box-shadow:none}.goa-input--disabled input:hover{cursor:default !important}input.input--goa{display:block;border:none;flex:1 1 auto}.variant--bare{border:none}.variant--bare:focus,.variant--bare:active,.variant--bare:focus-within{box-shadow:none}.goa-state--error .goa-input{border:2px solid var(--goa-color-status-emergency)}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-status-emergency-dark)}</style>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},yr,br,H,{type:0,name:1,value:2,placeholder:3,leadingicon:4,trailingicon:5,variant:6,disabled:15,handletrailingiconclick:16,focused:17,readonly:18,error:19,testid:7,width:8},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["type","name","value","placeholder","leadingicon","trailingicon","variant","disabled","handletrailingiconclick","focused","readonly","error","testid","width"]}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),h()}get name(){return this.$$.ctx[1]}set name(e){this.$$set({name:e}),h()}get value(){return this.$$.ctx[2]}set value(e){this.$$set({value:e}),h()}get placeholder(){return this.$$.ctx[3]}set placeholder(e){this.$$set({placeholder:e}),h()}get leadingicon(){return this.$$.ctx[4]}set leadingicon(e){this.$$set({leadingicon:e}),h()}get trailingicon(){return this.$$.ctx[5]}set trailingicon(e){this.$$set({trailingicon:e}),h()}get variant(){return this.$$.ctx[6]}set variant(e){this.$$set({variant:e}),h()}get disabled(){return this.$$.ctx[15]}set disabled(e){this.$$set({disabled:e}),h()}get handletrailingiconclick(){return this.$$.ctx[16]}set handletrailingiconclick(e){this.$$set({handletrailingiconclick:e}),h()}get focused(){return this.$$.ctx[17]}set focused(e){this.$$set({focused:e}),h()}get readonly(){return this.$$.ctx[18]}set readonly(e){this.$$set({readonly:e}),h()}get error(){return this.$$.ctx[19]}set error(e){this.$$set({error:e}),h()}get testid(){return this.$$.ctx[7]}set testid(e){this.$$set({testid:e}),h()}get width(){return this.$$.ctx[8]}set width(e){this.$$set({width:e}),h()}}customElements.define("goa-input",Pt);function pr(i){const e=i-1;return e*e*e+1}function _r(i){return Math.pow(i-1,3)*(1-i)+1}function fe(i,{delay:e=0,duration:t=400,easing:r=he}={}){const o=+getComputedStyle(i).opacity;return{delay:e,duration:t,easing:r,css:n=>`opacity: ${n*o}`}}function Nt(i,{delay:e=0,duration:t=400,easing:r=pr,x:o=0,y:n=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,g)=>`
14
14
  transform: ${c} translate(${(1-f)*o}px, ${(1-f)*n}px);
15
- opacity: ${s-u*g}`}}function Ft(i,e){function t(){const n=o();document.body.style.overflow="hidden",document.body.style.paddingRight=n+"px"}function r(){setTimeout(()=>{document.body.style.overflow="",document.body.style.paddingRight="0"},500)}function o(){if(document.body.clientHeight<=document.documentElement.clientHeight)return 0;const n=document.createElement("div");n.style.visibility="hidden",n.style.overflow="scroll",document.body.appendChild(n);const a=document.createElement("div");n.appendChild(a);const l=n.offsetWidth-a.offsetWidth;return n.parentNode.removeChild(n),l}return e.enable&&t(),{update(){e.enable?t():r()},destroy(){r()}}}function qt(i){let e,t,r,o,n,a,l,s,c,u,f,g,b,m,p,E,z,C,R,V,q=i[0]&&Wt(i),P=i[4]&&Vt(i);function ge(B,L){return B[5]?kr:wr}let re=ge(i),M=re(i);return{c(){e=y("div"),t=y("div"),r=A(),o=y("div"),q&&q.c(),n=A(),P&&P.c(),a=A(),l=y("div"),M.c(),s=A(),c=y("slot"),u=A(),f=y("div"),f.innerHTML='<slot name="actions"></slot>',d(t,"data-testid","modal-overlay"),d(t,"class","modal-overlay"),d(l,"data-testid","modal-content"),d(l,"class","modal-content"),d(f,"data-testid","modal-actions"),d(f,"class","modal-actions"),d(o,"class","modal-pane"),d(e,"data-testid","modal"),d(e,"class","modal"),d(e,"style",m="--scroll-offset: "+i[3]+"px; "+(i[1]&&`--width: ${i[1]};`)+";")},m(B,L){w(B,e,L),v(e,t),v(e,r),v(e,o),q&&q.m(o,null),v(o,n),P&&P.m(o,null),v(o,a),v(o,l),M.m(l,null),v(l,s),v(l,c),v(o,u),v(o,f),C=!0,R||(V=[U(t,"click",i[6]),Je(p=Ft.call(null,e,{enable:i[2]}))],R=!0)},p(B,L){B[0]?q?q.p(B,L):(q=Wt(B),q.c(),q.m(o,n)):q&&(q.d(1),q=null),B[4]?P?P.p(B,L):(P=Vt(B),P.c(),P.m(o,a)):P&&(P.d(1),P=null),re!==(re=ge(B))&&(M.d(1),M=re(B),M&&(M.c(),M.m(l,s))),(!C||L&10&&m!==(m="--scroll-offset: "+B[3]+"px; "+(B[1]&&`--width: ${B[1]};`)+";"))&&d(e,"style",m),p&&oe(p.update)&&L&4&&p.update.call(null,{enable:B[2]})},i(B){C||(J(()=>{b&&b.end(1),g=ot(o,Nt,{duration:200,y:200}),g.start()}),J(()=>{z&&z.end(1),E=ot(e,fe,{duration:200}),E.start()}),C=!0)},o(B){g&&g.invalidate(),b=at(o,Nt,{delay:200,duration:200,y:-100}),E&&E.invalidate(),z=at(e,fe,{delay:200,duration:200}),C=!1},d(B){B&&x(e),q&&q.d(),P&&P.d(),M.d(),B&&b&&b.end(),B&&z&&z.end(),R=!1,Q(V)}}}function Wt(i){let e,t;return{c(){e=y("div"),t=F(i[0]),d(e,"data-testid","modal-title"),d(e,"class","modal-title")},m(r,o){w(r,e,o),v(e,t)},p(r,o){o&1&&Z(t,r[0])},d(r){r&&x(e)}}}function Vt(i){let e,t,r,o;return{c(){e=y("div"),t=y("goa-icon-button"),k(t,"testid","modal-close-button"),k(t,"type","close"),d(e,"class","modal-close")},m(n,a){w(n,e,a),v(e,t),r||(o=U(t,"click",i[6]),r=!0)},p:_,d(n){n&&x(e),r=!1,o()}}}function wr(i){let e;return{c(){e=y("div"),e.innerHTML="<slot></slot>",S(e,"margin","1.75rem")},m(t,r){w(t,e,r)},d(t){t&&x(e)}}}function kr(i){let e;return{c(){e=y("goa-scrollable"),e.innerHTML="<slot></slot>",k(e,"direction","vertical"),k(e,"height","50"),k(e,"hpadding","1.75")},m(t,r){w(t,e,r)},d(t){t&&x(e)}}}function xr(i){let e,t,r=i[2]&&qt(i);return{c(){r&&r.c(),e=ce(),this.c=_},m(o,n){r&&r.m(o,n),w(o,e,n),t=!0},p(o,[n]){o[2]?r?(r.p(o,n),n&4&&N(r,1)):(r=qt(o),r.c(),N(r,1),r.m(e.parentNode,e)):r&&(pe(),W(r,1,1,()=>{r=null}),_e())},i(o){t||(N(r),t=!0)},o(o){W(r),t=!1},d(o){r&&r.d(o),o&&x(e)}}}function zr(i,e,t){let r,o,n,{title:a}=e,{closable:l}=e,{scrollable:s}=e,{open:c}=e,{width:u}=e,f=0;function g(b){!r||(b.target.dispatchEvent(new CustomEvent("_close",{composed:!0})),b.stopPropagation())}return i.$$set=b=>{"title"in b&&t(0,a=b.title),"closable"in b&&t(7,l=b.closable),"scrollable"in b&&t(8,s=b.scrollable),"open"in b&&t(9,c=b.open),"width"in b&&t(1,u=b.width)},i.$$.update=()=>{i.$$.dirty&128&&t(4,r=O(l)),i.$$.dirty&256&&t(5,o=O(s)),i.$$.dirty&512&&t(2,n=O(c)),i.$$.dirty&4&&n&&t(3,f=window.pageYOffset)},[a,u,n,f,r,o,g,l,s,c]}class Zt extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}.modal{font-family:var(--font-family);position:absolute;top:var(--scroll-offset, 0);left:0;display:flex;align-items:center;justify-content:center;height:100vh;width:100%;z-index:100}.modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.2);z-index:1000}.modal-pane{position:relative;background-color:#fff;z-index:1001;width:var(--width, 60ch);margin:1rem;box-shadow:var(--shadow-2);border-radius:4px;max-height:90%}@media(min-width: 640px){.modal-pane{max-height:80%}}.modal-actions{text-align:right;padding:0 1.75rem;margin:1.75rem 0;flex:1 1 auto}.modal-close{position:absolute;top:1rem;right:1rem}.modal-title{font-size:var(--fs-xl);padding-bottom:1rem;padding:0 1.75rem;margin:1.75rem 0;margin-right:40px;flex:0 0 auto}</style>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},zr,xr,H,{title:0,closable:7,scrollable:8,open:9,width:1},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["title","closable","scrollable","open","width"]}get title(){return this.$$.ctx[0]}set title(e){this.$$set({title:e}),h()}get closable(){return this.$$.ctx[7]}set closable(e){this.$$set({closable:e}),h()}get scrollable(){return this.$$.ctx[8]}set scrollable(e){this.$$set({scrollable:e}),h()}get open(){return this.$$.ctx[9]}set open(e){this.$$set({open:e}),h()}get width(){return this.$$.ctx[1]}set width(e){this.$$set({width:e}),h()}}customElements.define("goa-modal",Zt);function Ut(i){let e,t,r,o,n,a,l,s,c,u,f,g,b;return{c(){e=y("div"),t=y("div"),r=y("goa-icon"),o=A(),n=y("div"),n.innerHTML="<slot></slot>",a=A(),l=y("div"),s=y("goa-icon-button"),k(r,"type",i[2]),k(r,"inverted",""),d(t,"class","icon"),d(n,"class","content"),k(s,"type","close"),k(s,"inverted",""),d(l,"class","close"),d(e,"class",c="notification "+i[0])},m(m,p){w(m,e,p),v(e,t),v(t,r),v(e,o),v(e,n),v(e,a),v(e,l),v(l,s),f=!0,g||(b=U(s,"click",i[3]),g=!0)},p(m,p){(!f||p&4)&&k(r,"type",m[2]),(!f||p&1&&c!==(c="notification "+m[0]))&&d(e,"class",c)},i(m){f||(J(()=>{u||(u=Te(e,fe,{},!0)),u.run(1)}),f=!0)},o(m){u||(u=Te(e,fe,{},!1)),u.run(0),f=!1},d(m){m&&x(e),m&&u&&u.end(),g=!1,b()}}}function Er(i){let e,t,r=i[1]&&Ut(i);return{c(){r&&r.c(),e=ce(),this.c=_},m(o,n){r&&r.m(o,n),w(o,e,n),t=!0},p(o,[n]){o[1]?r?(r.p(o,n),n&2&&N(r,1)):(r=Ut(o),r.c(),N(r,1),r.m(e.parentNode,e)):r&&(pe(),W(r,1,1,()=>{r=null}),_e())},i(o){t||(N(r),t=!0)},o(o){W(r),t=!1},d(o){r&&r.d(o),o&&x(e)}}}function Cr(i,e,t){let r,{type:o}=e,n=!0;function a(){t(1,n=!1)}return i.$$set=l=>{"type"in l&&t(0,o=l.type)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=o==="emergency"?"warning":o==="caution"?"alert-circle":o==="information"?"information-circle":"calendar")},[o,n,r,a]}class Xt extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}.notification{padding:1.5rem;display:flex;align-items:center;gap:1rem;border-radius:3px}.emergency{background-color:var(--goa-color-status-emergency);color:var(--color-white)}.caution{background-color:var(--goa-color-status-warning)}.information{background-color:var(--goa-color-status-info);color:var(--color-white)}.event{background-color:var(--goa-color-status-success);color:var(--color-white)}.icon{flex:0 0 auto;align-self:flex-start}.content{flex:1 1 auto}.close{flex:0 0 auto;align-self:flex-start}</style>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Cr,Er,H,{type:0},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["type"]}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),h()}}customElements.define("goa-notification",Xt);function Ar(i){let e;return{c(){e=y("div"),e.innerHTML="<slot></slot>",this.c=_,d(e,"class","layout")},m(t,r){w(t,e,r)},p:_,i:_,o:_,d(t){t&&x(e)}}}class Jt extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>@media(min-width: 768px){}.layout{max-width:768px;margin:0 auto;padding:2rem}</style>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,Ar,H,{},null),e&&e.target&&w(e.target,this,e.anchor)}}customElements.define("goa-page-layout",Jt);function Kt(i){let e,t,r,o;const n=[Lr,Mr],a=[];function l(s,c){return s[5]?0:1}return e=l(i),t=a[e]=n[e](i),{c(){t.c(),r=ce()},m(s,c){a[e].m(s,c),w(s,r,c),o=!0},p(s,c){let u=e;e=l(s),e===u?a[e].p(s,c):(pe(),W(a[u],1,1,()=>{a[u]=null}),_e(),t=a[e],t?t.p(s,c):(t=a[e]=n[e](s),t.c()),N(t,1),t.m(r.parentNode,r))},i(s){o||(N(t),o=!0)},o(s){W(t),o=!1},d(s){a[e].d(s),s&&x(r)}}}function Mr(i){let e,t,r,o,n=i[1]&&Yt(i);return{c(){e=y("div"),t=y("goa-spinner"),o=A(),n&&n.c(),k(t,"type",i[0]),k(t,"size","xlarge"),k(t,"progress",r=i[2]||0),D(e,"inline",i[4])},m(a,l){w(a,e,l),v(e,t),v(e,o),n&&n.m(e,null)},p(a,l){l&1&&k(t,"type",a[0]),l&4&&r!==(r=a[2]||0)&&k(t,"progress",r),a[1]?n?n.p(a,l):(n=Yt(a),n.c(),n.m(e,null)):n&&(n.d(1),n=null),l&16&&D(e,"inline",a[4])},i:_,o:_,d(a){a&&x(e),n&&n.d()}}}function Lr(i){let e,t,r,o,n,a,l,s,c=i[1]&&Qt(i);return{c(){e=y("div"),t=y("goa-spinner"),o=A(),c&&c.c(),k(t,"type",i[0]),k(t,"size","xlarge"),k(t,"progress",r=i[2]||0),D(e,"fullscreen",i[5])},m(u,f){w(u,e,f),v(e,t),v(e,o),c&&c.m(e,null),a=!0,l||(s=Je(Ft.call(null,e,{enable:!0})),l=!0)},p(u,f){(!a||f&1)&&k(t,"type",u[0]),(!a||f&4&&r!==(r=u[2]||0))&&k(t,"progress",r),u[1]?c?c.p(u,f):(c=Qt(u),c.c(),c.m(e,null)):c&&(c.d(1),c=null),f&32&&D(e,"fullscreen",u[5])},i(u){a||(J(()=>{n||(n=Te(e,fe,{duration:300},!0)),n.run(1)}),a=!0)},o(u){n||(n=Te(e,fe,{duration:300},!1)),n.run(0),a=!1},d(u){u&&x(e),c&&c.d(),u&&n&&n.end(),l=!1,s()}}}function Yt(i){let e,t;return{c(){e=y("div"),t=F(i[1]),d(e,"class","message")},m(r,o){w(r,e,o),v(e,t)},p(r,o){o&2&&Z(t,r[1])},d(r){r&&x(e)}}}function Qt(i){let e,t;return{c(){e=y("div"),t=F(i[1]),d(e,"class","message")},m(r,o){w(r,e,o),v(e,t)},p(r,o){o&2&&Z(t,r[1])},d(r){r&&x(e)}}}function Rr(i){let e,t,r=i[3]&&Kt(i);return{c(){r&&r.c(),e=ce(),this.c=_},m(o,n){r&&r.m(o,n),w(o,e,n),t=!0},p(o,[n]){o[3]?r?(r.p(o,n),n&8&&N(r,1)):(r=Kt(o),r.c(),N(r,1),r.m(e.parentNode,e)):r&&(pe(),W(r,1,1,()=>{r=null}),_e())},i(o){t||(N(r),t=!0)},o(o){W(r),t=!1},d(o){r&&r.d(o),o&&x(e)}}}function Tr(i,e,t){let r,o,n,a,{type:l="infinite"}=e,{message:s}=e,{progress:c=0}=e,{visible:u}=e,{variant:f="inline"}=e;return i.$$set=g=>{"type"in g&&t(0,l=g.type),"message"in g&&t(1,s=g.message),"progress"in g&&t(2,c=g.progress),"visible"in g&&t(6,u=g.visible),"variant"in g&&t(7,f=g.variant)},i.$$.update=()=>{i.$$.dirty&192&&t(8,r=O(u)||f==="inline"),i.$$.dirty&128&&t(5,o=f==="fullscreen"),i.$$.dirty&128&&t(4,n=f==="inline"),i.$$.dirty&257&&t(3,a=l&&r)},[l,s,c,a,n,o,u,f,r]}class $t extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}.fullscreen{position:fixed;top:0;left:0;right:0;bottom: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:flex;flex-direction:column;align-items:center;justify-content:center}.message{margin-top:1rem;font-size:1.2rem}</style>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Tr,Rr,H,{type:0,message:1,progress:2,visible:6,variant:7},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["type","message","progress","visible","variant"]}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),h()}get message(){return this.$$.ctx[1]}set message(e){this.$$set({message:e}),h()}get progress(){return this.$$.ctx[2]}set progress(e){this.$$set({progress:e}),h()}get visible(){return this.$$.ctx[6]}set visible(e){this.$$set({visible:e}),h()}get variant(){return this.$$.ctx[7]}set variant(e){this.$$set({variant:e}),h()}}customElements.define("goa-page-loader",$t);const we=Ne({});function Hr(i){let e,t,r,o;return{c(){e=y("div"),t=y("div"),r=y("slot"),this.c=_,d(t,"class",o=`goa-radio-group--${i[0]}`),d(t,"data-testid",i[1])},m(n,a){w(n,e,a),v(e,t),v(t,r),i[9](t)},p(n,[a]){a&1&&o!==(o=`goa-radio-group--${n[0]}`)&&d(t,"class",o),a&2&&d(t,"data-testid",n[1])},i:_,o:_,d(n){n&&x(e),i[9](null)}}}function Ir(i,e,t){let r,{name:o}=e,{value:n}=e,{orientation:a="vertical"}=e,{disabled:l}=e,{error:s}=e,{testid:c}=e,u,f,g;Ge(()=>{we.update(m=>Object.assign(Object.assign({},m),{[o]:{tag:o,payload:{value:n,disabled:r,error:u}}})),g=we.subscribe(m=>{const p=m[o].payload;p.value!==n&&(t(3,n=p.value),f.dispatchEvent(new CustomEvent("_change",{composed:!0,detail:{name:o,value:p.value}})))})}),Oe(g);function b(m){de[m?"unshift":"push"](()=>{f=m,t(2,f)})}return i.$$set=m=>{"name"in m&&t(4,o=m.name),"value"in m&&t(3,n=m.value),"orientation"in m&&t(0,a=m.orientation),"disabled"in m&&t(5,l=m.disabled),"error"in m&&t(6,s=m.error),"testid"in m&&t(1,c=m.testid)},i.$$.update=()=>{i.$$.dirty&32&&t(8,r=O(l)),i.$$.dirty&472&&(t(7,u=O(s)),we.update(m=>Object.assign(Object.assign({},m),{[o]:{tag:o,payload:{value:n,disabled:r,error:u}}})))},[a,c,f,n,o,l,s,u,r,b]}class ei extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-radio-group--horizontal{display:flex;flex-direction:row}.goa-radio-group--vertical{display:inline-flex;flex-direction:column}</style>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Ir,Hr,H,{name:4,value:3,orientation:0,disabled:5,error:6,testid:1},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["name","value","orientation","disabled","error","testid"]}get name(){return this.$$.ctx[4]}set name(e){this.$$set({name:e}),h()}get value(){return this.$$.ctx[3]}set value(e){this.$$set({value:e}),h()}get orientation(){return this.$$.ctx[0]}set orientation(e){this.$$set({orientation:e}),h()}get disabled(){return this.$$.ctx[5]}set disabled(e){this.$$set({disabled:e}),h()}get error(){return this.$$.ctx[6]}set error(e){this.$$set({error:e}),h()}get testid(){return this.$$.ctx[1]}set testid(e){this.$$set({testid:e}),h()}}customElements.define("goa-radio-group",ei);function jr(i){let e,t,r,o,n,a,l,s,c,u;return{c(){e=y("label"),t=y("input"),r=A(),o=y("div"),n=A(),a=y("span"),l=y("slot"),s=F(i[1]),this.c=_,d(t,"type","radio"),d(t,"data-testid","radio-input"),d(t,"name",i[2]),t.value=i[0],t.checked=i[4],t.disabled=i[3],d(o,"class","goa-radio-icon"),d(a,"class","goa-radio-label"),d(e,"class","goa-radio"),D(e,"goa-radio--disabled",i[3]),D(e,"goa-radio--error",i[5])},m(f,g){w(f,e,g),v(e,t),v(e,r),v(e,o),v(e,n),v(e,a),v(a,l),v(l,s),c||(u=U(t,"change",i[6]),c=!0)},p(f,[g]){g&4&&d(t,"name",f[2]),g&1&&(t.value=f[0]),g&16&&(t.checked=f[4]),g&8&&(t.disabled=f[3]),g&2&&Z(s,f[1]),g&8&&D(e,"goa-radio--disabled",f[3]),g&32&&D(e,"goa-radio--error",f[5])},i:_,o:_,d(f){f&&x(e),c=!1,u()}}}function Gr(i,e,t){let{value:r}=e,{label:o}=e,{name:n}=e,a=!1,l=!1,s=!1,c;Ge(()=>{c=we.subscribe(f=>{const g=f[n];(g==null?void 0:g.tag)===n&&(t(4,l=g.payload.value===r),t(3,a=g.payload.disabled),t(5,s=g.payload.error))})}),Oe(c);function u(f){t(4,l=!l),l&&we.update(g=>Object.assign(Object.assign({},g),{[n]:{tag:n,payload:{disabled:a,value:r}}}))}return i.$$set=f=>{"value"in f&&t(0,r=f.value),"label"in f&&t(1,o=f.label),"name"in f&&t(2,n=f.name)},[r,o,n,a,l,s,u]}class ti extends I{constructor(e){super();this.shadowRoot.innerHTML='<style>:host{box-sizing:border-box;font-family:var(--font-family)}label.goa-radio{--goa-border-color:var(--color-gray-600);--goa-border-color--checked:var(--goa-color-interactive--active);--goa-radio-color--error:var(--goa-color-status-emergency);--goa-radio-outline-color:var(--goa-color-interactive--highlight);--goa-radio-outline-width:3px;--goa-radio-diameter:1.5rem;--goa-radio-border-width:1px;--goa-radio-border-width--checked:7px;box-sizing:border-box;display:inline-flex;align-items:center;min-height:3rem}.goa-radio:hover{cursor:pointer}.goa-radio *,.goa-radio *:before,.goa-radio *:after{box-sizing:border-box}.goa-radio input[type="radio"]{display:none}.goa-radio-label{padding:0.5rem;font-weight:var(--fw-regular)}.goa-radio-icon{display:inline-block;height:var(--goa-radio-diameter);width:var(--goa-radio-diameter);border-radius:50%;background-color:#fff;transition:box-shadow 100ms ease-in-out}.goa-radio:focus>input:not(:disabled)~.goa-radio-icon{box-shadow:0 0 0 var(--goa-radio-outline-width) var(--goa-radio-outline-color)}.goa-radio--disabled:hover{cursor:default}input[type="radio"]:checked~.goa-radio-icon{border:var(--goa-radio-border-width--checked) solid var(--goa-border-color--checked)}input[type="radio"]:not(:checked)~.goa-radio-icon{border:var(--goa-radio-border-width) solid var(--goa-border-color)}input[type="radio"]:disabled~.goa-radio-icon{border:var(--goa-radio-border-width) solid var(--goa-border-color);opacity:0.3}input[type="radio"]:disabled:checked~.goa-radio-icon{border:var(--goa-radio-border-width--checked) solid var(--goa-border-color--checked);opacity:0.3}.goa-radio--error input[type="radio"]:checked~.goa-radio-icon{border:7px solid var(--goa-radio-color--error)}.goa-radio--error input[type="radio"]:not(:checked)~.goa-radio-icon{border:2px solid var(--goa-radio-color--error)}</style>',G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Gr,jr,H,{value:0,label:1,name:2},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["value","label","name"]}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),h()}get label(){return this.$$.ctx[1]}set label(e){this.$$set({label:e}),h()}get name(){return this.$$.ctx[2]}set name(e){this.$$set({name:e}),h()}}customElements.define("goa-radio-item",ti);function Or(i){let e,t,r;return{c(){e=y("div"),t=y("slot"),this.c=_,d(e,"class","goa-scrollable"),d(e,"style",r=`
15
+ opacity: ${s-u*g}`}}function Ft(i,e){function t(){const n=o();document.body.style.overflow="hidden",document.body.style.paddingRight=n+"px"}function r(){setTimeout(()=>{document.body.style.overflow="",document.body.style.paddingRight="0"},500)}function o(){if(document.body.clientHeight<=document.documentElement.clientHeight)return 0;const n=document.createElement("div");n.style.visibility="hidden",n.style.overflow="scroll",document.body.appendChild(n);const a=document.createElement("div");n.appendChild(a);const l=n.offsetWidth-a.offsetWidth;return n.parentNode.removeChild(n),l}return e.enable&&t(),{update(){e.enable?t():r()},destroy(){r()}}}function qt(i){let e,t,r,o,n,a,l,s,c,u,f,g,b,m,p,E,z,C,R,V,q=i[0]&&Wt(i),P=i[4]&&Vt(i);function ge(B,L){return B[5]?kr:wr}let re=ge(i),M=re(i);return{c(){e=y("div"),t=y("div"),r=A(),o=y("div"),q&&q.c(),n=A(),P&&P.c(),a=A(),l=y("div"),M.c(),s=A(),c=y("slot"),u=A(),f=y("div"),f.innerHTML='<slot name="actions"></slot>',d(t,"data-testid","modal-overlay"),d(t,"class","modal-overlay"),d(l,"data-testid","modal-content"),d(l,"class","modal-content"),d(f,"data-testid","modal-actions"),d(f,"class","modal-actions"),d(o,"class","modal-pane"),d(e,"data-testid","modal"),d(e,"class","modal"),d(e,"style",m="--scroll-offset: "+i[3]+"px; "+(i[1]&&`--width: ${i[1]};`)+";")},m(B,L){w(B,e,L),v(e,t),v(e,r),v(e,o),q&&q.m(o,null),v(o,n),P&&P.m(o,null),v(o,a),v(o,l),M.m(l,null),v(l,s),v(l,c),v(o,u),v(o,f),C=!0,R||(V=[U(t,"click",i[6]),Je(p=Ft.call(null,e,{enable:i[2]}))],R=!0)},p(B,L){B[0]?q?q.p(B,L):(q=Wt(B),q.c(),q.m(o,n)):q&&(q.d(1),q=null),B[4]?P?P.p(B,L):(P=Vt(B),P.c(),P.m(o,a)):P&&(P.d(1),P=null),re!==(re=ge(B))&&(M.d(1),M=re(B),M&&(M.c(),M.m(l,s))),(!C||L&10&&m!==(m="--scroll-offset: "+B[3]+"px; "+(B[1]&&`--width: ${B[1]};`)+";"))&&d(e,"style",m),p&&oe(p.update)&&L&4&&p.update.call(null,{enable:B[2]})},i(B){C||(J(()=>{b&&b.end(1),g=ot(o,Nt,{duration:200,y:200}),g.start()}),J(()=>{z&&z.end(1),E=ot(e,fe,{duration:200}),E.start()}),C=!0)},o(B){g&&g.invalidate(),b=at(o,Nt,{delay:200,duration:200,y:-100}),E&&E.invalidate(),z=at(e,fe,{delay:200,duration:200}),C=!1},d(B){B&&x(e),q&&q.d(),P&&P.d(),M.d(),B&&b&&b.end(),B&&z&&z.end(),R=!1,Q(V)}}}function Wt(i){let e,t;return{c(){e=y("div"),t=F(i[0]),d(e,"data-testid","modal-title"),d(e,"class","modal-title")},m(r,o){w(r,e,o),v(e,t)},p(r,o){o&1&&Z(t,r[0])},d(r){r&&x(e)}}}function Vt(i){let e,t,r,o;return{c(){e=y("div"),t=y("goa-icon-button"),k(t,"testid","modal-close-button"),k(t,"type","close"),d(e,"class","modal-close")},m(n,a){w(n,e,a),v(e,t),r||(o=U(t,"click",i[6]),r=!0)},p:_,d(n){n&&x(e),r=!1,o()}}}function wr(i){let e;return{c(){e=y("div"),e.innerHTML="<slot></slot>",S(e,"margin","1.75rem")},m(t,r){w(t,e,r)},d(t){t&&x(e)}}}function kr(i){let e;return{c(){e=y("goa-scrollable"),e.innerHTML="<slot></slot>",k(e,"direction","vertical"),k(e,"height","50"),k(e,"hpadding","1.75")},m(t,r){w(t,e,r)},d(t){t&&x(e)}}}function xr(i){let e,t,r=i[2]&&qt(i);return{c(){r&&r.c(),e=ce(),this.c=_},m(o,n){r&&r.m(o,n),w(o,e,n),t=!0},p(o,[n]){o[2]?r?(r.p(o,n),n&4&&N(r,1)):(r=qt(o),r.c(),N(r,1),r.m(e.parentNode,e)):r&&(pe(),W(r,1,1,()=>{r=null}),_e())},i(o){t||(N(r),t=!0)},o(o){W(r),t=!1},d(o){r&&r.d(o),o&&x(e)}}}function zr(i,e,t){let r,o,n,{title:a}=e,{closable:l}=e,{scrollable:s}=e,{open:c}=e,{width:u}=e,f=0;function g(b){!r||(b.target.dispatchEvent(new CustomEvent("_close",{composed:!0})),b.stopPropagation())}return i.$$set=b=>{"title"in b&&t(0,a=b.title),"closable"in b&&t(7,l=b.closable),"scrollable"in b&&t(8,s=b.scrollable),"open"in b&&t(9,c=b.open),"width"in b&&t(1,u=b.width)},i.$$.update=()=>{i.$$.dirty&128&&t(4,r=O(l)),i.$$.dirty&256&&t(5,o=O(s)),i.$$.dirty&512&&t(2,n=O(c)),i.$$.dirty&4&&n&&t(3,f=window.pageYOffset)},[a,u,n,f,r,o,g,l,s,c]}class Zt extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}.modal{font-family:var(--font-family);position:absolute;top:var(--scroll-offset, 0);left:0;display:flex;align-items:center;justify-content:center;height:100vh;width:100%;z-index:100}.modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.2);z-index:1000}.modal-pane{position:relative;background-color:#fff;z-index:1001;width:var(--width, 60ch);margin:1rem;box-shadow:var(--shadow-2);border-radius:4px;max-height:90%}@media(min-width: 640px){.modal-pane{max-height:80%}}.modal-actions{text-align:right;padding:0 1.75rem;margin:1.75rem 0;flex:1 1 auto}.modal-close{position:absolute;top:1rem;right:1rem}.modal-title{font-size:var(--fs-xl);padding-bottom:1rem;padding:0 1.75rem;margin:1.75rem 0;margin-right:40px;flex:0 0 auto}</style>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},zr,xr,H,{title:0,closable:7,scrollable:8,open:9,width:1},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["title","closable","scrollable","open","width"]}get title(){return this.$$.ctx[0]}set title(e){this.$$set({title:e}),h()}get closable(){return this.$$.ctx[7]}set closable(e){this.$$set({closable:e}),h()}get scrollable(){return this.$$.ctx[8]}set scrollable(e){this.$$set({scrollable:e}),h()}get open(){return this.$$.ctx[9]}set open(e){this.$$set({open:e}),h()}get width(){return this.$$.ctx[1]}set width(e){this.$$set({width:e}),h()}}customElements.define("goa-modal",Zt);function Ut(i){let e,t,r,o,n,a,l,s,c,u,f,g,b;return{c(){e=y("div"),t=y("div"),r=y("goa-icon"),o=A(),n=y("div"),n.innerHTML="<slot></slot>",a=A(),l=y("div"),s=y("goa-icon-button"),k(r,"type",i[2]),k(r,"inverted",""),d(t,"class","icon"),d(n,"class","content"),k(s,"type","close"),k(s,"inverted",""),d(l,"class","close"),d(e,"class",c="notification "+i[0])},m(m,p){w(m,e,p),v(e,t),v(t,r),v(e,o),v(e,n),v(e,a),v(e,l),v(l,s),f=!0,g||(b=U(s,"click",i[3]),g=!0)},p(m,p){(!f||p&4)&&k(r,"type",m[2]),(!f||p&1&&c!==(c="notification "+m[0]))&&d(e,"class",c)},i(m){f||(J(()=>{u||(u=Te(e,fe,{},!0)),u.run(1)}),f=!0)},o(m){u||(u=Te(e,fe,{},!1)),u.run(0),f=!1},d(m){m&&x(e),m&&u&&u.end(),g=!1,b()}}}function Er(i){let e,t,r=i[1]&&Ut(i);return{c(){r&&r.c(),e=ce(),this.c=_},m(o,n){r&&r.m(o,n),w(o,e,n),t=!0},p(o,[n]){o[1]?r?(r.p(o,n),n&2&&N(r,1)):(r=Ut(o),r.c(),N(r,1),r.m(e.parentNode,e)):r&&(pe(),W(r,1,1,()=>{r=null}),_e())},i(o){t||(N(r),t=!0)},o(o){W(r),t=!1},d(o){r&&r.d(o),o&&x(e)}}}function Cr(i,e,t){let r,{type:o}=e,n=!0;function a(){t(1,n=!1)}return i.$$set=l=>{"type"in l&&t(0,o=l.type)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=o==="emergency"?"warning":o==="caution"?"alert-circle":o==="information"?"information-circle":"calendar")},[o,n,r,a]}class Xt extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}.notification{padding:1.5rem;display:flex;align-items:center;gap:1rem;border-radius:3px}.emergency{background-color:var(--goa-color-status-emergency);color:var(--color-white)}.caution{background-color:var(--goa-color-status-warning)}.information{background-color:var(--goa-color-status-info);color:var(--color-white)}.event{background-color:var(--goa-color-status-success);color:var(--color-white)}.icon{flex:0 0 auto;align-self:flex-start}.content{flex:1 1 auto}.close{flex:0 0 auto;align-self:flex-start}</style>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Cr,Er,H,{type:0},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["type"]}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),h()}}customElements.define("goa-notification",Xt);function Ar(i){let e;return{c(){e=y("div"),e.innerHTML="<slot></slot>",this.c=_,d(e,"class","layout")},m(t,r){w(t,e,r)},p:_,i:_,o:_,d(t){t&&x(e)}}}class Jt extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>@media(min-width: 768px){}.layout{max-width:768px;margin:0 auto;padding:2rem}</style>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,Ar,H,{},null),e&&e.target&&w(e.target,this,e.anchor)}}customElements.define("goa-page-layout",Jt);function Kt(i){let e,t,r,o;const n=[Lr,Mr],a=[];function l(s,c){return s[5]?0:1}return e=l(i),t=a[e]=n[e](i),{c(){t.c(),r=ce()},m(s,c){a[e].m(s,c),w(s,r,c),o=!0},p(s,c){let u=e;e=l(s),e===u?a[e].p(s,c):(pe(),W(a[u],1,1,()=>{a[u]=null}),_e(),t=a[e],t?t.p(s,c):(t=a[e]=n[e](s),t.c()),N(t,1),t.m(r.parentNode,r))},i(s){o||(N(t),o=!0)},o(s){W(t),o=!1},d(s){a[e].d(s),s&&x(r)}}}function Mr(i){let e,t,r,o,n=i[1]&&Yt(i);return{c(){e=y("div"),t=y("goa-spinner"),o=A(),n&&n.c(),k(t,"type",i[0]),k(t,"size","xlarge"),k(t,"progress",r=i[2]||0),D(e,"inline",i[4])},m(a,l){w(a,e,l),v(e,t),v(e,o),n&&n.m(e,null)},p(a,l){l&1&&k(t,"type",a[0]),l&4&&r!==(r=a[2]||0)&&k(t,"progress",r),a[1]?n?n.p(a,l):(n=Yt(a),n.c(),n.m(e,null)):n&&(n.d(1),n=null),l&16&&D(e,"inline",a[4])},i:_,o:_,d(a){a&&x(e),n&&n.d()}}}function Lr(i){let e,t,r,o,n,a,l,s,c=i[1]&&Qt(i);return{c(){e=y("div"),t=y("goa-spinner"),o=A(),c&&c.c(),k(t,"type",i[0]),k(t,"size","xlarge"),k(t,"progress",r=i[2]||0),D(e,"fullscreen",i[5])},m(u,f){w(u,e,f),v(e,t),v(e,o),c&&c.m(e,null),a=!0,l||(s=Je(Ft.call(null,e,{enable:!0})),l=!0)},p(u,f){(!a||f&1)&&k(t,"type",u[0]),(!a||f&4&&r!==(r=u[2]||0))&&k(t,"progress",r),u[1]?c?c.p(u,f):(c=Qt(u),c.c(),c.m(e,null)):c&&(c.d(1),c=null),f&32&&D(e,"fullscreen",u[5])},i(u){a||(J(()=>{n||(n=Te(e,fe,{duration:300},!0)),n.run(1)}),a=!0)},o(u){n||(n=Te(e,fe,{duration:300},!1)),n.run(0),a=!1},d(u){u&&x(e),c&&c.d(),u&&n&&n.end(),l=!1,s()}}}function Yt(i){let e,t;return{c(){e=y("div"),t=F(i[1]),d(e,"class","message")},m(r,o){w(r,e,o),v(e,t)},p(r,o){o&2&&Z(t,r[1])},d(r){r&&x(e)}}}function Qt(i){let e,t;return{c(){e=y("div"),t=F(i[1]),d(e,"class","message")},m(r,o){w(r,e,o),v(e,t)},p(r,o){o&2&&Z(t,r[1])},d(r){r&&x(e)}}}function Rr(i){let e,t,r=i[3]&&Kt(i);return{c(){r&&r.c(),e=ce(),this.c=_},m(o,n){r&&r.m(o,n),w(o,e,n),t=!0},p(o,[n]){o[3]?r?(r.p(o,n),n&8&&N(r,1)):(r=Kt(o),r.c(),N(r,1),r.m(e.parentNode,e)):r&&(pe(),W(r,1,1,()=>{r=null}),_e())},i(o){t||(N(r),t=!0)},o(o){W(r),t=!1},d(o){r&&r.d(o),o&&x(e)}}}function Tr(i,e,t){let r,o,n,a,{type:l="infinite"}=e,{message:s}=e,{progress:c=0}=e,{visible:u}=e,{variant:f="inline"}=e;return i.$$set=g=>{"type"in g&&t(0,l=g.type),"message"in g&&t(1,s=g.message),"progress"in g&&t(2,c=g.progress),"visible"in g&&t(6,u=g.visible),"variant"in g&&t(7,f=g.variant)},i.$$.update=()=>{i.$$.dirty&192&&t(8,r=O(u)||f==="inline"),i.$$.dirty&128&&t(5,o=f==="fullscreen"),i.$$.dirty&128&&t(4,n=f==="inline"),i.$$.dirty&257&&t(3,a=l&&r)},[l,s,c,a,n,o,u,f,r]}class $t extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}.fullscreen{position:fixed;top:0;left:0;right:0;bottom: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:flex;flex-direction:column;align-items:center;justify-content:center}.message{margin-top:1rem;font-size:1.2rem}</style>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Tr,Rr,H,{type:0,message:1,progress:2,visible:6,variant:7},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["type","message","progress","visible","variant"]}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),h()}get message(){return this.$$.ctx[1]}set message(e){this.$$set({message:e}),h()}get progress(){return this.$$.ctx[2]}set progress(e){this.$$set({progress:e}),h()}get visible(){return this.$$.ctx[6]}set visible(e){this.$$set({visible:e}),h()}get variant(){return this.$$.ctx[7]}set variant(e){this.$$set({variant:e}),h()}}customElements.define("goa-page-loader",$t);const we=Ne({});function Hr(i){let e,t,r,o;return{c(){e=y("div"),t=y("div"),r=y("slot"),this.c=_,d(t,"class",o=`goa-radio-group--${i[0]}`),d(t,"data-testid",i[1])},m(n,a){w(n,e,a),v(e,t),v(t,r),i[9](t)},p(n,[a]){a&1&&o!==(o=`goa-radio-group--${n[0]}`)&&d(t,"class",o),a&2&&d(t,"data-testid",n[1])},i:_,o:_,d(n){n&&x(e),i[9](null)}}}function Ir(i,e,t){let r,{name:o}=e,{value:n}=e,{orientation:a="vertical"}=e,{disabled:l}=e,{error:s}=e,{testid:c}=e,u,f,g;Ge(()=>{we.update(m=>Object.assign(Object.assign({},m),{[o]:{tag:o,payload:{value:n,disabled:r,error:u}}})),g=we.subscribe(m=>{const p=m[o].payload;p.value!==n&&(t(3,n=p.value),f.dispatchEvent(new CustomEvent("_change",{composed:!0,detail:{name:o,value:p.value}})))})}),Oe(g);function b(m){de[m?"unshift":"push"](()=>{f=m,t(2,f)})}return i.$$set=m=>{"name"in m&&t(4,o=m.name),"value"in m&&t(3,n=m.value),"orientation"in m&&t(0,a=m.orientation),"disabled"in m&&t(5,l=m.disabled),"error"in m&&t(6,s=m.error),"testid"in m&&t(1,c=m.testid)},i.$$.update=()=>{i.$$.dirty&32&&t(8,r=O(l)),i.$$.dirty&472&&(t(7,u=O(s)),we.update(m=>Object.assign(Object.assign({},m),{[o]:{tag:o,payload:{value:n,disabled:r,error:u}}})))},[a,c,f,n,o,l,s,u,r,b]}class ei extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-radio-group--horizontal{display:flex;flex-direction:row}.goa-radio-group--vertical{display:inline-flex;flex-direction:column}</style>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Ir,Hr,H,{name:4,value:3,orientation:0,disabled:5,error:6,testid:1},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["name","value","orientation","disabled","error","testid"]}get name(){return this.$$.ctx[4]}set name(e){this.$$set({name:e}),h()}get value(){return this.$$.ctx[3]}set value(e){this.$$set({value:e}),h()}get orientation(){return this.$$.ctx[0]}set orientation(e){this.$$set({orientation:e}),h()}get disabled(){return this.$$.ctx[5]}set disabled(e){this.$$set({disabled:e}),h()}get error(){return this.$$.ctx[6]}set error(e){this.$$set({error:e}),h()}get testid(){return this.$$.ctx[1]}set testid(e){this.$$set({testid:e}),h()}}customElements.define("goa-radio-group",ei);function jr(i){let e,t,r,o,n,a,l,s=(i[1]||i[0])+"",c,u,f;return{c(){e=y("label"),t=y("input"),r=A(),o=y("div"),n=A(),a=y("span"),l=y("slot"),c=F(s),this.c=_,d(t,"type","radio"),d(t,"data-testid","radio-input"),d(t,"name",i[2]),t.value=i[0],t.checked=i[4],t.disabled=i[3],d(o,"class","goa-radio-icon"),d(a,"class","goa-radio-label"),d(e,"class","goa-radio"),D(e,"goa-radio--disabled",i[3]),D(e,"goa-radio--error",i[5])},m(g,b){w(g,e,b),v(e,t),v(e,r),v(e,o),v(e,n),v(e,a),v(a,l),v(l,c),u||(f=U(t,"change",i[6]),u=!0)},p(g,[b]){b&4&&d(t,"name",g[2]),b&1&&(t.value=g[0]),b&16&&(t.checked=g[4]),b&8&&(t.disabled=g[3]),b&3&&s!==(s=(g[1]||g[0])+"")&&Z(c,s),b&8&&D(e,"goa-radio--disabled",g[3]),b&32&&D(e,"goa-radio--error",g[5])},i:_,o:_,d(g){g&&x(e),u=!1,f()}}}function Gr(i,e,t){let{value:r}=e,{label:o}=e,{name:n}=e,a=!1,l=!1,s=!1,c;Ge(()=>{c=we.subscribe(f=>{const g=f[n];(g==null?void 0:g.tag)===n&&(t(4,l=g.payload.value===r),t(3,a=g.payload.disabled),t(5,s=g.payload.error))})}),Oe(c);function u(f){t(4,l=!l),l&&we.update(g=>Object.assign(Object.assign({},g),{[n]:{tag:n,payload:{disabled:a,value:r}}}))}return i.$$set=f=>{"value"in f&&t(0,r=f.value),"label"in f&&t(1,o=f.label),"name"in f&&t(2,n=f.name)},[r,o,n,a,l,s,u]}class ti extends I{constructor(e){super();this.shadowRoot.innerHTML='<style>:host{box-sizing:border-box;font-family:var(--font-family)}label.goa-radio{--goa-radio-outline-width:3px;--goa-radio-diameter:1.5rem;--goa-radio-border-width:1px;--goa-radio-border-width--checked:7px;box-sizing:border-box;display:inline-flex;align-items:center;min-height:3rem}.goa-radio:hover{cursor:pointer}.goa-radio *,.goa-radio *:before,.goa-radio *:after{box-sizing:border-box}.goa-radio input[type="radio"]{width:0;height:0}.goa-radio input[type="radio"]:focus~.goa-radio-icon{box-shadow:0 0 0 var(--goa-radio-outline-width) var(--goa-color-interactive--highlight)}.goa-radio-label{padding:0.5rem;font-weight:var(--fw-regular)}.goa-radio-icon{display:inline-block;height:var(--goa-radio-diameter);width:var(--goa-radio-diameter);border-radius:50%;background-color:#fff;transition:box-shadow 100ms ease-in-out}.goa-radio:focus>input:not(:disabled)~.goa-radio-icon{box-shadow:0 0 0 var(--goa-radio-outline-width) var(--goa-color-interactive--highlight)}.goa-radio--disabled:hover{cursor:default}input[type="radio"]:checked~.goa-radio-icon{border:var(--goa-radio-border-width--checked) solid var(--goa-color-interactive--active)}input[type="radio"]:not(:checked)~.goa-radio-icon{border:var(--goa-radio-border-width) solid var(--color-gray-600)}input[type="radio"]:disabled~.goa-radio-icon{border:var(--goa-radio-border-width) solid var(--color-gray-600);opacity:0.4}input[type="radio"]:disabled:checked~.goa-radio-icon{border:var(--goa-radio-border-width--checked) solid var(--goa-color-interactive--active);opacity:0.3}.goa-radio--error input[type="radio"]:checked~.goa-radio-icon{border:7px solid var(--goa-color-status-emergency)}.goa-radio--error input[type="radio"]:not(:checked)~.goa-radio-icon{border:2px solid var(--goa-color-status-emergency)}</style>',G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Gr,jr,H,{value:0,label:1,name:2},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["value","label","name"]}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),h()}get label(){return this.$$.ctx[1]}set label(e){this.$$set({label:e}),h()}get name(){return this.$$.ctx[2]}set name(e){this.$$set({name:e}),h()}}customElements.define("goa-radio-item",ti);function Or(i){let e,t,r;return{c(){e=y("div"),t=y("slot"),this.c=_,d(e,"class","goa-scrollable"),d(e,"style",r=`
16
16
  --max-height: ${i[3]};
17
17
  overflow-y: ${i[0]==="vertical"?"auto":"hidden"};
18
18
  overflow-x: ${i[0]==="horizontal"?"auto":"hidden"};