@abgov/web-components 1.0.0-alpha.198 → 1.0.0-alpha.199

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/web-components",
3
- "version": "1.0.0-alpha.198",
3
+ "version": "1.0.0-alpha.199",
4
4
  "description": "Government of Alberta - UI Web components",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -6191,7 +6191,7 @@ function parseValues(selectedValue) {
6191
6191
  let rawValue;
6192
6192
 
6193
6193
  try {
6194
- rawValue = JSON.parse(selectedValue || "[]");
6194
+ rawValue = JSON.parse(selectedValue || `[""]`);
6195
6195
  } catch(e) {
6196
6196
  rawValue = [selectedValue];
6197
6197
  }
@@ -6276,7 +6276,7 @@ function instance$w($$self, $$props, $$invalidate) {
6276
6276
 
6277
6277
  return children.filter(child => child.tagName === "GOA-DROPDOWN-ITEM").map(el => {
6278
6278
  const option = el;
6279
- const value = el.getAttribute("value") || option.value;
6279
+ const value = el.getAttribute("value") || option.value || "";
6280
6280
  const label = el.getAttribute("label") || option.label || value;
6281
6281
  const selected = _values.includes(value);
6282
6282
 
@@ -42,7 +42,7 @@ var __vite_style__=document.createElement("style");__vite_style__.innerHTML=`@im
42
42
  `),Z(e,"dropdown-native",i[14])},m(l,s){k(l,e,s),a.m(e,null),i[35](e)},p(l,s){o===(o=n(l))&&a?a.p(l,s):(a.d(1),a=o(l),a&&(a.c(),a.m(e,null))),s[0]&1&&t!==(t=`${l[0]}-dropdown`)&&u(e,"data-testid",t),s[0]&528160&&r!==(r=`
43
43
  ${G(l[8],l[9],l[10],l[11])}
44
44
  --width: ${l[5]||l[19]}
45
- `)&&u(e,"style",r),s[0]&16384&&Z(e,"dropdown-native",l[14])},i:C,o:C,d(l){l&&L(e),a.d(),i[35](null)}}}function Jt(i){let e;try{e=JSON.parse(i||"[]")}catch{e=[i]}return(typeof e=="object"?e:[e]).map(r=>`${r}`)}function Rn(i,e,t){let r,n,o,a,{name:l}=e,{arialabel:s=""}=e,{value:c=""}=e,{leadingicon:d=null}=e,{maxheight:f="276px"}=e,{placeholder:h=""}=e,{width:p=""}=e,{disabled:v="false"}=e,{error:_="false"}=e,{multiselect:y="false"}=e,{native:m="false"}=e,{mt:E=null}=e,{mr:V=null}=e,{mb:H=null}=e,{ml:z=null}=e,A=[],M=[],R="",T=!1,N=0,ie,re="auto",B,te,ne;X(async()=>{const D=B.querySelector("slot");D==null||D.addEventListener("slotchange",oe=>{t(16,R=""),t(15,A=Jt(c)),t(12,M=Se())})}),Ht(()=>{at()});function Le(){const D=B.querySelector("slot");return D?D.assignedElements():[...(a?ne:B).children]}function Se(){return Le().filter(oe=>oe.tagName==="GOA-DROPDOWN-ITEM").map(oe=>{const be=oe,ve=oe.getAttribute("value")||be.value,Fe=oe.getAttribute("label")||be.label||ve,ir=A.includes(ve);return ir&&(t(16,R=Fe),t(15,A=[ve])),{selected:ir,value:ve,label:Fe}})}function nt(D){let oe,be=0;return D.length===0&&h!==""?`${h.length+12}ch`:(D.forEach(ve=>{const Fe=ve.label||ve.value||"";!oe&&be<Fe.length&&(be=Fe.length,oe=`${Math.max(20,be+12)}ch`)}),oe)}function ot(){B.addEventListener("focus",st,!0),B.addEventListener("blur",ct,!0)}function at(){B.removeEventListener("focus",st,!0),B.removeEventListener("blur",ct,!0)}async function Me(){r||T||(t(17,T=!0),await ue(),te.addEventListener("blur",me),te.addEventListener("mouseover",I),ye())}function me(){te.removeEventListener("blur",me),te.removeEventListener("mouseover",I),xe(),t(17,T=!1),t(20,re="auto")}function ye(){const D=B.getBoundingClientRect(),oe=te.getBoundingClientRect();window.innerHeight-D.top<D.height+oe.height&&t(20,re=oe.top-D.top+"px")}function xe(){t(18,N=M.findIndex(D=>A.includes(D.value)))}function Ee(D,oe,be){if(r)return;t(16,R=oe);let ve;o?(A.push(D),ve={name:l,values:A}):(t(15,A=[D]),ve={name:l,value:D}),B.dispatchEvent(new CustomEvent("_change",{composed:!0,detail:ve})),be&&me()}const Pe=D=>{switch(D.key){case" ":case"Enter":T?me():Me(),D.preventDefault();break;case"Escape":T&&me(),D.preventDefault();break;case"ArrowDown":if(D.altKey){T?me():Me();break}Oe(),D.preventDefault();break;case"ArrowUp":if(D.altKey){T?me():Me();break}lt(),D.preventDefault();break}};function Oe(){N<M.length-1&&(t(18,N++,N),Ee(M[N].value,M[N].label,!1))}function lt(){N>0&&(t(18,N--,N),Ee(M[N].value,M[N].label,!1))}function st(){B.addEventListener("keydown",Pe)}function ct(){B.removeEventListener("keydown",Pe)}function I(D){t(18,N=Number(D.target.dataset.index))}function _e(D){const oe=D.currentTarget,be=M[oe.selectedIndex];Ee(be.value,be.label)}function ol(D){K[D?"unshift":"push"](()=>{ne=D,t(22,ne),t(12,M),t(13,B),t(29,c),t(14,a),t(31,m)})}const al=D=>Ee(D.value,D.label,!0);function ll(D){K[D?"unshift":"push"](()=>{te=D,t(21,te)})}function sl(D){K[D?"unshift":"push"](()=>{B=D,t(13,B)})}return i.$$set=D=>{"name"in D&&t(0,l=D.name),"arialabel"in D&&t(1,s=D.arialabel),"value"in D&&t(29,c=D.value),"leadingicon"in D&&t(2,d=D.leadingicon),"maxheight"in D&&t(3,f=D.maxheight),"placeholder"in D&&t(4,h=D.placeholder),"width"in D&&t(5,p=D.width),"disabled"in D&&t(6,v=D.disabled),"error"in D&&t(7,_=D.error),"multiselect"in D&&t(30,y=D.multiselect),"native"in D&&t(31,m=D.native),"mt"in D&&t(8,E=D.mt),"mr"in D&&t(9,V=D.mr),"mb"in D&&t(10,H=D.mb),"ml"in D&&t(11,z=D.ml)},i.$$.update=()=>{i.$$.dirty[0]&64&&t(23,r=Y(v)),i.$$.dirty[0]&128&&t(24,n=Y(_)),i.$$.dirty[0]&1073741824&&(o=Y(y)),i.$$.dirty[1]&1&&t(14,a=Y(m)),i.$$.dirty[0]&536899584&&B&&(t(15,A=Jt(c)),t(12,M=Se()),a||(t(19,ie=nt(M)),ot(),xe()))},[l,s,d,f,h,p,v,_,E,V,H,z,M,B,a,A,R,T,N,ie,re,te,ne,r,n,Me,me,Ee,_e,c,y,m,ol,al,ll,sl]}class Vn extends O{constructor(e){super();this.shadowRoot.innerHTML=`<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.dropdown{position:relative;cursor:pointer;display:inline-block;width:var(--width, 100%)}.dropdown-background{cursor:default;position:fixed;z-index:98;inset:0}.dropdown-list{position:absolute;left:0;right:0;padding:0;margin:0;margin-top:3px;list-style-type:none;background:var(--goa-color-greyscale-white);border-radius:var(--goa-border-radius-m);outline:none;box-shadow:var(--shadow-1);z-index:99;bottom:var(--bottom);scroll-behavior:smooth;scrollbar-width:thin;display:none}.dropdown-active{display:block}.dropdown-list::-webkit-scrollbar{width:6px}.dropdown-list::-webkit-scrollbar-track{background:#f1f1f1}.dropdown-list::-webkit-scrollbar-thumb{background:#888}.dropdown-list::-webkit-scrollbar-thumb:hover{background:#555}.dropdown-item{margin:0;padding:0.5rem;cursor:pointer;color:var(--goa-color-greyscale-black);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-item--tabbed{background:var(--goa-color-greyscale-100);color:var(--goa-color-interactive-hover)}.dropdown-item--disabled{opacity:0.5;cursor:default}.dropdown-item--disabled:hover{cursor:default;color:var(--goa-color-greyscale-700)}.dropdown-item--selected{background:var(--goa-color-interactive-default);color:var(--goa-color-greyscale-white)}.dropdown-item--tabbed.dropdown-item--selected,.dropdown-item--selected:hover{background:var(--goa-color-interactive-hover);color:var(--goa-color-greyscale-white)}.dropdown-native{border:1px solid var(--goa-color-greyscale-700);border-radius:var(--goa-border-radius-m);background-color:var(--goa-color-greyscale-white);transition:box-shadow 0.1s ease-in}.dropdown-native:has(select:disabled){background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-200);box-shadow:none;color:var(--goa-color-text-secondary);cursor:default}.dropdown-native:has(select.error){border:2px solid var(--goa-color-interactive-error)}.dropdown-native:hover{border-color:var(--goa-color-interactive-hover);box-shadow:0 0 0 var(--goa-border-width-m) var(--goa-color-interactive-hover)}select{border:none;background-color:transparent;color:var(--goa-color-text-default);font-size:var(--goa-font-size-4);appearance:none;padding:calc(var(--goa-space-xs) + 2px);padding-left:0.5rem;padding-right:3rem;outline:none;width:100%}.dropdown-native::after{content:"";position:absolute;right:0.6rem;top:0.6rem;pointer-events:none;width:1.5rem;height:1.5rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 184l144 144 144-144' /%3E%3C/svg%3E");background-repeat:none}.dropdown-native:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive-focus)}</style>`,q(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Rn,An,P,{name:0,arialabel:1,value:29,leadingicon:2,maxheight:3,placeholder:4,width:5,disabled:6,error:7,multiselect:30,native:31,mt:8,mr:9,mb:10,ml:11},null,[-1,-1]),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["name","arialabel","value","leadingicon","maxheight","placeholder","width","disabled","error","multiselect","native","mt","mr","mb","ml"]}get name(){return this.$$.ctx[0]}set name(e){this.$$set({name:e}),g()}get arialabel(){return this.$$.ctx[1]}set arialabel(e){this.$$set({arialabel:e}),g()}get value(){return this.$$.ctx[29]}set value(e){this.$$set({value:e}),g()}get leadingicon(){return this.$$.ctx[2]}set leadingicon(e){this.$$set({leadingicon:e}),g()}get maxheight(){return this.$$.ctx[3]}set maxheight(e){this.$$set({maxheight:e}),g()}get placeholder(){return this.$$.ctx[4]}set placeholder(e){this.$$set({placeholder:e}),g()}get width(){return this.$$.ctx[5]}set width(e){this.$$set({width:e}),g()}get disabled(){return this.$$.ctx[6]}set disabled(e){this.$$set({disabled:e}),g()}get error(){return this.$$.ctx[7]}set error(e){this.$$set({error:e}),g()}get multiselect(){return this.$$.ctx[30]}set multiselect(e){this.$$set({multiselect:e}),g()}get native(){return this.$$.ctx[31]}set native(e){this.$$set({native:e}),g()}get mt(){return this.$$.ctx[8]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[9]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[10]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[11]}set ml(e){this.$$set({ml:e}),g()}}customElements.define("goa-dropdown",Vn);function Sn(i){return{c(){this.c=C},m:C,p:C,i:C,o:C,d:C}}class Bn extends O{constructor(e){super();q(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,Sn,P,{},null),e&&e.target&&k(e.target,this,e.anchor)}}customElements.define("goa-dropdown-item",Bn);function Dn(i){let e;return{c(){e=w("div"),e.innerHTML=`<slot></slot>
45
+ `)&&u(e,"style",r),s[0]&16384&&Z(e,"dropdown-native",l[14])},i:C,o:C,d(l){l&&L(e),a.d(),i[35](null)}}}function Jt(i){let e;try{e=JSON.parse(i||'[""]')}catch{e=[i]}return(typeof e=="object"?e:[e]).map(r=>`${r}`)}function Rn(i,e,t){let r,n,o,a,{name:l}=e,{arialabel:s=""}=e,{value:c=""}=e,{leadingicon:d=null}=e,{maxheight:f="276px"}=e,{placeholder:h=""}=e,{width:p=""}=e,{disabled:v="false"}=e,{error:_="false"}=e,{multiselect:y="false"}=e,{native:m="false"}=e,{mt:E=null}=e,{mr:V=null}=e,{mb:H=null}=e,{ml:z=null}=e,A=[],M=[],R="",T=!1,N=0,ie,re="auto",B,te,ne;X(async()=>{const D=B.querySelector("slot");D==null||D.addEventListener("slotchange",oe=>{t(16,R=""),t(15,A=Jt(c)),t(12,M=Se())})}),Ht(()=>{at()});function Le(){const D=B.querySelector("slot");return D?D.assignedElements():[...(a?ne:B).children]}function Se(){return Le().filter(oe=>oe.tagName==="GOA-DROPDOWN-ITEM").map(oe=>{const be=oe,ve=oe.getAttribute("value")||be.value||"",Fe=oe.getAttribute("label")||be.label||ve,ir=A.includes(ve);return ir&&(t(16,R=Fe),t(15,A=[ve])),{selected:ir,value:ve,label:Fe}})}function nt(D){let oe,be=0;return D.length===0&&h!==""?`${h.length+12}ch`:(D.forEach(ve=>{const Fe=ve.label||ve.value||"";!oe&&be<Fe.length&&(be=Fe.length,oe=`${Math.max(20,be+12)}ch`)}),oe)}function ot(){B.addEventListener("focus",st,!0),B.addEventListener("blur",ct,!0)}function at(){B.removeEventListener("focus",st,!0),B.removeEventListener("blur",ct,!0)}async function Me(){r||T||(t(17,T=!0),await ue(),te.addEventListener("blur",me),te.addEventListener("mouseover",I),ye())}function me(){te.removeEventListener("blur",me),te.removeEventListener("mouseover",I),xe(),t(17,T=!1),t(20,re="auto")}function ye(){const D=B.getBoundingClientRect(),oe=te.getBoundingClientRect();window.innerHeight-D.top<D.height+oe.height&&t(20,re=oe.top-D.top+"px")}function xe(){t(18,N=M.findIndex(D=>A.includes(D.value)))}function Ee(D,oe,be){if(r)return;t(16,R=oe);let ve;o?(A.push(D),ve={name:l,values:A}):(t(15,A=[D]),ve={name:l,value:D}),B.dispatchEvent(new CustomEvent("_change",{composed:!0,detail:ve})),be&&me()}const Pe=D=>{switch(D.key){case" ":case"Enter":T?me():Me(),D.preventDefault();break;case"Escape":T&&me(),D.preventDefault();break;case"ArrowDown":if(D.altKey){T?me():Me();break}Oe(),D.preventDefault();break;case"ArrowUp":if(D.altKey){T?me():Me();break}lt(),D.preventDefault();break}};function Oe(){N<M.length-1&&(t(18,N++,N),Ee(M[N].value,M[N].label,!1))}function lt(){N>0&&(t(18,N--,N),Ee(M[N].value,M[N].label,!1))}function st(){B.addEventListener("keydown",Pe)}function ct(){B.removeEventListener("keydown",Pe)}function I(D){t(18,N=Number(D.target.dataset.index))}function _e(D){const oe=D.currentTarget,be=M[oe.selectedIndex];Ee(be.value,be.label)}function ol(D){K[D?"unshift":"push"](()=>{ne=D,t(22,ne),t(12,M),t(13,B),t(29,c),t(14,a),t(31,m)})}const al=D=>Ee(D.value,D.label,!0);function ll(D){K[D?"unshift":"push"](()=>{te=D,t(21,te)})}function sl(D){K[D?"unshift":"push"](()=>{B=D,t(13,B)})}return i.$$set=D=>{"name"in D&&t(0,l=D.name),"arialabel"in D&&t(1,s=D.arialabel),"value"in D&&t(29,c=D.value),"leadingicon"in D&&t(2,d=D.leadingicon),"maxheight"in D&&t(3,f=D.maxheight),"placeholder"in D&&t(4,h=D.placeholder),"width"in D&&t(5,p=D.width),"disabled"in D&&t(6,v=D.disabled),"error"in D&&t(7,_=D.error),"multiselect"in D&&t(30,y=D.multiselect),"native"in D&&t(31,m=D.native),"mt"in D&&t(8,E=D.mt),"mr"in D&&t(9,V=D.mr),"mb"in D&&t(10,H=D.mb),"ml"in D&&t(11,z=D.ml)},i.$$.update=()=>{i.$$.dirty[0]&64&&t(23,r=Y(v)),i.$$.dirty[0]&128&&t(24,n=Y(_)),i.$$.dirty[0]&1073741824&&(o=Y(y)),i.$$.dirty[1]&1&&t(14,a=Y(m)),i.$$.dirty[0]&536899584&&B&&(t(15,A=Jt(c)),t(12,M=Se()),a||(t(19,ie=nt(M)),ot(),xe()))},[l,s,d,f,h,p,v,_,E,V,H,z,M,B,a,A,R,T,N,ie,re,te,ne,r,n,Me,me,Ee,_e,c,y,m,ol,al,ll,sl]}class Vn extends O{constructor(e){super();this.shadowRoot.innerHTML=`<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.dropdown{position:relative;cursor:pointer;display:inline-block;width:var(--width, 100%)}.dropdown-background{cursor:default;position:fixed;z-index:98;inset:0}.dropdown-list{position:absolute;left:0;right:0;padding:0;margin:0;margin-top:3px;list-style-type:none;background:var(--goa-color-greyscale-white);border-radius:var(--goa-border-radius-m);outline:none;box-shadow:var(--shadow-1);z-index:99;bottom:var(--bottom);scroll-behavior:smooth;scrollbar-width:thin;display:none}.dropdown-active{display:block}.dropdown-list::-webkit-scrollbar{width:6px}.dropdown-list::-webkit-scrollbar-track{background:#f1f1f1}.dropdown-list::-webkit-scrollbar-thumb{background:#888}.dropdown-list::-webkit-scrollbar-thumb:hover{background:#555}.dropdown-item{margin:0;padding:0.5rem;cursor:pointer;color:var(--goa-color-greyscale-black);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-item--tabbed{background:var(--goa-color-greyscale-100);color:var(--goa-color-interactive-hover)}.dropdown-item--disabled{opacity:0.5;cursor:default}.dropdown-item--disabled:hover{cursor:default;color:var(--goa-color-greyscale-700)}.dropdown-item--selected{background:var(--goa-color-interactive-default);color:var(--goa-color-greyscale-white)}.dropdown-item--tabbed.dropdown-item--selected,.dropdown-item--selected:hover{background:var(--goa-color-interactive-hover);color:var(--goa-color-greyscale-white)}.dropdown-native{border:1px solid var(--goa-color-greyscale-700);border-radius:var(--goa-border-radius-m);background-color:var(--goa-color-greyscale-white);transition:box-shadow 0.1s ease-in}.dropdown-native:has(select:disabled){background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-200);box-shadow:none;color:var(--goa-color-text-secondary);cursor:default}.dropdown-native:has(select.error){border:2px solid var(--goa-color-interactive-error)}.dropdown-native:hover{border-color:var(--goa-color-interactive-hover);box-shadow:0 0 0 var(--goa-border-width-m) var(--goa-color-interactive-hover)}select{border:none;background-color:transparent;color:var(--goa-color-text-default);font-size:var(--goa-font-size-4);appearance:none;padding:calc(var(--goa-space-xs) + 2px);padding-left:0.5rem;padding-right:3rem;outline:none;width:100%}.dropdown-native::after{content:"";position:absolute;right:0.6rem;top:0.6rem;pointer-events:none;width:1.5rem;height:1.5rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 184l144 144 144-144' /%3E%3C/svg%3E");background-repeat:none}.dropdown-native:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive-focus)}</style>`,q(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Rn,An,P,{name:0,arialabel:1,value:29,leadingicon:2,maxheight:3,placeholder:4,width:5,disabled:6,error:7,multiselect:30,native:31,mt:8,mr:9,mb:10,ml:11},null,[-1,-1]),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["name","arialabel","value","leadingicon","maxheight","placeholder","width","disabled","error","multiselect","native","mt","mr","mb","ml"]}get name(){return this.$$.ctx[0]}set name(e){this.$$set({name:e}),g()}get arialabel(){return this.$$.ctx[1]}set arialabel(e){this.$$set({arialabel:e}),g()}get value(){return this.$$.ctx[29]}set value(e){this.$$set({value:e}),g()}get leadingicon(){return this.$$.ctx[2]}set leadingicon(e){this.$$set({leadingicon:e}),g()}get maxheight(){return this.$$.ctx[3]}set maxheight(e){this.$$set({maxheight:e}),g()}get placeholder(){return this.$$.ctx[4]}set placeholder(e){this.$$set({placeholder:e}),g()}get width(){return this.$$.ctx[5]}set width(e){this.$$set({width:e}),g()}get disabled(){return this.$$.ctx[6]}set disabled(e){this.$$set({disabled:e}),g()}get error(){return this.$$.ctx[7]}set error(e){this.$$set({error:e}),g()}get multiselect(){return this.$$.ctx[30]}set multiselect(e){this.$$set({multiselect:e}),g()}get native(){return this.$$.ctx[31]}set native(e){this.$$set({native:e}),g()}get mt(){return this.$$.ctx[8]}set mt(e){this.$$set({mt:e}),g()}get mr(){return this.$$.ctx[9]}set mr(e){this.$$set({mr:e}),g()}get mb(){return this.$$.ctx[10]}set mb(e){this.$$set({mb:e}),g()}get ml(){return this.$$.ctx[11]}set ml(e){this.$$set({ml:e}),g()}}customElements.define("goa-dropdown",Vn);function Sn(i){return{c(){this.c=C},m:C,p:C,i:C,o:C,d:C}}class Bn extends O{constructor(e){super();q(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},null,Sn,P,{},null),e&&e.target&&k(e.target,this,e.anchor)}}customElements.define("goa-dropdown-item",Bn);function Dn(i){let e;return{c(){e=w("div"),e.innerHTML=`<slot></slot>
46
46
 
47
47
  <span tabindex="0"></span>`,this.c=C},m(t,r){k(t,e,r),i[4](e)},p:C,i:C,o:C,d(t){t&&L(e),i[4](null)}}}function In(i){if(i.tabIndex>0||i.tabIndex===0&&i.getAttribute("tabIndex")!==null)return!0;if(i.disabled)return!1;switch(i.nodeName){case"A":{const t=i;return!!t.href&&t.rel!=="ignore"}case"INPUT":{const t=i;return t.type!=="hidden"&&t.type!=="file"}case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}function Nn(i,e,t){let r,{active:n}=e,o=!1,a,l,s=!1;function c(){document.removeEventListener("focus",E,!0)}function d(){document.addEventListener("focus",E,!0)}function f(H){if(!H)return!1;for(const z of H)if(m(z)||f(z.childNodes)||h(z)||p(z))return!0;return!1}function h(H){if(!(H instanceof HTMLSlotElement))return!1;if(f(H.assignedNodes()))return!0}function p(H){var z;if(!(H instanceof HTMLElement))return!1;if(f((z=H.shadowRoot)===null||z===void 0?void 0:z.childNodes))return!0}function v(H){if(!H)return!1;for(let z=H.length-1;z>=0;z--){let A=H[z];if(m(A)||v(A.childNodes)||_(A)||y(A))return!0}return!1}function _(H){if(!(H instanceof HTMLSlotElement))return!1;if(v(H.assignedNodes()))return!0}function y(H){var z;if(!(H instanceof HTMLElement))return!1;if(v((z=H.shadowRoot)===null||z===void 0?void 0:z.childNodes))return!0}function m(H){if(!In(H))return!1;try{o=!0,H&&H.focus()}finally{o=!1}return document.activeElement===H}function E(H){var z;if(o)return;const A=(z=l.firstChild)===null||z===void 0?void 0:z.assignedElements();if(!(A==null?void 0:A.length))return;const M=A[0];if(H.composedPath().includes(M)){a=H.target;return}f(M.childNodes),a==document.activeElement&&v(M.childNodes),a=document.activeElement}function V(H){K[H?"unshift":"push"](()=>{l=H,t(0,l)})}return i.$$set=H=>{"active"in H&&t(1,n=H.active)},i.$$.update=()=>{i.$$.dirty&2&&t(3,r=Y(n)),i.$$.dirty&12&&(r&&!s&&(d(),t(2,s=!0)),!r&&s&&(c(),t(2,s=!1)))},[l,n,s,r,V]}class Zn extends O{constructor(e){super();this.shadowRoot.innerHTML="<style>div{display:inline}</style>",q(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Nn,Dn,P,{active:1},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["active"]}get active(){return this.$$.ctx[1]}set active(e){this.$$set({active:e}),g()}}customElements.define("goa-focus-trap",Zn);function Yt(i){let e;return{c(){e=w("goa-divider"),x(e,"spacing","small")},m(t,r){k(t,e,r)},d(t){t&&L(e)}}}function Pn(i){let e,t,r,n,o,a,l,s,c,d,f,h,p,v=i[2]&&i[2].length>0&&Yt();return{c(){e=w("div"),t=w("div"),r=w("div"),r.innerHTML='<slot name="nav"></slot>',n=S(),v&&v.c(),o=S(),a=w("div"),l=w("div"),l.innerHTML='<slot name="meta"></slot>',s=S(),c=w("div"),d=w("a"),d.innerHTML='<img alt="GoA Logo" class="logo" src="data:image/svg+xml,%3Csvg xmlns=&#39;http://www.w3.org/2000/svg&#39; xmlns:xlink=&#39;http://www.w3.org/1999/xlink&#39; width=&#39;149.351&#39; height=&#39;42&#39; viewBox=&#39;0 0 149.351 42&#39;%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=&#39;a&#39;%3E%3Crect class=&#39;a&#39; width=&#39;149.351&#39; height=&#39;42&#39;/%3E%3C/clipPath%3E%3C/defs%3E%3Cg class=&#39;b&#39;%3E%3Crect class=&#39;c&#39; width=&#39;13.555&#39; height=&#39;13.555&#39; transform=&#39;translate(135.796 21.524)&#39;/%3E%3Cpath class=&#39;d&#39; d=&#39;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&#39; transform=&#39;translate(-0.038 0.124)&#39;/%3E%3C/g%3E%3C/svg%3E"/>',f=S(),h=w("a"),h.textContent=`\xA9 ${i[4]} Government of Alberta`,this.c=C,u(r,"class","nav-links"),u(l,"class","meta-links"),u(d,"href","https://alberta.ca"),u(h,"href","https://alberta.ca"),u(h,"class","goa-copyright"),u(c,"class","abgov"),Z(c,"with-meta-links",i[3]&&i[3].length>0),u(a,"class","meta-section"),Z(a,"with-meta-links",i[3]&&i[3].length>0),u(t,"class","content"),u(e,"class","app-footer"),u(e,"style",p=`--max-content-width: ${i[0]||"100%"}`)},m(_,y){k(_,e,y),b(e,t),b(t,r),b(t,n),v&&v.m(t,null),b(t,o),b(t,a),b(a,l),b(a,s),b(a,c),b(c,d),b(c,f),b(c,h),i[5](e)},p(_,[y]){_[2]&&_[2].length>0?v||(v=Yt(),v.c(),v.m(t,o)):v&&(v.d(1),v=null),y&8&&Z(c,"with-meta-links",_[3]&&_[3].length>0),y&8&&Z(a,"with-meta-links",_[3]&&_[3].length>0),y&1&&p!==(p=`--max-content-width: ${_[0]||"100%"}`)&&u(e,"style",p)},i:C,o:C,d(_){_&&L(e),v&&v.d(),i[5](null)}}}function On(i,e,t){let{maxcontentwidth:r=""}=e,n,o,a;const l=new Date().getFullYear();X(async()=>{await ue();const c=n.querySelector("slot[name=nav]"),d=n.querySelector("slot[name=meta]");t(2,o=c.assignedElements()),t(3,a=d.assignedElements())});function s(c){K[c?"unshift":"push"](()=>{n=c,t(1,n)})}return i.$$set=c=>{"maxcontentwidth"in c&&t(0,r=c.maxcontentwidth)},[r,n,o,a,l,s]}class Fn extends O{constructor(e){super();this.shadowRoot.innerHTML="<style>*{box-sizing:border-box}.app-footer{background-color:var(--goa-color-greyscale-100);border-top:2px solid var(--goa-color-greyscale-200);border-bottom:1rem solid var(--goa-color-brand-default)}.content{padding:2rem 1rem;margin:0 auto;width:min(var(--max-content-width), 100%)}@media(min-width: 640px){.content{padding:2rem 2rem}}@media(min-width: 1024px){.content{padding:2rem 4.5rem}}.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>",q(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},On,Pn,P,{maxcontentwidth:0},null),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["maxcontentwidth"]}get maxcontentwidth(){return this.$$.ctx[0]}set maxcontentwidth(e){this.$$set({maxcontentwidth:e}),g()}}customElements.define("goa-app-footer",Fn);function Qt(i,e,t){const r=i.slice();return r[3]=e[t],r}function $t(i){let e,t,r=i[3].innerHTML+"",n,o;return{c(){e=w("li"),t=w("a"),n=F(r),u(t,"href",o=i[3].href)},m(a,l){k(a,e,l),b(e,t),b(t,n)},p(a,l){l&2&&r!==(r=a[3].innerHTML+"")&&U(n,r),l&2&&o!==(o=a[3].href)&&u(t,"href",o)},d(a){a&&L(e)}}}function jn(i){let e,t,r,n,o=i[1],a=[];for(let l=0;l<o.length;l+=1)a[l]=$t(Qt(i,o,l));return{c(){e=w("section"),t=w("div"),t.innerHTML="<slot></slot>",r=S(),n=w("ul");for(let l=0;l<a.length;l+=1)a[l].c();this.c=C,u(t,"class","hidden")},m(l,s){k(l,e,s),b(e,t),b(e,r),b(e,n);for(let c=0;c<a.length;c+=1)a[c].m(n,null);i[2](e)},p(l,[s]){if(s&2){o=l[1];let c;for(c=0;c<o.length;c+=1){const d=Qt(l,o,c);a[c]?a[c].p(d,s):(a[c]=$t(d),a[c].c(),a[c].m(n,null))}for(;c<a.length;c+=1)a[c].d(1);a.length=o.length}},i:C,o:C,d(l){l&&L(e),Ae(a,l),i[2](null)}}}function qn(i,e,t){let r,n=[];X(async()=>{if(await ue(),t(1,n=r.querySelector("slot").assignedElements()),!n.map(l=>l.hasAttribute("href")).reduce((l,s)=>l&&s,!0)){t(1,n=[]),console.warn("GoAFooterMetaSection children must be anchor elements.");return}});function o(a){K[a?"unshift":"push"](()=>{r=a,t(0,r)})}return[r,n,o]}class Gn extends O{constructor(e){super();this.shadowRoot.innerHTML="<style>.hidden{display:none}ul{display:flex;flex-wrap:wrap;gap:1rem;padding-left:0}li{list-style-type:none}a{color:var(--goa-color-text-default);white-space:nowrap}</style>",q(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},qn,jn,P,{},null),e&&e.target&&k(e.target,this,e.anchor)}}customElements.define("goa-app-footer-meta-section",Gn);function ei(i,e,t){const r=i.slice();return r[5]=e[t],r}function ti(i){let e,t,r,n;return{c(){e=w("div"),t=F(i[0]),r=S(),n=w("goa-divider"),u(e,"class","title"),x(n,"spacing","small")},m(o,a){k(o,e,a),b(e,t),k(o,r,a),k(o,n,a)},p(o,a){a&1&&U(t,o[0])},d(o){o&&L(e),o&&L(r),o&&L(n)}}}function ii(i){let e,t,r=i[5].innerHTML+"",n,o;return{c(){e=w("li"),t=w("a"),n=F(r),u(t,"href",o=i[5].href)},m(a,l){k(a,e,l),b(e,t),b(t,n)},p(a,l){l&8&&r!==(r=a[5].innerHTML+"")&&U(n,r),l&8&&o!==(o=a[5].href)&&u(t,"href",o)},d(a){a&&L(e)}}}function Wn(i){let e,t,r,n,o,a,l=i[0]&&ti(i),s=i[3],c=[];for(let d=0;d<s.length;d+=1)c[d]=ii(ei(i,s,d));return{c(){e=w("section"),l&&l.c(),t=S(),r=w("div"),r.innerHTML="<slot></slot>",n=S(),o=w("ul");for(let d=0;d<c.length;d+=1)c[d].c();this.c=C,u(r,"class","hidden"),u(o,"class","links"),u(o,"style",a=`
48
48
  --narrow-display-type: ${Math.ceil(i[1]/2)>1?"block":"flex"};