@swisspost/design-system-components 7.0.0 → 7.1.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 (180) hide show
  1. package/dist/cjs/heading-levels-608d432e.js +5 -0
  2. package/dist/cjs/index-de783b23.js +1394 -0
  3. package/dist/cjs/index.cjs.js +18 -17
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/{package-45af106a.js → package-dacf5ec2.js} +1 -1
  6. package/dist/cjs/{post-accordion-7507f838.js → post-accordion-225de951.js} +28 -13
  7. package/dist/cjs/{post-accordion-item-5bf4d98b.js → post-accordion-item-935e122a.js} +7 -8
  8. package/dist/cjs/post-accordion-item.cjs.entry.js +4 -3
  9. package/dist/cjs/post-accordion.cjs.entry.js +5 -3
  10. package/dist/cjs/{post-alert-9c39c854.js → post-alert-6041a34c.js} +6 -6
  11. package/dist/cjs/post-alert.cjs.entry.js +3 -3
  12. package/dist/cjs/post-card-control-3c089d8e.js +314 -0
  13. package/dist/cjs/post-card-control.cjs.entry.js +3 -3
  14. package/dist/cjs/{post-collapsible-00319f1f.js → post-collapsible-562268e9.js} +3 -3
  15. package/dist/cjs/post-collapsible.cjs.entry.js +3 -3
  16. package/dist/cjs/post-components.cjs.js +10 -10
  17. package/dist/cjs/{post-icon-09845341.js → post-icon-973d5c46.js} +3 -3
  18. package/dist/cjs/post-icon.cjs.entry.js +3 -3
  19. package/dist/cjs/{post-popover-3b6aaeae.js → post-popover-b0844e71.js} +4 -4
  20. package/dist/cjs/post-popover.cjs.entry.js +3 -3
  21. package/dist/cjs/{post-popovercontainer-0b8343ac.js → post-popovercontainer-5bb6a804.js} +236 -18
  22. package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
  23. package/dist/cjs/{post-rating-285f966e.js → post-rating-d2845096.js} +3 -3
  24. package/dist/cjs/post-rating.cjs.entry.js +3 -3
  25. package/dist/cjs/{post-tab-header-f1c16656.js → post-tab-header-6496a51b.js} +4 -4
  26. package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
  27. package/dist/cjs/{post-tab-panel-9c20a84e.js → post-tab-panel-25bd8c74.js} +3 -3
  28. package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
  29. package/dist/cjs/{post-tabs-75e71078.js → post-tabs-4e4ee252.js} +3 -3
  30. package/dist/cjs/post-tabs.cjs.entry.js +3 -3
  31. package/dist/cjs/{post-tag-942085fd.js → post-tag-cbc458ed.js} +8 -4
  32. package/dist/cjs/post-tag.cjs.entry.js +3 -3
  33. package/dist/cjs/{post-tooltip-94d4f21f.js → post-tooltip-805bc0c0.js} +4 -3
  34. package/dist/cjs/post-tooltip.cjs.entry.js +3 -3
  35. package/dist/collection/collection-manifest.json +2 -2
  36. package/dist/collection/components/post-accordion/post-accordion.js +54 -13
  37. package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
  38. package/dist/collection/components/post-accordion-item/post-accordion-item.js +12 -9
  39. package/dist/collection/components/post-alert/post-alert.css +1 -1
  40. package/dist/collection/components/post-alert/post-alert.js +6 -6
  41. package/dist/collection/components/post-card-control/post-card-control.css +1 -1
  42. package/dist/collection/components/post-card-control/post-card-control.js +14 -11
  43. package/dist/collection/components/post-collapsible/post-collapsible.js +3 -3
  44. package/dist/collection/components/post-icon/post-icon.js +3 -3
  45. package/dist/collection/components/post-popover/post-popover.css +1 -1
  46. package/dist/collection/components/post-popover/post-popover.js +3 -3
  47. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
  48. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +4 -4
  49. package/dist/collection/components/post-rating/post-rating.js +2 -2
  50. package/dist/collection/components/post-tab-header/post-tab-header.css +1 -1
  51. package/dist/collection/components/post-tab-header/post-tab-header.js +3 -3
  52. package/dist/collection/components/post-tab-panel/post-tab-panel.js +2 -2
  53. package/dist/collection/components/post-tabs/post-tabs.js +3 -3
  54. package/dist/collection/components/post-tag/post-tag.js +9 -5
  55. package/dist/collection/components/post-tooltip/post-tooltip.js +3 -3
  56. package/dist/collection/types/heading-levels.js +1 -0
  57. package/dist/collection/types/index.js +1 -0
  58. package/dist/components/check-one-of.js +6 -0
  59. package/dist/components/heading-levels.js +3 -0
  60. package/dist/components/index2.js +2 -6
  61. package/dist/components/package.js +1 -1
  62. package/dist/components/post-accordion-item2.js +5 -6
  63. package/dist/components/post-accordion2.js +30 -12
  64. package/dist/components/post-alert2.js +4 -4
  65. package/dist/components/post-card-control2.js +12 -9
  66. package/dist/components/post-collapsible2.js +2 -2
  67. package/dist/components/post-icon2.js +2 -2
  68. package/dist/components/post-popover2.js +2 -2
  69. package/dist/components/post-popovercontainer2.js +234 -16
  70. package/dist/components/post-rating2.js +1 -1
  71. package/dist/components/post-tab-header2.js +2 -2
  72. package/dist/components/post-tab-panel2.js +1 -1
  73. package/dist/components/post-tabs2.js +1 -1
  74. package/dist/components/post-tag2.js +6 -2
  75. package/dist/components/post-tooltip2.js +2 -1
  76. package/dist/docs.d.ts +34 -0
  77. package/dist/docs.json +76 -22
  78. package/dist/esm/heading-levels-5b7b4349.js +3 -0
  79. package/dist/esm/index-cf1d5611.js +1365 -0
  80. package/dist/esm/index.js +18 -17
  81. package/dist/esm/loader.js +3 -3
  82. package/dist/esm/{package-1242b80d.js → package-a837c1ad.js} +1 -1
  83. package/dist/esm/{post-accordion-bfd058bc.js → post-accordion-fdd22c1d.js} +28 -13
  84. package/dist/esm/{post-accordion-item-4fa44842.js → post-accordion-item-336f568c.js} +7 -8
  85. package/dist/esm/post-accordion-item.entry.js +4 -3
  86. package/dist/esm/post-accordion.entry.js +5 -3
  87. package/dist/esm/{post-alert-192d0176.js → post-alert-f48527d8.js} +6 -6
  88. package/dist/esm/post-alert.entry.js +3 -3
  89. package/dist/esm/post-card-control-3e6a5855.js +312 -0
  90. package/dist/esm/post-card-control.entry.js +3 -3
  91. package/dist/esm/{post-collapsible-d848eb2a.js → post-collapsible-486ab980.js} +3 -3
  92. package/dist/esm/post-collapsible.entry.js +3 -3
  93. package/dist/esm/post-components.js +11 -11
  94. package/dist/esm/{post-icon-811654f7.js → post-icon-19fdfc4d.js} +3 -3
  95. package/dist/esm/post-icon.entry.js +3 -3
  96. package/dist/esm/{post-popover-b48a9d7c.js → post-popover-17164186.js} +4 -4
  97. package/dist/esm/post-popover.entry.js +3 -3
  98. package/dist/esm/{post-popovercontainer-7413bb41.js → post-popovercontainer-d19f9646.js} +236 -18
  99. package/dist/esm/post-popovercontainer.entry.js +3 -3
  100. package/dist/esm/{post-rating-806de800.js → post-rating-ea204778.js} +3 -3
  101. package/dist/esm/post-rating.entry.js +3 -3
  102. package/dist/esm/{post-tab-header-95f0dc6a.js → post-tab-header-a97cdef2.js} +4 -4
  103. package/dist/esm/post-tab-header.entry.js +3 -3
  104. package/dist/esm/{post-tab-panel-d7145a70.js → post-tab-panel-e6999395.js} +3 -3
  105. package/dist/esm/post-tab-panel.entry.js +3 -3
  106. package/dist/esm/{post-tabs-f130a7d8.js → post-tabs-524c699a.js} +3 -3
  107. package/dist/esm/post-tabs.entry.js +3 -3
  108. package/dist/esm/{post-tag-7c329d6c.js → post-tag-e2035a81.js} +8 -4
  109. package/dist/esm/post-tag.entry.js +3 -3
  110. package/dist/esm/{post-tooltip-942bd014.js → post-tooltip-e4fc9c0c.js} +4 -3
  111. package/dist/esm/post-tooltip.entry.js +3 -3
  112. package/dist/post-components/index.esm.js +1 -1
  113. package/dist/post-components/p-07cc4853.entry.js +1 -0
  114. package/dist/post-components/p-0e410cec.entry.js +1 -0
  115. package/dist/post-components/p-14e22434.entry.js +1 -0
  116. package/dist/post-components/p-18a2ef27.js +1 -0
  117. package/dist/post-components/p-18b571e3.js +2 -0
  118. package/dist/post-components/p-247a1668.js +1 -0
  119. package/dist/post-components/p-2f4c40ee.js +1 -0
  120. package/dist/post-components/p-39a1dcb8.entry.js +1 -0
  121. package/dist/post-components/p-3b0988a1.js +1 -0
  122. package/dist/post-components/p-3ee18d14.entry.js +1 -0
  123. package/dist/post-components/{p-c9004503.js → p-4575a570.js} +1 -1
  124. package/dist/post-components/p-59da0b80.js +1 -0
  125. package/dist/post-components/p-63277771.entry.js +1 -0
  126. package/dist/post-components/p-67df1075.js +1 -0
  127. package/dist/post-components/p-74db9b35.entry.js +1 -0
  128. package/dist/post-components/p-7bb79254.entry.js +1 -0
  129. package/dist/post-components/p-8398de7b.entry.js +1 -0
  130. package/dist/post-components/{p-579f55af.js → p-9a59f2c7.js} +1 -1
  131. package/dist/post-components/p-c4a7208a.js +1 -0
  132. package/dist/post-components/{p-93ba2827.js → p-c85913ed.js} +3 -3
  133. package/dist/post-components/p-caaa5b4c.entry.js +1 -0
  134. package/dist/post-components/p-cf10d355.js +1 -0
  135. package/dist/post-components/{p-d4cd7bb0.js → p-d1f516dd.js} +1 -1
  136. package/dist/post-components/{p-b4abbb28.js → p-d2eb0f0b.js} +1 -1
  137. package/dist/post-components/p-d70f33cd.js +1 -0
  138. package/dist/post-components/p-da049db2.entry.js +1 -0
  139. package/dist/post-components/p-db114d1d.entry.js +1 -0
  140. package/dist/post-components/{p-41c9c59f.js → p-e929ddbc.js} +1 -1
  141. package/dist/post-components/p-ebb54756.entry.js +1 -0
  142. package/dist/post-components/p-ed22dec0.js +1 -0
  143. package/dist/post-components/p-f5d8f3fe.entry.js +1 -0
  144. package/dist/post-components/post-components.esm.js +1 -1
  145. package/dist/types/components/post-accordion/post-accordion.d.ts +8 -2
  146. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +2 -1
  147. package/dist/types/components/post-card-control/post-card-control.d.ts +5 -2
  148. package/dist/types/components/post-tag/post-tag.d.ts +2 -2
  149. package/dist/types/components.d.ts +15 -5
  150. package/dist/types/types/heading-levels.d.ts +2 -0
  151. package/dist/types/types/index.d.ts +1 -0
  152. package/package.json +14 -14
  153. package/dist/cjs/index-3b732d59.js +0 -2111
  154. package/dist/cjs/post-card-control-4a16b3d7.js +0 -311
  155. package/dist/esm/index-961099d2.js +0 -2082
  156. package/dist/esm/post-card-control-b23e1e6f.js +0 -309
  157. package/dist/post-components/p-0d4e50a9.js +0 -1
  158. package/dist/post-components/p-1c780bac.entry.js +0 -1
  159. package/dist/post-components/p-2524b6b9.entry.js +0 -1
  160. package/dist/post-components/p-2ee23269.entry.js +0 -1
  161. package/dist/post-components/p-416426cc.js +0 -1
  162. package/dist/post-components/p-46cea7ee.js +0 -1
  163. package/dist/post-components/p-4aa14704.js +0 -1
  164. package/dist/post-components/p-5b2cdcf0.js +0 -2
  165. package/dist/post-components/p-60b02cbb.entry.js +0 -1
  166. package/dist/post-components/p-62407836.entry.js +0 -1
  167. package/dist/post-components/p-6308fd47.js +0 -1
  168. package/dist/post-components/p-6fba8cb2.entry.js +0 -1
  169. package/dist/post-components/p-86acda91.entry.js +0 -1
  170. package/dist/post-components/p-94b5c41e.entry.js +0 -1
  171. package/dist/post-components/p-a3b54b5f.js +0 -1
  172. package/dist/post-components/p-a4b6b950.js +0 -1
  173. package/dist/post-components/p-c0f8e385.entry.js +0 -1
  174. package/dist/post-components/p-c4fe5052.entry.js +0 -1
  175. package/dist/post-components/p-cd9c10dd.entry.js +0 -1
  176. package/dist/post-components/p-d8d76dd1.entry.js +0 -1
  177. package/dist/post-components/p-e819d5fb.entry.js +0 -1
  178. package/dist/post-components/p-f44c172a.js +0 -1
  179. package/dist/post-components/p-f9e58309.js +0 -1
  180. package/dist/post-components/p-ffb9a651.entry.js +0 -1
@@ -1,309 +0,0 @@
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 };