wjec-one 4.0.0-alpha.21 → 4.0.0-alpha.23
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.
- package/auth/index.d.ts +19 -6
- package/auth/index.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/umd/auth/index.js +1 -1
- package/umd/index.js +1 -1
- package/umd/utils/index.js +1 -1
- package/utils/index.d.ts +2 -1
- package/utils/index.js +1 -1
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import t,{forwardRef as n,useState as r,useRef as o,useEffect as i,useLayoutEffect as a,useMemo as l,useImperativeHandle as c,useContext as s}from"react";import{css as d,jsx as u,keyframes as p,Global as f}from"@emotion/core";import{svgComponentToDataURL as g,isCallableFunction as h,isKeyLabelPair as b,extractContent as v,extractKey as m,developerWarning as y,isSvgComponent as x,throttle as w,findScrollableParent as C,isArrayEqual as k,isPrimitiveArray as I,isKeyLabelPairArray as O,formatDateTime as P,formatDate as A,preventDefaultBehavior as L,isPlainObject as E,containsDuplicates as S,isPrimitive as F,isRefObject as j,getKeyboardFocusableElements as W,formattedStringToPlainText as M,developerError as B,getSelected as z}from"./utils";import{useWjecOneThemeStyles as T,useWjecOneTheme as D}from"wjec-one-dev-utils/theme";import{useButton as Z,useId as R}from"react-aria";import{useSwipeable as H}from"react-swipeable";import J,{createPortal as X}from"react-dom";import{DragDropContext as N,Droppable as G,Draggable as V}from"react-beautiful-dnd";import{disableBodyScroll as Y,enableBodyScroll as q}from"body-scroll-lock";import _ from"color";function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ee.apply(this,arguments)}function te(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function ne(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function re(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||ae(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ie(e){return function(e){if(Array.isArray(e))return le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ae(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e,t){if(e){if("string"==typeof e)return le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?le(e,t):void 0}}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ce(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ae(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}var se,de=Object.freeze({border:"#BCCBD1",entryLevel:"#6B994D",error:"#D32F2F",errorBackground:"#FBEBEB",errorDark:"#A82424",errorDarker:"#661616",font:"#2E3638",fontLight:"#606A6C",gceALevel:"#516FA2",gceASLevel:"#4D9995",gcse:"#81994D",highlight:"#FFEDC1",neutral:"#F1F3F4",neutralDark:"#2D3538",neutralLight:"#56666C",offBlack:"#001B26",offWhite:"#FAFCFC",otherQualifications:"#A55395",secondary:"#47BAD1",secondaryDark:"#1F6B7A",secondaryDarkActive:"#103840",secondaryLight:"#C0E8F0",secondaryLightActive:"#96CBD6",success:"#43A047",successBackground:"#EDF6ED",successDark:"#3C9040",successDarker:"#2A662D",tertiary:"#FFEDC1",vQAward:"#D86C8B",warning:"#F57C00",warningBackground:"#FEF2E6",warningDark:"#EF6C00",welshBaccAdvanced:"#6E81DC",welshBaccFoundation:"#BF8660",welshBaccNational:"#B4C160",welshBaccKS4:"#B25A6C"}),ue=Object.freeze(Q(Q({},de),{},{primary:"#007DB2",primaryDark:"#00628C",primaryDarkActive:"#004766",primaryLight:"#E5F8FF",primaryLightActive:"#CCF1FF"})),pe=Object.freeze(Q(Q({},de),{},{primary:"#F1511B",primaryDark:"#BF3608",primaryDarkActive:"#BF3608",primaryLight:"#FDB8A1",primaryLightActive:"#FDB8A1"}));function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fe.apply(this,arguments)}var ge,he=n((function(t,n){return e.createElement("svg",fe({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),se||(se=e.createElement("path",{d:"M6.767 7.742 10 10.975l3.233-3.233a.83.83 0 1 1 1.175 1.175l-3.825 3.825a.83.83 0 0 1-1.175 0L5.583 8.917a.83.83 0 0 1 0-1.175.848.848 0 0 1 1.184 0Z",fill:"currentColor"})))}));function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},be.apply(this,arguments)}var ve,me=n((function(t,n){return e.createElement("svg",be({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),ge||(ge=e.createElement("path",{d:"M12.258 13.233 9.025 10l3.233-3.233a.83.83 0 1 0-1.175-1.175L7.258 9.417a.83.83 0 0 0 0 1.175l3.825 3.825a.83.83 0 0 0 1.175 0 .848.848 0 0 0 0-1.184Z",fill:"currentColor"})))}));function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ye.apply(this,arguments)}var xe,we=n((function(t,n){return e.createElement("svg",ye({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),ve||(ve=e.createElement("path",{d:"M7.742 13.233 10.975 10 7.742 6.767a.83.83 0 1 1 1.175-1.175l3.825 3.825a.83.83 0 0 1 0 1.175l-3.825 3.825a.83.83 0 0 1-1.175 0 .848.848 0 0 1 0-1.184Z",fill:"currentColor"})))}));function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ce.apply(this,arguments)}var ke=n((function(t,n){return e.createElement("svg",Ce({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),xe||(xe=e.createElement("path",{d:"M6.767 12.258 10 9.025l3.233 3.233a.83.83 0 1 0 1.175-1.175l-3.825-3.825a.83.83 0 0 0-1.175 0l-3.825 3.825a.83.83 0 0 0 0 1.175.848.848 0 0 0 1.184 0Z",fill:"currentColor"})))})),Ie=Object.freeze({borderRadius:"4px",dropShadow:"0px 2px 10px ".concat(ue.border),scrollbar:d("&::-webkit-scrollbar{height:14px;width:",14,"px;}&::-webkit-scrollbar-button:single-button{display:block;height:16px;&:horizontal{&:decrement{background:",g(t.createElement(me,{color:ue.fontLight}))," 0 -3px / 20px no-repeat;&:hover{background-image:",g(t.createElement(me,{color:ue.font})),";}}&:increment{background:",g(t.createElement(we,{color:ue.fontLight}))," center -3px / 20px no-repeat;&:hover{background-image:",g(t.createElement(we,{color:ue.font})),";}}}&:vertical{&:decrement{background:",g(t.createElement(ke,{color:ue.fontLight}))," center 0 / 20px no-repeat;&:hover{background-image:",g(t.createElement(ke,{color:ue.font})),";}}&:increment{background:",g(t.createElement(he,{color:ue.fontLight}))," center -3px / 20px no-repeat;&:hover{background-image:",g(t.createElement(he,{color:ue.font})),";}}}}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",ue.border,";border:3px solid transparent;border-radius:7px;&:hover{background-color:",ue.fontLight,";}}&::-webkit-scrollbar-track{background-clip:padding-box;background-color:",ue.neutral,";border:3px solid transparent;border-radius:7px;}"),visiblyHidden:{name:"1dw21dg",styles:"border-width:0;flex:0;height:0;margin:0;max-height:0;max-width:0;min-height:0;min-width:0;opacity:0;overflow:hidden;padding:0;position:absolute;width:0;"}}),Oe={name:"1bhjuxx",styles:"box-sizing:border-box;&::after,&::before,& *,& *::after,& *::before{box-sizing:inherit;}"},Pe=d("&::selection{background-color:",ue.highlight,";}"),Ae=d("color:",ue.neutralDark,";font-family:'Montserrat',sans-serif;font-size:14px;font-weight:400;line-height:16px;"),Le={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},Ee=function(e){var t=e.children,n=e.expanded,l=void 0!==n&&n,c=e.id,s=e.onClick,p=e.spacing,f=void 0===p?"normal":p,g=e.title,b=oe(r(l?"auto":0),2),v=b[0],m=b[1],y=oe(r(l),2),x=y[0],w=y[1],C=oe(r(t),2),k=C[0],I=C[1],O=oe(r("small"===f?10:20),2),P=O[0],A=O[1],L=o(),E=o();i((function(){m(j())}),[L.current&&L.current.clientHeight,k,P]),i((function(){l!==x&&(l?F():S())}),[l]),i((function(){t!==k&&I(t)}),[t]),i((function(){A("small"===f?10:20)}),[f]),a((function(){m(j())}),[k]);var S=function(){w(!1),h(s)&&s(!1)},F=function(){m(j()),w(!0),h(s)&&s(!0)},j=function(){return E.current.scrollHeight+P},W=T(Be);return u("div",{ref:L,css:d([W.container,x&&W.containerExpanded]),"data-accordion-container":!0,id:c},u("button",{type:"button",css:d([W.button,"small"===f&&W.buttonSpacingSmall,x&&W.buttonExpanded]),onClick:function(){!x?F():S()}},g),u("div",{css:d([W.content,x?W.contentExpanded:W.contentCollapsed,{height:x?v:0,opacity:x?1:0,paddingBottom:x?"".concat(P,"px"):0}])},u("div",{ref:E,"data-accordion-content":!0},t)))};Ee.displayName="AccordionContent";var Se={name:"a30to4",styles:"&::after{transform:rotate(180deg) translateY(50%);}"},Fe={name:"2bszaw",styles:"&::before{width:100%;}"},je={name:"1hx1c9u",styles:"padding:0 40px 20px 10px;overflow:hidden;"},We={name:"1l1yfwv",styles:"transition:height 0.2s linear 0.05s,opacity 0.1s linear,padding-bottom 0.2s linear 0.05s;"},Me={name:"16eciko",styles:"transition:height 0.2s linear,opacity 0.1s linear 0.15s,padding-bottom 0.2s linear;"},Be=function(e){var t=e.colorPalette;return{button:d("background-color:transparent;border:none;color:",t.font,";cursor:pointer;display:block;font-family:'Montserrat',sans-serif;font-size:14px;line-height:20px;outline:none;padding:",20,"px 10px;position:relative;text-align:left;transition:padding-left 0.2s linear;width:100%;&::after{background:",g(u(he,null))," center center / 20px no-repeat;content:'';height:20px;position:absolute;right:10px;top:50%;transform:translateY(-50%);transition:transform 0.2s linear;width:20px;}"),buttonExpanded:Se,buttonSpacingSmall:d("padding:",10,"px;"),container:d(Oe,";border-bottom:1px solid ",t.border,";font-family:'Montserrat',sans-serif;font-size:14px;line-height:20px;position:relative;&::before{background-color:",t.secondary,";bottom:-1px;content:'';height:2px;left:0;position:absolute;transition:width 0.2s linear;width:0;}&:hover::before{width:100%;}"),containerExpanded:Fe,content:je,contentCollapsed:We,contentExpanded:Me}},ze=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.Children.toArray(e).map((function(e,t){return t<n.length?n[t]:e.props.expanded}))},Te=function(e){var n=e.children,o=e.exclusive,a=e.id,l=e.spacing,c=void 0===l?"normal":l,s=oe(r(ze(n)),2),d=s[0],p=s[1];i((function(){!function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0,o=!1;if(t.Children.forEach(e,(function(e){e.props.expanded&&r++,("object"!==K(e)||"AccordionContent"!==e.type.name&&"AccordionContent"!==e.type.displayName)&&(o=!0)})),n&&r>1)throw new Error('Accordion with "exclusive" flag can only have one expanded content section');if(o)throw new Error("Accordion content must be wrapped in an Accordion.Content component")}(n,o)}),[n,o]),i((function(){p((function(e){return ze(n,e)}))}),[n]);var f=function(e,t){return function(n){p((function(t){var r=o&&n?Array(t.length).fill(!1):ie(t);return r[e]=n,r})),h(t)&&t(n)}};return u("div",{id:a,css:Re},t.Children.map(n,(function(e,n){return t.cloneElement(e,{expanded:d[n],onClick:f(n,e.props.onClick),spacing:e.props.spacing||c})})))};Te.Content=Ee;var De,Ze,Re=d(Oe,";width:100%;"),He=function(e){var n=e.breadcrumbs,r=e.id,o=e.keyExtractor,i=e.labelExtractor,a=e.onClick,l=e.showCurrent,c=void 0===l||l,s=T(Xe);return u("ul",{css:s.list,id:r},n.map((function(e,r){var l,d=function(e,t){return b(e)?e.key:m(e,o,t)}(e,r),p=r===n.length-1;return u(t.Fragment,{key:d},(c||!p)&&u("li",{css:p?s.currentPage:s.listItem},u("a",{"aria-current":!!p&&"page",css:p?s.currentPage:s.breadCrumb,href:"#",onClick:p?void 0:(l=d,function(){return a(l)})},b(e)?e.label:v(e,i,r))))})))},Je={name:"1azkibq",styles:"font-family:'Montserrat',sans-serif;font-size:12px;list-style:none;margin:0;padding:0;"},Xe=function(e){var t=e.colorPalette;return{breadCrumb:d("color:",t.fontLight,";font-size:14px;line-height:20px;text-decoration:none;&:hover{cursor:pointer;text-decoration:underline;}"),currentPage:d("color:",t.font,";display:inline-flex;font-size:14px;text-decoration:none;"),list:Je,listItem:d("display:inline-flex;&::before,&::after{background-repeat:no-repeat;background-size:contain;height:20px;width:20px;}&:first-of-type:last-of-type::before{background-image:",g(u(me,{color:t.fontLight})),";content:'';margin-right:10px;}&:not(:last-of-type)::after{background-image:",g(u(we,{color:t.fontLight})),";content:'';margin:0 10px;}")}},Ne=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];i((function(){if(t())throw new Error(e)}),n)},Ge=function(e){var t=e.color,n=e.id,r=e.progress,o=void 0===r,i=l((function(){return r&&126-Math.min(Math.max(r,0),100)/100*126}),[r]),a=T(Ue);return u("div",{css:d([a.container,o?a.containerIndeterminate:a.containerStatic]),id:n},u("svg",{"aria-label":"loading",css:a.svgContainer,style:{"--color":t},viewBox:"22 22 44 44"},u("circle",{css:d([a.circle,o?a.circleIndeterminate:a.circleStatic]),cx:"44",cy:"44",fill:"none",r:"20.2",strokeWidth:"3.6",style:{"--dashoffset":i}})))},Ve=p(De||(De=re(["\n 100% { transform: rotate(360deg); }\n"]))),Ye=p(Ze||(Ze=re(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"]))),qe={name:"1uu7u3w",styles:"height:20px;width:20px;"},_e={name:"4dsd3s",styles:"transform:rotate(-90deg);"},Ue=function(e){var t=e.colorPalette;return{circle:d("--dashoffset:",126,";stroke:currentColor;stroke-dasharray:80px,200px;stroke-dashoffset:var(--dashoffset);"),circleIndeterminate:d("animation:",Ye," 1.4s ease-in-out infinite;"),circleStatic:d("stroke-dasharray:",126,"px;transition:stroke-dashoffset 0.3s ease-out;"),container:qe,containerIndeterminate:d("animation:",Ve," 1.4s linear infinite;"),containerStatic:_e,svgContainer:d("--color:",t.secondary,";color:var(--color);")}},Qe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];i((function(){t()&&y(e)}),n)},Ke=function(e){var n=e.buttonStyle,r=void 0===n?"filled":n,i=e.iconSize,a=void 0===i?"normal":i,l=e.loadingColor,c=e.onClick,s=e.showOutline,p=e.activeColor,f=e.allowEventPropagation,g=void 0!==f&&f,h=e.ariaLabel,b=e.borderColor,v=e.buttonType,m=void 0===v?"button":v,y=e.color,w=e.children,C=e.disabled,k=e.focusColor,I=e.hoverColor,O=e.icon,P=e.iconColor,A=e.iconColorActive,L=e.iconPosition,E=void 0===L?"left":L,S=e.id,F=e.label,j=e.labelColor,W=e.labelColorActive,M=e.loading,B=e.loadingProgress,z=e.onPress,R=void 0===z?c:z,H=e.outlineColor,J=e.size,X=void 0===J?"normal":J;!function(e){var t=e.buttonStyle,n=e.iconSize,r=e.loadingColor,o=e.onClick,i=e.showOutline;Qe('WJEC One Button: The "iconSize" prop has been deprecated for design reasons and will be removed in a future version of the library. Button components will now always behave as though `iconSize="normal"`',(function(){return"filled"!==t}),[t]),Qe('WJEC One Button: The "buttonStyle" prop has been deprecated for design reasons and will be removed in a future version of the library. Button components will now always behave as though `buttonStyle="filled"`',(function(){return"normal"!==n}),[n]),Qe('WJEC One Button: The "loadingColor" prop has been deprecated for design reasons and will be removed in a future version of the library. Button components will now render with a suitable loading color depending on whether the background color is light/dark',(function(){return void 0!==r}),[r]),Qe('WJEC One Button: The "onClick" prop has been deprecated in favor of "onPress" for accessibility reasons and will be removed in a future version of the library. Switch to using "onPress" instead of "onClick" as soon as possible in order to avoid unexpected behavior in future',(function(){return void 0!==o}),[o]),Qe('WJEC One Button: The "showOutline" prop has been deprecated for accessibility reasons and will be removed in a future version of the library. The Button component will now behave as though "showOutline={true}" in all cases',(function(){return void 0!==i}),[i])}({buttonStyle:r,iconSize:a,loadingColor:l,onClick:c,showOutline:s}),Ne("WJEC One Button: Icon must be a valid SVGComponent",(function(){return O&&!x(t.createElement(O))}),[O]),Ne("WJEC One Button: A Button must have a label and/or icon",(function(){return!w&&!O&&!F}),[w,O,F]);var N=o(),G=oe(D(),1)[0].colorPalette,V={"--active-background-color":p,"--background-color":y,"--border-color":b,"--focus-background-color":k,"--hover-background-color":I,"--icon-color":P,"--icon-color-active":A,"--label-color":j,"--label-color-active":W,"--outline-color":H,"--padding":"large"===X?"8px 24px":"small"===X?"2px 8px":void 0},Y=T(rt),q=function(){return u(O,{css:d([Y.icon,(F||w)&&O&&("left"===E?Y.iconLeft:Y.iconRight)])})},_=Z({id:S,isDisabled:C,onPress:R,type:m},N).buttonProps;return u("button",ee({"aria-label":h},_,{ref:N,css:Y.button,onClick:function(e){g||e.stopPropagation()},style:V,"data-loading":M||void 0}),O&&"left"===E&&q(),F||w,O&&"right"===E&&q(),M&&u("div",{css:Y.loading},u(Ge,{color:j||G.neutralDark,progress:B})))},$e={name:"18kopw8",styles:"color:var(--icon-color);flex-shrink:0;height:24px;opacity:0.6;transition:inherit;width:24px;"},et={name:"15ro776",styles:"margin-right:4px;"},tt={name:"15fzge",styles:"margin-left:4px;"},nt={name:"c524f5",styles:"left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);"},rt=function(e){var t=e.colorPalette;return{button:d("--active-background-color:",t.neutralLight,";--background-color:",t.neutral,";--border-color:transparent;--focus-background-color:var(--background-color);--hover-background-color:",t.border,";--label-color:",t.neutralDark,";--label-color-active:#FFFFFF;--outline-color:",t.primary,";--padding:8px;--icon-color:var(--label-color);--icon-color-active:var(--label-color-active);",Oe,";align-items:center;background-color:var(--background-color);border:1px solid var(--border-color);border-radius:",Ie.borderRadius,";color:var(--label-color);cursor:pointer;display:flex;font-family:'Montserrat',sans-serif;font-size:16px;font-weight:600;height:40px;justify-content:center;letter-spacing:0.5px;line-height:24px;padding:var(--padding);position:relative;transition:background-color 0.05s linear,color 0.05s linear;white-space:pre-wrap;&:disabled{background-color:",t.neutral,";color:",t.border,";cursor:not-allowed;& > svg{color:",t.border,';}}&:focus{background-color:var(--focus-background-color);outline:1px solid var(--outline-color);outline-offset:-3px;}&:not(:disabled,[data-loading="true"]):hover{background-color:var(--hover-background-color);}&:not(:disabled,[data-loading="true"]):active{background-color:var(--active-background-color);color:var(--label-color-active);& > svg{color:var(--icon-color-active);}}&[data-loading="true"]{color:transparent;& > svg{color:transparent;}}'),icon:$e,iconLeft:et,iconRight:tt,loading:nt}},ot=function(e){var t=Object.assign({},(te(e),e)),n=oe(D(),1)[0].colorPalette;return u(Ke,ee({},t,{activeColor:n.errorDarker,color:n.error,hoverColor:n.errorDark,iconColor:"#FFFFFF",labelColor:"#FFFFFF",outlineColor:"#FFFFFF"}))},it=["loading"],at=function(e){var t=e.loading,n=ne(e,it),r=oe(D(),1)[0].colorPalette;return u(Ke,ee({},n,{color:t?r.neutral:"transparent",loading:t}))},lt=["loading"],ct=function(e){var t=e.loading,n=ne(e,lt),r=oe(D(),1)[0].colorPalette;return Ne("WJEC One LinkButton: A LinkButton cannot have an unaccompanied icon",(function(){return n.icon&&!(n.children||n.label)}),[n]),u(Ke,ee({},n,{loading:t,color:t?r.neutral:"transparent",iconColor:r.fontLight,labelColor:r.primaryDark}))},st=function(e){var t=Object.assign({},(te(e),e)),n=oe(D(),1)[0].colorPalette;return u(Ke,ee({},t,{activeColor:n.primaryDarkActive,color:n.primary,hoverColor:n.primaryDark,iconColor:"#FFFFFF",labelColor:"#FFFFFF",outlineColor:"#FFFFFF"}))},dt=function(e){var t=Object.assign({},(te(e),e)),n=oe(D(),1)[0].colorPalette;return u(Ke,ee({},t,{activeColor:n.secondary,borderColor:t.disabled?"none":n.secondaryDark,color:"#FFFFFF",focusColor:n.secondaryLight,hoverColor:n.secondaryLight,labelColor:n.secondaryDark,labelColorActive:n.secondaryDark,outlineColor:"#FFFFFF"}))},ut=function(e,t,n){var r=o(!1);a((function(){var o,i,a,l;null!=t?null==n||null===(o=n.current)||void 0===o||null===(i=o.style)||void 0===i||i.setProperty(e,t.toString()):null==n||null===(a=n.current)||void 0===a||null===(l=a.style)||void 0===l||l.removeProperty(e);null!=n&&n.current&&(r.current=!0)}),[!r.current&&Date.now(),e,null==n?void 0:n.current,t])};const pt="undefined"!=typeof window?t.useLayoutEffect:()=>{};let ft=new Map,gt=new Set;function ht(){if("undefined"==typeof window)return;let e=t=>{let n=ft.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),ft.delete(t.target)),0===ft.size)){for(let e of gt)e();gt.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=ft.get(t.target);n||(n=new Set,ft.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}"undefined"!=typeof document&&("loading"!==document.readyState?ht():document.addEventListener("DOMContentLoaded",ht));let bt=0;const vt=new Map;function mt(e){let[t,n]=r(void 0);return pt((()=>{if(!e)return;let t=vt.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+bt++;n(r);let o=document.createElement("div");o.id=r,o.style.display="none",o.textContent=e,document.body.appendChild(o),t={refCount:0,element:o},vt.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),vt.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}var yt,xt=function(e){var t=e.ariaDescription,n=e.borderColor,r=e.children,i=e.id,a=e.padding,l=o(),c=mt(t);return ut("--padding",a,l),ut("--border-color",n,l),u("div",ee({css:wt.cardMain,id:i,ref:l},c),r)},wt={cardMain:d("--border-color:none;--padding:30px 30px;background-color:#ffffff;border:1px solid var(--border-color);border-radius:",Ie.borderRadius,";box-shadow:",Ie.dropShadow,";padding:var(--padding);")},Ct={name:"fup5xt",styles:"align-items:center;display:flex;justify-content:space-between;margin:30px 30px 0;"},kt={name:"hv8m74",styles:"display:flex;justify-content:center;list-style:none;margin:0;padding:0;width:100%;"},It={name:"1fyoaf7",styles:"display:inline-block;flex-shrink:0;height:100%;width:100%;"},Ot={name:"103tnj5",styles:"--transition-duration:200ms;--translate-x:unset;display:flex;height:100%;position:relative;transform:translateX(var(--translate-x));width:100%;&[data-animating]{transition:transform ease-out var(--transition-duration);}&[data-swiping]{user-select:none;}& > *{flex-shrink:0;}"},Pt=function(e){var t=e.colorPalette;return{container:d(Oe,";display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%;"),controls:Ct,dot:d("cursor:pointer;padding:5px;&::before{background-color:",t.border,";border:1px solid transparent;border-radius:3px;content:'';display:block;height:5px;transition:background-color 150ms linear,border-color 150ms linear;width:20px;}"),dotActive:d("&::before{background-color:",t.secondary,";border-color:",t.secondary,";}"),dots:kt,navigationButton:d("align-items:center;background-color:",t.neutral,";border:none;border-radius:10px;cursor:pointer;display:flex;flex-shrink:0;height:20px;justify-content:center;outline:none;transition:opacity 100ms linear;width:40px;&:disabled{cursor:default;opacity:0;}"),navigationIcon:d("color:",t.fontLight,";height:15px;"),slide:It,slides:Ot}};function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},At.apply(this,arguments)}var Lt,Et=n((function(t,n){return e.createElement("svg",At({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),yt||(yt=e.createElement("path",{d:"M9.412 3.921a.831.831 0 0 1 1.176 1.175l-4.063 4.07h9.308a.833.833 0 1 1 0 1.667H6.525l4.063 4.07a.831.831 0 0 1-1.176 1.176L4.04 10.707a1 1 0 0 1 0-1.414L9.412 3.92Z",fill:"currentColor"})))}));function St(){return St=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},St.apply(this,arguments)}var Ft,jt,Wt,Mt=n((function(t,n){return e.createElement("svg",St({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Lt||(Lt=e.createElement("path",{d:"M10.588 3.921a.831.831 0 0 0-1.176 1.175l4.063 4.07H4.167a.833.833 0 1 0 0 1.667h9.308l-4.063 4.07a.831.831 0 0 0 1.176 1.176l5.372-5.372a1 1 0 0 0 0-1.414L10.588 3.92Z",fill:"currentColor"})))})),Bt=function(e){var t=e.direction,n=e.disabled,r=e.onClick,o=T(Pt);return u("button",{css:o.navigationButton,disabled:n,onClick:r,type:"button"},u("next"===t?Mt:Et,{css:o.navigationIcon}))},zt=function(e){var t=e.active,n=e.onClick,r=T(Pt);return u("li",{css:d([r.dot,t&&r.dotActive]),onClick:n})},Tt=function(e,t){return(e+1)%t},Dt=function(e,t){return(e+t-1)%t},Zt=function(e,t,n){var r=n-t+Math.floor((n-1)/2)+e;return r>n-1?r%n:r},Rt=function(e,t,n){var r=function(e,t){var n=t.children[e];return Math.round(t.offsetWidth/2-n.offsetLeft-n.offsetWidth/2)}(e+t,n);n.style.setProperty("--translate-x","".concat(r,"px"))},Ht=n((function(e,n){var s=e.buffer,d=void 0===s?1:s,p=e.children,f=e.id,g=e.infinite,b=e.onChange,v=e.showNavigationButtons,m=void 0===v||v,y=e.showNavigationDots,x=void 0===y||y,C=e.simulateMouseSwipe,k=e.slideIndex,I=void 0===k?0:k,O=e.slideTransitionDuration,P=void 0===O?200:O,A=o(),L=o(),E=oe(r(I),2),S=E[0],F=E[1],j=l((function(){return g?d:0}),[d,g]),W=l((function(){return t.Children.toArray(p)}),[p]),M=l((function(){return W.length}),[W]),B=l((function(){return M>0&&(m||x)}),[m,x,M]),z=l((function(){var e=Object.keys(W).map((function(e){return parseInt(e)}));return g&&e.sort((function(e,t){return Zt(e,S,M)-Zt(t,S,M)})),e}),[S,W,g,M]);a((function(){M>0&&Rt(z.indexOf(S),j,null==L?void 0:L.current)}),[S,j,M,z]),i((function(){var e,t=Math.max(0,Math.min(M-1,I));null!=L&&null!==(e=L.current)&&void 0!==e&&e.hasAttribute("data-animating")||t===S||R(t)}),[I]),i((function(){var e=A.current.offsetHeight,t=A.current.offsetWidth,n=new ResizeObserver((function(n){var r=oe(n,1)[0].contentRect,o=r.height,i=r.width;o===e&&i===t||(e=o,t=i,Rt(z.indexOf(S),j,null==L?void 0:L.current))}));return n.observe(A.current),function(){n.disconnect()}}),[S,j,z]);var D=w((function(){if(g||S<M-1){var e=Tt(S,M);R(e)}}),{limit:P+1}),Z=w((function(){if(g||S>0){var e=Dt(S,M);R(e)}}),{limit:P+1}),R=function(e){if(e!==S){var t=function(){L.current.removeAttribute("data-animating"),L.current.removeAttribute("data-swiping"),F(e),h(b)&&b(e)};P>0?(L.current.setAttribute("data-animating","true"),L.current.addEventListener("transitionend",t,{once:!0}),Rt(z.indexOf(e),j,null==L?void 0:L.current)):t()}};c(n,(function(){return{goToNextSlide:D,goToPreviousSlide:Z,goToSlide:R}}));var J=function(e){for(var n=[],r="before"===e?z[0]:z[M-1],o=0;o<j;o++)"before"===e&&(r=Dt(r,M),n.unshift(r)),"after"===e&&(r=Tt(r,M),n.push(r));return n.map((function(n){return t.cloneElement(W[n],{key:"buffer_".concat(e,"_").concat(n)})}))},X=H({onSwiped:function(e){var t,n=e.deltaX,r=e.dir;if(L.current.hasAttribute("data-swiping")){var o=(t=z.indexOf(S)+j,(null==L?void 0:L.current).children[t].offsetWidth/3);Math.abs(n)>=o?"Left"===r?D():Z():L.current.removeAttribute("data-swiping")}},onSwiping:function(e){var t=e.velocity;!L.current.hasAttribute("data-swiping")&&t>.33&&L.current.setAttribute("data-swiping","true")},trackMouse:C}),N=T(Pt);return ut("--transition-duration","".concat(P,"ms"),L),u("div",{ref:A,css:N.container,id:f,"data-carousel-container":!0},u("div",ee({},X,{ref:function(e){L.current=e,X.ref(e)},css:N.slides,"data-carousel-slides-container":!0}),J("before"),z.map((function(e){return W[e]})),J("after")),B&&u("div",{css:N.controls},m&&u(Bt,{direction:"previous",disabled:0===S&&!g,onClick:Z}),x&&u("ol",{css:N.dots},W.map((function(e,t){return u(zt,{key:"slide_".concat(t),active:t===S,onClick:function(){return R(t)}})}))),m&&u(Bt,{direction:"next",disabled:S===M-1&&!g,onClick:D})))}));function Jt(){return Jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jt.apply(this,arguments)}var Xt,Nt=n((function(t,n){return e.createElement("svg",Jt({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Ft||(Ft=e.createElement("path",{d:"M9.167 15h1.666v-1.667H9.167V15Z",fill:"currentColor"})),jt||(jt=e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.667 10C1.667 5.4 5.4 1.667 10 1.667S18.333 5.4 18.333 10 14.6 18.333 10 18.333A8.336 8.336 0 0 1 1.667 10Zm1.666 0A6.675 6.675 0 0 0 10 16.667 6.675 6.675 0 0 0 16.667 10 6.676 6.676 0 0 0 10 3.333 6.676 6.676 0 0 0 3.333 10Z",fill:"currentColor"})),Wt||(Wt=e.createElement("path",{d:"M10 5a3.332 3.332 0 0 0-3.333 3.333h1.666c0-.916.75-1.666 1.667-1.666s1.667.75 1.667 1.666c0 1.667-2.5 1.459-2.5 4.167h1.666c0-1.875 2.5-2.083 2.5-4.167A3.332 3.332 0 0 0 10 5Z",fill:"currentColor"})))})),Gt={name:"115actz",styles:"display:inline-flex;position:relative;"},Vt={name:"1ixbp0l",styles:"pointer-events:none;"},Yt={name:"13v3rg8",styles:"overflow-y:auto;"},qt={name:"17ju33v",styles:"--cursor:pointer;cursor:var(--cursor);display:inline-flex;"},_t=function(e){var t=e.colorPalette;return{container:Gt,popup:d("--background-color:#fff;--color:",t.font,";--margin:10px;--max-height:300px;--max-width:300px;--padding:10px;--position-x:0;--position-y:0;font-family:'Montserrat',sans-serif;font-size:14px;left:var(--position-x);line-height:20px;margin:var(--margin);max-height:var(--max-height);max-width:var(--max-width);min-width:",175,"px;opacity:0;outline:none;pointer-events:none;position:absolute;text-align:left;top:var(--position-y);transition:opacity ",100,"ms linear;width:max-content;z-index:1;"),popupContent:d("--translate-x:0;--translate-y:0;",Oe,";",Ie.scrollbar,";background-color:var(--background-color);border-radius:",Ie.borderRadius,";box-shadow:",Ie.dropShadow,";color:var(--color);padding:var(--padding);pointer-events:auto;overflow-x:hidden;overflow-y:hidden;transform:translate(var(--translate-x),var(--translate-y));"),popupOnHover:Vt,popupContentScrollable:Yt,toggle:qt,toggleString:d("border-bottom:2px dotted ",t.secondary,";")}},Ut=function(e,t,n,r,o){var i;if("bottom"===e){var a=r.clientHeight-(n.top+t.offsetHeight);i="floating"===o?a:a+(r.scrollTop+r.offsetTop)}if("left"===e&&(i="floating"===o?n.left:n.left-r.scrollLeft-r.offsetLeft),"right"===e){var l=r.clientWidth-(n.left+t.offsetWidth);i="floating"===o?l:l+(r.scrollLeft+r.offsetLeft)}return"top"===e&&(i="floating"===o?n.top:n.top-r.scrollTop-r.offsetTop),i},Qt=function(e){var t=window.getComputedStyle(e);return{bottom:parseInt(t.marginBottom),left:parseInt(t.marginLeft),right:parseInt(t.marginRight),top:parseInt(t.marginTop)}},Kt=function(e,t){var n;if("sibling"===t)n={left:e.offsetLeft,top:e.offsetTop};else{var r=e.getBoundingClientRect();n={left:Math.floor(r.left),top:Math.floor(r.top)}}return n},$t=function(e,t,n,r){if(e&&t){var o=0,i=0,a=r.startsWith("bottom")||r.startsWith("top")?"vertical":"horizontal",l={height:e.offsetHeight,width:e.offsetWidth},c=C(e),s={height:t.offsetHeight,width:t.offsetWidth},d=Kt(t,n),u=Qt(e),p=u.bottom,f=u.left,g=u.right,h=u.top;"horizontal"===a&&(i=d.top+s.height/2-l.height/2-h,r.startsWith("left")&&(o=d.left-l.width-f-g),r.startsWith("right")&&(o=d.left+s.width),r.endsWith("-end")&&(i=d.top+s.height-l.height-h),r.endsWith("-start")&&(i=d.top-h)),"vertical"===a&&(o=d.left+s.width/2-l.width/2-f,r.startsWith("bottom")&&(i=d.top+s.height),r.startsWith("top")&&(i=d.top-l.height-p-h),r.endsWith("-end")&&(o=d.left+s.width-l.width-f),r.endsWith("-start")&&(o=d.left-f)),"floating"===n&&(o+=c.scrollLeft,i+=c.scrollTop),e.style.setProperty("--position-x","".concat(o,"px")),e.style.setProperty("--position-y","".concat(i,"px"))}},en=function(e,t,n,r,o,a){var c=l((function(){return"sibling"===n&&null!=t&&t.current?C(t.current):null}),[n,null==t?void 0:t.current]);i((function(){var i,l;o&&(i=new IntersectionObserver((function(o){o.forEach((function(o){var i,l=o.isIntersecting,c=o.target;c===(null==e?void 0:e.current)&&l&&function(e,t,n,r){var o=r.startsWith("bottom")||r.startsWith("top")?"vertical":"horizontal",i=C(e),a=Kt(t.parentElement,n),l=0,c=0,s=Qt(e),d=s.bottom,u=s.left,p=s.right,f=s.top;if("horizontal"===o){var g=Ut("left",t,a,i,n),h=Ut("right",t,a,i,n),b=g<e.offsetWidth+p,v=h<e.offsetWidth+u;(r.startsWith("left")&&b&&!v||r.startsWith("right")&&v&&!b)&&(l=(t.offsetWidth+e.offsetWidth+u+p)*(r.startsWith("left")?1:-1)),e.firstElementChild.style.setProperty("--translate-x","".concat(l,"px"))}if("vertical"===o){var m=Ut("top",t,a,i,n),y=Ut("bottom",t,a,i,n),x=m<e.offsetHeight+d,w=y<e.offsetHeight+f;(r.startsWith("bottom")&&w&&!x||r.startsWith("top")&&x&&!w)&&(c=(t.offsetHeight+e.offsetHeight+f+d)*(r.startsWith("top")?1:-1)),e.firstElementChild.style.setProperty("--translate-y","".concat(c,"px"))}}(null==e?void 0:e.current,null==t?void 0:t.current,n,r),c!==(null==e||null===(i=e.current)||void 0===i?void 0:i.firstElementChild)||l||a()}))}),{root:c,threshold:[0,1]}),i.observe(e.current),i.observe(null==e||null===(l=e.current)||void 0===l?void 0:l.firstElementChild));return function(){i&&i.disconnect()}}),[n,o,r,c])},tn=function(e){var t=e.attachment,n=e.backgroundColor,l=e.children,c=e.margin,s=e.maxHeight,p=e.maxWidth,f=e.onOutOfView,g=e.open,h=e.padding,b=e.placement,v=e.scrollable,m=e.setPopupRef,y=e.textColor,x=e.toggleRef,w=e.trigger,k=o(),I=oe(r(g),2),O=I[0],P=I[1];!function(e,t,n,r,o){a((function(){o&&$t(null==e?void 0:e.current,null==t?void 0:t.current,n,r)}),[n,o,r,null==e?void 0:e.current])}(k,x,t,b,g),en(k,x,t,b,g,f),function(e,t,n,r,a){var l=o(!1);i((function(){var o,i,c,s,d,u=function(){$t(null==e?void 0:e.current,null==t?void 0:t.current,n,r)};if(a){if(!l.current){var p=t.current.getBoundingClientRect(),f=p.height,g=p.left,h=p.top,b=p.width;i=f,c=g,s=h,d=b,l.current=!0}"floating"===n&&window.addEventListener("resize",u),o=new ResizeObserver((function(o){var a=oe(o,1)[0].contentRect,l=a.height,u=a.left,p=a.top,f=a.width;l===i&&u===c&&p===s&&f===d||($t(null==e?void 0:e.current,null==t?void 0:t.current,n,r),i=l,c=u,s=p,d=f)})),o.observe(null==t?void 0:t.current)}return function(){window.removeEventListener("resize",u),o&&o.disconnect()}}),[n,a,r])}(k,x,t,b,g),function(e,t,n,r){i((function(){var o,i,a,l=0,c=0,s=function(t){var n,r,o,i,a,s,d,u,p=t.target,f=p.scrollLeft,g=p.scrollTop,h=l-f,b=c-g,v=parseInt(null==e||null===(n=e.current)||void 0===n||null===(r=n.style)||void 0===r?void 0:r.getPropertyValue("--position-x")),m=parseInt(null==e||null===(o=e.current)||void 0===o||null===(i=o.style)||void 0===i?void 0:i.getPropertyValue("--position-y"));null==e||null===(a=e.current)||void 0===a||null===(s=a.style)||void 0===s||s.setProperty("--position-x","".concat(v+h,"px")),null==e||null===(d=e.current)||void 0===d||null===(u=d.style)||void 0===u||u.setProperty("--position-y","".concat(m+b,"px")),l=f,c=g};return r&&"floating"===n&&(o=C(null==t?void 0:t.current),l=null===(i=o)||void 0===i?void 0:i.scrollLeft,c=null===(a=o)||void 0===a?void 0:a.scrollTop,o!==document.documentElement&&o.addEventListener("scroll",s)),function(){o&&o.removeEventListener("scroll",s)}}),[n,r])}(k,x,t,g),i((function(){var e,t,n,r,o,i=function(){P(!1)};g?(P(!0),null==k||null===(e=k.current)||void 0===e||null===(t=e.style)||void 0===t||t.setProperty("opacity","1")):(null==k||null===(n=k.current)||void 0===n||n.addEventListener("transitionend",i,{once:!0}),null==k||null===(r=k.current)||void 0===r||null===(o=r.style)||void 0===o||o.removeProperty("opacity"));return function(){var e;null==k||null===(e=k.current)||void 0===e||e.removeEventListener("transitionend",i)}}),[g]);var A=T(_t);ut("--background-color",n,k),ut("--color",y,k),ut("--margin",c,k),ut("--max-height",s,k),ut("--max-width",p,k),ut("--padding",h,k);var L=u("div",{ref:function(e){k.current=e,m(e)},css:A.popup},u("div",{css:d([A.popupContent,v&&A.popupContentScrollable,"hover"===w&&A.popupOnHover])},l));return(g||O)&&("sibling"===t?L:J.createPortal(L,document.body))},nn=function(e){var t=e.ariaDescription,n=e.ariaLabel,a=e.attachment,c=void 0===a?"sibling":a,s=e.backgroundColor,p=e.children,f=e.closeDelay,g=void 0===f?0:f,b=e.closeOnClickOutside,v=void 0===b||b,m=e.closeOnOutOfView,y=void 0!==m&&m,x=e.gapSize,w=e.id,C=e.margin,k=void 0===C?x:C,I=e.maxHeight,O=e.maxWidth,P=e.onHide,A=e.onShow,L=e.open,E=void 0!==L&&L,S=e.openDelay,F=void 0===S?0:S,j=e.padding,W=e.placement,M=void 0===W?"bottom":W,B=e.popupPositionX,z=void 0===B?"right":B,D=e.popupPositionY,Z=void 0===D?"below":D,R=e.position,H=void 0===R?{left:"auto",top:"auto"}:R,J=e.positionType,X=void 0===J?"relative":J,N=e.scrollable,G=void 0===N||N,V=e.setRef,Y=e.textColor,q=e.toggle,_=e.toggleCursor,U=e.trigger,Q=void 0===U?"press":U,K=e.width;!function(e,t,n,r,o,i,a,l){Qe('WJEC One Popup: The "gapSize" prop has been deprecated in favor of the more standard "margin" prop, and will be removed in a future version of the library',(function(){return void 0!==e}),[e]),Qe('WJEC One Popup: The "popupPositionX" and "popupPositionY" props have been deprecated in favor of the new placement prop, which encompasses both. Please switch to using "placement" to avoid unexpected behavior in future versions of the library',(function(){return"right"!==t}),[t]),Qe('WJEC One Popup: The "popupPositionX" and "popupPositionY" props have been deprecated in favor of the new placement prop, which encompasses both. Please switch to using "placement" to avoid unexpected behavior in future versions of the library',(function(){return"below"!==n}),[n]),Qe('WJEC One Popup: The "position" prop has been deprecated because WJEC One components are intended to be layout agnostic; it will be removed in a future version of the library',(function(){return'{"left":"auto","top":"auto"}'!==JSON.stringify(r)}),[r]),Qe('WJEC One Popup: The "positionType" prop has been deprecated because WJEC One components are intended to be layout agnostic; it will be removed in a future version of the library',(function(){return"relative"!==o}),[o]),Qe('WJEC One Popup: The "setRef" prop has been deprecated as it is no longer required internally',(function(){return void 0!==i}),[i]),Qe('WJEC One Popup: The "click" value for the "trigger" prop has been deprecated in favor of "press", which maintains the same functionality. The "click" option will be removed in a future version of the library, so switch to using "press" to avoid unexpected behavior',(function(){return"click"===a}),[a]),Qe('WJEC One Popup: The "width" prop has been deprecated because WJEC One components are intended to be layout agnostic; it will be removed in a future version of the library',(function(){return"auto"!==l}),[l])}(x,z,Z,H,X,V,Q,void 0===K?"auto":K);var $=o(),te=o(),ne=o(),re=oe(r(E),2),ie=re[0],ae=re[1],le=o(),ce=o(),se=mt(t),de=l((function(){return"right"!==z||"below"!==Z?function(e,t){switch("".concat(e,"-").concat(t)){case"after-bottom":return"right-end";case"after-top":return"right-start";case"before-bottom":return"left-end";case"before-top":return"left-start";case"left-above":return"top-start";case"left-below":return"bottom-start";case"right-above":return"top-end";default:return"bottom"}}(z,Z):M}),[M,z,Z]);i((function(){E&&!ie&&fe(),!E&&ie&&pe()}),[E]),i((function(){return"hover"!==Q&&v&&ie&&v&&window.addEventListener("click",ue),function(){window.removeEventListener("click",ue)}}),[v,ie,Q]);var ue=function(e){var t=e.target;t===$.current||$.current.contains(t)||te.current.contains(t)||pe()},pe=function(){window.clearTimeout(ce.current),ie&&(le.current=window.setTimeout((function(){ae(!1),h(P)&&P()}),g))},fe=function(){window.clearTimeout(le.current),ie||(ce.current=window.setTimeout((function(){h(A)&&A(),ae(!0)}),F))},ge=T(_t);return ut("--cursor",_,$),u("div",ee({"aria-label":n,ref:$,css:ge.container,id:w},se),u("span",{ref:ne,css:d([ge.toggle,"string"==typeof q&&ge.toggleString]),onClick:"click"===Q||"press"===Q?function(){ie?pe():fe()}:null,onMouseEnter:"hover"===Q?fe:null,onMouseLeave:"hover"===Q?pe:null},q),u(tn,{attachment:c,backgroundColor:s,margin:k,maxHeight:I,maxWidth:O,onOutOfView:function(){return y&&ae(!1)},open:ie,padding:j,placement:de,scrollable:G,setPopupRef:function(e){return te.current=e},textColor:Y,toggleRef:ne,trigger:Q},p))},rn=["ariaDescription","ariaLabel","children","id","toggle"],on=function(e){var t=e.ariaDescription,n=e.ariaLabel,r=e.children,o=e.id,i=e.toggle,a=void 0===i?u(Nt,{css:an.defaultToggle}):i,l=ne(e,rn),c=oe(D(),1)[0].colorPalette;return u(nn,ee({ariaDescription:t,ariaLabel:n},l,{backgroundColor:c.secondaryDark,id:o,openDelay:500,popupPositionX:"after",popupPositionY:"top",scrollable:!1,textColor:"#FFFFFF",toggle:a,toggleCursor:"help",trigger:"hover"}),r)},an={defaultToggle:{name:"1pg8bi",styles:"height:20px;"}};function ln(){return ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ln.apply(this,arguments)}var cn,sn,dn=n((function(t,n){return e.createElement("svg",ln({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Xt||(Xt=e.createElement("path",{d:"M10 6.667c.917 0 1.667-.75 1.667-1.667S10.917 3.333 10 3.333 8.333 4.083 8.333 5 9.083 6.667 10 6.667Zm0 1.666c-.917 0-1.667.75-1.667 1.667s.75 1.667 1.667 1.667 1.667-.75 1.667-1.667-.75-1.667-1.667-1.667Zm0 5c-.917 0-1.667.75-1.667 1.667s.75 1.667 1.667 1.667 1.667-.75 1.667-1.667-.75-1.667-1.667-1.667Z",fill:"currentColor"})))})),un=function(e){var t=e.children,n=e.color,r=e.id,i=o(),a=T(pn);return ut("--color",n,i),u("span",{css:a.emphasis,id:r,ref:i},t)},pn=function(e){var t=e.colorPalette;return{emphasis:d("--color:",t.neutralDark,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:16px;font-weight:700;line-height:24px;")}},fn=function(e){var t=e.children,n=e.color,r=e.id,i=o(),a=T(gn);return ut("--color",n,i),u("p",{css:a.paragraph,id:r,ref:i},t)},gn=function(e){var t=e.colorPalette;return{paragraph:d("--color:",t.font,';color:var(--color);font-family:"Montserrat",sans-serif;font-size:14px;font-weight:400;line-height:20px;margin:0 0 20px 0;white-space:pre-line;')}},hn=["description","options","title","toggle"],bn=function(e){return e&&e.length&&Object.hasOwn(e[0],"label")},vn=function(e){var n=e.description,r=e.options,o=e.title,a=e.toggle,l=void 0===a?u(at,{allowEventPropagation:!0,icon:dn}):a,c=ne(e,hn),s=oe(D(),1)[0].colorPalette;i((function(){return function(e){var n=bn(e)?e:e.reduce((function(e,t){var n=t.sectionOptions;return[].concat(ie(e),ie(n))}),[]);n.some((function(e){var n=e.icon,r=e.label;if(n&&!x(t.createElement(n)))throw new Error('Icon for option "'.concat(r,'" must be a valid SVGComponent'))}))}(r)}),[r]);var p=function(e){return function(){h(e.onClick)&&e.onClick()}},f=T(xn),g=function(e){var t=e.additionalInfo,n=e.label,r=e.icon;return u("li",{key:n.toString(),css:f.menuItem,onClick:p(e)},r&&u(r,{css:f.menuItemIcon}),u("span",{css:f.menuItemLabel},n),t&&u("span",{css:"string"==typeof t?f.menuItemInfo:f.menuItemAction},t))};return u(nn,ee({},c,{padding:0,popupPositionX:"right",popupPositionY:"below",toggle:l}),(o||n)&&u("header",{css:f.header},o&&u(un,null,o),n&&u(fn,{color:s.fontLight},n)),u("ul",{css:d([Oe,Ie.scrollbar,f.menu])},r&&r.length&&(bn(r)?r.map(g):r.map((function(e,t){var n=e.sectionTitle,r=e.sectionOptions;return u("li",{key:"section_".concat(n&&n.replace(/\s/g,"_")||t),css:f.section},n&&u("h4",{css:f.sectionTitle},n),u("ul",{css:d([f.subMenu,!n&&f.subMenuWithoutTitle])},r.map(g)))})))))},mn={name:"jvw5bw",styles:"margin-right:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},yn={name:"1dacand",styles:"padding-top:0;"},xn=function(e){var t=e.colorPalette;return{header:d("border-bottom:1px solid ",t.border,";margin:",10,"px;margin-bottom:0;min-width:250px;"),menu:d("font-family:'Montserrat',sans-serif;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:",10,"px;"),menuItem:d("align-items:center;border-radius:",Ie.borderRadius,";color:",t.font,";cursor:pointer;display:flex;font-size:14px;line-height:20px;padding:",5,"px ",10,"px;&:hover{background-color:",t.neutral,";& > svg{color:",t.secondary,";}}&:not(:last-child){margin-bottom:",5,"px;}"),menuItemAction:d("display:inline-flex;margin-left:",20,"px;pointer-events:none;"),menuItemIcon:d("color:",t.fontLight,";flex-shrink:0;height:20px;margin-right:",10,"px;"),menuItemInfo:d("color:",t.fontLight,";font-size:11px;line-height:20px;margin-left:",20,"px;"),menuItemLabel:mn,section:d("margin:0 -",10,"px;&:last-child{margin-bottom:-",10,"px;}&:not(:last-child){border-bottom:1px solid ",t.border,";margin-bottom:",10,"px;}"),sectionTitle:d("color:",t.fontLight,";font-size:11px;font-weight:600;letter-spacing:1px;line-height:20px;margin:0;padding:0 ",20,"px;text-transform:uppercase;"),subMenu:d("list-style:none;padding:",10,"px;"),subMenuWithoutTitle:yn}},wn=function(e){var t=e.gap,n=void 0===t?0:t,o=e.id,a=e.items,l=e.onDrop,c=e.template,s=void 0===c?function(e){var t=e.Handle,n=e.item;return u(t,null,n.toString())}:c,p=oe(r(),2),f=p[0],g=p[1],b=oe(r(ie(a)),2),v=b[0],m=b[1];i((function(){m(ie(a))}),[a]);var y=function(e,t,n){var r=document.querySelector("[data-rbd-draggable-id='".concat(n,"']"));if(r){var o=r.clientHeight,i=r.clientWidth,a=r.parentElement,l=parseFloat(window.getComputedStyle(a).paddingTop),c=Array.from(a.children),s=[].concat(c);s.splice(e,1);var d=[].concat(ie(s.slice(0,t)),[r],ie(s.slice(t+1)));g({height:o,left:parseFloat(window.getComputedStyle(a).paddingLeft),top:l+d.slice(0,t).reduce((function(e,t){var n=window.getComputedStyle(t),r=parseFloat(n.marginBottom);return e+t.clientHeight+r}),0),width:i})}},x=T(Pn),w=function(e,t){return u(V,{key:a.indexOf(e),draggableId:a.indexOf(e).toString(),index:t},(function(r,o){var i=r.dragHandleProps,a=r.draggableProps,l=r.innerRef;return u("li",ee({ref:l},a,{css:d([x.item,t<v.length-1&&{marginBottom:n}])}),s({item:e,Handle:function(e){var t=e.children,n=e.positionType,r=void 0===n?"relative":n,a=e.position,l=void 0===a?{}:a;return u("div",ee({},i,{css:d([x.handle,Q({position:r},l),o.isDragging&&x.handleGrabbing])}),t)},index:t,sortedItems:ie(v)}))}))};return u(N,{onDragEnd:function(e){var t=e.destination,n=e.source;if(g(void 0),t){var r=ie(v),o=r[n.index];r.splice(n.index,1),r.splice(t.index,0,o),h(l)&&l(r),m(r)}},onDragStart:function(e){var t=e.draggableId,n=e.source;y(n.index,n.index,t)},onDragUpdate:function(e){var t=e.destination,n=e.draggableId,r=e.source;t&&y(r.index,t.index,n)}},u(G,{droppableId:"DragAndDropListDropZone"},(function(e,t){var n=e.droppableProps,r=e.innerRef,i=e.placeholder;return u("ul",ee({ref:r},n,{css:d([x.list,t.isDraggingOver&&x.listDragging]),id:o}),v.map(w),i,f&&t.isDraggingOver&&u("div",{css:d([x.placeholder,f])}))})))},Cn={name:"ehba41",styles:"cursor:grab;"},kn={name:"m2aufq",styles:"cursor:grabbing;"},In={name:"79elbk",styles:"position:relative;"},On={name:"9y6172",styles:"user-select:none;"},Pn=function(e){var t=e.colorPalette;return{handle:Cn,handleGrabbing:kn,item:In,list:d(Oe,";list-style:none;margin:0;padding:0;position:relative;"),listDragging:On,placeholder:d("border:2px dashed ",t.secondary,";border-radius:",Ie.borderRadius,";position:absolute;")}};function An(){return An=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},An.apply(this,arguments)}var Ln,En,Sn=n((function(t,n){return e.createElement("svg",An({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),cn||(cn=e.createElement("path",{opacity:.4,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),sn||(sn=e.createElement("path",{d:"M12 8v4m0 4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}));function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fn.apply(this,arguments)}var jn,Wn,Mn=n((function(t,n){return e.createElement("svg",Fn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Ln||(Ln=e.createElement("path",{opacity:.4,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),En||(En=e.createElement("path",{d:"m7.5 12 3 3 6-6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}));function Bn(){return Bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bn.apply(this,arguments)}var zn,Tn=n((function(t,n){return e.createElement("svg",Bn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),jn||(jn=e.createElement("path",{opacity:.4,d:"m2.39 18.098 8.225-14.206c.455-.785.682-1.178.979-1.31a1 1 0 0 1 .812 0c.297.132.524.525.979 1.31l8.225 14.206c.456.788.684 1.182.65 1.506a1 1 0 0 1-.406.705c-.263.191-.719.191-1.63.191H3.776c-.91 0-1.366 0-1.629-.191a1 1 0 0 1-.406-.705c-.034-.324.194-.718.65-1.506Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Wn||(Wn=e.createElement("path",{d:"M12 9v4m0 4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))})),Dn={description:d("color:",ue.neutralDark,";display:block;font-size:12px;font-weight:400;line-height:16px;margin-top:4px;")},Zn=function(e){var t=e.children;return t?u("span",{css:Dn.description},t):null};function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rn.apply(this,arguments)}var Hn,Jn=n((function(t,n){return e.createElement("svg",Rn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),zn||(zn=e.createElement("path",{d:"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}));function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xn.apply(this,arguments)}var Nn,Gn=n((function(t,n){return e.createElement("svg",Xn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Hn||(Hn=e.createElement("path",{d:"m7.5 12 3 3 6-6m5.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}));function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vn.apply(this,arguments)}var Yn,qn=n((function(t,n){return e.createElement("svg",Vn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Nn||(Nn=e.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))})),_n={name:"elc5wo",styles:"display:block;font-size:12px;font-weight:600;line-height:16px;margin-top:4px;padding-left:24px;position:relative;white-space:pre-line;"},Un={name:"196io73",styles:"left:0;position:absolute;top:0;width:16px;"},Qn=function(e){var t=e.colorPalette;return{status:_n,statusError:d("color:",t.error,";"),statusIcon:Un,statusSuccess:d("color:",t.success,";"),statusWarning:d("color:",t.warning,";")}},Kn=function(e){var t=e.children,n=e.status,r=T(Qn),o=l((function(){var e;switch(n){case"error":e=Jn;break;case"success":e=Gn;break;case"warning":e=qn}return e}),[n]),i=l((function(){var e;switch(n){case"error":e=r.statusError;break;case"success":e=r.statusSuccess;break;case"warning":e=r.statusWarning}return e}),[n]);return n&&t?u("span",{css:d([r.status,i],"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZpZWxkU3RhdHVzLmpzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEwQ2lCIiwiZmlsZSI6IkZpZWxkU3RhdHVzLmpzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyB1c2VNZW1vIH0gZnJvbSAncmVhY3QnO1xyXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcclxuaW1wb3J0IHsgdXNlV2plY09uZVRoZW1lU3R5bGVzIH0gZnJvbSAnd2plYy1vbmUtZGV2LXV0aWxzL3RoZW1lJztcclxuLy8gQHRyYW5zZm9ybS1wYXRoIC4uLy4uL2Fzc2V0cy9pY29ucy9saW5lX2FsZXJ0LWNpcmNsZS5zdmdcclxuaW1wb3J0IEVycm9ySWNvbiBmcm9tIFwiLi4vLi4vYXNzZXRzL2ljb25zL2xpbmVfYWxlcnQtY2lyY2xlLnN2Z1wiO1xyXG4vLyBAdHJhbnNmb3JtLXBhdGggLi4vLi4vYXNzZXRzL2ljb25zL2xpbmVfY2hlY2stY2lyY2xlLnN2Z1xyXG5pbXBvcnQgU3VjY2Vzc0ljb24gZnJvbSBcIi4uLy4uL2Fzc2V0cy9pY29ucy9saW5lX2NoZWNrLWNpcmNsZS5zdmdcIjtcclxuLy8gQHRyYW5zZm9ybS1wYXRoIC4uLy4uL2Fzc2V0cy9pY29ucy9saW5lX2FsZXJ0LXRyaWFuZ2xlLnN2Z1xyXG5pbXBvcnQgV2FybmluZ0ljb24gZnJvbSBcIi4uLy4uL2Fzc2V0cy9pY29ucy9saW5lX2FsZXJ0LXRyaWFuZ2xlLnN2Z1wiO1xyXG5jb25zdCBGaWVsZFN0YXR1cyA9ICh7IGNoaWxkcmVuLCBzdGF0dXMgfSkgPT4ge1xyXG4gICAgY29uc3Qgc3R5bGVzID0gdXNlV2plY09uZVRoZW1lU3R5bGVzKGdldFN0eWxlcyk7XHJcbiAgICBjb25zdCBTdGF0dXNJY29uID0gdXNlTWVtbygoKSA9PiB7XHJcbiAgICAgICAgbGV0IGljb247XHJcbiAgICAgICAgc3dpdGNoIChzdGF0dXMpIHtcclxuICAgICAgICAgICAgY2FzZSAnZXJyb3InOlxyXG4gICAgICAgICAgICAgICAgaWNvbiA9IEVycm9ySWNvbjtcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICBjYXNlICdzdWNjZXNzJzpcclxuICAgICAgICAgICAgICAgIGljb24gPSBTdWNjZXNzSWNvbjtcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICBjYXNlICd3YXJuaW5nJzpcclxuICAgICAgICAgICAgICAgIGljb24gPSBXYXJuaW5nSWNvbjtcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gaWNvbjtcclxuICAgIH0sIFtzdGF0dXNdKTtcclxuICAgIGNvbnN0IHN0YXR1c1N0eWxlID0gdXNlTWVtbygoKSA9PiB7XHJcbiAgICAgICAgbGV0IHN0eWxlO1xyXG4gICAgICAgIHN3aXRjaCAoc3RhdHVzKSB7XHJcbiAgICAgICAgICAgIGNhc2UgJ2Vycm9yJzpcclxuICAgICAgICAgICAgICAgIHN0eWxlID0gc3R5bGVzLnN0YXR1c0Vycm9yO1xyXG4gICAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICAgIGNhc2UgJ3N1Y2Nlc3MnOlxyXG4gICAgICAgICAgICAgICAgc3R5bGUgPSBzdHlsZXMuc3RhdHVzU3VjY2VzcztcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICBjYXNlICd3YXJuaW5nJzpcclxuICAgICAgICAgICAgICAgIHN0eWxlID0gc3R5bGVzLnN0YXR1c1dhcm5pbmc7XHJcbiAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICB9XHJcbiAgICAgICAgcmV0dXJuIHN0eWxlO1xyXG4gICAgfSwgW3N0YXR1c10pO1xyXG4gICAgcmV0dXJuIChzdGF0dXMgJiYgY2hpbGRyZW5cclxuICAgICAgICA/ICg8c3BhbiBjc3M9e1tzdHlsZXMuc3RhdHVzLCBzdGF0dXNTdHlsZV19PlxyXG4gICAgICAgICAgPFN0YXR1c0ljb24gY3NzPXtzdHlsZXMuc3RhdHVzSWNvbn0vPlxyXG4gICAgICAgICAge2NoaWxkcmVufVxyXG4gICAgICAgIDwvc3Bhbj4pXHJcbiAgICAgICAgOiBudWxsKTtcclxufTtcclxuY29uc3QgZ2V0U3R5bGVzID0gKHsgY29sb3JQYWxldHRlIH0pID0+ICh7XHJcbiAgICBzdGF0dXM6IGNzcyBgXHJcbiAgICBkaXNwbGF5OiBibG9jaztcclxuICAgIGZvbnQtc2l6ZTogMTJweDtcclxuICAgIGZvbnQtd2VpZ2h0OiA2MDA7XHJcbiAgICBsaW5lLWhlaWdodDogMTZweDtcclxuICAgIG1hcmdpbi10b3A6IDRweDtcclxuICAgIHBhZGRpbmctbGVmdDogMjRweDtcclxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcclxuICAgIHdoaXRlLXNwYWNlOiBwcmUtbGluZTtcclxuICBgLFxyXG4gICAgc3RhdHVzRXJyb3I6IGNzcyBgXHJcbiAgICBjb2xvcjogJHtjb2xvclBhbGV0dGUuZXJyb3J9O1xyXG4gIGAsXHJcbiAgICBzdGF0dXNJY29uOiBjc3MgYFxyXG4gICAgbGVmdDogMDtcclxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcclxuICAgIHRvcDogMDtcclxuICAgIHdpZHRoOiAxNnB4O1xyXG4gIGAsXHJcbiAgICBzdGF0dXNTdWNjZXNzOiBjc3MgYFxyXG4gICAgY29sb3I6ICR7Y29sb3JQYWxldHRlLnN1Y2Nlc3N9O1xyXG4gIGAsXHJcbiAgICBzdGF0dXNXYXJuaW5nOiBjc3MgYFxyXG4gICAgY29sb3I6ICR7Y29sb3JQYWxldHRlLndhcm5pbmd9O1xyXG4gIGBcclxufSk7XHJcbmV4cG9ydCBkZWZhdWx0IEZpZWxkU3RhdHVzO1xyXG4iXX0= */")},u(o,{css:r.statusIcon}),t):null},$n=function(e){var n=e.gridArea,r=e.invalid,i=e.onPickSuggestion,c=e.validationMessage,s=e.validationPattern,d=e.ariaLabel,p=e.autoComplete,f=e.description,b=e.disabled,v=e.icon,m=e.id,y=e.inputMode,w=e.label,C=e.maxCharacters,k=e.name,I=e.onBlur,O=e.onChange,P=e.onFocus,A=e.placeholder,L=e.readonly,E=e.required,S=e.status,F=void 0===S?r?"error":void 0:S,j=e.statusIcon,W=void 0===j?"error"===F?Sn:"success"===F?Mn:"warning"===F?Tn:void 0:j,M=e.statusIconBehavior,B=void 0===M?"status":M,z=e.statusMessage,Z=void 0===z?c:z,H=e.suggestions,J=e.value,X=void 0===J?"":J,N=e.width;!function(e){var t=e.gridArea,n=e.invalid,r=e.onPickSuggestion,o=e.validationMessage,i=e.validationPattern;Qe('WJEC One Input: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==t}),[t]),Qe('WJEC One Input: The "invalid" prop has been deprecated due to the introduction of the new "status" prop, and is equivalent to `status="error"`',(function(){return void 0!==n}),[n]),Qe('WJEC One Input: The "onPickSuggestion" prop has been deprecated because its functionality relies on non-standard implementation and will no longer be invoked. The previous behavior can be replicated by manually matching the `onChange()` value against the provided "suggestions" in the parent component',(function(){return void 0!==r}),[r]),Qe('WJEC One Input: The "validationMessage" prop has been deprecated due to the introduction of the new "statusMessage" prop, which functions similarly but is more semantically related to the associated "status" prop',(function(){return void 0!==o}),[o]),Qe('WJEC One Input: The "validationPattern" prop has been deprecated due to the introduction of the new "status" prop. Validation should now be performed by the parent component, and the appropriate "status" and "statusMessage" values should be explicitly provided',(function(){return void 0!==i}),[i])}({gridArea:n,invalid:r,onPickSuggestion:i,validationMessage:c,validationPattern:s}),Ne("WJEC-One Input: Icon must be a valid SVGComponent",(function(){return v&&!x(t.createElement(v))}),[v]),Ne("WJEC-One Input: Status icon must be a valid SVGComponent",(function(){return W&&!x(t.createElement(W))}),[W]);var G=R(),V=l((function(){return m||G}),[G,m]),Y=o(),q=l((function(){return"wjecOneInputSuggestions_".concat(V)}),[V]),_=oe(D(),1)[0],U=_.brand,Q=_.colorPalette,K=T(er);a((function(){Y.current.value=X}),[X]);var $=l((function(){switch(F){case"error":return{background:Q.errorBackground,border:Q.error};case"success":return{background:Q.successBackground,border:Q.success};case"warning":return{background:Q.warningBackground,border:Q.warning};default:return{background:"#FFFFFF",border:Q.border}}}),[U,F]),ee=l((function(){return v&&g(u(v,{color:b?Q.border:Q.neutralLight}))}),[U,b,v]),te=l((function(){var e=Q.neutralDark,t=void 0!==W&&("custom"===B||void 0!==F);if("status"===B)switch(F){case"error":e=Q.error;break;case"success":e=Q.success;break;case"warning":e=Q.warning}return t?g(u(W,{color:e})):void 0}),[U,F,W,B]),ne=l((function(){return{"--background-color":$.background,"--border-color":$.border,"--icon":ee,"--margin-top":w&&"4px","--padding-left":ee&&"40px","--padding-right":te&&"40px","--status-icon":te}}),[ee,w,$,te]);return u("label",{"aria-label":d,css:K.label,htmlFor:V,style:{width:N},"data-disabled":b},w,u("input",{ref:Y,autoComplete:p,css:K.input,defaultValue:X,disabled:b,id:V,inputMode:y,list:H&&q,maxLength:C,name:k,onBlur:function(e){var t=e.relatedTarget;h(I)&&I(t)},onChange:function(e){var t=e.target.value;h(O)&&O(t)},onFocus:function(){h(P)&&P()},placeholder:A,readOnly:L,required:E,style:ne,type:"text"}),u(Zn,null,f),u(Kn,{status:F},Z),H&&u("datalist",{id:q},H.map((function(e,t){return u("option",{key:"".concat(e,"_").concat(t),value:e})}))))},er=function(e){var t=e.colorPalette;return{input:d("--background-color:#FFFFFF;--border-color:",t.border,";--icon:none;--margin-top:0;--padding-left:8px;--padding-right:8px;--status-icon:none;",Pe,";background-color:var(--background-color);background-image:var(--icon),var(--status-icon);background-position:center left 8px,center right 8px;background-repeat:no-repeat;background-size:24px;border:1px solid var(--border-color);border-radius:",Ie.borderRadius,";font-family:inherit;font-size:16px;height:40px;line-height:24px;margin-top:var(--margin-top);max-width:100%;outline:none;padding:4px var(--padding-right) 4px var(--padding-left);width:100%;&:disabled{background-color:",t.neutral,";border-color:",t.border,";color:",t.border,";cursor:not-allowed;}&:focus{border-color:",t.primary,";}&:read-only:not(:disabled){background-image:none;background-color:transparent;border-color:transparent;overflow:hidden;padding-left:0;padding-right:0;text-overflow:ellipsis;white-space:nowrap;}&::placeholder{color:",t.neutralLight,";}&::-webkit-calendar-picker-indicator{opacity:0;}"),label:d(Oe,";",Ae,';display:inline-flex;flex-direction:column;&[data-disabled="true"]{color:',t.border,";}")}};function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tr.apply(this,arguments)}var nr,rr,or,ir=n((function(t,n){return e.createElement("svg",tr({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Yn||(Yn=e.createElement("path",{d:"M15.25 4.758a.83.83 0 0 0-1.175 0L10 8.825 5.925 4.75A.83.83 0 1 0 4.75 5.925L8.825 10 4.75 14.075a.83.83 0 1 0 1.175 1.175L10 11.175l4.075 4.075a.83.83 0 1 0 1.175-1.175L11.175 10l4.075-4.075a.835.835 0 0 0 0-1.167Z",fill:"currentColor"})))}));function ar(){return ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ar.apply(this,arguments)}var lr,cr=n((function(t,n){return e.createElement("svg",ar({viewBox:"0 0 91 83",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),nr||(nr=e.createElement("path",{opacity:.4,d:"M50.74 68.314 8.455 56.983c-3.017-.809-4.562-4.155-3.222-6.976l21.62-45.491a5 5 0 0 1 6.662-2.37l45.998 21.86c2.824 1.343 3.737 4.918 1.903 7.45L56.081 66.418a5 5 0 0 1-5.343 1.896Z",fill:"#B0C600"})),rr||(rr=e.createElement("path",{opacity:.4,d:"M0 38.726V26.507a5 5 0 0 1 4.079-4.914l53.991-10.12a5 5 0 0 1 4.381 1.305l26.221 25.134a5 5 0 0 1 1.256 5.272l-3.187 9.044a5 5 0 0 1-3.312 3.137l-50.593 14.8a5 5 0 0 1-4.953-1.278L1.45 42.247A5 5 0 0 1 0 38.728Z",fill:"#47BAD1"})),or||(or=e.createElement("path",{opacity:.8,d:"M53.75 46h-1.975l-.7-.675A16.178 16.178 0 0 0 55 34.75c0-8.975-7.275-16.25-16.25-16.25S22.5 25.775 22.5 34.75 29.775 51 38.75 51c4.025 0 7.725-1.475 10.575-3.925l.675.7v1.975l12.288 12.263a.3.3 0 0 0 .424 0l3.301-3.301a.3.3 0 0 0 0-.424L53.75 46Zm-15 0A11.235 11.235 0 0 1 27.5 34.75c0-6.225 5.025-11.25 11.25-11.25S50 28.525 50 34.75 44.975 46 38.75 46Z",fill:"#fff"})))})),sr=function(e){var n=e.ariaLabel,a=e.ariaMultiselectable,c=e.ariaPosInSet,s=e.ariaSetSize,p=e.clearButtonBehaviour,f=void 0===p?"clear":p,v=e.expanded,y=e.filter,x=void 0===y||y,C=e.floatingList,P=e.floatingListPosition,A=void 0===P?{top:10}:P,L=e.icon,E=e.id,S=e.label,F=e.loading,j=e.maxHeight,W=void 0===j?150:j,M=e.noMatchesMessage,B=void 0===M?"No matches were found":M,z=e.onChange,Z=e.onFilter,R=e.optionKeyExtractor,H=e.optionTemplate,J=void 0===H?function(e){var n=e.option;return u(t.Fragment,null,n)}:H,X=e.options,N=e.placeholder,G=e.value,V=void 0===G?"":G,Y=oe(D(),1)[0].colorPalette;Ne("WJEC-One FilterList: You must specify a keyExtractor if the options array contains non-primitive entry types",(function(){return!I(X)&&!O(X)&&!R}),[R,X]);var q=o(),_=o(),U=o(),K=oe(r(V),2),$=K[0],ee=K[1],te=oe(r(0),2),ne=te[0],re=te[1],ae=oe(r(0),2),le=ae[0],ce=ae[1],se=oe(r("below"),2),de=se[0],ue=se[1],pe=oe(r(0),2),fe=pe[0],ge=pe[1],he=oe(r(ie(X)),2),be=he[0],ve=he[1],me=oe(r(),2),ye=me[0],xe=me[1],we=oe(r([]),2),Ce=we[0],ke=we[1],Ie=oe(r(1),2),Oe=Ie[0],Pe=Ie[1],Ae=l((function(){return L&&g(t.createElement(L,{color:Y.fontLight}))}),[L]);i((function(){var e;e=x&&$?X.filter((function(e,t){return je(e,t).toString().toLowerCase().includes($.toLowerCase())})):ie(X),k(e,be)||(h(Z)&&Z(e),ve(e))}),[$,x,X]),i((function(){!ye||X.length||$||Se(),q.current.querySelector('input[type="text"]')===document.activeElement&&Fe()}),[$,X]),i((function(){v!==ye&&(v?Fe():Se())}),[v]),i((function(){V!==$&&ee(V)}),[V]),i((function(){return ye?(document.addEventListener("scroll",Se,!0),window.addEventListener("click",Le),window.addEventListener("resize",Ee)):(document.removeEventListener("scroll",Se,!0),window.removeEventListener("click",Le),window.removeEventListener("resize",Ee)),function(){document.removeEventListener("scroll",Se,!0),window.removeEventListener("click",Le),window.removeEventListener("resize",Ee)}}),[ye]),i((function(){Pe(1),_.current&&_.current.scrollTo({top:0})}),[be]),i((function(){ke((function(e){var t=Oe>1?ie(e):[],n=50*Oe-50,r=n+50;return t.length=50*(Oe-1),[].concat(ie(t),ie(be.slice(n,r).map(Te)))}))}),[be,Oe]);var Le=function(e){var t=e.target;t===q.current||q.current.contains(t)||Se()},Ee=w((function(){return Fe()}),{limit:250}),Se=function(){U.current===document.activeElement&&q.current.querySelector('input[type="text"]').focus(),xe(!1),Pe(1)},Fe=function(){if(X.length>0||!!$){var e=q.current.getBoundingClientRect(),t=e.top+e.height,n=window.innerHeight-t,r="below";if(!C){if(n<W){var o=e.top;(o>W||o>n)&&(r="above")}"below"===r?(re(Math.min(W,window.innerHeight-t-10)),ce(e.top+q.current.querySelector('input[type="text"]').offsetTop)):(re(Math.min(W,e.top-10)),ce(window.innerHeight-t-1))}ue(r),ge(e.width),xe(!0)}},je=function(e,t){return b(e)?e.key:m(e,R,t)},We=function(e){var t="string"==typeof e?e:e.currentTarget.value;h(z)&&z(t),ee(t)},Me=w((function(e){var t=e.target;e.nativeEvent.stopImmediatePropagation(),t.scrollTop+2*t.clientHeight>t.scrollHeight&&50*Oe<be.length&&Pe((function(e){return e+1}))}),{beforeDelay:function(e){e.nativeEvent.stopImmediatePropagation(),e.persist()},limit:250}),Be=T(Cr),ze=function(){return u("input",{ref:U,css:d([Be.listInput,Ae&&[Be.listInputWithIcon,{backgroundImage:Ae}]]),autoFocus:!0,onChange:We,placeholder:N,value:$})},Te=function(e){var t=X.indexOf(e);return u("li",{"aria-posinset":c,"aria-setsize":s,key:je(e,t)},J({option:e,index:t,filteredOptions:ie(be)}))};return u("div",{ref:q,css:Be.container,id:E,onClick:function(e){var t=e.target;ye||t!==q.current.querySelector('input[type="text"]')||t!==document.activeElement||Fe()}},u($n,{"aria-label":n,"aria-multiselectable":a,icon:L,label:S,onChange:We,onFocus:Fe,placeholder:N,value:$}),ye&&u("div",{"aria-expanded":!0,css:d([Be.expandedContainer,"above"===de?[Be.expandedContainerAbove,{bottom:le}]:{top:le},{width:fe},C&&[Be.expandedContainerFloating,Q(Q({},A),{},{maxHeight:"calc(100% - ".concat(2*A.top,"px)")})]])},"below"===de&&ze(),u(ir,{css:d([Be.clearIcon,"above"===de&&Be.clearIconAbove]),onClick:function(){"clear"!==f&&"clearAndClose"!==f||ee(""),"clear"===f&&U.current.focus(),"clearAndClose"!==f&&"close"!==f||Se()}}),u("div",{css:d([Be.listContainer,"above"===de&&Be.listContainerAbove]),onScroll:Me},u("ul",{ref:_,css:d([Be.list,C&&Be.listFloating,!C&&{maxHeight:ne}])},be.length?Ce:u("li",{css:Be.noResults},u(cr,{css:Be.noResultsIcon}),B)),F&&u("div",{css:d([Be.loading,"above"===de&&Be.loadingAbove,!C&&{maxHeight:ne}])},u(Ge,null))),"above"===de&&ze()))},dr={name:"10eevtr",styles:"bottom:0;top:auto;"},ur={name:"oxdg22",styles:"&::before{bottom:30px;top:auto;}"},pr={name:"j7qwjs",styles:"display:flex;flex-direction:column;"},fr={name:"yp8oic",styles:"display:flex;margin:2px 0 1px;min-height:0px;position:relative;"},gr={name:"p49ge0",styles:"margin:1px 0 2px;"},hr={name:"11cgomd",styles:"max-height:initial;"},br={name:"1ireg3o",styles:"background:center left 6px / 20px no-repeat;border:none;font-family:'Montserrat',sans-serif;font-size:14px;line-height:20px;margin-top:-1px;outline:none;padding:5px 35px 5px 10px;width:100%;"},vr={name:"267yq8",styles:"padding-left:35px;"},mr={name:"1fk9trn",styles:"align-items:center;background-color:rgba(255,255,255,0.75);bottom:0;display:flex;height:100%;justify-content:center;left:0;position:absolute;right:0;"},yr={name:"9cuppe",styles:"bottom:auto;top:0;"},xr={name:"m2y6eh",styles:"align-items:center;display:flex;flex-direction:column;justify-content:center;padding:10px 0;"},wr={name:"1bkzip4",styles:"width:91px;"},Cr=function(e){var t=e.colorPalette;return{clearIcon:d("color:",t.fontLight,";cursor:pointer;height:30px;padding:5px;position:absolute;right:0;top:0;&:hover{color:",t.font,";}"),clearIconAbove:dr,container:d(Oe,";display:inline-block;font-family:'Montserrat',sans-serif;font-size:12px;line-height:20px;position:relative;& > label{width:100%;}"),expandedContainer:d("background-color:#fff;border:1px solid ",t.border,";border-radius:",Ie.borderRadius,";box-shadow:",Ie.dropShadow,";position:fixed;z-index:1;&::before{border-bottom:1px solid ",t.border,";content:'';left:8px;position:absolute;right:8px;top:30px;}"),expandedContainerAbove:ur,expandedContainerFloating:pr,list:d(Ie.scrollbar,";list-style:none;margin:0;overflow:auto;padding:8px 10px 9px;width:100%;"),listContainer:fr,listContainerAbove:gr,listFloating:hr,listInput:br,listInputWithIcon:vr,loading:mr,loadingAbove:yr,noResults:xr,noResultsIcon:wr}},kr=function(e){var t=e.ariaDescription,n=e.ariaLabel,r=e.children,o=e.clearButton,i=void 0===o?"Clear":o,a=e.clearId,l=e.id,c=e.onClear,s=e.onSubmit,p=e.otherActions,f=e.submitButton,g=void 0===f?"Submit":f,b=e.submitId,v=e.width,m=mt(t);return u("form",ee({"aria-label":n,css:d({width:v}),id:l,onReset:function(e){e.preventDefault(),h(c)&&c()},onSubmit:function(e){e.preventDefault(),h(s)&&s()}},m),r,u("section",{css:Ir.controls},i&&u(Ke,{buttonType:"reset",id:a,label:i}),u("div",{css:Ir.submit},g&&u(st,{buttonType:"submit",id:b,label:g})),p&&u(vn,{options:p})))},Ir={controls:{name:"7zpthm",styles:"display:flex;justify-content:space-between;margin-top:30px;"},submit:{name:"5prljc",styles:"margin-left:auto;&:not(:last-of-type){margin-right:5px;}"}};function Or(){return Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Or.apply(this,arguments)}var Pr,Ar,Lr=n((function(t,n){return e.createElement("svg",Or({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),lr||(lr=e.createElement("path",{d:"m7.5 13.475-2.892-2.892a.83.83 0 1 0-1.175 1.175l3.484 3.484a.83.83 0 0 0 1.175 0l8.816-8.817a.83.83 0 1 0-1.175-1.175L7.5 13.475Z",fill:"currentColor"})))})),Er=function(e){var t=e.ariaLabel,n=e.checked,r=void 0!==n&&n,i=e.children,c=e.description,s=e.disabled,d=e.gridArea,p=e.highlighted,f=e.id,g=e.label,b=e.labelOverflow,v=void 0===b?"wrap":b,m=e.loading,y=e.onChange,x=e.readonly,w=e.status,C=e.statusMessage;Qe('WJEC One CheckBox: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==d}),[d]),Qe("WJEC One CheckBox: This prop has been deprecated because highlighting an checkbox component with a border color does not fit with the latest WJEC One design. Please use an alternative approach or CSS override",(function(){return void 0!==p}),[p]),Qe('WJEC One Select: The "readonly" prop has been deprecated because the underlying HTML element does not support a "readonly" attribute, and therefore behavior cannot be guaranteed. An alternative such as `<Input readonly value="..." />` can be used',(function(){return void 0!==x}),[x]);var k=R(),I=l((function(){return f||k}),[k,f]),O=oe(D(),1)[0],P=O.brand,A=O.colorPalette,L=T(jr),E=o();a((function(){E.current.checked=r}),[r]);var S=l((function(){switch(w){case"error":return{background:A.errorBackground,border:A.error};case"success":return{background:A.successBackground,border:A.success};case"warning":return{background:A.warningBackground,border:A.warning};default:return{}}}),[P,w]),F=l((function(){return{"--background-color":S.background,"--border-color":S.border,"--margin-right":g&&"8px"}}),[g,S]);return u("div",{css:L.container},u("input",{id:I,type:"checkbox",css:L.checkbox,defaultChecked:r,onChange:function(e){var t=e.target.checked;h(y)&&y(t)},disabled:s,ref:E}),u("label",{"aria-label":t,css:L.label,htmlFor:I,onClick:function(e){return e.stopPropagation()},style:F},m&&u("div",{css:L.loadingIcon},u(Ge,{color:A.primary})),u("span",{css:L.labelContent,"data-overflow":v},g||i)),u(Zn,null,c),u(Kn,{status:w},C))},Sr={name:"7n37re",styles:"display:inline-flex;flex-direction:column;min-width:0;"},Fr={name:"43a46m",styles:'display:inline-block;&[data-overflow="ellipsis"]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}'},jr=function(e){var t=e.colorPalette;return{checkbox:d(Ie.visiblyHidden," &:checked + label::before{background-image:",g(u(Lr,{color:t.primary})),";background-size:cover;}&:checked:disabled + label::before{background-image:",g(u(Lr,{color:t.border})),";}&:disabled + label{color:",t.border,";cursor:not-allowed;&::before{background-color:",t.neutral,";border-color:",t.border,";}}&:focus + label::before{border-color:",t.primary,";}"),container:Sr,label:d("--background-color:#FFFFFF;--border-color:",t.border,";--margin-right:0;--text-overflow:'wrap';",Oe,";align-items:center;color:",t.font,";cursor:pointer;display:inline-flex;font-family:'Montserrat',sans-serif;font-size:14px;font-weight:400;line-height:16px;position:relative;&:active::before,&:focus-within::before{border-color:",t.primary,"}&::before{background-color:var(--background-color);border:1px solid var(--border-color);border-radius:",Ie.borderRadius,";content:'';display:inline-block;flex-shrink:0;height:40px;margin-right:var(--margin-right);width:40px;}"),labelContent:Fr,loadingIcon:d("align-items:center;background-color:var(--background-color);border-radius:",Ie.borderRadius,";display:flex;height:30px;justify-content:center;left:1px;position:absolute;top:1px;width:30px;")}};function Wr(){return Wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wr.apply(this,arguments)}var Mr,Br,zr=n((function(t,n){return e.createElement("svg",Wr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Pr||(Pr=e.createElement("path",{opacity:.4,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Ar||(Ar=e.createElement("path",{d:"M12 6v6l4 2",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}));function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tr.apply(this,arguments)}var Dr,Zr=n((function(t,n){return e.createElement("svg",Tr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Mr||(Mr=e.createElement("path",{opacity:.4,d:"M21 10H3",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Br||(Br=e.createElement("path",{d:"M16 2v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))})),Rr=function(e){var t=e.date,n=e.disabled,o=e.id,a=e.label,c=e.maxDate,s=e.maxTime,p=void 0===s?"":s,f=e.minDate,b=e.minTime,v=void 0===b?"":b,m=e.onChangeDate,y=e.onChangeTime,x=e.placeholder,w=e.readonly,C=e.required,k=e.time,I=e.type,O=void 0===I?"dateTime":I,L=e.validationMessage,E=e.width,S=oe(r(""),2),F=S[0],j=S[1],W=oe(D(),1)[0].colorPalette,M=T(Hr);i((function(){j("dateTime"===O?t?P({date:t,format:"yyyy-MM-ddT".concat(k||"HH:mm")}):"":"date"===O?t?A({date:t,format:"yyyy-MM-dd"}):"":k||"")}),[t,k,O]);var B=l((function(){return g(u("time"===O?zr:Zr,{color:W.neutralLight}))}),[O]),z=l((function(){return"dateTime"===O?"datetime-local":O}),[O]),Z=l((function(){return!(!c||!f)&&("00:00:00"===c.toTimeString().substring(0,8)&&"00:00:00"===f.toTimeString().substring(0,8))}),[c,f]),R=l((function(){if("date"===O||"dateTime"===O){var e=c||("dateTime"===O&&p?new Date:void 0),t="dateTime"===O?"yyyy-MM-ddT".concat(p||(Z?"23:59":"HH:mm")):"yyyy-MM-dd";return e?P({date:e,format:t}):p}return p}),[c,p,O]),H=l((function(){if("date"===O||"dateTime"===O){var e=f||("dateTime"===O&&v?new Date:void 0),t="dateTime"===O?"yyyy-MM-ddT".concat(v||(Z?"00:00":"HH:mm")):"yyyy-MM-dd";return e?P({date:e,format:t}):v}return v}),[f,v,O]);return u("label",{css:d([M.label,E&&{width:E}])},a,u("input",{css:d([M.input,{backgroundImage:B}]),disabled:n,id:o,max:R,min:H,onChange:function(e){var t=e.target,n=t.value,r=t.valueAsNumber,o=new Date(r),i=n.substring(n.indexOf("T")+1);L&&t.setCustomValidity(""),j(n),L&&!t.checkValidity()&&(t.setCustomValidity(L),t.reportValidity()),"date"!==O&&"dateTime"!==O||!h(m)||m(o),"dateTime"!==O&&"time"!==O||!h(y)||y(i)},placeholder:x,readOnly:w,required:C,type:z,value:F}))},Hr=function(e){var t=e.colorPalette;return{input:d("background:#fff center left 8px / 24px no-repeat;border:1px solid ",t.border,";border-radius:",Ie.borderRadius,";font-family:'Montserrat',sans-serif;font-size:16px;height:32px;max-width:100%;outline:none;padding:4px 8px 4px 36px;position:relative;transition:border-color 0.05s linear,padding 0.05s linear;width:100%;&:disabled{background-color:",t.neutral,";color:",t.fontLight,";cursor:not-allowed;}&:focus{border-color:",t.primary,";}&:invalid{border-color:",t.error,";}&:read-only{background-color:transparent;background-image:none;border-color:transparent;overflow:hidden;padding-left:0;padding-right:0;pointer-events:none;text-overflow:ellipsis;white-space:nowrap;}&::placeholder{color:",t.fontLight,";}&::-webkit-calendar-picker-indicator{bottom:10px;cursor:pointer;opacity:0;position:absolute;right:10px;top:5px;width:10px;}"),label:d(Oe,";",Ae,";display:inline-flex;flex-direction:column;width:100%;")}},Jr=function(e){var t=e.ariaLabel,n=e.breadcrumb,r=e.children,o=e.href,i=e.id,a=T(Xr);return u("a",{"aria-label":t,href:o,css:d([a.link,n&&a.withBreadcrumb]),id:i},r||o)},Xr=function(e){var t=e.colorPalette;return{link:d("color:",t.primaryDark,";font-family:'Montserrat',sans-serif;font-size:14px;font-weight:500;line-height:20px;"),withBreadcrumb:d("color:",t.fontLight,";margin-right:40px;text-decoration:none;position:relative;&:not(:last-of-type)::after{background-image:",g(u(we,{color:t.fontLight})),";background-repeat:no-repeat;background-size:contain;bottom:5px;content:'';height:20px;margin-bottom:-6px;margin-left:10px;position:absolute;right:-30px;width:20px;}&:hover{border-bottom:1px solid ",t.fontLight,";}")}},Nr=["gridArea","id","label","readonly","value"],Gr=function(e){var t=e.gridArea,n=e.id,r=e.label,o=e.readonly,i=e.value,a=ne(e,Nr);Qe('WJEC One Email: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==t}),[t]);var l=T(Yr);return o?u("label",{css:d([l.label,t&&{gridArea:t}]),id:n},u("span",{css:l.labelText},r),u(Jr,{href:"mailto:".concat(i)},i)):u($n,ee({gridArea:t,label:r,value:i},a))},Vr={name:"r7q7qr",styles:"margin-bottom:5px;"},Yr=function(e){var t=e.colorPalette;return{label:d(Oe,";color:",t.font,";display:inline-flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:12px;line-height:20px;"),labelText:Vr}};function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qr.apply(this,arguments)}var _r,Ur=n((function(t,n){return e.createElement("svg",qr({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Dr||(Dr=e.createElement("path",{d:"M16.125 8.367A6.242 6.242 0 0 0 10 3.333 6.246 6.246 0 0 0 4.458 6.7 4.995 4.995 0 0 0 0 11.667c0 2.758 2.242 5 5 5h10.833c2.3 0 4.167-1.867 4.167-4.167 0-2.2-1.708-3.983-3.875-4.133ZM15.833 15H5a3.332 3.332 0 0 1-3.333-3.333 3.311 3.311 0 0 1 2.966-3.309l.892-.091.417-.792A4.557 4.557 0 0 1 10 5a4.586 4.586 0 0 1 4.492 3.692l.25 1.25 1.275.091a2.483 2.483 0 0 1 2.316 2.467c0 1.375-1.125 2.5-2.5 2.5Zm-9.166-4.167h2.125v2.5h2.416v-2.5h2.125L10 7.5l-3.333 3.333Z",fill:"currentColor"})))})),Qr=[" bytes","kB","MB","GB","TB"],Kr=function(e){var n=e.ariaLabel,o=e.files,a=void 0===o?[]:o,l=e.height,c=e.id,s=e.max,p=e.multiple,f=e.onError,g=e.onSelect,b=e.placeholderDescription,v=void 0===b?"Drag ".concat(p?"files":"a file"," here or click to select"):b,m=e.placeholderTitle,y=e.validExtensions,x=e.validTypes,w=e.width,C=void 0===w?"100%":w,k=oe(D(),1)[0].colorPalette,I=oe(r(a),2),O=I[0],P=I[1],A=oe(r(!1),2),E=A[0],S=A[1],F=oe(r(!0),2),j=F[0],W=F[1];i((function(){P(a)}),[a&&a.length]),i((function(){O!==a&&h(g)&&g(O)}),[O]);var M=function(e){return p?void 0===s||e<=s:e<=1},B=function(e){var t=[].concat(ie(p?O:[]),ie(e)),n=t.length,r=[],o=[],i=[];M(n)?(t.forEach((function(e){var t=!i.some((function(t){return r=e,(n=t).name===r.name&&n.type===r.type&&n.size===r.size&&n.lastModified===r.lastModified;var n,r})),n=function(e){var t=e.name,n=t.substr(t.lastIndexOf("."));return void 0===y||y.includes(n)}(e),a=function(e){var t=e.type;return void 0===x||x.includes(t)}(e);t&&n&&a&&i.push(e),n||r.push(e),a||o.push(e)})),P(i)):h(f)&&f([{code:"MAX_FILES_EXCEEDED",details:{maxCount:s||1,selectedCount:n}}]),(r.length||o.length)&&h(f)&&f([r.length&&{code:"INVALID_FILE_EXTENSION",details:{files:r}},o.length&&{code:"INVALID_FILE_TYPE",details:{files:o}}].filter((function(e){return e})))},z=function(e){return function(t){L(t.nativeEvent),P((function(t){return t.filter((function(t){return t!==e}))}))}},Z=T(to);return u("label",{"aria-label":n,css:d([Z.container,l&&{height:l},E&&{borderColor:j?k.primary:k.error},C&&{width:C}]),id:c,onDragEnter:function(e){var t=e.dataTransfer.items.length;L(e.nativeEvent),S(!0),W(M(t+O.length))},onDragLeave:function(e){L(e.nativeEvent),S(!1)},onDragOver:function(e){L(e.nativeEvent)},onDrop:function(e){var t=Array.from(e.dataTransfer.files);L(e),B(t),S(!1)}},u("input",{type:"file",value:"",multiple:p,css:Ie.visiblyHidden,onChange:function(e){var t=Array.from(e.currentTarget.files);B(t)}}),u(Ur,{css:Z.uploadIcon}),O.length?u("ul",{css:Z.fileList},O.map((function(e){var t=e.lastModified,n=e.name,r=e.size,o=Math.floor(Math.log(r)/Math.log(1024)),i=(r/Math.pow(1024,o)).toFixed(2),a=r>0?"".concat(i).concat(Qr[o]):"0 bytes";return u("li",{key:"".concat(n,"_").concat(t),css:Z.fileListItem},u("h4",{css:Z.title},n),u("span",{css:Z.fileSize},a),u(ir,{css:Z.removeIcon,onClick:z(e)}))}))):u(t.Fragment,null,m&&u("h4",{css:Z.title},m),v&&u("p",{css:Z.description},v)))},$r={name:"1k4v6ft",styles:"display:inline-flex;flex-direction:column;list-style:none;margin:0;padding:0;width:min-content;"},eo={name:"p98ib",styles:"display:inline-flex;flex-direction:column;justify-content:center;padding-right:30px;position:relative;&:not(:last-of-type){margin-bottom:10px;}"},to=function(e){var t=e.colorPalette;return{container:d(Oe,";border:1px dashed ",t.border,";border-radius:",Ie.borderRadius,";cursor:pointer;display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:14px;justify-content:center;line-height:20px;min-height:60px;padding:10px 10px 10px 40px;position:relative;transition:border-color 0.1s linear;& > *{pointer-events:none;}&:hover{border-color:",t.fontLight,";}"),description:d("color:",t.fontLight,";margin:0;"),documentIcon:d("color:",t.fontLight,";width:20px;"),fileList:$r,fileListItem:eo,fileSize:d("color:",t.fontLight,";font-size:12px;"),removeIcon:d("color:",t.fontLight,";height:18px;pointer-events:all;position:absolute;right:0;top:1px;transition:color 0.1s linear;&:hover{color:",t.error,";}"),title:d("color:",t.font,";font-weight:normal;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"),uploadIcon:d("color:",t.fontLight,";height:20px;left:10px;position:absolute;top:50%;transform:translateY(-50%);")}};function no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},no.apply(this,arguments)}var ro,oo,io=n((function(t,n){return e.createElement("svg",no({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),_r||(_r=e.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}));function ao(){return ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ao.apply(this,arguments)}var lo,co,so,uo=n((function(t,n){return e.createElement("svg",ao({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),ro||(ro=e.createElement("path",{opacity:.12,d:"M9 12a3 3 0 0 0 5.121 2.121L9.88 9.88A2.99 2.99 0 0 0 9 12Z",fill:"currentColor"})),oo||(oo=e.createElement("path",{d:"M10.742 5.092C11.15 5.032 11.569 5 12 5c5.105 0 8.455 4.505 9.58 6.287.137.215.205.323.243.49.028.125.028.322 0 .447-.038.166-.107.274-.244.492-.3.474-.757 1.141-1.363 1.865M6.724 6.715c-2.162 1.467-3.63 3.504-4.303 4.57-.137.217-.206.325-.244.492a1.173 1.173 0 0 0 0 .446c.038.167.107.274.243.49C3.545 14.495 6.895 19 12 19c2.058 0 3.832-.732 5.288-1.723M3 3l18 18M9.879 9.879a3 3 0 1 0 4.243 4.243",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}));function po(){return po=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},po.apply(this,arguments)}var fo,go=n((function(t,n){return e.createElement("svg",po({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),lo||(lo=e.createElement("path",{opacity:.12,d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",fill:"currentColor"})),co||(co=e.createElement("path",{d:"M2.42 12.713c-.136-.215-.205-.323-.243-.49a1.173 1.173 0 0 1 0-.446c.038-.167.107-.274.243-.49C3.545 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.028.125.028.322 0 .446-.038.167-.107.274-.243.49C20.455 14.495 17.105 19 12 19s-8.455-4.505-9.58-6.287Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),so||(so=e.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))})),ho=function(e){var t=e.gridArea,n=e.highlightColor,r=e.highlighted,i=e.show,c=e.ariaLabel,s=e.autoComplete,d=void 0===s?"current-password":s,p=e.description,f=e.disabled,g=e.id,b=e.label,v=e.name,m=e.onChange,y=e.onToggleRevealPassword,x=e.placeholder,w=e.revealPassword,C=void 0===w?void 0!==i&&i:w,k=e.showIcon,I=void 0===k||k,O=e.status,P=e.statusMessage,A=e.value,L=void 0===A?"":A;!function(e){var t=e.gridArea,n=e.highlighted,r=e.highlightColor,o=e.show;Qe('WJEC One Password: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==t}),[t]),Qe('WJEC One Password: The "highlighted" prop has been deprecated because highlighting an input component with a border color does not fit with the latest WJEC One design. Please use an alternative approach or CSS override',(function(){return void 0!==n}),[n]),Qe('WJEC One Password: The "highlightColor" prop has been deprecated due to its association with the deprecated `highlighted` prop',(function(){return void 0!==r}),[r]),Qe('WJEC One Password: The "show" prop has been replaced with the new "revealPassword" prop, which has identical functionality but more clearly represents its intent',(function(){return void 0!==o}),[o])}({gridArea:t,highlightColor:n,highlighted:r,show:i});var E=o(),S=o(),F=oe(D(),1)[0],j=F.brand,W=F.colorPalette,M=R(),B=l((function(){return g||M}),[M,g]);a((function(){S.current.setAttribute("aria-pressed",C.toString()),E.current.setAttribute("type",C?"text":"password")}),[C]),a((function(){E.current.value=L}),[L]),a((function(){S.current.style.setProperty("--offset-top","".concat(E.current.offsetTop,"px"))}));var z=l((function(){switch(O){case"error":return{background:W.errorBackground,border:W.error};case"success":return{background:W.successBackground,border:W.success};case"warning":return{background:W.warningBackground,border:W.warning};default:return{}}}),[j,O]),H=T(vo),J=l((function(){return{"--background-color":z.background,"--border-color":z.border,"--icon":!I&&"none","--margin-top":b&&"4px","--padding-left":!I&&"8px"}}),[b,I,z]),X=Z({"aria-label":c,"aria-pressed":C,isDisabled:f,onPress:function(){var e="true"!==S.current.getAttribute("aria-pressed");S.current.setAttribute("aria-pressed",e.toString()),E.current.setAttribute("type",e?"text":"password"),h(y)&&y(e)},type:"button"},S).buttonProps;return u("label",{"aria-label":c,css:H.label,htmlFor:B,"data-disabled":f},b,u("input",{ref:E,autoComplete:d,css:H.input,defaultValue:L,disabled:f,id:B,name:v,onChange:function(e){var t=e.target.value;h(m)&&m(t)},placeholder:x,style:J,type:C?"text":"password"}),u("button",ee({},X,{css:H.revealPassword,name:"Reveal password",ref:S})),u(Zn,null,p),u(Kn,{status:O},P))},bo={name:"1ynvfur",styles:"font-size:12px;margin-top:4px;"},vo=function(e){var t=e.colorPalette;return{description:bo,input:d("--background-color:#FFFFFF;--border-color:",t.border,";--icon:",g(u(io,{color:t.neutralLight})),";--margin-top:0;--padding-left:40px;",Pe,";background:var(--background-color) var(--icon) center left 8px / 24px no-repeat;border:1px solid var(--border-color);border-radius:",Ie.borderRadius,";font-family:inherit;font-size:16px;height:40px;line-height:24px;margin-top:var(--margin-top);max-width:100%;outline:none;padding:4px 40px 4px var(--padding-left);width:100%;&:disabled{--icon:",g(u(io,{color:t.border})),";background-color:",t.neutral,";border-color:",t.border,";color:",t.border,";cursor:not-allowed;+ button{background-image:",g(u(uo,{color:t.border})),';&[aria-pressed="true"]{background-image:',g(u(go,{color:t.border})),";}}}&:focus{border-color:",t.primary,";}&::placeholder{color:",t.neutralLight,";}"),label:d(Oe,";",Ae,';display:inline-flex;flex-direction:column;position:relative;&[data-disabled="true"]{color:',t.border,";}"),revealPassword:d("--offset-top:0;background:transparent ",g(u(uo,{color:t.neutralLight}))," center / 24px no-repeat;border:none;color:",t.neutralLight,";cursor:pointer;position:absolute;height:40px;padding:4px 8px;right:0;top:var(--offset-top);width:40px;&:disabled{pointer-events:none;}&:focus{outline-color:",t.primary,';outline-width:1px;}&[aria-pressed="true"]{background-image:',g(u(go,{color:t.primary})),";color:",t.primary,";}")}},mo=function(e){var n=e.ariaLabel,r=e.description,i=e.disabled,c=e.gridArea,s=e.keyExtractor,d=e.highlightedOption,p=e.id,f=e.label,g=e.labelExtractor,y=e.name,x=e.onSelect,w=e.options,C=e.orientation,k=void 0===C?"horizontal":C,P=e.selectedOption,A=e.status,L=e.statusMessage;Qe('WJEC One RadioGroup: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==c}),[c]),Ne("WJEC-One RadioGroup: You must specify a keyExtractor if the options array contains non-primitive entry type",(function(){return!I(w)&&!O(w)&&!s}),[s]),Qe("WJEC One CheckBox: This prop has been deprecated because highlighting options within a RadioGroup component with a border color does not fit with the latest WJEC One design. Please use an alternative approach or CSS override",(function(){return void 0!==d}),[d]);var E=R(p),S=o();a((function(){if(P){var e=S.current.querySelectorAll('input[type="radio"]'),t=w.indexOf(P),n=B(P,t),r=Array.from(e).find((function(e){return e.value===n}));r&&(r.checked=!0)}}),[w,P]);var F=oe(D(),1)[0],j=F.brand,W=F.colorPalette,M=l((function(){switch(A){case"error":return{background:W.errorBackground,border:W.error};case"success":return{background:W.successBackground,border:W.success};case"warning":return{background:W.warningBackground,border:W.warning};default:return{}}}),[j,A]),B=function(e,t){return b(e)?e.key:m(e,s,t)},z=function(e){return function(){h(x)&&x(e)}},Z=T(xo),H=l((function(){return{"--background-color":M.background,"--border-color":M.border,"--flex-direction":"vertical"===k&&"column","--flex-gap":"vertical"===k&&"16px 8px","--margin-top":f&&"4px"}}),[f,k,M]);return u("label",{css:Z.label,id:E,"data-disabled":i||void 0},f,u("fieldset",{css:Z.container,ref:S,style:H},w.map((function(e,r){var o=B(e,r),a=r===w.indexOf(P);return u(t.Fragment,{key:o},u("input",{css:Z.radioButton,defaultChecked:a,disabled:i,id:"".concat(E,"_").concat(r),name:y||E,onChange:z(e),type:"radio",value:o}),u("label",{"aria-label":n,css:Z.radioButtonContainer,htmlFor:"".concat(E,"_").concat(r)},b(e)?e.label:v(e,g,r)))}))),u(Zn,null,r),u(Kn,{status:A},L))},yo={name:"14uy2ws",styles:"align-items:center;cursor:pointer;display:flex;&::before{background-clip:content-box;border:1px solid var(--border-color);border-radius:50%;box-shadow:0 0 0 var(--shadow-size) var(--shadow-color) inset;content:'';display:inline-block;height:40px;margin-right:8px;padding:8px;width:40px;}"},xo=function(e){var t=e.colorPalette;return{container:d("--background-color:#FFFFFF;--border-color:",t.border,";--flex-direction:row;--flex-gap:8px 16px;--margin-top:0;--shadow-color:var(--background-color);--shadow-size:16px;",Oe,";align-items:flex-start;border:none;display:flex;flex-direction:var(--flex-direction);flex-wrap:wrap;gap:var(--flex-gap);margin:var(--margin-top) 0 0;padding:0;"),label:d(Ae,';&[data-disabled="true"]{color:',t.border,";}"),radioButton:d(Ie.visiblyHidden," position:absolute;&:checked + label::before{--shadow-size:8px;background-color:",t.primary,";padding:6px;}&:disabled + label{--border-color:",t.border,";--shadow-color:",t.neutral,";color:",t.border,";cursor:not-allowed;&::before{background-color:",t.border,";}}&:focus + label::before{--border-color:",t.primary,";}"),radioButtonContainer:yo}};function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wo.apply(this,arguments)}var Co,ko,Io,Oo,Po,Ao=n((function(t,n){return e.createElement("svg",wo({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),fo||(fo=e.createElement("path",{d:"m6 9 6 6 6-6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))})),Lo={name:"1ynvfur",styles:"font-size:12px;margin-top:4px;"},Eo={name:"801txx",styles:"font-size:12px;font-weight:600;margin-top:4px;padding-left:24px;position:relative;"},So={name:"ezpkst",styles:"left:0;position:absolute;top:50%;transform:translateY(-50%);width:16px;"},Fo=function(e){var t=e.colorPalette;return{description:Lo,label:d(Oe,";",Ae,';display:flex;flex-direction:column;position:relative;&[data-disabled="true"]{color:',t.border,";}"),select:d("--background-color:#FFFFFF;--border-color:",t.border,";--margin-top:0;appearance:none;background:var(--background-color) ",g(u(Ao,{color:t.neutralLight}))," calc(100% - 8px) center / 24px no-repeat;border:1px solid var(--border-color);border-radius:",Ie.borderRadius,";color:",t.neutralDark,";font-family:'Montserrat',sans-serif;font-size:16px;height:40px;line-height:24px;margin-top:var(--margin-top);outline:none;padding:4px 40px 4px 8px;width:100%;&:disabled{background-color:",t.neutral,";background-image:",g(u(Ao,{color:t.border})),";border-color:",t.border,";color:",t.border,";cursor:not-allowed;}&:focus{border-color:",t.primary,";}&::placeholder{color:",t.neutralLight,";}"),status:Eo,statusError:d("color:",t.error,";"),statusIcon:So,statusSuccess:d("color:",t.success,";"),statusWarning:d("color:",t.warning,";")}},jo=function(e,t,n){var r;return b(e)?e.key:null===(r=m(e,t,function(e,t){return t.findIndex((function(t){return t===e||Wo(t)&&t.options.includes(e)}))}(e,n)))||void 0===r?void 0:r.toString()},Wo=function(e){return E(e)&&Object.hasOwn(e,"options")&&Object.hasOwn(e,"label")&&"string"==typeof e.label},Mo=function(e){var t=e.gridArea,n=e.highlightColor,r=e.highlighted,i=e.optionComparator,c=e.readonly,s=e.sortOptions,d=e.blankOption,p=e.description,f=e.disabled,g=e.id,m=e.label,y=e.name,x=e.onSelect,w=e.optionKeyExtractor,C=e.optionLabelExtractor,k=e.options,P=e.placeholder,A=e.selectedOption,L=e.status,E=e.statusMessage;!function(e){var t=e.gridArea,n=e.highlightColor,r=e.highlighted,o=e.optionComparator,i=e.readonly,a=e.sortOptions;Qe('WJEC One Select: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==t}),[t]),Qe('WJEC One Select: The "highlighted" prop has been deprecated because highlighting an input component with a border color does not fit with the latest WJEC One design. Please use an alternative approach or CSS override',(function(){return void 0!==r}),[r]),Qe('WJEC One Select: The "highlightColor" prop has been deprecated due to its association with the deprecated `highlighted` prop',(function(){return void 0!==n}),[n]),Qe('WJEC One Select: The "optionComparator" prop has been deprecated because the component no longer provides sorting functionality. Sorting should be performed in the parent component, and the sorted list provided via the "options" prop',(function(){return void 0!==o}),[o]),Qe('WJEC One Select: The "readonly" prop has been deprecated because the underlying HTML element does not support a "readonly" attribute, and therefore behavior cannot be guaranteed. An alternative such as `<Input readonly value="..." />` can be used',(function(){return void 0!==i}),[i]),Qe('WJEC One Select: The "sortOptions" prop has been deprecated because the component no longer provides sorting functionality. Sorting should be performed in the parent component, and the sorted list provided via the "options" prop',(function(){return void 0!==a}),[a])}({gridArea:t,highlightColor:n,highlighted:r,optionComparator:i,readonly:c,sortOptions:s}),Qe("WJEC One Select: You have provided a list of options that contains duplicate primitive values. This is not recommended and may lead to unexpected behavior, but if you really want to do this then you need to supply a keyExtractor so that it is possible to differentiate between the duplicate options (doing so will also suppress this warning)",(function(){var e=new Set;return k.some((function(t){return!!(Wo(t)&&I(t.options)&&S(t.options))||(!!e.has(t)||(e.add(t),!1))}))&&!w}),[w,k]),Ne("WJEC One Select: You must specify a keyExtractor if the options array contains non-primitive entry types",(function(){return k.some((function(e){if(Wo(e)){var t=e.options,n=I(t),r=O(t);return!(n||r||w)}return!(F(e)||b(e)||w)}))}),[w,k]);var j=oe(D(),1)[0],W=j.brand,M=j.colorPalette,B=o(),z=R(),Z=l((function(){return g||z}),[z,g]),H=l((function(){return A?jo(A,w,k):""}),[w,k,A]);a((function(){B.current.value=H}),[H]);var J=l((function(){switch(L){case"error":return{background:M.errorBackground,border:M.error};case"success":return{background:M.successBackground,border:M.success};case"warning":return{background:M.warningBackground,border:M.warning};default:return{}}}),[W,L]),X=function(e,t){var n=jo(e,w,k);return u("option",{key:n,value:n},b(e)?e.label:v(e,C,t))},N=T(Fo),G=l((function(){return{"--background-color":J.background,"--border-color":J.border,"--margin-top":m&&"4px"}}),[m,J]);return u("label",{css:N.label,htmlFor:Z,"data-disabled":f},m,u("select",{ref:B,css:N.select,defaultValue:H,disabled:f,id:Z,name:y,onChange:function(e){var t=function(e,t,n){var r;return n.find((function(o){if(Wo(o))r=o.options.find((function(r){return jo(r,t,n)===e}));else{var i=jo(o,t,n);r=i===e?o:void 0}return void 0!==r})),r}(e.target.value,w,k);h(x)&&x(t)},style:G},P&&u("option",{disabled:!0,hidden:!0,value:""},P),d&&u("option",{value:""}),k.map((function(e,t){return Wo(e)?u("optgroup",{key:e.label,label:e.label},e.options.map((function(e){return X(e,t)}))):X(e,t)}))),u(Zn,null,p),u(Kn,{status:L},E))},Bo=function(e){var t=e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase();return t.startsWith("data-")||(t="data-".concat(t)),t},zo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeIfFalse,r=t.excludeIfFalsy,o=t.excludeIfNull,i=void 0===o||o,a=t.excludeIfUndefined,c=void 0===a||a,s=l((function(){return Object.entries(e).reduce((function(e,t){var o=oe(t,2),a=o[0],l=o[1];return n&&!1===l||r&&!l||i&&null===l||c&&void 0===l?e:Q(Q({},e),{},$({},Bo(a),String(l)))}),{})}),[e]);return s},To=function(e){var t=e.ariaDescription,n=e.ariaLabel,o=e.disabled,a=e.gridArea,l=e.height,c=void 0===l?"auto":l,s=e.id,p=e.label,f=e.maxCharacters,g=e.maxHeight,b=void 0===g?"100%":g,v=e.maxWidth,m=void 0===v?"100%":v,y=e.onChange,x=e.placeholder,w=e.readonly,C=e.resizable,k=void 0!==C&&C,I=e.showCount,O=void 0===I||I,P=e.value,A=void 0===P?"":P,L=e.width,E=void 0===L?"100%":L;Qe('WJEC One TextArea: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==a}),[a]);var S=oe(r(A),2),F=S[0],j=S[1],W=mt(t);i((function(){A!==F&&j(A)}),[A]);var M=T(Do),B=zo({"data-current-value-length":null==F?void 0:F.length},{excludeIfFalse:!0});return u("label",ee({"aria-label":n},B,{css:d([M.label,a&&{gridArea:a},O&&d("&::after{content:attr(data-current-value-length) '",void 0!==f&&"/".concat(f),"';}"),{maxWidth:m,width:E}]),"data-max-count":f}),p,u("textarea",ee({id:s,css:d([Ie.scrollbar,M.textarea,{height:c,maxHeight:b,resize:k?"both":"none"}]),value:F,placeholder:x,onChange:function(e){var t=e.target.value;j(t),h(y)&&y(t)},readOnly:w,disabled:o,maxLength:f},w?{tabIndex:-1}:{},W)))},Do=function(e){var t=e.colorPalette;return{label:d(Oe,";display:inline-flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:11px;line-height:20px;&::after{color:",t.fontLight,";display:inline-block;font-size:12px;font-family:'Montserrat',sans-serif;margin:5px 5px 0 0;text-align:right;}"),textarea:d("border:1px solid ",t.border,";border-radius:",Ie.borderRadius,";color:",t.font,";font-family:'Montserrat',sans-serif;font-size:14px;font-weight:400;line-height:20px;outline:none;padding:10px;text-overflow:ellipsis;white-space:nowrap;&:disabled{background-color:",t.neutral,";cursor:not-allowed;}&:focus{border-color:",t.primary,";}&:not(:read-only){transition:border-color 0.05s linear;}")}},Zo=function(e){var t=e.gridArea,n=e.offLabel,r=e.onLabel,i=e.ariaLabel,c=e.disabled,s=e.id,d=e.label,p=e.on,f=void 0!==p&&p,g=e.onChange,b=e.value,v=void 0===b?r:b;Qe('WJEC One Toggle: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==t}),[t]),Qe('WJEC One Toggle: The "offLabel" prop has been deprecated because the latest v4 design has no off label',(function(){return void 0!==n}),[n]),Qe('WJEC One Toggle: The "onLabel" prop has been deprecated because the latest v4 design has solely an on label, therefore this has been replaced with label',(function(){return void 0!==r}),[r]);var m=o(),y=R(s);a((function(){m.current.setAttribute("aria-pressed",f.toString())}),[f]);var x=T(Ro),w=l((function(){return{"--margin-top":d&&"4px","--toggle-margin-right":v&&"8px"}}),[d,v]),C=Z({"aria-label":i,"aria-pressed":f,id:y,isDisabled:c,onPress:function(){var e="true"===m.current.getAttribute("aria-pressed");m.current.setAttribute("aria-pressed",(!e).toString()),h(g)&&g(!e)}},m).buttonProps;return u("label",{css:x.label,htmlFor:y,"data-disabled":c||void 0},d,u("button",ee({},C,{css:x.toggleButton,ref:m,style:w}),v))},Ro=function(e){var t=e.colorPalette;return{label:d(Oe,";",Ae,';cursor:pointer;display:inline-block;&[data-disabled="true"]{color:',t.border,";cursor:not-allowed;}"),toggleButton:d("--margin-top:0;--toggle-margin-right:0;align-items:center;background-color:transparent;border:0;border-radius:12px;color:",t.neutralDark,";cursor:inherit;display:flex;font-family:'Montserrat',sans-serif;font-size:16px;font-weight:400;line-height:24px;margin-top:var(--margin-top);outline-color:",t.primary,";outline-offset:3px;padding:0;position:relative;&:disabled{color:",t.border,";&::after{background-color:",t.border,";}}&:after{background-color:",t.neutralLight,";border-radius:12px;content:'';display:block;height:",18,"px;left:0;margin:",3,"px;position:absolute;top:calc(50% - ",12,"px);transition:color 0.1s linear,transform 0.1s linear;width:",18,"px;}&:before{background-color:#FFFFFF;border:1px solid ",t.border,";border-radius:",12,"px;content:'';display:block;flex-shrink:0;height:",24,"px;margin-right:var(--toggle-margin-right);position:relative;width:",48,'px;}&[aria-pressed="true"]{&::after{background-color:',t.primary,";transform:translateX(",24,"px);}&::before{border-color:",t.primary,";}}")}},Ho=function(e){var t=e.ariaDescription,n=e.borderColor,r=e.children,i=e.icon,a=void 0===i?Sn:i,c=e.iconColor,s=e.id,d=e.title,p=e.titleColor,f=oe(D(),1)[0],g=f.brand,h=f.colorPalette,b=o(),v=mt(t),m=T(Go),y=l((function(){return n||h.secondary}),[g,n]),x=l((function(){return c||h.secondaryDark}),[g,c]),w=l((function(){return p||h.secondaryDark}),[g,p]);return ut("--border-color",y,b),ut("--icon-color",x,b),ut("--title-color",w,b),u("div",ee({css:m.infoCardMain,id:s,ref:b},v),u(a,{css:m.icon}),u("div",null,u("h3",{css:m.title},d),u("p",{css:m.message},r)))},Jo={name:"1i9s3a8",styles:"color:var(--icon-color);flex-shrink:0;height:24px;width:24px;"},Xo={name:"1uk1gs8",styles:"margin:0;"},No={name:"172fn9d",styles:"color:var(--title-color);font-weight:600;margin:0 0 4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},Go=function(e){var t=e.colorPalette;return{icon:Jo,infoCardMain:d("--border-color:",t.secondary,";--icon-color:",t.secondaryDark,";--title-color:",t.secondaryDark,";background-color:#ffffff;border:1px solid var(--border-color);border-radius:",Ie.borderRadius,";box-shadow:",Ie.dropShadow,";display:flex;font-family:'Montserrat',sans-serif;font-size:16px;gap:16px;line-height:24px;padding:16px;"),message:Xo,title:No}},Vo=function(e){var t=oe(D(),1)[0].colorPalette;return u(Ho,ee({},e,{borderColor:t.error,icon:Tn,iconColor:t.error,titleColor:t.errorDark}))},Yo=function(e){var t=oe(D(),1)[0].colorPalette;return u(Ho,ee({},e,{borderColor:t.success,icon:Mn,iconColor:t.success,titleColor:t.successDark}))},qo=function(e){var t=oe(D(),1)[0].colorPalette;return u(Ho,ee({},e,{borderColor:t.warning,icon:Tn,iconColor:t.warning,titleColor:t.warningDark}))};function _o(){return _o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_o.apply(this,arguments)}var Uo,Qo,Ko,$o,ei,ti=n((function(t,n){return e.createElement("svg",_o({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Co||(Co=e.createElement("path",{d:"M27.565 14.13c-.134-10.058-10.33-8.59-11.991-8.283a.203.203 0 0 0-.156.262l2.16 6.588c.1.303.417.479.726.4 5.147-1.298 8.369.613 9.102 1.118a.101.101 0 0 0 .16-.085",fill:"#BDBCBC"})),ko||(ko=e.createElement("path",{d:"M27.858 14.13C27.992 4.072 38.19 5.54 39.85 5.848c.121.022.194.145.123.363l-2.22 6.77c-.033.102-.248.218-.456.163-5.25-1.388-8.537.562-9.279 1.072a.101.101 0 0 1-.159-.085",fill:"#E65000"})),Io||(Io=e.createElement("path",{d:"M28.851 8.37c2.36-6.255 9.127-6.033 10.522-5.918.13.01.216.14.175.265l-.692 2.11a.101.101 0 0 1-.107.069c-6.007-.667-8.716 2.088-9.72 3.566-.067.1-.22.02-.178-.092",fill:"#69B3E6"})),Oo||(Oo=e.createElement("path",{d:"m38.78.266-.415 1.267a.102.102 0 0 1-.096.07c-4.79.048-7.351 2.563-8.428 4.005-.074.099-.227.005-.172-.105.923-1.859 3.414-5.44 8.915-5.503a.203.203 0 0 1 .196.266Z",fill:"#FABD34"})),Po||(Po=e.createElement("path",{d:"M4.325 40C1.485 40 0 37.687 0 35.4c0-2.27 1.486-4.57 4.325-4.57 2.15 0 3.383 1.331 3.435 1.388a.716.716 0 0 1-1.057.966c-.042-.045-.888-.922-2.378-.922-1.988 0-2.893 1.627-2.893 3.139 0 1.526.905 3.167 2.893 3.167 1.494 0 2.36-.93 2.369-.94a.716.716 0 0 1 1.071.95C7.714 38.636 6.48 40 4.325 40ZM32.96 40c-2.84 0-4.325-2.313-4.325-4.6 0-2.27 1.485-4.57 4.324-4.57 2.15 0 3.384 1.331 3.435 1.388a.716.716 0 0 1-1.056.966c-.042-.045-.888-.922-2.379-.922-1.988 0-2.893 1.627-2.893 3.139 0 1.526.905 3.167 2.893 3.167 1.495 0 2.361-.93 2.37-.94a.716.716 0 0 1 1.07.95c-.05.058-1.284 1.422-3.44 1.422ZM14.142 28.887a.715.715 0 0 1-.409-1.304c1.24-.86 1.345-2.47 1.332-3.122v-7.402a.716.716 0 0 1 1.432 0v7.354c.016.904-.14 3.093-1.948 4.346a.71.71 0 0 1-.407.128ZM33.002 25.513c-2.839 0-4.325-2.313-4.325-4.599 0-2.271 1.486-4.571 4.325-4.571 2.15 0 3.384 1.331 3.435 1.388a.716.716 0 0 1-1.056.966c-.043-.046-.89-.922-2.379-.922-1.987 0-2.893 1.627-2.893 3.14 0 1.525.906 3.167 2.893 3.167 1.492 0 2.338-.906 2.373-.945a.718.718 0 0 1 1.01-.05c.291.263.319.71.058 1.004-.052.058-1.286 1.422-3.44 1.422M11.539 16.34a.716.716 0 0 0-.716.716v5.207c0 1.007-.82 1.826-1.826 1.826h-.053a1.828 1.828 0 0 1-1.826-1.826v-5.207a.716.716 0 1 0-1.432 0v5.207c0 1.007-.819 1.826-1.825 1.826h-.054a1.828 1.828 0 0 1-1.825-1.826v-5.207a.716.716 0 0 0-1.432 0v5.207a3.261 3.261 0 0 0 3.257 3.257h.054c1.027 0 1.944-.48 2.541-1.225a3.251 3.251 0 0 0 2.542 1.225h.053a3.261 3.261 0 0 0 3.258-3.257v-5.207a.716.716 0 0 0-.716-.716ZM13.314 30.822c-.891 0-1.605.262-2.154.663v-3.314a.715.715 0 1 0-1.43 0v9.72a.71.71 0 0 0 .082.33c.038.072.95 1.76 3.502 1.76 1.32 0 2.44-.508 3.238-1.466.696-.835 1.08-1.946 1.08-3.126 0-1.064-.35-2.14-.957-2.953-.55-.736-1.581-1.614-3.361-1.614Zm0 7.729c-.905 0-1.49-.301-1.817-.551a.866.866 0 0 1-.337-.693v-3.038c0-.659.526-2.017 2.154-2.017 2.284 0 2.888 2.052 2.888 3.137 0 1.523-.904 3.162-2.888 3.162M22.885 16.347c-1.774 0-2.773.87-3.297 1.598-.78 1.082-.896 2.325-.896 2.97 0 1.18.384 2.29 1.08 3.126.799.958 1.918 1.465 3.238 1.465 2.152 0 3.384-1.362 3.435-1.42a.714.714 0 0 0-1.07-.948c-.008.01-.873.938-2.365.938-1.669 0-2.574-1.159-2.82-2.434h5.98c.396 0 .716-.32.716-.714 0-2.28-1.238-4.58-4-4.58Zm-2.716 3.866c.33-2.31 2.294-2.436 2.716-2.436 1.835 0 2.364 1.476 2.514 2.436h-5.23ZM26.877 32.586c-.038-.072-.95-1.759-3.502-1.759-2.834 0-4.318 2.297-4.318 4.567 0 1.18.384 2.29 1.08 3.126.799.959 1.918 1.465 3.238 1.465l.034-.001c.876-.007 1.58-.268 2.122-.666a.715.715 0 0 0 1.427-.047v-6.353a.719.719 0 0 0-.081-.332Zm-1.348 3.953c0 .658-.527 2.017-2.154 2.017-2.285 0-2.888-2.052-2.888-3.137 0-1.523.904-3.162 2.888-3.162.905 0 1.489.3 1.817.55a.868.868 0 0 1 .337.694v3.038Z",fill:"#009FE3"})))}));function ni(){return ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ni.apply(this,arguments)}var ri,oi=n((function(t,n){return e.createElement("svg",ni({viewBox:"0 0 298 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Uo||(Uo=e.createElement("path",{d:"M235.171 71.957c-.671-50.518-51.708-43.14-60.018-41.605a1.02 1.02 0 0 0-.781 1.318l10.817 33.09a3.034 3.034 0 0 0 3.629 2.007c25.761-6.52 41.889 3.08 45.557 5.613.339.234.8-.01.796-.423Z",fill:"#BDBCBC"})),Qo||(Qo=e.createElement("path",{d:"M236.637 71.957c.671-50.518 51.709-43.14 60.019-41.605.603.112.971.732.613 1.826l-11.109 34c-.17.515-1.242 1.095-2.283.818-26.278-6.969-42.732 2.822-46.443 5.384a.508.508 0 0 1-.797-.423Z",fill:"#F1511B"})),Ko||(Ko=e.createElement("path",{d:"M241.607 43.024C253.419 11.61 287.286 12.723 294.27 13.3c.654.055 1.082.708.879 1.332l-3.463 10.597a.507.507 0 0 1-.54.346c-30.062-3.348-43.624 10.49-48.645 17.914-.336.497-1.106.097-.894-.466Z",fill:"#69B3E6"})),$o||($o=e.createElement("path",{d:"m291.304 2.325-2.08 6.363a.51.51 0 0 1-.477.35c-23.975.245-36.795 12.875-42.185 20.115-.369.496-1.134.025-.859-.527 4.619-9.335 17.083-27.32 44.621-27.637.696-.01 1.197.671.98 1.336Z",fill:"#FABD34"})),ei||(ei=e.createElement("path",{d:"M223.864 112.447c0 3.308-2.635 10.135-10.779 10.135-11.435 0-14.454-10.307-14.454-15.757 0-7.65 4.522-15.883 14.454-15.883 4.528 0 7.452 1.514 9.095 2.766 1.078.821 1.684 2.124 1.684 3.481v15.258Zm-10.779-28.685c-14.186 0-21.61 11.54-21.61 22.937 0 5.93 1.919 11.507 5.401 15.701 3.999 4.814 9.602 7.36 16.209 7.36.058 0 .113-.007.173-.01 4.383-.033 7.905-1.343 10.618-3.343a3.581 3.581 0 0 0 3.565 3.353 3.583 3.583 0 0 0 3.577-3.589V94.262c0-.579-.142-1.151-.408-1.665-.187-.359-4.753-8.835-17.525-8.835ZM7.8 103.21c1.655-11.596 11.482-12.232 13.596-12.232 9.184 0 11.83 7.41 12.582 12.232H7.8Zm13.596-19.412c-8.88 0-13.878 4.365-16.504 8.023C.992 97.256.41 103.5.41 106.736c0 5.929 1.919 11.505 5.4 15.699 4.001 4.815 9.604 7.361 16.21 7.361 10.77 0 16.938-6.842 17.195-7.131a3.597 3.597 0 0 0-.306-5.066 3.565 3.565 0 0 0-5.046.306c-.043.048-4.376 4.713-11.843 4.713-8.353 0-12.883-5.825-14.11-12.227h29.932a3.58 3.58 0 0 0 3.577-3.589c0-11.449-6.192-23.004-20.022-23.004Zm237.237 19.499a48.905 48.905 0 0 1-1.565-.412c-7.068-2.034-9.221-3.672-9.221-7.011 0-3.09 3.077-4.933 8.237-4.933 4.615 0 9.241 2.6 9.294 2.633a3.574 3.574 0 0 0 4.877-1.33 3.596 3.596 0 0 0-1.319-4.9c-.255-.146-6.29-3.583-12.852-3.583-7.664 0-15.392 3.747-15.392 12.113 0 9.765 9.368 12.463 14.404 13.911.539.156 1.14.307 1.778.471 5.852 1.488 8.462 2.819 8.462 6.78 0 1.513-.447 2.623-1.411 3.483-2.062 1.846-6.037 2.321-9.065 1.977-5.52-.634-9.229-3.095-9.918-3.582-1.506-1.07-3.628-.844-4.828.563a3.598 3.598 0 0 0 .757 5.34c1.391.977 6.202 4.012 13.178 4.812.834.093 1.726.149 2.653.149 4.054 0 8.759-1.013 11.985-3.902 2.487-2.226 3.804-5.284 3.804-8.84 0-10.216-9.362-12.595-13.858-13.739ZM131.276 83.762a3.585 3.585 0 0 0-3.577 3.591v24.193c0 6.084-4.934 11.036-10.998 11.036-6.067 0-11.001-4.952-11.001-11.036V87.353a3.585 3.585 0 0 0-3.576-3.591 3.585 3.585 0 0 0-3.578 3.591v24.193c0 10.042 8.144 18.214 18.155 18.214 10.01 0 18.152-8.172 18.152-18.214V87.353a3.584 3.584 0 0 0-3.577-3.591Zm44.481 28.699c0 3.306-2.635 10.136-10.777 10.136-11.438 0-14.46-10.31-14.46-15.759 0-7.652 4.526-15.881 14.46-15.881 4.528 0 7.452 1.512 9.092 2.765 1.079.82 1.685 2.123 1.685 3.48v15.259ZM164.98 83.776c-6.607 0-12.211 2.546-16.21 7.362-3.484 4.192-5.403 9.771-5.403 15.7 0 5.344 1.744 10.75 4.787 14.829 2.758 3.695 7.916 8.107 16.826 8.107 4.456 0 8.031-1.315 10.777-3.334v16.65a3.583 3.583 0 0 0 3.578 3.589 3.583 3.583 0 0 0 3.576-3.589V94.275c0-.58-.139-1.15-.407-1.665-.188-.358-4.754-8.834-17.524-8.834Zm-83.114 32.558c0 1.358-.606 2.659-1.687 3.48-1.641 1.254-4.563 2.768-9.093 2.768-9.932 0-14.457-8.232-14.457-15.883 0-5.448 3.022-15.757 14.458-15.757 8.144 0 10.779 6.826 10.779 10.133v15.259Zm3.576-49.477a3.586 3.586 0 0 0-3.576 3.59v16.65c-2.75-2.02-6.321-3.335-10.78-3.335-8.909 0-14.068 4.411-16.826 8.11-3.04 4.079-4.784 9.483-4.784 14.827 0 5.93 1.917 11.507 5.401 15.701 3.997 4.814 9.604 7.36 16.21 7.36 12.772 0 17.338-8.473 17.525-8.833a3.6 3.6 0 0 0 .407-1.664V70.448a3.585 3.585 0 0 0-3.577-3.591ZM9.443 147.001c1.86 0 3.02-1.045 3.02-2.511v-.039c0-1.648-1.179-2.509-3.02-2.509H6.582v5.059h2.86Zm-5.323-6.063c0-.704.54-1.248 1.24-1.248h4.283c3.282 0 5.323 1.87 5.323 4.7v.041c0 3.151-2.522 4.797-5.604 4.797h-2.78v3.396c0 .681-.54 1.224-1.221 1.224a1.22 1.22 0 0 1-1.241-1.224v-11.686ZM23.553 149.933v-.723a6.715 6.715 0 0 0-2.4-.421c-1.563 0-2.483.661-2.483 1.767v.04c0 1.024.9 1.605 2.06 1.605 1.601 0 2.823-.923 2.823-2.268Zm-7.244.764v-.043c0-2.288 1.78-3.412 4.363-3.412 1.18 0 2.021.179 2.842.441v-.262c0-1.504-.921-2.307-2.622-2.307-.921 0-1.68.158-2.343.42a1.28 1.28 0 0 1-.38.06 1.01 1.01 0 0 1-1.021-1.004c0-.441.3-.823.661-.961.999-.383 2.02-.622 3.402-.622 1.58 0 2.762.417 3.504 1.183.779.763 1.138 1.886 1.138 3.273v5.221c0 .661-.521 1.163-1.18 1.163-.7 0-1.181-.483-1.181-1.023v-.402c-.719.863-1.82 1.546-3.441 1.546-1.983 0-3.742-1.144-3.742-3.271ZM28.758 144.25c0-.683.52-1.225 1.198-1.225.681 0 1.223.542 1.223 1.225v1.083c.56-1.325 1.6-2.328 2.661-2.328.76 0 1.2.502 1.2 1.206 0 .64-.42 1.063-.96 1.163-1.721.302-2.9 1.627-2.9 4.136v3.134c0 .661-.543 1.205-1.224 1.205-.66 0-1.198-.525-1.198-1.205v-8.394ZM37.524 150.816v-5.583h-.401c-.58 0-1.04-.46-1.04-1.044 0-.583.46-1.043 1.04-1.043h.4v-1.809a1.21 1.21 0 0 1 2.423 0v1.809h1.9c.58 0 1.06.46 1.06 1.043 0 .584-.48 1.044-1.06 1.044h-1.9v5.201c0 .946.478 1.326 1.3 1.326.279 0 .519-.06.6-.06.539 0 1.02.44 1.02 1.003 0 .439-.3.802-.64.945-.52.179-1.02.28-1.66.28-1.78 0-3.042-.786-3.042-3.112ZM59.518 148.507v-.039c0-1.87-1.341-3.416-3.243-3.416-1.94 0-3.181 1.527-3.181 3.374v.042c0 1.847 1.34 3.39 3.223 3.39 1.96 0 3.2-1.523 3.2-3.351Zm-8.843 0v-.039c0-3.034 2.4-5.544 5.642-5.544 3.24 0 5.623 2.471 5.623 5.502v.042c0 3.01-2.402 5.52-5.665 5.52-3.22 0-5.6-2.47-5.6-5.481ZM64.942 145.233h-.42c-.56 0-1.02-.44-1.02-1.004 0-.561.46-1.024 1.02-1.024h.42v-.782c0-1.165.3-2.048.86-2.611.562-.56 1.342-.845 2.383-.845.481 0 .882.041 1.22.103.44.058.84.459.84 1.002a.996.996 0 0 1-1.02 1.004 4.279 4.279 0 0 0-.5-.039c-.921 0-1.401.502-1.401 1.604v.587h1.882c.579 0 1.02.44 1.02 1.001 0 .564-.46 1.004-1.02 1.004h-1.841v7.409c0 .664-.542 1.205-1.221 1.205a1.205 1.205 0 0 1-1.202-1.205v-7.409ZM77.352 141.278a1.3 1.3 0 0 1-.1-.483c0-.683.58-1.205 1.26-1.205.6 0 1.06.382 1.22.905l3.223 9.656 3.162-9.615c.2-.583.62-.984 1.24-.984h.18c.62 0 1.061.401 1.241.984l3.162 9.615 3.223-9.676c.178-.503.599-.885 1.199-.885.66 0 1.22.522 1.22 1.186 0 .162-.058.36-.119.502l-4.143 11.645c-.22.622-.679 1.026-1.28 1.026H91.8c-.599 0-1.04-.382-1.26-1.026l-3.124-9.176-3.12 9.176c-.22.644-.68 1.026-1.28 1.026h-.24c-.601 0-1.04-.382-1.28-1.026l-4.144-11.645ZM97.526 152.402a1.297 1.297 0 0 1-.42-.923c0-.664.52-1.185 1.18-1.185.322 0 .542.099.761.281.681.703 1.34 1.085 2.281 1.085 1.362 0 2.261-.884 2.261-2.773v-8.069a1.23 1.23 0 0 1 1.24-1.225c.682 0 1.243.54 1.243 1.225v8.15c0 1.669-.501 2.912-1.322 3.736-.819.823-2.001 1.244-3.403 1.244-1.7 0-2.939-.661-3.82-1.546ZM109.455 152.503v-11.567c0-.702.54-1.245 1.24-1.245h8.145c.602 0 1.102.503 1.102 1.104a1.1 1.1 0 0 1-1.102 1.107h-6.924v3.653h6.024c.6 0 1.1.502 1.1 1.124 0 .602-.5 1.085-1.1 1.085h-6.024v3.776h7.025c.6 0 1.101.5 1.101 1.103 0 .625-.501 1.105-1.101 1.105h-8.246c-.7 0-1.24-.542-1.24-1.245ZM122.244 146.759v-.039c0-3.996 2.982-7.271 7.224-7.271 2.161 0 3.581.644 4.803 1.587.261.201.481.542.481.985 0 .683-.542 1.205-1.222 1.205-.34 0-.579-.121-.742-.242-.959-.784-1.998-1.264-3.339-1.264-2.662 0-4.624 2.207-4.624 4.958v.042c0 2.751 1.941 4.978 4.624 4.978 1.48 0 2.481-.48 3.502-1.344.18-.16.439-.279.74-.279.62 0 1.161.518 1.161 1.143 0 .382-.18.681-.399.884-1.322 1.166-2.824 1.887-5.084 1.887-4.082 0-7.125-3.195-7.125-7.23Z",fill:"#706D6E"})))})),ii=function(e){var t=e.copyrightMessage,n=void 0===t?"Copyright WJEC CBAC Ltd ".concat((new Date).getFullYear()):t,r=e.logos,o=void 0===r?[ti,oi]:r,i=e.maxWidth,a=void 0===i?1280:i,l=T(ci);return u("footer",{css:l.footer},u("div",{css:d([l.container,{maxWidth:"".concat(a,"px")}])},o.map((function(e,t){return u(e,{key:"logo_".concat(t),css:l.logo})})),u("span",{css:l.copyright},n)))},ai={name:"8zn5ov",styles:"align-items:center;display:flex;margin:0 auto;width:100%;"},li={name:"eeoqsk",styles:"height:25px;margin-right:10px;"},ci=function(e){var t=e.colorPalette;return{container:ai,copyright:d("border-left:1px solid ",t.border,";color:",t.fontLight,";font-size:12px;padding-left:10px;"),footer:d(Oe,";align-items:center;display:flex;justify-content:flex-start;padding:24px 30px 22px;width:100%;"),logo:li}};function si(){return si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},si.apply(this,arguments)}var di,ui,pi,fi,gi=n((function(t,n){return e.createElement("svg",si({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),ri||(ri=e.createElement("path",{d:"m10 4.742 4.167 3.75V15H12.5v-5h-5v5H5.833V8.492L10 4.742ZM10 2.5 1.667 10h2.5v6.667h5v-5h1.666v5h5V10h2.5L10 2.5Z",fill:"currentColor"})))})),hi={height:"40px",padding:"0"},bi=function(e){var n=e.logo,r=void 0===n?{eduqas:oi,wjec:ti}:n,o=e.logoId,i=e.logoStyles,a=e.maxWidth,c=void 0===a?1280:a,s=e.menus,p=e.onClickPageIcon,f=e.pageIcon,g=void 0===f?gi:f,h=e.pageIconHref,b=e.pageTitle,v=e.showPageTitle,m=void 0===v||v,y=oe(D(),1)[0].brand,x=T(xi),w=l((function(){return E(e=r)&&Object.hasOwn(e,"eduqas")&&Object.hasOwn(e,"wjec")?r[y]:r;var e}),[y,r]);return u("header",{css:x.header},u("div",{css:d([x.container,{maxWidth:"".concat(c,"px")}])},u("div",{css:x.titleContainer},m&&u(t.Fragment,null,u("a",{css:x.pageLink,href:h,onClick:p},u(g,{css:x.pageIcon})),u("h1",{css:x.title},b))),u(w,{css:d(Q(Q({},hi),i)),id:o}),u("section",{css:x.menuContainer},s)))},vi={name:"f7hwxs",styles:"align-items:center;display:grid;grid-gap:30px;grid-template-columns:1fr 100px 1fr;justify-items:center;margin:0 auto;"},mi={name:"euyatf",styles:"align-items:center;display:flex;flex:1;justify-content:flex-end;justify-self:end;min-width:175px;"},yi={name:"6o7adr",styles:"align-items:center;display:flex;justify-self:flex-start;"},xi=function(e){var t=e.colorPalette;return{container:vi,header:d(Oe,";background-color:#fff;border-bottom:1px solid ",t.border,";padding:15px 30px;position:sticky;top:0;width:100%;z-index:1;"),menuContainer:mi,pageIcon:d("color:",t.fontLight,";height:20px;margin-right:10px;"),pageLink:d("cursor:pointer;:hover > svg{color:",t.font,";}"),title:d(Le,";border-left:1px solid ",t.border,";color:",t.fontLight,";font-size:14px;font-weight:500;margin:0;max-width:100%;padding:5px 0 5px 10px;"),titleContainer:yi}},wi=function(e){var t=e.children,n=e.footerProps,r=e.headerProps,o=e.maxWidth,i=void 0===o?1280:o;return u("div",{css:Ci.pageWrapper},u(bi,ee({},r,{maxWidth:i})),u("main",{css:d([Ci.content,{maxWidth:"".concat(i+60,"px")}])},t),u(ii,ee({},n,{maxWidth:i})))},Ci={content:d("flex:1;margin:0 auto;min-height:100%;padding:40px ",30,"px 0;width:100%;"),pageWrapper:d(Oe,";display:flex;flex-direction:column;min-height:100vh;")},ki=function(e){var t=e.color,n=e.id,r=e.progress,i=o(),a=void 0===r,l=T(Pi);return ut("--background-color",t,i),u("progress",{"aria-label":"loading",css:d([l.progress,a&&l.progressIndeterminate]),id:n,max:100,ref:i,value:r})},Ii=p(di||(di=re(["\n 0% {\n left: -35%;\n right: 100%;\n }\n 60% {\n left: 100%;\n right: -90%;\n }\n 100% {\n left: 100%;\n right: -90%;\n }\n"]))),Oi=p(ui||(ui=re(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"]))),Pi=function(e){var t=e.colorPalette;return{progress:d("--background-color:",t.secondary,";appearance:none;border-radius:2px;height:4px;overflow:hidden;position:relative;width:100%;&::-webkit-progress-bar{background-color:var(--background-color);border-radius:2px;opacity:0.3;}&::-webkit-progress-value{background-color:var(--background-color);border-radius:2px;transition:width 0.3s ease-out;}"),progressIndeterminate:d("&::before,&::after{background-color:var(--background-color);border-radius:2px;bottom:0;content:'';left:0;position:absolute;top:0;}&::after{animation:",Ii," 2.1s cubic-bezier(0.65,0.815,0.735,0.395) infinite;}&::before{animation:",Oi," 2.1s cubic-bezier(0.165,0.84,0.44,1) infinite 1.15s;}")}},Ai=function(e){var t=e.ariaLabel,n=e.context,o=e.icons,a=e.id,l=e.keySuffix,c=void 0===l?"":l,d=e.open,p=void 0!==d&&d,f=e.selectLocaleAction,g=e.showLocaleNameInList,h=void 0===g||g,b=e.showSelectedLocaleName,v=oe(D(),1)[0].colorPalette,m=oe(s(n),2),y=m[0],x=y.availableLocales,w=y.locale,C=y.strings,k=m[1],I=oe(r(p),2),O=I[0],P=I[1],A=oe(r(w),2),L=A[0],E=A[1];i((function(){p!==O&&P(p)}),[p]),i((function(){w!==L&&E(w)}),[w]),i((function(){k(f(L))}),[L]);var S=function(e){return function(){return P(e)}};return u(vn,{"aria-label":t,id:a,open:O,options:null==x?void 0:x.map((function(e){return{icon:o&&o[e],label:h&&(C["".concat(String(e)).concat(c)]||"".concat(String(e)).concat(c)),onClick:(t=e,function(){E(t),P(!1)})};var t})),onHide:S(!1),onShow:S(!0),toggle:u(Ke,{allowEventPropagation:!0,color:"transparent",icon:o&&o[w],labelColor:v.fontLight},b&&(C["".concat(String(w)).concat(c)]||"".concat(String(w)).concat(c)),u(he,{css:Li.icon}))})},Li={icon:{name:"198hkja",styles:"display:flex;height:20px;width:20px;"}},Ei=function(e){var t=e.children,n=e.element,r=void 0===n?"div":n,o=e.horizontal,i=void 0!==o&&o,a=e.styles,l=e.vertical,c=void 0===l||l;return u(r,{css:[a,Ie.scrollbar,{overflowX:i?"auto":"hidden",overflowY:c?"auto":"hidden"}]},t)},Si={dependencies:[],eventTarget:document.documentElement,shouldAddListener:!0},Fi=new WeakMap,ji=function(e,t,n){var r=function(n){var r,o=Object.values(Fi.get(t)[e].instances).map((function(e){return e.callback})),i=ce(o);try{for(i.s();!(r=i.n()).done;){(0,r.value)(n)}}catch(e){i.e(e)}finally{i.f()}};return t.addEventListener(e,r,n),r},Wi=function(e,t,n){var r=Q(Q({},Si),n),o=r.dependencies,a=r.eventOptions,l=r.eventTarget,c=r.shouldAddListener,s="function"==typeof c?c():c;i((function(){var n={callback:t},r=j(l)?l.current:l;return s&&r&&(Fi.has(r)||Fi.set(r,{}),Fi.get(r)[e]||(Fi.get(r)[e]={instances:[],listener:ji(e,r,a)}),Fi.get(r)[e].instances.push(n)),function(){var t,o=null===(t=Fi.get(r))||void 0===t?void 0:t[e];o&&(o.instances=o.instances.filter((function(e){return e!==n})),0===Fi.get(r)[e].instances.length&&function(e,t){var n=Fi.get(t);t.removeEventListener("keydown",Fi.get(t)[e].listener),delete n[e],0===Object.keys(n).length&&Fi.delete(t)}(e,r))}}),[s,e,l].concat(ie(o)))},Mi={dependencies:[],focusElement:0,shouldTrapFocus:!0},Bi={name:"hmirul",styles:"align-items:center;backdrop-filter:blur(5px);background-color:rgba(241,243,244,0.80);bottom:0;display:flex;flex-direction:row;justify-content:center;left:0;position:fixed;right:0;top:0;transition:opacity 200ms linear;&[data-hidden]{opacity:0;}"},zi={name:"1pg8bi",styles:"height:20px;"},Ti={name:"1kdy0wu",styles:"display:flex;flex:1;flex-direction:column;"},Di={name:"y1gt6f",styles:"margin-top:40px;"},Zi={name:"1rshn6v",styles:"@supports (scrollbar-gutter:stable){scrollbar-gutter:stable;}"},Ri={name:"ia9nae",styles:"align-items:flex-end;display:flex;justify-content:space-between;margin-top:50px;"},Hi={name:"13faftp",styles:"margin-bottom:10px;padding-right:30px;position:relative;"},Ji={name:"1f3fjso",styles:"align-items:center;display:flex;margin-left:auto;&:not(:last-child){margin-right:10px;}"},Xi=function(e){var t=e.colorPalette;return{background:Bi,closeButton:d("background-color:transparent;border:none;cursor:pointer;color:",t.fontLight,";display:flex;padding:0;position:absolute;right:0;top:0;"),closeIcon:zi,content:Ti,contentWithHeader:Di,contentWithStableScrollbar:Zi,description:d("color:",t.fontLight,";font-family:'Montserrat',sans-serif;font-size:14px;line-height:20px;margin:0;white-space:pre-line;"),footer:Ri,header:Hi,modal:d(Oe,";background-color:#FFFFFF;border-radius:",Ie.borderRadius,";box-shadow:",Ie.dropShadow,";display:flex;flex-direction:column;position:relative;"),otherActions:Ji}},Ni=function(e){var n=e.actionButton,c=void 0===n?"Confirm":n,s=e.actionButtonId,p=e.actionDisabled,f=e.actionLoading,g=e.actionLoadingProgress,b=e.actionType,v=void 0===b?"positive":b,m=e.blockScroll,y=void 0===m||m,x=e.cancelButton,w=void 0===x?"Cancel":x,C=e.cancelButtonId,k=e.children,I=e.closeOnCancel,O=void 0===I||I,P=e.closeOnClickOutside,A=void 0===P||P,L=e.description,E=e.fullscreen,S=e.id,F=e.maxHeight,B=void 0===F?E?"95vh":"90vh":F,z=e.maxWidth,D=void 0===z?E?"100vw":"60vw":z,Z=e.minHeight,R=void 0===Z?E?"95vh":"200px":Z,H=e.minWidth,J=void 0===H?E?"100vw":"200px":H,N=e.onAction,G=e.onCancel,V=e.onClose,_=e.onOpen,U=e.open,K=e.otherActions,$=e.padding,te=void 0===$?"30px":$,ne=e.showCloseIcon,re=void 0===ne||ne,ae=e.stableScrollbar,le=void 0===ae||ae,se=e.title,de=e.ariaDescription,ue=void 0===de?L:de,pe=e.ariaLabel;Qe("WJEC One Modal: The fullscreen prop has been deprecated because a Modal can now be sized situationally using the maxHeight, maxWidth, minHeight and minWidth props",(function(){return void 0!==E}),[E]);var fe,ge,he,be,ve,me,ye,xe,we,Ce,ke,Ie,Oe=oe(r(U),2),Pe=Oe[0],Ae=Oe[1],Le=o(),Ee=o(),Se=o(30),Fe=o(),je=o(),We=mt(M(ue));fe=Le,ge={focusElement:re?1:0,shouldTrapFocus:Pe},he=Q(Q({},Mi),ge),be=he.dependencies,ve=he.focusElement,me=he.shouldTrapFocus,ye=o([]),xe=l((function(){return"function"==typeof me?me():me}),[me]),i((function(){var e,t,n,r,o=j(fe)?fe.current:fe;return xe&&o&&(ye.current=W(o),(t=new MutationObserver((function(e){var t,n=ce(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;("childList"===r.type||"attributes"===r.type&&["aria-hidden","disabled"].includes(r.attributeName))&&(ye.current=W(o))}}catch(e){n.e(e)}finally{n.f()}}))).observe(o,{attributes:!0,childList:!0,subtree:!0}),e=function(e){var t=void 0===e.code?e.key:e.code,n=ye.current[0],r=ye.current[ye.current.length-1];"Tab"===t&&(e.shiftKey||document.activeElement!==r||(n.focus(),e.preventDefault()),e.shiftKey&&document.activeElement===n&&(r.focus(),e.preventDefault()))},"number"==typeof ve&&(null===(n=ye.current[ve])||void 0===n||n.focus()),"string"==typeof ve&&(null===(r=ye.current.find((function(e){return e.matches(ve)})))||void 0===r||r.focus()),ve instanceof HTMLElement&&ye.current.includes(ve)&&ve.focus(),document.documentElement.addEventListener("keydown",e)),function(){document.documentElement.removeEventListener("keydown",e),t.disconnect()}}),[fe,xe].concat(ie(be))),function(e,t,n){Wi("keydown",(function(n){(void 0===n.code?n.key:n.code).toLowerCase()===e.toLowerCase()&&t()}),n)}("escape",(function(){return Me()}),{shouldAddListener:Pe}),i((function(){U&&ze()}),[U]),a((function(){Pe&&(Le.current.removeAttribute("data-hidden"),Be(),Fe.current=document.activeElement)}),[Pe]),a((function(){Ee.current&&(Se.current=parseInt(getComputedStyle(Ee.current).paddingRight))}),[te]),we=function(){U||Me()},Ce=[U],ke=o(!1),i((function(){var e;return ke.current?e=we():ke.current=!0,e}),Ce),Ie=function(){var e;q(Ee.current),null===(e=Le.current)||void 0===e||e.removeEventListener("transitionend",je.current)},i((function(){return Ie}),[]);var Me=function(){je.current=function(){var e;q(Ee.current),null===(e=Fe.current)||void 0===e||e.focus(),h(V)&&V(),Ae(!1)},Le.current.addEventListener("transitionend",je.current,{once:!0}),Le.current.setAttribute("data-hidden","true")},Be=function(){y&&Y(Ee.current,{reserveScrollBarGap:!0,allowTouchMove:function(e){return Ee.current.contains(e)}})},ze=function(){h(_)&&_(),Ae(!0)},Te="positive"===v?st:ot,De=se||re,Ze=T(Xi);return Pe?X(u("div",ee({"aria-modal":!0,"aria-label":pe,css:Ze.background,id:S,onClick:function(e){var t=e.target;A&&(t===Le.current&&Me())},ref:Le,role:"dialog","data-hidden":!0},We),u("div",{ref:Ee,css:d([Ze.modal,{maxHeight:B,maxWidth:D,minHeight:R,minWidth:J,padding:te}])},De&&u("header",{css:Ze.header},se&&u(un,null,se),re&&u("button",{css:Ze.closeButton,onClick:Me},u(ir,{css:Ze.closeIcon}))),L&&u("p",{css:Ze.description},L),u(Ei,{styles:[Ze.content,De&&Ze.contentWithHeader,le&&Ze.contentWithStableScrollbar,d("@supports (scrollbar-gutter:stable){margin-right:",-1*Se.current,"px;padding-right:",Math.max(Se.current-(le?14:0),0),"px;}")]},k),(c||w||K)&&u("footer",{css:Ze.footer},w&&u(Ke,{id:C,label:w,onPress:function(){O&&Me(),h(G)&&G()}}),u("section",{css:Ze.otherActions},K&&(t.isValidElement(K)?K:u(vn,{options:K}))),c&&u(Te,{disabled:p,id:s,label:c,loading:f,loadingProgress:g,onPress:N})))),document.body):null},Gi=function(e){var t=e.children,n=e.color,r=oe(D(),1)[0],i=r.brand,a=r.colorPalette,c=T(Vi),s=o(),d=l((function(){return n||a.font}),[i,n]);return ut("--title-color",d,s),u("h3",{css:c.title,ref:s},t)},Vi=function(e){var t=e.colorPalette;return{title:d("--title-color:",t.font,";color:var(--title-color);font-family:'Montserrat',sans-serif;font-size:16px;font-weight:600;margin:0 0 4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;")}};function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yi.apply(this,arguments)}var qi,_i=n((function(t,n){return e.createElement("svg",Yi({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),pi||(pi=e.createElement("path",{opacity:.4,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),fi||(fi=e.createElement("path",{d:"M12 16v-4m0-4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))})),Ui=function(e){var n=e.actionColor,a=void 0===n?"transparent":n,c=e.actionIcon,s=e.actionLoading,p=e.actionLoadingProgress,f=e.actionText,g=e.actionTextColor,b=void 0===g?ue.primaryDark:g,v=e.autoClose,m=e.borderColor,y=e.icon,w=void 0===y?_i:y,C=e.iconColor,k=e.maxWidth,I=void 0===k?"375px":k,O=e.message,P=e.onActionClick,A=e.onClose,L=e.onOpen,E=e.open,S=void 0===E||E,F=e.position,j=e.positionType,W=void 0===j?"relative":j,M=e.showImmediately,B=e.title,z=e.titleColor,Z=oe(D(),1)[0],R=Z.brand,H=Z.colorPalette,J=oe(r(!S),2),X=J[0],N=J[1],G=oe(r(S&&M),2),V=G[0],Y=G[1],q=o(),_=o(),U=o(),K=T(aa),$=l((function(){return w&&"none"!==w?u(w,{css:d([K.icon])}):null}),[w]);i((function(){return S&&M&&h(L)&&L(),function(){window.clearTimeout(q.current),window.clearTimeout(_.current)}}),[]),Ne("WJEC-One Notification: Icon must be a valid SVGComponent",(function(){return w&&"none"!==w&&!x(t.createElement(w))}),[w]),i((function(){S!==V&&(S?te():ee())}),[S]),i((function(){V&&v&&(window.clearTimeout(q.current),q.current=window.setTimeout(ee,v))}),[v,V]);var ee=function(){window.clearTimeout(q.current),window.clearTimeout(_.current),Y(!1),_.current=window.setTimeout((function(){N(!0),h(A)&&A()}),500)},te=function(){window.clearTimeout(_.current),N(!1),Y(!0),_.current=window.setTimeout((function(){h(L)&&L()}),500)},ne=l((function(){return m||H.border}),[R,m]),re=l((function(){return C||H.border}),[R,C]),ie=l((function(){return z||H.font}),[R,z]);ut("--border-color",ne,U),ut("--icon-color",re,U),ut("--title-color",ie,U);var ae=!!f;return u("div",{css:d([K.container,!V&&K.containerFadeOut,V&&K.containerFadeIn,X&&Ie.visiblyHidden,Q({maxWidth:I,position:W},F)]),ref:U},$,u(Gi,{color:ie},B),u("p",{css:d([K.message,ae&&{marginBottom:"10px"}])},O),ae?u(Ke,{color:a,icon:c,iconColor:ue.fontLight,labelColor:b,label:f,loading:s,loadingProgress:p,onClick:P,size:"small"}):null,V&&v&&u("svg",{css:K.autoClose,viewBox:"0 0 20 20"},u("circle",{css:d([K.autoCloseCircle,{animationDuration:"".concat(v,"ms")}]),cx:"10",cy:"10",r:"9",pathLength:"100"})),u(ir,{css:K.close,onClick:ee}))},Qi=p(qi||(qi=re(["\n to { stroke-dashoffset: -100; }\n"]))),Ki={name:"9xvvt0",styles:"height:20px;position:absolute;right:8px;top:8px;width:20px;"},$i={name:"oofjv5",styles:"cursor:pointer;height:36px;outline:none;padding:10px;position:absolute;right:0;top:0;width:36px;"},ea={name:"1aodknh",styles:"opacity:1;transform:translateY(0);transition-timing-function:linear,ease-out;"},ta={name:"15egim4",styles:"opacity:0;transform:translateY(-60px);transition-timing-function:linear,ease-in;"},na={name:"15grx0k",styles:"align-items:flex-start;display:flex;flex-direction:column;"},ra={name:"wvqk7n",styles:"color:var(--icon-color);flex-shrink:0;height:24px;left:16px;position:absolute;width:24px;"},oa={name:"oj621k",styles:"font-size:14px;line-height:20px;margin:0;white-space:pre-line;@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){max-width:300px;}"},ia={name:"172fn9d",styles:"color:var(--title-color);font-weight:600;margin:0 0 4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},aa=function(e){var t=e.colorPalette;return{autoClose:Ki,autoCloseCircle:d("animation:",Qi," linear forwards;fill:transparent;stroke:",ue.fontLight,";stroke-dasharray:100;stroke-width:1;transform:rotate(-90deg);transform-origin:50%;"),close:$i,container:d("--border-color:",t.border,";--icon-color:",t.border,";--title-color:",t.font,";",Oe,";background-color:#ffffff;border:1px solid var(--border-color);border-radius:",Ie.borderRadius,";box-shadow:",Ie.dropShadow,";font-family:'Montserrat',sans-serif;font-size:16px;gap:16px;line-height:24px;margin-bottom:16px;padding:16px 40px 16px 56px;transition:opacity ",500,"ms,transform ",500,"ms;z-index:999;"),containerFadeIn:ea,containerFadeOut:ta,content:na,icon:ra,message:oa,title:ia}},la=["title"],ca=function(e){var t=e.title,n=void 0===t?"Error":t,r=ne(e,la),o=oe(D(),1)[0].colorPalette;return u(Ui,ee({},r,{borderColor:ue.error,icon:Tn,iconColor:o.error,title:n,titleColor:ue.error}))},sa=["title"],da=function(e){var t=e.title,n=void 0===t?"Information":t,r=ne(e,sa),o=oe(D(),1)[0].colorPalette;return u(Ui,ee({},r,{borderColor:o.primary,iconColor:o.primary,title:n,titleColor:o.primary}))},ua=["title"],pa=function(e){var t=e.title,n=void 0===t?"Sucess":t,r=ne(e,ua),o=oe(D(),1)[0].colorPalette;return u(Ui,ee({},r,{borderColor:ue.success,icon:Mn,iconColor:o.success,title:n,titleColor:ue.success}))},fa=function(e){var t=e.children,n=e.color,r=e.id,i=o(),a=T(ga);return ut("--color",n,i),u("h1",{css:a.heading,id:r,ref:i},t)},ga=function(e){var t=e.colorPalette;return{heading:d("--color:",t.font,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:28px;font-weight:400;line-height:40px;margin:0 0 30px 0;")}},ha=function(e){var n=e.ariaCurrent,r=e.ariaLabel,o=e.compact,i=void 0!==o&&o,a=e.current,c=void 0===a?1:a,s=e.id,p=e.onSelect,f=e.total,g=function(e){return function(){e>0&&e<f+1&&h(p)&&p(e)}},b=l((function(){return f>5?c<4?[2,3,4,"..."]:c>f-3?["...",f-3,f-2,f-1]:["...",c-1,c,c+1,"..."]:ie(Array(Math.max(0,f-2)).keys()).map((function(e){return e+2}))}),[c,f]),v=T(ya);return u("ol",{"aria-label":r,css:v.container,id:s},u("li",{"aria-current":n,css:d([v.option,v.optionNextPrevious,1===c&&v.optionDisabled]),onClick:g(c-1)},u(me,{height:"100%",width:"100%"})),i?u("li",{css:v.compact},c," of ",f):u(t.Fragment,null,u("li",{css:d([v.option,1===c&&v.optionSelected]),onClick:g(1)},"1"),b.map((function(e,t){return u("li",{key:t,css:d([v.option,e===c&&v.optionSelected,"string"==typeof e&&v.optionSeparator]),onClick:"number"==typeof e?g(e):null},e)})),f>1&&u("li",{css:d([v.option,c===f&&v.optionSelected]),onClick:g(f)},f)),u("li",{css:d([v.option,v.optionNextPrevious,c===f&&v.optionDisabled]),onClick:g(c+1)},u(we,{height:"100%",width:"100%"})))},ba={name:"1qje5jb",styles:"margin:0 15px;text-align:center;user-select:none;width:50px;"},va={name:"1x05hl3",styles:"opacity:0.33;pointer-events:none;"},ma={name:"1ixbp0l",styles:"pointer-events:none;"},ya=function(e){var t=e.colorPalette;return{compact:ba,container:d(Oe,";display:flex;font-family:'Montserrat',sans-serif;font-size:14px;justify-content:center;line-height:20px;list-style:none;margin:0;padding:0;width:100%;"),option:d("align-items:center;border-radius:",Ie.borderRadius,";color:",t.fontLight,";cursor:pointer;display:flex;height:20px;justify-content:center;margin:0 5px;user-select:none;width:20px;&:first-of-type{margin-left:0;}&:last-of-type{margin-right:0;}"),optionDisabled:va,optionNextPrevious:d("border:1px solid ",t.border,";"),optionSelected:d("background-color:",t.primary,";color:#FFFFFF;pointer-events:none;"),optionSeparator:ma}},xa=function(e){var n=e.ariaLabel,o=e.children,a=e.isLoadingStyles,l=e.onOpen,c=e.popupWindow,s=oe(r(!1),2),d=s[0],p=s[1];return i((function(){d||a||(h(l)&&l(c),p(!0))}),[a]),u(t.Fragment,null,o,a&&u("div",{"aria-label":n,css:Ca.wrapper},u(ki,null)))},wa=function(e){var t=e.children,n=e.height,a=void 0===n?500:n,l=e.id,c=void 0===l?"":l,s=e.onClose,d=e.onOpen,p=e.open,f=e.position,g=void 0===f?{x:50,y:200}:f,b=e.title,v=void 0===b?"":b,m=e.width,y=void 0===m?500:m,x=oe(r(),2),w=x[0],C=x[1],k=o(),I=o(document.querySelectorAll("[data-emotion]")),O=oe(r(!1),2),P=O[0],A=O[1],L=oe(r(p),2),E=L[0],S=L[1],F=oe(r(!1),2),j=F[0],W=F[1];i((function(){var e=document.querySelectorAll("[data-emotion]");E&&k.current&&Array.from(e).some((function(e,t){return e!==I.current[t]}))&&(I.current=e,z())})),i((function(){return function(){return k.current&&k.current.close()}}),[]),i((function(){E&&T(),!k.current||k.current.closed||E||k.current.close()}),[t,E]),i((function(){k.current&&(k.current.document.title=v)}),[v]),i((function(){return S(p)}),[p]);var M=function(){A(!1),S(!1),W(!1),h(s)&&s()},z=function(){var e=k.current.document,t=e.head,n=t.querySelectorAll("style");Array.from(n).forEach((function(e){return t.removeChild(e)})),I.current.forEach((function(n){var r=n.textContent,o=n.sheet,i=e.createElement("style");if(i.appendChild(e.createTextNode("")),t.appendChild(i),r)i.appendChild(e.createTextNode(r));else{var a=i.sheet;[].forEach.call(o.cssRules,(function(e){a.insertRule(e.cssText)}))}})),requestAnimationFrame((function(){A(!0)}))},T=function(){if(!E||!k.current||k.current.closed)if(A(!1),k.current=window.open("",c,"left=".concat(g.x,",height=").concat(a,",top=").concat(g.y,",width=").concat(y)),k.current){var e=k.current.document.createElement("main");e.setAttribute("id",c),C(e),k.current.onbeforeunload=M,k.current.document.body.appendChild(e),k.current.document.title=v,requestAnimationFrame((function(){z(),S(!0),W(!0)}))}else B("A PopupWindow failed to open")};return E&&j&&k.current&&w?J.createPortal(u(xa,{isLoadingStyles:!P,onOpen:d,popupWindow:k.current},t),w):null},Ca={wrapper:{name:"z2hlcz",styles:"background-color:#fff;bottom:0;left:0;padding:30px 10px;position:absolute;right:0;top:0;"}},ka=function(e){var n=e.ariaLabel,a=e.children,c=e.footer,s=void 0===c?t.Fragment:c,p=e.header,g=void 0===p?t.Fragment:p,b=e.id,v=e.isNested,m=e.margin,y=void 0===m?"auto":m,x=e.onLayout,w=e.orientation,C=void 0===w?"portrait":w,k=e.parentFooterHeight,I=void 0===k?0:k,O=e.parentHeaderHeight,P=void 0===O?0:O,A=e.verticalAlign,L=void 0===A?"top":A,E=oe(r("auto"),2),S=E[0],F=E[1],j=oe(r("auto"),2),W=j[0],M=j[1],B=o(),z=o(),T=l((function(){return("auto"===S?0:S)+("auto"===W?0:W)+I+P}),[S,W,I,P]);return i((function(){B.current&&F(B.current.offsetHeight),z.current&&M(z.current.offsetHeight)}),[g,s,z.current,B.current]),i((function(){"auto"!==S&&"auto"!==W&&h(x)&&x()}),[S,W]),u(t.Fragment,null,!v&&u(f,{styles:d("@media print{*{-webkit-print-color-adjust:exact;}@page{margin:",y,";size:",C,";}}")}),u("table",{"aria-label":n,cellPadding:0,cellSpacing:0,css:Pa.printLayoutTable,id:b},u("thead",null,u("tr",null,u("td",{css:Pa.printLayoutTableCell,style:{height:W}},u("header",{ref:z,css:d([Pa.header,!v&&Pa.printHeader])},u(g,null))))),u("tbody",null,u("tr",null,u("td",{css:d([Pa.printLayoutTableCell,Pa.content]),style:{height:v?"calc(100vh - ".concat(T,"px)"):"auto",verticalAlign:L}},t.Children.map(a,(function(e){return e&&e.type&&("PrintLayout"===e.type.displayName||"PrintLayout"===e.type.name)?t.cloneElement(e,Q(Q({},e.props),{},{isNested:!0,parentFooterHeight:S,parentHeaderHeight:W})):e}))))),u("tfoot",null,u("tr",null,u("td",{css:Pa.printLayoutTableCell,style:{height:S}},u("footer",{ref:B,css:d([Pa.footer,!v&&Pa.printFooter])},u(s,null)))))))};ka.displayName="PrintLayout";var Ia,Oa,Pa={content:{name:"10klw3m",styles:"height:100%;"},footer:{name:"1tqge2o",styles:"background-color:#fff;overflow:hidden;"},header:{name:"1tqge2o",styles:"background-color:#fff;overflow:hidden;"},printFooter:{name:"oo54uf",styles:"@media print{bottom:0;left:0;position:fixed;width:100%;}"},printHeader:{name:"134o4pi",styles:"@media print{left:0;position:fixed;top:0;width:100%;}"},printLayoutTable:d(Oe,";width:100%;/* Margin will be provided by @page rule in global when printing */ @media print{padding:0;page-break-after:always;page-break-before:always;page-break-inside:avoid;}"),printLayoutTableCell:{name:"y8aj3r",styles:"padding:0;"}},Aa=["ariaLabel","autoPrint","children","closeOnPrint","id","onClose","onOpen"],La=function(e){var t=e.ariaLabel,n=e.autoPrint,a=e.children,l=e.closeOnPrint,c=e.id,s=e.onClose,d=e.onOpen,p=ne(e,Aa),f=oe(r(!1),2),g=f[0],b=f[1],v=oe(r(!1),2),m=v[0],y=v[1],x=o();i((function(){g&&m&&w()}),[g,m]);var w=function(){h(d)&&d(x.current),n&&x.current.print()},C=function(){l&&x.current.close()};return u(wa,ee({},p,{id:c,onClose:function(){b(!1),y(!1),h(s)&&s()},onOpen:function(e){(x.current=e,x.current.document.body.style.margin="0",x.current.document.body.style.padding="0","onafterprint"in x.current)?x.current.onafterprint=C:window.matchMedia("print").addListener((function(e){return e.matches&&C()}));y(!0)}}),u(ka,ee({ariaLabel:t},p,{onLayout:function(){b(!0)}}),a))},Ea=function(e){var t=e.children,n=e.color,r=e.id,i=o(),a=T(Sa);return ut("--border-left-color",n,i),u("h3",{css:a.sectionHeading,id:r},t)},Sa=function(e){var t=e.colorPalette;return{sectionHeading:d("--border-left-color:",t.secondary,";border-left:2px solid var(--border-left-color);color:",t.font,";font-family:'Montserrat',sans-serif;font-size:14px;font-weight:500;line-height:20px;margin:0;padding-left:7px;")}},Fa=function(e){var t=e.children,n=e.color,r=e.id,i=o(),a=T(ja);return ut("--color",n,i),u("h3",{css:a.title,id:r,ref:i},t)},ja=function(e){var t=e.colorPalette;return{title:d("--color:",t.font,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:18px;font-weight:400;line-height:30px;margin-top:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;")}};function Wa(){return Wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wa.apply(this,arguments)}var Ma,Ba=n((function(t,n){return e.createElement("svg",Wa({viewBox:"0 0 1440 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Ia||(Ia=e.createElement("mask",{id:"a","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:1440,height:150},e.createElement("path",{fill:"#fff",d:"M0 0h1440v150H0z"}))),Oa||(Oa=e.createElement("g",{mask:"url(#a)"},e.createElement("path",{opacity:.4,d:"M4.093 21.192 1.725-50.176a5 5 0 0 1 3.923-5.05l249.66-54.934a4.999 4.999 0 0 1 4.394 1.144L388.786 5.551a5.002 5.002 0 0 1 1.444 5.26L372.279 67.06a5 5 0 0 1-3.215 3.233L138.73 145.341a5 5 0 0 1-4.961-1.098L5.679 24.681a5 5 0 0 1-1.586-3.49ZM1438.64 11.165l5.18-83.581a5 5 0 0 0-3.78-5.16l-286.09-71.608a4.986 4.986 0 0 0-4.42 1.017L995.649-19.287a4.998 4.998 0 0 0-1.719 2.995L970.938 118.98a5 5 0 0 0 4.653 5.83l370.079 20.533a5.005 5.005 0 0 0 4.42-2.188l87.7-129.495c.5-.74.8-1.602.85-2.495Z",fill:"#47BAD1"}),e.createElement("path",{opacity:.4,d:"m341.147 35.262 214.851 26.282a5.003 5.003 0 0 0 4.313-1.605l92.293-101.841c3.011-3.322.465-8.622-4.01-8.349L337.991-31.26a5 5 0 0 0-4.686 5.296l3.459 56.569a5 5 0 0 0 4.383 4.657Z",fill:"#A55896"}),e.createElement("path",{opacity:.4,d:"m636.066 94.071-192.7-231.608c-1.998-2.401-1.329-6.026 1.393-7.556l302.76-170.202a5 5 0 0 1 6.809 1.908L926.159-7.729c1.532 2.725.215 6.173-2.744 7.182L641.524 95.605a5 5 0 0 1-5.458-1.534Z",fill:"#2855A2"}),e.createElement("path",{opacity:.4,d:"M983.494 89.93 703.798 14.977c-3.017-.808-4.562-4.154-3.221-6.975l143.28-301.486a5 5 0 0 1 6.662-2.37l304.371 144.653c2.83 1.342 3.74 4.918 1.91 7.45L988.837 88.035a5 5 0 0 1-5.343 1.895Z",fill:"#B0C600"}))))})),za={cancel:"Cancel",code:"Code",forgotPassword:"Forgot your password?",newPassword:"New password",password:"Password",repeatNewPassword:"Re-enter new password",username:"Username",changePasswordPrompt:"Enter a new password below",changePasswordSubmit:"Change password",changePasswordTitle:"Change your password",changePasswordWarning:"Passwords do not match",forceChangePasswordPrompt:"You must enter a new password",forceChangePasswordTitle:"Change your password",mfaPrompt:"A code has been sent to the email address associated with your account. Enter the code below to continue",mfaSubmit:"Submit code",mfaTitle:"Verify signin",confirmResetPasswordPrompt:"Enter the provided code along with your new password below",requestResetPasswordPrompt:"Enter your email address below and we will send a code to reset your password",resetPasswordHaveCode:"Already have a reset code?",resetPasswordSubmit:"Request reset",resetPasswordTitle:"Reset your password",signin:"Sign in",signinPrompt:"Please sign in to access your account",signout:"Sign out",signup:"Sign up now",signupPrompt:"Don't have an account?",welcomeMessage:"Hello, {username}",welcomeMessageNotSignedIn:"Welcome",welcomeMessagePunctuation:"."},Ta=function(e){var n=e.ariaDescription,o=e.ariaLabel,a=e.allowForgotPassword,c=void 0===a||a,s=e.allowSignup,p=void 0===s||s,f=e.autocomplete,g=void 0===f||f,b=e.enforceFormCompletion,v=e.id,m=e.padding,y=void 0===m?"50px 30px 30px":m,x=e.passwordValidator,w=void 0===x?function(e,t){return e===t}:x,C=e.profileActions,k=e.repeatNewPassword,I=e.type,O=void 0===I?"external":I,P=e.onCancel,A=e.onChangePassword,L=e.onConfirmResetPassword,E=e.onForceChangePassword,S=e.onForgotPassword,F=e.onHaveResetCode,j=e.onRequestResetPassword,W=e.onSignin,M=e.onSignout,B=e.onSignup,z=e.onSubmitMfa,Z=e.loading,R=e.isSignedIn,H=void 0!==R&&R,J=e.username,X=e.i18n,N=oe(D(),1)[0].colorPalette,G=T(qa),V=Q(Q({},za),X),Y=oe(r(!0),2),q=Y[0],_=Y[1],U=oe(r("confirmResetPassword"===O),2),K=U[0],$=U[1],te=oe(r(""),2),ne=te[0],re=te[1],ie=oe(r(""),2),ae=ie[0],le=ie[1],ce=oe(r(""),2),se=ce[0],de=ce[1],ue=oe(r(""),2),pe=ue[0],fe=ue[1],ge=oe(r(""),2),he=ge[0],be=ge[1],ve=oe(r(""),2),me=ve[0],ye=ve[1],xe=mt(n);i((function(){re(""),le(""),de(""),fe(""),be(""),ye("")}),[H]),i((function(){"confirmResetPassword"===O?$(!0):K&&($(!1),be(""))}),[O]),i((function(){k||q||_(!0)}),[k]);var we=function(){h(E)&&E(ae)},Ce=function(){h(A)&&A(he,ae)},ke=function(){h(L)&&L(me,ae,pe)},Ie=function(){h(j)&&j(me)},Oe=function(){h(W)&&W(me,he)},Pe=function(){h(z)&&z(ne)},Ae=l((function(){switch(O){case"changePassword":return V.changePasswordPrompt;case"confirmResetPassword":return V.confirmResetPasswordPrompt;case"forceChangePassword":return V.forceChangePasswordPrompt;case"mfa":return V.mfaPrompt;case"requestResetPassword":return V.requestResetPasswordPrompt;default:return V.signinPrompt}}),[X,O]),Le=l((function(){return"changePassword"!==O&&"confirmResetPassword"!==O&&"requestResetPassword"!==O&&(H||c||p)}),[c,p,H,O]),Ee=l((function(){if(!b)return!1;switch(O){case"changePassword":case"forceChangePassword":return""===ae||!q;case"confirmResetPassword":return""===pe||""===ae||!q;case"mfa":return""===ne;case"requestResetPassword":return""===me;default:return""===he||""===me}}),[q,ne,ae,pe,se,he,me,O]),Se=l((function(){switch(O){case"changePassword":case"forceChangePassword":return V.changePasswordSubmit;case"mfa":return V.mfaSubmit;case"confirmResetPassword":case"requestResetPassword":return V.resetPasswordSubmit;default:return V.signin}}),[X,O]),Fe=l((function(){switch(O){case"changePassword":return V.changePasswordTitle;case"confirmResetPassword":case"requestResetPassword":return V.resetPasswordTitle;case"forceChangePassword":return V.forceChangePasswordTitle;case"mfa":return V.mfaTitle;default:return u(t.Fragment,null,H?"string"==typeof V.welcomeMessage?V.welcomeMessage.replace(/\{username\}/g,J):V.welcomeMessage:V.welcomeMessageNotSignedIn,V.welcomeMessagePunctuation&&u("span",{css:G.welcomeMessagePunctuation},V.welcomeMessagePunctuation))}}),[X,H,O]);return u("div",ee({"aria-label":o,id:v,css:d([G.container,{padding:y}])},xe),u(Ba,{css:G.headerShapes}),u("h1",{css:G.welcomeMessage},Fe),u("section",{css:G.formContainer},H?u("ul",{css:G.actionsList},C&&C.map((function(e,t){var n=e.icon,r=e.label,o=e.onClick;return u("li",{key:t,css:G.action,onClick:o},n&&u(n,{css:G.actionIcon}),r)}))):u(t.Fragment,null,u("h2",{css:G.prompt},Ae),u("form",{autoComplete:g?"on":"off",css:G.form,onSubmit:function(e){e.preventDefault()}},("internal"===O||"requestResetPassword"===O||"confirmResetPassword"===O)&&u($n,{label:V.username,name:"username",onChange:ye,value:me,width:"100%"}),("changePassword"===O||"forceChangePassword"===O||"confirmResetPassword"===O)&&u(t.Fragment,null,"changePassword"===O&&u(ho,{label:V.password,name:"password",onChange:be,value:he}),"confirmResetPassword"===O&&u($n,{label:V.code,name:"code",onChange:fe,value:pe,width:"100%"}),u(ho,{label:V.newPassword,name:"password",onChange:function(e){le(e),k&&_(w(e,se))},value:ae}),k&&u(ho,{highlightColor:N.error,highlighted:!q,label:V.repeatNewPassword,name:"confirmPassword",onChange:function(e){de(e),_(w(ae,e))},value:se}),!q&&u("span",{css:G.changePasswordWarning},V.changePasswordWarning)),"internal"===O&&u(ho,{label:V.password,name:"password",onChange:be,value:he}),"mfa"===O&&u($n,{name:"code",onChange:re,value:ne}),u("div",{css:G.formActions},u(st,{buttonType:"submit",disabled:Ee,icon:Mt,label:Se,onClick:function(){switch(O){case"changePassword":return Ce;case"confirmResetPassword":return ke;case"forceChangePassword":return we;case"mfa":return Pe;case"requestResetPassword":return Ie;default:return Oe}}()}),("changePassword"===O||"confirmResetPassword"===O||"mfa"===O||"requestResetPassword"===O)&&u("a",{css:G.cancel,onClick:function(){h(P)&&P()}},V.cancel),"requestResetPassword"===O&&u("a",{css:d([G.actionLink,G.haveResetCode]),onClick:function(){h(F)&&F()}},V.resetPasswordHaveCode))))),Le&&u("footer",{css:G.userDetails},H?u(Ke,{color:"transparent",icon:Et,iconColor:N.fontLight,label:V.signout,labelColor:N.font,onClick:function(){h(M)&&M()}}):u(t.Fragment,null,c&&u("a",{css:G.actionLink,onClick:function(){h(S)&&S()}},u("h2",{css:G.prompt},V.forgotPassword)),p&&u("div",null,u("h2",{css:G.prompt},V.signupPrompt),u("a",{css:G.actionLink,onClick:function(){h(B)&&B()}},V.signup)))),Z&&u("div",{css:G.loading},u(Ge,null)))},Da={name:"yh3jvl",styles:"height:20px;margin-right:5px;width:20px;"},Za={name:"10w3nmc",styles:"list-style:none;margin:20px 0;padding:0;"},Ra={name:"vl8ak5",styles:"font-family:'Montserrat',sans-serif;font-size:14px;line-height:20px;position:relative;"},Ha={name:"1ajcev4",styles:"& >:not(:last-child){margin-top:10px;}"},Ja={name:"79elbk",styles:"position:relative;"},Xa={name:"w5in9r",styles:"align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:20px;"},Na={name:"1xxqlwe",styles:"display:inline-block;flex:0 1 100%;margin-top:10px;"},Ga={name:"19hbn8x",styles:"left:0;position:absolute;top:0;width:100%;"},Va={name:"zhwjfn",styles:"align-items:center;background-color:rgba(255,255,255,0.85);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;"},Ya={name:"1vnyfz6",styles:"font-size:18px;font-weight:normal;line-height:40px;margin:0;"},qa=function(e){var t=e.colorPalette;return{action:d("border-radius:",Ie.borderRadius,";cursor:pointer;display:flex;padding:10px;&:hover{background-color:",t.neutral,";}&:not(:last-child){margin-bottom:10px;}"),actionIcon:Da,actionLink:d("color:",t.primaryDark,";cursor:pointer;text-decoration:none;&:hover{text-decoration:underline;}"),actionsList:Za,cancel:d("color:",t.secondaryDark,";cursor:pointer;font-size:12px;margin-left:10px;:hover{text-decoration:underline;}"),changePasswordWarning:d("color:",t.errorDark,";font-size:12px;"),container:Ra,form:Ha,formContainer:Ja,formActions:Xa,haveResetCode:Na,headerShapes:Ga,loading:Va,prompt:d("color:",t.fontLight,";font-size:14px;font-weight:normal;margin:0;"),userDetails:d("border-top:1px solid ",t.border,";display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:30px;padding-top:20px;& > *{white-space:nowrap;:not(:last-child){margin:0 15px 15px 0;}}"),welcomeMessage:Ya,welcomeMessagePunctuation:d("color:",t.secondary,";")}};function _a(){return _a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_a.apply(this,arguments)}var Ua=n((function(t,n){return e.createElement("svg",_a({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Ma||(Ma=e.createElement("g",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor"},e.createElement("path",{d:"M6.667 6.667A3.332 3.332 0 1 1 10 10a3.332 3.332 0 0 1-3.333-3.333Zm5 0C11.667 5.75 10.917 5 10 5s-1.667.75-1.667 1.667c0 .916.75 1.666 1.667 1.666s1.667-.75 1.667-1.666ZM3.333 15c0-2.217 4.442-3.333 6.667-3.333 2.225 0 6.667 1.116 6.667 3.333v1.667H3.333V15ZM15 15c-.167-.592-2.75-1.667-5-1.667-2.242 0-4.808 1.067-5 1.667h10Z"}))))})),Qa=["ariaLabel","id","onClose","onOpen","open"],Ka=function(e){var t=e.ariaLabel,n=e.id,o=e.onClose,a=e.onOpen,l=e.open,c=void 0!==l&&l,s=ne(e,Qa),d=oe(D(),1)[0].colorPalette,p=oe(r(c),2),f=p[0],g=p[1];i((function(){c!==f&&g(c)}),[c]);var h=T(el);return u(nn,{"aria-label":t,id:n,maxHeight:"425px",onHide:o,onShow:a,open:f,padding:"0",toggle:u(Ke,{allowEventPropagation:!0,color:"transparent",icon:function(e){return u(Ua,ee({css:h.avatar},e))},id:"signinMenu",labelColor:d.fontLight},u(he,{css:h.arrow})),width:"276px"},u(Ta,s))},$a={name:"198hkja",styles:"display:flex;height:20px;width:20px;"},el=function(e){var t=e.colorPalette;return{arrow:$a,avatar:d("background-color:",t.neutral,";border-radius:50%;padding:1px;")}},tl=function(e){var t=e.children,n=e.color,r=e.id,i=o(),a=T(nl);return ut("--color",n,i),u("p",{css:a.subParagraph,id:r,ref:i},t)},nl=function(e){var t=e.colorPalette;return{subParagraph:d("--color:",t.font,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:12px;font-weight:400;line-height:20px;margin:0;")}},rl=function(e){var t=e.children,n=e.id,r=T(ol);return u("h2",{css:r.heading,id:n},t)},ol=function(e){var t=e.colorPalette;return{heading:d("color:",t.font,";font-family:'Montserrat',sans-serif;font-size:24px;font-weight:400;line-height:40px;margin:0 0 30px 0;")}},il={name:"cojqun",styles:"border-top-color:transparent;"},al={name:"xi606m",styles:"text-align:center;"},ll={name:"8atqhb",styles:"width:100%;"},cl={name:"158oh36",styles:"white-space:nowrap;width:1px;"},sl={name:"s2uf1z",styles:"text-align:right;"},dl={name:"79elbk",styles:"position:relative;"},ul={name:"guxjpz",styles:"font-weight:500;text-align:left;"},pl={name:"a1tdk3",styles:"align-items:flex-start;bottom:0;display:flex;justify-content:center;left:0;margin:30px;position:absolute;right:0;"},fl={name:"14bbtl1",styles:"bottom:calc(50% - 5px);"},gl={name:"13s366x",styles:"top:calc(50% - 5px);"},hl=function(e){var t=e.colorPalette;return{bodyCell:d("border:0px solid ",t.border,";border-top-width:1px;"),cell:d("color:",t.font,";padding:9px 12px;position:relative;transition:border-color ",100,"ms linear;@media print{font-size:13px;}"),cellGrouped:il,cellCenter:al,cellMax:ll,cellMin:cl,cellRight:sl,cellSelected:d("background-color:",_(t.secondary).alpha(.1).rgb().string(),";border-bottom:1px solid var(--selected-border-color);"),container:dl,headingCell:ul,headingCellSortable:d("cursor:pointer;padding-right:40px;transition:color 0.05s linear;&:hover{color:",t.fontLight,';&:not([data-sorted="ascending"]) > svg:first-of-type{color:',t.fontLight,';}&[data-sorted="ascending"] > svg:last-of-type{color:',t.fontLight,";}}"),loading:pl,sortableIcon:d("color:",t.border,";position:absolute;right:10px;width:20px;"),sortableIconActive:d("color:",t.secondary,";"),sortableIconAsc:fl,sortableIconDesc:gl,table:d("border-bottom:1px solid ",t.border,";border-collapse:collapse;border-spacing:0;font-family:'Montserrat',sans-serif;font-size:14px;line-height:20px;width:100%;"),tableBody:d("--selected-border-color:",t.secondary,";"),tableBodySorting:d("--selected-border-color:",_(t.secondary).alpha(.25).rgb().string(),";& > tr{opacity:0.25;transition-timing-function:ease-in;}"),tableRow:d("transition:opacity ",100,"ms ease-out;")}},bl=function(e,t){var n={};return"max"===e?n=t.cellMax:"min"===e?n=t.cellMin:e&&(n={minWidth:e}),n},vl=function(e,t){var n;if(Cl(e)){var r,o=e.key;n=null==t||null===(r=t[o])||void 0===r?void 0:r.toString()}else if(wl(e)){var i=e.render;n=xl(i)?i(t):i}else{var a=e.value;n=kl(a)?a(t):a}return n},ml=function(e,t){return Object.keys(e||{}).reduce((function(n,r){var o=e[r];return Q(Q({},n),{},$({},r,"function"==typeof o?o(t):o))}),{})},yl=function(e){return"function"==typeof e},xl=function(e){return"function"==typeof e},wl=function(e){return Object.hasOwn(e,"render")},Cl=function(e){return Object.hasOwn(e,"key")},kl=function(e){return"function"==typeof e},Il=function(e){var n,r=e.align,o=e.columnProps,i=e.index,a=e.onSort,l=e.sortable,c=e.sortedColumnDirection,s=e.sortedColumnIndex,p=e.styles,f=o.align,g=o.headingStyle,b=o.onSort,v=o.sortable,m=o.sorted,y=o.title,x=o.width,w=f||r,C=l&&!1!==v||v,k=m||C&&i===s,I=zo({"data-sorted":c});return u("th",ee({},I,{css:d([p.cell,p.headingCell,C&&p.headingCellSortable,"center"===w&&p.cellCenter,"right"===w&&p.cellRight,bl(x,p),g]),onClick:C?(n=i,function(){var e=n===s&&"ascending"===c?"descending":"ascending";a(e,n),h(b)&&b(e)}):null}),y,C&&u(t.Fragment,null,u(ke,{css:d([p.sortableIcon,p.sortableIconAsc,k&&"ascending"===c&&p.sortableIconActive])}),u(he,{css:d([p.sortableIcon,p.sortableIconDesc,k&&"descending"===c&&p.sortableIconActive])})))},Ol=function(e){var t=e.align,n=e.cellStyle,r=e.columns,o=e.index,i=e.onPress,a=e.previousRowGroup,l=e.row,c=e.rowKey,s=e.rowOptions,p=e.rowStyle,f=e.selectedRowKey,g=e.styles,h=ml(s,l).group,b="function"==typeof p?p(l,o):p;return u("tr",{css:d([g.tableRow,b]),onClick:function(){return i(l,o)},"data-row-group":h},r.map((function(e,r){var i=e.align,s=e.style,p=i||t,b=vl(e,l),v=yl(n)?n(l,b,r):n,m=yl(s)?s(l,b,r):s;return u("td",{key:"row_".concat(o,"_").concat(r),css:d([g.cell,g.bodyCell,"center"===p&&g.cellCenter,"right"===p&&g.cellRight,h&&h===a&&g.cellGrouped,v,m,c===f&&g.cellSelected])},b)})))},Pl=function(e){var t,n=e.cellStyle,a=e.columns,c=e.columnOptions,s=e.data,p=e.keyExtractor,f=e.id,g=e.onClickRow,b=e.onPressRow,v=void 0===b?g:b,y=e.preSorted,x=e.rowOptions,w=e.rowStyle,C=e.selectedRow,k=e.sortable,I=void 0!==k&&k;Qe('WJEC One Table: The "onClickRow" prop has been deprecated in favor of "onPressRow" for accessibility reasons and will be removed in a future version of the library. Switch to using "onPressRow" instead of "onClickRow" as soon as possible in order to avoid unexpected behavior in future',(function(){return void 0!==g}),[g]);var O=o(),P=oe(r(!1),2),A=P[0],L=P[1],E=oe(r(),2),S=E[0],F=E[1],j=oe(r(),2),W=j[0],M=j[1],B=o(),z=o(),D=l((function(){return function(e,t){var n=null==t?void 0:t[0];return e instanceof Array?e:e(n)}(a,s)}),[a,s]),Z=l((function(){return function(e,t,n){var r;return e&&(r=n?m(e,n,t):t),r}(C,s.indexOf(C),p)}),[s,p,C]),R=l((function(){return D.filter((function(e){var t=e.sortable;return I&&!1!==t||t}))}),[D]),H=l((function(){return function(e){var t=e.data,n=e.preSorted,r=e.sortableColumns,o=e.sortedColumn,i=e.sortedColumnDirection,a=ie(t);if(!n&&r.length>0&&o){var l=o.sortableValue;a.sort((function(e,n){var r,a=l?m(e,l,t.indexOf(e)):vl(o,e),c=l?m(n,l,t.indexOf(n)):vl(o,n);return void 0===a?1:void 0===c?-1:(null==a||null===(r=a.toString())||void 0===r?void 0:r.localeCompare(null==c?void 0:c.toString()))*("ascending"===i?1:-1)}))}return a}({data:s,preSorted:y,sortableColumns:R,sortedColumn:D[W],sortedColumnDirection:S})}),[D,s,y,R,S,W]);i((function(){if(R.length>0||y){var e=D.indexOf(R.find((function(e){return e.sorted}))||R[0]),t=D[e].sorted,n=void 0===t?"ascending":t;!n||n===B.current&&e===z.current||(B.current=n,z.current=e,F(n),M(e))}}),[D,R]),i((function(){A&&L(!1)}),[H]);var J=function(e,t){y||(L(!0),setTimeout((function(){t!==W&&M(t),F(e)}),100))},X=function(e,t){h(v)&&v(e,t)},N=T(hl);return u("div",{css:N.container},u("table",{css:N.table,id:f},u("thead",{ref:O},u("tr",null,D.map((function(e,t){var n=null==s?void 0:s[0],r=ml(c,n).align;return u(Il,{key:"table_header_".concat(t),align:r,columnProps:e,index:t,onSort:J,sortable:I,sortedColumnDirection:S,sortedColumnIndex:W,styles:N})})))),u("tbody",{css:d([N.tableBody,A&&N.tableBodySorting])},H.map((function(e,t){var r=p?m(e,p,t):t,o=ml(c,e).align,i=(t>0&&ml(x,H[t-1])).group;return u(Ol,{key:r,align:o,cellStyle:n,columns:D,index:t,onPress:X,previousRowGroup:i,row:e,rowKey:r,rowOptions:x,rowStyle:w,selectedRowKey:Z,styles:N})})))),A&&u("div",{css:d([N.loading,{top:null==O||null===(t=O.current)||void 0===t?void 0:t.offsetHeight}])},u(Ge,null)))},Al=function(e){var t=e.ariaLabel,n=e.backgroundStyle,a=void 0===n?"filled":n,c=e.disabledTabs,s=void 0===c?[]:c,p=e.id,f=e.keyExtractor,g=e.labelExtractor,x=e.onSelect,w=e.scrollable,C=e.selectedTab,k=e.selectedTabColor,P=e.tabs,A=oe(r(z(C,P)),2),L=A[0],E=A[1],S=o(),F=T(Ll),j=l((function(){return s.map((function(e){return b(e)?e.key:m(e,f,P.indexOf(e))}))}),[s]),W=l((function(){return b(L)?L.key:m(L,f,P.indexOf(L))}),[L]);Ne("WJEC-One Tabs: You must specify a keyExtractor if the tabs array contains non-primitive entry types",(function(){return!I(P)&&!O(P)&&!f}),[f,P]),i((function(){void 0!==w&&y('WJEC One Tabs: The "scrollable" prop has been deprecated and will be removed in a future version of the library. The Tabs component will now behave as though "scrollable={true}" in all cases')}),[w]),i((function(){E(z(C,P))}),[C,P]),i((function(){if(S.current){var e=S.current.querySelector("[data-selected]");e&&e.scrollIntoView({behavior:"smooth"})}}),[S.current,L]);return u("div",{"aria-label":t,ref:S,css:d([F.container,"filled"===a&&F.containerFilled,"transparent"===a&&F.containerTransparent,k&&{"--highlight-color":k}]),id:p},u("div",{css:F.innerContainer},P.map((function(e,t){var n=(b(e)?e.key:m(e,f,t)).toString(),r=n===W,o=j.includes(n);return u("button",ee({key:n,css:d([F.tab,"filled"===a&&F.tabFilled,"transparent"===a&&F.tabTransparent]),disabled:o,onClick:function(t){var n=t.target;return function(e,t){var n=S.current.querySelector("[data-selected]");h(x)&&x(e),S.current.style.setProperty("--anim-height","".concat(n.offsetHeight,"px")),S.current.style.setProperty("--anim-left","".concat(n.offsetLeft,"px")),S.current.style.setProperty("--anim-width","".concat(n.offsetWidth,"px")),t.setAttribute("data-animating","true"),n.removeAttribute("data-selected"),t.setAttribute("data-selected","true"),requestAnimationFrame((function(){S.current.style.setProperty("--anim-duration","".concat(150,"ms")),S.current.style.setProperty("--anim-height","".concat(t.offsetHeight,"px")),S.current.style.setProperty("--anim-left","".concat(t.offsetLeft,"px")),S.current.style.setProperty("--anim-width","".concat(t.offsetWidth,"px")),t.scrollIntoView({behavior:"smooth"}),window.setTimeout((function(){t.removeAttribute("data-animating"),S.current.style.removeProperty("--anim-duration"),S.current.style.removeProperty("--anim-height"),S.current.style.removeProperty("--anim-left"),S.current.style.removeProperty("--anim-width"),E(e)}),150)}))}(e,n)},type:"button"},r?{"data-selected":!0}:null),b(e)?e.label:v(e,g,t))}))))},Ll=function(e){var t=e.colorPalette;return{container:d("--anim-duration:0ms;--anim-height:0;--anim-left:0;--anim-width:0;--highlight-color:",t.secondary,";flex-shrink:0;max-width:100%;position:relative;"),containerFilled:d("--anim-left:10px;--highlight-color:",t.primary,";border-radius:",Ie.borderRadius,";background-color:",t.neutral,";& > div{padding:10px;&::before{border-radius:",Ie.borderRadius,";height:var(--anim-height);top:10px;}}"),containerTransparent:d("& > div{padding-bottom:1px;}&::before{border-bottom:1px solid ",t.border,";content:'';left:0;position:absolute;top:28px;width:100%;}"),innerContainer:d(Ie.scrollbar,";display:flex;overflow-x:auto;position:relative;&::before{background-color:var(--highlight-color);content:'';height:2px;left:var(--anim-left);position:absolute;top:27px;transition:height var(--anim-duration) linear,left var(--anim-duration) ease-in-out,top var(--anim-duration) ease-in-out,width var(--anim-duration) linear;width:var(--anim-width);}"),tab:d("align-items:center;background-color:transparent;border:none;color:",t.font,';cursor:pointer;display:flex;font-family:"Montserrat",sans-serif;font-size:14px;font-weight:400;justify-content:center;line-height:20px;margin:0;outline:none;padding:0;position:relative;scroll-margin:10px;transition:color 100ms linear;white-space:pre;z-index:1;&:not(:last-child){margin-right:20px;}&:disabled{opacity:0.5;}&[data-selected]{font-weight:500;}'),tabFilled:d("border-radius:",Ie.borderRadius,";padding:5px 10px;&[data-selected]:not([data-animating]){background-color:var(--highlight-color);color:#fff;}&:hover:not([data-animating]):not([data-selected]){background-color:",t.border,";}"),tabTransparent:d("padding:4px 0;&[data-selected]:not([data-animating]){&::after{background-color:var(--highlight-color);border-radius:",Ie.borderRadius,";content:'';height:2px;left:0;position:absolute;top:calc(100% - 1px);width:100%;}}")}};export{Te as Accordion,He as Breadcrumb,Ke as Button,xt as Card,Ht as Carousel,Er as CheckBox,Ge as CircularProgress,ue as ColorPalette,pe as ColorPaletteEduqas,on as ContextHelp,vn as ContextMenu,Rr as DateTimePicker,ot as DestructiveButton,wn as DragAndDropList,Gr as Email,un as Emphasis,Vo as ErrorCard,ca as ErrorNotification,Kr as FileInput,sr as FilterList,ii as Footer,kr as Form,bi as Header,at as IconButton,da as InfoNotification,Ho as InformationCard,$n as Input,ki as LinearProgress,Jr as Link,ct as LinkButton,Ai as LocalizationMenu,Ni as Modal,Ui as Notification,wi as Page,fa as PageTitle,ha as Pagination,fn as Paragraph,ho as Password,nn as Popup,wa as PopupWindow,st as PrimaryButton,ka as PrintLayout,La as PrintWindow,mo as RadioGroup,Ei as ScrollableContainer,dt as SecondaryButton,Ea as SectionHeading,Fa as SectionTitle,Mo as Select,Ta as SigninForm,Ka as SigninMenu,Ie as StylePalette,tl as SubParagraph,rl as SubTitle,Yo as SuccessCard,pa as SuccessNotification,Pl as Table,Al as Tabs,To as TextArea,Zo as Toggle,qo as WarningCard};
|
|
1
|
+
import*as e from"react";import t,{forwardRef as n,useState as r,useRef as o,useEffect as i,useLayoutEffect as a,useMemo as l,useImperativeHandle as c,useContext as s}from"react";import{css as d,jsx as u,keyframes as p,Global as f}from"@emotion/core";import{svgComponentToDataURL as g,isCallableFunction as h,isKeyLabelPair as b,extractContent as v,extractKey as m,developerWarning as y,isSvgComponent as x,throttle as w,findScrollableParent as C,isArrayEqual as k,isPrimitiveArray as I,isKeyLabelPairArray as O,formatDateTime as P,formatDate as A,preventDefaultBehavior as L,isPlainObject as E,containsDuplicates as S,isPrimitive as F,isRefObject as j,getKeyboardFocusableElements as W,formattedStringToPlainText as M,developerError as B,getSelected as z}from"./utils";import{useWjecOneThemeStyles as T,useWjecOneTheme as D}from"wjec-one-dev-utils/theme";import{useButton as Z,useId as R}from"react-aria";import{useSwipeable as H}from"react-swipeable";import J,{createPortal as X}from"react-dom";import{DragDropContext as N,Droppable as G,Draggable as V}from"react-beautiful-dnd";import{disableBodyScroll as Y,enableBodyScroll as q}from"body-scroll-lock";import _ from"color";function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ee.apply(this,arguments)}function te(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function ne(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function re(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||ae(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ie(e){return function(e){if(Array.isArray(e))return le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ae(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e,t){if(e){if("string"==typeof e)return le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?le(e,t):void 0}}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ce(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ae(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}var se,de=Object.freeze({border:"#BCCBD1",entryLevel:"#6B994D",error:"#D32F2F",errorBackground:"#FBEBEB",errorDark:"#A82424",errorDarker:"#661616",font:"#2E3638",fontLight:"#606A6C",gceALevel:"#516FA2",gceASLevel:"#4D9995",gcse:"#81994D",highlight:"#FFEDC1",neutral:"#F1F3F4",neutralDark:"#2D3538",neutralLight:"#56666C",offBlack:"#001B26",offWhite:"#FAFCFC",otherQualifications:"#A55395",secondary:"#47BAD1",secondaryDark:"#1F6B7A",secondaryDarkActive:"#103840",secondaryLight:"#C0E8F0",secondaryLightActive:"#96CBD6",success:"#43A047",successBackground:"#EDF6ED",successDark:"#3C9040",successDarker:"#2A662D",tertiary:"#FFEDC1",vQAward:"#D86C8B",warning:"#F57C00",warningBackground:"#FEF2E6",warningDark:"#EF6C00",welshBaccAdvanced:"#6E81DC",welshBaccFoundation:"#BF8660",welshBaccNational:"#B4C160",welshBaccKS4:"#B25A6C"}),ue=Object.freeze(Q(Q({},de),{},{primary:"#007DB2",primaryDark:"#00628C",primaryDarkActive:"#004766",primaryLight:"#E5F8FF",primaryLightActive:"#CCF1FF"})),pe=Object.freeze(Q(Q({},de),{},{primary:"#F1511B",primaryDark:"#BF3608",primaryDarkActive:"#BF3608",primaryLight:"#FDB8A1",primaryLightActive:"#FDB8A1"}));function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fe.apply(this,arguments)}var ge,he=n((function(t,n){return e.createElement("svg",fe({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),se||(se=e.createElement("path",{d:"M6.767 7.742 10 10.975l3.233-3.233a.83.83 0 1 1 1.175 1.175l-3.825 3.825a.83.83 0 0 1-1.175 0L5.583 8.917a.83.83 0 0 1 0-1.175.848.848 0 0 1 1.184 0Z",fill:"currentColor"})))}));function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},be.apply(this,arguments)}var ve,me=n((function(t,n){return e.createElement("svg",be({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),ge||(ge=e.createElement("path",{d:"M12.258 13.233 9.025 10l3.233-3.233a.83.83 0 1 0-1.175-1.175L7.258 9.417a.83.83 0 0 0 0 1.175l3.825 3.825a.83.83 0 0 0 1.175 0 .848.848 0 0 0 0-1.184Z",fill:"currentColor"})))}));function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ye.apply(this,arguments)}var xe,we=n((function(t,n){return e.createElement("svg",ye({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),ve||(ve=e.createElement("path",{d:"M7.742 13.233 10.975 10 7.742 6.767a.83.83 0 1 1 1.175-1.175l3.825 3.825a.83.83 0 0 1 0 1.175l-3.825 3.825a.83.83 0 0 1-1.175 0 .848.848 0 0 1 0-1.184Z",fill:"currentColor"})))}));function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ce.apply(this,arguments)}var ke=n((function(t,n){return e.createElement("svg",Ce({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),xe||(xe=e.createElement("path",{d:"M6.767 12.258 10 9.025l3.233 3.233a.83.83 0 1 0 1.175-1.175l-3.825-3.825a.83.83 0 0 0-1.175 0l-3.825 3.825a.83.83 0 0 0 0 1.175.848.848 0 0 0 1.184 0Z",fill:"currentColor"})))})),Ie=Object.freeze({borderRadius:"4px",dropShadow:"0px 2px 10px ".concat(ue.border),scrollbar:d("&::-webkit-scrollbar{height:14px;width:",14,"px;}&::-webkit-scrollbar-button:single-button{display:block;height:16px;&:horizontal{&:decrement{background:",g(t.createElement(me,{color:ue.fontLight}))," 0 -3px / 20px no-repeat;&:hover{background-image:",g(t.createElement(me,{color:ue.font})),";}}&:increment{background:",g(t.createElement(we,{color:ue.fontLight}))," center -3px / 20px no-repeat;&:hover{background-image:",g(t.createElement(we,{color:ue.font})),";}}}&:vertical{&:decrement{background:",g(t.createElement(ke,{color:ue.fontLight}))," center 0 / 20px no-repeat;&:hover{background-image:",g(t.createElement(ke,{color:ue.font})),";}}&:increment{background:",g(t.createElement(he,{color:ue.fontLight}))," center -3px / 20px no-repeat;&:hover{background-image:",g(t.createElement(he,{color:ue.font})),";}}}}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",ue.border,";border:3px solid transparent;border-radius:7px;&:hover{background-color:",ue.fontLight,";}}&::-webkit-scrollbar-track{background-clip:padding-box;background-color:",ue.neutral,";border:3px solid transparent;border-radius:7px;}"),visiblyHidden:{name:"1dw21dg",styles:"border-width:0;flex:0;height:0;margin:0;max-height:0;max-width:0;min-height:0;min-width:0;opacity:0;overflow:hidden;padding:0;position:absolute;width:0;"}}),Oe={name:"1bhjuxx",styles:"box-sizing:border-box;&::after,&::before,& *,& *::after,& *::before{box-sizing:inherit;}"},Pe=d("&::selection{background-color:",ue.highlight,";}"),Ae=d("color:",ue.neutralDark,";font-family:'Montserrat',sans-serif;font-size:14px;font-weight:400;line-height:16px;"),Le={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},Ee=function(e){var t=e.children,n=e.expanded,l=void 0!==n&&n,c=e.id,s=e.onClick,p=e.spacing,f=void 0===p?"normal":p,g=e.title,b=oe(r(l?"auto":0),2),v=b[0],m=b[1],y=oe(r(l),2),x=y[0],w=y[1],C=oe(r(t),2),k=C[0],I=C[1],O=oe(r("small"===f?10:20),2),P=O[0],A=O[1],L=o(),E=o();i((function(){m(j())}),[L.current&&L.current.clientHeight,k,P]),i((function(){l!==x&&(l?F():S())}),[l]),i((function(){t!==k&&I(t)}),[t]),i((function(){A("small"===f?10:20)}),[f]),a((function(){m(j())}),[k]);var S=function(){w(!1),h(s)&&s(!1)},F=function(){m(j()),w(!0),h(s)&&s(!0)},j=function(){return E.current.scrollHeight+P},W=T(Be);return u("div",{ref:L,css:d([W.container,x&&W.containerExpanded]),"data-accordion-container":!0,id:c},u("button",{type:"button",css:d([W.button,"small"===f&&W.buttonSpacingSmall,x&&W.buttonExpanded]),onClick:function(){!x?F():S()}},g),u("div",{css:d([W.content,x?W.contentExpanded:W.contentCollapsed,{height:x?v:0,opacity:x?1:0,paddingBottom:x?"".concat(P,"px"):0}])},u("div",{ref:E,"data-accordion-content":!0},t)))};Ee.displayName="AccordionContent";var Se={name:"a30to4",styles:"&::after{transform:rotate(180deg) translateY(50%);}"},Fe={name:"2bszaw",styles:"&::before{width:100%;}"},je={name:"1hx1c9u",styles:"padding:0 40px 20px 10px;overflow:hidden;"},We={name:"1l1yfwv",styles:"transition:height 0.2s linear 0.05s,opacity 0.1s linear,padding-bottom 0.2s linear 0.05s;"},Me={name:"16eciko",styles:"transition:height 0.2s linear,opacity 0.1s linear 0.15s,padding-bottom 0.2s linear;"},Be=function(e){var t=e.colorPalette;return{button:d("background-color:transparent;border:none;color:",t.font,";cursor:pointer;display:block;font-family:'Montserrat',sans-serif;font-size:14px;line-height:20px;outline:none;padding:",20,"px 10px;position:relative;text-align:left;transition:padding-left 0.2s linear;width:100%;&::after{background:",g(u(he,null))," center center / 20px no-repeat;content:'';height:20px;position:absolute;right:10px;top:50%;transform:translateY(-50%);transition:transform 0.2s linear;width:20px;}"),buttonExpanded:Se,buttonSpacingSmall:d("padding:",10,"px;"),container:d(Oe,";border-bottom:1px solid ",t.border,";font-family:'Montserrat',sans-serif;font-size:14px;line-height:20px;position:relative;&::before{background-color:",t.secondary,";bottom:-1px;content:'';height:2px;left:0;position:absolute;transition:width 0.2s linear;width:0;}&:hover::before{width:100%;}"),containerExpanded:Fe,content:je,contentCollapsed:We,contentExpanded:Me}},ze=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.Children.toArray(e).map((function(e,t){return t<n.length?n[t]:e.props.expanded}))},Te=function(e){var n=e.children,o=e.exclusive,a=e.id,l=e.spacing,c=void 0===l?"normal":l,s=oe(r(ze(n)),2),d=s[0],p=s[1];i((function(){!function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0,o=!1;if(t.Children.forEach(e,(function(e){e.props.expanded&&r++,("object"!==K(e)||"AccordionContent"!==e.type.name&&"AccordionContent"!==e.type.displayName)&&(o=!0)})),n&&r>1)throw new Error('Accordion with "exclusive" flag can only have one expanded content section');if(o)throw new Error("Accordion content must be wrapped in an Accordion.Content component")}(n,o)}),[n,o]),i((function(){p((function(e){return ze(n,e)}))}),[n]);var f=function(e,t){return function(n){p((function(t){var r=o&&n?Array(t.length).fill(!1):ie(t);return r[e]=n,r})),h(t)&&t(n)}};return u("div",{id:a,css:Re},t.Children.map(n,(function(e,n){return t.cloneElement(e,{expanded:d[n],onClick:f(n,e.props.onClick),spacing:e.props.spacing||c})})))};Te.Content=Ee;var De,Ze,Re=d(Oe,";width:100%;"),He=function(e){var n=e.breadcrumbs,r=e.id,o=e.keyExtractor,i=e.labelExtractor,a=e.onClick,l=e.showCurrent,c=void 0===l||l,s=T(Xe);return u("ul",{css:s.list,id:r},n.map((function(e,r){var l,d=function(e,t){return b(e)?e.key:m(e,o,t)}(e,r),p=r===n.length-1;return u(t.Fragment,{key:d},(c||!p)&&u("li",{css:p?s.currentPage:s.listItem},u("a",{"aria-current":!!p&&"page",css:p?s.currentPage:s.breadCrumb,href:"#",onClick:p?void 0:(l=d,function(){return a(l)})},b(e)?e.label:v(e,i,r))))})))},Je={name:"1azkibq",styles:"font-family:'Montserrat',sans-serif;font-size:12px;list-style:none;margin:0;padding:0;"},Xe=function(e){var t=e.colorPalette;return{breadCrumb:d("color:",t.fontLight,";font-size:14px;line-height:20px;text-decoration:none;&:hover{cursor:pointer;text-decoration:underline;}"),currentPage:d("color:",t.font,";display:inline-flex;font-size:14px;text-decoration:none;"),list:Je,listItem:d("display:inline-flex;&::before,&::after{background-repeat:no-repeat;background-size:contain;height:20px;width:20px;}&:first-of-type:last-of-type::before{background-image:",g(u(me,{color:t.fontLight})),";content:'';margin-right:10px;}&:not(:last-of-type)::after{background-image:",g(u(we,{color:t.fontLight})),";content:'';margin:0 10px;}")}},Ne=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];i((function(){if(t())throw new Error(e)}),n)},Ge=function(e){var t=e.color,n=e.id,r=e.progress,o=void 0===r,i=l((function(){return r&&126-Math.min(Math.max(r,0),100)/100*126}),[r]),a=T(Ue);return u("div",{css:d([a.container,o?a.containerIndeterminate:a.containerStatic]),id:n},u("svg",{"aria-label":"loading",css:a.svgContainer,style:{"--color":t},viewBox:"22 22 44 44"},u("circle",{css:d([a.circle,o?a.circleIndeterminate:a.circleStatic]),cx:"44",cy:"44",fill:"none",r:"20.2",strokeWidth:"3.6",style:{"--dashoffset":i}})))},Ve=p(De||(De=re(["\n 100% { transform: rotate(360deg); }\n"]))),Ye=p(Ze||(Ze=re(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"]))),qe={name:"1uu7u3w",styles:"height:20px;width:20px;"},_e={name:"4dsd3s",styles:"transform:rotate(-90deg);"},Ue=function(e){var t=e.colorPalette;return{circle:d("--dashoffset:",126,";stroke:currentColor;stroke-dasharray:80px,200px;stroke-dashoffset:var(--dashoffset);"),circleIndeterminate:d("animation:",Ye," 1.4s ease-in-out infinite;"),circleStatic:d("stroke-dasharray:",126,"px;transition:stroke-dashoffset 0.3s ease-out;"),container:qe,containerIndeterminate:d("animation:",Ve," 1.4s linear infinite;"),containerStatic:_e,svgContainer:d("--color:",t.secondary,";color:var(--color);")}},Qe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];i((function(){t()&&y(e)}),n)},Ke=function(e){var n=e.buttonStyle,r=void 0===n?"filled":n,i=e.iconSize,a=void 0===i?"normal":i,l=e.loadingColor,c=e.onClick,s=e.showOutline,p=e.activeColor,f=e.allowEventPropagation,g=void 0!==f&&f,h=e.ariaLabel,b=e.borderColor,v=e.buttonType,m=void 0===v?"button":v,y=e.color,w=e.children,C=e.disabled,k=e.focusColor,I=e.hoverColor,O=e.icon,P=e.iconColor,A=e.iconColorActive,L=e.iconPosition,E=void 0===L?"left":L,S=e.id,F=e.label,j=e.labelColor,W=e.labelColorActive,M=e.loading,B=e.loadingProgress,z=e.onPress,R=void 0===z?c:z,H=e.outlineColor,J=e.size,X=void 0===J?"normal":J;!function(e){var t=e.buttonStyle,n=e.iconSize,r=e.loadingColor,o=e.onClick,i=e.showOutline;Qe('WJEC One Button: The "iconSize" prop has been deprecated for design reasons and will be removed in a future version of the library. Button components will now always behave as though `iconSize="normal"`',(function(){return"filled"!==t}),[t]),Qe('WJEC One Button: The "buttonStyle" prop has been deprecated for design reasons and will be removed in a future version of the library. Button components will now always behave as though `buttonStyle="filled"`',(function(){return"normal"!==n}),[n]),Qe('WJEC One Button: The "loadingColor" prop has been deprecated for design reasons and will be removed in a future version of the library. Button components will now render with a suitable loading color depending on whether the background color is light/dark',(function(){return void 0!==r}),[r]),Qe('WJEC One Button: The "onClick" prop has been deprecated in favor of "onPress" for accessibility reasons and will be removed in a future version of the library. Switch to using "onPress" instead of "onClick" as soon as possible in order to avoid unexpected behavior in future',(function(){return void 0!==o}),[o]),Qe('WJEC One Button: The "showOutline" prop has been deprecated for accessibility reasons and will be removed in a future version of the library. The Button component will now behave as though "showOutline={true}" in all cases',(function(){return void 0!==i}),[i])}({buttonStyle:r,iconSize:a,loadingColor:l,onClick:c,showOutline:s}),Ne("WJEC One Button: Icon must be a valid SVGComponent",(function(){return O&&!x(t.createElement(O))}),[O]),Ne("WJEC One Button: A Button must have a label and/or icon",(function(){return!w&&!O&&!F}),[w,O,F]);var N=o(),G=oe(D(),1)[0].colorPalette,V={"--active-background-color":p,"--background-color":y,"--border-color":b,"--focus-background-color":k,"--hover-background-color":I,"--icon-color":P,"--icon-color-active":A,"--label-color":j,"--label-color-active":W,"--outline-color":H,"--padding":"large"===X?"8px 24px":"small"===X?"2px 8px":void 0},Y=T(rt),q=function(){return u(O,{css:d([Y.icon,(F||w)&&O&&("left"===E?Y.iconLeft:Y.iconRight)])})},_=Z({id:S,isDisabled:C,onPress:R,type:m},N).buttonProps;return u("button",ee({"aria-label":h},_,{ref:N,css:Y.button,onClick:function(e){g||e.stopPropagation()},style:V,"data-loading":M||void 0}),O&&"left"===E&&q(),F||w,O&&"right"===E&&q(),M&&u("div",{css:Y.loading},u(Ge,{color:j||G.neutralDark,progress:B})))},$e={name:"18kopw8",styles:"color:var(--icon-color);flex-shrink:0;height:24px;opacity:0.6;transition:inherit;width:24px;"},et={name:"15ro776",styles:"margin-right:4px;"},tt={name:"15fzge",styles:"margin-left:4px;"},nt={name:"c524f5",styles:"left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);"},rt=function(e){var t=e.colorPalette;return{button:d("--active-background-color:",t.neutralLight,";--background-color:",t.neutral,";--border-color:transparent;--focus-background-color:var(--background-color);--hover-background-color:",t.border,";--label-color:",t.neutralDark,";--label-color-active:#FFFFFF;--outline-color:",t.primary,";--padding:8px;--icon-color:var(--label-color);--icon-color-active:var(--label-color-active);",Oe,";align-items:center;background-color:var(--background-color);border:1px solid var(--border-color);border-radius:",Ie.borderRadius,";color:var(--label-color);cursor:pointer;display:flex;font-family:'Montserrat',sans-serif;font-size:16px;font-weight:600;height:40px;justify-content:center;letter-spacing:0.5px;line-height:24px;padding:var(--padding);position:relative;transition:background-color 0.05s linear,color 0.05s linear;white-space:pre-wrap;&:disabled{background-color:",t.neutral,";color:",t.border,";cursor:not-allowed;& > svg{color:",t.border,';}}&:focus{background-color:var(--focus-background-color);outline:1px solid var(--outline-color);outline-offset:-3px;}&:not(:disabled,[data-loading="true"]):hover{background-color:var(--hover-background-color);}&:not(:disabled,[data-loading="true"]):active{background-color:var(--active-background-color);color:var(--label-color-active);& > svg{color:var(--icon-color-active);}}&[data-loading="true"]{color:transparent;& > svg{color:transparent;}}'),icon:$e,iconLeft:et,iconRight:tt,loading:nt}},ot=function(e){var t=Object.assign({},(te(e),e)),n=oe(D(),1)[0].colorPalette;return u(Ke,ee({},t,{activeColor:n.errorDarker,color:n.error,hoverColor:n.errorDark,iconColor:"#FFFFFF",labelColor:"#FFFFFF",outlineColor:"#FFFFFF"}))},it=["loading"],at=function(e){var t=e.loading,n=ne(e,it),r=oe(D(),1)[0].colorPalette;return u(Ke,ee({},n,{color:t?r.neutral:"transparent",loading:t}))},lt=["loading"],ct=function(e){var t=e.loading,n=ne(e,lt),r=oe(D(),1)[0].colorPalette;return Ne("WJEC One LinkButton: A LinkButton cannot have an unaccompanied icon",(function(){return n.icon&&!(n.children||n.label)}),[n]),u(Ke,ee({},n,{loading:t,color:t?r.neutral:"transparent",iconColor:r.fontLight,labelColor:r.primaryDark}))},st=function(e){var t=Object.assign({},(te(e),e)),n=oe(D(),1)[0].colorPalette;return u(Ke,ee({},t,{activeColor:n.primaryDarkActive,color:n.primary,hoverColor:n.primaryDark,iconColor:"#FFFFFF",labelColor:"#FFFFFF",outlineColor:"#FFFFFF"}))},dt=function(e){var t=Object.assign({},(te(e),e)),n=oe(D(),1)[0].colorPalette;return u(Ke,ee({},t,{activeColor:n.secondary,borderColor:t.disabled?"none":n.secondaryDark,color:"#FFFFFF",focusColor:n.secondaryLight,hoverColor:n.secondaryLight,labelColor:n.secondaryDark,labelColorActive:n.secondaryDark,outlineColor:"#FFFFFF"}))},ut=function(e,t,n){var r=o(!1);a((function(){var o,i,a,l;null!=t?null==n||null===(o=n.current)||void 0===o||null===(i=o.style)||void 0===i||i.setProperty(e,t.toString()):null==n||null===(a=n.current)||void 0===a||null===(l=a.style)||void 0===l||l.removeProperty(e);null!=n&&n.current&&(r.current=!0)}),[!r.current&&Date.now(),e,null==n?void 0:n.current,t])};const pt="undefined"!=typeof window?t.useLayoutEffect:()=>{};let ft=new Map,gt=new Set;function ht(){if("undefined"==typeof window)return;let e=t=>{let n=ft.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),ft.delete(t.target)),0===ft.size)){for(let e of gt)e();gt.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=ft.get(t.target);n||(n=new Set,ft.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}"undefined"!=typeof document&&("loading"!==document.readyState?ht():document.addEventListener("DOMContentLoaded",ht));let bt=0;const vt=new Map;function mt(e){let[t,n]=r(void 0);return pt((()=>{if(!e)return;let t=vt.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+bt++;n(r);let o=document.createElement("div");o.id=r,o.style.display="none",o.textContent=e,document.body.appendChild(o),t={refCount:0,element:o},vt.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),vt.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}var yt,xt=function(e){var t=e.ariaDescription,n=e.borderColor,r=e.children,i=e.id,a=e.padding,l=o(),c=mt(t);return ut("--padding",a,l),ut("--border-color",n,l),u("div",ee({css:wt.cardMain,id:i,ref:l},c),r)},wt={cardMain:d("--border-color:none;--padding:30px 30px;background-color:#ffffff;border:1px solid var(--border-color);border-radius:",Ie.borderRadius,";box-shadow:",Ie.dropShadow,";padding:var(--padding);position:relative;")},Ct={name:"fup5xt",styles:"align-items:center;display:flex;justify-content:space-between;margin:30px 30px 0;"},kt={name:"hv8m74",styles:"display:flex;justify-content:center;list-style:none;margin:0;padding:0;width:100%;"},It={name:"1fyoaf7",styles:"display:inline-block;flex-shrink:0;height:100%;width:100%;"},Ot={name:"103tnj5",styles:"--transition-duration:200ms;--translate-x:unset;display:flex;height:100%;position:relative;transform:translateX(var(--translate-x));width:100%;&[data-animating]{transition:transform ease-out var(--transition-duration);}&[data-swiping]{user-select:none;}& > *{flex-shrink:0;}"},Pt=function(e){var t=e.colorPalette;return{container:d(Oe,";display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%;"),controls:Ct,dot:d("cursor:pointer;padding:5px;&::before{background-color:",t.border,";border:1px solid transparent;border-radius:3px;content:'';display:block;height:5px;transition:background-color 150ms linear,border-color 150ms linear;width:20px;}"),dotActive:d("&::before{background-color:",t.secondary,";border-color:",t.secondary,";}"),dots:kt,navigationButton:d("align-items:center;background-color:",t.neutral,";border:none;border-radius:10px;cursor:pointer;display:flex;flex-shrink:0;height:20px;justify-content:center;outline:none;transition:opacity 100ms linear;width:40px;&:disabled{cursor:default;opacity:0;}"),navigationIcon:d("color:",t.fontLight,";height:15px;"),slide:It,slides:Ot}};function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},At.apply(this,arguments)}var Lt,Et=n((function(t,n){return e.createElement("svg",At({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),yt||(yt=e.createElement("path",{d:"M9.412 3.921a.831.831 0 0 1 1.176 1.175l-4.063 4.07h9.308a.833.833 0 1 1 0 1.667H6.525l4.063 4.07a.831.831 0 0 1-1.176 1.176L4.04 10.707a1 1 0 0 1 0-1.414L9.412 3.92Z",fill:"currentColor"})))}));function St(){return St=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},St.apply(this,arguments)}var Ft,jt,Wt,Mt=n((function(t,n){return e.createElement("svg",St({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Lt||(Lt=e.createElement("path",{d:"M10.588 3.921a.831.831 0 0 0-1.176 1.175l4.063 4.07H4.167a.833.833 0 1 0 0 1.667h9.308l-4.063 4.07a.831.831 0 0 0 1.176 1.176l5.372-5.372a1 1 0 0 0 0-1.414L10.588 3.92Z",fill:"currentColor"})))})),Bt=function(e){var t=e.direction,n=e.disabled,r=e.onClick,o=T(Pt);return u("button",{css:o.navigationButton,disabled:n,onClick:r,type:"button"},u("next"===t?Mt:Et,{css:o.navigationIcon}))},zt=function(e){var t=e.active,n=e.onClick,r=T(Pt);return u("li",{css:d([r.dot,t&&r.dotActive]),onClick:n})},Tt=function(e,t){return(e+1)%t},Dt=function(e,t){return(e+t-1)%t},Zt=function(e,t,n){var r=n-t+Math.floor((n-1)/2)+e;return r>n-1?r%n:r},Rt=function(e,t,n){var r=function(e,t){var n=t.children[e];return Math.round(t.offsetWidth/2-n.offsetLeft-n.offsetWidth/2)}(e+t,n);n.style.setProperty("--translate-x","".concat(r,"px"))},Ht=n((function(e,n){var s=e.buffer,d=void 0===s?1:s,p=e.children,f=e.id,g=e.infinite,b=e.onChange,v=e.showNavigationButtons,m=void 0===v||v,y=e.showNavigationDots,x=void 0===y||y,C=e.simulateMouseSwipe,k=e.slideIndex,I=void 0===k?0:k,O=e.slideTransitionDuration,P=void 0===O?200:O,A=o(),L=o(),E=oe(r(I),2),S=E[0],F=E[1],j=l((function(){return g?d:0}),[d,g]),W=l((function(){return t.Children.toArray(p)}),[p]),M=l((function(){return W.length}),[W]),B=l((function(){return M>0&&(m||x)}),[m,x,M]),z=l((function(){var e=Object.keys(W).map((function(e){return parseInt(e)}));return g&&e.sort((function(e,t){return Zt(e,S,M)-Zt(t,S,M)})),e}),[S,W,g,M]);a((function(){M>0&&Rt(z.indexOf(S),j,null==L?void 0:L.current)}),[S,j,M,z]),i((function(){var e,t=Math.max(0,Math.min(M-1,I));null!=L&&null!==(e=L.current)&&void 0!==e&&e.hasAttribute("data-animating")||t===S||R(t)}),[I]),i((function(){var e=A.current.offsetHeight,t=A.current.offsetWidth,n=new ResizeObserver((function(n){var r=oe(n,1)[0].contentRect,o=r.height,i=r.width;o===e&&i===t||(e=o,t=i,Rt(z.indexOf(S),j,null==L?void 0:L.current))}));return n.observe(A.current),function(){n.disconnect()}}),[S,j,z]);var D=w((function(){if(g||S<M-1){var e=Tt(S,M);R(e)}}),{limit:P+1}),Z=w((function(){if(g||S>0){var e=Dt(S,M);R(e)}}),{limit:P+1}),R=function(e){if(e!==S){var t=function(){L.current.removeAttribute("data-animating"),L.current.removeAttribute("data-swiping"),F(e),h(b)&&b(e)};P>0?(L.current.setAttribute("data-animating","true"),L.current.addEventListener("transitionend",t,{once:!0}),Rt(z.indexOf(e),j,null==L?void 0:L.current)):t()}};c(n,(function(){return{goToNextSlide:D,goToPreviousSlide:Z,goToSlide:R}}));var J=function(e){for(var n=[],r="before"===e?z[0]:z[M-1],o=0;o<j;o++)"before"===e&&(r=Dt(r,M),n.unshift(r)),"after"===e&&(r=Tt(r,M),n.push(r));return n.map((function(n){return t.cloneElement(W[n],{key:"buffer_".concat(e,"_").concat(n)})}))},X=H({onSwiped:function(e){var t,n=e.deltaX,r=e.dir;if(L.current.hasAttribute("data-swiping")){var o=(t=z.indexOf(S)+j,(null==L?void 0:L.current).children[t].offsetWidth/3);Math.abs(n)>=o?"Left"===r?D():Z():L.current.removeAttribute("data-swiping")}},onSwiping:function(e){var t=e.velocity;!L.current.hasAttribute("data-swiping")&&t>.33&&L.current.setAttribute("data-swiping","true")},trackMouse:C}),N=T(Pt);return ut("--transition-duration","".concat(P,"ms"),L),u("div",{ref:A,css:N.container,id:f,"data-carousel-container":!0},u("div",ee({},X,{ref:function(e){L.current=e,X.ref(e)},css:N.slides,"data-carousel-slides-container":!0}),J("before"),z.map((function(e){return W[e]})),J("after")),B&&u("div",{css:N.controls},m&&u(Bt,{direction:"previous",disabled:0===S&&!g,onClick:Z}),x&&u("ol",{css:N.dots},W.map((function(e,t){return u(zt,{key:"slide_".concat(t),active:t===S,onClick:function(){return R(t)}})}))),m&&u(Bt,{direction:"next",disabled:S===M-1&&!g,onClick:D})))}));function Jt(){return Jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jt.apply(this,arguments)}var Xt,Nt=n((function(t,n){return e.createElement("svg",Jt({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Ft||(Ft=e.createElement("path",{d:"M9.167 15h1.666v-1.667H9.167V15Z",fill:"currentColor"})),jt||(jt=e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.667 10C1.667 5.4 5.4 1.667 10 1.667S18.333 5.4 18.333 10 14.6 18.333 10 18.333A8.336 8.336 0 0 1 1.667 10Zm1.666 0A6.675 6.675 0 0 0 10 16.667 6.675 6.675 0 0 0 16.667 10 6.676 6.676 0 0 0 10 3.333 6.676 6.676 0 0 0 3.333 10Z",fill:"currentColor"})),Wt||(Wt=e.createElement("path",{d:"M10 5a3.332 3.332 0 0 0-3.333 3.333h1.666c0-.916.75-1.666 1.667-1.666s1.667.75 1.667 1.666c0 1.667-2.5 1.459-2.5 4.167h1.666c0-1.875 2.5-2.083 2.5-4.167A3.332 3.332 0 0 0 10 5Z",fill:"currentColor"})))})),Gt={name:"115actz",styles:"display:inline-flex;position:relative;"},Vt={name:"1ixbp0l",styles:"pointer-events:none;"},Yt={name:"13v3rg8",styles:"overflow-y:auto;"},qt={name:"17ju33v",styles:"--cursor:pointer;cursor:var(--cursor);display:inline-flex;"},_t=function(e){var t=e.colorPalette;return{container:Gt,popup:d("--background-color:#fff;--color:",t.font,";--margin:10px;--max-height:300px;--max-width:300px;--padding:10px;--position-x:0;--position-y:0;font-family:'Montserrat',sans-serif;font-size:14px;left:var(--position-x);line-height:20px;margin:var(--margin);max-height:var(--max-height);max-width:var(--max-width);min-width:",175,"px;opacity:0;outline:none;pointer-events:none;position:absolute;text-align:left;top:var(--position-y);transition:opacity ",100,"ms linear;width:max-content;z-index:1;"),popupContent:d("--translate-x:0;--translate-y:0;",Oe,";",Ie.scrollbar,";background-color:var(--background-color);border-radius:",Ie.borderRadius,";box-shadow:",Ie.dropShadow,";color:var(--color);padding:var(--padding);pointer-events:auto;overflow-x:hidden;overflow-y:hidden;transform:translate(var(--translate-x),var(--translate-y));"),popupOnHover:Vt,popupContentScrollable:Yt,toggle:qt,toggleString:d("border-bottom:2px dotted ",t.secondary,";")}},Ut=function(e,t,n,r,o){var i;if("bottom"===e){var a=r.clientHeight-(n.top+t.offsetHeight);i="floating"===o?a:a+(r.scrollTop+r.offsetTop)}if("left"===e&&(i="floating"===o?n.left:n.left-r.scrollLeft-r.offsetLeft),"right"===e){var l=r.clientWidth-(n.left+t.offsetWidth);i="floating"===o?l:l+(r.scrollLeft+r.offsetLeft)}return"top"===e&&(i="floating"===o?n.top:n.top-r.scrollTop-r.offsetTop),i},Qt=function(e){var t=window.getComputedStyle(e);return{bottom:parseInt(t.marginBottom),left:parseInt(t.marginLeft),right:parseInt(t.marginRight),top:parseInt(t.marginTop)}},Kt=function(e,t){var n;if("sibling"===t)n={left:e.offsetLeft,top:e.offsetTop};else{var r=e.getBoundingClientRect();n={left:Math.floor(r.left),top:Math.floor(r.top)}}return n},$t=function(e,t,n,r){if(e&&t){var o=0,i=0,a=r.startsWith("bottom")||r.startsWith("top")?"vertical":"horizontal",l={height:e.offsetHeight,width:e.offsetWidth},c=C(e),s={height:t.offsetHeight,width:t.offsetWidth},d=Kt(t,n),u=Qt(e),p=u.bottom,f=u.left,g=u.right,h=u.top;"horizontal"===a&&(i=d.top+s.height/2-l.height/2-h,r.startsWith("left")&&(o=d.left-l.width-f-g),r.startsWith("right")&&(o=d.left+s.width),r.endsWith("-end")&&(i=d.top+s.height-l.height-h),r.endsWith("-start")&&(i=d.top-h)),"vertical"===a&&(o=d.left+s.width/2-l.width/2-f,r.startsWith("bottom")&&(i=d.top+s.height),r.startsWith("top")&&(i=d.top-l.height-p-h),r.endsWith("-end")&&(o=d.left+s.width-l.width-f),r.endsWith("-start")&&(o=d.left-f)),"floating"===n&&(o+=c.scrollLeft,i+=c.scrollTop),e.style.setProperty("--position-x","".concat(o,"px")),e.style.setProperty("--position-y","".concat(i,"px"))}},en=function(e,t,n,r,o,a){var c=l((function(){return"sibling"===n&&null!=t&&t.current?C(t.current):null}),[n,null==t?void 0:t.current]);i((function(){var i,l;o&&(i=new IntersectionObserver((function(o){o.forEach((function(o){var i,l=o.isIntersecting,c=o.target;c===(null==e?void 0:e.current)&&l&&function(e,t,n,r){var o=r.startsWith("bottom")||r.startsWith("top")?"vertical":"horizontal",i=C(e),a=Kt(t.parentElement,n),l=0,c=0,s=Qt(e),d=s.bottom,u=s.left,p=s.right,f=s.top;if("horizontal"===o){var g=Ut("left",t,a,i,n),h=Ut("right",t,a,i,n),b=g<e.offsetWidth+p,v=h<e.offsetWidth+u;(r.startsWith("left")&&b&&!v||r.startsWith("right")&&v&&!b)&&(l=(t.offsetWidth+e.offsetWidth+u+p)*(r.startsWith("left")?1:-1)),e.firstElementChild.style.setProperty("--translate-x","".concat(l,"px"))}if("vertical"===o){var m=Ut("top",t,a,i,n),y=Ut("bottom",t,a,i,n),x=m<e.offsetHeight+d,w=y<e.offsetHeight+f;(r.startsWith("bottom")&&w&&!x||r.startsWith("top")&&x&&!w)&&(c=(t.offsetHeight+e.offsetHeight+f+d)*(r.startsWith("top")?1:-1)),e.firstElementChild.style.setProperty("--translate-y","".concat(c,"px"))}}(null==e?void 0:e.current,null==t?void 0:t.current,n,r),c!==(null==e||null===(i=e.current)||void 0===i?void 0:i.firstElementChild)||l||a()}))}),{root:c,threshold:[0,1]}),i.observe(e.current),i.observe(null==e||null===(l=e.current)||void 0===l?void 0:l.firstElementChild));return function(){i&&i.disconnect()}}),[n,o,r,c])},tn=function(e){var t=e.attachment,n=e.backgroundColor,l=e.children,c=e.margin,s=e.maxHeight,p=e.maxWidth,f=e.onOutOfView,g=e.open,h=e.padding,b=e.placement,v=e.scrollable,m=e.setPopupRef,y=e.textColor,x=e.toggleRef,w=e.trigger,k=o(),I=oe(r(g),2),O=I[0],P=I[1];!function(e,t,n,r,o){a((function(){o&&$t(null==e?void 0:e.current,null==t?void 0:t.current,n,r)}),[n,o,r,null==e?void 0:e.current])}(k,x,t,b,g),en(k,x,t,b,g,f),function(e,t,n,r,a){var l=o(!1);i((function(){var o,i,c,s,d,u=function(){$t(null==e?void 0:e.current,null==t?void 0:t.current,n,r)};if(a){if(!l.current){var p=t.current.getBoundingClientRect(),f=p.height,g=p.left,h=p.top,b=p.width;i=f,c=g,s=h,d=b,l.current=!0}"floating"===n&&window.addEventListener("resize",u),o=new ResizeObserver((function(o){var a=oe(o,1)[0].contentRect,l=a.height,u=a.left,p=a.top,f=a.width;l===i&&u===c&&p===s&&f===d||($t(null==e?void 0:e.current,null==t?void 0:t.current,n,r),i=l,c=u,s=p,d=f)})),o.observe(null==t?void 0:t.current)}return function(){window.removeEventListener("resize",u),o&&o.disconnect()}}),[n,a,r])}(k,x,t,b,g),function(e,t,n,r){i((function(){var o,i,a,l=0,c=0,s=function(t){var n,r,o,i,a,s,d,u,p=t.target,f=p.scrollLeft,g=p.scrollTop,h=l-f,b=c-g,v=parseInt(null==e||null===(n=e.current)||void 0===n||null===(r=n.style)||void 0===r?void 0:r.getPropertyValue("--position-x")),m=parseInt(null==e||null===(o=e.current)||void 0===o||null===(i=o.style)||void 0===i?void 0:i.getPropertyValue("--position-y"));null==e||null===(a=e.current)||void 0===a||null===(s=a.style)||void 0===s||s.setProperty("--position-x","".concat(v+h,"px")),null==e||null===(d=e.current)||void 0===d||null===(u=d.style)||void 0===u||u.setProperty("--position-y","".concat(m+b,"px")),l=f,c=g};return r&&"floating"===n&&(o=C(null==t?void 0:t.current),l=null===(i=o)||void 0===i?void 0:i.scrollLeft,c=null===(a=o)||void 0===a?void 0:a.scrollTop,o!==document.documentElement&&o.addEventListener("scroll",s)),function(){o&&o.removeEventListener("scroll",s)}}),[n,r])}(k,x,t,g),i((function(){var e,t,n,r,o,i=function(){P(!1)};g?(P(!0),null==k||null===(e=k.current)||void 0===e||null===(t=e.style)||void 0===t||t.setProperty("opacity","1")):(null==k||null===(n=k.current)||void 0===n||n.addEventListener("transitionend",i,{once:!0}),null==k||null===(r=k.current)||void 0===r||null===(o=r.style)||void 0===o||o.removeProperty("opacity"));return function(){var e;null==k||null===(e=k.current)||void 0===e||e.removeEventListener("transitionend",i)}}),[g]);var A=T(_t);ut("--background-color",n,k),ut("--color",y,k),ut("--margin",c,k),ut("--max-height",s,k),ut("--max-width",p,k),ut("--padding",h,k);var L=u("div",{ref:function(e){k.current=e,m(e)},css:A.popup},u("div",{css:d([A.popupContent,v&&A.popupContentScrollable,"hover"===w&&A.popupOnHover])},l));return(g||O)&&("sibling"===t?L:J.createPortal(L,document.body))},nn=function(e){var t=e.ariaDescription,n=e.ariaLabel,a=e.attachment,c=void 0===a?"sibling":a,s=e.backgroundColor,p=e.children,f=e.closeDelay,g=void 0===f?0:f,b=e.closeOnClickOutside,v=void 0===b||b,m=e.closeOnOutOfView,y=void 0!==m&&m,x=e.gapSize,w=e.id,C=e.margin,k=void 0===C?x:C,I=e.maxHeight,O=e.maxWidth,P=e.onHide,A=e.onShow,L=e.open,E=void 0!==L&&L,S=e.openDelay,F=void 0===S?0:S,j=e.padding,W=e.placement,M=void 0===W?"bottom":W,B=e.popupPositionX,z=void 0===B?"right":B,D=e.popupPositionY,Z=void 0===D?"below":D,R=e.position,H=void 0===R?{left:"auto",top:"auto"}:R,J=e.positionType,X=void 0===J?"relative":J,N=e.scrollable,G=void 0===N||N,V=e.setRef,Y=e.textColor,q=e.toggle,_=e.toggleCursor,U=e.trigger,Q=void 0===U?"press":U,K=e.width;!function(e,t,n,r,o,i,a,l){Qe('WJEC One Popup: The "gapSize" prop has been deprecated in favor of the more standard "margin" prop, and will be removed in a future version of the library',(function(){return void 0!==e}),[e]),Qe('WJEC One Popup: The "popupPositionX" and "popupPositionY" props have been deprecated in favor of the new placement prop, which encompasses both. Please switch to using "placement" to avoid unexpected behavior in future versions of the library',(function(){return"right"!==t}),[t]),Qe('WJEC One Popup: The "popupPositionX" and "popupPositionY" props have been deprecated in favor of the new placement prop, which encompasses both. Please switch to using "placement" to avoid unexpected behavior in future versions of the library',(function(){return"below"!==n}),[n]),Qe('WJEC One Popup: The "position" prop has been deprecated because WJEC One components are intended to be layout agnostic; it will be removed in a future version of the library',(function(){return'{"left":"auto","top":"auto"}'!==JSON.stringify(r)}),[r]),Qe('WJEC One Popup: The "positionType" prop has been deprecated because WJEC One components are intended to be layout agnostic; it will be removed in a future version of the library',(function(){return"relative"!==o}),[o]),Qe('WJEC One Popup: The "setRef" prop has been deprecated as it is no longer required internally',(function(){return void 0!==i}),[i]),Qe('WJEC One Popup: The "click" value for the "trigger" prop has been deprecated in favor of "press", which maintains the same functionality. The "click" option will be removed in a future version of the library, so switch to using "press" to avoid unexpected behavior',(function(){return"click"===a}),[a]),Qe('WJEC One Popup: The "width" prop has been deprecated because WJEC One components are intended to be layout agnostic; it will be removed in a future version of the library',(function(){return"auto"!==l}),[l])}(x,z,Z,H,X,V,Q,void 0===K?"auto":K);var $=o(),te=o(),ne=o(),re=oe(r(E),2),ie=re[0],ae=re[1],le=o(),ce=o(),se=mt(t),de=l((function(){return"right"!==z||"below"!==Z?function(e,t){switch("".concat(e,"-").concat(t)){case"after-bottom":return"right-end";case"after-top":return"right-start";case"before-bottom":return"left-end";case"before-top":return"left-start";case"left-above":return"top-start";case"left-below":return"bottom-start";case"right-above":return"top-end";default:return"bottom"}}(z,Z):M}),[M,z,Z]);i((function(){E&&!ie&&fe(),!E&&ie&&pe()}),[E]),i((function(){return"hover"!==Q&&v&&ie&&v&&window.addEventListener("click",ue),function(){window.removeEventListener("click",ue)}}),[v,ie,Q]);var ue=function(e){var t=e.target;t===$.current||$.current.contains(t)||te.current.contains(t)||pe()},pe=function(){window.clearTimeout(ce.current),ie&&(le.current=window.setTimeout((function(){ae(!1),h(P)&&P()}),g))},fe=function(){window.clearTimeout(le.current),ie||(ce.current=window.setTimeout((function(){h(A)&&A(),ae(!0)}),F))},ge=T(_t);return ut("--cursor",_,$),u("div",ee({"aria-label":n,ref:$,css:ge.container,id:w},se),u("span",{ref:ne,css:d([ge.toggle,"string"==typeof q&&ge.toggleString]),onClick:"click"===Q||"press"===Q?function(){ie?pe():fe()}:null,onMouseEnter:"hover"===Q?fe:null,onMouseLeave:"hover"===Q?pe:null},q),u(tn,{attachment:c,backgroundColor:s,margin:k,maxHeight:I,maxWidth:O,onOutOfView:function(){return y&&ae(!1)},open:ie,padding:j,placement:de,scrollable:G,setPopupRef:function(e){return te.current=e},textColor:Y,toggleRef:ne,trigger:Q},p))},rn=["ariaDescription","ariaLabel","children","id","toggle"],on=function(e){var t=e.ariaDescription,n=e.ariaLabel,r=e.children,o=e.id,i=e.toggle,a=void 0===i?u(Nt,{css:an.defaultToggle}):i,l=ne(e,rn),c=oe(D(),1)[0].colorPalette;return u(nn,ee({ariaDescription:t,ariaLabel:n},l,{backgroundColor:c.secondaryDark,id:o,openDelay:500,popupPositionX:"after",popupPositionY:"top",scrollable:!1,textColor:"#FFFFFF",toggle:a,toggleCursor:"help",trigger:"hover"}),r)},an={defaultToggle:{name:"1pg8bi",styles:"height:20px;"}};function ln(){return ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ln.apply(this,arguments)}var cn,sn,dn=n((function(t,n){return e.createElement("svg",ln({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Xt||(Xt=e.createElement("path",{d:"M10 6.667c.917 0 1.667-.75 1.667-1.667S10.917 3.333 10 3.333 8.333 4.083 8.333 5 9.083 6.667 10 6.667Zm0 1.666c-.917 0-1.667.75-1.667 1.667s.75 1.667 1.667 1.667 1.667-.75 1.667-1.667-.75-1.667-1.667-1.667Zm0 5c-.917 0-1.667.75-1.667 1.667s.75 1.667 1.667 1.667 1.667-.75 1.667-1.667-.75-1.667-1.667-1.667Z",fill:"currentColor"})))})),un=function(e){var t=e.children,n=e.color,r=e.id,i=o(),a=T(pn);return ut("--color",n,i),u("span",{css:a.emphasis,id:r,ref:i},t)},pn=function(e){var t=e.colorPalette;return{emphasis:d("--color:",t.neutralDark,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:16px;font-weight:700;line-height:24px;")}},fn=function(e){var t=e.children,n=e.color,r=e.id,i=o(),a=T(gn);return ut("--color",n,i),u("p",{css:a.paragraph,id:r,ref:i},t)},gn=function(e){var t=e.colorPalette;return{paragraph:d("--color:",t.font,';color:var(--color);font-family:"Montserrat",sans-serif;font-size:14px;font-weight:400;line-height:20px;margin:0 0 20px 0;white-space:pre-line;')}},hn=["description","options","title","toggle"],bn=function(e){return e&&e.length&&Object.hasOwn(e[0],"label")},vn=function(e){var n=e.description,r=e.options,o=e.title,a=e.toggle,l=void 0===a?u(at,{allowEventPropagation:!0,icon:dn}):a,c=ne(e,hn),s=oe(D(),1)[0].colorPalette;i((function(){return function(e){var n=bn(e)?e:e.reduce((function(e,t){var n=t.sectionOptions;return[].concat(ie(e),ie(n))}),[]);n.some((function(e){var n=e.icon,r=e.label;if(n&&!x(t.createElement(n)))throw new Error('Icon for option "'.concat(r,'" must be a valid SVGComponent'))}))}(r)}),[r]);var p=function(e){return function(){h(e.onClick)&&e.onClick()}},f=T(xn),g=function(e){var t=e.additionalInfo,n=e.label,r=e.icon;return u("li",{key:n.toString(),css:f.menuItem,onClick:p(e)},r&&u(r,{css:f.menuItemIcon}),u("span",{css:f.menuItemLabel},n),t&&u("span",{css:"string"==typeof t?f.menuItemInfo:f.menuItemAction},t))};return u(nn,ee({},c,{padding:0,popupPositionX:"right",popupPositionY:"below",toggle:l}),(o||n)&&u("header",{css:f.header},o&&u(un,null,o),n&&u(fn,{color:s.fontLight},n)),u("ul",{css:d([Oe,Ie.scrollbar,f.menu])},r&&r.length&&(bn(r)?r.map(g):r.map((function(e,t){var n=e.sectionTitle,r=e.sectionOptions;return u("li",{key:"section_".concat(n&&n.replace(/\s/g,"_")||t),css:f.section},n&&u("h4",{css:f.sectionTitle},n),u("ul",{css:d([f.subMenu,!n&&f.subMenuWithoutTitle])},r.map(g)))})))))},mn={name:"jvw5bw",styles:"margin-right:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},yn={name:"1dacand",styles:"padding-top:0;"},xn=function(e){var t=e.colorPalette;return{header:d("border-bottom:1px solid ",t.border,";margin:",10,"px;margin-bottom:0;min-width:250px;"),menu:d("font-family:'Montserrat',sans-serif;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:",10,"px;"),menuItem:d("align-items:center;border-radius:",Ie.borderRadius,";color:",t.font,";cursor:pointer;display:flex;font-size:14px;line-height:20px;padding:",5,"px ",10,"px;&:hover{background-color:",t.neutral,";& > svg{color:",t.secondary,";}}&:not(:last-child){margin-bottom:",5,"px;}"),menuItemAction:d("display:inline-flex;margin-left:",20,"px;pointer-events:none;"),menuItemIcon:d("color:",t.fontLight,";flex-shrink:0;height:20px;margin-right:",10,"px;"),menuItemInfo:d("color:",t.fontLight,";font-size:11px;line-height:20px;margin-left:",20,"px;"),menuItemLabel:mn,section:d("margin:0 -",10,"px;&:last-child{margin-bottom:-",10,"px;}&:not(:last-child){border-bottom:1px solid ",t.border,";margin-bottom:",10,"px;}"),sectionTitle:d("color:",t.fontLight,";font-size:11px;font-weight:600;letter-spacing:1px;line-height:20px;margin:0;padding:0 ",20,"px;text-transform:uppercase;"),subMenu:d("list-style:none;padding:",10,"px;"),subMenuWithoutTitle:yn}},wn=function(e){var t=e.gap,n=void 0===t?0:t,o=e.id,a=e.items,l=e.onDrop,c=e.template,s=void 0===c?function(e){var t=e.Handle,n=e.item;return u(t,null,n.toString())}:c,p=oe(r(),2),f=p[0],g=p[1],b=oe(r(ie(a)),2),v=b[0],m=b[1];i((function(){m(ie(a))}),[a]);var y=function(e,t,n){var r=document.querySelector("[data-rbd-draggable-id='".concat(n,"']"));if(r){var o=r.clientHeight,i=r.clientWidth,a=r.parentElement,l=parseFloat(window.getComputedStyle(a).paddingTop),c=Array.from(a.children),s=[].concat(c);s.splice(e,1);var d=[].concat(ie(s.slice(0,t)),[r],ie(s.slice(t+1)));g({height:o,left:parseFloat(window.getComputedStyle(a).paddingLeft),top:l+d.slice(0,t).reduce((function(e,t){var n=window.getComputedStyle(t),r=parseFloat(n.marginBottom);return e+t.clientHeight+r}),0),width:i})}},x=T(Pn),w=function(e,t){return u(V,{key:a.indexOf(e),draggableId:a.indexOf(e).toString(),index:t},(function(r,o){var i=r.dragHandleProps,a=r.draggableProps,l=r.innerRef;return u("li",ee({ref:l},a,{css:d([x.item,t<v.length-1&&{marginBottom:n}])}),s({item:e,Handle:function(e){var t=e.children,n=e.positionType,r=void 0===n?"relative":n,a=e.position,l=void 0===a?{}:a;return u("div",ee({},i,{css:d([x.handle,Q({position:r},l),o.isDragging&&x.handleGrabbing])}),t)},index:t,sortedItems:ie(v)}))}))};return u(N,{onDragEnd:function(e){var t=e.destination,n=e.source;if(g(void 0),t){var r=ie(v),o=r[n.index];r.splice(n.index,1),r.splice(t.index,0,o),h(l)&&l(r),m(r)}},onDragStart:function(e){var t=e.draggableId,n=e.source;y(n.index,n.index,t)},onDragUpdate:function(e){var t=e.destination,n=e.draggableId,r=e.source;t&&y(r.index,t.index,n)}},u(G,{droppableId:"DragAndDropListDropZone"},(function(e,t){var n=e.droppableProps,r=e.innerRef,i=e.placeholder;return u("ul",ee({ref:r},n,{css:d([x.list,t.isDraggingOver&&x.listDragging]),id:o}),v.map(w),i,f&&t.isDraggingOver&&u("div",{css:d([x.placeholder,f])}))})))},Cn={name:"ehba41",styles:"cursor:grab;"},kn={name:"m2aufq",styles:"cursor:grabbing;"},In={name:"79elbk",styles:"position:relative;"},On={name:"9y6172",styles:"user-select:none;"},Pn=function(e){var t=e.colorPalette;return{handle:Cn,handleGrabbing:kn,item:In,list:d(Oe,";list-style:none;margin:0;padding:0;position:relative;"),listDragging:On,placeholder:d("border:2px dashed ",t.secondary,";border-radius:",Ie.borderRadius,";position:absolute;")}};function An(){return An=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},An.apply(this,arguments)}var Ln,En,Sn=n((function(t,n){return e.createElement("svg",An({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),cn||(cn=e.createElement("path",{opacity:.4,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),sn||(sn=e.createElement("path",{d:"M12 8v4m0 4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}));function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fn.apply(this,arguments)}var jn,Wn,Mn=n((function(t,n){return e.createElement("svg",Fn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Ln||(Ln=e.createElement("path",{opacity:.4,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),En||(En=e.createElement("path",{d:"m7.5 12 3 3 6-6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}));function Bn(){return Bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bn.apply(this,arguments)}var zn,Tn=n((function(t,n){return e.createElement("svg",Bn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),jn||(jn=e.createElement("path",{opacity:.4,d:"m2.39 18.098 8.225-14.206c.455-.785.682-1.178.979-1.31a1 1 0 0 1 .812 0c.297.132.524.525.979 1.31l8.225 14.206c.456.788.684 1.182.65 1.506a1 1 0 0 1-.406.705c-.263.191-.719.191-1.63.191H3.776c-.91 0-1.366 0-1.629-.191a1 1 0 0 1-.406-.705c-.034-.324.194-.718.65-1.506Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Wn||(Wn=e.createElement("path",{d:"M12 9v4m0 4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))})),Dn={description:d("color:",ue.neutralDark,";display:block;font-size:12px;font-weight:400;line-height:16px;margin-top:4px;")},Zn=function(e){var t=e.children;return t?u("span",{css:Dn.description},t):null};function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rn.apply(this,arguments)}var Hn,Jn=n((function(t,n){return e.createElement("svg",Rn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),zn||(zn=e.createElement("path",{d:"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}));function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xn.apply(this,arguments)}var Nn,Gn=n((function(t,n){return e.createElement("svg",Xn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Hn||(Hn=e.createElement("path",{d:"m7.5 12 3 3 6-6m5.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}));function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vn.apply(this,arguments)}var Yn,qn=n((function(t,n){return e.createElement("svg",Vn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Nn||(Nn=e.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))})),_n={name:"elc5wo",styles:"display:block;font-size:12px;font-weight:600;line-height:16px;margin-top:4px;padding-left:24px;position:relative;white-space:pre-line;"},Un={name:"196io73",styles:"left:0;position:absolute;top:0;width:16px;"},Qn=function(e){var t=e.colorPalette;return{status:_n,statusError:d("color:",t.error,";"),statusIcon:Un,statusSuccess:d("color:",t.success,";"),statusWarning:d("color:",t.warning,";")}},Kn=function(e){var t=e.children,n=e.status,r=T(Qn),o=l((function(){var e;switch(n){case"error":e=Jn;break;case"success":e=Gn;break;case"warning":e=qn}return e}),[n]),i=l((function(){var e;switch(n){case"error":e=r.statusError;break;case"success":e=r.statusSuccess;break;case"warning":e=r.statusWarning}return e}),[n]);return n&&t?u("span",{css:d([r.status,i],"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZpZWxkU3RhdHVzLmpzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEwQ2lCIiwiZmlsZSI6IkZpZWxkU3RhdHVzLmpzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyB1c2VNZW1vIH0gZnJvbSAncmVhY3QnO1xyXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcclxuaW1wb3J0IHsgdXNlV2plY09uZVRoZW1lU3R5bGVzIH0gZnJvbSAnd2plYy1vbmUtZGV2LXV0aWxzL3RoZW1lJztcclxuLy8gQHRyYW5zZm9ybS1wYXRoIC4uLy4uL2Fzc2V0cy9pY29ucy9saW5lX2FsZXJ0LWNpcmNsZS5zdmdcclxuaW1wb3J0IEVycm9ySWNvbiBmcm9tIFwiLi4vLi4vYXNzZXRzL2ljb25zL2xpbmVfYWxlcnQtY2lyY2xlLnN2Z1wiO1xyXG4vLyBAdHJhbnNmb3JtLXBhdGggLi4vLi4vYXNzZXRzL2ljb25zL2xpbmVfY2hlY2stY2lyY2xlLnN2Z1xyXG5pbXBvcnQgU3VjY2Vzc0ljb24gZnJvbSBcIi4uLy4uL2Fzc2V0cy9pY29ucy9saW5lX2NoZWNrLWNpcmNsZS5zdmdcIjtcclxuLy8gQHRyYW5zZm9ybS1wYXRoIC4uLy4uL2Fzc2V0cy9pY29ucy9saW5lX2FsZXJ0LXRyaWFuZ2xlLnN2Z1xyXG5pbXBvcnQgV2FybmluZ0ljb24gZnJvbSBcIi4uLy4uL2Fzc2V0cy9pY29ucy9saW5lX2FsZXJ0LXRyaWFuZ2xlLnN2Z1wiO1xyXG5jb25zdCBGaWVsZFN0YXR1cyA9ICh7IGNoaWxkcmVuLCBzdGF0dXMgfSkgPT4ge1xyXG4gICAgY29uc3Qgc3R5bGVzID0gdXNlV2plY09uZVRoZW1lU3R5bGVzKGdldFN0eWxlcyk7XHJcbiAgICBjb25zdCBTdGF0dXNJY29uID0gdXNlTWVtbygoKSA9PiB7XHJcbiAgICAgICAgbGV0IGljb247XHJcbiAgICAgICAgc3dpdGNoIChzdGF0dXMpIHtcclxuICAgICAgICAgICAgY2FzZSAnZXJyb3InOlxyXG4gICAgICAgICAgICAgICAgaWNvbiA9IEVycm9ySWNvbjtcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICBjYXNlICdzdWNjZXNzJzpcclxuICAgICAgICAgICAgICAgIGljb24gPSBTdWNjZXNzSWNvbjtcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICBjYXNlICd3YXJuaW5nJzpcclxuICAgICAgICAgICAgICAgIGljb24gPSBXYXJuaW5nSWNvbjtcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gaWNvbjtcclxuICAgIH0sIFtzdGF0dXNdKTtcclxuICAgIGNvbnN0IHN0YXR1c1N0eWxlID0gdXNlTWVtbygoKSA9PiB7XHJcbiAgICAgICAgbGV0IHN0eWxlO1xyXG4gICAgICAgIHN3aXRjaCAoc3RhdHVzKSB7XHJcbiAgICAgICAgICAgIGNhc2UgJ2Vycm9yJzpcclxuICAgICAgICAgICAgICAgIHN0eWxlID0gc3R5bGVzLnN0YXR1c0Vycm9yO1xyXG4gICAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICAgIGNhc2UgJ3N1Y2Nlc3MnOlxyXG4gICAgICAgICAgICAgICAgc3R5bGUgPSBzdHlsZXMuc3RhdHVzU3VjY2VzcztcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICBjYXNlICd3YXJuaW5nJzpcclxuICAgICAgICAgICAgICAgIHN0eWxlID0gc3R5bGVzLnN0YXR1c1dhcm5pbmc7XHJcbiAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICB9XHJcbiAgICAgICAgcmV0dXJuIHN0eWxlO1xyXG4gICAgfSwgW3N0YXR1c10pO1xyXG4gICAgcmV0dXJuIChzdGF0dXMgJiYgY2hpbGRyZW5cclxuICAgICAgICA/ICg8c3BhbiBjc3M9e1tzdHlsZXMuc3RhdHVzLCBzdGF0dXNTdHlsZV19PlxyXG4gICAgICAgICAgPFN0YXR1c0ljb24gY3NzPXtzdHlsZXMuc3RhdHVzSWNvbn0vPlxyXG4gICAgICAgICAge2NoaWxkcmVufVxyXG4gICAgICAgIDwvc3Bhbj4pXHJcbiAgICAgICAgOiBudWxsKTtcclxufTtcclxuY29uc3QgZ2V0U3R5bGVzID0gKHsgY29sb3JQYWxldHRlIH0pID0+ICh7XHJcbiAgICBzdGF0dXM6IGNzcyBgXHJcbiAgICBkaXNwbGF5OiBibG9jaztcclxuICAgIGZvbnQtc2l6ZTogMTJweDtcclxuICAgIGZvbnQtd2VpZ2h0OiA2MDA7XHJcbiAgICBsaW5lLWhlaWdodDogMTZweDtcclxuICAgIG1hcmdpbi10b3A6IDRweDtcclxuICAgIHBhZGRpbmctbGVmdDogMjRweDtcclxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcclxuICAgIHdoaXRlLXNwYWNlOiBwcmUtbGluZTtcclxuICBgLFxyXG4gICAgc3RhdHVzRXJyb3I6IGNzcyBgXHJcbiAgICBjb2xvcjogJHtjb2xvclBhbGV0dGUuZXJyb3J9O1xyXG4gIGAsXHJcbiAgICBzdGF0dXNJY29uOiBjc3MgYFxyXG4gICAgbGVmdDogMDtcclxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcclxuICAgIHRvcDogMDtcclxuICAgIHdpZHRoOiAxNnB4O1xyXG4gIGAsXHJcbiAgICBzdGF0dXNTdWNjZXNzOiBjc3MgYFxyXG4gICAgY29sb3I6ICR7Y29sb3JQYWxldHRlLnN1Y2Nlc3N9O1xyXG4gIGAsXHJcbiAgICBzdGF0dXNXYXJuaW5nOiBjc3MgYFxyXG4gICAgY29sb3I6ICR7Y29sb3JQYWxldHRlLndhcm5pbmd9O1xyXG4gIGBcclxufSk7XHJcbmV4cG9ydCBkZWZhdWx0IEZpZWxkU3RhdHVzO1xyXG4iXX0= */")},u(o,{css:r.statusIcon}),t):null},$n=function(e){var n=e.gridArea,r=e.invalid,i=e.onPickSuggestion,c=e.validationMessage,s=e.validationPattern,d=e.ariaLabel,p=e.autoComplete,f=e.description,b=e.disabled,v=e.icon,m=e.id,y=e.inputMode,w=e.label,C=e.maxCharacters,k=e.name,I=e.onBlur,O=e.onChange,P=e.onFocus,A=e.placeholder,L=e.readonly,E=e.required,S=e.status,F=void 0===S?r?"error":void 0:S,j=e.statusIcon,W=void 0===j?"error"===F?Sn:"success"===F?Mn:"warning"===F?Tn:void 0:j,M=e.statusIconBehavior,B=void 0===M?"status":M,z=e.statusMessage,Z=void 0===z?c:z,H=e.suggestions,J=e.value,X=void 0===J?"":J,N=e.width;!function(e){var t=e.gridArea,n=e.invalid,r=e.onPickSuggestion,o=e.validationMessage,i=e.validationPattern;Qe('WJEC One Input: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==t}),[t]),Qe('WJEC One Input: The "invalid" prop has been deprecated due to the introduction of the new "status" prop, and is equivalent to `status="error"`',(function(){return void 0!==n}),[n]),Qe('WJEC One Input: The "onPickSuggestion" prop has been deprecated because its functionality relies on non-standard implementation and will no longer be invoked. The previous behavior can be replicated by manually matching the `onChange()` value against the provided "suggestions" in the parent component',(function(){return void 0!==r}),[r]),Qe('WJEC One Input: The "validationMessage" prop has been deprecated due to the introduction of the new "statusMessage" prop, which functions similarly but is more semantically related to the associated "status" prop',(function(){return void 0!==o}),[o]),Qe('WJEC One Input: The "validationPattern" prop has been deprecated due to the introduction of the new "status" prop. Validation should now be performed by the parent component, and the appropriate "status" and "statusMessage" values should be explicitly provided',(function(){return void 0!==i}),[i])}({gridArea:n,invalid:r,onPickSuggestion:i,validationMessage:c,validationPattern:s}),Ne("WJEC-One Input: Icon must be a valid SVGComponent",(function(){return v&&!x(t.createElement(v))}),[v]),Ne("WJEC-One Input: Status icon must be a valid SVGComponent",(function(){return W&&!x(t.createElement(W))}),[W]);var G=R(),V=l((function(){return m||G}),[G,m]),Y=o(),q=l((function(){return"wjecOneInputSuggestions_".concat(V)}),[V]),_=oe(D(),1)[0],U=_.brand,Q=_.colorPalette,K=T(er);a((function(){Y.current.value=X}),[X]);var $=l((function(){switch(F){case"error":return{background:Q.errorBackground,border:Q.error};case"success":return{background:Q.successBackground,border:Q.success};case"warning":return{background:Q.warningBackground,border:Q.warning};default:return{background:"#FFFFFF",border:Q.border}}}),[U,F]),ee=l((function(){return v&&g(u(v,{color:b?Q.border:Q.neutralLight}))}),[U,b,v]),te=l((function(){var e=Q.neutralDark,t=void 0!==W&&("custom"===B||void 0!==F);if("status"===B)switch(F){case"error":e=Q.error;break;case"success":e=Q.success;break;case"warning":e=Q.warning}return t?g(u(W,{color:e})):void 0}),[U,F,W,B]),ne=l((function(){return{"--background-color":$.background,"--border-color":$.border,"--icon":ee,"--margin-top":w&&"4px","--padding-left":ee&&"40px","--padding-right":te&&"40px","--status-icon":te}}),[ee,w,$,te]);return u("label",{"aria-label":d,css:K.label,htmlFor:V,style:{width:N},"data-disabled":b},w,u("input",{ref:Y,autoComplete:p,css:K.input,defaultValue:X,disabled:b,id:V,inputMode:y,list:H&&q,maxLength:C,name:k,onBlur:function(e){var t=e.relatedTarget;h(I)&&I(t)},onChange:function(e){var t=e.target.value;h(O)&&O(t)},onFocus:function(){h(P)&&P()},placeholder:A,readOnly:L,required:E,style:ne,type:"text"}),u(Zn,null,f),u(Kn,{status:F},Z),H&&u("datalist",{id:q},H.map((function(e,t){return u("option",{key:"".concat(e,"_").concat(t),value:e})}))))},er=function(e){var t=e.colorPalette;return{input:d("--background-color:#FFFFFF;--border-color:",t.border,";--icon:none;--margin-top:0;--padding-left:8px;--padding-right:8px;--status-icon:none;",Pe,";background-color:var(--background-color);background-image:var(--icon),var(--status-icon);background-position:center left 8px,center right 8px;background-repeat:no-repeat;background-size:24px;border:1px solid var(--border-color);border-radius:",Ie.borderRadius,";font-family:inherit;font-size:16px;height:40px;line-height:24px;margin-top:var(--margin-top);max-width:100%;outline:none;padding:4px var(--padding-right) 4px var(--padding-left);width:100%;&:disabled{background-color:",t.neutral,";border-color:",t.border,";color:",t.border,";cursor:not-allowed;}&:focus{border-color:",t.primary,";}&:read-only:not(:disabled){background-image:none;background-color:transparent;border-color:transparent;overflow:hidden;padding-left:0;padding-right:0;text-overflow:ellipsis;white-space:nowrap;}&::placeholder{color:",t.neutralLight,";}&::-webkit-calendar-picker-indicator{opacity:0;}"),label:d(Oe,";",Ae,';display:inline-flex;flex-direction:column;&[data-disabled="true"]{color:',t.border,";}")}};function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tr.apply(this,arguments)}var nr,rr,or,ir=n((function(t,n){return e.createElement("svg",tr({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Yn||(Yn=e.createElement("path",{d:"M15.25 4.758a.83.83 0 0 0-1.175 0L10 8.825 5.925 4.75A.83.83 0 1 0 4.75 5.925L8.825 10 4.75 14.075a.83.83 0 1 0 1.175 1.175L10 11.175l4.075 4.075a.83.83 0 1 0 1.175-1.175L11.175 10l4.075-4.075a.835.835 0 0 0 0-1.167Z",fill:"currentColor"})))}));function ar(){return ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ar.apply(this,arguments)}var lr,cr=n((function(t,n){return e.createElement("svg",ar({viewBox:"0 0 91 83",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),nr||(nr=e.createElement("path",{opacity:.4,d:"M50.74 68.314 8.455 56.983c-3.017-.809-4.562-4.155-3.222-6.976l21.62-45.491a5 5 0 0 1 6.662-2.37l45.998 21.86c2.824 1.343 3.737 4.918 1.903 7.45L56.081 66.418a5 5 0 0 1-5.343 1.896Z",fill:"#B0C600"})),rr||(rr=e.createElement("path",{opacity:.4,d:"M0 38.726V26.507a5 5 0 0 1 4.079-4.914l53.991-10.12a5 5 0 0 1 4.381 1.305l26.221 25.134a5 5 0 0 1 1.256 5.272l-3.187 9.044a5 5 0 0 1-3.312 3.137l-50.593 14.8a5 5 0 0 1-4.953-1.278L1.45 42.247A5 5 0 0 1 0 38.728Z",fill:"#47BAD1"})),or||(or=e.createElement("path",{opacity:.8,d:"M53.75 46h-1.975l-.7-.675A16.178 16.178 0 0 0 55 34.75c0-8.975-7.275-16.25-16.25-16.25S22.5 25.775 22.5 34.75 29.775 51 38.75 51c4.025 0 7.725-1.475 10.575-3.925l.675.7v1.975l12.288 12.263a.3.3 0 0 0 .424 0l3.301-3.301a.3.3 0 0 0 0-.424L53.75 46Zm-15 0A11.235 11.235 0 0 1 27.5 34.75c0-6.225 5.025-11.25 11.25-11.25S50 28.525 50 34.75 44.975 46 38.75 46Z",fill:"#fff"})))})),sr=function(e){var n=e.ariaLabel,a=e.ariaMultiselectable,c=e.ariaPosInSet,s=e.ariaSetSize,p=e.clearButtonBehaviour,f=void 0===p?"clear":p,v=e.expanded,y=e.filter,x=void 0===y||y,C=e.floatingList,P=e.floatingListPosition,A=void 0===P?{top:10}:P,L=e.icon,E=e.id,S=e.label,F=e.loading,j=e.maxHeight,W=void 0===j?150:j,M=e.noMatchesMessage,B=void 0===M?"No matches were found":M,z=e.onChange,Z=e.onFilter,R=e.optionKeyExtractor,H=e.optionTemplate,J=void 0===H?function(e){var n=e.option;return u(t.Fragment,null,n)}:H,X=e.options,N=e.placeholder,G=e.value,V=void 0===G?"":G,Y=oe(D(),1)[0].colorPalette;Ne("WJEC-One FilterList: You must specify a keyExtractor if the options array contains non-primitive entry types",(function(){return!I(X)&&!O(X)&&!R}),[R,X]);var q=o(),_=o(),U=o(),K=oe(r(V),2),$=K[0],ee=K[1],te=oe(r(0),2),ne=te[0],re=te[1],ae=oe(r(0),2),le=ae[0],ce=ae[1],se=oe(r("below"),2),de=se[0],ue=se[1],pe=oe(r(0),2),fe=pe[0],ge=pe[1],he=oe(r(ie(X)),2),be=he[0],ve=he[1],me=oe(r(),2),ye=me[0],xe=me[1],we=oe(r([]),2),Ce=we[0],ke=we[1],Ie=oe(r(1),2),Oe=Ie[0],Pe=Ie[1],Ae=l((function(){return L&&g(t.createElement(L,{color:Y.fontLight}))}),[L]);i((function(){var e;e=x&&$?X.filter((function(e,t){return je(e,t).toString().toLowerCase().includes($.toLowerCase())})):ie(X),k(e,be)||(h(Z)&&Z(e),ve(e))}),[$,x,X]),i((function(){!ye||X.length||$||Se(),q.current.querySelector('input[type="text"]')===document.activeElement&&Fe()}),[$,X]),i((function(){v!==ye&&(v?Fe():Se())}),[v]),i((function(){V!==$&&ee(V)}),[V]),i((function(){return ye?(document.addEventListener("scroll",Se,!0),window.addEventListener("click",Le),window.addEventListener("resize",Ee)):(document.removeEventListener("scroll",Se,!0),window.removeEventListener("click",Le),window.removeEventListener("resize",Ee)),function(){document.removeEventListener("scroll",Se,!0),window.removeEventListener("click",Le),window.removeEventListener("resize",Ee)}}),[ye]),i((function(){Pe(1),_.current&&_.current.scrollTo({top:0})}),[be]),i((function(){ke((function(e){var t=Oe>1?ie(e):[],n=50*Oe-50,r=n+50;return t.length=50*(Oe-1),[].concat(ie(t),ie(be.slice(n,r).map(Te)))}))}),[be,Oe]);var Le=function(e){var t=e.target;t===q.current||q.current.contains(t)||Se()},Ee=w((function(){return Fe()}),{limit:250}),Se=function(){U.current===document.activeElement&&q.current.querySelector('input[type="text"]').focus(),xe(!1),Pe(1)},Fe=function(){if(X.length>0||!!$){var e=q.current.getBoundingClientRect(),t=e.top+e.height,n=window.innerHeight-t,r="below";if(!C){if(n<W){var o=e.top;(o>W||o>n)&&(r="above")}"below"===r?(re(Math.min(W,window.innerHeight-t-10)),ce(e.top+q.current.querySelector('input[type="text"]').offsetTop)):(re(Math.min(W,e.top-10)),ce(window.innerHeight-t-1))}ue(r),ge(e.width),xe(!0)}},je=function(e,t){return b(e)?e.key:m(e,R,t)},We=function(e){var t="string"==typeof e?e:e.currentTarget.value;h(z)&&z(t),ee(t)},Me=w((function(e){var t=e.target;e.nativeEvent.stopImmediatePropagation(),t.scrollTop+2*t.clientHeight>t.scrollHeight&&50*Oe<be.length&&Pe((function(e){return e+1}))}),{beforeDelay:function(e){e.nativeEvent.stopImmediatePropagation(),e.persist()},limit:250}),Be=T(Cr),ze=function(){return u("input",{ref:U,css:d([Be.listInput,Ae&&[Be.listInputWithIcon,{backgroundImage:Ae}]]),autoFocus:!0,onChange:We,placeholder:N,value:$})},Te=function(e){var t=X.indexOf(e);return u("li",{"aria-posinset":c,"aria-setsize":s,key:je(e,t)},J({option:e,index:t,filteredOptions:ie(be)}))};return u("div",{ref:q,css:Be.container,id:E,onClick:function(e){var t=e.target;ye||t!==q.current.querySelector('input[type="text"]')||t!==document.activeElement||Fe()}},u($n,{"aria-label":n,"aria-multiselectable":a,icon:L,label:S,onChange:We,onFocus:Fe,placeholder:N,value:$}),ye&&u("div",{"aria-expanded":!0,css:d([Be.expandedContainer,"above"===de?[Be.expandedContainerAbove,{bottom:le}]:{top:le},{width:fe},C&&[Be.expandedContainerFloating,Q(Q({},A),{},{maxHeight:"calc(100% - ".concat(2*A.top,"px)")})]])},"below"===de&&ze(),u(ir,{css:d([Be.clearIcon,"above"===de&&Be.clearIconAbove]),onClick:function(){"clear"!==f&&"clearAndClose"!==f||ee(""),"clear"===f&&U.current.focus(),"clearAndClose"!==f&&"close"!==f||Se()}}),u("div",{css:d([Be.listContainer,"above"===de&&Be.listContainerAbove]),onScroll:Me},u("ul",{ref:_,css:d([Be.list,C&&Be.listFloating,!C&&{maxHeight:ne}])},be.length?Ce:u("li",{css:Be.noResults},u(cr,{css:Be.noResultsIcon}),B)),F&&u("div",{css:d([Be.loading,"above"===de&&Be.loadingAbove,!C&&{maxHeight:ne}])},u(Ge,null))),"above"===de&&ze()))},dr={name:"10eevtr",styles:"bottom:0;top:auto;"},ur={name:"oxdg22",styles:"&::before{bottom:30px;top:auto;}"},pr={name:"j7qwjs",styles:"display:flex;flex-direction:column;"},fr={name:"yp8oic",styles:"display:flex;margin:2px 0 1px;min-height:0px;position:relative;"},gr={name:"p49ge0",styles:"margin:1px 0 2px;"},hr={name:"11cgomd",styles:"max-height:initial;"},br={name:"1ireg3o",styles:"background:center left 6px / 20px no-repeat;border:none;font-family:'Montserrat',sans-serif;font-size:14px;line-height:20px;margin-top:-1px;outline:none;padding:5px 35px 5px 10px;width:100%;"},vr={name:"267yq8",styles:"padding-left:35px;"},mr={name:"1fk9trn",styles:"align-items:center;background-color:rgba(255,255,255,0.75);bottom:0;display:flex;height:100%;justify-content:center;left:0;position:absolute;right:0;"},yr={name:"9cuppe",styles:"bottom:auto;top:0;"},xr={name:"m2y6eh",styles:"align-items:center;display:flex;flex-direction:column;justify-content:center;padding:10px 0;"},wr={name:"1bkzip4",styles:"width:91px;"},Cr=function(e){var t=e.colorPalette;return{clearIcon:d("color:",t.fontLight,";cursor:pointer;height:30px;padding:5px;position:absolute;right:0;top:0;&:hover{color:",t.font,";}"),clearIconAbove:dr,container:d(Oe,";display:inline-block;font-family:'Montserrat',sans-serif;font-size:12px;line-height:20px;position:relative;& > label{width:100%;}"),expandedContainer:d("background-color:#fff;border:1px solid ",t.border,";border-radius:",Ie.borderRadius,";box-shadow:",Ie.dropShadow,";position:fixed;z-index:1;&::before{border-bottom:1px solid ",t.border,";content:'';left:8px;position:absolute;right:8px;top:30px;}"),expandedContainerAbove:ur,expandedContainerFloating:pr,list:d(Ie.scrollbar,";list-style:none;margin:0;overflow:auto;padding:8px 10px 9px;width:100%;"),listContainer:fr,listContainerAbove:gr,listFloating:hr,listInput:br,listInputWithIcon:vr,loading:mr,loadingAbove:yr,noResults:xr,noResultsIcon:wr}},kr=function(e){var t=e.ariaDescription,n=e.ariaLabel,r=e.children,o=e.clearButton,i=void 0===o?"Clear":o,a=e.clearId,l=e.id,c=e.onClear,s=e.onSubmit,p=e.otherActions,f=e.submitButton,g=void 0===f?"Submit":f,b=e.submitId,v=e.width,m=mt(t);return u("form",ee({"aria-label":n,css:d({width:v}),id:l,onReset:function(e){e.preventDefault(),h(c)&&c()},onSubmit:function(e){e.preventDefault(),h(s)&&s()}},m),r,u("section",{css:Ir.controls},i&&u(Ke,{buttonType:"reset",id:a,label:i}),u("div",{css:Ir.submit},g&&u(st,{buttonType:"submit",id:b,label:g})),p&&u(vn,{options:p})))},Ir={controls:{name:"7zpthm",styles:"display:flex;justify-content:space-between;margin-top:30px;"},submit:{name:"5prljc",styles:"margin-left:auto;&:not(:last-of-type){margin-right:5px;}"}};function Or(){return Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Or.apply(this,arguments)}var Pr,Ar,Lr=n((function(t,n){return e.createElement("svg",Or({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),lr||(lr=e.createElement("path",{d:"m7.5 13.475-2.892-2.892a.83.83 0 1 0-1.175 1.175l3.484 3.484a.83.83 0 0 0 1.175 0l8.816-8.817a.83.83 0 1 0-1.175-1.175L7.5 13.475Z",fill:"currentColor"})))})),Er=function(e){var t=e.ariaLabel,n=e.checked,r=void 0!==n&&n,i=e.children,c=e.description,s=e.disabled,d=e.gridArea,p=e.highlighted,f=e.id,g=e.label,b=e.labelOverflow,v=void 0===b?"wrap":b,m=e.loading,y=e.onChange,x=e.readonly,w=e.status,C=e.statusMessage;Qe('WJEC One CheckBox: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==d}),[d]),Qe("WJEC One CheckBox: This prop has been deprecated because highlighting an checkbox component with a border color does not fit with the latest WJEC One design. Please use an alternative approach or CSS override",(function(){return void 0!==p}),[p]),Qe('WJEC One Select: The "readonly" prop has been deprecated because the underlying HTML element does not support a "readonly" attribute, and therefore behavior cannot be guaranteed. An alternative such as `<Input readonly value="..." />` can be used',(function(){return void 0!==x}),[x]);var k=R(),I=l((function(){return f||k}),[k,f]),O=oe(D(),1)[0],P=O.brand,A=O.colorPalette,L=T(jr),E=o();a((function(){E.current.checked=r}),[r]);var S=l((function(){switch(w){case"error":return{background:A.errorBackground,border:A.error};case"success":return{background:A.successBackground,border:A.success};case"warning":return{background:A.warningBackground,border:A.warning};default:return{}}}),[P,w]),F=l((function(){return{"--background-color":S.background,"--border-color":S.border,"--margin-right":g&&"8px"}}),[g,S]);return u("div",{css:L.container},u("input",{id:I,type:"checkbox",css:L.checkbox,defaultChecked:r,onChange:function(e){var t=e.target.checked;h(y)&&y(t)},disabled:s,ref:E}),u("label",{"aria-label":t,css:L.label,htmlFor:I,onClick:function(e){return e.stopPropagation()},style:F},m&&u("div",{css:L.loadingIcon},u(Ge,{color:A.primary})),u("span",{css:L.labelContent,"data-overflow":v},g||i)),u(Zn,null,c),u(Kn,{status:w},C))},Sr={name:"7n37re",styles:"display:inline-flex;flex-direction:column;min-width:0;"},Fr={name:"43a46m",styles:'display:inline-block;&[data-overflow="ellipsis"]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}'},jr=function(e){var t=e.colorPalette;return{checkbox:d(Ie.visiblyHidden," &:checked + label::before{background-image:",g(u(Lr,{color:t.primary})),";background-size:cover;}&:checked:disabled + label::before{background-image:",g(u(Lr,{color:t.border})),";}&:disabled + label{color:",t.border,";cursor:not-allowed;&::before{background-color:",t.neutral,";border-color:",t.border,";}}&:focus + label::before{border-color:",t.primary,";}"),container:Sr,label:d("--background-color:#FFFFFF;--border-color:",t.border,";--margin-right:0;--text-overflow:'wrap';",Oe,";align-items:center;color:",t.font,";cursor:pointer;display:inline-flex;font-family:'Montserrat',sans-serif;font-size:14px;font-weight:400;line-height:16px;position:relative;&:active::before,&:focus-within::before{border-color:",t.primary,"}&::before{background-color:var(--background-color);border:1px solid var(--border-color);border-radius:",Ie.borderRadius,";content:'';display:inline-block;flex-shrink:0;height:40px;margin-right:var(--margin-right);width:40px;}"),labelContent:Fr,loadingIcon:d("align-items:center;background-color:var(--background-color);border-radius:",Ie.borderRadius,";display:flex;height:30px;justify-content:center;left:1px;position:absolute;top:1px;width:30px;")}};function Wr(){return Wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wr.apply(this,arguments)}var Mr,Br,zr=n((function(t,n){return e.createElement("svg",Wr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Pr||(Pr=e.createElement("path",{opacity:.4,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Ar||(Ar=e.createElement("path",{d:"M12 6v6l4 2",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}));function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tr.apply(this,arguments)}var Dr,Zr=n((function(t,n){return e.createElement("svg",Tr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Mr||(Mr=e.createElement("path",{opacity:.4,d:"M21 10H3",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Br||(Br=e.createElement("path",{d:"M16 2v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))})),Rr=function(e){var t=e.date,n=e.disabled,o=e.id,a=e.label,c=e.maxDate,s=e.maxTime,p=void 0===s?"":s,f=e.minDate,b=e.minTime,v=void 0===b?"":b,m=e.onChangeDate,y=e.onChangeTime,x=e.placeholder,w=e.readonly,C=e.required,k=e.time,I=e.type,O=void 0===I?"dateTime":I,L=e.validationMessage,E=e.width,S=oe(r(""),2),F=S[0],j=S[1],W=oe(D(),1)[0].colorPalette,M=T(Hr);i((function(){j("dateTime"===O?t?P({date:t,format:"yyyy-MM-ddT".concat(k||"HH:mm")}):"":"date"===O?t?A({date:t,format:"yyyy-MM-dd"}):"":k||"")}),[t,k,O]);var B=l((function(){return g(u("time"===O?zr:Zr,{color:W.neutralLight}))}),[O]),z=l((function(){return"dateTime"===O?"datetime-local":O}),[O]),Z=l((function(){return!(!c||!f)&&("00:00:00"===c.toTimeString().substring(0,8)&&"00:00:00"===f.toTimeString().substring(0,8))}),[c,f]),R=l((function(){if("date"===O||"dateTime"===O){var e=c||("dateTime"===O&&p?new Date:void 0),t="dateTime"===O?"yyyy-MM-ddT".concat(p||(Z?"23:59":"HH:mm")):"yyyy-MM-dd";return e?P({date:e,format:t}):p}return p}),[c,p,O]),H=l((function(){if("date"===O||"dateTime"===O){var e=f||("dateTime"===O&&v?new Date:void 0),t="dateTime"===O?"yyyy-MM-ddT".concat(v||(Z?"00:00":"HH:mm")):"yyyy-MM-dd";return e?P({date:e,format:t}):v}return v}),[f,v,O]);return u("label",{css:d([M.label,E&&{width:E}])},a,u("input",{css:d([M.input,{backgroundImage:B}]),disabled:n,id:o,max:R,min:H,onChange:function(e){var t=e.target,n=t.value,r=t.valueAsNumber,o=new Date(r),i=n.substring(n.indexOf("T")+1);L&&t.setCustomValidity(""),j(n),L&&!t.checkValidity()&&(t.setCustomValidity(L),t.reportValidity()),"date"!==O&&"dateTime"!==O||!h(m)||m(o),"dateTime"!==O&&"time"!==O||!h(y)||y(i)},placeholder:x,readOnly:w,required:C,type:z,value:F}))},Hr=function(e){var t=e.colorPalette;return{input:d("background:#fff center left 8px / 24px no-repeat;border:1px solid ",t.border,";border-radius:",Ie.borderRadius,";font-family:'Montserrat',sans-serif;font-size:16px;height:32px;max-width:100%;outline:none;padding:4px 8px 4px 36px;position:relative;transition:border-color 0.05s linear,padding 0.05s linear;width:100%;&:disabled{background-color:",t.neutral,";color:",t.fontLight,";cursor:not-allowed;}&:focus{border-color:",t.primary,";}&:invalid{border-color:",t.error,";}&:read-only{background-color:transparent;background-image:none;border-color:transparent;overflow:hidden;padding-left:0;padding-right:0;pointer-events:none;text-overflow:ellipsis;white-space:nowrap;}&::placeholder{color:",t.fontLight,";}&::-webkit-calendar-picker-indicator{bottom:10px;cursor:pointer;opacity:0;position:absolute;right:10px;top:5px;width:10px;}"),label:d(Oe,";",Ae,";display:inline-flex;flex-direction:column;width:100%;")}},Jr=function(e){var t=e.ariaLabel,n=e.breadcrumb,r=e.children,o=e.href,i=e.id,a=T(Xr);return u("a",{"aria-label":t,href:o,css:d([a.link,n&&a.withBreadcrumb]),id:i},r||o)},Xr=function(e){var t=e.colorPalette;return{link:d("color:",t.primaryDark,";font-family:'Montserrat',sans-serif;font-size:14px;font-weight:500;line-height:20px;"),withBreadcrumb:d("color:",t.fontLight,";margin-right:40px;text-decoration:none;position:relative;&:not(:last-of-type)::after{background-image:",g(u(we,{color:t.fontLight})),";background-repeat:no-repeat;background-size:contain;bottom:5px;content:'';height:20px;margin-bottom:-6px;margin-left:10px;position:absolute;right:-30px;width:20px;}&:hover{border-bottom:1px solid ",t.fontLight,";}")}},Nr=["gridArea","id","label","readonly","value"],Gr=function(e){var t=e.gridArea,n=e.id,r=e.label,o=e.readonly,i=e.value,a=ne(e,Nr);Qe('WJEC One Email: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==t}),[t]);var l=T(Yr);return o?u("label",{css:d([l.label,t&&{gridArea:t}]),id:n},u("span",{css:l.labelText},r),u(Jr,{href:"mailto:".concat(i)},i)):u($n,ee({gridArea:t,label:r,value:i},a))},Vr={name:"r7q7qr",styles:"margin-bottom:5px;"},Yr=function(e){var t=e.colorPalette;return{label:d(Oe,";color:",t.font,";display:inline-flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:12px;line-height:20px;"),labelText:Vr}};function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qr.apply(this,arguments)}var _r,Ur=n((function(t,n){return e.createElement("svg",qr({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Dr||(Dr=e.createElement("path",{d:"M16.125 8.367A6.242 6.242 0 0 0 10 3.333 6.246 6.246 0 0 0 4.458 6.7 4.995 4.995 0 0 0 0 11.667c0 2.758 2.242 5 5 5h10.833c2.3 0 4.167-1.867 4.167-4.167 0-2.2-1.708-3.983-3.875-4.133ZM15.833 15H5a3.332 3.332 0 0 1-3.333-3.333 3.311 3.311 0 0 1 2.966-3.309l.892-.091.417-.792A4.557 4.557 0 0 1 10 5a4.586 4.586 0 0 1 4.492 3.692l.25 1.25 1.275.091a2.483 2.483 0 0 1 2.316 2.467c0 1.375-1.125 2.5-2.5 2.5Zm-9.166-4.167h2.125v2.5h2.416v-2.5h2.125L10 7.5l-3.333 3.333Z",fill:"currentColor"})))})),Qr=[" bytes","kB","MB","GB","TB"],Kr=function(e){var n=e.ariaLabel,o=e.files,a=void 0===o?[]:o,l=e.height,c=e.id,s=e.max,p=e.multiple,f=e.onError,g=e.onSelect,b=e.placeholderDescription,v=void 0===b?"Drag ".concat(p?"files":"a file"," here or click to select"):b,m=e.placeholderTitle,y=e.validExtensions,x=e.validTypes,w=e.width,C=void 0===w?"100%":w,k=oe(D(),1)[0].colorPalette,I=oe(r(a),2),O=I[0],P=I[1],A=oe(r(!1),2),E=A[0],S=A[1],F=oe(r(!0),2),j=F[0],W=F[1];i((function(){P(a)}),[a&&a.length]),i((function(){O!==a&&h(g)&&g(O)}),[O]);var M=function(e){return p?void 0===s||e<=s:e<=1},B=function(e){var t=[].concat(ie(p?O:[]),ie(e)),n=t.length,r=[],o=[],i=[];M(n)?(t.forEach((function(e){var t=!i.some((function(t){return r=e,(n=t).name===r.name&&n.type===r.type&&n.size===r.size&&n.lastModified===r.lastModified;var n,r})),n=function(e){var t=e.name,n=t.substr(t.lastIndexOf("."));return void 0===y||y.includes(n)}(e),a=function(e){var t=e.type;return void 0===x||x.includes(t)}(e);t&&n&&a&&i.push(e),n||r.push(e),a||o.push(e)})),P(i)):h(f)&&f([{code:"MAX_FILES_EXCEEDED",details:{maxCount:s||1,selectedCount:n}}]),(r.length||o.length)&&h(f)&&f([r.length&&{code:"INVALID_FILE_EXTENSION",details:{files:r}},o.length&&{code:"INVALID_FILE_TYPE",details:{files:o}}].filter((function(e){return e})))},z=function(e){return function(t){L(t.nativeEvent),P((function(t){return t.filter((function(t){return t!==e}))}))}},Z=T(to);return u("label",{"aria-label":n,css:d([Z.container,l&&{height:l},E&&{borderColor:j?k.primary:k.error},C&&{width:C}]),id:c,onDragEnter:function(e){var t=e.dataTransfer.items.length;L(e.nativeEvent),S(!0),W(M(t+O.length))},onDragLeave:function(e){L(e.nativeEvent),S(!1)},onDragOver:function(e){L(e.nativeEvent)},onDrop:function(e){var t=Array.from(e.dataTransfer.files);L(e),B(t),S(!1)}},u("input",{type:"file",value:"",multiple:p,css:Ie.visiblyHidden,onChange:function(e){var t=Array.from(e.currentTarget.files);B(t)}}),u(Ur,{css:Z.uploadIcon}),O.length?u("ul",{css:Z.fileList},O.map((function(e){var t=e.lastModified,n=e.name,r=e.size,o=Math.floor(Math.log(r)/Math.log(1024)),i=(r/Math.pow(1024,o)).toFixed(2),a=r>0?"".concat(i).concat(Qr[o]):"0 bytes";return u("li",{key:"".concat(n,"_").concat(t),css:Z.fileListItem},u("h4",{css:Z.title},n),u("span",{css:Z.fileSize},a),u(ir,{css:Z.removeIcon,onClick:z(e)}))}))):u(t.Fragment,null,m&&u("h4",{css:Z.title},m),v&&u("p",{css:Z.description},v)))},$r={name:"1k4v6ft",styles:"display:inline-flex;flex-direction:column;list-style:none;margin:0;padding:0;width:min-content;"},eo={name:"p98ib",styles:"display:inline-flex;flex-direction:column;justify-content:center;padding-right:30px;position:relative;&:not(:last-of-type){margin-bottom:10px;}"},to=function(e){var t=e.colorPalette;return{container:d(Oe,";border:1px dashed ",t.border,";border-radius:",Ie.borderRadius,";cursor:pointer;display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:14px;justify-content:center;line-height:20px;min-height:60px;padding:10px 10px 10px 40px;position:relative;transition:border-color 0.1s linear;& > *{pointer-events:none;}&:hover{border-color:",t.fontLight,";}"),description:d("color:",t.fontLight,";margin:0;"),documentIcon:d("color:",t.fontLight,";width:20px;"),fileList:$r,fileListItem:eo,fileSize:d("color:",t.fontLight,";font-size:12px;"),removeIcon:d("color:",t.fontLight,";height:18px;pointer-events:all;position:absolute;right:0;top:1px;transition:color 0.1s linear;&:hover{color:",t.error,";}"),title:d("color:",t.font,";font-weight:normal;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"),uploadIcon:d("color:",t.fontLight,";height:20px;left:10px;position:absolute;top:50%;transform:translateY(-50%);")}};function no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},no.apply(this,arguments)}var ro,oo,io=n((function(t,n){return e.createElement("svg",no({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),_r||(_r=e.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}));function ao(){return ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ao.apply(this,arguments)}var lo,co,so,uo=n((function(t,n){return e.createElement("svg",ao({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),ro||(ro=e.createElement("path",{opacity:.12,d:"M9 12a3 3 0 0 0 5.121 2.121L9.88 9.88A2.99 2.99 0 0 0 9 12Z",fill:"currentColor"})),oo||(oo=e.createElement("path",{d:"M10.742 5.092C11.15 5.032 11.569 5 12 5c5.105 0 8.455 4.505 9.58 6.287.137.215.205.323.243.49.028.125.028.322 0 .447-.038.166-.107.274-.244.492-.3.474-.757 1.141-1.363 1.865M6.724 6.715c-2.162 1.467-3.63 3.504-4.303 4.57-.137.217-.206.325-.244.492a1.173 1.173 0 0 0 0 .446c.038.167.107.274.243.49C3.545 14.495 6.895 19 12 19c2.058 0 3.832-.732 5.288-1.723M3 3l18 18M9.879 9.879a3 3 0 1 0 4.243 4.243",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}));function po(){return po=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},po.apply(this,arguments)}var fo,go=n((function(t,n){return e.createElement("svg",po({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),lo||(lo=e.createElement("path",{opacity:.12,d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",fill:"currentColor"})),co||(co=e.createElement("path",{d:"M2.42 12.713c-.136-.215-.205-.323-.243-.49a1.173 1.173 0 0 1 0-.446c.038-.167.107-.274.243-.49C3.545 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.028.125.028.322 0 .446-.038.167-.107.274-.243.49C20.455 14.495 17.105 19 12 19s-8.455-4.505-9.58-6.287Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),so||(so=e.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))})),ho=function(e){var t=e.gridArea,n=e.highlightColor,r=e.highlighted,i=e.show,c=e.ariaLabel,s=e.autoComplete,d=void 0===s?"current-password":s,p=e.description,f=e.disabled,g=e.id,b=e.label,v=e.name,m=e.onChange,y=e.onToggleRevealPassword,x=e.placeholder,w=e.revealPassword,C=void 0===w?void 0!==i&&i:w,k=e.showIcon,I=void 0===k||k,O=e.status,P=e.statusMessage,A=e.value,L=void 0===A?"":A;!function(e){var t=e.gridArea,n=e.highlighted,r=e.highlightColor,o=e.show;Qe('WJEC One Password: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==t}),[t]),Qe('WJEC One Password: The "highlighted" prop has been deprecated because highlighting an input component with a border color does not fit with the latest WJEC One design. Please use an alternative approach or CSS override',(function(){return void 0!==n}),[n]),Qe('WJEC One Password: The "highlightColor" prop has been deprecated due to its association with the deprecated `highlighted` prop',(function(){return void 0!==r}),[r]),Qe('WJEC One Password: The "show" prop has been replaced with the new "revealPassword" prop, which has identical functionality but more clearly represents its intent',(function(){return void 0!==o}),[o])}({gridArea:t,highlightColor:n,highlighted:r,show:i});var E=o(),S=o(),F=oe(D(),1)[0],j=F.brand,W=F.colorPalette,M=R(),B=l((function(){return g||M}),[M,g]);a((function(){S.current.setAttribute("aria-pressed",C.toString()),E.current.setAttribute("type",C?"text":"password")}),[C]),a((function(){E.current.value=L}),[L]),a((function(){S.current.style.setProperty("--offset-top","".concat(E.current.offsetTop,"px"))}));var z=l((function(){switch(O){case"error":return{background:W.errorBackground,border:W.error};case"success":return{background:W.successBackground,border:W.success};case"warning":return{background:W.warningBackground,border:W.warning};default:return{}}}),[j,O]),H=T(vo),J=l((function(){return{"--background-color":z.background,"--border-color":z.border,"--icon":!I&&"none","--margin-top":b&&"4px","--padding-left":!I&&"8px"}}),[b,I,z]),X=Z({"aria-label":c,"aria-pressed":C,isDisabled:f,onPress:function(){var e="true"!==S.current.getAttribute("aria-pressed");S.current.setAttribute("aria-pressed",e.toString()),E.current.setAttribute("type",e?"text":"password"),h(y)&&y(e)},type:"button"},S).buttonProps;return u("label",{"aria-label":c,css:H.label,htmlFor:B,"data-disabled":f},b,u("input",{ref:E,autoComplete:d,css:H.input,defaultValue:L,disabled:f,id:B,name:v,onChange:function(e){var t=e.target.value;h(m)&&m(t)},placeholder:x,style:J,type:C?"text":"password"}),u("button",ee({},X,{css:H.revealPassword,name:"Reveal password",ref:S})),u(Zn,null,p),u(Kn,{status:O},P))},bo={name:"1ynvfur",styles:"font-size:12px;margin-top:4px;"},vo=function(e){var t=e.colorPalette;return{description:bo,input:d("--background-color:#FFFFFF;--border-color:",t.border,";--icon:",g(u(io,{color:t.neutralLight})),";--margin-top:0;--padding-left:40px;",Pe,";background:var(--background-color) var(--icon) center left 8px / 24px no-repeat;border:1px solid var(--border-color);border-radius:",Ie.borderRadius,";font-family:inherit;font-size:16px;height:40px;line-height:24px;margin-top:var(--margin-top);max-width:100%;outline:none;padding:4px 40px 4px var(--padding-left);width:100%;&:disabled{--icon:",g(u(io,{color:t.border})),";background-color:",t.neutral,";border-color:",t.border,";color:",t.border,";cursor:not-allowed;+ button{background-image:",g(u(uo,{color:t.border})),';&[aria-pressed="true"]{background-image:',g(u(go,{color:t.border})),";}}}&:focus{border-color:",t.primary,";}&::placeholder{color:",t.neutralLight,";}"),label:d(Oe,";",Ae,';display:inline-flex;flex-direction:column;position:relative;&[data-disabled="true"]{color:',t.border,";}"),revealPassword:d("--offset-top:0;background:transparent ",g(u(uo,{color:t.neutralLight}))," center / 24px no-repeat;border:none;color:",t.neutralLight,";cursor:pointer;position:absolute;height:40px;padding:4px 8px;right:0;top:var(--offset-top);width:40px;&:disabled{pointer-events:none;}&:focus{outline-color:",t.primary,';outline-width:1px;}&[aria-pressed="true"]{background-image:',g(u(go,{color:t.primary})),";color:",t.primary,";}")}},mo=function(e){var n=e.ariaLabel,r=e.description,i=e.disabled,c=e.gridArea,s=e.keyExtractor,d=e.highlightedOption,p=e.id,f=e.label,g=e.labelExtractor,y=e.name,x=e.onSelect,w=e.options,C=e.orientation,k=void 0===C?"horizontal":C,P=e.selectedOption,A=e.status,L=e.statusMessage;Qe('WJEC One RadioGroup: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==c}),[c]),Ne("WJEC-One RadioGroup: You must specify a keyExtractor if the options array contains non-primitive entry type",(function(){return!I(w)&&!O(w)&&!s}),[s]),Qe("WJEC One CheckBox: This prop has been deprecated because highlighting options within a RadioGroup component with a border color does not fit with the latest WJEC One design. Please use an alternative approach or CSS override",(function(){return void 0!==d}),[d]);var E=R(p),S=o();a((function(){if(P){var e=S.current.querySelectorAll('input[type="radio"]'),t=w.indexOf(P),n=B(P,t),r=Array.from(e).find((function(e){return e.value===n}));r&&(r.checked=!0)}}),[w,P]);var F=oe(D(),1)[0],j=F.brand,W=F.colorPalette,M=l((function(){switch(A){case"error":return{background:W.errorBackground,border:W.error};case"success":return{background:W.successBackground,border:W.success};case"warning":return{background:W.warningBackground,border:W.warning};default:return{}}}),[j,A]),B=function(e,t){return b(e)?e.key:m(e,s,t)},z=function(e){return function(){h(x)&&x(e)}},Z=T(xo),H=l((function(){return{"--background-color":M.background,"--border-color":M.border,"--flex-direction":"vertical"===k&&"column","--flex-gap":"vertical"===k&&"16px 8px","--margin-top":f&&"4px"}}),[f,k,M]);return u("label",{css:Z.label,id:E,"data-disabled":i||void 0},f,u("fieldset",{css:Z.container,ref:S,style:H},w.map((function(e,r){var o=B(e,r),a=r===w.indexOf(P);return u(t.Fragment,{key:o},u("input",{css:Z.radioButton,defaultChecked:a,disabled:i,id:"".concat(E,"_").concat(r),name:y||E,onChange:z(e),type:"radio",value:o}),u("label",{"aria-label":n,css:Z.radioButtonContainer,htmlFor:"".concat(E,"_").concat(r)},b(e)?e.label:v(e,g,r)))}))),u(Zn,null,r),u(Kn,{status:A},L))},yo={name:"14uy2ws",styles:"align-items:center;cursor:pointer;display:flex;&::before{background-clip:content-box;border:1px solid var(--border-color);border-radius:50%;box-shadow:0 0 0 var(--shadow-size) var(--shadow-color) inset;content:'';display:inline-block;height:40px;margin-right:8px;padding:8px;width:40px;}"},xo=function(e){var t=e.colorPalette;return{container:d("--background-color:#FFFFFF;--border-color:",t.border,";--flex-direction:row;--flex-gap:8px 16px;--margin-top:0;--shadow-color:var(--background-color);--shadow-size:16px;",Oe,";align-items:flex-start;border:none;display:flex;flex-direction:var(--flex-direction);flex-wrap:wrap;gap:var(--flex-gap);margin:var(--margin-top) 0 0;padding:0;"),label:d(Ae,';&[data-disabled="true"]{color:',t.border,";}"),radioButton:d(Ie.visiblyHidden," position:absolute;&:checked + label::before{--shadow-size:8px;background-color:",t.primary,";padding:6px;}&:disabled + label{--border-color:",t.border,";--shadow-color:",t.neutral,";color:",t.border,";cursor:not-allowed;&::before{background-color:",t.border,";}}&:focus + label::before{--border-color:",t.primary,";}"),radioButtonContainer:yo}};function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wo.apply(this,arguments)}var Co,ko,Io,Oo,Po,Ao=n((function(t,n){return e.createElement("svg",wo({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),fo||(fo=e.createElement("path",{d:"m6 9 6 6 6-6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))})),Lo={name:"1ynvfur",styles:"font-size:12px;margin-top:4px;"},Eo={name:"801txx",styles:"font-size:12px;font-weight:600;margin-top:4px;padding-left:24px;position:relative;"},So={name:"ezpkst",styles:"left:0;position:absolute;top:50%;transform:translateY(-50%);width:16px;"},Fo=function(e){var t=e.colorPalette;return{description:Lo,label:d(Oe,";",Ae,';display:flex;flex-direction:column;position:relative;&[data-disabled="true"]{color:',t.border,";}"),select:d("--background-color:#FFFFFF;--border-color:",t.border,";--margin-top:0;appearance:none;background:var(--background-color) ",g(u(Ao,{color:t.neutralLight}))," calc(100% - 8px) center / 24px no-repeat;border:1px solid var(--border-color);border-radius:",Ie.borderRadius,";color:",t.neutralDark,";font-family:'Montserrat',sans-serif;font-size:16px;height:40px;line-height:24px;margin-top:var(--margin-top);outline:none;padding:4px 40px 4px 8px;width:100%;&:disabled{background-color:",t.neutral,";background-image:",g(u(Ao,{color:t.border})),";border-color:",t.border,";color:",t.border,";cursor:not-allowed;}&:focus{border-color:",t.primary,";}&::placeholder{color:",t.neutralLight,";}"),status:Eo,statusError:d("color:",t.error,";"),statusIcon:So,statusSuccess:d("color:",t.success,";"),statusWarning:d("color:",t.warning,";")}},jo=function(e,t,n){var r;return b(e)?e.key:null===(r=m(e,t,function(e,t){return t.findIndex((function(t){return t===e||Wo(t)&&t.options.includes(e)}))}(e,n)))||void 0===r?void 0:r.toString()},Wo=function(e){return E(e)&&Object.hasOwn(e,"options")&&Object.hasOwn(e,"label")&&"string"==typeof e.label},Mo=function(e){var t=e.gridArea,n=e.highlightColor,r=e.highlighted,i=e.optionComparator,c=e.readonly,s=e.sortOptions,d=e.blankOption,p=e.description,f=e.disabled,g=e.id,m=e.label,y=e.name,x=e.onSelect,w=e.optionKeyExtractor,C=e.optionLabelExtractor,k=e.options,P=e.placeholder,A=e.selectedOption,L=e.status,E=e.statusMessage;!function(e){var t=e.gridArea,n=e.highlightColor,r=e.highlighted,o=e.optionComparator,i=e.readonly,a=e.sortOptions;Qe('WJEC One Select: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==t}),[t]),Qe('WJEC One Select: The "highlighted" prop has been deprecated because highlighting an input component with a border color does not fit with the latest WJEC One design. Please use an alternative approach or CSS override',(function(){return void 0!==r}),[r]),Qe('WJEC One Select: The "highlightColor" prop has been deprecated due to its association with the deprecated `highlighted` prop',(function(){return void 0!==n}),[n]),Qe('WJEC One Select: The "optionComparator" prop has been deprecated because the component no longer provides sorting functionality. Sorting should be performed in the parent component, and the sorted list provided via the "options" prop',(function(){return void 0!==o}),[o]),Qe('WJEC One Select: The "readonly" prop has been deprecated because the underlying HTML element does not support a "readonly" attribute, and therefore behavior cannot be guaranteed. An alternative such as `<Input readonly value="..." />` can be used',(function(){return void 0!==i}),[i]),Qe('WJEC One Select: The "sortOptions" prop has been deprecated because the component no longer provides sorting functionality. Sorting should be performed in the parent component, and the sorted list provided via the "options" prop',(function(){return void 0!==a}),[a])}({gridArea:t,highlightColor:n,highlighted:r,optionComparator:i,readonly:c,sortOptions:s}),Qe("WJEC One Select: You have provided a list of options that contains duplicate primitive values. This is not recommended and may lead to unexpected behavior, but if you really want to do this then you need to supply a keyExtractor so that it is possible to differentiate between the duplicate options (doing so will also suppress this warning)",(function(){var e=new Set;return k.some((function(t){return!!(Wo(t)&&I(t.options)&&S(t.options))||(!!e.has(t)||(e.add(t),!1))}))&&!w}),[w,k]),Ne("WJEC One Select: You must specify a keyExtractor if the options array contains non-primitive entry types",(function(){return k.some((function(e){if(Wo(e)){var t=e.options,n=I(t),r=O(t);return!(n||r||w)}return!(F(e)||b(e)||w)}))}),[w,k]);var j=oe(D(),1)[0],W=j.brand,M=j.colorPalette,B=o(),z=R(),Z=l((function(){return g||z}),[z,g]),H=l((function(){return A?jo(A,w,k):""}),[w,k,A]);a((function(){B.current.value=H}),[H]);var J=l((function(){switch(L){case"error":return{background:M.errorBackground,border:M.error};case"success":return{background:M.successBackground,border:M.success};case"warning":return{background:M.warningBackground,border:M.warning};default:return{}}}),[W,L]),X=function(e,t){var n=jo(e,w,k);return u("option",{key:n,value:n},b(e)?e.label:v(e,C,t))},N=T(Fo),G=l((function(){return{"--background-color":J.background,"--border-color":J.border,"--margin-top":m&&"4px"}}),[m,J]);return u("label",{css:N.label,htmlFor:Z,"data-disabled":f},m,u("select",{ref:B,css:N.select,defaultValue:H,disabled:f,id:Z,name:y,onChange:function(e){var t=function(e,t,n){var r;return n.find((function(o){if(Wo(o))r=o.options.find((function(r){return jo(r,t,n)===e}));else{var i=jo(o,t,n);r=i===e?o:void 0}return void 0!==r})),r}(e.target.value,w,k);h(x)&&x(t)},style:G},P&&u("option",{disabled:!0,hidden:!0,value:""},P),d&&u("option",{value:""}),k.map((function(e,t){return Wo(e)?u("optgroup",{key:e.label,label:e.label},e.options.map((function(e){return X(e,t)}))):X(e,t)}))),u(Zn,null,p),u(Kn,{status:L},E))},Bo=function(e){var t=e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase();return t.startsWith("data-")||(t="data-".concat(t)),t},zo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeIfFalse,r=t.excludeIfFalsy,o=t.excludeIfNull,i=void 0===o||o,a=t.excludeIfUndefined,c=void 0===a||a,s=l((function(){return Object.entries(e).reduce((function(e,t){var o=oe(t,2),a=o[0],l=o[1];return n&&!1===l||r&&!l||i&&null===l||c&&void 0===l?e:Q(Q({},e),{},$({},Bo(a),String(l)))}),{})}),[e]);return s},To=function(e){var t=e.ariaDescription,n=e.ariaLabel,o=e.disabled,a=e.gridArea,l=e.height,c=void 0===l?"auto":l,s=e.id,p=e.label,f=e.maxCharacters,g=e.maxHeight,b=void 0===g?"100%":g,v=e.maxWidth,m=void 0===v?"100%":v,y=e.onChange,x=e.placeholder,w=e.readonly,C=e.resizable,k=void 0!==C&&C,I=e.showCount,O=void 0===I||I,P=e.value,A=void 0===P?"":P,L=e.width,E=void 0===L?"100%":L;Qe('WJEC One TextArea: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==a}),[a]);var S=oe(r(A),2),F=S[0],j=S[1],W=mt(t);i((function(){A!==F&&j(A)}),[A]);var M=T(Do),B=zo({"data-current-value-length":null==F?void 0:F.length},{excludeIfFalse:!0});return u("label",ee({"aria-label":n},B,{css:d([M.label,a&&{gridArea:a},O&&d("&::after{content:attr(data-current-value-length) '",void 0!==f&&"/".concat(f),"';}"),{maxWidth:m,width:E}]),"data-max-count":f}),p,u("textarea",ee({id:s,css:d([Ie.scrollbar,M.textarea,{height:c,maxHeight:b,resize:k?"both":"none"}]),value:F,placeholder:x,onChange:function(e){var t=e.target.value;j(t),h(y)&&y(t)},readOnly:w,disabled:o,maxLength:f},w?{tabIndex:-1}:{},W)))},Do=function(e){var t=e.colorPalette;return{label:d(Oe,";display:inline-flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:11px;line-height:20px;&::after{color:",t.fontLight,";display:inline-block;font-size:12px;font-family:'Montserrat',sans-serif;margin:5px 5px 0 0;text-align:right;}"),textarea:d("border:1px solid ",t.border,";border-radius:",Ie.borderRadius,";color:",t.font,";font-family:'Montserrat',sans-serif;font-size:14px;font-weight:400;line-height:20px;outline:none;padding:10px;text-overflow:ellipsis;white-space:nowrap;&:disabled{background-color:",t.neutral,";cursor:not-allowed;}&:focus{border-color:",t.primary,";}&:not(:read-only){transition:border-color 0.05s linear;}")}},Zo=function(e){var t=e.gridArea,n=e.offLabel,r=e.onLabel,i=e.ariaLabel,c=e.disabled,s=e.id,d=e.label,p=e.on,f=void 0!==p&&p,g=e.onChange,b=e.value,v=void 0===b?r:b;Qe('WJEC One Toggle: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==t}),[t]),Qe('WJEC One Toggle: The "offLabel" prop has been deprecated because the latest v4 design has no off label',(function(){return void 0!==n}),[n]),Qe('WJEC One Toggle: The "onLabel" prop has been deprecated because the latest v4 design has solely an on label, therefore this has been replaced with label',(function(){return void 0!==r}),[r]);var m=o(),y=R(s);a((function(){m.current.setAttribute("aria-pressed",f.toString())}),[f]);var x=T(Ro),w=l((function(){return{"--margin-top":d&&"4px","--toggle-margin-right":v&&"8px"}}),[d,v]),C=Z({"aria-label":i,"aria-pressed":f,id:y,isDisabled:c,onPress:function(){var e="true"===m.current.getAttribute("aria-pressed");m.current.setAttribute("aria-pressed",(!e).toString()),h(g)&&g(!e)}},m).buttonProps;return u("label",{css:x.label,htmlFor:y,"data-disabled":c||void 0},d,u("button",ee({},C,{css:x.toggleButton,ref:m,style:w}),v))},Ro=function(e){var t=e.colorPalette;return{label:d(Oe,";",Ae,';cursor:pointer;display:inline-block;&[data-disabled="true"]{color:',t.border,";cursor:not-allowed;}"),toggleButton:d("--margin-top:0;--toggle-margin-right:0;align-items:center;background-color:transparent;border:0;border-radius:12px;color:",t.neutralDark,";cursor:inherit;display:flex;font-family:'Montserrat',sans-serif;font-size:16px;font-weight:400;line-height:24px;margin-top:var(--margin-top);outline-color:",t.primary,";outline-offset:3px;padding:0;position:relative;&:disabled{color:",t.border,";&::after{background-color:",t.border,";}}&:after{background-color:",t.neutralLight,";border-radius:12px;content:'';display:block;height:",18,"px;left:0;margin:",3,"px;position:absolute;top:calc(50% - ",12,"px);transition:color 0.1s linear,transform 0.1s linear;width:",18,"px;}&:before{background-color:#FFFFFF;border:1px solid ",t.border,";border-radius:",12,"px;content:'';display:block;flex-shrink:0;height:",24,"px;margin-right:var(--toggle-margin-right);position:relative;width:",48,'px;}&[aria-pressed="true"]{&::after{background-color:',t.primary,";transform:translateX(",24,"px);}&::before{border-color:",t.primary,";}}")}},Ho=function(e){var t=e.ariaDescription,n=e.borderColor,r=e.children,i=e.icon,a=void 0===i?Sn:i,c=e.iconColor,s=e.id,d=e.title,p=e.titleColor,f=oe(D(),1)[0],g=f.brand,h=f.colorPalette,b=o(),v=mt(t),m=T(Go),y=l((function(){return n||h.secondary}),[g,n]),x=l((function(){return c||h.secondaryDark}),[g,c]),w=l((function(){return p||h.secondaryDark}),[g,p]);return ut("--border-color",y,b),ut("--icon-color",x,b),ut("--title-color",w,b),u("div",ee({css:m.infoCardMain,id:s,ref:b},v),u(a,{css:m.icon}),u("div",null,u("h3",{css:m.title},d),u("p",{css:m.message},r)))},Jo={name:"1i9s3a8",styles:"color:var(--icon-color);flex-shrink:0;height:24px;width:24px;"},Xo={name:"1uk1gs8",styles:"margin:0;"},No={name:"172fn9d",styles:"color:var(--title-color);font-weight:600;margin:0 0 4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},Go=function(e){var t=e.colorPalette;return{icon:Jo,infoCardMain:d("--border-color:",t.secondary,";--icon-color:",t.secondaryDark,";--title-color:",t.secondaryDark,";background-color:#ffffff;border:1px solid var(--border-color);border-radius:",Ie.borderRadius,";box-shadow:",Ie.dropShadow,";display:flex;font-family:'Montserrat',sans-serif;font-size:16px;gap:16px;line-height:24px;padding:16px;"),message:Xo,title:No}},Vo=function(e){var t=oe(D(),1)[0].colorPalette;return u(Ho,ee({},e,{borderColor:t.error,icon:Tn,iconColor:t.error,titleColor:t.errorDark}))},Yo=function(e){var t=oe(D(),1)[0].colorPalette;return u(Ho,ee({},e,{borderColor:t.success,icon:Mn,iconColor:t.success,titleColor:t.successDark}))},qo=function(e){var t=oe(D(),1)[0].colorPalette;return u(Ho,ee({},e,{borderColor:t.warning,icon:Tn,iconColor:t.warning,titleColor:t.warningDark}))};function _o(){return _o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_o.apply(this,arguments)}var Uo,Qo,Ko,$o,ei,ti=n((function(t,n){return e.createElement("svg",_o({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Co||(Co=e.createElement("path",{d:"M27.565 14.13c-.134-10.058-10.33-8.59-11.991-8.283a.203.203 0 0 0-.156.262l2.16 6.588c.1.303.417.479.726.4 5.147-1.298 8.369.613 9.102 1.118a.101.101 0 0 0 .16-.085",fill:"#BDBCBC"})),ko||(ko=e.createElement("path",{d:"M27.858 14.13C27.992 4.072 38.19 5.54 39.85 5.848c.121.022.194.145.123.363l-2.22 6.77c-.033.102-.248.218-.456.163-5.25-1.388-8.537.562-9.279 1.072a.101.101 0 0 1-.159-.085",fill:"#E65000"})),Io||(Io=e.createElement("path",{d:"M28.851 8.37c2.36-6.255 9.127-6.033 10.522-5.918.13.01.216.14.175.265l-.692 2.11a.101.101 0 0 1-.107.069c-6.007-.667-8.716 2.088-9.72 3.566-.067.1-.22.02-.178-.092",fill:"#69B3E6"})),Oo||(Oo=e.createElement("path",{d:"m38.78.266-.415 1.267a.102.102 0 0 1-.096.07c-4.79.048-7.351 2.563-8.428 4.005-.074.099-.227.005-.172-.105.923-1.859 3.414-5.44 8.915-5.503a.203.203 0 0 1 .196.266Z",fill:"#FABD34"})),Po||(Po=e.createElement("path",{d:"M4.325 40C1.485 40 0 37.687 0 35.4c0-2.27 1.486-4.57 4.325-4.57 2.15 0 3.383 1.331 3.435 1.388a.716.716 0 0 1-1.057.966c-.042-.045-.888-.922-2.378-.922-1.988 0-2.893 1.627-2.893 3.139 0 1.526.905 3.167 2.893 3.167 1.494 0 2.36-.93 2.369-.94a.716.716 0 0 1 1.071.95C7.714 38.636 6.48 40 4.325 40ZM32.96 40c-2.84 0-4.325-2.313-4.325-4.6 0-2.27 1.485-4.57 4.324-4.57 2.15 0 3.384 1.331 3.435 1.388a.716.716 0 0 1-1.056.966c-.042-.045-.888-.922-2.379-.922-1.988 0-2.893 1.627-2.893 3.139 0 1.526.905 3.167 2.893 3.167 1.495 0 2.361-.93 2.37-.94a.716.716 0 0 1 1.07.95c-.05.058-1.284 1.422-3.44 1.422ZM14.142 28.887a.715.715 0 0 1-.409-1.304c1.24-.86 1.345-2.47 1.332-3.122v-7.402a.716.716 0 0 1 1.432 0v7.354c.016.904-.14 3.093-1.948 4.346a.71.71 0 0 1-.407.128ZM33.002 25.513c-2.839 0-4.325-2.313-4.325-4.599 0-2.271 1.486-4.571 4.325-4.571 2.15 0 3.384 1.331 3.435 1.388a.716.716 0 0 1-1.056.966c-.043-.046-.89-.922-2.379-.922-1.987 0-2.893 1.627-2.893 3.14 0 1.525.906 3.167 2.893 3.167 1.492 0 2.338-.906 2.373-.945a.718.718 0 0 1 1.01-.05c.291.263.319.71.058 1.004-.052.058-1.286 1.422-3.44 1.422M11.539 16.34a.716.716 0 0 0-.716.716v5.207c0 1.007-.82 1.826-1.826 1.826h-.053a1.828 1.828 0 0 1-1.826-1.826v-5.207a.716.716 0 1 0-1.432 0v5.207c0 1.007-.819 1.826-1.825 1.826h-.054a1.828 1.828 0 0 1-1.825-1.826v-5.207a.716.716 0 0 0-1.432 0v5.207a3.261 3.261 0 0 0 3.257 3.257h.054c1.027 0 1.944-.48 2.541-1.225a3.251 3.251 0 0 0 2.542 1.225h.053a3.261 3.261 0 0 0 3.258-3.257v-5.207a.716.716 0 0 0-.716-.716ZM13.314 30.822c-.891 0-1.605.262-2.154.663v-3.314a.715.715 0 1 0-1.43 0v9.72a.71.71 0 0 0 .082.33c.038.072.95 1.76 3.502 1.76 1.32 0 2.44-.508 3.238-1.466.696-.835 1.08-1.946 1.08-3.126 0-1.064-.35-2.14-.957-2.953-.55-.736-1.581-1.614-3.361-1.614Zm0 7.729c-.905 0-1.49-.301-1.817-.551a.866.866 0 0 1-.337-.693v-3.038c0-.659.526-2.017 2.154-2.017 2.284 0 2.888 2.052 2.888 3.137 0 1.523-.904 3.162-2.888 3.162M22.885 16.347c-1.774 0-2.773.87-3.297 1.598-.78 1.082-.896 2.325-.896 2.97 0 1.18.384 2.29 1.08 3.126.799.958 1.918 1.465 3.238 1.465 2.152 0 3.384-1.362 3.435-1.42a.714.714 0 0 0-1.07-.948c-.008.01-.873.938-2.365.938-1.669 0-2.574-1.159-2.82-2.434h5.98c.396 0 .716-.32.716-.714 0-2.28-1.238-4.58-4-4.58Zm-2.716 3.866c.33-2.31 2.294-2.436 2.716-2.436 1.835 0 2.364 1.476 2.514 2.436h-5.23ZM26.877 32.586c-.038-.072-.95-1.759-3.502-1.759-2.834 0-4.318 2.297-4.318 4.567 0 1.18.384 2.29 1.08 3.126.799.959 1.918 1.465 3.238 1.465l.034-.001c.876-.007 1.58-.268 2.122-.666a.715.715 0 0 0 1.427-.047v-6.353a.719.719 0 0 0-.081-.332Zm-1.348 3.953c0 .658-.527 2.017-2.154 2.017-2.285 0-2.888-2.052-2.888-3.137 0-1.523.904-3.162 2.888-3.162.905 0 1.489.3 1.817.55a.868.868 0 0 1 .337.694v3.038Z",fill:"#009FE3"})))}));function ni(){return ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ni.apply(this,arguments)}var ri,oi=n((function(t,n){return e.createElement("svg",ni({viewBox:"0 0 298 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Uo||(Uo=e.createElement("path",{d:"M235.171 71.957c-.671-50.518-51.708-43.14-60.018-41.605a1.02 1.02 0 0 0-.781 1.318l10.817 33.09a3.034 3.034 0 0 0 3.629 2.007c25.761-6.52 41.889 3.08 45.557 5.613.339.234.8-.01.796-.423Z",fill:"#BDBCBC"})),Qo||(Qo=e.createElement("path",{d:"M236.637 71.957c.671-50.518 51.709-43.14 60.019-41.605.603.112.971.732.613 1.826l-11.109 34c-.17.515-1.242 1.095-2.283.818-26.278-6.969-42.732 2.822-46.443 5.384a.508.508 0 0 1-.797-.423Z",fill:"#F1511B"})),Ko||(Ko=e.createElement("path",{d:"M241.607 43.024C253.419 11.61 287.286 12.723 294.27 13.3c.654.055 1.082.708.879 1.332l-3.463 10.597a.507.507 0 0 1-.54.346c-30.062-3.348-43.624 10.49-48.645 17.914-.336.497-1.106.097-.894-.466Z",fill:"#69B3E6"})),$o||($o=e.createElement("path",{d:"m291.304 2.325-2.08 6.363a.51.51 0 0 1-.477.35c-23.975.245-36.795 12.875-42.185 20.115-.369.496-1.134.025-.859-.527 4.619-9.335 17.083-27.32 44.621-27.637.696-.01 1.197.671.98 1.336Z",fill:"#FABD34"})),ei||(ei=e.createElement("path",{d:"M223.864 112.447c0 3.308-2.635 10.135-10.779 10.135-11.435 0-14.454-10.307-14.454-15.757 0-7.65 4.522-15.883 14.454-15.883 4.528 0 7.452 1.514 9.095 2.766 1.078.821 1.684 2.124 1.684 3.481v15.258Zm-10.779-28.685c-14.186 0-21.61 11.54-21.61 22.937 0 5.93 1.919 11.507 5.401 15.701 3.999 4.814 9.602 7.36 16.209 7.36.058 0 .113-.007.173-.01 4.383-.033 7.905-1.343 10.618-3.343a3.581 3.581 0 0 0 3.565 3.353 3.583 3.583 0 0 0 3.577-3.589V94.262c0-.579-.142-1.151-.408-1.665-.187-.359-4.753-8.835-17.525-8.835ZM7.8 103.21c1.655-11.596 11.482-12.232 13.596-12.232 9.184 0 11.83 7.41 12.582 12.232H7.8Zm13.596-19.412c-8.88 0-13.878 4.365-16.504 8.023C.992 97.256.41 103.5.41 106.736c0 5.929 1.919 11.505 5.4 15.699 4.001 4.815 9.604 7.361 16.21 7.361 10.77 0 16.938-6.842 17.195-7.131a3.597 3.597 0 0 0-.306-5.066 3.565 3.565 0 0 0-5.046.306c-.043.048-4.376 4.713-11.843 4.713-8.353 0-12.883-5.825-14.11-12.227h29.932a3.58 3.58 0 0 0 3.577-3.589c0-11.449-6.192-23.004-20.022-23.004Zm237.237 19.499a48.905 48.905 0 0 1-1.565-.412c-7.068-2.034-9.221-3.672-9.221-7.011 0-3.09 3.077-4.933 8.237-4.933 4.615 0 9.241 2.6 9.294 2.633a3.574 3.574 0 0 0 4.877-1.33 3.596 3.596 0 0 0-1.319-4.9c-.255-.146-6.29-3.583-12.852-3.583-7.664 0-15.392 3.747-15.392 12.113 0 9.765 9.368 12.463 14.404 13.911.539.156 1.14.307 1.778.471 5.852 1.488 8.462 2.819 8.462 6.78 0 1.513-.447 2.623-1.411 3.483-2.062 1.846-6.037 2.321-9.065 1.977-5.52-.634-9.229-3.095-9.918-3.582-1.506-1.07-3.628-.844-4.828.563a3.598 3.598 0 0 0 .757 5.34c1.391.977 6.202 4.012 13.178 4.812.834.093 1.726.149 2.653.149 4.054 0 8.759-1.013 11.985-3.902 2.487-2.226 3.804-5.284 3.804-8.84 0-10.216-9.362-12.595-13.858-13.739ZM131.276 83.762a3.585 3.585 0 0 0-3.577 3.591v24.193c0 6.084-4.934 11.036-10.998 11.036-6.067 0-11.001-4.952-11.001-11.036V87.353a3.585 3.585 0 0 0-3.576-3.591 3.585 3.585 0 0 0-3.578 3.591v24.193c0 10.042 8.144 18.214 18.155 18.214 10.01 0 18.152-8.172 18.152-18.214V87.353a3.584 3.584 0 0 0-3.577-3.591Zm44.481 28.699c0 3.306-2.635 10.136-10.777 10.136-11.438 0-14.46-10.31-14.46-15.759 0-7.652 4.526-15.881 14.46-15.881 4.528 0 7.452 1.512 9.092 2.765 1.079.82 1.685 2.123 1.685 3.48v15.259ZM164.98 83.776c-6.607 0-12.211 2.546-16.21 7.362-3.484 4.192-5.403 9.771-5.403 15.7 0 5.344 1.744 10.75 4.787 14.829 2.758 3.695 7.916 8.107 16.826 8.107 4.456 0 8.031-1.315 10.777-3.334v16.65a3.583 3.583 0 0 0 3.578 3.589 3.583 3.583 0 0 0 3.576-3.589V94.275c0-.58-.139-1.15-.407-1.665-.188-.358-4.754-8.834-17.524-8.834Zm-83.114 32.558c0 1.358-.606 2.659-1.687 3.48-1.641 1.254-4.563 2.768-9.093 2.768-9.932 0-14.457-8.232-14.457-15.883 0-5.448 3.022-15.757 14.458-15.757 8.144 0 10.779 6.826 10.779 10.133v15.259Zm3.576-49.477a3.586 3.586 0 0 0-3.576 3.59v16.65c-2.75-2.02-6.321-3.335-10.78-3.335-8.909 0-14.068 4.411-16.826 8.11-3.04 4.079-4.784 9.483-4.784 14.827 0 5.93 1.917 11.507 5.401 15.701 3.997 4.814 9.604 7.36 16.21 7.36 12.772 0 17.338-8.473 17.525-8.833a3.6 3.6 0 0 0 .407-1.664V70.448a3.585 3.585 0 0 0-3.577-3.591ZM9.443 147.001c1.86 0 3.02-1.045 3.02-2.511v-.039c0-1.648-1.179-2.509-3.02-2.509H6.582v5.059h2.86Zm-5.323-6.063c0-.704.54-1.248 1.24-1.248h4.283c3.282 0 5.323 1.87 5.323 4.7v.041c0 3.151-2.522 4.797-5.604 4.797h-2.78v3.396c0 .681-.54 1.224-1.221 1.224a1.22 1.22 0 0 1-1.241-1.224v-11.686ZM23.553 149.933v-.723a6.715 6.715 0 0 0-2.4-.421c-1.563 0-2.483.661-2.483 1.767v.04c0 1.024.9 1.605 2.06 1.605 1.601 0 2.823-.923 2.823-2.268Zm-7.244.764v-.043c0-2.288 1.78-3.412 4.363-3.412 1.18 0 2.021.179 2.842.441v-.262c0-1.504-.921-2.307-2.622-2.307-.921 0-1.68.158-2.343.42a1.28 1.28 0 0 1-.38.06 1.01 1.01 0 0 1-1.021-1.004c0-.441.3-.823.661-.961.999-.383 2.02-.622 3.402-.622 1.58 0 2.762.417 3.504 1.183.779.763 1.138 1.886 1.138 3.273v5.221c0 .661-.521 1.163-1.18 1.163-.7 0-1.181-.483-1.181-1.023v-.402c-.719.863-1.82 1.546-3.441 1.546-1.983 0-3.742-1.144-3.742-3.271ZM28.758 144.25c0-.683.52-1.225 1.198-1.225.681 0 1.223.542 1.223 1.225v1.083c.56-1.325 1.6-2.328 2.661-2.328.76 0 1.2.502 1.2 1.206 0 .64-.42 1.063-.96 1.163-1.721.302-2.9 1.627-2.9 4.136v3.134c0 .661-.543 1.205-1.224 1.205-.66 0-1.198-.525-1.198-1.205v-8.394ZM37.524 150.816v-5.583h-.401c-.58 0-1.04-.46-1.04-1.044 0-.583.46-1.043 1.04-1.043h.4v-1.809a1.21 1.21 0 0 1 2.423 0v1.809h1.9c.58 0 1.06.46 1.06 1.043 0 .584-.48 1.044-1.06 1.044h-1.9v5.201c0 .946.478 1.326 1.3 1.326.279 0 .519-.06.6-.06.539 0 1.02.44 1.02 1.003 0 .439-.3.802-.64.945-.52.179-1.02.28-1.66.28-1.78 0-3.042-.786-3.042-3.112ZM59.518 148.507v-.039c0-1.87-1.341-3.416-3.243-3.416-1.94 0-3.181 1.527-3.181 3.374v.042c0 1.847 1.34 3.39 3.223 3.39 1.96 0 3.2-1.523 3.2-3.351Zm-8.843 0v-.039c0-3.034 2.4-5.544 5.642-5.544 3.24 0 5.623 2.471 5.623 5.502v.042c0 3.01-2.402 5.52-5.665 5.52-3.22 0-5.6-2.47-5.6-5.481ZM64.942 145.233h-.42c-.56 0-1.02-.44-1.02-1.004 0-.561.46-1.024 1.02-1.024h.42v-.782c0-1.165.3-2.048.86-2.611.562-.56 1.342-.845 2.383-.845.481 0 .882.041 1.22.103.44.058.84.459.84 1.002a.996.996 0 0 1-1.02 1.004 4.279 4.279 0 0 0-.5-.039c-.921 0-1.401.502-1.401 1.604v.587h1.882c.579 0 1.02.44 1.02 1.001 0 .564-.46 1.004-1.02 1.004h-1.841v7.409c0 .664-.542 1.205-1.221 1.205a1.205 1.205 0 0 1-1.202-1.205v-7.409ZM77.352 141.278a1.3 1.3 0 0 1-.1-.483c0-.683.58-1.205 1.26-1.205.6 0 1.06.382 1.22.905l3.223 9.656 3.162-9.615c.2-.583.62-.984 1.24-.984h.18c.62 0 1.061.401 1.241.984l3.162 9.615 3.223-9.676c.178-.503.599-.885 1.199-.885.66 0 1.22.522 1.22 1.186 0 .162-.058.36-.119.502l-4.143 11.645c-.22.622-.679 1.026-1.28 1.026H91.8c-.599 0-1.04-.382-1.26-1.026l-3.124-9.176-3.12 9.176c-.22.644-.68 1.026-1.28 1.026h-.24c-.601 0-1.04-.382-1.28-1.026l-4.144-11.645ZM97.526 152.402a1.297 1.297 0 0 1-.42-.923c0-.664.52-1.185 1.18-1.185.322 0 .542.099.761.281.681.703 1.34 1.085 2.281 1.085 1.362 0 2.261-.884 2.261-2.773v-8.069a1.23 1.23 0 0 1 1.24-1.225c.682 0 1.243.54 1.243 1.225v8.15c0 1.669-.501 2.912-1.322 3.736-.819.823-2.001 1.244-3.403 1.244-1.7 0-2.939-.661-3.82-1.546ZM109.455 152.503v-11.567c0-.702.54-1.245 1.24-1.245h8.145c.602 0 1.102.503 1.102 1.104a1.1 1.1 0 0 1-1.102 1.107h-6.924v3.653h6.024c.6 0 1.1.502 1.1 1.124 0 .602-.5 1.085-1.1 1.085h-6.024v3.776h7.025c.6 0 1.101.5 1.101 1.103 0 .625-.501 1.105-1.101 1.105h-8.246c-.7 0-1.24-.542-1.24-1.245ZM122.244 146.759v-.039c0-3.996 2.982-7.271 7.224-7.271 2.161 0 3.581.644 4.803 1.587.261.201.481.542.481.985 0 .683-.542 1.205-1.222 1.205-.34 0-.579-.121-.742-.242-.959-.784-1.998-1.264-3.339-1.264-2.662 0-4.624 2.207-4.624 4.958v.042c0 2.751 1.941 4.978 4.624 4.978 1.48 0 2.481-.48 3.502-1.344.18-.16.439-.279.74-.279.62 0 1.161.518 1.161 1.143 0 .382-.18.681-.399.884-1.322 1.166-2.824 1.887-5.084 1.887-4.082 0-7.125-3.195-7.125-7.23Z",fill:"#706D6E"})))})),ii=function(e){var t=e.copyrightMessage,n=void 0===t?"Copyright WJEC CBAC Ltd ".concat((new Date).getFullYear()):t,r=e.logos,o=void 0===r?[ti,oi]:r,i=e.maxWidth,a=void 0===i?1280:i,l=T(ci);return u("footer",{css:l.footer},u("div",{css:d([l.container,{maxWidth:"".concat(a,"px")}])},o.map((function(e,t){return u(e,{key:"logo_".concat(t),css:l.logo})})),u("span",{css:l.copyright},n)))},ai={name:"8zn5ov",styles:"align-items:center;display:flex;margin:0 auto;width:100%;"},li={name:"eeoqsk",styles:"height:25px;margin-right:10px;"},ci=function(e){var t=e.colorPalette;return{container:ai,copyright:d("border-left:1px solid ",t.border,";color:",t.fontLight,";font-size:12px;padding-left:10px;"),footer:d(Oe,";align-items:center;display:flex;justify-content:flex-start;padding:24px 30px 22px;width:100%;"),logo:li}};function si(){return si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},si.apply(this,arguments)}var di,ui,pi,fi,gi=n((function(t,n){return e.createElement("svg",si({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),ri||(ri=e.createElement("path",{d:"m10 4.742 4.167 3.75V15H12.5v-5h-5v5H5.833V8.492L10 4.742ZM10 2.5 1.667 10h2.5v6.667h5v-5h1.666v5h5V10h2.5L10 2.5Z",fill:"currentColor"})))})),hi={height:"40px",padding:"0"},bi=function(e){var n=e.logo,r=void 0===n?{eduqas:oi,wjec:ti}:n,o=e.logoId,i=e.logoStyles,a=e.maxWidth,c=void 0===a?1280:a,s=e.menus,p=e.onClickPageIcon,f=e.pageIcon,g=void 0===f?gi:f,h=e.pageIconHref,b=e.pageTitle,v=e.showPageTitle,m=void 0===v||v,y=oe(D(),1)[0].brand,x=T(xi),w=l((function(){return E(e=r)&&Object.hasOwn(e,"eduqas")&&Object.hasOwn(e,"wjec")?r[y]:r;var e}),[y,r]);return u("header",{css:x.header},u("div",{css:d([x.container,{maxWidth:"".concat(c,"px")}])},u("div",{css:x.titleContainer},m&&u(t.Fragment,null,u("a",{css:x.pageLink,href:h,onClick:p},u(g,{css:x.pageIcon})),u("h1",{css:x.title},b))),u(w,{css:d(Q(Q({},hi),i)),id:o}),u("section",{css:x.menuContainer},s)))},vi={name:"f7hwxs",styles:"align-items:center;display:grid;grid-gap:30px;grid-template-columns:1fr 100px 1fr;justify-items:center;margin:0 auto;"},mi={name:"euyatf",styles:"align-items:center;display:flex;flex:1;justify-content:flex-end;justify-self:end;min-width:175px;"},yi={name:"6o7adr",styles:"align-items:center;display:flex;justify-self:flex-start;"},xi=function(e){var t=e.colorPalette;return{container:vi,header:d(Oe,";background-color:#fff;border-bottom:1px solid ",t.border,";padding:15px 30px;position:sticky;top:0;width:100%;z-index:1;"),menuContainer:mi,pageIcon:d("color:",t.fontLight,";height:20px;margin-right:10px;"),pageLink:d("cursor:pointer;:hover > svg{color:",t.font,";}"),title:d(Le,";border-left:1px solid ",t.border,";color:",t.fontLight,";font-size:14px;font-weight:500;margin:0;max-width:100%;padding:5px 0 5px 10px;"),titleContainer:yi}},wi=function(e){var t=e.children,n=e.footerProps,r=e.headerProps,o=e.maxWidth,i=void 0===o?1280:o;return u("div",{css:Ci.pageWrapper},u(bi,ee({},r,{maxWidth:i})),u("main",{css:d([Ci.content,{maxWidth:"".concat(i+60,"px")}])},t),u(ii,ee({},n,{maxWidth:i})))},Ci={content:d("flex:1;margin:0 auto;min-height:100%;padding:40px ",30,"px 0;width:100%;"),pageWrapper:d(Oe,";display:flex;flex-direction:column;min-height:100vh;")},ki=function(e){var t=e.color,n=e.id,r=e.progress,i=o(),a=void 0===r,l=T(Pi);return ut("--background-color",t,i),u("progress",{"aria-label":"loading",css:d([l.progress,a&&l.progressIndeterminate]),id:n,max:100,ref:i,value:r})},Ii=p(di||(di=re(["\n 0% {\n left: -35%;\n right: 100%;\n }\n 60% {\n left: 100%;\n right: -90%;\n }\n 100% {\n left: 100%;\n right: -90%;\n }\n"]))),Oi=p(ui||(ui=re(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"]))),Pi=function(e){var t=e.colorPalette;return{progress:d("--background-color:",t.secondary,";appearance:none;border-radius:2px;height:4px;overflow:hidden;position:relative;width:100%;&::-webkit-progress-bar{background-color:var(--background-color);border-radius:2px;opacity:0.3;}&::-webkit-progress-value{background-color:var(--background-color);border-radius:2px;transition:width 0.3s ease-out;}"),progressIndeterminate:d("&::before,&::after{background-color:var(--background-color);border-radius:2px;bottom:0;content:'';left:0;position:absolute;top:0;}&::after{animation:",Ii," 2.1s cubic-bezier(0.65,0.815,0.735,0.395) infinite;}&::before{animation:",Oi," 2.1s cubic-bezier(0.165,0.84,0.44,1) infinite 1.15s;}")}},Ai=function(e){var t=e.ariaLabel,n=e.context,o=e.icons,a=e.id,l=e.keySuffix,c=void 0===l?"":l,d=e.open,p=void 0!==d&&d,f=e.selectLocaleAction,g=e.showLocaleNameInList,h=void 0===g||g,b=e.showSelectedLocaleName,v=oe(D(),1)[0].colorPalette,m=oe(s(n),2),y=m[0],x=y.availableLocales,w=y.locale,C=y.strings,k=m[1],I=oe(r(p),2),O=I[0],P=I[1],A=oe(r(w),2),L=A[0],E=A[1];i((function(){p!==O&&P(p)}),[p]),i((function(){w!==L&&E(w)}),[w]),i((function(){k(f(L))}),[L]);var S=function(e){return function(){return P(e)}};return u(vn,{"aria-label":t,id:a,open:O,options:null==x?void 0:x.map((function(e){return{icon:o&&o[e],label:h&&(C["".concat(String(e)).concat(c)]||"".concat(String(e)).concat(c)),onClick:(t=e,function(){E(t),P(!1)})};var t})),onHide:S(!1),onShow:S(!0),toggle:u(Ke,{allowEventPropagation:!0,color:"transparent",icon:o&&o[w],labelColor:v.fontLight},b&&(C["".concat(String(w)).concat(c)]||"".concat(String(w)).concat(c)),u(he,{css:Li.icon}))})},Li={icon:{name:"198hkja",styles:"display:flex;height:20px;width:20px;"}},Ei=function(e){var t=e.children,n=e.element,r=void 0===n?"div":n,o=e.horizontal,i=void 0!==o&&o,a=e.styles,l=e.vertical,c=void 0===l||l;return u(r,{css:[a,Ie.scrollbar,{overflowX:i?"auto":"hidden",overflowY:c?"auto":"hidden"}]},t)},Si={dependencies:[],eventTarget:document.documentElement,shouldAddListener:!0},Fi=new WeakMap,ji=function(e,t,n){var r=function(n){var r,o=Object.values(Fi.get(t)[e].instances).map((function(e){return e.callback})),i=ce(o);try{for(i.s();!(r=i.n()).done;){(0,r.value)(n)}}catch(e){i.e(e)}finally{i.f()}};return t.addEventListener(e,r,n),r},Wi=function(e,t,n){var r=Q(Q({},Si),n),o=r.dependencies,a=r.eventOptions,l=r.eventTarget,c=r.shouldAddListener,s="function"==typeof c?c():c;i((function(){var n={callback:t},r=j(l)?l.current:l;return s&&r&&(Fi.has(r)||Fi.set(r,{}),Fi.get(r)[e]||(Fi.get(r)[e]={instances:[],listener:ji(e,r,a)}),Fi.get(r)[e].instances.push(n)),function(){var t,o=null===(t=Fi.get(r))||void 0===t?void 0:t[e];o&&(o.instances=o.instances.filter((function(e){return e!==n})),0===Fi.get(r)[e].instances.length&&function(e,t){var n=Fi.get(t);t.removeEventListener("keydown",Fi.get(t)[e].listener),delete n[e],0===Object.keys(n).length&&Fi.delete(t)}(e,r))}}),[s,e,l].concat(ie(o)))},Mi={dependencies:[],focusElement:0,shouldTrapFocus:!0},Bi={name:"hmirul",styles:"align-items:center;backdrop-filter:blur(5px);background-color:rgba(241,243,244,0.80);bottom:0;display:flex;flex-direction:row;justify-content:center;left:0;position:fixed;right:0;top:0;transition:opacity 200ms linear;&[data-hidden]{opacity:0;}"},zi={name:"1pg8bi",styles:"height:20px;"},Ti={name:"1kdy0wu",styles:"display:flex;flex:1;flex-direction:column;"},Di={name:"y1gt6f",styles:"margin-top:40px;"},Zi={name:"1rshn6v",styles:"@supports (scrollbar-gutter:stable){scrollbar-gutter:stable;}"},Ri={name:"ia9nae",styles:"align-items:flex-end;display:flex;justify-content:space-between;margin-top:50px;"},Hi={name:"13faftp",styles:"margin-bottom:10px;padding-right:30px;position:relative;"},Ji={name:"1f3fjso",styles:"align-items:center;display:flex;margin-left:auto;&:not(:last-child){margin-right:10px;}"},Xi=function(e){var t=e.colorPalette;return{background:Bi,closeButton:d("background-color:transparent;border:none;cursor:pointer;color:",t.fontLight,";display:flex;padding:0;position:absolute;right:0;top:0;"),closeIcon:zi,content:Ti,contentWithHeader:Di,contentWithStableScrollbar:Zi,description:d("color:",t.fontLight,";font-family:'Montserrat',sans-serif;font-size:14px;line-height:20px;margin:0;white-space:pre-line;"),footer:Ri,header:Hi,modal:d(Oe,";background-color:#FFFFFF;border-radius:",Ie.borderRadius,";box-shadow:",Ie.dropShadow,";display:flex;flex-direction:column;position:relative;"),otherActions:Ji}},Ni=function(e){var n=e.actionButton,c=void 0===n?"Confirm":n,s=e.actionButtonId,p=e.actionDisabled,f=e.actionLoading,g=e.actionLoadingProgress,b=e.actionType,v=void 0===b?"positive":b,m=e.blockScroll,y=void 0===m||m,x=e.cancelButton,w=void 0===x?"Cancel":x,C=e.cancelButtonId,k=e.children,I=e.closeOnCancel,O=void 0===I||I,P=e.closeOnClickOutside,A=void 0===P||P,L=e.description,E=e.fullscreen,S=e.id,F=e.maxHeight,B=void 0===F?E?"95vh":"90vh":F,z=e.maxWidth,D=void 0===z?E?"100vw":"60vw":z,Z=e.minHeight,R=void 0===Z?E?"95vh":"200px":Z,H=e.minWidth,J=void 0===H?E?"100vw":"200px":H,N=e.onAction,G=e.onCancel,V=e.onClose,_=e.onOpen,U=e.open,K=e.otherActions,$=e.padding,te=void 0===$?"30px":$,ne=e.showCloseIcon,re=void 0===ne||ne,ae=e.stableScrollbar,le=void 0===ae||ae,se=e.title,de=e.ariaDescription,ue=void 0===de?L:de,pe=e.ariaLabel;Qe("WJEC One Modal: The fullscreen prop has been deprecated because a Modal can now be sized situationally using the maxHeight, maxWidth, minHeight and minWidth props",(function(){return void 0!==E}),[E]);var fe,ge,he,be,ve,me,ye,xe,we,Ce,ke,Ie,Oe=oe(r(U),2),Pe=Oe[0],Ae=Oe[1],Le=o(),Ee=o(),Se=o(30),Fe=o(),je=o(),We=mt(M(ue));fe=Le,ge={focusElement:re?1:0,shouldTrapFocus:Pe},he=Q(Q({},Mi),ge),be=he.dependencies,ve=he.focusElement,me=he.shouldTrapFocus,ye=o([]),xe=l((function(){return"function"==typeof me?me():me}),[me]),i((function(){var e,t,n,r,o=j(fe)?fe.current:fe;return xe&&o&&(ye.current=W(o),(t=new MutationObserver((function(e){var t,n=ce(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;("childList"===r.type||"attributes"===r.type&&["aria-hidden","disabled"].includes(r.attributeName))&&(ye.current=W(o))}}catch(e){n.e(e)}finally{n.f()}}))).observe(o,{attributes:!0,childList:!0,subtree:!0}),e=function(e){var t=void 0===e.code?e.key:e.code,n=ye.current[0],r=ye.current[ye.current.length-1];"Tab"===t&&(e.shiftKey||document.activeElement!==r||(n.focus(),e.preventDefault()),e.shiftKey&&document.activeElement===n&&(r.focus(),e.preventDefault()))},"number"==typeof ve&&(null===(n=ye.current[ve])||void 0===n||n.focus()),"string"==typeof ve&&(null===(r=ye.current.find((function(e){return e.matches(ve)})))||void 0===r||r.focus()),ve instanceof HTMLElement&&ye.current.includes(ve)&&ve.focus(),document.documentElement.addEventListener("keydown",e)),function(){document.documentElement.removeEventListener("keydown",e),t.disconnect()}}),[fe,xe].concat(ie(be))),function(e,t,n){Wi("keydown",(function(n){(void 0===n.code?n.key:n.code).toLowerCase()===e.toLowerCase()&&t()}),n)}("escape",(function(){return Me()}),{shouldAddListener:Pe}),i((function(){U&&ze()}),[U]),a((function(){Pe&&(Le.current.removeAttribute("data-hidden"),Be(),Fe.current=document.activeElement)}),[Pe]),a((function(){Ee.current&&(Se.current=parseInt(getComputedStyle(Ee.current).paddingRight))}),[te]),we=function(){U||Me()},Ce=[U],ke=o(!1),i((function(){var e;return ke.current?e=we():ke.current=!0,e}),Ce),Ie=function(){var e;q(Ee.current),null===(e=Le.current)||void 0===e||e.removeEventListener("transitionend",je.current)},i((function(){return Ie}),[]);var Me=function(){je.current=function(){var e;q(Ee.current),null===(e=Fe.current)||void 0===e||e.focus(),h(V)&&V(),Ae(!1)},Le.current.addEventListener("transitionend",je.current,{once:!0}),Le.current.setAttribute("data-hidden","true")},Be=function(){y&&Y(Ee.current,{reserveScrollBarGap:!0,allowTouchMove:function(e){return Ee.current.contains(e)}})},ze=function(){h(_)&&_(),Ae(!0)},Te="positive"===v?st:ot,De=se||re,Ze=T(Xi);return Pe?X(u("div",ee({"aria-modal":!0,"aria-label":pe,css:Ze.background,id:S,onClick:function(e){var t=e.target;A&&(t===Le.current&&Me())},ref:Le,role:"dialog","data-hidden":!0},We),u("div",{ref:Ee,css:d([Ze.modal,{maxHeight:B,maxWidth:D,minHeight:R,minWidth:J,padding:te}])},De&&u("header",{css:Ze.header},se&&u(un,null,se),re&&u("button",{css:Ze.closeButton,onClick:Me},u(ir,{css:Ze.closeIcon}))),L&&u("p",{css:Ze.description},L),u(Ei,{styles:[Ze.content,De&&Ze.contentWithHeader,le&&Ze.contentWithStableScrollbar,d("@supports (scrollbar-gutter:stable){margin-right:",-1*Se.current,"px;padding-right:",Math.max(Se.current-(le?14:0),0),"px;}")]},k),(c||w||K)&&u("footer",{css:Ze.footer},w&&u(Ke,{id:C,label:w,onPress:function(){O&&Me(),h(G)&&G()}}),u("section",{css:Ze.otherActions},K&&(t.isValidElement(K)?K:u(vn,{options:K}))),c&&u(Te,{disabled:p,id:s,label:c,loading:f,loadingProgress:g,onPress:N})))),document.body):null},Gi=function(e){var t=e.children,n=e.color,r=oe(D(),1)[0],i=r.brand,a=r.colorPalette,c=T(Vi),s=o(),d=l((function(){return n||a.font}),[i,n]);return ut("--title-color",d,s),u("h3",{css:c.title,ref:s},t)},Vi=function(e){var t=e.colorPalette;return{title:d("--title-color:",t.font,";color:var(--title-color);font-family:'Montserrat',sans-serif;font-size:16px;font-weight:600;margin:0 0 4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;")}};function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yi.apply(this,arguments)}var qi,_i=n((function(t,n){return e.createElement("svg",Yi({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),pi||(pi=e.createElement("path",{opacity:.4,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),fi||(fi=e.createElement("path",{d:"M12 16v-4m0-4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))})),Ui=function(e){var n=e.actionColor,a=void 0===n?"transparent":n,c=e.actionIcon,s=e.actionLoading,p=e.actionLoadingProgress,f=e.actionText,g=e.actionTextColor,b=void 0===g?ue.primaryDark:g,v=e.autoClose,m=e.borderColor,y=e.icon,w=void 0===y?_i:y,C=e.iconColor,k=e.maxWidth,I=void 0===k?"375px":k,O=e.message,P=e.onActionClick,A=e.onClose,L=e.onOpen,E=e.open,S=void 0===E||E,F=e.position,j=e.positionType,W=void 0===j?"relative":j,M=e.showImmediately,B=e.title,z=e.titleColor,Z=oe(D(),1)[0],R=Z.brand,H=Z.colorPalette,J=oe(r(!S),2),X=J[0],N=J[1],G=oe(r(S&&M),2),V=G[0],Y=G[1],q=o(),_=o(),U=o(),K=T(aa),$=l((function(){return w&&"none"!==w?u(w,{css:d([K.icon])}):null}),[w]);i((function(){return S&&M&&h(L)&&L(),function(){window.clearTimeout(q.current),window.clearTimeout(_.current)}}),[]),Ne("WJEC-One Notification: Icon must be a valid SVGComponent",(function(){return w&&"none"!==w&&!x(t.createElement(w))}),[w]),i((function(){S!==V&&(S?te():ee())}),[S]),i((function(){V&&v&&(window.clearTimeout(q.current),q.current=window.setTimeout(ee,v))}),[v,V]);var ee=function(){window.clearTimeout(q.current),window.clearTimeout(_.current),Y(!1),_.current=window.setTimeout((function(){N(!0),h(A)&&A()}),500)},te=function(){window.clearTimeout(_.current),N(!1),Y(!0),_.current=window.setTimeout((function(){h(L)&&L()}),500)},ne=l((function(){return m||H.border}),[R,m]),re=l((function(){return C||H.border}),[R,C]),ie=l((function(){return z||H.font}),[R,z]);ut("--border-color",ne,U),ut("--icon-color",re,U),ut("--title-color",ie,U);var ae=!!f;return u("div",{css:d([K.container,!V&&K.containerFadeOut,V&&K.containerFadeIn,X&&Ie.visiblyHidden,Q({maxWidth:I,position:W},F)]),ref:U},$,u(Gi,{color:ie},B),u("p",{css:d([K.message,ae&&{marginBottom:"10px"}])},O),ae?u(Ke,{color:a,icon:c,iconColor:ue.fontLight,labelColor:b,label:f,loading:s,loadingProgress:p,onClick:P,size:"small"}):null,V&&v&&u("svg",{css:K.autoClose,viewBox:"0 0 20 20"},u("circle",{css:d([K.autoCloseCircle,{animationDuration:"".concat(v,"ms")}]),cx:"10",cy:"10",r:"9",pathLength:"100"})),u(ir,{css:K.close,onClick:ee}))},Qi=p(qi||(qi=re(["\n to { stroke-dashoffset: -100; }\n"]))),Ki={name:"9xvvt0",styles:"height:20px;position:absolute;right:8px;top:8px;width:20px;"},$i={name:"oofjv5",styles:"cursor:pointer;height:36px;outline:none;padding:10px;position:absolute;right:0;top:0;width:36px;"},ea={name:"1aodknh",styles:"opacity:1;transform:translateY(0);transition-timing-function:linear,ease-out;"},ta={name:"15egim4",styles:"opacity:0;transform:translateY(-60px);transition-timing-function:linear,ease-in;"},na={name:"15grx0k",styles:"align-items:flex-start;display:flex;flex-direction:column;"},ra={name:"wvqk7n",styles:"color:var(--icon-color);flex-shrink:0;height:24px;left:16px;position:absolute;width:24px;"},oa={name:"oj621k",styles:"font-size:14px;line-height:20px;margin:0;white-space:pre-line;@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){max-width:300px;}"},ia={name:"172fn9d",styles:"color:var(--title-color);font-weight:600;margin:0 0 4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},aa=function(e){var t=e.colorPalette;return{autoClose:Ki,autoCloseCircle:d("animation:",Qi," linear forwards;fill:transparent;stroke:",ue.fontLight,";stroke-dasharray:100;stroke-width:1;transform:rotate(-90deg);transform-origin:50%;"),close:$i,container:d("--border-color:",t.border,";--icon-color:",t.border,";--title-color:",t.font,";",Oe,";background-color:#ffffff;border:1px solid var(--border-color);border-radius:",Ie.borderRadius,";box-shadow:",Ie.dropShadow,";font-family:'Montserrat',sans-serif;font-size:16px;gap:16px;line-height:24px;margin-bottom:16px;padding:16px 40px 16px 56px;transition:opacity ",500,"ms,transform ",500,"ms;z-index:999;"),containerFadeIn:ea,containerFadeOut:ta,content:na,icon:ra,message:oa,title:ia}},la=["title"],ca=function(e){var t=e.title,n=void 0===t?"Error":t,r=ne(e,la),o=oe(D(),1)[0].colorPalette;return u(Ui,ee({},r,{borderColor:ue.error,icon:Tn,iconColor:o.error,title:n,titleColor:ue.error}))},sa=["title"],da=function(e){var t=e.title,n=void 0===t?"Information":t,r=ne(e,sa),o=oe(D(),1)[0].colorPalette;return u(Ui,ee({},r,{borderColor:o.primary,iconColor:o.primary,title:n,titleColor:o.primary}))},ua=["title"],pa=function(e){var t=e.title,n=void 0===t?"Sucess":t,r=ne(e,ua),o=oe(D(),1)[0].colorPalette;return u(Ui,ee({},r,{borderColor:ue.success,icon:Mn,iconColor:o.success,title:n,titleColor:ue.success}))},fa=function(e){var t=e.children,n=e.color,r=e.id,i=o(),a=T(ga);return ut("--color",n,i),u("h1",{css:a.heading,id:r,ref:i},t)},ga=function(e){var t=e.colorPalette;return{heading:d("--color:",t.font,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:28px;font-weight:400;line-height:40px;margin:0 0 30px 0;")}},ha=function(e){var n=e.ariaCurrent,r=e.ariaLabel,o=e.compact,i=void 0!==o&&o,a=e.current,c=void 0===a?1:a,s=e.id,p=e.onSelect,f=e.total,g=function(e){return function(){e>0&&e<f+1&&h(p)&&p(e)}},b=l((function(){return f>5?c<4?[2,3,4,"..."]:c>f-3?["...",f-3,f-2,f-1]:["...",c-1,c,c+1,"..."]:ie(Array(Math.max(0,f-2)).keys()).map((function(e){return e+2}))}),[c,f]),v=T(ya);return u("ol",{"aria-label":r,css:v.container,id:s},u("li",{"aria-current":n,css:d([v.option,v.optionNextPrevious,1===c&&v.optionDisabled]),onClick:g(c-1)},u(me,{height:"100%",width:"100%"})),i?u("li",{css:v.compact},c," of ",f):u(t.Fragment,null,u("li",{css:d([v.option,1===c&&v.optionSelected]),onClick:g(1)},"1"),b.map((function(e,t){return u("li",{key:t,css:d([v.option,e===c&&v.optionSelected,"string"==typeof e&&v.optionSeparator]),onClick:"number"==typeof e?g(e):null},e)})),f>1&&u("li",{css:d([v.option,c===f&&v.optionSelected]),onClick:g(f)},f)),u("li",{css:d([v.option,v.optionNextPrevious,c===f&&v.optionDisabled]),onClick:g(c+1)},u(we,{height:"100%",width:"100%"})))},ba={name:"1qje5jb",styles:"margin:0 15px;text-align:center;user-select:none;width:50px;"},va={name:"1x05hl3",styles:"opacity:0.33;pointer-events:none;"},ma={name:"1ixbp0l",styles:"pointer-events:none;"},ya=function(e){var t=e.colorPalette;return{compact:ba,container:d(Oe,";display:flex;font-family:'Montserrat',sans-serif;font-size:14px;justify-content:center;line-height:20px;list-style:none;margin:0;padding:0;width:100%;"),option:d("align-items:center;border-radius:",Ie.borderRadius,";color:",t.fontLight,";cursor:pointer;display:flex;height:20px;justify-content:center;margin:0 5px;user-select:none;width:20px;&:first-of-type{margin-left:0;}&:last-of-type{margin-right:0;}"),optionDisabled:va,optionNextPrevious:d("border:1px solid ",t.border,";"),optionSelected:d("background-color:",t.primary,";color:#FFFFFF;pointer-events:none;"),optionSeparator:ma}},xa=function(e){var n=e.ariaLabel,o=e.children,a=e.isLoadingStyles,l=e.onOpen,c=e.popupWindow,s=oe(r(!1),2),d=s[0],p=s[1];return i((function(){d||a||(h(l)&&l(c),p(!0))}),[a]),u(t.Fragment,null,o,a&&u("div",{"aria-label":n,css:Ca.wrapper},u(ki,null)))},wa=function(e){var t=e.children,n=e.height,a=void 0===n?500:n,l=e.id,c=void 0===l?"":l,s=e.onClose,d=e.onOpen,p=e.open,f=e.position,g=void 0===f?{x:50,y:200}:f,b=e.title,v=void 0===b?"":b,m=e.width,y=void 0===m?500:m,x=oe(r(),2),w=x[0],C=x[1],k=o(),I=o(document.querySelectorAll("[data-emotion]")),O=oe(r(!1),2),P=O[0],A=O[1],L=oe(r(p),2),E=L[0],S=L[1],F=oe(r(!1),2),j=F[0],W=F[1];i((function(){var e=document.querySelectorAll("[data-emotion]");E&&k.current&&Array.from(e).some((function(e,t){return e!==I.current[t]}))&&(I.current=e,z())})),i((function(){return function(){return k.current&&k.current.close()}}),[]),i((function(){E&&T(),!k.current||k.current.closed||E||k.current.close()}),[t,E]),i((function(){k.current&&(k.current.document.title=v)}),[v]),i((function(){return S(p)}),[p]);var M=function(){A(!1),S(!1),W(!1),h(s)&&s()},z=function(){var e=k.current.document,t=e.head,n=t.querySelectorAll("style");Array.from(n).forEach((function(e){return t.removeChild(e)})),I.current.forEach((function(n){var r=n.textContent,o=n.sheet,i=e.createElement("style");if(i.appendChild(e.createTextNode("")),t.appendChild(i),r)i.appendChild(e.createTextNode(r));else{var a=i.sheet;[].forEach.call(o.cssRules,(function(e){a.insertRule(e.cssText)}))}})),requestAnimationFrame((function(){A(!0)}))},T=function(){if(!E||!k.current||k.current.closed)if(A(!1),k.current=window.open("",c,"left=".concat(g.x,",height=").concat(a,",top=").concat(g.y,",width=").concat(y)),k.current){var e=k.current.document.createElement("main");e.setAttribute("id",c),C(e),k.current.onbeforeunload=M,k.current.document.body.appendChild(e),k.current.document.title=v,requestAnimationFrame((function(){z(),S(!0),W(!0)}))}else B("A PopupWindow failed to open")};return E&&j&&k.current&&w?J.createPortal(u(xa,{isLoadingStyles:!P,onOpen:d,popupWindow:k.current},t),w):null},Ca={wrapper:{name:"z2hlcz",styles:"background-color:#fff;bottom:0;left:0;padding:30px 10px;position:absolute;right:0;top:0;"}},ka=function(e){var n=e.ariaLabel,a=e.children,c=e.footer,s=void 0===c?t.Fragment:c,p=e.header,g=void 0===p?t.Fragment:p,b=e.id,v=e.isNested,m=e.margin,y=void 0===m?"auto":m,x=e.onLayout,w=e.orientation,C=void 0===w?"portrait":w,k=e.parentFooterHeight,I=void 0===k?0:k,O=e.parentHeaderHeight,P=void 0===O?0:O,A=e.verticalAlign,L=void 0===A?"top":A,E=oe(r("auto"),2),S=E[0],F=E[1],j=oe(r("auto"),2),W=j[0],M=j[1],B=o(),z=o(),T=l((function(){return("auto"===S?0:S)+("auto"===W?0:W)+I+P}),[S,W,I,P]);return i((function(){B.current&&F(B.current.offsetHeight),z.current&&M(z.current.offsetHeight)}),[g,s,z.current,B.current]),i((function(){"auto"!==S&&"auto"!==W&&h(x)&&x()}),[S,W]),u(t.Fragment,null,!v&&u(f,{styles:d("@media print{*{-webkit-print-color-adjust:exact;}@page{margin:",y,";size:",C,";}}")}),u("table",{"aria-label":n,cellPadding:0,cellSpacing:0,css:Pa.printLayoutTable,id:b},u("thead",null,u("tr",null,u("td",{css:Pa.printLayoutTableCell,style:{height:W}},u("header",{ref:z,css:d([Pa.header,!v&&Pa.printHeader])},u(g,null))))),u("tbody",null,u("tr",null,u("td",{css:d([Pa.printLayoutTableCell,Pa.content]),style:{height:v?"calc(100vh - ".concat(T,"px)"):"auto",verticalAlign:L}},t.Children.map(a,(function(e){return e&&e.type&&("PrintLayout"===e.type.displayName||"PrintLayout"===e.type.name)?t.cloneElement(e,Q(Q({},e.props),{},{isNested:!0,parentFooterHeight:S,parentHeaderHeight:W})):e}))))),u("tfoot",null,u("tr",null,u("td",{css:Pa.printLayoutTableCell,style:{height:S}},u("footer",{ref:B,css:d([Pa.footer,!v&&Pa.printFooter])},u(s,null)))))))};ka.displayName="PrintLayout";var Ia,Oa,Pa={content:{name:"10klw3m",styles:"height:100%;"},footer:{name:"1tqge2o",styles:"background-color:#fff;overflow:hidden;"},header:{name:"1tqge2o",styles:"background-color:#fff;overflow:hidden;"},printFooter:{name:"oo54uf",styles:"@media print{bottom:0;left:0;position:fixed;width:100%;}"},printHeader:{name:"134o4pi",styles:"@media print{left:0;position:fixed;top:0;width:100%;}"},printLayoutTable:d(Oe,";width:100%;/* Margin will be provided by @page rule in global when printing */ @media print{padding:0;page-break-after:always;page-break-before:always;page-break-inside:avoid;}"),printLayoutTableCell:{name:"y8aj3r",styles:"padding:0;"}},Aa=["ariaLabel","autoPrint","children","closeOnPrint","id","onClose","onOpen"],La=function(e){var t=e.ariaLabel,n=e.autoPrint,a=e.children,l=e.closeOnPrint,c=e.id,s=e.onClose,d=e.onOpen,p=ne(e,Aa),f=oe(r(!1),2),g=f[0],b=f[1],v=oe(r(!1),2),m=v[0],y=v[1],x=o();i((function(){g&&m&&w()}),[g,m]);var w=function(){h(d)&&d(x.current),n&&x.current.print()},C=function(){l&&x.current.close()};return u(wa,ee({},p,{id:c,onClose:function(){b(!1),y(!1),h(s)&&s()},onOpen:function(e){(x.current=e,x.current.document.body.style.margin="0",x.current.document.body.style.padding="0","onafterprint"in x.current)?x.current.onafterprint=C:window.matchMedia("print").addListener((function(e){return e.matches&&C()}));y(!0)}}),u(ka,ee({ariaLabel:t},p,{onLayout:function(){b(!0)}}),a))},Ea=function(e){var t=e.children,n=e.color,r=e.id,i=o(),a=T(Sa);return ut("--border-left-color",n,i),u("h3",{css:a.sectionHeading,id:r},t)},Sa=function(e){var t=e.colorPalette;return{sectionHeading:d("--border-left-color:",t.secondary,";border-left:2px solid var(--border-left-color);color:",t.font,";font-family:'Montserrat',sans-serif;font-size:14px;font-weight:500;line-height:20px;margin:0;padding-left:7px;")}},Fa=function(e){var t=e.children,n=e.color,r=e.id,i=o(),a=T(ja);return ut("--color",n,i),u("h3",{css:a.title,id:r,ref:i},t)},ja=function(e){var t=e.colorPalette;return{title:d("--color:",t.font,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:18px;font-weight:400;line-height:30px;margin-top:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;")}};function Wa(){return Wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wa.apply(this,arguments)}var Ma,Ba=n((function(t,n){return e.createElement("svg",Wa({viewBox:"0 0 1440 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Ia||(Ia=e.createElement("mask",{id:"a","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:1440,height:150},e.createElement("path",{fill:"#fff",d:"M0 0h1440v150H0z"}))),Oa||(Oa=e.createElement("g",{mask:"url(#a)"},e.createElement("path",{opacity:.4,d:"M4.093 21.192 1.725-50.176a5 5 0 0 1 3.923-5.05l249.66-54.934a4.999 4.999 0 0 1 4.394 1.144L388.786 5.551a5.002 5.002 0 0 1 1.444 5.26L372.279 67.06a5 5 0 0 1-3.215 3.233L138.73 145.341a5 5 0 0 1-4.961-1.098L5.679 24.681a5 5 0 0 1-1.586-3.49ZM1438.64 11.165l5.18-83.581a5 5 0 0 0-3.78-5.16l-286.09-71.608a4.986 4.986 0 0 0-4.42 1.017L995.649-19.287a4.998 4.998 0 0 0-1.719 2.995L970.938 118.98a5 5 0 0 0 4.653 5.83l370.079 20.533a5.005 5.005 0 0 0 4.42-2.188l87.7-129.495c.5-.74.8-1.602.85-2.495Z",fill:"#47BAD1"}),e.createElement("path",{opacity:.4,d:"m341.147 35.262 214.851 26.282a5.003 5.003 0 0 0 4.313-1.605l92.293-101.841c3.011-3.322.465-8.622-4.01-8.349L337.991-31.26a5 5 0 0 0-4.686 5.296l3.459 56.569a5 5 0 0 0 4.383 4.657Z",fill:"#A55896"}),e.createElement("path",{opacity:.4,d:"m636.066 94.071-192.7-231.608c-1.998-2.401-1.329-6.026 1.393-7.556l302.76-170.202a5 5 0 0 1 6.809 1.908L926.159-7.729c1.532 2.725.215 6.173-2.744 7.182L641.524 95.605a5 5 0 0 1-5.458-1.534Z",fill:"#2855A2"}),e.createElement("path",{opacity:.4,d:"M983.494 89.93 703.798 14.977c-3.017-.808-4.562-4.154-3.221-6.975l143.28-301.486a5 5 0 0 1 6.662-2.37l304.371 144.653c2.83 1.342 3.74 4.918 1.91 7.45L988.837 88.035a5 5 0 0 1-5.343 1.895Z",fill:"#B0C600"}))))})),za={cancel:"Cancel",code:"Code",forgotPassword:"Forgot your password?",newPassword:"New password",password:"Password",repeatNewPassword:"Re-enter new password",username:"Username",changePasswordPrompt:"Enter a new password below",changePasswordSubmit:"Change password",changePasswordTitle:"Change your password",changePasswordWarning:"Passwords do not match",forceChangePasswordPrompt:"You must enter a new password",forceChangePasswordTitle:"Change your password",mfaPrompt:"A code has been sent to the email address associated with your account. Enter the code below to continue",mfaSubmit:"Submit code",mfaTitle:"Verify signin",confirmResetPasswordPrompt:"Enter the provided code along with your new password below",requestResetPasswordPrompt:"Enter your email address below and we will send a code to reset your password",resetPasswordHaveCode:"Already have a reset code?",resetPasswordSubmit:"Request reset",resetPasswordTitle:"Reset your password",signin:"Sign in",signinPrompt:"Please sign in to access your account",signout:"Sign out",signup:"Sign up now",signupPrompt:"Don't have an account?",welcomeMessage:"Hello, {username}",welcomeMessageNotSignedIn:"Welcome",welcomeMessagePunctuation:"."},Ta=function(e){var n=e.ariaDescription,o=e.ariaLabel,a=e.allowForgotPassword,c=void 0===a||a,s=e.allowSignup,p=void 0===s||s,f=e.autocomplete,g=void 0===f||f,b=e.enforceFormCompletion,v=e.id,m=e.padding,y=void 0===m?"50px 30px 30px":m,x=e.passwordValidator,w=void 0===x?function(e,t){return e===t}:x,C=e.profileActions,k=e.repeatNewPassword,I=e.type,O=void 0===I?"external":I,P=e.onCancel,A=e.onChangePassword,L=e.onConfirmResetPassword,E=e.onForceChangePassword,S=e.onForgotPassword,F=e.onHaveResetCode,j=e.onRequestResetPassword,W=e.onSignin,M=e.onSignout,B=e.onSignup,z=e.onSubmitMfa,Z=e.loading,R=e.isSignedIn,H=void 0!==R&&R,J=e.username,X=e.i18n,N=oe(D(),1)[0].colorPalette,G=T(qa),V=Q(Q({},za),X),Y=oe(r(!0),2),q=Y[0],_=Y[1],U=oe(r("confirmResetPassword"===O),2),K=U[0],$=U[1],te=oe(r(""),2),ne=te[0],re=te[1],ie=oe(r(""),2),ae=ie[0],le=ie[1],ce=oe(r(""),2),se=ce[0],de=ce[1],ue=oe(r(""),2),pe=ue[0],fe=ue[1],ge=oe(r(""),2),he=ge[0],be=ge[1],ve=oe(r(""),2),me=ve[0],ye=ve[1],xe=mt(n);i((function(){re(""),le(""),de(""),fe(""),be(""),ye("")}),[H]),i((function(){"confirmResetPassword"===O?$(!0):K&&($(!1),be(""))}),[O]),i((function(){k||q||_(!0)}),[k]);var we=function(){h(E)&&E(ae)},Ce=function(){h(A)&&A(he,ae)},ke=function(){h(L)&&L(me,ae,pe)},Ie=function(){h(j)&&j(me)},Oe=function(){h(W)&&W(me,he)},Pe=function(){h(z)&&z(ne)},Ae=l((function(){switch(O){case"changePassword":return V.changePasswordPrompt;case"confirmResetPassword":return V.confirmResetPasswordPrompt;case"forceChangePassword":return V.forceChangePasswordPrompt;case"mfa":return V.mfaPrompt;case"requestResetPassword":return V.requestResetPasswordPrompt;default:return V.signinPrompt}}),[X,O]),Le=l((function(){return"changePassword"!==O&&"confirmResetPassword"!==O&&"requestResetPassword"!==O&&(H||c||p)}),[c,p,H,O]),Ee=l((function(){if(!b)return!1;switch(O){case"changePassword":case"forceChangePassword":return""===ae||!q;case"confirmResetPassword":return""===pe||""===ae||!q;case"mfa":return""===ne;case"requestResetPassword":return""===me;default:return""===he||""===me}}),[q,ne,ae,pe,se,he,me,O]),Se=l((function(){switch(O){case"changePassword":case"forceChangePassword":return V.changePasswordSubmit;case"mfa":return V.mfaSubmit;case"confirmResetPassword":case"requestResetPassword":return V.resetPasswordSubmit;default:return V.signin}}),[X,O]),Fe=l((function(){switch(O){case"changePassword":return V.changePasswordTitle;case"confirmResetPassword":case"requestResetPassword":return V.resetPasswordTitle;case"forceChangePassword":return V.forceChangePasswordTitle;case"mfa":return V.mfaTitle;default:return u(t.Fragment,null,H?"string"==typeof V.welcomeMessage?V.welcomeMessage.replace(/\{username\}/g,J):V.welcomeMessage:V.welcomeMessageNotSignedIn,V.welcomeMessagePunctuation&&u("span",{css:G.welcomeMessagePunctuation},V.welcomeMessagePunctuation))}}),[X,H,O]);return u("div",ee({"aria-label":o,id:v,css:d([G.container,{padding:y}])},xe),u(Ba,{css:G.headerShapes}),u("h1",{css:G.welcomeMessage},Fe),u("section",{css:G.formContainer},H?u("ul",{css:G.actionsList},C&&C.map((function(e,t){var n=e.icon,r=e.label,o=e.onClick;return u("li",{key:t,css:G.action,onClick:o},n&&u(n,{css:G.actionIcon}),r)}))):u(t.Fragment,null,u("h2",{css:G.prompt},Ae),u("form",{autoComplete:g?"on":"off",css:G.form,onSubmit:function(e){e.preventDefault()}},("internal"===O||"requestResetPassword"===O||"confirmResetPassword"===O)&&u($n,{label:V.username,name:"username",onChange:ye,value:me,width:"100%"}),("changePassword"===O||"forceChangePassword"===O||"confirmResetPassword"===O)&&u(t.Fragment,null,"changePassword"===O&&u(ho,{label:V.password,name:"password",onChange:be,value:he}),"confirmResetPassword"===O&&u($n,{label:V.code,name:"code",onChange:fe,value:pe,width:"100%"}),u(ho,{label:V.newPassword,name:"password",onChange:function(e){le(e),k&&_(w(e,se))},value:ae}),k&&u(ho,{highlightColor:N.error,highlighted:!q,label:V.repeatNewPassword,name:"confirmPassword",onChange:function(e){de(e),_(w(ae,e))},value:se}),!q&&u("span",{css:G.changePasswordWarning},V.changePasswordWarning)),"internal"===O&&u(ho,{label:V.password,name:"password",onChange:be,value:he}),"mfa"===O&&u($n,{name:"code",onChange:re,value:ne}),u("div",{css:G.formActions},u(st,{buttonType:"submit",disabled:Ee,icon:Mt,label:Se,onClick:function(){switch(O){case"changePassword":return Ce;case"confirmResetPassword":return ke;case"forceChangePassword":return we;case"mfa":return Pe;case"requestResetPassword":return Ie;default:return Oe}}()}),("changePassword"===O||"confirmResetPassword"===O||"mfa"===O||"requestResetPassword"===O)&&u("a",{css:G.cancel,onClick:function(){h(P)&&P()}},V.cancel),"requestResetPassword"===O&&u("a",{css:d([G.actionLink,G.haveResetCode]),onClick:function(){h(F)&&F()}},V.resetPasswordHaveCode))))),Le&&u("footer",{css:G.userDetails},H?u(Ke,{color:"transparent",icon:Et,iconColor:N.fontLight,label:V.signout,labelColor:N.font,onClick:function(){h(M)&&M()}}):u(t.Fragment,null,c&&u("a",{css:G.actionLink,onClick:function(){h(S)&&S()}},u("h2",{css:G.prompt},V.forgotPassword)),p&&u("div",null,u("h2",{css:G.prompt},V.signupPrompt),u("a",{css:G.actionLink,onClick:function(){h(B)&&B()}},V.signup)))),Z&&u("div",{css:G.loading},u(Ge,null)))},Da={name:"yh3jvl",styles:"height:20px;margin-right:5px;width:20px;"},Za={name:"10w3nmc",styles:"list-style:none;margin:20px 0;padding:0;"},Ra={name:"vl8ak5",styles:"font-family:'Montserrat',sans-serif;font-size:14px;line-height:20px;position:relative;"},Ha={name:"1ajcev4",styles:"& >:not(:last-child){margin-top:10px;}"},Ja={name:"79elbk",styles:"position:relative;"},Xa={name:"w5in9r",styles:"align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:20px;"},Na={name:"1xxqlwe",styles:"display:inline-block;flex:0 1 100%;margin-top:10px;"},Ga={name:"19hbn8x",styles:"left:0;position:absolute;top:0;width:100%;"},Va={name:"zhwjfn",styles:"align-items:center;background-color:rgba(255,255,255,0.85);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;"},Ya={name:"1vnyfz6",styles:"font-size:18px;font-weight:normal;line-height:40px;margin:0;"},qa=function(e){var t=e.colorPalette;return{action:d("border-radius:",Ie.borderRadius,";cursor:pointer;display:flex;padding:10px;&:hover{background-color:",t.neutral,";}&:not(:last-child){margin-bottom:10px;}"),actionIcon:Da,actionLink:d("color:",t.primaryDark,";cursor:pointer;text-decoration:none;&:hover{text-decoration:underline;}"),actionsList:Za,cancel:d("color:",t.secondaryDark,";cursor:pointer;font-size:12px;margin-left:10px;:hover{text-decoration:underline;}"),changePasswordWarning:d("color:",t.errorDark,";font-size:12px;"),container:Ra,form:Ha,formContainer:Ja,formActions:Xa,haveResetCode:Na,headerShapes:Ga,loading:Va,prompt:d("color:",t.fontLight,";font-size:14px;font-weight:normal;margin:0;"),userDetails:d("border-top:1px solid ",t.border,";display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:30px;padding-top:20px;& > *{white-space:nowrap;:not(:last-child){margin:0 15px 15px 0;}}"),welcomeMessage:Ya,welcomeMessagePunctuation:d("color:",t.secondary,";")}};function _a(){return _a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_a.apply(this,arguments)}var Ua=n((function(t,n){return e.createElement("svg",_a({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},t),Ma||(Ma=e.createElement("g",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor"},e.createElement("path",{d:"M6.667 6.667A3.332 3.332 0 1 1 10 10a3.332 3.332 0 0 1-3.333-3.333Zm5 0C11.667 5.75 10.917 5 10 5s-1.667.75-1.667 1.667c0 .916.75 1.666 1.667 1.666s1.667-.75 1.667-1.666ZM3.333 15c0-2.217 4.442-3.333 6.667-3.333 2.225 0 6.667 1.116 6.667 3.333v1.667H3.333V15ZM15 15c-.167-.592-2.75-1.667-5-1.667-2.242 0-4.808 1.067-5 1.667h10Z"}))))})),Qa=["ariaLabel","id","onClose","onOpen","open"],Ka=function(e){var t=e.ariaLabel,n=e.id,o=e.onClose,a=e.onOpen,l=e.open,c=void 0!==l&&l,s=ne(e,Qa),d=oe(D(),1)[0].colorPalette,p=oe(r(c),2),f=p[0],g=p[1];i((function(){c!==f&&g(c)}),[c]);var h=T(el);return u(nn,{"aria-label":t,id:n,maxHeight:"425px",onHide:o,onShow:a,open:f,padding:"0",toggle:u(Ke,{allowEventPropagation:!0,color:"transparent",icon:function(e){return u(Ua,ee({css:h.avatar},e))},id:"signinMenu",labelColor:d.fontLight},u(he,{css:h.arrow})),width:"276px"},u(Ta,s))},$a={name:"198hkja",styles:"display:flex;height:20px;width:20px;"},el=function(e){var t=e.colorPalette;return{arrow:$a,avatar:d("background-color:",t.neutral,";border-radius:50%;padding:1px;")}},tl=function(e){var t=e.children,n=e.color,r=e.id,i=o(),a=T(nl);return ut("--color",n,i),u("p",{css:a.subParagraph,id:r,ref:i},t)},nl=function(e){var t=e.colorPalette;return{subParagraph:d("--color:",t.font,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:12px;font-weight:400;line-height:20px;margin:0;")}},rl=function(e){var t=e.children,n=e.id,r=T(ol);return u("h2",{css:r.heading,id:n},t)},ol=function(e){var t=e.colorPalette;return{heading:d("color:",t.font,";font-family:'Montserrat',sans-serif;font-size:24px;font-weight:400;line-height:40px;margin:0 0 30px 0;")}},il={name:"cojqun",styles:"border-top-color:transparent;"},al={name:"xi606m",styles:"text-align:center;"},ll={name:"8atqhb",styles:"width:100%;"},cl={name:"158oh36",styles:"white-space:nowrap;width:1px;"},sl={name:"s2uf1z",styles:"text-align:right;"},dl={name:"79elbk",styles:"position:relative;"},ul={name:"guxjpz",styles:"font-weight:500;text-align:left;"},pl={name:"a1tdk3",styles:"align-items:flex-start;bottom:0;display:flex;justify-content:center;left:0;margin:30px;position:absolute;right:0;"},fl={name:"14bbtl1",styles:"bottom:calc(50% - 5px);"},gl={name:"13s366x",styles:"top:calc(50% - 5px);"},hl=function(e){var t=e.colorPalette;return{bodyCell:d("border:0px solid ",t.border,";border-top-width:1px;"),cell:d("color:",t.font,";padding:9px 12px;position:relative;transition:border-color ",100,"ms linear;@media print{font-size:13px;}"),cellGrouped:il,cellCenter:al,cellMax:ll,cellMin:cl,cellRight:sl,cellSelected:d("background-color:",_(t.secondary).alpha(.1).rgb().string(),";border-bottom:1px solid var(--selected-border-color);"),container:dl,headingCell:ul,headingCellSortable:d("cursor:pointer;padding-right:40px;transition:color 0.05s linear;&:hover{color:",t.fontLight,';&:not([data-sorted="ascending"]) > svg:first-of-type{color:',t.fontLight,';}&[data-sorted="ascending"] > svg:last-of-type{color:',t.fontLight,";}}"),loading:pl,sortableIcon:d("color:",t.border,";position:absolute;right:10px;width:20px;"),sortableIconActive:d("color:",t.secondary,";"),sortableIconAsc:fl,sortableIconDesc:gl,table:d("border-bottom:1px solid ",t.border,";border-collapse:collapse;border-spacing:0;font-family:'Montserrat',sans-serif;font-size:14px;line-height:20px;width:100%;"),tableBody:d("--selected-border-color:",t.secondary,";"),tableBodySorting:d("--selected-border-color:",_(t.secondary).alpha(.25).rgb().string(),";& > tr{opacity:0.25;transition-timing-function:ease-in;}"),tableRow:d("transition:opacity ",100,"ms ease-out;")}},bl=function(e,t){var n={};return"max"===e?n=t.cellMax:"min"===e?n=t.cellMin:e&&(n={minWidth:e}),n},vl=function(e,t){var n;if(Cl(e)){var r,o=e.key;n=null==t||null===(r=t[o])||void 0===r?void 0:r.toString()}else if(wl(e)){var i=e.render;n=xl(i)?i(t):i}else{var a=e.value;n=kl(a)?a(t):a}return n},ml=function(e,t){return Object.keys(e||{}).reduce((function(n,r){var o=e[r];return Q(Q({},n),{},$({},r,"function"==typeof o?o(t):o))}),{})},yl=function(e){return"function"==typeof e},xl=function(e){return"function"==typeof e},wl=function(e){return Object.hasOwn(e,"render")},Cl=function(e){return Object.hasOwn(e,"key")},kl=function(e){return"function"==typeof e},Il=function(e){var n,r=e.align,o=e.columnProps,i=e.index,a=e.onSort,l=e.sortable,c=e.sortedColumnDirection,s=e.sortedColumnIndex,p=e.styles,f=o.align,g=o.headingStyle,b=o.onSort,v=o.sortable,m=o.sorted,y=o.title,x=o.width,w=f||r,C=l&&!1!==v||v,k=m||C&&i===s,I=zo({"data-sorted":c});return u("th",ee({},I,{css:d([p.cell,p.headingCell,C&&p.headingCellSortable,"center"===w&&p.cellCenter,"right"===w&&p.cellRight,bl(x,p),g]),onClick:C?(n=i,function(){var e=n===s&&"ascending"===c?"descending":"ascending";a(e,n),h(b)&&b(e)}):null}),y,C&&u(t.Fragment,null,u(ke,{css:d([p.sortableIcon,p.sortableIconAsc,k&&"ascending"===c&&p.sortableIconActive])}),u(he,{css:d([p.sortableIcon,p.sortableIconDesc,k&&"descending"===c&&p.sortableIconActive])})))},Ol=function(e){var t=e.align,n=e.cellStyle,r=e.columns,o=e.index,i=e.onPress,a=e.previousRowGroup,l=e.row,c=e.rowKey,s=e.rowOptions,p=e.rowStyle,f=e.selectedRowKey,g=e.styles,h=ml(s,l).group,b="function"==typeof p?p(l,o):p;return u("tr",{css:d([g.tableRow,b]),onClick:function(){return i(l,o)},"data-row-group":h},r.map((function(e,r){var i=e.align,s=e.style,p=i||t,b=vl(e,l),v=yl(n)?n(l,b,r):n,m=yl(s)?s(l,b,r):s;return u("td",{key:"row_".concat(o,"_").concat(r),css:d([g.cell,g.bodyCell,"center"===p&&g.cellCenter,"right"===p&&g.cellRight,h&&h===a&&g.cellGrouped,v,m,c===f&&g.cellSelected])},b)})))},Pl=function(e){var t,n=e.cellStyle,a=e.columns,c=e.columnOptions,s=e.data,p=e.keyExtractor,f=e.id,g=e.onClickRow,b=e.onPressRow,v=void 0===b?g:b,y=e.preSorted,x=e.rowOptions,w=e.rowStyle,C=e.selectedRow,k=e.sortable,I=void 0!==k&&k;Qe('WJEC One Table: The "onClickRow" prop has been deprecated in favor of "onPressRow" for accessibility reasons and will be removed in a future version of the library. Switch to using "onPressRow" instead of "onClickRow" as soon as possible in order to avoid unexpected behavior in future',(function(){return void 0!==g}),[g]);var O=o(),P=oe(r(!1),2),A=P[0],L=P[1],E=oe(r(),2),S=E[0],F=E[1],j=oe(r(),2),W=j[0],M=j[1],B=o(),z=o(),D=l((function(){return function(e,t){var n=null==t?void 0:t[0];return e instanceof Array?e:e(n)}(a,s)}),[a,s]),Z=l((function(){return function(e,t,n){var r;return e&&(r=n?m(e,n,t):t),r}(C,s.indexOf(C),p)}),[s,p,C]),R=l((function(){return D.filter((function(e){var t=e.sortable;return I&&!1!==t||t}))}),[D]),H=l((function(){return function(e){var t=e.data,n=e.preSorted,r=e.sortableColumns,o=e.sortedColumn,i=e.sortedColumnDirection,a=ie(t);if(!n&&r.length>0&&o){var l=o.sortableValue;a.sort((function(e,n){var r,a=l?m(e,l,t.indexOf(e)):vl(o,e),c=l?m(n,l,t.indexOf(n)):vl(o,n);return void 0===a?1:void 0===c?-1:(null==a||null===(r=a.toString())||void 0===r?void 0:r.localeCompare(null==c?void 0:c.toString()))*("ascending"===i?1:-1)}))}return a}({data:s,preSorted:y,sortableColumns:R,sortedColumn:D[W],sortedColumnDirection:S})}),[D,s,y,R,S,W]);i((function(){if(R.length>0||y){var e=D.indexOf(R.find((function(e){return e.sorted}))||R[0]),t=D[e].sorted,n=void 0===t?"ascending":t;!n||n===B.current&&e===z.current||(B.current=n,z.current=e,F(n),M(e))}}),[D,R]),i((function(){A&&L(!1)}),[H]);var J=function(e,t){y||(L(!0),setTimeout((function(){t!==W&&M(t),F(e)}),100))},X=function(e,t){h(v)&&v(e,t)},N=T(hl);return u("div",{css:N.container},u("table",{css:N.table,id:f},u("thead",{ref:O},u("tr",null,D.map((function(e,t){var n=null==s?void 0:s[0],r=ml(c,n).align;return u(Il,{key:"table_header_".concat(t),align:r,columnProps:e,index:t,onSort:J,sortable:I,sortedColumnDirection:S,sortedColumnIndex:W,styles:N})})))),u("tbody",{css:d([N.tableBody,A&&N.tableBodySorting])},H.map((function(e,t){var r=p?m(e,p,t):t,o=ml(c,e).align,i=(t>0&&ml(x,H[t-1])).group;return u(Ol,{key:r,align:o,cellStyle:n,columns:D,index:t,onPress:X,previousRowGroup:i,row:e,rowKey:r,rowOptions:x,rowStyle:w,selectedRowKey:Z,styles:N})})))),A&&u("div",{css:d([N.loading,{top:null==O||null===(t=O.current)||void 0===t?void 0:t.offsetHeight}])},u(Ge,null)))},Al=function(e){var t=e.ariaLabel,n=e.backgroundStyle,a=void 0===n?"filled":n,c=e.disabledTabs,s=void 0===c?[]:c,p=e.id,f=e.keyExtractor,g=e.labelExtractor,x=e.onSelect,w=e.scrollable,C=e.selectedTab,k=e.selectedTabColor,P=e.tabs,A=oe(r(z(C,P)),2),L=A[0],E=A[1],S=o(),F=T(Ll),j=l((function(){return s.map((function(e){return b(e)?e.key:m(e,f,P.indexOf(e))}))}),[s]),W=l((function(){return b(L)?L.key:m(L,f,P.indexOf(L))}),[L]);Ne("WJEC-One Tabs: You must specify a keyExtractor if the tabs array contains non-primitive entry types",(function(){return!I(P)&&!O(P)&&!f}),[f,P]),i((function(){void 0!==w&&y('WJEC One Tabs: The "scrollable" prop has been deprecated and will be removed in a future version of the library. The Tabs component will now behave as though "scrollable={true}" in all cases')}),[w]),i((function(){E(z(C,P))}),[C,P]),i((function(){if(S.current){var e=S.current.querySelector("[data-selected]");e&&e.scrollIntoView({behavior:"smooth"})}}),[S.current,L]);return u("div",{"aria-label":t,ref:S,css:d([F.container,"filled"===a&&F.containerFilled,"transparent"===a&&F.containerTransparent,k&&{"--highlight-color":k}]),id:p},u("div",{css:F.innerContainer},P.map((function(e,t){var n=(b(e)?e.key:m(e,f,t)).toString(),r=n===W,o=j.includes(n);return u("button",ee({key:n,css:d([F.tab,"filled"===a&&F.tabFilled,"transparent"===a&&F.tabTransparent]),disabled:o,onClick:function(t){var n=t.target;return function(e,t){var n=S.current.querySelector("[data-selected]");h(x)&&x(e),S.current.style.setProperty("--anim-height","".concat(n.offsetHeight,"px")),S.current.style.setProperty("--anim-left","".concat(n.offsetLeft,"px")),S.current.style.setProperty("--anim-width","".concat(n.offsetWidth,"px")),t.setAttribute("data-animating","true"),n.removeAttribute("data-selected"),t.setAttribute("data-selected","true"),requestAnimationFrame((function(){S.current.style.setProperty("--anim-duration","".concat(150,"ms")),S.current.style.setProperty("--anim-height","".concat(t.offsetHeight,"px")),S.current.style.setProperty("--anim-left","".concat(t.offsetLeft,"px")),S.current.style.setProperty("--anim-width","".concat(t.offsetWidth,"px")),t.scrollIntoView({behavior:"smooth"}),window.setTimeout((function(){t.removeAttribute("data-animating"),S.current.style.removeProperty("--anim-duration"),S.current.style.removeProperty("--anim-height"),S.current.style.removeProperty("--anim-left"),S.current.style.removeProperty("--anim-width"),E(e)}),150)}))}(e,n)},type:"button"},r?{"data-selected":!0}:null),b(e)?e.label:v(e,g,t))}))))},Ll=function(e){var t=e.colorPalette;return{container:d("--anim-duration:0ms;--anim-height:0;--anim-left:0;--anim-width:0;--highlight-color:",t.secondary,";flex-shrink:0;max-width:100%;position:relative;"),containerFilled:d("--anim-left:10px;--highlight-color:",t.primary,";border-radius:",Ie.borderRadius,";background-color:",t.neutral,";& > div{padding:10px;&::before{border-radius:",Ie.borderRadius,";height:var(--anim-height);top:10px;}}"),containerTransparent:d("& > div{padding-bottom:1px;}&::before{border-bottom:1px solid ",t.border,";content:'';left:0;position:absolute;top:28px;width:100%;}"),innerContainer:d(Ie.scrollbar,";display:flex;overflow-x:auto;position:relative;&::before{background-color:var(--highlight-color);content:'';height:2px;left:var(--anim-left);position:absolute;top:27px;transition:height var(--anim-duration) linear,left var(--anim-duration) ease-in-out,top var(--anim-duration) ease-in-out,width var(--anim-duration) linear;width:var(--anim-width);}"),tab:d("align-items:center;background-color:transparent;border:none;color:",t.font,';cursor:pointer;display:flex;font-family:"Montserrat",sans-serif;font-size:14px;font-weight:400;justify-content:center;line-height:20px;margin:0;outline:none;padding:0;position:relative;scroll-margin:10px;transition:color 100ms linear;white-space:pre;z-index:1;&:not(:last-child){margin-right:20px;}&:disabled{opacity:0.5;}&[data-selected]{font-weight:500;}'),tabFilled:d("border-radius:",Ie.borderRadius,";padding:5px 10px;&[data-selected]:not([data-animating]){background-color:var(--highlight-color);color:#fff;}&:hover:not([data-animating]):not([data-selected]){background-color:",t.border,";}"),tabTransparent:d("padding:4px 0;&[data-selected]:not([data-animating]){&::after{background-color:var(--highlight-color);border-radius:",Ie.borderRadius,";content:'';height:2px;left:0;position:absolute;top:calc(100% - 1px);width:100%;}}")}};export{Te as Accordion,He as Breadcrumb,Ke as Button,xt as Card,Ht as Carousel,Er as CheckBox,Ge as CircularProgress,ue as ColorPalette,pe as ColorPaletteEduqas,on as ContextHelp,vn as ContextMenu,Rr as DateTimePicker,ot as DestructiveButton,wn as DragAndDropList,Gr as Email,un as Emphasis,Vo as ErrorCard,ca as ErrorNotification,Kr as FileInput,sr as FilterList,ii as Footer,kr as Form,bi as Header,at as IconButton,da as InfoNotification,Ho as InformationCard,$n as Input,ki as LinearProgress,Jr as Link,ct as LinkButton,Ai as LocalizationMenu,Ni as Modal,Ui as Notification,wi as Page,fa as PageTitle,ha as Pagination,fn as Paragraph,ho as Password,nn as Popup,wa as PopupWindow,st as PrimaryButton,ka as PrintLayout,La as PrintWindow,mo as RadioGroup,Ei as ScrollableContainer,dt as SecondaryButton,Ea as SectionHeading,Fa as SectionTitle,Mo as Select,Ta as SigninForm,Ka as SigninMenu,Ie as StylePalette,tl as SubParagraph,rl as SubTitle,Yo as SuccessCard,pa as SuccessNotification,Pl as Table,Al as Tabs,To as TextArea,Zo as Toggle,qo as WarningCard};
|