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/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@emotion/core"),require("./utils"),require("wjec-one-dev-utils/theme"),require("react-aria"),require("react-swipeable"),require("react-dom"),require("react-beautiful-dnd"),require("body-scroll-lock"),require("color")):"function"==typeof define&&define.amd?define(["exports","react","@emotion/core","./utils","wjec-one-dev-utils/theme","react-aria","react-swipeable","react-dom","react-beautiful-dnd","body-scroll-lock","color"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).WJECOne={},e.React,e.emotionCore,e["C:\\Users\\wiseth\\git\\wjec-one\\temp\\utils"],e.WJECOneThemeDevUtils,e["react-aria"],e["react-swipeable"],e.ReactDOM,e["react-beautiful-dnd"],e.bodyScrollLock,e.color)}(this,(function(e,t,n,o,r,i,a,s,c,l,u){"use strict";function d(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var p=d(t);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){return h="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},h(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},m.apply(this,arguments)}function v(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function x(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function y(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function w(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 o,r,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return i}(e,t)||j(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 C(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||j(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 j(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function O(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=j(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}var E,P=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"}),L=Object.freeze(g(g({},P),{},{primary:"#007DB2",primaryDark:"#00628C",primaryDarkActive:"#004766",primaryLight:"#E5F8FF",primaryLightActive:"#CCF1FF"})),I=Object.freeze(g(g({},P),{},{primary:"#F1511B",primaryDark:"#BF3608",primaryDarkActive:"#BF3608",primaryLight:"#FDB8A1",primaryLightActive:"#FDB8A1"}));function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},S.apply(this,arguments)}var A,W=function(e,t){return p.createElement("svg",S({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),E||(E=p.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"})))},F=t.forwardRef(W);function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},T.apply(this,arguments)}var M,R=function(e,t){return p.createElement("svg",T({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),A||(A=p.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"})))},B=t.forwardRef(R);function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},D.apply(this,arguments)}var z,Z=function(e,t){return p.createElement("svg",D({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),M||(M=p.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"})))},H=t.forwardRef(Z);function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},J.apply(this,arguments)}var X=function(e,t){return p.createElement("svg",J({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),z||(z=p.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"})))},N=t.forwardRef(X),G=Object.freeze({borderRadius:"4px",dropShadow:"0px 2px 10px ".concat(L.border),scrollbar:n.css("&::-webkit-scrollbar{height:14px;width:",14,"px;}&::-webkit-scrollbar-button:single-button{display:block;height:16px;&:horizontal{&:decrement{background:",o.svgComponentToDataURL(t.createElement(B,{color:L.fontLight}))," 0 -3px / 20px no-repeat;&:hover{background-image:",o.svgComponentToDataURL(t.createElement(B,{color:L.font})),";}}&:increment{background:",o.svgComponentToDataURL(t.createElement(H,{color:L.fontLight}))," center -3px / 20px no-repeat;&:hover{background-image:",o.svgComponentToDataURL(t.createElement(H,{color:L.font})),";}}}&:vertical{&:decrement{background:",o.svgComponentToDataURL(t.createElement(N,{color:L.fontLight}))," center 0 / 20px no-repeat;&:hover{background-image:",o.svgComponentToDataURL(t.createElement(N,{color:L.font})),";}}&:increment{background:",o.svgComponentToDataURL(t.createElement(F,{color:L.fontLight}))," center -3px / 20px no-repeat;&:hover{background-image:",o.svgComponentToDataURL(t.createElement(F,{color:L.font})),";}}}}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",L.border,";border:3px solid transparent;border-radius:7px;&:hover{background-color:",L.fontLight,";}}&::-webkit-scrollbar-track{background-clip:padding-box;background-color:",L.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;"}}),V={name:"1bhjuxx",styles:"box-sizing:border-box;&::after,&::before,& *,& *::after,& *::before{box-sizing:inherit;}"},Y=n.css("&::selection{background-color:",L.highlight,";}"),q=n.css("color:",L.neutralDark,";font-family:'Montserrat',sans-serif;font-size:14px;font-weight:400;line-height:16px;"),U={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},K=function(e){var i=e.children,a=e.expanded,s=void 0!==a&&a,c=e.id,l=e.onClick,u=e.spacing,d=void 0===u?"normal":u,p=e.title,f=w(t.useState(s?"auto":0),2),g=f[0],h=f[1],b=w(t.useState(s),2),m=b[0],v=b[1],x=w(t.useState(i),2),y=x[0],C=x[1],j=w(t.useState("small"===d?10:20),2),k=j[0],O=j[1],E=t.useRef(),P=t.useRef();t.useEffect((function(){h(S())}),[E.current&&E.current.clientHeight,y,k]),t.useEffect((function(){s!==m&&(s?I():L())}),[s]),t.useEffect((function(){i!==y&&C(i)}),[i]),t.useEffect((function(){O("small"===d?10:20)}),[d]),t.useLayoutEffect((function(){h(S())}),[y]);var L=function(){v(!1),o.isCallableFunction(l)&&l(!1)},I=function(){h(S()),v(!0),o.isCallableFunction(l)&&l(!0)},S=function(){return P.current.scrollHeight+k},A=r.useWjecOneThemeStyles(ne);return n.jsx("div",{ref:E,css:n.css([A.container,m&&A.containerExpanded]),"data-accordion-container":!0,id:c},n.jsx("button",{type:"button",css:n.css([A.button,"small"===d&&A.buttonSpacingSmall,m&&A.buttonExpanded]),onClick:function(){!m?I():L()}},p),n.jsx("div",{css:n.css([A.content,m?A.contentExpanded:A.contentCollapsed,{height:m?g:0,opacity:m?1:0,paddingBottom:m?"".concat(k,"px"):0}])},n.jsx("div",{ref:P,"data-accordion-content":!0},i)))};K.displayName="AccordionContent";var _={name:"a30to4",styles:"&::after{transform:rotate(180deg) translateY(50%);}"},Q={name:"2bszaw",styles:"&::before{width:100%;}"},$={name:"1hx1c9u",styles:"padding:0 40px 20px 10px;overflow:hidden;"},ee={name:"1l1yfwv",styles:"transition:height 0.2s linear 0.05s,opacity 0.1s linear,padding-bottom 0.2s linear 0.05s;"},te={name:"16eciko",styles:"transition:height 0.2s linear,opacity 0.1s linear 0.15s,padding-bottom 0.2s linear;"},ne=function(e){var t=e.colorPalette;return{button:n.css("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:",o.svgComponentToDataURL(n.jsx(F,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:_,buttonSpacingSmall:n.css("padding:",10,"px;"),container:n.css(V,";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:Q,content:$,contentCollapsed:ee,contentExpanded:te}},oe=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}))},re=function(e){var r=e.children,i=e.exclusive,a=e.id,s=e.spacing,c=void 0===s?"normal":s,l=w(t.useState(oe(r)),2),u=l[0],d=l[1];t.useEffect((function(){!function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=0,r=!1;if(t.Children.forEach(e,(function(e){e.props.expanded&&o++,("object"!==h(e)||"AccordionContent"!==e.type.name&&"AccordionContent"!==e.type.displayName)&&(r=!0)})),n&&o>1)throw new Error('Accordion with "exclusive" flag can only have one expanded content section');if(r)throw new Error("Accordion content must be wrapped in an Accordion.Content component")}(r,i)}),[r,i]),t.useEffect((function(){d((function(e){return oe(r,e)}))}),[r]);var p=function(e,t){return function(n){d((function(t){var o=i&&n?Array(t.length).fill(!1):C(t);return o[e]=n,o})),o.isCallableFunction(t)&&t(n)}};return n.jsx("div",{id:a,css:se},t.Children.map(r,(function(e,n){return t.cloneElement(e,{expanded:u[n],onClick:p(n,e.props.onClick),spacing:e.props.spacing||c})})))};re.Content=K;var ie,ae,se=n.css(V,";width:100%;"),ce={name:"1azkibq",styles:"font-family:'Montserrat',sans-serif;font-size:12px;list-style:none;margin:0;padding:0;"},le=function(e){var t=e.colorPalette;return{breadCrumb:n.css("color:",t.fontLight,";font-size:14px;line-height:20px;text-decoration:none;&:hover{cursor:pointer;text-decoration:underline;}"),currentPage:n.css("color:",t.font,";display:inline-flex;font-size:14px;text-decoration:none;"),list:ce,listItem:n.css("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:",o.svgComponentToDataURL(n.jsx(B,{color:t.fontLight})),";content:'';margin-right:10px;}&:not(:last-of-type)::after{background-image:",o.svgComponentToDataURL(n.jsx(H,{color:t.fontLight})),";content:'';margin:0 10px;}")}},ue=function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t.useEffect((function(){if(n())throw new Error(e)}),o)},de=126,pe=function(e){var o=e.color,i=e.id,a=e.progress,s=void 0===a,c=t.useMemo((function(){return a&&de-Math.min(Math.max(a,0),100)/100*de}),[a]),l=r.useWjecOneThemeStyles(me);return n.jsx("div",{css:n.css([l.container,s?l.containerIndeterminate:l.containerStatic]),id:i},n.jsx("svg",{"aria-label":"loading",css:l.svgContainer,style:{"--color":o},viewBox:"22 22 44 44"},n.jsx("circle",{css:n.css([l.circle,s?l.circleIndeterminate:l.circleStatic]),cx:"44",cy:"44",fill:"none",r:"20.2",strokeWidth:"3.6",style:{"--dashoffset":c}})))},fe=n.keyframes(ie||(ie=y(["\n 100% { transform: rotate(360deg); }\n"]))),ge=n.keyframes(ae||(ae=y(["\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"]))),he={name:"1uu7u3w",styles:"height:20px;width:20px;"},be={name:"4dsd3s",styles:"transform:rotate(-90deg);"},me=function(e){var t=e.colorPalette;return{circle:n.css("--dashoffset:",de,";stroke:currentColor;stroke-dasharray:80px,200px;stroke-dashoffset:var(--dashoffset);"),circleIndeterminate:n.css("animation:",ge," 1.4s ease-in-out infinite;"),circleStatic:n.css("stroke-dasharray:",de,"px;transition:stroke-dashoffset 0.3s ease-out;"),container:he,containerIndeterminate:n.css("animation:",fe," 1.4s linear infinite;"),containerStatic:be,svgContainer:n.css("--color:",t.secondary,";color:var(--color);")}},ve=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t.useEffect((function(){n()&&o.developerWarning(e)}),r)},xe=function(e){var a=e.buttonStyle,s=void 0===a?"filled":a,c=e.iconSize,l=void 0===c?"normal":c,u=e.loadingColor,d=e.onClick,p=e.showOutline,f=e.activeColor,g=e.allowEventPropagation,h=void 0!==g&&g,b=e.ariaLabel,v=e.borderColor,x=e.buttonType,y=void 0===x?"button":x,C=e.color,j=e.children,k=e.disabled,O=e.focusColor,E=e.hoverColor,P=e.icon,L=e.iconColor,I=e.iconColorActive,S=e.iconPosition,A=void 0===S?"left":S,W=e.id,F=e.label,T=e.labelColor,M=e.labelColorActive,R=e.loading,B=e.loadingProgress,D=e.onPress,z=void 0===D?d:D,Z=e.outlineColor,H=e.size,J=void 0===H?"normal":H;!function(e){var t=e.buttonStyle,n=e.iconSize,o=e.loadingColor,r=e.onClick,i=e.showOutline;ve('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]),ve('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]),ve('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!==o}),[o]),ve('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!==r}),[r]),ve('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:s,iconSize:l,loadingColor:u,onClick:d,showOutline:p}),ue("WJEC One Button: Icon must be a valid SVGComponent",(function(){return P&&!o.isSvgComponent(t.createElement(P))}),[P]),ue("WJEC One Button: A Button must have a label and/or icon",(function(){return!j&&!P&&!F}),[j,P,F]);var X=t.useRef(),N=w(r.useWjecOneTheme(),1)[0].colorPalette,G={"--active-background-color":f,"--background-color":C,"--border-color":v,"--focus-background-color":O,"--hover-background-color":E,"--icon-color":L,"--icon-color-active":I,"--label-color":T,"--label-color-active":M,"--outline-color":Z,"--padding":"large"===J?"8px 24px":"small"===J?"2px 8px":void 0},V=r.useWjecOneThemeStyles(ke),Y=function(){var e=P;return n.jsx(e,{css:n.css([V.icon,(F||j)&&P&&("left"===A?V.iconLeft:V.iconRight)])})},q=i.useButton({id:W,isDisabled:k,onPress:z,type:y},X).buttonProps;return n.jsx("button",m({"aria-label":b},q,{ref:X,css:V.button,onClick:function(e){h||e.stopPropagation()},style:G,"data-loading":R||void 0}),P&&"left"===A&&Y(),F||j,P&&"right"===A&&Y(),R&&n.jsx("div",{css:V.loading},n.jsx(pe,{color:T||N.neutralDark,progress:B})))},ye={name:"18kopw8",styles:"color:var(--icon-color);flex-shrink:0;height:24px;opacity:0.6;transition:inherit;width:24px;"},we={name:"15ro776",styles:"margin-right:4px;"},Ce={name:"15fzge",styles:"margin-left:4px;"},je={name:"c524f5",styles:"left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);"},ke=function(e){var t=e.colorPalette;return{button:n.css("--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);",V,";align-items:center;background-color:var(--background-color);border:1px solid var(--border-color);border-radius:",G.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:ye,iconLeft:we,iconRight:Ce,loading:je}},Oe=function(e){var t=Object.assign({},(v(e),e)),o=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(xe,m({},t,{activeColor:o.errorDarker,color:o.error,hoverColor:o.errorDark,iconColor:"#FFFFFF",labelColor:"#FFFFFF",outlineColor:"#FFFFFF"}))},Ee=["loading"],Pe=function(e){var t=e.loading,o=x(e,Ee),i=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(xe,m({},o,{color:t?i.neutral:"transparent",loading:t}))},Le=["loading"],Ie=function(e){var t=Object.assign({},(v(e),e)),o=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(xe,m({},t,{activeColor:o.primaryDarkActive,color:o.primary,hoverColor:o.primaryDark,iconColor:"#FFFFFF",labelColor:"#FFFFFF",outlineColor:"#FFFFFF"}))},Se=function(e,n,o){var r=t.useRef(!1);t.useLayoutEffect((function(){var t,i,a,s;null!=n?null==o||null===(t=o.current)||void 0===t||null===(i=t.style)||void 0===i||i.setProperty(e,n.toString()):null==o||null===(a=o.current)||void 0===a||null===(s=a.style)||void 0===s||s.removeProperty(e);null!=o&&o.current&&(r.current=!0)}),[!r.current&&Date.now(),e,null==o?void 0:o.current,n])};const Ae="undefined"!=typeof window?t.useLayoutEffect:()=>{};let We=new Map,Fe=new Set;function Te(){if("undefined"==typeof window)return;let e=t=>{let n=We.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),We.delete(t.target)),0===We.size)){for(let e of Fe)e();Fe.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=We.get(t.target);n||(n=new Set,We.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}"undefined"!=typeof document&&("loading"!==document.readyState?Te():document.addEventListener("DOMContentLoaded",Te));let Me=0;const Re=new Map;function Be(e){let[n,o]=t.useState(void 0);return Ae((()=>{if(!e)return;let t=Re.get(e);if(t)o(t.element.id);else{let n="react-aria-description-"+Me++;o(n);let r=document.createElement("div");r.id=n,r.style.display="none",r.textContent=e,document.body.appendChild(r),t={refCount:0,element:r},Re.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),Re.delete(e))}}),[e]),{"aria-describedby":e?n:void 0}}var De,ze={cardMain:n.css("--border-color:none;--padding:30px 30px;background-color:#ffffff;border:1px solid var(--border-color);border-radius:",G.borderRadius,";box-shadow:",G.dropShadow,";padding:var(--padding);")},Ze={name:"fup5xt",styles:"align-items:center;display:flex;justify-content:space-between;margin:30px 30px 0;"},He={name:"hv8m74",styles:"display:flex;justify-content:center;list-style:none;margin:0;padding:0;width:100%;"},Je={name:"1fyoaf7",styles:"display:inline-block;flex-shrink:0;height:100%;width:100%;"},Xe={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;}"},Ne=function(e){var t=e.colorPalette;return{container:n.css(V,";display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%;"),controls:Ze,dot:n.css("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:n.css("&::before{background-color:",t.secondary,";border-color:",t.secondary,";}"),dots:He,navigationButton:n.css("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:n.css("color:",t.fontLight,";height:15px;"),slide:Je,slides:Xe}};function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ge.apply(this,arguments)}var Ve,Ye=function(e,t){return p.createElement("svg",Ge({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),De||(De=p.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"})))},qe=t.forwardRef(Ye);function Ue(){return Ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ue.apply(this,arguments)}var Ke,_e,Qe,$e=function(e,t){return p.createElement("svg",Ue({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ve||(Ve=p.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"})))},et=t.forwardRef($e),tt=function(e){var t=e.direction,o=e.disabled,i=e.onClick,a=r.useWjecOneThemeStyles(Ne);return n.jsx("button",{css:a.navigationButton,disabled:o,onClick:i,type:"button"},"next"===t?n.jsx(et,{css:a.navigationIcon}):n.jsx(qe,{css:a.navigationIcon}))},nt=function(e){var t=e.active,o=e.onClick,i=r.useWjecOneThemeStyles(Ne);return n.jsx("li",{css:n.css([i.dot,t&&i.dotActive]),onClick:o})},ot=function(e,t){return(e+1)%t},rt=function(e,t){return(e+t-1)%t},it=function(e,t,n){var o=n-t+Math.floor((n-1)/2)+e;return o>n-1?o%n:o},at=function(e,t,n){var o=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(o,"px"))},st=t.forwardRef((function(e,i){var s=e.buffer,c=void 0===s?1:s,l=e.children,u=e.id,d=e.infinite,p=e.onChange,f=e.showNavigationButtons,g=void 0===f||f,h=e.showNavigationDots,b=void 0===h||h,v=e.simulateMouseSwipe,x=e.slideIndex,y=void 0===x?0:x,C=e.slideTransitionDuration,j=void 0===C?200:C,k=t.useRef(),O=t.useRef(),E=w(t.useState(y),2),P=E[0],L=E[1],I=t.useMemo((function(){return d?c:0}),[c,d]),S=t.useMemo((function(){return t.Children.toArray(l)}),[l]),A=t.useMemo((function(){return S.length}),[S]),W=t.useMemo((function(){return A>0&&(g||b)}),[g,b,A]),F=t.useMemo((function(){var e=Object.keys(S).map((function(e){return parseInt(e)}));return d&&e.sort((function(e,t){return it(e,P,A)-it(t,P,A)})),e}),[P,S,d,A]);t.useLayoutEffect((function(){A>0&&at(F.indexOf(P),I,null==O?void 0:O.current)}),[P,I,A,F]),t.useEffect((function(){var e,t=Math.max(0,Math.min(A-1,y));null!=O&&null!==(e=O.current)&&void 0!==e&&e.hasAttribute("data-animating")||t===P||R(t)}),[y]),t.useEffect((function(){var e=k.current.offsetHeight,t=k.current.offsetWidth,n=new ResizeObserver((function(n){var o=w(n,1)[0].contentRect,r=o.height,i=o.width;r===e&&i===t||(e=r,t=i,at(F.indexOf(P),I,null==O?void 0:O.current))}));return n.observe(k.current),function(){n.disconnect()}}),[P,I,F]);var T=o.throttle((function(){if(d||P<A-1){var e=ot(P,A);R(e)}}),{limit:j+1}),M=o.throttle((function(){if(d||P>0){var e=rt(P,A);R(e)}}),{limit:j+1}),R=function(e){if(e!==P){var t=function(){O.current.removeAttribute("data-animating"),O.current.removeAttribute("data-swiping"),L(e),o.isCallableFunction(p)&&p(e)};j>0?(O.current.setAttribute("data-animating","true"),O.current.addEventListener("transitionend",t,{once:!0}),at(F.indexOf(e),I,null==O?void 0:O.current)):t()}};t.useImperativeHandle(i,(function(){return{goToNextSlide:T,goToPreviousSlide:M,goToSlide:R}}));var B=function(e){for(var n=[],o="before"===e?F[0]:F[A-1],r=0;r<I;r++)"before"===e&&(o=rt(o,A),n.unshift(o)),"after"===e&&(o=ot(o,A),n.push(o));return n.map((function(n){return t.cloneElement(S[n],{key:"buffer_".concat(e,"_").concat(n)})}))},D=a.useSwipeable({onSwiped:function(e){var t,n=e.deltaX,o=e.dir;if(O.current.hasAttribute("data-swiping")){var r=(t=F.indexOf(P)+I,(null==O?void 0:O.current).children[t].offsetWidth/3);Math.abs(n)>=r?"Left"===o?T():M():O.current.removeAttribute("data-swiping")}},onSwiping:function(e){var t=e.velocity;!O.current.hasAttribute("data-swiping")&&t>.33&&O.current.setAttribute("data-swiping","true")},trackMouse:v}),z=r.useWjecOneThemeStyles(Ne);return Se("--transition-duration","".concat(j,"ms"),O),n.jsx("div",{ref:k,css:z.container,id:u,"data-carousel-container":!0},n.jsx("div",m({},D,{ref:function(e){O.current=e,D.ref(e)},css:z.slides,"data-carousel-slides-container":!0}),B("before"),F.map((function(e){return S[e]})),B("after")),W&&n.jsx("div",{css:z.controls},g&&n.jsx(tt,{direction:"previous",disabled:0===P&&!d,onClick:M}),b&&n.jsx("ol",{css:z.dots},S.map((function(e,t){return n.jsx(nt,{key:"slide_".concat(t),active:t===P,onClick:function(){return R(t)}})}))),g&&n.jsx(tt,{direction:"next",disabled:P===A-1&&!d,onClick:T})))}));function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ct.apply(this,arguments)}var lt,ut=function(e,t){return p.createElement("svg",ct({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ke||(Ke=p.createElement("path",{d:"M9.167 15h1.666v-1.667H9.167V15Z",fill:"currentColor"})),_e||(_e=p.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"})),Qe||(Qe=p.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"})))},dt=t.forwardRef(ut),pt={name:"115actz",styles:"display:inline-flex;position:relative;"},ft={name:"1ixbp0l",styles:"pointer-events:none;"},gt={name:"13v3rg8",styles:"overflow-y:auto;"},ht={name:"17ju33v",styles:"--cursor:pointer;cursor:var(--cursor);display:inline-flex;"},bt=function(e){var t=e.colorPalette;return{container:pt,popup:n.css("--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:n.css("--translate-x:0;--translate-y:0;",V,";",G.scrollbar,";background-color:var(--background-color);border-radius:",G.borderRadius,";box-shadow:",G.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:ft,popupContentScrollable:gt,toggle:ht,toggleString:n.css("border-bottom:2px dotted ",t.secondary,";")}},mt=function(e,t,n,o,r){var i;if("bottom"===e){var a=o.clientHeight-(n.top+t.offsetHeight);i="floating"===r?a:a+(o.scrollTop+o.offsetTop)}if("left"===e&&(i="floating"===r?n.left:n.left-o.scrollLeft-o.offsetLeft),"right"===e){var s=o.clientWidth-(n.left+t.offsetWidth);i="floating"===r?s:s+(o.scrollLeft+o.offsetLeft)}return"top"===e&&(i="floating"===r?n.top:n.top-o.scrollTop-o.offsetTop),i},vt=function(e){var t=window.getComputedStyle(e);return{bottom:parseInt(t.marginBottom),left:parseInt(t.marginLeft),right:parseInt(t.marginRight),top:parseInt(t.marginTop)}},xt=function(e,t){var n;if("sibling"===t)n={left:e.offsetLeft,top:e.offsetTop};else{var o=e.getBoundingClientRect();n={left:Math.floor(o.left),top:Math.floor(o.top)}}return n},yt=function(e,t,n,r){if(e&&t){var i=0,a=0,s=r.startsWith("bottom")||r.startsWith("top")?"vertical":"horizontal",c={height:e.offsetHeight,width:e.offsetWidth},l=o.findScrollableParent(e),u={height:t.offsetHeight,width:t.offsetWidth},d=xt(t,n),p=vt(e),f=p.bottom,g=p.left,h=p.right,b=p.top;"horizontal"===s&&(a=d.top+u.height/2-c.height/2-b,r.startsWith("left")&&(i=d.left-c.width-g-h),r.startsWith("right")&&(i=d.left+u.width),r.endsWith("-end")&&(a=d.top+u.height-c.height-b),r.endsWith("-start")&&(a=d.top-b)),"vertical"===s&&(i=d.left+u.width/2-c.width/2-g,r.startsWith("bottom")&&(a=d.top+u.height),r.startsWith("top")&&(a=d.top-c.height-f-b),r.endsWith("-end")&&(i=d.left+u.width-c.width-g),r.endsWith("-start")&&(i=d.left-g)),"floating"===n&&(i+=l.scrollLeft,a+=l.scrollTop),e.style.setProperty("--position-x","".concat(i,"px")),e.style.setProperty("--position-y","".concat(a,"px"))}},wt=function(e,n,r,i,a,s){var c=t.useMemo((function(){return"sibling"===r&&null!=n&&n.current?o.findScrollableParent(n.current):null}),[r,null==n?void 0:n.current]);t.useEffect((function(){var t,l;a&&(t=new IntersectionObserver((function(t){t.forEach((function(t){var a,c=t.isIntersecting,l=t.target;l===(null==e?void 0:e.current)&&c&&function(e,t,n,r){var i=r.startsWith("bottom")||r.startsWith("top")?"vertical":"horizontal",a=o.findScrollableParent(e),s=xt(t.parentElement,n),c=0,l=0,u=vt(e),d=u.bottom,p=u.left,f=u.right,g=u.top;if("horizontal"===i){var h=mt("left",t,s,a,n),b=mt("right",t,s,a,n),m=h<e.offsetWidth+f,v=b<e.offsetWidth+p;(r.startsWith("left")&&m&&!v||r.startsWith("right")&&v&&!m)&&(c=(t.offsetWidth+e.offsetWidth+p+f)*(r.startsWith("left")?1:-1)),e.firstElementChild.style.setProperty("--translate-x","".concat(c,"px"))}if("vertical"===i){var x=mt("top",t,s,a,n),y=mt("bottom",t,s,a,n),w=x<e.offsetHeight+d,C=y<e.offsetHeight+g;(r.startsWith("bottom")&&C&&!w||r.startsWith("top")&&w&&!C)&&(l=(t.offsetHeight+e.offsetHeight+g+d)*(r.startsWith("top")?1:-1)),e.firstElementChild.style.setProperty("--translate-y","".concat(l,"px"))}}(null==e?void 0:e.current,null==n?void 0:n.current,r,i),l!==(null==e||null===(a=e.current)||void 0===a?void 0:a.firstElementChild)||c||s()}))}),{root:c,threshold:[0,1]}),t.observe(e.current),t.observe(null==e||null===(l=e.current)||void 0===l?void 0:l.firstElementChild));return function(){t&&t.disconnect()}}),[r,a,i,c])},Ct=function(e){var i=e.attachment,a=e.backgroundColor,c=e.children,l=e.margin,u=e.maxHeight,d=e.maxWidth,p=e.onOutOfView,f=e.open,g=e.padding,h=e.placement,b=e.scrollable,m=e.setPopupRef,v=e.textColor,x=e.toggleRef,y=e.trigger,C=t.useRef(),j=w(t.useState(f),2),k=j[0],O=j[1];!function(e,n,o,r,i){t.useLayoutEffect((function(){i&&yt(null==e?void 0:e.current,null==n?void 0:n.current,o,r)}),[o,i,r,null==e?void 0:e.current])}(C,x,i,h,f),wt(C,x,i,h,f,p),function(e,n,o,r,i){var a=t.useRef(!1);t.useEffect((function(){var t,s,c,l,u,d=function(){yt(null==e?void 0:e.current,null==n?void 0:n.current,o,r)};if(i){if(!a.current){var p=n.current.getBoundingClientRect(),f=p.height,g=p.left,h=p.top,b=p.width;s=f,c=g,l=h,u=b,a.current=!0}"floating"===o&&window.addEventListener("resize",d),t=new ResizeObserver((function(t){var i=w(t,1)[0].contentRect,a=i.height,d=i.left,p=i.top,f=i.width;a===s&&d===c&&p===l&&f===u||(yt(null==e?void 0:e.current,null==n?void 0:n.current,o,r),s=a,c=d,l=p,u=f)})),t.observe(null==n?void 0:n.current)}return function(){window.removeEventListener("resize",d),t&&t.disconnect()}}),[o,i,r])}(C,x,i,h,f),function(e,n,r,i){t.useEffect((function(){var t,a,s,c=0,l=0,u=function(t){var n,o,r,i,a,s,u,d,p=t.target,f=p.scrollLeft,g=p.scrollTop,h=c-f,b=l-g,m=parseInt(null==e||null===(n=e.current)||void 0===n||null===(o=n.style)||void 0===o?void 0:o.getPropertyValue("--position-x")),v=parseInt(null==e||null===(r=e.current)||void 0===r||null===(i=r.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(m+h,"px")),null==e||null===(u=e.current)||void 0===u||null===(d=u.style)||void 0===d||d.setProperty("--position-y","".concat(v+b,"px")),c=f,l=g};return i&&"floating"===r&&(t=o.findScrollableParent(null==n?void 0:n.current),c=null===(a=t)||void 0===a?void 0:a.scrollLeft,l=null===(s=t)||void 0===s?void 0:s.scrollTop,t!==document.documentElement&&t.addEventListener("scroll",u)),function(){t&&t.removeEventListener("scroll",u)}}),[r,i])}(C,x,i,f),t.useEffect((function(){var e,t,n,o,r,i=function(){O(!1)};f?(O(!0),null==C||null===(e=C.current)||void 0===e||null===(t=e.style)||void 0===t||t.setProperty("opacity","1")):(null==C||null===(n=C.current)||void 0===n||n.addEventListener("transitionend",i,{once:!0}),null==C||null===(o=C.current)||void 0===o||null===(r=o.style)||void 0===r||r.removeProperty("opacity"));return function(){var e;null==C||null===(e=C.current)||void 0===e||e.removeEventListener("transitionend",i)}}),[f]);var E=r.useWjecOneThemeStyles(bt);Se("--background-color",a,C),Se("--color",v,C),Se("--margin",l,C),Se("--max-height",u,C),Se("--max-width",d,C),Se("--padding",g,C);var P=n.jsx("div",{ref:function(e){C.current=e,m(e)},css:E.popup},n.jsx("div",{css:n.css([E.popupContent,b&&E.popupContentScrollable,"hover"===y&&E.popupOnHover])},c));return(f||k)&&("sibling"===i?P:s.createPortal(P,document.body))},jt=function(e){var i=e.ariaDescription,a=e.ariaLabel,s=e.attachment,c=void 0===s?"sibling":s,l=e.backgroundColor,u=e.children,d=e.closeDelay,p=void 0===d?0:d,f=e.closeOnClickOutside,g=void 0===f||f,h=e.closeOnOutOfView,b=void 0!==h&&h,v=e.gapSize,x=e.id,y=e.margin,C=void 0===y?v:y,j=e.maxHeight,k=e.maxWidth,O=e.onHide,E=e.onShow,P=e.open,L=void 0!==P&&P,I=e.openDelay,S=void 0===I?0:I,A=e.padding,W=e.placement,F=void 0===W?"bottom":W,T=e.popupPositionX,M=void 0===T?"right":T,R=e.popupPositionY,B=void 0===R?"below":R,D=e.position,z=void 0===D?{left:"auto",top:"auto"}:D,Z=e.positionType,H=void 0===Z?"relative":Z,J=e.scrollable,X=void 0===J||J,N=e.setRef,G=e.textColor,V=e.toggle,Y=e.toggleCursor,q=e.trigger,U=void 0===q?"press":q,K=e.width;!function(e,t,n,o,r,i,a,s){ve('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]),ve('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]),ve('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]),ve('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(o)}),[o]),ve('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"!==r}),[r]),ve('WJEC One Popup: The "setRef" prop has been deprecated as it is no longer required internally',(function(){return void 0!==i}),[i]),ve('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]),ve('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"!==s}),[s])}(v,M,B,z,H,N,U,void 0===K?"auto":K);var _=t.useRef(),Q=t.useRef(),$=t.useRef(),ee=w(t.useState(L),2),te=ee[0],ne=ee[1],oe=t.useRef(),re=t.useRef(),ie=Be(i),ae=t.useMemo((function(){return"right"!==M||"below"!==B?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"}}(M,B):F}),[F,M,B]);t.useEffect((function(){L&&!te&&le(),!L&&te&&ce()}),[L]),t.useEffect((function(){return"hover"!==U&&g&&te&&g&&window.addEventListener("click",se),function(){window.removeEventListener("click",se)}}),[g,te,U]);var se=function(e){var t=e.target;t===_.current||_.current.contains(t)||Q.current.contains(t)||ce()},ce=function(){window.clearTimeout(re.current),te&&(oe.current=window.setTimeout((function(){ne(!1),o.isCallableFunction(O)&&O()}),p))},le=function(){window.clearTimeout(oe.current),te||(re.current=window.setTimeout((function(){o.isCallableFunction(E)&&E(),ne(!0)}),S))},ue=r.useWjecOneThemeStyles(bt);return Se("--cursor",Y,_),n.jsx("div",m({"aria-label":a,ref:_,css:ue.container,id:x},ie),n.jsx("span",{ref:$,css:n.css([ue.toggle,"string"==typeof V&&ue.toggleString]),onClick:"click"===U||"press"===U?function(){te?ce():le()}:null,onMouseEnter:"hover"===U?le:null,onMouseLeave:"hover"===U?ce:null},V),n.jsx(Ct,{attachment:c,backgroundColor:l,margin:C,maxHeight:j,maxWidth:k,onOutOfView:function(){return b&&ne(!1)},open:te,padding:A,placement:ae,scrollable:X,setPopupRef:function(e){return Q.current=e},textColor:G,toggleRef:$,trigger:U},u))},kt=["ariaDescription","ariaLabel","children","id","toggle"],Ot={defaultToggle:{name:"1pg8bi",styles:"height:20px;"}};function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Et.apply(this,arguments)}var Pt,Lt,It=function(e,t){return p.createElement("svg",Et({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),lt||(lt=p.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"})))},St=t.forwardRef(It),At=function(e){var o=e.children,i=e.color,a=e.id,s=t.useRef(),c=r.useWjecOneThemeStyles(Wt);return Se("--color",i,s),n.jsx("span",{css:c.emphasis,id:a,ref:s},o)},Wt=function(e){var t=e.colorPalette;return{emphasis:n.css("--color:",t.neutralDark,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:16px;font-weight:700;line-height:24px;")}},Ft=function(e){var o=e.children,i=e.color,a=e.id,s=t.useRef(),c=r.useWjecOneThemeStyles(Tt);return Se("--color",i,s),n.jsx("p",{css:c.paragraph,id:a,ref:s},o)},Tt=function(e){var t=e.colorPalette;return{paragraph:n.css("--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;')}},Mt=["description","options","title","toggle"],Rt=function(e){return e&&e.length&&Object.hasOwn(e[0],"label")},Bt=function(e){var i=e.description,a=e.options,s=e.title,c=e.toggle,l=void 0===c?n.jsx(Pe,{allowEventPropagation:!0,icon:St}):c,u=x(e,Mt),d=w(r.useWjecOneTheme(),1)[0].colorPalette;t.useEffect((function(){return function(e){var n=Rt(e)?e:e.reduce((function(e,t){var n=t.sectionOptions;return[].concat(C(e),C(n))}),[]);n.some((function(e){var n=e.icon,r=e.label;if(n&&!o.isSvgComponent(t.createElement(n)))throw new Error('Icon for option "'.concat(r,'" must be a valid SVGComponent'))}))}(a)}),[a]);var p=function(e){return function(){o.isCallableFunction(e.onClick)&&e.onClick()}},f=r.useWjecOneThemeStyles(Ht),g=function(e){var t=e.additionalInfo,o=e.label,r=e.icon;return n.jsx("li",{key:o.toString(),css:f.menuItem,onClick:p(e)},r&&n.jsx(r,{css:f.menuItemIcon}),n.jsx("span",{css:f.menuItemLabel},o),t&&n.jsx("span",{css:"string"==typeof t?f.menuItemInfo:f.menuItemAction},t))};return n.jsx(jt,m({},u,{padding:0,popupPositionX:"right",popupPositionY:"below",toggle:l}),(s||i)&&n.jsx("header",{css:f.header},s&&n.jsx(At,null,s),i&&n.jsx(Ft,{color:d.fontLight},i)),n.jsx("ul",{css:n.css([V,G.scrollbar,f.menu])},a&&a.length&&(Rt(a)?a.map(g):a.map((function(e,t){var o=e.sectionTitle,r=e.sectionOptions;return n.jsx("li",{key:"section_".concat(o&&o.replace(/\s/g,"_")||t),css:f.section},o&&n.jsx("h4",{css:f.sectionTitle},o),n.jsx("ul",{css:n.css([f.subMenu,!o&&f.subMenuWithoutTitle])},r.map(g)))})))))},Dt=10,zt={name:"jvw5bw",styles:"margin-right:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},Zt={name:"1dacand",styles:"padding-top:0;"},Ht=function(e){var t=e.colorPalette;return{header:n.css("border-bottom:1px solid ",t.border,";margin:",Dt,"px;margin-bottom:0;min-width:250px;"),menu:n.css("font-family:'Montserrat',sans-serif;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:",Dt,"px;"),menuItem:n.css("align-items:center;border-radius:",G.borderRadius,";color:",t.font,";cursor:pointer;display:flex;font-size:14px;line-height:20px;padding:",5,"px ",Dt,"px;&:hover{background-color:",t.neutral,";& > svg{color:",t.secondary,";}}&:not(:last-child){margin-bottom:",5,"px;}"),menuItemAction:n.css("display:inline-flex;margin-left:",20,"px;pointer-events:none;"),menuItemIcon:n.css("color:",t.fontLight,";flex-shrink:0;height:20px;margin-right:",Dt,"px;"),menuItemInfo:n.css("color:",t.fontLight,";font-size:11px;line-height:20px;margin-left:",20,"px;"),menuItemLabel:zt,section:n.css("margin:0 -",Dt,"px;&:last-child{margin-bottom:-",Dt,"px;}&:not(:last-child){border-bottom:1px solid ",t.border,";margin-bottom:",Dt,"px;}"),sectionTitle:n.css("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:n.css("list-style:none;padding:",Dt,"px;"),subMenuWithoutTitle:Zt}},Jt={name:"ehba41",styles:"cursor:grab;"},Xt={name:"m2aufq",styles:"cursor:grabbing;"},Nt={name:"79elbk",styles:"position:relative;"},Gt={name:"9y6172",styles:"user-select:none;"},Vt=function(e){var t=e.colorPalette;return{handle:Jt,handleGrabbing:Xt,item:Nt,list:n.css(V,";list-style:none;margin:0;padding:0;position:relative;"),listDragging:Gt,placeholder:n.css("border:2px dashed ",t.secondary,";border-radius:",G.borderRadius,";position:absolute;")}};function Yt(){return Yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Yt.apply(this,arguments)}var qt,Ut,Kt=function(e,t){return p.createElement("svg",Yt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Pt||(Pt=p.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"})),Lt||(Lt=p.createElement("path",{d:"M12 8v4m0 4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},_t=t.forwardRef(Kt);function Qt(){return Qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Qt.apply(this,arguments)}var $t,en,tn=function(e,t){return p.createElement("svg",Qt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),qt||(qt=p.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"})),Ut||(Ut=p.createElement("path",{d:"m7.5 12 3 3 6-6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},nn=t.forwardRef(tn);function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},on.apply(this,arguments)}var rn,an=function(e,t){return p.createElement("svg",on({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),$t||($t=p.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"})),en||(en=p.createElement("path",{d:"M12 9v4m0 4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},sn=t.forwardRef(an),cn={description:n.css("color:",L.neutralDark,";display:block;font-size:12px;font-weight:400;line-height:16px;margin-top:4px;")},ln=function(e){var t=e.children;return t?n.jsx("span",{css:cn.description},t):null};function un(){return un=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},un.apply(this,arguments)}var dn,pn=function(e,t){return p.createElement("svg",un({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),rn||(rn=p.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"})))},fn=t.forwardRef(pn);function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},gn.apply(this,arguments)}var hn,bn=function(e,t){return p.createElement("svg",gn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),dn||(dn=p.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"})))},mn=t.forwardRef(bn);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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},vn.apply(this,arguments)}var xn,yn=function(e,t){return p.createElement("svg",vn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),hn||(hn=p.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"})))},wn=t.forwardRef(yn),Cn={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;"},jn={name:"196io73",styles:"left:0;position:absolute;top:0;width:16px;"},kn=function(e){var t=e.colorPalette;return{status:Cn,statusError:n.css("color:",t.error,";"),statusIcon:jn,statusSuccess:n.css("color:",t.success,";"),statusWarning:n.css("color:",t.warning,";")}},On=function(e){var o=e.children,i=e.status,a=r.useWjecOneThemeStyles(kn),s=t.useMemo((function(){var e;switch(i){case"error":e=fn;break;case"success":e=mn;break;case"warning":e=wn}return e}),[i]),c=t.useMemo((function(){var e;switch(i){case"error":e=a.statusError;break;case"success":e=a.statusSuccess;break;case"warning":e=a.statusWarning}return e}),[i]);return i&&o?n.jsx("span",{css:n.css([a.status,c],"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZpZWxkU3RhdHVzLmpzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEwQ2lCIiwiZmlsZSI6IkZpZWxkU3RhdHVzLmpzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyB1c2VNZW1vIH0gZnJvbSAncmVhY3QnO1xyXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcclxuaW1wb3J0IHsgdXNlV2plY09uZVRoZW1lU3R5bGVzIH0gZnJvbSAnd2plYy1vbmUtZGV2LXV0aWxzL3RoZW1lJztcclxuLy8gQHRyYW5zZm9ybS1wYXRoIC4uLy4uL2Fzc2V0cy9pY29ucy9saW5lX2FsZXJ0LWNpcmNsZS5zdmdcclxuaW1wb3J0IEVycm9ySWNvbiBmcm9tIFwiLi4vLi4vYXNzZXRzL2ljb25zL2xpbmVfYWxlcnQtY2lyY2xlLnN2Z1wiO1xyXG4vLyBAdHJhbnNmb3JtLXBhdGggLi4vLi4vYXNzZXRzL2ljb25zL2xpbmVfY2hlY2stY2lyY2xlLnN2Z1xyXG5pbXBvcnQgU3VjY2Vzc0ljb24gZnJvbSBcIi4uLy4uL2Fzc2V0cy9pY29ucy9saW5lX2NoZWNrLWNpcmNsZS5zdmdcIjtcclxuLy8gQHRyYW5zZm9ybS1wYXRoIC4uLy4uL2Fzc2V0cy9pY29ucy9saW5lX2FsZXJ0LXRyaWFuZ2xlLnN2Z1xyXG5pbXBvcnQgV2FybmluZ0ljb24gZnJvbSBcIi4uLy4uL2Fzc2V0cy9pY29ucy9saW5lX2FsZXJ0LXRyaWFuZ2xlLnN2Z1wiO1xyXG5jb25zdCBGaWVsZFN0YXR1cyA9ICh7IGNoaWxkcmVuLCBzdGF0dXMgfSkgPT4ge1xyXG4gICAgY29uc3Qgc3R5bGVzID0gdXNlV2plY09uZVRoZW1lU3R5bGVzKGdldFN0eWxlcyk7XHJcbiAgICBjb25zdCBTdGF0dXNJY29uID0gdXNlTWVtbygoKSA9PiB7XHJcbiAgICAgICAgbGV0IGljb247XHJcbiAgICAgICAgc3dpdGNoIChzdGF0dXMpIHtcclxuICAgICAgICAgICAgY2FzZSAnZXJyb3InOlxyXG4gICAgICAgICAgICAgICAgaWNvbiA9IEVycm9ySWNvbjtcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICBjYXNlICdzdWNjZXNzJzpcclxuICAgICAgICAgICAgICAgIGljb24gPSBTdWNjZXNzSWNvbjtcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICBjYXNlICd3YXJuaW5nJzpcclxuICAgICAgICAgICAgICAgIGljb24gPSBXYXJuaW5nSWNvbjtcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gaWNvbjtcclxuICAgIH0sIFtzdGF0dXNdKTtcclxuICAgIGNvbnN0IHN0YXR1c1N0eWxlID0gdXNlTWVtbygoKSA9PiB7XHJcbiAgICAgICAgbGV0IHN0eWxlO1xyXG4gICAgICAgIHN3aXRjaCAoc3RhdHVzKSB7XHJcbiAgICAgICAgICAgIGNhc2UgJ2Vycm9yJzpcclxuICAgICAgICAgICAgICAgIHN0eWxlID0gc3R5bGVzLnN0YXR1c0Vycm9yO1xyXG4gICAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICAgIGNhc2UgJ3N1Y2Nlc3MnOlxyXG4gICAgICAgICAgICAgICAgc3R5bGUgPSBzdHlsZXMuc3RhdHVzU3VjY2VzcztcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICBjYXNlICd3YXJuaW5nJzpcclxuICAgICAgICAgICAgICAgIHN0eWxlID0gc3R5bGVzLnN0YXR1c1dhcm5pbmc7XHJcbiAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICB9XHJcbiAgICAgICAgcmV0dXJuIHN0eWxlO1xyXG4gICAgfSwgW3N0YXR1c10pO1xyXG4gICAgcmV0dXJuIChzdGF0dXMgJiYgY2hpbGRyZW5cclxuICAgICAgICA/ICg8c3BhbiBjc3M9e1tzdHlsZXMuc3RhdHVzLCBzdGF0dXNTdHlsZV19PlxyXG4gICAgICAgICAgPFN0YXR1c0ljb24gY3NzPXtzdHlsZXMuc3RhdHVzSWNvbn0vPlxyXG4gICAgICAgICAge2NoaWxkcmVufVxyXG4gICAgICAgIDwvc3Bhbj4pXHJcbiAgICAgICAgOiBudWxsKTtcclxufTtcclxuY29uc3QgZ2V0U3R5bGVzID0gKHsgY29sb3JQYWxldHRlIH0pID0+ICh7XHJcbiAgICBzdGF0dXM6IGNzcyBgXHJcbiAgICBkaXNwbGF5OiBibG9jaztcclxuICAgIGZvbnQtc2l6ZTogMTJweDtcclxuICAgIGZvbnQtd2VpZ2h0OiA2MDA7XHJcbiAgICBsaW5lLWhlaWdodDogMTZweDtcclxuICAgIG1hcmdpbi10b3A6IDRweDtcclxuICAgIHBhZGRpbmctbGVmdDogMjRweDtcclxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcclxuICAgIHdoaXRlLXNwYWNlOiBwcmUtbGluZTtcclxuICBgLFxyXG4gICAgc3RhdHVzRXJyb3I6IGNzcyBgXHJcbiAgICBjb2xvcjogJHtjb2xvclBhbGV0dGUuZXJyb3J9O1xyXG4gIGAsXHJcbiAgICBzdGF0dXNJY29uOiBjc3MgYFxyXG4gICAgbGVmdDogMDtcclxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcclxuICAgIHRvcDogMDtcclxuICAgIHdpZHRoOiAxNnB4O1xyXG4gIGAsXHJcbiAgICBzdGF0dXNTdWNjZXNzOiBjc3MgYFxyXG4gICAgY29sb3I6ICR7Y29sb3JQYWxldHRlLnN1Y2Nlc3N9O1xyXG4gIGAsXHJcbiAgICBzdGF0dXNXYXJuaW5nOiBjc3MgYFxyXG4gICAgY29sb3I6ICR7Y29sb3JQYWxldHRlLndhcm5pbmd9O1xyXG4gIGBcclxufSk7XHJcbmV4cG9ydCBkZWZhdWx0IEZpZWxkU3RhdHVzO1xyXG4iXX0= */")},n.jsx(s,{css:a.statusIcon}),o):null},En=function(e){var a=e.gridArea,s=e.invalid,c=e.onPickSuggestion,l=e.validationMessage,u=e.validationPattern,d=e.ariaLabel,p=e.autoComplete,f=e.description,g=e.disabled,h=e.icon,b=e.id,m=e.inputMode,v=e.label,x=e.maxCharacters,y=e.name,C=e.onBlur,j=e.onChange,k=e.onFocus,O=e.placeholder,E=e.readonly,P=e.required,L=e.status,I=void 0===L?s?"error":void 0:L,S=e.statusIcon,A=void 0===S?"error"===I?_t:"success"===I?nn:"warning"===I?sn:void 0:S,W=e.statusIconBehavior,F=void 0===W?"status":W,T=e.statusMessage,M=void 0===T?l:T,R=e.suggestions,B=e.value,D=void 0===B?"":B,z=e.width;!function(e){var t=e.gridArea,n=e.invalid,o=e.onPickSuggestion,r=e.validationMessage,i=e.validationPattern;ve('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]),ve('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]),ve('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!==o}),[o]),ve('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!==r}),[r]),ve('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:a,invalid:s,onPickSuggestion:c,validationMessage:l,validationPattern:u}),ue("WJEC-One Input: Icon must be a valid SVGComponent",(function(){return h&&!o.isSvgComponent(t.createElement(h))}),[h]),ue("WJEC-One Input: Status icon must be a valid SVGComponent",(function(){return A&&!o.isSvgComponent(t.createElement(A))}),[A]);var Z=i.useId(),H=t.useMemo((function(){return b||Z}),[Z,b]),J=t.useRef(),X=t.useMemo((function(){return"wjecOneInputSuggestions_".concat(H)}),[H]),N=w(r.useWjecOneTheme(),1)[0],G=N.brand,V=N.colorPalette,Y=r.useWjecOneThemeStyles(Pn);t.useLayoutEffect((function(){J.current.value=D}),[D]);var q=t.useMemo((function(){switch(I){case"error":return{background:V.errorBackground,border:V.error};case"success":return{background:V.successBackground,border:V.success};case"warning":return{background:V.warningBackground,border:V.warning};default:return{background:"#FFFFFF",border:V.border}}}),[G,I]),U=t.useMemo((function(){return h&&o.svgComponentToDataURL(n.jsx(h,{color:g?V.border:V.neutralLight}))}),[G,g,h]),K=t.useMemo((function(){var e=V.neutralDark,t=void 0!==A&&("custom"===F||void 0!==I);if("status"===F)switch(I){case"error":e=V.error;break;case"success":e=V.success;break;case"warning":e=V.warning}return t?o.svgComponentToDataURL(n.jsx(A,{color:e})):void 0}),[G,I,A,F]),_=t.useMemo((function(){return{"--background-color":q.background,"--border-color":q.border,"--icon":U,"--margin-top":v&&"4px","--padding-left":U&&"40px","--padding-right":K&&"40px","--status-icon":K}}),[U,v,q,K]);return n.jsx("label",{"aria-label":d,css:Y.label,htmlFor:H,style:{width:z},"data-disabled":g},v,n.jsx("input",{ref:J,autoComplete:p,css:Y.input,defaultValue:D,disabled:g,id:H,inputMode:m,list:R&&X,maxLength:x,name:y,onBlur:function(e){var t=e.relatedTarget;o.isCallableFunction(C)&&C(t)},onChange:function(e){var t=e.target.value;o.isCallableFunction(j)&&j(t)},onFocus:function(){o.isCallableFunction(k)&&k()},placeholder:O,readOnly:E,required:P,style:_,type:"text"}),n.jsx(ln,null,f),n.jsx(On,{status:I},M),R&&n.jsx("datalist",{id:X},R.map((function(e,t){return n.jsx("option",{key:"".concat(e,"_").concat(t),value:e})}))))},Pn=function(e){var t=e.colorPalette;return{input:n.css("--background-color:#FFFFFF;--border-color:",t.border,";--icon:none;--margin-top:0;--padding-left:8px;--padding-right:8px;--status-icon:none;",Y,";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:",G.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:n.css(V,";",q,';display:inline-flex;flex-direction:column;&[data-disabled="true"]{color:',t.border,";}")}};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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ln.apply(this,arguments)}var In,Sn,An,Wn=function(e,t){return p.createElement("svg",Ln({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),xn||(xn=p.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"})))},Fn=t.forwardRef(Wn);function Tn(){return Tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Tn.apply(this,arguments)}var Mn,Rn=function(e,t){return p.createElement("svg",Tn({viewBox:"0 0 91 83",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),In||(In=p.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"})),Sn||(Sn=p.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"})),An||(An=p.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"})))},Bn=t.forwardRef(Rn),Dn={name:"10eevtr",styles:"bottom:0;top:auto;"},zn={name:"oxdg22",styles:"&::before{bottom:30px;top:auto;}"},Zn={name:"j7qwjs",styles:"display:flex;flex-direction:column;"},Hn={name:"yp8oic",styles:"display:flex;margin:2px 0 1px;min-height:0px;position:relative;"},Jn={name:"p49ge0",styles:"margin:1px 0 2px;"},Xn={name:"11cgomd",styles:"max-height:initial;"},Nn={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%;"},Gn={name:"267yq8",styles:"padding-left:35px;"},Vn={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;"},Yn={name:"9cuppe",styles:"bottom:auto;top:0;"},qn={name:"m2y6eh",styles:"align-items:center;display:flex;flex-direction:column;justify-content:center;padding:10px 0;"},Un={name:"1bkzip4",styles:"width:91px;"},Kn=function(e){var t=e.colorPalette;return{clearIcon:n.css("color:",t.fontLight,";cursor:pointer;height:30px;padding:5px;position:absolute;right:0;top:0;&:hover{color:",t.font,";}"),clearIconAbove:Dn,container:n.css(V,";display:inline-block;font-family:'Montserrat',sans-serif;font-size:12px;line-height:20px;position:relative;& > label{width:100%;}"),expandedContainer:n.css("background-color:#fff;border:1px solid ",t.border,";border-radius:",G.borderRadius,";box-shadow:",G.dropShadow,";position:fixed;z-index:1;&::before{border-bottom:1px solid ",t.border,";content:'';left:8px;position:absolute;right:8px;top:30px;}"),expandedContainerAbove:zn,expandedContainerFloating:Zn,list:n.css(G.scrollbar,";list-style:none;margin:0;overflow:auto;padding:8px 10px 9px;width:100%;"),listContainer:Hn,listContainerAbove:Jn,listFloating:Xn,listInput:Nn,listInputWithIcon:Gn,loading:Vn,loadingAbove:Yn,noResults:qn,noResultsIcon:Un}},_n={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 Qn(){return Qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Qn.apply(this,arguments)}var $n,eo,to=function(e,t){return p.createElement("svg",Qn({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Mn||(Mn=p.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"})))},no=t.forwardRef(to),oo={name:"7n37re",styles:"display:inline-flex;flex-direction:column;min-width:0;"},ro={name:"43a46m",styles:'display:inline-block;&[data-overflow="ellipsis"]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}'},io=function(e){var t=e.colorPalette;return{checkbox:n.css(G.visiblyHidden," &:checked + label::before{background-image:",o.svgComponentToDataURL(n.jsx(no,{color:t.primary})),";background-size:cover;}&:checked:disabled + label::before{background-image:",o.svgComponentToDataURL(n.jsx(no,{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:oo,label:n.css("--background-color:#FFFFFF;--border-color:",t.border,";--margin-right:0;--text-overflow:'wrap';",V,";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:",G.borderRadius,";content:'';display:inline-block;flex-shrink:0;height:40px;margin-right:var(--margin-right);width:40px;}"),labelContent:ro,loadingIcon:n.css("align-items:center;background-color:var(--background-color);border-radius:",G.borderRadius,";display:flex;height:30px;justify-content:center;left:1px;position:absolute;top:1px;width:30px;")}};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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ao.apply(this,arguments)}var so,co,lo=function(e,t){return p.createElement("svg",ao({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),$n||($n=p.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"})),eo||(eo=p.createElement("path",{d:"M12 6v6l4 2",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},uo=t.forwardRef(lo);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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},po.apply(this,arguments)}var fo,go=function(e,t){return p.createElement("svg",po({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),so||(so=p.createElement("path",{opacity:.4,d:"M21 10H3",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),co||(co=p.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"})))},ho=t.forwardRef(go),bo=function(e){var t=e.colorPalette;return{input:n.css("background:#fff center left 8px / 24px no-repeat;border:1px solid ",t.border,";border-radius:",G.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:n.css(V,";",q,";display:inline-flex;flex-direction:column;width:100%;")}},mo=function(e){var t=e.ariaLabel,o=e.breadcrumb,i=e.children,a=e.href,s=e.id,c=r.useWjecOneThemeStyles(vo);return n.jsx("a",{"aria-label":t,href:a,css:n.css([c.link,o&&c.withBreadcrumb]),id:s},i||a)},vo=function(e){var t=e.colorPalette;return{link:n.css("color:",t.primaryDark,";font-family:'Montserrat',sans-serif;font-size:14px;font-weight:500;line-height:20px;"),withBreadcrumb:n.css("color:",t.fontLight,";margin-right:40px;text-decoration:none;position:relative;&:not(:last-of-type)::after{background-image:",o.svgComponentToDataURL(n.jsx(H,{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,";}")}},xo=["gridArea","id","label","readonly","value"],yo={name:"r7q7qr",styles:"margin-bottom:5px;"},wo=function(e){var t=e.colorPalette;return{label:n.css(V,";color:",t.font,";display:inline-flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:12px;line-height:20px;"),labelText:yo}};function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Co.apply(this,arguments)}var jo,ko=function(e,t){return p.createElement("svg",Co({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),fo||(fo=p.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"})))},Oo=t.forwardRef(ko),Eo=[" bytes","kB","MB","GB","TB"],Po={name:"1k4v6ft",styles:"display:inline-flex;flex-direction:column;list-style:none;margin:0;padding:0;width:min-content;"},Lo={name:"p98ib",styles:"display:inline-flex;flex-direction:column;justify-content:center;padding-right:30px;position:relative;&:not(:last-of-type){margin-bottom:10px;}"},Io=function(e){var t=e.colorPalette;return{container:n.css(V,";border:1px dashed ",t.border,";border-radius:",G.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:n.css("color:",t.fontLight,";margin:0;"),documentIcon:n.css("color:",t.fontLight,";width:20px;"),fileList:Po,fileListItem:Lo,fileSize:n.css("color:",t.fontLight,";font-size:12px;"),removeIcon:n.css("color:",t.fontLight,";height:18px;pointer-events:all;position:absolute;right:0;top:1px;transition:color 0.1s linear;&:hover{color:",t.error,";}"),title:n.css("color:",t.font,";font-weight:normal;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"),uploadIcon:n.css("color:",t.fontLight,";height:20px;left:10px;position:absolute;top:50%;transform:translateY(-50%);")}};function So(){return So=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},So.apply(this,arguments)}var Ao,Wo,Fo=function(e,t){return p.createElement("svg",So({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),jo||(jo=p.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"})))},To=t.forwardRef(Fo);function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Mo.apply(this,arguments)}var Ro,Bo,Do,zo=function(e,t){return p.createElement("svg",Mo({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ao||(Ao=p.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"})),Wo||(Wo=p.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"})))},Zo=t.forwardRef(zo);function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ho.apply(this,arguments)}var Jo,Xo=function(e,t){return p.createElement("svg",Ho({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ro||(Ro=p.createElement("path",{opacity:.12,d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",fill:"currentColor"})),Bo||(Bo=p.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"})),Do||(Do=p.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"})))},No=t.forwardRef(Xo),Go=function(e){var a=e.gridArea,s=e.highlightColor,c=e.highlighted,l=e.show,u=e.ariaLabel,d=e.autoComplete,p=void 0===d?"current-password":d,f=e.description,g=e.disabled,h=e.id,b=e.label,v=e.name,x=e.onChange,y=e.onToggleRevealPassword,C=e.placeholder,j=e.revealPassword,k=void 0===j?void 0!==l&&l:j,O=e.showIcon,E=void 0===O||O,P=e.status,L=e.statusMessage,I=e.value,S=void 0===I?"":I;!function(e){var t=e.gridArea,n=e.highlighted,o=e.highlightColor,r=e.show;ve('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]),ve('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]),ve('WJEC One Password: The "highlightColor" prop has been deprecated due to its association with the deprecated `highlighted` prop',(function(){return void 0!==o}),[o]),ve('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!==r}),[r])}({gridArea:a,highlightColor:s,highlighted:c,show:l});var A=t.useRef(),W=t.useRef(),F=w(r.useWjecOneTheme(),1)[0],T=F.brand,M=F.colorPalette,R=i.useId(),B=t.useMemo((function(){return h||R}),[R,h]);t.useLayoutEffect((function(){W.current.setAttribute("aria-pressed",k.toString()),A.current.setAttribute("type",k?"text":"password")}),[k]),t.useLayoutEffect((function(){A.current.value=S}),[S]),t.useLayoutEffect((function(){W.current.style.setProperty("--offset-top","".concat(A.current.offsetTop,"px"))}));var D=t.useMemo((function(){switch(P){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{}}}),[T,P]),z=r.useWjecOneThemeStyles(Yo),Z=t.useMemo((function(){return{"--background-color":D.background,"--border-color":D.border,"--icon":!E&&"none","--margin-top":b&&"4px","--padding-left":!E&&"8px"}}),[b,E,D]),H=i.useButton({"aria-label":u,"aria-pressed":k,isDisabled:g,onPress:function(){var e="true"!==W.current.getAttribute("aria-pressed");W.current.setAttribute("aria-pressed",e.toString()),A.current.setAttribute("type",e?"text":"password"),o.isCallableFunction(y)&&y(e)},type:"button"},W).buttonProps;return n.jsx("label",{"aria-label":u,css:z.label,htmlFor:B,"data-disabled":g},b,n.jsx("input",{ref:A,autoComplete:p,css:z.input,defaultValue:S,disabled:g,id:B,name:v,onChange:function(e){var t=e.target.value;o.isCallableFunction(x)&&x(t)},placeholder:C,style:Z,type:k?"text":"password"}),n.jsx("button",m({},H,{css:z.revealPassword,name:"Reveal password",ref:W})),n.jsx(ln,null,f),n.jsx(On,{status:P},L))},Vo={name:"1ynvfur",styles:"font-size:12px;margin-top:4px;"},Yo=function(e){var t=e.colorPalette;return{description:Vo,input:n.css("--background-color:#FFFFFF;--border-color:",t.border,";--icon:",o.svgComponentToDataURL(n.jsx(To,{color:t.neutralLight})),";--margin-top:0;--padding-left:40px;",Y,";background:var(--background-color) var(--icon) center left 8px / 24px no-repeat;border:1px solid var(--border-color);border-radius:",G.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:",o.svgComponentToDataURL(n.jsx(To,{color:t.border})),";background-color:",t.neutral,";border-color:",t.border,";color:",t.border,";cursor:not-allowed;+ button{background-image:",o.svgComponentToDataURL(n.jsx(Zo,{color:t.border})),';&[aria-pressed="true"]{background-image:',o.svgComponentToDataURL(n.jsx(No,{color:t.border})),";}}}&:focus{border-color:",t.primary,";}&::placeholder{color:",t.neutralLight,";}"),label:n.css(V,";",q,';display:inline-flex;flex-direction:column;position:relative;&[data-disabled="true"]{color:',t.border,";}"),revealPassword:n.css("--offset-top:0;background:transparent ",o.svgComponentToDataURL(n.jsx(Zo,{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:',o.svgComponentToDataURL(n.jsx(No,{color:t.primary})),";color:",t.primary,";}")}},qo={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;}"},Uo=function(e){var t=e.colorPalette;return{container:n.css("--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;",V,";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:n.css(q,';&[data-disabled="true"]{color:',t.border,";}"),radioButton:n.css(G.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:qo}};function Ko(){return Ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ko.apply(this,arguments)}var _o,Qo,$o,er,tr,nr=function(e,t){return p.createElement("svg",Ko({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Jo||(Jo=p.createElement("path",{d:"m6 9 6 6 6-6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},or=t.forwardRef(nr),rr={name:"1ynvfur",styles:"font-size:12px;margin-top:4px;"},ir={name:"801txx",styles:"font-size:12px;font-weight:600;margin-top:4px;padding-left:24px;position:relative;"},ar={name:"ezpkst",styles:"left:0;position:absolute;top:50%;transform:translateY(-50%);width:16px;"},sr=function(e){var t=e.colorPalette;return{description:rr,label:n.css(V,";",q,';display:flex;flex-direction:column;position:relative;&[data-disabled="true"]{color:',t.border,";}"),select:n.css("--background-color:#FFFFFF;--border-color:",t.border,";--margin-top:0;appearance:none;background:var(--background-color) ",o.svgComponentToDataURL(n.jsx(or,{color:t.neutralLight}))," calc(100% - 8px) center / 24px no-repeat;border:1px solid var(--border-color);border-radius:",G.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:",o.svgComponentToDataURL(n.jsx(or,{color:t.border})),";border-color:",t.border,";color:",t.border,";cursor:not-allowed;}&:focus{border-color:",t.primary,";}&::placeholder{color:",t.neutralLight,";}"),status:ir,statusError:n.css("color:",t.error,";"),statusIcon:ar,statusSuccess:n.css("color:",t.success,";"),statusWarning:n.css("color:",t.warning,";")}},cr=function(e,t,n){var r;return o.isKeyLabelPair(e)?e.key:null===(r=o.extractKey(e,t,function(e,t){return t.findIndex((function(t){return t===e||lr(t)&&t.options.includes(e)}))}(e,n)))||void 0===r?void 0:r.toString()},lr=function(e){return o.isPlainObject(e)&&Object.hasOwn(e,"options")&&Object.hasOwn(e,"label")&&"string"==typeof e.label},ur=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},dr=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.excludeIfFalse,r=n.excludeIfFalsy,i=n.excludeIfNull,a=void 0===i||i,s=n.excludeIfUndefined,c=void 0===s||s,l=t.useMemo((function(){return Object.entries(e).reduce((function(e,t){var n=w(t,2),i=n[0],s=n[1];return o&&!1===s||r&&!s||a&&null===s||c&&void 0===s?e:g(g({},e),{},b({},ur(i),String(s)))}),{})}),[e]);return l},pr=function(e){var t=e.colorPalette;return{label:n.css(V,";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:n.css("border:1px solid ",t.border,";border-radius:",G.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;}")}},fr=function(e){var t=e.colorPalette;return{label:n.css(V,";",q,';cursor:pointer;display:inline-block;&[data-disabled="true"]{color:',t.border,";cursor:not-allowed;}"),toggleButton:n.css("--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,";}}")}},gr=function(e){var o=e.ariaDescription,i=e.borderColor,a=e.children,s=e.icon,c=void 0===s?_t:s,l=e.iconColor,u=e.id,d=e.title,p=e.titleColor,f=w(r.useWjecOneTheme(),1)[0],g=f.brand,h=f.colorPalette,b=t.useRef(),v=Be(o),x=r.useWjecOneThemeStyles(vr),y=t.useMemo((function(){return i||h.secondary}),[g,i]),C=t.useMemo((function(){return l||h.secondaryDark}),[g,l]),j=t.useMemo((function(){return p||h.secondaryDark}),[g,p]);return Se("--border-color",y,b),Se("--icon-color",C,b),Se("--title-color",j,b),n.jsx("div",m({css:x.infoCardMain,id:u,ref:b},v),n.jsx(c,{css:x.icon}),n.jsx("div",null,n.jsx("h3",{css:x.title},d),n.jsx("p",{css:x.message},a)))},hr={name:"1i9s3a8",styles:"color:var(--icon-color);flex-shrink:0;height:24px;width:24px;"},br={name:"1uk1gs8",styles:"margin:0;"},mr={name:"172fn9d",styles:"color:var(--title-color);font-weight:600;margin:0 0 4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},vr=function(e){var t=e.colorPalette;return{icon:hr,infoCardMain:n.css("--border-color:",t.secondary,";--icon-color:",t.secondaryDark,";--title-color:",t.secondaryDark,";background-color:#ffffff;border:1px solid var(--border-color);border-radius:",G.borderRadius,";box-shadow:",G.dropShadow,";display:flex;font-family:'Montserrat',sans-serif;font-size:16px;gap:16px;line-height:24px;padding:16px;"),message:br,title:mr}};function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},xr.apply(this,arguments)}var yr,wr,Cr,jr,kr,Or=function(e,t){return p.createElement("svg",xr({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),_o||(_o=p.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"})),Qo||(Qo=p.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"})),$o||($o=p.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"})),er||(er=p.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"})),tr||(tr=p.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"})))},Er=t.forwardRef(Or);function Pr(){return Pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Pr.apply(this,arguments)}var Lr,Ir=function(e,t){return p.createElement("svg",Pr({viewBox:"0 0 298 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),yr||(yr=p.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"})),wr||(wr=p.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"})),Cr||(Cr=p.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"})),jr||(jr=p.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"})),kr||(kr=p.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"})))},Sr=t.forwardRef(Ir),Ar=function(e){var t=e.copyrightMessage,o=void 0===t?"Copyright WJEC CBAC Ltd ".concat((new Date).getFullYear()):t,i=e.logos,a=void 0===i?[Er,Sr]:i,s=e.maxWidth,c=void 0===s?1280:s,l=r.useWjecOneThemeStyles(Tr);return n.jsx("footer",{css:l.footer},n.jsx("div",{css:n.css([l.container,{maxWidth:"".concat(c,"px")}])},a.map((function(e,t){return n.jsx(e,{key:"logo_".concat(t),css:l.logo})})),n.jsx("span",{css:l.copyright},o)))},Wr={name:"8zn5ov",styles:"align-items:center;display:flex;margin:0 auto;width:100%;"},Fr={name:"eeoqsk",styles:"height:25px;margin-right:10px;"},Tr=function(e){var t=e.colorPalette;return{container:Wr,copyright:n.css("border-left:1px solid ",t.border,";color:",t.fontLight,";font-size:12px;padding-left:10px;"),footer:n.css(V,";align-items:center;display:flex;justify-content:flex-start;padding:24px 30px 22px;width:100%;"),logo:Fr}};function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Mr.apply(this,arguments)}var Rr,Br,Dr,zr,Zr=function(e,t){return p.createElement("svg",Mr({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Lr||(Lr=p.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"})))},Hr=t.forwardRef(Zr),Jr={height:"40px",padding:"0"},Xr=function(e){var i=e.logo,a=void 0===i?{eduqas:Sr,wjec:Er}:i,s=e.logoId,c=e.logoStyles,l=e.maxWidth,u=void 0===l?1280:l,d=e.menus,p=e.onClickPageIcon,f=e.pageIcon,h=void 0===f?Hr:f,b=e.pageIconHref,m=e.pageTitle,v=e.showPageTitle,x=void 0===v||v,y=w(r.useWjecOneTheme(),1)[0].brand,C=r.useWjecOneThemeStyles(Yr),j=t.useMemo((function(){return e=a,o.isPlainObject(e)&&Object.hasOwn(e,"eduqas")&&Object.hasOwn(e,"wjec")?a[y]:a;var e}),[y,a]);return n.jsx("header",{css:C.header},n.jsx("div",{css:n.css([C.container,{maxWidth:"".concat(u,"px")}])},n.jsx("div",{css:C.titleContainer},x&&n.jsx(t.Fragment,null,n.jsx("a",{css:C.pageLink,href:b,onClick:p},n.jsx(h,{css:C.pageIcon})),n.jsx("h1",{css:C.title},m))),n.jsx(j,{css:n.css(g(g({},Jr),c)),id:s}),n.jsx("section",{css:C.menuContainer},d)))},Nr={name:"f7hwxs",styles:"align-items:center;display:grid;grid-gap:30px;grid-template-columns:1fr 100px 1fr;justify-items:center;margin:0 auto;"},Gr={name:"euyatf",styles:"align-items:center;display:flex;flex:1;justify-content:flex-end;justify-self:end;min-width:175px;"},Vr={name:"6o7adr",styles:"align-items:center;display:flex;justify-self:flex-start;"},Yr=function(e){var t=e.colorPalette;return{container:Nr,header:n.css(V,";background-color:#fff;border-bottom:1px solid ",t.border,";padding:15px 30px;position:sticky;top:0;width:100%;z-index:1;"),menuContainer:Gr,pageIcon:n.css("color:",t.fontLight,";height:20px;margin-right:10px;"),pageLink:n.css("cursor:pointer;:hover > svg{color:",t.font,";}"),title:n.css(U,";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:Vr}},qr={content:n.css("flex:1;margin:0 auto;min-height:100%;padding:40px ",30,"px 0;width:100%;"),pageWrapper:n.css(V,";display:flex;flex-direction:column;min-height:100vh;")},Ur=function(e){var o=e.color,i=e.id,a=e.progress,s=t.useRef(),c=void 0===a,l=r.useWjecOneThemeStyles(Qr);return Se("--background-color",o,s),n.jsx("progress",{"aria-label":"loading",css:n.css([l.progress,c&&l.progressIndeterminate]),id:i,max:100,ref:s,value:a})},Kr=n.keyframes(Rr||(Rr=y(["\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"]))),_r=n.keyframes(Br||(Br=y(["\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"]))),Qr=function(e){var t=e.colorPalette;return{progress:n.css("--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:n.css("&::before,&::after{background-color:var(--background-color);border-radius:2px;bottom:0;content:'';left:0;position:absolute;top:0;}&::after{animation:",Kr," 2.1s cubic-bezier(0.65,0.815,0.735,0.395) infinite;}&::before{animation:",_r," 2.1s cubic-bezier(0.165,0.84,0.44,1) infinite 1.15s;}")}},$r={icon:{name:"198hkja",styles:"display:flex;height:20px;width:20px;"}},ei=function(e){var t=e.children,o=e.element,r=void 0===o?"div":o,i=e.horizontal,a=void 0!==i&&i,s=e.styles,c=e.vertical,l=void 0===c||c;return n.jsx(r,{css:[s,G.scrollbar,{overflowX:a?"auto":"hidden",overflowY:l?"auto":"hidden"}]},t)},ti={dependencies:[],eventTarget:document.documentElement,shouldAddListener:!0},ni=new WeakMap,oi=function(e,t,n){var o=function(n){var o,r=Object.values(ni.get(t)[e].instances).map((function(e){return e.callback})),i=O(r);try{for(i.s();!(o=i.n()).done;){(0,o.value)(n)}}catch(e){i.e(e)}finally{i.f()}};return t.addEventListener(e,o,n),o},ri=function(e,n,r){var i=g(g({},ti),r),a=i.dependencies,s=i.eventOptions,c=i.eventTarget,l=i.shouldAddListener,u="function"==typeof l?l():l;t.useEffect((function(){var t={callback:n},r=o.isRefObject(c)?c.current:c;return u&&r&&(ni.has(r)||ni.set(r,{}),ni.get(r)[e]||(ni.get(r)[e]={instances:[],listener:oi(e,r,s)}),ni.get(r)[e].instances.push(t)),function(){var n,o=null===(n=ni.get(r))||void 0===n?void 0:n[e];o&&(o.instances=o.instances.filter((function(e){return e!==t})),0===ni.get(r)[e].instances.length&&function(e,t){var n=ni.get(t);t.removeEventListener("keydown",ni.get(t)[e].listener),delete n[e],0===Object.keys(n).length&&ni.delete(t)}(e,r))}}),[u,e,c].concat(C(a)))},ii={dependencies:[],focusElement:0,shouldTrapFocus:!0},ai={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;}"},si={name:"1pg8bi",styles:"height:20px;"},ci={name:"1kdy0wu",styles:"display:flex;flex:1;flex-direction:column;"},li={name:"y1gt6f",styles:"margin-top:40px;"},ui={name:"1rshn6v",styles:"@supports (scrollbar-gutter:stable){scrollbar-gutter:stable;}"},di={name:"ia9nae",styles:"align-items:flex-end;display:flex;justify-content:space-between;margin-top:50px;"},pi={name:"13faftp",styles:"margin-bottom:10px;padding-right:30px;position:relative;"},fi={name:"1f3fjso",styles:"align-items:center;display:flex;margin-left:auto;&:not(:last-child){margin-right:10px;}"},gi=function(e){var t=e.colorPalette;return{background:ai,closeButton:n.css("background-color:transparent;border:none;cursor:pointer;color:",t.fontLight,";display:flex;padding:0;position:absolute;right:0;top:0;"),closeIcon:si,content:ci,contentWithHeader:li,contentWithStableScrollbar:ui,description:n.css("color:",t.fontLight,";font-family:'Montserrat',sans-serif;font-size:14px;line-height:20px;margin:0;white-space:pre-line;"),footer:di,header:pi,modal:n.css(V,";background-color:#FFFFFF;border-radius:",G.borderRadius,";box-shadow:",G.dropShadow,";display:flex;flex-direction:column;position:relative;"),otherActions:fi}},hi=function(e){var o=e.children,i=e.color,a=w(r.useWjecOneTheme(),1)[0],s=a.brand,c=a.colorPalette,l=r.useWjecOneThemeStyles(bi),u=t.useRef(),d=t.useMemo((function(){return i||c.font}),[s,i]);return Se("--title-color",d,u),n.jsx("h3",{css:l.title,ref:u},o)},bi=function(e){var t=e.colorPalette;return{title:n.css("--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 mi(){return mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},mi.apply(this,arguments)}var vi,xi=function(e,t){return p.createElement("svg",mi({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Dr||(Dr=p.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"})),zr||(zr=p.createElement("path",{d:"M12 16v-4m0-4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},yi=t.forwardRef(xi),wi=500,Ci=function(e){var i=e.actionColor,a=void 0===i?"transparent":i,s=e.actionIcon,c=e.actionLoading,l=e.actionLoadingProgress,u=e.actionText,d=e.actionTextColor,p=void 0===d?L.primaryDark:d,f=e.autoClose,h=e.borderColor,b=e.icon,m=void 0===b?yi:b,v=e.iconColor,x=e.maxWidth,y=void 0===x?"375px":x,C=e.message,j=e.onActionClick,k=e.onClose,O=e.onOpen,E=e.open,P=void 0===E||E,I=e.position,S=e.positionType,A=void 0===S?"relative":S,W=e.showImmediately,F=e.title,T=e.titleColor,M=w(r.useWjecOneTheme(),1)[0],R=M.brand,B=M.colorPalette,D=w(t.useState(!P),2),z=D[0],Z=D[1],H=w(t.useState(P&&W),2),J=H[0],X=H[1],N=t.useRef(),V=t.useRef(),Y=t.useRef(),q=r.useWjecOneThemeStyles(Wi),U=t.useMemo((function(){if(m&&"none"!==m){var e=m;return n.jsx(e,{css:n.css([q.icon])})}return null}),[m]);t.useEffect((function(){return P&&W&&o.isCallableFunction(O)&&O(),function(){window.clearTimeout(N.current),window.clearTimeout(V.current)}}),[]),ue("WJEC-One Notification: Icon must be a valid SVGComponent",(function(){return m&&"none"!==m&&!o.isSvgComponent(t.createElement(m))}),[m]),t.useEffect((function(){P!==J&&(P?_():K())}),[P]),t.useEffect((function(){J&&f&&(window.clearTimeout(N.current),N.current=window.setTimeout(K,f))}),[f,J]);var K=function(){window.clearTimeout(N.current),window.clearTimeout(V.current),X(!1),V.current=window.setTimeout((function(){Z(!0),o.isCallableFunction(k)&&k()}),wi)},_=function(){window.clearTimeout(V.current),Z(!1),X(!0),V.current=window.setTimeout((function(){o.isCallableFunction(O)&&O()}),wi)},Q=t.useMemo((function(){return h||B.border}),[R,h]),$=t.useMemo((function(){return v||B.border}),[R,v]),ee=t.useMemo((function(){return T||B.font}),[R,T]);Se("--border-color",Q,Y),Se("--icon-color",$,Y),Se("--title-color",ee,Y);var te=!!u;return n.jsx("div",{css:n.css([q.container,!J&&q.containerFadeOut,J&&q.containerFadeIn,z&&G.visiblyHidden,g({maxWidth:y,position:A},I)]),ref:Y},U,n.jsx(hi,{color:ee},F),n.jsx("p",{css:n.css([q.message,te&&{marginBottom:"10px"}])},C),te?n.jsx(xe,{color:a,icon:s,iconColor:L.fontLight,labelColor:p,label:u,loading:c,loadingProgress:l,onClick:j,size:"small"}):null,J&&f&&n.jsx("svg",{css:q.autoClose,viewBox:"0 0 20 20"},n.jsx("circle",{css:n.css([q.autoCloseCircle,{animationDuration:"".concat(f,"ms")}]),cx:"10",cy:"10",r:"9",pathLength:"100"})),n.jsx(Fn,{css:q.close,onClick:K}))},ji=n.keyframes(vi||(vi=y(["\n to { stroke-dashoffset: -100; }\n"]))),ki={name:"9xvvt0",styles:"height:20px;position:absolute;right:8px;top:8px;width:20px;"},Oi={name:"oofjv5",styles:"cursor:pointer;height:36px;outline:none;padding:10px;position:absolute;right:0;top:0;width:36px;"},Ei={name:"1aodknh",styles:"opacity:1;transform:translateY(0);transition-timing-function:linear,ease-out;"},Pi={name:"15egim4",styles:"opacity:0;transform:translateY(-60px);transition-timing-function:linear,ease-in;"},Li={name:"15grx0k",styles:"align-items:flex-start;display:flex;flex-direction:column;"},Ii={name:"wvqk7n",styles:"color:var(--icon-color);flex-shrink:0;height:24px;left:16px;position:absolute;width:24px;"},Si={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;}"},Ai={name:"172fn9d",styles:"color:var(--title-color);font-weight:600;margin:0 0 4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},Wi=function(e){var t=e.colorPalette;return{autoClose:ki,autoCloseCircle:n.css("animation:",ji," linear forwards;fill:transparent;stroke:",L.fontLight,";stroke-dasharray:100;stroke-width:1;transform:rotate(-90deg);transform-origin:50%;"),close:Oi,container:n.css("--border-color:",t.border,";--icon-color:",t.border,";--title-color:",t.font,";",V,";background-color:#ffffff;border:1px solid var(--border-color);border-radius:",G.borderRadius,";box-shadow:",G.dropShadow,";font-family:'Montserrat',sans-serif;font-size:16px;gap:16px;line-height:24px;margin-bottom:16px;padding:16px 40px 16px 56px;transition:opacity ",wi,"ms,transform ",wi,"ms;z-index:999;"),containerFadeIn:Ei,containerFadeOut:Pi,content:Li,icon:Ii,message:Si,title:Ai}},Fi=["title"],Ti=["title"],Mi=["title"],Ri=function(e){var t=e.colorPalette;return{heading:n.css("--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;")}},Bi={name:"1qje5jb",styles:"margin:0 15px;text-align:center;user-select:none;width:50px;"},Di={name:"1x05hl3",styles:"opacity:0.33;pointer-events:none;"},zi={name:"1ixbp0l",styles:"pointer-events:none;"},Zi=function(e){var t=e.colorPalette;return{compact:Bi,container:n.css(V,";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:n.css("align-items:center;border-radius:",G.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:Di,optionNextPrevious:n.css("border:1px solid ",t.border,";"),optionSelected:n.css("background-color:",t.primary,";color:#FFFFFF;pointer-events:none;"),optionSeparator:zi}},Hi=function(e){var r=e.ariaLabel,i=e.children,a=e.isLoadingStyles,s=e.onOpen,c=e.popupWindow,l=w(t.useState(!1),2),u=l[0],d=l[1];return t.useEffect((function(){u||a||(o.isCallableFunction(s)&&s(c),d(!0))}),[a]),n.jsx(t.Fragment,null,i,a&&n.jsx("div",{"aria-label":r,css:Xi.wrapper},n.jsx(Ur,null)))},Ji=function(e){var r=e.children,i=e.height,a=void 0===i?500:i,c=e.id,l=void 0===c?"":c,u=e.onClose,d=e.onOpen,p=e.open,f=e.position,g=void 0===f?{x:50,y:200}:f,h=e.title,b=void 0===h?"":h,m=e.width,v=void 0===m?500:m,x=w(t.useState(),2),y=x[0],C=x[1],j=t.useRef(),k=t.useRef(document.querySelectorAll("[data-emotion]")),O=w(t.useState(!1),2),E=O[0],P=O[1],L=w(t.useState(p),2),I=L[0],S=L[1],A=w(t.useState(!1),2),W=A[0],F=A[1];t.useEffect((function(){var e=document.querySelectorAll("[data-emotion]");I&&j.current&&Array.from(e).some((function(e,t){return e!==k.current[t]}))&&(k.current=e,M())})),t.useEffect((function(){return function(){return j.current&&j.current.close()}}),[]),t.useEffect((function(){I&&R(),!j.current||j.current.closed||I||j.current.close()}),[r,I]),t.useEffect((function(){j.current&&(j.current.document.title=b)}),[b]),t.useEffect((function(){return S(p)}),[p]);var T=function(){P(!1),S(!1),F(!1),o.isCallableFunction(u)&&u()},M=function(){var e=j.current.document,t=e.head,n=t.querySelectorAll("style");Array.from(n).forEach((function(e){return t.removeChild(e)})),k.current.forEach((function(n){var o=n.textContent,r=n.sheet,i=e.createElement("style");if(i.appendChild(e.createTextNode("")),t.appendChild(i),o)i.appendChild(e.createTextNode(o));else{var a=i.sheet;[].forEach.call(r.cssRules,(function(e){a.insertRule(e.cssText)}))}})),requestAnimationFrame((function(){P(!0)}))},R=function(){if(!I||!j.current||j.current.closed)if(P(!1),j.current=window.open("",l,"left=".concat(g.x,",height=").concat(a,",top=").concat(g.y,",width=").concat(v)),j.current){var e=j.current.document.createElement("main");e.setAttribute("id",l),C(e),j.current.onbeforeunload=T,j.current.document.body.appendChild(e),j.current.document.title=b,requestAnimationFrame((function(){M(),S(!0),F(!0)}))}else o.developerError("A PopupWindow failed to open")};return I&&W&&j.current&&y?s.createPortal(n.jsx(Hi,{isLoadingStyles:!E,onOpen:d,popupWindow:j.current},r),y):null},Xi={wrapper:{name:"z2hlcz",styles:"background-color:#fff;bottom:0;left:0;padding:30px 10px;position:absolute;right:0;top:0;"}},Ni=function(e){var r=e.ariaLabel,i=e.children,a=e.footer,s=void 0===a?t.Fragment:a,c=e.header,l=void 0===c?t.Fragment:c,u=e.id,d=e.isNested,p=e.margin,f=void 0===p?"auto":p,h=e.onLayout,b=e.orientation,m=void 0===b?"portrait":b,v=e.parentFooterHeight,x=void 0===v?0:v,y=e.parentHeaderHeight,C=void 0===y?0:y,j=e.verticalAlign,k=void 0===j?"top":j,O=w(t.useState("auto"),2),E=O[0],P=O[1],L=w(t.useState("auto"),2),I=L[0],S=L[1],A=t.useRef(),W=t.useRef(),F=t.useMemo((function(){return("auto"===E?0:E)+("auto"===I?0:I)+x+C}),[E,I,x,C]);return t.useEffect((function(){A.current&&P(A.current.offsetHeight),W.current&&S(W.current.offsetHeight)}),[l,s,W.current,A.current]),t.useEffect((function(){"auto"!==E&&"auto"!==I&&o.isCallableFunction(h)&&h()}),[E,I]),n.jsx(t.Fragment,null,!d&&n.jsx(n.Global,{styles:n.css("@media print{*{-webkit-print-color-adjust:exact;}@page{margin:",f,";size:",m,";}}")}),n.jsx("table",{"aria-label":r,cellPadding:0,cellSpacing:0,css:Yi.printLayoutTable,id:u},n.jsx("thead",null,n.jsx("tr",null,n.jsx("td",{css:Yi.printLayoutTableCell,style:{height:I}},n.jsx("header",{ref:W,css:n.css([Yi.header,!d&&Yi.printHeader])},n.jsx(l,null))))),n.jsx("tbody",null,n.jsx("tr",null,n.jsx("td",{css:n.css([Yi.printLayoutTableCell,Yi.content]),style:{height:d?"calc(100vh - ".concat(F,"px)"):"auto",verticalAlign:k}},t.Children.map(i,(function(e){return e&&e.type&&("PrintLayout"===e.type.displayName||"PrintLayout"===e.type.name)?t.cloneElement(e,g(g({},e.props),{},{isNested:!0,parentFooterHeight:E,parentHeaderHeight:I})):e}))))),n.jsx("tfoot",null,n.jsx("tr",null,n.jsx("td",{css:Yi.printLayoutTableCell,style:{height:E}},n.jsx("footer",{ref:A,css:n.css([Yi.footer,!d&&Yi.printFooter])},n.jsx(s,null)))))))};Ni.displayName="PrintLayout";var Gi,Vi,Yi={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:n.css(V,";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;"}},qi=["ariaLabel","autoPrint","children","closeOnPrint","id","onClose","onOpen"],Ui=function(e){var t=e.colorPalette;return{sectionHeading:n.css("--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;")}},Ki=function(e){var t=e.colorPalette;return{title:n.css("--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 _i(){return _i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_i.apply(this,arguments)}var Qi,$i=function(e,t){return p.createElement("svg",_i({viewBox:"0 0 1440 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Gi||(Gi=p.createElement("mask",{id:"a","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:1440,height:150},p.createElement("path",{fill:"#fff",d:"M0 0h1440v150H0z"}))),Vi||(Vi=p.createElement("g",{mask:"url(#a)"},p.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"}),p.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"}),p.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"}),p.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"}))))},ea=t.forwardRef($i),ta={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:"."},na=function(e){var i=e.ariaDescription,a=e.ariaLabel,s=e.allowForgotPassword,c=void 0===s||s,l=e.allowSignup,u=void 0===l||l,d=e.autocomplete,p=void 0===d||d,f=e.enforceFormCompletion,h=e.id,b=e.padding,v=void 0===b?"50px 30px 30px":b,x=e.passwordValidator,y=void 0===x?function(e,t){return e===t}:x,C=e.profileActions,j=e.repeatNewPassword,k=e.type,O=void 0===k?"external":k,E=e.onCancel,P=e.onChangePassword,L=e.onConfirmResetPassword,I=e.onForceChangePassword,S=e.onForgotPassword,A=e.onHaveResetCode,W=e.onRequestResetPassword,F=e.onSignin,T=e.onSignout,M=e.onSignup,R=e.onSubmitMfa,B=e.loading,D=e.isSignedIn,z=void 0!==D&&D,Z=e.username,H=e.i18n,J=w(r.useWjecOneTheme(),1)[0].colorPalette,X=r.useWjecOneThemeStyles(fa),N=g(g({},ta),H),G=w(t.useState(!0),2),V=G[0],Y=G[1],q=w(t.useState("confirmResetPassword"===O),2),U=q[0],K=q[1],_=w(t.useState(""),2),Q=_[0],$=_[1],ee=w(t.useState(""),2),te=ee[0],ne=ee[1],oe=w(t.useState(""),2),re=oe[0],ie=oe[1],ae=w(t.useState(""),2),se=ae[0],ce=ae[1],le=w(t.useState(""),2),ue=le[0],de=le[1],fe=w(t.useState(""),2),ge=fe[0],he=fe[1],be=Be(i);t.useEffect((function(){$(""),ne(""),ie(""),ce(""),de(""),he("")}),[z]),t.useEffect((function(){"confirmResetPassword"===O?K(!0):U&&(K(!1),de(""))}),[O]),t.useEffect((function(){j||V||Y(!0)}),[j]);var me=function(){o.isCallableFunction(I)&&I(te)},ve=function(){o.isCallableFunction(P)&&P(ue,te)},ye=function(){o.isCallableFunction(L)&&L(ge,te,se)},we=function(){o.isCallableFunction(W)&&W(ge)},Ce=function(){o.isCallableFunction(F)&&F(ge,ue)},je=function(){o.isCallableFunction(R)&&R(Q)},ke=t.useMemo((function(){switch(O){case"changePassword":return N.changePasswordPrompt;case"confirmResetPassword":return N.confirmResetPasswordPrompt;case"forceChangePassword":return N.forceChangePasswordPrompt;case"mfa":return N.mfaPrompt;case"requestResetPassword":return N.requestResetPasswordPrompt;default:return N.signinPrompt}}),[H,O]),Oe=t.useMemo((function(){return"changePassword"!==O&&"confirmResetPassword"!==O&&"requestResetPassword"!==O&&(z||c||u)}),[c,u,z,O]),Ee=t.useMemo((function(){if(!f)return!1;switch(O){case"changePassword":case"forceChangePassword":return""===te||!V;case"confirmResetPassword":return""===se||""===te||!V;case"mfa":return""===Q;case"requestResetPassword":return""===ge;default:return""===ue||""===ge}}),[V,Q,te,se,re,ue,ge,O]),Pe=t.useMemo((function(){switch(O){case"changePassword":case"forceChangePassword":return N.changePasswordSubmit;case"mfa":return N.mfaSubmit;case"confirmResetPassword":case"requestResetPassword":return N.resetPasswordSubmit;default:return N.signin}}),[H,O]),Le=t.useMemo((function(){switch(O){case"changePassword":return N.changePasswordTitle;case"confirmResetPassword":case"requestResetPassword":return N.resetPasswordTitle;case"forceChangePassword":return N.forceChangePasswordTitle;case"mfa":return N.mfaTitle;default:return n.jsx(t.Fragment,null,z?"string"==typeof N.welcomeMessage?N.welcomeMessage.replace(/\{username\}/g,Z):N.welcomeMessage:N.welcomeMessageNotSignedIn,N.welcomeMessagePunctuation&&n.jsx("span",{css:X.welcomeMessagePunctuation},N.welcomeMessagePunctuation))}}),[H,z,O]);return n.jsx("div",m({"aria-label":a,id:h,css:n.css([X.container,{padding:v}])},be),n.jsx(ea,{css:X.headerShapes}),n.jsx("h1",{css:X.welcomeMessage},Le),n.jsx("section",{css:X.formContainer},z?n.jsx("ul",{css:X.actionsList},C&&C.map((function(e,t){var o=e.icon,r=e.label,i=e.onClick;return n.jsx("li",{key:t,css:X.action,onClick:i},o&&n.jsx(o,{css:X.actionIcon}),r)}))):n.jsx(t.Fragment,null,n.jsx("h2",{css:X.prompt},ke),n.jsx("form",{autoComplete:p?"on":"off",css:X.form,onSubmit:function(e){e.preventDefault()}},("internal"===O||"requestResetPassword"===O||"confirmResetPassword"===O)&&n.jsx(En,{label:N.username,name:"username",onChange:he,value:ge,width:"100%"}),("changePassword"===O||"forceChangePassword"===O||"confirmResetPassword"===O)&&n.jsx(t.Fragment,null,"changePassword"===O&&n.jsx(Go,{label:N.password,name:"password",onChange:de,value:ue}),"confirmResetPassword"===O&&n.jsx(En,{label:N.code,name:"code",onChange:ce,value:se,width:"100%"}),n.jsx(Go,{label:N.newPassword,name:"password",onChange:function(e){ne(e),j&&Y(y(e,re))},value:te}),j&&n.jsx(Go,{highlightColor:J.error,highlighted:!V,label:N.repeatNewPassword,name:"confirmPassword",onChange:function(e){ie(e),Y(y(te,e))},value:re}),!V&&n.jsx("span",{css:X.changePasswordWarning},N.changePasswordWarning)),"internal"===O&&n.jsx(Go,{label:N.password,name:"password",onChange:de,value:ue}),"mfa"===O&&n.jsx(En,{name:"code",onChange:$,value:Q}),n.jsx("div",{css:X.formActions},n.jsx(Ie,{buttonType:"submit",disabled:Ee,icon:et,label:Pe,onClick:function(){switch(O){case"changePassword":return ve;case"confirmResetPassword":return ye;case"forceChangePassword":return me;case"mfa":return je;case"requestResetPassword":return we;default:return Ce}}()}),("changePassword"===O||"confirmResetPassword"===O||"mfa"===O||"requestResetPassword"===O)&&n.jsx("a",{css:X.cancel,onClick:function(){o.isCallableFunction(E)&&E()}},N.cancel),"requestResetPassword"===O&&n.jsx("a",{css:n.css([X.actionLink,X.haveResetCode]),onClick:function(){o.isCallableFunction(A)&&A()}},N.resetPasswordHaveCode))))),Oe&&n.jsx("footer",{css:X.userDetails},z?n.jsx(xe,{color:"transparent",icon:qe,iconColor:J.fontLight,label:N.signout,labelColor:J.font,onClick:function(){o.isCallableFunction(T)&&T()}}):n.jsx(t.Fragment,null,c&&n.jsx("a",{css:X.actionLink,onClick:function(){o.isCallableFunction(S)&&S()}},n.jsx("h2",{css:X.prompt},N.forgotPassword)),u&&n.jsx("div",null,n.jsx("h2",{css:X.prompt},N.signupPrompt),n.jsx("a",{css:X.actionLink,onClick:function(){o.isCallableFunction(M)&&M()}},N.signup)))),B&&n.jsx("div",{css:X.loading},n.jsx(pe,null)))},oa={name:"yh3jvl",styles:"height:20px;margin-right:5px;width:20px;"},ra={name:"10w3nmc",styles:"list-style:none;margin:20px 0;padding:0;"},ia={name:"vl8ak5",styles:"font-family:'Montserrat',sans-serif;font-size:14px;line-height:20px;position:relative;"},aa={name:"1ajcev4",styles:"& >:not(:last-child){margin-top:10px;}"},sa={name:"79elbk",styles:"position:relative;"},ca={name:"w5in9r",styles:"align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:20px;"},la={name:"1xxqlwe",styles:"display:inline-block;flex:0 1 100%;margin-top:10px;"},ua={name:"19hbn8x",styles:"left:0;position:absolute;top:0;width:100%;"},da={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;"},pa={name:"1vnyfz6",styles:"font-size:18px;font-weight:normal;line-height:40px;margin:0;"},fa=function(e){var t=e.colorPalette;return{action:n.css("border-radius:",G.borderRadius,";cursor:pointer;display:flex;padding:10px;&:hover{background-color:",t.neutral,";}&:not(:last-child){margin-bottom:10px;}"),actionIcon:oa,actionLink:n.css("color:",t.primaryDark,";cursor:pointer;text-decoration:none;&:hover{text-decoration:underline;}"),actionsList:ra,cancel:n.css("color:",t.secondaryDark,";cursor:pointer;font-size:12px;margin-left:10px;:hover{text-decoration:underline;}"),changePasswordWarning:n.css("color:",t.errorDark,";font-size:12px;"),container:ia,form:aa,formContainer:sa,formActions:ca,haveResetCode:la,headerShapes:ua,loading:da,prompt:n.css("color:",t.fontLight,";font-size:14px;font-weight:normal;margin:0;"),userDetails:n.css("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:pa,welcomeMessagePunctuation:n.css("color:",t.secondary,";")}};function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ga.apply(this,arguments)}var ha=function(e,t){return p.createElement("svg",ga({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Qi||(Qi=p.createElement("g",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor"},p.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"}))))},ba=t.forwardRef(ha),ma=["ariaLabel","id","onClose","onOpen","open"],va={name:"198hkja",styles:"display:flex;height:20px;width:20px;"},xa=function(e){var t=e.colorPalette;return{arrow:va,avatar:n.css("background-color:",t.neutral,";border-radius:50%;padding:1px;")}},ya=function(e){var t=e.colorPalette;return{subParagraph:n.css("--color:",t.font,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:12px;font-weight:400;line-height:20px;margin:0;")}},wa=function(e){var t=e.colorPalette;return{heading:n.css("color:",t.font,";font-family:'Montserrat',sans-serif;font-size:24px;font-weight:400;line-height:40px;margin:0 0 30px 0;")}},Ca={name:"cojqun",styles:"border-top-color:transparent;"},ja={name:"xi606m",styles:"text-align:center;"},ka={name:"8atqhb",styles:"width:100%;"},Oa={name:"158oh36",styles:"white-space:nowrap;width:1px;"},Ea={name:"s2uf1z",styles:"text-align:right;"},Pa={name:"79elbk",styles:"position:relative;"},La={name:"guxjpz",styles:"font-weight:500;text-align:left;"},Ia={name:"a1tdk3",styles:"align-items:flex-start;bottom:0;display:flex;justify-content:center;left:0;margin:30px;position:absolute;right:0;"},Sa={name:"14bbtl1",styles:"bottom:calc(50% - 5px);"},Aa={name:"13s366x",styles:"top:calc(50% - 5px);"},Wa=function(e){var t=e.colorPalette;return{bodyCell:n.css("border:0px solid ",t.border,";border-top-width:1px;"),cell:n.css("color:",t.font,";padding:9px 12px;position:relative;transition:border-color ",100,"ms linear;@media print{font-size:13px;}"),cellGrouped:Ca,cellCenter:ja,cellMax:ka,cellMin:Oa,cellRight:Ea,cellSelected:n.css("background-color:",u(t.secondary).alpha(.1).rgb().string(),";border-bottom:1px solid var(--selected-border-color);"),container:Pa,headingCell:La,headingCellSortable:n.css("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:Ia,sortableIcon:n.css("color:",t.border,";position:absolute;right:10px;width:20px;"),sortableIconActive:n.css("color:",t.secondary,";"),sortableIconAsc:Sa,sortableIconDesc:Aa,table:n.css("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:n.css("--selected-border-color:",t.secondary,";"),tableBodySorting:n.css("--selected-border-color:",u(t.secondary).alpha(.25).rgb().string(),";& > tr{opacity:0.25;transition-timing-function:ease-in;}"),tableRow:n.css("transition:opacity ",100,"ms ease-out;")}},Fa=function(e,t){var n={};return"max"===e?n=t.cellMax:"min"===e?n=t.cellMin:e&&(n={minWidth:e}),n},Ta=function(e,t){var n;if(za(e)){var o,r=e.key;n=null==t||null===(o=t[r])||void 0===o?void 0:o.toString()}else if(Da(e)){var i=e.render;n=Ba(i)?i(t):i}else{var a=e.value;n=Za(a)?a(t):a}return n},Ma=function(e,t){return Object.keys(e||{}).reduce((function(n,o){var r=e[o];return g(g({},n),{},b({},o,"function"==typeof r?r(t):r))}),{})},Ra=function(e){return"function"==typeof e},Ba=function(e){return"function"==typeof e},Da=function(e){return Object.hasOwn(e,"render")},za=function(e){return Object.hasOwn(e,"key")},Za=function(e){return"function"==typeof e},Ha=function(e){var r,i=e.align,a=e.columnProps,s=e.index,c=e.onSort,l=e.sortable,u=e.sortedColumnDirection,d=e.sortedColumnIndex,p=e.styles,f=a.align,g=a.headingStyle,h=a.onSort,b=a.sortable,v=a.sorted,x=a.title,y=a.width,w=f||i,C=l&&!1!==b||b,j=v||C&&s===d,k=dr({"data-sorted":u});return n.jsx("th",m({},k,{css:n.css([p.cell,p.headingCell,C&&p.headingCellSortable,"center"===w&&p.cellCenter,"right"===w&&p.cellRight,Fa(y,p),g]),onClick:C?(r=s,function(){var e=r===d&&"ascending"===u?"descending":"ascending";c(e,r),o.isCallableFunction(h)&&h(e)}):null}),x,C&&n.jsx(t.Fragment,null,n.jsx(N,{css:n.css([p.sortableIcon,p.sortableIconAsc,j&&"ascending"===u&&p.sortableIconActive])}),n.jsx(F,{css:n.css([p.sortableIcon,p.sortableIconDesc,j&&"descending"===u&&p.sortableIconActive])})))},Ja=function(e){var t=e.align,o=e.cellStyle,r=e.columns,i=e.index,a=e.onPress,s=e.previousRowGroup,c=e.row,l=e.rowKey,u=e.rowOptions,d=e.rowStyle,p=e.selectedRowKey,f=e.styles,g=Ma(u,c).group,h="function"==typeof d?d(c,i):d;return n.jsx("tr",{css:n.css([f.tableRow,h]),onClick:function(){return a(c,i)},"data-row-group":g},r.map((function(e,r){var a=e.align,u=e.style,d=a||t,h=Ta(e,c),b=Ra(o)?o(c,h,r):o,m=Ra(u)?u(c,h,r):u;return n.jsx("td",{key:"row_".concat(i,"_").concat(r),css:n.css([f.cell,f.bodyCell,"center"===d&&f.cellCenter,"right"===d&&f.cellRight,g&&g===s&&f.cellGrouped,b,m,l===p&&f.cellSelected])},h)})))},Xa=function(e){var t=e.colorPalette;return{container:n.css("--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:n.css("--anim-left:10px;--highlight-color:",t.primary,";border-radius:",G.borderRadius,";background-color:",t.neutral,";& > div{padding:10px;&::before{border-radius:",G.borderRadius,";height:var(--anim-height);top:10px;}}"),containerTransparent:n.css("& > div{padding-bottom:1px;}&::before{border-bottom:1px solid ",t.border,";content:'';left:0;position:absolute;top:28px;width:100%;}"),innerContainer:n.css(G.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:n.css("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:n.css("border-radius:",G.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:n.css("padding:4px 0;&[data-selected]:not([data-animating]){&::after{background-color:var(--highlight-color);border-radius:",G.borderRadius,";content:'';height:2px;left:0;position:absolute;top:calc(100% - 1px);width:100%;}}")}};e.Accordion=re,e.Breadcrumb=function(e){var i=e.breadcrumbs,a=e.id,s=e.keyExtractor,c=e.labelExtractor,l=e.onClick,u=e.showCurrent,d=void 0===u||u,p=r.useWjecOneThemeStyles(le);return n.jsx("ul",{css:p.list,id:a},i.map((function(e,r){var a,u=function(e,t){return o.isKeyLabelPair(e)?e.key:o.extractKey(e,s,t)}(e,r),f=r===i.length-1;return n.jsx(t.Fragment,{key:u},(d||!f)&&n.jsx("li",{css:f?p.currentPage:p.listItem},n.jsx("a",{"aria-current":!!f&&"page",css:f?p.currentPage:p.breadCrumb,href:"#",onClick:f?void 0:(a=u,function(){return l(a)})},o.isKeyLabelPair(e)?e.label:o.extractContent(e,c,r))))})))},e.Button=xe,e.Card=function(e){var o=e.ariaDescription,r=e.borderColor,i=e.children,a=e.id,s=e.padding,c=t.useRef(),l=Be(o);return Se("--padding",s,c),Se("--border-color",r,c),n.jsx("div",m({css:ze.cardMain,id:a,ref:c},l),i)},e.Carousel=st,e.CheckBox=function(e){var a=e.ariaLabel,s=e.checked,c=void 0!==s&&s,l=e.children,u=e.description,d=e.disabled,p=e.gridArea,f=e.highlighted,g=e.id,h=e.label,b=e.labelOverflow,m=void 0===b?"wrap":b,v=e.loading,x=e.onChange,y=e.readonly,C=e.status,j=e.statusMessage;ve('WJEC One CheckBox: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==p}),[p]),ve("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!==f}),[f]),ve('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!==y}),[y]);var k=i.useId(),O=t.useMemo((function(){return g||k}),[k,g]),E=w(r.useWjecOneTheme(),1)[0],P=E.brand,L=E.colorPalette,I=r.useWjecOneThemeStyles(io),S=t.useRef();t.useLayoutEffect((function(){S.current.checked=c}),[c]);var A=t.useMemo((function(){switch(C){case"error":return{background:L.errorBackground,border:L.error};case"success":return{background:L.successBackground,border:L.success};case"warning":return{background:L.warningBackground,border:L.warning};default:return{}}}),[P,C]),W=t.useMemo((function(){return{"--background-color":A.background,"--border-color":A.border,"--margin-right":h&&"8px"}}),[h,A]);return n.jsx("div",{css:I.container},n.jsx("input",{id:O,type:"checkbox",css:I.checkbox,defaultChecked:c,onChange:function(e){var t=e.target.checked;o.isCallableFunction(x)&&x(t)},disabled:d,ref:S}),n.jsx("label",{"aria-label":a,css:I.label,htmlFor:O,onClick:function(e){return e.stopPropagation()},style:W},v&&n.jsx("div",{css:I.loadingIcon},n.jsx(pe,{color:L.primary})),n.jsx("span",{css:I.labelContent,"data-overflow":m},h||l)),n.jsx(ln,null,u),n.jsx(On,{status:C},j))},e.CircularProgress=pe,e.ColorPalette=L,e.ColorPaletteEduqas=I,e.ContextHelp=function(e){var t=e.ariaDescription,o=e.ariaLabel,i=e.children,a=e.id,s=e.toggle,c=void 0===s?n.jsx(dt,{css:Ot.defaultToggle}):s,l=x(e,kt),u=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(jt,m({ariaDescription:t,ariaLabel:o},l,{backgroundColor:u.secondaryDark,id:a,openDelay:500,popupPositionX:"after",popupPositionY:"top",scrollable:!1,textColor:"#FFFFFF",toggle:c,toggleCursor:"help",trigger:"hover"}),i)},e.ContextMenu=Bt,e.DateTimePicker=function(e){var i=e.date,a=e.disabled,s=e.id,c=e.label,l=e.maxDate,u=e.maxTime,d=void 0===u?"":u,p=e.minDate,f=e.minTime,g=void 0===f?"":f,h=e.onChangeDate,b=e.onChangeTime,m=e.placeholder,v=e.readonly,x=e.required,y=e.time,C=e.type,j=void 0===C?"dateTime":C,k=e.validationMessage,O=e.width,E=w(t.useState(""),2),P=E[0],L=E[1],I=w(r.useWjecOneTheme(),1)[0].colorPalette,S=r.useWjecOneThemeStyles(bo);t.useEffect((function(){L("dateTime"===j?i?o.formatDateTime({date:i,format:"yyyy-MM-ddT".concat(y||"HH:mm")}):"":"date"===j?i?o.formatDate({date:i,format:"yyyy-MM-dd"}):"":y||"")}),[i,y,j]);var A=t.useMemo((function(){var e="time"===j?uo:ho;return o.svgComponentToDataURL(n.jsx(e,{color:I.neutralLight}))}),[j]),W=t.useMemo((function(){return"dateTime"===j?"datetime-local":j}),[j]),F=t.useMemo((function(){return!(!l||!p)&&("00:00:00"===l.toTimeString().substring(0,8)&&"00:00:00"===p.toTimeString().substring(0,8))}),[l,p]),T=t.useMemo((function(){if("date"===j||"dateTime"===j){var e=l||("dateTime"===j&&d?new Date:void 0),t="dateTime"===j?"yyyy-MM-ddT".concat(d||(F?"23:59":"HH:mm")):"yyyy-MM-dd";return e?o.formatDateTime({date:e,format:t}):d}return d}),[l,d,j]),M=t.useMemo((function(){if("date"===j||"dateTime"===j){var e=p||("dateTime"===j&&g?new Date:void 0),t="dateTime"===j?"yyyy-MM-ddT".concat(g||(F?"00:00":"HH:mm")):"yyyy-MM-dd";return e?o.formatDateTime({date:e,format:t}):g}return g}),[p,g,j]);return n.jsx("label",{css:n.css([S.label,O&&{width:O}])},c,n.jsx("input",{css:n.css([S.input,{backgroundImage:A}]),disabled:a,id:s,max:T,min:M,onChange:function(e){var t=e.target,n=t.value,r=t.valueAsNumber,i=new Date(r),a=n.substring(n.indexOf("T")+1);k&&t.setCustomValidity(""),L(n),k&&!t.checkValidity()&&(t.setCustomValidity(k),t.reportValidity()),"date"!==j&&"dateTime"!==j||!o.isCallableFunction(h)||h(i),"dateTime"!==j&&"time"!==j||!o.isCallableFunction(b)||b(a)},placeholder:m,readOnly:v,required:x,type:W,value:P}))},e.DestructiveButton=Oe,e.DragAndDropList=function(e){var i=e.gap,a=void 0===i?0:i,s=e.id,l=e.items,u=e.onDrop,d=e.template,p=void 0===d?function(e){var t=e.Handle,o=e.item;return n.jsx(t,null,o.toString())}:d,f=w(t.useState(),2),h=f[0],b=f[1],v=w(t.useState(C(l)),2),x=v[0],y=v[1];t.useEffect((function(){y(C(l))}),[l]);var j=function(e,t,n){var o=document.querySelector("[data-rbd-draggable-id='".concat(n,"']"));if(o){var r=o.clientHeight,i=o.clientWidth,a=o.parentElement,s=parseFloat(window.getComputedStyle(a).paddingTop),c=Array.from(a.children),l=[].concat(c);l.splice(e,1);var u=[].concat(C(l.slice(0,t)),[o],C(l.slice(t+1)));b({height:r,left:parseFloat(window.getComputedStyle(a).paddingLeft),top:s+u.slice(0,t).reduce((function(e,t){var n=window.getComputedStyle(t),o=parseFloat(n.marginBottom);return e+t.clientHeight+o}),0),width:i})}},k=r.useWjecOneThemeStyles(Vt),O=function(e,t){return n.jsx(c.Draggable,{key:l.indexOf(e),draggableId:l.indexOf(e).toString(),index:t},(function(o,r){var i=o.dragHandleProps,s=o.draggableProps,c=o.innerRef;return n.jsx("li",m({ref:c},s,{css:n.css([k.item,t<x.length-1&&{marginBottom:a}])}),p({item:e,Handle:function(e){var t=e.children,o=e.positionType,a=void 0===o?"relative":o,s=e.position,c=void 0===s?{}:s;return n.jsx("div",m({},i,{css:n.css([k.handle,g({position:a},c),r.isDragging&&k.handleGrabbing])}),t)},index:t,sortedItems:C(x)}))}))};return n.jsx(c.DragDropContext,{onDragEnd:function(e){var t=e.destination,n=e.source;if(b(void 0),t){var r=C(x),i=r[n.index];r.splice(n.index,1),r.splice(t.index,0,i),o.isCallableFunction(u)&&u(r),y(r)}},onDragStart:function(e){var t=e.draggableId,n=e.source;j(n.index,n.index,t)},onDragUpdate:function(e){var t=e.destination,n=e.draggableId,o=e.source;t&&j(o.index,t.index,n)}},n.jsx(c.Droppable,{droppableId:"DragAndDropListDropZone"},(function(e,t){var o=e.droppableProps,r=e.innerRef,i=e.placeholder;return n.jsx("ul",m({ref:r},o,{css:n.css([k.list,t.isDraggingOver&&k.listDragging]),id:s}),x.map(O),i,h&&t.isDraggingOver&&n.jsx("div",{css:n.css([k.placeholder,h])}))})))},e.Email=function(e){var t=e.gridArea,o=e.id,i=e.label,a=e.readonly,s=e.value,c=x(e,xo);ve('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=r.useWjecOneThemeStyles(wo);return a?n.jsx("label",{css:n.css([l.label,t&&{gridArea:t}]),id:o},n.jsx("span",{css:l.labelText},i),n.jsx(mo,{href:"mailto:".concat(s)},s)):n.jsx(En,m({gridArea:t,label:i,value:s},c))},e.Emphasis=At,e.ErrorCard=function(e){var t=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(gr,m({},e,{borderColor:t.error,icon:sn,iconColor:t.error,titleColor:t.errorDark}))},e.ErrorNotification=function(e){var t=e.title,o=void 0===t?"Error":t,i=x(e,Fi),a=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(Ci,m({},i,{borderColor:L.error,icon:sn,iconColor:a.error,title:o,titleColor:L.error}))},e.FileInput=function(e){var i=e.ariaLabel,a=e.files,s=void 0===a?[]:a,c=e.height,l=e.id,u=e.max,d=e.multiple,p=e.onError,f=e.onSelect,g=e.placeholderDescription,h=void 0===g?"Drag ".concat(d?"files":"a file"," here or click to select"):g,b=e.placeholderTitle,m=e.validExtensions,v=e.validTypes,x=e.width,y=void 0===x?"100%":x,j=w(r.useWjecOneTheme(),1)[0].colorPalette,k=w(t.useState(s),2),O=k[0],E=k[1],P=w(t.useState(!1),2),L=P[0],I=P[1],S=w(t.useState(!0),2),A=S[0],W=S[1];t.useEffect((function(){E(s)}),[s&&s.length]),t.useEffect((function(){O!==s&&o.isCallableFunction(f)&&f(O)}),[O]);var F=function(e){return d?void 0===u||e<=u:e<=1},T=function(e){var t=[].concat(C(d?O:[]),C(e)),n=t.length,r=[],i=[],a=[];F(n)?(t.forEach((function(e){var t=!a.some((function(t){return o=e,(n=t).name===o.name&&n.type===o.type&&n.size===o.size&&n.lastModified===o.lastModified;var n,o})),n=function(e){var t=e.name,n=t.substr(t.lastIndexOf("."));return void 0===m||m.includes(n)}(e),o=function(e){var t=e.type;return void 0===v||v.includes(t)}(e);t&&n&&o&&a.push(e),n||r.push(e),o||i.push(e)})),E(a)):o.isCallableFunction(p)&&p([{code:"MAX_FILES_EXCEEDED",details:{maxCount:u||1,selectedCount:n}}]),(r.length||i.length)&&o.isCallableFunction(p)&&p([r.length&&{code:"INVALID_FILE_EXTENSION",details:{files:r}},i.length&&{code:"INVALID_FILE_TYPE",details:{files:i}}].filter((function(e){return e})))},M=function(e){return function(t){o.preventDefaultBehavior(t.nativeEvent),E((function(t){return t.filter((function(t){return t!==e}))}))}},R=r.useWjecOneThemeStyles(Io);return n.jsx("label",{"aria-label":i,css:n.css([R.container,c&&{height:c},L&&{borderColor:A?j.primary:j.error},y&&{width:y}]),id:l,onDragEnter:function(e){var t=e.dataTransfer.items.length;o.preventDefaultBehavior(e.nativeEvent),I(!0),W(F(t+O.length))},onDragLeave:function(e){o.preventDefaultBehavior(e.nativeEvent),I(!1)},onDragOver:function(e){o.preventDefaultBehavior(e.nativeEvent)},onDrop:function(e){var t=Array.from(e.dataTransfer.files);o.preventDefaultBehavior(e),T(t),I(!1)}},n.jsx("input",{type:"file",value:"",multiple:d,css:G.visiblyHidden,onChange:function(e){var t=Array.from(e.currentTarget.files);T(t)}}),n.jsx(Oo,{css:R.uploadIcon}),O.length?n.jsx("ul",{css:R.fileList},O.map((function(e){var t=e.lastModified,o=e.name,r=e.size,i=Math.floor(Math.log(r)/Math.log(1024)),a=(r/Math.pow(1024,i)).toFixed(2),s=r>0?"".concat(a).concat(Eo[i]):"0 bytes";return n.jsx("li",{key:"".concat(o,"_").concat(t),css:R.fileListItem},n.jsx("h4",{css:R.title},o),n.jsx("span",{css:R.fileSize},s),n.jsx(Fn,{css:R.removeIcon,onClick:M(e)}))}))):n.jsx(t.Fragment,null,b&&n.jsx("h4",{css:R.title},b),h&&n.jsx("p",{css:R.description},h)))},e.FilterList=function(e){var i=e.ariaLabel,a=e.ariaMultiselectable,s=e.ariaPosInSet,c=e.ariaSetSize,l=e.clearButtonBehaviour,u=void 0===l?"clear":l,d=e.expanded,p=e.filter,f=void 0===p||p,h=e.floatingList,b=e.floatingListPosition,m=void 0===b?{top:10}:b,v=e.icon,x=e.id,y=e.label,j=e.loading,k=e.maxHeight,O=void 0===k?150:k,E=e.noMatchesMessage,P=void 0===E?"No matches were found":E,L=e.onChange,I=e.onFilter,S=e.optionKeyExtractor,A=e.optionTemplate,W=void 0===A?function(e){var o=e.option;return n.jsx(t.Fragment,null,o)}:A,F=e.options,T=e.placeholder,M=e.value,R=void 0===M?"":M,B=w(r.useWjecOneTheme(),1)[0].colorPalette;ue("WJEC-One FilterList: You must specify a keyExtractor if the options array contains non-primitive entry types",(function(){return!o.isPrimitiveArray(F)&&!o.isKeyLabelPairArray(F)&&!S}),[S,F]);var D=t.useRef(),z=t.useRef(),Z=t.useRef(),H=w(t.useState(R),2),J=H[0],X=H[1],N=w(t.useState(0),2),G=N[0],V=N[1],Y=w(t.useState(0),2),q=Y[0],U=Y[1],K=w(t.useState("below"),2),_=K[0],Q=K[1],$=w(t.useState(0),2),ee=$[0],te=$[1],ne=w(t.useState(C(F)),2),oe=ne[0],re=ne[1],ie=w(t.useState(),2),ae=ie[0],se=ie[1],ce=w(t.useState([]),2),le=ce[0],de=ce[1],fe=w(t.useState(1),2),ge=fe[0],he=fe[1],be=t.useMemo((function(){return v&&o.svgComponentToDataURL(t.createElement(v,{color:B.fontLight}))}),[v]);t.useEffect((function(){var e;e=f&&J?F.filter((function(e,t){return we(e,t).toString().toLowerCase().includes(J.toLowerCase())})):C(F),o.isArrayEqual(e,oe)||(o.isCallableFunction(I)&&I(e),re(e))}),[J,f,F]),t.useEffect((function(){!ae||F.length||J||xe(),D.current.querySelector('input[type="text"]')===document.activeElement&&ye()}),[J,F]),t.useEffect((function(){d!==ae&&(d?ye():xe())}),[d]),t.useEffect((function(){R!==J&&X(R)}),[R]),t.useEffect((function(){return ae?(document.addEventListener("scroll",xe,!0),window.addEventListener("click",me),window.addEventListener("resize",ve)):(document.removeEventListener("scroll",xe,!0),window.removeEventListener("click",me),window.removeEventListener("resize",ve)),function(){document.removeEventListener("scroll",xe,!0),window.removeEventListener("click",me),window.removeEventListener("resize",ve)}}),[ae]),t.useEffect((function(){he(1),z.current&&z.current.scrollTo({top:0})}),[oe]),t.useEffect((function(){de((function(e){var t=ge>1?C(e):[],n=50*ge-50,o=n+50;return t.length=50*(ge-1),[].concat(C(t),C(oe.slice(n,o).map(Ee)))}))}),[oe,ge]);var me=function(e){var t=e.target;t===D.current||D.current.contains(t)||xe()},ve=o.throttle((function(){return ye()}),{limit:250}),xe=function(){Z.current===document.activeElement&&D.current.querySelector('input[type="text"]').focus(),se(!1),he(1)},ye=function(){if(F.length>0||!!J){var e=D.current.getBoundingClientRect(),t=e.top+e.height,n=window.innerHeight-t,o="below";if(!h){if(n<O){var r=e.top;(r>O||r>n)&&(o="above")}"below"===o?(V(Math.min(O,window.innerHeight-t-10)),U(e.top+D.current.querySelector('input[type="text"]').offsetTop)):(V(Math.min(O,e.top-10)),U(window.innerHeight-t-1))}Q(o),te(e.width),se(!0)}},we=function(e,t){return o.isKeyLabelPair(e)?e.key:o.extractKey(e,S,t)},Ce=function(e){var t="string"==typeof e?e:e.currentTarget.value;o.isCallableFunction(L)&&L(t),X(t)},je=o.throttle((function(e){var t=e.target;e.nativeEvent.stopImmediatePropagation(),t.scrollTop+2*t.clientHeight>t.scrollHeight&&50*ge<oe.length&&he((function(e){return e+1}))}),{beforeDelay:function(e){e.nativeEvent.stopImmediatePropagation(),e.persist()},limit:250}),ke=r.useWjecOneThemeStyles(Kn),Oe=function(){return n.jsx("input",{ref:Z,css:n.css([ke.listInput,be&&[ke.listInputWithIcon,{backgroundImage:be}]]),autoFocus:!0,onChange:Ce,placeholder:T,value:J})},Ee=function(e){var t=F.indexOf(e);return n.jsx("li",{"aria-posinset":s,"aria-setsize":c,key:we(e,t)},W({option:e,index:t,filteredOptions:C(oe)}))};return n.jsx("div",{ref:D,css:ke.container,id:x,onClick:function(e){var t=e.target;ae||t!==D.current.querySelector('input[type="text"]')||t!==document.activeElement||ye()}},n.jsx(En,{"aria-label":i,"aria-multiselectable":a,icon:v,label:y,onChange:Ce,onFocus:ye,placeholder:T,value:J}),ae&&n.jsx("div",{"aria-expanded":!0,css:n.css([ke.expandedContainer,"above"===_?[ke.expandedContainerAbove,{bottom:q}]:{top:q},{width:ee},h&&[ke.expandedContainerFloating,g(g({},m),{},{maxHeight:"calc(100% - ".concat(2*m.top,"px)")})]])},"below"===_&&Oe(),n.jsx(Fn,{css:n.css([ke.clearIcon,"above"===_&&ke.clearIconAbove]),onClick:function(){"clear"!==u&&"clearAndClose"!==u||X(""),"clear"===u&&Z.current.focus(),"clearAndClose"!==u&&"close"!==u||xe()}}),n.jsx("div",{css:n.css([ke.listContainer,"above"===_&&ke.listContainerAbove]),onScroll:je},n.jsx("ul",{ref:z,css:n.css([ke.list,h&&ke.listFloating,!h&&{maxHeight:G}])},oe.length?le:n.jsx("li",{css:ke.noResults},n.jsx(Bn,{css:ke.noResultsIcon}),P)),j&&n.jsx("div",{css:n.css([ke.loading,"above"===_&&ke.loadingAbove,!h&&{maxHeight:G}])},n.jsx(pe,null))),"above"===_&&Oe()))},e.Footer=Ar,e.Form=function(e){var t=e.ariaDescription,r=e.ariaLabel,i=e.children,a=e.clearButton,s=void 0===a?"Clear":a,c=e.clearId,l=e.id,u=e.onClear,d=e.onSubmit,p=e.otherActions,f=e.submitButton,g=void 0===f?"Submit":f,h=e.submitId,b=e.width,v=Be(t);return n.jsx("form",m({"aria-label":r,css:n.css({width:b}),id:l,onReset:function(e){e.preventDefault(),o.isCallableFunction(u)&&u()},onSubmit:function(e){e.preventDefault(),o.isCallableFunction(d)&&d()}},v),i,n.jsx("section",{css:_n.controls},s&&n.jsx(xe,{buttonType:"reset",id:c,label:s}),n.jsx("div",{css:_n.submit},g&&n.jsx(Ie,{buttonType:"submit",id:h,label:g})),p&&n.jsx(Bt,{options:p})))},e.Header=Xr,e.IconButton=Pe,e.InfoNotification=function(e){var t=e.title,o=void 0===t?"Information":t,i=x(e,Ti),a=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(Ci,m({},i,{borderColor:a.primary,iconColor:a.primary,title:o,titleColor:a.primary}))},e.InformationCard=gr,e.Input=En,e.LinearProgress=Ur,e.Link=mo,e.LinkButton=function(e){var t=e.loading,o=x(e,Le),i=w(r.useWjecOneTheme(),1)[0].colorPalette;return ue("WJEC One LinkButton: A LinkButton cannot have an unaccompanied icon",(function(){return o.icon&&!(o.children||o.label)}),[o]),n.jsx(xe,m({},o,{loading:t,color:t?i.neutral:"transparent",iconColor:i.fontLight,labelColor:i.primaryDark}))},e.LocalizationMenu=function(e){var o=e.ariaLabel,i=e.context,a=e.icons,s=e.id,c=e.keySuffix,l=void 0===c?"":c,u=e.open,d=void 0!==u&&u,p=e.selectLocaleAction,f=e.showLocaleNameInList,g=void 0===f||f,h=e.showSelectedLocaleName,b=w(r.useWjecOneTheme(),1)[0].colorPalette,m=w(t.useContext(i),2),v=m[0],x=v.availableLocales,y=v.locale,C=v.strings,j=m[1],k=w(t.useState(d),2),O=k[0],E=k[1],P=w(t.useState(y),2),L=P[0],I=P[1];t.useEffect((function(){d!==O&&E(d)}),[d]),t.useEffect((function(){y!==L&&I(y)}),[y]),t.useEffect((function(){j(p(L))}),[L]);var S=function(e){return function(){return E(e)}};return n.jsx(Bt,{"aria-label":o,id:s,open:O,options:null==x?void 0:x.map((function(e){return{icon:a&&a[e],label:g&&(C["".concat(String(e)).concat(l)]||"".concat(String(e)).concat(l)),onClick:(t=e,function(){I(t),E(!1)})};var t})),onHide:S(!1),onShow:S(!0),toggle:n.jsx(xe,{allowEventPropagation:!0,color:"transparent",icon:a&&a[y],labelColor:b.fontLight},h&&(C["".concat(String(y)).concat(l)]||"".concat(String(y)).concat(l)),n.jsx(F,{css:$r.icon}))})},e.Modal=function(e){var i=e.actionButton,a=void 0===i?"Confirm":i,c=e.actionButtonId,u=e.actionDisabled,d=e.actionLoading,p=e.actionLoadingProgress,f=e.actionType,h=void 0===f?"positive":f,b=e.blockScroll,v=void 0===b||b,x=e.cancelButton,y=void 0===x?"Cancel":x,j=e.cancelButtonId,k=e.children,E=e.closeOnCancel,P=void 0===E||E,L=e.closeOnClickOutside,I=void 0===L||L,S=e.description,A=e.fullscreen,W=e.id,F=e.maxHeight,T=void 0===F?A?"95vh":"90vh":F,M=e.maxWidth,R=void 0===M?A?"100vw":"60vw":M,B=e.minHeight,D=void 0===B?A?"95vh":"200px":B,z=e.minWidth,Z=void 0===z?A?"100vw":"200px":z,H=e.onAction,J=e.onCancel,X=e.onClose,N=e.onOpen,G=e.open,V=e.otherActions,Y=e.padding,q=void 0===Y?"30px":Y,U=e.showCloseIcon,K=void 0===U||U,_=e.stableScrollbar,Q=void 0===_||_,$=e.title,ee=e.ariaDescription,te=void 0===ee?S:ee,ne=e.ariaLabel;ve("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!==A}),[A]);var oe,re,ie,ae,se,ce,le,ue,de,pe,fe,ge,he=w(t.useState(G),2),be=he[0],me=he[1],ye=t.useRef(),we=t.useRef(),Ce=t.useRef(30),je=t.useRef(),ke=t.useRef(),Ee=Be(o.formattedStringToPlainText(te));oe=ye,re={focusElement:K?1:0,shouldTrapFocus:be},ie=g(g({},ii),re),ae=ie.dependencies,se=ie.focusElement,ce=ie.shouldTrapFocus,le=t.useRef([]),ue=t.useMemo((function(){return"function"==typeof ce?ce():ce}),[ce]),t.useEffect((function(){var e,t,n,r,i=o.isRefObject(oe)?oe.current:oe;return ue&&i&&(le.current=o.getKeyboardFocusableElements(i),(t=new MutationObserver((function(e){var t,n=O(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))&&(le.current=o.getKeyboardFocusableElements(i))}}catch(e){n.e(e)}finally{n.f()}}))).observe(i,{attributes:!0,childList:!0,subtree:!0}),e=function(e){var t=void 0===e.code?e.key:e.code,n=le.current[0],o=le.current[le.current.length-1];"Tab"===t&&(e.shiftKey||document.activeElement!==o||(n.focus(),e.preventDefault()),e.shiftKey&&document.activeElement===n&&(o.focus(),e.preventDefault()))},"number"==typeof se&&(null===(n=le.current[se])||void 0===n||n.focus()),"string"==typeof se&&(null===(r=le.current.find((function(e){return e.matches(se)})))||void 0===r||r.focus()),se instanceof HTMLElement&&le.current.includes(se)&&se.focus(),document.documentElement.addEventListener("keydown",e)),function(){document.documentElement.removeEventListener("keydown",e),t.disconnect()}}),[oe,ue].concat(C(ae))),function(e,t,n){ri("keydown",(function(n){(void 0===n.code?n.key:n.code).toLowerCase()===e.toLowerCase()&&t()}),n)}("escape",(function(){return Pe()}),{shouldAddListener:be}),t.useEffect((function(){G&&Se()}),[G]),t.useLayoutEffect((function(){be&&(ye.current.removeAttribute("data-hidden"),Le(),je.current=document.activeElement)}),[be]),t.useLayoutEffect((function(){we.current&&(Ce.current=parseInt(getComputedStyle(we.current).paddingRight))}),[q]),de=function(){G||Pe()},pe=[G],fe=t.useRef(!1),t.useEffect((function(){var e;return fe.current?e=de():fe.current=!0,e}),pe),ge=function(){var e;l.enableBodyScroll(we.current),null===(e=ye.current)||void 0===e||e.removeEventListener("transitionend",ke.current)},t.useEffect((function(){return ge}),[]);var Pe=function(){ke.current=function(){var e;l.enableBodyScroll(we.current),null===(e=je.current)||void 0===e||e.focus(),o.isCallableFunction(X)&&X(),me(!1)},ye.current.addEventListener("transitionend",ke.current,{once:!0}),ye.current.setAttribute("data-hidden","true")},Le=function(){v&&l.disableBodyScroll(we.current,{reserveScrollBarGap:!0,allowTouchMove:function(e){return we.current.contains(e)}})},Se=function(){o.isCallableFunction(N)&&N(),me(!0)},Ae="positive"===h?Ie:Oe,We=$||K,Fe=r.useWjecOneThemeStyles(gi);return be?s.createPortal(n.jsx("div",m({"aria-modal":!0,"aria-label":ne,css:Fe.background,id:W,onClick:function(e){var t=e.target;I&&(t===ye.current&&Pe())},ref:ye,role:"dialog","data-hidden":!0},Ee),n.jsx("div",{ref:we,css:n.css([Fe.modal,{maxHeight:T,maxWidth:R,minHeight:D,minWidth:Z,padding:q}])},We&&n.jsx("header",{css:Fe.header},$&&n.jsx(At,null,$),K&&n.jsx("button",{css:Fe.closeButton,onClick:Pe},n.jsx(Fn,{css:Fe.closeIcon}))),S&&n.jsx("p",{css:Fe.description},S),n.jsx(ei,{styles:[Fe.content,We&&Fe.contentWithHeader,Q&&Fe.contentWithStableScrollbar,n.css("@supports (scrollbar-gutter:stable){margin-right:",-1*Ce.current,"px;padding-right:",Math.max(Ce.current-(Q?14:0),0),"px;}")]},k),(a||y||V)&&n.jsx("footer",{css:Fe.footer},y&&n.jsx(xe,{id:j,label:y,onPress:function(){P&&Pe(),o.isCallableFunction(J)&&J()}}),n.jsx("section",{css:Fe.otherActions},V&&(t.isValidElement(V)?V:n.jsx(Bt,{options:V}))),a&&n.jsx(Ae,{disabled:u,id:c,label:a,loading:d,loadingProgress:p,onPress:H})))),document.body):null},e.Notification=Ci,e.Page=function(e){var t=e.children,o=e.footerProps,r=e.headerProps,i=e.maxWidth,a=void 0===i?1280:i;return n.jsx("div",{css:qr.pageWrapper},n.jsx(Xr,m({},r,{maxWidth:a})),n.jsx("main",{css:n.css([qr.content,{maxWidth:"".concat(a+60,"px")}])},t),n.jsx(Ar,m({},o,{maxWidth:a})))},e.PageTitle=function(e){var o=e.children,i=e.color,a=e.id,s=t.useRef(),c=r.useWjecOneThemeStyles(Ri);return Se("--color",i,s),n.jsx("h1",{css:c.heading,id:a,ref:s},o)},e.Pagination=function(e){var i=e.ariaCurrent,a=e.ariaLabel,s=e.compact,c=void 0!==s&&s,l=e.current,u=void 0===l?1:l,d=e.id,p=e.onSelect,f=e.total,g=function(e){return function(){e>0&&e<f+1&&o.isCallableFunction(p)&&p(e)}},h=t.useMemo((function(){return f>5?u<4?[2,3,4,"..."]:u>f-3?["...",f-3,f-2,f-1]:["...",u-1,u,u+1,"..."]:C(Array(Math.max(0,f-2)).keys()).map((function(e){return e+2}))}),[u,f]),b=r.useWjecOneThemeStyles(Zi);return n.jsx("ol",{"aria-label":a,css:b.container,id:d},n.jsx("li",{"aria-current":i,css:n.css([b.option,b.optionNextPrevious,1===u&&b.optionDisabled]),onClick:g(u-1)},n.jsx(B,{height:"100%",width:"100%"})),c?n.jsx("li",{css:b.compact},u," of ",f):n.jsx(t.Fragment,null,n.jsx("li",{css:n.css([b.option,1===u&&b.optionSelected]),onClick:g(1)},"1"),h.map((function(e,t){return n.jsx("li",{key:t,css:n.css([b.option,e===u&&b.optionSelected,"string"==typeof e&&b.optionSeparator]),onClick:"number"==typeof e?g(e):null},e)})),f>1&&n.jsx("li",{css:n.css([b.option,u===f&&b.optionSelected]),onClick:g(f)},f)),n.jsx("li",{css:n.css([b.option,b.optionNextPrevious,u===f&&b.optionDisabled]),onClick:g(u+1)},n.jsx(H,{height:"100%",width:"100%"})))},e.Paragraph=Ft,e.Password=Go,e.Popup=jt,e.PopupWindow=Ji,e.PrimaryButton=Ie,e.PrintLayout=Ni,e.PrintWindow=function(e){var r=e.ariaLabel,i=e.autoPrint,a=e.children,s=e.closeOnPrint,c=e.id,l=e.onClose,u=e.onOpen,d=x(e,qi),p=w(t.useState(!1),2),f=p[0],g=p[1],h=w(t.useState(!1),2),b=h[0],v=h[1],y=t.useRef();t.useEffect((function(){f&&b&&C()}),[f,b]);var C=function(){o.isCallableFunction(u)&&u(y.current),i&&y.current.print()},j=function(){s&&y.current.close()};return n.jsx(Ji,m({},d,{id:c,onClose:function(){g(!1),v(!1),o.isCallableFunction(l)&&l()},onOpen:function(e){(y.current=e,y.current.document.body.style.margin="0",y.current.document.body.style.padding="0","onafterprint"in y.current)?y.current.onafterprint=j:window.matchMedia("print").addListener((function(e){return e.matches&&j()}));v(!0)}}),n.jsx(Ni,m({ariaLabel:r},d,{onLayout:function(){g(!0)}}),a))},e.RadioGroup=function(e){var a=e.ariaLabel,s=e.description,c=e.disabled,l=e.gridArea,u=e.keyExtractor,d=e.highlightedOption,p=e.id,f=e.label,g=e.labelExtractor,h=e.name,b=e.onSelect,m=e.options,v=e.orientation,x=void 0===v?"horizontal":v,y=e.selectedOption,C=e.status,j=e.statusMessage;ve('WJEC One RadioGroup: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==l}),[l]),ue("WJEC-One RadioGroup: You must specify a keyExtractor if the options array contains non-primitive entry type",(function(){return!o.isPrimitiveArray(m)&&!o.isKeyLabelPairArray(m)&&!u}),[u]),ve("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 k=i.useId(p),O=t.useRef();t.useLayoutEffect((function(){if(y){var e=O.current.querySelectorAll('input[type="radio"]'),t=m.indexOf(y),n=S(y,t),o=Array.from(e).find((function(e){return e.value===n}));o&&(o.checked=!0)}}),[m,y]);var E=w(r.useWjecOneTheme(),1)[0],P=E.brand,L=E.colorPalette,I=t.useMemo((function(){switch(C){case"error":return{background:L.errorBackground,border:L.error};case"success":return{background:L.successBackground,border:L.success};case"warning":return{background:L.warningBackground,border:L.warning};default:return{}}}),[P,C]),S=function(e,t){return o.isKeyLabelPair(e)?e.key:o.extractKey(e,u,t)},A=function(e){return function(){o.isCallableFunction(b)&&b(e)}},W=r.useWjecOneThemeStyles(Uo),F=t.useMemo((function(){return{"--background-color":I.background,"--border-color":I.border,"--flex-direction":"vertical"===x&&"column","--flex-gap":"vertical"===x&&"16px 8px","--margin-top":f&&"4px"}}),[f,x,I]);return n.jsx("label",{css:W.label,id:k,"data-disabled":c||void 0},f,n.jsx("fieldset",{css:W.container,ref:O,style:F},m.map((function(e,r){var i=S(e,r),s=r===m.indexOf(y);return n.jsx(t.Fragment,{key:i},n.jsx("input",{css:W.radioButton,defaultChecked:s,disabled:c,id:"".concat(k,"_").concat(r),name:h||k,onChange:A(e),type:"radio",value:i}),n.jsx("label",{"aria-label":a,css:W.radioButtonContainer,htmlFor:"".concat(k,"_").concat(r)},o.isKeyLabelPair(e)?e.label:o.extractContent(e,g,r)))}))),n.jsx(ln,null,s),n.jsx(On,{status:C},j))},e.ScrollableContainer=ei,e.SecondaryButton=function(e){var t=Object.assign({},(v(e),e)),o=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(xe,m({},t,{activeColor:o.secondary,borderColor:t.disabled?"none":o.secondaryDark,color:"#FFFFFF",focusColor:o.secondaryLight,hoverColor:o.secondaryLight,labelColor:o.secondaryDark,labelColorActive:o.secondaryDark,outlineColor:"#FFFFFF"}))},e.SectionHeading=function(e){var o=e.children,i=e.color,a=e.id,s=t.useRef(),c=r.useWjecOneThemeStyles(Ui);return Se("--border-left-color",i,s),n.jsx("h3",{css:c.sectionHeading,id:a},o)},e.SectionTitle=function(e){var o=e.children,i=e.color,a=e.id,s=t.useRef(),c=r.useWjecOneThemeStyles(Ki);return Se("--color",i,s),n.jsx("h3",{css:c.title,id:a,ref:s},o)},e.Select=function(e){var a=e.gridArea,s=e.highlightColor,c=e.highlighted,l=e.optionComparator,u=e.readonly,d=e.sortOptions,p=e.blankOption,f=e.description,g=e.disabled,h=e.id,b=e.label,m=e.name,v=e.onSelect,x=e.optionKeyExtractor,y=e.optionLabelExtractor,C=e.options,j=e.placeholder,k=e.selectedOption,O=e.status,E=e.statusMessage;!function(e){var t=e.gridArea,n=e.highlightColor,o=e.highlighted,r=e.optionComparator,i=e.readonly,a=e.sortOptions;ve('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]),ve('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!==o}),[o]),ve('WJEC One Select: The "highlightColor" prop has been deprecated due to its association with the deprecated `highlighted` prop',(function(){return void 0!==n}),[n]),ve('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!==r}),[r]),ve('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]),ve('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:a,highlightColor:s,highlighted:c,optionComparator:l,readonly:u,sortOptions:d}),ve("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 C.some((function(t){return!!(lr(t)&&o.isPrimitiveArray(t.options)&&o.containsDuplicates(t.options))||(!!e.has(t)||(e.add(t),!1))}))&&!x}),[x,C]),ue("WJEC One Select: You must specify a keyExtractor if the options array contains non-primitive entry types",(function(){return C.some((function(e){if(lr(e)){var t=e.options,n=o.isPrimitiveArray(t),r=o.isKeyLabelPairArray(t);return!(n||r||x)}return!(o.isPrimitive(e)||o.isKeyLabelPair(e)||x)}))}),[x,C]);var P=w(r.useWjecOneTheme(),1)[0],L=P.brand,I=P.colorPalette,S=t.useRef(),A=i.useId(),W=t.useMemo((function(){return h||A}),[A,h]),F=t.useMemo((function(){return k?cr(k,x,C):""}),[x,C,k]);t.useLayoutEffect((function(){S.current.value=F}),[F]);var T=t.useMemo((function(){switch(O){case"error":return{background:I.errorBackground,border:I.error};case"success":return{background:I.successBackground,border:I.success};case"warning":return{background:I.warningBackground,border:I.warning};default:return{}}}),[L,O]),M=function(e,t){var r=cr(e,x,C);return n.jsx("option",{key:r,value:r},o.isKeyLabelPair(e)?e.label:o.extractContent(e,y,t))},R=r.useWjecOneThemeStyles(sr),B=t.useMemo((function(){return{"--background-color":T.background,"--border-color":T.border,"--margin-top":b&&"4px"}}),[b,T]);return n.jsx("label",{css:R.label,htmlFor:W,"data-disabled":g},b,n.jsx("select",{ref:S,css:R.select,defaultValue:F,disabled:g,id:W,name:m,onChange:function(e){var t=function(e,t,n){var o;return n.find((function(r){if(lr(r))o=r.options.find((function(o){return cr(o,t,n)===e}));else{var i=cr(r,t,n);o=i===e?r:void 0}return void 0!==o})),o}(e.target.value,x,C);o.isCallableFunction(v)&&v(t)},style:B},j&&n.jsx("option",{disabled:!0,hidden:!0,value:""},j),p&&n.jsx("option",{value:""}),C.map((function(e,t){return lr(e)?n.jsx("optgroup",{key:e.label,label:e.label},e.options.map((function(e){return M(e,t)}))):M(e,t)}))),n.jsx(ln,null,f),n.jsx(On,{status:O},E))},e.SigninForm=na,e.SigninMenu=function(e){var o=e.ariaLabel,i=e.id,a=e.onClose,s=e.onOpen,c=e.open,l=void 0!==c&&c,u=x(e,ma),d=w(r.useWjecOneTheme(),1)[0].colorPalette,p=w(t.useState(l),2),f=p[0],g=p[1];t.useEffect((function(){l!==f&&g(l)}),[l]);var h=r.useWjecOneThemeStyles(xa);return n.jsx(jt,{"aria-label":o,id:i,maxHeight:"425px",onHide:a,onShow:s,open:f,padding:"0",toggle:n.jsx(xe,{allowEventPropagation:!0,color:"transparent",icon:function(e){return n.jsx(ba,m({css:h.avatar},e))},id:"signinMenu",labelColor:d.fontLight},n.jsx(F,{css:h.arrow})),width:"276px"},n.jsx(na,u))},e.StylePalette=G,e.SubParagraph=function(e){var o=e.children,i=e.color,a=e.id,s=t.useRef(),c=r.useWjecOneThemeStyles(ya);return Se("--color",i,s),n.jsx("p",{css:c.subParagraph,id:a,ref:s},o)},e.SubTitle=function(e){var t=e.children,o=e.id,i=r.useWjecOneThemeStyles(wa);return n.jsx("h2",{css:i.heading,id:o},t)},e.SuccessCard=function(e){var t=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(gr,m({},e,{borderColor:t.success,icon:nn,iconColor:t.success,titleColor:t.successDark}))},e.SuccessNotification=function(e){var t=e.title,o=void 0===t?"Sucess":t,i=x(e,Mi),a=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(Ci,m({},i,{borderColor:L.success,icon:nn,iconColor:a.success,title:o,titleColor:L.success}))},e.Table=function(e){var i,a=e.cellStyle,s=e.columns,c=e.columnOptions,l=e.data,u=e.keyExtractor,d=e.id,p=e.onClickRow,f=e.onPressRow,g=void 0===f?p:f,h=e.preSorted,b=e.rowOptions,m=e.rowStyle,v=e.selectedRow,x=e.sortable,y=void 0!==x&&x;ve('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!==p}),[p]);var j=t.useRef(),k=w(t.useState(!1),2),O=k[0],E=k[1],P=w(t.useState(),2),L=P[0],I=P[1],S=w(t.useState(),2),A=S[0],W=S[1],F=t.useRef(),T=t.useRef(),M=t.useMemo((function(){return function(e,t){var n=null==t?void 0:t[0];return e instanceof Array?e:e(n)}(s,l)}),[s,l]),R=t.useMemo((function(){return function(e,t,n){var r;return e&&(r=n?o.extractKey(e,n,t):t),r}(v,l.indexOf(v),u)}),[l,u,v]),B=t.useMemo((function(){return M.filter((function(e){var t=e.sortable;return y&&!1!==t||t}))}),[M]),D=t.useMemo((function(){return function(e){var t=e.data,n=e.preSorted,r=e.sortableColumns,i=e.sortedColumn,a=e.sortedColumnDirection,s=C(t);if(!n&&r.length>0&&i){var c=i.sortableValue;s.sort((function(e,n){var r,s=c?o.extractKey(e,c,t.indexOf(e)):Ta(i,e),l=c?o.extractKey(n,c,t.indexOf(n)):Ta(i,n);return void 0===s?1:void 0===l?-1:(null==s||null===(r=s.toString())||void 0===r?void 0:r.localeCompare(null==l?void 0:l.toString()))*("ascending"===a?1:-1)}))}return s}({data:l,preSorted:h,sortableColumns:B,sortedColumn:M[A],sortedColumnDirection:L})}),[M,l,h,B,L,A]);t.useEffect((function(){if(B.length>0||h){var e=M.indexOf(B.find((function(e){return e.sorted}))||B[0]),t=M[e].sorted,n=void 0===t?"ascending":t;!n||n===F.current&&e===T.current||(F.current=n,T.current=e,I(n),W(e))}}),[M,B]),t.useEffect((function(){O&&E(!1)}),[D]);var z=function(e,t){h||(E(!0),setTimeout((function(){t!==A&&W(t),I(e)}),100))},Z=function(e,t){o.isCallableFunction(g)&&g(e,t)},H=r.useWjecOneThemeStyles(Wa);return n.jsx("div",{css:H.container},n.jsx("table",{css:H.table,id:d},n.jsx("thead",{ref:j},n.jsx("tr",null,M.map((function(e,t){var o=null==l?void 0:l[0],r=Ma(c,o).align;return n.jsx(Ha,{key:"table_header_".concat(t),align:r,columnProps:e,index:t,onSort:z,sortable:y,sortedColumnDirection:L,sortedColumnIndex:A,styles:H})})))),n.jsx("tbody",{css:n.css([H.tableBody,O&&H.tableBodySorting])},D.map((function(e,t){var r=u?o.extractKey(e,u,t):t,i=Ma(c,e).align,s=(t>0&&Ma(b,D[t-1])).group;return n.jsx(Ja,{key:r,align:i,cellStyle:a,columns:M,index:t,onPress:Z,previousRowGroup:s,row:e,rowKey:r,rowOptions:b,rowStyle:m,selectedRowKey:R,styles:H})})))),O&&n.jsx("div",{css:n.css([H.loading,{top:null==j||null===(i=j.current)||void 0===i?void 0:i.offsetHeight}])},n.jsx(pe,null)))},e.Tabs=function(e){var i=e.ariaLabel,a=e.backgroundStyle,s=void 0===a?"filled":a,c=e.disabledTabs,l=void 0===c?[]:c,u=e.id,d=e.keyExtractor,p=e.labelExtractor,f=e.onSelect,g=e.scrollable,h=e.selectedTab,b=e.selectedTabColor,v=e.tabs,x=w(t.useState(o.getSelected(h,v)),2),y=x[0],C=x[1],j=t.useRef(),k=r.useWjecOneThemeStyles(Xa),O=t.useMemo((function(){return l.map((function(e){return o.isKeyLabelPair(e)?e.key:o.extractKey(e,d,v.indexOf(e))}))}),[l]),E=t.useMemo((function(){return o.isKeyLabelPair(y)?y.key:o.extractKey(y,d,v.indexOf(y))}),[y]);ue("WJEC-One Tabs: You must specify a keyExtractor if the tabs array contains non-primitive entry types",(function(){return!o.isPrimitiveArray(v)&&!o.isKeyLabelPairArray(v)&&!d}),[d,v]),t.useEffect((function(){void 0!==g&&o.developerWarning('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')}),[g]),t.useEffect((function(){C(o.getSelected(h,v))}),[h,v]),t.useEffect((function(){if(j.current){var e=j.current.querySelector("[data-selected]");e&&e.scrollIntoView({behavior:"smooth"})}}),[j.current,y]);return n.jsx("div",{"aria-label":i,ref:j,css:n.css([k.container,"filled"===s&&k.containerFilled,"transparent"===s&&k.containerTransparent,b&&{"--highlight-color":b}]),id:u},n.jsx("div",{css:k.innerContainer},v.map((function(e,t){var r=(o.isKeyLabelPair(e)?e.key:o.extractKey(e,d,t)).toString(),i=r===E,a=O.includes(r);return n.jsx("button",m({key:r,css:n.css([k.tab,"filled"===s&&k.tabFilled,"transparent"===s&&k.tabTransparent]),disabled:a,onClick:function(t){var n=t.target;return function(e,t){var n=j.current.querySelector("[data-selected]");o.isCallableFunction(f)&&f(e),j.current.style.setProperty("--anim-height","".concat(n.offsetHeight,"px")),j.current.style.setProperty("--anim-left","".concat(n.offsetLeft,"px")),j.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(){j.current.style.setProperty("--anim-duration","".concat(150,"ms")),j.current.style.setProperty("--anim-height","".concat(t.offsetHeight,"px")),j.current.style.setProperty("--anim-left","".concat(t.offsetLeft,"px")),j.current.style.setProperty("--anim-width","".concat(t.offsetWidth,"px")),t.scrollIntoView({behavior:"smooth"}),window.setTimeout((function(){t.removeAttribute("data-animating"),j.current.style.removeProperty("--anim-duration"),j.current.style.removeProperty("--anim-height"),j.current.style.removeProperty("--anim-left"),j.current.style.removeProperty("--anim-width"),C(e)}),150)}))}(e,n)},type:"button"},i?{"data-selected":!0}:null),o.isKeyLabelPair(e)?e.label:o.extractContent(e,p,t))}))))},e.TextArea=function(e){var i=e.ariaDescription,a=e.ariaLabel,s=e.disabled,c=e.gridArea,l=e.height,u=void 0===l?"auto":l,d=e.id,p=e.label,f=e.maxCharacters,g=e.maxHeight,h=void 0===g?"100%":g,b=e.maxWidth,v=void 0===b?"100%":b,x=e.onChange,y=e.placeholder,C=e.readonly,j=e.resizable,k=void 0!==j&&j,O=e.showCount,E=void 0===O||O,P=e.value,L=void 0===P?"":P,I=e.width,S=void 0===I?"100%":I;ve('WJEC One TextArea: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==c}),[c]);var A=w(t.useState(L),2),W=A[0],F=A[1],T=Be(i);t.useEffect((function(){L!==W&&F(L)}),[L]);var M=r.useWjecOneThemeStyles(pr),R=dr({"data-current-value-length":null==W?void 0:W.length},{excludeIfFalse:!0});return n.jsx("label",m({"aria-label":a},R,{css:n.css([M.label,c&&{gridArea:c},E&&n.css("&::after{content:attr(data-current-value-length) '",void 0!==f&&"/".concat(f),"';}"),{maxWidth:v,width:S}]),"data-max-count":f}),p,n.jsx("textarea",m({id:d,css:n.css([G.scrollbar,M.textarea,{height:u,maxHeight:h,resize:k?"both":"none"}]),value:W,placeholder:y,onChange:function(e){var t=e.target.value;F(t),o.isCallableFunction(x)&&x(t)},readOnly:C,disabled:s,maxLength:f},C?{tabIndex:-1}:{},T)))},e.Toggle=function(e){var a=e.gridArea,s=e.offLabel,c=e.onLabel,l=e.ariaLabel,u=e.disabled,d=e.id,p=e.label,f=e.on,g=void 0!==f&&f,h=e.onChange,b=e.value,v=void 0===b?c:b;ve('WJEC One Toggle: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==a}),[a]),ve('WJEC One Toggle: The "offLabel" prop has been deprecated because the latest v4 design has no off label',(function(){return void 0!==s}),[s]),ve('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!==c}),[c]);var x=t.useRef(),y=i.useId(d);t.useLayoutEffect((function(){x.current.setAttribute("aria-pressed",g.toString())}),[g]);var w=r.useWjecOneThemeStyles(fr),C=t.useMemo((function(){return{"--margin-top":p&&"4px","--toggle-margin-right":v&&"8px"}}),[p,v]),j=i.useButton({"aria-label":l,"aria-pressed":g,id:y,isDisabled:u,onPress:function(){var e="true"===x.current.getAttribute("aria-pressed");x.current.setAttribute("aria-pressed",(!e).toString()),o.isCallableFunction(h)&&h(!e)}},x).buttonProps;return n.jsx("label",{css:w.label,htmlFor:y,"data-disabled":u||void 0},p,n.jsx("button",m({},j,{css:w.toggleButton,ref:x,style:C}),v))},e.WarningCard=function(e){var t=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(gr,m({},e,{borderColor:t.warning,icon:sn,iconColor:t.warning,titleColor:t.warningDark}))}}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@emotion/core"),require("./utils"),require("wjec-one-dev-utils/theme"),require("react-aria"),require("react-swipeable"),require("react-dom"),require("react-beautiful-dnd"),require("body-scroll-lock"),require("color")):"function"==typeof define&&define.amd?define(["exports","react","@emotion/core","./utils","wjec-one-dev-utils/theme","react-aria","react-swipeable","react-dom","react-beautiful-dnd","body-scroll-lock","color"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).WJECOne={},e.React,e.emotionCore,e["C:\\Users\\wiseth\\git\\wjec-one\\temp\\utils"],e.WJECOneThemeDevUtils,e["react-aria"],e["react-swipeable"],e.ReactDOM,e["react-beautiful-dnd"],e.bodyScrollLock,e.color)}(this,(function(e,t,n,o,r,i,a,s,c,l,u){"use strict";function d(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var p=d(t);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){return h="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},h(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},m.apply(this,arguments)}function v(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function x(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function y(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function w(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 o,r,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return i}(e,t)||j(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 C(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||j(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 j(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function O(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=j(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}var E,P=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"}),L=Object.freeze(g(g({},P),{},{primary:"#007DB2",primaryDark:"#00628C",primaryDarkActive:"#004766",primaryLight:"#E5F8FF",primaryLightActive:"#CCF1FF"})),I=Object.freeze(g(g({},P),{},{primary:"#F1511B",primaryDark:"#BF3608",primaryDarkActive:"#BF3608",primaryLight:"#FDB8A1",primaryLightActive:"#FDB8A1"}));function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},S.apply(this,arguments)}var A,W=function(e,t){return p.createElement("svg",S({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),E||(E=p.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"})))},F=t.forwardRef(W);function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},T.apply(this,arguments)}var M,R=function(e,t){return p.createElement("svg",T({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),A||(A=p.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"})))},B=t.forwardRef(R);function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},D.apply(this,arguments)}var z,Z=function(e,t){return p.createElement("svg",D({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),M||(M=p.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"})))},H=t.forwardRef(Z);function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},J.apply(this,arguments)}var X=function(e,t){return p.createElement("svg",J({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),z||(z=p.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"})))},N=t.forwardRef(X),G=Object.freeze({borderRadius:"4px",dropShadow:"0px 2px 10px ".concat(L.border),scrollbar:n.css("&::-webkit-scrollbar{height:14px;width:",14,"px;}&::-webkit-scrollbar-button:single-button{display:block;height:16px;&:horizontal{&:decrement{background:",o.svgComponentToDataURL(t.createElement(B,{color:L.fontLight}))," 0 -3px / 20px no-repeat;&:hover{background-image:",o.svgComponentToDataURL(t.createElement(B,{color:L.font})),";}}&:increment{background:",o.svgComponentToDataURL(t.createElement(H,{color:L.fontLight}))," center -3px / 20px no-repeat;&:hover{background-image:",o.svgComponentToDataURL(t.createElement(H,{color:L.font})),";}}}&:vertical{&:decrement{background:",o.svgComponentToDataURL(t.createElement(N,{color:L.fontLight}))," center 0 / 20px no-repeat;&:hover{background-image:",o.svgComponentToDataURL(t.createElement(N,{color:L.font})),";}}&:increment{background:",o.svgComponentToDataURL(t.createElement(F,{color:L.fontLight}))," center -3px / 20px no-repeat;&:hover{background-image:",o.svgComponentToDataURL(t.createElement(F,{color:L.font})),";}}}}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",L.border,";border:3px solid transparent;border-radius:7px;&:hover{background-color:",L.fontLight,";}}&::-webkit-scrollbar-track{background-clip:padding-box;background-color:",L.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;"}}),V={name:"1bhjuxx",styles:"box-sizing:border-box;&::after,&::before,& *,& *::after,& *::before{box-sizing:inherit;}"},Y=n.css("&::selection{background-color:",L.highlight,";}"),q=n.css("color:",L.neutralDark,";font-family:'Montserrat',sans-serif;font-size:14px;font-weight:400;line-height:16px;"),U={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},K=function(e){var i=e.children,a=e.expanded,s=void 0!==a&&a,c=e.id,l=e.onClick,u=e.spacing,d=void 0===u?"normal":u,p=e.title,f=w(t.useState(s?"auto":0),2),g=f[0],h=f[1],b=w(t.useState(s),2),m=b[0],v=b[1],x=w(t.useState(i),2),y=x[0],C=x[1],j=w(t.useState("small"===d?10:20),2),k=j[0],O=j[1],E=t.useRef(),P=t.useRef();t.useEffect((function(){h(S())}),[E.current&&E.current.clientHeight,y,k]),t.useEffect((function(){s!==m&&(s?I():L())}),[s]),t.useEffect((function(){i!==y&&C(i)}),[i]),t.useEffect((function(){O("small"===d?10:20)}),[d]),t.useLayoutEffect((function(){h(S())}),[y]);var L=function(){v(!1),o.isCallableFunction(l)&&l(!1)},I=function(){h(S()),v(!0),o.isCallableFunction(l)&&l(!0)},S=function(){return P.current.scrollHeight+k},A=r.useWjecOneThemeStyles(ne);return n.jsx("div",{ref:E,css:n.css([A.container,m&&A.containerExpanded]),"data-accordion-container":!0,id:c},n.jsx("button",{type:"button",css:n.css([A.button,"small"===d&&A.buttonSpacingSmall,m&&A.buttonExpanded]),onClick:function(){!m?I():L()}},p),n.jsx("div",{css:n.css([A.content,m?A.contentExpanded:A.contentCollapsed,{height:m?g:0,opacity:m?1:0,paddingBottom:m?"".concat(k,"px"):0}])},n.jsx("div",{ref:P,"data-accordion-content":!0},i)))};K.displayName="AccordionContent";var _={name:"a30to4",styles:"&::after{transform:rotate(180deg) translateY(50%);}"},Q={name:"2bszaw",styles:"&::before{width:100%;}"},$={name:"1hx1c9u",styles:"padding:0 40px 20px 10px;overflow:hidden;"},ee={name:"1l1yfwv",styles:"transition:height 0.2s linear 0.05s,opacity 0.1s linear,padding-bottom 0.2s linear 0.05s;"},te={name:"16eciko",styles:"transition:height 0.2s linear,opacity 0.1s linear 0.15s,padding-bottom 0.2s linear;"},ne=function(e){var t=e.colorPalette;return{button:n.css("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:",o.svgComponentToDataURL(n.jsx(F,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:_,buttonSpacingSmall:n.css("padding:",10,"px;"),container:n.css(V,";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:Q,content:$,contentCollapsed:ee,contentExpanded:te}},oe=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}))},re=function(e){var r=e.children,i=e.exclusive,a=e.id,s=e.spacing,c=void 0===s?"normal":s,l=w(t.useState(oe(r)),2),u=l[0],d=l[1];t.useEffect((function(){!function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=0,r=!1;if(t.Children.forEach(e,(function(e){e.props.expanded&&o++,("object"!==h(e)||"AccordionContent"!==e.type.name&&"AccordionContent"!==e.type.displayName)&&(r=!0)})),n&&o>1)throw new Error('Accordion with "exclusive" flag can only have one expanded content section');if(r)throw new Error("Accordion content must be wrapped in an Accordion.Content component")}(r,i)}),[r,i]),t.useEffect((function(){d((function(e){return oe(r,e)}))}),[r]);var p=function(e,t){return function(n){d((function(t){var o=i&&n?Array(t.length).fill(!1):C(t);return o[e]=n,o})),o.isCallableFunction(t)&&t(n)}};return n.jsx("div",{id:a,css:se},t.Children.map(r,(function(e,n){return t.cloneElement(e,{expanded:u[n],onClick:p(n,e.props.onClick),spacing:e.props.spacing||c})})))};re.Content=K;var ie,ae,se=n.css(V,";width:100%;"),ce={name:"1azkibq",styles:"font-family:'Montserrat',sans-serif;font-size:12px;list-style:none;margin:0;padding:0;"},le=function(e){var t=e.colorPalette;return{breadCrumb:n.css("color:",t.fontLight,";font-size:14px;line-height:20px;text-decoration:none;&:hover{cursor:pointer;text-decoration:underline;}"),currentPage:n.css("color:",t.font,";display:inline-flex;font-size:14px;text-decoration:none;"),list:ce,listItem:n.css("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:",o.svgComponentToDataURL(n.jsx(B,{color:t.fontLight})),";content:'';margin-right:10px;}&:not(:last-of-type)::after{background-image:",o.svgComponentToDataURL(n.jsx(H,{color:t.fontLight})),";content:'';margin:0 10px;}")}},ue=function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t.useEffect((function(){if(n())throw new Error(e)}),o)},de=126,pe=function(e){var o=e.color,i=e.id,a=e.progress,s=void 0===a,c=t.useMemo((function(){return a&&de-Math.min(Math.max(a,0),100)/100*de}),[a]),l=r.useWjecOneThemeStyles(me);return n.jsx("div",{css:n.css([l.container,s?l.containerIndeterminate:l.containerStatic]),id:i},n.jsx("svg",{"aria-label":"loading",css:l.svgContainer,style:{"--color":o},viewBox:"22 22 44 44"},n.jsx("circle",{css:n.css([l.circle,s?l.circleIndeterminate:l.circleStatic]),cx:"44",cy:"44",fill:"none",r:"20.2",strokeWidth:"3.6",style:{"--dashoffset":c}})))},fe=n.keyframes(ie||(ie=y(["\n 100% { transform: rotate(360deg); }\n"]))),ge=n.keyframes(ae||(ae=y(["\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"]))),he={name:"1uu7u3w",styles:"height:20px;width:20px;"},be={name:"4dsd3s",styles:"transform:rotate(-90deg);"},me=function(e){var t=e.colorPalette;return{circle:n.css("--dashoffset:",de,";stroke:currentColor;stroke-dasharray:80px,200px;stroke-dashoffset:var(--dashoffset);"),circleIndeterminate:n.css("animation:",ge," 1.4s ease-in-out infinite;"),circleStatic:n.css("stroke-dasharray:",de,"px;transition:stroke-dashoffset 0.3s ease-out;"),container:he,containerIndeterminate:n.css("animation:",fe," 1.4s linear infinite;"),containerStatic:be,svgContainer:n.css("--color:",t.secondary,";color:var(--color);")}},ve=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t.useEffect((function(){n()&&o.developerWarning(e)}),r)},xe=function(e){var a=e.buttonStyle,s=void 0===a?"filled":a,c=e.iconSize,l=void 0===c?"normal":c,u=e.loadingColor,d=e.onClick,p=e.showOutline,f=e.activeColor,g=e.allowEventPropagation,h=void 0!==g&&g,b=e.ariaLabel,v=e.borderColor,x=e.buttonType,y=void 0===x?"button":x,C=e.color,j=e.children,k=e.disabled,O=e.focusColor,E=e.hoverColor,P=e.icon,L=e.iconColor,I=e.iconColorActive,S=e.iconPosition,A=void 0===S?"left":S,W=e.id,F=e.label,T=e.labelColor,M=e.labelColorActive,R=e.loading,B=e.loadingProgress,D=e.onPress,z=void 0===D?d:D,Z=e.outlineColor,H=e.size,J=void 0===H?"normal":H;!function(e){var t=e.buttonStyle,n=e.iconSize,o=e.loadingColor,r=e.onClick,i=e.showOutline;ve('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]),ve('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]),ve('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!==o}),[o]),ve('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!==r}),[r]),ve('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:s,iconSize:l,loadingColor:u,onClick:d,showOutline:p}),ue("WJEC One Button: Icon must be a valid SVGComponent",(function(){return P&&!o.isSvgComponent(t.createElement(P))}),[P]),ue("WJEC One Button: A Button must have a label and/or icon",(function(){return!j&&!P&&!F}),[j,P,F]);var X=t.useRef(),N=w(r.useWjecOneTheme(),1)[0].colorPalette,G={"--active-background-color":f,"--background-color":C,"--border-color":v,"--focus-background-color":O,"--hover-background-color":E,"--icon-color":L,"--icon-color-active":I,"--label-color":T,"--label-color-active":M,"--outline-color":Z,"--padding":"large"===J?"8px 24px":"small"===J?"2px 8px":void 0},V=r.useWjecOneThemeStyles(ke),Y=function(){var e=P;return n.jsx(e,{css:n.css([V.icon,(F||j)&&P&&("left"===A?V.iconLeft:V.iconRight)])})},q=i.useButton({id:W,isDisabled:k,onPress:z,type:y},X).buttonProps;return n.jsx("button",m({"aria-label":b},q,{ref:X,css:V.button,onClick:function(e){h||e.stopPropagation()},style:G,"data-loading":R||void 0}),P&&"left"===A&&Y(),F||j,P&&"right"===A&&Y(),R&&n.jsx("div",{css:V.loading},n.jsx(pe,{color:T||N.neutralDark,progress:B})))},ye={name:"18kopw8",styles:"color:var(--icon-color);flex-shrink:0;height:24px;opacity:0.6;transition:inherit;width:24px;"},we={name:"15ro776",styles:"margin-right:4px;"},Ce={name:"15fzge",styles:"margin-left:4px;"},je={name:"c524f5",styles:"left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);"},ke=function(e){var t=e.colorPalette;return{button:n.css("--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);",V,";align-items:center;background-color:var(--background-color);border:1px solid var(--border-color);border-radius:",G.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:ye,iconLeft:we,iconRight:Ce,loading:je}},Oe=function(e){var t=Object.assign({},(v(e),e)),o=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(xe,m({},t,{activeColor:o.errorDarker,color:o.error,hoverColor:o.errorDark,iconColor:"#FFFFFF",labelColor:"#FFFFFF",outlineColor:"#FFFFFF"}))},Ee=["loading"],Pe=function(e){var t=e.loading,o=x(e,Ee),i=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(xe,m({},o,{color:t?i.neutral:"transparent",loading:t}))},Le=["loading"],Ie=function(e){var t=Object.assign({},(v(e),e)),o=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(xe,m({},t,{activeColor:o.primaryDarkActive,color:o.primary,hoverColor:o.primaryDark,iconColor:"#FFFFFF",labelColor:"#FFFFFF",outlineColor:"#FFFFFF"}))},Se=function(e,n,o){var r=t.useRef(!1);t.useLayoutEffect((function(){var t,i,a,s;null!=n?null==o||null===(t=o.current)||void 0===t||null===(i=t.style)||void 0===i||i.setProperty(e,n.toString()):null==o||null===(a=o.current)||void 0===a||null===(s=a.style)||void 0===s||s.removeProperty(e);null!=o&&o.current&&(r.current=!0)}),[!r.current&&Date.now(),e,null==o?void 0:o.current,n])};const Ae="undefined"!=typeof window?t.useLayoutEffect:()=>{};let We=new Map,Fe=new Set;function Te(){if("undefined"==typeof window)return;let e=t=>{let n=We.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),We.delete(t.target)),0===We.size)){for(let e of Fe)e();Fe.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=We.get(t.target);n||(n=new Set,We.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}"undefined"!=typeof document&&("loading"!==document.readyState?Te():document.addEventListener("DOMContentLoaded",Te));let Me=0;const Re=new Map;function Be(e){let[n,o]=t.useState(void 0);return Ae((()=>{if(!e)return;let t=Re.get(e);if(t)o(t.element.id);else{let n="react-aria-description-"+Me++;o(n);let r=document.createElement("div");r.id=n,r.style.display="none",r.textContent=e,document.body.appendChild(r),t={refCount:0,element:r},Re.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),Re.delete(e))}}),[e]),{"aria-describedby":e?n:void 0}}var De,ze={cardMain:n.css("--border-color:none;--padding:30px 30px;background-color:#ffffff;border:1px solid var(--border-color);border-radius:",G.borderRadius,";box-shadow:",G.dropShadow,";padding:var(--padding);position:relative;")},Ze={name:"fup5xt",styles:"align-items:center;display:flex;justify-content:space-between;margin:30px 30px 0;"},He={name:"hv8m74",styles:"display:flex;justify-content:center;list-style:none;margin:0;padding:0;width:100%;"},Je={name:"1fyoaf7",styles:"display:inline-block;flex-shrink:0;height:100%;width:100%;"},Xe={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;}"},Ne=function(e){var t=e.colorPalette;return{container:n.css(V,";display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%;"),controls:Ze,dot:n.css("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:n.css("&::before{background-color:",t.secondary,";border-color:",t.secondary,";}"),dots:He,navigationButton:n.css("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:n.css("color:",t.fontLight,";height:15px;"),slide:Je,slides:Xe}};function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ge.apply(this,arguments)}var Ve,Ye=function(e,t){return p.createElement("svg",Ge({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),De||(De=p.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"})))},qe=t.forwardRef(Ye);function Ue(){return Ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ue.apply(this,arguments)}var Ke,_e,Qe,$e=function(e,t){return p.createElement("svg",Ue({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ve||(Ve=p.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"})))},et=t.forwardRef($e),tt=function(e){var t=e.direction,o=e.disabled,i=e.onClick,a=r.useWjecOneThemeStyles(Ne);return n.jsx("button",{css:a.navigationButton,disabled:o,onClick:i,type:"button"},"next"===t?n.jsx(et,{css:a.navigationIcon}):n.jsx(qe,{css:a.navigationIcon}))},nt=function(e){var t=e.active,o=e.onClick,i=r.useWjecOneThemeStyles(Ne);return n.jsx("li",{css:n.css([i.dot,t&&i.dotActive]),onClick:o})},ot=function(e,t){return(e+1)%t},rt=function(e,t){return(e+t-1)%t},it=function(e,t,n){var o=n-t+Math.floor((n-1)/2)+e;return o>n-1?o%n:o},at=function(e,t,n){var o=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(o,"px"))},st=t.forwardRef((function(e,i){var s=e.buffer,c=void 0===s?1:s,l=e.children,u=e.id,d=e.infinite,p=e.onChange,f=e.showNavigationButtons,g=void 0===f||f,h=e.showNavigationDots,b=void 0===h||h,v=e.simulateMouseSwipe,x=e.slideIndex,y=void 0===x?0:x,C=e.slideTransitionDuration,j=void 0===C?200:C,k=t.useRef(),O=t.useRef(),E=w(t.useState(y),2),P=E[0],L=E[1],I=t.useMemo((function(){return d?c:0}),[c,d]),S=t.useMemo((function(){return t.Children.toArray(l)}),[l]),A=t.useMemo((function(){return S.length}),[S]),W=t.useMemo((function(){return A>0&&(g||b)}),[g,b,A]),F=t.useMemo((function(){var e=Object.keys(S).map((function(e){return parseInt(e)}));return d&&e.sort((function(e,t){return it(e,P,A)-it(t,P,A)})),e}),[P,S,d,A]);t.useLayoutEffect((function(){A>0&&at(F.indexOf(P),I,null==O?void 0:O.current)}),[P,I,A,F]),t.useEffect((function(){var e,t=Math.max(0,Math.min(A-1,y));null!=O&&null!==(e=O.current)&&void 0!==e&&e.hasAttribute("data-animating")||t===P||R(t)}),[y]),t.useEffect((function(){var e=k.current.offsetHeight,t=k.current.offsetWidth,n=new ResizeObserver((function(n){var o=w(n,1)[0].contentRect,r=o.height,i=o.width;r===e&&i===t||(e=r,t=i,at(F.indexOf(P),I,null==O?void 0:O.current))}));return n.observe(k.current),function(){n.disconnect()}}),[P,I,F]);var T=o.throttle((function(){if(d||P<A-1){var e=ot(P,A);R(e)}}),{limit:j+1}),M=o.throttle((function(){if(d||P>0){var e=rt(P,A);R(e)}}),{limit:j+1}),R=function(e){if(e!==P){var t=function(){O.current.removeAttribute("data-animating"),O.current.removeAttribute("data-swiping"),L(e),o.isCallableFunction(p)&&p(e)};j>0?(O.current.setAttribute("data-animating","true"),O.current.addEventListener("transitionend",t,{once:!0}),at(F.indexOf(e),I,null==O?void 0:O.current)):t()}};t.useImperativeHandle(i,(function(){return{goToNextSlide:T,goToPreviousSlide:M,goToSlide:R}}));var B=function(e){for(var n=[],o="before"===e?F[0]:F[A-1],r=0;r<I;r++)"before"===e&&(o=rt(o,A),n.unshift(o)),"after"===e&&(o=ot(o,A),n.push(o));return n.map((function(n){return t.cloneElement(S[n],{key:"buffer_".concat(e,"_").concat(n)})}))},D=a.useSwipeable({onSwiped:function(e){var t,n=e.deltaX,o=e.dir;if(O.current.hasAttribute("data-swiping")){var r=(t=F.indexOf(P)+I,(null==O?void 0:O.current).children[t].offsetWidth/3);Math.abs(n)>=r?"Left"===o?T():M():O.current.removeAttribute("data-swiping")}},onSwiping:function(e){var t=e.velocity;!O.current.hasAttribute("data-swiping")&&t>.33&&O.current.setAttribute("data-swiping","true")},trackMouse:v}),z=r.useWjecOneThemeStyles(Ne);return Se("--transition-duration","".concat(j,"ms"),O),n.jsx("div",{ref:k,css:z.container,id:u,"data-carousel-container":!0},n.jsx("div",m({},D,{ref:function(e){O.current=e,D.ref(e)},css:z.slides,"data-carousel-slides-container":!0}),B("before"),F.map((function(e){return S[e]})),B("after")),W&&n.jsx("div",{css:z.controls},g&&n.jsx(tt,{direction:"previous",disabled:0===P&&!d,onClick:M}),b&&n.jsx("ol",{css:z.dots},S.map((function(e,t){return n.jsx(nt,{key:"slide_".concat(t),active:t===P,onClick:function(){return R(t)}})}))),g&&n.jsx(tt,{direction:"next",disabled:P===A-1&&!d,onClick:T})))}));function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ct.apply(this,arguments)}var lt,ut=function(e,t){return p.createElement("svg",ct({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ke||(Ke=p.createElement("path",{d:"M9.167 15h1.666v-1.667H9.167V15Z",fill:"currentColor"})),_e||(_e=p.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"})),Qe||(Qe=p.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"})))},dt=t.forwardRef(ut),pt={name:"115actz",styles:"display:inline-flex;position:relative;"},ft={name:"1ixbp0l",styles:"pointer-events:none;"},gt={name:"13v3rg8",styles:"overflow-y:auto;"},ht={name:"17ju33v",styles:"--cursor:pointer;cursor:var(--cursor);display:inline-flex;"},bt=function(e){var t=e.colorPalette;return{container:pt,popup:n.css("--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:n.css("--translate-x:0;--translate-y:0;",V,";",G.scrollbar,";background-color:var(--background-color);border-radius:",G.borderRadius,";box-shadow:",G.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:ft,popupContentScrollable:gt,toggle:ht,toggleString:n.css("border-bottom:2px dotted ",t.secondary,";")}},mt=function(e,t,n,o,r){var i;if("bottom"===e){var a=o.clientHeight-(n.top+t.offsetHeight);i="floating"===r?a:a+(o.scrollTop+o.offsetTop)}if("left"===e&&(i="floating"===r?n.left:n.left-o.scrollLeft-o.offsetLeft),"right"===e){var s=o.clientWidth-(n.left+t.offsetWidth);i="floating"===r?s:s+(o.scrollLeft+o.offsetLeft)}return"top"===e&&(i="floating"===r?n.top:n.top-o.scrollTop-o.offsetTop),i},vt=function(e){var t=window.getComputedStyle(e);return{bottom:parseInt(t.marginBottom),left:parseInt(t.marginLeft),right:parseInt(t.marginRight),top:parseInt(t.marginTop)}},xt=function(e,t){var n;if("sibling"===t)n={left:e.offsetLeft,top:e.offsetTop};else{var o=e.getBoundingClientRect();n={left:Math.floor(o.left),top:Math.floor(o.top)}}return n},yt=function(e,t,n,r){if(e&&t){var i=0,a=0,s=r.startsWith("bottom")||r.startsWith("top")?"vertical":"horizontal",c={height:e.offsetHeight,width:e.offsetWidth},l=o.findScrollableParent(e),u={height:t.offsetHeight,width:t.offsetWidth},d=xt(t,n),p=vt(e),f=p.bottom,g=p.left,h=p.right,b=p.top;"horizontal"===s&&(a=d.top+u.height/2-c.height/2-b,r.startsWith("left")&&(i=d.left-c.width-g-h),r.startsWith("right")&&(i=d.left+u.width),r.endsWith("-end")&&(a=d.top+u.height-c.height-b),r.endsWith("-start")&&(a=d.top-b)),"vertical"===s&&(i=d.left+u.width/2-c.width/2-g,r.startsWith("bottom")&&(a=d.top+u.height),r.startsWith("top")&&(a=d.top-c.height-f-b),r.endsWith("-end")&&(i=d.left+u.width-c.width-g),r.endsWith("-start")&&(i=d.left-g)),"floating"===n&&(i+=l.scrollLeft,a+=l.scrollTop),e.style.setProperty("--position-x","".concat(i,"px")),e.style.setProperty("--position-y","".concat(a,"px"))}},wt=function(e,n,r,i,a,s){var c=t.useMemo((function(){return"sibling"===r&&null!=n&&n.current?o.findScrollableParent(n.current):null}),[r,null==n?void 0:n.current]);t.useEffect((function(){var t,l;a&&(t=new IntersectionObserver((function(t){t.forEach((function(t){var a,c=t.isIntersecting,l=t.target;l===(null==e?void 0:e.current)&&c&&function(e,t,n,r){var i=r.startsWith("bottom")||r.startsWith("top")?"vertical":"horizontal",a=o.findScrollableParent(e),s=xt(t.parentElement,n),c=0,l=0,u=vt(e),d=u.bottom,p=u.left,f=u.right,g=u.top;if("horizontal"===i){var h=mt("left",t,s,a,n),b=mt("right",t,s,a,n),m=h<e.offsetWidth+f,v=b<e.offsetWidth+p;(r.startsWith("left")&&m&&!v||r.startsWith("right")&&v&&!m)&&(c=(t.offsetWidth+e.offsetWidth+p+f)*(r.startsWith("left")?1:-1)),e.firstElementChild.style.setProperty("--translate-x","".concat(c,"px"))}if("vertical"===i){var x=mt("top",t,s,a,n),y=mt("bottom",t,s,a,n),w=x<e.offsetHeight+d,C=y<e.offsetHeight+g;(r.startsWith("bottom")&&C&&!w||r.startsWith("top")&&w&&!C)&&(l=(t.offsetHeight+e.offsetHeight+g+d)*(r.startsWith("top")?1:-1)),e.firstElementChild.style.setProperty("--translate-y","".concat(l,"px"))}}(null==e?void 0:e.current,null==n?void 0:n.current,r,i),l!==(null==e||null===(a=e.current)||void 0===a?void 0:a.firstElementChild)||c||s()}))}),{root:c,threshold:[0,1]}),t.observe(e.current),t.observe(null==e||null===(l=e.current)||void 0===l?void 0:l.firstElementChild));return function(){t&&t.disconnect()}}),[r,a,i,c])},Ct=function(e){var i=e.attachment,a=e.backgroundColor,c=e.children,l=e.margin,u=e.maxHeight,d=e.maxWidth,p=e.onOutOfView,f=e.open,g=e.padding,h=e.placement,b=e.scrollable,m=e.setPopupRef,v=e.textColor,x=e.toggleRef,y=e.trigger,C=t.useRef(),j=w(t.useState(f),2),k=j[0],O=j[1];!function(e,n,o,r,i){t.useLayoutEffect((function(){i&&yt(null==e?void 0:e.current,null==n?void 0:n.current,o,r)}),[o,i,r,null==e?void 0:e.current])}(C,x,i,h,f),wt(C,x,i,h,f,p),function(e,n,o,r,i){var a=t.useRef(!1);t.useEffect((function(){var t,s,c,l,u,d=function(){yt(null==e?void 0:e.current,null==n?void 0:n.current,o,r)};if(i){if(!a.current){var p=n.current.getBoundingClientRect(),f=p.height,g=p.left,h=p.top,b=p.width;s=f,c=g,l=h,u=b,a.current=!0}"floating"===o&&window.addEventListener("resize",d),t=new ResizeObserver((function(t){var i=w(t,1)[0].contentRect,a=i.height,d=i.left,p=i.top,f=i.width;a===s&&d===c&&p===l&&f===u||(yt(null==e?void 0:e.current,null==n?void 0:n.current,o,r),s=a,c=d,l=p,u=f)})),t.observe(null==n?void 0:n.current)}return function(){window.removeEventListener("resize",d),t&&t.disconnect()}}),[o,i,r])}(C,x,i,h,f),function(e,n,r,i){t.useEffect((function(){var t,a,s,c=0,l=0,u=function(t){var n,o,r,i,a,s,u,d,p=t.target,f=p.scrollLeft,g=p.scrollTop,h=c-f,b=l-g,m=parseInt(null==e||null===(n=e.current)||void 0===n||null===(o=n.style)||void 0===o?void 0:o.getPropertyValue("--position-x")),v=parseInt(null==e||null===(r=e.current)||void 0===r||null===(i=r.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(m+h,"px")),null==e||null===(u=e.current)||void 0===u||null===(d=u.style)||void 0===d||d.setProperty("--position-y","".concat(v+b,"px")),c=f,l=g};return i&&"floating"===r&&(t=o.findScrollableParent(null==n?void 0:n.current),c=null===(a=t)||void 0===a?void 0:a.scrollLeft,l=null===(s=t)||void 0===s?void 0:s.scrollTop,t!==document.documentElement&&t.addEventListener("scroll",u)),function(){t&&t.removeEventListener("scroll",u)}}),[r,i])}(C,x,i,f),t.useEffect((function(){var e,t,n,o,r,i=function(){O(!1)};f?(O(!0),null==C||null===(e=C.current)||void 0===e||null===(t=e.style)||void 0===t||t.setProperty("opacity","1")):(null==C||null===(n=C.current)||void 0===n||n.addEventListener("transitionend",i,{once:!0}),null==C||null===(o=C.current)||void 0===o||null===(r=o.style)||void 0===r||r.removeProperty("opacity"));return function(){var e;null==C||null===(e=C.current)||void 0===e||e.removeEventListener("transitionend",i)}}),[f]);var E=r.useWjecOneThemeStyles(bt);Se("--background-color",a,C),Se("--color",v,C),Se("--margin",l,C),Se("--max-height",u,C),Se("--max-width",d,C),Se("--padding",g,C);var P=n.jsx("div",{ref:function(e){C.current=e,m(e)},css:E.popup},n.jsx("div",{css:n.css([E.popupContent,b&&E.popupContentScrollable,"hover"===y&&E.popupOnHover])},c));return(f||k)&&("sibling"===i?P:s.createPortal(P,document.body))},jt=function(e){var i=e.ariaDescription,a=e.ariaLabel,s=e.attachment,c=void 0===s?"sibling":s,l=e.backgroundColor,u=e.children,d=e.closeDelay,p=void 0===d?0:d,f=e.closeOnClickOutside,g=void 0===f||f,h=e.closeOnOutOfView,b=void 0!==h&&h,v=e.gapSize,x=e.id,y=e.margin,C=void 0===y?v:y,j=e.maxHeight,k=e.maxWidth,O=e.onHide,E=e.onShow,P=e.open,L=void 0!==P&&P,I=e.openDelay,S=void 0===I?0:I,A=e.padding,W=e.placement,F=void 0===W?"bottom":W,T=e.popupPositionX,M=void 0===T?"right":T,R=e.popupPositionY,B=void 0===R?"below":R,D=e.position,z=void 0===D?{left:"auto",top:"auto"}:D,Z=e.positionType,H=void 0===Z?"relative":Z,J=e.scrollable,X=void 0===J||J,N=e.setRef,G=e.textColor,V=e.toggle,Y=e.toggleCursor,q=e.trigger,U=void 0===q?"press":q,K=e.width;!function(e,t,n,o,r,i,a,s){ve('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]),ve('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]),ve('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]),ve('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(o)}),[o]),ve('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"!==r}),[r]),ve('WJEC One Popup: The "setRef" prop has been deprecated as it is no longer required internally',(function(){return void 0!==i}),[i]),ve('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]),ve('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"!==s}),[s])}(v,M,B,z,H,N,U,void 0===K?"auto":K);var _=t.useRef(),Q=t.useRef(),$=t.useRef(),ee=w(t.useState(L),2),te=ee[0],ne=ee[1],oe=t.useRef(),re=t.useRef(),ie=Be(i),ae=t.useMemo((function(){return"right"!==M||"below"!==B?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"}}(M,B):F}),[F,M,B]);t.useEffect((function(){L&&!te&&le(),!L&&te&&ce()}),[L]),t.useEffect((function(){return"hover"!==U&&g&&te&&g&&window.addEventListener("click",se),function(){window.removeEventListener("click",se)}}),[g,te,U]);var se=function(e){var t=e.target;t===_.current||_.current.contains(t)||Q.current.contains(t)||ce()},ce=function(){window.clearTimeout(re.current),te&&(oe.current=window.setTimeout((function(){ne(!1),o.isCallableFunction(O)&&O()}),p))},le=function(){window.clearTimeout(oe.current),te||(re.current=window.setTimeout((function(){o.isCallableFunction(E)&&E(),ne(!0)}),S))},ue=r.useWjecOneThemeStyles(bt);return Se("--cursor",Y,_),n.jsx("div",m({"aria-label":a,ref:_,css:ue.container,id:x},ie),n.jsx("span",{ref:$,css:n.css([ue.toggle,"string"==typeof V&&ue.toggleString]),onClick:"click"===U||"press"===U?function(){te?ce():le()}:null,onMouseEnter:"hover"===U?le:null,onMouseLeave:"hover"===U?ce:null},V),n.jsx(Ct,{attachment:c,backgroundColor:l,margin:C,maxHeight:j,maxWidth:k,onOutOfView:function(){return b&&ne(!1)},open:te,padding:A,placement:ae,scrollable:X,setPopupRef:function(e){return Q.current=e},textColor:G,toggleRef:$,trigger:U},u))},kt=["ariaDescription","ariaLabel","children","id","toggle"],Ot={defaultToggle:{name:"1pg8bi",styles:"height:20px;"}};function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Et.apply(this,arguments)}var Pt,Lt,It=function(e,t){return p.createElement("svg",Et({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),lt||(lt=p.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"})))},St=t.forwardRef(It),At=function(e){var o=e.children,i=e.color,a=e.id,s=t.useRef(),c=r.useWjecOneThemeStyles(Wt);return Se("--color",i,s),n.jsx("span",{css:c.emphasis,id:a,ref:s},o)},Wt=function(e){var t=e.colorPalette;return{emphasis:n.css("--color:",t.neutralDark,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:16px;font-weight:700;line-height:24px;")}},Ft=function(e){var o=e.children,i=e.color,a=e.id,s=t.useRef(),c=r.useWjecOneThemeStyles(Tt);return Se("--color",i,s),n.jsx("p",{css:c.paragraph,id:a,ref:s},o)},Tt=function(e){var t=e.colorPalette;return{paragraph:n.css("--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;')}},Mt=["description","options","title","toggle"],Rt=function(e){return e&&e.length&&Object.hasOwn(e[0],"label")},Bt=function(e){var i=e.description,a=e.options,s=e.title,c=e.toggle,l=void 0===c?n.jsx(Pe,{allowEventPropagation:!0,icon:St}):c,u=x(e,Mt),d=w(r.useWjecOneTheme(),1)[0].colorPalette;t.useEffect((function(){return function(e){var n=Rt(e)?e:e.reduce((function(e,t){var n=t.sectionOptions;return[].concat(C(e),C(n))}),[]);n.some((function(e){var n=e.icon,r=e.label;if(n&&!o.isSvgComponent(t.createElement(n)))throw new Error('Icon for option "'.concat(r,'" must be a valid SVGComponent'))}))}(a)}),[a]);var p=function(e){return function(){o.isCallableFunction(e.onClick)&&e.onClick()}},f=r.useWjecOneThemeStyles(Ht),g=function(e){var t=e.additionalInfo,o=e.label,r=e.icon;return n.jsx("li",{key:o.toString(),css:f.menuItem,onClick:p(e)},r&&n.jsx(r,{css:f.menuItemIcon}),n.jsx("span",{css:f.menuItemLabel},o),t&&n.jsx("span",{css:"string"==typeof t?f.menuItemInfo:f.menuItemAction},t))};return n.jsx(jt,m({},u,{padding:0,popupPositionX:"right",popupPositionY:"below",toggle:l}),(s||i)&&n.jsx("header",{css:f.header},s&&n.jsx(At,null,s),i&&n.jsx(Ft,{color:d.fontLight},i)),n.jsx("ul",{css:n.css([V,G.scrollbar,f.menu])},a&&a.length&&(Rt(a)?a.map(g):a.map((function(e,t){var o=e.sectionTitle,r=e.sectionOptions;return n.jsx("li",{key:"section_".concat(o&&o.replace(/\s/g,"_")||t),css:f.section},o&&n.jsx("h4",{css:f.sectionTitle},o),n.jsx("ul",{css:n.css([f.subMenu,!o&&f.subMenuWithoutTitle])},r.map(g)))})))))},Dt=10,zt={name:"jvw5bw",styles:"margin-right:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},Zt={name:"1dacand",styles:"padding-top:0;"},Ht=function(e){var t=e.colorPalette;return{header:n.css("border-bottom:1px solid ",t.border,";margin:",Dt,"px;margin-bottom:0;min-width:250px;"),menu:n.css("font-family:'Montserrat',sans-serif;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:",Dt,"px;"),menuItem:n.css("align-items:center;border-radius:",G.borderRadius,";color:",t.font,";cursor:pointer;display:flex;font-size:14px;line-height:20px;padding:",5,"px ",Dt,"px;&:hover{background-color:",t.neutral,";& > svg{color:",t.secondary,";}}&:not(:last-child){margin-bottom:",5,"px;}"),menuItemAction:n.css("display:inline-flex;margin-left:",20,"px;pointer-events:none;"),menuItemIcon:n.css("color:",t.fontLight,";flex-shrink:0;height:20px;margin-right:",Dt,"px;"),menuItemInfo:n.css("color:",t.fontLight,";font-size:11px;line-height:20px;margin-left:",20,"px;"),menuItemLabel:zt,section:n.css("margin:0 -",Dt,"px;&:last-child{margin-bottom:-",Dt,"px;}&:not(:last-child){border-bottom:1px solid ",t.border,";margin-bottom:",Dt,"px;}"),sectionTitle:n.css("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:n.css("list-style:none;padding:",Dt,"px;"),subMenuWithoutTitle:Zt}},Jt={name:"ehba41",styles:"cursor:grab;"},Xt={name:"m2aufq",styles:"cursor:grabbing;"},Nt={name:"79elbk",styles:"position:relative;"},Gt={name:"9y6172",styles:"user-select:none;"},Vt=function(e){var t=e.colorPalette;return{handle:Jt,handleGrabbing:Xt,item:Nt,list:n.css(V,";list-style:none;margin:0;padding:0;position:relative;"),listDragging:Gt,placeholder:n.css("border:2px dashed ",t.secondary,";border-radius:",G.borderRadius,";position:absolute;")}};function Yt(){return Yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Yt.apply(this,arguments)}var qt,Ut,Kt=function(e,t){return p.createElement("svg",Yt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Pt||(Pt=p.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"})),Lt||(Lt=p.createElement("path",{d:"M12 8v4m0 4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},_t=t.forwardRef(Kt);function Qt(){return Qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Qt.apply(this,arguments)}var $t,en,tn=function(e,t){return p.createElement("svg",Qt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),qt||(qt=p.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"})),Ut||(Ut=p.createElement("path",{d:"m7.5 12 3 3 6-6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},nn=t.forwardRef(tn);function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},on.apply(this,arguments)}var rn,an=function(e,t){return p.createElement("svg",on({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),$t||($t=p.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"})),en||(en=p.createElement("path",{d:"M12 9v4m0 4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},sn=t.forwardRef(an),cn={description:n.css("color:",L.neutralDark,";display:block;font-size:12px;font-weight:400;line-height:16px;margin-top:4px;")},ln=function(e){var t=e.children;return t?n.jsx("span",{css:cn.description},t):null};function un(){return un=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},un.apply(this,arguments)}var dn,pn=function(e,t){return p.createElement("svg",un({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),rn||(rn=p.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"})))},fn=t.forwardRef(pn);function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},gn.apply(this,arguments)}var hn,bn=function(e,t){return p.createElement("svg",gn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),dn||(dn=p.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"})))},mn=t.forwardRef(bn);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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},vn.apply(this,arguments)}var xn,yn=function(e,t){return p.createElement("svg",vn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),hn||(hn=p.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"})))},wn=t.forwardRef(yn),Cn={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;"},jn={name:"196io73",styles:"left:0;position:absolute;top:0;width:16px;"},kn=function(e){var t=e.colorPalette;return{status:Cn,statusError:n.css("color:",t.error,";"),statusIcon:jn,statusSuccess:n.css("color:",t.success,";"),statusWarning:n.css("color:",t.warning,";")}},On=function(e){var o=e.children,i=e.status,a=r.useWjecOneThemeStyles(kn),s=t.useMemo((function(){var e;switch(i){case"error":e=fn;break;case"success":e=mn;break;case"warning":e=wn}return e}),[i]),c=t.useMemo((function(){var e;switch(i){case"error":e=a.statusError;break;case"success":e=a.statusSuccess;break;case"warning":e=a.statusWarning}return e}),[i]);return i&&o?n.jsx("span",{css:n.css([a.status,c],"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZpZWxkU3RhdHVzLmpzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEwQ2lCIiwiZmlsZSI6IkZpZWxkU3RhdHVzLmpzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyB1c2VNZW1vIH0gZnJvbSAncmVhY3QnO1xyXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcclxuaW1wb3J0IHsgdXNlV2plY09uZVRoZW1lU3R5bGVzIH0gZnJvbSAnd2plYy1vbmUtZGV2LXV0aWxzL3RoZW1lJztcclxuLy8gQHRyYW5zZm9ybS1wYXRoIC4uLy4uL2Fzc2V0cy9pY29ucy9saW5lX2FsZXJ0LWNpcmNsZS5zdmdcclxuaW1wb3J0IEVycm9ySWNvbiBmcm9tIFwiLi4vLi4vYXNzZXRzL2ljb25zL2xpbmVfYWxlcnQtY2lyY2xlLnN2Z1wiO1xyXG4vLyBAdHJhbnNmb3JtLXBhdGggLi4vLi4vYXNzZXRzL2ljb25zL2xpbmVfY2hlY2stY2lyY2xlLnN2Z1xyXG5pbXBvcnQgU3VjY2Vzc0ljb24gZnJvbSBcIi4uLy4uL2Fzc2V0cy9pY29ucy9saW5lX2NoZWNrLWNpcmNsZS5zdmdcIjtcclxuLy8gQHRyYW5zZm9ybS1wYXRoIC4uLy4uL2Fzc2V0cy9pY29ucy9saW5lX2FsZXJ0LXRyaWFuZ2xlLnN2Z1xyXG5pbXBvcnQgV2FybmluZ0ljb24gZnJvbSBcIi4uLy4uL2Fzc2V0cy9pY29ucy9saW5lX2FsZXJ0LXRyaWFuZ2xlLnN2Z1wiO1xyXG5jb25zdCBGaWVsZFN0YXR1cyA9ICh7IGNoaWxkcmVuLCBzdGF0dXMgfSkgPT4ge1xyXG4gICAgY29uc3Qgc3R5bGVzID0gdXNlV2plY09uZVRoZW1lU3R5bGVzKGdldFN0eWxlcyk7XHJcbiAgICBjb25zdCBTdGF0dXNJY29uID0gdXNlTWVtbygoKSA9PiB7XHJcbiAgICAgICAgbGV0IGljb247XHJcbiAgICAgICAgc3dpdGNoIChzdGF0dXMpIHtcclxuICAgICAgICAgICAgY2FzZSAnZXJyb3InOlxyXG4gICAgICAgICAgICAgICAgaWNvbiA9IEVycm9ySWNvbjtcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICBjYXNlICdzdWNjZXNzJzpcclxuICAgICAgICAgICAgICAgIGljb24gPSBTdWNjZXNzSWNvbjtcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICBjYXNlICd3YXJuaW5nJzpcclxuICAgICAgICAgICAgICAgIGljb24gPSBXYXJuaW5nSWNvbjtcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gaWNvbjtcclxuICAgIH0sIFtzdGF0dXNdKTtcclxuICAgIGNvbnN0IHN0YXR1c1N0eWxlID0gdXNlTWVtbygoKSA9PiB7XHJcbiAgICAgICAgbGV0IHN0eWxlO1xyXG4gICAgICAgIHN3aXRjaCAoc3RhdHVzKSB7XHJcbiAgICAgICAgICAgIGNhc2UgJ2Vycm9yJzpcclxuICAgICAgICAgICAgICAgIHN0eWxlID0gc3R5bGVzLnN0YXR1c0Vycm9yO1xyXG4gICAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICAgIGNhc2UgJ3N1Y2Nlc3MnOlxyXG4gICAgICAgICAgICAgICAgc3R5bGUgPSBzdHlsZXMuc3RhdHVzU3VjY2VzcztcclxuICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICBjYXNlICd3YXJuaW5nJzpcclxuICAgICAgICAgICAgICAgIHN0eWxlID0gc3R5bGVzLnN0YXR1c1dhcm5pbmc7XHJcbiAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICB9XHJcbiAgICAgICAgcmV0dXJuIHN0eWxlO1xyXG4gICAgfSwgW3N0YXR1c10pO1xyXG4gICAgcmV0dXJuIChzdGF0dXMgJiYgY2hpbGRyZW5cclxuICAgICAgICA/ICg8c3BhbiBjc3M9e1tzdHlsZXMuc3RhdHVzLCBzdGF0dXNTdHlsZV19PlxyXG4gICAgICAgICAgPFN0YXR1c0ljb24gY3NzPXtzdHlsZXMuc3RhdHVzSWNvbn0vPlxyXG4gICAgICAgICAge2NoaWxkcmVufVxyXG4gICAgICAgIDwvc3Bhbj4pXHJcbiAgICAgICAgOiBudWxsKTtcclxufTtcclxuY29uc3QgZ2V0U3R5bGVzID0gKHsgY29sb3JQYWxldHRlIH0pID0+ICh7XHJcbiAgICBzdGF0dXM6IGNzcyBgXHJcbiAgICBkaXNwbGF5OiBibG9jaztcclxuICAgIGZvbnQtc2l6ZTogMTJweDtcclxuICAgIGZvbnQtd2VpZ2h0OiA2MDA7XHJcbiAgICBsaW5lLWhlaWdodDogMTZweDtcclxuICAgIG1hcmdpbi10b3A6IDRweDtcclxuICAgIHBhZGRpbmctbGVmdDogMjRweDtcclxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcclxuICAgIHdoaXRlLXNwYWNlOiBwcmUtbGluZTtcclxuICBgLFxyXG4gICAgc3RhdHVzRXJyb3I6IGNzcyBgXHJcbiAgICBjb2xvcjogJHtjb2xvclBhbGV0dGUuZXJyb3J9O1xyXG4gIGAsXHJcbiAgICBzdGF0dXNJY29uOiBjc3MgYFxyXG4gICAgbGVmdDogMDtcclxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcclxuICAgIHRvcDogMDtcclxuICAgIHdpZHRoOiAxNnB4O1xyXG4gIGAsXHJcbiAgICBzdGF0dXNTdWNjZXNzOiBjc3MgYFxyXG4gICAgY29sb3I6ICR7Y29sb3JQYWxldHRlLnN1Y2Nlc3N9O1xyXG4gIGAsXHJcbiAgICBzdGF0dXNXYXJuaW5nOiBjc3MgYFxyXG4gICAgY29sb3I6ICR7Y29sb3JQYWxldHRlLndhcm5pbmd9O1xyXG4gIGBcclxufSk7XHJcbmV4cG9ydCBkZWZhdWx0IEZpZWxkU3RhdHVzO1xyXG4iXX0= */")},n.jsx(s,{css:a.statusIcon}),o):null},En=function(e){var a=e.gridArea,s=e.invalid,c=e.onPickSuggestion,l=e.validationMessage,u=e.validationPattern,d=e.ariaLabel,p=e.autoComplete,f=e.description,g=e.disabled,h=e.icon,b=e.id,m=e.inputMode,v=e.label,x=e.maxCharacters,y=e.name,C=e.onBlur,j=e.onChange,k=e.onFocus,O=e.placeholder,E=e.readonly,P=e.required,L=e.status,I=void 0===L?s?"error":void 0:L,S=e.statusIcon,A=void 0===S?"error"===I?_t:"success"===I?nn:"warning"===I?sn:void 0:S,W=e.statusIconBehavior,F=void 0===W?"status":W,T=e.statusMessage,M=void 0===T?l:T,R=e.suggestions,B=e.value,D=void 0===B?"":B,z=e.width;!function(e){var t=e.gridArea,n=e.invalid,o=e.onPickSuggestion,r=e.validationMessage,i=e.validationPattern;ve('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]),ve('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]),ve('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!==o}),[o]),ve('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!==r}),[r]),ve('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:a,invalid:s,onPickSuggestion:c,validationMessage:l,validationPattern:u}),ue("WJEC-One Input: Icon must be a valid SVGComponent",(function(){return h&&!o.isSvgComponent(t.createElement(h))}),[h]),ue("WJEC-One Input: Status icon must be a valid SVGComponent",(function(){return A&&!o.isSvgComponent(t.createElement(A))}),[A]);var Z=i.useId(),H=t.useMemo((function(){return b||Z}),[Z,b]),J=t.useRef(),X=t.useMemo((function(){return"wjecOneInputSuggestions_".concat(H)}),[H]),N=w(r.useWjecOneTheme(),1)[0],G=N.brand,V=N.colorPalette,Y=r.useWjecOneThemeStyles(Pn);t.useLayoutEffect((function(){J.current.value=D}),[D]);var q=t.useMemo((function(){switch(I){case"error":return{background:V.errorBackground,border:V.error};case"success":return{background:V.successBackground,border:V.success};case"warning":return{background:V.warningBackground,border:V.warning};default:return{background:"#FFFFFF",border:V.border}}}),[G,I]),U=t.useMemo((function(){return h&&o.svgComponentToDataURL(n.jsx(h,{color:g?V.border:V.neutralLight}))}),[G,g,h]),K=t.useMemo((function(){var e=V.neutralDark,t=void 0!==A&&("custom"===F||void 0!==I);if("status"===F)switch(I){case"error":e=V.error;break;case"success":e=V.success;break;case"warning":e=V.warning}return t?o.svgComponentToDataURL(n.jsx(A,{color:e})):void 0}),[G,I,A,F]),_=t.useMemo((function(){return{"--background-color":q.background,"--border-color":q.border,"--icon":U,"--margin-top":v&&"4px","--padding-left":U&&"40px","--padding-right":K&&"40px","--status-icon":K}}),[U,v,q,K]);return n.jsx("label",{"aria-label":d,css:Y.label,htmlFor:H,style:{width:z},"data-disabled":g},v,n.jsx("input",{ref:J,autoComplete:p,css:Y.input,defaultValue:D,disabled:g,id:H,inputMode:m,list:R&&X,maxLength:x,name:y,onBlur:function(e){var t=e.relatedTarget;o.isCallableFunction(C)&&C(t)},onChange:function(e){var t=e.target.value;o.isCallableFunction(j)&&j(t)},onFocus:function(){o.isCallableFunction(k)&&k()},placeholder:O,readOnly:E,required:P,style:_,type:"text"}),n.jsx(ln,null,f),n.jsx(On,{status:I},M),R&&n.jsx("datalist",{id:X},R.map((function(e,t){return n.jsx("option",{key:"".concat(e,"_").concat(t),value:e})}))))},Pn=function(e){var t=e.colorPalette;return{input:n.css("--background-color:#FFFFFF;--border-color:",t.border,";--icon:none;--margin-top:0;--padding-left:8px;--padding-right:8px;--status-icon:none;",Y,";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:",G.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:n.css(V,";",q,';display:inline-flex;flex-direction:column;&[data-disabled="true"]{color:',t.border,";}")}};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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ln.apply(this,arguments)}var In,Sn,An,Wn=function(e,t){return p.createElement("svg",Ln({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),xn||(xn=p.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"})))},Fn=t.forwardRef(Wn);function Tn(){return Tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Tn.apply(this,arguments)}var Mn,Rn=function(e,t){return p.createElement("svg",Tn({viewBox:"0 0 91 83",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),In||(In=p.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"})),Sn||(Sn=p.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"})),An||(An=p.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"})))},Bn=t.forwardRef(Rn),Dn={name:"10eevtr",styles:"bottom:0;top:auto;"},zn={name:"oxdg22",styles:"&::before{bottom:30px;top:auto;}"},Zn={name:"j7qwjs",styles:"display:flex;flex-direction:column;"},Hn={name:"yp8oic",styles:"display:flex;margin:2px 0 1px;min-height:0px;position:relative;"},Jn={name:"p49ge0",styles:"margin:1px 0 2px;"},Xn={name:"11cgomd",styles:"max-height:initial;"},Nn={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%;"},Gn={name:"267yq8",styles:"padding-left:35px;"},Vn={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;"},Yn={name:"9cuppe",styles:"bottom:auto;top:0;"},qn={name:"m2y6eh",styles:"align-items:center;display:flex;flex-direction:column;justify-content:center;padding:10px 0;"},Un={name:"1bkzip4",styles:"width:91px;"},Kn=function(e){var t=e.colorPalette;return{clearIcon:n.css("color:",t.fontLight,";cursor:pointer;height:30px;padding:5px;position:absolute;right:0;top:0;&:hover{color:",t.font,";}"),clearIconAbove:Dn,container:n.css(V,";display:inline-block;font-family:'Montserrat',sans-serif;font-size:12px;line-height:20px;position:relative;& > label{width:100%;}"),expandedContainer:n.css("background-color:#fff;border:1px solid ",t.border,";border-radius:",G.borderRadius,";box-shadow:",G.dropShadow,";position:fixed;z-index:1;&::before{border-bottom:1px solid ",t.border,";content:'';left:8px;position:absolute;right:8px;top:30px;}"),expandedContainerAbove:zn,expandedContainerFloating:Zn,list:n.css(G.scrollbar,";list-style:none;margin:0;overflow:auto;padding:8px 10px 9px;width:100%;"),listContainer:Hn,listContainerAbove:Jn,listFloating:Xn,listInput:Nn,listInputWithIcon:Gn,loading:Vn,loadingAbove:Yn,noResults:qn,noResultsIcon:Un}},_n={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 Qn(){return Qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Qn.apply(this,arguments)}var $n,eo,to=function(e,t){return p.createElement("svg",Qn({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Mn||(Mn=p.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"})))},no=t.forwardRef(to),oo={name:"7n37re",styles:"display:inline-flex;flex-direction:column;min-width:0;"},ro={name:"43a46m",styles:'display:inline-block;&[data-overflow="ellipsis"]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}'},io=function(e){var t=e.colorPalette;return{checkbox:n.css(G.visiblyHidden," &:checked + label::before{background-image:",o.svgComponentToDataURL(n.jsx(no,{color:t.primary})),";background-size:cover;}&:checked:disabled + label::before{background-image:",o.svgComponentToDataURL(n.jsx(no,{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:oo,label:n.css("--background-color:#FFFFFF;--border-color:",t.border,";--margin-right:0;--text-overflow:'wrap';",V,";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:",G.borderRadius,";content:'';display:inline-block;flex-shrink:0;height:40px;margin-right:var(--margin-right);width:40px;}"),labelContent:ro,loadingIcon:n.css("align-items:center;background-color:var(--background-color);border-radius:",G.borderRadius,";display:flex;height:30px;justify-content:center;left:1px;position:absolute;top:1px;width:30px;")}};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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ao.apply(this,arguments)}var so,co,lo=function(e,t){return p.createElement("svg",ao({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),$n||($n=p.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"})),eo||(eo=p.createElement("path",{d:"M12 6v6l4 2",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},uo=t.forwardRef(lo);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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},po.apply(this,arguments)}var fo,go=function(e,t){return p.createElement("svg",po({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),so||(so=p.createElement("path",{opacity:.4,d:"M21 10H3",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),co||(co=p.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"})))},ho=t.forwardRef(go),bo=function(e){var t=e.colorPalette;return{input:n.css("background:#fff center left 8px / 24px no-repeat;border:1px solid ",t.border,";border-radius:",G.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:n.css(V,";",q,";display:inline-flex;flex-direction:column;width:100%;")}},mo=function(e){var t=e.ariaLabel,o=e.breadcrumb,i=e.children,a=e.href,s=e.id,c=r.useWjecOneThemeStyles(vo);return n.jsx("a",{"aria-label":t,href:a,css:n.css([c.link,o&&c.withBreadcrumb]),id:s},i||a)},vo=function(e){var t=e.colorPalette;return{link:n.css("color:",t.primaryDark,";font-family:'Montserrat',sans-serif;font-size:14px;font-weight:500;line-height:20px;"),withBreadcrumb:n.css("color:",t.fontLight,";margin-right:40px;text-decoration:none;position:relative;&:not(:last-of-type)::after{background-image:",o.svgComponentToDataURL(n.jsx(H,{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,";}")}},xo=["gridArea","id","label","readonly","value"],yo={name:"r7q7qr",styles:"margin-bottom:5px;"},wo=function(e){var t=e.colorPalette;return{label:n.css(V,";color:",t.font,";display:inline-flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:12px;line-height:20px;"),labelText:yo}};function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Co.apply(this,arguments)}var jo,ko=function(e,t){return p.createElement("svg",Co({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),fo||(fo=p.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"})))},Oo=t.forwardRef(ko),Eo=[" bytes","kB","MB","GB","TB"],Po={name:"1k4v6ft",styles:"display:inline-flex;flex-direction:column;list-style:none;margin:0;padding:0;width:min-content;"},Lo={name:"p98ib",styles:"display:inline-flex;flex-direction:column;justify-content:center;padding-right:30px;position:relative;&:not(:last-of-type){margin-bottom:10px;}"},Io=function(e){var t=e.colorPalette;return{container:n.css(V,";border:1px dashed ",t.border,";border-radius:",G.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:n.css("color:",t.fontLight,";margin:0;"),documentIcon:n.css("color:",t.fontLight,";width:20px;"),fileList:Po,fileListItem:Lo,fileSize:n.css("color:",t.fontLight,";font-size:12px;"),removeIcon:n.css("color:",t.fontLight,";height:18px;pointer-events:all;position:absolute;right:0;top:1px;transition:color 0.1s linear;&:hover{color:",t.error,";}"),title:n.css("color:",t.font,";font-weight:normal;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"),uploadIcon:n.css("color:",t.fontLight,";height:20px;left:10px;position:absolute;top:50%;transform:translateY(-50%);")}};function So(){return So=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},So.apply(this,arguments)}var Ao,Wo,Fo=function(e,t){return p.createElement("svg",So({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),jo||(jo=p.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"})))},To=t.forwardRef(Fo);function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Mo.apply(this,arguments)}var Ro,Bo,Do,zo=function(e,t){return p.createElement("svg",Mo({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ao||(Ao=p.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"})),Wo||(Wo=p.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"})))},Zo=t.forwardRef(zo);function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ho.apply(this,arguments)}var Jo,Xo=function(e,t){return p.createElement("svg",Ho({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ro||(Ro=p.createElement("path",{opacity:.12,d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",fill:"currentColor"})),Bo||(Bo=p.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"})),Do||(Do=p.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"})))},No=t.forwardRef(Xo),Go=function(e){var a=e.gridArea,s=e.highlightColor,c=e.highlighted,l=e.show,u=e.ariaLabel,d=e.autoComplete,p=void 0===d?"current-password":d,f=e.description,g=e.disabled,h=e.id,b=e.label,v=e.name,x=e.onChange,y=e.onToggleRevealPassword,C=e.placeholder,j=e.revealPassword,k=void 0===j?void 0!==l&&l:j,O=e.showIcon,E=void 0===O||O,P=e.status,L=e.statusMessage,I=e.value,S=void 0===I?"":I;!function(e){var t=e.gridArea,n=e.highlighted,o=e.highlightColor,r=e.show;ve('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]),ve('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]),ve('WJEC One Password: The "highlightColor" prop has been deprecated due to its association with the deprecated `highlighted` prop',(function(){return void 0!==o}),[o]),ve('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!==r}),[r])}({gridArea:a,highlightColor:s,highlighted:c,show:l});var A=t.useRef(),W=t.useRef(),F=w(r.useWjecOneTheme(),1)[0],T=F.brand,M=F.colorPalette,R=i.useId(),B=t.useMemo((function(){return h||R}),[R,h]);t.useLayoutEffect((function(){W.current.setAttribute("aria-pressed",k.toString()),A.current.setAttribute("type",k?"text":"password")}),[k]),t.useLayoutEffect((function(){A.current.value=S}),[S]),t.useLayoutEffect((function(){W.current.style.setProperty("--offset-top","".concat(A.current.offsetTop,"px"))}));var D=t.useMemo((function(){switch(P){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{}}}),[T,P]),z=r.useWjecOneThemeStyles(Yo),Z=t.useMemo((function(){return{"--background-color":D.background,"--border-color":D.border,"--icon":!E&&"none","--margin-top":b&&"4px","--padding-left":!E&&"8px"}}),[b,E,D]),H=i.useButton({"aria-label":u,"aria-pressed":k,isDisabled:g,onPress:function(){var e="true"!==W.current.getAttribute("aria-pressed");W.current.setAttribute("aria-pressed",e.toString()),A.current.setAttribute("type",e?"text":"password"),o.isCallableFunction(y)&&y(e)},type:"button"},W).buttonProps;return n.jsx("label",{"aria-label":u,css:z.label,htmlFor:B,"data-disabled":g},b,n.jsx("input",{ref:A,autoComplete:p,css:z.input,defaultValue:S,disabled:g,id:B,name:v,onChange:function(e){var t=e.target.value;o.isCallableFunction(x)&&x(t)},placeholder:C,style:Z,type:k?"text":"password"}),n.jsx("button",m({},H,{css:z.revealPassword,name:"Reveal password",ref:W})),n.jsx(ln,null,f),n.jsx(On,{status:P},L))},Vo={name:"1ynvfur",styles:"font-size:12px;margin-top:4px;"},Yo=function(e){var t=e.colorPalette;return{description:Vo,input:n.css("--background-color:#FFFFFF;--border-color:",t.border,";--icon:",o.svgComponentToDataURL(n.jsx(To,{color:t.neutralLight})),";--margin-top:0;--padding-left:40px;",Y,";background:var(--background-color) var(--icon) center left 8px / 24px no-repeat;border:1px solid var(--border-color);border-radius:",G.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:",o.svgComponentToDataURL(n.jsx(To,{color:t.border})),";background-color:",t.neutral,";border-color:",t.border,";color:",t.border,";cursor:not-allowed;+ button{background-image:",o.svgComponentToDataURL(n.jsx(Zo,{color:t.border})),';&[aria-pressed="true"]{background-image:',o.svgComponentToDataURL(n.jsx(No,{color:t.border})),";}}}&:focus{border-color:",t.primary,";}&::placeholder{color:",t.neutralLight,";}"),label:n.css(V,";",q,';display:inline-flex;flex-direction:column;position:relative;&[data-disabled="true"]{color:',t.border,";}"),revealPassword:n.css("--offset-top:0;background:transparent ",o.svgComponentToDataURL(n.jsx(Zo,{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:',o.svgComponentToDataURL(n.jsx(No,{color:t.primary})),";color:",t.primary,";}")}},qo={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;}"},Uo=function(e){var t=e.colorPalette;return{container:n.css("--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;",V,";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:n.css(q,';&[data-disabled="true"]{color:',t.border,";}"),radioButton:n.css(G.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:qo}};function Ko(){return Ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ko.apply(this,arguments)}var _o,Qo,$o,er,tr,nr=function(e,t){return p.createElement("svg",Ko({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Jo||(Jo=p.createElement("path",{d:"m6 9 6 6 6-6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},or=t.forwardRef(nr),rr={name:"1ynvfur",styles:"font-size:12px;margin-top:4px;"},ir={name:"801txx",styles:"font-size:12px;font-weight:600;margin-top:4px;padding-left:24px;position:relative;"},ar={name:"ezpkst",styles:"left:0;position:absolute;top:50%;transform:translateY(-50%);width:16px;"},sr=function(e){var t=e.colorPalette;return{description:rr,label:n.css(V,";",q,';display:flex;flex-direction:column;position:relative;&[data-disabled="true"]{color:',t.border,";}"),select:n.css("--background-color:#FFFFFF;--border-color:",t.border,";--margin-top:0;appearance:none;background:var(--background-color) ",o.svgComponentToDataURL(n.jsx(or,{color:t.neutralLight}))," calc(100% - 8px) center / 24px no-repeat;border:1px solid var(--border-color);border-radius:",G.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:",o.svgComponentToDataURL(n.jsx(or,{color:t.border})),";border-color:",t.border,";color:",t.border,";cursor:not-allowed;}&:focus{border-color:",t.primary,";}&::placeholder{color:",t.neutralLight,";}"),status:ir,statusError:n.css("color:",t.error,";"),statusIcon:ar,statusSuccess:n.css("color:",t.success,";"),statusWarning:n.css("color:",t.warning,";")}},cr=function(e,t,n){var r;return o.isKeyLabelPair(e)?e.key:null===(r=o.extractKey(e,t,function(e,t){return t.findIndex((function(t){return t===e||lr(t)&&t.options.includes(e)}))}(e,n)))||void 0===r?void 0:r.toString()},lr=function(e){return o.isPlainObject(e)&&Object.hasOwn(e,"options")&&Object.hasOwn(e,"label")&&"string"==typeof e.label},ur=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},dr=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.excludeIfFalse,r=n.excludeIfFalsy,i=n.excludeIfNull,a=void 0===i||i,s=n.excludeIfUndefined,c=void 0===s||s,l=t.useMemo((function(){return Object.entries(e).reduce((function(e,t){var n=w(t,2),i=n[0],s=n[1];return o&&!1===s||r&&!s||a&&null===s||c&&void 0===s?e:g(g({},e),{},b({},ur(i),String(s)))}),{})}),[e]);return l},pr=function(e){var t=e.colorPalette;return{label:n.css(V,";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:n.css("border:1px solid ",t.border,";border-radius:",G.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;}")}},fr=function(e){var t=e.colorPalette;return{label:n.css(V,";",q,';cursor:pointer;display:inline-block;&[data-disabled="true"]{color:',t.border,";cursor:not-allowed;}"),toggleButton:n.css("--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,";}}")}},gr=function(e){var o=e.ariaDescription,i=e.borderColor,a=e.children,s=e.icon,c=void 0===s?_t:s,l=e.iconColor,u=e.id,d=e.title,p=e.titleColor,f=w(r.useWjecOneTheme(),1)[0],g=f.brand,h=f.colorPalette,b=t.useRef(),v=Be(o),x=r.useWjecOneThemeStyles(vr),y=t.useMemo((function(){return i||h.secondary}),[g,i]),C=t.useMemo((function(){return l||h.secondaryDark}),[g,l]),j=t.useMemo((function(){return p||h.secondaryDark}),[g,p]);return Se("--border-color",y,b),Se("--icon-color",C,b),Se("--title-color",j,b),n.jsx("div",m({css:x.infoCardMain,id:u,ref:b},v),n.jsx(c,{css:x.icon}),n.jsx("div",null,n.jsx("h3",{css:x.title},d),n.jsx("p",{css:x.message},a)))},hr={name:"1i9s3a8",styles:"color:var(--icon-color);flex-shrink:0;height:24px;width:24px;"},br={name:"1uk1gs8",styles:"margin:0;"},mr={name:"172fn9d",styles:"color:var(--title-color);font-weight:600;margin:0 0 4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},vr=function(e){var t=e.colorPalette;return{icon:hr,infoCardMain:n.css("--border-color:",t.secondary,";--icon-color:",t.secondaryDark,";--title-color:",t.secondaryDark,";background-color:#ffffff;border:1px solid var(--border-color);border-radius:",G.borderRadius,";box-shadow:",G.dropShadow,";display:flex;font-family:'Montserrat',sans-serif;font-size:16px;gap:16px;line-height:24px;padding:16px;"),message:br,title:mr}};function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},xr.apply(this,arguments)}var yr,wr,Cr,jr,kr,Or=function(e,t){return p.createElement("svg",xr({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),_o||(_o=p.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"})),Qo||(Qo=p.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"})),$o||($o=p.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"})),er||(er=p.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"})),tr||(tr=p.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"})))},Er=t.forwardRef(Or);function Pr(){return Pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Pr.apply(this,arguments)}var Lr,Ir=function(e,t){return p.createElement("svg",Pr({viewBox:"0 0 298 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),yr||(yr=p.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"})),wr||(wr=p.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"})),Cr||(Cr=p.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"})),jr||(jr=p.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"})),kr||(kr=p.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"})))},Sr=t.forwardRef(Ir),Ar=function(e){var t=e.copyrightMessage,o=void 0===t?"Copyright WJEC CBAC Ltd ".concat((new Date).getFullYear()):t,i=e.logos,a=void 0===i?[Er,Sr]:i,s=e.maxWidth,c=void 0===s?1280:s,l=r.useWjecOneThemeStyles(Tr);return n.jsx("footer",{css:l.footer},n.jsx("div",{css:n.css([l.container,{maxWidth:"".concat(c,"px")}])},a.map((function(e,t){return n.jsx(e,{key:"logo_".concat(t),css:l.logo})})),n.jsx("span",{css:l.copyright},o)))},Wr={name:"8zn5ov",styles:"align-items:center;display:flex;margin:0 auto;width:100%;"},Fr={name:"eeoqsk",styles:"height:25px;margin-right:10px;"},Tr=function(e){var t=e.colorPalette;return{container:Wr,copyright:n.css("border-left:1px solid ",t.border,";color:",t.fontLight,";font-size:12px;padding-left:10px;"),footer:n.css(V,";align-items:center;display:flex;justify-content:flex-start;padding:24px 30px 22px;width:100%;"),logo:Fr}};function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Mr.apply(this,arguments)}var Rr,Br,Dr,zr,Zr=function(e,t){return p.createElement("svg",Mr({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Lr||(Lr=p.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"})))},Hr=t.forwardRef(Zr),Jr={height:"40px",padding:"0"},Xr=function(e){var i=e.logo,a=void 0===i?{eduqas:Sr,wjec:Er}:i,s=e.logoId,c=e.logoStyles,l=e.maxWidth,u=void 0===l?1280:l,d=e.menus,p=e.onClickPageIcon,f=e.pageIcon,h=void 0===f?Hr:f,b=e.pageIconHref,m=e.pageTitle,v=e.showPageTitle,x=void 0===v||v,y=w(r.useWjecOneTheme(),1)[0].brand,C=r.useWjecOneThemeStyles(Yr),j=t.useMemo((function(){return e=a,o.isPlainObject(e)&&Object.hasOwn(e,"eduqas")&&Object.hasOwn(e,"wjec")?a[y]:a;var e}),[y,a]);return n.jsx("header",{css:C.header},n.jsx("div",{css:n.css([C.container,{maxWidth:"".concat(u,"px")}])},n.jsx("div",{css:C.titleContainer},x&&n.jsx(t.Fragment,null,n.jsx("a",{css:C.pageLink,href:b,onClick:p},n.jsx(h,{css:C.pageIcon})),n.jsx("h1",{css:C.title},m))),n.jsx(j,{css:n.css(g(g({},Jr),c)),id:s}),n.jsx("section",{css:C.menuContainer},d)))},Nr={name:"f7hwxs",styles:"align-items:center;display:grid;grid-gap:30px;grid-template-columns:1fr 100px 1fr;justify-items:center;margin:0 auto;"},Gr={name:"euyatf",styles:"align-items:center;display:flex;flex:1;justify-content:flex-end;justify-self:end;min-width:175px;"},Vr={name:"6o7adr",styles:"align-items:center;display:flex;justify-self:flex-start;"},Yr=function(e){var t=e.colorPalette;return{container:Nr,header:n.css(V,";background-color:#fff;border-bottom:1px solid ",t.border,";padding:15px 30px;position:sticky;top:0;width:100%;z-index:1;"),menuContainer:Gr,pageIcon:n.css("color:",t.fontLight,";height:20px;margin-right:10px;"),pageLink:n.css("cursor:pointer;:hover > svg{color:",t.font,";}"),title:n.css(U,";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:Vr}},qr={content:n.css("flex:1;margin:0 auto;min-height:100%;padding:40px ",30,"px 0;width:100%;"),pageWrapper:n.css(V,";display:flex;flex-direction:column;min-height:100vh;")},Ur=function(e){var o=e.color,i=e.id,a=e.progress,s=t.useRef(),c=void 0===a,l=r.useWjecOneThemeStyles(Qr);return Se("--background-color",o,s),n.jsx("progress",{"aria-label":"loading",css:n.css([l.progress,c&&l.progressIndeterminate]),id:i,max:100,ref:s,value:a})},Kr=n.keyframes(Rr||(Rr=y(["\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"]))),_r=n.keyframes(Br||(Br=y(["\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"]))),Qr=function(e){var t=e.colorPalette;return{progress:n.css("--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:n.css("&::before,&::after{background-color:var(--background-color);border-radius:2px;bottom:0;content:'';left:0;position:absolute;top:0;}&::after{animation:",Kr," 2.1s cubic-bezier(0.65,0.815,0.735,0.395) infinite;}&::before{animation:",_r," 2.1s cubic-bezier(0.165,0.84,0.44,1) infinite 1.15s;}")}},$r={icon:{name:"198hkja",styles:"display:flex;height:20px;width:20px;"}},ei=function(e){var t=e.children,o=e.element,r=void 0===o?"div":o,i=e.horizontal,a=void 0!==i&&i,s=e.styles,c=e.vertical,l=void 0===c||c;return n.jsx(r,{css:[s,G.scrollbar,{overflowX:a?"auto":"hidden",overflowY:l?"auto":"hidden"}]},t)},ti={dependencies:[],eventTarget:document.documentElement,shouldAddListener:!0},ni=new WeakMap,oi=function(e,t,n){var o=function(n){var o,r=Object.values(ni.get(t)[e].instances).map((function(e){return e.callback})),i=O(r);try{for(i.s();!(o=i.n()).done;){(0,o.value)(n)}}catch(e){i.e(e)}finally{i.f()}};return t.addEventListener(e,o,n),o},ri=function(e,n,r){var i=g(g({},ti),r),a=i.dependencies,s=i.eventOptions,c=i.eventTarget,l=i.shouldAddListener,u="function"==typeof l?l():l;t.useEffect((function(){var t={callback:n},r=o.isRefObject(c)?c.current:c;return u&&r&&(ni.has(r)||ni.set(r,{}),ni.get(r)[e]||(ni.get(r)[e]={instances:[],listener:oi(e,r,s)}),ni.get(r)[e].instances.push(t)),function(){var n,o=null===(n=ni.get(r))||void 0===n?void 0:n[e];o&&(o.instances=o.instances.filter((function(e){return e!==t})),0===ni.get(r)[e].instances.length&&function(e,t){var n=ni.get(t);t.removeEventListener("keydown",ni.get(t)[e].listener),delete n[e],0===Object.keys(n).length&&ni.delete(t)}(e,r))}}),[u,e,c].concat(C(a)))},ii={dependencies:[],focusElement:0,shouldTrapFocus:!0},ai={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;}"},si={name:"1pg8bi",styles:"height:20px;"},ci={name:"1kdy0wu",styles:"display:flex;flex:1;flex-direction:column;"},li={name:"y1gt6f",styles:"margin-top:40px;"},ui={name:"1rshn6v",styles:"@supports (scrollbar-gutter:stable){scrollbar-gutter:stable;}"},di={name:"ia9nae",styles:"align-items:flex-end;display:flex;justify-content:space-between;margin-top:50px;"},pi={name:"13faftp",styles:"margin-bottom:10px;padding-right:30px;position:relative;"},fi={name:"1f3fjso",styles:"align-items:center;display:flex;margin-left:auto;&:not(:last-child){margin-right:10px;}"},gi=function(e){var t=e.colorPalette;return{background:ai,closeButton:n.css("background-color:transparent;border:none;cursor:pointer;color:",t.fontLight,";display:flex;padding:0;position:absolute;right:0;top:0;"),closeIcon:si,content:ci,contentWithHeader:li,contentWithStableScrollbar:ui,description:n.css("color:",t.fontLight,";font-family:'Montserrat',sans-serif;font-size:14px;line-height:20px;margin:0;white-space:pre-line;"),footer:di,header:pi,modal:n.css(V,";background-color:#FFFFFF;border-radius:",G.borderRadius,";box-shadow:",G.dropShadow,";display:flex;flex-direction:column;position:relative;"),otherActions:fi}},hi=function(e){var o=e.children,i=e.color,a=w(r.useWjecOneTheme(),1)[0],s=a.brand,c=a.colorPalette,l=r.useWjecOneThemeStyles(bi),u=t.useRef(),d=t.useMemo((function(){return i||c.font}),[s,i]);return Se("--title-color",d,u),n.jsx("h3",{css:l.title,ref:u},o)},bi=function(e){var t=e.colorPalette;return{title:n.css("--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 mi(){return mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},mi.apply(this,arguments)}var vi,xi=function(e,t){return p.createElement("svg",mi({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Dr||(Dr=p.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"})),zr||(zr=p.createElement("path",{d:"M12 16v-4m0-4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},yi=t.forwardRef(xi),wi=500,Ci=function(e){var i=e.actionColor,a=void 0===i?"transparent":i,s=e.actionIcon,c=e.actionLoading,l=e.actionLoadingProgress,u=e.actionText,d=e.actionTextColor,p=void 0===d?L.primaryDark:d,f=e.autoClose,h=e.borderColor,b=e.icon,m=void 0===b?yi:b,v=e.iconColor,x=e.maxWidth,y=void 0===x?"375px":x,C=e.message,j=e.onActionClick,k=e.onClose,O=e.onOpen,E=e.open,P=void 0===E||E,I=e.position,S=e.positionType,A=void 0===S?"relative":S,W=e.showImmediately,F=e.title,T=e.titleColor,M=w(r.useWjecOneTheme(),1)[0],R=M.brand,B=M.colorPalette,D=w(t.useState(!P),2),z=D[0],Z=D[1],H=w(t.useState(P&&W),2),J=H[0],X=H[1],N=t.useRef(),V=t.useRef(),Y=t.useRef(),q=r.useWjecOneThemeStyles(Wi),U=t.useMemo((function(){if(m&&"none"!==m){var e=m;return n.jsx(e,{css:n.css([q.icon])})}return null}),[m]);t.useEffect((function(){return P&&W&&o.isCallableFunction(O)&&O(),function(){window.clearTimeout(N.current),window.clearTimeout(V.current)}}),[]),ue("WJEC-One Notification: Icon must be a valid SVGComponent",(function(){return m&&"none"!==m&&!o.isSvgComponent(t.createElement(m))}),[m]),t.useEffect((function(){P!==J&&(P?_():K())}),[P]),t.useEffect((function(){J&&f&&(window.clearTimeout(N.current),N.current=window.setTimeout(K,f))}),[f,J]);var K=function(){window.clearTimeout(N.current),window.clearTimeout(V.current),X(!1),V.current=window.setTimeout((function(){Z(!0),o.isCallableFunction(k)&&k()}),wi)},_=function(){window.clearTimeout(V.current),Z(!1),X(!0),V.current=window.setTimeout((function(){o.isCallableFunction(O)&&O()}),wi)},Q=t.useMemo((function(){return h||B.border}),[R,h]),$=t.useMemo((function(){return v||B.border}),[R,v]),ee=t.useMemo((function(){return T||B.font}),[R,T]);Se("--border-color",Q,Y),Se("--icon-color",$,Y),Se("--title-color",ee,Y);var te=!!u;return n.jsx("div",{css:n.css([q.container,!J&&q.containerFadeOut,J&&q.containerFadeIn,z&&G.visiblyHidden,g({maxWidth:y,position:A},I)]),ref:Y},U,n.jsx(hi,{color:ee},F),n.jsx("p",{css:n.css([q.message,te&&{marginBottom:"10px"}])},C),te?n.jsx(xe,{color:a,icon:s,iconColor:L.fontLight,labelColor:p,label:u,loading:c,loadingProgress:l,onClick:j,size:"small"}):null,J&&f&&n.jsx("svg",{css:q.autoClose,viewBox:"0 0 20 20"},n.jsx("circle",{css:n.css([q.autoCloseCircle,{animationDuration:"".concat(f,"ms")}]),cx:"10",cy:"10",r:"9",pathLength:"100"})),n.jsx(Fn,{css:q.close,onClick:K}))},ji=n.keyframes(vi||(vi=y(["\n to { stroke-dashoffset: -100; }\n"]))),ki={name:"9xvvt0",styles:"height:20px;position:absolute;right:8px;top:8px;width:20px;"},Oi={name:"oofjv5",styles:"cursor:pointer;height:36px;outline:none;padding:10px;position:absolute;right:0;top:0;width:36px;"},Ei={name:"1aodknh",styles:"opacity:1;transform:translateY(0);transition-timing-function:linear,ease-out;"},Pi={name:"15egim4",styles:"opacity:0;transform:translateY(-60px);transition-timing-function:linear,ease-in;"},Li={name:"15grx0k",styles:"align-items:flex-start;display:flex;flex-direction:column;"},Ii={name:"wvqk7n",styles:"color:var(--icon-color);flex-shrink:0;height:24px;left:16px;position:absolute;width:24px;"},Si={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;}"},Ai={name:"172fn9d",styles:"color:var(--title-color);font-weight:600;margin:0 0 4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},Wi=function(e){var t=e.colorPalette;return{autoClose:ki,autoCloseCircle:n.css("animation:",ji," linear forwards;fill:transparent;stroke:",L.fontLight,";stroke-dasharray:100;stroke-width:1;transform:rotate(-90deg);transform-origin:50%;"),close:Oi,container:n.css("--border-color:",t.border,";--icon-color:",t.border,";--title-color:",t.font,";",V,";background-color:#ffffff;border:1px solid var(--border-color);border-radius:",G.borderRadius,";box-shadow:",G.dropShadow,";font-family:'Montserrat',sans-serif;font-size:16px;gap:16px;line-height:24px;margin-bottom:16px;padding:16px 40px 16px 56px;transition:opacity ",wi,"ms,transform ",wi,"ms;z-index:999;"),containerFadeIn:Ei,containerFadeOut:Pi,content:Li,icon:Ii,message:Si,title:Ai}},Fi=["title"],Ti=["title"],Mi=["title"],Ri=function(e){var t=e.colorPalette;return{heading:n.css("--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;")}},Bi={name:"1qje5jb",styles:"margin:0 15px;text-align:center;user-select:none;width:50px;"},Di={name:"1x05hl3",styles:"opacity:0.33;pointer-events:none;"},zi={name:"1ixbp0l",styles:"pointer-events:none;"},Zi=function(e){var t=e.colorPalette;return{compact:Bi,container:n.css(V,";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:n.css("align-items:center;border-radius:",G.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:Di,optionNextPrevious:n.css("border:1px solid ",t.border,";"),optionSelected:n.css("background-color:",t.primary,";color:#FFFFFF;pointer-events:none;"),optionSeparator:zi}},Hi=function(e){var r=e.ariaLabel,i=e.children,a=e.isLoadingStyles,s=e.onOpen,c=e.popupWindow,l=w(t.useState(!1),2),u=l[0],d=l[1];return t.useEffect((function(){u||a||(o.isCallableFunction(s)&&s(c),d(!0))}),[a]),n.jsx(t.Fragment,null,i,a&&n.jsx("div",{"aria-label":r,css:Xi.wrapper},n.jsx(Ur,null)))},Ji=function(e){var r=e.children,i=e.height,a=void 0===i?500:i,c=e.id,l=void 0===c?"":c,u=e.onClose,d=e.onOpen,p=e.open,f=e.position,g=void 0===f?{x:50,y:200}:f,h=e.title,b=void 0===h?"":h,m=e.width,v=void 0===m?500:m,x=w(t.useState(),2),y=x[0],C=x[1],j=t.useRef(),k=t.useRef(document.querySelectorAll("[data-emotion]")),O=w(t.useState(!1),2),E=O[0],P=O[1],L=w(t.useState(p),2),I=L[0],S=L[1],A=w(t.useState(!1),2),W=A[0],F=A[1];t.useEffect((function(){var e=document.querySelectorAll("[data-emotion]");I&&j.current&&Array.from(e).some((function(e,t){return e!==k.current[t]}))&&(k.current=e,M())})),t.useEffect((function(){return function(){return j.current&&j.current.close()}}),[]),t.useEffect((function(){I&&R(),!j.current||j.current.closed||I||j.current.close()}),[r,I]),t.useEffect((function(){j.current&&(j.current.document.title=b)}),[b]),t.useEffect((function(){return S(p)}),[p]);var T=function(){P(!1),S(!1),F(!1),o.isCallableFunction(u)&&u()},M=function(){var e=j.current.document,t=e.head,n=t.querySelectorAll("style");Array.from(n).forEach((function(e){return t.removeChild(e)})),k.current.forEach((function(n){var o=n.textContent,r=n.sheet,i=e.createElement("style");if(i.appendChild(e.createTextNode("")),t.appendChild(i),o)i.appendChild(e.createTextNode(o));else{var a=i.sheet;[].forEach.call(r.cssRules,(function(e){a.insertRule(e.cssText)}))}})),requestAnimationFrame((function(){P(!0)}))},R=function(){if(!I||!j.current||j.current.closed)if(P(!1),j.current=window.open("",l,"left=".concat(g.x,",height=").concat(a,",top=").concat(g.y,",width=").concat(v)),j.current){var e=j.current.document.createElement("main");e.setAttribute("id",l),C(e),j.current.onbeforeunload=T,j.current.document.body.appendChild(e),j.current.document.title=b,requestAnimationFrame((function(){M(),S(!0),F(!0)}))}else o.developerError("A PopupWindow failed to open")};return I&&W&&j.current&&y?s.createPortal(n.jsx(Hi,{isLoadingStyles:!E,onOpen:d,popupWindow:j.current},r),y):null},Xi={wrapper:{name:"z2hlcz",styles:"background-color:#fff;bottom:0;left:0;padding:30px 10px;position:absolute;right:0;top:0;"}},Ni=function(e){var r=e.ariaLabel,i=e.children,a=e.footer,s=void 0===a?t.Fragment:a,c=e.header,l=void 0===c?t.Fragment:c,u=e.id,d=e.isNested,p=e.margin,f=void 0===p?"auto":p,h=e.onLayout,b=e.orientation,m=void 0===b?"portrait":b,v=e.parentFooterHeight,x=void 0===v?0:v,y=e.parentHeaderHeight,C=void 0===y?0:y,j=e.verticalAlign,k=void 0===j?"top":j,O=w(t.useState("auto"),2),E=O[0],P=O[1],L=w(t.useState("auto"),2),I=L[0],S=L[1],A=t.useRef(),W=t.useRef(),F=t.useMemo((function(){return("auto"===E?0:E)+("auto"===I?0:I)+x+C}),[E,I,x,C]);return t.useEffect((function(){A.current&&P(A.current.offsetHeight),W.current&&S(W.current.offsetHeight)}),[l,s,W.current,A.current]),t.useEffect((function(){"auto"!==E&&"auto"!==I&&o.isCallableFunction(h)&&h()}),[E,I]),n.jsx(t.Fragment,null,!d&&n.jsx(n.Global,{styles:n.css("@media print{*{-webkit-print-color-adjust:exact;}@page{margin:",f,";size:",m,";}}")}),n.jsx("table",{"aria-label":r,cellPadding:0,cellSpacing:0,css:Yi.printLayoutTable,id:u},n.jsx("thead",null,n.jsx("tr",null,n.jsx("td",{css:Yi.printLayoutTableCell,style:{height:I}},n.jsx("header",{ref:W,css:n.css([Yi.header,!d&&Yi.printHeader])},n.jsx(l,null))))),n.jsx("tbody",null,n.jsx("tr",null,n.jsx("td",{css:n.css([Yi.printLayoutTableCell,Yi.content]),style:{height:d?"calc(100vh - ".concat(F,"px)"):"auto",verticalAlign:k}},t.Children.map(i,(function(e){return e&&e.type&&("PrintLayout"===e.type.displayName||"PrintLayout"===e.type.name)?t.cloneElement(e,g(g({},e.props),{},{isNested:!0,parentFooterHeight:E,parentHeaderHeight:I})):e}))))),n.jsx("tfoot",null,n.jsx("tr",null,n.jsx("td",{css:Yi.printLayoutTableCell,style:{height:E}},n.jsx("footer",{ref:A,css:n.css([Yi.footer,!d&&Yi.printFooter])},n.jsx(s,null)))))))};Ni.displayName="PrintLayout";var Gi,Vi,Yi={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:n.css(V,";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;"}},qi=["ariaLabel","autoPrint","children","closeOnPrint","id","onClose","onOpen"],Ui=function(e){var t=e.colorPalette;return{sectionHeading:n.css("--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;")}},Ki=function(e){var t=e.colorPalette;return{title:n.css("--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 _i(){return _i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_i.apply(this,arguments)}var Qi,$i=function(e,t){return p.createElement("svg",_i({viewBox:"0 0 1440 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Gi||(Gi=p.createElement("mask",{id:"a","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:1440,height:150},p.createElement("path",{fill:"#fff",d:"M0 0h1440v150H0z"}))),Vi||(Vi=p.createElement("g",{mask:"url(#a)"},p.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"}),p.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"}),p.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"}),p.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"}))))},ea=t.forwardRef($i),ta={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:"."},na=function(e){var i=e.ariaDescription,a=e.ariaLabel,s=e.allowForgotPassword,c=void 0===s||s,l=e.allowSignup,u=void 0===l||l,d=e.autocomplete,p=void 0===d||d,f=e.enforceFormCompletion,h=e.id,b=e.padding,v=void 0===b?"50px 30px 30px":b,x=e.passwordValidator,y=void 0===x?function(e,t){return e===t}:x,C=e.profileActions,j=e.repeatNewPassword,k=e.type,O=void 0===k?"external":k,E=e.onCancel,P=e.onChangePassword,L=e.onConfirmResetPassword,I=e.onForceChangePassword,S=e.onForgotPassword,A=e.onHaveResetCode,W=e.onRequestResetPassword,F=e.onSignin,T=e.onSignout,M=e.onSignup,R=e.onSubmitMfa,B=e.loading,D=e.isSignedIn,z=void 0!==D&&D,Z=e.username,H=e.i18n,J=w(r.useWjecOneTheme(),1)[0].colorPalette,X=r.useWjecOneThemeStyles(fa),N=g(g({},ta),H),G=w(t.useState(!0),2),V=G[0],Y=G[1],q=w(t.useState("confirmResetPassword"===O),2),U=q[0],K=q[1],_=w(t.useState(""),2),Q=_[0],$=_[1],ee=w(t.useState(""),2),te=ee[0],ne=ee[1],oe=w(t.useState(""),2),re=oe[0],ie=oe[1],ae=w(t.useState(""),2),se=ae[0],ce=ae[1],le=w(t.useState(""),2),ue=le[0],de=le[1],fe=w(t.useState(""),2),ge=fe[0],he=fe[1],be=Be(i);t.useEffect((function(){$(""),ne(""),ie(""),ce(""),de(""),he("")}),[z]),t.useEffect((function(){"confirmResetPassword"===O?K(!0):U&&(K(!1),de(""))}),[O]),t.useEffect((function(){j||V||Y(!0)}),[j]);var me=function(){o.isCallableFunction(I)&&I(te)},ve=function(){o.isCallableFunction(P)&&P(ue,te)},ye=function(){o.isCallableFunction(L)&&L(ge,te,se)},we=function(){o.isCallableFunction(W)&&W(ge)},Ce=function(){o.isCallableFunction(F)&&F(ge,ue)},je=function(){o.isCallableFunction(R)&&R(Q)},ke=t.useMemo((function(){switch(O){case"changePassword":return N.changePasswordPrompt;case"confirmResetPassword":return N.confirmResetPasswordPrompt;case"forceChangePassword":return N.forceChangePasswordPrompt;case"mfa":return N.mfaPrompt;case"requestResetPassword":return N.requestResetPasswordPrompt;default:return N.signinPrompt}}),[H,O]),Oe=t.useMemo((function(){return"changePassword"!==O&&"confirmResetPassword"!==O&&"requestResetPassword"!==O&&(z||c||u)}),[c,u,z,O]),Ee=t.useMemo((function(){if(!f)return!1;switch(O){case"changePassword":case"forceChangePassword":return""===te||!V;case"confirmResetPassword":return""===se||""===te||!V;case"mfa":return""===Q;case"requestResetPassword":return""===ge;default:return""===ue||""===ge}}),[V,Q,te,se,re,ue,ge,O]),Pe=t.useMemo((function(){switch(O){case"changePassword":case"forceChangePassword":return N.changePasswordSubmit;case"mfa":return N.mfaSubmit;case"confirmResetPassword":case"requestResetPassword":return N.resetPasswordSubmit;default:return N.signin}}),[H,O]),Le=t.useMemo((function(){switch(O){case"changePassword":return N.changePasswordTitle;case"confirmResetPassword":case"requestResetPassword":return N.resetPasswordTitle;case"forceChangePassword":return N.forceChangePasswordTitle;case"mfa":return N.mfaTitle;default:return n.jsx(t.Fragment,null,z?"string"==typeof N.welcomeMessage?N.welcomeMessage.replace(/\{username\}/g,Z):N.welcomeMessage:N.welcomeMessageNotSignedIn,N.welcomeMessagePunctuation&&n.jsx("span",{css:X.welcomeMessagePunctuation},N.welcomeMessagePunctuation))}}),[H,z,O]);return n.jsx("div",m({"aria-label":a,id:h,css:n.css([X.container,{padding:v}])},be),n.jsx(ea,{css:X.headerShapes}),n.jsx("h1",{css:X.welcomeMessage},Le),n.jsx("section",{css:X.formContainer},z?n.jsx("ul",{css:X.actionsList},C&&C.map((function(e,t){var o=e.icon,r=e.label,i=e.onClick;return n.jsx("li",{key:t,css:X.action,onClick:i},o&&n.jsx(o,{css:X.actionIcon}),r)}))):n.jsx(t.Fragment,null,n.jsx("h2",{css:X.prompt},ke),n.jsx("form",{autoComplete:p?"on":"off",css:X.form,onSubmit:function(e){e.preventDefault()}},("internal"===O||"requestResetPassword"===O||"confirmResetPassword"===O)&&n.jsx(En,{label:N.username,name:"username",onChange:he,value:ge,width:"100%"}),("changePassword"===O||"forceChangePassword"===O||"confirmResetPassword"===O)&&n.jsx(t.Fragment,null,"changePassword"===O&&n.jsx(Go,{label:N.password,name:"password",onChange:de,value:ue}),"confirmResetPassword"===O&&n.jsx(En,{label:N.code,name:"code",onChange:ce,value:se,width:"100%"}),n.jsx(Go,{label:N.newPassword,name:"password",onChange:function(e){ne(e),j&&Y(y(e,re))},value:te}),j&&n.jsx(Go,{highlightColor:J.error,highlighted:!V,label:N.repeatNewPassword,name:"confirmPassword",onChange:function(e){ie(e),Y(y(te,e))},value:re}),!V&&n.jsx("span",{css:X.changePasswordWarning},N.changePasswordWarning)),"internal"===O&&n.jsx(Go,{label:N.password,name:"password",onChange:de,value:ue}),"mfa"===O&&n.jsx(En,{name:"code",onChange:$,value:Q}),n.jsx("div",{css:X.formActions},n.jsx(Ie,{buttonType:"submit",disabled:Ee,icon:et,label:Pe,onClick:function(){switch(O){case"changePassword":return ve;case"confirmResetPassword":return ye;case"forceChangePassword":return me;case"mfa":return je;case"requestResetPassword":return we;default:return Ce}}()}),("changePassword"===O||"confirmResetPassword"===O||"mfa"===O||"requestResetPassword"===O)&&n.jsx("a",{css:X.cancel,onClick:function(){o.isCallableFunction(E)&&E()}},N.cancel),"requestResetPassword"===O&&n.jsx("a",{css:n.css([X.actionLink,X.haveResetCode]),onClick:function(){o.isCallableFunction(A)&&A()}},N.resetPasswordHaveCode))))),Oe&&n.jsx("footer",{css:X.userDetails},z?n.jsx(xe,{color:"transparent",icon:qe,iconColor:J.fontLight,label:N.signout,labelColor:J.font,onClick:function(){o.isCallableFunction(T)&&T()}}):n.jsx(t.Fragment,null,c&&n.jsx("a",{css:X.actionLink,onClick:function(){o.isCallableFunction(S)&&S()}},n.jsx("h2",{css:X.prompt},N.forgotPassword)),u&&n.jsx("div",null,n.jsx("h2",{css:X.prompt},N.signupPrompt),n.jsx("a",{css:X.actionLink,onClick:function(){o.isCallableFunction(M)&&M()}},N.signup)))),B&&n.jsx("div",{css:X.loading},n.jsx(pe,null)))},oa={name:"yh3jvl",styles:"height:20px;margin-right:5px;width:20px;"},ra={name:"10w3nmc",styles:"list-style:none;margin:20px 0;padding:0;"},ia={name:"vl8ak5",styles:"font-family:'Montserrat',sans-serif;font-size:14px;line-height:20px;position:relative;"},aa={name:"1ajcev4",styles:"& >:not(:last-child){margin-top:10px;}"},sa={name:"79elbk",styles:"position:relative;"},ca={name:"w5in9r",styles:"align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:20px;"},la={name:"1xxqlwe",styles:"display:inline-block;flex:0 1 100%;margin-top:10px;"},ua={name:"19hbn8x",styles:"left:0;position:absolute;top:0;width:100%;"},da={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;"},pa={name:"1vnyfz6",styles:"font-size:18px;font-weight:normal;line-height:40px;margin:0;"},fa=function(e){var t=e.colorPalette;return{action:n.css("border-radius:",G.borderRadius,";cursor:pointer;display:flex;padding:10px;&:hover{background-color:",t.neutral,";}&:not(:last-child){margin-bottom:10px;}"),actionIcon:oa,actionLink:n.css("color:",t.primaryDark,";cursor:pointer;text-decoration:none;&:hover{text-decoration:underline;}"),actionsList:ra,cancel:n.css("color:",t.secondaryDark,";cursor:pointer;font-size:12px;margin-left:10px;:hover{text-decoration:underline;}"),changePasswordWarning:n.css("color:",t.errorDark,";font-size:12px;"),container:ia,form:aa,formContainer:sa,formActions:ca,haveResetCode:la,headerShapes:ua,loading:da,prompt:n.css("color:",t.fontLight,";font-size:14px;font-weight:normal;margin:0;"),userDetails:n.css("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:pa,welcomeMessagePunctuation:n.css("color:",t.secondary,";")}};function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ga.apply(this,arguments)}var ha=function(e,t){return p.createElement("svg",ga({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Qi||(Qi=p.createElement("g",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor"},p.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"}))))},ba=t.forwardRef(ha),ma=["ariaLabel","id","onClose","onOpen","open"],va={name:"198hkja",styles:"display:flex;height:20px;width:20px;"},xa=function(e){var t=e.colorPalette;return{arrow:va,avatar:n.css("background-color:",t.neutral,";border-radius:50%;padding:1px;")}},ya=function(e){var t=e.colorPalette;return{subParagraph:n.css("--color:",t.font,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:12px;font-weight:400;line-height:20px;margin:0;")}},wa=function(e){var t=e.colorPalette;return{heading:n.css("color:",t.font,";font-family:'Montserrat',sans-serif;font-size:24px;font-weight:400;line-height:40px;margin:0 0 30px 0;")}},Ca={name:"cojqun",styles:"border-top-color:transparent;"},ja={name:"xi606m",styles:"text-align:center;"},ka={name:"8atqhb",styles:"width:100%;"},Oa={name:"158oh36",styles:"white-space:nowrap;width:1px;"},Ea={name:"s2uf1z",styles:"text-align:right;"},Pa={name:"79elbk",styles:"position:relative;"},La={name:"guxjpz",styles:"font-weight:500;text-align:left;"},Ia={name:"a1tdk3",styles:"align-items:flex-start;bottom:0;display:flex;justify-content:center;left:0;margin:30px;position:absolute;right:0;"},Sa={name:"14bbtl1",styles:"bottom:calc(50% - 5px);"},Aa={name:"13s366x",styles:"top:calc(50% - 5px);"},Wa=function(e){var t=e.colorPalette;return{bodyCell:n.css("border:0px solid ",t.border,";border-top-width:1px;"),cell:n.css("color:",t.font,";padding:9px 12px;position:relative;transition:border-color ",100,"ms linear;@media print{font-size:13px;}"),cellGrouped:Ca,cellCenter:ja,cellMax:ka,cellMin:Oa,cellRight:Ea,cellSelected:n.css("background-color:",u(t.secondary).alpha(.1).rgb().string(),";border-bottom:1px solid var(--selected-border-color);"),container:Pa,headingCell:La,headingCellSortable:n.css("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:Ia,sortableIcon:n.css("color:",t.border,";position:absolute;right:10px;width:20px;"),sortableIconActive:n.css("color:",t.secondary,";"),sortableIconAsc:Sa,sortableIconDesc:Aa,table:n.css("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:n.css("--selected-border-color:",t.secondary,";"),tableBodySorting:n.css("--selected-border-color:",u(t.secondary).alpha(.25).rgb().string(),";& > tr{opacity:0.25;transition-timing-function:ease-in;}"),tableRow:n.css("transition:opacity ",100,"ms ease-out;")}},Fa=function(e,t){var n={};return"max"===e?n=t.cellMax:"min"===e?n=t.cellMin:e&&(n={minWidth:e}),n},Ta=function(e,t){var n;if(za(e)){var o,r=e.key;n=null==t||null===(o=t[r])||void 0===o?void 0:o.toString()}else if(Da(e)){var i=e.render;n=Ba(i)?i(t):i}else{var a=e.value;n=Za(a)?a(t):a}return n},Ma=function(e,t){return Object.keys(e||{}).reduce((function(n,o){var r=e[o];return g(g({},n),{},b({},o,"function"==typeof r?r(t):r))}),{})},Ra=function(e){return"function"==typeof e},Ba=function(e){return"function"==typeof e},Da=function(e){return Object.hasOwn(e,"render")},za=function(e){return Object.hasOwn(e,"key")},Za=function(e){return"function"==typeof e},Ha=function(e){var r,i=e.align,a=e.columnProps,s=e.index,c=e.onSort,l=e.sortable,u=e.sortedColumnDirection,d=e.sortedColumnIndex,p=e.styles,f=a.align,g=a.headingStyle,h=a.onSort,b=a.sortable,v=a.sorted,x=a.title,y=a.width,w=f||i,C=l&&!1!==b||b,j=v||C&&s===d,k=dr({"data-sorted":u});return n.jsx("th",m({},k,{css:n.css([p.cell,p.headingCell,C&&p.headingCellSortable,"center"===w&&p.cellCenter,"right"===w&&p.cellRight,Fa(y,p),g]),onClick:C?(r=s,function(){var e=r===d&&"ascending"===u?"descending":"ascending";c(e,r),o.isCallableFunction(h)&&h(e)}):null}),x,C&&n.jsx(t.Fragment,null,n.jsx(N,{css:n.css([p.sortableIcon,p.sortableIconAsc,j&&"ascending"===u&&p.sortableIconActive])}),n.jsx(F,{css:n.css([p.sortableIcon,p.sortableIconDesc,j&&"descending"===u&&p.sortableIconActive])})))},Ja=function(e){var t=e.align,o=e.cellStyle,r=e.columns,i=e.index,a=e.onPress,s=e.previousRowGroup,c=e.row,l=e.rowKey,u=e.rowOptions,d=e.rowStyle,p=e.selectedRowKey,f=e.styles,g=Ma(u,c).group,h="function"==typeof d?d(c,i):d;return n.jsx("tr",{css:n.css([f.tableRow,h]),onClick:function(){return a(c,i)},"data-row-group":g},r.map((function(e,r){var a=e.align,u=e.style,d=a||t,h=Ta(e,c),b=Ra(o)?o(c,h,r):o,m=Ra(u)?u(c,h,r):u;return n.jsx("td",{key:"row_".concat(i,"_").concat(r),css:n.css([f.cell,f.bodyCell,"center"===d&&f.cellCenter,"right"===d&&f.cellRight,g&&g===s&&f.cellGrouped,b,m,l===p&&f.cellSelected])},h)})))},Xa=function(e){var t=e.colorPalette;return{container:n.css("--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:n.css("--anim-left:10px;--highlight-color:",t.primary,";border-radius:",G.borderRadius,";background-color:",t.neutral,";& > div{padding:10px;&::before{border-radius:",G.borderRadius,";height:var(--anim-height);top:10px;}}"),containerTransparent:n.css("& > div{padding-bottom:1px;}&::before{border-bottom:1px solid ",t.border,";content:'';left:0;position:absolute;top:28px;width:100%;}"),innerContainer:n.css(G.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:n.css("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:n.css("border-radius:",G.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:n.css("padding:4px 0;&[data-selected]:not([data-animating]){&::after{background-color:var(--highlight-color);border-radius:",G.borderRadius,";content:'';height:2px;left:0;position:absolute;top:calc(100% - 1px);width:100%;}}")}};e.Accordion=re,e.Breadcrumb=function(e){var i=e.breadcrumbs,a=e.id,s=e.keyExtractor,c=e.labelExtractor,l=e.onClick,u=e.showCurrent,d=void 0===u||u,p=r.useWjecOneThemeStyles(le);return n.jsx("ul",{css:p.list,id:a},i.map((function(e,r){var a,u=function(e,t){return o.isKeyLabelPair(e)?e.key:o.extractKey(e,s,t)}(e,r),f=r===i.length-1;return n.jsx(t.Fragment,{key:u},(d||!f)&&n.jsx("li",{css:f?p.currentPage:p.listItem},n.jsx("a",{"aria-current":!!f&&"page",css:f?p.currentPage:p.breadCrumb,href:"#",onClick:f?void 0:(a=u,function(){return l(a)})},o.isKeyLabelPair(e)?e.label:o.extractContent(e,c,r))))})))},e.Button=xe,e.Card=function(e){var o=e.ariaDescription,r=e.borderColor,i=e.children,a=e.id,s=e.padding,c=t.useRef(),l=Be(o);return Se("--padding",s,c),Se("--border-color",r,c),n.jsx("div",m({css:ze.cardMain,id:a,ref:c},l),i)},e.Carousel=st,e.CheckBox=function(e){var a=e.ariaLabel,s=e.checked,c=void 0!==s&&s,l=e.children,u=e.description,d=e.disabled,p=e.gridArea,f=e.highlighted,g=e.id,h=e.label,b=e.labelOverflow,m=void 0===b?"wrap":b,v=e.loading,x=e.onChange,y=e.readonly,C=e.status,j=e.statusMessage;ve('WJEC One CheckBox: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==p}),[p]),ve("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!==f}),[f]),ve('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!==y}),[y]);var k=i.useId(),O=t.useMemo((function(){return g||k}),[k,g]),E=w(r.useWjecOneTheme(),1)[0],P=E.brand,L=E.colorPalette,I=r.useWjecOneThemeStyles(io),S=t.useRef();t.useLayoutEffect((function(){S.current.checked=c}),[c]);var A=t.useMemo((function(){switch(C){case"error":return{background:L.errorBackground,border:L.error};case"success":return{background:L.successBackground,border:L.success};case"warning":return{background:L.warningBackground,border:L.warning};default:return{}}}),[P,C]),W=t.useMemo((function(){return{"--background-color":A.background,"--border-color":A.border,"--margin-right":h&&"8px"}}),[h,A]);return n.jsx("div",{css:I.container},n.jsx("input",{id:O,type:"checkbox",css:I.checkbox,defaultChecked:c,onChange:function(e){var t=e.target.checked;o.isCallableFunction(x)&&x(t)},disabled:d,ref:S}),n.jsx("label",{"aria-label":a,css:I.label,htmlFor:O,onClick:function(e){return e.stopPropagation()},style:W},v&&n.jsx("div",{css:I.loadingIcon},n.jsx(pe,{color:L.primary})),n.jsx("span",{css:I.labelContent,"data-overflow":m},h||l)),n.jsx(ln,null,u),n.jsx(On,{status:C},j))},e.CircularProgress=pe,e.ColorPalette=L,e.ColorPaletteEduqas=I,e.ContextHelp=function(e){var t=e.ariaDescription,o=e.ariaLabel,i=e.children,a=e.id,s=e.toggle,c=void 0===s?n.jsx(dt,{css:Ot.defaultToggle}):s,l=x(e,kt),u=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(jt,m({ariaDescription:t,ariaLabel:o},l,{backgroundColor:u.secondaryDark,id:a,openDelay:500,popupPositionX:"after",popupPositionY:"top",scrollable:!1,textColor:"#FFFFFF",toggle:c,toggleCursor:"help",trigger:"hover"}),i)},e.ContextMenu=Bt,e.DateTimePicker=function(e){var i=e.date,a=e.disabled,s=e.id,c=e.label,l=e.maxDate,u=e.maxTime,d=void 0===u?"":u,p=e.minDate,f=e.minTime,g=void 0===f?"":f,h=e.onChangeDate,b=e.onChangeTime,m=e.placeholder,v=e.readonly,x=e.required,y=e.time,C=e.type,j=void 0===C?"dateTime":C,k=e.validationMessage,O=e.width,E=w(t.useState(""),2),P=E[0],L=E[1],I=w(r.useWjecOneTheme(),1)[0].colorPalette,S=r.useWjecOneThemeStyles(bo);t.useEffect((function(){L("dateTime"===j?i?o.formatDateTime({date:i,format:"yyyy-MM-ddT".concat(y||"HH:mm")}):"":"date"===j?i?o.formatDate({date:i,format:"yyyy-MM-dd"}):"":y||"")}),[i,y,j]);var A=t.useMemo((function(){var e="time"===j?uo:ho;return o.svgComponentToDataURL(n.jsx(e,{color:I.neutralLight}))}),[j]),W=t.useMemo((function(){return"dateTime"===j?"datetime-local":j}),[j]),F=t.useMemo((function(){return!(!l||!p)&&("00:00:00"===l.toTimeString().substring(0,8)&&"00:00:00"===p.toTimeString().substring(0,8))}),[l,p]),T=t.useMemo((function(){if("date"===j||"dateTime"===j){var e=l||("dateTime"===j&&d?new Date:void 0),t="dateTime"===j?"yyyy-MM-ddT".concat(d||(F?"23:59":"HH:mm")):"yyyy-MM-dd";return e?o.formatDateTime({date:e,format:t}):d}return d}),[l,d,j]),M=t.useMemo((function(){if("date"===j||"dateTime"===j){var e=p||("dateTime"===j&&g?new Date:void 0),t="dateTime"===j?"yyyy-MM-ddT".concat(g||(F?"00:00":"HH:mm")):"yyyy-MM-dd";return e?o.formatDateTime({date:e,format:t}):g}return g}),[p,g,j]);return n.jsx("label",{css:n.css([S.label,O&&{width:O}])},c,n.jsx("input",{css:n.css([S.input,{backgroundImage:A}]),disabled:a,id:s,max:T,min:M,onChange:function(e){var t=e.target,n=t.value,r=t.valueAsNumber,i=new Date(r),a=n.substring(n.indexOf("T")+1);k&&t.setCustomValidity(""),L(n),k&&!t.checkValidity()&&(t.setCustomValidity(k),t.reportValidity()),"date"!==j&&"dateTime"!==j||!o.isCallableFunction(h)||h(i),"dateTime"!==j&&"time"!==j||!o.isCallableFunction(b)||b(a)},placeholder:m,readOnly:v,required:x,type:W,value:P}))},e.DestructiveButton=Oe,e.DragAndDropList=function(e){var i=e.gap,a=void 0===i?0:i,s=e.id,l=e.items,u=e.onDrop,d=e.template,p=void 0===d?function(e){var t=e.Handle,o=e.item;return n.jsx(t,null,o.toString())}:d,f=w(t.useState(),2),h=f[0],b=f[1],v=w(t.useState(C(l)),2),x=v[0],y=v[1];t.useEffect((function(){y(C(l))}),[l]);var j=function(e,t,n){var o=document.querySelector("[data-rbd-draggable-id='".concat(n,"']"));if(o){var r=o.clientHeight,i=o.clientWidth,a=o.parentElement,s=parseFloat(window.getComputedStyle(a).paddingTop),c=Array.from(a.children),l=[].concat(c);l.splice(e,1);var u=[].concat(C(l.slice(0,t)),[o],C(l.slice(t+1)));b({height:r,left:parseFloat(window.getComputedStyle(a).paddingLeft),top:s+u.slice(0,t).reduce((function(e,t){var n=window.getComputedStyle(t),o=parseFloat(n.marginBottom);return e+t.clientHeight+o}),0),width:i})}},k=r.useWjecOneThemeStyles(Vt),O=function(e,t){return n.jsx(c.Draggable,{key:l.indexOf(e),draggableId:l.indexOf(e).toString(),index:t},(function(o,r){var i=o.dragHandleProps,s=o.draggableProps,c=o.innerRef;return n.jsx("li",m({ref:c},s,{css:n.css([k.item,t<x.length-1&&{marginBottom:a}])}),p({item:e,Handle:function(e){var t=e.children,o=e.positionType,a=void 0===o?"relative":o,s=e.position,c=void 0===s?{}:s;return n.jsx("div",m({},i,{css:n.css([k.handle,g({position:a},c),r.isDragging&&k.handleGrabbing])}),t)},index:t,sortedItems:C(x)}))}))};return n.jsx(c.DragDropContext,{onDragEnd:function(e){var t=e.destination,n=e.source;if(b(void 0),t){var r=C(x),i=r[n.index];r.splice(n.index,1),r.splice(t.index,0,i),o.isCallableFunction(u)&&u(r),y(r)}},onDragStart:function(e){var t=e.draggableId,n=e.source;j(n.index,n.index,t)},onDragUpdate:function(e){var t=e.destination,n=e.draggableId,o=e.source;t&&j(o.index,t.index,n)}},n.jsx(c.Droppable,{droppableId:"DragAndDropListDropZone"},(function(e,t){var o=e.droppableProps,r=e.innerRef,i=e.placeholder;return n.jsx("ul",m({ref:r},o,{css:n.css([k.list,t.isDraggingOver&&k.listDragging]),id:s}),x.map(O),i,h&&t.isDraggingOver&&n.jsx("div",{css:n.css([k.placeholder,h])}))})))},e.Email=function(e){var t=e.gridArea,o=e.id,i=e.label,a=e.readonly,s=e.value,c=x(e,xo);ve('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=r.useWjecOneThemeStyles(wo);return a?n.jsx("label",{css:n.css([l.label,t&&{gridArea:t}]),id:o},n.jsx("span",{css:l.labelText},i),n.jsx(mo,{href:"mailto:".concat(s)},s)):n.jsx(En,m({gridArea:t,label:i,value:s},c))},e.Emphasis=At,e.ErrorCard=function(e){var t=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(gr,m({},e,{borderColor:t.error,icon:sn,iconColor:t.error,titleColor:t.errorDark}))},e.ErrorNotification=function(e){var t=e.title,o=void 0===t?"Error":t,i=x(e,Fi),a=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(Ci,m({},i,{borderColor:L.error,icon:sn,iconColor:a.error,title:o,titleColor:L.error}))},e.FileInput=function(e){var i=e.ariaLabel,a=e.files,s=void 0===a?[]:a,c=e.height,l=e.id,u=e.max,d=e.multiple,p=e.onError,f=e.onSelect,g=e.placeholderDescription,h=void 0===g?"Drag ".concat(d?"files":"a file"," here or click to select"):g,b=e.placeholderTitle,m=e.validExtensions,v=e.validTypes,x=e.width,y=void 0===x?"100%":x,j=w(r.useWjecOneTheme(),1)[0].colorPalette,k=w(t.useState(s),2),O=k[0],E=k[1],P=w(t.useState(!1),2),L=P[0],I=P[1],S=w(t.useState(!0),2),A=S[0],W=S[1];t.useEffect((function(){E(s)}),[s&&s.length]),t.useEffect((function(){O!==s&&o.isCallableFunction(f)&&f(O)}),[O]);var F=function(e){return d?void 0===u||e<=u:e<=1},T=function(e){var t=[].concat(C(d?O:[]),C(e)),n=t.length,r=[],i=[],a=[];F(n)?(t.forEach((function(e){var t=!a.some((function(t){return o=e,(n=t).name===o.name&&n.type===o.type&&n.size===o.size&&n.lastModified===o.lastModified;var n,o})),n=function(e){var t=e.name,n=t.substr(t.lastIndexOf("."));return void 0===m||m.includes(n)}(e),o=function(e){var t=e.type;return void 0===v||v.includes(t)}(e);t&&n&&o&&a.push(e),n||r.push(e),o||i.push(e)})),E(a)):o.isCallableFunction(p)&&p([{code:"MAX_FILES_EXCEEDED",details:{maxCount:u||1,selectedCount:n}}]),(r.length||i.length)&&o.isCallableFunction(p)&&p([r.length&&{code:"INVALID_FILE_EXTENSION",details:{files:r}},i.length&&{code:"INVALID_FILE_TYPE",details:{files:i}}].filter((function(e){return e})))},M=function(e){return function(t){o.preventDefaultBehavior(t.nativeEvent),E((function(t){return t.filter((function(t){return t!==e}))}))}},R=r.useWjecOneThemeStyles(Io);return n.jsx("label",{"aria-label":i,css:n.css([R.container,c&&{height:c},L&&{borderColor:A?j.primary:j.error},y&&{width:y}]),id:l,onDragEnter:function(e){var t=e.dataTransfer.items.length;o.preventDefaultBehavior(e.nativeEvent),I(!0),W(F(t+O.length))},onDragLeave:function(e){o.preventDefaultBehavior(e.nativeEvent),I(!1)},onDragOver:function(e){o.preventDefaultBehavior(e.nativeEvent)},onDrop:function(e){var t=Array.from(e.dataTransfer.files);o.preventDefaultBehavior(e),T(t),I(!1)}},n.jsx("input",{type:"file",value:"",multiple:d,css:G.visiblyHidden,onChange:function(e){var t=Array.from(e.currentTarget.files);T(t)}}),n.jsx(Oo,{css:R.uploadIcon}),O.length?n.jsx("ul",{css:R.fileList},O.map((function(e){var t=e.lastModified,o=e.name,r=e.size,i=Math.floor(Math.log(r)/Math.log(1024)),a=(r/Math.pow(1024,i)).toFixed(2),s=r>0?"".concat(a).concat(Eo[i]):"0 bytes";return n.jsx("li",{key:"".concat(o,"_").concat(t),css:R.fileListItem},n.jsx("h4",{css:R.title},o),n.jsx("span",{css:R.fileSize},s),n.jsx(Fn,{css:R.removeIcon,onClick:M(e)}))}))):n.jsx(t.Fragment,null,b&&n.jsx("h4",{css:R.title},b),h&&n.jsx("p",{css:R.description},h)))},e.FilterList=function(e){var i=e.ariaLabel,a=e.ariaMultiselectable,s=e.ariaPosInSet,c=e.ariaSetSize,l=e.clearButtonBehaviour,u=void 0===l?"clear":l,d=e.expanded,p=e.filter,f=void 0===p||p,h=e.floatingList,b=e.floatingListPosition,m=void 0===b?{top:10}:b,v=e.icon,x=e.id,y=e.label,j=e.loading,k=e.maxHeight,O=void 0===k?150:k,E=e.noMatchesMessage,P=void 0===E?"No matches were found":E,L=e.onChange,I=e.onFilter,S=e.optionKeyExtractor,A=e.optionTemplate,W=void 0===A?function(e){var o=e.option;return n.jsx(t.Fragment,null,o)}:A,F=e.options,T=e.placeholder,M=e.value,R=void 0===M?"":M,B=w(r.useWjecOneTheme(),1)[0].colorPalette;ue("WJEC-One FilterList: You must specify a keyExtractor if the options array contains non-primitive entry types",(function(){return!o.isPrimitiveArray(F)&&!o.isKeyLabelPairArray(F)&&!S}),[S,F]);var D=t.useRef(),z=t.useRef(),Z=t.useRef(),H=w(t.useState(R),2),J=H[0],X=H[1],N=w(t.useState(0),2),G=N[0],V=N[1],Y=w(t.useState(0),2),q=Y[0],U=Y[1],K=w(t.useState("below"),2),_=K[0],Q=K[1],$=w(t.useState(0),2),ee=$[0],te=$[1],ne=w(t.useState(C(F)),2),oe=ne[0],re=ne[1],ie=w(t.useState(),2),ae=ie[0],se=ie[1],ce=w(t.useState([]),2),le=ce[0],de=ce[1],fe=w(t.useState(1),2),ge=fe[0],he=fe[1],be=t.useMemo((function(){return v&&o.svgComponentToDataURL(t.createElement(v,{color:B.fontLight}))}),[v]);t.useEffect((function(){var e;e=f&&J?F.filter((function(e,t){return we(e,t).toString().toLowerCase().includes(J.toLowerCase())})):C(F),o.isArrayEqual(e,oe)||(o.isCallableFunction(I)&&I(e),re(e))}),[J,f,F]),t.useEffect((function(){!ae||F.length||J||xe(),D.current.querySelector('input[type="text"]')===document.activeElement&&ye()}),[J,F]),t.useEffect((function(){d!==ae&&(d?ye():xe())}),[d]),t.useEffect((function(){R!==J&&X(R)}),[R]),t.useEffect((function(){return ae?(document.addEventListener("scroll",xe,!0),window.addEventListener("click",me),window.addEventListener("resize",ve)):(document.removeEventListener("scroll",xe,!0),window.removeEventListener("click",me),window.removeEventListener("resize",ve)),function(){document.removeEventListener("scroll",xe,!0),window.removeEventListener("click",me),window.removeEventListener("resize",ve)}}),[ae]),t.useEffect((function(){he(1),z.current&&z.current.scrollTo({top:0})}),[oe]),t.useEffect((function(){de((function(e){var t=ge>1?C(e):[],n=50*ge-50,o=n+50;return t.length=50*(ge-1),[].concat(C(t),C(oe.slice(n,o).map(Ee)))}))}),[oe,ge]);var me=function(e){var t=e.target;t===D.current||D.current.contains(t)||xe()},ve=o.throttle((function(){return ye()}),{limit:250}),xe=function(){Z.current===document.activeElement&&D.current.querySelector('input[type="text"]').focus(),se(!1),he(1)},ye=function(){if(F.length>0||!!J){var e=D.current.getBoundingClientRect(),t=e.top+e.height,n=window.innerHeight-t,o="below";if(!h){if(n<O){var r=e.top;(r>O||r>n)&&(o="above")}"below"===o?(V(Math.min(O,window.innerHeight-t-10)),U(e.top+D.current.querySelector('input[type="text"]').offsetTop)):(V(Math.min(O,e.top-10)),U(window.innerHeight-t-1))}Q(o),te(e.width),se(!0)}},we=function(e,t){return o.isKeyLabelPair(e)?e.key:o.extractKey(e,S,t)},Ce=function(e){var t="string"==typeof e?e:e.currentTarget.value;o.isCallableFunction(L)&&L(t),X(t)},je=o.throttle((function(e){var t=e.target;e.nativeEvent.stopImmediatePropagation(),t.scrollTop+2*t.clientHeight>t.scrollHeight&&50*ge<oe.length&&he((function(e){return e+1}))}),{beforeDelay:function(e){e.nativeEvent.stopImmediatePropagation(),e.persist()},limit:250}),ke=r.useWjecOneThemeStyles(Kn),Oe=function(){return n.jsx("input",{ref:Z,css:n.css([ke.listInput,be&&[ke.listInputWithIcon,{backgroundImage:be}]]),autoFocus:!0,onChange:Ce,placeholder:T,value:J})},Ee=function(e){var t=F.indexOf(e);return n.jsx("li",{"aria-posinset":s,"aria-setsize":c,key:we(e,t)},W({option:e,index:t,filteredOptions:C(oe)}))};return n.jsx("div",{ref:D,css:ke.container,id:x,onClick:function(e){var t=e.target;ae||t!==D.current.querySelector('input[type="text"]')||t!==document.activeElement||ye()}},n.jsx(En,{"aria-label":i,"aria-multiselectable":a,icon:v,label:y,onChange:Ce,onFocus:ye,placeholder:T,value:J}),ae&&n.jsx("div",{"aria-expanded":!0,css:n.css([ke.expandedContainer,"above"===_?[ke.expandedContainerAbove,{bottom:q}]:{top:q},{width:ee},h&&[ke.expandedContainerFloating,g(g({},m),{},{maxHeight:"calc(100% - ".concat(2*m.top,"px)")})]])},"below"===_&&Oe(),n.jsx(Fn,{css:n.css([ke.clearIcon,"above"===_&&ke.clearIconAbove]),onClick:function(){"clear"!==u&&"clearAndClose"!==u||X(""),"clear"===u&&Z.current.focus(),"clearAndClose"!==u&&"close"!==u||xe()}}),n.jsx("div",{css:n.css([ke.listContainer,"above"===_&&ke.listContainerAbove]),onScroll:je},n.jsx("ul",{ref:z,css:n.css([ke.list,h&&ke.listFloating,!h&&{maxHeight:G}])},oe.length?le:n.jsx("li",{css:ke.noResults},n.jsx(Bn,{css:ke.noResultsIcon}),P)),j&&n.jsx("div",{css:n.css([ke.loading,"above"===_&&ke.loadingAbove,!h&&{maxHeight:G}])},n.jsx(pe,null))),"above"===_&&Oe()))},e.Footer=Ar,e.Form=function(e){var t=e.ariaDescription,r=e.ariaLabel,i=e.children,a=e.clearButton,s=void 0===a?"Clear":a,c=e.clearId,l=e.id,u=e.onClear,d=e.onSubmit,p=e.otherActions,f=e.submitButton,g=void 0===f?"Submit":f,h=e.submitId,b=e.width,v=Be(t);return n.jsx("form",m({"aria-label":r,css:n.css({width:b}),id:l,onReset:function(e){e.preventDefault(),o.isCallableFunction(u)&&u()},onSubmit:function(e){e.preventDefault(),o.isCallableFunction(d)&&d()}},v),i,n.jsx("section",{css:_n.controls},s&&n.jsx(xe,{buttonType:"reset",id:c,label:s}),n.jsx("div",{css:_n.submit},g&&n.jsx(Ie,{buttonType:"submit",id:h,label:g})),p&&n.jsx(Bt,{options:p})))},e.Header=Xr,e.IconButton=Pe,e.InfoNotification=function(e){var t=e.title,o=void 0===t?"Information":t,i=x(e,Ti),a=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(Ci,m({},i,{borderColor:a.primary,iconColor:a.primary,title:o,titleColor:a.primary}))},e.InformationCard=gr,e.Input=En,e.LinearProgress=Ur,e.Link=mo,e.LinkButton=function(e){var t=e.loading,o=x(e,Le),i=w(r.useWjecOneTheme(),1)[0].colorPalette;return ue("WJEC One LinkButton: A LinkButton cannot have an unaccompanied icon",(function(){return o.icon&&!(o.children||o.label)}),[o]),n.jsx(xe,m({},o,{loading:t,color:t?i.neutral:"transparent",iconColor:i.fontLight,labelColor:i.primaryDark}))},e.LocalizationMenu=function(e){var o=e.ariaLabel,i=e.context,a=e.icons,s=e.id,c=e.keySuffix,l=void 0===c?"":c,u=e.open,d=void 0!==u&&u,p=e.selectLocaleAction,f=e.showLocaleNameInList,g=void 0===f||f,h=e.showSelectedLocaleName,b=w(r.useWjecOneTheme(),1)[0].colorPalette,m=w(t.useContext(i),2),v=m[0],x=v.availableLocales,y=v.locale,C=v.strings,j=m[1],k=w(t.useState(d),2),O=k[0],E=k[1],P=w(t.useState(y),2),L=P[0],I=P[1];t.useEffect((function(){d!==O&&E(d)}),[d]),t.useEffect((function(){y!==L&&I(y)}),[y]),t.useEffect((function(){j(p(L))}),[L]);var S=function(e){return function(){return E(e)}};return n.jsx(Bt,{"aria-label":o,id:s,open:O,options:null==x?void 0:x.map((function(e){return{icon:a&&a[e],label:g&&(C["".concat(String(e)).concat(l)]||"".concat(String(e)).concat(l)),onClick:(t=e,function(){I(t),E(!1)})};var t})),onHide:S(!1),onShow:S(!0),toggle:n.jsx(xe,{allowEventPropagation:!0,color:"transparent",icon:a&&a[y],labelColor:b.fontLight},h&&(C["".concat(String(y)).concat(l)]||"".concat(String(y)).concat(l)),n.jsx(F,{css:$r.icon}))})},e.Modal=function(e){var i=e.actionButton,a=void 0===i?"Confirm":i,c=e.actionButtonId,u=e.actionDisabled,d=e.actionLoading,p=e.actionLoadingProgress,f=e.actionType,h=void 0===f?"positive":f,b=e.blockScroll,v=void 0===b||b,x=e.cancelButton,y=void 0===x?"Cancel":x,j=e.cancelButtonId,k=e.children,E=e.closeOnCancel,P=void 0===E||E,L=e.closeOnClickOutside,I=void 0===L||L,S=e.description,A=e.fullscreen,W=e.id,F=e.maxHeight,T=void 0===F?A?"95vh":"90vh":F,M=e.maxWidth,R=void 0===M?A?"100vw":"60vw":M,B=e.minHeight,D=void 0===B?A?"95vh":"200px":B,z=e.minWidth,Z=void 0===z?A?"100vw":"200px":z,H=e.onAction,J=e.onCancel,X=e.onClose,N=e.onOpen,G=e.open,V=e.otherActions,Y=e.padding,q=void 0===Y?"30px":Y,U=e.showCloseIcon,K=void 0===U||U,_=e.stableScrollbar,Q=void 0===_||_,$=e.title,ee=e.ariaDescription,te=void 0===ee?S:ee,ne=e.ariaLabel;ve("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!==A}),[A]);var oe,re,ie,ae,se,ce,le,ue,de,pe,fe,ge,he=w(t.useState(G),2),be=he[0],me=he[1],ye=t.useRef(),we=t.useRef(),Ce=t.useRef(30),je=t.useRef(),ke=t.useRef(),Ee=Be(o.formattedStringToPlainText(te));oe=ye,re={focusElement:K?1:0,shouldTrapFocus:be},ie=g(g({},ii),re),ae=ie.dependencies,se=ie.focusElement,ce=ie.shouldTrapFocus,le=t.useRef([]),ue=t.useMemo((function(){return"function"==typeof ce?ce():ce}),[ce]),t.useEffect((function(){var e,t,n,r,i=o.isRefObject(oe)?oe.current:oe;return ue&&i&&(le.current=o.getKeyboardFocusableElements(i),(t=new MutationObserver((function(e){var t,n=O(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))&&(le.current=o.getKeyboardFocusableElements(i))}}catch(e){n.e(e)}finally{n.f()}}))).observe(i,{attributes:!0,childList:!0,subtree:!0}),e=function(e){var t=void 0===e.code?e.key:e.code,n=le.current[0],o=le.current[le.current.length-1];"Tab"===t&&(e.shiftKey||document.activeElement!==o||(n.focus(),e.preventDefault()),e.shiftKey&&document.activeElement===n&&(o.focus(),e.preventDefault()))},"number"==typeof se&&(null===(n=le.current[se])||void 0===n||n.focus()),"string"==typeof se&&(null===(r=le.current.find((function(e){return e.matches(se)})))||void 0===r||r.focus()),se instanceof HTMLElement&&le.current.includes(se)&&se.focus(),document.documentElement.addEventListener("keydown",e)),function(){document.documentElement.removeEventListener("keydown",e),t.disconnect()}}),[oe,ue].concat(C(ae))),function(e,t,n){ri("keydown",(function(n){(void 0===n.code?n.key:n.code).toLowerCase()===e.toLowerCase()&&t()}),n)}("escape",(function(){return Pe()}),{shouldAddListener:be}),t.useEffect((function(){G&&Se()}),[G]),t.useLayoutEffect((function(){be&&(ye.current.removeAttribute("data-hidden"),Le(),je.current=document.activeElement)}),[be]),t.useLayoutEffect((function(){we.current&&(Ce.current=parseInt(getComputedStyle(we.current).paddingRight))}),[q]),de=function(){G||Pe()},pe=[G],fe=t.useRef(!1),t.useEffect((function(){var e;return fe.current?e=de():fe.current=!0,e}),pe),ge=function(){var e;l.enableBodyScroll(we.current),null===(e=ye.current)||void 0===e||e.removeEventListener("transitionend",ke.current)},t.useEffect((function(){return ge}),[]);var Pe=function(){ke.current=function(){var e;l.enableBodyScroll(we.current),null===(e=je.current)||void 0===e||e.focus(),o.isCallableFunction(X)&&X(),me(!1)},ye.current.addEventListener("transitionend",ke.current,{once:!0}),ye.current.setAttribute("data-hidden","true")},Le=function(){v&&l.disableBodyScroll(we.current,{reserveScrollBarGap:!0,allowTouchMove:function(e){return we.current.contains(e)}})},Se=function(){o.isCallableFunction(N)&&N(),me(!0)},Ae="positive"===h?Ie:Oe,We=$||K,Fe=r.useWjecOneThemeStyles(gi);return be?s.createPortal(n.jsx("div",m({"aria-modal":!0,"aria-label":ne,css:Fe.background,id:W,onClick:function(e){var t=e.target;I&&(t===ye.current&&Pe())},ref:ye,role:"dialog","data-hidden":!0},Ee),n.jsx("div",{ref:we,css:n.css([Fe.modal,{maxHeight:T,maxWidth:R,minHeight:D,minWidth:Z,padding:q}])},We&&n.jsx("header",{css:Fe.header},$&&n.jsx(At,null,$),K&&n.jsx("button",{css:Fe.closeButton,onClick:Pe},n.jsx(Fn,{css:Fe.closeIcon}))),S&&n.jsx("p",{css:Fe.description},S),n.jsx(ei,{styles:[Fe.content,We&&Fe.contentWithHeader,Q&&Fe.contentWithStableScrollbar,n.css("@supports (scrollbar-gutter:stable){margin-right:",-1*Ce.current,"px;padding-right:",Math.max(Ce.current-(Q?14:0),0),"px;}")]},k),(a||y||V)&&n.jsx("footer",{css:Fe.footer},y&&n.jsx(xe,{id:j,label:y,onPress:function(){P&&Pe(),o.isCallableFunction(J)&&J()}}),n.jsx("section",{css:Fe.otherActions},V&&(t.isValidElement(V)?V:n.jsx(Bt,{options:V}))),a&&n.jsx(Ae,{disabled:u,id:c,label:a,loading:d,loadingProgress:p,onPress:H})))),document.body):null},e.Notification=Ci,e.Page=function(e){var t=e.children,o=e.footerProps,r=e.headerProps,i=e.maxWidth,a=void 0===i?1280:i;return n.jsx("div",{css:qr.pageWrapper},n.jsx(Xr,m({},r,{maxWidth:a})),n.jsx("main",{css:n.css([qr.content,{maxWidth:"".concat(a+60,"px")}])},t),n.jsx(Ar,m({},o,{maxWidth:a})))},e.PageTitle=function(e){var o=e.children,i=e.color,a=e.id,s=t.useRef(),c=r.useWjecOneThemeStyles(Ri);return Se("--color",i,s),n.jsx("h1",{css:c.heading,id:a,ref:s},o)},e.Pagination=function(e){var i=e.ariaCurrent,a=e.ariaLabel,s=e.compact,c=void 0!==s&&s,l=e.current,u=void 0===l?1:l,d=e.id,p=e.onSelect,f=e.total,g=function(e){return function(){e>0&&e<f+1&&o.isCallableFunction(p)&&p(e)}},h=t.useMemo((function(){return f>5?u<4?[2,3,4,"..."]:u>f-3?["...",f-3,f-2,f-1]:["...",u-1,u,u+1,"..."]:C(Array(Math.max(0,f-2)).keys()).map((function(e){return e+2}))}),[u,f]),b=r.useWjecOneThemeStyles(Zi);return n.jsx("ol",{"aria-label":a,css:b.container,id:d},n.jsx("li",{"aria-current":i,css:n.css([b.option,b.optionNextPrevious,1===u&&b.optionDisabled]),onClick:g(u-1)},n.jsx(B,{height:"100%",width:"100%"})),c?n.jsx("li",{css:b.compact},u," of ",f):n.jsx(t.Fragment,null,n.jsx("li",{css:n.css([b.option,1===u&&b.optionSelected]),onClick:g(1)},"1"),h.map((function(e,t){return n.jsx("li",{key:t,css:n.css([b.option,e===u&&b.optionSelected,"string"==typeof e&&b.optionSeparator]),onClick:"number"==typeof e?g(e):null},e)})),f>1&&n.jsx("li",{css:n.css([b.option,u===f&&b.optionSelected]),onClick:g(f)},f)),n.jsx("li",{css:n.css([b.option,b.optionNextPrevious,u===f&&b.optionDisabled]),onClick:g(u+1)},n.jsx(H,{height:"100%",width:"100%"})))},e.Paragraph=Ft,e.Password=Go,e.Popup=jt,e.PopupWindow=Ji,e.PrimaryButton=Ie,e.PrintLayout=Ni,e.PrintWindow=function(e){var r=e.ariaLabel,i=e.autoPrint,a=e.children,s=e.closeOnPrint,c=e.id,l=e.onClose,u=e.onOpen,d=x(e,qi),p=w(t.useState(!1),2),f=p[0],g=p[1],h=w(t.useState(!1),2),b=h[0],v=h[1],y=t.useRef();t.useEffect((function(){f&&b&&C()}),[f,b]);var C=function(){o.isCallableFunction(u)&&u(y.current),i&&y.current.print()},j=function(){s&&y.current.close()};return n.jsx(Ji,m({},d,{id:c,onClose:function(){g(!1),v(!1),o.isCallableFunction(l)&&l()},onOpen:function(e){(y.current=e,y.current.document.body.style.margin="0",y.current.document.body.style.padding="0","onafterprint"in y.current)?y.current.onafterprint=j:window.matchMedia("print").addListener((function(e){return e.matches&&j()}));v(!0)}}),n.jsx(Ni,m({ariaLabel:r},d,{onLayout:function(){g(!0)}}),a))},e.RadioGroup=function(e){var a=e.ariaLabel,s=e.description,c=e.disabled,l=e.gridArea,u=e.keyExtractor,d=e.highlightedOption,p=e.id,f=e.label,g=e.labelExtractor,h=e.name,b=e.onSelect,m=e.options,v=e.orientation,x=void 0===v?"horizontal":v,y=e.selectedOption,C=e.status,j=e.statusMessage;ve('WJEC One RadioGroup: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==l}),[l]),ue("WJEC-One RadioGroup: You must specify a keyExtractor if the options array contains non-primitive entry type",(function(){return!o.isPrimitiveArray(m)&&!o.isKeyLabelPairArray(m)&&!u}),[u]),ve("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 k=i.useId(p),O=t.useRef();t.useLayoutEffect((function(){if(y){var e=O.current.querySelectorAll('input[type="radio"]'),t=m.indexOf(y),n=S(y,t),o=Array.from(e).find((function(e){return e.value===n}));o&&(o.checked=!0)}}),[m,y]);var E=w(r.useWjecOneTheme(),1)[0],P=E.brand,L=E.colorPalette,I=t.useMemo((function(){switch(C){case"error":return{background:L.errorBackground,border:L.error};case"success":return{background:L.successBackground,border:L.success};case"warning":return{background:L.warningBackground,border:L.warning};default:return{}}}),[P,C]),S=function(e,t){return o.isKeyLabelPair(e)?e.key:o.extractKey(e,u,t)},A=function(e){return function(){o.isCallableFunction(b)&&b(e)}},W=r.useWjecOneThemeStyles(Uo),F=t.useMemo((function(){return{"--background-color":I.background,"--border-color":I.border,"--flex-direction":"vertical"===x&&"column","--flex-gap":"vertical"===x&&"16px 8px","--margin-top":f&&"4px"}}),[f,x,I]);return n.jsx("label",{css:W.label,id:k,"data-disabled":c||void 0},f,n.jsx("fieldset",{css:W.container,ref:O,style:F},m.map((function(e,r){var i=S(e,r),s=r===m.indexOf(y);return n.jsx(t.Fragment,{key:i},n.jsx("input",{css:W.radioButton,defaultChecked:s,disabled:c,id:"".concat(k,"_").concat(r),name:h||k,onChange:A(e),type:"radio",value:i}),n.jsx("label",{"aria-label":a,css:W.radioButtonContainer,htmlFor:"".concat(k,"_").concat(r)},o.isKeyLabelPair(e)?e.label:o.extractContent(e,g,r)))}))),n.jsx(ln,null,s),n.jsx(On,{status:C},j))},e.ScrollableContainer=ei,e.SecondaryButton=function(e){var t=Object.assign({},(v(e),e)),o=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(xe,m({},t,{activeColor:o.secondary,borderColor:t.disabled?"none":o.secondaryDark,color:"#FFFFFF",focusColor:o.secondaryLight,hoverColor:o.secondaryLight,labelColor:o.secondaryDark,labelColorActive:o.secondaryDark,outlineColor:"#FFFFFF"}))},e.SectionHeading=function(e){var o=e.children,i=e.color,a=e.id,s=t.useRef(),c=r.useWjecOneThemeStyles(Ui);return Se("--border-left-color",i,s),n.jsx("h3",{css:c.sectionHeading,id:a},o)},e.SectionTitle=function(e){var o=e.children,i=e.color,a=e.id,s=t.useRef(),c=r.useWjecOneThemeStyles(Ki);return Se("--color",i,s),n.jsx("h3",{css:c.title,id:a,ref:s},o)},e.Select=function(e){var a=e.gridArea,s=e.highlightColor,c=e.highlighted,l=e.optionComparator,u=e.readonly,d=e.sortOptions,p=e.blankOption,f=e.description,g=e.disabled,h=e.id,b=e.label,m=e.name,v=e.onSelect,x=e.optionKeyExtractor,y=e.optionLabelExtractor,C=e.options,j=e.placeholder,k=e.selectedOption,O=e.status,E=e.statusMessage;!function(e){var t=e.gridArea,n=e.highlightColor,o=e.highlighted,r=e.optionComparator,i=e.readonly,a=e.sortOptions;ve('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]),ve('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!==o}),[o]),ve('WJEC One Select: The "highlightColor" prop has been deprecated due to its association with the deprecated `highlighted` prop',(function(){return void 0!==n}),[n]),ve('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!==r}),[r]),ve('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]),ve('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:a,highlightColor:s,highlighted:c,optionComparator:l,readonly:u,sortOptions:d}),ve("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 C.some((function(t){return!!(lr(t)&&o.isPrimitiveArray(t.options)&&o.containsDuplicates(t.options))||(!!e.has(t)||(e.add(t),!1))}))&&!x}),[x,C]),ue("WJEC One Select: You must specify a keyExtractor if the options array contains non-primitive entry types",(function(){return C.some((function(e){if(lr(e)){var t=e.options,n=o.isPrimitiveArray(t),r=o.isKeyLabelPairArray(t);return!(n||r||x)}return!(o.isPrimitive(e)||o.isKeyLabelPair(e)||x)}))}),[x,C]);var P=w(r.useWjecOneTheme(),1)[0],L=P.brand,I=P.colorPalette,S=t.useRef(),A=i.useId(),W=t.useMemo((function(){return h||A}),[A,h]),F=t.useMemo((function(){return k?cr(k,x,C):""}),[x,C,k]);t.useLayoutEffect((function(){S.current.value=F}),[F]);var T=t.useMemo((function(){switch(O){case"error":return{background:I.errorBackground,border:I.error};case"success":return{background:I.successBackground,border:I.success};case"warning":return{background:I.warningBackground,border:I.warning};default:return{}}}),[L,O]),M=function(e,t){var r=cr(e,x,C);return n.jsx("option",{key:r,value:r},o.isKeyLabelPair(e)?e.label:o.extractContent(e,y,t))},R=r.useWjecOneThemeStyles(sr),B=t.useMemo((function(){return{"--background-color":T.background,"--border-color":T.border,"--margin-top":b&&"4px"}}),[b,T]);return n.jsx("label",{css:R.label,htmlFor:W,"data-disabled":g},b,n.jsx("select",{ref:S,css:R.select,defaultValue:F,disabled:g,id:W,name:m,onChange:function(e){var t=function(e,t,n){var o;return n.find((function(r){if(lr(r))o=r.options.find((function(o){return cr(o,t,n)===e}));else{var i=cr(r,t,n);o=i===e?r:void 0}return void 0!==o})),o}(e.target.value,x,C);o.isCallableFunction(v)&&v(t)},style:B},j&&n.jsx("option",{disabled:!0,hidden:!0,value:""},j),p&&n.jsx("option",{value:""}),C.map((function(e,t){return lr(e)?n.jsx("optgroup",{key:e.label,label:e.label},e.options.map((function(e){return M(e,t)}))):M(e,t)}))),n.jsx(ln,null,f),n.jsx(On,{status:O},E))},e.SigninForm=na,e.SigninMenu=function(e){var o=e.ariaLabel,i=e.id,a=e.onClose,s=e.onOpen,c=e.open,l=void 0!==c&&c,u=x(e,ma),d=w(r.useWjecOneTheme(),1)[0].colorPalette,p=w(t.useState(l),2),f=p[0],g=p[1];t.useEffect((function(){l!==f&&g(l)}),[l]);var h=r.useWjecOneThemeStyles(xa);return n.jsx(jt,{"aria-label":o,id:i,maxHeight:"425px",onHide:a,onShow:s,open:f,padding:"0",toggle:n.jsx(xe,{allowEventPropagation:!0,color:"transparent",icon:function(e){return n.jsx(ba,m({css:h.avatar},e))},id:"signinMenu",labelColor:d.fontLight},n.jsx(F,{css:h.arrow})),width:"276px"},n.jsx(na,u))},e.StylePalette=G,e.SubParagraph=function(e){var o=e.children,i=e.color,a=e.id,s=t.useRef(),c=r.useWjecOneThemeStyles(ya);return Se("--color",i,s),n.jsx("p",{css:c.subParagraph,id:a,ref:s},o)},e.SubTitle=function(e){var t=e.children,o=e.id,i=r.useWjecOneThemeStyles(wa);return n.jsx("h2",{css:i.heading,id:o},t)},e.SuccessCard=function(e){var t=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(gr,m({},e,{borderColor:t.success,icon:nn,iconColor:t.success,titleColor:t.successDark}))},e.SuccessNotification=function(e){var t=e.title,o=void 0===t?"Sucess":t,i=x(e,Mi),a=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(Ci,m({},i,{borderColor:L.success,icon:nn,iconColor:a.success,title:o,titleColor:L.success}))},e.Table=function(e){var i,a=e.cellStyle,s=e.columns,c=e.columnOptions,l=e.data,u=e.keyExtractor,d=e.id,p=e.onClickRow,f=e.onPressRow,g=void 0===f?p:f,h=e.preSorted,b=e.rowOptions,m=e.rowStyle,v=e.selectedRow,x=e.sortable,y=void 0!==x&&x;ve('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!==p}),[p]);var j=t.useRef(),k=w(t.useState(!1),2),O=k[0],E=k[1],P=w(t.useState(),2),L=P[0],I=P[1],S=w(t.useState(),2),A=S[0],W=S[1],F=t.useRef(),T=t.useRef(),M=t.useMemo((function(){return function(e,t){var n=null==t?void 0:t[0];return e instanceof Array?e:e(n)}(s,l)}),[s,l]),R=t.useMemo((function(){return function(e,t,n){var r;return e&&(r=n?o.extractKey(e,n,t):t),r}(v,l.indexOf(v),u)}),[l,u,v]),B=t.useMemo((function(){return M.filter((function(e){var t=e.sortable;return y&&!1!==t||t}))}),[M]),D=t.useMemo((function(){return function(e){var t=e.data,n=e.preSorted,r=e.sortableColumns,i=e.sortedColumn,a=e.sortedColumnDirection,s=C(t);if(!n&&r.length>0&&i){var c=i.sortableValue;s.sort((function(e,n){var r,s=c?o.extractKey(e,c,t.indexOf(e)):Ta(i,e),l=c?o.extractKey(n,c,t.indexOf(n)):Ta(i,n);return void 0===s?1:void 0===l?-1:(null==s||null===(r=s.toString())||void 0===r?void 0:r.localeCompare(null==l?void 0:l.toString()))*("ascending"===a?1:-1)}))}return s}({data:l,preSorted:h,sortableColumns:B,sortedColumn:M[A],sortedColumnDirection:L})}),[M,l,h,B,L,A]);t.useEffect((function(){if(B.length>0||h){var e=M.indexOf(B.find((function(e){return e.sorted}))||B[0]),t=M[e].sorted,n=void 0===t?"ascending":t;!n||n===F.current&&e===T.current||(F.current=n,T.current=e,I(n),W(e))}}),[M,B]),t.useEffect((function(){O&&E(!1)}),[D]);var z=function(e,t){h||(E(!0),setTimeout((function(){t!==A&&W(t),I(e)}),100))},Z=function(e,t){o.isCallableFunction(g)&&g(e,t)},H=r.useWjecOneThemeStyles(Wa);return n.jsx("div",{css:H.container},n.jsx("table",{css:H.table,id:d},n.jsx("thead",{ref:j},n.jsx("tr",null,M.map((function(e,t){var o=null==l?void 0:l[0],r=Ma(c,o).align;return n.jsx(Ha,{key:"table_header_".concat(t),align:r,columnProps:e,index:t,onSort:z,sortable:y,sortedColumnDirection:L,sortedColumnIndex:A,styles:H})})))),n.jsx("tbody",{css:n.css([H.tableBody,O&&H.tableBodySorting])},D.map((function(e,t){var r=u?o.extractKey(e,u,t):t,i=Ma(c,e).align,s=(t>0&&Ma(b,D[t-1])).group;return n.jsx(Ja,{key:r,align:i,cellStyle:a,columns:M,index:t,onPress:Z,previousRowGroup:s,row:e,rowKey:r,rowOptions:b,rowStyle:m,selectedRowKey:R,styles:H})})))),O&&n.jsx("div",{css:n.css([H.loading,{top:null==j||null===(i=j.current)||void 0===i?void 0:i.offsetHeight}])},n.jsx(pe,null)))},e.Tabs=function(e){var i=e.ariaLabel,a=e.backgroundStyle,s=void 0===a?"filled":a,c=e.disabledTabs,l=void 0===c?[]:c,u=e.id,d=e.keyExtractor,p=e.labelExtractor,f=e.onSelect,g=e.scrollable,h=e.selectedTab,b=e.selectedTabColor,v=e.tabs,x=w(t.useState(o.getSelected(h,v)),2),y=x[0],C=x[1],j=t.useRef(),k=r.useWjecOneThemeStyles(Xa),O=t.useMemo((function(){return l.map((function(e){return o.isKeyLabelPair(e)?e.key:o.extractKey(e,d,v.indexOf(e))}))}),[l]),E=t.useMemo((function(){return o.isKeyLabelPair(y)?y.key:o.extractKey(y,d,v.indexOf(y))}),[y]);ue("WJEC-One Tabs: You must specify a keyExtractor if the tabs array contains non-primitive entry types",(function(){return!o.isPrimitiveArray(v)&&!o.isKeyLabelPairArray(v)&&!d}),[d,v]),t.useEffect((function(){void 0!==g&&o.developerWarning('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')}),[g]),t.useEffect((function(){C(o.getSelected(h,v))}),[h,v]),t.useEffect((function(){if(j.current){var e=j.current.querySelector("[data-selected]");e&&e.scrollIntoView({behavior:"smooth"})}}),[j.current,y]);return n.jsx("div",{"aria-label":i,ref:j,css:n.css([k.container,"filled"===s&&k.containerFilled,"transparent"===s&&k.containerTransparent,b&&{"--highlight-color":b}]),id:u},n.jsx("div",{css:k.innerContainer},v.map((function(e,t){var r=(o.isKeyLabelPair(e)?e.key:o.extractKey(e,d,t)).toString(),i=r===E,a=O.includes(r);return n.jsx("button",m({key:r,css:n.css([k.tab,"filled"===s&&k.tabFilled,"transparent"===s&&k.tabTransparent]),disabled:a,onClick:function(t){var n=t.target;return function(e,t){var n=j.current.querySelector("[data-selected]");o.isCallableFunction(f)&&f(e),j.current.style.setProperty("--anim-height","".concat(n.offsetHeight,"px")),j.current.style.setProperty("--anim-left","".concat(n.offsetLeft,"px")),j.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(){j.current.style.setProperty("--anim-duration","".concat(150,"ms")),j.current.style.setProperty("--anim-height","".concat(t.offsetHeight,"px")),j.current.style.setProperty("--anim-left","".concat(t.offsetLeft,"px")),j.current.style.setProperty("--anim-width","".concat(t.offsetWidth,"px")),t.scrollIntoView({behavior:"smooth"}),window.setTimeout((function(){t.removeAttribute("data-animating"),j.current.style.removeProperty("--anim-duration"),j.current.style.removeProperty("--anim-height"),j.current.style.removeProperty("--anim-left"),j.current.style.removeProperty("--anim-width"),C(e)}),150)}))}(e,n)},type:"button"},i?{"data-selected":!0}:null),o.isKeyLabelPair(e)?e.label:o.extractContent(e,p,t))}))))},e.TextArea=function(e){var i=e.ariaDescription,a=e.ariaLabel,s=e.disabled,c=e.gridArea,l=e.height,u=void 0===l?"auto":l,d=e.id,p=e.label,f=e.maxCharacters,g=e.maxHeight,h=void 0===g?"100%":g,b=e.maxWidth,v=void 0===b?"100%":b,x=e.onChange,y=e.placeholder,C=e.readonly,j=e.resizable,k=void 0!==j&&j,O=e.showCount,E=void 0===O||O,P=e.value,L=void 0===P?"":P,I=e.width,S=void 0===I?"100%":I;ve('WJEC One TextArea: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==c}),[c]);var A=w(t.useState(L),2),W=A[0],F=A[1],T=Be(i);t.useEffect((function(){L!==W&&F(L)}),[L]);var M=r.useWjecOneThemeStyles(pr),R=dr({"data-current-value-length":null==W?void 0:W.length},{excludeIfFalse:!0});return n.jsx("label",m({"aria-label":a},R,{css:n.css([M.label,c&&{gridArea:c},E&&n.css("&::after{content:attr(data-current-value-length) '",void 0!==f&&"/".concat(f),"';}"),{maxWidth:v,width:S}]),"data-max-count":f}),p,n.jsx("textarea",m({id:d,css:n.css([G.scrollbar,M.textarea,{height:u,maxHeight:h,resize:k?"both":"none"}]),value:W,placeholder:y,onChange:function(e){var t=e.target.value;F(t),o.isCallableFunction(x)&&x(t)},readOnly:C,disabled:s,maxLength:f},C?{tabIndex:-1}:{},T)))},e.Toggle=function(e){var a=e.gridArea,s=e.offLabel,c=e.onLabel,l=e.ariaLabel,u=e.disabled,d=e.id,p=e.label,f=e.on,g=void 0!==f&&f,h=e.onChange,b=e.value,v=void 0===b?c:b;ve('WJEC One Toggle: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',(function(){return void 0!==a}),[a]),ve('WJEC One Toggle: The "offLabel" prop has been deprecated because the latest v4 design has no off label',(function(){return void 0!==s}),[s]),ve('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!==c}),[c]);var x=t.useRef(),y=i.useId(d);t.useLayoutEffect((function(){x.current.setAttribute("aria-pressed",g.toString())}),[g]);var w=r.useWjecOneThemeStyles(fr),C=t.useMemo((function(){return{"--margin-top":p&&"4px","--toggle-margin-right":v&&"8px"}}),[p,v]),j=i.useButton({"aria-label":l,"aria-pressed":g,id:y,isDisabled:u,onPress:function(){var e="true"===x.current.getAttribute("aria-pressed");x.current.setAttribute("aria-pressed",(!e).toString()),o.isCallableFunction(h)&&h(!e)}},x).buttonProps;return n.jsx("label",{css:w.label,htmlFor:y,"data-disabled":u||void 0},p,n.jsx("button",m({},j,{css:w.toggleButton,ref:x,style:C}),v))},e.WarningCard=function(e){var t=w(r.useWjecOneTheme(),1)[0].colorPalette;return n.jsx(gr,m({},e,{borderColor:t.warning,icon:sn,iconColor:t.warning,titleColor:t.warningDark}))}}));
|