@abgov/web-components 1.0.0-alpha.97 → 1.0.0-alpha.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web-components.es.js +2 -2
- package/web-components.umd.js +2 -2
package/package.json
CHANGED
package/web-components.es.js
CHANGED
|
@@ -6131,7 +6131,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
6131
6131
|
let { label = "" } = $$props;
|
|
6132
6132
|
let { helptext = "" } = $$props;
|
|
6133
6133
|
let { error = "" } = $$props;
|
|
6134
|
-
let { optional = "" } = $$props;
|
|
6134
|
+
let { optional = "false" } = $$props;
|
|
6135
6135
|
|
|
6136
6136
|
$$self.$$set = $$props => {
|
|
6137
6137
|
if ('label' in $$props) $$invalidate(0, label = $$props.label);
|
|
@@ -7584,7 +7584,7 @@ class Input extends SvelteElement {
|
|
|
7584
7584
|
constructor(options) {
|
|
7585
7585
|
super();
|
|
7586
7586
|
|
|
7587
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box
|
|
7587
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box}.container{position:relative;width:100%}@media(min-width: 640px){.container{width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:var(--input-border-radius);background:white;display:inline-flex;align-items:stretch;vertical-align:middle;min-width:100%}.goa-input:hover{border-color:var(--goa-color-interactive--hover)}.goa-input:active,.goa-input:focus,.goa-input:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-input.type--range{border:none}.goa-input.type--range:active,.goa-input.type--range:focus,.goa-input.type--range:focus-within{box-shadow:none}.goa-input-leading-icon{margin-left:0.5rem}.goa-input-trailing-icon{margin-right:0.5rem}input{display:inline-block;color:var(--goa-color-text);font-size:var(--input-font-size);padding:var(--input-padding);line-height:calc(40px - calc(var(--input-padding) * 2));background-color:transparent;width:0;flex:1 1 auto}input[type=text],input[type=date],input[type="datetime-local"],input[type=number]{font-family:var(--font-family)}input[readonly]{cursor:pointer}.goa-input-leading-icon+input{padding-left:0.5rem}input,input:focus,input:hover,input:active{outline:none;border:none}.goa-input--disabled,.goa-input--disabled:hover,.goa-input--disabled:active,.goa-input--disabled:focus{background-color:var(--color-gray-100);border-color:var(--color-gray-200);cursor:default;box-shadow:none}.goa-input--disabled input,.goa-input--disabled input:hover,.goa-input--disabled input:active,.goa-input--disabled input:focus{color:var(--goa-color-text-secondary)}.goa-input--disabled input:hover{cursor:default !important}.prefix,.suffix{background-color:var(--color-gray-100);padding:0 0.75rem;display:flex;align-items:center}.prefix{border-top-left-radius:var(--input-border-radius);border-bottom-left-radius:var(--input-border-radius);border-right:1px solid var(--color-gray-600)}.suffix{border-top-right-radius:var(--input-border-radius);border-bottom-right-radius:var(--input-border-radius);border-left:1px solid var(--color-gray-600)}input.input--goa{display:block;border:none;flex:1 1 auto}.variant--bare{border:none}.variant--bare:focus,.variant--bare:active,.variant--bare:focus-within{box-shadow:none}.counter{position:absolute;padding-top:0.25rem;right:0;font-size:var(--fs-sm)}.counter-error{color:var(--goa-color-interactive--error)}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive--error)}input[type="search" i]:enabled:read-write:-webkit-any(:focus, :hover)::-webkit-search-cancel-button{position:relative;right:var(--search-icon-offset);cursor:pointer;-webkit-appearance:none;height:1.2rem;width:1.2rem;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23333" d="M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"/></svg>')
|
|
7588
7588
|
center center no-repeat}</style>`;
|
|
7589
7589
|
|
|
7590
7590
|
init(
|
package/web-components.umd.js
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
:host {
|
|
30
30
|
flex-grow: ${n};
|
|
31
31
|
}
|
|
32
|
-
`,o.appendChild(c)});function l(s){te[s?"unshift":"push"](()=>{o=s,t(2,o)})}return i.$$set=s=>{"name"in s&&t(0,r=s.name),"maxcolumncount"in s&&t(1,n=s.maxcolumncount)},[r,n,o,a,l]}class Xr extends O{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{flex:auto}.title{font-size:var(--fs-xl);line-height:var(--lh-lg)}.hidden{display:none}.links{display:block;list-style-type:none;padding-left:0}@media(min-width: 720px){.links{display:var(--narrow-display-type);list-style-type:none;padding-left:0;flex-direction:column;column-count:var(--narrow-column-count)}}@media(min-width: 1024px){.links{display:var(--wide-display-type);list-style-type:none;padding-left:0;flex-direction:column;column-count:var(--wide-column-count)}}li{padding:0.75rem 0}a{color:var(--goa-color-text)}</style>",P(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Kr,Zr,N,{name:0,maxcolumncount:1},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["name","maxcolumncount"]}get name(){return this.$$.ctx[0]}set name(e){this.$$set({name:e}),h()}get maxcolumncount(){return this.$$.ctx[1]}set maxcolumncount(e){this.$$set({maxcolumncount:e}),h()}}customElements.define("goa-app-footer-nav-section",Xr);function It(i){let e;return{c(){e=b("goa-divider"),C(e,"spacing","small")},m(t,r){v(t,e,r)},d(t){t&&z(e)}}}function Yr(i){let e,t,r,n,o,a,l,s,c,d,f,g=i[1]?.length&&It();return{c(){e=b("div"),t=b("div"),t.innerHTML='<slot name="nav"></slot>',r=H(),g&&g.c(),n=H(),o=b("div"),a=b("div"),a.innerHTML='<slot name="meta"></slot>',l=H(),s=b("div"),c=b("a"),c.innerHTML='<img alt="GoA Logo" class="logo" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='149.351' height='42' viewBox='0 0 149.351 42'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:none;%7D.b%7Bclip-path:url(%23a);%7D.c%7Bfill:%2300aad2;%7D.d%7Bfill:%235f6a72;%7D%3C/style%3E%3CclipPath id='a'%3E%3Crect class='a' width='149.351' height='42'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg class='b'%3E%3Crect class='c' width='13.555' height='13.555' transform='translate(135.796 21.524)'/%3E%3Cpath class='d' d='M63.082,33.088c-1.383.138-2.835.277-4.357.346.553-4.357,2.835-10.373,5.671-9.405,1.66.553.761,5.671-1.314,9.059m-3.527,2.974a3.761,3.761,0,0,1-1.245,0,.851.851,0,0,0,.346-.692v-.553c.761,0,1.936-.138,3.389-.277a4.327,4.327,0,0,1-2.49,1.521M76.844,25.688c1.8-1.66,2.7-1.521,2.9-1.106.484.968-1.591,4.357-5.671,6.224a10.328,10.328,0,0,1,2.766-5.118m66.736,1.66c-.207-3.389-3.181-3.942-3.6-2.974-.138.346,1.106.207,1.106,2.628,0,3.942-4.011,9.129-9.129,9.129-5.532,0-6.985-4.357-7.261-6.432-.207-1.452.138-3.458-2.351-3.181-1.729.207-3.25,3.527-5.463,6.362-1.867,2.42-2.7,2.213-2.282.138.553-2.628,2.7-8.714,5.187-9.129,1.176-.207,1.591,1.8,2.075.553s.069-4.011-2.559-4.011c-1.8,0-3.942,1.936-5.74,4.08-1.521,1.936-9.336,13.416-12.656,10.927-1.521-1.176-1.383-5.878-.415-11.411,3.873-1.521,7.123-1.037,8.921-.138.9.415,1.037.346.622-.622-.553-1.452-3.665-3.734-8.575-2.7-.138,0-.207.069-.346.069.415-1.8.83-3.665,1.383-5.463.484-1.66,1.8-4.5-1.729-4.979-1.106-.207-.622.346-1.037,1.867-.692,2.766-1.521,6.362-2.144,10.028a19.745,19.745,0,0,0-7.538,8.091,38.59,38.59,0,0,0,.9-4.772,1.589,1.589,0,0,0-1.245-1.729c-.761-.207-1.729.138-2.628,1.452-2.144,3.043-4.841,7.815-8.99,9.82-2.974,1.452-4.288,0-4.357-2.282a9.869,9.869,0,0,0,1.521-.553c5.394-2.351,7.192-5.947,5.878-8.16-1.314-2.075-4.979-1.452-7.953,1.66a11.175,11.175,0,0,0-2.7,6.5c-1.245.277-2.628.484-4.219.692,2.49-4.08,2.282-9.613-1.383-10.581-4.288-1.106-6.432,3.043-7.331,6.5.346-3.873.9-7.745,1.591-11.549.346-1.66,1.452-4.5-2.075-4.979-1.106-.207-.968.346-.9,1.867.138,2.075-2.144,14.454-.968,19.848-1.521.484-2.144,1.66-.207,2.835,1.383.83,4.357,1.106,7.331-.346a9.3,9.3,0,0,0,2.766-2.144c1.8-.207,3.665-.553,5.394-.83.277,2.42,1.867,4.219,5.463,3.873,5.118-.484,9.682-6.777,11.411-9.82-.346,3.25-2.42,10.373,1.176,10.028,1.383-.138.83-.346.9-1.591.346-4.288,3.873-7.953,7.4-10.166-.622,5.256-.415,9.958,2.006,11.411,4.426,2.766,10.581-4.5,14.039-8.921-1.729,3.942-2.7,8.921-.138,9.682,3.043.9,5.463-4.219,8.3-8.091.346,2.766,2.213,7.607,9.682,7.607,8.022-.069,13.071-4.91,12.863-10.1m-108.3,8.645A66.439,66.439,0,0,1,27.4,32.534a59.168,59.168,0,0,0,6.777-2.974,54.453,54.453,0,0,0,1.106,6.432m20.4,3.873c-.069-.207-.622.069-1.106,0-1.452-.207-3.389-2.213-3.942-5.463-1.037-5.878-.415-11.687,1.314-20.332.346-1.66,1.452-4.5-2.075-5.048-1.106-.138-.553.415-.83,1.867C47.66,17.32,42.4,21.954,37.149,25.066,36.6,17.735,36.8,9.505,38.186,4.526c1.176-4.219,2.559-3.458.83-4.357s-3.734.277-5.325,3.458S24.839,23.89,13.221,35.439C7.273,41.317,1.879,38.274.842,37.375c-.9-.761-1.176.415-.138,1.591,4.772,5.256,11.826,2.282,14.384-.277,7.054-7.054,15.283-22.268,18.6-28.7a98.251,98.251,0,0,0,.277,16.874,50.129,50.129,0,0,1-8.3,3.181c-1.66.415-2.7,1.106-2.7,1.867s1.106,1.521,2.7,2.282c2.835,1.383,11.2,5.256,13.209,6.5,1.729,1.037,2.628.207,3.112-.9.692-1.452-1.176-2.282-2.974-2.766a60.545,60.545,0,0,1-1.66-9.267c4.219-2.628,8.437-6.086,10.788-10.443C47.522,20.916,46,33.3,49.873,38.482a5.451,5.451,0,0,0,4.564,2.213c.968-.069,1.383-.692,1.245-.83' transform='translate(-0.038 0.124)'/%3E%3C/g%3E%3C/svg%3E"/>',d=H(),f=b("a"),f.textContent=`\xA9 ${i[3]} Government of Alberta`,this.c=p,u(t,"class","nav-links"),u(a,"class","meta-links"),u(c,"href","https://alberta.ca"),u(f,"href","https://alberta.ca"),u(f,"class","goa-copyright"),u(s,"class","abgov"),B(s,"with-meta-links",i[2]?.length),u(o,"class","meta-section"),B(o,"with-meta-links",i[2]?.length),u(e,"class","app-footer")},m(w,_){v(w,e,_),m(e,t),m(e,r),g&&g.m(e,null),m(e,n),m(e,o),m(o,a),m(o,l),m(o,s),m(s,c),m(s,d),m(s,f),i[4](e)},p(w,[_]){w[1]?.length?g||(g=It(),g.c(),g.m(e,n)):g&&(g.d(1),g=null),_&4&&B(s,"with-meta-links",w[2]?.length),_&4&&B(o,"with-meta-links",w[2]?.length)},i:p,o:p,d(w){w&&z(e),g&&g.d(),i[4](null)}}}function Jr(i,e,t){let r,n,o;const a=new Date().getFullYear();Y(async()=>{await Oe();const s=r.querySelector("slot[name=nav]"),c=r.querySelector("slot[name=meta]");t(1,n=s.assignedElements()),t(2,o=c.assignedElements())});function l(s){te[s?"unshift":"push"](()=>{r=s,t(0,r)})}return[r,n,o,a,l]}class Qr extends O{constructor(e){super();this.shadowRoot.innerHTML="<style>.app-footer{background-color:var(--color-gray-100);padding:2rem;border-top:2px solid var(--color-gray-200);border-bottom:1rem solid var(--goa-color-brand)}.meta-section{display:flex;flex-direction:column;padding:1rem 0}.meta-section.with-meta-links{gap:2rem;justify-content:space-between}.meta-links{display:none}.with-meta-links .meta-links{display:block}.nav-links{display:flex;flex-direction:column;gap:2rem}.abgov{display:flex;flex-direction:column;justify-content:space-between;width:100%}@media(min-width: 640px){.meta-section{flex-direction:row;gap:2rem}.nav-links{flex-direction:row}.abgov{align-items:center;flex-direction:row-reverse}}.abgov.with-meta-links{gap:1rem;flex-direction:column;width:unset}@media(min-width: 640px){.abgov.with-meta-links{align-items:flex-end}}.goa-copyright{white-space:nowrap}a{color:var(--goa-color-text-secondary)}</style>",P(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Jr,Yr,N,{},null),e&&e.target&&v(e.target,this,e.anchor)}}customElements.define("goa-app-footer",Qr);function St(i){let e,t,r,n=i[3]&&Dt();return{c(){e=b("div"),t=F(i[0]),r=H(),n&&n.c(),u(e,"class","label")},m(o,a){v(o,e,a),m(e,t),m(e,r),n&&n.m(e,null)},p(o,a){a&1&&q(t,o[0]),o[3]?n||(n=Dt(),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(o){o&&z(e),n&&n.d()}}}function Dt(i){let e;return{c(){e=b("em"),e.textContent="(optional)"},m(t,r){v(t,e,r)},d(t){t&&z(e)}}}function Bt(i){let e,t;return{c(){e=b("div"),t=F(i[2]),u(e,"class","error-msg")},m(r,n){v(r,e,n),m(e,t)},p(r,n){n&4&&q(t,r[2])},d(r){r&&z(e)}}}function Nt(i){let e,t;return{c(){e=b("div"),t=F(i[1]),u(e,"class","help-msg")},m(r,n){v(r,e,n),m(e,t)},p(r,n){n&2&&q(t,r[1])},d(r){r&&z(e)}}}function $r(i){let e,t,r,n,o,a=i[0]&&St(i),l=i[2]&&Bt(i),s=i[1]&&Nt(i);return{c(){e=b("div"),a&&a.c(),t=H(),r=b("div"),r.innerHTML="<slot></slot>",n=H(),l&&l.c(),o=H(),s&&s.c(),this.c=p,u(r,"class","form-item-input"),u(e,"class","goa-form-item")},m(c,d){v(c,e,d),a&&a.m(e,null),m(e,t),m(e,r),m(e,n),l&&l.m(e,null),m(e,o),s&&s.m(e,null)},p(c,[d]){c[0]?a?a.p(c,d):(a=St(c),a.c(),a.m(e,t)):a&&(a.d(1),a=null),c[2]?l?l.p(c,d):(l=Bt(c),l.c(),l.m(e,o)):l&&(l.d(1),l=null),c[1]?s?s.p(c,d):(s=Nt(c),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:p,o:p,d(c){c&&z(e),a&&a.d(),l&&l.d(),s&&s.d()}}}function en(i,e,t){let r,{label:n=""}=e,{helptext:o=""}=e,{error:a=""}=e,{optional:l=""}=e;return i.$$set=s=>{"label"in s&&t(0,n=s.label),"helptext"in s&&t(1,o=s.helptext),"error"in s&&t(2,a=s.error),"optional"in s&&t(4,l=s.optional)},i.$$.update=()=>{i.$$.dirty&16&&t(3,r=G(l))},[n,o,a,r,l]}class tn extends O{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}*{box-sizing:border-box}.label{display:block;font-weight:var(--fw-bold);color:var(--goa-color-text);font-size:var(--fs-base);padding:0.5rem 0;overflow-x:hidden;white-space:nowrap;text-overflow:ellipsis}.label em{color:var(--color-gray-600);font-weight:var(--fw-regular);font-size:var(--fs-sm);line-height:var(--lh-sm);font-style:normal}.form-item-input{margin-bottom:0.25rem}.help-msg{font-size:var(--fs-sm);color:var(--goa-color-text)}.error-msg{font-size:var(--fs-sm);color:var(--goa-color-interactive--error);margin-bottom:0.25rem}</style>",P(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},en,$r,N,{label:0,helptext:1,error:2,optional:4},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["label","helptext","error","optional"]}get label(){return this.$$.ctx[0]}set label(e){this.$$set({label:e}),h()}get helptext(){return this.$$.ctx[1]}set helptext(e){this.$$set({helptext:e}),h()}get error(){return this.$$.ctx[2]}set error(e){this.$$set({error:e}),h()}get optional(){return this.$$.ctx[4]}set optional(e){this.$$set({optional:e}),h()}}customElements.define("goa-form-item",tn);function rn(i){let e,t,r,n,o,a,l,s;return{c(){e=b("div"),t=b("goa-page-block"),r=b("h1"),n=F(i[0]),o=H(),a=b("div"),a.innerHTML="<slot></slot>",l=H(),s=b("slot"),this.c=p,u(a,"class","goa-hero-banner-content"),u(a,"role","note"),u(s,"name","actions"),C(t,"width","full"),u(e,"class","goa-hero"),u(e,"data-testid","background"),V(e,"background-image","linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.40) 40%, rgba(0, 0, 0, 0.6) 100%), url("+i[1]+")"),V(e,"background-size","cover"),V(e,"background-position","center"),V(e,"background-repeat","no-repeat")},m(c,d){v(c,e,d),m(e,t),m(t,r),m(r,n),m(t,o),m(t,a),m(t,l),m(t,s)},p(c,[d]){d&1&&q(n,c[0]),d&2&&V(e,"background-image","linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.40) 40%, rgba(0, 0, 0, 0.6) 100%), url("+c[1]+")")},i:p,o:p,d(c){c&&z(e)}}}function nn(i,e,t){let{heading:r}=e,{backgroundurl:n}=e;return i.$$set=o=>{"heading"in o&&t(0,r=o.heading),"backgroundurl"in o&&t(1,n=o.backgroundurl)},[r,n]}class on extends O{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-hero{box-sizing:border-box;display:flex;justify-content:flex-end;flex-direction:column;min-height:600px;border-bottom:8px solid var(--goa-color-brand);color:var(--color-white);background-position:center center;width:100%;padding:3.5rem 0}h1{margin:0 0 1.75rem;padding:0;color:var(--color-white);font-size:var(--fs-3xl);line-height:var(--lh-2xl);font-weight:var(--fw-bold)}.goa-hero-banner-content{font-size:1.5rem;line-height:2rem;margin-bottom:1.75rem;color:#fff}</style>",P(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},nn,rn,N,{heading:0,backgroundurl:1},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["heading","backgroundurl"]}get heading(){return this.$$.ctx[0]}set heading(e){this.$$set({heading:e}),h()}get backgroundurl(){return this.$$.ctx[1]}set backgroundurl(e){this.$$set({backgroundurl:e}),h()}}customElements.define("goa-hero-banner",on);function an(i){let e,t,r,n;return{c(){e=b("button"),t=b("goa-icon"),this.c=p,C(t,"title",i[3]),C(t,"type",i[0]),C(t,"size",i[1]),C(t,"theme",i[2]),C(t,"inverted",i[5]),V(e,"--size",i[6]),u(e,"title",i[3]),e.disabled=i[7],u(e,"class",i[8]),u(e,"data-testid",i[4])},m(o,a){v(o,e,a),m(e,t),r||(n=U(e,"click",ln),r=!0)},p(o,[a]){a&8&&C(t,"title",o[3]),a&1&&C(t,"type",o[0]),a&2&&C(t,"size",o[1]),a&4&&C(t,"theme",o[2]),a&32&&C(t,"inverted",o[5]),a&64&&V(e,"--size",o[6]),a&8&&u(e,"title",o[3]),a&128&&(e.disabled=o[7]),a&256&&u(e,"class",o[8]),a&16&&u(e,"data-testid",o[4])},i:p,o:p,d(o){o&&z(e),r=!1,n()}}}function ln(i){i.target.dispatchEvent(new CustomEvent("_click",{composed:!0,detail:{event:i}}))}function sn(i,e,t){let r,n,o,a,{type:l}=e,{size:s="medium"}=e,{theme:c="outline"}=e,{variant:d="color"}=e,{title:f=""}=e,{testId:g=""}=e,{disabled:w}=e,{inverted:_}=e;return i.$$set=k=>{"type"in k&&t(0,l=k.type),"size"in k&&t(1,s=k.size),"theme"in k&&t(2,c=k.theme),"variant"in k&&t(9,d=k.variant),"title"in k&&t(3,f=k.title),"testId"in k&&t(4,g=k.testId),"disabled"in k&&t(10,w=k.disabled),"inverted"in k&&t(11,_=k.inverted)},i.$$.update=()=>{i.$$.dirty&2048&&t(5,o=G(_)),i.$$.dirty&544&&t(8,r=`${d} ${o?"inverted":""}`),i.$$.dirty&1024&&t(7,n=G(w)),i.$$.dirty&2&&t(6,a={small:"1rem",medium:"1.5rem",large:"2rem"}[s])},[l,s,c,f,g,o,a,n,r,d,w,_]}class cn extends O{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:var(--font-family)}button,button *{box-sizing:border-box}button{display:inline-flex;align-items:center;justify-content:center;background:transparent;cursor:pointer;border:none}.color{border-radius:0.5rem;padding:calc(var(--size) / 4)}.color{border-radius:0.5rem;color:var(--goa-color-interactive);fill:var(--goa-color-interactive);cursor:pointer;transition:background-color 100ms ease-in, transform 100ms ease-in}.color:active,.nocolor:active{transform:scale(0.9);border:none}.color:hover{background-color:var(--goa-color-primary-light)}.color.inverted:hover{background-color:var(--goa-color-primary-dark)}button:disabled{color:var(--color-gray-200);fill:var(--color-gray-200);transform:none;cursor:default}button:disabled:hover{background-color:transparent}</style>",P(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},sn,an,N,{type:0,size:1,theme:2,variant:9,title:3,testId:4,disabled:10,inverted:11},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["type","size","theme","variant","title","testId","disabled","inverted"]}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),h()}get size(){return this.$$.ctx[1]}set size(e){this.$$set({size:e}),h()}get theme(){return this.$$.ctx[2]}set theme(e){this.$$set({theme:e}),h()}get variant(){return this.$$.ctx[9]}set variant(e){this.$$set({variant:e}),h()}get title(){return this.$$.ctx[3]}set title(e){this.$$set({title:e}),h()}get testId(){return this.$$.ctx[4]}set testId(e){this.$$set({testId:e}),h()}get disabled(){return this.$$.ctx[10]}set disabled(e){this.$$set({disabled:e}),h()}get inverted(){return this.$$.ctx[11]}set inverted(e){this.$$set({inverted:e}),h()}}customElements.define("goa-icon-button",cn);function Ot(i){let e,t;return{c(){e=b("ion-icon"),C(e,"name",t=i[1]==="filled"||i[0].indexOf("logo")===0?i[0]:`${i[0]}-${i[1]}`)},m(r,n){v(r,e,n)},p(r,n){n&3&&t!==(t=r[1]==="filled"||r[0].indexOf("logo")===0?r[0]:`${r[0]}-${r[1]}`)&&C(e,"name",t)},d(r){r&&z(e)}}}function dn(i){let e,t,r,n=i[0]&&Ot(i);return{c(){e=b("div"),n&&n.c(),this.c=p,u(e,"class","goa-icon"),u(e,"data-testid",t=`icon-${i[0]}`),u(e,"title",i[5]),u(e,"style",r=`
|
|
32
|
+
`,o.appendChild(c)});function l(s){te[s?"unshift":"push"](()=>{o=s,t(2,o)})}return i.$$set=s=>{"name"in s&&t(0,r=s.name),"maxcolumncount"in s&&t(1,n=s.maxcolumncount)},[r,n,o,a,l]}class Xr extends O{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{flex:auto}.title{font-size:var(--fs-xl);line-height:var(--lh-lg)}.hidden{display:none}.links{display:block;list-style-type:none;padding-left:0}@media(min-width: 720px){.links{display:var(--narrow-display-type);list-style-type:none;padding-left:0;flex-direction:column;column-count:var(--narrow-column-count)}}@media(min-width: 1024px){.links{display:var(--wide-display-type);list-style-type:none;padding-left:0;flex-direction:column;column-count:var(--wide-column-count)}}li{padding:0.75rem 0}a{color:var(--goa-color-text)}</style>",P(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Kr,Zr,N,{name:0,maxcolumncount:1},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["name","maxcolumncount"]}get name(){return this.$$.ctx[0]}set name(e){this.$$set({name:e}),h()}get maxcolumncount(){return this.$$.ctx[1]}set maxcolumncount(e){this.$$set({maxcolumncount:e}),h()}}customElements.define("goa-app-footer-nav-section",Xr);function It(i){let e;return{c(){e=b("goa-divider"),C(e,"spacing","small")},m(t,r){v(t,e,r)},d(t){t&&z(e)}}}function Yr(i){let e,t,r,n,o,a,l,s,c,d,f,g=i[1]?.length&&It();return{c(){e=b("div"),t=b("div"),t.innerHTML='<slot name="nav"></slot>',r=H(),g&&g.c(),n=H(),o=b("div"),a=b("div"),a.innerHTML='<slot name="meta"></slot>',l=H(),s=b("div"),c=b("a"),c.innerHTML='<img alt="GoA Logo" class="logo" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='149.351' height='42' viewBox='0 0 149.351 42'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:none;%7D.b%7Bclip-path:url(%23a);%7D.c%7Bfill:%2300aad2;%7D.d%7Bfill:%235f6a72;%7D%3C/style%3E%3CclipPath id='a'%3E%3Crect class='a' width='149.351' height='42'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg class='b'%3E%3Crect class='c' width='13.555' height='13.555' transform='translate(135.796 21.524)'/%3E%3Cpath class='d' d='M63.082,33.088c-1.383.138-2.835.277-4.357.346.553-4.357,2.835-10.373,5.671-9.405,1.66.553.761,5.671-1.314,9.059m-3.527,2.974a3.761,3.761,0,0,1-1.245,0,.851.851,0,0,0,.346-.692v-.553c.761,0,1.936-.138,3.389-.277a4.327,4.327,0,0,1-2.49,1.521M76.844,25.688c1.8-1.66,2.7-1.521,2.9-1.106.484.968-1.591,4.357-5.671,6.224a10.328,10.328,0,0,1,2.766-5.118m66.736,1.66c-.207-3.389-3.181-3.942-3.6-2.974-.138.346,1.106.207,1.106,2.628,0,3.942-4.011,9.129-9.129,9.129-5.532,0-6.985-4.357-7.261-6.432-.207-1.452.138-3.458-2.351-3.181-1.729.207-3.25,3.527-5.463,6.362-1.867,2.42-2.7,2.213-2.282.138.553-2.628,2.7-8.714,5.187-9.129,1.176-.207,1.591,1.8,2.075.553s.069-4.011-2.559-4.011c-1.8,0-3.942,1.936-5.74,4.08-1.521,1.936-9.336,13.416-12.656,10.927-1.521-1.176-1.383-5.878-.415-11.411,3.873-1.521,7.123-1.037,8.921-.138.9.415,1.037.346.622-.622-.553-1.452-3.665-3.734-8.575-2.7-.138,0-.207.069-.346.069.415-1.8.83-3.665,1.383-5.463.484-1.66,1.8-4.5-1.729-4.979-1.106-.207-.622.346-1.037,1.867-.692,2.766-1.521,6.362-2.144,10.028a19.745,19.745,0,0,0-7.538,8.091,38.59,38.59,0,0,0,.9-4.772,1.589,1.589,0,0,0-1.245-1.729c-.761-.207-1.729.138-2.628,1.452-2.144,3.043-4.841,7.815-8.99,9.82-2.974,1.452-4.288,0-4.357-2.282a9.869,9.869,0,0,0,1.521-.553c5.394-2.351,7.192-5.947,5.878-8.16-1.314-2.075-4.979-1.452-7.953,1.66a11.175,11.175,0,0,0-2.7,6.5c-1.245.277-2.628.484-4.219.692,2.49-4.08,2.282-9.613-1.383-10.581-4.288-1.106-6.432,3.043-7.331,6.5.346-3.873.9-7.745,1.591-11.549.346-1.66,1.452-4.5-2.075-4.979-1.106-.207-.968.346-.9,1.867.138,2.075-2.144,14.454-.968,19.848-1.521.484-2.144,1.66-.207,2.835,1.383.83,4.357,1.106,7.331-.346a9.3,9.3,0,0,0,2.766-2.144c1.8-.207,3.665-.553,5.394-.83.277,2.42,1.867,4.219,5.463,3.873,5.118-.484,9.682-6.777,11.411-9.82-.346,3.25-2.42,10.373,1.176,10.028,1.383-.138.83-.346.9-1.591.346-4.288,3.873-7.953,7.4-10.166-.622,5.256-.415,9.958,2.006,11.411,4.426,2.766,10.581-4.5,14.039-8.921-1.729,3.942-2.7,8.921-.138,9.682,3.043.9,5.463-4.219,8.3-8.091.346,2.766,2.213,7.607,9.682,7.607,8.022-.069,13.071-4.91,12.863-10.1m-108.3,8.645A66.439,66.439,0,0,1,27.4,32.534a59.168,59.168,0,0,0,6.777-2.974,54.453,54.453,0,0,0,1.106,6.432m20.4,3.873c-.069-.207-.622.069-1.106,0-1.452-.207-3.389-2.213-3.942-5.463-1.037-5.878-.415-11.687,1.314-20.332.346-1.66,1.452-4.5-2.075-5.048-1.106-.138-.553.415-.83,1.867C47.66,17.32,42.4,21.954,37.149,25.066,36.6,17.735,36.8,9.505,38.186,4.526c1.176-4.219,2.559-3.458.83-4.357s-3.734.277-5.325,3.458S24.839,23.89,13.221,35.439C7.273,41.317,1.879,38.274.842,37.375c-.9-.761-1.176.415-.138,1.591,4.772,5.256,11.826,2.282,14.384-.277,7.054-7.054,15.283-22.268,18.6-28.7a98.251,98.251,0,0,0,.277,16.874,50.129,50.129,0,0,1-8.3,3.181c-1.66.415-2.7,1.106-2.7,1.867s1.106,1.521,2.7,2.282c2.835,1.383,11.2,5.256,13.209,6.5,1.729,1.037,2.628.207,3.112-.9.692-1.452-1.176-2.282-2.974-2.766a60.545,60.545,0,0,1-1.66-9.267c4.219-2.628,8.437-6.086,10.788-10.443C47.522,20.916,46,33.3,49.873,38.482a5.451,5.451,0,0,0,4.564,2.213c.968-.069,1.383-.692,1.245-.83' transform='translate(-0.038 0.124)'/%3E%3C/g%3E%3C/svg%3E"/>',d=H(),f=b("a"),f.textContent=`\xA9 ${i[3]} Government of Alberta`,this.c=p,u(t,"class","nav-links"),u(a,"class","meta-links"),u(c,"href","https://alberta.ca"),u(f,"href","https://alberta.ca"),u(f,"class","goa-copyright"),u(s,"class","abgov"),B(s,"with-meta-links",i[2]?.length),u(o,"class","meta-section"),B(o,"with-meta-links",i[2]?.length),u(e,"class","app-footer")},m(w,_){v(w,e,_),m(e,t),m(e,r),g&&g.m(e,null),m(e,n),m(e,o),m(o,a),m(o,l),m(o,s),m(s,c),m(s,d),m(s,f),i[4](e)},p(w,[_]){w[1]?.length?g||(g=It(),g.c(),g.m(e,n)):g&&(g.d(1),g=null),_&4&&B(s,"with-meta-links",w[2]?.length),_&4&&B(o,"with-meta-links",w[2]?.length)},i:p,o:p,d(w){w&&z(e),g&&g.d(),i[4](null)}}}function Jr(i,e,t){let r,n,o;const a=new Date().getFullYear();Y(async()=>{await Oe();const s=r.querySelector("slot[name=nav]"),c=r.querySelector("slot[name=meta]");t(1,n=s.assignedElements()),t(2,o=c.assignedElements())});function l(s){te[s?"unshift":"push"](()=>{r=s,t(0,r)})}return[r,n,o,a,l]}class Qr extends O{constructor(e){super();this.shadowRoot.innerHTML="<style>.app-footer{background-color:var(--color-gray-100);padding:2rem;border-top:2px solid var(--color-gray-200);border-bottom:1rem solid var(--goa-color-brand)}.meta-section{display:flex;flex-direction:column;padding:1rem 0}.meta-section.with-meta-links{gap:2rem;justify-content:space-between}.meta-links{display:none}.with-meta-links .meta-links{display:block}.nav-links{display:flex;flex-direction:column;gap:2rem}.abgov{display:flex;flex-direction:column;justify-content:space-between;width:100%}@media(min-width: 640px){.meta-section{flex-direction:row;gap:2rem}.nav-links{flex-direction:row}.abgov{align-items:center;flex-direction:row-reverse}}.abgov.with-meta-links{gap:1rem;flex-direction:column;width:unset}@media(min-width: 640px){.abgov.with-meta-links{align-items:flex-end}}.goa-copyright{white-space:nowrap}a{color:var(--goa-color-text-secondary)}</style>",P(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Jr,Yr,N,{},null),e&&e.target&&v(e.target,this,e.anchor)}}customElements.define("goa-app-footer",Qr);function St(i){let e,t,r,n=i[3]&&Dt();return{c(){e=b("div"),t=F(i[0]),r=H(),n&&n.c(),u(e,"class","label")},m(o,a){v(o,e,a),m(e,t),m(e,r),n&&n.m(e,null)},p(o,a){a&1&&q(t,o[0]),o[3]?n||(n=Dt(),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(o){o&&z(e),n&&n.d()}}}function Dt(i){let e;return{c(){e=b("em"),e.textContent="(optional)"},m(t,r){v(t,e,r)},d(t){t&&z(e)}}}function Bt(i){let e,t;return{c(){e=b("div"),t=F(i[2]),u(e,"class","error-msg")},m(r,n){v(r,e,n),m(e,t)},p(r,n){n&4&&q(t,r[2])},d(r){r&&z(e)}}}function Nt(i){let e,t;return{c(){e=b("div"),t=F(i[1]),u(e,"class","help-msg")},m(r,n){v(r,e,n),m(e,t)},p(r,n){n&2&&q(t,r[1])},d(r){r&&z(e)}}}function $r(i){let e,t,r,n,o,a=i[0]&&St(i),l=i[2]&&Bt(i),s=i[1]&&Nt(i);return{c(){e=b("div"),a&&a.c(),t=H(),r=b("div"),r.innerHTML="<slot></slot>",n=H(),l&&l.c(),o=H(),s&&s.c(),this.c=p,u(r,"class","form-item-input"),u(e,"class","goa-form-item")},m(c,d){v(c,e,d),a&&a.m(e,null),m(e,t),m(e,r),m(e,n),l&&l.m(e,null),m(e,o),s&&s.m(e,null)},p(c,[d]){c[0]?a?a.p(c,d):(a=St(c),a.c(),a.m(e,t)):a&&(a.d(1),a=null),c[2]?l?l.p(c,d):(l=Bt(c),l.c(),l.m(e,o)):l&&(l.d(1),l=null),c[1]?s?s.p(c,d):(s=Nt(c),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:p,o:p,d(c){c&&z(e),a&&a.d(),l&&l.d(),s&&s.d()}}}function en(i,e,t){let r,{label:n=""}=e,{helptext:o=""}=e,{error:a=""}=e,{optional:l="false"}=e;return i.$$set=s=>{"label"in s&&t(0,n=s.label),"helptext"in s&&t(1,o=s.helptext),"error"in s&&t(2,a=s.error),"optional"in s&&t(4,l=s.optional)},i.$$.update=()=>{i.$$.dirty&16&&t(3,r=G(l))},[n,o,a,r,l]}class tn extends O{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}*{box-sizing:border-box}.label{display:block;font-weight:var(--fw-bold);color:var(--goa-color-text);font-size:var(--fs-base);padding:0.5rem 0;overflow-x:hidden;white-space:nowrap;text-overflow:ellipsis}.label em{color:var(--color-gray-600);font-weight:var(--fw-regular);font-size:var(--fs-sm);line-height:var(--lh-sm);font-style:normal}.form-item-input{margin-bottom:0.25rem}.help-msg{font-size:var(--fs-sm);color:var(--goa-color-text)}.error-msg{font-size:var(--fs-sm);color:var(--goa-color-interactive--error);margin-bottom:0.25rem}</style>",P(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},en,$r,N,{label:0,helptext:1,error:2,optional:4},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["label","helptext","error","optional"]}get label(){return this.$$.ctx[0]}set label(e){this.$$set({label:e}),h()}get helptext(){return this.$$.ctx[1]}set helptext(e){this.$$set({helptext:e}),h()}get error(){return this.$$.ctx[2]}set error(e){this.$$set({error:e}),h()}get optional(){return this.$$.ctx[4]}set optional(e){this.$$set({optional:e}),h()}}customElements.define("goa-form-item",tn);function rn(i){let e,t,r,n,o,a,l,s;return{c(){e=b("div"),t=b("goa-page-block"),r=b("h1"),n=F(i[0]),o=H(),a=b("div"),a.innerHTML="<slot></slot>",l=H(),s=b("slot"),this.c=p,u(a,"class","goa-hero-banner-content"),u(a,"role","note"),u(s,"name","actions"),C(t,"width","full"),u(e,"class","goa-hero"),u(e,"data-testid","background"),V(e,"background-image","linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.40) 40%, rgba(0, 0, 0, 0.6) 100%), url("+i[1]+")"),V(e,"background-size","cover"),V(e,"background-position","center"),V(e,"background-repeat","no-repeat")},m(c,d){v(c,e,d),m(e,t),m(t,r),m(r,n),m(t,o),m(t,a),m(t,l),m(t,s)},p(c,[d]){d&1&&q(n,c[0]),d&2&&V(e,"background-image","linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.40) 40%, rgba(0, 0, 0, 0.6) 100%), url("+c[1]+")")},i:p,o:p,d(c){c&&z(e)}}}function nn(i,e,t){let{heading:r}=e,{backgroundurl:n}=e;return i.$$set=o=>{"heading"in o&&t(0,r=o.heading),"backgroundurl"in o&&t(1,n=o.backgroundurl)},[r,n]}class on extends O{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-hero{box-sizing:border-box;display:flex;justify-content:flex-end;flex-direction:column;min-height:600px;border-bottom:8px solid var(--goa-color-brand);color:var(--color-white);background-position:center center;width:100%;padding:3.5rem 0}h1{margin:0 0 1.75rem;padding:0;color:var(--color-white);font-size:var(--fs-3xl);line-height:var(--lh-2xl);font-weight:var(--fw-bold)}.goa-hero-banner-content{font-size:1.5rem;line-height:2rem;margin-bottom:1.75rem;color:#fff}</style>",P(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},nn,rn,N,{heading:0,backgroundurl:1},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["heading","backgroundurl"]}get heading(){return this.$$.ctx[0]}set heading(e){this.$$set({heading:e}),h()}get backgroundurl(){return this.$$.ctx[1]}set backgroundurl(e){this.$$set({backgroundurl:e}),h()}}customElements.define("goa-hero-banner",on);function an(i){let e,t,r,n;return{c(){e=b("button"),t=b("goa-icon"),this.c=p,C(t,"title",i[3]),C(t,"type",i[0]),C(t,"size",i[1]),C(t,"theme",i[2]),C(t,"inverted",i[5]),V(e,"--size",i[6]),u(e,"title",i[3]),e.disabled=i[7],u(e,"class",i[8]),u(e,"data-testid",i[4])},m(o,a){v(o,e,a),m(e,t),r||(n=U(e,"click",ln),r=!0)},p(o,[a]){a&8&&C(t,"title",o[3]),a&1&&C(t,"type",o[0]),a&2&&C(t,"size",o[1]),a&4&&C(t,"theme",o[2]),a&32&&C(t,"inverted",o[5]),a&64&&V(e,"--size",o[6]),a&8&&u(e,"title",o[3]),a&128&&(e.disabled=o[7]),a&256&&u(e,"class",o[8]),a&16&&u(e,"data-testid",o[4])},i:p,o:p,d(o){o&&z(e),r=!1,n()}}}function ln(i){i.target.dispatchEvent(new CustomEvent("_click",{composed:!0,detail:{event:i}}))}function sn(i,e,t){let r,n,o,a,{type:l}=e,{size:s="medium"}=e,{theme:c="outline"}=e,{variant:d="color"}=e,{title:f=""}=e,{testId:g=""}=e,{disabled:w}=e,{inverted:_}=e;return i.$$set=k=>{"type"in k&&t(0,l=k.type),"size"in k&&t(1,s=k.size),"theme"in k&&t(2,c=k.theme),"variant"in k&&t(9,d=k.variant),"title"in k&&t(3,f=k.title),"testId"in k&&t(4,g=k.testId),"disabled"in k&&t(10,w=k.disabled),"inverted"in k&&t(11,_=k.inverted)},i.$$.update=()=>{i.$$.dirty&2048&&t(5,o=G(_)),i.$$.dirty&544&&t(8,r=`${d} ${o?"inverted":""}`),i.$$.dirty&1024&&t(7,n=G(w)),i.$$.dirty&2&&t(6,a={small:"1rem",medium:"1.5rem",large:"2rem"}[s])},[l,s,c,f,g,o,a,n,r,d,w,_]}class cn extends O{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:var(--font-family)}button,button *{box-sizing:border-box}button{display:inline-flex;align-items:center;justify-content:center;background:transparent;cursor:pointer;border:none}.color{border-radius:0.5rem;padding:calc(var(--size) / 4)}.color{border-radius:0.5rem;color:var(--goa-color-interactive);fill:var(--goa-color-interactive);cursor:pointer;transition:background-color 100ms ease-in, transform 100ms ease-in}.color:active,.nocolor:active{transform:scale(0.9);border:none}.color:hover{background-color:var(--goa-color-primary-light)}.color.inverted:hover{background-color:var(--goa-color-primary-dark)}button:disabled{color:var(--color-gray-200);fill:var(--color-gray-200);transform:none;cursor:default}button:disabled:hover{background-color:transparent}</style>",P(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},sn,an,N,{type:0,size:1,theme:2,variant:9,title:3,testId:4,disabled:10,inverted:11},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["type","size","theme","variant","title","testId","disabled","inverted"]}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),h()}get size(){return this.$$.ctx[1]}set size(e){this.$$set({size:e}),h()}get theme(){return this.$$.ctx[2]}set theme(e){this.$$set({theme:e}),h()}get variant(){return this.$$.ctx[9]}set variant(e){this.$$set({variant:e}),h()}get title(){return this.$$.ctx[3]}set title(e){this.$$set({title:e}),h()}get testId(){return this.$$.ctx[4]}set testId(e){this.$$set({testId:e}),h()}get disabled(){return this.$$.ctx[10]}set disabled(e){this.$$set({disabled:e}),h()}get inverted(){return this.$$.ctx[11]}set inverted(e){this.$$set({inverted:e}),h()}}customElements.define("goa-icon-button",cn);function Ot(i){let e,t;return{c(){e=b("ion-icon"),C(e,"name",t=i[1]==="filled"||i[0].indexOf("logo")===0?i[0]:`${i[0]}-${i[1]}`)},m(r,n){v(r,e,n)},p(r,n){n&3&&t!==(t=r[1]==="filled"||r[0].indexOf("logo")===0?r[0]:`${r[0]}-${r[1]}`)&&C(e,"name",t)},d(r){r&&z(e)}}}function dn(i){let e,t,r,n=i[0]&&Ot(i);return{c(){e=b("div"),n&&n.c(),this.c=p,u(e,"class","goa-icon"),u(e,"data-testid",t=`icon-${i[0]}`),u(e,"title",i[5]),u(e,"style",r=`
|
|
33
33
|
--size: ${i[6]};
|
|
34
34
|
--fill-color: ${i[2]};
|
|
35
35
|
--hover-color: ${i[3]};
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
type--${L[1]}
|
|
54
54
|
`)&&u(t,"class",g),D&786498&&B(t,"error",L[19]),L[17]?R?R.p(L,D):(R=Vt(L),R.c(),R.m(e,null)):R&&(R.d(1),R=null),D&256&&_!==(_=`
|
|
55
55
|
--width: ${L[8]};
|
|
56
|
-
`)&&u(e,"style",_)},i:p,o:p,d(L){L&&z(e),x&&x.d(),E&&E.d(),i[30](null),T&&T.d(),y&&y.d(),A&&A.d(),R&&R.d(),k=!1,ee(M)}}}function bn(){this.dispatchEvent(new CustomEvent("_trailingIconClick",{composed:!0}))}function vn(i,e,t){let r,n,o,a,l,s,{type:c="text"}=e,{name:d=""}=e,{value:f=""}=e,{placeholder:g=""}=e,{leadingicon:w=null}=e,{trailingicon:_=null}=e,{variant:k="goa"}=e,{disabled:M="false"}=e,{handletrailingiconclick:x="false"}=e,{focused:E="false"}=e,{readonly:T="false"}=e,{error:y="false"}=e,{testid:A=""}=e,{width:R="30ch"}=e,{arialabel:L=null}=e,{min:D=null}=e,{max:X=null}=e,{step:J=null}=e,{prefix:K=""}=e,{suffix:Q=""}=e,{showcounter:Ee="false"}=e,{maxcharcount:ze=0}=e,$;function Ce(S){S.target.dispatchEvent(new CustomEvent("_change",{composed:!0,bubbles:!1,cancelable:!0,detail:{name:d,value:S.target.value}})),t(0,f=S.target.value)}function Me(S){te[S?"unshift":"push"](()=>{$=S,t(16,$)})}return i.$$set=S=>{"type"in S&&t(1,c=S.type),"name"in S&&t(2,d=S.name),"value"in S&&t(0,f=S.value),"placeholder"in S&&t(3,g=S.placeholder),"leadingicon"in S&&t(4,w=S.leadingicon),"trailingicon"in S&&t(5,_=S.trailingicon),"variant"in S&&t(6,k=S.variant),"disabled"in S&&t(23,M=S.disabled),"handletrailingiconclick"in S&&t(24,x=S.handletrailingiconclick),"focused"in S&&t(25,E=S.focused),"readonly"in S&&t(26,T=S.readonly),"error"in S&&t(27,y=S.error),"testid"in S&&t(7,A=S.testid),"width"in S&&t(8,R=S.width),"arialabel"in S&&t(9,L=S.arialabel),"min"in S&&t(10,D=S.min),"max"in S&&t(11,X=S.max),"step"in S&&t(12,J=S.step),"prefix"in S&&t(13,K=S.prefix),"suffix"in S&&t(14,Q=S.suffix),"showcounter"in S&&t(28,Ee=S.showcounter),"maxcharcount"in S&&t(15,ze=S.maxcharcount)},i.$$.update=()=>{i.$$.dirty&16777216&&t(21,r=G(x)),i.$$.dirty&33554432&&t(29,n=G(E)),i.$$.dirty&67108864&&t(20,o=G(T)),i.$$.dirty&134217728&&t(19,a=G(y)),i.$$.dirty&8388608&&t(18,l=G(M)),i.$$.dirty&268435456&&t(17,s=G(Ee)),i.$$.dirty&536936448&&n&&$&&setTimeout(()=>$.focus(),1),i.$$.dirty&65538&&$&&c==="search"&&$.addEventListener("search",S=>{Ce(S)})},[f,c,d,g,w,_,k,A,R,L,D,X,J,K,Q,ze,$,s,l,a,o,r,Ce,M,x,E,T,y,Ee,n,Me]}class pn extends O{constructor(e){super();this.shadowRoot.innerHTML=`<style>:host{box-sizing:border-box
|
|
56
|
+
`)&&u(e,"style",_)},i:p,o:p,d(L){L&&z(e),x&&x.d(),E&&E.d(),i[30](null),T&&T.d(),y&&y.d(),A&&A.d(),R&&R.d(),k=!1,ee(M)}}}function bn(){this.dispatchEvent(new CustomEvent("_trailingIconClick",{composed:!0}))}function vn(i,e,t){let r,n,o,a,l,s,{type:c="text"}=e,{name:d=""}=e,{value:f=""}=e,{placeholder:g=""}=e,{leadingicon:w=null}=e,{trailingicon:_=null}=e,{variant:k="goa"}=e,{disabled:M="false"}=e,{handletrailingiconclick:x="false"}=e,{focused:E="false"}=e,{readonly:T="false"}=e,{error:y="false"}=e,{testid:A=""}=e,{width:R="30ch"}=e,{arialabel:L=null}=e,{min:D=null}=e,{max:X=null}=e,{step:J=null}=e,{prefix:K=""}=e,{suffix:Q=""}=e,{showcounter:Ee="false"}=e,{maxcharcount:ze=0}=e,$;function Ce(S){S.target.dispatchEvent(new CustomEvent("_change",{composed:!0,bubbles:!1,cancelable:!0,detail:{name:d,value:S.target.value}})),t(0,f=S.target.value)}function Me(S){te[S?"unshift":"push"](()=>{$=S,t(16,$)})}return i.$$set=S=>{"type"in S&&t(1,c=S.type),"name"in S&&t(2,d=S.name),"value"in S&&t(0,f=S.value),"placeholder"in S&&t(3,g=S.placeholder),"leadingicon"in S&&t(4,w=S.leadingicon),"trailingicon"in S&&t(5,_=S.trailingicon),"variant"in S&&t(6,k=S.variant),"disabled"in S&&t(23,M=S.disabled),"handletrailingiconclick"in S&&t(24,x=S.handletrailingiconclick),"focused"in S&&t(25,E=S.focused),"readonly"in S&&t(26,T=S.readonly),"error"in S&&t(27,y=S.error),"testid"in S&&t(7,A=S.testid),"width"in S&&t(8,R=S.width),"arialabel"in S&&t(9,L=S.arialabel),"min"in S&&t(10,D=S.min),"max"in S&&t(11,X=S.max),"step"in S&&t(12,J=S.step),"prefix"in S&&t(13,K=S.prefix),"suffix"in S&&t(14,Q=S.suffix),"showcounter"in S&&t(28,Ee=S.showcounter),"maxcharcount"in S&&t(15,ze=S.maxcharcount)},i.$$.update=()=>{i.$$.dirty&16777216&&t(21,r=G(x)),i.$$.dirty&33554432&&t(29,n=G(E)),i.$$.dirty&67108864&&t(20,o=G(T)),i.$$.dirty&134217728&&t(19,a=G(y)),i.$$.dirty&8388608&&t(18,l=G(M)),i.$$.dirty&268435456&&t(17,s=G(Ee)),i.$$.dirty&536936448&&n&&$&&setTimeout(()=>$.focus(),1),i.$$.dirty&65538&&$&&c==="search"&&$.addEventListener("search",S=>{Ce(S)})},[f,c,d,g,w,_,k,A,R,L,D,X,J,K,Q,ze,$,s,l,a,o,r,Ce,M,x,E,T,y,Ee,n,Me]}class pn extends O{constructor(e){super();this.shadowRoot.innerHTML=`<style>:host{box-sizing:border-box}.container{position:relative;width:100%}@media(min-width: 640px){.container{width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:var(--input-border-radius);background:white;display:inline-flex;align-items:stretch;vertical-align:middle;min-width:100%}.goa-input:hover{border-color:var(--goa-color-interactive--hover)}.goa-input:active,.goa-input:focus,.goa-input:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-input.type--range{border:none}.goa-input.type--range:active,.goa-input.type--range:focus,.goa-input.type--range:focus-within{box-shadow:none}.goa-input-leading-icon{margin-left:0.5rem}.goa-input-trailing-icon{margin-right:0.5rem}input{display:inline-block;color:var(--goa-color-text);font-size:var(--input-font-size);padding:var(--input-padding);line-height:calc(40px - calc(var(--input-padding) * 2));background-color:transparent;width:0;flex:1 1 auto}input[type=text],input[type=date],input[type="datetime-local"],input[type=number]{font-family:var(--font-family)}input[readonly]{cursor:pointer}.goa-input-leading-icon+input{padding-left:0.5rem}input,input:focus,input:hover,input:active{outline:none;border:none}.goa-input--disabled,.goa-input--disabled:hover,.goa-input--disabled:active,.goa-input--disabled:focus{background-color:var(--color-gray-100);border-color:var(--color-gray-200);cursor:default;box-shadow:none}.goa-input--disabled input,.goa-input--disabled input:hover,.goa-input--disabled input:active,.goa-input--disabled input:focus{color:var(--goa-color-text-secondary)}.goa-input--disabled input:hover{cursor:default !important}.prefix,.suffix{background-color:var(--color-gray-100);padding:0 0.75rem;display:flex;align-items:center}.prefix{border-top-left-radius:var(--input-border-radius);border-bottom-left-radius:var(--input-border-radius);border-right:1px solid var(--color-gray-600)}.suffix{border-top-right-radius:var(--input-border-radius);border-bottom-right-radius:var(--input-border-radius);border-left:1px solid var(--color-gray-600)}input.input--goa{display:block;border:none;flex:1 1 auto}.variant--bare{border:none}.variant--bare:focus,.variant--bare:active,.variant--bare:focus-within{box-shadow:none}.counter{position:absolute;padding-top:0.25rem;right:0;font-size:var(--fs-sm)}.counter-error{color:var(--goa-color-interactive--error)}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive--error)}input[type="search" i]:enabled:read-write:-webkit-any(:focus, :hover)::-webkit-search-cancel-button{position:relative;right:var(--search-icon-offset);cursor:pointer;-webkit-appearance:none;height:1.2rem;width:1.2rem;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23333" d="M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"/></svg>')
|
|
57
57
|
center center no-repeat}</style>`,P(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},vn,mn,N,{type:1,name:2,value:0,placeholder:3,leadingicon:4,trailingicon:5,variant:6,disabled:23,handletrailingiconclick:24,focused:25,readonly:26,error:27,testid:7,width:8,arialabel:9,min:10,max:11,step:12,prefix:13,suffix:14,showcounter:28,maxcharcount:15},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["type","name","value","placeholder","leadingicon","trailingicon","variant","disabled","handletrailingiconclick","focused","readonly","error","testid","width","arialabel","min","max","step","prefix","suffix","showcounter","maxcharcount"]}get type(){return this.$$.ctx[1]}set type(e){this.$$set({type:e}),h()}get name(){return this.$$.ctx[2]}set name(e){this.$$set({name:e}),h()}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),h()}get placeholder(){return this.$$.ctx[3]}set placeholder(e){this.$$set({placeholder:e}),h()}get leadingicon(){return this.$$.ctx[4]}set leadingicon(e){this.$$set({leadingicon:e}),h()}get trailingicon(){return this.$$.ctx[5]}set trailingicon(e){this.$$set({trailingicon:e}),h()}get variant(){return this.$$.ctx[6]}set variant(e){this.$$set({variant:e}),h()}get disabled(){return this.$$.ctx[23]}set disabled(e){this.$$set({disabled:e}),h()}get handletrailingiconclick(){return this.$$.ctx[24]}set handletrailingiconclick(e){this.$$set({handletrailingiconclick:e}),h()}get focused(){return this.$$.ctx[25]}set focused(e){this.$$set({focused:e}),h()}get readonly(){return this.$$.ctx[26]}set readonly(e){this.$$set({readonly:e}),h()}get error(){return this.$$.ctx[27]}set error(e){this.$$set({error:e}),h()}get testid(){return this.$$.ctx[7]}set testid(e){this.$$set({testid:e}),h()}get width(){return this.$$.ctx[8]}set width(e){this.$$set({width:e}),h()}get arialabel(){return this.$$.ctx[9]}set arialabel(e){this.$$set({arialabel:e}),h()}get min(){return this.$$.ctx[10]}set min(e){this.$$set({min:e}),h()}get max(){return this.$$.ctx[11]}set max(e){this.$$set({max:e}),h()}get step(){return this.$$.ctx[12]}set step(e){this.$$set({step:e}),h()}get prefix(){return this.$$.ctx[13]}set prefix(e){this.$$set({prefix:e}),h()}get suffix(){return this.$$.ctx[14]}set suffix(e){this.$$set({suffix:e}),h()}get showcounter(){return this.$$.ctx[28]}set showcounter(e){this.$$set({showcounter:e}),h()}get maxcharcount(){return this.$$.ctx[15]}set maxcharcount(e){this.$$set({maxcharcount:e}),h()}}customElements.define("goa-input",pn);function Wt(i){let e,t,r;return{c(){e=b("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=H(),r=b("div"),r.innerHTML='An official site of the <a href="https://www.alberta.ca/index.aspx">Alberta Government</a>',u(e,"class","service-type service-type--live"),u(r,"data-testid","type"),u(r,"class","site-text")},m(n,o){v(n,e,o),v(n,t,o),v(n,r,o)},d(n){n&&z(e),n&&z(t),n&&z(r)}}}function Ut(i){let e,t=Xt(i[0])+"",r,n,o,a,l,s,c,d=i[2]&&Zt(i);return{c(){e=b("div"),r=F(t),o=H(),a=b("div"),l=F("This is a new "),s=b("a"),s.textContent="Alberta Government",c=F(` service
|
|
58
58
|
`),d&&d.c(),u(e,"data-testid","type"),u(e,"class",n="service-type service-type--"+i[0].toLowerCase()),u(s,"href","https://www.alberta.ca/index.aspx"),u(a,"data-testid","site-text"),u(a,"class","site-text")},m(f,g){v(f,e,g),m(e,r),v(f,o,g),v(f,a,g),m(a,l),m(a,s),m(a,c),d&&d.m(a,null)},p(f,g){g&1&&t!==(t=Xt(f[0])+"")&&q(r,t),g&1&&n!==(n="service-type service-type--"+f[0].toLowerCase())&&u(e,"class",n),f[2]?d?d.p(f,g):(d=Zt(f),d.c(),d.m(a,null)):d&&(d.d(1),d=null)},d(f){f&&z(e),f&&z(o),f&&z(a),d&&d.d()}}}function Zt(i){let e,t,r,n;return{c(){e=b("span"),t=F("\u2014 help us improve it by giving "),r=b("a"),n=F("feedback"),u(r,"href",i[2]),u(e,"data-testid","feedback")},m(o,a){v(o,e,a),m(e,t),m(e,r),m(r,n)},p(o,a){a&4&&u(r,"href",o[2])},d(o){o&&z(e)}}}function Kt(i){let e,t;return{c(){e=b("div"),t=F(i[1]),u(e,"data-testid","version"),u(e,"class","version")},m(r,n){v(r,e,n),m(e,t)},p(r,n){n&2&&q(t,r[1])},d(r){r&&z(e)}}}function wn(i){let e,t,r=["alpha","beta"].includes(i[0]),n,o,a,l=i[0]==="live"&&Wt(),s=r&&Ut(i),c=i[1]&&Kt(i);return{c(){e=b("header"),l&&l.c(),t=H(),s&&s.c(),n=H(),o=b("div"),a=H(),c&&c.c(),this.c=p,u(o,"class","spacer"),u(e,"class","goa-official-site-header")},m(d,f){v(d,e,f),l&&l.m(e,null),m(e,t),s&&s.m(e,null),m(e,n),m(e,o),m(e,a),c&&c.m(e,null)},p(d,[f]){d[0]==="live"?l||(l=Wt(),l.c(),l.m(e,t)):l&&(l.d(1),l=null),f&1&&(r=["alpha","beta"].includes(d[0])),r?s?s.p(d,f):(s=Ut(d),s.c(),s.m(e,n)):s&&(s.d(1),s=null),d[1]?c?c.p(d,f):(c=Kt(d),c.c(),c.m(e,null)):c&&(c.d(1),c=null)},i:p,o:p,d(d){d&&z(e),l&&l.d(),s&&s.d(),c&&c.d()}}}function Xt(i){return!i||i&&i.length===0?"":i[0].toUpperCase()+i.slice(1)}function _n(i,e,t){let{type:r}=e,{version:n}=e,{feedbackurl:o}=e;return i.$$set=a=>{"type"in a&&t(0,r=a.type),"version"in a&&t(1,n=a.version),"feedbackurl"in a&&t(2,o=a.feedbackurl)},[r,n,o]}class yn extends O{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-sm);background-color:var(--color-gray-100);align-items:center;justify-content:space-between;padding:0.5rem 1.5rem}@media(max-width: 640px){.goa-official-site-header{padding:0.5rem 1rem;align-items:start}}.spacer{flex:1 1 auto}.version{color:var(--goa-color-text-secondary);padding-left:1rem;line-height:1.25rem}.service-type{font-weight:bold;padding:0.25rem;display:flex;margin-right:1rem;line-height:initial}.service-type--alpha{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.service-type--beta{background-color:var(--goa-color-brand);color:var(--goa-color-text-light)}.service-type--live{padding:0}.site-text{color:var(--goa-color-text);line-height:1.25rem}</style>",P(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},_n,wn,N,{type:0,version:1,feedbackurl:2},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["type","version","feedbackurl"]}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type: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",yn);function Yt(i){let e,t,r,n,o,a,l,s,c,d,f,g,w,_,k,M,x,E,T,y,A,R=i[0]&&Jt(i),L=i[3]&&Qt(i);function D(K,Q){return K[6]?xn:kn}let X=D(i),J=X(i);return{c(){e=b("goa-focus-trap"),t=b("div"),r=b("div"),n=H(),o=b("div"),R&&R.c(),a=H(),L&&L.c(),l=H(),s=b("div"),J.c(),c=H(),d=b("slot"),f=H(),g=b("div"),g.innerHTML='<slot name="actions"></slot>',u(r,"data-testid","modal-overlay"),u(r,"class","modal-overlay"),u(s,"data-testid","modal-content"),u(s,"class","modal-content"),u(g,"data-testid","modal-actions"),u(g,"class","modal-actions"),u(o,"class","modal-pane"),u(t,"data-testid","modal"),u(t,"class","modal"),u(t,"style",k=""+((i[2]&&`--width: ${i[2]};`)+";")),C(e,"active",i[1])},m(K,Q){v(K,e,Q),m(e,t),m(t,r),m(t,n),m(t,o),R&&R.m(o,null),m(o,a),L&&L.m(o,null),m(o,l),m(o,s),J.m(s,null),m(s,c),m(s,d),m(o,f),m(o,g),T=!0,y||(A=[U(r,"click",i[7]),Qe(M=bt.call(null,t,{enable:i[5]}))],y=!0)},p(K,Q){i=K,i[0]?R?R.p(i,Q):(R=Jt(i),R.c(),R.m(o,a)):R&&(R.d(1),R=null),i[3]?L?L.p(i,Q):(L=Qt(i),L.c(),L.m(o,l)):L&&(L.d(1),L=null),X!==(X=D(i))&&(J.d(1),J=X(i),J&&(J.c(),J.m(s,c))),(!T||Q&4&&k!==(k=""+((i[2]&&`--width: ${i[2]};`)+";")))&&u(t,"style",k),M&&de(M.update)&&Q&32&&M.update.call(null,{enable:i[5]}),(!T||Q&2)&&C(e,"active",i[1])},i(K){T||(ne(()=>{_&&_.end(1),w=lt(o,mt,{duration:i[4],y:200}),w.start()}),ne(()=>{E&&E.end(1),x=lt(t,ve,{duration:i[4]}),x.start()}),T=!0)},o(K){w&&w.invalidate(),_=st(o,mt,{delay:i[4],duration:i[4],y:-100}),x&&x.invalidate(),E=st(t,ve,{delay:i[4],duration:i[4]}),T=!1},d(K){K&&z(e),R&&R.d(),L&&L.d(),J.d(),K&&_&&_.end(),K&&E&&E.end(),y=!1,ee(A)}}}function Jt(i){let e,t;return{c(){e=b("div"),t=F(i[0]),u(e,"data-testid","modal-title"),u(e,"class","modal-title")},m(r,n){v(r,e,n),m(e,t)},p(r,n){n&1&&q(t,r[0])},d(r){r&&z(e)}}}function Qt(i){let e,t,r,n;return{c(){e=b("div"),t=b("goa-icon-button"),C(t,"data-testid","modal-close-button"),C(t,"type","close"),u(e,"class","modal-close")},m(o,a){v(o,e,a),m(e,t),r||(n=U(t,"click",i[7]),r=!0)},p,d(o){o&&z(e),r=!1,n()}}}function kn(i){let e;return{c(){e=b("div"),e.innerHTML="<slot></slot>",V(e,"margin","1.75rem")},m(t,r){v(t,e,r)},d(t){t&&z(e)}}}function xn(i){let e;return{c(){e=b("goa-scrollable"),e.innerHTML="<slot></slot>",C(e,"direction","vertical"),C(e,"height","50"),C(e,"hpadding","1.75")},m(t,r){v(t,e,r)},d(t){t&&z(e)}}}function En(i){let e,t,r=i[5]&&Yt(i);return{c(){r&&r.c(),e=re(),this.c=p},m(n,o){r&&r.m(n,o),v(n,e,o),t=!0},p(n,[o]){n[5]?r?(r.p(n,o),o&32&&W(r,1)):(r=Yt(n),r.c(),W(r,1),r.m(e.parentNode,e)):r&&(me(),Z(r,1,1,()=>{r=null}),be())},i(n){t||(W(r),t=!0)},o(n){Z(r),t=!1},d(n){r&&r.d(n),n&&z(e)}}}function zn(i,e,t){let r,n,o,a,{heading:l}=e,{closable:s}=e,{scrollable:c}=e,{open:d}=e,{transition:f}=e,{width:g}=e;Y(()=>{console.log("in the modal v2")});function w(_){!r||(_.target.dispatchEvent(new CustomEvent("_close",{composed:!0})),_.stopPropagation())}return i.$$set=_=>{"heading"in _&&t(0,l=_.heading),"closable"in _&&t(8,s=_.closable),"scrollable"in _&&t(9,c=_.scrollable),"open"in _&&t(1,d=_.open),"transition"in _&&t(10,f=_.transition),"width"in _&&t(2,g=_.width)},i.$$.update=()=>{i.$$.dirty&256&&t(3,r=G(s)),i.$$.dirty&512&&t(6,n=G(c)),i.$$.dirty&2&&t(5,o=G(d)),i.$$.dirty&1024&&t(4,a=f==="none"?0:f==="slow"?400:200)},[l,d,g,r,a,o,n,w,s,c,f]}class Cn extends O{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}.modal{font-family:var(--font-family);position:fixed;inset:0;display:flex;align-items:center;justify-content:center;height:100vh;width:100%;z-index:100}.modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.2);z-index:1000}.modal-pane{position:relative;background-color:#fff;z-index:1001;width:90%;margin:1rem;box-shadow:var(--shadow-2);border-radius:4px;max-height:90%}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch);max-height:80%}}.modal-actions{text-align:right;padding:0 1.75rem;margin:1.75rem 0;flex:1 1 auto}.modal-close{position:absolute;top:1rem;right:1rem}.modal-title{font-size:var(--fs-xl);padding-bottom:1rem;padding:0 1.75rem;margin:1.75rem 0;margin-right:40px;flex:0 0 auto}</style>",P(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},zn,En,N,{heading:0,closable:8,scrollable:9,open:1,transition:10,width:2},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["heading","closable","scrollable","open","transition","width"]}get heading(){return this.$$.ctx[0]}set heading(e){this.$$set({heading:e}),h()}get closable(){return this.$$.ctx[8]}set closable(e){this.$$set({closable:e}),h()}get scrollable(){return this.$$.ctx[9]}set scrollable(e){this.$$set({scrollable:e}),h()}get open(){return this.$$.ctx[1]}set open(e){this.$$set({open:e}),h()}get transition(){return this.$$.ctx[10]}set transition(e){this.$$set({transition:e}),h()}get width(){return this.$$.ctx[2]}set width(e){this.$$set({width:e}),h()}}customElements.define("goa-modal",Cn);function $t(i){let e,t,r,n,o,a,l,s,c,d,f,g,w;return{c(){e=b("div"),t=b("div"),r=b("goa-icon"),n=H(),o=b("div"),o.innerHTML="<slot></slot>",a=H(),l=b("div"),s=b("goa-icon-button"),C(r,"type",i[2]),C(r,"inverted",""),u(t,"class","icon"),u(o,"class","content"),C(s,"type","close"),C(s,"inverted",""),u(l,"class","close"),u(e,"class",c="notification "+i[0])},m(_,k){v(_,e,k),m(e,t),m(t,r),m(e,n),m(e,o),m(e,a),m(e,l),m(l,s),f=!0,g||(w=U(s,"click",i[3]),g=!0)},p(_,k){(!f||k&4)&&C(r,"type",_[2]),(!f||k&1&&c!==(c="notification "+_[0]))&&u(e,"class",c)},i(_){f||(ne(()=>{d||(d=Fe(e,ve,{},!0)),d.run(1)}),f=!0)},o(_){d||(d=Fe(e,ve,{},!1)),d.run(0),f=!1},d(_){_&&z(e),_&&d&&d.end(),g=!1,w()}}}function Mn(i){let e,t,r=i[1]&&$t(i);return{c(){r&&r.c(),e=re(),this.c=p},m(n,o){r&&r.m(n,o),v(n,e,o),t=!0},p(n,[o]){n[1]?r?(r.p(n,o),o&2&&W(r,1)):(r=$t(n),r.c(),W(r,1),r.m(e.parentNode,e)):r&&(me(),Z(r,1,1,()=>{r=null}),be())},i(n){t||(W(r),t=!0)},o(n){Z(r),t=!1},d(n){r&&r.d(n),n&&z(e)}}}function Ln(i,e,t){let r,{type:n}=e,o=!0;function a(){t(1,o=!1)}return i.$$set=l=>{"type"in l&&t(0,n=l.type)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n==="emergency"?"warning":n==="caution"?"alert-circle":n==="information"?"information-circle":"calendar")},[n,o,r,a]}class Tn extends O{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}.notification{padding:1.5rem;display:flex;align-items:center;gap:1rem;border-radius:3px}.emergency{background-color:var(--goa-color-status-emergency);color:var(--color-white)}.caution{background-color:var(--goa-color-status-warning)}.information{background-color:var(--goa-color-status-info);color:var(--color-white)}.event{background-color:var(--goa-color-status-success);color:var(--color-white)}.icon{flex:0 0 auto;align-self:flex-start}.content{flex:1 1 auto}.close{flex:0 0 auto;align-self:flex-start}</style>",P(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Ln,Mn,N,{type:0},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["type"]}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),h()}}customElements.define("goa-notification",Tn);const Rn=/^[1-9]+[0-9]*(px|em|rem|ch|vh|vw|%)$/;function An(i){return Rn.test(i)}function Hn(i){let e,t,r;return{c(){e=b("div"),t=b("slot"),this.c=p,u(e,"class","page-content"),u(e,"style",r=`--max-width: ${i[0]}`)},m(n,o){v(n,e,o),m(e,t)},p(n,[o]){o&1&&r!==(r=`--max-width: ${n[0]}`)&&u(e,"style",r)},i:p,o:p,d(n){n&&z(e)}}}function In(i,e,t){const r={full:"100%"};let{width:n}=e,{_width:o}=e;function a(l){return!!(["full"].includes(n)||An(l))}return Y(()=>{if(!a(n))throw"Invalid PageBlock width";t(0,o=r[n]||n)}),i.$$set=l=>{"width"in l&&t(1,n=l.width),"_width"in l&&t(0,o=l._width)},[o,n]}class Sn extends O{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--font-family)}.page-content{max-width:var(--max-width);margin:0 auto;padding:0 1.75rem}</style>",P(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},In,Hn,N,{width:1,_width:0},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["width","_width"]}get width(){return this.$$.ctx[1]}set width(e){this.$$set({width:e}),h()}get _width(){return this.$$.ctx[0]}set _width(e){this.$$set({_width:e}),h()}}customElements.define("goa-page-block",Sn);const ei="bind";function ti(i,e,t){const r=i.slice();return r[14]=e[t],r}function ii(i,e){let t,r,n,o,a,l,s,c,d=(e[14].label||e[14].value)+"",f,g,w,_,k;function M(){return e[11](e[14])}return{key:i,first:null,c(){t=b("label"),r=b("input"),a=H(),l=b("div"),s=H(),c=b("span"),f=F(d),g=H(),u(r,"type","radio"),u(r,"name",e[1]),r.value=n=e[14].value,r.disabled=e[7],r.checked=o=e[14].value===e[0],u(l,"class","goa-radio-icon"),u(c,"class","goa-radio-label"),u(t,"data-testid",w="radio-option-"+e[14].value),u(t,"class","goa-radio"),B(t,"goa-radio--disabled",e[7]),B(t,"goa-radio--error",e[5]),this.first=t},m(x,E){v(x,t,E),m(t,r),m(t,a),m(t,l),m(t,s),m(t,c),m(c,f),m(t,g),_||(k=U(r,"change",M),_=!0)},p(x,E){e=x,E&2&&u(r,"name",e[1]),E&16&&n!==(n=e[14].value)&&(r.value=n),E&128&&(r.disabled=e[7]),E&17&&o!==(o=e[14].value===e[0])&&(r.checked=o),E&16&&d!==(d=(e[14].label||e[14].value)+"")&&q(f,d),E&16&&w!==(w="radio-option-"+e[14].value)&&u(t,"data-testid",w),E&128&&B(t,"goa-radio--disabled",e[7]),E&32&&B(t,"goa-radio--error",e[5])},d(x){x&&z(t),_=!1,k()}}}function Dn(i){let e,t,r,n=[],o=new Map,a,l=i[4];const s=c=>c[14].value;for(let c=0;c<l.length;c+=1){let d=ti(i,l,c),f=s(d);o.set(f,n[c]=ii(f,d))}return{c(){e=b("div"),t=b("slot"),r=H();for(let c=0;c<n.length;c+=1)n[c].c();this.c=p,u(e,"class",a=`goa-radio-group--${i[2]}`),u(e,"data-testid",i[3])},m(c,d){v(c,e,d),m(e,t),m(e,r);for(let f=0;f<n.length;f+=1)n[f].m(e,null);i[12](e)},p(c,[d]){d&435&&(l=c[4],n=Ci(n,d,s,1,c,l,o,e,zi,ii,null,ti)),d&4&&a!==(a=`goa-radio-group--${c[2]}`)&&u(e,"class",a),d&8&&u(e,"data-testid",c[3])},i:p,o:p,d(c){c&&z(e);for(let d=0;d<n.length;d+=1)n[d].d();i[12](null)}}}function Bn(i,e,t){let r,{name:n}=e,{value:o}=e,{orientation:a="vertical"}=e,{disabled:l="false"}=e,{error:s="false"}=e,{testid:c=""}=e,d=[],f,g,w;Y(()=>{const x=10;let E=0;const T=setInterval(async()=>{E++,n&&(g=yt(n),g.subscribe(y=>{switch(y==null?void 0:y.type){case ei:t(4,d=[...d,y])}}),clearInterval(T)),E>x&&(console.error("goa-radio: missing the required `name` attribute. It must match the children's name attribute."),clearInterval(T))},10)});function _(x){x!==o&&(t(0,o=x),w.dispatchEvent(new CustomEvent("_change",{composed:!0,detail:{name:n,value:o}})))}rt(()=>{xt(n)});const k=x=>_(x.value);function M(x){te[x?"unshift":"push"](()=>{w=x,t(6,w)})}return i.$$set=x=>{"name"in x&&t(1,n=x.name),"value"in x&&t(0,o=x.value),"orientation"in x&&t(2,a=x.orientation),"disabled"in x&&t(9,l=x.disabled),"error"in x&&t(10,s=x.error),"testid"in x&&t(3,c=x.testid)},i.$$.update=()=>{i.$$.dirty&512&&t(7,r=G(l)),i.$$.dirty&1024&&t(5,f=G(s))},[o,n,a,c,d,f,w,r,_,l,s,k,M]}class Nn extends O{constructor(e){super();this.shadowRoot.innerHTML='<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-radio-group--horizontal{display:flex;flex-direction:row}.goa-radio-group--vertical{display:inline-block}label.goa-radio{--goa-radio-outline-width:3px;--goa-radio-diameter:1.5rem;--goa-radio-border-width:1px;--goa-radio-border-width--checked:7px;display:inline-block;box-sizing:border-box;display:flex;align-items:center;min-height:3rem}.goa-radio:hover{cursor:pointer}.goa-radio *,.goa-radio *:before,.goa-radio *:after{box-sizing:border-box}.goa-radio input[type="radio"]{width:0;height:0;margin:0;opacity:0}input[type="radio"]:hover~.goa-radio-icon{border-color:var(--goa-color-interactive--hover)}input[type="radio"]:focus~.goa-radio-icon{box-shadow:0 0 0 var(--goa-radio-outline-width) var(--goa-color-interactive--focus)}.goa-radio-label{padding:0.5rem;font-weight:var(--fw-regular)}.goa-radio-icon{display:inline-block;height:var(--goa-radio-diameter);width:var(--goa-radio-diameter);border-radius:50%;background-color:#fff;transition:box-shadow 100ms ease-in-out;flex:0 0 auto}.goa-radio:focus>input:not(:disabled)~.goa-radio-icon{box-shadow:0 0 0 var(--goa-radio-outline-width) var(--goa-color-interactive--focus)}.goa-radio--disabled{opacity:0.4}.goa-radio--disabled:hover{cursor:default}input[type="radio"]:checked~.goa-radio-icon{border:var(--goa-radio-border-width--checked) solid var(--goa-color-interactive--active)}input[type="radio"]:not(:checked)~.goa-radio-icon{border:var(--goa-radio-border-width) solid var(--color-gray-600)}input[type="radio"]:disabled~.goa-radio-icon{border:var(--goa-radio-border-width) solid var(--color-gray-600)}input[type="radio"]:disabled:checked~.goa-radio-icon{border:var(--goa-radio-border-width--checked) solid var(--goa-color-interactive--active)}.goa-radio--error input[type="radio"]:checked~.goa-radio-icon{border:7px solid var(--goa-color-status-emergency)}.goa-radio--error input[type="radio"]:not(:checked)~.goa-radio-icon{border:2px solid var(--goa-color-status-emergency)}</style>',P(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Bn,Dn,N,{name:1,value:0,orientation:2,disabled:9,error:10,testid:3},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["name","value","orientation","disabled","error","testid"]}get name(){return this.$$.ctx[1]}set name(e){this.$$set({name:e}),h()}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),h()}get orientation(){return this.$$.ctx[2]}set orientation(e){this.$$set({orientation:e}),h()}get disabled(){return this.$$.ctx[9]}set disabled(e){this.$$set({disabled:e}),h()}get error(){return this.$$.ctx[10]}set error(e){this.$$set({error:e}),h()}get testid(){return this.$$.ctx[3]}set testid(e){this.$$set({testid:e}),h()}}customElements.define("goa-radio-group",Nn);function On(i){return{c(){this.c=p},m:p,p,i:p,o:p,d:p}}function jn(i,e,t){let{value:r}=e,{label:n}=e,{name:o}=e,a;return Y(()=>{const l=10;let s=0;const c=setInterval(()=>{if(s++,o){if(a=kt(o),!a)return;a.notify({type:ei,value:r,label:n}),clearInterval(c)}s>l&&(console.error("goa-radio-item: missing the required `name` attribute. It must match the parent's name attribute."),clearInterval(c))},10)}),i.$$set=l=>{"value"in l&&t(0,r=l.value),"label"in l&&t(1,n=l.label),"name"in l&&t(2,o=l.name)},[r,n,o]}class Pn extends O{constructor(e){super();P(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},jn,On,N,{value:0,label:1,name:2},null),e&&(e.target&&v(e.target,this,e.anchor),e.props&&(this.$set(e.props),h()))}static get observedAttributes(){return["value","label","name"]}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),h()}get label(){return this.$$.ctx[1]}set label(e){this.$$set({label:e}),h()}get name(){return this.$$.ctx[2]}set name(e){this.$$set({name:e}),h()}}customElements.define("goa-radio-item",Pn);function Fn(i){let e,t,r;return{c(){e=b("div"),t=b("slot"),this.c=p,u(e,"class","goa-scrollable"),u(e,"style",r=`
|
|
59
59
|
--max-height: ${i[3]};
|