@abgov/web-components 1.0.0-alpha.148 → 1.0.0-alpha.149
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/README.md +13 -0
- package/package.json +1 -1
- package/web-components.es.js +4 -2
- package/web-components.umd.js +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# GoA Web components
|
|
2
|
+
|
|
3
|
+
This library contains custom components from the Government of Alberta.
|
|
4
|
+
|
|
5
|
+
## [View Angular Setup](https://ui-components.alberta.ca/?path=/docs/setup-angular--page)
|
|
6
|
+
|
|
7
|
+
## [View React Setup](https://ui-components.alberta.ca/?path=/docs/setup-react--page)
|
|
8
|
+
|
|
9
|
+
## [View Vue Setup](https://ui-components.alberta.ca/?path=/docs/setup-vue--page)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
[Visit Design System](https://ui-components.alberta.ca)
|
package/package.json
CHANGED
package/web-components.es.js
CHANGED
|
@@ -10687,8 +10687,10 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
10687
10687
|
validateType(type);
|
|
10688
10688
|
});
|
|
10689
10689
|
|
|
10690
|
-
function close() {
|
|
10690
|
+
function close(e) {
|
|
10691
10691
|
$$invalidate(1, show = false);
|
|
10692
|
+
e.target.dispatchEvent(new CustomEvent("_dismiss", { composed: true }));
|
|
10693
|
+
e.stopPropagation();
|
|
10692
10694
|
}
|
|
10693
10695
|
|
|
10694
10696
|
$$self.$$set = $$props => {
|
|
@@ -13117,7 +13119,7 @@ class TextArea extends SvelteElement {
|
|
|
13117
13119
|
constructor(options) {
|
|
13118
13120
|
super();
|
|
13119
13121
|
|
|
13120
|
-
this.shadowRoot.innerHTML = `<style>:host{--textarea-padding-vertical:0.625rem;--textarea-padding-horizontal:0.75rem;box-sizing:border-box;font-family:var(--goa-font-family-sans)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--goa-color-greyscale-700);border-radius:3px;color:var(--goa-color-greyscale-black, #ccc);padding:var(--textarea-padding-vertical) var(--textarea-padding-horizontal);font-size:var(--goa-font-size-4);font-family:var(--goa-font-family-sans);min-width:100
|
|
13122
|
+
this.shadowRoot.innerHTML = `<style>:host{--textarea-padding-vertical:0.625rem;--textarea-padding-horizontal:0.75rem;box-sizing:border-box;font-family:var(--goa-font-family-sans)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--goa-color-greyscale-700);border-radius:3px;color:var(--goa-color-greyscale-black, #ccc);padding:var(--textarea-padding-vertical) var(--textarea-padding-horizontal);font-size:var(--goa-font-size-4);font-family:var(--goa-font-family-sans);min-width:100%;resize:vertical}@media(min-width: 640px){.goa-textarea{min-width:0;width:var(--width)}}.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,.goa-textarea:disabled:hover,.goa-textarea:disabled:active,.goa-textarea:disabled:focus{background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-200);cursor:default;box-shadow:none}.counter{position:absolute;right:0;padding-top:0.25rem;font-size:var(--goa-font-size-2)}.counter-error{color:var(--goa-color-interactive-error)
|
|
13121
13123
|
}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive-error)}</style>`;
|
|
13122
13124
|
|
|
13123
13125
|
init(
|
package/web-components.umd.js
CHANGED
|
@@ -84,7 +84,7 @@ var __vite_style__=document.createElement("style");__vite_style__.innerHTML=`@im
|
|
|
84
84
|
--width: ${L[9]};
|
|
85
85
|
`)&&u(e,"style",y)},i:x,o:x,d(L){L&&M(e),A&&A.d(),z&&z.d(),i[33](null),T&&T.d(),R&&R.d(),H&&H.d(),E=!1,oe(S)}}}function Ln(){this.dispatchEvent(new CustomEvent("_trailingIconClick",{composed:!0}))}function An(i,e,t){let r,n,a,l,o;const[s,c]=Z("Input type",["text","number","password","email","date","datetime-local","month","range","search","tel","time","url","week"]),[d,f]=Z("Input auto capitalize",["on","off","none","sentences","words","characters"]);let{type:h="text"}=e,{name:_=""}=e,{value:b=""}=e,{autocapitalize:v="off"}=e,{placeholder:k=""}=e,{leadingicon:y=null}=e,{trailingicon:E=null}=e,{variant:S="goa"}=e,{disabled:A="false"}=e,{handletrailingiconclick:z="false"}=e,{focused:T="false"}=e,{readonly:R="false"}=e,{error:H="false"}=e,{testid:L=""}=e,{width:D="30ch"}=e,{arialabel:se=null}=e,{min:Q=""}=e,{max:ie=""}=e,{step:ee=1}=e,{prefix:ae=""}=e,{suffix:Le=""}=e,{debounce:Oe=0}=e,{mt:$e=null}=e,{mr:et=null}=e,{mb:Pe=null}=e,{ml:xe=null}=e,re,Ae=null;function be(O){const Re=O.target;!Re||(Ae!=null&&clearTimeout(Ae),Ae=setTimeout(()=>{Re.dispatchEvent(new CustomEvent("_change",{composed:!0,bubbles:!1,cancelable:!0,detail:{name:_,value:Re.value}}))},Oe),t(0,b=Re.value))}X(()=>{c(h),f(v),(ae!=""||Le!="")&&console.warn("GoAInput [prefix] and [suffix] properties are deprecated. Instead use leadingContent and trailingContent.")});function tt(O){te[O?"unshift":"push"](()=>{re=O,t(20,re)})}return i.$$set=O=>{"type"in O&&t(1,h=O.type),"name"in O&&t(2,_=O.name),"value"in O&&t(0,b=O.value),"autocapitalize"in O&&t(3,v=O.autocapitalize),"placeholder"in O&&t(4,k=O.placeholder),"leadingicon"in O&&t(5,y=O.leadingicon),"trailingicon"in O&&t(6,E=O.trailingicon),"variant"in O&&t(7,S=O.variant),"disabled"in O&&t(26,A=O.disabled),"handletrailingiconclick"in O&&t(27,z=O.handletrailingiconclick),"focused"in O&&t(28,T=O.focused),"readonly"in O&&t(29,R=O.readonly),"error"in O&&t(30,H=O.error),"testid"in O&&t(8,L=O.testid),"width"in O&&t(9,D=O.width),"arialabel"in O&&t(10,se=O.arialabel),"min"in O&&t(11,Q=O.min),"max"in O&&t(12,ie=O.max),"step"in O&&t(13,ee=O.step),"prefix"in O&&t(14,ae=O.prefix),"suffix"in O&&t(15,Le=O.suffix),"debounce"in O&&t(31,Oe=O.debounce),"mt"in O&&t(16,$e=O.mt),"mr"in O&&t(17,et=O.mr),"mb"in O&&t(18,Pe=O.mb),"ml"in O&&t(19,xe=O.ml)},i.$$.update=()=>{i.$$.dirty[0]&134217728&&t(24,r=U(z)),i.$$.dirty[0]&268435456&&t(32,n=U(T)),i.$$.dirty[0]&536870912&&t(23,a=U(R)),i.$$.dirty[0]&1073741824&&t(22,l=U(H)),i.$$.dirty[0]&67108864&&t(21,o=U(A)),i.$$.dirty[0]&1048576|i.$$.dirty[1]&2&&n&&re&&setTimeout(()=>re.focus(),1),i.$$.dirty[0]&1048578&&re&&h==="search"&&re.addEventListener("search",O=>{be(O)})},[b,h,_,v,k,y,E,S,L,D,se,Q,ie,ee,ae,Le,$e,et,Pe,xe,re,o,l,a,r,be,A,z,T,R,H,Oe,n,tt]}class Rn extends I{constructor(e){super();this.shadowRoot.innerHTML=`<style>:host{box-sizing:border-box}.container{position:relative;width:100%;display:inline-block}@media(min-width: 640px){.container{width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box;line-height:normal}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--goa-color-greyscale-700);border-radius:var(--goa-border-radius-m);display:inline-flex;align-items:stretch;vertical-align:middle;min-width:100%;background-color:var(--goa-color-greyscale-white)}.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-default);font-size:var(--goa-font-size-4);padding:var(--goa-space-xs);line-height:calc(40px - calc(var(--goa-space-xs) * 2));background-color:transparent;width:100%;flex:1 1 auto;font-family:var(--goa-font-family-sans)}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(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-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,.leading-content ::slotted(div),.trailing-content ::slotted(div){background-color:var(--goa-color-greyscale-100);padding:0 0.75rem;display:flex;align-items:center}.leading-content ::slotted(div),.trailing-content ::slotted(div){padding:0.5rem 0.75rem}.prefix,.leading-content ::slotted(div){border-top-left-radius:var(--goa-border-radius-m);border-bottom-left-radius:var(--goa-border-radius-m);border-right:1px solid var(--goa-color-greyscale-700)}.suffix,.trailing-content ::slotted(div){border-top-right-radius:var(--goa-border-radius-m);border-bottom-right-radius:var(--goa-border-radius-m);border-left:1px solid var(--goa-color-greyscale-700)}.goa-input--disabled .prefix,.goa-input--disabled .leading-content ::slotted(div){border-right:1px solid var(--goa-color-greyscale-200)}.goa-input--disabled .suffix,.goa-input--disabled .trailing-content ::slotted(div){border-left:1px solid var(--goa-color-greyscale-200)}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}.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>')
|
|
86
86
|
center center no-repeat}</style>`,F(this,{target:this.shadowRoot,props:q(this.attributes),customElement:!0},An,Mn,j,{type:1,name:2,value:0,autocapitalize:3,placeholder:4,leadingicon:5,trailingicon:6,variant:7,disabled:26,handletrailingiconclick:27,focused:28,readonly:29,error:30,testid:8,width:9,arialabel:10,min:11,max:12,step:13,prefix:14,suffix:15,debounce:31,mt:16,mr:17,mb:18,ml:19},null,[-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["type","name","value","autocapitalize","placeholder","leadingicon","trailingicon","variant","disabled","handletrailingiconclick","focused","readonly","error","testid","width","arialabel","min","max","step","prefix","suffix","debounce","mt","mr","mb","ml"]}get type(){return this.$$.ctx[1]}set type(e){this.$$set({type:e}),g()}get name(){return this.$$.ctx[2]}set name(e){this.$$set({name:e}),g()}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),g()}get autocapitalize(){return this.$$.ctx[3]}set autocapitalize(e){this.$$set({autocapitalize:e}),g()}get placeholder(){return this.$$.ctx[4]}set placeholder(e){this.$$set({placeholder:e}),g()}get leadingicon(){return this.$$.ctx[5]}set leadingicon(e){this.$$set({leadingicon:e}),g()}get trailingicon(){return this.$$.ctx[6]}set trailingicon(e){this.$$set({trailingicon:e}),g()}get variant(){return this.$$.ctx[7]}set variant(e){this.$$set({variant:e}),g()}get disabled(){return this.$$.ctx[26]}set disabled(e){this.$$set({disabled:e}),g()}get handletrailingiconclick(){return this.$$.ctx[27]}set handletrailingiconclick(e){this.$$set({handletrailingiconclick:e}),g()}get focused(){return this.$$.ctx[28]}set focused(e){this.$$set({focused:e}),g()}get readonly(){return this.$$.ctx[29]}set readonly(e){this.$$set({readonly:e}),g()}get error(){return this.$$.ctx[30]}set error(e){this.$$set({error:e}),g()}get testid(){return this.$$.ctx[8]}set testid(e){this.$$set({testid:e}),g()}get width(){return this.$$.ctx[9]}set width(e){this.$$set({width:e}),g()}get arialabel(){return this.$$.ctx[10]}set arialabel(e){this.$$set({arialabel:e}),g()}get min(){return this.$$.ctx[11]}set min(e){this.$$set({min:e}),g()}get max(){return this.$$.ctx[12]}set max(e){this.$$set({max:e}),g()}get step(){return this.$$.ctx[13]}set step(e){this.$$set({step:e}),g()}get prefix(){return this.$$.ctx[14]}set prefix(e){this.$$set({prefix:e}),g()}get suffix(){return this.$$.ctx[15]}set suffix(e){this.$$set({suffix:e}),g()}get debounce(){return this.$$.ctx[31]}set debounce(e){this.$$set({debounce:e}),g()}get mt(){return this.$$.ctx[16]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[17]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[18]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[19]}set ml(e){this.$$set({ml:e}),g()}}customElements.define("goa-input",Rn);function ri(i){let e,t,r;return{c(){e=w("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=B(),r=w("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,a){p(n,e,a),p(n,t,a),p(n,r,a)},d(n){n&&M(e),n&&M(t),n&&M(r)}}}function ni(i){let e,t=li(i[0])+"",r,n,a,l,o,s,c,d=i[2]&&ai(i);return{c(){e=w("div"),r=G(t),a=B(),l=w("div"),o=G("This is a new "),s=w("a"),s.textContent="Alberta Government",c=G(` service
|
|
87
|
-
`),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(l,"data-testid","site-text"),u(l,"class","site-text")},m(f,h){p(f,e,h),m(e,r),p(f,a,h),p(f,l,h),m(l,o),m(l,s),m(l,c),d&&d.m(l,null)},p(f,h){h&1&&t!==(t=li(f[0])+"")&&K(r,t),h&1&&n!==(n="service-type service-type--"+f[0].toLowerCase())&&u(e,"class",n),f[2]?d?d.p(f,h):(d=ai(f),d.c(),d.m(l,null)):d&&(d.d(1),d=null)},d(f){f&&M(e),f&&M(a),f&&M(l),d&&d.d()}}}function ai(i){let e,t,r,n;return{c(){e=w("span"),t=G("\u2014 help us improve it by giving "),r=w("a"),n=G("feedback"),u(r,"href",i[2]),u(e,"data-testid","feedback")},m(a,l){p(a,e,l),m(e,t),m(e,r),m(r,n)},p(a,l){l&4&&u(r,"href",a[2])},d(a){a&&M(e)}}}function oi(i){let e,t;return{c(){e=w("div"),t=G(i[1]),u(e,"data-testid","version"),u(e,"class","version")},m(r,n){p(r,e,n),m(e,t)},p(r,n){n&2&&K(t,r[1])},d(r){r&&M(e)}}}function Hn(i){let e,t,r=["alpha","beta"].includes(i[0]),n,a,l,o=i[0]==="live"&&ri(),s=r&&ni(i),c=i[1]&&oi(i);return{c(){e=w("header"),o&&o.c(),t=B(),s&&s.c(),n=B(),a=w("div"),l=B(),c&&c.c(),this.c=x,u(a,"class","spacer"),u(e,"class","goa-official-site-header")},m(d,f){p(d,e,f),o&&o.m(e,null),m(e,t),s&&s.m(e,null),m(e,n),m(e,a),m(e,l),c&&c.m(e,null)},p(d,[f]){d[0]==="live"?o||(o=ri(),o.c(),o.m(e,t)):o&&(o.d(1),o=null),f&1&&(r=["alpha","beta"].includes(d[0])),r?s?s.p(d,f):(s=ni(d),s.c(),s.m(e,n)):s&&(s.d(1),s=null),d[1]?c?c.p(d,f):(c=oi(d),c.c(),c.m(e,null)):c&&(c.d(1),c=null)},i:x,o:x,d(d){d&&M(e),o&&o.d(),s&&s.d(),c&&c.d()}}}function li(i){return!i||i&&i.length===0?"":i[0].toUpperCase()+i.slice(1)}function Sn(i,e,t){const[r,n]=Z("Microsite header type",["live","alpha","beta"],!0);let{type:a}=e,{version:l=""}=e,{feedbackurl:o=""}=e;return X(()=>{n(a)}),i.$$set=s=>{"type"in s&&t(0,a=s.type),"version"in s&&t(1,l=s.version),"feedbackurl"in s&&t(2,o=s.feedbackurl)},[a,l,o]}class Bn extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}a{color:var(--goa-color-interactive-default);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(--goa-font-size-2);background-color:var(--goa-color-greyscale-100);align-items:center;justify-content:space-between;padding:0.25rem 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.125rem 0.25rem;display:flex;margin-right:1rem;line-height:initial}.service-type--alpha{background-color:var(--goa-color-warning-default);color:var(--goa-color-text-default)}.service-type--beta{background-color:var(--goa-color-brand-default);color:var(--goa-color-text-light)}.service-type--live{padding:0}.site-text{color:var(--goa-color-text-default);line-height:1.25rem}</style>",F(this,{target:this.shadowRoot,props:q(this.attributes),customElement:!0},Sn,Hn,j,{type:0,version:1,feedbackurl:2},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["type","version","feedbackurl"]}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),g()}get version(){return this.$$.ctx[1]}set version(e){this.$$set({version:e}),g()}get feedbackurl(){return this.$$.ctx[2]}set feedbackurl(e){this.$$set({feedbackurl:e}),g()}}customElements.define("goa-microsite-header",Bn);function si(i){let e,t,r,n,a,l,o,s,c,d,f,h,_,b,v,k,y,E,S,A,z,T,R,H=i[3]!==null&&ci(i),L=i[0]&&di(i),D=i[4]&&ui(i);function se(ee,ae){return Nn}let ie=se()(i);return{c(){e=w("goa-focus-trap"),t=w("div"),r=w("div"),n=B(),a=w("div"),H&&H.c(),l=B(),o=w("div"),L&&L.c(),s=B(),D&&D.c(),c=B(),d=w("div"),ie.c(),f=B(),h=w("slot"),_=B(),b=w("div"),b.innerHTML='<slot name="actions"></slot>',u(r,"data-testid","modal-overlay"),u(r,"class","modal-overlay"),u(d,"data-testid","modal-content"),u(d,"class","modal-content"),u(b,"class","modal-actions"),u(b,"data-testid","modal-actions"),u(o,"class","content"),u(a,"class","modal-pane"),u(t,"data-testid","modal"),u(t,"class","modal"),u(t,"style",y=""+((i[2]&&`--width: ${i[2]};`)+";")),C(e,"active",i[1])},m(ee,ae){p(ee,e,ae),m(e,t),m(t,r),m(t,n),m(t,a),H&&H.m(a,null),m(a,l),m(a,o),L&&L.m(o,null),m(o,s),D&&D.m(o,null),m(o,c),m(o,d),ie.m(d,null),m(d,f),m(d,h),m(o,_),m(o,b),z=!0,T||(R=[W(r,"click",i[8]),ft(E=Ht.call(null,t,{enable:i[7]}))],T=!0)},p(ee,ae){i=ee,i[3]!==null?H?H.p(i,ae):(H=ci(i),H.c(),H.m(a,l)):H&&(H.d(1),H=null),i[0]?L?L.p(i,ae):(L=di(i),L.c(),L.m(o,s)):L&&(L.d(1),L=null),i[4]?D?D.p(i,ae):(D=ui(i),D.c(),D.m(o,c)):D&&(D.d(1),D=null),(!z||ae&4&&y!==(y=""+((i[2]&&`--width: ${i[2]};`)+";")))&&u(t,"style",y),E&&fe(E.update)&&ae&128&&E.update.call(null,{enable:i[7]}),(!z||ae&2)&&C(e,"active",i[1])},i(ee){z||(de(()=>{k&&k.end(1),v=_t(a,Rt,{duration:i[6],y:200}),v.start()}),de(()=>{A&&A.end(1),S=_t(t,Te,{duration:i[6]}),S.start()}),z=!0)},o(ee){v&&v.invalidate(),k=kt(a,Rt,{delay:i[6],duration:i[6],y:-100}),S&&S.invalidate(),A=kt(t,Te,{delay:i[6],duration:i[6]}),z=!1},d(ee){ee&&M(e),H&&H.d(),L&&L.d(),D&&D.d(),ie.d(),ee&&k&&k.end(),ee&&A&&A.end(),T=!1,oe(R)}}}function ci(i){let e,t,r,n;return{c(){e=w("div"),t=w("goa-icon"),C(t,"type",i[5]),C(t,"inverted",r=i[3]==="important"?"false":"true"),u(e,"class",n="callout-bar "+i[3])},m(a,l){p(a,e,l),m(e,t)},p(a,l){l&32&&C(t,"type",a[5]),l&8&&r!==(r=a[3]==="important"?"false":"true")&&C(t,"inverted",r),l&8&&n!==(n="callout-bar "+a[3])&&u(e,"class",n)},d(a){a&&M(e)}}}function di(i){let e,t;return{c(){e=w("div"),t=G(i[0]),u(e,"data-testid","modal-title"),u(e,"class","modal-title")},m(r,n){p(r,e,n),m(e,t)},p(r,n){n&1&&K(t,r[0])},d(r){r&&M(e)}}}function ui(i){let e,t,r,n;return{c(){e=w("div"),t=w("goa-icon-button"),C(t,"data-testid","modal-close-button"),C(t,"icon","close"),C(t,"variant","nocolor"),u(e,"class","modal-close")},m(a,l){p(a,e,l),m(e,t),r||(n=W(t,"click",i[8]),r=!0)},p:x,d(a){a&&M(e),r=!1,n()}}}function Nn(i){let e;return{c(){e=w("goa-scrollable"),e.innerHTML="<slot></slot>",C(e,"direction","vertical"),C(e,"height","50")},m(t,r){p(t,e,r)},d(t){t&&M(e)}}}function Dn(i){let e,t,r=i[7]&&si(i);return{c(){r&&r.c(),e=we(),this.c=x},m(n,a){r&&r.m(n,a),p(n,e,a),t=!0},p(n,[a]){n[7]?r?(r.p(n,a),a&128&&J(r,1)):(r=si(n),r.c(),J(r,1),r.m(e.parentNode,e)):r&&(ze(),Y(r,1,1,()=>{r=null}),Ce())},i(n){t||(J(r),t=!0)},o(n){Y(r),t=!1},d(n){r&&r.d(n),n&&M(e)}}}function On(i,e,t){let r,n,a,l;const[o,s]=Z("Callout variant",["emergency","important","information","success","event"]),[c,d]=Z("Modal transition",["fast","slow","none"]);let{heading:f=""}=e,{closable:h="false"}=e,{open:_="false"}=e,{transition:b="none"}=e,{width:v=""}=e,{calloutvariant:k=null}=e;function y(E){!r||(E.target.dispatchEvent(new CustomEvent("_close",{composed:!0})),E.stopPropagation())}return X(()=>{s(k),d(b)}),i.$$set=E=>{"heading"in E&&t(0,f=E.heading),"closable"in E&&t(9,h=E.closable),"open"in E&&t(1,_=E.open),"transition"in E&&t(10,b=E.transition),"width"in E&&t(2,v=E.width),"calloutvariant"in E&&t(3,k=E.calloutvariant)},i.$$.update=()=>{i.$$.dirty&512&&t(4,r=U(h)),i.$$.dirty&2&&t(7,n=U(_)),i.$$.dirty&1024&&t(6,a=b==="none"?0:b==="slow"?400:200),i.$$.dirty&8&&t(5,l=k==="emergency"?"warning":k==="important"?"alert-circle":k==="information"?"information-circle":k==="success"?"checkmark-circle":k==="event"?"calendar":"")},[f,_,v,k,r,l,a,n,y,h,b]}class Pn extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.modal{font-family:var(--goa-font-family-sans);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}.emergency{background-color:var(--goa-color-emergency-default)}.important{background-color:var(--goa-color-warning-default)}.information{background-color:var(--goa-color-info-default)}.event{background-color:var(--goa-color-info-default)}.success{background-color:var(--goa-color-success-default)}.callout-bar{flex:0 0 3rem;text-align:center;padding-top:2rem;border-radius:4px 0px 0px 4px}.content{flex:1 1 auto;width:100%;margin:2rem 2rem}.modal-pane{position:relative;background-color:#fff;z-index:1001;width:90%;display:flex;margin:1rem;box-shadow:var(--goa-shadow-modal);border-radius:4px;max-height:90%;border:1px solid var(--goa-color-greyscale-700)}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch);max-height:80%}}.modal-actions ::slotted(div){margin:1.5rem 0 0}.modal-content ::slotted(:last-child){margin-bottom:0 !important}.modal-close{position:absolute;top:2rem;right:2rem}.modal-title{font-size:var(--goa-font-size-7);margin:0 0 1.5rem;margin-right:40px;flex:0 0 auto}.modal-content{line-height:1.75rem}</style>",F(this,{target:this.shadowRoot,props:q(this.attributes),customElement:!0},On,Dn,j,{heading:0,closable:9,open:1,transition:10,width:2,calloutvariant:3},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["heading","closable","open","transition","width","calloutvariant"]}get heading(){return this.$$.ctx[0]}set heading(e){this.$$set({heading:e}),g()}get closable(){return this.$$.ctx[9]}set closable(e){this.$$set({closable:e}),g()}get open(){return this.$$.ctx[1]}set open(e){this.$$set({open:e}),g()}get transition(){return this.$$.ctx[10]}set transition(e){this.$$set({transition:e}),g()}get width(){return this.$$.ctx[2]}set width(e){this.$$set({width:e}),g()}get calloutvariant(){return this.$$.ctx[3]}set calloutvariant(e){this.$$set({calloutvariant:e}),g()}}customElements.define("goa-modal",Pn);function fi(i){let e,t,r,n,a,l,o,s,c,d,f,h,_,b,v;return{c(){e=w("div"),t=w("div"),r=w("goa-icon"),a=B(),l=w("div"),l.innerHTML="<slot></slot>",o=B(),s=w("div"),c=w("goa-icon-button"),C(r,"type",i[2]),C(r,"inverted",n=i[0]==="important"?"false":"true"),u(t,"class","icon"),u(l,"class","content"),C(c,"icon","close"),C(c,"variant","dark"),C(c,"inverted",d=i[0]==="important"?"false":"true"),u(s,"class","close"),u(e,"class",f="notification "+i[0])},m(k,y){p(k,e,y),m(e,t),m(t,r),m(e,a),m(e,l),m(e,o),m(e,s),m(s,c),_=!0,b||(v=W(c,"click",i[3]),b=!0)},p(k,y){(!_||y&4)&&C(r,"type",k[2]),(!_||y&1&&n!==(n=k[0]==="important"?"false":"true"))&&C(r,"inverted",n),(!_||y&1&&d!==(d=k[0]==="important"?"false":"true"))&&C(c,"inverted",d),(!_||y&1&&f!==(f="notification "+k[0]))&&u(e,"class",f)},i(k){_||(de(()=>{h||(h=Qe(e,Te,{},!0)),h.run(1)}),_=!0)},o(k){h||(h=Qe(e,Te,{},!1)),h.run(0),_=!1},d(k){k&&M(e),k&&h&&h.end(),b=!1,v()}}}function jn(i){let e,t,r=i[1]&&fi(i);return{c(){r&&r.c(),e=we(),this.c=x},m(n,a){r&&r.m(n,a),p(n,e,a),t=!0},p(n,[a]){n[1]?r?(r.p(n,a),a&2&&J(r,1)):(r=fi(n),r.c(),J(r,1),r.m(e.parentNode,e)):r&&(ze(),Y(r,1,1,()=>{r=null}),Ce())},i(n){t||(J(r),t=!0)},o(n){Y(r),t=!1},d(n){r&&r.d(n),n&&M(e)}}}function In(i,e,t){let r;const[n,a]=Z("Notification type",["emergency","important","information","event"],!0);let{type:l=""}=e,o=!0;X(()=>{a(l)});function s(){t(1,o=!1)}return i.$$set=c=>{"type"in c&&t(0,l=c.type)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=l==="emergency"?"warning":l==="important"?"alert-circle":l==="information"?"information-circle":l==="event"?"calendar":"")},[l,o,r,s]}class qn extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.notification{padding:1.5rem;display:flex;gap:1rem}.emergency{background-color:var(--goa-color-emergency-default);color:var(--goa-color-greyscale-white)}.important{background-color:var(--goa-color-warning-default)}.information{background-color:var(--goa-color-info-default);color:var(--goa-color-greyscale-white)}.event{background-color:var(--goa-color-success-default);color:var(--goa-color-greyscale-white)}.icon{flex:0 0 auto}.content{flex:1 1 auto}::slotted(a){color:unset !important;outline:unset !important}.close{flex:0 0 auto}</style>",F(this,{target:this.shadowRoot,props:q(this.attributes),customElement:!0},In,jn,j,{type:0},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["type"]}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),g()}}customElements.define("goa-notification",qn);const Fn=/^[1-9]+[0-9]*(px|em|rem|ch|vh|vw|%)$/;function Vn(i){return Fn.test(i)}function Gn(i){let e,t,r;return{c(){e=w("div"),t=w("slot"),this.c=x,u(e,"class","page-content"),u(e,"style",r=`--max-width: ${i[0]}`)},m(n,a){p(n,e,a),m(e,t)},p(n,[a]){a&1&&r!==(r=`--max-width: ${n[0]}`)&&u(e,"style",r)},i:x,o:x,d(n){n&&M(e)}}}function Un(i,e,t){const r={full:"100%"};let{width:n}=e,{_width:a}=e;function l(o){return!!(["full"].includes(n)||Vn(o))}return X(()=>{l(n)||console.error("Invalid PageBlock width"),t(0,a=r[n]||n)}),i.$$set=o=>{"width"in o&&t(1,n=o.width),"_width"in o&&t(0,a=o._width)},[a,n]}class Wn extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.page-content{max-width:var(--max-width);margin:0 auto;padding:0 1.75rem}</style>",F(this,{target:this.shadowRoot,props:q(this.attributes),customElement:!0},Un,Gn,j,{width:1,_width:0},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["width","_width"]}get width(){return this.$$.ctx[1]}set width(e){this.$$set({width:e}),g()}get _width(){return this.$$.ctx[0]}set _width(e){this.$$set({_width:e}),g()}}customElements.define("goa-page-block",Wn);function gi(i,e,t){const r=i.slice();return r[22]=e[t],r}function hi(i,e){let t,r,n,a,l,o,s,c,d,f=(e[22].label||e[22].value)+"",h,_,b,v,k;function y(){return e[16](e[22])}return{key:i,first:null,c(){t=w("label"),r=w("input"),o=B(),s=w("div"),c=B(),d=w("span"),h=G(f),_=B(),u(r,"type","radio"),u(r,"name",e[1]),r.value=n=e[22].value,r.disabled=e[12],r.checked=a=e[22].value===e[0],u(r,"aria-label",l=e[4]||e[1]),u(s,"class","goa-radio-icon"),u(d,"class","goa-radio-label"),u(t,"data-testid",b="radio-option-"+e[22].value),u(t,"class","goa-radio"),P(t,"goa-radio--disabled",e[12]),P(t,"goa-radio--error",e[11]),this.first=t},m(E,S){p(E,t,S),m(t,r),m(t,o),m(t,s),m(t,c),m(t,d),m(d,h),m(t,_),v||(k=W(r,"change",y),v=!0)},p(E,S){e=E,S&2&&u(r,"name",e[1]),S&512&&n!==(n=e[22].value)&&(r.value=n),S&4096&&(r.disabled=e[12]),S&513&&a!==(a=e[22].value===e[0])&&(r.checked=a),S&18&&l!==(l=e[4]||e[1])&&u(r,"aria-label",l),S&512&&f!==(f=(e[22].label||e[22].value)+"")&&K(h,f),S&512&&b!==(b="radio-option-"+e[22].value)&&u(t,"data-testid",b),S&4096&&P(t,"goa-radio--disabled",e[12]),S&2048&&P(t,"goa-radio--error",e[11])},d(E){E&&M(t),v=!1,k()}}}function Kn(i){let e,t,r,n=[],a=new Map,l,o,s=i[9];const c=d=>d[22].value;for(let d=0;d<s.length;d+=1){let f=gi(i,s,d),h=c(f);a.set(h,n[d]=hi(h,f))}return{c(){e=w("div"),t=w("slot"),r=B();for(let d=0;d<n.length;d+=1)n[d].c();this.c=x,u(e,"style",l=V(i[5],i[6],i[7],i[8])),u(e,"class",o=`goa-radio-group--${i[2]}`),u(e,"data-testid",i[3])},m(d,f){p(d,e,f),m(e,t),m(e,r);for(let h=0;h<n.length;h+=1)n[h].m(e,null);i[17](e)},p(d,[f]){f&14867&&(s=d[9],n=xt(n,f,c,1,d,s,a,e,pt,hi,null,gi)),f&480&&l!==(l=V(d[5],d[6],d[7],d[8]))&&u(e,"style",l),f&4&&o!==(o=`goa-radio-group--${d[2]}`)&&u(e,"class",o),f&8&&u(e,"data-testid",d[3])},i:x,o:x,d(d){d&&M(e);for(let f=0;f<n.length;f+=1)n[f].d();i[17](null)}}}function Xn(i,e,t){let r,n;const[a,l]=Z("Radio group orientation",["vertical","horizontal"]);let{name:o}=e,{value:s}=e,{orientation:c="vertical"}=e,{disabled:d="false"}=e,{error:f="false"}=e,{testid:h=""}=e,{arialabel:_=""}=e,{mt:b=null}=e,{mr:v=null}=e,{mb:k=null}=e,{ml:y=null}=e,E=[],S;X(async()=>{await _e(),t(9,E=z())});function A(){const L=S.querySelector("slot");return L?[...L.assignedElements()]:[...S.children]}function z(){return A().map(D=>{const se=D,Q=D.getAttribute("value")||se.value,ie=D.getAttribute("label")||D.innerText||se.label||se.innerText;return{value:Q,label:ie}})}function T(L){L!==s&&(t(0,s=L),S.dispatchEvent(new CustomEvent("_change",{composed:!0,detail:{name:o,value:s}})))}X(()=>{l(c)});const R=L=>T(L.value);function H(L){te[L?"unshift":"push"](()=>{S=L,t(10,S)})}return i.$$set=L=>{"name"in L&&t(1,o=L.name),"value"in L&&t(0,s=L.value),"orientation"in L&&t(2,c=L.orientation),"disabled"in L&&t(14,d=L.disabled),"error"in L&&t(15,f=L.error),"testid"in L&&t(3,h=L.testid),"arialabel"in L&&t(4,_=L.arialabel),"mt"in L&&t(5,b=L.mt),"mr"in L&&t(6,v=L.mr),"mb"in L&&t(7,k=L.mb),"ml"in L&&t(8,y=L.ml)},i.$$.update=()=>{i.$$.dirty&16384&&t(12,r=U(d)),i.$$.dirty&32768&&t(11,n=U(f))},[s,o,c,h,_,b,v,k,y,E,S,n,r,T,d,f,R,H]}class Zn extends I{constructor(e){super();this.shadowRoot.innerHTML=`<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.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(--goa-font-weight-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 .goa-radio-label{opacity:0.4}.goa-radio--disabled:hover{cursor:default}input[type="radio"]:checked~.goa-radio-icon{border:var(--goa-radio-border-width--checked) solid
|
|
87
|
+
`),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(l,"data-testid","site-text"),u(l,"class","site-text")},m(f,h){p(f,e,h),m(e,r),p(f,a,h),p(f,l,h),m(l,o),m(l,s),m(l,c),d&&d.m(l,null)},p(f,h){h&1&&t!==(t=li(f[0])+"")&&K(r,t),h&1&&n!==(n="service-type service-type--"+f[0].toLowerCase())&&u(e,"class",n),f[2]?d?d.p(f,h):(d=ai(f),d.c(),d.m(l,null)):d&&(d.d(1),d=null)},d(f){f&&M(e),f&&M(a),f&&M(l),d&&d.d()}}}function ai(i){let e,t,r,n;return{c(){e=w("span"),t=G("\u2014 help us improve it by giving "),r=w("a"),n=G("feedback"),u(r,"href",i[2]),u(e,"data-testid","feedback")},m(a,l){p(a,e,l),m(e,t),m(e,r),m(r,n)},p(a,l){l&4&&u(r,"href",a[2])},d(a){a&&M(e)}}}function oi(i){let e,t;return{c(){e=w("div"),t=G(i[1]),u(e,"data-testid","version"),u(e,"class","version")},m(r,n){p(r,e,n),m(e,t)},p(r,n){n&2&&K(t,r[1])},d(r){r&&M(e)}}}function Hn(i){let e,t,r=["alpha","beta"].includes(i[0]),n,a,l,o=i[0]==="live"&&ri(),s=r&&ni(i),c=i[1]&&oi(i);return{c(){e=w("header"),o&&o.c(),t=B(),s&&s.c(),n=B(),a=w("div"),l=B(),c&&c.c(),this.c=x,u(a,"class","spacer"),u(e,"class","goa-official-site-header")},m(d,f){p(d,e,f),o&&o.m(e,null),m(e,t),s&&s.m(e,null),m(e,n),m(e,a),m(e,l),c&&c.m(e,null)},p(d,[f]){d[0]==="live"?o||(o=ri(),o.c(),o.m(e,t)):o&&(o.d(1),o=null),f&1&&(r=["alpha","beta"].includes(d[0])),r?s?s.p(d,f):(s=ni(d),s.c(),s.m(e,n)):s&&(s.d(1),s=null),d[1]?c?c.p(d,f):(c=oi(d),c.c(),c.m(e,null)):c&&(c.d(1),c=null)},i:x,o:x,d(d){d&&M(e),o&&o.d(),s&&s.d(),c&&c.d()}}}function li(i){return!i||i&&i.length===0?"":i[0].toUpperCase()+i.slice(1)}function Sn(i,e,t){const[r,n]=Z("Microsite header type",["live","alpha","beta"],!0);let{type:a}=e,{version:l=""}=e,{feedbackurl:o=""}=e;return X(()=>{n(a)}),i.$$set=s=>{"type"in s&&t(0,a=s.type),"version"in s&&t(1,l=s.version),"feedbackurl"in s&&t(2,o=s.feedbackurl)},[a,l,o]}class Bn extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}a{color:var(--goa-color-interactive-default);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(--goa-font-size-2);background-color:var(--goa-color-greyscale-100);align-items:center;justify-content:space-between;padding:0.25rem 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.125rem 0.25rem;display:flex;margin-right:1rem;line-height:initial}.service-type--alpha{background-color:var(--goa-color-warning-default);color:var(--goa-color-text-default)}.service-type--beta{background-color:var(--goa-color-brand-default);color:var(--goa-color-text-light)}.service-type--live{padding:0}.site-text{color:var(--goa-color-text-default);line-height:1.25rem}</style>",F(this,{target:this.shadowRoot,props:q(this.attributes),customElement:!0},Sn,Hn,j,{type:0,version:1,feedbackurl:2},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["type","version","feedbackurl"]}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),g()}get version(){return this.$$.ctx[1]}set version(e){this.$$set({version:e}),g()}get feedbackurl(){return this.$$.ctx[2]}set feedbackurl(e){this.$$set({feedbackurl:e}),g()}}customElements.define("goa-microsite-header",Bn);function si(i){let e,t,r,n,a,l,o,s,c,d,f,h,_,b,v,k,y,E,S,A,z,T,R,H=i[3]!==null&&ci(i),L=i[0]&&di(i),D=i[4]&&ui(i);function se(ee,ae){return Nn}let ie=se()(i);return{c(){e=w("goa-focus-trap"),t=w("div"),r=w("div"),n=B(),a=w("div"),H&&H.c(),l=B(),o=w("div"),L&&L.c(),s=B(),D&&D.c(),c=B(),d=w("div"),ie.c(),f=B(),h=w("slot"),_=B(),b=w("div"),b.innerHTML='<slot name="actions"></slot>',u(r,"data-testid","modal-overlay"),u(r,"class","modal-overlay"),u(d,"data-testid","modal-content"),u(d,"class","modal-content"),u(b,"class","modal-actions"),u(b,"data-testid","modal-actions"),u(o,"class","content"),u(a,"class","modal-pane"),u(t,"data-testid","modal"),u(t,"class","modal"),u(t,"style",y=""+((i[2]&&`--width: ${i[2]};`)+";")),C(e,"active",i[1])},m(ee,ae){p(ee,e,ae),m(e,t),m(t,r),m(t,n),m(t,a),H&&H.m(a,null),m(a,l),m(a,o),L&&L.m(o,null),m(o,s),D&&D.m(o,null),m(o,c),m(o,d),ie.m(d,null),m(d,f),m(d,h),m(o,_),m(o,b),z=!0,T||(R=[W(r,"click",i[8]),ft(E=Ht.call(null,t,{enable:i[7]}))],T=!0)},p(ee,ae){i=ee,i[3]!==null?H?H.p(i,ae):(H=ci(i),H.c(),H.m(a,l)):H&&(H.d(1),H=null),i[0]?L?L.p(i,ae):(L=di(i),L.c(),L.m(o,s)):L&&(L.d(1),L=null),i[4]?D?D.p(i,ae):(D=ui(i),D.c(),D.m(o,c)):D&&(D.d(1),D=null),(!z||ae&4&&y!==(y=""+((i[2]&&`--width: ${i[2]};`)+";")))&&u(t,"style",y),E&&fe(E.update)&&ae&128&&E.update.call(null,{enable:i[7]}),(!z||ae&2)&&C(e,"active",i[1])},i(ee){z||(de(()=>{k&&k.end(1),v=_t(a,Rt,{duration:i[6],y:200}),v.start()}),de(()=>{A&&A.end(1),S=_t(t,Te,{duration:i[6]}),S.start()}),z=!0)},o(ee){v&&v.invalidate(),k=kt(a,Rt,{delay:i[6],duration:i[6],y:-100}),S&&S.invalidate(),A=kt(t,Te,{delay:i[6],duration:i[6]}),z=!1},d(ee){ee&&M(e),H&&H.d(),L&&L.d(),D&&D.d(),ie.d(),ee&&k&&k.end(),ee&&A&&A.end(),T=!1,oe(R)}}}function ci(i){let e,t,r,n;return{c(){e=w("div"),t=w("goa-icon"),C(t,"type",i[5]),C(t,"inverted",r=i[3]==="important"?"false":"true"),u(e,"class",n="callout-bar "+i[3])},m(a,l){p(a,e,l),m(e,t)},p(a,l){l&32&&C(t,"type",a[5]),l&8&&r!==(r=a[3]==="important"?"false":"true")&&C(t,"inverted",r),l&8&&n!==(n="callout-bar "+a[3])&&u(e,"class",n)},d(a){a&&M(e)}}}function di(i){let e,t;return{c(){e=w("div"),t=G(i[0]),u(e,"data-testid","modal-title"),u(e,"class","modal-title")},m(r,n){p(r,e,n),m(e,t)},p(r,n){n&1&&K(t,r[0])},d(r){r&&M(e)}}}function ui(i){let e,t,r,n;return{c(){e=w("div"),t=w("goa-icon-button"),C(t,"data-testid","modal-close-button"),C(t,"icon","close"),C(t,"variant","nocolor"),u(e,"class","modal-close")},m(a,l){p(a,e,l),m(e,t),r||(n=W(t,"click",i[8]),r=!0)},p:x,d(a){a&&M(e),r=!1,n()}}}function Nn(i){let e;return{c(){e=w("goa-scrollable"),e.innerHTML="<slot></slot>",C(e,"direction","vertical"),C(e,"height","50")},m(t,r){p(t,e,r)},d(t){t&&M(e)}}}function Dn(i){let e,t,r=i[7]&&si(i);return{c(){r&&r.c(),e=we(),this.c=x},m(n,a){r&&r.m(n,a),p(n,e,a),t=!0},p(n,[a]){n[7]?r?(r.p(n,a),a&128&&J(r,1)):(r=si(n),r.c(),J(r,1),r.m(e.parentNode,e)):r&&(ze(),Y(r,1,1,()=>{r=null}),Ce())},i(n){t||(J(r),t=!0)},o(n){Y(r),t=!1},d(n){r&&r.d(n),n&&M(e)}}}function On(i,e,t){let r,n,a,l;const[o,s]=Z("Callout variant",["emergency","important","information","success","event"]),[c,d]=Z("Modal transition",["fast","slow","none"]);let{heading:f=""}=e,{closable:h="false"}=e,{open:_="false"}=e,{transition:b="none"}=e,{width:v=""}=e,{calloutvariant:k=null}=e;function y(E){!r||(E.target.dispatchEvent(new CustomEvent("_close",{composed:!0})),E.stopPropagation())}return X(()=>{s(k),d(b)}),i.$$set=E=>{"heading"in E&&t(0,f=E.heading),"closable"in E&&t(9,h=E.closable),"open"in E&&t(1,_=E.open),"transition"in E&&t(10,b=E.transition),"width"in E&&t(2,v=E.width),"calloutvariant"in E&&t(3,k=E.calloutvariant)},i.$$.update=()=>{i.$$.dirty&512&&t(4,r=U(h)),i.$$.dirty&2&&t(7,n=U(_)),i.$$.dirty&1024&&t(6,a=b==="none"?0:b==="slow"?400:200),i.$$.dirty&8&&t(5,l=k==="emergency"?"warning":k==="important"?"alert-circle":k==="information"?"information-circle":k==="success"?"checkmark-circle":k==="event"?"calendar":"")},[f,_,v,k,r,l,a,n,y,h,b]}class Pn extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.modal{font-family:var(--goa-font-family-sans);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}.emergency{background-color:var(--goa-color-emergency-default)}.important{background-color:var(--goa-color-warning-default)}.information{background-color:var(--goa-color-info-default)}.event{background-color:var(--goa-color-info-default)}.success{background-color:var(--goa-color-success-default)}.callout-bar{flex:0 0 3rem;text-align:center;padding-top:2rem;border-radius:4px 0px 0px 4px}.content{flex:1 1 auto;width:100%;margin:2rem 2rem}.modal-pane{position:relative;background-color:#fff;z-index:1001;width:90%;display:flex;margin:1rem;box-shadow:var(--goa-shadow-modal);border-radius:4px;max-height:90%;border:1px solid var(--goa-color-greyscale-700)}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch);max-height:80%}}.modal-actions ::slotted(div){margin:1.5rem 0 0}.modal-content ::slotted(:last-child){margin-bottom:0 !important}.modal-close{position:absolute;top:2rem;right:2rem}.modal-title{font-size:var(--goa-font-size-7);margin:0 0 1.5rem;margin-right:40px;flex:0 0 auto}.modal-content{line-height:1.75rem}</style>",F(this,{target:this.shadowRoot,props:q(this.attributes),customElement:!0},On,Dn,j,{heading:0,closable:9,open:1,transition:10,width:2,calloutvariant:3},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["heading","closable","open","transition","width","calloutvariant"]}get heading(){return this.$$.ctx[0]}set heading(e){this.$$set({heading:e}),g()}get closable(){return this.$$.ctx[9]}set closable(e){this.$$set({closable:e}),g()}get open(){return this.$$.ctx[1]}set open(e){this.$$set({open:e}),g()}get transition(){return this.$$.ctx[10]}set transition(e){this.$$set({transition:e}),g()}get width(){return this.$$.ctx[2]}set width(e){this.$$set({width:e}),g()}get calloutvariant(){return this.$$.ctx[3]}set calloutvariant(e){this.$$set({calloutvariant:e}),g()}}customElements.define("goa-modal",Pn);function fi(i){let e,t,r,n,a,l,o,s,c,d,f,h,_,b,v;return{c(){e=w("div"),t=w("div"),r=w("goa-icon"),a=B(),l=w("div"),l.innerHTML="<slot></slot>",o=B(),s=w("div"),c=w("goa-icon-button"),C(r,"type",i[2]),C(r,"inverted",n=i[0]==="important"?"false":"true"),u(t,"class","icon"),u(l,"class","content"),C(c,"icon","close"),C(c,"variant","dark"),C(c,"inverted",d=i[0]==="important"?"false":"true"),u(s,"class","close"),u(e,"class",f="notification "+i[0])},m(k,y){p(k,e,y),m(e,t),m(t,r),m(e,a),m(e,l),m(e,o),m(e,s),m(s,c),_=!0,b||(v=W(c,"click",i[3]),b=!0)},p(k,y){(!_||y&4)&&C(r,"type",k[2]),(!_||y&1&&n!==(n=k[0]==="important"?"false":"true"))&&C(r,"inverted",n),(!_||y&1&&d!==(d=k[0]==="important"?"false":"true"))&&C(c,"inverted",d),(!_||y&1&&f!==(f="notification "+k[0]))&&u(e,"class",f)},i(k){_||(de(()=>{h||(h=Qe(e,Te,{},!0)),h.run(1)}),_=!0)},o(k){h||(h=Qe(e,Te,{},!1)),h.run(0),_=!1},d(k){k&&M(e),k&&h&&h.end(),b=!1,v()}}}function jn(i){let e,t,r=i[1]&&fi(i);return{c(){r&&r.c(),e=we(),this.c=x},m(n,a){r&&r.m(n,a),p(n,e,a),t=!0},p(n,[a]){n[1]?r?(r.p(n,a),a&2&&J(r,1)):(r=fi(n),r.c(),J(r,1),r.m(e.parentNode,e)):r&&(ze(),Y(r,1,1,()=>{r=null}),Ce())},i(n){t||(J(r),t=!0)},o(n){Y(r),t=!1},d(n){r&&r.d(n),n&&M(e)}}}function In(i,e,t){let r;const[n,a]=Z("Notification type",["emergency","important","information","event"],!0);let{type:l=""}=e,o=!0;X(()=>{a(l)});function s(c){t(1,o=!1),c.target.dispatchEvent(new CustomEvent("_dismiss",{composed:!0})),c.stopPropagation()}return i.$$set=c=>{"type"in c&&t(0,l=c.type)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=l==="emergency"?"warning":l==="important"?"alert-circle":l==="information"?"information-circle":l==="event"?"calendar":"")},[l,o,r,s]}class qn extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.notification{padding:1.5rem;display:flex;gap:1rem}.emergency{background-color:var(--goa-color-emergency-default);color:var(--goa-color-greyscale-white)}.important{background-color:var(--goa-color-warning-default)}.information{background-color:var(--goa-color-info-default);color:var(--goa-color-greyscale-white)}.event{background-color:var(--goa-color-success-default);color:var(--goa-color-greyscale-white)}.icon{flex:0 0 auto}.content{flex:1 1 auto}::slotted(a){color:unset !important;outline:unset !important}.close{flex:0 0 auto}</style>",F(this,{target:this.shadowRoot,props:q(this.attributes),customElement:!0},In,jn,j,{type:0},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["type"]}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),g()}}customElements.define("goa-notification",qn);const Fn=/^[1-9]+[0-9]*(px|em|rem|ch|vh|vw|%)$/;function Vn(i){return Fn.test(i)}function Gn(i){let e,t,r;return{c(){e=w("div"),t=w("slot"),this.c=x,u(e,"class","page-content"),u(e,"style",r=`--max-width: ${i[0]}`)},m(n,a){p(n,e,a),m(e,t)},p(n,[a]){a&1&&r!==(r=`--max-width: ${n[0]}`)&&u(e,"style",r)},i:x,o:x,d(n){n&&M(e)}}}function Un(i,e,t){const r={full:"100%"};let{width:n}=e,{_width:a}=e;function l(o){return!!(["full"].includes(n)||Vn(o))}return X(()=>{l(n)||console.error("Invalid PageBlock width"),t(0,a=r[n]||n)}),i.$$set=o=>{"width"in o&&t(1,n=o.width),"_width"in o&&t(0,a=o._width)},[a,n]}class Wn extends I{constructor(e){super();this.shadowRoot.innerHTML="<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.page-content{max-width:var(--max-width);margin:0 auto;padding:0 1.75rem}</style>",F(this,{target:this.shadowRoot,props:q(this.attributes),customElement:!0},Un,Gn,j,{width:1,_width:0},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["width","_width"]}get width(){return this.$$.ctx[1]}set width(e){this.$$set({width:e}),g()}get _width(){return this.$$.ctx[0]}set _width(e){this.$$set({_width:e}),g()}}customElements.define("goa-page-block",Wn);function gi(i,e,t){const r=i.slice();return r[22]=e[t],r}function hi(i,e){let t,r,n,a,l,o,s,c,d,f=(e[22].label||e[22].value)+"",h,_,b,v,k;function y(){return e[16](e[22])}return{key:i,first:null,c(){t=w("label"),r=w("input"),o=B(),s=w("div"),c=B(),d=w("span"),h=G(f),_=B(),u(r,"type","radio"),u(r,"name",e[1]),r.value=n=e[22].value,r.disabled=e[12],r.checked=a=e[22].value===e[0],u(r,"aria-label",l=e[4]||e[1]),u(s,"class","goa-radio-icon"),u(d,"class","goa-radio-label"),u(t,"data-testid",b="radio-option-"+e[22].value),u(t,"class","goa-radio"),P(t,"goa-radio--disabled",e[12]),P(t,"goa-radio--error",e[11]),this.first=t},m(E,S){p(E,t,S),m(t,r),m(t,o),m(t,s),m(t,c),m(t,d),m(d,h),m(t,_),v||(k=W(r,"change",y),v=!0)},p(E,S){e=E,S&2&&u(r,"name",e[1]),S&512&&n!==(n=e[22].value)&&(r.value=n),S&4096&&(r.disabled=e[12]),S&513&&a!==(a=e[22].value===e[0])&&(r.checked=a),S&18&&l!==(l=e[4]||e[1])&&u(r,"aria-label",l),S&512&&f!==(f=(e[22].label||e[22].value)+"")&&K(h,f),S&512&&b!==(b="radio-option-"+e[22].value)&&u(t,"data-testid",b),S&4096&&P(t,"goa-radio--disabled",e[12]),S&2048&&P(t,"goa-radio--error",e[11])},d(E){E&&M(t),v=!1,k()}}}function Kn(i){let e,t,r,n=[],a=new Map,l,o,s=i[9];const c=d=>d[22].value;for(let d=0;d<s.length;d+=1){let f=gi(i,s,d),h=c(f);a.set(h,n[d]=hi(h,f))}return{c(){e=w("div"),t=w("slot"),r=B();for(let d=0;d<n.length;d+=1)n[d].c();this.c=x,u(e,"style",l=V(i[5],i[6],i[7],i[8])),u(e,"class",o=`goa-radio-group--${i[2]}`),u(e,"data-testid",i[3])},m(d,f){p(d,e,f),m(e,t),m(e,r);for(let h=0;h<n.length;h+=1)n[h].m(e,null);i[17](e)},p(d,[f]){f&14867&&(s=d[9],n=xt(n,f,c,1,d,s,a,e,pt,hi,null,gi)),f&480&&l!==(l=V(d[5],d[6],d[7],d[8]))&&u(e,"style",l),f&4&&o!==(o=`goa-radio-group--${d[2]}`)&&u(e,"class",o),f&8&&u(e,"data-testid",d[3])},i:x,o:x,d(d){d&&M(e);for(let f=0;f<n.length;f+=1)n[f].d();i[17](null)}}}function Xn(i,e,t){let r,n;const[a,l]=Z("Radio group orientation",["vertical","horizontal"]);let{name:o}=e,{value:s}=e,{orientation:c="vertical"}=e,{disabled:d="false"}=e,{error:f="false"}=e,{testid:h=""}=e,{arialabel:_=""}=e,{mt:b=null}=e,{mr:v=null}=e,{mb:k=null}=e,{ml:y=null}=e,E=[],S;X(async()=>{await _e(),t(9,E=z())});function A(){const L=S.querySelector("slot");return L?[...L.assignedElements()]:[...S.children]}function z(){return A().map(D=>{const se=D,Q=D.getAttribute("value")||se.value,ie=D.getAttribute("label")||D.innerText||se.label||se.innerText;return{value:Q,label:ie}})}function T(L){L!==s&&(t(0,s=L),S.dispatchEvent(new CustomEvent("_change",{composed:!0,detail:{name:o,value:s}})))}X(()=>{l(c)});const R=L=>T(L.value);function H(L){te[L?"unshift":"push"](()=>{S=L,t(10,S)})}return i.$$set=L=>{"name"in L&&t(1,o=L.name),"value"in L&&t(0,s=L.value),"orientation"in L&&t(2,c=L.orientation),"disabled"in L&&t(14,d=L.disabled),"error"in L&&t(15,f=L.error),"testid"in L&&t(3,h=L.testid),"arialabel"in L&&t(4,_=L.arialabel),"mt"in L&&t(5,b=L.mt),"mr"in L&&t(6,v=L.mr),"mb"in L&&t(7,k=L.mb),"ml"in L&&t(8,y=L.ml)},i.$$.update=()=>{i.$$.dirty&16384&&t(12,r=U(d)),i.$$.dirty&32768&&t(11,n=U(f))},[s,o,c,h,_,b,v,k,y,E,S,n,r,T,d,f,R,H]}class Zn extends I{constructor(e){super();this.shadowRoot.innerHTML=`<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.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(--goa-font-weight-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 .goa-radio-label{opacity:0.4}.goa-radio--disabled:hover{cursor:default}input[type="radio"]:checked~.goa-radio-icon{border:var(--goa-radio-border-width--checked) solid
|
|
88
88
|
var(--goa-color-interactive-hover)}input[type="radio"]:not(:checked)~.goa-radio-icon{border:var(--goa-radio-border-width) solid var(--goa-color-greyscale-700)}input[type="radio"]:disabled~.goa-radio-icon{border:var(--goa-radio-border-width) solid var(--goa-color-greyscale-700)}input[type="radio"]:disabled:checked~.goa-radio-icon{border:var(--goa-radio-border-width--checked) solid
|
|
89
89
|
var(--goa-color-interactive-hover)}.goa-radio--error input[type="radio"]:checked~.goa-radio-icon{border:7px solid var(--goa-color-emergency-default)}.goa-radio--error input[type="radio"]:not(:checked)~.goa-radio-icon{border:2px solid var(--goa-color-emergency-default)}</style>`,F(this,{target:this.shadowRoot,props:q(this.attributes),customElement:!0},Xn,Kn,j,{name:1,value:0,orientation:2,disabled:14,error:15,testid:3,arialabel:4,mt:5,mr:6,mb:7,ml:8},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["name","value","orientation","disabled","error","testid","arialabel","mt","mr","mb","ml"]}get name(){return this.$$.ctx[1]}set name(e){this.$$set({name:e}),g()}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),g()}get orientation(){return this.$$.ctx[2]}set orientation(e){this.$$set({orientation:e}),g()}get disabled(){return this.$$.ctx[14]}set disabled(e){this.$$set({disabled:e}),g()}get error(){return this.$$.ctx[15]}set error(e){this.$$set({error:e}),g()}get testid(){return this.$$.ctx[3]}set testid(e){this.$$set({testid:e}),g()}get arialabel(){return this.$$.ctx[4]}set arialabel(e){this.$$set({arialabel:e}),g()}get mt(){return this.$$.ctx[5]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[6]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[7]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[8]}set ml(e){this.$$set({ml:e}),g()}}customElements.define("goa-radio-group",Zn);function Jn(i){let e,t,r;return{c(){e=w("div"),t=w("slot"),this.c=x,u(e,"class","goa-scrollable"),u(e,"style",r=`
|
|
90
90
|
--max-height: ${i[3]};
|
|
@@ -112,7 +112,7 @@ var __vite_style__=document.createElement("style");__vite_style__.innerHTML=`@im
|
|
|
112
112
|
`)},m(s,c){p(s,e,c),m(e,t),m(e,n),l||(o=W(t,"keyup",i[15]),l=!0)},p(s,[c]){c&1&&u(t,"name",s[0]),c&4&&u(t,"placeholder",s[2]),c&2&&(t.value=s[1]),c&8&&u(t,"rows",s[3]),c&65&&r!==(r=s[6]||s[0])&&u(t,"aria-label",r),c&4096&&(t.disabled=s[12]),c&8192&&(t.readOnly=s[13]),c&16&&u(t,"data-testid",s[4]),c&16384&&P(t,"error",s[14]),c&1952&&a!==(a=`
|
|
113
113
|
${V(s[7],s[8],s[9],s[10])};
|
|
114
114
|
--width: ${s[5]};
|
|
115
|
-
`)&&u(e,"style",a)},i:x,o:x,d(s){s&&M(e),l=!1,o()}}}function va(i,e,t){let r,n,a,{name:l}=e,{value:o=""}=e,{placeholder:s=""}=e,{rows:c=3}=e,{testid:d=""}=e,{width:f="60ch"}=e,{error:h="false"}=e,{readonly:_="false"}=e,{disabled:b="false"}=e,{arialabel:v=""}=e,{mt:k=null}=e,{mr:y=null}=e,{mb:E=null}=e,{ml:S=null}=e,{maxcharcount:A=0}=e;function z(T){const H=T.target.value;n||(T.target.dispatchEvent(new CustomEvent("_change",{composed:!0,bubbles:!1,cancelable:!0,detail:{event:T,name:l,value:H}})),T.stopPropagation())}return i.$$set=T=>{"name"in T&&t(0,l=T.name),"value"in T&&t(1,o=T.value),"placeholder"in T&&t(2,s=T.placeholder),"rows"in T&&t(3,c=T.rows),"testid"in T&&t(4,d=T.testid),"width"in T&&t(5,f=T.width),"error"in T&&t(16,h=T.error),"readonly"in T&&t(17,_=T.readonly),"disabled"in T&&t(18,b=T.disabled),"arialabel"in T&&t(6,v=T.arialabel),"mt"in T&&t(7,k=T.mt),"mr"in T&&t(8,y=T.mr),"mb"in T&&t(9,E=T.mb),"ml"in T&&t(10,S=T.ml),"maxcharcount"in T&&t(11,A=T.maxcharcount)},i.$$.update=()=>{i.$$.dirty&65536&&t(14,r=U(h)),i.$$.dirty&262144&&t(12,n=U(b)),i.$$.dirty&131072&&t(13,a=U(_))},[l,o,s,c,d,f,v,k,y,E,S,A,n,a,r,z,h,_,b]}class ya extends I{constructor(e){super();this.shadowRoot.innerHTML=`<style>:host{--textarea-padding-vertical:0.625rem;--textarea-padding-horizontal:0.75rem;box-sizing:border-box;font-family:var(--goa-font-family-sans)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--goa-color-greyscale-700);border-radius:3px;color:var(--goa-color-greyscale-black, #ccc);padding:var(--textarea-padding-vertical) var(--textarea-padding-horizontal);font-size:var(--goa-font-size-4);font-family:var(--goa-font-family-sans);min-width:100
|
|
115
|
+
`)&&u(e,"style",a)},i:x,o:x,d(s){s&&M(e),l=!1,o()}}}function va(i,e,t){let r,n,a,{name:l}=e,{value:o=""}=e,{placeholder:s=""}=e,{rows:c=3}=e,{testid:d=""}=e,{width:f="60ch"}=e,{error:h="false"}=e,{readonly:_="false"}=e,{disabled:b="false"}=e,{arialabel:v=""}=e,{mt:k=null}=e,{mr:y=null}=e,{mb:E=null}=e,{ml:S=null}=e,{maxcharcount:A=0}=e;function z(T){const H=T.target.value;n||(T.target.dispatchEvent(new CustomEvent("_change",{composed:!0,bubbles:!1,cancelable:!0,detail:{event:T,name:l,value:H}})),T.stopPropagation())}return i.$$set=T=>{"name"in T&&t(0,l=T.name),"value"in T&&t(1,o=T.value),"placeholder"in T&&t(2,s=T.placeholder),"rows"in T&&t(3,c=T.rows),"testid"in T&&t(4,d=T.testid),"width"in T&&t(5,f=T.width),"error"in T&&t(16,h=T.error),"readonly"in T&&t(17,_=T.readonly),"disabled"in T&&t(18,b=T.disabled),"arialabel"in T&&t(6,v=T.arialabel),"mt"in T&&t(7,k=T.mt),"mr"in T&&t(8,y=T.mr),"mb"in T&&t(9,E=T.mb),"ml"in T&&t(10,S=T.ml),"maxcharcount"in T&&t(11,A=T.maxcharcount)},i.$$.update=()=>{i.$$.dirty&65536&&t(14,r=U(h)),i.$$.dirty&262144&&t(12,n=U(b)),i.$$.dirty&131072&&t(13,a=U(_))},[l,o,s,c,d,f,v,k,y,E,S,A,n,a,r,z,h,_,b]}class ya extends I{constructor(e){super();this.shadowRoot.innerHTML=`<style>:host{--textarea-padding-vertical:0.625rem;--textarea-padding-horizontal:0.75rem;box-sizing:border-box;font-family:var(--goa-font-family-sans)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--goa-color-greyscale-700);border-radius:3px;color:var(--goa-color-greyscale-black, #ccc);padding:var(--textarea-padding-vertical) var(--textarea-padding-horizontal);font-size:var(--goa-font-size-4);font-family:var(--goa-font-family-sans);min-width:100%;resize:vertical}@media(min-width: 640px){.goa-textarea{min-width:0;width:var(--width)}}.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,.goa-textarea:disabled:hover,.goa-textarea:disabled:active,.goa-textarea:disabled:focus{background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-200);cursor:default;box-shadow:none}.counter{position:absolute;right:0;padding-top:0.25rem;font-size:var(--goa-font-size-2)}.counter-error{color:var(--goa-color-interactive-error)
|
|
116
116
|
}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive-error)}</style>`,F(this,{target:this.shadowRoot,props:q(this.attributes),customElement:!0},va,ba,j,{name:0,value:1,placeholder:2,rows:3,testid:4,width:5,error:16,readonly:17,disabled:18,arialabel:6,mt:7,mr:8,mb:9,ml:10,maxcharcount:11},null),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["name","value","placeholder","rows","testid","width","error","readonly","disabled","arialabel","mt","mr","mb","ml","maxcharcount"]}get name(){return this.$$.ctx[0]}set name(e){this.$$set({name:e}),g()}get value(){return this.$$.ctx[1]}set value(e){this.$$set({value:e}),g()}get placeholder(){return this.$$.ctx[2]}set placeholder(e){this.$$set({placeholder:e}),g()}get rows(){return this.$$.ctx[3]}set rows(e){this.$$set({rows:e}),g()}get testid(){return this.$$.ctx[4]}set testid(e){this.$$set({testid:e}),g()}get width(){return this.$$.ctx[5]}set width(e){this.$$set({width:e}),g()}get error(){return this.$$.ctx[16]}set error(e){this.$$set({error:e}),g()}get readonly(){return this.$$.ctx[17]}set readonly(e){this.$$set({readonly:e}),g()}get disabled(){return this.$$.ctx[18]}set disabled(e){this.$$set({disabled:e}),g()}get arialabel(){return this.$$.ctx[6]}set arialabel(e){this.$$set({arialabel:e}),g()}get mt(){return this.$$.ctx[7]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[8]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[9]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[10]}set ml(e){this.$$set({ml:e}),g()}get maxcharcount(){return this.$$.ctx[11]}set maxcharcount(e){this.$$set({maxcharcount:e}),g()}}customElements.define("goa-textarea",ya);function wa(i){let e;return{c(){e=w("div"),e.innerHTML=`<header class="header"><slot name="header"></slot></header>
|
|
117
117
|
|
|
118
118
|
<nav class="nav"><slot name="nav"></slot></nav>
|