@swisspost/design-system-components 9.0.0-next.0 → 9.0.0-next.2

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 (163) hide show
  1. package/dist/cjs/index.cjs.js +16 -16
  2. package/dist/cjs/{package-ebef502e.js → package-a7150f64.js} +1 -1
  3. package/dist/cjs/{post-accordion-677c6891.js → post-accordion-62d2fd79.js} +11 -9
  4. package/dist/cjs/{post-accordion-item-8d1d6c81.js → post-accordion-item-7b348fa5.js} +5 -5
  5. package/dist/cjs/post-accordion-item.cjs.entry.js +2 -2
  6. package/dist/cjs/post-accordion.cjs.entry.js +2 -2
  7. package/dist/cjs/post-alert-fca3a4a3.js +98 -0
  8. package/dist/cjs/post-alert.cjs.entry.js +2 -2
  9. package/dist/cjs/post-card-control-b4e4b4d5.js +272 -0
  10. package/dist/cjs/post-card-control.cjs.entry.js +2 -2
  11. package/dist/cjs/{post-collapsible-trigger-4f44ca4a.js → post-collapsible-trigger-9dca8493.js} +1 -1
  12. package/dist/cjs/post-collapsible_2.cjs.entry.js +2 -2
  13. package/dist/cjs/{post-icon-dc878de4.js → post-icon-3934be0b.js} +1 -1
  14. package/dist/cjs/post-icon.cjs.entry.js +2 -2
  15. package/dist/cjs/{post-logo-da45aef5.js → post-logo-c3603fc7.js} +1 -1
  16. package/dist/cjs/post-logo.cjs.entry.js +2 -2
  17. package/dist/cjs/post-popover-15f9620a.js +104 -0
  18. package/dist/cjs/post-popover.cjs.entry.js +2 -2
  19. package/dist/cjs/{post-popovercontainer-322d3160.js → post-popovercontainer-7d536276.js} +1 -1
  20. package/dist/cjs/post-popovercontainer.cjs.entry.js +2 -2
  21. package/dist/cjs/{post-rating-ac9e71aa.js → post-rating-db5a397a.js} +2 -2
  22. package/dist/cjs/post-rating.cjs.entry.js +2 -2
  23. package/dist/cjs/{post-tab-header-3baf22e0.js → post-tab-header-29b8d4e1.js} +2 -2
  24. package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
  25. package/dist/cjs/{post-tab-panel-787bcd5d.js → post-tab-panel-d59cf1ec.js} +1 -1
  26. package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
  27. package/dist/cjs/{post-tabs-1b7aad55.js → post-tabs-7afae61a.js} +1 -1
  28. package/dist/cjs/post-tabs.cjs.entry.js +2 -2
  29. package/dist/cjs/post-tag-b7d0bbff.js +47 -0
  30. package/dist/cjs/post-tag.cjs.entry.js +2 -2
  31. package/dist/cjs/{post-tooltip-d1d2cd3a.js → post-tooltip-432852c7.js} +23 -4
  32. package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
  33. package/dist/collection/components/post-accordion/post-accordion.js +12 -10
  34. package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
  35. package/dist/collection/components/post-accordion-item/post-accordion-item.js +4 -5
  36. package/dist/collection/components/post-alert/post-alert.css +1 -29
  37. package/dist/collection/components/post-card-control/post-card-control.css +1 -29
  38. package/dist/collection/components/post-popover/post-popover.css +0 -28
  39. package/dist/collection/components/post-rating/post-rating.css +0 -28
  40. package/dist/collection/components/post-tab-header/post-tab-header.css +0 -28
  41. package/dist/collection/components/post-tag/post-tag.css +0 -28
  42. package/dist/collection/components/post-tooltip/post-tooltip.js +30 -4
  43. package/dist/components/package.js +1 -1
  44. package/dist/components/post-accordion-item2.js +4 -4
  45. package/dist/components/post-accordion2.js +10 -8
  46. package/dist/components/post-alert2.js +1 -1
  47. package/dist/components/post-card-control2.js +1 -1
  48. package/dist/components/post-popover2.js +1 -1
  49. package/dist/components/post-rating2.js +1 -1
  50. package/dist/components/post-tab-header2.js +1 -1
  51. package/dist/components/post-tag2.js +1 -1
  52. package/dist/components/post-tooltip2.js +22 -3
  53. package/dist/docs.json +19 -6
  54. package/dist/esm/index.js +16 -16
  55. package/dist/esm/package-3d758f77.js +3 -0
  56. package/dist/esm/{post-accordion-19ca8bf9.js → post-accordion-6f4d2b9a.js} +11 -9
  57. package/dist/esm/{post-accordion-item-3232ff67.js → post-accordion-item-6b5a65ad.js} +5 -5
  58. package/dist/esm/post-accordion-item.entry.js +2 -2
  59. package/dist/esm/post-accordion.entry.js +2 -2
  60. package/dist/esm/post-alert-f19db551.js +96 -0
  61. package/dist/esm/post-alert.entry.js +2 -2
  62. package/dist/esm/post-card-control-1b5df6cb.js +270 -0
  63. package/dist/esm/post-card-control.entry.js +2 -2
  64. package/dist/esm/{post-collapsible-trigger-8f54e5b6.js → post-collapsible-trigger-85c2064a.js} +1 -1
  65. package/dist/esm/post-collapsible_2.entry.js +2 -2
  66. package/dist/esm/{post-icon-1a682b9e.js → post-icon-40929043.js} +1 -1
  67. package/dist/esm/post-icon.entry.js +2 -2
  68. package/dist/esm/{post-logo-904c4701.js → post-logo-c6351ba8.js} +1 -1
  69. package/dist/esm/post-logo.entry.js +2 -2
  70. package/dist/esm/post-popover-58149de7.js +102 -0
  71. package/dist/esm/post-popover.entry.js +2 -2
  72. package/dist/esm/{post-popovercontainer-17d2b256.js → post-popovercontainer-8bde9fc3.js} +1 -1
  73. package/dist/esm/post-popovercontainer.entry.js +2 -2
  74. package/dist/esm/{post-rating-8e22d522.js → post-rating-d9fc0b40.js} +2 -2
  75. package/dist/esm/post-rating.entry.js +2 -2
  76. package/dist/esm/{post-tab-header-96287c94.js → post-tab-header-ae8feb19.js} +2 -2
  77. package/dist/esm/post-tab-header.entry.js +2 -2
  78. package/dist/esm/{post-tab-panel-b9605846.js → post-tab-panel-926439f4.js} +1 -1
  79. package/dist/esm/post-tab-panel.entry.js +2 -2
  80. package/dist/esm/{post-tabs-fb024b14.js → post-tabs-13b2d9a6.js} +1 -1
  81. package/dist/esm/post-tabs.entry.js +2 -2
  82. package/dist/esm/post-tag-887d5fbe.js +45 -0
  83. package/dist/esm/post-tag.entry.js +2 -2
  84. package/dist/esm/{post-tooltip-02e413ba.js → post-tooltip-3cde6b53.js} +23 -4
  85. package/dist/esm/post-tooltip.entry.js +2 -2
  86. package/dist/post-components/index.esm.js +1 -1
  87. package/dist/post-components/{p-1c63cb03.js → p-0b71bf5a.js} +1 -1
  88. package/dist/post-components/p-0e09dc41.js +1 -0
  89. package/dist/post-components/{p-079c7726.js → p-19e54be9.js} +1 -1
  90. package/dist/post-components/p-1e8f0f36.js +1 -0
  91. package/dist/post-components/p-22257eff.entry.js +1 -0
  92. package/dist/post-components/p-249ac168.entry.js +1 -0
  93. package/dist/post-components/p-2b10e265.js +1 -0
  94. package/dist/post-components/p-3325086e.js +1 -0
  95. package/dist/post-components/p-3b823fee.entry.js +1 -0
  96. package/dist/post-components/p-45f4c803.entry.js +1 -0
  97. package/dist/post-components/p-47935dbb.js +1 -0
  98. package/dist/post-components/p-486fbbce.entry.js +1 -0
  99. package/dist/post-components/p-4a7fb0f3.entry.js +1 -0
  100. package/dist/post-components/p-5f231c2c.js +1 -0
  101. package/dist/post-components/{p-a0b62b51.js → p-6a28f8b9.js} +1 -1
  102. package/dist/post-components/p-6ed3497a.entry.js +1 -0
  103. package/dist/post-components/p-820c5c19.entry.js +1 -0
  104. package/dist/post-components/{p-e387c0c9.js → p-82dcf8c6.js} +3 -3
  105. package/dist/post-components/p-8aeb549f.entry.js +1 -0
  106. package/dist/post-components/{p-ab6ce1d7.js → p-92aeec3c.js} +1 -1
  107. package/dist/post-components/{p-10b043fc.js → p-9a99cfc7.js} +1 -1
  108. package/dist/post-components/p-aa8a08dc.entry.js +1 -0
  109. package/dist/post-components/p-b99fdec3.js +1 -0
  110. package/dist/post-components/{p-b96307d5.entry.js → p-ba40b28a.entry.js} +1 -1
  111. package/dist/post-components/{p-de2ce222.js → p-c62de925.js} +1 -1
  112. package/dist/post-components/p-d2101b8a.entry.js +1 -0
  113. package/dist/post-components/{p-44564a68.js → p-d7a44f45.js} +1 -1
  114. package/dist/post-components/p-db4b8ea1.entry.js +1 -0
  115. package/dist/post-components/p-eedc6ae8.entry.js +1 -0
  116. package/dist/post-components/p-f217f420.js +1 -0
  117. package/dist/post-components/p-f707d163.entry.js +1 -0
  118. package/dist/post-components/post-components.esm.js +1 -1
  119. package/dist/types/components/post-accordion/post-accordion.d.ts +1 -1
  120. package/dist/types/components/post-tooltip/post-tooltip.d.ts +4 -1
  121. package/dist/types/components.d.ts +4 -3
  122. package/loaders/package.js +1 -1
  123. package/loaders/post-accordion-item.js +4 -4
  124. package/loaders/post-accordion.js +10 -8
  125. package/loaders/post-alert.js +1 -1
  126. package/loaders/post-card-control.js +1 -1
  127. package/loaders/post-popover.js +1 -1
  128. package/loaders/post-rating.js +1 -1
  129. package/loaders/post-tab-header.js +1 -1
  130. package/loaders/post-tag.js +1 -1
  131. package/loaders/post-tooltip.js +22 -3
  132. package/package.json +2 -2
  133. package/dist/cjs/post-alert-ea75de0d.js +0 -98
  134. package/dist/cjs/post-card-control-51ee3823.js +0 -272
  135. package/dist/cjs/post-popover-aac764c7.js +0 -104
  136. package/dist/cjs/post-tag-e4bcdb75.js +0 -47
  137. package/dist/esm/package-a8cae03d.js +0 -3
  138. package/dist/esm/post-alert-2636c0e2.js +0 -96
  139. package/dist/esm/post-card-control-0844cad9.js +0 -270
  140. package/dist/esm/post-popover-14d083d4.js +0 -102
  141. package/dist/esm/post-tag-58311692.js +0 -45
  142. package/dist/post-components/p-04e79a2c.entry.js +0 -1
  143. package/dist/post-components/p-05794f1f.entry.js +0 -1
  144. package/dist/post-components/p-2e7cc4c6.entry.js +0 -1
  145. package/dist/post-components/p-370edca6.js +0 -1
  146. package/dist/post-components/p-3c3e8b19.js +0 -1
  147. package/dist/post-components/p-429b886d.js +0 -1
  148. package/dist/post-components/p-47420c6f.entry.js +0 -1
  149. package/dist/post-components/p-4973d1c7.entry.js +0 -1
  150. package/dist/post-components/p-6007889b.entry.js +0 -1
  151. package/dist/post-components/p-69bcb15f.entry.js +0 -1
  152. package/dist/post-components/p-771bd293.js +0 -1
  153. package/dist/post-components/p-8c0372c2.entry.js +0 -1
  154. package/dist/post-components/p-92ce53bc.entry.js +0 -1
  155. package/dist/post-components/p-991dff03.entry.js +0 -1
  156. package/dist/post-components/p-a2fa8c1d.entry.js +0 -1
  157. package/dist/post-components/p-e37ff727.entry.js +0 -1
  158. package/dist/post-components/p-eb3f324e.entry.js +0 -1
  159. package/dist/post-components/p-ec1f1966.js +0 -1
  160. package/dist/post-components/p-ee8845de.js +0 -1
  161. package/dist/post-components/p-fb1fb618.entry.js +0 -1
  162. package/dist/post-components/p-fbc24b84.js +0 -1
  163. package/dist/post-components/p-ff12fd7a.js +0 -1
@@ -0,0 +1,270 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0b56fc28.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-3d758f77.js';
5
+
6
+ const postCardControlCss = "/*!\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{display:inline-flex;flex:0 auto;appearance:none;background:rgba(0,0,0,0);height:1.375rem;width:1.375rem;border:2px solid currentColor;margin-top:1px;outline:none}.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\")}:where(.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}}:where(.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\")}:where(.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)}:where(.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],:where(.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{--post-card-control-bg-context: .bg-yellow, .bg-white, .bg-light, .bg-gray, .bg-warning, .bg-info, .bg-success-background, .bg-warning-background, .bg-error-background, .bg-petrol-bright, .bg-coral-bright, .bg-olive-bright, .alert-warning, post-alert[type=warning], .alert-info, post-alert[type=info], .alert-gray, post-alert[type=gray], .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];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 content\"/min-content auto min-content;gap:0 .5rem;margin:0;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) !important;cursor:pointer}.card-control .card-control--input{grid-area:input;margin:.25rem 0;background-color:var(--post-card-control-input-bg) !important;border-color:var(--post-card-control-input-border-color) !important;color:var(--post-card-control-input-border-color) !important;cursor:inherit;transition:none}.card-control .card-control--input:focus,.card-control .card-control--input:focus-visible{box-shadow:none}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.card-control .card-control--input::after{forced-color-adjust:none;border-color:rgba(0,0,0,0)}}.card-control .card-control--label{grid-area:label;margin:.25rem 0;padding:0;color:inherit !important;pointer-events:none;transition:none}.card-control .card-control--label:not(:has(+.card-control--icon)){grid-area:1/label/1/icon}.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}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.card-control:not(.is-disabled).is-checked{--post-card-control-border-color: FieldText;--post-card-control-bg: SelectedItem;--post-card-control-color: SelectedItemText;--post-card-control-input-border-color: SelectedItemText;--post-card-control-input-bg: SelectedItem}.card-control:not(.is-disabled).is-checked .card-control--input::after{background-color:var(--post-card-control-color) !important}}.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}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.card-control:not(.is-disabled):hover{--post-card-control-border-color: Highlight;--post-card-control-bg: Field;--post-card-control-color: FieldText;--post-card-control-input-border-color: Highlight;--post-card-control-input-bg: Field}.card-control:not(.is-disabled):hover .card-control--input::after{color:FieldText}}.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:0 none;padding:2px;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\")}.card-control.is-disabled .card-control--input[type=radio]{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\")}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.card-control{--post-card-control-border-color: FieldText;--post-card-control-bg: Field;--post-card-control-color: FieldText;--post-card-control-input-border-color: FieldText;--post-card-control-input-bg: Field;outline:2px solid Field;outline-offset:-4px}.card-control .card-control--input{outline:2px solid Field}.card-control .card-control--input[type]{background-color:Field !important}.card-control .card-control--input::after{border-color:Field !important}.card-control .card-control--label,.card-control .card-control--content{background-color:var(--post-card-control-bg) !important}.card-control:not(.is-disabled).is-checked{--post-card-control-border-color: FieldText;--post-card-control-bg: SelectedItem;--post-card-control-color: SelectedItemText;--post-card-control-input-border-color: FieldText}.card-control:not(.is-disabled).is-checked .card-control--input::after{background-color:FieldText !important}.card-control:not(.is-disabled):hover{--post-card-control-border-color: Highlight;--post-card-control-bg: Field;--post-card-control-color: FieldText;--post-card-control-input-border-color: Highlight}.card-control.is-disabled{--post-card-control-border-color: GrayText;--post-card-control-bg: Field;--post-card-control-color: FieldText;--post-card-control-input-border-color: GrayText;--post-card-control-input-bg: Field}.card-control.is-disabled .card-control--input{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\")}.card-control.is-disabled .card-control--input[type=radio]{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\")}.card-control.is-disabled.is-checked{--post-card-control-bg: SelectedItem;--post-card-control-color: SelectedItemText;position:relative;background-color:Field}.card-control.is-disabled.is-checked::before{display:block;content:\"\";position:absolute;inset:2px;background-color:SelectedItem;z-index:1}.card-control.is-disabled.is-checked>*{position:relative;z-index:2}.card-control.is-disabled.is-checked .card-control--input::after{background-color:FieldText !important}}@media(forced-colors: active)and (forced-colors: active),(forced-colors: active)and (-ms-high-contrast: active),(forced-colors: active)and (-ms-high-contrast: white-on-black),(-ms-high-contrast: active)and (forced-colors: active),(-ms-high-contrast: active)and (-ms-high-contrast: active),(-ms-high-contrast: active)and (-ms-high-contrast: white-on-black),(-ms-high-contrast: white-on-black)and (forced-colors: active),(-ms-high-contrast: white-on-black)and (-ms-high-contrast: active),(-ms-high-contrast: white-on-black)and (-ms-high-contrast: white-on-black){.card-control{--post-card-control-border-color: GrayText;--post-card-control-color: GrayText;--post-card-control-input-border-color: GrayText}.card-control.is-checked{--post-card-control-input-bg: field;position:relative}.card-control.is-checked::before{display:block;content:\"\";position:absolute;inset:2px;border-radius:1px;background-color:SelectedItem}.card-control.is-checked>*{position:relative}.card-control.is-checked .card-control--input{outline:2px solid Field}}: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-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).is-invalid:where(.is-checked){--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):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}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){: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: Highlight;--post-card-control-bg: Field;--post-card-control-color: FieldText;--post-card-control-input-border-color: Highlight;--post-card-control-input-bg: Field}}: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: 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}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){: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: GrayText;--post-card-control-color: GrayText;--post-card-control-input-border-color: GrayText}: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.is-checked{--post-card-control-input-bg: Field}}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){: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: FieldText;--post-card-control-bg: Field;--post-card-control-color: FieldText;--post-card-control-input-border-color: FieldText;--post-card-control-input-bg: Field}: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: FieldText;--post-card-control-bg: SelectedItem;--post-card-control-color: SelectedItemText;--post-card-control-input-border-color: FieldText}: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: Highlight;--post-card-control-bg: Field;--post-card-control-color: FieldText;--post-card-control-input-border-color: Highlight}: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: GrayText;--post-card-control-bg: Field;--post-card-control-color: FieldText;--post-card-control-input-border-color: GrayText;--post-card-control-input-bg: Field}: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.is-checked{--post-card-control-bg: SelectedItem;--post-card-control-color: SelectedItemText}}:host(:not([data-context])){display:none}:host([data-context*=fieldset]:not(:last-child)) .card-control{margin-bottom:1rem}:host(:is([data-context*=\".bg-dark\"],[data-context*=\".bg-black\"],[data-context*=\".bg-primary\"],[data-context*=\".bg-secondary\"],[data-context*=\".bg-success\"],[data-context*=\".bg-error\"],[data-context*=\".bg-nightblue\"],[data-context*=\".bg-nightblue-bright\"],[data-context*=\".bg-petrol\"],[data-context*=\".bg-coral\"],[data-context*=\".bg-olive\"],[data-context*=\".bg-purple\"],[data-context*=\".bg-purple-bright\"],[data-context*=\".bg-aubergine\"],[data-context*=\".bg-aubergine-bright\"],[data-context*=\".alert-primary\"],[data-context*=\"post-alert[type=primary]\"],[data-context*=\".alert-success\"],[data-context*=\"post-alert[type=success]\"],[data-context*=\".alert-danger\"],[data-context*=\"post-alert[type=danger]\"],[data-context*=\".alert-notification\"],[data-context*=\"post-alert[type=notification]\"],[data-context*=\".alert-error\"],[data-context*=\"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(:is([data-context*=\".bg-dark\"],[data-context*=\".bg-black\"],[data-context*=\".bg-primary\"],[data-context*=\".bg-secondary\"],[data-context*=\".bg-success\"],[data-context*=\".bg-error\"],[data-context*=\".bg-nightblue\"],[data-context*=\".bg-nightblue-bright\"],[data-context*=\".bg-petrol\"],[data-context*=\".bg-coral\"],[data-context*=\".bg-olive\"],[data-context*=\".bg-purple\"],[data-context*=\".bg-purple-bright\"],[data-context*=\".bg-aubergine\"],[data-context*=\".bg-aubergine-bright\"],[data-context*=\".alert-primary\"],[data-context*=\"post-alert[type=primary]\"],[data-context*=\".alert-success\"],[data-context*=\"post-alert[type=success]\"],[data-context*=\".alert-danger\"],[data-context*=\"post-alert[type=danger]\"],[data-context*=\".alert-notification\"],[data-context*=\"post-alert[type=notification]\"],[data-context*=\".alert-error\"],[data-context*=\"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(:is([data-context*=\".bg-dark\"],[data-context*=\".bg-black\"],[data-context*=\".bg-primary\"],[data-context*=\".bg-secondary\"],[data-context*=\".bg-success\"],[data-context*=\".bg-error\"],[data-context*=\".bg-nightblue\"],[data-context*=\".bg-nightblue-bright\"],[data-context*=\".bg-petrol\"],[data-context*=\".bg-coral\"],[data-context*=\".bg-olive\"],[data-context*=\".bg-purple\"],[data-context*=\".bg-purple-bright\"],[data-context*=\".bg-aubergine\"],[data-context*=\".bg-aubergine-bright\"],[data-context*=\".alert-primary\"],[data-context*=\"post-alert[type=primary]\"],[data-context*=\".alert-success\"],[data-context*=\"post-alert[type=success]\"],[data-context*=\".alert-danger\"],[data-context*=\"post-alert[type=danger]\"],[data-context*=\".alert-notification\"],[data-context*=\"post-alert[type=notification]\"],[data-context*=\".alert-error\"],[data-context*=\"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(:is([data-context*=\".bg-dark\"],[data-context*=\".bg-black\"],[data-context*=\".bg-primary\"],[data-context*=\".bg-secondary\"],[data-context*=\".bg-success\"],[data-context*=\".bg-error\"],[data-context*=\".bg-nightblue\"],[data-context*=\".bg-nightblue-bright\"],[data-context*=\".bg-petrol\"],[data-context*=\".bg-coral\"],[data-context*=\".bg-olive\"],[data-context*=\".bg-purple\"],[data-context*=\".bg-purple-bright\"],[data-context*=\".bg-aubergine\"],[data-context*=\".bg-aubergine-bright\"],[data-context*=\".alert-primary\"],[data-context*=\"post-alert[type=primary]\"],[data-context*=\".alert-success\"],[data-context*=\"post-alert[type=success]\"],[data-context*=\".alert-danger\"],[data-context*=\"post-alert[type=danger]\"],[data-context*=\".alert-notification\"],[data-context*=\"post-alert[type=notification]\"],[data-context*=\".alert-error\"],[data-context*=\"post-alert[type=error]\"])) .card-control:not(.is-disabled).is-invalid:where(.is-checked){--post-card-control-bg: #fc0}:host(:is([data-context*=\".bg-dark\"],[data-context*=\".bg-black\"],[data-context*=\".bg-primary\"],[data-context*=\".bg-secondary\"],[data-context*=\".bg-success\"],[data-context*=\".bg-error\"],[data-context*=\".bg-nightblue\"],[data-context*=\".bg-nightblue-bright\"],[data-context*=\".bg-petrol\"],[data-context*=\".bg-coral\"],[data-context*=\".bg-olive\"],[data-context*=\".bg-purple\"],[data-context*=\".bg-purple-bright\"],[data-context*=\".bg-aubergine\"],[data-context*=\".bg-aubergine-bright\"],[data-context*=\".alert-primary\"],[data-context*=\"post-alert[type=primary]\"],[data-context*=\".alert-success\"],[data-context*=\"post-alert[type=success]\"],[data-context*=\".alert-danger\"],[data-context*=\"post-alert[type=danger]\"],[data-context*=\".alert-notification\"],[data-context*=\"post-alert[type=notification]\"],[data-context*=\".alert-error\"],[data-context*=\"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}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:is([data-context*=\".bg-dark\"],[data-context*=\".bg-black\"],[data-context*=\".bg-primary\"],[data-context*=\".bg-secondary\"],[data-context*=\".bg-success\"],[data-context*=\".bg-error\"],[data-context*=\".bg-nightblue\"],[data-context*=\".bg-nightblue-bright\"],[data-context*=\".bg-petrol\"],[data-context*=\".bg-coral\"],[data-context*=\".bg-olive\"],[data-context*=\".bg-purple\"],[data-context*=\".bg-purple-bright\"],[data-context*=\".bg-aubergine\"],[data-context*=\".bg-aubergine-bright\"],[data-context*=\".alert-primary\"],[data-context*=\"post-alert[type=primary]\"],[data-context*=\".alert-success\"],[data-context*=\"post-alert[type=success]\"],[data-context*=\".alert-danger\"],[data-context*=\"post-alert[type=danger]\"],[data-context*=\".alert-notification\"],[data-context*=\"post-alert[type=notification]\"],[data-context*=\".alert-error\"],[data-context*=\"post-alert[type=error]\"])) .card-control:not(.is-disabled):hover{--post-card-control-border-color: Highlight;--post-card-control-bg: Field;--post-card-control-color: FieldText;--post-card-control-input-border-color: Highlight;--post-card-control-input-bg: Field}}:host(:is([data-context*=\".bg-dark\"],[data-context*=\".bg-black\"],[data-context*=\".bg-primary\"],[data-context*=\".bg-secondary\"],[data-context*=\".bg-success\"],[data-context*=\".bg-error\"],[data-context*=\".bg-nightblue\"],[data-context*=\".bg-nightblue-bright\"],[data-context*=\".bg-petrol\"],[data-context*=\".bg-coral\"],[data-context*=\".bg-olive\"],[data-context*=\".bg-purple\"],[data-context*=\".bg-purple-bright\"],[data-context*=\".bg-aubergine\"],[data-context*=\".bg-aubergine-bright\"],[data-context*=\".alert-primary\"],[data-context*=\"post-alert[type=primary]\"],[data-context*=\".alert-success\"],[data-context*=\"post-alert[type=success]\"],[data-context*=\".alert-danger\"],[data-context*=\"post-alert[type=danger]\"],[data-context*=\".alert-notification\"],[data-context*=\"post-alert[type=notification]\"],[data-context*=\".alert-error\"],[data-context*=\"post-alert[type=error]\"])) .card-control.is-focused:where(:has(.card-control--input:focus-visible)){outline-color:#fff}:host(:is([data-context*=\".bg-dark\"],[data-context*=\".bg-black\"],[data-context*=\".bg-primary\"],[data-context*=\".bg-secondary\"],[data-context*=\".bg-success\"],[data-context*=\".bg-error\"],[data-context*=\".bg-nightblue\"],[data-context*=\".bg-nightblue-bright\"],[data-context*=\".bg-petrol\"],[data-context*=\".bg-coral\"],[data-context*=\".bg-olive\"],[data-context*=\".bg-purple\"],[data-context*=\".bg-purple-bright\"],[data-context*=\".bg-aubergine\"],[data-context*=\".bg-aubergine-bright\"],[data-context*=\".alert-primary\"],[data-context*=\"post-alert[type=primary]\"],[data-context*=\".alert-success\"],[data-context*=\"post-alert[type=success]\"],[data-context*=\".alert-danger\"],[data-context*=\"post-alert[type=danger]\"],[data-context*=\".alert-notification\"],[data-context*=\"post-alert[type=notification]\"],[data-context*=\".alert-error\"],[data-context*=\"post-alert[type=error]\"])) .card-control.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}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:is([data-context*=\".bg-dark\"],[data-context*=\".bg-black\"],[data-context*=\".bg-primary\"],[data-context*=\".bg-secondary\"],[data-context*=\".bg-success\"],[data-context*=\".bg-error\"],[data-context*=\".bg-nightblue\"],[data-context*=\".bg-nightblue-bright\"],[data-context*=\".bg-petrol\"],[data-context*=\".bg-coral\"],[data-context*=\".bg-olive\"],[data-context*=\".bg-purple\"],[data-context*=\".bg-purple-bright\"],[data-context*=\".bg-aubergine\"],[data-context*=\".bg-aubergine-bright\"],[data-context*=\".alert-primary\"],[data-context*=\"post-alert[type=primary]\"],[data-context*=\".alert-success\"],[data-context*=\"post-alert[type=success]\"],[data-context*=\".alert-danger\"],[data-context*=\"post-alert[type=danger]\"],[data-context*=\".alert-notification\"],[data-context*=\"post-alert[type=notification]\"],[data-context*=\".alert-error\"],[data-context*=\"post-alert[type=error]\"])) .card-control.is-disabled{--post-card-control-border-color: GrayText;--post-card-control-color: GrayText;--post-card-control-input-border-color: GrayText}:host(:is([data-context*=\".bg-dark\"],[data-context*=\".bg-black\"],[data-context*=\".bg-primary\"],[data-context*=\".bg-secondary\"],[data-context*=\".bg-success\"],[data-context*=\".bg-error\"],[data-context*=\".bg-nightblue\"],[data-context*=\".bg-nightblue-bright\"],[data-context*=\".bg-petrol\"],[data-context*=\".bg-coral\"],[data-context*=\".bg-olive\"],[data-context*=\".bg-purple\"],[data-context*=\".bg-purple-bright\"],[data-context*=\".bg-aubergine\"],[data-context*=\".bg-aubergine-bright\"],[data-context*=\".alert-primary\"],[data-context*=\"post-alert[type=primary]\"],[data-context*=\".alert-success\"],[data-context*=\"post-alert[type=success]\"],[data-context*=\".alert-danger\"],[data-context*=\"post-alert[type=danger]\"],[data-context*=\".alert-notification\"],[data-context*=\"post-alert[type=notification]\"],[data-context*=\".alert-error\"],[data-context*=\"post-alert[type=error]\"])) .card-control.is-disabled.is-checked{--post-card-control-input-bg: Field}}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:is([data-context*=\".bg-dark\"],[data-context*=\".bg-black\"],[data-context*=\".bg-primary\"],[data-context*=\".bg-secondary\"],[data-context*=\".bg-success\"],[data-context*=\".bg-error\"],[data-context*=\".bg-nightblue\"],[data-context*=\".bg-nightblue-bright\"],[data-context*=\".bg-petrol\"],[data-context*=\".bg-coral\"],[data-context*=\".bg-olive\"],[data-context*=\".bg-purple\"],[data-context*=\".bg-purple-bright\"],[data-context*=\".bg-aubergine\"],[data-context*=\".bg-aubergine-bright\"],[data-context*=\".alert-primary\"],[data-context*=\"post-alert[type=primary]\"],[data-context*=\".alert-success\"],[data-context*=\"post-alert[type=success]\"],[data-context*=\".alert-danger\"],[data-context*=\"post-alert[type=danger]\"],[data-context*=\".alert-notification\"],[data-context*=\"post-alert[type=notification]\"],[data-context*=\".alert-error\"],[data-context*=\"post-alert[type=error]\"])) .card-control{--post-card-control-border-color: FieldText;--post-card-control-bg: Field;--post-card-control-color: FieldText;--post-card-control-input-border-color: FieldText;--post-card-control-input-bg: Field}:host(:is([data-context*=\".bg-dark\"],[data-context*=\".bg-black\"],[data-context*=\".bg-primary\"],[data-context*=\".bg-secondary\"],[data-context*=\".bg-success\"],[data-context*=\".bg-error\"],[data-context*=\".bg-nightblue\"],[data-context*=\".bg-nightblue-bright\"],[data-context*=\".bg-petrol\"],[data-context*=\".bg-coral\"],[data-context*=\".bg-olive\"],[data-context*=\".bg-purple\"],[data-context*=\".bg-purple-bright\"],[data-context*=\".bg-aubergine\"],[data-context*=\".bg-aubergine-bright\"],[data-context*=\".alert-primary\"],[data-context*=\"post-alert[type=primary]\"],[data-context*=\".alert-success\"],[data-context*=\"post-alert[type=success]\"],[data-context*=\".alert-danger\"],[data-context*=\"post-alert[type=danger]\"],[data-context*=\".alert-notification\"],[data-context*=\"post-alert[type=notification]\"],[data-context*=\".alert-error\"],[data-context*=\"post-alert[type=error]\"])) .card-control:not(.is-disabled).is-checked{--post-card-control-border-color: FieldText;--post-card-control-bg: SelectedItem;--post-card-control-color: SelectedItemText;--post-card-control-input-border-color: FieldText}:host(:is([data-context*=\".bg-dark\"],[data-context*=\".bg-black\"],[data-context*=\".bg-primary\"],[data-context*=\".bg-secondary\"],[data-context*=\".bg-success\"],[data-context*=\".bg-error\"],[data-context*=\".bg-nightblue\"],[data-context*=\".bg-nightblue-bright\"],[data-context*=\".bg-petrol\"],[data-context*=\".bg-coral\"],[data-context*=\".bg-olive\"],[data-context*=\".bg-purple\"],[data-context*=\".bg-purple-bright\"],[data-context*=\".bg-aubergine\"],[data-context*=\".bg-aubergine-bright\"],[data-context*=\".alert-primary\"],[data-context*=\"post-alert[type=primary]\"],[data-context*=\".alert-success\"],[data-context*=\"post-alert[type=success]\"],[data-context*=\".alert-danger\"],[data-context*=\"post-alert[type=danger]\"],[data-context*=\".alert-notification\"],[data-context*=\"post-alert[type=notification]\"],[data-context*=\".alert-error\"],[data-context*=\"post-alert[type=error]\"])) .card-control:not(.is-disabled):hover{--post-card-control-border-color: Highlight;--post-card-control-bg: Field;--post-card-control-color: FieldText;--post-card-control-input-border-color: Highlight}:host(:is([data-context*=\".bg-dark\"],[data-context*=\".bg-black\"],[data-context*=\".bg-primary\"],[data-context*=\".bg-secondary\"],[data-context*=\".bg-success\"],[data-context*=\".bg-error\"],[data-context*=\".bg-nightblue\"],[data-context*=\".bg-nightblue-bright\"],[data-context*=\".bg-petrol\"],[data-context*=\".bg-coral\"],[data-context*=\".bg-olive\"],[data-context*=\".bg-purple\"],[data-context*=\".bg-purple-bright\"],[data-context*=\".bg-aubergine\"],[data-context*=\".bg-aubergine-bright\"],[data-context*=\".alert-primary\"],[data-context*=\"post-alert[type=primary]\"],[data-context*=\".alert-success\"],[data-context*=\"post-alert[type=success]\"],[data-context*=\".alert-danger\"],[data-context*=\"post-alert[type=danger]\"],[data-context*=\".alert-notification\"],[data-context*=\"post-alert[type=notification]\"],[data-context*=\".alert-error\"],[data-context*=\"post-alert[type=error]\"])) .card-control.is-disabled{--post-card-control-border-color: GrayText;--post-card-control-bg: Field;--post-card-control-color: FieldText;--post-card-control-input-border-color: GrayText;--post-card-control-input-bg: Field}:host(:is([data-context*=\".bg-dark\"],[data-context*=\".bg-black\"],[data-context*=\".bg-primary\"],[data-context*=\".bg-secondary\"],[data-context*=\".bg-success\"],[data-context*=\".bg-error\"],[data-context*=\".bg-nightblue\"],[data-context*=\".bg-nightblue-bright\"],[data-context*=\".bg-petrol\"],[data-context*=\".bg-coral\"],[data-context*=\".bg-olive\"],[data-context*=\".bg-purple\"],[data-context*=\".bg-purple-bright\"],[data-context*=\".bg-aubergine\"],[data-context*=\".bg-aubergine-bright\"],[data-context*=\".alert-primary\"],[data-context*=\"post-alert[type=primary]\"],[data-context*=\".alert-success\"],[data-context*=\"post-alert[type=success]\"],[data-context*=\".alert-danger\"],[data-context*=\"post-alert[type=danger]\"],[data-context*=\".alert-notification\"],[data-context*=\"post-alert[type=notification]\"],[data-context*=\".alert-error\"],[data-context*=\"post-alert[type=error]\"])) .card-control.is-disabled.is-checked{--post-card-control-bg: SelectedItem;--post-card-control-color:SelectedItemText}";
7
+ const PostCardControlStyle0 = postCardControlCss;
8
+
9
+ let cardControlIds = 0;
10
+ const PostCardControl = class {
11
+ /**
12
+ * A public method to reset the controls `checked` and `validity` state.
13
+ * The validity state is set to `null`, so it's neither valid nor invalid.
14
+ */
15
+ async reset() {
16
+ this.validity = null;
17
+ this.controlSetChecked(this.initialChecked);
18
+ }
19
+ /**
20
+ * A hidden public method to reset the group controls `checked` state to `false`.
21
+ */
22
+ async groupReset() {
23
+ if (this.disabled)
24
+ this.control.checked = this.checked = false;
25
+ this.controlSetChecked(false);
26
+ }
27
+ validateControlLabel(label = this.label) {
28
+ checkNonEmpty(label, 'The "post-card-control" element requires its "label" property to be set.');
29
+ }
30
+ validateControlType(type = this.type) {
31
+ checkOneOf(type, ['checkbox', 'radio'], 'The "post-card-control" element requires its "type" prop to be one of either "checkbox" or "radio".');
32
+ }
33
+ updateControlChecked(checked = this.checked) {
34
+ this.controlSetChecked(checked);
35
+ }
36
+ updateControlDisabled() {
37
+ this.controlSetChecked(this.checked);
38
+ }
39
+ constructor(hostRef) {
40
+ registerInstance(this, hostRef);
41
+ this.postInput = createEvent(this, "postInput", 7);
42
+ this.postChange = createEvent(this, "postChange", 7);
43
+ if (hostRef.$hostElement$["s-ei"]) {
44
+ this.internals = hostRef.$hostElement$["s-ei"];
45
+ }
46
+ else {
47
+ this.internals = hostRef.$hostElement$.attachInternals();
48
+ hostRef.$hostElement$["s-ei"] = this.internals;
49
+ }
50
+ this.EVENT_MAP = {
51
+ input: 'postInput',
52
+ change: 'postChange',
53
+ };
54
+ this.KEYCODES = {
55
+ SPACE: 'Space',
56
+ LEFT: 'ArrowLeft',
57
+ UP: 'ArrowUp',
58
+ RIGHT: 'ArrowRight',
59
+ DOWN: 'ArrowDown',
60
+ };
61
+ this.group = {
62
+ hosts: [],
63
+ members: [],
64
+ first: null,
65
+ last: null,
66
+ checked: null,
67
+ focused: null,
68
+ };
69
+ this.controlId = `PostCardControl_${cardControlIds++}`;
70
+ this.focused = false;
71
+ this.label = undefined;
72
+ this.description = null;
73
+ this.type = undefined;
74
+ this.name = null;
75
+ this.value = null;
76
+ this.checked = false;
77
+ this.disabled = false;
78
+ this.validity = null;
79
+ this.icon = null;
80
+ this.cardClickHandler = this.cardClickHandler.bind(this);
81
+ this.controlClickHandler = this.controlClickHandler.bind(this);
82
+ this.controlChangeHandler = this.controlChangeHandler.bind(this);
83
+ this.controlFocusHandler = this.controlFocusHandler.bind(this);
84
+ this.controlKeyDownHandler = this.controlKeyDownHandler.bind(this);
85
+ }
86
+ cardClickHandler(e) {
87
+ e.stopPropagation();
88
+ // if this was not the clicked element anyway, trigger click on control to change it
89
+ if (e.target !== this.control)
90
+ this.control.click();
91
+ }
92
+ controlClickHandler(e) {
93
+ e.stopPropagation();
94
+ // if control is disabled do nothing
95
+ // else control value will fire a change event, which is handled in the controlChangeHandler method
96
+ if (this.disabled)
97
+ e.preventDefault();
98
+ }
99
+ controlChangeHandler(e) {
100
+ e.stopPropagation();
101
+ this.groupCollectMembers();
102
+ this.controlSetChecked(this.control.checked, e);
103
+ this.groupSetChecked(this.control, e);
104
+ }
105
+ controlFocusHandler() {
106
+ this.focused = this.host === document.activeElement;
107
+ }
108
+ // https://googlechromelabs.github.io/howto-components/howto-radio-group/
109
+ controlKeyDownHandler(e) {
110
+ if (this.type === 'radio') {
111
+ e.stopPropagation();
112
+ if (Object.values(this.KEYCODES).includes(e.code))
113
+ e.preventDefault();
114
+ this.groupCollectMembers();
115
+ switch (e.code) {
116
+ case this.KEYCODES.UP:
117
+ case this.KEYCODES.LEFT:
118
+ this.groupSetChecked(this.groupGetPrev(), e);
119
+ break;
120
+ case this.KEYCODES.DOWN:
121
+ case this.KEYCODES.RIGHT:
122
+ this.groupSetChecked(this.groupGetNext(), e);
123
+ break;
124
+ case this.KEYCODES.SPACE:
125
+ this.groupSetChecked(this.control, e);
126
+ break;
127
+ }
128
+ }
129
+ }
130
+ controlSetChecked(checked, e) {
131
+ if (!this.control)
132
+ return;
133
+ if (this.disabled) {
134
+ this.internals.setFormValue(null);
135
+ }
136
+ else {
137
+ this.control.checked = this.checked = checked;
138
+ this.internals.setFormValue(this.checked ? this.control.value : null);
139
+ if (e) {
140
+ const isCheckbox = this.type === 'checkbox';
141
+ const isRadioAndChecked = this.type === 'radio' && this.checked;
142
+ // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox
143
+ // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio
144
+ // if an event parameter is given and a native control would fire an event, emit the corresponding event to the light dom
145
+ if (isCheckbox || isRadioAndChecked)
146
+ this[this.EVENT_MAP[e.type]].emit({ state: this.checked, value: this.value });
147
+ }
148
+ }
149
+ }
150
+ groupCollectMembers() {
151
+ var _a, _b;
152
+ if (this.type === 'radio' && this.name) {
153
+ this.group.hosts = Array.from(document.querySelectorAll(`post-card-control[type="radio"][name="${this.name}"]`));
154
+ this.group.members = this.group.hosts
155
+ .map(m => m.shadowRoot.querySelector('input[type="radio"]'))
156
+ .filter(m => m !== null);
157
+ if (this.group.members.length > 1) {
158
+ this.group.first = this.group.members[0];
159
+ this.group.last = this.group.members[this.group.members.length - 1];
160
+ this.group.checked = (_a = this.group.members.find(m => m.checked)) !== null && _a !== void 0 ? _a : null;
161
+ this.group.focused =
162
+ (_b = this.group.members.find(m => m.getRootNode().host === document.activeElement)) !== null && _b !== void 0 ? _b : this.group.first;
163
+ const focusableMember = this.group.checked || this.group.focused || this.group.first;
164
+ this.group.members.forEach(m => {
165
+ m.tabIndex = m === focusableMember ? 0 : -1;
166
+ });
167
+ }
168
+ }
169
+ }
170
+ groupGetPrev() {
171
+ var _a;
172
+ const focusedIndex = this.group.members.findIndex(m => m.id === this.group.focused.id);
173
+ return (_a = this.group.members.find((_m, i) => i === focusedIndex - 1)) !== null && _a !== void 0 ? _a : this.group.last;
174
+ }
175
+ groupGetNext() {
176
+ var _a;
177
+ const focusedIndex = this.group.members.findIndex(m => m.id === this.group.focused.id);
178
+ return (_a = this.group.members.find((_m, i) => i === focusedIndex + 1)) !== null && _a !== void 0 ? _a : this.group.first;
179
+ }
180
+ groupSetChecked(newChecked, e) {
181
+ if (this.group.members.length > 1) {
182
+ const isKeyboardEvent = e.type === 'keydown';
183
+ const newIsAriaDisabled = newChecked.hasAttribute('aria-disabled');
184
+ const newIndex = this.group.members.findIndex(m => m === newChecked);
185
+ if (isKeyboardEvent)
186
+ newChecked.focus();
187
+ // if new is disabled, do not reset/set anything
188
+ if (!newIsAriaDisabled) {
189
+ // reset all group members but the newChecked
190
+ this.group.hosts
191
+ .filter((_h, i) => i !== newIndex)
192
+ .forEach(h => {
193
+ h.groupReset();
194
+ });
195
+ // if method was called by keyboard event, select newChecked
196
+ // else this has already been done by clicking on the newChecked element already
197
+ if (isKeyboardEvent)
198
+ newChecked.click();
199
+ }
200
+ }
201
+ }
202
+ // remove as soon as all browser support :host-context()
203
+ // https://caniuse.com/?search=%3Ahost-context()
204
+ setHostContext() {
205
+ let bgContext;
206
+ const possibleBgContexts = window
207
+ .getComputedStyle(this.host)
208
+ .getPropertyValue('--post-card-control-bg-context')
209
+ .split(', ');
210
+ let formContext;
211
+ const possibleFromContexts = ['fieldset'];
212
+ let element = this.host;
213
+ while (element && (!bgContext || !formContext)) {
214
+ bgContext = bgContext !== null && bgContext !== void 0 ? bgContext : possibleBgContexts.find(selector => element.matches(selector));
215
+ formContext = formContext !== null && formContext !== void 0 ? formContext : possibleFromContexts.find(selector => element.matches(selector));
216
+ element = element.parentElement;
217
+ }
218
+ const hostContext = [bgContext, formContext].filter(context => !!context).join(' ');
219
+ this.host.setAttribute('data-context', hostContext);
220
+ }
221
+ connectedCallback() {
222
+ this.initialChecked = this.checked;
223
+ }
224
+ componentWillRender() {
225
+ this.hasIcon = Boolean(this.host.querySelector('[slot="icon"]') || this.icon);
226
+ }
227
+ render() {
228
+ return (h(Host, { key: '9ae199f3c25ae7af1019f3c76baf43248b301f84', "data-version": version, onClick: this.cardClickHandler }, h("div", { key: 'a2060187ccede9b8944e19f49ba292bab0c72635', class: {
229
+ 'card-control': true,
230
+ 'is-checked': this.checked,
231
+ 'is-disabled': this.disabled,
232
+ 'is-focused': this.focused,
233
+ 'is-valid': this.validity !== null && this.validity !== 'false',
234
+ 'is-invalid': this.validity === 'false',
235
+ } }, h("input", { key: '2c819e61fff5d88f3a8b986c3e53c7248306d3ae', 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: '721ebf89ff367795fbf754b8018a2d5d2b53c9ba', 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), this.hasIcon ? (h("div", { class: "card-control--icon" }, h("slot", { name: "icon" }, this.icon ? h("post-icon", { name: this.icon }) : null))) : null, h("div", { key: '5759571f6f0da53e4800c1e9dc79737624700782', id: `${this.controlId}_content`, class: "card-control--content" }, h("slot", { key: 'f360a1a503e9a2b7cae0e0da05ee3b4bd8a22f69' })))));
236
+ }
237
+ componentDidRender() {
238
+ this.setHostContext();
239
+ this.groupCollectMembers();
240
+ }
241
+ componentDidLoad() {
242
+ this.validateControlLabel();
243
+ this.validateControlType();
244
+ }
245
+ // https://stenciljs.com/docs/form-associated
246
+ /* eslint-disable @stencil-community/own-methods-must-be-private */
247
+ formAssociatedCallback() {
248
+ this.controlSetChecked(this.checked);
249
+ }
250
+ formDisabledCallback(disabled) {
251
+ this.disabled = disabled;
252
+ }
253
+ formStateRestoreCallback(checked) {
254
+ this.controlSetChecked(checked);
255
+ }
256
+ formResetCallback() {
257
+ this.reset();
258
+ }
259
+ static get formAssociated() { return true; }
260
+ get host() { return getElement(this); }
261
+ static get watchers() { return {
262
+ "label": ["validateControlLabel"],
263
+ "type": ["validateControlType"],
264
+ "checked": ["updateControlChecked"],
265
+ "disabled": ["updateControlDisabled"]
266
+ }; }
267
+ };
268
+ PostCardControl.style = PostCardControlStyle0;
269
+
270
+ export { PostCardControl as P };
@@ -1,6 +1,6 @@
1
- export { P as post_card_control } from './post-card-control-0844cad9.js';
1
+ export { P as post_card_control } from './post-card-control-1b5df6cb.js';
2
2
  import './index-0b56fc28.js';
3
3
  import './check-one-of-6b3ef8eb.js';
4
4
  import './check-non-empty-58bd6b17.js';
5
5
  import './constants-8d548297.js';
6
- import './package-a8cae03d.js';
6
+ import './package-3d758f77.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0b56fc28.js';
2
- import { v as version } from './package-a8cae03d.js';
2
+ import { v as version } from './package-3d758f77.js';
3
3
  import { d as checkEmptyOrType, a as checkType } from './index-f41b763f.js';
4
4
  import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
5
5
 
@@ -1,6 +1,6 @@
1
- export { P as post_collapsible, a as post_collapsible_trigger } from './post-collapsible-trigger-8f54e5b6.js';
1
+ export { P as post_collapsible, a as post_collapsible_trigger } from './post-collapsible-trigger-85c2064a.js';
2
2
  import './index-0b56fc28.js';
3
- import './package-a8cae03d.js';
3
+ import './package-3d758f77.js';
4
4
  import './index-f41b763f.js';
5
5
  import './constants-8d548297.js';
6
6
  import './check-one-of-6b3ef8eb.js';
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-0b56fc28.js';
2
2
  import { c as checkEmptyOrOneOf, d as checkEmptyOrType, a as checkType } from './index-f41b763f.js';
3
- import { v as version } from './package-a8cae03d.js';
3
+ import { v as version } from './package-3d758f77.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)}}";
@@ -1,7 +1,7 @@
1
- export { P as post_icon } from './post-icon-1a682b9e.js';
1
+ export { P as post_icon } from './post-icon-40929043.js';
2
2
  import './index-0b56fc28.js';
3
3
  import './index-f41b763f.js';
4
4
  import './constants-8d548297.js';
5
5
  import './check-one-of-6b3ef8eb.js';
6
- import './package-a8cae03d.js';
6
+ import './package-3d758f77.js';
7
7
  import './check-non-empty-58bd6b17.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-0b56fc28.js';
2
- import { v as version } from './package-a8cae03d.js';
2
+ import { v as version } from './package-3d758f77.js';
3
3
  import { e as checkEmptyOrUrl } from './index-f41b763f.js';
4
4
 
5
5
  const postLogoCss = ":host,.logo{display:inline-block}:host,:host .logo>svg,.logo,.logo .logo>svg{height:100%}.description{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";
@@ -1,6 +1,6 @@
1
- export { P as post_logo } from './post-logo-904c4701.js';
1
+ export { P as post_logo } from './post-logo-c6351ba8.js';
2
2
  import './index-0b56fc28.js';
3
- import './package-a8cae03d.js';
3
+ import './package-3d758f77.js';
4
4
  import './index-f41b763f.js';
5
5
  import './constants-8d548297.js';
6
6
  import './check-one-of-6b3ef8eb.js';
@@ -0,0 +1,102 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-0b56fc28.js';
2
+ import { v as version } from './package-3d758f77.js';
3
+ import { g as getAttributeObserver } from './attribute-observer-37fa950a.js';
4
+
5
+ const postPopoverCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:4px;color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{outline-style:none !important;outline-offset:2px !important;outline-width:2px !important;outline-color:var(--post-focus-color) !important}.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:solid !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:solid !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .btn-close{color:var(--post-contrast-color)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:var(--post-contrast-color)}.btn-close:disabled{color:var(--post-gray-40)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51;display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{display:flex;align-items:self-start;padding:.5em;min-width:160px;max-width:280px}@media (max-width: 599.98px){.popover-container{max-width:100%}}.popover-content{padding:.5em;flex-grow:1}.btn-close{color:inherit}";
6
+ const PostPopoverStyle0 = postPopoverCss;
7
+
8
+ /**
9
+ * @slot default - Slot for placing content inside the popover.
10
+ */
11
+ let popoverInstances = 0;
12
+ const popoverTargetAttribute = 'data-popover-target';
13
+ const globalToggleHandler = (e) => {
14
+ const target = e.target;
15
+ if (!target || !('getAttribute' in target))
16
+ return;
17
+ const popoverTarget = target.getAttribute(popoverTargetAttribute);
18
+ if (!popoverTarget || ('key' in e && e.key !== 'Enter'))
19
+ return;
20
+ const popover = document.getElementById(popoverTarget);
21
+ popover === null || popover === void 0 ? void 0 : popover.toggle(target);
22
+ };
23
+ // Initialize a mutation observer for patching accessibility features
24
+ const triggerObserver = getAttributeObserver(popoverTargetAttribute, trigger => {
25
+ const force = trigger.hasAttribute(popoverTargetAttribute);
26
+ trigger.setAttribute('aria-expanded', force ? 'false' : null);
27
+ });
28
+ const PostPopover = class {
29
+ constructor(hostRef) {
30
+ registerInstance(this, hostRef);
31
+ this.placement = 'top';
32
+ this.closeButtonCaption = undefined;
33
+ this.arrow = true;
34
+ this.localBeforeToggleHandler = this.beforeToggleHandler.bind(this);
35
+ }
36
+ connectedCallback() {
37
+ // Set up accessibility patcher and event listeners for the first component
38
+ if (popoverInstances === 0) {
39
+ window.addEventListener('pointerup', globalToggleHandler);
40
+ window.addEventListener('keydown', globalToggleHandler);
41
+ triggerObserver.observe(document.body, {
42
+ subtree: true,
43
+ childList: true,
44
+ attributeFilter: [popoverTargetAttribute],
45
+ });
46
+ }
47
+ popoverInstances++;
48
+ this.triggers.forEach(trigger => trigger.setAttribute('aria-expanded', 'false'));
49
+ }
50
+ componentDidLoad() {
51
+ this.popoverRef.addEventListener('beforetoggle', this.localBeforeToggleHandler);
52
+ }
53
+ disconnectedCallback() {
54
+ popoverInstances--;
55
+ // Remove listeners and observer after the last popover has been destructed
56
+ if (popoverInstances === 0) {
57
+ window.removeEventListener('click', globalToggleHandler);
58
+ window.removeEventListener('keydown', globalToggleHandler);
59
+ triggerObserver.disconnect();
60
+ }
61
+ this.popoverRef.removeEventListener('beforetoggle', this.localBeforeToggleHandler);
62
+ this.triggers.forEach(trigger => trigger.removeAttribute('aria-expanded'));
63
+ }
64
+ /**
65
+ * Programmatically display the popover
66
+ * @param target An element with [data-popover-target="id"] where the popover should be shown
67
+ */
68
+ async show(target) {
69
+ this.popoverRef.show(target);
70
+ target.setAttribute('aria-expanded', 'true');
71
+ }
72
+ /**
73
+ * Programmatically hide this popover
74
+ */
75
+ async hide() {
76
+ this.popoverRef.hide();
77
+ this.triggers.forEach(trigger => trigger.setAttribute('aria-expanded', 'false'));
78
+ }
79
+ /**
80
+ * Toggle popover display
81
+ * @param target An element with [data-popover-target="id"] where the popover should be anchored to
82
+ * @param force Pass true to always show or false to always hide
83
+ */
84
+ async toggle(target, force) {
85
+ const newState = await this.popoverRef.toggle(target, force);
86
+ this.triggers.forEach(trigger => trigger.setAttribute('aria-expanded', 'false'));
87
+ target.setAttribute('aria-expanded', `${newState}`);
88
+ }
89
+ get triggers() {
90
+ return document.querySelectorAll(`[${popoverTargetAttribute}="${this.host.id}"]`);
91
+ }
92
+ beforeToggleHandler() {
93
+ this.triggers.forEach(trigger => trigger.setAttribute('aria-expanded', 'false'));
94
+ }
95
+ render() {
96
+ return (h(Host, { key: '6fe379d071ec88a76f99cc10f0fdce0b2f079fbd', "data-version": version }, h("post-popovercontainer", { key: '3a5e2896e87e3f2d32c0ad9b1d80327cc585f289', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '46834ef6a3893fe8823776d8feb20a2fb328e3bc', class: "popover-container" }, h("div", { key: '9d61b678c2613e84efc0df805cbb67fbe3d06991', class: "popover-content" }, h("slot", { key: '1cfef5daaea3f6370869a3ae648ff36e2dddd82a' })), h("button", { key: 'c7a2e12ece46ee63d8004d99427c8c6febc2dc17', class: "btn-close", onClick: () => this.hide() }, h("span", { key: '1aee8ffe06b5c4c9bade0185a8832328410fbe4a', class: "visually-hidden" }, this.closeButtonCaption))))));
97
+ }
98
+ get host() { return getElement(this); }
99
+ };
100
+ PostPopover.style = PostPopoverStyle0;
101
+
102
+ export { PostPopover as P };
@@ -1,4 +1,4 @@
1
- export { P as post_popover } from './post-popover-14d083d4.js';
1
+ export { P as post_popover } from './post-popover-58149de7.js';
2
2
  import './index-0b56fc28.js';
3
- import './package-a8cae03d.js';
3
+ import './package-3d758f77.js';
4
4
  import './attribute-observer-37fa950a.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0b56fc28.js';
2
- import { v as version } from './package-a8cae03d.js';
2
+ import { v as version } from './package-3d758f77.js';
3
3
 
4
4
  /**
5
5
  * Custom positioning reference element.
@@ -1,3 +1,3 @@
1
- export { P as post_popovercontainer } from './post-popovercontainer-17d2b256.js';
1
+ export { P as post_popovercontainer } from './post-popovercontainer-8bde9fc3.js';
2
2
  import './index-0b56fc28.js';
3
- import './package-a8cae03d.js';
3
+ import './package-3d758f77.js';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0b56fc28.js';
2
- import { v as version } from './package-a8cae03d.js';
2
+ import { v as version } from './package-3d758f77.js';
3
3
 
4
- const postRatingCss = "/*!\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 */:host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 -0.25rem;border-radius:4px}.rating .star{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.active{--post-rating-star-stroke:hsl(0, 0%, 20%);--post-rating-star-fill:#fc0}.rating .star.hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.after-active{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:2px;outline:2px solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:#fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:hsl(0, 0%, 90%)}";
4
+ const postRatingCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 -0.25rem;border-radius:4px}.rating .star{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.active{--post-rating-star-stroke:hsl(0, 0%, 20%);--post-rating-star-fill:#fc0}.rating .star.hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.after-active{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:2px;outline:2px solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:#fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:hsl(0, 0%, 90%)}";
5
5
  const PostRatingStyle0 = postRatingCss;
6
6
 
7
7
  const PostRating = class {
@@ -1,3 +1,3 @@
1
- export { P as post_rating } from './post-rating-8e22d522.js';
1
+ export { P as post_rating } from './post-rating-d9fc0b40.js';
2
2
  import './index-0b56fc28.js';
3
- import './package-a8cae03d.js';
3
+ import './package-3d758f77.js';