@oaknational/oak-components 3.0.0 → 3.1.1

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 (281) hide show
  1. package/dist/npm/cjs/index.js +7949 -0
  2. package/dist/npm/es/animation/usePrefersReducedMotion.js +16 -0
  3. package/dist/npm/es/components/OakGlobalStyle/OakGlobalStyle.js +14 -0
  4. package/dist/npm/es/components/OakThemeProvider/OakThemeProvider.js +14 -0
  5. package/dist/npm/es/components/buttons/OakButtonWithDropdown/OakButtonWithDropdown.js +105 -0
  6. package/dist/npm/es/components/buttons/OakCloseButton/OakCloseButton.js +18 -0
  7. package/dist/npm/es/components/buttons/OakLeftAlignedButton/OakLeftAlignedButton.js +57 -0
  8. package/dist/npm/es/components/buttons/OakPrimaryButton/OakPrimaryButton.js +23 -0
  9. package/dist/npm/es/components/buttons/OakPrimaryInvertedButton/OakPrimaryInvertedButton.js +23 -0
  10. package/dist/npm/es/components/buttons/OakSecondaryButton/OakSecondaryButton.js +23 -0
  11. package/dist/npm/es/components/buttons/OakSecondaryButtonWithDropdown/OakSecondaryButtonWithDropdown.js +20 -0
  12. package/dist/npm/es/components/buttons/OakSmallPrimaryButton/OakSmallPrimaryButton.js +23 -0
  13. package/dist/npm/es/components/buttons/OakSmallPrimaryInvertedButton/OakSmallPrimaryInvertedButton.js +23 -0
  14. package/dist/npm/es/components/buttons/OakSmallSecondaryButton/OakSmallSecondaryButton.js +23 -0
  15. package/dist/npm/es/components/buttons/OakSmallSecondaryButtonWithDropdown/OakSmallSecondaryButtonWithDropdown.js +20 -0
  16. package/dist/npm/es/components/buttons/OakSmallSecondaryToggleButton/OakSmallSecondaryToggleButton.js +37 -0
  17. package/dist/npm/es/components/buttons/OakSmallTertiaryInvertedButton/OakSmallTertiaryInvertedButton.js +23 -0
  18. package/dist/npm/es/components/buttons/OakTertiaryButton/OakTertiaryButton.js +14 -0
  19. package/dist/npm/es/components/buttons/OakTertiaryInvertedButton/OakTertiaryInvertedButton.js +14 -0
  20. package/dist/npm/es/components/cookies/OakCookieBanner/OakCookieBanner.js +62 -0
  21. package/dist/npm/es/components/cookies/OakCookieConsent/OakCookieConsent.js +17 -0
  22. package/dist/npm/es/components/cookies/OakCookieConsentProvider/OakCookieConsentProvider.js +103 -0
  23. package/dist/npm/es/components/cookies/OakCookieConsentProvider/cookieConsentReducer.js +32 -0
  24. package/dist/npm/es/components/cookies/OakCookieSettingsModal/OakCookieSettingsModal.js +91 -0
  25. package/dist/npm/es/components/form-elements/OakButtonAsRadioGroup/OakButtonAsRadioGroup.js +44 -0
  26. package/dist/npm/es/components/form-elements/OakCheckBox/OakCheckBox.js +71 -0
  27. package/dist/npm/es/components/form-elements/OakFieldError/OakFieldError.js +25 -0
  28. package/dist/npm/es/components/form-elements/OakFieldset/OakFieldset.js +12 -0
  29. package/dist/npm/es/components/form-elements/OakForm/OakForm.js +16 -0
  30. package/dist/npm/es/components/form-elements/OakFormInput/OakFormInput.js +26 -0
  31. package/dist/npm/es/components/form-elements/OakJauntyAngleLabel/OakJauntyAngleLabel.js +10 -0
  32. package/dist/npm/es/components/form-elements/OakLabel/OakLabel.js +15 -0
  33. package/dist/npm/es/components/form-elements/OakMultilineText/OakMultilineText.js +96 -0
  34. package/dist/npm/es/components/form-elements/OakRadioAsButton/OakRadioAsButton.js +96 -0
  35. package/dist/npm/es/components/form-elements/OakRadioButton/OakRadioButton.js +31 -0
  36. package/dist/npm/es/components/form-elements/OakRadioGroup/OakRadioGroup.js +44 -0
  37. package/dist/npm/es/components/form-elements/OakSearchFilterCheckBox/OakSearchFilterCheckBox.js +64 -0
  38. package/dist/npm/es/components/form-elements/OakSecondaryButtonAsRadio/OakSecondaryButtonAsRadio.js +25 -0
  39. package/dist/npm/es/components/form-elements/OakSelect/NativeLegend.js +9 -0
  40. package/dist/npm/es/components/form-elements/OakSelect/NativeOptGroup.js +7 -0
  41. package/dist/npm/es/components/form-elements/OakSelect/NativeOption.js +22 -0
  42. package/dist/npm/es/components/form-elements/OakSelect/NativeSelect.js +23 -0
  43. package/dist/npm/es/components/form-elements/OakSelect/OakOptGroup.js +12 -0
  44. package/dist/npm/es/components/form-elements/OakSelect/OakOption.js +12 -0
  45. package/dist/npm/es/components/form-elements/OakSelect/OakSelect.js +44 -0
  46. package/dist/npm/es/components/form-elements/OakTextArea/OakTextArea.js +23 -0
  47. package/dist/npm/es/components/form-elements/OakTextInput/OakTextInput.js +59 -0
  48. package/dist/npm/es/components/house-cat/OakCaptionCard/OakCaptionCard.js +81 -0
  49. package/dist/npm/es/components/house-cat/OakCaptionSearch/OakCaptionSearch.js +24 -0
  50. package/dist/npm/es/components/house-cat/utils.js +33 -0
  51. package/dist/npm/es/components/images-and-icons/OakAspectRatio/OakAspectRatio.js +39 -0
  52. package/dist/npm/es/components/images-and-icons/OakIcon/OakIcon.js +38 -0
  53. package/dist/npm/es/components/images-and-icons/OakImage/OakImage.js +51 -0
  54. package/dist/npm/es/components/images-and-icons/OakImage/useShowPlaceholder.js +29 -0
  55. package/dist/npm/es/components/images-and-icons/OakRoundIcon/OakRoundIcon.js +17 -0
  56. package/dist/npm/es/components/images-and-icons/OakSvg/OakSvg.js +47 -0
  57. package/dist/npm/es/components/internal-components/InternalAccordion/InternalAccordion.js +36 -0
  58. package/dist/npm/es/components/internal-components/InternalAccordion/InternalAccordionProvider.js +24 -0
  59. package/dist/npm/es/components/internal-components/InternalAccordion/useAccordionContext.js +12 -0
  60. package/dist/npm/es/components/internal-components/InternalButton/InternalButton.js +48 -0
  61. package/dist/npm/es/components/internal-components/InternalCard/InternalCard.js +19 -0
  62. package/dist/npm/es/components/internal-components/InternalCardWithBackgroundElement/InternalCardWithBackgroundElement.js +22 -0
  63. package/dist/npm/es/components/internal-components/InternalCheckBox/InternalCheckBox.js +82 -0
  64. package/dist/npm/es/components/internal-components/InternalCheckBoxLabel/InternalCheckBoxLabel.js +16 -0
  65. package/dist/npm/es/components/internal-components/InternalCheckBoxWrapper/InternalCheckBoxWrapper.js +24 -0
  66. package/dist/npm/es/components/internal-components/InternalChevronAccordion/InternalChevronAccordion.js +83 -0
  67. package/dist/npm/es/components/internal-components/InternalClientPortal/InternalClientPortal.js +13 -0
  68. package/dist/npm/es/components/internal-components/InternalDndContext/InternalDndContext.js +28 -0
  69. package/dist/npm/es/components/internal-components/InternalLink/InternalLink.js +54 -0
  70. package/dist/npm/es/components/internal-components/InternalModalTransition/InternalModalTransition.js +31 -0
  71. package/dist/npm/es/components/internal-components/InternalRadio/InternalRadio.js +82 -0
  72. package/dist/npm/es/components/internal-components/InternalRadioWrapper/InternalRadioWrapper.js +36 -0
  73. package/dist/npm/es/components/internal-components/InternalReviewAccordion/InternalReviewAccordion.js +38 -0
  74. package/dist/npm/es/components/internal-components/InternalShadowIconButton/InternalShadowIconButton.js +56 -0
  75. package/dist/npm/es/components/internal-components/InternalShadowRectButton/InternalShadowRectButton.js +56 -0
  76. package/dist/npm/es/components/internal-components/InternalShadowRoundButton/InternalShadowRoundButton.js +56 -0
  77. package/dist/npm/es/components/internal-components/InternalSlideInFlex/InternalSlideInFlex.js +30 -0
  78. package/dist/npm/es/components/internal-components/InternalStyledSvg/InternalStyledSvg.js +14 -0
  79. package/dist/npm/es/components/internal-components/InternalTextInput/InternalTextInput.js +50 -0
  80. package/dist/npm/es/components/internal-components/InternalTooltip/InternalTooltip.js +36 -0
  81. package/dist/npm/es/components/layout-and-structure/OakAccordion/OakAccordion.js +39 -0
  82. package/dist/npm/es/components/layout-and-structure/OakBasicAccordion/OakBasicAccordion.js +10 -0
  83. package/dist/npm/es/components/layout-and-structure/OakBox/OakBox.js +41 -0
  84. package/dist/npm/es/components/layout-and-structure/OakCollapsibleContent/OakCollapsibleContent.js +23 -0
  85. package/dist/npm/es/components/layout-and-structure/OakFlex/OakFlex.js +18 -0
  86. package/dist/npm/es/components/layout-and-structure/OakGrid/OakGrid.js +16 -0
  87. package/dist/npm/es/components/layout-and-structure/OakGridArea/OakGridArea.js +51 -0
  88. package/dist/npm/es/components/layout-and-structure/OakMaxWidth/OakMaxWidth.js +23 -0
  89. package/dist/npm/es/components/messaging-and-feedback/OakFocusIndicator/OakFocusIndicator.js +38 -0
  90. package/dist/npm/es/components/messaging-and-feedback/OakHandDrawnFocusUnderline/OakHandDrawnFocusUnderline.js +22 -0
  91. package/dist/npm/es/components/messaging-and-feedback/OakHandDrawnFocusUnderline/SubHandDrawnFocusUnderline.js +17 -0
  92. package/dist/npm/es/components/messaging-and-feedback/OakInformativeModal/OakInformativeModal.js +41 -0
  93. package/dist/npm/es/components/messaging-and-feedback/OakInformativeModal/OakInformativeModalBody.js +14 -0
  94. package/dist/npm/es/components/messaging-and-feedback/OakInformativeModal/OakInformativeModalFooter.js +16 -0
  95. package/dist/npm/es/components/messaging-and-feedback/OakInlineBanner/OakInlineBanner.js +129 -0
  96. package/dist/npm/es/components/messaging-and-feedback/OakKbd/OakKbd.js +12 -0
  97. package/dist/npm/es/components/messaging-and-feedback/OakLoadingSpinner/OakLoadingSpinner.js +34 -0
  98. package/dist/npm/es/components/messaging-and-feedback/OakModalCenter/OakModalCenter.js +106 -0
  99. package/dist/npm/es/components/messaging-and-feedback/OakModalCenter/OakModalCenterBody.js +36 -0
  100. package/dist/npm/es/components/messaging-and-feedback/OakScreenReader/OakScreenReader.js +15 -0
  101. package/dist/npm/es/components/messaging-and-feedback/OakTagFunctional/OakTagFunctional.js +18 -0
  102. package/dist/npm/es/components/messaging-and-feedback/OakToast/OakToast.js +96 -0
  103. package/dist/npm/es/components/messaging-and-feedback/OakTooltip/OakTooltip.js +122 -0
  104. package/dist/npm/es/components/navigation/OakAnchorTarget/OakAnchorTarget.js +20 -0
  105. package/dist/npm/es/components/navigation/OakBreadcrumbs/OakBreadcrumbs.js +46 -0
  106. package/dist/npm/es/components/navigation/OakCard/OakCard.js +64 -0
  107. package/dist/npm/es/components/navigation/OakHoverLink/OakHoverLink.js +23 -0
  108. package/dist/npm/es/components/navigation/OakLink/OakLink.js +17 -0
  109. package/dist/npm/es/components/navigation/OakLink/config.js +18 -0
  110. package/dist/npm/es/components/navigation/OakPagination/OakPagination.js +106 -0
  111. package/dist/npm/es/components/navigation/OakPagination/utils.js +19 -0
  112. package/dist/npm/es/components/navigation/OakPrimaryNav/OakPrimaryNav.js +22 -0
  113. package/dist/npm/es/components/navigation/OakPrimaryNavItem/OakPrimaryNavItem.js +23 -0
  114. package/dist/npm/es/components/navigation/OakSecondaryLink/OakSecondaryLink.js +25 -0
  115. package/dist/npm/es/components/navigation/OakTabs/OakTabs.js +47 -0
  116. package/dist/npm/es/components/owa/OakBackLink/OakBackLink.js +28 -0
  117. package/dist/npm/es/components/owa/OakBulletList/OakBulletList.js +17 -0
  118. package/dist/npm/es/components/owa/OakCardWithHandDrawnBorder/OakCardWithHandDrawnBorder.js +17 -0
  119. package/dist/npm/es/components/owa/OakCloudinaryImage/OakCloudinaryImage.js +35 -0
  120. package/dist/npm/es/components/owa/OakCloudinaryImage/cloudinary.js +17 -0
  121. package/dist/npm/es/components/owa/OakCodeRenderer/OakCodeRenderer.js +135 -0
  122. package/dist/npm/es/components/owa/OakCopyLinkButton/OakCopyLinkButton.js +42 -0
  123. package/dist/npm/es/components/owa/OakDownloadCard/OakDownloadCard.js +72 -0
  124. package/dist/npm/es/components/owa/OakDownloadsJourneyChildSubjectTierSelector/OakDownloadsJourneyChildSubjectTierSelector.js +54 -0
  125. package/dist/npm/es/components/owa/OakDragAndDropInstructions/OakDragAndDropInstructions.js +41 -0
  126. package/dist/npm/es/components/owa/OakDraggable/OakDraggable.js +30 -0
  127. package/dist/npm/es/components/owa/OakDraggableFeedback/OakDraggableFeedback.js +13 -0
  128. package/dist/npm/es/components/owa/OakDroppable/OakDroppable.js +45 -0
  129. package/dist/npm/es/components/owa/OakFilterDrawer/OakFilterDrawer.js +43 -0
  130. package/dist/npm/es/components/owa/OakFormInputWithLabels/OakFormInputWithLabels.js +18 -0
  131. package/dist/npm/es/components/owa/OakHandDrawnCard/OakHandDrawnCard.js +17 -0
  132. package/dist/npm/es/components/owa/OakHandDrawnCardWithIcon/OakHandDrawnCardWithIcon.js +15 -0
  133. package/dist/npm/es/components/owa/OakHandDrawnHR/HandDrawnHRSvg.js +11 -0
  134. package/dist/npm/es/components/owa/OakHandDrawnHR/OakHandDrawnHR.js +22 -0
  135. package/dist/npm/es/components/owa/OakHeaderHero/OakHeaderHero.js +45 -0
  136. package/dist/npm/es/components/owa/OakHomepageTabButton/OakHomepageTabButton.js +35 -0
  137. package/dist/npm/es/components/owa/OakInfo/OakInfo.js +22 -0
  138. package/dist/npm/es/components/owa/OakInfoButton/OakInfoButton.js +20 -0
  139. package/dist/npm/es/components/owa/OakLessonInfoCard/OakLessonInfoCard.js +33 -0
  140. package/dist/npm/es/components/owa/OakLinkCard/OakLinkCard.js +42 -0
  141. package/dist/npm/es/components/owa/OakListItem/OakListItem.js +93 -0
  142. package/dist/npm/es/components/owa/OakMediaClip/OakMediaClip.js +90 -0
  143. package/dist/npm/es/components/owa/OakMediaClipList/OakMediaClipList.js +26 -0
  144. package/dist/npm/es/components/owa/OakMediaClipListAccordion/OakMediaClipListAccordion.js +29 -0
  145. package/dist/npm/es/components/owa/OakMediaClipStackListItem/OakMediaClipStackListItem.js +41 -0
  146. package/dist/npm/es/components/owa/OakOutlineAccordion/OakOutlineAccordion.js +21 -0
  147. package/dist/npm/es/components/owa/OakPromoTag/OakPromoTag.js +22 -0
  148. package/dist/npm/es/components/owa/OakRadioTile/OakRadioTile.js +40 -0
  149. package/dist/npm/es/components/owa/OakSaveCount/OakSaveCount.js +33 -0
  150. package/dist/npm/es/components/owa/OakScaleImageButton/OakScaleImageButton.js +19 -0
  151. package/dist/npm/es/components/owa/OakSideMenuNav/OakSideMenuNav.js +24 -0
  152. package/dist/npm/es/components/owa/OakSideMenuNavLink/OakSideMenuNavLink.js +48 -0
  153. package/dist/npm/es/components/owa/OakSignLanguageButton/OakSignLanguageButton.js +23 -0
  154. package/dist/npm/es/components/owa/OakSubjectIcon/OakSubjectIcon.js +20 -0
  155. package/dist/npm/es/components/owa/OakSubjectIconButton/OakSubjectIconButton.js +44 -0
  156. package/dist/npm/es/components/owa/OakTimer/OakTimer.js +26 -0
  157. package/dist/npm/es/components/owa/OakVideoTranscript/OakVideoTranscript.js +32 -0
  158. package/dist/npm/es/components/owa/pupil/OakUnitListItem/OakUnitListItem.js +63 -0
  159. package/dist/npm/es/components/owa/pupil/OakUnitListOptionalityItem/OakUnitListOptionalityItem.js +57 -0
  160. package/dist/npm/es/components/owa/pupil/OakUnitListOptionalityItemCard/OakUnitListOptionalityItemCard.js +36 -0
  161. package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyContentGuidance/OakPupilJourneyContentGuidance.js +44 -0
  162. package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyHeader/OakPupilJourneyHeader.js +29 -0
  163. package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyLayout/OakPupilJourneyLayout.js +62 -0
  164. package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyList/OakPupilJourneyList.js +46 -0
  165. package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyListCounter/OakPupilJourneyListCounter.js +12 -0
  166. package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyListItem/OakPupilJourneyListItem.js +45 -0
  167. package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyListItemSubheading/OakPupilJourneyListItemSubheading.js +20 -0
  168. package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyOptionalityButton/OakPupilJourneyOptionalityButton.js +35 -0
  169. package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyOptionalityItem/OakPupilJourneyOptionalityItem.js +23 -0
  170. package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyProgrammeOptions/OakPupilJourneyProgrammeOptions.js +27 -0
  171. package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyUnitsFilter/OakPupilJourneyUnitsFilter.js +42 -0
  172. package/dist/npm/es/components/owa/pupil/browse/OakPupilJourneyYearButton/OakPupilJourneyYearButton.js +31 -0
  173. package/dist/npm/es/components/owa/pupil/lesson/OakLessonBottomNav/OakLessonBottomNav.js +34 -0
  174. package/dist/npm/es/components/owa/pupil/lesson/OakLessonLayout/OakLessonLayout.js +153 -0
  175. package/dist/npm/es/components/owa/pupil/lesson/OakLessonNavItem/OakLessonNavItem.js +167 -0
  176. package/dist/npm/es/components/owa/pupil/lesson/OakLessonReviewIntroVideo/OakPupilLessonReviewIntroVideo.js +30 -0
  177. package/dist/npm/es/components/owa/pupil/lesson/OakLessonReviewItem/OakPupilLessonReviewItem.js +106 -0
  178. package/dist/npm/es/components/owa/pupil/lesson/OakLessonReviewQuiz/OakPupilLessonReviewQuiz.js +56 -0
  179. package/dist/npm/es/components/owa/pupil/lesson/OakLessonTopNav/OakLessonTopNav.js +58 -0
  180. package/dist/npm/es/components/owa/pupil/lesson/OakLessonVideoTranscript/OakLessonVideoTranscript.js +27 -0
  181. package/dist/npm/es/components/owa/pupil/quiz/InternalDroppableHoldingPen/InternalDroppableHoldingPen.js +60 -0
  182. package/dist/npm/es/components/owa/pupil/quiz/OakHintButton/OakHintButton.js +27 -0
  183. package/dist/npm/es/components/owa/pupil/quiz/OakQuizCheckBox/OakQuizCheckBox.js +58 -0
  184. package/dist/npm/es/components/owa/pupil/quiz/OakQuizCounter/OakQuizCounter.js +33 -0
  185. package/dist/npm/es/components/owa/pupil/quiz/OakQuizFeedback/OakQuizFeedback.js +31 -0
  186. package/dist/npm/es/components/owa/pupil/quiz/OakQuizHint/OakQuizHint.js +28 -0
  187. package/dist/npm/es/components/owa/pupil/quiz/OakQuizMatch/OakQuizMatch.js +121 -0
  188. package/dist/npm/es/components/owa/pupil/quiz/OakQuizOrder/OakQuizOrder.js +88 -0
  189. package/dist/npm/es/components/owa/pupil/quiz/OakQuizPrintableHeader/OakQuizPrintableHeader.js +29 -0
  190. package/dist/npm/es/components/owa/pupil/quiz/OakQuizPrintableSubHeader/OakQuizPrintableSubHeader.js +28 -0
  191. package/dist/npm/es/components/owa/pupil/quiz/OakQuizRadioButton/OakQuizRadioButton.js +78 -0
  192. package/dist/npm/es/components/owa/pupil/quiz/OakQuizResultItem/OakQuizResultItem.js +70 -0
  193. package/dist/npm/es/components/owa/pupil/quiz/OakQuizTextInput/OakQuizTextInput.js +28 -0
  194. package/dist/npm/es/components/owa/teacher/OakDownloadsAccordion/OakDownloadsAccordion.js +56 -0
  195. package/dist/npm/es/components/owa/teacher/OakInlineRegistrationBanner/OakInlineRegistrationBanner.js +62 -0
  196. package/dist/npm/es/components/owa/teacher/OakInlineRegistrationBanner/SurfingStudentSVG.js +15 -0
  197. package/dist/npm/es/components/owa/teacher/OakTeacherNotesInline/OakTeacherNotesInline.js +16 -0
  198. package/dist/npm/es/components/owa/teacher/OakTeacherNotesModal/OakTeacherNotesModal.js +72 -0
  199. package/dist/npm/es/components/owa/teacher/OakTertiaryOLNav/OakTertiaryOLNav.js +34 -0
  200. package/dist/npm/es/components/presentational/OakCarousel/OakCarousel.js +39 -0
  201. package/dist/npm/es/components/presentational/OakCarousel/SubCarouselPositionControl.js +12 -0
  202. package/dist/npm/es/components/presentational/OakCarousel/SubCarouselPositionIndicator.js +17 -0
  203. package/dist/npm/es/components/presentational/OakQuote/OakQuote.js +34 -0
  204. package/dist/npm/es/components/typography/OakHeading/OakHeading.js +33 -0
  205. package/dist/npm/es/components/typography/OakLI/OakLI.js +23 -0
  206. package/dist/npm/es/components/typography/OakOL/OakOL.js +22 -0
  207. package/dist/npm/es/components/typography/OakP/OakP.js +17 -0
  208. package/dist/npm/es/components/typography/OakSpan/OakSpan.js +18 -0
  209. package/dist/npm/es/components/typography/OakTypography/OakTypography.js +16 -0
  210. package/dist/npm/es/components/typography/OakUL/OakUL.js +19 -0
  211. package/dist/npm/es/components/unstyled/UnstyledChevronAccordion/UnstyledChevronAccordion.js +55 -0
  212. package/dist/npm/es/hooks/useBreakpoint.js +38 -0
  213. package/dist/npm/es/hooks/useIsScrolled.js +30 -0
  214. package/dist/npm/es/hooks/useMediaQuery.js +20 -0
  215. package/dist/npm/es/hooks/useMounted.js +12 -0
  216. package/dist/npm/es/image-map.js +205 -0
  217. package/dist/npm/es/index.js +196 -0
  218. package/dist/npm/es/styles/global/oak.styles.js +17 -0
  219. package/dist/npm/es/styles/global/reset.styles.js +11 -0
  220. package/dist/npm/es/styles/helpers/getFontSize.js +9 -0
  221. package/dist/npm/es/styles/helpers/getInternalPadding.js +15 -0
  222. package/dist/npm/es/styles/helpers/parseBorder.js +13 -0
  223. package/dist/npm/es/styles/helpers/parseBorderRadius.js +13 -0
  224. package/dist/npm/es/styles/helpers/parseBorderWidth.js +15 -0
  225. package/dist/npm/es/styles/helpers/parseColor.js +19 -0
  226. package/dist/npm/es/styles/helpers/parseColorFilter.js +19 -0
  227. package/dist/npm/es/styles/helpers/parseDropShadow.js +15 -0
  228. package/dist/npm/es/styles/helpers/parseOpacity.js +12 -0
  229. package/dist/npm/es/styles/helpers/parseSpacing.js +29 -0
  230. package/dist/npm/es/styles/helpers/parseTransitions.js +12 -0
  231. package/dist/npm/es/styles/helpers/parseTypography.js +36 -0
  232. package/dist/npm/es/styles/helpers/parseZIndex.js +13 -0
  233. package/dist/npm/es/styles/helpers/pxToRem.js +7 -0
  234. package/dist/npm/es/styles/helpers/truthy.js +13 -0
  235. package/dist/npm/es/styles/theme/borders.js +22 -0
  236. package/dist/npm/es/styles/theme/color.js +207 -0
  237. package/dist/npm/es/styles/theme/dark.theme.js +99 -0
  238. package/dist/npm/es/styles/theme/default.theme.js +99 -0
  239. package/dist/npm/es/styles/theme/dropShadow.js +13 -0
  240. package/dist/npm/es/styles/theme/opacity.js +8 -0
  241. package/dist/npm/es/styles/theme/spacing.js +48 -0
  242. package/dist/npm/es/styles/theme/transitions.js +6 -0
  243. package/dist/npm/es/styles/theme/typography.js +73 -0
  244. package/dist/npm/es/styles/theme/zIndex.js +17 -0
  245. package/dist/npm/es/styles/utils/borderStyle.js +27 -0
  246. package/dist/npm/es/styles/utils/colorFilterStyle.js +9 -0
  247. package/dist/npm/es/styles/utils/colorStyle.js +9 -0
  248. package/dist/npm/es/styles/utils/displayStyle.js +8 -0
  249. package/dist/npm/es/styles/utils/dropShadowStyle.js +9 -0
  250. package/dist/npm/es/styles/utils/flexStyle.js +9 -0
  251. package/dist/npm/es/styles/utils/listStyle.js +8 -0
  252. package/dist/npm/es/styles/utils/opacityStyle.js +9 -0
  253. package/dist/npm/es/styles/utils/positionStyle.js +9 -0
  254. package/dist/npm/es/styles/utils/responsiveStyle.js +69 -0
  255. package/dist/npm/es/styles/utils/scrollSnapStyle.js +11 -0
  256. package/dist/npm/es/styles/utils/sizeStyle.js +9 -0
  257. package/dist/npm/es/styles/utils/spacingStyle.js +25 -0
  258. package/dist/npm/es/styles/utils/transformStyle.js +8 -0
  259. package/dist/npm/es/styles/utils/transitionStyle.js +9 -0
  260. package/dist/npm/es/styles/utils/typographyStyle.js +9 -0
  261. package/dist/npm/es/styles/utils/zIndexStyle.js +9 -0
  262. package/dist/npm/es/svgs/button-border-bottom.js +6 -0
  263. package/dist/npm/es/svgs/button-border-left.js +6 -0
  264. package/dist/npm/es/svgs/button-border-right.js +6 -0
  265. package/dist/npm/es/svgs/button-border-top.js +6 -0
  266. package/dist/npm/es/svgs/header-underline.js +6 -0
  267. package/dist/npm/es/svgs/horizontal-rule.js +6 -0
  268. package/dist/npm/es/svgs/icon-background.js +6 -0
  269. package/dist/npm/es/svgs/scribble.js +11 -0
  270. package/dist/npm/es/svgs/underline-3.js +6 -0
  271. package/dist/npm/es/svgs/underline.js +6 -0
  272. package/dist/npm/es/test-helpers/colorConversion.js +14 -0
  273. package/dist/npm/es/test-helpers/mockIntersectionObserver.js +50 -0
  274. package/dist/npm/es/test-helpers/mockResizeObserver.js +25 -0
  275. package/dist/npm/es/types.d.ts +5249 -0
  276. package/package.json +28 -12
  277. package/dist/cjs/index.js +0 -15
  278. package/dist/cjs/index.js.map +0 -1
  279. package/dist/esm/index.js +0 -15
  280. package/dist/esm/index.js.map +0 -1
  281. /package/dist/{types.d.ts → npm/cjs/types.d.ts} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../node_modules/.pnpm/@rollup+plugin-typescript@12.3.0_rollup@4.60.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js","../../src/styles/theme/color.ts","../../src/styles/helpers/parseColor.ts","../../src/styles/helpers/truthy.ts","../../src/styles/utils/responsiveStyle.ts","../../src/styles/utils/colorStyle.ts","../../src/styles/helpers/pxToRem.ts","../../src/styles/theme/spacing.ts","../../src/styles/helpers/parseSpacing.ts","../../src/styles/utils/positionStyle.ts","../../src/styles/utils/sizeStyle.ts","../../src/styles/utils/spacingStyle.ts","../../src/styles/theme/borders.ts","../../src/styles/helpers/parseBorder.ts","../../src/styles/helpers/parseBorderRadius.ts","../../src/styles/utils/borderStyle.ts","../../src/styles/utils/displayStyle.ts","../../src/styles/theme/dropShadow.ts","../../src/styles/helpers/parseDropShadow.ts","../../src/styles/utils/dropShadowStyle.ts","../../src/styles/theme/opacity.ts","../../src/styles/helpers/parseOpacity.ts","../../src/styles/utils/opacityStyle.ts","../../src/styles/utils/transformStyle.ts","../../src/styles/theme/transitions.ts","../../src/styles/helpers/parseTransitions.ts","../../src/styles/utils/transitionStyle.ts","../../src/styles/theme/typography.ts","../../src/styles/helpers/parseTypography.ts","../../src/styles/utils/typographyStyle.ts","../../src/styles/theme/zIndex.ts","../../src/styles/helpers/parseZIndex.ts","../../src/styles/utils/zIndexStyle.ts","../../src/styles/utils/scrollSnapStyle.ts","../../src/components/layout-and-structure/OakBox/OakBox.tsx","../../src/styles/utils/flexStyle.ts","../../src/components/layout-and-structure/OakFlex/OakFlex.tsx","../../src/components/typography/OakSpan/OakSpan.tsx","../../src/svgs/underline.tsx","../../src/components/images-and-icons/OakSvg/OakSvg.tsx","../../src/svgs/header-underline.tsx","../../src/svgs/horizontal-rule.tsx","../../src/svgs/underline-3.tsx","../../src/svgs/button-border-top.tsx","../../src/svgs/button-border-bottom.tsx","../../src/svgs/button-border-left.tsx","../../src/svgs/button-border-right.tsx","../../src/svgs/icon-background.tsx","../../src/svgs/scribble.tsx","../../src/components/internal-components/InternalButton/InternalButton.tsx","../../src/image-map.ts","../../src/styles/helpers/parseColorFilter.ts","../../src/styles/utils/colorFilterStyle.tsx","../../src/components/images-and-icons/OakImage/OakImage.tsx","../../src/components/images-and-icons/OakImage/useShowPlaceholder.ts","../../src/components/images-and-icons/OakIcon/OakIcon.tsx","../../src/components/messaging-and-feedback/OakScreenReader/OakScreenReader.tsx","../../src/components/messaging-and-feedback/OakLoadingSpinner/OakLoadingSpinner.tsx","../../src/components/internal-components/InternalShadowRectButton/InternalShadowRectButton.tsx","../../src/components/buttons/OakSecondaryButton/OakSecondaryButton.tsx","../../src/components/buttons/OakButtonWithDropdown/OakButtonWithDropdown.tsx","../../src/components/internal-components/InternalShadowRoundButton/InternalShadowRoundButton.tsx","../../src/components/buttons/OakCloseButton/OakCloseButton.tsx","../../src/components/buttons/OakPrimaryButton/OakPrimaryButton.tsx","../../src/components/buttons/OakPrimaryInvertedButton/OakPrimaryInvertedButton.tsx","../../src/components/buttons/OakSecondaryButtonWithDropdown/OakSecondaryButtonWithDropdown.tsx","../../src/components/buttons/OakSmallPrimaryButton/OakSmallPrimaryButton.tsx","../../src/components/buttons/OakSmallPrimaryInvertedButton/OakSmallPrimaryInvertedButton.tsx","../../src/components/buttons/OakSmallSecondaryButton/OakSmallSecondaryButton.tsx","../../src/components/buttons/OakSmallSecondaryButtonWithDropdown/OakSmallSecondaryButtonWithDropdown.tsx","../../src/components/buttons/OakSmallSecondaryToggleButton/OakSmallSecondaryToggleButton.tsx","../../src/components/internal-components/InternalShadowIconButton/InternalShadowIconButton.tsx","../../src/components/buttons/OakTertiaryButton/OakTertiaryButton.tsx","../../src/components/buttons/OakTertiaryInvertedButton/OakTertiaryInvertedButton.tsx","../../src/components/buttons/OakLeftAlignedButton/OakLeftAlignedButton.tsx","../../src/components/typography/OakHeading/OakHeading.tsx","../../src/styles/utils/listStyle.ts","../../src/components/typography/OakLI/OakLI.tsx","../../src/components/typography/OakOL/OakOL.tsx","../../src/components/typography/OakP/OakP.tsx","../../src/components/typography/OakTypography/OakTypography.tsx","../../src/components/typography/OakUL/OakUL.tsx","../../src/components/navigation/OakLink/config.tsx","../../src/components/internal-components/InternalLink/InternalLink.tsx","../../src/components/navigation/OakLink/OakLink.tsx","../../src/components/cookies/OakCookieBanner/OakCookieBanner.tsx","../../src/components/internal-components/InternalAccordion/InternalAccordionProvider.tsx","../../src/components/internal-components/InternalAccordion/useAccordionContext.ts","../../src/components/internal-components/InternalAccordion/InternalAccordion.tsx","../../src/components/layout-and-structure/OakAccordion/OakAccordion.tsx","../../src/components/internal-components/InternalCheckBox/InternalCheckBox.tsx","../../src/components/form-elements/OakLabel/OakLabel.tsx","../../src/components/internal-components/InternalCheckBoxLabel/InternalCheckBoxLabel.tsx","../../src/components/internal-components/InternalCheckBoxWrapper/InternalCheckBoxWrapper.tsx","../../src/components/form-elements/OakCheckBox/OakCheckBox.tsx","../../src/hooks/useIsScrolled.tsx","../../src/hooks/useMounted.tsx","../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@18.2.47_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js","../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.2.47_react@18.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.js","../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.2.47_react@18.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js","../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.2.47_react@18.2.0/node_modules/use-callback-ref/dist/es2015/useRef.js","../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@18.2.47_react@18.2.0/node_modules/use-sidecar/dist/es2015/medium.js","../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@18.2.47_react@18.2.0/node_modules/use-sidecar/dist/es2015/exports.js","../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.2.47_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/medium.js","../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.2.47_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/UI.js","../../node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/extends.js","../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js","../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js","../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js","../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js","../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js","../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js","../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js","../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js","../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js","../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/constants.js","../../node_modules/.pnpm/react-focus-lock@2.13.7_@types+react@18.2.47_react@18.2.0/node_modules/react-focus-lock/dist/es2015/FocusGuard.js","../../node_modules/.pnpm/react-focus-lock@2.13.7_@types+react@18.2.47_react@18.2.0/node_modules/react-focus-lock/dist/es2015/medium.js","../../node_modules/.pnpm/react-focus-lock@2.13.7_@types+react@18.2.47_react@18.2.0/node_modules/react-focus-lock/dist/es2015/scope.js","../../node_modules/.pnpm/react-focus-lock@2.13.7_@types+react@18.2.47_react@18.2.0/node_modules/react-focus-lock/dist/es2015/Lock.js","../../node_modules/.pnpm/react-focus-lock@2.13.7_@types+react@18.2.47_react@18.2.0/node_modules/react-focus-lock/dist/es2015/util.js","../../node_modules/.pnpm/react-focus-on@3.10.2_@types+react@18.2.47_react@18.2.0/node_modules/react-focus-on/dist/es2015/medium.js","../../node_modules/.pnpm/react-focus-on@3.10.2_@types+react@18.2.47_react@18.2.0/node_modules/react-focus-on/dist/es2015/UI.js","../../node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.js","../../node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../../node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/utils/array.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/utils/is.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/utils/tabOrder.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/utils/tabUtils.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/utils/tabbables.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/utils/DOMutils.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/utils/all-affected.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/utils/safe.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/focusInside.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/utils/correctFocus.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/utils/firstFocus.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/solver.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/utils/auto-focus.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/utils/parenting.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/focusSolver.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/commands.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/moveFocusInside.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/return-focus.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/sibling.js","../../node_modules/.pnpm/react-focus-lock@2.13.7_@types+react@18.2.47_react@18.2.0/node_modules/react-focus-lock/dist/es2015/Trap.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/focusIsHidden.js","../../node_modules/.pnpm/focus-lock@1.3.6/node_modules/focus-lock/dist/es2015/focusables.js","../../node_modules/.pnpm/react-clientside-effect@1.2.8_react@18.2.0/node_modules/react-clientside-effect/lib/index.es.js","../../node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/defineProperty.js","../../node_modules/.pnpm/react-focus-lock@2.13.7_@types+react@18.2.47_react@18.2.0/node_modules/react-focus-lock/dist/es2015/sidecar.js","../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.2.47_react@18.2.0/node_modules/react-style-singleton/dist/es2015/singleton.js","../../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js","../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.2.47_react@18.2.0/node_modules/react-style-singleton/dist/es2015/component.js","../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.2.47_react@18.2.0/node_modules/react-style-singleton/dist/es2015/hook.js","../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@18.2.47_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.js","../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@18.2.47_react@18.2.0/node_modules/react-remove-scroll-bar/dist/es2015/component.js","../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.2.47_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js","../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.2.47_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.js","../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.2.47_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.js","../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@18.2.47_react@18.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js","../../node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js","../../node_modules/.pnpm/react-focus-on@3.10.2_@types+react@18.2.47_react@18.2.0/node_modules/react-focus-on/dist/es2015/InteractivityDisabler.js","../../node_modules/.pnpm/react-focus-on@3.10.2_@types+react@18.2.47_react@18.2.0/node_modules/react-focus-on/dist/es2015/Effect.js","../../node_modules/.pnpm/react-focus-on@3.10.2_@types+react@18.2.47_react@18.2.0/node_modules/react-focus-on/dist/es2015/sidecar.js","../../node_modules/.pnpm/react-focus-on@3.10.2_@types+react@18.2.47_react@18.2.0/node_modules/react-focus-on/dist/es2015/Combination.js","../../node_modules/.pnpm/react-transition-group@4.4.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/react-transition-group/esm/config.js","../../node_modules/.pnpm/react-transition-group@4.4.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/react-transition-group/esm/utils/PropTypes.js","../../node_modules/.pnpm/react-transition-group@4.4.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/react-transition-group/esm/TransitionGroupContext.js","../../node_modules/.pnpm/react-transition-group@4.4.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/react-transition-group/esm/Transition.js","../../node_modules/.pnpm/react-transition-group@4.4.5_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/react-transition-group/esm/utils/reflow.js","../../node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../src/components/internal-components/InternalSlideInFlex/InternalSlideInFlex.tsx","../../src/components/internal-components/InternalModalTransition/InternalModalTransition.tsx","../../src/components/messaging-and-feedback/OakInformativeModal/OakInformativeModal.tsx","../../src/components/messaging-and-feedback/OakInformativeModal/OakInformativeModalFooter.tsx","../../src/components/cookies/OakCookieSettingsModal/OakCookieSettingsModal.tsx","../../src/components/cookies/OakCookieConsentProvider/cookieConsentReducer.ts","../../src/components/cookies/OakCookieConsentProvider/OakCookieConsentProvider.tsx","../../src/components/form-elements/OakFieldset/OakFieldset.tsx","../../src/components/form-elements/OakForm/OakForm.tsx","../../src/components/form-elements/OakTextArea/OakTextArea.tsx","../../src/components/form-elements/OakButtonAsRadioGroup/OakButtonAsRadioGroup.tsx","../../src/components/form-elements/OakFieldError/OakFieldError.tsx","../../src/components/internal-components/InternalTextInput/InternalTextInput.tsx","../../src/components/form-elements/OakFormInput/OakFormInput.tsx","../../src/components/form-elements/OakJauntyAngleLabel/OakJauntyAngleLabel.tsx","../../src/styles/helpers/getInternalPadding.ts","../../src/styles/helpers/getFontSize.ts","../../src/components/layout-and-structure/OakGrid/OakGrid.tsx","../../src/components/layout-and-structure/OakGridArea/OakGridArea.tsx","../../src/hooks/useMediaQuery.tsx","../../src/hooks/useBreakpoint.ts","../../src/components/form-elements/OakMultilineText/OakMultilineText.tsx","../../src/components/form-elements/OakRadioGroup/OakRadioGroup.tsx","../../src/components/internal-components/InternalRadio/InternalRadio.tsx","../../src/components/internal-components/InternalRadioWrapper/InternalRadioWrapper.tsx","../../src/components/form-elements/OakRadioButton/OakRadioButton.tsx","../../src/components/form-elements/OakSecondaryButtonAsRadio/OakSecondaryButtonAsRadio.tsx","../../src/components/form-elements/OakSelect/NativeSelect.tsx","../../src/components/form-elements/OakSelect/OakSelect.tsx","../../src/components/form-elements/OakSelect/NativeOptGroup.tsx","../../src/components/form-elements/OakSelect/NativeOption.tsx","../../src/components/form-elements/OakSelect/NativeLegend.tsx","../../src/components/form-elements/OakTextInput/OakTextInput.tsx","../../src/components/form-elements/OakRadioAsButton/OakRadioAsButton.tsx","../../src/components/form-elements/OakSearchFilterCheckBox/OakSearchFilterCheckBox.tsx","../../src/components/house-cat/utils.ts","../../src/components/house-cat/OakCaptionCard/OakCaptionCard.tsx","../../src/components/owa/OakFormInputWithLabels/OakFormInputWithLabels.tsx","../../src/components/images-and-icons/OakAspectRatio/OakAspectRatio.tsx","../../src/components/images-and-icons/OakRoundIcon/OakRoundIcon.tsx","../../src/components/layout-and-structure/OakMaxWidth/OakMaxWidth.tsx","../../src/styles/theme/default.theme.ts","../../src/styles/helpers/parseBorderWidth.ts","../../src/components/internal-components/InternalStyledSvg/InternalStyledSvg.tsx","../../src/components/messaging-and-feedback/OakHandDrawnFocusUnderline/SubHandDrawnFocusUnderline.tsx","../../src/components/messaging-and-feedback/OakHandDrawnFocusUnderline/OakHandDrawnFocusUnderline.tsx","../../src/components/internal-components/InternalChevronAccordion/InternalChevronAccordion.tsx","../../src/components/layout-and-structure/OakCollapsibleContent/OakCollapsibleContent.tsx","../../src/components/messaging-and-feedback/OakKbd/OakKbd.tsx","../../src/components/messaging-and-feedback/OakInlineBanner/OakInlineBanner.tsx","../../src/components/messaging-and-feedback/OakModalCenter/OakModalCenter.tsx","../../src/components/messaging-and-feedback/OakModalCenter/OakModalCenterBody.tsx","../../src/components/messaging-and-feedback/OakTagFunctional/OakTagFunctional.tsx","../../src/components/messaging-and-feedback/OakToast/OakToast.tsx","../../src/components/internal-components/InternalTooltip/InternalTooltip.tsx","../../src/components/messaging-and-feedback/OakTooltip/OakTooltip.tsx","../../src/components/messaging-and-feedback/OakFocusIndicator/OakFocusIndicator.tsx","../../src/components/navigation/OakAnchorTarget/OakAnchorTarget.tsx","../../src/components/navigation/OakHoverLink/OakHoverLink.tsx","../../src/components/navigation/OakPagination/OakPagination.tsx","../../src/components/navigation/OakPrimaryNavItem/OakPrimaryNavItem.tsx","../../src/components/navigation/OakSecondaryLink/OakSecondaryLink.tsx","../../src/components/navigation/OakTabs/OakTabs.tsx","../../src/components/navigation/OakCard/OakCard.tsx","../../src/components/navigation/OakBreadcrumbs/OakBreadcrumbs.tsx","../../src/components/owa/teacher/OakDownloadsAccordion/OakDownloadsAccordion.tsx","../../src/components/owa/teacher/OakInlineRegistrationBanner/SurfingStudentSVG.tsx","../../src/components/owa/teacher/OakTeacherNotesInline/OakTeacherNotesInline.tsx","../../src/components/owa/teacher/OakTeacherNotesModal/OakTeacherNotesModal.tsx","../../src/components/owa/teacher/OakTertiaryOLNav/OakTertiaryOLNav.tsx","../../src/components/owa/pupil/browse/OakPupilJourneyContentGuidance/OakPupilJourneyContentGuidance.tsx","../../src/components/owa/OakBulletList/OakBulletList.tsx","../../src/components/internal-components/InternalCard/InternalCard.tsx","../../src/components/internal-components/InternalCardWithBackgroundElement/InternalCardWithBackgroundElement.tsx","../../src/components/owa/OakHandDrawnCard/OakHandDrawnCard.tsx","../../src/components/owa/OakHandDrawnCardWithIcon/OakHandDrawnCardWithIcon.tsx","../../src/components/owa/pupil/browse/OakPupilJourneyHeader/OakPupilJourneyHeader.tsx","../../src/components/owa/pupil/browse/OakPupilJourneyLayout/OakPupilJourneyLayout.tsx","../../src/components/owa/OakHandDrawnHR/HandDrawnHRSvg.tsx","../../src/components/owa/OakHandDrawnHR/OakHandDrawnHR.tsx","../../src/components/owa/pupil/browse/OakPupilJourneyList/OakPupilJourneyList.tsx","../../src/components/owa/pupil/browse/OakPupilJourneyListItem/OakPupilJourneyListItem.tsx","../../src/components/owa/OakCardWithHandDrawnBorder/OakCardWithHandDrawnBorder.tsx","../../src/components/owa/pupil/browse/OakPupilJourneyOptionalityButton/OakPupilJourneyOptionalityButton.tsx","../../src/components/owa/OakOutlineAccordion/OakOutlineAccordion.tsx","../../src/components/owa/pupil/browse/OakPupilJourneyUnitsFilter/OakPupilJourneyUnitsFilter.tsx","../../src/components/owa/pupil/quiz/OakHintButton/OakHintButton.tsx","../../src/components/owa/pupil/quiz/OakQuizHint/OakQuizHint.tsx","../../src/components/owa/pupil/quiz/OakQuizFeedback/OakQuizFeedback.tsx","../../src/components/owa/pupil/lesson/OakLessonBottomNav/OakLessonBottomNav.tsx","../../src/components/owa/pupil/lesson/OakLessonLayout/OakLessonLayout.tsx","../../src/components/owa/pupil/lesson/OakLessonNavItem/OakLessonNavItem.tsx","../../src/components/internal-components/InternalReviewAccordion/InternalReviewAccordion.tsx","../../src/components/owa/pupil/lesson/OakLessonReviewQuiz/OakPupilLessonReviewQuiz.tsx","../../src/components/owa/pupil/lesson/OakLessonReviewItem/OakPupilLessonReviewItem.tsx","../../src/components/owa/pupil/lesson/OakLessonTopNav/OakLessonTopNav.tsx","../../src/components/owa/pupil/lesson/OakLessonVideoTranscript/OakLessonVideoTranscript.tsx","../../src/components/owa/pupil/quiz/OakQuizCheckBox/OakQuizCheckBox.tsx","../../src/components/owa/pupil/quiz/OakQuizCounter/OakQuizCounter.tsx","../../node_modules/.pnpm/@dnd-kit+utilities@3.2.2_react@18.2.0/node_modules/@dnd-kit/utilities/dist/utilities.esm.js","../../node_modules/.pnpm/@dnd-kit+accessibility@3.1.1_react@18.2.0/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js","../../node_modules/.pnpm/@dnd-kit+core@6.3.1_react-dom@18.2.0_react@18.2.0__react@18.2.0/node_modules/@dnd-kit/core/dist/core.esm.js","../../node_modules/.pnpm/@dnd-kit+sortable@10.0.0_@dnd-kit+core@6.3.1_react-dom@18.2.0_react@18.2.0__react@18.2.0__react@18.2.0/node_modules/@dnd-kit/sortable/dist/sortable.esm.js","../../src/components/owa/pupil/quiz/InternalDroppableHoldingPen/InternalDroppableHoldingPen.tsx","../../src/components/owa/OakDragAndDropInstructions/OakDragAndDropInstructions.tsx","../../src/components/owa/OakDraggable/OakDraggable.tsx","../../src/components/owa/OakDroppable/OakDroppable.tsx","../../src/animation/usePrefersReducedMotion.ts","../../src/components/internal-components/InternalDndContext/InternalDndContext.tsx","../../src/components/internal-components/InternalClientPortal/InternalClientPortal.tsx","../../src/components/owa/pupil/quiz/OakQuizMatch/OakQuizMatch.tsx","../../src/components/owa/OakInfoButton/OakInfoButton.tsx","../../src/components/owa/OakInfo/OakInfo.tsx","../../src/components/owa/OakCodeRenderer/OakCodeRenderer.tsx","../../src/components/owa/pupil/quiz/OakQuizOrder/OakQuizOrder.tsx","../../src/components/owa/pupil/quiz/OakQuizPrintableHeader/OakQuizPrintableHeader.tsx","../../src/components/owa/pupil/quiz/OakQuizRadioButton/OakQuizRadioButton.tsx","../../src/components/owa/pupil/quiz/OakQuizResultItem/OakQuizResultItem.tsx","../../src/components/owa/pupil/OakUnitListItem/OakUnitListItem.tsx","../../src/components/owa/pupil/OakUnitListOptionalityItemCard/OakUnitListOptionalityItemCard.tsx","../../src/components/owa/pupil/OakUnitListOptionalityItem/OakUnitListOptionalityItem.tsx","../../src/components/owa/OakBackLink/OakBackLink.tsx","../../src/components/owa/OakDownloadCard/OakDownloadCard.tsx","../../src/components/owa/OakPromoTag/OakPromoTag.tsx","../../src/components/owa/OakLinkCard/OakLinkCard.tsx","../../src/components/owa/OakMediaClipListAccordion/OakMediaClipListAccordion.tsx","../../src/components/owa/OakRadioTile/OakRadioTile.tsx","../../src/components/owa/OakSaveCount/OakSaveCount.tsx","../../src/components/owa/OakTimer/OakTimer.tsx","../../src/components/owa/OakDownloadsJourneyChildSubjectTierSelector/OakDownloadsJourneyChildSubjectTierSelector.tsx","../../src/components/owa/OakHeaderHero/OakHeaderHero.tsx","../../src/components/owa/OakHomepageTabButton/OakHomepageTabButton.tsx","../../src/components/owa/OakListItem/OakListItem.tsx","../../src/components/owa/OakMediaClip/OakMediaClip.tsx","../../src/components/owa/OakMediaClipStackListItem/OakMediaClipStackListItem.tsx","../../src/components/owa/OakSideMenuNavLink/OakSideMenuNavLink.tsx","../../src/components/owa/OakSideMenuNav/OakSideMenuNav.tsx","../../src/components/owa/OakSubjectIconButton/OakSubjectIconButton.tsx","../../src/components/owa/OakCloudinaryImage/cloudinary.ts","../../src/components/owa/OakCloudinaryImage/OakCloudinaryImage.tsx","../../src/components/presentational/OakCarousel/SubCarouselPositionIndicator.tsx","../../src/components/presentational/OakCarousel/SubCarouselPositionControl.tsx","../../src/components/presentational/OakCarousel/OakCarousel.tsx","../../src/components/presentational/OakQuote/OakQuote.tsx","../../src/components/unstyled/UnstyledChevronAccordion/UnstyledChevronAccordion.tsx","../../src/styles/global/reset.styles.ts","../../src/styles/global/oak.styles.ts","../../src/components/OakGlobalStyle/OakGlobalStyle.tsx","../../src/components/layout-and-structure/OakBasicAccordion/OakBasicAccordion.tsx","../../src/components/house-cat/OakCaptionSearch/OakCaptionSearch.tsx","../../src/components/owa/OakLessonInfoCard/OakLessonInfoCard.tsx","../../src/components/cookies/OakCookieConsent/OakCookieConsent.tsx","../../src/components/owa/OakCopyLinkButton/OakCopyLinkButton.tsx","../../src/components/owa/OakDraggableFeedback/OakDraggableFeedback.tsx","../../src/components/owa/OakFilterDrawer/OakFilterDrawer.tsx","../../src/components/messaging-and-feedback/OakInformativeModal/OakInformativeModalBody.tsx","../../src/components/owa/teacher/OakInlineRegistrationBanner/OakInlineRegistrationBanner.tsx","../../src/components/owa/pupil/lesson/OakLessonReviewIntroVideo/OakPupilLessonReviewIntroVideo.tsx","../../src/components/owa/OakMediaClipList/OakMediaClipList.tsx","../../src/components/form-elements/OakSelect/OakOptGroup.tsx","../../src/components/form-elements/OakSelect/OakOption.tsx","../../src/components/navigation/OakPagination/utils.ts","../../src/components/navigation/OakPrimaryNav/OakPrimaryNav.tsx","../../src/components/owa/pupil/browse/OakPupilJourneyListCounter/OakPupilJourneyListCounter.tsx","../../src/components/owa/pupil/browse/OakPupilJourneyListItemSubheading/OakPupilJourneyListItemSubheading.tsx","../../src/components/owa/pupil/browse/OakPupilJourneyOptionalityItem/OakPupilJourneyOptionalityItem.tsx","../../src/components/owa/pupil/browse/OakPupilJourneyProgrammeOptions/OakPupilJourneyProgrammeOptions.tsx","../../src/components/owa/pupil/browse/OakPupilJourneyYearButton/OakPupilJourneyYearButton.tsx","../../src/components/owa/pupil/quiz/OakQuizPrintableSubHeader/OakQuizPrintableSubHeader.tsx","../../src/components/owa/pupil/quiz/OakQuizTextInput/OakQuizTextInput.tsx","../../src/components/owa/OakScaleImageButton/OakScaleImageButton.tsx","../../src/components/owa/OakSignLanguageButton/OakSignLanguageButton.tsx","../../src/components/buttons/OakSmallTertiaryInvertedButton/OakSmallTertiaryInvertedButton.tsx","../../src/components/owa/OakSubjectIcon/OakSubjectIcon.tsx","../../src/components/OakThemeProvider/OakThemeProvider.tsx","../../src/components/owa/OakVideoTranscript/OakVideoTranscript.tsx","../../src/test-helpers/mockIntersectionObserver.ts","../../src/test-helpers/mockResizeObserver.ts","../../src/styles/theme/dark.theme.ts","../../src/test-helpers/colorConversion.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","export const oakColorTokens = {\n white: \"#ffffff\",\n grey10: \"#f9f9f9\",\n grey20: \"#f2f2f2\",\n grey30: \"#e4e4e4\",\n grey40: \"#cacaca\",\n grey50: \"#808080\",\n grey60: \"#575757\",\n grey70: \"#2d2d2d\",\n grey80: \"#1b1b1b\",\n black: \"#222222\",\n oakGreen: \"#287c34\",\n mint: \"#bef2bd\",\n mint30: \"#ebfbeb\",\n mint50: \"#dff9de\",\n mint110: \"#93e892\",\n aqua: \"#b0e2de\",\n aqua30: \"#e7f6f5\",\n aqua50: \"#d7f1ef\",\n aqua110: \"#7cd8d0\",\n lavender: \"#a0b6f2\",\n lavender30: \"#e3e9fb\",\n lavender50: \"#bdcdf5\",\n lavender110: \"#7c9aec\",\n pink: \"#deb7d5\",\n pink30: \"#f5e9f2\",\n pink50: \"#efdbea\",\n pink110: \"#cf9cc3\",\n lemon: \"#ffe555\",\n lemon30: \"#fff7cc\",\n lemon50: \"#fff2aa\",\n lemon110: \"#fbd60e\",\n amber: \"#ff934e\",\n amber30: \"#ffece0\",\n amber50: \"#ffc8a6\",\n red: \"#dd0035\",\n red30: \"#f8d8e0\",\n red50: \"#ee809a\",\n navy: \"#0d24c4\",\n navy110: \"#0a1d9d\",\n navy120: \"#081676\",\n blue: \"#374cf1\",\n magenta: \"#d02aa7\",\n purple: \"#845ad9\",\n teal: \"#037b7d\",\n blackSemiTransparent: \"#22222240\",\n whiteSemiTransparent: \"#ffffff40\",\n transparent: \"transparent\",\n \"rpf-syntax-blue\": \"#9EE8FF\",\n \"rpf-syntax-green\": \"#94F9AF\",\n \"rpf-syntax-grey\": \"#FBFBFB\",\n \"rpf-syntax-pink\": \"#EECCFF\",\n \"dark-mint\": \"#2E5338\",\n \"dark-mint110\": \"#306D41\",\n \"dark-mint50\": \"#25372A\",\n \"dark-mint30\": \"#202B23\",\n \"dark-aqua\": \"#0C5651\",\n \"dark-aqua110\": \"#00746A\",\n \"dark-aqua50\": \"#163632\",\n \"dark-aqua30\": \"#162D2A\",\n \"dark-lavender\": \"#38488B\",\n \"dark-lavender110\": \"#2343A5\",\n \"dark-lavender50\": \"#374061\",\n \"dark-lavender30\": \"#303444\",\n \"dark-pink\": \"#72225C\",\n \"dark-pink110\": \"#8C166D\",\n \"dark-pink50\": \"#4F2341\",\n \"dark-pink30\": \"#3F2137\",\n \"dark-lemon\": \"#645811\",\n \"dark-lemon110\": \"#7A6900\",\n \"dark-lemon50\": \"#49421A\",\n \"dark-lemon30\": \"#3C3820\",\n \"dark-amber\": \"#66381D\",\n \"dark-amber110\": \"#85441B\",\n \"dark-amber50\": \"#503220\",\n \"dark-amber30\": \"#482F20\",\n \"dark-rpf-syntax-blue\": \"#0080A8\",\n \"dark-rpf-syntax-green\": \"#08892A\",\n \"dark-rpf-syntax-grey\": \"#272727\",\n \"dark-rpf-syntax-pink\": \"#630592\",\n};\n\nexport type OakColorToken = keyof typeof oakColorTokens;\n\n/**\n *\n * Use this tool to convert Hex to color filter values https://codepen.io/sosuke/pen/Pjoqqp\n *\n */\n\nexport const oakColorFilterTokens = {\n black:\n \"invert(10%) sepia(1%) saturate(236%) hue-rotate(314deg) brightness(95%) contrast(91%)\",\n red: \"invert(13%) sepia(78%) saturate(5255%) hue-rotate(337deg) brightness(88%) contrast(111%)\",\n oakGreen:\n \"invert(37%) sepia(16%) saturate(1947%) hue-rotate(77deg) brightness(100%) contrast(88%)\",\n white:\n \"invert(98%) sepia(98%) saturate(0%) hue-rotate(328deg) brightness(102%) contrast(102%)\",\n grey40:\n \"invert(92%) sepia(0%) saturate(581%) hue-rotate(147deg) brightness(94%) contrast(80%)\",\n grey50:\n \"invert(54%) sepia(0%) saturate(38%) hue-rotate(176deg) brightness(92%) contrast(91%)\",\n grey60:\n \"invert(34%) sepia(0%) saturate(698%) hue-rotate(158deg) brightness(95%) contrast(89%)\",\n navy: \"invert(21%) sepia(90%) saturate(3220%) hue-rotate(232deg) brightness(71%) contrast(127%)\",\n navy110:\n \"invert(16%) sepia(72%) saturate(7176%) hue-rotate(239deg) brightness(61%) contrast(109%)\",\n navy120:\n \"invert(12%) sepia(79%) saturate(3172%) hue-rotate(231deg) brightness(82%) contrast(114%)\",\n amber:\n \"brightness(0) saturate(100%) invert(57%) sepia(99%) saturate(395%) hue-rotate(330deg) brightness(102%) contrast(101%);\",\n lemon:\n \"invert(82%) sepia(25%) saturate(963%) hue-rotate(359deg) brightness(106%) contrast(101%)\",\n pink: \"brightness(0) saturate(100%) invert(91%) sepia(5%) saturate(2279%) hue-rotate(278deg) brightness(89%) contrast(94%)\",\n pink50:\n \"brightness(0) saturate(100%) invert(95%) sepia(3%) saturate(1596%) hue-rotate(279deg) brightness(95%) contrast(87%)\",\n mint: \"brightness(0) saturate(100%) invert(85%) sepia(7%) saturate(1206%) hue-rotate(70deg) brightness(110%) contrast(90%)\",\n mint30:\n \"brightness(0) saturate(100%) invert(85%) sepia(23%) saturate(120%) hue-rotate(71deg) brightness(112%) contrast(97%);\",\n mint50:\n \"brightness(0) saturate(100%) invert(95%) sepia(12%) saturate(443%) hue-rotate(59deg) brightness(102%) contrast(95%)\",\n mint110:\n \"brightness(0) saturate(100%) invert(88%) sepia(21%) saturate(836%) hue-rotate(60deg) brightness(98%) contrast(86%)\",\n aqua: \"brightness(0) saturate(100%) invert(100%) sepia(32%) saturate(3811%) hue-rotate(166deg) brightness(108%) contrast(77%)\",\n lavender:\n \"brightness(0) saturate(100%) invert(89%) sepia(20%) saturate(5630%) hue-rotate(186deg) brightness(95%) contrast(100%)\",\n};\n\nexport type OakColorFilterToken = keyof typeof oakColorFilterTokens;\n\nconst oakUiRoleTokensConst = [\n \"text-primary\",\n \"text-subdued\",\n \"text-error\",\n \"text-disabled\",\n \"text-link-active\",\n \"text-link-hover\",\n \"text-link-visited\",\n \"text-link-pressed\",\n \"text-inverted\",\n \"text-success\",\n \"text-promo\",\n \"bg-primary\",\n \"bg-inverted\",\n \"bg-inverted-semi-transparent\",\n \"bg-neutral\",\n \"bg-neutral-stronger\",\n \"bg-btn-primary\",\n \"bg-btn-primary-hover\",\n \"bg-btn-primary-disabled\",\n \"bg-btn-secondary\",\n \"bg-btn-secondary-hover\",\n \"bg-btn-secondary-disabled\",\n \"bg-decorative1-main\",\n \"bg-decorative1-subdued\",\n \"bg-decorative1-very-subdued\",\n \"bg-decorative2-main\",\n \"bg-decorative2-subdued\",\n \"bg-decorative2-very-subdued\",\n \"bg-decorative3-main\",\n \"bg-decorative3-subdued\",\n \"bg-decorative3-very-subdued\",\n \"bg-decorative4-main\",\n \"bg-decorative4-subdued\",\n \"bg-decorative4-very-subdued\",\n \"bg-decorative5-main\",\n \"bg-decorative5-subdued\",\n \"bg-decorative5-very-subdued\",\n \"bg-decorative6-main\",\n \"bg-decorative6-subdued\",\n \"bg-decorative6-very-subdued\",\n \"bg-interactive-element1\",\n \"bg-interactive-element2\",\n \"bg-correct\",\n \"bg-incorrect\",\n \"bg-success\",\n \"bg-error\",\n \"icon-inverted\",\n \"icon-disabled\",\n \"icon-brand\",\n \"icon-success\",\n \"icon-error\",\n \"icon-warning\",\n \"icon-primary\",\n \"icon-subdued\",\n \"icon-link-active\",\n \"icon-link-hover\",\n \"icon-link-pressed\",\n \"icon-link-visited\",\n \"icon-decorative1\",\n \"icon-decorative2\",\n \"icon-decorative3\",\n \"icon-decorative4\",\n \"icon-decorative5\",\n \"icon-decorative6\",\n \"icon-promo\",\n \"border-primary\",\n \"border-inverted\",\n \"border-neutral\",\n \"border-neutral-lighter\",\n \"border-neutral-stronger\",\n \"border-brand\",\n \"border-success\",\n \"border-error\",\n \"border-warning\",\n \"border-decorative1\",\n \"border-decorative1-stronger\",\n \"border-decorative2\",\n \"border-decorative2-stronger\",\n \"border-decorative3\",\n \"border-decorative3-stronger\",\n \"border-decorative4\",\n \"border-decorative4-stronger\",\n \"border-decorative5\",\n \"border-decorative5-stronger\",\n \"border-decorative6\",\n \"border-decorative6-stronger\",\n \"border-text-link-pressed\",\n \"transparent\",\n \"code-blue\",\n \"code-green\",\n \"code-grey\",\n \"code-pink\",\n] as const;\n\nexport type OakUiRoleToken = (typeof oakUiRoleTokensConst)[number];\n\nexport const oakUiRoleTokens = [...oakUiRoleTokensConst];\n\nexport type UiRoleMap = Record<\n OakUiRoleToken,\n OakColorToken | null | undefined\n>;\n","import {\n OakColorToken,\n OakUiRoleToken,\n oakColorTokens,\n oakUiRoleTokens,\n} from \"@/styles/theme/color\";\nimport { PropsWithTheme } from \"@/styles/theme/theme\";\n\n/**\n * - takes OakColorToken, OakUiRoleToken, null or undefined\n * - if OakColorToken is passed, returns corresponding css value\n * - if OakUiRoleToken is passed, returns a function that takes the current theme and returns the corresponding css value\n * - if null or undefined is passed, returns undefined\n */\nfunction parseColor(): undefined;\nfunction parseColor(\n value?: OakColorToken | OakUiRoleToken | null,\n): (props: PropsWithTheme) => string;\nfunction parseColor(\n value?: OakUiRoleToken | null,\n): ((props: PropsWithTheme) => string) | undefined;\nfunction parseColor(value?: OakColorToken | OakUiRoleToken | null) {\n if (value === undefined || value === null) {\n return undefined;\n }\n if (value in oakColorTokens) {\n return oakColorTokens[value as OakColorToken];\n }\n if (oakUiRoleTokens.includes(value as OakUiRoleToken)) {\n return ({ theme }: PropsWithTheme) => {\n const c = theme.uiColors[value as OakUiRoleToken];\n return oakColorTokens[c as OakColorToken];\n };\n }\n}\n\nexport { parseColor };\n","// @see https://stackoverflow.com/questions/47632622/typescript-and-filter-boolean\n\nexport type Truthy<T> = T extends false | \"\" | 0 | null | undefined ? never : T; // from lodash\n\n/**\n *\n * @description truthy takes a value and returns true|false with the correct type\n * It's useful, for example, when filtering out null values from an array.\n * Typescript compiler needs a hint to realise there aren't any more null values.\n * [{ foo: \"bar\" }, null]<Record | null>[].filter(truthy) // [{ foo: \"bar\"}]<Record>[]\n */\nexport function truthy<T>(value: T): value is Truthy<T> {\n return !!value;\n}\n","import {\n css,\n DefaultTheme,\n Interpolation,\n ThemedStyledProps,\n} from \"styled-components\";\n\nimport { truthy } from \"@/styles/helpers/truthy\";\nimport { PropsWithTheme } from \"@/styles/theme/theme\";\n\nconst breakpointsByName = {\n small: 750,\n large: 1280,\n};\n\nexport const breakpoints = Object.values(breakpointsByName).sort((a, b) =>\n a > b ? 1 : -1,\n);\n\nexport type BreakpointName = keyof typeof breakpointsByName;\n\n/** Get the pixel width for a breakpoint by its name. */\nexport const getBreakpoint = (\n breakpointName: keyof typeof breakpointsByName,\n) => {\n return breakpointsByName[breakpointName];\n};\n\nexport type Device = \"mobile\" | \"tablet\" | \"desktop\";\n\nconst mediaQueries: Record<Device, string> = {\n mobile: `(max-width: ${getBreakpoint(\"small\") - 1}px)`,\n tablet: `(min-width: ${getBreakpoint(\"small\")}px) and (max-width: ${\n getBreakpoint(\"large\") - 1\n }px)`,\n desktop: `(min-width: ${getBreakpoint(\"large\")}px)`,\n};\n\n/**\n * Get a CSS snippet of a media query condition which matches a specific device.\n *\n * @example\n * `@media ${getMediaQuery(\"mobile\")} { ... }`\n */\nexport const getMediaQuery = (device: Device) => {\n return mediaQueries[device];\n};\n\nexport type ResponsiveValues<Value> = (Value | null) | (Value | null)[];\n\ntype Generic = string | number | undefined | null;\n\n/**\n * Helper for a styled component's styles. Generates CSS to apply a value to a\n * specific CSS property, including media queries if the value is a responsive\n * array.\n */\nexport const responsiveStyle =\n <Props, T extends Generic>(\n attr: string,\n getValues: (props: Props) => ResponsiveValues<T | undefined | null>,\n parse:\n | ((unparsed: T | undefined | null) => Generic)\n | ((\n unparsed: T | undefined | null,\n ) => (props: PropsWithTheme) => Generic) = (x) => x,\n ) =>\n (props: Props): Interpolation<ThemedStyledProps<Props, DefaultTheme>> => {\n const attrCss = (value: T | undefined | null) =>\n typeof value === \"undefined\"\n ? undefined\n : css`\n ${attr}: ${parse(value)};\n `;\n const values = getValues(props);\n if (typeof values === \"undefined\") {\n return undefined;\n }\n if (!Array.isArray(values)) {\n return css`\n ${attrCss(values)}\n `;\n }\n if (values.length === 0) {\n return [];\n }\n\n return [\n css`\n ${attrCss(values[0])}\n `,\n ...breakpoints\n .slice(0, values.length)\n .map((breakpoint, i) => {\n const value = values[i + 1]; // Values are shifted relative to breakpoints\n\n if (value === undefined) {\n return undefined;\n }\n\n return css`\n @media (min-width: ${breakpoint}px) {\n ${css`\n ${attrCss(value)}\n `}\n }\n `;\n })\n .filter(truthy),\n ];\n };\n","import { css } from \"styled-components\";\n\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport {\n responsiveStyle,\n ResponsiveValues,\n} from \"@/styles/utils/responsiveStyle\";\nimport { OakUiRoleToken } from \"@/styles/theme/color\";\n\n/**\n * Color token!\n */\ntype ColorToken = ResponsiveValues<OakUiRoleToken | null>;\n\nexport type ColorStyleProps = {\n /**\n * Sets the `color` of the element.\n *\n * Accepts a UI role token or a responsive array of UI role tokens.\n */\n $color?: ColorToken;\n /**\n * Sets the `background-color` of the element.\n *\n * Accepts a UI role token or a responsive array of UI role tokens.\n */\n $background?: ColorToken;\n};\nexport const colorStyle = css<ColorStyleProps>`\n ${responsiveStyle<ColorStyleProps, OakUiRoleToken>(\n \"color\",\n (props) => props.$color,\n parseColor,\n )}\n ${responsiveStyle<ColorStyleProps, OakUiRoleToken>(\n \"background\",\n (props) => props.$background,\n parseColor,\n )}\n`;\n","const BASE_FONT_SIZE_PX = 16;\nexport const REM_DP = 3;\n\nexport default function pxToRem(px: number): number {\n return Number((px / BASE_FONT_SIZE_PX).toFixed(REM_DP));\n}\n","export const oakAllSpacingTokens = {\n \"spacing-0\": 0,\n \"spacing-2\": 2,\n \"spacing-4\": 4,\n \"spacing-8\": 8,\n \"spacing-12\": 12,\n \"spacing-16\": 16,\n \"spacing-20\": 20,\n \"spacing-24\": 24,\n \"spacing-32\": 32,\n \"spacing-40\": 40,\n \"spacing-48\": 48,\n \"spacing-56\": 56,\n \"spacing-64\": 64,\n \"spacing-72\": 72,\n \"spacing-80\": 80,\n \"spacing-92\": 92,\n \"spacing-100\": 100,\n \"spacing-120\": 120,\n \"spacing-160\": 160,\n \"spacing-180\": 180,\n \"spacing-240\": 240,\n \"spacing-360\": 360,\n \"spacing-480\": 480,\n \"spacing-640\": 640,\n \"spacing-960\": 960,\n \"spacing-1280\": 1280,\n \"spacing-1360\": 1360,\n};\n\nexport type OakAllSpacingToken = keyof typeof oakAllSpacingTokens;\n\nexport const oakSpaceBetweenTokens = {\n \"spacing-0\": \"spacing-0\",\n \"spacing-2\": \"spacing-2\",\n \"spacing-4\": \"spacing-4\",\n \"spacing-8\": \"spacing-8\",\n \"spacing-12\": \"spacing-12\",\n \"spacing-16\": \"spacing-16\",\n \"spacing-20\": \"spacing-20\",\n \"spacing-24\": \"spacing-24\",\n \"spacing-32\": \"spacing-32\",\n \"spacing-40\": \"spacing-40\",\n \"spacing-48\": \"spacing-48\",\n \"spacing-56\": \"spacing-56\",\n \"spacing-64\": \"spacing-64\",\n \"spacing-72\": \"spacing-72\",\n \"spacing-80\": \"spacing-80\",\n};\n\nexport type OakSpaceBetweenToken = keyof typeof oakSpaceBetweenTokens;\n\nexport const additionalSpacingTokens = {\n \"100%\": \"100%\",\n \"-50%\": \"-50%\",\n \"50%\": \"50%\",\n 0: \"0\",\n \"100vh\": \"100vh\",\n \"100vw\": \"100vw\",\n auto: \"auto\",\n \"fit-content\": \"fit-content\",\n \"max-content\": \"max-content\",\n \"min-content\": \"min-content\",\n inherit: \"inherit\",\n initial: \"initial\",\n unset: \"unset\",\n};\n\nexport type AdditionalSpacingTypes = keyof typeof additionalSpacingTokens;\n\nexport type OakCombinedSpacingToken =\n | OakAllSpacingToken\n | OakSpaceBetweenToken\n | AdditionalSpacingTypes;\n","import pxToRem from \"@/styles/helpers/pxToRem\";\nimport {\n OakAllSpacingToken,\n OakSpaceBetweenToken,\n OakCombinedSpacingToken,\n oakAllSpacingTokens,\n oakSpaceBetweenTokens,\n} from \"@/styles/theme/spacing\";\n\n/**\n * - takes any of OakInnerPadding, OakSpaceBetween, OakAllSpacing, and other accepted values,\n * - derives and returns the corresponding css value\n * - converting to rem where necessary\n */\nexport function parseSpacing(value?: OakCombinedSpacingToken | null) {\n // if value is null or undefined, return undefined\n if (value === undefined || value === null) {\n return undefined;\n }\n\n // mapped values\n if (value in oakAllSpacingTokens) {\n return `${pxToRem(oakAllSpacingTokens[value as OakAllSpacingToken])}rem`; // NB. type assertion is necessary because the OakAllSpacing type is dervied from oakAllSpacingPx\n }\n\n if (value in oakAllSpacingTokens) {\n return `${pxToRem(oakAllSpacingTokens[value as OakAllSpacingToken])}rem`;\n }\n\n if (value in oakSpaceBetweenTokens) {\n const v = oakSpaceBetweenTokens[value as OakSpaceBetweenToken];\n return `${pxToRem(oakAllSpacingTokens[v as OakAllSpacingToken])}rem`;\n }\n\n // value is a number, percentage or css value\n return value;\n}\n","import { CSSProperties } from \"react\";\nimport { css } from \"styled-components\";\n\nimport {\n responsiveStyle,\n ResponsiveValues,\n} from \"@/styles/utils/responsiveStyle\";\nimport {\n OakAllSpacingToken,\n OakSpaceBetweenToken,\n} from \"@/styles/theme/spacing\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\n\ntype PositionSpacing =\n | OakAllSpacingToken\n | OakSpaceBetweenToken\n | \"-50%\"\n | \"50%\"\n | null\n | undefined;\n\nexport type PositionStyleProps = {\n /**\n * Sets the `position` CSS property of the element.\n *\n * Accepts a `position` value or a responsive array of `position` values. Can be nulled.\n */\n $position?: ResponsiveValues<CSSProperties[\"position\"]>;\n /**\n * Sets the `top` CSS property of the element.\n *\n * - Accepts a spacing token or a responsive array of spacing tokens. E.g. `['spacing-4', 'spacing-8']`\n * - `50%` or `-50%` may be used to center an absolutely positioned element within its parent.\n * - Can be `null` at a breakpoint E.g. `[null, 'spacing-8']`.\n */\n $top?: ResponsiveValues<PositionSpacing>;\n /**\n * Sets the `right` CSS property of the element.\n *\n * - Accepts a spacing token or a responsive array of spacing tokens. E.g. `['spacing-4', 'spacing-8']`\n * - `50%` or `-50%` may be used to center an absolutely positioned element within its parent.\n * - Can be `null` at a breakpoint E.g. `[null, 'spacing-8']`.\n */\n $right?: ResponsiveValues<PositionSpacing>;\n /**\n * Sets the `bottom` CSS property of the element.\n *\n * - Accepts a spacing token or a responsive array of spacing tokens. E.g. `['spacing-4', 'spacing-8']`\n * - `50%` or `-50%` may be used to center an absolutely positioned element within its parent.\n * - Can be `null` at a breakpoint E.g. `[null, 'spacing-8']`.\n */\n $bottom?: ResponsiveValues<PositionSpacing>;\n /**\n * Sets the `left` CSS property of the element.\n *\n * - Accepts a spacing token or a responsive array of spacing tokens. E.g. `['spacing-4', 'spacing-8']`\n * - `50%` or `-50%` may be used to center an absolutely positioned element within its parent.\n * - Can be `null` at a breakpoint E.g. `[null, 'spacing-8']`.\n */\n $left?: ResponsiveValues<PositionSpacing>;\n /**\n * Sets the `inset` CSS property of the element.\n *\n * - Accepts a spacing token or a responsive array of spacing tokens. E.g. `['spacing-4', 'spacing-8']`\n * - Can be `null` at a breakpoint E.g. `[null, 'spacing-8']`.\n */\n $inset?: ResponsiveValues<PositionSpacing>;\n /**\n * Sets the `overflow` CSS property of the element.\n *\n * Accepts an `overflow` value or a responsive array of `overflow` values.\n */\n $overflow?: ResponsiveValues<CSSProperties[\"overflow\"]>;\n /**\n * Sets the `overflow-x` CSS property of the element.\n *\n * Accepts an `overflow-x` value or a responsive array of `overflow-x` values.\n */\n $overflowX?: ResponsiveValues<CSSProperties[\"overflowX\"]>;\n /**\n * Sets the `overflow-y` CSS property of the element.\n *\n * Accepts an `overflow-y` value or a responsive array of `overflow-y` values.\n */\n $overflowY?: ResponsiveValues<CSSProperties[\"overflowY\"]>;\n /**\n * Sets the `object-fit` CSS property of the element.\n *\n * Accepts an `object-fit` value or a responsive array of `object-fit` values.\n */\n $objectFit?: ResponsiveValues<CSSProperties[\"objectFit\"]>;\n /**\n * Sets the `object-position` CSS property of the element.\n *\n * Accepts an `object-position` value or a responsive array of `object-position` values.\n */\n $objectPosition?: ResponsiveValues<CSSProperties[\"objectPosition\"]>;\n /**\n * Sets the `pointer-events` CSS property of the element.\n *\n * Accepts a `pointer-events` value or a responsive array of `pointer-events` values.\n */\n $pointerEvents?: ResponsiveValues<CSSProperties[\"pointerEvents\"]>;\n /**\n * Sets the `visibility` CSS property of the element.\n *\n * Accepts a `visibility` value or a responsive array of `visibility` values.\n */\n $visibility?: ResponsiveValues<CSSProperties[\"visibility\"]>;\n /**\n * Sets the `vertical-align` CSS property of the element.\n *\n * Accepts a `vertical-align` value or a responsive array of `vertical-align` values.\n */\n $verticalAlign?: ResponsiveValues<CSSProperties[\"verticalAlign\"]>;\n};\n\nexport const positionStyle = css<PositionStyleProps>`\n ${responsiveStyle(\"position\", (props) => props.$position)}\n ${responsiveStyle(\"top\", (props) => props.$top, parseSpacing)} \n ${responsiveStyle(\"right\", (props) => props.$right, parseSpacing)} \n ${responsiveStyle(\"bottom\", (props) => props.$bottom, parseSpacing)} \n ${responsiveStyle(\"left\", (props) => props.$left, parseSpacing)} \n ${responsiveStyle(\"inset\", (props) => props.$inset, parseSpacing)} \n ${responsiveStyle(\"overflow\", (props) => props.$overflow)}\n ${responsiveStyle(\"overflow-x\", (props) => props.$overflowX)}\n ${responsiveStyle(\"overflow-y\", (props) => props.$overflowY)}\n ${responsiveStyle(\"object-fit\", (props) => props.$objectFit)}\n ${responsiveStyle(\"object-position\", (props) => props.$objectPosition)}\n ${responsiveStyle(\"pointer-events\", (props) => props.$pointerEvents)}\n ${responsiveStyle(\"visibility\", (props) => props.$visibility)}\n ${responsiveStyle(\"vertical-align\", (props) => props.$verticalAlign)}\n`;\n","import { css, CSSProperties } from \"styled-components\";\n\nimport {\n responsiveStyle,\n ResponsiveValues,\n} from \"@/styles/utils/responsiveStyle\";\nimport { OakCombinedSpacingToken } from \"@/styles/theme/spacing\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\n\ntype SizeValues = ResponsiveValues<OakCombinedSpacingToken | null | undefined>;\n\nexport type SizeStyleProps = {\n /**\n * Sets the `width` CSS property of the element.\n *\n * Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.\n */\n $width?: SizeValues;\n /**\n * Sets the `min-width` CSS property of the element.\n *\n * Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.\n */\n $minWidth?: SizeValues;\n /**\n * Sets the `max-width` CSS property of the element.\n *\n * Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.\n */\n $maxWidth?: SizeValues;\n /**\n * Sets the `height` CSS property of the element.\n *\n * Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.\n */\n $height?: SizeValues;\n /**\n * Sets the `min-height` CSS property of the element.\n *\n * Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.\n */\n $minHeight?: SizeValues;\n /**\n * Sets the `max-height` CSS property of the element.\n *\n * Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.\n */\n $maxHeight?: SizeValues;\n /**\n * Sets the `aspect-ratio` CSS property of the element.\n *\n * Accepts an `aspect-ratio` value or a responsive array of `aspect-ratio` values.\n */\n $aspectRatio?: ResponsiveValues<CSSProperties[\"aspectRatio\"]>;\n /**\n * Sets the `box-sizing` CSS property of the element.\n *\n * Accepts a `box-sizing` value or a responsive array of `box-sizing` values.\n */\n $boxSizing?: ResponsiveValues<CSSProperties[\"boxSizing\"]>;\n};\n\nexport const sizeStyle = css<SizeStyleProps>`\n ${responsiveStyle(\"width\", (props) => props.$width, parseSpacing)}\n ${responsiveStyle(\"min-width\", (props) => props.$minWidth, parseSpacing)}\n ${responsiveStyle(\"max-width\", (props) => props.$maxWidth, parseSpacing)}\n ${responsiveStyle(\"height\", (props) => props.$height, parseSpacing)}\n ${responsiveStyle(\"min-height\", (props) => props.$minHeight, parseSpacing)}\n ${responsiveStyle(\"max-height\", (props) => props.$maxHeight, parseSpacing)}\n ${responsiveStyle(\"aspect-ratio\", (props) => props.$aspectRatio)}\n ${responsiveStyle(\"box-sizing\", (props) => props.$boxSizing)}\n`;\n","import { css } from \"styled-components\";\n\nimport {\n responsiveStyle,\n ResponsiveValues,\n} from \"@/styles/utils/responsiveStyle\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport {\n OakAllSpacingToken,\n OakSpaceBetweenToken,\n} from \"@/styles/theme/spacing\";\n\nexport type PaddingValues = ResponsiveValues<\n OakAllSpacingToken | null | undefined\n>;\n\nexport type PaddingStyleProps = {\n /**\n * Applies `padding` to all sides of the element\n *\n * Accepts an inner padding token or a responsive array of inner padding tokens. Can be nulled.\n */\n $pa?: PaddingValues;\n /**\n * Applies `padding` to the left and right of the element\n *\n * Accepts an inner padding token or a responsive array of inner padding tokens. Can be nulled.\n */\n $ph?: PaddingValues;\n /**\n * Applies `padding` to the top and bottom of the element\n *\n * Accepts an inner padding token or a responsive array of inner padding tokens. Can be nulled.\n */\n $pv?: PaddingValues;\n /**\n * Applies `padding` to the left of the element\n *\n * Accepts an inner padding token or a responsive array of inner padding tokens. Can be nulled.\n */\n $pl?: PaddingValues;\n /**\n * Applies `padding` to the right of the element\n *\n * Accepts an inner padding token or a responsive array of inner padding tokens. Can be nulled.\n */\n $pr?: PaddingValues;\n /**\n * Applies `padding` to the top of the element\n *\n * Accepts an inner padding token or a responsive array of inner padding tokens. Can be nulled.\n */\n $pt?: PaddingValues;\n /**\n * Applies `padding` to the bottom of the element\n *\n * Accepts an inner padding token or a responsive array of inner padding tokens. Can be nulled.\n */\n $pb?: PaddingValues;\n};\n\ntype MarginValue = \"auto\" | OakSpaceBetweenToken | null | undefined;\ntype MarginValues = ResponsiveValues<MarginValue>;\n\nexport type MarginStyleProps = {\n /**\n * Applies `margin` to all sides of the element\n *\n * Accepts a space between token or a responsive array of space between tokens. Can be nulled.\n */\n $ma?: MarginValues;\n /**\n * Applies `margin` to the left and right of the element\n *\n * Accepts a space between token or a responsive array of space between tokens. Can be nulled.\n */\n $mh?: MarginValues;\n /**\n * Applies `margin` to the top and bottom of the element\n *\n * Accepts a space between token or a responsive array of space between tokens. Can be nulled.\n */\n $mv?: MarginValues;\n /**\n * Applies `margin` to the left of the element\n *\n * Accepts a space between token or a responsive array of space between tokens. Can be nulled.\n */\n $ml?: MarginValues;\n /**\n * Applies `margin` to the right of the element\n *\n * Accepts a space between token or a responsive array of space between tokens. Can be nulled.\n */\n $mr?: MarginValues;\n /**\n * Applies `margin` to the top of the element\n *\n * Accepts a space between token or a responsive array of space between tokens. Can be nulled.\n */\n $mt?: MarginValues;\n /**\n * Applies `margin` to the bottom of the element\n *\n * Accepts a space between token or a responsive array of space between tokens. Can be nulled.\n */\n $mb?: MarginValues;\n};\n\nconst paddingAll = css<{ $pa?: PaddingValues }>`\n ${responsiveStyle(\"padding\", (props) => props.$pa, parseSpacing)}\n`;\nconst paddingHorizontal = css<{ $ph?: PaddingValues }>`\n ${responsiveStyle(\"padding-left\", (props) => props.$ph, parseSpacing)}\n ${responsiveStyle(\"padding-right\", (props) => props.$ph, parseSpacing)}\n`;\nconst paddingVertical = css<{ $pv?: PaddingValues }>`\n ${responsiveStyle(\"padding-top\", (props) => props.$pv, parseSpacing)}\n ${responsiveStyle(\"padding-bottom\", (props) => props.$pv, parseSpacing)}\n`;\nconst paddingLeft = css<{ $pl?: PaddingValues }>`\n ${responsiveStyle(\"padding-left\", (props) => props.$pl, parseSpacing)}\n`;\nconst paddingRight = css<{ $pr?: PaddingValues }>`\n ${responsiveStyle(\"padding-right\", (props) => props.$pr, parseSpacing)}\n`;\nconst paddingTop = css<{ $pt?: PaddingValues }>`\n ${responsiveStyle(\"padding-top\", (props) => props.$pt, parseSpacing)}\n`;\nconst paddingBottom = css<{ $pb?: PaddingValues }>`\n ${responsiveStyle(\"padding-bottom\", (props) => props.$pb, parseSpacing)}\n`;\nconst marginAll = css<{ $ma?: MarginValues }>`\n ${responsiveStyle(\"margin\", (props) => props.$ma, parseSpacing)}\n`;\nconst marginHorizontal = css<{ $mh?: MarginValues }>`\n ${responsiveStyle(\"margin-left\", (props) => props.$mh, parseSpacing)}\n ${responsiveStyle(\"margin-right\", (props) => props.$mh, parseSpacing)}\n`;\nconst marginVertical = css<{ $mv?: MarginValues }>`\n ${responsiveStyle(\"margin-top\", (props) => props.$mv, parseSpacing)}\n ${responsiveStyle(\"margin-bottom\", (props) => props.$mv, parseSpacing)}\n`;\nconst marginLeft = css<{ $ml?: MarginValues }>`\n ${responsiveStyle(\"margin-left\", (props) => props.$ml, parseSpacing)}\n`;\nconst marginRight = css<{ $mr?: MarginValues }>`\n ${responsiveStyle(\"margin-right\", (props) => props.$mr, parseSpacing)}\n`;\nconst marginTop = css<{ $mt?: MarginValues }>`\n ${responsiveStyle(\"margin-top\", (props) => props.$mt, parseSpacing)}\n`;\nconst marginBottom = css<{ $mb?: MarginValues }>`\n ${responsiveStyle(\"margin-bottom\", (props) => props.$mb, parseSpacing)}\n`;\n\nexport const marginStyle = css<MarginStyleProps>`\n ${marginAll}\n ${marginHorizontal}\n ${marginVertical}\n ${marginLeft}\n ${marginRight}\n ${marginTop}\n ${marginBottom}\n`;\n\nexport const paddingStyle = css<PaddingStyleProps>`\n ${paddingAll}\n ${paddingHorizontal}\n ${paddingVertical}\n ${paddingLeft}\n ${paddingRight}\n ${paddingTop}\n ${paddingBottom}\n`;\n\nexport type SpacingStyleProps = PaddingStyleProps & MarginStyleProps;\nexport const spacingStyle = css<SpacingStyleProps>`\n ${paddingStyle}\n ${marginStyle}\n`;\n","export const oakBorderWidthTokens = {\n \"border-solid-none\": 0,\n \"border-solid-s\": 1,\n \"border-solid-m\": 2,\n \"border-solid-l\": 3,\n \"border-solid-xl\": 4,\n \"border-solid-xxl\": 6,\n \"border-solid-xxxl\": 8,\n \"border-solid-xxxxl\": 10,\n};\n\nexport const oakBorderRadiusTokens = {\n \"border-radius-square\": 0,\n \"border-radius-xs\": 2,\n \"border-radius-s\": 4,\n \"border-radius-m\": 6,\n \"border-radius-m2\": 8,\n \"border-radius-l\": 16,\n \"border-radius-xl\": 24,\n \"border-radius-circle\": 100,\n};\n\nexport type OakBorderRadiusToken = keyof typeof oakBorderRadiusTokens;\nexport type OakBorderWidthToken = keyof typeof oakBorderWidthTokens;\n","import {\n OakBorderWidthToken,\n oakBorderWidthTokens,\n} from \"@/styles/theme/borders\";\nimport pxToRem from \"@/styles/helpers/pxToRem\";\n\nexport const parseBorder = (value?: OakBorderWidthToken | null) => {\n if (value === undefined || value === null) {\n return undefined;\n }\n if (value in oakBorderWidthTokens) {\n return `${pxToRem(oakBorderWidthTokens[value])}rem solid`;\n }\n};\n","import pxToRem from \"./pxToRem\";\n\nimport {\n OakBorderRadiusToken,\n oakBorderRadiusTokens,\n} from \"@/styles/theme/borders\";\n\nexport const parseBorderRadius = (value?: OakBorderRadiusToken | null) => {\n if (value === undefined || value === null) {\n return undefined;\n }\n if (value in oakBorderRadiusTokens) {\n return `${pxToRem(oakBorderRadiusTokens[value])}rem`;\n }\n};\n","import { CSSProperties, css } from \"styled-components\";\n\nimport {\n OakBorderRadiusToken,\n OakBorderWidthToken,\n} from \"@/styles/theme/borders\";\nimport { OakUiRoleToken } from \"@/styles/theme/color\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseBorder } from \"@/styles/helpers/parseBorder\";\nimport { parseBorderRadius } from \"@/styles/helpers/parseBorderRadius\";\nimport {\n ResponsiveValues,\n responsiveStyle,\n} from \"@/styles/utils/responsiveStyle\";\n\ntype BorderWidth = ResponsiveValues<OakBorderWidthToken>;\ntype _BorderStyleProps = ResponsiveValues<CSSProperties[\"borderStyle\"]>;\ntype BorderColorProps = ResponsiveValues<OakUiRoleToken>;\ntype BorderRadiusProps = ResponsiveValues<OakBorderRadiusToken>;\n\nexport type BorderStyleProps = {\n /**\n * Apply border on all sides\n *\n * Accepts a border-width token or a responsive array of border-width tokens\n */\n $ba?: BorderWidth;\n /**\n * Apply border to the top\n *\n * Accepts a border-width token or a responsive array of border-width tokens\n */\n $bt?: BorderWidth;\n /**\n * Apply border to the right\n *\n * Accepts a border-width token or a responsive array of border-width tokens\n */\n $br?: BorderWidth;\n /**\n * Apply border to the bottom\n *\n * Accepts a border-width token or a responsive array of border-width tokens\n */\n $bb?: BorderWidth;\n /**\n * Apply border to the left\n *\n * Accepts a border-width token or a responsive array of border-width tokens\n */\n $bl?: BorderWidth;\n /**\n * Apply border to the left and right\n *\n * Accepts a border-width token or a responsive array of border-width tokens\n */\n $bh?: BorderWidth;\n /**\n * Apply border to the top and bottom\n *\n * Accepts a border-width token or a responsive array of border-width tokens\n */\n $bv?: BorderWidth;\n /**\n * Apply `border-style` to the element\n *\n * Accepts a single value or a responsive array of values.\n */\n $borderStyle?: _BorderStyleProps;\n /**\n * Apply a border color to all sides of the element\n *\n * Accepts a UI role token or a responsive array of UI role tokens.\n */\n $borderColor?: BorderColorProps;\n $borderRadius?: BorderRadiusProps;\n /**\n * Apply border radius to the top left\n *\n * Accepts an `OakBorderRadiusToken` or a responsive array of `OakBorderRadiusToken`s.\n */\n $btlr?: BorderRadiusProps;\n /**\n * Apply border radius to the top right\n *\n * Accepts a border-radius token or a responsive array of border-radius tokens.\n */\n $btrr?: BorderRadiusProps;\n /**\n * Apply border radius to the bottom left\n *\n * Accepts a border-radius token or a responsive array of border-radius tokens.\n */\n $bblr?: BorderRadiusProps;\n /**\n * Apply border radius to the bottom right\n *\n * Accepts a border-radius token or a responsive array of border-radius tokens.\n */\n $bbrr?: BorderRadiusProps;\n /**\n * Apply border radius to the top right and top left\n *\n * Accepts a border-radius token or a responsive array of border-radius tokens.\n */\n $btr?: BorderRadiusProps;\n /**\n * Apply border radius to the bottom right and bottom left\n *\n * Accepts a border-radius token or a responsive array of border-radius tokens\n */\n $bbr?: BorderRadiusProps;\n};\n\nconst borderAll = css<{ $ba?: BorderWidth }>`\n ${responsiveStyle(\"border\", (props) => props.$ba, parseBorder)}\n`;\nconst borderTop = css<{ $bt?: BorderWidth }>`\n ${responsiveStyle(\"border-top\", (props) => props.$bt, parseBorder)}\n`;\nconst borderRight = css<{ $br?: BorderWidth }>`\n ${responsiveStyle(\"border-right\", (props) => props.$br, parseBorder)}\n`;\nconst borderBottom = css<{ $bb?: BorderWidth }>`\n ${responsiveStyle(\"border-bottom\", (props) => props.$bb, parseBorder)}\n`;\nconst borderLeft = css<{ $bl?: BorderWidth }>`\n ${responsiveStyle(\"border-left\", (props) => props.$bl, parseBorder)}\n`;\nconst borderHorizontal = css<{ $bh?: BorderWidth }>`\n ${responsiveStyle(\"border-left\", (props) => props.$bh, parseBorder)}\n ${responsiveStyle(\"border-right\", (props) => props.$bh, parseBorder)}\n`;\nconst borderVertical = css<{ $bv?: BorderWidth }>`\n ${responsiveStyle(\"border-top\", (props) => props.$bv, parseBorder)}\n ${responsiveStyle(\"border-bottom\", (props) => props.$bv, parseBorder)}\n`;\nconst borderColor = css<{ $borderColor?: BorderColorProps }>`\n ${responsiveStyle(\"border-color\", (props) => props.$borderColor, parseColor)}\n`;\nconst borderRadius = css<{ $borderRadius?: BorderRadiusProps }>`\n ${responsiveStyle(\n \"border-radius\",\n (props) => props.$borderRadius,\n parseBorderRadius,\n )}\n`;\nconst borderRadiusTopLeft = css<BorderStyleProps>`\n ${responsiveStyle(\n \"border-top-left-radius\",\n (props) => props.$btlr,\n parseBorderRadius,\n )}\n`;\nconst borderRadiusTopRight = css<BorderStyleProps>`\n ${responsiveStyle(\n \"border-top-right-radius\",\n (props) => props.$btrr,\n parseBorderRadius,\n )}\n`;\nconst borderRadiusBottomLeft = css<BorderStyleProps>`\n ${responsiveStyle(\n \"border-bottom-left-radius\",\n (props) => props.$bblr,\n parseBorderRadius,\n )}\n`;\nconst borderRadiusBottomRight = css<BorderStyleProps>`\n ${responsiveStyle(\n \"border-bottom-right-radius\",\n (props) => props.$bbrr,\n parseBorderRadius,\n )}\n`;\nconst borderRadiusTop = css<BorderStyleProps>`\n ${responsiveStyle(\n \"border-top-left-radius\",\n (props) => props.$btr,\n parseBorderRadius,\n )}\n ${responsiveStyle(\n \"border-top-right-radius\",\n (props) => props.$btr,\n parseBorderRadius,\n )}\n`;\nconst borderRadiusBottom = css<BorderStyleProps>`\n ${responsiveStyle(\n \"border-bottom-left-radius\",\n (props) => props.$bbr,\n parseBorderRadius,\n )}\n ${responsiveStyle(\n \"border-bottom-right-radius\",\n (props) => props.$bbr,\n parseBorderRadius,\n )}\n`;\nconst borderStrokeStyle = css<BorderStyleProps>`\n ${responsiveStyle(\"border-style\", (props) => props.$borderStyle)};\n`;\nexport const borderStyle = css<BorderStyleProps>`\n ${borderAll}\n ${borderTop}\n ${borderRight}\n ${borderBottom}\n ${borderLeft}\n ${borderHorizontal}\n ${borderVertical}\n ${borderColor}\n ${borderRadius}\n ${borderRadiusTopLeft}\n ${borderRadiusTopRight}\n ${borderRadiusBottomLeft}\n ${borderRadiusBottomRight}\n ${borderRadiusTop}\n ${borderRadiusBottom}\n ${borderStrokeStyle}\n`;\n","import { CSSProperties } from \"react\";\nimport { css } from \"styled-components\";\n\nimport {\n ResponsiveValues,\n responsiveStyle,\n} from \"@/styles/utils/responsiveStyle\";\n\nexport type DisplayStyleProps = {\n /**\n * Sets the `display` CSS property of the element.\n *\n * Accepts a `display` value or a responsive array of `display` values.\n */\n $display?: ResponsiveValues<CSSProperties[\"display\"]>;\n};\n\nexport const displayStyle = css<DisplayStyleProps>`\n ${responsiveStyle(\"display\", (props) => props.$display)}\n`;\n","export const oakDropShadowTokens = {\n \"drop-shadow-standard\": \"0 0.5rem 0.5rem rgba(92, 92, 92, 20%)\",\n \"drop-shadow-lemon\": `0.125rem 0.125rem 0 rgba(255, 229, 85, 100%)`,\n \"drop-shadow-wide-lemon\": `0.25rem 0.25rem 0 rgba(255, 229, 85, 100%)`,\n \"drop-shadow-centered-lemon\": `0 0 0 0.125rem rgba(255, 229, 85, 100%)`,\n \"drop-shadow-grey\": \"0.25rem 0.25rem 0 rgba(87, 87, 87, 100%)\",\n \"drop-shadow-centered-grey\": \"0 0 0 0.3rem rgba(87, 87, 87, 100%)\",\n \"drop-shadow-black\": \"0.063rem 0.125rem 0 rgba(0,0,0, 100%)\",\n \"drop-shadow-centred-standard\": `0 0 0.5rem rgba(92, 92, 92, 20%)`,\n \"drop-shadow-none\": `none`,\n};\n\nexport type OakDropShadowToken = keyof typeof oakDropShadowTokens;\n","import {\n OakDropShadowToken,\n oakDropShadowTokens,\n} from \"@/styles/theme/dropShadow\";\n\nexport const parseDropShadow = (variant?: OakDropShadowToken | null) => {\n if (variant === null) {\n return \"none\";\n }\n\n if (!variant) {\n return;\n }\n\n if (variant in oakDropShadowTokens) {\n return oakDropShadowTokens[variant];\n }\n};\n","import { css } from \"styled-components\";\n\nimport { OakDropShadowToken } from \"@/styles/theme/dropShadow\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport {\n ResponsiveValues,\n responsiveStyle,\n} from \"@/styles/utils/responsiveStyle\";\n\nexport type DropShadowStyleProps = {\n /**\n * Applies a drop-shadow to the element.\n *\n * Accepts a drop-shadow token or a responsive array of drop-shadow tokens.\n */\n $dropShadow?: ResponsiveValues<OakDropShadowToken>;\n};\n\nexport const dropShadowStyle = css<DropShadowStyleProps>`\n ${responsiveStyle(\n \"box-shadow\",\n (props) => props.$dropShadow,\n parseDropShadow,\n )}\n`;\n","export const oakOpacityTokens = {\n transparent: 0,\n \"semi-transparent\": 0.25,\n \"semi-opaque\": 0.5,\n opaque: 1,\n};\n\nexport type OakOpacityToken = keyof typeof oakOpacityTokens;\n","import { OakOpacityToken, oakOpacityTokens } from \"@/styles/theme/opacity\";\n\nexport const parseOpacity = (variant?: OakOpacityToken | null) => {\n if (!variant) {\n return;\n }\n\n if (variant in oakOpacityTokens) {\n return oakOpacityTokens[variant];\n }\n};\n","import { css } from \"styled-components\";\n\nimport { OakOpacityToken } from \"@/styles/theme/opacity\";\nimport { parseOpacity } from \"@/styles/helpers/parseOpacity\";\nimport {\n ResponsiveValues,\n responsiveStyle,\n} from \"@/styles/utils/responsiveStyle\";\n\nexport type OpacityStyleProps = {\n /**\n * Sets the `opacity` CSS property of the element.\n *\n * Accepts an opacity token or a responsive array of opacity tokens.\n */\n $opacity?: ResponsiveValues<OakOpacityToken>;\n};\n\nexport const opacityStyle = css<OpacityStyleProps>`\n ${responsiveStyle(\"opacity\", (props) => props.$opacity, parseOpacity)}\n`;\n","import { CSSProperties, css } from \"styled-components\";\n\nimport {\n ResponsiveValues,\n responsiveStyle,\n} from \"@/styles/utils/responsiveStyle\";\n\nexport type TransformStyleProps = {\n /**\n * Sets the `transform` CSS property of the element.\n *\n * Accepts a `transform` value or a responsive array of `transform` values. Can be nulled.\n */\n $transform?: ResponsiveValues<CSSProperties[\"transform\"] | null>;\n /**\n * Sets the `transform-origin` CSS property of the element.\n *\n * Accepts a `transform-origin` value or a responsive array of `transform-origin` values. Can be nulled.\n */\n $transformOrigin?: ResponsiveValues<CSSProperties[\"transformOrigin\"] | null>;\n};\n\nexport const transformStyle = css<TransformStyleProps>`\n ${responsiveStyle(\"transform\", (props) => props.$transform)}\n ${responsiveStyle(\"transform-origin\", (props) => props.$transformOrigin)}\n`;\n","export const oakTransitionTokens = {\n \"standard-ease\": \"all 0.3s ease\",\n \"standard-transform\": \"rotate(-2deg) translateY(-16px) translateX(8px)\",\n};\n\nexport type OakTransitionToken = keyof typeof oakTransitionTokens;\n","import {\n OakTransitionToken,\n oakTransitionTokens,\n} from \"@/styles/theme/transitions\";\n\nexport const parseTransitions = (variant?: OakTransitionToken | null) => {\n if (!variant) {\n return;\n }\n\n if (variant in oakTransitionTokens) {\n return oakTransitionTokens[variant];\n }\n};\n","import { css } from \"styled-components\";\n\nimport { OakTransitionToken } from \"@/styles/theme/transitions\";\nimport { parseTransitions } from \"@/styles/helpers/parseTransitions\";\nimport {\n ResponsiveValues,\n responsiveStyle,\n} from \"@/styles/utils/responsiveStyle\";\n\ntype Transition = OakTransitionToken;\n\nexport type TransitionStyleProps = {\n /**\n * Sets the `transition` CSS property of the element.\n *\n * Accepts a transition token or a responsive array of transition tokens.\n */\n $transition?: ResponsiveValues<Transition>;\n};\n\nexport const transitionStyle = css<TransitionStyleProps>`\n ${responsiveStyle(\n \"transition\",\n (props) => props.$transition,\n parseTransitions,\n )}\n`;\n","export const oakFontSizeTokens = {\n \"font-size-1\": 12,\n \"font-size-2\": 14,\n \"font-size-3\": 16,\n \"font-size-4\": 18,\n \"font-size-5\": 20,\n \"font-size-6\": 24,\n \"font-size-7\": 32,\n \"font-size-8\": 40,\n \"font-size-9\": 48,\n \"font-size-10\": 56,\n};\nexport type OakFontSizeToken = keyof typeof oakFontSizeTokens;\n\nconst fontWeights = [300, 400, 500, 600, 700] as const;\ntype FontWeight = (typeof fontWeights)[number];\nconst lineHeights = [16, 20, 24, 28, 32, 40, 48, 56, 64] as const;\ntype LineHeight = (typeof lineHeights)[number];\nconst letterSpacings = [\"0.0115rem\", \"-0.005rem\"] as const;\ntype LetterSpacing = (typeof letterSpacings)[number];\n\ntype FontParameters = readonly [\n OakFontSizeToken,\n LineHeight,\n FontWeight,\n LetterSpacing,\n];\n\nexport const oakFontTokens = {\n \"heading-1\": [\"font-size-10\", 64, 600, \"0.0115rem\"],\n \"heading-2\": [\"font-size-9\", 56, 600, \"0.0115rem\"],\n \"heading-3\": [\"font-size-8\", 48, 600, \"0.0115rem\"],\n \"heading-4\": [\"font-size-7\", 40, 600, \"0.0115rem\"],\n \"heading-5\": [\"font-size-6\", 32, 600, \"0.0115rem\"],\n \"heading-6\": [\"font-size-5\", 24, 600, \"0.0115rem\"],\n \"heading-7\": [\"font-size-3\", 20, 600, \"0.0115rem\"],\n \"heading-light-1\": [\"font-size-10\", 64, 400, \"0.0115rem\"],\n \"heading-light-2\": [\"font-size-9\", 56, 400, \"0.0115rem\"],\n \"heading-light-3\": [\"font-size-8\", 48, 400, \"0.0115rem\"],\n \"heading-light-4\": [\"font-size-7\", 40, 400, \"0.0115rem\"],\n \"heading-light-5\": [\"font-size-6\", 32, 400, \"0.0115rem\"],\n \"heading-light-6\": [\"font-size-5\", 24, 400, \"0.0115rem\"],\n \"heading-light-7\": [\"font-size-3\", 20, 400, \"0.0115rem\"],\n \"body-1\": [\"font-size-4\", 28, 300, \"-0.005rem\"],\n \"body-2\": [\"font-size-3\", 24, 300, \"-0.005rem\"],\n \"body-3\": [\"font-size-2\", 20, 300, \"-0.005rem\"],\n \"body-4\": [\"font-size-1\", 16, 300, \"-0.005rem\"],\n \"body-1-bold\": [\"font-size-4\", 28, 500, \"-0.005rem\"],\n \"body-2-bold\": [\"font-size-3\", 24, 500, \"-0.005rem\"],\n \"body-3-bold\": [\"font-size-2\", 20, 500, \"-0.005rem\"],\n \"list-item-1\": [\"font-size-4\", 32, 300, \"-0.005rem\"],\n \"list-item-2\": [\"font-size-3\", 24, 300, \"-0.005rem\"],\n \"code-1\": [\"font-size-6\", 32, 300, \"0.0115rem\"],\n \"code-1-bold\": [\"font-size-6\", 32, 700, \"0.0115rem\"],\n \"code-2\": [\"font-size-4\", 24, 300, \"0.0115rem\"],\n \"code-2-bold\": [\"font-size-4\", 24, 700, \"0.0115rem\"],\n \"code-3\": [\"font-size-3\", 20, 300, \"0.0115rem\"],\n \"code-3-bold\": [\"font-size-3\", 20, 700, \"0.0115rem\"],\n} satisfies Record<string, FontParameters>;\n\nexport type OakFontToken = keyof typeof oakFontTokens;\n\nconst oakTextDecorationsConst = [\n \"underline\",\n \"overline\",\n \"line-through\",\n \"none\",\n] as const;\n\nconst oakWhiteSpacesConst = [\n \"normal\",\n \"nowrap\",\n \"wrap\",\n \"pre\",\n \"pre-wrap\",\n \"pre-line\",\n \"break-spaces\",\n] as const;\n\nconst oakWordWrapsConst = [\n \"normal\",\n \"break-word\",\n \"initial\",\n \"inherit\",\n] as const;\n\nconst oakTextOverflowsConst = [\"clip\", \"ellipsis\"] as const;\n\nexport type OakTextDecoration = (typeof oakTextDecorationsConst)[number];\nexport type OakWhiteSpace = (typeof oakWhiteSpacesConst)[number];\nexport type OakWordWrap = (typeof oakWordWrapsConst)[number];\nexport type OakTextOverflow = (typeof oakTextOverflowsConst)[number];\n\nexport const oakTextDecorations = [...oakTextDecorationsConst];\nexport const oakWhiteSpaces = [...oakWhiteSpacesConst];\nexport const oakWordWraps = [...oakWordWrapsConst];\nexport const oakTextOverflows = [...oakTextOverflowsConst];\n","import {\n OakFontToken,\n oakFontSizeTokens,\n oakFontTokens,\n} from \"@/styles/theme/typography\";\nimport pxToRem from \"@/styles/helpers/pxToRem\";\n\nexport const parseFontWeight = (font?: OakFontToken | null) => {\n if (!font) return;\n return oakFontTokens[font]?.[2];\n};\n\nexport const parseFontSize = (\n font?: OakFontToken | null,\n): string | null | undefined => {\n if (!font) return;\n const fontSize = oakFontTokens[font]?.[0];\n if (!fontSize) return;\n const fontSizePx = oakFontSizeTokens[fontSize];\n return `${pxToRem(fontSizePx)}rem`;\n};\nexport const parseLineHeight = (\n font?: OakFontToken | null,\n): string | null | undefined => {\n if (!font) return;\n const lineHeight = oakFontTokens[font]?.[1];\n if (!lineHeight) return;\n return `${pxToRem(lineHeight)}rem`;\n};\nexport const parseLetterSpacing = (font?: OakFontToken | null) => {\n if (!font) return;\n return oakFontTokens[font]?.[3];\n};\n","import { CSSProperties, css } from \"styled-components\";\n\nimport {\n OakFontToken,\n OakTextDecoration,\n OakTextOverflow,\n OakWhiteSpace,\n OakWordWrap,\n} from \"@/styles/theme/typography\";\nimport {\n parseFontSize,\n parseFontWeight,\n parseLetterSpacing,\n parseLineHeight,\n} from \"@/styles/helpers/parseTypography\";\nimport {\n ResponsiveValues,\n responsiveStyle,\n} from \"@/styles/utils/responsiveStyle\";\n\nexport type TypographyStyleProps = {\n /**\n * Sets the `font-size`, `line-height`, `font-weight` and `letter-spacing` of the element.\n *\n * Accepts a font token or a responsive array of font tokens.\n */\n $font?: ResponsiveValues<OakFontToken>;\n /**\n * Sets the `text-decoration` CSS property of the element.\n *\n * Accepts a text-decoration token or a responsive array of text-decoration tokens.\n */\n $textDecoration?: ResponsiveValues<OakTextDecoration>;\n /**\n * Sets the `text-align` CSS property of the element.\n *\n * Accepts a `text-align` value or a responsive array of `text-align` values.\n */\n $textAlign?: ResponsiveValues<CSSProperties[\"textAlign\"]>;\n /**\n * Sets the `white-space` CSS property of the element.\n *\n * Accepts a white-space token or a responsive array of white-space tokens.\n */\n $whiteSpace?: ResponsiveValues<OakWhiteSpace>;\n /**\n * Sets the `word-wrap` CSS property of the element.\n *\n * Accepts a word-wrap token or a responsive array of word-wrap tokens.\n */\n $wordWrap?: ResponsiveValues<OakWordWrap>;\n /**\n * Sets the `text-overflow` CSS property of the element.\n *\n * Accepts a text-overflow token or a responsive array of text-overflow tokens.\n */\n $textOverflow?: ResponsiveValues<OakTextOverflow>;\n /**\n * Sets the `overflow` CSS property of the element.\n *\n * Accepts an overflow token or a responsive array of overflow tokens.\n */\n $overflow?: ResponsiveValues<CSSProperties[\"overflow\"]>;\n /**\n * Sets the `text-wrap` CSS property of the element.\n *\n * Accepts a text-wrap token or a responsive array of text-wrap tokens.\n *\n * Controls how text inside an element is wrapped. The different values provide:\n * - Typographic improvements, for example more balanced line lengths across broken headings\n * - A way to turn text wrapping off completely\n */\n $textWrap?: ResponsiveValues<CSSProperties[\"textWrap\"]>;\n};\n\nexport const typographyStyle = css<TypographyStyleProps>`\n font-family:\n --var(google-font), Lexend, sans-serif; // FIXME: this should be a css variable ?\n ${responsiveStyle(\"font-weight\", (props) => props.$font, parseFontWeight)}\n ${responsiveStyle(\"font-size\", (props) => props.$font, parseFontSize)}\n ${responsiveStyle(\"line-height\", (props) => props.$font, parseLineHeight)}\n ${responsiveStyle(\n \"letter-spacing\",\n (props) => props.$font,\n parseLetterSpacing,\n )}\n ${responsiveStyle(\"text-align\", (props) => props.$textAlign)}\n ${responsiveStyle(\"text-decoration\", (props) => props.$textDecoration)}\n ${responsiveStyle(\"white-space\", (props) => props.$whiteSpace)}\n ${responsiveStyle(\"word-wrap\", (props) => props.$wordWrap)}\n ${responsiveStyle(\"text-overflow\", (props) => props.$textOverflow)}\n ${responsiveStyle(\"overflow\", (props) => props.$overflow)}\n ${responsiveStyle(\"text-wrap\", (props) => props.$textWrap)}\n`;\n","// For help with defining z-index values, refer to this article:\n// https://www.smashingmagazine.com/2021/02/css-z-index-large-projects/#a-new-solution\nconst behind = -1;\nconst modalDialog = 300;\nconst banner = behind + modalDialog;\n\nexport const oakZIndexTokens = {\n behind,\n neutral: 0,\n \"in-front\": 1,\n \"mobile-filters\": 2,\n \"fixed-header\": 100,\n \"modal-close-button\": 150,\n \"modal-dialog\": modalDialog,\n banner,\n} as const;\n\nexport type OakZIndexToken = keyof typeof oakZIndexTokens | null;\n","import { OakZIndexToken, oakZIndexTokens } from \"@/styles/theme/zIndex\";\n\nexport const parseZIndex = (value?: OakZIndexToken | number) => {\n if (value === undefined || value === null) {\n return undefined;\n }\n if (typeof value === \"number\") {\n return value;\n }\n return oakZIndexTokens[value];\n};\n","import { css } from \"styled-components\";\n\nimport {\n ResponsiveValues,\n responsiveStyle,\n} from \"@/styles/utils/responsiveStyle\";\nimport { OakZIndexToken } from \"@/styles/theme/zIndex\";\nimport { parseZIndex } from \"@/styles/helpers/parseZIndex\";\n\nexport type ZIndexStyleProps = {\n /**\n * Sets the `z-index` CSS property of the element.\n *\n * Accepts a z-index token or a responsive array of z-index tokens.\n */\n $zIndex?: ResponsiveValues<OakZIndexToken | number>;\n};\n\nexport const zIndexStyle = css<ZIndexStyleProps>`\n ${responsiveStyle(\"z-index\", (props) => props.$zIndex, parseZIndex)}\n`;\n","import { css } from \"styled-components\";\n\nimport {\n responsiveStyle,\n ResponsiveValues,\n} from \"@/styles/utils/responsiveStyle\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport { OakAllSpacingToken } from \"@/styles/theme/spacing\";\n\ntype ScrollMarginValue = OakAllSpacingToken | null | undefined;\ntype ScrollMarginValues = ResponsiveValues<ScrollMarginValue>;\n\nexport type ScrollSnapStyleProps = {\n /**\n * Applies `scroll-margin-top` to the element\n *\n * Accepts any Oak spacing token or a responsive array of spacing tokens. Can be nulled.\n */\n $scrollMarginTop?: ScrollMarginValues;\n /**\n * Applies `scroll-margin-left` to the element\n *\n * Accepts any Oak spacing token or a responsive array of spacing tokens. Can be nulled.\n */\n $scrollMarginLeft?: ScrollMarginValues;\n};\n\nconst scrollMarginTop = css<{ $scrollMarginTop?: ScrollMarginValues }>`\n ${responsiveStyle(\n \"scroll-margin-top\",\n (props) => props.$scrollMarginTop,\n parseSpacing,\n )}\n`;\nconst scrollMarginLeft = css<{ $scrollMarginLeft?: ScrollMarginValues }>`\n ${responsiveStyle(\n \"scroll-margin-left\",\n (props) => props.$scrollMarginLeft,\n parseSpacing,\n )}\n`;\n\nexport const scrollSnapStyle = css<ScrollSnapStyleProps>`\n ${scrollMarginTop}\n ${scrollMarginLeft}\n`;\n","import { MouseEventHandler } from \"react\";\nimport styled, { css } from \"styled-components\";\n\n/**\n * OakBox exposes all the styles that are available styles on a div element.\n */\n\nimport { colorStyle, ColorStyleProps } from \"@/styles/utils/colorStyle\";\nimport {\n positionStyle,\n PositionStyleProps,\n} from \"@/styles/utils/positionStyle\";\nimport { sizeStyle, SizeStyleProps } from \"@/styles/utils/sizeStyle\";\nimport { spacingStyle, SpacingStyleProps } from \"@/styles/utils/spacingStyle\";\nimport { borderStyle, BorderStyleProps } from \"@/styles/utils/borderStyle\";\nimport { displayStyle, DisplayStyleProps } from \"@/styles/utils/displayStyle\";\nimport {\n dropShadowStyle,\n DropShadowStyleProps,\n} from \"@/styles/utils/dropShadowStyle\";\nimport { opacityStyle, OpacityStyleProps } from \"@/styles/utils/opacityStyle\";\nimport {\n transformStyle,\n TransformStyleProps,\n} from \"@/styles/utils/transformStyle\";\nimport {\n transitionStyle,\n TransitionStyleProps,\n} from \"@/styles/utils/transitionStyle\";\nimport {\n typographyStyle,\n TypographyStyleProps,\n} from \"@/styles/utils/typographyStyle\";\nimport { zIndexStyle, ZIndexStyleProps } from \"@/styles/utils/zIndexStyle\";\nimport {\n scrollSnapStyle,\n ScrollSnapStyleProps,\n} from \"@/styles/utils/scrollSnapStyle\";\n\ntype HTMLProps = {\n onClick?: MouseEventHandler;\n};\n\nexport type OakBoxProps = {\n children?: React.ReactNode;\n} & PositionStyleProps &\n SizeStyleProps &\n SpacingStyleProps &\n ColorStyleProps &\n BorderStyleProps &\n DisplayStyleProps &\n DropShadowStyleProps &\n OpacityStyleProps &\n TransformStyleProps &\n TransitionStyleProps &\n TypographyStyleProps &\n ZIndexStyleProps &\n HTMLProps &\n ScrollSnapStyleProps;\n\nexport const oakBoxCss = css<OakBoxProps>`\n ${positionStyle}\n ${sizeStyle}\n ${spacingStyle}\n ${colorStyle}\n ${borderStyle}\n ${displayStyle}\n ${dropShadowStyle}\n ${opacityStyle}\n ${transformStyle}\n ${transitionStyle}\n ${typographyStyle}\n ${zIndexStyle}\n ${scrollSnapStyle}\n ${(props) =>\n /* onClick might be passed in the useClickableCard pattern */\n props.onClick &&\n css`\n :hover {\n cursor: pointer;\n }\n `}\n`;\n\n/**\n * OakBox exposes all the styles that are available styles on a div tag. These include:\n * - color\n * - size\n * - display\n * - spacing\n * - position\n * - border\n * - opacity\n * - z-index\n * - typography\n * - transition\n * - transform\n * - drop-shadow\n * - scroll-margin-top/left\n *\n */\nexport const OakBox = styled.div<OakBoxProps>`\n ${oakBoxCss}\n`;\n","import { CSSProperties } from \"react\";\nimport { css } from \"styled-components\";\n\nimport type { DisplayStyleProps } from \"./displayStyle\";\n\nimport {\n responsiveStyle,\n ResponsiveValues,\n} from \"@/styles/utils/responsiveStyle\";\nimport {\n OakAllSpacingToken,\n OakCombinedSpacingToken,\n OakSpaceBetweenToken,\n} from \"@/styles/theme/spacing\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\n\nexport type FlexStyleProps = DisplayStyleProps & {\n /**\n * Sets the `flex-direction` CSS property of the element.\n *\n * Accepts a `flex-direction` value or a responsive array of flex-direction values.\n */\n $flexDirection?: ResponsiveValues<CSSProperties[\"flexDirection\"]>;\n /**\n * Sets the `flex-wrap` CSS property of the element.\n *\n * Accepts a `flex-wrap` value or a responsive array of flex-wrap values.\n */\n $flexWrap?: ResponsiveValues<CSSProperties[\"flexWrap\"]>;\n /**\n * Sets the `align-items` CSS property of the element.\n *\n * Accepts an `align-items` value or a responsive array of `align-items` values.\n */\n $alignItems?: ResponsiveValues<CSSProperties[\"alignItems\"]>;\n /**\n * Sets the `align-content` CSS property of the element.\n *\n * Accepts an `align-content` value or a responsive array of `align-content` values.\n */\n $alignContent?: ResponsiveValues<CSSProperties[\"alignContent\"]>;\n /**\n * Sets the `justify-content` CSS property of the element.\n *\n * Accepts a `justify-content` value or a responsive array of `justify-content` values.\n */\n $justifyContent?: ResponsiveValues<CSSProperties[\"justifyContent\"]>;\n /**\n * Sets the `align-self` CSS property of the element.\n *\n * Accepts an `align-self` value or a responsive array of `align-self` values.\n */\n $alignSelf?: ResponsiveValues<CSSProperties[\"alignSelf\"]>;\n /**\n * Sets the `flex-grow` CSS property of the element.\n *\n * Accepts a `flex-grow` value or a responsive array of `flex-grow` values.\n */\n $flexGrow?: ResponsiveValues<CSSProperties[\"flexGrow\"]>;\n /**\n * Sets the `flex-shrink` CSS property of the element.\n *\n * Accepts a `flex-shrink` value or a responsive array of `flex-shrink` values.\n */\n $flexShrink?: ResponsiveValues<CSSProperties[\"flexShrink\"]>;\n /**\n * Sets the `order` CSS property of the element.\n *\n * Accepts an `order` value or a responsive array of `order` values.\n */\n $order?: ResponsiveValues<CSSProperties[\"order\"]>;\n /**\n * Sets the `flex-basis` CSS property of the element.\n *\n * Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.\n */\n $flexBasis?: ResponsiveValues<OakCombinedSpacingToken | null | undefined>;\n /**\n * Sets the `gap` CSS property of the element.\n *\n * Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.\n */\n $gap?: ResponsiveValues<\n OakAllSpacingToken | OakSpaceBetweenToken | null | undefined\n >;\n /**\n * Sets the `column-gap` CSS property of the element.\n *\n * Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.\n */\n $columnGap?: ResponsiveValues<\n OakAllSpacingToken | OakSpaceBetweenToken | null | undefined\n >;\n /**\n * Sets the `row-gap` CSS property of the element.\n *\n * Accepts a spacing token or a responsive array of spacing tokens. Can be nulled.\n */\n $rowGap?: ResponsiveValues<\n OakAllSpacingToken | OakSpaceBetweenToken | null | undefined\n >;\n focusable?: boolean;\n};\n\nexport const flexStyle = css<FlexStyleProps>`\n ${responsiveStyle(\"display\", (props) => props.$display ?? \"flex\")}\n ${responsiveStyle(\"flex-direction\", (props) => props.$flexDirection)}\n ${responsiveStyle(\"flex-wrap\", (props) => props.$flexWrap)}\n ${responsiveStyle(\"align-items\", (props) => props.$alignItems)}\n ${responsiveStyle(\"align-content\", (props) => props.$alignContent)}\n ${responsiveStyle(\"justify-content\", (props) => props.$justifyContent)}\n ${responsiveStyle(\"align-self\", (props) => props.$alignSelf)}\n ${responsiveStyle(\"order\", (props) => props.$order)}\n ${responsiveStyle(\"flex-grow\", (props) => props.$flexGrow)}\n ${responsiveStyle(\"flex-shrink\", (props) => props.$flexShrink)}\n ${responsiveStyle(\"flex-basis\", (props) => props.$flexBasis, parseSpacing)}\n ${responsiveStyle(\"gap\", (props) => props.$gap, parseSpacing)}\n ${responsiveStyle(\"column-gap\", (props) => props.$columnGap, parseSpacing)}\n ${responsiveStyle(\"row-gap\", (props) => props.$rowGap, parseSpacing)}\n`;\n","import styled from \"styled-components\";\n\nimport { OakBox, OakBoxProps } from \"@/components/layout-and-structure/OakBox\";\nimport { flexStyle, FlexStyleProps } from \"@/styles/utils/flexStyle\";\n\nexport type OakFlexProps = FlexStyleProps & OakBoxProps;\nexport const oakFlexCss = flexStyle;\n\n/**\n * Flex sets `display: flex;` and exposes various flex props, along with Box\n * props.\n *\n * ## Usage\n * Before adding props to this component, think about whether it makes sense\n * to add it to Box instead, as this component extends that.\n */\nconst OakFlex = styled(OakBox)<OakFlexProps>`\n ${flexStyle}\n`;\n\nexport { OakFlex };\n","import styled from \"styled-components\";\n\nimport { colorStyle, ColorStyleProps } from \"@/styles/utils/colorStyle\";\nimport { opacityStyle, OpacityStyleProps } from \"@/styles/utils/opacityStyle\";\nimport {\n marginStyle,\n MarginStyleProps,\n paddingStyle,\n PaddingStyleProps,\n} from \"@/styles/utils/spacingStyle\";\nimport {\n typographyStyle,\n TypographyStyleProps,\n} from \"@/styles/utils/typographyStyle\";\nimport { borderStyle, BorderStyleProps } from \"@/styles/utils/borderStyle\";\nimport {\n positionStyle,\n PositionStyleProps,\n} from \"@/styles/utils/positionStyle\";\n\nexport type OakSpanProps = ColorStyleProps &\n OpacityStyleProps &\n MarginStyleProps &\n PaddingStyleProps &\n BorderStyleProps &\n TypographyStyleProps &\n PositionStyleProps;\n\n/**\n * Span renders a `span` (inline text) component, exposing all the typography props.\n * ## Usage\n * Use this component when you want to apply styles to a piece of inline text.\n */\nexport const OakSpan = styled.span<OakSpanProps>`\n ${colorStyle}\n ${opacityStyle}\n ${marginStyle}\n ${paddingStyle}\n ${borderStyle}\n ${typographyStyle}\n ${positionStyle}\n`;\n","import React from \"react\";\n\nexport const Underline = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 242 7\"\n fill=\"none\"\n preserveAspectRatio=\"none\"\n >\n <path\n d=\"M241.809 5.35522C238.36 6.16872 234.702 6.32558 230.891 6.32486C205.669 6.32316 180.5 6.37674 155.305 6.30837C129.075 6.24358 102.854 6.03729 76.6237 5.95308C56.5815 5.88912 36.5201 5.94726 16.4689 5.88333C12.7528 5.83207 9.06734 5.66827 5.46556 5.3943C2.2246 5.18082 0.243077 4.15307 0.612482 3.14495C0.747438 2.77609 0.777943 2.40475 0.703578 2.03516C0.55282 1.68536 0.336376 1.33881 0.0553455 0.997265C1.97028 0.852173 3.91666 0.752723 5.87716 0.699803C20.5698 0.635225 35.2904 0.4596 49.9632 0.59757C65.3746 0.744085 80.7791 0.654862 96.1825 0.682135C131.421 0.745426 166.657 0.827222 201.889 0.927517C210.582 0.955764 219.254 1.16715 227.928 1.3286C230.171 1.37618 232.39 1.49113 234.554 1.67184C239.334 2.0603 241.604 3.03436 241.735 4.57053C241.705 4.81749 241.766 5.04471 241.809 5.35522ZM9.4054 5.0229L9.4071 4.83429L6.81271 4.84324C6.81204 4.91813 6.81136 4.99303 6.81066 5.07069L9.4054 5.0229ZM9.13633 1.89234C7.94722 2.89775 7.94725 2.89774 9.92041 2.8521C9.70711 2.53109 9.43974 2.21027 9.18139 1.89219L9.13633 1.89234ZM72.3962 1.26072L72.5866 1.12415L68.0824 1.1397L68.0812 1.27561L72.3962 1.26072ZM73.8843 3.05572L74.0187 3.14677L76.4058 3.13853L76.4066 3.04701L73.8843 3.05572ZM5.19841 1.04886L5.04392 1.20194L8.42203 1.19028L8.4234 1.03773L5.19841 1.04886Z\"\n fill=\"currentColor\"\n ></path>\n </svg>\n);\n","import React, { FC } from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakColorToken } from \"@/styles\";\nimport {\n oakBoxCss,\n OakBoxProps,\n} from \"@/components/layout-and-structure/OakBox\";\nimport {\n HeaderUnderline,\n Underline,\n HorizontalRule,\n Underline3,\n ButtonBorderTop,\n ButtonBorderBottom,\n ButtonBorderLeft,\n ButtonBorderRight,\n IconBackground,\n Scribble,\n} from \"@/svgs\";\n\n/**\n * Map of the svg names to the actual svg components\n * Only components that are used in the OakSvg component should be added here\n * Should be used only in cases where OakIcon can't be used and if this list grows much bigger in the future we should consider refactoring\n */\nconst svgMap = {\n \"header-underline\": HeaderUnderline,\n underline: Underline,\n \"horizontal-rule\": HorizontalRule,\n \"underline-3\": Underline3,\n \"button-border-top\": ButtonBorderTop,\n \"button-border-bottom\": ButtonBorderBottom,\n \"button-border-left\": ButtonBorderLeft,\n \"button-border-right\": ButtonBorderRight,\n \"icon-background\": IconBackground,\n scribble: Scribble,\n};\n\nexport type OakSvgNames = keyof typeof svgMap;\n\nconst StyledSvg = styled.svg<OakBoxProps>`\n ${oakBoxCss};\n transition: all 0.3s ease;\n`;\n\nexport type OakSvgProps = OakBoxProps & {\n /**\n * The name of the svg to render\n * Accepts an svg name token from the svgMap\n */\n name: OakSvgNames;\n color?: OakColorToken;\n};\n\n/**\n * This is component used for rendering SVGs that don't belong to be rendered with OakIcon component\n * ie. UI elements that are not icons/illustratons but are part of the design system (underline, etc)\n */\nexport const OakSvg: FC<OakSvgProps> = (props) => {\n const getSvgByName = (name: OakSvgNames) => {\n const SvgComponent = svgMap[name];\n return <SvgComponent />;\n };\n\n return (\n <StyledSvg\n aria-hidden={true}\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"100%\"\n height=\"100%\"\n {...props}\n >\n {getSvgByName(props.name)}\n </StyledSvg>\n );\n};\n","import React from \"react\";\n\nexport const HeaderUnderline = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 1280 9\"\n fill=\"none\"\n preserveAspectRatio=\"none\"\n >\n <path\n d=\"M1396.22 2.322c.23-.406-.49-.811-1.55-.811-132.91-.116-395.238 2.621-534.469-.03 3.447-.072 6.477.059 7.765-.115-30.149-.232-64.389-.073-94.576.26 36.967-1.448 60.525-.029 92.833-.506-4.772-.058-29.581-.087-13.711-.13-12.044-.42-37.421-.044-42.193-.175-14.242-.434 34.088.102 33.103-.217-8.749-.362-43.027-.101-45.905-.391.038.362-1.023.29-.568.391-172.752.319-357.434-.058-530.678.42.341 0 .606 0 .72.03-.568.043-2.841 0-.871-.03-111.165.87-209.377-1.303-294.787 1.333 16.741-2.057-65.639-.782-72.267-.652-9.772-.073-2.878.434-.379.145.531 1.216-12.802.058-10.34 1.42-36.55 9.385 198.015 1.549 223.997 3.765-6.098-.739 28.9.377 31.778-.029-1.477-.043-4.09-.145-7.007-.174-7.499-.029 11.931-.666 8.371.174 1.515.246 6.628-.478 6.022 0 3.106.13 23.483-1.159 10.264-.014 11.931-.392 16.173.753 5.644-.638 105.256 1.26 211.612-.376 314.785.03 203.09-.32 397.203-.19 593.249.39-3.83-.463 4.2-.608 2.16 0 55.37.015 84.57.116 138.06.29-8.64-.26-6.56-.84 2.42-.435 35.72.942 135.37 1.16 174.53.406-.76-.275 1.78-.188 1.74-.043.31-1.058.84-1.058-.11-.942.07 0-1.78.362-1.25-.217.26-.29 1.74-.13.15-.42.99 0 3.67-.391.91-.275-5.04-.84 3.79-.03 2.27-.594-.68-.29-.53-1.434-.11-2.216ZM803.615.8c3.522.043.189.145-1.667 0-1.136-.058-.757-.058 1.667 0Zm-889.323.985s.53-.03.417.014c-.076.015-.417.015-.417-.014Zm1.78-.45c.19 0 .265 0 .379.015h-.833s.265-.014.454-.014Zm.493.261s-.114-.014 0-.028v.028Zm32.346.609c-10.833-.348 7.044-.406 9.999.043-.379 0-9.015-.043-10-.043Zm46.7-.68c6.894 0-2.12.071-3.333.014.493-.015 1.97-.015 3.333-.015Zm37.005 2.49c-.568 0-.379-.014 0-.014v.014Zm12.688-2.26c-20.718.653-53.101.29-57.722.03 14.241-.174 45.791-.087 63.404-.13-1.743 0-3.674.043-5.682.1Zm8.863.812c-.87-.03.568-.101.53 0h-.53Zm-2.083-.913c1.44-.029 2.727-.014 3.825 0-1.174.015-2.461.015-3.825 0Zm8.03.058s-1.402-.029-3.523-.058c3.22.03 4.848-.014 6.629.044-.228.014-1.364.014-3.106.014Zm2.234-.347s1.97-.03 2.16 0c-.417.029-1.932.029-2.16 0Zm10.189.652s-.34 0-.492-.015c.606 0 .757 0 .492.015Zm55.147-.623c-1.023-.03.833-.073.758-.03a8.543 8.543 0 0 1-.758.03Zm4.091 4.345c-1.137 0-.758-.044 0-.03v.03Zm63.29.84c-26.589.203 9.166-.521 9.961-.753 0 .043-4.507.753-9.961.753Zm13.787-5.446h-2.121c-1.629-.029 3.484-.014 2.121 0Zm42.193.058a34.883 34.883 0 0 1 2.462 0c1.44.014-3.939.014-2.462 0ZM237.6 6.493c-5.53.044-16.363.087-23.143.246-2.045-.97 24.241-.275 23.143-.246Zm19.24 0c-.681.044-8.332.044-8.787.015-.985.072 10.378-.956 8.787-.015Zm9.848-.217c-.53 0-6.06.188-6.666.188.568-.101 9.166-.362 6.666-.188Zm13.787-5.229c.265-.014.947-.014 1.212 0-.341.015-.871.015-1.212 0ZM331.721.96c3.257 0-.417.015-.985.015.227-.015.568-.015.985-.015Zm-5.757 3.172c-.985-.029 3.295-.724 3.105-.376-.303.043-2.651.42-3.105.376Zm8.56.97c-.796-.072-4.091-.651-5.379-.55 1.44-.188 6.894.435 5.379.55Zm-5.189-1.506c.606-.029 4.81-.072 4.317-.029 1.099.03-4.052.058-4.317.03Zm7.991.13c-1.212 0-2.802-.477-2.802-.506.378 0 7.12-.189 2.802.507Zm-.833-1.55c-4.242.03-7.272-.347-7.802-.376-1.894-.174 21.172.073 7.802.377Zm9.204 2.579-1.705-.608c-1.666-.565 3.788.376 1.705.608Zm44.618-1.115c1.742 0 3.446.724 2.158.738-4.393-.347-9.241-1.318-2.158-.738Zm-31.93-1.275c3.106.246 17.726-1.173 6.932.333.643-.116-13.977-.376-6.932-.333Zm7.803.898c1.439-.319 4.28.522 3.712.956-.834 0-3.712-.869-3.712-.956Zm14.544-.145c-4.848-.507 4.734-.738 4.886-.883 0 .043-2.916.927-4.886.883Zm11.59 2.347c-3.56 0-5.909-.03-5.909-.03-1.439-1.39 18.673.653 5.909.03Zm10.226-.29c-6.401-.666 3.409-.478 3.826-.449 0 .029-2.083.449-3.826.449Zm35.793-1.608c5.075 1.173-1.818.333-2.576-.014.303-.03 1.515-.015 2.576.014Zm-21.854.942c-3.03.724-1.023-.348-.493-.45 1.932-.231 3.561.189.493.45Zm5.037-1.014c-.227-.188-8.257-.898-3.106-.666 1.629-.087 2.084.029.152 0 1.856.029 3.636.637 2.954.666Zm5.833-.797c-2.386 0 .568-.738 2.803-.55-.227.014-2.045.55-2.803.55Zm15.226 2.955c1.212.029-18.029.101-8.863-.014 4.735.753 14.279-2.506 8.863.014Zm17.044-.304c-4.545.029 4.318-.594 4.507-.623.606.058-3.068.666-4.507.623Zm10.378-2.94c-1.136-.232 4.659.333 5.341.043-.682.116-4.394.695-5.341-.043Zm18.938 1.84c-5 0-3.674-.146.644-.29 5.113.68 3.712.579-.644.29Zm24.051-1.087s-7.954.058-8.257.043c-.038.13 12.158-1.535 8.257-.043Zm93.212-2.071c1.288-.044 1.97-.03 2.046 0 1.78.782-4.621-.058-2.046 0Zm-72.418.608c-2.879.97-7.386 0-10.795 0 0-.044 9.81-.058 10.795 0Zm-12.082 1.477c-2.008.826-3.599.768-1.25-.42 1.666-.68 4.658-.58 1.25.42Zm10.453 2.926c-1.666 0-7.234 0-7.802-.101 1.363-.03 15.87-.97 7.802.101Zm13.257 0c-4.545-.116-4.242-.71-1.44-.594 3.902-.174 8.485.087 1.44.594Zm15.226-2.39c-1.667-.014-.53-.796 1.591-.796 3.901.217 2.954.738-1.591.796Zm11.097-1.738c-7.12-.217-.492-.666 2.046-.449 4.734-.333 5.151.029-2.046.45Zm13.408 3.954c-7.613.03-.151-.449 2.5-.58 1.212.044-.757.58-2.5.58Zm6.818-1.767c-.076.102-.53.478-3.03-.014-4.431-1.231 4.697-.189 3.03.014Zm6.136.073c-2.803 0-7.802-.42-2.273-.42.568-1.058 5.833.246 2.273.42Zm3.712-2.434c-1.553-.16-7.235-.449-2.273-.927.985 0 7.045 1.116 2.273.927Zm3.636 3.708c.379-.029 2.272-1.057 5.189-.55l-5.189.55Zm28.104-4.46c2.386 0 9.923-.044 11.665.028 1.25.362-17.574 1.608-11.665-.029Zm15.453 0c.53-.044 2.5-.03 2.992.057-13.976 1.883-4.28.029-2.992-.058Zm24.051 4.402c-.833 0-4.81-.507-4.81-.536 0-.014 3.333-.217 3.863-.217 4.28.072 2.273.84.947.753Zm49.92-1.897c-2.765.232-9.469.232-9.469 0-1.174-.03 11.78-.26 9.469 0Zm9.507 1.868c-21.589.13 10.719-.666 9.242-.26 0 .173.833.173-9.242.26Zm16.287-2.752c-.985 0-1.818-.072-1.818-.145.378-.376 5.719.087 1.818.145Zm13.105-.246c-.379.188-1.515.232-4.129.333-13.749.246 4.735-.927 4.129-.333Zm6.817.13c6.894-.043 1.477.493-2.31.015.189-.015.947-.015 2.31-.015Zm.228.725c2.386 0 4.28.087 4.28.173-1.175.102-13.749-.188-4.28-.173Zm27.384 2.563c-6.78.623-18.9.16-26.172-.333 5.075.246 26.702-.072 26.172.333Zm118.399-2.216c-1.287.102-5.113.102-6.401 0 1.705-.188 4.508-.174 6.401 0Zm-13.105-1.26c6.212-.217 9.659-.217 9.659 0 1.212.203-19.317.406-9.659 0Zm-31.437-.478c3.068 0 2.652 1.101-.681.348-.796-.203-1.364-.391.681-.348Zm-9.961 0c3.106.044 5.53.116 7.348.348-2.007.217-24.051-.362-7.348-.348Zm-9.431 1.97c-16.665-.304 4.659-.507 5.871 0 0 .145-2.159.145-5.871 0Zm16.514-.478c-2.954.029-11.779-.304-3.75-.333 2.879-.03 11.742.29 3.75.333Zm7.461-.68c-3.333 0-5.605 0-6.401-.073 4.318-.29 23.294.101 6.401.072Zm11.818 2.91c-3.902 0-7.386-.086-7.386-.159 1.591-.449 22.839.102 7.386.16Zm26.096.16c-.303.188-23.597.463-9.658-.102 6.211-.333 13.105-.231 9.658.102Zm12.385-1.55c-2.272.087-2.158 1.028-4.961-.101-.152 0-10.227.376-10.378.376 2.31-.854 13.597-.565 15.339-.275Zm11.287-1.564c7.803.043-.606.116-2.878.029 0 0 1.212-.03 2.878-.03Zm-1.515 1.999c-.795 0-1.78-.073-2.045-.16-1.704-.695 5.871.377 2.045.16Zm6.174-.116c-2.424 0-4.09-.16-4.696-.319.984-.637 15.794.188 4.696.319Zm30.036.81c-10.075-.1-5.151-1.534 3.484-.492 3.106.247 2.273.493-3.484.493Zm55.794-2.23c2.65-.145 3.86-.145 4.88 0 1.37.203-8.97.16-4.88 0Zm-5.5-.565c8.94.044-.72.189-2.46.13-1.85-.13-.75-.13 2.46-.13ZM991.327 5.61c1.439-.392 5.454-.377 6.78 0-1.856.246-4.924.246-6.78 0Zm21.133-1.507c-13.406-.376 10-.246 13.11 0 12.84.898-11.03.275-13.11 0Zm12.61 1.956c-.72-.247 13.87-.232 13.11 0-.8.362-11.78.188-13.11 0Zm25.04-2.825c-11.06.203-3.86-1.173 3.41-.16 1.97.16 1.17.16-3.41.16Zm14.96 3.201c-.68.03-11.29.174-11.7.03 1.29-.464 11.81-.015 12.53-.03-.49.03-.75 0-.83 0Zm12.12-2.1c-.6 0-1.06-.174-1.06-.348.11-.999 4.02.478 1.06.348Zm24.01 1.289c-4.24.217-6.55.217-6.55 0-.98-.203 12.84-.406 6.55 0Zm4.21-.898c-14.17-.13 4.24-.608 6.06-.116 0 0-2.61.116-6.06.116Zm3.82-.797c-14.39.044 5.46-.608 6.52-.13 0 .13-2.73.13-6.52.13Zm7.96 1.97c-1.33-.68 5.94-.101 5.76 0 1.13.348-4.4.348-5.76 0Zm18.71.739c.42.333-17.16-.058-8.56-.29 5.19-.145 10.19 0 8.56.29Zm2.35-2.289c-5.84-.029-5.91-.492 0-.39 5.56-.102 5.49.361 0 .39Zm91.43-.999c3.48 0 6.17.232 6.17.464-1.93.869-19.05-.42-6.17-.464Zm-69.01.855c-.76 0-.3-.116 1.36-.232 8.98-.55 1.06.507-1.36.232Zm8.26 2.36c-5 0-5-.52 0-.52 4.84 0 4.84.52 0 .52Zm3.82-1.955c-1.51 0-2.76-.072-2.76-.145-.87-.246 8.44.102 2.76.145Zm1.29-.507c-1.44 0-3.33-.029-4.05-.13.91-.16 14.69.072 4.05.13Zm32 1.521c-58.74.362 15.08-.782 22.54-.188 0 0-10.45.188-22.54.188Zm18.87 1.275c-15.68-.261 13.9-.145 13.29 0 1.25.13-4.09.13-13.29 0Zm30.37-1.825c-1.17.753-11.44 1.752-5.41.796 1.47-.231 10.45-2.129 5.41-.796Zm4.51 1.477c2.77-.42 10.04-.391 12.76 0-3.48.275-9.28.275-12.76 0Zm35.79-.594c-10.72-.39 9.89-1.231 5.99-.275 0 .536-.91.536-5.99.275Zm55.49-.29c-3.07 0-5.98 0-6.48-.159 1.25-.854 19.78.174 6.48.16Zm32.16.363c-18.45-.174 20.22-5.2 1.32-.174-1.4.434 0 .695-1.32.174Zm7.08-.058c0 .087-5.3.507-5.72.478 1.44-.145 7.73-2.173 5.72-.478Zm2.84-.797s.15-.029.23-.029c.23.101-.53.145-.23.029Z\"\n fill=\"currentColor\"\n ></path>\n </svg>\n);\n","import React from \"react\";\n\nexport const HorizontalRule = () => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 848 6\"\n preserveAspectRatio=\"none\"\n >\n <path\n d=\"M847.973 3.78942c-12.078.5722-24.906.69496-38.269.71029l-265.087.30249-275.951.08301-210.9699.20191-38.5996-.28969C7.72585 4.66449.755802 3.96791 2.03109 3.27503c.46589-.25352.56537-.5083.29715-.76145-.53584-.23926-1.30187-.47601-2.2942771-.70908L20.4456 1.57634 175.057 1.3232l162.097-.13389L707.882.918732l91.328.166948 23.247.20788c16.771.24655 24.753.90512 25.241 1.95805-.098.16948.121.32505.275.53781zm-815.0666.73696l.0022-.12935-9.0986.01691-.0026.15599 9.099-.04355zm-1.0067-2.14575c-4.15.69442-4.1499.69441 2.7692.65492-.7545-.21925-1.6986-.43815-2.6111-.65522l-.1581.0003zm221.8453-.69579l.665-.09444-15.796.02936-.002.09321 15.133-.02813zM259 2.90963l.473.06189 8.372-.01556.001-.06277-8.846.01644zM18.0721 1.81853l-.5387.10562 11.8471-.02202.0018-.10462-11.3102.02102z\"\n fill=\"currentColor\"\n ></path>\n </svg>\n);\n","import React from \"react\";\n\nexport const Underline3 = () => (\n <svg\n fill=\"none\"\n viewBox=\"0 0 147 9\"\n preserveAspectRatio=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill=\"currentColor\"\n d=\"M0.943656 7.13721C2.99615 8.13047 5.18745 8.30919 7.4728 8.29201C22.6003 8.18203 37.6947 8.14079 52.807 7.94832C68.5405 7.75586 84.2706 7.38812 100.004 7.1716C112.026 7.00663 124.057 6.99288 136.085 6.82791C138.314 6.7485 140.528 6.52977 142.693 6.17489C144.641 5.89651 145.85 4.61456 145.648 3.36698C145.574 2.9105 145.563 2.45051 145.614 1.99223C145.712 1.55815 145.848 1.12782 146.023 0.703404C144.878 0.53181 143.712 0.416906 142.537 0.359717C133.726 0.342532 124.901 0.187871 116.098 0.421577C106.852 0.669032 97.6146 0.624354 88.3756 0.724023C67.2394 0.953148 46.1047 1.20519 24.9716 1.48014C19.7576 1.55231 14.5519 1.85133 9.34689 2.08847C8.00072 2.15702 6.66735 2.30895 5.36574 2.54212C2.4915 3.0439 1.11106 4.26057 1.00322 6.16459C1.01599 6.47048 0.974994 6.75228 0.943656 7.13721ZM140.338 5.73155L140.34 5.49784H141.896C141.895 5.59064 141.894 5.68343 141.893 5.77967L140.338 5.73155ZM140.56 1.85133C141.253 3.09204 141.253 3.09203 140.071 3.04391C140.205 2.64523 140.371 2.24657 140.532 1.85133H140.56ZM102.631 1.33922L102.519 1.17081H105.22L105.218 1.33922H102.631ZM101.703 3.56976L101.621 3.68316H100.189L100.191 3.56976H101.703ZM142.938 0.789325L143.027 0.978349H141.001L141.004 0.789325H142.938Z\"\n ></path>\n </svg>\n);\n","import React from \"react\";\n\nexport const ButtonBorderTop = () => (\n <svg\n preserveAspectRatio=\"none\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 608 13\"\n >\n <path\n d=\"M608 12.9952H0V6.58964C9.4145 4.8402 19.066 4.00414 28.739 4.10013C43.8554 4.85537 59.1496 3.48474 74.3728 3.1211L90.2005 2.84138C98.559 2.61761 106.882 2.4218 115.098 2.44978C229.165 2.7295 343.232 3.34488 457.298 3.34488C477.43 3.34488 497.597 2.75747 517.764 2.14208C531.422 1.7225 545.08 1.30292 558.738 1.0232C566.777 0.85537 574.815 1.55467 582.818 1.86236C586.126 1.86236 589.433 2.25397 592.706 2.19803C597.889 2.00388 603.071 2.60235 607.964 3.96027\"\n fill=\"currentColor\"\n ></path>\n </svg>\n);\n","import React from \"react\";\n\nexport const ButtonBorderBottom = () => (\n <svg\n viewBox=\"0 0 608 13\"\n preserveAspectRatio=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n >\n <path\n d=\"M608.142 0.86792V5.42188C601.598 5.91828 594.984 6.30677 588.404 6.50101C567.469 7.1485 546.51 7.61612 525.527 7.90389C523.002 7.90389 520.477 7.90389 517.952 7.90389C507.568 7.90389 497.112 7.60173 486.692 7.60173H317.514V6.8895C259.403 7.58015 201.256 8.18447 143.251 9.04778C136.992 9.04778 130.839 10.6881 124.545 11.3571C120.076 11.8486 115.563 12.1801 111.03 12.3499C104.238 12.6305 97.2672 12.9111 90.3678 12.8679H89.7632C84.642 12.8679 79.5208 11.724 74.3996 11.724C65.4731 11.724 56.6177 12.2636 47.62 12.5442H39.9382C30.087 12.5442 20.2003 12.8463 10.4558 12.3284C6.94877 12.1692 3.45845 11.8954 0 11.5082L0 0.86792H608.142Z\"\n fill=\"currentColor\"\n ></path>\n </svg>\n);\n","import React from \"react\";\n\nexport const ButtonBorderLeft = () => (\n <svg\n viewBox=\"0 0 12 383\"\n preserveAspectRatio=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n >\n <path\n d=\"M11.9999 0.745605V382.868C10.1262 381.366 8.31313 378.46 6.62678 374.256C4.4417 368.142 3.54618 351.778 2.13125 339.807C1.8626 337.482 2.00588 334.21 1.77304 331.712C-0.215015 308.631 0.626776 286.24 1.25364 262.814C1.50047 244.757 1.41656 226.63 1.0029 208.644C0.841702 187.544 0.805881 166.444 0.447672 145.43C0.125284 126.828 0.77006 108.312 0.0894627 89.2789C-0.304567 78.6859 0.734239 66.8872 1.182 55.6914C1.46857 48.371 1.88051 41.2229 2.13125 33.9886C2.75812 16.0753 4.47752 5.91292 8.27454 3.58763C9.52827 2.81253 10.7462 1.86519 11.9999 0.745605Z\"\n fill=\"currentColor\"\n ></path>\n </svg>\n);\n","import React from \"react\";\n\nexport const ButtonBorderRight = () => (\n <svg\n preserveAspectRatio=\"none\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 7 381\"\n >\n <path\n fill=\"currentColor\"\n d=\"M5.95062 347.767C5.84838 355.359 5.51951 362.45 5.01823 367.872C4.51695 373.294 3.87318 376.723 3.19306 377.594C2.43071 378.792 1.66876 379.901 0.899662 380.831L0.946416 0.629639C1.65555 3.72393 3.98492 8.81233 4.517 14.8221C5.25211 23.0541 5.82473 32.9368 6.20066 43.8804C6.57133 54.8207 6.73441 66.5972 6.67982 78.4841C6.61613 92.4154 6.78382 106.273 6.76792 120.208C6.72772 141.198 6.63974 162.184 6.5299 182.723C6.37026 217.64 5.84139 253.158 6.04976 287.743C6.10718 308.293 6.40211 327.43 5.95062 347.767Z\"\n ></path>\n </svg>\n);\n","import React from \"react\";\n\nexport const IconBackground = () => (\n <svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 36 36\">\n <path\n d=\"M4.7486 5.68324C4.30761 6.15954 3.90018 6.65434 3.5287 7.16069L3.25788 7.53757L3.02541 7.87977C2.87681 8.10867 2.73302 8.33988 2.59641 8.57341C2.32079 9.04278 2.07394 9.51676 1.85345 9.99538L1.69527 10.3561L1.55866 10.6867C1.48436 10.874 1.41007 11.0636 1.34296 11.2555C1.20875 11.6393 1.08891 12.0231 0.985858 12.4046C0.935529 12.5965 0.887596 12.7884 0.842059 12.9803C0.801316 13.1723 0.758177 13.378 0.73421 13.4983C0.631154 14.0555 0.559255 14.615 0.520908 15.1699L0.496942 15.5815L0.492149 15.7295L0.484959 15.852L0.477769 16.0948C0.477769 16.2543 0.470579 16.4162 0.468182 16.5757C0.456199 17.8451 0.499339 19.0705 0.779747 20.7075C0.808506 20.8694 0.846853 21.0751 0.899579 21.3087C0.949909 21.5422 1.01462 21.7942 1.08891 22.0601C1.23271 22.6012 1.42205 23.1491 1.60899 23.6208C2.09551 24.8694 2.71864 26.0879 3.28664 27.022C3.56945 27.496 3.83787 27.896 4.05357 28.2358C4.27406 28.5619 4.44422 28.8139 4.5353 28.9711C4.65513 29.1861 4.94273 29.5931 5.1776 29.889C5.29503 30.037 5.40049 30.1734 5.47958 30.2705C5.55627 30.3676 5.6018 30.4277 5.59701 30.4324C5.55147 30.4763 5.78874 30.7607 6.20336 31.1514C6.62038 31.5353 7.22194 32.0254 7.89779 32.4786C8.23572 32.7075 8.59762 32.9225 8.95232 33.1283C9.29983 33.3249 9.6066 33.4751 9.91338 33.6231C10.5053 33.9006 11.0062 34.0832 11.2627 34.1272C11.639 34.1965 12.2261 34.3468 12.5545 34.4416C12.9403 34.5665 13.5131 34.6913 14.0644 34.7815C14.6036 34.8624 15.1261 34.9156 15.4089 34.9087C15.6486 34.9087 15.9601 34.904 16.1015 34.904C16.2381 34.8994 16.5257 34.8694 16.7414 34.837C16.9571 34.8046 17.1393 34.7861 17.1537 34.8023C17.168 34.8208 17.192 34.8416 17.2016 34.8532C17.216 34.8624 17.3454 34.8393 17.4892 34.8C17.633 34.7607 17.7696 34.7329 17.7936 34.7353C18.0668 34.7815 18.3424 34.8301 18.455 34.8555C18.5317 34.874 18.6324 34.8856 18.6779 34.8856C18.757 34.8809 19.2531 34.9618 19.3466 34.9942C19.4568 35.0335 19.5982 35.0566 19.6246 35.0428C19.6414 35.0335 19.6677 35.0312 19.6869 35.0312C19.7037 35.0335 19.7804 35.0428 19.8547 35.0543C19.9314 35.0659 19.9769 35.1538 19.9649 35.2509C19.9505 35.3503 19.9649 35.3919 20.0009 35.341C20.1255 35.1584 20.183 35.1422 20.2166 35.2809C20.231 35.3595 20.2669 35.348 20.2957 35.2555C20.3172 35.1676 20.3364 35.1491 20.3316 35.2254C20.3316 35.2994 20.3843 35.3873 20.4562 35.422C20.7007 35.5353 20.8061 35.6393 20.8038 35.778C20.8038 35.852 20.8133 35.8682 20.8301 35.8081C20.8469 35.7503 20.8541 35.7942 20.8493 35.9052C20.8397 36.0208 20.8493 36.0347 20.8685 35.9376C20.8852 35.8428 20.9332 35.8058 20.9763 35.8474C21.041 35.9121 21.0602 35.8798 21.0961 35.637C21.1177 35.4821 21.1441 35.3549 21.1561 35.348C21.1656 35.3503 21.1609 35.4381 21.1441 35.5538C21.1033 35.822 21.1776 35.8867 21.2375 35.6393C21.2711 35.5191 21.2759 35.5491 21.2543 35.7249C21.2351 35.926 21.2399 35.9422 21.2783 35.7896C21.3214 35.5838 21.494 35.6069 21.7456 35.8382C21.796 35.8798 21.8439 35.8613 21.8559 35.7896C21.8822 35.6277 22.062 35.6624 22.1075 35.8382C22.1339 35.9306 22.1627 35.8913 22.2058 35.7017C22.2298 35.5977 22.2441 35.5399 22.2585 35.5306C22.2633 35.5214 22.2729 35.526 22.2801 35.5491C22.3088 35.5769 22.3352 35.5977 22.3568 35.6162C22.4455 35.6948 22.4742 35.711 22.3951 35.6162C22.3544 35.5723 22.364 35.5723 22.4191 35.6162C22.5725 35.7503 22.6731 35.704 22.5773 35.5491C22.5293 35.4705 22.5341 35.4566 22.5845 35.5145C22.6108 35.5445 22.8313 35.4173 23.1764 35.1607C23.5168 34.9156 23.9793 34.5387 24.4778 34.0879C24.9907 33.6116 25.4868 33.1538 25.8775 32.7977C26.2825 32.4162 26.5821 32.1503 26.6875 32.0856C27.1237 31.852 27.3873 31.6971 27.8116 31.4012C27.9673 31.2925 28.1926 31.1468 28.3148 31.0798C28.5617 30.9295 28.902 30.7006 29.3957 30.2775C29.5731 30.1249 29.8391 29.9052 29.9901 29.7896C30.3352 29.5121 30.7139 29.1538 31.2196 28.541C31.4329 28.2913 31.7253 27.9422 31.8715 27.7988C31.9434 27.7249 32.0536 27.6 32.1735 27.4543C32.2957 27.304 32.4251 27.1306 32.5306 26.9757C32.7463 26.6751 33.041 26.2243 33.1872 26.0069C33.8247 25.0566 34.2058 24.3237 34.5006 23.6139C34.7906 22.8971 35.0063 22.1988 35.1956 21.163C35.4521 19.7017 35.3898 19.2971 35.2004 19.2832C35.0111 19.2671 35.0087 19.2601 35.1932 19.2555C35.3754 19.2509 35.4736 18.985 35.5 18.037C35.5336 16.2335 35.3586 15.126 35.2939 14.4671C35.222 13.8035 35.2244 13.5815 35.3274 13.5399C35.4688 13.4844 35.4688 13.4613 35.3274 13.4705C35.1908 13.4775 35.0111 13.0358 34.7546 12.2497C34.5533 11.6416 34.2633 10.9665 33.9949 10.4601C33.7337 9.94913 33.4988 9.60462 33.4557 9.59075C33.4293 9.58382 33.4221 9.56532 33.4365 9.54913C33.4676 9.51445 33.3766 9.32254 33.1225 8.9526C32.8685 8.58266 32.4515 8.03931 31.7948 7.35029C31.0398 6.56879 30.2969 5.83815 29.4988 5.09364C29.0938 4.71908 28.6863 4.34682 28.2286 3.95838C27.7804 3.57225 27.2891 3.16763 26.7163 2.74451C26.5461 2.61734 26.3352 2.46936 26.0404 2.28671C25.8918 2.19422 25.7576 2.11329 25.5755 2.00694C25.3981 1.90751 25.2088 1.80578 25.0147 1.70636C24.183 1.28786 23.0973 0.804624 21.4796 0.427746L21.2423 0.374566L20.9787 0.319075C20.8037 0.284393 20.6312 0.254335 20.4562 0.224277L20.1974 0.184971L19.9002 0.143353C19.6821 0.115607 19.464 0.0924856 19.2459 0.0716763C19.0302 0.0508671 18.8145 0.0346821 18.5988 0.0231214C18.4646 0.0184971 18.3328 0.0138728 18.1986 0.00693642C18.0596 0.00462428 17.9206 0.00462428 17.7816 0C17.204 0.00231214 16.763 0.00924855 15.9625 0.0901734C15.603 0.12948 15.2483 0.175723 14.896 0.233526C14.7163 0.263584 14.5557 0.291329 14.364 0.328324C14.1339 0.374566 13.9038 0.425434 13.6761 0.478613C13.2208 0.587283 12.7702 0.714451 12.3316 0.855491C12.1087 0.927168 11.9002 0.998844 11.6725 1.08439C11.3993 1.18382 11.1309 1.29249 10.8624 1.40578C10.3256 1.63468 9.80073 1.88671 9.29504 2.16185L8.92116 2.36994C8.79654 2.44162 8.6815 2.50867 8.53051 2.59884C8.2501 2.76994 7.97449 2.95029 7.70127 3.13757C6.606 3.89364 5.64015 4.72601 4.75818 5.68092L4.7486 5.68324Z\"\n fill=\"currentColor\"\n ></path>\n </svg>\n);\n","import React from \"react\";\n\nexport const Scribble = () => (\n <svg\n width=\"241\"\n height=\"42\"\n viewBox=\"0 0 241 42\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g clipPath=\"url(#a)\" fill=\"#fff\" stroke=\"#fff\" strokeMiterlimit=\"10\">\n <path d=\"M238.328 25.531c1.944-.63 3.545-2.353.813-3.26 1.472-.975 1.953-3.472.305-3.345 2.343-1.875-1.562-1.719-1.804-2.464 4.153.556 1.251-2.906-.326-4.854C239.802-.434 219.45 1.566 211.595.868a14 14 0 0 0-1.331-.52c-1.587.086-3.176.135-4.766.17-.685.37-1.535.595-2.558.595h-.784c-2.061 1.661-.645 3.86 7.194.644-1.053 3.13-.72 4.713-3.997 3.92-2.914-1.3-8.433 1.933-5.959-4.568q-2.014-.001-4.027-.005c.251.178.47.41.658.684.681 3.583-3.774 3.685-3.129-.671q.02-.009.039-.015l-2.994-.004c.103.118.17.275.18.492-.79-.394-2.819.433-3.208-.495q-5.727-.01-11.453-.027c-.035.252-.185.542-.514.86-1.047 1.518-2.964.61-1.899-.866q-12.856-.037-25.711-.092l1.561 2.279c-2.766-.013-5.404.014-1.715-2.279l-13.72-.06.069.04c-.136.525-1.076.355-1.435-.047l-4.967-.022c-13.673.26-27.35.743-41.025.624-6.149-.054-12.18-.071-18.305.27 1.026 1.864.702 1.923-1.39 1.704l.482-1.655-.177.01c-5.543.348-11.208.584-16.623-.556q-6.82.433-13.676.886l1.232-.81C22.121 5.641-6.032-5.65 1.724 34.313c3.923 11.39 15.77 4.625 22.598 6.844 20.631-1.773 41.53-1.615 62.813-2-.364-2.05 1.61-1.288 2.398-1.058-.346 5.73 3.398.268 5.31 1.048 5.611 1.27 8.255-2.967 13.376 1.7 3.107.1-.938-3.116-2.732-3.113 3.7-7.52 5.729 4.09 10.15 1.79l-1.542-1.532c4.655-1.166 7.249 3.93 12.065.995l-6.077-3.31c5.272.763 12.914-3.022 17.103 1.135 4.236 6.067 10.392 1.825 15.428 2.8-4.269-2.87 4.873-7.019 5.127-3.76l-4.102 1.134c1.872.585 1.09 2.678 2.763 2.877 3.266-.4 4.316 1.103 1.945-1.946 3.065.302 15.579 6.75 13.824-.177-1.608-2.237-3.507-3.322-3.217 1.531-2.068.307-3.352-.14-3-1.228.023-2.595-2.101-.805.598-2.893.496-2.153 10.605.405 8.992 2.146-4.037 4.353 3.319 5.592.313.961 2.238.24 1.815 2.076 3.356 2.326-1.626-3.748 6.282-1.306 1.734-5.823 1.602-.6 5.257 1.405 2.455 3.578 5.197 2.873 16.459 5.563 7.592-1.179 2.083 1.407 5.113-1.756 4.719 3.814 2.719-.199 6.992.548 1.924-2.935q3.567-.886 5.187 1.523c1.356 2.055 11.571 2.722 7.737-.66 1.625-.175 4.407-1.762 1.107-1.918-1.99.318-1.92.208-2.462-1.813-1.485-3.614-2.765 2.784-4.242-1.709.488-4.714 4.249.305 6.487-.037-1.834 4.342 2.79 2.701 4.889 2.48-.998-1.507-3.038-3.05-3.759-3.86.952-1.834-1.143-.892-1.468-1.887 3.844.627 6.744-1.58 10.715-.046l-3.048 1.083c2.174 2.767 1.73 3.268-.846 4.38L220.315 37c-1.825.534-4.287-1.067-2.886 2.783-9.549 1.972 6.007 1.708 8.247 1.286l-.187-.37c3.333-.653 6.393.774 9.602-1.58q1.28-.81-.372.302c.918-.27 2.282-2.117 2.997-2.804-4.628-2.863 4.493-2.398.266-5.275 3.549-1.352 2.218-3.072-.132-3.783 2.129-.702 4.044-2.02.478-2.027zM6.482 11.908c-.352-.863.966-.566 1.343-.881.454.997-.921.594-1.343.881Zm9.058-.387-3.404.085c1.032-1.23 2.052-1.166 3.404-.085Zm-.812 10.2c.062-1.518 1.475-.082 2.155-.16-.345.8-1.515-.012-2.155.16Zm3.152 13.346c-.526-.339-2.209.196-1.621-1.065.465.365 2.042.003 1.621 1.065ZM215.031 2.796c-1.33.657-2.191.443-3.384-.248 1.356-.383 2.275-.548 3.384.248Zm-1.299 1.51c-.578-.038-1.553 1-1.713-.227.564.068 1.544-.923 1.713.227Zm-1.712 2.999c.258.056.977-.024.824.62-.849.327-2.554.085-.824-.62Zm5.097 6.59c-1.398 1.71-3.015 1.635-6.839-.344 2.514.167 4.587-1.032 6.839.345Zm-8.477-5.624c1.024.509 1.043 1.174.609 2.312-2.044-.994-3.174-4.604-.609-2.312Zm-1.354-1.113c-.793.67-1.632.683-2.717.153 1.032-1.04 1.883-.302 2.717-.153Zm-.448 11.18c-1.265 1.342-2.425.878-3.596.29 1.119-.083 2.143-1.365 3.596-.29Zm-2.64 4.075c2.055 1.322-.311 2.686-1.664 2.06.255-1.056.21-2.207 1.664-2.06ZM197.73 9.08c.041-.004.112.276.169.425-1.395.814-1.843-.455-.169-.425Zm-2.955 17.04c-1.467 1.135-3.747.86-4.115-.325zm-5.439-18.824-2.259-1.223 4.736-.118c2.661 5.533-2.711 2.995-4.875 2.871zm-3.293-3.428-2.502-.115q1.137-.957 2.502.115Zm.796 13.914-1.938.048c-.177-.742.164-.804 1.938-.048Zm-2.263-6.097c-1.069.976-3.887 1.374-3.983-.211zm-2.801 5.398q-1.794.64-3.676.01c1.24-1.17 2.217-.452 3.676-.01Zm-3.366 5.06c1.748 1.016 4.48-.849 6.172 1.146-3.737 1.344-6.842-.416-10.124-.742 1.283-.521 2.383-1.236 3.952-.404Zm-4.777-17.1c-.395 1.64-1.352 1.742-3.793.094zm.479 6.357c-1.82 1.612-3.213.403-4.619.035 1.507-.722 2.945-.745 4.619-.036Zm-14.962 10.614c-1.471.083-2.946.083-4.419.12 2.94-1.144 5.874-1.58 9.041-.36-1.582 1.342-3.154.157-4.623.24zm2.944 5.536c-.871.928-1.769.45-3.057.146q1.767-.895 3.057-.146Zm-31.267-11.513c2.681.475 5.813-1.373 8.2.746l-5.634.14c.319 4.668-3.293 3.236-2.566-.886Zm-1.125-4.72c.066-.688 2.067-.505 2.263-.057zm6.954 12.564c-.621 2.56-2.182.508-3.329.41.3-1.171 2.16-.096 3.329-.41Zm12.254 3.021c-5.135 2.5-11.401.543-16.896.56 5.106-.251 11.804-1.794 16.896-.56Zm-9.405-2.836c1.078-.37 2.16-1.396 3.495-.254-1.111 1.419-2.286.938-3.495.254Zm9.379-2.286c1.773-1.573 3.095-.772 4.423-.361-.732 1.394-2.791.037-4.423.361Zm-1.109-2.936c-.878-.388-1.751-.785-2.627-1.178 2.538-6.312 2.349 1.561 6.314 1.604-1.095 1.51-2.439-.11-3.687-.426Zm1.812-7.489c1.329-.84 5.881-1.27 8.461-.761-2.804 2.077-5.445.013-8.461.761Zm14.575 15.7c10.205-3.615 4.123 4.275-1.286.433.557-.197.93-.446 1.286-.433Zm5.309-1.415-3.339-.825c1.329-.751 4.052-.825 6.352-.244-.758 1.015-2.483-.473-3.013 1.07Zm2.039-3.345c-1.34-.502-4.198.823-4.77-.52 1.584.278 3.228-1.317 4.77.52Zm-2.426-2.987c.393.087 1.206-.618 1.181.291-.124-.089-1.342.3-1.181-.29Zm1.698-2.541 2.796-.07c-.424.326-2.558.899-2.796.07Zm-3.005-15.452c.266-.105.793.407 1.509.816-1.225 1.955-3.818.625-1.509-.816Zm-1.766 5.777c3.756-2.788 1.699 3.147-2.99-.058 1.36-2.054 2.179-.734 2.99.058Zm-5.161 8.606c5.456-1.65 6.852 5.542.542.861-.548 4.172-3.919 1.154-6.115 1.072 1.965-.155 2.82-.67-.066-1.482 2.335-1.084 3.461-.082 5.639-.452Zm-1.414-11.399q-.538.826-4.476 1.096c1.115-2.164 3.07-.389 4.476-1.096Zm-12.942-.258c.235 3.372 5.207-.789 4.728 3.237-1.825.931-3.33-1.763-6.432-1.07l1.705-2.167zm-.297 17.822c-2.663-.329-14.011 1.251-11.096-.933 3.002 1.471 10.154-3.226 11.096.933Zm-3.129-11.295c-2.716 2.168-6.061.673-9.022.692 1.853-1.76 6.08-.752 9.022-.692Zm-9.525-8.132c1.134-.474 1.873-.148 2.851.819-2.028.062-2.416.065-2.932 2.642-2.665 2.179-3.255-1.9.082-3.46zm-2.546 4.256c-.036 1.757-1.177 1.25-2.312.683zm-.124 14.935c-.997 1.067-1.89.475-3.217.038 1.308-.483 2.17-1.309 3.217-.038Zm-3 5.562c.132.69-2.072.925-1.932.048zm-7.204-25.285c.551.036 1.063.511 1.592.799-.653 1.68-4.37.34-1.592-.799Zm3.839 9.055q-.865 1.53-2.837.228zm-6.743-7.44-2.835.355c.842-1.024 1.825-.948 2.835-.355Zm1.857 1.694c-.435 2.863-2.715 4.496-3.406.235zm-3.945 5.79c.66 1.243-4.506.546-5.301.697 1.736-.847 3.501-1.151 5.301-.697Zm-2.937 6.498c-.544-4.456 16.22 4.703-2.922.335zm8.256 3.849c.579 1.24-4.021.409-4.131.689 1.373-.939 2.751-1.075 4.131-.69Zm-11.227 2.997c1.057.739.832 1.025.009 2.265-1.307-1.23-1.161-1.42-.009-2.265Zm-.621 7.247c-.874.609-1.07.82-1.733.07.638-.76.842-.587 1.733-.07Zm-2.446-28.978c.957.822-1.18 1.75-1.274.715.402-.268.843-.485 1.274-.715Zm-1.917 19.22c-.611 1.15-1.198-.038-2.17-.412 1.331-.583 1.881-.351 2.17.412ZM98.586 2.288c6.784-1.618 2.931 2.583-1.452 1.826zm-3.727 22.286-2.072.051q.975-.77 2.072-.051Zm-6.1-18.107 2.472-.062c.288.385-2.72.348-2.472.062Zm2.515 12.329c-2.25 1.756-2.168-1.508-3.737-1.217 2.582-1.146 3.076-.946 3.737 1.217ZM89.01 2.843c-.674 1.218-1.47.038-2.214-1 1.696-.423 2.145.154 2.214 1Zm-8.015 25.665-5.826-.52c3.65-1.863 4.262-1.838 5.826.52Zm-3.089-11.993c.48.305 2.05-.25 1.708.833-.465-.326-2.001.203-1.708-.833ZM78.49 2.57c2.175.472 2.268 2.801-.169 1.821-.654-.46-1.022-1.246.169-1.821Zm-3.314 9.49c.196-.66 2.196-.453 2.523-.063zm-4.103-4.273-3.116-.364c.573-1.947 2.534-1.097 3.116.364Zm-5.377 9.466c.722-.216.725-.206 2.19.51-.971-.16-2.512.828-2.19-.51Zm-.16 4.786 1.199.362c-.038.535-1.642.259-1.198-.362ZM61.598 3.021c-1.118.62-1.988 1.895-3.73 1.161 1.19-.93 2.308-1.497 3.73-1.161ZM60.7 7.194c-.955 1.485-1.846 1.673-5.15.863 2.015-.865 3.465-1.398 5.15-.863Zm-8.541 15.78c1.529-.988 2.61-.658 3.671-.5-.94.832-2.017.529-3.672.5Zm2.144 5.76c-1.81-.253-4.816 1.056-6.066-.323 1.368.046 9.31-3.123 6.066.323Zm-1.77-25.312c-.08 2.665-1.793 2.02-2.937 2.097-.304-1.22 1.876-1.202 2.936-2.097Zm2.385 5.204c-2.125.52-4.006.67-5.89-.006 4.653-.804 4.845-.803 5.89.006Zm-6.773 12.58c1.174-.412 1.266.727 2.28 2.231-1.718-.484-3.047.362-2.28-2.231ZM46.45 4.653c.075.146.239.402.212.422-1.28 1.25-1.873.006-.212-.422Zm.394 23.384c.26 1.652-1.255.62-1.926.85-.198-1.38 1.33-.55 1.926-.85ZM41.06 5.592l1.413-.035c.22.663-1.682.967-1.413.035ZM38.228 19.67q-1.275 1.362-3.798.78zm-4.593 2.407c.275.7-1.85.27-1.946.406.118-1.068 1.372-.187 1.946-.406Zm-5.238 10.8c-.096 3.007-1.095 2.964-1.84.438zM25.766 10.34c.02-.003.151.596.114.61-1.912 1.027-2.24-.76-.114-.61ZM24.25 29.264q.687.072 1.375.148c.028.878-1.69.588-1.375-.148Zm-1.24-8.47c.239 1.077-1.102.505-1.57.788-.289-.992 1.131-.484 1.57-.789Zm-.857 14.517c-2.999-5.223 2.38-2.667 3.873-.5zm2.65 3.98c.225-2.255 2.082-2.022 4.065-2.47-1.557 1.46-.84 1.364.331 3.178zm6.912-18.312-2.202.055c.725-.724 1.278-1.113 2.202-.055Zm.563 8.707c-.376-.296-1.313.062-1.338-.746.703-.174 1.408-.86 1.338.746Zm.129 1.038-1.458.037c.767-.429 1.442-1.791 1.458-.037Zm2.586 4.618-2.898-.25c1.881-3.008 2.527-3.257 6.219-2.388-1.38.781-3.462.456-3.321 2.638Zm5.932-26.886 2.925-.525c.083 2.498-1.718 1.734-2.925.525Zm.844 9.956c2.702-2.394 5.284 3.01.124 1.91zm.488 13.612c2.933-.57 3.13-.432 4.035 2.637-1.829-.3-3.055-1.116-4.035-2.637Zm1.529 4.42c1.066.246 2.133.49 3.367.773q-1.488 1.04-3.367-.772Zm3.587-3.691c8.92-3.117 12.222 3.755.44.447-.124-.01-.228-.225-.44-.447Zm5.373 3.312 5.07.124c-2.177 1.193-3.297 1.214-5.07-.124Zm3.816-7.401q1.131-.675 2.462.06zm7.606-16.908c-1.17 1.298-2.355 1.469-4.919.585 1.813-.858 3.284-1.17 4.919-.585Zm.732 7.959-3.095.077q1.442-1.117 3.095-.077Zm-5.358 12.6c.82-1.24 1.486-.894 2.574-.064zm4.17 3.994c2.744-.966 4.178-.732 4.954.92-1.81.25-3.362-.21-4.953-.92Zm4.15-4.546c1.287-.69 2.128-.91 3.176-.188-.996 1.224-1.915.933-3.176.188ZM70.98 19.42c-.475-.094-1.526.576-1.358-.6.232.173 1.916-.536 1.358.6Zm5.812-17.882c-.246 3.267-3.233 1.783-4.54 3.35-1.534-2.833 3.178-2.174 4.54-3.35ZM72.427 27.8c.41.107 1.4-.618 1.375.265-.467-.013-1.248.736-1.375-.265Zm.377 9.467c.9.457 3.097-.5 3.261.917-1.206.558-2.268.11-3.26-.916Zm-.089-.996q3.722-1.66 4.767.134c-1.478.694-2.878.33-4.767-.134Zm7.518.797c-.034-3.732 3.333-2.775 4.736-.861-1.758-.569-2.635 2.751-4.736.86Zm.907-5.584c1.548.573 3.069-2.459 4.786-.02-1.687 1.514-3.24.435-4.786.02Zm3.966-3.353c-.42-.887 4.153-.322 4.214-.523-.273 1.692-3.053.117-4.214.523Zm10.052 10.34c-2.134-1.183-4.822-1.004-5.831-2.598 1.122.787 7.679-2.465 5.831 2.597Zm-3.343-10.846q2.745-1.032 4.703.145c-1.566.756-2.918.486-4.703-.145Zm4.861 8.22c.074-1.688 1.599-1.609 2.635-.368zm1.41-5.263c1.883-.733 2.738.404 3.71 1.297-1.243-.278-2.857.45-3.71-1.297Zm3.343 5.912c1.66-2.289 2.387-2.249 3.809.46zm4.315-4.597c-1.526-.21-.336-1.561.622-.515-.277.24-.469.53-.622.515Zm-2.077-4.344q1.808-.63 4.835-.073c-2.788.917-2.839.915-4.835.073Zm3.531 6.407q1.23-1.146 3.231-.534c-.978.86-1.837 1.398-3.231.534Zm7.193 3.14c-1.492-.583-.344-1.814-.602-2.678l-4.106-3.264c1.434-.925 2.365 0 3.509-.107-.667 3.145 9.254 5.03 1.199 6.05Zm4.354-5.003-3.258-2.785c1.379-1.012 5.007 1.688 3.258 2.785Zm-8.139-4.48c2.607-1.069 10.679 1.65 8.622-3.86 4.347-.099.23 2.391 3.37 3.447-2.412.995-8.222 1.201-11.993.413zm8.234-11.142c.41-1.505 2.89-.113 4.099-.5q-.606 1.124-4.099.5Zm4.48 4.808c.56.32 2.184-.43 2.071.684-.562-.317-2.212.463-2.071-.684Zm7.273 10.767c-8.321-.158-5.631-.778.411-1.99zm.423-1.994c1.154.322 2.58-1.046 3.67.568-1.512.994-2.621.395-3.67-.568Zm11.171 8.671c-.633-.597-2.369-.63-1.253-1.864.667.57 2.399.368 1.253 1.864Zm-2.53-2.834c1.464-3.562 2.938-1.019 5.155.007-1.846.861-3.327.625-5.155-.007Zm3.309-2.388c1.287-3.467-2.293-.844-4.032-.96l2.1 1.14c-1.319.366-4.438 1.235-4.012-1.584-1.357-.192-1.034-1.058-.651-1.73 2.394-3.99 5.969 2.543 8.998.004.472 3.543.281 3.79-2.403 3.13Zm9.049-3.545c-.309 3.88-3.675.64-5.612.512 2.062-.94 3.472-.298 5.612-.512Zm-2.514 3.542c2.241-1.193 3.17-.943 3.98 1.094zm1.704-5.635c-.401-1.61 2.285-.862 1.127-3.89 5.334 1.323 1.451 4.967-1.127 3.89Zm3.257 3.552c1.297-.692 2.907-.828 3.378-2.404 5.515-.184.435 5.581-3.378 2.404Zm2.394 2.024c2.173-.184 4.447-1.172 6.378.216-1.208 1.675-4.483-.472-6.378-.216Zm4.965 2.618c1.107-.716 2.154-.914 3.044.231-1.064.456-2.066.229-3.044-.231Zm9.891-2.076c-2.485-1.96-5.614-1.6-8.401-2.945 1.281-2.512 4.6-.978 5.943.863.814-.268 4.827 1.535 2.458 2.082Zm8.296 3.462c-.555-.293-2.009.491-1.959-.64.245.226 2.493-.692 1.959.64Zm-4.868-2.503c-2.517-5.634 5.12-6.37 3.077-2.993-2.096 2.3 1.297 2.528 2.516 2.78-1.85.844-3.693.444-5.593.213Zm-3.363-6.801c2.146.074 9.219-2.303 9.097 1.432zm7.633-2.52c1.875-.698 4.119-1.288 6.258-.156zm7.721 11.739c1.167-1.097 2.486-.053 3.659-.278-1.162.314-2.167 2.01-3.659.278Zm.238-1.953c.252-1.697 1.476-.41 2.284-.431-.352 1.606-1.491.361-2.284.431Zm-.824-3.43c2.163.018 4.388-.656 6.465.35-2.236 1.283-4.337-.029-6.465-.35Zm7.683-2.028c-13.433-1.12-11.867-1.948.93-.844-.599.555-.817.873-.93.844Zm.334-16.547c2.399-2.111 4.675-.595 6.931-.474-1.044 2-4.786-.044-6.931.474Zm7.835 12.428c-.188 2.038-1.618 1.894-2.678 1.392-.585-1.685 1.787-.902 2.678-1.392Zm-2.843-8.07c-.591 4.371-2.331 2.751-3.327.084zm-3.863 6.239c1.204-1.287 2.041-.561 2.858.295zm2.281 12.653-1.662-.566c.171-1.091 2.167-.165 1.662.566Zm.601-3.537c-.571-.244-1.865.418-2.037-.399.098.17 2.575-.512 2.037.4Zm11.745 6.705-5.645-.61c1.555-1.556 3.885-1.255 5.645.61Zm-13.698-9.967q9.537-.83 11.146.91zm7.725-3.46c1.597-1.06 2.793.715 4.438.285-1.984 1.17-2.662 1.113-4.438-.285Zm1.574-4.945c1.716-1.563 2.924-1.45 5.41.314-1.48 1.171-1.615 1.165-5.41-.314Zm4.789 7.398c1.285-2.74 1.864-1.772 3.538.285-1.542-.123-2.378-.191-3.538-.285Zm4.3-1.491c-.902-.103-.561-.542-.116-1.37.778.013.338.64.116 1.37Zm1.573-6.037c.702-1.304 1.051-.642 2.322.163zm-5.636-1.782c1.831-.796 7.053-2.117 8.024.865-2.858-.306-5.376-.579-8.024-.865Zm3.204-11.995 4.922-.122q-.847 1.51-4.922.122Zm2.573-1.707.89-1.245 3.952 1.377c-1.901.733-2.445.718-4.842-.132Zm2.71 33.277c1.297-.598 2.597-1.121 4.282.048-1.758.52-3.027.793-4.282-.048Zm4.61-4.8c-2.042-3.089-1.026-5.924 1-3.184.346 1.042.914 2.227-1 3.184Zm-1.233-27.495c.723-.817 1.428-1.244 1.862.168zm-.987-3.21c2.232-.389 4.301-.104 6.134 1.138-2.289.62-3.997-1.14-6.134-1.139Z\" />\n <path d=\"M133.893 39.625c-2.503-.648-7.766 2.532-5.055-3.36 1.683.103 8.247-1.995 5.055 3.36Zm51.109 1.353c-2.55 2.551-6.665-3.083-2.271-.772 1.089-.513 1.821-.3 2.271.772Zm-130.151.088c-.5-.262-1.935.462-1.843-.527.508.257 1.96-.522 1.843.527Zm-11.031.224c-.461-.256-1.698.23-1.722-.513.518.21 1.792-.616 1.723.513Z\" />\n </g>\n <defs>\n <clipPath id=\"a\">\n <path fill=\"#fff\" d=\"M0 0h241v42H0z\" />\n </clipPath>\n </defs>\n </svg>\n);\n","import React, { ElementType, useRef } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { colorStyle, ColorStyleProps } from \"@/styles/utils/colorStyle\";\nimport { displayStyle, DisplayStyleProps } from \"@/styles/utils/displayStyle\";\nimport { spacingStyle, SpacingStyleProps } from \"@/styles/utils/spacingStyle\";\nimport {\n typographyStyle,\n TypographyStyleProps,\n} from \"@/styles/utils/typographyStyle\";\nimport {\n dropShadowStyle,\n DropShadowStyleProps,\n} from \"@/styles/utils/dropShadowStyle\";\nimport { borderStyle, BorderStyleProps } from \"@/styles/utils/borderStyle\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\n\ntype StyledButtonProps = TypographyStyleProps &\n SpacingStyleProps &\n ColorStyleProps &\n DisplayStyleProps &\n BorderStyleProps &\n DropShadowStyleProps & {\n isLoading?: boolean;\n };\n\nconst internalButtonCss = css<StyledButtonProps>`\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n text-align: left;\n font-family: unset;\n outline: none;\n ${typographyStyle}\n ${colorStyle}\n ${spacingStyle}\n ${displayStyle}\n ${borderStyle}\n ${dropShadowStyle}\n &:disabled {\n pointer-events: none;\n cursor: default;\n }\n`;\n\nexport type InternalButtonProps = StyledButtonProps & {\n onHovered?: (\n event: React.MouseEvent<HTMLButtonElement, MouseEvent>,\n duration: number,\n ) => void;\n};\n\nconst UnstyledInternalButton = <C extends ElementType = \"button\">(\n props: InternalButtonProps & PolymorphicPropsWithoutRef<C>,\n) => {\n const { onClick, onHovered, element: Component = \"button\", ...rest } = props;\n\n const hoverStart = useRef(Date.now());\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n if (onClick) {\n onClick(event);\n }\n };\n\n const handleMouseEnter = () => {\n hoverStart.current = Date.now();\n };\n\n const handleMouseLeave = (event: React.MouseEvent<HTMLButtonElement>) => {\n const delta = Date.now() - hoverStart.current;\n if (onHovered) {\n onHovered(event, delta);\n }\n };\n\n return (\n <Component\n {...rest}\n onClick={handleClick}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n />\n );\n};\n\n/**\n *\n * An unstyled button to be used as a basis for all UI button components.\n * The following callbacks are available for tracking focus events:\n *\n * ### onClick\n * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`\n\n * ### onHovered\n * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n * \n * NB. We must export a styled component for it to be inheritable\n */\nexport const InternalButton = styled(UnstyledInternalButton)`\n ${internalButtonCss}\n`;\n","type VersionedSvgMap = { [key: string]: `v${string}.svg` };\n\n// the values of the icons object are the paths to the versioned images in the Cloudinary\nexport const icons = {\n // icons\n \"question-mark\": \"v1706872277/icons/question-mark.svg\",\n ai: \"v1754063273/icons/ai_cqaksa.svg\",\n \"ai-additional-material\":\n \"v1756224441/icons/AI_additional_material_oopjax.svg\",\n \"ai-quiz\": \"v1756224440/icons/AI_quiz_eivb2s.svg\",\n \"ai-slide-deck\": \"v1756224440/icons/Ai_slidedeck_xuo49n.svg\",\n \"ai-worksheet\": \"v1756224441/icons/AI_worksheet_cm4f0q.svg\",\n \"ai-teaching-resources\": \"v1779438987/icons/ai-teaching-resources.svg\",\n home: \"v1699887218/icons/gvqxjxcw07ei2kkmwnes.svg\",\n send: \"v1699893673/icons/rmvytilpjgvh3pgwc8ph.svg\",\n rocket: \"v1699894015/icons/u26xm5hteot875ozfnk9.svg\",\n edit: \"v1699894149/icons/qxlunbg5tfrdherzsvlt.svg\",\n expand: \"v1730982187/Icon_Expand_arrktl.svg\",\n minimise: \"v1730982213/Icon_Minimise_btcdbz.svg\",\n hamburger: \"v1699895123/icons/jaqdnomtbhqvjcap962u.svg\",\n cross: \"v1699895179/icons/xigimrbivcaxt4omxamp.svg\",\n copy: \"v1727861316/icons/Icon_Copy_qxgynv.svg\",\n bell: \"v1699895207/icons/ecejtvqerx81prxyxh9b.svg\",\n twitter: \"v1699895251/icons/bq6a50xtkvnzhltfggzz.svg\",\n x: \"v1748452854/icons/x_fpmv5f.svg\",\n worksheet: \"v1699895300/icons/ez1s6mtpe5jkunnxzvlw.svg\",\n facebook: \"v1699895330/icons/iojlvh3o5lshy2jupyph.svg\",\n share: \"v1699895363/icons/agcmduftef3wcla6gzec.svg\",\n \"arrow-right\": \"v1707149070/icons/fv0z57zerrioft52dd9n.svg\",\n \"arrow-down\": \"v1699954152/icons/wpfmbmwpyfinipg0d61y.svg\",\n \"arrow-left\": \"v1707149179/icons/ejrm9dpgpzb7ddbo8z2i.svg\",\n \"arrow-up\": \"v1699954152/icons/arrow-up.svg\",\n \"worksheet-3\": \"v1699895429/icons/bzhojpjxp9rukdvh7daz.svg\",\n \"chevron-right\": \"v1707752509/icons/vk9xxxhnsltsickom6q9.svg\",\n save: \"v1699895505/icons/rh1ahwwtbemvz0ihluew.svg\",\n success: \"v1699895534/icons/Icon-Success_aiiprx.svg\",\n error: \"v1699895534/icons/Icon-Error_r25aza.svg\",\n filter: \"v1727783280/icons/Icon_Filter_eitb2p.svg\",\n \"quiz-3\": \"v1699895534/icons/zoayhgtrotv32fad7d3k.svg\",\n \"chevron-down\": \"v1699953557/icons/botfld6brychmttwtv6u.svg\",\n linkedin: \"v1699953592/icons/leqneklorqqzb1zo6rf1.svg\",\n \"magic-carpet\": \"v1699953622/icons/jifivg9xxm7sb0fjdilm.svg\",\n books: \"v1699953657/icons/hz4l3iq6i68kazvkvorq.svg\",\n \"supervision-level\": \"v1699953696/icons/cwqhknapp3maa4g0t3lj.svg\",\n \"quiz-white\": \"v1699953730/icons/gpcehpgr9mqoumsa25xe.svg\",\n \"additional-material\": \"v1699953798/icons/ntoq4tqvcm2uj1pajubt.svg\",\n \"slide-deck-3\": \"v1699953830/icons/sm92moja9d5utu3cj16c.svg\",\n \"sign-language\": \"v1699953861/icons/ns94ozvozzi22enxkx0x.svg\",\n external: \"v1699953892/icons/hlxmejse3mcr4tqo6t8u.svg\",\n \"equipment-required\": \"v1699953925/icons/pw22bdhj2vrzfv2ogi4e.svg\",\n \"chevron-left\": \"v1707752509/icons/rbvzan0ozubmr4j0uqdn.svg\",\n download: \"v1699953991/icons/dk0f6a6hdpzxftjosngn.svg\",\n search: \"v1704901279/icons/canbi3fuz5fanzom2hvi.svg\",\n \"chevron-up\": \"v1699954058/icons/pay71thmhhylj7z28sj1.svg\",\n go: \"v1699954090/icons/vdzptyvmitylra8x4usy.svg\",\n copyright: \"v1699954118/icons/boiod3rflocgsnfokyo8.svg\",\n project: \"v1699954186/icons/zofq5pheud6spnwjpewk.svg\",\n \"slide-deck\": \"v1699954241/icons/sjjy5f3g4eciwcuxxr33.svg\",\n \"content-guidance\": \"v1699954277/icons/tm3uhcqenaznq4fxys7j.svg\",\n tick: \"v1699954310/icons/efd3esaor6zqk7seh6kt.svg\",\n instagram: \"v1699954343/icons/ayfeljric0kkimdymvva.svg\",\n dot: \"v1699954371/icons/knykdclphkm8lgff4u2g.svg\",\n warning: \"v1704901279/icons/zzszodmk7fvxm9xzzg9s.svg\",\n \"lightbulb-yellow\": \"v1705078631/icons/q2v4sqxouy1ngcajoavv.svg\",\n lightbulb: \"v1705078631/icons/zldisxmbff36z68rwcef.svg\",\n pencil: \"v1765890807/icons/pencil.svg\",\n quiz: \"v1705416077/icons/kaaizjcudy0jfgfrrdel.svg\",\n video: \"v1705416078/icons/wzey1zfxrvv3apeebbf5.svg\",\n intro: \"v1705662092/icons/pl7bnmb13txese9yxkjv.svg\",\n loopdown: \"v1699887218/ui-graphics/loopdown.svg\",\n \"teacher-lesson\": \"v1714060653/icons/teacher-lesson.svg\",\n \"teacher-unit\": \"v1714060657/icons/teacher-unit.svg\",\n \"move-arrows\": \"v1709052869/icons/hoddjsgpzkszgvnmn91q.svg\",\n info: \"v1709052869/icons/Icon_Info_vsx3xi.svg\",\n play: \"v1732099511/icons/g1xehzuhjnb0xeftmdno.svg\",\n \"bookmark-outlined\": \"v1734519491/icons/bookmark-outlined_rxe5v0.svg\",\n \"bookmark-filled\": \"v1734519491/icons/bookmark-filled_jz828n.svg\",\n \"microsoft-teams\": \"v1736429692/microsoft-teams_gelfmi.svg\",\n \"google-classroom\": \"v1736429692/google-classroom_pedfpd.svg\",\n clipboard: \"v1749031463/icons/clipboard_yll2yj.svg\",\n \"book-steps\": \"v1749034739/icons/book-steps_qwku6h.svg\",\n \"free-tag\": \"v1749033815/icons/free-tag_lijptf.svg\",\n threads: \"v1749034800/icons/threads_sqlqoe.svg\",\n spreadsheet: \"v1754386968/icons/spreadsheet_rsndeb.svg\",\n \"curriculum-plan\": \"v1754386969/icons/curriculum-plan_qygyuo.svg\",\n data: \"v1763393164/icons/data-illustration_ukwdxg.svg\",\n chatting: \"v1763393163/icons/chatting-illustration_l52zaf.svg\",\n \"snack-break\": \"v1763393167/icons/snackbreak_illustration_fguw7l.svg\",\n \"class-grouping\": \"v1776785621/icons/class-grouping.svg\",\n strand: \"v1776850533/icons/strand.svg\",\n plus: \"v1781533362/icons/plus.svg\",\n // subject icons\n \"subject-art\": \"v1706616347/subject-icons/art.svg\",\n \"subject-biology\": \"v1706616415/subject-icons/biology.svg\",\n \"subject-chemistry\": \"v1706616415/subject-icons/chemistry.svg\",\n \"subject-citizenship\": \"v1706616415/subject-icons/citizenship.svg\",\n \"subject-gcse-citizenship\": \"v1706616415/subject-icons/citizenship.svg\",\n \"subject-core-citizenship\": \"v1706616415/subject-icons/citizenship.svg\",\n \"subject-combined-science\": \"v1734523570/subject-icons/science.svg\",\n \"subject-communication-and-language\":\n \"v1706616415/subject-icons/communication-and-language.svg\",\n \"subject-computing\": \"v1729171080/subject-icons/computing.svg\",\n \"subject-computer-science\": \"v1729171080/subject-icons/computing.svg\",\n \"subject-core-computing\": \"v1729171080/subject-icons/computing.svg\",\n \"subject-cooking-nutrition\":\n \"v1734523014/subject-icons/cooking-nutrition.svg\",\n \"subject-computing-non-gcse\": \"v1729171080/subject-icons/computing.svg\",\n \"subject-creative-arts\": \"v1706616415/subject-icons/creative-arts.svg\",\n \"subject-design-technology\":\n \"v1706616417/subject-icons/design-technology.svg\",\n \"subject-digital-literacy\": \"v1729171080/subject-icons/computing.svg\",\n \"subject-drama\": \"v1706616417/subject-icons/drama.svg\",\n \"subject-english\": \"v1706616417/subject-icons/english.svg\",\n \"subject-english-language\": \"v1706616419/subject-icons/language.svg\",\n \"subject-english-grammar\": \"v1706616417/subject-icons/english-grammar.svg\",\n \"subject-english-handwriting\": \"v1706616419/subject-icons/handwriting.svg\",\n \"subject-english-reading-for-pleasure\":\n \"v1706616421/subject-icons/literature.svg\",\n \"subject-english-spelling\": \"v1706616417/subject-icons/english-spelling.svg\",\n \"subject-english-reading-writing-oracy\":\n \"v1706616424/subject-icons/reading-writing-oracy.svg\",\n \"subject-english-vocabulary\": \"v1706616425/subject-icons/vocabulary.svg\",\n \"subject-expressive-arts-and-design\":\n \"v1706616415/subject-icons/creative-arts.svg\",\n \"subject-financial-education\": \"v1729171111/subject-icons/finance.svg\",\n \"subject-french\": \"v1729171111/subject-icons/french.svg\",\n \"subject-geography\": \"v1734523108/subject-icons/geography.svg\",\n \"subject-german\": \"v1734523165/subject-icons/german.svg\",\n \"subject-history\": \"v1728568980/subject-icons/history.svg\",\n \"subject-independent-living\":\n \"v1706616419/subject-icons/independent-living.svg\",\n \"subject-latin\": \"v1706616420/subject-icons/latin.svg\",\n \"subject-literacy\": \"v1706616417/subject-icons/english.svg\",\n \"subject-maths\": \"v1706616421/subject-icons/maths.svg\",\n \"subject-music\": \"v1728570203/subject-icons/music-hollow.svg\",\n \"subject-numeracy\": \"v1706616422/subject-icons/numeracy.svg\",\n \"occupational-therapy\": \"v1706616424/subject-icons/therapy.svg\",\n \"subject-personal-social-and-emotional-development\":\n \"v1706616423/subject-icons/rshe-pshe.svg\",\n \"subject-physical-development\":\n \"v1706616422/subject-icons/physical-development.svg\",\n \"subject-physical-education\":\n \"v1728568932/subject-icons/physical-education.svg\",\n \"subject-core-physical-education\":\n \"v1728568932/subject-icons/physical-education.svg\",\n \"subject-gcse-physical-education\":\n \"v1728568932/subject-icons/physical-education.svg\",\n \"subject-physical-therapy\": \"v1706632882/subject-icons/physical-therapy.svg\",\n \"subject-physics\": \"v1728568898/subject-icons/physics.svg\",\n \"subject-religious-education\":\n \"v1706616425/subject-icons/religious-education.svg\",\n \"subject-core-religious-education\":\n \"v1706616425/subject-icons/religious-education.svg\",\n \"subject-gcse-religious-education\":\n \"v1706616425/subject-icons/religious-education.svg\",\n \"subject-rshe-pshe\": \"v1706616423/subject-icons/rshe-pshe.svg\",\n \"subject-rshe\": \"v1706616423/subject-icons/rshe-pshe.svg\",\n \"subject-rule-of-law\": \"v1706616415/subject-icons/citizenship.svg\",\n \"subject-philosophy\": \"v1741794495/subject-icons/philosophy.svg\",\n \"subject-social-science\": \"v1741794495/subject-icons/social-science.svg\",\n \"subject-theology\": \"v1741794496/subject-icons/theology.svg\",\n \"subject-science\": \"v1734523570/subject-icons/science.svg\",\n \"subject-sensory-integration\":\n \"v1706626743/subject-icons/sensory-integration.svg\",\n \"subject-spanish\": \"v1729171166/subject-icons/spanish.svg\",\n \"subject-speech-and-language-therapy\":\n \"v1706632882/subject-icons/speech-and-language.svg\",\n \"subject-specialist\":\n \"v1706616415/subject-icons/communication-and-language.svg\",\n \"subject-therapy\": \"v1706616424/subject-icons/therapy.svg\",\n \"subject-therapies\": \"v1706616424/subject-icons/therapy.svg\",\n \"subject-occupational-therapy\": \"v1706616424/subject-icons/therapy.svg\",\n \"subject-understanding-the-world\":\n \"v1706616425/subject-icons/understanding-the-world.svg\",\n swimming: \"v1728649514/subject-icons/swimming.svg\",\n // homepage icons\n \"homepage-robot-waving\": \"v1734523528/homepage/robot_waving_malpc3.svg\",\n \"homepage-three-pupils\": \"v1734523221/homepage/image-students_g0jtxe.svg\",\n \"homepage-teacher\": \"v1734523680/homepage/teacher-carrying-stuff_gab2ec.svg\",\n \"homepage-teacher-map\": \"v1734523721/homepage/teacher-reading-map_glwhyh.svg\",\n // teacher journey icons\n \"audio-clip-large\": \"v1731950937/teacher-journey/audio_clip.svg\",\n \"audio-clip-small\": \"v1731951210/teacher-journey/audio_clip_small.svg\",\n // OWA UI Graphics\n \"box-border-bottom\":\n \"v1734537219/OWA/ui-graphics/box-border-bottom_oa1riy.svg\",\n \"box-border-left\": \"v1734537223/OWA/ui-graphics/box-border-left_eqgplm.svg\",\n \"box-border-right\": \"v1734537228/OWA/ui-graphics/box-border-right_unznsm.svg\",\n \"box-border-top\": \"v1734537228/OWA/ui-graphics/box-border-right_unznsm.svg\",\n \"bubble-1\": \"v1734537172/OWA/ui-graphics/bubble-1_nhgg0w.svg\",\n \"bubble-2\": \"v1734537180/OWA/ui-graphics/bubble-2_mfms6f.svg\",\n burst: \"v1734537152/OWA/ui-graphics/burst_k0mkht.svg\",\n confetti: \"v1763546694/ui-graphics/confetti-background_xbvfrc.svg\",\n \"header-underline\": \"v1734536947/OWA/ui-graphics/header-underline_ejbffz.svg\",\n \"icon-background-square\":\n \"v1734537276/OWA/ui-graphics/icon-background-square_qajipb.svg\",\n \"looping-arrow-1\": \"v1734537133/OWA/ui-graphics/looping-arrow-1_zizllb.svg\",\n \"looping-line-1\": \"v1734536929/OWA/ui-graphics/looping-line-1_krbrht.svg\",\n \"looping-line-2\": \"v1734536933/OWA/ui-graphics/looping-line-2_sdinei.svg\",\n \"looping-line-3\": \"v1734537015/OWA/ui-graphics/looping-line-3_b8dque.svg\",\n \"looping-line-4\": \"v1734537039/OWA/ui-graphics/looping-line-4_xtjj4r.svg\",\n \"looping-line-5\": \"v1740665310/OWA/ui-graphics/looping-line-5_vdknco.svg\",\n \"speech-bubble\": \"v1734537300/OWA/ui-graphics/speech-bubble_magqjf.svg\",\n \"tag-promotional\": \"v1734537244/OWA/ui-graphics/tag-promotional_v4p3oa.svg\",\n \"tick-mark-happiness\":\n \"v1734537080/OWA/ui-graphics/tick-mark-happiness_fyst07.svg\",\n \"underline-1\": \"v1734537060/OWA/ui-graphics/underline-1_zaegqi.svg\",\n image: \"v1763680546/icons/Icon_Image_uatq6d.svg\",\n logo: \"v1711468346/logo-mark.svg\",\n trash: \"v1764692488/icons/icon_delete_edzcua.svg\",\n list: \"v1774882349/icons/List.svg\",\n \"media-clips\": \"v1774884267/icons/media-clips_nw3zpt.svg\",\n retake: \"v1775141914/icons/retake-icon_xgqxzv.svg\",\n globe: \"v1776851811/icons/globe.svg\",\n} as const satisfies VersionedSvgMap;\n\nexport type IconName = keyof typeof icons;\n\nexport const backgrounds = {\n \"confetti-pink\": \"v1734522868/pupil-journey/confetti-pink.svg\",\n \"confetti-lavender\": \"v1734519662/pupil-journey/confetti-lavender.svg\",\n \"confetti-mint\": \"v1734522739/pupil-journey/confetti-mint.svg\",\n \"lesson-confetti-green\":\n \"v1734522917/pupil-journey/lesson/lesson-confetti-green.svg\",\n \"lesson-confetti-mint\":\n \"v1734523422/pupil-journey/lesson/lesson-confetti-mint.svg\",\n \"lesson-confetti-pink\":\n \"v1734523482/pupil-journey/lesson/lesson-confetti-pink.svg\",\n \"lesson-confetti-green-lemon\":\n \"v1734523276/pupil-journey/lesson/lesson-confetti-green-lemon.svg\",\n \"lesson-confetti-lavender\":\n \"v1734523381/pupil-journey/lesson/lesson-confetti-lavender.svg\",\n \"line-pink\": \"v1712912389/pupil-journey/line-pink.svg\",\n \"line-lavender\": \"v1712912348/pupil-journey/line-lavender.svg\",\n \"line-mint\": \"v1715356384/pupil-journey/line-mint.svg\",\n} as const satisfies VersionedSvgMap;\n\nexport type BackgroundName = keyof typeof backgrounds;\n\nexport const assets = {\n underline: \"v1725550624/underline-1_icqa0u.svg\",\n \"horizontal-rule\": \"v1725608698/horizontal-rule_rqdc6c.svg\",\n} satisfies VersionedSvgMap;\n\nexport type AssetName = keyof typeof assets;\n","import {\n OakColorFilterToken,\n OakUiRoleToken,\n oakColorFilterTokens,\n oakUiRoleTokens,\n} from \"@/styles/theme/color\";\nimport { PropsWithTheme } from \"@/styles/theme/theme\";\n\n/**\n * - takes any of OakUiRoleToken or null/undefined\n * - returns a function that takes the current theme and returns the corresponding css filter style for that token\n * - returns undefined if no filter is found for the token\n */\nfunction parseColorFilter(\n value?: OakUiRoleToken | null,\n): (props: PropsWithTheme) => string;\nfunction parseColorFilter(\n value?: OakUiRoleToken | null,\n): ((props: PropsWithTheme) => string) | undefined;\nfunction parseColorFilter(value?: OakUiRoleToken | null) {\n if (value === undefined || value === null) {\n return undefined;\n }\n\n if (oakUiRoleTokens.includes(value)) {\n return ({ theme }: PropsWithTheme) => {\n const c = theme.uiColors[value];\n if (c && c in oakColorFilterTokens) {\n return oakColorFilterTokens[c as OakColorFilterToken];\n }\n return undefined;\n };\n }\n}\n\nexport { parseColorFilter };\n","import { css } from \"styled-components\";\n\nimport { parseColorFilter } from \"@/styles/helpers/parseColorFilter\";\nimport {\n responsiveStyle,\n ResponsiveValues,\n} from \"@/styles/utils/responsiveStyle\";\nimport { OakUiRoleToken } from \"@/styles/theme/color\";\n\ntype ColorFilterToken = ResponsiveValues<OakUiRoleToken | null>;\n\nexport type ColorFilterStyleProps = {\n /**\n * Applies a color-filter to the element.\n *\n * Accepts a color filter token or a responsive array of color tokens.\n */\n $colorFilter?: ColorFilterToken;\n};\nexport const colorFilterStyle = css<ColorFilterStyleProps>`\n ${responsiveStyle<ColorFilterStyleProps, OakUiRoleToken>(\n \"filter\",\n (props) => props.$colorFilter,\n parseColorFilter,\n )}\n`;\n","import React, {\n ComponentPropsWithoutRef,\n ElementType,\n MouseEventHandler,\n} from \"react\";\nimport Image, { ImageProps } from \"next/image\";\nimport styled, { css } from \"styled-components\";\n\nimport { useShowPlaceholder } from \"./useShowPlaceholder\";\n\nimport {\n ColorFilterStyleProps,\n colorFilterStyle,\n} from \"@/styles/utils/colorFilterStyle\";\nimport { OakBox, OakBoxProps } from \"@/components/layout-and-structure/OakBox\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\n\ntype HTMLProps = {\n onClick?: MouseEventHandler;\n};\n\nexport type OakImageProps<C extends ElementType = typeof Image> = Omit<\n ImageProps,\n \"placeholder\"\n> &\n OakBoxProps &\n ColorFilterStyleProps &\n HTMLProps & {\n as?: C;\n /**\n * The placeholder to use while the image is loading\n *\n * Defaults to `oak` which is a placeholder containing the Oak logo\n * also accepts the same options as next/image */\n placeholder?: ImageProps[\"placeholder\"] | \"oak\";\n /**\n * Additional props forwarded to the underlying `Image` component `as`\n */\n imageProps?: Partial<ComponentPropsWithoutRef<C>>;\n };\n\ntype StyledImageProps = Omit<OakImageProps, \"as\"> & {\n $showOakPlaceholder: boolean;\n};\n\nexport const oakPlaceholder =\n \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA2NCA2NCI+PHBhdGggZmlsbD0iIzIyMiIgZD0iTTI4Ljc3OSAxOS4xNzZhMjcuMTkxIDI3LjE5MSAwIDAgMC0zLjggMS42IDE2LjcgMTYuNyAwIDAgMC03LjEgOC40YzAgLjEtLjEuMi0uMS4zLS43IDIuNC0uNiAyIDEuMyAyLjMgMS45LjMgMSAuNSAxIDEuMy0uMSA4LjggNC4xIDE1LjEgMTEuNCAxOS42YTEuNSAxLjUgMCAwIDAgMS43LjJjNS43LTIuNiA5LjMtNyAxMC4zLTEzLjJhMSAxIDAgMCAxIDEtMWwzLS4yYy44IDAgMS4zLjIgMS4yIDEuMmExNy45IDE3LjkgMCAwIDEtMy4yIDkuMiAyMy43IDIzLjcgMCAwIDEtMTAuOSA5LjEgNS40MDEgNS40MDEgMCAwIDEtNC41LS4yIDI2LjI5OCAyNi4yOTggMCAwIDEtOC41LTYuNiAyNS45IDI1LjkgMCAwIDEtNi40LTE0LjRjMC0uNi0uMi0uNy0uOC0uOC0yLjUtLjQtMi41LS4xLTIuMy0yLjlhMTkuMyAxOS4zIDAgMCAxIDEwLjgtMTYuNiAzOC45OTkgMzguOTk5IDAgMCAxIDUuNy0yLjEgMi4xIDIuMSAwIDAgMCAuOS0xLjMgMTQuMSAxNC4xIDAgMCAxIDMuNS02LjNsLjMtLjNjMS45LTIgMi42LTIgNC4zLjJsLjQuNWMxLjEgMS4xIDEgMS41LS4xIDIuNmExMS45IDExLjkgMCAwIDAtMy4yIDQuNCAxNi45IDE2LjkgMCAwIDEgNy41IDIuM2M1LjcgMy41IDkuMiA4LjMgOS45IDE1IC4wMTYuOTAxLS4wMTcgMS44MDItLjEgMi43IDAgLjgtLjYgMS0xLjIgMS4yYTE2LjEgMTYuMSAwIDAgMS0xMS0uNyAxNy45MDEgMTcuOTAxIDAgMCAxLTEwLjktMTMuNiA5Ljc5NiA5Ljc5NiAwIDAgMS0uMS0xLjlabTE4LjEgMTIuMmMuNC01LjUtNi45LTEyLjYtMTMtMTIuMS41IDYuNSA3LjYgMTIuOCAxMyAxMi4xWiIgb3BhY2l0eT0iLjEiLz48L3N2Zz4=\";\n\nconst clickStyles = css<{ onClick?: MouseEventHandler }>`\n ${(props) =>\n /* onClick might be passed in the useClickableCard pattern */\n props.onClick &&\n css`\n :hover {\n cursor: pointer;\n }\n `}\n`;\n\nexport const placeholderStyles = css<StyledImageProps>`\n ${(props) =>\n props.$showOakPlaceholder &&\n css`\n background-image: url(${oakPlaceholder});\n background-color: ${parseColor(\"bg-decorative2-very-subdued\")};\n background-size: ${parseSpacing(\"spacing-64\")};\n background-position: center;\n background-repeat: no-repeat;\n `}\n`;\n\nconst StyledFillImage = styled(Image)<StyledImageProps>`\n ${colorFilterStyle}\n ${clickStyles}\n ${placeholderStyles}\n ${(props) => css`\n object-fit: ${props.$objectFit ? props.$objectFit : \"contain\"};\n `}\n`;\n\nconst StyledResponsiveImage = styled(Image)<StyledImageProps>`\n ${colorFilterStyle}\n ${clickStyles}\n ${placeholderStyles}\n width: 100%;\n height: auto;\n`;\n\n/**\n * A wrapper for NextJs's Image component.\n *\n * Use this for all image types as well as icons.\n * Can accept remote urls provided they are whitelisted in next.config.js and relative urls for local images provided they begin with a \"/\".\n * Set the width and height of the image through the `$width` and `$height` props when the aspect ratio is not known. This will letterbox the image to avoid stretching.\n * Alternatively pass `width` and `height` props when the aspect ratio is known and use $minWidth to set the rendered width, avoiding letter-boxing.\n * NB. for letterboxed images, $background controls the color of the letterbox not the image.\n * `positionStyle` and `spacingStyle` props are also exposed for container.\n * sizes is exposed for further optimisation read Next docs for more info.\n *\n */\nexport const OakImage = <C extends ElementType = typeof Image>({\n ...props\n}: OakImageProps<C>) => {\n const {\n as,\n src,\n alt,\n width,\n height,\n sizes,\n $width = \"100%\",\n $position = \"relative\",\n $colorFilter,\n placeholder = \"oak\",\n unoptimized,\n imageProps,\n $objectFit,\n onLoad,\n onError,\n ...rest\n } = props;\n\n const finalPlaceholder = placeholder === \"oak\" ? undefined : placeholder;\n const { showPlaceholder, handleComplete, setImg } = useShowPlaceholder();\n\n // We don't know the aspect ratio of the image, so we must use fill and letterbox it to avoid stretching\n // Use $width and $height to set the width and height of the image container\n if (!width || !height) {\n return (\n <OakBox\n as=\"span\"\n $display=\"block\"\n $position={$position}\n $width={$width}\n {...rest}\n >\n <StyledFillImage\n ref={setImg}\n as={as ?? Image}\n src={src}\n alt={alt}\n sizes={sizes}\n fill\n $colorFilter={$colorFilter}\n placeholder={finalPlaceholder}\n $showOakPlaceholder={placeholder === \"oak\" && showPlaceholder}\n unoptimized={unoptimized}\n onLoad={handleComplete(onLoad)}\n onError={handleComplete(onError)}\n $objectFit={$objectFit}\n {...imageProps}\n />\n </OakBox>\n );\n }\n\n // When we know the aspect ratio, we can use Image's repsonsive layout\n // Use $minWidth to set the width with auto height\n\n return (\n <OakBox\n as=\"span\"\n $display=\"block\"\n $maxWidth={\"spacing-0\"}\n $position={$position}\n {...rest}\n >\n <StyledResponsiveImage\n ref={setImg}\n as={as ?? Image}\n src={src}\n alt={alt}\n width={width}\n height={height}\n sizes={sizes}\n unoptimized={unoptimized}\n $colorFilter={$colorFilter}\n placeholder={finalPlaceholder}\n $showOakPlaceholder={placeholder === \"oak\" && showPlaceholder}\n onLoad={handleComplete(onLoad)}\n onError={handleComplete(onError)}\n {...imageProps}\n />\n </OakBox>\n );\n};\n","import { ReactEventHandler, useCallback, useState } from \"react\";\n\nexport function useShowPlaceholder() {\n // Default to false so that we don't show the placeholder if the image is already complete\n const [showPlaceholder, setShowPlaceholder] = useState(false);\n const setImg = useCallback((img: HTMLImageElement | null) => {\n // the `load` or `error` event may never be called if the image is coming from the cache\n // so we need to check the `complete` property as well as listen to the `onLoad` and `onError` events\n img && setShowPlaceholder(!img.complete);\n }, []);\n\n return {\n showPlaceholder,\n setImg,\n /**\n * Wraps the `onLoad` and `onError` events to set the placeholder state\n */\n handleComplete(\n originalHandler?: ReactEventHandler<HTMLImageElement>,\n ): ReactEventHandler<HTMLImageElement> {\n return (event) => {\n if (originalHandler) {\n originalHandler(event);\n }\n setShowPlaceholder(false);\n };\n },\n };\n}\n","import React from \"react\";\n\nimport { OakAllSpacingToken } from \"@/styles\";\nimport { IconName, icons } from \"@/image-map\";\nimport {\n OakImage,\n OakImageProps,\n} from \"@/components/images-and-icons/OakImage\";\n\nexport const oakIconNames = Object.keys(icons) as IconName[];\n\nexport type OakIconName = IconName;\n\nexport type OakIconProps = Omit<OakImageProps, \"alt\" | \"src\"> & {\n /**\n * The name of the icon to display\n *\n * Accepts an icon name token\n */\n iconName: OakIconName;\n alt?: string;\n iconWidth?: OakAllSpacingToken;\n iconHeight?: OakAllSpacingToken;\n};\n\n/**\n * returns true if the given string is a valid `OakIconName`\n */\nexport function isValidIconName(iconName: string): iconName is OakIconName {\n return oakIconNames.includes(iconName as OakIconName);\n}\n\n/**\n * returns a Icon URL from Cloudinary if is a valid icon, otherwise returns undefined\n */\nexport function generateOakIconURL(iconName: string) {\n const urlPath = `https://${process.env.NEXT_PUBLIC_OAK_ASSETS_HOST}/${process.env.NEXT_PUBLIC_OAK_ASSETS_PATH}`;\n if (isValidIconName(iconName)) {\n return `${urlPath}/${icons[iconName]}`;\n } else if (iconName.includes(\"subject\")) {\n return `${urlPath}/${icons[\"books\"]}`;\n } else {\n return `${urlPath}/${icons[\"question-mark\"]}`;\n }\n}\n\n/**\n * A wrapper around OakImage which uses the image-map.json file to map icon names to image paths.\n */\nexport const OakIcon = (props: OakIconProps) => {\n const {\n iconName,\n alt,\n iconWidth,\n iconHeight,\n $width = iconWidth ?? \"spacing-32\",\n $height = iconHeight ?? \"spacing-32\",\n $minHeight = $height,\n $minWidth = $width,\n imageProps,\n ...rest\n } = props;\n\n return (\n <OakImage\n src={generateOakIconURL(iconName)}\n alt={alt ?? \"\"}\n $width={$width}\n $height={$height}\n $minHeight={$minHeight}\n $minWidth={$minWidth}\n placeholder=\"empty\"\n // Icons should not be optimised since the SVG is already as small as it can be and should be served directly\n unoptimized\n {...rest}\n />\n );\n};\n","import styled, { css } from \"styled-components\";\n\nconst screenReaderStyle = css`\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n`;\n\n/**\n * This component will visually hide its contents but will still be available\n * to screen readers, assitive technology, and scrapers.\n * ## Usage\n * Use this component in places where content shouldn't be visible, but should\n * be accessible to assistive technology.\n */\nexport const OakScreenReader = styled.span`\n ${screenReaderStyle}\n`;\n","import React from \"react\";\nimport styled, { css, keyframes } from \"styled-components\";\n\nimport { OakScreenReader } from \"@/components/messaging-and-feedback/OakScreenReader\";\nimport { SizeStyleProps } from \"@/styles/utils/sizeStyle\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { responsiveStyle } from \"@/styles/utils/responsiveStyle\";\nimport { ColorStyleProps, colorStyle } from \"@/styles/utils/colorStyle\";\nimport { OakUiRoleToken } from \"@/styles\";\n\nconst SpinnerKeyframe = keyframes`\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n`;\n\nconst DelayedShow = keyframes`\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n`;\n\nexport type OakLoadingSpinnerProps = Pick<SizeStyleProps, \"$width\"> &\n ColorStyleProps & {\n loaderColor?: OakUiRoleToken;\n /**\n * Delay the appearance of the spinner\n *\n * Accepts a number in milliseconds\n */\n $delay?: number;\n };\n\nconst StyledLoadingSpinner = styled.span<OakLoadingSpinnerProps>`\n ${(props) =>\n props.$width\n ? responsiveStyle(\"--width\", (props) => props.$width, parseSpacing)\n : css`\n --width: 1.25rem;\n `}\n ${({ $delay }) => {\n if ($delay) {\n return css`\n opacity: 0;\n animation: ${DelayedShow} 0s;\n animation-delay: ${$delay / 1000}s;\n animation-fill-mode: forwards;\n `;\n }\n }}\n --inner-width: calc(var(--width) / 10 * 8);\n --thickness: calc(var(--width) / 12);\n\n display: inline-flex;\n width: var(--width);\n height: var(--width);\n\n ::after {\n content: \" \";\n display: block;\n width: var(--inner-width);\n height: var(--inner-width);\n margin: var(--thickness);\n border-radius: 50%;\n border: var(--thickness) solid currentcolor;\n ${(props) =>\n props.loaderColor\n ? css`\n border-color: ${parseColor(props.loaderColor)}\n ${parseColor(props.loaderColor)} ${parseColor(props.loaderColor)}\n transparent;\n `\n : css`\n border-color: currentcolor currentcolor currentcolor transparent;\n `}\n animation: ${SpinnerKeyframe} 1.2s linear infinite;\n }\n ${colorStyle}\n`;\n\n/**\n *\n * A loading spinner of variable size.\n *\n */\nexport const OakLoadingSpinner = (props: OakLoadingSpinnerProps) => (\n <StyledLoadingSpinner {...props}>\n <OakScreenReader>Loading</OakScreenReader>\n </StyledLoadingSpinner>\n);\n","import React, { ElementType, ReactNode } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakBox, OakBoxProps } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { OakSvg } from \"@/components/images-and-icons/OakSvg\";\nimport {\n InternalButton,\n InternalButtonProps,\n} from \"@/components/internal-components/InternalButton\";\nimport { OakIcon, OakIconName } from \"@/components/images-and-icons/OakIcon\";\nimport { OakLoadingSpinner } from \"@/components/messaging-and-feedback/OakLoadingSpinner\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport {\n PositionStyleProps,\n positionStyle,\n} from \"@/styles/utils/positionStyle\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport {\n OakAllSpacingToken,\n OakUiRoleToken,\n OakDropShadowToken,\n} from \"@/styles\";\nimport { SizeStyleProps, sizeStyle } from \"@/styles/utils/sizeStyle\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\nimport { SpacingStyleProps } from \"@/styles/utils/spacingStyle\";\nimport { FlexStyleProps } from \"@/styles/utils/flexStyle\";\nimport { TypographyStyleProps } from \"@/styles/utils/typographyStyle\";\nimport { DisplayStyleProps } from \"@/styles/utils/displayStyle\";\n\ntype OakLoadingSpinnerTokenSubset = Extract<\n OakAllSpacingToken,\n \"spacing-20\" | \"spacing-24\"\n>;\n\nexport type InternalShadowRectButtonProps = Omit<\n InternalButtonProps,\n | \"$pa\"\n | \"$ph\"\n | \"$pv\"\n | \"$pt\"\n | \"$pb\"\n | \"$ba\"\n | \"$borderRadius\"\n | \"$borderColor\"\n | \"$background\"\n | \"$color\"\n> & {\n iconName?: OakIconName;\n iconAriaHidden?: boolean;\n /**\n * we can set a custom icon if we want different sizes and padding\n */\n iconOverride?: React.ReactNode;\n isTrailingIcon?: boolean;\n /**\n * we can arrange the icon vertically or horizontally\n */\n iconLayout?: FlexStyleProps[\"$flexDirection\"];\n /**\n * we can adjust the gap between the icon and the text\n */\n loadingSpinnerSize?: OakLoadingSpinnerTokenSubset;\n /**\n * whether the button should show a selected state\n */\n selected?: boolean;\n iconGap?: FlexStyleProps[\"$gap\"];\n defaultTextColor: OakUiRoleToken;\n defaultBackground: OakUiRoleToken;\n defaultBorderColor: OakUiRoleToken;\n hoverTextColor: OakUiRoleToken;\n hoverBackground: OakUiRoleToken;\n hoverBorderColor: OakUiRoleToken;\n hoverUnderline?: boolean;\n disabledBackground: OakUiRoleToken;\n disabledBorderColor: OakUiRoleToken;\n disabledTextColor: OakUiRoleToken;\n width?: SizeStyleProps[\"$width\"];\n maxWidth?: SizeStyleProps[\"$maxWidth\"];\n hoverShadow?: OakDropShadowToken | null;\n pv?: SpacingStyleProps[\"$pv\"];\n ph?: SpacingStyleProps[\"$ph\"];\n font?: TypographyStyleProps[\"$font\"];\n innerWidth?: SizeStyleProps[\"$width\"];\n textAlign?: TypographyStyleProps[\"$textAlign\"];\n display?: DisplayStyleProps[\"$display\"];\n} & PositionStyleProps;\n\nconst StyledInternalButton = styled(InternalButton)<\n SizeStyleProps & {\n $defaultTextColor: OakUiRoleToken;\n $defaultBackground: OakUiRoleToken;\n $defaultBorderColor: OakUiRoleToken;\n $hoverTextColor: OakUiRoleToken;\n $hoverBackground: OakUiRoleToken;\n $hoverBorderColor: OakUiRoleToken;\n $hoverUnderline?: boolean;\n $disabledBackground: OakUiRoleToken;\n $disabledBorderColor: OakUiRoleToken;\n $disabledTextColor: OakUiRoleToken;\n }\n>`\n ${positionStyle}\n ${sizeStyle}\n ${(props) => css`\n &:hover {\n text-decoration: ${props.$hoverUnderline ? \"underline\" : \"none\"};\n color: ${parseColor(props.$hoverTextColor)};\n background: ${parseColor(props.$hoverBackground)};\n border-color: ${parseColor(props.$hoverBorderColor)};\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:active {\n background: ${parseColor(props.$defaultBackground)};\n border-color: ${parseColor(props.$defaultBorderColor)};\n color: ${parseColor(props.$defaultTextColor)};\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:disabled {\n background: ${parseColor(props.$disabledBackground)};\n border-color: ${parseColor(props.$disabledBorderColor)};\n color: ${parseColor(props.$disabledTextColor)};\n [data-state=\"selected\"] {\n display: none;\n }\n }\n `}\n`;\n\nconst StyledOakSvg = styled(OakSvg)`\n bottom: -3px;\n left: 0px;\n position: absolute;\n height: 5px;\n color: ${parseColor(\"border-decorative1\")};\n`;\n\nexport const StyledButtonWrapper = styled(OakBox)<\n OakBoxProps & {\n $hoverShadow?: OakDropShadowToken | null;\n }\n>`\n .grey-shadow:has(+ * + .internal-button:focus-visible) {\n box-shadow: ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n .yellow-shadow:has(+ .internal-button:focus-visible) {\n box-shadow: ${parseDropShadow(\"drop-shadow-centered-lemon\")};\n }\n .yellow-shadow:has(+ .internal-button:hover),\n .yellow-shadow:has(+ .internal-button:hover:not(:focus-visible, :active)) {\n box-shadow: ${(props) => parseDropShadow(props.$hoverShadow)};\n }\n .grey-shadow:has(+ * + .internal-button:hover) {\n box-shadow: none;\n }\n .grey-shadow:has(+ * + .internal-button:active) {\n box-shadow: ${parseDropShadow(\"drop-shadow-grey\")};\n }\n .yellow-shadow:has(+ .internal-button:active) {\n box-shadow: ${parseDropShadow(\"drop-shadow-lemon\")};\n }\n`;\n\n/**\n *\n * A styled rectangular button, not intended to be used directly. \n * Instead used by OakPrimaryButton and OakSecondaryButton.\n * \n * The following callbacks are available for tracking focus events:\n *\n * ### onClick\n * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`\n\n * ### onHovered\n * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n */\nexport const InternalShadowRectButton = <C extends ElementType = \"button\">(\n props: InternalShadowRectButtonProps & PolymorphicPropsWithoutRef<C>,\n) => {\n const {\n element = \"button\",\n children,\n iconName,\n iconAriaHidden,\n isTrailingIcon,\n isLoading,\n disabled,\n width = \"max-content\",\n height = \"auto\",\n maxWidth,\n innerWidth,\n defaultBackground,\n defaultBorderColor,\n defaultTextColor,\n disabledTextColor,\n hoverTextColor,\n hoverBackground,\n hoverBorderColor,\n hoverUnderline,\n disabledBackground,\n disabledBorderColor,\n className,\n hoverShadow = \"drop-shadow-lemon\",\n pv = \"spacing-12\",\n ph = \"spacing-16\",\n pt,\n pb,\n pl,\n pr,\n iconLayout = \"row\",\n iconGap = \"spacing-8\",\n iconOverride,\n font = \"heading-7\",\n textAlign = \"left\",\n loadingSpinnerSize = \"spacing-24\",\n display = \"inline-block\",\n selected,\n ...rest\n } = props;\n\n const icon = iconOverride ?? (\n <>\n {iconName && (\n <OakIcon\n iconName={iconName}\n $width={\"spacing-24\"}\n $height={\"spacing-24\"}\n $colorFilter={props.disabled ? disabledTextColor : defaultTextColor}\n aria-hidden={iconAriaHidden}\n />\n )}\n </>\n );\n\n const loader = (\n <OakBox $width={loadingSpinnerSize} $height={loadingSpinnerSize}>\n <OakLoadingSpinner $width={loadingSpinnerSize} />\n </OakBox>\n );\n\n const iconLogic = <>{isLoading && !disabled ? loader : icon}</>;\n return (\n <StyledButtonWrapper\n className={className}\n $position={\"relative\"}\n $width={width}\n $height={height}\n $maxWidth={maxWidth}\n $hoverShadow={hoverShadow}\n >\n <OakBox\n className=\"grey-shadow\"\n $position={\"absolute\"}\n $borderRadius={\"border-radius-s\"}\n $width={\"100%\"}\n $height={\"100%\"}\n $top=\"spacing-0\"\n />\n <OakBox\n className=\"yellow-shadow\"\n $position={\"absolute\"}\n $borderRadius={\"border-radius-s\"}\n $width={\"100%\"}\n $height={\"100%\"}\n $top=\"spacing-0\"\n />\n <StyledInternalButton\n element={element}\n className=\"internal-button\"\n $ba={\"border-solid-m\"}\n $background={defaultBackground}\n $borderColor={defaultBorderColor}\n $color={defaultTextColor}\n $pv={pv}\n $ph={ph}\n $pt={pt}\n $pb={pb}\n $pl={pl}\n $pr={pr}\n $borderRadius={\"border-radius-s\"}\n $position={\"relative\"}\n disabled={disabled || isLoading}\n $width={\"100%\"}\n $height={\"100%\"}\n $hoverTextColor={hoverTextColor}\n $hoverBackground={hoverBackground}\n $hoverBorderColor={hoverBorderColor}\n $hoverUnderline={hoverUnderline}\n $defaultTextColor={defaultTextColor}\n $defaultBackground={defaultBackground}\n $defaultBorderColor={defaultBorderColor}\n $disabledTextColor={disabledTextColor}\n $disabledBackground={disabledBackground}\n $disabledBorderColor={disabledBorderColor}\n $display={display}\n {...rest}\n >\n <OakFlex\n $flexDirection={iconLayout}\n $alignItems={\"center\"}\n $gap={iconGap}\n $justifyContent={\"center\"}\n $width={innerWidth}\n >\n {!isTrailingIcon && iconLogic}\n {selected ? (\n <TextWithUnderline font={font}>{children}</TextWithUnderline>\n ) : (\n <OakSpan $font={font} $textAlign={textAlign}>\n {children}\n </OakSpan>\n )}\n {isTrailingIcon && iconLogic}\n </OakFlex>\n </StyledInternalButton>\n </StyledButtonWrapper>\n );\n};\n\nconst TextWithUnderline = ({\n textAlign,\n font,\n children,\n}: {\n font?: TypographyStyleProps[\"$font\"];\n textAlign?: TypographyStyleProps[\"$textAlign\"];\n children: ReactNode;\n}) => (\n <OakBox $position={\"relative\"} $textAlign={textAlign}>\n <OakSpan $font={font}>{children}</OakSpan>\n <StyledOakSvg\n name=\"underline\"\n data-state=\"selected\"\n data-testid=\"selected-underline\"\n />\n </OakBox>\n);\n","import React, { ElementType } from \"react\";\n\nimport {\n InternalShadowRectButton,\n InternalShadowRectButtonProps,\n} from \"@/components/internal-components/InternalShadowRectButton\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\n\nexport type OakSecondaryButtonProps = Omit<\n InternalShadowRectButtonProps,\n | \"defaultBorderColor\"\n | \"defaultBackground\"\n | \"defaultTextColor\"\n | \"hoverBackground\"\n | \"hoverBorderColor\"\n | \"hoverTextColor\"\n | \"disabledBackground\"\n | \"disabledBorderColor\"\n | \"disabledTextColor\"\n>;\n\n/**\n *\n * A specific implementation of InternalRectButton\n *\n * The following callbacks are available for tracking focus events:\n *\n * ### onClick\n * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`\n *\n * ### onHovered\n * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n */\nexport const OakSecondaryButton = <C extends ElementType = \"button\">({\n element,\n ...rest\n}: OakSecondaryButtonProps & PolymorphicPropsWithoutRef<C>) => {\n return (\n <InternalShadowRectButton\n element={element ?? \"button\"}\n defaultBorderColor=\"text-primary\"\n defaultBackground=\"bg-btn-secondary\"\n defaultTextColor=\"text-primary\"\n hoverBackground=\"bg-btn-secondary-hover\"\n hoverBorderColor=\"text-primary\"\n hoverTextColor=\"text-primary\"\n hoverUnderline={true}\n disabledBackground=\"bg-btn-secondary-disabled\"\n disabledBorderColor=\"text-disabled\"\n disabledTextColor=\"text-disabled\"\n {...rest}\n />\n );\n};\n","import React, { useState, useRef, useEffect, ElementType } from \"react\";\n\nimport {\n OakSecondaryButton,\n OakSecondaryButtonProps,\n} from \"@/components/buttons/OakSecondaryButton\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakIconName } from \"@/components/images-and-icons/OakIcon\";\nimport { ResponsiveValues } from \"@/styles/utils/responsiveStyle\";\nimport {\n OakAllSpacingToken,\n OakSpaceBetweenToken,\n OakCombinedSpacingToken,\n} from \"@/styles/theme/spacing\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\n\ntype ButtonComponent = <C extends React.ElementType = \"button\">({\n element,\n ...rest\n}: OakSecondaryButtonProps &\n PolymorphicPropsWithoutRef<C>) => React.JSX.Element;\n\nexport type OakButtonWithDropdownProps = {\n primaryActionText: string;\n primaryActionIcon?: OakIconName;\n onPrimaryAction?: () => void;\n children?: React.ReactNode;\n isLoading?: boolean;\n disabled?: boolean;\n ariaLabel?: string;\n leadingButtonIcon?: React.ReactNode;\n ariaDescription?: string;\n \"data-testid\"?: string;\n buttonComponent: ButtonComponent;\n dropdownTopSpacing?: ResponsiveValues<\n OakAllSpacingToken | OakSpaceBetweenToken | null | undefined\n >;\n flexWidth?: ResponsiveValues<OakCombinedSpacingToken | null | undefined>;\n closeOnChange?: boolean;\n};\n\n/**\n * A shared component that provides dropdown functionality for any button type.\n * Accepts the button component as a prop to eliminate code duplication.\n */\nexport const OakButtonWithDropdown = ({\n primaryActionText,\n primaryActionIcon = \"chevron-down\",\n onPrimaryAction,\n children,\n isLoading = false,\n disabled = false,\n ariaLabel,\n ariaDescription,\n leadingButtonIcon,\n \"data-testid\": dataTestId,\n buttonComponent: ButtonComponent,\n dropdownTopSpacing = \"spacing-56\",\n flexWidth,\n closeOnChange,\n}: OakButtonWithDropdownProps) => {\n const [isOpen, setIsOpen] = useState(false);\n const dropdownRef = useRef<HTMLDivElement>(null);\n\n // Get all focusable elements within the dropdown\n const getFocusableElements = () => {\n if (!dropdownRef.current) return [];\n return Array.from(\n dropdownRef.current.querySelectorAll(\n 'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])',\n ),\n ) as HTMLElement[];\n };\n\n const handleCloseOnChange = () => {\n if (closeOnChange) {\n setIsOpen(false);\n }\n };\n\n // Handle clicks the dropdown to close it\n useEffect(() => {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (!isOpen) return;\n\n const focusableElements = getFocusableElements();\n const currentIndex = focusableElements.indexOf(\n document.activeElement as HTMLElement,\n );\n\n switch (event.key) {\n case \"Escape\": {\n event.preventDefault();\n setIsOpen(false);\n break;\n }\n\n case \"ArrowDown\": {\n event.preventDefault();\n if (focusableElements.length === 0) return;\n const nextDownIndex =\n currentIndex >= focusableElements.length - 1 ? 0 : currentIndex + 1;\n focusableElements[nextDownIndex]?.focus();\n break;\n }\n case \"ArrowUp\": {\n event.preventDefault();\n if (focusableElements.length === 0) return;\n const nextUpIndex =\n currentIndex <= 0 ? focusableElements.length - 1 : currentIndex - 1;\n focusableElements[nextUpIndex]?.focus();\n break;\n }\n\n case \"Enter\": {\n handleCloseOnChange();\n break;\n }\n\n case \"Return\": {\n handleCloseOnChange();\n break;\n }\n\n case \" \": {\n handleCloseOnChange();\n break;\n }\n }\n };\n\n const handleClick = (event: MouseEvent) => {\n if (\n dropdownRef.current &&\n (!dropdownRef.current.contains(event.target as Node) || !!closeOnChange)\n ) {\n setIsOpen(false);\n }\n };\n\n if (isOpen) {\n document.addEventListener(\"mousedown\", handleClick);\n document.addEventListener(\"keydown\", handleKeyDown);\n }\n\n return () => {\n document.removeEventListener(\"mousedown\", handleClick);\n document.removeEventListener(\"keydown\", handleKeyDown);\n };\n }, [isOpen, dataTestId]);\n\n const handlePrimaryAction = () => {\n setIsOpen(!isOpen);\n onPrimaryAction?.();\n };\n\n return (\n <OakBox\n as=\"section\"\n aria-label={ariaLabel}\n aria-describedby={\n ariaDescription ? `${dataTestId}-description` : undefined\n }\n data-testid={dataTestId}\n ref={dropdownRef}\n $position=\"relative\"\n >\n <OakFlex $flexDirection=\"column\" $gap=\"spacing-12\">\n <OakFlex $width={flexWidth} $gap=\"spacing-12\">\n <ButtonComponent\n iconName={primaryActionIcon}\n isTrailingIcon\n onClick={handlePrimaryAction}\n isLoading={isLoading}\n disabled={disabled}\n width=\"max-content\"\n aria-expanded={isOpen}\n aria-haspopup=\"menu\"\n aria-label={primaryActionText}\n data-testid={\n dataTestId ? `${dataTestId}-primary-action` : undefined\n }\n >\n <OakFlex $alignItems={\"center\"}>\n {leadingButtonIcon}\n {primaryActionText}\n </OakFlex>\n </ButtonComponent>\n </OakFlex>\n\n {isOpen && (\n <OakBox\n $background=\"bg-primary\"\n $borderRadius=\"border-radius-s\"\n $ba=\"border-solid-m\"\n $borderColor=\"border-primary\"\n $pa=\"spacing-8\"\n $position=\"absolute\"\n $top={dropdownTopSpacing}\n $zIndex=\"modal-close-button\"\n role=\"menu\"\n aria-label=\"Dropdown menu. Use arrow keys to navigate, Tab to cycle through items, Escape to close.\"\n data-testid={dataTestId ? `${dataTestId}-dropdown` : undefined}\n >\n <OakFlex $flexDirection=\"column\" $gap={\"spacing-8\"}>\n {children}\n </OakFlex>\n </OakBox>\n )}\n </OakFlex>\n </OakBox>\n );\n};\n\nOakButtonWithDropdown.Divider = (): React.ReactElement => (\n <OakBox\n $height=\"spacing-0\"\n $width=\"100%\"\n $bt=\"border-solid-s\"\n $borderColor=\"border-neutral-lighter\"\n aria-hidden=\"true\"\n />\n);\n\nOakButtonWithDropdown.Item = <C extends ElementType = \"button\">({\n children,\n element,\n ...rest\n}: {\n children: React.ReactNode;\n} & OakSecondaryButtonProps &\n PolymorphicPropsWithoutRef<C>): React.ReactElement => (\n <OakSecondaryButton element=\"a\" role=\"menuitem\" isTrailingIcon {...rest}>\n {children}\n </OakSecondaryButton>\n);\n","import React, { ElementType } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakRoundIconProps } from \"@/components/images-and-icons/OakRoundIcon\";\nimport { parseColorFilter } from \"@/styles/helpers/parseColorFilter\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport {\n InternalButton,\n InternalButtonProps,\n} from \"@/components/internal-components/InternalButton\";\nimport { OakIcon, OakIconName } from \"@/components/images-and-icons/OakIcon\";\nimport { OakLoadingSpinner } from \"@/components/messaging-and-feedback/OakLoadingSpinner\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport {\n PositionStyleProps,\n positionStyle,\n} from \"@/styles/utils/positionStyle\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { OakUiRoleToken, OakDropShadowToken } from \"@/styles\";\nimport { SizeStyleProps, sizeStyle } from \"@/styles/utils/sizeStyle\";\n\nexport type InternalShadowRoundButtonProps = Omit<\n InternalButtonProps,\n | \"$pa\"\n | \"$ph\"\n | \"$pv\"\n | \"$ba\"\n | \"$borderRadius\"\n | \"$borderColor\"\n | \"$background\"\n | \"$color\"\n> & {\n iconName?: OakIconName;\n isTrailingIcon?: boolean;\n defaultTextColor: OakUiRoleToken;\n hoverTextColor: OakUiRoleToken;\n disabledTextColor: OakUiRoleToken;\n defaultIconBackground: OakUiRoleToken;\n hoverIconBackground: OakUiRoleToken;\n hoverIconColor?: OakUiRoleToken;\n disabledIconBackground: OakUiRoleToken;\n defaultIconColor?: OakRoundIconProps[\"$colorFilter\"];\n disabledIconColor?: OakRoundIconProps[\"$colorFilter\"];\n defaultIconBorderColor?: OakUiRoleToken;\n disabledIconBorderColor?: OakUiRoleToken;\n width?: SizeStyleProps[\"$width\"];\n maxWidth?: SizeStyleProps[\"$maxWidth\"];\n iconBackgroundSize: SizeStyleProps[\"$width\"];\n iconSize: SizeStyleProps[\"$width\"];\n hoverDropShadow?: OakDropShadowToken | null;\n} & PositionStyleProps;\n\nconst StyledInternalButton = styled(InternalButton)<\n InternalShadowRoundButtonProps & SizeStyleProps\n>`\n display: inline-block;\n ${positionStyle}\n ${sizeStyle}\n ${(props) => css`\n &:hover {\n text-decoration: underline;\n color: ${parseColor(props.$hoverTextColor)};\n\n &:not(:active) [data-icon-for=\"button\"] img {\n filter: ${props.$hoverIconColor\n ? parseColorFilter(props.$hoverIconColor)\n : undefined};\n }\n }\n &:active {\n color: ${parseColor(props.$defaultTextColor)};\n }\n &:disabled {\n color: ${parseColor(props.$disabledTextColor)};\n }\n `}\n`;\n\nconst StyledButtonWrapper = styled(OakFlex)<{\n $disabledIconBackground: OakUiRoleToken;\n $hoverIconBackground: OakUiRoleToken;\n $defaultIconBackground: OakUiRoleToken;\n $hoverDropShadow: OakDropShadowToken | null;\n}>`\n ${(props) => css`\n > :first-child:focus-visible .shadow {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n > :first-child:hover .shadow {\n box-shadow: ${parseDropShadow(\n props.$hoverDropShadow /*\"drop-shadow-lemon\"*/,\n )};\n }\n > :first-child:active .shadow {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-lemon\")},\n ${parseDropShadow(\"drop-shadow-grey\")};\n }\n `}\n ${(props) => css`\n > :first-child:disabled .icon-container {\n background: ${parseColor(props.$disabledIconBackground)};\n }\n > :first-child:hover .icon-container {\n background: ${parseColor(props.$hoverIconBackground)};\n }\n > :first-child:active .icon-container {\n background: ${parseColor(props.$defaultIconBackground)};\n }\n `}\n`;\n\n/**\n *\n * A styled button with round icons, not intended to be used directly. \n * Instead used by OakTertiaryButton and OakHintButton.\n * \n * The following callbacks are available for tracking focus events:\n *\n * ### onClick\n * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`\n\n * ### onHovered\n * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n */\nexport const InternalShadowRoundButton = <C extends ElementType = \"button\">(\n props: InternalShadowRoundButtonProps & PolymorphicPropsWithoutRef<C>,\n) => {\n const {\n element = \"button\",\n children,\n iconName,\n isTrailingIcon,\n isLoading,\n disabled,\n width = \"max-content\",\n maxWidth,\n iconBackgroundSize,\n iconSize,\n disabledIconBackground,\n hoverIconColor,\n disabledTextColor,\n defaultIconColor,\n hoverIconBackground,\n defaultIconBackground,\n defaultIconBorderColor,\n disabledIconBorderColor,\n disabledIconColor,\n defaultTextColor,\n hoverTextColor,\n hoverDropShadow = \"drop-shadow-lemon\",\n className,\n ...rest\n } = props;\n\n const icon = iconName && (\n <OakIcon\n iconName={iconName}\n $width={iconSize}\n $height={iconSize}\n $colorFilter={\n props.disabled\n ? disabledIconColor\n : defaultIconColor\n ? defaultIconColor\n : null\n }\n data-icon-for=\"button\"\n />\n );\n const loader = (\n <OakBox $width={iconSize} $height={iconSize}>\n <OakLoadingSpinner $width={iconSize} loaderColor=\"bg-primary\" />\n </OakBox>\n );\n\n const iconBorderColor =\n disabled || isLoading ? disabledIconBorderColor : defaultIconBorderColor;\n\n const iconLogic = (isLoading || icon) && (\n <OakFlex\n className={\"icon-container\"}\n $background={props.defaultIconBackground}\n $color={props.defaultTextColor}\n $borderRadius={\"border-radius-circle\"}\n $position={\"relative\"}\n $width={iconBackgroundSize}\n $height={iconBackgroundSize}\n $alignItems={\"center\"}\n $justifyContent={\"center\"}\n $minWidth={iconBackgroundSize}\n >\n <OakBox\n className=\"shadow\"\n $position={\"absolute\"}\n $borderRadius={\"border-radius-circle\"}\n $borderColor={iconBorderColor}\n $ba={iconBorderColor ? \"border-solid-m\" : undefined}\n $width={\"100%\"}\n $height={\"100%\"}\n $top=\"spacing-0\"\n />\n\n {isLoading && !disabled ? loader : icon}\n </OakFlex>\n );\n\n return (\n <StyledButtonWrapper\n className={className}\n $position={\"relative\"}\n $width={width}\n $maxWidth={maxWidth}\n $disabledIconBackground={disabledIconBackground}\n $hoverIconBackground={hoverIconBackground}\n $defaultIconBackground={defaultIconBackground}\n $hoverDropShadow={hoverDropShadow}\n >\n <StyledInternalButton\n element={element ?? \"button\"}\n {...rest}\n $hoverTextColor={hoverTextColor}\n $hoverIconColor={hoverIconColor}\n $defaultTextColor={defaultTextColor}\n $disabledTextColor={disabledTextColor}\n $color={defaultTextColor}\n $position={\"relative\"}\n disabled={disabled || isLoading}\n >\n <OakFlex\n $flexDirection={\"row\"}\n $alignItems={\"center\"}\n $gap={children ? \"spacing-12\" : \"spacing-0\"}\n $justifyContent=\"center\"\n >\n {!isTrailingIcon && iconLogic}\n <OakSpan $font={\"heading-7\"}>{children}</OakSpan>\n {isTrailingIcon && iconLogic}\n </OakFlex>\n </StyledInternalButton>\n </StyledButtonWrapper>\n );\n};\n","import React from \"react\";\n\nimport { InternalShadowRoundButton } from \"@/components/internal-components/InternalShadowRoundButton\";\n\nexport type OakCloseButtonProps = {\n onClose: () => void;\n};\n\n/**\n *\n * An icon button that can be used for closing items such as in navigation menus and modals.\n *\n * Design system: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=14493-15312>\n *\n *\n */\nexport function OakCloseButton({\n onClose,\n ...rest\n}: Readonly<OakCloseButtonProps>) {\n return (\n <InternalShadowRoundButton\n onClick={onClose}\n aria-label=\"Close\"\n defaultIconBackground=\"transparent\"\n defaultIconColor=\"icon-primary\"\n defaultTextColor=\"transparent\"\n hoverTextColor=\"transparent\"\n disabledTextColor=\"transparent\"\n hoverIconBackground=\"bg-neutral\"\n hoverIconColor=\"icon-primary\"\n disabledIconBackground=\"transparent\"\n iconBackgroundSize=\"spacing-24\"\n iconSize=\"spacing-24\"\n iconName=\"cross\"\n hoverDropShadow={null}\n {...rest}\n />\n );\n}\n","import React, { ElementType } from \"react\";\n\nimport {\n InternalShadowRectButton,\n InternalShadowRectButtonProps,\n} from \"@/components/internal-components/InternalShadowRectButton\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\n\nexport type OakPrimaryButtonProps = Omit<\n InternalShadowRectButtonProps,\n | \"defaultBorderColor\"\n | \"defaultBackground\"\n | \"defaultTextColor\"\n | \"hoverBackground\"\n | \"hoverBorderColor\"\n | \"hoverTextColor\"\n | \"disabledBackground\"\n | \"disabledBorderColor\"\n | \"disabledTextColor\"\n>;\n\n/**\n *\n * A specific implementation of InternalRectButtoną\n *\n * The following callbacks are available for tracking focus events:\n *\n * ### onClick\n * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`\n *\n * ### onHovered\n * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n */\nexport const OakPrimaryButton = <C extends ElementType = \"button\">({\n element,\n ...rest\n}: OakPrimaryButtonProps & PolymorphicPropsWithoutRef<C>) => {\n return (\n <InternalShadowRectButton\n element={element ?? \"button\"}\n defaultBorderColor=\"bg-btn-primary\"\n defaultBackground=\"bg-btn-primary\"\n defaultTextColor=\"text-inverted\"\n hoverBackground=\"bg-btn-primary-hover\"\n hoverBorderColor=\"bg-btn-primary-hover\"\n hoverTextColor=\"text-inverted\"\n hoverUnderline\n disabledBackground=\"bg-btn-primary-disabled\"\n disabledBorderColor=\"text-disabled\"\n disabledTextColor=\"text-inverted\"\n {...rest}\n />\n );\n};\n","import React, { ElementType } from \"react\";\n\nimport {\n InternalShadowRectButton,\n InternalShadowRectButtonProps,\n} from \"@/components/internal-components/InternalShadowRectButton\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\n\nexport type OakPrimaryInvertedButtonProps = Omit<\n InternalShadowRectButtonProps,\n | \"defaultBorderColor\"\n | \"defaultBackground\"\n | \"defaultTextColor\"\n | \"hoverBackground\"\n | \"hoverBorderColor\"\n | \"hoverTextColor\"\n | \"disabledBackground\"\n | \"disabledBorderColor\"\n | \"disabledTextColor\"\n>;\n\n/**\n *\n * A specific implementation of InternalRectButton\n *\n * The following callbacks are available for tracking focus events:ą\n *\n * ### onClick\n * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`\n *\n * ### onHovered\n * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n */\nexport const OakPrimaryInvertedButton = <C extends ElementType = \"button\">({\n element,\n ...rest\n}: OakPrimaryInvertedButtonProps & PolymorphicPropsWithoutRef<C>) => {\n return (\n <InternalShadowRectButton\n element={element ?? \"button\"}\n defaultBorderColor=\"bg-btn-secondary\"\n defaultBackground=\"bg-btn-secondary\"\n defaultTextColor=\"text-primary\"\n hoverBackground=\"bg-btn-secondary-hover\"\n hoverBorderColor=\"bg-btn-secondary-hover\"\n hoverTextColor=\"text-primary\"\n hoverUnderline\n disabledBackground=\"bg-btn-secondary\"\n disabledBorderColor=\"bg-btn-secondary\"\n disabledTextColor=\"text-disabled\"\n hoverShadow={null}\n {...rest}\n />\n );\n};\n","import React, { ElementType } from \"react\";\n\nimport {\n OakPrimaryInvertedButton,\n OakPrimaryInvertedButtonProps,\n} from \"@/components/buttons/OakPrimaryInvertedButton\";\nimport { OakIconName } from \"@/components/images-and-icons/OakIcon\";\nimport { OakSecondaryButton } from \"@/components/buttons/OakSecondaryButton\";\nimport { OakButtonWithDropdown } from \"@/components/buttons/OakButtonWithDropdown\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\n\nexport type OakSecondaryButtonWithDropdownProps = {\n primaryActionText: string;\n primaryActionIcon?: OakIconName;\n onPrimaryAction?: () => void;\n children?: React.ReactNode;\n isLoading?: boolean;\n disabled?: boolean;\n ariaLabel?: string;\n leadingButtonIcon?: React.ReactNode;\n ariaDescription?: string;\n \"data-testid\"?: string;\n};\n\n/**\n * A secondary button that takes custom menu items or .Item and .Divider compound components as children.\n *\n */\nexport const OakSecondaryButtonWithDropdown = (\n props: OakSecondaryButtonWithDropdownProps,\n) => {\n return (\n <OakButtonWithDropdown\n {...props}\n buttonComponent={OakSecondaryButton}\n dropdownTopSpacing=\"spacing-56\"\n />\n );\n};\n\nOakSecondaryButtonWithDropdown.Divider = (): React.ReactElement => (\n <OakButtonWithDropdown.Divider />\n);\n\nOakSecondaryButtonWithDropdown.Item = <C extends ElementType = \"button\">({\n children,\n element,\n ...rest\n}: {\n children: React.ReactNode;\n} & OakPrimaryInvertedButtonProps &\n PolymorphicPropsWithoutRef<C>): React.ReactElement => (\n <OakPrimaryInvertedButton\n element=\"a\"\n role=\"menuitem\"\n isTrailingIcon\n {...rest}\n >\n {children}\n </OakPrimaryInvertedButton>\n);\n","import React, { ElementType } from \"react\";\n\nimport {\n InternalShadowRectButton,\n InternalShadowRectButtonProps,\n} from \"@/components/internal-components/InternalShadowRectButton\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\n\nexport type OakSmallPrimaryButtonProps = Omit<\n InternalShadowRectButtonProps,\n | \"defaultBorderColor\"\n | \"defaultBackground\"\n | \"defaultTextColor\"\n | \"hoverBackground\"\n | \"hoverBorderColor\"\n | \"hoverTextColor\"\n | \"disabledBackground\"\n | \"disabledBorderColor\"\n | \"disabledTextColor\"\n | \"pv\"\n | \"ph\"\n | \"font\"\n>;\n\n/**\n *\n * A specific implementation of InternalRectButton\n *\n * The following callbacks are available for tracking focus events:\n *\n * ### onClick\n * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`\n *\n * ### onHovered\n * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n */\nexport const OakSmallPrimaryButton = <C extends ElementType = \"button\">({\n element,\n ...rest\n}: OakSmallPrimaryButtonProps & PolymorphicPropsWithoutRef<C>) => {\n return (\n <InternalShadowRectButton\n element={element ?? \"button\"}\n defaultBorderColor=\"bg-btn-primary\"\n defaultBackground=\"bg-btn-primary\"\n defaultTextColor=\"text-inverted\"\n hoverBackground=\"bg-btn-primary-hover\"\n hoverBorderColor=\"bg-btn-primary-hover\"\n hoverTextColor=\"text-inverted\"\n disabledBackground=\"bg-btn-primary-disabled\"\n disabledBorderColor=\"text-disabled\"\n disabledTextColor=\"text-inverted\"\n font=\"body-3-bold\"\n pv=\"spacing-4\"\n ph=\"spacing-8\"\n loadingSpinnerSize=\"spacing-20\"\n iconGap=\"spacing-4\"\n {...rest}\n />\n );\n};\n","import React, { ElementType } from \"react\";\n\nimport {\n InternalShadowRectButton,\n InternalShadowRectButtonProps,\n} from \"@/components/internal-components/InternalShadowRectButton\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\n\nexport type OakSmallPrimaryInvertedButtonProps = Omit<\n InternalShadowRectButtonProps,\n | \"defaultBorderColor\"\n | \"defaultBackground\"\n | \"defaultTextColor\"\n | \"hoverBackground\"\n | \"hoverBorderColor\"\n | \"hoverTextColor\"\n | \"disabledBackground\"\n | \"disabledBorderColor\"\n | \"disabledTextColor\"\n>;\n\n/**\n *\n * A specific implementation of InternalRectButton\n *\n * The following callbacks are available for tracking focus events:\n *\n * ### onClick\n * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`\n *\n * ### onHovered\n * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n */\nexport const OakSmallPrimaryInvertedButton = <\n C extends ElementType = \"button\",\n>({\n element,\n ...rest\n}: OakSmallPrimaryInvertedButtonProps & PolymorphicPropsWithoutRef<C>) => {\n return (\n <InternalShadowRectButton\n element={element ?? \"button\"}\n defaultBorderColor=\"bg-btn-secondary\"\n defaultBackground=\"bg-btn-secondary\"\n defaultTextColor=\"text-primary\"\n hoverBackground=\"bg-btn-secondary-hover\"\n hoverBorderColor=\"bg-btn-secondary-hover\"\n hoverTextColor=\"text-primary\"\n disabledBackground=\"bg-btn-secondary\"\n disabledBorderColor=\"bg-btn-secondary\"\n disabledTextColor=\"text-disabled\"\n hoverShadow={null}\n font=\"body-3-bold\"\n pv=\"spacing-4\"\n ph=\"spacing-8\"\n loadingSpinnerSize=\"spacing-20\"\n iconGap=\"spacing-4\"\n {...rest}\n />\n );\n};\n","import React, { ElementType } from \"react\";\n\nimport {\n InternalShadowRectButton,\n InternalShadowRectButtonProps,\n} from \"@/components/internal-components/InternalShadowRectButton\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\n\nexport type OakSmallSecondaryButtonProps = Omit<\n InternalShadowRectButtonProps,\n | \"defaultBorderColor\"\n | \"defaultBackground\"\n | \"defaultTextColor\"\n | \"hoverBackground\"\n | \"hoverBorderColor\"\n | \"hoverTextColor\"\n | \"disabledBackground\"\n | \"disabledBorderColor\"\n | \"disabledTextColor\"\n | \"pv\"\n | \"ph\"\n | \"font\"\n>;\n\n/**\n *\n * A specific implementation of InternalRectButton\n *\n * The following callbacks are available for tracking focus events:\n *\n * ### onClick\n * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`\n *\n * ### onHovered\n * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n */\nexport const OakSmallSecondaryButton = <C extends ElementType = \"button\">({\n element,\n ...rest\n}: OakSmallSecondaryButtonProps & PolymorphicPropsWithoutRef<C>) => {\n return (\n <InternalShadowRectButton\n element={element ?? \"button\"}\n defaultBorderColor=\"text-primary\"\n defaultBackground=\"bg-btn-secondary\"\n defaultTextColor=\"text-primary\"\n hoverBackground=\"bg-btn-secondary-hover\"\n hoverBorderColor=\"text-primary\"\n hoverTextColor=\"text-primary\"\n disabledBackground=\"bg-btn-secondary-disabled\"\n disabledBorderColor=\"text-disabled\"\n disabledTextColor=\"text-disabled\"\n font=\"body-3-bold\"\n pv=\"spacing-4\"\n ph=\"spacing-8\"\n loadingSpinnerSize=\"spacing-24\"\n iconGap=\"spacing-4\"\n {...rest}\n />\n );\n};\n","import React, { ElementType } from \"react\";\n\nimport { OakIconName } from \"@/components/images-and-icons\";\nimport { OakSmallSecondaryButton } from \"@/components/buttons/OakSmallSecondaryButton\";\nimport { OakButtonWithDropdown } from \"@/components/buttons/OakButtonWithDropdown\";\nimport {\n OakSmallPrimaryInvertedButton,\n OakSmallPrimaryInvertedButtonProps,\n} from \"@/components/buttons/OakSmallPrimaryInvertedButton\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\n\nexport type OakSmallSecondaryButtonWithDropdownProps = {\n primaryActionText: string;\n primaryActionIcon?: OakIconName;\n onPrimaryAction?: () => void;\n children?: React.ReactNode;\n isLoading?: boolean;\n disabled?: boolean;\n ariaLabel?: string;\n leadingButtonIcon?: React.ReactNode;\n ariaDescription?: string;\n \"data-testid\"?: string;\n};\n\n/**\n * A secondary button that allows children to be passed in as a dropdown menu.\n *\n */\nexport const OakSmallSecondaryButtonWithDropdown = (\n props: OakSmallSecondaryButtonWithDropdownProps,\n) => {\n return (\n <OakButtonWithDropdown\n {...props}\n buttonComponent={OakSmallSecondaryButton}\n dropdownTopSpacing=\"spacing-40\"\n flexWidth={[\"100%\"]}\n />\n );\n};\n\nOakSmallSecondaryButtonWithDropdown.Divider = (): React.ReactElement => (\n <OakButtonWithDropdown.Divider />\n);\n\nOakSmallSecondaryButtonWithDropdown.Item = <C extends ElementType = \"button\">({\n children,\n element,\n ...rest\n}: {\n children: React.ReactNode;\n} & OakSmallPrimaryInvertedButtonProps &\n PolymorphicPropsWithoutRef<C>): React.ReactElement => (\n <OakSmallPrimaryInvertedButton\n element=\"a\"\n role=\"menuitem\"\n isTrailingIcon\n {...rest}\n >\n {children}\n </OakSmallPrimaryInvertedButton>\n);\n","import React, { ElementType } from \"react\";\n\nimport {\n InternalShadowRectButton,\n InternalShadowRectButtonProps,\n} from \"@/components/internal-components/InternalShadowRectButton\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\n\nexport type OakSmallSecondaryToggleButtonProps = Omit<\n InternalShadowRectButtonProps,\n | \"defaultBorderColor\"\n | \"defaultBackground\"\n | \"defaultTextColor\"\n | \"hoverBackground\"\n | \"hoverBorderColor\"\n | \"hoverTextColor\"\n | \"disabledBackground\"\n | \"disabledBorderColor\"\n | \"disabledTextColor\"\n | \"pv\"\n | \"ph\"\n | \"font\"\n> & {\n toggleOn?: boolean;\n};\n\n/**\n *\n * A specific implementation of InternalRectButton which can be displayed in two different states using the toggleOn prop\n *\n * This button does not manage its own state but could be adapted to do so at some point in the future\n *\n * The following callbacks are available for tracking focus events:\n *\n * ### onClick\n * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`\n *\n * ### onHovered\n * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n */\nexport const OakSmallSecondaryToggleButton = <\n C extends ElementType = \"button\",\n>({\n element,\n toggleOn,\n ...rest\n}: OakSmallSecondaryToggleButtonProps & PolymorphicPropsWithoutRef<C>) => {\n const defaultBorderColor = toggleOn ? \"bg-btn-primary\" : \"text-primary\";\n const defaultBackground = toggleOn ? \"bg-btn-primary\" : \"bg-btn-secondary\";\n const defaultTextColor = toggleOn ? \"text-inverted\" : \"text-primary\";\n const hoverBackground = toggleOn\n ? \"bg-btn-primary-hover\"\n : \"bg-btn-secondary-hover\";\n const hoverBorderColor = toggleOn ? \"bg-btn-primary-hover\" : \"text-primary\";\n const hoverTextColor = toggleOn ? \"text-inverted\" : \"text-primary\";\n const disabledBackground = toggleOn\n ? \"bg-btn-primary-disabled\"\n : \"bg-btn-secondary-disabled\";\n\n const disabledTextColor = toggleOn ? \"text-inverted\" : \"text-disabled\";\n\n return (\n <InternalShadowRectButton\n element={element ?? \"button\"}\n defaultBorderColor={defaultBorderColor}\n defaultBackground={defaultBackground}\n defaultTextColor={defaultTextColor}\n hoverBackground={hoverBackground}\n hoverBorderColor={hoverBorderColor}\n hoverTextColor={hoverTextColor}\n disabledBackground={disabledBackground}\n disabledBorderColor=\"text-disabled\"\n disabledTextColor={disabledTextColor}\n font=\"body-3-bold\"\n pv=\"spacing-4\"\n ph=\"spacing-8\"\n loadingSpinnerSize=\"spacing-20\"\n iconGap=\"spacing-4\"\n aria-pressed={toggleOn}\n {...rest}\n />\n );\n};\n","import React, { ElementType } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakRoundIconProps } from \"@/components/images-and-icons/OakRoundIcon\";\nimport { parseColorFilter } from \"@/styles/helpers/parseColorFilter\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport {\n InternalButton,\n InternalButtonProps,\n} from \"@/components/internal-components/InternalButton\";\nimport { OakIcon, OakIconName } from \"@/components/images-and-icons/OakIcon\";\nimport { OakLoadingSpinner } from \"@/components/messaging-and-feedback/OakLoadingSpinner\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport {\n PositionStyleProps,\n positionStyle,\n} from \"@/styles/utils/positionStyle\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { OakUiRoleToken } from \"@/styles\";\nimport { SizeStyleProps, sizeStyle } from \"@/styles/utils/sizeStyle\";\nimport { FlexStyleProps } from \"@/styles/utils/flexStyle\";\n\nexport type InternalShadowIconButtonProps = Omit<\n InternalButtonProps,\n | \"$pa\"\n | \"$ph\"\n | \"$pv\"\n | \"$ba\"\n | \"$borderRadius\"\n | \"$borderColor\"\n | \"$background\"\n | \"$color\"\n> & {\n iconName?: OakIconName;\n isTrailingIcon?: boolean;\n defaultTextColor: OakUiRoleToken;\n hoverTextColor: OakUiRoleToken;\n disabledTextColor: OakUiRoleToken;\n hoverIconColor?: OakUiRoleToken;\n defaultIconColor?: OakRoundIconProps[\"$colorFilter\"];\n disabledIconColor?: OakRoundIconProps[\"$colorFilter\"];\n width?: SizeStyleProps[\"$width\"];\n maxWidth?: SizeStyleProps[\"$maxWidth\"];\n} & PositionStyleProps &\n FlexStyleProps;\n\nconst StyledInternalButton = styled(InternalButton)<\n InternalShadowIconButtonProps & SizeStyleProps\n>`\n display: inline-block;\n ${positionStyle}\n ${sizeStyle}\n ${(props) => css`\n &:hover {\n text-decoration: underline;\n color: ${parseColor(props.$hoverTextColor)};\n\n &:not(:active) [data-icon-for=\"button\"] img {\n filter: ${props.$hoverIconColor\n ? parseColorFilter(props.$hoverIconColor)\n : undefined};\n }\n }\n &:active {\n color: ${parseColor(props.$defaultTextColor)};\n }\n &:disabled {\n color: ${parseColor(props.$disabledTextColor)};\n }\n `}\n`;\n\nconst StyledButtonWrapper = styled(OakFlex)`\n > :first-child:hover .highlight {\n display: block;\n }\n > :first-child:active .highlight {\n display: block;\n }\n > :first-child:active .shadow {\n display: block;\n }\n > :first-child:focus-visible {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n background: white;\n }\n`;\n\n/**\n *\n * A styled button with round icons, not intended to be used directly. \n * Instead used by OakSmallTertiaryInvertedButton.\n * \n * The following callbacks are available for tracking focus events:\n *\n * ### onClick\n * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`\n\n * ### onHovered\n * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n */\nexport const InternalShadowIconButton = <C extends ElementType = \"button\">(\n props: InternalShadowIconButtonProps & PolymorphicPropsWithoutRef<C>,\n) => {\n const {\n element = \"button\",\n children,\n iconName,\n isTrailingIcon,\n isLoading,\n disabled,\n width = \"max-content\",\n maxWidth,\n hoverIconColor,\n disabledTextColor,\n defaultIconColor,\n disabledIconColor,\n defaultTextColor,\n hoverTextColor,\n className,\n $justifyContent,\n ...rest\n } = props;\n\n const icon = iconName && (\n <OakBox $position=\"relative\">\n <OakIcon\n iconName={iconName}\n $width={\"spacing-24\"}\n $height={\"spacing-24\"}\n $colorFilter={props.disabled ? disabledIconColor : \"icon-subdued\"}\n $position=\"absolute\"\n $top=\"spacing-4\"\n $left=\"spacing-4\"\n $display=\"none\"\n className=\"shadow\"\n alt=\"\"\n />\n <OakIcon\n iconName={iconName}\n $width={\"spacing-24\"}\n $height={\"spacing-24\"}\n $colorFilter={props.disabled ? disabledIconColor : \"icon-promo\"}\n $position=\"absolute\"\n $display=\"none\"\n $top=\"spacing-2\"\n $left=\"spacing-2\"\n className=\"highlight\"\n alt=\"\"\n />\n <OakIcon\n iconName={iconName}\n $width={\"spacing-24\"}\n $height={\"spacing-24\"}\n $colorFilter={\n props.disabled\n ? disabledIconColor\n : defaultIconColor\n ? defaultIconColor\n : null\n }\n data-icon-for=\"button\"\n alt=\"\"\n />\n </OakBox>\n );\n const loader = (\n <OakBox $width={\"spacing-24\"} $height={\"spacing-24\"}>\n <OakLoadingSpinner $width={\"spacing-24\"} $color={\"text-disabled\"} />\n </OakBox>\n );\n\n const iconLogic = (isLoading || icon) && (\n <OakFlex\n className={\"icon-container\"}\n $background={props.defaultIconBackground}\n $color={props.defaultTextColor}\n $borderRadius={\"border-radius-circle\"}\n $position={\"relative\"}\n $alignItems={\"center\"}\n $justifyContent={\"center\"}\n >\n {isLoading && !disabled ? loader : icon}\n </OakFlex>\n );\n\n return (\n <StyledButtonWrapper\n className={className}\n $position={\"relative\"}\n $width={width}\n $maxWidth={maxWidth}\n $justifyContent={$justifyContent}\n >\n <StyledInternalButton\n element={element ?? \"button\"}\n {...rest}\n $hoverTextColor={hoverTextColor}\n $hoverIconColor={hoverIconColor}\n $defaultTextColor={defaultTextColor}\n $disabledTextColor={disabledTextColor}\n $color={defaultTextColor}\n $position={\"relative\"}\n $borderRadius=\"border-radius-s\"\n disabled={disabled || isLoading}\n >\n <OakFlex\n $flexDirection={\"row\"}\n $alignItems={\"center\"}\n $gap={children ? \"spacing-4\" : \"spacing-0\"}\n $justifyContent=\"center\"\n $pl={isTrailingIcon ? \"spacing-8\" : \"spacing-0\"}\n $pr={isTrailingIcon ? \"spacing-0\" : \"spacing-8\"}\n >\n {!isTrailingIcon && iconLogic}\n <OakSpan $font={\"heading-light-7\"}>{children}</OakSpan>\n {isTrailingIcon && iconLogic}\n </OakFlex>\n </StyledInternalButton>\n </StyledButtonWrapper>\n );\n};\n","import React, { ElementType } from \"react\";\n\nimport { OakRoundIconProps } from \"@/components/images-and-icons/OakRoundIcon\";\nimport {\n InternalShadowRoundButton,\n InternalShadowRoundButtonProps,\n} from \"@/components/internal-components/InternalShadowRoundButton\";\nimport { OakIconName } from \"@/components/images-and-icons/OakIcon\";\nimport { InternalButtonProps } from \"@/components/internal-components/InternalButton\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\n\ntype OakTertiaryButtonProps = InternalButtonProps & {\n iconBackground?: OakRoundIconProps[\"$background\"];\n iconColorFilter?: OakRoundIconProps[\"$colorFilter\"];\n isTrailingIcon?: boolean;\n iconName?: OakIconName;\n};\n\n/**\n * An implementation of InternalShadowRoundButton, its a subtle button with no border and a round icon.\n *\n */\nexport const OakTertiaryButton = <C extends ElementType = \"button\">({\n element,\n isTrailingIcon,\n iconName,\n children,\n ...props\n}: OakTertiaryButtonProps &\n Partial<InternalShadowRoundButtonProps> &\n PolymorphicPropsWithoutRef<C>) => {\n return (\n <InternalShadowRoundButton\n element={element ?? \"button\"}\n {...props}\n isTrailingIcon={isTrailingIcon}\n iconName={iconName}\n defaultIconColor={\"icon-inverted\"}\n disabledIconColor=\"icon-inverted\"\n disabledIconBackground=\"bg-btn-primary-disabled\"\n defaultIconBackground=\"icon-primary\"\n hoverIconBackground=\"bg-btn-primary-hover\"\n defaultTextColor=\"text-primary\"\n hoverTextColor=\"bg-btn-primary-hover\"\n disabledTextColor=\"text-disabled\"\n iconBackgroundSize={\"spacing-32\"}\n iconSize={\"spacing-24\"}\n >\n {children}\n </InternalShadowRoundButton>\n );\n};\n","import React, { ElementType } from \"react\";\n\nimport { OakRoundIconProps } from \"@/components/images-and-icons/OakRoundIcon\";\nimport { InternalShadowRoundButton } from \"@/components/internal-components/InternalShadowRoundButton\";\nimport { OakIconName } from \"@/components/images-and-icons/OakIcon\";\nimport { InternalButtonProps } from \"@/components/internal-components/InternalButton\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\n\ntype OakTertiaryInvertedButtonProps = InternalButtonProps & {\n iconBackground?: OakRoundIconProps[\"$background\"];\n iconColorFilter?: OakRoundIconProps[\"$colorFilter\"];\n isTrailingIcon?: boolean;\n iconName?: OakIconName;\n};\n\n/**\n * An implementation of InternalShadowRoundButton, its a subtle button with no border and a round icon.\n *\n */\nexport const OakTertiaryInvertedButton = <C extends ElementType = \"button\">({\n element,\n isTrailingIcon,\n iconName,\n children,\n ...props\n}: OakTertiaryInvertedButtonProps & PolymorphicPropsWithoutRef<C>) => {\n return (\n <InternalShadowRoundButton\n element={element ?? \"button\"}\n {...props}\n isTrailingIcon={isTrailingIcon}\n iconName={iconName}\n defaultIconColor={\"text-primary\"}\n disabledIconColor=\"icon-disabled\"\n disabledIconBackground=\"bg-btn-secondary-disabled\"\n defaultIconBackground=\"bg-btn-secondary\"\n defaultIconBorderColor=\"bg-btn-primary\"\n disabledIconBorderColor=\"border-neutral\"\n hoverIconBackground=\"bg-btn-secondary\"\n defaultTextColor=\"text-primary\"\n hoverTextColor=\"text-subdued\"\n disabledTextColor=\"text-disabled\"\n iconBackgroundSize={\"spacing-32\"}\n iconSize={\"spacing-24\"}\n >\n {children}\n </InternalShadowRoundButton>\n );\n};\n","import React, { ElementType, ReactNode } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { InternalShadowRectButtonProps } from \"@/components/internal-components/InternalShadowRectButton\";\nimport { OakBox, OakBoxProps } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { OakSvg } from \"@/components/images-and-icons/OakSvg\";\nimport { InternalButton } from \"@/components/internal-components/InternalButton\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { OakLoadingSpinner } from \"@/components/messaging-and-feedback/OakLoadingSpinner\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { positionStyle } from \"@/styles/utils/positionStyle\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { OakUiRoleToken } from \"@/styles\";\nimport { SizeStyleProps, sizeStyle } from \"@/styles/utils/sizeStyle\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\n\nexport type OakLeftAlignedButtonProps = Omit<\n InternalShadowRectButtonProps,\n | \"defaultBorderColor\"\n | \"defaultBackground\"\n | \"defaultTextColor\"\n | \"hoverBackground\"\n | \"hoverBorderColor\"\n | \"hoverTextColor\"\n | \"disabledBackground\"\n | \"disabledBorderColor\"\n | \"disabledTextColor\"\n> & {\n /**\n * Whether to align the icon to the right with space-between justification\n */\n rightAlignIcon?: boolean;\n};\n\nconst StyledInternalButton = styled(InternalButton)<\n SizeStyleProps & {\n $defaultTextColor: OakUiRoleToken;\n $defaultBackground: OakUiRoleToken;\n $defaultBorderColor: OakUiRoleToken;\n $hoverTextColor: OakUiRoleToken;\n $hoverBackground: OakUiRoleToken;\n $hoverBorderColor: OakUiRoleToken;\n $disabledBackground: OakUiRoleToken;\n $disabledBorderColor: OakUiRoleToken;\n $disabledTextColor: OakUiRoleToken;\n }\n>`\n ${positionStyle}\n ${sizeStyle}\n display: inline-block;\n ${(props) => css`\n &:hover {\n color: ${parseColor(props.$hoverTextColor)};\n background: ${parseColor(props.$hoverBackground)};\n border-color: ${parseColor(props.$hoverBorderColor)};\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:active {\n background: ${parseColor(props.$defaultBackground)};\n border-color: ${parseColor(props.$defaultBorderColor)};\n color: ${parseColor(props.$defaultTextColor)};\n [data-state=\"selected\"] {\n display: none;\n }\n }\n &:disabled {\n background: ${parseColor(props.$disabledBackground)};\n border-color: ${parseColor(props.$disabledBorderColor)};\n color: ${parseColor(props.$disabledTextColor)};\n [data-state=\"selected\"] {\n display: none;\n }\n }\n `}\n`;\n\nconst StyledOakSvg = styled(OakSvg)`\n bottom: -3px;\n left: 0px;\n position: absolute;\n height: 5px;\n color: ${parseColor(\"border-decorative1\")};\n`;\n\nconst StyledButtonWrapper = styled(OakBox)<OakBoxProps>`\n .grey-shadow:has(+ * + .internal-button:focus-visible) {\n box-shadow: ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n .yellow-shadow:has(+ .internal-button:focus-visible) {\n box-shadow: ${parseDropShadow(\"drop-shadow-centered-lemon\")};\n }\n .yellow-shadow:has(+ .internal-button:hover),\n .grey-shadow:has(+ * + .internal-button:hover) {\n box-shadow: none;\n }\n .grey-shadow:has(+ * + .internal-button:active) {\n box-shadow: ${parseDropShadow(\"drop-shadow-grey\")};\n }\n`;\n\n/**\n * A left-aligned button styled similarly to OakSmallPrimaryInvertedButton\n * with configurable icon alignment.\n *\n * The following callbacks are available for tracking focus events:\n *\n * ### onClick\n * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`\n *\n * ### onHovered\n * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`\n * called after a mouseEnter and mouseLeave event has happened\n */\nexport const OakLeftAlignedButton = <C extends ElementType = \"button\">(\n props: OakLeftAlignedButtonProps & PolymorphicPropsWithoutRef<C>,\n) => {\n const {\n element = \"button\",\n children,\n iconName,\n isTrailingIcon,\n isLoading,\n disabled,\n width = \"max-content\",\n height = \"auto\",\n maxWidth,\n innerWidth,\n className,\n selected,\n rightAlignIcon = false,\n ...rest\n } = props;\n\n const icon = iconName && (\n <OakIcon\n iconName={iconName}\n $width={\"spacing-24\"}\n $height={\"spacing-24\"}\n $colorFilter={disabled ? \"text-disabled\" : \"text-primary\"}\n />\n );\n\n const loader = (\n <OakBox $width={\"spacing-20\"} $height={\"spacing-20\"}>\n <OakLoadingSpinner $width={\"spacing-20\"} />\n </OakBox>\n );\n\n const iconLogic = isLoading && !disabled ? loader : icon;\n\n // If the icon should be rightAligned, it must be trailing\n const shouldTrailIcon = isTrailingIcon || rightAlignIcon;\n return (\n <StyledButtonWrapper\n className={className}\n $position={\"relative\"}\n $width={width}\n $height={height}\n $maxWidth={maxWidth}\n >\n <OakBox\n className=\"grey-shadow\"\n $position={\"absolute\"}\n $borderRadius={\"border-radius-s\"}\n $width={\"100%\"}\n $height={\"100%\"}\n $top=\"spacing-0\"\n />\n <OakBox\n className=\"yellow-shadow\"\n $position={\"absolute\"}\n $borderRadius={\"border-radius-s\"}\n $width={\"100%\"}\n $height={\"100%\"}\n $top=\"spacing-0\"\n />\n <StyledInternalButton\n element={element}\n className=\"internal-button\"\n $ba={\"border-solid-m\"}\n $background={\"bg-btn-secondary\"}\n $borderColor={\"bg-btn-secondary\"}\n $color={\"text-primary\"}\n $pv={\"spacing-4\"}\n $ph={\"spacing-8\"}\n $borderRadius={\"border-radius-s\"}\n $position={\"relative\"}\n disabled={disabled || isLoading}\n $width={\"100%\"}\n $height={\"100%\"}\n $hoverTextColor={\"text-primary\"}\n $hoverBackground={\"bg-btn-secondary-hover\"}\n $hoverBorderColor={\"bg-btn-secondary-hover\"}\n $defaultTextColor={\"text-primary\"}\n $defaultBackground={\"bg-btn-secondary\"}\n $defaultBorderColor={\"bg-btn-secondary\"}\n $disabledTextColor={\"text-disabled\"}\n $disabledBackground={\"bg-btn-secondary\"}\n $disabledBorderColor={\"bg-btn-secondary\"}\n {...rest}\n >\n <OakFlex\n data-testid={\"left-aligned-btn-flex-container\"}\n $flexDirection={\"row\"}\n $alignItems={\"center\"}\n $gap={\"spacing-8\"}\n $justifyContent={rightAlignIcon ? \"space-between\" : \"start\"}\n $width={innerWidth}\n >\n {!shouldTrailIcon && iconLogic}\n {selected ? (\n <TextWithUnderline>{children}</TextWithUnderline>\n ) : (\n <OakSpan $font={\"body-3-bold\"} $textAlign={\"left\"}>\n {children}\n </OakSpan>\n )}\n {shouldTrailIcon && iconLogic}\n </OakFlex>\n </StyledInternalButton>\n </StyledButtonWrapper>\n );\n};\n\nconst TextWithUnderline = ({ children }: { children: ReactNode }) => (\n <OakBox $position={\"relative\"} $textAlign={\"left\"}>\n <OakSpan $font={\"body-3-bold\"}>{children}</OakSpan>\n <StyledOakSvg\n name=\"underline\"\n data-state=\"selected\"\n data-testid=\"selected-underline\"\n />\n </OakBox>\n);\n","import React, { FC } from \"react\";\nimport styled from \"styled-components\";\n\nimport { ColorStyleProps, colorStyle } from \"@/styles/utils/colorStyle\";\nimport { MarginStyleProps, marginStyle } from \"@/styles/utils/spacingStyle\";\nimport { OpacityStyleProps, opacityStyle } from \"@/styles/utils/opacityStyle\";\nimport {\n TypographyStyleProps,\n typographyStyle,\n} from \"@/styles/utils/typographyStyle\";\n\nconst oakHeadingTagsConst = [\n \"div\",\n \"h1\",\n \"h2\",\n \"h3\",\n \"h4\",\n \"h5\",\n \"h6\",\n] as const;\n\nexport type OakHeadingTag = (typeof oakHeadingTagsConst)[number];\n\nexport const oakHeadingTags = [...oakHeadingTagsConst];\n\ntype OakHeadingTagProps = {\n children?: React.ReactNode;\n id?: string;\n /**\n * HTML tag to be used for the heading\n *\n * Accepts a heading tag token\n */\n tag: OakHeadingTag;\n ariaLabel?: string;\n ariaHidden?: boolean;\n};\n\nexport const HeadingTagComponent: FC<OakHeadingTagProps> = (props) => {\n const { tag, ariaLabel, ariaHidden, ...otherProps } = props;\n const Tag = tag;\n return (\n <Tag {...otherProps} aria-label={ariaLabel} aria-hidden={ariaHidden} />\n );\n};\n\nexport type OakHeadingProps = TypographyStyleProps &\n OakHeadingTagProps &\n ColorStyleProps &\n OpacityStyleProps &\n MarginStyleProps;\n\n/**\n *\n * OakHeading can be one of the following style tags dependant on its role: \"div\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\".\n * Use the controls to view different font styles.\n *\n */\nexport const OakHeading = styled(HeadingTagComponent)<OakHeadingProps>`\n ${typographyStyle}\n ${marginStyle}\n ${colorStyle}\n ${opacityStyle}\n`;\n","import { CSSProperties, css } from \"styled-components\";\n\nimport {\n ResponsiveValues,\n responsiveStyle,\n} from \"@/styles/utils/responsiveStyle\";\n\nexport type ListStyleProps = {\n /**\n * Sets the `list-style` CSS property of the element.\n *\n * Accepts a `list-style` value or a responsive array of `list-style` values.\n */\n $listStyle?: ResponsiveValues<CSSProperties[\"listStyle\"]>;\n};\n\nexport const listStyle = css<ListStyleProps>`\n ${responsiveStyle(\"list-style\", (props) => props.$listStyle)}\n`;\n","import styled from \"styled-components\";\n\nimport { oakBoxCss } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlexProps } from \"@/components/layout-and-structure/OakFlex\";\nimport { DisplayStyleProps, displayStyle } from \"@/styles/utils/displayStyle\";\nimport { ListStyleProps, listStyle } from \"@/styles/utils/listStyle\";\nimport {\n TypographyStyleProps,\n typographyStyle,\n} from \"@/styles/utils/typographyStyle\";\nimport { flexStyle } from \"@/styles/utils/flexStyle\";\n\nexport type OakLIProps = OakFlexProps &\n TypographyStyleProps &\n ListStyleProps &\n DisplayStyleProps;\n\n/**\n * Styled `li` (list item) component.\n *\n * ## Usage\n *\n * Places where we directly want to style a list item\n *\n **/\nexport const oakLIDefaults = {\n $display: \"revert\",\n} satisfies Partial<OakLIProps>;\n\nexport const OakLI = styled.li.attrs<OakLIProps>((props) => ({\n ...oakLIDefaults,\n ...props,\n}))<OakLIProps>`\n ${oakBoxCss}\n ${typographyStyle}\n ${listStyle}\n ${displayStyle}\n // FIXME - Flex props will only work when display is set to flex, can we conditionally apply this + props above ?\n ${flexStyle}\n`;\n","import styled from \"styled-components\";\n\nimport { colorStyle, ColorStyleProps } from \"@/styles/utils/colorStyle\";\nimport { marginStyle, MarginStyleProps } from \"@/styles/utils/spacingStyle\";\nimport {\n typographyStyle,\n TypographyStyleProps,\n} from \"@/styles/utils/typographyStyle\";\n\nexport type OakOLProps = MarginStyleProps &\n ColorStyleProps &\n TypographyStyleProps;\n\n/**\n * Styled `ol` (ordered list) component.\n *\n * ## Usage\n *\n * Use where we have an ordered list to ensure numbers are styled\n *\n * */\nexport const OakOL = styled.ol<OakOLProps>`\n counter-reset: item;\n padding: 0;\n\n li {\n display: block;\n counter-increment: item;\n margin: 0;\n padding: 0 0 0 16px;\n text-indent: -16px;\n list-style-type: none;\n line-height: 32px;\n\n // Portable text generates linebreaks within list items\n\n br {\n content: \"\";\n display: block;\n margin-top: 8px;\n }\n }\n\n & li::before {\n padding-right: 4px;\n content: counter(item) \".\";\n }\n a {\n color: ${(props) =>\n props.theme &&\n props.theme.uiColors &&\n props.theme.uiColors[\"text-link-active\"]};\n }\n ${marginStyle}\n ${colorStyle}\n ${typographyStyle}\n`;\n","import styled from \"styled-components\";\n\nimport { colorStyle, ColorStyleProps } from \"@/styles/utils/colorStyle\";\nimport { marginStyle, MarginStyleProps } from \"@/styles/utils/spacingStyle\";\nimport {\n typographyStyle,\n TypographyStyleProps,\n} from \"@/styles/utils/typographyStyle\";\n\nexport type OakPProps = MarginStyleProps &\n TypographyStyleProps &\n ColorStyleProps;\n\n/**\n * Styled `p` (paragraph) component.\n * ## Usage\n * In general, using a `p` as a descendant of `<Body>` should suffice.\n * However, if you want different styles for a particular paragraph,\n * you can use this component to apply additional styles.\n */\nexport const OakP = styled.p<OakPProps>`\n ${typographyStyle}\n ${colorStyle}\n ${marginStyle}\n`;\n","import styled from \"styled-components\";\n\nimport {\n typographyStyle,\n TypographyStyleProps,\n} from \"@/styles/utils/typographyStyle\";\nimport { OakBox, OakBoxProps } from \"@/components/layout-and-structure/OakBox\";\n\nexport type OakTypographyProps = OakBoxProps & TypographyStyleProps;\n\n/**\n * The Typography component sets a typography style context from which children\n * inherit style properties through the cascade.\n * ## Usage\n * This should be the primary component to set a typography context.\n * Use this component whenever you want to style blocks of 'body' text.\n */\nexport const OakTypography = styled(OakBox)<OakTypographyProps>`\n ${typographyStyle}\n`;\n","import styled, { css } from \"styled-components\";\n\nimport {\n oakFlexCss,\n OakFlexProps,\n} from \"@/components/layout-and-structure/OakFlex\";\nimport {\n OakBoxProps,\n oakBoxCss,\n} from \"@/components/layout-and-structure/OakBox\";\n\nexport type OakULProps = OakBoxProps &\n OakFlexProps & {\n $reset?: boolean;\n };\n\n/**\n * Styled `ul` (unordered list) component.\n *\n * ## Usage\n *\n * Resets browser spacing and other styles, accepts BoxProps' style props.\n *\n * */\n\nexport const OakUL = styled.ul<OakULProps>`\n ${(props) =>\n props.$reset &&\n css`\n list-style: none;\n padding: 0;\n `}\n margin: 0;\n display: block;\n ${oakBoxCss}\n ${(props) => props.$display && oakFlexCss}\n`;\n","import { OakUiRoleToken } from \"@/styles\";\nimport { OakTextDecoration } from \"@/styles/theme/typography\";\n\nexport type Variant = \"primary\" | \"secondary\";\n\nexport type VariantConfig = {\n color: OakUiRoleToken;\n hoverColor: OakUiRoleToken;\n activeColor: OakUiRoleToken;\n visitedColor: OakUiRoleToken;\n textDecoration?: OakTextDecoration;\n};\n\nexport const variantConfig: Record<Variant, VariantConfig> = {\n primary: {\n color: \"text-link-active\",\n hoverColor: \"text-link-hover\",\n activeColor: \"text-link-pressed\",\n visitedColor: \"text-link-visited\",\n textDecoration: \"underline\",\n },\n secondary: {\n color: \"text-primary\",\n hoverColor: \"text-primary\",\n activeColor: \"text-primary\",\n visitedColor: \"text-primary\",\n textDecoration: \"none\",\n },\n};\n","import React, { ElementType, forwardRef } from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakLoadingSpinner } from \"@/components/messaging-and-feedback/OakLoadingSpinner\";\nimport {\n PolymorphicPropsWithRef,\n PolymorphicRef,\n} from \"@/components/polymorphic\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { parseBorderRadius } from \"@/styles/helpers/parseBorderRadius\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakIcon, OakIconProps } from \"@/components/images-and-icons/OakIcon\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { parseColorFilter } from \"@/styles/helpers/parseColorFilter\";\nimport { OakUiRoleToken } from \"@/styles\";\nimport { OakFontToken, OakTextDecoration } from \"@/styles/theme/typography\";\nimport { typographyStyle } from \"@/styles/utils/typographyStyle\";\n\nconst StyledOakIcon = styled(OakIcon)`\n width: 1.25em;\n min-width: 1.25em;\n height: 1.25em;\n min-height: 1.25em;\n`;\n\nconst StyledOakLoadingSpinner = styled(OakLoadingSpinner)`\n --width: 1.25em;\n`;\n\nconst StyledLink = styled.a<{\n $color: OakUiRoleToken;\n $visitedColor: OakUiRoleToken;\n $hoverColor: OakUiRoleToken;\n $activeColor: OakUiRoleToken;\n $disabledColor: OakUiRoleToken;\n $textDecoration: OakTextDecoration;\n $font?: OakFontToken;\n}>`\n display: inline;\n align-items: center;\n gap: ${parseSpacing(\"spacing-4\")};\n outline: none;\n border-radius: ${parseBorderRadius(\"border-radius-m\")};\n padding: ${parseSpacing(\"spacing-4\")};\n margin: -${parseSpacing(\"spacing-4\")};\n appearance: none;\n ${(props) => (props.$font ? typographyStyle : \"font: inherit;\")}\n background: none;\n border: none;\n text-decoration: ${(props) => props.$textDecoration};\n cursor: pointer;\n color: ${(props) => parseColor(props.$color)};\n overflow-wrap: break-word;\n\n ${StyledOakIcon} {\n filter: ${(props) => parseColorFilter(props.$color)};\n display: inline-block;\n vertical-align: text-top;\n }\n\n &:focus-visible {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n\n &:visited {\n color: ${(props) => parseColor(props.$visitedColor)};\n\n ${StyledOakIcon} {\n filter: ${(props) => parseColorFilter(props.$visitedColor)};\n }\n }\n\n @media (hover: hover) {\n &:hover,\n &:visited:hover {\n color: ${(props) => parseColor(props.$hoverColor)};\n ${StyledOakIcon} {\n filter: ${(props) => parseColorFilter(props.$hoverColor)};\n }\n text-decoration: underline;\n text-decoration-thickness: 18%;\n }\n }\n\n &:active {\n color: ${(props) => parseColor(props.$activeColor)};\n outline: 1px solid ${(props) => parseColor(props.$activeColor)};\n ${StyledOakIcon} {\n filter: ${(props) => parseColorFilter(props.$activeColor)};\n }\n }\n\n &[disabled] {\n cursor: not-allowed;\n color: ${(props) => parseColor(props.$disabledColor)};\n\n ${StyledOakIcon} {\n filter: ${(props) => parseColorFilter(props.$disabledColor)};\n }\n }\n`;\n\nexport type InternalLinkProps = {\n /**\n * The icon to display before or after the children.\n */\n iconName?: OakIconProps[\"iconName\"];\n /**\n * Whether the icon should be displayed after the children.\n */\n isTrailingIcon?: boolean;\n /**\n * Displays a loading spinner in place of the icon.\n */\n isLoading?: boolean;\n color: OakUiRoleToken;\n visitedColor: OakUiRoleToken;\n hoverColor: OakUiRoleToken;\n activeColor: OakUiRoleToken;\n disabledColor: OakUiRoleToken;\n textDecoration?: OakTextDecoration;\n};\n\ntype InternalLinkComponent = <C extends React.ElementType = \"a\">(\n props: PolymorphicPropsWithRef<C> & InternalLinkProps,\n) => React.ReactNode;\n\n/**\n * A link with an optional icon and loading state.\n *\n * Defaulting to a `HTMLAnchorElement` this component is polymorphic and can be rendered as a button or any other element.\n */\nexport const InternalLink: InternalLinkComponent = forwardRef(\n <C extends ElementType = \"a\">(\n props: PolymorphicPropsWithRef<C> & InternalLinkProps,\n ref: PolymorphicRef<C>,\n ) => {\n const {\n element = \"a\",\n iconName,\n isTrailingIcon,\n children,\n isLoading,\n color,\n disabledColor,\n visitedColor,\n hoverColor,\n activeColor,\n textDecoration = \"underline\",\n ...rest\n } = props;\n\n const icon = (() => {\n switch (true) {\n case isLoading:\n return (\n <OakBox\n $pl={isTrailingIcon ? \"spacing-4\" : undefined}\n $pr={isTrailingIcon ? undefined : \"spacing-4\"}\n $display={\"inline-block\"}\n >\n <StyledOakLoadingSpinner $color=\"icon-primary\" />\n </OakBox>\n );\n case !!iconName:\n return (\n <OakBox\n $pl={isTrailingIcon ? \"spacing-4\" : undefined}\n $pr={isTrailingIcon ? undefined : \"spacing-4\"}\n $display={\"inline-block\"}\n >\n <StyledOakIcon iconName={iconName} />\n </OakBox>\n );\n default:\n return null;\n }\n })();\n const disabled = (() => {\n switch (true) {\n case \"disabled\" in rest:\n return rest.disabled;\n case isLoading:\n return true;\n default:\n return undefined;\n }\n })();\n\n return (\n <StyledLink\n as={element}\n ref={ref}\n disabled={disabled}\n $color={color}\n $disabledColor={disabledColor}\n $visitedColor={visitedColor}\n $hoverColor={hoverColor}\n $activeColor={activeColor}\n $textDecoration={textDecoration}\n {...rest}\n >\n {!isTrailingIcon && icon}\n <OakSpan>{children}</OakSpan>\n {isTrailingIcon && icon}\n </StyledLink>\n );\n },\n);\n","import React, { ElementType, forwardRef } from \"react\";\n\nimport { Variant, variantConfig } from \"./config\";\n\nimport {\n InternalLink,\n InternalLinkProps,\n} from \"@/components/internal-components/InternalLink\";\nimport {\n PolymorphicPropsWithRef,\n PolymorphicRef,\n} from \"@/components/polymorphic\";\nimport { TypographyStyleProps } from \"@/styles/utils/typographyStyle\";\n\nexport type OakLinkProps = Pick<\n InternalLinkProps,\n \"iconName\" | \"isTrailingIcon\" | \"isLoading\"\n> & {\n /**\n * Style variant of the OakLink component: \"primary\" | \"secondary\"\n *\n * @default \"primary\"\n */\n variant?: Variant;\n} & Pick<TypographyStyleProps, \"$font\">;\n\ntype OakLinkComponent = <C extends React.ElementType = \"a\">(\n props: PolymorphicPropsWithRef<C> & OakLinkProps,\n) => React.ReactNode;\n\n/**\n * A link with an optional icon and loading state.\n *\n * Defaulting to a `HTMLAnchorElement` this component is polymorphic and can be rendered as a button or any other element.\n */\nexport const OakLink: OakLinkComponent = forwardRef(\n <C extends ElementType = \"a\">(\n props: PolymorphicPropsWithRef<C> & OakLinkProps,\n ref: PolymorphicRef<C>,\n ) => {\n const { variant = \"primary\" } = props;\n const variantDefinition = variantConfig[variant];\n\n return (\n <InternalLink\n color={variantDefinition.color}\n hoverColor={variantDefinition.hoverColor}\n activeColor={variantDefinition.activeColor}\n visitedColor={variantDefinition.visitedColor}\n textDecoration={variantDefinition.textDecoration}\n disabledColor={\"text-disabled\"}\n {...props}\n ref={ref}\n />\n );\n },\n);\n","import React from \"react\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakSpan } from \"@/components/typography\";\nimport { OakPrimaryButton } from \"@/components/buttons/OakPrimaryButton\";\nimport { OakSecondaryButton } from \"@/components/buttons/OakSecondaryButton\";\nimport { OakAllSpacingToken } from \"@/styles\";\nimport { ResponsiveValues } from \"@/styles/utils/responsiveStyle\";\nimport { OakLink } from \"@/components/navigation/OakLink\";\n\nexport type OakCookieBannerProps = {\n /**\n * Triggered when the user clicks the \"Hide this message\" button.\n */\n onHide(): void;\n /**\n * Triggered when the user clicks the \"Accept all cookies\" button.\n */\n onAccept(): void;\n /**\n * Triggered when the user clicks the \"Reject non-essential cookies\" button.\n */\n onReject(): void;\n /**\n * Triggered when the user clicks the \"Cookie settings\" button.\n */\n onOpenSettings(): void;\n /**\n * The banner is intended to span the full width of the viewport.\n * this prop will set the maximum width of the inner content so that\n * it can line up with the rest of the content on the page.\n **/\n innerMaxWidth?: ResponsiveValues<OakAllSpacingToken>;\n /**\n * The current state of the cookie banner.\n *\n * - `initial` - The user has not made any choices.\n * - `accepted` - The user has accepted all cookies.\n * - `rejected` - The user has rejected non-essential cookies.\n */\n state: \"accepted\" | \"rejected\" | \"initial\";\n /**\n * Whether the banner should be fixed to the bottom of the viewport.\n *\n * @default false\n */\n isFixed?: boolean;\n /**\n * Optional z-index override of the banner.\n *\n * Defaults to token: `banner`\n *\n * 🚨 This prop is intended for use by consumers that do not use\n * the internal system of z-index tokens.\n */\n zIndex?: number;\n};\n\n/**\n * A banner presenting the user with options to accept or reject cookies.\n */\nexport const OakCookieBanner = ({\n state,\n innerMaxWidth,\n onOpenSettings,\n onHide,\n onAccept,\n onReject,\n isFixed = false,\n zIndex,\n}: OakCookieBannerProps) => {\n const finalZIndex = (() => {\n if (typeof zIndex === \"number\") {\n return zIndex;\n }\n if (isFixed) {\n return \"banner\";\n }\n })();\n\n return (\n <OakBox\n $background=\"bg-neutral\"\n $bt=\"border-solid-s\"\n $borderColor=\"border-neutral\"\n $position={isFixed ? \"fixed\" : undefined}\n $bottom={isFixed ? \"spacing-0\" : undefined}\n $right={isFixed ? \"spacing-0\" : undefined}\n $left={isFixed ? \"spacing-0\" : undefined}\n $zIndex={finalZIndex}\n $color=\"text-primary\"\n data-testid=\"cookie-banner\"\n >\n <OakBox $maxWidth={innerMaxWidth} $mh=\"auto\">\n <OakFlex\n $alignItems={[\"flex-start\", \"flex-start\", \"center\"]}\n $flexDirection={[\"column\", \"column\", \"row\"]}\n $mh={[\"spacing-16\", \"spacing-24\", \"spacing-56\"]}\n $pv=\"spacing-24\"\n $gap={[\"spacing-24\", \"spacing-24\", \"spacing-32\"]}\n >\n {(() => {\n switch (state) {\n case \"accepted\":\n case \"rejected\":\n return (\n <>\n <OakBox $font={[\"body-3\", \"body-2\", \"heading-light-7\"]}>\n You've{\" \"}\n <OakSpan\n as=\"strong\"\n $font={[\"body-3-bold\", \"body-2-bold\", \"heading-7\"]}\n >\n {state}\n </OakSpan>{\" \"}\n additional cookies. You can{\" \"}\n <OakLink\n variant=\"secondary\"\n element=\"button\"\n onClick={onOpenSettings}\n >\n change your cookie settings\n </OakLink>{\" \"}\n at any time.\n </OakBox>\n <OakFlex $justifyContent=\"flex-end\" $flexGrow={1}>\n <OakSecondaryButton onClick={onHide}>\n Hide this message\n </OakSecondaryButton>\n </OakFlex>\n </>\n );\n default:\n return (\n <>\n <OakBox $font={[\"body-3\", \"body-2\"]}>\n <OakSpan\n as=\"strong\"\n $font={[\"body-3-bold\", \"body-2-bold\"]}\n >\n This site uses cookies to store information on your\n computer.\n </OakSpan>{\" \"}\n Some of these cookies are essential, while others help us\n to improve your experience by providing insights into how\n the site is being used.\n </OakBox>\n <OakFlex\n $gap={[\"spacing-12\", \"spacing-32\"]}\n $justifyContent=\"flex-end\"\n $flexDirection={[\"column\", \"row\"]}\n $flexWrap={[\"wrap\", \"wrap\", \"nowrap\"]}\n $flexGrow={1}\n >\n <OakFlex $whiteSpace=\"nowrap\" $alignItems=\"center\">\n <OakLink\n variant=\"secondary\"\n $font={\"heading-7\"}\n element=\"button\"\n type=\"button\"\n onClick={onReject}\n data-testid=\"cookie-banner-reject\"\n >\n Reject non-essential cookies\n </OakLink>\n </OakFlex>\n <OakSecondaryButton onClick={onOpenSettings}>\n Cookie settings\n </OakSecondaryButton>\n <OakPrimaryButton\n onClick={onAccept}\n data-testid=\"cookie-banner-accept\"\n >\n Accept all cookies\n </OakPrimaryButton>\n </OakFlex>\n </>\n );\n }\n })()}\n </OakFlex>\n </OakBox>\n </OakBox>\n );\n};\n","import React, { createContext, FC, useState } from \"react\";\n\ntype AccordionContext = {\n isOpen: boolean;\n setOpen: (value: boolean) => void;\n isInitialOpen?: boolean;\n};\n\nexport const accordionContext = createContext<AccordionContext | null>(null);\n/**\n *\n * Decomposed component comprising InternalAccordionButton and InternalAccordionContent wrapped by InternalAccordionProvider\n *\n * - InternalAccordionButton will toggle InternalAccordionContent visibility\n * - It is up to the user to arrange the InternalAccordionButton and InternalAccordionContent components in the desired order\n *\n */\n\nexport const InternalAccordionProvider: FC<{\n isInitialOpen: boolean;\n children?: React.ReactNode;\n}> = ({ children, isInitialOpen }) => {\n const [isOpen, setOpen] = useState(isInitialOpen);\n\n const accordionValue: AccordionContext = {\n isOpen,\n setOpen,\n isInitialOpen: false,\n };\n\n return (\n <accordionContext.Provider value={accordionValue}>\n {children}\n </accordionContext.Provider>\n );\n};\n\nexport default InternalAccordionProvider;\n","import { useContext } from \"react\";\n\nimport { accordionContext } from \"./InternalAccordionProvider\";\n\nconst useAccordionContext = () => {\n const accordionValue = useContext(accordionContext);\n\n if (!accordionValue) {\n throw new Error(\"useAccordionContext() called outside of menu provider\");\n }\n\n return accordionValue;\n};\n\nexport default useAccordionContext;\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport useAccordionContext from \"./useAccordionContext\";\n\nimport {\n OakFlex,\n OakFlexProps,\n} from \"@/components/layout-and-structure/OakFlex\";\nimport { OakBox, OakBoxProps } from \"@/components/layout-and-structure/OakBox\";\n\nconst FlexWithReset = styled(OakFlex)`\n font: inherit;\n color: inherit;\n border: none;\n background: none;\n appearance: none;\n outline: none;\n padding: 0;\n`;\n\n/**\n *\n * Content which will appear and disappear\n *\n * Must appear as a sibling of InternalAccordionButton\n *\n */\n\nexport const InternalAccordionContent = ({\n children,\n onScroll,\n ref,\n ...rest\n}: OakBoxProps & {\n \"aria-labelledby\": string;\n onScroll?: () => void;\n ref?: React.MutableRefObject<null | HTMLDivElement>;\n}) => {\n const { isOpen } = useAccordionContext();\n\n return (\n <OakBox\n hidden={!isOpen}\n role=\"region\"\n {...rest}\n onScroll={onScroll}\n ref={ref}\n >\n {children}\n </OakBox>\n );\n};\n\n/**\n *\n * User interface to toggle visibility of InternalAccordionContent\n *\n * Must appear as a sibling of InternalAccordionContent\n *\n */\n\nconst AccordionButton = (props: { id: string } & OakFlexProps) => {\n const { children, id, ...rest } = props;\n const { isOpen, setOpen } = useAccordionContext();\n\n return (\n <FlexWithReset\n as=\"button\"\n type=\"button\"\n onClick={() => setOpen(!isOpen)}\n $flexGrow={1}\n aria-expanded={isOpen}\n id={id}\n {...rest}\n >\n {children}\n </FlexWithReset>\n );\n};\n\nexport const InternalAccordionButton = styled(AccordionButton)``;\n","import React, { ReactNode } from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport {\n InternalAccordionButton,\n InternalAccordionContent,\n} from \"@/components/internal-components/InternalAccordion\";\nimport useAccordionContext from \"@/components/internal-components/InternalAccordion/useAccordionContext\";\nimport InternalAccordionProvider from \"@/components/internal-components/InternalAccordion/InternalAccordionProvider\";\nimport { OakUiRoleToken } from \"@/styles/theme/color\";\nimport { BorderStyleProps } from \"@/styles/utils/borderStyle\";\nimport { FlexStyleProps } from \"@/styles/utils/flexStyle\";\nimport { SpacingStyleProps } from \"@/styles/utils/spacingStyle\";\n\nexport type OakAccordionProps = {\n /**\n * The header of the accordion\n */\n header: ReactNode;\n /**\n * The heading tag the header of the accordion is to assume\n */\n headerTag?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n /**\n * Slot to place content after the header and outside the button\n */\n headerAfterSlot?: ReactNode;\n /**\n * Whether the accordion should be open initially\n */\n initialOpen?: boolean;\n /**\n * The content of the accordion\n */\n children: ReactNode;\n /**\n * The id of the accordion\n */\n id: string;\n /**\n * Which side the chevron icon appears on\n * @default \"left\"\n */\n chevronPosition?: \"left\" | \"right\";\n /**\n * The background color when the accordion is open\n * @default \"bg-neutral\"\n */\n openBackground?: OakUiRoleToken;\n /**\n * The color of the header text and chevron icon. When set, the icon is\n * automatically tinted to match via CSS filter so a single prop keeps both in sync.\n */\n $color?: OakUiRoleToken;\n} & BorderStyleProps &\n FlexStyleProps &\n SpacingStyleProps;\n\nconst StyledOakFlex = styled(InternalAccordionButton)`\n font: inherit;\n color: inherit;\n border: none;\n background: none;\n appearance: none;\n\n outline: none;\n\n &:focus-visible {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n`;\n\nconst Accordion = ({\n header,\n headerTag,\n headerAfterSlot,\n children,\n id,\n chevronPosition = \"left\",\n openBackground = \"bg-neutral\",\n $color,\n ...styleProps\n}: OakAccordionProps) => {\n const { isOpen } = useAccordionContext();\n const HeaderTag = headerTag || \"h3\";\n\n const chevron = (\n <OakIcon\n iconName=\"chevron-down\"\n $width=\"spacing-24\"\n $height=\"spacing-24\"\n alt=\"\"\n $colorFilter={$color}\n style={{ transform: isOpen ? \"rotate(180deg)\" : \"none\" }}\n {...(chevronPosition === \"left\"\n ? { $mr: \"spacing-16\" }\n : { $ml: \"auto\" })}\n />\n );\n\n return (\n <OakBox\n id={id}\n $borderColor=\"border-neutral-lighter\"\n $ba=\"border-solid-s\"\n $pa=\"spacing-16\"\n $background={isOpen ? openBackground : \"bg-primary\"}\n {...styleProps}\n >\n <OakFlex\n as={HeaderTag}\n $font=\"heading-light-7\"\n $color={$color}\n $textDecoration={isOpen ? \"underline\" : \"none\"}\n >\n <StyledOakFlex\n $alignItems=\"center\"\n $pa=\"spacing-16\"\n $width={chevronPosition === \"right\" ? \"100%\" : undefined}\n id={id}\n >\n {chevronPosition === \"left\" && chevron}\n {header}\n {chevronPosition === \"right\" && chevron}\n </StyledOakFlex>\n {headerAfterSlot && (\n <OakFlex $ml=\"spacing-24\">{headerAfterSlot}</OakFlex>\n )}\n </OakFlex>\n <InternalAccordionContent\n aria-labelledby={id}\n $ml={chevronPosition === \"right\" ? \"spacing-0\" : \"spacing-24\"}\n $pl={chevronPosition === \"right\" ? \"spacing-0\" : \"spacing-16\"}\n $mt=\"spacing-4\"\n $font=\"body-3\"\n >\n {children}\n </InternalAccordionContent>\n </OakBox>\n );\n};\n\n/**\n * An accordion component that can be used to show/hide content\n */\n\nexport const OakAccordion = (props: OakAccordionProps) => {\n const { initialOpen = false, ...rest } = props;\n return (\n <InternalAccordionProvider isInitialOpen={initialOpen}>\n <Accordion {...rest} />\n </InternalAccordionProvider>\n );\n};\n","import React, { forwardRef, useRef } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakBorderRadiusToken, OakUiRoleToken } from \"@/styles\";\nimport { parseBorderRadius } from \"@/styles/helpers/parseBorderRadius\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { BorderStyleProps, borderStyle } from \"@/styles/utils/borderStyle\";\nimport { ColorStyleProps, colorStyle } from \"@/styles/utils/colorStyle\";\nimport { SizeStyleProps, sizeStyle } from \"@/styles/utils/sizeStyle\";\nimport { SpacingStyleProps, spacingStyle } from \"@/styles/utils/spacingStyle\";\n\n/**\n *\n * These components can be used with InternalCheckBoxWrapper which allows for customisable icons\n *\n * Several flavours of checkbox are created here:\n * - Default\n * - Hover decorations\n * - Focus decorations\n * - Hover + Focus decorations\n *\n * As they are styled components they can be further customised in implementation. Alternatively additional\n * components can be created here.\n *\n */\n\nexport type BaseCheckBoxProps = {\n id: string;\n disabled?: boolean;\n value: string;\n name?: string;\n /**\n * Uncontrolled checked state\n */\n defaultChecked?: boolean;\n /**\n * Controlled checked state\n */\n checked?: boolean;\n onHovered?: (value: string, id: string, duration: number) => void;\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;\n onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;\n onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;\n \"aria-label\"?: string;\n \"aria-labelledby\"?: string;\n \"data-testid\"?: string;\n};\n\nconst BaseCheckBox = forwardRef(\n (props: BaseCheckBoxProps, ref?: React.Ref<HTMLInputElement>) => {\n const { onHovered, ...rest } = props;\n\n const hoverStart = useRef(Date.now());\n\n const handleMouseEnter = () => {\n hoverStart.current = Date.now();\n };\n\n const handleMouseLeave = () => {\n const delta = Date.now() - hoverStart.current;\n if (onHovered) {\n onHovered(props.value, props.id, delta);\n }\n };\n\n return (\n <input\n ref={ref}\n type=\"checkbox\"\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n name={props.id}\n {...rest}\n />\n );\n },\n);\n\ntype StyledBaseCheckBoxProps = BaseCheckBoxProps &\n ColorStyleProps &\n SpacingStyleProps &\n BorderStyleProps &\n SizeStyleProps & {\n $checkedBackground?: OakUiRoleToken | null;\n $checkedBorderColor?: OakUiRoleToken;\n $uncheckedBorderColor?: OakUiRoleToken;\n };\n\ntype HoverBaseCheckBoxProps = {\n $hoverBorderRadius: OakBorderRadiusToken;\n};\n\n/**\n *\n * These components can be used with InternalCheckBoxWrapper which allows for customisable icons\n *\n * Several flavours of checkbox are created here:\n * - Default\n * - Hover decorations\n * - Focus decorations\n * - Hover + Focus decorations\n *\n * NB. Hover decorations must be wrapped in a box with position relative to allow for the hover effect to work\n *\n * As they are styled components they can be further customised in implementation. Alternatively additional\n * components can be created here.\n *\n *\n * ## Events\n * The following callbacks are available for tracking focus events:\n *\n * ### onChange\n * onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;\n *\n * ### onFocus\n * onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;\n *\n * ### onBlur\n * onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;\n *\n * ### onHovered\n * `onHovered?: (id, value, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n *\n *\n */\nexport const internalCheckBoxDefaults = {\n $borderRadius: \"border-radius-xs\",\n $ba: \"border-solid-m\",\n $borderColor: \"text-primary\",\n $checkedBackground: \"text-primary\",\n} satisfies Partial<StyledBaseCheckBoxProps>;\n\nexport const InternalCheckBox = styled(\n BaseCheckBox,\n).attrs<StyledBaseCheckBoxProps>(({ theme, ...props }) => ({\n ...internalCheckBoxDefaults,\n ...props,\n}))<StyledBaseCheckBoxProps>`\n /* removing default appearance */\n -webkit-appearance: none;\n appearance: none;\n cursor: pointer;\n margin: 0;\n outline: none;\n ${borderStyle}\n ${colorStyle}\n ${spacingStyle}\n ${sizeStyle}\n\n border-color: ${(props) => parseColor(props.$uncheckedBorderColor)};\n\n &:checked {\n ${(props) => css`\n background: ${parseColor(props.$checkedBackground)};\n border-color: ${parseColor(props.$checkedBorderColor)};\n `};\n }\n\n &:disabled {\n pointer-events: none;\n }\n\n @media (hover: hover) {\n &:hover:not(:disabled) {\n border-color: ${(props) => parseColor(props.$checkedBackground)};\n }\n }\n`;\n\nexport const internalCheckBoxHoverDefaults = {\n $hoverBorderRadius: \"border-radius-xs\",\n} satisfies Partial<HoverBaseCheckBoxProps>;\n\nexport const InternalCheckBoxHover = styled(InternalCheckBox).attrs<\n StyledBaseCheckBoxProps & HoverBaseCheckBoxProps\n>(({ theme, ...props }) => ({\n ...internalCheckBoxHoverDefaults,\n ...props,\n}))<StyledBaseCheckBoxProps & HoverBaseCheckBoxProps>`\n /* @media wrapper is required to prevent hover effect on iOS Safari */\n\n @media (hover: hover) {\n &:hover:not(&:checked):not(&:disabled)::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n width: 60%;\n height: 60%;\n transform: translate(-50%, -50%);\n border-radius: ${(props) => parseBorderRadius(props.$hoverBorderRadius)};\n background: ${(props) => parseColor(props.$checkedBackground)};\n }\n }\n`;\n\nconst focusStyle = css`\n &:focus-visible {\n box-shadow: ${parseDropShadow(\"drop-shadow-centered-lemon\")};\n }\n`;\n\nexport const InternalCheckBoxFocus = styled(\n InternalCheckBox,\n)<StyledBaseCheckBoxProps>`\n ${focusStyle}\n`;\n\nexport const InternalCheckBoxHoverFocus = styled(InternalCheckBoxHover)<\n StyledBaseCheckBoxProps & HoverBaseCheckBoxProps\n>`\n ${focusStyle}\n`;\n","import styled from \"styled-components\";\n\nimport {\n TypographyStyleProps,\n typographyStyle,\n} from \"@/styles/utils/typographyStyle\";\nimport { ColorStyleProps, colorStyle } from \"@/styles/utils/colorStyle\";\n\nexport type OakLabelProps = TypographyStyleProps & ColorStyleProps;\n\n/**\n * Label renders a `label` element, exposing all the typography props.\n * ## Usage\n * Use this component when you want to apply styles to a label, likely within\n * a form.\n */\nexport const OakLabel = styled.label<OakLabelProps>`\n ${typographyStyle}\n ${colorStyle}\n`;\n","import styled, { CSSProperties } from \"styled-components\";\n\nimport { OakLabel, OakLabelProps } from \"@/components/form-elements/OakLabel\";\nimport { responsiveStyle } from \"@/styles/utils/responsiveStyle\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport { FlexStyleProps } from \"@/styles/utils/flexStyle\";\n\nexport type InternalCheckBoxLabelProps = {\n labelAlignItems?: FlexStyleProps[\"$alignItems\"];\n labelGap?: FlexStyleProps[\"$gap\"];\n disabled?: boolean;\n pointerEvents?: CSSProperties[\"pointerEvents\"];\n \"data-testid\"?: string;\n} & OakLabelProps;\n\n/**\n *\n * Specialised Label Component can be used and extended to create various different versions of CheckboxLabels\n *\n */\nexport const InternalCheckBoxLabel = styled(\n OakLabel,\n)<InternalCheckBoxLabelProps>`\n display: flex;\n align-items: center;\n ${responsiveStyle(\"gap\", (props) => props.labelGap, parseSpacing)}\n ${responsiveStyle(\"align-items\", (props) => props.labelAlignItems)}\n`;\n\nexport const InternalCheckBoxLabelHoverDecor = styled(InternalCheckBoxLabel)`\n ${(props) => `\n ${props.pointerEvents ? `pointer-events: ${props.pointerEvents};` : \"\"}\n ${props.disabled ? `pointer-events: none;` : `cursor: pointer;`}\n `}\n @media (hover: hover) {\n &:hover {\n text-decoration: ${(props) => (props.disabled ? \"none\" : \"underline\")};\n }\n }\n`;\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakBox, OakBoxProps } from \"@/components/layout-and-structure/OakBox\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { OakAllSpacingToken } from \"@/styles\";\nimport { ResponsiveValues } from \"@/styles/utils/responsiveStyle\";\n\nconst StyledIconContainer = styled(OakBox)<\n OakBoxProps & { disabled?: boolean }\n>`\n pointer-events: none;\n opacity: 0;\n\n input:checked + & {\n opacity: 1;\n }\n`;\n\nexport type InternalCheckBoxWrapperProps = {\n size?: ResponsiveValues<OakAllSpacingToken>;\n internalCheckbox: React.JSX.Element;\n iconPadding?: OakAllSpacingToken;\n checkedIcon?: React.JSX.Element;\n};\n\n/**\n *\n * This component is a wrapper for the InternalCheckBox component. It allows for customisable icons.\n *\n * NB. size must have the same value as the InternalCheckBox width and height\n *\n *\n */\nexport const InternalCheckBoxWrapper = (\n props: InternalCheckBoxWrapperProps,\n) => {\n const {\n size = \"spacing-24\",\n iconPadding = \"spacing-0\",\n internalCheckbox,\n checkedIcon = (\n <OakIcon\n iconName=\"tick\"\n $width={\"100%\"}\n $height={\"100%\"}\n $colorFilter={\"icon-inverted\"}\n />\n ),\n } = props;\n\n return (\n <OakBox $position=\"relative\" $width={size} $height={size}>\n {internalCheckbox}\n <StyledIconContainer\n $position={\"absolute\"}\n $top={\"spacing-0\"}\n $left={\"spacing-0\"}\n $pa={iconPadding}\n $width={size}\n $height={size}\n >\n {checkedIcon}\n </StyledIconContainer>\n </OakBox>\n );\n};\n","import React, { useRef } from \"react\";\n\nimport {\n BaseCheckBoxProps,\n InternalCheckBoxHoverFocus,\n} from \"@/components/internal-components/InternalCheckBox/InternalCheckBox\";\nimport {\n InternalCheckBoxLabel,\n InternalCheckBoxLabelProps,\n} from \"@/components/internal-components/InternalCheckBoxLabel\";\nimport { InternalCheckBoxWrapper } from \"@/components/internal-components/InternalCheckBoxWrapper\";\nimport {\n OakBorderRadiusToken,\n OakBorderWidthToken,\n OakUiRoleToken,\n OakAllSpacingToken,\n} from \"@/styles\";\n\nexport type OakCheckBoxProps = BaseCheckBoxProps & {\n checkboxSize?: OakAllSpacingToken;\n checkboxBorder?: OakBorderWidthToken;\n checkboxBorderRadius?: OakBorderRadiusToken;\n checkedBorderColor?: OakUiRoleToken;\n uncheckedBorderColor?: OakUiRoleToken;\n checkedIcon?: React.JSX.Element;\n checkedBackgroundFill?: boolean;\n hoverBorderRadius?: OakBorderRadiusToken;\n iconPadding?: OakAllSpacingToken;\n defaultColor?: OakUiRoleToken;\n disabledColor?: OakUiRoleToken;\n displayValue?: string;\n} & InternalCheckBoxLabelProps;\n\n/**\n *\n * Default checkbox which can be extended to create specialised checkboxes.\n * - if provided, displayValue is used to display a different value to the value prop.\n *\n *\n * ## Events\n * The following callbacks are available for tracking focus events:\n *\n * ### onChange\n * onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;\n *\n * ### onFocus\n * onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;\n *\n * ### onBlur\n * onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;\n *\n * ### onHovered\n * `onHovered?: (id, value, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n *\n *\n */\nexport const OakCheckBox = (props: OakCheckBoxProps) => {\n const {\n id,\n value,\n displayValue = value,\n disabled = false,\n defaultChecked,\n checked,\n onChange,\n onFocus,\n onBlur,\n onHovered,\n iconPadding = \"spacing-0\",\n hoverBorderRadius = \"border-radius-xs\",\n checkboxSize = \"spacing-24\",\n checkboxBorder = \"border-solid-m\",\n checkboxBorderRadius = \"border-radius-xs\",\n defaultColor = \"text-primary\",\n /**\n * The outer border color of the checkbox when unchecked.\n */\n uncheckedBorderColor = \"border-neutral\",\n /**\n * The outer border color of the checkbox when checked.\n */\n checkedBorderColor = \"border-primary\",\n disabledColor = \"text-disabled\",\n labelGap = \"spacing-16\",\n labelAlignItems = \"center\",\n checkedBackgroundFill = true,\n checkedIcon,\n \"data-testid\": dataTestId,\n ...rest\n } = props;\n\n const hoverStart = useRef(Date.now());\n\n const handleMouseEnter = () => {\n hoverStart.current = Date.now();\n };\n\n const handleMouseLeave = () => {\n const delta = Date.now() - hoverStart.current;\n if (onHovered) {\n onHovered(value, id, delta);\n }\n };\n\n const currentColor = disabled ? disabledColor : defaultColor;\n const currentCheckedBackgroundFill = disabled\n ? disabledColor\n : checkedBorderColor;\n const currentCheckedBorderColor = disabled\n ? disabledColor\n : checkedBorderColor;\n\n return (\n <InternalCheckBoxLabel\n htmlFor={id}\n labelGap={labelGap}\n labelAlignItems={labelAlignItems}\n $color={currentColor}\n disabled={disabled}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n <InternalCheckBoxWrapper\n size={checkboxSize}\n internalCheckbox={\n <InternalCheckBoxHoverFocus\n id={id}\n value={value}\n $width={checkboxSize}\n $height={checkboxSize}\n $ba={checkboxBorder}\n $borderRadius={checkboxBorderRadius}\n $borderColor={defaultColor}\n $checkedBackground={\n checkedBackgroundFill ? currentCheckedBackgroundFill : null\n }\n $checkedBorderColor={currentCheckedBorderColor}\n $uncheckedBorderColor={uncheckedBorderColor}\n $hoverBorderRadius={hoverBorderRadius}\n onChange={onChange}\n onFocus={onFocus}\n onBlur={onBlur}\n defaultChecked={defaultChecked}\n checked={checked}\n disabled={disabled}\n data-testid={dataTestId}\n {...rest}\n />\n }\n checkedIcon={checkedIcon}\n iconPadding={iconPadding}\n />\n {displayValue}\n </InternalCheckBoxLabel>\n );\n};\n","import React, {\n PropsWithChildren,\n useCallback,\n useLayoutEffect,\n useState,\n} from \"react\";\n\nexport const useIsScrolled = () => {\n const [isScrolled, setIsScrolled] = useState(false);\n const [canaryElement, setCanaryElement] = useState<HTMLDivElement | null>(\n null,\n );\n const ObserveScroll = useCallback(({ children }: PropsWithChildren) => {\n return (\n <>\n <div ref={setCanaryElement} />\n {children}\n </>\n );\n }, []);\n\n useLayoutEffect(() => {\n if (!canaryElement) {\n return;\n }\n const observer = new IntersectionObserver(\n (mutations) => {\n setIsScrolled(!mutations.some((mutation) => mutation.isIntersecting));\n },\n {\n root: canaryElement.parentElement,\n },\n );\n observer.observe(canaryElement);\n\n return () => {\n observer.disconnect();\n };\n }, [canaryElement]);\n\n return { isScrolled, ObserveScroll };\n};\n","import { useState, useEffect } from \"react\";\n\nexport const useMounted = () => {\n const [isMounted, setIsMounted] = useState(false);\n\n useEffect(() => {\n setIsMounted(true);\n }, []);\n\n return isMounted;\n};\n","export var zeroRightClassName = 'right-scroll-bar-position';\nexport var fullWidthClassName = 'width-before-scroll-bar';\nexport var noScrollbarsClassName = 'with-scroll-bars-hidden';\n/**\n * Name of a CSS variable containing the amount of \"hidden\" scrollbar\n * ! might be undefined ! use will fallback!\n */\nexport var removedBarSizeVariable = '--removed-body-scroll-bar-size';\n","/**\n * Assigns a value for a given ref, no matter of the ref format\n * @param {RefObject} ref - a callback function or ref object\n * @param value - a new value\n *\n * @see https://github.com/theKashey/use-callback-ref#assignref\n * @example\n * const refObject = useRef();\n * const refFn = (ref) => {....}\n *\n * assignRef(refObject, \"refValue\");\n * assignRef(refFn, \"refValue\");\n */\nexport function assignRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n }\n else if (ref) {\n ref.current = value;\n }\n return ref;\n}\n","import * as React from 'react';\nimport { assignRef } from './assignRef';\nimport { useCallbackRef } from './useRef';\nvar useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nvar currentValues = new WeakMap();\n/**\n * Merges two or more refs together providing a single interface to set their value\n * @param {RefObject|Ref} refs\n * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}\n *\n * @see {@link mergeRefs} a version without buit-in memoization\n * @see https://github.com/theKashey/use-callback-ref#usemergerefs\n * @example\n * const Component = React.forwardRef((props, ref) => {\n * const ownRef = useRef();\n * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together\n * return <div ref={domRef}>...</div>\n * }\n */\nexport function useMergeRefs(refs, defaultValue) {\n var callbackRef = useCallbackRef(defaultValue || null, function (newValue) {\n return refs.forEach(function (ref) { return assignRef(ref, newValue); });\n });\n // handle refs changes - added or removed\n useIsomorphicLayoutEffect(function () {\n var oldValue = currentValues.get(callbackRef);\n if (oldValue) {\n var prevRefs_1 = new Set(oldValue);\n var nextRefs_1 = new Set(refs);\n var current_1 = callbackRef.current;\n prevRefs_1.forEach(function (ref) {\n if (!nextRefs_1.has(ref)) {\n assignRef(ref, null);\n }\n });\n nextRefs_1.forEach(function (ref) {\n if (!prevRefs_1.has(ref)) {\n assignRef(ref, current_1);\n }\n });\n }\n currentValues.set(callbackRef, refs);\n }, [refs]);\n return callbackRef;\n}\n","import { useState } from 'react';\n/**\n * creates a MutableRef with ref change callback\n * @param initialValue - initial ref value\n * @param {Function} callback - a callback to run when value changes\n *\n * @example\n * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);\n * ref.current = 1;\n * // prints 0 -> 1\n *\n * @see https://reactjs.org/docs/hooks-reference.html#useref\n * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref\n * @returns {MutableRefObject}\n */\nexport function useCallbackRef(initialValue, callback) {\n var ref = useState(function () { return ({\n // value\n value: initialValue,\n // last callback\n callback: callback,\n // \"memoized\" public interface\n facade: {\n get current() {\n return ref.value;\n },\n set current(value) {\n var last = ref.value;\n if (last !== value) {\n ref.value = value;\n ref.callback(value, last);\n }\n },\n },\n }); })[0];\n // update callback\n ref.callback = callback;\n return ref.facade;\n}\n","import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n","import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nvar SideCar = function (_a) {\n var sideCar = _a.sideCar, rest = __rest(_a, [\"sideCar\"]);\n if (!sideCar) {\n throw new Error('Sidecar: please provide `sideCar` property to import the right car');\n }\n var Target = sideCar.read();\n if (!Target) {\n throw new Error('Sidecar medium not found');\n }\n return React.createElement(Target, __assign({}, rest));\n};\nSideCar.isSideCarExport = true;\nexport function exportSidecar(medium, exported) {\n medium.useMedium(exported);\n return SideCar;\n}\n","import { createSidecarMedium } from 'use-sidecar';\nexport var effectCar = createSidecarMedium();\n","import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nimport { fullWidthClassName, zeroRightClassName } from 'react-remove-scroll-bar/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { effectCar } from './medium';\nvar nothing = function () {\n return;\n};\n/**\n * Removes scrollbar from the page and contain the scroll within the Lock\n */\nvar RemoveScroll = React.forwardRef(function (props, parentRef) {\n var ref = React.useRef(null);\n var _a = React.useState({\n onScrollCapture: nothing,\n onWheelCapture: nothing,\n onTouchMoveCapture: nothing,\n }), callbacks = _a[0], setCallbacks = _a[1];\n var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noRelative = props.noRelative, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest(props, [\"forwardProps\", \"children\", \"className\", \"removeScrollBar\", \"enabled\", \"shards\", \"sideCar\", \"noRelative\", \"noIsolation\", \"inert\", \"allowPinchZoom\", \"as\", \"gapMode\"]);\n var SideCar = sideCar;\n var containerRef = useMergeRefs([ref, parentRef]);\n var containerProps = __assign(__assign({}, rest), callbacks);\n return (React.createElement(React.Fragment, null,\n enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noRelative: noRelative, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),\n forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));\n});\nRemoveScroll.defaultProps = {\n enabled: true,\n removeScrollBar: true,\n inert: false,\n};\nRemoveScroll.classNames = {\n fullWidth: fullWidthClassName,\n zeroRight: zeroRightClassName,\n};\nexport { RemoveScroll };\n","function _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\nexport { _extends as default };","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * defines a focus group\n */\nexport var FOCUS_GROUP = 'data-focus-lock';\n/**\n * disables element discovery inside a group marked by key\n */\nexport var FOCUS_DISABLED = 'data-focus-lock-disabled';\n/**\n * allows uncontrolled focus within the marked area, effectively disabling focus lock for it's content\n */\nexport var FOCUS_ALLOW = 'data-no-focus-lock';\n/**\n * instructs autofocus engine to pick default autofocus inside a given node\n * can be set on the element or container\n */\nexport var FOCUS_AUTO = 'data-autofocus-inside';\n/**\n * instructs autofocus to ignore elements within a given node\n * can be set on the element or container\n */\nexport var FOCUS_NO_AUTOFOCUS = 'data-no-autofocus';\n","import React, { Fragment } from 'react';\nimport PropTypes from 'prop-types';\nexport var hiddenGuard = {\n width: '1px',\n height: '0px',\n padding: 0,\n overflow: 'hidden',\n position: 'fixed',\n top: '1px',\n left: '1px'\n};\nvar InFocusGuard = function InFocusGuard(_ref) {\n var _ref$children = _ref.children,\n children = _ref$children === void 0 ? null : _ref$children;\n return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-first\",\n \"data-focus-guard\": true,\n \"data-focus-auto-guard\": true,\n style: hiddenGuard\n }), children, children && /*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-last\",\n \"data-focus-guard\": true,\n \"data-focus-auto-guard\": true,\n style: hiddenGuard\n }));\n};\nInFocusGuard.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: PropTypes.node\n} : {};\nexport default InFocusGuard;","import { createMedium, createSidecarMedium } from 'use-sidecar';\nexport var mediumFocus = createMedium({}, function (_ref) {\n var target = _ref.target,\n currentTarget = _ref.currentTarget;\n return {\n target: target,\n currentTarget: currentTarget\n };\n});\nexport var mediumBlur = createMedium();\nexport var mediumEffect = createMedium();\nexport var mediumSidecar = createSidecarMedium({\n async: true,\n ssr: typeof document !== 'undefined'\n});","import { createContext } from 'react';\nexport var focusScope = /*#__PURE__*/createContext(undefined);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport React, { forwardRef, useRef, useState, useCallback, useEffect, useMemo, Fragment } from 'react';\nimport { node, bool, string, any, arrayOf, oneOfType, object, func } from 'prop-types';\nimport { FOCUS_DISABLED, FOCUS_GROUP } from 'focus-lock/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { hiddenGuard } from './FocusGuard';\nimport { mediumFocus, mediumBlur, mediumSidecar } from './medium';\nimport { focusScope } from './scope';\nvar emptyArray = [];\nvar FocusLock = /*#__PURE__*/forwardRef(function FocusLockUI(props, parentRef) {\n var _extends2;\n var _useState = useState(),\n realObserved = _useState[0],\n setObserved = _useState[1];\n var observed = useRef();\n var isActive = useRef(false);\n var originalFocusedElement = useRef(null);\n var _useState2 = useState({}),\n update = _useState2[1];\n var children = props.children,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n _props$noFocusGuards = props.noFocusGuards,\n noFocusGuards = _props$noFocusGuards === void 0 ? false : _props$noFocusGuards,\n _props$persistentFocu = props.persistentFocus,\n persistentFocus = _props$persistentFocu === void 0 ? false : _props$persistentFocu,\n _props$crossFrame = props.crossFrame,\n crossFrame = _props$crossFrame === void 0 ? true : _props$crossFrame,\n _props$autoFocus = props.autoFocus,\n autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus,\n allowTextSelection = props.allowTextSelection,\n group = props.group,\n className = props.className,\n whiteList = props.whiteList,\n hasPositiveIndices = props.hasPositiveIndices,\n _props$shards = props.shards,\n shards = _props$shards === void 0 ? emptyArray : _props$shards,\n _props$as = props.as,\n Container = _props$as === void 0 ? 'div' : _props$as,\n _props$lockProps = props.lockProps,\n containerProps = _props$lockProps === void 0 ? {} : _props$lockProps,\n SideCar = props.sideCar,\n _props$returnFocus = props.returnFocus,\n shouldReturnFocus = _props$returnFocus === void 0 ? false : _props$returnFocus,\n focusOptions = props.focusOptions,\n onActivationCallback = props.onActivation,\n onDeactivationCallback = props.onDeactivation;\n var _useState3 = useState({}),\n id = _useState3[0];\n var onActivation = useCallback(function (_ref) {\n var captureFocusRestore = _ref.captureFocusRestore;\n if (!originalFocusedElement.current) {\n var _document;\n var activeElement = (_document = document) == null ? void 0 : _document.activeElement;\n originalFocusedElement.current = activeElement;\n if (activeElement !== document.body) {\n originalFocusedElement.current = captureFocusRestore(activeElement);\n }\n }\n if (observed.current && onActivationCallback) {\n onActivationCallback(observed.current);\n }\n isActive.current = true;\n update();\n }, [onActivationCallback]);\n var onDeactivation = useCallback(function () {\n isActive.current = false;\n if (onDeactivationCallback) {\n onDeactivationCallback(observed.current);\n }\n update();\n }, [onDeactivationCallback]);\n var returnFocus = useCallback(function (allowDefer) {\n var focusRestore = originalFocusedElement.current;\n if (focusRestore) {\n var returnFocusTo = (typeof focusRestore === 'function' ? focusRestore() : focusRestore) || document.body;\n var howToReturnFocus = typeof shouldReturnFocus === 'function' ? shouldReturnFocus(returnFocusTo) : shouldReturnFocus;\n if (howToReturnFocus) {\n var returnFocusOptions = typeof howToReturnFocus === 'object' ? howToReturnFocus : undefined;\n originalFocusedElement.current = null;\n if (allowDefer) {\n Promise.resolve().then(function () {\n return returnFocusTo.focus(returnFocusOptions);\n });\n } else {\n returnFocusTo.focus(returnFocusOptions);\n }\n }\n }\n }, [shouldReturnFocus]);\n var onFocus = useCallback(function (event) {\n if (isActive.current) {\n mediumFocus.useMedium(event);\n }\n }, []);\n var onBlur = mediumBlur.useMedium;\n var setObserveNode = useCallback(function (newObserved) {\n if (observed.current !== newObserved) {\n observed.current = newObserved;\n setObserved(newObserved);\n }\n }, []);\n if (process.env.NODE_ENV !== 'production') {\n if (typeof allowTextSelection !== 'undefined') {\n console.warn('React-Focus-Lock: allowTextSelection is deprecated and enabled by default');\n }\n useEffect(function () {\n if (!observed.current && typeof Container !== 'string') {\n console.error('FocusLock: could not obtain ref to internal node');\n }\n }, []);\n }\n var lockProps = _extends((_extends2 = {}, _extends2[FOCUS_DISABLED] = disabled && 'disabled', _extends2[FOCUS_GROUP] = group, _extends2), containerProps);\n var hasLeadingGuards = noFocusGuards !== true;\n var hasTailingGuards = hasLeadingGuards && noFocusGuards !== 'tail';\n var mergedRef = useMergeRefs([parentRef, setObserveNode]);\n var focusScopeValue = useMemo(function () {\n return {\n observed: observed,\n shards: shards,\n enabled: !disabled,\n get active() {\n return isActive.current;\n }\n };\n }, [disabled, isActive, shards, observed]);\n return /*#__PURE__*/React.createElement(Fragment, null, hasLeadingGuards && [\n /*#__PURE__*/\n React.createElement(\"div\", {\n key: \"guard-first\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 0,\n style: hiddenGuard\n }), hasPositiveIndices ? /*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-nearest\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 1,\n style: hiddenGuard\n }) : null], !disabled && /*#__PURE__*/React.createElement(SideCar, {\n id: id,\n sideCar: mediumSidecar,\n observed: realObserved,\n disabled: disabled,\n persistentFocus: persistentFocus,\n crossFrame: crossFrame,\n autoFocus: autoFocus,\n whiteList: whiteList,\n shards: shards,\n onActivation: onActivation,\n onDeactivation: onDeactivation,\n returnFocus: returnFocus,\n focusOptions: focusOptions,\n noFocusGuards: noFocusGuards\n }), /*#__PURE__*/React.createElement(Container, _extends({\n ref: mergedRef\n }, lockProps, {\n className: className,\n onBlur: onBlur,\n onFocus: onFocus\n }), /*#__PURE__*/React.createElement(focusScope.Provider, {\n value: focusScopeValue\n }, children)), hasTailingGuards && /*#__PURE__*/React.createElement(\"div\", {\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 0,\n style: hiddenGuard\n }));\n});\nFocusLock.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: node,\n disabled: bool,\n returnFocus: oneOfType([bool, object, func]),\n focusOptions: object,\n noFocusGuards: bool,\n hasPositiveIndices: bool,\n allowTextSelection: bool,\n autoFocus: bool,\n persistentFocus: bool,\n crossFrame: bool,\n group: string,\n className: string,\n whiteList: func,\n shards: arrayOf(any),\n as: oneOfType([string, func, object]),\n lockProps: object,\n onActivation: func,\n onDeactivation: func,\n sideCar: any.isRequired\n} : {};\nexport default FocusLock;","export function deferAction(action) {\n setTimeout(action, 1);\n}\nexport var inlineProp = function inlineProp(name, value) {\n var obj = {};\n obj[name] = value;\n return obj;\n};\nexport var extractRef = function extractRef(ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};","import { createSidecarMedium } from 'use-sidecar';\nexport var effectCar = createSidecarMedium();\nexport var focusHiddenMarker = 'data-focus-on-hidden';\n","import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScroll } from 'react-remove-scroll/UI';\nimport ReactFocusLock from 'react-focus-lock/UI';\nimport { effectCar } from './medium';\nvar PREVENT_SCROLL = { preventScroll: true };\nexport var FocusOn = React.forwardRef(function (props, parentRef) {\n var _a = React.useState(false), lockProps = _a[0], setLockProps = _a[1];\n var _b = React.useState(null), activeNode = _b[0], setActiveNode = _b[1];\n var children = props.children, autoFocus = props.autoFocus, shards = props.shards, crossFrame = props.crossFrame, _c = props.enabled, enabled = _c === void 0 ? true : _c, _d = props.scrollLock, scrollLock = _d === void 0 ? true : _d, _e = props.focusLock, focusLock = _e === void 0 ? true : _e, _f = props.returnFocus, returnFocus = _f === void 0 ? true : _f, inert = props.inert, allowPinchZoom = props.allowPinchZoom, sideCar = props.sideCar, className = props.className, shouldIgnore = props.shouldIgnore, preventScrollOnFocus = props.preventScrollOnFocus, style = props.style, as = props.as, gapMode = props.gapMode, rest = __rest(props, [\"children\", \"autoFocus\", \"shards\", \"crossFrame\", \"enabled\", \"scrollLock\", \"focusLock\", \"returnFocus\", \"inert\", \"allowPinchZoom\", \"sideCar\", \"className\", \"shouldIgnore\", \"preventScrollOnFocus\", \"style\", \"as\", \"gapMode\"]);\n var SideCar = sideCar;\n var appliedLockProps = __assign(__assign({}, lockProps), { as: as,\n style: style,\n sideCar: sideCar,\n shards: shards,\n allowPinchZoom: allowPinchZoom,\n gapMode: gapMode,\n inert: inert, enabled: enabled && scrollLock });\n var onActivation = React.useCallback(function (node) {\n setActiveNode(node);\n }, []);\n var onDeactivation = React.useCallback(function () {\n setActiveNode(null);\n }, []);\n return (React.createElement(React.Fragment, null,\n React.createElement(ReactFocusLock, { ref: parentRef, sideCar: sideCar, disabled: !(enabled && focusLock), returnFocus: returnFocus, autoFocus: autoFocus, shards: shards, crossFrame: crossFrame, onActivation: onActivation, onDeactivation: onDeactivation, className: className, whiteList: shouldIgnore, lockProps: appliedLockProps, focusOptions: preventScrollOnFocus ? PREVENT_SCROLL : undefined, \n // // ts-expect-error TS2322 - ts v3 \"glitch\"\n as: RemoveScroll }, children),\n enabled && (React.createElement(SideCar, __assign({}, rest, { sideCar: effectCar, setLockProps: setLockProps, shards: shards, activeNode: activeNode })))));\n});\nexport * from './reExports';\n","function _setPrototypeOf(t, e) {\n return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, _setPrototypeOf(t, e);\n}\nexport { _setPrototypeOf as default };","import setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _inheritsLoose(t, o) {\n t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o);\n}\nexport { _inheritsLoose as default };","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nexport { toPropertyKey as default };","import _typeof from \"./typeof.js\";\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nexport { toPrimitive as default };","/*\nIE11 support\n */\nexport var toArray = function (a) {\n var ret = Array(a.length);\n for (var i = 0; i < a.length; ++i) {\n ret[i] = a[i];\n }\n return ret;\n};\nexport var asArray = function (a) { return (Array.isArray(a) ? a : [a]); };\nexport var getFirst = function (a) { return (Array.isArray(a) ? a[0] : a); };\n","import { FOCUS_NO_AUTOFOCUS } from '../constants';\nvar isElementHidden = function (node) {\n // we can measure only \"elements\"\n // consider others as \"visible\"\n if (node.nodeType !== Node.ELEMENT_NODE) {\n return false;\n }\n var computedStyle = window.getComputedStyle(node, null);\n if (!computedStyle || !computedStyle.getPropertyValue) {\n return false;\n }\n return (computedStyle.getPropertyValue('display') === 'none' || computedStyle.getPropertyValue('visibility') === 'hidden');\n};\nvar getParentNode = function (node) {\n // DOCUMENT_FRAGMENT_NODE can also point on ShadowRoot. In this case .host will point on the next node\n return node.parentNode && node.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE\n ? // eslint-disable-next-line @typescript-eslint/no-explicit-any\n node.parentNode.host\n : node.parentNode;\n};\nvar isTopNode = function (node) {\n // @ts-ignore\n return node === document || (node && node.nodeType === Node.DOCUMENT_NODE);\n};\nvar isInert = function (node) { return node.hasAttribute('inert'); };\n/**\n * @see https://github.com/testing-library/jest-dom/blob/main/src/to-be-visible.js\n */\nvar isVisibleUncached = function (node, checkParent) {\n return !node || isTopNode(node) || (!isElementHidden(node) && !isInert(node) && checkParent(getParentNode(node)));\n};\nexport var isVisibleCached = function (visibilityCache, node) {\n var cached = visibilityCache.get(node);\n if (cached !== undefined) {\n return cached;\n }\n var result = isVisibleUncached(node, isVisibleCached.bind(undefined, visibilityCache));\n visibilityCache.set(node, result);\n return result;\n};\nvar isAutoFocusAllowedUncached = function (node, checkParent) {\n return node && !isTopNode(node) ? (isAutoFocusAllowed(node) ? checkParent(getParentNode(node)) : false) : true;\n};\nexport var isAutoFocusAllowedCached = function (cache, node) {\n var cached = cache.get(node);\n if (cached !== undefined) {\n return cached;\n }\n var result = isAutoFocusAllowedUncached(node, isAutoFocusAllowedCached.bind(undefined, cache));\n cache.set(node, result);\n return result;\n};\nexport var getDataset = function (node) {\n // @ts-ignore\n return node.dataset;\n};\nexport var isHTMLButtonElement = function (node) { return node.tagName === 'BUTTON'; };\nexport var isHTMLInputElement = function (node) { return node.tagName === 'INPUT'; };\nexport var isRadioElement = function (node) {\n return isHTMLInputElement(node) && node.type === 'radio';\n};\nexport var notHiddenInput = function (node) {\n return !((isHTMLInputElement(node) || isHTMLButtonElement(node)) && (node.type === 'hidden' || node.disabled));\n};\nexport var isAutoFocusAllowed = function (node) {\n var attribute = node.getAttribute(FOCUS_NO_AUTOFOCUS);\n return ![true, 'true', ''].includes(attribute);\n};\nexport var isGuard = function (node) { var _a; return Boolean(node && ((_a = getDataset(node)) === null || _a === void 0 ? void 0 : _a.focusGuard)); };\nexport var isNotAGuard = function (node) { return !isGuard(node); };\nexport var isDefined = function (x) { return Boolean(x); };\n","import { toArray } from './array';\nexport var tabSort = function (a, b) {\n var aTab = Math.max(0, a.tabIndex);\n var bTab = Math.max(0, b.tabIndex);\n var tabDiff = aTab - bTab;\n var indexDiff = a.index - b.index;\n if (tabDiff) {\n if (!aTab) {\n return 1;\n }\n if (!bTab) {\n return -1;\n }\n }\n return tabDiff || indexDiff;\n};\nvar getTabIndex = function (node) {\n if (node.tabIndex < 0) {\n // all \"focusable\" elements are already preselected\n // but some might have implicit negative tabIndex\n // return 0 for <audio without tabIndex attribute - it is \"tabbable\"\n if (!node.hasAttribute('tabindex')) {\n return 0;\n }\n }\n return node.tabIndex;\n};\nexport var orderByTabIndex = function (nodes, filterNegative, keepGuards) {\n return toArray(nodes)\n .map(function (node, index) {\n var tabIndex = getTabIndex(node);\n return {\n node: node,\n index: index,\n tabIndex: keepGuards && tabIndex === -1 ? ((node.dataset || {}).focusGuard ? 0 : -1) : tabIndex,\n };\n })\n .filter(function (data) { return !filterNegative || data.tabIndex >= 0; })\n .sort(tabSort);\n};\n","import { FOCUS_AUTO } from '../constants';\nimport { toArray } from './array';\nimport { tabbables } from './tabbables';\nvar queryTabbables = tabbables.join(',');\nvar queryGuardTabbables = \"\".concat(queryTabbables, \", [data-focus-guard]\");\nvar getFocusablesWithShadowDom = function (parent, withGuards) {\n return toArray((parent.shadowRoot || parent).children).reduce(function (acc, child) {\n return acc.concat(child.matches(withGuards ? queryGuardTabbables : queryTabbables) ? [child] : [], getFocusablesWithShadowDom(child));\n }, []);\n};\nvar getFocusablesWithIFrame = function (parent, withGuards) {\n var _a;\n // contentDocument of iframe will be null if current origin cannot access it\n if (parent instanceof HTMLIFrameElement && ((_a = parent.contentDocument) === null || _a === void 0 ? void 0 : _a.body)) {\n return getFocusables([parent.contentDocument.body], withGuards);\n }\n return [parent];\n};\nexport var getFocusables = function (parents, withGuards) {\n return parents.reduce(function (acc, parent) {\n var _a;\n var focusableWithShadowDom = getFocusablesWithShadowDom(parent, withGuards);\n var focusableWithIframes = (_a = []).concat.apply(_a, focusableWithShadowDom.map(function (node) { return getFocusablesWithIFrame(node, withGuards); }));\n return acc.concat(\n // add all tabbables inside and within shadow DOMs in DOM order\n focusableWithIframes, \n // add if node is tabbable itself\n parent.parentNode\n ? toArray(parent.parentNode.querySelectorAll(queryTabbables)).filter(function (node) { return node === parent; })\n : []);\n }, []);\n};\n/**\n * return a list of focusable nodes within an area marked as \"auto-focusable\"\n * @param parent\n */\nexport var getParentAutofocusables = function (parent) {\n var parentFocus = parent.querySelectorAll(\"[\".concat(FOCUS_AUTO, \"]\"));\n return toArray(parentFocus)\n .map(function (node) { return getFocusables([node]); })\n .reduce(function (acc, nodes) { return acc.concat(nodes); }, []);\n};\n","/**\n * list of the object to be considered as focusable\n */\nexport var tabbables = [\n 'button:enabled',\n 'select:enabled',\n 'textarea:enabled',\n 'input:enabled',\n // elements with explicit roles will also use explicit tabindex\n // '[role=\"button\"]',\n 'a[href]',\n 'area[href]',\n 'summary',\n 'iframe',\n 'object',\n 'embed',\n 'audio[controls]',\n 'video[controls]',\n '[tabindex]',\n '[contenteditable]',\n '[autofocus]',\n];\n","import { toArray } from './array';\nimport { isAutoFocusAllowedCached, isVisibleCached, notHiddenInput } from './is';\nimport { orderByTabIndex } from './tabOrder';\nimport { getFocusables, getParentAutofocusables } from './tabUtils';\n/**\n * given list of focusable elements keeps the ones user can interact with\n * @param nodes\n * @param visibilityCache\n */\nexport var filterFocusable = function (nodes, visibilityCache) {\n return toArray(nodes)\n .filter(function (node) { return isVisibleCached(visibilityCache, node); })\n .filter(function (node) { return notHiddenInput(node); });\n};\nexport var filterAutoFocusable = function (nodes, cache) {\n if (cache === void 0) { cache = new Map(); }\n return toArray(nodes).filter(function (node) { return isAutoFocusAllowedCached(cache, node); });\n};\n/**\n * !__WARNING__! Low level API.\n * @returns all tabbable nodes\n *\n * @see {@link getFocusableNodes} to get any focusable element\n *\n * @param topNodes - array of top level HTMLElements to search inside\n * @param visibilityCache - an cache to store intermediate measurements. Expected to be a fresh `new Map` on every call\n */\nexport var getTabbableNodes = function (topNodes, visibilityCache, withGuards) {\n return orderByTabIndex(filterFocusable(getFocusables(topNodes, withGuards), visibilityCache), true, withGuards);\n};\n/**\n * !__WARNING__! Low level API.\n *\n * @returns anything \"focusable\", not only tabbable. The difference is in `tabIndex=-1`\n * (without guards, as long as they are not expected to be ever focused)\n *\n * @see {@link getTabbableNodes} to get only tabble nodes element\n *\n * @param topNodes - array of top level HTMLElements to search inside\n * @param visibilityCache - an cache to store intermediate measurements. Expected to be a fresh `new Map` on every call\n */\nexport var getFocusableNodes = function (topNodes, visibilityCache) {\n return orderByTabIndex(filterFocusable(getFocusables(topNodes), visibilityCache), false);\n};\n/**\n * return list of nodes which are expected to be auto-focused\n * @param topNode\n * @param visibilityCache\n */\nexport var parentAutofocusables = function (topNode, visibilityCache) {\n return filterFocusable(getParentAutofocusables(topNode), visibilityCache);\n};\n/*\n * Determines if element is contained in scope, including nested shadow DOMs\n */\nexport var contains = function (scope, element) {\n if (scope.shadowRoot) {\n return contains(scope.shadowRoot, element);\n }\n else {\n if (Object.getPrototypeOf(scope).contains !== undefined &&\n Object.getPrototypeOf(scope).contains.call(scope, element)) {\n return true;\n }\n return toArray(scope.children).some(function (child) {\n var _a;\n if (child instanceof HTMLIFrameElement) {\n var iframeBody = (_a = child.contentDocument) === null || _a === void 0 ? void 0 : _a.body;\n if (iframeBody) {\n return contains(iframeBody, element);\n }\n return false;\n }\n return contains(child, element);\n });\n }\n};\n","import { FOCUS_DISABLED, FOCUS_GROUP } from '../constants';\nimport { asArray, toArray } from './array';\n/**\n * in case of multiple nodes nested inside each other\n * keeps only top ones\n * this is O(nlogn)\n * @param nodes\n * @returns {*}\n */\nvar filterNested = function (nodes) {\n var contained = new Set();\n var l = nodes.length;\n for (var i = 0; i < l; i += 1) {\n for (var j = i + 1; j < l; j += 1) {\n var position = nodes[i].compareDocumentPosition(nodes[j]);\n /* eslint-disable no-bitwise */\n if ((position & Node.DOCUMENT_POSITION_CONTAINED_BY) > 0) {\n contained.add(j);\n }\n if ((position & Node.DOCUMENT_POSITION_CONTAINS) > 0) {\n contained.add(i);\n }\n /* eslint-enable */\n }\n }\n return nodes.filter(function (_, index) { return !contained.has(index); });\n};\n/**\n * finds top most parent for a node\n * @param node\n * @returns {*}\n */\nvar getTopParent = function (node) {\n return node.parentNode ? getTopParent(node.parentNode) : node;\n};\n/**\n * returns all \"focus containers\" inside a given node\n * @param node - node or nodes to look inside\n * @returns Element[]\n */\nexport var getAllAffectedNodes = function (node) {\n var nodes = asArray(node);\n return nodes.filter(Boolean).reduce(function (acc, currentNode) {\n var group = currentNode.getAttribute(FOCUS_GROUP);\n acc.push.apply(acc, (group\n ? filterNested(toArray(getTopParent(currentNode).querySelectorAll(\"[\".concat(FOCUS_GROUP, \"=\\\"\").concat(group, \"\\\"]:not([\").concat(FOCUS_DISABLED, \"=\\\"disabled\\\"])\"))))\n : [currentNode]));\n return acc;\n }, []);\n};\n","/**\n * returns active element from document or from nested shadowdoms\n */\nimport { safeProbe } from './safe';\n/**\n * returns current active element. If the active element is a \"container\" itself(shadowRoot or iframe) returns active element inside it\n * @param [inDocument]\n */\nexport var getActiveElement = function (inDocument) {\n if (inDocument === void 0) { inDocument = document; }\n if (!inDocument || !inDocument.activeElement) {\n return undefined;\n }\n var activeElement = inDocument.activeElement;\n return (activeElement.shadowRoot\n ? getActiveElement(activeElement.shadowRoot)\n : activeElement instanceof HTMLIFrameElement && safeProbe(function () { return activeElement.contentWindow.document; })\n ? getActiveElement(activeElement.contentWindow.document)\n : activeElement);\n};\n","export var safeProbe = function (cb) {\n try {\n return cb();\n }\n catch (e) {\n return undefined;\n }\n};\n","import { contains } from './utils/DOMutils';\nimport { getAllAffectedNodes } from './utils/all-affected';\nimport { getFirst, toArray } from './utils/array';\nimport { getActiveElement } from './utils/getActiveElement';\nvar focusInFrame = function (frame, activeElement) { return frame === activeElement; };\nvar focusInsideIframe = function (topNode, activeElement) {\n return Boolean(toArray(topNode.querySelectorAll('iframe')).some(function (node) { return focusInFrame(node, activeElement); }));\n};\n/**\n * @returns {Boolean} true, if the current focus is inside given node or nodes.\n * Supports nodes hidden inside shadowDom\n */\nexport var focusInside = function (topNode, activeElement) {\n // const activeElement = document && getActiveElement();\n if (activeElement === void 0) { activeElement = getActiveElement(getFirst(topNode).ownerDocument); }\n if (!activeElement || (activeElement.dataset && activeElement.dataset.focusGuard)) {\n return false;\n }\n return getAllAffectedNodes(topNode).some(function (node) {\n return contains(node, activeElement) || focusInsideIframe(node, activeElement);\n });\n};\n","import { isRadioElement } from './is';\nvar findSelectedRadio = function (node, nodes) {\n return nodes\n .filter(isRadioElement)\n .filter(function (el) { return el.name === node.name; })\n .filter(function (el) { return el.checked; })[0] || node;\n};\nexport var correctNode = function (node, nodes) {\n if (isRadioElement(node) && node.name) {\n return findSelectedRadio(node, nodes);\n }\n return node;\n};\n/**\n * giving a set of radio inputs keeps only selected (tabbable) ones\n * @param nodes\n */\nexport var correctNodes = function (nodes) {\n // IE11 has no Set(array) constructor\n var resultSet = new Set();\n nodes.forEach(function (node) { return resultSet.add(correctNode(node, nodes)); });\n // using filter to support IE11\n return nodes.filter(function (node) { return resultSet.has(node); });\n};\n","import { correctNode } from './correctFocus';\nexport var pickFirstFocus = function (nodes) {\n if (nodes[0] && nodes.length > 1) {\n return correctNode(nodes[0], nodes);\n }\n return nodes[0];\n};\nexport var pickFocusable = function (nodes, node) {\n return nodes.indexOf(correctNode(node, nodes));\n};\n","import { correctNodes } from './utils/correctFocus';\nimport { pickFocusable } from './utils/firstFocus';\nimport { isGuard } from './utils/is';\nexport var NEW_FOCUS = 'NEW_FOCUS';\n/**\n * Main solver for the \"find next focus\" question\n * @param innerNodes - used to control \"return focus\"\n * @param innerTabbables - used to control \"autofocus\"\n * @param outerNodes\n * @param activeElement\n * @param lastNode\n * @returns {number|string|undefined|*}\n */\nexport var newFocus = function (innerNodes, innerTabbables, outerNodes, activeElement, lastNode) {\n var cnt = innerNodes.length;\n var firstFocus = innerNodes[0];\n var lastFocus = innerNodes[cnt - 1];\n var isOnGuard = isGuard(activeElement);\n // focus is inside\n if (activeElement && innerNodes.indexOf(activeElement) >= 0) {\n return undefined;\n }\n var activeIndex = activeElement !== undefined ? outerNodes.indexOf(activeElement) : -1;\n var lastIndex = lastNode ? outerNodes.indexOf(lastNode) : activeIndex;\n var lastNodeInside = lastNode ? innerNodes.indexOf(lastNode) : -1;\n // no active focus (or focus is on the body)\n if (activeIndex === -1) {\n // known fallback\n if (lastNodeInside !== -1) {\n return lastNodeInside;\n }\n return NEW_FOCUS;\n }\n // new focus, nothing to calculate\n if (lastNodeInside === -1) {\n return NEW_FOCUS;\n }\n var indexDiff = activeIndex - lastIndex;\n var firstNodeIndex = outerNodes.indexOf(firstFocus);\n var lastNodeIndex = outerNodes.indexOf(lastFocus);\n var correctedNodes = correctNodes(outerNodes);\n var currentFocusableIndex = activeElement !== undefined ? correctedNodes.indexOf(activeElement) : -1;\n var previousFocusableIndex = lastNode ? correctedNodes.indexOf(lastNode) : currentFocusableIndex;\n var tabbableNodes = correctedNodes.filter(function (node) { return node.tabIndex >= 0; });\n var currentTabbableIndex = activeElement !== undefined ? tabbableNodes.indexOf(activeElement) : -1;\n var previousTabbableIndex = lastNode ? tabbableNodes.indexOf(lastNode) : currentTabbableIndex;\n var focusIndexDiff = currentTabbableIndex >= 0 && previousTabbableIndex >= 0\n ? // old/new are tabbables, measure distance in tabbable space\n previousTabbableIndex - currentTabbableIndex\n : // or else measure in focusable space\n previousFocusableIndex - currentFocusableIndex;\n // old focus\n if (!indexDiff && lastNodeInside >= 0) {\n return lastNodeInside;\n }\n // no tabbable elements, autofocus is not possible\n if (innerTabbables.length === 0) {\n // an edge case with no tabbable elements\n // return the last focusable one\n // with some probability this will prevent focus from cycling across the lock, but there is no tabbale elements to cycle to\n return lastNodeInside;\n }\n var returnFirstNode = pickFocusable(innerNodes, innerTabbables[0]);\n var returnLastNode = pickFocusable(innerNodes, innerTabbables[innerTabbables.length - 1]);\n // first element\n if (activeIndex <= firstNodeIndex && isOnGuard && Math.abs(indexDiff) > 1) {\n return returnLastNode;\n }\n // last element\n if (activeIndex >= lastNodeIndex && isOnGuard && Math.abs(indexDiff) > 1) {\n return returnFirstNode;\n }\n // jump out, but not on the guard\n if (indexDiff && Math.abs(focusIndexDiff) > 1) {\n return lastNodeInside;\n }\n // focus above lock\n if (activeIndex <= firstNodeIndex) {\n return returnLastNode;\n }\n // focus below lock\n if (activeIndex > lastNodeIndex) {\n return returnFirstNode;\n }\n // index is inside tab order, but outside Lock\n if (indexDiff) {\n if (Math.abs(indexDiff) > 1) {\n return lastNodeInside;\n }\n return (cnt + lastNodeInside + indexDiff) % cnt;\n }\n // do nothing\n return undefined;\n};\n","import { filterAutoFocusable } from './DOMutils';\nimport { pickFirstFocus } from './firstFocus';\nimport { getDataset } from './is';\nvar findAutoFocused = function (autoFocusables) {\n return function (node) {\n var _a;\n var autofocus = (_a = getDataset(node)) === null || _a === void 0 ? void 0 : _a.autofocus;\n return (\n // @ts-expect-error\n node.autofocus ||\n //\n (autofocus !== undefined && autofocus !== 'false') ||\n //\n autoFocusables.indexOf(node) >= 0);\n };\n};\nexport var pickAutofocus = function (nodesIndexes, orderedNodes, groups) {\n var nodes = nodesIndexes.map(function (_a) {\n var node = _a.node;\n return node;\n });\n var autoFocusable = filterAutoFocusable(nodes.filter(findAutoFocused(groups)));\n if (autoFocusable && autoFocusable.length) {\n return pickFirstFocus(autoFocusable);\n }\n return pickFirstFocus(filterAutoFocusable(orderedNodes));\n};\n","import { parentAutofocusables } from './DOMutils';\nimport { contains } from './DOMutils';\nimport { asArray } from './array';\nvar getParents = function (node, parents) {\n if (parents === void 0) { parents = []; }\n parents.push(node);\n if (node.parentNode) {\n getParents(node.parentNode.host || node.parentNode, parents);\n }\n return parents;\n};\n/**\n * finds a parent for both nodeA and nodeB\n * @param nodeA\n * @param nodeB\n * @returns {boolean|*}\n */\nexport var getCommonParent = function (nodeA, nodeB) {\n var parentsA = getParents(nodeA);\n var parentsB = getParents(nodeB);\n // tslint:disable-next-line:prefer-for-of\n for (var i = 0; i < parentsA.length; i += 1) {\n var currentParent = parentsA[i];\n if (parentsB.indexOf(currentParent) >= 0) {\n return currentParent;\n }\n }\n return false;\n};\nexport var getTopCommonParent = function (baseActiveElement, leftEntry, rightEntries) {\n var activeElements = asArray(baseActiveElement);\n var leftEntries = asArray(leftEntry);\n var activeElement = activeElements[0];\n var topCommon = false;\n leftEntries.filter(Boolean).forEach(function (entry) {\n topCommon = getCommonParent(topCommon || entry, entry) || topCommon;\n rightEntries.filter(Boolean).forEach(function (subEntry) {\n var common = getCommonParent(activeElement, subEntry);\n if (common) {\n if (!topCommon || contains(common, topCommon)) {\n topCommon = common;\n }\n else {\n topCommon = getCommonParent(common, topCommon);\n }\n }\n });\n });\n // TODO: add assert here?\n return topCommon;\n};\n/**\n * return list of nodes which are expected to be autofocused inside a given top nodes\n * @param entries\n * @param visibilityCache\n */\nexport var allParentAutofocusables = function (entries, visibilityCache) {\n return entries.reduce(function (acc, node) { return acc.concat(parentAutofocusables(node, visibilityCache)); }, []);\n};\n","import { NEW_FOCUS, newFocus } from './solver';\nimport { getFocusableNodes } from './utils/DOMutils';\nimport { getAllAffectedNodes } from './utils/all-affected';\nimport { asArray, getFirst } from './utils/array';\nimport { pickAutofocus } from './utils/auto-focus';\nimport { getActiveElement } from './utils/getActiveElement';\nimport { isDefined, isNotAGuard } from './utils/is';\nimport { allParentAutofocusables, getTopCommonParent } from './utils/parenting';\nvar reorderNodes = function (srcNodes, dstNodes) {\n var remap = new Map();\n // no Set(dstNodes) for IE11 :(\n dstNodes.forEach(function (entity) { return remap.set(entity.node, entity); });\n // remap to dstNodes\n return srcNodes.map(function (node) { return remap.get(node); }).filter(isDefined);\n};\n/**\n * contains the main logic of the `focus-lock` package.\n *\n * ! you probably dont need this function !\n *\n * given top node(s) and the last active element returns the element to be focused next\n * @returns element which should be focused to move focus inside\n * @param topNode\n * @param lastNode\n */\nexport var focusSolver = function (topNode, lastNode) {\n var activeElement = getActiveElement(asArray(topNode).length > 0 ? document : getFirst(topNode).ownerDocument);\n var entries = getAllAffectedNodes(topNode).filter(isNotAGuard);\n var commonParent = getTopCommonParent(activeElement || topNode, topNode, entries);\n var visibilityCache = new Map();\n var anyFocusable = getFocusableNodes(entries, visibilityCache);\n var innerElements = anyFocusable.filter(function (_a) {\n var node = _a.node;\n return isNotAGuard(node);\n });\n if (!innerElements[0]) {\n return undefined;\n }\n var outerNodes = getFocusableNodes([commonParent], visibilityCache).map(function (_a) {\n var node = _a.node;\n return node;\n });\n var orderedInnerElements = reorderNodes(outerNodes, innerElements);\n // collect inner focusable and separately tabbables\n var innerFocusables = orderedInnerElements.map(function (_a) {\n var node = _a.node;\n return node;\n });\n var innerTabbable = orderedInnerElements.filter(function (_a) {\n var tabIndex = _a.tabIndex;\n return tabIndex >= 0;\n }).map(function (_a) {\n var node = _a.node;\n return node;\n });\n var newId = newFocus(innerFocusables, innerTabbable, outerNodes, activeElement, lastNode);\n if (newId === NEW_FOCUS) {\n var focusNode = \n // first try only tabbable, and the fallback to all focusable, as long as at least one element should be picked for focus\n pickAutofocus(anyFocusable, innerTabbable, allParentAutofocusables(entries, visibilityCache)) ||\n pickAutofocus(anyFocusable, innerFocusables, allParentAutofocusables(entries, visibilityCache));\n if (focusNode) {\n return { node: focusNode };\n }\n else {\n console.warn('focus-lock: cannot find any node to move focus into');\n return undefined;\n }\n }\n if (newId === undefined) {\n return newId;\n }\n return orderedInnerElements[newId];\n};\n","export var focusOn = function (target, focusOptions) {\n if (!target) {\n // not clear how, but is possible https://github.com/theKashey/focus-lock/issues/53\n return;\n }\n if ('focus' in target) {\n target.focus(focusOptions);\n }\n if ('contentWindow' in target && target.contentWindow) {\n target.contentWindow.focus();\n }\n};\n","import { focusOn } from './commands';\nimport { focusSolver } from './focusSolver';\nvar guardCount = 0;\nvar lockDisabled = false;\n/**\n * The main functionality of the focus-lock package\n *\n * Contains focus at a given node.\n * The last focused element will help to determine which element(first or last) should be focused.\n * The found element will be focused.\n *\n * This is one time action (move), not a persistent focus-lock\n *\n * HTML markers (see {@link import('./constants').FOCUS_AUTO} constants) can control autofocus\n * @see {@link focusSolver} for the same functionality without autofocus\n */\nexport var moveFocusInside = function (topNode, lastNode, options) {\n if (options === void 0) { options = {}; }\n var focusable = focusSolver(topNode, lastNode);\n // global local side effect to countain recursive lock activation and resolve focus-fighting\n if (lockDisabled) {\n return;\n }\n if (focusable) {\n /** +FOCUS-FIGHTING prevention **/\n if (guardCount > 2) {\n // we have recursive entered back the lock activation\n console.error('FocusLock: focus-fighting detected. Only one focus management system could be active. ' +\n 'See https://github.com/theKashey/focus-lock/#focus-fighting');\n lockDisabled = true;\n setTimeout(function () {\n lockDisabled = false;\n }, 1);\n return;\n }\n guardCount++;\n focusOn(focusable.node, options.focusOptions);\n guardCount--;\n }\n};\n","import { getTabbableNodes } from './utils/DOMutils';\nfunction weakRef(value) {\n if (!value)\n return null;\n // #68 Safari 14.1 dont have it yet\n // FIXME: remove in 2025\n if (typeof WeakRef === 'undefined') {\n return function () { return value || null; };\n }\n var w = value ? new WeakRef(value) : null;\n return function () { return (w === null || w === void 0 ? void 0 : w.deref()) || null; };\n}\nexport var recordElementLocation = function (element) {\n if (!element) {\n return null;\n }\n var stack = [];\n var currentElement = element;\n while (currentElement && currentElement !== document.body) {\n stack.push({\n current: weakRef(currentElement),\n parent: weakRef(currentElement.parentElement),\n left: weakRef(currentElement.previousElementSibling),\n right: weakRef(currentElement.nextElementSibling),\n });\n currentElement = currentElement.parentElement;\n }\n return {\n element: weakRef(element),\n stack: stack,\n ownerDocument: element.ownerDocument,\n };\n};\nvar restoreFocusTo = function (location) {\n var _a, _b, _c, _d, _e;\n if (!location) {\n return undefined;\n }\n var stack = location.stack, ownerDocument = location.ownerDocument;\n var visibilityCache = new Map();\n for (var _i = 0, stack_1 = stack; _i < stack_1.length; _i++) {\n var line = stack_1[_i];\n var parent_1 = (_a = line.parent) === null || _a === void 0 ? void 0 : _a.call(line);\n // is it still here?\n if (parent_1 && ownerDocument.contains(parent_1)) {\n var left = (_b = line.left) === null || _b === void 0 ? void 0 : _b.call(line);\n var savedCurrent = line.current();\n var current = parent_1.contains(savedCurrent) ? savedCurrent : undefined;\n var right = (_c = line.right) === null || _c === void 0 ? void 0 : _c.call(line);\n var focusables = getTabbableNodes([parent_1], visibilityCache);\n var aim = \n // that is element itself\n (_e = (_d = current !== null && current !== void 0 ? current : \n // or something in it's place\n left === null || left === void 0 ? void 0 : left.nextElementSibling) !== null && _d !== void 0 ? _d : \n // or somebody to the right, still close enough\n right) !== null && _e !== void 0 ? _e : \n // or somebody to the left, something?\n left;\n while (aim) {\n for (var _f = 0, focusables_1 = focusables; _f < focusables_1.length; _f++) {\n var focusable = focusables_1[_f];\n if (aim === null || aim === void 0 ? void 0 : aim.contains(focusable.node)) {\n return focusable.node;\n }\n }\n aim = aim.nextElementSibling;\n }\n if (focusables.length) {\n // if parent contains a focusable - move there\n return focusables[0].node;\n }\n }\n }\n // nothing matched\n return undefined;\n};\n/**\n * Captures the current focused element to restore focus as close as possible in the future\n * Handles situations where the focused element is removed from the DOM or no longer focusable\n * moving focus to the closest focusable element\n * @param targetElement - element where focus should be restored\n * @returns a function returning a new element to focus\n */\nexport var captureFocusRestore = function (targetElement) {\n var location = recordElementLocation(targetElement);\n return function () {\n return restoreFocusTo(location);\n };\n};\n","import { focusOn } from './commands';\nimport { getTabbableNodes, contains, getFocusableNodes } from './utils/DOMutils';\nimport { asArray } from './utils/array';\n/**\n * for a given `element` in a given `scope` returns focusable siblings\n * @param element - base element\n * @param scope - common parent. Can be document, but better to narrow it down for performance reasons\n * @returns {prev,next} - references to a focusable element before and after\n * @returns undefined - if operation is not applicable\n */\nexport var getRelativeFocusable = function (element, scope, useTabbables) {\n if (!element || !scope) {\n console.error('no element or scope given');\n return {};\n }\n var shards = asArray(scope);\n if (shards.every(function (shard) { return !contains(shard, element); })) {\n console.error('Active element is not contained in the scope');\n return {};\n }\n var focusables = useTabbables\n ? getTabbableNodes(shards, new Map())\n : getFocusableNodes(shards, new Map());\n var current = focusables.findIndex(function (_a) {\n var node = _a.node;\n return node === element;\n });\n if (current === -1) {\n // an edge case, when anchor element is not found\n return undefined;\n }\n return {\n prev: focusables[current - 1],\n next: focusables[current + 1],\n first: focusables[0],\n last: focusables[focusables.length - 1],\n };\n};\nvar getBoundary = function (shards, useTabbables) {\n var set = useTabbables\n ? getTabbableNodes(asArray(shards), new Map())\n : getFocusableNodes(asArray(shards), new Map());\n return {\n first: set[0],\n last: set[set.length - 1],\n };\n};\nvar defaultOptions = function (options) {\n return Object.assign({\n scope: document.body,\n cycle: true,\n onlyTabbable: true,\n }, options);\n};\nvar moveFocus = function (fromElement, options, cb) {\n if (options === void 0) { options = {}; }\n var newOptions = defaultOptions(options);\n var solution = getRelativeFocusable(fromElement, newOptions.scope, newOptions.onlyTabbable);\n if (!solution) {\n return;\n }\n var target = cb(solution, newOptions.cycle);\n if (target) {\n focusOn(target.node, newOptions.focusOptions);\n }\n};\n/**\n * focuses next element in the tab-order\n * @param fromElement - common parent to scope active element search or tab cycle order\n * @param {FocusNextOptions} [options] - focus options\n */\nexport var focusNextElement = function (fromElement, options) {\n if (options === void 0) { options = {}; }\n moveFocus(fromElement, options, function (_a, cycle) {\n var next = _a.next, first = _a.first;\n return next || (cycle && first);\n });\n};\n/**\n * focuses prev element in the tab order\n * @param fromElement - common parent to scope active element search or tab cycle order\n * @param {FocusNextOptions} [options] - focus options\n */\nexport var focusPrevElement = function (fromElement, options) {\n if (options === void 0) { options = {}; }\n moveFocus(fromElement, options, function (_a, cycle) {\n var prev = _a.prev, last = _a.last;\n return prev || (cycle && last);\n });\n};\nvar pickBoundary = function (scope, options, what) {\n var _a;\n var boundary = getBoundary(scope, (_a = options.onlyTabbable) !== null && _a !== void 0 ? _a : true);\n var node = boundary[what];\n if (node) {\n focusOn(node.node, options.focusOptions);\n }\n};\n/**\n * focuses first element in the tab-order\n * @param {FocusNextOptions} options - focus options\n */\nexport var focusFirstElement = function (scope, options) {\n if (options === void 0) { options = {}; }\n pickBoundary(scope, options, 'first');\n};\n/**\n * focuses last element in the tab order\n * @param {FocusNextOptions} options - focus options\n */\nexport var focusLastElement = function (scope, options) {\n if (options === void 0) { options = {}; }\n pickBoundary(scope, options, 'last');\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport withSideEffect from 'react-clientside-effect';\nimport { moveFocusInside, focusInside, focusIsHidden, expandFocusableNodes, getFocusableNodes, focusNextElement, focusPrevElement, focusFirstElement, focusLastElement, captureFocusRestore } from 'focus-lock';\nimport { deferAction, extractRef } from './util';\nimport { mediumFocus, mediumBlur, mediumEffect } from './medium';\nvar focusOnBody = function focusOnBody() {\n return document && document.activeElement === document.body;\n};\nvar isFreeFocus = function isFreeFocus() {\n return focusOnBody() || focusIsHidden();\n};\nvar lastActiveTrap = null;\nvar lastActiveFocus = null;\nvar tryRestoreFocus = function tryRestoreFocus() {\n return null;\n};\nvar lastPortaledElement = null;\nvar focusWasOutsideWindow = false;\nvar windowFocused = false;\nvar defaultWhitelist = function defaultWhitelist() {\n return true;\n};\nvar focusWhitelisted = function focusWhitelisted(activeElement) {\n return (lastActiveTrap.whiteList || defaultWhitelist)(activeElement);\n};\nvar recordPortal = function recordPortal(observerNode, portaledElement) {\n lastPortaledElement = {\n observerNode: observerNode,\n portaledElement: portaledElement\n };\n};\nvar focusIsPortaledPair = function focusIsPortaledPair(element) {\n return lastPortaledElement && lastPortaledElement.portaledElement === element;\n};\nfunction autoGuard(startIndex, end, step, allNodes) {\n var lastGuard = null;\n var i = startIndex;\n do {\n var item = allNodes[i];\n if (item.guard) {\n if (item.node.dataset.focusAutoGuard) {\n lastGuard = item;\n }\n } else if (item.lockItem) {\n if (i !== startIndex) {\n return;\n }\n lastGuard = null;\n } else {\n break;\n }\n } while ((i += step) !== end);\n if (lastGuard) {\n lastGuard.node.tabIndex = 0;\n }\n}\nvar focusWasOutside = function focusWasOutside(crossFrameOption) {\n if (crossFrameOption) {\n return Boolean(focusWasOutsideWindow);\n }\n return focusWasOutsideWindow === 'meanwhile';\n};\nvar checkInHost = function checkInHost(check, el, boundary) {\n return el && (el.host === check && (!el.activeElement || boundary.contains(el.activeElement)) || el.parentNode && checkInHost(check, el.parentNode, boundary));\n};\nvar withinHost = function withinHost(activeElement, workingArea) {\n return workingArea.some(function (area) {\n return checkInHost(activeElement, area, area);\n });\n};\nvar getNodeFocusables = function getNodeFocusables(nodes) {\n return getFocusableNodes(nodes, new Map());\n};\nvar isNotFocusable = function isNotFocusable(node) {\n return !getNodeFocusables([node.parentNode]).some(function (el) {\n return el.node === node;\n });\n};\nvar activateTrap = function activateTrap() {\n var result = false;\n if (lastActiveTrap) {\n var _lastActiveTrap = lastActiveTrap,\n observed = _lastActiveTrap.observed,\n persistentFocus = _lastActiveTrap.persistentFocus,\n autoFocus = _lastActiveTrap.autoFocus,\n shards = _lastActiveTrap.shards,\n crossFrame = _lastActiveTrap.crossFrame,\n focusOptions = _lastActiveTrap.focusOptions,\n noFocusGuards = _lastActiveTrap.noFocusGuards;\n var workingNode = observed || lastPortaledElement && lastPortaledElement.portaledElement;\n if (focusOnBody() && lastActiveFocus && lastActiveFocus !== document.body) {\n if (!document.body.contains(lastActiveFocus) || isNotFocusable(lastActiveFocus)) {\n var newTarget = tryRestoreFocus();\n if (newTarget) {\n newTarget.focus();\n }\n }\n }\n var activeElement = document && document.activeElement;\n if (workingNode) {\n var workingArea = [workingNode].concat(shards.map(extractRef).filter(Boolean));\n var shouldForceRestoreFocus = function shouldForceRestoreFocus() {\n if (!focusWasOutside(crossFrame) || !noFocusGuards || !lastActiveFocus || windowFocused) {\n return false;\n }\n var nodes = getNodeFocusables(workingArea);\n var lastIndex = nodes.findIndex(function (_ref) {\n var node = _ref.node;\n return node === lastActiveFocus;\n });\n return lastIndex === 0 || lastIndex === nodes.length - 1;\n };\n if (!activeElement || focusWhitelisted(activeElement)) {\n if (persistentFocus || shouldForceRestoreFocus() || !isFreeFocus() || !lastActiveFocus && autoFocus) {\n if (workingNode && !(focusInside(workingArea) || activeElement && withinHost(activeElement, workingArea) || focusIsPortaledPair(activeElement, workingNode))) {\n if (document && !lastActiveFocus && activeElement && !autoFocus) {\n if (activeElement.blur) {\n activeElement.blur();\n }\n document.body.focus();\n } else {\n result = moveFocusInside(workingArea, lastActiveFocus, {\n focusOptions: focusOptions\n });\n lastPortaledElement = {};\n }\n }\n lastActiveFocus = document && document.activeElement;\n if (lastActiveFocus !== document.body) {\n tryRestoreFocus = captureFocusRestore(lastActiveFocus);\n }\n focusWasOutsideWindow = false;\n }\n }\n if (document && activeElement !== document.activeElement && document.querySelector('[data-focus-auto-guard]')) {\n var newActiveElement = document && document.activeElement;\n var allNodes = expandFocusableNodes(workingArea);\n var focusedIndex = allNodes.map(function (_ref2) {\n var node = _ref2.node;\n return node;\n }).indexOf(newActiveElement);\n if (focusedIndex > -1) {\n allNodes.filter(function (_ref3) {\n var guard = _ref3.guard,\n node = _ref3.node;\n return guard && node.dataset.focusAutoGuard;\n }).forEach(function (_ref4) {\n var node = _ref4.node;\n return node.removeAttribute('tabIndex');\n });\n autoGuard(focusedIndex, allNodes.length, +1, allNodes);\n autoGuard(focusedIndex, -1, -1, allNodes);\n }\n }\n }\n }\n return result;\n};\nvar onTrap = function onTrap(event) {\n if (activateTrap() && event) {\n event.stopPropagation();\n event.preventDefault();\n }\n};\nvar onBlur = function onBlur() {\n return deferAction(activateTrap);\n};\nvar onFocus = function onFocus(event) {\n var source = event.target;\n var currentNode = event.currentTarget;\n if (!currentNode.contains(source)) {\n recordPortal(currentNode, source);\n }\n};\nvar FocusWatcher = function FocusWatcher() {\n return null;\n};\nvar FocusTrap = function FocusTrap(_ref5) {\n var children = _ref5.children;\n return /*#__PURE__*/React.createElement(\"div\", {\n onBlur: onBlur,\n onFocus: onFocus\n }, children);\n};\nFocusTrap.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: PropTypes.node.isRequired\n} : {};\nvar onWindowFocus = function onWindowFocus() {\n windowFocused = true;\n};\nvar onWindowBlur = function onWindowBlur() {\n windowFocused = false;\n focusWasOutsideWindow = 'just';\n deferAction(function () {\n focusWasOutsideWindow = 'meanwhile';\n });\n};\nvar attachHandler = function attachHandler() {\n document.addEventListener('focusin', onTrap);\n document.addEventListener('focusout', onBlur);\n window.addEventListener('focus', onWindowFocus);\n window.addEventListener('blur', onWindowBlur);\n};\nvar detachHandler = function detachHandler() {\n document.removeEventListener('focusin', onTrap);\n document.removeEventListener('focusout', onBlur);\n window.removeEventListener('focus', onWindowFocus);\n window.removeEventListener('blur', onWindowBlur);\n};\nfunction reducePropsToState(propsList) {\n return propsList.filter(function (_ref6) {\n var disabled = _ref6.disabled;\n return !disabled;\n });\n}\nvar focusLockAPI = {\n moveFocusInside: moveFocusInside,\n focusInside: focusInside,\n focusNextElement: focusNextElement,\n focusPrevElement: focusPrevElement,\n focusFirstElement: focusFirstElement,\n focusLastElement: focusLastElement,\n captureFocusRestore: captureFocusRestore\n};\nfunction handleStateChangeOnClient(traps) {\n var trap = traps.slice(-1)[0];\n if (trap && !lastActiveTrap) {\n attachHandler();\n }\n var lastTrap = lastActiveTrap;\n var sameTrap = lastTrap && trap && trap.id === lastTrap.id;\n lastActiveTrap = trap;\n if (lastTrap && !sameTrap) {\n lastTrap.onDeactivation();\n if (!traps.filter(function (_ref7) {\n var id = _ref7.id;\n return id === lastTrap.id;\n }).length) {\n lastTrap.returnFocus(!trap);\n }\n }\n if (trap) {\n lastActiveFocus = null;\n if (!sameTrap || lastTrap.observed !== trap.observed) {\n trap.onActivation(focusLockAPI);\n }\n activateTrap(true);\n deferAction(activateTrap);\n } else {\n detachHandler();\n lastActiveFocus = null;\n }\n}\nmediumFocus.assignSyncMedium(onFocus);\nmediumBlur.assignMedium(onBlur);\nmediumEffect.assignMedium(function (cb) {\n return cb(focusLockAPI);\n});\nexport default withSideEffect(reducePropsToState, handleStateChangeOnClient)(FocusWatcher);","import { FOCUS_ALLOW } from './constants';\nimport { contains } from './utils/DOMutils';\nimport { toArray } from './utils/array';\nimport { getActiveElement } from './utils/getActiveElement';\n/**\n * checks if focus is hidden FROM the focus-lock\n * ie contained inside a node focus-lock shall ignore\n *\n * This is a utility function coupled with {@link FOCUS_ALLOW} constant\n *\n * @returns {boolean} focus is currently is in \"allow\" area\n */\nexport var focusIsHidden = function (inDocument) {\n if (inDocument === void 0) { inDocument = document; }\n var activeElement = getActiveElement(inDocument);\n if (!activeElement) {\n return false;\n }\n // this does not support setting FOCUS_ALLOW within shadow dom\n return toArray(inDocument.querySelectorAll(\"[\".concat(FOCUS_ALLOW, \"]\"))).some(function (node) { return contains(node, activeElement); });\n};\n","import { getAllAffectedNodes } from './utils/all-affected';\nimport { isGuard, isNotAGuard } from './utils/is';\nimport { getTopCommonParent } from './utils/parenting';\nimport { orderByTabIndex } from './utils/tabOrder';\nimport { getFocusables } from './utils/tabUtils';\n/**\n * traverses all related nodes (including groups) returning a list of all nodes(outer and internal) with meta information\n * This is low-level API!\n * @returns list of focusable elements inside a given top(!) node.\n * @see {@link getFocusableNodes} providing a simpler API\n */\nexport var expandFocusableNodes = function (topNode) {\n var entries = getAllAffectedNodes(topNode).filter(isNotAGuard);\n var commonParent = getTopCommonParent(topNode, topNode, entries);\n var outerNodes = orderByTabIndex(getFocusables([commonParent], true), true, true);\n var innerElements = getFocusables(entries, false);\n return outerNodes.map(function (_a) {\n var node = _a.node, index = _a.index;\n return ({\n node: node,\n index: index,\n lockItem: innerElements.indexOf(node) >= 0,\n guard: isGuard(node),\n });\n });\n};\n","import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport _defineProperty from '@babel/runtime/helpers/esm/defineProperty';\nimport React, { PureComponent } from 'react';\n\nfunction withSideEffect(reducePropsToState, handleStateChangeOnClient) {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof reducePropsToState !== 'function') {\n throw new Error('Expected reducePropsToState to be a function.');\n }\n\n if (typeof handleStateChangeOnClient !== 'function') {\n throw new Error('Expected handleStateChangeOnClient to be a function.');\n }\n }\n\n function getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n }\n\n return function wrap(WrappedComponent) {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof WrappedComponent !== 'function') {\n throw new Error('Expected WrappedComponent to be a React component.');\n }\n }\n\n var mountedInstances = [];\n var state;\n\n function emitChange() {\n state = reducePropsToState(mountedInstances.map(function (instance) {\n return instance.props;\n }));\n handleStateChangeOnClient(state);\n }\n\n var SideEffect = /*#__PURE__*/function (_PureComponent) {\n _inheritsLoose(SideEffect, _PureComponent);\n\n function SideEffect() {\n return _PureComponent.apply(this, arguments) || this;\n }\n\n // Try to use displayName of wrapped component\n SideEffect.peek = function peek() {\n return state;\n };\n\n var _proto = SideEffect.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n mountedInstances.push(this);\n emitChange();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n emitChange();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n var index = mountedInstances.indexOf(this);\n mountedInstances.splice(index, 1);\n emitChange();\n };\n\n _proto.render = function render() {\n return /*#__PURE__*/React.createElement(WrappedComponent, this.props);\n };\n\n return SideEffect;\n }(PureComponent);\n\n _defineProperty(SideEffect, \"displayName\", \"SideEffect(\" + getDisplayName(WrappedComponent) + \")\");\n\n return SideEffect;\n };\n}\n\nexport default withSideEffect;\n","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nexport { _defineProperty as default };","import { exportSidecar } from 'use-sidecar';\nimport FocusTrap from './Trap';\nimport { mediumSidecar } from './medium';\nexport default exportSidecar(mediumSidecar, FocusTrap);","import { getNonce } from 'get-nonce';\nfunction makeStyleTag() {\n if (!document)\n return null;\n var tag = document.createElement('style');\n tag.type = 'text/css';\n var nonce = getNonce();\n if (nonce) {\n tag.setAttribute('nonce', nonce);\n }\n return tag;\n}\nfunction injectStyles(tag, css) {\n // @ts-ignore\n if (tag.styleSheet) {\n // @ts-ignore\n tag.styleSheet.cssText = css;\n }\n else {\n tag.appendChild(document.createTextNode(css));\n }\n}\nfunction insertStyleTag(tag) {\n var head = document.head || document.getElementsByTagName('head')[0];\n head.appendChild(tag);\n}\nexport var stylesheetSingleton = function () {\n var counter = 0;\n var stylesheet = null;\n return {\n add: function (style) {\n if (counter == 0) {\n if ((stylesheet = makeStyleTag())) {\n injectStyles(stylesheet, style);\n insertStyleTag(stylesheet);\n }\n }\n counter++;\n },\n remove: function () {\n counter--;\n if (!counter && stylesheet) {\n stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);\n stylesheet = null;\n }\n },\n };\n};\n","var currentNonce;\nexport var setNonce = function (nonce) {\n currentNonce = nonce;\n};\nexport var getNonce = function () {\n if (currentNonce) {\n return currentNonce;\n }\n if (typeof __webpack_nonce__ !== 'undefined') {\n return __webpack_nonce__;\n }\n return undefined;\n};\n","import { styleHookSingleton } from './hook';\n/**\n * create a Component to add styles on demand\n * - styles are added when first instance is mounted\n * - styles are removed when the last instance is unmounted\n * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior\n */\nexport var styleSingleton = function () {\n var useStyle = styleHookSingleton();\n var Sheet = function (_a) {\n var styles = _a.styles, dynamic = _a.dynamic;\n useStyle(styles, dynamic);\n return null;\n };\n return Sheet;\n};\n","import * as React from 'react';\nimport { stylesheetSingleton } from './singleton';\n/**\n * creates a hook to control style singleton\n * @see {@link styleSingleton} for a safer component version\n * @example\n * ```tsx\n * const useStyle = styleHookSingleton();\n * ///\n * useStyle('body { overflow: hidden}');\n */\nexport var styleHookSingleton = function () {\n var sheet = stylesheetSingleton();\n return function (styles, isDynamic) {\n React.useEffect(function () {\n sheet.add(styles);\n return function () {\n sheet.remove();\n };\n }, [styles && isDynamic]);\n };\n};\n","export var zeroGap = {\n left: 0,\n top: 0,\n right: 0,\n gap: 0,\n};\nvar parse = function (x) { return parseInt(x || '', 10) || 0; };\nvar getOffset = function (gapMode) {\n var cs = window.getComputedStyle(document.body);\n var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];\n var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];\n var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];\n return [parse(left), parse(top), parse(right)];\n};\nexport var getGapWidth = function (gapMode) {\n if (gapMode === void 0) { gapMode = 'margin'; }\n if (typeof window === 'undefined') {\n return zeroGap;\n }\n var offsets = getOffset(gapMode);\n var documentWidth = document.documentElement.clientWidth;\n var windowWidth = window.innerWidth;\n return {\n left: offsets[0],\n top: offsets[1],\n right: offsets[2],\n gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),\n };\n};\n","import * as React from 'react';\nimport { styleSingleton } from 'react-style-singleton';\nimport { fullWidthClassName, zeroRightClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';\nimport { getGapWidth } from './utils';\nvar Style = styleSingleton();\nexport var lockAttribute = 'data-scroll-locked';\n// important tip - once we measure scrollBar width and remove them\n// we could not repeat this operation\n// thus we are using style-singleton - only the first \"yet correct\" style will be applied.\nvar getStyles = function (_a, allowRelative, gapMode, important) {\n var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;\n if (gapMode === void 0) { gapMode = 'margin'; }\n return \"\\n .\".concat(noScrollbarsClassName, \" {\\n overflow: hidden \").concat(important, \";\\n padding-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n body[\").concat(lockAttribute, \"] {\\n overflow: hidden \").concat(important, \";\\n overscroll-behavior: contain;\\n \").concat([\n allowRelative && \"position: relative \".concat(important, \";\"),\n gapMode === 'margin' &&\n \"\\n padding-left: \".concat(left, \"px;\\n padding-top: \").concat(top, \"px;\\n padding-right: \").concat(right, \"px;\\n margin-left:0;\\n margin-top:0;\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n \"),\n gapMode === 'padding' && \"padding-right: \".concat(gap, \"px \").concat(important, \";\"),\n ]\n .filter(Boolean)\n .join(''), \"\\n }\\n \\n .\").concat(zeroRightClassName, \" {\\n right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" {\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(zeroRightClassName, \" .\").concat(zeroRightClassName, \" {\\n right: 0 \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" .\").concat(fullWidthClassName, \" {\\n margin-right: 0 \").concat(important, \";\\n }\\n \\n body[\").concat(lockAttribute, \"] {\\n \").concat(removedBarSizeVariable, \": \").concat(gap, \"px;\\n }\\n\");\n};\nvar getCurrentUseCounter = function () {\n var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);\n return isFinite(counter) ? counter : 0;\n};\nexport var useLockAttribute = function () {\n React.useEffect(function () {\n document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());\n return function () {\n var newCounter = getCurrentUseCounter() - 1;\n if (newCounter <= 0) {\n document.body.removeAttribute(lockAttribute);\n }\n else {\n document.body.setAttribute(lockAttribute, newCounter.toString());\n }\n };\n }, []);\n};\n/**\n * Removes page scrollbar and blocks page scroll when mounted\n */\nexport var RemoveScrollBar = function (_a) {\n var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;\n useLockAttribute();\n /*\n gap will be measured on every component mount\n however it will be used only by the \"first\" invocation\n due to singleton nature of <Style\n */\n var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);\n return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });\n};\n","var passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n var options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n return true;\n },\n });\n // @ts-ignore\n window.addEventListener('test', options, options);\n // @ts-ignore\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\nexport var nonPassive = passiveSupported ? { passive: false } : false;\n","var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n if (!(node instanceof Element)) {\n return false;\n }\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];\n if (scrollHeight > clientHeight) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n if (!target) {\n break;\n }\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n var parent_1 = target.parentNode;\n // we will \"bubble\" from ShadowDom in case we are, or just to the parent in normal case\n // this is the same logic used in focus-lock\n target = (parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1);\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n","import { __spreadArray } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScrollBar } from 'react-remove-scroll-bar';\nimport { styleSingleton } from 'react-style-singleton';\nimport { nonPassive } from './aggresiveCapture';\nimport { handleScroll, locationCouldBeScrolled } from './handleScroll';\nexport var getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nexport var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nexport function RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(styleSingleton)[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if (('touches' in event && event.touches.length === 2) || (event.type === 'wheel' && event.ctrlKey)) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n // allow drag selection (iOS); check if selection's anchorNode is the same as target or contains target\n var selection = window.getSelection();\n var anchorNode = selection && selection.anchorNode;\n var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;\n if (isTouchingSelection) {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n if (event.cancelable) {\n event.preventDefault();\n }\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n if (event.cancelable) {\n event.preventDefault();\n }\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null));\n}\nfunction getOutermostShadowParent(node) {\n var shadowParent = null;\n while (node !== null) {\n if (node instanceof ShadowRoot) {\n shadowParent = node.host;\n node = node.host;\n }\n node = node.parentNode;\n }\n return shadowParent;\n}\n","import { exportSidecar } from 'use-sidecar';\nimport { RemoveScrollSideCar } from './SideEffect';\nimport { effectCar } from './medium';\nexport default exportSidecar(effectCar, RemoveScrollSideCar);\n","var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide aria-live elements - https://github.com/theKashey/aria-hidden/issues/10\n // and script elements, as they have no impact on accessibility.\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live], script')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n","import * as React from 'react';\nimport { styleSingleton } from 'react-style-singleton';\nimport { focusHiddenMarker } from './medium';\nvar Style = styleSingleton();\nvar styles = \"\\n [\" + focusHiddenMarker + \"] {\\n pointer-events: none !important;\\n }\\n\";\nexport var InteractivityDisabler = function () { return React.createElement(Style, { styles: styles }); };\n","import { __spreadArrays } from \"tslib\";\nimport * as React from 'react';\nimport { hideOthers } from 'aria-hidden';\nimport { InteractivityDisabler } from './InteractivityDisabler';\nimport { focusHiddenMarker } from './medium';\nimport { useEffect, useRef } from 'react';\nvar extractRef = function (ref) {\n return 'current' in ref ? ref.current : ref;\n};\nexport function Effect(_a) {\n var setLockProps = _a.setLockProps, onEscapeKey = _a.onEscapeKey, onClickOutside = _a.onClickOutside, shards = _a.shards, onActivation = _a.onActivation, onDeactivation = _a.onDeactivation, noIsolation = _a.noIsolation, activeNode = _a.activeNode;\n var lastEventTarget = useRef(null);\n var mouseTouches = useRef(0);\n React.useEffect(function () {\n var onKeyDown = function (event) {\n if (!event.defaultPrevented) {\n if ((event.code === 'Escape' ||\n event.key === 'Escape' ||\n event.keyCode === 27) &&\n onEscapeKey) {\n onEscapeKey(event);\n }\n }\n };\n var onMouseDown = function (event) {\n if (event.defaultPrevented ||\n event.target === lastEventTarget.current ||\n (event instanceof MouseEvent && event.button !== 0)) {\n return;\n }\n if (shards &&\n shards\n .map(extractRef)\n .some(function (node) {\n return (node && node.contains(event.target)) ||\n node === event.target;\n })) {\n return;\n }\n if (onClickOutside) {\n onClickOutside(event);\n }\n };\n var onTouchStart = function (event) {\n onMouseDown(event);\n mouseTouches.current = event.touches.length;\n };\n var onTouchEnd = function (event) {\n mouseTouches.current = event.touches.length;\n };\n if (activeNode) {\n activeNode.ownerDocument.addEventListener('keydown', onKeyDown);\n activeNode.ownerDocument.addEventListener('mousedown', onMouseDown);\n activeNode.ownerDocument.addEventListener('touchstart', onTouchStart);\n activeNode.ownerDocument.addEventListener('touchend', onTouchEnd);\n return function () {\n activeNode.ownerDocument.removeEventListener('keydown', onKeyDown);\n activeNode.ownerDocument.removeEventListener('mousedown', onMouseDown);\n activeNode.ownerDocument.removeEventListener('touchstart', onTouchStart);\n activeNode.ownerDocument.removeEventListener('touchend', onTouchEnd);\n };\n }\n return;\n }, [activeNode, onClickOutside, onEscapeKey]);\n useEffect(function () {\n if (activeNode) {\n if (onActivation) {\n onActivation(activeNode);\n }\n return function () {\n if (onDeactivation) {\n onDeactivation();\n }\n };\n }\n return;\n }, [!!activeNode]);\n useEffect(function () {\n if (noIsolation || !activeNode) {\n return;\n }\n return hideOthers(__spreadArrays([activeNode], (shards || []).map(extractRef)), activeNode.ownerDocument.body, focusHiddenMarker);\n }, [activeNode, noIsolation]);\n useEffect(function () {\n setLockProps({\n onMouseDown: function (e) {\n lastEventTarget.current = e.target;\n },\n onTouchStart: function (e) {\n lastEventTarget.current = e.target;\n },\n });\n return function () {\n setLockProps(false);\n };\n }, []);\n return React.createElement(InteractivityDisabler, null);\n}\n","import { exportSidecar } from 'use-sidecar';\nimport 'react-focus-lock/sidecar';\nimport 'react-remove-scroll/sidecar';\nimport { Effect } from './Effect';\nimport { effectCar } from './medium';\nexport default exportSidecar(effectCar, Effect);\n","import { __assign } from \"tslib\";\nimport * as React from 'react';\nimport { FocusOn as ReactFocusOn } from './UI';\nimport SideCar from './sidecar';\nvar RequireSideCar = function (props) {\n return React.createElement(SideCar, __assign({}, props));\n};\nexport var FocusOn = React.forwardRef(function (props, ref) { return React.createElement(ReactFocusOn, __assign({}, props, { ref: ref, sideCar: RequireSideCar })); });\n","export default {\n disabled: false\n};","import PropTypes from 'prop-types';\nexport var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n enter: PropTypes.number,\n exit: PropTypes.number,\n appear: PropTypes.number\n}).isRequired]) : null;\nexport var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string,\n active: PropTypes.string\n}), PropTypes.shape({\n enter: PropTypes.string,\n enterDone: PropTypes.string,\n enterActive: PropTypes.string,\n exit: PropTypes.string,\n exitDone: PropTypes.string,\n exitActive: PropTypes.string\n})]) : null;","import React from 'react';\nexport default React.createContext(null);","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport config from './config';\nimport { timeoutsShape } from './utils/PropTypes';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { forceReflow } from './utils/reflow';\nexport var UNMOUNTED = 'unmounted';\nexport var EXITED = 'exited';\nexport var ENTERING = 'entering';\nexport var ENTERED = 'entered';\nexport var EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 1 },\n * entered: { opacity: 1 },\n * exiting: { opacity: 0 },\n * exited: { opacity: 0 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * <Transition in={inProp} timeout={duration}>\n * {state => (\n * <div style={{\n * ...defaultStyle,\n * ...transitionStyles[state]\n * }}>\n * I'm a fade Transition!\n * </div>\n * )}\n * </Transition>\n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n * <div>\n * <Transition in={inProp} timeout={500}>\n * {state => (\n * // ...\n * )}\n * </Transition>\n * <button onClick={() => setInProp(true)}>\n * Click to Enter\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nvar Transition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n } // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n ;\n\n var _proto = Transition.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n\n if (nextStatus === ENTERING) {\n if (this.props.unmountOnExit || this.props.mountOnEnter) {\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749\n // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.\n // To make the animation happen, we have to separate each rendering and avoid being processed as batched.\n\n if (node) forceReflow(node);\n }\n\n this.performEnter(mounting);\n } else {\n this.performExit();\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context ? this.context.isMounting : mounting;\n\n var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],\n maybeNode = _ref2[0],\n maybeAppearing = _ref2[1];\n\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter || config.disabled) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode);\n });\n return;\n }\n\n this.props.onEnter(maybeNode, maybeAppearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(maybeNode, maybeAppearing);\n\n _this2.onTransitionEnd(enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode, maybeAppearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit() {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts();\n var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED\n\n if (!exit || config.disabled) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n return;\n }\n\n this.props.onExit(maybeNode);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(maybeNode);\n\n _this3.onTransitionEnd(timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {\n this.setNextCallback(handler);\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n\n if (this.props.addEndListener) {\n var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],\n maybeNode = _ref3[0],\n maybeNextCallback = _ref3[1];\n\n this.props.addEndListener(maybeNode, maybeNextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n _in = _this$props.in,\n _mountOnEnter = _this$props.mountOnEnter,\n _unmountOnExit = _this$props.unmountOnExit,\n _appear = _this$props.appear,\n _enter = _this$props.enter,\n _exit = _this$props.exit,\n _timeout = _this$props.timeout,\n _addEndListener = _this$props.addEndListener,\n _onEnter = _this$props.onEnter,\n _onEntering = _this$props.onEntering,\n _onEntered = _this$props.onEntered,\n _onExit = _this$props.onExit,\n _onExiting = _this$props.onExiting,\n _onExited = _this$props.onExited,\n _nodeRef = _this$props.nodeRef,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\", \"mountOnEnter\", \"unmountOnExit\", \"appear\", \"enter\", \"exit\", \"timeout\", \"addEndListener\", \"onEnter\", \"onEntering\", \"onEntered\", \"onExit\", \"onExiting\", \"onExited\", \"nodeRef\"]);\n\n return (\n /*#__PURE__*/\n // allows for nested Transitions\n React.createElement(TransitionGroupContext.Provider, {\n value: null\n }, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))\n );\n };\n\n return Transition;\n}(React.Component);\n\nTransition.contextType = TransitionGroupContext;\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A React reference to DOM element that need to transition:\n * https://stackoverflow.com/a/51127130/4671932\n *\n * - When `nodeRef` prop is used, `node` is not passed to callback functions\n * (e.g. `onEnter`) because user already has direct access to the node.\n * - When changing `key` prop of `Transition` in a `TransitionGroup` a new\n * `nodeRef` need to be provided to `Transition` with changed `key` prop\n * (see\n * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).\n */\n nodeRef: PropTypes.shape({\n current: typeof Element === 'undefined' ? PropTypes.any : function (propValue, key, componentName, location, propFullName, secret) {\n var value = propValue[key];\n return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);\n }\n }),\n\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * <Transition in={this.state.in} timeout={150}>\n * {state => (\n * <MyComponent className={`fade fade-${state}`} />\n * )}\n * </Transition>\n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * By default the child component does not perform the enter transition when\n * it first mounts, regardless of the value of `in`. If you want this\n * behavior, set both `appear` and `in` to `true`.\n *\n * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop\n * > only adds an additional enter transition. However, in the\n * > `<CSSTransition>` component that first enter transition does result in\n * > additional `.appear-*` classes, that way you can choose to style it\n * > differently.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. Timeouts are still used as a fallback if provided.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func\n} : {}; // Name the function so it is clearer in the documentation\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = UNMOUNTED;\nTransition.EXITED = EXITED;\nTransition.ENTERING = ENTERING;\nTransition.ENTERED = ENTERED;\nTransition.EXITING = EXITING;\nexport default Transition;","export var forceReflow = function forceReflow(node) {\n return node.scrollTop;\n};","function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (-1 !== e.indexOf(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nexport { _objectWithoutPropertiesLoose as default };","import React, { ComponentPropsWithRef, FC, forwardRef } from \"react\";\nimport { TransitionStatus } from \"react-transition-group\";\nimport styled from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\n\ntype InternalSlideInFlexProps = {\n finalZIndex: number;\n transitionRef: React.RefObject<HTMLDivElement>;\n state: TransitionStatus;\n isLeftHandSide: boolean;\n children: React.ReactNode;\n /**\n * Max width for tablet and desktop screens (768px+)\n * @default 600\n */\n largeScreenMaxWidth?: number;\n};\n\nconst SlideInFlex = styled(OakFlex)<{\n $state: TransitionStatus;\n isLeftHandSide: boolean;\n largeScreenMaxWidth: number;\n}>`\n max-width: ${({ isLeftHandSide }) =>\n isLeftHandSide ? `calc(100vw - ${parseSpacing(\"spacing-20\")})` : \"100vw\"};\n transform: ${({ $state, isLeftHandSide }) => {\n switch ($state) {\n case \"entered\":\n case \"entering\":\n return \"translateX(0)\";\n default:\n return isLeftHandSide ? \"translateX(-100%)\" : \"translateX(100%)\";\n }\n }};\n ${({ isLeftHandSide, largeScreenMaxWidth }) =>\n !isLeftHandSide &&\n `\n @media (min-width: 768px) {\n max-width: ${largeScreenMaxWidth}px;\n }\n `}\n`;\n\nconst InternalSlideInFlex: FC<\n ComponentPropsWithRef<InternalSlideInFlexProps & typeof OakFlex>\n> = forwardRef<\n HTMLDivElement,\n InternalSlideInFlexProps & ComponentPropsWithRef<typeof OakFlex>\n>((props, ref) => {\n const {\n finalZIndex,\n state,\n isLeftHandSide,\n children,\n largeScreenMaxWidth = 600,\n ...rest\n } = props;\n\n return (\n <SlideInFlex\n ref={ref}\n $background=\"bg-primary\"\n $right={!isLeftHandSide ? \"spacing-0\" : null}\n $left={isLeftHandSide ? \"spacing-0\" : null}\n $position=\"fixed\"\n $bottom=\"spacing-0\"\n $width={[\"spacing-640\"]}\n $top=\"spacing-0\"\n $transition=\"standard-ease\"\n $zIndex={finalZIndex}\n $flexDirection=\"column\"\n $state={state}\n $color=\"text-primary\"\n role=\"dialog\"\n isLeftHandSide={isLeftHandSide}\n largeScreenMaxWidth={largeScreenMaxWidth}\n {...rest}\n >\n {children}\n </SlideInFlex>\n );\n});\n\nexport default InternalSlideInFlex;\n","import React, { FC } from \"react\";\nimport { FocusOn } from \"react-focus-on\";\nimport { Transition, TransitionStatus } from \"react-transition-group\";\nimport styled from \"styled-components\";\n\nimport InternalSlideInFlex from \"@/components/internal-components/InternalSlideInFlex/InternalSlideInFlex\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { parseOpacity } from \"@/styles/helpers/parseOpacity\";\n\ntype TransitionProps = {\n children: React.ReactNode;\n isOpen: boolean;\n onClose: () => void;\n transitionRef: React.RefObject<HTMLDivElement>;\n finalZIndex: number | \"modal-dialog\";\n isLeftHandSide?: boolean;\n /**\n * Close the modal when clicking the background\n *\n * @default false;\n */\n closeOnBackgroundClick?: boolean;\n /**\n * Max width for tablet and desktop screens (768px+)\n * @default 600\n */\n largeScreenMaxWidth?: number;\n};\n\nconst FadeOutBox = styled(OakBox)<{ $state: TransitionStatus }>`\n opacity: ${({ $state }) => {\n switch ($state) {\n case \"entered\":\n case \"entering\":\n return parseOpacity(\"semi-transparent\");\n default:\n return parseOpacity(\"transparent\");\n }\n }};\n background-color: black;\n position: fixed;\n inset: 0;\n transition: ease;\n`;\n\nconst InternalModalTransition: FC<TransitionProps> = ({\n children,\n isOpen,\n transitionRef,\n onClose,\n finalZIndex,\n isLeftHandSide,\n closeOnBackgroundClick = false,\n largeScreenMaxWidth,\n ...rest\n}) => {\n return (\n <Transition\n in={isOpen}\n nodeRef={transitionRef}\n addEndListener={(done) => {\n transitionRef.current?.addEventListener(\"transitionend\", done);\n }}\n timeout={500}\n mountOnEnter\n unmountOnExit\n >\n {(state) => (\n <FocusOn\n onEscapeKey={onClose}\n returnFocus\n autoFocus\n preventScrollOnFocus\n >\n <FadeOutBox\n $zIndex={finalZIndex}\n $state={state}\n onClick={closeOnBackgroundClick ? onClose : undefined}\n />\n <InternalSlideInFlex\n isLeftHandSide={isLeftHandSide}\n ref={transitionRef}\n $zIndex={finalZIndex}\n $state={state}\n aria-modal={true}\n largeScreenMaxWidth={largeScreenMaxWidth}\n {...rest}\n >\n {children}\n </InternalSlideInFlex>\n </FocusOn>\n )}\n </Transition>\n );\n};\n\nexport default InternalModalTransition;\n","import React, { createContext, HTMLAttributes, ReactNode, useRef } from \"react\";\nimport { createPortal } from \"react-dom\";\n\nimport { OakCloseButton } from \"@/components/buttons/OakCloseButton\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { useIsScrolled } from \"@/hooks/useIsScrolled\";\nimport { useMounted } from \"@/hooks/useMounted\";\nimport InternalModalTransition from \"@/components/internal-components/InternalModalTransition/InternalModalTransition\";\nimport { BorderStyleProps } from \"@/styles/utils/borderStyle\";\n\nexport const OakInformativeModalBorderColor = createContext<\n BorderStyleProps[\"$borderColor\"]\n>(\"border-neutral-lighter\");\n\nexport type OakInformativeModalCloseAction = \"close_button\" | undefined;\n\nexport type OakInformativeModalProps = {\n /**\n * The content of the modal.\n * Use with `<OakInformativeModalBody>` for best results.\n */\n children: ReactNode;\n /**\n * Slot for the footer of the modal.\n * Use with `<OakInformativeModalFooter>` for best results.\n */\n footerSlot?: ReactNode;\n /**\n * Indicates whether the modal is open or closed\n */\n isOpen: boolean;\n /**\n * Called when the modal is closed\n */\n onClose: (action?: OakInformativeModalCloseAction) => void;\n /**\n * The DOM container to render the modal portal into.\n *\n * @default document.body\n */\n domContainer?: Element;\n /**\n * Optional z-index override.\n *\n * Defaults to token: `modal-dialog`\n *\n * 🚨 This prop is intended for use by consumers that do not use\n * the internal system of z-index tokens.\n *\n * NB *The modal is rendered inside a portal so it will not respect the stacking context of its parent component*.\n */\n zIndex?: number;\n isLeftHandSide?: boolean;\n /**\n * Close the modal when clicking the background\n *\n * @default false;\n */\n closeOnBackgroundClick?: boolean;\n /**\n * Max width for tablet and desktop screens (768px+)\n * @default 600\n */\n largeScreenMaxWidth?: number;\n} & Pick<\n HTMLAttributes<Element>,\n \"aria-label\" | \"aria-description\" | \"aria-labelledby\" | \"aria-describedby\"\n>;\n\n/**\n * Modal dialog with trapped focus and a close button. See the [design specification](https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=15135-2063)\n */\nexport const OakInformativeModal = ({\n children,\n footerSlot,\n domContainer,\n isOpen,\n onClose,\n zIndex,\n isLeftHandSide,\n closeOnBackgroundClick,\n largeScreenMaxWidth,\n ...rest\n}: OakInformativeModalProps) => {\n const transitionRef = useRef<HTMLDivElement>(null);\n\n const { isScrolled, ObserveScroll } = useIsScrolled();\n\n // `createPortal` is not supported in SSR so we can only render when mounted on the client\n const isMounted = useMounted();\n\n if (!isMounted) {\n return null;\n }\n\n const onCloseModal = () => {\n onClose();\n };\n\n const onCloseButton = () => {\n onClose(\"close_button\");\n };\n\n const finalZIndex = typeof zIndex === \"number\" ? zIndex : \"modal-dialog\";\n\n return createPortal(\n <OakInformativeModalBorderColor.Provider value={\"border-neutral-lighter\"}>\n <InternalModalTransition\n isOpen={isOpen}\n transitionRef={transitionRef}\n onClose={onCloseModal}\n finalZIndex={finalZIndex}\n isLeftHandSide={isLeftHandSide}\n closeOnBackgroundClick={closeOnBackgroundClick}\n largeScreenMaxWidth={largeScreenMaxWidth}\n {...rest}\n >\n <OakFlex\n $background={\"bg-primary\"}\n $flexDirection={\"column\"}\n $height={\"100%\"}\n >\n <OakFlex\n $pa=\"spacing-16\"\n $justifyContent={\"flex-end\"}\n $alignItems=\"center\"\n >\n <OakCloseButton onClose={onCloseButton} />\n </OakFlex>\n <div style={{ display: \"contents\" }} data-autofocus-inside>\n <OakFlex\n $flexGrow={1}\n $flexDirection=\"column\"\n $overflow=\"auto\"\n $bt=\"border-solid-s\"\n $borderColor={\n isScrolled ? \"border-neutral-lighter\" : \"transparent\"\n }\n >\n <ObserveScroll>{children}</ObserveScroll>\n </OakFlex>\n {footerSlot}\n </div>\n </OakFlex>\n </InternalModalTransition>\n </OakInformativeModalBorderColor.Provider>,\n domContainer ?? document.body,\n );\n};\n","import React, { ReactNode, useContext } from \"react\";\n\nimport { OakInformativeModalBorderColor } from \"./OakInformativeModal\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\n\nexport type OakInformativeModalFooterProps = {\n children: ReactNode;\n};\n\n/**\n * Intended to be used in the `footer` slot of `OakInformativeModal`\n * it is ideal as a container for one or more buttons.\n * It switches from a horizontal to vertical layout on smaller screens\n */\nexport const OakInformativeModalFooter = (\n props: OakInformativeModalFooterProps,\n) => {\n const $borderColor = useContext(OakInformativeModalBorderColor);\n return (\n <OakFlex\n {...props}\n $flexDirection={[\"column\", \"row\"]}\n $bt=\"border-solid-s\"\n $borderColor={$borderColor}\n $ph={[\"spacing-16\", \"spacing-16\", \"spacing-16\"]}\n $pv={[\"spacing-12\", \"spacing-16\", \"spacing-16\"]}\n $gap={[\"spacing-16\", \"spacing-24\"]}\n $width=\"100%\"\n />\n );\n};\n","import React, { FormEvent } from \"react\";\n\nimport {\n Consent,\n PolicyConsent,\n} from \"@/components/cookies/OakCookieConsentProvider\";\nimport { OakAccordion } from \"@/components/layout-and-structure/OakAccordion\";\nimport { OakCheckBox } from \"@/components/form-elements/OakCheckBox\";\nimport {\n OakInformativeModal,\n OakInformativeModalFooter,\n OakInformativeModalProps,\n} from \"@/components/messaging-and-feedback/OakInformativeModal\";\nimport { OakLink } from \"@/components/navigation/OakLink\";\nimport { OakPrimaryButton } from \"@/components/buttons/OakPrimaryButton\";\nimport { OakSecondaryButton } from \"@/components/buttons/OakSecondaryButton\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { OakP } from \"@/components/typography/OakP\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { OakUL } from \"@/components/typography/OakUL\";\n\nexport type OakCookieSettingsModalProps = Pick<\n OakInformativeModalProps,\n \"isOpen\" | \"onClose\" | \"zIndex\"\n> & {\n /**\n * Triggered when the user rejects all non-essential cookies.\n */\n onReject(): void;\n /**\n * Triggered when the user confirms their cookie consent settings.\n * @param consents The user's chosen consent settings.\n */\n onConfirm(consents: Consent[]): void;\n /**\n * Triggered when the user accepts all cookies.\n */\n onAccept(): void;\n /**\n * URL of the site's cookie policy.\n */\n policyURL: string;\n /**\n * List of cookie policies with the current consent state.\n */\n policyConsents: PolicyConsent[];\n};\n\n/**\n * Modal for managing cookie consent settings.\n */\nexport const OakCookieSettingsModal = ({\n isOpen,\n onClose,\n onReject,\n onConfirm,\n onAccept,\n policyURL,\n policyConsents,\n zIndex,\n}: OakCookieSettingsModalProps) => {\n const handleSubmit = (event: FormEvent<HTMLFormElement>) => {\n event.preventDefault();\n const formData = new FormData(event.currentTarget);\n const newConsents: Record<string, Consent> = {};\n\n for (const { policyId, isStrictlyNecessary } of policyConsents) {\n newConsents[policyId] = {\n policyId,\n consentState: isStrictlyNecessary ? \"granted\" : \"denied\",\n };\n }\n\n for (const policyId of formData.getAll(\"consent\")) {\n newConsents[policyId.toString()] = {\n policyId: policyId.toString(),\n consentState: \"granted\",\n };\n }\n\n onConfirm(Object.values(newConsents));\n };\n\n return (\n <OakInformativeModal\n isOpen={isOpen}\n isLeftHandSide={true}\n onClose={onClose}\n zIndex={zIndex}\n footerSlot={\n <OakInformativeModalFooter>\n <OakSecondaryButton onClick={onReject} width=\"100%\">\n Reject non-essential cookies\n </OakSecondaryButton>\n <OakPrimaryButton\n type=\"submit\"\n form=\"cookie-settings-form\"\n width=\"100%\"\n >\n Confirm my choices\n </OakPrimaryButton>\n </OakInformativeModalFooter>\n }\n >\n <OakBox $pa={\"spacing-20\"}>\n <OakHeading tag=\"h2\" $font=\"heading-5\" $mb=\"spacing-16\">\n This site uses cookies to store information on your computer.\n </OakHeading>\n <OakP $mb=\"spacing-24\">\n Some of these cookies are essential, while others help us to improve\n your experience by providing insights into how the site is being used.\n </OakP>\n\n <OakP $mb=\"spacing-48\">\n For more information, view our{\" \"}\n <OakLink href={policyURL} target=\"_blank\">\n cookie policy\n </OakLink>\n .\n </OakP>\n <OakBox $mb=\"spacing-56\">\n <OakPrimaryButton onClick={onAccept} width=\"spacing-180\">\n Allow all\n </OakPrimaryButton>\n </OakBox>\n <OakBox\n $ph=\"spacing-8\"\n as=\"form\"\n id=\"cookie-settings-form\"\n onSubmit={handleSubmit}\n >\n <OakHeading tag=\"h3\" $font=\"heading-6\" $mb=\"spacing-24\">\n Manage consent preferences\n </OakHeading>\n {policyConsents.map((policy) => {\n return (\n <OakAccordion\n key={policy.policyId}\n header={\n <OakSpan id={`cookie-settings-${policy.policyId}-label`}>\n {policy.policyLabel}\n </OakSpan>\n }\n headerTag=\"h4\"\n id={`cookies-settings-${policy.policyId}-accordion`}\n headerAfterSlot={\n <OakCheckBox\n id={`cookies-settings-${policy.policyId}-checkbox`}\n name=\"consent\"\n displayValue=\"\"\n value={policy.policyId}\n defaultChecked={\n policy.isStrictlyNecessary ||\n policy.consentState === \"granted\"\n }\n disabled={policy.isStrictlyNecessary}\n aria-labelledby={`cookie-settings-${policy.policyId}-label`}\n />\n }\n >\n <OakP $mb=\"spacing-32\">{policy.policyDescription}</OakP>\n <OakBox as=\"dl\" $pl=\"spacing-16\">\n {policy.policyParties.length > 0 && (\n <>\n <dt>Who do we share data with?</dt>\n <OakBox as=\"dd\" $font=\"body-3-bold\" $mb=\"spacing-16\">\n <OakUL $reset>\n {policy.policyParties.map((party, index, all) => (\n <OakBox as=\"li\" key={index} $display=\"inline\">\n <OakLink\n variant=\"secondary\"\n href={party.url}\n target=\"_blank\"\n rel=\"external nofollow\"\n >\n {party.name}\n </OakLink>\n {index < all.length - 1 && \", \"}\n </OakBox>\n ))}\n </OakUL>\n </OakBox>\n </>\n )}\n <dt>Does this policy need cookies to work?</dt>\n <OakBox as=\"dd\" $font=\"body-3-bold\">\n Yes.\n </OakBox>\n </OakBox>\n </OakAccordion>\n );\n })}\n </OakBox>\n </OakBox>\n </OakInformativeModal>\n );\n};\n","export type CookieConsentReducerState = {\n isSettingsModalOpen: boolean;\n bannerState: \"initial\" | \"accepted\" | \"rejected\" | \"hidden\";\n};\n\nexport type CookieConsentAction =\n | {\n type: \"confirmModalConsents\";\n }\n | {\n type: \"acceptModalConsents\";\n }\n | {\n type: \"rejectModalConsents\";\n }\n | {\n type: \"rejectBannerConsents\";\n }\n | {\n type: \"acceptBannerConsents\";\n }\n | {\n type: \"openModal\";\n }\n | {\n type: \"closeModal\";\n }\n | {\n type: \"showBanner\";\n }\n | {\n type: \"hideBanner\";\n };\n\nexport function cookieConsentReducer(\n currentState: CookieConsentReducerState,\n action: CookieConsentAction,\n): CookieConsentReducerState {\n switch (action.type) {\n case \"confirmModalConsents\":\n case \"acceptModalConsents\":\n case \"rejectModalConsents\":\n return {\n ...currentState,\n isSettingsModalOpen: false,\n bannerState: \"hidden\",\n };\n case \"acceptBannerConsents\":\n return {\n ...currentState,\n bannerState: \"accepted\",\n };\n case \"rejectBannerConsents\":\n return {\n ...currentState,\n bannerState: \"rejected\",\n };\n case \"openModal\":\n return {\n ...currentState,\n isSettingsModalOpen: true,\n };\n case \"closeModal\":\n return {\n ...currentState,\n isSettingsModalOpen: false,\n };\n case \"showBanner\":\n return {\n ...currentState,\n bannerState: \"initial\",\n };\n case \"hideBanner\":\n return {\n ...currentState,\n bannerState: \"hidden\",\n };\n default:\n return currentState;\n }\n}\n\nexport function getInitialState(): CookieConsentReducerState {\n return {\n isSettingsModalOpen: false,\n bannerState: \"hidden\",\n };\n}\n","import React, {\n ReactNode,\n createContext,\n useCallback,\n useContext,\n useReducer,\n} from \"react\";\n\nimport {\n CookieConsentReducerState,\n cookieConsentReducer,\n getInitialState,\n} from \"./cookieConsentReducer\";\n\ntype Party = {\n name: ReactNode;\n url: string;\n};\nexport type Consent = {\n /**\n * Unique identifier for the policy.\n */\n policyId: string;\n /**\n * The user's consent state for the policy.\n */\n consentState: ConsentState;\n};\nexport type PolicyConsent = {\n /**\n * Unique identifier for the policy.\n */\n policyId: string;\n /**\n * Label for the policy.\n */\n policyLabel: string;\n /**\n * Description of the policy. This should explain what the policy does and why it is needed.\n */\n policyDescription: ReactNode;\n /**\n * Whether the policy is strictly necessary for the site to function.\n * If true, the policy will be enabled by default and cannot be disabled.\n */\n isStrictlyNecessary: boolean;\n /**\n * List of 3rd parties that the policy allows data to be shared with.\n */\n policyParties: Party[];\n /**\n * The current consent state of the policy\n */\n consentState: ConsentStateWithPending;\n};\nexport type ConsentState = \"granted\" | \"denied\";\nexport type ConsentStateWithPending = ConsentState | \"pending\";\n\nexport type OakCookieConsentContextType = {\n /**\n * Whether the cookie settings modal is open.\n */\n isSettingsModalOpen: boolean;\n /**\n * List of cookie policies with the current consent state.\n */\n policyConsents: PolicyConsent[];\n /**\n * Open the cookie settings modal.\n **/\n openSettings(): void;\n /**\n * Close the cookie settings modal.\n */\n closeSettings(): void;\n /**\n * Show the cookie consent banner.\n */\n showBanner(): void;\n /**\n * Hide the cookie consent banner.\n */\n hideBanner(): void;\n /**\n * Reject all non-essential cookies from the settings modal.\n */\n rejectModalConsents(): void;\n /**\n * Confirm the user's consent settings from the modal.\n * @param consents The user's chosen consent settings.\n */\n confirmModalConsents(consents: Consent[]): void;\n /**\n * Consent to all cookies from the modal.\n */\n acceptModalConsents(): void;\n /**\n * Reject all non-essential cookies from the banner.\n */\n rejectBannerConsents(): void;\n /**\n * Accept all cookies from the banner.\n */\n acceptBannerConsents(): void;\n /**\n * The current state of the cookie banner.\n */\n bannerState: CookieConsentReducerState[\"bannerState\"];\n};\n\nexport function getDefaultContextState(): OakCookieConsentContextType {\n return {\n isSettingsModalOpen: false,\n policyConsents: [],\n showBanner() {},\n hideBanner() {},\n openSettings() {},\n closeSettings() {},\n rejectModalConsents() {},\n confirmModalConsents() {},\n acceptModalConsents() {},\n rejectBannerConsents() {},\n acceptBannerConsents() {},\n bannerState: \"initial\",\n };\n}\n\nexport const OakCookieConsentContext =\n createContext<OakCookieConsentContextType>(getDefaultContextState());\n\nexport type OakCookieConsentProviderProps = Pick<\n OakCookieConsentContextType,\n \"policyConsents\"\n> & {\n children: ReactNode;\n /**\n * Callback triggered when the user's consent settings change.\n * @param consents The user's updated consent settings.\n */\n onConsentChange(consents: Consent[]): void;\n};\n\n/**\n * Internal hook for consuming the OakCookieConsentContext.\n *\n * This should not be exported from the package.\n */\nexport function useInternalCookieConsent() {\n return useContext(OakCookieConsentContext);\n}\n\n/**\n * Enables opening of the cookie settings modal and showing the cookie consent banner.\n */\nexport function useCookieConsent() {\n const { showBanner, openSettings } = useContext(OakCookieConsentContext);\n return { showBanner, openSettings };\n}\n\n/**\n * Provides a context through which the cookie consent UI can be configured and controlled\n *\n * Intended to be used with `OakCookieConsent`\n */\nexport const OakCookieConsentProvider = ({\n children,\n policyConsents,\n onConsentChange,\n}: OakCookieConsentProviderProps) => {\n const [cookieConsentState, dispatch] = useReducer(\n cookieConsentReducer,\n null,\n getInitialState,\n );\n const closeSettings = useCallback(() => dispatch({ type: \"closeModal\" }), []);\n const acceptConsents = useCallback(() => {\n onConsentChange(\n policyConsents.map(({ policyId }) => ({\n policyId,\n consentState: \"granted\",\n })),\n );\n }, [onConsentChange, policyConsents]);\n const rejectConsents = useCallback(() => {\n onConsentChange(\n policyConsents.map(({ policyId, isStrictlyNecessary }) => ({\n policyId,\n consentState: isStrictlyNecessary ? \"granted\" : \"denied\",\n })),\n );\n }, [onConsentChange, policyConsents]);\n const hideBanner = useCallback(() => dispatch({ type: \"hideBanner\" }), []);\n const showBanner = useCallback(() => dispatch({ type: \"showBanner\" }), []);\n const openSettings = useCallback(() => dispatch({ type: \"openModal\" }), []);\n const acceptBannerConsents = useCallback(() => {\n acceptConsents();\n dispatch({ type: \"acceptBannerConsents\" });\n }, [acceptConsents]);\n const rejectBannerConsents = useCallback(() => {\n rejectConsents();\n dispatch({ type: \"rejectBannerConsents\" });\n }, [rejectConsents]);\n const acceptModalConsents = useCallback(() => {\n acceptConsents();\n dispatch({ type: \"acceptModalConsents\" });\n }, [acceptConsents, hideBanner]);\n const rejectModalConsents = useCallback(() => {\n rejectConsents();\n dispatch({ type: \"rejectModalConsents\" });\n }, [rejectConsents, hideBanner]);\n const confirmModalConsents = useCallback(\n (consents: Consent[]) => {\n onConsentChange(consents);\n dispatch({ type: \"confirmModalConsents\" });\n },\n [onConsentChange, hideBanner],\n );\n\n return (\n <OakCookieConsentContext.Provider\n value={{\n isSettingsModalOpen: cookieConsentState.isSettingsModalOpen,\n bannerState: cookieConsentState.bannerState,\n policyConsents,\n showBanner,\n hideBanner,\n openSettings,\n closeSettings,\n confirmModalConsents,\n acceptBannerConsents,\n rejectBannerConsents,\n acceptModalConsents,\n rejectModalConsents,\n }}\n >\n {children}\n </OakCookieConsentContext.Provider>\n );\n};\n","import styled from \"styled-components\";\n\nimport {\n OakBoxProps,\n oakBoxCss,\n} from \"@/components/layout-and-structure/OakBox\";\nexport type OakFieldsetProps = OakBoxProps;\n/**\n * OakFieldset renders a custom `fieldset` component, removes default styling of fieldset.\n color, opacity, margin, padding, border and typography styles can be passed in also.\n */\nexport const OakFieldset = styled.fieldset<OakFieldsetProps>`\n border: 0;\n margin: 0;\n padding: 0;\n ${oakBoxCss};\n`;\n","import styled from \"styled-components\";\n\nimport {\n OakBoxProps,\n oakBoxCss,\n} from \"@/components/layout-and-structure/OakBox\";\n\n/**\n *\n * OakForm extends OakBox by taking the same props and style but applying them to a form element.\n *\n * ⚠️ To be deprecated\n * Use `<OakBox as=\"form\">` instead\n * @deprecated Use `<OakBox as=\"form\">` instead\n */\nexport const OakForm = styled.form<OakBoxProps>`\n ${oakBoxCss}\n`;\n\nexport type OakFormProps = OakBoxProps;\n","import React, {\n DetailedHTMLProps,\n TextareaHTMLAttributes,\n forwardRef,\n} from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { sizeStyle, SizeStyleProps } from \"@/styles/utils/sizeStyle\";\nimport { borderStyle, BorderStyleProps } from \"@/styles/utils/borderStyle\";\nimport { spacingStyle, SpacingStyleProps } from \"@/styles/utils/spacingStyle\";\nimport {\n typographyStyle,\n TypographyStyleProps,\n} from \"@/styles/utils/typographyStyle\";\nimport {\n positionStyle,\n PositionStyleProps,\n} from \"@/styles/utils/positionStyle\";\nimport { colorStyle, ColorStyleProps } from \"@/styles/utils/colorStyle\";\n\nexport type OakTextAreaProps = Omit<\n DetailedHTMLProps<\n TextareaHTMLAttributes<HTMLTextAreaElement>,\n HTMLTextAreaElement\n >,\n \"ref\"\n> &\n StyledTextAreaProps;\n\ntype StyledTextAreaProps = SizeStyleProps &\n BorderStyleProps &\n SpacingStyleProps &\n TypographyStyleProps &\n PositionStyleProps &\n ColorStyleProps;\n\nconst textAreaCss = css<StyledTextAreaProps>`\n resize: none;\n outline: none;\n ${sizeStyle}\n ${borderStyle}\n ${spacingStyle}\n ${typographyStyle}\n ${positionStyle}\n ${colorStyle}\n`;\n\nconst UnstyledOakTextArea = forwardRef(\n (props: OakTextAreaProps, ref?: React.Ref<HTMLTextAreaElement>) => {\n return <textarea ref={ref} {...props}></textarea>;\n },\n);\n\n/**\n *\n * A textarea that can be used for longer text inputs where text should wrap.\n *\n */\nexport const OakTextArea = styled(UnstyledOakTextArea)`\n ${textAreaCss}\n`;\n","import React, { createContext, useState } from \"react\";\n\nimport { TypographyStyleProps } from \"@/styles/utils/typographyStyle\";\nimport { ColorStyleProps } from \"@/styles/utils/colorStyle\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakLabel } from \"@/components/form-elements/OakLabel\";\nimport { FlexStyleProps } from \"@/styles/utils/flexStyle\";\n\ntype RadioContextType = {\n currentValue: string;\n name: string;\n disabled?: boolean;\n onValueUpdated?: (value: string) => void;\n};\n\nexport const RadioContext = createContext<RadioContextType>({\n currentValue: \"default\",\n name: \"default\",\n});\n\nexport type OakButtonAsRadioGroupProps = {\n label?: string;\n ariaLabel?: string;\n ariaLabelledby?: string;\n name: string;\n disabled?: boolean;\n children: React.ReactNode;\n onChange?: (value: string) => void;\n /**\n * Sets the value of the radio group\n * for use as a controlled component\n */\n value?: string;\n /**\n * Sets the initial value of the radio group\n * for use as an uncontrolled component\n */\n defaultValue?: string;\n} & Pick<TypographyStyleProps, \"$font\"> &\n ColorStyleProps &\n Pick<\n FlexStyleProps,\n \"$flexDirection\" | \"$alignItems\" | \"$gap\" | \"$flexWrap\" | \"$justifyContent\"\n >;\n\n/**\n *\n * A react context supporting a list of mutually exclusive options rendered as buttons.\n *\n * ## Usage\n *\n * the nested items should be OakSecondaryButtonAsRadio or implement the same logic.\n * use the callback onChange to get the value of the clicked button.\n *\n */\n\nexport const OakButtonAsRadioGroup = (props: OakButtonAsRadioGroupProps) => {\n const {\n name,\n children,\n label,\n ariaLabel,\n ariaLabelledby,\n onChange,\n $font = \"body-1-bold\",\n $gap = \"spacing-16\",\n disabled,\n value,\n defaultValue = \"\",\n ...rest\n } = props;\n\n const [currentValue, setCurrentValue] = useState(defaultValue);\n\n if (!label && !ariaLabel && !ariaLabelledby) {\n throw new Error(\n \"OakButtonAsRadioGroup: At least one of label, ariaLabel or ariaLabelledby is required\",\n );\n }\n\n const handleValueUpdated = (newValue: string) => {\n if (value === undefined) {\n setCurrentValue(newValue);\n }\n if (onChange) {\n onChange(newValue);\n }\n };\n\n return (\n <OakFlex\n role=\"radiogroup\"\n $gap={$gap}\n {...rest}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n >\n {label && <OakLabel $font={$font}>{label}</OakLabel>}\n <RadioContext.Provider\n value={{\n currentValue: value ?? currentValue,\n name,\n disabled: disabled,\n onValueUpdated: handleValueUpdated,\n }}\n >\n {children}\n </RadioContext.Provider>\n </OakFlex>\n );\n};\n","import React from \"react\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\n\nexport type OakFieldErrorProps = {\n children?: React.ReactNode;\n};\n\n/**\n *\n * OakFieldError renders a error message when passed children.\n *\n */\nexport const OakFieldError = (props: OakFieldErrorProps) => {\n const { children } = props;\n if (!children) {\n /**\n * Return early to avoid unwanted whitespace when there's no error\n */\n return null;\n }\n return (\n <OakFlex $alignItems={\"center\"} $flexDirection={\"row\"}>\n <OakFlex $alignSelf={\"flex-start\"} $mr={\"spacing-16\"}>\n <OakIcon\n alt=\"Error\"\n iconName=\"content-guidance\"\n $colorFilter={\"icon-error\"}\n />\n </OakFlex>\n <OakSpan $color=\"text-error\">{children}</OakSpan>\n </OakFlex>\n );\n};\n","import React, {\n DetailedHTMLProps,\n InputHTMLAttributes,\n FocusEvent,\n useRef,\n} from \"react\";\nimport styled from \"styled-components\";\n\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { getBreakpoint } from \"@/styles/utils/responsiveStyle\";\nimport { SpacingStyleProps, spacingStyle } from \"@/styles/utils/spacingStyle\";\nimport { SizeStyleProps, sizeStyle } from \"@/styles/utils/sizeStyle\";\n\ntype StyledInputProps = Omit<\n DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>,\n \"ref\"\n> &\n SpacingStyleProps &\n SizeStyleProps;\n\n/**\n * Using `appearance none !important;` here because many style resets will set this\n * value to textfield, causing some browsers to implement undesirable styles.\n * E.g. ios and rounded borders (which border-radius doesn't fix without\n * appearance: none)\n */\nconst StyledInput = styled.input`\n appearance: none !important;\n border: 0;\n border-radius: 0;\n border-color: transparent;\n box-shadow: none;\n font-family: inherit;\n background: transparent;\n outline: none;\n color: inherit;\n\n @media (max-width: ${getBreakpoint(\"small\")}px) {\n /* iOS zooms in on inputs with font sizes <16px on mobile */\n font-size: 16px;\n }\n\n ::placeholder {\n color: ${parseColor(\"text-subdued\")};\n }\n\n ::-webkit-search-decoration,\n ::-webkit-search-cancel-button,\n ::-webkit-search-results-button,\n ::-webkit-search-results-decoration {\n appearance: none;\n }\n\n :disabled {\n cursor: not-allowed;\n }\n\n ${spacingStyle}\n ${sizeStyle}\n`;\n\nexport type InternalTextInputProps = Omit<StyledInputProps, \"placeholder\"> & {\n /**\n * A textual hint or example to display before a value has been entered\n */\n placeholder?: string;\n /**\n * Fired only when the input is focused for the first time\n */\n onInitialFocus?: (e: FocusEvent<HTMLInputElement>) => void;\n};\n\n/**\n *\n * An unstyled input to be used as a basis for UI input components.\n * Supports all the props of a regular `HTMLInputElement`\n *\n * 🚨 The CSS `outline` is disabled so a focus ring must be applied by the consuming component.\n *\n * The following callbacks are available for tracking focus events:\n *\n * ### onFocus\n * `(e: FocusEvent<HTMLInputElement>) => void;`\n * ### onBlur\n * `(e: FocusEvent<HTMLInputElement>) => void;`\n * ### onInitialFocus\n * `(e: FocusEvent<HTMLInputElement>) => void;`<br>\n * occurs only when the input is focused for the first time\n *\n */\nexport const InternalTextInput = (props: InternalTextInputProps) => {\n const { onInitialFocus, onFocus, ...rest } = props;\n\n const hadInitialFocused = useRef(false);\n\n const handleOnFocus = (e: FocusEvent<HTMLInputElement>) => {\n if (!hadInitialFocused.current && props.onInitialFocus) {\n props.onInitialFocus(e);\n hadInitialFocused.current = true;\n }\n\n if (props.onFocus) {\n props.onFocus(e);\n }\n };\n\n return <StyledInput {...rest} onFocus={handleOnFocus} />;\n};\n","import React, { ChangeEventHandler } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport {\n InternalTextInput,\n InternalTextInputProps,\n} from \"@/components/internal-components/InternalTextInput\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakUiRoleToken } from \"@/styles\";\nimport { SizeStyleProps } from \"@/styles/utils/sizeStyle\";\n\ntype StyledTextInputWrapperProps = {\n $disabled: boolean;\n $color: OakUiRoleToken;\n $background: OakUiRoleToken;\n $borderColor: OakUiRoleToken;\n $hoverBackground: OakUiRoleToken;\n $hoverBorderColor: OakUiRoleToken;\n $focusBorderColor: OakUiRoleToken;\n $focusBackgroundColor: OakUiRoleToken;\n $disabledColor: OakUiRoleToken;\n $disabledBorderColor: OakUiRoleToken;\n $disabledBackgroundColor: OakUiRoleToken;\n};\n\nexport type OakFormInputProps = {\n /**\n * Disables user input and updates the appearance accordingly.\n */\n disabled?: boolean;\n /**\n * Sets the value. Use this in controlled components;\n */\n value?: string;\n /**\n * Sets the initial value. Use this for an uncontrolled component;\n */\n defaultValue?: string;\n /**\n * Used to target the input element in tests.\n */\n \"data-testid\"?: string;\n /**\n * Callback function that is called when the input value changes.\n */\n onChange?: ChangeEventHandler<HTMLInputElement>;\n /**\n * Alters the appearance of the input field to indicate when the input is invalid.\n */\n invalid?: boolean;\n /**\n * Give the field a highlight to draw attention to it\n */\n invalidBorderColor?: OakUiRoleToken;\n color?: OakUiRoleToken;\n background?: OakUiRoleToken;\n borderColor?: OakUiRoleToken;\n hoverBackground?: OakUiRoleToken;\n hoverBorderColor?: OakUiRoleToken;\n focusBorderColor?: OakUiRoleToken;\n focusBackgroundColor?: OakUiRoleToken;\n disabledColor?: OakUiRoleToken;\n disabledBorderColor?: OakUiRoleToken;\n disabledBackgroundColor?: OakUiRoleToken;\n /**\n * The width of the surrounding div - the input will fill this with padding.\n */\n wrapperWidth?: SizeStyleProps[\"$width\"];\n wrapperMaxWidth?: SizeStyleProps[\"$maxWidth\"];\n} & InternalTextInputProps;\n\nconst StyledTextInputWrapper = styled(OakFlex)<StyledTextInputWrapperProps>`\n &:hover {\n cursor: text;\n }\n\n background: ${(props) => parseColor(props.$background)};\n\n &:focus-within {\n border-color: ${(props) => parseColor(props.$focusBorderColor)};\n background: ${(props) => parseColor(props.$focusBackgroundColor)};\n }\n\n ${(props) =>\n !props.$disabled &&\n css`\n @media (hover: hover) {\n &:hover:not(:focus-within) {\n background: ${parseColor(props.$hoverBackground)};\n border-color: ${parseColor(props.$hoverBorderColor)};\n }\n }\n `}\n\n ${(props) =>\n props.$disabled &&\n css`\n background: ${parseColor(props.$disabledBackgroundColor)};\n border-color: ${parseColor(props.$disabledBorderColor)};\n color: ${parseColor(props.$disabledColor)};\n &:hover {\n cursor: not-allowed;\n }\n `}\n`;\n\n/**\n * Default input which can be extended to create specialised inputs.\n */\nexport const OakFormInput = ({\n type = \"text\",\n borderColor = \"border-neutral-lighter\",\n focusBorderColor = \"border-primary\",\n focusBackgroundColor = \"bg-primary\",\n background = \"bg-primary\",\n hoverBackground = \"bg-neutral\",\n hoverBorderColor = \"border-neutral\",\n disabledBackgroundColor = \"bg-neutral\",\n color = \"text-primary\",\n disabledBorderColor = \"border-neutral-lighter\",\n disabledColor = \"text-disabled\",\n invalid = false,\n invalidBorderColor = \"border-error\",\n wrapperWidth,\n wrapperMaxWidth,\n ...props\n}: OakFormInputProps) => {\n return (\n <StyledTextInputWrapper\n $height=\"fit-content\"\n $width={wrapperWidth}\n $maxWidth={wrapperMaxWidth}\n $borderRadius=\"border-radius-m\"\n $ba=\"border-solid-m\"\n $alignItems=\"center\"\n $position=\"relative\"\n $pa=\"spacing-8\"\n $font=\"body-2\"\n $color={color}\n $borderColor={invalid ? invalidBorderColor : borderColor}\n $background={background}\n $hoverBackground={hoverBackground}\n $hoverBorderColor={hoverBorderColor}\n $disabledColor={disabledColor}\n $disabledBackgroundColor={disabledBackgroundColor}\n $disabledBorderColor={disabledBorderColor}\n $focusBorderColor={focusBorderColor}\n $focusBackgroundColor={focusBackgroundColor}\n $disabled={!!props.disabled}\n onClick={(event) => {\n event.currentTarget.querySelector(\"input\")?.focus();\n }}\n >\n <InternalTextInput\n type={type}\n $width={\"100%\"}\n aria-invalid={invalid}\n {...props}\n />\n </StyledTextInputWrapper>\n );\n};\n","import React, { ComponentProps } from \"react\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\n\nexport type OakJauntyAngleLabelProps = {\n label: string;\n} & ComponentProps<typeof OakBox>; // Adding div type for OakBox for aria features\nexport const OakJauntyAngleLabel = (props: OakJauntyAngleLabelProps) => {\n const { label, ...oakBoxProps } = props;\n return (\n <OakBox\n $borderRadius={\"border-radius-m\"}\n $ph={\"spacing-8\"}\n $pv={\"spacing-4\"}\n $font={[\"heading-7\", \"heading-6\"]}\n $transform={\"rotate(-1.5deg)\"}\n {...oakBoxProps}\n >\n {label}\n </OakBox>\n );\n};\n","import { getFontSize } from \"./getFontSize\";\n\nimport { OakMultilineTextProps } from \"@/components/form-elements/OakMultilineText/OakMultilineText\";\n\nexport const MAX_PADDING = 12;\n\n/** Returns the internal padding for a textarea component based on the height and font size. */\nexport function getInternalPadding(\n height: OakMultilineTextProps[\"$height\"],\n): string {\n if (typeof height !== \"string\") {\n return `${MAX_PADDING}px`;\n }\n const heightNumber = parseInt(height.replace(\"spacing-\", \"\"));\n const textLineHeight = Math.ceil(getFontSize(\"body-1\") * 1.4);\n const padding = Math.max(\n Math.floor((heightNumber - textLineHeight) / 2) - 1,\n 0,\n );\n return `${Math.min(padding, MAX_PADDING)}px`;\n}\n","import { oakFontSizeTokens, oakFontTokens } from \"@/styles/theme/typography\";\n\n/** Returns the font size in pixels for a given font size token */\nexport function getFontSize(token: keyof typeof oakFontTokens): number {\n const fontSizeToken = oakFontTokens[token][0];\n return oakFontSizeTokens[fontSizeToken];\n}\n","import styled, { css, CSSProperties } from \"styled-components\";\n\nimport {\n responsiveStyle,\n ResponsiveValues,\n} from \"@/styles/utils/responsiveStyle\";\nimport { OakBox, OakBoxProps } from \"@/components/layout-and-structure/OakBox\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport { OakCombinedSpacingToken } from \"@/styles\";\n\nconst gridStyle = css<OakGridProps>`\n ${responsiveStyle(\"row-gap\", (props) => props.$rg, parseSpacing)}\n ${responsiveStyle(\"column-gap\", (props) => props.$cg, parseSpacing)}\n ${responsiveStyle(\"grid-auto-rows\", (props) => props.$gridAutoRows)}\n ${responsiveStyle(\"grid-template-areas\", (props) => props.$gridTemplateAreas)}\n ${responsiveStyle(\n \"grid-template-columns\",\n (props) => props.$gridTemplateColumns,\n )}\n ${responsiveStyle(\"grid-template-rows\", (props) => props.$gridTemplateRows)}\n`;\n\nexport type OakGridProps = OakBoxProps & {\n /**\n * Applies `row-gap` to the grid\n *\n * Accepts a spacing token or a responsive array of spacing tokens.\n */\n $rg?: ResponsiveValues<OakCombinedSpacingToken>;\n /**\n * Applies `column-gap` to the grid\n *\n * Accepts a spacing token or a responsive array of spacing tokens.\n */\n $cg?: ResponsiveValues<OakCombinedSpacingToken>;\n /**\n * Applies `grid-auto-rows` to the grid\n *\n * Accepts a `grid-auto-rows` value or a responsive array of `grid-auto-rows` values.\n */\n $gridAutoRows?: ResponsiveValues<CSSProperties[\"gridAutoRows\"]>;\n /**\n * Applies `grid-template-areas` to the grid\n *\n * Accepts a `grid-template-areas` value or a responsive array of `grid-template-areas` values.\n */\n $gridTemplateAreas?: ResponsiveValues<CSSProperties[\"gridTemplateAreas\"]>;\n /**\n * Applies `grid-template-columns` to the grid\n *\n * Accepts a `grid-template-columns` value or a responsive array of `grid-template-columns` values.\n */\n $gridTemplateColumns?: ResponsiveValues<CSSProperties[\"gridTemplateColumns\"]>;\n /**\n * Applies `grid-template-rows` to the grid\n *\n * Accepts a `grid-template-rows` value or a responsive array of `grid-template-rows` values.\n */\n $gridTemplateRows?: ResponsiveValues<CSSProperties[\"gridTemplateRows\"]>;\n};\n\n/**\n * Creates a grid layout\n *\n * Defaults to a 12 column grid\n */\nexport const OakGrid = styled(OakBox)<OakGridProps>`\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n width: 100%;\n\n ${gridStyle};\n`;\n","import styled, { css, CSSProperties } from \"styled-components\";\n\nimport {\n responsiveStyle,\n ResponsiveValues,\n} from \"@/styles/utils/responsiveStyle\";\nimport { SpacingStyleProps } from \"@/styles/utils/spacingStyle\";\nimport {\n OakFlex,\n OakFlexProps,\n} from \"@/components/layout-and-structure/OakFlex\";\n\ntype ColRowSpan = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\nexport type OakGridAreaProps = {\n /**\n * Determines the number of columns the element should span.\n *\n * Accepts a value from 0-12 or a responsive value of 0-12.\n */\n $colSpan: ResponsiveValues<ColRowSpan>;\n /**\n * Determines the number of rows the element should span.\n *\n * Accepts a value from 0-12 or a responsive value of 0-12.\n */\n $rowSpan?: ResponsiveValues<ColRowSpan>;\n /**\n * Sets the order of the element.\n *\n * Accepts a number or a responsive array of numbers.\n */\n $order?: ResponsiveValues<CSSProperties[\"order\"]>;\n /**\n * The start column of the element.\n *\n * Accepts a value from 0-12 or a responsive value of 0-12.\n */\n $colStart?: ResponsiveValues<ColRowSpan>;\n /**\n * The end column of the element.\n *\n * Accepts a value from 0-12 or a responsive value of 0-12.\n */\n $colEnd?: ResponsiveValues<ColRowSpan>;\n /**\n * The start row of the element.\n *\n * Accepts a value from 0-12 or a responsive value of 0-12.\n */\n $rowStart?: ResponsiveValues<ColRowSpan>;\n} & SpacingStyleProps;\n\nconst combineSpanStart = (\n start?: ColRowSpan | null,\n span?: ColRowSpan | null,\n) => {\n return start ? `${start}/${span}` : `${span}`;\n};\n\nconst parseSpanStart = (value?: string | null) => {\n if (value?.includes(\"/\")) {\n const [start, span] = value.split(\"/\");\n return `${start} / span ${span}`;\n }\n const span = value;\n return `span ${span}`;\n};\n\nconst gridArea = css<OakGridAreaProps>`\n flex-direction: column;\n ${responsiveStyle(\n \"grid-column\",\n (props) => {\n return Array.isArray(props.$colSpan)\n ? props.$colSpan.map((span, index) =>\n combineSpanStart(\n Array.isArray(props.$colStart)\n ? props.$colStart[index]\n : props.$colStart,\n span,\n ),\n )\n : combineSpanStart(\n Array.isArray(props.$colStart)\n ? props.$colStart[0]\n : props.$colStart,\n props.$colSpan,\n );\n },\n (value) => parseSpanStart(value),\n )};\n ${responsiveStyle(\n \"grid-row\",\n (props) => {\n return Array.isArray(props.$rowSpan)\n ? props.$rowSpan.map((span, index) =>\n combineSpanStart(\n Array.isArray(props.$rowStart)\n ? props.$rowStart[index]\n : props.$rowStart,\n span,\n ),\n )\n : combineSpanStart(\n Array.isArray(props.$rowStart)\n ? props.$rowStart[0]\n : props.$rowStart,\n props.$rowSpan,\n );\n },\n (value) => parseSpanStart(value),\n )};\n ${responsiveStyle(\n \"order\",\n (props) => props.$order,\n (value) => value && `${value}`,\n )};\n ${responsiveStyle(\"grid-row\", (props) =>\n props.$rowSpan ? `span ${props.$rowSpan}` : \"span 1\",\n )};\n ${responsiveStyle(\"grid-column-start\", (props) => props.$colStart)}\n ${responsiveStyle(\"grid-column-end\", (props) => props.$colEnd)}\n ${responsiveStyle(\"grid-row-start\", (props) => props.$rowStart)}\n`;\n\n/**\n *\n * OakGridArea is a flex container that should be used inside OakGrid.\n *\n * - There is no nesting of OakGridAreas\n * - Column and row arrangements are achieved through $colSpan, $rowSpan, $colStart, $colEnd, $rowStart, $rowEnd\n *\n */\n\nexport const OakGridArea = styled(OakFlex)<OakGridAreaProps & OakFlexProps>`\n ${gridArea}\n`;\n","import { useEffect, useState } from \"react\";\n\nimport { Device, getMediaQuery } from \"@/styles/utils/responsiveStyle\";\n\nexport const useMediaQuery = (device: Device) => {\n const [matches, setMatches] = useState(false);\n\n const query = getMediaQuery(device);\n\n useEffect(() => {\n const media = globalThis.matchMedia(query);\n if (media.matches !== matches) {\n setMatches(media.matches);\n }\n const listener = () => setMatches(media.matches);\n globalThis.addEventListener(\"resize\", listener);\n return () => globalThis.removeEventListener(\"resize\", listener);\n }, [matches, query]);\n\n return matches;\n};\n","import { useEffect, useState } from \"react\";\n\nimport { Device, getMediaQuery } from \"@/styles/utils/responsiveStyle\";\n\ntype MediaQueries = {\n mediaDesktop: MediaQueryList;\n mediaTablet: MediaQueryList;\n};\n\nfunction getMediaQueries(): MediaQueries {\n const mediaDesktop = globalThis.matchMedia(getMediaQuery(\"desktop\"));\n const mediaTablet = globalThis.matchMedia(getMediaQuery(\"tablet\"));\n return { mediaDesktop, mediaTablet };\n}\n\nfunction matchBreakpoint({ mediaDesktop, mediaTablet }: MediaQueries): Device {\n if (mediaDesktop.matches) {\n return \"desktop\";\n } else if (mediaTablet.matches) {\n return \"tablet\";\n }\n return \"mobile\";\n}\n\nexport const useBreakpoint = () => {\n const [value, setValue] = useState<Device>(() => {\n if (globalThis) {\n return matchBreakpoint(getMediaQueries());\n }\n return \"desktop\";\n });\n\n useEffect(() => {\n const queries = getMediaQueries();\n const listener = () => setValue(matchBreakpoint(queries));\n globalThis.addEventListener(\"resize\", listener);\n return () => {\n globalThis.removeEventListener(\"resize\", listener);\n };\n }, []);\n\n return value;\n};\n","import React, { useState, forwardRef } from \"react\";\nimport styled from \"styled-components\";\n\nimport { getInternalPadding } from \"@/styles/helpers/getInternalPadding\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport {\n OakTextArea,\n OakTextAreaProps,\n} from \"@/components/form-elements/OakTextArea\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { OakLabel } from \"@/components/form-elements/OakLabel\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { OakGrid } from \"@/components/layout-and-structure/OakGrid\";\nimport { OakGridArea } from \"@/components/layout-and-structure/OakGridArea\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { useMediaQuery } from \"@/hooks\";\n\nexport type OakMultilineTextProps = {\n /**\n * Set the textarea text on first render when state is controlled internally (i.e. if `value` has not been provided)\n */\n initialValue?: string;\n /**\n * Maximum number of characters\n */\n charLimit: number;\n ariaLabel?: string;\n /**\n * Display errors passed in as a prop\n */\n errors?: Array<string>;\n label?: string;\n} & Omit<OakTextAreaProps, \"$width\">;\n\ntype StyledOakTextAreaProps = OakTextAreaProps;\n\nconst StyledOakTextArea = styled(OakTextArea)<StyledOakTextAreaProps>`\n &:focus-visible {\n border-color: ${parseColor(\"border-primary\")};\n }\n\n &:hover {\n background: ${parseColor(\"bg-btn-secondary-hover\")};\n border-color: ${(props) =>\n props.disabled ? \"\" : parseColor(\"border-neutral\")};\n }\n\n ::placeholder {\n color: ${parseColor(\"text-subdued\")};\n }\n`;\n\nconst UnstyledComponent = forwardRef(\n (\n {\n charLimit,\n placeholder,\n disabled,\n errors,\n ariaLabel,\n value,\n initialValue,\n onChange,\n onBlur,\n onFocus,\n label,\n id,\n name,\n $height = [\"spacing-240\", \"spacing-80\", \"spacing-56\"],\n $overflowX = [null, null, \"auto\"],\n $overflowY = [\"auto\", \"auto\", null],\n $whiteSpace = [\"wrap\", \"wrap\", \"nowrap\"],\n ...textAreaProps\n }: OakMultilineTextProps,\n ref?: React.Ref<HTMLTextAreaElement>,\n ) => {\n const [showCharCount, setShowCharCount] = useState(false);\n const [internalValue, setInternalValue] = useState(initialValue);\n\n const isControlled: boolean = value !== undefined;\n const charCountWidth = charLimit > 99 ? \"spacing-56\" : \"spacing-48\";\n const charCount = isControlled\n ? value?.toString().length\n : (internalValue?.length ?? 0);\n\n const handleFocus = (e: React.FocusEvent<HTMLTextAreaElement>) => {\n onFocus?.(e);\n setShowCharCount(true);\n };\n\n const handleBlur = (e: React.FocusEvent<HTMLTextAreaElement>) => {\n onBlur?.(e);\n setShowCharCount(false);\n };\n\n const handleChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {\n if (!isControlled) {\n setInternalValue(e.target.value);\n }\n\n onChange?.(e);\n };\n\n const heightForDevice = useDevice($height);\n const textAreaPadding = getInternalPadding(heightForDevice);\n\n return (\n <OakFlex\n $flexDirection={[\"column\"]}\n $gap={[\"spacing-8\", null]}\n $width={\"100%\"}\n >\n {label && (\n <OakLabel htmlFor={id} $font={\"body-2-bold\"}>\n {label}\n </OakLabel>\n )}\n <StyledOakTextArea\n ref={ref}\n id={id}\n name={name}\n value={isControlled ? value : internalValue}\n onFocus={handleFocus}\n onChange={handleChange}\n onBlur={handleBlur}\n maxLength={charLimit}\n placeholder={placeholder}\n disabled={disabled}\n aria-label={ariaLabel}\n $background={disabled ? \"bg-neutral\" : \"bg-primary\"}\n $color={\"text-primary\"}\n $borderRadius={\"border-radius-m\"}\n $ba={\"border-solid-m\"}\n style={{ padding: textAreaPadding, overscrollBehavior: \"none\" }}\n $borderColor={\n errors && errors?.length > 0\n ? \"border-error\"\n : \"border-neutral-lighter\"\n }\n $height={$height}\n $overflowX={$overflowX}\n $overflowY={$overflowY}\n $whiteSpace={$whiteSpace}\n $width={\"100%\"}\n aria-describedby={`${name}-invalid-error`}\n {...textAreaProps}\n ></StyledOakTextArea>\n {/* Span is inside OakFlex to stop textarea width changing when charCount changes. */}\n <OakGrid\n $minWidth={[charCountWidth, null]}\n $pb={[\"spacing-20\"]}\n $position={[\"relative\", null]}\n >\n {errors && errors.length > 0 && (\n <OakGridArea $colSpan={10} $position={\"relative\"}>\n <OakFlex\n $flexDirection={\"row\"}\n $position={\"absolute\"}\n $top={\"spacing-0\"}\n $left={\"spacing-0\"}\n >\n <OakIcon\n iconName=\"warning\"\n $colorFilter={\"icon-error\"}\n $width={\"spacing-16\"}\n $height={\"spacing-16\"}\n ></OakIcon>\n <OakSpan\n $overflowY={\"auto\"}\n $overflowX={\"auto\"}\n $font={\"body-4\"}\n $color={\"text-error\"}\n id={`${name}-invalid-error`}\n $pl={\"spacing-4\"}\n >\n {errors.join(\". \")}\n </OakSpan>\n </OakFlex>\n </OakGridArea>\n )}\n\n <OakGridArea $colSpan={2}>\n {showCharCount && (\n <OakSpan\n aria-label=\"character count\"\n $font={\"body-4\"}\n $color={\"text-subdued\"}\n $position={[\"absolute\", null]}\n $top={[\"spacing-0\", null]}\n $right={[\"spacing-0\", null]}\n >\n {charCount}/{charLimit}\n </OakSpan>\n )}\n </OakGridArea>\n </OakGrid>\n </OakFlex>\n );\n },\n);\n\n/**\n *\n * This component wraps OakTextArea and provides the following functionality\n * - Displays errors passed in as a prop\n * - Displays and updates character count on focus only\n * - Passes stored text to onChange and onBlur callbacks\n * - Allows state to be controlled either internally or externally\n *\n * ### Callbacks\n *\n * onBlur\n * onChange\n * onFocus: display character count\n *\n * ### Notes\n * - Current method of clearing the component is to reset its key in the parent component\n * - useImperativeHandle could be used to expose a clear method\n */\nexport const OakMultilineText = UnstyledComponent;\n\n// TODO use common hook when implemented\nexport function useDevice<T>(values: T | Array<T>): T {\n const isDesktop = useMediaQuery(\"desktop\");\n const isTablet = useMediaQuery(\"tablet\");\n\n if (Array.isArray(values)) {\n if (isDesktop) {\n return values[0] as T;\n }\n if (isTablet) {\n return values[1] || (values[0] as T);\n }\n return values[2] || (values[0] as T);\n }\n return values;\n}\n","import React, { createContext, useState } from \"react\";\nimport styled from \"styled-components\";\n\nimport { TypographyStyleProps } from \"@/styles/utils/typographyStyle\";\nimport { ColorStyleProps } from \"@/styles/utils/colorStyle\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { FlexStyleProps } from \"@/styles/utils/flexStyle\";\n\nconst DisplayContentsLegend = styled(\"legend\")`\n display: contents;\n`;\n\ntype RadioContextType = {\n currentValue: string;\n name: string;\n disabled?: boolean;\n onValueUpdated?: (event: React.ChangeEvent<HTMLInputElement>) => void;\n};\n\nexport const RadioContext = createContext<RadioContextType>({\n currentValue: \"default\",\n name: \"default\",\n});\n\nexport type OakRadioGroupProps = {\n label?: string;\n name: string;\n disabled?: boolean;\n children: React.ReactNode;\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;\n /**\n * Sets the value of the radio group\n * for use as a controlled component\n */\n value?: string;\n /**\n * Sets the initial value of the radio group\n * for use as an uncontrolled component\n */\n defaultValue?: string;\n} & Pick<TypographyStyleProps, \"$font\"> &\n ColorStyleProps &\n FlexStyleProps;\n\n/**\n *\n * OakRadioGroup allow users to select a single item from a list of mutually exclusive options .\n * OakRadioGroup consists of a set of OakRadioButtons, and a label. Each radio includes a label and a visual selection indicator. A single radio button within the group can be selected at a time. Users may click or touch a radio button to select it, or use the Tab key to navigate to the group, the arrow keys to navigate within the group, and the Space key to select an option.\n * ## Usage\n *\n * use the callback onChange to get the value of the selected radio button.\n *\n */\nexport const OakRadioGroup = (props: OakRadioGroupProps) => {\n const {\n name,\n children,\n label,\n onChange,\n $font = \"body-1-bold\",\n $gap = \"spacing-16\",\n disabled,\n value,\n defaultValue = \"\",\n ...rest\n } = props;\n\n const [currentValue, setCurrentValue] = useState(defaultValue);\n\n const handleValueUpdated = (event: React.ChangeEvent<HTMLInputElement>) => {\n if (value === undefined) {\n setCurrentValue(event.target.value);\n }\n if (onChange) {\n onChange(event);\n }\n };\n\n return (\n <OakFlex\n as=\"fieldset\"\n $gap={$gap}\n $flexDirection={\"column\"}\n $borderStyle={\"none\"}\n $pa=\"spacing-0\"\n $ma=\"spacing-0\"\n {...rest}\n >\n {label && (\n <DisplayContentsLegend>\n <OakBox $font={$font}>{label}</OakBox>\n </DisplayContentsLegend>\n )}\n <RadioContext.Provider\n value={{\n currentValue: value ?? currentValue,\n name,\n disabled: disabled,\n onValueUpdated: handleValueUpdated,\n }}\n >\n {children}\n </RadioContext.Provider>\n </OakFlex>\n );\n};\n","import React, { forwardRef, useRef } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakBorderRadiusToken, OakUiRoleToken } from \"@/styles\";\nimport { parseBorderRadius } from \"@/styles/helpers/parseBorderRadius\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { BorderStyleProps, borderStyle } from \"@/styles/utils/borderStyle\";\nimport { ColorStyleProps, colorStyle } from \"@/styles/utils/colorStyle\";\nimport { SizeStyleProps, sizeStyle } from \"@/styles/utils/sizeStyle\";\nimport { SpacingStyleProps, spacingStyle } from \"@/styles/utils/spacingStyle\";\n\n/**\n *\n * These components can be used with InternalRadioWrapper which allows for customisable icons\n *\n * Several flavours of Radio are created here:\n * - Default\n * - Hover decorations\n * - Focus decorations\n * - Hover + Focus decorations\n *\n * As they are styled components they can be further customised in implementation. Alternatively additional\n * components can be created here.\n *\n */\n\nexport type BaseRadioProps = {\n id: string;\n disabled?: boolean;\n value: string;\n name?: string;\n /**\n * Uncontrolled checked state\n */\n defaultChecked?: boolean;\n /**\n * Controlled checked state\n */\n checked?: boolean;\n /**\n * Called after a mouseEnter and mouseLeave event has happened.\n * Provides the hovered option's `value`, `id`, and hover `duration` (ms).\n */\n onHovered?: (value: string, id: string, duration: number) => void;\n /**\n * Called when the checked value changes.\n */\n onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;\n /**\n * Called when the input receives focus.\n */\n onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;\n /**\n * Called when the input loses focus.\n */\n onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;\n \"aria-label\"?: string;\n \"aria-labelledby\"?: string;\n \"data-testid\"?: string;\n};\n\nconst BaseRadio = forwardRef(\n (props: BaseRadioProps, ref?: React.Ref<HTMLInputElement>) => {\n const { onHovered, ...rest } = props;\n\n const hoverStart = useRef(Date.now());\n\n const handleMouseEnter = () => {\n hoverStart.current = Date.now();\n };\n\n const handleMouseLeave = () => {\n const delta = Date.now() - hoverStart.current;\n if (onHovered) {\n onHovered(props.value, props.id, delta);\n }\n };\n\n return (\n <input\n ref={ref}\n type=\"radio\"\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n {...rest}\n />\n );\n },\n);\n\ntype StyledBaseRadioProps = BaseRadioProps &\n ColorStyleProps &\n SpacingStyleProps &\n BorderStyleProps &\n SizeStyleProps & {\n $checkedBackground?: OakUiRoleToken | null;\n $checkedBorderColor?: OakUiRoleToken;\n $uncheckedBorderColor?: OakUiRoleToken;\n };\n\ntype HoverBaseRadioProps = {\n $hoverBorderRadius: OakBorderRadiusToken;\n};\n\n/**\n *\n * These components can be used with InternalRadioWrapper which allows for customisable icons\n *\n * Several flavours of Radio are created here:\n * - Default\n * - Hover decorations\n * - Focus decorations\n * - Hover + Focus decorations\n *\n * NB. Hover decorations must be wrapped in a box with position relative to allow for the hover effect to work\n *\n * As they are styled components they can be further customised in implementation. Alternatively additional\n * components can be created here.\n *\n *\n * ## Events\n * The following callbacks are available for tracking focus events:\n *\n * ### onChange\n * onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;\n *\n * ### onFocus\n * onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;\n *\n * ### onBlur\n * onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;\n *\n * ### onHovered\n * `onHovered?: (id, value, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n *\n *\n */\nexport const internalRadioDefaults = {\n $borderRadius: \"border-radius-xs\",\n $ba: \"border-solid-m\",\n $borderColor: \"text-primary\",\n $checkedBackground: \"text-primary\",\n} satisfies Partial<StyledBaseRadioProps>;\n\nexport const InternalRadio = styled(BaseRadio).attrs<StyledBaseRadioProps>(\n ({ theme, ...props }) => ({\n ...internalRadioDefaults,\n ...props,\n }),\n)<StyledBaseRadioProps>`\n /* removing default appearance */\n -webkit-appearance: none;\n appearance: none;\n cursor: pointer;\n margin: 0;\n outline: none;\n ${borderStyle}\n ${colorStyle}\n ${spacingStyle}\n ${sizeStyle}\n\n border-color: ${(props) => parseColor(props.$uncheckedBorderColor)};\n\n &:checked {\n ${(props) => css`\n background: ${parseColor(props.$checkedBackground)};\n border-color: ${parseColor(props.$checkedBorderColor)};\n `};\n }\n\n &:disabled {\n pointer-events: none;\n }\n\n @media (hover: hover) {\n &:hover:not(:disabled) {\n border-color: ${(props) => parseColor(props.$checkedBackground)};\n }\n }\n`;\n\nexport const internalRadioHoverDefaults = {\n $hoverBorderRadius: \"border-radius-xs\",\n} satisfies Partial<HoverBaseRadioProps>;\n\nexport const InternalRadioHover = styled(InternalRadio).attrs<\n StyledBaseRadioProps & HoverBaseRadioProps\n>(({ theme, ...props }) => ({\n ...internalRadioHoverDefaults,\n ...props,\n}))<StyledBaseRadioProps & HoverBaseRadioProps>`\n /* @media wrapper is required to prevent hover effect on iOS Safari */\n\n @media (hover: hover) {\n &:hover:not(&:checked):not(&:disabled)::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n width: 60%;\n height: 60%;\n transform: translate(-50%, -50%);\n border-radius: ${(props) => parseBorderRadius(props.$hoverBorderRadius)};\n background: ${(props) => parseColor(props.$checkedBackground)};\n }\n }\n`;\n\nconst focusStyle = css`\n &:focus-visible {\n box-shadow: ${parseDropShadow(\"drop-shadow-centered-lemon\")};\n }\n`;\n\nexport const InternalRadioFocus = styled(InternalRadio)<StyledBaseRadioProps>`\n ${focusStyle}\n`;\n\nexport const InternalRadioHoverFocus = styled(InternalRadioHover)<\n StyledBaseRadioProps & HoverBaseRadioProps\n>`\n ${focusStyle}\n`;\n","import React from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { InternalRadio } from \"@/components/internal-components/InternalRadio\";\nimport {\n OakFlex,\n OakFlexProps,\n} from \"@/components/layout-and-structure/OakFlex\";\nimport {\n OakAllSpacingToken,\n OakBorderWidthToken,\n OakUiRoleToken,\n} from \"@/styles\";\nimport { ResponsiveValues } from \"@/styles/utils/responsiveStyle\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport { parseBorder } from \"@/styles/helpers/parseBorder\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\n\nexport type InternalRadioWrapperProps = {\n size?: ResponsiveValues<OakAllSpacingToken>;\n internalRadio: React.JSX.Element;\n checked?: boolean;\n disabled?: boolean;\n /**\n * Allows the focus ring to be disabled. This is useful when focus is indicated\n * by other means, such as a border or background color change.\n */\n disableFocusRing?: boolean;\n /**\n * Allows the size of the radio button to be customized.\n */\n radioOuterSize?: OakAllSpacingToken;\n /**\n * Allows the size of the inner \"checked\" circle of the radio button to be customized.\n */\n radioInnerSize?: OakAllSpacingToken;\n /**\n * Allows the width of the radio button border to be customized.\n */\n radioBorderWidth?: OakBorderWidthToken;\n /**\n * Allows the background color of the radio button to be customized.\n */\n radioBackground?: OakUiRoleToken;\n /**\n * Allows the width of the radio button border to be customized when the radio button is checked.\n */\n checkedRadioBorderWidth?: OakBorderWidthToken;\n /**\n * Allows the borderColor of the radio button border to be customized.\n */\n radioBorderColor?: OakUiRoleToken;\n};\n\ntype VisibleRadioButtonInputProps = OakFlexProps & {\n $disableFocusRing: boolean;\n $radioInnerSize: OakAllSpacingToken;\n disabled?: boolean;\n};\n\n// Extracted from <./src/components/molecules/OakRadioButton/OakRadioButton.tsx>\nconst VisibleRadioButtonInput = styled(OakFlex)<VisibleRadioButtonInputProps>`\n border-radius: 50%;\n\n ${(props) =>\n !props.$disableFocusRing &&\n css`\n ${InternalRadio}:focus-visible ~ &::before {\n content: \"\";\n height: ${parseSpacing(\"spacing-32\")};\n width: ${parseSpacing(\"spacing-32\")};\n background: transparent;\n display: block;\n position: absolute;\n border-radius: 50%;\n border: ${parseBorder(\"border-solid-m\")}\n ${parseColor(\"border-neutral-stronger\")};\n box-shadow: inset 0 0 0 0.13rem ${parseColor(\"bg-decorative5-main\")};\n }\n `}\n\n ${InternalRadio}:checked ~ &::after {\n content: \"\";\n height: ${(props) => parseSpacing(props.$radioInnerSize)};\n width: ${(props) => parseSpacing(props.$radioInnerSize)};\n background: ${parseColor(\"bg-inverted\")};\n position: absolute;\n border-radius: 50%;\n border: ${parseBorder(\"border-solid-m\")} ${parseColor(\"border-inverted\")};\n }\n`;\n\n// Extracted from <./src/components/molecules/OakRadioButton/OakRadioButton.tsx>\n// This is a hack to force React to rerender when the disabled prop is changed. Otherwise the pseudo element is not updated.\nconst DisabledVisibleRadioButtonInput = styled(VisibleRadioButtonInput)`\n ${InternalRadio}:checked ~ &::after {\n content: \"\";\n height: ${(props) => parseSpacing(props.$radioInnerSize)};\n width: ${(props) => parseSpacing(props.$radioInnerSize)};\n background: ${parseColor(\"bg-btn-primary-disabled\")};\n position: absolute;\n border-radius: 50%;\n border: ${parseBorder(\"border-solid-m\")} ${parseColor(\"border-inverted\")};\n }\n`;\n\n/**\n *\n * This component is a wrapper for the InternalRadio component. It allows for customisable icons.\n *\n * NB. size must have the same value as the InternalRadio width and height\n *\n *\n */\nexport const InternalRadioWrapper = (props: InternalRadioWrapperProps) => {\n const {\n size = \"spacing-24\",\n internalRadio,\n disabled,\n disableFocusRing = false,\n radioInnerSize = \"spacing-16\",\n radioOuterSize = \"spacing-24\",\n radioBorderWidth = \"border-solid-m\",\n radioBorderColor = \"border-primary\",\n radioBackground = \"bg-primary\",\n checkedRadioBorderWidth = \"border-solid-m\",\n checked,\n } = props;\n const finalRadioBorderWidth = checked\n ? checkedRadioBorderWidth\n : radioBorderWidth;\n\n return (\n <OakFlex\n $position=\"relative\"\n $width={size}\n $height={size}\n $flexShrink={0}\n $justifyContent={\"center\"}\n $alignItems={\"center\"}\n >\n {internalRadio}\n {!disabled ? (\n <VisibleRadioButtonInput\n $height={radioOuterSize}\n $width={radioOuterSize}\n $ba={finalRadioBorderWidth}\n $borderColor={radioBorderColor}\n $flexGrow={0}\n $flexShrink={0}\n $alignItems={\"center\"}\n $justifyContent={\"center\"}\n $background={radioBackground}\n $disableFocusRing={!!disableFocusRing}\n $radioInnerSize={radioInnerSize}\n $position={\"absolute\"}\n $top={\"spacing-0\"}\n $left={\"spacing-0\"}\n />\n ) : (\n <DisabledVisibleRadioButtonInput\n $height={radioOuterSize}\n $width={radioOuterSize}\n $ba={finalRadioBorderWidth}\n $borderColor={\"bg-btn-primary-disabled\"}\n $flexGrow={0}\n $flexShrink={0}\n $alignItems={\"center\"}\n $justifyContent={\"center\"}\n $background={radioBackground}\n $disableFocusRing={!!disableFocusRing}\n $radioInnerSize={radioInnerSize}\n $position={\"absolute\"}\n $top={\"spacing-0\"}\n $left={\"spacing-0\"}\n />\n )}\n </OakFlex>\n );\n};\n","import React, { ReactNode, forwardRef, useContext } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { RadioContext } from \"@/components/form-elements/OakRadioGroup/OakRadioGroup\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport { FlexStyleProps } from \"@/styles/utils/flexStyle\";\nimport { responsiveStyle } from \"@/styles/utils/responsiveStyle\";\nimport { OakBox, OakBoxProps } from \"@/components/layout-and-structure/OakBox\";\nimport { OakLabel, OakLabelProps } from \"@/components/form-elements/OakLabel\";\nimport {\n OakAllSpacingToken,\n OakBorderWidthToken,\n OakUiRoleToken,\n} from \"@/styles\";\nimport { InternalRadioWrapper } from \"@/components/internal-components/InternalRadioWrapper\";\nimport { InternalRadio } from \"@/components/internal-components/InternalRadio/InternalRadio\";\n\ntype RadioButtonLabelProps = {\n $labelAlignItems?: FlexStyleProps[\"$alignItems\"];\n $labelGap?: FlexStyleProps[\"$gap\"];\n disabled?: boolean;\n} & OakLabelProps;\n\nconst RadioButtonLabel = styled(OakLabel)<RadioButtonLabelProps>`\n ${(props) =>\n !props.disabled &&\n css`\n cursor: pointer;\n `}\n\n display: flex;\n ${responsiveStyle(\"gap\", (props) => props.$labelGap, parseSpacing)}\n ${responsiveStyle(\"align-items\", (props) => props.$labelAlignItems)}\n`;\n\nexport type OakRadioButtonProps = {\n id: string;\n label: ReactNode;\n value: string;\n tabIndex?: number;\n \"data-testid\"?: string;\n disabled?: boolean;\n required?: boolean;\n /**\n * Allows the focus ring to be disabled. This is useful when focus is indicated\n * by other means, such as a border or background color change.\n */\n disableFocusRing?: boolean;\n /**\n * Allows the size of the radio button to be customized.\n */\n radioOuterSize?: OakAllSpacingToken;\n /**\n * Allows the size of the inner \"checked\" circle of the radio button to be customized.\n */\n radioInnerSize?: OakAllSpacingToken;\n /**\n * Allows the width of the radio button border to be customized.\n */\n radioBorderWidth?: OakBorderWidthToken;\n /**\n * Allows the background color of the radio button to be customized.\n */\n radioBackground?: OakUiRoleToken;\n /**\n * Allows the width of the radio button border to be customized when the radio button is checked.\n */\n checkedRadioBorderWidth?: OakBorderWidthToken;\n} & OakBoxProps &\n RadioButtonLabelProps;\n\n/**\n * A radio button component.\n *\n * Use within `OakRadioGroup` component.\n */\nexport const OakRadioButton = forwardRef<HTMLInputElement, OakRadioButtonProps>(\n (props, ref) => {\n const {\n id,\n label,\n value,\n tabIndex,\n disabled,\n required,\n $labelGap = \"spacing-8\",\n $labelAlignItems = \"center\",\n $font = \"body-1\",\n \"data-testid\": dataTestId,\n disableFocusRing = false,\n radioInnerSize = \"spacing-16\",\n radioOuterSize = \"spacing-24\",\n radioBorderWidth = \"border-solid-m\",\n radioBackground = \"bg-primary\",\n checkedRadioBorderWidth = \"border-solid-m\",\n ...rest\n } = props;\n const radioContext = useContext(RadioContext);\n const anyDisabled = disabled || radioContext.disabled;\n\n return (\n <OakBox {...rest}>\n <RadioButtonLabel\n htmlFor={id}\n $labelAlignItems={$labelAlignItems}\n $labelGap={$labelGap}\n $font={$font}\n data-testid={dataTestId}\n disabled={anyDisabled}\n >\n <InternalRadioWrapper\n disabled={anyDisabled}\n checked={value === radioContext.currentValue}\n disableFocusRing={disableFocusRing}\n radioInnerSize={radioInnerSize}\n radioOuterSize={radioOuterSize}\n radioBorderWidth={radioBorderWidth}\n size={radioOuterSize}\n radioBackground={radioBackground}\n checkedRadioBorderWidth={checkedRadioBorderWidth}\n internalRadio={\n <InternalRadio\n id={id}\n ref={ref}\n name={radioContext.name}\n disabled={anyDisabled}\n value={value}\n checked={value === radioContext.currentValue}\n onChange={radioContext.onValueUpdated}\n $ba={\"border-solid-none\"}\n {...rest}\n />\n }\n />\n {label}\n </RadioButtonLabel>\n </OakBox>\n );\n },\n);\n\nexport type OakRadioButtonType = typeof OakRadioButton;\n","import React, { useContext } from \"react\";\n\nimport { OakSecondaryButton } from \"@/components/buttons/OakSecondaryButton\";\nimport { RadioContext } from \"@/components/form-elements/OakButtonAsRadioGroup/OakButtonAsRadioGroup\";\nimport { OakPrimaryButton } from \"@/components/buttons/OakPrimaryButton\";\n\nexport type OakSecondaryButtonAsRadioProps = {\n children?: React.ReactNode;\n value: string;\n};\n\n/**\n *\n * To be used as a child of OakButtonAsRadioGroup.\n * Highlights when the value matches the current value of the group.\n * Changes the current value of the group when clicked.\n *\n * ## Usage\n *\n * See OakButtonAsRadioGroup.\n *\n */\n\nexport const OakSecondaryButtonAsRadio = ({\n children,\n value,\n}: OakSecondaryButtonAsRadioProps) => {\n const radioContext = useContext(RadioContext);\n const { currentValue, onValueUpdated } = radioContext;\n const checked = currentValue === value;\n\n return checked ? (\n <OakPrimaryButton role=\"radio\" aria-checked={checked}>\n {children}\n </OakPrimaryButton>\n ) : (\n <OakSecondaryButton\n role=\"radio\"\n aria-checked={checked}\n onClick={() => onValueUpdated?.(value)}\n >\n {children}\n </OakSecondaryButton>\n );\n};\n","import styled, { css } from \"styled-components\";\n\nimport { OakUiRoleToken, OakDropShadowToken } from \"@/styles\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { borderStyle, BorderStyleProps } from \"@/styles/utils/borderStyle\";\nimport { paddingStyle, SpacingStyleProps } from \"@/styles/utils/spacingStyle\";\nimport { parseBorderRadius } from \"@/styles/helpers/parseBorderRadius\";\nimport { colorStyle, ColorStyleProps } from \"@/styles/utils/colorStyle\";\n\nexport const NativeSelect = styled(\"select\")<\n SpacingStyleProps &\n ColorStyleProps &\n BorderStyleProps & {\n $focusRingDropShadows: OakDropShadowToken[];\n $hoverBackground?: OakUiRoleToken;\n $readOnly?: boolean;\n $readOnlyBorderColor?: OakUiRoleToken;\n $readOnlyColor?: OakUiRoleToken;\n $disabledBackgroundColor?: OakUiRoleToken;\n $disabledColor?: OakUiRoleToken;\n $disabled?: boolean;\n }\n>`\n border: none;\n outline: none;\n width: 100%;\n\n appearance: none;\n appearance: base-select;\n\n ${(props) =>\n !props.$readOnly &&\n css`\n @media (hover: hover) {\n &:hover:not(:focus-within) {\n background: ${parseColor(props.$hoverBackground)};\n }\n }\n `}\n\n ${(props) =>\n props.$readOnly &&\n css`\n border-color: ${parseColor(props.$readOnlyBorderColor)};\n color: ${parseColor(props.$readOnlyColor)};\n `}\n\n ${(props) =>\n props.$disabled &&\n css`\n background: ${parseColor(props.$disabledBackgroundColor)};\n color: ${parseColor(props.$disabledColor)};\n &:hover {\n cursor: not-allowed;\n }\n `}\n\n border-radius: ${parseBorderRadius(\"border-radius-s\")};\n\n &:focus {\n box-shadow: ${(props) =>\n props.$focusRingDropShadows\n .map((dropShadow) => parseDropShadow(dropShadow))\n .join(\",\")};\n }\n\n &::picker(select) {\n appearance: none;\n appearance: base-select;\n border-bottom-left-radius: ${parseBorderRadius(\"border-radius-s\")};\n border-bottom-right-radius: ${parseBorderRadius(\"border-radius-s\")};\n overflow: visible;\n ${borderStyle};\n ${colorStyle};\n border-top: none;\n }\n\n ::picker(select) {\n top: calc(anchor(bottom) - 2px);\n left: anchor(0);\n }\n\n ::picker-icon {\n display: none;\n }\n\n ${paddingStyle};\n ${borderStyle};\n ${colorStyle};\n\n &:open {\n border-bottom-left-radius: 0px;\n border-bottom-right-radius: 0px;\n\n ::picker(select) {\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n }\n }\n`;\n","import React, { ChangeEventHandler, ReactNode } from \"react\";\nimport styled from \"styled-components\";\n\nimport { NativeSelect } from \"./NativeSelect\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { OakDropShadowToken, OakUiRoleToken } from \"@/styles\";\nimport { DisplayStyleProps } from \"@/styles/utils/displayStyle\";\n\nexport const IconUp = styled(OakFlex)`\n user-select: none;\n`;\n\nexport const IconDown = styled(OakFlex)`\n user-select: none;\n`;\n\nconst StyledWrapper = styled(OakFlex)`\n select ~ ${IconDown} {\n display: block;\n }\n\n select:open ~ ${IconDown} {\n display: none;\n }\n\n select ~ ${IconUp} {\n display: none;\n }\n\n select:open ~ ${IconUp} {\n display: block;\n }\n`;\n\nexport type OakSelectProps = {\n id?: string;\n children: ReactNode;\n /**\n * Disables user input and updates the appearance accordingly.\n */\n disabled?: boolean;\n /**\n * Makes the input read-only. Preventing the user from changing the value.\n */\n readOnly?: boolean;\n /**\n * Sets the value. Use this in controlled components;\n */\n value?: string;\n /**\n * Used to target the input element in tests.\n */\n \"data-testid\"?: string;\n onChange?: ChangeEventHandler<HTMLSelectElement>;\n /**\n * Alters the appearance of the input field to indicate whether the input is valid or invalid.\n */\n validity?: \"valid\" | \"invalid\";\n /**\n * Give the field a highlight to draw attention to it\n */\n isHighlighted?: boolean;\n validBorderColor?: OakUiRoleToken;\n invalidBorderColor?: OakUiRoleToken;\n validIconColor?: OakUiRoleToken;\n invalidIconColor?: OakUiRoleToken;\n color?: OakUiRoleToken;\n hoverBackground?: OakUiRoleToken;\n background?: OakUiRoleToken;\n borderColor?: OakUiRoleToken;\n focusRingDropShadows?: OakDropShadowToken[];\n disabledBackgroundColor?: OakUiRoleToken;\n readOnlyBorderColor?: OakUiRoleToken;\n disabledColor?: OakUiRoleToken;\n readOnlyColor?: OakUiRoleToken;\n highlightBackgroundColor?: OakUiRoleToken;\n $display?: DisplayStyleProps[\"$display\"];\n name?: HTMLSelectElement[\"name\"];\n};\n\nexport function OakSelect({\n id,\n borderColor = \"border-primary\",\n readOnlyBorderColor = \"border-neutral\",\n focusRingDropShadows = [\n \"drop-shadow-centered-lemon\",\n \"drop-shadow-centered-grey\",\n ],\n background = \"bg-primary\",\n hoverBackground = \"bg-neutral\",\n disabledBackgroundColor = \"bg-neutral\",\n highlightBackgroundColor = \"bg-decorative5-main\",\n color = \"text-primary\",\n disabledColor = \"text-disabled\",\n readOnlyColor = \"text-subdued\",\n validity,\n validBorderColor = \"border-success\",\n invalidBorderColor = \"border-error\",\n isHighlighted = false,\n $display = \"inline-block\",\n children,\n name,\n onChange,\n ...props\n}: Readonly<OakSelectProps>) {\n let finalBackgroundColor = background;\n let finalBorderColor = borderColor;\n let finalReadOnlyBorderColor = readOnlyBorderColor;\n\n switch (true) {\n case validity === \"valid\":\n finalBorderColor = validBorderColor;\n finalReadOnlyBorderColor = validBorderColor;\n break;\n case validity === \"invalid\":\n finalBorderColor = invalidBorderColor;\n finalReadOnlyBorderColor = invalidBorderColor;\n break;\n case isHighlighted:\n finalBackgroundColor = highlightBackgroundColor;\n break;\n }\n\n return (\n <StyledWrapper\n $display={$display}\n $position={\"relative\"}\n $alignItems=\"center\"\n $gap=\"spacing-16\"\n >\n <NativeSelect\n key={props.value}\n $pa={\"spacing-16\"}\n $background={finalBackgroundColor}\n $borderColor={finalBorderColor}\n $pr={\"spacing-56\"}\n $focusRingDropShadows={focusRingDropShadows}\n $ba=\"border-solid-m\"\n disabled={!!props.disabled}\n $borderRadius=\"border-radius-s\"\n $hoverBackground={hoverBackground}\n $disabledBackgroundColor={disabledBackgroundColor}\n $readOnlyBorderColor={finalReadOnlyBorderColor}\n $disabledColor={disabledColor}\n $readOnlyColor={readOnlyColor}\n $color={color}\n $disabled={!!props.disabled}\n $readOnly={!!props.readOnly}\n id={id}\n name={name}\n onChange={onChange}\n value={props.value}\n >\n <button>\n <selectedcontent></selectedcontent>\n </button>\n {children}\n </NativeSelect>\n <IconUp\n $position={\"absolute\"}\n $top={\"spacing-0\"}\n $bottom={\"spacing-0\"}\n $right={\"spacing-12\"}\n $pointerEvents={\"none\"}\n $alignContent={\"center\"}\n >\n <OakIcon iconName=\"chevron-up\" />\n </IconUp>\n <IconDown\n $position={\"absolute\"}\n $top={\"spacing-0\"}\n $bottom={\"spacing-0\"}\n $right={\"spacing-12\"}\n $pointerEvents={\"none\"}\n $alignContent={\"center\"}\n >\n <OakIcon iconName=\"chevron-down\" />\n </IconDown>\n </StyledWrapper>\n );\n}\n","import styled from \"styled-components\";\n\nimport { PaddingStyleProps } from \"@/styles/utils/spacingStyle\";\n\nexport const NativeOptGroup = styled(\"optgroup\")<PaddingStyleProps>``;\n","import styled from \"styled-components\";\n\nimport { NativeOptGroup } from \"./NativeOptGroup\";\n\nimport { OakDropShadowToken } from \"@/styles\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport { paddingStyle, PaddingStyleProps } from \"@/styles/utils/spacingStyle\";\nimport { parseBorderRadius } from \"@/styles/helpers/parseBorderRadius\";\nimport {\n parseFontSize,\n parseFontWeight,\n} from \"@/styles/helpers/parseTypography\";\nimport { colorStyle } from \"@/styles/utils/colorStyle\";\n\nexport const NativeOption = styled(\"option\")<\n PaddingStyleProps & {\n $focusRingDropShadows?: OakDropShadowToken[];\n $asDefault?: boolean;\n }\n>`\n cursor: pointer;\n border: none;\n color: ${parseColor(\"text-primary\")};\n outline: none;\n font: ${(props) =>\n parseFontSize(props.$asDefault ? \"body-2\" : \"body-2-bold\")};\n font-weight: ${(props) =>\n parseFontWeight(props.$asDefault ? \"body-2\" : \"body-2-bold\")};\n border-radius: ${parseBorderRadius(\"border-radius-xs\")};\n\n &:focus {\n box-shadow: ${(props) =>\n props.$focusRingDropShadows\n ?.map((dropShadow) => parseDropShadow(dropShadow))\n .join(\",\") ?? \"none\"};\n }\n\n &:disabled {\n background: ${parseColor(\"bg-neutral-stronger\")};\n color: ${parseColor(\"text-subdued\")};\n cursor: not-allowed;\n }\n\n &:active:not(:disabled) {\n background: initial;\n }\n\n &::checkmark {\n display: none;\n }\n\n ${NativeOptGroup} & {\n padding-left: ${parseSpacing(\"spacing-32\")};\n }\n\n ${paddingStyle};\n ${colorStyle};\n`;\n","import styled from \"styled-components\";\n\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { paddingStyle, PaddingStyleProps } from \"@/styles/utils/spacingStyle\";\n\nexport const NativeLegend = styled(\"legend\")<PaddingStyleProps>`\n cursor: pointer;\n border: none;\n color: ${parseColor(\"text-subdued\")};\n\n &::checkmark {\n display: none;\n }\n\n ${paddingStyle};\n`;\n","import React, { ChangeEventHandler } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport {\n InternalTextInput,\n InternalTextInputProps,\n} from \"@/components/internal-components/InternalTextInput\";\nimport { OakIcon, OakIconName } from \"@/components/images-and-icons/OakIcon\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakUiRoleToken, OakDropShadowToken } from \"@/styles\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { SizeStyleProps } from \"@/styles/utils/sizeStyle\";\n\ntype StyledTextInputWrapperProps = {\n $color: OakUiRoleToken;\n $hoverBackground: OakUiRoleToken;\n $background: OakUiRoleToken;\n $borderColor: OakUiRoleToken;\n $focusRingDropShadows: OakDropShadowToken[];\n $disabledBackgroundColor: OakUiRoleToken;\n $readOnlyBorderColor: OakUiRoleToken;\n $disabledColor: OakUiRoleToken;\n $readOnlyColor: OakUiRoleToken;\n $disabled: boolean;\n $readOnly: boolean;\n};\n\nexport type OakTextInputProps = {\n /**\n * Disables user input and updates the appearance accordingly.\n */\n disabled?: boolean;\n /**\n * Makes the input read-only. Preventing the user from changing the value.\n */\n readOnly?: boolean;\n /**\n * Sets the value. Use this in controlled components;\n */\n value?: string;\n /**\n * Sets the initial value. Use this for an uncontrolled component;\n */\n defaultValue?: string;\n /**\n * Used to target the input element in tests.\n */\n \"data-testid\"?: string;\n onChange?: ChangeEventHandler<HTMLInputElement>;\n /**\n * Alters the appearance of the input field to indicate whether the input is valid or invalid.\n */\n validity?: \"valid\" | \"invalid\";\n /**\n * Adds an icon to the input\n *\n * Defaults to the start of the input\n */\n iconName?: OakIconName;\n /**\n * Position the icon at the end of the input\n */\n isTrailingIcon?: boolean;\n /**\n * Give the field a highlight to draw attention to it\n */\n isHighlighted?: boolean;\n iconColor?: OakUiRoleToken;\n validBorderColor?: OakUiRoleToken;\n invalidBorderColor?: OakUiRoleToken;\n validIconColor?: OakUiRoleToken;\n invalidIconColor?: OakUiRoleToken;\n color?: OakUiRoleToken;\n hoverBackground?: OakUiRoleToken;\n background?: OakUiRoleToken;\n borderColor?: OakUiRoleToken;\n focusRingDropShadows?: OakDropShadowToken[];\n disabledBackgroundColor?: OakUiRoleToken;\n readOnlyBorderColor?: OakUiRoleToken;\n disabledColor?: OakUiRoleToken;\n readOnlyColor?: OakUiRoleToken;\n highlightBackgroundColor?: OakUiRoleToken;\n /**\n * The width of the surrounding div - the input and icon will fill this\n */\n wrapperWidth?: SizeStyleProps[\"$width\"];\n wrapperMaxWidth?: SizeStyleProps[\"$maxWidth\"];\n iconAlt?: string;\n} & InternalTextInputProps;\n\nconst StyledTextInputWrapper = styled(OakFlex)<StyledTextInputWrapperProps>`\n &:hover {\n cursor: text;\n }\n\n &:focus-within {\n box-shadow: ${(props) =>\n props.$focusRingDropShadows\n .map((dropShadow) => parseDropShadow(dropShadow))\n .join(\",\")};\n }\n\n background: ${(props) => parseColor(props.$background)};\n\n ${(props) =>\n !props.$readOnly &&\n css`\n @media (hover: hover) {\n &:hover:not(:focus-within) {\n background: ${parseColor(props.$hoverBackground)};\n }\n }\n `}\n\n ${(props) =>\n props.$readOnly &&\n css`\n border-color: ${parseColor(props.$readOnlyBorderColor)};\n color: ${parseColor(props.$readOnlyColor)};\n `}\n\n ${(props) =>\n props.$disabled &&\n css`\n background: ${parseColor(props.$disabledBackgroundColor)};\n color: ${parseColor(props.$disabledColor)};\n &:hover {\n cursor: not-allowed;\n }\n `}\n`;\n\n/**\n * Default input which can be extended to create specialised inputs.\n */\nexport const OakTextInput = ({\n type = \"text\",\n borderColor = \"border-primary\",\n readOnlyBorderColor = \"border-neutral\",\n focusRingDropShadows = [\n \"drop-shadow-centered-lemon\",\n \"drop-shadow-centered-grey\",\n ],\n background = \"bg-primary\",\n hoverBackground = \"bg-neutral\",\n disabledBackgroundColor = \"bg-neutral\",\n highlightBackgroundColor = \"bg-decorative5-main\",\n color = \"text-primary\",\n disabledColor = \"text-disabled\",\n readOnlyColor = \"text-subdued\",\n validity,\n iconColor = \"icon-primary\",\n validBorderColor = \"border-success\",\n invalidBorderColor = \"border-error\",\n validIconColor = \"icon-success\",\n invalidIconColor = \"border-error\",\n iconName,\n iconAlt,\n isTrailingIcon = false,\n isHighlighted = false,\n wrapperWidth,\n wrapperMaxWidth,\n ...props\n}: OakTextInputProps) => {\n let finalBackgroundColor = background;\n let finalBorderColor = borderColor;\n let finalIconColor = iconColor;\n let finalReadOnlyBorderColor = readOnlyBorderColor;\n\n switch (true) {\n case validity === \"valid\":\n finalBorderColor = validBorderColor;\n finalIconColor = validIconColor;\n finalReadOnlyBorderColor = validBorderColor;\n break;\n case validity === \"invalid\":\n finalBorderColor = invalidBorderColor;\n finalIconColor = invalidIconColor;\n finalReadOnlyBorderColor = invalidBorderColor;\n break;\n case isHighlighted:\n finalBackgroundColor = highlightBackgroundColor;\n break;\n }\n\n return (\n <StyledTextInputWrapper\n $height=\"fit-content\"\n $width={wrapperWidth}\n $maxWidth={wrapperMaxWidth}\n $borderRadius=\"border-radius-s\"\n $ba=\"border-solid-m\"\n $borderColor={finalBorderColor}\n $focusRingDropShadows={focusRingDropShadows}\n $background={finalBackgroundColor}\n $hoverBackground={hoverBackground}\n $disabledBackgroundColor={disabledBackgroundColor}\n $readOnlyBorderColor={finalReadOnlyBorderColor}\n $disabledColor={disabledColor}\n $readOnlyColor={readOnlyColor}\n $color={color}\n $alignItems=\"center\"\n $position=\"relative\"\n $gap=\"spacing-16\"\n $ph=\"spacing-20\"\n $disabled={!!props.disabled}\n $readOnly={!!props.readOnly}\n onClick={(event) => {\n event.currentTarget.querySelector(\"input\")?.focus();\n }}\n >\n {!isTrailingIcon && iconName && (\n <OakIcon\n iconName={iconName}\n $colorFilter={finalIconColor}\n $pointerEvents=\"none\"\n $width={\"spacing-32\"}\n alt={iconAlt}\n />\n )}\n <OakFlex $flexGrow={1}>\n <InternalTextInput\n type={type}\n $width={\"100%\"}\n $pv=\"spacing-20\"\n $height=\"spacing-72\"\n {...props}\n />\n </OakFlex>\n {isTrailingIcon && iconName && (\n <OakIcon\n iconName={iconName}\n $colorFilter={finalIconColor}\n $pointerEvents=\"none\"\n $width={\"spacing-32\"}\n alt={iconAlt}\n />\n )}\n </StyledTextInputWrapper>\n );\n};\n","import React, { useContext, useId, useRef } from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon, OakIconName } from \"@/components/images-and-icons/OakIcon\";\nimport { InternalCheckBoxLabelHoverDecor } from \"@/components/internal-components/InternalCheckBoxLabel\";\nimport {\n BaseRadioProps,\n InternalRadio,\n} from \"@/components/internal-components/InternalRadio/InternalRadio\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { parseColorFilter } from \"@/styles/helpers/parseColorFilter\";\nimport { RadioContext } from \"@/components/form-elements/OakRadioGroup/OakRadioGroup\";\nimport { OakUiRoleToken } from \"@/styles\";\nimport { InternalRadioWrapper } from \"@/components/internal-components/InternalRadioWrapper\";\nimport { OakScreenReader } from \"@/components/messaging-and-feedback/OakScreenReader\";\nimport { SizeStyleProps } from \"@/styles/utils/sizeStyle\";\n\ntype DecorativeBackgroundMain = Extract<\n OakUiRoleToken,\n `bg-decorative${number}-main`\n>;\ntype DecorativeColorScheme =\n DecorativeBackgroundMain extends `bg-${infer N}-main` ? N : never;\n\nexport const colorSchemes = [\n \"primary\",\n \"decorative1\",\n \"decorative2\",\n \"decorative3\",\n \"decorative4\",\n \"decorative5\",\n \"decorative6\",\n \"transparent\",\n] as const satisfies Array<DecorativeColorScheme | \"primary\" | \"transparent\">;\n\ntype OakRadioAsButtonColorScheme = (typeof colorSchemes)[number];\n\n// Converted to styled-component so it can be used in '&:checked:not(:disabled) + ${StyledOakIcon}' to change svg color.\nconst StyledOakIcon = styled(OakIcon)``;\n\nconst StyledFlexBox = styled(OakFlex)<{\n $colorSchemeTokens: ColorSchemeTokens;\n $keepIconColor?: boolean;\n}>`\n cursor: pointer;\n background-color: ${(props) =>\n parseColor(props.$colorSchemeTokens.background)};\n border-color: ${(props) => parseColor(props.$colorSchemeTokens.borderColor)};\n color: ${parseColor(\"text-primary\")};\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n background-color: ${(props) =>\n parseColor(props.$colorSchemeTokens.disabledBackground)};\n border-color: ${(props) =>\n parseColor(props.$colorSchemeTokens.disabledBorderColor)};\n color: ${parseColor(\"text-disabled\")};\n }\n\n &:hover:has(input:not(:disabled)) ${InternalCheckBoxLabelHoverDecor} {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ${(props) =>\n parseColor(props.$colorSchemeTokens.hoverBackground)};\n }\n\n &:focus-within {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n\n ${StyledOakIcon} {\n filter: ${parseColorFilter(\"icon-primary\")};\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ${parseColor(\"bg-inverted\")};\n color: ${parseColor(\"text-inverted\")};\n border-color: transparent;\n\n ${StyledOakIcon} {\n filter: ${(props) =>\n props.$keepIconColor ? \"none\" : parseColorFilter(\"text-inverted\")};\n }\n }\n`;\n\ntype ColorSchemeTokens = {\n background: OakUiRoleToken;\n hoverBackground: OakUiRoleToken;\n borderColor: OakUiRoleToken;\n disabledBackground: OakUiRoleToken;\n disabledBorderColor: OakUiRoleToken;\n};\n\nconst getColorSchemeTokens = (\n colorScheme: OakRadioAsButtonColorScheme,\n): ColorSchemeTokens => {\n switch (colorScheme) {\n case \"primary\":\n return {\n background: \"bg-primary\",\n hoverBackground: \"bg-neutral\",\n borderColor: \"border-neutral-lighter\",\n disabledBackground: \"bg-btn-secondary-disabled\",\n disabledBorderColor: \"border-neutral-lighter\",\n };\n case \"transparent\":\n return {\n background: \"transparent\",\n hoverBackground: \"transparent\",\n borderColor: \"transparent\",\n disabledBackground: \"transparent\",\n disabledBorderColor: \"transparent\",\n };\n default:\n return {\n background: `bg-${colorScheme}-main`,\n hoverBackground: `bg-${colorScheme}-very-subdued`,\n borderColor: `border-${colorScheme}`,\n disabledBackground: \"bg-btn-secondary-disabled\",\n disabledBorderColor: \"border-neutral-lighter\",\n };\n }\n};\n\nexport type OakRadioAsButtonProps = Omit<\n BaseRadioProps,\n \"defaultChecked\" | \"id\" | \"checked\" | \"variant\" | \"icon\"\n> & {\n value?: HTMLInputElement[\"value\"];\n innerRef?: React.RefObject<HTMLInputElement>;\n displayValue: React.ReactNode;\n /**\n * Whether to keep the icon color when the component is checked.\n *\n * Useful when the icon has an opinionated color that should be preserved when the component is checked.\n *\n * @default `false`\n */\n keepIconColor?: boolean;\n disabled?: HTMLInputElement[\"disabled\"];\n \"aria-labelledby\"?: React.AriaAttributes[\"aria-labelledby\"];\n \"aria-label\"?: React.AriaAttributes[\"aria-label\"];\n /**\n * Sets the color scheme of the component.\n * Defaults to `\"primary\"`.\n */\n colorScheme?: OakRadioAsButtonColorScheme;\n width?: SizeStyleProps[\"$width\"];\n} & (\n | {\n variant: \"with-icon\";\n icon: OakIconName;\n }\n | {\n /**\n * Controls the appearance of the component.\n *\n * - `\"default\"`: Displays as a button\n * - `\"with-icon\"`: Displays an icon alongside the label\n * - `\"with-radio\"`: Displays a radio button\n *\n * @default `\"default\"`\n */\n variant?: \"default\" | \"with-radio\";\n }\n );\n\n/**\n * A radio input styled as a button, to be used within `<OakRadioGroup/>`.\n */\nexport const OakRadioAsButton = (props: OakRadioAsButtonProps) => {\n const id = useId();\n const {\n value,\n disabled,\n innerRef,\n displayValue,\n onChange,\n keepIconColor,\n colorScheme = \"primary\",\n width,\n ...rest\n } = props;\n\n const { name, onValueUpdated, currentValue } = useContext(RadioContext);\n const defaultRef = useRef<HTMLInputElement>(null);\n const inputRef = innerRef ?? defaultRef;\n\n const handleContainerClick = (\n e:\n | React.MouseEvent<HTMLDivElement>\n | React.MouseEvent<HTMLInputElement>\n | React.MouseEvent<HTMLLabelElement>,\n ) => {\n const el = e.target as HTMLInputElement;\n\n if (!el.isEqualNode(inputRef.current)) {\n inputRef.current?.click();\n }\n };\n\n const isChecked = currentValue === value;\n const colorSchemeTokens = getColorSchemeTokens(colorScheme);\n\n const {\n icon: _icon,\n variant: _variant,\n ...restWithoutVariantProps\n } = rest as typeof rest & {\n icon?: OakIconName;\n };\n\n const radio = (\n <InternalRadioWrapper\n radioBorderColor=\"border-neutral\"\n radioOuterSize=\"spacing-20\"\n size=\"spacing-20\"\n disableFocusRing\n internalRadio={\n <InternalRadio\n {...restWithoutVariantProps}\n id={id}\n value={value}\n disabled={disabled}\n ref={inputRef}\n onChange={(e) => {\n onValueUpdated?.(e);\n onChange?.(e);\n }}\n name={name}\n checked={isChecked}\n />\n }\n />\n );\n\n return (\n <StyledFlexBox\n $borderRadius={\"border-radius-s\"}\n $ba=\"border-solid-s\"\n $pv={\"spacing-4\"}\n $ph={\"spacing-12\"}\n $gap={\"spacing-8\"}\n $alignItems={\"center\"}\n $keepIconColor={keepIconColor}\n $colorSchemeTokens={colorSchemeTokens}\n $width={width ?? \"fit-content\"}\n $minHeight={\"spacing-40\"}\n onClick={handleContainerClick}\n >\n {rest.variant === \"with-radio\" ? (\n radio\n ) : (\n <OakScreenReader>{radio}</OakScreenReader>\n )}\n {rest.variant === \"with-icon\" && (\n <StyledOakIcon alt=\"\" iconName={rest.icon} />\n )}\n <InternalCheckBoxLabelHoverDecor\n pointerEvents=\"none\"\n htmlFor={id}\n $font={\"heading-7\"}\n disabled={disabled}\n >\n {displayValue}\n </InternalCheckBoxLabelHoverDecor>\n </StyledFlexBox>\n );\n};\n","import React, { useRef } from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon, OakIconName } from \"@/components/images-and-icons/OakIcon\";\nimport { InternalCheckBoxLabelHoverDecor } from \"@/components/internal-components/InternalCheckBoxLabel\";\nimport {\n BaseCheckBoxProps,\n InternalCheckBox,\n} from \"@/components/internal-components/InternalCheckBox/InternalCheckBox\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseBorder } from \"@/styles/helpers/parseBorder\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { parseColorFilter } from \"@/styles/helpers/parseColorFilter\";\n\n// Converted to styled-component so it can be used in '&:checked:not(:disabled) + ${StyledOakIcon}' to change svg color.\nconst StyledOakIcon = styled(OakIcon)``;\n\nconst StyledInternalCheckBox = styled(InternalCheckBox)<{\n $keepIconColor?: boolean;\n}>`\n position: absolute;\n opacity: 0;\n pointer-events: none;\n\n &:checked:not(:disabled) + ${StyledOakIcon} {\n filter: ${(props) =>\n props.$keepIconColor ? \"none\" : parseColorFilter(\"icon-inverted\")};\n }\n\n &:checked:not(:disabled) {\n border: ${parseBorder(\"border-solid-l\")};\n border-color: ${parseColor(\"border-primary\")};\n }\n\n &:checked:disabled {\n border: ${parseBorder(\"border-solid-l\")};\n border-color: ${parseColor(\"text-disabled\")};\n }\n\n &:hover:not(:disabled) {\n background: ${parseColor(\"bg-primary\")};\n }\n`;\n\nconst StyledFlexBox = styled(OakFlex)`\n &:has(input:not(:disabled)) {\n cursor: pointer;\n }\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n }\n\n &:hover:has(input:not(:disabled)) ${InternalCheckBoxLabelHoverDecor} {\n text-decoration: underline;\n }\n\n &:hover:has(input:not(:disabled)) {\n background-color: ${parseColor(\"bg-neutral\")};\n }\n\n &:focus-within {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n\n &:has(input:checked:not(:disabled)) {\n background-color: ${parseColor(\"bg-inverted\")};\n color: ${parseColor(\"text-inverted\")};\n }\n`;\n\nexport type OakSearchFilterCheckBoxProps = Omit<\n BaseCheckBoxProps,\n \"defaultChecked\"\n> & {\n innerRef?: React.RefObject<HTMLInputElement>;\n displayValue: string;\n icon?: OakIconName;\n keepIconColor?: boolean;\n};\n\n/**\n *\n * A checkbox for search filters.\n *\n * Takes a displayValue and optional icon, for subject icons `subject-[subjectSlug]` should be used.\n *\n * ## To be renamed and refactored 🔀\n * This component will be renamed to `OakCheckboxAsButton` and refactored to have more variants\n *\n * ## Events\n * The following callbacks are available for tracking focus events:\n *\n * ### onChange\n * onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;\n *\n * ### onFocus\n * onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;\n *\n * ### onBlur\n * onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;\n *\n * ### onHovered\n * `onHovered?: (id, value, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n *\n */\nexport const OakSearchFilterCheckBox = (\n props: OakSearchFilterCheckBoxProps,\n) => {\n const {\n id,\n value,\n disabled,\n innerRef,\n displayValue,\n icon,\n keepIconColor,\n ...rest\n } = props;\n\n const defaultRef = useRef<HTMLInputElement>(null);\n const inputRef = innerRef ?? defaultRef;\n\n const handleContainerClick = (\n e:\n | React.MouseEvent<HTMLDivElement>\n | React.MouseEvent<HTMLInputElement>\n | React.MouseEvent<HTMLLabelElement>,\n ) => {\n const inputId = (e.target as HTMLInputElement).id;\n\n if (inputId !== id) {\n inputRef.current?.click();\n }\n };\n\n return (\n <OakFlex $minHeight={\"spacing-40\"} $position={\"relative\"}>\n <StyledFlexBox\n $borderRadius={\"border-radius-s\"}\n $borderColor={\"border-neutral-lighter\"}\n $ba=\"border-solid-s\"\n $background={\"bg-primary\"}\n onClick={handleContainerClick}\n $ph={\"spacing-12\"}\n $pv={\"spacing-4\"}\n $gap={\"spacing-4\"}\n >\n <StyledInternalCheckBox\n id={id}\n value={value}\n disabled={disabled}\n ref={inputRef}\n $keepIconColor={keepIconColor}\n {...rest}\n />\n {icon && <StyledOakIcon alt=\"\" iconName={icon} />}\n <InternalCheckBoxLabelHoverDecor\n pointerEvents=\"none\"\n htmlFor={id}\n $font={\"heading-7\"}\n disabled={disabled}\n >\n {displayValue}\n </InternalCheckBoxLabelHoverDecor>\n </StyledFlexBox>\n </OakFlex>\n );\n};\n","export function getTimeText(timestamp: string | number): string {\n const date = new Date(timestamp);\n if (isNaN(date.getTime())) {\n return \"at an unknown time\";\n }\n const now = Date.now();\n const diff = now - date.getTime();\n const seconds = Math.floor(diff / 1000);\n if (seconds < 1) {\n return \"just now\";\n }\n if (seconds < 60) {\n return `${seconds} secs ago`;\n }\n if (seconds < 3600) {\n return `${Math.floor(seconds / 60)} mins ago`;\n }\n if (seconds < 86400) {\n return `${Math.floor(seconds / 3600)} hrs ago`;\n }\n if (seconds < 604800) {\n return `${Math.floor(seconds / 86400)} days ago`;\n }\n if (seconds < 2592000) {\n return `${Math.floor(seconds / 604800)} weeks ago`;\n }\n if (seconds < 31536000) {\n return `${Math.floor(seconds / 2592000)} months ago`;\n }\n return `${Math.floor(seconds / 31536000)} years ago`;\n}\n","import React from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { getTimeText } from \"@/components/house-cat/utils\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { InternalCheckBoxLabelHoverDecor } from \"@/components/internal-components/InternalCheckBoxLabel\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { OakCheckBox } from \"@/components/form-elements/OakCheckBox\";\nimport { OakLink } from \"@/components/navigation/OakLink\";\n\ninterface StyledFlexBoxWrapperProps {\n $minHeight: string;\n $position: string;\n $borderRadius: string;\n $pa: string;\n $gap: string;\n $flexDirection: string;\n $width: string;\n $highlighted?: boolean;\n $disabled?: boolean;\n}\n\nconst StyledFlexBox = styled(OakFlex)<StyledFlexBoxWrapperProps>`\n &:hover:has(input:not(:disabled)) ${InternalCheckBoxLabelHoverDecor} {\n text-decoration: underline;\n }\n\n &:has(input:focus-visible) {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n\n ${(props) =>\n props.$disabled &&\n css`\n cursor: not-allowed;\n background-color: ${parseColor(\"bg-neutral-stronger\")};\n color: ${parseColor(\"text-disabled\")};\n `}\n\n ${(props) =>\n !props.$disabled &&\n props.$highlighted &&\n css`\n background-color: ${parseColor(\"bg-decorative3-very-subdued\")};\n border-color: ${parseColor(\"bg-decorative3-main\")};\n &:hover {\n background-color: ${parseColor(\"bg-decorative3-subdued\")};\n }\n `}\n ${(props) =>\n !props.$disabled &&\n !props.$highlighted &&\n css`\n &:hover {\n background-color: ${parseColor(\"bg-decorative3-subdued\")};\n }\n `}\n`;\n\nexport interface OakCaptionCardProps {\n captionId: string;\n videoTitle: string;\n lessonUid: string;\n videoType: \"lesson\";\n lastUpdated: string;\n lastEdited?: string;\n checked?: boolean;\n highlighted?: boolean;\n disabled?: boolean;\n onCheckChanged?: (event: React.ChangeEvent<HTMLInputElement>) => void;\n onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;\n editHref: string;\n lessonHref: string;\n \"data-testid\"?: string;\n}\n\n/**\n * A caption card with links to the associated lesson and rev edit page.\n *\n * ## Events\n * The following callbacks are available for tracking checkbox events:\n *\n * ### onCheckChanged\n * onCheckChanged?: (event: React.ChangeEvent<HTMLInputElement>) => void;\n *\n */\nexport const OakCaptionCard = (props: OakCaptionCardProps) => {\n const {\n checked,\n onCheckChanged,\n onClick,\n captionId,\n videoTitle,\n lessonUid,\n videoType,\n lastUpdated,\n lastEdited,\n highlighted = false,\n disabled = false,\n \"data-testid\": dataTestId = \"caption-card\",\n editHref,\n lessonHref,\n } = props;\n\n const filterColor = disabled ? \"icon-disabled\" : null;\n\n return (\n <StyledFlexBox\n data-testid={dataTestId}\n $minHeight={\"spacing-40\"}\n $position={\"relative\"}\n $background={\"bg-primary\"}\n $borderRadius={\"border-radius-s\"}\n $pa={\"spacing-16\"}\n $gap={\"spacing-12\"}\n $flexDirection={\"column\"}\n $width={\"100%\"}\n $highlighted={!!highlighted}\n $disabled={!!disabled}\n onClick={onClick}\n >\n <OakFlex\n $justifyContent={\"flex-start\"}\n $alignItems={\"center\"}\n $width={\"100%\"}\n $gap={\"spacing-12\"}\n $font={\"heading-7\"}\n >\n <OakCheckBox\n checked={checked}\n value={`Caption ID: ${captionId}`}\n displayValue=\"\"\n disabled={disabled}\n onChange={onCheckChanged}\n aria-labelledby={captionId}\n aria-label={`check caption ${captionId}`}\n data-testid=\"checkbox\"\n id={captionId}\n />\n <OakFlex\n $font={\"heading-7\"}\n $justifyContent={\"flex-start\"}\n $gap={\"spacing-8\"}\n $flexWrap={\"wrap\"}\n >\n <OakSpan $font={\"heading-7\"}>Caption ID: {captionId}</OakSpan>\n <OakSpan> • </OakSpan>\n <OakBox>Video Title: {videoTitle}</OakBox>\n </OakFlex>\n\n <OakFlex $flexGrow={10} $justifyContent={\"flex-end\"}>\n <OakLink\n variant=\"secondary\"\n href={editHref}\n iconName=\"external\"\n isTrailingIcon\n aria-label={`edit caption ${captionId} in a new tab in rev`}\n target=\"_blank\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n Edit\n </OakLink>\n </OakFlex>\n </OakFlex>\n <OakFlex\n $justifyContent={\"flex-start\"}\n $alignItems={\"center\"}\n $width={\"100%\"}\n $gap={\"spacing-32\"}\n $font={\"body-2\"}\n >\n <OakLink\n variant=\"secondary\"\n href={lessonHref}\n aria-label={`view lesson ${lessonUid} in a new tab`}\n data-testid=\"lesson_uid\"\n iconName=\"external\"\n isTrailingIcon\n target=\"_blank\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {lessonUid}\n </OakLink>\n\n <OakFlex $alignItems={\"center\"} $gap={\"spacing-4\"}>\n {\" \"}\n {/* the video icon has no natural padding so whilst inconsistent this looks better */}\n <OakIcon\n alt=\"\"\n iconName=\"video\"\n iconWidth=\"spacing-24\"\n iconHeight=\"spacing-24\"\n $colorFilter={filterColor}\n />\n {getVideoTypeText(videoType)}\n </OakFlex>\n {lastEdited ? (\n <OakFlex $alignItems={\"center\"}>\n <OakIcon\n alt=\"\"\n iconName=\"equipment-required\"\n iconWidth=\"spacing-24\"\n iconHeight=\"spacing-24\"\n $colorFilter={filterColor}\n />\n Edited {getTimeText(lastEdited)}\n </OakFlex>\n ) : null}\n <OakFlex $alignItems={\"center\"}>\n <OakIcon\n alt=\"\"\n iconName=\"success\"\n iconWidth=\"spacing-24\"\n iconHeight=\"spacing-24\"\n $colorFilter={filterColor}\n />\n Updated {getTimeText(lastUpdated)}\n </OakFlex>\n </OakFlex>\n </StyledFlexBox>\n );\n};\n\nfunction getVideoTypeText(videoType: string): string {\n switch (videoType) {\n case \"lesson\":\n return \"Lesson video\";\n case \"media clip\":\n return \"Media clip\";\n default:\n return \"Unknown\";\n }\n}\n","import React from \"react\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex/OakFlex\";\nimport { OakFormInput } from \"@/components/form-elements/OakFormInput/OakFormInput\";\nimport { OakLabel } from \"@/components/form-elements/OakLabel\";\nimport { OakP } from \"@/components/typography/OakP\";\n\nexport interface OakFormInputWithLabelsProps {\n /**\n * The label for the input field.\n */\n label: string;\n /**\n * Optional helper text displayed below the label.\n */\n helperText?: string;\n /**\n * Placeholder text for the input field.\n */\n placeholder?: string;\n /**\n * Indicates if the input is invalid (to be used after form submission or validation).\n */\n invalid?: boolean;\n /**\n * Feedback text to display when the input is invalid.\n */\n invalidText?: string;\n /**\n * The value of the input field. Use this in controlled components.\n */\n\n value?: string;\n /**\n * The initial value of the input field. Use this in controlled components.\n */\n defaultValue?: string;\n /**\n * Disables the input field, preventing user interaction.\n */\n disabled?: boolean;\n /**\n * Optional name of the input field. This is used to identify the field in forms.\n */\n\n required?: boolean;\n inputName?: string;\n /**\n * Callback function that is called when the input value changes.\n */\n onChange?: React.ChangeEventHandler<HTMLInputElement>;\n /**\n * Callback function that is called when the input is focused initially.\n */\n onInitialFocus?: React.FocusEventHandler<HTMLInputElement>;\n /**\n * Callback function that is called when the input loses focus.\n */\n onBlur?: React.FocusEventHandler<HTMLInputElement>;\n}\n\nexport const OakFormInputWithLabels = ({\n label,\n helperText,\n placeholder,\n invalid,\n invalidText,\n value,\n inputName,\n disabled = false,\n required = false,\n defaultValue,\n onChange = () => {},\n onInitialFocus = () => {},\n onBlur = () => {},\n}: OakFormInputWithLabelsProps) => {\n const inputId = `input-${label.toLowerCase().replace(/\\s+/g, \"-\")}`;\n return (\n <OakFlex $width={\"100%\"} $flexDirection={\"column\"} $gap=\"spacing-8\">\n <OakFlex $flexDirection={\"column\"}>\n <OakLabel $font={\"body-2-bold\"} htmlFor={inputId}>\n {label}\n </OakLabel>\n {helperText && <OakP $font={\"body-3\"}>{helperText}</OakP>}\n </OakFlex>\n <OakFormInput\n name={inputName}\n id={inputId}\n placeholder={placeholder}\n invalid={invalid}\n value={value}\n onChange={onChange}\n onInitialFocus={onInitialFocus}\n onBlur={onBlur}\n disabled={disabled}\n aria-describedby={invalid ? `error-${inputId}` : undefined}\n defaultValue={defaultValue}\n required={required}\n />\n {invalid && invalidText && (\n <OakP id={`error-${inputId}`} $font={\"body-2\"} $color={\"text-error\"}>\n {invalidText}\n </OakP>\n )}\n </OakFlex>\n );\n};\n","import React, { FC } from \"react\";\nimport styled from \"styled-components\";\n\nimport {\n ResponsiveValues,\n responsiveStyle,\n} from \"@/styles/utils/responsiveStyle\";\n\nconst oakAllApectRatiosConst = [\"7:8\", \"2:3\", \"1:1\", \"3:2\", \"16:9\"] as const;\ntype OakAllApectRatios = (typeof oakAllApectRatiosConst)[number];\n\nconst oakAllApecPercentagesConst = [114, 150, 100, 66.66, 56.25] as const;\ntype OakAllApecPercentages = (typeof oakAllApecPercentagesConst)[number];\n\nconst oakAspectRatioPercentage: Record<\n OakAllApectRatios,\n OakAllApecPercentages\n> = {\n \"16:9\": 56.25,\n \"3:2\": 66.66,\n \"1:1\": 100,\n \"2:3\": 150,\n \"7:8\": 114,\n};\n\nconst parseRatioToPercentage = (ratio?: OakAllApectRatios | null) =>\n ratio ? `${oakAspectRatioPercentage[ratio]}%` : undefined;\n\ntype OakAspectRatioValues = ResponsiveValues<OakAllApectRatios>;\ntype OakAspectRatioOuterProps = {\n ratio: OakAspectRatioValues;\n};\n\nconst OakAspectRatioOuter = styled.div<OakAspectRatioOuterProps>`\n width: 100%;\n height: 0;\n position: relative;\n ${responsiveStyle(\n \"padding-top\",\n (props) => props.ratio,\n parseRatioToPercentage,\n )}\n`;\nconst OakAspectRatioInner = styled.div`\n display: flex;\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n top: 0;\n`;\n\nexport type OakAspectRatioProps = {\n children?: React.ReactNode;\n} & OakAspectRatioOuterProps;\n\n/**\n *\n * AspectRatio provides a container of fixed aspect ratio\n *\n * ⚠️ To be deprecated\n * @deprecated\n *\n * ## Usage\n * Use this component when you want to ensure a box has a certain aspect ratio.\n * Wrap with component with <code>position: relative</code> and a width or min-width\n * The 'ratio' prop is responsive, so you can pass an array e.g. <code>[\"3:2\", \"16:9\"]</code>\n * which will result in different aspect ratios on different screen widths.\n * For an example usage, see the <code>CardImage</code> component.\n */\nexport const OakAspectRatio: FC<OakAspectRatioProps> = (props) => {\n const { children, ratio, ...htmlAttrs } = props;\n return (\n <OakAspectRatioOuter ratio={ratio} {...htmlAttrs}>\n <OakAspectRatioInner>{children}</OakAspectRatioInner>\n </OakAspectRatioOuter>\n );\n};\n","import React from \"react\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakIcon, OakIconProps } from \"@/components/images-and-icons/OakIcon\";\nimport {\n OakImage,\n OakImageProps,\n} from \"@/components/images-and-icons/OakImage\";\n\ntype ImageProps = OakImageProps & {\n iconName?: undefined;\n};\n\ntype IconProps = OakIconProps & {\n src?: undefined;\n};\n\nexport type OakRoundIconProps = IconProps | ImageProps;\n\n/**\n * A wrapper around `OakIcon` which applies a rounded background.\n * Supports either an icon name or an image src\n */\nexport const OakRoundIcon = ({\n $background = \"bg-decorative5-main\",\n $borderRadius = \"border-radius-circle\",\n $width = \"spacing-48\",\n $height = \"spacing-48\",\n $pa = \"spacing-4\",\n className,\n ...rest\n}: OakRoundIconProps) => {\n const icon = rest.iconName ? (\n <OakIcon {...rest} $height=\"100%\" $width=\"100%\" />\n ) : (\n <OakImage {...rest} $height=\"100%\" $width=\"100%\" />\n );\n\n return (\n <OakBox\n className={className}\n $background={$background}\n $borderRadius={$borderRadius}\n $width={$width}\n $height={$height}\n $pa={$pa}\n >\n {icon}\n </OakBox>\n );\n};\n","import styled from \"styled-components\";\n\nimport {\n OakFlex,\n OakFlexProps,\n} from \"@/components/layout-and-structure/OakFlex\";\n\nexport type OakMaxWidthProps = OakFlexProps;\n\nexport const oakMaxWidthDefaults = {\n $maxWidth: [\"spacing-480\", \"spacing-1280\"],\n $ph: [\"spacing-0\", \"spacing-12\"],\n $flexDirection: \"column\",\n $flexGrow: 1,\n $width: \"100%\",\n $mh: \"auto\",\n} satisfies Partial<OakMaxWidthProps>;\n\n/**\n * This component will provide a default maxWidth and ph value, it take Flex props.\n * ## Usage\n * Use this component on pages to limit the max-width to a specific container.\n * This will make it easier to create full browser width or custom width containers on the same page\n * with different background colors / image url.\n */\nexport const OakMaxWidth = styled(OakFlex).attrs<OakMaxWidthProps>((props) => ({\n ...oakMaxWidthDefaults,\n ...props,\n}))``;\n","import { OakTheme } from \"./theme\";\n\nexport const oakDefaultTheme: OakTheme = {\n name: \"default\",\n uiColors: {\n \"text-primary\": \"black\",\n \"text-subdued\": \"grey60\",\n \"text-error\": \"red\",\n \"text-disabled\": \"grey50\",\n \"text-link-active\": \"navy\",\n \"text-link-hover\": \"navy110\",\n \"text-link-pressed\": \"navy120\",\n \"text-link-visited\": \"navy120\",\n \"text-inverted\": \"white\",\n \"text-success\": \"oakGreen\",\n \"text-promo\": \"lemon\",\n \"bg-primary\": \"white\",\n \"bg-inverted\": \"black\",\n \"bg-inverted-semi-transparent\": \"blackSemiTransparent\",\n \"bg-neutral\": \"grey20\",\n \"bg-neutral-stronger\": \"grey30\",\n \"bg-btn-primary\": \"black\",\n \"bg-btn-primary-hover\": \"grey60\",\n \"bg-btn-primary-disabled\": \"grey50\",\n \"bg-btn-secondary\": \"white\",\n \"bg-btn-secondary-hover\": \"grey20\",\n \"bg-btn-secondary-disabled\": \"grey30\",\n \"bg-decorative1-main\": \"mint\",\n \"bg-decorative1-subdued\": \"mint50\",\n \"bg-decorative1-very-subdued\": \"mint30\",\n \"bg-decorative2-main\": \"aqua\",\n \"bg-decorative2-subdued\": \"aqua50\",\n \"bg-decorative2-very-subdued\": \"aqua30\",\n \"bg-decorative3-main\": \"lavender\",\n \"bg-decorative3-subdued\": \"lavender50\",\n \"bg-decorative3-very-subdued\": \"lavender30\",\n \"bg-decorative4-main\": \"pink\",\n \"bg-decorative4-subdued\": \"pink50\",\n \"bg-decorative4-very-subdued\": \"pink30\",\n \"bg-decorative5-main\": \"lemon\",\n \"bg-decorative5-subdued\": \"lemon50\",\n \"bg-decorative5-very-subdued\": \"lemon30\",\n \"bg-decorative6-main\": \"amber\",\n \"bg-decorative6-subdued\": \"amber50\",\n \"bg-decorative6-very-subdued\": \"amber30\",\n \"bg-interactive-element1\": \"grey50\",\n \"bg-interactive-element2\": \"grey40\",\n \"bg-correct\": \"mint50\",\n \"bg-incorrect\": \"red30\",\n \"bg-success\": \"oakGreen\",\n \"bg-error\": \"red\",\n \"icon-inverted\": \"white\",\n \"icon-disabled\": \"grey50\",\n \"icon-brand\": \"oakGreen\",\n \"icon-success\": \"oakGreen\",\n \"icon-error\": \"red\",\n \"icon-warning\": \"amber\",\n \"icon-primary\": \"black\",\n \"icon-subdued\": \"grey60\",\n \"icon-link-active\": \"navy\",\n \"icon-link-hover\": \"navy110\",\n \"icon-link-pressed\": \"navy120\",\n \"icon-link-visited\": \"navy120\",\n \"icon-decorative1\": \"mint110\",\n \"icon-decorative2\": \"aqua110\",\n \"icon-decorative3\": \"lavender110\",\n \"icon-decorative4\": \"pink110\",\n \"icon-decorative5\": \"lemon110\",\n \"icon-decorative6\": \"amber\",\n \"icon-promo\": \"lemon\",\n \"border-primary\": \"black\",\n \"border-inverted\": \"white\",\n \"border-neutral\": \"grey50\",\n \"border-neutral-lighter\": \"grey40\",\n \"border-neutral-stronger\": \"grey60\",\n \"border-brand\": \"oakGreen\",\n \"border-success\": \"oakGreen\",\n \"border-error\": \"red\",\n \"border-warning\": \"amber\",\n \"border-decorative1\": \"mint\",\n \"border-decorative1-stronger\": \"mint110\",\n \"border-decorative2\": \"aqua\",\n \"border-decorative2-stronger\": \"aqua110\",\n \"border-decorative3\": \"lavender\",\n \"border-decorative3-stronger\": \"lavender110\",\n \"border-decorative4\": \"pink\",\n \"border-decorative4-stronger\": \"pink110\",\n \"border-decorative5\": \"lemon\",\n \"border-decorative5-stronger\": \"lemon110\",\n \"border-decorative6\": \"amber50\",\n \"border-decorative6-stronger\": \"amber\",\n transparent: \"transparent\",\n \"code-blue\": \"rpf-syntax-blue\",\n \"code-green\": \"rpf-syntax-green\",\n \"code-grey\": \"rpf-syntax-grey\",\n \"code-pink\": \"rpf-syntax-pink\",\n \"border-text-link-pressed\": \"navy120\",\n },\n};\n","import pxToRem from \"./pxToRem\";\n\nimport { OakBorderWidthToken, oakBorderWidthTokens } from \"@/styles/theme\";\n\nexport function parseBorderWidth(\n value: OakBorderWidthToken | null | undefined,\n) {\n if (!value) {\n return undefined;\n }\n\n if (value in oakBorderWidthTokens) {\n return `${pxToRem(oakBorderWidthTokens[value])}rem`;\n }\n}\n","import styled, { css } from \"styled-components\";\n\nimport { OakBorderWidthToken, OakUiRoleToken } from \"@/styles\";\nimport {\n ResponsiveValues,\n responsiveStyle,\n} from \"@/styles/utils/responsiveStyle\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseBorderWidth } from \"@/styles/helpers/parseBorderWidth\";\n\nexport type InternalStyledSvgProps = {\n $fill?: ResponsiveValues<OakUiRoleToken>;\n $stroke?: ResponsiveValues<OakUiRoleToken>;\n $strokeWidth?: ResponsiveValues<OakBorderWidthToken>;\n};\n\nexport const colorFillStyle = css<InternalStyledSvgProps>`\n ${responsiveStyle<InternalStyledSvgProps, OakUiRoleToken>(\n \"fill\",\n (props) => props.$fill,\n parseColor,\n )}\n`;\n\n/**\n * A styled SVG element with props to apply design tokens to the fill and stroke.\n */\nexport const InternalStyledSvg = styled.svg<InternalStyledSvgProps>`\n ${colorFillStyle}\n ${responsiveStyle<InternalStyledSvgProps, OakUiRoleToken>(\n \"stroke\",\n (props) => props.$stroke,\n parseColor,\n )}\n ${responsiveStyle<InternalStyledSvgProps, OakBorderWidthToken>(\n \"stroke-width\",\n (props) => props.$strokeWidth,\n parseBorderWidth,\n )}\n`;\n","import React from \"react\";\n\nimport {\n InternalStyledSvg,\n InternalStyledSvgProps,\n} from \"@/components/internal-components/InternalStyledSvg\";\n\nexport const HandDrawnFocusUnderlineSvg = (props: InternalStyledSvgProps) => {\n return (\n <InternalStyledSvg\n xmlns=\"http://www.w3.org/2000/svg\"\n // viewBox=\"0 0 866 8\"\n preserveAspectRatio=\"none\"\n // height=\"100%\"\n width=\"100%\"\n // width=\"195\"\n height=\"7\"\n viewBox=\"0 0 195 7\"\n // fill=\"none\"\n {...props}\n >\n {/* <svg width=\"195\" height=\"7\" viewBox=\"0 0 195 7\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> */}\n <path\n d=\"M193.989 5.27816C191.224 5.83961 188.29 5.95094 185.233 5.95436C164.998 5.97909 144.806 6.04167 124.593 6.02065C103.549 6.00315 82.5133 5.8886 61.4695 5.85778C45.3904 5.83449 29.2961 5.89496 13.2098 5.8717C10.2284 5.84036 7.27134 5.73181 4.38119 5.54762C1.78065 5.40454 0.188712 4.70174 0.482863 4.00998C0.590325 3.75687 0.613986 3.50218 0.553519 3.24879C0.431797 3.00904 0.257402 2.77161 0.0312099 2.53766C1.56714 2.43619 3.12843 2.36598 4.70115 2.32768C16.4883 2.26831 28.2976 2.13275 40.0693 2.2123C52.4335 2.29696 64.7916 2.21996 77.1492 2.22285C105.42 2.23007 133.688 2.24999 161.954 2.2826C168.927 2.29305 175.886 2.42911 182.844 2.53093C184.644 2.56126 186.424 2.63781 188.161 2.75952C191.997 3.02103 193.82 3.68671 193.928 4.7401C193.905 4.90949 193.955 5.06526 193.989 5.27816ZM7.54114 5.28886L7.54209 5.15951L5.46075 5.16831C5.46037 5.21968 5.46 5.27104 5.4596 5.3243L7.54114 5.28886ZM7.31844 3.14218C6.36666 3.83292 6.36668 3.83291 7.94956 3.79958C7.77774 3.57965 7.56255 3.35991 7.35458 3.14203L7.31844 3.14218ZM58.0677 2.64406L58.2202 2.55021L54.6067 2.56549L54.606 2.6587L58.0677 2.64406ZM59.2655 3.87356L59.3735 3.93587L61.2886 3.92776L61.2891 3.865L59.2655 3.87356ZM4.15738 2.56776L4.03376 2.6729L6.74385 2.66144L6.74462 2.55681L4.15738 2.56776Z\"\n fill=\"#222222\"\n />\n <path\n d=\"M194.048 3.7872C191.283 4.34864 188.349 4.45997 185.292 4.46339C165.059 4.48811 144.869 4.55069 124.658 4.52966C103.616 4.51215 82.5815 4.39759 61.5395 4.36676C45.4617 4.34347 29.3688 4.40393 13.2838 4.38067C10.3027 4.34933 7.34591 4.24078 4.45601 4.05658C1.85568 3.9135 0.263876 3.2107 0.558012 2.51894C0.665459 2.26584 0.68912 2.01114 0.628653 1.75775C0.506946 1.51801 0.332582 1.28057 0.10639 1.04662C1.6422 0.945149 3.20335 0.874948 4.77593 0.836643C16.562 0.777274 28.3704 0.641721 40.141 0.721281C52.5042 0.805943 64.8613 0.728942 77.2178 0.731837C105.486 0.739072 133.752 0.759003 162.015 0.791623C168.988 0.802073 175.946 0.938139 182.904 1.03996C184.703 1.07029 186.484 1.14684 188.22 1.26856C192.055 1.53006 193.879 2.19575 193.987 3.24913C193.964 3.41853 194.013 3.57429 194.048 3.7872ZM7.6157 3.79783L7.61665 3.66848L5.53547 3.67728C5.5351 3.72864 5.53472 3.78001 5.53433 3.83327L7.6157 3.79783ZM7.39301 1.65115C6.44131 2.34188 6.44133 2.34188 8.02407 2.30855C7.85227 2.08862 7.63709 1.86887 7.42914 1.651L7.39301 1.65115ZM58.1379 1.15304L58.2904 1.05919L54.6772 1.07448L54.6765 1.16769L58.1379 1.15304ZM59.3357 2.38254L59.4436 2.44485L61.3585 2.43675L61.359 2.37398L59.3357 2.38254ZM4.23221 1.07672L4.10861 1.18187L6.81847 1.1704L6.81924 1.06578L4.23221 1.07672Z\"\n fill=\"#FBD60E\"\n />\n {/* </svg> */}\n </InternalStyledSvg>\n );\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { HandDrawnFocusUnderlineSvg } from \"./SubHandDrawnFocusUnderline\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { InternalStyledSvgProps } from \"@/components/internal-components/InternalStyledSvg\";\nimport { SizeStyleProps } from \"@/styles/utils/sizeStyle\";\nimport { SpacingStyleProps } from \"@/styles/utils/spacingStyle\";\n\nconst StyledOakFlex = styled(OakFlex)``;\n\nexport type OakHandDrawnFocusUnderlineProps = {\n FocusUnderlineColor?: InternalStyledSvgProps[\"$fill\"];\n} & SpacingStyleProps &\n SizeStyleProps;\n\n/**\n * A Drawn FocusUnderline svg inside a flex container\n *\n * use prop FocusUnderlineColor to change the color of the FocusUnderline\n *\n * change the sizeProps of the flex container to change the size and dimentions of the FocusUnderline\n */\nexport const OakHandDrawnFocusUnderline = (\n props: OakHandDrawnFocusUnderlineProps,\n) => {\n const { FocusUnderlineColor, ...flexProps } = props;\n\n return (\n <StyledOakFlex {...flexProps}>\n <HandDrawnFocusUnderlineSvg $fill={FocusUnderlineColor} />\n </StyledOakFlex>\n );\n};\n","import React, { ReactNode, useEffect, useRef, useState } from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakHandDrawnFocusUnderline } from \"@/components/messaging-and-feedback/OakHandDrawnFocusUnderline\";\nimport {\n OakBoxProps,\n OakBox,\n oakBoxCss,\n} from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport {\n InternalAccordionButton,\n InternalAccordionContent,\n} from \"@/components/internal-components/InternalAccordion\";\nimport useAccordionContext from \"@/components/internal-components/InternalAccordion/useAccordionContext\";\nimport InternalAccordionProvider from \"@/components/internal-components/InternalAccordion/InternalAccordionProvider\";\nimport { InternalStyledSvgProps } from \"@/components/internal-components/InternalStyledSvg\";\nimport { FlexStyleProps, flexStyle } from \"@/styles/utils/flexStyle\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport { parseOpacity } from \"@/styles/helpers/parseOpacity\";\nimport { ColorStyleProps } from \"@/styles/utils/colorStyle\";\n\nexport type InternalChevronAccordionProps = {\n /**\n * The header of the accordion\n */\n header: ReactNode;\n /**\n * Whether the accordion should be open initially\n */\n initialOpen?: boolean;\n /**\n * The content of the accordion\n */\n children: ReactNode;\n /**\n * Optional subheading to display above the fold\n */\n subheading?: ReactNode;\n /**\n * The id of the accordion\n */\n id: string;\n} & FlexStyleProps &\n OakBoxProps &\n ColorStyleProps;\n\nconst StyledAccordionUnderline = styled(\n OakHandDrawnFocusUnderline,\n)<InternalStyledSvgProps>`\n position: absolute;\n width: 100%;\n bottom: -${parseSpacing(\"spacing-4\")};\n`;\n\nexport const StyledAccordionButton = styled(\n InternalAccordionButton,\n)<FlexStyleProps>`\n ${flexStyle}\n ${oakBoxCss}\n position: relative;\n &:hover {\n text-decoration: underline;\n }\n &:focus-visible {\n .shadow {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n }\n`;\n\nconst StyledContainer = styled(OakFlex)`\n ${StyledAccordionUnderline} {\n visibility: hidden;\n }\n ${StyledAccordionButton}:focus-visible ~ ${StyledAccordionUnderline} {\n visibility: visible;\n }\n ${oakBoxCss}\n ${flexStyle}\n`;\n\ntype BottomBoxShadowProps = {\n shouldDisplayShadow: boolean;\n};\n\nexport const BottomBoxShadow = styled(OakBox)<BottomBoxShadowProps>`\n position: absolute;\n bottom: 0;\n width: 100%;\n height: 50px;\n opacity: ${(props) =>\n props.shouldDisplayShadow\n ? parseOpacity(\"opaque\")\n : parseOpacity(\"transparent\")};\n z-index: 100;\n -webkit-box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n -moz-box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n padding: 2px;\n`;\n\n/**\n * An accordion component that can be used to show/hide content\n */\n\nconst Accordion = ({\n header,\n children,\n id,\n subheading,\n ...styleProps\n}: InternalChevronAccordionProps) => {\n const [shouldDisplayShadow, setShouldDisplayShadow] = useState(false);\n const scrollBox = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const scrollHeight = scrollBox.current?.scrollHeight;\n const clientHeight = scrollBox.current?.clientHeight;\n\n if (scrollHeight && clientHeight && scrollHeight > clientHeight) {\n setShouldDisplayShadow(true);\n } else {\n setShouldDisplayShadow(false);\n }\n }, []);\n\n const handleScroll = () => {\n const scrollHeight = scrollBox.current?.scrollHeight;\n const scrollTop = scrollBox.current?.scrollTop;\n const clientHeight = scrollBox.current?.clientHeight;\n\n if (scrollHeight && scrollTop) {\n const bottom = scrollHeight - scrollTop === clientHeight;\n\n if (bottom) {\n setShouldDisplayShadow(false);\n } else {\n setShouldDisplayShadow(true);\n }\n }\n };\n\n const { isOpen } = useAccordionContext();\n\n return (\n <StyledContainer\n $position={\"relative\"}\n $pv={\"spacing-12\"}\n $flexDirection={\"column\"}\n $gap={\"spacing-4\"}\n {...styleProps}\n >\n <StyledAccordionButton\n id={id}\n $width={\"100%\"}\n $justifyContent={\"space-between\"}\n $alignItems={\"center\"}\n >\n {header}\n\n <OakBox $position={\"relative\"} $mr={\"spacing-12\"}>\n <OakBox\n className=\"shadow\"\n $position={\"absolute\"}\n $borderRadius={\"border-radius-s\"}\n $width={\"100%\"}\n $height={\"100%\"}\n $top=\"spacing-0\"\n />\n <OakIcon\n iconName=\"chevron-down\"\n $width=\"spacing-32\"\n $height=\"spacing-32\"\n alt=\"An arrow to indicate whether the item is open or closed\"\n style={{\n transform: isOpen ? \"rotate(180deg)\" : \"none\",\n transition: \"all 0.3s ease 0s\",\n }}\n />\n </OakBox>\n </StyledAccordionButton>\n {!isOpen && subheading}\n <OakBox\n ref={scrollBox}\n $position={\"relative\"}\n $overflow={\"auto\"}\n onScroll={handleScroll}\n data-testid={\"scrollable-content\"}\n >\n <InternalAccordionContent aria-labelledby={id}>\n {children}\n </InternalAccordionContent>\n </OakBox>\n <StyledAccordionUnderline $fill={\"border-decorative5-stronger\"} />\n {isOpen && (\n <BottomBoxShadow\n shouldDisplayShadow={shouldDisplayShadow}\n data-testid=\"bottom-box-shadow\"\n $pointerEvents=\"none\"\n />\n )}\n </StyledContainer>\n );\n};\n\n/**\n * InternalChevronAccordion has a chevron icon that rotates when the accordion is open\n */\n\nexport const InternalChevronAccordion = ({\n initialOpen = false,\n ...props\n}: InternalChevronAccordionProps) => {\n return (\n <InternalAccordionProvider isInitialOpen={initialOpen}>\n <Accordion initialOpen {...props} />\n </InternalAccordionProvider>\n );\n};\n","import React, { ComponentProps } from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport { parseBorderRadius } from \"@/styles/helpers/parseBorderRadius\";\n\nexport type OakCollapsibleContentProps = ComponentProps<typeof OakFlex> & {\n /**\n * Whether the content is displayed or not\n */\n isOpen: boolean;\n};\n\nconst StyledScrollBox = styled(OakBox)`\n &::-webkit-scrollbar-thumb {\n border-radius: ${parseBorderRadius(\"border-radius-m\")};\n background-color: ${parseColor(\"bg-interactive-element1\")};\n }\n &::-webkit-scrollbar-track {\n border-radius: ${parseBorderRadius(\"border-radius-m\")};\n background-color: ${parseColor(\"bg-primary\")};\n }\n &::-webkit-scrollbar {\n width: ${parseSpacing(\"spacing-12\")};\n height: ${parseSpacing(\"spacing-12\")};\n border-radius: ${parseBorderRadius(\"border-radius-m\")};\n }\n`;\n\n/**\n * A filled scrollable box that can be hidden with the `isOpen` prop.\n * Useful for hiding content that is not immediately relevant\n */\nexport const OakCollapsibleContent = ({\n isOpen,\n children,\n id,\n ...rest\n}: OakCollapsibleContentProps) => {\n return (\n <OakBox $display={isOpen ? \"block\" : \"none\"} id={id}>\n <OakFlex\n $background=\"bg-neutral-stronger\"\n $ph=\"spacing-16\"\n $pv=\"spacing-24\"\n $borderRadius=\"border-radius-m\"\n {...rest}\n >\n <StyledScrollBox\n $overflow=\"auto\"\n $maxHeight=\"100%\"\n $width=\"100%\"\n $pr=\"spacing-16\"\n >\n {children}\n </StyledScrollBox>\n </OakFlex>\n </OakBox>\n );\n};\n","import React, { ReactNode } from \"react\";\n\nimport { OakSpan } from \"@/components/typography/OakSpan\";\n\nexport type OakKbdProps = {\n children: ReactNode;\n};\n\n/**\n * Represents textual user input from a keyboard, voice input, or any other text entry device.\n * */\nexport const OakKbd = ({ children }: OakKbdProps) => {\n return (\n <OakSpan\n $font=\"body-3-bold\"\n as=\"kbd\"\n $borderColor=\"border-decorative3-stronger\"\n $background=\"bg-primary\"\n $borderRadius=\"border-radius-m\"\n $ba=\"border-solid-m\"\n $ph=\"spacing-8\"\n $pv=\"spacing-4\"\n $whiteSpace=\"nowrap\"\n >\n {children}\n </OakSpan>\n );\n};\n","import React, { ReactNode } from \"react\";\n\nimport {\n OakLoadingSpinner,\n OakLoadingSpinnerProps,\n} from \"@/components/messaging-and-feedback/OakLoadingSpinner\";\nimport { InternalShadowRoundButton } from \"@/components/internal-components/InternalShadowRoundButton\";\nimport { OakBox, OakBoxProps } from \"@/components/layout-and-structure/OakBox\";\nimport {\n OakFlex,\n OakFlexProps,\n} from \"@/components/layout-and-structure/OakFlex\";\nimport {\n OakHeading,\n OakHeadingProps,\n} from \"@/components/typography/OakHeading\";\nimport { OakIcon, OakIconName } from \"@/components/images-and-icons/OakIcon\";\nimport { OakUiRoleToken } from \"@/styles\";\nimport { PaddingStyleProps } from \"@/styles/utils/spacingStyle\";\nimport { FlexStyleProps } from \"@/styles/utils/flexStyle\";\nimport { SizeStyleProps } from \"@/styles/utils/sizeStyle\";\n\nexport type OakInlineBannerTypes =\n | \"info\"\n | \"neutral\"\n | \"success\"\n | \"alert\"\n | \"error\"\n | \"warning\";\n\nexport type OakInlineBannerVariants = \"regular\" | \"large\";\n\nexport type OakInlineBannerProps = OakFlexProps & {\n /**\n * If true the modal will be open, if false it will be closed\n */\n isOpen: boolean;\n /**\n * The optional title to display in the banner\n */\n title?: string;\n /**\n * The message to display in the banner\n */\n message: string | ReactNode;\n /**\n * The type of banner to display\n */\n type?: OakInlineBannerTypes;\n /**\n * The icon to display in the banner\n */\n icon?: OakIconName;\n /**\n * The color filter to apply to the icon\n */\n iconColorFilter?: OakUiRoleToken;\n /**\n * If true show a loading spinner instead of an icon\n */\n isLoading?: boolean;\n /**\n * The optional call to action to display in the banner\n */\n cta?: ReactNode;\n /**\n * If true the banner can be dismissed (show close icon)\n */\n canDismiss?: boolean;\n /**\n * The function to call when the banner is dismissed\n */\n onDismiss?: () => void;\n /**\n * Props to override the close button\n */\n closeButtonOverrideProps?: Partial<typeof InternalShadowRoundButton>;\n /**\n * The variant of an Inline Banner to display\n */\n variant?: OakInlineBannerVariants;\n titleTag?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n};\n\nexport type BannerTypes = {\n [key in OakInlineBannerTypes]: {\n icon: OakIconName;\n iconColorFilter: OakUiRoleToken;\n backgroundColour: OakUiRoleToken;\n borderColour: OakUiRoleToken;\n };\n};\n\nexport const bannerTypes: BannerTypes = {\n info: {\n icon: \"info\",\n iconColorFilter: \"icon-primary\",\n backgroundColour: \"bg-decorative3-very-subdued\",\n borderColour: \"border-decorative3\",\n },\n neutral: {\n icon: \"info\",\n iconColorFilter: \"icon-primary\",\n backgroundColour: \"bg-neutral\",\n borderColour: \"border-neutral-lighter\",\n },\n success: {\n icon: \"success\",\n iconColorFilter: \"icon-primary\",\n backgroundColour: \"bg-decorative1-very-subdued\",\n borderColour: \"border-decorative1-stronger\",\n },\n alert: {\n icon: \"bell\",\n iconColorFilter: \"icon-primary\",\n backgroundColour: \"bg-decorative5-very-subdued\",\n borderColour: \"border-decorative5-stronger\",\n },\n warning: {\n icon: \"warning\",\n iconColorFilter: \"icon-warning\",\n backgroundColour: \"bg-decorative6-very-subdued\",\n borderColour: \"border-decorative6\",\n },\n error: {\n icon: \"error\",\n iconColorFilter: \"icon-error\",\n backgroundColour: \"bg-incorrect\",\n borderColour: \"border-error\",\n },\n};\n\nexport type OakInlineBannerVariantProps = {\n [key in OakInlineBannerVariants]: {\n defaultIconDimensions: Partial<SizeStyleProps>;\n loadingSpinnerDimensions: Partial<OakLoadingSpinnerProps>;\n heading: Partial<OakHeadingProps>;\n closeButtonWrapper?: Partial<OakBoxProps>;\n ctaWrapper?: Partial<OakBoxProps>;\n flexDirection: FlexStyleProps[\"$flexDirection\"];\n bannerPadding: PaddingStyleProps[\"$pa\"];\n textContentGap?: FlexStyleProps[\"$gap\"];\n };\n};\n\nexport const bannerVariants: OakInlineBannerVariantProps = {\n regular: {\n defaultIconDimensions: {\n $width: \"spacing-32\",\n $height: \"spacing-32\",\n },\n loadingSpinnerDimensions: {\n $width: \"spacing-24\",\n },\n heading: {\n $font: [\"heading-7\"],\n },\n ctaWrapper: {\n $mt: \"spacing-12\",\n },\n flexDirection: \"row\",\n bannerPadding: \"spacing-16\",\n textContentGap: \"spacing-4\",\n },\n large: {\n defaultIconDimensions: {\n $width: \"spacing-40\",\n $height: \"spacing-40\",\n },\n loadingSpinnerDimensions: {\n $width: \"spacing-32\",\n },\n heading: {\n $font: [\"heading-6\"],\n },\n ctaWrapper: {\n $mt: \"spacing-8\",\n },\n closeButtonWrapper: {\n $position: \"absolute\",\n $top: \"spacing-0\",\n $right: \"spacing-0\",\n },\n flexDirection: \"column\",\n bannerPadding: \"spacing-24\",\n textContentGap: \"spacing-16\",\n },\n};\n\n/**\n * A inline banner that can be used to display important information to the user.\n *\n * ## Props\n *\n * - **isOpen** \\- If true the banner will be displayed\n * - **title?** \\- Optional title to display in the banner, without this the banner will be more compact\n * - **message** \\- Message to display in the banner\n * - **type?** \\- Optional type of banner to display (info, neutral, success, alert, error, warning) (default: info)\n * - **icon?** \\- Optional icon to display in the banner\n * - **iconColorFilter?** \\- Optional color filter to apply to the icon\n * - **isLoading?** \\- If true show a loading spinner instead of an icon\n * - **cta?** \\- Optional call to action to display in the banner (ReactNode)\n * - **canDismiss?** \\- If true the banner can be dismissed (show close icon) (default: false)\n * - **onDismiss?** \\- Function called when the banner is dismissed\n * - **closeButtonOverrideProps?** \\- Props to override the close button (aria-label, etc)\n * - **variant?** \\- The variant of the inline banner to display (regular, large) (default: regular)\n * - **...rest** \\- Other props to be passed to the wrapper OakFlex component (can be used to override styles of the banner)\n */\nexport const OakInlineBanner = ({\n isOpen,\n title,\n message,\n type = \"info\",\n icon,\n iconColorFilter,\n isLoading,\n cta,\n canDismiss = false,\n onDismiss = () => {},\n closeButtonOverrideProps,\n variant = \"regular\",\n titleTag = \"h1\",\n ...props\n}: OakInlineBannerProps) => {\n const iconElement = (\n <OakBox>\n <OakIcon\n iconName={icon ?? bannerTypes[type]?.icon ?? \"info\"}\n $colorFilter={iconColorFilter ?? bannerTypes[type]?.iconColorFilter}\n {...bannerVariants[variant].defaultIconDimensions}\n data-testid=\"inline-banner-icon\"\n />\n </OakBox>\n );\n\n const loader = (\n <OakFlex\n {...bannerVariants[variant].defaultIconDimensions}\n $flexShrink={0}\n $justifyContent=\"center\"\n $alignItems=\"center\"\n >\n <OakLoadingSpinner\n {...bannerVariants[variant].loadingSpinnerDimensions}\n data-testid=\"inline-banner-loading-spinner\"\n />\n </OakFlex>\n );\n\n const iconLogic = isLoading ? loader : iconElement;\n return (\n <OakFlex\n data-testid=\"oak-inline-banner\"\n $alignItems={title ? \"start\" : \"end\"}\n $display={isOpen ? \"flex\" : \"none\"}\n $background={bannerTypes[type]?.backgroundColour}\n $pa={bannerVariants[variant].bannerPadding}\n $borderRadius={\"border-radius-m\"}\n $ba=\"border-solid-s\"\n $borderStyle={\"solid\"}\n $borderColor={bannerTypes[type]?.borderColour}\n $flexDirection={\"column\"}\n {...props}\n >\n <OakFlex\n $position={\"relative\"}\n $flexDirection={bannerVariants[variant].flexDirection}\n $justifyContent={\"space-between\"}\n $alignItems={title || variant === \"large\" ? \"start\" : \"center\"}\n $gap={\"spacing-12\"}\n $width={\"100%\"}\n >\n {iconLogic}\n {canDismiss && (\n <OakFlex $order={2} {...bannerVariants[variant].closeButtonWrapper}>\n <InternalShadowRoundButton\n aria-label={\"Dismiss banner\"}\n defaultIconBackground=\"transparent\"\n defaultIconColor=\"icon-primary\"\n defaultTextColor=\"transparent\"\n hoverTextColor=\"transparent\"\n disabledTextColor=\"transparent\"\n hoverIconBackground=\"icon-primary\"\n hoverIconColor=\"icon-inverted\"\n disabledIconBackground=\"transparent\"\n iconBackgroundSize=\"spacing-24\"\n iconSize=\"spacing-24\"\n iconName=\"cross\"\n data-testid=\"inline-banner-close-button\"\n onClick={onDismiss}\n {...closeButtonOverrideProps}\n />\n </OakFlex>\n )}\n <OakFlex\n $order={1}\n $width={\"100%\"}\n $flexDirection={title ? \"column\" : \"row\"}\n $justifyContent={title ? \"center\" : \"space-between\"}\n $alignItems={title ? \"start\" : \"center\"}\n $gap={bannerVariants[variant].textContentGap}\n >\n {title && (\n <OakHeading\n data-testid=\"inline-banner-title\"\n tag={titleTag}\n {...bannerVariants[variant].heading}\n >\n {title}\n </OakHeading>\n )}\n <OakBox $font={\"body-2\"} data-testid=\"inline-banner-message\">\n {message}\n </OakBox>\n {cta && (\n <OakFlex {...(title ? bannerVariants[variant].ctaWrapper : {})}>\n {cta}\n </OakFlex>\n )}\n </OakFlex>\n </OakFlex>\n </OakFlex>\n );\n};\n","import React, {\n HTMLAttributes,\n ReactNode,\n useCallback,\n useEffect,\n useLayoutEffect,\n useRef,\n useState,\n} from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { FocusOn } from \"react-focus-on\";\nimport { Transition, TransitionStatus } from \"react-transition-group\";\nimport styled from \"styled-components\";\n\nimport { InternalShadowRoundButton } from \"@/components/internal-components/InternalShadowRoundButton\";\nimport { OakBox, oakBoxCss } from \"@/components/layout-and-structure/OakBox\";\nimport {\n OakFlex,\n OakFlexProps,\n} from \"@/components/layout-and-structure/OakFlex\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\n\nexport type OakModalCenterProps = {\n /**\n * The content of the modal. Use with `<OakModalCenterBody>` for best results.\n */\n children: ReactNode;\n /**\n * Determines whether to show the modal or not\n */\n isOpen: boolean;\n /**\n * Override HTMLAttributes & OakFlex props for the modal container\n */\n modalFlexProps?: Partial<OakFlexProps & HTMLAttributes<Element>>;\n /**\n * Override HTMLAttributes & OakFlex props for the outer modal container\n */\n modalOuterFlexProps?: Partial<OakFlexProps & HTMLAttributes<Element>>;\n /**\n * Override HTMLAttributes & OakFlex props for the inner modal container\n */\n modalInnerFlexProps?: Partial<OakFlexProps & HTMLAttributes<Element>>;\n /**\n * Override HTMLAttributes & OakFlex props for the backdrop container\n */\n backdropFlexProps?: Partial<OakFlexProps & HTMLAttributes<Element>>;\n /**\n * If true, clicking the backdrop will not call onClose\n */\n disableBackdropClick?: boolean;\n /**\n * If true, pressing the escape key will not call onClose\n */\n disableEscapeKey?: boolean;\n /**\n * If true, the close button will be hidden\n */\n hideCloseButton?: boolean;\n /**\n * Called when the modal is closed via the close button, backdrop click, or escape key\n */\n onClose?: () => void;\n /**\n * The DOM container to render the modal portal into.\n */\n domContainer?: Element;\n /**\n * Slot for the footer of the modal\n */\n footerSlot?: ReactNode;\n /**\n * Override for returnFocus behavior of FocusOn\n */\n returnFocus?: (returnTo: Element) => boolean | FocusOptions;\n};\n\nconst FocusOnBox = styled(FocusOn)`\n ${oakBoxCss}\n`;\n\nconst BlurredOakBox = styled(OakBox)`\n backdrop-filter: blur(3px);\n`;\n\nconst FadeInFlex = styled(OakFlex)<{ $state: TransitionStatus }>`\n opacity: ${({ $state }) => {\n switch ($state) {\n case \"entered\":\n case \"entering\":\n return \"1\";\n default:\n return \"0\";\n }\n }};\n transition: opacity 0s;\n`;\n\n/**\n * Centered modal dialog with trapped focus, close button, backdrop click, and escape key handling.\n *\n * ## Props\n *\n * - **isOpen** \\- If true the modal will be open, if false it will be closed\n * - **onClose** \\- Called when the modal is closed via the close button, backdrop click, or escape key\n * - **children** \\- The content of the modal. Use with `<OakModalCenterBody>` for best results.\n * - **domContainer** \\- The DOM container to render the modal portal into.\n * - **disableBackdropClick?** \\- If true, clicking the backdrop will not call onClose\n * - **disableEscapeKey?** \\- If true, pressing the escape key will not call onClose\n * - **hideCloseButton?** \\- If true, the close button will be hidden\n * - **modalFlexProps?** \\- Override HTMLAttributes & OakFlex props for the modal container\n * - **modalOuterFlexProps?** \\- Override HTMLAttributes & OakFlex props for the outer modal container\n * - **modalInnerFlexProps?** \\- Override HTMLAttributes & OakFlex props for the inner modal container\n * - **backdropFlexProps?** \\- Override HTMLAttributes & OakFlex props for the backdrop container\n * - **footerSlot?** \\- Fixed area at the bottom of the modal, this will remain fixed in view if the content is scrollable\n */\nexport const OakModalCenter = ({\n children,\n domContainer,\n isOpen,\n onClose = () => {},\n disableBackdropClick = false,\n disableEscapeKey = false,\n hideCloseButton = false,\n modalFlexProps,\n modalOuterFlexProps,\n modalInnerFlexProps,\n backdropFlexProps,\n footerSlot,\n returnFocus,\n}: OakModalCenterProps) => {\n const [scrollBorders, setScrollBorders] = useState({\n top: false,\n bottom: false,\n });\n const transitionRef = useRef<HTMLDivElement>(null);\n const scrollBoxRef = useRef<HTMLDivElement>(null);\n\n const checkForScroll = useCallback(() => {\n // To show some borders when the content is scrollable\n const scrollBoxElem = scrollBoxRef.current;\n if (!scrollBoxElem) {\n return;\n }\n\n if (scrollBoxElem.scrollHeight > scrollBoxElem.clientHeight) {\n scrollBoxRef.current.tabIndex = 0;\n }\n\n setScrollBorders({\n top: scrollBoxElem.scrollTop > 0,\n bottom: scrollBoxElem.scrollHeight > scrollBoxElem.clientHeight,\n });\n }, []);\n\n useLayoutEffect(() => {\n checkForScroll();\n scrollBoxRef.current?.addEventListener(\"scroll\", checkForScroll);\n return () => {\n scrollBoxRef.current?.removeEventListener(\"scroll\", checkForScroll);\n };\n }, [isOpen]);\n\n useEffect(() => {\n window.addEventListener(\"resize\", checkForScroll);\n return () => {\n window.removeEventListener(\"resize\", checkForScroll);\n };\n });\n\n const isClientSide = typeof window !== \"undefined\";\n\n const modal = (\n <Transition\n in={isOpen}\n nodeRef={transitionRef}\n addEndListener={(done) => {\n transitionRef.current?.addEventListener(\"transitionend\", done);\n }}\n timeout={0}\n mountOnEnter\n unmountOnExit\n >\n {(state) => (\n <FadeInFlex\n ref={transitionRef}\n $state={state}\n $position=\"fixed\"\n $inset=\"spacing-0\"\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $zIndex=\"modal-dialog\"\n >\n <BlurredOakBox\n $position=\"fixed\"\n $inset=\"spacing-0\"\n $zIndex=\"behind\"\n $background=\"bg-inverted-semi-transparent\"\n data-testid=\"backdrop\"\n {...backdropFlexProps}\n />\n <OakFlex\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $maxWidth=\"spacing-960\"\n $width=\"100%\"\n $pa=\"spacing-20\"\n {...modalOuterFlexProps}\n >\n <FocusOnBox\n onEscapeKey={() => !disableEscapeKey && onClose()}\n onClickOutside={() => !disableBackdropClick && onClose()}\n returnFocus={returnFocus ?? true}\n autoFocus\n $width=\"100%\"\n >\n <OakFlex\n $flexDirection=\"column\"\n $background=\"bg-primary\"\n $borderRadius=\"border-radius-l\"\n $width=\"100%\"\n $position=\"relative\"\n role=\"alertdialog\"\n style={{\n maxHeight: `calc(100vh - ${parseSpacing(\n \"spacing-56\",\n )} - ${parseSpacing(\"spacing-56\")})`,\n }}\n {...modalFlexProps}\n >\n <OakBox $minHeight=\"spacing-56\" $position=\"relative\">\n {!hideCloseButton && (\n <OakBox\n $position=\"absolute\"\n $top=\"spacing-12\"\n $right=\"spacing-12\"\n >\n <InternalShadowRoundButton\n onClick={onClose}\n aria-label=\"Close Modal\"\n defaultIconBackground=\"transparent\"\n defaultIconColor=\"icon-primary\"\n defaultTextColor=\"transparent\"\n hoverTextColor=\"transparent\"\n disabledTextColor=\"transparent\"\n hoverIconBackground=\"icon-primary\"\n hoverIconColor=\"icon-inverted\"\n disabledIconBackground=\"transparent\"\n iconBackgroundSize=\"spacing-32\"\n iconSize=\"spacing-32\"\n iconName=\"cross\"\n data-testid=\"close-button\"\n />\n </OakBox>\n )}\n </OakBox>\n <div style={{ display: \"contents\" }} data-autofocus-inside>\n <OakFlex\n ref={scrollBoxRef}\n data-testid=\"modal-main-content\"\n $overflow=\"auto\"\n $flexDirection=\"column\"\n $ph=\"spacing-56\"\n $bt={\n scrollBorders.top ? \"border-solid-s\" : \"border-solid-none\"\n }\n $bb={\n scrollBorders.bottom\n ? \"border-solid-s\"\n : \"border-solid-none\"\n }\n $borderColor=\"border-neutral-lighter\"\n {...modalInnerFlexProps}\n >\n {children}\n </OakFlex>\n {footerSlot}\n </div>\n </OakFlex>\n </FocusOnBox>\n </OakFlex>\n </FadeInFlex>\n )}\n </Transition>\n );\n\n if (domContainer && isClientSide) {\n return createPortal(modal, domContainer);\n } else {\n return modal;\n }\n};\n","/*\n *\n * FIXME: This component should either live in its own folder or\n * or be renamed to SubModalCenterBody and be excluded from the exports\n * as per the rules stated in src/docs/namingConventions.mdx\n *\n */\n\nimport React, { ReactNode } from \"react\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport {\n OakHeading,\n OakHeadingProps,\n} from \"@/components/typography/OakHeading\";\nimport {\n OakIcon,\n OakIconName,\n OakIconProps,\n} from \"@/components/images-and-icons/OakIcon\";\n\nexport type OakModalCenterBodyProps = {\n /**\n * The name of the icon to display. Accepts an icon name token\n */\n iconName: OakIconName;\n /**\n * The title of the modal\n */\n title: string;\n /**\n * The content of the modal body\n */\n children: ReactNode;\n /**\n * Override props for the heading\n */\n headingOverride?: Partial<OakHeadingProps>;\n /**\n * Override props for the icon\n */\n iconOverride?: Partial<OakIconProps>;\n /**\n * Hide icon\n */\n hideIcon?: boolean;\n};\n\n/**\n * Intended to be used within the `OakModalCenter` component\n * it provides a consistent layout for the body of the modal\n * It includes an icon, a title, and the children passed to it.\n * The icon and title can be extended/overridden with the `iconOverride` and `headingOverride` props.\n *\n * ## Props\n *\n * - **iconName** \\- The name of the icon to display. Accepts an icon name token\n * - **title** \\- The title of the modal\n * - **children** \\- The content of the modal body\n * - **headingOverride** \\- Override HTMLAttributes & OakHEading props for the heading\n * - **iconOverride** \\- Override HTMLAttributes & OakIcon props for the icon\n */\nexport const OakModalCenterBody = ({\n children,\n iconName = \"info\",\n title,\n headingOverride,\n iconOverride,\n hideIcon,\n}: OakModalCenterBodyProps) => {\n return (\n <OakFlex\n $pb=\"spacing-24\"\n $width=\"100%\"\n $flexDirection=\"column\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n {!hideIcon && (\n <OakIcon\n iconName={iconName}\n $width=\"spacing-100\"\n $height=\"spacing-100\"\n $mb=\"spacing-32\"\n data-testid=\"icon\"\n {...iconOverride}\n />\n )}\n <OakHeading\n $font={[\"heading-5\", \"heading-5\", \"heading-4\"]}\n data-testid=\"OakHeading-id\"\n tag=\"h1\"\n $mb=\"spacing-32\"\n $textAlign=\"center\"\n {...headingOverride}\n >\n {title}\n </OakHeading>\n {children}\n </OakFlex>\n );\n};\n","import React from \"react\";\n\nimport {\n OakFlex,\n OakFlexProps,\n} from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon, OakIconName } from \"@/components/images-and-icons/OakIcon\";\nimport { OakLabel } from \"@/components/form-elements/OakLabel\";\n\nexport type OakTagFunctionalProps = {\n label: string;\n iconName?: OakIconName;\n isTrailingIcon?: boolean;\n useSpan?: boolean;\n} & Omit<OakFlexProps, \"onClick\" | \"label\">;\nexport const OakTagFunctional = (props: OakTagFunctionalProps) => {\n const { label, useSpan, ...oakFlexProps } = props;\n const icon = props.iconName && (\n <OakIcon\n $height={\"spacing-20\"}\n $width={\"spacing-20\"}\n iconName={props.iconName}\n />\n );\n\n const trailingIcon = props.isTrailingIcon && icon;\n const leadingIcon = !props.isTrailingIcon && icon;\n return (\n <OakFlex\n $borderRadius={\"border-radius-m\"}\n $ph={\"spacing-8\"}\n $pv={\"spacing-4\"}\n $font={\"heading-light-7\"}\n $gap={\"spacing-8\"}\n {...oakFlexProps}\n >\n {leadingIcon}\n <OakLabel as={useSpan ? \"span\" : undefined}>{label}</OakLabel>\n {trailingIcon}\n </OakFlex>\n );\n};\n","import React, { useRef, useEffect, useState } from \"react\";\nimport styled from \"styled-components\";\nimport { Transition, TransitionStatus } from \"react-transition-group\";\n\nimport { InternalShadowIconButton } from \"@/components/internal-components/InternalShadowIconButton\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakUiRoleToken } from \"@/styles\";\nimport { parseOpacity } from \"@/styles/helpers/parseOpacity\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\n\nexport type OakToastProps = {\n message: React.ReactNode;\n variant: VariantKey;\n autoDismissDuration?: number;\n autoDismiss: boolean;\n showIcon: boolean;\n onClose?: () => void;\n id?: number;\n showClose?: boolean;\n};\n\ntype VariantKey =\n | \"green\"\n | \"yellow\"\n | \"pink\"\n | \"blue\"\n | \"aqua\"\n | \"light\"\n | \"dark\"\n | \"error\"\n | \"success\";\n\ntype Variant = Record<\n VariantKey,\n {\n background: OakUiRoleToken;\n icon: React.ReactNode;\n color: OakUiRoleToken;\n }\n>;\n\nconst SuccessIconBackground = styled(OakBox)`\n top: 6px;\n left: 6px;\n`;\n\nconst SuccessIcon = (\n <OakBox $position=\"relative\">\n <SuccessIconBackground\n $width=\"spacing-20\"\n $height=\"spacing-20\"\n $background=\"bg-primary\"\n $borderRadius=\"border-radius-circle\"\n $position=\"absolute\"\n />\n <OakIcon iconName=\"success\" $width=\"spacing-32\" $height=\"spacing-32\" />\n </OakBox>\n);\n\nconst variants: Variant = {\n green: {\n background: \"bg-decorative1-main\",\n icon: SuccessIcon,\n color: \"text-primary\",\n },\n yellow: {\n background: \"bg-decorative5-main\",\n icon: SuccessIcon,\n color: \"text-primary\",\n },\n pink: {\n background: \"bg-decorative4-main\",\n icon: SuccessIcon,\n color: \"text-primary\",\n },\n blue: {\n background: \"bg-decorative3-main\",\n icon: SuccessIcon,\n color: \"text-primary\",\n },\n aqua: {\n background: \"bg-decorative2-main\",\n icon: SuccessIcon,\n color: \"text-primary\",\n },\n light: {\n background: \"bg-primary\",\n icon: SuccessIcon,\n color: \"text-primary\",\n },\n dark: {\n background: \"bg-inverted\",\n icon: SuccessIcon,\n color: \"text-inverted\",\n },\n error: {\n background: \"bg-error\",\n icon: (\n <OakIcon\n iconName=\"warning\"\n $colorFilter=\"text-inverted\"\n $height=\"spacing-32\"\n $width=\"spacing-32\"\n />\n ),\n color: \"text-inverted\",\n },\n success: {\n background: \"bg-success\",\n icon: SuccessIcon,\n color: \"text-inverted\",\n },\n};\n\nconst StyledFlex = styled(OakFlex)<{ $state: TransitionStatus }>`\n opacity: ${({ $state }) => {\n switch ($state) {\n case \"exiting\":\n case \"entering\":\n return parseOpacity(\"semi-transparent\");\n case \"exited\":\n return parseOpacity(\"transparent\");\n case \"entered\":\n return parseOpacity(\"opaque\");\n default:\n return parseOpacity(\"transparent\");\n }\n }};\n transition: opacity 0.3s ease-in-out;\n`;\n\nexport const OakToast = ({\n message,\n variant,\n autoDismiss = false,\n autoDismissDuration = 5000,\n showIcon,\n onClose,\n id,\n showClose = false,\n}: OakToastProps) => {\n const [isVisible, setIsVisible] = useState(true);\n\n useEffect(() => {\n if (autoDismiss && isVisible) {\n const timer = setTimeout(\n () => {\n setIsVisible(false);\n },\n Math.max(5000, autoDismissDuration),\n );\n return () => clearTimeout(timer);\n }\n }, [autoDismiss, autoDismissDuration, isVisible, id]);\n\n const transitionRef = useRef<HTMLDivElement>(null);\n\n const { background, icon, color } = variants[variant];\n\n return (\n <Transition\n nodeRef={transitionRef}\n in={isVisible}\n timeout={300}\n appear\n onExited={onClose}\n >\n {(state) => (\n <StyledFlex\n data-testid=\"oak-toast\"\n $pa=\"spacing-16\"\n $borderRadius=\"border-radius-m2\"\n $background={background}\n $state={state}\n $width=\"max-content\"\n $maxWidth={[\"spacing-240\", \"spacing-360\"]}\n $gap=\"spacing-12\"\n $dropShadow=\"drop-shadow-standard\"\n $alignItems=\"center\"\n $font=\"heading-light-7\"\n $color={color}\n $position=\"relative\"\n >\n {showIcon && icon}\n {message}\n {(!autoDismiss || showClose) && (\n <InternalShadowIconButton\n aria-label={\"Dismiss\"}\n defaultIconColor={color}\n defaultTextColor=\"transparent\"\n hoverTextColor=\"transparent\"\n disabledTextColor=\"transparent\"\n hoverIconColor={color}\n iconName=\"cross\"\n onClick={() => setIsVisible(false)}\n />\n )}\n </StyledFlex>\n )}\n </Transition>\n );\n};\n","import React, { HTMLAttributes, ReactNode } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport {\n OakFlex,\n OakFlexProps,\n} from \"@/components/layout-and-structure/OakFlex\";\nimport { OakUiRoleToken } from \"@/styles\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { ColorStyleProps } from \"@/styles/utils/colorStyle\";\nimport { responsiveStyle } from \"@/styles/utils/responsiveStyle\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\n\nexport type InternalTooltipProps = OakFlexProps &\n HTMLAttributes<Element> & {\n children?: ReactNode;\n tooltipPosition?: \"bottom-left\" | \"bottom-right\" | \"top-left\" | \"top-right\";\n };\n\nconst StyledFlex = styled(OakFlex)`\n width: max-content;\n pointer-events: none;\n`;\n\ntype StyledSvgProps = {\n $fill: ColorStyleProps[\"$background\"];\n $tooltipPosition?: InternalTooltipProps[\"tooltipPosition\"];\n};\n\nconst ARROW_SIZE = parseSpacing(\"spacing-16\");\n\nconst StyledSvg = styled.svg<StyledSvgProps>`\n position: absolute;\n ${({ $tooltipPosition }) => {\n switch ($tooltipPosition) {\n case \"bottom-right\":\n return css`\n top: -${ARROW_SIZE};\n right: ${parseSpacing(\"spacing-0\")};\n transform: scale(-1, -1);\n `;\n case \"top-right\":\n return css`\n bottom: -${ARROW_SIZE};\n right: ${parseSpacing(\"spacing-0\")};\n transform: scaleX(-1);\n `;\n case \"top-left\":\n return css`\n bottom: -${ARROW_SIZE};\n left: ${parseSpacing(\"spacing-0\")};\n `;\n default:\n return css`\n top: -${ARROW_SIZE};\n left: ${parseSpacing(\"spacing-0\")};\n transform: scaleY(-1);\n `;\n }\n }}\n ${responsiveStyle<StyledSvgProps, OakUiRoleToken>(\n \"fill\",\n (props) => props.$fill,\n parseColor,\n )}\n`;\n\n/**\n * A primitive tooltip to be used as a basis for more opinionated UI components.\n */\nexport const InternalTooltip = ({\n children,\n $background = \"bg-inverted\",\n $color = \"text-inverted\",\n tooltipPosition = \"bottom-left\",\n ...props\n}: InternalTooltipProps) => {\n return (\n <StyledFlex\n role=\"tooltip\"\n data-rac\n $position=\"relative\"\n $background={$background}\n $color={$color}\n $maxWidth={[\"spacing-360\", \"spacing-640\"]}\n {...props}\n >\n {children}\n <StyledSvg\n width={ARROW_SIZE}\n height={ARROW_SIZE}\n $fill={$background}\n $tooltipPosition={tooltipPosition}\n data-testid=\"tooltip-arrow\"\n >\n <path d=\"M0 0H16L8 8L0 16V0Z\" />\n </StyledSvg>\n </StyledFlex>\n );\n};\n","import React, {\n ReactElement,\n ReactNode,\n useLayoutEffect,\n useState,\n} from \"react\";\nimport { createPortal } from \"react-dom\";\n\nimport {\n InternalTooltip,\n InternalTooltipProps,\n} from \"@/components/internal-components/InternalTooltip/InternalTooltip\";\nimport { OakBox, OakBoxProps } from \"@/components/layout-and-structure/OakBox\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\n\nexport type OakTooltipProps = InternalTooltipProps & {\n /**\n * The target element that triggers the tooltip\n */\n children: ReactElement;\n /**\n * The content of the tooltip\n */\n tooltip: ReactNode;\n /**\n * Whether the tooltip is open or not\n */\n isOpen?: boolean;\n /**\n * The DOM container to render the tooltip portal into\n *\n * @default document.body\n */\n domContainer?: Element;\n};\n\n/**\n * A tooltip with oven-ready styling and positioning.\n */\nexport const OakTooltip = ({\n tooltipPosition,\n children,\n tooltip,\n isOpen,\n domContainer,\n ...props\n}: OakTooltipProps) => {\n const [targetElement, setTargetElement] = useState<Element | null>(null);\n const [isIntersecting, setIsIntersecting] = useState(true);\n const [domContainerState, setDomContainerState] = useState<\n Element | undefined\n >(domContainer);\n const isVisible = isOpen && isIntersecting;\n\n /**\n * The overlay is positioned on top of the target element in a portal.\n * It tracks the target's size and position.\n *\n * we use it to position the tooltip relative to the target element without interfering\n * with the page layout\n */\n const [overlayStyle, setOverlayStyle] = useState<{\n top: number;\n left: number;\n width: number;\n height: number;\n }>();\n const squaredCornerRadiusProp: keyof InternalTooltipProps = (() => {\n switch (tooltipPosition) {\n case \"bottom-right\":\n return \"$btrr\";\n case \"top-right\":\n return \"$bbrr\";\n case \"top-left\":\n return \"$bblr\";\n default:\n return \"$btlr\";\n }\n })();\n const borderRadiusProps: Partial<InternalTooltipProps> = {\n $borderRadius: \"border-radius-m\",\n [squaredCornerRadiusProp]: \"border-radius-square\",\n };\n\n useLayoutEffect(() => {\n if (!targetElement) {\n return;\n }\n let ticking = false;\n const updateOverlayStyle = () => {\n if (!ticking) {\n requestAnimationFrame(() => {\n ticking = false;\n const rect = targetElement.getBoundingClientRect();\n\n setOverlayStyle({\n top: rect.top,\n left: rect.left,\n width: rect.width,\n height: rect.height,\n });\n });\n ticking = true;\n }\n };\n\n // We use an intersection observer to detect when the target element is no longer visible\n const intersection = new IntersectionObserver((entries) => {\n setIsIntersecting(entries.every((entry) => entry.isIntersecting));\n });\n intersection.observe(targetElement);\n\n // We use a resize observer to detect when the target element's size changes\n const resize = new ResizeObserver(updateOverlayStyle);\n resize.observe(targetElement);\n\n // Update the overlay position on scroll and resize\n window.addEventListener(\"scroll\", updateOverlayStyle, true);\n window.addEventListener(\"resize\", updateOverlayStyle);\n\n return () => {\n resize.disconnect();\n intersection.disconnect();\n window.removeEventListener(\"scroll\", updateOverlayStyle, true);\n window.removeEventListener(\"resize\", updateOverlayStyle);\n };\n }, [targetElement]);\n\n useLayoutEffect(() => {\n if (domContainerState) {\n return;\n }\n setDomContainerState(document.body);\n }, [domContainerState]);\n\n return (\n <>\n {domContainerState &&\n createPortal(\n isVisible && (\n <OakBox\n $position=\"fixed\"\n style={overlayStyle}\n $pointerEvents=\"none\"\n $zIndex=\"modal-dialog\"\n >\n <OakBox\n $width=\"fit-content\"\n $height=\"fit-content\"\n $position=\"absolute\"\n {...getTooltipPositionProps(tooltipPosition)}\n >\n <InternalTooltip\n $background=\"bg-decorative5-main\"\n $color=\"text-primary\"\n $pv=\"spacing-16\"\n $ph=\"spacing-24\"\n $font=\"heading-light-7\"\n tooltipPosition={tooltipPosition}\n aria-expanded={isVisible}\n {...borderRadiusProps}\n {...props}\n >\n {tooltip}\n </InternalTooltip>\n </OakBox>\n </OakBox>\n ),\n domContainerState,\n )}\n <div\n ref={(domElement) => {\n setTargetElement(domElement?.firstElementChild ?? null);\n }}\n style={{ display: \"contents\" }}\n >\n {children}\n </div>\n </>\n );\n};\n\nfunction getTooltipPositionProps(\n tooltipPosition: OakTooltipProps[\"tooltipPosition\"],\n) {\n const props: Partial<OakBoxProps> = {};\n\n switch (tooltipPosition) {\n case \"top-left\":\n case \"top-right\":\n props.$top = \"spacing-0\";\n props.$transform = `translateY(calc(-100% - ${parseSpacing(\n \"spacing-16\",\n )}))`;\n break;\n default:\n props.$bottom = \"spacing-0\";\n props.$transform = `translateY(calc(100% + ${parseSpacing(\n \"spacing-16\",\n )}))`;\n break;\n }\n\n switch (tooltipPosition) {\n case \"top-left\":\n case \"bottom-left\":\n props.$left = \"spacing-0\";\n break;\n default:\n props.$right = \"spacing-0\";\n break;\n }\n\n return props;\n}\n","import styled from \"styled-components\";\n\nimport { OakBox, OakBoxProps } from \"@/components/layout-and-structure/OakBox\";\nimport { OakDropShadowToken, OakUiRoleToken, parseColor } from \"@/styles\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { responsiveStyle } from \"@/styles/utils/responsiveStyle\";\nimport { parseBorderRadius } from \"@/styles/helpers/parseBorderRadius\";\n\nfunction isJSDOM() {\n return globalThis?.navigator?.userAgent?.includes(\"jsdom/\");\n}\n\nconst activeChildren = `a:active, button:active`;\nconst hoverChildren = `a:hover, button:hover`;\nconst focusVisibleChildren = `\n a${isJSDOM() ? \"\" : \":focus-visible\"},\n button${isJSDOM() ? \"\" : \":focus-visible\"}\n`;\n\nconst focusShadow = `${parseDropShadow(\n \"drop-shadow-centered-lemon\",\n)}, ${parseDropShadow(\"drop-shadow-centered-grey\")}`;\nconst fallbackActiveShadow = `${parseDropShadow(\n \"drop-shadow-lemon\",\n)}, ${parseDropShadow(\"drop-shadow-grey\")}`;\n\nexport type OakFocusIndicatorProps = OakBoxProps & {\n as?: \"div\" | \"li\";\n hoverBackground?: OakUiRoleToken;\n dropShadow?: OakDropShadowToken;\n hoverDropShadow?: OakDropShadowToken;\n activeDropShadow?: OakDropShadowToken;\n};\n\n/**\n * Wrap focusable components `<a/>`/`<button/>` and this will add focus styles then the inner element is focused\n */\nexport const OakFocusIndicator = styled(OakBox)<OakFocusIndicatorProps>`\n ${(props) => {\n if (props.as === \"li\") {\n return `\n list-style: none;\n margin: 0;\n padding: 0;\n `;\n }\n }}\n box-shadow: ${(props) =>\n props.dropShadow ? parseDropShadow(props.dropShadow) : \"none\"};\n\n &:has(${hoverChildren}) {\n ${responsiveStyle(\n \"background-color\",\n (props) => props.hoverBackground,\n parseColor,\n )}\n box-shadow: ${(props) =>\n props.hoverDropShadow ? parseDropShadow(props.hoverDropShadow) : \"none\"};\n }\n\n &:has(${focusVisibleChildren}) {\n ${responsiveStyle(\n \"border-radius\",\n (props) => props.$borderRadius,\n parseBorderRadius,\n )}\n box-shadow: ${focusShadow};\n\n & ${focusVisibleChildren} {\n outline: none;\n }\n }\n\n &:has(${activeChildren}) {\n box-shadow: ${(props) =>\n props.activeDropShadow\n ? parseDropShadow(props.activeDropShadow)\n : fallbackActiveShadow};\n }\n`;\n","import styled from \"styled-components\";\n\nimport { PaddingStyleProps } from \"@/styles/utils/spacingStyle\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport { responsiveStyle } from \"@/styles/utils/responsiveStyle\";\n\nexport type OakAnchorTargetProps = PaddingStyleProps;\n\n/**\n * * AnchorTarget is a component to enable in-page linking to a particular section\n *\n * Styled `span` component.\n *\n * ## Usage\n *\n * Drop AnchorTarget inside a relative or absolulely positioned element without content, passing\n * it a unique 'id'. Then link it elsewhere using `<a href='#${id}' />`.\n *\n * */\nexport const OakAnchorTarget = styled.span<OakAnchorTargetProps>`\n position: absolute;\n top: 0;\n ${responsiveStyle(\"scroll-margin-top\", (props) => props.$pt, parseSpacing)}\n`;\n","import React, { ElementType, forwardRef } from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakAllSpacingToken } from \"@/styles\";\nimport {\n InternalLink,\n InternalLinkProps,\n} from \"@/components/internal-components/InternalLink\";\nimport {\n PolymorphicPropsWithRef,\n PolymorphicRef,\n} from \"@/components/polymorphic\";\n\nexport type OakHoverLinkProps = Pick<\n InternalLinkProps,\n \"iconName\" | \"isTrailingIcon\" | \"isLoading\"\n> & {\n iconWidth?: OakAllSpacingToken;\n iconHeight?: OakAllSpacingToken;\n};\n\ntype OakHoverLinkComponent = <C extends React.ElementType = \"a\">(\n props: {\n /**\n * This colours the link as disabled, but does not disable the link.\n * It should be used when the link is wrapped in an element which prevents cursor interaction, such as a card\n */\n displayDisabled?: boolean;\n } & PolymorphicPropsWithRef<C> &\n OakHoverLinkProps,\n) => React.ReactNode;\n\nconst StyleInternalLink = styled(InternalLink)`\n display: inline-flex;\n align-items: center;\n`;\n\n/**\n * deprecated - use `<OakLink />` instead\n * @deprecated\n *\n * A link with an optional icon where underline is shown on hover.\n *\n * Defaulting to a `HTMLAnchorElement` this component is polymorphic and can be rendered as a button or any other element.\n * A linkDisabled prop is also available to disable the link even when it is not a button.\n *\n */\nexport const OakHoverLink: OakHoverLinkComponent = forwardRef(\n <C extends ElementType = \"a\">(\n props: PolymorphicPropsWithRef<C> & OakHoverLinkProps,\n ref: PolymorphicRef<C>,\n ) => {\n const color = props.displayDisabled ? \"text-disabled\" : \"text-primary\";\n\n return (\n <StyleInternalLink\n color={color}\n hoverColor={color}\n activeColor={color}\n disabledColor={color}\n visitedColor={color}\n textDecoration=\"none\"\n {...props}\n ref={ref}\n />\n );\n },\n);\n","import React from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { generatePageNumbers } from \"./utils\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { OakLI } from \"@/components/typography/OakLI\";\nimport { OakUL } from \"@/components/typography/OakUL\";\nimport { InternalButton } from \"@/components/internal-components/InternalButton\";\nimport { parseColorFilter } from \"@/styles/helpers/parseColorFilter\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { OakLink } from \"@/components/navigation/OakLink\";\nimport { typographyStyle } from \"@/styles/utils/typographyStyle\";\n\nexport type OakPaginationProps = {\n currentPage: number;\n totalPages: number;\n nextHref?: string;\n prevHref?: string;\n paginationHref: string;\n pageName: string;\n onPageChange: (page: number) => void;\n};\n\ntype OakPageNumberProps = {\n currentPage: number;\n pageNumber: number;\n href: string;\n onClick?: (event: React.MouseEvent) => void;\n pageName: string;\n};\n\nconst StyledChevronButton = styled(OakLink)<{ disabledColor: string }>`\n display: inline-block;\n ${(props) => css`\n &:disabled {\n color: ${props.disabledColor};\n cursor: pointer;\n }\n `}\n`;\n\nconst StyledIcon = styled(OakIcon)<{ disabled: boolean }>`\n ${(props) => {\n if (props.disabled) {\n return css`\n filter: ${parseColorFilter(\"icon-disabled\")};\n `;\n }\n }}\n`;\n\nconst StyledNumberButton = styled(OakLink)<{ selected: boolean }>`\n height: 30px;\n width: 30px;\n border-radius: 100px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-decoration: none;\n ${typographyStyle}\n color: ${parseColor(\"text-primary\")};\n\n ${(props) => css`\n background-color: ${props.selected\n ? parseColor(\"icon-primary\")\n : parseColor(\"icon-inverted\")};\n `};\n\n ${(props) =>\n props.selected &&\n css`\n color: ${parseColor(\"text-inverted\")};\n &:visited {\n color: ${parseColor(\"text-inverted\")};\n }\n `}\n\n &:hover {\n text-decoration: underline;\n ${(props) =>\n props.selected &&\n css`\n color: ${parseColor(\"text-inverted\")};\n @media (hover: hover) {\n &:hover:not(:disabled) {\n color: ${parseColor(\"text-inverted\")};\n }\n `}\n }\n`;\n\nconst StyledEllipsis = styled(InternalButton)`\n &:disabled {\n cursor: pointer;\n }\n`;\n\nconst OakPageNumber = ({\n currentPage,\n pageNumber,\n onClick,\n href,\n pageName,\n}: OakPageNumberProps) => {\n const isActive = currentPage === pageNumber;\n return (\n <StyledNumberButton\n data-testid=\"page-number-component\"\n aria-label={`${pageName} page ${pageNumber}`}\n aria-current={isActive ? \"page\" : false}\n $font={\"heading-7\"}\n onClick={onClick}\n selected={isActive}\n href={href}\n >\n {pageNumber}\n </StyledNumberButton>\n );\n};\n\nconst OakEllipsis = () => {\n return (\n <StyledEllipsis\n $color=\"text-primary\"\n $font={\"heading-7\"}\n $background=\"bg-primary\"\n aria-label=\"Hidden page numbers\"\n disabled\n >\n ...\n </StyledEllipsis>\n );\n};\n\nexport const OakPagination = ({\n totalPages,\n nextHref,\n prevHref,\n paginationHref,\n pageName,\n onPageChange,\n currentPage,\n}: OakPaginationProps) => {\n const pages = generatePageNumbers(currentPage, totalPages);\n\n const isFirstPage = currentPage <= 1;\n const isLastPage = currentPage >= totalPages;\n\n const handleNumberClick = (num: number, event: React.MouseEvent) => {\n event.preventDefault();\n onPageChange(num);\n };\n\n const handleChevronClick = (\n direction: \"backwards\" | \"forwards\",\n event: React.UIEvent,\n ) => {\n event.preventDefault();\n const newPage = currentPage + (direction === \"backwards\" ? -1 : 1);\n onPageChange(newPage);\n };\n\n if (currentPage === 1 && totalPages < 2) {\n return null;\n }\n return (\n <nav aria-label=\"pagination\" data-testid=\"pagination\">\n <OakFlex\n $alignItems={\"center\"}\n $justifyContent={\"center\"}\n $width={\"100%\"}\n $gap={[\"spacing-8\", \"spacing-16\", \"spacing-16\"]}\n >\n <StyledChevronButton\n element={isFirstPage ? \"button\" : \"a\"}\n rel=\"prev\"\n href={prevHref}\n data-testid=\"backwards-button\"\n onClick={(\n e: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>,\n ) => {\n e.preventDefault();\n handleChevronClick(\"backwards\", e);\n }}\n onKeyDown={(\n e: React.KeyboardEvent<HTMLButtonElement | HTMLAnchorElement>,\n ) => {\n if (e.key === \"Enter\") {\n handleChevronClick(\"backwards\", e);\n }\n }}\n tabIndex={isFirstPage ? -1 : 0}\n aria-disabled={isFirstPage}\n disabled={isFirstPage}\n aria-label={isFirstPage ? \"No previous pages\" : \"Go to previous page\"}\n >\n <StyledIcon disabled={isFirstPage} iconName=\"chevron-left\" />\n </StyledChevronButton>\n <OakUL $reset $display={\"flex\"}>\n {pages.map((page, i) => {\n if (typeof page === \"number\") {\n return (\n <OakLI\n key={`${page} ${i}`}\n $mh={[\"spacing-4\", \"spacing-8\", \"spacing-8\"]}\n >\n <OakPageNumber\n pageName={pageName}\n key={page}\n pageNumber={page + 1}\n currentPage={currentPage}\n href={`${paginationHref}?page=${page + 1}`}\n onClick={(e: React.MouseEvent) =>\n handleNumberClick(page + 1, e)\n }\n />\n </OakLI>\n );\n } else {\n return (\n <OakLI\n $mh={[\"spacing-4\", \"spacing-8\", \"spacing-8\"]}\n key={`${page} ${i}`}\n >\n <OakFlex $height={\"100%\"} $alignSelf={\"center\"}>\n <OakEllipsis />\n </OakFlex>\n </OakLI>\n );\n }\n })}\n </OakUL>\n <StyledChevronButton\n element={isLastPage ? \"button\" : \"a\"}\n rel=\"next\"\n tabIndex={isLastPage ? -1 : 0}\n data-testid=\"forwards-button\"\n href={nextHref}\n onClick={(\n e: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>,\n ) => {\n handleChevronClick(\"forwards\", e);\n }}\n onKeyDown={(\n e: React.KeyboardEvent<HTMLButtonElement | HTMLAnchorElement>,\n ) => {\n if (e.key === \"Enter\") {\n handleChevronClick(\"forwards\", e);\n }\n }}\n aria-disabled={isLastPage}\n disabled={isLastPage}\n aria-label={isLastPage ? \"No further pages\" : \"Go to next page\"}\n >\n <StyledIcon disabled={isLastPage} iconName=\"chevron-right\" />\n </StyledChevronButton>\n </OakFlex>\n </nav>\n );\n};\n\n/**\n *\n * Add the description of the component here and it will appear on the story for the component\n * The following callbacks are available for tracking focus events:\n *\n * Pagination component for navigating through pages\n *\n * @param router - Next.js router object\n * @param currentPage - Current page number\n * @param totalPages - Total number of pages\n * @param nextHref - URL for the next page\n * @param prevHref - URL for the previous page\n * @param paginationHref - Base URL for the pagination\n * @param pageName - Name of the page\n * @param onPageChange - Callback function for iterating through pages\n *\n */\n","import type { UrlObject } from \"url\";\n\nimport React, { ReactNode } from \"react\";\nimport Link from \"next/link\";\nimport styled from \"styled-components\";\n\nimport {\n OakPrimaryButton,\n OakPrimaryButtonProps,\n} from \"@/components/buttons/OakPrimaryButton\";\nimport {\n OakPrimaryInvertedButton,\n OakPrimaryInvertedButtonProps,\n} from \"@/components/buttons/OakPrimaryInvertedButton\";\n\ntype Url = string | UrlObject;\n\nexport type OakPrimaryNavItemProps = {\n href: Url;\n isCurrent?: boolean;\n shallow?: boolean;\n children: ReactNode;\n} & OakPrimaryButtonProps &\n OakPrimaryInvertedButtonProps;\n\nconst OakPrimaryButtonWithoutPointerEvents = styled(OakPrimaryButton)`\n pointer-events: none;\n`;\n\n/**\n *\n * A specific implementation of OakPrimaryButton and OakPrimaryInvertedButton rendering\n * relevant view depending on isCurrent prop\n *\n * ⚠️ To be deprecated\n * @deprecated\n */\nexport const OakPrimaryNavItem = ({\n href,\n isCurrent = false,\n shallow = true,\n children,\n}: OakPrimaryNavItemProps) => {\n return isCurrent ? (\n <OakPrimaryButtonWithoutPointerEvents\n element={\"span\"}\n aria-current={\"page\"}\n >\n {children}\n </OakPrimaryButtonWithoutPointerEvents>\n ) : (\n <OakPrimaryInvertedButton\n element={Link}\n href={href}\n shallow={shallow}\n isTrailingIcon={true}\n >\n {children}\n </OakPrimaryInvertedButton>\n );\n};\n","import React, { ElementType, forwardRef } from \"react\";\nimport styled from \"styled-components\";\n\nimport {\n InternalLink,\n InternalLinkProps,\n} from \"@/components/internal-components/InternalLink\";\nimport {\n PolymorphicPropsWithRef,\n PolymorphicRef,\n} from \"@/components/polymorphic\";\n\nexport type OakSecondaryLinkProps = {\n /*\n * This colours the link as disabled, but does not disable the link.\n * It should be used when the link is wrapped in an element which prevents cursor interaction, such as a card\n */\n displayDisabled?: boolean;\n} & Pick<InternalLinkProps, \"iconName\" | \"isTrailingIcon\" | \"isLoading\">;\n\ntype OakLinkComponent = <C extends React.ElementType = \"a\">(\n props: PolymorphicPropsWithRef<C> & OakSecondaryLinkProps,\n) => React.ReactNode;\n\n// we do this to avoid type errors when spreading props\nconst StyledInternalLink = styled(InternalLink)``;\n\n/**\n * deprecated - use `<OakLink variant=\"secondary\"/>` instead\n * @deprecated\n *\n * A black link with an optional icon and loading state.\n *\n * Defaulting to a `HTMLAnchorElement` this component is polymorphic and can be rendered as a button or any other element.\n *\n */\nexport const OakSecondaryLink: OakLinkComponent = forwardRef(\n <C extends ElementType = \"a\">(\n props: PolymorphicPropsWithRef<C> & OakSecondaryLinkProps,\n ref: PolymorphicRef<C>,\n ) => {\n const { displayDisabled, ...restProps } = props;\n const color = displayDisabled ? \"text-disabled\" : \"text-primary\";\n const visitedColor = displayDisabled ? \"text-disabled\" : \"text-primary\";\n\n return (\n <StyledInternalLink\n color={color}\n hoverColor={color}\n activeColor={color}\n disabledColor=\"text-disabled\"\n visitedColor={visitedColor}\n textDecoration=\"none\"\n {...restProps}\n ref={ref}\n />\n );\n },\n);\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport Link from \"next/link\";\n\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseBorderRadius } from \"@/styles/helpers/parseBorderRadius\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { ResponsiveValues } from \"@/styles/utils/responsiveStyle\";\nimport { InternalButton } from \"@/components/internal-components/InternalButton\";\nimport { OakFlex } from \"@/components/layout-and-structure\";\nimport { OakUiRoleToken } from \"@/styles\";\nimport { OakLI, OakUL } from \"@/components/typography\";\n\ntype Tab<T> = {\n label: T;\n} & ({ type: \"button\" } | { type: \"link\"; href: string });\n\nexport type OakTabsProps<T extends string> = {\n sizeVariant: ResponsiveValues<\"default\" | \"compact\">;\n colorVariant: \"black\" | \"white\";\n /**\n * A list of the tabs to be rendered.\n * Accepts a `label` and a `type` property for each tab. If the type is `link` then a `href` is required.\n */\n tabs: Array<Tab<T>>;\n activeTab: T;\n /**\n * Optional callback fn for the tab buttons.\n *\n */\n onTabClick?: (tab: T, event: Event) => void;\n};\n\nconst StyledFocusOutline = styled(OakFlex)``;\n\nconst StyledTabButton = styled(InternalButton)<{\n $hoverColor: OakUiRoleToken;\n $hoverBackground: OakUiRoleToken;\n}>`\n width: 100%;\n height: 100%;\n border-radius: ${parseBorderRadius(\"border-radius-circle\")};\n &:hover {\n color: ${(props) => parseColor(props.$hoverColor)};\n background: ${(props) => parseColor(props.$hoverBackground)};\n }\n &:focus-visible:not(&:active) {\n box-shadow: ${parseDropShadow(\"drop-shadow-centered-grey\")};\n ${StyledFocusOutline} {\n box-shadow: ${parseDropShadow(\"drop-shadow-centered-lemon\")};\n }\n }\n`;\n\nexport function OakTabs<T extends string>(props: Readonly<OakTabsProps<T>>) {\n const { colorVariant, sizeVariant, tabs, activeTab, onTabClick } = props;\n const backgroundColor =\n colorVariant === \"black\" ? \"bg-inverted\" : \"bg-primary\";\n const textColor = colorVariant === \"black\" ? \"text-inverted\" : \"text-primary\";\n const hoverBackground =\n colorVariant === \"black\" ? \"bg-btn-primary-hover\" : \"bg-neutral-stronger\";\n const hoverText = colorVariant === \"black\" ? \"text-inverted\" : \"text-primary\";\n\n return (\n <OakUL\n $display={\"flex\"}\n $justifyContent={\"space-around\"}\n $height={sizeVariant === \"compact\" ? \"spacing-40\" : \"spacing-56\"}\n $background={backgroundColor}\n $borderRadius={\"border-radius-circle\"}\n $gap={\"spacing-8\"}\n $pa={\"spacing-8\"}\n $alignItems={\"center\"}\n $font={sizeVariant === \"compact\" ? \"body-3\" : \"heading-light-7\"}\n $ba={\"border-solid-s\"}\n $borderColor={\n colorVariant === \"white\" ? \"border-neutral-lighter\" : backgroundColor\n }\n >\n {tabs.map((tab) => {\n const { label, type } = tab;\n const isSelected = activeTab === label;\n\n return (\n <OakLI\n $listStyle={\"none\"}\n $width={\"100%\"}\n $height={\"100%\"}\n $display={\"flex\"}\n key={label}\n >\n <StyledTabButton\n element={type === \"link\" ? Link : undefined}\n href={type === \"link\" ? tab.href : undefined}\n aria-current={type === \"link\" && isSelected ? \"page\" : undefined}\n $background={isSelected ? \"bg-decorative1-main\" : backgroundColor}\n $color={isSelected ? \"text-primary\" : textColor}\n $hoverColor={isSelected ? \"text-primary\" : hoverText}\n $hoverBackground={\n isSelected ? \"bg-decorative1-main\" : hoverBackground\n }\n $ba=\"border-solid-s\"\n $borderColor={\n isSelected ? \"border-decorative1-stronger\" : backgroundColor\n }\n onClick={(event: Event) => {\n if (onTabClick) {\n onTabClick(label, event);\n }\n }}\n >\n <StyledFocusOutline\n $width={\"100%\"}\n $height={\"100%\"}\n $borderRadius={\"border-radius-circle\"}\n $pa={\"spacing-4\"}\n $alignItems={\"center\"}\n $justifyContent={\"center\"}\n $whiteSpace={\"nowrap\"}\n >\n {label}\n </StyledFocusOutline>\n </StyledTabButton>\n </OakLI>\n );\n })}\n </OakUL>\n );\n}\n","import React from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport {\n OakFlex,\n OakFlexProps,\n} from \"@/components/layout-and-structure/OakFlex\";\nimport { OakFocusIndicator } from \"@/components/messaging-and-feedback/OakFocusIndicator\";\nimport { OakHeading, OakHeadingTag } from \"@/components/typography/OakHeading\";\nimport { OakImage } from \"@/components/images-and-icons/OakImage\";\nimport { OakP } from \"@/components/typography/OakP\";\nimport { OakIconName, OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { OakTagFunctional } from \"@/components/messaging-and-feedback/OakTagFunctional\";\nimport {\n OakCombinedSpacingToken,\n OakUiRoleToken,\n parseSpacing,\n} from \"@/styles\";\nimport { sizeStyle, SizeStyleProps } from \"@/styles/utils/sizeStyle\";\nimport { flexStyle } from \"@/styles/utils/flexStyle\";\nimport { colorStyle, ColorStyleProps } from \"@/styles/utils/colorStyle\";\nimport { borderStyle, BorderStyleProps } from \"@/styles/utils/borderStyle\";\nimport {\n getBreakpoint,\n ResponsiveValues,\n} from \"@/styles/utils/responsiveStyle\";\n\nexport type OakCardProps = {\n as?: \"div\" | \"li\";\n /**\n * The heading text of the card.\n */\n heading: string;\n /**\n * The heading level of the card.\n */\n headingLevel?: OakHeadingTag;\n /**\n * The URL that the card links to.\n */\n href: string;\n /**\n * The orientation of the card.\n */\n cardOrientation?: ResponsiveValues<\"row\" | \"column\">;\n /**\n * The background colour behind the image.\n */\n imageBackgroundColor?: OakUiRoleToken;\n /**\n * The width of the card.\n */\n cardWidth?: OakCombinedSpacingToken;\n /**\n * The source URL for the image to be displayed in the card.\n */\n imageSrc?: string;\n /**\n * The alternative text for the image, used for accessibility.\n */\n imageAlt?: string;\n /**\n * The aspect ratio of the image.\n */\n aspectRatio?: \"1/1\" | \"4/3\";\n /**\n * The subcopy text of the card.\n */\n subCopy?: string;\n /**\n * The color of the subcopy text.\n */\n subCopyColor?: OakUiRoleToken;\n /**\n * The name of a tag to be displayed in the card.\n */\n tagName?: string;\n /**\n * The background colour of the tag.\n */\n tagBackground?: OakUiRoleToken;\n /**\n * The text to be displayed next to the link icon in the card.\n */\n linkText?: string;\n /**\n * The name of the icon to be displayed next to the link text in the card.\n */\n linkIconName?: OakIconName;\n /**\n * The background colour of the card on hover.\n */\n hoverBackground?: OakUiRoleToken;\n};\n\nconst CardContent = styled(OakFlex)``;\ntype StyledImageProps = SizeStyleProps & ColorStyleProps & BorderStyleProps;\n\nconst StyledOakImage = styled(OakImage)<StyledImageProps>`\n ${sizeStyle}\n ${colorStyle}\n ${borderStyle}\n\n img {\n border-radius: inherit;\n object-fit: cover;\n }\n`;\n\nconst rowStyles = css`\n flex-direction: row;\n\n ${StyledOakImage} {\n height: ${parseSpacing(\"spacing-240\")};\n }\n\n ${CardContent} {\n height: auto;\n padding-top: ${parseSpacing(\"spacing-24\")};\n padding-bottom: ${parseSpacing(\"spacing-24\")};\n }\n`;\n\nconst columnStyles = css`\n flex-direction: column;\n\n ${StyledOakImage} {\n height: auto;\n }\n\n ${CardContent} {\n height: 100%;\n padding-top: ${parseSpacing(\"spacing-0\")};\n padding-bottom: ${parseSpacing(\"spacing-0\")};\n }\n`;\n\nconst getCardOrientationStyles = (orientation?: \"row\" | \"column\" | null) =>\n orientation === \"row\" ? rowStyles : columnStyles;\n\nconst getResponsiveCardOrientationStyles = (\n cardOrientation: ResponsiveValues<\"row\" | \"column\">,\n) => {\n if (!Array.isArray(cardOrientation)) {\n return getCardOrientationStyles(cardOrientation);\n }\n\n const [smallOrientation, largeOrientation] = cardOrientation;\n\n return css`\n ${getCardOrientationStyles(smallOrientation)};\n\n @media (min-width: ${getBreakpoint(\"small\")}px) {\n ${getCardOrientationStyles(largeOrientation)}\n }\n `;\n};\n\ntype StyledFlexProps = OakFlexProps & {\n $cardOrientation: ResponsiveValues<\"row\" | \"column\">;\n};\nconst StyledOakFlex = styled(OakFlex)<StyledFlexProps>`\n ${flexStyle}\n\n ${({ $cardOrientation }) =>\n getResponsiveCardOrientationStyles($cardOrientation)}\n\n &:hover {\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n span {\n text-decoration: underline;\n }\n\n span {\n text-decoration-thickness: 18%;\n }\n }\n`;\n\n/**\n * A highly customisable card component that displays a heading and takes a href at minimum.\n *\n * It can also display an image, subcopy, a tag, and a link with an icon.\n *\n * The card can be oriented in a row or column layout and its width can be adjusted using spacing tokens.\n * The image aspect ratio can be set to either 1:1 or 4:3.\n */\nexport const OakCard = ({\n as = \"div\",\n heading,\n headingLevel = \"h3\",\n href,\n cardOrientation = \"column\",\n cardWidth,\n imageSrc,\n imageAlt,\n aspectRatio = \"1/1\",\n subCopy,\n subCopyColor = \"text-primary\",\n tagName,\n tagBackground = \"bg-decorative3-very-subdued\",\n linkText,\n linkIconName = \"arrow-right\",\n hoverBackground = \"bg-btn-secondary-hover\",\n imageBackgroundColor = \"bg-neutral\",\n}: OakCardProps) => {\n return (\n <OakFocusIndicator\n as={as}\n $background={\"bg-primary\"}\n hoverBackground={hoverBackground}\n $height={\"100%\"}\n $width={cardWidth}\n $borderRadius={\"border-radius-m2\"}\n >\n <StyledOakFlex\n as=\"a\"\n href={href}\n $cardOrientation={cardOrientation}\n $height={\"100%\"}\n $pa={\"spacing-16\"}\n $gap={\"spacing-16\"}\n >\n {imageSrc && (\n <StyledOakImage\n src={imageSrc || \"\"}\n alt={imageAlt || \"\"}\n $width={\"auto\"}\n $aspectRatio={aspectRatio}\n $background={imageBackgroundColor}\n $borderRadius={\"border-radius-m2\"}\n />\n )}\n <CardContent\n $flexDirection=\"column\"\n $justifyContent={\"space-between\"}\n $gap=\"spacing-16\"\n >\n <OakFlex $flexDirection=\"column\" $gap=\"spacing-16\">\n <OakHeading tag={headingLevel} $font={\"heading-6\"}>\n {heading}\n </OakHeading>\n {subCopy && <OakP $color={subCopyColor}>{subCopy}</OakP>}\n </OakFlex>\n <OakFlex\n $flexDirection=\"row\"\n $justifyContent={tagName ? \"space-between\" : \"flex-end\"}\n $gap=\"spacing-16\"\n >\n {tagName && (\n <OakTagFunctional label={tagName} $background={tagBackground} />\n )}\n {linkText && (\n <OakFlex $alignItems={\"center\"}>\n <OakSpan $font={\"heading-light-7\"}>{linkText}</OakSpan>\n <OakIcon\n iconName={linkIconName}\n alt=\"\"\n $width=\"spacing-24\"\n $height=\"spacing-24\"\n />\n </OakFlex>\n )}\n </OakFlex>\n </CardContent>\n </StyledOakFlex>\n </OakFocusIndicator>\n );\n};\n","import React, { ReactNode } from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakIcon } from \"@/components/images-and-icons\";\nimport { parseFontSize, parseSpacing } from \"@/styles\";\nimport { OakBox, OakBoxProps } from \"@/components/layout-and-structure\";\nimport { OakLink } from \"@/components/navigation/OakLink\";\n\nexport type OakBreadcrumb = {\n text: string;\n href: string;\n};\n\n// Used for the last page\nexport type OakBreadcrumbWithoutHref = {\n text: string;\n};\n\nexport type OakBreadcrumbsProps = {\n /**\n * The list of breadcrumbs to display in the UI\n */\n breadcrumbs: [...OakBreadcrumb[], OakBreadcrumbWithoutHref];\n};\n\nconst BreadcrumbsUl = styled(\"ul\")`\n margin: ${parseSpacing(\"spacing-0\")};\n padding: ${parseSpacing(\"spacing-0\")};\n list-style: none;\n display: flex;\n gap: ${parseSpacing(\"spacing-8\")};\n align-items: center;\n font-size: ${parseFontSize(\"body-2\")};\n font-weight: ${parseFontSize(\"body-2\")};\n flex-wrap: wrap;\n`;\n\nconst BreadcrumbsLi = styled(\"li\")`\n display: flex;\n gap: ${parseSpacing(\"spacing-8\")};\n align-items: center;\n flex: 0;\n max-width: 100%;\n`;\n\nfunction OakBreadcrumbText(props: OakBoxProps & { children: ReactNode }) {\n return (\n <OakBox\n $whiteSpace={\"nowrap\"}\n $textOverflow={\"ellipsis\"}\n $minWidth={\"spacing-0\"}\n $overflow={\"hidden\"}\n {...props}\n >\n {props.children}\n </OakBox>\n );\n}\n\n/**\n * The breadcrumb component helps users to understand where they are within a website’s structure and move between levels.\n */\nexport const OakBreadcrumbs = ({\n breadcrumbs,\n}: Readonly<OakBreadcrumbsProps>) => {\n return (\n <OakBox as=\"nav\" aria-label=\"Breadcrumb\" $color={\"text-primary\"}>\n <BreadcrumbsUl>\n {breadcrumbs.map((breadcrumb, breadcrumbIndex) => {\n // Last element doesn't have a \"href\" because it's the current page (typesafe)\n const isLast = !(\"href\" in breadcrumb);\n return (\n <BreadcrumbsLi key={`${breadcrumb.text}`}>\n {breadcrumbIndex > 0 && (\n <OakIcon\n $height={\"spacing-20\"}\n $width={\"spacing-20\"}\n iconName=\"chevron-right\"\n />\n )}\n {isLast && (\n <OakBreadcrumbText aria-current=\"page\">\n {breadcrumb.text}\n </OakBreadcrumbText>\n )}\n {!isLast && (\n <OakLink\n variant=\"secondary\"\n href={breadcrumb.href}\n style={{ overflow: \"hidden\" }}\n >\n <OakBreadcrumbText>{breadcrumb.text}</OakBreadcrumbText>\n </OakLink>\n )}\n </BreadcrumbsLi>\n );\n })}\n </BreadcrumbsUl>\n </OakBox>\n );\n};\n","import React, { ReactNode } from \"react\";\nimport styled from \"styled-components\";\n\nimport {\n OakBox,\n OakBoxProps,\n oakBoxCss,\n} from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { OakP } from \"@/components/typography/OakP\";\nimport {\n InternalAccordionButton,\n InternalAccordionContent,\n} from \"@/components/internal-components/InternalAccordion\";\nimport useAccordionContext from \"@/components/internal-components/InternalAccordion/useAccordionContext\";\nimport InternalAccordionProvider from \"@/components/internal-components/InternalAccordion/InternalAccordionProvider\";\nimport { FlexStyleProps, flexStyle } from \"@/styles/utils/flexStyle\";\nimport { ColorStyleProps } from \"@/styles/utils/colorStyle\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { parseColorFilter } from \"@/styles/helpers/parseColorFilter\";\nimport { OakCheckBox } from \"@/components/form-elements/OakCheckBox\";\n\nexport type OakDownloadsAccordionProps = {\n /**\n * Text to render in the subheading\n */\n downloadsText: string;\n /**\n * Event handler for select all checkbox\n */\n handleToggleSelectAll: () => void;\n /**\n * State of select all checkbox\n */\n selectAllChecked: boolean;\n /**\n * The content of the accordion\n */\n children: ReactNode;\n /**\n * The id of the accordion\n */\n id: string;\n /**\n * Whether the accordion starts in the open state, defaults to false\n */\n initialOpen?: boolean;\n} & FlexStyleProps &\n OakBoxProps &\n ColorStyleProps;\n\nconst StyledAccordionButton = styled(InternalAccordionButton)<FlexStyleProps>`\n ${flexStyle}\n ${oakBoxCss}\n min-width: 0;\n &:hover {\n .chevron-icon {\n filter: ${parseColorFilter(\"icon-subdued\")};\n }\n }\n &:focus-visible {\n .focus-outline {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n }\n`;\n\n/**\n * Internal accordion component that handles the accordion logic\n */\nconst Accordion = ({\n children,\n id,\n selectAllChecked,\n downloadsText,\n handleToggleSelectAll,\n ...styleProps\n}: OakDownloadsAccordionProps) => {\n const { isOpen } = useAccordionContext();\n\n return (\n <OakFlex\n $bt={\"border-solid-s\"}\n $bb={isOpen ? \"border-solid-none\" : \"border-solid-s\"}\n $borderColor={\"border-neutral-lighter\"}\n $pv={\"spacing-12\"}\n $flexDirection={\"column\"}\n $width={\"100%\"}\n {...styleProps}\n >\n <OakFlex $alignItems={\"center\"} $width={\"100%\"}>\n <OakFlex $alignItems={\"center\"} $width={\"100%\"} $gap={\"spacing-16\"}>\n <OakBox\n id=\"select-all-wrapper\"\n $pa={\"spacing-8\"}\n onClick={handleToggleSelectAll}\n >\n <OakCheckBox\n onChange={() => undefined}\n checked={selectAllChecked}\n id=\"select-all\"\n name=\"select-all\"\n value={\"\"}\n aria-labelledby=\"downloads-accordion-heading\"\n />\n </OakBox>\n <StyledAccordionButton\n $justifyContent={\"space-between\"}\n $flexGrow={1}\n id={id}\n $alignItems={\"center\"}\n $mr={\"spacing-12\"}\n >\n <OakFlex\n $justifyContent={\"center\"}\n $alignItems={\"center\"}\n $gap={\"spacing-12\"}\n >\n <OakFlex\n $flexDirection={\"column\"}\n $justifyContent={\"center\"}\n $alignItems={\"start\"}\n >\n <OakHeading\n $textAlign={\"left\"}\n id=\"downloads-accordion-heading\"\n $color={\"text-primary\"}\n $font={\"heading-6\"}\n $mr={\"spacing-16\"}\n tag=\"h2\"\n >\n {selectAllChecked\n ? \"All resources selected\"\n : \"Select all resources\"}\n </OakHeading>\n <OakBox $pr={\"spacing-12\"}>\n <OakP $textAlign={\"left\"}>{downloadsText}</OakP>\n </OakBox>\n </OakFlex>\n </OakFlex>\n <OakBox\n className=\"focus-outline\"\n $borderRadius={\"border-radius-s\"}\n $pa={\"spacing-8\"}\n >\n <OakIcon\n className=\"chevron-icon\"\n iconName=\"chevron-down\"\n $width=\"spacing-32\"\n $height=\"spacing-32\"\n alt=\"An arrow to indicate whether the item is open or closed\"\n style={{\n transform: isOpen ? \"rotate(180deg)\" : \"none\",\n transition: \"all 0.3s ease 0s\",\n }}\n />\n </OakBox>\n </StyledAccordionButton>\n </OakFlex>\n </OakFlex>\n {/* Accordion content */}\n <OakBox $position={\"relative\"} $overflow={\"auto\"}>\n <InternalAccordionContent $pt={\"spacing-20\"} aria-labelledby={id}>\n {children}\n </InternalAccordionContent>\n </OakBox>\n </OakFlex>\n );\n};\n\n/**\n * OakDownloadsAccordion\n *\n */\nexport const OakDownloadsAccordion = ({\n initialOpen = false,\n ...props\n}: OakDownloadsAccordionProps) => {\n return (\n <InternalAccordionProvider isInitialOpen={initialOpen}>\n <Accordion {...props} />\n </InternalAccordionProvider>\n );\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { DisplayStyleProps } from \"@/styles/utils/displayStyle\";\nimport { sizeStyle } from \"@/styles/utils/sizeStyle\";\n\nconst StyledSvg = styled.svg`\n ${sizeStyle}\n`;\n\nexport const SurfingStudentSVG = (props: DisplayStyleProps) => {\n return (\n <OakBox {...props}>\n <StyledSvg\n $width={[\"spacing-100\", \"spacing-180\", \"spacing-240\"]}\n viewBox=\"0 0 251 198\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M2.953 129.656v-.231l1.136-.23c-.161-.595-.36-.749-.682-1.152H3.18v-.461l-.454-.23c-.398-.596-.634-1.152-.909-1.844l.682-.46c.35-.25 1.145.076 2.044 0 .445-.039.454-.231.454-.231H7.95c-.18-.682-.53-.912-.908-1.382h-.228v-.461h-.227v-.461l-.454-.23v-.461h-.227c-.312-.509.095-.327-.454-.691.094-.72.047-.586.454-.922v-.23c.378-.212.833.307.908.23v-.691c.398-.547 1.051-.231 1.818-.461 1.296-.384 4.704-.355 6.587-.922l4.089-.23v-.23l.227.23c.322-.029-.085-.154.227-.23h2.271v-.231l3.862-.23v-.231l1.136.231v-.231l2.726-.23v-.23h2.725v-.231h2.045v-.23h1.59v-.231h2.271v-.23h3.407v-.23h1.59v-.231h1.363v-.23h2.272v-.231h2.499v-.23l.681.23v-.23h.909v-.23l3.18-.231c.056.01.066.317.454.231v-.231h.909v-.23h1.817v-.231l.227.231h.227v-.231h1.817v-.23h1.817v-.23h2.5c1.74-.548 4.381-.404 6.132-.922l4.316-.23v-.231h2.499c1.732-.537 4.363-.403 6.133-.921h2.725v-.231h.909v-.23l4.089-.231v-.23h2.271v-.23h2.045v-.231H97.9v-.23h1.363v-.231h2.272v-.23c.511-.154 1.59.23 1.59.23v-.23h.908v-.23h2.272v-.231h.227v.231c.502.019.454-.231.454-.231h1.363v-.23h1.363v-.231h.227l.227-1.382h.228v-.922h.227v-.46h.227l.227-1.383h.227v-1.152h.227v-.691h.227v-.691h.228v-.691h.227v-.692h.227v-.46h.227v-.692h.227v-.46h.227v-.922h.228v-.691h.227v-.691h.227v-1.152h.227v-.692h.227v-.69h.227l.227-1.844h.228v-.46h.227v-.692h.227v-.691h.227v-.691h.227l.682-3.226h.227v-.46h.227v-1.153h.227v-.46h.227v-.692h.227v-.921h.228v-.461h.227l.227-.922h.227l.227-2.073h.227v-.461h.227v-.692h.228v-.69h.227v-.692h.227v-.691h.227l.227-1.843h.227v-.461h.227v-.691h.228c.113-.692-.379-.49-.455-.692V69.06h.227l-.227-2.304c0-.71.521-1.978.227-2.995h-.227v-.922h-.227v-.691h-.227v-.922h-.227v-1.612h-.227v-1.152h-.227v-1.383h-.228v-1.613h-.227v-2.304h-.227v-.921h-.227v-1.843c0-2.583.407-4.618.454-6.912l-2.498-.922v-.23h-.455v-.23h-.908v-.231l-.909-.23v-.231h-.681v-.23l-.909-.23v-.231h-.681v-.23h-.455v-.231h-.454l-.227-.46-1.363-.231v-.23h-.454v-.231l-.909-.23v-.23q-.681-.117-1.363-.231v-.23l-.908-.231v-.23h-.682v-.23h-.454v-.231l-.909-.23v-.231l-1.363-.23v-.23l-1.363-.462v-.23h-.454v-.23h-.681v-.23h-.455v-.231l-1.362-.23V34.5h-.455v-.23h-.681l-.227-.461h-.455v-.23h-.454v-.231h-.681v-.23h-.682v-.23l-.909-.231v-.23l-1.362-.231v-.23l-1.363-.461v-.23h-1.363v-.231h-.909v-.23c-.378-.077-.397.22-.454.23H85.18v.23h-1.363v-.23l-1.136-.23v-.461h-.227v-.23h.227V28.97h.455v-.46c.577-.145 1.315-.71 1.59-1.152.728.086.662.21 1.135.46l-.227 1.152c-.53.135-.852.327-1.136.692h-.227v.23c.862-.048 1.439-.279 2.045-.46h2.953c.028-.932.094-1.46.454-2.074h.227l.227-.692c-.322-.134-.51-.076-.908-.23v-.23h-3.18v-.23H84.5v-.231h-1.136v-.23l-1.59-.231v-.23l-1.59-.23v-.231l-2.045-.692c.133-.355.18-.374.228-.921.255-.202.037.029.227-.23 1.116.067 1.296.431 2.044.69h1.136v.231h.681v.23h.682v.23h.908v.231h1.136v.23l4.77.231v.23l.909.23v.231h.454l.227.461.909.23v.23l4.997.692v.23h.454v.23l2.726.462v.23h.454l.228.46 1.135.231v.23h.455v.231l.454-.23v.23l3.634.691v.23h.909v.231l2.726.23v.23l2.271.231v.23l1.817.231v.23h.682v.23h.908v.231h.909v.23h1.136v.231h.681v.23h1.136v.23h1.136v.231h.454v.23l1.817-.23c.123-.048 1.297-.825 1.363-.921.36-.567-.218-.423.454-.922v-.691l-.681-.23-.227-.692-.909-.69v-.462h-.227v-.69h-.227v-.692h-.227v-.46h-.227v-.922h-.228c-.321-1.085.019-4.301.228-5.07v-2.073h.227v-.691h.227l.227-.922h.227v-.691h.227v-.691l.455-.23v-.461l.454-.23v-.462l.681-.46v-.692l.455-.23.227-.922.454-.23v-.46h.227l.227-.692.455-.23v-.461l.454-.461h.454l.227-.46h.455l.227-.462h.454v-.23l.909-.23v-.23h.908v-.231h.682v-.23h1.817v-.231h4.089v.23h3.634v-.23h.909v-.23l1.59-.23.681-.922.682-.23.227-.462h.454l.454-.69.909-.231.227-.461h.454l.228-.46h.454l.227-.462.909-.23.227-.46h.454v-.231h.454v-.23h.682v-.231h.681v-.23h.682v-.23h.681v-.231h1.136v-.23h1.136V.63l.454.23V.63h.227v.23h2.272l4.997 1.613v.23h.454v.231l1.59.23v.23h.455v.231l1.817.23v.231h1.135v-.23l1.136.23v-.23h1.136v-.23h.681v-.231h.909v-.23l2.953-.461v-.23h.909v-.231h.454v-.23h.681v-.231l4.089-.691.454.23c.284-.153-.094-.269.227-.23v.23h3.408v.23h.454v.231l2.953.691v.23l.909.231v.23h.454l.227.461.909.23.681.922h.454l.682 1.152 1.363 1.152v.691l.681.461v.461h.227l.227.922h.228l.227 1.612h.227v.922h.227v.922h.227v.921h.227v1.613h-.227c-.369 1.344.171 2.765-.227 3.917h-.227v.691h-.227l-.227 1.383h-.228l-.227.921h-.227v.46h-.227c-.265.347-.312.404-.454.922h-.455c-.265 1.037-.842 1.095-1.59 1.613l-.227.461h-.454l-.227.46-.909.231v.23l-.908.231v.23h-.682v.23h-.454v.231l-.455-.23v.23h-.454v.23h-.908v.231l-3.181.23v.23l-.454-.23v.23l-.454-.23h-1.59v-.23h-.227v.23h-.227v-.23h-.909v-.23h-.454v-.23h-.682v-.231h-.681v-.23h-.682v-.23l-1.59-.231-.227-.461-2.044-.46-.227-.462-1.136-.23v-.23h-5.906v.23l-1.817.23v.23l-1.363.462v.23h-.454v.23l-.909.23-.227.462h-.682l-.227.46-.681.23v.231l-2.045.691-.227.461-2.498.922-2.953.23v-.23c-1.268-.336-2.745.192-3.862-.23v-.231h-.681l-.227-.46h-.455l-.227-.462h-.454v-.23l-1.363-.46v-.231h-.681v-.23h-.909v-.231h-1.363v.23c-.596.183-1.136-.067-1.59.23l-.227.462c-.426.393-.956.758-1.59.921 0 .826-.123 1.248-.227 1.843h3.18v.23h.454v.231h1.136v.23h.908v.23h.909v.231l1.363.461v.23h.454v.23h.454v.231l1.136.23.454.692 1.818 1.613v.46l.681.461.682 2.074.454.23v.461h.227l1.363 5.99v5.3h.227l.454.691h.455l.681.922h.454l1.136 1.382h.454l.909 1.152h.454l.228.46h.454q.567.692 1.136 1.383h.454l.454.691h.454l1.136 1.383h.455l.227.46h.454l1.136 1.383h.454v.46c1.013.289.814.884 1.817 1.153v.46h.227l1.136 1.383h.454l.682.922h.454l.909 1.152h.454l.227.46h.227l.228.461h.454l.227.461.681.23v.23h.455l1.135 1.383 1.136.23 1.136 1.383h.454l.227.46 1.363.462v.23l1.136.922c-.142.547-.066.432-.454.69-.256.26 0 .097-.455.231-.567-.662-1.552-.69-2.271-1.152l-.227-.46h-.455l-.681-.922h-.454v-.23c-.341-.317-.294-.116-.455-.692l-.681-.23-.909 1.152h-.227v.46l-.454.231-.227 1.152h-.227c.066.518.019.605.227.922h.227v.46l.454.23v.462h.227v.69h.228l-.228.692v2.074h.228c0 .326-.18-.096-.228.23v1.613c1.789-.48 1.363-3.159 2.953-4.147.256-.26 0-.096.455-.23.246.306.624.422.908.69l.227.461h.455l.227.461h.454l.682.922h.454l.227.46.909.23.227.462h.454v.23h.454l.227.46c.682.442 1.108.203 1.591.922h.227v.23h-.227l-.228.692c-1.552-.077-1.741-.614-2.725-1.152l-.909-.23-.227-.461-.909-.23-.454-.692h-.454l-1.136-1.382h-.682c-.132 1.882-2.271 5.482-4.088 3.226-1.051-1.076.189-4.493-.682-5.53-.17-.653-.407-.663-.681-1.152h-.454l-.228-.922c-1.874-.412-2.924-1.862-4.315-2.764l-.909-.23-.227-.462c-.663-.45-.937-.422-1.363-1.152h-.454v-.46h-.455l-.454-.692h-.454l-.455-.46-.227-.692h-.454l-.227-.46-.682-.23v-.231h-.454l-.908-1.152h-.455l-.227-.461h-.454l-.682-.922h-.454l-.227-.46h-.454l-.682-.922h-.454l-.454-.691h-.455l-.227-.461h-.454c-.767-.442-.833-.855-2.045-.922l-.908 4.148h-.227v.46h-.227l-.228 1.613h-.227l-.227.922h-.227v.69l-.454.231-.228.922c-.331.624-.955 1.296-1.135 2.073-.994.288-.644.48-1.136 1.153l-.454.23v.23h-.455l-.454.692h-.454v.23l-.909.23v.23l-1.363.231v.23l-2.044.461c.142.836.331 1.392 0 2.304h-.227v1.152h-.227v.922h-.227v.46h-.228v.692h-.227v.922h-.227l-.227 2.303h-.227v.461h-.227l-.227 2.074h-.228v.691h-.227l-.227 1.613h-.227v.46h-.227v.922h-.227v.692h-.228v1.382h-.227v.691h-.227v.691h-.227l-.454 2.765h-.227v.691h-.228v1.152h-.227v1.152h-.227v.922h-.227v1.613h-.227l-.454 2.304h-.228l.228.691c1.391-.23 4.514-.384 6.36-.922h2.953v-.23h2.044v-.23h1.363v-.231h2.271v-.23h2.726v-.231h2.272v-.23h2.044v-.23h1.363v-.231h1.817v-.23h2.499v-.231h1.817v-.23c.852-.25 1.94.25 2.499-.23 1.523-.068 2.867-.375 3.18.921 1.117.25 1.779 1.152 2.498 1.843l.227.461h.455l1.363 1.613h.454l1.136 1.382c.946.692 1.912 1.277 2.498 2.304h.455c.161.576.113.375.454.692v.23h.454l.455.691h.454l.227.461.909.691 1.135 1.383h.455l.681.921h.454l2.272 2.535h.454l1.363 1.612h.454l1.59 1.844h.455l.681.921h.454v.461h.228v.23h.454l.908 1.153h.455l1.363 1.612h.454v.461l.909.461 1.817 2.074h.454l.682.921h.454l.454.691h.227v.461h.227l.455.691.908.231 2.499 2.765c.464.46 1.003.556 1.363 1.152h.454c.275.912.057.288.682.691v.23h.454l1.363 1.613h.454v.23l.909.692v.46c.586.164.738.365 1.135.692v.23h.455l.454.691h.454l2.045 2.304h.454l1.59 1.843h.454v.231l.909.691 1.59 1.843h.454l.455.691h.454l.454.922h.454l.455.691h.454l1.59 1.843h.454l2.272 2.535h.454l1.363 1.613h.454c.228.787.758.758 1.136 1.382h.454v.461c1.628.451 2.717 2.64 4.089 3.456-.028.605-.085.787-.227 1.152l-.454.23v-.23h-1.363c-1.316.374-2.622.71-4.316.691v.461c.776.211 2.158 1.526 2.726 2.073l.227.461h.454l.454.691h.455v.461h.227c0 .135-.199.432-.227.922h-3.635c-.52.154-1.362.403-2.044.461.549 2.457 4.164 2.621 4.77 4.838h.227c-.151.595-.236.663-.681.922-.35.269-.994-.25-1.817 0v.23h-1.363v.231h-2.045c-2.555.768-5.868.624-8.404 1.382h-2.499c-1.722.461-5.669.72-7.95 1.382-.549.154-1.278-.24-1.363-.23v.23h-.681v.231h-2.272v.23h-1.363v.231h-1.59v.23l-4.543.23v.231h-.908v.23h-1.59v.231h-1.818v.23h-1.362v.23l-6.361.461v.231h-1.135v.23h-2.272v.23h-1.136v.231h-1.363v.23l-.454-.23v.23h-1.817c-2.063.624-5.035.538-7.042 1.152h-2.044v.231h-1.59v.23h-1.817v.23h-2.045v.231h-1.362v.23h-1.363v.231h-2.272v.23h-1.363v.23h-1.817v.231h-2.726v.23l-3.407.231v.23h-1.817v.23h-2.045v.231h-.908v.23h-1.817c-1.515.461-3.673.461-5.225.922h-2.725c-1.695.518-4.184.633-5.906 1.152h-2.726v.23h-1.363v.231h-2.272v.23l-2.498.23v.231c-.256.029-.587-.384-1.136-.231v.231h-1.363v.23l-2.953.231v.23h-2.044v.23h-1.59v.231h-1.817v.23h-2.045c-1.4.423-3.407.509-4.77.922h-2.498v.23h-1.136v.231H94.72c-3.028.912-7.004.72-9.994 1.612h-2.953v.231h-1.136c-1.997.643-5.054.518-7.042 1.152H72.46v.23h-2.045v.231h-1.59v.23H67.01v.23h-2.272v.231h-1.59v.23h-1.59c-2.262.691-5.28.979-8.177.922v-.461c-.18-.269-.227.23-.227.23l-.681-.23-.455-.691h-.227v-.461l-.681-.461v-.461l-.455-.23v-.461l-1.363-1.152v-.461l-1.362-1.152v-.46l-.682-.461v-.461l-1.136-.922v-.46l-.454-.231v-.461l-1.59-1.382v-.461l-.454-.23v-.461l-1.136-.922v-.46h-.227c-.322-.394-.54-.557-.682-1.152h-.454c-.151-.596-.549-1.22-.909-1.613l-.454-.231v-.46l-.681-.461-.227-.691-1.136-.922v-.461l-1.136-.921v-.461l-1.136-.922v-.461l-.681-.46-.227-.922-.682-.461v-.461l-1.136-.921v-.461h-.227l-.681-.922-.682-.46-.227-.922-.908-.691v-.461l-1.136-.922v-.461l-1.59-1.382v-.461l-.454-.23-.227-.922-1.818-1.613-.227-.691-.681-.461v-.46l-.909-.692v-.46l-1.363-1.152v-.461l-.454-.231v-.46l-1.136-.922v-.461l-.909-.691v-.461l-.68-.461v-.46l-.682-.461v-.461l-1.818-1.613v-.461l-.454-.23v-.461l-.681-.461v-.46l-1.363-1.152v-.461l-.454-.231v-.46l-.682-.461v-.461l-.909-.461v-.461l-.908-.691v-.461l-.909-.691v-.461l-.681-.46v-.461l-1.136-.922-.227-.691-.454-.23v-.461l-.909-.691v-.461l-.909-.691v-.461l-.681-.461c-.596-.624-1.221-1.488-1.59-2.304H2.5c-.133-.518-.19-.576-.455-.922h-.227v-.46l-.454-.231v-.461l-.454-.23c-.332-.355-.53-.845-.909-1.152.227-2.17 1.344-.854 2.953-1.382m119.935-93.543v.69l-.455.231v.922h-.227v.46h-.227v.692l-.454.23-.227 2.535h-.227v.691h-.228v.922h-.227l.227.921-.681 4.147h.227v3.226h.227v2.765h.227v.691h.228c.35 1.162-.228 2.266.454 2.995.132.461-.028.202.227.461.189-1.037.407-2.486.681-3.456v-5.76c-.018-.067-.293-.067-.227-.46h.227v-1.383h.228l.227-4.839h.227a.42.42 0 0 0-.227-.46l.227-1.152c-.085-.317-.284.086-.227-.23h.227v-.922h.227v-1.844h.227v-.69h.227l.228-1.844h.227l.227-.691zm6.133-24.653h-.227c.132.46-.029.201.227.46zm10.676 15.898c.312-.346.113-.298.681-.461v-.461c.095-.22.568 0 .455-.691h-.228c-.094-.288-.416-1.162-.227-1.613l.455-.23.227-.922.681-.46c.36-.673.038-1.23 0-2.075l-1.363-.23v.23h-.454v.23c-.634.212-1.59-.23-1.817-.46-1.316-.777-2.243-2.957-2.272-5.069a4.9 4.9 0 0 1-1.59-.691l-.227-.46-1.363-.231v-.23h-1.363v-.231c-.672-.202-3.038.029-3.407.23l-.454.692h-.455l-.681.921h-.227v.461l-.454.23-.455 1.383h-.227v.46h-.227l-.227 1.614h-.227v.69h-.227v1.844h-.228c-.208.72-.085 2.66.228 2.995v.922h.227c.17-.653.407-.663.681-1.152.521.076.587.029.909.23v.23l1.363.23v.231l3.407.23v-.23h1.59v-.23c.596.029.776.086 1.136.23-.019 1.613-.568 1.786-1.363 2.535l-.227.46-.909.23-.227.462h-.454v.23c-.587.269-1.354.058-1.818.46-2.848 0-2.508-1.305-3.861-2.533v-.461h-.227v.69l.454.231v.461l1.136 1.613h.454l.227.46.909.231.227.46h.681v.231c.606.298 2.149.99 3.18.691v-.23h1.136v-.23l.909-.23v-.231h.454l.682-.922.908-.23v-.23c.407-.327.549-.519 1.136-.692.132-.46-.029-.201.227-.46v-.23c.549-.203.521.412.909.46v-.23h.908v-.23l.682-.462v-.46zm-9.086 0v-.23c-1.212.018-3.265.095-3.862-.462h-.908l1.135 1.613h.682v.23c1.202-.067 1.846-.527 2.726-.921v-.23zm18.172 11.98h-.227l-.455-2.073-1.363-1.152v-.461l-.454-.23v-.461l-.454-.461h-.454l-.228-.46-2.044-.462v-.23h-.454v-.23h-1.59v-.23h-1.59c.568 1.228 1.381 1.593 1.363 3.455h1.362v-.23c1.382-.039 2.357-.058 2.953.69h.228v.692c.908 2.093.113 2.314-.682 3.917l4.543 4.378h.454l-.227-2.304h-.227v-2.304h-.227v-.922h-.227zm4.088 9.677h.455c-.019-1.814-.057-3.456-.455-4.838v-1.383h-.227v-.69h-.227v-.462h-.227v-.921h-.227l-.227-.922h-.227l-.228-.921-.454-.23-.227-.922h-.227l-1.136-1.383h-.227c.53 1.171 1.183 2.362 1.59 3.687.322 1.065-.151 2.275.454 2.995v4.377h.227c.464.663 1.174.932 1.59 1.613m-3.861 17.28c.199-.844.596-1.219.908-1.843v-.46h.228v-.922h.227v-.461h.227v-.691h.227v-.461h.227l.227-2.535c-.757-.182-.87-.518-1.59-.69l-.908 4.607-1.136-.23v-2.074h.227v-.691h.227V58h.227c-.047-1.133-.425-1.411-1.135-1.843h-.455v-.23l-.681-.462-2.272 10.83h2.272v-.231zm-3.18 5.3.227-.461h.454l.455-.692h.227l.227-1.151.454-.23v-.462h.227l.227-.69-3.18-.231-1.135.23v-.23c-.54.528-1.373 4.29-1.363 5.53 1.022-.212 2.385-1.066 3.18-1.614m-4.543.46c.076-1.277.483-2.15.681-3.225-.35-.135-.369-.183-.908-.23l-.455 3.455zm-1.136-28.109v-.46l.454-.23v-.462l1.59-1.382v-.46c.947-.212 1.127-.74 1.818-1.153.132-.46-.029-.202.227-.46-.019-1.2-.085-.903-.455-1.613-1.041 0-2.082.067-2.725.46l-.227.461h-.455l-1.363 1.152v.461l-1.363 1.152-.227.922-.681.46v.461l-.454.23v.461l-.455.23v.692l-.454.23v.461h-.227v.461h-.227v.691h-.227v.461h-.228l-.908 4.608h-.227v.46h-.227v2.535h-.228l-.227 3.917h.227v4.839l1.59 4.377.682.46.227.692h.227v.46l.454.462h.455l.454.69h.454l.227.462 1.363.46.228-2.303h.227v-.922h.227c.189-.326.17-.394.227-.922-1.022-.278-1.079-.854-1.59-1.612l-.454-.23c-1.221-1.95-1.818-4.657-1.818-7.835v-2.073h.228V53.16l2.498-7.603.455-.23.227-.922zm-5.224 51.84v-1.151h.227v-.692h.227l.227-2.073h.227l.227-.922h.228v-.921h.227v-.692h.227v-.921h.227V87.26h.227l.454-2.535h.228v-.69h.227l.227-1.844h.227v-.46h.227l.227-1.383h.228v-1.152l.681-2.074h-.227v-.23c-.511.21-1.316.028-2.045.23v.23l-3.861-.23v-.23h-1.59v-.23l-1.59-.231v-.23h-.682v-.23h-.908v-.231h-1.136v-.23l-.909-.231v-.23l-1.362-.23v-.231l-.909-.23v-.231l-.909-.23-.227-.461c-.416-.27-.511 0-.908-.461h-.228c-.085.47-.227.451-.227.46v1.153h-.227l-.227.921h-.227l-.227 1.844h-.227v.46h-.228l-.227 1.844h-.227l-.227.921h-.227l-.227 2.074h-.227l-.455 2.304h-.227v.691h-.227v.691h-.227v.922h-.227v.46h-.227v.922h-.228v.461h-.227l-.227 1.382h-.227l-.227 2.074h-.227l-.228 1.152h-.227v.46h-.227l-.227 1.383h-.227v.461h-.227v1.152h-.227v.691h-.228v.461h-.227v.691h-.227l-.227 2.304h-.227v.461h-.227l-.455 2.304h-.227v.691h-.227v.461h-.227l-.227 1.613h-.227v.921h-.228v.461h-.227l-.227 1.613h-.227c-.18.605.293 3.005.454 3.456h.227v1.152h.228v1.152h.227v.23h-.227c.066.317.151-.086.227.231v1.382h.227v1.152h.227l.227 2.996h.227l.228 4.147h.227v1.382h.227v1.843h.227v1.613l1.136 4.147c.511.135.568.192.908.461v.231h.455l.227.46h.454c.284.173 1.155.893 1.363 1.152h.227c-.113-2.486-.312-5.721-.908-7.833v-2.535h-.228v-1.382h.228l-.228-2.765h-.227l.227-.691c-.397-1.622-.227-4.215-.227-6.221v-1.843h-.227v-.231h.227v-1.152h.227v-.691h.228v-.461h.227v-.691h.227v-.691h.227l.454-1.382c.35.134.369.182.909.23a53.7 53.7 0 0 1 1.817-9.216l.454-4.147h.227l.228-2.304h.227l.227-2.535h.227v-1.152h.227v-.921h.227v-.922h.228v-1.15h.227v-1.152c.473-1.565.549-4.57 1.59-5.53.255-.259 0-.096.454-.23.199.23.388.326.681.46-.018 1.729-.312 2.66-.681 3.918l-.227 2.304h-.227v1.613c-.492 1.67-.767 3.945-1.363 5.99v1.843h-.227v.922h-.227v.921h-.228v1.383h-.227v1.152h-.227v.921h-.227l-.454 3.917h-.228v1.383h-.227v.921h-.227v.922h-.227v.921h-.227v1.844h-.227v1.152h-.227c-.123.297-.407 1.324-.228 1.843h.228v.461h.227l.227 1.382h.227l.227.922h.227v1.152h.227l.228.921h.227v.691h.227l.227.922h.227l.227 1.152h.228l.454 2.304h.227v.461h.227l.227 1.152h.227l.455 2.304h.227v.461h.227l.227 1.382h.227v.691h.227v.692h.228v.691h.227v.691h.227v.691h.227v.691h.227v.922h.227v.691h.227v.691h.228v.692h.227v1.152h.227v.46h.227l.227 1.383h.227v.461h.228v1.152h.227v.691h.227v.691h.227v.691h.227v.691h.227v.692h.227v.46h.228v.461h.227l.227.461h.454l.227.461.682.23v.231l.908.23.228.461h.454l.454.691c.824.576 1.761.73 2.272 1.613h.454l-1.817-6.451h-.227v-1.152h-.228l-.227-2.535h-.227v-.921h-.227v-.692h-.227l-.454-4.377h-.228l-.227-2.074h-.227v-.921h-.227v-.922h-.227v-.922h-.227l-.227-2.995h-.228v-.921h-.227v-.922h-.227v-1.383h-.227v-.921h-.227v-.922h-.227v-1.613h-.228v-1.612h-.227v-.922h-.227c-.303-1.018.284-1.968.454-2.534l.228-4.148h.227v-1.382h.227l.227-2.074h.227v-1.612h.227v-.692h.228v-1.612h.227v-1.152h.227v-.692h.227v-1.612c.312-1.028.804-2.42 1.136-3.456m-23.851 43.086.454.691h.455c.104.499.142.653.454.921-.142.548-.066.432-.454.692-.256.259 0 .096-.455.23-.549-.653-1.495-.941-2.044-1.613-1.164.029-1.817.115-2.726.461v.23h-.908v.231h-.455v.23h-.681v.231h-1.136c-1.751.556-3.918.844-5.451 1.612l-.228 2.074c3.19.288 7.846.365 10.676-.461h2.045v-.23h.908v-.231c.313-.009.369.375.909.231v-.231h2.499v-.23h2.953v-.23l1.135-.231v-3.917c-.274-.153-.312-.364-.454-.46h-.454l-.227-.461h-.455l-.227-.461h-.454l-.227-.461h-.455l-.227-.461c-.303-.115-.076.096-.227.231-.644.009-.842-.144-1.136-.461-.643.173-.653.413-1.135.691l.681.922h.454v.461c.076.172.502.096.455.46h-.228l-.227.692c-.956-.058-1.296-.231-1.817-.692l-.227-.46h-.909v-.231h-.227v.231zm6.36 15.667c-.028.403-.236.835-.227.921h.227v.692c.596.22 1.685-.02 2.499.23 1.656.518 5.338.778 7.269.23.728-.201 1.145.317 1.59.231v-.231h1.363v-.23l.454.23v-.23h2.044v-.23h2.045v-.231h.454v-.23c1.088-.471 2.678-.336 3.407-1.152h.227c-.407-.691.057-.999 0-1.152h-.227c-.019-1.911-.341-1.171-1.363-1.843l-.227-.461h-.454l-.227-.461h-.455l-.908-1.152h-.455v-.23h-.454l-.227-.461h-.454l-.227-.461h-1.363v-.23c-.322-.183-.388-.183-.909-.231-.142.547-.066.432-.454.691.265.471.662.884 1.135 1.152-.009.663-.075.989-.227 1.383h-.681v-.231c-.454-.326-1.07-.662-1.363-1.152-.823 0-1.041-.038-1.363.461h-.454l1.817 1.383c-.085.739-.208.672-.454 1.152h-.909l-.227-.461h-.454l-.228-.461c-.283-.269-.662-.374-.908-.691l-1.363.23v.231h-1.136l-.227.46h-.454v.231l-2.045.461v.23l-2.271.461v.23zm1.363-3.226 4.316-.921v-.231h.454l.227-.461 1.59-.23.228-.461h.681l.227-.461h.454v-.23h.455v-.23h.454l.454-.461h.455l.454-.691.681-.231v-.461c.142-.192.322.077.228-.23h-.228v-.461h-.227l-.454-2.534h-.227l-.227-1.613h-.228l-.227-.922h-.227v-.691h-.227l-.227-1.152-.682-.461v-.23h-.454l-.227-.461-.909-.691v-.461l-.454-.23c-.492-.528-1.155-1.047-1.363-1.843-1.088-.308-.965-1.095-2.044-1.383-.218-.825-.757-.969-1.136-1.613h-.454l.227 2.996h.227l-.227.921h.227v2.995h.227v.922h.227c.36 1.2-.056 4.147-.227 5.069h-.454v.461c-.672.172-.511.374-.681.46h-.909v.231h-1.136v.23c-.643.183-1.315-.345-1.59-.23v.23c-.804 0-1.533.039-2.044.231l1.363 1.612h.454l.681 1.152.682.461.227.461h.454c.152.125 1.013 1.574 1.136 1.843m1.363-35.712c-.407-.816-.842-1.853-.909-2.995-.53.614-.227 2.861-.227 3.917 0 1.603.114 3.724.227 4.377.246 1.421-.075 3.264.228 4.378.217.816-.228 1.786.227 2.304.104 1.507 1.041 1.747 1.817 2.534l4.77 5.069h.227l-.681-2.073v-.922h-.227v-.461h-.228v-.691h-.227v-.691h-.227v-.691h-.227l-.227-1.844h-.227l-.227-1.152h-.228l-.227-.921h-.227l-.227-1.613h-.227v-.461h-.227v-.691h-.228v-.461h-.227l-.227-1.382h-.227v-.461h-.227v-.922h-.227v-.461h-.227l-.228-1.382h-.227l-.227-.922h-.227v-.921h-.227zm112.893 45.85v-.461h-.227l-1.363-1.613h-.454l-1.817-2.073h-.455l-1.363-1.613h-.454l-.908-1.152-.682-.231-1.817-2.073h-.454l-.455-.691h-.454l-.909-1.383h-.454l-1.363-1.613h-.454l-1.363-1.612h-.454l-1.136-1.383h-.454l-1.59-1.843h-.455l-.908-1.152h-.455l-1.817-2.074h-.227l-.227-.46h-.454l-1.59-1.844h-.455l-2.726-2.995h-.454l-.681-.921h-.455l-.681-.922h-.454l-.227-.691-.455-.231-.681-.921-.909-.231-2.271-2.534h-.455l-.454-.691h-.454l-1.363-1.613h-.454l-1.59-1.843-.682-.231v-.46c-.511-.125-.577-.192-.908-.461v-.231h-.455v-.23c-.331-.317-.312-.115-.454-.691h-.454l-1.136-1.383h-.454v-.23l-.455-.231v-.46c-.956-.24-1.647-1.008-2.271-1.613l-.227-.461h-.455l-1.135-1.382h-.455c-.161-.663-.246-.768-.908-.922-.152-.576-.114-.374-.455-.691v-.231h-.454l-.454-.691h-.454l-.228-.461-.908-.691-.909-1.152h-.454v-.23l-.682-.461-.681-.922h-.454l-1.363-1.612h-.454l-1.591-1.844-.681-.23-.454-.691h-.455l-.227-.461c-.549-.518-1.533-1.651-2.271-1.843v-.231h-.227v.231h-1.59v.23h-1.818v.231h-2.271v.23h-.227v-.23h-.227v.23h-1.818v.23h-2.044v.231h-2.271v.23h-2.272v.231h-1.817v.23h-1.817v.23h-2.045v.231h-2.725v.23h-2.499v.231l-8.632.921c-.227 1.239-.577 2.986-.908 4.147v1.844h-.227l-.228 3.686h.228v1.152h.227v1.613h.227v.691h.227v1.843h.227v.922h.227c.19.595-.066 1.152.227 1.613l.909.691v.23h.454l2.953 3.226c.634.586 1.07.307 1.363 1.382.786.212 1.297.884 1.817 1.383l.227.461h.455l1.135 1.382h.455v.23l1.136.922v.461l.681.23v.231c.634.412.928.278 1.136 1.152 1.154.316 1.751 1.545 2.498 2.304l.909.691.227.461h.454l1.59 1.843h.455l1.817 2.073h.454v.461h.455l.454.691 2.044 1.844.227.46h.455l2.044 2.304h.454l.909 1.152.681.461v.231h.455l1.59 1.843c.719.729 1.741 1.142 2.271 2.073h.454v.461c.739.192 1.714 1.229 2.045 1.843h.454c.17.624.057.528.682.692.132.46 2.924 3.187 3.407 3.456l-.227 1.152-1.136-.231-.227-.461h-.455l-1.817-2.073c-.511-.471-.994-.509-1.363-1.152H169v-.461l-.681-.23-.455-.692-1.59-1.382-1.363-1.613h-.454v-.23l-.909-.691-.908-1.152h-.454l-2.499-2.765c-.871-.797-1.874-1.219-2.499-2.304h-.454c-.303-1.104-.833-.835-1.59-1.383l-2.499-2.764h-.454l-1.363-1.613-.681-.231v-.46h-.228l-.908-1.152h-.454l-1.136-1.383h-.454l-1.363-1.613h-.455l-.227-.691-.454-.461h-.454l-1.363-1.612h-.455l-.454-.692-.454-.23v-.461l-.682-.23-.681-.922-.681-.23v-.461c-.786-.211-1.297-.883-1.818-1.382l-.227-.461h-.454l-1.363-1.613h-.227l.681 4.147h.227v.691h.228v1.844h.227v1.152h.227v1.152h.227v.921h.227l.682 5.069h.227l.227 2.074h.227v.691h.227v.691h.227v.691h.228v.461h.227v.691h.227v.922h.227v.461h.227l.454.691h.455c.274.941.161.24.681.691v.23h.227v.461l2.272 1.843v.231l.454.23v.461l.682.23v.231l1.135.921v.461l.455.231.908 1.152.682.23v.461h.227l.681.921c1.079 1.104 2.622 2.093 3.407 3.456h.455c.18.711 1.467 2.209 2.044 2.535-.142.557-.237.509-.454.921-.899-.115-1.06-.47-1.59-.921v-.231h-.455l-.454-.691h-.454l-.454-.921-1.136-.922-2.272-2.534c-.691-.701-1.76-1.21-2.044-2.304-1.155-.317-2.167-1.968-2.953-2.765l-1.363-1.152v-.461h-.227l-.227-.461c-.407-.317-.331.106-.682-.461h-.454l.227 2.996h-.227v.691l-.908.23-.228.461-1.59.23v.231l-.908.23v.231l-2.953.46v.231l-.454-.231v.231h-1.363v.23l-5.225.231 1.363 1.612h.227l.227.692c.833.672 1.96 1.113 2.272 2.304 1.088.288 2.413 2.208 3.18 2.995.483.49.927.566 1.136 1.382h.227l-.682.922c-.974-.125-1.467-.826-2.044-1.383l-.227-.46h-.454l-.228-.461c-.766-.73-1.523-1.315-2.044-2.304h-.454v-.461h-.455v-.23l-1.362-1.152v-.461l-.682-.231-2.271-2.534-6.815-.691-1.59-1.152c-.028-1.2-.142-2.64.454-3.226.18-.739.625-1.209 1.363-1.382v-.461c-1.23-.307-1.306-1.114-2.044-1.843-.823-.816-1.495-.855-2.044-2.074h-.455c-.321-1.075-1.041-.633-1.363-1.843-2.366 0-4.296.163-6.133.691H102.9c-2.698 0-3.89-.259-6.133-.461v-.23h-.228l-.227-2.534h.227v-.461h.228v-.922h.227l.227-.691c.199-.086.748-.144.909-.23l.227-.461h.908v-.231l.455.231v-.231l1.135-.23v-.23l2.499-.231v-.23l1.363-.231c-.473-.835-1.145-1.43-1.817-2.073l-.228-.461h-.454l-1.363-1.613h-.227v-.461c-.88-.23-1.05-.835-1.59-1.382l-1.59-1.382-.681-.922c-.635-.586-.672-.134-1.136-1.152h-.454c-.37-1.373-2.461-2.438-3.18-3.686h-.455v-.461c-.814-.24-.861-.874-1.363-1.383l-.681-.46v-.231h-.454l-1.363-2.073c-.256-.202-.038.028-.228-.231l.682-.461v-.23c1.22.317 1.732 1.296 2.499 2.073l3.407 3.457c.473.48 1.012.768 1.363 1.382h.454v.461h.227c.208.24-.047.057.227.23h.227l.228.461c.634.614 1.183.97 1.59 1.843h.454v.461h.454v.23l1.363 1.152v.461l.454.231.909 1.152h.454l.455.46v.461l.454.231.909 1.152.908.691v.23h.454v.231c.332.316.303.115.455.691.653.096.833.288 1.59 0v-.231h.681v-.23h.455v-.23h.681v-.231l1.363-.23.227-.461.909-.23.227-.461h.454c.142-.096.17-.307.454-.461.133-.806.303-1.19 0-2.074h-.227l-.227-2.304h-.227v-.921h-.227l-1.136-8.295h-.227v-.46l-1.363-1.613h-.454l-2.045-2.304c.076-.692.019-.634.455-.922.255-.259 0-.096.454-.23.615.758 1.543 1.19 2.044 2.073h.455v.461h.454c-.208-1.997-.644-4.032-1.136-5.76v-2.534h-.227l-.227-.922c-1.619 0-2.707.125-3.862.461h-2.726v.23h-1.59v.231h-1.817v.23l-.454-.23v.23h-2.044v.23h-1.59v.231h-2.5v.23h-1.59v.231c-.293.038-.378-.375-.908-.231v.231h-1.817v.23h-2.726v.23h-1.363v.231h-2.725v.23H80.41v.231h-2.726v.23H75.64v.23h-2.272c-1.684.5-4.24.423-5.906.922H65.42c-2.47.73-5.972.422-8.405 1.152h-2.953c-2.252.682-5.688.48-7.95 1.152h-1.817v.23h-2.953v.231h-1.363v.23h-2.044v.231h-1.817v.23l-4.77.23v.231h-2.045v.23h-2.498v.231H25.44v.23h-2.499v.23h-1.817v.231h-2.499v.23H16.81v.231h-2.044v.23h-2.499c-1.23.365-3.331.653-4.77.691l1.136 1.383h.227l.227.921.454.231v.461l1.136.921v.461l.681.461v.461l.909.691v.461l.909.691.227.691.454.23v.461l.454.231v.46l1.136.922v.461l.454.23v.461l.455.23.227.692h.227c.265.336.322.403.454.921h.455c.16.595.35.749.681 1.152h.227l.227.691.455.231v.461l.681.46v.461l.682.461v.461l.908.691.227.691.455.231v.46l.681.461v.461l.909.691v.461l.454.23v.231l.454.23v.461l.682.461v.461l1.136.921q.112.346.227.691l.454.231.227.921.909.692v.46l.681.461v.461l.682.461v.461l.681.46v.461l1.59 1.383v.46l.681.461v.461l.682.461v.46l.909.691.227.921 1.135.922.228.922 1.135.921v.461l.682.461v.461l.681.46v.461l.455.231v.23l.454.23v.461l1.363 1.152v.461l.454.23.227.692h.227v.46l1.136.922.227.922c.398.585.88.384 1.136 1.382h.454c.436 1.642 2.177 2.573 3.407 3.456l.455.691.908.231.228.461h.454l1.136 1.382.908.23.227.461h.682l.227.461h.454l.227.461.909.23v.231h1.136v.23h1.135c2.102.634 4.524-.144 6.133-.691l1.59-.231v-.23l.91-.23v-.231h.908v-.23h.681v-.231h.454v-.23h.455l.227-.461h.681l.228-.461 1.362-.46.228-.461.908-.231.455-.691h.454l.454-.691h.454l.227-.461h.455v-.23c.397-.327.549-.528 1.136-.691v-.461h.227c.407-.48.454-.144.681-.922 1.297-.365.814-1.286 2.272-1.613.255-.259 0-.096.454-.23.303.47.549.47.909.921h.227v.692h.227c.312.422.53.537.681 1.152 1.136.317 1.136 1.133 1.817 1.843.426.442.871.557 1.363.922l.682.921h.454l.682.922h.454l.227.461h.454l.228.46h.454l.227.461.909.231v.23h.454v.23h.454v.231h.682l.227.461h.454v.23l.909.23v.231l2.044.461v.23h.681v.23h.682v.231h.909v.23h.908v.231h1.136v.23h1.136v.23h2.044v.231l4.543-.231v-.23h.681v-.23h2.045v-.231h1.59v-.23h1.363v-.231h.908v-.23l4.089-.23c3.549-1.056 8.045-1.028 11.584-2.074h1.818v-.23h1.59v-.231h2.044v-.23h1.363v-.231h1.59v-.23h.909v-.23h2.044v-.231h.909v-.23h2.271v-.231h1.363v-.23h1.363v-.23h1.59v-.231h2.044v-.23h.909v-.231h1.817v-.23h2.272v-.23h.908v-.231h1.59v-.23h2.044v-.231h.909v-.23h1.817v-.23h1.817c4.099-1.229 8.452-.922 12.267-2.074h2.044v-.23h1.136v-.231h2.271c4.373-1.315 10.156-1.2 14.538-2.534h1.817v-.231h2.044c1.316-.393 3.247-.537 4.543-.921h1.817c3.521-1.066 8.272-.97 11.812-2.074h2.499v-.23h1.136v-.231l2.725-.23v-.231h1.818v-.23h2.044c1.306-.394 3.379-.71 4.997-.691M74.732 182.417v.231h2.953v.23h.909v-.23l.454.23s.208-.336.681-.23v.23h2.953v-.23l.455.23v-.23h.227v.23h2.726c3.246-.941 6.672-1.373 10.221-1.382v-.461c-1.202-.038-1.874-.269-2.726-.691v-.231l-1.362-.23v-.23l-1.136-.231v-.23l-.909-.231v-.23h-.681v-.23l-1.363-.461v-.231l-.909-.23-.227-.461h-.454l-.454-.691h-.455l-.454-.691h-.454l-.228-.461h-.454l-2.498-2.304v-.461l-.682-.23-.227-.691-.681-.461-1.136-1.613h-.454c-.237.941-.682.902-1.363 1.382l-.228.461h-.454l-.454.922h-.454l-1.136 1.382h-.455l-.454.691h-.454l-.227.461h-.454l-.455.461h-.454v.23h-.454l-.227.461h-.455v.231h-.681l-.227.46h-.455l-.227.461h-.681v.231h-.455v.23l-1.59.23v.231h-.454v.23h-.681v.231h-.455v.23c-.899.394-3.114.691-4.316.691.35.586.72.691 1.363.922h.909v.23h.454v.231l1.817.23v.23h.909v.231h.909v.23h1.135v.231h1.59v.23h1.363v.23h2.726v.231h1.363v-.231zm156.279-15.437c-.275-.94-.161-.307-.682-.691l-.227-.461h-.454l-.454-.691h-.455l-.227-.461h-.227l-.227-.46-2.726-.231v.231h-1.363v.23h-2.044v.23h-1.59v.231h-.909v.23h-1.363v.231l-3.407.23v.23h-1.817c-4.42 1.325-9.171.912-13.629 2.304h-1.59v.231h-1.817v.23h-2.726v.231l-2.272.23v.231h-.908v.23l-3.635.23v.231h-.908v.23h-2.726v.231h-1.59v.23h-1.363v.23h-1.363v.231h-1.136v.23h-2.044v.231h-1.59v.23l-.681-.23v.23h-.909v.23h-1.363v.231h-1.817v.23h-.909v.231h-1.59c-1.4.422-3.407.508-4.77.921l-3.634.231v.23h-1.136v.23h-2.271v.231h-.909v.23h-1.136v.231H150.6v.23h-1.817v.23h-1.363v.231l-3.635.23v.231h-1.362v.23h-.909v.23l-3.18.231v.23l-4.543.231v.23l-3.634.461v.23h-1.136v.231h-2.045v.23h-1.817v.23h-1.363v.231l-3.634.23v.231l-3.18.23v.23h-.909v.231h-1.817v.23h-1.363v.231h-2.044v.23l-2.726.23v.231h-2.499v.23l-2.498.231v.23h-1.136v.23h-2.271v.231h-.91v.23h-1.362v.231h-4.77v.23l-.227-.23-1.136.23v.23h-.908v.231h-1.59v.23h-1.59v.231H85.18v.23h-7.042v-.23h-.227v.23l-3.634-.23v-.231l-7.95-.461v-.23h-.909v-.23h-.454v-.231l-1.363-.23v-.231l-2.272-.23v-.23l-1.363-.461v-.231l-2.044-.46v-.231l-.909-.23v-.231h-.454v-.23l-1.136-.23-.227-.461h-.454v-.231l-2.044-.691v-.23h-.455l-.227-.461h-.454l-.454-.691h-.455l-.681-.922-.909-.23v-.231c-.34-.268-.397-.336-.908-.46v-.461H47.7v-.461h-.681c-.246-.307-.625-.422-.909-.691l-.227-.461h-.454l-.454-.691h-.455l-.681-.922-.455-.23v-.461l-.908-.691v-.461l-.454-.23v-.461l-1.136-.922v-.461l-.454-.23v-.461l-1.59-1.382v-.461l-.682-.461-.227-.922-.682-.46v-.461l-.681-.461-.227-.691h-.454c-.142-.519-.19-.576-.455-.922h-.227l-.227-.921-.909-.692v-.46l-.681-.461v-.461l-1.136-.922v-.46l-.908-.692V155l-.455-.231v-.461l-.681-.46v-.461l-.909-.691v-.461l-.681-.461v-.461l-.454-.23-.228-.691h-.227c-.322-.404-.53-.557-.681-1.152h-.454c-.152-.596-.55-1.21-.91-1.613l-.453-.231v-.46l-.682-.461v-.461l-.909-.691v-.461l-.908-.691-.227-.691-.455-.231v-.461l-.454-.23v-.461l-.454-.23v-.231l-.454-.23v-.461l-1.136-.921v-.461l-.454-.231v-.46l-.682-.461v-.461l-.681-.461v-.461l-1.136-.921v-.461l-.454-.23v-.461l-.682-.461v-.461l-1.136-.921v-.461l-.454-.231v-.23l-.454-.23v-.461l-.454-.231v-.46l-1.136-.922v-.461l-.455-.23v-.461l-.908-.691v-.461l-.682-.461v-.461l-.908-.691c-.133-.461.028-.201-.227-.461v.461c-1.41.087-2.243.471-3.862.461.152.595.55 1.21.909 1.613l.454.23v.461l1.363 1.152v.461l1.817 1.613v.46l.682.461v.461l.681.461v.461l1.59 1.382v.461l.681.461v.46l1.136.922.227.691.455.231v.46l1.817 1.613v.461l.681.461v.461l2.045 1.843v.461l.681.46v.461l.454.231v.46l1.59 1.383.228.921.908.692.682.921h.227v.461l.454.23.682.922h.227v.461h.227c.265.336.322.403.454.921h.454c.275.999.71.788 1.136 1.383V155l.454.23v.23l.682.461.227.922 1.817 1.613v.46l.455.231v.461l2.044 1.843v.461l.681.46v.461l1.136.922v.461l1.363 1.152v.46l1.136.922v.461l.908.691.227.691.455.231v.461l1.363 1.152v.46l.454.231v.23l.681.461v.461l1.363 1.152v.461h.227l.455.691.681.461v.46l.455.231.227.921 2.498 2.304v.461l.909.691v.461l.454.231.227.691h.228l.227.691h.454l.227.691 1.363 1.152v.461l.909.691v.461h.227l.227.691.454.231v.46c.17.231.691.413.909.692h.454l.227.691h.227v.461c.294.576.578 1.056 1.136 1.382v.23c.578-.326 1.458.01 2.272-.23v-.23h1.135v-.231h1.818v-.23h2.044v-.231h2.044l14.992-2.304h2.044c1.846-.547 4.354-.614 6.134-1.152h2.044v-.23h1.59v-.23l9.086-.922v-.23h.908v-.231h2.272v-.23h1.817v-.231h1.136v-.23h2.499v-.23h1.135v-.231h1.363v-.23l4.089-.231v-.23h2.271v-.23h.909v-.231h2.271v-.23h.909v-.231h2.499v-.23h1.135v-.23h2.272v-.231h1.363v-.23h2.499v-.231h1.135v-.23l2.726-.23v-.231h1.817v-.23h2.272v-.231l3.407-.23v-.23h2.044v-.231h1.59v-.23h.909v-.231h2.726v-.23h.908v-.23h1.59v-.231h1.59v-.23h1.818v-.231h1.362v-.23h2.499v-.23h1.817v-.231h1.136v-.23h2.044v-.231h1.136v-.23h1.59v-.23h2.726v-.231h1.136v-.23h1.363v-.231h2.044v-.23h2.044v-.23h1.59v-.231h.909v-.23l5.906-.461v-.23h1.363v-.231h2.044c3.483-1.037 8.168-.777 11.585-1.843l3.861-.23v-.231h.909v-.23h2.044v-.231h1.817v-.23h1.818v-.23l2.953-.231v-.23h2.725v-.231h1.363v-.23h1.136v-.231h1.817v-.23h2.045v-.23zM3.634 132.881l.455.231v.46l.454.231v.461l1.363 1.152.227.921 1.136.922v.461l1.136.921v.461h.227l.454.691.454.231v.46l.455.231.227.691 1.135.922v.46l.909.692v.46l.681.461v.461l.91.691v.461l1.362 1.152v.461l.454.23v.461l1.136.922v.46h.227l.454.692.455.23v.461l.454.23v.461l.909.691v.461l1.135.922v.46l1.136.922v.461l.454.23v.461l.91.461v.461l.453.23v.461l1.136.921v.461l.909.691v.461l.681.461v.461l.909.691v.461l.454.23v.461h.227l.454.691h.455c.142.528.199.557.454.922h.227v.691l1.363 1.152v.461l.909.691v.461l1.59 1.382v.461l.454.231v.46l.454.231.227.691h.228c.322.403.53.557.681 1.152h.454l.228.691 1.362 1.152v.461l.682.461v.461l.454.23.227.691 1.136.922.227.921 1.363 1.152v.461l.682.461v.461l1.135.921v.461l1.136.922v.461l.909.691v.461l1.135.921.228.922 1.362 1.152v.461l1.136.921v.461l.909.691v.461l.681.461v.461l.682.46v.461l1.817 1.613v.461h.227c.218.288.17.441.454.691.18.125 0 .298.455.23v-.23h.681v-.23h2.272c2.1-.624 5.148-.5 7.268-1.152h1.136v-.231l.454.231v-.231h1.136v-.23h2.272v-.231l.454.231v-.231h1.363v-.23h2.271c1.969-.576 4.41-.576 6.36-1.152h2.953v-.23h.682v-.231h1.363v-.23h2.271v-.231h2.499v-.23h1.59v-.23h1.59v-.231h1.817v-.23h1.136v-.231h2.272v-.23h1.362v-.23h2.499v-.231h1.363v-.23h1.363v-.231h2.044v-.23h1.817v-.23h1.136v-.231h2.272v-.23h2.271v-.231h2.044v-.23l2.953-.23v-.231l.682.231c2.328-.624 5.414-.692 7.723-1.383h2.044v-.23h1.817v-.231h2.272v-.23h1.136v-.23h1.363v-.231h2.271v-.23h1.59v-.231h1.363v-.23h2.953c1.401-.413 3.407-.518 4.77-.922h2.272v-.23h.908v-.23h1.59v-.231h2.045v-.23h2.271v-.231h1.363v-.23h2.044c5.026-1.507 11.784-1.037 16.809-2.534h2.953v-.231h1.363v-.23h2.044v-.231h2.045c4.41-1.344 10.524-.969 14.992-2.304h2.271v-.23h.909v-.23h2.044l1.363-.231v-.23h2.953v-.231h2.044c2.329-.71 5.547-.672 7.951-1.382h2.498v-.23h1.363v-.231l.682.231c1.192-.327 2.479-.72 4.088-.692v-.46c-.785-.221-1.495-1.085-2.044-1.613l-.227-.461h-.455c-.577-.422-.388-.893-1.362-1.152-.275-.24-1.439-.413-2.045-.23-1.987.585-4.836.547-6.814 1.152h-1.136v.23l-3.862.23v.231h-1.59v.23h-1.59v.231h-1.59v.23h-1.817v.23h-2.271v.231h-1.136v.23h-2.272v.231h-1.817c-1.827.547-4.335.614-6.133 1.152h-1.817v.23l-7.042.691v.231h-1.135v.23l-4.089.23v.231h-1.136v.23h-1.817v.231c-.521.134-.634-.279-.909-.231v.231h-.908v.23h-2.045v.23h-1.363v.231h-1.59v.23h-2.044c-1.931.576-4.713.586-6.587 1.152h-1.817v.231h-1.818v.23h-1.59v.23h-2.271c-2.858.855-6.711.768-9.54 1.613h-1.818v.231h-1.362v.23h-1.591v.23h-2.725v.231h-2.045v.23h-.681v.231h-2.272v.23h-1.363v.23h-2.044v.231h-1.59v.23h-1.59v.231h-1.817c-2.858.864-6.701.777-9.54 1.612h-2.272v.231h-1.363v.23h-1.817v.231h-2.271v.23h-1.136v.23h-1.59v.231h-2.499v.23h-1.136v.231H96.54v.23h-1.82v.23h-1.363v.231l-3.18.23v.231h-2.271v.23H86.09v.23h-2.5v.231h-.908v.23h-2.271c-3.303 1.085-7.941.835-11.358 1.843h-2.271c-1.193.356-2.868.557-4.089.922h-1.817c-1.306.394-3.379.701-4.997.691-.265-.998-.72-.787-1.136-1.382v-.461l-2.044-1.843-.227-.691-.682-.231v-.461l-.909-.691v-.461l-1.362-1.152v-.46l-.455-.231v-.461l-.681-.46-.227-.692H47.7c-.16-.595-.36-.748-.681-1.152h-.227v-.46c-.095-.144-.303-.173-.455-.461h-.454l-.227-.691h-.227v-.461l-.454-.231v-.46l-.682-.461v-.461l-.454-.461h-.455l-.681-.921h-.227v-.461l-.454-.231v-.46l-1.136-.922v-.461l-1.136-.921v-.461l-.454-.231v-.23l-.454-.23v-.461h-.228c-.265-.336-.321-.403-.454-.922h-.454l-.227-.691-.682-.461-.227-.691c-.53-.451-.435.25-.681-.691h-.455c-.142-.509-.189-.576-.454-.922h-.227v-.461l-.454-.23-.228-.691-.908-.692-.227-.691-1.136-.921v-.461l-.909-.691v-.461l-.681-.461v-.461l-1.363-1.152-.227-.691-.454-.23v-.461l-2.045-1.843v-.461l-.681-.461v-.461l-.682-.461v-.46l-1.136-.922v-.461l-1.362-1.152c-.445-.47-.52-1.065-.909-1.613l-.454-.23c-.691-.739-1.76-1.67-2.045-2.765H18.4c-.199-.758-.7-1.085-1.136-1.613h-.227v-.46l-.454-.231v-.461l-1.363-1.152v-.46l-.454-.231v-.23l-.455-.231v-.46l-.454-.231c-.379-.528.246-.413-.681-.691-.161-.595-.36-.749-.682-1.152h-.227v-.461h-.227l-.454-.691-.455-.23v-.461l-1.135-.922v-.461l-1.136-.921v-.461l-1.59-1.382v-.461l-.682-.461c-.426-.614-.52-1.2-1.135-1.613v-.23l-2.953.691c.198.864.634 1.306 1.135 1.843M129.248 18.833l-.454.23-.228.922h-.227v.46l-.454.23v1.614l1.363.23c-.01.663-.076.989-.227 1.383-1.126 0-1.59-.154-2.272-.461-.104-.26-.653-1.479-.681-1.613-.057-.298 1.391-3.84 1.59-4.147h.227l.681-.922h.909c.01 1.114.246 1.095.227 1.152l-.454.23zm-2.726-.23c-.549.191-.473-.375-.681-.462h-.455v-.69h.228l.227-.692h1.135c0 .845-.018 1.238-.454 1.613zm4.316 1.382c-.133-.461.028-.202-.227-.461.123-.97.322-.749.681-1.383l1.363.23c0 1.038-.151 1.259-.454 1.844-.653-.01-.975-.077-1.363-.23m-51.336 5.53v.23h.682v.23h.681v.23h.455v.23q1.02.117 2.044.231c-.01.663-.076.99-.227 1.383-1.477-.02-2.016-.202-2.953-.691h-.455l-.227-.461h-.454v-.23l-.681-.231v-.922h.227v-.23zm149.465 46.54v.461h-.228v.922h-.227v.921h-.227v.692h-.227v.69h-.227l-.227.922h-.228v.922h-.227c.057.547.095.566.227.922l3.408.23v-.23h2.271v-.23l.682.23v-.23l3.407-.462v-.23h.681v-.23h.909v-.23h1.136v-.231h.454v-.23c1.202-.615 2.281-.711 2.953-1.844h1.363l.227.691.454.23v.462h.227v.69h.228v.692h.227v.46h.227v.922h.227v.692h.227v.69h.227v.692h.227v.691h.228v.46h.227v.692l.454.23.454 2.535h.228l.227.921h.227l1.363 4.148H251l-.227 1.152c-.719.096-1.145.307-1.59.691l-.227.46h-.455l-.227.462-.908.23-.228.46h-.454v.231l-1.363.23v.231l-1.135.23v.23l-.909.231v.23h-.682v.231h-.681v.23h-.681v.23h-1.136v.231h-.682v.23h-.681v.231l-3.407.23v.23c-.53.135-.625-.278-.909-.23v.23c-1.439.28-5.735.078-6.814-.23h-3.18v-.23h-.455v-.23h-.681v-.23l-3.407-.692v-.23h-.455v-.23l-1.135-.231v-.23h-.909v-.231h-.454v-.23l-.682-.23v-6.222h.227v-.69h.227v-2.075c-4.931-.096-9.133-1.094-12.72-2.534l-1.363-.23v-.23h-.681v-.231h-.455v-.23h-.681v-.23h-.681l-.228-.462-1.135-.23-.228-.46-.908-.231-.227-.461h-.455l-.681-.922h-.454l-.455-.69c-.709-.51-1.344-.606-1.817-1.383h-.454c-.218-.816-.653-.884-1.136-1.383l-2.499-2.764h-.227v-.23h.227l.228-.692h.227v-.46l.454-.231.227-.922.455-.23v-.461l.681-.46.227-.923.682-.46.454-1.383.454-.23v-.46l.682-.462v-.46l.454-.23.227-.692h.227v-.46l.455-.231v-.461l.454-.23v-.461l.454-.23v-.462h.227c.332-.422.549-.739.682-1.382h.454c.142-.557.237-.509.454-.922h1.818v.23h.454l.454.922h.454l.909 1.152h.454l.227.461h.455l.908 1.152h.455l.454.461h.454v.23h.455v.23h.454v.231h.454v.23h.454v.231l1.363.46v.231h.682v.23h.454v.231h.682v.23h.454v.23q.68.117 1.363.231v.23h.454v.231h.681v.23h.455v.23h.681v.231h.909v.23h.681v.231h.909v.23h.909c1.58.528 4.779 1.19 6.587.692.747-.212 1.58.201 2.044-.23 1.382-.02 1.893.019 2.726.46-.019 1.258-.038 2.15-.454 2.995zm-11.358 21.428 7.042 2.304h2.044v.23l4.316.23v-.23h3.861l5.225-.691v-.23l2.044-.461v-.23l.909-.231v-.23h.681v-.231l.909-.23v-.23l2.726-.922.227-.461h.454l.227-.461.682-.23-.227-1.844-.455-.23-.227-1.382h-.227l-.227-.922h-.227v-.691h-.228l-.227-.922h-.227v-.691h-.227v-.922h-.227v-.69h-.227v-.692h-.227v-.691h-.228v-.461h-.227l-.227-1.613h-.227v-.46h-.227v-.692c-.208-.509-.559-.96-.682-1.613l-2.271 1.383-1.363.23v.23h-.454v.23h-.909v.231h-.681v.23h-1.136v.231h-1.136v.23h-1.136v.23h-1.363c-.795.24-4.098.558-5.224.231-.483-.144-1.155-.384-1.817-.46-.123 1.775-1.079 2.899-1.136 4.838-2.64.048-4.391.921-7.041.921-.464 1.248-.455 2.861-.455 4.609v1.843h-.227zm10.449-23.27-4.543.46v-.23c-.341-.049-1.098.499-2.044.23v-.23h-1.136v-.23h-1.59v-.231h-.682v-.23l-2.044-.231v-.23h-.454v-.23l-1.59-.231v-.23h-.682v-.231l-1.59-.23v-.23h-.454l-.227-.462-1.363-.23v-.23l-.909-.23v-.231h-.681v-.23l-1.363-.462v-.23h-.454v-.23l-.909-.23-.227-.462-1.363-.46-.454-.691-.909-.23-.681-.923h-.455l-1.59-1.843c-.445.058-.681-.029-.908.23v.461l-.682.461v.461l-.681.46-.227.923-.455.23v.46l-.681.462v.46l-.454.23v.462l-.455.46v.461h-.227v.46l-.454.231v.461l-.682.46v.462l-.454.23v.46h-.227v.462l-.454.23v.46c-.209.366-.786 1.143-1.136 1.383.132 1.171.681 1.71 1.363 2.304v.23c.7.52 1.088.346 1.363 1.383.501.144.568.192.908.46v.231h.455l.227.461h.227l.227.46h.454l.455.692h.681v.23l.681.23.228.462.908.23v.23l1.363.461v.23h.682v.231h.454v.23l1.363.23v.231h.454v.23l6.587 1.844 3.408.23v.23l3.407.231v-.23l1.59.23v-.23h.681v-.23c1.278-.394 3.02.182 4.089-.461.71-.423.786-2.544 1.136-3.456h.227v-.692h.227v-.69h.227v-.692h.227v-.691h.228v-.461h.227V75.28h.227v-.691h.227v-.692h.227v-.69h.227l.227-.922h.228c.284-.72-.019-1.296.454-1.844zm-43.386 4.377v.23h.455l.227.46.908.231.228.461.908.23.227.461c.729.461 1.694.49 2.272 1.152h.227c-.161.336-.199.375-.227.922-2.47-.029-3.322-1.094-4.77-2.074h-.455l-.227-.46c-.653-.452-.946-.423-1.363-1.153h-.227c.161-.335.199-.374.227-.921.985.038 1.032.02 1.59.46m-1.135 1.843.454.691h.454l.454.691h.455l.227.461.909.23.227.461.908.23v.231l.682.46c-.142.558-.237.51-.455.922-.984-.201-2.224-.643-2.953-1.151l-.454-.692h-.454l-.227-.46h-.455l-.681-.922h-.454l-.455-.691c-.293-.26-1.031-.73-1.362-.922l.227-1.152c.691.211.208.23.908 0l.682.922h.454l.454.69zm22.26 79.949v-.461c-.757-.211-1.713-1.315-2.271-1.843l-.227-.461h-.455l-.681-.921h-.454l-.682-.922h-.454l-.909-1.152h-.454l-2.499-2.765h-.454c-.767-.528-1.798-1.478-2.272-2.304h-.454c-.293-.998-1.675-1.296-2.271-2.304h-.455v-.461c-.747-.201-1.069-.71-1.59-1.152v-.23h-.454l-.454-.691h-.455l-.908-1.152h-.227l-.227-.691h-.455l-.454-.692h-.454l-1.363-1.612h-.455l-.908-1.152h-.454l-1.59-1.844h-.455l-1.363-1.612h-.454v-.461c-.88-.231-1.883-1.258-2.499-1.843l-.227-.461-.681-.231-.682-.921c-.672-.49-1.116-.432-1.363-1.383-.709-.182-1.353-.71-1.817-1.152l-.227-.46h-.454l-1.59-1.844h-.455l-1.59-1.843h-.454l-.908-1.152h-.455l-.681-.922h-.455l-.227-.691h-.454l-1.59-1.843h-.454l-.682-.922h-.454v-.46c-.587-.154-.748-.365-1.136-.692v-.23h-.454l-.682-.922c-.331-.48.161-.883.682-1.152v-.23c.501.134.577.192.908.461v.23h.455l.227.461.909.691.227.461h.454l1.817 2.074h.454l.455.691h.454l1.59 1.843h.454l1.363 1.613h.455l.681.922h.454c.228.787.758.758 1.136 1.382h.454c.275 1.008.975 1.008 1.59 1.613l.909 1.152h.454l.228.461h.454l1.817 2.073h.454l1.136 1.383h.454v.46l2.272 1.613 1.136 1.383.681.23.681.922h.455l1.817 2.073h.454l1.363 1.613c.786.566 1.287.49 1.817 1.382h.455c.255.951.691.884 1.363 1.383l.908 1.152h.454l2.045 2.304h.454l.454.691h.228l.227.461h.454l1.817 2.073h.454l.455.692h.454l.682.921h.454l2.726 2.995h.454l1.136 1.383h.454l.681.921h.455l.454.692h.454v.46l.682.231v.461l.454.23v.23h.454v.231l.909.691-.682.922c-1.722-.212-1.978-1.69-3.407-2.074m-47.701-27.878c.984.268.776.729 1.363 1.152h.454l1.363 1.612 1.136.922.227.461h.454l3.18 3.456c.606.614 1.373 1.065 1.817 1.843h.455v.461c.88.249.71.691 1.59.921.274 1.037.662.864 1.363 1.383v.23l.681.461.227.691c.776.864 1.884 1.248 2.499 2.304h.454c.161.663.246.768.909.922v.461c1.088.297 1.562 1.372 2.271 2.073l1.363.922v.461l1.136.921.227.461h.454l.682.922.681.23v.461l.682.23 1.135 1.383h.228v.46c.785.221 1.296.884 1.817 1.383l.227.461h.454l.455.691h.227v.461l.454.23.454.691h.455l.227.461 1.817 1.613-.227.921c-.454.135-.199-.028-.454.231-1.524-.192-2.083-1.431-2.953-2.304l-.682-.461v-.23h-.454l-3.635-3.917-.681-.231-1.136-1.382h-.454v-.461l-1.817-1.613-.227-.46h-.455l-2.044-2.304-1.59-1.383-.454-.691h-.455l-2.044-2.304c-.814-.816-2.158-1.258-2.499-2.534h-.454l-.681-.922-2.499-2.304-.227-.461h-.454l-.228-.461c-.747-.518-1.325-.576-1.59-1.612-1.012-.279-1.4-1.191-2.044-1.844l-3.18-2.995-1.136-1.382h-.454l-2.044-2.304h-.455l-1.363-1.613h-.454l-.227-.461h-.227l-1.818-2.304h-.454l-2.271-2.534h-.455l-.227-.461-1.135-.922v-.461l-.455-.23-.454-.691h-.454l-2.499-2.765c.076-.691.019-.634.454-.922v-.23c1.098.691 2.073 1.411 2.953 2.304l1.363 1.613h.454l.228.461h.454l3.861 4.147c.767.749 1.704 1.066 2.272 2.074h.454c.199.739.578.816.909 1.382h.454c.275.941.161.25.682.691l.454.922c.634.633 1.306.557 1.59 1.613m-48.837 39.859c-.152.096-.01.336-.454.23l-3.181-2.995-.227-.691c-.303-.336-1.126-.624-1.363-.922v-.461l-2.271-2.073-.682-.922-.454-.23v-.461l-1.817-1.613v-.461l-.681-.23v-.23l-1.136-.922v-.461l-1.817-1.613-.228-.691h-.454v-.23c-.331-.317-.303-.115-.454-.691-.937-.25-.87-.701-1.363-1.383l-1.136-.921-.227-.692-2.044-1.843-.909-1.382h-.454l-1.363-1.613h-.227v-.461h-.455v-.23l-.454-.231v-.46l-.454-.231c-.54-.576-1.855-1.776-2.044-2.534h-.455c-.312-1.152-2.158-2.4-2.953-3.226l-.681-1.152-.682-.23v-.461l-1.135-.922v-.46l-.455-.461h-.454l-.227-.461-.682-.461v-.461l-.908-.691v-.461h-.455q-.907-1.037-1.817-2.073l-.681-.461v-.461l-.909-.691-.908-1.152-.455-.23v-.461l-.454-.231-1.136-1.612.682-.461v-.231c.785.212 1.296.884 1.817 1.383l.227.461h.455v.23l.908.691.227.691 2.272 2.074v.461l3.407 3.225v.461l.454.231.682.921c1.202 1.219 2.886 2.275 3.634 3.917h.454c.246.893.824 1.066 1.363 1.613l1.817 2.073 1.136.922.227.691 1.59 1.383v.46l3.18 2.996v.46l1.136.922.227.461h.455l.454.691.454.23v.461l1.136.922v.461l.681.46.228.461h.454l.454.922 2.044 1.843v.461c1.212.336 1.714 1.737 2.499 2.534l2.726 2.535v.46l.454.231.682.921 2.044 1.844v.46l1.136.922v.461l.681.461c-.17.624-.057.528-.681.691M35.435 132.88l-.681.922c-.379.269-.511 0-.909.461H32.71v-.231h-.227l.227-.921c1.155-.288 1.799-1.085 2.5-1.844l.453-.23c.37-.528.426-1.181.909-1.613v-1.843h-.227c-.436-.451-2.925-1.018-4.089-.691 0 0-.028.192-.454.23h-2.726c-.454.144-1.107.519-1.363.922-1.287-.058-1.05-.394-1.59-1.152h-.227l-.454-.691c-.7 0-1.164.067-1.59.23v.461h-.455v.461c-.643.172-.653.412-1.135.691l-.455 2.073c1.742 0 3.294.048 4.543.461h.909v.231h.454v.23h.682v.23h.454v.231h.454l.227.461h.455v.23l.908.691v.461l.682.461c-.01.662-.076.989-.227 1.382-.994.202-4.203.941-5.68.461v-.23h-.68v-.231h-.455v-.23h-.681v-.231h-.455v-.23h-.454l-.454-.691h-.455l-1.362-1.843c-.88.096-1.174.403-1.818.691-.189-.298-.151-.279-.454-.461v-.922l2.044-.691v-2.073c1.183-1.056 1.41-3.015 3.408-3.456.814-.778 1.779-.087 2.953 0v.691h.227l.227.691c.511-.077.596-.019.909-.23v-.231h.454v-.23h2.271v-.231c1.6-.46 5.793.327 6.36.922.332.202.521.317.682.691v.461h.227c-.028 2.87-1.315 3.878-2.726 5.299m-10.221.922v.23h1.363v.231c.86.019 2.489.201 2.952-.231h.228c-.17-.393-.597-1.171-.91-1.382h-.453c-1.458-.759-4.013-1.344-5.906-.922.34 1.325 1.514 1.613 2.726 2.074m42.477 11.059 2.044 1.843v.461l1.363 1.152c1.23 1.248 2.375 2.467 3.407 3.917l2.272 2.073v.461l.454.231v.23c.577.547.861.125 1.136 1.152h.454v.461c.643.173.549.278.908.691h.228l.227.691h.454l.454.461v.461l2.499 2.304v.461l2.044 1.843c.436.605.52 1.2 1.136 1.613-.142.557-.237.509-.454.921-1.032-.029-1.401-.297-1.59-1.152h-.455c-.274-1.008-1.107-1.296-1.363-2.304h-.454c-.218-.825-.757-.969-1.135-1.613h-.455c-.236-.892-.823-1.065-1.363-1.612l-2.725-3.226h-.455c-.312-1.181-1.486-1.574-2.044-2.534h-.455c-.208-.759-.7-1.085-1.135-1.613h-.227v-.461l-.682-.461-1.363-1.613-.681-.23v-.461l-2.272-2.073v-.461l-4.543-4.378-.227-.691-2.044-1.843v-.461l-2.044-1.843v-.461l-1.136-.691-.455-.691h-.227v-.461l-.908-.691v-.461l-1.136-.922v-.461l-1.136-.921v-.461l-2.044-1.843v-.461h-.227v-.23c-.52-.452-.407.249-.682-.692h-.227v-1.152c1.76.039 1.647.97 2.499 1.844l1.363 1.152v.46h.227l.681.922 1.136.922v.46l.454.231v.23l1.363 1.152v.461c.417.586.9.442 1.136 1.382h.454v.231l1.363 1.152v.461l.682.46v.231h.454l.227.691 1.59 1.382v.461l3.407 3.226z\"\n fill=\"#222\"\n />\n </StyledSvg>\n </OakBox>\n );\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\n\nexport type OakTeacherNotesInlineProps = {\n sanitizedHtml?: string | TrustedHTML;\n};\n\nconst LeftScrollBox = styled(OakBox)`\n direction: rtl;\n\n & > * {\n direction: ltr;\n }\n\n scrollbar-color: ${() => parseColor(\"bg-decorative2-main\")} #fff;\n\n a{\n color: ${() => parseColor(\"icon-link-active\")}; \n text-decoration: underline;\n }\n\n a::active {\n color: ${() => parseColor(\"text-link-active\")};\n }\n\n a::hover {\n color: ${() => parseColor(\"text-link-hover\")};\n }\n\n a::visited {\n color: ${() => parseColor(\"text-link-visited\")};\n }\n\n a::pressed {\n color: ${() => parseColor(\"text-link-pressed\")};\n }\n\n}\n\n`;\n\nexport const OakTeacherNotesInline = ({\n sanitizedHtml,\n}: OakTeacherNotesInlineProps) => {\n const innerHtml = sanitizedHtml ?? \"\";\n return (\n <OakBox\n $pv=\"spacing-24\"\n $pr=\"spacing-24\"\n $ba={\"border-solid-m\"}\n $borderColor={\"bg-decorative2-main\"}\n $borderRadius={\"border-radius-l\"}\n data-testid={\"oak-teacher-notes-inline\"}\n >\n <LeftScrollBox\n $overflow={\"scroll\"}\n $pl=\"spacing-24\"\n $height={\"spacing-72\"}\n dangerouslySetInnerHTML={{ __html: innerHtml }}\n />\n </OakBox>\n );\n};\n","import React from \"react\";\n\nimport { OakInlineBanner } from \"@/components/messaging-and-feedback/OakInlineBanner\";\nimport { OakLink } from \"@/components/navigation/OakLink\";\nimport { OakModalCenter } from \"@/components/messaging-and-feedback/OakModalCenter\";\nimport { OakSmallPrimaryButton } from \"@/components/buttons/OakSmallPrimaryButton\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakGrid } from \"@/components/layout-and-structure/OakGrid\";\nimport { OakGridArea } from \"@/components/layout-and-structure/OakGridArea\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { OakP } from \"@/components/typography/OakP\";\nimport { OakSmallSecondaryToggleButton } from \"@/components/buttons/OakSmallSecondaryToggleButton\";\n\ntype EditorContainerProps = {\n editorNode: React.ReactNode;\n onBoldClick: () => void;\n onBulletListClick: () => void;\n isBold: boolean;\n isBulletList: boolean;\n remainingCharacters: number;\n};\n\nconst EditorContainer = ({\n editorNode,\n remainingCharacters,\n isBold,\n isBulletList,\n onBoldClick,\n onBulletListClick,\n}: EditorContainerProps) => {\n return (\n <OakFlex\n $pa={\"spacing-12\"}\n $background={\"bg-neutral\"}\n $flexDirection={\"column\"}\n $alignItems={\"flex-start\"}\n $borderRadius={\"border-radius-m2\"}\n $alignSelf={\"stretch\"}\n $gap={\"spacing-12\"}\n >\n <OakFlex\n $pa={\"spacing-12\"}\n $background={\"bg-primary\"}\n $height={\"spacing-240\"}\n $minHeight={\"spacing-72\"}\n $borderRadius={\"border-radius-s\"}\n $borderColor={\"border-primary\"}\n $ba={\"border-solid-m\"}\n $alignSelf={\"stretch\"}\n $overflowY=\"scroll\"\n >\n {editorNode}\n </OakFlex>\n <OakGrid>\n <OakGridArea $colSpan={[5, 6]}>\n <OakP $font={\"body-3\"}>\n You have <b>{remainingCharacters}</b> characters remaining\n </OakP>\n </OakGridArea>\n <OakGridArea $colSpan={[7, 6]}>\n <OakFlex $gap={\"spacing-8\"} $justifyContent={\"flex-end\"}>\n <OakSmallSecondaryToggleButton\n onClick={onBoldClick}\n toggleOn={isBold}\n >\n Bold\n </OakSmallSecondaryToggleButton>\n <OakSmallSecondaryToggleButton\n onClick={onBulletListClick}\n toggleOn={isBulletList}\n >\n Bullet List\n </OakSmallSecondaryToggleButton>\n </OakFlex>\n </OakGridArea>\n </OakGrid>\n </OakFlex>\n );\n};\n\nexport type OakTeacherNotesModalProps = {\n isOpen: boolean;\n onClose: () => void;\n onShareClicked: () => void;\n progressSaved: boolean;\n noteShared: boolean;\n error?: boolean;\n termsAndConditionsHref: string;\n shareLinkDisabled?: boolean;\n footer?: React.ReactNode;\n} & EditorContainerProps;\n\nexport const OakTeacherNotesModal = ({\n isOpen,\n onClose,\n onShareClicked,\n progressSaved,\n noteShared,\n error,\n termsAndConditionsHref,\n shareLinkDisabled,\n footer,\n ...rest\n}: OakTeacherNotesModalProps) => {\n let message = undefined;\n\n if (error) {\n message = \"An error occurred\";\n } else if (progressSaved) {\n message = \"Progress saved\";\n } else if (noteShared) {\n message = \"Link copied to clipboard\";\n }\n\n const messageColor = error ? \"text-error\" : \"text-success\";\n const messageIcon = error ? \"error\" : \"tick\";\n\n const messageRender = message && (\n <OakFlex $gap={\"spacing-4\"} $alignItems={\"center\"}>\n <OakIcon\n iconName={messageIcon}\n $colorFilter={messageColor}\n $width={\"spacing-20\"}\n $height={\"spacing-20\"}\n />\n <OakHeading tag=\"h2\" $font={\"body-3-bold\"} $color={messageColor}>\n {message}\n </OakHeading>\n </OakFlex>\n );\n\n return (\n <OakModalCenter\n isOpen={isOpen}\n onClose={onClose}\n modalInnerFlexProps={{\n $ph: [\"spacing-16\", \"spacing-32\"],\n }}\n modalFlexProps={{\n \"aria-label\": \"teacher notes dialog\",\n \"aria-describedby\":\n \"use this dialog enter and to store teacher notes about a lesson\",\n }}\n >\n <OakFlex\n $flexDirection=\"column\"\n $alignItems=\"center\"\n $pb=\"spacing-24\"\n $gap=\"spacing-24\"\n >\n <OakHeading tag=\"h1\" $font={\"body-3-bold\"}>\n Add a teacher note to the page and share the link with your colleague.\n </OakHeading>\n\n <EditorContainer {...rest} />\n <OakGrid>\n <OakGridArea $colSpan={[0, 6]} $display={[\"none\", \"block\"]}>\n {messageRender}\n </OakGridArea>\n <OakGridArea $colSpan={12}>\n <OakFlex\n $gap=\"spacing-16\"\n $width={\"100%\"}\n $justifyContent={[\"center\", \"flex-end\"]}\n $alignItems=\"center\"\n $flexDirection={[\"column\", \"row\"]}\n >\n {footer && (\n <OakFlex $flexGrow={1} $alignSelf=\"flex-start\">\n {footer}\n </OakFlex>\n )}\n <OakSmallPrimaryButton\n onClick={onShareClicked}\n iconName=\"copy\"\n isTrailingIcon\n disabled={shareLinkDisabled}\n >\n Share link\n </OakSmallPrimaryButton>\n </OakFlex>\n </OakGridArea>\n </OakGrid>\n <OakFlex\n $alignSelf={\"stretch\"}\n $justifyContent={\"center\"}\n $display={[\"flex\", \"none\"]}\n >\n {messageRender}\n </OakFlex>\n <OakInlineBanner\n isOpen={true}\n type=\"alert\"\n message={\n <>\n <OakP $font=\"heading-light-7\">\n Please do not include any personal or sensitive information that\n could be used to identify, locate, or contact an individual,\n either directly or indirectly.\n </OakP>\n <OakP $font=\"body-2\" $mt=\"spacing-4\">\n Names, email addresses, or other personal information will be\n redacted from your note to help keep everyone safe. For more\n guidance, see our{\" \"}\n <OakLink\n target={\"_blank\"}\n href=\"https://www.thenational.academy/legal/terms-and-conditions\"\n aria-label=\"Oak's terms and conditions(opens in a new tab)\"\n >\n Terms & conditions\n </OakLink>\n .\n </OakP>\n </>\n }\n />\n </OakFlex>\n </OakModalCenter>\n );\n};\n","import React, { useState } from \"react\";\nimport styled from \"styled-components\";\n\nimport { InternalLink } from \"@/components/internal-components/InternalLink\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { OakLI } from \"@/components/typography/OakLI\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport { OakAnchorTarget } from \"@/components/navigation/OakAnchorTarget\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\n\nconst StyledNav = styled.nav`\n outline: none;\n`;\nconst StyledOakLink = styled(InternalLink)`\n text-decoration: none;\n color: inherit;\n width: 100%;\n display: Flex;\n width: 100%;\n &:focus {\n box-shadow: none;\n }\n\n &::before {\n content: counter(list-counter);\n min-width: 32px;\n height: 32px;\n border-radius: 50%;\n background-color: ${parseColor(\"bg-inverted\")};\n color: ${parseColor(\"text-inverted\")};\n text-align: center;\n line-height: 32px;\n margin-right: ${parseSpacing(\"spacing-12\")};\n text-decoration: none;\n }\n &:hover::before {\n background-color: ${parseColor(\"bg-btn-primary-hover\")};\n box-shadow: ${parseDropShadow(\"drop-shadow-lemon\")};\n text-decoration: none;\n }\n\n &:focus-within::before {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n text-decoration: none;\n }\n &:active {\n color: ${parseColor(\"text-primary\")};\n }\n &:active::before {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-lemon\")},\n ${parseDropShadow(\"drop-shadow-grey\")};\n background-color: ${parseColor(\"bg-inverted\")};\n }\n`;\n\nconst StyledOL = styled.ol`\n list-style: none;\n padding: 0;\n margin: 0;\n text-decoration: none;\n`;\n\nconst StyledOLItem = styled(OakLI)`\n position: relative;\n counter-increment: list-counter;\n display: flex;\n align-items: center;\n margin-bottom: ${parseSpacing(\"spacing-12\")};\n min-height: 40px;\n &:last-child {\n margin-bottom: 0;\n }\n\n &:hover {\n text-decoration: underline;\n color: ${parseColor(\"bg-btn-primary-hover\")};\n }\n`;\n\nexport type OakTertiaryOLNavProps = {\n title?: string;\n items: { title: string; href: string }[];\n ariaLabel?: string;\n anchorTarget?: string;\n onClick?: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;\n};\n\nexport const OakTertiaryOLNav = ({\n items,\n ariaLabel,\n title,\n anchorTarget,\n onClick,\n ...rest\n}: OakTertiaryOLNavProps) => {\n const [currentHref, setCurrentHref] = useState<string | null>(null);\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLAnchorElement>) => {\n if (event.key && event.key !== \"Tab\") {\n setCurrentHref(event.currentTarget.hash);\n }\n };\n\n return (\n <StyledNav aria-label={ariaLabel} {...rest}>\n {anchorTarget && <OakAnchorTarget id={anchorTarget} />}\n {title && (\n <OakBox $mb={\"spacing-24\"}>\n <OakSpan $font={\"heading-light-7\"}>{title}</OakSpan>\n </OakBox>\n )}\n <StyledOL role=\"list\">\n {items.map((item, index) => (\n <StyledOLItem $font={\"heading-7\"} key={index}>\n <StyledOakLink\n onClick={onClick}\n href={item.href}\n aria-current={item.href === currentHref ? \"true\" : undefined}\n onKeyDown={handleKeyDown}\n >\n {item.title}\n </StyledOakLink>\n </StyledOLItem>\n ))}\n </StyledOL>\n </StyledNav>\n );\n};\n","import React from \"react\";\n\nimport {\n OakModalCenter,\n OakModalCenterBody,\n} from \"@/components/messaging-and-feedback/OakModalCenter\";\nimport { OakPrimaryButton } from \"@/components/buttons/OakPrimaryButton\";\nimport { OakPrimaryInvertedButton } from \"@/components/buttons/OakPrimaryInvertedButton\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { OakIconName } from \"@/components/images-and-icons/OakIcon\";\n\nexport type OakPupilContentGuidance = {\n contentguidanceLabel: string | null;\n contentguidanceDescription: string | null;\n contentguidanceArea: string | null;\n};\n\nexport type OakPupilJourneyContentGuidanceProps = {\n /**\n * If true the modal will be open, if false it will be closed\n */\n isOpen: boolean;\n /**\n * Callback function to be called when the pupil accepts the content guidance\n */\n onAccept: () => void;\n /**\n * Callback function to be called when the pupil declines the content guidance\n */\n onDecline: () => void;\n /**\n * Title of the modal\n */\n title?: string;\n /**\n * An array of objects containing the content guidance label, description and area\n */\n contentGuidance?: OakPupilContentGuidance[] | null;\n /**\n * The level of supervision required for the content\n */\n supervisionLevel?: string | null;\n /**\n * The text to be displayed on the accept button\n */\n acceptText?: string;\n /**\n * The text to be displayed on the decline button\n */\n declineText?: string;\n /**\n * The icon to be displayed on the decline button\n */\n declineIcon?: OakIconName;\n};\n\nexport const removedGuidanceDuplicates = (\n contentGuidance: OakPupilContentGuidance[] | null = [],\n) => {\n return Array.from(\n new Set(\n contentGuidance?.map(\n (guidance: OakPupilContentGuidance) => guidance.contentguidanceLabel,\n ),\n ),\n );\n};\n\n/**\n * This component is used to display content guidance to the pupil before they proceed to the lesson\n *\n * ##Props\n *\n * - **isOpen** \\- If true the modal will be open, if false it will be closed\n * - **onAccept** \\- Callback function to be called when the pupil accepts the content guidance\n * - **onDecline** \\- Callback function to be called when the pupil declines the content guidance\n * - **contentGuidance** \\- An array of objects containing the content guidance label, description and area\n * - **supervisionLevel** \\- The level of supervision required for the content\n * - **acceptText** \\- The text to be displayed on the accept button\n * - **declineText** \\- The text to be displayed on the decline button\n * - **declineIcon** \\- The icon to be displayed on the decline button\n */\nexport const OakPupilJourneyContentGuidance = ({\n isOpen,\n onAccept,\n onDecline,\n title = \"Content guidance\",\n contentGuidance,\n supervisionLevel = null,\n acceptText = \"I understand, continue\",\n declineText = \"Take me back to lessons\",\n declineIcon = \"arrow-left\",\n}: OakPupilJourneyContentGuidanceProps) => {\n return (\n <OakModalCenter\n isOpen={isOpen}\n modalFlexProps={{ \"aria-label\": `${title} modal` }}\n footerSlot={\n <OakFlex\n $alignItems=\"center\"\n $flexDirection=\"column\"\n $justifyContent=\"center\"\n $pv=\"spacing-24\"\n $rowGap=\"spacing-24\"\n >\n <OakPrimaryButton\n $font=\"heading-7\"\n onClick={onAccept}\n data-testid=\"acceptButton\"\n >\n {acceptText}\n </OakPrimaryButton>\n <OakPrimaryInvertedButton\n $font=\"heading-7\"\n iconName={declineIcon}\n onClick={onDecline}\n data-testid=\"declineButton\"\n >\n {declineText}\n </OakPrimaryInvertedButton>\n </OakFlex>\n }\n hideCloseButton\n >\n <OakModalCenterBody\n iconName=\"warning\"\n iconOverride={{\n $colorFilter: \"icon-warning\",\n }}\n title={title}\n >\n <OakFlex $flexDirection=\"column\" $rowGap=\"spacing-32\">\n {removedGuidanceDuplicates(contentGuidance).map(\n (guidance, index: number) => (\n <OakHeading\n key={index}\n $font={[\n \"heading-light-7\",\n \"heading-light-7\",\n \"heading-light-6\",\n ]}\n $textAlign=\"center\"\n tag=\"h2\"\n >\n {guidance}\n </OakHeading>\n ),\n )}\n {supervisionLevel && (\n <OakHeading\n $font={[\"heading-light-7\", \"heading-light-7\", \"heading-light-6\"]}\n $textAlign=\"center\"\n tag=\"h2\"\n >\n {supervisionLevel}\n </OakHeading>\n )}\n </OakFlex>\n </OakModalCenterBody>\n </OakModalCenter>\n );\n};\n","import React from \"react\";\n\nimport { OakSpan, OakSpanProps } from \"@/components/typography/OakSpan\";\n\nexport type OakBulletListProps = {\n listItems: string[];\n} & OakSpanProps;\n\n/**\n * An inline bulleted list\n */\nexport const OakBulletList = (props: OakBulletListProps) => {\n const { listItems, ...rest } = props;\n return (\n <OakSpan {...rest}>\n {listItems.map((item, i) => {\n return (\n <OakSpan key={i}>\n {i !== 0 && <OakSpan> • </OakSpan>}\n <OakSpan>{item}</OakSpan>\n </OakSpan>\n );\n })}\n </OakSpan>\n );\n};\n","import styled from \"styled-components\";\n\nimport {\n OakFlex,\n OakFlexProps,\n} from \"@/components/layout-and-structure/OakFlex\";\n\nexport type InternalCardProps = OakFlexProps;\n\nexport const internalCardDefaults = {\n $pa: \"spacing-24\",\n $flexDirection: \"column\",\n $flexGrow: 1,\n $position: \"relative\",\n} satisfies Partial<InternalCardProps>;\n\n/**\n *\n * InternalCard extends OakFlex. It has all the props of OakFlex, but applies default styles for consistency.\n *\n */\nconst InternalCard = styled(OakFlex).attrs<InternalCardProps>((props) => ({\n ...internalCardDefaults,\n ...props,\n}))``;\n\nexport { InternalCard };\n","import React, { ReactElement } from \"react\";\nimport styled from \"styled-components\";\n\nimport {\n InternalCard,\n InternalCardProps,\n} from \"@/components/internal-components/InternalCard\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\n\nexport type InternalCardWithBackgroundElementProps = InternalCardProps & {\n backgroundElement: ReactElement;\n};\n\n/**\n * The `backgroundElement` should be sized to fit the entire card\n */\nconst StyledBackgroundBox = styled(OakBox)`\n & > * {\n width: 100%;\n height: 100%;\n }\n`;\n\n/**\n * A flexed card with a presentational background element positioned behind the card contents.\n */\nexport const InternalCardWithBackgroundElement = ({\n backgroundElement,\n children,\n ...props\n}: InternalCardWithBackgroundElementProps) => {\n return (\n <InternalCard {...props}>\n <StyledBackgroundBox $position=\"absolute\" $inset=\"spacing-0\" aria-hidden>\n {backgroundElement}\n </StyledBackgroundBox>\n <OakBox $position=\"relative\">{children}</OakBox>\n </InternalCard>\n );\n};\n","import React from \"react\";\n\nimport {\n InternalCardWithBackgroundElement,\n InternalCardWithBackgroundElementProps,\n} from \"@/components/internal-components/InternalCardWithBackgroundElement/InternalCardWithBackgroundElement\";\nimport {\n InternalStyledSvg,\n InternalStyledSvgProps,\n} from \"@/components/internal-components/InternalStyledSvg\";\n\nexport type OakHandDrawnCardProps = Omit<\n InternalCardWithBackgroundElementProps,\n \"backgroundElement\"\n> & {\n fill?: InternalStyledSvgProps[\"$fill\"];\n stroke?: InternalStyledSvgProps[\"$stroke\"];\n strokeWidth?: InternalStyledSvgProps[\"$strokeWidth\"];\n};\n\n/**\n * A flexed card with a hand-drawn filled background\n *\n * An optional `stroke` and `strokeWidth` can be applied to give the background a border\n */\nexport const OakHandDrawnCard = ({\n $pa = \"spacing-24\",\n fill = \"bg-decorative1-main\",\n stroke,\n strokeWidth,\n $width = \"fit-content\",\n ...props\n}: OakHandDrawnCardProps) => {\n return (\n <InternalCardWithBackgroundElement\n $pa={$pa}\n $width={$width}\n backgroundElement={\n <InternalStyledSvg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 457 120\"\n preserveAspectRatio=\"none\"\n $fill={fill}\n $stroke={stroke}\n $strokeWidth={strokeWidth}\n >\n <path\n d=\"M27.442 2.59c5.262-.362 11.96-.656 18.624-.932 4.374-.19 8.748-.371 12.712-.578 1.367-.07 3.042-.087 4.716-.095C65.032.976 66.57.959 67.903.907 91.858-.017 115.164.268 139.325.57l6.22.078c20.333.12 40.768.086 61.033-.13 6.664-.025 13.294-.043 19.957-.06C243.656.415 260.777.363 277.83.234c8.85-.07 17.667-.052 26.518-.035 12.132.026 24.366.052 36.771-.147 8.475-.138 17.633.087 26.757.302 3.725.087 7.45.182 11.107.25 3.69.061 7.347.139 10.969.217 4.511.095 8.988.19 13.499.259 13.464.207 30.619 1.519 30.619 1.519 3.588.449 7.074 1.32 10.286 2.59 2.973 1.304 4.682 4.135 6.391 6.967.717 1.165 1.435 2.33 2.221 3.384.273.363.342.812.376 1.26.034.406.102.82.307 1.175 3.52 6.388 2.427 12.604 1.299 19.044a27.243 27.243 0 0 0-.273 1.658 70.082 70.082 0 0 0 .478 16.273l.205 5.31c.171 4.575.342 9.133.854 13.683.274 2.357.205 4.705.137 7.07-.102 3.238-.205 6.492.547 9.808.547 2.261-.308 4.705-1.162 7.13-.342.993-.684 1.986-.923 2.962-.239.984-.546 1.951-.82 2.926-.342 1.2-.718 2.392-.991 3.6-1.196 5.379-4.511 8.435-11.756 9.134-2.392.233-4.75.518-7.142.855h-6.937c-5.263.371-11.961.656-18.624.932-4.375.19-8.749.371-12.713.579-1.367.069-3.041.086-4.716.095-1.538.008-3.075.025-4.408.086-23.956.924-47.262.639-71.422.337l-6.186-.078a3693.945 3693.945 0 0 0-61.033.129c-6.664.026-13.294.044-19.958.061-17.121.043-34.241.095-51.294.224-8.851.069-17.667.052-26.518.035-12.132-.026-24.366-.052-36.771.147-8.475.138-17.633-.087-26.758-.303-3.725-.086-7.45-.181-11.106-.25-3.69-.06-7.313-.138-10.97-.216-4.51-.095-8.987-.19-13.498-.259-18.932-.293-30.175-1.079-33.66-2.754-1.47-.38-2.871-.837-4.238-1.355-3.076-1.304-4.887-4.135-6.664-6.967-.752-1.165-1.47-2.331-2.29-3.384-.273-.363-.341-.812-.376-1.261-.034-.405-.102-.82-.307-1.174C0 95.664 1.128 89.448 2.324 83.008l.308-1.658c.478-5.421.341-10.869-.513-16.273-.102-1.77-.17-3.548-.24-5.318-.17-4.567-.375-9.125-.888-13.675-.273-2.357-.205-4.705-.136-7.07.102-3.238.205-6.493-.581-9.808-.547-2.262.341-4.705 1.196-7.13.342-.994.717-1.986.99-2.962.24-.984.548-1.96.855-2.927.376-1.2.752-2.39 1.025-3.6C5.605 7.21 9.022 4.154 16.574 3.455c2.495-.233 10.936-.855 10.936-.855l-.069-.009Z\"\n vectorEffect=\"non-scaling-stroke\"\n />\n </InternalStyledSvg>\n }\n {...props}\n />\n );\n};\n","import React from \"react\";\n\nimport {\n OakHandDrawnCardProps,\n OakHandDrawnCard,\n} from \"@/components/owa/OakHandDrawnCard\";\nimport { OakIcon, OakIconProps } from \"@/components/images-and-icons/OakIcon\";\n\nexport type OakHandDrawnBoxWithIconProps = Omit<\n OakHandDrawnCardProps,\n \"children\"\n> & {\n iconName: OakIconProps[\"iconName\"];\n alt?: OakIconProps[\"alt\"];\n iconColor?: OakIconProps[\"$colorFilter\"];\n iconWidth?: OakIconProps[\"$width\"];\n iconHeight?: OakIconProps[\"$height\"];\n};\n\n/**\n * A hand-drawn card with an icon in the center\n */\nexport const OakHandDrawnCardWithIcon = ({\n iconName,\n iconColor = \"text-primary\",\n iconWidth = [\"spacing-64\", \"spacing-120\"],\n iconHeight = [\"spacing-64\", \"spacing-120\"],\n alt,\n $width = [\"spacing-80\", \"spacing-160\"],\n $height = [\"spacing-80\", \"spacing-160\"],\n $alignItems = \"center\",\n $justifyContent = \"center\",\n ...props\n}: OakHandDrawnBoxWithIconProps) => {\n return (\n <OakHandDrawnCard\n $width={$width}\n $height={$height}\n $alignItems={$alignItems}\n $justifyContent={$justifyContent}\n {...props}\n >\n <OakIcon\n iconName={iconName}\n alt={alt}\n $height={iconHeight}\n $width={iconWidth}\n $colorFilter={iconColor}\n />\n </OakHandDrawnCard>\n );\n};\n","import React from \"react\";\n\nimport {\n OakBulletList,\n OakBulletListProps,\n} from \"@/components/owa/OakBulletList\";\nimport { OakHandDrawnCardWithIcon } from \"@/components/owa/OakHandDrawnCardWithIcon\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { OakIconProps } from \"@/components/images-and-icons/OakIcon\";\nimport { FlexStyleProps } from \"@/styles/utils/flexStyle\";\n\nexport type OakPupilJourneyHeaderProps = {\n title: string;\n iconName: OakIconProps[\"iconName\"];\n alt?: OakIconProps[\"alt\"];\n iconBackground?: \"primary\" | \"secondary\";\n breadcrumbs: OakBulletListProps[\"listItems\"];\n optionalityTitle?: string;\n} & FlexStyleProps;\n\n/**\n * This component is the header for the pupil journey;\n *\n * the icon, title and list of items are passed as props and change change depending on which page it is called\n *\n *\n */\nexport const OakPupilJourneyHeader = ({\n iconBackground = \"primary\",\n title,\n iconName,\n alt,\n breadcrumbs,\n optionalityTitle,\n}: OakPupilJourneyHeaderProps) => {\n return (\n <OakFlex $flexDirection={\"row\"} $gap={\"spacing-24\"}>\n <OakHandDrawnCardWithIcon\n fill={getIconBackground(iconBackground)}\n iconName={iconName}\n $flexGrow={0}\n iconHeight={[\"spacing-48\", \"spacing-56\", \"spacing-56\"]}\n iconWidth={[\"spacing-48\", \"spacing-56\", \"spacing-56\"]}\n $width={[\"spacing-64\", \"spacing-80\", \"spacing-80\"]}\n $height={[\"spacing-64\", \"spacing-80\", \"spacing-80\"]}\n alt={alt}\n />\n <OakFlex $flexDirection={\"column\"} $gap={\"spacing-16\"}>\n {optionalityTitle && (\n <OakHeading tag=\"h2\" $font={[\"heading-7\"]}>\n {optionalityTitle}\n </OakHeading>\n )}\n <OakHeading tag=\"h1\" $font={[\"heading-5\", \"heading-4\"]}>\n {title}\n </OakHeading>\n <OakBulletList listItems={breadcrumbs} />\n </OakFlex>\n </OakFlex>\n );\n};\n\nfunction getIconBackground(iconBackground: \"primary\" | \"secondary\") {\n return iconBackground === \"primary\"\n ? \"bg-decorative4-main\"\n : \"bg-decorative3-main\";\n}\n","import React, { ReactNode } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { getBreakpoint } from \"@/styles/utils/responsiveStyle\";\nimport { backgrounds } from \"@/image-map\";\n\nexport type PupilJourneySectionName =\n | \"tier-listing\"\n | \"examboard-listing\"\n | \"unit-listing\"\n | \"lesson-listing\"\n | \"subject-listing\"\n | \"year-listing\";\n\nexport type Phase = \"primary\" | \"secondary\";\n\nexport type OakPupilJourneyLayoutProps = {\n sectionName: PupilJourneySectionName;\n phase?: Phase;\n topNavSlot?: ReactNode;\n children: ReactNode;\n};\n\nconst StyledLayoutBox = styled(OakFlex)<{\n sectionName: PupilJourneySectionName;\n phase?: Phase;\n}>`\n @media (min-width: ${getBreakpoint(\"large\")}px) {\n ${(props) => css`\n background-image: url(${getBackgroundUrlForSection(\n props.sectionName,\n props?.phase,\n )});\n background-repeat: no-repeat;\n background-position-x: center;\n background-size: 100%;\n `}\n`;\n\n/**\n * Provides overall page layout and colours for the pupil journey\n *\n * Used for the unit, lesson and tiers/programme factor listing pages\n *\n * the sections of the page are passed in as props and children\n */\n\nexport const OakPupilJourneyLayout = ({\n sectionName,\n topNavSlot,\n phase,\n children,\n}: OakPupilJourneyLayoutProps) => {\n const backgroundColor = (() => {\n switch (true) {\n case sectionName === \"lesson-listing\" && phase === \"primary\":\n return \"bg-decorative4-very-subdued\";\n case sectionName === \"lesson-listing\" && phase === \"secondary\":\n return \"bg-decorative3-very-subdued\";\n case sectionName === \"unit-listing\" && phase === \"primary\":\n return \"bg-decorative4-very-subdued\";\n case sectionName === \"unit-listing\" && phase === \"secondary\":\n return \"bg-decorative3-very-subdued\";\n case sectionName === \"tier-listing\" && phase === \"primary\":\n return \"bg-decorative4-very-subdued\";\n case sectionName === \"tier-listing\" && phase === \"secondary\":\n return \"bg-decorative3-very-subdued\";\n case sectionName === \"subject-listing\":\n case sectionName === \"year-listing\":\n return \"bg-decorative1-main\";\n }\n })();\n\n return (\n <StyledLayoutBox\n $background={backgroundColor}\n $flexDirection=\"column\"\n $alignItems={\"center\"}\n $ph={[\"spacing-12\", \"spacing-24\"]}\n sectionName={sectionName}\n phase={phase}\n >\n {topNavSlot && (\n <OakFlex\n $height={[\"spacing-80\", \"spacing-92\", \"spacing-120\"]}\n $alignItems={\"center\"}\n $width={[\"100%\", \"100%\", \"spacing-1280\"]}\n >\n {topNavSlot}\n </OakFlex>\n )}\n {children}\n </StyledLayoutBox>\n );\n};\n\nexport function getBackgroundUrlForSection(\n sectionName: PupilJourneySectionName,\n phase?: Phase,\n) {\n const prefix = `https://${process.env.NEXT_PUBLIC_OAK_ASSETS_HOST}/${process.env.NEXT_PUBLIC_OAK_ASSETS_PATH}/`;\n switch (sectionName) {\n case \"lesson-listing\":\n return phase === \"primary\"\n ? `${prefix}${backgrounds[\"confetti-pink\"]}`\n : `${prefix}${backgrounds[\"confetti-lavender\"]}`;\n case \"unit-listing\":\n return phase === \"primary\"\n ? `${prefix}${backgrounds[\"line-pink\"]}`\n : `${prefix}${backgrounds[\"line-lavender\"]}`;\n case \"subject-listing\":\n return `${prefix}${backgrounds[\"line-mint\"]}`;\n case \"year-listing\":\n return `${prefix}${backgrounds[\"confetti-mint\"]}`;\n default:\n return \"\";\n }\n}\n","import React from \"react\";\n\nimport {\n InternalStyledSvg,\n InternalStyledSvgProps,\n} from \"@/components/internal-components/InternalStyledSvg\";\n\nexport const HandDrawnHRSvg = (props: InternalStyledSvgProps) => {\n return (\n <InternalStyledSvg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 866 8\"\n preserveAspectRatio=\"none\"\n height=\"100%\"\n width=\"100%\"\n {...props}\n >\n <g clipPath=\"url(#clip0_175_6785)\">\n <path\n d=\"M865.845 2.15897C865.975 1.74492 865.563 1.33087 864.955 1.33087C788.833 1.21257 638.585 4.00739 558.84 1.30129C560.814 1.22736 562.55 1.36044 563.287 1.18299C546.019 0.946396 526.408 1.10906 509.119 1.44917C530.292 -0.0295749 543.785 1.41959 562.289 0.931608C559.556 0.872458 545.347 0.842884 554.436 0.798521C547.538 0.369686 533.003 0.754159 530.27 0.621072C522.113 0.177449 549.794 0.724584 549.23 0.399261C544.219 0.0295749 524.586 0.295749 522.937 0C522.959 0.369686 522.352 0.295749 522.612 0.399261C423.669 0.724584 317.892 0.340111 218.666 0.828096C218.861 0.828096 219.013 0.828096 219.078 0.857671C218.753 0.902033 217.451 0.857671 218.579 0.828096C154.909 1.71534 98.6582 -0.502773 49.7396 2.18854C59.3281 0.0887246 12.145 1.39002 8.34861 1.52311C2.75172 1.44917 6.69991 1.96673 8.13168 1.67098C8.43539 2.91312 0.799314 1.73013 2.20938 3.12015C-18.7247 12.7024 115.622 4.7024 130.504 6.96488C127.011 6.21072 147.056 7.34935 148.705 6.93531C147.859 6.89094 146.362 6.78743 144.692 6.75786C140.396 6.72828 151.525 6.07763 149.486 6.93531C150.354 7.18669 153.282 6.44732 152.935 6.93531C154.714 7.06839 166.385 5.75231 158.814 6.92052C165.647 6.52126 168.077 7.68946 162.046 6.26987C222.332 7.55638 283.247 5.8854 342.34 6.29945C458.66 5.97412 569.839 6.10721 682.124 6.69871C679.932 6.22551 684.532 6.07763 683.36 6.69871C715.076 6.71349 731.801 6.81701 762.432 6.99446C757.486 6.72828 758.68 6.13678 763.821 6.55083C784.278 7.51202 841.353 7.73383 863.784 6.96488C863.35 6.68392 864.804 6.77264 864.782 6.92052C864.955 5.84104 865.259 5.84104 864.717 5.95934C864.76 5.95934 863.697 6.32902 864.001 5.73752C864.153 5.44177 864.999 5.60444 864.088 5.30869C864.652 5.30869 866.192 4.90943 864.608 5.02773C861.723 4.17006 866.778 4.99815 865.91 4.42144C865.519 4.12569 865.606 2.95749 865.845 2.15897ZM526.43 0.606285C528.448 0.650647 526.539 0.754159 525.476 0.606285C524.825 0.547135 525.042 0.547135 526.43 0.606285ZM17.0694 1.61183C17.0694 1.61183 17.3731 1.58226 17.308 1.62662C17.2646 1.6414 17.0694 1.6414 17.0694 1.61183ZM18.0889 1.15342C18.1974 1.15342 18.2408 1.15342 18.3059 1.16821H17.8286C17.8286 1.16821 17.9805 1.15342 18.0889 1.15342ZM18.371 1.41959C18.371 1.41959 18.3059 1.40481 18.371 1.39002V1.41959ZM36.8971 2.04067C30.6928 1.68577 40.9321 1.62662 42.6242 2.08503C42.4072 2.08503 37.4611 2.04067 36.8971 2.04067ZM63.6451 1.34566C67.5933 1.34566 62.4302 1.41959 61.736 1.36044C62.018 1.34566 62.8641 1.34566 63.6451 1.34566ZM84.8395 3.88909C84.5141 3.88909 84.6226 3.87431 84.8395 3.87431V3.88909ZM92.1068 1.58226C80.2405 2.24769 61.6926 1.878 59.0461 1.61183C67.2028 1.43438 85.2734 1.52311 95.3608 1.47874C94.3629 1.47874 93.2565 1.52311 92.1068 1.58226ZM97.183 2.41035C96.6841 2.38078 97.5084 2.30684 97.4867 2.41035C97.4867 2.41035 97.3566 2.41035 97.183 2.41035ZM95.9899 1.47874C96.8142 1.44917 97.5518 1.46396 98.1809 1.47874C97.5084 1.49353 96.7709 1.49353 95.9899 1.47874ZM100.589 1.53789C100.589 1.53789 99.7862 1.50832 98.5714 1.47874C100.415 1.50832 101.348 1.46396 102.368 1.52311C102.238 1.53789 101.587 1.53789 100.589 1.53789ZM101.869 1.18299C101.869 1.18299 102.997 1.15342 103.105 1.18299C102.867 1.21257 101.999 1.21257 101.869 1.18299ZM107.704 1.84843C107.704 1.84843 107.509 1.84843 107.422 1.83364C107.769 1.83364 107.856 1.83364 107.704 1.84843ZM139.29 1.21257C138.704 1.18299 139.767 1.13863 139.724 1.18299C139.659 1.19778 139.463 1.21257 139.29 1.21257ZM141.633 5.6488C140.982 5.6488 141.199 5.60444 141.633 5.61922V5.6488ZM177.882 6.50647C162.654 6.71349 183.132 5.97412 183.588 5.73752C183.588 5.78189 181.006 6.50647 177.882 6.50647ZM185.779 0.946396H184.564C183.631 0.916821 186.56 0.931608 185.779 0.946396ZM209.945 1.00555C210.488 0.975971 210.813 0.975971 211.355 1.00555C212.18 1.02033 209.099 1.02033 209.945 1.00555ZM202.244 6.41775C199.077 6.46211 192.873 6.50647 188.989 6.66913C187.818 5.67837 202.873 6.38817 202.244 6.41775ZM213.264 6.41775C212.874 6.46211 208.492 6.46211 208.231 6.43253C207.667 6.50647 214.175 5.45656 213.264 6.41775ZM218.905 6.19593C218.601 6.19593 215.434 6.38817 215.087 6.38817C215.412 6.28466 220.336 6.01849 218.905 6.19593ZM226.801 0.857671C226.953 0.842884 227.343 0.842884 227.495 0.857671C227.3 0.872458 226.996 0.872458 226.801 0.857671ZM256.152 0.768946C258.018 0.768946 255.914 0.783734 255.588 0.783734C255.718 0.768946 255.914 0.768946 256.152 0.768946ZM252.855 4.00739C252.291 3.97782 254.742 3.26802 254.634 3.62292C254.46 3.66728 253.115 4.05176 252.855 4.00739ZM257.757 4.99815C257.302 4.92422 255.415 4.33272 254.677 4.43623C255.501 4.24399 258.625 4.87985 257.757 4.99815ZM254.785 3.46026C255.133 3.43068 257.541 3.38632 257.259 3.43068C257.888 3.46026 254.937 3.48983 254.785 3.46026ZM259.363 3.59335C258.669 3.59335 257.757 3.10536 257.757 3.07579C257.974 3.07579 261.836 2.88355 259.363 3.59335ZM258.886 2.01109C256.456 2.04067 254.72 1.65619 254.417 1.62662C253.332 1.44917 266.543 1.70055 258.886 2.01109ZM264.157 4.64325L263.181 4.02218C262.226 3.44547 265.35 4.40665 264.157 4.64325ZM289.712 3.50462C290.71 3.50462 291.686 4.24399 290.948 4.25878C288.432 3.90388 285.655 2.91312 289.712 3.50462ZM271.424 2.20333C273.203 2.45471 281.577 1.00555 275.394 2.54344C275.763 2.42514 267.389 2.15897 271.424 2.20333ZM275.893 3.12015C276.717 2.79482 278.345 3.6525 278.019 4.09612C277.542 4.09612 275.893 3.20887 275.893 3.12015ZM284.223 2.97227C281.447 2.45471 286.935 2.21811 287.022 2.07024C287.022 2.1146 285.351 3.01664 284.223 2.97227ZM290.862 5.36784C288.822 5.36784 287.477 5.33826 287.477 5.33826C286.653 3.91867 298.172 6.0037 290.862 5.36784ZM296.719 5.07209C293.053 4.39187 298.671 4.5841 298.91 4.61368C298.91 4.64325 297.717 5.07209 296.719 5.07209ZM317.219 3.43068C320.126 4.62847 316.178 3.7708 315.744 3.4159C315.917 3.38632 316.612 3.40111 317.219 3.43068ZM304.702 4.39187C302.967 5.13124 304.116 4.03697 304.42 3.93346C305.526 3.69686 306.459 4.12569 304.702 4.39187ZM307.587 3.35675C307.457 3.16451 302.858 2.43993 305.808 2.67653C306.741 2.5878 307.001 2.7061 305.895 2.67653C306.958 2.7061 307.978 3.32717 307.587 3.35675ZM310.928 2.54344C309.561 2.54344 311.253 1.78928 312.533 1.98152C312.403 1.9963 311.362 2.54344 310.928 2.54344ZM319.649 5.56007C320.343 5.58965 309.323 5.66359 314.572 5.54529C317.284 6.31423 322.751 2.98706 319.649 5.56007ZM329.411 5.24954C326.808 5.27911 331.884 4.64325 331.992 4.61368C332.339 4.67283 330.235 5.2939 329.411 5.24954ZM335.355 2.24769C334.704 2.01109 338.023 2.5878 338.413 2.29205C338.023 2.41035 335.897 3.00185 335.355 2.24769ZM346.201 4.12569C343.338 4.12569 344.097 3.97782 346.57 3.82994C349.499 4.52495 348.696 4.42144 346.201 4.12569ZM359.977 3.01664C359.977 3.01664 355.421 3.07579 355.248 3.061C355.226 3.19409 362.211 1.49353 359.977 3.01664ZM413.364 0.902033C414.102 0.857671 414.492 0.872459 414.536 0.902033C415.555 1.70055 411.889 0.842884 413.364 0.902033ZM371.886 1.52311C370.238 2.51386 367.656 1.52311 365.704 1.52311C365.704 1.47874 371.322 1.46396 371.886 1.52311ZM364.966 3.03142C363.816 3.87431 362.905 3.81516 364.25 2.60259C365.205 1.90758 366.919 2.01109 364.966 3.03142ZM370.954 6.01849C369.999 6.01849 366.81 6.01848 366.485 5.91497C367.266 5.8854 375.574 4.92422 370.954 6.01849ZM378.546 6.01849C375.943 5.90019 376.117 5.2939 377.722 5.4122C379.956 5.23475 382.581 5.50093 378.546 6.01849ZM387.267 3.57856C386.312 3.56377 386.963 2.76525 388.178 2.76525C390.413 2.98706 389.87 3.51941 387.267 3.57856ZM393.623 1.80407C389.545 1.58226 393.341 1.12384 394.795 1.34566C397.506 1.00555 397.745 1.37523 393.623 1.80407ZM401.303 5.84104C396.942 5.87061 401.216 5.38263 402.734 5.24954C403.429 5.2939 402.301 5.84104 401.303 5.84104ZM405.207 4.03697C405.164 4.14048 404.904 4.52495 403.472 4.02218C400.934 2.76525 406.162 3.82995 405.207 4.03697ZM408.722 4.11091C407.116 4.11091 404.253 3.68207 407.42 3.68207C407.746 2.60259 410.761 3.93346 408.722 4.11091ZM410.848 1.62662C409.958 1.46396 406.704 1.16821 409.546 0.680222C410.11 0.680222 413.581 1.81885 410.848 1.62662ZM412.93 5.4122C413.147 5.38263 414.232 4.33272 415.902 4.85028L412.93 5.4122ZM429.027 0.857671C430.393 0.857671 434.71 0.813309 435.708 0.887246C436.424 1.25693 425.643 2.52865 429.027 0.857671ZM437.878 0.857671C438.181 0.813309 439.309 0.828096 439.591 0.916821C431.587 2.83919 437.14 0.946396 437.878 0.857671ZM451.653 5.35305C451.176 5.35305 448.898 4.83549 448.898 4.80592C448.898 4.79113 450.807 4.5841 451.111 4.5841C453.562 4.65804 452.412 5.44177 451.653 5.35305ZM480.245 3.4159C478.661 3.6525 474.822 3.6525 474.822 3.4159C474.149 3.38632 481.568 3.14972 480.245 3.4159ZM485.69 5.32348C473.325 5.45656 491.829 4.64325 490.983 5.0573C490.983 5.23475 491.46 5.23475 485.69 5.32348ZM495.018 2.51386C494.454 2.51386 493.977 2.43993 493.977 2.36599C494.194 1.98152 497.252 2.45471 495.018 2.51386ZM502.524 2.26248C502.307 2.45471 501.656 2.49908 500.159 2.60259C492.285 2.85397 502.871 1.65619 502.524 2.26248ZM506.429 2.39556C510.377 2.3512 507.275 2.89834 505.105 2.41035C505.214 2.39556 505.648 2.39556 506.429 2.39556ZM506.559 3.13494C507.926 3.13494 509.01 3.22366 509.01 3.31238C508.338 3.4159 501.136 3.12015 506.559 3.13494ZM522.243 5.75231C518.36 6.38817 511.418 5.91497 507.253 5.4122C510.16 5.66359 522.547 5.33826 522.243 5.75231ZM590.057 3.48983C589.319 3.59335 587.128 3.59335 586.391 3.48983C587.367 3.2976 588.972 3.31238 590.057 3.48983ZM582.551 2.20333C586.109 1.98152 588.083 1.98152 588.083 2.20333C588.777 2.41035 577.019 2.61738 582.551 2.20333ZM564.545 1.71534C566.302 1.71534 566.064 2.83919 564.155 2.07024C563.699 1.86322 563.374 1.67098 564.545 1.71534ZM558.84 1.71534C560.619 1.7597 562.007 1.83364 563.049 2.07024C561.899 2.29205 549.273 1.70055 558.84 1.71534ZM553.438 3.72643C543.893 3.4159 556.107 3.20887 556.801 3.72643C556.801 3.87431 555.564 3.87431 553.438 3.72643ZM562.897 3.23845C561.205 3.26802 556.15 2.92791 560.749 2.89834C562.398 2.86876 567.474 3.19409 562.897 3.23845ZM567.17 2.54344C565.261 2.54344 563.96 2.54344 563.504 2.4695C565.977 2.17375 576.846 2.57301 567.17 2.54344ZM573.939 5.51571C571.704 5.51571 569.708 5.42699 569.708 5.35305C570.62 4.89464 582.79 5.45656 573.939 5.51571ZM588.885 5.67837C588.712 5.87061 575.37 6.15157 583.354 5.57486C586.911 5.23475 590.859 5.33826 588.885 5.67837ZM595.979 4.09612C594.678 4.18484 594.743 5.14603 593.137 3.99261C593.051 3.99261 587.28 4.37708 587.193 4.37708C588.517 3.50462 594.981 3.80037 595.979 4.09612ZM602.444 2.49908C606.913 2.54344 602.097 2.61738 600.795 2.52865C600.795 2.52865 601.489 2.49908 602.444 2.49908ZM601.576 4.53974C601.12 4.53974 600.556 4.4658 600.405 4.37708C599.428 3.66728 603.767 4.76155 601.576 4.53974ZM605.112 4.42144C603.724 4.42144 602.769 4.25878 602.422 4.09612C602.986 3.44547 611.468 4.28836 605.112 4.42144ZM622.315 5.24954C616.544 5.14603 619.365 3.68207 624.311 4.74677C626.09 4.99815 625.612 5.24954 622.315 5.24954ZM654.269 2.97227C655.788 2.8244 656.482 2.8244 657.068 2.97227C657.849 3.1793 651.926 3.13494 654.269 2.97227ZM651.124 2.39556C656.243 2.43993 650.712 2.5878 649.714 2.52865C648.651 2.39556 649.28 2.39556 651.124 2.39556ZM633.943 5.51571C634.767 5.11645 637.066 5.13124 637.826 5.51571C636.763 5.7671 635.006 5.7671 633.943 5.51571ZM646.047 3.97782C638.368 3.59335 651.774 3.72643 653.553 3.97782C660.907 4.89464 647.241 4.25878 646.047 3.97782ZM653.271 5.97412C652.859 5.72274 661.211 5.73752 660.777 5.97412C660.322 6.34381 654.031 6.16636 653.271 5.97412ZM667.611 3.09057C661.276 3.2976 665.398 1.89279 669.563 2.92791C670.691 3.09057 670.236 3.09057 667.611 3.09057ZM676.18 6.3586C675.789 6.38817 669.715 6.53605 669.476 6.38817C670.214 5.91497 676.245 6.37338 676.657 6.3586C676.375 6.38817 676.223 6.3586 676.18 6.3586ZM683.121 4.21442C682.774 4.21442 682.514 4.03697 682.514 3.85952C682.579 2.83919 684.814 4.3475 683.121 4.21442ZM696.875 5.5305C694.445 5.75231 693.122 5.75231 693.122 5.5305C692.558 5.32348 700.476 5.11645 696.875 5.5305ZM699.283 4.61368C691.17 4.48059 701.713 3.99261 702.754 4.49538C702.754 4.49538 701.257 4.61368 699.283 4.61368ZM701.474 3.80037C693.231 3.84473 704.598 3.1793 705.205 3.66728C705.205 3.80037 703.643 3.80037 701.474 3.80037ZM706.03 5.81146C705.27 5.11645 709.436 5.70795 709.327 5.81146C709.978 6.16636 706.811 6.16636 706.03 5.81146ZM716.746 6.56562C716.985 6.90573 706.919 6.50647 711.844 6.26987C714.815 6.122 717.679 6.26987 716.746 6.56562ZM718.091 4.22921C714.75 4.19963 714.707 3.72643 718.091 3.82994C721.28 3.72643 721.237 4.19963 718.091 4.22921ZM770.459 3.20887C772.455 3.20887 773.995 3.44547 773.995 3.68207C772.889 4.56932 763.083 3.25324 770.459 3.20887ZM730.934 4.08133C730.5 4.08133 730.76 3.96303 731.715 3.84473C736.856 3.28281 732.322 4.36229 730.934 4.08133ZM735.663 6.49168C732.799 6.49168 732.799 5.95934 735.663 5.95934C738.44 5.95934 738.44 6.49168 735.663 6.49168ZM737.854 4.49538C736.986 4.49538 736.27 4.42144 736.27 4.34751C735.771 4.09612 741.108 4.45102 737.854 4.49538ZM738.591 3.97782C737.767 3.97782 736.682 3.94824 736.27 3.84473C736.791 3.68207 744.687 3.91867 738.591 3.97782ZM756.922 5.5305C723.276 5.90019 765.556 4.73198 769.83 5.33826C769.83 5.33826 763.843 5.5305 756.922 5.5305ZM767.726 6.83179C758.745 6.56562 775.687 6.68392 775.34 6.83179C776.056 6.96488 772.997 6.96488 767.726 6.83179ZM785.124 4.96858C784.451 5.73752 778.572 6.75786 782.022 5.78189C782.868 5.54529 788.009 3.60813 785.124 4.96858ZM787.705 6.4769C789.289 6.04806 793.454 6.07763 795.016 6.4769C793.02 6.75786 789.701 6.75786 787.705 6.4769ZM808.206 5.87061C802.066 5.47135 813.868 4.61368 811.633 5.58965C811.633 6.13678 811.112 6.13678 808.206 5.87061ZM839.986 5.57486C838.229 5.57486 836.559 5.57486 836.277 5.4122C836.993 4.53974 847.601 5.58965 839.986 5.57486ZM858.404 5.94455C847.839 5.7671 869.988 0.635859 859.163 5.7671C858.361 6.21072 859.163 6.4769 858.404 5.94455ZM862.461 5.8854C862.461 5.97412 859.424 6.40296 859.185 6.37338C860.009 6.22551 863.61 4.15527 862.461 5.8854ZM864.088 5.07209C864.088 5.07209 864.174 5.04251 864.218 5.04251C864.348 5.14603 863.914 5.19039 864.088 5.07209Z\"\n fill=\"inherit\"\n />\n </g>\n </InternalStyledSvg>\n );\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { HandDrawnHRSvg } from \"./HandDrawnHRSvg\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { InternalStyledSvgProps } from \"@/components/internal-components/InternalStyledSvg\";\nimport { SizeStyleProps } from \"@/styles/utils/sizeStyle\";\nimport { SpacingStyleProps } from \"@/styles/utils/spacingStyle\";\n\nconst StyledOakFlex = styled(OakFlex)``;\n\nexport type OakHandDrawnHRProps = {\n hrColor?: InternalStyledSvgProps[\"$fill\"];\n} & SpacingStyleProps &\n SizeStyleProps;\n\n/**\n * A Drawn HR svg inside a flex container\n *\n * use prop hrColor to change the color of the HR\n *\n * change the sizeProps of the flex container to change the size and dimentions of the HR\n */\nexport const OakHandDrawnHR = (props: OakHandDrawnHRProps) => {\n const { hrColor, ...flexProps } = props;\n\n return (\n <StyledOakFlex focusable={false} {...flexProps}>\n <HandDrawnHRSvg $fill={hrColor} />\n </StyledOakFlex>\n );\n};\n","import React from \"react\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakHandDrawnHR } from \"@/components/owa/OakHandDrawnHR\";\n\nexport type OakPupilJourneyListProps = {\n children: React.ReactNode;\n phase: \"primary\" | \"secondary\";\n titleSlot?: React.ReactNode;\n filterSlot?: React.ReactNode;\n subheadingSlot: React.ReactNode;\n};\n\n/*\n \nFIXME: \nThis component falls into the swiss army knife trap. \nConditional logic is being used to handle a range of specific layout needs at a higher level in the tree.\nIt would be better to decompose this component and recompose more specific components handling the specific layout needs.\nHowever, I do not want to introduce break changes in this PR.\n\n*/\n\nconst Slots = ({\n titleSlot,\n filterSlot,\n subheadingSlot,\n}: Pick<\n OakPupilJourneyListProps,\n \"titleSlot\" | \"filterSlot\" | \"subheadingSlot\"\n>) => {\n if (titleSlot) {\n return (\n <OakFlex $flexDirection={\"column\"} $gap={\"spacing-24\"}>\n <OakFlex $flexDirection={\"column\"} $gap={\"spacing-32\"}>\n {titleSlot}\n <OakHandDrawnHR hrColor={\"bg-primary\"} $height={\"spacing-4\"} />\n </OakFlex>\n <OakFlex $flexDirection={\"column\"} $gap={\"spacing-32\"}>\n {filterSlot}\n <OakFlex>{subheadingSlot}</OakFlex>\n </OakFlex>\n </OakFlex>\n );\n } else {\n return <OakFlex $pt={\"spacing-24\"}>{subheadingSlot}</OakFlex>;\n }\n};\n\n/**\n *\n * A styled list container for use with OakPupilJourneyListItems\n *\n *\n */\n\nexport const OakPupilJourneyList = ({\n children,\n phase,\n titleSlot,\n subheadingSlot,\n filterSlot,\n}: OakPupilJourneyListProps) => {\n const outerBackgroundColor =\n phase === \"primary\"\n ? \"bg-decorative4-very-subdued\"\n : \"bg-decorative3-very-subdued\";\n const backgroundColor =\n phase === \"primary\" ? \"bg-decorative4-subdued\" : \"bg-decorative3-subdued\";\n\n return (\n <OakFlex\n $flexDirection={\"column\"}\n $width={[\"100%\", \"spacing-640\", \"spacing-960\"]}\n $background={outerBackgroundColor}\n $gap={\"spacing-24\"}\n >\n <Slots\n titleSlot={titleSlot}\n filterSlot={filterSlot}\n subheadingSlot={subheadingSlot}\n />\n <OakFlex\n $flexDirection={\"column\"}\n $pa={\"spacing-16\"}\n $borderRadius={\"border-radius-l\"}\n $gap={\"spacing-16\"}\n $background={backgroundColor}\n role=\"list\"\n >\n {children}\n </OakFlex>\n </OakFlex>\n );\n};\n","import React, { ComponentPropsWithoutRef, ElementType } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { OakRoundIcon } from \"@/components/images-and-icons/OakRoundIcon\";\nimport { parseColorFilter } from \"@/styles/helpers/parseColorFilter\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\n\ntype OakPupilJourneyListItemProps<C extends ElementType> = {\n as?: C;\n /**\n * Disable the section preventing navigation to it.\n */\n disabled?: boolean;\n /**\n * shows that a section is unavailable\n */\n unavailable?: boolean;\n index: number;\n title: string;\n numberOfLessons?: number;\n} & ComponentPropsWithoutRef<C>;\n\nconst StyledLabel = styled(OakBox)``;\n\nconst StyledRoundIcon = styled(OakRoundIcon)<{\n $disabled?: boolean;\n}>`\n width: ${parseSpacing(\"spacing-40\")};\n height: ${parseSpacing(\"spacing-40\")};\n padding: 0;\n\n background: transparent;\n\n img {\n filter: ${(props) =>\n parseColorFilter(props.$disabled ? \"icon-disabled\" : \"icon-primary\")};\n }\n`;\n\nconst activeIconStyles = css`\n ${StyledRoundIcon} {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-lemon\")},\n ${parseDropShadow(\"drop-shadow-grey\")};\n }\n`;\n\nconst hoverIconStyles = css`\n ${StyledRoundIcon} {\n background: ${parseColor(\"bg-btn-primary\")};\n\n img {\n filter: ${parseColorFilter(\"icon-inverted\")};\n }\n }\n`;\n\nconst StyledPupilJourneyItem = styled(OakFlex)<{ $disabled?: boolean }>`\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n\n ${(props) => props.$disabled && \"cursor: not-allowed\"}\n\n ${(props) =>\n !props.$disabled &&\n css`\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n background: ${parseColor(\"bg-decorative1-subdued\")};\n ${StyledLabel} {\n text-decoration: underline;\n }\n\n ${hoverIconStyles}\n }\n }\n\n &:active {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-lemon\")},\n ${parseDropShadow(\"drop-shadow-grey\")};\n ${activeIconStyles}\n ${hoverIconStyles}\n }\n `}\n`;\n\nconst FlexedOakBox = styled(OakBox)`\n flex: 1;\n`;\n\n/**\n * Enables navigation to the given section of a lesson as well as displaying current progress\n */\nexport const OakPupilJourneyListItem = <C extends ElementType = \"a\">(\n props: OakPupilJourneyListItemProps<C>,\n) => {\n const {\n as,\n lessonSectionName,\n progress,\n disabled,\n href,\n unavailable,\n onClick,\n ...rest\n } = props;\n\n const disabledOrUnavailable = disabled || unavailable;\n return (\n <OakBox role=\"listitem\">\n <StyledPupilJourneyItem\n className={disabledOrUnavailable ? undefined : \"pupil-journey-item\"}\n as={disabledOrUnavailable ? \"div\" : (as ?? \"a\")}\n $gap={[\"spacing-16\", \"spacing-32\"]}\n $alignItems=\"center\"\n $justifyContent={\"space-between\"}\n $flexWrap={\"wrap\"}\n $background={unavailable ? \"bg-neutral\" : \"bg-primary\"}\n $pa={[\"spacing-20\", \"spacing-24\"]}\n $borderRadius=\"border-radius-m\"\n $ba={unavailable ? \"border-solid-m\" : \"border-solid-none\"}\n $borderColor={unavailable ? \"border-neutral-lighter\" : \"transparent\"}\n $disabled={disabledOrUnavailable}\n $color=\"text-primary\"\n href={disabledOrUnavailable ? undefined : href}\n onClick={disabledOrUnavailable ? undefined : onClick}\n {...rest}\n >\n <OakFlex $alignItems={\"center\"} $gap={[\"spacing-32\"]}>\n {\" \"}\n <OakFlex>\n <OakBox\n $font={[\"heading-5\", \"heading-4\"]}\n $color={props.unavailable ? \"text-subdued\" : \"text-primary\"}\n $textDecoration={\"none\"}\n >\n {props.index}\n </OakBox>\n </OakFlex>\n <FlexedOakBox>\n <StyledLabel\n $font={[\"heading-6\", \"heading-5\"]}\n $color={disabledOrUnavailable ? \"text-subdued\" : \"text-primary\"}\n >\n {props.title}\n </StyledLabel>\n </FlexedOakBox>\n </OakFlex>\n\n <OakFlex\n $alignItems={\"center\"}\n $gap={\"spacing-12\"}\n $flexBasis={\"auto\"}\n $flexGrow={1}\n $justifyContent={\"flex-end\"}\n >\n {props.numberOfLessons !== undefined && !props.unavailable && (\n <StyledLabel\n $font={\"heading-7\"}\n $color={disabledOrUnavailable ? \"text-subdued\" : \"text-primary\"}\n >\n {props.numberOfLessons} lessons\n </StyledLabel>\n )}\n {props.unavailable && (\n <StyledLabel\n $font={\"heading-7\"}\n $color={disabledOrUnavailable ? \"text-subdued\" : \"text-primary\"}\n >\n Unavailable\n </StyledLabel>\n )}\n {!props.unavailable && (\n <StyledRoundIcon\n iconName=\"chevron-right\"\n $disabled={disabledOrUnavailable}\n />\n )}\n </OakFlex>\n </StyledPupilJourneyItem>\n </OakBox>\n );\n};\n","import React from \"react\";\n\nimport {\n InternalCardWithBackgroundElement,\n InternalCardWithBackgroundElementProps,\n} from \"@/components/internal-components/InternalCardWithBackgroundElement/InternalCardWithBackgroundElement\";\nimport {\n InternalStyledSvg,\n InternalStyledSvgProps,\n} from \"@/components/internal-components/InternalStyledSvg\";\n\nexport type OakCardWithHandDrawnBorderProps = Omit<\n InternalCardWithBackgroundElementProps,\n \"backgroundElement\"\n> & {\n fill?: InternalStyledSvgProps[\"$fill\"];\n stroke?: InternalStyledSvgProps[\"$stroke\"];\n strokeWidth?: InternalStyledSvgProps[\"$strokeWidth\"];\n};\n\n/**\n * A flexed card with a hand-drawn border\n *\n * An optional `stroke` and `fill` can be applied to change the color of the border\n */\nexport const OakCardWithHandDrawnBorder = ({\n $pa = \"spacing-24\",\n fill = \"bg-inverted\",\n stroke,\n $width = \"fit-content\",\n ...props\n}: OakCardWithHandDrawnBorderProps) => {\n return (\n <InternalCardWithBackgroundElement\n $pa={$pa}\n $width={$width}\n backgroundElement={\n <InternalStyledSvg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 1280 130\"\n preserveAspectRatio=\"none\"\n $fill={fill}\n $stroke={stroke}\n >\n <path d=\"M1279.41 10.776C1279 10.0177 1279.5 7.99963 1277.5 8.65073C1277 8.65073 1275.53 8.70062 1276 9.41902C1276.56 23.5974 1276.34 113.092 1276.5 127.5C1279.56 128.617 0.908149 127.396 3.00021 126.907C0.314877 122.776 4.03063 33.3856 3.00021 28.4965C1.50142 21.2426 3.15634 15.9345 3.00021 9.88797C2.50062 2.40466 5.02719 2.69402 30.132 3.02328C65.2287 3.02328 92.6753 2.94346 121.902 3.02328C179.387 2.95344 224.944 3.04324 265.786 3.02328C337.634 3.14302 398.835 2.90355 455.258 3.04324C613.381 2.74391 948.86 2.91353 1106.55 2.8836C1140.74 2.77384 1210.34 2.98337 1265.54 2.8836C1265.92 2.77384 1272.26 3.18293 1271.91 2.48449C1272.69 2.02551 1272.54 1.09758 1272.79 0.508892C1269.63 -0.269372 1265.04 0.199582 1262.14 0.169649C1031.33 0.329293 652.911 0.109783 455.508 0.459004C362.396 0.508892 273.03 0.478959 185.725 0.488937C140.918 0.488937 80.5913 0.488937 37.501 0.468981C16.0808 -0.488882 9.05519 0.399137 2.62287 0.369204C0.249785 0.359226 1.74858 2.66408 1.34265 3.45233C-1.40389 6.89465 0.178862 11.9996 0.000150621 17.1218C-0.343323 26.9699 0.312234 116.849 0.0936605 129.88C5.37066 130.16 24.0119 129.88 25.1984 129.94C172.236 130.1 523.859 129.87 669.117 129.91C885.755 129.86 1045.25 129.79 1261.02 129.79C1260.7 129.332 1284.53 130.898 1279.22 128.723C1279.09 113.178 1279.09 26.7005 1279.41 10.776ZM1268.85 2.47451C1268.6 2.4346 1268.45 2.30489 1268.73 2.13526C1269.2 2.00555 1269.54 2.69402 1268.85 2.47451ZM1263.73 0.73838C1264.98 0.73838 1265.39 1.28716 1263.92 0.927957C1263.14 0.808225 1262.95 0.73838 1263.73 0.73838ZM1260.83 1.96564C1261.39 1.78604 1264.54 1.58649 1262.64 1.96564C1261.17 2.23504 1259.3 2.99335 1260.83 1.96564ZM1277 12.8015C1276.59 11.9633 1277 8.56953 1277.5 10.4996C1277.75 12.6349 1278.5 13.4996 1277 12.8015ZM1266.1 2.255C1269.04 2.46453 1264.57 2.54435 1265.64 2.29491C1265.64 2.17518 1265.64 2.13526 1266.1 2.255ZM1266.35 0.698469C1266.35 0.698469 1266.64 0.748358 1266.64 0.848136C1266.98 1.25722 1265.04 0.688492 1266.35 0.698469ZM1278.5 9.63853C1278.5 9.63853 1278.78 10.0376 1278.78 10.8359C1279.12 14.1285 1278 9.63853 1278.5 9.63853ZM1269.48 1.46676C1270.04 1.7162 1269.23 1.76609 1269.2 1.5366C1269.2 1.42684 1269.32 1.38693 1269.48 1.46676ZM1255.58 0.129738C1256.67 0.0598939 1257.77 0.019983 1258.02 0.059894C1259.83 0.159671 1251.05 0.309338 1255.58 0.129738ZM1197.41 2.32484C1198.75 2.29491 1198.72 2.62417 1197.41 2.62417C1196.1 2.62417 1196.07 2.30489 1197.41 2.32484ZM1168.5 2.10533C1168.84 2.01553 1171.77 1.91575 1172.09 2.10533C1172.52 2.14524 1167.81 2.30489 1168.5 2.10533ZM1112.35 0.20956C1116.57 0.269427 1110.51 0.239493 1110.32 0.20956C1110.6 0.20956 1111.54 0.20956 1112.35 0.20956ZM1109.76 0.878069C1111.1 0.878069 1111.07 1.03771 1109.76 1.03771C1108.45 1.03771 1108.42 0.888047 1109.76 0.878069ZM1088.5 1.04769C1089.34 0.688492 1094.59 0.498915 1091.15 0.967869C1087.72 1.34702 1086.72 1.41687 1088.5 1.04769ZM1084.38 0.139716C1086.91 0.179627 1086.28 0.179627 1083.91 0.159671C1081.47 0.139716 1081.82 0.11976 1084.38 0.139716ZM1071.92 2.67406C1071.45 2.69402 1071.17 2.69402 1070.45 2.67406C1067.51 2.59424 1073.54 2.6142 1071.92 2.67406ZM1069.67 2.31486C1070.2 2.28493 1073.32 2.24502 1071.79 2.37473C1071.45 2.4346 1067.26 2.38471 1069.67 2.31486ZM1063.42 1.19736C1064.14 1.0876 1065.49 1.52662 1063.71 1.58649C1061.99 1.76609 1060.02 1.24725 1063.42 1.19736ZM1046.69 0.73838C1046.84 0.658558 1047.56 0.528848 1048.22 0.528848C1052.09 0.379182 1045.59 1.13749 1046.69 0.73838ZM1026.52 2.58426C1027.27 2.55433 1028.51 2.58426 1029.33 2.6142C1032.2 2.67406 1025.39 2.64413 1026.52 2.58426ZM1010.84 2.56431C1013.71 2.58426 1009.62 2.63415 1009.28 2.58426C1009.28 2.57428 1009.84 2.56431 1010.84 2.56431ZM991.514 0.788269C992.7 0.908002 994.012 0.478959 995.323 0.927957C994.98 1.45678 985.799 0.708447 991.514 0.788269ZM968.001 2.10533C970.031 1.8958 970 2.10533 968.001 2.255C966.034 2.46453 966.034 2.255 968.001 2.10533ZM964.254 1.40689C966.378 1.81598 961.756 1.85589 961.069 1.90578C961.788 1.66631 963.88 1.60644 964.254 1.40689ZM958.009 2.22506C958.977 2.1652 959.508 2.1652 960.476 2.22506C963.224 2.30489 955.293 2.30489 958.009 2.22506ZM955.761 0.059894C958.852 0.0299607 954.106 0.159671 954.075 0.0798494C954.075 0.0698717 954.824 0.059894 955.761 0.059894ZM950.984 2.27495C951.452 2.30489 952.888 2.27495 953.451 2.49446C954.169 2.73393 946.737 2.6142 950.984 2.27495ZM937.744 2.60422C938.494 2.59424 939.68 2.60422 940.43 2.6142C944.364 2.64413 935.621 2.64413 937.744 2.60422ZM896.965 1.99558C899.713 2.15522 897.964 2.10533 896.965 2.28493C898.214 2.82373 893.124 1.96564 896.965 1.99558ZM872.984 1.94569C873.765 1.87584 874.67 1.806 875.045 1.87584C876.512 2.18515 868.644 2.51442 872.984 1.94569ZM864.741 2.4346H867.208C869.83 2.68404 859.932 2.42462 864.741 2.4346ZM850.471 2.5244C850.471 2.5244 853.999 2.31486 853.562 2.5244C853.562 2.55433 850.034 2.64413 850.471 2.5244ZM845.225 2.59424C845.225 2.66408 843.601 2.59424 843.445 2.59424H845.225ZM826.147 0.0798494C827.646 0.0598939 828.239 0.0598939 828.707 0.0798494C828.926 0.149694 820.62 0.159671 826.147 0.0798494ZM821.432 2.57429H823.93C825.647 2.6142 816.842 2.58426 821.432 2.57429ZM786.554 0.82818C786.804 0.82818 791.05 0.778291 791.113 0.848136C791.113 0.898024 786.429 0.848135 786.554 0.82818ZM703.558 2.56431C704.058 2.54435 707.555 2.50444 705.619 2.56431C705.119 2.57429 701.622 2.60422 703.558 2.56431ZM698.625 0.189605C700.529 0.149694 701.497 0.159671 701.497 0.20956C701.903 0.29936 695.127 0.239493 698.625 0.189605ZM531.322 2.69402H535.194C541.47 2.75388 527.294 2.72395 531.322 2.69402ZM520.862 2.71397C521.642 2.71397 522.829 2.71397 523.547 2.71397C525.67 2.74391 515.335 2.74391 520.862 2.71397ZM514.336 0.638603C517.052 0.60867 513.399 0.778291 513.336 0.688492C513.336 0.668536 513.805 0.648581 514.336 0.638603ZM486.702 2.62417C488.513 2.65411 485.921 2.66408 485.484 2.64413C484.297 2.6142 485.172 2.59424 486.702 2.62417ZM448.326 0.419093C448.514 0.419093 448.732 0.409115 448.951 0.409115C453.291 0.409115 444.517 0.488937 448.326 0.419093ZM447.265 2.75388C448.482 2.74391 449.482 2.74391 449.856 2.75388C449.482 2.77384 442.113 2.86364 447.265 2.75388ZM414.322 1.0876C415.009 1.0876 416.04 1.06765 416.633 1.0876C417.726 1.10756 411.481 1.15745 414.322 1.0876ZM403.925 2.67406C404.83 2.67406 406.079 2.72395 406.079 2.75388C405.954 2.77384 400.833 2.76386 403.925 2.67406ZM396.274 2.13526C396.274 2.13526 399.709 2.11531 399.397 2.13526C399.397 2.13526 395.869 2.17518 396.274 2.13526ZM394.214 1.58649C396.15 1.58649 396.306 1.64636 394.214 1.6264C392.246 1.59647 392.246 1.59647 394.214 1.58649ZM389.186 1.52662C389.686 1.50667 390.342 1.49669 390.841 1.49669C393.183 1.50667 388.343 1.57651 389.186 1.52662ZM381.536 2.75388C383.41 2.72395 384.315 2.72395 383.691 2.76386C383.285 2.81375 378.164 2.81375 381.536 2.75388ZM363.301 0.688492C367.329 0.758336 361.99 0.798247 361.833 0.688492C361.771 0.668536 362.052 0.668536 363.301 0.688492ZM322.584 1.84591C323.926 1.81598 323.895 1.92573 322.584 1.8958C321.272 1.88582 321.241 1.85589 322.584 1.84591ZM312.436 0.967869C312.436 0.967869 315.496 0.908002 315.152 0.967869C315.215 0.967869 312.061 1.02773 312.436 0.967869ZM301.132 1.84591C301.601 1.79602 304.348 1.79602 304.848 1.83593C305.223 1.83593 300.726 1.87584 301.132 1.84591ZM276.34 1.59647C276.496 1.57651 281.18 1.55656 281.336 1.59647C280.836 1.59647 276.402 1.65633 276.34 1.59647ZM275.903 2.73393C278.557 2.73393 279.431 2.76386 277.37 2.78382C275.028 2.82373 274.466 2.78382 275.903 2.73393ZM263.6 0.548803C266.91 0.528848 262.663 0.618647 261.976 0.578736C262.195 0.558781 262.913 0.548803 263.6 0.548803ZM224.507 0.468981C225.037 0.468981 225.662 0.468981 226.037 0.468981C226.567 0.508892 221.415 0.548803 224.507 0.468981ZM210.018 2.704C211.736 2.69402 211.642 2.78382 209.644 2.75388C207.864 2.75388 208.082 2.71397 210.018 2.704ZM196.311 1.10756C197.122 1.0876 198.059 1.07762 198.371 1.0876C197.56 1.14747 192.158 1.20733 196.311 1.10756ZM182.353 1.32707C183.696 1.30711 183.665 1.36698 182.353 1.37696C181.042 1.39691 181.01 1.32707 182.353 1.32707ZM175.39 0.349248C180.167 0.339271 172.018 0.409115 173.079 0.359226C173.079 0.359226 174.11 0.339271 175.39 0.349248ZM171.674 0.439048C172.018 0.42907 172.705 0.419093 173.204 0.419093C176.358 0.449026 170.925 0.508892 171.674 0.439048ZM167.771 1.76609C169.114 1.76609 169.988 1.78604 169.364 1.806C168.458 1.82595 165.46 1.76609 167.771 1.76609ZM160.933 0.868091C161.589 0.868091 162.307 0.888046 162.525 0.898024C162.525 0.947913 157.529 0.848136 160.933 0.868091ZM145.164 0.379182C148.724 0.449026 143.822 0.409115 143.322 0.379182C141.854 0.329293 142.698 0.329293 145.164 0.379182ZM131.363 2.72395C133.955 2.73393 129.895 2.83371 129.739 2.77384C128.802 2.73393 129.427 2.71397 131.363 2.72395ZM124.119 2.71397C125.867 2.71397 126.492 2.78382 124.119 2.75388C122.12 2.71397 122.12 2.72395 124.119 2.71397ZM104.01 1.59647C105.509 1.51664 105.103 1.64636 104.01 1.64636C102.792 1.65633 102.792 1.64636 104.01 1.59647ZM95.0484 2.13526C102.293 2.00555 89.5528 2.90355 91.0516 2.39469C91.0516 2.26498 92.8315 2.13526 95.0484 2.13526ZM64.573 2.63415C71.7235 2.63415 62.356 2.83371 60.8884 2.71397C61.1694 2.65411 62.8868 2.63415 64.573 2.63415ZM63.6987 2.40466C62.7619 2.53437 52.7075 2.81375 53.8316 2.40466H63.6987ZM42.1535 1.95567C46.9621 1.95567 53.9565 2.22506 51.2087 2.28493C46.0566 2.46453 34.8157 2.20511 42.1535 1.95567ZM31.9742 2.69402C40.3112 2.62417 35.003 2.86364 30.7252 2.85366C24.0743 2.85366 24.855 2.73393 31.9742 2.69402ZM1.68613 118.526C1.2802 119.084 1.2802 124.083 0.999181 121.379C-1.42455e-05 119.942 2.49797 114.096 1.68613 118.526ZM1.62492 13.5099C1.31267 20.2648 1.15655 8.76049 1.50002 7.77269C1.7186 5.96672 1.84349 8.94009 1.62492 13.5099ZM2.50021 33.0762C-0.715945 42.3655 1.00021 30.9996 2.50021 29.5985C1.25122 29.8778 2.87491 31.839 2.50021 33.0762ZM36.5955 127.585C32.2865 127.625 29.7885 127.635 29.1328 127.615C27.8213 127.436 53.4257 127.326 36.5955 127.585ZM58.89 129.651C56.9541 129.312 55.4241 129.501 53.4257 129.222C51.1463 128.952 64.5417 129.691 58.89 129.651ZM84.3695 127.346C92.7066 127.336 89.6153 127.555 83.5889 127.555C76.2511 127.555 77.0317 127.406 84.3695 127.346ZM94.7362 127.745C88.3975 127.745 88.4912 127.446 94.7362 127.386C100.856 127.446 100.95 127.735 94.7362 127.745ZM115.032 128.344C104.978 128.174 104.978 127.915 115.032 127.745C125.087 127.915 125.087 128.174 115.032 128.344ZM140.855 128.443C127.803 128.443 139.637 128.174 144.04 128.274C151.534 128.384 150.41 128.443 140.855 128.443ZM156.842 129.451C156.28 129.491 154.438 129.571 152.658 129.571C143.947 129.641 156.874 129.242 156.842 129.451ZM172.736 129.371C169.676 129.371 166.335 129.312 165.304 129.202C168.833 128.972 187.974 129.461 172.736 129.371ZM174.266 127.526C172.642 127.446 184.601 127.156 184.508 127.186C186.256 127.306 174.172 127.555 174.266 127.526ZM189.847 128.922C187.849 128.982 185.101 128.982 183.946 128.982C177.513 128.703 197.029 128.703 189.847 128.922ZM196.498 127.346C195.249 127.376 191.689 127.426 188.473 127.466C174.547 127.546 206.677 127.007 196.498 127.346ZM234.748 129.012C228.566 129.361 230.908 129.022 236.934 128.753C242.898 128.443 241.399 128.633 234.748 129.012ZM273.904 128.753C271.5 128.753 268.659 128.713 267.659 128.673C266.504 128.483 287.893 128.683 273.904 128.753ZM310 128.683C307.596 128.683 303.287 128.643 300.445 128.593C285.426 128.364 315.589 128.533 310 128.683ZM344.878 128.883C334.855 128.613 345.315 128.434 349.5 128.703C355.901 129.072 353.715 129.132 344.878 128.883ZM366.892 129.062C359.71 129.162 367.641 128.843 369.14 128.982C369.14 128.982 368.141 129.062 366.892 129.062ZM373.824 127.645C371.107 127.516 372.731 127.446 374.386 127.526C376.79 127.605 376.322 127.725 373.824 127.645ZM382.91 128.094C382.473 127.915 384.284 127.875 384.721 127.975C385.564 128.054 384.034 128.174 382.91 128.094ZM396.774 129.711C393.121 129.691 397.086 129.561 397.898 129.591C399.647 129.671 399.241 129.711 396.774 129.711ZM466.062 129.621C464.751 129.621 464.719 129.431 466.062 129.441C467.405 129.421 467.373 129.621 466.062 129.621ZM475.679 129.381C464.407 129.351 474.618 128.982 478.677 129.032C486.077 129.172 484.204 129.381 475.679 129.381ZM478.958 127.805C478.365 127.835 475.336 128.134 476.085 127.895C476.959 127.735 481.799 127.516 478.958 127.805ZM483.392 127.775C481.706 127.775 481.425 127.735 482.268 127.705C483.642 127.565 488.107 127.795 483.392 127.775ZM497.88 129.691C497.068 129.731 496.319 129.731 496.1 129.691C494.82 129.451 500.628 129.611 497.88 129.691ZM537.255 129.621C534.444 129.621 532.04 129.511 532.04 129.511C532.196 129.172 550.775 129.551 537.255 129.621ZM678.703 129.102C675.987 129.102 672.271 129.032 670.585 128.992C667.587 128.753 695.034 128.972 678.703 129.102ZM732.285 129.561C721.762 129.551 733.472 129.312 737.843 129.561H732.285ZM734.783 128.992C716.235 128.902 734.408 128.773 739.779 128.912C747.71 128.972 741.184 128.932 734.783 128.992ZM831.268 129.092H815.53C799.418 128.354 861.587 129.132 831.268 129.092ZM929.064 129.252C926.285 129.351 923.006 129.441 921.039 129.351C918.198 128.922 945.176 128.473 929.064 129.252ZM931.343 128.384C928.408 128.384 929.876 128.284 934.778 128.094C951.764 127.685 962.318 128.334 931.343 128.384Z\" />\n </InternalStyledSvg>\n }\n {...props}\n />\n );\n};\n","import React, { ComponentPropsWithoutRef, ElementType } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { OakCardWithHandDrawnBorder } from \"@/components/owa/OakCardWithHandDrawnBorder\";\nimport { OakRoundIcon } from \"@/components/images-and-icons/OakRoundIcon\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\n\ntype OakPupilJourneyOptionalityButtonProps<C extends ElementType> = {\n /**\n * Disable the section preventing navigation to it.\n */\n disabled?: boolean;\n /**\n * shows that a section is unavailable\n */\n unavailable?: boolean;\n title: string;\n numberOfLessons: number;\n} & ComponentPropsWithoutRef<C>;\n\nconst StyledLabel = styled(OakBox)``;\n\nconst StyledPupilOptionalityListButton = styled(OakFlex)<{\n $disabled?: boolean;\n}>`\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n\n ${(props) => props.$disabled && \"cursor: not-allowed\"}\n\n ${(props) =>\n !props.$disabled &&\n css`\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n background: ${parseColor(\"bg-decorative1-subdued\")};\n ${StyledLabel} {\n text-decoration: underline;\n }\n }\n }\n\n &:active {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-lemon\")},\n ${parseDropShadow(\"drop-shadow-grey\")};\n }\n `}\n`;\n\n/**\n * Button for units with optionality it is only used as the child of the PupilJourneyOptionailityitem component\n */\n\nexport const OakPupilJourneyOptionalityButton = <C extends ElementType = \"a\">(\n props: OakPupilJourneyOptionalityButtonProps<C>,\n) => {\n const {\n lessonSectionName,\n progress,\n disabled,\n href,\n unavailable,\n onClick,\n numberOfLessons,\n ...rest\n } = props;\n\n const disabledOrUnavailable = disabled || unavailable;\n return (\n <StyledPupilOptionalityListButton\n as={disabledOrUnavailable ? \"div\" : \"a\"}\n $flexGrow={1}\n $background={unavailable ? \"bg-neutral\" : \"bg-primary\"}\n $disabled={disabledOrUnavailable}\n $color=\"text-primary\"\n href={disabledOrUnavailable ? undefined : href}\n onClick={disabledOrUnavailable ? undefined : onClick}\n {...rest}\n >\n <OakCardWithHandDrawnBorder\n fill={unavailable ? \"border-neutral-lighter\" : \"bg-inverted\"}\n stroke={unavailable ? \"border-neutral-lighter\" : \"border-primary\"}\n strokeWidth={\"border-solid-s\"}\n >\n <OakFlex $flexDirection={\"column\"} $gap={\"spacing-8\"}>\n <StyledLabel\n $font={[\"heading-7\", \"heading-6\"]}\n $color={disabledOrUnavailable ? \"text-subdued\" : \"text-primary\"}\n >\n {props.title}\n </StyledLabel>\n\n <OakFlex $alignItems={\"center\"} $gap={\"spacing-4\"}>\n {!props.unavailable && (\n <>\n <StyledLabel\n $font={\"heading-light-7\"}\n $color={\n disabledOrUnavailable ? \"text-subdued\" : \"text-primary\"\n }\n >\n {numberOfLessons} lessons\n </StyledLabel>\n <OakRoundIcon\n iconName=\"chevron-right\"\n $width={\"spacing-32\"}\n $height={\"spacing-32\"}\n $background={\"transparent\"}\n $colorFilter={\n disabledOrUnavailable ? \"icon-disabled\" : \"icon-primary\"\n }\n />\n </>\n )}\n {props.unavailable && (\n <StyledLabel\n $font={\"heading-7\"}\n $color={disabledOrUnavailable ? \"text-subdued\" : \"text-primary\"}\n >\n Unavailable\n </StyledLabel>\n )}\n </OakFlex>\n </OakFlex>\n </OakCardWithHandDrawnBorder>\n </StyledPupilOptionalityListButton>\n );\n};\n","import React, { ReactNode } from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakHandDrawnHR } from \"@/components/owa/OakHandDrawnHR\";\nimport { InternalChevronAccordion } from \"@/components/internal-components/InternalChevronAccordion\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { PositionStyleProps } from \"@/styles/utils/positionStyle\";\nimport { SizeStyleProps } from \"@/styles/utils/sizeStyle\";\nimport { FlexStyleProps } from \"@/styles/utils/flexStyle\";\nimport { SpacingStyleProps } from \"@/styles/utils/spacingStyle\";\n\nexport type OakOutlineAccordionProps = {\n /**\n * The header of the accordion\n */\n header: ReactNode;\n /**\n * Whether the accordion should be open initially\n */\n initialOpen?: boolean;\n /**\n * The content of the accordion\n */\n children: ReactNode;\n /**\n * The id of the accordion\n */\n id: string;\n} & FlexStyleProps &\n SizeStyleProps &\n SpacingStyleProps;\n\nconst StyledHandDrawnHR = styled(OakHandDrawnHR)<\n PositionStyleProps & SizeStyleProps\n>`\n height: 0.125rem;\n position: ${(props) => props.$position};\n width: ${(props) => props.$width};\n bottom: 0.125rem;\n`;\n\n/**\n * An accordion component that can be used to show/hide content\n */\nexport const OakOutlineAccordion = ({\n header,\n children,\n id,\n initialOpen = false,\n ...styleProps\n}: OakOutlineAccordionProps) => {\n return (\n <OakFlex $position={\"relative\"} $flexDirection={\"column\"}>\n <StyledHandDrawnHR $width={\"100%\"} />\n <InternalChevronAccordion\n header={header}\n id={id}\n initialOpen={initialOpen}\n {...styleProps}\n >\n {children}\n </InternalChevronAccordion>\n <StyledHandDrawnHR $position={\"absolute\"} $width={\"100%\"} />\n </OakFlex>\n );\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakButtonAsRadioGroup } from \"@/components/form-elements/OakButtonAsRadioGroup\";\nimport { OakSecondaryButtonAsRadio } from \"@/components/form-elements/OakSecondaryButtonAsRadio\";\nimport { OakSecondaryButton } from \"@/components/buttons/OakSecondaryButton\";\nimport { OakOutlineAccordion } from \"@/components/owa/OakOutlineAccordion\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\n\nconst StyledOakSecondaryButton = styled(OakSecondaryButton)`\n & > button {\n opacity: 0;\n position: absolute;\n &:focus-visible {\n opacity: 1;\n position: relative;\n }\n }\n`;\n\ntype MenuItem = {\n displayText: string;\n value: string;\n};\n\nexport type OakPupilJourneyUnitsFilterProps = {\n menuItems: MenuItem[];\n selected: string;\n onSelected: (arg0: MenuItem) => void;\n onSkipCallback: () => void;\n};\n\n/**\n *\n * OakPupilJourneyUnitsFilter component is a radio group of buttons that can be used to filter pupil journey units\n * add the menu items as an array of objects with text and id properties and provide a selected item id, and a callback function to handle the selection event.\n * The following callbacks are available for tracking focus events:\n *\n * ### Callbacks\n * onSelected: Callback when a menu item is selected, takes the selected item as an argument\n *\n */\n\nexport const OakPupilJourneyUnitsFilter = (\n props: OakPupilJourneyUnitsFilterProps,\n) => {\n const { menuItems, selected, onSelected, onSkipCallback } = props;\n\n const OakRadioGroup = (\n <OakButtonAsRadioGroup\n name=\"OakPupilJourneyUnitsFilter\"\n ariaLabel=\"OakPupilJourneyUnitsFilter\"\n onChange={(value) => {\n const selectedItem = menuItems.find((item) => item.value === value);\n if (!selectedItem) {\n throw new Error(\"Selected item not found\");\n }\n onSelected(selectedItem);\n }}\n defaultValue={selected}\n $justifyContent={[\"start\", \"start\", \"end\"]}\n $flexWrap={\"wrap\"}\n >\n {menuItems.map((item, i) => {\n return (\n <OakSecondaryButtonAsRadio\n key={item.value + \"_\" + i}\n value={item.value}\n >\n {item.displayText}\n </OakSecondaryButtonAsRadio>\n );\n })}\n </OakButtonAsRadioGroup>\n );\n\n return (\n <>\n <OakFlex $display={[\"block\", \"none\"]} $flexGrow={1}>\n <OakOutlineAccordion\n id={\"mobile-unit-filter-accordion\"}\n header={\n <OakHeading tag=\"h2\" $font={\"heading-5\"}>\n Categories\n </OakHeading>\n }\n $pv={\"spacing-24\"}\n $gap={\"spacing-24\"}\n >\n {OakRadioGroup}\n </OakOutlineAccordion>\n </OakFlex>\n <OakFlex\n $display={[\"none\", \"flex\"]}\n $gap={\"spacing-24\"}\n $flexDirection={\"column\"}\n $alignItems={\"end\"}\n >\n {menuItems.length > 3 && (\n <StyledOakSecondaryButton onClick={onSkipCallback}>\n Skip to results\n </StyledOakSecondaryButton>\n )}\n\n <OakFlex $display={\"block\"} $flexGrow={1}>\n {OakRadioGroup}\n </OakFlex>\n </OakFlex>\n </>\n );\n};\n","import React, { HTMLAttributes, MouseEventHandler } from \"react\";\nimport styled from \"styled-components\";\n\nimport {\n InternalShadowRoundButton,\n InternalShadowRoundButtonProps,\n} from \"@/components/internal-components/InternalShadowRoundButton\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\n\nexport type OakHintButtonProps = {\n isOpen: boolean;\n onClick?: MouseEventHandler;\n isLoading?: boolean;\n disabled?: boolean;\n buttonProps?: Partial<\n InternalShadowRoundButtonProps & HTMLAttributes<Element>\n >;\n};\n\nconst StyledInternalShadowRoundButton = styled(InternalShadowRoundButton)`\n &:hover .shadow {\n box-shadow: none !important;\n }\n &:active .shadow {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-lemon\")},\n ${parseDropShadow(\"drop-shadow-grey\")} !important;\n }\n`;\n\n/**\n *\n * A specific implementation of InternalShadowRoundButton\n *\n * The following callbacks are available for tracking focus events:\n *\n * ### onClick\n * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`\n *\n * ### onHovered\n * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n */\nexport const OakHintButton = (props: OakHintButtonProps) => {\n const { isOpen, disabled, buttonProps } = props;\n return (\n <StyledInternalShadowRoundButton\n iconName={isOpen && !disabled ? \"lightbulb-yellow\" : \"lightbulb\"}\n defaultIconBackground={isOpen ? \"icon-primary\" : \"bg-decorative5-main\"}\n hoverIconBackground={isOpen ? \"icon-primary\" : \"bg-decorative5-main\"}\n defaultTextColor={\"text-primary\"}\n hoverTextColor={\"text-primary\"}\n disabledIconBackground={\"bg-btn-primary-disabled\"}\n disabledTextColor={\"text-disabled\"}\n disabledIconColor={\"icon-inverted\"}\n onClick={props.onClick}\n isLoading={props.isLoading}\n disabled={props.disabled}\n iconBackgroundSize={\"spacing-40\"}\n iconSize={\"spacing-24\"}\n data-rac\n // aria-describedby={describedby}\n {...buttonProps}\n >\n {!isOpen ? \"Need a hint?\" : \"Close hint\"}\n </StyledInternalShadowRoundButton>\n );\n};\n","import React, { MouseEventHandler, ReactNode, useState } from \"react\";\n\nimport { OakTooltip } from \"@/components/messaging-and-feedback/OakTooltip\";\nimport { OakScreenReader } from \"@/components/messaging-and-feedback/OakScreenReader\";\nimport { OakHintButton } from \"@/components/owa/pupil/quiz/OakHintButton\";\n\nexport type OakQuizHintProps = {\n /**\n * Some content to give as a hint to answer a question\n */\n hint: ReactNode;\n id: string;\n hintToggled?: (props: { isOpen: boolean }) => void;\n};\n\n/**\n * Presents a button which will show a hint when clicked\n */\nexport const OakQuizHint = ({ hint, id, hintToggled }: OakQuizHintProps) => {\n const [isOpen, setIsOpen] = useState<boolean>(false);\n const handleClick: MouseEventHandler = () => {\n setIsOpen(!isOpen);\n if (hintToggled) {\n hintToggled({ isOpen: !isOpen });\n }\n };\n\n return (\n <>\n <OakTooltip tooltip={hint} isOpen={isOpen} tooltipPosition=\"top-left\">\n <OakHintButton\n isOpen={isOpen}\n onClick={handleClick}\n buttonProps={{\n \"aria-expanded\": isOpen,\n \"aria-describedby\": isOpen ? id : undefined,\n }}\n />\n </OakTooltip>\n {isOpen && (\n <OakScreenReader as=\"div\" id={id} data-testid={`${id}-description`}>\n {hint}\n </OakScreenReader>\n )}\n </>\n );\n};\n","import React, { ReactNode } from \"react\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { OakRoundIcon } from \"@/components/images-and-icons/OakRoundIcon\";\n\nexport type OakQuizFeedbackProps = {\n /**\n * Feedback for an answer\n * `partially-correct` can be used to feedback on a multi-answer MCQ where some\n * correct options were not selected and/or some incorrect answers were selected\n */\n feedback: \"correct\" | \"incorrect\" | \"partially-correct\";\n /**\n * Some additional content to present with the feedback.\n * This is likely the correct answer(s) to the question or some praise.\n *\n * Only displayed when `feedback` has been applied.\n */\n answerFeedback?: ReactNode;\n};\n\n/**\n * Gives feedback after a question has been answered\n */\nexport const OakQuizFeedback = ({\n feedback,\n answerFeedback,\n}: OakQuizFeedbackProps) => {\n let feedbackLabel: string;\n\n switch (feedback) {\n case \"correct\":\n feedbackLabel = \"Correct\";\n break;\n case \"incorrect\":\n feedbackLabel = \"Incorrect\";\n break;\n case \"partially-correct\":\n feedbackLabel = \"Almost correct\";\n break;\n }\n\n return (\n <OakBox aria-live=\"polite\">\n <OakFlex $gap=\"spacing-12\" role=\"alert\">\n <OakRoundIcon\n iconName={feedback === \"correct\" ? \"tick\" : \"cross\"}\n alt=\"\"\n $pa=\"spacing-0\"\n $background={feedback === \"correct\" ? \"icon-success\" : \"icon-error\"}\n $colorFilter=\"text-inverted\"\n $width=\"spacing-24\"\n $height=\"spacing-24\"\n />\n <OakSpan\n $font=\"heading-6\"\n $color={feedback === \"correct\" ? \"text-success\" : \"text-error\"}\n role=\"alert\"\n >\n {feedbackLabel}\n </OakSpan>\n </OakFlex>\n {answerFeedback && (\n <OakSpan\n as=\"p\"\n $mt=\"spacing-12\"\n $font={feedback === \"correct\" ? \"body-2-bold\" : \"body-2\"}\n role=\"alert\"\n >\n {answerFeedback}\n </OakSpan>\n )}\n </OakBox>\n );\n};\n","import React, { ReactNode } from \"react\";\nimport styled from \"styled-components\";\n\nimport {\n OakQuizHint,\n OakQuizHintProps,\n} from \"@/components/owa/pupil/quiz/OakQuizHint\";\nimport {\n OakQuizFeedback,\n OakQuizFeedbackProps,\n} from \"@/components/owa/pupil/quiz/OakQuizFeedback/OakQuizFeedback\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\n\n/**\n * `content-box` ensures that the border is not subtracted from the height of the element\n */\nconst StyledOakFlex = styled(OakFlex)`\n box-sizing: content-box;\n`;\n\nexport type OakLessonBottomNavProps = {\n children?: ReactNode;\n feedback?: OakQuizFeedbackProps[\"feedback\"] | null;\n answerFeedback?: OakQuizFeedbackProps[\"answerFeedback\"];\n hint?: OakQuizHintProps[\"hint\"];\n hintToggled?: (props: { isOpen: boolean }) => void;\n};\n\n/**\n * Renders feedback for an answer and onward navigation buttons to continue the lesson\n */\nexport const OakLessonBottomNav = ({\n hint,\n hintToggled,\n feedback,\n answerFeedback,\n children,\n}: OakLessonBottomNavProps) => {\n let content: ReactNode;\n\n switch (true) {\n case !!feedback:\n content = (\n <OakQuizFeedback feedback={feedback} answerFeedback={answerFeedback} />\n );\n break;\n case !!hint:\n content = (\n <OakQuizHint hint={hint} id=\"quiz-hint\" hintToggled={hintToggled} />\n );\n break;\n default:\n content = null;\n }\n\n return (\n <StyledOakFlex\n $flexDirection={[\"column\", \"row\"]}\n $pa=\"spacing-16\"\n $minHeight=\"spacing-48\"\n $gap=\"spacing-24\"\n >\n <OakFlex $alignItems=\"center\">{content}</OakFlex>\n <OakFlex\n $flexGrow=\"1\"\n $height=\"fit-content\"\n $alignSelf=\"flex-end\"\n $justifyContent={[\"initial\", \"flex-end\"]}\n $width={[\"100%\", \"auto\"]}\n >\n {children}\n </OakFlex>\n </StyledOakFlex>\n );\n};\n","import React, { ReactNode } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport { getBreakpoint } from \"@/styles/utils/responsiveStyle\";\nimport { OakUiRoleToken, oakDefaultTheme } from \"@/styles\";\nimport { backgrounds } from \"@/image-map\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\n\nexport const lessonSectionNames: string[] = [\n \"overview\",\n \"intro\",\n \"starter-quiz\",\n \"video\",\n \"exit-quiz\",\n \"review\",\n];\n\nexport type LessonSectionName = (typeof lessonSectionNames)[number];\n\ntype Phase = \"primary\" | \"secondary\";\n\nexport type OakLessonLayoutProps = {\n lessonSectionName: LessonSectionName;\n phase?: Phase;\n celebrate?: boolean;\n topNavSlot: ReactNode;\n bottomNavSlot: ReactNode;\n children: ReactNode;\n};\n\n/**\n * `OakBox` does not support space-between tokens on `padding` only `margin`, so we need to\n * set it here to apply appropriate padding to the top of the content.\n */\nconst StyledLayoutBox = styled(OakBox)<{\n sectionName: LessonSectionName;\n phase: Phase;\n celebrate: boolean;\n}>`\n @media (min-width: ${getBreakpoint(\"small\")}px) {\n padding-top: ${parseSpacing(\"spacing-56\")};\n }\n @media (min-width: ${getBreakpoint(\"large\")}px) {\n ${(props) => css`\n ${getBackgroundUrlForLesson(\n props.sectionName,\n props.phase,\n props.celebrate,\n )}\n `}\n background-repeat: no-repeat;\n background-position-x: center;\n background-size: 100%;\n }\n`;\n\nconst StickyFooter = styled(OakBox)`\n position: sticky;\n bottom: 0;\n z-index: 10;\n`;\n\n/**\n * Provides overall page layout and colours for the sections of a lesson.\n */\nexport const OakLessonLayout = ({\n lessonSectionName,\n phase = \"primary\",\n celebrate = false,\n topNavSlot,\n bottomNavSlot,\n children,\n}: OakLessonLayoutProps) => {\n const [\n pageBackgroundColor,\n contentBackgroundColor,\n contentBorderColor,\n mobileContentBackgroundColor,\n ] = pickSectionColours(lessonSectionName, phase);\n\n return (\n <StyledLayoutBox\n $display={\"flex\"}\n $width=\"100%\"\n $minHeight={\"100%\"}\n $ph={[\"spacing-0\", \"spacing-24\"]}\n $background={pageBackgroundColor}\n sectionName={lessonSectionName}\n celebrate={celebrate}\n phase={phase}\n >\n <OakFlex\n $flexDirection=\"column\"\n $flexGrow={1}\n $background={[mobileContentBackgroundColor, \"transparent\"]}\n $maxWidth=\"spacing-1280\"\n $minHeight=\"100%\"\n $mh=\"auto\"\n $position={\"relative\"}\n >\n <OakBox $display={[\"none\", \"block\"]}>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"100%\"\n height=\"100%\"\n viewBox=\"0 0 1308 943\"\n fill=\"none\"\n style={{\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n zIndex: 0,\n }}\n preserveAspectRatio=\"none\"\n >\n <mask id=\"wobbly_mask\" fill=\"white\">\n <path d=\"M1307.54 535.104C1307.23 636.219 1306.18 739.057 1306.6 839.224C1306.7 898.723 1307.88 947.11 1307 1006C871.2 1012.67 437.787 1006 2 1006C1 939 1.31004 845.783 2.6275 777.934C3.15031 725.636 2.9621 673.135 2.1047 621.04C1.77011 559.918 1.68647 498.83 0.933629 437.946C0.264441 384.059 1.60282 330.442 0.180796 275.304C-0.634779 244.608 1.51916 210.464 2.46021 178.01C3.06666 156.814 3.92405 136.091 4.44685 115.165C5.76432 63.2723 9.36114 33.861 17.2868 27.0998C19.9009 24.8686 22.4521 22.0965 25.087 18.8849C44.7654 12.9688 64.9662 10.1291 85.1882 10.4672C116.807 13.0364 148.782 8.37119 180.61 7.15417L213.714 6.2076C231.196 5.46386 248.595 4.78774 265.785 4.88916C504.33 5.83573 742.85 7.93171 981.395 7.93171C1023.49 7.93171 1065.67 5.93715 1107.85 3.87498C1136.42 2.45512 1164.98 1.03526 1193.53 0.0886897C1210.34 -0.486014 1227.15 1.88041 1243.88 2.9284C1250.8 2.9284 1257.71 4.24684 1264.56 4.07781C1275.4 3.4355 1286.23 5.43006 1296.48 10.0277C1297.86 18.9863 1302.6 31.427 1303.65 48.8371C1305.07 72.7042 1306.18 101.338 1306.91 133.014C1307.62 164.691 1307.94 198.801 1307.83 233.25C1307.71 273.58 1308.02 313.742 1308 354.073C1307.92 414.856 1307.75 475.639 1307.52 535.104H1307.54Z\" />\n </mask>\n <path\n d=\"M1307.54 535.104C1307.23 636.219 1306.18 739.057 1306.6 839.224C1306.7 898.723 1307.88 947.11 1307 1006C871.2 1012.67 437.787 1006 2 1006C1 939 1.31004 845.783 2.6275 777.934C3.15031 725.636 2.9621 673.135 2.1047 621.04C1.77011 559.918 1.68647 498.83 0.933629 437.946C0.264441 384.059 1.60282 330.442 0.180796 275.304C-0.634779 244.608 1.51916 210.464 2.46021 178.01C3.06666 156.814 3.92405 136.091 4.44685 115.165C5.76432 63.2723 9.36114 33.861 17.2868 27.0998C19.9009 24.8686 22.4521 22.0965 25.087 18.8849C44.7654 12.9688 64.9662 10.1291 85.1882 10.4672C116.807 13.0364 148.782 8.37119 180.61 7.15417L213.714 6.2076C231.196 5.46386 248.595 4.78774 265.785 4.88916C504.33 5.83573 742.85 7.93171 981.395 7.93171C1023.49 7.93171 1065.67 5.93715 1107.85 3.87498C1136.42 2.45512 1164.98 1.03526 1193.53 0.0886897C1210.34 -0.486014 1227.15 1.88041 1243.88 2.9284C1250.8 2.9284 1257.71 4.24684 1264.56 4.07781C1275.4 3.4355 1286.23 5.43006 1296.48 10.0277C1297.86 18.9863 1302.6 31.427 1303.65 48.8371C1305.07 72.7042 1306.18 101.338 1306.91 133.014C1307.62 164.691 1307.94 198.801 1307.83 233.25C1307.71 273.58 1308.02 313.742 1308 354.073C1307.92 414.856 1307.75 475.639 1307.52 535.104H1307.54Z\"\n fill={parseColor(contentBackgroundColor)({\n theme: oakDefaultTheme,\n })}\n stroke={parseColor(contentBorderColor)({\n theme: oakDefaultTheme,\n })}\n strokeWidth=\"8\"\n mask=\"url(#wobbly_mask)\"\n />\n </svg>\n </OakBox>\n <OakFlex\n $flexDirection=\"column\"\n $flexGrow={1}\n $minHeight=\"100%\"\n $zIndex={1}\n $pt={[\"spacing-0\", \"spacing-16\"]}\n $gap={[\"spacing-48\", \"spacing-56\"]}\n >\n {topNavSlot && (\n <OakBox\n $pv=\"spacing-20\"\n $pl={[\"spacing-16\", \"spacing-8\"]}\n $pr={[\"spacing-16\", \"spacing-0\"]}\n $mr={[\"spacing-0\", \"spacing-48\"]}\n $background={[\"bg-primary\", \"transparent\"]}\n >\n {topNavSlot}\n </OakBox>\n )}\n <OakFlex $flexGrow={1} $flexDirection=\"column\">\n {children}\n </OakFlex>\n {bottomNavSlot && (\n <StickyFooter\n $mh={[\"spacing-0\", \"spacing-0\", \"spacing-4\"]}\n $borderColor={contentBorderColor}\n $bt={\"border-solid-xl\"}\n $background={[\"bg-primary\", contentBackgroundColor]}\n >\n {bottomNavSlot}\n </StickyFooter>\n )}\n </OakFlex>\n </OakFlex>\n </StyledLayoutBox>\n );\n};\n\nfunction pickSectionColours(\n sectionName: LessonSectionName,\n phase: Phase,\n): [\n pageBackgroundColor: OakUiRoleToken,\n contentBackgroundColor: OakUiRoleToken,\n contentBorderColor: OakUiRoleToken,\n mobileContentBackgroundColor: OakUiRoleToken,\n] {\n switch (sectionName) {\n case \"overview\":\n return phase === \"secondary\"\n ? [\n \"bg-decorative3-subdued\",\n \"bg-primary\",\n \"border-decorative3\",\n \"bg-primary\",\n ]\n : [\n \"bg-decorative4-subdued\",\n \"bg-primary\",\n \"border-decorative4\",\n \"bg-primary\",\n ];\n case \"intro\":\n return [\n \"bg-decorative2-subdued\",\n \"bg-decorative2-very-subdued\",\n \"border-inverted\",\n \"bg-decorative2-subdued\",\n ];\n case \"starter-quiz\":\n return [\n \"bg-decorative1-main\",\n \"bg-decorative1-very-subdued\",\n \"border-inverted\",\n \"bg-decorative1-subdued\",\n ];\n case \"video\":\n return [\n \"bg-decorative4-subdued\",\n \"bg-primary\",\n \"border-decorative4\",\n \"bg-primary\",\n ];\n case \"exit-quiz\":\n return [\n \"bg-decorative5-main\",\n \"bg-decorative5-very-subdued\",\n \"border-inverted\",\n \"bg-decorative5-subdued\",\n ];\n case \"review\":\n return phase === \"secondary\"\n ? [\n \"bg-decorative3-subdued\",\n \"bg-primary\",\n \"border-decorative3\",\n \"bg-primary\",\n ]\n : [\n \"bg-decorative4-subdued\",\n \"bg-primary\",\n \"border-decorative4\",\n \"bg-primary\",\n ];\n default:\n return [\n \"bg-decorative3-subdued\",\n \"bg-primary\",\n \"border-decorative3\",\n \"bg-primary\",\n ];\n }\n}\n\nfunction getBackgroundUrlForLesson(\n sectionName: LessonSectionName,\n phase: Phase,\n celebrate: boolean,\n) {\n const prefix = `https://${process.env.NEXT_PUBLIC_OAK_ASSETS_HOST}/${process.env.NEXT_PUBLIC_OAK_ASSETS_PATH}/`;\n switch (sectionName) {\n case \"overview\":\n return phase === \"secondary\"\n ? `background-image: url(${prefix}${backgrounds[\"lesson-confetti-lavender\"]});`\n : `background-image: url(${prefix}${backgrounds[\"lesson-confetti-pink\"]});`;\n case \"intro\":\n return `background-image: url(${prefix}${backgrounds[\"lesson-confetti-mint\"]});`;\n case \"starter-quiz\":\n return celebrate\n ? `background-image: url(${prefix}${backgrounds[\"lesson-confetti-green\"]});`\n : ``;\n case \"video\":\n return `background-image: url(${prefix}${backgrounds[\"lesson-confetti-pink\"]});`;\n case \"exit-quiz\":\n return celebrate\n ? `background-image: url(${prefix}${backgrounds[\"lesson-confetti-green-lemon\"]});`\n : ``;\n case \"review\":\n return phase === \"secondary\"\n ? `background-image: url(${prefix}${backgrounds[\"lesson-confetti-lavender\"]});`\n : `background-image: url(${prefix}${backgrounds[\"lesson-confetti-pink\"]});`;\n default:\n return \"\";\n }\n}\n","import React, { ComponentPropsWithoutRef, ElementType } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon, OakIconName } from \"@/components/images-and-icons/OakIcon\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { OakRoundIcon } from \"@/components/images-and-icons/OakRoundIcon\";\nimport { parseColorFilter } from \"@/styles/helpers/parseColorFilter\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { OakUiRoleToken } from \"@/styles\";\nimport { OakLoadingSpinner } from \"@/components/messaging-and-feedback/OakLoadingSpinner\";\n\ntype LessonSectionName = \"intro\" | \"starter-quiz\" | \"video\" | \"exit-quiz\";\n\ntype BaseOakLessonNavItemProps<C extends ElementType> = {\n as?: C;\n /**\n * Disable the section preventing navigation to it.\n */\n disabled?: boolean;\n /**\n * Display loading state while preserving disabled appearance and behavior.\n */\n isLoading?: boolean;\n} & ComponentPropsWithoutRef<C>;\n\ntype QuizSectionProps = {\n lessonSectionName: \"starter-quiz\" | \"exit-quiz\";\n /**\n * The number of questions in the quiz\n */\n numQuestions: number;\n /**\n * The number of questions answered correctly\n */\n grade: number;\n};\n\ntype VideoSectionProps = {\n lessonSectionName: \"video\";\n};\n\ntype IntroSectionProps = {\n lessonSectionName: \"intro\";\n};\n\ntype SectionProps = {\n /**\n * Denotes the progress in the lesson section\n */\n progress: \"not-started\" | \"in-progress\" | \"complete\";\n} & (IntroSectionProps | QuizSectionProps | VideoSectionProps);\n\nexport type OakLessonNavItemProps<C extends ElementType> =\n BaseOakLessonNavItemProps<C> & SectionProps;\n\nconst StyledLabel = styled(OakBox)``;\n\nconst StyledIconWrapper = styled(OakFlex)<{ $disabled?: boolean }>`\n filter: ${(props) =>\n parseColorFilter(props.$disabled ? \"icon-disabled\" : \"icon-primary\")};\n`;\n\nconst StyledRoundIcon = styled(OakRoundIcon)<{\n $disabled?: boolean;\n}>`\n width: ${parseSpacing(\"spacing-40\")};\n height: ${parseSpacing(\"spacing-40\")};\n padding: 0;\n\n background: transparent;\n\n img {\n filter: ${(props) =>\n parseColorFilter(props.$disabled ? \"icon-disabled\" : \"icon-primary\")};\n }\n`;\n\nconst activeIconStyles = css`\n ${StyledRoundIcon} {\n background: ${parseColor(\"bg-btn-primary\")};\n\n img {\n filter: ${parseColorFilter(\"icon-inverted\")};\n }\n }\n`;\n\nconst StyledLessonNavItem = styled(OakFlex)<{ $disabled?: boolean }>`\n outline: none;\n text-align: initial;\n\n &:focus-visible {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n\n ${(props) => props.$disabled && \"cursor: default\"}\n\n ${(props) =>\n !props.$disabled &&\n css`\n cursor: pointer;\n\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n ${StyledLabel} {\n text-decoration: underline;\n }\n\n ${activeIconStyles}\n }\n }\n\n &:active {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-lemon\")},\n ${parseDropShadow(\"drop-shadow-grey\")};\n ${activeIconStyles}\n }\n `}\n`;\n\nconst FlexedOakBox = styled(OakBox)`\n flex: 1;\n`;\n\n/**\n * Enables navigation to the given section of a lesson as well as displaying current progress\n */\nexport const OakLessonNavItem = <C extends ElementType = \"a\">(\n props: OakLessonNavItemProps<C>,\n) => {\n const {\n as,\n lessonSectionName,\n progress,\n disabled,\n isLoading,\n href,\n onClick,\n numQuestions,\n grade,\n ...rest\n } = props;\n const isDisabled = Boolean(disabled || isLoading);\n const [\n notStartedBackgroundColor,\n backgroundColor,\n borderColor,\n disabledBackgroundColor,\n ] = pickColorsForSection(lessonSectionName);\n\n const resolvedBackgroundColor =\n isDisabled && disabledBackgroundColor\n ? disabledBackgroundColor\n : progress === \"not-started\"\n ? notStartedBackgroundColor\n : backgroundColor;\n\n return (\n <StyledLessonNavItem\n as={isDisabled ? \"div\" : (as ?? \"a\")}\n $gap=\"spacing-24\"\n $alignItems=\"center\"\n $background={resolvedBackgroundColor}\n $ph={[\"spacing-16\", \"spacing-24\"]}\n $pv=\"spacing-20\"\n $borderRadius=\"border-radius-l\"\n $borderColor={isDisabled ? \"border-neutral-lighter\" : borderColor}\n $ba=\"border-solid-l\"\n $disabled={isDisabled}\n $color=\"text-primary\"\n href={isDisabled ? undefined : href}\n onClick={isDisabled ? undefined : onClick}\n {...rest}\n >\n <StyledIconWrapper\n $width=\"spacing-80\"\n $justifyContent=\"center\"\n $disabled={isDisabled}\n >\n <OakIcon\n iconName={pickIconForSection(lessonSectionName)}\n $width=\"spacing-56\"\n $height=\"spacing-56\"\n />\n </StyledIconWrapper>\n <FlexedOakBox>\n <StyledLabel\n as=\"strong\"\n $font={[\"heading-6\", \"heading-5\"]}\n $color={isDisabled ? \"text-disabled\" : \"text-primary\"}\n >\n {pickLabelForSection(lessonSectionName)}\n </StyledLabel>\n <OakBox\n $font={[\"body-2\", \"body-1\"]}\n $color={isDisabled ? \"text-subdued\" : \"text-primary\"}\n >\n {pickSummaryForProgress(props, isDisabled)}\n </OakBox>\n </FlexedOakBox>\n {renderQuestionCounter(props, isDisabled)}\n {isLoading ? (\n <OakFlex\n $width=\"spacing-40\"\n $height=\"spacing-40\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n <OakLoadingSpinner $width=\"spacing-24\" />\n </OakFlex>\n ) : (\n <StyledRoundIcon iconName=\"chevron-right\" $disabled={isDisabled} />\n )}\n </StyledLessonNavItem>\n );\n};\n\nfunction renderQuestionCounter(props: SectionProps, isDisabled: boolean) {\n if (props.progress !== \"complete\") {\n return null;\n }\n\n /**\n * The large answer counter is only rendered when on a non-mobile screen\n */\n switch (props.lessonSectionName) {\n case \"exit-quiz\":\n case \"starter-quiz\":\n return (\n <OakBox $display={[\"none\", \"block\"]} $mr=\"spacing-24\">\n <OakSpan\n $font=\"heading-4\"\n $color={isDisabled ? \"text-subdued\" : \"text-primary\"}\n >\n {props.grade}\n </OakSpan>\n <OakSpan\n $font=\"heading-6\"\n $color={isDisabled ? \"text-subdued\" : \"text-primary\"}\n >\n &nbsp;/&nbsp;{props.numQuestions}\n </OakSpan>\n </OakBox>\n );\n default:\n return null;\n }\n}\n\nfunction pickIconForSection(sectionName: LessonSectionName): OakIconName {\n switch (sectionName) {\n case \"intro\":\n return \"intro\";\n case \"starter-quiz\":\n case \"exit-quiz\":\n return \"quiz\";\n case \"video\":\n return \"video\";\n }\n}\n\nfunction pickColorsForSection(\n sectionName: LessonSectionName,\n): [\n notStartedBackgroundColor: OakUiRoleToken,\n backgroundColor: OakUiRoleToken,\n borderColor: OakUiRoleToken,\n disabledBackgroundColor: OakUiRoleToken | null,\n] {\n switch (sectionName) {\n case \"intro\":\n return [\n \"bg-decorative2-very-subdued\",\n \"bg-decorative2-main\",\n \"border-decorative2-stronger\",\n null,\n ];\n case \"starter-quiz\":\n return [\n \"bg-decorative1-very-subdued\",\n \"bg-decorative1-main\",\n \"border-decorative1-stronger\",\n \"bg-decorative1-subdued\",\n ];\n case \"video\":\n return [\n \"bg-decorative4-very-subdued\",\n \"bg-decorative4-main\",\n \"border-decorative4-stronger\",\n null,\n ];\n case \"exit-quiz\":\n return [\n \"bg-decorative5-very-subdued\",\n \"bg-decorative5-main\",\n \"border-decorative5-stronger\",\n \"bg-decorative5-subdued\",\n ];\n }\n}\n\nfunction pickLabelForSection(sectionName: LessonSectionName): string {\n switch (sectionName) {\n case \"intro\":\n return \"Introduction\";\n case \"starter-quiz\":\n return \"Starter quiz\";\n case \"video\":\n return \"Lesson video\";\n case \"exit-quiz\":\n return \"Exit quiz\";\n }\n}\n\nfunction pickSummaryForProgress(props: SectionProps, isDisabled: boolean) {\n switch (props.progress) {\n case \"not-started\":\n return pickSummaryForNotStarted(props);\n case \"in-progress\":\n return \"In progress...\";\n case \"complete\":\n return (\n <StyledIconWrapper\n $gap=\"spacing-4\"\n $alignItems=\"center\"\n $disabled={isDisabled}\n >\n <OakIcon iconName=\"tick\" $width=\"spacing-24\" $height=\"spacing-24\" />\n {pickSummaryForComplete(props)}\n </StyledIconWrapper>\n );\n }\n}\n\nfunction pickSummaryForNotStarted(props: SectionProps) {\n switch (props.lessonSectionName) {\n case \"intro\":\n return \"Prepare\";\n case \"starter-quiz\":\n return `Activate - ${props.numQuestions} Questions`;\n case \"exit-quiz\":\n return `Check - ${props.numQuestions} questions`;\n case \"video\":\n return \"Learn\";\n }\n}\n\nfunction pickSummaryForComplete(props: SectionProps) {\n switch (props.lessonSectionName) {\n case \"intro\":\n case \"video\":\n return \"Completed\";\n case \"starter-quiz\":\n case \"exit-quiz\":\n // The counter is rendered as the summary next\n // when on a mobile device, so it is hidden on larger screens\n return (\n <>\n <OakBox $display={[\"none\", \"block\"]}>Completed</OakBox>\n <OakBox $display={[\"block\", \"none\"]}>\n {props.grade}/{props.numQuestions} correct\n </OakBox>\n </>\n );\n }\n}\n","import React, { ReactNode } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport {\n OakBoxProps,\n oakBoxCss,\n} from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { InternalAccordionContent } from \"@/components/internal-components/InternalAccordion\";\nimport useAccordionContext from \"@/components/internal-components/InternalAccordion/useAccordionContext\";\nimport InternalAccordionProvider from \"@/components/internal-components/InternalAccordion/InternalAccordionProvider\";\nimport { FlexStyleProps, flexStyle } from \"@/styles/utils/flexStyle\";\nimport { ColorStyleProps } from \"@/styles/utils/colorStyle\";\nimport { InternalShadowRoundButton } from \"@/components/internal-components/InternalShadowRoundButton\";\n\nexport type InternalReviewAccordionProps = {\n /**\n * Whether the accordion should be open initially\n */\n initialOpen: boolean;\n /**\n * The content of the accordion\n */\n children: ReactNode;\n /**\n * The id of the accordion\n */\n id: string;\n /**\n * Accessible name for the toggle button.\n * If omitted, the visible text (\"Results\") will be used as the accessible name.\n */\n toggleButtonAriaLabel?: string;\n} & FlexStyleProps &\n OakBoxProps &\n ColorStyleProps;\n\nexport const StyledAccordionContent = styled(InternalAccordionContent)`\n width: 100%;\n`;\n\nexport const StyledAccordionButton = styled(InternalShadowRoundButton)<\n FlexStyleProps & { $isOpen: boolean }\n>`\n ${flexStyle}\n ${oakBoxCss}\n .icon-container img {\n ${(props) => css`\n transform: ${props.$isOpen ? \"rotate(180deg)\" : \"none\"};\n transition: all 0.3s ease 0s;\n `};\n }\n`;\n\n/**\n * An accordion component that can be used to show/hide content\n */\n\nconst Accordion = ({\n children,\n id,\n toggleButtonAriaLabel,\n}: InternalReviewAccordionProps) => {\n const { isOpen, setOpen } = useAccordionContext();\n\n return (\n <>\n <OakFlex\n $flexDirection={\"column\"}\n $alignItems={\"flex-end\"}\n $justifyContent={\"center\"}\n $pt={[\"spacing-20\", \"spacing-0\"]}\n >\n <StyledAccordionButton\n $isOpen={isOpen}\n onClick={() => setOpen(!isOpen)}\n aria-expanded={isOpen}\n aria-label={toggleButtonAriaLabel}\n id={id}\n iconName={\"chevron-down\"}\n defaultTextColor={\"text-primary\"}\n hoverTextColor={\"text-primary\"}\n disabledTextColor={\"text-disabled\"}\n defaultIconBackground={\"icon-primary\"}\n hoverIconBackground={\"icon-primary\"}\n disabledIconBackground={\"transparent\"}\n iconBackgroundSize={\"spacing-32\"}\n iconSize={\"spacing-24\"}\n defaultIconColor={\"icon-inverted\"}\n isTrailingIcon={true}\n >\n Results\n </StyledAccordionButton>\n </OakFlex>\n <StyledAccordionContent aria-labelledby={id}>\n <OakFlex\n $background={\"bg-primary\"}\n $borderRadius={\"border-radius-l\"}\n $pv={\"spacing-40\"}\n $ph={\"spacing-24\"}\n $minWidth={\"100%\"}\n $mt={\"spacing-24\"}\n >\n {children}\n </OakFlex>\n </StyledAccordionContent>\n </>\n );\n};\n\n/**\n *\n * use this component in the expandableReviewItemSlot on the OakPupilLessonReviewItem component\n *\n * The children of this component is the is the results from the quiz.\n */\n\nexport const InternalReviewAccordion = (\n props: InternalReviewAccordionProps,\n) => {\n return (\n <InternalAccordionProvider isInitialOpen={props.initialOpen}>\n <Accordion {...props} />\n </InternalAccordionProvider>\n );\n};\n","import React, { ReactNode } from \"react\";\nimport styled from \"styled-components\";\n\nimport { InternalReviewAccordion } from \"@/components/internal-components/InternalReviewAccordion\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { OakRoundIcon } from \"@/components/images-and-icons/OakRoundIcon\";\nimport { OakUiRoleToken } from \"@/styles\";\n\ntype LessonQuizName = \"starter-quiz\" | \"exit-quiz\";\ntype OakLessonReviewQuizProps = {\n completed: boolean;\n lessonSectionName: LessonQuizName;\n /**\n * The number of questions in the quiz\n */\n numQuestions: number;\n /**\n * The number of questions answered correctly\n */\n grade: number;\n /**\n * You MUST use the OakLessonExpandableReviewItem as the container component for this slot\n */\n resultsSlot?: React.ReactNode;\n};\n\ntype OakLessonReviewItemContainerProps = {\n $background?: OakUiRoleToken;\n $borderColor?: OakUiRoleToken;\n children: React.ReactNode;\n};\n\nconst StyledLessonReviewItem = styled(OakFlex)`\n outline: none;\n text-align: initial;\n`;\n\nexport const ReviewItemContainer = (\n props: OakLessonReviewItemContainerProps,\n) => {\n const { children, ...rest } = props;\n\n return (\n <StyledLessonReviewItem\n $flexDirection={[\"column\", \"column\", \"row\"]}\n $justifyContent={\"space-between\"}\n $flexWrap={\"wrap\"}\n $ph={[\"spacing-16\", \"spacing-24\"]}\n $pv=\"spacing-20\"\n $borderRadius=\"border-radius-l\"\n $ba=\"border-solid-l\"\n {...rest}\n >\n {children}\n </StyledLessonReviewItem>\n );\n};\n\ntype ReviewItemTitleSectionProps = {\n sectionHeader: string;\n completed: boolean;\n summaryForIncomplete: ReactNode;\n};\nexport const ReviewItemTitleSection = (props: ReviewItemTitleSectionProps) => {\n const { sectionHeader, completed, summaryForIncomplete } = props;\n return (\n <OakFlex $flexGrow={1} $flexShrink={1} $flexDirection={\"column\"}>\n <OakBox $font={[\"heading-6\", \"heading-5\"]} $color={\"text-primary\"}>\n {sectionHeader}\n </OakBox>\n <OakBox $font={[\"body-2\", \"body-1\"]}>\n {completed === false ? (\n summaryForIncomplete\n ) : (\n <OakFlex $gap=\"spacing-4\" $alignItems=\"center\">\n <OakIcon iconName=\"tick\" $width=\"spacing-24\" $height=\"spacing-24\" />\n Completed\n </OakFlex>\n )}\n </OakBox>\n </OakFlex>\n );\n};\n\nexport const OakLessonReviewQuiz = (props: OakLessonReviewQuizProps) => {\n const { completed, lessonSectionName, resultsSlot, ...rest } = props;\n const [completedBackgroundColor, borderColor, iconBackgroundColor]: [\n completedBackgroundColor: OakUiRoleToken,\n borderColor: OakUiRoleToken,\n iconBackgroundColor: OakUiRoleToken,\n ] =\n lessonSectionName === \"starter-quiz\"\n ? [\n \"bg-decorative1-very-subdued\",\n \"border-decorative1\",\n \"bg-decorative1-main\",\n ]\n : [\n \"bg-decorative5-very-subdued\",\n \"border-decorative5\",\n \"bg-decorative5-main\",\n ];\n\n const summaryForIncomplete =\n lessonSectionName === \"starter-quiz\"\n ? `Activate - ${props.numQuestions} questions`\n : `Check - ${props.numQuestions} questions`;\n\n const resultsToggleAriaLabel =\n lessonSectionName === \"starter-quiz\"\n ? \"Starter quiz results\"\n : \"Exit quiz results\";\n\n return (\n <ReviewItemContainer\n $background={completed ? completedBackgroundColor : \"bg-primary\"}\n $borderColor={completed ? completedBackgroundColor : borderColor}\n {...rest}\n >\n <OakFlex $gap=\"spacing-24\" $alignItems=\"center\">\n <OakRoundIcon\n iconName=\"quiz\"\n $width=\"spacing-56\"\n $height=\"spacing-56\"\n $background={iconBackgroundColor}\n />\n <ReviewItemTitleSection\n sectionHeader={\n lessonSectionName === \"exit-quiz\" ? \"Exit quiz\" : \"Starter quiz\"\n }\n completed={completed}\n summaryForIncomplete={summaryForIncomplete}\n />\n {completed && (\n <OakBox>\n <OakSpan $font=\"heading-4\">{props.grade}</OakSpan>\n <OakSpan $font=\"heading-6\">\n &nbsp;/&nbsp;{props.numQuestions}\n </OakSpan>\n </OakBox>\n )}\n </OakFlex>\n {completed && (\n <InternalReviewAccordion\n initialOpen={false}\n id={`quiz-review-accordion-${lessonSectionName}`}\n toggleButtonAriaLabel={resultsToggleAriaLabel}\n >\n {resultsSlot}\n </InternalReviewAccordion>\n )}\n </ReviewItemContainer>\n );\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { OakRoundIcon } from \"@/components/images-and-icons/OakRoundIcon\";\nimport { OakUiRoleToken } from \"@/styles\";\n\ntype LessonSectionName = \"intro\" | \"starter-quiz\" | \"video\" | \"exit-quiz\";\ntype BaseOakLessonReviewItemProps = {\n completed: boolean;\n};\ntype QuizSectionProps = {\n lessonSectionName: \"starter-quiz\" | \"exit-quiz\";\n /**\n * The number of questions in the quiz\n */\n numQuestions: number;\n /**\n * The number of questions answered correctly\n */\n grade: number;\n};\n\ntype VideoSectionProps = {\n lessonSectionName: \"video\";\n};\ntype IntroSectionProps = {\n lessonSectionName: \"intro\";\n};\n\nexport type OakLessonReviewItemProps = BaseOakLessonReviewItemProps &\n (IntroSectionProps | QuizSectionProps | VideoSectionProps);\n\nconst StyledLessonReviewItem = styled(OakFlex)<{ completed: boolean }>`\n outline: none;\n text-align: initial;\n`;\n\nexport const OakLessonReviewItem = (props: OakLessonReviewItemProps) => {\n const { completed, lessonSectionName, ...rest } = props;\n const [completedBackgroundColor, borderColor, iconBackgroundColor] =\n pickColorsForSection(lessonSectionName);\n const lessonSectionNameToIconMap = new Map();\n\n lessonSectionNameToIconMap.set(\"intro\", \"intro\");\n lessonSectionNameToIconMap.set(\"starter-quiz\", \"quiz\");\n lessonSectionNameToIconMap.set(\"exit-quiz\", \"quiz\");\n lessonSectionNameToIconMap.set(\"video\", \"video\");\n\n return (\n <StyledLessonReviewItem\n completed={completed}\n $gap=\"spacing-24\"\n $alignItems=\"center\"\n $background={completed ? completedBackgroundColor : \"bg-primary\"}\n $ph={[\"spacing-16\", \"spacing-24\"]}\n $pv=\"spacing-20\"\n $borderRadius=\"border-radius-l\"\n $borderColor={completed ? completedBackgroundColor : borderColor}\n $ba=\"border-solid-l\"\n {...rest}\n >\n <OakRoundIcon\n iconName={lessonSectionNameToIconMap.get(lessonSectionName)}\n $width=\"spacing-56\"\n $height=\"spacing-56\"\n $background={iconBackgroundColor}\n />\n <OakFlex $flexGrow={1} $flexShrink={1} $flexDirection={\"column\"}>\n <OakBox $font={[\"heading-6\", \"heading-5\"]} $color={\"text-primary\"}>\n {pickLabelForSection(lessonSectionName)}\n </OakBox>\n <OakBox $font={[\"body-2\", \"body-1\"]}>\n {pickSummaryForProgress(props)}\n </OakBox>\n </OakFlex>\n {renderQuestionCounter(props)}\n </StyledLessonReviewItem>\n );\n};\n\nconst pickSummaryForProgress = (props: OakLessonReviewItemProps) => {\n if (props.completed === false) {\n return pickSummaryForIncomplete(props);\n } else {\n return (\n <OakFlex $gap=\"spacing-4\" $alignItems=\"center\">\n <OakIcon iconName=\"tick\" $width=\"spacing-24\" $height=\"spacing-24\" />\n Completed\n </OakFlex>\n );\n }\n};\n\nconst pickSummaryForIncomplete = (props: OakLessonReviewItemProps) => {\n switch (props.lessonSectionName) {\n case \"intro\":\n return \"Prepare\";\n case \"starter-quiz\":\n return `Activate - ${props.numQuestions} questions`;\n case \"exit-quiz\":\n return `Check - ${props.numQuestions} questions`;\n case \"video\":\n return \"Learn\";\n }\n};\n\nconst pickLabelForSection = (sectionName: LessonSectionName): string => {\n switch (sectionName) {\n case \"intro\":\n return \"Introduction\";\n case \"starter-quiz\":\n return \"Starter quiz\";\n case \"video\":\n return \"Lesson video\";\n case \"exit-quiz\":\n return \"Exit quiz\";\n }\n};\n\nconst pickColorsForSection = (\n sectionName: LessonSectionName,\n): [\n completedBackgroundColor: OakUiRoleToken,\n borderColor: OakUiRoleToken,\n iconBackgroundColor: OakUiRoleToken,\n] => {\n switch (sectionName) {\n case \"intro\":\n return [\n \"bg-decorative2-very-subdued\",\n \"border-decorative2\",\n \"bg-decorative2-main\",\n ];\n case \"starter-quiz\":\n return [\n \"bg-decorative1-very-subdued\",\n \"border-decorative1\",\n \"bg-decorative1-main\",\n ];\n case \"video\":\n return [\n \"bg-decorative4-very-subdued\",\n \"border-decorative4\",\n \"bg-decorative4-main\",\n ];\n case \"exit-quiz\":\n return [\n \"bg-decorative5-very-subdued\",\n \"border-decorative5\",\n \"bg-decorative5-main\",\n ];\n }\n};\n\nconst renderQuestionCounter = (props: OakLessonReviewItemProps) => {\n if (props.completed === false) {\n return null;\n }\n\n switch (props.lessonSectionName) {\n case \"exit-quiz\":\n case \"starter-quiz\":\n return (\n <OakBox>\n <OakSpan $font=\"heading-4\">{props.grade}</OakSpan>\n <OakSpan $font=\"heading-6\">&nbsp;/&nbsp;{props.numQuestions}</OakSpan>\n </OakBox>\n );\n default:\n return null;\n }\n};\n","import React, { ReactNode } from \"react\";\nimport styled from \"styled-components\";\n\nimport { LessonSectionName } from \"@/components/owa/pupil/lesson/OakLessonLayout\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { OakIconProps } from \"@/components/images-and-icons/OakIcon\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { OakRoundIcon } from \"@/components/images-and-icons/OakRoundIcon\";\nimport { getBreakpoint } from \"@/styles/utils/responsiveStyle\";\n\ntype LessonTopNavSectionName = Omit<LessonSectionName, \"overview\" | \"review\">;\n\nconst StyledMobileSummary = styled(OakSpan)`\n @media (min-width: ${getBreakpoint(\"small\")}px) {\n display: none;\n }\n`;\n\nexport type OakLessonTopNavProps = {\n lessonSectionName: LessonTopNavSectionName;\n /**\n * Slot to render `OakBackLink` or similar\n */\n backLinkSlot: ReactNode;\n heading: ReactNode;\n /**\n * Displayed at the mobile breakpoint where the counter is not rendered.\n * Provides alternative content for the counter/progress in the lesson.\n */\n mobileSummary: ReactNode;\n /**\n * Slot to render `OakQuizCounter` or similar\n */\n counterSlot?: ReactNode;\n};\n\n/**\n * Controls for navigating back and displaying progress in a lesson\n */\nexport const OakLessonTopNav = ({\n lessonSectionName,\n backLinkSlot,\n counterSlot,\n heading,\n mobileSummary,\n}: OakLessonTopNavProps) => {\n return (\n <OakFlex $gap=\"spacing-24\" $alignItems=\"center\">\n <OakBox $pl={[\"spacing-0\", \"spacing-12\"]}>{backLinkSlot}</OakBox>\n <OakFlex $flexGrow=\"none\">\n <OakRoundIcon\n {...pickSectionIcon(lessonSectionName)}\n $width=\"spacing-40\"\n $height=\"spacing-40\"\n />\n </OakFlex>\n <OakBox>\n <OakHeading tag=\"h1\" $font={[\"heading-7\", \"heading-5\"]}>\n {heading}\n </OakHeading>\n <StyledMobileSummary $font=\"body-3\">\n {mobileSummary}\n </StyledMobileSummary>\n </OakBox>\n <OakFlex $flexGrow={1} $justifyContent=\"flex-end\">\n <OakBox $display={[\"none\", \"block\"]}>{counterSlot}</OakBox>\n </OakFlex>\n </OakFlex>\n );\n};\n\nfunction pickSectionIcon(\n sectionName: LessonTopNavSectionName,\n): Pick<OakIconProps, \"iconName\" | \"$background\"> {\n switch (sectionName) {\n case \"intro\":\n return {\n iconName: \"intro\",\n $background: \"icon-decorative2\",\n };\n case \"starter-quiz\":\n return {\n iconName: \"quiz\",\n $background: \"icon-decorative1\",\n };\n case \"video\":\n return {\n iconName: \"video\",\n $background: \"icon-decorative4\",\n };\n case \"exit-quiz\":\n return {\n iconName: \"quiz\",\n $background: \"icon-decorative5\",\n };\n default:\n return {\n iconName: \"intro\",\n $background: \"icon-decorative2\",\n };\n }\n}\n","import React, { ReactNode, useState } from \"react\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakCollapsibleContent } from \"@/components/layout-and-structure/OakCollapsibleContent\";\nimport { OakTertiaryButton } from \"@/components/buttons/OakTertiaryButton\";\n\ntype OakLessonVideoTranscriptProps = {\n /**\n * The transcript content\n */\n children: ReactNode;\n /**\n * The id of the collapsible content element. This is used to link the button to the content\n */\n id: string;\n /**\n * A control to toggle the video to display sign language\n */\n signLanguageControl?: ReactNode;\n transcriptToggled?: (props: { isOpen: boolean }) => void;\n};\n\n/**\n * Display a togglable video transcript with a slot to display a sign language control\n */\nexport const OakLessonVideoTranscript = ({\n children,\n id,\n signLanguageControl = null,\n transcriptToggled,\n}: OakLessonVideoTranscriptProps) => {\n const [showTranscript, setShowTranscript] = useState(false);\n\n const handleClick = () => {\n setShowTranscript(!showTranscript);\n if (transcriptToggled) {\n transcriptToggled({ isOpen: !showTranscript });\n }\n };\n\n return (\n <>\n <OakFlex\n $flexDirection={[\"column-reverse\", \"row\"]}\n $justifyContent=\"space-between\"\n >\n <OakBox>\n {children && (\n <OakTertiaryButton\n onClick={handleClick}\n iconName={showTranscript ? \"chevron-up\" : \"chevron-down\"}\n isTrailingIcon\n aria-controls={id}\n aria-expanded={showTranscript}\n $mb=\"spacing-24\"\n >\n {showTranscript ? \"Hide transcript\" : \"Show transcript\"}\n </OakTertiaryButton>\n )}\n </OakBox>\n {signLanguageControl && (\n <OakBox $mb=\"spacing-24\">{signLanguageControl}</OakBox>\n )}\n </OakFlex>\n {children && (\n <OakCollapsibleContent\n id={id}\n $maxHeight=\"spacing-960\"\n isOpen={showTranscript}\n $font=\"body-1\"\n $color=\"text-primary\"\n aria-live=\"polite\"\n >\n {children}\n </OakCollapsibleContent>\n )}\n </>\n );\n};\n","import React, { useRef } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport {\n OakFlex,\n OakFlexProps,\n} from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { InternalCheckBoxWrapper } from \"@/components/internal-components/InternalCheckBoxWrapper\";\nimport { InternalCheckBoxLabelHoverDecor } from \"@/components/internal-components/InternalCheckBoxLabel\";\nimport {\n BaseCheckBoxProps,\n InternalCheckBox,\n} from \"@/components/internal-components/InternalCheckBox/InternalCheckBox\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseBorder } from \"@/styles/helpers/parseBorder\";\nimport { parseBorderRadius } from \"@/styles/helpers/parseBorderRadius\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { OakUiRoleToken } from \"@/styles\";\n\nconst StyledInternalCheckBox = styled(InternalCheckBox)`\n &:checked:not(:disabled) {\n border: ${parseBorder(\"border-solid-l\")};\n border-color: ${parseColor(\"border-primary\")};\n }\n\n &:checked:disabled {\n border: ${parseBorder(\"border-solid-l\")};\n border-color: ${parseColor(\"text-disabled\")};\n }\n\n @media (hover: hover) {\n &:hover:not(:disabled) {\n background: ${parseColor(\"bg-primary\")};\n }\n }\n`;\n\ntype StyledFlexBoxProps = OakFlexProps & {\n $overlayBorderColor: OakUiRoleToken;\n $feedbackBgColor?: OakUiRoleToken;\n $outlineColor: OakUiRoleToken;\n};\n\nconst StyledFlexBox = styled(OakFlex)<StyledFlexBoxProps>`\n &:not(:focus-within) {\n ${(props) =>\n !!props.$outlineColor &&\n css`\n outline: ${parseBorder(\"border-solid-xl\")}\n ${parseColor(props.$outlineColor)};\n `}\n }\n\n &:has(input:not(:disabled)) {\n cursor: pointer;\n }\n\n &:has(input:disabled) {\n pointer-events: none;\n cursor: none;\n }\n\n &:focus-within {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n\n @media (hover: hover) {\n &:hover:has(input:not(:disabled)) {\n background-color: ${parseColor(\"bg-decorative1-subdued\")};\n }\n\n &:hover input:not(:disabled) {\n background: ${parseColor(\"bg-primary\")};\n }\n\n &:hover:has(input:not(:disabled)) ${InternalCheckBoxLabelHoverDecor} {\n text-decoration: underline;\n }\n\n &:hover:has(\n ${InternalCheckBoxLabelHoverDecor}\n input:not(:focus-visible):not(:checked):not(:disabled)\n )::after {\n content: \"\";\n inset: 0;\n pointer-events: none;\n position: absolute;\n border-bottom: ${parseBorder(\"border-solid-xl\")};\n border-radius: ${parseBorderRadius(\"border-radius-m2\")};\n }\n\n &:focus-within {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n\n &:has(input:checked:not(:disabled)) {\n outline: ${parseBorder(\"border-solid-xl\")};\n }\n\n &:has(input:checked:disabled) {\n outline-color: ${(props) => css`\n ${parseColor(props.$overlayBorderColor)}\n `};\n }\n\n &:has(input:disabled:not(:checked)) {\n ${(props) =>\n props.$feedbackBgColor\n ? css`\n background-color: ${props.$feedbackBgColor};\n `\n : undefined}\n }\n\n &:has(input:disabled:checked) {\n ${(props) => css`\n background-color: ${parseColor(props.$feedbackBgColor)};\n `};\n }\n }\n`;\n\nexport type OakQuizCheckBoxProps = Omit<BaseCheckBoxProps, \"defaultChecked\"> & {\n feedback?: \"correct\" | \"incorrect\" | null;\n image?: React.JSX.Element;\n innerRef?: React.RefObject<HTMLInputElement>;\n displayValue?: string | React.JSX.Element;\n /**\n * Give the field a highlight to draw attention to it\n */\n isHighlighted?: boolean;\n};\n\n/**\n * A checkbox representing the options in a multiple choice question.\n */\nexport const OakQuizCheckBox = (props: OakQuizCheckBoxProps) => {\n const {\n id,\n value,\n feedback,\n image,\n disabled,\n innerRef,\n displayValue,\n isHighlighted,\n ...rest\n } = props;\n\n const isFeedback = !!feedback;\n\n const defaultRef = useRef<HTMLInputElement>(null);\n const inputRef = innerRef ?? defaultRef;\n const showTick =\n (feedback === \"correct\" && inputRef.current?.checked) ||\n (feedback === \"incorrect\" && !inputRef.current?.checked);\n const showCross = feedback === \"incorrect\" && inputRef.current?.checked;\n\n const handleContainerClick = (\n e:\n | React.MouseEvent<HTMLDivElement>\n | React.MouseEvent<HTMLInputElement>\n | React.MouseEvent<HTMLLabelElement>,\n ) => {\n const inputId = (e.target as HTMLInputElement).id;\n\n if (inputId !== id) {\n inputRef.current?.click();\n }\n };\n\n const imageContainer = (\n <OakFlex\n $flexDirection=\"column\"\n $minWidth={\"spacing-360\"}\n $gap={\"spacing-16\"}\n >\n <OakBox>{image}</OakBox>\n {displayValue}\n </OakFlex>\n );\n\n const feedbackBgColor = showTick ? \"bg-correct\" : \"bg-incorrect\";\n const feedbackBorderColor = showTick ? \"border-success\" : \"border-error\";\n\n const inputCheckbox = (\n <StyledFlexBox\n $pa=\"spacing-20\"\n $borderRadius={\"border-radius-m2\"}\n $borderColor={\n isHighlighted ? \"border-decorative5-stronger\" : \"border-primary\"\n }\n $background={\n disabled && !isFeedback ? \"bg-neutral-stronger\" : \"bg-primary\"\n }\n $flexGrow={1}\n onClick={handleContainerClick}\n $overlayBorderColor={isFeedback ? feedbackBorderColor : \"text-disabled\"}\n $feedbackBgColor={isFeedback ? feedbackBgColor : undefined}\n $outlineColor={\n isHighlighted ? \"border-decorative5-stronger\" : \"transparent\"\n }\n >\n <InternalCheckBoxLabelHoverDecor\n pointerEvents=\"none\"\n htmlFor={id}\n labelGap={\"spacing-16\"}\n labelAlignItems={\"center\"}\n $color={disabled && !isFeedback ? \"text-disabled\" : \"text-primary\"}\n $font={\"body-1\"}\n disabled={disabled}\n >\n <InternalCheckBoxWrapper\n size={\"spacing-32\"}\n iconPadding=\"spacing-4\"\n checkedIcon={\n <OakBox\n $width=\"100%\"\n $height=\"100%\"\n $background={\n disabled || isFeedback ? \"text-disabled\" : \"text-primary\"\n }\n >\n <OakBox\n $ba={\"border-solid-m\"}\n $borderColor={\"icon-inverted\"}\n $width={\"100%\"}\n $height={\"100%\"}\n />\n </OakBox>\n }\n internalCheckbox={\n <StyledInternalCheckBox\n id={id}\n value={value}\n disabled={disabled || isFeedback}\n {...rest}\n $width={\"spacing-32\"}\n $height={\"spacing-32\"}\n $ba={\"border-solid-m\"}\n $borderColor=\"border-neutral\"\n $borderRadius={\"border-radius-s\"}\n $background={isHighlighted ? \"bg-decorative5-main\" : \"bg-primary\"}\n $checkedBackground={null}\n ref={inputRef}\n />\n }\n />\n {image ? imageContainer : displayValue}\n </InternalCheckBoxLabelHoverDecor>\n {isFeedback && (showTick || showCross) && (\n <OakFlex\n className=\"feedbackIconWrapper\"\n $flexGrow={1}\n $justifyContent={\"flex-end\"}\n $alignItems={\"flex-end\"}\n $height={\"100%\"}\n >\n {showTick && (\n <OakIcon\n iconName={\"tick\"}\n $colorFilter={\"icon-success\"}\n alt={\n feedback === \"correct\" ? \"Correct\" : \"Unselected correct choice\"\n }\n />\n )}\n {showCross && (\n <OakIcon\n iconName={\"cross\"}\n $colorFilter={\"icon-error\"}\n alt={\"Incorrect\"}\n />\n )}\n </OakFlex>\n )}\n </StyledFlexBox>\n );\n\n return (\n <OakFlex $width={\"100%\"} $position={\"relative\"}>\n {inputCheckbox}\n </OakFlex>\n );\n};\n","import React from \"react\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { InternalStyledSvg } from \"@/components/internal-components/InternalStyledSvg\";\n\nexport type OakQuizCounterProps = {\n counter: number;\n total: number;\n};\n\n/**\n *\n * The visual counter\n *\n */\nconst Pill = ({ isFilled }: { isFilled: boolean }) => {\n const fill = isFilled ? \"bg-inverted\" : \"bg-decorative2-main\";\n\n return (\n <InternalStyledSvg width={\"26\"} height={\"7\"} $fill={fill}>\n <path d=\"M25.9946 5.39444C25.6239 6.06393 25.2305 6.19303 24.8209 6.19244C22.1095 6.19103 19.4038 6.23513 16.6954 6.17886C13.8755 6.12554 11.0568 5.95577 8.23701 5.88647C6.08245 5.83383 3.92583 5.88168 1.77031 5.82906C1.37083 5.78688 0.974633 5.65207 0.587438 5.4266C0.239034 5.25091 0.0260169 4.4051 0.0657282 3.57544C0.0802365 3.27187 0.0835151 2.96627 0.0755221 2.6621C0.0593152 2.37422 0.0360468 2.08902 0.00583733 1.80794C0.211693 1.68853 0.420931 1.60668 0.631687 1.56313C2.21116 1.50998 3.79364 1.36545 5.37098 1.47899C7.02772 1.59957 8.68371 1.52614 10.3396 1.54859C14.1278 1.60068 17.9156 1.66799 21.7032 1.75053C22.6376 1.77378 23.5699 1.94774 24.5023 2.08061C24.7434 2.11977 24.982 2.21437 25.2147 2.36309C25.7285 2.68279 25.9726 3.48442 25.9866 4.74866C25.9835 4.9519 25.99 5.1389 25.9946 5.39444ZM1.01098 5.12095L1.01116 4.96572L0.732258 4.97309C0.732185 5.03473 0.732113 5.09636 0.732038 5.16028L1.01098 5.12095ZM0.98205 2.54457C0.854219 3.37199 0.854223 3.37199 1.06634 3.33442C1.04341 3.07024 1.01467 2.80621 0.986893 2.54444L0.98205 2.54457ZM7.78254 2.02475L7.80301 1.91236L7.31881 1.92515L7.31868 2.03701L7.78254 2.02475ZM7.94252 3.502L7.95696 3.57693L8.21359 3.57015L8.21367 3.49483L7.94252 3.502ZM0.558722 1.85039L0.542114 1.97638L0.905262 1.96678L0.90541 1.84123L0.558722 1.85039Z\" />\n </InternalStyledSvg>\n );\n};\n\n/**\n * A counter representing progress through the questions in a quiz\n */\nexport const OakQuizCounter = (props: OakQuizCounterProps) => {\n const { counter, total } = props;\n const pills = Array.from({ length: props.total }, (_, i) => (\n <Pill key={i} isFilled={i < props.counter} />\n ));\n return (\n <OakFlex $flexDirection={\"column\"} $gap={\"spacing-12\"} $alignItems={\"end\"}>\n <OakSpan $font={\"heading-light-4\"} $color={\"text-subdued\"}>\n <OakSpan $font={\"heading-4\"} $color={\"text-primary\"}>\n {counter}{\" \"}\n </OakSpan>\n of {total}\n </OakSpan>\n <OakFlex\n $gap={\"spacing-8\"}\n $flexWrap={\"wrap\"}\n aria-hidden=\"true\"\n focusable={false}\n >\n {pills}\n </OakFlex>\n </OakFlex>\n );\n};\n","import { useMemo, useLayoutEffect, useEffect, useRef, useCallback } from 'react';\n\nfunction useCombinedRefs() {\n for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {\n refs[_key] = arguments[_key];\n }\n\n return useMemo(() => node => {\n refs.forEach(ref => ref(node));\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n refs);\n}\n\n// https://github.com/facebook/react/blob/master/packages/shared/ExecutionEnvironment.js\nconst canUseDOM = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined';\n\nfunction isWindow(element) {\n const elementString = Object.prototype.toString.call(element);\n return elementString === '[object Window]' || // In Electron context the Window object serializes to [object global]\n elementString === '[object global]';\n}\n\nfunction isNode(node) {\n return 'nodeType' in node;\n}\n\nfunction getWindow(target) {\n var _target$ownerDocument, _target$ownerDocument2;\n\n if (!target) {\n return window;\n }\n\n if (isWindow(target)) {\n return target;\n }\n\n if (!isNode(target)) {\n return window;\n }\n\n return (_target$ownerDocument = (_target$ownerDocument2 = target.ownerDocument) == null ? void 0 : _target$ownerDocument2.defaultView) != null ? _target$ownerDocument : window;\n}\n\nfunction isDocument(node) {\n const {\n Document\n } = getWindow(node);\n return node instanceof Document;\n}\n\nfunction isHTMLElement(node) {\n if (isWindow(node)) {\n return false;\n }\n\n return node instanceof getWindow(node).HTMLElement;\n}\n\nfunction isSVGElement(node) {\n return node instanceof getWindow(node).SVGElement;\n}\n\nfunction getOwnerDocument(target) {\n if (!target) {\n return document;\n }\n\n if (isWindow(target)) {\n return target.document;\n }\n\n if (!isNode(target)) {\n return document;\n }\n\n if (isDocument(target)) {\n return target;\n }\n\n if (isHTMLElement(target) || isSVGElement(target)) {\n return target.ownerDocument;\n }\n\n return document;\n}\n\n/**\r\n * A hook that resolves to useEffect on the server and useLayoutEffect on the client\r\n * @param callback {function} Callback function that is invoked when the dependencies of the hook change\r\n */\n\nconst useIsomorphicLayoutEffect = canUseDOM ? useLayoutEffect : useEffect;\n\nfunction useEvent(handler) {\n const handlerRef = useRef(handler);\n useIsomorphicLayoutEffect(() => {\n handlerRef.current = handler;\n });\n return useCallback(function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return handlerRef.current == null ? void 0 : handlerRef.current(...args);\n }, []);\n}\n\nfunction useInterval() {\n const intervalRef = useRef(null);\n const set = useCallback((listener, duration) => {\n intervalRef.current = setInterval(listener, duration);\n }, []);\n const clear = useCallback(() => {\n if (intervalRef.current !== null) {\n clearInterval(intervalRef.current);\n intervalRef.current = null;\n }\n }, []);\n return [set, clear];\n}\n\nfunction useLatestValue(value, dependencies) {\n if (dependencies === void 0) {\n dependencies = [value];\n }\n\n const valueRef = useRef(value);\n useIsomorphicLayoutEffect(() => {\n if (valueRef.current !== value) {\n valueRef.current = value;\n }\n }, dependencies);\n return valueRef;\n}\n\nfunction useLazyMemo(callback, dependencies) {\n const valueRef = useRef();\n return useMemo(() => {\n const newValue = callback(valueRef.current);\n valueRef.current = newValue;\n return newValue;\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [...dependencies]);\n}\n\nfunction useNodeRef(onChange) {\n const onChangeHandler = useEvent(onChange);\n const node = useRef(null);\n const setNodeRef = useCallback(element => {\n if (element !== node.current) {\n onChangeHandler == null ? void 0 : onChangeHandler(element, node.current);\n }\n\n node.current = element;\n }, //eslint-disable-next-line\n []);\n return [node, setNodeRef];\n}\n\nfunction usePrevious(value) {\n const ref = useRef();\n useEffect(() => {\n ref.current = value;\n }, [value]);\n return ref.current;\n}\n\nlet ids = {};\nfunction useUniqueId(prefix, value) {\n return useMemo(() => {\n if (value) {\n return value;\n }\n\n const id = ids[prefix] == null ? 0 : ids[prefix] + 1;\n ids[prefix] = id;\n return prefix + \"-\" + id;\n }, [prefix, value]);\n}\n\nfunction createAdjustmentFn(modifier) {\n return function (object) {\n for (var _len = arguments.length, adjustments = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n adjustments[_key - 1] = arguments[_key];\n }\n\n return adjustments.reduce((accumulator, adjustment) => {\n const entries = Object.entries(adjustment);\n\n for (const [key, valueAdjustment] of entries) {\n const value = accumulator[key];\n\n if (value != null) {\n accumulator[key] = value + modifier * valueAdjustment;\n }\n }\n\n return accumulator;\n }, { ...object\n });\n };\n}\n\nconst add = /*#__PURE__*/createAdjustmentFn(1);\nconst subtract = /*#__PURE__*/createAdjustmentFn(-1);\n\nfunction hasViewportRelativeCoordinates(event) {\n return 'clientX' in event && 'clientY' in event;\n}\n\nfunction isKeyboardEvent(event) {\n if (!event) {\n return false;\n }\n\n const {\n KeyboardEvent\n } = getWindow(event.target);\n return KeyboardEvent && event instanceof KeyboardEvent;\n}\n\nfunction isTouchEvent(event) {\n if (!event) {\n return false;\n }\n\n const {\n TouchEvent\n } = getWindow(event.target);\n return TouchEvent && event instanceof TouchEvent;\n}\n\n/**\r\n * Returns the normalized x and y coordinates for mouse and touch events.\r\n */\n\nfunction getEventCoordinates(event) {\n if (isTouchEvent(event)) {\n if (event.touches && event.touches.length) {\n const {\n clientX: x,\n clientY: y\n } = event.touches[0];\n return {\n x,\n y\n };\n } else if (event.changedTouches && event.changedTouches.length) {\n const {\n clientX: x,\n clientY: y\n } = event.changedTouches[0];\n return {\n x,\n y\n };\n }\n }\n\n if (hasViewportRelativeCoordinates(event)) {\n return {\n x: event.clientX,\n y: event.clientY\n };\n }\n\n return null;\n}\n\nconst CSS = /*#__PURE__*/Object.freeze({\n Translate: {\n toString(transform) {\n if (!transform) {\n return;\n }\n\n const {\n x,\n y\n } = transform;\n return \"translate3d(\" + (x ? Math.round(x) : 0) + \"px, \" + (y ? Math.round(y) : 0) + \"px, 0)\";\n }\n\n },\n Scale: {\n toString(transform) {\n if (!transform) {\n return;\n }\n\n const {\n scaleX,\n scaleY\n } = transform;\n return \"scaleX(\" + scaleX + \") scaleY(\" + scaleY + \")\";\n }\n\n },\n Transform: {\n toString(transform) {\n if (!transform) {\n return;\n }\n\n return [CSS.Translate.toString(transform), CSS.Scale.toString(transform)].join(' ');\n }\n\n },\n Transition: {\n toString(_ref) {\n let {\n property,\n duration,\n easing\n } = _ref;\n return property + \" \" + duration + \"ms \" + easing;\n }\n\n }\n});\n\nconst SELECTOR = 'a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]';\nfunction findFirstFocusableNode(element) {\n if (element.matches(SELECTOR)) {\n return element;\n }\n\n return element.querySelector(SELECTOR);\n}\n\nexport { CSS, add, canUseDOM, findFirstFocusableNode, getEventCoordinates, getOwnerDocument, getWindow, hasViewportRelativeCoordinates, isDocument, isHTMLElement, isKeyboardEvent, isNode, isSVGElement, isTouchEvent, isWindow, subtract, useCombinedRefs, useEvent, useInterval, useIsomorphicLayoutEffect, useLatestValue, useLazyMemo, useNodeRef, usePrevious, useUniqueId };\n//# sourceMappingURL=utilities.esm.js.map\n","import React, { useState, useCallback } from 'react';\n\nconst hiddenStyles = {\n display: 'none'\n};\nfunction HiddenText(_ref) {\n let {\n id,\n value\n } = _ref;\n return React.createElement(\"div\", {\n id: id,\n style: hiddenStyles\n }, value);\n}\n\nfunction LiveRegion(_ref) {\n let {\n id,\n announcement,\n ariaLiveType = \"assertive\"\n } = _ref;\n // Hide element visually but keep it readable by screen readers\n const visuallyHidden = {\n position: 'fixed',\n top: 0,\n left: 0,\n width: 1,\n height: 1,\n margin: -1,\n border: 0,\n padding: 0,\n overflow: 'hidden',\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(100%)',\n whiteSpace: 'nowrap'\n };\n return React.createElement(\"div\", {\n id: id,\n style: visuallyHidden,\n role: \"status\",\n \"aria-live\": ariaLiveType,\n \"aria-atomic\": true\n }, announcement);\n}\n\nfunction useAnnouncement() {\n const [announcement, setAnnouncement] = useState('');\n const announce = useCallback(value => {\n if (value != null) {\n setAnnouncement(value);\n }\n }, []);\n return {\n announce,\n announcement\n };\n}\n\nexport { HiddenText, LiveRegion, useAnnouncement };\n//# sourceMappingURL=accessibility.esm.js.map\n","import React, { createContext, useContext, useEffect, useState, useCallback, useMemo, useRef, memo, useReducer, cloneElement, forwardRef } from 'react';\nimport { createPortal, unstable_batchedUpdates } from 'react-dom';\nimport { useUniqueId, getEventCoordinates, getWindow, isDocument, isHTMLElement, isSVGElement, canUseDOM, isWindow, isNode, getOwnerDocument, add, isKeyboardEvent, subtract, useLazyMemo, useInterval, usePrevious, useLatestValue, useEvent, useIsomorphicLayoutEffect, useNodeRef, findFirstFocusableNode, CSS } from '@dnd-kit/utilities';\nimport { useAnnouncement, HiddenText, LiveRegion } from '@dnd-kit/accessibility';\n\nconst DndMonitorContext = /*#__PURE__*/createContext(null);\n\nfunction useDndMonitor(listener) {\n const registerListener = useContext(DndMonitorContext);\n useEffect(() => {\n if (!registerListener) {\n throw new Error('useDndMonitor must be used within a children of <DndContext>');\n }\n\n const unsubscribe = registerListener(listener);\n return unsubscribe;\n }, [listener, registerListener]);\n}\n\nfunction useDndMonitorProvider() {\n const [listeners] = useState(() => new Set());\n const registerListener = useCallback(listener => {\n listeners.add(listener);\n return () => listeners.delete(listener);\n }, [listeners]);\n const dispatch = useCallback(_ref => {\n let {\n type,\n event\n } = _ref;\n listeners.forEach(listener => {\n var _listener$type;\n\n return (_listener$type = listener[type]) == null ? void 0 : _listener$type.call(listener, event);\n });\n }, [listeners]);\n return [dispatch, registerListener];\n}\n\nconst defaultScreenReaderInstructions = {\n draggable: \"\\n To pick up a draggable item, press the space bar.\\n While dragging, use the arrow keys to move the item.\\n Press space again to drop the item in its new position, or press escape to cancel.\\n \"\n};\nconst defaultAnnouncements = {\n onDragStart(_ref) {\n let {\n active\n } = _ref;\n return \"Picked up draggable item \" + active.id + \".\";\n },\n\n onDragOver(_ref2) {\n let {\n active,\n over\n } = _ref2;\n\n if (over) {\n return \"Draggable item \" + active.id + \" was moved over droppable area \" + over.id + \".\";\n }\n\n return \"Draggable item \" + active.id + \" is no longer over a droppable area.\";\n },\n\n onDragEnd(_ref3) {\n let {\n active,\n over\n } = _ref3;\n\n if (over) {\n return \"Draggable item \" + active.id + \" was dropped over droppable area \" + over.id;\n }\n\n return \"Draggable item \" + active.id + \" was dropped.\";\n },\n\n onDragCancel(_ref4) {\n let {\n active\n } = _ref4;\n return \"Dragging was cancelled. Draggable item \" + active.id + \" was dropped.\";\n }\n\n};\n\nfunction Accessibility(_ref) {\n let {\n announcements = defaultAnnouncements,\n container,\n hiddenTextDescribedById,\n screenReaderInstructions = defaultScreenReaderInstructions\n } = _ref;\n const {\n announce,\n announcement\n } = useAnnouncement();\n const liveRegionId = useUniqueId(\"DndLiveRegion\");\n const [mounted, setMounted] = useState(false);\n useEffect(() => {\n setMounted(true);\n }, []);\n useDndMonitor(useMemo(() => ({\n onDragStart(_ref2) {\n let {\n active\n } = _ref2;\n announce(announcements.onDragStart({\n active\n }));\n },\n\n onDragMove(_ref3) {\n let {\n active,\n over\n } = _ref3;\n\n if (announcements.onDragMove) {\n announce(announcements.onDragMove({\n active,\n over\n }));\n }\n },\n\n onDragOver(_ref4) {\n let {\n active,\n over\n } = _ref4;\n announce(announcements.onDragOver({\n active,\n over\n }));\n },\n\n onDragEnd(_ref5) {\n let {\n active,\n over\n } = _ref5;\n announce(announcements.onDragEnd({\n active,\n over\n }));\n },\n\n onDragCancel(_ref6) {\n let {\n active,\n over\n } = _ref6;\n announce(announcements.onDragCancel({\n active,\n over\n }));\n }\n\n }), [announce, announcements]));\n\n if (!mounted) {\n return null;\n }\n\n const markup = React.createElement(React.Fragment, null, React.createElement(HiddenText, {\n id: hiddenTextDescribedById,\n value: screenReaderInstructions.draggable\n }), React.createElement(LiveRegion, {\n id: liveRegionId,\n announcement: announcement\n }));\n return container ? createPortal(markup, container) : markup;\n}\n\nvar Action;\n\n(function (Action) {\n Action[\"DragStart\"] = \"dragStart\";\n Action[\"DragMove\"] = \"dragMove\";\n Action[\"DragEnd\"] = \"dragEnd\";\n Action[\"DragCancel\"] = \"dragCancel\";\n Action[\"DragOver\"] = \"dragOver\";\n Action[\"RegisterDroppable\"] = \"registerDroppable\";\n Action[\"SetDroppableDisabled\"] = \"setDroppableDisabled\";\n Action[\"UnregisterDroppable\"] = \"unregisterDroppable\";\n})(Action || (Action = {}));\n\nfunction noop() {}\n\nfunction useSensor(sensor, options) {\n return useMemo(() => ({\n sensor,\n options: options != null ? options : {}\n }), // eslint-disable-next-line react-hooks/exhaustive-deps\n [sensor, options]);\n}\n\nfunction useSensors() {\n for (var _len = arguments.length, sensors = new Array(_len), _key = 0; _key < _len; _key++) {\n sensors[_key] = arguments[_key];\n }\n\n return useMemo(() => [...sensors].filter(sensor => sensor != null), // eslint-disable-next-line react-hooks/exhaustive-deps\n [...sensors]);\n}\n\nconst defaultCoordinates = /*#__PURE__*/Object.freeze({\n x: 0,\n y: 0\n});\n\n/**\r\n * Returns the distance between two points\r\n */\nfunction distanceBetween(p1, p2) {\n return Math.sqrt(Math.pow(p1.x - p2.x, 2) + Math.pow(p1.y - p2.y, 2));\n}\n\nfunction getRelativeTransformOrigin(event, rect) {\n const eventCoordinates = getEventCoordinates(event);\n\n if (!eventCoordinates) {\n return '0 0';\n }\n\n const transformOrigin = {\n x: (eventCoordinates.x - rect.left) / rect.width * 100,\n y: (eventCoordinates.y - rect.top) / rect.height * 100\n };\n return transformOrigin.x + \"% \" + transformOrigin.y + \"%\";\n}\n\n/**\r\n * Sort collisions from smallest to greatest value\r\n */\nfunction sortCollisionsAsc(_ref, _ref2) {\n let {\n data: {\n value: a\n }\n } = _ref;\n let {\n data: {\n value: b\n }\n } = _ref2;\n return a - b;\n}\n/**\r\n * Sort collisions from greatest to smallest value\r\n */\n\nfunction sortCollisionsDesc(_ref3, _ref4) {\n let {\n data: {\n value: a\n }\n } = _ref3;\n let {\n data: {\n value: b\n }\n } = _ref4;\n return b - a;\n}\n/**\r\n * Returns the coordinates of the corners of a given rectangle:\r\n * [TopLeft {x, y}, TopRight {x, y}, BottomLeft {x, y}, BottomRight {x, y}]\r\n */\n\nfunction cornersOfRectangle(_ref5) {\n let {\n left,\n top,\n height,\n width\n } = _ref5;\n return [{\n x: left,\n y: top\n }, {\n x: left + width,\n y: top\n }, {\n x: left,\n y: top + height\n }, {\n x: left + width,\n y: top + height\n }];\n}\nfunction getFirstCollision(collisions, property) {\n if (!collisions || collisions.length === 0) {\n return null;\n }\n\n const [firstCollision] = collisions;\n return property ? firstCollision[property] : firstCollision;\n}\n\n/**\r\n * Returns the coordinates of the center of a given ClientRect\r\n */\n\nfunction centerOfRectangle(rect, left, top) {\n if (left === void 0) {\n left = rect.left;\n }\n\n if (top === void 0) {\n top = rect.top;\n }\n\n return {\n x: left + rect.width * 0.5,\n y: top + rect.height * 0.5\n };\n}\n/**\r\n * Returns the closest rectangles from an array of rectangles to the center of a given\r\n * rectangle.\r\n */\n\n\nconst closestCenter = _ref => {\n let {\n collisionRect,\n droppableRects,\n droppableContainers\n } = _ref;\n const centerRect = centerOfRectangle(collisionRect, collisionRect.left, collisionRect.top);\n const collisions = [];\n\n for (const droppableContainer of droppableContainers) {\n const {\n id\n } = droppableContainer;\n const rect = droppableRects.get(id);\n\n if (rect) {\n const distBetween = distanceBetween(centerOfRectangle(rect), centerRect);\n collisions.push({\n id,\n data: {\n droppableContainer,\n value: distBetween\n }\n });\n }\n }\n\n return collisions.sort(sortCollisionsAsc);\n};\n\n/**\r\n * Returns the closest rectangles from an array of rectangles to the corners of\r\n * another rectangle.\r\n */\n\nconst closestCorners = _ref => {\n let {\n collisionRect,\n droppableRects,\n droppableContainers\n } = _ref;\n const corners = cornersOfRectangle(collisionRect);\n const collisions = [];\n\n for (const droppableContainer of droppableContainers) {\n const {\n id\n } = droppableContainer;\n const rect = droppableRects.get(id);\n\n if (rect) {\n const rectCorners = cornersOfRectangle(rect);\n const distances = corners.reduce((accumulator, corner, index) => {\n return accumulator + distanceBetween(rectCorners[index], corner);\n }, 0);\n const effectiveDistance = Number((distances / 4).toFixed(4));\n collisions.push({\n id,\n data: {\n droppableContainer,\n value: effectiveDistance\n }\n });\n }\n }\n\n return collisions.sort(sortCollisionsAsc);\n};\n\n/**\r\n * Returns the intersecting rectangle area between two rectangles\r\n */\n\nfunction getIntersectionRatio(entry, target) {\n const top = Math.max(target.top, entry.top);\n const left = Math.max(target.left, entry.left);\n const right = Math.min(target.left + target.width, entry.left + entry.width);\n const bottom = Math.min(target.top + target.height, entry.top + entry.height);\n const width = right - left;\n const height = bottom - top;\n\n if (left < right && top < bottom) {\n const targetArea = target.width * target.height;\n const entryArea = entry.width * entry.height;\n const intersectionArea = width * height;\n const intersectionRatio = intersectionArea / (targetArea + entryArea - intersectionArea);\n return Number(intersectionRatio.toFixed(4));\n } // Rectangles do not overlap, or overlap has an area of zero (edge/corner overlap)\n\n\n return 0;\n}\n/**\r\n * Returns the rectangles that has the greatest intersection area with a given\r\n * rectangle in an array of rectangles.\r\n */\n\nconst rectIntersection = _ref => {\n let {\n collisionRect,\n droppableRects,\n droppableContainers\n } = _ref;\n const collisions = [];\n\n for (const droppableContainer of droppableContainers) {\n const {\n id\n } = droppableContainer;\n const rect = droppableRects.get(id);\n\n if (rect) {\n const intersectionRatio = getIntersectionRatio(rect, collisionRect);\n\n if (intersectionRatio > 0) {\n collisions.push({\n id,\n data: {\n droppableContainer,\n value: intersectionRatio\n }\n });\n }\n }\n }\n\n return collisions.sort(sortCollisionsDesc);\n};\n\n/**\r\n * Check if a given point is contained within a bounding rectangle\r\n */\n\nfunction isPointWithinRect(point, rect) {\n const {\n top,\n left,\n bottom,\n right\n } = rect;\n return top <= point.y && point.y <= bottom && left <= point.x && point.x <= right;\n}\n/**\r\n * Returns the rectangles that the pointer is hovering over\r\n */\n\n\nconst pointerWithin = _ref => {\n let {\n droppableContainers,\n droppableRects,\n pointerCoordinates\n } = _ref;\n\n if (!pointerCoordinates) {\n return [];\n }\n\n const collisions = [];\n\n for (const droppableContainer of droppableContainers) {\n const {\n id\n } = droppableContainer;\n const rect = droppableRects.get(id);\n\n if (rect && isPointWithinRect(pointerCoordinates, rect)) {\n /* There may be more than a single rectangle intersecting\r\n * with the pointer coordinates. In order to sort the\r\n * colliding rectangles, we measure the distance between\r\n * the pointer and the corners of the intersecting rectangle\r\n */\n const corners = cornersOfRectangle(rect);\n const distances = corners.reduce((accumulator, corner) => {\n return accumulator + distanceBetween(pointerCoordinates, corner);\n }, 0);\n const effectiveDistance = Number((distances / 4).toFixed(4));\n collisions.push({\n id,\n data: {\n droppableContainer,\n value: effectiveDistance\n }\n });\n }\n }\n\n return collisions.sort(sortCollisionsAsc);\n};\n\nfunction adjustScale(transform, rect1, rect2) {\n return { ...transform,\n scaleX: rect1 && rect2 ? rect1.width / rect2.width : 1,\n scaleY: rect1 && rect2 ? rect1.height / rect2.height : 1\n };\n}\n\nfunction getRectDelta(rect1, rect2) {\n return rect1 && rect2 ? {\n x: rect1.left - rect2.left,\n y: rect1.top - rect2.top\n } : defaultCoordinates;\n}\n\nfunction createRectAdjustmentFn(modifier) {\n return function adjustClientRect(rect) {\n for (var _len = arguments.length, adjustments = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n adjustments[_key - 1] = arguments[_key];\n }\n\n return adjustments.reduce((acc, adjustment) => ({ ...acc,\n top: acc.top + modifier * adjustment.y,\n bottom: acc.bottom + modifier * adjustment.y,\n left: acc.left + modifier * adjustment.x,\n right: acc.right + modifier * adjustment.x\n }), { ...rect\n });\n };\n}\nconst getAdjustedRect = /*#__PURE__*/createRectAdjustmentFn(1);\n\nfunction parseTransform(transform) {\n if (transform.startsWith('matrix3d(')) {\n const transformArray = transform.slice(9, -1).split(/, /);\n return {\n x: +transformArray[12],\n y: +transformArray[13],\n scaleX: +transformArray[0],\n scaleY: +transformArray[5]\n };\n } else if (transform.startsWith('matrix(')) {\n const transformArray = transform.slice(7, -1).split(/, /);\n return {\n x: +transformArray[4],\n y: +transformArray[5],\n scaleX: +transformArray[0],\n scaleY: +transformArray[3]\n };\n }\n\n return null;\n}\n\nfunction inverseTransform(rect, transform, transformOrigin) {\n const parsedTransform = parseTransform(transform);\n\n if (!parsedTransform) {\n return rect;\n }\n\n const {\n scaleX,\n scaleY,\n x: translateX,\n y: translateY\n } = parsedTransform;\n const x = rect.left - translateX - (1 - scaleX) * parseFloat(transformOrigin);\n const y = rect.top - translateY - (1 - scaleY) * parseFloat(transformOrigin.slice(transformOrigin.indexOf(' ') + 1));\n const w = scaleX ? rect.width / scaleX : rect.width;\n const h = scaleY ? rect.height / scaleY : rect.height;\n return {\n width: w,\n height: h,\n top: y,\n right: x + w,\n bottom: y + h,\n left: x\n };\n}\n\nconst defaultOptions = {\n ignoreTransform: false\n};\n/**\r\n * Returns the bounding client rect of an element relative to the viewport.\r\n */\n\nfunction getClientRect(element, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n let rect = element.getBoundingClientRect();\n\n if (options.ignoreTransform) {\n const {\n transform,\n transformOrigin\n } = getWindow(element).getComputedStyle(element);\n\n if (transform) {\n rect = inverseTransform(rect, transform, transformOrigin);\n }\n }\n\n const {\n top,\n left,\n width,\n height,\n bottom,\n right\n } = rect;\n return {\n top,\n left,\n width,\n height,\n bottom,\n right\n };\n}\n/**\r\n * Returns the bounding client rect of an element relative to the viewport.\r\n *\r\n * @remarks\r\n * The ClientRect returned by this method does not take into account transforms\r\n * applied to the element it measures.\r\n *\r\n */\n\nfunction getTransformAgnosticClientRect(element) {\n return getClientRect(element, {\n ignoreTransform: true\n });\n}\n\nfunction getWindowClientRect(element) {\n const width = element.innerWidth;\n const height = element.innerHeight;\n return {\n top: 0,\n left: 0,\n right: width,\n bottom: height,\n width,\n height\n };\n}\n\nfunction isFixed(node, computedStyle) {\n if (computedStyle === void 0) {\n computedStyle = getWindow(node).getComputedStyle(node);\n }\n\n return computedStyle.position === 'fixed';\n}\n\nfunction isScrollable(element, computedStyle) {\n if (computedStyle === void 0) {\n computedStyle = getWindow(element).getComputedStyle(element);\n }\n\n const overflowRegex = /(auto|scroll|overlay)/;\n const properties = ['overflow', 'overflowX', 'overflowY'];\n return properties.some(property => {\n const value = computedStyle[property];\n return typeof value === 'string' ? overflowRegex.test(value) : false;\n });\n}\n\nfunction getScrollableAncestors(element, limit) {\n const scrollParents = [];\n\n function findScrollableAncestors(node) {\n if (limit != null && scrollParents.length >= limit) {\n return scrollParents;\n }\n\n if (!node) {\n return scrollParents;\n }\n\n if (isDocument(node) && node.scrollingElement != null && !scrollParents.includes(node.scrollingElement)) {\n scrollParents.push(node.scrollingElement);\n return scrollParents;\n }\n\n if (!isHTMLElement(node) || isSVGElement(node)) {\n return scrollParents;\n }\n\n if (scrollParents.includes(node)) {\n return scrollParents;\n }\n\n const computedStyle = getWindow(element).getComputedStyle(node);\n\n if (node !== element) {\n if (isScrollable(node, computedStyle)) {\n scrollParents.push(node);\n }\n }\n\n if (isFixed(node, computedStyle)) {\n return scrollParents;\n }\n\n return findScrollableAncestors(node.parentNode);\n }\n\n if (!element) {\n return scrollParents;\n }\n\n return findScrollableAncestors(element);\n}\nfunction getFirstScrollableAncestor(node) {\n const [firstScrollableAncestor] = getScrollableAncestors(node, 1);\n return firstScrollableAncestor != null ? firstScrollableAncestor : null;\n}\n\nfunction getScrollableElement(element) {\n if (!canUseDOM || !element) {\n return null;\n }\n\n if (isWindow(element)) {\n return element;\n }\n\n if (!isNode(element)) {\n return null;\n }\n\n if (isDocument(element) || element === getOwnerDocument(element).scrollingElement) {\n return window;\n }\n\n if (isHTMLElement(element)) {\n return element;\n }\n\n return null;\n}\n\nfunction getScrollXCoordinate(element) {\n if (isWindow(element)) {\n return element.scrollX;\n }\n\n return element.scrollLeft;\n}\nfunction getScrollYCoordinate(element) {\n if (isWindow(element)) {\n return element.scrollY;\n }\n\n return element.scrollTop;\n}\nfunction getScrollCoordinates(element) {\n return {\n x: getScrollXCoordinate(element),\n y: getScrollYCoordinate(element)\n };\n}\n\nvar Direction;\n\n(function (Direction) {\n Direction[Direction[\"Forward\"] = 1] = \"Forward\";\n Direction[Direction[\"Backward\"] = -1] = \"Backward\";\n})(Direction || (Direction = {}));\n\nfunction isDocumentScrollingElement(element) {\n if (!canUseDOM || !element) {\n return false;\n }\n\n return element === document.scrollingElement;\n}\n\nfunction getScrollPosition(scrollingContainer) {\n const minScroll = {\n x: 0,\n y: 0\n };\n const dimensions = isDocumentScrollingElement(scrollingContainer) ? {\n height: window.innerHeight,\n width: window.innerWidth\n } : {\n height: scrollingContainer.clientHeight,\n width: scrollingContainer.clientWidth\n };\n const maxScroll = {\n x: scrollingContainer.scrollWidth - dimensions.width,\n y: scrollingContainer.scrollHeight - dimensions.height\n };\n const isTop = scrollingContainer.scrollTop <= minScroll.y;\n const isLeft = scrollingContainer.scrollLeft <= minScroll.x;\n const isBottom = scrollingContainer.scrollTop >= maxScroll.y;\n const isRight = scrollingContainer.scrollLeft >= maxScroll.x;\n return {\n isTop,\n isLeft,\n isBottom,\n isRight,\n maxScroll,\n minScroll\n };\n}\n\nconst defaultThreshold = {\n x: 0.2,\n y: 0.2\n};\nfunction getScrollDirectionAndSpeed(scrollContainer, scrollContainerRect, _ref, acceleration, thresholdPercentage) {\n let {\n top,\n left,\n right,\n bottom\n } = _ref;\n\n if (acceleration === void 0) {\n acceleration = 10;\n }\n\n if (thresholdPercentage === void 0) {\n thresholdPercentage = defaultThreshold;\n }\n\n const {\n isTop,\n isBottom,\n isLeft,\n isRight\n } = getScrollPosition(scrollContainer);\n const direction = {\n x: 0,\n y: 0\n };\n const speed = {\n x: 0,\n y: 0\n };\n const threshold = {\n height: scrollContainerRect.height * thresholdPercentage.y,\n width: scrollContainerRect.width * thresholdPercentage.x\n };\n\n if (!isTop && top <= scrollContainerRect.top + threshold.height) {\n // Scroll Up\n direction.y = Direction.Backward;\n speed.y = acceleration * Math.abs((scrollContainerRect.top + threshold.height - top) / threshold.height);\n } else if (!isBottom && bottom >= scrollContainerRect.bottom - threshold.height) {\n // Scroll Down\n direction.y = Direction.Forward;\n speed.y = acceleration * Math.abs((scrollContainerRect.bottom - threshold.height - bottom) / threshold.height);\n }\n\n if (!isRight && right >= scrollContainerRect.right - threshold.width) {\n // Scroll Right\n direction.x = Direction.Forward;\n speed.x = acceleration * Math.abs((scrollContainerRect.right - threshold.width - right) / threshold.width);\n } else if (!isLeft && left <= scrollContainerRect.left + threshold.width) {\n // Scroll Left\n direction.x = Direction.Backward;\n speed.x = acceleration * Math.abs((scrollContainerRect.left + threshold.width - left) / threshold.width);\n }\n\n return {\n direction,\n speed\n };\n}\n\nfunction getScrollElementRect(element) {\n if (element === document.scrollingElement) {\n const {\n innerWidth,\n innerHeight\n } = window;\n return {\n top: 0,\n left: 0,\n right: innerWidth,\n bottom: innerHeight,\n width: innerWidth,\n height: innerHeight\n };\n }\n\n const {\n top,\n left,\n right,\n bottom\n } = element.getBoundingClientRect();\n return {\n top,\n left,\n right,\n bottom,\n width: element.clientWidth,\n height: element.clientHeight\n };\n}\n\nfunction getScrollOffsets(scrollableAncestors) {\n return scrollableAncestors.reduce((acc, node) => {\n return add(acc, getScrollCoordinates(node));\n }, defaultCoordinates);\n}\nfunction getScrollXOffset(scrollableAncestors) {\n return scrollableAncestors.reduce((acc, node) => {\n return acc + getScrollXCoordinate(node);\n }, 0);\n}\nfunction getScrollYOffset(scrollableAncestors) {\n return scrollableAncestors.reduce((acc, node) => {\n return acc + getScrollYCoordinate(node);\n }, 0);\n}\n\nfunction scrollIntoViewIfNeeded(element, measure) {\n if (measure === void 0) {\n measure = getClientRect;\n }\n\n if (!element) {\n return;\n }\n\n const {\n top,\n left,\n bottom,\n right\n } = measure(element);\n const firstScrollableAncestor = getFirstScrollableAncestor(element);\n\n if (!firstScrollableAncestor) {\n return;\n }\n\n if (bottom <= 0 || right <= 0 || top >= window.innerHeight || left >= window.innerWidth) {\n element.scrollIntoView({\n block: 'center',\n inline: 'center'\n });\n }\n}\n\nconst properties = [['x', ['left', 'right'], getScrollXOffset], ['y', ['top', 'bottom'], getScrollYOffset]];\nclass Rect {\n constructor(rect, element) {\n this.rect = void 0;\n this.width = void 0;\n this.height = void 0;\n this.top = void 0;\n this.bottom = void 0;\n this.right = void 0;\n this.left = void 0;\n const scrollableAncestors = getScrollableAncestors(element);\n const scrollOffsets = getScrollOffsets(scrollableAncestors);\n this.rect = { ...rect\n };\n this.width = rect.width;\n this.height = rect.height;\n\n for (const [axis, keys, getScrollOffset] of properties) {\n for (const key of keys) {\n Object.defineProperty(this, key, {\n get: () => {\n const currentOffsets = getScrollOffset(scrollableAncestors);\n const scrollOffsetsDeltla = scrollOffsets[axis] - currentOffsets;\n return this.rect[key] + scrollOffsetsDeltla;\n },\n enumerable: true\n });\n }\n }\n\n Object.defineProperty(this, 'rect', {\n enumerable: false\n });\n }\n\n}\n\nclass Listeners {\n constructor(target) {\n this.target = void 0;\n this.listeners = [];\n\n this.removeAll = () => {\n this.listeners.forEach(listener => {\n var _this$target;\n\n return (_this$target = this.target) == null ? void 0 : _this$target.removeEventListener(...listener);\n });\n };\n\n this.target = target;\n }\n\n add(eventName, handler, options) {\n var _this$target2;\n\n (_this$target2 = this.target) == null ? void 0 : _this$target2.addEventListener(eventName, handler, options);\n this.listeners.push([eventName, handler, options]);\n }\n\n}\n\nfunction getEventListenerTarget(target) {\n // If the `event.target` element is removed from the document events will still be targeted\n // at it, and hence won't always bubble up to the window or document anymore.\n // If there is any risk of an element being removed while it is being dragged,\n // the best practice is to attach the event listeners directly to the target.\n // https://developer.mozilla.org/en-US/docs/Web/API/EventTarget\n const {\n EventTarget\n } = getWindow(target);\n return target instanceof EventTarget ? target : getOwnerDocument(target);\n}\n\nfunction hasExceededDistance(delta, measurement) {\n const dx = Math.abs(delta.x);\n const dy = Math.abs(delta.y);\n\n if (typeof measurement === 'number') {\n return Math.sqrt(dx ** 2 + dy ** 2) > measurement;\n }\n\n if ('x' in measurement && 'y' in measurement) {\n return dx > measurement.x && dy > measurement.y;\n }\n\n if ('x' in measurement) {\n return dx > measurement.x;\n }\n\n if ('y' in measurement) {\n return dy > measurement.y;\n }\n\n return false;\n}\n\nvar EventName;\n\n(function (EventName) {\n EventName[\"Click\"] = \"click\";\n EventName[\"DragStart\"] = \"dragstart\";\n EventName[\"Keydown\"] = \"keydown\";\n EventName[\"ContextMenu\"] = \"contextmenu\";\n EventName[\"Resize\"] = \"resize\";\n EventName[\"SelectionChange\"] = \"selectionchange\";\n EventName[\"VisibilityChange\"] = \"visibilitychange\";\n})(EventName || (EventName = {}));\n\nfunction preventDefault(event) {\n event.preventDefault();\n}\nfunction stopPropagation(event) {\n event.stopPropagation();\n}\n\nvar KeyboardCode;\n\n(function (KeyboardCode) {\n KeyboardCode[\"Space\"] = \"Space\";\n KeyboardCode[\"Down\"] = \"ArrowDown\";\n KeyboardCode[\"Right\"] = \"ArrowRight\";\n KeyboardCode[\"Left\"] = \"ArrowLeft\";\n KeyboardCode[\"Up\"] = \"ArrowUp\";\n KeyboardCode[\"Esc\"] = \"Escape\";\n KeyboardCode[\"Enter\"] = \"Enter\";\n KeyboardCode[\"Tab\"] = \"Tab\";\n})(KeyboardCode || (KeyboardCode = {}));\n\nconst defaultKeyboardCodes = {\n start: [KeyboardCode.Space, KeyboardCode.Enter],\n cancel: [KeyboardCode.Esc],\n end: [KeyboardCode.Space, KeyboardCode.Enter, KeyboardCode.Tab]\n};\nconst defaultKeyboardCoordinateGetter = (event, _ref) => {\n let {\n currentCoordinates\n } = _ref;\n\n switch (event.code) {\n case KeyboardCode.Right:\n return { ...currentCoordinates,\n x: currentCoordinates.x + 25\n };\n\n case KeyboardCode.Left:\n return { ...currentCoordinates,\n x: currentCoordinates.x - 25\n };\n\n case KeyboardCode.Down:\n return { ...currentCoordinates,\n y: currentCoordinates.y + 25\n };\n\n case KeyboardCode.Up:\n return { ...currentCoordinates,\n y: currentCoordinates.y - 25\n };\n }\n\n return undefined;\n};\n\nclass KeyboardSensor {\n constructor(props) {\n this.props = void 0;\n this.autoScrollEnabled = false;\n this.referenceCoordinates = void 0;\n this.listeners = void 0;\n this.windowListeners = void 0;\n this.props = props;\n const {\n event: {\n target\n }\n } = props;\n this.props = props;\n this.listeners = new Listeners(getOwnerDocument(target));\n this.windowListeners = new Listeners(getWindow(target));\n this.handleKeyDown = this.handleKeyDown.bind(this);\n this.handleCancel = this.handleCancel.bind(this);\n this.attach();\n }\n\n attach() {\n this.handleStart();\n this.windowListeners.add(EventName.Resize, this.handleCancel);\n this.windowListeners.add(EventName.VisibilityChange, this.handleCancel);\n setTimeout(() => this.listeners.add(EventName.Keydown, this.handleKeyDown));\n }\n\n handleStart() {\n const {\n activeNode,\n onStart\n } = this.props;\n const node = activeNode.node.current;\n\n if (node) {\n scrollIntoViewIfNeeded(node);\n }\n\n onStart(defaultCoordinates);\n }\n\n handleKeyDown(event) {\n if (isKeyboardEvent(event)) {\n const {\n active,\n context,\n options\n } = this.props;\n const {\n keyboardCodes = defaultKeyboardCodes,\n coordinateGetter = defaultKeyboardCoordinateGetter,\n scrollBehavior = 'smooth'\n } = options;\n const {\n code\n } = event;\n\n if (keyboardCodes.end.includes(code)) {\n this.handleEnd(event);\n return;\n }\n\n if (keyboardCodes.cancel.includes(code)) {\n this.handleCancel(event);\n return;\n }\n\n const {\n collisionRect\n } = context.current;\n const currentCoordinates = collisionRect ? {\n x: collisionRect.left,\n y: collisionRect.top\n } : defaultCoordinates;\n\n if (!this.referenceCoordinates) {\n this.referenceCoordinates = currentCoordinates;\n }\n\n const newCoordinates = coordinateGetter(event, {\n active,\n context: context.current,\n currentCoordinates\n });\n\n if (newCoordinates) {\n const coordinatesDelta = subtract(newCoordinates, currentCoordinates);\n const scrollDelta = {\n x: 0,\n y: 0\n };\n const {\n scrollableAncestors\n } = context.current;\n\n for (const scrollContainer of scrollableAncestors) {\n const direction = event.code;\n const {\n isTop,\n isRight,\n isLeft,\n isBottom,\n maxScroll,\n minScroll\n } = getScrollPosition(scrollContainer);\n const scrollElementRect = getScrollElementRect(scrollContainer);\n const clampedCoordinates = {\n x: Math.min(direction === KeyboardCode.Right ? scrollElementRect.right - scrollElementRect.width / 2 : scrollElementRect.right, Math.max(direction === KeyboardCode.Right ? scrollElementRect.left : scrollElementRect.left + scrollElementRect.width / 2, newCoordinates.x)),\n y: Math.min(direction === KeyboardCode.Down ? scrollElementRect.bottom - scrollElementRect.height / 2 : scrollElementRect.bottom, Math.max(direction === KeyboardCode.Down ? scrollElementRect.top : scrollElementRect.top + scrollElementRect.height / 2, newCoordinates.y))\n };\n const canScrollX = direction === KeyboardCode.Right && !isRight || direction === KeyboardCode.Left && !isLeft;\n const canScrollY = direction === KeyboardCode.Down && !isBottom || direction === KeyboardCode.Up && !isTop;\n\n if (canScrollX && clampedCoordinates.x !== newCoordinates.x) {\n const newScrollCoordinates = scrollContainer.scrollLeft + coordinatesDelta.x;\n const canScrollToNewCoordinates = direction === KeyboardCode.Right && newScrollCoordinates <= maxScroll.x || direction === KeyboardCode.Left && newScrollCoordinates >= minScroll.x;\n\n if (canScrollToNewCoordinates && !coordinatesDelta.y) {\n // We don't need to update coordinates, the scroll adjustment alone will trigger\n // logic to auto-detect the new container we are over\n scrollContainer.scrollTo({\n left: newScrollCoordinates,\n behavior: scrollBehavior\n });\n return;\n }\n\n if (canScrollToNewCoordinates) {\n scrollDelta.x = scrollContainer.scrollLeft - newScrollCoordinates;\n } else {\n scrollDelta.x = direction === KeyboardCode.Right ? scrollContainer.scrollLeft - maxScroll.x : scrollContainer.scrollLeft - minScroll.x;\n }\n\n if (scrollDelta.x) {\n scrollContainer.scrollBy({\n left: -scrollDelta.x,\n behavior: scrollBehavior\n });\n }\n\n break;\n } else if (canScrollY && clampedCoordinates.y !== newCoordinates.y) {\n const newScrollCoordinates = scrollContainer.scrollTop + coordinatesDelta.y;\n const canScrollToNewCoordinates = direction === KeyboardCode.Down && newScrollCoordinates <= maxScroll.y || direction === KeyboardCode.Up && newScrollCoordinates >= minScroll.y;\n\n if (canScrollToNewCoordinates && !coordinatesDelta.x) {\n // We don't need to update coordinates, the scroll adjustment alone will trigger\n // logic to auto-detect the new container we are over\n scrollContainer.scrollTo({\n top: newScrollCoordinates,\n behavior: scrollBehavior\n });\n return;\n }\n\n if (canScrollToNewCoordinates) {\n scrollDelta.y = scrollContainer.scrollTop - newScrollCoordinates;\n } else {\n scrollDelta.y = direction === KeyboardCode.Down ? scrollContainer.scrollTop - maxScroll.y : scrollContainer.scrollTop - minScroll.y;\n }\n\n if (scrollDelta.y) {\n scrollContainer.scrollBy({\n top: -scrollDelta.y,\n behavior: scrollBehavior\n });\n }\n\n break;\n }\n }\n\n this.handleMove(event, add(subtract(newCoordinates, this.referenceCoordinates), scrollDelta));\n }\n }\n }\n\n handleMove(event, coordinates) {\n const {\n onMove\n } = this.props;\n event.preventDefault();\n onMove(coordinates);\n }\n\n handleEnd(event) {\n const {\n onEnd\n } = this.props;\n event.preventDefault();\n this.detach();\n onEnd();\n }\n\n handleCancel(event) {\n const {\n onCancel\n } = this.props;\n event.preventDefault();\n this.detach();\n onCancel();\n }\n\n detach() {\n this.listeners.removeAll();\n this.windowListeners.removeAll();\n }\n\n}\nKeyboardSensor.activators = [{\n eventName: 'onKeyDown',\n handler: (event, _ref, _ref2) => {\n let {\n keyboardCodes = defaultKeyboardCodes,\n onActivation\n } = _ref;\n let {\n active\n } = _ref2;\n const {\n code\n } = event.nativeEvent;\n\n if (keyboardCodes.start.includes(code)) {\n const activator = active.activatorNode.current;\n\n if (activator && event.target !== activator) {\n return false;\n }\n\n event.preventDefault();\n onActivation == null ? void 0 : onActivation({\n event: event.nativeEvent\n });\n return true;\n }\n\n return false;\n }\n}];\n\nfunction isDistanceConstraint(constraint) {\n return Boolean(constraint && 'distance' in constraint);\n}\n\nfunction isDelayConstraint(constraint) {\n return Boolean(constraint && 'delay' in constraint);\n}\n\nclass AbstractPointerSensor {\n constructor(props, events, listenerTarget) {\n var _getEventCoordinates;\n\n if (listenerTarget === void 0) {\n listenerTarget = getEventListenerTarget(props.event.target);\n }\n\n this.props = void 0;\n this.events = void 0;\n this.autoScrollEnabled = true;\n this.document = void 0;\n this.activated = false;\n this.initialCoordinates = void 0;\n this.timeoutId = null;\n this.listeners = void 0;\n this.documentListeners = void 0;\n this.windowListeners = void 0;\n this.props = props;\n this.events = events;\n const {\n event\n } = props;\n const {\n target\n } = event;\n this.props = props;\n this.events = events;\n this.document = getOwnerDocument(target);\n this.documentListeners = new Listeners(this.document);\n this.listeners = new Listeners(listenerTarget);\n this.windowListeners = new Listeners(getWindow(target));\n this.initialCoordinates = (_getEventCoordinates = getEventCoordinates(event)) != null ? _getEventCoordinates : defaultCoordinates;\n this.handleStart = this.handleStart.bind(this);\n this.handleMove = this.handleMove.bind(this);\n this.handleEnd = this.handleEnd.bind(this);\n this.handleCancel = this.handleCancel.bind(this);\n this.handleKeydown = this.handleKeydown.bind(this);\n this.removeTextSelection = this.removeTextSelection.bind(this);\n this.attach();\n }\n\n attach() {\n const {\n events,\n props: {\n options: {\n activationConstraint,\n bypassActivationConstraint\n }\n }\n } = this;\n this.listeners.add(events.move.name, this.handleMove, {\n passive: false\n });\n this.listeners.add(events.end.name, this.handleEnd);\n\n if (events.cancel) {\n this.listeners.add(events.cancel.name, this.handleCancel);\n }\n\n this.windowListeners.add(EventName.Resize, this.handleCancel);\n this.windowListeners.add(EventName.DragStart, preventDefault);\n this.windowListeners.add(EventName.VisibilityChange, this.handleCancel);\n this.windowListeners.add(EventName.ContextMenu, preventDefault);\n this.documentListeners.add(EventName.Keydown, this.handleKeydown);\n\n if (activationConstraint) {\n if (bypassActivationConstraint != null && bypassActivationConstraint({\n event: this.props.event,\n activeNode: this.props.activeNode,\n options: this.props.options\n })) {\n return this.handleStart();\n }\n\n if (isDelayConstraint(activationConstraint)) {\n this.timeoutId = setTimeout(this.handleStart, activationConstraint.delay);\n this.handlePending(activationConstraint);\n return;\n }\n\n if (isDistanceConstraint(activationConstraint)) {\n this.handlePending(activationConstraint);\n return;\n }\n }\n\n this.handleStart();\n }\n\n detach() {\n this.listeners.removeAll();\n this.windowListeners.removeAll(); // Wait until the next event loop before removing document listeners\n // This is necessary because we listen for `click` and `selection` events on the document\n\n setTimeout(this.documentListeners.removeAll, 50);\n\n if (this.timeoutId !== null) {\n clearTimeout(this.timeoutId);\n this.timeoutId = null;\n }\n }\n\n handlePending(constraint, offset) {\n const {\n active,\n onPending\n } = this.props;\n onPending(active, constraint, this.initialCoordinates, offset);\n }\n\n handleStart() {\n const {\n initialCoordinates\n } = this;\n const {\n onStart\n } = this.props;\n\n if (initialCoordinates) {\n this.activated = true; // Stop propagation of click events once activation constraints are met\n\n this.documentListeners.add(EventName.Click, stopPropagation, {\n capture: true\n }); // Remove any text selection from the document\n\n this.removeTextSelection(); // Prevent further text selection while dragging\n\n this.documentListeners.add(EventName.SelectionChange, this.removeTextSelection);\n onStart(initialCoordinates);\n }\n }\n\n handleMove(event) {\n var _getEventCoordinates2;\n\n const {\n activated,\n initialCoordinates,\n props\n } = this;\n const {\n onMove,\n options: {\n activationConstraint\n }\n } = props;\n\n if (!initialCoordinates) {\n return;\n }\n\n const coordinates = (_getEventCoordinates2 = getEventCoordinates(event)) != null ? _getEventCoordinates2 : defaultCoordinates;\n const delta = subtract(initialCoordinates, coordinates); // Constraint validation\n\n if (!activated && activationConstraint) {\n if (isDistanceConstraint(activationConstraint)) {\n if (activationConstraint.tolerance != null && hasExceededDistance(delta, activationConstraint.tolerance)) {\n return this.handleCancel();\n }\n\n if (hasExceededDistance(delta, activationConstraint.distance)) {\n return this.handleStart();\n }\n }\n\n if (isDelayConstraint(activationConstraint)) {\n if (hasExceededDistance(delta, activationConstraint.tolerance)) {\n return this.handleCancel();\n }\n }\n\n this.handlePending(activationConstraint, delta);\n return;\n }\n\n if (event.cancelable) {\n event.preventDefault();\n }\n\n onMove(coordinates);\n }\n\n handleEnd() {\n const {\n onAbort,\n onEnd\n } = this.props;\n this.detach();\n\n if (!this.activated) {\n onAbort(this.props.active);\n }\n\n onEnd();\n }\n\n handleCancel() {\n const {\n onAbort,\n onCancel\n } = this.props;\n this.detach();\n\n if (!this.activated) {\n onAbort(this.props.active);\n }\n\n onCancel();\n }\n\n handleKeydown(event) {\n if (event.code === KeyboardCode.Esc) {\n this.handleCancel();\n }\n }\n\n removeTextSelection() {\n var _this$document$getSel;\n\n (_this$document$getSel = this.document.getSelection()) == null ? void 0 : _this$document$getSel.removeAllRanges();\n }\n\n}\n\nconst events = {\n cancel: {\n name: 'pointercancel'\n },\n move: {\n name: 'pointermove'\n },\n end: {\n name: 'pointerup'\n }\n};\nclass PointerSensor extends AbstractPointerSensor {\n constructor(props) {\n const {\n event\n } = props; // Pointer events stop firing if the target is unmounted while dragging\n // Therefore we attach listeners to the owner document instead\n\n const listenerTarget = getOwnerDocument(event.target);\n super(props, events, listenerTarget);\n }\n\n}\nPointerSensor.activators = [{\n eventName: 'onPointerDown',\n handler: (_ref, _ref2) => {\n let {\n nativeEvent: event\n } = _ref;\n let {\n onActivation\n } = _ref2;\n\n if (!event.isPrimary || event.button !== 0) {\n return false;\n }\n\n onActivation == null ? void 0 : onActivation({\n event\n });\n return true;\n }\n}];\n\nconst events$1 = {\n move: {\n name: 'mousemove'\n },\n end: {\n name: 'mouseup'\n }\n};\nvar MouseButton;\n\n(function (MouseButton) {\n MouseButton[MouseButton[\"RightClick\"] = 2] = \"RightClick\";\n})(MouseButton || (MouseButton = {}));\n\nclass MouseSensor extends AbstractPointerSensor {\n constructor(props) {\n super(props, events$1, getOwnerDocument(props.event.target));\n }\n\n}\nMouseSensor.activators = [{\n eventName: 'onMouseDown',\n handler: (_ref, _ref2) => {\n let {\n nativeEvent: event\n } = _ref;\n let {\n onActivation\n } = _ref2;\n\n if (event.button === MouseButton.RightClick) {\n return false;\n }\n\n onActivation == null ? void 0 : onActivation({\n event\n });\n return true;\n }\n}];\n\nconst events$2 = {\n cancel: {\n name: 'touchcancel'\n },\n move: {\n name: 'touchmove'\n },\n end: {\n name: 'touchend'\n }\n};\nclass TouchSensor extends AbstractPointerSensor {\n constructor(props) {\n super(props, events$2);\n }\n\n static setup() {\n // Adding a non-capture and non-passive `touchmove` listener in order\n // to force `event.preventDefault()` calls to work in dynamically added\n // touchmove event handlers. This is required for iOS Safari.\n window.addEventListener(events$2.move.name, noop, {\n capture: false,\n passive: false\n });\n return function teardown() {\n window.removeEventListener(events$2.move.name, noop);\n }; // We create a new handler because the teardown function of another sensor\n // could remove our event listener if we use a referentially equal listener.\n\n function noop() {}\n }\n\n}\nTouchSensor.activators = [{\n eventName: 'onTouchStart',\n handler: (_ref, _ref2) => {\n let {\n nativeEvent: event\n } = _ref;\n let {\n onActivation\n } = _ref2;\n const {\n touches\n } = event;\n\n if (touches.length > 1) {\n return false;\n }\n\n onActivation == null ? void 0 : onActivation({\n event\n });\n return true;\n }\n}];\n\nvar AutoScrollActivator;\n\n(function (AutoScrollActivator) {\n AutoScrollActivator[AutoScrollActivator[\"Pointer\"] = 0] = \"Pointer\";\n AutoScrollActivator[AutoScrollActivator[\"DraggableRect\"] = 1] = \"DraggableRect\";\n})(AutoScrollActivator || (AutoScrollActivator = {}));\n\nvar TraversalOrder;\n\n(function (TraversalOrder) {\n TraversalOrder[TraversalOrder[\"TreeOrder\"] = 0] = \"TreeOrder\";\n TraversalOrder[TraversalOrder[\"ReversedTreeOrder\"] = 1] = \"ReversedTreeOrder\";\n})(TraversalOrder || (TraversalOrder = {}));\n\nfunction useAutoScroller(_ref) {\n let {\n acceleration,\n activator = AutoScrollActivator.Pointer,\n canScroll,\n draggingRect,\n enabled,\n interval = 5,\n order = TraversalOrder.TreeOrder,\n pointerCoordinates,\n scrollableAncestors,\n scrollableAncestorRects,\n delta,\n threshold\n } = _ref;\n const scrollIntent = useScrollIntent({\n delta,\n disabled: !enabled\n });\n const [setAutoScrollInterval, clearAutoScrollInterval] = useInterval();\n const scrollSpeed = useRef({\n x: 0,\n y: 0\n });\n const scrollDirection = useRef({\n x: 0,\n y: 0\n });\n const rect = useMemo(() => {\n switch (activator) {\n case AutoScrollActivator.Pointer:\n return pointerCoordinates ? {\n top: pointerCoordinates.y,\n bottom: pointerCoordinates.y,\n left: pointerCoordinates.x,\n right: pointerCoordinates.x\n } : null;\n\n case AutoScrollActivator.DraggableRect:\n return draggingRect;\n }\n }, [activator, draggingRect, pointerCoordinates]);\n const scrollContainerRef = useRef(null);\n const autoScroll = useCallback(() => {\n const scrollContainer = scrollContainerRef.current;\n\n if (!scrollContainer) {\n return;\n }\n\n const scrollLeft = scrollSpeed.current.x * scrollDirection.current.x;\n const scrollTop = scrollSpeed.current.y * scrollDirection.current.y;\n scrollContainer.scrollBy(scrollLeft, scrollTop);\n }, []);\n const sortedScrollableAncestors = useMemo(() => order === TraversalOrder.TreeOrder ? [...scrollableAncestors].reverse() : scrollableAncestors, [order, scrollableAncestors]);\n useEffect(() => {\n if (!enabled || !scrollableAncestors.length || !rect) {\n clearAutoScrollInterval();\n return;\n }\n\n for (const scrollContainer of sortedScrollableAncestors) {\n if ((canScroll == null ? void 0 : canScroll(scrollContainer)) === false) {\n continue;\n }\n\n const index = scrollableAncestors.indexOf(scrollContainer);\n const scrollContainerRect = scrollableAncestorRects[index];\n\n if (!scrollContainerRect) {\n continue;\n }\n\n const {\n direction,\n speed\n } = getScrollDirectionAndSpeed(scrollContainer, scrollContainerRect, rect, acceleration, threshold);\n\n for (const axis of ['x', 'y']) {\n if (!scrollIntent[axis][direction[axis]]) {\n speed[axis] = 0;\n direction[axis] = 0;\n }\n }\n\n if (speed.x > 0 || speed.y > 0) {\n clearAutoScrollInterval();\n scrollContainerRef.current = scrollContainer;\n setAutoScrollInterval(autoScroll, interval);\n scrollSpeed.current = speed;\n scrollDirection.current = direction;\n return;\n }\n }\n\n scrollSpeed.current = {\n x: 0,\n y: 0\n };\n scrollDirection.current = {\n x: 0,\n y: 0\n };\n clearAutoScrollInterval();\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [acceleration, autoScroll, canScroll, clearAutoScrollInterval, enabled, interval, // eslint-disable-next-line react-hooks/exhaustive-deps\n JSON.stringify(rect), // eslint-disable-next-line react-hooks/exhaustive-deps\n JSON.stringify(scrollIntent), setAutoScrollInterval, scrollableAncestors, sortedScrollableAncestors, scrollableAncestorRects, // eslint-disable-next-line react-hooks/exhaustive-deps\n JSON.stringify(threshold)]);\n}\nconst defaultScrollIntent = {\n x: {\n [Direction.Backward]: false,\n [Direction.Forward]: false\n },\n y: {\n [Direction.Backward]: false,\n [Direction.Forward]: false\n }\n};\n\nfunction useScrollIntent(_ref2) {\n let {\n delta,\n disabled\n } = _ref2;\n const previousDelta = usePrevious(delta);\n return useLazyMemo(previousIntent => {\n if (disabled || !previousDelta || !previousIntent) {\n // Reset scroll intent tracking when auto-scrolling is disabled\n return defaultScrollIntent;\n }\n\n const direction = {\n x: Math.sign(delta.x - previousDelta.x),\n y: Math.sign(delta.y - previousDelta.y)\n }; // Keep track of the user intent to scroll in each direction for both axis\n\n return {\n x: {\n [Direction.Backward]: previousIntent.x[Direction.Backward] || direction.x === -1,\n [Direction.Forward]: previousIntent.x[Direction.Forward] || direction.x === 1\n },\n y: {\n [Direction.Backward]: previousIntent.y[Direction.Backward] || direction.y === -1,\n [Direction.Forward]: previousIntent.y[Direction.Forward] || direction.y === 1\n }\n };\n }, [disabled, delta, previousDelta]);\n}\n\nfunction useCachedNode(draggableNodes, id) {\n const draggableNode = id != null ? draggableNodes.get(id) : undefined;\n const node = draggableNode ? draggableNode.node.current : null;\n return useLazyMemo(cachedNode => {\n var _ref;\n\n if (id == null) {\n return null;\n } // In some cases, the draggable node can unmount while dragging\n // This is the case for virtualized lists. In those situations,\n // we fall back to the last known value for that node.\n\n\n return (_ref = node != null ? node : cachedNode) != null ? _ref : null;\n }, [node, id]);\n}\n\nfunction useCombineActivators(sensors, getSyntheticHandler) {\n return useMemo(() => sensors.reduce((accumulator, sensor) => {\n const {\n sensor: Sensor\n } = sensor;\n const sensorActivators = Sensor.activators.map(activator => ({\n eventName: activator.eventName,\n handler: getSyntheticHandler(activator.handler, sensor)\n }));\n return [...accumulator, ...sensorActivators];\n }, []), [sensors, getSyntheticHandler]);\n}\n\nvar MeasuringStrategy;\n\n(function (MeasuringStrategy) {\n MeasuringStrategy[MeasuringStrategy[\"Always\"] = 0] = \"Always\";\n MeasuringStrategy[MeasuringStrategy[\"BeforeDragging\"] = 1] = \"BeforeDragging\";\n MeasuringStrategy[MeasuringStrategy[\"WhileDragging\"] = 2] = \"WhileDragging\";\n})(MeasuringStrategy || (MeasuringStrategy = {}));\n\nvar MeasuringFrequency;\n\n(function (MeasuringFrequency) {\n MeasuringFrequency[\"Optimized\"] = \"optimized\";\n})(MeasuringFrequency || (MeasuringFrequency = {}));\n\nconst defaultValue = /*#__PURE__*/new Map();\nfunction useDroppableMeasuring(containers, _ref) {\n let {\n dragging,\n dependencies,\n config\n } = _ref;\n const [queue, setQueue] = useState(null);\n const {\n frequency,\n measure,\n strategy\n } = config;\n const containersRef = useRef(containers);\n const disabled = isDisabled();\n const disabledRef = useLatestValue(disabled);\n const measureDroppableContainers = useCallback(function (ids) {\n if (ids === void 0) {\n ids = [];\n }\n\n if (disabledRef.current) {\n return;\n }\n\n setQueue(value => {\n if (value === null) {\n return ids;\n }\n\n return value.concat(ids.filter(id => !value.includes(id)));\n });\n }, [disabledRef]);\n const timeoutId = useRef(null);\n const droppableRects = useLazyMemo(previousValue => {\n if (disabled && !dragging) {\n return defaultValue;\n }\n\n if (!previousValue || previousValue === defaultValue || containersRef.current !== containers || queue != null) {\n const map = new Map();\n\n for (let container of containers) {\n if (!container) {\n continue;\n }\n\n if (queue && queue.length > 0 && !queue.includes(container.id) && container.rect.current) {\n // This container does not need to be re-measured\n map.set(container.id, container.rect.current);\n continue;\n }\n\n const node = container.node.current;\n const rect = node ? new Rect(measure(node), node) : null;\n container.rect.current = rect;\n\n if (rect) {\n map.set(container.id, rect);\n }\n }\n\n return map;\n }\n\n return previousValue;\n }, [containers, queue, dragging, disabled, measure]);\n useEffect(() => {\n containersRef.current = containers;\n }, [containers]);\n useEffect(() => {\n if (disabled) {\n return;\n }\n\n measureDroppableContainers();\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [dragging, disabled]);\n useEffect(() => {\n if (queue && queue.length > 0) {\n setQueue(null);\n }\n }, //eslint-disable-next-line react-hooks/exhaustive-deps\n [JSON.stringify(queue)]);\n useEffect(() => {\n if (disabled || typeof frequency !== 'number' || timeoutId.current !== null) {\n return;\n }\n\n timeoutId.current = setTimeout(() => {\n measureDroppableContainers();\n timeoutId.current = null;\n }, frequency);\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [frequency, disabled, measureDroppableContainers, ...dependencies]);\n return {\n droppableRects,\n measureDroppableContainers,\n measuringScheduled: queue != null\n };\n\n function isDisabled() {\n switch (strategy) {\n case MeasuringStrategy.Always:\n return false;\n\n case MeasuringStrategy.BeforeDragging:\n return dragging;\n\n default:\n return !dragging;\n }\n }\n}\n\nfunction useInitialValue(value, computeFn) {\n return useLazyMemo(previousValue => {\n if (!value) {\n return null;\n }\n\n if (previousValue) {\n return previousValue;\n }\n\n return typeof computeFn === 'function' ? computeFn(value) : value;\n }, [computeFn, value]);\n}\n\nfunction useInitialRect(node, measure) {\n return useInitialValue(node, measure);\n}\n\n/**\r\n * Returns a new MutationObserver instance.\r\n * If `MutationObserver` is undefined in the execution environment, returns `undefined`.\r\n */\n\nfunction useMutationObserver(_ref) {\n let {\n callback,\n disabled\n } = _ref;\n const handleMutations = useEvent(callback);\n const mutationObserver = useMemo(() => {\n if (disabled || typeof window === 'undefined' || typeof window.MutationObserver === 'undefined') {\n return undefined;\n }\n\n const {\n MutationObserver\n } = window;\n return new MutationObserver(handleMutations);\n }, [handleMutations, disabled]);\n useEffect(() => {\n return () => mutationObserver == null ? void 0 : mutationObserver.disconnect();\n }, [mutationObserver]);\n return mutationObserver;\n}\n\n/**\r\n * Returns a new ResizeObserver instance bound to the `onResize` callback.\r\n * If `ResizeObserver` is undefined in the execution environment, returns `undefined`.\r\n */\n\nfunction useResizeObserver(_ref) {\n let {\n callback,\n disabled\n } = _ref;\n const handleResize = useEvent(callback);\n const resizeObserver = useMemo(() => {\n if (disabled || typeof window === 'undefined' || typeof window.ResizeObserver === 'undefined') {\n return undefined;\n }\n\n const {\n ResizeObserver\n } = window;\n return new ResizeObserver(handleResize);\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [disabled]);\n useEffect(() => {\n return () => resizeObserver == null ? void 0 : resizeObserver.disconnect();\n }, [resizeObserver]);\n return resizeObserver;\n}\n\nfunction defaultMeasure(element) {\n return new Rect(getClientRect(element), element);\n}\n\nfunction useRect(element, measure, fallbackRect) {\n if (measure === void 0) {\n measure = defaultMeasure;\n }\n\n const [rect, setRect] = useState(null);\n\n function measureRect() {\n setRect(currentRect => {\n if (!element) {\n return null;\n }\n\n if (element.isConnected === false) {\n var _ref;\n\n // Fall back to last rect we measured if the element is\n // no longer connected to the DOM.\n return (_ref = currentRect != null ? currentRect : fallbackRect) != null ? _ref : null;\n }\n\n const newRect = measure(element);\n\n if (JSON.stringify(currentRect) === JSON.stringify(newRect)) {\n return currentRect;\n }\n\n return newRect;\n });\n }\n\n const mutationObserver = useMutationObserver({\n callback(records) {\n if (!element) {\n return;\n }\n\n for (const record of records) {\n const {\n type,\n target\n } = record;\n\n if (type === 'childList' && target instanceof HTMLElement && target.contains(element)) {\n measureRect();\n break;\n }\n }\n }\n\n });\n const resizeObserver = useResizeObserver({\n callback: measureRect\n });\n useIsomorphicLayoutEffect(() => {\n measureRect();\n\n if (element) {\n resizeObserver == null ? void 0 : resizeObserver.observe(element);\n mutationObserver == null ? void 0 : mutationObserver.observe(document.body, {\n childList: true,\n subtree: true\n });\n } else {\n resizeObserver == null ? void 0 : resizeObserver.disconnect();\n mutationObserver == null ? void 0 : mutationObserver.disconnect();\n }\n }, [element]);\n return rect;\n}\n\nfunction useRectDelta(rect) {\n const initialRect = useInitialValue(rect);\n return getRectDelta(rect, initialRect);\n}\n\nconst defaultValue$1 = [];\nfunction useScrollableAncestors(node) {\n const previousNode = useRef(node);\n const ancestors = useLazyMemo(previousValue => {\n if (!node) {\n return defaultValue$1;\n }\n\n if (previousValue && previousValue !== defaultValue$1 && node && previousNode.current && node.parentNode === previousNode.current.parentNode) {\n return previousValue;\n }\n\n return getScrollableAncestors(node);\n }, [node]);\n useEffect(() => {\n previousNode.current = node;\n }, [node]);\n return ancestors;\n}\n\nfunction useScrollOffsets(elements) {\n const [scrollCoordinates, setScrollCoordinates] = useState(null);\n const prevElements = useRef(elements); // To-do: Throttle the handleScroll callback\n\n const handleScroll = useCallback(event => {\n const scrollingElement = getScrollableElement(event.target);\n\n if (!scrollingElement) {\n return;\n }\n\n setScrollCoordinates(scrollCoordinates => {\n if (!scrollCoordinates) {\n return null;\n }\n\n scrollCoordinates.set(scrollingElement, getScrollCoordinates(scrollingElement));\n return new Map(scrollCoordinates);\n });\n }, []);\n useEffect(() => {\n const previousElements = prevElements.current;\n\n if (elements !== previousElements) {\n cleanup(previousElements);\n const entries = elements.map(element => {\n const scrollableElement = getScrollableElement(element);\n\n if (scrollableElement) {\n scrollableElement.addEventListener('scroll', handleScroll, {\n passive: true\n });\n return [scrollableElement, getScrollCoordinates(scrollableElement)];\n }\n\n return null;\n }).filter(entry => entry != null);\n setScrollCoordinates(entries.length ? new Map(entries) : null);\n prevElements.current = elements;\n }\n\n return () => {\n cleanup(elements);\n cleanup(previousElements);\n };\n\n function cleanup(elements) {\n elements.forEach(element => {\n const scrollableElement = getScrollableElement(element);\n scrollableElement == null ? void 0 : scrollableElement.removeEventListener('scroll', handleScroll);\n });\n }\n }, [handleScroll, elements]);\n return useMemo(() => {\n if (elements.length) {\n return scrollCoordinates ? Array.from(scrollCoordinates.values()).reduce((acc, coordinates) => add(acc, coordinates), defaultCoordinates) : getScrollOffsets(elements);\n }\n\n return defaultCoordinates;\n }, [elements, scrollCoordinates]);\n}\n\nfunction useScrollOffsetsDelta(scrollOffsets, dependencies) {\n if (dependencies === void 0) {\n dependencies = [];\n }\n\n const initialScrollOffsets = useRef(null);\n useEffect(() => {\n initialScrollOffsets.current = null;\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n dependencies);\n useEffect(() => {\n const hasScrollOffsets = scrollOffsets !== defaultCoordinates;\n\n if (hasScrollOffsets && !initialScrollOffsets.current) {\n initialScrollOffsets.current = scrollOffsets;\n }\n\n if (!hasScrollOffsets && initialScrollOffsets.current) {\n initialScrollOffsets.current = null;\n }\n }, [scrollOffsets]);\n return initialScrollOffsets.current ? subtract(scrollOffsets, initialScrollOffsets.current) : defaultCoordinates;\n}\n\nfunction useSensorSetup(sensors) {\n useEffect(() => {\n if (!canUseDOM) {\n return;\n }\n\n const teardownFns = sensors.map(_ref => {\n let {\n sensor\n } = _ref;\n return sensor.setup == null ? void 0 : sensor.setup();\n });\n return () => {\n for (const teardown of teardownFns) {\n teardown == null ? void 0 : teardown();\n }\n };\n }, // TO-DO: Sensors length could theoretically change which would not be a valid dependency\n // eslint-disable-next-line react-hooks/exhaustive-deps\n sensors.map(_ref2 => {\n let {\n sensor\n } = _ref2;\n return sensor;\n }));\n}\n\nfunction useSyntheticListeners(listeners, id) {\n return useMemo(() => {\n return listeners.reduce((acc, _ref) => {\n let {\n eventName,\n handler\n } = _ref;\n\n acc[eventName] = event => {\n handler(event, id);\n };\n\n return acc;\n }, {});\n }, [listeners, id]);\n}\n\nfunction useWindowRect(element) {\n return useMemo(() => element ? getWindowClientRect(element) : null, [element]);\n}\n\nconst defaultValue$2 = [];\nfunction useRects(elements, measure) {\n if (measure === void 0) {\n measure = getClientRect;\n }\n\n const [firstElement] = elements;\n const windowRect = useWindowRect(firstElement ? getWindow(firstElement) : null);\n const [rects, setRects] = useState(defaultValue$2);\n\n function measureRects() {\n setRects(() => {\n if (!elements.length) {\n return defaultValue$2;\n }\n\n return elements.map(element => isDocumentScrollingElement(element) ? windowRect : new Rect(measure(element), element));\n });\n }\n\n const resizeObserver = useResizeObserver({\n callback: measureRects\n });\n useIsomorphicLayoutEffect(() => {\n resizeObserver == null ? void 0 : resizeObserver.disconnect();\n measureRects();\n elements.forEach(element => resizeObserver == null ? void 0 : resizeObserver.observe(element));\n }, [elements]);\n return rects;\n}\n\nfunction getMeasurableNode(node) {\n if (!node) {\n return null;\n }\n\n if (node.children.length > 1) {\n return node;\n }\n\n const firstChild = node.children[0];\n return isHTMLElement(firstChild) ? firstChild : node;\n}\n\nfunction useDragOverlayMeasuring(_ref) {\n let {\n measure\n } = _ref;\n const [rect, setRect] = useState(null);\n const handleResize = useCallback(entries => {\n for (const {\n target\n } of entries) {\n if (isHTMLElement(target)) {\n setRect(rect => {\n const newRect = measure(target);\n return rect ? { ...rect,\n width: newRect.width,\n height: newRect.height\n } : newRect;\n });\n break;\n }\n }\n }, [measure]);\n const resizeObserver = useResizeObserver({\n callback: handleResize\n });\n const handleNodeChange = useCallback(element => {\n const node = getMeasurableNode(element);\n resizeObserver == null ? void 0 : resizeObserver.disconnect();\n\n if (node) {\n resizeObserver == null ? void 0 : resizeObserver.observe(node);\n }\n\n setRect(node ? measure(node) : null);\n }, [measure, resizeObserver]);\n const [nodeRef, setRef] = useNodeRef(handleNodeChange);\n return useMemo(() => ({\n nodeRef,\n rect,\n setRef\n }), [rect, nodeRef, setRef]);\n}\n\nconst defaultSensors = [{\n sensor: PointerSensor,\n options: {}\n}, {\n sensor: KeyboardSensor,\n options: {}\n}];\nconst defaultData = {\n current: {}\n};\nconst defaultMeasuringConfiguration = {\n draggable: {\n measure: getTransformAgnosticClientRect\n },\n droppable: {\n measure: getTransformAgnosticClientRect,\n strategy: MeasuringStrategy.WhileDragging,\n frequency: MeasuringFrequency.Optimized\n },\n dragOverlay: {\n measure: getClientRect\n }\n};\n\nclass DroppableContainersMap extends Map {\n get(id) {\n var _super$get;\n\n return id != null ? (_super$get = super.get(id)) != null ? _super$get : undefined : undefined;\n }\n\n toArray() {\n return Array.from(this.values());\n }\n\n getEnabled() {\n return this.toArray().filter(_ref => {\n let {\n disabled\n } = _ref;\n return !disabled;\n });\n }\n\n getNodeFor(id) {\n var _this$get$node$curren, _this$get;\n\n return (_this$get$node$curren = (_this$get = this.get(id)) == null ? void 0 : _this$get.node.current) != null ? _this$get$node$curren : undefined;\n }\n\n}\n\nconst defaultPublicContext = {\n activatorEvent: null,\n active: null,\n activeNode: null,\n activeNodeRect: null,\n collisions: null,\n containerNodeRect: null,\n draggableNodes: /*#__PURE__*/new Map(),\n droppableRects: /*#__PURE__*/new Map(),\n droppableContainers: /*#__PURE__*/new DroppableContainersMap(),\n over: null,\n dragOverlay: {\n nodeRef: {\n current: null\n },\n rect: null,\n setRef: noop\n },\n scrollableAncestors: [],\n scrollableAncestorRects: [],\n measuringConfiguration: defaultMeasuringConfiguration,\n measureDroppableContainers: noop,\n windowRect: null,\n measuringScheduled: false\n};\nconst defaultInternalContext = {\n activatorEvent: null,\n activators: [],\n active: null,\n activeNodeRect: null,\n ariaDescribedById: {\n draggable: ''\n },\n dispatch: noop,\n draggableNodes: /*#__PURE__*/new Map(),\n over: null,\n measureDroppableContainers: noop\n};\nconst InternalContext = /*#__PURE__*/createContext(defaultInternalContext);\nconst PublicContext = /*#__PURE__*/createContext(defaultPublicContext);\n\nfunction getInitialState() {\n return {\n draggable: {\n active: null,\n initialCoordinates: {\n x: 0,\n y: 0\n },\n nodes: new Map(),\n translate: {\n x: 0,\n y: 0\n }\n },\n droppable: {\n containers: new DroppableContainersMap()\n }\n };\n}\nfunction reducer(state, action) {\n switch (action.type) {\n case Action.DragStart:\n return { ...state,\n draggable: { ...state.draggable,\n initialCoordinates: action.initialCoordinates,\n active: action.active\n }\n };\n\n case Action.DragMove:\n if (state.draggable.active == null) {\n return state;\n }\n\n return { ...state,\n draggable: { ...state.draggable,\n translate: {\n x: action.coordinates.x - state.draggable.initialCoordinates.x,\n y: action.coordinates.y - state.draggable.initialCoordinates.y\n }\n }\n };\n\n case Action.DragEnd:\n case Action.DragCancel:\n return { ...state,\n draggable: { ...state.draggable,\n active: null,\n initialCoordinates: {\n x: 0,\n y: 0\n },\n translate: {\n x: 0,\n y: 0\n }\n }\n };\n\n case Action.RegisterDroppable:\n {\n const {\n element\n } = action;\n const {\n id\n } = element;\n const containers = new DroppableContainersMap(state.droppable.containers);\n containers.set(id, element);\n return { ...state,\n droppable: { ...state.droppable,\n containers\n }\n };\n }\n\n case Action.SetDroppableDisabled:\n {\n const {\n id,\n key,\n disabled\n } = action;\n const element = state.droppable.containers.get(id);\n\n if (!element || key !== element.key) {\n return state;\n }\n\n const containers = new DroppableContainersMap(state.droppable.containers);\n containers.set(id, { ...element,\n disabled\n });\n return { ...state,\n droppable: { ...state.droppable,\n containers\n }\n };\n }\n\n case Action.UnregisterDroppable:\n {\n const {\n id,\n key\n } = action;\n const element = state.droppable.containers.get(id);\n\n if (!element || key !== element.key) {\n return state;\n }\n\n const containers = new DroppableContainersMap(state.droppable.containers);\n containers.delete(id);\n return { ...state,\n droppable: { ...state.droppable,\n containers\n }\n };\n }\n\n default:\n {\n return state;\n }\n }\n}\n\nfunction RestoreFocus(_ref) {\n let {\n disabled\n } = _ref;\n const {\n active,\n activatorEvent,\n draggableNodes\n } = useContext(InternalContext);\n const previousActivatorEvent = usePrevious(activatorEvent);\n const previousActiveId = usePrevious(active == null ? void 0 : active.id); // Restore keyboard focus on the activator node\n\n useEffect(() => {\n if (disabled) {\n return;\n }\n\n if (!activatorEvent && previousActivatorEvent && previousActiveId != null) {\n if (!isKeyboardEvent(previousActivatorEvent)) {\n return;\n }\n\n if (document.activeElement === previousActivatorEvent.target) {\n // No need to restore focus\n return;\n }\n\n const draggableNode = draggableNodes.get(previousActiveId);\n\n if (!draggableNode) {\n return;\n }\n\n const {\n activatorNode,\n node\n } = draggableNode;\n\n if (!activatorNode.current && !node.current) {\n return;\n }\n\n requestAnimationFrame(() => {\n for (const element of [activatorNode.current, node.current]) {\n if (!element) {\n continue;\n }\n\n const focusableNode = findFirstFocusableNode(element);\n\n if (focusableNode) {\n focusableNode.focus();\n break;\n }\n }\n });\n }\n }, [activatorEvent, disabled, draggableNodes, previousActiveId, previousActivatorEvent]);\n return null;\n}\n\nfunction applyModifiers(modifiers, _ref) {\n let {\n transform,\n ...args\n } = _ref;\n return modifiers != null && modifiers.length ? modifiers.reduce((accumulator, modifier) => {\n return modifier({\n transform: accumulator,\n ...args\n });\n }, transform) : transform;\n}\n\nfunction useMeasuringConfiguration(config) {\n return useMemo(() => ({\n draggable: { ...defaultMeasuringConfiguration.draggable,\n ...(config == null ? void 0 : config.draggable)\n },\n droppable: { ...defaultMeasuringConfiguration.droppable,\n ...(config == null ? void 0 : config.droppable)\n },\n dragOverlay: { ...defaultMeasuringConfiguration.dragOverlay,\n ...(config == null ? void 0 : config.dragOverlay)\n }\n }), // eslint-disable-next-line react-hooks/exhaustive-deps\n [config == null ? void 0 : config.draggable, config == null ? void 0 : config.droppable, config == null ? void 0 : config.dragOverlay]);\n}\n\nfunction useLayoutShiftScrollCompensation(_ref) {\n let {\n activeNode,\n measure,\n initialRect,\n config = true\n } = _ref;\n const initialized = useRef(false);\n const {\n x,\n y\n } = typeof config === 'boolean' ? {\n x: config,\n y: config\n } : config;\n useIsomorphicLayoutEffect(() => {\n const disabled = !x && !y;\n\n if (disabled || !activeNode) {\n initialized.current = false;\n return;\n }\n\n if (initialized.current || !initialRect) {\n // Return early if layout shift scroll compensation was already attempted\n // or if there is no initialRect to compare to.\n return;\n } // Get the most up to date node ref for the active draggable\n\n\n const node = activeNode == null ? void 0 : activeNode.node.current;\n\n if (!node || node.isConnected === false) {\n // Return early if there is no attached node ref or if the node is\n // disconnected from the document.\n return;\n }\n\n const rect = measure(node);\n const rectDelta = getRectDelta(rect, initialRect);\n\n if (!x) {\n rectDelta.x = 0;\n }\n\n if (!y) {\n rectDelta.y = 0;\n } // Only perform layout shift scroll compensation once\n\n\n initialized.current = true;\n\n if (Math.abs(rectDelta.x) > 0 || Math.abs(rectDelta.y) > 0) {\n const firstScrollableAncestor = getFirstScrollableAncestor(node);\n\n if (firstScrollableAncestor) {\n firstScrollableAncestor.scrollBy({\n top: rectDelta.y,\n left: rectDelta.x\n });\n }\n }\n }, [activeNode, x, y, initialRect, measure]);\n}\n\nconst ActiveDraggableContext = /*#__PURE__*/createContext({ ...defaultCoordinates,\n scaleX: 1,\n scaleY: 1\n});\nvar Status;\n\n(function (Status) {\n Status[Status[\"Uninitialized\"] = 0] = \"Uninitialized\";\n Status[Status[\"Initializing\"] = 1] = \"Initializing\";\n Status[Status[\"Initialized\"] = 2] = \"Initialized\";\n})(Status || (Status = {}));\n\nconst DndContext = /*#__PURE__*/memo(function DndContext(_ref) {\n var _sensorContext$curren, _dragOverlay$nodeRef$, _dragOverlay$rect, _over$rect;\n\n let {\n id,\n accessibility,\n autoScroll = true,\n children,\n sensors = defaultSensors,\n collisionDetection = rectIntersection,\n measuring,\n modifiers,\n ...props\n } = _ref;\n const store = useReducer(reducer, undefined, getInitialState);\n const [state, dispatch] = store;\n const [dispatchMonitorEvent, registerMonitorListener] = useDndMonitorProvider();\n const [status, setStatus] = useState(Status.Uninitialized);\n const isInitialized = status === Status.Initialized;\n const {\n draggable: {\n active: activeId,\n nodes: draggableNodes,\n translate\n },\n droppable: {\n containers: droppableContainers\n }\n } = state;\n const node = activeId != null ? draggableNodes.get(activeId) : null;\n const activeRects = useRef({\n initial: null,\n translated: null\n });\n const active = useMemo(() => {\n var _node$data;\n\n return activeId != null ? {\n id: activeId,\n // It's possible for the active node to unmount while dragging\n data: (_node$data = node == null ? void 0 : node.data) != null ? _node$data : defaultData,\n rect: activeRects\n } : null;\n }, [activeId, node]);\n const activeRef = useRef(null);\n const [activeSensor, setActiveSensor] = useState(null);\n const [activatorEvent, setActivatorEvent] = useState(null);\n const latestProps = useLatestValue(props, Object.values(props));\n const draggableDescribedById = useUniqueId(\"DndDescribedBy\", id);\n const enabledDroppableContainers = useMemo(() => droppableContainers.getEnabled(), [droppableContainers]);\n const measuringConfiguration = useMeasuringConfiguration(measuring);\n const {\n droppableRects,\n measureDroppableContainers,\n measuringScheduled\n } = useDroppableMeasuring(enabledDroppableContainers, {\n dragging: isInitialized,\n dependencies: [translate.x, translate.y],\n config: measuringConfiguration.droppable\n });\n const activeNode = useCachedNode(draggableNodes, activeId);\n const activationCoordinates = useMemo(() => activatorEvent ? getEventCoordinates(activatorEvent) : null, [activatorEvent]);\n const autoScrollOptions = getAutoScrollerOptions();\n const initialActiveNodeRect = useInitialRect(activeNode, measuringConfiguration.draggable.measure);\n useLayoutShiftScrollCompensation({\n activeNode: activeId != null ? draggableNodes.get(activeId) : null,\n config: autoScrollOptions.layoutShiftCompensation,\n initialRect: initialActiveNodeRect,\n measure: measuringConfiguration.draggable.measure\n });\n const activeNodeRect = useRect(activeNode, measuringConfiguration.draggable.measure, initialActiveNodeRect);\n const containerNodeRect = useRect(activeNode ? activeNode.parentElement : null);\n const sensorContext = useRef({\n activatorEvent: null,\n active: null,\n activeNode,\n collisionRect: null,\n collisions: null,\n droppableRects,\n draggableNodes,\n draggingNode: null,\n draggingNodeRect: null,\n droppableContainers,\n over: null,\n scrollableAncestors: [],\n scrollAdjustedTranslate: null\n });\n const overNode = droppableContainers.getNodeFor((_sensorContext$curren = sensorContext.current.over) == null ? void 0 : _sensorContext$curren.id);\n const dragOverlay = useDragOverlayMeasuring({\n measure: measuringConfiguration.dragOverlay.measure\n }); // Use the rect of the drag overlay if it is mounted\n\n const draggingNode = (_dragOverlay$nodeRef$ = dragOverlay.nodeRef.current) != null ? _dragOverlay$nodeRef$ : activeNode;\n const draggingNodeRect = isInitialized ? (_dragOverlay$rect = dragOverlay.rect) != null ? _dragOverlay$rect : activeNodeRect : null;\n const usesDragOverlay = Boolean(dragOverlay.nodeRef.current && dragOverlay.rect); // The delta between the previous and new position of the draggable node\n // is only relevant when there is no drag overlay\n\n const nodeRectDelta = useRectDelta(usesDragOverlay ? null : activeNodeRect); // Get the window rect of the dragging node\n\n const windowRect = useWindowRect(draggingNode ? getWindow(draggingNode) : null); // Get scrollable ancestors of the dragging node\n\n const scrollableAncestors = useScrollableAncestors(isInitialized ? overNode != null ? overNode : activeNode : null);\n const scrollableAncestorRects = useRects(scrollableAncestors); // Apply modifiers\n\n const modifiedTranslate = applyModifiers(modifiers, {\n transform: {\n x: translate.x - nodeRectDelta.x,\n y: translate.y - nodeRectDelta.y,\n scaleX: 1,\n scaleY: 1\n },\n activatorEvent,\n active,\n activeNodeRect,\n containerNodeRect,\n draggingNodeRect,\n over: sensorContext.current.over,\n overlayNodeRect: dragOverlay.rect,\n scrollableAncestors,\n scrollableAncestorRects,\n windowRect\n });\n const pointerCoordinates = activationCoordinates ? add(activationCoordinates, translate) : null;\n const scrollOffsets = useScrollOffsets(scrollableAncestors); // Represents the scroll delta since dragging was initiated\n\n const scrollAdjustment = useScrollOffsetsDelta(scrollOffsets); // Represents the scroll delta since the last time the active node rect was measured\n\n const activeNodeScrollDelta = useScrollOffsetsDelta(scrollOffsets, [activeNodeRect]);\n const scrollAdjustedTranslate = add(modifiedTranslate, scrollAdjustment);\n const collisionRect = draggingNodeRect ? getAdjustedRect(draggingNodeRect, modifiedTranslate) : null;\n const collisions = active && collisionRect ? collisionDetection({\n active,\n collisionRect,\n droppableRects,\n droppableContainers: enabledDroppableContainers,\n pointerCoordinates\n }) : null;\n const overId = getFirstCollision(collisions, 'id');\n const [over, setOver] = useState(null); // When there is no drag overlay used, we need to account for the\n // window scroll delta\n\n const appliedTranslate = usesDragOverlay ? modifiedTranslate : add(modifiedTranslate, activeNodeScrollDelta);\n const transform = adjustScale(appliedTranslate, (_over$rect = over == null ? void 0 : over.rect) != null ? _over$rect : null, activeNodeRect);\n const activeSensorRef = useRef(null);\n const instantiateSensor = useCallback((event, _ref2) => {\n let {\n sensor: Sensor,\n options\n } = _ref2;\n\n if (activeRef.current == null) {\n return;\n }\n\n const activeNode = draggableNodes.get(activeRef.current);\n\n if (!activeNode) {\n return;\n }\n\n const activatorEvent = event.nativeEvent;\n const sensorInstance = new Sensor({\n active: activeRef.current,\n activeNode,\n event: activatorEvent,\n options,\n // Sensors need to be instantiated with refs for arguments that change over time\n // otherwise they are frozen in time with the stale arguments\n context: sensorContext,\n\n onAbort(id) {\n const draggableNode = draggableNodes.get(id);\n\n if (!draggableNode) {\n return;\n }\n\n const {\n onDragAbort\n } = latestProps.current;\n const event = {\n id\n };\n onDragAbort == null ? void 0 : onDragAbort(event);\n dispatchMonitorEvent({\n type: 'onDragAbort',\n event\n });\n },\n\n onPending(id, constraint, initialCoordinates, offset) {\n const draggableNode = draggableNodes.get(id);\n\n if (!draggableNode) {\n return;\n }\n\n const {\n onDragPending\n } = latestProps.current;\n const event = {\n id,\n constraint,\n initialCoordinates,\n offset\n };\n onDragPending == null ? void 0 : onDragPending(event);\n dispatchMonitorEvent({\n type: 'onDragPending',\n event\n });\n },\n\n onStart(initialCoordinates) {\n const id = activeRef.current;\n\n if (id == null) {\n return;\n }\n\n const draggableNode = draggableNodes.get(id);\n\n if (!draggableNode) {\n return;\n }\n\n const {\n onDragStart\n } = latestProps.current;\n const event = {\n activatorEvent,\n active: {\n id,\n data: draggableNode.data,\n rect: activeRects\n }\n };\n unstable_batchedUpdates(() => {\n onDragStart == null ? void 0 : onDragStart(event);\n setStatus(Status.Initializing);\n dispatch({\n type: Action.DragStart,\n initialCoordinates,\n active: id\n });\n dispatchMonitorEvent({\n type: 'onDragStart',\n event\n });\n setActiveSensor(activeSensorRef.current);\n setActivatorEvent(activatorEvent);\n });\n },\n\n onMove(coordinates) {\n dispatch({\n type: Action.DragMove,\n coordinates\n });\n },\n\n onEnd: createHandler(Action.DragEnd),\n onCancel: createHandler(Action.DragCancel)\n });\n activeSensorRef.current = sensorInstance;\n\n function createHandler(type) {\n return async function handler() {\n const {\n active,\n collisions,\n over,\n scrollAdjustedTranslate\n } = sensorContext.current;\n let event = null;\n\n if (active && scrollAdjustedTranslate) {\n const {\n cancelDrop\n } = latestProps.current;\n event = {\n activatorEvent,\n active: active,\n collisions,\n delta: scrollAdjustedTranslate,\n over\n };\n\n if (type === Action.DragEnd && typeof cancelDrop === 'function') {\n const shouldCancel = await Promise.resolve(cancelDrop(event));\n\n if (shouldCancel) {\n type = Action.DragCancel;\n }\n }\n }\n\n activeRef.current = null;\n unstable_batchedUpdates(() => {\n dispatch({\n type\n });\n setStatus(Status.Uninitialized);\n setOver(null);\n setActiveSensor(null);\n setActivatorEvent(null);\n activeSensorRef.current = null;\n const eventName = type === Action.DragEnd ? 'onDragEnd' : 'onDragCancel';\n\n if (event) {\n const handler = latestProps.current[eventName];\n handler == null ? void 0 : handler(event);\n dispatchMonitorEvent({\n type: eventName,\n event\n });\n }\n });\n };\n }\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [draggableNodes]);\n const bindActivatorToSensorInstantiator = useCallback((handler, sensor) => {\n return (event, active) => {\n const nativeEvent = event.nativeEvent;\n const activeDraggableNode = draggableNodes.get(active);\n\n if ( // Another sensor is already instantiating\n activeRef.current !== null || // No active draggable\n !activeDraggableNode || // Event has already been captured\n nativeEvent.dndKit || nativeEvent.defaultPrevented) {\n return;\n }\n\n const activationContext = {\n active: activeDraggableNode\n };\n const shouldActivate = handler(event, sensor.options, activationContext);\n\n if (shouldActivate === true) {\n nativeEvent.dndKit = {\n capturedBy: sensor.sensor\n };\n activeRef.current = active;\n instantiateSensor(event, sensor);\n }\n };\n }, [draggableNodes, instantiateSensor]);\n const activators = useCombineActivators(sensors, bindActivatorToSensorInstantiator);\n useSensorSetup(sensors);\n useIsomorphicLayoutEffect(() => {\n if (activeNodeRect && status === Status.Initializing) {\n setStatus(Status.Initialized);\n }\n }, [activeNodeRect, status]);\n useEffect(() => {\n const {\n onDragMove\n } = latestProps.current;\n const {\n active,\n activatorEvent,\n collisions,\n over\n } = sensorContext.current;\n\n if (!active || !activatorEvent) {\n return;\n }\n\n const event = {\n active,\n activatorEvent,\n collisions,\n delta: {\n x: scrollAdjustedTranslate.x,\n y: scrollAdjustedTranslate.y\n },\n over\n };\n unstable_batchedUpdates(() => {\n onDragMove == null ? void 0 : onDragMove(event);\n dispatchMonitorEvent({\n type: 'onDragMove',\n event\n });\n });\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [scrollAdjustedTranslate.x, scrollAdjustedTranslate.y]);\n useEffect(() => {\n const {\n active,\n activatorEvent,\n collisions,\n droppableContainers,\n scrollAdjustedTranslate\n } = sensorContext.current;\n\n if (!active || activeRef.current == null || !activatorEvent || !scrollAdjustedTranslate) {\n return;\n }\n\n const {\n onDragOver\n } = latestProps.current;\n const overContainer = droppableContainers.get(overId);\n const over = overContainer && overContainer.rect.current ? {\n id: overContainer.id,\n rect: overContainer.rect.current,\n data: overContainer.data,\n disabled: overContainer.disabled\n } : null;\n const event = {\n active,\n activatorEvent,\n collisions,\n delta: {\n x: scrollAdjustedTranslate.x,\n y: scrollAdjustedTranslate.y\n },\n over\n };\n unstable_batchedUpdates(() => {\n setOver(over);\n onDragOver == null ? void 0 : onDragOver(event);\n dispatchMonitorEvent({\n type: 'onDragOver',\n event\n });\n });\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [overId]);\n useIsomorphicLayoutEffect(() => {\n sensorContext.current = {\n activatorEvent,\n active,\n activeNode,\n collisionRect,\n collisions,\n droppableRects,\n draggableNodes,\n draggingNode,\n draggingNodeRect,\n droppableContainers,\n over,\n scrollableAncestors,\n scrollAdjustedTranslate\n };\n activeRects.current = {\n initial: draggingNodeRect,\n translated: collisionRect\n };\n }, [active, activeNode, collisions, collisionRect, draggableNodes, draggingNode, draggingNodeRect, droppableRects, droppableContainers, over, scrollableAncestors, scrollAdjustedTranslate]);\n useAutoScroller({ ...autoScrollOptions,\n delta: translate,\n draggingRect: collisionRect,\n pointerCoordinates,\n scrollableAncestors,\n scrollableAncestorRects\n });\n const publicContext = useMemo(() => {\n const context = {\n active,\n activeNode,\n activeNodeRect,\n activatorEvent,\n collisions,\n containerNodeRect,\n dragOverlay,\n draggableNodes,\n droppableContainers,\n droppableRects,\n over,\n measureDroppableContainers,\n scrollableAncestors,\n scrollableAncestorRects,\n measuringConfiguration,\n measuringScheduled,\n windowRect\n };\n return context;\n }, [active, activeNode, activeNodeRect, activatorEvent, collisions, containerNodeRect, dragOverlay, draggableNodes, droppableContainers, droppableRects, over, measureDroppableContainers, scrollableAncestors, scrollableAncestorRects, measuringConfiguration, measuringScheduled, windowRect]);\n const internalContext = useMemo(() => {\n const context = {\n activatorEvent,\n activators,\n active,\n activeNodeRect,\n ariaDescribedById: {\n draggable: draggableDescribedById\n },\n dispatch,\n draggableNodes,\n over,\n measureDroppableContainers\n };\n return context;\n }, [activatorEvent, activators, active, activeNodeRect, dispatch, draggableDescribedById, draggableNodes, over, measureDroppableContainers]);\n return React.createElement(DndMonitorContext.Provider, {\n value: registerMonitorListener\n }, React.createElement(InternalContext.Provider, {\n value: internalContext\n }, React.createElement(PublicContext.Provider, {\n value: publicContext\n }, React.createElement(ActiveDraggableContext.Provider, {\n value: transform\n }, children)), React.createElement(RestoreFocus, {\n disabled: (accessibility == null ? void 0 : accessibility.restoreFocus) === false\n })), React.createElement(Accessibility, { ...accessibility,\n hiddenTextDescribedById: draggableDescribedById\n }));\n\n function getAutoScrollerOptions() {\n const activeSensorDisablesAutoscroll = (activeSensor == null ? void 0 : activeSensor.autoScrollEnabled) === false;\n const autoScrollGloballyDisabled = typeof autoScroll === 'object' ? autoScroll.enabled === false : autoScroll === false;\n const enabled = isInitialized && !activeSensorDisablesAutoscroll && !autoScrollGloballyDisabled;\n\n if (typeof autoScroll === 'object') {\n return { ...autoScroll,\n enabled\n };\n }\n\n return {\n enabled\n };\n }\n});\n\nconst NullContext = /*#__PURE__*/createContext(null);\nconst defaultRole = 'button';\nconst ID_PREFIX = 'Draggable';\nfunction useDraggable(_ref) {\n let {\n id,\n data,\n disabled = false,\n attributes\n } = _ref;\n const key = useUniqueId(ID_PREFIX);\n const {\n activators,\n activatorEvent,\n active,\n activeNodeRect,\n ariaDescribedById,\n draggableNodes,\n over\n } = useContext(InternalContext);\n const {\n role = defaultRole,\n roleDescription = 'draggable',\n tabIndex = 0\n } = attributes != null ? attributes : {};\n const isDragging = (active == null ? void 0 : active.id) === id;\n const transform = useContext(isDragging ? ActiveDraggableContext : NullContext);\n const [node, setNodeRef] = useNodeRef();\n const [activatorNode, setActivatorNodeRef] = useNodeRef();\n const listeners = useSyntheticListeners(activators, id);\n const dataRef = useLatestValue(data);\n useIsomorphicLayoutEffect(() => {\n draggableNodes.set(id, {\n id,\n key,\n node,\n activatorNode,\n data: dataRef\n });\n return () => {\n const node = draggableNodes.get(id);\n\n if (node && node.key === key) {\n draggableNodes.delete(id);\n }\n };\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [draggableNodes, id]);\n const memoizedAttributes = useMemo(() => ({\n role,\n tabIndex,\n 'aria-disabled': disabled,\n 'aria-pressed': isDragging && role === defaultRole ? true : undefined,\n 'aria-roledescription': roleDescription,\n 'aria-describedby': ariaDescribedById.draggable\n }), [disabled, role, tabIndex, isDragging, roleDescription, ariaDescribedById.draggable]);\n return {\n active,\n activatorEvent,\n activeNodeRect,\n attributes: memoizedAttributes,\n isDragging,\n listeners: disabled ? undefined : listeners,\n node,\n over,\n setNodeRef,\n setActivatorNodeRef,\n transform\n };\n}\n\nfunction useDndContext() {\n return useContext(PublicContext);\n}\n\nconst ID_PREFIX$1 = 'Droppable';\nconst defaultResizeObserverConfig = {\n timeout: 25\n};\nfunction useDroppable(_ref) {\n let {\n data,\n disabled = false,\n id,\n resizeObserverConfig\n } = _ref;\n const key = useUniqueId(ID_PREFIX$1);\n const {\n active,\n dispatch,\n over,\n measureDroppableContainers\n } = useContext(InternalContext);\n const previous = useRef({\n disabled\n });\n const resizeObserverConnected = useRef(false);\n const rect = useRef(null);\n const callbackId = useRef(null);\n const {\n disabled: resizeObserverDisabled,\n updateMeasurementsFor,\n timeout: resizeObserverTimeout\n } = { ...defaultResizeObserverConfig,\n ...resizeObserverConfig\n };\n const ids = useLatestValue(updateMeasurementsFor != null ? updateMeasurementsFor : id);\n const handleResize = useCallback(() => {\n if (!resizeObserverConnected.current) {\n // ResizeObserver invokes the `handleResize` callback as soon as `observe` is called,\n // assuming the element is rendered and displayed.\n resizeObserverConnected.current = true;\n return;\n }\n\n if (callbackId.current != null) {\n clearTimeout(callbackId.current);\n }\n\n callbackId.current = setTimeout(() => {\n measureDroppableContainers(Array.isArray(ids.current) ? ids.current : [ids.current]);\n callbackId.current = null;\n }, resizeObserverTimeout);\n }, //eslint-disable-next-line react-hooks/exhaustive-deps\n [resizeObserverTimeout]);\n const resizeObserver = useResizeObserver({\n callback: handleResize,\n disabled: resizeObserverDisabled || !active\n });\n const handleNodeChange = useCallback((newElement, previousElement) => {\n if (!resizeObserver) {\n return;\n }\n\n if (previousElement) {\n resizeObserver.unobserve(previousElement);\n resizeObserverConnected.current = false;\n }\n\n if (newElement) {\n resizeObserver.observe(newElement);\n }\n }, [resizeObserver]);\n const [nodeRef, setNodeRef] = useNodeRef(handleNodeChange);\n const dataRef = useLatestValue(data);\n useEffect(() => {\n if (!resizeObserver || !nodeRef.current) {\n return;\n }\n\n resizeObserver.disconnect();\n resizeObserverConnected.current = false;\n resizeObserver.observe(nodeRef.current);\n }, [nodeRef, resizeObserver]);\n useEffect(() => {\n dispatch({\n type: Action.RegisterDroppable,\n element: {\n id,\n key,\n disabled,\n node: nodeRef,\n rect,\n data: dataRef\n }\n });\n return () => dispatch({\n type: Action.UnregisterDroppable,\n key,\n id\n });\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n [id]);\n useEffect(() => {\n if (disabled !== previous.current.disabled) {\n dispatch({\n type: Action.SetDroppableDisabled,\n id,\n key,\n disabled\n });\n previous.current.disabled = disabled;\n }\n }, [id, key, disabled, dispatch]);\n return {\n active,\n rect,\n isOver: (over == null ? void 0 : over.id) === id,\n node: nodeRef,\n over,\n setNodeRef\n };\n}\n\nfunction AnimationManager(_ref) {\n let {\n animation,\n children\n } = _ref;\n const [clonedChildren, setClonedChildren] = useState(null);\n const [element, setElement] = useState(null);\n const previousChildren = usePrevious(children);\n\n if (!children && !clonedChildren && previousChildren) {\n setClonedChildren(previousChildren);\n }\n\n useIsomorphicLayoutEffect(() => {\n if (!element) {\n return;\n }\n\n const key = clonedChildren == null ? void 0 : clonedChildren.key;\n const id = clonedChildren == null ? void 0 : clonedChildren.props.id;\n\n if (key == null || id == null) {\n setClonedChildren(null);\n return;\n }\n\n Promise.resolve(animation(id, element)).then(() => {\n setClonedChildren(null);\n });\n }, [animation, clonedChildren, element]);\n return React.createElement(React.Fragment, null, children, clonedChildren ? cloneElement(clonedChildren, {\n ref: setElement\n }) : null);\n}\n\nconst defaultTransform = {\n x: 0,\n y: 0,\n scaleX: 1,\n scaleY: 1\n};\nfunction NullifiedContextProvider(_ref) {\n let {\n children\n } = _ref;\n return React.createElement(InternalContext.Provider, {\n value: defaultInternalContext\n }, React.createElement(ActiveDraggableContext.Provider, {\n value: defaultTransform\n }, children));\n}\n\nconst baseStyles = {\n position: 'fixed',\n touchAction: 'none'\n};\n\nconst defaultTransition = activatorEvent => {\n const isKeyboardActivator = isKeyboardEvent(activatorEvent);\n return isKeyboardActivator ? 'transform 250ms ease' : undefined;\n};\n\nconst PositionedOverlay = /*#__PURE__*/forwardRef((_ref, ref) => {\n let {\n as,\n activatorEvent,\n adjustScale,\n children,\n className,\n rect,\n style,\n transform,\n transition = defaultTransition\n } = _ref;\n\n if (!rect) {\n return null;\n }\n\n const scaleAdjustedTransform = adjustScale ? transform : { ...transform,\n scaleX: 1,\n scaleY: 1\n };\n const styles = { ...baseStyles,\n width: rect.width,\n height: rect.height,\n top: rect.top,\n left: rect.left,\n transform: CSS.Transform.toString(scaleAdjustedTransform),\n transformOrigin: adjustScale && activatorEvent ? getRelativeTransformOrigin(activatorEvent, rect) : undefined,\n transition: typeof transition === 'function' ? transition(activatorEvent) : transition,\n ...style\n };\n return React.createElement(as, {\n className,\n style: styles,\n ref\n }, children);\n});\n\nconst defaultDropAnimationSideEffects = options => _ref => {\n let {\n active,\n dragOverlay\n } = _ref;\n const originalStyles = {};\n const {\n styles,\n className\n } = options;\n\n if (styles != null && styles.active) {\n for (const [key, value] of Object.entries(styles.active)) {\n if (value === undefined) {\n continue;\n }\n\n originalStyles[key] = active.node.style.getPropertyValue(key);\n active.node.style.setProperty(key, value);\n }\n }\n\n if (styles != null && styles.dragOverlay) {\n for (const [key, value] of Object.entries(styles.dragOverlay)) {\n if (value === undefined) {\n continue;\n }\n\n dragOverlay.node.style.setProperty(key, value);\n }\n }\n\n if (className != null && className.active) {\n active.node.classList.add(className.active);\n }\n\n if (className != null && className.dragOverlay) {\n dragOverlay.node.classList.add(className.dragOverlay);\n }\n\n return function cleanup() {\n for (const [key, value] of Object.entries(originalStyles)) {\n active.node.style.setProperty(key, value);\n }\n\n if (className != null && className.active) {\n active.node.classList.remove(className.active);\n }\n };\n};\n\nconst defaultKeyframeResolver = _ref2 => {\n let {\n transform: {\n initial,\n final\n }\n } = _ref2;\n return [{\n transform: CSS.Transform.toString(initial)\n }, {\n transform: CSS.Transform.toString(final)\n }];\n};\n\nconst defaultDropAnimationConfiguration = {\n duration: 250,\n easing: 'ease',\n keyframes: defaultKeyframeResolver,\n sideEffects: /*#__PURE__*/defaultDropAnimationSideEffects({\n styles: {\n active: {\n opacity: '0'\n }\n }\n })\n};\nfunction useDropAnimation(_ref3) {\n let {\n config,\n draggableNodes,\n droppableContainers,\n measuringConfiguration\n } = _ref3;\n return useEvent((id, node) => {\n if (config === null) {\n return;\n }\n\n const activeDraggable = draggableNodes.get(id);\n\n if (!activeDraggable) {\n return;\n }\n\n const activeNode = activeDraggable.node.current;\n\n if (!activeNode) {\n return;\n }\n\n const measurableNode = getMeasurableNode(node);\n\n if (!measurableNode) {\n return;\n }\n\n const {\n transform\n } = getWindow(node).getComputedStyle(node);\n const parsedTransform = parseTransform(transform);\n\n if (!parsedTransform) {\n return;\n }\n\n const animation = typeof config === 'function' ? config : createDefaultDropAnimation(config);\n scrollIntoViewIfNeeded(activeNode, measuringConfiguration.draggable.measure);\n return animation({\n active: {\n id,\n data: activeDraggable.data,\n node: activeNode,\n rect: measuringConfiguration.draggable.measure(activeNode)\n },\n draggableNodes,\n dragOverlay: {\n node,\n rect: measuringConfiguration.dragOverlay.measure(measurableNode)\n },\n droppableContainers,\n measuringConfiguration,\n transform: parsedTransform\n });\n });\n}\n\nfunction createDefaultDropAnimation(options) {\n const {\n duration,\n easing,\n sideEffects,\n keyframes\n } = { ...defaultDropAnimationConfiguration,\n ...options\n };\n return _ref4 => {\n let {\n active,\n dragOverlay,\n transform,\n ...rest\n } = _ref4;\n\n if (!duration) {\n // Do not animate if animation duration is zero.\n return;\n }\n\n const delta = {\n x: dragOverlay.rect.left - active.rect.left,\n y: dragOverlay.rect.top - active.rect.top\n };\n const scale = {\n scaleX: transform.scaleX !== 1 ? active.rect.width * transform.scaleX / dragOverlay.rect.width : 1,\n scaleY: transform.scaleY !== 1 ? active.rect.height * transform.scaleY / dragOverlay.rect.height : 1\n };\n const finalTransform = {\n x: transform.x - delta.x,\n y: transform.y - delta.y,\n ...scale\n };\n const animationKeyframes = keyframes({ ...rest,\n active,\n dragOverlay,\n transform: {\n initial: transform,\n final: finalTransform\n }\n });\n const [firstKeyframe] = animationKeyframes;\n const lastKeyframe = animationKeyframes[animationKeyframes.length - 1];\n\n if (JSON.stringify(firstKeyframe) === JSON.stringify(lastKeyframe)) {\n // The start and end keyframes are the same, infer that there is no animation needed.\n return;\n }\n\n const cleanup = sideEffects == null ? void 0 : sideEffects({\n active,\n dragOverlay,\n ...rest\n });\n const animation = dragOverlay.node.animate(animationKeyframes, {\n duration,\n easing,\n fill: 'forwards'\n });\n return new Promise(resolve => {\n animation.onfinish = () => {\n cleanup == null ? void 0 : cleanup();\n resolve();\n };\n });\n };\n}\n\nlet key = 0;\nfunction useKey(id) {\n return useMemo(() => {\n if (id == null) {\n return;\n }\n\n key++;\n return key;\n }, [id]);\n}\n\nconst DragOverlay = /*#__PURE__*/React.memo(_ref => {\n let {\n adjustScale = false,\n children,\n dropAnimation: dropAnimationConfig,\n style,\n transition,\n modifiers,\n wrapperElement = 'div',\n className,\n zIndex = 999\n } = _ref;\n const {\n activatorEvent,\n active,\n activeNodeRect,\n containerNodeRect,\n draggableNodes,\n droppableContainers,\n dragOverlay,\n over,\n measuringConfiguration,\n scrollableAncestors,\n scrollableAncestorRects,\n windowRect\n } = useDndContext();\n const transform = useContext(ActiveDraggableContext);\n const key = useKey(active == null ? void 0 : active.id);\n const modifiedTransform = applyModifiers(modifiers, {\n activatorEvent,\n active,\n activeNodeRect,\n containerNodeRect,\n draggingNodeRect: dragOverlay.rect,\n over,\n overlayNodeRect: dragOverlay.rect,\n scrollableAncestors,\n scrollableAncestorRects,\n transform,\n windowRect\n });\n const initialRect = useInitialValue(activeNodeRect);\n const dropAnimation = useDropAnimation({\n config: dropAnimationConfig,\n draggableNodes,\n droppableContainers,\n measuringConfiguration\n }); // We need to wait for the active node to be measured before connecting the drag overlay ref\n // otherwise collisions can be computed against a mispositioned drag overlay\n\n const ref = initialRect ? dragOverlay.setRef : undefined;\n return React.createElement(NullifiedContextProvider, null, React.createElement(AnimationManager, {\n animation: dropAnimation\n }, active && key ? React.createElement(PositionedOverlay, {\n key: key,\n id: active.id,\n ref: ref,\n as: wrapperElement,\n activatorEvent: activatorEvent,\n adjustScale: adjustScale,\n className: className,\n transition: transition,\n rect: initialRect,\n style: {\n zIndex,\n ...style\n },\n transform: modifiedTransform\n }, children) : null));\n});\n\nexport { AutoScrollActivator, DndContext, DragOverlay, KeyboardCode, KeyboardSensor, MeasuringFrequency, MeasuringStrategy, MouseSensor, PointerSensor, TouchSensor, TraversalOrder, applyModifiers, closestCenter, closestCorners, defaultAnnouncements, defaultCoordinates, defaultDropAnimationConfiguration as defaultDropAnimation, defaultDropAnimationSideEffects, defaultKeyboardCoordinateGetter, defaultScreenReaderInstructions, getClientRect, getFirstCollision, getScrollableAncestors, pointerWithin, rectIntersection, useDndContext, useDndMonitor, useDraggable, useDroppable, useSensor, useSensors };\n//# sourceMappingURL=core.esm.js.map\n","import React, { useMemo, useRef, useEffect, useState, useContext } from 'react';\nimport { useDndContext, getClientRect, useDroppable, useDraggable, closestCorners, getFirstCollision, getScrollableAncestors, KeyboardCode } from '@dnd-kit/core';\nimport { useUniqueId, useIsomorphicLayoutEffect, CSS, useCombinedRefs, isKeyboardEvent, subtract } from '@dnd-kit/utilities';\n\n/**\r\n * Move an array item to a different position. Returns a new array with the item moved to the new position.\r\n */\nfunction arrayMove(array, from, to) {\n const newArray = array.slice();\n newArray.splice(to < 0 ? newArray.length + to : to, 0, newArray.splice(from, 1)[0]);\n return newArray;\n}\n\n/**\r\n * Swap an array item to a different position. Returns a new array with the item swapped to the new position.\r\n */\nfunction arraySwap(array, from, to) {\n const newArray = array.slice();\n newArray[from] = array[to];\n newArray[to] = array[from];\n return newArray;\n}\n\nfunction getSortedRects(items, rects) {\n return items.reduce((accumulator, id, index) => {\n const rect = rects.get(id);\n\n if (rect) {\n accumulator[index] = rect;\n }\n\n return accumulator;\n }, Array(items.length));\n}\n\nfunction isValidIndex(index) {\n return index !== null && index >= 0;\n}\n\nfunction itemsEqual(a, b) {\n if (a === b) {\n return true;\n }\n\n if (a.length !== b.length) {\n return false;\n }\n\n for (let i = 0; i < a.length; i++) {\n if (a[i] !== b[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction normalizeDisabled(disabled) {\n if (typeof disabled === 'boolean') {\n return {\n draggable: disabled,\n droppable: disabled\n };\n }\n\n return disabled;\n}\n\n// To-do: We should be calculating scale transformation\nconst defaultScale = {\n scaleX: 1,\n scaleY: 1\n};\nconst horizontalListSortingStrategy = _ref => {\n var _rects$activeIndex;\n\n let {\n rects,\n activeNodeRect: fallbackActiveRect,\n activeIndex,\n overIndex,\n index\n } = _ref;\n const activeNodeRect = (_rects$activeIndex = rects[activeIndex]) != null ? _rects$activeIndex : fallbackActiveRect;\n\n if (!activeNodeRect) {\n return null;\n }\n\n const itemGap = getItemGap(rects, index, activeIndex);\n\n if (index === activeIndex) {\n const newIndexRect = rects[overIndex];\n\n if (!newIndexRect) {\n return null;\n }\n\n return {\n x: activeIndex < overIndex ? newIndexRect.left + newIndexRect.width - (activeNodeRect.left + activeNodeRect.width) : newIndexRect.left - activeNodeRect.left,\n y: 0,\n ...defaultScale\n };\n }\n\n if (index > activeIndex && index <= overIndex) {\n return {\n x: -activeNodeRect.width - itemGap,\n y: 0,\n ...defaultScale\n };\n }\n\n if (index < activeIndex && index >= overIndex) {\n return {\n x: activeNodeRect.width + itemGap,\n y: 0,\n ...defaultScale\n };\n }\n\n return {\n x: 0,\n y: 0,\n ...defaultScale\n };\n};\n\nfunction getItemGap(rects, index, activeIndex) {\n const currentRect = rects[index];\n const previousRect = rects[index - 1];\n const nextRect = rects[index + 1];\n\n if (!currentRect || !previousRect && !nextRect) {\n return 0;\n }\n\n if (activeIndex < index) {\n return previousRect ? currentRect.left - (previousRect.left + previousRect.width) : nextRect.left - (currentRect.left + currentRect.width);\n }\n\n return nextRect ? nextRect.left - (currentRect.left + currentRect.width) : currentRect.left - (previousRect.left + previousRect.width);\n}\n\nconst rectSortingStrategy = _ref => {\n let {\n rects,\n activeIndex,\n overIndex,\n index\n } = _ref;\n const newRects = arrayMove(rects, overIndex, activeIndex);\n const oldRect = rects[index];\n const newRect = newRects[index];\n\n if (!newRect || !oldRect) {\n return null;\n }\n\n return {\n x: newRect.left - oldRect.left,\n y: newRect.top - oldRect.top,\n scaleX: newRect.width / oldRect.width,\n scaleY: newRect.height / oldRect.height\n };\n};\n\nconst rectSwappingStrategy = _ref => {\n let {\n activeIndex,\n index,\n rects,\n overIndex\n } = _ref;\n let oldRect;\n let newRect;\n\n if (index === activeIndex) {\n oldRect = rects[index];\n newRect = rects[overIndex];\n }\n\n if (index === overIndex) {\n oldRect = rects[index];\n newRect = rects[activeIndex];\n }\n\n if (!newRect || !oldRect) {\n return null;\n }\n\n return {\n x: newRect.left - oldRect.left,\n y: newRect.top - oldRect.top,\n scaleX: newRect.width / oldRect.width,\n scaleY: newRect.height / oldRect.height\n };\n};\n\n// To-do: We should be calculating scale transformation\nconst defaultScale$1 = {\n scaleX: 1,\n scaleY: 1\n};\nconst verticalListSortingStrategy = _ref => {\n var _rects$activeIndex;\n\n let {\n activeIndex,\n activeNodeRect: fallbackActiveRect,\n index,\n rects,\n overIndex\n } = _ref;\n const activeNodeRect = (_rects$activeIndex = rects[activeIndex]) != null ? _rects$activeIndex : fallbackActiveRect;\n\n if (!activeNodeRect) {\n return null;\n }\n\n if (index === activeIndex) {\n const overIndexRect = rects[overIndex];\n\n if (!overIndexRect) {\n return null;\n }\n\n return {\n x: 0,\n y: activeIndex < overIndex ? overIndexRect.top + overIndexRect.height - (activeNodeRect.top + activeNodeRect.height) : overIndexRect.top - activeNodeRect.top,\n ...defaultScale$1\n };\n }\n\n const itemGap = getItemGap$1(rects, index, activeIndex);\n\n if (index > activeIndex && index <= overIndex) {\n return {\n x: 0,\n y: -activeNodeRect.height - itemGap,\n ...defaultScale$1\n };\n }\n\n if (index < activeIndex && index >= overIndex) {\n return {\n x: 0,\n y: activeNodeRect.height + itemGap,\n ...defaultScale$1\n };\n }\n\n return {\n x: 0,\n y: 0,\n ...defaultScale$1\n };\n};\n\nfunction getItemGap$1(clientRects, index, activeIndex) {\n const currentRect = clientRects[index];\n const previousRect = clientRects[index - 1];\n const nextRect = clientRects[index + 1];\n\n if (!currentRect) {\n return 0;\n }\n\n if (activeIndex < index) {\n return previousRect ? currentRect.top - (previousRect.top + previousRect.height) : nextRect ? nextRect.top - (currentRect.top + currentRect.height) : 0;\n }\n\n return nextRect ? nextRect.top - (currentRect.top + currentRect.height) : previousRect ? currentRect.top - (previousRect.top + previousRect.height) : 0;\n}\n\nconst ID_PREFIX = 'Sortable';\nconst Context = /*#__PURE__*/React.createContext({\n activeIndex: -1,\n containerId: ID_PREFIX,\n disableTransforms: false,\n items: [],\n overIndex: -1,\n useDragOverlay: false,\n sortedRects: [],\n strategy: rectSortingStrategy,\n disabled: {\n draggable: false,\n droppable: false\n }\n});\nfunction SortableContext(_ref) {\n let {\n children,\n id,\n items: userDefinedItems,\n strategy = rectSortingStrategy,\n disabled: disabledProp = false\n } = _ref;\n const {\n active,\n dragOverlay,\n droppableRects,\n over,\n measureDroppableContainers\n } = useDndContext();\n const containerId = useUniqueId(ID_PREFIX, id);\n const useDragOverlay = Boolean(dragOverlay.rect !== null);\n const items = useMemo(() => userDefinedItems.map(item => typeof item === 'object' && 'id' in item ? item.id : item), [userDefinedItems]);\n const isDragging = active != null;\n const activeIndex = active ? items.indexOf(active.id) : -1;\n const overIndex = over ? items.indexOf(over.id) : -1;\n const previousItemsRef = useRef(items);\n const itemsHaveChanged = !itemsEqual(items, previousItemsRef.current);\n const disableTransforms = overIndex !== -1 && activeIndex === -1 || itemsHaveChanged;\n const disabled = normalizeDisabled(disabledProp);\n useIsomorphicLayoutEffect(() => {\n if (itemsHaveChanged && isDragging) {\n measureDroppableContainers(items);\n }\n }, [itemsHaveChanged, items, isDragging, measureDroppableContainers]);\n useEffect(() => {\n previousItemsRef.current = items;\n }, [items]);\n const contextValue = useMemo(() => ({\n activeIndex,\n containerId,\n disabled,\n disableTransforms,\n items,\n overIndex,\n useDragOverlay,\n sortedRects: getSortedRects(items, droppableRects),\n strategy\n }), // eslint-disable-next-line react-hooks/exhaustive-deps\n [activeIndex, containerId, disabled.draggable, disabled.droppable, disableTransforms, items, overIndex, droppableRects, useDragOverlay, strategy]);\n return React.createElement(Context.Provider, {\n value: contextValue\n }, children);\n}\n\nconst defaultNewIndexGetter = _ref => {\n let {\n id,\n items,\n activeIndex,\n overIndex\n } = _ref;\n return arrayMove(items, activeIndex, overIndex).indexOf(id);\n};\nconst defaultAnimateLayoutChanges = _ref2 => {\n let {\n containerId,\n isSorting,\n wasDragging,\n index,\n items,\n newIndex,\n previousItems,\n previousContainerId,\n transition\n } = _ref2;\n\n if (!transition || !wasDragging) {\n return false;\n }\n\n if (previousItems !== items && index === newIndex) {\n return false;\n }\n\n if (isSorting) {\n return true;\n }\n\n return newIndex !== index && containerId === previousContainerId;\n};\nconst defaultTransition = {\n duration: 200,\n easing: 'ease'\n};\nconst transitionProperty = 'transform';\nconst disabledTransition = /*#__PURE__*/CSS.Transition.toString({\n property: transitionProperty,\n duration: 0,\n easing: 'linear'\n});\nconst defaultAttributes = {\n roleDescription: 'sortable'\n};\n\n/*\r\n * When the index of an item changes while sorting,\r\n * we need to temporarily disable the transforms\r\n */\n\nfunction useDerivedTransform(_ref) {\n let {\n disabled,\n index,\n node,\n rect\n } = _ref;\n const [derivedTransform, setDerivedtransform] = useState(null);\n const previousIndex = useRef(index);\n useIsomorphicLayoutEffect(() => {\n if (!disabled && index !== previousIndex.current && node.current) {\n const initial = rect.current;\n\n if (initial) {\n const current = getClientRect(node.current, {\n ignoreTransform: true\n });\n const delta = {\n x: initial.left - current.left,\n y: initial.top - current.top,\n scaleX: initial.width / current.width,\n scaleY: initial.height / current.height\n };\n\n if (delta.x || delta.y) {\n setDerivedtransform(delta);\n }\n }\n }\n\n if (index !== previousIndex.current) {\n previousIndex.current = index;\n }\n }, [disabled, index, node, rect]);\n useEffect(() => {\n if (derivedTransform) {\n setDerivedtransform(null);\n }\n }, [derivedTransform]);\n return derivedTransform;\n}\n\nfunction useSortable(_ref) {\n let {\n animateLayoutChanges = defaultAnimateLayoutChanges,\n attributes: userDefinedAttributes,\n disabled: localDisabled,\n data: customData,\n getNewIndex = defaultNewIndexGetter,\n id,\n strategy: localStrategy,\n resizeObserverConfig,\n transition = defaultTransition\n } = _ref;\n const {\n items,\n containerId,\n activeIndex,\n disabled: globalDisabled,\n disableTransforms,\n sortedRects,\n overIndex,\n useDragOverlay,\n strategy: globalStrategy\n } = useContext(Context);\n const disabled = normalizeLocalDisabled(localDisabled, globalDisabled);\n const index = items.indexOf(id);\n const data = useMemo(() => ({\n sortable: {\n containerId,\n index,\n items\n },\n ...customData\n }), [containerId, customData, index, items]);\n const itemsAfterCurrentSortable = useMemo(() => items.slice(items.indexOf(id)), [items, id]);\n const {\n rect,\n node,\n isOver,\n setNodeRef: setDroppableNodeRef\n } = useDroppable({\n id,\n data,\n disabled: disabled.droppable,\n resizeObserverConfig: {\n updateMeasurementsFor: itemsAfterCurrentSortable,\n ...resizeObserverConfig\n }\n });\n const {\n active,\n activatorEvent,\n activeNodeRect,\n attributes,\n setNodeRef: setDraggableNodeRef,\n listeners,\n isDragging,\n over,\n setActivatorNodeRef,\n transform\n } = useDraggable({\n id,\n data,\n attributes: { ...defaultAttributes,\n ...userDefinedAttributes\n },\n disabled: disabled.draggable\n });\n const setNodeRef = useCombinedRefs(setDroppableNodeRef, setDraggableNodeRef);\n const isSorting = Boolean(active);\n const displaceItem = isSorting && !disableTransforms && isValidIndex(activeIndex) && isValidIndex(overIndex);\n const shouldDisplaceDragSource = !useDragOverlay && isDragging;\n const dragSourceDisplacement = shouldDisplaceDragSource && displaceItem ? transform : null;\n const strategy = localStrategy != null ? localStrategy : globalStrategy;\n const finalTransform = displaceItem ? dragSourceDisplacement != null ? dragSourceDisplacement : strategy({\n rects: sortedRects,\n activeNodeRect,\n activeIndex,\n overIndex,\n index\n }) : null;\n const newIndex = isValidIndex(activeIndex) && isValidIndex(overIndex) ? getNewIndex({\n id,\n items,\n activeIndex,\n overIndex\n }) : index;\n const activeId = active == null ? void 0 : active.id;\n const previous = useRef({\n activeId,\n items,\n newIndex,\n containerId\n });\n const itemsHaveChanged = items !== previous.current.items;\n const shouldAnimateLayoutChanges = animateLayoutChanges({\n active,\n containerId,\n isDragging,\n isSorting,\n id,\n index,\n items,\n newIndex: previous.current.newIndex,\n previousItems: previous.current.items,\n previousContainerId: previous.current.containerId,\n transition,\n wasDragging: previous.current.activeId != null\n });\n const derivedTransform = useDerivedTransform({\n disabled: !shouldAnimateLayoutChanges,\n index,\n node,\n rect\n });\n useEffect(() => {\n if (isSorting && previous.current.newIndex !== newIndex) {\n previous.current.newIndex = newIndex;\n }\n\n if (containerId !== previous.current.containerId) {\n previous.current.containerId = containerId;\n }\n\n if (items !== previous.current.items) {\n previous.current.items = items;\n }\n }, [isSorting, newIndex, containerId, items]);\n useEffect(() => {\n if (activeId === previous.current.activeId) {\n return;\n }\n\n if (activeId != null && previous.current.activeId == null) {\n previous.current.activeId = activeId;\n return;\n }\n\n const timeoutId = setTimeout(() => {\n previous.current.activeId = activeId;\n }, 50);\n return () => clearTimeout(timeoutId);\n }, [activeId]);\n return {\n active,\n activeIndex,\n attributes,\n data,\n rect,\n index,\n newIndex,\n items,\n isOver,\n isSorting,\n isDragging,\n listeners,\n node,\n overIndex,\n over,\n setNodeRef,\n setActivatorNodeRef,\n setDroppableNodeRef,\n setDraggableNodeRef,\n transform: derivedTransform != null ? derivedTransform : finalTransform,\n transition: getTransition()\n };\n\n function getTransition() {\n if ( // Temporarily disable transitions for a single frame to set up derived transforms\n derivedTransform || // Or to prevent items jumping to back to their \"new\" position when items change\n itemsHaveChanged && previous.current.newIndex === index) {\n return disabledTransition;\n }\n\n if (shouldDisplaceDragSource && !isKeyboardEvent(activatorEvent) || !transition) {\n return undefined;\n }\n\n if (isSorting || shouldAnimateLayoutChanges) {\n return CSS.Transition.toString({ ...transition,\n property: transitionProperty\n });\n }\n\n return undefined;\n }\n}\n\nfunction normalizeLocalDisabled(localDisabled, globalDisabled) {\n var _localDisabled$dragga, _localDisabled$droppa;\n\n if (typeof localDisabled === 'boolean') {\n return {\n draggable: localDisabled,\n // Backwards compatibility\n droppable: false\n };\n }\n\n return {\n draggable: (_localDisabled$dragga = localDisabled == null ? void 0 : localDisabled.draggable) != null ? _localDisabled$dragga : globalDisabled.draggable,\n droppable: (_localDisabled$droppa = localDisabled == null ? void 0 : localDisabled.droppable) != null ? _localDisabled$droppa : globalDisabled.droppable\n };\n}\n\nfunction hasSortableData(entry) {\n if (!entry) {\n return false;\n }\n\n const data = entry.data.current;\n\n if (data && 'sortable' in data && typeof data.sortable === 'object' && 'containerId' in data.sortable && 'items' in data.sortable && 'index' in data.sortable) {\n return true;\n }\n\n return false;\n}\n\nconst directions = [KeyboardCode.Down, KeyboardCode.Right, KeyboardCode.Up, KeyboardCode.Left];\nconst sortableKeyboardCoordinates = (event, _ref) => {\n let {\n context: {\n active,\n collisionRect,\n droppableRects,\n droppableContainers,\n over,\n scrollableAncestors\n }\n } = _ref;\n\n if (directions.includes(event.code)) {\n event.preventDefault();\n\n if (!active || !collisionRect) {\n return;\n }\n\n const filteredContainers = [];\n droppableContainers.getEnabled().forEach(entry => {\n if (!entry || entry != null && entry.disabled) {\n return;\n }\n\n const rect = droppableRects.get(entry.id);\n\n if (!rect) {\n return;\n }\n\n switch (event.code) {\n case KeyboardCode.Down:\n if (collisionRect.top < rect.top) {\n filteredContainers.push(entry);\n }\n\n break;\n\n case KeyboardCode.Up:\n if (collisionRect.top > rect.top) {\n filteredContainers.push(entry);\n }\n\n break;\n\n case KeyboardCode.Left:\n if (collisionRect.left > rect.left) {\n filteredContainers.push(entry);\n }\n\n break;\n\n case KeyboardCode.Right:\n if (collisionRect.left < rect.left) {\n filteredContainers.push(entry);\n }\n\n break;\n }\n });\n const collisions = closestCorners({\n active,\n collisionRect: collisionRect,\n droppableRects,\n droppableContainers: filteredContainers,\n pointerCoordinates: null\n });\n let closestId = getFirstCollision(collisions, 'id');\n\n if (closestId === (over == null ? void 0 : over.id) && collisions.length > 1) {\n closestId = collisions[1].id;\n }\n\n if (closestId != null) {\n const activeDroppable = droppableContainers.get(active.id);\n const newDroppable = droppableContainers.get(closestId);\n const newRect = newDroppable ? droppableRects.get(newDroppable.id) : null;\n const newNode = newDroppable == null ? void 0 : newDroppable.node.current;\n\n if (newNode && newRect && activeDroppable && newDroppable) {\n const newScrollAncestors = getScrollableAncestors(newNode);\n const hasDifferentScrollAncestors = newScrollAncestors.some((element, index) => scrollableAncestors[index] !== element);\n const hasSameContainer = isSameContainer(activeDroppable, newDroppable);\n const isAfterActive = isAfter(activeDroppable, newDroppable);\n const offset = hasDifferentScrollAncestors || !hasSameContainer ? {\n x: 0,\n y: 0\n } : {\n x: isAfterActive ? collisionRect.width - newRect.width : 0,\n y: isAfterActive ? collisionRect.height - newRect.height : 0\n };\n const rectCoordinates = {\n x: newRect.left,\n y: newRect.top\n };\n const newCoordinates = offset.x && offset.y ? rectCoordinates : subtract(rectCoordinates, offset);\n return newCoordinates;\n }\n }\n }\n\n return undefined;\n};\n\nfunction isSameContainer(a, b) {\n if (!hasSortableData(a) || !hasSortableData(b)) {\n return false;\n }\n\n return a.data.current.sortable.containerId === b.data.current.sortable.containerId;\n}\n\nfunction isAfter(a, b) {\n if (!hasSortableData(a) || !hasSortableData(b)) {\n return false;\n }\n\n if (!isSameContainer(a, b)) {\n return false;\n }\n\n return a.data.current.sortable.index < b.data.current.sortable.index;\n}\n\nexport { SortableContext, arrayMove, arraySwap, defaultAnimateLayoutChanges, defaultNewIndexGetter, hasSortableData, horizontalListSortingStrategy, rectSortingStrategy, rectSwappingStrategy, sortableKeyboardCoordinates, useSortable, verticalListSortingStrategy };\n//# sourceMappingURL=sortable.esm.js.map\n","import React, {\n ComponentPropsWithRef,\n ComponentPropsWithoutRef,\n FC,\n forwardRef,\n useLayoutEffect,\n useState,\n} from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\n\nconst StyledOakBox = styled(OakBox)`\n background-color: ${parseColor(\"bg-neutral\")};\n background-color: color-mix(\n in lch,\n ${parseColor(\"bg-inverted\")} 5%,\n transparent\n );\n\n &[data-over=\"true\"] {\n background-color: ${parseColor(\"bg-primary\")};\n background-color: color-mix(\n in lch,\n ${parseColor(\"bg-primary\")} 60%,\n transparent\n );\n }\n`;\n\ntype InternalDroppableHoldingPenProps = {\n /**\n * Indicates whether a draggable is currently being dragged over the droppable\n */\n isOver?: boolean;\n};\n\n/**\n * An internal holding pen for multiple draggable items\n *\n * Has no intrinsic drop functionally.\n * It is intended to be used with `useDroppable` from `@dnd-kit/core`\n */\nexport const InternalDroppableHoldingPen: FC<\n ComponentPropsWithRef<typeof OakFlex>\n> = forwardRef<\n HTMLDivElement,\n InternalDroppableHoldingPenProps & ComponentPropsWithoutRef<typeof OakFlex>\n>(({ isOver, children, ...props }, ref) => {\n const [domContent, setContentBox] = useState<HTMLDivElement | null>(null);\n const [minHeight, setMinHeight] = useState<number>(0);\n\n useLayoutEffect(() => {\n if (!domContent) {\n return;\n }\n\n // Prevents the holding area from shrinking when an item is removed\n // avoiding layout shift\n const observer = new ResizeObserver((entries) => {\n for (const entry of entries) {\n setMinHeight((currentHeight) =>\n Math.max(entry.borderBoxSize[0]?.blockSize ?? 0, currentHeight),\n );\n }\n });\n\n observer.observe(domContent);\n\n // Reset min height when the window is resized so that the holding pen can shrink\n function resetMinHeight() {\n setMinHeight(0);\n }\n window.addEventListener(\"resize\", resetMinHeight);\n\n return () => {\n observer.disconnect();\n window.removeEventListener(\"resize\", resetMinHeight);\n };\n }, [domContent]);\n\n return (\n <StyledOakBox\n ref={ref}\n $mb=\"spacing-32\"\n $borderRadius=\"border-radius-l\"\n data-over={isOver}\n style={{ minHeight: minHeight === 0 ? \"auto\" : minHeight }}\n {...props}\n >\n <OakFlex\n $alignItems=\"flex-start\"\n $minHeight=\"spacing-80\"\n $pa=\"spacing-12\"\n $gap=\"spacing-12\"\n $flexWrap=\"wrap\"\n ref={setContentBox}\n >\n {children}\n </OakFlex>\n </StyledOakBox>\n );\n});\n","import React, { ComponentPropsWithoutRef } from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { OakKbd } from \"@/components/messaging-and-feedback/OakKbd\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\n\n/**\n * Adds additional leading between each line of text to make room for the\n * keyboard instructions wrapped in `<OakKbd>`\n *\n * This might be a useful atom to extract\n */\nconst StyledLeadingTrim = styled(OakBox)`\n margin-block: calc(-${parseSpacing(\"spacing-8\")} / 2);\n line-height: calc(1.5rem + ${parseSpacing(\"spacing-8\")});\n`;\n\n/**\n * Displays instructions for drag and drop functionality\n */\nexport const OakDragAndDropInstructions = (\n props: ComponentPropsWithoutRef<typeof OakFlex>,\n) => {\n return (\n <OakFlex $gap=\"spacing-8\" {...props}>\n <OakFlex $flexGrow={0}>\n <OakIcon iconName=\"move-arrows\" />\n </OakFlex>\n <StyledLeadingTrim $font=\"body-2\">\n Click and drag answers to change the order, or select using{\" \"}\n <OakKbd>\n <span aria-hidden=\"true\">↹</span> Tab\n </OakKbd>{\" \"}\n then move by pressing <OakKbd>Space</OakKbd> and the <OakKbd>↑</OakKbd>{\" \"}\n <OakKbd>↓</OakKbd> arrows on your keyboard.\n </StyledLeadingTrim>\n </OakFlex>\n );\n};\n","import React, {\n ComponentPropsWithRef,\n ComponentPropsWithoutRef,\n FC,\n forwardRef,\n} from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseBorder } from \"@/styles/helpers/parseBorder\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport { IconName } from \"@/image-map\";\nimport { OakUiRoleToken } from \"@/styles/theme/color\";\nimport { parseBorderWidth } from \"@/styles/helpers/parseBorderWidth\";\nimport { parseColorFilter } from \"@/styles/helpers/parseColorFilter\";\n\ntype OakDraggableProps = {\n /**\n * Whether the item is currently being dragged\n */\n isDragging?: boolean;\n /**\n * Present the element in a subdued state with hover effects disabled\n */\n isDisabled?: boolean;\n /**\n * Read only\n *\n * Disables hover effects\n */\n isReadOnly?: boolean;\n /**\n * Icon to display\n */\n iconName?: IconName;\n /**\n * Icon color when not being dragged or hovered\n */\n iconColor?: OakUiRoleToken;\n /**\n * The alt text for the icon\n */\n iconAlt?: string;\n /**\n * The background color of the draggable when not being dragged or hovered\n */\n background?: OakUiRoleToken;\n /**\n * The color of the draggable when not being dragged or hovered\n */\n color?: OakUiRoleToken;\n};\n\nconst StyledOakIcon = styled(OakIcon)``;\n\nconst StyledDraggable = styled(OakBox)<{ $iconColor: OakUiRoleToken }>`\n cursor: grab;\n outline: none;\n user-select: none;\n\n ${StyledOakIcon} {\n filter: ${(props) => parseColorFilter(props.$iconColor)};\n }\n\n @media (hover: hover) {\n &:hover:not([data-dragging=\"true\"]):not([data-disabled=\"true\"]):not(\n [data-readonly=\"true\"]\n ) {\n background-color: ${parseColor(\"bg-decorative1-subdued\")};\n color: ${parseColor(\"text-primary\")};\n box-shadow: ${parseDropShadow(\"drop-shadow-standard\")};\n border-bottom: ${parseBorder(\"border-solid-xl\")}\n ${parseColor(\"border-primary\")};\n padding-bottom: ${parseSpacing(\"spacing-16\")};\n text-decoration: underline;\n\n ${StyledOakIcon} {\n filter: ${parseColorFilter(\"icon-primary\")};\n }\n }\n }\n\n &:focus-visible:not([data-dragging=\"true\"]):not([data-disabled=\"true\"]) {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n\n &[data-dragging=\"true\"] {\n cursor: move;\n background-color: ${parseColor(\"bg-decorative1-main\")};\n color: ${parseColor(\"text-primary\")};\n outline: ${parseBorder(\"border-solid-xl\")} ${parseColor(\"border-primary\")};\n outline-offset: -${parseBorderWidth(\"border-solid-xl\")};\n box-shadow:\n ${parseDropShadow(\"drop-shadow-lemon\")},\n ${parseDropShadow(\"drop-shadow-grey\")};\n text-decoration: underline;\n\n ${StyledOakIcon} {\n filter: ${parseColorFilter(\"icon-primary\")};\n }\n }\n\n &[data-disabled=\"true\"] {\n cursor: default;\n background-color: ${parseColor(\"bg-neutral\")};\n color: ${parseColor(\"text-disabled\")};\n\n ${StyledOakIcon} {\n filter: ${parseColorFilter(\"icon-disabled\")};\n }\n }\n\n &[data-readonly=\"true\"] {\n cursor: default;\n }\n`;\n\nconst StyledFlex = styled(OakFlex)`\n margin-block: -${parseSpacing(\"spacing-8\")};\n`;\n\n/**\n * The component has no intrinsic draggable functionality.\n * It is intended to be used with `useDraggable` from `@dnd-kit/core`\n */\nexport const OakDraggable: FC<\n ComponentPropsWithRef<OakDraggableProps & typeof OakBox>\n> = forwardRef<\n HTMLDivElement,\n OakDraggableProps & ComponentPropsWithoutRef<typeof OakBox>\n>(\n (\n {\n children,\n iconName = \"move-arrows\",\n iconColor = \"icon-primary\",\n iconAlt = \"\",\n color = \"text-primary\",\n background = \"bg-primary\",\n isDragging,\n isDisabled,\n isReadOnly,\n ...props\n },\n ref,\n ) => {\n return (\n <StyledDraggable\n ref={ref}\n $pv=\"spacing-20\"\n $pl=\"spacing-12\"\n $pr=\"spacing-16\"\n $background={background}\n $color={color}\n $borderRadius=\"border-radius-m2\"\n $minHeight=\"spacing-56\"\n data-dragging={isDragging}\n data-disabled={isDisabled}\n data-readonly={isReadOnly}\n $iconColor={iconColor}\n {...props}\n >\n <StyledFlex $gap=\"spacing-16\" $alignItems=\"center\">\n <StyledOakIcon\n iconName={iconName}\n $width=\"spacing-32\"\n $height=\"spacing-32\"\n alt={iconAlt}\n />\n <OakFlex $font=\"body-1-bold\">{children}</OakFlex>\n </StyledFlex>\n </StyledDraggable>\n );\n },\n);\n","import React, {\n ComponentPropsWithRef,\n ComponentPropsWithoutRef,\n FC,\n ReactNode,\n forwardRef,\n} from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { parseBorder } from \"@/styles/helpers/parseBorder\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\n\nexport type OakDroppableProps = {\n /**\n * Indicates whether a draggable is currently being dragged over the droppable\n */\n isOver?: boolean;\n /**\n * Present the element in a state making it clear that it can be dropped into\n */\n isDisabled?: boolean;\n /**\n * Give the droppable a highlight to draw attention to it\n */\n isHighlighted?: boolean;\n /**\n * A slot for a label to be displayed to the RHS of the droppable\n *\n * useful for giving the user a hint about what to drop\n */\n labelSlot?: ReactNode;\n /**\n * A slot for the draggable that is currently occupying the droppable\n */\n children?: ReactNode;\n};\n\nconst StyledFlex = styled(OakFlex)`\n outline: ${parseBorder(\"border-solid-l\")} ${parseColor(\"border-primary\")};\n outline-style: dashed;\n\n &[data-disabled=\"true\"] {\n outline-color: ${parseColor(\"border-neutral\")};\n }\n`;\n\n/**\n * A drop zone for a draggable\n *\n * Has no intrinsic drop functionality.\n * It is intended to be used with `useDraggable` from `@dnd-kit/core`\n */\nexport const OakDroppable: FC<\n OakDroppableProps & ComponentPropsWithRef<typeof OakFlex>\n> = forwardRef<\n HTMLDivElement,\n OakDroppableProps & ComponentPropsWithoutRef<typeof OakFlex>\n>(\n (\n { children, labelSlot, isOver, isHighlighted, isDisabled, ...props },\n ref,\n ) => {\n const slotBackground = (() => {\n switch (true) {\n case isOver:\n return \"bg-primary\";\n case isDisabled:\n return \"bg-decorative2-subdued\";\n default:\n return \"bg-neutral\";\n }\n })();\n const background = (() => {\n switch (true) {\n case isOver:\n return \"bg-decorative2-main\";\n case isHighlighted:\n return \"bg-decorative5-main\";\n default:\n return \"bg-decorative2-subdued\";\n }\n })();\n\n return (\n <OakFlex\n ref={ref}\n $background={background}\n $pa=\"spacing-16\"\n $borderRadius=\"border-radius-l\"\n $gap=\"spacing-16\"\n $flexDirection={[\"column\", \"row\", \"row\"]}\n {...props}\n >\n <StyledFlex\n $background={slotBackground}\n $pa=\"spacing-4\"\n $borderRadius=\"border-radius-m2\"\n $minHeight=\"spacing-64\"\n $flexBasis=\"100%\"\n data-disabled={isDisabled}\n >\n <OakBox $width=\"100%\">{children}</OakBox>\n </StyledFlex>\n {labelSlot && (\n <OakFlex\n $background={isOver ? \"bg-primary\" : \"bg-decorative2-very-subdued\"}\n $borderRadius=\"border-radius-m2\"\n $alignItems=\"center\"\n $font=\"body-1\"\n $ph=\"spacing-20\"\n $minHeight=\"spacing-56\"\n $pv=\"spacing-4\"\n $flexBasis=\"100%\"\n $width=\"100%\"\n $alignSelf=\"center\"\n data-testid=\"label\"\n >\n {labelSlot}\n </OakFlex>\n )}\n </OakFlex>\n );\n },\n);\n","import { useEffect, useState } from \"react\";\n\n/**\n * Returns true if the user has requested that the system minimize the amount of non-essential motion it uses.\n */\nexport function usePrefersReducedMotion() {\n const [prefersReducedMotion, setPrefersReducedMotion] = useState(false);\n\n useEffect(() => {\n const mediaQuery = window.matchMedia(\"(prefers-reduced-motion: reduce)\");\n\n setPrefersReducedMotion(mediaQuery.matches);\n }, []);\n\n return prefersReducedMotion;\n}\n","import { DndContext, DndContextProps } from \"@dnd-kit/core\";\nimport React, { FC, createContext, useContext, useEffect } from \"react\";\n\n/**\n * Facilitates DI for the DndContext\n */\nexport const injectDndContext = createContext<FC<DndContextProps>>(DndContext);\n\n/**\n * Wraps dnd-kit's `DndContext` to normalise scroll behaviour and enable dependency injection\n */\nexport const InternalDndContext = (props: DndContextProps) => {\n const DndContext = useContext(injectDndContext);\n\n /**\n * Disable smooth scrolling during drag to ensure that the dragged item is always visible\n */\n useEffect(() => {\n const originalScrollingBehaviour =\n document.documentElement.style.scrollBehavior;\n document.documentElement.style.scrollBehavior = \"auto\";\n\n return () => {\n document.documentElement.style.scrollBehavior =\n originalScrollingBehaviour;\n };\n });\n\n return <DndContext {...props} />;\n};\n","import { useEffect, useRef } from \"react\";\nimport { createPortal } from \"react-dom\";\n\ntype InternalClientPortalInterface = {\n children: React.ReactNode;\n show?: boolean;\n};\n\nexport const InternalClientPortal = ({\n children,\n show,\n}: InternalClientPortalInterface) => {\n const ref = useRef<Element | null>(null);\n\n useEffect(() => {\n ref.current = document.body;\n }, []);\n return show && ref.current ? createPortal(children, ref.current) : null;\n};\n","import React, { ReactNode, useEffect, useState } from \"react\";\nimport {\n closestCenter,\n KeyboardSensor,\n useSensor,\n useSensors,\n DragEndEvent,\n DragOverlay,\n DragStartEvent,\n Announcements,\n MouseSensor,\n TouchSensor,\n useDraggable,\n useDroppable,\n} from \"@dnd-kit/core\";\nimport { sortableKeyboardCoordinates } from \"@dnd-kit/sortable\";\n\nimport { InternalDroppableHoldingPen } from \"@/components/owa/pupil/quiz/InternalDroppableHoldingPen\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakDragAndDropInstructions } from \"@/components/owa/OakDragAndDropInstructions\";\nimport { OakDraggable } from \"@/components/owa/OakDraggable\";\nimport { OakDroppable } from \"@/components/owa/OakDroppable\";\nimport { usePrefersReducedMotion } from \"@/animation/usePrefersReducedMotion\";\nimport { InternalDndContext } from \"@/components/internal-components/InternalDndContext/InternalDndContext\";\nimport { InternalClientPortal } from \"@/components/internal-components/InternalClientPortal\";\n\nexport const OakQuizMatchItemId = (id: string) => {\n return `oak-quiz-match-item-${id}`;\n};\n\ntype DraggableItem = {\n id: string;\n label: ReactNode;\n announcement: string;\n};\ntype DroppableItem = {\n id: string;\n label: ReactNode;\n announcement: string;\n};\ntype Matches = Record<DraggableItem[\"id\"], DraggableItem>;\n\nexport type OakQuizMatchProps = {\n /**\n * The initial options\n *\n * these are the items that can be dragged into a slot to form a match\n *\n * this cannot be updated on subsequent renders\n */\n initialOptions: DraggableItem[];\n /**\n * The initial slots\n *\n * these are the slots into which an option can be dropped to form a match\n *\n * this cannot be updated on subsequent renders\n */\n initialSlots: DroppableItem[];\n /**\n * Notify the consumer when matches have changed\n */\n onChange?: (matches: Matches) => void;\n /**\n * Highlight the droppable slots\n */\n isHighlighted?: boolean;\n};\n\nconst ConnectedDraggable = ({\n id,\n label,\n announcement,\n isOver,\n}: DraggableItem & { isOver?: boolean }) => {\n const { attributes, listeners, setNodeRef, isDragging } = useDraggable({\n id,\n data: { id, label, announcement },\n });\n\n return (\n <OakDraggable\n ref={setNodeRef}\n isDisabled={isOver}\n color=\"text-inverted\"\n background=\"bg-btn-primary\"\n iconColor=\"icon-inverted\"\n {...attributes}\n {...listeners}\n role=\"option\"\n aria-describedby={undefined}\n aria-roledescription=\"draggable item\"\n aria-pressed={undefined}\n aria-selected={!!attributes[\"aria-pressed\"]}\n style={{ opacity: isDragging ? 0 : 1 }}\n id={OakQuizMatchItemId(id)}\n >\n {label}\n </OakDraggable>\n );\n};\n\nconst ConnectedDroppableHoldingPen = ({\n children,\n}: {\n children?: ReactNode;\n}) => {\n const { setNodeRef, isOver } = useDroppable({\n id: \"holding-pen\",\n data: { label: \"holding pen\", announcement: \"holding pen\" },\n });\n\n return (\n <InternalDroppableHoldingPen\n ref={setNodeRef}\n isOver={isOver}\n aria-label=\"Available items\"\n data-testid=\"holding-pen\"\n role=\"listbox\"\n >\n {children}\n </InternalDroppableHoldingPen>\n );\n};\n\nconst ConnectedDroppable = ({\n id,\n label,\n announcement,\n match,\n isHighlighted,\n}: DroppableItem & { match?: DraggableItem; isHighlighted?: boolean }) => {\n const { setNodeRef, isOver, active } = useDroppable({\n id,\n data: { id, label, announcement },\n });\n\n return (\n <OakDroppable\n isOver={isOver}\n isDisabled={!active}\n ref={setNodeRef}\n id={`droppable-${id}`}\n labelSlot={label}\n data-testid=\"slot\"\n isHighlighted={isHighlighted}\n >\n {match && <ConnectedDraggable {...match} isOver={isOver} />}\n </OakDroppable>\n );\n};\n\n/**\n * A list of draggable items with matching slots to drop them into.\n *\n * Keyboard navigation is supported with the `tab`, `space` and `arrow` keys\n */\nexport const OakQuizMatch = ({\n initialOptions,\n initialSlots,\n isHighlighted,\n onChange,\n}: OakQuizMatchProps) => {\n const [matches, setMatches] = useState<Matches>({});\n const [shuffledDraggables, setShuffledDraggables] =\n useState<DraggableItem[]>(initialOptions);\n const [activeId, setActiveId] = useState<DraggableItem[\"id\"] | null>(null);\n const activeDraggable = initialOptions.find((item) => item.id === activeId);\n const prefersReducedMotion = usePrefersReducedMotion();\n const sensors = useSensors(\n useSensor(MouseSensor),\n useSensor(TouchSensor),\n useSensor(KeyboardSensor, {\n coordinateGetter: sortableKeyboardCoordinates,\n scrollBehavior: prefersReducedMotion ? \"instant\" : \"smooth\",\n }),\n );\n\n useEffect(() => {\n const matchedDraggableIds = Object.values(matches).map((item) => item.id);\n\n const unmatchedDraggables = initialOptions.filter(\n (draggable) => !matchedDraggableIds.includes(draggable.id),\n );\n setShuffledDraggables(unmatchedDraggables.sort(() => Math.random() - 0.5));\n }, [initialOptions, matches]);\n\n return (\n <>\n <OakDragAndDropInstructions $mb=\"spacing-32\" />\n <InternalDndContext\n sensors={sensors}\n collisionDetection={closestCenter}\n onDragEnd={handleDragEnd}\n onDragStart={handleDragStart}\n accessibility={{ announcements }}\n >\n <ConnectedDroppableHoldingPen>\n {shuffledDraggables.map((item) => (\n <ConnectedDraggable key={item.id} {...item} />\n ))}\n </ConnectedDroppableHoldingPen>\n <OakFlex\n $gap=\"spacing-16\"\n $flexDirection=\"column\"\n aria-label=\"Matched items\"\n role=\"listbox\"\n >\n {initialSlots.map((droppable) => (\n <ConnectedDroppable\n key={droppable.id}\n {...droppable}\n isHighlighted={isHighlighted}\n match={matches[droppable.id]}\n />\n ))}\n </OakFlex>\n <InternalClientPortal show={true}>\n <DragOverlay dropAnimation={prefersReducedMotion ? null : undefined}>\n {activeDraggable && (\n <OakDraggable isDragging>{activeDraggable.label}</OakDraggable>\n )}\n </DragOverlay>\n </InternalClientPortal>\n </InternalDndContext>\n </>\n );\n\n function handleDragStart(event: DragStartEvent) {\n const { active } = event;\n setActiveId(active.id.toString());\n }\n\n function handleDragEnd(event: DragEndEvent) {\n const { active, over } = event;\n\n if (over) {\n setMatches((matches) => {\n // Remove the draggable from its current slot\n const entries = Object.entries(matches).filter(\n ([, draggable]) => draggable?.id !== active.id,\n );\n const newMatches = Object.fromEntries(entries);\n\n if (over.id !== \"holding-pen\") {\n // We've dropped the draggable into a slot so add it to the new slot\n newMatches[over.id] = active.data.current as DraggableItem;\n }\n\n onChange?.(newMatches);\n\n return newMatches;\n });\n }\n\n setActiveId(null);\n }\n};\n\nexport const announcements: Announcements = {\n onDragStart() {\n return undefined;\n },\n onDragOver({ active, over }) {\n if (over?.data.current && active.data?.current) {\n return `Item ${active.data.current.announcement} is over ${over.data.current.announcement}`;\n }\n },\n onDragEnd({ active, over }) {\n if (over?.data.current && active.data?.current) {\n return `Item ${active.data.current.announcement} was dropped onto ${over.data.current.announcement}`;\n }\n },\n onDragCancel({ active }) {\n if (active.data?.current) {\n return `Dragging was cancelled. Item ${active.data.current.announcement} was dropped.`;\n }\n },\n};\n","import React, { ButtonHTMLAttributes, MouseEventHandler } from \"react\";\nimport styled from \"styled-components\";\n\nimport {\n InternalShadowRoundButton,\n InternalShadowRoundButtonProps,\n} from \"@/components/internal-components/InternalShadowRoundButton\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\n\nexport type OakInfoButtonProps = {\n onClick: MouseEventHandler;\n isOpen: boolean;\n isLoading?: boolean;\n disabled?: boolean;\n buttonProps?: Partial<\n InternalShadowRoundButtonProps & ButtonHTMLAttributes<HTMLButtonElement>\n >;\n};\n\nconst StyledInternalShadowRoundButton = styled(\n InternalShadowRoundButton<\"button\">,\n)`\n &:hover .shadow {\n box-shadow: none !important;\n }\n &:active .shadow {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-lemon\")},\n ${parseDropShadow(\"drop-shadow-grey\")} !important;\n }\n`;\n\n/**\n * Presents an info icon button with an open and closed state\n *\n * onClick: MouseEventHandler\n *\n */\nexport const OakInfoButton = (props: OakInfoButtonProps) => {\n const { isLoading, disabled, onClick, isOpen, buttonProps } = props;\n\n return (\n <StyledInternalShadowRoundButton\n element={\"button\"}\n iconName={isOpen && !disabled ? \"cross\" : \"info\"}\n defaultIconBackground={isOpen ? \"icon-primary\" : \"bg-decorative5-main\"}\n defaultIconColor={isOpen ? \"icon-inverted\" : \"icon-primary\"}\n hoverIconBackground={isOpen ? \"icon-primary\" : \"bg-decorative5-main\"}\n defaultTextColor={\"text-primary\"}\n hoverTextColor={\"text-primary\"}\n disabledIconBackground={\"bg-btn-primary-disabled\"}\n disabledTextColor={\"text-disabled\"}\n disabledIconColor={\"icon-inverted\"}\n isLoading={isLoading}\n disabled={disabled}\n iconBackgroundSize={\"spacing-40\"}\n iconSize={\"spacing-32\"}\n onClick={onClick}\n data-rac\n {...buttonProps}\n />\n );\n};\n","import React, {\n ButtonHTMLAttributes,\n MouseEventHandler,\n ReactNode,\n useState,\n} from \"react\";\n\nimport {\n OakTooltip,\n OakTooltipProps,\n} from \"@/components/messaging-and-feedback/OakTooltip\";\nimport { OakScreenReader } from \"@/components/messaging-and-feedback/OakScreenReader\";\nimport { OakInfoButton } from \"@/components/owa/OakInfoButton\";\nimport { InternalShadowRoundButtonProps } from \"@/components/internal-components/InternalShadowRoundButton\";\n\nexport type OakInfoProps = {\n /**\n * Some content to give as a hint to answer a question\n */\n hint: ReactNode;\n id: string;\n isLoading?: boolean;\n disabled?: boolean;\n buttonProps?: Partial<\n InternalShadowRoundButtonProps & ButtonHTMLAttributes<HTMLButtonElement>\n >;\n} & Omit<OakTooltipProps, \"children\" | \"tooltip\" | \"id\">;\n\n/**\n * Presents a button which will show a hint when clicked\n */\nexport const OakInfo = (props: OakInfoProps) => {\n const { hint, id, isLoading, disabled, buttonProps, ...tooltipProps } = props;\n const [isOpen, setIsOpen] = useState(false);\n const handleClick: MouseEventHandler = () => {\n setIsOpen(!isOpen);\n };\n\n return (\n <>\n <OakTooltip tooltip={hint} isOpen={isOpen} {...tooltipProps}>\n <OakInfoButton\n onClick={handleClick}\n isOpen={isOpen}\n isLoading={isLoading}\n disabled={disabled}\n buttonProps={{\n \"aria-expanded\": isOpen,\n \"aria-describedby\": isOpen ? id : undefined,\n \"aria-label\": isOpen ? \"close info tooltip\" : \"open info tooltip\",\n ...buttonProps,\n }}\n />\n </OakTooltip>\n {isOpen && (\n <OakScreenReader as=\"div\" id={id} data-testid={`${id}-description`}>\n {hint}\n </OakScreenReader>\n )}\n </>\n );\n};\n","import React, { ReactElement } from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { OakBoxProps } from \"@/components/layout-and-structure/OakBox\";\nimport { OakP } from \"@/components/typography/OakP\";\nimport { OakUL } from \"@/components/typography/OakUL\";\nimport { OakLI } from \"@/components/typography/OakLI\";\nimport { OakUiRoleToken } from \"@/styles\";\nimport { TypographyStyleProps } from \"@/styles/utils/typographyStyle\";\nimport { OakInfo } from \"@/components/owa/OakInfo/OakInfo\";\n\nconst StyledCodeContainer = styled(OakSpan)`\n font-family: \"Roboto Mono\", --font-roboto-mono, monospace;\n`;\n\nexport type OakCodeRendererProps = {\n string: string;\n} & TypographyStyleProps &\n OakBoxProps;\n\nexport const OakCodeRenderer = ({ string, ...rest }: OakCodeRendererProps) => {\n const findAndStyleInlineCode = (text: string) => {\n const parts = text.split(/(`.*?`)/); // Matches text enclosed in backticks\n if (parts.length === 1 && !text.startsWith(\"`\")) {\n return text;\n }\n return (\n <OakSpan>\n {parts.map((part, index) => {\n if (part.startsWith(\"`\") && part.endsWith(\"`\")) {\n // Remove backticks and style the content\n return (\n <StyledCodeContainer\n key={index}\n $background={\"bg-inverted\"}\n $color={\"text-inverted\"}\n $pv={[\"spacing-0\", \"spacing-4\"]}\n $ph={[\"spacing-8\", \"spacing-8\"]}\n $borderRadius={\"border-radius-m2\"}\n $display={\"inline-block\"}\n $font={[\"code-2\", \"code-1\"]}\n {...rest}\n >\n {part.slice(1, -1)}\n </StyledCodeContainer>\n );\n }\n return part; // Return the unstyled part\n })}\n </OakSpan>\n );\n };\n\n const syntaxHighlight = (code: string) => {\n // Define regex patterns for different code parts\n const patterns: { regex: RegExp; color: OakUiRoleToken }[] = [\n { regex: /\"(.*?)\"|'(.*?)'/g, color: \"code-green\" }, // Strings\n {\n regex:\n /\\b(and|as|assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|raise|return|try|while|with|yield)\\b/g,\n color: \"code-pink\",\n }, // Keywords\n {\n regex: /\\b(False|None|True)\\b/g,\n color: \"code-blue\",\n }, // Keywords\n\n { regex: /\\b\\d+\\b/g, color: \"code-blue\" }, // Numbers\n // { regex: /(#.*?$)/gm, color: \"code-grey\" }, // Comments\n // { regex: /(=|==|!=|<=|>=|\\+|-|\\*|\\/|:)/g, color: \"red\" }, // Operators\n ];\n\n // Apply syntax highlighting by replacing matches with styled spans\n const parts: (string | ReactElement)[] = [code];\n let isCheckingMatches = true;\n while (isCheckingMatches) {\n let matchFound = false;\n parts.forEach((part, index) => {\n for (const { regex, color } of patterns) {\n if (typeof part === \"string\") {\n const match = regex.exec(part);\n if (match) {\n matchFound = true;\n const [matchedText] = match;\n parts.splice(index, 1);\n parts.splice(index, 0, part.slice(0, match.index));\n parts.splice(\n index + 1,\n 0,\n <OakSpan key={`${part}-${index}`} $color={color}>\n {matchedText}\n </OakSpan>,\n );\n parts.splice(\n index + 2,\n 0,\n part.slice(match.index + matchedText.length),\n );\n break;\n }\n }\n }\n });\n if (!matchFound) {\n isCheckingMatches = false;\n return parts;\n }\n }\n };\n\n const StyleCodeBlock = (text: string, index: number) => {\n const matches = text.match(/```([\\s\\S]*?)```/);\n if (!matches) return text;\n\n // Extract the content inside the backticks\n const codeContent = matches[1];\n if (!codeContent) return text;\n // Apply syntax highlighting\n\n const codeWithSyntaxHighlighting = syntaxHighlight(codeContent);\n\n return (\n <StyledCodeContainer\n key={`${text}-${index}`}\n $background={\"bg-inverted\"}\n $color={\"code-grey\"}\n $pv={\"spacing-8\"}\n $ph={\"spacing-12\"}\n $borderRadius={\"border-radius-m2\"}\n $whiteSpace={\"pre-wrap\"}\n $mt={\"spacing-56\"}\n $font={\"code-2\"}\n {...rest}\n >\n <OakFlex $flexDirection={\"row\"}>\n <OakFlex\n $flexDirection={\"column\"}\n $br={\"border-solid-s\"}\n $borderColor={\"border-neutral\"}\n $pr={\"spacing-12\"}\n >\n {codeContent.split(\"\\n\").map((line, index) => (\n <OakSpan key={`${line}-${index}`}>{index + 1}</OakSpan>\n ))}\n </OakFlex>\n <OakSpan $pl={\"spacing-12\"}>{codeWithSyntaxHighlighting}</OakSpan>\n </OakFlex>\n </StyledCodeContainer>\n );\n };\n const extractAndMap = (text: string) => {\n const parts = text.split(/(```[\\s\\S]*?```)/);\n if (parts.length === 1 && !text.startsWith(\"```\")) {\n return findAndStyleInlineCode(text);\n }\n return (\n <OakFlex $flexDirection={\"column\"}>\n {parts.map((part, index) => {\n if (part.startsWith(\"```\") && part.endsWith(\"```\")) {\n return StyleCodeBlock(part, index);\n }\n return (\n <OakSpan key={`${part}-${index}`}>\n {findAndStyleInlineCode(part)}\n </OakSpan>\n );\n })}\n <OakFlex\n $alignSelf=\"flex-end\"\n $width={\"fit-content\"}\n $alignItems={\"center\"}\n $gap={\"spacing-12\"}\n $mt={\"spacing-16\"}\n >\n <OakSpan $font={\"heading-light-7\"}>Code colour</OakSpan>\n <OakInfo\n hint={\n <OakFlex $flexDirection=\"column\">\n <OakP>\n When programmers write code, they use a special tool called an\n IDE (Integrated Development Environment). In an IDE, different\n colours are used to help programmers understand the code:\n </OakP>\n <br />\n <OakUL $reset $pl={\"spacing-8\"}>\n <OakLI>\n <OakSpan $font={\"heading-7\"}>• Blue</OakSpan>\n <OakSpan $font={\"heading-light-7\"}>\n &nbsp;- numbers and boolean values\n </OakSpan>\n </OakLI>\n <OakLI>\n <OakSpan $font={\"heading-7\"}>• Green</OakSpan>\n <OakSpan $font={\"heading-light-7\"}>&nbsp;- strings</OakSpan>\n </OakLI>\n <OakLI>\n <OakSpan $font={\"heading-7\"}>• Purple</OakSpan>\n <OakSpan $font={\"heading-light-7\"}>\n &nbsp;- keywords\n </OakSpan>\n </OakLI>\n </OakUL>\n </OakFlex>\n }\n id=\"oak-code-renderer-tooltip\"\n tooltipPosition=\"bottom-right\"\n buttonProps={{\n type: \"button\",\n }}\n />\n </OakFlex>\n </OakFlex>\n );\n };\n\n return extractAndMap(string);\n};\n","import React, { useState } from \"react\";\nimport {\n closestCenter,\n KeyboardSensor,\n useSensor,\n useSensors,\n DragEndEvent,\n UniqueIdentifier,\n Announcements,\n MouseSensor,\n TouchSensor,\n} from \"@dnd-kit/core\";\nimport {\n arrayMove,\n SortableContext,\n sortableKeyboardCoordinates,\n useSortable,\n verticalListSortingStrategy,\n} from \"@dnd-kit/sortable\";\nimport { CSS } from \"@dnd-kit/utilities\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakDragAndDropInstructions } from \"@/components/owa/OakDragAndDropInstructions\";\nimport { OakDraggable } from \"@/components/owa/OakDraggable\";\nimport { OakDroppable } from \"@/components/owa/OakDroppable\";\nimport { InternalDndContext } from \"@/components/internal-components/InternalDndContext/InternalDndContext\";\nimport { usePrefersReducedMotion } from \"@/animation/usePrefersReducedMotion\";\nimport { OakCodeRenderer } from \"@/components/owa/OakCodeRenderer\";\n\ntype OakQuizOrderItem = {\n id: string;\n label: string;\n};\n\nexport const OakQuizOrderitemId = (id: string) => {\n return `oak-quiz-order-item-${id}`;\n};\n\nexport type OakQuizOrderProps = {\n /**\n * The initial order of items\n *\n * this cannot be updated on subsequent renders\n */\n initialItems: OakQuizOrderItem[];\n /**\n * Notified the consumer when the order of items has changed\n */\n onChange?: (items: OakQuizOrderItem[]) => void;\n /**\n * Highlight all items to indicate that they can be interacted with\n */\n isHighlighted?: boolean;\n announcements?: OakQuizOrderItem[];\n};\n\nconst ConnectedDraggable = ({\n id,\n label,\n isHighlighted,\n}: OakQuizOrderItem & { isHighlighted?: boolean }) => {\n const {\n attributes,\n listeners,\n setNodeRef,\n transform,\n transition,\n isOver,\n isDragging,\n } = useSortable({ id });\n const style = {\n transform: CSS.Transform.toString(transform),\n transition,\n };\n\n return (\n <OakDroppable isOver={isOver} isHighlighted={isHighlighted}>\n <OakDraggable\n ref={setNodeRef}\n style={style}\n {...attributes}\n {...listeners}\n aria-describedby={undefined}\n aria-roledescription=\"sortable item\"\n aria-pressed={undefined}\n aria-selected={!!attributes[\"aria-pressed\"]}\n role=\"option\"\n id={OakQuizOrderitemId(id)}\n isDragging={isDragging}\n >\n <OakCodeRenderer string={label} />\n </OakDraggable>\n </OakDroppable>\n );\n};\n\n/**\n * A sortable list of items with drag and drop functionality. Items can be dragged over named slots to re-arrange them\n *\n * Keyboard navigation is supported with the `tab`, `space` and `arrow` keys\n */\nexport const OakQuizOrder = ({\n initialItems,\n announcements,\n onChange,\n isHighlighted,\n}: OakQuizOrderProps) => {\n const [items, setItems] = useState<OakQuizOrderItem[]>(initialItems);\n const sensors = useSensors(\n useSensor(MouseSensor),\n useSensor(TouchSensor),\n useSensor(KeyboardSensor, {\n coordinateGetter: sortableKeyboardCoordinates,\n scrollBehavior: usePrefersReducedMotion() ? \"instant\" : \"smooth\",\n }),\n );\n\n return (\n <>\n <OakDragAndDropInstructions $mb=\"spacing-32\" />\n <InternalDndContext\n sensors={sensors}\n collisionDetection={closestCenter}\n onDragEnd={handleDragEnd}\n accessibility={{\n announcements: createAccouncements(announcements || items),\n }}\n >\n <SortableContext items={items} strategy={verticalListSortingStrategy}>\n <OakFlex\n $gap=\"spacing-16\"\n $flexDirection=\"column\"\n role=\"listbox\"\n aria-label=\"Sortable items\"\n >\n {items.map((item) => (\n <ConnectedDraggable\n key={item.id}\n {...item}\n isHighlighted={isHighlighted}\n />\n ))}\n </OakFlex>\n </SortableContext>\n </InternalDndContext>\n </>\n );\n\n function handleDragEnd(event: DragEndEvent) {\n const { active, over } = event;\n\n if (active.id !== over?.id) {\n setItems((items) => {\n const oldIndex = items.findIndex((item) => item.id === active.id);\n const newIndex = items.findIndex((item) => item.id === over?.id);\n const newItems = arrayMove(items, oldIndex, newIndex);\n\n onChange?.(newItems);\n\n return newItems;\n });\n }\n }\n};\n\nfunction createAccouncements(items: OakQuizOrderItem[]): Announcements {\n const getPosition = (id: UniqueIdentifier) =>\n items.findIndex((item) => item.id === id) + 1;\n const getItemLabel = (id: UniqueIdentifier) =>\n items.find((item) => item.id === id)?.label;\n\n return {\n onDragStart() {\n return undefined;\n },\n onDragOver({ active, over }) {\n if (over) {\n return `Sortable item ${getItemLabel(\n active.id,\n )} is in position ${getPosition(over.id)} of ${items.length}`;\n }\n },\n onDragEnd({ active, over }) {\n if (over) {\n return `Sortable item ${getItemLabel(\n active.id,\n )} was dropped into position ${getPosition(over.id)} of ${\n items.length\n }`;\n }\n },\n onDragCancel({ active }) {\n return `Dragging was cancelled. Sortable item ${getItemLabel(\n active.id,\n )} was dropped.`;\n },\n };\n}\n","import React from \"react\";\n\nimport {\n OakBulletList,\n OakBulletListProps,\n} from \"@/components/owa/OakBulletList\";\nimport { OakHandDrawnCardWithIcon } from \"@/components/owa/OakHandDrawnCardWithIcon\";\nimport { OakJauntyAngleLabel } from \"@/components/form-elements/OakJauntyAngleLabel\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { OakIconProps } from \"@/components/images-and-icons/OakIcon\";\nimport { FlexStyleProps } from \"@/styles/utils/flexStyle\";\n\nexport type OakQuizPrintableHeaderProps = {\n title: string;\n iconName: OakIconProps[\"iconName\"];\n alt?: OakIconProps[\"alt\"];\n breadcrumbs: OakBulletListProps[\"listItems\"];\n optionalityTitle?: string;\n worksheetDownloaded: boolean;\n workSheetAvailable: boolean;\n videoPercentage: number;\n} & FlexStyleProps;\n\n/**\n * This component is the header for the printable view;\n *\n *\n *\n */\nexport const OakQuizPrintableHeader = ({\n title,\n iconName,\n alt,\n breadcrumbs,\n worksheetDownloaded,\n workSheetAvailable,\n videoPercentage,\n}: OakQuizPrintableHeaderProps) => {\n return (\n <OakFlex\n $flexDirection={[\"column\", \"row\"]}\n $gap={\"spacing-16\"}\n $justifyContent={\"space-between\"}\n >\n <OakFlex $flexDirection={\"row\"} $gap={\"spacing-16\"}>\n <OakHandDrawnCardWithIcon\n iconName={iconName}\n fill={\"bg-primary\"}\n $flexGrow={0}\n iconHeight={\"spacing-56\"}\n iconWidth={\"spacing-56\"}\n $width={\"spacing-56\"}\n $height={\"spacing-56\"}\n alt={alt}\n />\n <OakFlex $flexDirection={\"column\"} $gap={\"spacing-12\"}>\n <OakHeading tag=\"h1\" $font={\"heading-7\"}>\n {title}\n </OakHeading>\n <OakBulletList listItems={breadcrumbs} />\n </OakFlex>\n </OakFlex>\n <OakFlex\n $flexDirection={\"column\"}\n $gap={\"spacing-12\"}\n $alignItems={\"flex-start\"}\n >\n <OakJauntyAngleLabel\n label={`Lesson video completion - ${videoPercentage}%`}\n $background={\"bg-neutral\"}\n $font={\"heading-light-7\"}\n />\n <OakJauntyAngleLabel\n label={\n workSheetAvailable\n ? `Worksheet downloaded - ${worksheetDownloaded ? \"Yes\" : \"No\"}`\n : \"No worksheet\"\n }\n $background={\"bg-neutral\"}\n $font={\"heading-light-7\"}\n />\n </OakFlex>\n </OakFlex>\n );\n};\n","import React, { MouseEventHandler, useContext } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport {\n OakRadioButton,\n OakRadioButtonProps,\n} from \"@/components/form-elements/OakRadioButton/OakRadioButton\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { parseBorder } from \"@/styles/helpers/parseBorder\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseBorderRadius } from \"@/styles/helpers/parseBorderRadius\";\nimport { RadioContext } from \"@/components/form-elements/OakRadioGroup/OakRadioGroup\";\nimport { OakUiRoleToken } from \"@/styles\";\n\nexport type OakQuizRadioButtonProps = OakRadioButtonProps & {\n /**\n * Present the element with answer feedback\n */\n feedback?: \"correct\" | \"incorrect\" | null;\n /**\n * An image to display above the label\n */\n image?: JSX.Element;\n /**\n * Give the field a highlight to draw attention to it\n */\n isHighlighted?: boolean;\n};\n\ntype StyledOakFlexProps = {\n $disabled: boolean;\n $checked: boolean;\n $outlineColor?: OakUiRoleToken;\n};\n\nconst StyledOakFlex = styled(OakFlex)<StyledOakFlexProps>`\n &:not(:focus-within) {\n ${(props) =>\n !!props.$outlineColor &&\n css`\n outline: ${parseBorder(\"border-solid-xl\")}\n ${parseColor(props.$outlineColor)};\n `}\n }\n\n &:hover {\n cursor: ${(props) => (props.$disabled ? \"default\" : \"pointer\")};\n }\n\n &:focus-within {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n\n ${(props) =>\n !props.$disabled &&\n css`\n &:hover {\n background-color: ${parseColor(\"bg-decorative1-subdued\")};\n text-decoration: underline;\n }\n `}\n\n ${(props) =>\n !props.$disabled &&\n !props.$checked &&\n css`\n &:hover:not(:focus-within)::after {\n pointer-events: none;\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: ${parseBorderRadius(\"border-radius-m2\")};\n border-bottom: ${parseBorder(\"border-solid-l\")}\n ${parseColor(\"border-neutral-stronger\")};\n }\n `}\n`;\n\n/**\n * A radio button representing the options in a multiple choice question.\n *\n * Use with `OakRadioGroup` to create a group of radio buttons.\n */\nexport const OakQuizRadioButton = (props: OakQuizRadioButtonProps) => {\n const { value, feedback, image, disabled, isHighlighted, label, ...rest } =\n props;\n const showFeedback = !!feedback;\n // Give the input focus when the entire component is clicked\n const handleOnClick: MouseEventHandler<HTMLElement> = (event) => {\n event.currentTarget.querySelector(\"input\")?.click();\n };\n const checked = useContext(RadioContext).currentValue === value;\n let outlineColor: OakUiRoleToken | undefined;\n let backgroundColor: OakUiRoleToken = \"bg-primary\";\n let feedbackIcon: \"tick\" | \"cross\" | null = null;\n let feedbackAltText: string | undefined;\n let radioBackground: OakUiRoleToken = \"bg-primary\";\n\n switch (true) {\n case disabled && !showFeedback:\n backgroundColor = \"bg-neutral-stronger\";\n break;\n case feedback === \"correct\" && checked:\n outlineColor = \"border-success\";\n backgroundColor = \"bg-correct\";\n feedbackIcon = \"tick\";\n feedbackAltText = \"Correct\";\n break;\n case feedback === \"incorrect\" && checked:\n outlineColor = \"border-error\";\n backgroundColor = \"bg-incorrect\";\n feedbackIcon = \"cross\";\n feedbackAltText = \"Incorrect\";\n break;\n case feedback === \"incorrect\" && !checked:\n feedbackIcon = \"tick\";\n feedbackAltText = \"Unselected correct choice\";\n break;\n case isHighlighted:\n radioBackground = \"bg-decorative5-main\";\n outlineColor = \"border-decorative5-stronger\";\n break;\n case checked && !disabled:\n outlineColor = \"border-primary\";\n break;\n }\n\n return (\n <StyledOakFlex\n $pa=\"spacing-20\"\n $borderRadius=\"border-radius-m2\"\n $justifyContent=\"space-between\"\n $position=\"relative\"\n $alignContent=\"center\"\n onClick={handleOnClick}\n $disabled={disabled || showFeedback}\n $checked={checked}\n $outlineColor={outlineColor}\n $background={backgroundColor}\n >\n <OakRadioButton\n value={value}\n disabled={disabled || showFeedback}\n $labelGap=\"spacing-16\"\n disableFocusRing\n radioInnerSize=\"spacing-24\"\n radioOuterSize=\"spacing-32\"\n radioBackground={radioBackground}\n checkedRadioBorderWidth=\"border-solid-l\"\n label={\n image ? (\n <OakFlex\n $flexDirection=\"column\"\n $minWidth=\"spacing-360\"\n $gap=\"spacing-16\"\n >\n <OakBox>{image}</OakBox>\n {label}\n </OakFlex>\n ) : (\n label\n )\n }\n {...rest}\n />\n {showFeedback && feedbackIcon && (\n <OakFlex $alignSelf=\"flex-end\">\n <OakIcon\n iconName={feedbackIcon}\n $colorFilter={\n feedbackIcon === \"tick\" ? \"icon-success\" : \"icon-error\"\n }\n alt={feedbackAltText}\n />\n </OakFlex>\n )}\n </StyledOakFlex>\n );\n};\n","import React from \"react\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { OakImage } from \"@/components/images-and-icons/OakImage\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { OakAllSpacingToken } from \"@/styles\";\nimport { OakCodeRenderer } from \"@/components/owa/OakCodeRenderer/OakCodeRenderer\";\n\nexport type InternalQuizResultItemProps = {\n feedbackState?: \"correct\" | \"incorrect\" | null;\n standardText?: string;\n boldPrefixText?: string;\n imageURL?: string;\n imageAlt?: string;\n};\n\nconst DisplayText = ({\n boldPrefixText,\n standardText,\n height = \"spacing-20\",\n}: Pick<InternalQuizResultItemProps, \"boldPrefixText\" | \"standardText\"> & {\n height: OakAllSpacingToken;\n}) => {\n if (boldPrefixText && standardText) {\n return (\n <OakFlex\n $color={\"text-primary\"}\n $minHeight={height}\n $alignItems={\"center\"}\n >\n <OakBox>\n <OakSpan $font={\"body-2-bold\"}>\n <OakCodeRenderer string={boldPrefixText} />\n </OakSpan>\n <OakSpan $font={\"body-2\"}>\n {\"\\u00A0\"}-{\"\\u00A0\"}\n <OakCodeRenderer string={standardText} />\n </OakSpan>\n </OakBox>\n </OakFlex>\n );\n } else if (standardText) {\n return (\n <OakFlex $minHeight={height} $alignItems={\"center\"}>\n <OakSpan $color={\"text-primary\"} $font={\"body-2\"}>\n <OakCodeRenderer string={standardText} />\n </OakSpan>\n </OakFlex>\n );\n } else {\n return null;\n }\n};\n\n/**\n *\n * Add the description of the component here and it will appear on the story for the component\n * The following callbacks are available for tracking focus events:\n *\n * ### Callbacks\n * make sure to add descriptions and types for any callbacks for the component\n *\n * NB. We must export a styled component for it to be inheritable\n */\nexport const OakQuizResultItem = ({\n standardText,\n boldPrefixText,\n feedbackState,\n imageURL,\n imageAlt,\n}: InternalQuizResultItemProps) => {\n if (boldPrefixText && !standardText) {\n throw new Error(\n \"standardText must be provided if boldPrefixText is provided\",\n );\n }\n\n if (!standardText && !imageURL) {\n throw new Error(\"Either standardText or imageURL must be provided\");\n }\n\n if (imageURL && !imageAlt) {\n throw new Error(\"Image URL provided without alt text\");\n }\n\n const background = (() => {\n if (feedbackState === \"correct\") {\n return \"bg-decorative5-subdued\";\n } else if (feedbackState === \"incorrect\") {\n return \"bg-neutral\";\n } else {\n return null;\n }\n })();\n\n return (\n <OakFlex $flexDirection={\"column\"} $alignItems={\"start\"} $gap={\"spacing-8\"}>\n <OakFlex\n $background={background}\n $pa={\"spacing-8\"}\n $borderRadius={\"border-radius-m\"}\n $width={\"fit-content\"}\n $gap={\"spacing-12\"}\n $alignItems={\"center\"}\n >\n {feedbackState && (\n <OakIcon\n iconName={feedbackState === \"correct\" ? \"tick\" : \"cross\"}\n data-testid={feedbackState === \"correct\" ? \"tick\" : \"cross\"}\n $width={\"spacing-32\"}\n $height={\"spacing-32\"}\n $colorFilter={\n feedbackState === \"correct\" ? \"text-primary\" : \"icon-error\"\n }\n />\n )}\n <DisplayText\n height=\"spacing-32\"\n standardText={standardText}\n boldPrefixText={boldPrefixText}\n />\n </OakFlex>\n {imageURL && imageAlt && (\n <OakImage\n src={imageURL}\n alt={imageAlt}\n $width={\"spacing-160\"}\n $height={\"spacing-160\"}\n $background={\"bg-neutral\"}\n />\n )}\n </OakFlex>\n );\n};\n","import React, { ElementType, MutableRefObject } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakP } from \"@/components/typography/OakP\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { OakLI } from \"@/components/typography/OakLI\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { OakIcon } from \"@/components/images-and-icons\";\n\nconst FlexWithFocus = styled(OakFlex)`\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n outline: none;\n\n &:hover .hover-text {\n text-decoration: underline;\n }\n\n &:focus-visible {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n`;\n\nconst StyledUnitListItem = styled(OakFlex)<{ $disabled?: boolean }>`\n text-align: initial;\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n\n ${(props) =>\n !props.$disabled &&\n css`\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n ${StyledOakIndexBox} {\n background: ${parseColor(\"bg-decorative3-subdued\")};\n }\n background: ${parseColor(\"bg-decorative3-subdued\")};\n }\n }\n }\n `}\n\n ${(props) =>\n props.$disabled &&\n css`\n cursor: not-allowed;\n background: ${parseColor(\"bg-neutral\")};\n `}\n`;\n\nconst StyledOakIndexBox = styled(OakFlex)`\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n @media (hover: hover) {\n &:hover {\n background: ${parseColor(\"bg-decorative3-subdued\")};\n }\n }\n`;\n\nexport type OakUnitListItemProps<element extends ElementType> = {\n unavailable?: boolean;\n index: number;\n title: string;\n yearTitle?: string | null;\n lessonCount: string | null;\n isLegacy: boolean;\n href: string;\n firstItemRef?: MutableRefObject<HTMLAnchorElement | null> | null | undefined;\n onClick?: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;\n as?: element;\n};\n\n/**\n *\n * OakUnitsListItem component used as links for unit cards\n */\nexport const OakUnitListItem = <element extends ElementType = \"a\">(\n props: OakUnitListItemProps<element>,\n) => {\n const {\n lessonCount,\n href,\n unavailable,\n onClick,\n index,\n isLegacy,\n firstItemRef,\n as = \"a\",\n ...rest\n } = props;\n\n return (\n <OakLI $listStyle={\"none\"} $width={\"100%\"}>\n {/* Desktop layout */}\n <StyledUnitListItem\n $alignItems={\"center\"}\n $background={unavailable ? \"bg-neutral\" : \"bg-primary\"}\n $borderRadius=\"border-radius-m\"\n $disabled={unavailable}\n $pr=\"spacing-16\"\n $width=\"100%\"\n $display={[\"none\", \"flex\"]}\n {...rest}\n >\n <FlexWithFocus\n $pr=\"spacing-0\"\n $borderRadius=\"border-radius-m\"\n $gap=\"spacing-16\"\n $alignItems=\"center\"\n $width=\"100%\"\n $height=\"100%\"\n as={as}\n href={unavailable ? undefined : href}\n ref={firstItemRef}\n onClick={unavailable ? undefined : onClick}\n >\n <StyledOakIndexBox\n $background={\n unavailable\n ? \"bg-neutral-stronger\"\n : isLegacy\n ? \"bg-decorative3-subdued\"\n : \"bg-decorative3-main\"\n }\n $justifyContent={\"center\"}\n $alignItems={\"center\"}\n $minWidth=\"spacing-64\"\n $alignSelf=\"stretch\"\n >\n <OakSpan\n $font={\"heading-5\"}\n $color={unavailable ? \"text-disabled\" : \"text-primary\"}\n >\n {index}\n </OakSpan>\n </StyledOakIndexBox>\n <OakFlex $pv=\"spacing-20\" $pr=\"spacing-16\" $flexGrow={1}>\n <OakP\n $font={\"heading-7\"}\n $color={unavailable ? \"text-disabled\" : \"text-primary\"}\n className=\"hover-text\"\n >\n {props.title}\n </OakP>\n </OakFlex>\n <OakFlex\n $minWidth=\"spacing-80\"\n $alignItems=\"center\"\n $justifyContent=\"end\"\n >\n <OakP\n $font={\"heading-light-7\"}\n $whiteSpace=\"nowrap\"\n $color={unavailable ? \"text-disabled\" : \"text-primary\"}\n >\n {props.yearTitle}\n </OakP>\n </OakFlex>\n <OakFlex\n $font={\"heading-light-7\"}\n $color={unavailable ? \"text-disabled\" : \"text-primary\"}\n $alignItems=\"center\"\n $justifyContent=\"end\"\n $minWidth=\"spacing-160\"\n >\n <OakP $whiteSpace=\"nowrap\">{lessonCount}</OakP>\n <OakIcon\n iconName=\"chevron-right\"\n iconWidth=\"spacing-32\"\n $colorFilter={unavailable ? \"text-disabled\" : \"text-primary\"}\n />\n </OakFlex>\n </FlexWithFocus>\n </StyledUnitListItem>\n {/* Mobile layout */}\n <StyledUnitListItem\n $background={unavailable ? \"bg-neutral\" : \"bg-primary\"}\n $borderRadius=\"border-radius-m\"\n $disabled={unavailable}\n $display={[\"flex\", \"none\"]}\n $width=\"100%\"\n $pa=\"spacing-16\"\n {...rest}\n >\n <OakFlex $flexDirection=\"column\" $gap=\"spacing-16\" $width=\"100%\">\n <OakFlex\n $gap=\"spacing-16\"\n as={as}\n href={unavailable ? undefined : href}\n >\n <OakFlex\n $background={\n unavailable\n ? \"bg-neutral-stronger\"\n : isLegacy\n ? \"bg-decorative3-subdued\"\n : \"bg-decorative3-main\"\n }\n $justifyContent={\"center\"}\n $alignItems={\"center\"}\n $borderRadius=\"border-radius-m\"\n $width=\"spacing-40\"\n $height=\"spacing-40\"\n $minWidth=\"spacing-40\"\n >\n <OakHeading\n tag=\"h3\"\n $font=\"heading-5\"\n $color={unavailable ? \"text-disabled\" : \"text-primary\"}\n >\n {index}\n </OakHeading>\n </OakFlex>\n <OakBox $width=\"100%\">\n <OakP\n $font=\"heading-7\"\n $color={unavailable ? \"text-disabled\" : \"text-primary\"}\n >\n {props.title}\n </OakP>\n </OakBox>\n </OakFlex>\n <OakFlex $justifyContent=\"space-between\" $alignItems=\"center\">\n <OakP\n $font={\"heading-light-7\"}\n $color={unavailable ? \"text-disabled\" : \"text-primary\"}\n >\n {props.yearTitle}\n </OakP>\n <OakP\n $font={\"heading-light-7\"}\n $color={unavailable ? \"text-disabled\" : \"text-primary\"}\n >\n {lessonCount}\n </OakP>\n </OakFlex>\n </OakFlex>\n </StyledUnitListItem>\n </OakLI>\n );\n};\n","import React, { MutableRefObject } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\n\nconst StyledOptionalityListItem = styled(OakFlex)<{ $disabled?: boolean }>`\n outline: none;\n text-align: initial;\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n\n &:hover .hover-text {\n text-decoration: underline;\n }\n\n &:focus-visible {\n background: ${parseColor(\"bg-primary\")};\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n ${(props) =>\n !props.$disabled &&\n css` \n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n ${StyledOakIndexBox} {\n background: ${parseColor(\"bg-decorative3-very-subdued\")};\n }\n background: ${parseColor(\"bg-decorative3-main\")};\n }\n }\n }\n `}\n\n ${(props) =>\n props.$disabled &&\n css`\n cursor: not-allowed;\n background: ${parseColor(\"bg-neutral\")};\n border-color: ${parseColor(\"border-neutral-lighter\")};\n `}\n`;\n\nconst StyledOakIndexBox = styled(OakFlex)`\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n @media (hover: hover) {\n &:hover {\n background: ${parseColor(\"bg-decorative3-very-subdued\")};\n }\n }\n`;\n\nexport type OakUnitListOptionalityItemCardProps = {\n unavailable?: boolean;\n title: string;\n lessonCount: string | null;\n href: string;\n slug: string;\n firstItemRef?: MutableRefObject<HTMLAnchorElement | null> | null;\n onClick?: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>) => void;\n};\n\nconst HeadingWithFocus = styled(OakHeading)`\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n outline: none;\n border-radius: 6px;\n padding: 4px;\n\n &:hover {\n text-decoration: underline;\n }\n\n &:focus-visible {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n`;\n\n/**\n *\n * OakUnitsListItem component used as links for unit cards\n */\nexport const OakUnitListOptionalityItemCard = (\n props: OakUnitListOptionalityItemCardProps,\n) => {\n const { lessonCount, href, unavailable, firstItemRef, onClick, ...rest } =\n props;\n\n return (\n <OakFlex $display={\"flex\"} $flexGrow={1}>\n <StyledOptionalityListItem\n as={unavailable ? \"div\" : \"a\"}\n href={unavailable ? undefined : href}\n onClick={unavailable ? undefined : onClick}\n ref={unavailable ? undefined : (firstItemRef ?? undefined)}\n $ph=\"spacing-12\"\n $pv=\"spacing-16\"\n $background={\"bg-decorative3-very-subdued\"}\n $borderRadius=\"border-radius-m\"\n $borderColor={\"border-decorative3\"}\n $ba=\"border-solid-m\"\n $disabled={unavailable}\n $flexGrow={1}\n {...rest}\n >\n <OakFlex\n $justifyContent={\"space-between\"}\n $flexGrow={1}\n $flexDirection={\"column\"}\n >\n <HeadingWithFocus\n $font={\"heading-7\"}\n $color={unavailable ? \"text-disabled\" : \"text-primary\"}\n tag={\"h3\"}\n $mb={\"spacing-12\"}\n >\n <span className=\"hover-text\">{props.title}</span>\n </HeadingWithFocus>\n <OakFlex $justifyContent=\"flex-end\" $ph=\"spacing-4\">\n <OakFlex $alignItems={\"center\"} $justifyContent={\"flex-end\"}>\n <OakSpan\n $color={unavailable ? \"text-disabled\" : \"text-primary\"}\n $font={\"heading-light-7\"}\n className=\"hover-text\"\n >\n {lessonCount}\n </OakSpan>\n\n <OakIcon\n iconName=\"chevron-right\"\n $colorFilter={unavailable ? \"text-disabled\" : \"text-primary\"}\n />\n </OakFlex>\n </OakFlex>\n </OakFlex>\n </StyledOptionalityListItem>\n </OakFlex>\n );\n};\n","import React, { MutableRefObject } from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { OakLabel } from \"@/components/form-elements/OakLabel\";\nimport { OakGrid } from \"@/components/layout-and-structure/OakGrid\";\nimport { OakGridArea } from \"@/components/layout-and-structure/OakGridArea\";\nimport { FlexStyleProps } from \"@/styles/utils/flexStyle\";\nimport { BorderStyleProps } from \"@/styles/utils/borderStyle\";\nimport { OakUnitListOptionalityItemCard } from \"@/components/owa/pupil/OakUnitListOptionalityItemCard/OakUnitListOptionalityItemCard\";\n\nconst StyledYearAndOptionFlex = styled(OakFlex)`\n @media (min-width: 356px) {\n min-width: 260px;\n }\n`;\n\nconst UnitYearAndOptionCount = ({\n yearTitle,\n optionalityUnitsLength,\n unavailable,\n}: {\n yearTitle: string | null | undefined;\n optionalityUnitsLength: number;\n unavailable: boolean | undefined;\n}) => (\n <StyledYearAndOptionFlex\n $width={[\"100%\", \"spacing-240\"]}\n $justifyContent={[\"space-between\"]}\n $alignItems={\"center\"}\n >\n <OakSpan\n $color={unavailable ? \"text-disabled\" : \"text-primary\"}\n $font={\"heading-light-7\"}\n >\n {yearTitle}\n </OakSpan>\n\n <OakBox\n $ph={\"spacing-8\"}\n $pv={\"spacing-4\"}\n $ba={\"border-solid-s\"}\n $borderColor={\n unavailable ? \"border-neutral-lighter\" : \"bg-decorative4-main\"\n }\n $color={unavailable ? \"text-disabled\" : \"text-primary\"}\n $background={\n unavailable ? \"bg-neutral-stronger\" : \"bg-decorative4-very-subdued\"\n }\n $borderRadius={\"border-radius-s\"}\n >\n <OakLabel\n $font={\"heading-light-7\"}\n $color={unavailable ? \"text-disabled\" : \"text-primary\"}\n >{`${optionalityUnitsLength} unit options`}</OakLabel>\n </OakBox>\n </StyledYearAndOptionFlex>\n);\n\nconst UnitIndex = ({\n children,\n unavailable,\n ...rest\n}: {\n children: React.ReactNode;\n unavailable: boolean | undefined;\n} & FlexStyleProps &\n BorderStyleProps) => (\n <OakFlex\n $btlr={\"border-radius-s\"}\n $bblr={\"border-radius-s\"}\n $background={unavailable ? \"bg-neutral-stronger\" : \"bg-decorative3-main\"}\n $minWidth={[\"spacing-40\", \"spacing-64\"]}\n $width={[\"spacing-40\", \"spacing-64\", \"auto\"]}\n $height={[\"spacing-40\", \"auto\", \"auto\"]}\n $justifyContent={\"center\"}\n $alignItems={\"center\"}\n {...rest}\n >\n <OakSpan\n $font={\"heading-5\"}\n $color={unavailable ? \"text-disabled\" : \"text-primary\"}\n >\n {children}\n </OakSpan>\n </OakFlex>\n);\n\nconst StyledUnitHeading = ({\n children,\n unavailable,\n}: {\n children: React.ReactNode;\n unavailable: boolean | undefined;\n}) => {\n return (\n <OakFlex $maxWidth={\"spacing-480\"} $mr={[\"spacing-0\", \"spacing-16\"]}>\n <OakHeading\n $color={unavailable ? \"text-disabled\" : \"text-primary\"}\n $font={\"heading-7\"}\n tag=\"h4\"\n >\n {children}\n </OakHeading>\n </OakFlex>\n );\n};\n\nexport type OakUnitListOptionalityItemProps = {\n unavailable?: boolean;\n index: number;\n nullTitle: string;\n yearTitle?: string | null;\n firstItemRef: MutableRefObject<HTMLAnchorElement | null> | null | undefined;\n onSave?: (unitSlug: string) => void;\n getIsSaved?: (unitSlug: string) => boolean;\n getIsSaving?: (unitSlug: string) => boolean;\n optionalityUnits: {\n title: string;\n slug: string;\n href: string;\n lessonCount: string;\n onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;\n firstItemRef?:\n | MutableRefObject<HTMLAnchorElement | null>\n | null\n | undefined;\n }[];\n};\n\n/**\n *\n * OakUnitsListOptionalityItem component used as links for unit cards with optionality\n */\nexport const OakUnitListOptionalityItem = (\n props: OakUnitListOptionalityItemProps,\n) => {\n const {\n unavailable,\n index,\n optionalityUnits,\n nullTitle,\n firstItemRef,\n onSave,\n getIsSaved,\n getIsSaving,\n ...rest\n } = props;\n\n return (\n <OakFlex\n $flexDirection={[\"column\", \"row\", \"row\"]}\n $width={\"100%\"}\n as={\"li\"}\n $background=\"bg-primary\"\n $borderRadius=\"border-radius-m\"\n {...rest}\n >\n <OakFlex\n $display={[\"flex\", \"none\"]}\n $ph=\"spacing-16\"\n $pt=\"spacing-16\"\n $gap=\"spacing-16\"\n >\n <UnitIndex\n unavailable={unavailable}\n $bbrr=\"border-radius-s\"\n $btrr=\"border-radius-s\"\n >\n {index}\n </UnitIndex>\n\n <StyledUnitHeading unavailable={unavailable}>\n {nullTitle}\n </StyledUnitHeading>\n </OakFlex>\n <UnitIndex unavailable={unavailable} $display={[\"none\", \"flex\", \"flex\"]}>\n {index}\n </UnitIndex>\n <OakBox $pa={\"spacing-16\"} $width={\"100%\"}>\n <OakFlex\n $alignItems={\"center\"}\n $mb={\"spacing-16\"}\n $display={[\"none\", \"flex\"]}\n >\n <OakFlex\n $flexGrow={1}\n $alignItems={\"center\"}\n $justifyContent={\"space-between\"}\n >\n <StyledUnitHeading unavailable={unavailable}>\n {nullTitle}\n </StyledUnitHeading>\n <OakFlex $alignItems={\"center\"}>\n <UnitYearAndOptionCount\n yearTitle={props.yearTitle}\n optionalityUnitsLength={optionalityUnits.length}\n unavailable={unavailable}\n />\n </OakFlex>\n </OakFlex>\n </OakFlex>\n <OakFlex\n $alignItems={\"center\"}\n $justifyContent={\"space-between\"}\n $mb={\"spacing-16\"}\n $display={[\"flex\", \"none\", \"none\"]}\n $width={\"100%\"}\n >\n <OakBox $mb={\"spacing-16\"} $display={[\"none\", \"auto\", \"auto\"]}>\n <StyledUnitHeading unavailable={unavailable}>\n {nullTitle}\n </StyledUnitHeading>\n </OakBox>\n\n <UnitYearAndOptionCount\n yearTitle={props.yearTitle}\n optionalityUnitsLength={optionalityUnits.length}\n unavailable={unavailable}\n />\n </OakFlex>\n <OakGrid $rg={\"spacing-12\"} $cg={\"spacing-12\"}>\n {optionalityUnits.map((unit, index) => (\n <OakGridArea key={`${unit.title}-${index}`} $colSpan={[12, 6]}>\n <OakUnitListOptionalityItemCard\n {...unit}\n firstItemRef={index === 0 ? firstItemRef : null}\n unavailable={unavailable}\n />\n </OakGridArea>\n ))}\n </OakGrid>\n </OakBox>\n </OakFlex>\n );\n};\n","import React, { ElementType, ComponentPropsWithoutRef } from \"react\";\nimport styled from \"styled-components\";\n\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseColorFilter } from \"@/styles/helpers/parseColorFilter\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\n\nexport type OakBackLinkProps<C extends ElementType> = {\n as?: C;\n label?: string;\n} & ComponentPropsWithoutRef<C>;\n\nconst StyledBackLink = styled.a`\n border-radius: 50%;\n display: flex;\n width: fit-content;\n height: fit-content;\n border: none;\n padding: 0;\n outline: none;\n\n img {\n pointer-events: none;\n }\n\n &:not(:disabled) {\n cursor: pointer;\n }\n\n &:active {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-lemon\")},\n ${parseDropShadow(\"drop-shadow-grey\")};\n }\n\n &:hover,\n &:focus-visible {\n background: ${parseColor(\"bg-btn-primary\")};\n\n img {\n filter: ${parseColorFilter(\"text-inverted\")};\n }\n }\n\n &:focus-visible {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n\n &:disabled {\n background: ${parseColor(\"bg-btn-primary-disabled\")};\n\n img {\n filter: ${parseColorFilter(\"text-inverted\")};\n }\n }\n`;\n\n/**\n * Used to navigate the user back to the previous page in the app.\n *\n * Polymorphic rendering as any HTML element or component using `as` — defaults to `a`.\n *\n * E.g.\n *\n * * Default (Anchor) `<OakBackLink href=\"https://www.thenational.academy/\" />`\n * * Button `<OakBackLink as=\"button\" onClick={() => goBack(-1)} />`\n *\n */\nexport const OakBackLink = <C extends ElementType = \"a\">({\n as,\n label = \"Back\",\n ...props\n}: OakBackLinkProps<C>) => {\n return (\n <StyledBackLink as={as ?? \"a\"} aria-label={label} {...props}>\n <OakIcon\n alt=\"\"\n iconName=\"chevron-left\"\n $width=\"spacing-40\"\n $objectFit={\"cover\"}\n $height=\"spacing-40\"\n />\n </StyledBackLink>\n );\n};\n","import React, { useContext } from \"react\";\nimport styled from \"styled-components\";\n\nimport { RadioContext } from \"@/components/form-elements/OakRadioGroup\";\nimport {\n BaseCheckBoxProps,\n InternalCheckBoxHoverFocus,\n} from \"@/components/internal-components/InternalCheckBox/InternalCheckBox\";\nimport { InternalCheckBoxWrapper } from \"@/components/internal-components/InternalCheckBoxWrapper\";\nimport { InternalRadio } from \"@/components/internal-components/InternalRadio/InternalRadio\";\nimport { InternalRadioWrapper } from \"@/components/internal-components/InternalRadioWrapper\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakUiRoleToken } from \"@/styles\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { IconName } from \"@/image-map\";\n\nconst SingleIcon = ({ iconName }: { iconName: IconName }) => {\n return (\n <OakFlex\n $background={\"bg-decorative5-main\"}\n $pa={\"spacing-12\"}\n $alignItems={\"center\"}\n $alignSelf={\"stretch\"}\n >\n <OakIcon\n iconName={iconName}\n $width={\"spacing-48\"}\n $height={\"spacing-48\"}\n />\n </OakFlex>\n );\n};\n\nconst MultipleIcons = ({ iconName }: { iconName: IconName[] }) => {\n return (\n <OakFlex\n $background={\"bg-decorative5-main\"}\n $pa={\"spacing-12\"}\n $alignItems={\"center\"}\n $flexDirection={\"column\"}\n $gap={\"spacing-16\"}\n $justifyContent={\"center\"}\n >\n {iconName.map((name, index) => (\n <OakFlex\n key={`${name}-${index}`}\n $position={\"relative\"}\n $alignContent={\"center\"}\n $alignItems={\"center\"}\n $justifyContent={\"center\"}\n >\n <OakIcon\n iconName={name}\n $width={\"spacing-40\"}\n $height={\"spacing-40\"}\n $mr={index < iconName.length - 1 ? \"spacing-8\" : \"spacing-0\"}\n />\n </OakFlex>\n ))}\n </OakFlex>\n );\n};\n\nexport type OakDownloadCardProps = BaseCheckBoxProps & {\n /**\n * The primary title content for the download.\n */\n title: React.ReactNode;\n /**\n * Optional file size content shown beneath the title.\n */\n fileSize?: React.ReactNode;\n /**\n * The file format or secondary metadata shown beneath the title.\n */\n format: React.ReactNode;\n /**\n * The icon used to represent the download type.\n */\n iconName: IconName | IconName[];\n /**\n * If true, renders the selection control as a radio button instead of a checkbox.\n *\n * @default false\n */\n isRadio?: boolean;\n};\n\nconst LabelContainer = styled(\"label\")`\n flex: 1;\n cursor: pointer;\n display: flex;\n`;\n\nconst Container = styled(OakFlex)<{ $hoverBackground: OakUiRoleToken }>`\n cursor: pointer;\n\n &:has(input:focus-within) {\n &:focus-visible {\n box-shadow:\n 0px 0px 0px 2px ${parseColor(\"bg-decorative5-main\")},\n 0px 0px 0px 5px ${parseColor(\"bg-btn-primary-hover\")};\n }\n }\n @media (hover: hover) {\n &:hover:not(:disabled, :active) {\n background: ${(props) =>\n props.$hoverBackground ? parseColor(props.$hoverBackground) : null};\n }\n }\n`;\n\n/**\n * Download cards present a downloadable resource with metadata and a selectable control.\n * ## Usage\n * Use this component when users need to select one or more downloadable resources,\n * such as lesson plans, slide decks, or worksheets.\n * Design document: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=14795-5603>\n */\nexport const OakDownloadCard = (props: OakDownloadCardProps) => {\n const radioContext = useContext(RadioContext);\n const {\n title,\n fileSize,\n format,\n iconName,\n value,\n disabled = false,\n defaultChecked,\n checked,\n onChange,\n onFocus,\n onBlur,\n onHovered,\n isRadio = false,\n \"data-testid\": dataTestId,\n ...rest\n } = props;\n\n const checkboxSize = \"spacing-24\";\n const checkedBorderColor = \"border-primary\";\n const disabledColor = \"text-disabled\";\n\n const currentCheckedBackgroundFill = disabled\n ? disabledColor\n : checkedBorderColor;\n const currentCheckedBorderColor = disabled\n ? disabledColor\n : checkedBorderColor;\n const anyDisabled = disabled || radioContext.disabled;\n const isChecked = value === radioContext.currentValue;\n const radioChecked = checked ?? isChecked;\n\n const handleRadioChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n radioContext.onValueUpdated?.(event);\n onChange?.(event);\n };\n\n const isMultipleIcon = Array.isArray(iconName);\n\n return (\n <Container\n data-testid={dataTestId}\n $background={\"bg-primary\"}\n $ba={\"border-solid-m\"}\n $borderRadius={\"border-radius-s\"}\n $overflow={\"hidden\"}\n $hoverBackground=\"bg-btn-secondary-hover\"\n $color={\"text-primary\"}\n $width={\"100%\"}\n >\n <LabelContainer>\n <OakFlex $alignItems={\"stretch\"} $flexGrow={1}>\n {isMultipleIcon ? (\n <MultipleIcons iconName={iconName} />\n ) : (\n <SingleIcon iconName={iconName} />\n )}\n <OakFlex\n $flexGrow={1}\n $flexDirection={\"column\"}\n $justifyContent={\"center\"}\n $gap=\"spacing-4\"\n $pv=\"spacing-12\"\n $ph=\"spacing-16\"\n >\n <OakBox $font={\"body-2-bold\"}>{title}</OakBox>\n {fileSize && <OakBox $font={\"body-3\"}>{fileSize}</OakBox>}\n <OakBox $font={\"body-3\"}>{format}</OakBox>\n </OakFlex>\n </OakFlex>\n <OakFlex>\n <OakFlex $alignItems={\"center\"} $pr={\"spacing-16\"}>\n {isRadio && (\n <InternalRadioWrapper\n checked={isChecked}\n size={checkboxSize}\n disabled={anyDisabled}\n radioBorderColor={checkedBorderColor}\n internalRadio={\n <InternalRadio\n {...rest}\n id={props.id}\n name={props.name ?? radioContext.name}\n value={value}\n disabled={anyDisabled}\n onHovered={onHovered}\n onChange={handleRadioChange}\n onFocus={onFocus}\n onBlur={onBlur}\n defaultChecked={defaultChecked}\n checked={radioChecked}\n />\n }\n />\n )}\n {!isRadio && (\n <InternalCheckBoxWrapper\n size={checkboxSize}\n internalCheckbox={\n <InternalCheckBoxHoverFocus\n name={radioContext.name}\n value={value}\n $width={checkboxSize}\n $height={checkboxSize}\n $ba={\"border-solid-m\"}\n $borderRadius={\"border-radius-xs\"}\n $borderColor={\"text-primary\"}\n $checkedBackground={currentCheckedBackgroundFill}\n $checkedBorderColor={currentCheckedBorderColor}\n $uncheckedBorderColor={\"border-neutral\"}\n $hoverBorderRadius={\"border-radius-xs\"}\n onHovered={onHovered}\n onChange={onChange}\n onFocus={onFocus}\n onBlur={onBlur}\n defaultChecked={defaultChecked}\n checked={checked}\n disabled={anyDisabled}\n {...rest}\n />\n }\n iconPadding={\"spacing-0\"}\n />\n )}\n </OakFlex>\n </OakFlex>\n </LabelContainer>\n </Container>\n );\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { InternalStyledSvg } from \"@/components/internal-components/InternalStyledSvg\";\nimport { SizeStyleProps } from \"@/styles/utils/sizeStyle\";\nimport { DisplayStyleProps } from \"@/styles/utils/displayStyle\";\n\nconst StyledPromoTag = styled(OakFlex)`\n aspect-ratio: 2 / 1;\n`;\n\nexport type OakPromoTagProps = {\n width?: SizeStyleProps[\"$width\"];\n display?: DisplayStyleProps[\"$display\"];\n};\n\n/**\n * Renders a tag with the text \"New\"\n */\nexport const OakPromoTag = (props: OakPromoTagProps) => {\n const {\n width = [\"spacing-40\", \"spacing-48\", \"spacing-56\"],\n display = \"flex\",\n } = props;\n\n return (\n <StyledPromoTag\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $position=\"relative\"\n $width={width}\n $display={display}\n >\n <InternalStyledSvg\n height=\"100%\"\n width=\"100%\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 56 27\"\n $fill=\"icon-primary\"\n >\n <path d=\"M6.421 0c8.661.839 17.303.834 26.16.714a89.843 89.843 0 0 1 4.834-.013c6.333.32 12.39.317 18.506-.275 0 1.26.178 2.352 0 3.44-.276 1.38-.829 2.759-1.342 4.15-.138.354-.532.706-.808 1.06-.445.248-.63.5-.553.753 1.598 1.093-.256 2.185 0 3.277.276 1.529 1.322 3.058 1.204 4.572-.138 1.771-1.046 3.543-1.973 5.312-.288.4-1.065.792-2.309 1.169-2.288.755-4.103 1.67-11.206 1.965-9.936.417-20.953.385-30.678-.09-2.447-.12-4.38-.532-5.209-.853-1.035-.458-1.52-.929-1.44-1.4C.937 18.988-.109 14.194.01 9.4c0-2.645 1.973-5.29 3.413-7.933.237-.424 1.697-.839 3-1.468Z\" />\n </InternalStyledSvg>\n <OakFlex\n $position=\"absolute\"\n $inset=\"spacing-0\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n <OakSpan\n $color=\"text-promo\"\n $background={\"icon-primary\"}\n $font={[\"body-3-bold\", \"body-3-bold\", \"heading-7\"]}\n >\n New\n </OakSpan>\n </OakFlex>\n </StyledPromoTag>\n );\n};\n","import React, { ReactNode } from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakHandDrawnCardWithIcon } from \"@/components/owa/OakHandDrawnCardWithIcon\";\nimport { OakPromoTag } from \"@/components/owa/OakPromoTag\";\nimport {\n OakFlex,\n OakFlexProps,\n} from \"@/components/layout-and-structure/OakFlex\";\nimport {\n OakIconName,\n OakIconProps,\n} from \"@/components/images-and-icons/OakIcon\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { InternalStyledSvgProps } from \"@/components/internal-components/InternalStyledSvg\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\n\ntype OakFlexPropsWithAnimation = OakFlexProps & {\n hasAnimation?: boolean;\n};\nconst StyledOakFlexAsLink = styled(OakFlex)<OakFlexPropsWithAnimation>`\n animation: ${({ hasAnimation }) =>\n hasAnimation ? \"background-fade 2s ease-in-out\" : \"none\"};\n animation-delay: 0.5s;\n cursor: pointer;\n outline: none;\n &:focus-visible {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n\n @keyframes background-fade {\n from {\n background-color: ${parseColor(\"bg-decorative1-main\")};\n }\n to {\n transform: ${parseColor(\"bg-primary\")};\n }\n }\n`;\n\nexport type OakLinkCardProps = {\n /**\n * The main content section including header, body, and link.\n */\n mainSection: ReactNode;\n /**\n * The name of the icon to be displayed in the card.\n */\n iconName: OakIconName;\n /**\n * The alternative text for the icon, used for accessibility.\n */\n iconAlt: string;\n /**\n * The color filter applied to the icon.\n */\n iconColor?: OakIconProps[\"$colorFilter\"];\n /**\n * The fill color applied inside the icon.\n */\n iconFill?: InternalStyledSvgProps[\"$fill\"];\n /**\n * The URL that the entire card navigates to when clicked.\n */\n href: string;\n /**\n * Whether to display the \"New\" promo tag in the top-left corner.\n */\n showNew?: boolean;\n /**\n * Whether to display the card in a narrow layout.\n */\n narrow?: boolean;\n /**\n * Whether to apply a background animation effect.\n */\n hasAnimation?: boolean;\n};\n\n/**\n * @deprecated Use `<OakCard />` instead\n *\n * A card component that displays an icon, text content, and an external link.\n *\n * ## Props\n *\n * - **mainSection** - Main content (ReactNode) - Can include OakHeading, OakP, OakLink, etc.\n * - **iconName** - Name of the icon to be displayed\n * - **iconAlt** - Alternative text for the icon (for accessibility)\n * - **iconColor** - Optional color filter for the icon\n * - **iconFill** - Optional fill color for the icon\n * - **href** - Destination URL when the card is clicked\n * - **showNew** - Whether to display the \"New\" promo tag\n * - **narrow** - Whether to display the card in a narrow layout\n */\nexport const OakLinkCard = ({\n mainSection,\n iconName = \"books\",\n iconAlt = \"\",\n iconColor = \"icon-primary\",\n iconFill = \"bg-decorative1-main\",\n href,\n showNew = false,\n hasAnimation = false,\n narrow = false,\n}: OakLinkCardProps) => {\n return (\n <StyledOakFlexAsLink\n hasAnimation={hasAnimation}\n as=\"a\"\n href={href}\n $flexDirection={narrow ? \"column-reverse\" : [\"column-reverse\", \"row\"]}\n $alignItems={narrow ? \"flex-start\" : [\"flex-start\", \"center\"]}\n $justifyContent=\"space-between\"\n $gap={\"spacing-32\"}\n $background={\"bg-primary\"}\n $pa=\"spacing-24\"\n $borderRadius=\"border-radius-m2\"\n $width=\"100%\"\n $dropShadow={\"drop-shadow-centred-standard\"}\n >\n <OakBox $width={\"100%\"}>{mainSection}</OakBox>\n <OakBox $position=\"relative\">\n <OakHandDrawnCardWithIcon\n iconName={iconName}\n alt={iconAlt}\n iconWidth={narrow ? [\"spacing-64\"] : [\"spacing-64\", \"spacing-100\"]}\n iconHeight={narrow ? [\"spacing-64\"] : [\"spacing-64\", \"spacing-100\"]}\n $width={narrow ? [\"spacing-80\"] : [\"spacing-80\", \"spacing-160\"]}\n $height={narrow ? [\"spacing-80\"] : [\"spacing-80\", \"spacing-160\"]}\n fill={iconFill}\n iconColor={iconColor}\n />\n {showNew && (\n <OakBox\n $position={\"absolute\"}\n $top={narrow ? [\"spacing-0\"] : [\"spacing-0\", \"spacing-8\"]}\n $left={narrow ? [\"spacing-0\"] : [\"spacing-0\", \"spacing-8\"]}\n data-testid=\"oak-new-promo-tag\"\n $zIndex=\"in-front\"\n aria-hidden=\"true\"\n >\n <OakPromoTag />\n </OakBox>\n )}\n </OakBox>\n </StyledOakFlexAsLink>\n );\n};\n","import React, { ReactNode } from \"react\";\nimport styled from \"styled-components\";\n\nimport { InternalChevronAccordion } from \"@/components/internal-components/InternalChevronAccordion\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { SizeStyleProps } from \"@/styles/utils/sizeStyle\";\nimport { FlexStyleProps } from \"@/styles/utils/flexStyle\";\nimport { SpacingStyleProps } from \"@/styles/utils/spacingStyle\";\n\nexport type OakSolidBorderAccordionProps = {\n /**\n * The header of the accordion\n */\n header: ReactNode;\n /**\n * Whether the accordion should be open initially\n */\n initialOpen?: boolean;\n /**\n * The content of the accordion\n */\n children: ReactNode;\n /**\n * The id of the accordion\n */\n id: string;\n} & FlexStyleProps &\n SizeStyleProps &\n SpacingStyleProps;\n\nconst AccordionWrapper = styled(OakFlex)`\n position: relative;\n border-width: 2px;\n`;\n\n// @todo only show shadow when there is are more items to scroll and remove once scrolled to the bottom\n// const BottomBoxShadow = styled(OakBox)`\n// position: absolute;\n// bottom: 0;\n// width: 100%;\n// height: 50px;\n// z-index: 100;\n// -webkit-box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n// -moz-box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n// box-shadow: inset 0px -55px 30px -30px rgba(255, 255, 255, 1);\n// `;\n\n/**\n * An accordion component that can be used to show/hide content\n */\nexport const OakMediaClipListAccordion = ({\n header,\n children,\n id,\n initialOpen,\n ...styleProps\n}: OakSolidBorderAccordionProps) => {\n return (\n <AccordionWrapper $position={\"relative\"} $flexDirection={\"column\"}>\n <InternalChevronAccordion\n header={header}\n id={id}\n initialOpen={initialOpen}\n $pv={\"spacing-0\"}\n $borderStyle={\"solid\"}\n $borderColor={\"border-primary\"}\n $ba={\"border-solid-m\"}\n $bl={[\"border-solid-m\", \"border-solid-m\", \"border-solid-none\"]}\n {...styleProps}\n >\n {children}\n </InternalChevronAccordion>\n </AccordionWrapper>\n );\n};\n","import React, { useState } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\nimport { OakBox, OakBoxProps } from \"@/components/layout-and-structure/OakBox\";\nimport { OakLabel, OakLabelProps } from \"@/components/form-elements/OakLabel\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\n\nexport type TileItem = { id: string; label: string };\nexport const isTileItem = (u: unknown): u is TileItem => {\n return (\n typeof u === \"object\" &&\n u !== null &&\n typeof (u as TileItem).id === \"string\" &&\n typeof (u as TileItem).label === \"string\"\n );\n};\n\nexport type OakRadioTileProps = {\n tileItem: TileItem;\n isChecked: boolean;\n id: string;\n onChange: (tileItem: TileItem) => void;\n};\n\nconst RadioTileLabel = styled(OakLabel)<OakLabelProps>`\n cursor: pointer;\n display: flex;\n gap: ${parseSpacing(\"spacing-16\")};\n`;\n\nconst HiddenRadioButtonInput = styled.input.attrs({\n type: \"radio\",\n})`\n position: absolute;\n opacity: 0;\n cursor: pointer;\n`;\n\nconst RadioTileFocus = styled(OakBox)<OakBoxProps>`\n box-shadow: ${`inset 0 0 0 0.15rem ${parseColor(\"icon-promo\")}`};\n width: calc(100% + 12px);\n height: calc(100% + 12px);\n top: -6px;\n left: -6px;\n`;\n\nconst OakRadioTileCss = css<OakRadioTileProps>``;\n\nconst UnstyledComponent = (props: OakRadioTileProps) => {\n const { tileItem, isChecked, id, onChange } = props;\n const [isFocussed, setIsFocussed] = useState(false);\n return (\n <OakBox\n $borderColor=\"border-neutral\"\n $ba=\"border-solid-m\"\n $borderRadius=\"border-radius-s\"\n $pa=\"spacing-12\"\n $position=\"relative\"\n $background={isFocussed || isChecked ? \"bg-inverted\" : \"transparent\"}\n $color={isFocussed || isChecked ? \"text-inverted\" : \"text-primary\"}\n >\n {isFocussed && (\n <RadioTileFocus\n $background=\"transparent\"\n $position=\"absolute\"\n $ba=\"border-solid-l\"\n $borderColor=\"border-neutral-stronger\"\n $borderRadius=\"border-radius-s\"\n data-testid=\"radio-tile-focus\"\n />\n )}\n <RadioTileLabel htmlFor={id}>\n <HiddenRadioButtonInput\n value={tileItem.id}\n id={id}\n checked={isChecked}\n onChange={() => onChange(tileItem)}\n tabIndex={0}\n onFocus={() => setIsFocussed(true)}\n onBlur={() => setIsFocussed(false)}\n onClick={(e) => {\n // remove focus on mouse click events\n if (e.clientX || e.clientY) {\n setIsFocussed(false);\n }\n }}\n />\n <OakFlex\n $height={\"spacing-24\"}\n $width=\"spacing-24\"\n $borderColor=\"border-neutral\"\n $flexGrow={0}\n $flexShrink={0}\n $alignItems={\"center\"}\n $justifyContent={\"center\"}\n $background={\"bg-primary\"}\n $ba=\"border-solid-m\"\n $borderRadius=\"border-radius-circle\"\n >\n {isChecked && (\n <OakBox\n $height=\"spacing-16\"\n $width=\"spacing-16\"\n $background=\"bg-inverted\"\n $position=\"absolute\"\n $borderRadius=\"border-radius-circle\"\n data-testid=\"radio-tile-checked\"\n />\n )}\n </OakFlex>\n {tileItem.label}\n </RadioTileLabel>\n </OakBox>\n );\n};\n\nexport const OakRadioTile = styled(UnstyledComponent)`\n ${OakRadioTileCss}\n`;\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { InternalButton } from \"@/components/internal-components/InternalButton\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\n\nexport type OakSaveCountProps = {\n /**\n * The number of saved items.\n *\n * Setting this will show the count inline with the label.\n */\n count?: number;\n /**\n * The label to display inline with the count.\n */\n label?: string;\n href: string;\n loading: boolean;\n};\n\nconst StyledInternalButton = styled(InternalButton)`\n :hover {\n .oak-save-count {\n background-color: ${parseColor(\"bg-decorative1-main\")};\n }\n }\n :focus-visible {\n .oak-save-count {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n }\n`;\n\nexport const OakSaveCount = ({\n count,\n href,\n loading,\n label = \"My library\",\n}: OakSaveCountProps) => {\n const hasCount = typeof count === \"number\";\n const iconName =\n hasCount && count > 0 ? \"bookmark-filled\" : \"bookmark-outlined\";\n const showTruncatedCount = hasCount && count > 99;\n const ariaLabel = hasCount\n ? `${label}: ${count} saved unit${count === 1 ? \"\" : \"s\"}`\n : label;\n\n return (\n <StyledInternalButton as=\"a\" href={href} aria-label={ariaLabel}>\n <OakFlex\n $width=\"fit-content\"\n $minWidth=\"spacing-32\"\n $height=\"spacing-32\"\n $background={\n loading ? \"bg-btn-secondary-hover\" : \"bg-decorative1-subdued\"\n }\n $font=\"heading-light-7\"\n $alignItems=\"center\"\n $justifyContent={[\"center\", \"initial\"]}\n $pl={[null, \"spacing-4\"]}\n $pr={[null, \"spacing-8\"]}\n $borderRadius=\"border-radius-s\"\n $borderColor={\n loading ? \"border-neutral-lighter\" : \"bg-decorative1-main\"\n }\n $ba=\"border-solid-s\"\n className={loading ? undefined : \"oak-save-count\"}\n $gap=\"spacing-4\"\n >\n <OakIcon\n iconName={iconName}\n data-testid={iconName}\n $width=\"spacing-24\"\n />\n {/*\n * We hide the label and count on mobile,\n * but show them on desktop.\n */}\n <OakBox $display={[\"none\", \"contents\"]}>\n {label}\n {hasCount && (\n <OakSpan>({showTruncatedCount ? \"99+\" : count})</OakSpan>\n )}\n </OakBox>\n </OakFlex>\n </StyledInternalButton>\n );\n};\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakBox, OakBoxProps } from \"@/components/layout-and-structure/OakBox\";\nimport { OakLabel } from \"@/components/form-elements/OakLabel\";\n\nexport type OakTimerProps = {\n timeCode: number;\n} & Omit<OakBoxProps, \"onClick\" | \"label\">;\n\nconst StyledTimeBox = styled(OakBox)`\n opacity: 0.9;\n padding-left: 2px;\n padding-right: 2px;\n`;\n\nexport const formatTimeCode = (seconds: number): string => {\n const totalSeconds = Math.floor(seconds);\n const minutes = Math.floor(totalSeconds / 60);\n const remainingSeconds = totalSeconds % 60;\n return `${String(minutes).padStart(2, \"0\")}:${String(\n remainingSeconds,\n ).padStart(2, \"0\")}`;\n};\n\nexport const OakTimer = (props: OakTimerProps) => {\n const { timeCode, ...oakBoxProps } = props;\n\n return (\n <StyledTimeBox\n $color={\"text-inverted\"}\n $borderRadius={\"border-radius-xs\"}\n $background={\"icon-primary\"}\n $font={[\"body-4\"]}\n {...oakBoxProps}\n >\n <OakLabel>{formatTimeCode(timeCode)}</OakLabel>\n </StyledTimeBox>\n );\n};\n\n/**\n *\n * OakTimer component takes time in seconds and converts it to a minutes and seconds format\n *\n */\n","import React, { useState } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakInlineBanner } from \"@/components/messaging-and-feedback/OakInlineBanner\";\nimport { OakPrimaryButton } from \"@/components/buttons/OakPrimaryButton\";\nimport { OakRadioButton } from \"@/components/form-elements/OakRadioButton\";\nimport { OakRadioGroup } from \"@/components/form-elements/OakRadioGroup\";\n\nexport interface Tier {\n tier: string;\n tierSlug: string;\n}\nexport interface Subject {\n subject: string;\n subjectSlug: string;\n}\n\nexport type OakDownloadsJourneyChildSubjectTierSelectorProps = {\n /* An array of Tier objects containing `tier` and `tierSlug` */\n tiers?: Tier[];\n /* An array of Subject objects containing `subject` and `subjectSlug` */\n childSubjects?: Subject[];\n /* Callback function which returns the selected tier and subject once the Next button is pressed. */\n getTierSubjectValues: (\n tierSlug: string,\n childSubjectSlug: string | null,\n ) => void;\n};\n\nconst OakDownloadsJourneyChildSubjectTierSelectorCss = css<OakDownloadsJourneyChildSubjectTierSelectorProps>``;\n\nconst UnstyledComponent = (\n props: OakDownloadsJourneyChildSubjectTierSelectorProps,\n) => {\n const { childSubjects, tiers, getTierSubjectValues } = props;\n\n const [childSubjectSelected, setChildSubjectSelected] = useState<\n string | null\n >(childSubjects?.[0] ? childSubjects[0]?.subjectSlug : null);\n const [tierSelected, setTierSelected] = useState<string>(\"foundation\");\n\n const tiersAvailable = tiers && tierSelected.length > 0;\n const childSubjectsAvailable = childSubjects && childSubjects.length > 0;\n function handleChildSubjectSelection(\n e: React.ChangeEvent<HTMLInputElement>,\n ): void {\n const childSubjectSlug = e.currentTarget.value;\n setChildSubjectSelected(childSubjectSlug);\n }\n\n function handleTierSelection(e: React.ChangeEvent<HTMLInputElement>): void {\n const tierSlug = e.currentTarget.value;\n setTierSelected(tierSlug);\n }\n\n function handleNextClick() {\n getTierSubjectValues(tierSelected, childSubjectSelected);\n }\n\n return (\n <OakFlex $flexDirection={\"column\"} $gap={\"spacing-24\"}>\n <OakInlineBanner\n isOpen={true}\n message={`Before downloading, choose ${\n childSubjectsAvailable && tiersAvailable ? \"options\" : \"an option\"\n } for KS4. The document will still display both KS3 and KS4.`}\n $maxWidth={\"spacing-640\"}\n />\n {childSubjectsAvailable && (\n <OakRadioGroup\n label=\"Choose subject for KS4 units\"\n name=\"childSubjectRadio\"\n onChange={handleChildSubjectSelection}\n $flexDirection={\"column\"}\n $gap={\"spacing-16\"}\n defaultValue={childSubjectSelected || \"combined-science\"}\n data-testid=\"child-subject-selector\"\n >\n {childSubjects.map(({ subject, subjectSlug }) => (\n <OakRadioButton\n id={subjectSlug}\n label={subject}\n value={subjectSlug}\n data-testid=\"child-subject-radio-button\"\n key={subjectSlug}\n />\n ))}\n </OakRadioGroup>\n )}\n {tiersAvailable && (\n <OakRadioGroup\n data-testid=\"tier-selector\"\n label=\"Choose learning tier for KS4 units\"\n name=\"tierRadio\"\n onChange={handleTierSelection}\n $flexDirection={\"column\"}\n $gap={\"spacing-16\"}\n defaultValue={tierSelected}\n >\n {tiers.map(({ tier, tierSlug }) => (\n <OakRadioButton\n id={tierSlug}\n label={tier}\n value={tierSlug}\n data-testid=\"tier-radio-button\"\n key={tierSlug}\n />\n ))}\n </OakRadioGroup>\n )}\n <OakPrimaryButton\n iconName=\"arrow-right\"\n isTrailingIcon={true}\n onClick={handleNextClick}\n >\n Next\n </OakPrimaryButton>\n </OakFlex>\n );\n};\n\n/**\n *\n * The component is used in the Curriculum Downloads journey for KS4 Maths and Science, where a tier\n * must be selected before download (Maths) as well as a child subject (Science).\n *\n * ### Callbacks\n * `getTierSubjectValues(tier, childSubject)`: a callback function to retrieve the selected values\n * once the Next button is pressed to continue on the Downloads journey.\n *\n */\nexport const OakDownloadsJourneyChildSubjectTierSelector = styled(\n UnstyledComponent,\n)`\n ${OakDownloadsJourneyChildSubjectTierSelectorCss}\n`;\n","import React, { ReactElement } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakP } from \"@/components/typography/OakP\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakImage } from \"@/components/images-and-icons/OakImage\";\nimport { OakMaxWidth } from \"@/components/layout-and-structure/OakMaxWidth\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\n\nexport type OakHeaderHeroProps = {\n authorImageSrc?: string;\n authorImageAlt?: string;\n authorName?: string;\n authorTitle?: string;\n heroImageSrc: string;\n heroImageAlt: string;\n headingTitle?: string;\n subHeadingText: string;\n breadcrumbs: ReactElement;\n cmsImage?: ReactElement;\n};\n\nconst StyledAuthorImage = styled(OakImage)`\n width: 50px;\n height: 50px;\n margin-right: 12px;\n img {\n border-radius: 50%;\n }\n`;\n\nconst OakHeaderHeroCss = css<OakHeaderHeroProps>``;\n\nconst UnstyledComponent = (props: OakHeaderHeroProps) => {\n const {\n authorName,\n authorTitle,\n authorImageSrc,\n authorImageAlt,\n heroImageSrc,\n heroImageAlt,\n headingTitle,\n breadcrumbs,\n subHeadingText,\n cmsImage,\n } = props;\n\n const hasAuthorProps =\n authorImageSrc && authorImageAlt && authorName && authorTitle;\n\n return (\n <OakBox\n $width={\"100%\"}\n $background={\"bg-decorative3-main\"}\n $overflowX={\"hidden\"}\n >\n <OakMaxWidth>\n <OakFlex\n $minWidth={\"100%\"}\n $flexDirection={[\"column-reverse\", \"column-reverse\", \"row\"]}\n $alignItems={[\"center\", null]}\n $minHeight={\"spacing-360\"}\n $background={\"bg-decorative3-main\"}\n $zIndex={\"neutral\"}\n $justifyContent={[\"space-between\"]}\n data-testid=\"oak-header-component\"\n >\n <OakFlex\n $alignSelf={\"flex-start\"}\n $height={\"100%\"}\n $flexDirection={\"column\"}\n >\n <OakBox $display={[\"none\", \"none\", \"block\"]} $pv={\"spacing-24\"}>\n {breadcrumbs}\n </OakBox>\n <OakFlex\n $flexDirection={\"column\"}\n $maxWidth={\"spacing-640\"}\n $minHeight={[\"spacing-0\", \"spacing-0\", \"spacing-360\"]}\n $mb={[\"spacing-0\", \"spacing-48\", \"spacing-0\"]}\n $justifyContent={\"center\"}\n >\n <OakHeading\n tag=\"h1\"\n $color={\"text-primary\"}\n $font={[\"heading-4\", \"heading-3\"]}\n $mb={\"spacing-24\"}\n >\n {headingTitle}\n </OakHeading>\n {hasAuthorProps && (\n <OakFlex\n $mb={\"spacing-24\"}\n $flexDirection={\"row\"}\n $alignItems={\"center\"}\n >\n <StyledAuthorImage\n alt={authorImageAlt}\n src={authorImageSrc}\n $zIndex={\"in-front\"}\n />\n <OakBox>\n <OakP $font={\"heading-7\"}>{authorName}</OakP>\n <OakP $font={\"body-3\"}>{authorTitle}</OakP>\n </OakBox>\n </OakFlex>\n )}\n <OakP $font={\"body-1\"} $mb={[\"spacing-48\", \"spacing-0\"]}>\n {subHeadingText}\n </OakP>\n </OakFlex>\n </OakFlex>\n\n <OakFlex\n $position={\"relative\"}\n $minHeight={[\"spacing-180\", \"spacing-480\", \"spacing-480\"]}\n $alignItems={\"center\"}\n $justifyContent={\"center\"}\n $mb={[\"spacing-0\", \"spacing-32\", \"spacing-0\"]}\n >\n {cmsImage ? (\n cmsImage\n ) : (\n <OakImage\n $transform={\"rotate(-2.025deg)\"}\n src={heroImageSrc}\n width={100}\n $minHeight={[\"spacing-240\", \"spacing-360\", \"spacing-360\"]}\n $minWidth={[\"spacing-240\", \"spacing-640\", \"spacing-480\"]}\n alt={heroImageAlt}\n $zIndex={\"in-front\"}\n />\n )}\n <OakFlex\n $position={\"absolute\"}\n $top={\"spacing-0\"}\n $bottom={\"spacing-0\"}\n $width={[\"spacing-360\", \"spacing-960\", \"spacing-960\"]}\n >\n <OakIcon\n iconName=\"loopdown\"\n alt=\"loopdown ui-graphic\"\n $position={\"absolute\"}\n $height={\"100%\"}\n $width={\"100%\"}\n />\n </OakFlex>\n </OakFlex>\n <OakFlex\n $alignSelf={\"flex-start\"}\n $ml={\"spacing-24\"}\n $pt={\"spacing-24\"}\n $pb={[null, \"spacing-24\"]}\n $display={[\"block\", \"block\", \"none\"]}\n >\n {breadcrumbs}\n </OakFlex>\n </OakFlex>\n </OakMaxWidth>\n </OakBox>\n );\n};\n\n/**\n *\n * Oak Heading component with hero image, can be used for blog posts, articles, and other content pages.\n *\n * This Oak component can be passed the OWA breadcrumbs component as a prop. Currently this component does not exist in the component library.\n */\nexport const OakHeaderHero = styled(UnstyledComponent)`\n ${OakHeaderHeroCss}\n`;\n","import React, { ElementType } from \"react\";\nimport styled from \"styled-components\";\n\nimport {\n InternalButton,\n InternalButtonProps,\n} from \"@/components/internal-components/InternalButton\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon, OakIconName } from \"@/components/images-and-icons/OakIcon\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\nimport { OakUiRoleToken } from \"@/styles/theme/color\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { OakPromoTag } from \"@/components/owa/OakPromoTag\";\nimport { parseColorFilter } from \"@/styles/helpers/parseColorFilter\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { InternalStyledSvg } from \"@/components/internal-components/InternalStyledSvg\";\nimport { Underline } from \"@/svgs\";\n\nconst StyledButton = styled(InternalButton)`\n :hover .buttonText {\n text-decoration: underline;\n color: ${parseColor(\"text-primary\")};\n }\n\n :focus .focusUnderlineSvg {\n display: block;\n filter: ${parseColorFilter(\"icon-promo\")}\n drop-shadow(${parseDropShadow(\"drop-shadow-black\")});\n transform: rotate(-2deg);\n }\n\n :focus .activeUnderline {\n display: none;\n }\n\n :focus .focusUnderline {\n display: block;\n }\n .activeUnderlineSvg,\n .focusUnderlineSvg {\n position: absolute;\n bottom: 0;\n }\n`;\n\nexport type OakHomepageTabButtonProps = InternalButtonProps & {\n title: string;\n iconName: OakIconName;\n isActive?: boolean;\n showNewIcon?: boolean;\n};\n\nexport const OakHomepageTabButton = <C extends ElementType = \"button\">(\n props: OakHomepageTabButtonProps & PolymorphicPropsWithoutRef<C>,\n) => {\n const {\n element = \"button\",\n iconName,\n isActive,\n title,\n showNewIcon,\n ...rest\n } = props;\n\n const color: OakUiRoleToken = isActive ? \"text-primary\" : \"text-subdued\";\n\n return (\n <StyledButton\n element={element}\n aria-current={isActive ? \"page\" : null}\n title={title}\n disabled={isActive}\n {...rest}\n >\n <OakFlex\n $height={\"100%\"}\n $flexDirection={\"column\"}\n $alignItems={\"center\"}\n $justifyContent={\"space-between\"}\n $gap={\"spacing-16\"}\n >\n <OakIcon\n $width={[\"spacing-48\", \"spacing-92\", \"spacing-92\"]}\n $height={[\"spacing-48\", \"spacing-92\", \"spacing-92\"]}\n iconName={iconName}\n $colorFilter={color}\n alt=\"\"\n />\n\n <OakFlex\n $alignItems={\"center\"}\n $justifyContent={\"center\"}\n $gap=\"spacing-4\"\n $position={\"relative\"}\n $pb={[\"spacing-12\", \"spacing-24\"]} // this is needed to position the hand drawn underline\n >\n <OakSpan\n className=\"buttonText\"\n $font={[\"body-3-bold\", \"heading-7\"]}\n $color={color}\n $textAlign={\"center\"}\n >\n {title}\n </OakSpan>\n\n {showNewIcon && (\n <OakPromoTag display={[\"none\", \"flex\"]} width={\"spacing-48\"} />\n )}\n\n {isActive && (\n <OakBox\n className=\"activeUnderline\"\n $position={\"absolute\"}\n $bottom={\"spacing-0\"}\n $width={\"100%\"}\n >\n <InternalStyledSvg\n className=\"activeUnderlineSvg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n height=\"6\"\n width={\"100%\"}\n >\n <Underline />\n </InternalStyledSvg>\n </OakBox>\n )}\n <OakBox\n className=\"focusUnderline\"\n $display={\"none\"}\n $position={\"absolute\"}\n $bottom={\"spacing-0\"}\n $width={\"100%\"}\n >\n <InternalStyledSvg\n className=\"focusUnderlineSvg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"8\"\n width={\"100%\"}\n preserveAspectRatio=\"none\"\n >\n <Underline />\n </InternalStyledSvg>\n </OakBox>\n </OakFlex>\n </OakFlex>\n </StyledButton>\n );\n};\n","import React, { useContext } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakP } from \"@/components/typography/OakP\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { OakLI } from \"@/components/typography/OakLI\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { OakUiRoleToken } from \"@/styles\";\nimport { RadioContext } from \"@/components/form-elements\";\nimport { InternalRadioWrapper } from \"@/components/internal-components/InternalRadioWrapper\";\nimport { InternalRadio } from \"@/components/internal-components/InternalRadio\";\n\nconst FlexWithFocus = styled(OakFlex)`\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n outline: none;\n\n &:hover .hover-text {\n text-decoration: underline;\n }\n\n &:focus-visible {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n`;\n\nconst StyledListItem = styled(OakFlex)<{\n $disabled?: boolean;\n $indexHoverBgColour: OakUiRoleToken;\n $hoverBgColour: OakUiRoleToken;\n}>`\n text-align: initial;\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n\n ${(props) =>\n !props.$disabled &&\n css`\n /* Don't apply hover styles on touch devices */\n @media (hover: hover) {\n &:hover {\n ${StyledOakIndexBox} {\n background: ${parseColor(props.$indexHoverBgColour)};\n }\n background: ${parseColor(props.$hoverBgColour)};\n }\n }\n }\n `}\n\n ${(props) =>\n props.$disabled &&\n css`\n cursor: not-allowed;\n background: ${parseColor(\"bg-neutral\")};\n `}\n`;\n\nconst StyledOakIndexBox = styled(OakFlex)<{\n $indexHoverBgColour: OakUiRoleToken;\n}>`\n animation-timing-function: ease-out;\n transition-duration: 300ms;\n @media (hover: hover) {\n &:hover {\n ${(props) => css`\n background: ${parseColor(props.$indexHoverBgColour)};\n `}\n }\n }\n`;\n\nexport type OakListItemProps = {\n unavailable?: boolean;\n index: number;\n title: string;\n isLegacy: boolean;\n firstItemRef?:\n | React.MutableRefObject<HTMLDivElement | null>\n | null\n | undefined;\n onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;\n middleSlot?: React.ReactNode;\n endSlot?: React.ReactNode;\n hoverBgColour?: OakUiRoleToken;\n indexBgColour?: OakUiRoleToken;\n indexHoverBgColour?: OakUiRoleToken;\n indexLegacyBgColour?: OakUiRoleToken;\n expandedContent?: React.ReactNode;\n isExpanded?: boolean;\n asRadio?: boolean;\n radioValue?: string;\n};\n\n/**\n * * OakListItem component used as links for unit cards\n * * adding asRadio and radioValue props to allow OakListItem to be used as radio buttons within OakUnitsContainer if the OakUnitsContainer is passed a radioGroupName prop. This allows for better accessibility when OakListItem is used in OakUnitsContainer, as the user can select a unit by clicking anywhere on the card, rather than having to click on a specific radio button.\n */\n\nexport const OakListItem = (props: OakListItemProps) => {\n const {\n title,\n unavailable,\n onClick,\n index,\n isLegacy,\n firstItemRef,\n middleSlot,\n endSlot,\n hoverBgColour = \"bg-decorative4-subdued\",\n indexBgColour = \"bg-decorative4-main\",\n indexHoverBgColour = \"bg-decorative4-main\",\n indexLegacyBgColour = \"bg-decorative4-subdued\",\n expandedContent,\n isExpanded,\n asRadio,\n radioValue,\n } = props;\n\n const radioContext = useContext(RadioContext);\n const onClickLocal = unavailable ? undefined : onClick;\n const textColor = unavailable ? \"text-disabled\" : \"text-primary\";\n\n let background: OakUiRoleToken;\n if (unavailable) {\n background = \"bg-neutral-stronger\";\n } else if (isLegacy) {\n background = indexLegacyBgColour;\n } else {\n background = indexBgColour;\n }\n\n const checkboxSize = \"spacing-24\";\n const checkedBorderColor = \"border-primary\";\n const isExpandedBorderRadius = \"border-radius-square\";\n const unavailableBgColor = \"bg-neutral\";\n\n return (\n <OakLI\n $listStyle={\"none\"}\n $width={\"100%\"}\n $display={\"flex\"}\n $flexDirection={\"column\"}\n >\n <label\n htmlFor={asRadio ? radioValue : undefined}\n onClick={onClickLocal ?? undefined}\n style={asRadio ? { cursor: \"pointer\" } : undefined}\n >\n <OakFlex $flexGrow={1} $alignItems={\"center\"} $columnGap={\"spacing-16\"}>\n {asRadio && radioValue && (\n <InternalRadioWrapper\n checked={radioValue === radioContext.currentValue}\n size={checkboxSize}\n disabled={unavailable}\n radioBorderColor={checkedBorderColor}\n internalRadio={\n <InternalRadio\n id={radioValue}\n name={radioContext.name}\n value={radioValue}\n disabled={unavailable}\n onChange={radioContext.onValueUpdated}\n checked={radioValue === radioContext.currentValue}\n aria-label={asRadio ? title : undefined}\n />\n }\n />\n )}\n\n {/* Desktop layout - aria-hidden when asRadio so only the radio is a swipe stop */}\n <StyledListItem\n data-testid=\"OakListItem-id\"\n $alignItems={\"center\"}\n $background={unavailable ? unavailableBgColor : \"bg-primary\"}\n $borderRadius=\"border-radius-m\"\n $bbrr={isExpanded ? isExpandedBorderRadius : \"border-radius-m\"}\n $bblr={isExpanded ? isExpandedBorderRadius : \"border-radius-m\"}\n $disabled={unavailable}\n $pr=\"spacing-16\"\n $width=\"100%\"\n $display={[\"none\", \"flex\"]}\n $indexHoverBgColour={indexHoverBgColour}\n $hoverBgColour={hoverBgColour}\n aria-hidden={asRadio}\n >\n <FlexWithFocus\n $borderRadius=\"border-radius-m\"\n $gap=\"spacing-16\"\n $alignItems=\"center\"\n $width=\"100%\"\n $height=\"100%\"\n ref={firstItemRef}\n aria-hidden={asRadio}\n >\n <StyledOakIndexBox\n $background={background}\n $btlr={\"border-radius-m\"}\n $bblr={isExpanded ? isExpandedBorderRadius : \"border-radius-m\"}\n $justifyContent={\"center\"}\n $alignItems={\"center\"}\n $minWidth=\"spacing-64\"\n $alignSelf=\"stretch\"\n $indexHoverBgColour={indexHoverBgColour}\n aria-hidden=\"true\"\n >\n <OakSpan $font={\"heading-5\"} $color={textColor}>\n {index}\n </OakSpan>\n </StyledOakIndexBox>\n <OakFlex $pv=\"spacing-20\" $pr=\"spacing-16\" $flexGrow={1}>\n <OakP\n $font={\"heading-7\"}\n $color={textColor}\n className=\"hover-text\"\n >\n {title}\n </OakP>\n </OakFlex>\n <OakFlex\n $minWidth=\"spacing-80\"\n $alignItems=\"center\"\n $justifyContent=\"end\"\n $color={textColor}\n >\n {middleSlot}\n </OakFlex>\n <OakFlex\n $font={\"heading-light-7\"}\n $color={textColor}\n $alignItems=\"center\"\n $justifyContent=\"end\"\n $minWidth={\"spacing-160\"}\n >\n {endSlot}\n </OakFlex>\n </FlexWithFocus>\n </StyledListItem>\n {/* Mobile layout */}\n <StyledListItem\n data-testid=\"OakListItem-id\"\n $background={unavailable ? unavailableBgColor : \"bg-primary\"}\n $borderRadius=\"border-radius-m\"\n $bbrr={isExpanded ? isExpandedBorderRadius : \"border-radius-m\"}\n $bblr={isExpanded ? isExpandedBorderRadius : \"border-radius-m\"}\n $disabled={unavailable}\n $display={[\"flex\", \"none\"]}\n $width=\"100%\"\n $pa=\"spacing-16\"\n $indexHoverBgColour={indexHoverBgColour}\n $hoverBgColour={hoverBgColour}\n aria-hidden={asRadio}\n >\n <OakFlex $flexDirection=\"column\" $gap=\"spacing-16\" $width=\"100%\">\n <OakFlex $gap=\"spacing-16\">\n <OakFlex\n $background={background}\n $justifyContent={\"center\"}\n $alignItems={\"center\"}\n $borderRadius=\"border-radius-m\"\n $width=\"spacing-40\"\n $height=\"spacing-40\"\n $minWidth=\"spacing-40\"\n >\n <OakHeading tag=\"h3\" $font=\"heading-5\" $color={textColor}>\n {index}\n </OakHeading>\n </OakFlex>\n <OakBox $width=\"100%\">\n <OakP $font=\"heading-7\" $color={textColor}>\n {title}\n </OakP>\n </OakBox>\n </OakFlex>\n <OakFlex\n $justifyContent=\"space-between\"\n $alignItems=\"center\"\n $color={textColor}\n >\n {middleSlot}\n {endSlot}\n </OakFlex>\n </OakFlex>\n </StyledListItem>\n </OakFlex>\n {expandedContent && isExpanded && (\n <OakFlex $ml={\"spacing-24\"} $flexGrow={1}>\n <OakFlex\n $background={\"bg-primary\"}\n $pa={\"spacing-24\"}\n $borderColor={indexBgColour}\n $bt={\"border-solid-s\"}\n $bbrr={\"border-radius-m\"}\n $bblr={\"border-radius-m\"}\n $ml={\"spacing-16\"}\n $flexGrow={1}\n >\n {expandedContent}\n </OakFlex>\n </OakFlex>\n )}\n </label>\n </OakLI>\n );\n};\n","import React from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { StyledButtonWrapper } from \"@/components/internal-components/InternalShadowRectButton\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport {\n oakPlaceholder,\n placeholderStyles,\n OakImage,\n} from \"@/components/images-and-icons/OakImage\";\nimport { OakP } from \"@/components/typography/OakP\";\nimport { OakLI } from \"@/components/typography/OakLI\";\nimport { OakUiRoleToken } from \"@/styles\";\nimport { InternalButton } from \"@/components/internal-components/InternalButton\";\nimport { sizeStyle, SizeStyleProps } from \"@/styles/utils/sizeStyle\";\nimport { positionStyle } from \"@/styles/utils/positionStyle\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { OakTagFunctional } from \"@/components/messaging-and-feedback/OakTagFunctional\";\nimport { OakTimer } from \"@/components/owa/OakTimer\";\nimport { formatTimeCode } from \"@/components/owa/OakTimer/OakTimer\";\n\ntype MuxPlayingState = \"standard\" | \"playing\" | \"played\";\n\nexport type OakMediaClipProps = {\n thumbnailImage?: string;\n timeCode: number;\n clipName: string;\n learningCycle?: string;\n muxPlayingState: MuxPlayingState;\n onClick: () => void;\n disabled?: boolean;\n imageAltText: string;\n isAudioClip?: boolean;\n element?: \"button\" | \"a\";\n};\n\ntype MediaClipStyles = {\n [K in\n | \"defaultBackground\"\n | \"defaultTextColor\"\n | \"hoverBackground\"\n | \"hoverTextColor\"\n | \"clipNameTitle\"]: OakUiRoleToken;\n};\n\nconst getButtonStyles = (muxPlayingState: MuxPlayingState): MediaClipStyles => {\n switch (muxPlayingState) {\n case \"standard\":\n return {\n defaultBackground: \"bg-primary\",\n defaultTextColor: \"text-inverted\",\n hoverBackground: \"bg-btn-secondary-hover\",\n hoverTextColor: \"text-primary\",\n clipNameTitle: \"text-primary\",\n };\n case \"playing\":\n return {\n defaultBackground: \"bg-decorative1-subdued\",\n defaultTextColor: \"text-primary\",\n hoverBackground: \"bg-decorative1-main\",\n hoverTextColor: \"text-primary\",\n clipNameTitle: \"text-primary\",\n };\n case \"played\":\n return {\n defaultBackground: \"bg-primary\",\n defaultTextColor: \"text-subdued\",\n hoverBackground: \"bg-btn-secondary-hover\",\n hoverTextColor: \"text-primary\",\n clipNameTitle: \"text-subdued\",\n };\n }\n};\nconst MediaButtonWrapper = styled(StyledButtonWrapper)`\n min-height: 72px;\n width: 100%;\n`;\n\nexport const StyledMediaClipImage = styled(OakImage)`\n ${placeholderStyles}\n`;\n\nconst ImageBox = styled(OakFlex)<{ disabled?: boolean }>`\n img {\n border-radius: 2px;\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n ${(props) =>\n props.disabled &&\n css`\n &::after {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: lightgray;\n opacity: 0.5;\n border-radius: 2px;\n }\n `}\n`;\n\nconst TextBox = styled(OakFlex)`\n position: \"relative\";\n overflow: hidden;\n text-overflow: ellipsis;\n h4 {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: 3;\n }\n`;\n\nconst StyledInternalButton = styled(InternalButton)<\n SizeStyleProps & {\n $defaultTextColor: OakUiRoleToken;\n $defaultBackground: OakUiRoleToken;\n $defaultBorderColor: OakUiRoleToken;\n $hoverTextColor: OakUiRoleToken;\n $hoverBackground: OakUiRoleToken;\n $hoverBorderColor: OakUiRoleToken;\n $disabledBackground: OakUiRoleToken;\n $disabledBorderColor: OakUiRoleToken;\n $disabledTextColor: OakUiRoleToken;\n }\n>`\n ${positionStyle}\n ${sizeStyle}\n display: inline-block;\n transition: opacity 300ms ease-out;\n ${(props) => css`\n &:hover {\n h4 {\n text-decoration: ${props.$muxPlayingState === \"standard\"\n ? \"underline\"\n : \"none\"};\n }\n color: ${parseColor(props.$hoverTextColor)};\n background: ${parseColor(props.$hoverBackground)};\n border-color: ${parseColor(props.$hoverBorderColor)};\n }\n &:active {\n background: ${parseColor(props.$defaultBackground)};\n border-color: ${parseColor(props.$defaultBorderColor)};\n color: ${parseColor(props.$defaultTextColor)};\n }\n &:disabled {\n background: ${parseColor(props.$disabledBackground)};\n border-color: ${parseColor(props.$disabledBorderColor)};\n color: ${parseColor(props.$disabledTextColor)};\n }\n `}\n`;\n\nexport const OakMediaClip = ({\n thumbnailImage,\n timeCode,\n clipName,\n learningCycle,\n muxPlayingState,\n onClick,\n disabled,\n imageAltText,\n isAudioClip,\n element = \"button\",\n}: OakMediaClipProps) => {\n const buttonStyles = getButtonStyles(muxPlayingState);\n const formattedTimeCode = formatTimeCode(timeCode);\n const buttonAriaLabel = `${isAudioClip ? \"Audio\" : \"Video\"} - ${clipName}${\n learningCycle ? ` - ${learningCycle}` : \"\"\n }, length: ${formattedTimeCode}${\n muxPlayingState === \"played\" ? `, Played` : \"\"\n }`;\n\n return (\n <OakLI $mb={\"spacing-8\"}>\n <MediaButtonWrapper\n $position={\"relative\"}\n $borderRadius={\"border-radius-s\"}\n >\n <OakBox\n className=\"grey-shadow\"\n $position={\"absolute\"}\n $borderRadius={\"border-radius-s\"}\n $width={\"100%\"}\n $height={\"100%\"}\n $top=\"spacing-0\"\n />\n\n <OakBox\n className=\"yellow-shadow\"\n $position={\"absolute\"}\n $borderRadius={\"border-radius-s\"}\n $width={\"100%\"}\n $height={\"100%\"}\n $top=\"spacing-0\"\n />\n <StyledInternalButton\n element={element}\n tabIndex={0}\n className=\"internal-button\"\n $width={\"100%\"}\n $height={\"100%\"}\n $background={buttonStyles.defaultBackground}\n $borderColor=\"transparent\"\n $borderRadius={\"border-radius-s\"}\n $position={\"relative\"}\n disabled={disabled}\n $defaultBorderColor=\"transparent\"\n $color={buttonStyles.defaultTextColor}\n $hoverBackground={buttonStyles.hoverBackground}\n $hoverBorderColor=\"transparent\"\n $hoverTextColor=\"text-primary\"\n $disabledBackground=\"bg-btn-secondary-disabled\"\n $disabledBorderColor=\"text-disabled\"\n $disabledTextColor=\"text-disabled\"\n $justifyContent={\"flex-start\"}\n onClick={onClick}\n $pa={\"spacing-8\"}\n $muxPlayingState={muxPlayingState}\n aria-label={buttonAriaLabel}\n >\n <OakFlex\n $flexDirection={\"row\"}\n $alignItems={\"center\"}\n $width={\"100%\"}\n >\n <>\n <ImageBox\n $height={\"spacing-56\"}\n $width={\"spacing-100\"}\n $borderRadius={\"border-radius-xs\"}\n $mr={\"spacing-16\"}\n $position={\"relative\"}\n disabled={disabled}\n $flexShrink={0}\n >\n {!isAudioClip && thumbnailImage ? (\n <StyledMediaClipImage\n $height={\"100%\"}\n $width={\"100%\"}\n src={thumbnailImage ?? oakPlaceholder}\n alt={imageAltText}\n $showOakPlaceholder={!thumbnailImage ? true : false}\n $borderRadius={\"border-radius-xs\"}\n />\n ) : (\n <OakIcon\n $height={\"100%\"}\n $width={\"100%\"}\n iconName={\"audio-clip-small\"}\n alt={imageAltText}\n $borderRadius={\"border-radius-xs\"}\n />\n )}\n <OakTimer\n timeCode={timeCode}\n $position={\"absolute\"}\n $bottom={\"spacing-4\"}\n $right={\"spacing-4\"}\n />\n </ImageBox>\n\n <TextBox\n $width={\"100%\"}\n $flexDirection={\"column\"}\n $gap={\"spacing-4\"}\n >\n <OakHeading\n $textOverflow={\"ellipsis\"}\n tag=\"h4\"\n $font={\"heading-7\"}\n $color={\n !disabled ? buttonStyles.clipNameTitle : \"text-disabled\"\n }\n >\n {clipName}\n </OakHeading>\n {learningCycle && (\n <OakP\n $color={!disabled ? \"text-subdued\" : \"text-disabled\"}\n $font={\"body-3\"}\n $textOverflow={\"ellipsis\"}\n $overflow={\"hidden\"}\n $whiteSpace={\"nowrap\"}\n >\n {learningCycle}\n </OakP>\n )}\n </TextBox>\n </>\n {muxPlayingState === \"played\" && !disabled && (\n <OakFlex $flexGrow={1}>\n <OakTagFunctional label=\"Played\" $background={\"bg-neutral\"} />\n </OakFlex>\n )}\n </OakFlex>\n </StyledInternalButton>\n </MediaButtonWrapper>\n </OakLI>\n );\n};\n\n/**\n *\n * OakMediaClip component adapted from the Internal button component, has 4 different states, standard, playing, played and disabled\n * The following callbacks are available for tracking focus events:\n *\n * timeCode should be provided in seconds as the OakTimer component converts this to hours and minutes format\n *\n * ### Callbacks\n * - `onClick`\n *\n */\n","import React from \"react\";\nimport styled from \"styled-components\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport {\n OakImage,\n oakPlaceholder,\n} from \"@/components/images-and-icons/OakImage\";\nimport { OakTypography } from \"@/components/typography/OakTypography\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { parseBorderRadius } from \"@/styles/helpers/parseBorderRadius\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { parseTransitions } from \"@/styles/helpers/parseTransitions\";\nimport { getMediaQuery } from \"@/styles/utils/responsiveStyle\";\nimport { parseSpacing } from \"@/styles/helpers/parseSpacing\";\n\nexport type OakMediaClipStackListItemProps = {\n title: string;\n href: string;\n imageUrl?: string;\n imageAltText: string;\n numberOfClips: number;\n isAudioClip: boolean;\n onClick?: () => void;\n rel?: string;\n};\n\nconst OakMediaClipStackListItemLink = styled(OakFlex)`\n transition: ${parseTransitions(\"standard-ease\")};\n\n &:hover {\n h5 {\n text-decoration: underline;\n }\n }\n\n &:focus-visible {\n outline: none;\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n\n &:hover,\n &:focus-visible {\n img {\n -webkit-filter: brightness(80%);\n transition: ${parseTransitions(\"standard-ease\")};\n }\n }\n`;\n\nconst ImageStackShadow = styled(OakBox)`\n box-shadow: ${parseColor(\"icon-disabled\")} 8px -6px;\n\n margin-top: 10px;\n margin-right: 15px;\n\n img {\n -webkit-filter: brightness(100%);\n }\n\n &::after {\n content: \"\";\n position: absolute;\n top: -6px;\n left: 8px;\n width: 100%;\n height: 100%;\n box-shadow: ${parseColor(\"border-neutral-lighter\")} 7px -4px;\n border-radius: ${parseBorderRadius(\"border-radius-s\")};\n }\n\n @media ${getMediaQuery(\"mobile\")} {\n box-shadow: ${parseColor(\"border-neutral\")} 4px -3px;\n\n &::after {\n top: -3px;\n left: 4px;\n box-shadow: ${parseColor(\"border-neutral-lighter\")} 4px -3px;\n }\n }\n\n #play-icon {\n position: absolute;\n left: 50%;\n top: 50%;\n margin-left: -16px;\n margin-top: -16px;\n }\n`;\n\nconst StyledMediaClipImage = styled(OakImage)`\n background-color: ${parseColor(\"bg-decorative2-very-subdued\")};\n background-size: ${parseSpacing(\"spacing-64\")};\n background-position: center;\n background-repeat: no-repeat;\n height: 100%;\n width: 100%;\n img {\n object-fit: fill;\n border-radius: ${parseBorderRadius(\"border-radius-s\")};\n }\n`;\n\nexport const OakMediaClipStackListItem = (\n props: OakMediaClipStackListItemProps,\n) => {\n const {\n title,\n numberOfClips,\n imageUrl,\n imageAltText,\n href,\n isAudioClip,\n rel,\n ...rest\n } = props;\n\n return (\n <OakMediaClipStackListItemLink\n as=\"a\"\n rel={rel}\n href={href}\n $display={\"flex\"}\n $flexDirection={[\"row\", \"row\", \"column\"]}\n $gap={[\"spacing-8\", \"spacing-8\", \"spacing-0\"]}\n $width={\"fit-content\"}\n $alignItems={[\"center\", \"center\", \"flex-start\"]}\n {...rest}\n >\n <OakBox>\n <ImageStackShadow\n $borderRadius={\"border-radius-s\"}\n $width={[\"spacing-100\", \"spacing-100\", \"spacing-180\"]}\n $height={[\"spacing-64\", \"spacing-64\", \"spacing-100\"]}\n $position={\"relative\"}\n $mb={[\"spacing-0\", \"spacing-0\", \"spacing-12\"]}\n >\n {!isAudioClip ? (\n <StyledMediaClipImage\n src={!imageUrl ? oakPlaceholder : imageUrl}\n alt={imageAltText}\n $borderRadius={\"border-radius-s\"}\n $overflow={\"hidden\"}\n />\n ) : (\n <OakIcon\n $width={[\"spacing-100\", \"spacing-100\", \"spacing-180\"]}\n $height={[\"spacing-64\", \"spacing-64\", \"spacing-100\"]}\n iconName={\"audio-clip-large\"}\n alt={imageAltText}\n $position={\"absolute\"}\n $borderRadius={\"border-radius-s\"}\n $overflow={\"hidden\"}\n $objectFit={\"cover\"}\n />\n )}\n <OakIcon\n id=\"play-icon\"\n iconName=\"play\"\n $width={\"spacing-32\"}\n $height={\"spacing-32\"}\n />\n </ImageStackShadow>\n </OakBox>\n <OakBox $mb={[\"spacing-0\", \"spacing-0\", \"spacing-16\"]}>\n <OakHeading tag=\"h3\" $font=\"heading-7\" $color={\"text-primary\"}>\n {title}\n </OakHeading>\n <OakTypography $font=\"body-3\" $color={\"text-subdued\"}>\n {numberOfClips} {numberOfClips === 1 ? \"clip\" : \"clips\"}\n </OakTypography>\n </OakBox>\n </OakMediaClipStackListItemLink>\n );\n};\n\n/**\n *\n * OakMediaClipStackListItemLink component is a link that displays a stack of videos with a title and number of clips\n *\n */\n","import React from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { flexStyle, FlexStyleProps } from \"@/styles/utils/flexStyle\";\nimport { paddingStyle, PaddingStyleProps } from \"@/styles/utils/spacingStyle\";\nimport { getBreakpoint } from \"@/styles/utils/responsiveStyle\";\nimport { parseColor } from \"@/styles/helpers/parseColor\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { OakUiRoleToken } from \"@/styles/theme/color\";\nimport { OakFontToken } from \"@/styles/theme/typography\";\n\nexport type MenuItemProps = {\n heading: string;\n subheading?: string;\n href: string;\n};\n\nconst StyledLink = styled(\"a\")<\n FlexStyleProps &\n PaddingStyleProps & {\n isSelected: boolean;\n hoverBorderColor: OakUiRoleToken;\n selectedBackground?: OakUiRoleToken;\n }\n>`\n text-decoration: none;\n display: flex;\n outline: none;\n background-color: ${(props) =>\n props.isSelected ? parseColor(props.selectedBackground) : undefined};\n\n @media (min-width: ${getBreakpoint(\"small\")}px) {\n border-left: ${(props) =>\n props.isSelected ? \"4px solid #222222\" : \"4px solid transparent\"};\n :hover {\n text-decoration: underline;\n border-color: ${(props) =>\n props.isSelected\n ? parseColor(\"bg-btn-primary-hover\")\n : parseColor(props.hoverBorderColor)};\n }\n }\n\n :focus-visible {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n border-color: transparent;\n border-radius: 4px;\n }\n ${flexStyle}\n ${paddingStyle}\n`;\n\nexport type OakSideMenuNavLinkProps = FlexStyleProps &\n PaddingStyleProps & {\n item: MenuItemProps;\n isSelected: boolean;\n onClick: () => void;\n hoverBorderColor?: OakUiRoleToken;\n selectedBackground?: OakUiRoleToken;\n selectedHeadingFont?: OakFontToken;\n };\n\nconst OakSideMenuNavLinkCss = css<OakSideMenuNavLinkProps>`\n ${flexStyle}\n ${paddingStyle}\n`;\n\nconst UnstyledComponent = (props: OakSideMenuNavLinkProps) => {\n const {\n item,\n isSelected,\n onClick,\n hoverBorderColor = \"bg-decorative1-main\",\n selectedBackground,\n selectedHeadingFont = \"heading-light-7\",\n ...rest\n } = props;\n return (\n <StyledLink\n $alignItems={[\"center\", \"flex-start\"]}\n $columnGap=\"spacing-16\"\n href={item.href}\n $ph={[\"spacing-0\", \"spacing-12\"]}\n isSelected={isSelected}\n hoverBorderColor={hoverBorderColor}\n selectedBackground={selectedBackground}\n $flexDirection={[\"row\", \"column\"]}\n onClick={onClick}\n aria-current={isSelected ? \"true\" : undefined}\n {...rest}\n >\n <OakFlex\n $flexDirection={[\"row\", \"column\"]}\n $columnGap={[\"spacing-16\", \"spacing-4\"]}\n $flexWrap=\"wrap\"\n >\n <OakSpan\n $font={isSelected ? selectedHeadingFont : \"heading-light-7\"}\n $color=\"text-primary\"\n >\n {item.heading}\n </OakSpan>\n {item.subheading && (\n <OakSpan\n $font=\"body-3\"\n $color=\"text-subdued\"\n $whiteSpace={\"break-spaces\"}\n >\n {item.subheading}\n </OakSpan>\n )}\n </OakFlex>\n <OakIcon\n $display={[\"block\", \"none\"]}\n iconName=\"chevron-right\"\n $width=\"spacing-24\"\n $pl=\"spacing-12\"\n />\n </StyledLink>\n );\n};\n\n/**\n *\n * The OakSideMenuNavLink component is a styled link that represents a navigation item in the side menu.\n * It is designed to be used within the OakSideMenuNav component, but can also be used independently.\n * The following callbacks are available for tracking focus events:\n *\n * ### Callbacks\n * - `onClick`: A callback function that is triggered when the link is clicked.\n *\n * ### Props\n * - `item`: An object containing the heading, subheading, and href of the link.\n * - `isSelected`: A boolean indicating whether the link is currently selected.\n * - `onClick`: A callback function that is triggered when the link is clicked.\n */\nexport const OakSideMenuNavLink = styled(UnstyledComponent)`\n ${OakSideMenuNavLinkCss}\n`;\n","import React, { useState } from \"react\";\nimport styled from \"styled-components\";\n\nimport {\n MenuItemProps,\n OakSideMenuNavLink,\n} from \"@/components/owa/OakSideMenuNavLink\";\nimport { OakAnchorTarget } from \"@/components/navigation/OakAnchorTarget\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { OakLI } from \"@/components/typography/OakLI\";\nimport { OakUL } from \"@/components/typography/OakUL\";\n\nconst StyledNav = styled.nav`\n outline: none;\n`;\n\nexport type OakSideMenuNavProps = {\n heading: string;\n menuItems: MenuItemProps[];\n anchorTargetId: string;\n};\n\nexport const OakSideMenuNav = (props: OakSideMenuNavProps) => {\n const { heading, menuItems, anchorTargetId } = props;\n const [selectedHref, setSelectedHref] = useState<string | null>(null);\n\n return (\n <StyledNav aria-labelledby=\"side-menu-header\">\n <OakAnchorTarget id={anchorTargetId} />\n <OakFlex\n $flexDirection=\"column\"\n $background={[\"bg-decorative1-subdued\", \"bg-primary\"]}\n $pa={[\"spacing-48\", \"spacing-0\"]}\n $gap=\"spacing-16\"\n >\n <OakHeading\n tag=\"h2\"\n $font=\"heading-light-7\"\n $color=\"text-subdued\"\n id=\"side-menu-header\"\n >\n {heading}\n </OakHeading>\n <OakUL $reset $display=\"flex\" $gap=\"spacing-16\" $flexDirection=\"column\">\n {menuItems.map((item) => (\n <OakLI key={item.href}>\n <OakSideMenuNavLink\n item={item}\n isSelected={selectedHref === item.href}\n onClick={() => setSelectedHref(item.href)}\n />\n </OakLI>\n ))}\n </OakUL>\n </OakFlex>\n </StyledNav>\n );\n};\n","import React, { ElementType } from \"react\";\n\nimport {\n InternalShadowRectButton,\n InternalShadowRectButtonProps,\n} from \"@/components/internal-components/InternalShadowRectButton\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\nimport { OakIcon, OakIconName } from \"@/components/images-and-icons/OakIcon\";\nimport { OakUiRoleToken } from \"@/styles\";\n\nexport type OakSubjectIconButtonProps = {\n phase: \"primary\" | \"secondary\" | \"non-curriculum\";\n subjectIconName: OakIconName;\n variant: \"vertical\" | \"horizontal\";\n selected?: boolean;\n} & Omit<\n InternalShadowRectButtonProps,\n | \"defaultBorderColor\"\n | \"defaultBackground\"\n | \"defaultTextColor\"\n | \"hoverBackground\"\n | \"hoverBorderColor\"\n | \"hoverTextColor\"\n | \"disabledBackground\"\n | \"disabledBorderColor\"\n | \"disabledTextColor\"\n | \"pv\"\n | \"ph\"\n | \"font\"\n>;\n\n/**\n *\n * A specific implementation of InternalRectButton\n *\n * Changes colour according to the phase prop. Can be used as a link or a button.\n * The following callbacks are available for tracking focus events:\n *\n * ### onClick\n * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`\n *\n * ### onHovered\n * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n */\n\nexport const OakSubjectIconButton = <C extends ElementType = \"button\">({\n phase,\n element,\n subjectIconName,\n variant,\n selected,\n ...rest\n}: OakSubjectIconButtonProps & PolymorphicPropsWithoutRef<C>) => {\n const backgroundColourLevel = getBackgroundColourLevel(phase);\n const defaultBackground: OakUiRoleToken = `bg-decorative${backgroundColourLevel}-${\n selected ? \"subdued\" : \"very-subdued\"\n }`;\n const hoverBackground: OakUiRoleToken = `bg-decorative${backgroundColourLevel}-main`;\n const borderColor: OakUiRoleToken = `border-decorative${backgroundColourLevel}-stronger`;\n const horizontalVariantBorderWidth = selected\n ? \"border-solid-xl\"\n : \"border-solid-s\";\n\n const isVerticalVariant = variant === \"vertical\";\n\n const iconOverride = (\n <OakIcon\n iconName={subjectIconName}\n data-testid={subjectIconName}\n $minWidth={isVerticalVariant ? \"spacing-72\" : \"spacing-40\"}\n $minHeight={isVerticalVariant ? \"spacing-72\" : \"spacing-40\"}\n aria-hidden=\"true\"\n />\n );\n\n return (\n <InternalShadowRectButton\n element={element ?? \"button\"}\n iconOverride={iconOverride}\n iconLayout={isVerticalVariant ? \"column\" : \"row\"}\n iconGap={isVerticalVariant ? \"spacing-4\" : \"spacing-8\"}\n pv={null}\n ph={null}\n pt={isVerticalVariant ? \"spacing-12\" : \"spacing-0\"}\n pb={isVerticalVariant ? \"spacing-24\" : \"spacing-0\"}\n pl={isVerticalVariant ? \"spacing-12\" : \"spacing-4\"}\n pr={\"spacing-12\"}\n font={\"heading-7\"}\n defaultBorderColor={borderColor}\n defaultBackground={defaultBackground}\n defaultTextColor=\"text-primary\"\n hoverBackground={hoverBackground}\n hoverBorderColor={borderColor}\n hoverTextColor=\"text-primary\"\n disabledBackground=\"bg-btn-secondary-disabled\"\n disabledBorderColor=\"border-neutral-lighter\"\n disabledTextColor=\"text-subdued\"\n textAlign={\"center\"}\n innerWidth={isVerticalVariant ? \"spacing-120\" : \"auto\"}\n hoverUnderline\n height={isVerticalVariant ? null : \"spacing-48\"}\n $ba={isVerticalVariant ? \"border-solid-m\" : horizontalVariantBorderWidth}\n $display=\"inline-flex\"\n {...rest}\n />\n );\n};\n\nconst getBackgroundColourLevel = (\n phase: OakSubjectIconButtonProps[\"phase\"],\n) => {\n switch (phase) {\n case \"primary\":\n return 4;\n case \"secondary\":\n return 3;\n case \"non-curriculum\":\n return 1;\n }\n};\n","import { getCldImageUrl, type CldImageProps } from \"next-cloudinary\";\n\nexport function getCloudinaryIdFromUrl(\n src: string | URL,\n config?: CldImageProps[\"config\"],\n) {\n // When a private CDN is used, CldImage will only accept the image ID as the src\n // this appears to be a limitation of the library which appears to have been designed\n // with basic public CDN usage in mind.\n return src.toString().replace(getCloudinaryRootUrl(config), \"\");\n}\n\n// Attempts to build the stem of a cloudinary URL, this is used to extract the image id\nfunction getCloudinaryRootUrl(config?: CldImageProps[\"config\"]) {\n // `getCldImageUrl` handles all the logic to construct a cloudinary URL from the given config\n // (supporting private CDNs, custom CNAMES etc. so we don't have to)\n const canaryUrl = new URL(getCldImageUrl({ src: \"canary.jpg\" }, config));\n return canaryUrl.origin + \"/image/upload/\";\n}\n","import React, { createContext, useContext } from \"react\";\nimport { CldImage, CldImageProps } from \"next-cloudinary\";\n\nimport { getCloudinaryIdFromUrl } from \"./cloudinary\";\n\nimport {\n OakImage,\n OakImageProps,\n} from \"@/components/images-and-icons/OakImage\";\n\nexport type OakCloudinaryImageProps = Omit<\n OakImageProps<typeof CldImage>,\n \"src\" | \"imageProps\"\n> & {\n /**\n * The cloudinary image id or the full cloudinary URL\n *\n * Usually in the format `v1234567890/image.jpg`\n */\n cloudinaryId: string;\n};\n\nconst cloudinaryConfigContext = createContext<\n CldImageProps[\"config\"] | undefined\n>(undefined);\n\n/**\n * Provides a Cloudinary config to all descendent `OakCloudinaryImage` elements.\n *\n * See https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters\n * for documentation of the config object.\n */\nexport const OakCloudinaryConfigProvider = cloudinaryConfigContext.Provider;\n\n/**\n * OakCloudinaryImage wraps OakImage providing responsive images from Cloudinary\n * based on the `sizes` prop.\n *\n * Cloudinary cloud name can be set globally with `NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME` or a config\n * can be passed with `OakCloudinaryConfigProvider`.\n *\n * ## To be refactored 🔀\n * This component will be refactored not to be tight to a service like Cloudinary\n */\nexport const OakCloudinaryImage = ({\n cloudinaryId,\n unoptimized = false || cloudinaryId.endsWith(\".svg\"),\n ...props\n}: OakCloudinaryImageProps) => {\n const config = useContext(cloudinaryConfigContext);\n const src = getCloudinaryIdFromUrl(cloudinaryId, config);\n\n return (\n <OakImage\n as={CldImage}\n src={src}\n imageProps={{\n config,\n flags: unoptimized ? undefined : [\"keep_attribution\"],\n }}\n unoptimized={unoptimized}\n {...props}\n />\n );\n};\n","import React from \"react\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\n\nconst PositionIcon = ({\n isActive,\n numItems,\n index,\n}: {\n isActive: boolean;\n numItems: number;\n index: number;\n}) => {\n const fill = isActive ? \"#222222\" : \"#FFFFFF\";\n\n const ariaLabel = `Position indicator: ${index + 1} of ${numItems}: ${\n isActive ? \"Selected item\" : \"Not selected\"\n }`;\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"17\"\n viewBox=\"0 0 16 17\"\n fill=\"none\"\n role=\"img\"\n aria-label={ariaLabel}\n >\n <circle\n cx=\"8\"\n cy=\"8.67798\"\n r=\"7\"\n fill={fill}\n stroke=\"#222222\"\n strokeWidth=\"2\"\n />\n </svg>\n );\n};\n\nexport type SubCarouselPositionIndicatorProps = {\n numberOfItems: number;\n activeIndex: number;\n};\n\nexport const SubCarouselPositionIndicator = ({\n numberOfItems,\n activeIndex,\n}: SubCarouselPositionIndicatorProps) => {\n const positionIndicators = Array.from({ length: numberOfItems }, (_, i) => (\n <PositionIcon\n key={i}\n isActive={activeIndex === i}\n index={i}\n numItems={numberOfItems}\n />\n ));\n\n return (\n <OakFlex $gap={\"spacing-24\"} $alignItems={\"end\"}>\n {positionIndicators}\n </OakFlex>\n );\n};\n","import React from \"react\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakTertiaryInvertedButton } from \"@/components/buttons/OakTertiaryInvertedButton\";\n\nexport type SubCarouselPositionControlProps = {\n onBack: () => void;\n onFwd: () => void;\n disableFwd?: boolean;\n disableBack?: boolean;\n backLabel: string;\n fwdLabel: string;\n};\n\nexport const SubCarouselPositionControl = ({\n onBack,\n onFwd,\n disableBack,\n disableFwd,\n backLabel,\n fwdLabel,\n}: SubCarouselPositionControlProps) => {\n return (\n <OakFlex $gap={\"spacing-24\"}>\n <OakTertiaryInvertedButton\n onClick={onBack}\n iconName=\"chevron-left\"\n disabled={disableBack}\n aria-label={backLabel}\n />\n <OakTertiaryInvertedButton\n onClick={onFwd}\n iconName=\"chevron-right\"\n disabled={disableFwd}\n aria-label={fwdLabel}\n />\n </OakFlex>\n );\n};\n","import React, { ReactNode, useState } from \"react\";\nimport styled from \"styled-components\";\n\nimport { SubCarouselPositionIndicator } from \"./SubCarouselPositionIndicator\";\nimport { SubCarouselPositionControl } from \"./SubCarouselPositionControl\";\n\nimport {\n OakFlex,\n OakFlexProps,\n} from \"@/components/layout-and-structure/OakFlex\";\n\ntype SlideContainerProps = {\n activeIndex: number;\n} & OakFlexProps;\n\nconst SlideContainer = styled(OakFlex)<SlideContainerProps>`\n width: 100%;\n transform: translateX(${(props) => -props.activeIndex * 100}%);\n\n @media (prefers-reduced-motion) {\n transition: none;\n }\n`;\n\nexport type OakCarouselProps = {\n content: ReactNode[];\n isLooping?: boolean;\n backLabel: string;\n fwdLabel: string;\n containerLabel: string;\n};\n\nexport const OakCarousel = ({\n content,\n isLooping,\n backLabel,\n fwdLabel,\n containerLabel,\n}: OakCarouselProps) => {\n const [activeIndex, setActiveIndex] = useState(0);\n\n const handleFwd = () => {\n if (isLooping) {\n setActiveIndex((activeIndex + 1) % content.length);\n } else if (activeIndex < content.length - 1) {\n setActiveIndex(activeIndex + 1);\n }\n };\n\n const handleBack = () => {\n if (isLooping) {\n setActiveIndex((activeIndex - 1 + content.length) % content.length);\n } else if (activeIndex > 0) {\n setActiveIndex(activeIndex - 1);\n }\n };\n\n return (\n <OakFlex\n $pt={\"spacing-56\"}\n $pb={\"spacing-32\"}\n $ph={\"spacing-32\"}\n $background={\"bg-decorative1-very-subdued\"}\n $borderRadius={\"border-radius-l\"}\n $flexDirection={\"column\"}\n $gap={\"spacing-56\"}\n role=\"region\"\n aria-label={containerLabel}\n $height={\"100%\"}\n $justifyContent={\"space-between\"}\n >\n <OakFlex $overflow={\"hidden\"}>\n <SlideContainer activeIndex={activeIndex} $transition={\"standard-ease\"}>\n {content.map((item, index) => {\n return (\n <OakFlex\n key={index}\n aria-live={index === activeIndex ? \"polite\" : \"off\"}\n $width={\"100%\"}\n $flexShrink={0}\n $overflow={\"visible\"}\n >\n {item}\n </OakFlex>\n );\n })}\n </SlideContainer>\n </OakFlex>\n <OakFlex $justifyContent={\"space-between\"}>\n <SubCarouselPositionIndicator\n activeIndex={activeIndex}\n numberOfItems={content.length}\n />\n <SubCarouselPositionControl\n onFwd={handleFwd}\n onBack={handleBack}\n disableFwd={!isLooping && activeIndex === content.length - 1}\n disableBack={!isLooping && activeIndex === 0}\n backLabel={backLabel}\n fwdLabel={fwdLabel}\n />\n </OakFlex>\n </OakFlex>\n );\n};\n","import styled from \"styled-components\";\nimport React from \"react\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakP } from \"@/components/typography/OakP\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakImage } from \"@/components/images-and-icons/OakImage\";\nimport { OakUiRoleToken } from \"@/styles\";\n\nexport type OakQuoteProps = {\n quote: string | string[];\n color?: OakUiRoleToken;\n authorName?: string;\n authorTitle?: string;\n authorImageSrc?: string;\n hasLeftBorder?: boolean;\n};\n\nconst StyledAuthorImage = styled(OakImage)`\n width: 54px;\n height: 54px;\n flex-shrink: 0;\n img {\n border-radius: 50%;\n }\n`;\n\nconst TightLetterSpacing = styled(OakFlex)`\n letter-spacing: -0.01em;\n @media (min-width: 750px) {\n letter-spacing: -0.02em;\n }\n`;\n\nexport const OakQuote = ({\n quote,\n color = \"bg-decorative1-main\",\n authorName,\n authorTitle,\n authorImageSrc,\n hasLeftBorder = true,\n}: OakQuoteProps) => {\n const quoteLines = Array.isArray(quote) ? quote : [quote];\n\n return (\n <OakFlex $width={\"100%\"} $maxWidth={\"spacing-640\"}>\n {hasLeftBorder && (\n <OakFlex\n $width={\"spacing-8\"}\n $background={color}\n $mr={\"spacing-24\"}\n $flexShrink={0}\n />\n )}\n <OakFlex $flexDirection={\"column\"} $gap={\"spacing-16\"}>\n <OakBox $font={[\"heading-7\", \"heading-6\"]} $color={\"text-primary\"}>\n <TightLetterSpacing $flexDirection={\"column\"} $gap={\"spacing-12\"}>\n {quoteLines.map((quoteLine, quoteLineIndex) => {\n const isFirst = quoteLineIndex === 0;\n const isLast = quoteLineIndex === quoteLines.length - 1;\n return (\n <OakP key={quoteLine}>\n {isFirst && \"\\u201C\"}\n {quoteLine}\n {isLast && \"\\u201D\"}\n </OakP>\n );\n })}\n </TightLetterSpacing>\n </OakBox>\n\n {authorName ? (\n <OakFlex $gap={\"spacing-16\"} $alignItems={\"center\"}>\n {authorImageSrc ? (\n <StyledAuthorImage\n alt={\"\"}\n role={\"presentation\"}\n src={authorImageSrc}\n />\n ) : null}\n <OakFlex $flexDirection={\"column\"}>\n <OakP $font={\"body-2-bold\"} $color={\"text-primary\"}>\n {authorName}\n </OakP>\n {authorTitle ? (\n <OakP $font={\"body-2\"} $color={\"text-primary\"}>\n {authorTitle}\n </OakP>\n ) : null}\n </OakFlex>\n </OakFlex>\n ) : null}\n </OakFlex>\n </OakFlex>\n );\n};\n","import React, { ReactNode } from \"react\";\nimport styled from \"styled-components\";\n\nimport {\n OakBoxProps,\n OakBox,\n oakBoxCss,\n} from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakIcon } from \"@/components/images-and-icons/OakIcon\";\nimport {\n InternalAccordionButton,\n InternalAccordionContent,\n} from \"@/components/internal-components/InternalAccordion\";\nimport useAccordionContext from \"@/components/internal-components/InternalAccordion/useAccordionContext\";\nimport InternalAccordionProvider, {\n accordionContext,\n} from \"@/components/internal-components/InternalAccordion/InternalAccordionProvider\";\nimport { flexStyle, FlexStyleProps } from \"@/styles/utils/flexStyle\";\nimport { ColorStyleProps } from \"@/styles/utils/colorStyle\";\nimport { parseDropShadow } from \"@/styles/helpers/parseDropShadow\";\nimport { parseColorFilter } from \"@/styles/helpers/parseColorFilter\";\n\ntype UnstyledChevronAccordionCommonProps = {\n /** The header of the accordion. */\n header: ReactNode;\n\n /** The content of the accordion. */\n content: ReactNode;\n\n /** Optional subheader to display above the fold. */\n subheader?: ReactNode;\n\n /** The id of the accordion. */\n id: string;\n\n /** Aria label for the button when the accordion is open. */\n ariaLabelOpen?: string;\n\n /** Aria label for the button when the accordion is closed. */\n ariaLabelClose?: string;\n} & FlexStyleProps &\n OakBoxProps &\n ColorStyleProps;\n\ntype UnstyledChevronAccordionUncontrolledProps = {\n /** Whether the accordion should be open initially. Uncontrolled usage only. */\n isInitiallyOpen?: boolean;\n\n isOpen?: never;\n onOpenChange?: never;\n};\n\ntype UnstyledChevronAccordionControlledProps = {\n isInitiallyOpen?: never;\n\n /** Controlled open state. Must be paired with `onOpenChange`. */\n isOpen: boolean;\n\n /** Called when the user toggles the accordion. Required when `isOpen` is provided. */\n onOpenChange: (open: boolean) => void;\n};\n\nexport type UnstyledChevronAccordionProps =\n UnstyledChevronAccordionCommonProps &\n (\n | UnstyledChevronAccordionUncontrolledProps\n | UnstyledChevronAccordionControlledProps\n );\n\nconst StyledAccordionButton = styled(InternalAccordionButton)<FlexStyleProps>`\n ${flexStyle}\n ${oakBoxCss}\n &:hover {\n .chevron-icon {\n filter: ${parseColorFilter(\"icon-subdued\")};\n }\n }\n &:focus-visible {\n .focus-outline {\n box-shadow:\n ${parseDropShadow(\"drop-shadow-centered-lemon\")},\n ${parseDropShadow(\"drop-shadow-centered-grey\")};\n }\n }\n`;\n\n/**\n * An accordion component that can be used to show/hide content.\n */\nconst Accordion = ({\n header,\n content,\n id,\n subheader,\n ariaLabelOpen = \"Close accordion\",\n ariaLabelClose = \"Open accordion\",\n ...styleProps\n}: UnstyledChevronAccordionCommonProps) => {\n const { isOpen } = useAccordionContext();\n\n return (\n <OakFlex\n $flexDirection={\"column\"}\n $pt={\"spacing-40\"}\n $pb={\"spacing-40\"}\n {...styleProps}\n >\n <OakFlex $justifyContent={\"space-between\"} $alignItems={\"center\"}>\n {header}\n <OakBox>\n <StyledAccordionButton\n id={id}\n aria-label={isOpen ? ariaLabelOpen : ariaLabelClose}\n >\n <OakBox\n className=\"focus-outline\"\n $borderRadius={\"border-radius-s\"}\n $mr={\"spacing-12\"}\n >\n <OakIcon\n className=\"chevron-icon\"\n iconName=\"chevron-down\"\n $width=\"spacing-32\"\n $height=\"spacing-32\"\n alt=\"An arrow to indicate whether the item is open or closed\"\n style={{\n transform: isOpen ? \"rotate(180deg)\" : \"none\",\n transition: \"all 0.3s ease 0s\",\n }}\n />\n </OakBox>\n </StyledAccordionButton>\n </OakBox>\n </OakFlex>\n {subheader}\n <InternalAccordionContent\n $position={\"relative\"}\n $overflow={\"auto\"}\n aria-labelledby={id}\n >\n {content}\n </InternalAccordionContent>\n </OakFlex>\n );\n};\n\n/**\n * - UnstyledChevronAccordion has a chevron icon that rotates when the accordion is open.\n * - Unlike InternalChevronAccordion, it has no border effects for hover or focus states.\n * - Only the chevron is interactive so as to allow interactive elements to be placed in the header.\n * - The intention is for these to be added by consuming components as needed.\n * - Can be used as an uncontrolled component (via `isInitiallyOpen`) or as a\n * controlled component (via `isOpen` + `onOpenChange`).\n */\nexport const UnstyledChevronAccordion = (\n props: UnstyledChevronAccordionProps,\n) => {\n // Is the accordion being used as a controlled component?\n if (props.isOpen !== undefined) {\n const { isOpen, onOpenChange, ...accordionProps } = props;\n return (\n <accordionContext.Provider value={{ isOpen, setOpen: onOpenChange }}>\n <Accordion {...accordionProps} />\n </accordionContext.Provider>\n );\n }\n\n const { isInitiallyOpen = false, ...accordionProps } = props;\n return (\n <InternalAccordionProvider isInitialOpen={isInitiallyOpen}>\n <Accordion {...accordionProps} />\n </InternalAccordionProvider>\n );\n};\n","/**\n * From https://piccalil.li/blog/a-modern-css-reset/\n * Do not edit this file. If you want to add global styles, use oak.styles.ts\n */\n\nimport { css } from \"styled-components\";\n\nexport const resetGlobalCss = css`\n /* Box sizing rules */\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n /* Remove default margin */\n body,\n h1,\n h2,\n h3,\n h4,\n h5,\n p,\n figure,\n blockquote,\n dl,\n dd {\n margin: 0;\n }\n\n /* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */\n ul[role=\"list\"],\n ol[role=\"list\"] {\n list-style: none;\n padding-left: 0;\n margin-top: 0;\n margin-bottom: 0;\n }\n\n /* Set core root defaults */\n html,\n html:focus-within {\n scroll-behavior: smooth;\n }\n\n /* Set core body defaults */\n body {\n min-height: 100vh;\n text-rendering: optimizespeed;\n line-height: 1.5;\n }\n\n /* A elements that don't have a class get default styles */\n a:not([class]) {\n text-decoration-skip-ink: auto;\n }\n\n /* Make images easier to work with */\n img,\n picture {\n max-width: 100%;\n display: block;\n }\n\n /* Inherit fonts for inputs and buttons */\n input,\n button,\n textarea,\n select {\n font: inherit;\n }\n\n cite {\n font-style: inherit;\n }\n\n /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */\n @media (prefers-reduced-motion: reduce) {\n html:focus-within {\n scroll-behavior: auto;\n }\n\n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n }\n`;\n\nexport default resetGlobalCss;\n","/**\n * This is our global stylesheet. It's for resets in addition to reset.styles.ts\n * which is taken from a publically available reset. We want to minimise global\n * styles where possible so if you add any styles here please comment with what\n * they are doing and why they belong here (rather than in component specific\n * styles)\n */\n\nimport { css } from \"styled-components\";\n\nimport { parseColor } from \"@/styles/helpers\";\n\nexport const oakGlobalCss = css`\n html,\n body {\n padding: 0;\n margin: 0;\n font-family: __Lexend_866216, __Lexend_Fallback_866216, Lexend, sans-serif;\n font-weight: 300;\n line-height: 1.4;\n }\n\n /* stylelint-disable */\n body,\n #__next {\n /* stylelint-enable */\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n color: ${parseColor(\"text-primary\")};\n }\n\n a {\n color: inherit;\n text-decoration: none;\n font-family: inherit;\n\n /*\n * Remove grey background on tap on ios\n */\n -webkit-tap-highlight-color: transparent;\n }\n\n button {\n /*\n * some browsers have a small margin by default\n * @see https://github.com/oaknational/Oak-Web-Application/issues/709\n */\n margin: 0;\n\n /*\n * Remove grey background on tap on ios\n */\n -webkit-tap-highlight-color: transparent;\n }\n\n /*\n * Inline styling for mathjax equations\n */\n mjx-container {\n display: inline-grid !important;\n margin: 0 !important;\n }\n`;\n","import { createGlobalStyle } from \"styled-components\";\n\nimport { resetGlobalCss } from \"@/styles/global/reset.styles\";\nimport { oakGlobalCss } from \"@/styles/global/oak.styles\";\n\n/**\n *\n * Currently this is just for storybook as it is already applied in OWA\n *\n */\nexport const OakGlobalStyle = createGlobalStyle`\n ${resetGlobalCss}\n ${oakGlobalCss}\n`;\n","import React, { ReactNode } from \"react\";\n\nimport { InternalChevronAccordion } from \"@/components/internal-components/InternalChevronAccordion\";\nimport { FlexStyleProps } from \"@/styles/utils/flexStyle\";\nimport { BorderStyleProps } from \"@/styles/utils/borderStyle\";\n\nexport type OakBasicAccordionProps = {\n /**\n * The header of the accordion\n */\n header: ReactNode;\n /**\n * Whether the accordion should be open initially\n */\n initialOpen?: boolean;\n /**\n * The content of the accordion\n */\n children: ReactNode;\n /**\n * Optional subheading to display above the fold\n */\n subheading?: ReactNode;\n /**\n * The id of the accordion\n */\n id: string;\n} & BorderStyleProps &\n FlexStyleProps;\n\nexport const OakBasicAccordion = ({\n header,\n children,\n id,\n initialOpen,\n subheading,\n ...styleProps\n}: OakBasicAccordionProps) => {\n return (\n <InternalChevronAccordion\n header={header}\n id={id}\n initialOpen={initialOpen}\n subheading={subheading}\n {...styleProps}\n >\n {children}\n </InternalChevronAccordion>\n );\n};\n","import React from \"react\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakPrimaryButton } from \"@/components/buttons/OakPrimaryButton\";\nimport { OakFormInputWithLabels } from \"@/components/owa/OakFormInputWithLabels/OakFormInputWithLabels\";\n\nexport interface OakCaptionSearchProps {\n defaultValue?: string;\n /**\n * Callback function that is called when the search is submitted.\n * It receives the caption ID string as an argument.\n */\n onSearch?: (captionIdString: string) => void;\n /**\n * Indicates if there is an error in the search input.\n */\n hasError?: boolean;\n /**\n * Text to display when there is an error in the search input.\n */\n errorText?: string;\n /**\n * Indicates if the search is currently loading. will disable the input and button.\n */\n isLoading?: boolean;\n}\n\nexport const OakCaptionSearch = ({\n onSearch,\n hasError,\n errorText,\n isLoading = false,\n defaultValue,\n}: OakCaptionSearchProps) => {\n const handleFormSubmit = (event: React.FormEvent) => {\n // NB. we don't handle caption ID validation here to remain decoupled from the application logic\n event.preventDefault();\n // get the input value from the form\n const form = event.target as HTMLFormElement;\n const input = form.querySelector(\n 'input[name=\"caption-id\"]',\n ) as HTMLInputElement;\n const captionIdString = input.value.trim();\n if (onSearch) {\n onSearch(captionIdString);\n }\n };\n\n return (\n <OakFlex\n as=\"form\"\n $flexDirection={\"column\"}\n $color={\"text-primary\"}\n $background={\"bg-primary\"}\n $pa={\"spacing-24\"}\n $gap={\"spacing-24\"}\n $borderRadius={\"border-radius-s\"}\n onSubmit={handleFormSubmit}\n >\n <OakFormInputWithLabels\n label=\"Caption ID\"\n inputName=\"caption-id\"\n helperText=\"Enter on or more IDs (separated by commas).\"\n invalid={hasError}\n invalidText={errorText}\n disabled={isLoading}\n defaultValue={defaultValue}\n required\n />\n <OakPrimaryButton\n type=\"submit\"\n iconName=\"search\"\n isTrailingIcon\n isLoading={isLoading}\n >\n Search\n </OakPrimaryButton>\n </OakFlex>\n );\n};\n","import React from \"react\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakHeading, OakHeadingTag } from \"@/components/typography/OakHeading\";\nimport { OakIcon, OakIconName } from \"@/components/images-and-icons/OakIcon\";\nimport { OakHandDrawnCard } from \"@/components/owa/OakHandDrawnCard\";\n\nexport type OakInfoCardProps = {\n children: React.ReactNode;\n};\n\nexport type OakCardHeaderprops = {\n iconName: OakIconName;\n tag: OakHeadingTag;\n children: string;\n};\n\nexport const OakCardHeader = (props: OakCardHeaderprops) => {\n const { iconName, tag, children } = props;\n\n return (\n <OakFlex $alignItems={\"center\"} $gap={\"spacing-8\"}>\n <OakIcon iconName={iconName} />\n <OakHeading $font={\"heading-6\"} tag={tag}>\n {children}\n </OakHeading>\n </OakFlex>\n );\n};\n\n/**\n *\n * OakLessonInfoCards are created using the custom card either oakLessoninfoCard or oakStaticMessageCard and the content is added as children. And use the oakCardHeader to create the header of the card.\n *\n */\nexport const OakLessonInfoCard = (props: OakInfoCardProps) => {\n const { children, ...rest } = props;\n\n return (\n <OakFlex\n $borderRadius={\"border-radius-l\"}\n $pa={\"spacing-24\"}\n $flexDirection={\"column\"}\n $gap={\"spacing-16\"}\n $background={\"bg-primary\"}\n {...rest}\n >\n {children}\n </OakFlex>\n );\n};\n\nexport const OakStaticMessageCard = (props: OakInfoCardProps) => {\n const { children, ...rest } = props;\n\n return (\n <OakHandDrawnCard\n {...rest}\n fill={[\n \"bg-decorative2-very-subdued\",\n \"bg-decorative2-subdued\",\n \"bg-decorative2-subdued\",\n ]}\n >\n <OakFlex $pa={\"spacing-0\"} $flexDirection={\"column\"} $gap={\"spacing-16\"}>\n {children}\n </OakFlex>\n </OakHandDrawnCard>\n );\n};\n","import React from \"react\";\n\nimport {\n OakCookieSettingsModal,\n OakCookieSettingsModalProps,\n} from \"@/components/cookies/OakCookieSettingsModal\";\nimport { useInternalCookieConsent } from \"@/components/cookies/OakCookieConsentProvider/OakCookieConsentProvider\";\nimport {\n OakCookieBanner,\n OakCookieBannerProps,\n} from \"@/components/cookies/OakCookieBanner\";\n\nexport type OakCookieConsentProps = Pick<\n OakCookieSettingsModalProps,\n \"policyURL\"\n> &\n Pick<OakCookieBannerProps, \"isFixed\" | \"innerMaxWidth\"> & {\n /**\n * Optional stacking context for the entire consent UI\n *\n * 🚨 This prop is intended for use by consumers that do not use\n * the internal system of z-index tokens.\n */\n zIndex?: number;\n };\n\n/**\n * Connects `OakCookieBanner` and `OakCookieSettingsModal` to `OakCookieConsentProvider`.\n */\nexport const OakCookieConsent = ({\n policyURL,\n isFixed,\n innerMaxWidth,\n zIndex,\n}: OakCookieConsentProps) => {\n const {\n policyConsents,\n acceptModalConsents,\n rejectModalConsents,\n confirmModalConsents,\n hideBanner,\n openSettings,\n closeSettings,\n isSettingsModalOpen,\n acceptBannerConsents,\n rejectBannerConsents,\n bannerState,\n } = useInternalCookieConsent();\n return (\n <>\n {bannerState !== \"hidden\" && (\n <OakCookieBanner\n onHide={hideBanner}\n onAccept={acceptBannerConsents}\n onReject={rejectBannerConsents}\n onOpenSettings={openSettings}\n state={bannerState}\n isFixed={isFixed}\n innerMaxWidth={innerMaxWidth}\n zIndex={zIndex}\n />\n )}\n <OakCookieSettingsModal\n policyURL={policyURL}\n policyConsents={policyConsents}\n isOpen={isSettingsModalOpen}\n onClose={closeSettings}\n onReject={rejectModalConsents}\n onConfirm={confirmModalConsents}\n onAccept={acceptModalConsents}\n zIndex={zIndex}\n />\n </>\n );\n};\n","import React, { useState } from \"react\";\n\nimport { OakSmallSecondaryButton } from \"@/components/buttons/OakSmallSecondaryButton\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\n\ntype OakCopyLinkButtonProps = {\n /**\n * Href of the link that should be copied\n */\n href?: string;\n};\n\n/**\n * Display copy link button\n */\nexport const OakCopyLinkButton = ({ href }: OakCopyLinkButtonProps) => {\n const copyLinkMessage = \"Copy link\";\n const linkCopiedMessage = \"Link copied\";\n\n const [label, setLabel] = useState(copyLinkMessage);\n const [active, setActive] = useState(true);\n const [announce, setAnnounce] = useState(\"\");\n\n const copyLink = () => {\n if (navigator.clipboard) {\n const urlToCopy = href || window.location.href;\n navigator.clipboard.writeText(urlToCopy);\n\n setLabel(linkCopiedMessage);\n setAnnounce(linkCopiedMessage);\n setActive(false);\n\n const resetCopyLinkButtonTimer = 4000;\n\n setTimeout(() => {\n setAnnounce(\"\"); // used for aria-live announcement\n setActive(true);\n setLabel(copyLinkMessage);\n }, resetCopyLinkButtonTimer);\n } else {\n alert(\"Please update your browser to support this feature\");\n }\n };\n\n return (\n <>\n <OakBox $display={[\"none\", \"block\"]}>\n <OakSmallSecondaryButton\n iconName={active ? \"copy\" : \"tick\"}\n iconAriaHidden={true}\n isTrailingIcon\n onClick={copyLink}\n data-testid={\"copy-link-desktop-button\"}\n >\n {label}\n </OakSmallSecondaryButton>\n </OakBox>\n <OakBox $display={[\"block\", \"none\"]}>\n <OakSmallSecondaryButton onClick={copyLink}>\n {label}\n </OakSmallSecondaryButton>\n </OakBox>\n {/* Live region for aria-live announcements */}\n {announce && (\n <div\n aria-relevant=\"all\"\n aria-live=\"polite\"\n style={{ position: \"absolute\", left: \"-9999px\" }}\n data-testid=\"announce\"\n >\n {announce}\n </div>\n )}\n </>\n );\n};\n","import React, { ComponentPropsWithoutRef } from \"react\";\n\nimport { OakDraggable } from \"@/components/owa/OakDraggable\";\n\ntype OakDraggableFeedbackProps = ComponentPropsWithoutRef<\n typeof OakDraggable\n> & {\n /**\n * Alters the appearance of the element to indicate whether or not it is in a correct state\n */\n feedback: \"correct\" | \"incorrect\";\n};\n\n/**\n * A draggable element that visually indicates whether or not its state is correct or not\n */\nexport const OakDraggableFeedback = ({\n feedback,\n ...props\n}: OakDraggableFeedbackProps) => {\n return (\n <OakDraggable\n {...props}\n iconName={feedback === \"correct\" ? \"tick\" : \"cross\"}\n iconColor={feedback === \"correct\" ? \"icon-success\" : \"icon-error\"}\n iconAlt={feedback === \"correct\" ? \"correct\" : \"incorrect\"}\n $ba=\"border-solid-xl\"\n $borderColor={feedback === \"correct\" ? \"border-success\" : \"border-error\"}\n $background={feedback === \"correct\" ? \"bg-correct\" : \"bg-incorrect\"}\n isReadOnly\n />\n );\n};\n","import React, { HTMLAttributes, ReactNode, useRef } from \"react\";\nimport { createPortal } from \"react-dom\";\n\nimport { InternalShadowRoundButton } from \"@/components/internal-components/InternalShadowRoundButton\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { useIsScrolled } from \"@/hooks/useIsScrolled\";\nimport { useMounted } from \"@/hooks/useMounted\";\nimport InternalModalTransition from \"@/components/internal-components/InternalModalTransition/InternalModalTransition\";\nimport { OakLink } from \"@/components/navigation/OakLink\";\n\ntype OakFilterDrawerProps = {\n /**\n * Called when the clear button is clicked\n */\n clearAllInputs: () => void;\n\n /**\n * The content of the modal.\n * Use with `<OakModalBody>` for best results.\n */\n children: ReactNode;\n /**\n * Slot for the footer of the modal.\n * Use with `<OakModalFooter>` for best results.\n */\n footerSlot?: ReactNode;\n /**\n * Indicates whether the modal is open or closed\n */\n isOpen: boolean;\n /**\n * Called when the modal is closed\n */\n onClose: () => void;\n /**\n * The DOM container to render the modal portal into.\n *\n * @default document.body\n */\n domContainer?: Element;\n /**\n * Optional z-index override.\n *\n * Defaults to token: `modal-dialog`\n *\n * 🚨 This prop is intended for use by consumers that do not use\n * the internal system of z-index tokens.\n *\n * NB *The modal is rendered inside a portal so it will not respect the stacking context of its parent component*.\n */\n zIndex?: number;\n /**\n * Whether the modal should be anchored to the left side of the screen.\n */\n isLeftHandSide?: boolean;\n} & Pick<\n HTMLAttributes<Element>,\n \"aria-label\" | \"aria-description\" | \"aria-labelledby\" | \"aria-describedby\"\n>;\n\n/**\n *\n * Based on the OakModal component, this component is a filter drawer that slides in from the right side of the screen.\n * Designed for mobile and tablet devices\n *\n * ### Callbacks\n * clearAllInputs: used to clear filter options\n *\n */\n\nexport const OakFilterDrawer = ({\n isOpen,\n domContainer,\n onClose,\n zIndex,\n children,\n clearAllInputs,\n footerSlot,\n ...rest\n}: OakFilterDrawerProps) => {\n const { isScrolled, ObserveScroll } = useIsScrolled();\n\n const transitionRef = useRef<HTMLDivElement>(null);\n\n const isMounted = useMounted();\n\n if (!isMounted) {\n return null;\n }\n const finalZIndex = typeof zIndex === \"number\" ? zIndex : \"modal-dialog\";\n\n return createPortal(\n <InternalModalTransition\n isOpen={isOpen}\n transitionRef={transitionRef}\n onClose={onClose}\n finalZIndex={finalZIndex}\n isLeftHandSide={false}\n {...rest}\n >\n <OakFlex\n $ma=\"spacing-24\"\n $justifyContent=\"space-between\"\n $alignItems=\"center\"\n >\n <OakLink\n variant=\"secondary\"\n onClick={clearAllInputs}\n aria-label=\"Clear\"\n element=\"button\"\n >\n Clear\n </OakLink>\n <OakHeading $font={\"heading-6\"} tag=\"h3\">\n Filters\n </OakHeading>\n <InternalShadowRoundButton\n onClick={onClose}\n aria-label=\"Close\"\n defaultIconBackground=\"transparent\"\n defaultIconColor=\"icon-primary\"\n defaultTextColor=\"transparent\"\n hoverTextColor=\"transparent\"\n disabledTextColor=\"transparent\"\n hoverIconBackground=\"icon-primary\"\n hoverIconColor=\"icon-inverted\"\n disabledIconBackground=\"transparent\"\n iconBackgroundSize=\"spacing-24\"\n iconSize=\"spacing-24\"\n iconName=\"cross\"\n />\n </OakFlex>\n <OakFlex\n $flexGrow={1}\n $flexDirection=\"column\"\n $overflow=\"auto\"\n $bt=\"border-solid-s\"\n $borderColor={isScrolled ? \"border-neutral-lighter\" : \"transparent\"}\n >\n <ObserveScroll>\n <div data-autofocus-inside tabIndex={-2}>\n <OakBox $mh=\"spacing-24\">{children}</OakBox>\n </div>\n </ObserveScroll>\n </OakFlex>\n <OakFlex\n $flexDirection={[\"column\", \"row\"]}\n $bt=\"border-solid-s\"\n $borderColor=\"border-neutral-lighter\"\n $pa=\"spacing-12\"\n $gap={[\"spacing-16\", \"spacing-24\"]}\n $width=\"100%\"\n >\n {footerSlot}\n </OakFlex>\n </InternalModalTransition>,\n domContainer ?? document.body,\n );\n};\n","import React, { ReactNode } from \"react\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\n\nexport type OakInformativeModalBodyProps = {\n children: ReactNode;\n};\n\n/**\n * Intended to be used in the `children` slot of `OakInformativeModal`\n * it applies some padding and margin to ensure that the contents\n * line up with the modal's header and footer\n */\nexport const OakInformativeModalBody = (\n props: OakInformativeModalBodyProps,\n) => {\n return (\n <OakBox $position={\"relative\"} $minHeight={\"100%\"}>\n <OakBox\n $ph={[\"spacing-16\", \"spacing-64\", \"spacing-64\"]}\n $pv={[\"spacing-16\", \"spacing-56\", \"spacing-56\"]}\n >\n {props.children}\n </OakBox>\n </OakBox>\n );\n};\n","import React, { useState } from \"react\";\n\nimport { SurfingStudentSVG } from \"./SurfingStudentSVG\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakP } from \"@/components/typography/OakP\";\nimport { OakFieldError } from \"@/components/form-elements/OakFieldError\";\nimport { OakJauntyAngleLabel } from \"@/components/form-elements/OakJauntyAngleLabel\";\nimport { OakPrimaryButton } from \"@/components/buttons/OakPrimaryButton\";\nimport { OakTextInput } from \"@/components/form-elements/OakTextInput\";\nimport { ColorStyleProps } from \"@/styles/utils/colorStyle\";\nimport { BorderStyleProps } from \"@/styles/utils/borderStyle\";\n\nexport type OakInlineRegistrationBannerProps = {\n onSubmit: (email: string) => Promise<string | undefined>;\n headerText: React.ReactNode;\n bodyText: React.ReactNode;\n} & ColorStyleProps &\n BorderStyleProps;\n\nexport const OakInlineRegistrationBanner = (\n props: OakInlineRegistrationBannerProps,\n) => {\n const { onSubmit, bodyText, headerText, ...style } = props;\n const [email, setEmail] = useState(\"\");\n const [formError, setFormError] = useState(false);\n const [success, setSuccess] = useState(false);\n\n return (\n <OakBox\n $background=\"bg-decorative1-main\"\n $pa=\"spacing-32\"\n $mb={[\"spacing-24\", \"spacing-16\"]}\n $borderRadius=\"border-radius-m\"\n {...style}\n >\n <OakFlex $gap=\"spacing-24\" $alignItems=\"center\">\n <OakFlex $flexDirection=\"column\" $gap=\"spacing-24\">\n <OakFlex $alignItems=\"center\" $gap=\"spacing-24\">\n {headerText}\n <SurfingStudentSVG $display={[\"block\", \"none\", \"none\"]} />\n </OakFlex>\n {bodyText}\n <OakBox\n as=\"form\"\n noValidate\n onSubmit={async (e) => {\n e.preventDefault();\n setSuccess(false);\n setFormError(false);\n if (email.length === 0) {\n setFormError(true);\n return;\n }\n try {\n await onSubmit(email);\n setSuccess(true);\n setEmail(\"\");\n } catch (e) {\n setFormError(true);\n }\n }}\n >\n <OakFieldError>\n {formError && \"Please enter a valid email address\"}\n </OakFieldError>\n\n <OakFlex\n $gap=\"spacing-16\"\n $position=\"relative\"\n $width=\"100%\"\n $mt=\"spacing-24\"\n >\n <OakBox $position=\"relative\" $width=\"100%\">\n <OakJauntyAngleLabel\n label=\"Email\"\n $position=\"absolute\"\n $zIndex=\"in-front\"\n $background={formError ? \"bg-error\" : \"bg-decorative5-main\"}\n $color={formError ? \"text-inverted\" : \"text-primary\"}\n $width=\"max-content\"\n $ph=\"spacing-16\"\n $font=\"heading-7\"\n $top=\"-15px\"\n $left=\"8px\"\n />\n\n <OakTextInput\n type=\"email\"\n autoComplete=\"email\"\n placeholder=\"Enter email address\"\n $maxHeight=\"spacing-56\"\n value={email}\n onChange={(event) => setEmail(event.target.value)}\n wrapperWidth=\"100%\"\n />\n </OakBox>\n <OakPrimaryButton innerWidth=\"max-content\">\n Sign up\n </OakPrimaryButton>\n </OakFlex>\n {success && (\n <OakP $font=\"body-1-bold\" $mt=\"spacing-16\">\n Thank you for signing up\n </OakP>\n )}\n </OakBox>\n </OakFlex>\n <SurfingStudentSVG $display={[\"none\", \"block\", \"block\"]} />\n </OakFlex>\n </OakBox>\n );\n};\n","import React from \"react\";\n\nimport {\n ReviewItemContainer,\n ReviewItemTitleSection,\n} from \"@/components/owa/pupil/lesson/OakLessonReviewQuiz\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakRoundIcon } from \"@/components/images-and-icons/OakRoundIcon\";\nimport { OakUiRoleToken } from \"@/styles\";\n\ntype LessonSectionName = \"intro\" | \"video\";\ntype BaseOakLessonReviewItemProps = {\n completed: boolean;\n};\n\ntype VideoSectionProps = {\n lessonSectionName: \"video\";\n};\ntype IntroSectionProps = {\n lessonSectionName: \"intro\";\n};\n\nexport type OakLessonReviewIntroVideoProps = BaseOakLessonReviewItemProps & {\n lessonSectionName: LessonSectionName;\n} & (IntroSectionProps | VideoSectionProps);\n\nexport const OakLessonReviewIntroVideo = (\n props: OakLessonReviewIntroVideoProps,\n) => {\n const { completed, lessonSectionName, ...rest } = props;\n const [completedBackgroundColor, borderColor, iconBackgroundColor]: [\n completedBackgroundColor: OakUiRoleToken,\n borderColor: OakUiRoleToken,\n iconBackgroundColor: OakUiRoleToken,\n ] =\n lessonSectionName === \"intro\"\n ? [\n \"bg-decorative2-very-subdued\",\n \"border-decorative2\",\n \"bg-decorative2-main\",\n ]\n : [\n \"bg-decorative4-very-subdued\",\n \"border-decorative4\",\n \"bg-decorative4-main\",\n ];\n\n const summaryForIncomplete =\n lessonSectionName === \"intro\" ? \"Prepare\" : \"Learn\";\n\n const lessonSectionNameToIconMap = new Map();\n\n lessonSectionNameToIconMap.set(\"intro\", \"intro\");\n lessonSectionNameToIconMap.set(\"video\", \"video\");\n\n return (\n <ReviewItemContainer\n $background={completed ? completedBackgroundColor : \"bg-primary\"}\n $borderColor={completed ? completedBackgroundColor : borderColor}\n {...rest}\n >\n <OakFlex $gap=\"spacing-24\" $alignItems=\"center\">\n <OakRoundIcon\n iconName={lessonSectionNameToIconMap.get(lessonSectionName)}\n $width=\"spacing-56\"\n $height=\"spacing-56\"\n $background={iconBackgroundColor}\n />\n <ReviewItemTitleSection\n sectionHeader={\n lessonSectionName === \"intro\" ? \"Introduction\" : \"Lesson video\"\n }\n completed={completed}\n summaryForIncomplete={summaryForIncomplete}\n />\n </OakFlex>\n </ReviewItemContainer>\n );\n};\n","import React, { ReactNode } from \"react\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakTypography } from \"@/components/typography/OakTypography\";\nimport { OakUL } from \"@/components/typography/OakUL\";\nimport { OakMediaClipListAccordion } from \"@/components/owa/OakMediaClipListAccordion\";\n\nexport type OakMediaClipListProps = {\n lessonTitle: string;\n currentClipCounter: number;\n totalClipCounter: number;\n children: ReactNode;\n};\n\n/**\n *\n * OakMediaClipList is a scrollable list of OakMediaClip components with clip counter and the title\n *\n */\nexport const OakMediaClipList = ({\n lessonTitle,\n currentClipCounter,\n totalClipCounter,\n children,\n}: OakMediaClipListProps) => {\n const mediaClipListHeader = (\n <OakFlex\n $flexDirection={\"column\"}\n $textAlign={\"left\"}\n $ph={\"spacing-16\"}\n $pv={\"spacing-12\"}\n >\n <OakTypography $font=\"body-3\" $mb={\"spacing-4\"}>\n Lesson\n </OakTypography>\n <OakTypography $font=\"heading-7\" $mb={\"spacing-4\"}>\n {lessonTitle}\n </OakTypography>\n <OakTypography $font=\"body-3\">\n {currentClipCounter}/{totalClipCounter} clips\n </OakTypography>\n </OakFlex>\n );\n\n const mediaClipListContent = (\n <OakUL $reset $ph={\"spacing-12\"} $pt={\"spacing-8\"}>\n {children}\n </OakUL>\n );\n\n return (\n <OakMediaClipListAccordion\n header={mediaClipListHeader}\n id=\"media-clip-list\"\n initialOpen={true}\n $maxHeight={\"spacing-480\"}\n >\n {mediaClipListContent}\n </OakMediaClipListAccordion>\n );\n};\n","import React, { ReactNode } from \"react\";\n\nimport { NativeOptGroup } from \"./NativeOptGroup\";\nimport { NativeLegend } from \"./NativeLegend\";\n\nexport type OakOptGroupProps = {\n label: string;\n children: ReactNode;\n};\nexport function OakOptGroup({ label, children }: Readonly<OakOptGroupProps>) {\n return (\n <NativeOptGroup label={label} $ph={\"spacing-16\"} $pv={\"spacing-8\"}>\n <NativeLegend $ph={\"spacing-16\"} $pv={\"spacing-8\"}>\n {label}\n </NativeLegend>\n {children}\n </NativeOptGroup>\n );\n}\n","import React, { ReactNode } from \"react\";\n\nimport { NativeOption } from \"./NativeOption\";\n\nimport { OakDropShadowToken } from \"@/styles\";\n\nexport type OakOptionProps = {\n children: ReactNode;\n disabled?: boolean;\n selected?: boolean;\n value?: string;\n asDefault?: boolean;\n $focusRingDropShadows?: OakDropShadowToken[];\n};\nexport function OakOption({\n selected,\n disabled,\n value,\n children,\n asDefault,\n $focusRingDropShadows = [\n \"drop-shadow-centered-lemon\",\n \"drop-shadow-centered-grey\",\n ],\n}: Readonly<OakOptionProps>) {\n return (\n <NativeOption\n $asDefault={asDefault}\n value={value}\n disabled={disabled}\n selected={selected}\n $ph={\"spacing-16\"}\n $pv={\"spacing-8\"}\n $focusRingDropShadows={$focusRingDropShadows}\n >\n {children}\n </NativeOption>\n );\n}\n","export const generatePageNumbers = (activePage: number, totalPages: number) => {\n const pageNumbers: (number | string)[] = [];\n\n if (totalPages <= 7) {\n return Array.from({ length: totalPages }, (_, i) => i);\n }\n\n pageNumbers.push(0);\n\n if (activePage <= 3) {\n pageNumbers.push(1, 2, 3, \"...\", totalPages - 1);\n } else if (activePage >= 4 && activePage < totalPages - 3) {\n pageNumbers.push(\"...\", activePage - 1, activePage, \"...\", totalPages - 1);\n } else {\n pageNumbers.push(\n \"...\",\n totalPages - 4,\n totalPages - 3,\n totalPages - 2,\n totalPages - 1,\n );\n }\n\n return pageNumbers;\n};\n","import React from \"react\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakLI } from \"@/components/typography/OakLI\";\nimport {\n OakPrimaryNavItem,\n OakPrimaryNavItemProps,\n} from \"@/components/navigation/OakPrimaryNavItem\";\n\nexport type OakPrimaryNavProps = {\n ariaLabel?: string;\n navItems: OakPrimaryNavItemProps[];\n};\n\n/**\n * A row of buttons for navigating between different sections\n *\n * ⚠️ To be deprecated\n * @deprecated\n */\nexport const OakPrimaryNav = ({ ariaLabel, navItems }: OakPrimaryNavProps) => {\n return (\n <nav aria-label={ariaLabel}>\n <OakFlex\n as={\"ul\"}\n $flexDirection={[\"row\"]}\n $gap={\"spacing-24\"}\n $mh={\"spacing-0\"}\n $mv={\"spacing-0\"}\n $ph={\"spacing-0\"}\n >\n {navItems.map(\n (\n { href, isCurrent, children }: OakPrimaryNavItemProps,\n index: number,\n ) => (\n <OakLI $listStyle={\"none\"} key={index}>\n <OakPrimaryNavItem href={href} isCurrent={isCurrent}>\n {children}\n </OakPrimaryNavItem>\n </OakLI>\n ),\n )}\n </OakFlex>\n </nav>\n );\n};\n","import React from \"react\";\n\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\n\ntype OakPupilJourneyListCounterProps = {\n count: number;\n countHeader: string;\n tag: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n};\n\nexport const OakPupilJourneyListCounter = (\n props: OakPupilJourneyListCounterProps,\n) => {\n const { count, countHeader, tag } = props;\n return (\n <OakHeading tag={tag} $font={[\"heading-6\", \"heading-6\"]}>\n {countHeader}\n <OakSpan $font={\"heading-light-6\"}>{` (${count})`}</OakSpan>\n </OakHeading>\n );\n};\n","import React from \"react\";\n\nimport {\n OakBulletList,\n OakBulletListProps,\n} from \"@/components/owa/OakBulletList\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\n\nexport type OakPupilJourneyListItemSubheadingProps = {\n textSlot?: React.ReactNode;\n} & OakBulletListProps;\n\n/**\n * This component displays a heading for the previous lessons\n *\n *\n * listItems - List of labels to be displayed\n * textSlot? - Can pass if any react node, but <OakPupilJourneyListCounter /> is recommended\n *\n */\nexport const OakPupilJourneyListItemSubheading = (\n props: OakPupilJourneyListItemSubheadingProps,\n) => {\n const { textSlot, listItems } = props;\n\n return (\n <OakFlex\n $flexDirection={[\"column\", \"row\"]}\n $flexWrap={\"wrap\"}\n $justifyContent={\"space-between\"}\n $flexGrow={[null, 1]}\n $alignItems={[\"flex-start\", \"center\"]}\n $gap={\"spacing-24\"}\n >\n {textSlot}\n <OakBulletList\n listItems={listItems}\n $background={\"bg-decorative5-very-subdued\"}\n $borderRadius={\"border-radius-s\"}\n $borderColor={\"border-decorative5\"}\n $ba={\"border-solid-s\"}\n $ph={\"spacing-8\"}\n $pv={\"spacing-4\"}\n />\n </OakFlex>\n );\n};\n","import React from \"react\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakGrid } from \"@/components/layout-and-structure/OakGrid\";\n\nexport type OakPupilJourneyOptionalityItemProps = {\n children: React.ReactNode;\n index: number;\n title: string;\n unavailable?: boolean;\n disabled?: boolean;\n};\n\n/**\n *\n * OakPupilJourneyOptionalityItem is a styled container to be used for units with optionality, OakPupilJourneyOptionalityButton should be used as children\n *\n */\nexport const OakPupilJourneyOptionalityItem = (\n props: OakPupilJourneyOptionalityItemProps,\n) => {\n const { children, index, title, unavailable, disabled, ...rest } = props;\n const disabledOrUnavailable = props.disabled || props.unavailable;\n return (\n <OakFlex\n $borderRadius={\"border-radius-m\"}\n $pa={\"spacing-24\"}\n $flexDirection={\"column\"}\n $gap={\"spacing-24\"}\n $background={unavailable ? \"bg-neutral\" : \"bg-primary\"}\n {...rest}\n >\n <OakFlex $alignItems={\"center\"} $gap={\"spacing-32\"}>\n <OakFlex>\n <OakBox\n $font={[\"heading-5\", \"heading-4\"]}\n $color={props.unavailable ? \"text-subdued\" : \"text-primary\"}\n $textDecoration={\"none\"}\n >\n {props.index}\n </OakBox>\n </OakFlex>\n <OakBox\n $font={[\"heading-6\", \"heading-5\"]}\n $color={disabledOrUnavailable ? \"text-subdued\" : \"text-primary\"}\n >\n {props.title}\n </OakBox>\n </OakFlex>\n <OakGrid\n $gridTemplateColumns={[\"repeat(1,1fr)\", \"repeat(2, 1fr)\"]}\n $cg={\"spacing-12\"}\n $rg={\"spacing-12\"}\n >\n {children}\n </OakGrid>\n </OakFlex>\n );\n};\n","import React from \"react\";\n\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakHandDrawnHR } from \"@/components/owa/OakHandDrawnHR\";\n\nexport type OakPupilJourneyProgrammeOptionsProps = {\n children: React.ReactNode;\n phase: \"primary\" | \"secondary\";\n titleSlot?: React.ReactNode;\n optionTitleSlot: React.ReactNode;\n};\n\n/**\n *\n * A styled list container with a option title to be use with OakPupilJourneyYearButton as the option Buttons\n *\n *\n */\n\nexport const OakPupilJourneyProgrammeOptions = ({\n children,\n phase,\n titleSlot,\n optionTitleSlot,\n}: OakPupilJourneyProgrammeOptionsProps) => {\n const outerBackgroundColor =\n phase === \"primary\"\n ? \"bg-decorative4-very-subdued\"\n : \"bg-decorative3-very-subdued\";\n const backgroundColor =\n phase === \"primary\" ? \"bg-decorative4-subdued\" : \"bg-decorative3-subdued\";\n return (\n <OakFlex\n $flexDirection={\"column\"}\n $width={[\"100%\", \"spacing-640\", \"spacing-960\"]}\n $background={outerBackgroundColor}\n >\n {titleSlot && (\n <OakFlex\n $flexDirection={\"column\"}\n $gap={[\"spacing-24\", \"spacing-32\", \"spacing-32\"]}\n $mb={\"spacing-32\"}\n >\n {titleSlot}\n <OakHandDrawnHR hrColor={\"bg-primary\"} $height={\"spacing-4\"} />\n </OakFlex>\n )}\n <OakFlex\n $justifyContent={\"center\"}\n $background={\"bg-primary\"}\n $ba={\"border-solid-m\"}\n $borderRadius={\"border-radius-l\"}\n $pa={\"spacing-24\"}\n $borderColor={backgroundColor}\n >\n <OakFlex\n $pv={\"spacing-24\"}\n $flexDirection={\"column\"}\n $alignItems={\"center\"}\n $gap={\"spacing-48\"}\n >\n {optionTitleSlot}\n <OakFlex\n $gap={\"spacing-16\"}\n $flexWrap={\"wrap\"}\n $justifyContent={\"center\"}\n >\n {children}\n </OakFlex>\n </OakFlex>\n </OakFlex>\n </OakFlex>\n );\n};\n","import React, { ElementType } from \"react\";\n\nimport {\n InternalShadowRectButton,\n InternalShadowRectButtonProps,\n} from \"@/components/internal-components/InternalShadowRectButton\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\n\nexport type OakPupilJourneyYearButtonProps = {\n phase: \"primary\" | \"secondary\";\n} & Omit<\n InternalShadowRectButtonProps,\n | \"defaultBorderColor\"\n | \"defaultBackground\"\n | \"defaultTextColor\"\n | \"hoverBackground\"\n | \"hoverBorderColor\"\n | \"hoverTextColor\"\n | \"disabledBackground\"\n | \"disabledBorderColor\"\n | \"disabledTextColor\"\n | \"pv\"\n | \"ph\"\n | \"font\"\n>;\n\n/**\n *\n * A specific implementation of InternalRectButton\n *\n * Changes colour according to the phase prop. Can be used as a link or a button.\n * The following callbacks are available for tracking focus events:\n *\n * ### onClick\n * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`\n *\n * ### onHovered\n * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n */\n\nexport const OakPupilJourneyYearButton = <C extends ElementType = \"button\">({\n phase,\n element,\n ...rest\n}: OakPupilJourneyYearButtonProps & PolymorphicPropsWithoutRef<C>) => {\n const defaultBackground =\n phase === \"primary\"\n ? \"bg-decorative4-very-subdued\"\n : \"bg-decorative3-very-subdued\";\n const hoverBackground =\n phase === \"primary\" ? \"bg-decorative4-main\" : \"bg-decorative3-main\";\n const borderColor =\n phase === \"primary\"\n ? \"border-decorative4-stronger\"\n : \"border-decorative3-stronger\";\n\n return (\n <InternalShadowRectButton\n element={element ?? \"button\"}\n pv={\"spacing-24\"}\n ph={\"spacing-24\"}\n font={\"heading-6\"}\n defaultBorderColor={borderColor}\n defaultBackground={defaultBackground}\n defaultTextColor=\"text-primary\"\n hoverBackground={hoverBackground}\n hoverBorderColor={borderColor}\n hoverTextColor=\"text-primary\"\n disabledBackground=\"bg-btn-secondary-disabled\"\n disabledBorderColor=\"border-neutral-lighter\"\n disabledTextColor=\"text-subdued\"\n hoverUnderline\n {...rest}\n />\n );\n};\n","import React from \"react\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakHeading } from \"@/components/typography/OakHeading\";\nimport { OakSpan } from \"@/components/typography/OakSpan\";\nimport { FlexStyleProps } from \"@/styles/utils/flexStyle\";\n\nexport type OakQuizPrintableSubHeaderProps = {\n title: string;\n grade: number;\n numQuestions: number;\n attempts?: number;\n} & FlexStyleProps;\n\n/**\n * This component is the header for quiz section in the printable view;\n *\n *\n *\n */\nexport const OakQuizPrintableSubHeader = ({\n title,\n grade,\n numQuestions,\n attempts,\n}: OakQuizPrintableSubHeaderProps) => {\n return (\n <OakFlex\n $flexDirection={[\"column\", \"row\"]}\n $gap={\"spacing-16\"}\n $justifyContent={\"space-between\"}\n $alignItems={[\"flex-start\", \"center\"]}\n >\n <OakHeading tag=\"h1\" $font={\"heading-6\"}>\n {title}\n </OakHeading>\n <OakFlex\n $flexDirection={\"row\"}\n $gap={attempts ? \"spacing-24\" : \"spacing-0\"}\n $background={\"bg-neutral\"}\n $pv={\"spacing-4\"}\n $ph={\"spacing-12\"}\n $borderRadius={\"border-radius-m\"}\n >\n <OakBox>\n <OakSpan $font=\"heading-4\">{grade}</OakSpan>\n <OakSpan $font=\"heading-6\">&nbsp;/&nbsp;{numQuestions}</OakSpan>\n </OakBox>\n <OakFlex\n $flexDirection={\"column\"}\n $gap={\"spacing-12\"}\n $justifyContent={\"center\"}\n >\n {attempts !== undefined && (\n <OakSpan $font=\"heading-6\">Attempts: {attempts}</OakSpan>\n )}\n </OakFlex>\n </OakFlex>\n </OakFlex>\n );\n};\n","import React from \"react\";\n\nimport {\n OakTextInput,\n OakTextInputProps,\n} from \"@/components/form-elements/OakTextInput\";\n\ntype OakQuizTextInputProps = Omit<\n OakTextInputProps,\n \"validity\" | \"iconName\" | \"iconAlt\" | \"isTrailingIcon\"\n> & {\n /**\n * Alters the appearance of the input to indicate whether or not a correct answer was given.\n * Also sets the input to read-only.\n */\n feedback?: \"correct\" | \"incorrect\" | null;\n};\n\n/**\n * A text input for a free-text question in a quiz\n */\nexport const OakQuizTextInput = ({\n feedback,\n readOnly,\n ...props\n}: OakQuizTextInputProps) => {\n let validity: OakTextInputProps[\"validity\"];\n let iconName: OakTextInputProps[\"iconName\"];\n let iconAlt: OakTextInputProps[\"iconAlt\"] = undefined;\n\n switch (feedback) {\n case \"correct\":\n validity = \"valid\";\n iconName = \"tick\";\n iconAlt = \"Correct\";\n break;\n case \"incorrect\":\n validity = \"invalid\";\n iconName = \"cross\";\n iconAlt = \"Incorrect\";\n break;\n }\n\n return (\n <OakTextInput\n {...props}\n validity={validity}\n iconName={iconName}\n iconAlt={iconAlt}\n readOnly={readOnly || !!feedback}\n isTrailingIcon\n />\n );\n};\n","import React, { ElementType } from \"react\";\n\nimport {\n InternalShadowRectButton,\n InternalShadowRectButtonProps,\n} from \"@/components/internal-components/InternalShadowRectButton\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\n\nexport type OakScaleImageButtonProps = Omit<\n InternalShadowRectButtonProps,\n | \"defaultTextColor\"\n | \"hoverTextColor\"\n | \"disabledTextColor\"\n | \"defaultBackground\"\n | \"defaultBorderColor\"\n | \"hoverBackground\"\n | \"hoverBorderColor\"\n | \"disabledBackground\"\n | \"disabledBorderColor\"\n | \"iconGap\"\n | \"pv\"\n | \"ph\"\n | \"$bblr\"\n | \"$btlr\"\n | \"width\"\n | \"onClick\"\n> & {\n onImageScaleCallback: (event: React.MouseEvent<HTMLButtonElement>) => void;\n isExpanded: boolean;\n};\n\n/**\n *\n * A specific implementation of InternalRectButton\n *\n * The following callback is available for tracking focus events:\n *\n * ### onImageScaleCallback\n * `onImageScaleCallback: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`\n *ą\n */\n\nexport const OakScaleImageButton = <C extends ElementType = \"button\">({\n onImageScaleCallback,\n isExpanded,\n}: OakScaleImageButtonProps & PolymorphicPropsWithoutRef<C>) => {\n return (\n <InternalShadowRectButton\n type=\"button\"\n onClick={onImageScaleCallback}\n iconName={!isExpanded ? \"expand\" : \"minimise\"}\n defaultTextColor={\"text-primary\"}\n hoverTextColor={\"text-primary\"}\n disabledTextColor={\"text-primary\"}\n defaultBackground={\"bg-neutral\"}\n defaultBorderColor={\"bg-neutral\"}\n hoverBackground={\"bg-neutral-stronger\"}\n hoverBorderColor={\"bg-neutral-stronger\"}\n disabledBackground={\"bg-btn-primary-disabled\"}\n disabledBorderColor={\"bg-btn-primary-disabled\"}\n iconGap={\"spacing-0\"}\n pv={\"spacing-0\"}\n ph={\"spacing-0\"}\n $bblr={\"border-radius-square\"}\n $btlr={\"border-radius-square\"}\n width={\"100%\"}\n aria-label={!isExpanded ? \"Expand Image\" : \"Minimise image\"}\n data-testid=\"expand-image-button\"\n />\n );\n};\n","import React, { useState } from \"react\";\n\nimport { OakSmallSecondaryButton } from \"@/components/buttons/OakSmallSecondaryButton\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\n\ntype OakSignLanguageButtonProps = {\n /**\n * On click function\n */\n onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;\n};\n\n/**\n * Display a button to toggle sign language\n */\nexport const OakSignLanguageButton = ({\n onClick,\n}: OakSignLanguageButtonProps) => {\n const [showSignLanguage, setShowSignLanguage] = useState(false);\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setShowSignLanguage(!showSignLanguage);\n onClick(event);\n };\n\n return (\n <>\n <OakBox $display={[\"none\", \"block\"]}>\n <OakSmallSecondaryButton\n iconName=\"sign-language\"\n isTrailingIcon\n onClick={handleClick}\n data-testid={\"sign-language-desktop-button\"}\n >\n {showSignLanguage ? \"Hide sign language\" : \"Show sign language\"}\n </OakSmallSecondaryButton>\n </OakBox>\n <OakBox $display={[\"block\", \"none\"]}>\n <OakSmallSecondaryButton onClick={handleClick}>\n {showSignLanguage ? \"Hide sign language\" : \"Show sign language\"}\n </OakSmallSecondaryButton>\n </OakBox>\n </>\n );\n};\n","import React, { ElementType } from \"react\";\n\nimport {\n InternalShadowIconButton,\n InternalShadowIconButtonProps,\n} from \"@/components/internal-components/InternalShadowIconButton\";\nimport { PolymorphicPropsWithoutRef } from \"@/components/polymorphic\";\n\nexport type OakSmallTertiaryInvertedButtonProps = Omit<\n InternalShadowIconButtonProps,\n | \"defaultBorderColor\"\n | \"defaultTextColor\"\n | \"hoverTextColor\"\n | \"disabledTextColor\"\n | \"iconSize\"\n>;\n\n/**\n *\n * A specific implementation of InternalShadowIconButton\n *\n * The following callbacks are available for tracking focus events:\n *\n * ### onClick\n * `onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;`\n *\n * ### onHovered\n * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>\n * called after a mouseEnter and mouseLeave event has happened\n */\nexport const OakSmallTertiaryInvertedButton = <\n C extends ElementType = \"button\",\n>({\n element,\n ...rest\n}: OakSmallTertiaryInvertedButtonProps & PolymorphicPropsWithoutRef<C>) => {\n return (\n <InternalShadowIconButton\n element={element ?? \"button\"}\n defaultTextColor=\"text-primary\"\n hoverTextColor=\"text-primary\"\n disabledTextColor=\"text-disabled\"\n disabledIconColor=\"text-disabled\"\n {...rest}\n />\n );\n};\n","import React from \"react\";\n\nimport {\n OakHandDrawnBoxWithIconProps,\n OakHandDrawnCardWithIcon,\n} from \"@/components/owa/OakHandDrawnCardWithIcon\";\nimport { OakPromoTag } from \"@/components/owa/OakPromoTag\";\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\n\nexport type OakSubjectIconProps = Pick<\n OakHandDrawnBoxWithIconProps,\n \"iconName\" | \"fill\" | \"iconColor\" | \"alt\"\n> & {\n iconName: `subject-${string}`;\n showPromoTag?: boolean;\n};\n\n/**\n * A large illuminated hand-drawn box with a subject icon in the center\n *\n * Accepts an optional `showPromoTag` prop to display a \"New\" tag in the top left corner\n */\nexport const OakSubjectIcon = ({\n showPromoTag,\n ...rest\n}: OakSubjectIconProps) => {\n return (\n <OakBox $width=\"fit-content\" $height=\"fit-content\" $position=\"relative\">\n <OakHandDrawnCardWithIcon {...rest} />\n {showPromoTag && (\n <OakBox\n $position=\"absolute\"\n $top={[\"spacing-0\", \"spacing-8\"]}\n $left={[\"spacing-0\", \"spacing-8\"]}\n >\n <OakPromoTag />\n </OakBox>\n )}\n </OakBox>\n );\n};\n","import React from \"react\";\nimport { ThemeProvider } from \"styled-components\";\n\nimport { OakTheme } from \"@/styles\";\n\nexport type OakThemeProviderProps = {\n theme: OakTheme;\n children: React.ReactNode;\n};\n\n/**\n *\n * OakThemeProvider wraps Styled Components ThemeProvider allowing the use of the custom type OakTheme.\n *\n */\nexport const OakThemeProvider = ({\n theme,\n children,\n}: OakThemeProviderProps) => {\n return <ThemeProvider theme={theme}>{children}</ThemeProvider>;\n};\n","import React, { ReactNode, useState } from \"react\";\n\nimport { OakBox } from \"@/components/layout-and-structure/OakBox\";\nimport { OakFlex } from \"@/components/layout-and-structure/OakFlex\";\nimport { OakCollapsibleContent } from \"@/components/layout-and-structure/OakCollapsibleContent\";\nimport { OakSmallSecondaryButton } from \"@/components/buttons/OakSmallSecondaryButton\";\n\ntype OakVideoTranscriptProps = {\n /**\n * The transcript content\n */\n children: ReactNode;\n /**\n * The id of the collapsible content element. This is used to link the button to the content\n */\n id: string;\n /**\n * A control to toggle sign language button (OakSignLanguageButton)\n */\n signLanguageControl?: ReactNode;\n /**\n * A control to toggle copy link button (OakCopyLinkButton)\n */\n copyLinkControl?: ReactNode;\n /**\n * A flag to control state of a transcript\n */\n transcriptToggled?: (props: { isOpen: boolean }) => void;\n};\n\n/**\n * Display a togglable video transcript with a slot to display a sign language control\n */\nexport const OakVideoTranscript = ({\n children,\n id,\n signLanguageControl = null,\n copyLinkControl = null,\n transcriptToggled,\n}: OakVideoTranscriptProps) => {\n const [showTranscript, setShowTranscript] = useState(false);\n\n const handleClick = () => {\n setShowTranscript(!showTranscript);\n if (transcriptToggled) {\n transcriptToggled({ isOpen: !showTranscript });\n }\n };\n\n const label = showTranscript ? \"Hide transcript\" : \"Show transcript\";\n\n return (\n <>\n <OakFlex\n $flexDirection=\"row\"\n $flexWrap={\"wrap\"}\n $gap={[\"spacing-8\", \"spacing-16\"]}\n >\n {/* desktop */}\n\n {children && (\n <OakBox $display={[\"none\", \"block\"]}>\n <OakSmallSecondaryButton\n onClick={handleClick}\n iconName={showTranscript ? \"chevron-up\" : \"chevron-down\"}\n isTrailingIcon\n aria-controls={id}\n aria-expanded={showTranscript}\n >\n {label}\n </OakSmallSecondaryButton>\n </OakBox>\n )}\n\n {/* mobile */}\n {children && (\n <OakBox $display={[\"block\", \"none\"]}>\n <OakSmallSecondaryButton\n onClick={handleClick}\n aria-controls={id}\n aria-expanded={showTranscript}\n >\n {label}\n </OakSmallSecondaryButton>\n </OakBox>\n )}\n {copyLinkControl && <OakBox>{copyLinkControl}</OakBox>}\n {signLanguageControl && <OakBox>{signLanguageControl}</OakBox>}\n </OakFlex>\n {children && (\n <OakCollapsibleContent\n id={id}\n $maxHeight=\"spacing-960\"\n isOpen={showTranscript}\n $font=\"body-2\"\n $color=\"text-primary\"\n $pa={\"spacing-12\"}\n $mt={[\"spacing-16\", \"spacing-32\"]}\n aria-live=\"polite\"\n >\n {children}\n </OakCollapsibleContent>\n )}\n </>\n );\n};\n","/**\n * Installs a mock of IntersectionObserver when it is not present in the environment\n *\n * This is a global mock, so it will affect all tests that run after it is imported.\n */\nexport function installMockIntersectionObserver() {\n globalThis.IntersectionObserver =\n globalThis.IntersectionObserver ??\n class MockIntersectionObserver implements IntersectionObserver {\n private readonly elements: Set<Element> = new Set();\n\n get root(): Element {\n throw new Error(\"Attribute not implemented.\");\n }\n get rootMargin(): string {\n throw new Error(\"Attribute not implemented.\");\n }\n get thresholds(): number[] {\n throw new Error(\"Attribute not implemented.\");\n }\n takeRecords(): IntersectionObserverEntry[] {\n throw new Error(\"Method not implemented.\");\n }\n observe(element: Element) {\n this.elements.add(element);\n }\n unobserve(element: Element) {\n this.elements.delete(element);\n }\n disconnect() {\n this.elements.clear();\n }\n };\n}\n","/**\n * Installs a mock of ResizeObserver when it is not present in the environment\n *\n * This is a global mock, so it will affect all tests that run after it is imported.\n */\n\nexport function installMockResizeObserver() {\n globalThis.ResizeObserver =\n globalThis.ResizeObserver ??\n class MockResizeObserver implements ResizeObserver {\n disconnect() {\n // Mock implementation of disconnect\n }\n observe() {\n // Mock implementation of observe\n }\n unobserve() {\n // Mock implementation of unobserve\n }\n };\n}\n","import { OakTheme } from \"./theme\";\n\nexport const oakDarkTheme: OakTheme = {\n name: \"dark\",\n uiColors: {\n \"text-primary\": \"white\",\n \"text-subdued\": \"grey30\",\n \"text-error\": \"red50\",\n \"text-disabled\": \"grey30\",\n \"text-link-active\": \"lavender\",\n \"text-link-hover\": \"lavender50\",\n \"text-link-pressed\": \"lavender30\",\n \"text-link-visited\": \"lavender30\",\n \"text-inverted\": \"black\",\n \"text-success\": \"mint\",\n \"text-promo\": \"lemon50\",\n \"bg-primary\": \"black\",\n \"bg-inverted\": \"white\",\n \"bg-inverted-semi-transparent\": \"whiteSemiTransparent\",\n \"bg-neutral\": \"grey60\",\n \"bg-neutral-stronger\": \"grey70\",\n \"bg-btn-primary\": \"white\",\n \"bg-btn-primary-hover\": \"grey30\",\n \"bg-btn-primary-disabled\": \"grey50\",\n \"bg-btn-secondary\": \"black\",\n \"bg-btn-secondary-hover\": \"grey60\",\n \"bg-btn-secondary-disabled\": \"grey50\",\n \"bg-decorative1-main\": \"dark-mint\",\n \"bg-decorative1-subdued\": \"dark-mint50\",\n \"bg-decorative1-very-subdued\": \"dark-mint30\",\n \"bg-decorative2-main\": \"dark-aqua\",\n \"bg-decorative2-subdued\": \"dark-aqua50\",\n \"bg-decorative2-very-subdued\": \"dark-aqua30\",\n \"bg-decorative3-main\": \"dark-lavender\",\n \"bg-decorative3-subdued\": \"dark-lavender50\",\n \"bg-decorative3-very-subdued\": \"dark-lavender30\",\n \"bg-decorative4-main\": \"dark-pink\",\n \"bg-decorative4-subdued\": \"dark-pink50\",\n \"bg-decorative4-very-subdued\": \"dark-pink30\",\n \"bg-decorative5-main\": \"dark-lemon\",\n \"bg-decorative5-subdued\": \"dark-lemon50\",\n \"bg-decorative5-very-subdued\": \"dark-lemon30\",\n \"bg-decorative6-main\": \"dark-amber\",\n \"bg-decorative6-subdued\": \"dark-amber50\",\n \"bg-decorative6-very-subdued\": \"dark-amber30\",\n \"bg-interactive-element1\": \"grey50\",\n \"bg-interactive-element2\": \"grey30\",\n \"bg-correct\": \"mint30\",\n \"bg-incorrect\": \"red30\",\n \"bg-success\": \"mint\",\n \"bg-error\": \"red50\",\n \"icon-inverted\": \"black\",\n \"icon-disabled\": \"grey30\",\n \"icon-brand\": \"mint\",\n \"icon-success\": \"mint\",\n \"icon-error\": \"red50\",\n \"icon-warning\": \"dark-amber110\",\n \"icon-primary\": \"white\",\n \"icon-subdued\": \"grey30\",\n \"icon-link-active\": \"lavender\",\n \"icon-link-hover\": \"lavender50\",\n \"icon-link-pressed\": \"lavender30\",\n \"icon-link-visited\": \"lavender30\",\n \"icon-decorative1\": \"dark-mint110\",\n \"icon-decorative2\": \"dark-aqua110\",\n \"icon-decorative3\": \"dark-lavender110\",\n \"icon-decorative4\": \"dark-pink110\",\n \"icon-decorative5\": \"dark-lemon110\",\n \"icon-decorative6\": \"dark-amber110\",\n \"icon-promo\": \"dark-lemon110\",\n \"border-primary\": \"white\",\n \"border-inverted\": \"black\",\n \"border-neutral\": \"grey60\",\n \"border-neutral-lighter\": \"grey70\",\n \"border-neutral-stronger\": \"grey40\",\n \"border-brand\": \"mint\",\n \"border-success\": \"mint\",\n \"border-error\": \"red50\",\n \"border-warning\": \"dark-amber\",\n \"border-decorative1\": \"dark-mint\",\n \"border-decorative1-stronger\": \"dark-mint110\",\n \"border-decorative2\": \"dark-aqua\",\n \"border-decorative2-stronger\": \"dark-aqua110\",\n \"border-decorative3\": \"dark-lavender\",\n \"border-decorative3-stronger\": \"dark-lavender110\",\n \"border-decorative4\": \"dark-pink\",\n \"border-decorative4-stronger\": \"dark-pink110\",\n \"border-decorative5\": \"dark-lemon\",\n \"border-decorative5-stronger\": \"dark-lemon110\",\n \"border-decorative6\": \"dark-amber\",\n \"border-decorative6-stronger\": \"dark-amber110\",\n transparent: \"transparent\",\n \"code-blue\": \"dark-rpf-syntax-blue\",\n \"code-green\": \"dark-rpf-syntax-green\",\n \"code-grey\": \"dark-rpf-syntax-grey\",\n \"code-pink\": \"dark-rpf-syntax-pink\",\n \"border-text-link-pressed\": \"lavender30\",\n },\n};\n","export const rgbToHex = (rgb: string) => {\n const match = rgb.match(/\\d+/g); // Extract numbers from RGB format\n if (!match || match.length < 3) return rgb; // Ensure we have at least R, G, B values\n\n return `#${match\n .slice(0, 3) // Use only first 3 values (ignore alpha if present)\n .map((x) => {\n const hex = parseInt(x, 10).toString(16); // Convert to hex\n return hex.length === 1 ? \"0\" + hex : hex; // Ensure two-digit hex values\n })\n .join(\"\")}`;\n};\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","rejected","result","done","then","__generator","body","f","y","_","label","sent","trys","ops","g","create","Iterator","verb","Symbol","iterator","v","op","TypeError","pop","push","__values","o","m","__read","r","ar","error","__spreadArray","to","from","pack","l","Array","slice","concat","__makeTemplateObject","cooked","raw","defineProperty","SuppressedError","oakColorTokens","white","grey10","grey20","grey30","grey40","grey50","grey60","grey70","grey80","black","oakGreen","mint","mint30","mint50","mint110","aqua","aqua30","aqua50","aqua110","lavender","lavender30","lavender50","lavender110","pink","pink30","pink50","pink110","lemon","lemon30","lemon50","lemon110","amber","amber30","amber50","red","red30","red50","navy","navy110","navy120","blue","magenta","purple","teal","blackSemiTransparent","whiteSemiTransparent","transparent","oakColorFilterTokens","oakUiRoleTokens","parseColor","includes","_a","c","theme","uiColors","truthy","breakpointsByName","small","large","breakpoints","values","sort","a","b","getBreakpoint","breakpointName","mediaQueries","mobile","tablet","desktop","getMediaQuery","device","responsiveStyle","attr","getValues","parse","x","props","attrCss","undefined","css","templateObject_1","isArray","templateObject_3","map","breakpoint","templateObject_4","filter","templateObject_2","colorStyle","$color","$background","pxToRem","px","Number","toFixed","oakAllSpacingTokens","oakSpaceBetweenTokens","parseSpacing","positionStyle","$position","$top","$right","$bottom","$left","$inset","$overflow","$overflowX","$overflowY","$objectFit","$objectPosition","$pointerEvents","$visibility","$verticalAlign","sizeStyle","$width","$minWidth","$maxWidth","$height","$minHeight","$maxHeight","$aspectRatio","$boxSizing","paddingAll","$pa","paddingHorizontal","$ph","paddingVertical","$pv","paddingLeft","$pl","paddingRight","templateObject_5","$pr","paddingTop","templateObject_6","$pt","paddingBottom","templateObject_7","$pb","marginAll","templateObject_8","$ma","marginHorizontal","templateObject_9","$mh","marginVertical","templateObject_10","$mv","marginLeft","templateObject_11","$ml","marginRight","templateObject_12","$mr","marginTop","templateObject_13","$mt","marginBottom","templateObject_14","$mb","marginStyle","paddingStyle","spacingStyle","oakBorderWidthTokens","oakBorderRadiusTokens","parseBorder","parseBorderRadius","borderAll","$ba","borderTop","$bt","borderRight","$br","borderBottom","$bb","borderLeft","$bl","borderHorizontal","$bh","borderVertical","$bv","borderColor","$borderColor","borderRadius","$borderRadius","borderRadiusTopLeft","$btlr","borderRadiusTopRight","$btrr","borderRadiusBottomLeft","$bblr","borderRadiusBottomRight","$bbrr","borderRadiusTop","$btr","borderRadiusBottom","templateObject_15","$bbr","borderStrokeStyle","templateObject_16","$borderStyle","borderStyle","templateObject_17","displayStyle","$display","oakDropShadowTokens","parseDropShadow","variant","dropShadowStyle","$dropShadow","oakOpacityTokens","opaque","parseOpacity","opacityStyle","$opacity","transformStyle","$transform","$transformOrigin","oakTransitionTokens","parseTransitions","transitionStyle","$transition","oakFontSizeTokens","oakFontTokens","parseFontWeight","font","parseFontSize","fontSize","parseLineHeight","lineHeight","parseLetterSpacing","typographyStyle","$font","$textAlign","$textDecoration","$whiteSpace","$wordWrap","$textOverflow","$textWrap","oakZIndexTokens","behind","neutral","banner","parseZIndex","zIndexStyle","$zIndex","scrollMarginTop","$scrollMarginTop","scrollMarginLeft","$scrollMarginLeft","scrollSnapStyle","oakBoxCss","onClick","OakBox","styled","div","flexStyle","$flexDirection","$flexWrap","$alignItems","$alignContent","$justifyContent","$alignSelf","$order","$flexGrow","$flexShrink","$flexBasis","$gap","$columnGap","$rowGap","oakFlexCss","OakFlex","OakSpan","span","Underline","React","createElement","xmlns","viewBox","fill","preserveAspectRatio","d","svgMap","underline","scribble","width","height","clipPath","stroke","strokeMiterlimit","id","StyledSvg","svg","OakSvg","name","SvgComponent","internalButtonCss","InternalButton","onHovered","Component","rest","hoverStart","useRef","Date","now","event","onMouseEnter","current","onMouseLeave","delta","icons","ai","home","send","rocket","edit","expand","minimise","hamburger","cross","copy","bell","twitter","worksheet","facebook","share","save","success","linkedin","books","external","download","search","go","copyright","project","tick","instagram","dot","warning","lightbulb","pencil","quiz","video","intro","loopdown","info","play","clipboard","threads","spreadsheet","data","chatting","strand","plus","swimming","burst","confetti","image","logo","trash","list","retake","globe","backgrounds","parseColorFilter","colorFilterStyle","$colorFilter","oakPlaceholder","clickStyles","placeholderStyles","$showOakPlaceholder","StyledFillImage","Image","StyledResponsiveImage","OakImage","as","src","alt","sizes","_b","_c","_d","placeholder","unoptimized","imageProps","onLoad","onError","finalPlaceholder","_e","useState","showPlaceholder","setShowPlaceholder","setImg","useCallback","img","complete","handleComplete","originalHandler","useShowPlaceholder","ref","oakIconNames","keys","isValidIconName","iconName","generateOakIconURL","urlPath","process","env","NEXT_PUBLIC_OAK_ASSETS_HOST","NEXT_PUBLIC_OAK_ASSETS_PATH","OakIcon","iconWidth","iconHeight","screenReaderStyle","OakScreenReader","SpinnerKeyframe","keyframes","DelayedShow","StyledLoadingSpinner","$delay","loaderColor","OakLoadingSpinner","StyledInternalButton","$hoverUnderline","$hoverTextColor","$hoverBackground","$hoverBorderColor","$defaultBackground","$defaultBorderColor","$defaultTextColor","$disabledBackground","$disabledBorderColor","$disabledTextColor","StyledOakSvg","StyledButtonWrapper","$hoverShadow","InternalShadowRectButton","element","children","iconAriaHidden","isTrailingIcon","isLoading","disabled","maxWidth","innerWidth","defaultBackground","defaultBorderColor","defaultTextColor","disabledTextColor","hoverTextColor","hoverBackground","hoverBorderColor","hoverUnderline","disabledBackground","disabledBorderColor","className","hoverShadow","pv","_f","ph","pt","pb","pl","pr","_g","iconLayout","_h","iconGap","iconOverride","_j","_k","textAlign","_l","loadingSpinnerSize","_m","display","selected","icon","Fragment","loader","iconLogic","TextWithUnderline","OakSecondaryButton","OakButtonWithDropdown","primaryActionText","primaryActionIcon","onPrimaryAction","ariaLabel","ariaDescription","leadingButtonIcon","dataTestId","ButtonComponent","dropdownTopSpacing","flexWidth","closeOnChange","isOpen","setIsOpen","dropdownRef","handleCloseOnChange","useEffect","handleKeyDown","focusableElements","querySelectorAll","currentIndex","document","activeElement","key","preventDefault","focus","handleClick","contains","target","addEventListener","removeEventListener","role","Divider","Item","$hoverIconColor","$hoverDropShadow","$disabledIconBackground","$hoverIconBackground","$defaultIconBackground","InternalShadowRoundButton","iconBackgroundSize","iconSize","disabledIconBackground","hoverIconColor","defaultIconColor","hoverIconBackground","defaultIconBackground","defaultIconBorderColor","disabledIconBorderColor","disabledIconColor","hoverDropShadow","iconBorderColor","OakCloseButton","onClose","OakPrimaryButton","OakPrimaryInvertedButton","OakSecondaryButtonWithDropdown","buttonComponent","OakSmallPrimaryButton","OakSmallPrimaryInvertedButton","OakSmallSecondaryButton","OakSmallSecondaryButtonWithDropdown","OakSmallSecondaryToggleButton","toggleOn","InternalShadowIconButton","OakTertiaryButton","OakTertiaryInvertedButton","oakHeadingTags","HeadingTagComponent","tag","ariaHidden","otherProps","Tag","OakHeading","listStyle","$listStyle","oakLIDefaults","OakLI","li","attrs","OakOL","ol","OakP","OakTypography","OakUL","ul","$reset","variantConfig","primary","color","hoverColor","activeColor","visitedColor","textDecoration","secondary","StyledOakIcon","StyledOakLoadingSpinner","StyledLink","$visitedColor","$hoverColor","$activeColor","$disabledColor","InternalLink","forwardRef","disabledColor","OakLink","variantDefinition","OakCookieBanner","state","innerMaxWidth","onOpenSettings","onHide","onAccept","onReject","isFixed","zIndex","finalZIndex","type","accordionContext","createContext","InternalAccordionProvider","isInitialOpen","accordionValue","setOpen","Provider","useAccordionContext","useContext","Error","FlexWithReset","InternalAccordionContent","onScroll","hidden","InternalAccordionButton","StyledOakFlex","Accordion","header","headerTag","headerAfterSlot","chevronPosition","openBackground","styleProps","HeaderTag","chevron","style","transform","OakAccordion","initialOpen","BaseCheckBox","internalCheckBoxDefaults","$checkedBackground","InternalCheckBox","$uncheckedBorderColor","$checkedBorderColor","internalCheckBoxHoverDefaults","$hoverBorderRadius","InternalCheckBoxHover","focusStyle","InternalCheckBoxHoverFocus","OakLabel","InternalCheckBoxLabel","labelGap","labelAlignItems","InternalCheckBoxLabelHoverDecor","pointerEvents","StyledIconContainer","InternalCheckBoxWrapper","size","iconPadding","internalCheckbox","checkedIcon","OakCheckBox","displayValue","defaultChecked","checked","onChange","onFocus","onBlur","hoverBorderRadius","checkboxSize","checkboxBorder","checkboxBorderRadius","defaultColor","uncheckedBorderColor","checkedBorderColor","_o","_p","checkedBackgroundFill","currentColor","currentCheckedBackgroundFill","currentCheckedBorderColor","htmlFor","useIsScrolled","isScrolled","setIsScrolled","canaryElement","setCanaryElement","ObserveScroll","useLayoutEffect","observer","IntersectionObserver","mutations","some","mutation","isIntersecting","root","parentElement","observe","disconnect","useMounted","isMounted","setIsMounted","zeroRightClassName","fullWidthClassName","assignRef","useIsomorphicLayoutEffect","window","currentValues","WeakMap","useMergeRefs","refs","defaultValue","initialValue","callback","callbackRef","newValue","forEach","facade","last","oldValue","get","prevRefs_1","Set","nextRefs_1","current_1","has","set","ItoI","innerCreateMedium","defaults","middleware","buffer","assigned","read","useMedium","item","assignSyncMedium","cb","cbs","assignMedium","pendingQueue","executeQueue","cycle","createMedium","createSidecarMedium","options","medium","async","ssr","SideCar","sideCar","Target","exportSidecar","exported","isSideCarExport","effectCar","nothing","RemoveScroll","parentRef","onScrollCapture","onWheelCapture","onTouchMoveCapture","callbacks","setCallbacks","forwardProps","removeScrollBar","enabled","shards","noRelative","noIsolation","inert","allowPinchZoom","Container","gapMode","containerRef","containerProps","lockRef","cloneElement","Children","only","_extends","bind","defaultProps","classNames","fullWidth","zeroRight","NODE_ENV","reactIsModule","exports","for","h","k","q","w","z","u","$$typeof","A","reactIs_production_min","AsyncMode","ConcurrentMode","ContextConsumer","Element","ForwardRef","Lazy","Portal","Profiler","StrictMode","Suspense","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isProfiler","isStrictMode","isSuspense","isValidElementType","typeOf","require$$0","hasSymbol","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_BLOCK_TYPE","REACT_FUNDAMENTAL_TYPE","REACT_RESPONDER_TYPE","REACT_SCOPE_TYPE","object","$$typeofType","ContextProvider","Memo","hasWarnedAboutDeprecatedIsAsyncMode","reactIs_development","console","isPortal","propIsEnumerable","objectAssign","test1","String","getOwnPropertyNames","test2","fromCharCode","join","test3","split","letter","err","shouldUseNative","source","symbols","val","toObject","ReactPropTypesSecret_1","Function","printWarning","ReactPropTypesSecret","loggedTypeFailures","require$$1","text","message","checkPropTypes","typeSpecs","location","componentName","getStack","typeSpecName","ex","stack","resetWarningCache","checkPropTypes_1","ReactIs","require$$2","require$$3","require$$4","emptyFunctionThatReturnsNull","factoryWithTypeCheckers","isValidElement","throwOnDirectAccess","ITERATOR_SYMBOL","ANONYMOUS","ReactPropTypes","array","createPrimitiveTypeChecker","bigint","bool","func","number","string","symbol","any","createChainableTypeChecker","arrayOf","typeChecker","propName","propFullName","PropTypeError","propValue","getPropType","elementType","instanceOf","expectedClass","expectedClassName","constructor","node","isNode","objectOf","propType","oneOf","expectedValues","is","valuesString","JSON","stringify","getPreciseType","oneOfType","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","expectedTypes","checkerResult","expectedType","shape","shapeTypes","invalidValidatorError","exact","allKeys","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","isRequired","secret","cacheKey","chainedCheckType","every","iteratorFn","maybeIterable","getIteratorFn","entries","entry","RegExp","isSymbol","PropTypes","emptyFunction","emptyFunctionWithReset","factoryWithThrowingShims","shim","getShim","propTypesModule","FOCUS_GROUP","FOCUS_DISABLED","hiddenGuard","padding","overflow","position","top","left","mediumFocus","_ref","currentTarget","mediumBlur","mediumEffect","mediumSidecar","focusScope","emptyArray","FocusLock","_extends2","_useState","realObserved","setObserved","observed","isActive","originalFocusedElement","update","_props$disabled","_props$noFocusGuards","noFocusGuards","_props$persistentFocu","persistentFocus","_props$crossFrame","crossFrame","_props$autoFocus","autoFocus","allowTextSelection","group","whiteList","hasPositiveIndices","_props$shards","_props$as","_props$lockProps","lockProps","_props$returnFocus","returnFocus","shouldReturnFocus","focusOptions","onActivationCallback","onActivation","onDeactivationCallback","onDeactivation","captureFocusRestore","_document","allowDefer","focusRestore","returnFocusTo","howToReturnFocus","returnFocusOptions","setObserveNode","newObserved","warn","hasLeadingGuards","hasTailingGuards","mergedRef","focusScopeValue","useMemo","active","tabIndex","deferAction","action","setTimeout","propTypes","extractRef","focusHiddenMarker","PREVENT_SCROLL","preventScroll","FocusOn","setLockProps","activeNode","setActiveNode","scrollLock","focusLock","shouldIgnore","preventScrollOnFocus","appliedLockProps","ReactFocusLock","_setPrototypeOf","setPrototypeOf","__proto__","_inheritsLoose","_typeof","toPropertyKey","toPrimitive","toArray","ret","asArray","getFirst","getParentNode","parentNode","nodeType","Node","DOCUMENT_FRAGMENT_NODE","host","isTopNode","DOCUMENT_NODE","isVisibleUncached","checkParent","ELEMENT_NODE","computedStyle","getComputedStyle","getPropertyValue","isElementHidden","hasAttribute","isInert","isVisibleCached","visibilityCache","cached","isAutoFocusAllowedCached","cache","isAutoFocusAllowed","isAutoFocusAllowedUncached","getDataset","dataset","isHTMLInputElement","tagName","isRadioElement","attribute","getAttribute","isGuard","Boolean","focusGuard","isNotAGuard","isDefined","tabSort","aTab","Math","max","bTab","tabDiff","indexDiff","index","orderByTabIndex","nodes","filterNegative","keepGuards","getTabIndex","queryTabbables","queryGuardTabbables","getFocusablesWithShadowDom","parent","withGuards","shadowRoot","reduce","acc","child","matches","getFocusables","parents","focusableWithShadowDom","focusableWithIframes","HTMLIFrameElement","contentDocument","getFocusablesWithIFrame","filterFocusable","isHTMLButtonElement","notHiddenInput","filterAutoFocusable","Map","getTabbableNodes","topNodes","getFocusableNodes","parentAutofocusables","topNode","parentFocus","scope","getPrototypeOf","iframeBody","getTopParent","getAllAffectedNodes","currentNode","contained","j","compareDocumentPosition","DOCUMENT_POSITION_CONTAINED_BY","add","DOCUMENT_POSITION_CONTAINS","filterNested","getActiveElement","inDocument","safeProbe","contentWindow","focusInside","ownerDocument","frame","focusInFrame","focusInsideIframe","correctNode","el","findSelectedRadio","pickFirstFocus","pickFocusable","NEW_FOCUS","newFocus","innerNodes","innerTabbables","outerNodes","lastNode","cnt","firstFocus","lastFocus","isOnGuard","activeIndex","lastIndex","lastNodeInside","resultSet","firstNodeIndex","lastNodeIndex","correctedNodes","currentFocusableIndex","previousFocusableIndex","tabbableNodes","currentTabbableIndex","previousTabbableIndex","focusIndexDiff","returnFirstNode","returnLastNode","abs","pickAutofocus","nodesIndexes","orderedNodes","groups","autoFocusables","autoFocusable","autofocus","getParents","getCommonParent","nodeA","nodeB","parentsA","parentsB","currentParent","getTopCommonParent","baseActiveElement","leftEntry","rightEntries","activeElements","leftEntries","topCommon","subEntry","common","allParentAutofocusables","focusSolver","commonParent","anyFocusable","innerElements","srcNodes","dstNodes","remap","orderedInnerElements","entity","innerFocusables","innerTabbable","newId","focusNode","focusOn","guardCount","lockDisabled","moveFocusInside","focusable","weakRef","WeakRef","deref","targetElement","currentElement","previousElementSibling","right","nextElementSibling","recordElementLocation","_i","stack_1","line","parent_1","savedCurrent","focusables","aim","focusables_1","restoreFocusTo","moveFocus","fromElement","newOptions","onlyTabbable","defaultOptions","solution","useTabbables","shard","findIndex","prev","first","getRelativeFocusable","pickBoundary","what","focusOnBody","isFreeFocus","focusIsHidden","lastActiveTrap","lastActiveFocus","tryRestoreFocus","lastPortaledElement","focusWasOutsideWindow","windowFocused","defaultWhitelist","autoGuard","startIndex","end","allNodes","lastGuard","guard","focusAutoGuard","lockItem","checkInHost","check","boundary","getNodeFocusables","activateTrap","_lastActiveTrap","workingNode","portaledElement","newTarget","workingArea","focusWhitelisted","shouldForceRestoreFocus","area","withinHost","blur","querySelector","newActiveElement","focusedIndex","_ref2","_ref3","_ref4","removeAttribute","onTrap","stopPropagation","onWindowFocus","onWindowBlur","focusLockAPI","focusNextElement","focusPrevElement","focusFirstElement","focusLastElement","observerNode","FocusTrap","reducePropsToState","handleStateChangeOnClient","WrappedComponent","mountedInstances","emitChange","instance","SideEffect","_PureComponent","peek","_proto","componentDidMount","componentDidUpdate","componentWillUnmount","splice","render","PureComponent","displayName","getDisplayName","enumerable","configurable","writable","withSideEffect","propsList","_ref6","traps","trap","lastTrap","sameTrap","_ref7","makeStyleTag","nonce","__webpack_nonce__","getNonce","setAttribute","stylesheetSingleton","counter","stylesheet","styleSheet","cssText","appendChild","createTextNode","head","getElementsByTagName","insertStyleTag","remove","removeChild","styleSingleton","sheet","useStyle","styles","isDynamic","dynamic","zeroGap","gap","parseInt","getGapWidth","offsets","cs","getOffset","documentWidth","documentElement","clientWidth","windowWidth","Style","lockAttribute","getStyles","allowRelative","important","getCurrentUseCounter","isFinite","RemoveScrollBar","noImportant","toString","newCounter","passiveSupported","nonPassive","passive","elementCanBeScrolled","overflowY","overflowX","alwaysContainsScroll","locationCouldBeScrolled","axis","ShadowRoot","elementCouldBeScrolled","getScrollVariables","elementCouldBeVScrolled","elementCouldBeHScrolled","scrollTop","scrollHeight","clientHeight","scrollLeft","scrollWidth","getHScrollVariables","getTouchXY","changedTouches","clientX","clientY","getDeltaXY","deltaX","deltaY","generateStyle","idCounter","lockStack","getOutermostShadowParent","shadowParent","shouldPreventQueue","touchStartRef","activeAxis","lastProps","classList","allow_1","shouldCancelEvent","touches","ctrlKey","currentAxis","touch","touchStart","moveDirection","selection","getSelection","anchorNode","canBeScrolledInMainDirection","cancelingAxis","endTarget","sourceDelta","directionFactor","direction","getDirectionFactor","targetInLock","shouldCancelScroll","isDeltaPositive","availableScroll","availableScrollTop","elementScroll","handleScroll","shouldPrevent","_event","sourceEvent","should","cancelable","shardNodes","shouldCancel","scrollTouchStart","scrollWheel","scrollTouchMove","inst","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","applyAttributeToOthers","originalTarget","markerName","controlAttribute","targets","correctedTarget","correctTargets","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","deep","alreadyHidden","counterValue","markerValue","clear","delete","hideOthers","activeParentNode","getDefaultParent","InteractivityDisabler","onEscapeKey","onClickOutside","lastEventTarget","mouseTouches","onKeyDown","defaultPrevented","code","keyCode","onMouseDown","MouseEvent","button","onTouchStart","onTouchEnd","il","jl","__spreadArrays","RequireSideCar","ReactFocusOn","config","timeoutsShape","enter","exit","appear","enterDone","enterActive","exitDone","exitActive","TransitionGroupContext","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","Transition","_React$Component","context","_this","initialStatus","isMounting","appearStatus","in","unmountOnExit","mountOnEnter","status","nextCallback","getDerivedStateFromProps","prevState","updateStatus","prevProps","nextStatus","cancelNextCallback","getTimeouts","timeout","mounting","nodeRef","ReactDOM","findDOMNode","forceReflow","performEnter","performExit","setState","_this2","appearing","maybeNode","maybeAppearing","timeouts","enterTimeout","safeSetState","onEntered","onEnter","onEntering","onTransitionEnd","_this3","onExit","onExiting","onExited","cancel","nextState","setNextCallback","_this4","handler","doesNotHaveTimeoutOrListener","addEndListener","maybeNextCallback","_this$props","childProps","_objectWithoutPropertiesLoose","noop","contextType","defaultView","_len","args","_key","SlideInFlex","isLeftHandSide","$state","largeScreenMaxWidth","InternalSlideInFlex","FadeOutBox","InternalModalTransition","transitionRef","closeOnBackgroundClick","OakInformativeModalBorderColor","OakInformativeModal","footerSlot","domContainer","createPortal","OakInformativeModalFooter","OakCookieSettingsModal","onConfirm","policyURL","policyConsents","form","href","onSubmit","formData","FormData","newConsents","policyConsents_1","policyConsents_1_1","policyId","isStrictlyNecessary","consentState","getAll","policy","policyLabel","policyDescription","policyParties","party","all","url","rel","cookieConsentReducer","currentState","isSettingsModalOpen","bannerState","getInitialState","getDefaultContextState","showBanner","hideBanner","openSettings","closeSettings","rejectModalConsents","confirmModalConsents","acceptModalConsents","rejectBannerConsents","acceptBannerConsents","OakCookieConsentContext","OakFieldset","fieldset","OakForm","textAreaCss","UnstyledOakTextArea","OakTextArea","RadioContext","currentValue","OakButtonAsRadioGroup","ariaLabelledby","setCurrentValue","onValueUpdated","OakFieldError","StyledInput","input","InternalTextInput","onInitialFocus","hadInitialFocused","StyledTextInputWrapper","$focusBorderColor","$focusBackgroundColor","$disabled","$disabledBackgroundColor","OakFormInput","focusBorderColor","focusBackgroundColor","background","disabledBackgroundColor","invalid","invalidBorderColor","wrapperWidth","wrapperMaxWidth","OakJauntyAngleLabel","oakBoxProps","getInternalPadding","fontSizeToken","heightNumber","replace","textLineHeight","ceil","floor","min","gridStyle","$rg","$cg","$gridAutoRows","$gridTemplateAreas","$gridTemplateColumns","$gridTemplateRows","OakGrid","combineSpanStart","start","parseSpanStart","span_1","gridArea","$colSpan","$colStart","$rowSpan","$rowStart","$colEnd","OakGridArea","useMediaQuery","setMatches","query","media","globalThis","matchMedia","listener","getMediaQueries","mediaDesktop","mediaTablet","matchBreakpoint","StyledOakTextArea","UnstyledComponent","charLimit","errors","textAreaProps","showCharCount","setShowCharCount","internalValue","setInternalValue","isControlled","charCountWidth","charCount","textAreaPadding","useDevice","maxLength","overscrollBehavior","OakMultilineText","isDesktop","isTablet","DisplayContentsLegend","OakRadioGroup","BaseRadio","internalRadioDefaults","InternalRadio","internalRadioHoverDefaults","InternalRadioHover","VisibleRadioButtonInput","$disableFocusRing","$radioInnerSize","DisabledVisibleRadioButtonInput","InternalRadioWrapper","internalRadio","disableFocusRing","radioInnerSize","radioOuterSize","radioBorderWidth","radioBorderColor","radioBackground","checkedRadioBorderWidth","finalRadioBorderWidth","RadioButtonLabel","$labelGap","$labelAlignItems","OakRadioButton","required","radioContext","anyDisabled","OakSecondaryButtonAsRadio","NativeSelect","$readOnly","$readOnlyBorderColor","$readOnlyColor","$focusRingDropShadows","dropShadow","IconUp","IconDown","StyledWrapper","NativeOptGroup","NativeOption","$asDefault","NativeLegend","OakTextInput","readOnlyBorderColor","focusRingDropShadows","highlightBackgroundColor","readOnlyColor","validity","iconColor","validBorderColor","_q","_r","validIconColor","_s","invalidIconColor","iconAlt","_t","_u","isHighlighted","finalBackgroundColor","finalBorderColor","finalIconColor","finalReadOnlyBorderColor","readOnly","StyledFlexBox","$colorSchemeTokens","$keepIconColor","StyledInternalCheckBox","getTimeText","timestamp","date","isNaN","getTime","diff","seconds","$highlighted","OakFormInputWithLabels","helperText","invalidText","inputName","inputId","toLowerCase","oakAspectRatioPercentage","OakAspectRatioOuter","ratio","OakAspectRatioInner","OakRoundIcon","oakMaxWidthDefaults","OakMaxWidth","oakDefaultTheme","parseBorderWidth","colorFillStyle","$fill","InternalStyledSvg","$stroke","$strokeWidth","HandDrawnFocusUnderlineSvg","OakHandDrawnFocusUnderline","FocusUnderlineColor","flexProps","StyledAccordionUnderline","StyledAccordionButton","StyledContainer","BottomBoxShadow","shouldDisplayShadow","subheading","setShouldDisplayShadow","scrollBox","transition","InternalChevronAccordion","StyledScrollBox","OakCollapsibleContent","OakKbd","bannerTypes","iconColorFilter","backgroundColour","borderColour","alert","bannerVariants","regular","defaultIconDimensions","loadingSpinnerDimensions","heading","ctaWrapper","flexDirection","bannerPadding","textContentGap","closeButtonWrapper","OakInlineBanner","title","cta","canDismiss","onDismiss","closeButtonOverrideProps","titleTag","iconElement","FocusOnBox","BlurredOakBox","FadeInFlex","OakModalCenter","disableBackdropClick","disableEscapeKey","hideCloseButton","modalFlexProps","modalOuterFlexProps","modalInnerFlexProps","backdropFlexProps","bottom","scrollBorders","setScrollBorders","scrollBoxRef","checkForScroll","scrollBoxElem","isClientSide","modal","maxHeight","OakModalCenterBody","headingOverride","hideIcon","OakTagFunctional","useSpan","oakFlexProps","trailingIcon","leadingIcon","SuccessIconBackground","SuccessIcon","variants","green","yellow","light","dark","StyledFlex","ARROW_SIZE","$tooltipPosition","InternalTooltip","tooltipPosition","OakTooltip","tooltip","setTargetElement","setIsIntersecting","domContainerState","setDomContainerState","isVisible","overlayStyle","setOverlayStyle","borderRadiusProps","ticking","updateOverlayStyle","requestAnimationFrame","rect","getBoundingClientRect","intersection","resize","ResizeObserver","getTooltipPositionProps","domElement","firstElementChild","isJSDOM","navigator","userAgent","focusVisibleChildren","focusShadow","fallbackActiveShadow","OakFocusIndicator","activeDropShadow","OakAnchorTarget","StyleInternalLink","OakHoverLink","displayDisabled","StyledChevronButton","StyledIcon","StyledNumberButton","StyledEllipsis","OakPageNumber","currentPage","pageNumber","pageName","OakEllipsis","OakPrimaryButtonWithoutPointerEvents","OakPrimaryNavItem","isCurrent","shallow","Link","StyledInternalLink","OakSecondaryLink","restProps","StyledFocusOutline","StyledTabButton","CardContent","StyledOakImage","rowStyles","columnStyles","getCardOrientationStyles","orientation","cardOrientation","smallOrientation","largeOrientation","getResponsiveCardOrientationStyles","$cardOrientation","BreadcrumbsUl","BreadcrumbsLi","OakBreadcrumbText","selectAllChecked","downloadsText","handleToggleSelectAll","SurfingStudentSVG","fillRule","clipRule","LeftScrollBox","EditorContainer","editorNode","remainingCharacters","isBold","isBulletList","onBoldClick","onBulletListClick","StyledNav","nav","StyledOakLink","StyledOL","StyledOLItem","removedGuidanceDuplicates","contentGuidance","guidance","contentguidanceLabel","OakBulletList","listItems","internalCardDefaults","InternalCard","StyledBackgroundBox","InternalCardWithBackgroundElement","backgroundElement","OakHandDrawnCard","strokeWidth","vectorEffect","OakHandDrawnCardWithIcon","getIconBackground","iconBackground","StyledLayoutBox","getBackgroundUrlForSection","sectionName","phase","prefix","HandDrawnHRSvg","OakHandDrawnHR","hrColor","Slots","titleSlot","filterSlot","subheadingSlot","StyledLabel","StyledRoundIcon","activeIconStyles","hoverIconStyles","StyledPupilJourneyItem","FlexedOakBox","OakCardWithHandDrawnBorder","StyledPupilOptionalityListButton","StyledHandDrawnHR","OakOutlineAccordion","StyledOakSecondaryButton","StyledInternalShadowRoundButton","OakHintButton","buttonProps","OakQuizHint","hint","hintToggled","OakQuizFeedback","feedbackLabel","feedback","answerFeedback","celebrate","getBackgroundUrlForLesson","StickyFooter","StyledIconWrapper","StyledLessonNavItem","pickIconForSection","StyledAccordionContent","$isOpen","toggleButtonAriaLabel","InternalReviewAccordion","StyledLessonReviewItem","ReviewItemContainer","ReviewItemTitleSection","sectionHeader","completed","summaryForIncomplete","pickSummaryForProgress","pickSummaryForIncomplete","lessonSectionName","numQuestions","pickLabelForSection","pickColorsForSection","renderQuestionCounter","grade","StyledMobileSummary","$outlineColor","$overlayBorderColor","$feedbackBgColor","Pill","isFilled","canUseDOM","isWindow","elementString","getWindow","_target$ownerDocument","_target$ownerDocument2","isDocument","Document","isHTMLElement","HTMLElement","isSVGElement","SVGElement","getOwnerDocument","useEvent","handlerRef","useLatestValue","dependencies","valueRef","useLazyMemo","useNodeRef","onChangeHandler","setNodeRef","usePrevious","ids","useUniqueId","createAdjustmentFn","modifier","adjustments","accumulator","adjustment","valueAdjustment","subtract","isKeyboardEvent","KeyboardEvent","getEventCoordinates","TouchEvent","isTouchEvent","hasViewportRelativeCoordinates","CSS","freeze","Translate","round","Scale","scaleX","scaleY","Transform","property","duration","easing","SELECTOR","findFirstFocusableNode","hiddenStyles","HiddenText","LiveRegion","announcement","ariaLiveType","margin","border","clip","whiteSpace","DndMonitorContext","defaultScreenReaderInstructions","draggable","defaultAnnouncements","onDragStart","onDragOver","over","onDragEnd","onDragCancel","Accessibility","announcements","container","hiddenTextDescribedById","screenReaderInstructions","announce","setAnnouncement","useAnnouncement","liveRegionId","mounted","setMounted","registerListener","useDndMonitor","onDragMove","_ref5","markup","Action","useSensor","sensor","useSensors","sensors","defaultCoordinates","distanceBetween","p1","p2","sqrt","pow","getRelativeTransformOrigin","eventCoordinates","sortCollisionsAsc","sortCollisionsDesc","cornersOfRectangle","getFirstCollision","collisions","firstCollision","centerOfRectangle","closestCenter","collisionRect","droppableRects","droppableContainers","centerRect","droppableContainer","distBetween","getIntersectionRatio","targetArea","entryArea","intersectionArea","rectIntersection","intersectionRatio","getRectDelta","rect1","rect2","createRectAdjustmentFn","getAdjustedRect","parseTransform","startsWith","transformArray","ignoreTransform","getClientRect","transformOrigin","parsedTransform","translateX","translateY","parseFloat","inverseTransform","getTransformAgnosticClientRect","getScrollableAncestors","limit","scrollParents","findScrollableAncestors","scrollingElement","overflowRegex","test","isScrollable","getFirstScrollableAncestor","firstScrollableAncestor","getScrollableElement","getScrollXCoordinate","scrollX","getScrollYCoordinate","scrollY","getScrollCoordinates","Direction","isDocumentScrollingElement","getScrollPosition","scrollingContainer","minScroll","dimensions","innerHeight","maxScroll","isTop","isLeft","isBottom","isRight","defaultThreshold","getScrollDirectionAndSpeed","scrollContainer","scrollContainerRect","acceleration","thresholdPercentage","speed","threshold","Backward","Forward","getScrollElementRect","getScrollOffsets","scrollableAncestors","scrollIntoViewIfNeeded","measure","scrollIntoView","block","inline","properties","Rect","scrollOffsets","getScrollOffset","currentOffsets","scrollOffsetsDeltla","Listeners","listeners","removeAll","_this$target","eventName","_this$target2","hasExceededDistance","measurement","dx","dy","EventName","KeyboardCode","defaultKeyboardCodes","Space","Enter","Esc","Tab","defaultKeyboardCoordinateGetter","currentCoordinates","Right","Left","Down","Up","KeyboardSensor","autoScrollEnabled","referenceCoordinates","windowListeners","handleCancel","attach","handleStart","Resize","VisibilityChange","Keydown","onStart","keyboardCodes","coordinateGetter","scrollBehavior","handleEnd","newCoordinates","coordinatesDelta","scrollDelta","scrollElementRect","clampedCoordinates","canScrollX","canScrollY","newScrollCoordinates","canScrollToNewCoordinates","scrollTo","behavior","scrollBy","handleMove","coordinates","onMove","onEnd","detach","onCancel","isDistanceConstraint","constraint","isDelayConstraint","activators","nativeEvent","activator","activatorNode","AbstractPointerSensor","events","listenerTarget","_getEventCoordinates","EventTarget","getEventListenerTarget","activated","initialCoordinates","timeoutId","documentListeners","handleKeydown","removeTextSelection","activationConstraint","bypassActivationConstraint","move","DragStart","ContextMenu","delay","handlePending","clearTimeout","offset","onPending","Click","capture","SelectionChange","_getEventCoordinates2","tolerance","distance","onAbort","_this$document$getSel","removeAllRanges","PointerSensor","super","isPrimary","events$1","MouseButton","MouseSensor","RightClick","events$2","TouchSensor","setup","AutoScrollActivator","TraversalOrder","useAutoScroller","Pointer","canScroll","draggingRect","interval","order","TreeOrder","pointerCoordinates","scrollableAncestorRects","scrollIntent","previousDelta","previousIntent","defaultScrollIntent","sign","useScrollIntent","setAutoScrollInterval","clearAutoScrollInterval","intervalRef","setInterval","clearInterval","useInterval","scrollSpeed","scrollDirection","DraggableRect","scrollContainerRef","autoScroll","sortedScrollableAncestors","reverse","MeasuringStrategy","MeasuringFrequency","useInitialValue","computeFn","previousValue","useResizeObserver","handleResize","resizeObserver","defaultMeasure","useRect","fallbackRect","setRect","measureRect","currentRect","isConnected","newRect","mutationObserver","handleMutations","MutationObserver","useMutationObserver","records","record","childList","subtree","defaultValue$1","useScrollOffsetsDelta","initialScrollOffsets","hasScrollOffsets","useWindowRect","getWindowClientRect","defaultValue$2","getMeasurableNode","firstChild","defaultSensors","defaultData","defaultMeasuringConfiguration","droppable","strategy","WhileDragging","frequency","Optimized","dragOverlay","DroppableContainersMap","_super$get","getEnabled","getNodeFor","_this$get$node$curren","_this$get","defaultPublicContext","activatorEvent","activeNodeRect","containerNodeRect","draggableNodes","setRef","measuringConfiguration","measureDroppableContainers","windowRect","measuringScheduled","defaultInternalContext","ariaDescribedById","dispatch","InternalContext","PublicContext","translate","containers","reducer","DragMove","DragEnd","DragCancel","RegisterDroppable","SetDroppableDisabled","UnregisterDroppable","RestoreFocus","previousActivatorEvent","previousActiveId","draggableNode","focusableNode","applyModifiers","modifiers","ActiveDraggableContext","Status","DndContext","memo","_sensorContext$curren","_dragOverlay$nodeRef$","_dragOverlay$rect","_over$rect","accessibility","collisionDetection","measuring","store","useReducer","dispatchMonitorEvent","registerMonitorListener","_listener$type","useDndMonitorProvider","setStatus","Uninitialized","isInitialized","Initialized","activeId","activeRects","initial","translated","_node$data","activeRef","activeSensor","setActiveSensor","setActivatorEvent","latestProps","draggableDescribedById","enabledDroppableContainers","useMeasuringConfiguration","dragging","queue","setQueue","containersRef","Always","BeforeDragging","isDisabled","disabledRef","useDroppableMeasuring","cachedNode","useCachedNode","activationCoordinates","autoScrollOptions","activeSensorDisablesAutoscroll","autoScrollGloballyDisabled","getAutoScrollerOptions","initialActiveNodeRect","useInitialRect","initialRect","initialized","rectDelta","useLayoutShiftScrollCompensation","layoutShiftCompensation","sensorContext","draggingNode","draggingNodeRect","scrollAdjustedTranslate","overNode","handleNodeChange","useDragOverlayMeasuring","usesDragOverlay","nodeRectDelta","previousNode","ancestors","useScrollableAncestors","elements","firstElement","rects","setRects","measureRects","useRects","modifiedTranslate","overlayNodeRect","scrollCoordinates","setScrollCoordinates","prevElements","previousElements","cleanup","scrollableElement","useScrollOffsets","scrollAdjustment","activeNodeScrollDelta","overId","setOver","adjustScale","activeSensorRef","instantiateSensor","Sensor","sensorInstance","onDragAbort","onDragPending","unstable_batchedUpdates","Initializing","createHandler","cancelDrop","bindActivatorToSensorInstantiator","activeDraggableNode","dndKit","activationContext","capturedBy","getSyntheticHandler","useCombineActivators","teardownFns","teardown","useSensorSetup","overContainer","publicContext","internalContext","restoreFocus","NullContext","defaultRole","useDraggable","attributes","roleDescription","isDragging","setActivatorNodeRef","useSyntheticListeners","dataRef","useDndContext","defaultResizeObserverConfig","useDroppable","resizeObserverConfig","previous","resizeObserverConnected","callbackId","resizeObserverDisabled","updateMeasurementsFor","resizeObserverTimeout","newElement","previousElement","unobserve","isOver","AnimationManager","animation","clonedChildren","setClonedChildren","setElement","previousChildren","defaultTransform","NullifiedContextProvider","baseStyles","touchAction","defaultTransition","PositionedOverlay","scaleAdjustedTransform","defaultDropAnimationSideEffects","originalStyles","setProperty","defaultDropAnimationConfiguration","final","sideEffects","opacity","useDropAnimation","activeDraggable","measurableNode","scale","finalTransform","animationKeyframes","firstKeyframe","lastKeyframe","animate","onfinish","createDefaultDropAnimation","useKey","DragOverlay","dropAnimation","dropAnimationConfig","wrapperElement","modifiedTransform","arrayMove","newArray","getSortedRects","items","isValidIndex","rectSortingStrategy","overIndex","newRects","oldRect","defaultScale$1","verticalListSortingStrategy","_rects$activeIndex","fallbackActiveRect","overIndexRect","itemGap","clientRects","previousRect","nextRect","getItemGap$1","ID_PREFIX","Context","containerId","disableTransforms","useDragOverlay","sortedRects","SortableContext","userDefinedItems","disabledProp","previousItemsRef","itemsHaveChanged","itemsEqual","normalizeDisabled","contextValue","defaultNewIndexGetter","defaultAnimateLayoutChanges","isSorting","wasDragging","newIndex","previousItems","previousContainerId","transitionProperty","disabledTransition","defaultAttributes","useSortable","animateLayoutChanges","userDefinedAttributes","localDisabled","customData","getNewIndex","localStrategy","globalDisabled","globalStrategy","_localDisabled$dragga","_localDisabled$droppa","normalizeLocalDisabled","sortable","itemsAfterCurrentSortable","setDroppableNodeRef","setDraggableNodeRef","useCombinedRefs","displaceItem","shouldDisplaceDragSource","dragSourceDisplacement","shouldAnimateLayoutChanges","derivedTransform","setDerivedtransform","previousIndex","useDerivedTransform","getTransition","hasSortableData","directions","sortableKeyboardCoordinates","filteredContainers","corners","rectCorners","distances","corner","effectiveDistance","closestCorners","closestId","activeDroppable","newDroppable","newNode","hasDifferentScrollAncestors","hasSameContainer","isSameContainer","isAfterActive","isAfter","rectCoordinates","StyledOakBox","InternalDroppableHoldingPen","domContent","setContentBox","minHeight","setMinHeight","currentHeight","borderBoxSize","blockSize","entries_1","entries_1_1","resetMinHeight","StyledLeadingTrim","OakDragAndDropInstructions","StyledDraggable","$iconColor","OakDraggable","isReadOnly","OakDroppable","labelSlot","slotBackground","usePrefersReducedMotion","prefersReducedMotion","setPrefersReducedMotion","mediaQuery","injectDndContext","InternalDndContext","originalScrollingBehaviour","InternalClientPortal","show","OakQuizMatchItemId","ConnectedDraggable","ConnectedDroppableHoldingPen","ConnectedDroppable","match","OakInfoButton","OakInfo","tooltipProps","StyledCodeContainer","OakCodeRenderer","parts","findAndStyleInlineCode","part","endsWith","StyleCodeBlock","codeContent","codeWithSyntaxHighlighting","patterns","regex","isCheckingMatches","matchFound","patterns_1","patterns_1_1","exec","matchedText","syntaxHighlight","OakQuizOrderitemId","createAccouncements","getPosition","getItemLabel","find","$checked","DisplayText","boldPrefixText","standardText","FlexWithFocus","StyledUnitListItem","StyledOakIndexBox","StyledOptionalityListItem","HeadingWithFocus","OakUnitListOptionalityItemCard","lessonCount","unavailable","firstItemRef","StyledYearAndOptionFlex","UnitYearAndOptionCount","yearTitle","optionalityUnitsLength","UnitIndex","StyledUnitHeading","StyledBackLink","SingleIcon","MultipleIcons","LabelContainer","StyledPromoTag","OakPromoTag","StyledOakFlexAsLink","hasAnimation","AccordionWrapper","OakMediaClipListAccordion","RadioTileLabel","HiddenRadioButtonInput","RadioTileFocus","OakRadioTileCss","OakRadioTile","tileItem","isChecked","isFocussed","setIsFocussed","StyledTimeBox","formatTimeCode","totalSeconds","minutes","remainingSeconds","padStart","OakTimer","timeCode","OakDownloadsJourneyChildSubjectTierSelectorCss","OakDownloadsJourneyChildSubjectTierSelector","childSubjects","tiers","getTierSubjectValues","subjectSlug","childSubjectSelected","setChildSubjectSelected","tierSelected","setTierSelected","tiersAvailable","childSubjectsAvailable","childSubjectSlug","subject","tierSlug","tier","StyledAuthorImage","OakHeaderHeroCss","OakHeaderHero","authorName","authorTitle","authorImageSrc","authorImageAlt","heroImageSrc","heroImageAlt","headingTitle","breadcrumbs","subHeadingText","cmsImage","hasAuthorProps","StyledButton","StyledListItem","$indexHoverBgColour","$hoverBgColour","MediaButtonWrapper","StyledMediaClipImage","ImageBox","TextBox","$muxPlayingState","OakMediaClipStackListItemLink","ImageStackShadow","isSelected","selectedBackground","OakSideMenuNavLinkCss","OakSideMenuNavLink","selectedHeadingFont","getBackgroundColourLevel","getCloudinaryIdFromUrl","canaryUrl","URL","getCldImageUrl","origin","getCloudinaryRootUrl","cloudinaryConfigContext","OakCloudinaryConfigProvider","PositionIcon","numItems","cx","cy","SubCarouselPositionIndicator","numberOfItems","positionIndicators","SubCarouselPositionControl","onBack","onFwd","disableBack","disableFwd","backLabel","fwdLabel","SlideContainer","TightLetterSpacing","content","subheader","ariaLabelOpen","ariaLabelClose","resetGlobalCss","oakGlobalCss","OakGlobalStyle","createGlobalStyle","htmlAttrs","breadcrumb","breadcrumbIndex","isLast","onCheckChanged","captionId","videoTitle","lessonUid","videoType","lastUpdated","lastEdited","highlighted","editHref","lessonHref","filterColor","getVideoTypeText","onSearch","hasError","errorText","captionIdString","trim","headingLevel","cardWidth","imageSrc","imageAlt","aspectRatio","subCopy","subCopyColor","tagBackground","linkText","linkIconName","imageBackgroundColor","isLooping","containerLabel","setActiveIndex","cloudinaryId","CldImage","flags","onConsentChange","cookieConsentState","acceptConsents","rejectConsents","consents","copyLinkMessage","linkCopiedMessage","setLabel","setActive","setAnnounce","copyLink","urlToCopy","writeText","fileSize","format","isRadio","radioChecked","isMultipleIcon","clearAllInputs","showNewIcon","bodyText","headerText","email","setEmail","formError","setFormError","setSuccess","noValidate","autoComplete","rightAlignIcon","shouldTrailIcon","topNavSlot","bottomNavSlot","pickSectionColours","pageBackgroundColor","contentBackgroundColor","contentBorderColor","mobileContentBackgroundColor","mask","progress","notStartedBackgroundColor","backgroundColor","resolvedBackgroundColor","pickSummaryForNotStarted","pickSummaryForComplete","completedBackgroundColor","iconBackgroundColor","lessonSectionNameToIconMap","resultsSlot","resultsToggleAriaLabel","backLinkSlot","counterSlot","mobileSummary","pickSectionIcon","signLanguageControl","transcriptToggled","showTranscript","setShowTranscript","mainSection","iconFill","showNew","narrow","isLegacy","middleSlot","endSlot","hoverBgColour","indexBgColour","indexHoverBgColour","indexLegacyBgColour","expandedContent","isExpanded","asRadio","radioValue","onClickLocal","textColor","isExpandedBorderRadius","unavailableBgColor","cursor","thumbnailImage","clipName","learningCycle","muxPlayingState","imageAltText","isAudioClip","buttonStyles","clipNameTitle","getButtonStyles","formattedTimeCode","buttonAriaLabel","lessonTitle","currentClipCounter","totalClipCounter","mediaClipListHeader","mediaClipListContent","numberOfClips","imageUrl","asDefault","totalPages","nextHref","prevHref","paginationHref","onPageChange","pages","activePage","pageNumbers","generatePageNumbers","isFirstPage","isLastPage","handleChevronClick","page","num","navItems","onDecline","supervisionLevel","acceptText","declineText","declineIcon","optionalityTitle","outerBackgroundColor","count","countHeader","disabledOrUnavailable","numberOfLessons","textSlot","optionTitleSlot","menuItems","onSelected","onSkipCallback","selectedItem","displayText","innerRef","isFeedback","defaultRef","inputRef","showTick","showCross","imageContainer","feedbackBgColor","feedbackBorderColor","inputCheckbox","click","total","pills","initialOptions","initialSlots","shuffledDraggables","setShuffledDraggables","setActiveId","matchedDraggableIds","unmatchedDraggables","random","newMatches","fromEntries","initialItems","setItems","oldIndex","newItems","worksheetDownloaded","workSheetAvailable","videoPercentage","attempts","outlineColor","feedbackAltText","showFeedback","feedbackIcon","feedbackState","imageURL","quote","hasLeftBorder","quoteLines","quoteLine","quoteLineIndex","isFirst","useId","keepIconColor","colorScheme","colorSchemeTokens","getColorSchemeTokens","restWithoutVariantProps","radio","isEqualNode","loading","hasCount","showTruncatedCount","onImageScaleCallback","anchorTargetId","selectedHref","setSelectedHref","showSignLanguage","setShowSignLanguage","showPromoTag","subjectIconName","backgroundColourLevel","horizontalVariantBorderWidth","isVerticalVariant","colorVariant","sizeVariant","tabs","activeTab","onTabClick","hoverText","tab","sanitizedHtml","innerHtml","dangerouslySetInnerHTML","__html","onShareClicked","progressSaved","noteShared","termsAndConditionsHref","shareLinkDisabled","footer","messageColor","messageIcon","messageRender","anchorTarget","currentHref","setCurrentHref","hash","ThemeProvider","autoDismiss","autoDismissDuration","showIcon","showClose","setIsVisible","timer_1","optionalityUnits","nullTitle","onSave","getIsSaved","unit","copyLinkControl","onOpenChange","accordionProps_1","isInitiallyOpen","accordionProps","MockIntersectionObserver","takeRecords","MockResizeObserver","rgb","hex","setValue","queries"],"mappings":"ukBA+BWA,EAAW,WAQlB,OAPAA,EAAWC,OAAOC,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,IAE9E,OAAON,CACX,EACOH,EAASa,MAAMC,KAAMP,UAChC,EAEO,SAASQ,EAAOX,EAAGY,GACtB,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,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B,YACtBC,YAAa,cACb,kBAAmB,UACnB,mBAAoB,UACpB,kBAAmB,UACnB,kBAAmB,UACnB,YAAa,UACb,eAAgB,UAChB,cAAe,UACf,cAAe,UACf,YAAa,UACb,eAAgB,UAChB,cAAe,UACf,cAAe,UACf,gBAAiB,UACjB,mBAAoB,UACpB,kBAAmB,UACnB,kBAAmB,UACnB,YAAa,UACb,eAAgB,UAChB,cAAe,UACf,cAAe,UACf,aAAc,UACd,gBAAiB,UACjB,eAAgB,UAChB,eAAgB,UAChB,aAAc,UACd,gBAAiB,UACjB,eAAgB,UAChB,eAAgB,UAChB,uBAAwB,UACxB,wBAAyB,UACzB,uBAAwB,UACxB,uBAAwB,WAWbC,EAAuB,CAClCtC,MACE,wFACFyB,IAAK,2FACLxB,SACE,0FACFV,MACE,yFACFI,OACE,wFACFC,OACE,uFACFC,OACE,wFACF+B,KAAM,2FACNC,QACE,2FACFC,QACE,2FACFR,MACE,yHACFJ,MACE,2FACFJ,KAAM,sHACNE,OACE,sHACFd,KAAM,sHACNC,OACE,uHACFC,OACE,sHACFC,QACE,qHACFC,KAAM,yHACNI,SACE,yHAsGS6B,EAAe9D,EAAA,GAAAJ,EAjGC,CAC3B,eACA,eACA,aACA,gBACA,mBACA,kBACA,oBACA,oBACA,gBACA,eACA,aACA,aACA,cACA,+BACA,aACA,sBACA,iBACA,uBACA,0BACA,mBACA,yBACA,4BACA,sBACA,yBACA,8BACA,sBACA,yBACA,8BACA,sBACA,yBACA,8BACA,sBACA,yBACA,8BACA,sBACA,yBACA,8BACA,sBACA,yBACA,8BACA,0BACA,0BACA,aACA,eACA,aACA,WACA,gBACA,gBACA,aACA,eACA,aACA,eACA,eACA,eACA,mBACA,kBACA,oBACA,oBACA,mBACA,mBACA,mBACA,mBACA,mBACA,mBACA,aACA,iBACA,kBACA,iBACA,yBACA,0BACA,eACA,iBACA,eACA,iBACA,qBACA,8BACA,qBACA,8BACA,qBACA,8BACA,qBACA,8BACA,qBACA,8BACA,qBACA,8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BAAiB,SAAUiqC,GAC/B,WACLF,WAAW9pC,oBAAoB,SAAUgqC,EAC3C,CACF,EAAG,IAEIntD,CACT,sCdiHQ,IAAAmG,EAA+BgjB,aAAW4/B,IAChD,MAAO,CAAET,WADSniD,EAAAmiD,WACGE,aADWriD,EAAAqiD,aAElC","x_google_ignoreList":[0,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,275,276,277,278]}