@abgov/web-components 1.0.0-alpha.57 → 1.0.0-alpha.58

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.57",
3
+ "version": "1.0.0-alpha.58",
4
4
  "description": "Government of Alberta - UI Web components",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -7003,7 +7003,7 @@ function create_if_block_3(ctx) {
7003
7003
  };
7004
7004
  }
7005
7005
 
7006
- // (42:2) {#if level !== "live"}
7006
+ // (42:2) {#if ["alpha", "beta"].includes(level)}
7007
7007
  function create_if_block_1$2(ctx) {
7008
7008
  let div0;
7009
7009
  let t0_value = capitalize(/*level*/ ctx[0]) + "";
@@ -7072,7 +7072,7 @@ function create_if_block_1$2(ctx) {
7072
7072
  };
7073
7073
  }
7074
7074
 
7075
- // (49:6) {#if feedbackurl}
7075
+ // (52:6) {#if feedbackurl}
7076
7076
  function create_if_block_2(ctx) {
7077
7077
  let span;
7078
7078
  let t0;
@@ -7105,7 +7105,7 @@ function create_if_block_2(ctx) {
7105
7105
  };
7106
7106
  }
7107
7107
 
7108
- // (57:2) {#if version}
7108
+ // (60:2) {#if version}
7109
7109
  function create_if_block$3(ctx) {
7110
7110
  let div;
7111
7111
  let t;
@@ -7133,11 +7133,12 @@ function create_if_block$3(ctx) {
7133
7133
  function create_fragment$4(ctx) {
7134
7134
  let header;
7135
7135
  let t0;
7136
+ let show_if = ["alpha", "beta"].includes(/*level*/ ctx[0]);
7136
7137
  let t1;
7137
7138
  let div;
7138
7139
  let t2;
7139
7140
  let if_block0 = /*level*/ ctx[0] === "live" && create_if_block_3();
7140
- let if_block1 = /*level*/ ctx[0] !== "live" && create_if_block_1$2(ctx);
7141
+ let if_block1 = show_if && create_if_block_1$2(ctx);
7141
7142
  let if_block2 = /*version*/ ctx[1] && create_if_block$3(ctx);
7142
7143
 
7143
7144
  return {
@@ -7176,7 +7177,9 @@ function create_fragment$4(ctx) {
7176
7177
  if_block0 = null;
7177
7178
  }
7178
7179
 
7179
- if (/*level*/ ctx[0] !== "live") {
7180
+ if (dirty & /*level*/ 1) show_if = ["alpha", "beta"].includes(/*level*/ ctx[0]);
7181
+
7182
+ if (show_if) {
7180
7183
  if (if_block1) {
7181
7184
  if_block1.p(ctx, dirty);
7182
7185
  } else {
@@ -29,4 +29,4 @@
29
29
  padding: 0 ${o[1]}rem;
30
30
  `)&&d(e,"style",r)},i:p,o:p,d(o){o&&E(e)}}}function Wr(t,e,i){let{direction:r="vertical"}=e,{hpadding:o=0}=e,{vpadding:n=0}=e,{height:a=0}=e;return t.$$set=l=>{"direction"in l&&i(0,r=l.direction),"hpadding"in l&&i(1,o=l.hpadding),"vpadding"in l&&i(2,n=l.vpadding),"height"in l&&i(3,a=l.height)},[r,o,n,a]}class li extends D{constructor(e){super();this.shadowRoot.innerHTML="<style>.goa-scrollable{scroll-behavior:smooth;max-height:calc(100vh * var(--max-height, 100) / 100)}.goa-scrollable::-webkit-scrollbar{width:6px}.goa-scrollable::-webkit-scrollbar-track{background:#f1f1f1}.goa-scrollable::-webkit-scrollbar-thumb{background:#888}.goa-scrollable::-webkit-scrollbar-thumb:hover{background:#555}</style>",j(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},Wr,qr,G,{direction:0,hpadding:1,vpadding:2,height:3},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["direction","hpadding","vpadding","height"]}get direction(){return this.$$.ctx[0]}set direction(e){this.$$set({direction:e}),h()}get hpadding(){return this.$$.ctx[1]}set hpadding(e){this.$$set({hpadding:e}),h()}get vpadding(){return this.$$.ctx[2]}set vpadding(e){this.$$set({vpadding:e}),h()}get height(){return this.$$.ctx[3]}set height(e){this.$$set({height:e}),h()}}customElements.define("goa-scrollable",li);function si(t){let e,i,r;return{c(){e=_("div"),e.innerHTML='<svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 26C20.1797 26 26 20.1797 26 13C26 5.8203 20.1797 0 13 0C5.8203 0 0 5.8203 0 13C0 20.1797 5.8203 26 13 26Z" fill="#00AAD2"></path><path d="M16.9764 17.7174C15.942 17.3358 14.9325 16.8896 13.9539 16.3817C14.8446 16.0551 15.7131 15.6708 16.5539 15.2312C16.6398 16.0688 16.7831 16.8995 16.9829 17.7174H16.9764ZM22.5339 7.42143C22.1016 7.36618 22.3259 7.56931 22.2089 8.13968C21.863 9.3075 21.2806 10.3917 20.4978 11.3248C19.7151 12.258 18.7487 13.0201 17.6589 13.5639C17.3972 10.9368 17.5336 8.28529 18.0635 5.69893C18.5104 4.07393 19.0385 4.3778 18.3885 4.03818C17.6946 3.68068 16.9471 4.15356 16.3443 5.35931C14.4174 9.81946 11.7695 13.932 8.50689 17.5322C7.96404 18.2422 7.16875 18.7161 6.28592 18.8556C5.40309 18.9951 4.50044 18.7894 3.76514 18.2813C3.43039 17.9986 3.30689 18.4357 3.72289 18.8826C4.47366 19.5882 5.47211 19.9699 6.50216 19.945C7.53222 19.92 8.51102 19.4905 9.22677 18.7493C12.0405 15.3939 14.429 11.7038 16.3378 7.76268C16.1901 9.91268 16.2243 12.0713 16.4401 14.2156C15.4158 14.7181 14.3475 15.1256 13.2486 15.4327C12.6181 15.5952 12.2281 15.8552 12.2168 16.1461C12.2054 16.4711 12.6279 16.7359 13.2405 17.0252C14.3293 17.5419 17.5191 19.0499 18.3056 19.5066C18.9784 19.8966 19.3066 19.5927 19.5065 19.1702C19.7665 18.6209 19.0531 18.3041 18.369 18.0961C18.0632 16.9353 17.8555 15.7508 17.7483 14.5552C19.4404 13.5939 20.8636 12.2226 21.8871 10.5674C22.1817 9.98406 22.4001 9.36529 22.5371 8.7263C22.6338 8.3321 22.6602 7.92393 22.6151 7.52056C22.6151 7.52056 22.6038 7.43281 22.5371 7.42468" fill="white"></path></svg>',i=M(),r=_("div"),r.innerHTML='An official site of the <a href="https://www.alberta.ca/index.aspx">Alberta Government</a>',d(e,"class","service-level service-level--live"),d(r,"data-testid","level"),d(r,"class","site-text")},m(o,n){k(o,e,n),k(o,i,n),k(o,r,n)},d(o){o&&E(e),o&&E(i),o&&E(r)}}}function ci(t){let e,i=fi(t[0])+"",r,o,n,a,l,s,c,u=t[2]&&di(t);return{c(){e=_("div"),r=W(i),n=M(),a=_("div"),l=W("This is a new "),s=_("a"),s.textContent="Alberta Government",c=W(`
31
31
  service
32
- `),u&&u.c(),d(e,"data-testid","level"),d(e,"class",o="service-level service-level--"+t[0].toLowerCase()),d(s,"href","https://www.alberta.ca/index.aspx"),d(a,"data-testid","site-text"),d(a,"class","site-text")},m(f,m){k(f,e,m),y(e,r),k(f,n,m),k(f,a,m),y(a,l),y(a,s),y(a,c),u&&u.m(a,null)},p(f,m){m&1&&i!==(i=fi(f[0])+"")&&V(r,i),m&1&&o!==(o="service-level service-level--"+f[0].toLowerCase())&&d(e,"class",o),f[2]?u?u.p(f,m):(u=di(f),u.c(),u.m(a,null)):u&&(u.d(1),u=null)},d(f){f&&E(e),f&&E(n),f&&E(a),u&&u.d()}}}function di(t){let e,i,r,o;return{c(){e=_("span"),i=W("\u2014 help us improve it by giving "),r=_("a"),o=W("feedback"),d(r,"href",t[2]),d(e,"data-testid","feedback")},m(n,a){k(n,e,a),y(e,i),y(e,r),y(r,o)},p(n,a){a&4&&d(r,"href",n[2])},d(n){n&&E(e)}}}function ui(t){let e,i;return{c(){e=_("div"),i=W(t[1]),d(e,"data-testid","version"),d(e,"class","version")},m(r,o){k(r,e,o),y(e,i)},p(r,o){o&2&&V(i,r[1])},d(r){r&&E(e)}}}function Kr(t){let e,i,r,o,n,a=t[0]==="live"&&si(),l=t[0]!=="live"&&ci(t),s=t[1]&&ui(t);return{c(){e=_("header"),a&&a.c(),i=M(),l&&l.c(),r=M(),o=_("div"),n=M(),s&&s.c(),this.c=p,d(o,"class","spacer"),d(e,"class","goa-official-site-header")},m(c,u){k(c,e,u),a&&a.m(e,null),y(e,i),l&&l.m(e,null),y(e,r),y(e,o),y(e,n),s&&s.m(e,null)},p(c,[u]){c[0]==="live"?a||(a=si(),a.c(),a.m(e,i)):a&&(a.d(1),a=null),c[0]!=="live"?l?l.p(c,u):(l=ci(c),l.c(),l.m(e,r)):l&&(l.d(1),l=null),c[1]?s?s.p(c,u):(s=ui(c),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:p,o:p,d(c){c&&E(e),a&&a.d(),l&&l.d(),s&&s.d()}}}function fi(t){return!t||t&&t.length===0?"":t[0].toUpperCase()+t.slice(1)}function Ur(t,e,i){let{level:r}=e,{version:o}=e,{feedbackurl:n}=e;return t.$$set=a=>{"level"in a&&i(0,r=a.level),"version"in a&&i(1,o=a.version),"feedbackurl"in a&&i(2,n=a.feedbackurl)},[r,o,n]}class gi extends D{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}a{color:var(--goa-color-interactive);cursor:pointer}a:hover{color:var(--goa-color-interactive--hover)}a:focus{outline-width:thin;outline-style:solid;outline-color:var(--goa-color-interactive--hover);outline-offset:0px}.goa-official-site-header{display:flex;font-size:var(--fs-xs);background-color:var(--color-gray-100);align-items:center;justify-content:space-between;height:2.5rem;padding:0 0.5rem;gap:0.5rem}.spacer{flex:1 1 auto}.version{color:var(--goa-color-600)}.service-level{font-weight:bold;padding:0 0.5rem;height:1.5rem;display:flex;align-items:center}.service-level--alpha{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.service-level--beta{background-color:var(--goa-color-brand);color:var(--goa-color-text-light)}.service-level--live{padding:0}.site-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--goa-color-text)}</style>",j(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},Ur,Kr,G,{level:0,version:1,feedbackurl:2},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["level","version","feedbackurl"]}get level(){return this.$$.ctx[0]}set level(e){this.$$set({level:e}),h()}get version(){return this.$$.ctx[1]}set version(e){this.$$set({version:e}),h()}get feedbackurl(){return this.$$.ctx[2]}set feedbackurl(e){this.$$set({feedbackurl:e}),h()}}customElements.define("goa-microsite-header",gi);function Zr(t){let e,i;return{c(){e=_("div"),d(e,"class",i="skeleton "+t[2]+` ${t[2]}-${t[1]}`)},m(r,o){k(r,e,o)},p(r,o){o&6&&i!==(i="skeleton "+r[2]+` ${r[2]}-${r[1]}`)&&d(e,"class",i)},i:p,o:p,d(r){r&&E(e)}}}function Vr(t){let e,i,r,o,n,a,l,s,c,u;return r=new $({props:{type:"avatar",size:t[1]}}),a=new $({props:{type:"title",size:t[1]}}),s=new $({props:{type:"text-small",size:t[1]}}),{c(){e=_("div"),i=_("div"),re(r.$$.fragment),o=M(),n=_("div"),re(a.$$.fragment),l=M(),re(s.$$.fragment),d(i,"class","profile-avatar"),d(n,"class","profile-name"),d(e,"class",c="profile profile-"+t[1])},m(f,m){k(f,e,m),y(e,i),te(r,i,null),y(e,o),y(e,n),te(a,n,null),y(n,l),te(s,n,null),u=!0},p(f,m){const v={};m&2&&(v.size=f[1]),r.$set(v);const b={};m&2&&(b.size=f[1]),a.$set(b);const g={};m&2&&(g.size=f[1]),s.$set(g),(!u||m&2&&c!==(c="profile profile-"+f[1]))&&d(e,"class",c)},i(f){u||(F(r.$$.fragment,f),F(a.$$.fragment,f),F(s.$$.fragment,f),u=!0)},o(f){Z(r.$$.fragment,f),Z(a.$$.fragment,f),Z(s.$$.fragment,f),u=!1},d(f){f&&E(e),ie(r),ie(a),ie(s)}}}function Xr(t){let e,i,r,o,n,a,l,s,c,u,f,m,v;return i=new $({props:{type:"image",size:t[1]}}),n=new $({props:{type:"header",size:t[1]}}),l=new $({props:{type:"text",size:t[1]}}),c=new $({props:{type:"text",size:t[1]}}),f=new $({props:{type:"text",size:t[1]}}),{c(){e=_("div"),re(i.$$.fragment),r=M(),o=_("div"),re(n.$$.fragment),a=M(),re(l.$$.fragment),s=M(),re(c.$$.fragment),u=M(),re(f.$$.fragment),d(o,"class","card-content"),d(e,"class",m="card card-"+t[1]),N(e,"--width",t[0]+"px")},m(b,g){k(b,e,g),te(i,e,null),y(e,r),y(e,o),te(n,o,null),y(o,a),te(l,o,null),y(o,s),te(c,o,null),y(o,u),te(f,o,null),v=!0},p(b,g){const w={};g&2&&(w.size=b[1]),i.$set(w);const x={};g&2&&(x.size=b[1]),n.$set(x);const R={};g&2&&(R.size=b[1]),l.$set(R);const C={};g&2&&(C.size=b[1]),c.$set(C);const H={};g&2&&(H.size=b[1]),f.$set(H),(!v||g&2&&m!==(m="card card-"+b[1]))&&d(e,"class",m),(!v||g&1)&&N(e,"--width",b[0]+"px")},i(b){v||(F(i.$$.fragment,b),F(n.$$.fragment,b),F(l.$$.fragment,b),F(c.$$.fragment,b),F(f.$$.fragment,b),v=!0)},o(b){Z(i.$$.fragment,b),Z(n.$$.fragment,b),Z(l.$$.fragment,b),Z(c.$$.fragment,b),Z(f.$$.fragment,b),v=!1},d(b){b&&E(e),ie(i),ie(n),ie(l),ie(c),ie(f)}}}function Yr(t){let e,i,r,o;const n=[Xr,Vr,Zr],a=[];function l(s,c){return s[2]==="card"?0:s[2]==="profile"?1:2}return e=l(t),i=a[e]=n[e](t),{c(){i.c(),r=se(),this.c=p},m(s,c){a[e].m(s,c),k(s,r,c),o=!0},p(s,[c]){let u=e;e=l(s),e===u?a[e].p(s,c):(ve(),Z(a[u],1,1,()=>{a[u]=null}),ye(),i=a[e],i?i.p(s,c):(i=a[e]=n[e](s),i.c()),F(i,1),i.m(r.parentNode,r))},i(s){o||(F(i),o=!0)},o(s){Z(i),o=!1},d(s){a[e].d(s),s&&E(r)}}}function Jr(t,e,i){let{width:r=320}=e,{size:o=1}=e,{type:n}=e;return t.$$set=a=>{"width"in a&&i(0,r=a.width),"size"in a&&i(1,o=a.size),"type"in a&&i(2,n=a.type)},[r,o,n]}class $ extends D{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}@keyframes pulse{0%{opacity:0.5}50%{opacity:1}100%{opacity:0.5}}.skeleton{background-color:var(--color-gray-100);animation:pulse 2s infinite ease-in-out;overflow:hidden;margin:10px 0}.image,.image-1{background-color:var(--color-gray-100);flex:1 1 100px;height:100px;margin:0}.image-2{height:140px}.image-3{height:200px}.image-4{height:300px}.text,.text-1,.text-2,.text-4,.text-4{width:100%;height:.75rem;border-radius:0.25rem}.title,.title-1,.title-2{width:100%;height:.75rem;border-radius:0.25rem}.title-3{height:.8rem}.title-4{height:1rem}.text-small,.text-small-1{width:30%;height:6px;border-radius:2px}.text-small-2{width:40%;height:8px;border-radius:2px}.text-small-3{width:50%;height:10px;border-radius:3px}.text-small-4{width:70%;height:12px;border-radius:4px}.paragraph{width:100%;height:70px;border-radius:4px}.header,.header-1{width:50%;height:18px;margin-bottom:12px;border-radius:0.25rem}.header-2{width:60%;height:20px;margin-bottom:14px;border-radius:0.25rem}.header-3{width:70%;height:22px;margin-bottom:16px;border-radius:0.25rem}.header-4{width:80%;height:24px;margin-bottom:18px;border-radius:0.3rem}.avatar{display:inline-block}.avatar,.avatar-1{width:40px;height:40px;border-radius:50%}.avatar-2{width:60px;height:60px;border-radius:50%}.avatar-3{width:80px;height:80px;border-radius:50%}.avatar-4{width:120px;height:120px;border-radius:50%}.thumbnail{display:inline-block}.thumbnail,.thumbnail-1{width:40px;height:40px;border-radius:4px}.thumbnail-2{width:60px;height:60px;border-radius:4px}.thumbnail-3{width:80px;height:80px;border-radius:4px}.thumbnail-4{width:120px;height:120px;border-radius:4px}.card{display:inline-block}.card,.card-1,.card-2,.card-3,.card-4{border:1px solid var(--color-gray-100);border-radius:4px}.card{width:100%}@media(min-width: 320px){.card{width:var(--width)}}.card-content{flex:1 1 auto;padding:1rem}.profile{display:flex;flex-direction:row;align-items:center}.profile-1{max-width:280px;gap:1rem}.profile-2{max-width:360px;gap:1rem}.profile-3{max-width:480px;gap:1rem}.profile-4{max-width:560px;gap:1rem}.profile .profile-avatar{flex-shrink:0}.profile .profile-name{flex:1 1 auto}</style>",j(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},Jr,Yr,G,{width:0,size:1,type:2},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["width","size","type"]}get width(){return this.$$.ctx[0]}set width(e){this.$$set({width:e}),h()}get size(){return this.$$.ctx[1]}set size(e){this.$$set({size:e}),h()}get type(){return this.$$.ctx[2]}set type(e){this.$$set({type:e}),h()}}customElements.define("goa-skeleton",$);function hi(t){return Object.prototype.toString.call(t)==="[object Date]"}function Oe(t,e){if(t===e||t!==t)return()=>t;const i=typeof t;if(i!==typeof e||Array.isArray(t)!==Array.isArray(e))throw new Error("Cannot interpolate values of different type");if(Array.isArray(t)){const r=e.map((o,n)=>Oe(t[n],o));return o=>r.map(n=>n(o))}if(i==="object"){if(!t||!e)throw new Error("Object cannot be null");if(hi(t)&&hi(e)){t=t.getTime(),e=e.getTime();const n=e-t;return a=>new Date(t+a*n)}const r=Object.keys(e),o={};return r.forEach(n=>{o[n]=Oe(t[n],e[n])}),n=>{const a={};return r.forEach(l=>{a[l]=o[l](n)}),a}}if(i==="number"){const r=e-t;return o=>t+o*r}throw new Error(`Cannot interpolate ${i} values`)}function Qr(t,e={}){const i=yt(t);let r,o=t;function n(a,l){if(t==null)return i.set(t=a),Promise.resolve();o=a;let s=r,c=!1,{delay:u=0,duration:f=400,easing:m=fe,interpolate:v=Oe}=Ne(Ne({},e),l);if(f===0)return s&&(s.abort(),s=null),i.set(t=o),Promise.resolve();const b=ke()+u;let g;return r=xe(w=>{if(w<b)return!0;c||(g=v(t,a),typeof f=="function"&&(f=f(t,a)),c=!0),s&&(s.abort(),s=null);const x=w-b;return x>f?(i.set(t=a),!1):(i.set(t=g(m(x/f))),!0)}),r.promise}return{set:n,update:(a,l)=>n(a(o,t),l),subscribe:i.subscribe}}function mi(t){let e,i,r,o,n,a,l,s,c;return{c(){e=ne("svg"),i=ne("circle"),n=ne("path"),d(i,"cx",t[3]),d(i,"cy",t[3]),d(i,"stroke",r=t[0]?"var(--goa-color-primary-dark)":"var(--goa-color-brand-light)"),d(i,"stroke-width",t[4]),d(i,"r",o=t[3]-t[4]/2),d(n,"d",a=t[9](t[7])),d(n,"stroke-width",t[4]),d(n,"stroke",l=t[0]?"var(--goa-color-brand-light)":"var(--goa-color-primary)"),d(n,"stroke-linecap","round"),d(e,"class",s=`spinner-${t[1]}`),d(e,"fill","none"),d(e,"viewBox",c="0 0 "+t[5]+" "+t[5]),d(e,"width",t[5]),d(e,"height",t[5]),d(e,"data-testid",t[2]),d(e,"xmlns","http://www.w3.org/2000/svg")},m(u,f){k(u,e,f),y(e,i),y(e,n)},p(u,f){f&8&&d(i,"cx",u[3]),f&8&&d(i,"cy",u[3]),f&1&&r!==(r=u[0]?"var(--goa-color-primary-dark)":"var(--goa-color-brand-light)")&&d(i,"stroke",r),f&16&&d(i,"stroke-width",u[4]),f&24&&o!==(o=u[3]-u[4]/2)&&d(i,"r",o),f&128&&a!==(a=u[9](u[7]))&&d(n,"d",a),f&16&&d(n,"stroke-width",u[4]),f&1&&l!==(l=u[0]?"var(--goa-color-brand-light)":"var(--goa-color-primary)")&&d(n,"stroke",l),f&2&&s!==(s=`spinner-${u[1]}`)&&d(e,"class",s),f&32&&c!==(c="0 0 "+u[5]+" "+u[5])&&d(e,"viewBox",c),f&32&&d(e,"width",u[5]),f&32&&d(e,"height",u[5]),f&4&&d(e,"data-testid",u[2])},d(u){u&&E(e)}}}function $r(t){let e,i=t[6]&&mi(t);return{c(){i&&i.c(),e=se(),this.c=p},m(r,o){i&&i.m(r,o),k(r,e,o)},p(r,[o]){r[6]?i?i.p(r,o):(i=mi(r),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:p,o:p,d(r){i&&i.d(r),r&&E(e)}}}function eo(t,e,i){let r,o,n,a,l,s,{size:c}=e,{invert:u=!1}=e,{type:f="infinite"}=e,{progress:m="0"}=e,{testid:v=""}=e;const b=Qr(0,{duration:500,easing:Ar});zi(t,b,x=>i(7,s=x));function g(x){const R=n+a*Math.cos(x),C=n+a*Math.sin(x);return R+" "+C}function w(x){switch(f){case"progress":{const R=g(-Math.PI/2),C=g(-Math.PI/2+2*Math.PI*(x/100)),H=x%100<50?0:1;return`M ${R} A ${a} ${a} 0 ${H} 1 ${C}`}case"infinite":{const R=g(Math.PI*1.5),C=g(0);return`M ${R} A ${a} ${a} 0 1 0 ${C}`}}}return t.$$set=x=>{"size"in x&&i(10,c=x.size),"invert"in x&&i(0,u=x.invert),"type"in x&&i(1,f=x.type),"progress"in x&&i(11,m=x.progress),"testid"in x&&i(2,v=x.testid)},t.$$.update=()=>{t.$$.dirty&2048&&b.set(parseFloat(m)),t.$$.dirty&1024&&i(5,r=c&&{small:16,medium:32,large:64,xlarge:100}[c]),t.$$.dirty&1024&&i(4,o=c&&{small:2,medium:4,large:7,xlarge:9}[c]),t.$$.dirty&32&&i(3,n=r/2),t.$$.dirty&24&&i(12,a=n-o/2),t.$$.dirty&6146&&i(6,l=f==="infinite"?a:a&&m)},[u,f,v,n,o,r,l,s,b,w,c,m,a]}class bi extends D{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}@keyframes rotate{100%{transform:rotate(360deg)}}.spinner-infinite{animation:rotate 2s linear infinite}</style>",j(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},eo,$r,G,{size:10,invert:0,type:1,progress:11,testid:2},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["size","invert","type","progress","testid"]}get size(){return this.$$.ctx[10]}set size(e){this.$$set({size:e}),h()}get invert(){return this.$$.ctx[0]}set invert(e){this.$$set({invert:e}),h()}get type(){return this.$$.ctx[1]}set type(e){this.$$set({type:e}),h()}get progress(){return this.$$.ctx[11]}set progress(e){this.$$set({progress:e}),h()}get testid(){return this.$$.ctx[2]}set testid(e){this.$$set({testid:e}),h()}}customElements.define("goa-spinner",bi);function to(t){let e,i,r;return{c(){e=_("textarea"),this.c=p,d(e,"name",t[0]),d(e,"placeholder",t[2]),e.value=t[1],d(e,"rows",t[3]),d(e,"class","goa-textarea"),e.disabled=t[5],e.readOnly=t[6],d(e,"data-testid",t[4]),P(e,"error",t[7])},m(o,n){k(o,e,n),i||(r=X(e,"keyup",t[8]),i=!0)},p(o,[n]){n&1&&d(e,"name",o[0]),n&4&&d(e,"placeholder",o[2]),n&2&&(e.value=o[1]),n&8&&d(e,"rows",o[3]),n&32&&(e.disabled=o[5]),n&64&&(e.readOnly=o[6]),n&16&&d(e,"data-testid",o[4]),n&128&&P(e,"error",o[7])},i:p,o:p,d(o){o&&E(e),i=!1,r()}}}function io(t,e,i){let r,o,n,{name:a}=e,{value:l=""}=e,{placeholder:s=""}=e,{rows:c=3}=e,{testid:u=""}=e,{error:f="false"}=e,{readonly:m="false"}=e,{disabled:v="false"}=e;function b(g){const x=g.target.value;o||(g.target.dispatchEvent(new CustomEvent("_change",{composed:!0,bubbles:!1,cancelable:!0,detail:{event:g,name:a,value:x}})),g.stopPropagation())}return t.$$set=g=>{"name"in g&&i(0,a=g.name),"value"in g&&i(1,l=g.value),"placeholder"in g&&i(2,s=g.placeholder),"rows"in g&&i(3,c=g.rows),"testid"in g&&i(4,u=g.testid),"error"in g&&i(9,f=g.error),"readonly"in g&&i(10,m=g.readonly),"disabled"in g&&i(11,v=g.disabled)},t.$$.update=()=>{t.$$.dirty&512&&i(7,r=q(f)),t.$$.dirty&2048&&i(5,o=q(v)),t.$$.dirty&1024&&i(6,n=q(m))},[a,l,s,c,u,o,n,r,b,f,m,v]}class vi extends D{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:3px;background:var(--color-white);color:var(--color-black, #ccc);padding:var(--input-padding, 0.5rem);font-size:var(--input-font-size);font-family:var(--font-family)}.goa-textarea[readonly]{cursor:pointer}.goa-textarea:hover{border-color:var(--goa-color-interactive--hover)}.goa-textarea:active,.goa-textarea:focus,.goa-textarea:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-textarea:disabled{border-color:var(--color-gray-200)}.goa-textarea:disabled:hover{border-color:var(--color-gray-200)}.goa-textarea:disabled:focus,.goa-textarea:disabled:active{box-shadow:none}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-status-emergency-dark)}</style>",j(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},io,to,G,{name:0,value:1,placeholder:2,rows:3,testid:4,error:9,readonly:10,disabled:11},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["name","value","placeholder","rows","testid","error","readonly","disabled"]}get name(){return this.$$.ctx[0]}set name(e){this.$$set({name:e}),h()}get value(){return this.$$.ctx[1]}set value(e){this.$$set({value:e}),h()}get placeholder(){return this.$$.ctx[2]}set placeholder(e){this.$$set({placeholder:e}),h()}get rows(){return this.$$.ctx[3]}set rows(e){this.$$set({rows:e}),h()}get testid(){return this.$$.ctx[4]}set testid(e){this.$$set({testid:e}),h()}get error(){return this.$$.ctx[9]}set error(e){this.$$set({error:e}),h()}get readonly(){return this.$$.ctx[10]}set readonly(e){this.$$set({readonly:e}),h()}get disabled(){return this.$$.ctx[11]}set disabled(e){this.$$set({disabled:e}),h()}}customElements.define("goa-textarea",vi);function yi(t){let e,i;return{c(){e=_("div"),i=W(t[0]),d(e,"slot","title"),d(e,"class","title")},m(r,o){k(r,e,o),y(e,i)},p(r,o){o&1&&V(i,r[0])},d(r){r&&E(e)}}}function pi(t){let e;return{c(){e=_("div"),d(e,"class","actions"),d(e,"slot","actions")},m(i,r){k(i,e,r),e.innerHTML=t[1]},p(i,r){r&2&&(e.innerHTML=i[1])},d(i){i&&E(e)}}}function ro(t){let e,i,r,o,n=t[0]&&yi(t),a=t[1]&&pi(t);return{c(){e=_("goa-container"),n&&n.c(),i=M(),a&&a.c(),r=M(),o=_("div"),this.c=p,d(o,"class","content"),d(o,"slot",""),z(e,"variant",t[3]),z(e,"headingsize",t[4])},m(l,s){k(l,e,s),n&&n.m(e,null),y(e,i),a&&a.m(e,null),y(e,r),y(e,o),o.innerHTML=t[2]},p(l,[s]){l[0]?n?n.p(l,s):(n=yi(l),n.c(),n.m(e,i)):n&&(n.d(1),n=null),l[1]?a?a.p(l,s):(a=pi(l),a.c(),a.m(e,r)):a&&(a.d(1),a=null),s&4&&(o.innerHTML=l[2]),s&8&&z(e,"variant",l[3]),s&16&&z(e,"headingsize",l[4])},i:p,o:p,d(l){l&&E(e),n&&n.d(),a&&a.d()}}}function oo(t,e,i){let{title:r}=e,{actions:o=""}=e,{content:n}=e,{variant:a="default"}=e,{headingsize:l="large"}=e;return t.$$set=s=>{"title"in s&&i(0,r=s.title),"actions"in s&&i(1,o=s.actions),"content"in s&&i(2,n=s.content),"variant"in s&&i(3,a=s.variant),"headingsize"in s&&i(4,l=s.headingsize)},[r,o,n,a,l]}class _i extends D{constructor(e){super();j(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},oo,ro,G,{title:0,actions:1,content:2,variant:3,headingsize:4},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["title","actions","content","variant","headingsize"]}get title(){return this.$$.ctx[0]}set title(e){this.$$set({title:e}),h()}get actions(){return this.$$.ctx[1]}set actions(e){this.$$set({actions:e}),h()}get content(){return this.$$.ctx[2]}set content(e){this.$$set({content:e}),h()}get variant(){return this.$$.ctx[3]}set variant(e){this.$$set({variant:e}),h()}get headingsize(){return this.$$.ctx[4]}set headingsize(e){this.$$set({headingsize:e}),h()}}customElements.define("test-container",_i),I.ContainerWrapper=_i,I.GoAAppHeader=nt,I.GoABadge=lt,I.GoAButton=st,I.GoAButtonGroup=ct,I.GoACallout=dt,I.GoACard=ut,I.GoACardActions=ft,I.GoACardContent=gt,I.GoACardGroup=ht,I.GoACardImage=mt,I.GoACheckbox=bt,I.GoACircularProgress=ti,I.GoAContainer=vt,I.GoADropdown=At,I.GoADropdownItem=Mt,I.GoAFlexRow=Rt,I.GoAFormItem=Gt,I.GoAHeroBanner=Dt,I.GoAIcon=St,I.GoAIconButton=jt,I.GoAInput=Ft,I.GoAMicrositeHeader=gi,I.GoAModal=Vt,I.GoANotification=Yt,I.GoAPageBlock=ot,I.GoAPageLayout=Jt,I.GoARadioGroup=ni,I.GoARadioItem=ai,I.GoAScrollable=li,I.GoASkeleton=$,I.GoASpinner=bi,I.GoATextArea=vi,Object.defineProperty(I,"__esModule",{value:!0}),I[Symbol.toStringTag]="Module"});
32
+ `),u&&u.c(),d(e,"data-testid","level"),d(e,"class",o="service-level service-level--"+t[0].toLowerCase()),d(s,"href","https://www.alberta.ca/index.aspx"),d(a,"data-testid","site-text"),d(a,"class","site-text")},m(f,m){k(f,e,m),y(e,r),k(f,n,m),k(f,a,m),y(a,l),y(a,s),y(a,c),u&&u.m(a,null)},p(f,m){m&1&&i!==(i=fi(f[0])+"")&&V(r,i),m&1&&o!==(o="service-level service-level--"+f[0].toLowerCase())&&d(e,"class",o),f[2]?u?u.p(f,m):(u=di(f),u.c(),u.m(a,null)):u&&(u.d(1),u=null)},d(f){f&&E(e),f&&E(n),f&&E(a),u&&u.d()}}}function di(t){let e,i,r,o;return{c(){e=_("span"),i=W("\u2014 help us improve it by giving "),r=_("a"),o=W("feedback"),d(r,"href",t[2]),d(e,"data-testid","feedback")},m(n,a){k(n,e,a),y(e,i),y(e,r),y(r,o)},p(n,a){a&4&&d(r,"href",n[2])},d(n){n&&E(e)}}}function ui(t){let e,i;return{c(){e=_("div"),i=W(t[1]),d(e,"data-testid","version"),d(e,"class","version")},m(r,o){k(r,e,o),y(e,i)},p(r,o){o&2&&V(i,r[1])},d(r){r&&E(e)}}}function Kr(t){let e,i,r=["alpha","beta"].includes(t[0]),o,n,a,l=t[0]==="live"&&si(),s=r&&ci(t),c=t[1]&&ui(t);return{c(){e=_("header"),l&&l.c(),i=M(),s&&s.c(),o=M(),n=_("div"),a=M(),c&&c.c(),this.c=p,d(n,"class","spacer"),d(e,"class","goa-official-site-header")},m(u,f){k(u,e,f),l&&l.m(e,null),y(e,i),s&&s.m(e,null),y(e,o),y(e,n),y(e,a),c&&c.m(e,null)},p(u,[f]){u[0]==="live"?l||(l=si(),l.c(),l.m(e,i)):l&&(l.d(1),l=null),f&1&&(r=["alpha","beta"].includes(u[0])),r?s?s.p(u,f):(s=ci(u),s.c(),s.m(e,o)):s&&(s.d(1),s=null),u[1]?c?c.p(u,f):(c=ui(u),c.c(),c.m(e,null)):c&&(c.d(1),c=null)},i:p,o:p,d(u){u&&E(e),l&&l.d(),s&&s.d(),c&&c.d()}}}function fi(t){return!t||t&&t.length===0?"":t[0].toUpperCase()+t.slice(1)}function Ur(t,e,i){let{level:r}=e,{version:o}=e,{feedbackurl:n}=e;return t.$$set=a=>{"level"in a&&i(0,r=a.level),"version"in a&&i(1,o=a.version),"feedbackurl"in a&&i(2,n=a.feedbackurl)},[r,o,n]}class gi extends D{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}a{color:var(--goa-color-interactive);cursor:pointer}a:hover{color:var(--goa-color-interactive--hover)}a:focus{outline-width:thin;outline-style:solid;outline-color:var(--goa-color-interactive--hover);outline-offset:0px}.goa-official-site-header{display:flex;font-size:var(--fs-xs);background-color:var(--color-gray-100);align-items:center;justify-content:space-between;height:2.5rem;padding:0 0.5rem;gap:0.5rem}.spacer{flex:1 1 auto}.version{color:var(--goa-color-600)}.service-level{font-weight:bold;padding:0 0.5rem;height:1.5rem;display:flex;align-items:center}.service-level--alpha{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.service-level--beta{background-color:var(--goa-color-brand);color:var(--goa-color-text-light)}.service-level--live{padding:0}.site-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--goa-color-text)}</style>",j(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},Ur,Kr,G,{level:0,version:1,feedbackurl:2},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["level","version","feedbackurl"]}get level(){return this.$$.ctx[0]}set level(e){this.$$set({level:e}),h()}get version(){return this.$$.ctx[1]}set version(e){this.$$set({version:e}),h()}get feedbackurl(){return this.$$.ctx[2]}set feedbackurl(e){this.$$set({feedbackurl:e}),h()}}customElements.define("goa-microsite-header",gi);function Zr(t){let e,i;return{c(){e=_("div"),d(e,"class",i="skeleton "+t[2]+` ${t[2]}-${t[1]}`)},m(r,o){k(r,e,o)},p(r,o){o&6&&i!==(i="skeleton "+r[2]+` ${r[2]}-${r[1]}`)&&d(e,"class",i)},i:p,o:p,d(r){r&&E(e)}}}function Vr(t){let e,i,r,o,n,a,l,s,c,u;return r=new $({props:{type:"avatar",size:t[1]}}),a=new $({props:{type:"title",size:t[1]}}),s=new $({props:{type:"text-small",size:t[1]}}),{c(){e=_("div"),i=_("div"),re(r.$$.fragment),o=M(),n=_("div"),re(a.$$.fragment),l=M(),re(s.$$.fragment),d(i,"class","profile-avatar"),d(n,"class","profile-name"),d(e,"class",c="profile profile-"+t[1])},m(f,m){k(f,e,m),y(e,i),te(r,i,null),y(e,o),y(e,n),te(a,n,null),y(n,l),te(s,n,null),u=!0},p(f,m){const v={};m&2&&(v.size=f[1]),r.$set(v);const b={};m&2&&(b.size=f[1]),a.$set(b);const g={};m&2&&(g.size=f[1]),s.$set(g),(!u||m&2&&c!==(c="profile profile-"+f[1]))&&d(e,"class",c)},i(f){u||(F(r.$$.fragment,f),F(a.$$.fragment,f),F(s.$$.fragment,f),u=!0)},o(f){Z(r.$$.fragment,f),Z(a.$$.fragment,f),Z(s.$$.fragment,f),u=!1},d(f){f&&E(e),ie(r),ie(a),ie(s)}}}function Xr(t){let e,i,r,o,n,a,l,s,c,u,f,m,v;return i=new $({props:{type:"image",size:t[1]}}),n=new $({props:{type:"header",size:t[1]}}),l=new $({props:{type:"text",size:t[1]}}),c=new $({props:{type:"text",size:t[1]}}),f=new $({props:{type:"text",size:t[1]}}),{c(){e=_("div"),re(i.$$.fragment),r=M(),o=_("div"),re(n.$$.fragment),a=M(),re(l.$$.fragment),s=M(),re(c.$$.fragment),u=M(),re(f.$$.fragment),d(o,"class","card-content"),d(e,"class",m="card card-"+t[1]),N(e,"--width",t[0]+"px")},m(b,g){k(b,e,g),te(i,e,null),y(e,r),y(e,o),te(n,o,null),y(o,a),te(l,o,null),y(o,s),te(c,o,null),y(o,u),te(f,o,null),v=!0},p(b,g){const w={};g&2&&(w.size=b[1]),i.$set(w);const x={};g&2&&(x.size=b[1]),n.$set(x);const R={};g&2&&(R.size=b[1]),l.$set(R);const C={};g&2&&(C.size=b[1]),c.$set(C);const H={};g&2&&(H.size=b[1]),f.$set(H),(!v||g&2&&m!==(m="card card-"+b[1]))&&d(e,"class",m),(!v||g&1)&&N(e,"--width",b[0]+"px")},i(b){v||(F(i.$$.fragment,b),F(n.$$.fragment,b),F(l.$$.fragment,b),F(c.$$.fragment,b),F(f.$$.fragment,b),v=!0)},o(b){Z(i.$$.fragment,b),Z(n.$$.fragment,b),Z(l.$$.fragment,b),Z(c.$$.fragment,b),Z(f.$$.fragment,b),v=!1},d(b){b&&E(e),ie(i),ie(n),ie(l),ie(c),ie(f)}}}function Yr(t){let e,i,r,o;const n=[Xr,Vr,Zr],a=[];function l(s,c){return s[2]==="card"?0:s[2]==="profile"?1:2}return e=l(t),i=a[e]=n[e](t),{c(){i.c(),r=se(),this.c=p},m(s,c){a[e].m(s,c),k(s,r,c),o=!0},p(s,[c]){let u=e;e=l(s),e===u?a[e].p(s,c):(ve(),Z(a[u],1,1,()=>{a[u]=null}),ye(),i=a[e],i?i.p(s,c):(i=a[e]=n[e](s),i.c()),F(i,1),i.m(r.parentNode,r))},i(s){o||(F(i),o=!0)},o(s){Z(i),o=!1},d(s){a[e].d(s),s&&E(r)}}}function Jr(t,e,i){let{width:r=320}=e,{size:o=1}=e,{type:n}=e;return t.$$set=a=>{"width"in a&&i(0,r=a.width),"size"in a&&i(1,o=a.size),"type"in a&&i(2,n=a.type)},[r,o,n]}class $ extends D{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}@keyframes pulse{0%{opacity:0.5}50%{opacity:1}100%{opacity:0.5}}.skeleton{background-color:var(--color-gray-100);animation:pulse 2s infinite ease-in-out;overflow:hidden;margin:10px 0}.image,.image-1{background-color:var(--color-gray-100);flex:1 1 100px;height:100px;margin:0}.image-2{height:140px}.image-3{height:200px}.image-4{height:300px}.text,.text-1,.text-2,.text-4,.text-4{width:100%;height:.75rem;border-radius:0.25rem}.title,.title-1,.title-2{width:100%;height:.75rem;border-radius:0.25rem}.title-3{height:.8rem}.title-4{height:1rem}.text-small,.text-small-1{width:30%;height:6px;border-radius:2px}.text-small-2{width:40%;height:8px;border-radius:2px}.text-small-3{width:50%;height:10px;border-radius:3px}.text-small-4{width:70%;height:12px;border-radius:4px}.paragraph{width:100%;height:70px;border-radius:4px}.header,.header-1{width:50%;height:18px;margin-bottom:12px;border-radius:0.25rem}.header-2{width:60%;height:20px;margin-bottom:14px;border-radius:0.25rem}.header-3{width:70%;height:22px;margin-bottom:16px;border-radius:0.25rem}.header-4{width:80%;height:24px;margin-bottom:18px;border-radius:0.3rem}.avatar{display:inline-block}.avatar,.avatar-1{width:40px;height:40px;border-radius:50%}.avatar-2{width:60px;height:60px;border-radius:50%}.avatar-3{width:80px;height:80px;border-radius:50%}.avatar-4{width:120px;height:120px;border-radius:50%}.thumbnail{display:inline-block}.thumbnail,.thumbnail-1{width:40px;height:40px;border-radius:4px}.thumbnail-2{width:60px;height:60px;border-radius:4px}.thumbnail-3{width:80px;height:80px;border-radius:4px}.thumbnail-4{width:120px;height:120px;border-radius:4px}.card{display:inline-block}.card,.card-1,.card-2,.card-3,.card-4{border:1px solid var(--color-gray-100);border-radius:4px}.card{width:100%}@media(min-width: 320px){.card{width:var(--width)}}.card-content{flex:1 1 auto;padding:1rem}.profile{display:flex;flex-direction:row;align-items:center}.profile-1{max-width:280px;gap:1rem}.profile-2{max-width:360px;gap:1rem}.profile-3{max-width:480px;gap:1rem}.profile-4{max-width:560px;gap:1rem}.profile .profile-avatar{flex-shrink:0}.profile .profile-name{flex:1 1 auto}</style>",j(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},Jr,Yr,G,{width:0,size:1,type:2},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["width","size","type"]}get width(){return this.$$.ctx[0]}set width(e){this.$$set({width:e}),h()}get size(){return this.$$.ctx[1]}set size(e){this.$$set({size:e}),h()}get type(){return this.$$.ctx[2]}set type(e){this.$$set({type:e}),h()}}customElements.define("goa-skeleton",$);function hi(t){return Object.prototype.toString.call(t)==="[object Date]"}function Oe(t,e){if(t===e||t!==t)return()=>t;const i=typeof t;if(i!==typeof e||Array.isArray(t)!==Array.isArray(e))throw new Error("Cannot interpolate values of different type");if(Array.isArray(t)){const r=e.map((o,n)=>Oe(t[n],o));return o=>r.map(n=>n(o))}if(i==="object"){if(!t||!e)throw new Error("Object cannot be null");if(hi(t)&&hi(e)){t=t.getTime(),e=e.getTime();const n=e-t;return a=>new Date(t+a*n)}const r=Object.keys(e),o={};return r.forEach(n=>{o[n]=Oe(t[n],e[n])}),n=>{const a={};return r.forEach(l=>{a[l]=o[l](n)}),a}}if(i==="number"){const r=e-t;return o=>t+o*r}throw new Error(`Cannot interpolate ${i} values`)}function Qr(t,e={}){const i=yt(t);let r,o=t;function n(a,l){if(t==null)return i.set(t=a),Promise.resolve();o=a;let s=r,c=!1,{delay:u=0,duration:f=400,easing:m=fe,interpolate:v=Oe}=Ne(Ne({},e),l);if(f===0)return s&&(s.abort(),s=null),i.set(t=o),Promise.resolve();const b=ke()+u;let g;return r=xe(w=>{if(w<b)return!0;c||(g=v(t,a),typeof f=="function"&&(f=f(t,a)),c=!0),s&&(s.abort(),s=null);const x=w-b;return x>f?(i.set(t=a),!1):(i.set(t=g(m(x/f))),!0)}),r.promise}return{set:n,update:(a,l)=>n(a(o,t),l),subscribe:i.subscribe}}function mi(t){let e,i,r,o,n,a,l,s,c;return{c(){e=ne("svg"),i=ne("circle"),n=ne("path"),d(i,"cx",t[3]),d(i,"cy",t[3]),d(i,"stroke",r=t[0]?"var(--goa-color-primary-dark)":"var(--goa-color-brand-light)"),d(i,"stroke-width",t[4]),d(i,"r",o=t[3]-t[4]/2),d(n,"d",a=t[9](t[7])),d(n,"stroke-width",t[4]),d(n,"stroke",l=t[0]?"var(--goa-color-brand-light)":"var(--goa-color-primary)"),d(n,"stroke-linecap","round"),d(e,"class",s=`spinner-${t[1]}`),d(e,"fill","none"),d(e,"viewBox",c="0 0 "+t[5]+" "+t[5]),d(e,"width",t[5]),d(e,"height",t[5]),d(e,"data-testid",t[2]),d(e,"xmlns","http://www.w3.org/2000/svg")},m(u,f){k(u,e,f),y(e,i),y(e,n)},p(u,f){f&8&&d(i,"cx",u[3]),f&8&&d(i,"cy",u[3]),f&1&&r!==(r=u[0]?"var(--goa-color-primary-dark)":"var(--goa-color-brand-light)")&&d(i,"stroke",r),f&16&&d(i,"stroke-width",u[4]),f&24&&o!==(o=u[3]-u[4]/2)&&d(i,"r",o),f&128&&a!==(a=u[9](u[7]))&&d(n,"d",a),f&16&&d(n,"stroke-width",u[4]),f&1&&l!==(l=u[0]?"var(--goa-color-brand-light)":"var(--goa-color-primary)")&&d(n,"stroke",l),f&2&&s!==(s=`spinner-${u[1]}`)&&d(e,"class",s),f&32&&c!==(c="0 0 "+u[5]+" "+u[5])&&d(e,"viewBox",c),f&32&&d(e,"width",u[5]),f&32&&d(e,"height",u[5]),f&4&&d(e,"data-testid",u[2])},d(u){u&&E(e)}}}function $r(t){let e,i=t[6]&&mi(t);return{c(){i&&i.c(),e=se(),this.c=p},m(r,o){i&&i.m(r,o),k(r,e,o)},p(r,[o]){r[6]?i?i.p(r,o):(i=mi(r),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:p,o:p,d(r){i&&i.d(r),r&&E(e)}}}function eo(t,e,i){let r,o,n,a,l,s,{size:c}=e,{invert:u=!1}=e,{type:f="infinite"}=e,{progress:m="0"}=e,{testid:v=""}=e;const b=Qr(0,{duration:500,easing:Ar});zi(t,b,x=>i(7,s=x));function g(x){const R=n+a*Math.cos(x),C=n+a*Math.sin(x);return R+" "+C}function w(x){switch(f){case"progress":{const R=g(-Math.PI/2),C=g(-Math.PI/2+2*Math.PI*(x/100)),H=x%100<50?0:1;return`M ${R} A ${a} ${a} 0 ${H} 1 ${C}`}case"infinite":{const R=g(Math.PI*1.5),C=g(0);return`M ${R} A ${a} ${a} 0 1 0 ${C}`}}}return t.$$set=x=>{"size"in x&&i(10,c=x.size),"invert"in x&&i(0,u=x.invert),"type"in x&&i(1,f=x.type),"progress"in x&&i(11,m=x.progress),"testid"in x&&i(2,v=x.testid)},t.$$.update=()=>{t.$$.dirty&2048&&b.set(parseFloat(m)),t.$$.dirty&1024&&i(5,r=c&&{small:16,medium:32,large:64,xlarge:100}[c]),t.$$.dirty&1024&&i(4,o=c&&{small:2,medium:4,large:7,xlarge:9}[c]),t.$$.dirty&32&&i(3,n=r/2),t.$$.dirty&24&&i(12,a=n-o/2),t.$$.dirty&6146&&i(6,l=f==="infinite"?a:a&&m)},[u,f,v,n,o,r,l,s,b,w,c,m,a]}class bi extends D{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}@keyframes rotate{100%{transform:rotate(360deg)}}.spinner-infinite{animation:rotate 2s linear infinite}</style>",j(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},eo,$r,G,{size:10,invert:0,type:1,progress:11,testid:2},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["size","invert","type","progress","testid"]}get size(){return this.$$.ctx[10]}set size(e){this.$$set({size:e}),h()}get invert(){return this.$$.ctx[0]}set invert(e){this.$$set({invert:e}),h()}get type(){return this.$$.ctx[1]}set type(e){this.$$set({type:e}),h()}get progress(){return this.$$.ctx[11]}set progress(e){this.$$set({progress:e}),h()}get testid(){return this.$$.ctx[2]}set testid(e){this.$$set({testid:e}),h()}}customElements.define("goa-spinner",bi);function to(t){let e,i,r;return{c(){e=_("textarea"),this.c=p,d(e,"name",t[0]),d(e,"placeholder",t[2]),e.value=t[1],d(e,"rows",t[3]),d(e,"class","goa-textarea"),e.disabled=t[5],e.readOnly=t[6],d(e,"data-testid",t[4]),P(e,"error",t[7])},m(o,n){k(o,e,n),i||(r=X(e,"keyup",t[8]),i=!0)},p(o,[n]){n&1&&d(e,"name",o[0]),n&4&&d(e,"placeholder",o[2]),n&2&&(e.value=o[1]),n&8&&d(e,"rows",o[3]),n&32&&(e.disabled=o[5]),n&64&&(e.readOnly=o[6]),n&16&&d(e,"data-testid",o[4]),n&128&&P(e,"error",o[7])},i:p,o:p,d(o){o&&E(e),i=!1,r()}}}function io(t,e,i){let r,o,n,{name:a}=e,{value:l=""}=e,{placeholder:s=""}=e,{rows:c=3}=e,{testid:u=""}=e,{error:f="false"}=e,{readonly:m="false"}=e,{disabled:v="false"}=e;function b(g){const x=g.target.value;o||(g.target.dispatchEvent(new CustomEvent("_change",{composed:!0,bubbles:!1,cancelable:!0,detail:{event:g,name:a,value:x}})),g.stopPropagation())}return t.$$set=g=>{"name"in g&&i(0,a=g.name),"value"in g&&i(1,l=g.value),"placeholder"in g&&i(2,s=g.placeholder),"rows"in g&&i(3,c=g.rows),"testid"in g&&i(4,u=g.testid),"error"in g&&i(9,f=g.error),"readonly"in g&&i(10,m=g.readonly),"disabled"in g&&i(11,v=g.disabled)},t.$$.update=()=>{t.$$.dirty&512&&i(7,r=q(f)),t.$$.dirty&2048&&i(5,o=q(v)),t.$$.dirty&1024&&i(6,n=q(m))},[a,l,s,c,u,o,n,r,b,f,m,v]}class vi extends D{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:3px;background:var(--color-white);color:var(--color-black, #ccc);padding:var(--input-padding, 0.5rem);font-size:var(--input-font-size);font-family:var(--font-family)}.goa-textarea[readonly]{cursor:pointer}.goa-textarea:hover{border-color:var(--goa-color-interactive--hover)}.goa-textarea:active,.goa-textarea:focus,.goa-textarea:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-textarea:disabled{border-color:var(--color-gray-200)}.goa-textarea:disabled:hover{border-color:var(--color-gray-200)}.goa-textarea:disabled:focus,.goa-textarea:disabled:active{box-shadow:none}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-status-emergency-dark)}</style>",j(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},io,to,G,{name:0,value:1,placeholder:2,rows:3,testid:4,error:9,readonly:10,disabled:11},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["name","value","placeholder","rows","testid","error","readonly","disabled"]}get name(){return this.$$.ctx[0]}set name(e){this.$$set({name:e}),h()}get value(){return this.$$.ctx[1]}set value(e){this.$$set({value:e}),h()}get placeholder(){return this.$$.ctx[2]}set placeholder(e){this.$$set({placeholder:e}),h()}get rows(){return this.$$.ctx[3]}set rows(e){this.$$set({rows:e}),h()}get testid(){return this.$$.ctx[4]}set testid(e){this.$$set({testid:e}),h()}get error(){return this.$$.ctx[9]}set error(e){this.$$set({error:e}),h()}get readonly(){return this.$$.ctx[10]}set readonly(e){this.$$set({readonly:e}),h()}get disabled(){return this.$$.ctx[11]}set disabled(e){this.$$set({disabled:e}),h()}}customElements.define("goa-textarea",vi);function yi(t){let e,i;return{c(){e=_("div"),i=W(t[0]),d(e,"slot","title"),d(e,"class","title")},m(r,o){k(r,e,o),y(e,i)},p(r,o){o&1&&V(i,r[0])},d(r){r&&E(e)}}}function pi(t){let e;return{c(){e=_("div"),d(e,"class","actions"),d(e,"slot","actions")},m(i,r){k(i,e,r),e.innerHTML=t[1]},p(i,r){r&2&&(e.innerHTML=i[1])},d(i){i&&E(e)}}}function ro(t){let e,i,r,o,n=t[0]&&yi(t),a=t[1]&&pi(t);return{c(){e=_("goa-container"),n&&n.c(),i=M(),a&&a.c(),r=M(),o=_("div"),this.c=p,d(o,"class","content"),d(o,"slot",""),z(e,"variant",t[3]),z(e,"headingsize",t[4])},m(l,s){k(l,e,s),n&&n.m(e,null),y(e,i),a&&a.m(e,null),y(e,r),y(e,o),o.innerHTML=t[2]},p(l,[s]){l[0]?n?n.p(l,s):(n=yi(l),n.c(),n.m(e,i)):n&&(n.d(1),n=null),l[1]?a?a.p(l,s):(a=pi(l),a.c(),a.m(e,r)):a&&(a.d(1),a=null),s&4&&(o.innerHTML=l[2]),s&8&&z(e,"variant",l[3]),s&16&&z(e,"headingsize",l[4])},i:p,o:p,d(l){l&&E(e),n&&n.d(),a&&a.d()}}}function oo(t,e,i){let{title:r}=e,{actions:o=""}=e,{content:n}=e,{variant:a="default"}=e,{headingsize:l="large"}=e;return t.$$set=s=>{"title"in s&&i(0,r=s.title),"actions"in s&&i(1,o=s.actions),"content"in s&&i(2,n=s.content),"variant"in s&&i(3,a=s.variant),"headingsize"in s&&i(4,l=s.headingsize)},[r,o,n,a,l]}class _i extends D{constructor(e){super();j(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},oo,ro,G,{title:0,actions:1,content:2,variant:3,headingsize:4},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["title","actions","content","variant","headingsize"]}get title(){return this.$$.ctx[0]}set title(e){this.$$set({title:e}),h()}get actions(){return this.$$.ctx[1]}set actions(e){this.$$set({actions:e}),h()}get content(){return this.$$.ctx[2]}set content(e){this.$$set({content:e}),h()}get variant(){return this.$$.ctx[3]}set variant(e){this.$$set({variant:e}),h()}get headingsize(){return this.$$.ctx[4]}set headingsize(e){this.$$set({headingsize:e}),h()}}customElements.define("test-container",_i),I.ContainerWrapper=_i,I.GoAAppHeader=nt,I.GoABadge=lt,I.GoAButton=st,I.GoAButtonGroup=ct,I.GoACallout=dt,I.GoACard=ut,I.GoACardActions=ft,I.GoACardContent=gt,I.GoACardGroup=ht,I.GoACardImage=mt,I.GoACheckbox=bt,I.GoACircularProgress=ti,I.GoAContainer=vt,I.GoADropdown=At,I.GoADropdownItem=Mt,I.GoAFlexRow=Rt,I.GoAFormItem=Gt,I.GoAHeroBanner=Dt,I.GoAIcon=St,I.GoAIconButton=jt,I.GoAInput=Ft,I.GoAMicrositeHeader=gi,I.GoAModal=Vt,I.GoANotification=Yt,I.GoAPageBlock=ot,I.GoAPageLayout=Jt,I.GoARadioGroup=ni,I.GoARadioItem=ai,I.GoAScrollable=li,I.GoASkeleton=$,I.GoASpinner=bi,I.GoATextArea=vi,Object.defineProperty(I,"__esModule",{value:!0}),I[Symbol.toStringTag]="Module"});