@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,309 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-961099d2.js';
2
+ import { c as checkOneOf } from './check-one-of-6b3ef8eb.js';
3
+ import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
4
+ import { v as version } from './package-1242b80d.js';
5
+
6
+ function parse(scss) {
7
+ return Object.entries(scss).reduce((object, [path, value]) => {
8
+ let output = object;
9
+ path.split('_').forEach((key, i, values) => {
10
+ const pathKey = key;
11
+ const normalized = /^\[.*\]$/.test(value) ? JSON.parse(value) : value;
12
+ const pathValue = i >= values.length - 1 ? normalized : output[pathKey] || {};
13
+ output[pathKey] = pathValue;
14
+ output = output[pathKey];
15
+ });
16
+ return object;
17
+ }, {});
18
+ }
19
+
20
+ function styleInject(css, ref) {
21
+ if ( ref === void 0 ) ref = {};
22
+ var insertAt = ref.insertAt;
23
+
24
+ if (!css || typeof document === 'undefined') { return; }
25
+
26
+ var head = document.head || document.getElementsByTagName('head')[0];
27
+ var style = document.createElement('style');
28
+ style.type = 'text/css';
29
+
30
+ if (insertAt === 'top') {
31
+ if (head.firstChild) {
32
+ head.insertBefore(style, head.firstChild);
33
+ } else {
34
+ head.appendChild(style);
35
+ }
36
+ } else {
37
+ head.appendChild(style);
38
+ }
39
+
40
+ if (style.styleSheet) {
41
+ style.styleSheet.cssText = css;
42
+ } else {
43
+ style.appendChild(document.createTextNode(css));
44
+ }
45
+ }
46
+
47
+ 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 */";
48
+ 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]\"]"};
49
+ styleInject(css_248z);
50
+
51
+ 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}";
52
+ const PostCardControlStyle0 = postCardControlCss;
53
+
54
+ const SCSS_VARIABLES = parse(scss);
55
+ const EVENT_MAP = {
56
+ input: 'postInput',
57
+ change: 'postChange',
58
+ };
59
+ let cardControlIds = 0;
60
+ const PostCardControl = class {
61
+ /**
62
+ * A public method to reset the controls `checked` and `validity` state.
63
+ * The validity state is set to `null`, so it's neither valid nor invalid.
64
+ */
65
+ async reset() {
66
+ this.validity = null;
67
+ this.controlSetChecked(this.initialChecked);
68
+ }
69
+ /**
70
+ * A hidden public method to reset the group controls `checked` state to `false`.
71
+ */
72
+ async groupReset() {
73
+ if (this.disabled)
74
+ this.control.checked = this.checked = false;
75
+ this.controlSetChecked(false);
76
+ }
77
+ validateControlLabel(label = this.label) {
78
+ checkNonEmpty(label, 'The "post-card-control" element requires its "label" property to be set.');
79
+ }
80
+ validateControlType(type = this.type) {
81
+ checkOneOf(type, ['checkbox', 'radio'], 'The "post-card-control" element requires its "type" prop to be one of either "checkbox" or "radio".');
82
+ }
83
+ updateControlChecked(checked = this.checked) {
84
+ this.controlSetChecked(checked);
85
+ }
86
+ updateControlDisbled() {
87
+ this.controlSetChecked(this.checked);
88
+ }
89
+ constructor(hostRef) {
90
+ registerInstance(this, hostRef);
91
+ this.postInput = createEvent(this, "postInput", 7);
92
+ this.postChange = createEvent(this, "postChange", 7);
93
+ if (hostRef.$hostElement$["s-ei"]) {
94
+ this.internals = hostRef.$hostElement$["s-ei"];
95
+ }
96
+ else {
97
+ this.internals = hostRef.$hostElement$.attachInternals();
98
+ hostRef.$hostElement$["s-ei"] = this.internals;
99
+ }
100
+ this.KEYCODES = {
101
+ SPACE: 'Space',
102
+ LEFT: 'ArrowLeft',
103
+ UP: 'ArrowUp',
104
+ RIGHT: 'ArrowRight',
105
+ DOWN: 'ArrowDown',
106
+ };
107
+ this.group = {
108
+ hosts: [],
109
+ members: [],
110
+ first: null,
111
+ last: null,
112
+ checked: null,
113
+ focused: null,
114
+ };
115
+ this.controlId = `PostCardControl_${cardControlIds++}`;
116
+ // remove as soon as all browser support the :host-context() selector
117
+ this.HOST_CONTEXT_FILTERS = ['fieldset', ...SCSS_VARIABLES['dark-bg-selectors']];
118
+ this.focused = false;
119
+ this.label = undefined;
120
+ this.description = null;
121
+ this.type = undefined;
122
+ this.name = null;
123
+ this.value = null;
124
+ this.checked = false;
125
+ this.disabled = false;
126
+ this.validity = null;
127
+ this.icon = null;
128
+ this.cardClickHandler = this.cardClickHandler.bind(this);
129
+ this.controlClickHandler = this.controlClickHandler.bind(this);
130
+ this.controlChangeHandler = this.controlChangeHandler.bind(this);
131
+ this.controlFocusHandler = this.controlFocusHandler.bind(this);
132
+ this.controlKeyDownHandler = this.controlKeyDownHandler.bind(this);
133
+ }
134
+ cardClickHandler(e) {
135
+ e.stopPropagation();
136
+ // if this was not the clicked element anyway, trigger click on control to change it
137
+ if (e.target !== this.control)
138
+ this.control.click();
139
+ }
140
+ controlClickHandler(e) {
141
+ e.stopPropagation();
142
+ // if control is disabled do nothing
143
+ // else control value will fire a change event, which is handled in the controlChangeHandler method
144
+ if (this.disabled)
145
+ e.preventDefault();
146
+ }
147
+ controlChangeHandler(e) {
148
+ e.stopPropagation();
149
+ this.groupCollectMembers();
150
+ this.controlSetChecked(this.control.checked, e);
151
+ this.groupSetChecked(this.control, e);
152
+ }
153
+ controlFocusHandler() {
154
+ this.focused = this.host === document.activeElement;
155
+ }
156
+ // https://googlechromelabs.github.io/howto-components/howto-radio-group/
157
+ controlKeyDownHandler(e) {
158
+ if (this.type === 'radio') {
159
+ e.stopPropagation();
160
+ if (Object.values(this.KEYCODES).includes(e.code))
161
+ e.preventDefault();
162
+ this.groupCollectMembers();
163
+ switch (e.code) {
164
+ case this.KEYCODES.UP:
165
+ case this.KEYCODES.LEFT:
166
+ this.groupSetChecked(this.groupGetPrev(), e);
167
+ break;
168
+ case this.KEYCODES.DOWN:
169
+ case this.KEYCODES.RIGHT:
170
+ this.groupSetChecked(this.groupGetNext(), e);
171
+ break;
172
+ case this.KEYCODES.SPACE:
173
+ this.groupSetChecked(this.control, e);
174
+ break;
175
+ }
176
+ }
177
+ }
178
+ controlSetChecked(checked, e) {
179
+ if (!this.control)
180
+ return;
181
+ if (this.disabled) {
182
+ this.internals.setFormValue(null);
183
+ }
184
+ else {
185
+ this.control.checked = this.checked = checked;
186
+ this.internals.setFormValue(this.checked ? this.control.value : null);
187
+ if (e) {
188
+ const isCheckbox = this.type === 'checkbox';
189
+ const isRadioAndChecked = this.type === 'radio' && this.checked;
190
+ // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox
191
+ // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio
192
+ // if an event parameter is given and a native control would fire an event, emit the corresponding event to the light dom
193
+ if (isCheckbox || isRadioAndChecked)
194
+ this[EVENT_MAP[e.type]].emit({ state: this.checked, value: this.value });
195
+ }
196
+ }
197
+ }
198
+ groupCollectMembers() {
199
+ var _a, _b;
200
+ if (this.type === 'radio' && this.name) {
201
+ this.group.hosts = Array.from(document.querySelectorAll(`post-card-control[type="radio"][name="${this.name}"]`));
202
+ this.group.members = this.group.hosts
203
+ .map(m => m.shadowRoot.querySelector('input[type="radio"]'))
204
+ .filter(m => m !== null);
205
+ if (this.group.members.length > 1) {
206
+ this.group.first = this.group.members[0];
207
+ this.group.last = this.group.members[this.group.members.length - 1];
208
+ this.group.checked = (_a = this.group.members.find(m => m.checked)) !== null && _a !== void 0 ? _a : null;
209
+ this.group.focused =
210
+ (_b = this.group.members.find(m => m.getRootNode().host === document.activeElement)) !== null && _b !== void 0 ? _b : this.group.first;
211
+ const focusableMember = this.group.checked || this.group.focused || this.group.first;
212
+ this.group.members.forEach(m => {
213
+ m.tabIndex = m === focusableMember ? 0 : -1;
214
+ });
215
+ }
216
+ }
217
+ }
218
+ groupGetPrev() {
219
+ var _a;
220
+ const focusedIndex = this.group.members.findIndex(m => m.id === this.group.focused.id);
221
+ return (_a = this.group.members.find((_m, i) => i === focusedIndex - 1)) !== null && _a !== void 0 ? _a : this.group.last;
222
+ }
223
+ groupGetNext() {
224
+ var _a;
225
+ const focusedIndex = this.group.members.findIndex(m => m.id === this.group.focused.id);
226
+ return (_a = this.group.members.find((_m, i) => i === focusedIndex + 1)) !== null && _a !== void 0 ? _a : this.group.first;
227
+ }
228
+ groupSetChecked(newChecked, e) {
229
+ if (this.group.members.length > 1) {
230
+ const isKeyboardEvent = e.type === 'keydown';
231
+ const newIsAriaDisabled = newChecked.hasAttribute('aria-disabled');
232
+ const newIndex = this.group.members.findIndex(m => m === newChecked);
233
+ if (isKeyboardEvent)
234
+ newChecked.focus();
235
+ // if new is disabled, do not reset/set anything
236
+ if (!newIsAriaDisabled) {
237
+ // reset all group members but the newChecked
238
+ this.group.hosts
239
+ .filter((_h, i) => i !== newIndex)
240
+ .forEach(h => {
241
+ h.groupReset();
242
+ });
243
+ // if method was called by keyboard event, select newChecked
244
+ // else this has already been done by clicking on the newChecked element already
245
+ if (isKeyboardEvent)
246
+ newChecked.click();
247
+ }
248
+ }
249
+ }
250
+ setHostContext() {
251
+ this.hostContext = [];
252
+ let element = this.host;
253
+ while (element) {
254
+ const localName = element.localName;
255
+ const id = element.id ? `#${element.id}` : '';
256
+ const classes = element.classList.length > 0 ? `.${Array.from(element.classList).join('.')}` : '';
257
+ this.hostContext.push(`${localName}${id}${classes}`);
258
+ element = element.parentElement;
259
+ }
260
+ this.hostContext = this.hostContext.filter(ctx => this.HOST_CONTEXT_FILTERS.find(f => ctx.includes(f)));
261
+ }
262
+ connectedCallback() {
263
+ // remove as soon as all browser support :host-context()
264
+ this.setHostContext();
265
+ this.initialChecked = this.checked;
266
+ }
267
+ render() {
268
+ return (h(Host, { key: '80ac610a41127d4f58b9b4277fae53d505d8ecf6', "data-version": version, onClick: this.cardClickHandler }, h("div", { key: 'b9726bfed9d88d9399abfffde9ddf0f0f32ff7c2', class: {
269
+ 'card-control': true,
270
+ 'is-checked': this.checked,
271
+ 'is-disabled': this.disabled,
272
+ 'is-focused': this.focused,
273
+ 'is-valid': this.validity !== null && this.validity !== 'false',
274
+ 'is-invalid': this.validity === 'false',
275
+ }, "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' })))));
276
+ }
277
+ componentDidRender() {
278
+ this.groupCollectMembers();
279
+ }
280
+ componentDidLoad() {
281
+ this.validateControlLabel();
282
+ this.validateControlType();
283
+ }
284
+ // https://stenciljs.com/docs/form-associated
285
+ /* eslint-disable @stencil-community/own-methods-must-be-private */
286
+ formAssociatedCallback() {
287
+ this.controlSetChecked(this.checked);
288
+ }
289
+ formDisabledCallback(disabled) {
290
+ this.disabled = disabled;
291
+ }
292
+ formStateRestoreCallback(checked) {
293
+ this.controlSetChecked(checked);
294
+ }
295
+ formResetCallback() {
296
+ this.reset();
297
+ }
298
+ static get formAssociated() { return true; }
299
+ get host() { return getElement(this); }
300
+ static get watchers() { return {
301
+ "label": ["validateControlLabel"],
302
+ "type": ["validateControlType"],
303
+ "checked": ["updateControlChecked"],
304
+ "disabled": ["updateControlDisbled"]
305
+ }; }
306
+ };
307
+ PostCardControl.style = PostCardControlStyle0;
308
+
309
+ export { PostCardControl as P };
@@ -0,0 +1,6 @@
1
+ export { P as post_card_control } from './post-card-control-b23e1e6f.js';
2
+ import './index-961099d2.js';
3
+ import './check-one-of-6b3ef8eb.js';
4
+ import './check-non-empty-58bd6b17.js';
5
+ import './constants-8d548297.js';
6
+ import './package-1242b80d.js';
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-1708db56.js';
2
- import { v as version } from './package-50a9c0c3.js';
3
- import { d as checkEmptyOrType } from './index-b444db27.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-961099d2.js';
2
+ import { v as version } from './package-1242b80d.js';
3
+ import { d as checkEmptyOrType } from './index-d1eba94c.js';
4
4
 
5
5
  function isMotionReduced() {
6
6
  return window.matchMedia('(prefers-reduced-motion: reduce)').matches;
@@ -24,13 +24,13 @@ 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 = class {
31
31
  constructor(hostRef) {
32
32
  registerInstance(this, hostRef);
33
- this.collapseChange = createEvent(this, "collapseChange", 7);
33
+ this.postToggle = createEvent(this, "postToggle", 7);
34
34
  this.isLoaded = false;
35
35
  this.id = undefined;
36
36
  this.isOpen = true;
@@ -60,7 +60,7 @@ const PostCollapsible = class {
60
60
  return open;
61
61
  this.isOpen = !this.isOpen;
62
62
  if (this.isLoaded)
63
- this.collapseChange.emit(this.isOpen);
63
+ this.postToggle.emit(this.isOpen);
64
64
  const animation = open ? expand(this.collapsible) : collapse(this.collapsible);
65
65
  if (!this.isLoaded || isMotionReduced())
66
66
  animation.finish();
@@ -69,7 +69,7 @@ const PostCollapsible = class {
69
69
  return this.isOpen;
70
70
  }
71
71
  render() {
72
- 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' }))));
72
+ 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' }))));
73
73
  }
74
74
  get host() { return getElement(this); }
75
75
  static get watchers() { return {
@@ -1,5 +1,6 @@
1
- export { P as post_collapsible } from './post-collapsible-50dc361b.js';
2
- import './index-1708db56.js';
3
- import './package-50a9c0c3.js';
4
- import './index-b444db27.js';
1
+ export { P as post_collapsible } from './post-collapsible-d848eb2a.js';
2
+ import './index-961099d2.js';
3
+ import './package-1242b80d.js';
4
+ import './index-d1eba94c.js';
5
5
  import './constants-8d548297.js';
6
+ import './check-one-of-6b3ef8eb.js';
@@ -1,8 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-1708db56.js';
2
- export { s as setNonce } from './index-1708db56.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-961099d2.js';
2
+ export { s as setNonce } from './index-961099d2.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
3
4
 
4
5
  /*
5
- Stencil Client Patch Browser v4.12.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.14.0 | MIT Licensed | https://stenciljs.com
6
7
  */
7
8
  const patchBrowser = () => {
8
9
  const importMeta = import.meta.url;
@@ -13,6 +14,7 @@ const patchBrowser = () => {
13
14
  return promiseResolve(opts);
14
15
  };
15
16
 
16
- patchBrowser().then(options => {
17
- return bootstrapLazy([["post-accordion-item",[[1,"post-accordion-item",{"collapsed":[4],"headingLevel":[2,"heading-level"],"id":[32],"isOpen":[32],"toggle":[64]},[[0,"collapseChange","onCollapseChange"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert",[[1,"post-alert",{"dismissible":[4],"dismissLabel":[1,"dismiss-label"],"fixed":[4],"icon":[1],"type":[1],"alertId":[32],"classes":[32],"hasActions":[32],"hasHeading":[32],"onDismissButtonClick":[32],"dismiss":[64]},null,{"dismissible":["validateDismissible"],"dismissLabel":["validateDismissLabel"],"fixed":["validateFixed"],"icon":["validateIcon"],"type":["validateType"]}]]],["post-popover",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-rating",[[1,"post-rating",{"label":[1],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]}]]],["post-tooltip",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-accordion",[[1,"post-accordion",{"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"collapseChange","collapseChangeHandler"]]]]],["post-tab-header",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible",[[1,"post-collapsible",{"collapsed":[4],"id":[32],"isOpen":[32],"toggle":[64]},null,{"collapsed":["validateCollapsed"]}]]],["post-icon",[[1,"post-icon",{"animation":[1],"base":[1],"flipH":[4,"flip-h"],"flipV":[4,"flip-v"],"name":[1],"rotate":[2],"scale":[2],"svgStyles":[32],"svgOutput":[32]},null,{"animation":["validateAnimation"],"base":["validateBase"],"flipH":["validateFlipH"],"flipV":["validateFlipV"],"name":["validateName"],"rotate":["validateRotate"],"scale":["validateScale"]}]]],["post-popovercontainer",[[1,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]]], options);
17
+ patchBrowser().then(async (options) => {
18
+ await globalScripts();
19
+ return bootstrapLazy([["post-accordion-item",[[1,"post-accordion-item",{"collapsed":[4],"headingLevel":[2,"heading-level"],"id":[32],"isOpen":[32],"toggle":[64]},[[0,"postToggle","onCollapseToggle"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert",[[1,"post-alert",{"dismissible":[4],"dismissLabel":[1,"dismiss-label"],"fixed":[4],"icon":[1],"type":[1],"alertId":[32],"classes":[32],"hasActions":[32],"hasHeading":[32],"onDismissButtonClick":[32],"dismiss":[64]},null,{"dismissible":["validateDismissible"],"dismissLabel":["validateDismissLabel"],"fixed":["validateFixed"],"icon":["validateIcon"],"type":["validateType"]}]]],["post-card-control",[[65,"post-card-control",{"label":[1],"description":[1],"type":[1],"name":[1],"value":[1],"checked":[1028],"disabled":[1028],"validity":[1025],"icon":[1],"focused":[32],"reset":[64],"groupReset":[64]},null,{"label":["validateControlLabel"],"type":["validateControlType"],"checked":["updateControlChecked"],"disabled":["updateControlDisbled"]}]]],["post-popovercontainer",[[1,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-popover",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-icon",[[1,"post-icon",{"animation":[1],"base":[1],"flipH":[4,"flip-h"],"flipV":[4,"flip-v"],"name":[1],"rotate":[2],"scale":[2],"svgStyles":[32],"svgOutput":[32]},null,{"animation":["validateAnimation"],"base":["validateBase"],"flipH":["validateFlipH"],"flipV":["validateFlipV"],"name":["validateName"],"rotate":["validateRotate"],"scale":["validateScale"]}]]],["post-rating",[[1,"post-rating",{"label":[1],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]}]]],["post-tag",[[1,"post-tag",{"variant":[1],"size":[1],"icon":[1],"classes":[32]},null,{"variant":["variantChanged"],"size":["sizeChanged"]}]]],["post-tooltip",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-accordion",[[1,"post-accordion",{"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"postToggle","collapseToggleHandler"]]]]],["post-tab-header",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible",[[1,"post-collapsible",{"collapsed":[4],"id":[32],"isOpen":[32],"toggle":[64]},null,{"collapsed":["validateCollapsed"]}]]]], options);
18
20
  });
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-1708db56.js';
2
- import { c as checkEmptyOrOneOf, d as checkEmptyOrType, a as checkType } from './index-b444db27.js';
3
- import { v as version } from './package-50a9c0c3.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-961099d2.js';
2
+ import { c as checkEmptyOrOneOf, d as checkEmptyOrType, a as checkType } from './index-d1eba94c.js';
3
+ import { v as version } from './package-1242b80d.js';
4
4
  import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
5
5
 
6
6
  const postIconCss = ":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";
@@ -70,7 +70,7 @@ const PostIcon = class {
70
70
  const metaBase = (_b = (_a = document.head
71
71
  .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;
72
72
  const fileBase = `${(_d = (_c = this.base) !== null && _c !== void 0 ? _c : metaBase) !== null && _d !== void 0 ? _d : CDN_URL}/`.replace(/\/\/$/, '/');
73
- const fileName = `${this.name}.svg#icon`;
73
+ const fileName = `${this.name}.svg`;
74
74
  const filePath = `${fileBase}${fileName}`;
75
75
  this.path = new URL(filePath, window.location.origin).toString();
76
76
  }
@@ -84,7 +84,7 @@ const PostIcon = class {
84
84
  })
85
85
  .filter(([_key, value]) => value !== null)
86
86
  .reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
87
- return (h(Host, { key: '8a892fa9fa24e07995453e0e491328fde76dc496', "data-version": version }, h("span", { key: '14761a251eb0ab02df268aa23597151ccb71ebc8', style: svgStyles })));
87
+ return (h(Host, { key: '67d24132c9748fda27201089dc343db992035d9c', "data-version": version }, h("span", { key: '1333b3fd2b809c8baf13f6fbd3aa443e43a1bd66', style: svgStyles })));
88
88
  }
89
89
  get host() { return getElement(this); }
90
90
  static get watchers() { return {
@@ -1,6 +1,7 @@
1
- export { P as post_icon } from './post-icon-00f314ae.js';
2
- import './index-1708db56.js';
3
- import './index-b444db27.js';
1
+ export { P as post_icon } from './post-icon-811654f7.js';
2
+ import './index-961099d2.js';
3
+ import './index-d1eba94c.js';
4
4
  import './constants-8d548297.js';
5
- import './package-50a9c0c3.js';
5
+ import './check-one-of-6b3ef8eb.js';
6
+ import './package-1242b80d.js';
6
7
  import './check-non-empty-58bd6b17.js';