@abgov/web-components 1.0.0-alpha.40 → 1.0.0-alpha.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web-components.es.js +1 -1
- package/web-components.umd.js +1 -1
package/package.json
CHANGED
package/web-components.es.js
CHANGED
|
@@ -7687,7 +7687,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
7687
7687
|
class Skeleton extends SvelteElement {
|
|
7688
7688
|
constructor(options) {
|
|
7689
7689
|
super();
|
|
7690
|
-
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,.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,.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,.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>`;
|
|
7690
|
+
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>`;
|
|
7691
7691
|
|
|
7692
7692
|
init(
|
|
7693
7693
|
this,
|
package/web-components.umd.js
CHANGED
|
@@ -27,4 +27,4 @@
|
|
|
27
27
|
padding: 0 ${o[1]}rem;
|
|
28
28
|
`)&&d(e,"style",r)},i:_,o:_,d(o){o&&x(e)}}}function Dr(i,e,t){let{direction:r="vertical"}=e,{hpadding:o=0}=e,{vpadding:n=0}=e,{height:a=0}=e;return i.$$set=l=>{"direction"in l&&t(0,r=l.direction),"hpadding"in l&&t(1,o=l.hpadding),"vpadding"in l&&t(2,n=l.vpadding),"height"in l&&t(3,a=l.height)},[r,o,n,a]}class ii extends I{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>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Dr,Or,H,{direction:0,hpadding:1,vpadding:2,height:3},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),m()))}static get observedAttributes(){return["direction","hpadding","vpadding","height"]}get direction(){return this.$$.ctx[0]}set direction(e){this.$$set({direction:e}),m()}get hpadding(){return this.$$.ctx[1]}set hpadding(e){this.$$set({hpadding:e}),m()}get vpadding(){return this.$$.ctx[2]}set vpadding(e){this.$$set({vpadding:e}),m()}get height(){return this.$$.ctx[3]}set height(e){this.$$set({height:e}),m()}}customElements.define("goa-scrollable",ii);function ri(i){let e,t,r;return{c(){e=p("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>',t=A(),r=p("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){w(o,e,n),w(o,t,n),w(o,r,n)},d(o){o&&x(e),o&&x(t),o&&x(r)}}}function oi(i){let e,t=li(i[0])+"",r,o,n,a,l,s,c,u=i[2]&&ai(i);return{c(){e=p("div"),r=F(t),n=A(),a=p("div"),l=F("This is a new "),s=p("a"),s.textContent="Alberta Government",c=F(`
|
|
29
29
|
service
|
|
30
|
-
`),u&&u.c(),d(e,"data-testid","level"),d(e,"class",o="service-level service-level--"+i[0]?.toLowerCase()),d(s,"href","https://www.alberta.ca/index.aspx"),d(a,"data-testid","site-text"),d(a,"class","site-text")},m(f,h){w(f,e,h),v(e,r),w(f,n,h),w(f,a,h),v(a,l),v(a,s),v(a,c),u&&u.m(a,null)},p(f,h){h&1&&t!==(t=li(f[0])+"")&&Z(r,t),h&1&&o!==(o="service-level service-level--"+f[0]?.toLowerCase())&&d(e,"class",o),f[2]?u?u.p(f,h):(u=ai(f),u.c(),u.m(a,null)):u&&(u.d(1),u=null)},d(f){f&&x(e),f&&x(n),f&&x(a),u&&u.d()}}}function ai(i){let e,t,r,o;return{c(){e=p("span"),t=F("\u2014 help us improve it by giving "),r=p("a"),o=F("feedback"),d(r,"href",i[2]),d(e,"data-testid","feedback")},m(n,a){w(n,e,a),v(e,t),v(e,r),v(r,o)},p(n,a){a&4&&d(r,"href",n[2])},d(n){n&&x(e)}}}function ni(i){let e,t;return{c(){e=p("div"),t=F(i[1]),d(e,"data-testid","version"),d(e,"class","version")},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 Sr(i){let e,t,r,o,n,a=i[0]==="live"&&ri(),l=i[0]!=="live"&&oi(i),s=i[1]&&ni(i);return{c(){e=p("header"),a&&a.c(),t=A(),l&&l.c(),r=A(),o=p("div"),n=A(),s&&s.c(),this.c=_,d(o,"class","spacer"),d(e,"class","goa-official-site-header")},m(c,u){w(c,e,u),a&&a.m(e,null),v(e,t),l&&l.m(e,null),v(e,r),v(e,o),v(e,n),s&&s.m(e,null)},p(c,[u]){c[0]==="live"?a||(a=ri(),a.c(),a.m(e,t)):a&&(a.d(1),a=null),c[0]!=="live"?l?l.p(c,u):(l=oi(c),l.c(),l.m(e,r)):l&&(l.d(1),l=null),c[1]?s?s.p(c,u):(s=ni(c),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:_,o:_,d(c){c&&x(e),a&&a.d(),l&&l.d(),s&&s.d()}}}function li(i){return!i||(i==null?void 0:i.length)===0?"":i[0].toUpperCase()+i.slice(1)}function Br(i,e,t){let{level:r}=e,{version:o}=e,{feedbackurl:n}=e;return i.$$set=a=>{"level"in a&&t(0,r=a.level),"version"in a&&t(1,o=a.version),"feedbackurl"in a&&t(2,n=a.feedbackurl)},[r,o,n]}class si extends I{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>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Br,Sr,H,{level:0,version:1,feedbackurl:2},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),m()))}static get observedAttributes(){return["level","version","feedbackurl"]}get level(){return this.$$.ctx[0]}set level(e){this.$$set({level:e}),m()}get version(){return this.$$.ctx[1]}set version(e){this.$$set({version:e}),m()}get feedbackurl(){return this.$$.ctx[2]}set feedbackurl(e){this.$$set({feedbackurl:e}),m()}}customElements.define("goa-microsite-header",si);function Pr(i){let e,t;return{c(){e=p("div"),d(e,"class",t="skeleton "+i[2]+` ${i[2]}-${i[1]}`)},m(r,o){w(r,e,o)},p(r,o){o&6&&t!==(t="skeleton "+r[2]+` ${r[2]}-${r[1]}`)&&d(e,"class",t)},i:_,o:_,d(r){r&&x(e)}}}function Nr(i){let e,t,r,o,n,a,l,s,c,u;return r=new Y({props:{type:"avatar",size:i[1]}}),a=new Y({props:{type:"title",size:i[1]}}),s=new Y({props:{type:"text-small",size:i[1]}}),{c(){e=p("div"),t=p("div"),ie(r.$$.fragment),o=A(),n=p("div"),ie(a.$$.fragment),l=A(),ie(s.$$.fragment),d(t,"class","profile-avatar"),d(n,"class","profile-name"),d(e,"class",c="profile profile-"+i[1])},m(f,h){w(f,e,h),v(e,t),$(r,t,null),v(e,o),v(e,n),$(a,n,null),v(n,l),$(s,n,null),u=!0},p(f,h){const y={};h&2&&(y.size=f[1]),r.$set(y);const g={};h&2&&(g.size=f[1]),a.$set(g);const b={};h&2&&(b.size=f[1]),s.$set(b),(!u||h&2&&c!==(c="profile profile-"+f[1]))&&d(e,"class",c)},i(f){u||(N(r.$$.fragment,f),N(a.$$.fragment,f),N(s.$$.fragment,f),u=!0)},o(f){W(r.$$.fragment,f),W(a.$$.fragment,f),W(s.$$.fragment,f),u=!1},d(f){f&&x(e),ee(r),ee(a),ee(s)}}}function Fr(i){let e,t,r,o,n,a,l,s,c,u,f,h,y;return t=new Y({props:{type:"image",size:i[1]}}),n=new Y({props:{type:"header",size:i[1]}}),l=new Y({props:{type:"text",size:i[1]}}),c=new Y({props:{type:"text",size:i[1]}}),f=new Y({props:{type:"text",size:i[1]}}),{c(){e=p("div"),ie(t.$$.fragment),r=A(),o=p("div"),ie(n.$$.fragment),a=A(),ie(l.$$.fragment),s=A(),ie(c.$$.fragment),u=A(),ie(f.$$.fragment),d(o,"class","card-content"),d(e,"class",h="card card-"+i[1]),S(e,"--width",i[0]+"px")},m(g,b){w(g,e,b),$(t,e,null),v(e,r),v(e,o),$(n,o,null),v(o,a),$(l,o,null),v(o,s),$(c,o,null),v(o,u),$(f,o,null),y=!0},p(g,b){const E={};b&2&&(E.size=g[1]),t.$set(E);const z={};b&2&&(z.size=g[1]),n.$set(z);const C={};b&2&&(C.size=g[1]),l.$set(C);const L={};b&2&&(L.size=g[1]),c.$set(L);const V={};b&2&&(V.size=g[1]),f.$set(V),(!y||b&2&&h!==(h="card card-"+g[1]))&&d(e,"class",h),(!y||b&1)&&S(e,"--width",g[0]+"px")},i(g){y||(N(t.$$.fragment,g),N(n.$$.fragment,g),N(l.$$.fragment,g),N(c.$$.fragment,g),N(f.$$.fragment,g),y=!0)},o(g){W(t.$$.fragment,g),W(n.$$.fragment,g),W(l.$$.fragment,g),W(c.$$.fragment,g),W(f.$$.fragment,g),y=!1},d(g){g&&x(e),ee(t),ee(n),ee(l),ee(c),ee(f)}}}function qr(i){let e,t,r,o;const n=[Fr,Nr,Pr],a=[];function l(s,c){return s[2]==="card"?0:s[2]==="profile"?1:2}return e=l(i),t=a[e]=n[e](i),{c(){t.c(),r=ce(),this.c=_},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 Wr(i,e,t){let{width:r=320}=e,{size:o=1}=e,{type:n}=e;return i.$$set=a=>{"width"in a&&t(0,r=a.width),"size"in a&&t(1,o=a.size),"type"in a&&t(2,n=a.type)},[r,o,n]}class Y extends I{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,.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,.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,.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>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Wr,qr,H,{width:0,size:1,type:2},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),m()))}static get observedAttributes(){return["width","size","type"]}get width(){return this.$$.ctx[0]}set width(e){this.$$set({width:e}),m()}get size(){return this.$$.ctx[1]}set size(e){this.$$set({size:e}),m()}get type(){return this.$$.ctx[2]}set type(e){this.$$set({type:e}),m()}}customElements.define("goa-skeleton",Y);function ci(i){return Object.prototype.toString.call(i)==="[object Date]"}function Fe(i,e){if(i===e||i!==i)return()=>i;const t=typeof i;if(t!==typeof e||Array.isArray(i)!==Array.isArray(e))throw new Error("Cannot interpolate values of different type");if(Array.isArray(i)){const r=e.map((o,n)=>Fe(i[n],o));return o=>r.map(n=>n(o))}if(t==="object"){if(!i||!e)throw new Error("Object cannot be null");if(ci(i)&&ci(e)){i=i.getTime(),e=e.getTime();const n=e-i;return a=>new Date(i+a*n)}const r=Object.keys(e),o={};return r.forEach(n=>{o[n]=Fe(i[n],e[n])}),n=>{const a={};return r.forEach(l=>{a[l]=o[l](n)}),a}}if(t==="number"){const r=e-i;return o=>i+o*r}throw new Error(`Cannot interpolate ${t} values`)}function Vr(i,e={}){const t=Ne(i);let r,o=i;function n(a,l){if(i==null)return t.set(i=a),Promise.resolve();o=a;let s=r,c=!1,{delay:u=0,duration:f=400,easing:h=he,interpolate:y=Fe}=Ze(Ze({},e),l);if(f===0)return s&&(s.abort(),s=null),t.set(i=o),Promise.resolve();const g=xe()+u;let b;return r=ze(E=>{if(E<g)return!0;c||(b=y(i,a),typeof f=="function"&&(f=f(i,a)),c=!0),s&&(s.abort(),s=null);const z=E-g;return z>f?(t.set(i=a),!1):(t.set(i=b(h(z/f))),!0)}),r.promise}return{set:n,update:(a,l)=>n(a(o,i),l),subscribe:t.subscribe}}function di(i){let e,t,r,o,n,a,l,s,c;return{c(){e=ae("svg"),t=ae("circle"),n=ae("path"),d(t,"cx",i[3]),d(t,"cy",i[3]),d(t,"stroke",r=i[0]?"var(--goa-color-primary-dark)":"var(--goa-color-brand-light)"),d(t,"stroke-width",i[4]),d(t,"r",o=i[3]-i[4]/2),d(n,"d",a=i[9](i[7])),d(n,"stroke-width",i[4]),d(n,"stroke",l=i[0]?"var(--goa-color-brand-light)":"var(--goa-color-primary)"),d(n,"stroke-linecap","round"),d(e,"class",s=`spinner-${i[1]}`),d(e,"fill","none"),d(e,"viewBox",c="0 0 "+i[5]+" "+i[5]),d(e,"width",i[5]),d(e,"height",i[5]),d(e,"data-testid",i[2]),d(e,"xmlns","http://www.w3.org/2000/svg")},m(u,f){w(u,e,f),v(e,t),v(e,n)},p(u,f){f&8&&d(t,"cx",u[3]),f&8&&d(t,"cy",u[3]),f&1&&r!==(r=u[0]?"var(--goa-color-primary-dark)":"var(--goa-color-brand-light)")&&d(t,"stroke",r),f&16&&d(t,"stroke-width",u[4]),f&24&&o!==(o=u[3]-u[4]/2)&&d(t,"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&&x(e)}}}function Zr(i){let e,t=i[6]&&di(i);return{c(){t&&t.c(),e=ce(),this.c=_},m(r,o){t&&t.m(r,o),w(r,e,o)},p(r,[o]){r[6]?t?t.p(r,o):(t=di(r),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:_,o:_,d(r){t&&t.d(r),r&&x(e)}}}function Ur(i,e,t){let r,o,n,a,l,s,{size:c}=e,{invert:u=!1}=e,{type:f="infinite"}=e,{progress:h="0"}=e,{testid:y=""}=e;const g=Vr(0,{duration:500,easing:_r});yi(i,g,z=>t(7,s=z));function b(z){const C=n+a*Math.cos(z),L=n+a*Math.sin(z);return C+" "+L}function E(z){switch(f){case"progress":{const C=b(-Math.PI/2),L=b(-Math.PI/2+2*Math.PI*(z/100)),V=z%100<50?0:1;return`M ${C} A ${a} ${a} 0 ${V} 1 ${L}`}case"infinite":{const C=b(Math.PI*1.5),L=b(0);return`M ${C} A ${a} ${a} 0 1 0 ${L}`}}}return i.$$set=z=>{"size"in z&&t(10,c=z.size),"invert"in z&&t(0,u=z.invert),"type"in z&&t(1,f=z.type),"progress"in z&&t(11,h=z.progress),"testid"in z&&t(2,y=z.testid)},i.$$.update=()=>{i.$$.dirty&2048&&g.set(parseFloat(h)),i.$$.dirty&1024&&t(5,r=c&&{small:16,medium:32,large:64,xlarge:100}[c]),i.$$.dirty&1024&&t(4,o=c&&{small:2,medium:4,large:7,xlarge:9}[c]),i.$$.dirty&32&&t(3,n=r/2),i.$$.dirty&24&&t(12,a=n-o/2),i.$$.dirty&6146&&t(6,l=f==="infinite"?a:a&&h)},[u,f,y,n,o,r,l,s,g,E,c,h,a]}class ui extends I{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>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Ur,Zr,H,{size:10,invert:0,type:1,progress:11,testid:2},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),m()))}static get observedAttributes(){return["size","invert","type","progress","testid"]}get size(){return this.$$.ctx[10]}set size(e){this.$$set({size:e}),m()}get invert(){return this.$$.ctx[0]}set invert(e){this.$$set({invert:e}),m()}get type(){return this.$$.ctx[1]}set type(e){this.$$set({type:e}),m()}get progress(){return this.$$.ctx[11]}set progress(e){this.$$set({progress:e}),m()}get testid(){return this.$$.ctx[2]}set testid(e){this.$$set({testid:e}),m()}}customElements.define("goa-spinner",ui);function Xr(i){let e,t,r;return{c(){e=p("textarea"),this.c=_,d(e,"name",i[0]),d(e,"placeholder",i[2]),e.value=i[1],d(e,"rows",i[3]),d(e,"class","goa-textarea"),e.disabled=i[5],e.readOnly=i[6],d(e,"data-testid",i[4]),D(e,"error",i[7])},m(o,n){w(o,e,n),t||(r=U(e,"keyup",i[8]),t=!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&&D(e,"error",o[7])},i:_,o:_,d(o){o&&x(e),t=!1,r()}}}function Jr(i,e,t){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:h="false"}=e,{disabled:y="false"}=e;function g(b){const z=b.target.value;o||(b.target.dispatchEvent(new CustomEvent("_change",{composed:!0,bubbles:!1,cancelable:!0,detail:{event:b,name:a,value:z}})),b.stopPropagation())}return i.$$set=b=>{"name"in b&&t(0,a=b.name),"value"in b&&t(1,l=b.value),"placeholder"in b&&t(2,s=b.placeholder),"rows"in b&&t(3,c=b.rows),"testid"in b&&t(4,u=b.testid),"error"in b&&t(9,f=b.error),"readonly"in b&&t(10,h=b.readonly),"disabled"in b&&t(11,y=b.disabled)},i.$$.update=()=>{i.$$.dirty&512&&t(7,r=O(f)),i.$$.dirty&2048&&t(5,o=O(y)),i.$$.dirty&1024&&t(6,n=O(h))},[a,l,s,c,u,o,n,r,g,f,h,y]}class fi extends I{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>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Jr,Xr,H,{name:0,value:1,placeholder:2,rows:3,testid:4,error:9,readonly:10,disabled:11},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),m()))}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}),m()}get value(){return this.$$.ctx[1]}set value(e){this.$$set({value:e}),m()}get placeholder(){return this.$$.ctx[2]}set placeholder(e){this.$$set({placeholder:e}),m()}get rows(){return this.$$.ctx[3]}set rows(e){this.$$set({rows:e}),m()}get testid(){return this.$$.ctx[4]}set testid(e){this.$$set({testid:e}),m()}get error(){return this.$$.ctx[9]}set error(e){this.$$set({error:e}),m()}get readonly(){return this.$$.ctx[10]}set readonly(e){this.$$set({readonly:e}),m()}get disabled(){return this.$$.ctx[11]}set disabled(e){this.$$set({disabled:e}),m()}}customElements.define("goa-textarea",fi);function gi(i){let e,t;return{c(){e=p("div"),t=F(i[0]),d(e,"slot","title"),d(e,"class","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 hi(i){let e;return{c(){e=p("div"),d(e,"class","actions"),d(e,"slot","actions")},m(t,r){w(t,e,r),e.innerHTML=i[1]},p(t,r){r&2&&(e.innerHTML=t[1])},d(t){t&&x(e)}}}function Kr(i){let e,t,r,o,n=i[0]&&gi(i),a=i[1]&&hi(i);return{c(){e=p("goa-container"),n&&n.c(),t=A(),a&&a.c(),r=A(),o=p("div"),this.c=_,d(o,"class","content"),d(o,"slot",""),k(e,"variant",i[3]),k(e,"headingsize",i[4])},m(l,s){w(l,e,s),n&&n.m(e,null),v(e,t),a&&a.m(e,null),v(e,r),v(e,o),o.innerHTML=i[2]},p(l,[s]){l[0]?n?n.p(l,s):(n=gi(l),n.c(),n.m(e,t)):n&&(n.d(1),n=null),l[1]?a?a.p(l,s):(a=hi(l),a.c(),a.m(e,r)):a&&(a.d(1),a=null),s&4&&(o.innerHTML=l[2]),s&8&&k(e,"variant",l[3]),s&16&&k(e,"headingsize",l[4])},i:_,o:_,d(l){l&&x(e),n&&n.d(),a&&a.d()}}}function Yr(i,e,t){let{title:r}=e,{actions:o=""}=e,{content:n}=e,{variant:a="default"}=e,{headingsize:l="large"}=e;return i.$$set=s=>{"title"in s&&t(0,r=s.title),"actions"in s&&t(1,o=s.actions),"content"in s&&t(2,n=s.content),"variant"in s&&t(3,a=s.variant),"headingsize"in s&&t(4,l=s.headingsize)},[r,o,n,a,l]}class mi extends I{constructor(e){super();G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Yr,Kr,H,{title:0,actions:1,content:2,variant:3,headingsize:4},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),m()))}static get observedAttributes(){return["title","actions","content","variant","headingsize"]}get title(){return this.$$.ctx[0]}set title(e){this.$$set({title:e}),m()}get actions(){return this.$$.ctx[1]}set actions(e){this.$$set({actions:e}),m()}get content(){return this.$$.ctx[2]}set content(e){this.$$set({content:e}),m()}get variant(){return this.$$.ctx[3]}set variant(e){this.$$set({variant:e}),m()}get headingsize(){return this.$$.ctx[4]}set headingsize(e){this.$$set({headingsize:e}),m()}}customElements.define("test-container",mi),T.ContainerWrapper=mi,T.GoAAppHeader=lt,T.GoABadge=ct,T.GoAButton=dt,T.GoAButtonGroup=ut,T.GoACallout=ft,T.GoACard=gt,T.GoACardActions=ht,T.GoACardContent=mt,T.GoACardGroup=bt,T.GoACardImage=vt,T.GoACheckbox=yt,T.GoACircularProgress=$t,T.GoAContainer=pt,T.GoADropdown=Et,T.GoADropdownItem=Ct,T.GoAFlexRow=At,T.GoAFormItem=Ht,T.GoAHeroBanner=It,T.GoAIcon=Gt,T.GoAIconButton=Ot,T.GoAInput=Pt,T.GoAMicrositeHeader=si,T.GoAModal=Zt,T.GoANotification=Xt,T.GoAPageBlock=nt,T.GoAPageLayout=Jt,T.GoARadioGroup=ei,T.GoARadioItem=ti,T.GoAScrollable=ii,T.GoASkeleton=Y,T.GoASpinner=ui,T.GoATextArea=fi,Object.defineProperty(T,"__esModule",{value:!0}),T[Symbol.toStringTag]="Module"});
|
|
30
|
+
`),u&&u.c(),d(e,"data-testid","level"),d(e,"class",o="service-level service-level--"+i[0]?.toLowerCase()),d(s,"href","https://www.alberta.ca/index.aspx"),d(a,"data-testid","site-text"),d(a,"class","site-text")},m(f,h){w(f,e,h),v(e,r),w(f,n,h),w(f,a,h),v(a,l),v(a,s),v(a,c),u&&u.m(a,null)},p(f,h){h&1&&t!==(t=li(f[0])+"")&&Z(r,t),h&1&&o!==(o="service-level service-level--"+f[0]?.toLowerCase())&&d(e,"class",o),f[2]?u?u.p(f,h):(u=ai(f),u.c(),u.m(a,null)):u&&(u.d(1),u=null)},d(f){f&&x(e),f&&x(n),f&&x(a),u&&u.d()}}}function ai(i){let e,t,r,o;return{c(){e=p("span"),t=F("\u2014 help us improve it by giving "),r=p("a"),o=F("feedback"),d(r,"href",i[2]),d(e,"data-testid","feedback")},m(n,a){w(n,e,a),v(e,t),v(e,r),v(r,o)},p(n,a){a&4&&d(r,"href",n[2])},d(n){n&&x(e)}}}function ni(i){let e,t;return{c(){e=p("div"),t=F(i[1]),d(e,"data-testid","version"),d(e,"class","version")},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 Sr(i){let e,t,r,o,n,a=i[0]==="live"&&ri(),l=i[0]!=="live"&&oi(i),s=i[1]&&ni(i);return{c(){e=p("header"),a&&a.c(),t=A(),l&&l.c(),r=A(),o=p("div"),n=A(),s&&s.c(),this.c=_,d(o,"class","spacer"),d(e,"class","goa-official-site-header")},m(c,u){w(c,e,u),a&&a.m(e,null),v(e,t),l&&l.m(e,null),v(e,r),v(e,o),v(e,n),s&&s.m(e,null)},p(c,[u]){c[0]==="live"?a||(a=ri(),a.c(),a.m(e,t)):a&&(a.d(1),a=null),c[0]!=="live"?l?l.p(c,u):(l=oi(c),l.c(),l.m(e,r)):l&&(l.d(1),l=null),c[1]?s?s.p(c,u):(s=ni(c),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:_,o:_,d(c){c&&x(e),a&&a.d(),l&&l.d(),s&&s.d()}}}function li(i){return!i||(i==null?void 0:i.length)===0?"":i[0].toUpperCase()+i.slice(1)}function Br(i,e,t){let{level:r}=e,{version:o}=e,{feedbackurl:n}=e;return i.$$set=a=>{"level"in a&&t(0,r=a.level),"version"in a&&t(1,o=a.version),"feedbackurl"in a&&t(2,n=a.feedbackurl)},[r,o,n]}class si extends I{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>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Br,Sr,H,{level:0,version:1,feedbackurl:2},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),m()))}static get observedAttributes(){return["level","version","feedbackurl"]}get level(){return this.$$.ctx[0]}set level(e){this.$$set({level:e}),m()}get version(){return this.$$.ctx[1]}set version(e){this.$$set({version:e}),m()}get feedbackurl(){return this.$$.ctx[2]}set feedbackurl(e){this.$$set({feedbackurl:e}),m()}}customElements.define("goa-microsite-header",si);function Pr(i){let e,t;return{c(){e=p("div"),d(e,"class",t="skeleton "+i[2]+` ${i[2]}-${i[1]}`)},m(r,o){w(r,e,o)},p(r,o){o&6&&t!==(t="skeleton "+r[2]+` ${r[2]}-${r[1]}`)&&d(e,"class",t)},i:_,o:_,d(r){r&&x(e)}}}function Nr(i){let e,t,r,o,n,a,l,s,c,u;return r=new Y({props:{type:"avatar",size:i[1]}}),a=new Y({props:{type:"title",size:i[1]}}),s=new Y({props:{type:"text-small",size:i[1]}}),{c(){e=p("div"),t=p("div"),ie(r.$$.fragment),o=A(),n=p("div"),ie(a.$$.fragment),l=A(),ie(s.$$.fragment),d(t,"class","profile-avatar"),d(n,"class","profile-name"),d(e,"class",c="profile profile-"+i[1])},m(f,h){w(f,e,h),v(e,t),$(r,t,null),v(e,o),v(e,n),$(a,n,null),v(n,l),$(s,n,null),u=!0},p(f,h){const y={};h&2&&(y.size=f[1]),r.$set(y);const g={};h&2&&(g.size=f[1]),a.$set(g);const b={};h&2&&(b.size=f[1]),s.$set(b),(!u||h&2&&c!==(c="profile profile-"+f[1]))&&d(e,"class",c)},i(f){u||(N(r.$$.fragment,f),N(a.$$.fragment,f),N(s.$$.fragment,f),u=!0)},o(f){W(r.$$.fragment,f),W(a.$$.fragment,f),W(s.$$.fragment,f),u=!1},d(f){f&&x(e),ee(r),ee(a),ee(s)}}}function Fr(i){let e,t,r,o,n,a,l,s,c,u,f,h,y;return t=new Y({props:{type:"image",size:i[1]}}),n=new Y({props:{type:"header",size:i[1]}}),l=new Y({props:{type:"text",size:i[1]}}),c=new Y({props:{type:"text",size:i[1]}}),f=new Y({props:{type:"text",size:i[1]}}),{c(){e=p("div"),ie(t.$$.fragment),r=A(),o=p("div"),ie(n.$$.fragment),a=A(),ie(l.$$.fragment),s=A(),ie(c.$$.fragment),u=A(),ie(f.$$.fragment),d(o,"class","card-content"),d(e,"class",h="card card-"+i[1]),S(e,"--width",i[0]+"px")},m(g,b){w(g,e,b),$(t,e,null),v(e,r),v(e,o),$(n,o,null),v(o,a),$(l,o,null),v(o,s),$(c,o,null),v(o,u),$(f,o,null),y=!0},p(g,b){const E={};b&2&&(E.size=g[1]),t.$set(E);const z={};b&2&&(z.size=g[1]),n.$set(z);const C={};b&2&&(C.size=g[1]),l.$set(C);const L={};b&2&&(L.size=g[1]),c.$set(L);const V={};b&2&&(V.size=g[1]),f.$set(V),(!y||b&2&&h!==(h="card card-"+g[1]))&&d(e,"class",h),(!y||b&1)&&S(e,"--width",g[0]+"px")},i(g){y||(N(t.$$.fragment,g),N(n.$$.fragment,g),N(l.$$.fragment,g),N(c.$$.fragment,g),N(f.$$.fragment,g),y=!0)},o(g){W(t.$$.fragment,g),W(n.$$.fragment,g),W(l.$$.fragment,g),W(c.$$.fragment,g),W(f.$$.fragment,g),y=!1},d(g){g&&x(e),ee(t),ee(n),ee(l),ee(c),ee(f)}}}function qr(i){let e,t,r,o;const n=[Fr,Nr,Pr],a=[];function l(s,c){return s[2]==="card"?0:s[2]==="profile"?1:2}return e=l(i),t=a[e]=n[e](i),{c(){t.c(),r=ce(),this.c=_},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 Wr(i,e,t){let{width:r=320}=e,{size:o=1}=e,{type:n}=e;return i.$$set=a=>{"width"in a&&t(0,r=a.width),"size"in a&&t(1,o=a.size),"type"in a&&t(2,n=a.type)},[r,o,n]}class Y extends I{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>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Wr,qr,H,{width:0,size:1,type:2},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),m()))}static get observedAttributes(){return["width","size","type"]}get width(){return this.$$.ctx[0]}set width(e){this.$$set({width:e}),m()}get size(){return this.$$.ctx[1]}set size(e){this.$$set({size:e}),m()}get type(){return this.$$.ctx[2]}set type(e){this.$$set({type:e}),m()}}customElements.define("goa-skeleton",Y);function ci(i){return Object.prototype.toString.call(i)==="[object Date]"}function Fe(i,e){if(i===e||i!==i)return()=>i;const t=typeof i;if(t!==typeof e||Array.isArray(i)!==Array.isArray(e))throw new Error("Cannot interpolate values of different type");if(Array.isArray(i)){const r=e.map((o,n)=>Fe(i[n],o));return o=>r.map(n=>n(o))}if(t==="object"){if(!i||!e)throw new Error("Object cannot be null");if(ci(i)&&ci(e)){i=i.getTime(),e=e.getTime();const n=e-i;return a=>new Date(i+a*n)}const r=Object.keys(e),o={};return r.forEach(n=>{o[n]=Fe(i[n],e[n])}),n=>{const a={};return r.forEach(l=>{a[l]=o[l](n)}),a}}if(t==="number"){const r=e-i;return o=>i+o*r}throw new Error(`Cannot interpolate ${t} values`)}function Vr(i,e={}){const t=Ne(i);let r,o=i;function n(a,l){if(i==null)return t.set(i=a),Promise.resolve();o=a;let s=r,c=!1,{delay:u=0,duration:f=400,easing:h=he,interpolate:y=Fe}=Ze(Ze({},e),l);if(f===0)return s&&(s.abort(),s=null),t.set(i=o),Promise.resolve();const g=xe()+u;let b;return r=ze(E=>{if(E<g)return!0;c||(b=y(i,a),typeof f=="function"&&(f=f(i,a)),c=!0),s&&(s.abort(),s=null);const z=E-g;return z>f?(t.set(i=a),!1):(t.set(i=b(h(z/f))),!0)}),r.promise}return{set:n,update:(a,l)=>n(a(o,i),l),subscribe:t.subscribe}}function di(i){let e,t,r,o,n,a,l,s,c;return{c(){e=ae("svg"),t=ae("circle"),n=ae("path"),d(t,"cx",i[3]),d(t,"cy",i[3]),d(t,"stroke",r=i[0]?"var(--goa-color-primary-dark)":"var(--goa-color-brand-light)"),d(t,"stroke-width",i[4]),d(t,"r",o=i[3]-i[4]/2),d(n,"d",a=i[9](i[7])),d(n,"stroke-width",i[4]),d(n,"stroke",l=i[0]?"var(--goa-color-brand-light)":"var(--goa-color-primary)"),d(n,"stroke-linecap","round"),d(e,"class",s=`spinner-${i[1]}`),d(e,"fill","none"),d(e,"viewBox",c="0 0 "+i[5]+" "+i[5]),d(e,"width",i[5]),d(e,"height",i[5]),d(e,"data-testid",i[2]),d(e,"xmlns","http://www.w3.org/2000/svg")},m(u,f){w(u,e,f),v(e,t),v(e,n)},p(u,f){f&8&&d(t,"cx",u[3]),f&8&&d(t,"cy",u[3]),f&1&&r!==(r=u[0]?"var(--goa-color-primary-dark)":"var(--goa-color-brand-light)")&&d(t,"stroke",r),f&16&&d(t,"stroke-width",u[4]),f&24&&o!==(o=u[3]-u[4]/2)&&d(t,"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&&x(e)}}}function Zr(i){let e,t=i[6]&&di(i);return{c(){t&&t.c(),e=ce(),this.c=_},m(r,o){t&&t.m(r,o),w(r,e,o)},p(r,[o]){r[6]?t?t.p(r,o):(t=di(r),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:_,o:_,d(r){t&&t.d(r),r&&x(e)}}}function Ur(i,e,t){let r,o,n,a,l,s,{size:c}=e,{invert:u=!1}=e,{type:f="infinite"}=e,{progress:h="0"}=e,{testid:y=""}=e;const g=Vr(0,{duration:500,easing:_r});yi(i,g,z=>t(7,s=z));function b(z){const C=n+a*Math.cos(z),L=n+a*Math.sin(z);return C+" "+L}function E(z){switch(f){case"progress":{const C=b(-Math.PI/2),L=b(-Math.PI/2+2*Math.PI*(z/100)),V=z%100<50?0:1;return`M ${C} A ${a} ${a} 0 ${V} 1 ${L}`}case"infinite":{const C=b(Math.PI*1.5),L=b(0);return`M ${C} A ${a} ${a} 0 1 0 ${L}`}}}return i.$$set=z=>{"size"in z&&t(10,c=z.size),"invert"in z&&t(0,u=z.invert),"type"in z&&t(1,f=z.type),"progress"in z&&t(11,h=z.progress),"testid"in z&&t(2,y=z.testid)},i.$$.update=()=>{i.$$.dirty&2048&&g.set(parseFloat(h)),i.$$.dirty&1024&&t(5,r=c&&{small:16,medium:32,large:64,xlarge:100}[c]),i.$$.dirty&1024&&t(4,o=c&&{small:2,medium:4,large:7,xlarge:9}[c]),i.$$.dirty&32&&t(3,n=r/2),i.$$.dirty&24&&t(12,a=n-o/2),i.$$.dirty&6146&&t(6,l=f==="infinite"?a:a&&h)},[u,f,y,n,o,r,l,s,g,E,c,h,a]}class ui extends I{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>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Ur,Zr,H,{size:10,invert:0,type:1,progress:11,testid:2},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),m()))}static get observedAttributes(){return["size","invert","type","progress","testid"]}get size(){return this.$$.ctx[10]}set size(e){this.$$set({size:e}),m()}get invert(){return this.$$.ctx[0]}set invert(e){this.$$set({invert:e}),m()}get type(){return this.$$.ctx[1]}set type(e){this.$$set({type:e}),m()}get progress(){return this.$$.ctx[11]}set progress(e){this.$$set({progress:e}),m()}get testid(){return this.$$.ctx[2]}set testid(e){this.$$set({testid:e}),m()}}customElements.define("goa-spinner",ui);function Xr(i){let e,t,r;return{c(){e=p("textarea"),this.c=_,d(e,"name",i[0]),d(e,"placeholder",i[2]),e.value=i[1],d(e,"rows",i[3]),d(e,"class","goa-textarea"),e.disabled=i[5],e.readOnly=i[6],d(e,"data-testid",i[4]),D(e,"error",i[7])},m(o,n){w(o,e,n),t||(r=U(e,"keyup",i[8]),t=!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&&D(e,"error",o[7])},i:_,o:_,d(o){o&&x(e),t=!1,r()}}}function Jr(i,e,t){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:h="false"}=e,{disabled:y="false"}=e;function g(b){const z=b.target.value;o||(b.target.dispatchEvent(new CustomEvent("_change",{composed:!0,bubbles:!1,cancelable:!0,detail:{event:b,name:a,value:z}})),b.stopPropagation())}return i.$$set=b=>{"name"in b&&t(0,a=b.name),"value"in b&&t(1,l=b.value),"placeholder"in b&&t(2,s=b.placeholder),"rows"in b&&t(3,c=b.rows),"testid"in b&&t(4,u=b.testid),"error"in b&&t(9,f=b.error),"readonly"in b&&t(10,h=b.readonly),"disabled"in b&&t(11,y=b.disabled)},i.$$.update=()=>{i.$$.dirty&512&&t(7,r=O(f)),i.$$.dirty&2048&&t(5,o=O(y)),i.$$.dirty&1024&&t(6,n=O(h))},[a,l,s,c,u,o,n,r,g,f,h,y]}class fi extends I{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>",G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Jr,Xr,H,{name:0,value:1,placeholder:2,rows:3,testid:4,error:9,readonly:10,disabled:11},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),m()))}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}),m()}get value(){return this.$$.ctx[1]}set value(e){this.$$set({value:e}),m()}get placeholder(){return this.$$.ctx[2]}set placeholder(e){this.$$set({placeholder:e}),m()}get rows(){return this.$$.ctx[3]}set rows(e){this.$$set({rows:e}),m()}get testid(){return this.$$.ctx[4]}set testid(e){this.$$set({testid:e}),m()}get error(){return this.$$.ctx[9]}set error(e){this.$$set({error:e}),m()}get readonly(){return this.$$.ctx[10]}set readonly(e){this.$$set({readonly:e}),m()}get disabled(){return this.$$.ctx[11]}set disabled(e){this.$$set({disabled:e}),m()}}customElements.define("goa-textarea",fi);function gi(i){let e,t;return{c(){e=p("div"),t=F(i[0]),d(e,"slot","title"),d(e,"class","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 hi(i){let e;return{c(){e=p("div"),d(e,"class","actions"),d(e,"slot","actions")},m(t,r){w(t,e,r),e.innerHTML=i[1]},p(t,r){r&2&&(e.innerHTML=t[1])},d(t){t&&x(e)}}}function Kr(i){let e,t,r,o,n=i[0]&&gi(i),a=i[1]&&hi(i);return{c(){e=p("goa-container"),n&&n.c(),t=A(),a&&a.c(),r=A(),o=p("div"),this.c=_,d(o,"class","content"),d(o,"slot",""),k(e,"variant",i[3]),k(e,"headingsize",i[4])},m(l,s){w(l,e,s),n&&n.m(e,null),v(e,t),a&&a.m(e,null),v(e,r),v(e,o),o.innerHTML=i[2]},p(l,[s]){l[0]?n?n.p(l,s):(n=gi(l),n.c(),n.m(e,t)):n&&(n.d(1),n=null),l[1]?a?a.p(l,s):(a=hi(l),a.c(),a.m(e,r)):a&&(a.d(1),a=null),s&4&&(o.innerHTML=l[2]),s&8&&k(e,"variant",l[3]),s&16&&k(e,"headingsize",l[4])},i:_,o:_,d(l){l&&x(e),n&&n.d(),a&&a.d()}}}function Yr(i,e,t){let{title:r}=e,{actions:o=""}=e,{content:n}=e,{variant:a="default"}=e,{headingsize:l="large"}=e;return i.$$set=s=>{"title"in s&&t(0,r=s.title),"actions"in s&&t(1,o=s.actions),"content"in s&&t(2,n=s.content),"variant"in s&&t(3,a=s.variant),"headingsize"in s&&t(4,l=s.headingsize)},[r,o,n,a,l]}class mi extends I{constructor(e){super();G(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Yr,Kr,H,{title:0,actions:1,content:2,variant:3,headingsize:4},null),e&&(e.target&&w(e.target,this,e.anchor),e.props&&(this.$set(e.props),m()))}static get observedAttributes(){return["title","actions","content","variant","headingsize"]}get title(){return this.$$.ctx[0]}set title(e){this.$$set({title:e}),m()}get actions(){return this.$$.ctx[1]}set actions(e){this.$$set({actions:e}),m()}get content(){return this.$$.ctx[2]}set content(e){this.$$set({content:e}),m()}get variant(){return this.$$.ctx[3]}set variant(e){this.$$set({variant:e}),m()}get headingsize(){return this.$$.ctx[4]}set headingsize(e){this.$$set({headingsize:e}),m()}}customElements.define("test-container",mi),T.ContainerWrapper=mi,T.GoAAppHeader=lt,T.GoABadge=ct,T.GoAButton=dt,T.GoAButtonGroup=ut,T.GoACallout=ft,T.GoACard=gt,T.GoACardActions=ht,T.GoACardContent=mt,T.GoACardGroup=bt,T.GoACardImage=vt,T.GoACheckbox=yt,T.GoACircularProgress=$t,T.GoAContainer=pt,T.GoADropdown=Et,T.GoADropdownItem=Ct,T.GoAFlexRow=At,T.GoAFormItem=Ht,T.GoAHeroBanner=It,T.GoAIcon=Gt,T.GoAIconButton=Ot,T.GoAInput=Pt,T.GoAMicrositeHeader=si,T.GoAModal=Zt,T.GoANotification=Xt,T.GoAPageBlock=nt,T.GoAPageLayout=Jt,T.GoARadioGroup=ei,T.GoARadioItem=ti,T.GoAScrollable=ii,T.GoASkeleton=Y,T.GoASpinner=ui,T.GoATextArea=fi,Object.defineProperty(T,"__esModule",{value:!0}),T[Symbol.toStringTag]="Module"});
|