@abgov/react-components 4.0.0-alpha.165 → 4.0.0-alpha.166

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.
@@ -22,6 +22,7 @@ interface Props extends Margins {
22
22
  heading: string;
23
23
  headingContent?: ReactNode;
24
24
  testid?: string;
25
+ children: ReactNode;
25
26
  }
26
27
  export declare const GoAAccordion: FC<Props>;
27
28
  export default GoAAccordion;
@@ -19,6 +19,7 @@ interface Props extends Margins {
19
19
  maxWidth?: string;
20
20
  padded?: boolean;
21
21
  position?: Position;
22
+ children: ReactNode;
22
23
  }
23
24
  export declare const GoAPopover: FC<Props>;
24
25
  export default GoAPopover;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.165",
3
+ "version": "4.0.0-alpha.166",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { useRef, useEffect } from 'react';
3
- import { parseISO, format } from 'date-fns';
3
+ import { isValid, parseISO, format } from 'date-fns';
4
4
 
5
5
  function noop(){}const identity=x=>x;function assign(tar,src){// @ts-ignore
6
6
  for(const k in src)tar[k]=src[k];return tar;}function run(fn){return fn();}function blank_object(){return Object.create(null);}function run_all(fns){fns.forEach(run);}function is_function(thing){return typeof thing==='function';}function safe_not_equal(a,b){return a!=a?b==b:a!==b||a&&typeof a==='object'||typeof a==='function';}let src_url_equal_anchor;function src_url_equal(element_src,url){if(!src_url_equal_anchor){src_url_equal_anchor=document.createElement('a');}src_url_equal_anchor.href=url;return element_src===src_url_equal_anchor.href;}function is_empty(obj){return Object.keys(obj).length===0;}function subscribe(store,...callbacks){if(store==null){return noop;}const unsub=store.subscribe(...callbacks);return unsub.unsubscribe?()=>unsub.unsubscribe():unsub;}function component_subscribe(component,store,callback){component.$$.on_destroy.push(subscribe(store,callback));}function action_destroyer(action_result){return action_result&&is_function(action_result.destroy)?action_result.destroy:noop;}function split_css_unit(value){const split=typeof value==='string'&&value.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return split?[parseFloat(split[1]),split[2]||'px']:[value,'px'];}const is_client=typeof window!=='undefined';let now=is_client?()=>window.performance.now():()=>Date.now();let raf=is_client?cb=>requestAnimationFrame(cb):noop;const tasks=new Set();function run_tasks(now){tasks.forEach(task=>{if(!task.c(now)){tasks.delete(task);task.f();}});if(tasks.size!==0)raf(run_tasks);}/**
@@ -542,12 +542,12 @@ function create_if_block_4(ctx){let div;return {c(){div=element("div");div.textC
542
542
  function create_if_block_3$1(ctx){let div;let progress_1;let t0;let t1_value=Math.ceil(/*progress*/ctx[2])+"";let t1;let t2;return {c(){div=element("div");progress_1=element("progress");t0=space();t1=text(t1_value);t2=text("%");progress_1.value=/*progress*/ctx[2];attr(progress_1,"max","100");attr(div,"class","progress");attr(div,"data-testid","progress");},m(target,anchor){insert(target,div,anchor);append(div,progress_1);append(div,t0);append(div,t1);append(div,t2);},p(ctx,dirty){if(dirty&/*progress*/4){progress_1.value=/*progress*/ctx[2];}if(dirty&/*progress*/4&&t1_value!==(t1_value=Math.ceil(/*progress*/ctx[2])+""))set_data(t1,t1_value);},d(detaching){if(detaching)detach(div);}};}// (102:36)
543
543
  function create_if_block_2$1(ctx){let goa_button;let mounted;let dispose;return {c(){goa_button=element("goa-button");goa_button.textContent="Cancel";set_custom_element_data(goa_button,"type","tertiary");set_custom_element_data(goa_button,"size","compact");set_custom_element_data(goa_button,"variant","destructive");},m(target,anchor){insert(target,goa_button,anchor);if(!mounted){dispose=listen(goa_button,"click",/*click_handler_2*/ctx[11]);mounted=true;}},p:noop,d(detaching){if(detaching)detach(goa_button);mounted=false;dispose();}};}// (100:39)
544
544
  function create_if_block_1$1(ctx){let goa_button;let mounted;let dispose;return {c(){goa_button=element("goa-button");goa_button.textContent="Remove";set_custom_element_data(goa_button,"type","tertiary");set_custom_element_data(goa_button,"size","compact");set_custom_element_data(goa_button,"leadingicon","trash");},m(target,anchor){insert(target,goa_button,anchor);if(!mounted){dispose=listen(goa_button,"click",/*click_handler_1*/ctx[10]);mounted=true;}},p:noop,d(detaching){if(detaching)detach(goa_button);mounted=false;dispose();}};}// (98:6) {#if _status === "uploading"}
545
- function create_if_block$2(ctx){let goa_button;let mounted;let dispose;return {c(){goa_button=element("goa-button");goa_button.textContent="Cancel";set_custom_element_data(goa_button,"type","tertiary");set_custom_element_data(goa_button,"size","compact");},m(target,anchor){insert(target,goa_button,anchor);if(!mounted){dispose=listen(goa_button,"click",/*click_handler*/ctx[9]);mounted=true;}},p:noop,d(detaching){if(detaching)detach(goa_button);mounted=false;dispose();}};}function create_fragment$3(ctx){let div3;let t0;let div1;let div0;let t1;let t2;let t3;let t4;let div2;let div3_class_value;function select_block_type(ctx,dirty){if(/*_status*/ctx[4]==="uploaded")return create_if_block_7;return create_else_block$2;}let current_block_type=select_block_type(ctx);let if_block0=current_block_type(ctx);let if_block1=/*_status*/ctx[4]!=="error"&&create_if_block_6(ctx);function select_block_type_1(ctx,dirty){if(/*_status*/ctx[4]==="uploading")return create_if_block_3$1;if(/*_status*/ctx[4]==="uploaded")return create_if_block_4;if(/*_status*/ctx[4]==="error")return create_if_block_5;}let current_block_type_1=select_block_type_1(ctx);let if_block2=current_block_type_1&&current_block_type_1(ctx);function select_block_type_2(ctx,dirty){if(/*_status*/ctx[4]==="uploading")return create_if_block$2;if(/*_status*/ctx[4]==="uploaded")return create_if_block_1$1;if(/*_status*/ctx[4]==="error")return create_if_block_2$1;}let current_block_type_2=select_block_type_2(ctx);let if_block3=current_block_type_2&&current_block_type_2(ctx);return {c(){div3=element("div");if_block0.c();t0=space();div1=element("div");div0=element("div");t1=text(/*filename*/ctx[0]);t2=space();if(if_block1)if_block1.c();t3=space();if(if_block2)if_block2.c();t4=space();div2=element("div");if(if_block3)if_block3.c();this.c=noop;attr(div0,"class","filename");attr(div0,"data-testid","filename");attr(div1,"class","details");attr(div2,"class","actions");attr(div2,"data-testid","actions");attr(div3,"data-testid","root");attr(div3,"class",div3_class_value=`root ${/*_status*/ctx[4]}`);toggle_class(div3,"error",/*error*/ctx[3]);},m(target,anchor){insert(target,div3,anchor);if_block0.m(div3,null);append(div3,t0);append(div3,div1);append(div1,div0);append(div0,t1);append(div1,t2);if(if_block1)if_block1.m(div1,null);append(div1,t3);if(if_block2)if_block2.m(div1,null);append(div3,t4);append(div3,div2);if(if_block3)if_block3.m(div2,null);/*div3_binding*/ctx[12](div3);},p(ctx,[dirty]){if(current_block_type===(current_block_type=select_block_type(ctx))&&if_block0){if_block0.p(ctx,dirty);}else {if_block0.d(1);if_block0=current_block_type(ctx);if(if_block0){if_block0.c();if_block0.m(div3,t0);}}if(dirty&/*filename*/1)set_data(t1,/*filename*/ctx[0]);if(/*_status*/ctx[4]!=="error"){if(if_block1){if_block1.p(ctx,dirty);}else {if_block1=create_if_block_6(ctx);if_block1.c();if_block1.m(div1,t3);}}else if(if_block1){if_block1.d(1);if_block1=null;}if(current_block_type_1===(current_block_type_1=select_block_type_1(ctx))&&if_block2){if_block2.p(ctx,dirty);}else {if(if_block2)if_block2.d(1);if_block2=current_block_type_1&&current_block_type_1(ctx);if(if_block2){if_block2.c();if_block2.m(div1,null);}}if(current_block_type_2===(current_block_type_2=select_block_type_2(ctx))&&if_block3){if_block3.p(ctx,dirty);}else {if(if_block3)if_block3.d(1);if_block3=current_block_type_2&&current_block_type_2(ctx);if(if_block3){if_block3.c();if_block3.m(div2,null);}}if(dirty&/*_status*/16&&div3_class_value!==(div3_class_value=`root ${/*_status*/ctx[4]}`)){attr(div3,"class",div3_class_value);}if(dirty&/*_status, error*/24){toggle_class(div3,"error",/*error*/ctx[3]);}},i:noop,o:noop,d(detaching){if(detaching)detach(div3);if_block0.d();if(if_block1)if_block1.d();if(if_block2){if_block2.d();}if(if_block3){if_block3.d();}/*div3_binding*/ctx[12](null);}};}function getFiletypeIcon(filename,type){// file extensions
545
+ function create_if_block$2(ctx){let goa_button;let mounted;let dispose;return {c(){goa_button=element("goa-button");goa_button.textContent="Cancel";set_custom_element_data(goa_button,"type","tertiary");set_custom_element_data(goa_button,"size","compact");},m(target,anchor){insert(target,goa_button,anchor);if(!mounted){dispose=listen(goa_button,"click",/*click_handler*/ctx[9]);mounted=true;}},p:noop,d(detaching){if(detaching)detach(goa_button);mounted=false;dispose();}};}function create_fragment$3(ctx){let div3;let t0;let div1;let div0;let t1;let t2;let t3;let t4;let div2;let div3_class_value;function select_block_type(ctx,dirty){if(/*_status*/ctx[4]==="uploaded")return create_if_block_7;return create_else_block$2;}let current_block_type=select_block_type(ctx);let if_block0=current_block_type(ctx);let if_block1=/*_status*/ctx[4]!=="error"&&create_if_block_6(ctx);function select_block_type_1(ctx,dirty){if(/*_status*/ctx[4]==="uploading")return create_if_block_3$1;if(/*_status*/ctx[4]==="uploaded")return create_if_block_4;if(/*_status*/ctx[4]==="error")return create_if_block_5;}let current_block_type_1=select_block_type_1(ctx);let if_block2=current_block_type_1&&current_block_type_1(ctx);function select_block_type_2(ctx,dirty){if(/*_status*/ctx[4]==="uploading")return create_if_block$2;if(/*_status*/ctx[4]==="uploaded")return create_if_block_1$1;if(/*_status*/ctx[4]==="error")return create_if_block_2$1;}let current_block_type_2=select_block_type_2(ctx);let if_block3=current_block_type_2&&current_block_type_2(ctx);return {c(){div3=element("div");if_block0.c();t0=space();div1=element("div");div0=element("div");t1=text(/*filename*/ctx[0]);t2=space();if(if_block1)if_block1.c();t3=space();if(if_block2)if_block2.c();t4=space();div2=element("div");if(if_block3)if_block3.c();this.c=noop;attr(div0,"class","filename");attr(div0,"data-testid","filename");attr(div1,"class","details");attr(div2,"class","actions");attr(div2,"data-testid","actions");attr(div3,"data-testid","root");attr(div3,"class",div3_class_value=`root ${/*_status*/ctx[4]}`);toggle_class(div3,"error",/*error*/ctx[3]);},m(target,anchor){insert(target,div3,anchor);if_block0.m(div3,null);append(div3,t0);append(div3,div1);append(div1,div0);append(div0,t1);append(div1,t2);if(if_block1)if_block1.m(div1,null);append(div1,t3);if(if_block2)if_block2.m(div1,null);append(div3,t4);append(div3,div2);if(if_block3)if_block3.m(div2,null);/*div3_binding*/ctx[12](div3);},p(ctx,[dirty]){if(current_block_type===(current_block_type=select_block_type(ctx))&&if_block0){if_block0.p(ctx,dirty);}else {if_block0.d(1);if_block0=current_block_type(ctx);if(if_block0){if_block0.c();if_block0.m(div3,t0);}}if(dirty&/*filename*/1)set_data(t1,/*filename*/ctx[0]);if(/*_status*/ctx[4]!=="error"){if(if_block1){if_block1.p(ctx,dirty);}else {if_block1=create_if_block_6(ctx);if_block1.c();if_block1.m(div1,t3);}}else if(if_block1){if_block1.d(1);if_block1=null;}if(current_block_type_1===(current_block_type_1=select_block_type_1(ctx))&&if_block2){if_block2.p(ctx,dirty);}else {if(if_block2)if_block2.d(1);if_block2=current_block_type_1&&current_block_type_1(ctx);if(if_block2){if_block2.c();if_block2.m(div1,null);}}if(current_block_type_2===(current_block_type_2=select_block_type_2(ctx))&&if_block3){if_block3.p(ctx,dirty);}else {if(if_block3)if_block3.d(1);if_block3=current_block_type_2&&current_block_type_2(ctx);if(if_block3){if_block3.c();if_block3.m(div2,null);}}if(dirty&/*_status*/16&&div3_class_value!==(div3_class_value=`root ${/*_status*/ctx[4]}`)){attr(div3,"class",div3_class_value);}if(dirty&/*_status, error*/24){toggle_class(div3,"error",/*error*/ctx[3]);}},i:noop,o:noop,d(detaching){if(detaching)detach(div3);if_block0.d();if(if_block1)if_block1.d();if(if_block2){if_block2.d();}if(if_block3){if_block3.d();}/*div3_binding*/ctx[12](null);}};}function getFiletypeIcon(filename,type){// file extensions
546
546
  const parts=filename.split(".");const ext=parts[parts.length-1];const extTypeIcon=ext==="xlxs"&&"goa-xls"||ext==="xls"&&"goa-xls"||ext==="zip"&&"goa-zip"||ext==="docx"&&"goa-doc"||ext==="doc"&&"goa-doc"||ext==="pptx"&&"goa-ppt"||ext==="ppt"&&"goa-ppt"||ext==="pdf"&&"goa-pdf"||ext==="html"&&"goa-html";if(extTypeIcon)return extTypeIcon;// mimetype
547
547
  const mimeTypeIcon=type==="application/vnd.ms-powerpoint"&&"goa-ppt"||type.includes("presentationml")&&"goa-ppt"||type.includes("wordprocessingml")&&"goa-doc"||type.includes("spreadsheet")&&"goa-xls"||type.startsWith("video")&&"goa-video"||type.startsWith("audio")&&"goa-audio"||type.startsWith("image")&&"goa-image"||type==="application/msword"&&"goa-doc"||"goa-file";return mimeTypeIcon;}function formatFileSize(bytes){switch(true){case bytes<1024:return bytes+"B";case bytes<1024*1024:return Math.round(bytes/1024)+"KB";case bytes<Math.pow(1024,3):return Math.round(bytes/Math.pow(1024,2))+"MB";}}function instance$3($$self,$$props,$$invalidate){let{filename}=$$props;let{size}=$$props;let{type=""}=$$props;let{progress=-1}=$$props;let{error=""}=$$props;// Private
548
548
  let _status="uploading";let _rootEl;let _fileIcon="goa-file";function dispatch(action){_rootEl.dispatchEvent(new CustomEvent(action,{composed:true}));}const click_handler=()=>dispatch("_cancel");const click_handler_1=()=>dispatch("_delete");const click_handler_2=()=>dispatch("_delete");function div3_binding($$value){binding_callbacks[$$value?'unshift':'push'](()=>{_rootEl=$$value;$$invalidate(5,_rootEl);});}$$self.$$set=$$props=>{if('filename'in $$props)$$invalidate(0,filename=$$props.filename);if('size'in $$props)$$invalidate(1,size=$$props.size);if('type'in $$props)$$invalidate(8,type=$$props.type);if('progress'in $$props)$$invalidate(2,progress=$$props.progress);if('error'in $$props)$$invalidate(3,error=$$props.error);};$$self.$$.update=()=>{if($$self.$$.dirty&/*error, progress*/12){// Reactive
549
549
  $$invalidate(4,_status=error&&"error"||progress>=0&&progress<100&&"uploading"||"uploaded");}if($$self.$$.dirty&/*filename, type*/257){$$invalidate(6,_fileIcon=filename&&type&&getFiletypeIcon(filename,type));}};return [filename,size,progress,error,_status,_rootEl,_fileIcon,dispatch,type,click_handler,click_handler_1,click_handler_2,div3_binding];}class FileUploadCard extends SvelteElement{constructor(options){super();const style=document.createElement('style');style.textContent=`.root{padding:var(--goa-space-l);border:var(--goa-border-width-s) solid var(--goa-color-greyscale-200);border-radius:var(--goa-border-radius-m);margin:0.5rem 0;display:grid;grid-template-columns:38px auto;grid-template-rows:repeat(2, auto);grid-template-areas:"icon details"
550
- "action action";gap:1rem;align-items:center}.root.error{border:var(--goa-border-width-m) solid var(--goa-color-interactive-error)}@media(min-width: 480px){.root{grid-template-columns:38px 1fr auto;grid-template-rows:auto;grid-template-areas:"icon details action"}.details{margin-left:0.5rem}}.fileicon{grid-area:icon;align-self:center}.actions{grid-area:action}.details{grid-area:details;display:flex;flex-direction:column;overflow-x:hidden}.filename{grid-area:filename;font-size:var(--goa-font-size-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.error-msg{display:flex;align-items:flex-start;margin-top:0.5rem;gap:var(--goa-space-2xs);color:var(--goa-color-interactive-error);font:var(--goa-typography-body-xs)}.timestamp,.filesize{color:var(--goa-color-greyscale-700);font:var(--goa-typography-body-s)}.progress{display:flex;align-items:center;font:var(--goa-typography-body-xs);gap:0.5rem}progress{flex:1 1 auto;-webkit-appearance:none;appearance:none;height:4px;border:none;border-radius:var(--goa-border-radius-m);background:var(--goa-color-greyscale-200);color:var(--goa-color-greyscale-700)}progress::-webkit-progress-value{background:var(--goa-color-interactive-default)}progress::-webkit-progress-bar{background:var(--goa-color-greyscale-200)}progress::-moz-progress-bar{background:var(--goa-color-interactive-default)}`;this.shadowRoot.appendChild(style);init(this,{target:this.shadowRoot,props:attribute_to_object(this.attributes),customElement:true},instance$3,create_fragment$3,safe_not_equal,{filename:0,size:1,type:8,progress:2,error:3},null);if(options){if(options.target){insert(options.target,this,options.anchor);}if(options.props){this.$set(options.props);flush();}}}static get observedAttributes(){return ["filename","size","type","progress","error"];}get filename(){return this.$$.ctx[0];}set filename(filename){this.$$set({filename});flush();}get size(){return this.$$.ctx[1];}set size(size){this.$$set({size});flush();}get type(){return this.$$.ctx[8];}set type(type){this.$$set({type});flush();}get progress(){return this.$$.ctx[2];}set progress(progress){this.$$set({progress});flush();}get error(){return this.$$.ctx[3];}set error(error){this.$$set({error});flush();}}customElements.define("goa-file-upload-card",FileUploadCard);/* libs/web-components/src/components/app-header-menu/AppHeaderMenu.svelte generated by Svelte v3.58.0 */const{window:window_1}=globals;function create_else_block$1(ctx){let button;let t0;let span;let t1;let t2;let goa_spacer;let t3;let goa_icon;let goa_icon_type_value;let t4;let if_block1_anchor;let mounted;let dispose;let if_block0=/*leadingicon*/ctx[1]&&create_if_block_3(ctx);let if_block1=/*_open*/ctx[8]&&create_if_block_2(ctx);return {c(){button=element("button");if(if_block0)if_block0.c();t0=space();span=element("span");t1=text(/*heading*/ctx[0]);t2=space();goa_spacer=element("goa-spacer");t3=space();goa_icon=element("goa-icon");t4=space();if(if_block1)if_block1.c();if_block1_anchor=empty();attr(span,"class","heading");set_custom_element_data(goa_spacer,"hspacing","fill");set_custom_element_data(goa_icon,"type",goa_icon_type_value=/*_open*/ctx[8]?"chevron-up":"chevron-down");set_custom_element_data(goa_icon,"mt","1");attr(button,"class",/*type*/ctx[2]);toggle_class(button,"open",/*_open*/ctx[8]);},m(target,anchor){insert(target,button,anchor);if(if_block0)if_block0.m(button,null);append(button,t0);append(button,span);append(span,t1);append(button,t2);append(button,goa_spacer);append(button,t3);append(button,goa_icon);insert(target,t4,anchor);if(if_block1)if_block1.m(target,anchor);insert(target,if_block1_anchor,anchor);if(!mounted){dispose=listen(button,"click",/*toggleMenu*/ctx[9]);mounted=true;}},p(ctx,dirty){if(/*leadingicon*/ctx[1]){if(if_block0){if_block0.p(ctx,dirty);}else {if_block0=create_if_block_3(ctx);if_block0.c();if_block0.m(button,t0);}}else if(if_block0){if_block0.d(1);if_block0=null;}if(dirty&/*heading*/1)set_data(t1,/*heading*/ctx[0]);if(dirty&/*_open*/256&&goa_icon_type_value!==(goa_icon_type_value=/*_open*/ctx[8]?"chevron-up":"chevron-down")){set_custom_element_data(goa_icon,"type",goa_icon_type_value);}if(dirty&/*type*/4){attr(button,"class",/*type*/ctx[2]);}if(dirty&/*type, _open*/260){toggle_class(button,"open",/*_open*/ctx[8]);}if(/*_open*/ctx[8]){if(if_block1){if_block1.p(ctx,dirty);}else {if_block1=create_if_block_2(ctx);if_block1.c();if_block1.m(if_block1_anchor.parentNode,if_block1_anchor);}}else if(if_block1){if_block1.d(1);if_block1=null;}},d(detaching){if(detaching)detach(button);if(if_block0)if_block0.d();if(detaching)detach(t4);if(if_block1)if_block1.d(detaching);if(detaching)detach(if_block1_anchor);mounted=false;dispose();}};}// (78:0) {#if _desktop}
550
+ "action action";gap:1rem;align-items:center}.root.error{border:var(--goa-border-width-m) solid var(--goa-color-interactive-error)}@media(min-width: 480px){.root{grid-template-columns:38px 1fr auto;grid-template-rows:auto;grid-template-areas:"icon details action"}.details{margin-left:0.5rem}}.fileicon{grid-area:icon;align-self:center}.actions{grid-area:action}.details{grid-area:details;display:flex;flex-direction:column;overflow-x:hidden}.filename{grid-area:filename;font-size:var(--goa-font-size-4);overflow-wrap:anywhere}.error-msg{display:flex;align-items:flex-start;margin-top:0.5rem;gap:var(--goa-space-2xs);color:var(--goa-color-interactive-error);font:var(--goa-typography-body-xs)}.timestamp,.filesize{color:var(--goa-color-greyscale-700);font:var(--goa-typography-body-s)}.progress{display:flex;align-items:center;font:var(--goa-typography-body-xs);gap:0.5rem}progress{flex:1 1 auto;-webkit-appearance:none;appearance:none;height:4px;border:none;border-radius:var(--goa-border-radius-m);background:var(--goa-color-greyscale-200);color:var(--goa-color-greyscale-700)}progress::-webkit-progress-value{background:var(--goa-color-interactive-default)}progress::-webkit-progress-bar{background:var(--goa-color-greyscale-200)}progress::-moz-progress-bar{background:var(--goa-color-interactive-default)}`;this.shadowRoot.appendChild(style);init(this,{target:this.shadowRoot,props:attribute_to_object(this.attributes),customElement:true},instance$3,create_fragment$3,safe_not_equal,{filename:0,size:1,type:8,progress:2,error:3},null);if(options){if(options.target){insert(options.target,this,options.anchor);}if(options.props){this.$set(options.props);flush();}}}static get observedAttributes(){return ["filename","size","type","progress","error"];}get filename(){return this.$$.ctx[0];}set filename(filename){this.$$set({filename});flush();}get size(){return this.$$.ctx[1];}set size(size){this.$$set({size});flush();}get type(){return this.$$.ctx[8];}set type(type){this.$$set({type});flush();}get progress(){return this.$$.ctx[2];}set progress(progress){this.$$set({progress});flush();}get error(){return this.$$.ctx[3];}set error(error){this.$$set({error});flush();}}customElements.define("goa-file-upload-card",FileUploadCard);/* libs/web-components/src/components/app-header-menu/AppHeaderMenu.svelte generated by Svelte v3.58.0 */const{window:window_1}=globals;function create_else_block$1(ctx){let button;let t0;let span;let t1;let t2;let goa_spacer;let t3;let goa_icon;let goa_icon_type_value;let t4;let if_block1_anchor;let mounted;let dispose;let if_block0=/*leadingicon*/ctx[1]&&create_if_block_3(ctx);let if_block1=/*_open*/ctx[8]&&create_if_block_2(ctx);return {c(){button=element("button");if(if_block0)if_block0.c();t0=space();span=element("span");t1=text(/*heading*/ctx[0]);t2=space();goa_spacer=element("goa-spacer");t3=space();goa_icon=element("goa-icon");t4=space();if(if_block1)if_block1.c();if_block1_anchor=empty();attr(span,"class","heading");set_custom_element_data(goa_spacer,"hspacing","fill");set_custom_element_data(goa_icon,"type",goa_icon_type_value=/*_open*/ctx[8]?"chevron-up":"chevron-down");set_custom_element_data(goa_icon,"mt","1");attr(button,"class",/*type*/ctx[2]);toggle_class(button,"open",/*_open*/ctx[8]);},m(target,anchor){insert(target,button,anchor);if(if_block0)if_block0.m(button,null);append(button,t0);append(button,span);append(span,t1);append(button,t2);append(button,goa_spacer);append(button,t3);append(button,goa_icon);insert(target,t4,anchor);if(if_block1)if_block1.m(target,anchor);insert(target,if_block1_anchor,anchor);if(!mounted){dispose=listen(button,"click",/*toggleMenu*/ctx[9]);mounted=true;}},p(ctx,dirty){if(/*leadingicon*/ctx[1]){if(if_block0){if_block0.p(ctx,dirty);}else {if_block0=create_if_block_3(ctx);if_block0.c();if_block0.m(button,t0);}}else if(if_block0){if_block0.d(1);if_block0=null;}if(dirty&/*heading*/1)set_data(t1,/*heading*/ctx[0]);if(dirty&/*_open*/256&&goa_icon_type_value!==(goa_icon_type_value=/*_open*/ctx[8]?"chevron-up":"chevron-down")){set_custom_element_data(goa_icon,"type",goa_icon_type_value);}if(dirty&/*type*/4){attr(button,"class",/*type*/ctx[2]);}if(dirty&/*type, _open*/260){toggle_class(button,"open",/*_open*/ctx[8]);}if(/*_open*/ctx[8]){if(if_block1){if_block1.p(ctx,dirty);}else {if_block1=create_if_block_2(ctx);if_block1.c();if_block1.m(if_block1_anchor.parentNode,if_block1_anchor);}}else if(if_block1){if_block1.d(1);if_block1=null;}},d(detaching){if(detaching)detach(button);if(if_block0)if_block0.d();if(detaching)detach(t4);if(if_block1)if_block1.d(detaching);if(detaching)detach(if_block1_anchor);mounted=false;dispose();}};}// (78:0) {#if _desktop}
551
551
  function create_if_block$1(ctx){let goa_popover;let button;let t0;let t1;let t2;let goa_icon;let goa_icon_type_value;let t3;let div;let if_block=/*leadingicon*/ctx[1]&&create_if_block_1(ctx);return {c(){goa_popover=element("goa-popover");button=element("button");if(if_block)if_block.c();t0=space();t1=text(/*heading*/ctx[0]);t2=space();goa_icon=element("goa-icon");t3=space();div=element("div");div.innerHTML=`<slot></slot>`;set_custom_element_data(goa_icon,"type",goa_icon_type_value=/*_open*/ctx[8]?"chevron-up":"chevron-down");set_custom_element_data(goa_icon,"mt","1");attr(button,"slot","target");set_style(button,"padding","0 0.75rem");attr(button,"class",/*type*/ctx[2]);toggle_class(button,"current",/*_hasCurrentLink*/ctx[7]);attr(div,"class","desktop");set_custom_element_data(goa_popover,"context","app-header-menu");set_custom_element_data(goa_popover,"focusborderwidth","0");set_custom_element_data(goa_popover,"borderradius","0");set_custom_element_data(goa_popover,"padded","false");set_custom_element_data(goa_popover,"tabindex","-1");set_custom_element_data(goa_popover,"width","16rem");set_custom_element_data(goa_popover,"position","below");},m(target,anchor){insert(target,goa_popover,anchor);append(goa_popover,button);if(if_block)if_block.m(button,null);append(button,t0);append(button,t1);append(button,t2);append(button,goa_icon);append(goa_popover,t3);append(goa_popover,div);/*div_binding*/ctx[11](div);/*goa_popover_binding*/ctx[12](goa_popover);},p(ctx,dirty){if(/*leadingicon*/ctx[1]){if(if_block){if_block.p(ctx,dirty);}else {if_block=create_if_block_1(ctx);if_block.c();if_block.m(button,t0);}}else if(if_block){if_block.d(1);if_block=null;}if(dirty&/*heading*/1)set_data(t1,/*heading*/ctx[0]);if(dirty&/*_open*/256&&goa_icon_type_value!==(goa_icon_type_value=/*_open*/ctx[8]?"chevron-up":"chevron-down")){set_custom_element_data(goa_icon,"type",goa_icon_type_value);}if(dirty&/*type*/4){attr(button,"class",/*type*/ctx[2]);}if(dirty&/*type, _hasCurrentLink*/132){toggle_class(button,"current",/*_hasCurrentLink*/ctx[7]);}},d(detaching){if(detaching)detach(goa_popover);if(if_block)if_block.d();/*div_binding*/ctx[11](null);/*goa_popover_binding*/ctx[12](null);}};}// (112:4) {#if leadingicon}
552
552
  function create_if_block_3(ctx){let goa_icon;return {c(){goa_icon=element("goa-icon");set_custom_element_data(goa_icon,"type",/*leadingicon*/ctx[1]);set_custom_element_data(goa_icon,"mt","1");},m(target,anchor){insert(target,goa_icon,anchor);},p(ctx,dirty){if(dirty&/*leadingicon*/2){set_custom_element_data(goa_icon,"type",/*leadingicon*/ctx[1]);}},d(detaching){if(detaching)detach(goa_icon);}};}// (119:2) {#if _open}
553
553
  function create_if_block_2(ctx){let div;return {c(){div=element("div");div.innerHTML=`<slot></slot>`;attr(div,"class","not-desktop");},m(target,anchor){insert(target,div,anchor);/*div_binding_1*/ctx[13](div);},p:noop,d(detaching){if(detaching)detach(div);/*div_binding_1*/ctx[13](null);}};}// (95:6) {#if leadingicon}
@@ -1603,7 +1603,9 @@ const onDateChangeHandler = onChange => {
1603
1603
  return;
1604
1604
  }
1605
1605
 
1606
- onChange(name, parseISO(value));
1606
+ if (isValid(new Date(value))) {
1607
+ onChange(name, parseISO(value));
1608
+ }
1607
1609
  };
1608
1610
  };
1609
1611
 
@@ -544,12 +544,12 @@
544
544
  function create_if_block_3$1(ctx){let div;let progress_1;let t0;let t1_value=Math.ceil(/*progress*/ctx[2])+"";let t1;let t2;return {c(){div=element("div");progress_1=element("progress");t0=space();t1=text(t1_value);t2=text("%");progress_1.value=/*progress*/ctx[2];attr(progress_1,"max","100");attr(div,"class","progress");attr(div,"data-testid","progress");},m(target,anchor){insert(target,div,anchor);append(div,progress_1);append(div,t0);append(div,t1);append(div,t2);},p(ctx,dirty){if(dirty&/*progress*/4){progress_1.value=/*progress*/ctx[2];}if(dirty&/*progress*/4&&t1_value!==(t1_value=Math.ceil(/*progress*/ctx[2])+""))set_data(t1,t1_value);},d(detaching){if(detaching)detach(div);}};}// (102:36)
545
545
  function create_if_block_2$1(ctx){let goa_button;let mounted;let dispose;return {c(){goa_button=element("goa-button");goa_button.textContent="Cancel";set_custom_element_data(goa_button,"type","tertiary");set_custom_element_data(goa_button,"size","compact");set_custom_element_data(goa_button,"variant","destructive");},m(target,anchor){insert(target,goa_button,anchor);if(!mounted){dispose=listen(goa_button,"click",/*click_handler_2*/ctx[11]);mounted=true;}},p:noop,d(detaching){if(detaching)detach(goa_button);mounted=false;dispose();}};}// (100:39)
546
546
  function create_if_block_1$1(ctx){let goa_button;let mounted;let dispose;return {c(){goa_button=element("goa-button");goa_button.textContent="Remove";set_custom_element_data(goa_button,"type","tertiary");set_custom_element_data(goa_button,"size","compact");set_custom_element_data(goa_button,"leadingicon","trash");},m(target,anchor){insert(target,goa_button,anchor);if(!mounted){dispose=listen(goa_button,"click",/*click_handler_1*/ctx[10]);mounted=true;}},p:noop,d(detaching){if(detaching)detach(goa_button);mounted=false;dispose();}};}// (98:6) {#if _status === "uploading"}
547
- function create_if_block$2(ctx){let goa_button;let mounted;let dispose;return {c(){goa_button=element("goa-button");goa_button.textContent="Cancel";set_custom_element_data(goa_button,"type","tertiary");set_custom_element_data(goa_button,"size","compact");},m(target,anchor){insert(target,goa_button,anchor);if(!mounted){dispose=listen(goa_button,"click",/*click_handler*/ctx[9]);mounted=true;}},p:noop,d(detaching){if(detaching)detach(goa_button);mounted=false;dispose();}};}function create_fragment$3(ctx){let div3;let t0;let div1;let div0;let t1;let t2;let t3;let t4;let div2;let div3_class_value;function select_block_type(ctx,dirty){if(/*_status*/ctx[4]==="uploaded")return create_if_block_7;return create_else_block$2;}let current_block_type=select_block_type(ctx);let if_block0=current_block_type(ctx);let if_block1=/*_status*/ctx[4]!=="error"&&create_if_block_6(ctx);function select_block_type_1(ctx,dirty){if(/*_status*/ctx[4]==="uploading")return create_if_block_3$1;if(/*_status*/ctx[4]==="uploaded")return create_if_block_4;if(/*_status*/ctx[4]==="error")return create_if_block_5;}let current_block_type_1=select_block_type_1(ctx);let if_block2=current_block_type_1&&current_block_type_1(ctx);function select_block_type_2(ctx,dirty){if(/*_status*/ctx[4]==="uploading")return create_if_block$2;if(/*_status*/ctx[4]==="uploaded")return create_if_block_1$1;if(/*_status*/ctx[4]==="error")return create_if_block_2$1;}let current_block_type_2=select_block_type_2(ctx);let if_block3=current_block_type_2&&current_block_type_2(ctx);return {c(){div3=element("div");if_block0.c();t0=space();div1=element("div");div0=element("div");t1=text(/*filename*/ctx[0]);t2=space();if(if_block1)if_block1.c();t3=space();if(if_block2)if_block2.c();t4=space();div2=element("div");if(if_block3)if_block3.c();this.c=noop;attr(div0,"class","filename");attr(div0,"data-testid","filename");attr(div1,"class","details");attr(div2,"class","actions");attr(div2,"data-testid","actions");attr(div3,"data-testid","root");attr(div3,"class",div3_class_value=`root ${/*_status*/ctx[4]}`);toggle_class(div3,"error",/*error*/ctx[3]);},m(target,anchor){insert(target,div3,anchor);if_block0.m(div3,null);append(div3,t0);append(div3,div1);append(div1,div0);append(div0,t1);append(div1,t2);if(if_block1)if_block1.m(div1,null);append(div1,t3);if(if_block2)if_block2.m(div1,null);append(div3,t4);append(div3,div2);if(if_block3)if_block3.m(div2,null);/*div3_binding*/ctx[12](div3);},p(ctx,[dirty]){if(current_block_type===(current_block_type=select_block_type(ctx))&&if_block0){if_block0.p(ctx,dirty);}else {if_block0.d(1);if_block0=current_block_type(ctx);if(if_block0){if_block0.c();if_block0.m(div3,t0);}}if(dirty&/*filename*/1)set_data(t1,/*filename*/ctx[0]);if(/*_status*/ctx[4]!=="error"){if(if_block1){if_block1.p(ctx,dirty);}else {if_block1=create_if_block_6(ctx);if_block1.c();if_block1.m(div1,t3);}}else if(if_block1){if_block1.d(1);if_block1=null;}if(current_block_type_1===(current_block_type_1=select_block_type_1(ctx))&&if_block2){if_block2.p(ctx,dirty);}else {if(if_block2)if_block2.d(1);if_block2=current_block_type_1&&current_block_type_1(ctx);if(if_block2){if_block2.c();if_block2.m(div1,null);}}if(current_block_type_2===(current_block_type_2=select_block_type_2(ctx))&&if_block3){if_block3.p(ctx,dirty);}else {if(if_block3)if_block3.d(1);if_block3=current_block_type_2&&current_block_type_2(ctx);if(if_block3){if_block3.c();if_block3.m(div2,null);}}if(dirty&/*_status*/16&&div3_class_value!==(div3_class_value=`root ${/*_status*/ctx[4]}`)){attr(div3,"class",div3_class_value);}if(dirty&/*_status, error*/24){toggle_class(div3,"error",/*error*/ctx[3]);}},i:noop,o:noop,d(detaching){if(detaching)detach(div3);if_block0.d();if(if_block1)if_block1.d();if(if_block2){if_block2.d();}if(if_block3){if_block3.d();}/*div3_binding*/ctx[12](null);}};}function getFiletypeIcon(filename,type){// file extensions
547
+ function create_if_block$2(ctx){let goa_button;let mounted;let dispose;return {c(){goa_button=element("goa-button");goa_button.textContent="Cancel";set_custom_element_data(goa_button,"type","tertiary");set_custom_element_data(goa_button,"size","compact");},m(target,anchor){insert(target,goa_button,anchor);if(!mounted){dispose=listen(goa_button,"click",/*click_handler*/ctx[9]);mounted=true;}},p:noop,d(detaching){if(detaching)detach(goa_button);mounted=false;dispose();}};}function create_fragment$3(ctx){let div3;let t0;let div1;let div0;let t1;let t2;let t3;let t4;let div2;let div3_class_value;function select_block_type(ctx,dirty){if(/*_status*/ctx[4]==="uploaded")return create_if_block_7;return create_else_block$2;}let current_block_type=select_block_type(ctx);let if_block0=current_block_type(ctx);let if_block1=/*_status*/ctx[4]!=="error"&&create_if_block_6(ctx);function select_block_type_1(ctx,dirty){if(/*_status*/ctx[4]==="uploading")return create_if_block_3$1;if(/*_status*/ctx[4]==="uploaded")return create_if_block_4;if(/*_status*/ctx[4]==="error")return create_if_block_5;}let current_block_type_1=select_block_type_1(ctx);let if_block2=current_block_type_1&&current_block_type_1(ctx);function select_block_type_2(ctx,dirty){if(/*_status*/ctx[4]==="uploading")return create_if_block$2;if(/*_status*/ctx[4]==="uploaded")return create_if_block_1$1;if(/*_status*/ctx[4]==="error")return create_if_block_2$1;}let current_block_type_2=select_block_type_2(ctx);let if_block3=current_block_type_2&&current_block_type_2(ctx);return {c(){div3=element("div");if_block0.c();t0=space();div1=element("div");div0=element("div");t1=text(/*filename*/ctx[0]);t2=space();if(if_block1)if_block1.c();t3=space();if(if_block2)if_block2.c();t4=space();div2=element("div");if(if_block3)if_block3.c();this.c=noop;attr(div0,"class","filename");attr(div0,"data-testid","filename");attr(div1,"class","details");attr(div2,"class","actions");attr(div2,"data-testid","actions");attr(div3,"data-testid","root");attr(div3,"class",div3_class_value=`root ${/*_status*/ctx[4]}`);toggle_class(div3,"error",/*error*/ctx[3]);},m(target,anchor){insert(target,div3,anchor);if_block0.m(div3,null);append(div3,t0);append(div3,div1);append(div1,div0);append(div0,t1);append(div1,t2);if(if_block1)if_block1.m(div1,null);append(div1,t3);if(if_block2)if_block2.m(div1,null);append(div3,t4);append(div3,div2);if(if_block3)if_block3.m(div2,null);/*div3_binding*/ctx[12](div3);},p(ctx,[dirty]){if(current_block_type===(current_block_type=select_block_type(ctx))&&if_block0){if_block0.p(ctx,dirty);}else {if_block0.d(1);if_block0=current_block_type(ctx);if(if_block0){if_block0.c();if_block0.m(div3,t0);}}if(dirty&/*filename*/1)set_data(t1,/*filename*/ctx[0]);if(/*_status*/ctx[4]!=="error"){if(if_block1){if_block1.p(ctx,dirty);}else {if_block1=create_if_block_6(ctx);if_block1.c();if_block1.m(div1,t3);}}else if(if_block1){if_block1.d(1);if_block1=null;}if(current_block_type_1===(current_block_type_1=select_block_type_1(ctx))&&if_block2){if_block2.p(ctx,dirty);}else {if(if_block2)if_block2.d(1);if_block2=current_block_type_1&&current_block_type_1(ctx);if(if_block2){if_block2.c();if_block2.m(div1,null);}}if(current_block_type_2===(current_block_type_2=select_block_type_2(ctx))&&if_block3){if_block3.p(ctx,dirty);}else {if(if_block3)if_block3.d(1);if_block3=current_block_type_2&&current_block_type_2(ctx);if(if_block3){if_block3.c();if_block3.m(div2,null);}}if(dirty&/*_status*/16&&div3_class_value!==(div3_class_value=`root ${/*_status*/ctx[4]}`)){attr(div3,"class",div3_class_value);}if(dirty&/*_status, error*/24){toggle_class(div3,"error",/*error*/ctx[3]);}},i:noop,o:noop,d(detaching){if(detaching)detach(div3);if_block0.d();if(if_block1)if_block1.d();if(if_block2){if_block2.d();}if(if_block3){if_block3.d();}/*div3_binding*/ctx[12](null);}};}function getFiletypeIcon(filename,type){// file extensions
548
548
  const parts=filename.split(".");const ext=parts[parts.length-1];const extTypeIcon=ext==="xlxs"&&"goa-xls"||ext==="xls"&&"goa-xls"||ext==="zip"&&"goa-zip"||ext==="docx"&&"goa-doc"||ext==="doc"&&"goa-doc"||ext==="pptx"&&"goa-ppt"||ext==="ppt"&&"goa-ppt"||ext==="pdf"&&"goa-pdf"||ext==="html"&&"goa-html";if(extTypeIcon)return extTypeIcon;// mimetype
549
549
  const mimeTypeIcon=type==="application/vnd.ms-powerpoint"&&"goa-ppt"||type.includes("presentationml")&&"goa-ppt"||type.includes("wordprocessingml")&&"goa-doc"||type.includes("spreadsheet")&&"goa-xls"||type.startsWith("video")&&"goa-video"||type.startsWith("audio")&&"goa-audio"||type.startsWith("image")&&"goa-image"||type==="application/msword"&&"goa-doc"||"goa-file";return mimeTypeIcon;}function formatFileSize(bytes){switch(true){case bytes<1024:return bytes+"B";case bytes<1024*1024:return Math.round(bytes/1024)+"KB";case bytes<Math.pow(1024,3):return Math.round(bytes/Math.pow(1024,2))+"MB";}}function instance$3($$self,$$props,$$invalidate){let{filename}=$$props;let{size}=$$props;let{type=""}=$$props;let{progress=-1}=$$props;let{error=""}=$$props;// Private
550
550
  let _status="uploading";let _rootEl;let _fileIcon="goa-file";function dispatch(action){_rootEl.dispatchEvent(new CustomEvent(action,{composed:true}));}const click_handler=()=>dispatch("_cancel");const click_handler_1=()=>dispatch("_delete");const click_handler_2=()=>dispatch("_delete");function div3_binding($$value){binding_callbacks[$$value?'unshift':'push'](()=>{_rootEl=$$value;$$invalidate(5,_rootEl);});}$$self.$$set=$$props=>{if('filename'in $$props)$$invalidate(0,filename=$$props.filename);if('size'in $$props)$$invalidate(1,size=$$props.size);if('type'in $$props)$$invalidate(8,type=$$props.type);if('progress'in $$props)$$invalidate(2,progress=$$props.progress);if('error'in $$props)$$invalidate(3,error=$$props.error);};$$self.$$.update=()=>{if($$self.$$.dirty&/*error, progress*/12){// Reactive
551
551
  $$invalidate(4,_status=error&&"error"||progress>=0&&progress<100&&"uploading"||"uploaded");}if($$self.$$.dirty&/*filename, type*/257){$$invalidate(6,_fileIcon=filename&&type&&getFiletypeIcon(filename,type));}};return [filename,size,progress,error,_status,_rootEl,_fileIcon,dispatch,type,click_handler,click_handler_1,click_handler_2,div3_binding];}class FileUploadCard extends SvelteElement{constructor(options){super();const style=document.createElement('style');style.textContent=`.root{padding:var(--goa-space-l);border:var(--goa-border-width-s) solid var(--goa-color-greyscale-200);border-radius:var(--goa-border-radius-m);margin:0.5rem 0;display:grid;grid-template-columns:38px auto;grid-template-rows:repeat(2, auto);grid-template-areas:"icon details"
552
- "action action";gap:1rem;align-items:center}.root.error{border:var(--goa-border-width-m) solid var(--goa-color-interactive-error)}@media(min-width: 480px){.root{grid-template-columns:38px 1fr auto;grid-template-rows:auto;grid-template-areas:"icon details action"}.details{margin-left:0.5rem}}.fileicon{grid-area:icon;align-self:center}.actions{grid-area:action}.details{grid-area:details;display:flex;flex-direction:column;overflow-x:hidden}.filename{grid-area:filename;font-size:var(--goa-font-size-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.error-msg{display:flex;align-items:flex-start;margin-top:0.5rem;gap:var(--goa-space-2xs);color:var(--goa-color-interactive-error);font:var(--goa-typography-body-xs)}.timestamp,.filesize{color:var(--goa-color-greyscale-700);font:var(--goa-typography-body-s)}.progress{display:flex;align-items:center;font:var(--goa-typography-body-xs);gap:0.5rem}progress{flex:1 1 auto;-webkit-appearance:none;appearance:none;height:4px;border:none;border-radius:var(--goa-border-radius-m);background:var(--goa-color-greyscale-200);color:var(--goa-color-greyscale-700)}progress::-webkit-progress-value{background:var(--goa-color-interactive-default)}progress::-webkit-progress-bar{background:var(--goa-color-greyscale-200)}progress::-moz-progress-bar{background:var(--goa-color-interactive-default)}`;this.shadowRoot.appendChild(style);init(this,{target:this.shadowRoot,props:attribute_to_object(this.attributes),customElement:true},instance$3,create_fragment$3,safe_not_equal,{filename:0,size:1,type:8,progress:2,error:3},null);if(options){if(options.target){insert(options.target,this,options.anchor);}if(options.props){this.$set(options.props);flush();}}}static get observedAttributes(){return ["filename","size","type","progress","error"];}get filename(){return this.$$.ctx[0];}set filename(filename){this.$$set({filename});flush();}get size(){return this.$$.ctx[1];}set size(size){this.$$set({size});flush();}get type(){return this.$$.ctx[8];}set type(type){this.$$set({type});flush();}get progress(){return this.$$.ctx[2];}set progress(progress){this.$$set({progress});flush();}get error(){return this.$$.ctx[3];}set error(error){this.$$set({error});flush();}}customElements.define("goa-file-upload-card",FileUploadCard);/* libs/web-components/src/components/app-header-menu/AppHeaderMenu.svelte generated by Svelte v3.58.0 */const{window:window_1}=globals;function create_else_block$1(ctx){let button;let t0;let span;let t1;let t2;let goa_spacer;let t3;let goa_icon;let goa_icon_type_value;let t4;let if_block1_anchor;let mounted;let dispose;let if_block0=/*leadingicon*/ctx[1]&&create_if_block_3(ctx);let if_block1=/*_open*/ctx[8]&&create_if_block_2(ctx);return {c(){button=element("button");if(if_block0)if_block0.c();t0=space();span=element("span");t1=text(/*heading*/ctx[0]);t2=space();goa_spacer=element("goa-spacer");t3=space();goa_icon=element("goa-icon");t4=space();if(if_block1)if_block1.c();if_block1_anchor=empty();attr(span,"class","heading");set_custom_element_data(goa_spacer,"hspacing","fill");set_custom_element_data(goa_icon,"type",goa_icon_type_value=/*_open*/ctx[8]?"chevron-up":"chevron-down");set_custom_element_data(goa_icon,"mt","1");attr(button,"class",/*type*/ctx[2]);toggle_class(button,"open",/*_open*/ctx[8]);},m(target,anchor){insert(target,button,anchor);if(if_block0)if_block0.m(button,null);append(button,t0);append(button,span);append(span,t1);append(button,t2);append(button,goa_spacer);append(button,t3);append(button,goa_icon);insert(target,t4,anchor);if(if_block1)if_block1.m(target,anchor);insert(target,if_block1_anchor,anchor);if(!mounted){dispose=listen(button,"click",/*toggleMenu*/ctx[9]);mounted=true;}},p(ctx,dirty){if(/*leadingicon*/ctx[1]){if(if_block0){if_block0.p(ctx,dirty);}else {if_block0=create_if_block_3(ctx);if_block0.c();if_block0.m(button,t0);}}else if(if_block0){if_block0.d(1);if_block0=null;}if(dirty&/*heading*/1)set_data(t1,/*heading*/ctx[0]);if(dirty&/*_open*/256&&goa_icon_type_value!==(goa_icon_type_value=/*_open*/ctx[8]?"chevron-up":"chevron-down")){set_custom_element_data(goa_icon,"type",goa_icon_type_value);}if(dirty&/*type*/4){attr(button,"class",/*type*/ctx[2]);}if(dirty&/*type, _open*/260){toggle_class(button,"open",/*_open*/ctx[8]);}if(/*_open*/ctx[8]){if(if_block1){if_block1.p(ctx,dirty);}else {if_block1=create_if_block_2(ctx);if_block1.c();if_block1.m(if_block1_anchor.parentNode,if_block1_anchor);}}else if(if_block1){if_block1.d(1);if_block1=null;}},d(detaching){if(detaching)detach(button);if(if_block0)if_block0.d();if(detaching)detach(t4);if(if_block1)if_block1.d(detaching);if(detaching)detach(if_block1_anchor);mounted=false;dispose();}};}// (78:0) {#if _desktop}
552
+ "action action";gap:1rem;align-items:center}.root.error{border:var(--goa-border-width-m) solid var(--goa-color-interactive-error)}@media(min-width: 480px){.root{grid-template-columns:38px 1fr auto;grid-template-rows:auto;grid-template-areas:"icon details action"}.details{margin-left:0.5rem}}.fileicon{grid-area:icon;align-self:center}.actions{grid-area:action}.details{grid-area:details;display:flex;flex-direction:column;overflow-x:hidden}.filename{grid-area:filename;font-size:var(--goa-font-size-4);overflow-wrap:anywhere}.error-msg{display:flex;align-items:flex-start;margin-top:0.5rem;gap:var(--goa-space-2xs);color:var(--goa-color-interactive-error);font:var(--goa-typography-body-xs)}.timestamp,.filesize{color:var(--goa-color-greyscale-700);font:var(--goa-typography-body-s)}.progress{display:flex;align-items:center;font:var(--goa-typography-body-xs);gap:0.5rem}progress{flex:1 1 auto;-webkit-appearance:none;appearance:none;height:4px;border:none;border-radius:var(--goa-border-radius-m);background:var(--goa-color-greyscale-200);color:var(--goa-color-greyscale-700)}progress::-webkit-progress-value{background:var(--goa-color-interactive-default)}progress::-webkit-progress-bar{background:var(--goa-color-greyscale-200)}progress::-moz-progress-bar{background:var(--goa-color-interactive-default)}`;this.shadowRoot.appendChild(style);init(this,{target:this.shadowRoot,props:attribute_to_object(this.attributes),customElement:true},instance$3,create_fragment$3,safe_not_equal,{filename:0,size:1,type:8,progress:2,error:3},null);if(options){if(options.target){insert(options.target,this,options.anchor);}if(options.props){this.$set(options.props);flush();}}}static get observedAttributes(){return ["filename","size","type","progress","error"];}get filename(){return this.$$.ctx[0];}set filename(filename){this.$$set({filename});flush();}get size(){return this.$$.ctx[1];}set size(size){this.$$set({size});flush();}get type(){return this.$$.ctx[8];}set type(type){this.$$set({type});flush();}get progress(){return this.$$.ctx[2];}set progress(progress){this.$$set({progress});flush();}get error(){return this.$$.ctx[3];}set error(error){this.$$set({error});flush();}}customElements.define("goa-file-upload-card",FileUploadCard);/* libs/web-components/src/components/app-header-menu/AppHeaderMenu.svelte generated by Svelte v3.58.0 */const{window:window_1}=globals;function create_else_block$1(ctx){let button;let t0;let span;let t1;let t2;let goa_spacer;let t3;let goa_icon;let goa_icon_type_value;let t4;let if_block1_anchor;let mounted;let dispose;let if_block0=/*leadingicon*/ctx[1]&&create_if_block_3(ctx);let if_block1=/*_open*/ctx[8]&&create_if_block_2(ctx);return {c(){button=element("button");if(if_block0)if_block0.c();t0=space();span=element("span");t1=text(/*heading*/ctx[0]);t2=space();goa_spacer=element("goa-spacer");t3=space();goa_icon=element("goa-icon");t4=space();if(if_block1)if_block1.c();if_block1_anchor=empty();attr(span,"class","heading");set_custom_element_data(goa_spacer,"hspacing","fill");set_custom_element_data(goa_icon,"type",goa_icon_type_value=/*_open*/ctx[8]?"chevron-up":"chevron-down");set_custom_element_data(goa_icon,"mt","1");attr(button,"class",/*type*/ctx[2]);toggle_class(button,"open",/*_open*/ctx[8]);},m(target,anchor){insert(target,button,anchor);if(if_block0)if_block0.m(button,null);append(button,t0);append(button,span);append(span,t1);append(button,t2);append(button,goa_spacer);append(button,t3);append(button,goa_icon);insert(target,t4,anchor);if(if_block1)if_block1.m(target,anchor);insert(target,if_block1_anchor,anchor);if(!mounted){dispose=listen(button,"click",/*toggleMenu*/ctx[9]);mounted=true;}},p(ctx,dirty){if(/*leadingicon*/ctx[1]){if(if_block0){if_block0.p(ctx,dirty);}else {if_block0=create_if_block_3(ctx);if_block0.c();if_block0.m(button,t0);}}else if(if_block0){if_block0.d(1);if_block0=null;}if(dirty&/*heading*/1)set_data(t1,/*heading*/ctx[0]);if(dirty&/*_open*/256&&goa_icon_type_value!==(goa_icon_type_value=/*_open*/ctx[8]?"chevron-up":"chevron-down")){set_custom_element_data(goa_icon,"type",goa_icon_type_value);}if(dirty&/*type*/4){attr(button,"class",/*type*/ctx[2]);}if(dirty&/*type, _open*/260){toggle_class(button,"open",/*_open*/ctx[8]);}if(/*_open*/ctx[8]){if(if_block1){if_block1.p(ctx,dirty);}else {if_block1=create_if_block_2(ctx);if_block1.c();if_block1.m(if_block1_anchor.parentNode,if_block1_anchor);}}else if(if_block1){if_block1.d(1);if_block1=null;}},d(detaching){if(detaching)detach(button);if(if_block0)if_block0.d();if(detaching)detach(t4);if(if_block1)if_block1.d(detaching);if(detaching)detach(if_block1_anchor);mounted=false;dispose();}};}// (78:0) {#if _desktop}
553
553
  function create_if_block$1(ctx){let goa_popover;let button;let t0;let t1;let t2;let goa_icon;let goa_icon_type_value;let t3;let div;let if_block=/*leadingicon*/ctx[1]&&create_if_block_1(ctx);return {c(){goa_popover=element("goa-popover");button=element("button");if(if_block)if_block.c();t0=space();t1=text(/*heading*/ctx[0]);t2=space();goa_icon=element("goa-icon");t3=space();div=element("div");div.innerHTML=`<slot></slot>`;set_custom_element_data(goa_icon,"type",goa_icon_type_value=/*_open*/ctx[8]?"chevron-up":"chevron-down");set_custom_element_data(goa_icon,"mt","1");attr(button,"slot","target");set_style(button,"padding","0 0.75rem");attr(button,"class",/*type*/ctx[2]);toggle_class(button,"current",/*_hasCurrentLink*/ctx[7]);attr(div,"class","desktop");set_custom_element_data(goa_popover,"context","app-header-menu");set_custom_element_data(goa_popover,"focusborderwidth","0");set_custom_element_data(goa_popover,"borderradius","0");set_custom_element_data(goa_popover,"padded","false");set_custom_element_data(goa_popover,"tabindex","-1");set_custom_element_data(goa_popover,"width","16rem");set_custom_element_data(goa_popover,"position","below");},m(target,anchor){insert(target,goa_popover,anchor);append(goa_popover,button);if(if_block)if_block.m(button,null);append(button,t0);append(button,t1);append(button,t2);append(button,goa_icon);append(goa_popover,t3);append(goa_popover,div);/*div_binding*/ctx[11](div);/*goa_popover_binding*/ctx[12](goa_popover);},p(ctx,dirty){if(/*leadingicon*/ctx[1]){if(if_block){if_block.p(ctx,dirty);}else {if_block=create_if_block_1(ctx);if_block.c();if_block.m(button,t0);}}else if(if_block){if_block.d(1);if_block=null;}if(dirty&/*heading*/1)set_data(t1,/*heading*/ctx[0]);if(dirty&/*_open*/256&&goa_icon_type_value!==(goa_icon_type_value=/*_open*/ctx[8]?"chevron-up":"chevron-down")){set_custom_element_data(goa_icon,"type",goa_icon_type_value);}if(dirty&/*type*/4){attr(button,"class",/*type*/ctx[2]);}if(dirty&/*type, _hasCurrentLink*/132){toggle_class(button,"current",/*_hasCurrentLink*/ctx[7]);}},d(detaching){if(detaching)detach(goa_popover);if(if_block)if_block.d();/*div_binding*/ctx[11](null);/*goa_popover_binding*/ctx[12](null);}};}// (112:4) {#if leadingicon}
554
554
  function create_if_block_3(ctx){let goa_icon;return {c(){goa_icon=element("goa-icon");set_custom_element_data(goa_icon,"type",/*leadingicon*/ctx[1]);set_custom_element_data(goa_icon,"mt","1");},m(target,anchor){insert(target,goa_icon,anchor);},p(ctx,dirty){if(dirty&/*leadingicon*/2){set_custom_element_data(goa_icon,"type",/*leadingicon*/ctx[1]);}},d(detaching){if(detaching)detach(goa_icon);}};}// (119:2) {#if _open}
555
555
  function create_if_block_2(ctx){let div;return {c(){div=element("div");div.innerHTML=`<slot></slot>`;attr(div,"class","not-desktop");},m(target,anchor){insert(target,div,anchor);/*div_binding_1*/ctx[13](div);},p:noop,d(detaching){if(detaching)detach(div);/*div_binding_1*/ctx[13](null);}};}// (95:6) {#if leadingicon}
@@ -1599,7 +1599,9 @@
1599
1599
  return;
1600
1600
  }
1601
1601
 
1602
- onChange(name, dateFns.parseISO(value));
1602
+ if (dateFns.isValid(new Date(value))) {
1603
+ onChange(name, dateFns.parseISO(value));
1604
+ }
1603
1605
  };
1604
1606
  };
1605
1607