@swisspost/design-system-components 2.1.0 → 7.0.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 (211) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  3. package/dist/cjs/check-one-of-f4f5d0c0.js +8 -0
  4. package/dist/cjs/{index-f243643b.js → index-3b732d59.js} +85 -25
  5. package/dist/cjs/{index-8c288b1a.js → index-a1440961.js} +2 -6
  6. package/dist/cjs/index.cjs.js +20 -15
  7. package/dist/cjs/loader.cjs.js +5 -3
  8. package/dist/cjs/{package-96a46572.js → package-45af106a.js} +1 -1
  9. package/dist/cjs/{post-accordion-9d27458a.js → post-accordion-7507f838.js} +22 -20
  10. package/dist/cjs/post-accordion-item-5bf4d98b.js +53 -0
  11. package/dist/cjs/post-accordion-item.cjs.entry.js +5 -4
  12. package/dist/cjs/post-accordion.cjs.entry.js +3 -3
  13. package/dist/cjs/post-alert-9c39c854.js +98 -0
  14. package/dist/cjs/post-alert.cjs.entry.js +5 -4
  15. package/dist/cjs/post-card-control-4a16b3d7.js +311 -0
  16. package/dist/cjs/post-card-control.cjs.entry.js +14 -0
  17. package/dist/cjs/{post-collapsible-1867015c.js → post-collapsible-00319f1f.js} +7 -7
  18. package/dist/cjs/post-collapsible.cjs.entry.js +5 -4
  19. package/dist/cjs/post-components.cjs.js +6 -4
  20. package/dist/cjs/{post-icon-07a67b83.js → post-icon-09845341.js} +5 -5
  21. package/dist/cjs/post-icon.cjs.entry.js +5 -4
  22. package/dist/cjs/post-popover-3b6aaeae.js +104 -0
  23. package/dist/cjs/post-popover.cjs.entry.js +3 -3
  24. package/dist/cjs/{post-popovercontainer-003c0819.js → post-popovercontainer-0b8343ac.js} +26 -45
  25. package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
  26. package/dist/cjs/post-rating-285f966e.js +88 -0
  27. package/dist/cjs/post-rating.cjs.entry.js +3 -3
  28. package/dist/cjs/post-tab-header-f1c16656.js +32 -0
  29. package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
  30. package/dist/cjs/{post-tab-panel-6a9c4a4f.js → post-tab-panel-9c20a84e.js} +3 -3
  31. package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
  32. package/dist/cjs/{post-tabs-2eb6f376.js → post-tabs-75e71078.js} +23 -21
  33. package/dist/cjs/post-tabs.cjs.entry.js +3 -3
  34. package/dist/cjs/post-tag-942085fd.js +43 -0
  35. package/dist/cjs/post-tag.cjs.entry.js +11 -0
  36. package/dist/cjs/{post-tooltip-260d0627.js → post-tooltip-94d4f21f.js} +12 -9
  37. package/dist/cjs/post-tooltip.cjs.entry.js +3 -3
  38. package/dist/collection/collection-manifest.json +5 -3
  39. package/dist/collection/components/post-accordion/post-accordion.js +22 -20
  40. package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
  41. package/dist/collection/components/post-accordion-item/post-accordion-item.js +7 -5
  42. package/dist/collection/components/post-alert/alert-types.js +1 -1
  43. package/dist/collection/components/post-alert/post-alert.css +2 -2
  44. package/dist/collection/components/post-alert/post-alert.js +6 -6
  45. package/dist/collection/components/post-card-control/post-card-control.css +31 -0
  46. package/dist/collection/components/post-card-control/post-card-control.js +520 -0
  47. package/dist/collection/components/post-collapsible/post-collapsible.css +1 -1
  48. package/dist/collection/components/post-collapsible/post-collapsible.js +4 -4
  49. package/dist/collection/components/post-icon/post-icon.js +2 -2
  50. package/dist/collection/components/post-popover/post-popover.css +29 -1
  51. package/dist/collection/components/post-popover/post-popover.js +2 -2
  52. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +6 -6
  53. package/dist/collection/components/post-rating/post-rating.css +28 -0
  54. package/dist/collection/components/post-rating/post-rating.js +7 -7
  55. package/dist/collection/components/post-tab-header/post-tab-header.css +29 -1
  56. package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
  57. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  58. package/dist/collection/components/post-tabs/post-tabs.css +1 -1
  59. package/dist/collection/components/post-tabs/post-tabs.js +21 -19
  60. package/dist/collection/components/post-tag/post-tag.css +31 -0
  61. package/dist/collection/components/post-tag/post-tag.js +115 -0
  62. package/dist/collection/components/post-tooltip/post-tooltip.js +11 -8
  63. package/dist/collection/index.js +2 -0
  64. package/dist/collection/utils/index.js +1 -0
  65. package/dist/collection/utils/sass-export.js +16 -0
  66. package/dist/components/index.js +2 -0
  67. package/dist/components/index2.js +1 -1
  68. package/dist/components/package.js +1 -1
  69. package/dist/components/post-accordion-item2.js +7 -5
  70. package/dist/components/post-accordion2.js +21 -19
  71. package/dist/components/post-alert2.js +7 -7
  72. package/dist/components/post-card-control.d.ts +11 -0
  73. package/dist/components/post-card-control.js +6 -0
  74. package/dist/components/post-card-control2.js +342 -0
  75. package/dist/components/post-collapsible2.js +5 -5
  76. package/dist/components/post-icon2.js +3 -3
  77. package/dist/components/post-popover2.js +2 -2
  78. package/dist/components/post-popovercontainer2.js +24 -43
  79. package/dist/components/post-rating2.js +6 -6
  80. package/dist/components/post-tab-header2.js +2 -2
  81. package/dist/components/post-tab-panel2.js +1 -1
  82. package/dist/components/post-tabs2.js +21 -19
  83. package/dist/components/post-tag.d.ts +11 -0
  84. package/dist/components/post-tag.js +6 -0
  85. package/dist/components/post-tag2.js +70 -0
  86. package/dist/components/post-tooltip2.js +10 -7
  87. package/dist/docs.json +477 -18
  88. package/dist/esm/app-globals-0f993ce5.js +3 -0
  89. package/dist/esm/check-one-of-6b3ef8eb.js +6 -0
  90. package/dist/esm/{index-1708db56.js → index-961099d2.js} +85 -25
  91. package/dist/esm/{index-b444db27.js → index-d1eba94c.js} +1 -5
  92. package/dist/esm/index.js +18 -15
  93. package/dist/esm/loader.js +6 -4
  94. package/dist/esm/{package-50a9c0c3.js → package-1242b80d.js} +1 -1
  95. package/dist/esm/{post-accordion-33fe4f0e.js → post-accordion-bfd058bc.js} +22 -20
  96. package/dist/esm/post-accordion-item-4fa44842.js +51 -0
  97. package/dist/esm/post-accordion-item.entry.js +5 -4
  98. package/dist/esm/post-accordion.entry.js +3 -3
  99. package/dist/esm/post-alert-192d0176.js +96 -0
  100. package/dist/esm/post-alert.entry.js +5 -4
  101. package/dist/esm/post-card-control-b23e1e6f.js +309 -0
  102. package/dist/esm/post-card-control.entry.js +6 -0
  103. package/dist/esm/{post-collapsible-50dc361b.js → post-collapsible-d848eb2a.js} +7 -7
  104. package/dist/esm/post-collapsible.entry.js +5 -4
  105. package/dist/esm/post-components.js +7 -5
  106. package/dist/esm/{post-icon-00f314ae.js → post-icon-811654f7.js} +5 -5
  107. package/dist/esm/post-icon.entry.js +5 -4
  108. package/dist/esm/post-popover-b48a9d7c.js +102 -0
  109. package/dist/esm/post-popover.entry.js +3 -3
  110. package/dist/esm/{post-popovercontainer-62e1fd82.js → post-popovercontainer-7413bb41.js} +26 -45
  111. package/dist/esm/post-popovercontainer.entry.js +3 -3
  112. package/dist/esm/post-rating-806de800.js +86 -0
  113. package/dist/esm/post-rating.entry.js +3 -3
  114. package/dist/esm/post-tab-header-95f0dc6a.js +30 -0
  115. package/dist/esm/post-tab-header.entry.js +3 -3
  116. package/dist/esm/{post-tab-panel-37a1331f.js → post-tab-panel-d7145a70.js} +3 -3
  117. package/dist/esm/post-tab-panel.entry.js +3 -3
  118. package/dist/esm/{post-tabs-c4e65a45.js → post-tabs-f130a7d8.js} +23 -21
  119. package/dist/esm/post-tabs.entry.js +3 -3
  120. package/dist/esm/post-tag-7c329d6c.js +41 -0
  121. package/dist/esm/post-tag.entry.js +3 -0
  122. package/dist/esm/{post-tooltip-033f63fa.js → post-tooltip-942bd014.js} +12 -9
  123. package/dist/esm/post-tooltip.entry.js +3 -3
  124. package/dist/post-components/index.esm.js +1 -1
  125. package/dist/post-components/p-0d4e50a9.js +1 -0
  126. package/dist/post-components/p-1c780bac.entry.js +1 -0
  127. package/dist/post-components/p-2524b6b9.entry.js +1 -0
  128. package/dist/post-components/p-2ee23269.entry.js +1 -0
  129. package/dist/post-components/p-416426cc.js +1 -0
  130. package/dist/post-components/p-41c9c59f.js +1 -0
  131. package/dist/post-components/p-46cea7ee.js +1 -0
  132. package/dist/post-components/p-4aa14704.js +1 -0
  133. package/dist/post-components/p-579f55af.js +1 -0
  134. package/dist/post-components/p-5b2cdcf0.js +2 -0
  135. package/dist/post-components/p-60b02cbb.entry.js +1 -0
  136. package/dist/post-components/p-611b3c41.js +1 -0
  137. package/dist/post-components/p-62407836.entry.js +1 -0
  138. package/dist/post-components/p-6308fd47.js +1 -0
  139. package/dist/post-components/p-6fba8cb2.entry.js +1 -0
  140. package/dist/post-components/p-86acda91.entry.js +1 -0
  141. package/dist/post-components/{p-7e7833f7.js → p-93ba2827.js} +3 -3
  142. package/dist/post-components/p-94b5c41e.entry.js +1 -0
  143. package/dist/post-components/p-a3b54b5f.js +1 -0
  144. package/dist/post-components/p-a4b6b950.js +1 -0
  145. package/dist/post-components/p-b4abbb28.js +1 -0
  146. package/dist/post-components/p-c0f8e385.entry.js +1 -0
  147. package/dist/post-components/p-c4fe5052.entry.js +1 -0
  148. package/dist/post-components/p-c9004503.js +1 -0
  149. package/dist/post-components/p-cd9c10dd.entry.js +1 -0
  150. package/dist/post-components/p-d4cd7bb0.js +1 -0
  151. package/dist/post-components/p-d8d76dd1.entry.js +1 -0
  152. package/dist/post-components/p-e1255160.js +1 -0
  153. package/dist/post-components/p-e819d5fb.entry.js +1 -0
  154. package/dist/post-components/p-f44c172a.js +1 -0
  155. package/dist/post-components/p-f91c0e1b.js +1 -0
  156. package/dist/post-components/p-f9e58309.js +1 -0
  157. package/dist/post-components/p-ffb9a651.entry.js +1 -0
  158. package/dist/post-components/post-components.esm.js +1 -1
  159. package/dist/types/components/post-accordion/post-accordion.d.ts +1 -1
  160. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +1 -1
  161. package/dist/types/components/post-alert/alert-types.d.ts +2 -2
  162. package/dist/types/components/post-alert/post-alert.d.ts +2 -2
  163. package/dist/types/components/post-card-control/post-card-control.d.ts +109 -0
  164. package/dist/types/components/post-collapsible/post-collapsible.d.ts +1 -1
  165. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +1 -1
  166. package/dist/types/components/post-rating/post-rating.d.ts +2 -2
  167. package/dist/types/components/post-tabs/post-tabs.d.ts +1 -1
  168. package/dist/types/components/post-tag/post-tag.d.ts +27 -0
  169. package/dist/types/components.d.ts +178 -12
  170. package/dist/types/css-modules.js +0 -0
  171. package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/types/css-modules.d.ts +6 -0
  172. package/dist/types/index.d.ts +2 -0
  173. package/dist/types/utils/index.d.ts +1 -0
  174. package/dist/types/utils/sass-export.d.ts +2 -0
  175. package/package.json +17 -17
  176. package/dist/cjs/post-accordion-item-61fb55fa.js +0 -51
  177. package/dist/cjs/post-alert-a810f5b9.js +0 -98
  178. package/dist/cjs/post-popover-9610b64c.js +0 -104
  179. package/dist/cjs/post-rating-75574abd.js +0 -88
  180. package/dist/cjs/post-tab-header-85424e32.js +0 -32
  181. package/dist/esm/post-accordion-item-1fd95c9f.js +0 -49
  182. package/dist/esm/post-alert-65d67f69.js +0 -96
  183. package/dist/esm/post-popover-40bfd1b7.js +0 -102
  184. package/dist/esm/post-rating-f7a79ed4.js +0 -86
  185. package/dist/esm/post-tab-header-0683252a.js +0 -30
  186. package/dist/post-components/p-00dcad55.js +0 -1
  187. package/dist/post-components/p-01e57281.entry.js +0 -1
  188. package/dist/post-components/p-06c989fb.entry.js +0 -1
  189. package/dist/post-components/p-07ffb6de.entry.js +0 -1
  190. package/dist/post-components/p-10b4cf7a.js +0 -2
  191. package/dist/post-components/p-26c658c1.entry.js +0 -1
  192. package/dist/post-components/p-2a964700.js +0 -1
  193. package/dist/post-components/p-35f14000.js +0 -1
  194. package/dist/post-components/p-3fb09ecd.js +0 -1
  195. package/dist/post-components/p-4b0a45d8.entry.js +0 -1
  196. package/dist/post-components/p-53e8e4e7.entry.js +0 -1
  197. package/dist/post-components/p-598b11b6.js +0 -1
  198. package/dist/post-components/p-5b6ee52a.entry.js +0 -1
  199. package/dist/post-components/p-8139faa4.entry.js +0 -1
  200. package/dist/post-components/p-8cd6d7c2.js +0 -1
  201. package/dist/post-components/p-99a9602e.js +0 -1
  202. package/dist/post-components/p-a2775477.entry.js +0 -1
  203. package/dist/post-components/p-a905b16b.entry.js +0 -1
  204. package/dist/post-components/p-aa02111b.js +0 -1
  205. package/dist/post-components/p-b135d3e2.js +0 -1
  206. package/dist/post-components/p-b81e61ed.entry.js +0 -1
  207. package/dist/post-components/p-d6bc34ff.js +0 -1
  208. package/dist/post-components/p-da2b8e26.entry.js +0 -1
  209. package/dist/post-components/p-f0476913.js +0 -1
  210. package/dist/post-components/p-f0e82e63.js +0 -1
  211. package/dist/post-components/p-ff0e1564.js +0 -1
@@ -0,0 +1,342 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { d as checkOneOf } from './index2.js';
3
+ import { c as checkNonEmpty } from './check-non-empty.js';
4
+ import { v as version } from './package.js';
5
+ import { d as defineCustomElement$1 } from './post-icon2.js';
6
+
7
+ function parse(scss) {
8
+ return Object.entries(scss).reduce((object, [path, value]) => {
9
+ let output = object;
10
+ path.split('_').forEach((key, i, values) => {
11
+ const pathKey = key;
12
+ const normalized = /^\[.*\]$/.test(value) ? JSON.parse(value) : value;
13
+ const pathValue = i >= values.length - 1 ? normalized : output[pathKey] || {};
14
+ output[pathKey] = pathValue;
15
+ output = output[pathKey];
16
+ });
17
+ return object;
18
+ }, {});
19
+ }
20
+
21
+ function styleInject(css, ref) {
22
+ if ( ref === void 0 ) ref = {};
23
+ var insertAt = ref.insertAt;
24
+
25
+ if (!css || typeof document === 'undefined') { return; }
26
+
27
+ var head = document.head || document.getElementsByTagName('head')[0];
28
+ var style = document.createElement('style');
29
+ style.type = 'text/css';
30
+
31
+ if (insertAt === 'top') {
32
+ if (head.firstChild) {
33
+ head.insertBefore(style, head.firstChild);
34
+ } else {
35
+ head.appendChild(style);
36
+ }
37
+ } else {
38
+ head.appendChild(style);
39
+ }
40
+
41
+ if (style.styleSheet) {
42
+ style.styleSheet.cssText = css;
43
+ } else {
44
+ style.appendChild(document.createTextNode(css));
45
+ }
46
+ }
47
+
48
+ var css_248z = "/**\n * Colors used by the post style guide\n */\n/* When value is changed, please changed as well the copied value in ../functions/_contrast.scss, @function light-or-dark()*/\n/**\n * Maps. Allow maps to have custom colors from the project\n * by always merging into a default empty map\n */\n/* Deprecated: \"rg\" breakpoint */\n/* Deprecated: \"rg\" breakpoint */\n/* Deprecated: \"rg\" breakpoint */\n/* Deprecated: \"rg\" breakpoint */\n/* Deprecated: $grid-gutter-width */\n/* Deprecated: \"rg\" breakpoint */\n/* Deprecated: \"rg\" breakpoint */\n/**\n * Colors used by the post style guide\n */\n/* When value is changed, please changed as well the copied value in ../functions/_contrast.scss, @function light-or-dark()*/\n/**\n * Maps. Allow maps to have custom colors from the project\n * by always merging into a default empty map\n */\n/**\n * Override the necessary bootstrap\n * colors and maps using colors from\n * the post style guide only.\n *\n * Other bootstrap colors\n * will be available as sass-variables\n * but should not be used.\n*/\n/* Deprecated: \"rg\" breakpoint */\n/* Deprecated: \"rg\" breakpoint */\n/* Deprecated: \"rg\" breakpoint */\n/* Deprecated: $grid-gutter-width */\n/* Deprecated: \"rg\" breakpoint */\n/**\n * Colors used by the post style guide\n */\n/* When value is changed, please changed as well the copied value in ../functions/_contrast.scss, @function light-or-dark()*/\n/**\n * Maps. Allow maps to have custom colors from the project\n * by always merging into a default empty map\n */\n/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n/* Deprecated use the one in utilities.scss */\n/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */\n/**\n * Generate responsive size properties for things like height, width, margin, padding, etc.\n * @param $curve-size One of the curve sizes predefined at https://www.experience-hub.ch/document/2307#/grundlagen-web/abstaende\n * @param $property Property key (height, width, padding, margin, top, etc.)\n * @param $template Value template string used for shorthand declarations like padding (\"$value auto\" = padding: 1rem auto)\n */\n/* Deprecated: \"rg\" breakpoint */\n/**\n * Colors used by the post style guide\n */\n/* When value is changed, please changed as well the copied value in ../functions/_contrast.scss, @function light-or-dark()*/\n/**\n * Maps. Allow maps to have custom colors from the project\n * by always merging into a default empty map\n */\n/**\n * Override the necessary bootstrap\n * colors and maps using colors from\n * the post style guide only.\n *\n * Other bootstrap colors\n * will be available as sass-variables\n * but should not be used.\n*/\n/* Deprecated: \"rg\" breakpoint */\n/* Deprecated: \"rg\" breakpoint */\n/* Deprecated: \"rg\" breakpoint */\n/* Deprecated: $grid-gutter-width */\n/* Deprecated: \"rg\" breakpoint */\n/**\n * Colors used by the post style guide\n */\n/* When value is changed, please changed as well the copied value in ../functions/_contrast.scss, @function light-or-dark()*/\n/**\n * Maps. Allow maps to have custom colors from the project\n * by always merging into a default empty map\n */";
49
+ const scss = {"dark-bg-selectors":"[\".bg-dark\", \".bg-black\", \".bg-primary\", \".bg-secondary\", \".bg-success\", \".bg-error\", \".bg-nightblue\", \".bg-nightblue-bright\", \".bg-petrol\", \".bg-coral\", \".bg-olive\", \".bg-purple\", \".bg-purple-bright\", \".bg-aubergine\", \".bg-aubergine-bright\", \".alert-primary\", \"post-alert[type=primary]\", \".alert-success\", \"post-alert[type=success]\", \".alert-danger\", \"post-alert[type=danger]\", \".alert-notification\", \"post-alert[type=notification]\", \".alert-error\", \"post-alert[type=error]\"]"};
50
+ styleInject(css_248z);
51
+
52
+ const postCardControlCss = "/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.form-check{display:flex;flex-wrap:wrap;row-gap:.75rem;margin-bottom:1rem}.form-check{outline-style:none !important;outline-offset:2px !important;outline-width:2px !important;outline-color:var(--post-focus-color) !important}.form-check:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:solid !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.form-check:is(:focus-visible,:focus-within,.pretend-focus){outline-style:solid !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.form-check-inline{display:inline-flex}.form-check-inline:not(:last-of-type){margin-right:1.5rem}.form-check-input,.form-check-label{color:rgba(var(--post-contrast-color-rgb), 0.8);transition:color 250ms cubic-bezier(0.4, 0, 0.2, 1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check-input,.form-check-label{transition:none}}.form-check-input:hover:not([disabled]),.form-check-input:hover:not([disabled])~.form-check-input-label,.form-check-label:hover:not([disabled]),.form-check-input:hover:not([disabled])~.form-check-label-label,.form-check-label:hover:not([disabled])~.form-check-input-label,.form-check-label:hover:not([disabled])~.form-check-label-label{color:var(--post-contrast-color)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check-input:hover:not([disabled]),.form-check-input:hover:not([disabled])~.form-check-input-label,.form-check-label:hover:not([disabled]),.form-check-input:hover:not([disabled])~.form-check-label-label,.form-check-label:hover:not([disabled])~.form-check-input-label,.form-check-label:hover:not([disabled])~.form-check-label-label{border-color:Highlight}}.form-check-input{outline:none;display:inline-flex;flex:0 auto;-webkit-appearance:none;appearance:none;background:rgba(0,0,0,0);height:1.375rem;width:1.375rem;border:2px solid currentColor}.form-check-input:not([disabled]),.form-check-input:not([disabled])~.form-check-label{cursor:pointer}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check-input{border-color:FieldText}}.form-check-input::after{content:\"\";display:block;flex:1}.form-check-input[type=checkbox]:checked::after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12.667 23.6-7.2-7.067 1.067-1.067 6.133 6.267L25.467 8.8l1.067 1.067z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12.667 23.6-7.2-7.067 1.067-1.067 6.133 6.267L25.467 8.8l1.067 1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.form-check-input[type=checkbox]:indeterminate::after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m5.333 16.01 20-.021.001 1.333-20 .021z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m5.333 16.01 20-.021.001 1.333-20 .021z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check-input[type=checkbox]:checked,.form-check-input[type=checkbox]:indeterminate{background-color:SelectedItem !important;color:SelectedItemText !important}}.form-check-input[type=radio]{border-radius:50%}.form-check-input[type=radio]:checked::after{border:.25rem solid rgba(0,0,0,0);background-color:currentColor;border-radius:inherit;background-clip:padding-box}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check-input[type=radio]:checked::after{background-color:SelectedItem;border-color:Canvas}}.form-check-input[type=radio][disabled]{padding:2px;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%' height='100%' rx='100' ry='100' fill='none' stroke='hsl(0, 0%, 40%)' stroke-width='4px ' stroke-dasharray='4 2' /%3e%3c/svg%3e\")}:is(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .form-check-input[type=radio][disabled]{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%' height='100%' rx='100' ry='100' fill='none' stroke='rgba(255, 255, 255, 0.8)' stroke-width='4px ' stroke-dasharray='4 2' /%3e%3c/svg%3e\")}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check-input[type=radio][disabled]{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%' height='100%' rx='100' ry='100' fill='none' stroke='GrayText' stroke-width='4px ' stroke-dasharray='4 2' /%3e%3c/svg%3e\") !important}}.form-check-input[disabled]{border:0;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%' height='100%' fill='none' stroke='hsl(0, 0%, 40%)' stroke-width='4px ' stroke-dasharray='2 1.5 4 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4' pathLength='88' /%3e%3c/svg%3e\")}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check-input[disabled][type=checkbox],.form-check-input[disabled][type=radio]{border-color:GrayText !important}}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check-input[disabled][type=checkbox]:checked,.form-check-input[disabled][type=checkbox]:indeterminate{background-color:Field !important;color:GrayText !important}}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check-input[disabled][type=radio]:checked::after{background-color:GrayText}}:is(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .form-check-input[disabled]{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%' height='100%' fill='none' stroke='rgba(255, 255, 255, 0.8)' stroke-width='4px ' stroke-dasharray='2 1.5 4 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4' pathLength='88' /%3e%3c/svg%3e\")}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check-input[disabled]{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%' height='100%' fill='none' stroke='GrayText' stroke-width='4px ' stroke-dasharray='2 1.5 4 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4' pathLength='88' /%3e%3c/svg%3e\") !important}}.form-check-sm .form-check-input[disabled][type=checkbox]{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%' height='100%' fill='none' stroke='hsl(0, 0%, 40%)' stroke-width='4px ' stroke-dasharray='2 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4' pathLength='66' /%3e%3c/svg%3e\")}:is(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .form-check-sm .form-check-input[disabled][type=checkbox]{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%' height='100%' fill='none' stroke='rgba(255, 255, 255, 0.8)' stroke-width='4px ' stroke-dasharray='2 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4' pathLength='66' /%3e%3c/svg%3e\")}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-check-sm .form-check-input[disabled][type=checkbox]{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%' height='100%' fill='none' stroke='GrayText' stroke-width='4px ' stroke-dasharray='2 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4' pathLength='66' /%3e%3c/svg%3e\") !important}}.form-check-input[disabled],.form-check-input[disabled]~.form-check-label{text-decoration:line-through;color:rgba(0,0,0,.6)}:is(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .form-check-input[disabled],:is(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .form-check-input[disabled]~.form-check-label{color:rgba(255,255,255,.8)}.form-check-sm .form-check-input{height:1rem;width:1rem}.form-check-sm .form-check-input[type=radio]:checked::after{border-width:2px}.form-check-label{flex:1}:not(.form-switch,.radio-button-card,.checkbox-button-card)>.form-check-label{padding-inline-start:.5rem}.form-check-sm .form-check-label{font-size:.75rem}.form-switch .form-check-input{height:2rem;width:4rem;border:0;border-radius:4rem;background-image:linear-gradient(to right, rgba(var(--post-contrast-color-rgb), 0.3) 50%, var(--post-success) 50%);background-size:8rem;background-position-x:0;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),background-position 250ms cubic-bezier(0.4, 0, 0.2, 1)}.form-switch .form-check-input::after{max-width:2rem;background-color:#fff;border:2px solid #666;border-radius:50%;transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.form-switch .form-check-input:checked{background-position-x:4rem}.form-switch .form-check-input:checked::after{-webkit-mask-image:none;mask-image:none;background-color:#fff;border-color:#000;transform:translateX(2rem)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-switch .form-check-input{transition:none;border:2px solid CanvasText}.form-switch .form-check-input:checked{background-color:SelectedItem !important}.form-switch .form-check-input::after,.form-switch .form-check-input:checked::after{max-width:calc(2rem - 4px);border-color:Canvas;background-color:CanvasText}}.form-switch .form-check-input[disabled]{background:#ccc}.form-switch .form-check-input[disabled]::after{border-color:#999}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-switch .form-check-input[disabled]::after{border-color:Field}.form-switch .form-check-input[disabled]:checked{background-color:GrayText !important}}.form-switch:hover>.form-check-input:not([disabled]){background-color:rgba(var(--post-contrast-color-rgb), 0.1)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.form-switch:hover>.form-check-input:not([disabled]){border-color:Highlight}}.form-switch .form-check-label{padding-top:.25rem}.form-switch .form-check-label.order-first{flex:0 auto;padding-inline-end:1rem}.form-switch .form-check-label:not(.order-first){padding-inline-start:1rem}:host{display:flex;width:100%}:host-context(fieldset):host(:not(:last-child)) .card-control{margin-bottom:1rem}.card-control{--post-card-control-border-color: hsl(0, 0%, 40%);--post-card-control-bg: #fff;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff;flex-basis:100%;display:grid;grid-template:\"input label icon\" \"input content icon\"/min-content auto min-content;gap:0 .5rem;padding:1rem;background-color:var(--post-card-control-bg);border:2px solid var(--post-card-control-border-color);border-radius:4px;color:var(--post-card-control-color);cursor:pointer;transition:background-color 100ms linear,border-color 100ms linear}.card-control .card-control--input{grid-area:input;margin:.25rem 0;background-color:var(--post-card-control-input-bg);border-color:var(--post-card-control-input-border-color) !important;color:var(--post-card-control-input-border-color) !important;cursor:inherit;transition:border-color 100ms ease-in-out}.card-control .card-control--input:focus,.card-control .card-control--input:focus-visible{box-shadow:none}.card-control .card-control--label{grid-area:label;margin:.25rem 0;padding:0;color:inherit !important;pointer-events:none;transition-duration:100ms}.card-control .card-control--description{grid-area:label;font-size:.75rem}.card-control .card-control--content{grid-area:content}.card-control .card-control--icon{grid-area:icon;width:2rem;height:2rem;pointer-events:none}.card-control .card-control--icon>slot>*{width:100%;height:100%}.card-control:not(.is-disabled).is-checked{--post-card-control-border-color: #000;--post-card-control-bg: #fc0}.card-control:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728}.card-control:not(.is-disabled):hover{--post-card-control-border-color: hsl(0, 0%, 20%);--post-card-control-bg: hsl(0, 0%, 40%);--post-card-control-color: #fff;--post-card-control-input-border-color: #000}.card-control.is-focused:where(:has(.card-control--input:focus-visible)){outline-offset:2px;outline:2px solid #1976c8}.card-control.is-disabled{--post-card-control-border-color: hsl(0, 0%, 40%);--post-card-control-bg: transparent;--post-card-control-color: hsl(0, 0%, 40%);--post-card-control-input-border-color: hsl(0, 0%, 40%);--post-card-control-input-bg: transparent;border-style:dashed;text-decoration:line-through;cursor:default}.card-control.is-disabled .card-control--input{border-style:dashed}:host-context(:is(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error])) .card-control{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}:host-context(:is(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error])) .card-control:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}:host-context(:is(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error])) .card-control:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}:host-context(:is(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error])) .card-control:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}:host-context(:is(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error])) .card-control:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}:host-context(:is(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error])) .card-control.is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}:host-context(:is(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error])) .card-control.is-disabled{--post-card-control-border-color: rgba(255, 255, 255, 0.8);--post-card-control-bg: transparent;--post-card-control-color: rgba(255, 255, 255, 0.8);--post-card-control-input-border-color: rgba(255, 255, 255, 0.8);--post-card-control-input-bg: transparent}:host(:not(:last-child)) .card-control[data-host-context*=fieldset]{margin-bottom:1rem}.card-control[data-host-context*=\".bg-dark\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-dark\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-dark\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".bg-dark\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-dark\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-dark\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".bg-dark\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-black\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-black\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-black\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".bg-black\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-black\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-black\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".bg-black\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-primary\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-primary\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-primary\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".bg-primary\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-primary\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-primary\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".bg-primary\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-secondary\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-secondary\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-secondary\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".bg-secondary\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-secondary\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-secondary\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".bg-secondary\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-success\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-success\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-success\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".bg-success\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-success\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-success\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".bg-success\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-error\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-error\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-error\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".bg-error\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-error\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-error\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".bg-error\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-nightblue\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-nightblue\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-nightblue\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".bg-nightblue\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-nightblue\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-nightblue\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".bg-nightblue\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-nightblue-bright\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-nightblue-bright\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-nightblue-bright\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".bg-nightblue-bright\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-nightblue-bright\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-nightblue-bright\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".bg-nightblue-bright\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-petrol\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-petrol\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-petrol\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".bg-petrol\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-petrol\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-petrol\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".bg-petrol\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-coral\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-coral\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-coral\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".bg-coral\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-coral\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-coral\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".bg-coral\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-olive\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-olive\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-olive\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".bg-olive\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-olive\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-olive\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".bg-olive\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-purple\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-purple\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-purple\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".bg-purple\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-purple\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-purple\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".bg-purple\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-purple-bright\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-purple-bright\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-purple-bright\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".bg-purple-bright\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-purple-bright\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-purple-bright\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".bg-purple-bright\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-aubergine\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-aubergine\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-aubergine\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".bg-aubergine\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-aubergine\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-aubergine\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".bg-aubergine\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-aubergine-bright\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".bg-aubergine-bright\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-aubergine-bright\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".bg-aubergine-bright\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-aubergine-bright\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".bg-aubergine-bright\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".bg-aubergine-bright\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".alert-primary\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".alert-primary\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".alert-primary\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".alert-primary\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".alert-primary\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".alert-primary\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".alert-primary\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\"post-alert[type=primary]\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\"post-alert[type=primary]\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\"post-alert[type=primary]\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\"post-alert[type=primary]\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\"post-alert[type=primary]\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\"post-alert[type=primary]\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\"post-alert[type=primary]\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".alert-success\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".alert-success\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".alert-success\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".alert-success\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".alert-success\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".alert-success\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".alert-success\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\"post-alert[type=success]\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\"post-alert[type=success]\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\"post-alert[type=success]\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\"post-alert[type=success]\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\"post-alert[type=success]\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\"post-alert[type=success]\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\"post-alert[type=success]\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".alert-danger\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".alert-danger\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".alert-danger\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".alert-danger\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".alert-danger\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".alert-danger\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".alert-danger\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\"post-alert[type=danger]\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\"post-alert[type=danger]\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\"post-alert[type=danger]\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\"post-alert[type=danger]\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\"post-alert[type=danger]\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\"post-alert[type=danger]\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\"post-alert[type=danger]\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".alert-notification\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".alert-notification\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".alert-notification\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".alert-notification\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".alert-notification\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".alert-notification\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".alert-notification\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\"post-alert[type=notification]\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\"post-alert[type=notification]\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\"post-alert[type=notification]\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\"post-alert[type=notification]\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\"post-alert[type=notification]\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\"post-alert[type=notification]\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\"post-alert[type=notification]\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".alert-error\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\".alert-error\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".alert-error\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\".alert-error\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".alert-error\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\".alert-error\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\".alert-error\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg: transparent;--post-card-control-color: post.$white-alpha-80;--post-card-control-input-border-color: post.$white-alpha-80;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\"post-alert[type=error]\"]{--post-card-control-border-color: #fff;--post-card-control-bg: transparent;--post-card-control-color: #fff;--post-card-control-input-border-color: #fff;--post-card-control-input-bg: transparent}.card-control[data-host-context*=\"post-alert[type=error]\"]:not(.is-disabled).is-checked{--post-card-control-border-color: #fc0;--post-card-control-bg: #fc0;--post-card-control-color: hsl(0, 0%, 20%);--post-card-control-input-border-color: hsl(0, 0%, 20%);--post-card-control-input-bg: #fff}.card-control[data-host-context*=\"post-alert[type=error]\"]:not(.is-disabled).is-checked.is-invalid{--post-card-control-bg: #fc0}.card-control[data-host-context*=\"post-alert[type=error]\"]:not(.is-disabled).is-invalid{--post-card-control-border-color: #a51728;--post-card-control-bg: #ffdade;--post-card-control-color: #a51728;--post-card-control-input-border-color: #a51728;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\"post-alert[type=error]\"]:not(.is-disabled):hover{--post-card-control-border-color: #000;--post-card-control-bg: hsl(0, 0%, 80%);--post-card-control-color: #000;--post-card-control-input-border-color: #000;--post-card-control-input-bg: #fff}.card-control[data-host-context*=\"post-alert[type=error]\"].is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}.card-control[data-host-context*=\"post-alert[type=error]\"].is-disabled{--post-card-control-border-color: post.$white-alpha-80;--post-card-control-bg:transparent;--post-card-control-color:post.$white-alpha-80;--post-card-control-input-border-color:post.$white-alpha-80;--post-card-control-input-bg:transparent}";
53
+ const PostCardControlStyle0 = postCardControlCss;
54
+
55
+ const SCSS_VARIABLES = parse(scss);
56
+ const EVENT_MAP = {
57
+ input: 'postInput',
58
+ change: 'postChange',
59
+ };
60
+ let cardControlIds = 0;
61
+ const PostCardControl = /*@__PURE__*/ proxyCustomElement(class PostCardControl extends HTMLElement {
62
+ /**
63
+ * A public method to reset the controls `checked` and `validity` state.
64
+ * The validity state is set to `null`, so it's neither valid nor invalid.
65
+ */
66
+ async reset() {
67
+ this.validity = null;
68
+ this.controlSetChecked(this.initialChecked);
69
+ }
70
+ /**
71
+ * A hidden public method to reset the group controls `checked` state to `false`.
72
+ */
73
+ async groupReset() {
74
+ if (this.disabled)
75
+ this.control.checked = this.checked = false;
76
+ this.controlSetChecked(false);
77
+ }
78
+ validateControlLabel(label = this.label) {
79
+ checkNonEmpty(label, 'The "post-card-control" element requires its "label" property to be set.');
80
+ }
81
+ validateControlType(type = this.type) {
82
+ checkOneOf(type, ['checkbox', 'radio'], 'The "post-card-control" element requires its "type" prop to be one of either "checkbox" or "radio".');
83
+ }
84
+ updateControlChecked(checked = this.checked) {
85
+ this.controlSetChecked(checked);
86
+ }
87
+ updateControlDisbled() {
88
+ this.controlSetChecked(this.checked);
89
+ }
90
+ constructor() {
91
+ super();
92
+ this.__registerHost();
93
+ this.__attachShadow();
94
+ this.postInput = createEvent(this, "postInput", 7);
95
+ this.postChange = createEvent(this, "postChange", 7);
96
+ this.internals = this.attachInternals();
97
+ this.KEYCODES = {
98
+ SPACE: 'Space',
99
+ LEFT: 'ArrowLeft',
100
+ UP: 'ArrowUp',
101
+ RIGHT: 'ArrowRight',
102
+ DOWN: 'ArrowDown',
103
+ };
104
+ this.group = {
105
+ hosts: [],
106
+ members: [],
107
+ first: null,
108
+ last: null,
109
+ checked: null,
110
+ focused: null,
111
+ };
112
+ this.controlId = `PostCardControl_${cardControlIds++}`;
113
+ // remove as soon as all browser support the :host-context() selector
114
+ this.HOST_CONTEXT_FILTERS = ['fieldset', ...SCSS_VARIABLES['dark-bg-selectors']];
115
+ this.focused = false;
116
+ this.label = undefined;
117
+ this.description = null;
118
+ this.type = undefined;
119
+ this.name = null;
120
+ this.value = null;
121
+ this.checked = false;
122
+ this.disabled = false;
123
+ this.validity = null;
124
+ this.icon = null;
125
+ this.cardClickHandler = this.cardClickHandler.bind(this);
126
+ this.controlClickHandler = this.controlClickHandler.bind(this);
127
+ this.controlChangeHandler = this.controlChangeHandler.bind(this);
128
+ this.controlFocusHandler = this.controlFocusHandler.bind(this);
129
+ this.controlKeyDownHandler = this.controlKeyDownHandler.bind(this);
130
+ }
131
+ cardClickHandler(e) {
132
+ e.stopPropagation();
133
+ // if this was not the clicked element anyway, trigger click on control to change it
134
+ if (e.target !== this.control)
135
+ this.control.click();
136
+ }
137
+ controlClickHandler(e) {
138
+ e.stopPropagation();
139
+ // if control is disabled do nothing
140
+ // else control value will fire a change event, which is handled in the controlChangeHandler method
141
+ if (this.disabled)
142
+ e.preventDefault();
143
+ }
144
+ controlChangeHandler(e) {
145
+ e.stopPropagation();
146
+ this.groupCollectMembers();
147
+ this.controlSetChecked(this.control.checked, e);
148
+ this.groupSetChecked(this.control, e);
149
+ }
150
+ controlFocusHandler() {
151
+ this.focused = this.host === document.activeElement;
152
+ }
153
+ // https://googlechromelabs.github.io/howto-components/howto-radio-group/
154
+ controlKeyDownHandler(e) {
155
+ if (this.type === 'radio') {
156
+ e.stopPropagation();
157
+ if (Object.values(this.KEYCODES).includes(e.code))
158
+ e.preventDefault();
159
+ this.groupCollectMembers();
160
+ switch (e.code) {
161
+ case this.KEYCODES.UP:
162
+ case this.KEYCODES.LEFT:
163
+ this.groupSetChecked(this.groupGetPrev(), e);
164
+ break;
165
+ case this.KEYCODES.DOWN:
166
+ case this.KEYCODES.RIGHT:
167
+ this.groupSetChecked(this.groupGetNext(), e);
168
+ break;
169
+ case this.KEYCODES.SPACE:
170
+ this.groupSetChecked(this.control, e);
171
+ break;
172
+ }
173
+ }
174
+ }
175
+ controlSetChecked(checked, e) {
176
+ if (!this.control)
177
+ return;
178
+ if (this.disabled) {
179
+ this.internals.setFormValue(null);
180
+ }
181
+ else {
182
+ this.control.checked = this.checked = checked;
183
+ this.internals.setFormValue(this.checked ? this.control.value : null);
184
+ if (e) {
185
+ const isCheckbox = this.type === 'checkbox';
186
+ const isRadioAndChecked = this.type === 'radio' && this.checked;
187
+ // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox
188
+ // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio
189
+ // if an event parameter is given and a native control would fire an event, emit the corresponding event to the light dom
190
+ if (isCheckbox || isRadioAndChecked)
191
+ this[EVENT_MAP[e.type]].emit({ state: this.checked, value: this.value });
192
+ }
193
+ }
194
+ }
195
+ groupCollectMembers() {
196
+ var _a, _b;
197
+ if (this.type === 'radio' && this.name) {
198
+ this.group.hosts = Array.from(document.querySelectorAll(`post-card-control[type="radio"][name="${this.name}"]`));
199
+ this.group.members = this.group.hosts
200
+ .map(m => m.shadowRoot.querySelector('input[type="radio"]'))
201
+ .filter(m => m !== null);
202
+ if (this.group.members.length > 1) {
203
+ this.group.first = this.group.members[0];
204
+ this.group.last = this.group.members[this.group.members.length - 1];
205
+ this.group.checked = (_a = this.group.members.find(m => m.checked)) !== null && _a !== void 0 ? _a : null;
206
+ this.group.focused =
207
+ (_b = this.group.members.find(m => m.getRootNode().host === document.activeElement)) !== null && _b !== void 0 ? _b : this.group.first;
208
+ const focusableMember = this.group.checked || this.group.focused || this.group.first;
209
+ this.group.members.forEach(m => {
210
+ m.tabIndex = m === focusableMember ? 0 : -1;
211
+ });
212
+ }
213
+ }
214
+ }
215
+ groupGetPrev() {
216
+ var _a;
217
+ const focusedIndex = this.group.members.findIndex(m => m.id === this.group.focused.id);
218
+ return (_a = this.group.members.find((_m, i) => i === focusedIndex - 1)) !== null && _a !== void 0 ? _a : this.group.last;
219
+ }
220
+ groupGetNext() {
221
+ var _a;
222
+ const focusedIndex = this.group.members.findIndex(m => m.id === this.group.focused.id);
223
+ return (_a = this.group.members.find((_m, i) => i === focusedIndex + 1)) !== null && _a !== void 0 ? _a : this.group.first;
224
+ }
225
+ groupSetChecked(newChecked, e) {
226
+ if (this.group.members.length > 1) {
227
+ const isKeyboardEvent = e.type === 'keydown';
228
+ const newIsAriaDisabled = newChecked.hasAttribute('aria-disabled');
229
+ const newIndex = this.group.members.findIndex(m => m === newChecked);
230
+ if (isKeyboardEvent)
231
+ newChecked.focus();
232
+ // if new is disabled, do not reset/set anything
233
+ if (!newIsAriaDisabled) {
234
+ // reset all group members but the newChecked
235
+ this.group.hosts
236
+ .filter((_h, i) => i !== newIndex)
237
+ .forEach(h => {
238
+ h.groupReset();
239
+ });
240
+ // if method was called by keyboard event, select newChecked
241
+ // else this has already been done by clicking on the newChecked element already
242
+ if (isKeyboardEvent)
243
+ newChecked.click();
244
+ }
245
+ }
246
+ }
247
+ setHostContext() {
248
+ this.hostContext = [];
249
+ let element = this.host;
250
+ while (element) {
251
+ const localName = element.localName;
252
+ const id = element.id ? `#${element.id}` : '';
253
+ const classes = element.classList.length > 0 ? `.${Array.from(element.classList).join('.')}` : '';
254
+ this.hostContext.push(`${localName}${id}${classes}`);
255
+ element = element.parentElement;
256
+ }
257
+ this.hostContext = this.hostContext.filter(ctx => this.HOST_CONTEXT_FILTERS.find(f => ctx.includes(f)));
258
+ }
259
+ connectedCallback() {
260
+ // remove as soon as all browser support :host-context()
261
+ this.setHostContext();
262
+ this.initialChecked = this.checked;
263
+ }
264
+ render() {
265
+ return (h(Host, { key: '80ac610a41127d4f58b9b4277fae53d505d8ecf6', "data-version": version, onClick: this.cardClickHandler }, h("div", { key: 'b9726bfed9d88d9399abfffde9ddf0f0f32ff7c2', class: {
266
+ 'card-control': true,
267
+ 'is-checked': this.checked,
268
+ 'is-disabled': this.disabled,
269
+ 'is-focused': this.focused,
270
+ 'is-valid': this.validity !== null && this.validity !== 'false',
271
+ 'is-invalid': this.validity === 'false',
272
+ }, "data-host-context": this.hostContext.join(' ') }, h("input", { key: '82b481fed1726afb514c1047996eefcd2dd006c0', ref: el => (this.control = el), id: this.controlId, class: "card-control--input form-check-input", type: this.type, name: this.name, value: this.value, checked: this.checked, "aria-describedby": `${this.controlId}_label ${this.controlId}_content`, "aria-disabled": this.disabled, "aria-invalid": this.validity === 'false', onClick: this.controlClickHandler, onInput: this.controlChangeHandler, onChange: this.controlChangeHandler, onFocus: this.controlFocusHandler, onBlur: this.controlFocusHandler, onKeyDown: this.controlKeyDownHandler }), h("label", { key: 'bb69978f1b17d58f9b5c6c36dc7c19b3054f9205', id: `${this.controlId}_label`, htmlFor: this.controlId, class: "card-control--label form-check-label" }, this.label, this.description ? (h("div", { class: "card-control--description" }, this.description)) : null), h("div", { key: '813965edb2e131981d22c587a09c5f231ded6591', class: "card-control--icon" }, h("slot", { key: 'b9b40240a3517178d8e211d1528008409a8a0052', name: "icon" }, this.icon ? h("post-icon", { name: this.icon }) : null)), h("div", { key: 'fb88d67194b81635246f580d8beddc3675f071ec', id: `${this.controlId}_content`, class: "card-control--content" }, h("slot", { key: 'c37fa28651f213d8ae9e8e0cee7ff16bcfae4dca' })))));
273
+ }
274
+ componentDidRender() {
275
+ this.groupCollectMembers();
276
+ }
277
+ componentDidLoad() {
278
+ this.validateControlLabel();
279
+ this.validateControlType();
280
+ }
281
+ // https://stenciljs.com/docs/form-associated
282
+ /* eslint-disable @stencil-community/own-methods-must-be-private */
283
+ formAssociatedCallback() {
284
+ this.controlSetChecked(this.checked);
285
+ }
286
+ formDisabledCallback(disabled) {
287
+ this.disabled = disabled;
288
+ }
289
+ formStateRestoreCallback(checked) {
290
+ this.controlSetChecked(checked);
291
+ }
292
+ formResetCallback() {
293
+ this.reset();
294
+ }
295
+ static get formAssociated() { return true; }
296
+ get host() { return this; }
297
+ static get watchers() { return {
298
+ "label": ["validateControlLabel"],
299
+ "type": ["validateControlType"],
300
+ "checked": ["updateControlChecked"],
301
+ "disabled": ["updateControlDisbled"]
302
+ }; }
303
+ static get style() { return PostCardControlStyle0; }
304
+ }, [65, "post-card-control", {
305
+ "label": [1],
306
+ "description": [1],
307
+ "type": [1],
308
+ "name": [1],
309
+ "value": [1],
310
+ "checked": [1028],
311
+ "disabled": [1028],
312
+ "validity": [1025],
313
+ "icon": [1],
314
+ "focused": [32],
315
+ "reset": [64],
316
+ "groupReset": [64]
317
+ }, undefined, {
318
+ "label": ["validateControlLabel"],
319
+ "type": ["validateControlType"],
320
+ "checked": ["updateControlChecked"],
321
+ "disabled": ["updateControlDisbled"]
322
+ }]);
323
+ function defineCustomElement() {
324
+ if (typeof customElements === "undefined") {
325
+ return;
326
+ }
327
+ const components = ["post-card-control", "post-icon"];
328
+ components.forEach(tagName => { switch (tagName) {
329
+ case "post-card-control":
330
+ if (!customElements.get(tagName)) {
331
+ customElements.define(tagName, PostCardControl);
332
+ }
333
+ break;
334
+ case "post-icon":
335
+ if (!customElements.get(tagName)) {
336
+ defineCustomElement$1();
337
+ }
338
+ break;
339
+ } });
340
+ }
341
+
342
+ export { PostCardControl as P, defineCustomElement as d };
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
  import { v as version } from './package.js';
3
- import { d as checkEmptyOrType } from './index2.js';
3
+ import { e as checkEmptyOrType } from './index2.js';
4
4
 
5
5
  function isMotionReduced() {
6
6
  return window.matchMedia('(prefers-reduced-motion: reduce)').matches;
@@ -24,7 +24,7 @@ const expand = (el) => {
24
24
  return el.animate([collapsedKeyframe, expandedKeyframe, finalKeyframe], animationOptions);
25
25
  };
26
26
 
27
- const postCollapsibleCss = ":host{display:block}";
27
+ const postCollapsibleCss = ":host{display:block}.collapse{overflow:hidden}";
28
28
  const PostCollapsibleStyle0 = postCollapsibleCss;
29
29
 
30
30
  const PostCollapsible = /*@__PURE__*/ proxyCustomElement(class PostCollapsible extends HTMLElement {
@@ -32,7 +32,7 @@ const PostCollapsible = /*@__PURE__*/ proxyCustomElement(class PostCollapsible e
32
32
  super();
33
33
  this.__registerHost();
34
34
  this.__attachShadow();
35
- this.collapseChange = createEvent(this, "collapseChange", 7);
35
+ this.postToggle = createEvent(this, "postToggle", 7);
36
36
  this.isLoaded = false;
37
37
  this.id = undefined;
38
38
  this.isOpen = true;
@@ -62,7 +62,7 @@ const PostCollapsible = /*@__PURE__*/ proxyCustomElement(class PostCollapsible e
62
62
  return open;
63
63
  this.isOpen = !this.isOpen;
64
64
  if (this.isLoaded)
65
- this.collapseChange.emit(this.isOpen);
65
+ this.postToggle.emit(this.isOpen);
66
66
  const animation = open ? expand(this.collapsible) : collapse(this.collapsible);
67
67
  if (!this.isLoaded || isMotionReduced())
68
68
  animation.finish();
@@ -71,7 +71,7 @@ const PostCollapsible = /*@__PURE__*/ proxyCustomElement(class PostCollapsible e
71
71
  return this.isOpen;
72
72
  }
73
73
  render() {
74
- return (h(Host, { key: 'cf0622c0844054ac31023781a393b174ac263397', id: this.id, "data-version": version }, h("div", { key: '4138a3402559b59bc2994eace597bbf27623f806', class: "collapse", id: `${this.id}--collapse`, ref: el => (this.collapsible = el) }, h("slot", { key: '9a6fd61dcc0925b8ac1bf2353c4a093ae23fac22' }))));
74
+ return (h(Host, { key: '24c0478b14a05f9d4ed60d2b0ab8c51de191be79', id: this.id, "data-version": version }, h("div", { key: 'ee070ba509f73e9ebe5bbc82276fe9be14ed4065', class: "collapse", id: `${this.id}--collapse`, ref: el => (this.collapsible = el) }, h("slot", { key: 'a2381f2fe4f777b68219a12efb8cbc90fe5e8206' }))));
75
75
  }
76
76
  get host() { return this; }
77
77
  static get watchers() { return {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { c as checkEmptyOrOneOf, d as checkEmptyOrType, a as checkType } from './index2.js';
2
+ import { c as checkEmptyOrOneOf, e as checkEmptyOrType, a as checkType } from './index2.js';
3
3
  import { v as version } from './package.js';
4
4
  import { c as checkNonEmpty } from './check-non-empty.js';
5
5
 
@@ -72,7 +72,7 @@ const PostIcon = /*@__PURE__*/ proxyCustomElement(class PostIcon extends HTMLEle
72
72
  const metaBase = (_b = (_a = document.head
73
73
  .querySelector('meta[name="design-system-settings"][data-post-icon-base]')) === null || _a === void 0 ? void 0 : _a.getAttribute('data-post-icon-base')) !== null && _b !== void 0 ? _b : null;
74
74
  const fileBase = `${(_d = (_c = this.base) !== null && _c !== void 0 ? _c : metaBase) !== null && _d !== void 0 ? _d : CDN_URL}/`.replace(/\/\/$/, '/');
75
- const fileName = `${this.name}.svg#icon`;
75
+ const fileName = `${this.name}.svg`;
76
76
  const filePath = `${fileBase}${fileName}`;
77
77
  this.path = new URL(filePath, window.location.origin).toString();
78
78
  }
@@ -86,7 +86,7 @@ const PostIcon = /*@__PURE__*/ proxyCustomElement(class PostIcon extends HTMLEle
86
86
  })
87
87
  .filter(([_key, value]) => value !== null)
88
88
  .reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
89
- return (h(Host, { key: '8a892fa9fa24e07995453e0e491328fde76dc496', "data-version": version }, h("span", { key: '14761a251eb0ab02df268aa23597151ccb71ebc8', style: svgStyles })));
89
+ return (h(Host, { key: '67d24132c9748fda27201089dc343db992035d9c', "data-version": version }, h("span", { key: '1333b3fd2b809c8baf13f6fbd3aa443e43a1bd66', style: svgStyles })));
90
90
  }
91
91
  get host() { return this; }
92
92
  static get watchers() { return {
@@ -3,7 +3,7 @@ import { v as version } from './package.js';
3
3
  import { g as getAttributeObserver } from './attribute-observer.js';
4
4
  import { d as defineCustomElement$1 } from './post-popovercontainer2.js';
5
5
 
6
- const postPopoverCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;-webkit-appearance:button;appearance:button;outline:none;outline-offset:2px;border-radius:4px;color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline:2px solid var(--post-contrast-color)}.btn-close::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:var(--post-contrast-color)}.btn-close:disabled{color:var(--post-gray-40)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51;display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{display:flex;align-items:self-start;padding:.5em;max-width:min(66vw,60rem)}@media (max-width: 599.98px){.popover-container{max-width:100%}}.popover-content{padding:.5em}";
6
+ const postPopoverCss = "/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;-webkit-appearance:button;appearance:button;border-radius:4px;color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{outline-style:none !important;outline-offset:2px !important;outline-width:2px !important;outline-color:var(--post-focus-color) !important}.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:solid !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:solid !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem}:is(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .btn-close{color:var(--post-contrast-color)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:var(--post-contrast-color)}.btn-close:disabled{color:var(--post-gray-40)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51;display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{display:flex;align-items:self-start;padding:.5em;max-width:min(66vw,60rem)}@media (max-width: 599.98px){.popover-container{max-width:100%}}.popover-content{padding:.5em}";
7
7
  const PostPopoverStyle0 = postPopoverCss;
8
8
 
9
9
  /**
@@ -96,7 +96,7 @@ const PostPopover = /*@__PURE__*/ proxyCustomElement(class PostPopover extends H
96
96
  this.triggers.forEach(trigger => trigger.setAttribute('aria-expanded', 'false'));
97
97
  }
98
98
  render() {
99
- return (h(Host, { key: '90cd97eedfdecb6666c5825cd09bb323cf857cbb', "data-version": version }, h("post-popovercontainer", { key: 'fe555322454124f4b9a618c634f2ae504ec89c07', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: 'd6e30229dd8d38c95e165d1fc55b1c7af5c7b5e2', class: "popover-container" }, h("div", { key: 'c43c1347bb6bfe3532387693b1761b53533584ec', class: "popover-content" }, h("slot", { key: '24a4aa1df86497a4fe4b72adaac76f6e69db9d9e' })), h("button", { key: '3a5e52f480ddd1ef41d068e476d2a8c5f7d77c4a', class: "btn-close", onClick: () => this.hide() }, h("span", { key: '493310100d3f76dfe5bf6cf1d64250b7551be43c', class: "visually-hidden" }, this.closeButtonCaption))))));
99
+ return (h(Host, { key: '0ff53c82fb4ea06b0112cce0845e3ae06bdec959', "data-version": version }, h("post-popovercontainer", { key: '7375b83987e86015ee3892c5a9a829c6d04f78d3', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '6c6859eeb8d6abdf82757d8ea785e52ba2640243', class: "popover-container" }, h("div", { key: '7c28716d8b3c1d0322cf59781ae514e99ea5360f', class: "popover-content" }, h("slot", { key: 'e2c1f5166b2212f408932680cf6b33372404e28e' })), h("button", { key: 'ced34214917296d0b2f24a4584c409d9f3ee2d2d', class: "btn-close", onClick: () => this.hide() }, h("span", { key: '36ad0884209774bf95ab0cef26ae27a531eca2f8', class: "visually-hidden" }, this.closeButtonCaption))))));
100
100
  }
101
101
  get host() { return this; }
102
102
  static get style() { return PostPopoverStyle0; }