@gov-design-system-ce/components 4.2.8 → 4.2.9

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 (96) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -1
  2. package/dist/cjs/core.cjs.js +1 -1
  3. package/dist/cjs/gov-card.cjs.entry.js +1 -1
  4. package/dist/cjs/gov-card.cjs.entry.js.map +1 -1
  5. package/dist/cjs/gov-card.entry.cjs.js.map +1 -1
  6. package/dist/cjs/gov-control-group.cjs.entry.js +7 -3
  7. package/dist/cjs/gov-control-group.cjs.entry.js.map +1 -1
  8. package/dist/cjs/gov-control-group.entry.cjs.js.map +1 -1
  9. package/dist/cjs/gov-flex_3.cjs.entry.js +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/collection/components/gov-card/gov-card.js +1 -1
  12. package/dist/collection/components/gov-card/gov-card.js.map +1 -1
  13. package/dist/collection/components/gov-control-group/constants.js +1 -1
  14. package/dist/collection/components/gov-control-group/constants.js.map +1 -1
  15. package/dist/collection/components/gov-control-group/gov-control-group.js +28 -4
  16. package/dist/collection/components/gov-control-group/gov-control-group.js.map +1 -1
  17. package/dist/collection/pages/ControlGroup.js +94 -3
  18. package/dist/collection/pages/ControlGroup.js.map +1 -1
  19. package/dist/collection/pages/Forms.js +12 -1
  20. package/dist/collection/pages/Forms.js.map +1 -1
  21. package/dist/collection/pages/Tiles.js +3 -3
  22. package/dist/collection/pages/Tiles.js.map +1 -1
  23. package/dist/components/gov-accordion-item.js +1 -1
  24. package/dist/components/gov-attachments-item.js +1 -1
  25. package/dist/components/gov-blockquote.js +1 -1
  26. package/dist/components/gov-breadcrumbs.js +1 -1
  27. package/dist/components/gov-button.js +1 -1
  28. package/dist/components/gov-card.js +1 -1
  29. package/dist/components/gov-card.js.map +1 -1
  30. package/dist/components/gov-chip.js +1 -1
  31. package/dist/components/gov-control-group.js +1 -1
  32. package/dist/components/gov-control-group.js.map +1 -1
  33. package/dist/components/gov-dialog.js +1 -1
  34. package/dist/components/gov-form-autocomplete.js +1 -1
  35. package/dist/components/gov-form-checkbox.js +1 -1
  36. package/dist/components/gov-form-file.js +1 -1
  37. package/dist/components/gov-form-input.js +1 -1
  38. package/dist/components/gov-form-multi-select.js +1 -1
  39. package/dist/components/gov-form-range.js +1 -1
  40. package/dist/components/gov-form-select.js +1 -1
  41. package/dist/components/gov-form-switch.js +1 -1
  42. package/dist/components/gov-icon.js +1 -1
  43. package/dist/components/gov-infobar.js +1 -1
  44. package/dist/components/gov-link.js +1 -1
  45. package/dist/components/gov-loading.js +1 -1
  46. package/dist/components/gov-pagination.js +1 -1
  47. package/dist/components/gov-tabs.js +1 -1
  48. package/dist/components/gov-tag.js +1 -1
  49. package/dist/components/gov-theme-switch.js +1 -1
  50. package/dist/components/gov-tile.js +1 -1
  51. package/dist/components/gov-toast.js +1 -1
  52. package/dist/components/gov-tooltip-content.js +1 -1
  53. package/dist/components/gov-wizard-item.js +1 -1
  54. package/dist/components/{p-CSjqhysd.js → p-9COKmDO0.js} +2 -2
  55. package/dist/components/{p-WmFNIuTf.js → p-B03Rpjps.js} +2 -2
  56. package/dist/components/{p-8QWehgod.js → p-CXbpWAIF.js} +2 -2
  57. package/dist/components/{p-C4pc6Rox.js → p-Cy7Wk3yM.js} +2 -2
  58. package/dist/components/{p-Btw6IAjS.js → p-DJ1DN3ks.js} +2 -2
  59. package/dist/components/{p-BcZ7-N5H.js → p-DTn9nVrF.js} +2 -2
  60. package/dist/components/{p-BlBAryxm.js → p-Dmr81UhL.js} +2 -2
  61. package/dist/core/core.css +60 -6
  62. package/dist/core/core.esm.js +1 -1
  63. package/dist/core/gov-card.entry.esm.js.map +1 -1
  64. package/dist/core/gov-control-group.entry.esm.js.map +1 -1
  65. package/dist/core/{p-658c1d84.entry.js → p-35cd4ecd.entry.js} +2 -2
  66. package/dist/core/p-7b623100.entry.js +2 -0
  67. package/dist/core/p-7b623100.entry.js.map +1 -0
  68. package/dist/core/p-DQuL1Twl.js.map +1 -1
  69. package/dist/core/p-d8264763.entry.js +2 -0
  70. package/dist/core/p-d8264763.entry.js.map +1 -0
  71. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
  72. package/dist/esm/core.js +1 -1
  73. package/dist/esm/gov-card.entry.js +1 -1
  74. package/dist/esm/gov-card.entry.js.map +1 -1
  75. package/dist/esm/gov-control-group.entry.js +7 -3
  76. package/dist/esm/gov-control-group.entry.js.map +1 -1
  77. package/dist/esm/gov-flex_3.entry.js +1 -1
  78. package/dist/esm/loader.js +1 -1
  79. package/dist/hydrate/index.js +10 -5
  80. package/dist/hydrate/index.mjs +10 -5
  81. package/dist/types/components/gov-control-group/constants.d.ts +1 -1
  82. package/dist/types/components/gov-control-group/gov-control-group.d.ts +4 -0
  83. package/dist/types/components.d.ts +12 -2
  84. package/package.json +2 -2
  85. package/dist/core/p-e9284c2b.entry.js +0 -2
  86. package/dist/core/p-e9284c2b.entry.js.map +0 -1
  87. package/dist/core/p-f01eb407.entry.js +0 -2
  88. package/dist/core/p-f01eb407.entry.js.map +0 -1
  89. /package/dist/components/{p-CSjqhysd.js.map → p-9COKmDO0.js.map} +0 -0
  90. /package/dist/components/{p-WmFNIuTf.js.map → p-B03Rpjps.js.map} +0 -0
  91. /package/dist/components/{p-8QWehgod.js.map → p-CXbpWAIF.js.map} +0 -0
  92. /package/dist/components/{p-C4pc6Rox.js.map → p-Cy7Wk3yM.js.map} +0 -0
  93. /package/dist/components/{p-Btw6IAjS.js.map → p-DJ1DN3ks.js.map} +0 -0
  94. /package/dist/components/{p-BcZ7-N5H.js.map → p-DTn9nVrF.js.map} +0 -0
  95. /package/dist/components/{p-BlBAryxm.js.map → p-Dmr81UhL.js.map} +0 -0
  96. /package/dist/core/{p-658c1d84.entry.js.map → p-35cd4ecd.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,c as s,h as i,a}from"./index.js";import{F as o}from"./p-5itQzbON.js";import{v as n}from"./p-BKP-F1qP.js";import{S as l}from"./p-BcQO4NH2.js";import{C as r}from"./p-U40vKHrs.js";import{p as c}from"./p-CQvUntGY.js";import{g as h,p,c as g}from"./p-DfJDyRCE.js";import{c as m}from"./p-vN03FcXN.js";import{c as u}from"./p-B0hcuYXk.js";import{A as d,a as v,i as f}from"./p-CXgom82_.js";import{d as b}from"./p-8QWehgod.js";import{d as j}from"./p-C4pc6Rox.js";import{d as y}from"./p-WmFNIuTf.js";const P=c(l,["_S","_M"]);const S=c(r,["PRIMARY","NEUTRAL"]);var z;(function(t){t["BUTTON"]="button";t["SELECT"]="select"})(z||(z={}));const _={root:"gov-pagination",list:"gov-pagination__list",item:"gov-pagination__item",itemArrow:"gov-pagination__item--arrow",itemMore:"gov-pagination__item--more",itemSelect:"gov-pagination__item--select",inner:"gov-pagination__inner",arrow:"gov-pagination__arrow"};function k(t,e=1,s=10,i=10){const a=Math.ceil(t/s);if(e<1){e=1}else if(e>a){e=a}let o,n;if(a<=i){o=1;n=a}else{const t=Math.floor(i/2);const s=Math.ceil(i/2)-1;if(e<=t){o=1;n=i}else if(e+s>=a){o=a-i+1;n=a}else{o=e-t;n=e+s}}const l=(e-1)*s;const r=Math.min(l+s-1,t-1);const c=Array.from(Array(n+1-o).keys()).map((t=>o+t));return{totalItems:t,currentPage:e,pageSize:s,totalPages:a,startPage:o,endPage:n,startIndex:l,endIndex:r,pages:c}}const x=t(class t extends e{constructor(){super();this.__registerHost();this.govPage=s(this,"gov-page");this.type="button";this.current=1;this.total=0;this.size="m";this.color="primary";this.pageSize=10;this.maxPages=5;this.accessibleSelectLabel="Vybrat stranu";this.accessiblePageLabel="Strana";this.labelPrev="Přejít o stranu zpět";this.labelStart="Přejít na začátek";this.labelNext="Přejít na další stranu";this.labelEnd="Přejít na konec";this.inheritedAttributes={};this.h=h(this.host);this.pageSelectId=m("GovPageSelect");this.selectId=m("GovSelect")}validateType(t){n(z,t,_.root)}validateSize(t){n(P,t,_.root)}validateColor(t){n(S,t,_.root)}recalculate(){this.recalculatePagination(this.current)}componentDidLoad(){this.attributeObserver=new d(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(v)}componentWillLoad(){this.recalculatePagination(this.current);this.validateSize(this.size);this.validateColor(this.color);this.inheritedAttributes=f(this.host)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}recalculatePagination(t){this.pagination=k(this.total,t,this.pageSize,this.maxPages)}isActivePageClass(t,e){if(this.pagination.currentPage===e){return t+" is-active"}else{return t}}prepareLinkUrl(t){if(this.link){return String(this.link).replace("{PAGE}",String(t))}return undefined}resetSelectValue(){if(this.spreadSelectRef){this.spreadSelectRef.getRef().then((t=>{t.value="..."}))}}render(){const t=(t,e,s)=>{const a=t===-1;const o=g(this.pagination.currentPage===t?true:undefined);return i("gov-button",{href:this.prepareLinkUrl(t),color:this.color,size:this.size,type:"base",disabled:a,"on-gov-click":e=>this.onClickHandler(e,t),"aria-label":s?s:t>-1?`${this.accessiblePageLabel} ${t}`:undefined,"aria-current":o,class:_.inner,focusable:true},e)};return i(a,{class:this.h.classes(_.root),type:this.type,color:this.color,size:this.size},i("nav",Object.assign({},this.inheritedAttributes),i("ul",{class:_.list},i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.currentPage>1?1:-1,i("gov-icon",{class:_.arrow,name:"chevron-double-left",type:"components"}),this.labelStart)),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.startPage<this.pagination.currentPage?this.pagination.currentPage-1:-1,i("gov-icon",{class:_.arrow,name:"chevron-left",type:"components"}),this.labelPrev)),this.type=="select"?i("li",{class:p([_.item,_.itemSelect])},i("span",{class:_.inner},i("span",{id:this.pageSelectId,hidden:true},this.accessibleSelectLabel),i("gov-form-select",{size:this.size,color:this.color,identifier:this.selectIdentifier||this.selectId,"aria-labelledby":this.pageSelectId,"on-gov-change":this.onSelectHandler.bind(this)},u(1,this.pagination.totalPages).map((t=>i("option",{value:t,selected:this.pagination.currentPage===t},t)))))):i(o,null,this.pagination.pages.map((e=>i("li",{class:this.isActivePageClass(_.item,e)},t(e,e,"")))),this.pagination.totalPages?i("li",{class:p([_.item,_.itemMore])},i("span",{class:_.inner},i("span",{id:this.pageSelectId,hidden:true},this.accessibleSelectLabel),i("gov-form-select",{size:this.size,color:this.color,identifier:this.selectIdentifier||this.selectId,"aria-labelledby":this.pageSelectId,ref:t=>this.spreadSelectRef=t,"on-gov-change":this.onSelectHandler.bind(this)},i("option",{selected:true,hidden:true},"..."),u(1,this.pagination.totalPages).map((t=>i("option",{value:t,selected:false},t)))))):null),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.totalPages>this.pagination.currentPage?this.pagination.currentPage+1:-1,i("gov-icon",{class:_.arrow,name:"chevron-right",type:"components"}),this.labelNext)),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.totalPages>this.pagination.currentPage?this.pagination.totalPages:-1,i("gov-icon",{class:_.arrow,name:"chevron-double-right",type:"components"}),this.labelEnd)))))}onClickHandler(t,e){t.stopPropagation();this.recalculatePagination(e);this.govPage.emit({component:_.root,pagination:this.pagination})}onSelectHandler(t){t.stopPropagation();const e=t.detail.value;const s=parseInt(e);this.resetSelectValue();if(isNaN(s)===false){this.recalculatePagination(s);if(this.link){window.location.href=this.prepareLinkUrl(s)}else{this.govPage.emit({component:_.root,pagination:this.pagination})}}}get host(){return this}static get watchers(){return{type:["validateType"],size:["validateSize"],color:["validateColor"],current:["recalculate"],total:["recalculate"],pageSize:["recalculate"],maxPages:["recalculate"]}}},[256,"gov-pagination",{type:[1],current:[2],total:[2],selectIdentifier:[1,"select-identifier"],size:[1],color:[1],pageSize:[2,"page-size"],maxPages:[2,"max-pages"],link:[1],accessibleSelectLabel:[1,"accessible-select-label"],accessiblePageLabel:[1,"accessible-page-label"],labelPrev:[1,"label-prev"],labelStart:[1,"label-start"],labelNext:[1,"label-next"],labelEnd:[1,"label-end"],pagination:[32],inheritedAttributes:[32]},undefined,{type:["validateType"],size:["validateSize"],color:["validateColor"],current:["recalculate"],total:["recalculate"],pageSize:["recalculate"],maxPages:["recalculate"]}]);function C(){if(typeof customElements==="undefined"){return}const t=["gov-pagination","gov-button","gov-form-select","gov-icon"];t.forEach((t=>{switch(t){case"gov-pagination":if(!customElements.get(t)){customElements.define(t,x)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-select":if(!customElements.get(t)){j()}break;case"gov-icon":if(!customElements.get(t)){y()}break}}))}C();const A=x;const E=C;export{A as GovPagination,E as defineCustomElement};
1
+ import{p as t,H as e,c as s,h as i,a}from"./index.js";import{F as o}from"./p-5itQzbON.js";import{v as n}from"./p-BKP-F1qP.js";import{S as l}from"./p-BcQO4NH2.js";import{C as r}from"./p-U40vKHrs.js";import{p as c}from"./p-CQvUntGY.js";import{g as h,p,c as g}from"./p-DfJDyRCE.js";import{c as m}from"./p-vN03FcXN.js";import{c as u}from"./p-B0hcuYXk.js";import{A as d,a as v,i as f}from"./p-CXgom82_.js";import{d as b}from"./p-CXbpWAIF.js";import{d as y}from"./p-Cy7Wk3yM.js";import{d as j}from"./p-B03Rpjps.js";const P=c(l,["_S","_M"]);const S=c(r,["PRIMARY","NEUTRAL"]);var z;(function(t){t["BUTTON"]="button";t["SELECT"]="select"})(z||(z={}));const _={root:"gov-pagination",list:"gov-pagination__list",item:"gov-pagination__item",itemArrow:"gov-pagination__item--arrow",itemMore:"gov-pagination__item--more",itemSelect:"gov-pagination__item--select",inner:"gov-pagination__inner",arrow:"gov-pagination__arrow"};function k(t,e=1,s=10,i=10){const a=Math.ceil(t/s);if(e<1){e=1}else if(e>a){e=a}let o,n;if(a<=i){o=1;n=a}else{const t=Math.floor(i/2);const s=Math.ceil(i/2)-1;if(e<=t){o=1;n=i}else if(e+s>=a){o=a-i+1;n=a}else{o=e-t;n=e+s}}const l=(e-1)*s;const r=Math.min(l+s-1,t-1);const c=Array.from(Array(n+1-o).keys()).map((t=>o+t));return{totalItems:t,currentPage:e,pageSize:s,totalPages:a,startPage:o,endPage:n,startIndex:l,endIndex:r,pages:c}}const C=t(class t extends e{constructor(){super();this.__registerHost();this.govPage=s(this,"gov-page");this.type="button";this.current=1;this.total=0;this.size="m";this.color="primary";this.pageSize=10;this.maxPages=5;this.accessibleSelectLabel="Vybrat stranu";this.accessiblePageLabel="Strana";this.labelPrev="Přejít o stranu zpět";this.labelStart="Přejít na začátek";this.labelNext="Přejít na další stranu";this.labelEnd="Přejít na konec";this.inheritedAttributes={};this.h=h(this.host);this.pageSelectId=m("GovPageSelect");this.selectId=m("GovSelect")}validateType(t){n(z,t,_.root)}validateSize(t){n(P,t,_.root)}validateColor(t){n(S,t,_.root)}recalculate(){this.recalculatePagination(this.current)}componentDidLoad(){this.attributeObserver=new d(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(v)}componentWillLoad(){this.recalculatePagination(this.current);this.validateSize(this.size);this.validateColor(this.color);this.inheritedAttributes=f(this.host)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}recalculatePagination(t){this.pagination=k(this.total,t,this.pageSize,this.maxPages)}isActivePageClass(t,e){if(this.pagination.currentPage===e){return t+" is-active"}else{return t}}prepareLinkUrl(t){if(this.link){return String(this.link).replace("{PAGE}",String(t))}return undefined}resetSelectValue(){if(this.spreadSelectRef){this.spreadSelectRef.getRef().then((t=>{t.value="..."}))}}render(){const t=(t,e,s)=>{const a=t===-1;const o=g(this.pagination.currentPage===t?true:undefined);return i("gov-button",{href:this.prepareLinkUrl(t),color:this.color,size:this.size,type:"base",disabled:a,"on-gov-click":e=>this.onClickHandler(e,t),"aria-label":s?s:t>-1?`${this.accessiblePageLabel} ${t}`:undefined,"aria-current":o,class:_.inner,focusable:true},e)};return i(a,{class:this.h.classes(_.root),type:this.type,color:this.color,size:this.size},i("nav",Object.assign({},this.inheritedAttributes),i("ul",{class:_.list},i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.currentPage>1?1:-1,i("gov-icon",{class:_.arrow,name:"chevron-double-left",type:"components"}),this.labelStart)),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.startPage<this.pagination.currentPage?this.pagination.currentPage-1:-1,i("gov-icon",{class:_.arrow,name:"chevron-left",type:"components"}),this.labelPrev)),this.type=="select"?i("li",{class:p([_.item,_.itemSelect])},i("span",{class:_.inner},i("span",{id:this.pageSelectId,hidden:true},this.accessibleSelectLabel),i("gov-form-select",{size:this.size,color:this.color,identifier:this.selectIdentifier||this.selectId,"aria-labelledby":this.pageSelectId,"on-gov-change":this.onSelectHandler.bind(this)},u(1,this.pagination.totalPages).map((t=>i("option",{value:t,selected:this.pagination.currentPage===t},t)))))):i(o,null,this.pagination.pages.map((e=>i("li",{class:this.isActivePageClass(_.item,e)},t(e,e,"")))),this.pagination.totalPages?i("li",{class:p([_.item,_.itemMore])},i("span",{class:_.inner},i("span",{id:this.pageSelectId,hidden:true},this.accessibleSelectLabel),i("gov-form-select",{size:this.size,color:this.color,identifier:this.selectIdentifier||this.selectId,"aria-labelledby":this.pageSelectId,ref:t=>this.spreadSelectRef=t,"on-gov-change":this.onSelectHandler.bind(this)},i("option",{selected:true,hidden:true},"..."),u(1,this.pagination.totalPages).map((t=>i("option",{value:t,selected:false},t)))))):null),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.totalPages>this.pagination.currentPage?this.pagination.currentPage+1:-1,i("gov-icon",{class:_.arrow,name:"chevron-right",type:"components"}),this.labelNext)),i("li",{class:p([_.item,_.itemArrow])},t(this.pagination.totalPages>this.pagination.currentPage?this.pagination.totalPages:-1,i("gov-icon",{class:_.arrow,name:"chevron-double-right",type:"components"}),this.labelEnd)))))}onClickHandler(t,e){t.stopPropagation();this.recalculatePagination(e);this.govPage.emit({component:_.root,pagination:this.pagination})}onSelectHandler(t){t.stopPropagation();const e=t.detail.value;const s=parseInt(e);this.resetSelectValue();if(isNaN(s)===false){this.recalculatePagination(s);if(this.link){window.location.href=this.prepareLinkUrl(s)}else{this.govPage.emit({component:_.root,pagination:this.pagination})}}}get host(){return this}static get watchers(){return{type:["validateType"],size:["validateSize"],color:["validateColor"],current:["recalculate"],total:["recalculate"],pageSize:["recalculate"],maxPages:["recalculate"]}}},[256,"gov-pagination",{type:[1],current:[2],total:[2],selectIdentifier:[1,"select-identifier"],size:[1],color:[1],pageSize:[2,"page-size"],maxPages:[2,"max-pages"],link:[1],accessibleSelectLabel:[1,"accessible-select-label"],accessiblePageLabel:[1,"accessible-page-label"],labelPrev:[1,"label-prev"],labelStart:[1,"label-start"],labelNext:[1,"label-next"],labelEnd:[1,"label-end"],pagination:[32],inheritedAttributes:[32]},undefined,{type:["validateType"],size:["validateSize"],color:["validateColor"],current:["recalculate"],total:["recalculate"],pageSize:["recalculate"],maxPages:["recalculate"]}]);function A(){if(typeof customElements==="undefined"){return}const t=["gov-pagination","gov-button","gov-form-select","gov-icon"];t.forEach((t=>{switch(t){case"gov-pagination":if(!customElements.get(t)){customElements.define(t,C)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-select":if(!customElements.get(t)){y()}break;case"gov-icon":if(!customElements.get(t)){j()}break}}))}A();const x=C;const E=A;export{x as GovPagination,E as defineCustomElement};
2
2
  //# sourceMappingURL=gov-pagination.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as i,h as e,a as o}from"./index.js";import{v as a}from"./p-BKP-F1qP.js";import{T as r,a as n,b as h,c,d as l}from"./p-BTwdrNoS.js";import{g as d,t as f,b as p}from"./p-DfJDyRCE.js";import{h as u}from"./p-B3tdsiZv.js";import{p as b}from"./p-GYov8gU1.js";import{A as m,a as v,i as y}from"./p-CXgom82_.js";import{d as g}from"./p-BlBAryxm.js";import{d as j}from"./p-WmFNIuTf.js";const T=t(class t extends s{constructor(){super();this.__registerHost();this.govChange=i(this,"gov-change");this.triggerRefs={};this.type="text";this.size="m";this.color="primary";this.orientation="horizontal";this.direction="row";this.controllers=[];this.focusIndex=0;this.inheritedAttributes={};this.h=d(this.host)}validateType(t){a(n,t,r.root)}validateColor(t){a(h,t,r.root)}validateSize(t){a(c,t,r.root)}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(v)}componentWillLoad(){this.prepareControllers();this.validateSize(this.size);this.inheritedAttributes=y(this.host)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}prepareControllers(t=false){this.controllers=[];const s=[];this.host.querySelectorAll(":scope > "+l.root).forEach((t=>{const i=Promise.all([t.getIdentifier(),t.getTriggerIdentifier(),t.getDisableState()]).then((([s,i,e])=>{const o=typeof t.getAttribute("default")==="string";const a=b(t.getAttribute("icon-start"));const r=b(t.getAttribute("icon-end"));return{label:t.getAttribute("label"),direction:t.getAttribute("direction"),contentIdentifier:s,disabled:e,triggerIdentifier:i,element:t,active:false,default:o,iconStart:a,iconEnd:r}}));s.push(i)}));Promise.all(s).then((s=>{if(t===false){let t=s.findIndex((t=>t.default));if(t===-1)t=0;this.focusIndex=t;s[t].active=true}else if(this.focusIndex>-1&&u(s,this.focusIndex)){s[this.focusIndex].active=true}const i=s.findIndex((t=>t.active&&t.disabled));if(i>-1){s[i].active=false;const t=s.findIndex((t=>!t.disabled));if(t>-1){s[t].active=true;this.focusIndex=t}}this.controllers=[...s];this.reRender()}))}setActiveByIdentifier(t){const s=[];this.controllers.map((i=>{i.active=t===i.triggerIdentifier||t===i.contentIdentifier;s.push(i)}));this.controllers=[...s]}reRender(){this.controllers.map((t=>{t.element.setActiveStatus(t.active).catch()}))}render(){return e(o,{key:"f2005ba90b408bd5bba21e6efc86b247944e7c5e",class:this.h.classes(r.root),size:this.size,color:this.color,type:this.type,direction:this.direction,onKeyDown:this.onKeydownHandler.bind(this)},e("div",Object.assign({key:"e8ad7a3f754fb72a1546f8147f958f97d865f745",class:r.tabs,role:"tablist"},this.inheritedAttributes),e("ul",{key:"cba48068fb5cef81797a703edfe6d8f1a5714be6",class:r.list},this.controllers.map((t=>e("li",{class:r.item},this.type=="text"?e("button",{class:r.btn,id:t.triggerIdentifier,role:"tab",type:"button",onClick:()=>this.onSelectHandler(t),disabled:t.disabled,"aria-disabled":f(t.disabled),"aria-selected":f(t.active),"aria-controls":t.contentIdentifier,tabindex:t.active&&!t.disabled?0:-1,ref:s=>this.triggerRefs[t.triggerIdentifier]=s},t.iconStart?e("gov-icon",{name:t.iconStart.name,type:t.iconStart.type}):null,t.label,t.iconEnd?e("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type}):null):e("gov-chip",{role:"tab",tag:"button",identifier:t.triggerIdentifier,"aria-selected":p(t.active),"aria-controls":t.contentIdentifier,focusable:t.active,disabled:t.disabled,color:this.color,size:this.size==="xs"?"xs":this.size==="s"?"s":"m",type:t.active?"solid":"outlined",ref:s=>this.triggerRefs[t.triggerIdentifier]=s,"on-gov-click":()=>this.onSelectHandler(t)},t.iconStart?e("gov-icon",{name:t.iconStart.name,type:t.iconStart.type,slot:"icon-start"}):null,t.label,t.iconEnd?e("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type,slot:"icon-end"}):null)))))),e("slot",{key:"328c8c699405186862b636f4dc878306945d6424"}))}getCurrentTab(){return this.controllers.find((t=>t.active))||null}onSelectHandler(t){const s=this.controllers.findIndex((s=>s.triggerIdentifier===t.triggerIdentifier));this.focusIndex=s;this.setActiveByIdentifier(t.triggerIdentifier);this.reRender();this.govChange.emit(this.getCurrentTab().element)}onKeydownHandler(t){const s=t.keyCode;t.stopPropagation();this.goToPrevNext(s)}goToPrevNext(t){if([37,38,39,40].includes(t)){if(false===(this.focusIndex>=0&&this.focusIndex<=this.controllers.length-1)){return}this.controllers[this.focusIndex].active=false;if(t===39||t===40){this.focusIndex++;if(this.focusIndex>=this.controllers.length){this.focusIndex=0}if(this.controllers[this.focusIndex].disabled){this.goToPrevNext(40)}}else if(t===37||t===38){this.focusIndex--;if(this.focusIndex<0){this.focusIndex=this.controllers.length-1}if(this.controllers[this.focusIndex].disabled){this.goToPrevNext(38)}}if(this.focusIndex>=0&&this.focusIndex<=this.controllers.length-1){const t=this.controllers[this.focusIndex];t.active=true;const s=this.triggerRefs[t.triggerIdentifier];if(s.nodeName.toLowerCase()==="gov-chip"){this.triggerRefs[t.triggerIdentifier].setFocus()}else{this.triggerRefs[t.triggerIdentifier].focus()}this.controllers=[...this.controllers];this.reRender();this.govChange.emit(this.getCurrentTab().element)}}}async refresh(){this.prepareControllers()}async currentTab(){return this.getCurrentTab().element||null}async setActiveTab(t){this.setActiveByIdentifier(t);this.reRender()}async rerender(){this.prepareControllers(true)}get host(){return this}static get watchers(){return{type:["validateType"],color:["validateColor"],size:["validateSize"]}}},[260,"gov-tabs",{type:[1],size:[1],color:[1],orientation:[1],direction:[513],controllers:[32],focusIndex:[32],inheritedAttributes:[32],refresh:[64],currentTab:[64],setActiveTab:[64],rerender:[64]},undefined,{type:["validateType"],color:["validateColor"],size:["validateSize"]}]);function x(){if(typeof customElements==="undefined"){return}const t=["gov-tabs","gov-chip","gov-icon"];t.forEach((t=>{switch(t){case"gov-tabs":if(!customElements.get(t)){customElements.define(t,T)}break;case"gov-chip":if(!customElements.get(t)){g()}break;case"gov-icon":if(!customElements.get(t)){j()}break}}))}x();const k=T;const C=x;export{k as GovTabs,C as defineCustomElement};
1
+ import{p as t,H as s,c as i,h as e,a as o}from"./index.js";import{v as a}from"./p-BKP-F1qP.js";import{T as r,a as n,b as h,c,d as l}from"./p-BTwdrNoS.js";import{g as d,t as f,b as p}from"./p-DfJDyRCE.js";import{h as b}from"./p-B3tdsiZv.js";import{p as u}from"./p-GYov8gU1.js";import{A as m,a as v,i as g}from"./p-CXgom82_.js";import{d as y}from"./p-Dmr81UhL.js";import{d as j}from"./p-B03Rpjps.js";const T=t(class t extends s{constructor(){super();this.__registerHost();this.govChange=i(this,"gov-change");this.triggerRefs={};this.type="text";this.size="m";this.color="primary";this.orientation="horizontal";this.direction="row";this.controllers=[];this.focusIndex=0;this.inheritedAttributes={};this.h=d(this.host)}validateType(t){a(n,t,r.root)}validateColor(t){a(h,t,r.root)}validateSize(t){a(c,t,r.root)}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(v)}componentWillLoad(){this.prepareControllers();this.validateSize(this.size);this.inheritedAttributes=g(this.host)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}prepareControllers(t=false){this.controllers=[];const s=[];this.host.querySelectorAll(":scope > "+l.root).forEach((t=>{const i=Promise.all([t.getIdentifier(),t.getTriggerIdentifier(),t.getDisableState()]).then((([s,i,e])=>{const o=typeof t.getAttribute("default")==="string";const a=u(t.getAttribute("icon-start"));const r=u(t.getAttribute("icon-end"));return{label:t.getAttribute("label"),direction:t.getAttribute("direction"),contentIdentifier:s,disabled:e,triggerIdentifier:i,element:t,active:false,default:o,iconStart:a,iconEnd:r}}));s.push(i)}));Promise.all(s).then((s=>{if(t===false){let t=s.findIndex((t=>t.default));if(t===-1)t=0;this.focusIndex=t;s[t].active=true}else if(this.focusIndex>-1&&b(s,this.focusIndex)){s[this.focusIndex].active=true}const i=s.findIndex((t=>t.active&&t.disabled));if(i>-1){s[i].active=false;const t=s.findIndex((t=>!t.disabled));if(t>-1){s[t].active=true;this.focusIndex=t}}this.controllers=[...s];this.reRender()}))}setActiveByIdentifier(t){const s=[];this.controllers.map((i=>{i.active=t===i.triggerIdentifier||t===i.contentIdentifier;s.push(i)}));this.controllers=[...s]}reRender(){this.controllers.map((t=>{t.element.setActiveStatus(t.active).catch()}))}render(){return e(o,{key:"f2005ba90b408bd5bba21e6efc86b247944e7c5e",class:this.h.classes(r.root),size:this.size,color:this.color,type:this.type,direction:this.direction,onKeyDown:this.onKeydownHandler.bind(this)},e("div",Object.assign({key:"e8ad7a3f754fb72a1546f8147f958f97d865f745",class:r.tabs,role:"tablist"},this.inheritedAttributes),e("ul",{key:"cba48068fb5cef81797a703edfe6d8f1a5714be6",class:r.list},this.controllers.map((t=>e("li",{class:r.item},this.type=="text"?e("button",{class:r.btn,id:t.triggerIdentifier,role:"tab",type:"button",onClick:()=>this.onSelectHandler(t),disabled:t.disabled,"aria-disabled":f(t.disabled),"aria-selected":f(t.active),"aria-controls":t.contentIdentifier,tabindex:t.active&&!t.disabled?0:-1,ref:s=>this.triggerRefs[t.triggerIdentifier]=s},t.iconStart?e("gov-icon",{name:t.iconStart.name,type:t.iconStart.type}):null,t.label,t.iconEnd?e("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type}):null):e("gov-chip",{role:"tab",tag:"button",identifier:t.triggerIdentifier,"aria-selected":p(t.active),"aria-controls":t.contentIdentifier,focusable:t.active,disabled:t.disabled,color:this.color,size:this.size==="xs"?"xs":this.size==="s"?"s":"m",type:t.active?"solid":"outlined",ref:s=>this.triggerRefs[t.triggerIdentifier]=s,"on-gov-click":()=>this.onSelectHandler(t)},t.iconStart?e("gov-icon",{name:t.iconStart.name,type:t.iconStart.type,slot:"icon-start"}):null,t.label,t.iconEnd?e("gov-icon",{name:t.iconEnd.name,type:t.iconEnd.type,slot:"icon-end"}):null)))))),e("slot",{key:"328c8c699405186862b636f4dc878306945d6424"}))}getCurrentTab(){return this.controllers.find((t=>t.active))||null}onSelectHandler(t){const s=this.controllers.findIndex((s=>s.triggerIdentifier===t.triggerIdentifier));this.focusIndex=s;this.setActiveByIdentifier(t.triggerIdentifier);this.reRender();this.govChange.emit(this.getCurrentTab().element)}onKeydownHandler(t){const s=t.keyCode;t.stopPropagation();this.goToPrevNext(s)}goToPrevNext(t){if([37,38,39,40].includes(t)){if(false===(this.focusIndex>=0&&this.focusIndex<=this.controllers.length-1)){return}this.controllers[this.focusIndex].active=false;if(t===39||t===40){this.focusIndex++;if(this.focusIndex>=this.controllers.length){this.focusIndex=0}if(this.controllers[this.focusIndex].disabled){this.goToPrevNext(40)}}else if(t===37||t===38){this.focusIndex--;if(this.focusIndex<0){this.focusIndex=this.controllers.length-1}if(this.controllers[this.focusIndex].disabled){this.goToPrevNext(38)}}if(this.focusIndex>=0&&this.focusIndex<=this.controllers.length-1){const t=this.controllers[this.focusIndex];t.active=true;const s=this.triggerRefs[t.triggerIdentifier];if(s.nodeName.toLowerCase()==="gov-chip"){this.triggerRefs[t.triggerIdentifier].setFocus()}else{this.triggerRefs[t.triggerIdentifier].focus()}this.controllers=[...this.controllers];this.reRender();this.govChange.emit(this.getCurrentTab().element)}}}async refresh(){this.prepareControllers()}async currentTab(){return this.getCurrentTab().element||null}async setActiveTab(t){this.setActiveByIdentifier(t);this.reRender()}async rerender(){this.prepareControllers(true)}get host(){return this}static get watchers(){return{type:["validateType"],color:["validateColor"],size:["validateSize"]}}},[260,"gov-tabs",{type:[1],size:[1],color:[1],orientation:[1],direction:[513],controllers:[32],focusIndex:[32],inheritedAttributes:[32],refresh:[64],currentTab:[64],setActiveTab:[64],rerender:[64]},undefined,{type:["validateType"],color:["validateColor"],size:["validateSize"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-tabs","gov-chip","gov-icon"];t.forEach((t=>{switch(t){case"gov-tabs":if(!customElements.get(t)){customElements.define(t,T)}break;case"gov-chip":if(!customElements.get(t)){y()}break;case"gov-icon":if(!customElements.get(t)){j()}break}}))}k();const x=T;const C=k;export{x as GovTabs,C as defineCustomElement};
2
2
  //# sourceMappingURL=gov-tabs.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,h as o,a as s}from"./index.js";import{g as c}from"./p-DfJDyRCE.js";import{v as a}from"./p-BKP-F1qP.js";import{a as i,c as n}from"./p-CNqoJU2V.js";import{p as r}from"./p-CQvUntGY.js";import{S as f}from"./p-BcQO4NH2.js";import{p as d}from"./p-GYov8gU1.js";import{d as m}from"./p-WmFNIuTf.js";const l=r(f,["_XS","_S","_M"]);var p;(function(e){e["BOLD"]="bold";e["SUBTLE"]="subtle"})(p||(p={}));const b={root:"gov-tag"};const h=e(class e extends t{constructor(){super();this.__registerHost();this.size=l._S;this.color=i.PRIMARY;this.expanded=false;this.h=c(this.host)}validateColor(e){a(i,e,b.root)}validateSize(e){a(n,e,b.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size)}render(){const e=d(this.iconStart);const t=d(this.iconEnd);return o(s,{key:"0cccc05dd15a83059fdccb3bcb369c6440788810",class:this.h.classes(b.root),color:this.color,size:this.size,type:this.type},o("span",{key:"d992666f37e31743f32eed8eef5c1951955f0fbb",class:"element"},o("slot",{key:"a72a05bf27fd90f6197c2f7df9e7c455e5a7c802",name:"icon-start"},e&&o("gov-icon",{key:"0a7eb8b599debec441cec7c3e01642b28527382b",type:e.type,name:e.name})),o("slot",{key:"9b68c59719c5098b4b8c937e0431e56c80e74c37"}),o("slot",{key:"83a24299e79041fcc210ef2175aa1de98f66f68c",name:"icon-end"},t&&o("gov-icon",{key:"07ef8ce8b05ef2a5331d51aa8736e319f732bea2",type:t.type,name:t.name}))))}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}},[260,"gov-tag",{iconStart:[1,"icon-start"],iconEnd:[1,"icon-end"],size:[513],color:[513],type:[513],expanded:[516]},undefined,{color:["validateColor"],size:["validateSize"]}]);function v(){if(typeof customElements==="undefined"){return}const e=["gov-tag","gov-icon"];e.forEach((e=>{switch(e){case"gov-tag":if(!customElements.get(e)){customElements.define(e,h)}break;case"gov-icon":if(!customElements.get(e)){m()}break}}))}v();const g=h;const u=v;export{g as GovTag,u as defineCustomElement};
1
+ import{p as e,H as t,h as s,a as o}from"./index.js";import{g as c}from"./p-DfJDyRCE.js";import{v as a}from"./p-BKP-F1qP.js";import{a as i,c as n}from"./p-CNqoJU2V.js";import{p as r}from"./p-CQvUntGY.js";import{S as f}from"./p-BcQO4NH2.js";import{p as d}from"./p-GYov8gU1.js";import{d as m}from"./p-B03Rpjps.js";const p=r(f,["_XS","_S","_M"]);var l;(function(e){e["BOLD"]="bold";e["SUBTLE"]="subtle"})(l||(l={}));const b={root:"gov-tag"};const h=e(class e extends t{constructor(){super();this.__registerHost();this.size=p._S;this.color=i.PRIMARY;this.expanded=false;this.h=c(this.host)}validateColor(e){a(i,e,b.root)}validateSize(e){a(n,e,b.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size)}render(){const e=d(this.iconStart);const t=d(this.iconEnd);return s(o,{key:"0cccc05dd15a83059fdccb3bcb369c6440788810",class:this.h.classes(b.root),color:this.color,size:this.size,type:this.type},s("span",{key:"d992666f37e31743f32eed8eef5c1951955f0fbb",class:"element"},s("slot",{key:"a72a05bf27fd90f6197c2f7df9e7c455e5a7c802",name:"icon-start"},e&&s("gov-icon",{key:"0a7eb8b599debec441cec7c3e01642b28527382b",type:e.type,name:e.name})),s("slot",{key:"9b68c59719c5098b4b8c937e0431e56c80e74c37"}),s("slot",{key:"83a24299e79041fcc210ef2175aa1de98f66f68c",name:"icon-end"},t&&s("gov-icon",{key:"07ef8ce8b05ef2a5331d51aa8736e319f732bea2",type:t.type,name:t.name}))))}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}},[260,"gov-tag",{iconStart:[1,"icon-start"],iconEnd:[1,"icon-end"],size:[513],color:[513],type:[513],expanded:[516]},undefined,{color:["validateColor"],size:["validateSize"]}]);function v(){if(typeof customElements==="undefined"){return}const e=["gov-tag","gov-icon"];e.forEach((e=>{switch(e){case"gov-tag":if(!customElements.get(e)){customElements.define(e,h)}break;case"gov-icon":if(!customElements.get(e)){m()}break}}))}v();const g=h;const u=v;export{g as GovTag,u as defineCustomElement};
2
2
  //# sourceMappingURL=gov-tag.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,c as s,h as i,a}from"./index.js";import{g as o}from"./p-DfJDyRCE.js";import{p as h}from"./p-CQvUntGY.js";import{S as c}from"./p-BcQO4NH2.js";import{i as n}from"./p-DrPpH_9c.js";import{v as r}from"./p-BKP-F1qP.js";import{d as l,s as m,g as b}from"./p-WmFNIuTf.js";const d=h(c,["_XS","_S","_M","_L","_XL"]);const f={root:"gov-theme-switch",indicator:"gov-theme-switch__indicator",label:"gov-theme-switch__label",iconLight:"gov-theme-switch__icon-light",iconDark:"gov-theme-switch__icon-dark"};const p="data-theme";var g;(function(t){t["auto"]="auto";t["light"]="light";t["dark"]="dark"})(g||(g={}));const u=t(class t extends e{constructor(){super();this.__registerHost();this.govChange=s(this,"gov-change");this.size="m";this.displayLabel=false;this.ariaLabelLight="Přepnout na tmavý mód";this.ariaLabelDark="Přepnout na světlý mód";this.labelLight="Světlý mód";this.labelDark="Tmavý mód";this.theme=g.auto;this.setThemeState=t=>{this.theme=t;this.govChange.emit({component:f.root,state:this.theme,ref:this.host})};this.h=o(this.host)}validateSize(t){r(d,t,f.root)}watchTheme(t){this.htmlElement.setAttribute(p,t);this.htmlElement.classList.remove(...Object.keys(g));this.htmlElement.classList.add(t);m(p,t)}get storageValue(){return b(p)}get htmlElement(){return document.documentElement}get isSystemPrefersColorDark(){return n&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}componentWillLoad(){this.initDefaultState();this.validateSize(this.size)}initDefaultState(){const t=Object.keys(g);let e=this.storageValue;const s=this.htmlElement.getAttribute(p);if(e&&t.includes(e)){this.theme=e}else if(s&&t.includes(s)){this.theme=s}else{this.theme=g.auto}}render(){let t=this.theme===g.dark;if(this.theme===g.auto){t=this.isSystemPrefersColorDark}return i(a,{key:"2b35ab195092cc77a4424b8676f3ae35733b5388",class:this.h.classes(f.root),theme:t?g.dark:g.light,size:this.size},i("button",{key:"8e3904870ea8181ca7e9bad9262bbf5638b19358",onClick:()=>this.setThemeState(t?g.light:g.dark),"aria-current":this.theme,"aria-label":t?this.ariaLabelDark:this.ariaLabelLight},i("span",{key:"e76b59b0cb70878e627c4e0be0c74e3dde19124c"},i("span",{key:"ceb0da027677434b1d64b24b05f4e3b0828c529a",class:f.indicator},g.light&&i("gov-icon",{key:"a36bf7c3e453ff752feb91f02a23302dbadd8509",name:"sun",class:f.iconLight,type:"components"}),g.dark&&i("gov-icon",{key:"66a37d369fbe737fcb90372f262a01225cdad90c",name:"moon",class:f.iconDark,type:"components"})),this.displayLabel?i("span",{class:f.label},t?this.labelDark:this.labelLight):null)))}get host(){return this}static get watchers(){return{size:["validateSize"],theme:["watchTheme"]}}},[256,"gov-theme-switch",{size:[1],displayLabel:[4,"display-label"],ariaLabelLight:[1,"aria-label-light"],ariaLabelDark:[1,"aria-label-dark"],labelLight:[1,"label-light"],labelDark:[1,"label-dark"],theme:[32]},undefined,{size:["validateSize"],theme:["watchTheme"]}]);function v(){if(typeof customElements==="undefined"){return}const t=["gov-theme-switch","gov-icon"];t.forEach((t=>{switch(t){case"gov-theme-switch":if(!customElements.get(t)){customElements.define(t,u)}break;case"gov-icon":if(!customElements.get(t)){l()}break}}))}v();const k=u;const w=v;export{k as GovThemeSwitch,w as defineCustomElement};
1
+ import{p as t,H as e,c as s,h as i,a}from"./index.js";import{g as o}from"./p-DfJDyRCE.js";import{p as h}from"./p-CQvUntGY.js";import{S as c}from"./p-BcQO4NH2.js";import{i as n}from"./p-DrPpH_9c.js";import{v as r}from"./p-BKP-F1qP.js";import{d as l,s as m,g as b}from"./p-B03Rpjps.js";const d=h(c,["_XS","_S","_M","_L","_XL"]);const f={root:"gov-theme-switch",indicator:"gov-theme-switch__indicator",label:"gov-theme-switch__label",iconLight:"gov-theme-switch__icon-light",iconDark:"gov-theme-switch__icon-dark"};const p="data-theme";var g;(function(t){t["auto"]="auto";t["light"]="light";t["dark"]="dark"})(g||(g={}));const u=t(class t extends e{constructor(){super();this.__registerHost();this.govChange=s(this,"gov-change");this.size="m";this.displayLabel=false;this.ariaLabelLight="Přepnout na tmavý mód";this.ariaLabelDark="Přepnout na světlý mód";this.labelLight="Světlý mód";this.labelDark="Tmavý mód";this.theme=g.auto;this.setThemeState=t=>{this.theme=t;this.govChange.emit({component:f.root,state:this.theme,ref:this.host})};this.h=o(this.host)}validateSize(t){r(d,t,f.root)}watchTheme(t){this.htmlElement.setAttribute(p,t);this.htmlElement.classList.remove(...Object.keys(g));this.htmlElement.classList.add(t);m(p,t)}get storageValue(){return b(p)}get htmlElement(){return document.documentElement}get isSystemPrefersColorDark(){return n&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}componentWillLoad(){this.initDefaultState();this.validateSize(this.size)}initDefaultState(){const t=Object.keys(g);let e=this.storageValue;const s=this.htmlElement.getAttribute(p);if(e&&t.includes(e)){this.theme=e}else if(s&&t.includes(s)){this.theme=s}else{this.theme=g.auto}}render(){let t=this.theme===g.dark;if(this.theme===g.auto){t=this.isSystemPrefersColorDark}return i(a,{key:"2b35ab195092cc77a4424b8676f3ae35733b5388",class:this.h.classes(f.root),theme:t?g.dark:g.light,size:this.size},i("button",{key:"8e3904870ea8181ca7e9bad9262bbf5638b19358",onClick:()=>this.setThemeState(t?g.light:g.dark),"aria-current":this.theme,"aria-label":t?this.ariaLabelDark:this.ariaLabelLight},i("span",{key:"e76b59b0cb70878e627c4e0be0c74e3dde19124c"},i("span",{key:"ceb0da027677434b1d64b24b05f4e3b0828c529a",class:f.indicator},g.light&&i("gov-icon",{key:"a36bf7c3e453ff752feb91f02a23302dbadd8509",name:"sun",class:f.iconLight,type:"components"}),g.dark&&i("gov-icon",{key:"66a37d369fbe737fcb90372f262a01225cdad90c",name:"moon",class:f.iconDark,type:"components"})),this.displayLabel?i("span",{class:f.label},t?this.labelDark:this.labelLight):null)))}get host(){return this}static get watchers(){return{size:["validateSize"],theme:["watchTheme"]}}},[256,"gov-theme-switch",{size:[1],displayLabel:[4,"display-label"],ariaLabelLight:[1,"aria-label-light"],ariaLabelDark:[1,"aria-label-dark"],labelLight:[1,"label-light"],labelDark:[1,"label-dark"],theme:[32]},undefined,{size:["validateSize"],theme:["watchTheme"]}]);function v(){if(typeof customElements==="undefined"){return}const t=["gov-theme-switch","gov-icon"];t.forEach((t=>{switch(t){case"gov-theme-switch":if(!customElements.get(t)){customElements.define(t,u)}break;case"gov-icon":if(!customElements.get(t)){l()}break}}))}v();const k=u;const w=v;export{k as GovThemeSwitch,w as defineCustomElement};
2
2
  //# sourceMappingURL=gov-theme-switch.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,h as s,F as o,a as i}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as n}from"./p-BcQO4NH2.js";import{g as c}from"./p-DfJDyRCE.js";import{d as r}from"./p-WmFNIuTf.js";a(n,["_S","_M","_L"]);const l={root:"gov-tile",link:"gov-tile__link",content:"gov-tile__content",text:"gov-tile__text",title:"gov-tile__title",icon:"gov-tile__icon",annotation:"gov-tile__annotation"};const f=e(class e extends t{constructor(){super();this.__registerHost();this.size="m";this.noBorder=false;this.h=c(this.host)}render(){return s(i,{key:"6e56b6c61b51b7adae50d06051723efcd34f8b65",class:this.h.classes(l.root),size:this.size,orientation:this.orientation,clickable:this.href?true:null},s("slot",{key:"7e1a9f9db2af1aa9fbae19a826e0e873fe45ba5c",name:"icon"}),s("div",{key:"c68396608eb25200ed24cfb0cee241a3a11a5278",class:l.content},s("div",{key:"89af8cf2e3bb063874b2e781c9309b0ef57d76ad",class:l.text},s("div",{key:"3d331e3ad1c306f56b1395e5300427cc58c4ae32",class:l.title},this.href?s(o,null,s("a",{href:this.href,target:this.target,class:l.link,ref:e=>this.triggerRef=e},s("slot",{name:"title"})),s("span",{class:l.icon},s("gov-icon",{name:"chevron-right",type:"components"}))):s("slot",{name:"title"})),s("div",{key:"4c2e20b2a86f77f5fbcb67e3297ea20089c940e3",class:`${l.annotation} ${this.href?`${l.annotation}--padding`:""}`},s("slot",{key:"93e106c02f93807c9616da2639473318e54cd246"}))),s("slot",{key:"a547bf4216ce80dad7dd2473cc46e80991960529",name:"button"})))}async getTriggerRef(){return this.triggerRef}get host(){return this}},[260,"gov-tile",{size:[513],orientation:[1],noBorder:[4,"no-border"],href:[513],target:[1],getTriggerRef:[64]}]);function d(){if(typeof customElements==="undefined"){return}const e=["gov-tile","gov-icon"];e.forEach((e=>{switch(e){case"gov-tile":if(!customElements.get(e)){customElements.define(e,f)}break;case"gov-icon":if(!customElements.get(e)){r()}break}}))}d();const m=f;const g=d;export{m as GovTile,g as defineCustomElement};
1
+ import{p as e,H as t,h as s,F as o,a as i}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as n}from"./p-BcQO4NH2.js";import{g as c}from"./p-DfJDyRCE.js";import{d as r}from"./p-B03Rpjps.js";a(n,["_S","_M","_L"]);const l={root:"gov-tile",link:"gov-tile__link",content:"gov-tile__content",text:"gov-tile__text",title:"gov-tile__title",icon:"gov-tile__icon",annotation:"gov-tile__annotation"};const f=e(class e extends t{constructor(){super();this.__registerHost();this.size="m";this.noBorder=false;this.h=c(this.host)}render(){return s(i,{key:"6e56b6c61b51b7adae50d06051723efcd34f8b65",class:this.h.classes(l.root),size:this.size,orientation:this.orientation,clickable:this.href?true:null},s("slot",{key:"7e1a9f9db2af1aa9fbae19a826e0e873fe45ba5c",name:"icon"}),s("div",{key:"c68396608eb25200ed24cfb0cee241a3a11a5278",class:l.content},s("div",{key:"89af8cf2e3bb063874b2e781c9309b0ef57d76ad",class:l.text},s("div",{key:"3d331e3ad1c306f56b1395e5300427cc58c4ae32",class:l.title},this.href?s(o,null,s("a",{href:this.href,target:this.target,class:l.link,ref:e=>this.triggerRef=e},s("slot",{name:"title"})),s("span",{class:l.icon},s("gov-icon",{name:"chevron-right",type:"components"}))):s("slot",{name:"title"})),s("div",{key:"4c2e20b2a86f77f5fbcb67e3297ea20089c940e3",class:`${l.annotation} ${this.href?`${l.annotation}--padding`:""}`},s("slot",{key:"93e106c02f93807c9616da2639473318e54cd246"}))),s("slot",{key:"a547bf4216ce80dad7dd2473cc46e80991960529",name:"button"})))}async getTriggerRef(){return this.triggerRef}get host(){return this}},[260,"gov-tile",{size:[513],orientation:[1],noBorder:[4,"no-border"],href:[513],target:[1],getTriggerRef:[64]}]);function d(){if(typeof customElements==="undefined"){return}const e=["gov-tile","gov-icon"];e.forEach((e=>{switch(e){case"gov-tile":if(!customElements.get(e)){customElements.define(e,f)}break;case"gov-icon":if(!customElements.get(e)){r()}break}}))}d();const g=f;const m=d;export{g as GovTile,m as defineCustomElement};
2
2
  //# sourceMappingURL=gov-tile.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as o,h as e,a as i}from"./index.js";import{v as a}from"./p-BKP-F1qP.js";import{C as c}from"./p-U40vKHrs.js";import{p as r}from"./p-CQvUntGY.js";import{g as n}from"./p-DfJDyRCE.js";import{c as h}from"./p-vN03FcXN.js";import{A as l,a as d,i as f}from"./p-CXgom82_.js";import{d as m}from"./p-8QWehgod.js";import{d as b}from"./p-WmFNIuTf.js";const p=r(c,["PRIMARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var u;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(u||(u={}));const v={root:"gov-toast",hidden:"gov-toast--hidden",content:"gov-toast__content",icon:"gov-toast__icon",close:"gov-toast__close",timer:"gov-toast__timer"};const g=t(class t extends s{constructor(){super();this.__registerHost();this.govClose=o(this,"gov-close");this.color="primary";this.gravity="top";this.position="right";this.type="bold";this.time=0;this.inheritedAttributes={};this.h=n(this.host);this.toastId=h("GovToast")}validateColor(t){a(p,t,v.root)}componentDidLoad(){this.attributeObserver=new l(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(d)}componentWillLoad(){this.validateColor(this.color);this.runTimer();this.inheritedAttributes=f(this.host)}disconnectedCallback(){var t;clearTimeout(this.timeout);(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}runTimer(){if(this.isTimer){this.timeout=setTimeout((()=>{this.host.classList.add(v.hidden);setTimeout((()=>{this.destroy().catch();this.govClose.emit(this.toastId)}),600)}),this.time)}}render(){return e(i,{key:"ef97cd3dfb69dd3159f29eb9e06b95e638a8c10f",class:this.h.classes(v.root),"data-toast-id":this.toastId,gravity:this.gravity,position:this.position,color:this.color,type:this.type,style:{"--toast-duration":this.time+"ms"}},this.h.hasSlot("icon")&&e("span",{key:"79efa5995efd05b8938cdeb7f1dfd2e9c4b6cb9b",class:v.icon},e("slot",{key:"ba48149e2f9ac6f0b457ddeebdb021accbf8863e",name:"icon"})),e("div",Object.assign({key:"8350b380c0a0c039f401941afee5202f9e79cc1c",class:v.content},this.inheritedAttributes,{"aria-live":"polite",role:"status"}),e("slot",{key:"262b1c2ef1292d0145f16b8ef2a8f60f53992881"})),e("gov-button",{key:"8dfc1fbdc3657bf4fe4aeefc32efb44262bcaf6d",size:"s","aria-label":this.accessibleCloseLabel,color:this.isBold?this.color:"neutral",type:"base","on-gov-click":this.onCloseHandler.bind(this),class:v.close},this.closeLabel?this.closeLabel:e("gov-icon",{name:"x-lg",type:"components"})),e("div",{key:"9185d22c3a22b39f9a87aecfb4865cd09a59d54c",class:v.timer}))}onCloseHandler(){this.govClose.emit(this.toastId);this.destroy().catch()}get isBold(){return this.type==="bold"}get isTimer(){return Number.isInteger(this.time)&&this.time>0}async destroy(){clearTimeout(this.timeout);const t=document.querySelector(`[data-toast-id="${this.toastId}"]`);if(t){t.classList.add(v.hidden);if(typeof t.remove==="function"){t.remove()}}}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[260,"gov-toast",{color:[1],gravity:[1],position:[1],type:[1],time:[2],closeLabel:[1,"close-label"],accessibleCloseLabel:[1,"accessible-close-label"],inheritedAttributes:[32],destroy:[64]},undefined,{color:["validateColor"]}]);function y(){if(typeof customElements==="undefined"){return}const t=["gov-toast","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-toast":if(!customElements.get(t)){customElements.define(t,g)}break;case"gov-button":if(!customElements.get(t)){m()}break;case"gov-icon":if(!customElements.get(t)){b()}break}}))}y();const C=g;const j=y;export{C as GovToast,j as defineCustomElement};
1
+ import{p as t,H as s,c as o,h as e,a as i}from"./index.js";import{v as a}from"./p-BKP-F1qP.js";import{C as c}from"./p-U40vKHrs.js";import{p as r}from"./p-CQvUntGY.js";import{g as n}from"./p-DfJDyRCE.js";import{c as h}from"./p-vN03FcXN.js";import{A as l,a as d,i as f}from"./p-CXgom82_.js";import{d as b}from"./p-CXbpWAIF.js";import{d as m}from"./p-B03Rpjps.js";const p=r(c,["PRIMARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var u;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(u||(u={}));const v={root:"gov-toast",hidden:"gov-toast--hidden",content:"gov-toast__content",icon:"gov-toast__icon",close:"gov-toast__close",timer:"gov-toast__timer"};const g=t(class t extends s{constructor(){super();this.__registerHost();this.govClose=o(this,"gov-close");this.color="primary";this.gravity="top";this.position="right";this.type="bold";this.time=0;this.inheritedAttributes={};this.h=n(this.host);this.toastId=h("GovToast")}validateColor(t){a(p,t,v.root)}componentDidLoad(){this.attributeObserver=new l(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(d)}componentWillLoad(){this.validateColor(this.color);this.runTimer();this.inheritedAttributes=f(this.host)}disconnectedCallback(){var t;clearTimeout(this.timeout);(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}runTimer(){if(this.isTimer){this.timeout=setTimeout((()=>{this.host.classList.add(v.hidden);setTimeout((()=>{this.destroy().catch();this.govClose.emit(this.toastId)}),600)}),this.time)}}render(){return e(i,{key:"ef97cd3dfb69dd3159f29eb9e06b95e638a8c10f",class:this.h.classes(v.root),"data-toast-id":this.toastId,gravity:this.gravity,position:this.position,color:this.color,type:this.type,style:{"--toast-duration":this.time+"ms"}},this.h.hasSlot("icon")&&e("span",{key:"79efa5995efd05b8938cdeb7f1dfd2e9c4b6cb9b",class:v.icon},e("slot",{key:"ba48149e2f9ac6f0b457ddeebdb021accbf8863e",name:"icon"})),e("div",Object.assign({key:"8350b380c0a0c039f401941afee5202f9e79cc1c",class:v.content},this.inheritedAttributes,{"aria-live":"polite",role:"status"}),e("slot",{key:"262b1c2ef1292d0145f16b8ef2a8f60f53992881"})),e("gov-button",{key:"8dfc1fbdc3657bf4fe4aeefc32efb44262bcaf6d",size:"s","aria-label":this.accessibleCloseLabel,color:this.isBold?this.color:"neutral",type:"base","on-gov-click":this.onCloseHandler.bind(this),class:v.close},this.closeLabel?this.closeLabel:e("gov-icon",{name:"x-lg",type:"components"})),e("div",{key:"9185d22c3a22b39f9a87aecfb4865cd09a59d54c",class:v.timer}))}onCloseHandler(){this.govClose.emit(this.toastId);this.destroy().catch()}get isBold(){return this.type==="bold"}get isTimer(){return Number.isInteger(this.time)&&this.time>0}async destroy(){clearTimeout(this.timeout);const t=document.querySelector(`[data-toast-id="${this.toastId}"]`);if(t){t.classList.add(v.hidden);if(typeof t.remove==="function"){t.remove()}}}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[260,"gov-toast",{color:[1],gravity:[1],position:[1],type:[1],time:[2],closeLabel:[1,"close-label"],accessibleCloseLabel:[1,"accessible-close-label"],inheritedAttributes:[32],destroy:[64]},undefined,{color:["validateColor"]}]);function y(){if(typeof customElements==="undefined"){return}const t=["gov-toast","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-toast":if(!customElements.get(t)){customElements.define(t,g)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-icon":if(!customElements.get(t)){m()}break}}))}y();const C=g;const j=y;export{C as GovToast,j as defineCustomElement};
2
2
  //# sourceMappingURL=gov-toast.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,h as e,a as i}from"./index.js";import{T as o,a as n,d as a}from"./p-DfI_0WW6.js";import{t as c}from"./p-DfJDyRCE.js";import{d as l}from"./p-8QWehgod.js";import{d as r}from"./p-WmFNIuTf.js";const f=t(class t extends s{constructor(){super();this.__registerHost();this.color=o.PRIMARY;this.size=n._M;this.persist=false;this.isVisible=false;this.parentId=null}visibleContent(t){clearTimeout(this.timeout);if(t===false){this.timeout=setTimeout((()=>{this.host.style.visibility="hidden"}),250)}else{this.host.style.visibility="visible"}}hideContent(){this.isVisible=false;this.persist=false;const t=document.getElementById(this.parentId);if(t){t.hide().catch()}}render(){return e(i,{key:"8392d10d5011527087e4ae06876817cf57abcaf3",class:a.root,role:"tooltip",hidden:!this.isVisible,"aria-hidden":!c(this.isVisible),"is-visible":this.isVisible},e("slot",{key:"2b068ab878ff4dff51ff93c656a0b6a6c8f9899b"}),this.persist?e("gov-button",{"on-gov-click":this.hideContent.bind(this),color:this.color,size:this.size,type:"base"},e("gov-icon",{slot:"icon-start",name:"x-lg",type:"components"})):null)}get host(){return this}static get watchers(){return{isVisible:["visibleContent"]}}},[260,"gov-tooltip-content",{color:[1],size:[1],persist:[4],isVisible:[1028,"is-visible"],parentId:[1,"parent-id"]},undefined,{isVisible:["visibleContent"]}]);function h(){if(typeof customElements==="undefined"){return}const t=["gov-tooltip-content","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-tooltip-content":if(!customElements.get(t)){customElements.define(t,f)}break;case"gov-button":if(!customElements.get(t)){l()}break;case"gov-icon":if(!customElements.get(t)){r()}break}}))}h();const m=f;const d=h;export{m as GovTooltipContent,d as defineCustomElement};
1
+ import{p as t,H as s,h as e,a as i}from"./index.js";import{T as o,a as n,d as a}from"./p-DfI_0WW6.js";import{t as c}from"./p-DfJDyRCE.js";import{d as l}from"./p-CXbpWAIF.js";import{d as r}from"./p-B03Rpjps.js";const f=t(class t extends s{constructor(){super();this.__registerHost();this.color=o.PRIMARY;this.size=n._M;this.persist=false;this.isVisible=false;this.parentId=null}visibleContent(t){clearTimeout(this.timeout);if(t===false){this.timeout=setTimeout((()=>{this.host.style.visibility="hidden"}),250)}else{this.host.style.visibility="visible"}}hideContent(){this.isVisible=false;this.persist=false;const t=document.getElementById(this.parentId);if(t){t.hide().catch()}}render(){return e(i,{key:"8392d10d5011527087e4ae06876817cf57abcaf3",class:a.root,role:"tooltip",hidden:!this.isVisible,"aria-hidden":!c(this.isVisible),"is-visible":this.isVisible},e("slot",{key:"2b068ab878ff4dff51ff93c656a0b6a6c8f9899b"}),this.persist?e("gov-button",{"on-gov-click":this.hideContent.bind(this),color:this.color,size:this.size,type:"base"},e("gov-icon",{slot:"icon-start",name:"x-lg",type:"components"})):null)}get host(){return this}static get watchers(){return{isVisible:["visibleContent"]}}},[260,"gov-tooltip-content",{color:[1],size:[1],persist:[4],isVisible:[1028,"is-visible"],parentId:[1,"parent-id"]},undefined,{isVisible:["visibleContent"]}]);function h(){if(typeof customElements==="undefined"){return}const t=["gov-tooltip-content","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-tooltip-content":if(!customElements.get(t)){customElements.define(t,f)}break;case"gov-button":if(!customElements.get(t)){l()}break;case"gov-icon":if(!customElements.get(t)){r()}break}}))}h();const p=f;const m=h;export{p as GovTooltipContent,m as defineCustomElement};
2
2
  //# sourceMappingURL=gov-tooltip-content.js.map
@@ -1,2 +1,2 @@
1
- import{p as s,H as t,c as i,h as e,a}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{b as n,c}from"./p-CZr7GBEo.js";import{c as l}from"./p-vN03FcXN.js";import{g as d,b as h,c as r}from"./p-DfJDyRCE.js";import{d as m}from"./p-WmFNIuTf.js";var p;(function(s){s["DIV"]="div";s["BUTTON"]="button"})(p||(p={}));const f=s(class s extends t{constructor(){super();this.__registerHost();this.govChange=i(this,"gov-change");this.hydrated=false;this.color="primary";this.size="m";this.collapsible=false;this.disabled=false;this.isExpanded=false;this.h=d(this.host);this.triggerId=l("GovWizardItem");this.contentId=l("GovWizardContent")}validateColor(s){o(c,s,n.root)}emmitChange(){this.govChange.emit({expanded:this.isExpanded,component:n.root})}componentWillLoad(){this.validateColor(this.color)}connectedCallback(){this.hydrated=true}render(){const s=this.identifier||this.triggerId;const t=this.collapsible?p.BUTTON:p.DIV;const i=this.h.hasSlot("prefix")&&e("span",{key:"29a8a14d2b78d6b1b9f28000b49a1b4db4218acf",class:n.prefix},e("slot",{key:"22c9d3c3865969b3f6b0385cdbaa53cd4b2913b4",name:"prefix"}));return e(a,{key:"6a20df539672c0c4d6ca6605644276e489c2fd0a",class:this.h.classes(n.root),"is-expanded":this.isExpanded,color:this.color,size:this.size,role:"listitem",collapsible:this.collapsible,hydrated:this.hydrated},e("div",{key:"016820266b853c6d9edfae4542cab1e1c1b82b94",class:n.header},i,this.collapsible?e(t,{id:s,class:this.h.classes(n.label),"aria-expanded":h(this.isExpanded),"aria-controls":this.contentId,disabled:this.disabled,"aria-disabled":r(this.disabled),onClick:s=>{s.preventDefault();s.stopPropagation();this.toggle()}},e("span",{class:n.headline},e("slot",{name:"headline"}),this.collapsible&&e("gov-icon",{class:n.chevron,name:"chevron-down",type:"components"})),e("slot",{name:"annotation"})):e(t,{class:this.h.classes(n.label)},e("span",{class:n.headline},e("slot",{name:"headline"}),this.collapsible&&e("gov-icon",{class:n.chevron,name:"chevron-down",type:"components"})),e("slot",{name:"annotation"}))),this.collapsible?e("div",{class:n.content,id:this.contentId,"aria-hidden":h(!this.isExpanded),hidden:!this.isExpanded,"aria-labelledby":s},e("slot",null)):e("div",{class:n.content,"aria-hidden":h(!this.isExpanded),hidden:!this.isExpanded},e("slot",null)))}async open(){this.isExpanded=true;this.emmitChange()}async close(){this.isExpanded=false;this.emmitChange()}async toggle(){this.isExpanded=!this.isExpanded;this.emmitChange()}async currentState(){return this.isExpanded}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[260,"gov-wizard-item",{color:[1],size:[1],identifier:[1],collapsible:[4],disabled:[4],isExpanded:[1028,"is-expanded"],open:[64],close:[64],toggle:[64],currentState:[64]},undefined,{color:["validateColor"]}]);function b(){if(typeof customElements==="undefined"){return}const s=["gov-wizard-item","gov-icon"];s.forEach((s=>{switch(s){case"gov-wizard-item":if(!customElements.get(s)){customElements.define(s,f)}break;case"gov-icon":if(!customElements.get(s)){m()}break}}))}b();const u=f;const v=b;export{u as GovWizardItem,v as defineCustomElement};
1
+ import{p as s,H as t,c as i,h as e,a}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{b as n,c}from"./p-CZr7GBEo.js";import{c as l}from"./p-vN03FcXN.js";import{g as d,b as h,c as r}from"./p-DfJDyRCE.js";import{d as m}from"./p-B03Rpjps.js";var p;(function(s){s["DIV"]="div";s["BUTTON"]="button"})(p||(p={}));const f=s(class s extends t{constructor(){super();this.__registerHost();this.govChange=i(this,"gov-change");this.hydrated=false;this.color="primary";this.size="m";this.collapsible=false;this.disabled=false;this.isExpanded=false;this.h=d(this.host);this.triggerId=l("GovWizardItem");this.contentId=l("GovWizardContent")}validateColor(s){o(c,s,n.root)}emmitChange(){this.govChange.emit({expanded:this.isExpanded,component:n.root})}componentWillLoad(){this.validateColor(this.color)}connectedCallback(){this.hydrated=true}render(){const s=this.identifier||this.triggerId;const t=this.collapsible?p.BUTTON:p.DIV;const i=this.h.hasSlot("prefix")&&e("span",{key:"29a8a14d2b78d6b1b9f28000b49a1b4db4218acf",class:n.prefix},e("slot",{key:"22c9d3c3865969b3f6b0385cdbaa53cd4b2913b4",name:"prefix"}));return e(a,{key:"6a20df539672c0c4d6ca6605644276e489c2fd0a",class:this.h.classes(n.root),"is-expanded":this.isExpanded,color:this.color,size:this.size,role:"listitem",collapsible:this.collapsible,hydrated:this.hydrated},e("div",{key:"016820266b853c6d9edfae4542cab1e1c1b82b94",class:n.header},i,this.collapsible?e(t,{id:s,class:this.h.classes(n.label),"aria-expanded":h(this.isExpanded),"aria-controls":this.contentId,disabled:this.disabled,"aria-disabled":r(this.disabled),onClick:s=>{s.preventDefault();s.stopPropagation();this.toggle()}},e("span",{class:n.headline},e("slot",{name:"headline"}),this.collapsible&&e("gov-icon",{class:n.chevron,name:"chevron-down",type:"components"})),e("slot",{name:"annotation"})):e(t,{class:this.h.classes(n.label)},e("span",{class:n.headline},e("slot",{name:"headline"}),this.collapsible&&e("gov-icon",{class:n.chevron,name:"chevron-down",type:"components"})),e("slot",{name:"annotation"}))),this.collapsible?e("div",{class:n.content,id:this.contentId,"aria-hidden":h(!this.isExpanded),hidden:!this.isExpanded,"aria-labelledby":s},e("slot",null)):e("div",{class:n.content,"aria-hidden":h(!this.isExpanded),hidden:!this.isExpanded},e("slot",null)))}async open(){this.isExpanded=true;this.emmitChange()}async close(){this.isExpanded=false;this.emmitChange()}async toggle(){this.isExpanded=!this.isExpanded;this.emmitChange()}async currentState(){return this.isExpanded}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[260,"gov-wizard-item",{color:[1],size:[1],identifier:[1],collapsible:[4],disabled:[4],isExpanded:[1028,"is-expanded"],open:[64],close:[64],toggle:[64],currentState:[64]},undefined,{color:["validateColor"]}]);function b(){if(typeof customElements==="undefined"){return}const s=["gov-wizard-item","gov-icon"];s.forEach((s=>{switch(s){case"gov-wizard-item":if(!customElements.get(s)){customElements.define(s,f)}break;case"gov-icon":if(!customElements.get(s)){m()}break}}))}b();const u=f;const v=b;export{u as GovWizardItem,v as defineCustomElement};
2
2
  //# sourceMappingURL=gov-wizard-item.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as i,h as e,a as o}from"./index.js";import{t as h,b as a}from"./p-DfJDyRCE.js";import{v as n}from"./p-BKP-F1qP.js";import{c as l}from"./p-vN03FcXN.js";import{d as r,t as c,h as m}from"./p-CQvUntGY.js";import{F as u,a as d}from"./p-9imLQpxb.js";import{p as f}from"./p-B0hcuYXk.js";import{A as p,a as v,i as g}from"./p-CXgom82_.js";import{d as b}from"./p-8QWehgod.js";import{d as y}from"./p-Btw6IAjS.js";import{d as k}from"./p-WmFNIuTf.js";import{d as w}from"./p-wlTP5ZEU.js";const j=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govInput=i(this,"gov-input");this.govSelect=i(this,"gov-select");this.templateResolver=t=>t[this.nameKey];this.value="";this.size="m";this.nameKey="name";this.required=false;this.disabled=false;this.minlength=3;this.throttleTime=200;this.messageEmpty="Nebyly nalezeny žádné výsledky";this.processing=false;this.arrowCounter=-1;this.list=[];this.inheritedAttributes={};this.listBoxId=l("GovListBox")}validateSize(t){n(d,t,u.root)}watchOptions(t){this.setOptions(f(t)).catch()}onArrowUp(){if(this.arrowCounter>0){this.arrowCounter=this.arrowCounter-1;this.moveToView().finally()}}onArrowDown(){if(this.arrowCounter<this.list.length-1){this.arrowCounter=this.arrowCounter+1;this.moveToView().finally()}}async moveToView(){await r(200);const t=this.listRef.offsetHeight;const s=this.listRef.querySelector('li[aria-selected="true"]');if(s&&t){const t=s.offsetTop;this.listRef.scrollTo({top:t,behavior:"smooth"})}}doSearch(){if(Number.isInteger(this.minlength)&&this.isValueAccepted===false&&this.minlength){this.list=[];this.arrowCounter=-1;this.processing=false;return}if(this.searchCallback){this.processing=true;this.searchCallback(this.value).then((t=>this.list=t)).catch((()=>this.list=[])).finally((()=>{this.arrowCounter=-1;this.processing=false}))}}clearList(){const t=f(this.options);if(t.length===0){this.list=[]}}get isValueAccepted(){if(typeof this.value==="string"){return this.value.length>=this.minlength}else{return false}}componentDidLoad(){this.attributeObserver=new p(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(v)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=g(this.host)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){return e(o,{key:"22d9a81f648404e942ee680acddda83165af4dc2",class:u.root,size:this.size},e("gov-form-input",Object.assign({key:"4b60cfea2591a4bde6c97dee3c11b75461db3c5d",placeholder:this.placeholder,name:this.name,disabled:this.disabled,readonly:this.readonly,autocomplete:false,size:this.size,required:this.required,invalid:this.invalid,success:this.success,role:"searchbox",value:this.value,minlength:this.minlength,maxlength:this.maxlength,"on-gov-input":c(this.onInputHandler.bind(this),this.throttleTime),"on-gov-keyup":this.onKeyUpHandler.bind(this),"on-gov-keydown":this.onKeyDownHandler.bind(this),"on-gov-focus":this.onFocusHandler.bind(this),"on-gov-blur":this.onBlurHandler.bind(this)},this.inheritedAttributes,{"aria-autocomplete":"list","aria-owns":[this.listBoxId,this.inheritedAttributes["aria-owns"]].join(" "),"aria-expanded":a(this.list.length&&this.focused?true:false),ref:t=>this.inputRef=t}),e("slot",{key:"739722e49f8062d3ebec84dc2a1f840413439c7c",name:"validation-icon"}),e("slot",{key:"6f3b3c7695a5c7d56276fbc41f854b9afff3800e",name:"icon-end"})),e("ul",{key:"52b34c8501d976b438350104594b02137d40a386",class:u.list,role:"listbox","aria-hidden":h(!this.focused),hidden:!this.focused,id:this.listBoxId,ref:t=>this.listRef=t},this.focused&&this.list.length===0&&this.processing===false&&this.isValueAccepted&&this.messageEmpty?e("li",{class:u.empty},this.messageEmpty):null,this.focused&&this.processing===true&&this.isValueAccepted?e("li",{class:u.loading},e("gov-skeleton",{size:"m"})):null,this.focused?this.list.map(((t,s)=>{const i=this.arrowCounter===s;return e("li",{class:u.item,innerHTML:this.templateResolver(t,i),role:"option","aria-posinset":s,tabindex:i?0:-1,"aria-setsize":this.list.length,onTouchStart:t=>this.onSelectHandler(t,s),onMouseDown:t=>this.onSelectHandler(t,s),"aria-selected":h(i)},e("slot",{name:"list-item-left"}),e("slot",{name:"list-item-right"}))})):null))}onFocusHandler(t){this.focused=true;this.arrowCounter=-1;if(this.isValueAccepted&&this.searchCallback){this.doSearch()}t.stopPropagation();this.govFocus.emit({originalEvent:t,component:u.root,value:this.value,selected:null})}onBlurHandler(t){this.focused=false;this.clearList();this.arrowCounter=-1;t.stopPropagation();this.govBlur.emit({originalEvent:t,component:u.root,value:this.value,selected:null})}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({originalEvent:t,component:u.root,value:this.value,selected:null});this.doSearch()}onSelectHandler(t,s=-1){let i=null;if(s>-1){i=this.list[s]}else if(m(this.arrowCounter,this.list)){i=this.list[this.arrowCounter]}if(i){this.govSelect.emit({component:u.root,value:this.value,selected:i,originalEvent:t});this.clearList();if(m(this.nameKey,i)&&typeof i[this.nameKey]==="string"){this.value=i[this.nameKey]}}}onKeyUpHandler(t){const s=t.detail.originalEvent;t.stopPropagation();s.stopPropagation();if(s.keyCode===38)this.onArrowUp();else if(s.keyCode===40)this.onArrowDown();else if(s.keyCode===13){t.preventDefault();s.preventDefault();this.onSelectHandler(t)}}onKeyDownHandler(t){const s=t.detail.originalEvent;t.stopPropagation();s.stopPropagation();if(s.keyCode===13){t.preventDefault();s.preventDefault()}}async setFocus(t){return this.inputRef.focus(t)}async setBlur(){return this.inputRef.blur()}async setOptions(t){this.list=Array.isArray(t)?t:[];this.arrowCounter=-1}async clearValue(){this.value="";this.inputRef.value="";await this.inputRef.clearValue()}async setProcessing(t){this.processing=t}async setSearchCallback(t){this.searchCallback=t}async setTemplateResolver(t){this.templateResolver=t}get host(){return this}static get watchers(){return{size:["validateSize"],options:["watchOptions"]}}},[260,"gov-form-autocomplete",{value:[1537],options:[1537],identifier:[1],success:[4],size:[1],nameKey:[1,"name-key"],name:[1],required:[4],disabled:[516],placeholder:[1],readonly:[4],invalid:[4],minlength:[2],maxlength:[2],throttleTime:[2,"throttle-time"],messageEmpty:[1,"message-empty"],focused:[32],processing:[32],arrowCounter:[32],list:[32],inheritedAttributes:[32],setFocus:[64],setBlur:[64],setOptions:[64],clearValue:[64],setProcessing:[64],setSearchCallback:[64],setTemplateResolver:[64]},undefined,{size:["validateSize"],options:["watchOptions"]}]);function E(){if(typeof customElements==="undefined"){return}const t=["gov-form-autocomplete","gov-button","gov-form-input","gov-icon","gov-skeleton"];t.forEach((t=>{switch(t){case"gov-form-autocomplete":if(!customElements.get(t)){customElements.define(t,j)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-input":if(!customElements.get(t)){y()}break;case"gov-icon":if(!customElements.get(t)){k()}break;case"gov-skeleton":if(!customElements.get(t)){w()}break}}))}E();export{j as G,E as d};
2
- //# sourceMappingURL=p-CSjqhysd.js.map
1
+ import{p as t,H as s,c as i,h as e,a as o}from"./index.js";import{t as h,b as a}from"./p-DfJDyRCE.js";import{v as n}from"./p-BKP-F1qP.js";import{c as l}from"./p-vN03FcXN.js";import{d as r,t as c,h as m}from"./p-CQvUntGY.js";import{F as u,a as d}from"./p-9imLQpxb.js";import{p as f}from"./p-B0hcuYXk.js";import{A as p,a as v,i as g}from"./p-CXgom82_.js";import{d as b}from"./p-CXbpWAIF.js";import{d as y}from"./p-DJ1DN3ks.js";import{d as k}from"./p-B03Rpjps.js";import{d as w}from"./p-wlTP5ZEU.js";const j=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govInput=i(this,"gov-input");this.govSelect=i(this,"gov-select");this.templateResolver=t=>t[this.nameKey];this.value="";this.size="m";this.nameKey="name";this.required=false;this.disabled=false;this.minlength=3;this.throttleTime=200;this.messageEmpty="Nebyly nalezeny žádné výsledky";this.processing=false;this.arrowCounter=-1;this.list=[];this.inheritedAttributes={};this.listBoxId=l("GovListBox")}validateSize(t){n(d,t,u.root)}watchOptions(t){this.setOptions(f(t)).catch()}onArrowUp(){if(this.arrowCounter>0){this.arrowCounter=this.arrowCounter-1;this.moveToView().finally()}}onArrowDown(){if(this.arrowCounter<this.list.length-1){this.arrowCounter=this.arrowCounter+1;this.moveToView().finally()}}async moveToView(){await r(200);const t=this.listRef.offsetHeight;const s=this.listRef.querySelector('li[aria-selected="true"]');if(s&&t){const t=s.offsetTop;this.listRef.scrollTo({top:t,behavior:"smooth"})}}doSearch(){if(Number.isInteger(this.minlength)&&this.isValueAccepted===false&&this.minlength){this.list=[];this.arrowCounter=-1;this.processing=false;return}if(this.searchCallback){this.processing=true;this.searchCallback(this.value).then((t=>this.list=t)).catch((()=>this.list=[])).finally((()=>{this.arrowCounter=-1;this.processing=false}))}}clearList(){const t=f(this.options);if(t.length===0){this.list=[]}}get isValueAccepted(){if(typeof this.value==="string"){return this.value.length>=this.minlength}else{return false}}componentDidLoad(){this.attributeObserver=new p(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(v)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=g(this.host)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){return e(o,{key:"22d9a81f648404e942ee680acddda83165af4dc2",class:u.root,size:this.size},e("gov-form-input",Object.assign({key:"4b60cfea2591a4bde6c97dee3c11b75461db3c5d",placeholder:this.placeholder,name:this.name,disabled:this.disabled,readonly:this.readonly,autocomplete:false,size:this.size,required:this.required,invalid:this.invalid,success:this.success,role:"searchbox",value:this.value,minlength:this.minlength,maxlength:this.maxlength,"on-gov-input":c(this.onInputHandler.bind(this),this.throttleTime),"on-gov-keyup":this.onKeyUpHandler.bind(this),"on-gov-keydown":this.onKeyDownHandler.bind(this),"on-gov-focus":this.onFocusHandler.bind(this),"on-gov-blur":this.onBlurHandler.bind(this)},this.inheritedAttributes,{"aria-autocomplete":"list","aria-owns":[this.listBoxId,this.inheritedAttributes["aria-owns"]].join(" "),"aria-expanded":a(this.list.length&&this.focused?true:false),ref:t=>this.inputRef=t}),e("slot",{key:"739722e49f8062d3ebec84dc2a1f840413439c7c",name:"validation-icon"}),e("slot",{key:"6f3b3c7695a5c7d56276fbc41f854b9afff3800e",name:"icon-end"})),e("ul",{key:"52b34c8501d976b438350104594b02137d40a386",class:u.list,role:"listbox","aria-hidden":h(!this.focused),hidden:!this.focused,id:this.listBoxId,ref:t=>this.listRef=t},this.focused&&this.list.length===0&&this.processing===false&&this.isValueAccepted&&this.messageEmpty?e("li",{class:u.empty},this.messageEmpty):null,this.focused&&this.processing===true&&this.isValueAccepted?e("li",{class:u.loading},e("gov-skeleton",{size:"m"})):null,this.focused?this.list.map(((t,s)=>{const i=this.arrowCounter===s;return e("li",{class:u.item,innerHTML:this.templateResolver(t,i),role:"option","aria-posinset":s,tabindex:i?0:-1,"aria-setsize":this.list.length,onTouchStart:t=>this.onSelectHandler(t,s),onMouseDown:t=>this.onSelectHandler(t,s),"aria-selected":h(i)},e("slot",{name:"list-item-left"}),e("slot",{name:"list-item-right"}))})):null))}onFocusHandler(t){this.focused=true;this.arrowCounter=-1;if(this.isValueAccepted&&this.searchCallback){this.doSearch()}t.stopPropagation();this.govFocus.emit({originalEvent:t,component:u.root,value:this.value,selected:null})}onBlurHandler(t){this.focused=false;this.clearList();this.arrowCounter=-1;t.stopPropagation();this.govBlur.emit({originalEvent:t,component:u.root,value:this.value,selected:null})}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({originalEvent:t,component:u.root,value:this.value,selected:null});this.doSearch()}onSelectHandler(t,s=-1){let i=null;if(s>-1){i=this.list[s]}else if(m(this.arrowCounter,this.list)){i=this.list[this.arrowCounter]}if(i){this.govSelect.emit({component:u.root,value:this.value,selected:i,originalEvent:t});this.clearList();if(m(this.nameKey,i)&&typeof i[this.nameKey]==="string"){this.value=i[this.nameKey]}}}onKeyUpHandler(t){const s=t.detail.originalEvent;t.stopPropagation();s.stopPropagation();if(s.keyCode===38)this.onArrowUp();else if(s.keyCode===40)this.onArrowDown();else if(s.keyCode===13){t.preventDefault();s.preventDefault();this.onSelectHandler(t)}}onKeyDownHandler(t){const s=t.detail.originalEvent;t.stopPropagation();s.stopPropagation();if(s.keyCode===13){t.preventDefault();s.preventDefault()}}async setFocus(t){return this.inputRef.focus(t)}async setBlur(){return this.inputRef.blur()}async setOptions(t){this.list=Array.isArray(t)?t:[];this.arrowCounter=-1}async clearValue(){this.value="";this.inputRef.value="";await this.inputRef.clearValue()}async setProcessing(t){this.processing=t}async setSearchCallback(t){this.searchCallback=t}async setTemplateResolver(t){this.templateResolver=t}get host(){return this}static get watchers(){return{size:["validateSize"],options:["watchOptions"]}}},[260,"gov-form-autocomplete",{value:[1537],options:[1537],identifier:[1],success:[4],size:[1],nameKey:[1,"name-key"],name:[1],required:[4],disabled:[516],placeholder:[1],readonly:[4],invalid:[4],minlength:[2],maxlength:[2],throttleTime:[2,"throttle-time"],messageEmpty:[1,"message-empty"],focused:[32],processing:[32],arrowCounter:[32],list:[32],inheritedAttributes:[32],setFocus:[64],setBlur:[64],setOptions:[64],clearValue:[64],setProcessing:[64],setSearchCallback:[64],setTemplateResolver:[64]},undefined,{size:["validateSize"],options:["watchOptions"]}]);function E(){if(typeof customElements==="undefined"){return}const t=["gov-form-autocomplete","gov-button","gov-form-input","gov-icon","gov-skeleton"];t.forEach((t=>{switch(t){case"gov-form-autocomplete":if(!customElements.get(t)){customElements.define(t,j)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-input":if(!customElements.get(t)){y()}break;case"gov-icon":if(!customElements.get(t)){k()}break;case"gov-skeleton":if(!customElements.get(t)){w()}break}}))}E();export{j as G,E as d};
2
+ //# sourceMappingURL=p-9COKmDO0.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,h as e,a as n}from"./index.js";import{p as o}from"./p-CQvUntGY.js";import{C as i}from"./p-U40vKHrs.js";import{S as r}from"./p-BcQO4NH2.js";import{a,i as c,b as l}from"./p-DrPpH_9c.js";import{g as h}from"./p-DfJDyRCE.js";import{v as u}from"./p-BKP-F1qP.js";o(r,["_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL","_5XL"]);const f=o(i,["DEFAULT","PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING","DISABLED","WHITE","BLACK"]);var m;(function(t){t["BASIC"]="basic";t["COMPLEX"]="complex";t["COLORED"]="colored"})(m||(m={}));const p={root:"gov-icon"};const d="4.2.7";const v=()=>d;const w={};const g={};const y=t=>t.startsWith("http://")||t.startsWith("https://");const C=(t,s,e)=>{if(y(t)){return`${t}/${e}/${s}.svg?v=${v()}`}return`${t}/${e}/${s}.svg`+`?v=${v()}`};async function D({name:t,type:s}){const e=s+"-"+t;if(w[e]){return w[e]}if(!g[e]){g[e]=fetch(C(a(),t,s)).then((t=>{if(t.status===200){return t.text()}else{throw new Error("Gov Icon doesn't exists")}}))}const n=await g[e];w[e]=n;return n}const E=(t,s,e)=>{if(!c){return}let n="";document.cookie=`${t}=${encodeURIComponent(s)}${n}; path=/`};const I=t=>{if(!c){return null}const s=t+"=";const e=document.cookie.split(";");for(let t=0;t<e.length;t++){let n=e[t].trim();if(n.startsWith(s)){return decodeURIComponent(n.substring(s.length))}}return null};const L=t=>{try{const s=new DOMParser;const e=s.parseFromString(t,"image/svg+xml");const n=e.querySelector("parsererror");if(n){return false}const o=e.documentElement;if(o.tagName.toLowerCase()!=="svg"){return false}return true}catch(t){return false}};const R=t(class t extends s{constructor(){super();this.__registerHost();this.name=null;this.type="components";this.visible=false;this.error=false;this.h=h(this.host)}validateSize(t){u(r,t,p.root)}validateColor(t){u(f,t,p.root)}async loadIconPathData(){const{name:t,visible:s}=this;if(!t||!s){return}await this.loadIcon()}connectedCallback(){if(l()){this.visible=true;this.loadIconPathData().finally()}else{this.waitUntilVisible((async()=>{this.visible=true;await this.loadIconPathData()}))}}disconnectedCallback(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}}async componentWillLoad(){this.validateSize(this.size);this.validateColor(this.color);await this.loadIconPathData()}waitUntilVisible(t){if(typeof window==="undefined"||!window.IntersectionObserver){t();return}this.intersectionObserver=new IntersectionObserver((s=>{s.forEach((s=>{if(s.isIntersecting){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}t()}}))}),{rootMargin:"50px"});this.intersectionObserver.observe(this.host)}async loadIcon(){try{const{name:t,type:s}=this;const e=await D({name:t,type:s});const n=L(e);this.host.innerHTML=n?e:null}catch(t){this.host.innerHTML="";this.error=true}}render(){if(this.error){return null}return e(n,{class:this.h.classes(p.root),size:this.size,color:this.color})}static get assetsDirs(){return["assets"]}get host(){return this}static get watchers(){return{size:["validateSize"],color:["validateColor"],name:["loadIconPathData"]}}},[256,"gov-icon",{size:[513],color:[513],name:[513],type:[513],visible:[32],error:[32]},undefined,{size:["validateSize"],color:["validateColor"],name:["loadIconPathData"]}]);function S(){if(typeof customElements==="undefined"){return}const t=["gov-icon"];t.forEach((t=>{switch(t){case"gov-icon":if(!customElements.get(t)){customElements.define(t,R)}break}}))}S();export{R as G,S as d,I as g,E as s};
2
- //# sourceMappingURL=p-WmFNIuTf.js.map
1
+ import{p as t,H as s,h as e,a as n}from"./index.js";import{p as o}from"./p-CQvUntGY.js";import{C as i}from"./p-U40vKHrs.js";import{S as r}from"./p-BcQO4NH2.js";import{a,i as c,b as l}from"./p-DrPpH_9c.js";import{g as h}from"./p-DfJDyRCE.js";import{v as u}from"./p-BKP-F1qP.js";o(r,["_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL","_5XL"]);const f=o(i,["DEFAULT","PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING","DISABLED","WHITE","BLACK"]);var m;(function(t){t["BASIC"]="basic";t["COMPLEX"]="complex";t["COLORED"]="colored"})(m||(m={}));const p={root:"gov-icon"};const d="4.2.9";const v=()=>d;const w={};const g={};const y=t=>t.startsWith("http://")||t.startsWith("https://");const C=(t,s,e)=>{if(y(t)){return`${t}/${e}/${s}.svg?v=${v()}`}return`${t}/${e}/${s}.svg`+`?v=${v()}`};async function D({name:t,type:s}){const e=s+"-"+t;if(w[e]){return w[e]}if(!g[e]){g[e]=fetch(C(a(),t,s)).then((t=>{if(t.status===200){return t.text()}else{throw new Error("Gov Icon doesn't exists")}}))}const n=await g[e];w[e]=n;return n}const E=(t,s,e)=>{if(!c){return}let n="";document.cookie=`${t}=${encodeURIComponent(s)}${n}; path=/`};const I=t=>{if(!c){return null}const s=t+"=";const e=document.cookie.split(";");for(let t=0;t<e.length;t++){let n=e[t].trim();if(n.startsWith(s)){return decodeURIComponent(n.substring(s.length))}}return null};const L=t=>{try{const s=new DOMParser;const e=s.parseFromString(t,"image/svg+xml");const n=e.querySelector("parsererror");if(n){return false}const o=e.documentElement;if(o.tagName.toLowerCase()!=="svg"){return false}return true}catch(t){return false}};const R=t(class t extends s{constructor(){super();this.__registerHost();this.name=null;this.type="components";this.visible=false;this.error=false;this.h=h(this.host)}validateSize(t){u(r,t,p.root)}validateColor(t){u(f,t,p.root)}async loadIconPathData(){const{name:t,visible:s}=this;if(!t||!s){return}await this.loadIcon()}connectedCallback(){if(l()){this.visible=true;this.loadIconPathData().finally()}else{this.waitUntilVisible((async()=>{this.visible=true;await this.loadIconPathData()}))}}disconnectedCallback(){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}}async componentWillLoad(){this.validateSize(this.size);this.validateColor(this.color);await this.loadIconPathData()}waitUntilVisible(t){if(typeof window==="undefined"||!window.IntersectionObserver){t();return}this.intersectionObserver=new IntersectionObserver((s=>{s.forEach((s=>{if(s.isIntersecting){if(this.intersectionObserver){this.intersectionObserver.disconnect();this.intersectionObserver=null}t()}}))}),{rootMargin:"50px"});this.intersectionObserver.observe(this.host)}async loadIcon(){try{const{name:t,type:s}=this;const e=await D({name:t,type:s});const n=L(e);this.host.innerHTML=n?e:null}catch(t){this.host.innerHTML="";this.error=true}}render(){if(this.error){return null}return e(n,{class:this.h.classes(p.root),size:this.size,color:this.color})}static get assetsDirs(){return["assets"]}get host(){return this}static get watchers(){return{size:["validateSize"],color:["validateColor"],name:["loadIconPathData"]}}},[256,"gov-icon",{size:[513],color:[513],name:[513],type:[513],visible:[32],error:[32]},undefined,{size:["validateSize"],color:["validateColor"],name:["loadIconPathData"]}]);function S(){if(typeof customElements==="undefined"){return}const t=["gov-icon"];t.forEach((t=>{switch(t){case"gov-icon":if(!customElements.get(t)){customElements.define(t,R)}break}}))}S();export{R as G,S as d,I as g,E as s};
2
+ //# sourceMappingURL=p-B03Rpjps.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,c as i,h as s,a}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{B as n,a as r,b as c,N as h}from"./p-CNqoJU2V.js";import{g as l,c as d}from"./p-DfJDyRCE.js";import{S as f}from"./p-BcQO4NH2.js";import{a as p}from"./p-Nvj7WFs_.js";import{c as b}from"./p-DrPpH_9c.js";import{d as m}from"./p-CQvUntGY.js";import{A as u,a as v,i as y}from"./p-CXgom82_.js";import{d as g}from"./p-WmFNIuTf.js";function j(t){if(typeof t==="string"){return["true","True","TRUE","1"].indexOf(t)!==-1}else if(typeof t==="number"){return t>0}else if(typeof t==="boolean"){return t}else{return t?true:false}}var k;(function(t){t["A"]="a";t["BUTTON"]="button"})(k||(k={}));const C=t(class t extends e{constructor(){super();this.__registerHost();this.govClick=i(this,"gov-click");this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.hydrated=false;this.size="m";this.expanded=false;this.expandedMobile=false;this.disabled=false;this.nativeType="button";this.tabindex=0;this.focusable=true;this.inheritedAttributes={};this.h=l(this.host)}validateColor(t){o(r,t,n.root)}validateType(t){o(c,t,n.root)}validateSize(t){o(f,t,n.root)}validateNativeType(t){o(h,t,n.root)}componentDidLoad(){this.attributeObserver=new u(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(v)}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}componentWillLoad(){this.validateColor(this.color);this.validateType(this.type);this.validateSize(this.size);this.validateNativeType(this.nativeType);this.inheritedAttributes=y(this.host)}async componentDidRender(){if(b()){await m(500);await this.validateAccessibility()}}connectedCallback(){this.hydrated=true}render(){const t=this.href?k.A:k.BUTTON;const e=t===k.A?undefined:this.nativeType;return s(a,{key:"121d16797366f30c7d5cd3af18171cb8b22bc789",size:this.size,hydrated:this.hydrated,color:this.color,class:this.h.classes(n.root),type:this.type},s(t,Object.assign({key:"ad4a83ffacbb5360e81988e9e8d709611be7276e",class:"element",ref:t=>this.triggerRef=t,onClick:this.onClickHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),disabled:this.disabled,id:this.identifier,href:this.href,target:this.target,download:this.download,hreflang:this.hreflang,rel:this.rel,name:this.name,type:e,tabindex:this.disabled?"-1":this.tabindex},this.inheritedAttributes,{"aria-disabled":d(this.disabled)}),j(this.loading)&&!this.h.hasSlot("icon-end")&&s("gov-icon",{key:"449464e921e45abda79ccbb855a1ad94b244fd08",name:"loader",class:"gov-spin-animation",type:"components"}),this.h.hasSlot("icon-start")&&s("slot",{key:"fa432280096722ed9fc96de54b1ac4c4213f635f",name:"icon-start"}),s("slot",{key:"2b3121e1c8ad64cf84922bb328850c2e32cbf2a7"}),this.h.hasSlot("icon-end")&&s("slot",{key:"406b3f6413eb0cd206fcb059dfdfcaae6571083f",name:"icon-end"}),j(this.loading)&&this.h.hasSlot("icon-end")&&s("gov-icon",{key:"737635b06a56fb1ce7cc9d675f0588686b3867e4",name:"loader",class:"gov-spin-animation",type:"components"})))}onClickHandler(t){t.stopPropagation();if(this.disabled===false){this.govClick.emit({component:n.root,originalEvent:t,ref:this.host})}}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:n.root,originalEvent:t,ref:this.host})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:n.root,originalEvent:t,ref:this.host})}async setFocus(){this.triggerRef.focus()}async getRef(){return this.triggerRef}async validateAccessibility(){if(this.focusable){p(this.triggerRef.getAttribute("aria-label"),this.triggerRef.getAttribute("aria-labelledby"),n.root,this.host)}}get host(){return this}static get watchers(){return{color:["validateColor"],type:["validateType"],size:["validateSize"],nativeType:["validateNativeType"]}}},[260,"gov-button",{color:[513],size:[513],type:[513],expanded:[516],expandedMobile:[516,"expanded-mobile"],name:[1],disabled:[516],nativeType:[1,"native-type"],href:[1],target:[1],download:[4],tabindex:[2],hreflang:[1],referrerpolicy:[1],rel:[1],loading:[1],focusable:[4],identifier:[1],inheritedAttributes:[32],setFocus:[64],getRef:[64],validateAccessibility:[64]},undefined,{color:["validateColor"],type:["validateType"],size:["validateSize"],nativeType:["validateNativeType"]}]);function T(){if(typeof customElements==="undefined"){return}const t=["gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-button":if(!customElements.get(t)){customElements.define(t,C)}break;case"gov-icon":if(!customElements.get(t)){g()}break}}))}T();export{C as G,T as d};
2
- //# sourceMappingURL=p-8QWehgod.js.map
1
+ import{p as t,H as e,c as i,h as s,a}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{B as n,a as r,b as c,N as h}from"./p-CNqoJU2V.js";import{g as l,c as d}from"./p-DfJDyRCE.js";import{S as f}from"./p-BcQO4NH2.js";import{a as p}from"./p-Nvj7WFs_.js";import{c as b}from"./p-DrPpH_9c.js";import{d as m}from"./p-CQvUntGY.js";import{A as u,a as v,i as y}from"./p-CXgom82_.js";import{d as g}from"./p-B03Rpjps.js";function j(t){if(typeof t==="string"){return["true","True","TRUE","1"].indexOf(t)!==-1}else if(typeof t==="number"){return t>0}else if(typeof t==="boolean"){return t}else{return t?true:false}}var k;(function(t){t["A"]="a";t["BUTTON"]="button"})(k||(k={}));const C=t(class t extends e{constructor(){super();this.__registerHost();this.govClick=i(this,"gov-click");this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.hydrated=false;this.size="m";this.expanded=false;this.expandedMobile=false;this.disabled=false;this.nativeType="button";this.tabindex=0;this.focusable=true;this.inheritedAttributes={};this.h=l(this.host)}validateColor(t){o(r,t,n.root)}validateType(t){o(c,t,n.root)}validateSize(t){o(f,t,n.root)}validateNativeType(t){o(h,t,n.root)}componentDidLoad(){this.attributeObserver=new u(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(v)}onAriaAttributeChange(t,e){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:e})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}componentWillLoad(){this.validateColor(this.color);this.validateType(this.type);this.validateSize(this.size);this.validateNativeType(this.nativeType);this.inheritedAttributes=y(this.host)}async componentDidRender(){if(b()){await m(500);await this.validateAccessibility()}}connectedCallback(){this.hydrated=true}render(){const t=this.href?k.A:k.BUTTON;const e=t===k.A?undefined:this.nativeType;return s(a,{key:"121d16797366f30c7d5cd3af18171cb8b22bc789",size:this.size,hydrated:this.hydrated,color:this.color,class:this.h.classes(n.root),type:this.type},s(t,Object.assign({key:"ad4a83ffacbb5360e81988e9e8d709611be7276e",class:"element",ref:t=>this.triggerRef=t,onClick:this.onClickHandler.bind(this),onFocus:this.onFocusHandler.bind(this),onBlur:this.onBlurHandler.bind(this),disabled:this.disabled,id:this.identifier,href:this.href,target:this.target,download:this.download,hreflang:this.hreflang,rel:this.rel,name:this.name,type:e,tabindex:this.disabled?"-1":this.tabindex},this.inheritedAttributes,{"aria-disabled":d(this.disabled)}),j(this.loading)&&!this.h.hasSlot("icon-end")&&s("gov-icon",{key:"449464e921e45abda79ccbb855a1ad94b244fd08",name:"loader",class:"gov-spin-animation",type:"components"}),this.h.hasSlot("icon-start")&&s("slot",{key:"fa432280096722ed9fc96de54b1ac4c4213f635f",name:"icon-start"}),s("slot",{key:"2b3121e1c8ad64cf84922bb328850c2e32cbf2a7"}),this.h.hasSlot("icon-end")&&s("slot",{key:"406b3f6413eb0cd206fcb059dfdfcaae6571083f",name:"icon-end"}),j(this.loading)&&this.h.hasSlot("icon-end")&&s("gov-icon",{key:"737635b06a56fb1ce7cc9d675f0588686b3867e4",name:"loader",class:"gov-spin-animation",type:"components"})))}onClickHandler(t){t.stopPropagation();if(this.disabled===false){this.govClick.emit({component:n.root,originalEvent:t,ref:this.host})}}onFocusHandler(t){t.stopPropagation();this.govFocus.emit({component:n.root,originalEvent:t,ref:this.host})}onBlurHandler(t){t.stopPropagation();this.govBlur.emit({component:n.root,originalEvent:t,ref:this.host})}async setFocus(){this.triggerRef.focus()}async getRef(){return this.triggerRef}async validateAccessibility(){if(this.focusable){p(this.triggerRef.getAttribute("aria-label"),this.triggerRef.getAttribute("aria-labelledby"),n.root,this.host)}}get host(){return this}static get watchers(){return{color:["validateColor"],type:["validateType"],size:["validateSize"],nativeType:["validateNativeType"]}}},[260,"gov-button",{color:[513],size:[513],type:[513],expanded:[516],expandedMobile:[516,"expanded-mobile"],name:[1],disabled:[516],nativeType:[1,"native-type"],href:[1],target:[1],download:[4],tabindex:[2],hreflang:[1],referrerpolicy:[1],rel:[1],loading:[1],focusable:[4],identifier:[1],inheritedAttributes:[32],setFocus:[64],getRef:[64],validateAccessibility:[64]},undefined,{color:["validateColor"],type:["validateType"],size:["validateSize"],nativeType:["validateNativeType"]}]);function T(){if(typeof customElements==="undefined"){return}const t=["gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-button":if(!customElements.get(t)){customElements.define(t,C)}break;case"gov-icon":if(!customElements.get(t)){g()}break}}))}T();export{C as G,T as d};
2
+ //# sourceMappingURL=p-CXbpWAIF.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as e,h as i,a}from"./index.js";import{g as o,d as n,e as c}from"./p-9imLQpxb.js";import{g as h,t as r,c as d}from"./p-DfJDyRCE.js";import{v as l}from"./p-BKP-F1qP.js";import{c as f}from"./p-vN03FcXN.js";import{p as u}from"./p-B0hcuYXk.js";import{t as m}from"./p-Cjg0wpDG.js";import{A as p,a as v,i as b}from"./p-CXgom82_.js";import{d as g}from"./p-WmFNIuTf.js";const w=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=e(this,"gov-focus");this.govBlur=e(this,"gov-blur");this.govChange=e(this,"gov-change");this.size="m";this.required=false;this.disabled=false;this.optionsState=[];this.inheritedAttributes={};this.h=h(this.host);this.f=o(this.h);this.selectId=f("GovSelect")}validateSize(t){l(c,t,n.root)}watchOptions(t){this.optionsState=u(t)}watchControlAttrs(){this.passControlAttrs()}watchValue(){this.markSelectedValue()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("type","select")}componentDidLoad(){this.attributeObserver=new p(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(v)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}componentWillLoad(){this.validateSize(this.size);this.markSelectedValue();this.optionsState=u(this.options);this.inheritedAttributes=b(this.host)}async componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required));m((()=>this.markSelectedValue()))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}markSelectedValue(){this.host.querySelectorAll("option").forEach((t=>{if(t.value===this.value){t.setAttribute("selected","selected")}else{t.removeAttribute("selected")}}))}render(){return i(a,{key:"209d5865fd6928823e03ea63773a8c5270e9ad32",class:n.root,size:this.size},this.h.hasSlot("prefix")&&i("slot",{key:"1fbe248e069d10cefc405a341dc4d601f3bc1afd",name:"prefix"}),i("span",{key:"1f250f81b6921a50099fa460493845cacff104de",class:"element"},i("select",Object.assign({key:"8ad3b59aa86d4ba926b19cea1f254a6800a50478",id:this.identifier||this.selectId,onFocus:this.onFocusHandler.bind(this),onChange:this.onChangeHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,name:this.name,disabled:this.disabled,ref:t=>this.selectRef=t},this.inheritedAttributes,{"aria-disabled":d(this.disabled),"aria-required":d(this.required),"aria-invalid":d(this.invalid)}),i("slot",{key:"a55508d3024ecccf9f78ea4046524b1c54f1f43f"}),Array.isArray(this.optionsState)&&this.optionsState.map((t=>{var s;return i("option",{value:t.value,selected:t.value===this.value,disabled:t===null||t===void 0?void 0:t.disabled},(s=t.label)!==null&&s!==void 0?s:t.value)}))),this.success&&i("gov-icon",{key:"8aed7cb4cc3d3dd7ac3b80812ded81674f1af748",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&i("gov-icon",{key:"95442149ab9cba9e138684577802e32a3adb5836",class:"validation-icon",name:"exclamation-lg",type:"components"}),i("gov-icon",{key:"917481bb56daf82689db8efddc1cf9fd724e47d5",class:"arrow-icon",name:"chevron-down",type:"components"})),this.h.hasSlot("sufix")&&i("slot",{key:"e58a7cb17bfed2046b31f1a2d70832194020963f",name:"sufix"}))}onFocusHandler(t){this.focused=true;this.govFocus.emit({component:n.root,originalEvent:t,value:this.value})}onBlurHandler(t){this.focused=false;this.govBlur.emit({component:n.root,originalEvent:t,value:this.value})}onChangeHandler(t){this.value=t.target.value;t.stopPropagation();this.govChange.emit({component:n.root,originalEvent:t,value:this.value})}async setFocus(t){return this.selectRef.focus(t)}async getRef(){return this.selectRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],options:["watchOptions"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"],value:["watchValue"]}}},[260,"gov-form-select",{value:[1537],options:[1537],identifier:[1],size:[1],name:[1],required:[4],success:[516],disabled:[516],invalid:[4],focused:[32],optionsState:[32],inheritedAttributes:[32],setFocus:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],options:["watchOptions"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"],value:["watchValue"]}]);function y(){if(typeof customElements==="undefined"){return}const t=["gov-form-select","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-select":if(!customElements.get(t)){customElements.define(t,w)}break;case"gov-icon":if(!customElements.get(t)){g()}break}}))}y();export{w as G,y as d};
2
- //# sourceMappingURL=p-C4pc6Rox.js.map
1
+ import{p as t,H as s,c as e,h as i,a}from"./index.js";import{g as o,d as n,e as c}from"./p-9imLQpxb.js";import{g as h,t as r,c as d}from"./p-DfJDyRCE.js";import{v as l}from"./p-BKP-F1qP.js";import{c as f}from"./p-vN03FcXN.js";import{p as u}from"./p-B0hcuYXk.js";import{t as p}from"./p-Cjg0wpDG.js";import{A as m,a as v,i as b}from"./p-CXgom82_.js";import{d as g}from"./p-B03Rpjps.js";const w=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=e(this,"gov-focus");this.govBlur=e(this,"gov-blur");this.govChange=e(this,"gov-change");this.size="m";this.required=false;this.disabled=false;this.optionsState=[];this.inheritedAttributes={};this.h=h(this.host);this.f=o(this.h);this.selectId=f("GovSelect")}validateSize(t){l(c,t,n.root)}watchOptions(t){this.optionsState=u(t)}watchControlAttrs(){this.passControlAttrs()}watchValue(){this.markSelectedValue()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("type","select")}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(v)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}componentWillLoad(){this.validateSize(this.size);this.markSelectedValue();this.optionsState=u(this.options);this.inheritedAttributes=b(this.host)}async componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required));p((()=>this.markSelectedValue()))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}markSelectedValue(){this.host.querySelectorAll("option").forEach((t=>{if(t.value===this.value){t.setAttribute("selected","selected")}else{t.removeAttribute("selected")}}))}render(){return i(a,{key:"209d5865fd6928823e03ea63773a8c5270e9ad32",class:n.root,size:this.size},this.h.hasSlot("prefix")&&i("slot",{key:"1fbe248e069d10cefc405a341dc4d601f3bc1afd",name:"prefix"}),i("span",{key:"1f250f81b6921a50099fa460493845cacff104de",class:"element"},i("select",Object.assign({key:"8ad3b59aa86d4ba926b19cea1f254a6800a50478",id:this.identifier||this.selectId,onFocus:this.onFocusHandler.bind(this),onChange:this.onChangeHandler.bind(this),onBlur:this.onBlurHandler.bind(this),required:this.required,name:this.name,disabled:this.disabled,ref:t=>this.selectRef=t},this.inheritedAttributes,{"aria-disabled":d(this.disabled),"aria-required":d(this.required),"aria-invalid":d(this.invalid)}),i("slot",{key:"a55508d3024ecccf9f78ea4046524b1c54f1f43f"}),Array.isArray(this.optionsState)&&this.optionsState.map((t=>{var s;return i("option",{value:t.value,selected:t.value===this.value,disabled:t===null||t===void 0?void 0:t.disabled},(s=t.label)!==null&&s!==void 0?s:t.value)}))),this.success&&i("gov-icon",{key:"8aed7cb4cc3d3dd7ac3b80812ded81674f1af748",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&i("gov-icon",{key:"95442149ab9cba9e138684577802e32a3adb5836",class:"validation-icon",name:"exclamation-lg",type:"components"}),i("gov-icon",{key:"917481bb56daf82689db8efddc1cf9fd724e47d5",class:"arrow-icon",name:"chevron-down",type:"components"})),this.h.hasSlot("sufix")&&i("slot",{key:"e58a7cb17bfed2046b31f1a2d70832194020963f",name:"sufix"}))}onFocusHandler(t){this.focused=true;this.govFocus.emit({component:n.root,originalEvent:t,value:this.value})}onBlurHandler(t){this.focused=false;this.govBlur.emit({component:n.root,originalEvent:t,value:this.value})}onChangeHandler(t){this.value=t.target.value;t.stopPropagation();this.govChange.emit({component:n.root,originalEvent:t,value:this.value})}async setFocus(t){return this.selectRef.focus(t)}async getRef(){return this.selectRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],options:["watchOptions"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"],value:["watchValue"]}}},[260,"gov-form-select",{value:[1537],options:[1537],identifier:[1],size:[1],name:[1],required:[4],success:[516],disabled:[516],invalid:[4],focused:[32],optionsState:[32],inheritedAttributes:[32],setFocus:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],options:["watchOptions"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"],value:["watchValue"]}]);function y(){if(typeof customElements==="undefined"){return}const t=["gov-form-select","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-select":if(!customElements.get(t)){customElements.define(t,w)}break;case"gov-icon":if(!customElements.get(t)){g()}break}}))}y();export{w as G,y as d};
2
+ //# sourceMappingURL=p-Cy7Wk3yM.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as i,h as e,a}from"./index.js";import{g as o,b as n,c as h}from"./p-9imLQpxb.js";import{g as c,t as r,a as l,c as d}from"./p-DfJDyRCE.js";import{v as u}from"./p-BKP-F1qP.js";import{c as p}from"./p-vN03FcXN.js";import{A as m,a as f,i as b}from"./p-CXgom82_.js";import{d as v}from"./p-8QWehgod.js";import{d as g}from"./p-WmFNIuTf.js";var y;(function(t){t["INPUT"]="input";t["TEXTAREA"]="textarea"})(y||(y={}));const w=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govInput=i(this,"gov-input");this.govKeyUp=i(this,"gov-keyup");this.govHydrated=i(this,"gov-hydrated");this.govKeyDown=i(this,"gov-keydown");this.size="m";this.required=false;this.disabled=false;this.inputType="text";this.accessibleShowPasswordLabel="Zobrazit heslo";this.accessibleHidePasswordLabel="Skrýt heslo";this.showPassword=false;this.inheritedAttributes={};this.h=c(this.host);this.inputId=p("GovInput");this.f=o(this.h)}validateSize(t){u(h,t,n.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("type",this.multiline?y.TEXTAREA:y.INPUT)}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(f);this.govHydrated.emit()}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=b(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}render(){const t=this.multiline?y.TEXTAREA:y.INPUT;return e(a,{key:"bdbab2105ea328155d7a023e2070c4ca22a5afba",class:n.root,size:this.size,type:this.type},this.h.hasSlot("prefix")&&e("slot",{key:"71be98f4ba1933c8a5affd3f41b496633528bcc8",name:"prefix"}),e("span",{key:"820a6cc14d90fb52b3fa809858c9b7223d7dec21",class:"element"},this.h.hasSlot("icon-start")&&!this.multiline&&e("div",{key:"6c001fb96074d4f5b7779a14cbceee9169b4a70a",class:n.icons,onClick:()=>this.inputRef.focus()},e("slot",{key:"15da634518db7ac788de51911296d1a0ca87c993",name:"icon-start"})),e(t,Object.assign({key:"f43777146426ddbe5d37408a734ca61aa51e0e69",type:this.inputType==="password"&&this.showPassword?"text":this.inputType,disabled:this.disabled,id:this.identifier||this.inputId,name:this.name,onFocus:this.onFocusHandler.bind(this),onInput:this.onInputHandler.bind(this),onBlur:this.onBlurHandler.bind(this),onKeyUp:this.onKeyUpHandler.bind(this),onKeyDown:this.onKeyDownHandler.bind(this),ref:t=>this.inputRef=t,placeholder:this.placeholder,spellcheck:d(this.spellcheck),lang:this.inputLang,readonly:d(this.readonly),autocomplete:l(this.autocomplete),autocorrect:l(this.autocorrect),minlength:this.minlength,maxlength:this.maxlength,min:this.min,max:this.max,required:this.required,rows:this.rows,cols:this.cols,role:this.role,value:this.value},this.inheritedAttributes,{"aria-required":d(this.required),"aria-invalid":d(this.invalid),"aria-disabled":d(this.disabled)})),(this.success||this.invalid||this.h.hasSlot("icon-end")||this.inputType==="password")&&!this.multiline&&e("div",{key:"716e004caf2077ce8d5ee5101bcb541fbdb45d38",class:n.icons,onClick:()=>this.inputRef.focus()},this.success&&!this.multiline&&e("gov-icon",{key:"96c5fcdad8332c08d3eaf9a5a6af573962a96744",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&!this.multiline&&e("gov-icon",{key:"4883e137f51052a2659f46a09270c656bc3347f7",class:"validation-icon",name:"exclamation-lg",type:"components"}),this.h.hasSlot("icon-end")&&this.inputType!=="password"&&e("slot",{key:"a74b2df0932087834fc33de45aa341444c61042a",name:"icon-end"}),this.inputType==="password"?e("gov-button",{color:"primary",type:"base",size:this.size,"aria-label":this.showPassword?this.accessibleHidePasswordLabel:this.accessibleShowPasswordLabel,"on-gov-click":()=>this.showPassword=!this.showPassword},e("gov-icon",{slot:"icon-start",name:"eye",type:"components"})):null)),this.h.hasSlot("sufix")&&e("slot",{key:"9d15adccc023a5501114982c4417df6db9a4d8c1",name:"sufix"}))}onFocusHandler(t){t.stopPropagation();this.focused=true;this.govFocus.emit({component:n.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.focused=false;this.govBlur.emit({component:n.root,value:this.value,originalEvent:t})}onKeyUpHandler(t){t.stopPropagation();this.govKeyUp.emit({component:n.root,value:this.value,originalEvent:t})}onKeyDownHandler(t){t.stopPropagation();this.govKeyDown.emit({component:n.root,value:this.value,originalEvent:t})}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:n.root,value:this.value,originalEvent:t})}async setFocus(t){return this.inputRef.focus(t)}async setValue(t){this.value=t}async clearValue(){this.value="";this.inputRef.value=""}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}},[260,"gov-form-input",{value:[1537],identifier:[1],success:[516],size:[1],name:[1],multiline:[4],rows:[2],cols:[2],required:[516],disabled:[516],placeholder:[1],readonly:[4],minlength:[2],maxlength:[2],min:[8],max:[8],autocomplete:[4],autocorrect:[4],spellcheck:[4],inputLang:[1,"input-lang"],type:[1],inputType:[1,"input-type"],role:[1],invalid:[516],accessibleShowPasswordLabel:[1,"accessible-show-password-label"],accessibleHidePasswordLabel:[1,"accessible-hide-password-label"],focused:[32],showPassword:[32],inheritedAttributes:[32],setFocus:[64],setValue:[64],clearValue:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-input","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-input":if(!customElements.get(t)){customElements.define(t,w)}break;case"gov-button":if(!customElements.get(t)){v()}break;case"gov-icon":if(!customElements.get(t)){g()}break}}))}k();export{w as G,k as d};
2
- //# sourceMappingURL=p-Btw6IAjS.js.map
1
+ import{p as t,H as s,c as i,h as e,a}from"./index.js";import{g as o,b as n,c as h}from"./p-9imLQpxb.js";import{g as c,t as r,a as l,c as d}from"./p-DfJDyRCE.js";import{v as p}from"./p-BKP-F1qP.js";import{c as u}from"./p-vN03FcXN.js";import{A as m,a as b,i as f}from"./p-CXgom82_.js";import{d as v}from"./p-CXbpWAIF.js";import{d as g}from"./p-B03Rpjps.js";var y;(function(t){t["INPUT"]="input";t["TEXTAREA"]="textarea"})(y||(y={}));const w=t(class t extends s{constructor(){super();this.__registerHost();this.govFocus=i(this,"gov-focus");this.govBlur=i(this,"gov-blur");this.govInput=i(this,"gov-input");this.govKeyUp=i(this,"gov-keyup");this.govHydrated=i(this,"gov-hydrated");this.govKeyDown=i(this,"gov-keydown");this.size="m";this.required=false;this.disabled=false;this.inputType="text";this.accessibleShowPasswordLabel="Zobrazit heslo";this.accessibleHidePasswordLabel="Skrýt heslo";this.showPassword=false;this.inheritedAttributes={};this.h=c(this.host);this.inputId=u("GovInput");this.f=o(this.h)}validateSize(t){p(h,t,n.root)}watchControlAttrs(){this.passControlAttrs()}passControlAttrs(){this.f.passAttrToControl("size",this.size);this.f.passAttrToControl("success",r(this.success));this.f.passAttrToControl("disabled",r(this.disabled));this.f.passAttrToControl("invalid",r(this.invalid));this.f.passAttrToControl("type",this.multiline?y.TEXTAREA:y.INPUT)}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(b);this.govHydrated.emit()}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=f(this.host)}componentDidRender(){this.passControlAttrs();this.f.passAttrToLabel("required",String(this.required))}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}render(){const t=this.multiline?y.TEXTAREA:y.INPUT;return e(a,{key:"bdbab2105ea328155d7a023e2070c4ca22a5afba",class:n.root,size:this.size,type:this.type},this.h.hasSlot("prefix")&&e("slot",{key:"71be98f4ba1933c8a5affd3f41b496633528bcc8",name:"prefix"}),e("span",{key:"820a6cc14d90fb52b3fa809858c9b7223d7dec21",class:"element"},this.h.hasSlot("icon-start")&&!this.multiline&&e("div",{key:"6c001fb96074d4f5b7779a14cbceee9169b4a70a",class:n.icons,onClick:()=>this.inputRef.focus()},e("slot",{key:"15da634518db7ac788de51911296d1a0ca87c993",name:"icon-start"})),e(t,Object.assign({key:"f43777146426ddbe5d37408a734ca61aa51e0e69",type:this.inputType==="password"&&this.showPassword?"text":this.inputType,disabled:this.disabled,id:this.identifier||this.inputId,name:this.name,onFocus:this.onFocusHandler.bind(this),onInput:this.onInputHandler.bind(this),onBlur:this.onBlurHandler.bind(this),onKeyUp:this.onKeyUpHandler.bind(this),onKeyDown:this.onKeyDownHandler.bind(this),ref:t=>this.inputRef=t,placeholder:this.placeholder,spellcheck:d(this.spellcheck),lang:this.inputLang,readonly:d(this.readonly),autocomplete:l(this.autocomplete),autocorrect:l(this.autocorrect),minlength:this.minlength,maxlength:this.maxlength,min:this.min,max:this.max,required:this.required,rows:this.rows,cols:this.cols,role:this.role,value:this.value},this.inheritedAttributes,{"aria-required":d(this.required),"aria-invalid":d(this.invalid),"aria-disabled":d(this.disabled)})),(this.success||this.invalid||this.h.hasSlot("icon-end")||this.inputType==="password")&&!this.multiline&&e("div",{key:"716e004caf2077ce8d5ee5101bcb541fbdb45d38",class:n.icons,onClick:()=>this.inputRef.focus()},this.success&&!this.multiline&&e("gov-icon",{key:"96c5fcdad8332c08d3eaf9a5a6af573962a96744",class:"validation-icon",name:"check-lg",type:"components"}),this.invalid&&!this.multiline&&e("gov-icon",{key:"4883e137f51052a2659f46a09270c656bc3347f7",class:"validation-icon",name:"exclamation-lg",type:"components"}),this.h.hasSlot("icon-end")&&this.inputType!=="password"&&e("slot",{key:"a74b2df0932087834fc33de45aa341444c61042a",name:"icon-end"}),this.inputType==="password"?e("gov-button",{color:"primary",type:"base",size:this.size,"aria-label":this.showPassword?this.accessibleHidePasswordLabel:this.accessibleShowPasswordLabel,"on-gov-click":()=>this.showPassword=!this.showPassword},e("gov-icon",{slot:"icon-start",name:"eye",type:"components"})):null)),this.h.hasSlot("sufix")&&e("slot",{key:"9d15adccc023a5501114982c4417df6db9a4d8c1",name:"sufix"}))}onFocusHandler(t){t.stopPropagation();this.focused=true;this.govFocus.emit({component:n.root,value:this.value,originalEvent:t})}onBlurHandler(t){t.stopPropagation();this.focused=false;this.govBlur.emit({component:n.root,value:this.value,originalEvent:t})}onKeyUpHandler(t){t.stopPropagation();this.govKeyUp.emit({component:n.root,value:this.value,originalEvent:t})}onKeyDownHandler(t){t.stopPropagation();this.govKeyDown.emit({component:n.root,value:this.value,originalEvent:t})}onInputHandler(t){this.value=t.target.value;t.stopPropagation();this.govInput.emit({component:n.root,value:this.value,originalEvent:t})}async setFocus(t){return this.inputRef.focus(t)}async setValue(t){this.value=t}async clearValue(){this.value="";this.inputRef.value=""}async getRef(){return this.inputRef}get host(){return this}static get watchers(){return{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}}},[260,"gov-form-input",{value:[1537],identifier:[1],success:[516],size:[1],name:[1],multiline:[4],rows:[2],cols:[2],required:[516],disabled:[516],placeholder:[1],readonly:[4],minlength:[2],maxlength:[2],min:[8],max:[8],autocomplete:[4],autocorrect:[4],spellcheck:[4],inputLang:[1,"input-lang"],type:[1],inputType:[1,"input-type"],role:[1],invalid:[516],accessibleShowPasswordLabel:[1,"accessible-show-password-label"],accessibleHidePasswordLabel:[1,"accessible-hide-password-label"],focused:[32],showPassword:[32],inheritedAttributes:[32],setFocus:[64],setValue:[64],clearValue:[64],getRef:[64]},undefined,{size:["validateSize","watchControlAttrs"],disabled:["watchControlAttrs"],invalid:["watchControlAttrs"],success:["watchControlAttrs"]}]);function k(){if(typeof customElements==="undefined"){return}const t=["gov-form-input","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-form-input":if(!customElements.get(t)){customElements.define(t,w)}break;case"gov-button":if(!customElements.get(t)){v()}break;case"gov-icon":if(!customElements.get(t)){g()}break}}))}k();export{w as G,k as d};
2
+ //# sourceMappingURL=p-DJ1DN3ks.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,c as a,h as s,a as c}from"./index.js";import{a as i}from"./p-CUVZZBqo.js";import{a as o}from"./p-Nvj7WFs_.js";import{c as m}from"./p-DrPpH_9c.js";import{d as n}from"./p-CQvUntGY.js";import{g as r}from"./p-DfJDyRCE.js";import{d as l}from"./p-8QWehgod.js";import{d}from"./p-WmFNIuTf.js";const f='gov-attachments-item,.gov-attachments-item{display:flex;flex-direction:column}gov-attachments-item__messages>*:last-child,.gov-attachments-item__messages>*:last-child{margin-bottom:0}gov-attachments-item__messages>*,.gov-attachments-item__messages>*{position:relative;top:calc(-1 * var(--spacing-xs))}gov-attachments-item__file,.gov-attachments-item__file{display:flex;gap:var(--spacing-s)}gov-attachments-item__name,.gov-attachments-item__name{display:flex;gap:var(--spacing-s);flex-wrap:wrap;align-items:center;margin:0;color:make-var("name-color", var(--text-primary))}gov-attachments-item__name span,.gov-attachments-item__name span{font-size:var(--font-size-body-xs);line-height:150%;font-weight:400;color:make-var("decor-color", var(--text-secondary))}';const g=e(class e extends t{constructor(){super();this.__registerHost();this.govRemove=a(this,"gov-remove");this.h=r(this.host)}async componentDidRender(){if(m()){await n(500);await this.validateAccessibility()}}render(){return s(c,{key:"a8fffc03fb890c1aaae5a1d63240747f5fcb013e",class:this.h.classes(i.root),role:"listitem"},s("div",{key:"0aa555d1c5b3bdf089cf020db1271e40389522f9",class:i.file},s("p",{key:"46014b9e9d9a46fea6f813ef271815be6ab6dfc4",class:i.name},s("slot",{key:"806f9dc2b2ee44248f7fe613e8362d92ed938ba8"}),s("slot",{key:"97d69e72afd5063f41ea7b41e50012893ee5027c",name:"info"})),s("gov-button",{key:"6c40ff9ae6be99cde30fde276db287a3d14dccd1",color:"primary",type:"base",size:"s","aria-label":this.accessibleRemoveLabel,"aria-labelledby":this.accessibleRemoveLabelledBy,"on-gov-click":this.govRemove.emit},s("gov-icon",{key:"24871273b10ca807811acd15dabb49c6a45d76d1",slot:"icon-start",name:"x-lg",type:"components"}))),this.h.hasSlot("message")&&s("div",{key:"7683c6c6bfd1ca4b9660ee56ec190472970d0ac8",class:i.messages},s("slot",{key:"20b46c868809d19f9c67105a4c4774df9688a2c1",name:"message"})))}async validateAccessibility(){o(this.accessibleRemoveLabel,this.accessibleRemoveLabelledBy,i.root,this.host)}get host(){return this}static get style(){return f}},[260,"gov-attachments-item",{accessibleRemoveLabel:[1,"accessible-remove-label"],accessibleRemoveLabelledBy:[1,"accessible-remove-labelledby"],validateAccessibility:[64]}]);function v(){if(typeof customElements==="undefined"){return}const e=["gov-attachments-item","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-attachments-item":if(!customElements.get(e)){customElements.define(e,g)}break;case"gov-button":if(!customElements.get(e)){l()}break;case"gov-icon":if(!customElements.get(e)){d()}break}}))}v();export{g as G,v as d};
2
- //# sourceMappingURL=p-BcZ7-N5H.js.map
1
+ import{p as e,H as t,c as a,h as s,a as c}from"./index.js";import{a as i}from"./p-CUVZZBqo.js";import{a as o}from"./p-Nvj7WFs_.js";import{c as m}from"./p-DrPpH_9c.js";import{d as n}from"./p-CQvUntGY.js";import{g as r}from"./p-DfJDyRCE.js";import{d as l}from"./p-CXbpWAIF.js";import{d}from"./p-B03Rpjps.js";const f='gov-attachments-item,.gov-attachments-item{display:flex;flex-direction:column}gov-attachments-item__messages>*:last-child,.gov-attachments-item__messages>*:last-child{margin-bottom:0}gov-attachments-item__messages>*,.gov-attachments-item__messages>*{position:relative;top:calc(-1 * var(--spacing-xs))}gov-attachments-item__file,.gov-attachments-item__file{display:flex;gap:var(--spacing-s)}gov-attachments-item__name,.gov-attachments-item__name{display:flex;gap:var(--spacing-s);flex-wrap:wrap;align-items:center;margin:0;color:make-var("name-color", var(--text-primary))}gov-attachments-item__name span,.gov-attachments-item__name span{font-size:var(--font-size-body-xs);line-height:150%;font-weight:400;color:make-var("decor-color", var(--text-secondary))}';const p=e(class e extends t{constructor(){super();this.__registerHost();this.govRemove=a(this,"gov-remove");this.h=r(this.host)}async componentDidRender(){if(m()){await n(500);await this.validateAccessibility()}}render(){return s(c,{key:"a8fffc03fb890c1aaae5a1d63240747f5fcb013e",class:this.h.classes(i.root),role:"listitem"},s("div",{key:"0aa555d1c5b3bdf089cf020db1271e40389522f9",class:i.file},s("p",{key:"46014b9e9d9a46fea6f813ef271815be6ab6dfc4",class:i.name},s("slot",{key:"806f9dc2b2ee44248f7fe613e8362d92ed938ba8"}),s("slot",{key:"97d69e72afd5063f41ea7b41e50012893ee5027c",name:"info"})),s("gov-button",{key:"6c40ff9ae6be99cde30fde276db287a3d14dccd1",color:"primary",type:"base",size:"s","aria-label":this.accessibleRemoveLabel,"aria-labelledby":this.accessibleRemoveLabelledBy,"on-gov-click":this.govRemove.emit},s("gov-icon",{key:"24871273b10ca807811acd15dabb49c6a45d76d1",slot:"icon-start",name:"x-lg",type:"components"}))),this.h.hasSlot("message")&&s("div",{key:"7683c6c6bfd1ca4b9660ee56ec190472970d0ac8",class:i.messages},s("slot",{key:"20b46c868809d19f9c67105a4c4774df9688a2c1",name:"message"})))}async validateAccessibility(){o(this.accessibleRemoveLabel,this.accessibleRemoveLabelledBy,i.root,this.host)}get host(){return this}static get style(){return f}},[260,"gov-attachments-item",{accessibleRemoveLabel:[1,"accessible-remove-label"],accessibleRemoveLabelledBy:[1,"accessible-remove-labelledby"],validateAccessibility:[64]}]);function b(){if(typeof customElements==="undefined"){return}const e=["gov-attachments-item","gov-button","gov-icon"];e.forEach((e=>{switch(e){case"gov-attachments-item":if(!customElements.get(e)){customElements.define(e,p)}break;case"gov-button":if(!customElements.get(e)){l()}break;case"gov-icon":if(!customElements.get(e)){d()}break}}))}b();export{p as G,b as d};
2
+ //# sourceMappingURL=p-DTn9nVrF.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as e,h as i,a}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{g as c}from"./p-DfJDyRCE.js";import{p as h}from"./p-CQvUntGY.js";import{S as n}from"./p-BcQO4NH2.js";import{a as r,c as d}from"./p-CNqoJU2V.js";import{c as f}from"./p-vN03FcXN.js";import{p as l}from"./p-GYov8gU1.js";import{i as p,A as m,a as b}from"./p-CXgom82_.js";import{d as u}from"./p-WmFNIuTf.js";const g=h(n,["_XS","_S","_M"]);var v;(function(t){t["SOLID"]="solid";t["OUTLINED"]="outlined"})(v||(v={}));var y;(function(t){t["A"]="a";t["SPAN"]="span";t["BUTTON"]="button"})(y||(y={}));const k={root:"gov-chip",hasRight:"gov-chip--has-right",hasLeft:"gov-chip--has-left"};const j=t(class t extends s{constructor(){super();this.__registerHost();this.govClick=e(this,"gov-click");this.hydrated=false;this.disabled=false;this.size=g._M;this.tag="span";this.color=r.PRIMARY;this.focusable=true;this.inheritedAttributes={};this.h=c(this.host);this.chipId=f("GovChip")}validateColor(t){o(r,t,k.root)}validateSize(t){o(d,t,k.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size);this.inheritedAttributes=p(this.host)}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(b)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=this.href?y.A:this.tag;const s=t==y.BUTTON?y.BUTTON:undefined;const e=l(this.iconStart);const o=l(this.iconEnd);return i(a,{key:"32757f0c00fbf343f2a09c81c36f0631e007dee7",class:this.h.classes([k.root,this.h.hasSlot("right")?k.hasRight:undefined,this.h.hasSlot("left")?k.hasLeft:undefined]),disabled:this.disabled,href:this.href,color:this.color,type:this.type,size:this.size,focusable:this.focusable,hydrated:this.hydrated},i(t,Object.assign({key:"15c641eec13ca157f1d7a3709fc8843f18180b10",class:"element",href:this.href,target:this.target,ref:t=>this.triggerRef=t,onClick:this.onClickHandler.bind(this),tabindex:this.h.hasSlot("left")||this.h.hasSlot("right")||this.disabled||!this.focusable?"-1":"0",id:this.identifier||this.chipId,type:s},this.inheritedAttributes,{"aria-disabled":this.disabled}),i("slot",{key:"81f56e0015e7d8ad1b72b7c24c90fd6eb04f31e8",name:"left"}),i("slot",{key:"76377b22dc1c71a1fd0c5ca6bf0132760fbfca77",name:"icon-start"},e&&i("gov-icon",{key:"55245f14620f9a9d4c04d48a88944a44068148b2",type:e.type,name:e.name})),i("slot",{key:"4159dd5f8662d6b7ba5647e1220eddeeaef54553"}),i("slot",{key:"8810a1161bfea9da7cc932ea5ce4810d4762d208",name:"icon-end"},o&&i("gov-icon",{key:"c4585843d3e078f9a99ec01a78cb862c1783a36c",type:o.type,name:o.name})),i("slot",{key:"0b05c2e16d2ddea5bba82bfce3f1500889379f1a",name:"right"})))}onClickHandler(t){t.stopPropagation();if(this.disabled===false&&this.tag===y.BUTTON){this.govClick.emit(t)}}async geRef(){return this.triggerRef}async setFocus(){this.triggerRef.focus()}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}},[260,"gov-chip",{disabled:[516],href:[1],target:[1],iconStart:[1,"icon-start"],iconEnd:[1,"icon-end"],size:[1],tag:[1],color:[1],type:[513],focusable:[4],identifier:[1],inheritedAttributes:[32],geRef:[64],setFocus:[64]},undefined,{color:["validateColor"],size:["validateSize"]}]);function C(){if(typeof customElements==="undefined"){return}const t=["gov-chip","gov-icon"];t.forEach((t=>{switch(t){case"gov-chip":if(!customElements.get(t)){customElements.define(t,j)}break;case"gov-icon":if(!customElements.get(t)){u()}break}}))}C();export{j as G,C as d};
2
- //# sourceMappingURL=p-BlBAryxm.js.map
1
+ import{p as t,H as s,c as e,h as i,a}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{g as c}from"./p-DfJDyRCE.js";import{p as h}from"./p-CQvUntGY.js";import{S as n}from"./p-BcQO4NH2.js";import{a as r,c as d}from"./p-CNqoJU2V.js";import{c as f}from"./p-vN03FcXN.js";import{p as l}from"./p-GYov8gU1.js";import{i as p,A as m,a as b}from"./p-CXgom82_.js";import{d as u}from"./p-B03Rpjps.js";const g=h(n,["_XS","_S","_M"]);var v;(function(t){t["SOLID"]="solid";t["OUTLINED"]="outlined"})(v||(v={}));var y;(function(t){t["A"]="a";t["SPAN"]="span";t["BUTTON"]="button"})(y||(y={}));const k={root:"gov-chip",hasRight:"gov-chip--has-right",hasLeft:"gov-chip--has-left"};const j=t(class t extends s{constructor(){super();this.__registerHost();this.govClick=e(this,"gov-click");this.hydrated=false;this.disabled=false;this.size=g._M;this.tag="span";this.color=r.PRIMARY;this.focusable=true;this.inheritedAttributes={};this.h=c(this.host);this.chipId=f("GovChip")}validateColor(t){o(r,t,k.root)}validateSize(t){o(d,t,k.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size);this.inheritedAttributes=p(this.host)}componentDidLoad(){this.attributeObserver=new m(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(b)}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}connectedCallback(){this.hydrated=true}onAriaAttributeChange(t,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}render(){const t=this.href?y.A:this.tag;const s=t==y.BUTTON?y.BUTTON:undefined;const e=l(this.iconStart);const o=l(this.iconEnd);return i(a,{key:"32757f0c00fbf343f2a09c81c36f0631e007dee7",class:this.h.classes([k.root,this.h.hasSlot("right")?k.hasRight:undefined,this.h.hasSlot("left")?k.hasLeft:undefined]),disabled:this.disabled,href:this.href,color:this.color,type:this.type,size:this.size,focusable:this.focusable,hydrated:this.hydrated},i(t,Object.assign({key:"15c641eec13ca157f1d7a3709fc8843f18180b10",class:"element",href:this.href,target:this.target,ref:t=>this.triggerRef=t,onClick:this.onClickHandler.bind(this),tabindex:this.h.hasSlot("left")||this.h.hasSlot("right")||this.disabled||!this.focusable?"-1":"0",id:this.identifier||this.chipId,type:s},this.inheritedAttributes,{"aria-disabled":this.disabled}),i("slot",{key:"81f56e0015e7d8ad1b72b7c24c90fd6eb04f31e8",name:"left"}),i("slot",{key:"76377b22dc1c71a1fd0c5ca6bf0132760fbfca77",name:"icon-start"},e&&i("gov-icon",{key:"55245f14620f9a9d4c04d48a88944a44068148b2",type:e.type,name:e.name})),i("slot",{key:"4159dd5f8662d6b7ba5647e1220eddeeaef54553"}),i("slot",{key:"8810a1161bfea9da7cc932ea5ce4810d4762d208",name:"icon-end"},o&&i("gov-icon",{key:"c4585843d3e078f9a99ec01a78cb862c1783a36c",type:o.type,name:o.name})),i("slot",{key:"0b05c2e16d2ddea5bba82bfce3f1500889379f1a",name:"right"})))}onClickHandler(t){t.stopPropagation();if(this.disabled===false&&this.tag===y.BUTTON){this.govClick.emit(t)}}async geRef(){return this.triggerRef}async setFocus(){this.triggerRef.focus()}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}},[260,"gov-chip",{disabled:[516],href:[1],target:[1],iconStart:[1,"icon-start"],iconEnd:[1,"icon-end"],size:[1],tag:[1],color:[1],type:[513],focusable:[4],identifier:[1],inheritedAttributes:[32],geRef:[64],setFocus:[64]},undefined,{color:["validateColor"],size:["validateSize"]}]);function C(){if(typeof customElements==="undefined"){return}const t=["gov-chip","gov-icon"];t.forEach((t=>{switch(t){case"gov-chip":if(!customElements.get(t)){customElements.define(t,j)}break;case"gov-icon":if(!customElements.get(t)){u()}break}}))}C();export{j as G,C as d};
2
+ //# sourceMappingURL=p-Dmr81UhL.js.map
@@ -4601,6 +4601,14 @@ gov-card:not([hydrated]), .gov-card:not([hydrated]) {
4601
4601
  cursor: pointer;
4602
4602
  }
4603
4603
  }
4604
+ @media not all and (pointer: coarse) {
4605
+ gov-card:has(> a):hover, .gov-card:has(> a):hover {
4606
+ box-shadow: 0 0.25rem 0.75rem 0 rgba(0, 0, 0, 0.2);
4607
+ transform: translateY(-2px);
4608
+ transition: all 150ms ease-in-out;
4609
+ cursor: pointer;
4610
+ }
4611
+ }
4604
4612
  gov-card[direction=horizontal] .gov-card__inner, gov-card[direction=horizontal]:not([hydrated]), .gov-card[direction=horizontal] .gov-card__inner, .gov-card[direction=horizontal]:not([hydrated]) {
4605
4613
  display: flex;
4606
4614
  }
@@ -4677,6 +4685,15 @@ gov-card[collapsible=""][open=""] .gov-card__arrow, gov-card[collapsible=""][ope
4677
4685
  }
4678
4686
  }
4679
4687
 
4688
+ @media not all and (pointer: coarse) {
4689
+ a.gov-card:hover {
4690
+ box-shadow: 0 0.25rem 0.75rem 0 rgba(0, 0, 0, 0.2);
4691
+ transform: translateY(-2px);
4692
+ transition: all 150ms ease-in-out;
4693
+ cursor: pointer;
4694
+ }
4695
+ }
4696
+
4680
4697
  /* Chip */
4681
4698
  gov-chip, .gov-chip {
4682
4699
  /* Variables - Chips */
@@ -5999,6 +6016,7 @@ gov-container, .gov-container {
5999
6016
 
6000
6017
  /* Control group */
6001
6018
  gov-control-group, .gov-control-group {
6019
+ /* Variables - Control group */
6002
6020
  position: relative;
6003
6021
  display: flex;
6004
6022
  align-items: center;
@@ -6091,12 +6109,27 @@ gov-control-group > .gov-form-file:last-child gov-button, gov-control-group > .g
6091
6109
  border-top-left-radius: 0;
6092
6110
  border-bottom-left-radius: 0;
6093
6111
  }
6094
- gov-control-group[no-border=""] > *, gov-control-group[no-border=true i] > *, gov-control-group[no-border="1"] > *, .gov-control-group[no-border=""] > *, .gov-control-group[no-border=true i] > *, .gov-control-group[no-border="1"] > * {
6095
- border-right: none !important;
6096
- }
6097
6112
  gov-control-group[fit-content=""], gov-control-group[fit-content=true i], gov-control-group[fit-content="1"], .gov-control-group[fit-content=""], .gov-control-group[fit-content=true i], .gov-control-group[fit-content="1"] {
6098
6113
  display: inline-flex;
6099
6114
  }
6115
+ gov-control-group[color=neutral], .gov-control-group[color=neutral] {
6116
+ border-color: var(--border, var(--border-subtle)) !important;
6117
+ }
6118
+ gov-control-group[color=neutral] > *, .gov-control-group[color=neutral] > * {
6119
+ border-right-color: var(--border, var(--border-subtle)) !important;
6120
+ }
6121
+ gov-control-group[color=primary], .gov-control-group[color=primary] {
6122
+ border-color: var(--border, var(--border-primary)) !important;
6123
+ }
6124
+ gov-control-group[color=primary] > *, .gov-control-group[color=primary] > * {
6125
+ border-right-color: var(--border, var(--border-primary)) !important;
6126
+ }
6127
+ gov-control-group[color=error], .gov-control-group[color=error] {
6128
+ border-color: var(--border, var(--status-error)) !important;
6129
+ }
6130
+ gov-control-group[color=error] > *, .gov-control-group[color=error] > * {
6131
+ border-right-color: var(--border, var(--status-error)) !important;
6132
+ }
6100
6133
  gov-control-group[disabled=""], gov-control-group[disabled=true i], gov-control-group[disabled="1"], .gov-control-group[disabled=""], .gov-control-group[disabled=true i], .gov-control-group[disabled="1"] {
6101
6134
  border-color: var(--form-state-border-disabled, var(--border-subtlest)) !important;
6102
6135
  }
@@ -6109,6 +6142,15 @@ gov-control-group[invalid=""], gov-control-group[invalid=true i], gov-control-gr
6109
6142
  gov-control-group[invalid=""] > *, gov-control-group[invalid=true i] > *, gov-control-group[invalid="1"] > *, .gov-control-group[invalid=""] > *, .gov-control-group[invalid=true i] > *, .gov-control-group[invalid="1"] > * {
6110
6143
  border-right-color: var(--form-state-border-error, var(--status-error)) !important;
6111
6144
  }
6145
+ gov-control-group[no-border=""], gov-control-group[no-border=true i], gov-control-group[no-border="1"], .gov-control-group[no-border=""], .gov-control-group[no-border=true i], .gov-control-group[no-border="1"] {
6146
+ border: none !important;
6147
+ }
6148
+ gov-control-group[no-border=""] > *, gov-control-group[no-border=true i] > *, gov-control-group[no-border="1"] > *, .gov-control-group[no-border=""] > *, .gov-control-group[no-border=true i] > *, .gov-control-group[no-border="1"] > * {
6149
+ border-right-color: var(--border-bg, var(--background-page)) !important;
6150
+ }
6151
+ gov-control-group[no-inner-border=""] > *, gov-control-group[no-inner-border=true i] > *, gov-control-group[no-inner-border="1"] > *, .gov-control-group[no-inner-border=""] > *, .gov-control-group[no-inner-border=true i] > *, .gov-control-group[no-inner-border="1"] > * {
6152
+ border-right: none !important;
6153
+ }
6112
6154
 
6113
6155
  /* Cookie Consent */
6114
6156
  gov-cookiebar, .gov-cookiebar {
@@ -6190,8 +6232,9 @@ gov-dialog__dialog, .gov-dialog__dialog {
6190
6232
  justify-content: center;
6191
6233
  align-items: center;
6192
6234
  width: 100%;
6235
+ height: 100%;
6193
6236
  max-width: var(--max-width, 52.5rem);
6194
- max-height: 100%;
6237
+ max-height: 75vh;
6195
6238
  padding: 0;
6196
6239
  color: inherit;
6197
6240
  border: none;
@@ -7433,7 +7476,8 @@ gov-form-file, .gov-form-file {
7433
7476
  color: var(--text-primary);
7434
7477
  }
7435
7478
  gov-form-file__area, .gov-form-file__area {
7436
- display: flex;
7479
+ position: relative;
7480
+ display: inline-flex;
7437
7481
  flex-direction: column;
7438
7482
  gap: var(--spacing-s);
7439
7483
  }
@@ -8314,6 +8358,10 @@ gov-form-input[input-type=password] input + .gov-form-input__icons, gov-form-inp
8314
8358
  padding-right: 0;
8315
8359
  }
8316
8360
 
8361
+ :root[data-theme=dark] gov-form-input[input-type=date], :root[data-theme=dark] gov-form-input[input-type=datetime], :root[data-theme=dark] gov-form-input[input-type=datetime-local], :root[data-theme=dark] gov-form-input[input-type=month], :root[data-theme=dark] gov-form-input[input-type=time], :root[data-theme=dark] gov-form-input[input-type=week], :root[data-theme=dark] .gov-form-input[input-type=date], :root[data-theme=dark] .gov-form-input[input-type=datetime], :root[data-theme=dark] .gov-form-input[input-type=datetime-local], :root[data-theme=dark] .gov-form-input[input-type=month], :root[data-theme=dark] .gov-form-input[input-type=time], :root[data-theme=dark] .gov-form-input[input-type=week] {
8362
+ color-scheme: dark;
8363
+ }
8364
+
8317
8365
  /* Label */
8318
8366
  gov-form-label, .gov-form-label {
8319
8367
  /* Variables - Form label */
@@ -9429,6 +9477,9 @@ gov-form-search:focus-within, .gov-form-search:focus-within {
9429
9477
  outline: var(--outline-width, 0.125rem) solid var(--status-focus);
9430
9478
  outline-offset: var(--outline-offset, 0.125rem);
9431
9479
  }
9480
+ gov-form-search > *, .gov-form-search > * {
9481
+ flex: 1 1 auto;
9482
+ }
9432
9483
  gov-form-search [slot=input], .gov-form-search [slot=input] {
9433
9484
  flex: 1 1 auto;
9434
9485
  }
@@ -13153,7 +13204,7 @@ gov-tile, gov-tile[orientation=vertical], .gov-tile, .gov-tile[orientation=verti
13153
13204
  gov-tile[orientation=horizontal], .gov-tile[orientation=horizontal] {
13154
13205
  flex-direction: row;
13155
13206
  }
13156
- gov-tile[no-border], .gov-tile[no-border] {
13207
+ gov-tile[no-border=""], gov-tile[no-border=true i], gov-tile[no-border="1"], .gov-tile[no-border=""], .gov-tile[no-border=true i], .gov-tile[no-border="1"] {
13157
13208
  border-width: 0;
13158
13209
  }
13159
13210
  gov-tile[size=s], .gov-tile[size=s] {
@@ -13278,6 +13329,9 @@ gov-tile[size=l] .gov-tile__annotation p, .gov-tile[size=l] .gov-tile__annotatio
13278
13329
  margin-bottom: var(--margin, var(--spacing-s));
13279
13330
  }
13280
13331
  }
13332
+ gov-tile[clickable=""], gov-tile[clickable=true i], gov-tile[clickable="1"], .gov-tile[clickable=""], .gov-tile[clickable=true i], .gov-tile[clickable="1"] {
13333
+ cursor: pointer;
13334
+ }
13281
13335
  @media not all and (pointer: coarse) {
13282
13336
  gov-tile[clickable=""]:hover, gov-tile[clickable=true i]:hover, gov-tile[clickable="1"]:hover, .gov-tile[clickable=""]:hover, .gov-tile[clickable=true i]:hover, .gov-tile[clickable="1"]:hover {
13283
13337
  background: var(--hover-bg, var(--button-outlined-primary-hover));