@gov-design-system-ce/components 4.6.3 → 4.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) 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-banner.cjs.entry.js +3 -3
  4. package/dist/cjs/gov-banner.cjs.entry.js.map +1 -1
  5. package/dist/cjs/gov-banner.entry.cjs.js.map +1 -1
  6. package/dist/cjs/gov-flex_3.cjs.entry.js +1 -1
  7. package/dist/cjs/gov-form-autocomplete.cjs.entry.js +67 -23
  8. package/dist/cjs/gov-form-autocomplete.cjs.entry.js.map +1 -1
  9. package/dist/cjs/gov-form-autocomplete.entry.cjs.js.map +1 -1
  10. package/dist/cjs/gov-form-file.cjs.entry.js +32 -3
  11. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  12. package/dist/cjs/gov-form-file.entry.cjs.js.map +1 -1
  13. package/dist/cjs/gov-form-search.cjs.entry.js +1 -1
  14. package/dist/cjs/gov-form-search.cjs.entry.js.map +1 -1
  15. package/dist/cjs/gov-form-search.entry.cjs.js.map +1 -1
  16. package/dist/cjs/gov-form-select.cjs.entry.js +8 -15
  17. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  18. package/dist/cjs/gov-form-select.entry.cjs.js.map +1 -1
  19. package/dist/cjs/gov-tooltip.gov-tooltip-content.entry.cjs.js.map +1 -1
  20. package/dist/cjs/gov-tooltip_2.cjs.entry.js +34 -9
  21. package/dist/cjs/gov-tooltip_2.cjs.entry.js.map +1 -1
  22. package/dist/cjs/gov-wizard-item.cjs.entry.js +2 -2
  23. package/dist/cjs/gov-wizard.cjs.entry.js +1 -1
  24. package/dist/cjs/index-BEF5cZxd.js +4 -4
  25. package/dist/cjs/loader.cjs.js +1 -1
  26. package/dist/collection/components/gov-banner/gov-banner.js +4 -4
  27. package/dist/collection/components/gov-banner/gov-banner.js.map +1 -1
  28. package/dist/collection/components/gov-form/autocomplete/autocomplete.utils.js +14 -0
  29. package/dist/collection/components/gov-form/autocomplete/autocomplete.utils.js.map +1 -0
  30. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js +76 -22
  31. package/dist/collection/components/gov-form/autocomplete/gov-form-autocomplete.js.map +1 -1
  32. package/dist/collection/components/gov-form/file/gov-form-file.js +34 -3
  33. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  34. package/dist/collection/components/gov-form/search/gov-form-search.js +2 -2
  35. package/dist/collection/components/gov-form/search/gov-form-search.js.map +1 -1
  36. package/dist/collection/components/gov-form/select/gov-form-select.js +8 -15
  37. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  38. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js +22 -1
  39. package/dist/collection/components/gov-tooltip/gov-tooltip-content.js.map +1 -1
  40. package/dist/collection/components/gov-tooltip/gov-tooltip.js +31 -8
  41. package/dist/collection/components/gov-tooltip/gov-tooltip.js.map +1 -1
  42. package/dist/collection/components/gov-wizard/gov-wizard-item.js +2 -2
  43. package/dist/collection/components/gov-wizard/gov-wizard.js +1 -1
  44. package/dist/components/gov-accordion-item.js +1 -1
  45. package/dist/components/gov-accordion.js +1 -1
  46. package/dist/components/gov-attachments-item.js +1 -1
  47. package/dist/components/gov-attachments.js +1 -1
  48. package/dist/components/gov-backdrop.js +1 -1
  49. package/dist/components/gov-banner.js +1 -1
  50. package/dist/components/gov-banner.js.map +1 -1
  51. package/dist/components/gov-blockquote.js +1 -1
  52. package/dist/components/gov-breadcrumbs.js +1 -1
  53. package/dist/components/gov-breadcrumbs.js.map +1 -1
  54. package/dist/components/gov-button.js +1 -1
  55. package/dist/components/gov-card.js +1 -1
  56. package/dist/components/gov-chip.js +1 -1
  57. package/dist/components/gov-collapsible.js +1 -1
  58. package/dist/components/gov-collapsible.js.map +1 -1
  59. package/dist/components/gov-container.js +1 -1
  60. package/dist/components/gov-control-group.js +1 -1
  61. package/dist/components/gov-cookiebar.js +1 -1
  62. package/dist/components/gov-dialog.js +1 -1
  63. package/dist/components/gov-dropdown.js +1 -1
  64. package/dist/components/gov-empty.js +1 -1
  65. package/dist/components/gov-error-code.js +1 -1
  66. package/dist/components/gov-flex.js +1 -1
  67. package/dist/components/gov-form-autocomplete.js +1 -1
  68. package/dist/components/gov-form-checkbox-group.js +1 -1
  69. package/dist/components/gov-form-checkbox.js +1 -1
  70. package/dist/components/gov-form-control.js +1 -1
  71. package/dist/components/gov-form-file.js +1 -1
  72. package/dist/components/gov-form-file.js.map +1 -1
  73. package/dist/components/gov-form-group.js +1 -1
  74. package/dist/components/gov-form-input.js +1 -1
  75. package/dist/components/gov-form-message.js +1 -1
  76. package/dist/components/gov-form-multi-select.js +1 -1
  77. package/dist/components/gov-form-multi-select.js.map +1 -1
  78. package/dist/components/gov-form-radio-group.js +1 -1
  79. package/dist/components/gov-form-radio.js +1 -1
  80. package/dist/components/gov-form-range.js +1 -1
  81. package/dist/components/gov-form-range.js.map +1 -1
  82. package/dist/components/gov-form-search.js +1 -1
  83. package/dist/components/gov-form-search.js.map +1 -1
  84. package/dist/components/gov-form-select.js +1 -1
  85. package/dist/components/gov-form-switch.js +1 -1
  86. package/dist/components/gov-grid-item.js +1 -1
  87. package/dist/components/gov-grid.js +1 -1
  88. package/dist/components/gov-icon.js +1 -1
  89. package/dist/components/gov-infobar.js +1 -1
  90. package/dist/components/gov-layout-column.js +1 -1
  91. package/dist/components/gov-layout.js +1 -1
  92. package/dist/components/gov-link.js +1 -1
  93. package/dist/components/gov-loading.js +1 -1
  94. package/dist/components/gov-message.js +1 -1
  95. package/dist/components/gov-pagination.js +1 -1
  96. package/dist/components/gov-skeleton.js +1 -1
  97. package/dist/components/gov-spacer.js +1 -1
  98. package/dist/components/gov-stepper-item.js +1 -1
  99. package/dist/components/gov-stepper.js +1 -1
  100. package/dist/components/gov-tabs-item.js +1 -1
  101. package/dist/components/gov-tabs.js +1 -1
  102. package/dist/components/gov-tag.js +1 -1
  103. package/dist/components/gov-theme-switch.js +1 -1
  104. package/dist/components/gov-tile.js +1 -1
  105. package/dist/components/gov-toast.js +1 -1
  106. package/dist/components/gov-tooltip-content.js +1 -1
  107. package/dist/components/gov-tooltip.js +1 -1
  108. package/dist/components/gov-wizard-item.js +1 -1
  109. package/dist/components/gov-wizard.js +1 -1
  110. package/dist/components/{p-DKo9A5gq.js → p-BHRF-5cf.js} +2 -2
  111. package/dist/components/{p-9imLQpxb.js → p-BSr8e18S.js} +2 -2
  112. package/dist/components/{p-BNnuBQvo.js → p-BxS4InzB.js} +2 -2
  113. package/dist/components/{p-CfaJM4SA.js → p-CMmyR4-k.js} +2 -2
  114. package/dist/components/{p-B0KFtEn3.js → p-CU0plGZP.js} +2 -2
  115. package/dist/components/{p-BrdXh0mI.js → p-CXPP9vec.js} +2 -2
  116. package/dist/components/{p-djqfSbq-.js → p-C_URF9Su.js} +2 -2
  117. package/dist/components/{p-yqJEurSE.js → p-CnKqUwf9.js} +2 -2
  118. package/dist/components/p-DEthsMuE.js +2 -0
  119. package/dist/components/p-DEthsMuE.js.map +1 -0
  120. package/dist/components/{p-Bv5L0j6n.js → p-DN5pb9xA.js} +2 -2
  121. package/dist/components/{p-DesycS6d.js → p-iTwUkISB.js} +2 -2
  122. package/dist/components/{p-BZTY3MxF.js → p-ibUK7mfI.js} +2 -2
  123. package/dist/components/p-keC6luw7.js +2 -0
  124. package/dist/components/p-keC6luw7.js.map +1 -0
  125. package/dist/components/p-pJ_vPAO0.js +2 -0
  126. package/dist/components/p-pJ_vPAO0.js.map +1 -0
  127. package/dist/components/p-yIpIIG5A.js +2 -0
  128. package/dist/components/p-yIpIIG5A.js.map +1 -0
  129. package/dist/core/core.css +47 -47
  130. package/dist/core/core.esm.js +1 -1
  131. package/dist/core/gov-banner.entry.esm.js.map +1 -1
  132. package/dist/core/gov-form-autocomplete.entry.esm.js.map +1 -1
  133. package/dist/core/gov-form-file.entry.esm.js.map +1 -1
  134. package/dist/core/gov-form-search.entry.esm.js.map +1 -1
  135. package/dist/core/gov-form-select.entry.esm.js.map +1 -1
  136. package/dist/core/gov-tooltip.gov-tooltip-content.entry.esm.js.map +1 -1
  137. package/dist/core/{p-4da8ac1d.entry.js → p-10991f00.entry.js} +2 -2
  138. package/dist/core/p-19300834.entry.js +2 -0
  139. package/dist/core/{p-bd389bfd.entry.js.map → p-19300834.entry.js.map} +1 -1
  140. package/dist/core/p-4e2faea7.entry.js +2 -0
  141. package/dist/core/p-4e2faea7.entry.js.map +1 -0
  142. package/dist/core/p-7f513718.entry.js +2 -0
  143. package/dist/core/p-7f513718.entry.js.map +1 -0
  144. package/dist/core/p-8d47e346.entry.js +2 -0
  145. package/dist/core/p-8d47e346.entry.js.map +1 -0
  146. package/dist/core/p-DQuL1Twl.js.map +1 -1
  147. package/dist/core/p-afe254cb.entry.js +2 -0
  148. package/dist/core/p-afe254cb.entry.js.map +1 -0
  149. package/dist/core/{p-469f14db.entry.js → p-bec959c4.entry.js} +2 -2
  150. package/dist/core/p-d9d29f50.entry.js +2 -0
  151. package/dist/core/p-d9d29f50.entry.js.map +1 -0
  152. package/dist/core/{p-4d365881.entry.js → p-f75ad657.entry.js} +2 -2
  153. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
  154. package/dist/esm/core.js +1 -1
  155. package/dist/esm/gov-banner.entry.js +3 -3
  156. package/dist/esm/gov-banner.entry.js.map +1 -1
  157. package/dist/esm/gov-flex_3.entry.js +1 -1
  158. package/dist/esm/gov-form-autocomplete.entry.js +68 -24
  159. package/dist/esm/gov-form-autocomplete.entry.js.map +1 -1
  160. package/dist/esm/gov-form-file.entry.js +32 -3
  161. package/dist/esm/gov-form-file.entry.js.map +1 -1
  162. package/dist/esm/gov-form-search.entry.js +1 -1
  163. package/dist/esm/gov-form-search.entry.js.map +1 -1
  164. package/dist/esm/gov-form-select.entry.js +8 -15
  165. package/dist/esm/gov-form-select.entry.js.map +1 -1
  166. package/dist/esm/gov-tooltip.gov-tooltip-content.entry.js.map +1 -1
  167. package/dist/esm/gov-tooltip_2.entry.js +34 -9
  168. package/dist/esm/gov-tooltip_2.entry.js.map +1 -1
  169. package/dist/esm/gov-wizard-item.entry.js +2 -2
  170. package/dist/esm/gov-wizard.entry.js +1 -1
  171. package/dist/esm/index-ClISz4NF.js +4 -4
  172. package/dist/esm/loader.js +1 -1
  173. package/dist/hydrate/index.js +154 -60
  174. package/dist/hydrate/index.mjs +154 -60
  175. package/dist/types/Users/jf/dev/designSystem/gov-design-system/packages/core/.stencil/packages/core/stencil.config.d.ts +2 -0
  176. package/dist/types/components/gov-form/autocomplete/autocomplete.utils.d.ts +2 -0
  177. package/dist/types/components/gov-form/autocomplete/gov-form-autocomplete.d.ts +9 -0
  178. package/dist/types/components/gov-form/file/gov-form-file.d.ts +1 -0
  179. package/dist/types/components/gov-form/select/gov-form-select.d.ts +1 -1
  180. package/dist/types/components/gov-tooltip/gov-tooltip-content.d.ts +4 -0
  181. package/dist/types/components/gov-tooltip/gov-tooltip.d.ts +3 -0
  182. package/dist/types/components.d.ts +20 -2
  183. package/package.json +2 -2
  184. package/readme.md +9 -0
  185. package/dist/components/p-DFu5UVoP.js +0 -2
  186. package/dist/components/p-DFu5UVoP.js.map +0 -1
  187. package/dist/components/p-DMVQRz4f.js +0 -2
  188. package/dist/components/p-DMVQRz4f.js.map +0 -1
  189. package/dist/components/p-UDT3DloZ.js +0 -2
  190. package/dist/components/p-UDT3DloZ.js.map +0 -1
  191. package/dist/components/p-x3w8Mun_.js +0 -2
  192. package/dist/components/p-x3w8Mun_.js.map +0 -1
  193. package/dist/core/p-11fc3899.entry.js +0 -2
  194. package/dist/core/p-11fc3899.entry.js.map +0 -1
  195. package/dist/core/p-33b462c9.entry.js +0 -2
  196. package/dist/core/p-33b462c9.entry.js.map +0 -1
  197. package/dist/core/p-3e5ae012.entry.js +0 -2
  198. package/dist/core/p-3e5ae012.entry.js.map +0 -1
  199. package/dist/core/p-bd389bfd.entry.js +0 -2
  200. package/dist/core/p-c21bc8f9.entry.js +0 -2
  201. package/dist/core/p-c21bc8f9.entry.js.map +0 -1
  202. package/dist/core/p-def34832.entry.js +0 -2
  203. package/dist/core/p-def34832.entry.js.map +0 -1
  204. package/dist/types/work/packages/core/.stencil/packages/core/stencil.config.d.ts +0 -2
  205. /package/dist/components/{p-DKo9A5gq.js.map → p-BHRF-5cf.js.map} +0 -0
  206. /package/dist/components/{p-9imLQpxb.js.map → p-BSr8e18S.js.map} +0 -0
  207. /package/dist/components/{p-BNnuBQvo.js.map → p-BxS4InzB.js.map} +0 -0
  208. /package/dist/components/{p-CfaJM4SA.js.map → p-CMmyR4-k.js.map} +0 -0
  209. /package/dist/components/{p-B0KFtEn3.js.map → p-CU0plGZP.js.map} +0 -0
  210. /package/dist/components/{p-BrdXh0mI.js.map → p-CXPP9vec.js.map} +0 -0
  211. /package/dist/components/{p-djqfSbq-.js.map → p-C_URF9Su.js.map} +0 -0
  212. /package/dist/components/{p-yqJEurSE.js.map → p-CnKqUwf9.js.map} +0 -0
  213. /package/dist/components/{p-Bv5L0j6n.js.map → p-DN5pb9xA.js.map} +0 -0
  214. /package/dist/components/{p-DesycS6d.js.map → p-iTwUkISB.js.map} +0 -0
  215. /package/dist/components/{p-BZTY3MxF.js.map → p-ibUK7mfI.js.map} +0 -0
  216. /package/dist/core/{p-4da8ac1d.entry.js.map → p-10991f00.entry.js.map} +0 -0
  217. /package/dist/core/{p-469f14db.entry.js.map → p-bec959c4.entry.js.map} +0 -0
  218. /package/dist/core/{p-4d365881.entry.js.map → p-f75ad657.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,c as e,h as o,a as i}from"./index.js";import{g as a,t as n}from"./p-DKo9A5gq.js";import{F as c}from"./p-5itQzbON.js";import{v as l}from"./p-BKP-F1qP.js";import{C as r}from"./p-U40vKHrs.js";import{p as h}from"./p-CQvUntGY.js";import{A as d,a as b,i as f}from"./p-CXgom82_.js";import{d as m}from"./p-djqfSbq-.js";import{d as v}from"./p-BrdXh0mI.js";const p=h(r,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var g;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(g||(g={}));const u={root:"gov-infobar",section:"gov-infobar__section",content:"gov-infobar__content",headline:"gov-infobar__headline",close:"gov-infobar__close"};const y=t(class t extends s{constructor(){super();this.__registerHost();this.govClose=e(this,"gov-close");this.hydrated=false;this.color="primary";this.type="bold";this.role=undefined;this.accessibleCloseLabel="Zavřít informační lištu";this.accessibleToggleLabel="Zobrazit více informací";this.closable=false;this.toggleContent=false;this.inheritedAttributes={};this.h=a(this.host)}validateColor(t){l(p,t,u.root)}componentDidLoad(){this.attributeObserver=new d(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(b)}componentWillLoad(){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,s){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:s})}connectedCallback(){this.hydrated=true}render(){const t=o("gov-button",{key:"c52201d2fd9a489e8eb152e8f7b3080cc9d347f0",size:"s","aria-label":this.accessibleCloseLabel,type:"base",color:this.isBold?this.color:"neutral","on-gov-click":this.onCloseHandler.bind(this),class:u.close},o("gov-icon",{key:"c5d79b9980d755afae94643836d58ab2dd5b4e4f",name:"x-lg",type:"components"}));return o(i,{key:"f7c79cc67ee83527ff3c56d8e96f325b5366154f",class:this.h.classes(u.root),color:this.color,type:this.type,hydrated:this.hydrated},o("section",Object.assign({key:"dceb21332d31d55cb2f63d078efc5284439978ae",class:u.section},this.inheritedAttributes,{role:this.role}),this.h.hasSlot("icon")&&o("span",{key:"5dcf6a77672669228e8b94b7c39141624706254b"},o("slot",{key:"b158350430cf7249f9f7ea59fbf675879a195c39",name:"icon"})),o("div",{key:"17894bba1c6538d205a64e055aa6ee82825176a0",class:u.content},this.h.hasSlot("headline")?o(c,null,o("div",{class:u.headline},o("slot",{name:"headline"}),o("gov-button",{size:"s",type:"base",color:this.isBold?this.color:"neutral","aria-label":this.accessibleToggleLabel,"on-gov-click":()=>this.toggleContent=!this.toggleContent},o("gov-icon",{name:this.toggleContent?"chevron-up":"chevron-down",type:"components"}))),o("div",{hidden:!this.toggleContent,"aria-hidden":n(this.toggleContent)},o("slot",null))):o("slot",null)),this.closable&&t))}onCloseHandler(t){this.govClose.emit({component:u.root,ref:this.host,originalEvent:t})}get isBold(){return this.type==="bold"}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-infobar",{color:[1],type:[1],role:[1],accessibleCloseLabel:[1,"accessible-close-label"],accessibleToggleLabel:[1,"accessible-toggle-label"],closable:[4],toggleContent:[32],inheritedAttributes:[32]},undefined,{color:["validateColor"]}]);function C(){if(typeof customElements==="undefined"){return}const t=["gov-infobar","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-infobar":if(!customElements.get(t)){customElements.define(t,y)}break;case"gov-button":if(!customElements.get(t)){m()}break;case"gov-icon":if(!customElements.get(t)){v()}break}}))}C();const k=y;const j=C;export{k as GovInfobar,j as defineCustomElement};
1
+ import{p as t,H as e,c as s,h as o,a as i}from"./index.js";import{g as a,t as n}from"./p-BHRF-5cf.js";import{F as c}from"./p-5itQzbON.js";import{v as l}from"./p-BKP-F1qP.js";import{C as r}from"./p-U40vKHrs.js";import{p as h}from"./p-CQvUntGY.js";import{A as d,a as b,i as f}from"./p-CXgom82_.js";import{d as m}from"./p-C_URF9Su.js";import{d as v}from"./p-CXPP9vec.js";const p=h(r,["PRIMARY","SECONDARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var u;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(u||(u={}));const g={root:"gov-infobar",section:"gov-infobar__section",content:"gov-infobar__content",headline:"gov-infobar__headline",close:"gov-infobar__close"};const C=t(class t extends e{constructor(){super();this.__registerHost();this.govClose=s(this,"gov-close");this.hydrated=false;this.color="primary";this.type="bold";this.role=undefined;this.accessibleCloseLabel="Zavřít informační lištu";this.accessibleToggleLabel="Zobrazit více informací";this.closable=false;this.toggleContent=false;this.inheritedAttributes={};this.h=a(this.host)}validateColor(t){l(p,t,g.root)}componentDidLoad(){this.attributeObserver=new d(this.host,((t,e)=>{this.onAriaAttributeChange(t,e)}));this.attributeObserver.startObserving(b)}componentWillLoad(){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})}connectedCallback(){this.hydrated=true}render(){const t=o("gov-button",{key:"c52201d2fd9a489e8eb152e8f7b3080cc9d347f0",size:"s","aria-label":this.accessibleCloseLabel,type:"base",color:this.isBold?this.color:"neutral","on-gov-click":this.onCloseHandler.bind(this),class:g.close},o("gov-icon",{key:"c5d79b9980d755afae94643836d58ab2dd5b4e4f",name:"x-lg",type:"components"}));return o(i,{key:"f7c79cc67ee83527ff3c56d8e96f325b5366154f",class:this.h.classes(g.root),color:this.color,type:this.type,hydrated:this.hydrated},o("section",Object.assign({key:"dceb21332d31d55cb2f63d078efc5284439978ae",class:g.section},this.inheritedAttributes,{role:this.role}),this.h.hasSlot("icon")&&o("span",{key:"5dcf6a77672669228e8b94b7c39141624706254b"},o("slot",{key:"b158350430cf7249f9f7ea59fbf675879a195c39",name:"icon"})),o("div",{key:"17894bba1c6538d205a64e055aa6ee82825176a0",class:g.content},this.h.hasSlot("headline")?o(c,null,o("div",{class:g.headline},o("slot",{name:"headline"}),o("gov-button",{size:"s",type:"base",color:this.isBold?this.color:"neutral","aria-label":this.accessibleToggleLabel,"on-gov-click":()=>this.toggleContent=!this.toggleContent},o("gov-icon",{name:this.toggleContent?"chevron-up":"chevron-down",type:"components"}))),o("div",{hidden:!this.toggleContent,"aria-hidden":n(this.toggleContent)},o("slot",null))):o("slot",null)),this.closable&&t))}onCloseHandler(t){this.govClose.emit({component:g.root,ref:this.host,originalEvent:t})}get isBold(){return this.type==="bold"}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-infobar",{color:[1],type:[1],role:[1],accessibleCloseLabel:[1,"accessible-close-label"],accessibleToggleLabel:[1,"accessible-toggle-label"],closable:[4],toggleContent:[32],inheritedAttributes:[32]},undefined,{color:["validateColor"]}]);function y(){if(typeof customElements==="undefined"){return}const t=["gov-infobar","gov-button","gov-icon"];t.forEach((t=>{switch(t){case"gov-infobar":if(!customElements.get(t)){customElements.define(t,C)}break;case"gov-button":if(!customElements.get(t)){m()}break;case"gov-icon":if(!customElements.get(t)){v()}break}}))}y();const k=C;const j=y;export{k as GovInfobar,j as defineCustomElement};
2
2
  //# sourceMappingURL=gov-infobar.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as s,h as o,a as e}from"./index.js";import{a as c}from"./p-Q99QrOoi.js";import{g as n}from"./p-DKo9A5gq.js";const r=t(class t extends s{constructor(){super();this.__registerHost();this.h=n(this.host)}render(){return o(e,{key:"9e86314a6f4fb229ce1b0b3ac63cfbb2c88d2e28",class:this.h.classes(c.root)},o("slot",{key:"8d2a31c1bd14511f80536b82b62c5c8a72ddf2ce"}))}get host(){return this}},[4,"gov-layout-column"]);function a(){if(typeof customElements==="undefined"){return}const t=["gov-layout-column"];t.forEach((t=>{switch(t){case"gov-layout-column":if(!customElements.get(t)){customElements.define(t,r)}break}}))}a();const u=r;const i=a;export{u as GovLayoutColumn,i as defineCustomElement};
1
+ import{p as t,H as s,h as o,a as e}from"./index.js";import{a as c}from"./p-Q99QrOoi.js";import{g as n}from"./p-BHRF-5cf.js";const r=t(class t extends s{constructor(){super();this.__registerHost();this.h=n(this.host)}render(){return o(e,{key:"9e86314a6f4fb229ce1b0b3ac63cfbb2c88d2e28",class:this.h.classes(c.root)},o("slot",{key:"8d2a31c1bd14511f80536b82b62c5c8a72ddf2ce"}))}get host(){return this}},[4,"gov-layout-column"]);function a(){if(typeof customElements==="undefined"){return}const t=["gov-layout-column"];t.forEach((t=>{switch(t){case"gov-layout-column":if(!customElements.get(t)){customElements.define(t,r)}break}}))}a();const u=r;const i=a;export{u as GovLayoutColumn,i as defineCustomElement};
2
2
  //# sourceMappingURL=gov-layout-column.js.map
@@ -1,2 +1,2 @@
1
- import{p as s,H as t,h as e,a as o}from"./index.js";import{L as c}from"./p-Q99QrOoi.js";import{g as i}from"./p-DKo9A5gq.js";const n=s(class s extends t{constructor(){super();this.__registerHost();this.type="stretch";this.inverse=false;this.h=i(this.host)}typeClass(s,t,e,o){const c=t?"-"+t:"";const i=e?"-"+e:"";const n=o?"-inverse":"";return s+" "+s+c+i+n}render(){return e(o,{key:"9dc8289f8ccb095d04c4d6f1851506137ba51a48",type:this.type,class:this.h.classes(c.root)},e("section",{key:"d87bf25092207d67f9ac85aa5d6907fefdb17f2d",class:this.typeClass(c.section,this.type,this.variant,this.inverse)},e("slot",{key:"557a015cddbf93b7a9ee4839be973525924fb2be"})))}get host(){return this}},[4,"gov-layout",{type:[1],variant:[1],inverse:[4]}]);function r(){if(typeof customElements==="undefined"){return}const s=["gov-layout"];s.forEach((s=>{switch(s){case"gov-layout":if(!customElements.get(s)){customElements.define(s,n)}break}}))}r();const a=n;const f=r;export{a as GovLayout,f as defineCustomElement};
1
+ import{p as s,H as t,h as e,a as o}from"./index.js";import{L as c}from"./p-Q99QrOoi.js";import{g as i}from"./p-BHRF-5cf.js";const n=s(class s extends t{constructor(){super();this.__registerHost();this.type="stretch";this.inverse=false;this.h=i(this.host)}typeClass(s,t,e,o){const c=t?"-"+t:"";const i=e?"-"+e:"";const n=o?"-inverse":"";return s+" "+s+c+i+n}render(){return e(o,{key:"9dc8289f8ccb095d04c4d6f1851506137ba51a48",type:this.type,class:this.h.classes(c.root)},e("section",{key:"d87bf25092207d67f9ac85aa5d6907fefdb17f2d",class:this.typeClass(c.section,this.type,this.variant,this.inverse)},e("slot",{key:"557a015cddbf93b7a9ee4839be973525924fb2be"})))}get host(){return this}},[4,"gov-layout",{type:[1],variant:[1],inverse:[4]}]);function r(){if(typeof customElements==="undefined"){return}const s=["gov-layout"];s.forEach((s=>{switch(s){case"gov-layout":if(!customElements.get(s)){customElements.define(s,n)}break}}))}r();const a=n;const f=r;export{a as GovLayout,f as defineCustomElement};
2
2
  //# sourceMappingURL=gov-layout.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,h as s,a as i}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as o}from"./p-BcQO4NH2.js";import{g as n}from"./p-DKo9A5gq.js";import{v as r}from"./p-BKP-F1qP.js";import{i as c}from"./p-CXgom82_.js";import{d as h}from"./p-BrdXh0mI.js";const f=a(o,["_S","_M","_L"]);const l={root:"gov-link",external:"gov-link--external"};const m=e(class e extends t{constructor(){super();this.__registerHost();this.size="m";this.external=false;this.truncate=false;this.inheritedAttributes={};this.h=n(this.host)}validateSize(e){r(f,e,l.root)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=c(this.host)}onAriaAttributeChange(e,t){this.host.removeAttribute(e);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[e]:t})}render(){return s(i,{key:"8ad1e46b293cf74570f818c0a2eebae906b59d79",class:this.h.classes(l.root),size:this.size,href:this.href,external:this.external,truncate:this.truncate},s("a",Object.assign({key:"7b2e9ca795c11167426e80a5a938ccb2153abecc",class:"element",href:this.href,target:this.external?"_blank":this.target,rel:this.external?"noreferrer":null},this.inheritedAttributes),s("slot",{key:"30f58ac9206aa7a1afa9147c8e43077d9b1cb3a8",name:"icon-start"}),s("span",{key:"f839d620a705139a1d155784ea71d954701e89ea"},s("slot",{key:"516ca9f11e1bc62638f3989a8efc0798b9a4ad2e"})),s("slot",{key:"36351fdc5c94f027f731a51608f26552a587c5d0",name:"icon-end"}),this.external&&s("gov-icon",{key:"e2433f478e1f14db8ccddf9d45c4fb0118eeb3a0",name:"box-arrow-up-right",type:"components",size:this.size,class:l.external})))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-link",{size:[1],external:[4],truncate:[4],href:[1],target:[1],inheritedAttributes:[32]},undefined,{size:["validateSize"]}]);function d(){if(typeof customElements==="undefined"){return}const e=["gov-link","gov-icon"];e.forEach((e=>{switch(e){case"gov-link":if(!customElements.get(e)){customElements.define(e,m)}break;case"gov-icon":if(!customElements.get(e)){h()}break}}))}d();const p=m;const b=d;export{p as GovLink,b as defineCustomElement};
1
+ import{p as e,H as t,h as s,a as i}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as o}from"./p-BcQO4NH2.js";import{g as c}from"./p-BHRF-5cf.js";import{v as n}from"./p-BKP-F1qP.js";import{i as r}from"./p-CXgom82_.js";import{d as f}from"./p-CXPP9vec.js";const h=a(o,["_S","_M","_L"]);const l={root:"gov-link",external:"gov-link--external"};const m=e(class e extends t{constructor(){super();this.__registerHost();this.size="m";this.external=false;this.truncate=false;this.inheritedAttributes={};this.h=c(this.host)}validateSize(e){n(h,e,l.root)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=r(this.host)}onAriaAttributeChange(e,t){this.host.removeAttribute(e);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[e]:t})}render(){return s(i,{key:"8ad1e46b293cf74570f818c0a2eebae906b59d79",class:this.h.classes(l.root),size:this.size,href:this.href,external:this.external,truncate:this.truncate},s("a",Object.assign({key:"7b2e9ca795c11167426e80a5a938ccb2153abecc",class:"element",href:this.href,target:this.external?"_blank":this.target,rel:this.external?"noreferrer":null},this.inheritedAttributes),s("slot",{key:"30f58ac9206aa7a1afa9147c8e43077d9b1cb3a8",name:"icon-start"}),s("span",{key:"f839d620a705139a1d155784ea71d954701e89ea"},s("slot",{key:"516ca9f11e1bc62638f3989a8efc0798b9a4ad2e"})),s("slot",{key:"36351fdc5c94f027f731a51608f26552a587c5d0",name:"icon-end"}),this.external&&s("gov-icon",{key:"e2433f478e1f14db8ccddf9d45c4fb0118eeb3a0",name:"box-arrow-up-right",type:"components",size:this.size,class:l.external})))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-link",{size:[1],external:[4],truncate:[4],href:[1],target:[1],inheritedAttributes:[32]},undefined,{size:["validateSize"]}]);function d(){if(typeof customElements==="undefined"){return}const e=["gov-link","gov-icon"];e.forEach((e=>{switch(e){case"gov-link":if(!customElements.get(e)){customElements.define(e,m)}break;case"gov-icon":if(!customElements.get(e)){f()}break}}))}d();const p=m;const b=d;export{p as GovLink,b as defineCustomElement};
2
2
  //# sourceMappingURL=gov-link.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as o,h as s,a as t}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as i}from"./p-BcQO4NH2.js";import{g as n,p as c}from"./p-DKo9A5gq.js";import{v as d}from"./p-BKP-F1qP.js";import{d as r}from"./p-yqJEurSE.js";import{d as m}from"./p-BrdXh0mI.js";const f=a(i,["_S","_M","_L"]);const p={root:"gov-loading",content:"gov-loading__content",icon:"gov-loading__icon"};const g=e(class e extends o{constructor(){super();this.__registerHost();this.size="m";this.h=n(this.host)}validateSize(e){d(f,e,p.root)}componentWillLoad(){this.validateSize(this.size)}render(){return s(t,{key:"fd1daa910f59d6a90cd028a7973952450dcbbafd",class:this.h.classes(p.root),size:this.size},s("div",{key:"c4ce62df116e5e13a2bdb14855f6ce6b8b5fc640",class:p.content},s("gov-icon",{key:"5b31630577d8e7cde90a80829ea20b9ded0f5bb3",class:c([p.icon,"gov-spin-animation"]),name:"loader",type:"components"}),s("slot",{key:"21179ec4603daf9694a520be92c92989c99f1884"})),s("gov-backdrop",{key:"95104639ad57b91d4dcaa2df40f6203a8e13b52e",inverse:true}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-loading",{size:[1]},undefined,{size:["validateSize"]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-loading","gov-backdrop","gov-icon"];e.forEach((e=>{switch(e){case"gov-loading":if(!customElements.get(e)){customElements.define(e,g)}break;case"gov-backdrop":if(!customElements.get(e)){r()}break;case"gov-icon":if(!customElements.get(e)){m()}break}}))}l();const v=g;const b=l;export{v as GovLoading,b as defineCustomElement};
1
+ import{p as e,H as o,h as s,a as t}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as i}from"./p-BcQO4NH2.js";import{g as n,p as c}from"./p-BHRF-5cf.js";import{v as d}from"./p-BKP-F1qP.js";import{d as r}from"./p-CnKqUwf9.js";import{d as m}from"./p-CXPP9vec.js";const f=a(i,["_S","_M","_L"]);const p={root:"gov-loading",content:"gov-loading__content",icon:"gov-loading__icon"};const g=e(class e extends o{constructor(){super();this.__registerHost();this.size="m";this.h=n(this.host)}validateSize(e){d(f,e,p.root)}componentWillLoad(){this.validateSize(this.size)}render(){return s(t,{key:"fd1daa910f59d6a90cd028a7973952450dcbbafd",class:this.h.classes(p.root),size:this.size},s("div",{key:"c4ce62df116e5e13a2bdb14855f6ce6b8b5fc640",class:p.content},s("gov-icon",{key:"5b31630577d8e7cde90a80829ea20b9ded0f5bb3",class:c([p.icon,"gov-spin-animation"]),name:"loader",type:"components"}),s("slot",{key:"21179ec4603daf9694a520be92c92989c99f1884"})),s("gov-backdrop",{key:"95104639ad57b91d4dcaa2df40f6203a8e13b52e",inverse:true}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-loading",{size:[1]},undefined,{size:["validateSize"]}]);function l(){if(typeof customElements==="undefined"){return}const e=["gov-loading","gov-backdrop","gov-icon"];e.forEach((e=>{switch(e){case"gov-loading":if(!customElements.get(e)){customElements.define(e,g)}break;case"gov-backdrop":if(!customElements.get(e)){r()}break;case"gov-icon":if(!customElements.get(e)){m()}break}}))}l();const v=g;const b=l;export{v as GovLoading,b as defineCustomElement};
2
2
  //# sourceMappingURL=gov-loading.js.map
@@ -1,2 +1,2 @@
1
- import{p as s,H as e,h as t,a as o}from"./index.js";import{v as c}from"./p-BKP-F1qP.js";import{C as a}from"./p-U40vKHrs.js";import{p as r}from"./p-CQvUntGY.js";import{g as n}from"./p-DKo9A5gq.js";r(a,["PRIMARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var i;(function(s){s["BOLD"]="bold";s["SUBTLE"]="subtle"})(i||(i={}));const f={root:"gov-message",content:"gov-message__content"};const d=s(class s extends e{constructor(){super();this.__registerHost();this.color=a.PRIMARY;this.type="subtle";this.h=n(this.host)}validateColor(s){c(a,s,f.root)}render(){return t(o,{key:"dcd1094c7dec5bf304d39a4de8bc85dc12cb92b7",class:this.h.classes(f.root),color:this.color,type:this.type,role:"status"},this.h.hasSlot("icon")&&t("span",{key:"d51f207d78f918b14dc4edb22706595d7bc439c3"},t("slot",{key:"890ffc0ff4a6c6abbfef4e2b2a0ab1ba40a11695",name:"icon"})),t("div",{key:"ef3b1797d3bc063592d21c4013a35cf310ef0fb3",class:f.content},t("slot",{key:"6ff8a2cd2f06006fa6a0182b196cd8a38b1d1e87"})))}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-message",{color:[1],type:[1]},undefined,{color:["validateColor"]}]);function l(){if(typeof customElements==="undefined"){return}const s=["gov-message"];s.forEach((s=>{switch(s){case"gov-message":if(!customElements.get(s)){customElements.define(s,d)}break}}))}l();const m=d;const b=l;export{m as GovMessage,b as defineCustomElement};
1
+ import{p as s,H as e,h as t,a as o}from"./index.js";import{v as c}from"./p-BKP-F1qP.js";import{C as a}from"./p-U40vKHrs.js";import{p as r}from"./p-CQvUntGY.js";import{g as n}from"./p-BHRF-5cf.js";r(a,["PRIMARY","NEUTRAL","ERROR","SUCCESS","WARNING"]);var f;(function(s){s["BOLD"]="bold";s["SUBTLE"]="subtle"})(f||(f={}));const i={root:"gov-message",content:"gov-message__content"};const d=s(class s extends e{constructor(){super();this.__registerHost();this.color=a.PRIMARY;this.type="subtle";this.h=n(this.host)}validateColor(s){c(a,s,i.root)}render(){return t(o,{key:"dcd1094c7dec5bf304d39a4de8bc85dc12cb92b7",class:this.h.classes(i.root),color:this.color,type:this.type,role:"status"},this.h.hasSlot("icon")&&t("span",{key:"d51f207d78f918b14dc4edb22706595d7bc439c3"},t("slot",{key:"890ffc0ff4a6c6abbfef4e2b2a0ab1ba40a11695",name:"icon"})),t("div",{key:"ef3b1797d3bc063592d21c4013a35cf310ef0fb3",class:i.content},t("slot",{key:"6ff8a2cd2f06006fa6a0182b196cd8a38b1d1e87"})))}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-message",{color:[1],type:[1]},undefined,{color:["validateColor"]}]);function l(){if(typeof customElements==="undefined"){return}const s=["gov-message"];s.forEach((s=>{switch(s){case"gov-message":if(!customElements.get(s)){customElements.define(s,d)}break}}))}l();const m=d;const b=l;export{m as GovMessage,b as defineCustomElement};
2
2
  //# sourceMappingURL=gov-message.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{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-DKo9A5gq.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-djqfSbq-.js";import{d as j}from"./p-x3w8Mun_.js";import{d as P}from"./p-BrdXh0mI.js";const S=c(l,["_S","_M"]);const y=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(S,t,_.root)}validateColor(t){n(y,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"]}}},[0,"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,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)){P()}break}}))}A();const w=x;const C=A;export{w as GovPagination,C 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,b as g}from"./p-BHRF-5cf.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-C_URF9Su.js";import{d as P}from"./p-yIpIIG5A.js";import{d as j}from"./p-CXPP9vec.js";const y=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 A=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(y,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"]}}},[0,"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,A)}break;case"gov-button":if(!customElements.get(t)){b()}break;case"gov-form-select":if(!customElements.get(t)){P()}break;case"gov-icon":if(!customElements.get(t)){j()}break}}))}C();const x=A;const w=C;export{x as GovPagination,w as defineCustomElement};
2
2
  //# sourceMappingURL=gov-pagination.js.map
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-BNnuBQvo.js";const t=o;const n=s;export{t as GovSkeleton,n as defineCustomElement};
1
+ import{G as o,d as s}from"./p-BxS4InzB.js";const t=o;const n=s;export{t as GovSkeleton,n as defineCustomElement};
2
2
  //# sourceMappingURL=gov-skeleton.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as e,h as s,a as i}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{S as a}from"./p-BcQO4NH2.js";import{p as n}from"./p-CQvUntGY.js";import{g as r}from"./p-DKo9A5gq.js";const c=n(a,["_2XS","_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL"]);var p;(function(t){t["NONE"]="none";t["SM"]="sm";t["MD"]="md";t["LG"]="lg";t["XL"]="xl"})(p||(p={}));const m={root:"gov-spacer"};const d=t(class t extends e{constructor(){super();this.__registerHost();this.breakpoint=undefined;this.h=r(this.host)}validateSize(t){o(c,t,m.root)}validateBreakpoint(t){o(p,t,m.root)}componentWillLoad(){this.validateSize(this.size);this.validateBreakpoint(this.breakpoint)}render(){return s(i,{key:"d1b9c583b3b0381b426fb1b54be26821af691a4e",class:this.h.classes(m.root),size:this.size,breakpoint:this.breakpoint})}get host(){return this}static get watchers(){return{size:["validateSize"],breakpoint:["validateBreakpoint"]}}},[0,"gov-spacer",{size:[1],breakpoint:[1]},undefined,{size:["validateSize"],breakpoint:["validateBreakpoint"]}]);function f(){if(typeof customElements==="undefined"){return}const t=["gov-spacer"];t.forEach((t=>{switch(t){case"gov-spacer":if(!customElements.get(t)){customElements.define(t,d)}break}}))}f();const h=d;const l=f;export{h as GovSpacer,l as defineCustomElement};
1
+ import{p as t,H as e,h as s,a as i}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{S as a}from"./p-BcQO4NH2.js";import{p as n}from"./p-CQvUntGY.js";import{g as r}from"./p-BHRF-5cf.js";const c=n(a,["_2XS","_XS","_S","_M","_L","_XL","_2XL","_3XL","_4XL"]);var p;(function(t){t["NONE"]="none";t["SM"]="sm";t["MD"]="md";t["LG"]="lg";t["XL"]="xl"})(p||(p={}));const m={root:"gov-spacer"};const d=t(class t extends e{constructor(){super();this.__registerHost();this.breakpoint=undefined;this.h=r(this.host)}validateSize(t){o(c,t,m.root)}validateBreakpoint(t){o(p,t,m.root)}componentWillLoad(){this.validateSize(this.size);this.validateBreakpoint(this.breakpoint)}render(){return s(i,{key:"d1b9c583b3b0381b426fb1b54be26821af691a4e",class:this.h.classes(m.root),size:this.size,breakpoint:this.breakpoint})}get host(){return this}static get watchers(){return{size:["validateSize"],breakpoint:["validateBreakpoint"]}}},[0,"gov-spacer",{size:[1],breakpoint:[1]},undefined,{size:["validateSize"],breakpoint:["validateBreakpoint"]}]);function f(){if(typeof customElements==="undefined"){return}const t=["gov-spacer"];t.forEach((t=>{switch(t){case"gov-spacer":if(!customElements.get(t)){customElements.define(t,d)}break}}))}f();const h=d;const l=f;export{h as GovSpacer,l as defineCustomElement};
2
2
  //# sourceMappingURL=gov-spacer.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,c as s,h as a,a as c}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{b as i,c as d}from"./p-ClYmjarv.js";import{c as n}from"./p-vN03FcXN.js";import{g as r}from"./p-DKo9A5gq.js";const f=e(class e extends t{constructor(){super();this.__registerHost();this.govChange=s(this,"gov-change");this.hydrated=false;this.color="primary";this.size="m";this.h=r(this.host);this.triggerId=n("GovStepperItem");this.contentId=n("GovStepperContent")}validateColor(e){o(d,e,i.root)}componentWillLoad(){this.validateColor(this.color)}connectedCallback(){this.hydrated=true}render(){const e=this.identifier||this.triggerId;const t=this.contentId;return a(c,{key:"126275cd984137b2c6d6cc5bdd2074adf14cee7b",id:e,class:this.h.classes(i.root),color:this.color,role:"listitem",hydrated:this.hydrated},a("div",{key:"15c1f0a0d533cd5473611b388590a6af94755ab9"},a("div",{key:"85535167b5359d00e773ffac3aa64ae95d9a005a",class:i.steps},a("span",{key:"37558ddd120824a5f234503b8cfb673352f642e1"}),a("span",{key:"647d2862b31d2e6e1c51f90e0cbf8eb76af9f5a8",class:i.prefix},a("slot",{key:"c58b03ec979eafc5db766c0134def19cbe2582d1",name:"prefix"})),a("span",{key:"c294e1f9af11588960c8ccf5d16186eb2e57cc74"})),a("div",{key:"ca82d4d7c0617f0c13de80c5a4247d8f9cd3d2e7",class:i.main},a("span",{key:"6d1cb25eca0517abcb0557579eab240beaff7557",class:i.headline},a("slot",{key:"3ef65e410481935cab120087b9454be9ce16ac1a",name:"headline"})),a("slot",{key:"8b7f8674a3347b2b51987ec7054835a8db203df8",name:"annotation"}),this.h.hasSlot("content")&&a("div",{key:"208b1c3d7f235748a04f4c31d525263aad01c90e",class:i.content,id:t,"aria-labelledby":e,role:"tabpanel"},a("slot",{key:"9b68d8eb8c095fd45b741fe2398d957b589fbd94",name:"content"})))))}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-stepper-item",{color:[1],size:[1],identifier:[1]},undefined,{color:["validateColor"]}]);function b(){if(typeof customElements==="undefined"){return}const e=["gov-stepper-item"];e.forEach((e=>{switch(e){case"gov-stepper-item":if(!customElements.get(e)){customElements.define(e,f)}break}}))}b();const l=f;const p=b;export{l as GovStepperItem,p as defineCustomElement};
1
+ import{p as e,H as t,c as s,h as a,a as c}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{b as i,c as d}from"./p-ClYmjarv.js";import{c as n}from"./p-vN03FcXN.js";import{g as r}from"./p-BHRF-5cf.js";const f=e(class e extends t{constructor(){super();this.__registerHost();this.govChange=s(this,"gov-change");this.hydrated=false;this.color="primary";this.size="m";this.h=r(this.host);this.triggerId=n("GovStepperItem");this.contentId=n("GovStepperContent")}validateColor(e){o(d,e,i.root)}componentWillLoad(){this.validateColor(this.color)}connectedCallback(){this.hydrated=true}render(){const e=this.identifier||this.triggerId;const t=this.contentId;return a(c,{key:"126275cd984137b2c6d6cc5bdd2074adf14cee7b",id:e,class:this.h.classes(i.root),color:this.color,role:"listitem",hydrated:this.hydrated},a("div",{key:"15c1f0a0d533cd5473611b388590a6af94755ab9"},a("div",{key:"85535167b5359d00e773ffac3aa64ae95d9a005a",class:i.steps},a("span",{key:"37558ddd120824a5f234503b8cfb673352f642e1"}),a("span",{key:"647d2862b31d2e6e1c51f90e0cbf8eb76af9f5a8",class:i.prefix},a("slot",{key:"c58b03ec979eafc5db766c0134def19cbe2582d1",name:"prefix"})),a("span",{key:"c294e1f9af11588960c8ccf5d16186eb2e57cc74"})),a("div",{key:"ca82d4d7c0617f0c13de80c5a4247d8f9cd3d2e7",class:i.main},a("span",{key:"6d1cb25eca0517abcb0557579eab240beaff7557",class:i.headline},a("slot",{key:"3ef65e410481935cab120087b9454be9ce16ac1a",name:"headline"})),a("slot",{key:"8b7f8674a3347b2b51987ec7054835a8db203df8",name:"annotation"}),this.h.hasSlot("content")&&a("div",{key:"208b1c3d7f235748a04f4c31d525263aad01c90e",class:i.content,id:t,"aria-labelledby":e,role:"tabpanel"},a("slot",{key:"9b68d8eb8c095fd45b741fe2398d957b589fbd94",name:"content"})))))}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-stepper-item",{color:[1],size:[1],identifier:[1]},undefined,{color:["validateColor"]}]);function b(){if(typeof customElements==="undefined"){return}const e=["gov-stepper-item"];e.forEach((e=>{switch(e){case"gov-stepper-item":if(!customElements.get(e)){customElements.define(e,f)}break}}))}b();const l=f;const p=b;export{l as GovStepperItem,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-stepper-item.js.map
@@ -1,2 +1,2 @@
1
- import{p as s,H as t,c as e,h as i,a}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{S as r,a as n,b as c}from"./p-ClYmjarv.js";import{g as h}from"./p-DKo9A5gq.js";const d=s(class s extends t{constructor(){super();this.__registerHost();this.govChange=e(this,"gov-change");this.hydrated=false;this.size="m";this.h=h(this.host)}validateSize(s){o(n,s,r.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(c.root).forEach((s=>{s.setAttribute("size",this.size);s.addEventListener("gov-change",(s=>{s.stopPropagation();this.govChange.emit(s.detail)}))}))}connectedCallback(){this.hydrated=true}render(){return i(a,{key:"339a1f4eaaa246d8329841d99e784b8c157bb5d3",class:this.h.classes(r.root),role:"list",size:this.size,hydrated:this.hydrated},i("slot",{key:"9e1604e94a11bbc3b2f8230193b43f9466601866"}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-stepper",{size:[1]},undefined,{size:["validateSize"]}]);function p(){if(typeof customElements==="undefined"){return}const s=["gov-stepper"];s.forEach((s=>{switch(s){case"gov-stepper":if(!customElements.get(s)){customElements.define(s,d)}break}}))}p();const m=d;const l=p;export{m as GovStepper,l as defineCustomElement};
1
+ import{p as s,H as t,c as e,h as i,a}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{S as r,a as n,b as c}from"./p-ClYmjarv.js";import{g as h}from"./p-BHRF-5cf.js";const d=s(class s extends t{constructor(){super();this.__registerHost();this.govChange=e(this,"gov-change");this.hydrated=false;this.size="m";this.h=h(this.host)}validateSize(s){o(n,s,r.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(c.root).forEach((s=>{s.setAttribute("size",this.size);s.addEventListener("gov-change",(s=>{s.stopPropagation();this.govChange.emit(s.detail)}))}))}connectedCallback(){this.hydrated=true}render(){return i(a,{key:"339a1f4eaaa246d8329841d99e784b8c157bb5d3",class:this.h.classes(r.root),role:"list",size:this.size,hydrated:this.hydrated},i("slot",{key:"9e1604e94a11bbc3b2f8230193b43f9466601866"}))}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-stepper",{size:[1]},undefined,{size:["validateSize"]}]);function p(){if(typeof customElements==="undefined"){return}const s=["gov-stepper"];s.forEach((s=>{switch(s){case"gov-stepper":if(!customElements.get(s)){customElements.define(s,d)}break}}))}p();const m=d;const l=p;export{m as GovStepper,l as defineCustomElement};
2
2
  //# sourceMappingURL=gov-stepper.js.map
@@ -1,2 +1,2 @@
1
- import{p as e,H as t,h as s,a as i}from"./index.js";import{c as r}from"./p-vN03FcXN.js";import{g as a,c as n}from"./p-DKo9A5gq.js";import{T as d,d as c}from"./p-BTwdrNoS.js";const o=e(class e extends t{constructor(){super();this.__registerHost();this.disabled=false;this.default=false;this.isActive=false;this.h=a(this.host);this.contentId=r("GovTabContent");this.triggerId=r("GovTabTrigger")}rerenderParent(){const e=this.h.getParent(d.root);if(e){e.rerender().catch()}}render(){return s(i,{key:"49f4fbd9c9211ebd58c89d538df85164473c4f76",class:this.h.classes(c.root),default:this.default},s("div",{key:"cbb71bd33c068923a8d23b62c43b1c757d4d0c78",class:c.inner,role:"tabpanel",id:this.identifier||this.contentId,hidden:!this.isActive,"aria-labelledby":this.triggerIdentifier||this.triggerId,"aria-hidden":n(!this.isActive)},s("slot",{key:"fdf732f55e7ce4cb1d96ec8c7124124d9ca3e198"})))}async getIdentifier(){return this.identifier||this.contentId}async getTriggerIdentifier(){return this.triggerIdentifier||this.triggerId}async getDisableState(){return this.disabled}async setActiveStatus(e){this.isActive=e}get host(){return this}static get watchers(){return{label:["rerenderParent"],disabled:["rerenderParent"]}}},[4,"gov-tabs-item",{identifier:[1],triggerIdentifier:[1,"trigger-identifier"],label:[513],disabled:[516],iconStart:[513,"icon-start"],iconEnd:[513,"icon-end"],default:[4],isActive:[32],getIdentifier:[64],getTriggerIdentifier:[64],getDisableState:[64],setActiveStatus:[64]},undefined,{label:["rerenderParent"],disabled:["rerenderParent"]}]);function f(){if(typeof customElements==="undefined"){return}const e=["gov-tabs-item"];e.forEach((e=>{switch(e){case"gov-tabs-item":if(!customElements.get(e)){customElements.define(e,o)}break}}))}f();const h=o;const l=f;export{h as GovTabsItem,l as defineCustomElement};
1
+ import{p as e,H as t,h as s,a as i}from"./index.js";import{c as r}from"./p-vN03FcXN.js";import{g as a,b as n}from"./p-BHRF-5cf.js";import{T as d,d as c}from"./p-BTwdrNoS.js";const o=e(class e extends t{constructor(){super();this.__registerHost();this.disabled=false;this.default=false;this.isActive=false;this.h=a(this.host);this.contentId=r("GovTabContent");this.triggerId=r("GovTabTrigger")}rerenderParent(){const e=this.h.getParent(d.root);if(e){e.rerender().catch()}}render(){return s(i,{key:"49f4fbd9c9211ebd58c89d538df85164473c4f76",class:this.h.classes(c.root),default:this.default},s("div",{key:"cbb71bd33c068923a8d23b62c43b1c757d4d0c78",class:c.inner,role:"tabpanel",id:this.identifier||this.contentId,hidden:!this.isActive,"aria-labelledby":this.triggerIdentifier||this.triggerId,"aria-hidden":n(!this.isActive)},s("slot",{key:"fdf732f55e7ce4cb1d96ec8c7124124d9ca3e198"})))}async getIdentifier(){return this.identifier||this.contentId}async getTriggerIdentifier(){return this.triggerIdentifier||this.triggerId}async getDisableState(){return this.disabled}async setActiveStatus(e){this.isActive=e}get host(){return this}static get watchers(){return{label:["rerenderParent"],disabled:["rerenderParent"]}}},[4,"gov-tabs-item",{identifier:[1],triggerIdentifier:[1,"trigger-identifier"],label:[513],disabled:[516],iconStart:[513,"icon-start"],iconEnd:[513,"icon-end"],default:[4],isActive:[32],getIdentifier:[64],getTriggerIdentifier:[64],getDisableState:[64],setActiveStatus:[64]},undefined,{label:["rerenderParent"],disabled:["rerenderParent"]}]);function f(){if(typeof customElements==="undefined"){return}const e=["gov-tabs-item"];e.forEach((e=>{switch(e){case"gov-tabs-item":if(!customElements.get(e)){customElements.define(e,o)}break}}))}f();const h=o;const l=f;export{h as GovTabsItem,l as defineCustomElement};
2
2
  //# sourceMappingURL=gov-tabs-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{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-DKo9A5gq.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 g}from"./p-CXgom82_.js";import{d as y}from"./p-BZTY3MxF.js";import{d as j}from"./p-BrdXh0mI.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=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:"5dfd9d6ca4a17c425a96a1f766d599de80db6028",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:"a195131ab673e7b9906777757f5c7e8c8421ddad",class:r.tabs,role:"tablist"},this.inheritedAttributes),e("ul",{key:"3dd46399f5054881f71242b2f184ebfb11fac51e",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:"5fc402a27b6236ca10c8f3370f946b7ceadb5342"}))}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"]}}},[4,"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)){y()}break;case"gov-icon":if(!customElements.get(t)){j()}break}}))}x();const k=T;const z=x;export{k as GovTabs,z 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,c as p}from"./p-BHRF-5cf.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 g}from"./p-CXgom82_.js";import{d as y}from"./p-ibUK7mfI.js";import{d as j}from"./p-CXPP9vec.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=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:"5dfd9d6ca4a17c425a96a1f766d599de80db6028",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:"a195131ab673e7b9906777757f5c7e8c8421ddad",class:r.tabs,role:"tablist"},this.inheritedAttributes),e("ul",{key:"3dd46399f5054881f71242b2f184ebfb11fac51e",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:"5fc402a27b6236ca10c8f3370f946b7ceadb5342"}))}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"]}}},[4,"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 t,H as e,h as o,a as s}from"./index.js";import{g as a}from"./p-DKo9A5gq.js";import{v as i}from"./p-BKP-F1qP.js";import{a as c,c as n}from"./p-CNqoJU2V.js";import{p as r}from"./p-CQvUntGY.js";import{S as d}from"./p-BcQO4NH2.js";import{p as f}from"./p-GYov8gU1.js";import{d as m}from"./p-BrdXh0mI.js";const l=r(d,["_XS","_S","_M"]);var p;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(p||(p={}));const h={root:"gov-tag"};const b=t(class t extends e{constructor(){super();this.__registerHost();this.size=l._S;this.color=c.PRIMARY;this.expanded=false;this.h=a(this.host)}validateColor(t){i(c,t,h.root)}validateSize(t){i(n,t,h.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size)}render(){const t=f(this.iconStart);const e=f(this.iconEnd);return o(s,{key:"9ed31c6f9d34001618223db4d842ee55611f8896",class:this.h.classes(h.root),color:this.color,size:this.size,type:this.type},o("span",{key:"617d6cf19dc34385815916b6656f48c14428bff6",class:"element"},o("slot",{key:"d95d40e8a9de633865f174821050ab57174b435f",name:"icon-start"},t&&o("gov-icon",{key:"95a813406d45b8a69f4d4804f4063a7fa88d1038",type:t.type,name:t.name})),o("slot",{key:"4e4ad28e073bc933e3a193283e46d50f413bcf62"}),o("slot",{key:"0642ab987098007d4335d8aed281f4cd431bfe10",name:"icon-end"},e&&o("gov-icon",{key:"00ea783ae37eb0a4461cb97e15cdc9efc332bb27",type:e.type,name:e.name}))))}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}},[4,"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 t=["gov-tag","gov-icon"];t.forEach((t=>{switch(t){case"gov-tag":if(!customElements.get(t)){customElements.define(t,b)}break;case"gov-icon":if(!customElements.get(t)){m()}break}}))}v();const g=b;const u=v;export{g as GovTag,u as defineCustomElement};
1
+ import{p as t,H as e,h as o,a as s}from"./index.js";import{g as a}from"./p-BHRF-5cf.js";import{v as i}from"./p-BKP-F1qP.js";import{a as c,c as n}from"./p-CNqoJU2V.js";import{p as r}from"./p-CQvUntGY.js";import{S as d}from"./p-BcQO4NH2.js";import{p as f}from"./p-GYov8gU1.js";import{d as m}from"./p-CXPP9vec.js";const l=r(d,["_XS","_S","_M"]);var p;(function(t){t["BOLD"]="bold";t["SUBTLE"]="subtle"})(p||(p={}));const h={root:"gov-tag"};const v=t(class t extends e{constructor(){super();this.__registerHost();this.size=l._S;this.color=c.PRIMARY;this.expanded=false;this.h=a(this.host)}validateColor(t){i(c,t,h.root)}validateSize(t){i(n,t,h.root)}componentWillLoad(){this.validateColor(this.color);this.validateSize(this.size)}render(){const t=f(this.iconStart);const e=f(this.iconEnd);return o(s,{key:"9ed31c6f9d34001618223db4d842ee55611f8896",class:this.h.classes(h.root),color:this.color,size:this.size,type:this.type},o("span",{key:"617d6cf19dc34385815916b6656f48c14428bff6",class:"element"},o("slot",{key:"d95d40e8a9de633865f174821050ab57174b435f",name:"icon-start"},t&&o("gov-icon",{key:"95a813406d45b8a69f4d4804f4063a7fa88d1038",type:t.type,name:t.name})),o("slot",{key:"4e4ad28e073bc933e3a193283e46d50f413bcf62"}),o("slot",{key:"0642ab987098007d4335d8aed281f4cd431bfe10",name:"icon-end"},e&&o("gov-icon",{key:"00ea783ae37eb0a4461cb97e15cdc9efc332bb27",type:e.type,name:e.name}))))}get host(){return this}static get watchers(){return{color:["validateColor"],size:["validateSize"]}}},[4,"gov-tag",{iconStart:[1,"icon-start"],iconEnd:[1,"icon-end"],size:[513],color:[513],type:[513],expanded:[516]},undefined,{color:["validateColor"],size:["validateSize"]}]);function b(){if(typeof customElements==="undefined"){return}const t=["gov-tag","gov-icon"];t.forEach((t=>{switch(t){case"gov-tag":if(!customElements.get(t)){customElements.define(t,v)}break;case"gov-icon":if(!customElements.get(t)){m()}break}}))}b();const g=v;const u=b;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-DKo9A5gq.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 d}from"./p-BrdXh0mI.js";const f=h(c,["_XS","_S","_M","_L","_XL"]);const p={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 b="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:p.root,state:this.theme,ref:this.host})};this.h=o(this.host)}validateSize(t){r(f,t,p.root)}watchTheme(t){this.htmlElement.setAttribute(b,t);this.htmlElement.classList.remove(...Object.keys(g));this.htmlElement.classList.add(t);m(b,t)}get storageValue(){return d(b)}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(b);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:"3015dd1049b1c9a2b5902d1d56c8b3872a275c10",class:this.h.classes(p.root),theme:t?g.dark:g.light,size:this.size},i("button",{key:"ca4b331189fca45f66c4eef138db66482add2834",onClick:()=>this.setThemeState(t?g.light:g.dark),"aria-current":this.theme,"aria-label":t?this.ariaLabelDark:this.ariaLabelLight},i("span",{key:"ed2a779f1e9fe1a0e722439598c9a413e9b39071"},i("span",{key:"f58e164a6b1b389ecfe93f7d2673ea5749a8fd96",class:p.indicator},g.light&&i("gov-icon",{key:"24663f2d33ea2bead59df37fef9932e549070ce4",name:"sun",class:p.iconLight,type:"components"}),g.dark&&i("gov-icon",{key:"a4482c64c35b9c70122a687aca4bb90bfa1000f3",name:"moon",class:p.iconDark,type:"components"})),this.displayLabel?i("span",{class:p.label},t?this.labelDark:this.labelLight):null)))}get host(){return this}static get watchers(){return{size:["validateSize"],theme:["watchTheme"]}}},[0,"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-BHRF-5cf.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 d}from"./p-CXPP9vec.js";const f=h(c,["_XS","_S","_M","_L","_XL"]);const p={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 b="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:p.root,state:this.theme,ref:this.host})};this.h=o(this.host)}validateSize(t){r(f,t,p.root)}watchTheme(t){this.htmlElement.setAttribute(b,t);this.htmlElement.classList.remove(...Object.keys(g));this.htmlElement.classList.add(t);m(b,t)}get storageValue(){return d(b)}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(b);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:"3015dd1049b1c9a2b5902d1d56c8b3872a275c10",class:this.h.classes(p.root),theme:t?g.dark:g.light,size:this.size},i("button",{key:"ca4b331189fca45f66c4eef138db66482add2834",onClick:()=>this.setThemeState(t?g.light:g.dark),"aria-current":this.theme,"aria-label":t?this.ariaLabelDark:this.ariaLabelLight},i("span",{key:"ed2a779f1e9fe1a0e722439598c9a413e9b39071"},i("span",{key:"f58e164a6b1b389ecfe93f7d2673ea5749a8fd96",class:p.indicator},g.light&&i("gov-icon",{key:"24663f2d33ea2bead59df37fef9932e549070ce4",name:"sun",class:p.iconLight,type:"components"}),g.dark&&i("gov-icon",{key:"a4482c64c35b9c70122a687aca4bb90bfa1000f3",name:"moon",class:p.iconDark,type:"components"})),this.displayLabel?i("span",{class:p.label},t?this.labelDark:this.labelLight):null)))}get host(){return this}static get watchers(){return{size:["validateSize"],theme:["watchTheme"]}}},[0,"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 n}from"./p-CQvUntGY.js";import{S as a}from"./p-BcQO4NH2.js";import{g as c}from"./p-DKo9A5gq.js";import{d as r}from"./p-BrdXh0mI.js";n(a,["_S","_M","_L"]);const f={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 l=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:"675f324a6b643d22ae4b737f2049f0f1a51e4972",class:this.h.classes(f.root),size:this.size,orientation:this.orientation,clickable:this.href?true:null},s("slot",{key:"4dc974090359d27cd89e7b7af38f56fd016608d5",name:"icon"}),s("div",{key:"9d3c42f854fe4178886d6218cc99de44c6a27335",class:f.content},s("div",{key:"97891e205f08b2b4c81110bcb7bb3c4ed48362ed",class:f.text},s("div",{key:"6446384bd51f13aff4b9ff0144a4240fe1465b8d",class:f.title},this.href?s(o,null,s("a",{href:this.href,target:this.target,class:f.link,ref:e=>this.triggerRef=e},s("slot",{name:"title"})),s("span",{class:f.icon},s("gov-icon",{name:"chevron-right",type:"components"}))):s("slot",{name:"title"})),s("div",{key:"e25fe83f7f147582005341bb951ac2221bebbfbf",class:`${f.annotation} ${this.href?`${f.annotation}--padding`:""}`},s("slot",{key:"5c87e54b826d3e4fbb8231c19e66db7961e63a60"}))),s("slot",{key:"ab53f48d63dbc279788e4f83d77beb7eaabc1425",name:"button"})))}async getTriggerRef(){return this.triggerRef}get host(){return this}},[4,"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,l)}break;case"gov-icon":if(!customElements.get(e)){r()}break}}))}d();const b=l;const g=d;export{b 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 n}from"./p-CQvUntGY.js";import{S as c}from"./p-BcQO4NH2.js";import{g as a}from"./p-BHRF-5cf.js";import{d as r}from"./p-CXPP9vec.js";n(c,["_S","_M","_L"]);const f={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 l=e(class e extends t{constructor(){super();this.__registerHost();this.size="m";this.noBorder=false;this.h=a(this.host)}render(){return s(i,{key:"675f324a6b643d22ae4b737f2049f0f1a51e4972",class:this.h.classes(f.root),size:this.size,orientation:this.orientation,clickable:this.href?true:null},s("slot",{key:"4dc974090359d27cd89e7b7af38f56fd016608d5",name:"icon"}),s("div",{key:"9d3c42f854fe4178886d6218cc99de44c6a27335",class:f.content},s("div",{key:"97891e205f08b2b4c81110bcb7bb3c4ed48362ed",class:f.text},s("div",{key:"6446384bd51f13aff4b9ff0144a4240fe1465b8d",class:f.title},this.href?s(o,null,s("a",{href:this.href,target:this.target,class:f.link,ref:e=>this.triggerRef=e},s("slot",{name:"title"})),s("span",{class:f.icon},s("gov-icon",{name:"chevron-right",type:"components"}))):s("slot",{name:"title"})),s("div",{key:"e25fe83f7f147582005341bb951ac2221bebbfbf",class:`${f.annotation} ${this.href?`${f.annotation}--padding`:""}`},s("slot",{key:"5c87e54b826d3e4fbb8231c19e66db7961e63a60"}))),s("slot",{key:"ab53f48d63dbc279788e4f83d77beb7eaabc1425",name:"button"})))}async getTriggerRef(){return this.triggerRef}get host(){return this}},[4,"gov-tile",{size:[513],orientation:[1],noBorder:[4,"no-border"],href:[513],target:[1],getTriggerRef:[64]}]);function b(){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,l)}break;case"gov-icon":if(!customElements.get(e)){r()}break}}))}b();const d=l;const g=b;export{d as GovTile,g 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 i,a as e}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-DKo9A5gq.js";import{c as h}from"./p-vN03FcXN.js";import{A as d,a as l,i as b}from"./p-CXgom82_.js";import{d as m}from"./p-djqfSbq-.js";import{d as f}from"./p-BrdXh0mI.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 d(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(l)}componentWillLoad(){this.validateColor(this.color);this.runTimer();this.inheritedAttributes=b(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 i(e,{key:"987e5c487dd42f713414dcb0db4c5324db61bc46",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")&&i("span",{key:"1ebdf5e3b7a44dfa2c5489a3d23f5b7aff2368b4",class:v.icon},i("slot",{key:"be28a32d3ff38e6c9adcaee780cfab4b814c4291",name:"icon"})),i("div",Object.assign({key:"c8a8040d1b724d0e59d10a7dfde32870912c5bed",class:v.content},this.inheritedAttributes,{"aria-live":"polite",role:"status"}),i("slot",{key:"021b0fede68c4f897c28b1f6ef7b088d71740ec3"})),i("gov-button",{key:"1792f238afbba0ad073cd5513044b15d43cbe07b",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:i("gov-icon",{name:"x-lg",type:"components"})),i("div",{key:"b467970959f395a2c14182d98a06b17e471611b4",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"]}}},[4,"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)){f()}break}}))}y();const j=g;const k=y;export{j as GovToast,k as defineCustomElement};
1
+ import{p as t,H as s,c as o,h as i,a as e}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-BHRF-5cf.js";import{c as h}from"./p-vN03FcXN.js";import{A as l,a as d,i as b}from"./p-CXgom82_.js";import{d as m}from"./p-C_URF9Su.js";import{d as f}from"./p-CXPP9vec.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=b(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 i(e,{key:"987e5c487dd42f713414dcb0db4c5324db61bc46",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")&&i("span",{key:"1ebdf5e3b7a44dfa2c5489a3d23f5b7aff2368b4",class:v.icon},i("slot",{key:"be28a32d3ff38e6c9adcaee780cfab4b814c4291",name:"icon"})),i("div",Object.assign({key:"c8a8040d1b724d0e59d10a7dfde32870912c5bed",class:v.content},this.inheritedAttributes,{"aria-live":"polite",role:"status"}),i("slot",{key:"021b0fede68c4f897c28b1f6ef7b088d71740ec3"})),i("gov-button",{key:"1792f238afbba0ad073cd5513044b15d43cbe07b",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:i("gov-icon",{name:"x-lg",type:"components"})),i("div",{key:"b467970959f395a2c14182d98a06b17e471611b4",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"]}}},[4,"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)){f()}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{G as o,d as s}from"./p-UDT3DloZ.js";const t=o;const p=s;export{t as GovTooltipContent,p as defineCustomElement};
1
+ import{G as o,d as s}from"./p-pJ_vPAO0.js";const p=o;const t=s;export{p as GovTooltipContent,t as defineCustomElement};
2
2
  //# sourceMappingURL=gov-tooltip-content.js.map
@@ -1,2 +1,2 @@
1
- import{G as o,d as s}from"./p-DMVQRz4f.js";const t=o;const p=s;export{t as GovTooltip,p as defineCustomElement};
1
+ import{G as o,d as s}from"./p-keC6luw7.js";const t=o;const p=s;export{t as GovTooltip,p as defineCustomElement};
2
2
  //# sourceMappingURL=gov-tooltip.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 h}from"./p-vN03FcXN.js";import{g as l,b as r,c as d}from"./p-DKo9A5gq.js";import{d as m}from"./p-BrdXh0mI.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=l(this.host);this.triggerId=h("GovWizardItem");this.contentId=h("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:"10144e93de98bf60873fa6c244c4129b040b8bae",class:n.prefix},e("slot",{key:"a946028d94e0c159cf4c91fa1773467c8203a5f2",name:"prefix"}));return e(a,{key:"f33ced4d5d8f57bec50cc8ebce6f12cf2145833d",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:"872e3e164b4cca4955c2ba4cf0a2d88563f50fc5",class:n.header},i,this.collapsible?e(t,{id:s,class:this.h.classes(n.label),"aria-expanded":r(this.isExpanded),"aria-controls":this.contentId,disabled:this.disabled,"aria-disabled":d(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":r(!this.isExpanded),hidden:!this.isExpanded,"aria-labelledby":s},e("slot",null)):e("div",{class:n.content,"aria-hidden":r(!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"]}}},[4,"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 u(){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}}))}u();const v=f;const b=u;export{v as GovWizardItem,b 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 d}from"./p-vN03FcXN.js";import{g as l,c as h,b as r}from"./p-BHRF-5cf.js";import{d as m}from"./p-CXPP9vec.js";var f;(function(s){s["DIV"]="div";s["BUTTON"]="button"})(f||(f={}));const p=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=l(this.host);this.triggerId=d("GovWizardItem");this.contentId=d("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?f.BUTTON:f.DIV;const i=this.h.hasSlot("prefix")&&e("span",{key:"3f00516020337fc142713c6edb468d0007eba3c5",class:n.prefix},e("slot",{key:"05aa42bc8241f53bb3664dc3d06798cb0344f92f",name:"prefix"}));return e(a,{key:"863700f5087e86d1f8d4e22b40108dfbc0cb96f5",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:"6d93a5bb12dbe2fc2e308059ffd5d63ed915f16d",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"]}}},[4,"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,p)}break;case"gov-icon":if(!customElements.get(s)){m()}break}}))}b();const v=p;const u=b;export{v as GovWizardItem,u as defineCustomElement};
2
2
  //# sourceMappingURL=gov-wizard-item.js.map
@@ -1,2 +1,2 @@
1
- import{p as s,H as t,c as e,h as a,a as i}from"./index.js";import{v as o}from"./p-BKP-F1qP.js";import{W as c,a as r,b as d}from"./p-CZr7GBEo.js";import{g as n}from"./p-DKo9A5gq.js";import{a as l}from"./p-Nvj7WFs_.js";import{c as h}from"./p-DrPpH_9c.js";import{d as m}from"./p-CQvUntGY.js";const p=s(class s extends t{constructor(){super();this.__registerHost();this.govChange=e(this,"gov-change");this.hydrated=false;this.size="m";this.h=n(this.host)}validateSize(s){o(r,s,c.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(d.root).forEach((s=>{s.setAttribute("size",this.size)}))}async componentDidRender(){if(h()){await m(500);await this.validateWcag()}}connectedCallback(){this.hydrated=true}render(){return a(i,{key:"5d1d08b27c5a8b266d209841d4cfda654081124c",class:this.h.classes(c.root),role:"list",size:this.size,hydrated:this.hydrated},a("slot",{key:"c17071c8a7bed0dee95deec69c0ce1c668160209"}))}async validateWcag(){l(this.wcagLabel,this.wcagLabelledBy,c.root)}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-wizard",{size:[1],wcagLabel:[1,"wcag-label"],wcagLabelledBy:[1,"wcag-labelled-by"],validateWcag:[64]},undefined,{size:["validateSize"]}]);function f(){if(typeof customElements==="undefined"){return}const s=["gov-wizard"];s.forEach((s=>{switch(s){case"gov-wizard":if(!customElements.get(s)){customElements.define(s,p)}break}}))}f();const g=p;const u=f;export{g as GovWizard,u as defineCustomElement};
1
+ import{p as s,H as t,c as e,h as a,a as i}from"./index.js";import{v as c}from"./p-BKP-F1qP.js";import{W as o,a as r,b as n}from"./p-CZr7GBEo.js";import{g as d}from"./p-BHRF-5cf.js";import{a as l}from"./p-Nvj7WFs_.js";import{c as h}from"./p-DrPpH_9c.js";import{d as m}from"./p-CQvUntGY.js";const p=s(class s extends t{constructor(){super();this.__registerHost();this.govChange=e(this,"gov-change");this.hydrated=false;this.size="m";this.h=d(this.host)}validateSize(s){c(r,s,o.root)}componentWillLoad(){this.validateSize(this.size)}componentDidLoad(){this.host.querySelectorAll(n.root).forEach((s=>{s.setAttribute("size",this.size)}))}async componentDidRender(){if(h()){await m(500);await this.validateWcag()}}connectedCallback(){this.hydrated=true}render(){return a(i,{key:"d1957fc0c0058c107769e3cc5390ef986fc9b921",class:this.h.classes(o.root),role:"list",size:this.size,hydrated:this.hydrated},a("slot",{key:"a34323c408d790c5945ca0d80db62de2433db438"}))}async validateWcag(){l(this.wcagLabel,this.wcagLabelledBy,o.root)}get host(){return this}static get watchers(){return{size:["validateSize"]}}},[4,"gov-wizard",{size:[1],wcagLabel:[1,"wcag-label"],wcagLabelledBy:[1,"wcag-labelled-by"],validateWcag:[64]},undefined,{size:["validateSize"]}]);function f(){if(typeof customElements==="undefined"){return}const s=["gov-wizard"];s.forEach((s=>{switch(s){case"gov-wizard":if(!customElements.get(s)){customElements.define(s,p)}break}}))}f();const g=p;const u=f;export{g as GovWizard,u as defineCustomElement};
2
2
  //# sourceMappingURL=gov-wizard.js.map
@@ -1,2 +1,2 @@
1
- const e=e=>{if(Array.isArray(e)===false)return;return e.filter((e=>!!e)).join(" ").trim()};const t=e=>e?"true":"false";const r=e=>({get hostElement(){return e},get name(){return this.hostElement.nodeName.toLowerCase()},hasSlot(e){return!!this.getSlot(e)},isSlotEmpty(e){const t=this.getSlot(e);if(t){return t.childNodes.length===0}return false},getSlot(e){const t=Array.from(this.hostElement.querySelectorAll(`[slot="${e}"]`));return t.length>0?t[0]:null},getSlotContent(e){const t=this.getSlot(e);return t?t.textContent:null},getParent(e){return this.hostElement.closest(e)},passChildAttr(e,t,r){if(Array.isArray(e)){e.forEach((e=>{this.hostElement.querySelectorAll(e).forEach((e=>e.setAttribute(t,r)))}))}else{this.hostElement.querySelectorAll(e).forEach((e=>e.setAttribute(t,r)))}},removeChildAttr(e,t){if(Array.isArray(e)){e.forEach((e=>{this.hostElement.querySelectorAll(e).forEach((e=>e.removeAttribute(t)))}))}else{this.hostElement.querySelectorAll(e).forEach((e=>e.removeAttribute(t)))}},classes(e){const t=Array.isArray(e)?e.join(" "):e;if(this.hostElement){return this.hostElement.classList.toString()+" "+t}return t}});const n=e=>{if(typeof e==="string"){return["true","True","TRUE","1"].indexOf(e)!==-1?"true":"false"}else if(typeof e==="number"){return e>0?"true":"false"}else if(typeof e==="boolean"){return e?"true":"false"}else{return e?"true":"false"}};const s=e=>{if(typeof e==="string"){return["true","True","TRUE","1","On","on","ON"].indexOf(e)!==-1?"on":"off"}else if(typeof e==="number"){return e>0?"on":"off"}else if(typeof e==="boolean"){return e?"on":"off"}else{return e?"on":"off"}};const o=e=>typeof e==="undefined"?undefined:n(e);const f=e=>typeof e==="undefined"?undefined:s(e);const u=e=>e?"0":"-1";export{f as a,t as b,o as c,u as d,r as g,e as p,n as t};
2
- //# sourceMappingURL=p-DKo9A5gq.js.map
1
+ const e=e=>{if(Array.isArray(e)===false)return;return e.filter((e=>!!e)).join(" ").trim()};const t=e=>e?"true":"false";const r=e=>({get hostElement(){return e},get name(){return this.hostElement.nodeName.toLowerCase()},hasSlot(e){return!!this.getSlot(e)},isSlotEmpty(e){const t=this.getSlot(e);if(t){return t.childNodes.length===0}return false},getSlot(e){const t=Array.from(this.hostElement.querySelectorAll(`[slot="${e}"]`));return t.length>0?t[0]:null},getSlotContent(e){const t=this.getSlot(e);return t?t.textContent:null},getParent(e){return this.hostElement.closest(e)},passChildAttr(e,t,r){if(Array.isArray(e)){e.forEach((e=>{this.hostElement.querySelectorAll(e).forEach((e=>e.setAttribute(t,r)))}))}else{this.hostElement.querySelectorAll(e).forEach((e=>e.setAttribute(t,r)))}},removeChildAttr(e,t){if(Array.isArray(e)){e.forEach((e=>{this.hostElement.querySelectorAll(e).forEach((e=>e.removeAttribute(t)))}))}else{this.hostElement.querySelectorAll(e).forEach((e=>e.removeAttribute(t)))}},classes(e){const t=Array.isArray(e)?e.join(" "):e;if(this.hostElement){return this.hostElement.classList.toString()+" "+t}return t}});const n=e=>{if(typeof e==="string"){return["true","True","TRUE","1"].indexOf(e)!==-1?"true":"false"}else if(typeof e==="number"){return e>0?"true":"false"}else if(typeof e==="boolean"){return e?"true":"false"}else{return e?"true":"false"}};const s=e=>{if(typeof e==="string"){return["true","True","TRUE","1","On","on","ON"].indexOf(e)!==-1?"on":"off"}else if(typeof e==="number"){return e>0?"on":"off"}else if(typeof e==="boolean"){return e?"on":"off"}else{return e?"on":"off"}};const o=e=>typeof e==="undefined"?undefined:n(e);const f=e=>typeof e==="undefined"?undefined:s(e);const u=e=>e?"0":"-1";export{f as a,o as b,t as c,u as d,r as g,e as p,n as t};
2
+ //# sourceMappingURL=p-BHRF-5cf.js.map
@@ -1,2 +1,2 @@
1
- import{S as o}from"./p-BcQO4NH2.js";import{p as t}from"./p-CQvUntGY.js";import{F as r}from"./p-EeKNA85D.js";import{F as e}from"./p-DBXGhafv.js";const s=t(o,["_XS","_S","_M","_L","_XL"]);const i={root:"gov-form-autocomplete",list:"gov-form-autocomplete__list",item:"gov-form-autocomplete__item",empty:"gov-form-autocomplete__item--empty",loading:"gov-form-autocomplete__item--loading"};t(o,["_M","_L","_XL"]);const _={root:"gov-form-control",holder:"gov-form-control__holder",bottom:"gov-form-control__bottom"};const m=t(o,["_XS","_S","_M","_L","_XL"]);var n;(function(o){o["COLOR"]="color";o["DATE"]="date";o["DATETIME_LOCAL"]="datetime-local";o["EMAIL"]="email";o["MONTH"]="month";o["NUMBER"]="number";o["PASSWORD"]="password";o["SEARCH"]="search";o["TEL"]="tel";o["TEXT"]="text";o["TIME"]="time";o["URL"]="url";o["WEEK"]="week"})(n||(n={}));var a;(function(o){o["RESET"]="reset"})(a||(a={}));const c={root:"gov-form-input",icons:"gov-form-input__icons"};const l=t(o,["_XS","_S","_M","_L","_XL"]);const f={root:"gov-form-select"};const g=t(o,["_XS","_S","_M","_L","_XL"]);const h={root:"gov-form-multi-select",wrap:"gov-form-multi-select__wrap",list:"gov-form-multi-select__list",item:"gov-form-multi-select__item"};const u=t(o,["_XS","_S","_M","_L","_XL"]);const v={root:"gov-form-switch",input:"gov-form-switch__input",indicator:"gov-form-switch__indicator",label:"gov-form-switch__label",noLabel:"gov-form-switch__no-label"};const p=t(o,["_XS","_S","_M","_L","_XL"]);const b={root:"gov-form-checkbox",check:"gov-form-checkbox__check",indeterminate:"gov-form-checkbox__indeterminate",label:"gov-form-checkbox__label"};const L=t(o,["_XS","_S","_M","_L","_XL"]);const d={root:"gov-form-radio",input:"gov-form-radio__input",label:"gov-form-radio__label"};const X=o=>({get govHost(){return o},passAttrToControl(o,t){if(this.control){this.control.setAttribute(o,t)}},passAttrToLabel(o,t){if(this.label){this.label.setAttribute(o,t)}},get hasGroupChildren(){if(this.control){return this.control.querySelectorAll("gov-form-group > *, gov-form-radio-group > *, gov-form-checkbox-group > *").length>1}return false},get control(){if(this.govHost.name===_.root){return this.govHost.hostElement}return this.govHost.getParent(_.root)},get label(){const o=this.govHost.hostElement.querySelector(`.${e.root}`);if(o){return o}if(this.control){return this.control.querySelector(`.${e.root}`)}return null},get mainElementsInControl(){const o=[f.root,c.root,v.root,b.root,d.root,h.root,i.root];if(this.control){const t=o.map((o=>`${o}:first-of-type`)).join(", ");return Array.from(this.control.querySelectorAll(t))}return[]},get messageElements(){if(this.control){return Array.from(this.control.querySelectorAll(r.root))}return[]}});export{i as F,s as a,c as b,m as c,f as d,l as e,b as f,X as g,p as h,_ as i,h as j,g as k,d as l,L as m,v as n,u as o};
2
- //# sourceMappingURL=p-9imLQpxb.js.map
1
+ import{S as o}from"./p-BcQO4NH2.js";import{p as t}from"./p-CQvUntGY.js";import{F as r}from"./p-EeKNA85D.js";import{F as e}from"./p-DBXGhafv.js";const s=t(o,["_XS","_S","_M","_L","_XL"]);const i={root:"gov-form-autocomplete",list:"gov-form-autocomplete__list",item:"gov-form-autocomplete__item",empty:"gov-form-autocomplete__item--empty",loading:"gov-form-autocomplete__item--loading"};t(o,["_M","_L","_XL"]);const _={root:"gov-form-control",holder:"gov-form-control__holder",bottom:"gov-form-control__bottom"};const m=t(o,["_XS","_S","_M","_L","_XL"]);var n;(function(o){o["COLOR"]="color";o["DATE"]="date";o["DATETIME_LOCAL"]="datetime-local";o["EMAIL"]="email";o["MONTH"]="month";o["NUMBER"]="number";o["PASSWORD"]="password";o["SEARCH"]="search";o["TEL"]="tel";o["TEXT"]="text";o["TIME"]="time";o["URL"]="url";o["WEEK"]="week"})(n||(n={}));var a;(function(o){o["RESET"]="reset"})(a||(a={}));const c={root:"gov-form-input",icons:"gov-form-input__icons"};const l=t(o,["_XS","_S","_M","_L","_XL"]);const f={root:"gov-form-select"};const g=t(o,["_XS","_S","_M","_L","_XL"]);const h={root:"gov-form-multi-select",wrap:"gov-form-multi-select__wrap",list:"gov-form-multi-select__list",item:"gov-form-multi-select__item"};const u=t(o,["_XS","_S","_M","_L","_XL"]);const v={root:"gov-form-switch",input:"gov-form-switch__input",indicator:"gov-form-switch__indicator",label:"gov-form-switch__label",noLabel:"gov-form-switch__no-label"};const p=t(o,["_XS","_S","_M","_L","_XL"]);const b={root:"gov-form-checkbox",check:"gov-form-checkbox__check",indeterminate:"gov-form-checkbox__indeterminate",label:"gov-form-checkbox__label"};const L=t(o,["_XS","_S","_M","_L","_XL"]);const d={root:"gov-form-radio",input:"gov-form-radio__input",label:"gov-form-radio__label"};const X=o=>({get govHost(){return o},passAttrToControl(o,t){if(this.control){this.control.setAttribute(o,t)}},passAttrToLabel(o,t){if(this.label){this.label.setAttribute(o,t)}},get hasGroupChildren(){if(this.control){return this.control.querySelectorAll("gov-form-group > *, gov-form-radio-group > *, gov-form-checkbox-group > *").length>1}return false},get control(){if(this.govHost.name===_.root){return this.govHost.hostElement}return this.govHost.getParent(_.root)},get label(){const o=this.govHost.hostElement.querySelector(`.${e.root}`);if(o){return o}if(this.control){return this.control.querySelector(`.${e.root}`)}return null},get mainElementsInControl(){const o=[f.root,c.root,v.root,b.root,d.root,h.root,i.root];if(this.control){const t=o.map((o=>`${o}:first-of-type`)).join(", ");return Array.from(this.control.querySelectorAll(t))}return[]},get messageElements(){if(this.control){return Array.from(this.control.querySelectorAll(r.root))}return[]}});export{c as F,m as a,f as b,l as c,b as d,p as e,_ as f,X as g,h,g as i,i as j,s as k,d as l,L as m,v as n,u as o};
2
+ //# sourceMappingURL=p-BSr8e18S.js.map
@@ -1,2 +1,2 @@
1
- import{p as t,H as i,h as s,a as e}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as o}from"./p-BcQO4NH2.js";import{C as n}from"./p-U40vKHrs.js";import{g as r}from"./p-DKo9A5gq.js";import{v as h}from"./p-BKP-F1qP.js";import{A as l,a as c,i as p}from"./p-CXgom82_.js";const m=a(o,["_XS","_S","_M","_L","_XL"]);a(n,["PRIMARY","NEUTRAL"]);var d;(function(t){t["CIRCLE"]="circle";t["LINE"]="line"})(d||(d={}));var u;(function(t){t["PULSE"]="pulse";t["PROGRESS"]="progress";t["FALSE"]="false"})(u||(u={}));const v={root:"gov-skeleton"};const f=t(class t extends i{constructor(){super();this.__registerHost();this.size="m";this.color="neutral";this.shape="line";this.width=null;this.height=null;this.animation="progress";this.items=[];this.inheritedAttributes={};this.h=r(this.host)}validateSize(t){h(m,t,v.root)}validateShape(t){h(d,t,v.root)}validateAnimation(t){h(u,t,v.root)}componentDidLoad(){this.attributeObserver=new l(this.host,((t,i)=>{this.onAriaAttributeChange(t,i)}));this.attributeObserver.startObserving(c)}componentWillLoad(){this.validateSize(this.size);this.validateShape(this.shape);this.validateAnimation(this.animation);this.init();this.inheritedAttributes=p(this.host)}componentWillUpdate(){this.init()}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,i){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:i})}init(){this.items.fill(1)}render(){return s(e,Object.assign({key:"88cc98a811553c74d60d4b97c283cc918d3f3405",size:this.size,color:this.color,class:{[v.root]:true,circle:this.shape==="circle",line:this.shape==="line",progress:this.animation==="progress",pulse:this.animation==="pulse"}},this.inheritedAttributes,{"aria-busy":"true","aria-valuemin":"0","aria-valuemax":"100",role:"progressbar",tabindex:"0",style:{width:this.width,height:this.height}}))}get host(){return this}static get watchers(){return{size:["validateSize"],shape:["validateShape"],animation:["validateAnimation"]}}},[0,"gov-skeleton",{size:[513],color:[1],shape:[1],width:[513],height:[513],animation:[1],inheritedAttributes:[32]},undefined,{size:["validateSize"],shape:["validateShape"],animation:["validateAnimation"]}]);function g(){if(typeof customElements==="undefined"){return}const t=["gov-skeleton"];t.forEach((t=>{switch(t){case"gov-skeleton":if(!customElements.get(t)){customElements.define(t,f)}break}}))}g();export{f as G,g as d};
2
- //# sourceMappingURL=p-BNnuBQvo.js.map
1
+ import{p as t,H as i,h as s,a as e}from"./index.js";import{p as a}from"./p-CQvUntGY.js";import{S as o}from"./p-BcQO4NH2.js";import{C as n}from"./p-U40vKHrs.js";import{g as r}from"./p-BHRF-5cf.js";import{v as h}from"./p-BKP-F1qP.js";import{A as l,a as c,i as p}from"./p-CXgom82_.js";const m=a(o,["_XS","_S","_M","_L","_XL"]);a(n,["PRIMARY","NEUTRAL"]);var d;(function(t){t["CIRCLE"]="circle";t["LINE"]="line"})(d||(d={}));var u;(function(t){t["PULSE"]="pulse";t["PROGRESS"]="progress";t["FALSE"]="false"})(u||(u={}));const v={root:"gov-skeleton"};const f=t(class t extends i{constructor(){super();this.__registerHost();this.size="m";this.color="neutral";this.shape="line";this.width=null;this.height=null;this.animation="progress";this.items=[];this.inheritedAttributes={};this.h=r(this.host)}validateSize(t){h(m,t,v.root)}validateShape(t){h(d,t,v.root)}validateAnimation(t){h(u,t,v.root)}componentDidLoad(){this.attributeObserver=new l(this.host,((t,i)=>{this.onAriaAttributeChange(t,i)}));this.attributeObserver.startObserving(c)}componentWillLoad(){this.validateSize(this.size);this.validateShape(this.shape);this.validateAnimation(this.animation);this.init();this.inheritedAttributes=p(this.host)}componentWillUpdate(){this.init()}disconnectedCallback(){var t;(t=this.attributeObserver)===null||t===void 0?void 0:t.stopObserving()}onAriaAttributeChange(t,i){this.host.removeAttribute(t);this.inheritedAttributes=Object.assign(Object.assign({},this.inheritedAttributes),{[t]:i})}init(){this.items.fill(1)}render(){return s(e,Object.assign({key:"88cc98a811553c74d60d4b97c283cc918d3f3405",size:this.size,color:this.color,class:{[v.root]:true,circle:this.shape==="circle",line:this.shape==="line",progress:this.animation==="progress",pulse:this.animation==="pulse"}},this.inheritedAttributes,{"aria-busy":"true","aria-valuemin":"0","aria-valuemax":"100",role:"progressbar",tabindex:"0",style:{width:this.width,height:this.height}}))}get host(){return this}static get watchers(){return{size:["validateSize"],shape:["validateShape"],animation:["validateAnimation"]}}},[0,"gov-skeleton",{size:[513],color:[1],shape:[1],width:[513],height:[513],animation:[1],inheritedAttributes:[32]},undefined,{size:["validateSize"],shape:["validateShape"],animation:["validateAnimation"]}]);function g(){if(typeof customElements==="undefined"){return}const t=["gov-skeleton"];t.forEach((t=>{switch(t){case"gov-skeleton":if(!customElements.get(t)){customElements.define(t,f)}break}}))}g();export{f as G,g as d};
2
+ //# sourceMappingURL=p-BxS4InzB.js.map
@@ -1,2 +1,2 @@
1
- import{p as s,H as t,h as a,a as e}from"./index.js";import{A as c}from"./p-CUVZZBqo.js";import{v as o}from"./p-Nvj7WFs_.js";import{c as i}from"./p-DrPpH_9c.js";import{d as r}from"./p-CQvUntGY.js";import{g as n}from"./p-DKo9A5gq.js";const f=s(class s extends t{constructor(){super();this.__registerHost();this.h=n(this.host)}async componentDidRender(){if(i()){await r(500);await this.validateWcag()}}render(){return a(e,{key:"ca3b05be8b09114d7871a82c9ec138c4fa8fc24d",class:this.h.classes(c.root)},this.label?a("p",{class:c.label},this.label):null,a("div",{key:"e47a84d37b86e08171f8002702c4cfe28b09f1fa",class:c.list,role:"list","aria-label":this.wcagLabel},a("slot",{key:"fcf62fd6cfcab1999e381775584755a62ef3415f"})))}async validateWcag(){o(this.wcagLabel,"wcag-label",c.root)}get host(){return this}},[4,"gov-attachments",{label:[1],wcagLabel:[1,"wcag-label"],validateWcag:[64]}]);function l(){if(typeof customElements==="undefined"){return}const s=["gov-attachments"];s.forEach((s=>{switch(s){case"gov-attachments":if(!customElements.get(s)){customElements.define(s,f)}break}}))}l();export{f as G,l as d};
2
- //# sourceMappingURL=p-CfaJM4SA.js.map
1
+ import{p as s,H as t,h as a,a as e}from"./index.js";import{A as c}from"./p-CUVZZBqo.js";import{v as i}from"./p-Nvj7WFs_.js";import{c as o}from"./p-DrPpH_9c.js";import{d as r}from"./p-CQvUntGY.js";import{g as n}from"./p-BHRF-5cf.js";const f=s(class s extends t{constructor(){super();this.__registerHost();this.h=n(this.host)}async componentDidRender(){if(o()){await r(500);await this.validateWcag()}}render(){return a(e,{key:"ca3b05be8b09114d7871a82c9ec138c4fa8fc24d",class:this.h.classes(c.root)},this.label?a("p",{class:c.label},this.label):null,a("div",{key:"e47a84d37b86e08171f8002702c4cfe28b09f1fa",class:c.list,role:"list","aria-label":this.wcagLabel},a("slot",{key:"fcf62fd6cfcab1999e381775584755a62ef3415f"})))}async validateWcag(){i(this.wcagLabel,"wcag-label",c.root)}get host(){return this}},[4,"gov-attachments",{label:[1],wcagLabel:[1,"wcag-label"],validateWcag:[64]}]);function l(){if(typeof customElements==="undefined"){return}const s=["gov-attachments"];s.forEach((s=>{switch(s){case"gov-attachments":if(!customElements.get(s)){customElements.define(s,f)}break}}))}l();export{f as G,l as d};
2
+ //# sourceMappingURL=p-CMmyR4-k.js.map
@@ -1,2 +1,2 @@
1
- import{p as s,H as e,h as t,a as o}from"./index.js";import{F as a,a as i}from"./p-EeKNA85D.js";import{g as r}from"./p-DKo9A5gq.js";import{v as c}from"./p-BKP-F1qP.js";import{c as n}from"./p-vN03FcXN.js";const m=s(class s extends e{constructor(){super();this.__registerHost();this.color="neutral";this.size="m";this.h=r(this.host);this.messageId=n("GovFormMessage")}validateColor(s){c(i,s,a.root)}componentWillLoad(){this.validateColor(this.color)}render(){return t(o,{key:"f48872860c7611775b2f42ce5048dbcdbd706acb",class:this.h.classes(a.root),color:this.color,size:this.size},this.h.hasSlot("icon")&&t("slot",{key:"c1c37489c1cfece39a720394a116775db12aa23c",name:"icon"}),t("span",{key:"0b74cac8580a66b5a60177aef9da4e9f14e68c32",id:this.messageId,class:a.content},t("slot",{key:"b153676b22738e66348b49822ab111bfd8fd56f0"})))}async identifier(){return this.messageId}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-form-message",{color:[1],size:[1],identifier:[64]},undefined,{color:["validateColor"]}]);function f(){if(typeof customElements==="undefined"){return}const s=["gov-form-message"];s.forEach((s=>{switch(s){case"gov-form-message":if(!customElements.get(s)){customElements.define(s,m)}break}}))}f();export{m as G,f as d};
2
- //# sourceMappingURL=p-B0KFtEn3.js.map
1
+ import{p as s,H as e,h as t,a as o}from"./index.js";import{F as a,a as i}from"./p-EeKNA85D.js";import{g as r}from"./p-BHRF-5cf.js";import{v as c}from"./p-BKP-F1qP.js";import{c as n}from"./p-vN03FcXN.js";const m=s(class s extends e{constructor(){super();this.__registerHost();this.color="neutral";this.size="m";this.h=r(this.host);this.messageId=n("GovFormMessage")}validateColor(s){c(i,s,a.root)}componentWillLoad(){this.validateColor(this.color)}render(){return t(o,{key:"f48872860c7611775b2f42ce5048dbcdbd706acb",class:this.h.classes(a.root),color:this.color,size:this.size},this.h.hasSlot("icon")&&t("slot",{key:"c1c37489c1cfece39a720394a116775db12aa23c",name:"icon"}),t("span",{key:"0b74cac8580a66b5a60177aef9da4e9f14e68c32",id:this.messageId,class:a.content},t("slot",{key:"b153676b22738e66348b49822ab111bfd8fd56f0"})))}async identifier(){return this.messageId}get host(){return this}static get watchers(){return{color:["validateColor"]}}},[4,"gov-form-message",{color:[1],size:[1],identifier:[64]},undefined,{color:["validateColor"]}]);function f(){if(typeof customElements==="undefined"){return}const s=["gov-form-message"];s.forEach((s=>{switch(s){case"gov-form-message":if(!customElements.get(s)){customElements.define(s,m)}break}}))}f();export{m as G,f as d};
2
+ //# sourceMappingURL=p-CU0plGZP.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-DKo9A5gq.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.6.3";const v=()=>d;const g={};const w={};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 I({name:t,type:s}){const e=s+"-"+t;if(g[e]){return g[e]}if(!w[e]){w[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 w[e];g[e]=n;return n}const D=(t,s,e)=>{if(!c){return}let n="";document.cookie=`${t}=${encodeURIComponent(s)}${n}; path=/`};const E=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 S=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 I({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"]}}},[0,"gov-icon",{size:[513],color:[513],name:[513],type:[513],visible:[32],error:[32]},undefined,{size:["validateSize"],color:["validateColor"],name:["loadIconPathData"]}]);function $(){if(typeof customElements==="undefined"){return}const t=["gov-icon"];t.forEach((t=>{switch(t){case"gov-icon":if(!customElements.get(t)){customElements.define(t,S)}break}}))}$();export{S as G,$ as d,E as g,D as s};
2
- //# sourceMappingURL=p-BrdXh0mI.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-BHRF-5cf.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.6.4";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 I({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 L=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 R=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 S=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 I({name:t,type:s});const n=R(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"]}}},[0,"gov-icon",{size:[513],color:[513],name:[513],type:[513],visible:[32],error:[32]},undefined,{size:["validateSize"],color:["validateColor"],name:["loadIconPathData"]}]);function $(){if(typeof customElements==="undefined"){return}const t=["gov-icon"];t.forEach((t=>{switch(t){case"gov-icon":if(!customElements.get(t)){customElements.define(t,S)}break}}))}$();export{S as G,$ as d,L as g,E as s};
2
+ //# sourceMappingURL=p-CXPP9vec.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 d,c as l}from"./p-DKo9A5gq.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-BrdXh0mI.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.tab=0;this.focusable=true;this.inheritedAttributes={};this.h=d(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:"be41c5da0a82fa7c16239527bc720510de8ecbd5",size:this.size,hydrated:this.hydrated,color:this.color,class:this.h.classes(n.root),type:this.type},s(t,Object.assign({key:"c46f9288bccd35208999be6e0b3fbdc53097e9eb",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.tab},this.inheritedAttributes,{"aria-disabled":l(this.disabled)}),j(this.loading)&&!this.h.hasSlot("icon-end")&&s("gov-icon",{key:"051f379ac0f6095662027cb21aa97167d641aeb9",name:"loader",class:"gov-spin-animation",type:"components"}),this.h.hasSlot("icon-start")&&s("slot",{key:"f727f494903fa51f278cf7bbd4045dff83bf735d",name:"icon-start"}),s("slot",{key:"dfb09a744c1ef48ef8fd5af7e833b28cf4138d89"}),this.h.hasSlot("icon-end")&&s("slot",{key:"1d81872f18bf2c66af51eb327b45cd102dec9ec9",name:"icon-end"}),j(this.loading)&&this.h.hasSlot("icon-end")&&s("gov-icon",{key:"288d436dbc423b0a02701a0c7764b46f2957d7f4",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"]}}},[4,"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],tab:[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-djqfSbq-.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 d,b as l}from"./p-BHRF-5cf.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-CXPP9vec.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.tab=0;this.focusable=true;this.inheritedAttributes={};this.h=d(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:"be41c5da0a82fa7c16239527bc720510de8ecbd5",size:this.size,hydrated:this.hydrated,color:this.color,class:this.h.classes(n.root),type:this.type},s(t,Object.assign({key:"c46f9288bccd35208999be6e0b3fbdc53097e9eb",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.tab},this.inheritedAttributes,{"aria-disabled":l(this.disabled)}),j(this.loading)&&!this.h.hasSlot("icon-end")&&s("gov-icon",{key:"051f379ac0f6095662027cb21aa97167d641aeb9",name:"loader",class:"gov-spin-animation",type:"components"}),this.h.hasSlot("icon-start")&&s("slot",{key:"f727f494903fa51f278cf7bbd4045dff83bf735d",name:"icon-start"}),s("slot",{key:"dfb09a744c1ef48ef8fd5af7e833b28cf4138d89"}),this.h.hasSlot("icon-end")&&s("slot",{key:"1d81872f18bf2c66af51eb327b45cd102dec9ec9",name:"icon-end"}),j(this.loading)&&this.h.hasSlot("icon-end")&&s("gov-icon",{key:"288d436dbc423b0a02701a0c7764b46f2957d7f4",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"]}}},[4,"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],tab:[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-C_URF9Su.js.map
@@ -1,2 +1,2 @@
1
- import{p as s,H as e,c as a,h as i,a as t}from"./index.js";import{a as c}from"./p-Nvj7WFs_.js";import{c as o}from"./p-DrPpH_9c.js";import{g as r}from"./p-DKo9A5gq.js";import{t as l}from"./p-Cjg0wpDG.js";const d={root:"gov-backdrop",bg:"gov-backdrop__background"};const n=s(class s extends e{constructor(){super();this.__registerHost();this.govClick=a(this,"gov-click");this.inverse=false;this.disabled=false;this.h=r(this.host)}async componentDidRender(){if(o()){l((()=>this.validateAccessibility()))}}render(){return i(t,{key:"364e63a9a8a66920d463a8763773dd2f36ffc814",class:this.h.classes(d.root),inverse:this.inverse},i("div",{key:"81d25e5aa67f0291f8c9d8e806ab17f7cd9a400e",role:"button","aria-disabled":this.disabled,"aria-label":this.accessibleLabel,"aria-labelledby":this.accessibleLabelledBy,onClick:s=>{if(!this.disabled){this.govClick.emit(s)}},class:d.bg}))}async validateAccessibility(){c(this.accessibleLabel,this.accessibleLabelledBy,d.root,this.host)}get host(){return this}},[0,"gov-backdrop",{inverse:[4],disabled:[1540],accessibleLabel:[1,"accessible-label"],accessibleLabelledBy:[1,"accessible-labelledby"],validateAccessibility:[64]}]);function b(){if(typeof customElements==="undefined"){return}const s=["gov-backdrop"];s.forEach((s=>{switch(s){case"gov-backdrop":if(!customElements.get(s)){customElements.define(s,n)}break}}))}b();export{n as G,b as d};
2
- //# sourceMappingURL=p-yqJEurSE.js.map
1
+ import{p as s,H as e,c as a,h as i,a as t}from"./index.js";import{a as c}from"./p-Nvj7WFs_.js";import{c as o}from"./p-DrPpH_9c.js";import{g as r}from"./p-BHRF-5cf.js";import{t as l}from"./p-Cjg0wpDG.js";const d={root:"gov-backdrop",bg:"gov-backdrop__background"};const n=s(class s extends e{constructor(){super();this.__registerHost();this.govClick=a(this,"gov-click");this.inverse=false;this.disabled=false;this.h=r(this.host)}async componentDidRender(){if(o()){l((()=>this.validateAccessibility()))}}render(){return i(t,{key:"364e63a9a8a66920d463a8763773dd2f36ffc814",class:this.h.classes(d.root),inverse:this.inverse},i("div",{key:"81d25e5aa67f0291f8c9d8e806ab17f7cd9a400e",role:"button","aria-disabled":this.disabled,"aria-label":this.accessibleLabel,"aria-labelledby":this.accessibleLabelledBy,onClick:s=>{if(!this.disabled){this.govClick.emit(s)}},class:d.bg}))}async validateAccessibility(){c(this.accessibleLabel,this.accessibleLabelledBy,d.root,this.host)}get host(){return this}},[0,"gov-backdrop",{inverse:[4],disabled:[1540],accessibleLabel:[1,"accessible-label"],accessibleLabelledBy:[1,"accessible-labelledby"],validateAccessibility:[64]}]);function b(){if(typeof customElements==="undefined"){return}const s=["gov-backdrop"];s.forEach((s=>{switch(s){case"gov-backdrop":if(!customElements.get(s)){customElements.define(s,n)}break}}))}b();export{n as G,b as d};
2
+ //# sourceMappingURL=p-CnKqUwf9.js.map
@@ -0,0 +1,2 @@
1
+ import{p as t,H as s,c as i,h as e,a as h}from"./index.js";import{t as o,c as a}from"./p-BHRF-5cf.js";import{v as n}from"./p-BKP-F1qP.js";import{r,c as l}from"./p-vN03FcXN.js";import{d as c,t as m,h as u}from"./p-CQvUntGY.js";import{j as f,k as d}from"./p-BSr8e18S.js";import{p}from"./p-B0hcuYXk.js";import{A as v,a as b,i as g}from"./p-CXgom82_.js";import{d as y}from"./p-C_URF9Su.js";import{d as k}from"./p-DN5pb9xA.js";import{d as w}from"./p-CXPP9vec.js";import{d as j}from"./p-BxS4InzB.js";const x=t=>typeof t==="string"?r(t).toLowerCase():"";const T=(t,s,i,e)=>{const h=Array.isArray(t)?t:[];const o=x(s);const a=o.length===0?h:h.filter((t=>{const s=t===null||t===void 0?void 0:t[i];return typeof s==="string"&&x(s).includes(o)}));return Number.isInteger(e)&&e>0?a.slice(0,e):a};const z=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.fullOptions=[];this.templateResolver=t=>t[this.nameKey];this.value="";this.size="m";this.nameKey="name";this.required=false;this.disabled=false;this.minlength=3;this.maxOptions=10;this.throttleTime=200;this.messageEmpty="Nebyly nalezeny žádné výsledky";this.processing=false;this.arrowCounter=-1;this.list=[];this.inheritedAttributes={};this.emitAndSearch=t=>{this.govInput.emit({originalEvent:t,component:f.root,value:this.value,selected:null});this.doSearch()};this.onInputHandler=t=>{t.stopPropagation();this.value=t.detail.value;this.debouncedSearch(t)};this.listBoxId=l("GovListBox")}validateSize(t){n(d,t,f.root)}watchOptions(t){this.fullOptions=p(t);if(this.searchCallback){this.setOptions(this.fullOptions).catch()}else{this.list=T(this.fullOptions,this.value,this.nameKey,this.maxOptions)}}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 c(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(this.searchCallback){if(Number.isInteger(this.minlength)&&this.isValueAccepted===false&&this.minlength){this.list=[];this.arrowCounter=-1;this.processing=false;return}this.processing=true;this.searchCallback(this.value).then((t=>this.list=t)).catch((()=>this.list=[])).finally((()=>{this.arrowCounter=-1;this.processing=false}));return}this.list=T(this.fullOptions,this.value,this.nameKey,this.maxOptions);this.arrowCounter=-1}clearList(){if(this.fullOptions.length===0){this.list=[]}}get isValueAccepted(){if(typeof this.value==="string"){return this.value.length>=this.minlength}else{return false}}componentDidLoad(){this.attributeObserver=new v(this.host,((t,s)=>{this.onAriaAttributeChange(t,s)}));this.attributeObserver.startObserving(b)}componentWillLoad(){this.validateSize(this.size);this.inheritedAttributes=g(this.host);this.debouncedSearch=m(this.emitAndSearch,this.throttleTime);this.fullOptions=p(this.options);if(!this.searchCallback){this.list=T(this.fullOptions,this.value,this.nameKey,this.maxOptions)}}watchThrottleTime(){this.debouncedSearch=m(this.emitAndSearch,this.throttleTime)}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(h,{key:"0cdbf770359115b24432e9d533b4e17ab2c65e18",class:f.root,size:this.size},e("gov-form-input",Object.assign({key:"5724ed153e3f2384725badbafdb0c19e67b69538",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":this.onInputHandler,"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:"ab6f37982f3d13adc2473a744b5697ac8bc651f5",name:"validation-icon"}),e("slot",{key:"1961a029eceee169b5be12fa4ba8c2e9072bb9de",name:"icon-end"})),e("ul",{key:"61b9b6929be4816e93e1b5fb778c3861b4f8631b",class:f.list,role:"listbox","aria-hidden":o(!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.searchCallback&&this.fullOptions.length>0)&&this.messageEmpty?e("li",{class:f.empty},this.messageEmpty):null,this.focused&&this.processing===true&&this.isValueAccepted?e("li",{class:f.loading},e("gov-skeleton",{size:"m"})):null,this.focused?this.list.map(((t,s)=>{const i=this.arrowCounter===s;return e("li",{class:f.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":o(i)},e("slot",{name:"list-item-left"}),e("slot",{name:"list-item-right"}))})):null))}onFocusHandler(t){this.focused=true;this.arrowCounter=-1;if(this.searchCallback){if(this.isValueAccepted){this.doSearch()}}else{this.doSearch()}t.stopPropagation();this.govFocus.emit({originalEvent:t,component:f.root,value:this.value,selected:null})}onBlurHandler(t){this.focused=false;this.clearList();this.arrowCounter=-1;t.stopPropagation();this.govBlur.emit({originalEvent:t,component:f.root,value:this.value,selected:null})}onSelectHandler(t,s=-1){let i=null;if(s>-1){i=this.list[s]}else if(u(this.arrowCounter,this.list)){i=this.list[this.arrowCounter]}if(i){this.govSelect.emit({component:f.root,value:this.value,selected:i,originalEvent:t});this.clearList();if(u(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"],throttleTime:["watchThrottleTime"]}}},[4,"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],maxOptions:[2,"max-options"],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"],throttleTime:["watchThrottleTime"]}]);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,z)}break;case"gov-button":if(!customElements.get(t)){y()}break;case"gov-form-input":if(!customElements.get(t)){k()}break;case"gov-icon":if(!customElements.get(t)){w()}break;case"gov-skeleton":if(!customElements.get(t)){j()}break}}))}E();export{z as G,E as d};
2
+ //# sourceMappingURL=p-DEthsMuE.js.map