wcs-core 2.5.1 → 2.6.0

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 (221) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +1 -1
  3. package/dist/cjs/component-fc28ed16.js +1074 -0
  4. package/dist/cjs/helpers-d9aaa8c4.js +81 -0
  5. package/dist/cjs/{index-e05c3e1f.js → index-3cb9d725.js} +165 -87
  6. package/dist/cjs/loader.cjs.js +3 -3
  7. package/dist/{esm/wcs-action-bar_47.entry.js → cjs/lodash-776d6f03.js} +12499 -22628
  8. package/dist/cjs/select-arrow-76ccf86d.js +36 -0
  9. package/dist/cjs/wcs-action-bar.cjs.entry.js +24 -0
  10. package/dist/cjs/wcs-app.cjs.entry.js +2 -2
  11. package/dist/cjs/wcs-badge.cjs.entry.js +27 -0
  12. package/dist/cjs/wcs-button.cjs.entry.js +86 -0
  13. package/dist/cjs/wcs-card-body.cjs.entry.js +19 -0
  14. package/dist/cjs/wcs-card.cjs.entry.js +20 -0
  15. package/dist/cjs/wcs-checkbox.cjs.entry.js +43 -0
  16. package/dist/cjs/wcs-com-nav-category.cjs.entry.js +63 -0
  17. package/dist/cjs/wcs-com-nav-submenu.cjs.entry.js +69 -0
  18. package/dist/cjs/wcs-com-nav.cjs.entry.js +19 -0
  19. package/dist/cjs/wcs-divider.cjs.entry.js +19 -0
  20. package/dist/cjs/wcs-dropdown-item.cjs.entry.js +23 -0
  21. package/dist/cjs/wcs-dropdown.cjs.entry.js +57 -0
  22. package/dist/cjs/wcs-editable-field.cjs.entry.js +225 -0
  23. package/dist/cjs/wcs-error_2.cjs.entry.js +137 -0
  24. package/dist/cjs/wcs-field-content.cjs.entry.js +16 -0
  25. package/dist/cjs/wcs-field-label.cjs.entry.js +16 -0
  26. package/dist/cjs/wcs-field.cjs.entry.js +19 -0
  27. package/dist/cjs/wcs-footer.cjs.entry.js +19 -0
  28. package/dist/cjs/wcs-galactic-menu.cjs.entry.js +1785 -0
  29. package/dist/cjs/wcs-galactic.cjs.entry.js +41 -0
  30. package/dist/cjs/wcs-grid-column.cjs.entry.js +73 -0
  31. package/dist/cjs/wcs-grid-custom-cell.cjs.entry.js +16 -0
  32. package/dist/cjs/wcs-grid-pagination.cjs.entry.js +4 -4
  33. package/dist/cjs/wcs-grid.cjs.entry.js +309 -0
  34. package/dist/cjs/wcs-header.cjs.entry.js +25 -0
  35. package/dist/cjs/wcs-hint.cjs.entry.js +20 -0
  36. package/dist/cjs/wcs-horizontal-stepper.cjs.entry.js +114 -0
  37. package/dist/cjs/wcs-icon.cjs.entry.js +2 -2
  38. package/dist/cjs/wcs-input.cjs.entry.js +228 -0
  39. package/dist/cjs/wcs-label.cjs.entry.js +20 -0
  40. package/dist/cjs/wcs-list-item-properties.cjs.entry.js +19 -0
  41. package/dist/cjs/wcs-list-item-property.cjs.entry.js +19 -0
  42. package/dist/cjs/wcs-list-item.cjs.entry.js +23 -0
  43. package/dist/cjs/wcs-mat-icon.cjs.entry.js +73 -0
  44. package/dist/cjs/wcs-modal.cjs.entry.js +45 -0
  45. package/dist/cjs/wcs-nav-item.cjs.entry.js +23 -0
  46. package/dist/cjs/wcs-nav.cjs.entry.js +19 -0
  47. package/dist/cjs/wcs-progress-bar.cjs.entry.js +47 -0
  48. package/dist/cjs/wcs-progress-radial.cjs.entry.js +30 -0
  49. package/dist/cjs/wcs-radio-group.cjs.entry.js +65 -0
  50. package/dist/cjs/wcs-radio.cjs.entry.js +49 -0
  51. package/dist/cjs/wcs-select_2.cjs.entry.js +4916 -0
  52. package/dist/cjs/wcs-spinner.cjs.entry.js +21 -0
  53. package/dist/cjs/wcs-switch.cjs.entry.js +34 -0
  54. package/dist/cjs/wcs-tab.cjs.entry.js +20 -0
  55. package/dist/cjs/wcs-tabs.cjs.entry.js +159 -0
  56. package/dist/cjs/wcs-textarea.cjs.entry.js +224 -0
  57. package/dist/cjs/wcs-tooltip.cjs.entry.js +129 -0
  58. package/dist/cjs/wcs.cjs.js +3 -3
  59. package/dist/collection/collection-manifest.json +3 -2
  60. package/dist/collection/components/button/button.css +79 -75
  61. package/dist/collection/components/button/button.js +23 -11
  62. package/dist/collection/components/com-nav/com-nav.css +1 -2
  63. package/dist/collection/components/com-nav-category/com-nav-category.css +5 -6
  64. package/dist/collection/components/com-nav-category/com-nav-category.js +31 -1
  65. package/dist/collection/components/com-nav-submenu/com-nav-submenu.css +1 -2
  66. package/dist/collection/components/com-nav-submenu/com-nav-submenu.js +21 -1
  67. package/dist/collection/components/footer/footer.css +1 -1
  68. package/dist/collection/components/grid/grid.js +47 -8
  69. package/dist/collection/components/grid-column/grid-column.css +5 -0
  70. package/dist/collection/components/grid-column/grid-column.js +62 -2
  71. package/dist/collection/components/grid-custom-cell/grid-custom-cell.js +45 -0
  72. package/dist/collection/components/grid-pagination/grid-pagination.js +4 -4
  73. package/dist/collection/components/header/header.css +1 -1
  74. package/dist/collection/components/input/input.js +2 -2
  75. package/dist/collection/components/select/select.css +81 -77
  76. package/dist/collection/components/select/select.js +2 -2
  77. package/dist/collection/components/select-option/select-option.css +79 -75
  78. package/dist/collection/components/select-option/select-option.js +6 -7
  79. package/dist/collection/components/tab/tab.js +4 -4
  80. package/dist/collection/components/tabs/tabs.js +1 -1
  81. package/dist/collection/components/textarea/textarea.js +2 -2
  82. package/dist/collection/components/tooltip/tooltip.js +2 -2
  83. package/dist/esm/component-6b4d470f.js +1072 -0
  84. package/dist/esm/helpers-50436c51.js +73 -0
  85. package/dist/esm/{index-c619b1fa.js → index-b982604a.js} +165 -88
  86. package/dist/esm/loader.js +3 -3
  87. package/dist/{cjs/wcs-action-bar_47.cjs.entry.js → esm/lodash-d6d9d079.js} +12610 -22791
  88. package/dist/esm/select-arrow-73ac4016.js +34 -0
  89. package/dist/esm/wcs-action-bar.entry.js +20 -0
  90. package/dist/esm/wcs-app.entry.js +2 -2
  91. package/dist/esm/wcs-badge.entry.js +23 -0
  92. package/dist/esm/wcs-button.entry.js +82 -0
  93. package/dist/esm/wcs-card-body.entry.js +15 -0
  94. package/dist/esm/wcs-card.entry.js +16 -0
  95. package/dist/esm/wcs-checkbox.entry.js +39 -0
  96. package/dist/esm/wcs-com-nav-category.entry.js +59 -0
  97. package/dist/esm/wcs-com-nav-submenu.entry.js +65 -0
  98. package/dist/esm/wcs-com-nav.entry.js +15 -0
  99. package/dist/esm/wcs-divider.entry.js +15 -0
  100. package/dist/esm/wcs-dropdown-item.entry.js +19 -0
  101. package/dist/esm/wcs-dropdown.entry.js +53 -0
  102. package/dist/esm/wcs-editable-field.entry.js +221 -0
  103. package/dist/esm/wcs-error_2.entry.js +132 -0
  104. package/dist/esm/wcs-field-content.entry.js +12 -0
  105. package/dist/esm/wcs-field-label.entry.js +12 -0
  106. package/dist/esm/wcs-field.entry.js +15 -0
  107. package/dist/esm/wcs-footer.entry.js +15 -0
  108. package/dist/esm/wcs-galactic-menu.entry.js +1781 -0
  109. package/dist/esm/wcs-galactic.entry.js +37 -0
  110. package/dist/esm/wcs-grid-column.entry.js +69 -0
  111. package/dist/esm/wcs-grid-custom-cell.entry.js +12 -0
  112. package/dist/esm/wcs-grid-pagination.entry.js +4 -4
  113. package/dist/esm/wcs-grid.entry.js +305 -0
  114. package/dist/esm/wcs-header.entry.js +21 -0
  115. package/dist/esm/wcs-hint.entry.js +16 -0
  116. package/dist/esm/wcs-horizontal-stepper.entry.js +110 -0
  117. package/dist/esm/wcs-icon.entry.js +2 -2
  118. package/dist/esm/wcs-input.entry.js +224 -0
  119. package/dist/esm/wcs-label.entry.js +16 -0
  120. package/dist/esm/wcs-list-item-properties.entry.js +15 -0
  121. package/dist/esm/wcs-list-item-property.entry.js +15 -0
  122. package/dist/esm/wcs-list-item.entry.js +19 -0
  123. package/dist/esm/wcs-mat-icon.entry.js +69 -0
  124. package/dist/esm/wcs-modal.entry.js +41 -0
  125. package/dist/esm/wcs-nav-item.entry.js +19 -0
  126. package/dist/esm/wcs-nav.entry.js +15 -0
  127. package/dist/esm/wcs-progress-bar.entry.js +43 -0
  128. package/dist/esm/wcs-progress-radial.entry.js +26 -0
  129. package/dist/esm/wcs-radio-group.entry.js +61 -0
  130. package/dist/esm/wcs-radio.entry.js +45 -0
  131. package/dist/esm/wcs-select_2.entry.js +4911 -0
  132. package/dist/esm/wcs-spinner.entry.js +17 -0
  133. package/dist/esm/wcs-switch.entry.js +30 -0
  134. package/dist/esm/wcs-tab.entry.js +16 -0
  135. package/dist/esm/wcs-tabs.entry.js +155 -0
  136. package/dist/esm/wcs-textarea.entry.js +220 -0
  137. package/dist/esm/wcs-tooltip.entry.js +125 -0
  138. package/dist/esm/wcs.js +3 -3
  139. package/dist/types/components/button/button.d.ts +7 -3
  140. package/dist/types/components/com-nav-category/com-nav-category.d.ts +7 -0
  141. package/dist/types/components/com-nav-submenu/com-nav-submenu.d.ts +7 -0
  142. package/dist/types/components/grid/grid.d.ts +7 -0
  143. package/dist/types/components/grid-column/grid-column.d.ts +4 -0
  144. package/dist/types/components/grid-custom-cell/grid-custom-cell.d.ts +12 -0
  145. package/dist/types/components/select-option/select-option.d.ts +2 -0
  146. package/dist/types/components.d.ts +43 -0
  147. package/dist/types/stencil-public-runtime.d.ts +183 -182
  148. package/dist/wcs/p-03b2e238.entry.js +1 -0
  149. package/dist/wcs/p-0fbe574e.entry.js +1 -0
  150. package/dist/wcs/p-15008e35.entry.js +1 -0
  151. package/dist/wcs/p-16dfbae8.js +127 -0
  152. package/dist/wcs/p-17c6db7f.entry.js +1 -0
  153. package/dist/wcs/p-1dce7e63.entry.js +1 -0
  154. package/dist/wcs/p-1f5aed36.entry.js +1 -0
  155. package/dist/wcs/p-214236db.entry.js +1 -0
  156. package/dist/wcs/p-26b5c0a3.entry.js +1 -0
  157. package/dist/wcs/p-2e6265dc.entry.js +1 -0
  158. package/dist/wcs/p-356a8e3b.entry.js +1 -0
  159. package/dist/wcs/p-3d10b02a.entry.js +15 -0
  160. package/dist/wcs/p-4338f140.entry.js +1 -0
  161. package/dist/wcs/p-474d6601.entry.js +1 -0
  162. package/dist/wcs/p-55fdc284.entry.js +1 -0
  163. package/dist/wcs/p-5b35b232.entry.js +1 -0
  164. package/dist/wcs/p-600a9cc0.entry.js +1 -0
  165. package/dist/wcs/p-60b51967.entry.js +1 -0
  166. package/dist/wcs/p-62f7ab6d.entry.js +1 -0
  167. package/dist/wcs/p-64523291.entry.js +1 -0
  168. package/dist/wcs/p-65c5ccc5.entry.js +1 -0
  169. package/dist/wcs/p-688fea65.entry.js +1 -0
  170. package/dist/wcs/p-716d5921.entry.js +1 -0
  171. package/dist/wcs/p-7219c04b.js +1 -0
  172. package/dist/wcs/p-8137f075.entry.js +1 -0
  173. package/dist/wcs/p-83f1ad32.js +1 -0
  174. package/dist/wcs/p-8864a491.entry.js +1 -0
  175. package/dist/wcs/p-8f0f9868.entry.js +1 -0
  176. package/dist/wcs/p-91a2de07.entry.js +1 -0
  177. package/dist/wcs/p-94a31f64.entry.js +1 -0
  178. package/dist/wcs/p-979dfd78.entry.js +1 -0
  179. package/dist/wcs/p-9ba52bc4.entry.js +1 -0
  180. package/dist/wcs/p-a1ee1551.entry.js +1 -0
  181. package/dist/wcs/p-a5a1b27c.entry.js +1 -0
  182. package/dist/wcs/p-adef7aaf.js +1 -0
  183. package/dist/wcs/p-af1a5e52.entry.js +1 -0
  184. package/dist/wcs/p-b7184d59.entry.js +1 -0
  185. package/dist/wcs/p-bef44630.entry.js +1 -0
  186. package/dist/wcs/p-d59b4495.entry.js +1 -0
  187. package/dist/wcs/p-db68379f.entry.js +1 -0
  188. package/dist/wcs/p-dbbc3f58.entry.js +1 -0
  189. package/dist/wcs/p-dc817204.entry.js +1 -0
  190. package/dist/wcs/p-dd300dea.entry.js +1 -0
  191. package/dist/wcs/p-e0163de8.entry.js +1 -0
  192. package/dist/wcs/p-e4236d32.entry.js +1 -0
  193. package/dist/wcs/p-e43358e4.entry.js +1 -0
  194. package/dist/wcs/p-e486647c.entry.js +1 -0
  195. package/dist/wcs/p-e9ce507c.entry.js +1 -0
  196. package/dist/wcs/p-ed6e8541.entry.js +1 -0
  197. package/dist/wcs/p-f46e6c3c.js +1 -0
  198. package/dist/wcs/p-f9944bde.entry.js +1 -0
  199. package/dist/wcs/p-fa173947.entry.js +1 -0
  200. package/dist/wcs/p-fb1577b5.entry.js +1 -0
  201. package/dist/wcs/p-febe9ccc.entry.js +1 -0
  202. package/dist/wcs/wcs.esm.js +1 -1
  203. package/loader/index.d.ts +0 -1
  204. package/package.json +22 -20
  205. package/dist/wcs/p-16dca526.entry.js +0 -1
  206. package/dist/wcs/p-4f228fcb.entry.js +0 -134
  207. package/dist/wcs/p-66520e5a.entry.js +0 -1
  208. package/dist/wcs/p-d31287c6.entry.js +0 -1
  209. package/dist/wcs/p-f73f235b.js +0 -1
  210. package/schematics/.gitignore +0 -18
  211. package/schematics/.npmignore +0 -4
  212. package/schematics/collection.json +0 -9
  213. package/schematics/src/ng-add/files/fonts/avenir-black.woff +0 -0
  214. package/schematics/src/ng-add/files/fonts/avenir-book.woff +0 -0
  215. package/schematics/src/ng-add/files/fonts/avenir-lighter.woff +0 -0
  216. package/schematics/src/ng-add/files/fonts/avenir-medium.woff +0 -0
  217. package/schematics/src/ng-add/files/sncf-logo.png +0 -0
  218. package/schematics/src/ng-add/index.d.ts +0 -3
  219. package/schematics/src/ng-add/index.js +0 -119
  220. package/schematics/src/ng-add/index.js.map +0 -1
  221. package/schematics/src/ng-add/schema.json +0 -5
@@ -0,0 +1,127 @@
1
+ var t,n=function(t,i){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,i)};function i(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=t}n(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}var r=function(){return(r=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++)for(var e in n=arguments[i])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)};function e(t){var n="function"==typeof Symbol&&Symbol.iterator,i=n&&t[n],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(t,n){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,e,o=i.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return u}function u(t,n,i){if(i||2===arguments.length)for(var r,e=0,o=n.length;e<o;e++)!r&&e in n||(r||(r=Array.prototype.slice.call(n,0,e)),r[e]=n[e]);return t.concat(r||Array.prototype.slice.call(n))}
2
+ /**
3
+ * @license
4
+ * Copyright 2016 Google Inc.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in
14
+ * all copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ * THE SOFTWARE.
23
+ */var s=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),c=function(){function t(t,n){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];this.root=t,this.initialize.apply(this,u([],o(i))),this.foundation=void 0===n?this.getDefaultFoundation():n,this.foundation.init(),this.initialSyncWithDOM()}return t.attachTo=function(n){return new t(n,new s({}))},t.prototype.initialize=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n]},t.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},t.prototype.initialSyncWithDOM=function(){},t.prototype.destroy=function(){this.foundation.destroy()},t.prototype.listen=function(t,n,i){this.root.addEventListener(t,n,i)},t.prototype.unlisten=function(t,n,i){this.root.removeEventListener(t,n,i)},t.prototype.emit=function(t,n,i){var r;void 0===i&&(i=!1),"function"==typeof CustomEvent?r=new CustomEvent(t,{bubbles:i,detail:n}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,i,!1,n),this.root.dispatchEvent(r)},t}();
24
+ /**
25
+ * @license
26
+ * Copyright 2016 Google Inc.
27
+ *
28
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
29
+ * of this software and associated documentation files (the "Software"), to deal
30
+ * in the Software without restriction, including without limitation the rights
31
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
32
+ * copies of the Software, and to permit persons to whom the Software is
33
+ * furnished to do so, subject to the following conditions:
34
+ *
35
+ * The above copyright notice and this permission notice shall be included in
36
+ * all copies or substantial portions of the Software.
37
+ *
38
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
39
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
40
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
41
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
42
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
43
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
44
+ * THE SOFTWARE.
45
+ */
46
+ /**
47
+ * @license
48
+ * Copyright 2019 Google Inc.
49
+ *
50
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
51
+ * of this software and associated documentation files (the "Software"), to deal
52
+ * in the Software without restriction, including without limitation the rights
53
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
54
+ * copies of the Software, and to permit persons to whom the Software is
55
+ * furnished to do so, subject to the following conditions:
56
+ *
57
+ * The above copyright notice and this permission notice shall be included in
58
+ * all copies or substantial portions of the Software.
59
+ *
60
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
61
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
62
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
63
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
64
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
65
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
66
+ * THE SOFTWARE.
67
+ */
68
+ function a(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var n=!1;try{var i={get passive(){return n=!0,!1}},r=function(){};t.document.addEventListener("test",r,i),t.document.removeEventListener("test",r,i)}catch(t){n=!1}return n}
69
+ /**
70
+ * @license
71
+ * Copyright 2018 Google Inc.
72
+ *
73
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
74
+ * of this software and associated documentation files (the "Software"), to deal
75
+ * in the Software without restriction, including without limitation the rights
76
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
77
+ * copies of the Software, and to permit persons to whom the Software is
78
+ * furnished to do so, subject to the following conditions:
79
+ *
80
+ * The above copyright notice and this permission notice shall be included in
81
+ * all copies or substantial portions of the Software.
82
+ *
83
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
84
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
85
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
86
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
87
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
88
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
89
+ * THE SOFTWARE.
90
+ */(t)&&{passive:!0}}
91
+ /**
92
+ * @license
93
+ * Copyright 2016 Google Inc.
94
+ *
95
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
96
+ * of this software and associated documentation files (the "Software"), to deal
97
+ * in the Software without restriction, including without limitation the rights
98
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99
+ * copies of the Software, and to permit persons to whom the Software is
100
+ * furnished to do so, subject to the following conditions:
101
+ *
102
+ * The above copyright notice and this permission notice shall be included in
103
+ * all copies or substantial portions of the Software.
104
+ *
105
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
106
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
107
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
108
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
109
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
110
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
111
+ * THE SOFTWARE.
112
+ */
113
+ var f={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},h={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},d={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300},l=["touchstart","pointerdown","mousedown","keydown"],v=["touchend","pointerup","mouseup","contextmenu"],m=[],p=function(t){function n(i){var e=t.call(this,r(r({},n.defaultAdapter),i))||this;return e.activationAnimationHasEnded=!1,e.activationTimer=0,e.fgDeactivationRemovalTimer=0,e.fgScale="0",e.frame={width:0,height:0},e.initialSize=0,e.layoutFrame=0,e.maxRadius=0,e.unboundedCoords={left:0,top:0},e.activationState=e.defaultActivationState(),e.activationTimerCallback=function(){e.activationAnimationHasEnded=!0,e.runDeactivationUXLogicIfReady()},e.activateHandler=function(t){e.activateImpl(t)},e.deactivateHandler=function(){e.deactivateImpl()},e.focusHandler=function(){e.handleFocus()},e.blurHandler=function(){e.handleBlur()},e.resizeHandler=function(){e.layout()},e}return i(n,t),Object.defineProperty(n,"cssClasses",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(n,"strings",{get:function(){return h},enumerable:!1,configurable:!0}),Object.defineProperty(n,"numbers",{get:function(){return d},enumerable:!1,configurable:!0}),Object.defineProperty(n,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),n.prototype.init=function(){var t=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var r=n.cssClasses,e=r.ROOT,o=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(e),t.adapter.isUnbounded()&&(t.adapter.addClass(o),t.layoutInternal())}))}},n.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(n.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(n.cssClasses.FG_DEACTIVATION));var i=n.cssClasses,r=i.ROOT,e=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(r),t.adapter.removeClass(e),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},n.prototype.activate=function(t){this.activateImpl(t)},n.prototype.deactivate=function(){this.deactivateImpl()},n.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},n.prototype.setUnbounded=function(t){var i=n.cssClasses.UNBOUNDED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},n.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(n.cssClasses.BG_FOCUSED)}))},n.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(n.cssClasses.BG_FOCUSED)}))},n.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},n.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},n.prototype.registerRootHandlers=function(t){var n,i;if(t){try{for(var r=e(l),o=r.next();!o.done;o=r.next())this.adapter.registerInteractionHandler(o.value,this.activateHandler)}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},n.prototype.registerDeactivationHandlers=function(t){var n,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=e(v),o=r.next();!o.done;o=r.next())this.adapter.registerDocumentInteractionHandler(o.value,this.deactivateHandler)}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},n.prototype.deregisterRootHandlers=function(){var t,n;try{for(var i=e(l),r=i.next();!r.done;r=i.next())this.adapter.deregisterInteractionHandler(r.value,this.activateHandler)}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},n.prototype.deregisterDeactivationHandlers=function(){var t,n;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=e(v),r=i.next();!r.done;r=i.next())this.adapter.deregisterDocumentInteractionHandler(r.value,this.deactivateHandler)}catch(n){t={error:n}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},n.prototype.removeCssVars=function(){var t=this,i=n.strings;Object.keys(i).forEach((function(n){0===n.indexOf("VAR_")&&t.adapter.updateCssVariable(i[n],null)}))},n.prototype.activateImpl=function(t){var n=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var r=this.previousActivationEvent;r&&void 0!==t&&r.type!==t.type||(i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&m.length>0&&m.some((function(t){return n.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(m.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){m=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=n.checkElementMadeActive(t),i.wasElementMadeActive&&n.animateActivation()),i.wasElementMadeActive||(n.activationState=n.defaultActivationState())}))))}}},n.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},n.prototype.animateActivation=function(){var t=this,i=n.strings,r=i.VAR_FG_TRANSLATE_START,e=i.VAR_FG_TRANSLATE_END,o=n.cssClasses,u=o.FG_DEACTIVATION,s=o.FG_ACTIVATION,c=n.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var a="",f="";if(!this.adapter.isUnbounded()){var h=this.getFgTranslationCoordinates(),d=h.startPoint,l=h.endPoint;a=d.x+"px, "+d.y+"px",f=l.x+"px, "+l.y+"px"}this.adapter.updateCssVariable(r,a),this.adapter.updateCssVariable(e,f),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(u),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),c)},n.prototype.getFgTranslationCoordinates=function(){var t,n=this.activationState;return{startPoint:t={x:(t=n.wasActivatedByPointer?function(t,n,i){if(!t)return{x:0,y:0};var r,e,o=n.x+i.left,u=n.y+i.top;return"touchstart"===t.type?(r=t.changedTouches[0].pageX-o,e=t.changedTouches[0].pageY-u):(r=t.pageX-o,e=t.pageY-u),{x:r,y:e}}
114
+ /*! *****************************************************************************
115
+ Copyright (c) Microsoft Corporation.
116
+
117
+ Permission to use, copy, modify, and/or distribute this software for any
118
+ purpose with or without fee is hereby granted.
119
+
120
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
121
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
122
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
123
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
124
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
125
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
126
+ PERFORMANCE OF THIS SOFTWARE.
127
+ ***************************************************************************** */(n.activationEvent,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},n.prototype.runDeactivationUXLogicIfReady=function(){var t=this,i=n.cssClasses.FG_DEACTIVATION,r=this.activationState;(r.hasDeactivationUXRun||!r.isActivated)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),d.FG_DEACTIVATION_MS))},n.prototype.rmBoundedActivationClasses=function(){this.adapter.removeClass(n.cssClasses.FG_ACTIVATION),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},n.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),n.numbers.TAP_DELAY_MS)},n.prototype.deactivateImpl=function(){var t=this,n=this.activationState;if(n.isActivated){var i=r({},n);n.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(i)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()})))}},n.prototype.animateDeactivation=function(t){(t.wasActivatedByPointer||t.wasElementMadeActive)&&this.runDeactivationUXLogicIfReady()},n.prototype.layoutInternal=function(){this.frame=this.adapter.computeBoundingRect();var t=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?t:Math.sqrt(Math.pow(this.frame.width,2)+Math.pow(this.frame.height,2))+n.numbers.PADDING;var i=Math.floor(t*n.numbers.INITIAL_ORIGIN_SCALE);this.initialSize=this.adapter.isUnbounded()&&i%2!=0?i-1:i,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},n.prototype.updateLayoutCssVars=function(){var t=n.strings,i=t.VAR_LEFT,r=t.VAR_TOP,e=t.VAR_FG_SCALE;this.adapter.updateCssVariable(t.VAR_FG_SIZE,this.initialSize+"px"),this.adapter.updateCssVariable(e,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(i,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(r,this.unboundedCoords.top+"px"))},n}(s),b=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t.disabled=!1,t}return i(r,n),r.attachTo=function(t,n){void 0===n&&(n={isUnbounded:void 0});var i=new r(t);return void 0!==n.isUnbounded&&(i.unbounded=n.isUnbounded),i},r.createAdapter=function(n){return{addClass:function(t){return n.root.classList.add(t)},browserSupportsCssVars:function(){return function(n,i){void 0===i&&(i=!1);var r,e=window.CSS;if("boolean"==typeof t&&!i)return t;if(!e||"function"!=typeof e.supports)return!1;var o=e.supports("--css-vars","yes"),u=e.supports("(--css-vars: yes)")&&e.supports("color","#00000000");return r=o||u,i||(t=r),r}()},computeBoundingRect:function(){return n.root.getBoundingClientRect()},containsEventTarget:function(t){return n.root.contains(t)},deregisterDocumentInteractionHandler:function(t,n){return document.documentElement.removeEventListener(t,n,a())},deregisterInteractionHandler:function(t,i){return n.root.removeEventListener(t,i,a())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return((t=n.root).matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,":active");var t},isSurfaceDisabled:function(){return Boolean(n.disabled)},isUnbounded:function(){return Boolean(n.unbounded)},registerDocumentInteractionHandler:function(t,n){return document.documentElement.addEventListener(t,n,a())},registerInteractionHandler:function(t,i){return n.root.addEventListener(t,i,a())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return n.root.classList.remove(t)},updateCssVariable:function(t,i){return n.root.style.setProperty(t,i)}}},Object.defineProperty(r.prototype,"unbounded",{get:function(){return Boolean(this.isUnbounded)},set:function(t){this.isUnbounded=Boolean(t),this.setUnbounded()},enumerable:!1,configurable:!0}),r.prototype.activate=function(){this.foundation.activate()},r.prototype.deactivate=function(){this.foundation.deactivate()},r.prototype.layout=function(){this.foundation.layout()},r.prototype.getDefaultFoundation=function(){return new p(r.createAdapter(this))},r.prototype.initialSyncWithDOM=function(){this.isUnbounded="mdcRippleIsUnbounded"in this.root.dataset},r.prototype.setUnbounded=function(){this.foundation.setUnbounded(Boolean(this.isUnbounded))},r}(c);export{b as M}
@@ -0,0 +1 @@
1
+ import{r as t,h as s,H as i,g as o}from"./p-f46e6c3c.js";let h;let e=class{constructor(s){t(this,s),this.position="bottom"}componentWillLoad(){const t=document.getElementById(this.for);if(null===t)throw new Error(`Cannot find element with corresponding id: ${this.for}`);this.target=t,this.listen("mouseenter","show"),this.listen("focus","show"),this.listen("mouseleave","hide"),this.listen("blur","hide"),this.listen("tap","hide")}listen(t,s){this.target.addEventListener(t,(()=>{"hide"===s?this.content.classList.replace("show","hide"):this.content.classList.replace("hide","show"),this.updatePosition()}))}componentDidRender(){const t=(h||function(){const t=document.querySelector(".wcs-overlay");h=t||document.createElement("div"),h.classList.add("wcs-overlay"),document.body.appendChild(h)}(),h);this.content=this.el.shadowRoot.querySelector(".wcs-tooltip-content"),(this.el.shadowRoot.querySelector("slot")?this.el.shadowRoot.querySelector("slot").assignedNodes():this.content.querySelectorAll("*")).forEach((t=>this.content.appendChild(t.cloneNode(!0)))),this.content.remove(),t.appendChild(this.content),this.updatePosition()}updatePosition(){if(!this.target||!this.content.offsetParent)return;const t=this.content.offsetParent.getBoundingClientRect(),s=this.target.getBoundingClientRect(),i=this.content.getBoundingClientRect(),o=(s.width-i.width)/2,h=(s.height-i.height)/2,e=s.left-t.left,n=s.top-t.top;let c,l;switch(this.position){case"top":c=e+o,l=n-i.height-6;break;case"bottom":c=e+o,l=n+s.height+6;break;case"left":c=e-i.width-6,l=n+h;break;case"right":c=e+s.width+6,l=n+h}t.left+c+i.width>window.innerWidth?(this.content.style.right="0px",this.content.style.left="auto"):(this.content.style.left=Math.max(0,c)+"px",this.content.style.right="auto"),t.top+l+i.height>window.innerHeight?(this.content.style.bottom=t.height-n+"px",this.content.style.top="auto"):(this.content.style.top=Math.max(-t.top,l)+"px",this.content.style.bottom="auto")}disconnectedCallback(){}render(){return s(i,null,s("div",{class:"wcs-tooltip-content hide"},s("slot",null)))}get el(){return o(this)}};export{e as wcs_tooltip}
@@ -0,0 +1 @@
1
+ import{r as o,c as r,h as s,H as t}from"./p-f46e6c3c.js";let i=class{constructor(s){o(this,s),this.wcsDropdownItemClick=r(this,"wcsDropdownItemClick",7)}onMouseDown(o){this.wcsDropdownItemClick.emit()}render(){return s(t,{slot:"item"},s("slot",null))}};i.style="wcs-dropdown-item{display:block;padding:0 var(--wcs-padding);font-weight:500;cursor:pointer;height:42px;line-height:42px}wcs-dropdown-item:hover{color:var(--wcs-primary);background-color:var(--wcs-light)}";export{i as wcs_dropdown_item}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as o,H as i,g as n}from"./p-f46e6c3c.js";let s=class{constructor(o){t(this,o),this.wcsCategoryOpened=e(this,"wcsCategoryOpened",7),this.wcsCategoryItemClicked=e(this,"wcsCategoryItemClicked",7),this.categoryOpen=!1}onWindowClickEvent(t){this.categoryOpen&&(this.categoryOpen=!1)}onSubmenuOpened(t){t.detail.categoryElement!==this.el&&(this.categoryOpen=!1)}async close(){this.categoryOpen=!1}async open(){this.categoryOpen=!0}onClick(t){t.stopPropagation(),this.wcsCategoryOpened.emit({categoryElement:this.el})}handleItemClick(t){"A"===t.target.tagName&&(this.close(),this.wcsCategoryItemClicked.emit(t))}render(){return o(i,{onClick:t=>this.onClick(t)},o("div",{class:"label-container","data-open":this.categoryOpen,onClick:()=>this.categoryOpen=!this.categoryOpen},o("span",{class:"label"},this.label)),o("div",{class:"item-container","data-open":this.categoryOpen,onClick:t=>this.handleItemClick(t)},o("slot",null)))}get el(){return n(this)}};s.style=':host{display:block}:host .item-container:not([data-open]){display:none}:host .label:after{font-family:icons;padding-left:var(--wcs-base-margin);font-size:0.6rem;content:"\\f107";line-height:1;box-sizing:border-box}:host .label-container{cursor:pointer;user-select:none;display:flex;align-items:center}:host .label-container[data-open]:after{position:absolute;left:calc(50% + var(--wcs-com-content-max-width) / 8 - 0.5625rem);z-index:2;display:block;width:1.125rem;height:1.125rem;content:"";background-color:var(--wcs-primary);transform:rotate(45deg)}:host .item-container[data-open]{position:absolute;left:calc(50% + var(--wcs-com-content-max-width) / 8);top:0;right:0;padding:50px 0 50px 50px;background-blend-mode:multiply;background-color:rgba(0, 0, 0, 0.15);box-sizing:border-box;height:100%;display:flex;flex-direction:column;align-items:start}:host .item-container[data-open] ::slotted(a:not(:first-child)){margin-top:24px}:host .item-container[data-open] ::slotted(a):after{font-family:icons;padding-left:var(--wcs-base-margin);font-size:0.6rem;content:"\\f107";line-height:1;box-sizing:border-box}:host .item-container[data-open] ::slotted(a){cursor:pointer;text-decoration:none;font-size:16px;color:var(--wcs-white)}';export{s as wcs_com_nav_category}
@@ -0,0 +1 @@
1
+ import{h as t,r as s,c as i,H as a,g as e}from"./p-f46e6c3c.js";const n=({active:s,order:i,double:a=!1})=>t("svg",{style:{marginLeft:"auto",cursor:"pointer"},xmlns:"http://www.w3.org/2000/svg",width:"24",height:"20",viewBox:"0 0 24 20"},t("style",{type:"text/css"},"\n .arrow-group {\n transform-origin: 50% 51%;\n transition: transform 175ms ease-in-out;\n }\n .arrow {\n transition: fill 175ms ease-in-out;\n fill: var(--wcs-text-light);\n }\n .second-arrow {\n transform: translateY(-8px);\n }\n .next {\n transform: rotate(90deg);\n }\n .previous {\n transform: rotate(-90deg);\n }\n .active {\n fill: var(--wcs-primary);\n }\n "),t("g",{fill:"none",class:i+" arrow-group"},t("path",{class:(s?"active":"")+" arrow",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),t("path",{d:"M0 0h24v24H0z",fill:"none"})),a?t("g",{fill:"none",class:i+" arrow-group"},t("path",{class:(s?"active":"")+" arrow second-arrow",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),t("path",{d:"M0 0h24v24H0z",fill:"none"})):"");let r=class{constructor(t){s(this,t),this.wcsGridPaginationChange=i(this,"wcsGridPaginationChange",7),this.availablePageSizes=[10,20,50],this.currentPage=0,this.pageSize=this.availablePageSizes[0],this.itemsCount=0,this.pageCount=1}lastPage(){this.currentPage=this.pageCount-1,this.emitPaginationChange()}nextPage(){this.canGoToNextPage()&&(this.currentPage++,this.emitPaginationChange())}canGoToNextPage(){return this.currentPage+1<this.pageCount}previousPage(){this.canGoToPreviousPage()&&(this.currentPage--,this.emitPaginationChange())}canGoToPreviousPage(){return this.currentPage>0}firstPage(){this.currentPage=0,this.emitPaginationChange()}onChangePagesize(t){this.pageSize=t.detail.value,this.currentPage+1>this.pageSize&&(this.currentPage=0),this.emitPaginationChange()}emitPaginationChange(){this.wcsGridPaginationChange.emit({pagination:{currentPage:this.currentPage,pageSize:this.pageSize,itemsCount:this.itemsCount,pageCount:this.pageCount}})}render(){return t(a,{slot:"grid-pagination"},t("div",{class:"container"},t("div",{class:"page-size"},t("wcs-select",{placeholder:"Eléments par page",class:"available-page-sizes",value:this.pageSize,onWcsChange:this.onChangePagesize.bind(this)},this.availablePageSizes.map((s=>t("wcs-select-option",{value:s},s)))),t("span",null," éléments par page")),t("div",{class:"items-count"},t("span",null,this.itemsCount," éléments")),t("div",{class:"page-management"},t("span",{class:"pagination-arrow",onClick:this.firstPage.bind(this)},t(n,{active:this.canGoToPreviousPage(),order:"previous",double:!0})),t("span",{class:"pagination-arrow",onClick:this.previousPage.bind(this)},t(n,{active:this.canGoToPreviousPage(),order:"previous"})),t("span",null,this.currentPage+1," / ",this.pageCount),t("span",{class:"pagination-arrow",onClick:this.nextPage.bind(this)},t(n,{active:this.canGoToNextPage(),order:"next"})),t("span",{class:"pagination-arrow",onClick:this.lastPage.bind(this)},t(n,{active:this.canGoToNextPage(),order:"next",double:!0})))))}get el(){return e(this)}};r.style=":host{display:block;border-style:solid none none;border-width:1px;border-color:var(--wcs-text-light)}.container{display:grid;grid-template-columns:auto auto auto;justify-content:space-between;color:var(--wcs-text-medium)}.available-page-sizes{width:auto}.page-management,.page-size,.items-count{display:flex;align-items:center}.pagination-arrow{display:flex}";export{r as wcs_grid_pagination}
@@ -0,0 +1 @@
1
+ import{r as t,h as s,H as r}from"./p-f46e6c3c.js";let e=class{constructor(s){t(this,s)}render(){return s(r,{slot:"content"},s("slot",null))}};export{e as wcs_field_content}
@@ -0,0 +1 @@
1
+ import{r as t,h as o,H as e}from"./p-f46e6c3c.js";let s=class{constructor(o){t(this,o),this.activated=!1}render(){return o(e,null,o("slot",{name:"icon"}),o("div",{class:"content"},o("div",{class:"header"},o("div",null,o("slot",{name:"title"}),o("slot",{name:"properties"})),o("slot",{name:"actions"})),o("slot",{name:"description"})))}};s.style=":host{padding:var(--wcs-padding);border:solid 1px var(--wcs-text-light);display:flex;margin-bottom:-1px;background-color:var(--wcs-white)}:host(:hover){background-color:var(--wcs-light);transition:0.175s}:host([activated]){background-color:var(--wcs-light)}::slotted([slot=title]){color:var(--wcs-gray);font-weight:700;line-height:1.2;font-family:inherit;margin-bottom:0.5rem}::slotted([slot=icon]){color:var(--wcs-gray-light);margin-right:16px}::slotted([slot=actions]){margin-left:8px}.content{display:flex;flex-direction:column;flex-grow:1}.header{display:flex;justify-content:space-between}";export{s as wcs_list_item}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,a as i,h as e,H as r,g as a}from"./p-f46e6c3c.js";import{d as h,i as o,r as n,f as c}from"./p-83f1ad32.js";let l=class{constructor(i){t(this,i),this.wcsChange=s(this,"wcsChange",7),this.wcsInput=s(this,"wcsInput",7),this.wcsBlur=s(this,"wcsBlur",7),this.wcsFocus=s(this,"wcsFocus",7),this.inputId="wcs-textarea-"+d++,this.didBlurAfterEdit=!1,this.inheritedAttributes={},this.fireFocusEvents=!0,this.hasFocus=!1,this.autocapitalize="none",this.autofocus=!1,this.clearOnEdit=!1,this.debounce=0,this.disabled=!1,this.name=this.inputId,this.readonly=!1,this.required=!1,this.spellcheck=!1,this.state="initial",this.autoGrow=!1,this.value="",this.onInput=t=>{this.nativeInput&&(this.value=this.nativeInput.value),this.wcsInput.emit(t)},this.onFocus=t=>{this.hasFocus=!0,this.focusChange(),this.fireFocusEvents&&this.wcsFocus.emit(t)},this.onBlur=t=>{this.hasFocus=!1,this.focusChange(),this.fireFocusEvents&&this.wcsBlur.emit(t)},this.onKeyDown=()=>{this.checkClearOnEdit()}}debounceChanged(){this.wcsChange=h(this.wcsChange,this.debounce)}valueChanged(){const t=this.nativeInput,s=this.getValue();t&&t.value!==s&&(t.value=s),this.runAutoGrow(),this.wcsChange.emit({value:s})}connectedCallback(){this.debounceChanged(),document.dispatchEvent(new CustomEvent("wcsInputDidLoad",{detail:this.el}))}disconnectedCallback(){document.dispatchEvent(new CustomEvent("wcsInputDidUnload",{detail:this.el}))}componentWillLoad(){this.inheritedAttributes=o(this.el,["title"])}componentDidLoad(){n((()=>this.runAutoGrow()))}runAutoGrow(){const t=this.nativeInput;t&&this.autoGrow&&i((()=>{t.style.height="auto",t.style.height=t.scrollHeight+"px"}))}async fitContent(){n((()=>this.runAutoGrow()))}async setFocus(){this.nativeInput&&this.nativeInput.focus()}async setBlur(){this.nativeInput&&this.nativeInput.blur()}getInputElement(){return Promise.resolve(this.nativeInput)}checkClearOnEdit(){this.clearOnEdit&&(this.didBlurAfterEdit&&this.hasValue()&&(this.value=""),this.didBlurAfterEdit=!1)}focusChange(){this.clearOnEdit&&!this.hasFocus&&this.hasValue()&&(this.didBlurAfterEdit=!0)}hasValue(){return""!==this.getValue()}getValue(){return this.value||""}render(){const t=this.getValue(),s=this.inputId+"-lbl",i=c(this.el);return i&&(i.id=s),e(r,{"aria-disabled":this.disabled?"true":null},this.icon?e("wcs-mat-icon",{icon:this.icon,size:"m"}):null,e("textarea",Object.assign({class:"native-textarea","aria-labelledby":i?s:null,ref:t=>this.nativeInput=t,autoCapitalize:this.autocapitalize,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,disabled:this.disabled,maxLength:this.maxlength,minLength:this.minlength,name:this.name,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,cols:this.cols,rows:this.rows,wrap:this.wrap,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeyDown},this.inheritedAttributes),t))}get el(){return a(this)}static get watchers(){return{debounce:["debounceChanged"],value:["valueChanged"]}}},d=0;l.style=":host{--wcs-textarea-icon-color:var(--wcs-text-medium);--wcs-internal-textarea-border-radius-left:var(--wcs-textarea-border-radius-left, var(--wcs-border-radius));--wcs-internal-textarea-border-radius-right:var(--wcs-textarea-border-radius-right, var(--wcs-border-radius));display:flex;flex-direction:row;width:100%;border-radius:var(--wcs-internal-textarea-border-radius-left) var(--wcs-internal-textarea-border-radius-right) var(--wcs-internal-textarea-border-radius-right) var(--wcs-internal-textarea-border-radius-left);background-color:var(--wcs-light);border:1px solid var(--wcs-light);background-clip:padding-box}:host ::placeholder{font-weight:400;font-style:italic}:host textarea{overflow:auto;flex:1;width:100%;box-sizing:border-box;min-height:24px;background-color:transparent;font-family:var(--wcs-font-sans-serif);color:var(--wcs-primary);font-weight:var(--wcs-font-weight-form-value) !important;border:none;padding:calc(var(--wcs-padding) / 2) var(--wcs-padding);font-size:1rem;line-height:1.5}:host textarea:focus{box-shadow:none;outline:0}:host wcs-mat-icon{position:relative;margin-top:7px;margin-left:8px;margin-right:-8px}:host([state=error]){border-color:var(--wcs-red) !important}:host(:focus-within){border:solid 1px var(--wcs-primary)}:host(:focus-within) wcs-mat-icon{color:var(--wcs-primary)}";export{l as wcs_textarea}
@@ -0,0 +1,15 @@
1
+ import{h as t,r,c as i,H as e,g as n}from"./p-f46e6c3c.js";import{l as o}from"./p-adef7aaf.js";import{S as s}from"./p-7219c04b.js";import{a as c}from"./p-83f1ad32.js";import{M as a}from"./p-16dfbae8.js";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */var u=function(){return(u=Object.assign||function(t){for(var r,i=1,e=arguments.length;i<e;i++)for(var n in r=arguments[i])Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t}).apply(this,arguments)};function l(t,r){var i={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0&&(i[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(e=Object.getOwnPropertySymbols(t);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(t,e[n])&&(i[e[n]]=t[e[n]])}return i}function f(t){var r="function"==typeof Symbol&&Symbol.iterator,i=r&&t[r],e=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(t,r){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var e,n,o=i.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s}function p(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(d(arguments[r]));return t}var h={};function v(t){return Object.keys(t)}function m(t,r,i){void 0===i&&(i=".");var e=w(t,i),n=w(r,i);return I(n)?!!I(e)&&n===e:I(e)?e in n:v(e).every((function(t){return t in n&&m(e[t],n[t])}))}function y(t){try{return I(t)||"number"==typeof t?""+t:t.type}catch(t){throw new Error("Events must be strings or objects with a string event.type property.")}}function g(t,r){try{return T(t)?t:t.toString().split(r)}catch(r){throw new Error("'"+t+"' is not a valid state path.")}}function w(t,r){return"object"==typeof(i=t)&&"value"in i&&"context"in i&&"event"in i&&"_event"in i?t.value:T(t)?b(t):"string"!=typeof t?t:b(g(t,r));var i}function b(t){if(1===t.length)return t[0];for(var r={},i=r,e=0;e<t.length-1;e++)e===t.length-2?i[t[e]]=t[e+1]:(i[t[e]]={},i=i[t[e]]);return r}function x(t,r){for(var i={},e=v(t),n=0;n<e.length;n++){var o=e[n];i[o]=r(t[o],o,t,n)}return i}function S(t,r,i){var e,n,o={};try{for(var s=f(v(t)),c=s.next();!c.done;c=s.next()){var a=c.value,u=t[a];i(u)&&(o[a]=r(u,a,t))}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return o}var k=function(t){return function(r){var i,e,n=r;try{for(var o=f(t),s=o.next();!s.done;s=o.next())n=n[s.value]}catch(t){i={error:t}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return n}};function O(t){return t?I(t)?[[t]]:z(v(t).map((function(r){var i=t[r];return"string"==typeof i||i&&Object.keys(i).length?O(t[r]).map((function(t){return[r].concat(t)})):[[r]]}))):[[]]}function z(t){var r;return(r=[]).concat.apply(r,p(t))}function C(t){return T(t)?t:[t]}function E(t){return void 0===t?[]:C(t)}function j(t,r,i){var e,n;if(L(t))return t(r,i.data);var o={};try{for(var s=f(Object.keys(t)),c=s.next();!c.done;c=s.next()){var a=c.value,u=t[a];o[a]=L(u)?u(r,i.data):u}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return o}function _(t){return t instanceof Promise||!(null===t||!L(t)&&"object"!=typeof t||!L(t.then))}function N(t,r){var i,e,n=d([[],[]],2),o=n[0],s=n[1];try{for(var c=f(t),a=c.next();!a.done;a=c.next()){var u=a.value;r(u)?o.push(u):s.push(u)}}catch(t){i={error:t}}finally{try{a&&!a.done&&(e=c.return)&&e.call(c)}finally{if(i)throw i.error}}return[o,s]}function M(t,r){return x(t.states,(function(t,i){if(t){var e=(I(r)?void 0:r[i])||(t?t.current:void 0);if(e)return{current:e,states:M(t,e)}}}))}function T(t){return Array.isArray(t)}function L(t){return"function"==typeof t}function I(t){return"string"==typeof t}function D(t,r){if(t)return I(t)?{type:"xstate.guard",name:t,predicate:r?r[t]:void 0}:L(t)?{type:"xstate.guard",name:t.name,predicate:t}:t}function V(t){try{return"subscribe"in t&&L(t.subscribe)}catch(t){return!1}}var A,P,J=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function U(t){try{return"__xstatenode"in t}catch(t){return!1}}function B(t,r){return I(t)||"number"==typeof t?u({type:t},r):t}function K(t,r){if(!I(t)&&"$$type"in t&&"scxml"===t.$$type)return t;var i=B(t);return u({name:i.type,data:i,$$type:"scxml",type:"external"},r)}function W(t,r){return C(r).map((function(r){return void 0===r||"string"==typeof r||U(r)?{target:r,event:t}:u(u({},r),{event:t})}))}function $(t,r,i,e,n){var o=t.options.guards,s={state:n,cond:r,_event:e};if("xstate.guard"===r.type)return r.predicate(i,e.data,s);var c=o[r.type];if(!c)throw new Error("Guard '"+r.type+"' is not implemented on machine '"+t.id+"'.");return c(i,e.data,s)}function F(t){return"string"==typeof t?{type:t}:t}!function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"}(A||(A={})),function(t){t.Parent="#_parent",t.Internal="#_internal"}(P||(P={}));var R=A.Start,H=A.Stop,Y=A.Raise,q=A.Send,G=A.Cancel,Q=A.NullEvent,X=A.Assign,Z=A.Log,tt=A.Invoke,rt=A.ErrorPlatform,it=A.ErrorCustom,et=A.Update,nt=A.Choose,ot=A.Pure,st=K({type:A.Init});function ct(t,r){return r&&r[t]||void 0}function at(t,r){var i;if(I(t)||"number"==typeof t){var e=ct(t,r);i=L(e)?{type:t,exec:e}:e||{type:t,exec:void 0}}else if(L(t))i={type:t.name||t.toString(),exec:t};else if(L(e=ct(t.type,r)))i=u(u({},t),{exec:e});else if(e){var n=e.type||t.type;i=u(u(u({},e),t),{type:n})}else i=t;return Object.defineProperty(i,"toString",{value:function(){return i.type},enumerable:!1,configurable:!0}),i}var ut=function(t,r){return t?(T(t)?t:[t]).map((function(t){return at(t,r)})):[]};function lt(t){var r=at(t);return u(u({id:I(t)?t:r.id},r),{type:r.type})}function ft(t){return I(t)?{type:Y,event:t}:dt(t,{to:P.Internal})}function dt(t,r){return{to:r?r.to:void 0,type:q,event:L(t)?t:B(t),delay:r?r.delay:void 0,id:r&&void 0!==r.id?r.id:L(t)?t.name:y(t)}}function pt(t,r){var i=A.DoneState+"."+t;return{type:i,data:r,toString:function(){return i}}}function ht(t,r){var i=A.DoneInvoke+"."+t;return{type:i,data:r,toString:function(){return i}}}function vt(t,r){var i=A.ErrorPlatform+"."+t;return{type:i,data:r,toString:function(){return i}}}function mt(t,r,i,e,n){var o=d(N(n,(function(t){return t.type===X})),2),s=o[0],c=o[1],a=s.length?function(t,r,i,e){return t?i.reduce((function(t,i){var n,o,s=i.assignment,c={state:e,action:i,_event:r},a={};if(L(s))a=s(t,r.data,c);else try{for(var u=f(v(s)),l=u.next();!l.done;l=u.next()){var d=l.value,p=s[d];a[d]=L(p)?p(t,r.data,c):p}}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}return Object.assign({},t,a)}),t):t}(i,e,s,r):i;return[z(c.map((function(i){var n;switch(i.type){case Y:return{type:Y,_event:K(i.event)};case q:return function(t,r,i,e){var n,o={_event:i},s=K(L(t.event)?t.event(r,i.data,o):t.event);if(I(t.delay)){var c=e&&e[t.delay];n=L(c)?c(r,i.data,o):c}else n=L(t.delay)?t.delay(r,i.data,o):t.delay;var a=L(t.to)?t.to(r,i.data,o):t.to;return u(u({},t),{to:a,_event:s,event:s.data,delay:n})}(i,a,e,t.options.delays);case Z:return function(t,r,i){return u(u({},t),{value:I(t.expr)?t.expr:t.expr(r,i.data,{_event:i})})}(i,a,e);case nt:if(!(s=null===(n=i.conds.find((function(i){var n=D(i.cond,t.options.guards);return!n||$(t,n,a,e,r)})))||void 0===n?void 0:n.actions))return[];var o=mt(t,r,a,e,ut(E(s),t.options.actions));return a=o[1],o[0];case ot:var s;return(s=i.get(a,e.data))?(o=mt(t,r,a,e,ut(E(s),t.options.actions)),a=o[1],o[0]):[];case H:return function(t,r,i){var e=L(t.activity)?t.activity(r,i.data):t.activity;return{type:A.Stop,activity:"string"==typeof e?{id:e}:e}}(i,a,e);default:return at(i,t.options.actions)}}))),a]}var yt=function(t){return"atomic"===t.type||"final"===t.type};function gt(t){return v(t.states).map((function(r){return t.states[r]}))}function wt(t){var r=[t];return yt(t)?r:r.concat(z(gt(t).map(wt)))}function bt(t,r){var i,e,n,o,s,c,a,u,l=St(new Set(t)),d=new Set(r);try{for(var p=f(d),h=p.next();!h.done;h=p.next())for(var v=(O=h.value).parent;v&&!d.has(v);)d.add(v),v=v.parent}catch(t){i={error:t}}finally{try{h&&!h.done&&(e=p.return)&&e.call(p)}finally{if(i)throw i.error}}var m=St(d);try{for(var y=f(d),g=y.next();!g.done;g=y.next())if("compound"!==(O=g.value).type||m.get(O)&&m.get(O).length){if("parallel"===O.type)try{for(var w=(s=void 0,f(gt(O))),b=w.next();!b.done;b=w.next()){var x=b.value;"history"!==x.type&&(d.has(x)||(d.add(x),l.get(x)?l.get(x).forEach((function(t){return d.add(t)})):x.initialStateNodes.forEach((function(t){return d.add(t)}))))}}catch(t){s={error:t}}finally{try{b&&!b.done&&(c=w.return)&&c.call(w)}finally{if(s)throw s.error}}}else l.get(O)?l.get(O).forEach((function(t){return d.add(t)})):O.initialStateNodes.forEach((function(t){return d.add(t)}))}catch(t){n={error:t}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(n)throw n.error}}try{for(var S=f(d),k=S.next();!k.done;k=S.next()){var O;for(v=(O=k.value).parent;v&&!d.has(v);)d.add(v),v=v.parent}}catch(t){a={error:t}}finally{try{k&&!k.done&&(u=S.return)&&u.call(S)}finally{if(a)throw a.error}}return d}function xt(t,r){var i=r.get(t);if(!i)return{};if("compound"===t.type){var e=i[0];if(!e)return{};if(yt(e))return e.key}var n={};return i.forEach((function(t){n[t.key]=xt(t,r)})),n}function St(t){var r,i,e=new Map;try{for(var n=f(t),o=n.next();!o.done;o=n.next()){var s=o.value;e.has(s)||e.set(s,[]),s.parent&&(e.has(s.parent)||e.set(s.parent,[]),e.get(s.parent).push(s))}}catch(t){r={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}return e}function kt(t,r){return xt(t,St(bt([t],r)))}function Ot(t,r){return Array.isArray(t)?t.some((function(t){return t===r})):t instanceof Set&&t.has(r)}function zt(t,r){return"compound"===r.type?gt(r).some((function(r){return"final"===r.type&&Ot(t,r)})):"parallel"===r.type&&gt(r).every((function(r){return zt(t,r)}))}function Ct(t,r){if(t===r)return!0;if(void 0===t||void 0===r)return!1;if(I(t)||I(r))return t===r;var i=v(t),e=v(r);return i.length===e.length&&i.every((function(i){return Ct(t[i],r[i])}))}var Et=function(){function t(t){var r=this;this.actions=[],this.activities=h,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||h,this.meta=t.meta||{},this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,Object.defineProperty(this,"nextEvents",{get:function(){return z(p(new Set(r.configuration.map((function(t){return t.ownEvents})))))}})}return t.from=function(r,i){return r instanceof t?r.context!==i?new t({value:r.value,context:i,_event:r._event,_sessionid:null,historyValue:r.historyValue,history:r.history,actions:[],activities:r.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):r:new t({value:r,context:i,_event:st,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(r){return new t(r)},t.inert=function(r,i){return r instanceof t?r.actions.length?new t({value:r.value,context:i,_event:st,_sessionid:null,historyValue:r.historyValue,history:r.history,activities:r.activities,configuration:r.configuration,transitions:[],children:{}}):r:t.from(r,i)},t.prototype.toStrings=function(t,r){var i=this;if(void 0===t&&(t=this.value),void 0===r&&(r="."),I(t))return[t];var e=v(t);return e.concat.apply(e,p(e.map((function(e){return i.toStrings(t[e],r).map((function(t){return e+r+t}))}))))},t.prototype.toJSON=function(){return l(this,["configuration","transitions"])},t.prototype.matches=function(t){return m(t,this.value)},t}(),jt=function(t,r){return r(t)};function _t(t){return{id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},toJSON:function(){return{id:t}}}}function Nt(t){return u(u({type:tt},t),{toJSON:function(){var r,i=l(t,["onDone","onError"]);return u(u({},i),{type:tt,src:(r=t.src,"string"==typeof r?{type:r,toString:function(){return r}}:r)})}})}var Mt={},Tt=function(t){return"#"===t[0]},Lt=function(){function t(r,i,e){var n=this;this.config=r,this.context=e,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},i),this.parent=this.options._parent,this.key=this.config.key||this.options._key||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||p([this.machine.key],this.path).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&v(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.initial=this.config.initial,this.states=this.config.states?x(this.config.states,(function(r,i){var e,o=new t(r,{_parent:n,_key:i});return Object.assign(n.idMap,u(((e={})[o.id]=o,e),o.idMap)),o})):Mt;var o=0;!function t(r){var i,e;r.order=o++;try{for(var n=f(gt(r)),s=n.next();!s.done;s=n.next())t(s.value)}catch(t){i={error:t}}finally{try{s&&!s.done&&(e=n.return)&&e.call(n)}finally{if(i)throw i.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(t){return""===t.event})):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=E(this.config.entry||this.config.onEntry).map((function(t){return at(t)})),this.onExit=E(this.config.exit||this.config.onExit).map((function(t){return at(t)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=E(this.config.invoke).map((function(t,r){var i,e;if(U(t))return n.machine.options.services=u(((i={})[t.id]=t,i),n.machine.options.services),Nt({src:t.id,id:t.id});if(I(t.src))return Nt(u(u({},t),{id:t.id||t.src,src:t.src}));if(U(t.src)||L(t.src)){var o=n.id+":invocation["+r+"]";return n.machine.options.services=u(((e={})[o]=t.src,e),n.machine.options.services),Nt(u(u({id:o},t),{src:o}))}var s=t.src;return Nt(u(u({id:s.type},t),{src:s}))})),this.activities=E(this.config.activities).concat(this.invoke).map((function(t){return lt(t)})),this.transition=this.transition.bind(this)}return t.prototype._init=function(){this.__cache.transitions||wt(this).forEach((function(t){return t.on}))},t.prototype.withConfig=function(r,i){void 0===i&&(i=this.context);var e=this.options,n=e.activities,o=e.guards,s=e.services,c=e.delays;return new t(this.config,{actions:u(u({},e.actions),r.actions),activities:u(u({},n),r.activities),guards:u(u({},o),r.guards),services:u(u({},s),r.services),delays:u(u({},c),r.delays)},i)},t.prototype.withContext=function(r){return new t(this.config,this.options,r)},Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:x(this.states,(function(t){return t.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke}},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){return this.__cache.on?this.__cache.on:this.__cache.on=this.transitions.reduce((function(t,r){return t[r.eventType]=t[r.eventType]||[],t[r.eventType].push(r),t}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var r=""===t,i=this.transitions.filter((function(i){var e=i.eventType===t;return r?e:e||"*"===i.eventType}));return this.__cache.candidates[t]=i,i},t.prototype.getDelayedTransitions=function(){var t=this,r=this.config.after;if(!r)return[];var i=function(r,i){var e,n,o=(e=L(r)?t.id+":delay["+i+"]":r,A.After+"("+e+")"+((n=t.id)?"#"+n:""));return t.onEntry.push(dt(o,{delay:r})),t.onExit.push({type:G,sendId:o}),o};return(T(r)?r.map((function(t,r){var e=i(t.delay,r);return u(u({},t),{event:e})})):z(v(r).map((function(t,e){var n=r[t],o=I(n)?{target:n}:n,s=isNaN(+t)?t:+t,c=i(s,e);return E(o).map((function(t){return u(u({},t),{event:c,delay:s})}))})))).map((function(r){var i=r.delay;return u(u({},t.formatTransition(r)),{delay:i})}))},t.prototype.getStateNodes=function(t){var r,i=this;if(!t)return[];var e=t instanceof Et?t.value:w(t,this.delimiter);if(I(e)){var n=this.getStateNode(e).initial;return void 0!==n?this.getStateNodes(((r={})[e]=n,r)):[this.states[e]]}var o=v(e);return o.map((function(t){return i.getStateNode(t)})).concat(o.reduce((function(t,r){var n=i.getStateNode(r).getStateNodes(e[r]);return t.concat(n)}),[]))},t.prototype.handles=function(t){var r=y(t);return this.events.includes(r)},t.prototype.resolveState=function(t){var r=Array.from(bt([],this.getStateNodes(t.value)));return new Et(u(u({},t),{value:this.resolve(t.value),configuration:r,done:zt(r,this)}))},t.prototype.transitionLeafNode=function(t,r,i){var e=this.getStateNode(t).next(r,i);return e&&e.transitions.length?e:this.next(r,i)},t.prototype.transitionCompoundNode=function(t,r,i){var e=v(t),n=this.getStateNode(e[0])._transition(t[e[0]],r,i);return n&&n.transitions.length?n:this.next(r,i)},t.prototype.transitionParallelNode=function(t,r,i){var e,n,o={};try{for(var s=f(v(t)),c=s.next();!c.done;c=s.next()){var a=c.value,u=t[a];if(u){var l=this.getStateNode(a)._transition(u,r,i);l&&(o[a]=l)}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}var d=v(o).map((function(t){return o[t]})),p=z(d.map((function(t){return t.transitions})));if(!d.some((function(t){return t.transitions.length>0})))return this.next(r,i);var h=z(d.map((function(t){return t.entrySet}))),m=z(v(o).map((function(t){return o[t].configuration})));return{transitions:p,entrySet:h,exitSet:z(d.map((function(t){return t.exitSet}))),configuration:m,source:r,actions:z(v(o).map((function(t){return o[t].actions})))}},t.prototype._transition=function(t,r,i){return I(t)?this.transitionLeafNode(t,r,i):1===v(t).length?this.transitionCompoundNode(t,r,i):this.transitionParallelNode(t,r,i)},t.prototype.next=function(t,r){var i,e,n,o=this,s=r.name,c=[],a=[];try{for(var u=f(this.getCandidates(s)),l=u.next();!l.done;l=u.next()){var d=l.value,h=d.cond,v=d.in,y=t.context,g=!v||(I(v)&&Tt(v)?t.matches(w(this.getStateNodeById(v).path,this.delimiter)):m(w(v,this.delimiter),k(this.path.slice(0,-2))(t.value))),b=!1;try{b=!h||$(this.machine,h,y,r,t)}catch(t){throw new Error("Unable to evaluate guard '"+(h.name||h.type)+"' in transition for event '"+s+"' in state node '"+this.id+"':\n"+t.message)}if(b&&g){void 0!==d.target&&(a=d.target),c.push.apply(c,p(d.actions)),n=d;break}}}catch(t){i={error:t}}finally{try{l&&!l.done&&(e=u.return)&&e.call(u)}finally{if(i)throw i.error}}if(n){if(!a.length)return{transitions:[n],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:c};var x=z(a.map((function(r){return o.getRelativeStateNodes(r,t.historyValue)}))),S=!!n.internal;return{transitions:[n],entrySet:S?[]:z(x.map((function(t){return o.nodesFromChild(t)}))),exitSet:S?[]:[this],configuration:x,source:t,actions:c}}},t.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var r=[],i=t;i&&i!==this;)r.push(i),i=i.parent;return r.push(this),r},t.prototype.escapes=function(t){if(this===t)return!1;for(var r=this.parent;r;){if(r===t)return!1;r=r.parent}return!0},t.prototype.getActions=function(t,r,i,e){var n,o,s,c,a=bt([],e?this.getStateNodes(e.value):[this]),u=t.configuration.length?bt(a,t.configuration):a;try{for(var l=f(u),h=l.next();!h.done;h=l.next())Ot(a,y=h.value)||t.entrySet.push(y)}catch(t){n={error:t}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}try{for(var v=f(a),m=v.next();!m.done;m=v.next()){var y;Ot(u,y=m.value)&&!Ot(t.exitSet,y.parent)||t.exitSet.push(y)}}catch(t){s={error:t}}finally{try{m&&!m.done&&(c=v.return)&&c.call(v)}finally{if(s)throw s.error}}t.source||(t.exitSet=[],t.entrySet.push(this));var g=z(t.entrySet.map((function(e){var n=[];if("final"!==e.type)return n;var o=e.parent;if(!o.parent)return n;n.push(pt(e.id,e.doneData),pt(o.id,e.doneData?j(e.doneData,r,i):void 0));var s=o.parent;return"parallel"===s.type&&gt(s).every((function(r){return zt(t.configuration,r)}))&&n.push(pt(s.id)),n})));t.exitSet.sort((function(t,r){return r.order-t.order})),t.entrySet.sort((function(t,r){return t.order-r.order}));var w=new Set(t.entrySet),b=new Set(t.exitSet),x=d([z(Array.from(w).map((function(t){return p(t.activities.map((function(t){return function(t){var r=lt(t);return{type:A.Start,activity:r,exec:void 0}}(t)})),t.onEntry)}))).concat(g.map(ft)),z(Array.from(b).map((function(t){return p(t.onExit,t.activities.map((function(t){return function(t){var r=L(t)?t:lt(t);return{type:A.Stop,activity:r,exec:void 0}}(t)})))})))],2),S=x[0];return ut(x[1].concat(t.actions).concat(S),this.machine.options.actions)},t.prototype.transition=function(t,r,i){void 0===t&&(t=this.initialState);var e,n=K(r);if(t instanceof Et)e=void 0===i?t:this.resolveState(Et.from(t,i));else{var o=I(t)?this.resolve(b(this.getResolvedPath(t))):this.resolve(t);e=this.resolveState(Et.from(o,i||this.machine.context))}if(this.strict&&!this.events.includes(n.name)&&!/^(done|error)\./.test(n.name))throw new Error("Machine '"+this.id+"' does not accept event '"+n.name+"'");var s=this._transition(e.value,e,n)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:e,actions:[]},c=bt([],this.getStateNodes(e.value)),a=s.configuration.length?bt(c,s.configuration):c;return s.configuration=p(a),this.resolveTransition(s,e,n)},t.prototype.resolveRaisedTransition=function(t,r,i){var e,n=t.actions;return(t=this.transition(t,r))._event=i,t.event=i.data,(e=t.actions).unshift.apply(e,p(n)),t},t.prototype.resolveTransition=function(t,r,i,e){var n,o,s=this;void 0===i&&(i=st),void 0===e&&(e=this.machine.context);var c=t.configuration,a=!r||t.transitions.length>0?kt(this.machine,c):void 0,l=r?r.historyValue?r.historyValue:t.source?this.machine.historyValue(r.value):void 0:void 0,p=r?r.context:e,h=this.getActions(t,p,i,r),v=r?u({},r.activities):{};try{for(var m=f(h),y=m.next();!y.done;y=m.next()){var g=y.value;g.type===R?v[g.activity.id||g.activity.type]=g:g.type===H&&(v[g.activity.id||g.activity.type]=!1)}}catch(t){n={error:t}}finally{try{y&&!y.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}var w,b,x=d(mt(this,r,p,i,h),2),S=x[0],k=x[1],O=d(N(S,(function(t){return t.type===Y||t.type===q&&t.to===P.Internal})),2),z=O[0],C=O[1],E=S.filter((function(t){var r;return t.type===R&&(null===(r=t.activity)||void 0===r?void 0:r.type)===tt})).reduce((function(t,r){return t[r.activity.id]=function(t,r,i,e){var n,o=F(t.src),s=null===(n=null==r?void 0:r.options.services)||void 0===n?void 0:n[o.type],c=t.data?j(t.data,i,e):void 0,a=s?function(t,r,i){var e=_t(r);return e.deferred=!0,U(t)&&(e.state=jt(void 0,(function(){return(i?t.withContext(i):t).initialState}))),e}(s,t.id,c):_t(t.id);return a.meta=t,a}(r.activity,s.machine,k,i),t}),r?u({},r.children):{}),_=a?t.configuration:r?r.configuration:[],T=_.reduce((function(t,r){return void 0!==r.meta&&(t[r.id]=r.meta),t}),{}),L=zt(_,this),I=new Et({value:a||r.value,context:k,_event:i,_sessionid:r?r._sessionid:null,historyValue:a?l?(w=l,b=a,{current:b,states:M(w,b)}):void 0:r?r.historyValue:void 0,history:!a||t.source?r:void 0,actions:a?C:[],activities:a?v:r?r.activities:{},meta:a?T:r?r.meta:void 0,events:[],configuration:_,transitions:t.transitions,children:E,done:L}),D=p!==k;I.changed=i.name===et||D;var V=I.history;if(V&&delete V.history,!a)return I;var A=I;if(!L)for((this._transient||c.some((function(t){return t._transient})))&&(A=this.resolveRaisedTransition(A,{type:Q},i));z.length;){var J=z.shift();A=this.resolveRaisedTransition(A,J._event,i)}var B=A.changed||(V?!!A.actions.length||D||typeof V.value!=typeof A.value||!Ct(A.value,V.value):void 0);return A.changed=B,A.history=V,A},t.prototype.getStateNode=function(t){if(Tt(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '"+t+"' from '"+this.id+"'; no child states exist.");var r=this.states[t];if(!r)throw new Error("Child state '"+t+"' does not exist on '"+this.id+"'");return r},t.prototype.getStateNodeById=function(t){var r=Tt(t)?t.slice("#".length):t;if(r===this.id)return this;var i=this.machine.idMap[r];if(!i)throw new Error("Child state node '#"+r+"' does not exist on machine '"+this.id+"'");return i},t.prototype.getStateNodeByPath=function(t){if("string"==typeof t&&Tt(t))try{return this.getStateNodeById(t.slice(1))}catch(t){}for(var r=g(t,this.delimiter).slice(),i=this;r.length;){var e=r.shift();if(!e.length)break;i=i.getStateNode(e)}return i},t.prototype.resolve=function(t){var r,i=this;if(!t)return this.initialStateValue||Mt;switch(this.type){case"parallel":return x(this.initialStateValue,(function(r,e){return r?i.getStateNode(e).resolve(t[e]||r):Mt}));case"compound":if(I(t)){var e=this.getStateNode(t);return"parallel"===e.type||"compound"===e.type?((r={})[t]=e.initialStateValue,r):t}return v(t).length?x(t,(function(t,r){return t?i.getStateNode(r).resolve(t):Mt})):this.initialStateValue||{};default:return t||Mt}},t.prototype.getResolvedPath=function(t){if(Tt(t)){var r=this.machine.idMap[t.slice("#".length)];if(!r)throw new Error("Unable to find state node '"+t+"'");return r.path}return g(t,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var t,r;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)r=S(this.states,(function(t){return t.initialStateValue||Mt}),(function(t){return!("history"===t.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '"+this.initial+"' not found on '"+this.key+"'");r=yt(this.states[this.initial])?this.initial:((t={})[this.initial]=this.states[this.initial].initialStateValue,t)}return this.__cache.initialStateValue=r,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(t,r){var i=this.getStateNodes(t);return this.resolveTransition({configuration:i,entrySet:i,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,void 0,r)},Object.defineProperty(t.prototype,"initialState",{get:function(){this._init();var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '"+this.id+"'.");return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var t;if("history"===this.type){var r=this.config;t=I(r.target)&&Tt(r.target)?b(this.machine.getStateNodeById(r.target).path.slice(this.path.length-1)):r.target}return t},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(t,r,i){return void 0===i&&(i=!0),i?"history"===t.type?t.resolveHistory(r):t.initialStateNodes:[t]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var t=this;return yt(this)?[this]:"compound"!==this.type||this.initial?z(O(this.initialStateValue).map((function(r){return t.getFromRelativePath(r)}))):[this]},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var r=d(t),i=r[0],e=r.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '"+i+"' from node with no states");var n=this.getStateNode(i);if("history"===n.type)return n.resolveHistory();if(!this.states[i])throw new Error("Child state '"+i+"' does not exist on '"+this.id+"'");return this.states[i].getFromRelativePath(e)},t.prototype.historyValue=function(t){if(v(this.states).length)return{current:t||this.initialStateValue,states:S(this.states,(function(r,i){if(!t)return r.historyValue();var e=I(t)?void 0:t[i];return r.historyValue(e||r.initialStateValue)}),(function(t){return!t.history}))}},t.prototype.resolveHistory=function(t){var r=this;if("history"!==this.type)return[this];var i=this.parent;if(!t){var e=this.target;return e?z(O(e).map((function(t){return i.getFromRelativePath(t)}))):i.initialStateNodes}var n,o=(n=i.path,"states",function(t){var r,i,e=t;try{for(var o=f(n),s=o.next();!s.done;s=o.next())e=e.states[s.value]}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return e})(t).current;return I(o)?[i.getStateNode(o)]:z(O(o).map((function(t){return"deep"===r.history?i.getFromRelativePath(t):[i.states[t[0]]]})))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var t=this,r=z(v(this.states).map((function(r){return t.states[r].stateIds})));return[this.id].concat(r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){var t,r,i,e;if(this.__cache.events)return this.__cache.events;var n=this.states,o=new Set(this.ownEvents);if(n)try{for(var s=f(v(n)),c=s.next();!c.done;c=s.next()){var a=n[c.value];if(a.states)try{for(var u=(i=void 0,f(a.events)),l=u.next();!l.done;l=u.next())o.add(""+l.value)}catch(t){i={error:t}}finally{try{l&&!l.done&&(e=u.return)&&e.call(u)}finally{if(i)throw i.error}}}}catch(r){t={error:r}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter((function(t){return!(!t.target&&!t.actions.length&&t.internal)})).map((function(t){return t.eventType})));return Array.from(t)},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(t){var r=this;if(void 0!==t)return t.map((function(t){if(!I(t))return t;var i=t[0]===r.delimiter;if(i&&!r.parent)return r.getStateNodeByPath(t.slice(1));var e=i?r.key+t:t;if(!r.parent)return r.getStateNodeByPath(e);try{return r.parent.getStateNodeByPath(e)}catch(t){throw new Error("Invalid transition definition for state node '"+r.id+"':\n"+t.message)}}))},t.prototype.formatTransition=function(t){var r=this,i=function(t){if(void 0!==t&&""!==t)return E(t)}(t.target),e="internal"in t?t.internal:!i||i.some((function(t){return I(t)&&t[0]===r.delimiter})),n=this.machine.options.guards,o=this.resolveTarget(i),s=u(u({},t),{actions:ut(E(t.actions)),cond:D(t.cond,n),target:o,source:this,internal:e,eventType:t.event,toJSON:function(){return u(u({},s),{target:s.target?s.target.map((function(t){return"#"+t.id})):void 0,source:"#"+r.id})}});return s},t.prototype.formatTransitions=function(){var t,r,i,e=this;if(this.config.on)if(Array.isArray(this.config.on))i=this.config.on;else{var n=this.config.on,o=n["*"],s=void 0===o?[]:o,c=l(n,["*"]);i=z(v(c).map((function(t){return W(t,c[t])})).concat(W("*",s)))}else i=[];var a=this.config.always?W("",this.config.always):[],u=this.config.onDone?W(String(pt(this.id)),this.config.onDone):[],d=z(this.invoke.map((function(t){var r=[];return t.onDone&&r.push.apply(r,p(W(String(ht(t.id)),t.onDone))),t.onError&&r.push.apply(r,p(W(String(vt(t.id)),t.onError))),r}))),h=this.after,m=z(p(u,d,i,a).map((function(t){return E(t).map((function(t){return e.formatTransition(t)}))})));try{for(var y=f(h),g=y.next();!g.done;g=y.next())m.push(g.value)}catch(r){t={error:r}}finally{try{g&&!g.done&&(r=y.return)&&r.call(y)}finally{if(t)throw t.error}}return m},t}(),It={deferEvents:!1},Dt=function(){function t(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=u(u({},It),t)}return t.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents)return void this.schedule(t);this.process(t)}this.flushEvents()},t.prototype.schedule=function(t){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()}else this.queue.push(t)},t.prototype.clear=function(){this.queue=[]},t.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},t.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(t){throw this.clear(),t}finally{this.processingEvent=!1}},t}(),Vt=new Map,At=0;function Pt(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0}var Jt,Ut={sync:!1,autoForward:!1};!function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"}(Jt||(Jt={}));var Bt=function(){function t(r,i){var e=this;void 0===i&&(i=t.defaultOptions),this.machine=r,this.scheduler=new Dt,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=Jt.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(t,r){if(T(t))return e.batch(t),e.state;var i=K(B(t,r));if(e.status===Jt.Stopped)return e.state;if(e.status!==Jt.Running&&!e.options.deferEvents)throw new Error('Event "'+i.name+'" was sent to uninitialized service "'+e.machine.id+'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: '+JSON.stringify(i.data));return e.scheduler.schedule((function(){e.forward(i);var t=e.nextState(i);e.update(t,i)})),e._state},this.sendTo=function(t,r){var i,n=e.parent&&(r===P.Parent||e.parent.id===r),o=n?e.parent:I(r)?e.children.get(r)||function(t){return Vt.get(t)}(r):(i=r)&&"function"==typeof i.send?r:void 0;if(o)o.send("machine"in o?u(u({},t),{name:t.name===it?""+vt(e.id):t.name,origin:e.sessionId}):t.data);else if(!n)throw new Error("Unable to send event to child '"+r+"' from service '"+e.id+"'.")};var n=u(u({},t.defaultOptions),i),o=n.clock,s=n.logger,c=n.parent,a=n.id;this.id=void 0!==a?a:r.id,this.logger=s,this.clock=o,this.parent=c,this.options=n,this.scheduler=new Dt({deferEvents:this.options.deferEvents}),this.sessionId="x:"+At++}return Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:jt(this,(function(){return t._initialState=t.machine.initialState,t._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),t.prototype.execute=function(t,r){var i,e;try{for(var n=f(t.actions),o=n.next();!o.done;o=n.next())this.exec(o.value,t,r)}catch(t){i={error:t}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(i)throw i.error}}},t.prototype.update=function(t,r){var i,e,n,o,s,c,a,u,l=this;if(t._sessionid=this.sessionId,this._state=t,this.options.execute&&this.execute(this.state),this.children.forEach((function(t){l.state.children[t.id]=t})),this.devTools&&this.devTools.send(r.data,t),t.event)try{for(var d=f(this.eventListeners),p=d.next();!p.done;p=d.next())(0,p.value)(t.event)}catch(t){i={error:t}}finally{try{p&&!p.done&&(e=d.return)&&e.call(d)}finally{if(i)throw i.error}}try{for(var h=f(this.listeners),v=h.next();!v.done;v=h.next())(0,v.value)(t,t.event)}catch(t){n={error:t}}finally{try{v&&!v.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}try{for(var m=f(this.contextListeners),y=m.next();!y.done;y=m.next())(0,y.value)(this.state.context,this.state.history?this.state.history.context:void 0)}catch(t){s={error:t}}finally{try{y&&!y.done&&(c=m.return)&&c.call(m)}finally{if(s)throw s.error}}var g=zt(t.configuration||[],this.machine);if(this.state.configuration&&g){var w=t.configuration.find((function(t){return"final"===t.type&&t.parent===l.machine})),b=w&&w.doneData?j(w.doneData,t.context,r):void 0;try{for(var x=f(this.doneListeners),S=x.next();!S.done;S=x.next())(0,S.value)(ht(this.id,b))}catch(t){a={error:t}}finally{try{S&&!S.done&&(u=x.return)&&u.call(x)}finally{if(a)throw a.error}}this.stop()}},t.prototype.onTransition=function(t){return this.listeners.add(t),this.status===Jt.Running&&t(this.state,this.state.event),this},t.prototype.subscribe=function(t,r,i){var e,n=this;if(!t)return{unsubscribe:function(){}};var o=i;return"function"==typeof t?e=t:(e=t.next.bind(t),o=t.complete.bind(t)),this.listeners.add(e),this.status===Jt.Running&&e(this.state),o&&this.onDone(o),{unsubscribe:function(){e&&n.listeners.delete(e),o&&n.doneListeners.delete(o)}}},t.prototype.onEvent=function(t){return this.eventListeners.add(t),this},t.prototype.onSend=function(t){return this.sendListeners.add(t),this},t.prototype.onChange=function(t){return this.contextListeners.add(t),this},t.prototype.onStop=function(t){return this.stopListeners.add(t),this},t.prototype.onDone=function(t){return this.doneListeners.add(t),this},t.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},t.prototype.start=function(t){var r=this;if(this.status===Jt.Running)return this;Vt.set(this.sessionId,this),this.initialized=!0,this.status=Jt.Running;var i=void 0===t?this.initialState:jt(this,(function(){return!I(i=t)&&"value"in i&&"history"in i?r.machine.resolveState(t):r.machine.resolveState(Et.from(t,r.machine.context));var i}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){r.update(i,st)})),this},t.prototype.stop=function(){var t,r,i,e,n,o,s,c,a,u,l=this;try{for(var d=f(this.listeners),p=d.next();!p.done;p=d.next())this.listeners.delete(x=p.value)}catch(r){t={error:r}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(t)throw t.error}}try{for(var h=f(this.stopListeners),m=h.next();!m.done;m=h.next())(x=m.value)(),this.stopListeners.delete(x)}catch(t){i={error:t}}finally{try{m&&!m.done&&(e=h.return)&&e.call(h)}finally{if(i)throw i.error}}try{for(var y=f(this.contextListeners),g=y.next();!g.done;g=y.next())this.contextListeners.delete(x=g.value)}catch(t){n={error:t}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(n)throw n.error}}try{for(var w=f(this.doneListeners),b=w.next();!b.done;b=w.next()){var x;this.doneListeners.delete(x=b.value)}}catch(t){s={error:t}}finally{try{b&&!b.done&&(c=w.return)&&c.call(w)}finally{if(s)throw s.error}}if(!this.initialized)return this;this.state.configuration.forEach((function(t){var r,i;try{for(var e=f(t.definition.exit),n=e.next();!n.done;n=e.next())l.exec(n.value,l.state)}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}})),this.children.forEach((function(t){L(t.stop)&&t.stop()}));try{for(var S=f(v(this.delayedEventsMap)),k=S.next();!k.done;k=S.next())this.clock.clearTimeout(this.delayedEventsMap[k.value])}catch(t){a={error:t}}finally{try{k&&!k.done&&(u=S.return)&&u.call(S)}finally{if(a)throw a.error}}return this.scheduler.clear(),this.initialized=!1,this.status=Jt.Stopped,Vt.delete(this.sessionId),this},t.prototype.batch=function(t){var r=this;if(this.status===Jt.NotStarted&&this.options.deferEvents);else if(this.status!==Jt.Running)throw new Error(t.length+' event(s) were sent to uninitialized service "'+this.machine.id+'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.');this.scheduler.schedule((function(){var i,e,n=r.state,o=!1,s=[],c=function(t){var i=K(t);r.forward(i),n=jt(r,(function(){return r.machine.transition(n,i)})),s.push.apply(s,p(n.actions.map((function(t){return i=n,e=(r=t).exec,u(u({},r),{exec:void 0!==e?function(){return e(i.context,i.event,{action:r,state:i,_event:i._event})}:void 0});var r,i,e})))),o=o||!!n.changed};try{for(var a=f(t),l=a.next();!l.done;l=a.next())c(l.value)}catch(t){i={error:t}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(i)throw i.error}}n.changed=o,n.actions=s,r.update(n,K(t[t.length-1]))}))},t.prototype.sender=function(t){return this.send.bind(this,t)},t.prototype.nextState=function(t){var r=this,i=K(t);if(0===i.name.indexOf(rt)&&!this.state.nextEvents.some((function(t){return 0===t.indexOf(rt)})))throw i.data.data;return jt(this,(function(){return r.machine.transition(r.state,i)}))},t.prototype.forward=function(t){var r,i;try{for(var e=f(this.forwardTo),n=e.next();!n.done;n=e.next()){var o=n.value,s=this.children.get(o);if(!s)throw new Error("Unable to forward event '"+t+"' from interpreter '"+this.id+"' to nonexistant child '"+o+"'.");s.send(t)}}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}},t.prototype.defer=function(t){var r=this;this.delayedEventsMap[t.id]=this.clock.setTimeout((function(){t.to?r.sendTo(t._event,t.to):r.send(t._event)}),t.delay)},t.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},t.prototype.exec=function(t,r,i){void 0===i&&(i=this.machine.options.actions);var e=r.context,n=r._event,o=t.exec||ct(t.type,i),s=L(o)?o:o?o.exec:t.exec;if(s)try{return s(e,n.data,{action:t,state:this.state,_event:n})}catch(t){throw this.parent&&this.parent.send({type:"xstate.error",data:t}),t}switch(t.type){case q:var c=t;if("number"==typeof c.delay)return void this.defer(c);c.to?this.sendTo(c._event,c.to):this.send(c._event);break;case G:this.cancel(t.sendId);break;case R:var a=t.activity;if(!this.state.activities[a.id||a.type])break;if(a.type===A.Invoke){var u=F(a.src),l=this.machine.options.services?this.machine.options.services[u.type]:void 0,f=a.id,d=a.data,p="autoForward"in a?a.autoForward:!!a.forward;if(!l)return;var h=d?j(d,e,n):void 0,v=L(l)?l(e,n.data,{data:h,src:u}):l;_(v)?this.spawnPromise(Promise.resolve(v),f):L(v)?this.spawnCallback(v,f):V(v)?this.spawnObservable(v,f):U(v)&&this.spawnMachine(h?v.withContext(h):v,{id:f,autoForward:p})}else this.spawnActivity(a);break;case H:this.stopChild(t.activity.id);break;case Z:var m=t.label,y=t.value;m?this.logger(m,y):this.logger(y)}},t.prototype.removeChild=function(t){this.children.delete(t),this.forwardTo.delete(t),delete this.state.children[t]},t.prototype.stopChild=function(t){var r=this.children.get(t);r&&(this.removeChild(t),L(r.stop)&&r.stop())},t.prototype.spawn=function(t,r,i){if(_(t))return this.spawnPromise(Promise.resolve(t),r);if(L(t))return this.spawnCallback(t,r);if(function(t){try{return"function"==typeof t.send}catch(t){return!1}}(e=t)&&"id"in e)return this.spawnActor(t);if(V(t))return this.spawnObservable(t,r);if(U(t))return this.spawnMachine(t,u(u({},i),{id:r}));throw new Error('Unable to spawn entity "'+r+'" of type "'+typeof t+'".');var e},t.prototype.spawnMachine=function(r,i){var e=this;void 0===i&&(i={});var n=new t(r,u(u({},this.options),{parent:this,id:i.id||r.id})),o=u(u({},Ut),i);o.sync&&n.onTransition((function(t){e.send(et,{state:t,id:n.id})}));var s=n;return this.children.set(n.id,s),o.autoForward&&this.forwardTo.add(n.id),n.onDone((function(t){e.removeChild(n.id),e.send(K(t,{origin:n.id}))})).start(),s},t.prototype.spawnPromise=function(t,r){var i=this,e=!1;t.then((function(t){e||(i.removeChild(r),i.send(K(ht(r,t),{origin:r})))}),(function(t){if(!e){i.removeChild(r);var n=vt(r,t);try{i.send(K(n,{origin:r}))}catch(t){i.devTools&&i.devTools.send(n,i.state),i.machine.strict&&i.stop()}}}));var n={id:r,send:function(){},subscribe:function(r,i,e){var n=function(t,r,i){if("object"==typeof t)return t;var e=function(){};return{next:t,error:r||e,complete:i||e}}(r,i,e),o=!1;return t.then((function(t){o||(n.next(t),o||n.complete())}),(function(t){o||n.error(t)})),{unsubscribe:function(){return o=!0}}},stop:function(){e=!0},toJSON:function(){return{id:r}}};return this.children.set(r,n),n},t.prototype.spawnCallback=function(t,r){var i,e=this,n=!1,o=new Set,s=new Set;try{i=t((function(t){s.forEach((function(r){return r(t)})),n||e.send(K(t,{origin:r}))}),(function(t){o.add(t)}))}catch(t){this.send(vt(r,t))}if(_(i))return this.spawnPromise(i,r);var c={id:r,send:function(t){return o.forEach((function(r){return r(t)}))},subscribe:function(t){return s.add(t),{unsubscribe:function(){s.delete(t)}}},stop:function(){n=!0,L(i)&&i()},toJSON:function(){return{id:r}}};return this.children.set(r,c),c},t.prototype.spawnObservable=function(t,r){var i=this,e=t.subscribe((function(t){i.send(K(t,{origin:r}))}),(function(t){i.removeChild(r),i.send(K(vt(r,t),{origin:r}))}),(function(){i.removeChild(r),i.send(K(ht(r),{origin:r}))})),n={id:r,send:function(){},subscribe:function(r,i,e){return t.subscribe(r,i,e)},stop:function(){return e.unsubscribe()},toJSON:function(){return{id:r}}};return this.children.set(r,n),n},t.prototype.spawnActor=function(t){return this.children.set(t.id,t),t},t.prototype.spawnActivity=function(t){var r=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(r){var i=r(this.state.context,t);this.spawnEffect(t.id,i)}},t.prototype.spawnEffect=function(t,r){this.children.set(t,{id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:r||void 0,toJSON:function(){return{id:t}}})},t.prototype.attachDev=function(){var t=Pt();if(this.options.devTools&&t&&t.__REDUX_DEVTOOLS_EXTENSION__){var r="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(u(u({name:this.id,autoPause:!0,stateSanitizer:function(t){return{value:t.value,context:t.context,actions:t.actions}}},r),{features:u({jump:!1,skip:!1},r?r.features:void 0)}),this.machine),this.devTools.init(this.state)}},t.prototype.toJSON=function(){return{id:this.id}},t.prototype[J]=function(){return this},t.defaultOptions=function(t){return{execute:!0,deferEvents:!0,clock:{setTimeout:function(t,r){return setTimeout(t,r)},clearTimeout:function(t){return clearTimeout(t)}},logger:t.console.log.bind(console),devTools:!1}}("undefined"!=typeof self?self:global),t.interpret=Kt,t}();function Kt(t,r){return new Bt(t,r)}const Wt=({disabled:r,option:i,onRemove:e})=>{const n={};return i.chipColor&&(n.color=i.chipColor),i.chipBackgroundColor&&(n["background-color"]=i.chipBackgroundColor),t("label",{class:"wcs-select-chip",style:n,onClick:t=>t.stopImmediatePropagation()},t("div",null,i.displayText),r?null:t("div",{onClick:()=>e(i)},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"12",viewBox:"0 0 20 12",class:"chip"},t("path",{d:"M2,0 6,4 10,0 12,2 8,6 12,10 10,12 6,8 2,12 0,10 4,6 0,2 2,0",fill:i.chipColor,transform:"translate(8 0)"}))))},$t={key:"select",initial:"closed",states:{closed:{entry:["close"],on:{CLICK:"opened",OPEN:"opened",OPTION_CLICKED:{actions:["selectOption"]}}},opened:{entry:["open"],on:{CLICK:"closed",CLOSE:"closed",OPTION_CLICKED:{actions:["selectOption"]}}}}};let Ft=class{constructor(t){r(this,t),this.wcsChange=i(this,"wcsChange",7),this.wcsFocus=i(this,"wcsFocus",7),this.wcsBlur=i(this,"wcsBlur",7),this.expanded=!1,this.hasLoaded=!1,this.disabled=!1,this.multiple=!1,this.chips=!1,this.compareWith=(t,r)=>o.isEqual(t,r),this.overlayDirection="bottom"}async open(){this.stateService.send("OPEN")}async close(){this.stateService.send("CLOSE")}onValueChangeHandler(t){this.updateSelectedValue(t),this.emitChange(this.value)}updateSelectedValue(t){t||this.reset(),this.multiple?(Array.isArray(t)||(t=[t]),this.values=[],this.options.forEach((r=>{const i=!!t&&-1!==t.findIndex((t=>this.compareWith(r.value,t)));i&&this.values.push({value:r.value,displayText:r.innerText,chipColor:r.chipColor,chipBackgroundColor:r.chipBackgroundColor}),r.selected=i})),this.displayText=0!==this.values.length?this.values.map((t=>t.displayText)).join(", "):void 0):this.options.forEach((r=>{const i=this.compareWith(r.value,t);i&&(this.displayText=r.innerText),r.selected=i}))}reset(){this.values=[],this.displayText=void 0,this.options.forEach((t=>{t.selected=!1}))}componentDidLoad(){this.optionsEl=this.el.shadowRoot.querySelector(".wcs-select-options"),this.controlEl=this.el.shadowRoot.querySelector(".wcs-select-control");const t=function(t,r,i){void 0===i&&(i=t.context);var e="function"==typeof i?i():i;return new Lt(t,r,e)}($t,this.initMachineOptions());this.stateService=Kt(t),this.multiple&&(this.values=[]),this.addRippleEffect(),this.stateService.start(),null===this.optionsEl.querySelector("slot")&&(this.replaceOptions_firefoxBefore63(),this.listenDomUpdate_firefoxBefore63()),void 0!==this.value&&this.updateSelectedValue(this.value),this.hasLoaded=!0}emitChange(t){this.wcsChange.emit({value:t})}replaceOptions_firefoxBefore63(){Array.from(this.el.querySelectorAll("wcs-select-option")).forEach((t=>{t.parentNode===this.el&&(this.el.removeChild(t),this.optionsEl.appendChild(t))}))}listenDomUpdate_firefoxBefore63(){new MutationObserver((t=>{for(const r of t)"childList"===r.type&&this.replaceOptions_firefoxBefore63()})).observe(this.el,{childList:!0})}componentWillUpdate(){this.multiple&&this.options.forEach((t=>t.multiple=!0))}get options(){var t;const r=null===(t=this.el)||void 0===t?void 0:t.querySelectorAll("wcs-select-option");return r&&0!==r.length?r:[]}initMachineOptions(){return{actions:{open:()=>{this.disabled||(this.updateOverlayDirection(),this.expanded=!0,this.focused=!0)},close:()=>{this.focused=!0,this.expanded=!1},selectOption:(t,r)=>{"OPTION_CLICKED"===r.type&&this.handleClickEvent(r.value)}},guards:{enabled:()=>!this.disabled}}}updateOverlayDirection(){const t=+getComputedStyle(this.el).getPropertyValue("--wcs-select-overlay-max-height").replace(/\D/g,""),r=+getComputedStyle(this.el).getPropertyValue("--wcs-select-option-height").replace(/\D/g,""),i=this.el.getBoundingClientRect(),e=Math.floor(t/r),n=window.innerHeight-(i.y+i.height+(this.options.length>e?t+1:this.options.length*r+1));this.overlayDirection=n<0?"top":"bottom"}updateOverlayMargin(){this.controlEl&&this.optionsEl&&(this.optionsEl.style.marginTop="top"===this.overlayDirection?"-"+this.controlEl.getBoundingClientRect().height+"px":"0")}handleClickEvent(t){this.multiple?this.handleClickOnMultiple(t):this.handleNormalClick(t)}handleClickOnMultiple(t){const r=this.values.findIndex((r=>r.value===t.value));if(-1===r){const{value:r,displayText:i,chipColor:e,chipBackgroundColor:n}=t;this.values.push({value:r,displayText:i,chipColor:e,chipBackgroundColor:n}),t.source.selected=!0}else t.source.selected=!1,this.values.splice(r,1);this.updateValueWithValues()}updateValueWithValues(){this.value=this.values.map((t=>t.value)),this.displayText=0!==this.values.length?this.values.map((t=>t.displayText)).join(", "):void 0}handleNormalClick(t){this.options.forEach((t=>{t.selected&&(t.selected=!1)})),t.source.selected=!0,this.value=t.value,this.displayText=t.displayText,this.stateService.send("CLOSE")}disconnectedCallback(){this.stateService.stop()}addRippleEffect(){new a(this.controlEl).unbounded=!1}get hasValue(){return void 0!==this.displayText}onMouseDown(t){const r=c(t.target)&&(t.offsetX>t.target.clientWidth||t.offsetY>t.target.clientHeight),i=t.composedPath().filter((t=>"svg"===t.nodeName&&t.classList.contains("chip"))).length>0;r||i||this.stateService.send("CLICK")}onWindowClickEvent(t){const r=-1!==t.composedPath().map((t=>t.nodeName)).indexOf("WCS-SELECT");this.expanded&&!r&&this.stateService.send("CLOSE")}selectedOptionChanged(t){this.sendOptionClickedToStateMachine(t.detail)}sendOptionClickedToStateMachine(t){this.stateService.send({type:"OPTION_CLICKED",value:t})}onSlotchange(){this.updateSelectedValue(this.value)}removeChip(t){this.options.forEach((r=>{r.value===t.value&&this.sendOptionClickedToStateMachine(Object.assign(Object.assign({},t),{source:r}))}))}render(){return this.hasLoaded&&this.updateStyles(),this.updateOverlayMargin(),t(e,Object.assign({class:this.expanded?"expanded ":"",overlayDirection:this.overlayDirection},this.focusedAttributes()),t("div",{class:"wcs-select-control"},this.hasValue?this.chips?this.values.map((r=>t(Wt,{disabled:this.disabled,option:r,onRemove:this.removeChip.bind(this)}))):t("label",{class:"wcs-select-value"},this.displayText):t("label",{class:"wcs-select-placeholder"},this.placeholder),t(s,{up:this.expanded})),t("div",{class:"wcs-select-options"},t("slot",{name:"wcs-select-option",onSlotchange:this.onSlotchange.bind(this)})))}updateStyles(){this.optionsEl.setAttribute("style",`width: ${Math.ceil(this.el.offsetWidth-2)}px;`)}focusedAttributes(){return this.disabled?{}:{tabIndex:0}}get el(){return n(this)}static get watchers(){return{value:["onValueChangeHandler"]}}};Ft.style='@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}:host{--wcs-select-ligther-percentage:40;--wcs-select-border-radius:var(--wcs-border-radius);--wcs-select-background-color:var(--wcs-light);--wcs-select-placeholder-color:var(--wcs-text-medium);--wcs-select-value-color:var(--wcs-primary);--wcs-select-border-color:transparent;--wcs-select-overlay-max-height:360px;--wcs-select-option-height:42px;display:block;position:relative;outline:none;user-select:none}:host svg{flex-shrink:0}:host .arrow{fill:var(--wcs-select-value-color)}:host .chip{fill:var(--wcs-contrast);opacity:calc((100 - var(--wcs-select-ligther-percentage)) / 100)}:host .chip:hover{opacity:100}:host([class~=expanded][overlaydirection=top]) .wcs-select-control{border:var(--wcs-select-border-color) solid 1px;border-top-left-radius:0;border-top-right-radius:0}:host([class~=expanded][overlaydirection=bottom]) .wcs-select-control{border:var(--wcs-select-border-color) solid 1px;border-bottom-left-radius:0;border-bottom-right-radius:0}:host(.expanded){--wcs-select-border-color:var(--wcs-text-light)}:host(.expanded) .wcs-select-options{display:block}:host(:not(.expanded):focus) .wcs-select-control{border:var(--wcs-primary) solid 1px}:host([disabled]) .wcs-select-control,:host([disabled]) label{cursor:default;pointer-events:none}:host([disabled]) label{color:var(--wcs-text-disabled)}:host([disabled]) .arrow{fill:var(--wcs-text-medium)}label{padding:calc(var(--wcs-padding) / 2) var(--wcs-padding);font-weight:500;cursor:pointer;color:var(--wcs-select-color);transition:color 125ms ease-in;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([chips]) .wcs-select-control{flex-wrap:wrap}.wcs-select-control{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;overflow:hidden;display:flex;align-items:center;padding-right:var(--wcs-text-padding);background-color:var(--wcs-select-background-color);border-radius:var(--wcs-select-border-radius);border:var(--wcs-select-border-color) solid 1px;font-size:1rem;line-height:1.5;cursor:pointer}.wcs-select-control::before,.wcs-select-control::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.wcs-select-control::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.wcs-select-control::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.wcs-select-control.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.wcs-select-control.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.wcs-select-control.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.wcs-select-control.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.wcs-select-control.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.wcs-select-control::before,.wcs-select-control::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.wcs-select-control.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.wcs-select-control::before,.wcs-select-control::after{background-color:#999;background-color:var(--mdc-ripple-color, #999)}.wcs-select-control:hover::before,.wcs-select-control.mdc-ripple-surface--hover::before{opacity:0.1;opacity:var(--mdc-ripple-hover-opacity, 0.1)}.wcs-select-control.mdc-ripple-upgraded--background-focused::before,.wcs-select-control:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.wcs-select-control:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.wcs-select-control:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.3;opacity:var(--mdc-ripple-press-opacity, 0.3)}.wcs-select-control.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.3)}.wcs-select-placeholder{color:var(--wcs-select-placeholder-color);font-style:italic;font-weight:400}.wcs-select-value{color:var(--wcs-select-value-color);font-weight:var(--wcs-font-weight-form-value)}.wcs-select-chip{color:var(--wcs-contrast);background-color:var(--wcs-base);border-radius:0.75rem;display:flex;align-items:center;margin:calc(var(--wcs-base-margin) / 2);padding:calc((var(--wcs-padding) - 8px) / 2) var(--wcs-padding);overflow:initial}:host([overlaydirection=top]) .wcs-select-options{-webkit-transform:translateY(-100%);transform:translateY(-100%);border-left:var(--wcs-select-border-color) solid 1px;border-right:var(--wcs-select-border-color) solid 1px;border-top:var(--wcs-select-border-color) solid 1px;border-top-right-radius:var(--wcs-border-radius);border-top-left-radius:var(--wcs-border-radius)}:host([overlaydirection=bottom]) .wcs-select-options{border-left:var(--wcs-select-border-color) solid 1px;border-right:var(--wcs-select-border-color) solid 1px;border-bottom:var(--wcs-select-border-color) solid 1px;border-bottom-right-radius:var(--wcs-border-radius);border-bottom-left-radius:var(--wcs-border-radius)}.wcs-select-options{display:none;position:absolute;z-index:1;margin:0;max-height:var(--wcs-select-overlay-max-height);overflow-y:auto;background-color:var(--wcs-white);color:var(--wcs-text-medium)}';let Rt=class{constructor(t){r(this,t),this.wcsSelectOptionClick=i(this,"wcsSelectOptionClick",7),this.disabled=!1,this.selected=!1,this.multiple=!1}componentWillLoad(){void 0===this.value&&(this.value=this.el.innerText||"")}componentDidLoad(){this.mdcRipple=new a(this.el)}onMouseDown(t){this.disabled||(t.stopPropagation(),this.wcsSelectOptionClick.emit({source:this.el,value:this.value,displayText:this.el.innerText}))}render(){return t(e,{slot:"wcs-select-option"},this.multiple&&t("wcs-checkbox",{checked:this.selected}),t("slot",null))}get el(){return n(this)}};Rt.style='@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}wcs-select-option{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;overflow:hidden;display:flex;padding:0 var(--wcs-padding);height:var(--wcs-select-option-height);line-height:42px;cursor:pointer;user-select:none;font-weight:500;font-size:1rem;color:var(--wcs-black)}wcs-select-option::before,wcs-select-option::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}wcs-select-option::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}wcs-select-option::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}wcs-select-option.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}wcs-select-option.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}wcs-select-option.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}wcs-select-option.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}wcs-select-option.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}wcs-select-option::before,wcs-select-option::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}wcs-select-option.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}wcs-select-option::before,wcs-select-option::after{background-color:#999;background-color:var(--mdc-ripple-color, #999)}wcs-select-option:hover::before,wcs-select-option.mdc-ripple-surface--hover::before{opacity:0.1;opacity:var(--mdc-ripple-hover-opacity, 0.1)}wcs-select-option.mdc-ripple-upgraded--background-focused::before,wcs-select-option:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}wcs-select-option:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}wcs-select-option:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.3;opacity:var(--mdc-ripple-press-opacity, 0.3)}wcs-select-option.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.3)}wcs-select-option:hover{color:var(--wcs-primary);background-color:var(--wcs-light)}wcs-select-option[disabled]{cursor:default;pointer-events:none;color:var(--wcs-text-disabled)}wcs-select-option[selected]{color:var(--wcs-primary);background-color:var(--wcs-light)}wcs-select-option[multiple] wcs-checkbox{pointer-events:none;margin-right:10px}wcs-select-option[multiple]:hover wcs-checkbox{--wcs-checkbox-border-color:var(--wcs-primary)}';export{Ft as wcs_select,Rt as wcs_select_option}
@@ -0,0 +1 @@
1
+ import{r as e,h as r,g as t}from"./p-f46e6c3c.js";import{h as i}from"./p-83f1ad32.js";import{M as a}from"./p-16dfbae8.js";let o=class{constructor(r){e(this,r),this.type="button",this.disabled=!1,this.ripple=!0,this.shape="normal",this.mode="plain"}onClick(e){if(this.disabled&&e.stopImmediatePropagation(),"button"!==this.type&&i(this.el)){const r=this.el.closest("form");if(r){e.preventDefault();const t=window.document.createElement("button");t.type=this.type,t.style.display="none",r.appendChild(t),t.click(),t.remove()}}}componentDidLoad(){this.mdcRipple=new a(this.el.shadowRoot.querySelector(".wcs-inner-button"))}enabledRippleEffect(){this.mdcRipple.disabled=!1}disabledRippleEffect(){this.mdcRipple.disabled=!0}onRippleChange(){this.ripple?this.enabledRippleEffect():this.disabledRippleEffect()}render(){return r(void 0!==this.href?"a":"button",Object.assign({},void 0!==this.href?{href:this.href,role:"button"}:{type:this.type},{class:"wcs-inner-button"},!0===this.disabled?{disabled:!0}:null),r("slot",null))}get el(){return t(this)}static get watchers(){return{ripple:["onRippleChange"]}}};o.style='@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}:host{display:inline-block;--wcs-button-padding:calc(var(--wcs-padding) / 2) var(--wcs-padding);--wcs-button-color:var(--wcs-contrast, var(--wcs-white, white));--wcs-button-background-color:var(--wcs-base, var(--wcs-primary, #0088CE));--wcs-button-ripple-color:var(--wcs-contrast, var(--wcs-white, white));--wcs-button-border-radius:var(--wcs-border-radius);--wcs-button-border-color:var(--wcs-base)}:host([mode=clear]){--wcs-button-border-color:transparent}:host([mode=clear]) .wcs-inner-button{box-shadow:none}:host([mode=clear]),:host([mode=stroked]){--wcs-button-color:var(--wcs-base);--wcs-button-background-color:transparent}:host([mode=clear]) .wcs-inner-button::before,:host([mode=clear]) .wcs-inner-button::after,:host([mode=stroked]) .wcs-inner-button::before,:host([mode=stroked]) .wcs-inner-button::after{--wcs-button-ripple-color:var(--wcs-base)}:host([shape=small]){--wcs-button-padding:2px 16px}:host([shape=round]){--wcs-button-padding:0;--wcs-button-border-radius:50%}:host([shape=round]) .wcs-inner-button{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px}:host([shape=square]){--wcs-button-padding:0}:host([shape=square]) .wcs-inner-button{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px}:host([shape=normal]){--wcs-button-padding:calc(var(--wcs-padding) / 2 + 1px) calc(var(--wcs-padding))}:host([mode=stroked]) .wcs-inner-button{box-shadow:inset 0 0 0 1px var(--wcs-button-border-color)}:host([disabled]){--wcs-button-color:var(--wcs-text-disabled);--wcs-button-background-color:var(--wcs-light)}:host([disabled]) .wcs-inner-button{--wcs-button-border-color:var(--wcs-light);opacity:1;cursor:default;pointer-events:none}:host([disabled]):host([mode=clear]),:host([disabled]):host([disabled]){--wcs-button-background-color:transparent}.wcs-inner-button{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;display:flex;align-content:center;font-family:var(--wcs-font-sans-serif);background-color:var(--wcs-button-background-color);color:var(--wcs-button-color);padding:var(--wcs-button-padding);border-radius:var(--wcs-button-border-radius);border:none;overflow:hidden;outline:0;text-transform:none;margin:0;cursor:pointer;font-weight:500;text-align:center;white-space:nowrap;vertical-align:middle;user-select:none;font-size:1rem;line-height:1.5;transition:color 175ms ease-in-out, background-color 175ms ease-in-out, box-shadow 175ms cubic-bezier(0.4, 0, 0.2, 1)}.wcs-inner-button::before,.wcs-inner-button::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.wcs-inner-button::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.wcs-inner-button::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.wcs-inner-button.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.wcs-inner-button.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.wcs-inner-button.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.wcs-inner-button.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.wcs-inner-button.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.wcs-inner-button::before,.wcs-inner-button::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.wcs-inner-button.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.wcs-inner-button:hover::before,.wcs-inner-button.mdc-ripple-surface--hover::before{opacity:0.1;opacity:var(--mdc-ripple-hover-opacity, 0.1)}.wcs-inner-button.mdc-ripple-upgraded--background-focused::before,.wcs-inner-button:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.wcs-inner-button:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.wcs-inner-button:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.3;opacity:var(--mdc-ripple-press-opacity, 0.3)}.wcs-inner-button.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.3)}.wcs-inner-button::before,.wcs-inner-button::after{background-color:white;background-color:var(--mdc-ripple-color, white)}.wcs-inner-button::before,.wcs-inner-button::after{background-color:var(--wcs-button-ripple-color)}.wcs-inner-button:focus{box-shadow:0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12), 0 1px 3px 0 rgba(0, 0, 0, 0.2)}.wcs-inner-button:hover{box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2)}a{text-decoration:none}button::-moz-focus-inner,a::-moz-focus-inner{border:0}';export{o as wcs_button}
@@ -0,0 +1 @@
1
+ import{r as t,h as s,H as o,g as a}from"./p-f46e6c3c.js";let i=class{constructor(s){t(this,s),this.hasTabs=!1}componentWillLoad(){this.hasTabs=!!this.el.querySelector('[slot="tabs"]')}render(){return s(o,null,s("div",{class:"title-actions","data-has-tabs":this.hasTabs},s("h1",null,s("slot",null)),s("div",{class:"actions"},s("slot",{name:"actions"}))),s("div",{class:"tabs-container"},s("slot",{name:"tabs"})))}get el(){return a(this)}};i.style=":host{padding:0 var(--wcs-padding);min-height:81px;background-color:var(--wcs-white);box-sizing:border-box;display:flex;flex-direction:column}:host .title-actions{padding-top:16px;padding-bottom:16px;display:flex;align-items:center;justify-content:space-between;flex-grow:1}:host .title-actions[data-has-tabs]{padding-bottom:0}:host h1{font-weight:400;line-height:1.25;margin:0;color:var(--wcs-gray)}:host([gutter]){border-bottom:solid 1px var(--wcs-light)}::slotted([slot=actions]){display:flex}";export{i as wcs_action_bar}
@@ -0,0 +1 @@
1
+ import{r as t,h as e}from"./p-f46e6c3c.js";let c=class{constructor(e){t(this,e),this.size=120,this.showLabel=!1,this.value=0}render(){const{size:t,halfSize:c}={size:this.size,halfSize:this.size/2};return e("div",{class:"progress-circle","data-component":"radial-progress"},e("svg",{class:"progress-circle-figure","data-role":"figure",width:this.size,height:this.size,viewBox:`0 0 ${t} ${t}`,style:this.getSvgStyle()},e("circle",{class:"progress-circle-meter",cx:c,cy:c,r:"54","stroke-width":"12"}),e("circle",{class:"progress-circle-value",cx:c,cy:c,r:"54","stroke-width":"12"})),this.showLabel&&e("div",{class:"progress-circle-label","data-role":"label"},e("span",null,e("span",{"data-role":"labelvalue"},this.value),e("sup",null,"%"))),e("input",{"data-role":"control",class:"sr-only",type:"range",value:this.value}))}getSvgStyle(){return{"stroke-dasharray":"339.292","stroke-dashoffset":""+(339.292-this.value/100*339.292)}}};c.style=".progress-circle{position:relative;display:inline-block;width:7.5rem;height:7.5rem;background-image:url(\"data:image/svg+xml;charset=UTF-8,%3c?xml version='1.0' encoding='utf-8'?%3e%3csvg version='1.1' id='Calque_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 120 120' style='enable-background:new 0 0 120 120;' xml:space='preserve'%3e%3cstyle type='text/css'%3e .st0%7bfill:%23D7D7D7;%7d %3c/style%3e%3cg%3e%3crect x='59' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='55.2' y='0.1' transform='matrix(0.9976 -6.975647e-02 6.975647e-02 0.9976 -0.2907 3.9376)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='51.5' y='0.5' transform='matrix(0.9903 -0.1392 0.1392 0.9903 -0.3974 7.368)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='47.8' y='1.2' transform='matrix(0.9781 -0.2079 0.2079 0.9781 -0.427 10.2973)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='44.1' y='2.1' transform='matrix(0.9613 -0.2756 0.2756 0.9613 -0.4827 12.749)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='40.5' y='3.3' transform='matrix(0.9397 -0.342 0.342 0.9397 -0.6613 14.7626)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='37' y='4.7' transform='matrix(0.9135 -0.4067 0.4067 0.9135 -1.0509 16.3931)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='33.6' y='6.3' transform='matrix(0.8829 -0.4695 0.4695 0.8829 -1.7286 17.7087)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='30.4' y='8.2' transform='matrix(0.848 -0.5299 0.5299 0.848 -2.7588 18.7897)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='27.3' y='10.3' transform='matrix(0.809 -0.5878 0.5878 0.809 -4.1915 19.7261)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='24.3' y='12.6' transform='matrix(0.766 -0.6428 0.6428 0.766 -6.0608 20.6152)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='21.5' y='15.2' transform='matrix(0.7193 -0.6947 0.6947 0.7193 -8.3843 21.5593)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='18.9' y='17.9' transform='matrix(0.6691 -0.7431 0.7431 0.6691 -11.1622 22.6633)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='16.4' y='20.8' transform='matrix(0.6157 -0.788 0.788 0.6157 -14.3769 24.0315)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='14.2' y='23.8' transform='matrix(0.5592 -0.829 0.829 0.5592 -17.9939 25.7655)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='12.2' y='27' transform='matrix(0.5 -0.866 0.866 0.5 -21.9615 27.9615)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='10.5' y='30.3' transform='matrix(0.4384 -0.8988 0.8988 0.4384 -26.2122 30.7076)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='8.9' y='33.8' transform='matrix(0.3746 -0.9272 0.9272 0.3746 -30.6638 34.0815)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='7.6' y='37.3' transform='matrix(0.309 -0.9511 0.9511 0.309 -35.2211 38.1485)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='6.6' y='40.9' transform='matrix(0.2419 -0.9703 0.9703 0.2419 -39.7776 42.9595)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='5.8' y='44.6' transform='matrix(0.1736 -0.9848 0.9848 0.1736 -44.2179 48.5492)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='5.3' y='48.4' transform='matrix(0.1045 -0.9945 0.9945 0.1045 -48.42 54.9351)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='5' y='52.1' transform='matrix(3.489950e-02 -0.9994 0.9994 3.489950e-02 -52.2577 62.1164)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='0' y='60.9' transform='matrix(0.9994 -3.489950e-02 3.489950e-02 0.9994 -2.1561 0.2482)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='0.3' y='64.6' transform='matrix(0.9945 -0.1045 0.1045 0.9945 -6.8272 1.0177)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='0.8' y='68.4' transform='matrix(0.9848 -0.1736 0.1736 0.9848 -11.9436 2.2383)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='1.6' y='72.1' transform='matrix(0.9703 -0.2419 0.2419 0.9703 -17.4499 4.0099)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='2.6' y='75.7' transform='matrix(0.9511 -0.309 0.309 0.9511 -23.2745 6.4241)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='3.9' y='79.2' transform='matrix(0.9272 -0.3746 0.3746 0.9272 -29.331 9.5626)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='5.5' y='82.7' transform='matrix(0.8988 -0.4384 0.4384 0.8988 -35.5191 13.4941)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='7.2' y='86' transform='matrix(0.866 -0.5 0.5 0.866 -41.7269 18.2731)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='9.2' y='89.2' transform='matrix(0.829 -0.5592 0.5592 0.829 -47.8331 23.9378)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='11.4' y='92.2' transform='matrix(0.788 -0.6157 0.6157 0.788 -53.7091 30.5088)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='13.9' y='95.1' transform='matrix(0.7431 -0.6691 0.6691 0.7431 -59.2218 37.988)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='16.5' y='97.8' transform='matrix(0.6947 -0.7193 0.7193 0.6947 -64.236 46.3581)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='19.3' y='100.4' transform='matrix(0.6428 -0.766 0.766 0.6428 -68.6175 55.5822)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='22.3' y='102.7' transform='matrix(0.5878 -0.809 0.809 0.5878 -72.2355 65.6038)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='25.4' y='104.8' transform='matrix(0.5299 -0.848 0.848 0.5299 -74.9657 76.3475)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='28.6' y='106.7' transform='matrix(0.4695 -0.8829 0.8829 0.4695 -76.693 87.7197)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='32' y='108.3' transform='matrix(0.4067 -0.9135 0.9135 0.4067 -77.3138 99.6102)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='35.5' y='109.7' transform='matrix(0.342 -0.9397 0.9397 0.342 -76.7383 111.8932)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='39.1' y='110.9' transform='matrix(0.2756 -0.9613 0.9613 0.2756 -74.893 124.43)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='42.8' y='111.8' transform='matrix(0.2079 -0.9781 0.9781 0.2079 -71.7222 137.0703)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='46.5' y='112.5' transform='matrix(0.1392 -0.9903 0.9903 0.1392 -67.1899 149.6558)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='50.2' y='112.9' transform='matrix(6.975647e-02 -0.9976 0.9976 6.975647e-02 -61.2806 162.0216)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='59' y='108' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='62.8' y='107.9' transform='matrix(0.9976 -6.975647e-02 6.975647e-02 0.9976 -7.7877 4.7255)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='66.5' y='107.5' transform='matrix(0.9903 -0.1392 0.1392 0.9903 -15.1355 10.5006)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='70.2' y='106.8' transform='matrix(0.9781 -0.2079 0.2079 0.9781 -21.9001 17.2744)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='73.9' y='105.9' transform='matrix(0.9613 -0.2756 0.2756 0.9613 -27.9452 24.9761)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='77.5' y='104.7' transform='matrix(0.9397 -0.342 0.342 0.9397 -33.1442 33.5167)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='81' y='103.3' transform='matrix(0.9135 -0.4067 0.4067 0.9135 -37.383 42.7899)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='84.4' y='101.7' transform='matrix(0.8829 -0.4695 0.4695 0.8829 -40.5617 52.6742)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='87.6' y='99.8' transform='matrix(0.848 -0.5299 0.5299 0.848 -42.5973 63.0348)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='90.7' y='97.7' transform='matrix(0.809 -0.5878 0.5878 0.809 -43.4248 73.7261)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='93.7' y='95.4' transform='matrix(0.766 -0.6428 0.6428 0.766 -42.999 84.594)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='96.5' y='92.8' transform='matrix(0.7193 -0.6947 0.6947 0.7193 -41.2954 95.4789)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='99.1' y='90.1' transform='matrix(0.6691 -0.7431 0.7431 0.6691 -38.3109 106.2184)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='101.6' y='87.2' transform='matrix(0.6157 -0.788 0.788 0.6157 -34.0637 116.6505)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='103.8' y='84.2' transform='matrix(0.5592 -0.829 0.829 0.5592 -28.5937 126.6159)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='105.8' y='81' transform='matrix(0.5 -0.866 0.866 0.5 -21.9615 135.9615)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='107.5' y='77.7' transform='matrix(0.4384 -0.8988 0.8988 0.4384 -14.2476 144.5431)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='109.1' y='74.2' transform='matrix(0.3746 -0.9272 0.9272 0.3746 -5.5511 152.2277)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='110.4' y='70.7' transform='matrix(0.309 -0.9511 0.9511 0.309 4.0122 158.8962)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='111.4' y='67.1' transform='matrix(0.2419 -0.9703 0.9703 0.2419 14.3114 164.4454)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='112.2' y='63.4' transform='matrix(0.1736 -0.9848 0.9848 0.1736 25.2032 168.79)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='112.7' y='59.6' transform='matrix(0.1045 -0.9945 0.9945 0.1045 36.5339 171.8641)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='113' y='55.9' transform='matrix(3.489950e-02 -0.9994 0.9994 3.489950e-02 48.1428 173.6225)' class='st0' width='2' height='12'/%3e%3c/g%3e%3cg%3e%3crect x='108' y='57.1' transform='matrix(0.9994 -3.489950e-02 3.489950e-02 0.9994 -1.9588 4.0128)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='107.7' y='53.4' transform='matrix(0.9945 -0.1045 0.1045 0.9945 -5.0588 12.1831)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='107.2' y='49.6' transform='matrix(0.9848 -0.1736 0.1736 0.9848 -7.0711 20.4225)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='106.4' y='45.9' transform='matrix(0.9703 -0.2419 0.2419 0.9703 -8.0163 28.5853)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='105.4' y='42.3' transform='matrix(0.9511 -0.309 0.309 0.9511 -7.9343 36.5311)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='104.1' y='38.8' transform='matrix(0.9272 -0.3746 0.3746 0.9272 -6.8838 44.1282)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='102.5' y='35.3' transform='matrix(0.8988 -0.4384 0.4384 0.8988 -4.9408 51.2552)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='100.8' y='32' transform='matrix(0.866 -0.5 0.5 0.866 -2.1962 57.8038)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='98.8' y='28.8' transform='matrix(0.829 -0.5592 0.5592 0.829 1.2454 63.6808)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='96.6' y='25.8' transform='matrix(0.788 -0.6157 0.6157 0.788 5.2685 68.8093)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='94.1' y='22.9' transform='matrix(0.7431 -0.6691 0.6691 0.7431 9.7488 73.1303)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='91.5' y='20.2' transform='matrix(0.6947 -0.7193 0.7193 0.6947 14.5562 76.6036)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='88.7' y='17.6' transform='matrix(0.6428 -0.766 0.766 0.6428 19.5576 79.2086)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='85.7' y='15.3' transform='matrix(0.5878 -0.809 0.809 0.5878 24.6192 80.944)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='82.6' y='13.2' transform='matrix(0.5299 -0.848 0.848 0.5299 29.6096 81.828)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='79.4' y='11.3' transform='matrix(0.4695 -0.8829 0.8829 0.4695 34.4027 81.8974)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='76' y='9.7' transform='matrix(0.4067 -0.9135 0.9135 0.4067 38.8799 81.2069)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='72.5' y='8.3' transform='matrix(0.342 -0.9397 0.9397 0.342 42.9327 79.8275)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='68.9' y='7.1' transform='matrix(0.2756 -0.9613 0.9613 0.2756 46.4651 77.845)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='65.2' y='6.2' transform='matrix(0.2079 -0.9781 0.9781 0.2079 49.3951 75.358)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='61.5' y='5.5' transform='matrix(0.1392 -0.9903 0.9903 0.1392 51.657 72.4756)' class='st0' width='12' height='2'/%3e%3c/g%3e%3cg%3e%3crect x='57.8' y='5.1' transform='matrix(6.975647e-02 -0.9976 0.9976 6.975647e-02 53.2021 69.3153)' class='st0' width='12' height='2'/%3e%3c/g%3e%3c/svg%3e\")}.progress-circle-figure{transform:rotate(-90deg);transition:stroke-dashoffset 0.375s ease-out}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;clip-path:inset(50%);border:0}.progress-circle-label{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:1.5rem;font-weight:500}.progress-circle-label sup{font-size:0.875rem;top:-0.5em;position:relative;line-height:0;vertical-align:baseline}.progress-circle-meter{stroke:var(--wcs-white)}.progress-circle-value{stroke:var(--wcs-primary);stroke-linecap:round}.progress-circle-value,.progress-circle-meter{fill:none}";export{c as wcs_progress_radial}
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as o,H as a}from"./p-f46e6c3c.js";let r=class{constructor(o){s(this,o),this.tabLoaded=t(this,"tabLoaded",7)}componentDidLoad(){this.tabLoaded.emit()}render(){return o(a,{slot:"wcs-tab"},o("slot",null))}};export{r as wcs_tab}
@@ -0,0 +1 @@
1
+ import{r as t,h as r,H as e}from"./p-f46e6c3c.js";let o=class{constructor(r){t(this,r),this.required=!1}render(){return r(e,{slot:"label"},r("label",null,r("slot",null)))}};o.style=':host{font-weight:500;margin-bottom:8px}:host([required])::after{font-weight:500;color:var(--wcs-red);content:"*"}';export{o as wcs_label}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,H as o}from"./p-f46e6c3c.js";let r=class{constructor(e){t(this,e)}render(){return e(o,null,e("slot",{name:"label"}),e("slot",{name:"content"}))}};r.style=":host{display:flex;flex-direction:column;margin-top:var(--wcs-base-margin);margin-bottom:calc(var(--wcs-base-margin) * 2)}::slotted([slot=label]){font-size:1rem;line-height:1.375;font-weight:500;margin-bottom:calc(var(--wcs-base-margin) / 2);color:var(--wcs-gray-light)}::slotted([slot=content]){font-size:1rem;font-weight:400;color:var(--wcs-gray-light)}";export{r as wcs_field}
@@ -0,0 +1 @@
1
+ import{r as c,c as e,h as t,H as r,g as s}from"./p-f46e6c3c.js";let o=class{constructor(t){c(this,t),this.wcsChange=e(this,"wcsChange",7),this.checkboxId="wcs-checkbox-"+i++,this.name=this.checkboxId,this.indeterminate=!1,this.checked=!1,this.labelAlignment="center"}handleChange(c){this.indeterminate=!1,this.checked=!this.checked,this.wcsChange.emit({checked:this.checked})}render(){return t(r,null,t("label",{htmlFor:this.name,class:"wcs-container"},t("input",{onChange:c=>this.handleChange(c),checked:this.checked,class:"wcs-checkbox",type:"checkbox",name:this.name,id:this.name}),t("span",{class:"wcs-checkmark"}),t("span",{class:"text"},t("slot",null))))}get el(){return s(this)}},i=0;o.style=':host{--wcs-checkbox-border-color:var(--wcs-text-medium);--wcs-checkbox-text-color:var(--wcs-black);display:flex}.wcs-checkmark{transition:background-color 225ms cubic-bezier(0.17, 0.84, 0.44, 1), color 225ms cubic-bezier(0.17, 0.84, 0.44, 1)}.wcs-container{position:relative;cursor:pointer;font-size:1rem;user-select:none;font-weight:500;display:flex}:host([label-alignment=top]) .wcs-container{align-items:start}:host([label-alignment=center]) .wcs-container{align-items:center}:host([label-alignment=bottom]) .wcs-container{align-items:flex-end}.wcs-container input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.wcs-container:hover,input:focus{--wcs-checkbox-border-color:var(--wcs-primary);--wcs-checkbox-text-color:var(--wcs-primary)}.wcs-checkmark{width:1.125rem;height:1.125rem;border:2px solid var(--wcs-checkbox-border-color);border-radius:3px}:host([indeterminate]) .wcs-checkmark{--wcs-checkbox-border-color:var(--wcs-primary);background:var(--wcs-primary)}.wcs-container input:checked~.wcs-checkmark{background-color:var(--wcs-primary);--wcs-checkbox-border-color:var(--wcs-primary)}.wcs-checkmark:after{content:"";position:absolute;display:none}.wcs-container input:checked~.wcs-checkmark:after{display:flex}.wcs-container .wcs-checkmark:after{left:7px;width:5px;height:10px;border:solid var(--wcs-white, white);border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.wcs-container input:checked~.text{--wcs-checkbox-text-color:var(--wcs-primary)}.text{color:var(--wcs-checkbox-text-color);margin-left:6px;font-weight:500;line-height:1.375}';export{o as wcs_checkbox}
@@ -0,0 +1 @@
1
+ import{r as t,h as s,H as e}from"./p-f46e6c3c.js";let i=class{constructor(s){t(this,s),this.size="m",this.family="filled"}componentWillLoad(){this.onFamilyChange()}componentDidLoad(){this.appendMaterialStylesheet()}appendMaterialStylesheet(){let t=document.querySelector(`link[href="${this.familyFile}"]`);t||(t=document.createElement("link"),t.setAttribute("rel","stylesheet"),t.setAttribute("href",this.familyFile),document.head.appendChild(t))}onFamilyChange(){switch(this.familyFile="https://fonts.googleapis.com/icon?family=",this.family){case"filled":this.familyFile+="Material+Icons",this.familyClass="material-icons";break;case"outlined":this.familyFile+="Material+Icons+Outlined",this.familyClass="material-icons-outlined";break;case"twotone":this.familyFile+="Material+Icons+Two+Tone",this.familyClass="material-icons-two-tone";break;case"rounded":this.familyFile+="Material+Icons+Round",this.familyClass="material-icons-round";break;case"sharp":this.familyFile+="Material+Icons+Sharp",this.familyClass="material-icons-sharp"}this.appendMaterialStylesheet()}render(){return s(e,null,s("link",{rel:"stylesheet",type:"text/css",href:this.familyFile}),s("i",{class:this.familyClass+" size-"+this.size},this.icon))}static get watchers(){return{family:["onFamilyChange"]}}};i.style=":host{display:flex}:host .size-s{font-size:18px}:host .size-m{font-size:24px}:host .size-l{font-size:36px}:host .size-xl{font-size:48px}";export{i as wcs_mat_icon}
@@ -0,0 +1 @@
1
+ import{r as s,h as c}from"./p-f46e6c3c.js";let r=class{constructor(c){s(this,c)}render(){return c("i",Object.assign({},{class:{[`icons-${this.icon}`]:!0,[`icons-size-${this.size}`]:!0}}))}};export{r as wcs_icon}
@@ -0,0 +1 @@
1
+ import{r as s,h as t,H as r}from"./p-f46e6c3c.js";let c=class{constructor(t){s(this,t)}render(){return t(r,{slot:this.columnId+"-"+this.rowId},t("slot",null))}};export{c as wcs_grid_custom_cell}
@@ -0,0 +1 @@
1
+ import{r as t,h as r,H as o}from"./p-f46e6c3c.js";let s=class{constructor(r){t(this,r)}render(){return r(o,{slot:"property"},r("slot",null))}};s.style=":host{font-weight:500 !important;color:var(--wcs-gray-light)}";export{s as wcs_list_item_property}
@@ -0,0 +1 @@
1
+ import{h as n}from"./p-f46e6c3c.js";const o=({up:o})=>n("svg",{style:{marginLeft:"auto"},xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},n("style",{type:"text/css"},"\n .arrow-group {\n transform-origin: 50% 50%;\n transition: transform 175ms ease-in-out;\n }\n .up {\n transform: scaleY(1);\n }\n .down {\n transform: scaleY(-1);\n }\n "),n("g",{fill:"none",class:(o?"up":"down")+" arrow-group"},n("path",{class:"arrow",fill:"black",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),n("path",{d:"M0 0h24v24H0z",fill:"none"})));export{o as S}
@@ -0,0 +1 @@
1
+ import{r,h as s}from"./p-f46e6c3c.js";let e=class{constructor(s){r(this,s),this.small=!1,this.showLabel=!1,this.value=0}render(){const r={width:this.value+"%"};return s("div",{class:this.rootClasses()},s("div",{class:"progress-bar",style:r},this.showLabel&&s("span",{class:"progress-label"},this.value,s("sup",null,"%"))))}rootClasses(){let r="progress";return this.small&&(r+=" small"),this.showLabel&&(r+=" has-label"),0===this.value&&(r+=" value-zero"),r}};e.style=":host{--wcs-internal-progress-bar-border-radius:var(--wcs-progress-bar-border-radius,0.3125rem);--wcs-internal-progress-bar-border-radius-small:var(--wcs-progress-bar-border-radius-small,0.15625rem);--wcs-internal-progress-bar-animation-duration:var(--wcs-progress-bar-animation-duration,0.375s)}.progress{display:flex;height:0.625rem;font-size:0.75rem;color:#4d4f53;background-color:#fff;background-image:linear-gradient(90deg, #e1ded9 50%, transparent 50%);background-size:0.25rem 0.625rem;border-radius:var(--wcs-internal-progress-bar-border-radius)}.progress.has-label{margin-top:2.375rem}.progress.small{height:0.3125rem;overflow:hidden;background-color:#fff;background-image:none;background-size:auto;border-radius:var(--wcs-internal-progress-bar-border-radius-small)}.progress.value-zero>.progress-bar>.progress-label{right:unset}.progress-bar{position:relative;display:flex;flex-direction:column;justify-content:center;color:#4d4f53;text-align:center;background-color:var(--wcs-primary);border-radius:var(--wcs-internal-progress-bar-border-radius);transition:width var(--wcs-internal-progress-bar-animation-duration) ease-out}.progress-label{position:absolute;right:0;bottom:calc(100% + 0.5rem);font-size:1.5rem;font-weight:500}.progress-label sup{font-size:0.875rem;top:-0.5em;position:relative;line-height:0;vertical-align:baseline}";export{e as wcs_progress_bar}
@@ -0,0 +1 @@
1
+ function e(e){return"clientWidth"in e&&"clientHeight"in e}function t(e){return!!e.shadowRoot&&!!e.attachShadow}const n=(e,t)=>{const n=e._original||e;return{_original:e,emit:i(n.emit.bind(n),t)}},i=(e,t=0)=>{let n;return(...i)=>{clearTimeout(n),n=setTimeout(e,t,...i)}},r=(e,t=[])=>{const n={};return t.forEach((t=>{e.hasAttribute(t)&&(null!==e.getAttribute(t)&&(n[t]=e.getAttribute(t)),e.removeAttribute(t))})),n},o=e=>{const t=e.closest("wcs-form-field");return t?t.querySelector("wcs-label"):null},s=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e),a=(e,t)=>e.x>=t.getBoundingClientRect().x&&e.x<=t.getBoundingClientRect().x+t.getBoundingClientRect().width&&e.y>=t.getBoundingClientRect().y&&e.y<=t.getBoundingClientRect().y+t.getBoundingClientRect().height;export{e as a,a as c,n as d,o as f,t as h,r as i,s as r}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as n,H as o,g as i}from"./p-f46e6c3c.js";let s=class{constructor(n){t(this,n),this.wcsSubmenuOpened=e(this,"wcsSubmenuOpened",7),this.menuOpen=!1}onWindowClickEvent(t){this.menuOpen&&(this.menuOpen=!1)}onSubmenuOpened(t){t.detail.menuElement!==this.el&&(this.menuOpen=!1)}async close(){this.menuOpen=!1}async open(){this.menuOpen=!0}onClick(t){t.stopPropagation(),this.wcsSubmenuOpened.emit({menuElement:this.el})}handleMenuItemsClick(t){"A"===t.target.tagName&&this.close()}wcsCategoryItemClickedHandler(t){this.close()}render(){return n(o,{onClick:t=>this.onClick(t)},n("div",{onClick:()=>this.menuOpen=!this.menuOpen,class:"menu-button"},n("span",{class:"label"},this.label),n("span",{class:"arrow-container"},n("span",{class:"arrow-icon","data-open":this.menuOpen},""))),n("div",{class:"drawer","data-open":this.menuOpen},n("div",{class:"drawer-container"},n("div",{class:"drawer-content"},n("div",null,n("h3",null,this.panelTitle),n("p",null,this.panelDescription)),n("div",{class:"menu-items",onClick:t=>this.handleMenuItemsClick(t)},n("slot",null))))))}get el(){return i(this)}};s.style=':host{display:block;height:100%}:host .menu-button{display:flex;align-items:center;height:100%;cursor:pointer;user-select:none}:host .label{font-size:16px;cursor:pointer;font-weight:500;color:var(--wcs-gray);text-decoration:none}:host .arrow-icon{display:inline-block;font-family:icons;font-size:0.6rem;line-height:1;box-sizing:border-box}:host .arrow-icon:not([data-open]){transform:rotate(90deg)}:host .arrow-icon[data-open]{transform:rotate(-90deg)}:host .arrow-container{margin-left:var(--wcs-base-margin)}:host .drawer{display:none;position:absolute;top:75px;z-index:8888;left:0;width:100%;box-sizing:border-box;padding:50px;background-color:var(--wcs-primary);color:var(--wcs-white)}:host .drawer-content{display:flex;justify-content:space-between;max-width:62.5%;flex:1}:host .drawer-content div:first-child{flex:0.8}:host .drawer-content div{max-width:260px}:host .menu-items{padding:0 80px 0 50px;display:flex;flex-direction:column;align-items:flex-end}:host .menu-items ::slotted(*:not(:first-child)){margin-top:24px}:host .menu-items ::slotted(a):after{font-family:icons;padding-left:var(--wcs-base-margin);font-size:0.6rem;content:"\\f107";line-height:1;box-sizing:border-box}:host .menu-items ::slotted(a){user-select:none;cursor:pointer;text-decoration:none;font-size:16px;color:var(--wcs-white)}:host .drawer-container{display:flex;max-width:var(--wcs-com-content-max-width);margin:0 auto}:host .drawer-container h3{margin:0 0 24px 0;font-size:1.5rem;line-height:1.25;font-weight:400}:host .drawer-container p{margin-top:0;margin-bottom:1rem;font-weight:500;font-size:1rem;line-height:1.375}:host .drawer[data-open]{display:block}';export{s as wcs_com_nav_submenu}
@@ -0,0 +1 @@
1
+ import{r as c,c as t,h as s,H as i,g as e}from"./p-f46e6c3c.js";let o=class{constructor(s){c(this,s),this.wcsChange=t(this,"wcsChange",7),this.switchId="wcs-switch-"+r++,this.name=this.switchId,this.checked=!1}toggleChange(c){this.checked=!this.checked,this.wcsChange.emit({checked:this.checked})}render(){return s(i,null,s("label",{htmlFor:this.name,class:"wcs-container"},s("span",{class:"text"},s("slot",null)),s("input",{onChange:c=>this.toggleChange(c),checked:this.checked,class:"wcs-switch",type:"checkbox",name:this.name,id:this.name}),s("span",{class:"wcs-checkmark"})))}get el(){return e(this)}},r=0;o.style=':host{--wcs-switch-background-color-initial:var(--wcs-text-light);--wcs-switch-background-color-final:var(--wcs-primary);--wcs-switch-bullet-color-initial:var(--wcs-switch-background-color-final);--wcs-switch-bullet-color-final:var(--wcs-switch-background-color-initial);display:flex}.wcs-container{position:relative;display:inline-block;width:3rem;height:1.5rem;margin-bottom:0}.wcs-container input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.wcs-switch,.text{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.wcs-checkmark::before,.wcs-checkmark{position:absolute;transition:all 0.15s ease-out}.wcs-checkmark::before{bottom:0.3125rem;left:0.3125rem;width:0.875rem;height:0.875rem;content:"";border-radius:50%;background-color:var(--wcs-switch-bullet-color-initial)}.wcs-checkmark{top:0;right:0;bottom:0;left:0;cursor:pointer;border-radius:0.75rem;background-color:var(--wcs-switch-background-color-initial)}input:not([disabled]):checked+.wcs-checkmark::before,.wcs-container:hover input:not([disabled])+.wcs-checkmark::before,.wcs-container:focus input:not([disabled])+.wcs-checkmark::before{background-color:var(--wcs-switch-bullet-color-final)}input:checked+.wcs-checkmark::before{transform:translateX(24px)}input:not([disabled]):checked+.wcs-checkmark,.wcs-container:hover input:not([disabled])+.wcs-checkmark,.wcs-container:focus input:not([disabled])+.wcs-checkmark{background-color:var(--wcs-switch-background-color-final)}';export{o as wcs_switch}
@@ -0,0 +1 @@
1
+ import{r}from"./p-f46e6c3c.js";let e=class{constructor(e){r(this,e),this.mode="border"}};e.style="@keyframes wcs-spinner-border{to{transform:rotate(360deg)}}@keyframes wcs-spinner-grow{0%{transform:scale(0)}50%{opacity:1}}:host{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;border-radius:50%}:host([mode=border]){border:0.25em solid var(--wcs-base);border-right-color:transparent;animation:wcs-spinner-border 0.75s linear infinite}:host([mode=growing]){background-color:var(--wcs-base);opacity:0;animation:wcs-spinner-grow 0.75s linear infinite}";export{e as wcs_spinner}
@@ -0,0 +1 @@
1
+ import{h as t,r as s,c as e,H as i,g as a}from"./p-f46e6c3c.js";const r=({step:s,checkOnComplete:e,complete:i,passed:a,active:r,first:o,disable:l,onClick:c})=>t("div",{class:"graphic-step","data-first":o},o?null:t("wcs-progress-bar",{value:a?100:0}),t("wcs-button",{style:{backgroundColor:"white"},shape:"round",onClick:()=>c(s),mode:!r&&!i||s.disable?"stroked":"plain",disabled:l},n(s.button,e,i,r))),n=(s,e,i,a)=>{if(e&&i&&!a)return t("wcs-mat-icon",{size:"m",icon:"done",family:"outlined"});switch(s.kind){case"Icon":return t("wcs-mat-icon",{size:"m",icon:s.iconName,family:s.family?s.family:"outlined"});case"Text":return s.text}};let o=class{constructor(t){s(this,t),this.wcsHorizontalStepClick=e(this,"wcsHorizontalStepClick",7),this.currentStep=0,this.mode="nonLinear",this.buttonMode="stroked"}componentWillLoad(){if(this.internalCurrentStep=this.currentStep,this.steps.length<1)throw new Error("You must add at least one step")}onCurrentStepChange(t,s){const e=Math.abs(s-t);if(this.el.style.setProperty("--wcs-progress-bar-animation-duration",375/e+"ms"),t!==s)for(let i=0;i<e;i++)setTimeout((()=>{this.internalCurrentStep-=s-t>0?1:-1,i===e-1&&this.el.style.removeProperty("--wcs-progress-bar-animation-duration")}),i*(375/e))}async previous(){this.navigateToIndex(this.internalCurrentStep-1,"backward")}async next(){this.navigateToIndex(this.internalCurrentStep+1,"forward")}navigateToIndex(t,s){var e,i;t>=0&&t<=this.steps.length-1&&((null===(e=this.steps[t])||void 0===e?void 0:e.complete)||(null===(i=this.steps[t])||void 0===i?void 0:i.disable)?this.navigateToIndex(t+("forward"===s?1:-1),s):this.currentStep=t)}render(){return t(i,null,t("div",{class:"steps"},this.steps.map(((s,e)=>t(r,{step:s,passed:e<=this.internalCurrentStep,checkOnComplete:this.checkOnComplete,complete:this.isComplete(s,e),active:e===this.internalCurrentStep,first:0===e,disable:this.isDisable(s,e),onClick:t=>this.wcsHorizontalStepClick.emit({step:t,index:e})})))),this.renderLabels())}isComplete(t,s){return s<=this.internalCurrentStep||t.complete}renderLabels(){return this.steps.map((t=>t.text)).every((t=>!t))?null:t("div",{class:"label-container"},this.steps.map(((s,e)=>t("div",{"data-first":0===e,"data-current":e===this.internalCurrentStep&&!s.disable,"data-disable":this.isDisable(s,e),"data-last":e===this.steps.length-1},t("span",null,s.text)))))}isDisable(t,s){return t.disable||"linear"===this.mode&&!this.isNextPossibleStep(s)&&this.internalCurrentStep<s}isNextPossibleStep(t){var s;return 0===t||((null===(s=this.steps[t-1])||void 0===s?void 0:s.disable)||this.previousStepIsCompleteAndNotActive(t)?this.isNextPossibleStep(t-1):this.internalCurrentStep===t-1)}previousStepIsCompleteAndNotActive(t){var s;return(null===(s=this.steps[t-1])||void 0===s?void 0:s.complete)&&t-1!==this.internalCurrentStep}get el(){return a(this)}static get watchers(){return{currentStep:["onCurrentStepChange"]}}};o.style=":host{display:block}:host .steps{display:flex;flex-direction:row;flex:1}:host .graphic-step{display:flex;flex-direction:row;flex:1;align-items:center}:host .graphic-step[data-first]{flex:0}:host wcs-progress-bar{--wcs-internal-progress-bar-border-radius:0;flex:1;margin:0 -1px}:host .label-container{justify-content:space-between;display:flex;flex-direction:row;margin-top:var(--wcs-base-margin)}:host .label-container>*{width:100%;text-align:center;flex:1;color:var(--wcs-text-medium);font-weight:500}:host .label-container>*[data-disable]{color:var(--wcs-text-light)}:host .label-container>*[data-current]{color:var(--wcs-primary)}:host .label-container>div[data-first]{margin-left:20px;text-align:left;flex:0.5}:host .label-container>div[data-first]>span{margin-left:-20px}:host .label-container>div[data-last]{margin-right:20px;text-align:right;flex:0.5}:host .label-container>div[data-last]>span{margin-right:-20px}";export{o as wcs_horizontal_stepper}
@@ -0,0 +1 @@
1
+ import{r as s,h as t,H as r}from"./p-f46e6c3c.js";let e=class{constructor(t){s(this,t),this.small=!1}render(){return t(r,{slot:"messages"},t("slot",null))}};e.style=":host{margin-top:0.25rem}:host([small]){font-size:0.75rem;font-weight:400;color:var(--wcs-text-medium)}";export{e as wcs_hint}
@@ -0,0 +1 @@
1
+ import{r as e,h as r}from"./p-f46e6c3c.js";let t=class{constructor(r){e(this,r),this.shape="normal",this.color="initial"}render(){return r("slot",null)}};t.style=":host{--wcs-badge-ligther-percentage:20;display:inline-block;padding:0.313rem 1.5rem;font-size:0.875rem;font-weight:500;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:0.75rem;color:var(--wcs-contrast);background-color:var(--wcs-base)}:host([color=lighter]){opacity:calc((100 - var(--wcs-badge-ligther-percentage)) / 100)}:host([mode=rounded]){border-radius:6px}";export{t as wcs_badge}