@xplortech/apollo-core 1.0.0-beta.2 → 1.0.0-beta.4

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.
Files changed (73) hide show
  1. package/build/style.css +18 -11
  2. package/dist/apollo-core/apollo-core.css +2 -2
  3. package/dist/apollo-core/apollo-core.esm.js +1 -1
  4. package/dist/apollo-core/p-13e7d3ea.entry.js +1 -0
  5. package/dist/apollo-core/{p-b2327e2c.entry.js → p-2ce2fe5c.entry.js} +1 -1
  6. package/dist/apollo-core/{p-09b2f746.entry.js → p-3ff1ff38.entry.js} +1 -1
  7. package/dist/apollo-core/{p-4e2b69e8.entry.js → p-63dd9a65.entry.js} +1 -1
  8. package/dist/apollo-core/{p-8e47a5be.entry.js → p-6c3c1e3d.entry.js} +1 -1
  9. package/dist/apollo-core/p-81a6ce4c.entry.js +1 -0
  10. package/dist/apollo-core/p-918b0731.entry.js +1 -0
  11. package/dist/apollo-core/{p-93c27db5.entry.js → p-97bdb450.entry.js} +1 -1
  12. package/dist/apollo-core/{p-93958292.entry.js → p-a43e2d1f.entry.js} +1 -1
  13. package/dist/apollo-core/{p-e369d7af.entry.js → p-a7cc4114.entry.js} +1 -1
  14. package/dist/apollo-core/{p-c55b5d9c.entry.js → p-b6d1b135.entry.js} +1 -1
  15. package/dist/apollo-core/{p-e60ecaef.entry.js → p-bc0ebed2.entry.js} +1 -1
  16. package/dist/apollo-core/{p-25983fde.entry.js → p-c8af4ed6.entry.js} +1 -1
  17. package/dist/apollo-core/p-d4aa2fa9.js +1 -0
  18. package/dist/apollo-core/{p-4a348764.entry.js → p-d4e5d3aa.entry.js} +1 -1
  19. package/dist/apollo-core/{p-20389bb6.entry.js → p-dad11011.entry.js} +1 -1
  20. package/dist/apollo-core/{p-880c0359.entry.js → p-db74c99c.entry.js} +1 -1
  21. package/dist/cjs/apollo-core.cjs.js +2 -2
  22. package/dist/cjs/{index-54ba5804.js → index-acf3dd7a.js} +3 -0
  23. package/dist/cjs/loader.cjs.js +2 -2
  24. package/dist/cjs/xpl-application-shell.cjs.entry.js +1 -1
  25. package/dist/cjs/xpl-avatar_12.cjs.entry.js +24 -1
  26. package/dist/cjs/xpl-backdrop.cjs.entry.js +1 -1
  27. package/dist/cjs/xpl-button-row.cjs.entry.js +1 -1
  28. package/dist/cjs/xpl-choicelist.cjs.entry.js +1 -1
  29. package/dist/cjs/xpl-divider.cjs.entry.js +1 -1
  30. package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +1 -1
  31. package/dist/cjs/xpl-dropdown_2.cjs.entry.js +1 -1
  32. package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -1
  33. package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
  34. package/dist/cjs/xpl-input.cjs.entry.js +1 -1
  35. package/dist/cjs/xpl-list.cjs.entry.js +1 -1
  36. package/dist/cjs/xpl-main-nav.cjs.entry.js +1 -1
  37. package/dist/cjs/xpl-pagination.cjs.entry.js +1 -1
  38. package/dist/cjs/xpl-select.cjs.entry.js +1 -1
  39. package/dist/cjs/xpl-toggle.cjs.entry.js +1 -1
  40. package/dist/collection/components/xpl-button/xpl-button.js +41 -1
  41. package/dist/custom-elements/index.js +24 -1
  42. package/dist/esm/apollo-core.js +2 -2
  43. package/dist/esm/{index-3df6db84.js → index-e3c4bb97.js} +3 -0
  44. package/dist/esm/loader.js +2 -2
  45. package/dist/esm/xpl-application-shell.entry.js +1 -1
  46. package/dist/esm/xpl-avatar_12.entry.js +24 -1
  47. package/dist/esm/xpl-backdrop.entry.js +1 -1
  48. package/dist/esm/xpl-button-row.entry.js +1 -1
  49. package/dist/esm/xpl-choicelist.entry.js +1 -1
  50. package/dist/esm/xpl-divider.entry.js +1 -1
  51. package/dist/esm/xpl-dropdown-group_3.entry.js +1 -1
  52. package/dist/esm/xpl-dropdown_2.entry.js +1 -1
  53. package/dist/esm/xpl-grid-item.entry.js +1 -1
  54. package/dist/esm/xpl-grid.entry.js +1 -1
  55. package/dist/esm/xpl-input.entry.js +1 -1
  56. package/dist/esm/xpl-list.entry.js +1 -1
  57. package/dist/esm/xpl-main-nav.entry.js +1 -1
  58. package/dist/esm/xpl-pagination.entry.js +1 -1
  59. package/dist/esm/xpl-select.entry.js +1 -1
  60. package/dist/esm/xpl-toggle.entry.js +1 -1
  61. package/dist/stories/button.stories.js +17 -5
  62. package/dist/types/Users/fernandogelin/Projects/apollo-admin/packages/apollo/.stencil/stories/button.stories.d.ts +10 -2
  63. package/dist/types/components/xpl-button/xpl-button.d.ts +6 -0
  64. package/dist/types/components/xpl-choicelist/choice.d.ts +6 -0
  65. package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +12 -0
  66. package/dist/types/components/xpl-list/listitem.d.ts +20 -0
  67. package/dist/types/components/xpl-select/selectchoice.d.ts +3 -0
  68. package/dist/types/components.d.ts +8 -0
  69. package/package.json +1 -1
  70. package/dist/apollo-core/p-1b1e7207.entry.js +0 -1
  71. package/dist/apollo-core/p-84bf6b2d.entry.js +0 -1
  72. package/dist/apollo-core/p-c3a12469.entry.js +0 -1
  73. package/dist/apollo-core/p-f929c958.js +0 -1
@@ -30,6 +30,11 @@ declare const _default: {
30
30
  type: string;
31
31
  };
32
32
  };
33
+ fullWidth: {
34
+ control: {
35
+ type: string;
36
+ };
37
+ };
33
38
  icon: {
34
39
  options: string[];
35
40
  control: {
@@ -45,10 +50,11 @@ declare const _default: {
45
50
  };
46
51
  export default _default;
47
52
  export declare const Button: {
48
- ({ variant, size, disabled, state, text, icon, link, }: {
53
+ ({ variant, size, disabled, fullWidth, state, text, icon, link, }: {
49
54
  variant: any;
50
55
  size: any;
51
56
  disabled: any;
57
+ fullWidth: any;
52
58
  state: any;
53
59
  text: any;
54
60
  icon: any;
@@ -60,7 +66,7 @@ export declare const Button: {
60
66
  render: any;
61
67
  };
62
68
  html: {
63
- render: ({ variant, size, state, disabled, text, icon, link }: {
69
+ render: ({ variant, size, state, disabled, text, icon, link, fullWidth, }: {
64
70
  variant: any;
65
71
  size: any;
66
72
  state: any;
@@ -68,6 +74,7 @@ export declare const Button: {
68
74
  text: any;
69
75
  icon: any;
70
76
  link: any;
77
+ fullWidth: any;
71
78
  }) => string;
72
79
  };
73
80
  };
@@ -79,5 +86,6 @@ export declare const Button: {
79
86
  state: string;
80
87
  text: string;
81
88
  icon: string;
89
+ fullWidth: boolean;
82
90
  };
83
91
  };
@@ -1,4 +1,5 @@
1
1
  export declare class XplButton {
2
+ el: HTMLXplButtonElement;
2
3
  /**
3
4
  * whether button should be disabled
4
5
  */
@@ -11,6 +12,10 @@ export declare class XplButton {
11
12
  * whether button should render icon only
12
13
  */
13
14
  iconOnly?: boolean;
15
+ /**
16
+ * whether button should render with full width
17
+ */
18
+ fullWidth?: boolean;
14
19
  /**
15
20
  * @property {string} - button name attribute
16
21
  */
@@ -35,5 +40,6 @@ export declare class XplButton {
35
40
  * @property {"neutral" | "warning" | "success"} - button state (color) neutral=purple, success=green, warning=red
36
41
  */
37
42
  state: 'neutral' | 'warning' | 'success';
43
+ componentDidRender(): void;
38
44
  render(): any;
39
45
  }
@@ -0,0 +1,6 @@
1
+ interface Choice {
2
+ checked?: boolean;
3
+ children?: Choice[];
4
+ description?: string;
5
+ label?: string;
6
+ }
@@ -0,0 +1,12 @@
1
+ interface DropdownOption {
2
+ label: string;
3
+ isSelected?: boolean;
4
+ isDisabled?: boolean;
5
+ }
6
+
7
+ type DropdownItem = Partial<DropdownOption & DropdownOptionGroup>;
8
+
9
+ interface DropdownOptionGroup {
10
+ groupName: string;
11
+ options: DropdownItem[];
12
+ }
@@ -0,0 +1,20 @@
1
+ interface ListItem {
2
+ avatar?: string;
3
+ avatars?: string[];
4
+ badges?:
5
+ | string[]
6
+ | {
7
+ dot?: boolean;
8
+ text: string;
9
+ variant?: string;
10
+ }[];
11
+ href?: string;
12
+ title: string;
13
+ metadata?:
14
+ | string[]
15
+ | {
16
+ icon: string;
17
+ text: string;
18
+ }[];
19
+ subtext?: string;
20
+ }
@@ -0,0 +1,3 @@
1
+ interface SelectChoice extends DropdownItem {
2
+ value?: string;
3
+ }
@@ -49,6 +49,10 @@ export namespace Components {
49
49
  * whether button should be disabled
50
50
  */
51
51
  "disabled"?: boolean;
52
+ /**
53
+ * whether button should render with full width
54
+ */
55
+ "fullWidth"?: boolean;
52
56
  /**
53
57
  * whether button should render icon only
54
58
  */
@@ -637,6 +641,10 @@ declare namespace LocalJSX {
637
641
  * whether button should be disabled
638
642
  */
639
643
  "disabled"?: boolean;
644
+ /**
645
+ * whether button should render with full width
646
+ */
647
+ "fullWidth"?: boolean;
640
648
  /**
641
649
  * whether button should render icon only
642
650
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xplortech/apollo-core",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.4",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/custom-elements/index.js",
6
6
  "types": "dist/custom-elements/index.d.ts",
@@ -1 +0,0 @@
1
- import{r,h as s,H as a}from"./p-f929c958.js";const t=class{constructor(s){r(this,s),this.relative=!1}render(){return s(a,{class:{"xpl-backdrop":!0,"xpl-backdrop--fixed":!this.relative,"xpl-backdrop--relative":this.relative},"aria-hidden":"true"})}};export{t as xpl_backdrop}
@@ -1 +0,0 @@
1
- import{r as t,h as l,H as a,F as s}from"./p-f929c958.js";import"./p-2f90296c.js";const i=({avatar:t,avatars:a,badges:i,href:r,title:e,subtext:p,metadata:n})=>{const c=a||i||p,x=l(s,null,t&&("/"===t.slice(0,1)||"http"===t.slice(0,4)?l("xpl-avatar",{src:t,name:e}):l("xpl-avatar",{name:e},t)),l("div",{class:"xpl-list-item-content"},l("div",{class:"xpl-list-left"},l("div",null,l("h4",null,e),n&&l("ul",{class:"xpl-list-item-metadata"},n.map((t=>"string"==typeof t?l("li",null,t):l("li",null,l("span",{class:`far fa-${t.icon}`})," ",t.text)))))),c&&l("div",{class:"xpl-list-right"},p&&l("div",{class:"xpl-list-item-subtext"},p),a&&l("div",{class:"xpl-avatar-group xpl-avatar-group--s"},a.map((t=>l("img",{src:t,alt:""})))),i&&i.map((t=>"string"==typeof t?l("xpl-badge",null,t):l("xpl-badge",{dot:t.dot,variant:t.variant},t.text))))));return r?l("a",{class:"xpl-list-item",href:r},x):l("div",{class:"xpl-list-item"},x)},r=class{constructor(l){t(this,l),this.items=[]}render(){return l(a,null,this.items.map((t=>l(i,Object.assign({},t)))))}};export{r as xpl_list}
@@ -1 +0,0 @@
1
- import{r as t,h as s,H as l,c as i}from"./p-f929c958.js";import{v as e}from"./p-ad90fe4d.js";const a=class{constructor(s){t(this,s),this.disabled=!1}render(){let t="xpl-avatar";this.size&&(t+=` xpl-avatar--${this.size}`),this.color&&(t+=` xpl-avatar--${this.color}`);const i=s("div",null,this.src?s("img",{alt:this.name,src:this.src}):s("div",{class:"xpl-avatar__placeholder"},s("slot",null)),this.status&&s("div",{class:`xpl-avatar__dot--${this.status}`}));return s(l,null,this.href&&!this.disabled?s("a",{href:this.href,class:t,target:this.target},i):s("div",this.href&&this.disabled?{class:t+" xpl-avatar--disabled"}:{class:t},i))}},r=class{constructor(s){t(this,s)}render(){let t="xpl-badge";return this.dot&&(t+=" xpl-badge--dot"),this.variant&&(t+=" xpl-badge--"+this.variant),s(l,null,s("div",{class:t},s("slot",null)))}},n=class{constructor(s){t(this,s),this.chevron='<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">\n <path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path>\n </svg>\n '}render(){return s(l,{class:"xpl-breadcrumb-item",role:"listitem"},s("li",{role:"none"},s("slot",null)),s("span",{innerHTML:`${this.chevron}`}))}},h=class{constructor(s){t(this,s)}render(){return s(l,null,s("nav",{class:"xpl-breadcrumbs","aria-label":"Breadcrumb"},s("ol",{role:"list"},s("slot",null))))}},c=class{constructor(s){t(this,s),this.size="default",this.variant="primary",this.state="neutral"}render(){let t=`xpl-button\n xpl-button--${this.size}\n xpl-button--${this.state}\n xpl-button--${this.variant}`;return this.iconOnly&&(t+=" xpl-button--icon-only"),this.link&&this.disabled&&(t+=" xpl-button--link-disabled"),s(l,{class:t},this.link?s("slot",null):s("button",{disabled:this.disabled,name:this.name,type:this.type,value:this.value},s("slot",null)))}},o=class{constructor(s){t(this,s),this.checkboxChange=i(this,"checkboxChange",7),this.id=e()}render(){return s(l,{class:{"xpl-checkbox-radio-container":!0,styled:this.styled,disabled:this.disabled}},s("input",{class:"xpl-checkbox",type:"checkbox",checked:this.checked,disabled:this.disabled,id:this.id,indeterminate:this.indeterminate,onChange:()=>this.checkboxChange.emit(this.input.checked),name:this.name,ref:t=>this.input=t,required:this.required,value:this.value}),s("label",{class:{"xpl-label":!0,"xpl-label--disabled":this.disabled},htmlFor:this.id},s("slot",null),this.description&&s("small",{class:{"xpl-description":!0,"xpl-description--disabled":this.disabled}},this.description)))}},d=class{constructor(s){t(this,s),this.size="wide"}render(){return s(l,null,s("main",{class:`xpl-content-area-wrapper xpl-content-area-wrapper__${this.size}`},s("div",{class:"xpl-content-area"},s("slot",null))))}},p=class{constructor(s){t(this,s),this.navOpen=i(this,"navOpen",7),this.navControl=!1}onNavToggle(){window.innerWidth<=640&&this.navOpen.emit(!1)}render(){return s(l,{class:"xpl-nav-item",role:"listitem",onClick:()=>{this.navControl&&this.onNavToggle()}},s("slot",{name:"link"},s("slot",{name:"icon"}),s("slot",null)))}},u=class{constructor(s){t(this,s),this.radioChange=i(this,"radioChange",7),this.id=e()}render(){return s(l,{class:{"xpl-checkbox-radio-container":!0,styled:this.styled,disabled:this.disabled}},s("input",{class:"xpl-radio",type:"radio",checked:this.checked,disabled:this.disabled,id:this.id,name:this.name,required:this.required,value:this.value,onChange:()=>this.radioChange.emit(!0)}),s("label",{class:{"xpl-label":!0,"xpl-label--disabled":this.disabled},htmlFor:this.id},s("slot",null),this.description&&s("small",{class:{"xpl-description":!0,"xpl-description--disabled":this.disabled}},this.description)))}},b=class{constructor(s){t(this,s)}render(){return s(l,{class:"xpl-secondary-nav"},s("nav",{"aria-label":"Secondary Nav"},s("slot",null)))}},x=class{constructor(s){t(this,s),this.tableSelect=i(this,"tableSelect",7),this.areAllSelected=!1,this.hasScrolled=!1,this.selectAll=t=>{const{target:s}=t;if(!(s instanceof HTMLInputElement))return;const{checked:l}=s;this.areAllSelected=l,this.selected=this.selected.map((()=>l)),this.onChange()},this.selectOne=(t,s)=>{const{target:l}=t;if(!(l instanceof HTMLInputElement))return;const{checked:i}=l;this.areAllSelected=!1,this.selected=this.selected.map(((t,l)=>l===s?i:t)),this.onChange()},this.onChange=()=>{this.tableSelect.emit({selected:this.selected,areAllSelected:this.areAllSelected})},this.onScroll=()=>{this.hasScrolled=this.container.scrollLeft>0},this.sortBy=(t,s=!0)=>{this.rowData.sort(((l,i)=>{const e=l[t],a=i[t];if("number"==typeof e&&"number"==typeof a){const t=s?1:-1;return e>a?t:-t}return-1})),this.rowData=Array.from(this.rowData),this.render()}}componentWillLoad(){this.areAllSelected=!1,this.rowData=void 0!==this.data?Array.from(this.data):[],this.selected=new Array(this.rowData.length).fill(!1)}render(){let t="xpl-table";return this.striped&&(t+=" xpl-table--striped"),this.freeze&&(t+=" xpl-table--freeze"),this.hasScrolled&&(t+=" xpl-table--has-scrolled"),s(l,null,s("div",{class:"xpl-table-container",onScroll:this.onScroll,ref:t=>this.container=t},s("table",{class:t},this.columns&&s("thead",null,this.columns.map(((t,l)=>s("th",null,this.multiselect&&0===l?s("label",{htmlFor:"__xpl-table-th"},s("input",{checked:this.areAllSelected,id:"__xpl-table-th",indeterminate:!this.areAllSelected&&this.selected.some((t=>t)),onChange:t=>{this.selectAll(t)},type:"checkbox"}),t):t)))),s("tbody",null,this.rowData.map(((t,l)=>s("tr",{class:this.selected&&this.selected[l]?"xpl-table-row-selected":""},t.map(((t,i)=>s("td",null,this.multiselect&&0===i?s("label",{htmlFor:"__xpl-table-row-"+l},s("input",{id:"__xpl-table-row-"+l,checked:this.selected[l],type:"checkbox",onChange:t=>this.selectOne(t,l)}),s("div",{innerHTML:t})):s("div",{innerHTML:t})))))))))))}},v=class{constructor(s){t(this,s),this.navOpen=i(this,"navOpen",7),this.open=!0,this.bars='\n <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="bars" class="svg-inline--fa fa-bars fa-w-14 xpl-utility-nav__bars" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"></path></svg>\n '}onNavToggle(){this.open=!this.open,this.navOpen.emit(this.open)}render(){return s(l,null,s("nav",{"aria-label":"utility navigation bar",class:"xpl-utility-bar"},this.navControl?s("div",null,s("button",{class:"xpl-utility-bar__nav-control",onClick:()=>this.onNavToggle(),innerHTML:`${this.bars}`}),s("slot",{name:"aside"})):s("slot",{name:"aside"}),s("slot",{name:"main"})))}};export{a as xpl_avatar,r as xpl_badge,n as xpl_breadcrumb_item,h as xpl_breadcrumbs,c as xpl_button,o as xpl_checkbox,d as xpl_content_area,p as xpl_nav_item,u as xpl_radio,b as xpl_secondary_nav,x as xpl_table,v as xpl_utility_bar}
@@ -1 +0,0 @@
1
- let e,t,l=!1,n=!1,o=!1,s=!1,i=!1;const r="undefined"!=typeof window?window:{},c=r.document||{head:{}},f={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,l,n)=>e.addEventListener(t,l,n),rel:(e,t,l,n)=>e.removeEventListener(t,l,n),ce:(e,t)=>new CustomEvent(e,t)},a=e=>Promise.resolve(e),u=(e,t,l)=>{l&&l.map((([l,n,o])=>{const s=$(e,l),i=d(t,o),r=b(l);f.ael(s,n,i,r),(t.o=t.o||[]).push((()=>f.rel(s,n,i,r)))}))},d=(e,t)=>l=>{try{256&e.t?e.i[t](l):(e.u=e.u||[]).push([t,l])}catch(e){ae(e)}},$=(e,t)=>8&t?r:e,b=e=>0!=(2&e),p="http://www.w3.org/1999/xlink",h={},m=e=>"object"==(e=typeof e)||"function"===e,y=(e,t,...l)=>{let n=null,o=null,s=null,i=!1,r=!1,c=[];const f=t=>{for(let l=0;l<t.length;l++)n=t[l],Array.isArray(n)?f(n):null!=n&&"boolean"!=typeof n&&((i="function"!=typeof e&&!m(n))&&(n+=""),i&&r?c[c.length-1].$+=n:c.push(i?w(null,n):n),r=i)};if(f(l),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,v);const a=w(e,null);return a.p=t,c.length>0&&(a.h=c),a.m=o,a.g=s,a},w=(e,t)=>({t:0,v:e,$:t,k:null,h:null,p:null,m:null,g:null}),g={},v={forEach:(e,t)=>e.map(k).forEach(t),map:(e,t)=>e.map(k).map(t).map(j)},k=e=>({vattrs:e.p,vchildren:e.h,vkey:e.m,vname:e.g,vtag:e.v,vtext:e.$}),j=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),y(e.vtag,t,...e.vchildren||[])}const t=w(e.vtag,e.vtext);return t.p=e.vattrs,t.h=e.vchildren,t.m=e.vkey,t.g=e.vname,t},O=(e,t,l,n,o,s)=>{if(l!==n){let i=fe(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=M(l),s=M(n);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in l)n&&null!=n[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in n)l&&n[t]===l[t]||(t.includes("-")?e.style.setProperty(t,n[t]):e.style[t]=n[t])}else if("key"===t);else if("ref"===t)n&&n(e);else if(i||"o"!==t[0]||"n"!==t[1]){const r=m(n);if((i||r&&null!==n)&&!o)try{if(e.tagName.includes("-"))e[t]=n;else{let o=null==n?"":n;"list"===t?i=!1:null!=l&&e[t]==o||(e[t]=o)}}catch(e){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,f=!0),null==n||!1===n?!1===n&&""!==e.getAttribute(t)||(f?e.removeAttributeNS(p,t):e.removeAttribute(t)):(!i||4&s||o)&&!r&&(n=!0===n?"":n,f?e.setAttributeNS(p,t,n):e.setAttribute(t,n))}else t="-"===t[2]?t.slice(3):fe(r,c)?c.slice(2):c[2]+t.slice(3),l&&f.rel(e,t,l,!1),n&&f.ael(e,t,n,!1)}},x=/\s/,M=e=>e?e.split(x):[],C=(e,t,l,n)=>{const o=11===t.k.nodeType&&t.k.host?t.k.host:t.k,s=e&&e.p||h,i=t.p||h;for(n in s)n in i||O(o,n,s[n],void 0,l,t.t);for(n in i)O(o,n,s[n],i[n],l,t.t)},P=(n,i,r)=>{let f,a,u,d=i.h[r],$=0;if(l||(o=!0,"slot"===d.v&&(d.t|=d.h?2:1)),null!==d.$)f=d.k=c.createTextNode(d.$);else if(1&d.t)f=d.k=c.createTextNode("");else{if(s||(s="svg"===d.v),f=d.k=c.createElementNS(s?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&d.t?"slot-fb":d.v),s&&"foreignObject"===d.v&&(s=!1),C(null,d,s),d.h)for($=0;$<d.h.length;++$)a=P(n,d,$),a&&f.appendChild(a);"svg"===d.v?s=!1:"foreignObject"===f.tagName&&(s=!0)}return f["s-hn"]=t,3&d.t&&(f["s-sr"]=!0,f["s-cr"]=e,f["s-sn"]=d.g||"",u=n&&n.h&&n.h[r],u&&u.v===d.v&&n.k&&R(n.k,!1)),f},R=(e,l)=>{f.t|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const s=n[e];s["s-hn"]!==t&&s["s-ol"]&&(U(s).insertBefore(s,F(s)),s["s-ol"].remove(),s["s-ol"]=void 0,o=!0),l&&R(s,l)}f.t&=-2},T=(e,t,l,n,o,s)=>{let i,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(;o<=s;++o)n[o]&&(i=P(null,l,o),i&&(n[o].k=i,r.insertBefore(i,F(t))))},E=(e,t,l,o,s)=>{for(;t<=l;++t)(o=e[t])&&(s=o.k,q(o),n=!0,s["s-ol"]?s["s-ol"].remove():R(s,!0),s.remove())},L=(e,t)=>e.v===t.v&&("slot"===e.v?e.g===t.g:e.m===t.m),F=e=>e&&e["s-ol"]||e,U=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,A=(e,t)=>{const l=t.k=e.k,n=e.h,o=t.h,i=t.v,r=t.$;let c;null===r?(s="svg"===i||"foreignObject"!==i&&s,"slot"===i||C(e,t,s),null!==n&&null!==o?((e,t,l,n)=>{let o,s,i=0,r=0,c=0,f=0,a=t.length-1,u=t[0],d=t[a],$=n.length-1,b=n[0],p=n[$];for(;i<=a&&r<=$;)if(null==u)u=t[++i];else if(null==d)d=t[--a];else if(null==b)b=n[++r];else if(null==p)p=n[--$];else if(L(u,b))A(u,b),u=t[++i],b=n[++r];else if(L(d,p))A(d,p),d=t[--a],p=n[--$];else if(L(u,p))"slot"!==u.v&&"slot"!==p.v||R(u.k.parentNode,!1),A(u,p),e.insertBefore(u.k,d.k.nextSibling),u=t[++i],p=n[--$];else if(L(d,b))"slot"!==u.v&&"slot"!==p.v||R(d.k.parentNode,!1),A(d,b),e.insertBefore(d.k,u.k),d=t[--a],b=n[++r];else{for(c=-1,f=i;f<=a;++f)if(t[f]&&null!==t[f].m&&t[f].m===b.m){c=f;break}c>=0?(s=t[c],s.v!==b.v?o=P(t&&t[r],l,c):(A(s,b),t[c]=void 0,o=s.k),b=n[++r]):(o=P(t&&t[r],l,r),b=n[++r]),o&&U(u.k).insertBefore(o,F(u.k))}i>a?T(e,null==n[$+1]?null:n[$+1].k,l,n,r,$):r>$&&E(t,i,a)})(l,n,t,o):null!==o?(null!==e.$&&(l.textContent=""),T(l,null,t,o,0,o.length-1)):null!==n&&E(n,0,n.length-1),s&&"svg"===i&&(s=!1)):(c=l["s-cr"])?c.parentNode.textContent=r:e.$!==r&&(l.data=r)},D=e=>{let t,l,n,o,s,i,r=e.childNodes;for(l=0,n=r.length;l<n;l++)if(t=r[l],1===t.nodeType){if(t["s-sr"])for(s=t["s-sn"],t.hidden=!1,o=0;o<n;o++)if(i=r[o].nodeType,r[o]["s-hn"]!==t["s-hn"]||""!==s){if(1===i&&s===r[o].getAttribute("slot")){t.hidden=!0;break}}else if(1===i||3===i&&""!==r[o].textContent.trim()){t.hidden=!0;break}D(t)}},H=[],N=e=>{let t,l,o,s,i,r,c=0,f=e.childNodes,a=f.length;for(;c<a;c++){if(t=f[c],t["s-sr"]&&(l=t["s-cr"])&&l.parentNode)for(o=l.parentNode.childNodes,s=t["s-sn"],r=o.length-1;r>=0;r--)l=o[r],l["s-cn"]||l["s-nr"]||l["s-hn"]===t["s-hn"]||(W(l,s)?(i=H.find((e=>e.j===l)),n=!0,l["s-sn"]=l["s-sn"]||s,i?i.O=t:H.push({O:t,j:l}),l["s-sr"]&&H.map((e=>{W(e.j,l["s-sn"])&&(i=H.find((e=>e.j===l)),i&&!e.O&&(e.O=i.O))}))):H.some((e=>e.j===l))||H.push({j:l}));1===t.nodeType&&N(t)}},W=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,q=e=>{e.p&&e.p.ref&&e.p.ref(null),e.h&&e.h.map(q)},V=e=>ie(e).M,_=(e,t,l)=>{const n=V(e);return{emit:e=>z(n,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},z=(e,t,l)=>{const n=f.ce(t,l);return e.dispatchEvent(n),n},B=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},G=(e,t)=>{if(e.t|=16,!(4&e.t))return B(e,e.P),we((()=>I(e,t)));e.t|=512},I=(e,t)=>{const l=e.i;let n;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>X(l,e,t))),e.u=null),n=X(l,"componentWillLoad")),Y(n,(()=>J(e,l)))},J=async(e,t)=>{const l=e.M,n=l["s-rc"];K(e,t),n&&(n.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>Q(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},K=(s,i)=>{try{i=i.render(),s.t&=-17,s.t|=2,((s,i)=>{const r=s.M,a=s.R,u=s.T||w(null,null),d=(e=>e&&e.v===g)(i)?i:y(null,null,i);if(t=r.tagName,a.L&&(d.p=d.p||{},a.L.map((([e,t])=>d.p[t]=r[e]))),d.v=null,d.t|=4,s.T=d,d.k=u.k=r,e=r["s-cr"],l=0!=(1&a.t),n=!1,A(u,d),f.t|=1,o){let e,t,l,n,o,s;N(d.k);let i=0;for(;i<H.length;i++)e=H[i],t=e.j,t["s-ol"]||(l=c.createTextNode(""),l["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=l,t));for(i=0;i<H.length;i++)if(e=H[i],t=e.j,e.O){for(n=e.O.parentNode,o=e.O.nextSibling,l=t["s-ol"];l=l.previousSibling;)if(s=l["s-nr"],s&&s["s-sn"]===t["s-sn"]&&n===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&n!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),n.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}n&&D(d.k),f.t&=-2,H.length=0})(s,i)}catch(e){ae(e,s.M)}return null},Q=e=>{const t=e.M,l=e.i,n=e.P;64&e.t?X(l,"componentDidUpdate"):(e.t|=64,Z(t),X(l,"componentDidLoad"),e.F(t),n||S()),e.U(t),e.C&&(e.C(),e.C=void 0),512&e.t&&ye((()=>G(e,!1))),e.t&=-517},S=()=>{Z(c.documentElement),ye((()=>z(r,"appload",{detail:{namespace:"apollo-core"}})))},X=(e,t,l)=>{if(e&&e[t])try{return e[t](l)}catch(e){ae(e)}},Y=(e,t)=>e&&e.then?e.then(t):t(),Z=e=>e.classList.add("hydrated"),ee=(e,t,l)=>{if(t.A){const n=Object.entries(t.A),o=e.prototype;if(n.map((([e,[n]])=>{31&n||2&l&&32&n?Object.defineProperty(o,e,{get(){return((e,t)=>ie(this).D.get(t))(0,e)},set(l){((e,t,l,n)=>{const o=ie(e),s=o.D.get(t),i=o.t,r=o.i;l=((e,t)=>null==e||m(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,n.A[t][0]),8&i&&void 0!==s||l===s||(o.D.set(t,l),r&&2==(18&i)&&G(o,!1))})(this,e,l,t)},configurable:!0,enumerable:!0}):1&l&&64&n&&Object.defineProperty(o,e,{value(...t){const l=ie(this);return l.H.then((()=>l.i[e](...t)))}})})),1&l){const l=new Map;o.attributeChangedCallback=function(e,t,n){f.jmp((()=>{const t=l.get(e);this.hasOwnProperty(t)&&(n=this[t],delete this[t]),this[t]=(null!==n||"boolean"!=typeof this[t])&&n}))},e.observedAttributes=n.filter((([e,t])=>15&t[0])).map((([e,n])=>{const o=n[1]||e;return l.set(o,e),512&n[0]&&t.L.push([e,o]),o}))}}return e},te=e=>{X(e,"connectedCallback")},le=e=>{const t=e["s-cr"]=c.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},ne=(e,t={})=>{const l=[],n=t.exclude||[],o=r.customElements,s=c.head,i=s.querySelector("meta[charset]"),a=c.createElement("style"),d=[];let $,b=!0;Object.assign(f,t),f.l=new URL(t.resourcesUrl||"./",c.baseURI).href,e.map((e=>e[1].map((t=>{const s={t:t[0],N:t[1],A:t[2],W:t[3]};s.A=t[2],s.W=t[3],s.L=[];const i=s.N,r=class extends HTMLElement{constructor(e){super(e),ce(e=this,s)}connectedCallback(){$&&(clearTimeout($),$=null),b?d.push(this):f.jmp((()=>(e=>{if(0==(1&f.t)){const t=ie(e),l=t.R,n=()=>{};if(1&t.t)u(e,t,l.W),te(t.i);else{t.t|=1,12&l.t&&le(e);{let l=e;for(;l=l.parentNode||l.host;)if(l["s-p"]){B(t,t.P=l);break}}l.A&&Object.entries(l.A).map((([t,[l]])=>{if(31&l&&e.hasOwnProperty(t)){const l=e[t];delete e[t],e[t]=l}})),(async(e,t,l,n,o)=>{if(0==(32&t.t)){if(t.t|=32,(o=de(l)).then){const e=()=>{};o=await o,e()}o.isProxied||(ee(o,l,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(e){ae(e)}t.t&=-9,e(),te(t.i)}const s=t.P,i=()=>G(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,l)}n()}})(this)))}disconnectedCallback(){f.jmp((()=>(()=>{if(0==(1&f.t)){const e=ie(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),X(t,"disconnectedCallback")}})()))}componentOnReady(){return ie(this).q}};s.V=e[0],n.includes(i)||o.get(i)||(l.push(i),o.define(i,ee(r,s,1)))})))),a.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",a.setAttribute("data-styles",""),s.insertBefore(a,i?i.nextSibling:s.firstChild),b=!1,d.length?d.map((e=>e.connectedCallback())):f.jmp((()=>$=setTimeout(S,30)))},oe=(e,t)=>t,se=new WeakMap,ie=e=>se.get(e),re=(e,t)=>se.set(t.i=e,t),ce=(e,t)=>{const l={t:0,M:e,R:t,D:new Map};return l.H=new Promise((e=>l.U=e)),l.q=new Promise((e=>l.F=e)),e["s-p"]=[],e["s-rc"]=[],u(e,l,t.W),se.set(e,l)},fe=(e,t)=>t in e,ae=(e,t)=>(0,console.error)(e,t),ue=new Map,de=e=>{const t=e.N.replace(/-/g,"_"),l=e.V,n=ue.get(l);return n?n[t]:import(`./${l}.entry.js`).then((e=>(ue.set(l,e),e[t])),ae)},$e=[],be=[],pe=(e,t)=>l=>{e.push(l),i||(i=!0,t&&4&f.t?ye(me):f.raf(me))},he=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){ae(e)}e.length=0},me=()=>{he($e),he(be),(i=$e.length>0)&&f.raf(me)},ye=e=>a().then(e),we=pe(be,!0);export{oe as F,g as H,ne as b,_ as c,V as g,y as h,a as p,re as r}